Commit 526c334b by Kazu Hirata Committed by Kazu Hirata

function.c (expand_function_end): Remove an "if" statement that always trigger.

	* function.c (expand_function_end): Remove an "if" statement
	that always trigger.
	* stmt.c (expand_null_return_1): Likewise.

From-SVN: r90497
parent 2f71a82e
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> 2004-11-11 James E. Wilson <wilson@specifixinc.com>
* config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode. * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
......
...@@ -4317,13 +4317,8 @@ expand_function_end (void) ...@@ -4317,13 +4317,8 @@ expand_function_end (void)
is computed. */ is computed. */
clobber_after = get_last_insn (); clobber_after = get_last_insn ();
/* Output the label for the actual return from the function, /* Output the label for the actual return from the function. */
if one is expected. This happens either because a function epilogue emit_label (return_label);
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);
/* Let except.c know where it should emit the call to unregister /* Let except.c know where it should emit the call to unregister
the function context for sjlj exceptions. */ the function context for sjlj exceptions. */
......
...@@ -1564,15 +1564,9 @@ expand_value_return (rtx val) ...@@ -1564,15 +1564,9 @@ expand_value_return (rtx val)
static void static void
expand_null_return_1 (void) expand_null_return_1 (void)
{ {
rtx end_label;
clear_pending_stack_adjust (); clear_pending_stack_adjust ();
do_pending_stack_adjust (); do_pending_stack_adjust ();
emit_jump (return_label);
end_label = return_label;
if (end_label == 0)
end_label = return_label = gen_label_rtx ();
emit_jump (end_label);
} }
/* Generate RTL to evaluate the expression RETVAL and return it /* Generate RTL to evaluate the expression RETVAL and return it
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment