diff options
author | Richard Stallman <rms@gnu.org> | 1992-04-17 22:17:33 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-04-17 22:17:33 +0000 |
commit | 32235b3084584f721c986755998033bea9633acb (patch) | |
tree | 6456359f1da77741038977191faddb49c71f285a | |
parent | 2e1dbf228dab2af6b51f8bd87a5e811b20059e58 (diff) | |
download | gcc-32235b3084584f721c986755998033bea9633acb.zip gcc-32235b3084584f721c986755998033bea9633acb.tar.gz gcc-32235b3084584f721c986755998033bea9633acb.tar.bz2 |
*** empty log message ***
From-SVN: r766
-rw-r--r-- | gcc/toplev.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index eb1d278..34a7e29 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2032,7 +2032,8 @@ rest_of_compilation (decl) functions. */ 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; } @@ -2080,6 +2081,10 @@ rest_of_compilation (decl) 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. */ if (jump_opt_dump) |