builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before clobbering framepointer.
authorJan Hubicka <jh@suse.cz>
Thu, 19 Jun 2008 18:00:12 +0000 (20:00 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 19 Jun 2008 18:00:12 +0000 (18:00 +0000)
* builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
clobbering framepointer.

From-SVN: r136959

gcc/ChangeLog
gcc/builtins.c

index d5c60c03cf5306dffe15224c689b914300ffebd4..d9f6157cb48da6ace5e8852c2abe530fc2e27200 100644 (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
index 57d9379983bbe639d9d394959f2f84defbbb5b3f..cdc5ab3137526bd1bfdccc1fe4d269b103d7f5d4 100644 (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));