Commit cc4e79d8 by Jeff Law

toplev.c (rest_of_compilation): Always call jump_optimize at least once.

	* toplev.c (rest_of_compilation): Always call jump_optimize
	at least once.

From-SVN: r10613
parent ad238e4b
...@@ -2815,17 +2815,11 @@ rest_of_compilation (decl) ...@@ -2815,17 +2815,11 @@ rest_of_compilation (decl)
for all references to such slots. */ for all references to such slots. */
/* fixup_stack_slots (); */ /* fixup_stack_slots (); */
/* Do jump optimization the first time, if -opt. /* Always do one jump optimization pass to ensure that JUMP_LABEL fields
Also do it if -W, but in that case it doesn't change the rtl code, are initialized and to compute whether control can drop off the end
it only computes whether control can drop off the end of the function. */ of the function. */
TIMEVAR (jump_time, reg_scan (insns, max_reg_num (), 0));
if (optimize > 0 || extra_warnings || warn_return_type TIMEVAR (jump_time, jump_optimize (insns, 0, 0, 1));
/* If function is `noreturn', we should warn if it tries to return. */
|| TREE_THIS_VOLATILE (decl))
{
TIMEVAR (jump_time, reg_scan (insns, max_reg_num (), 0));
TIMEVAR (jump_time, jump_optimize (insns, 0, 0, 1));
}
/* Now is when we stop if -fsyntax-only and -Wreturn-type. */ /* Now is when we stop if -fsyntax-only and -Wreturn-type. */
if (rtl_dump_and_exit || flag_syntax_only || DECL_DEFER_OUTPUT (decl)) if (rtl_dump_and_exit || flag_syntax_only || DECL_DEFER_OUTPUT (decl))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment