------- Comment #10 from jakub at gcc dot gnu dot org  2008-10-27 14:05 -------
Language specific tree codes are allowed until the gimplification is done,
the cp_gimplify_expr langhook takes care of either rewriting the lang specific
tree code into GENERIC (COND_EXPR in this case), or tuplifying it right away.

BTW, looking at the other testcase, block_may_fallthru certainly isn't able
to say whether a SWITCH_EXPR can fall thru or not, and it wouldn't be actually
very easy.  So perhaps we either need to run some pass that kills obvious dead
code before reporting the "control reaches end" warnings, or really try harder
during gimplification to figure out these cases and optimize it at that point.

I'm not working on this ATM.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36254

Reply via email to