From 32235b3084584f721c986755998033bea9633acb Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Fri, 17 Apr 1992 22:17:33 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r766 --- gcc/toplev.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 2.43.5