2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Nov 2003 00:28:39 +0000 (00:28 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Nov 2003 00:28:39 +0000 (00:28 +0000)
* stmt.c (expand_goto): Memory clobbers added.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73749 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/stmt.c

index de8ad3a..d72548d 100644 (file)
@@ -1,5 +1,9 @@
 2003-11-19  Andreas Krebbel  <krebbel1@de.ibm.com>
 
+       * stmt.c (expand_goto): Memory clobbers added.
+
+2003-11-19  Andreas Krebbel  <krebbel1@de.ibm.com>
+
        * reload.c (find_reloads): Added missing type casts.
 
 2003-11-19  James E Wilson  <wilson@specifixinc.com>
index 3c8e286..34e9457 100644 (file)
@@ -647,6 +647,13 @@ expand_goto (tree label)
       else
 #endif
        {
+         emit_insn (gen_rtx_CLOBBER (VOIDmode,
+                                     gen_rtx_MEM (BLKmode,
+                                                  gen_rtx_SCRATCH (VOIDmode))));
+         emit_insn (gen_rtx_CLOBBER (VOIDmode,
+                                     gen_rtx_MEM (BLKmode,
+                                                  hard_frame_pointer_rtx)));
+
          /* Restore frame pointer for containing function.
             This sets the actual hard register used for the frame pointer
             to the location of the function's incoming static chain info.