]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/13000 ([unit-at-a-time] Using -O2 cannot detect missing retur...
authorIan Lance Taylor <ian@airs.com>
Fri, 21 Jan 2005 19:05:23 +0000 (19:05 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 21 Jan 2005 19:05:23 +0000 (19:05 +0000)
commit089efaa4a16ff50c6c5b37e9f7add71f20c18f1b
tree29a38b973974253486c46f8b085f055eee2e1e15
parentd284eb28eb6f3ef8c3f27e7428b8cdc8e51d965f
re PR tree-optimization/13000 ([unit-at-a-time] Using -O2 cannot detect missing return statement in a function)

PR tree-optimization/13000
* tree-inline.c: Include "tree-flow.h".
(expand_call_inline): If warn_return_type, warn if non-void inline
function falls through.
* tree-cfg.c (execute_warn_function_return): Don't warn about
control reaching end if TREE_NO_WARNING is set.  Set
TREE_NO_WARNING.
* gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
has been lowered.
* gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
branch if we don't need one.
* c-typeck.c: Include "tree-flow.h"
(c_finish_bc_stmt): Don't add a goto if the current statement
list doesn't fall through to the current point.

From-SVN: r94024
gcc/ChangeLog
gcc/c-typeck.c
gcc/gimple-low.c
gcc/gimplify.c
gcc/tree-cfg.c
gcc/tree-inline.c