Commit b912bca0 by Mark Mitchell Committed by Mark Mitchell

except.c (expand_eh_region_end_allowed): Call do_pending_stack_adjust as necessary.

	* except.c (expand_eh_region_end_allowed): Call
	do_pending_stack_adjust as necessary.

From-SVN: r43020
parent 4b454fcc
2001-06-08 Mark Mitchell <mark@codesourcery.com>
* except.c (expand_eh_region_end_allowed): Call
do_pending_stack_adjust as necessary.
Fri Jun 8 14:16:33 CEST 2001 Jan Hubicka <jh@suse.cz> Fri Jun 8 14:16:33 CEST 2001 Jan Hubicka <jh@suse.cz>
* function.c (clobber_return_register): Clobber the pseudo return * function.c (clobber_return_register): Clobber the pseudo return
......
...@@ -857,11 +857,19 @@ expand_eh_region_end_allowed (allowed, failure) ...@@ -857,11 +857,19 @@ expand_eh_region_end_allowed (allowed, failure)
throws a different exception, that it will be processed by the throws a different exception, that it will be processed by the
correct region. */ correct region. */
/* If there are any pending stack adjustments, we must emit them
before we branch -- otherwise, we won't know how much adjustment
is required later. */
do_pending_stack_adjust ();
around_label = gen_label_rtx (); around_label = gen_label_rtx ();
emit_jump (around_label); emit_jump (around_label);
emit_label (region->label); emit_label (region->label);
expand_expr (failure, const0_rtx, VOIDmode, EXPAND_NORMAL); expand_expr (failure, const0_rtx, VOIDmode, EXPAND_NORMAL);
/* We must adjust the stack before we reach the AROUND_LABEL because
the call to FAILURE does not occur on all paths to the
AROUND_LABEL. */
do_pending_stack_adjust ();
emit_label (around_label); emit_label (around_label);
} }
......
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