From: Richard Stallman Date: Fri, 17 Apr 1992 22:17:33 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: misc/cutover-egcs-0~13165 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32235b3084584f721c986755998033bea9633acb;p=thirdparty%2Fgcc.git *** empty log message *** From-SVN: r766 --- diff --git a/gcc/toplev.c b/gcc/toplev.c index eb1d278931ae..34a7e2912d88 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)