Commit 32235b30 by Richard Stallman

*** empty log message ***

From-SVN: r766
parent 2e1dbf22
...@@ -2032,7 +2032,8 @@ rest_of_compilation (decl) ...@@ -2032,7 +2032,8 @@ rest_of_compilation (decl)
functions. */ functions. */
rtx_equal_function_value_matters = 0; rtx_equal_function_value_matters = 0;
if (rtl_dump_and_exit || flag_syntax_only) /* Don't return yet if -Wreturn-type; we need to do jump_optimize. */
if ((rtl_dump_and_exit || flag_syntax_only) && !warn_return_type)
{ {
goto exit_rest_of_compilation; goto exit_rest_of_compilation;
} }
...@@ -2080,6 +2081,10 @@ rest_of_compilation (decl) ...@@ -2080,6 +2081,10 @@ rest_of_compilation (decl)
TIMEVAR (jump_time, jump_optimize (insns, 0, 0, 1)); TIMEVAR (jump_time, jump_optimize (insns, 0, 0, 1));
} }
/* Now is when we stop if -fsyntax-only and -Wreturn-type. */
if (rtl_dump_and_exit || flag_syntax_only)
goto exit_rest_of_compilation;
/* Dump rtl code after jump, if we are doing that. */ /* Dump rtl code after jump, if we are doing that. */
if (jump_opt_dump) if (jump_opt_dump)
......
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