Commit 0b59e81e by Kaz Kojima

function.c (expand_function_end): Revert part of 2005-06-27 patch.

	* function.c (expand_function_end): Revert part of 2005-06-27
	patch.  Do sjlj_emit_function_exit_after after return_label.

From-SVN: r101673
parent 3c2d01f1
2005-07-06 Kaz Kojima <kkojima@gcc.gnu.org>
* function.c (expand_function_end): Revert part of 2005-06-27
patch. Do sjlj_emit_function_exit_after after return_label.
2005-07-06 Kazu Hirata <kazu@codesourcery.com> 2005-07-06 Kazu Hirata <kazu@codesourcery.com>
* doc/install.texi (--disable-libssp): New. * doc/install.texi (--disable-libssp): New.
......
...@@ -4403,6 +4403,11 @@ expand_function_end (void) ...@@ -4403,6 +4403,11 @@ expand_function_end (void)
/* Output the label for the actual return from the function. */ /* Output the label for the actual return from the function. */
emit_label (return_label); emit_label (return_label);
/* Let except.c know where it should emit the call to unregister
the function context for sjlj exceptions. */
if (flag_exceptions && USING_SJLJ_EXCEPTIONS)
sjlj_emit_function_exit_after (get_last_insn ());
/* If scalar return value was computed in a pseudo-reg, or was a named /* If scalar return value was computed in a pseudo-reg, or was a named
return value that got dumped to the stack, copy that to the hard return value that got dumped to the stack, copy that to the hard
return register. */ return register. */
...@@ -4530,11 +4535,6 @@ expand_function_end (void) ...@@ -4530,11 +4535,6 @@ expand_function_end (void)
/* Output the label for the naked return from the function. */ /* Output the label for the naked return from the function. */
emit_label (naked_return_label); emit_label (naked_return_label);
/* Let except.c know where it should emit the call to unregister
the function context for sjlj exceptions. */
if (flag_exceptions && USING_SJLJ_EXCEPTIONS)
sjlj_emit_function_exit_after (get_last_insn ());
/* If stack protection is enabled for this function, check the guard. */ /* If stack protection is enabled for this function, check the guard. */
if (cfun->stack_protect_guard) if (cfun->stack_protect_guard)
stack_protect_epilogue (); stack_protect_epilogue ();
......
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