OSDN Git Service

*** empty log message ***
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Apr 1992 22:17:33 +0000 (22:17 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Apr 1992 22:17:33 +0000 (22:17 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@766 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/toplev.c

index eb1d278..34a7e29 100644 (file)
@@ -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)