builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before clobbering framepointer.

* builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
	clobbering framepointer.

From-SVN: r136959
This commit is contained in:
Jan Hubicka 2008-06-19 20:00:12 +02:00 committed by Jan Hubicka
parent bad5e2b575
commit dea33aa707
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-06-19 Jan Hubicka <jh@suse.cz>
* builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
clobbering framepointer.
2008-06-19 Jan Hubicka <jh@suse.cz>
* tree-optimize.c (execute_early_local_optimizations): Set

View File

@ -887,6 +887,7 @@ expand_builtin_nonlocal_goto (tree exp)
#endif
{
r_label = copy_to_reg (r_label);
r_sp = copy_to_reg (r_sp);
emit_clobber (gen_rtx_MEM (BLKmode, gen_rtx_SCRATCH (VOIDmode)));
emit_clobber (gen_rtx_MEM (BLKmode, hard_frame_pointer_rtx));