* gcc/config/sh/sh.c (sh_set_return_address): Mark store of
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 May 2009 22:06:17 +0000 (22:06 +0000)
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 May 2009 22:06:17 +0000 (22:06 +0000)
return address with a USE.

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

gcc/ChangeLog
gcc/config/sh/sh.c

index 8730f68..78985d3 100644 (file)
@@ -1,3 +1,8 @@
+2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
+       return address with a USE.
+
 2009-05-24  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/40233
index 836eb75..db49b8d 100644 (file)
@@ -7055,6 +7055,8 @@ sh_set_return_address (rtx ra, rtx tmp)
 
   tmp = gen_frame_mem (Pmode, tmp);
   emit_insn (GEN_MOV (tmp, ra));
+  /* Tell this store isn't dead.  */
+  emit_use (tmp);
 }
 
 /* Clear variables at function end.  */