From dea33aa707a98bfecc8af5c83c969053ef0dc4b5 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 19 Jun 2008 20:00:12 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/builtins.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d5c60c03cf5..d9f6157cb48 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-06-19 Jan Hubicka + + * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before + clobbering framepointer. + 2008-06-19 Jan Hubicka * tree-optimize.c (execute_early_local_optimizations): Set diff --git a/gcc/builtins.c b/gcc/builtins.c index 57d9379983b..cdc5ab31375 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -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)); -- 2.30.2