function.c (expand_function_end): Remove an "if" statement that always trigger.
authorKazu Hirata <kazu@cs.umass.edu>
Thu, 11 Nov 2004 22:02:47 +0000 (22:02 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 11 Nov 2004 22:02:47 +0000 (22:02 +0000)
* function.c (expand_function_end): Remove an "if" statement
that always trigger.
* stmt.c (expand_null_return_1): Likewise.

From-SVN: r90497

gcc/ChangeLog
gcc/function.c
gcc/stmt.c

index 3d9f2503db99f79c98449aad0a303b4e1739d377..baac6a7ee69cbed122ac45ef79ec4420fb585b3d 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * function.c (expand_function_end): Remove an "if" statement
+       that always trigger.
+       * stmt.c (expand_null_return_1): Likewise.
+
 2004-11-11  James E. Wilson  <wilson@specifixinc.com>
 
        * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
index 338ad9674912e4f923f27ad9a34cd934c1e45aa5..18829019e51607be5a71db4a6df28b629c222c25 100644 (file)
@@ -4317,13 +4317,8 @@ expand_function_end (void)
      is computed.  */
   clobber_after = get_last_insn ();
 
-  /* Output the label for the actual return from the function,
-     if one is expected.  This happens either because a function epilogue
-     is used instead of a return instruction, or because a return was done
-     with a goto in order to run local cleanups, or because of pcc-style
-     structure returning.  */
-  if (return_label)
-    emit_label (return_label);
+  /* Output the label for the actual return from the function.  */
+  emit_label (return_label);
 
   /* Let except.c know where it should emit the call to unregister
      the function context for sjlj exceptions.  */
index d7f37a30f7b6cb83c0473d82068611c267aaeaed..3066a8b4123a8bdb28a657c8c08226d462777c4c 100644 (file)
@@ -1564,15 +1564,9 @@ expand_value_return (rtx val)
 static void
 expand_null_return_1 (void)
 {
-  rtx end_label;
-
   clear_pending_stack_adjust ();
   do_pending_stack_adjust ();
-
-  end_label = return_label;
-  if (end_label == 0)
-     end_label = return_label = gen_label_rtx ();
-  emit_jump (end_label);
+  emit_jump (return_label);
 }
 \f
 /* Generate RTL to evaluate the expression RETVAL and return it