sh.c (sh_set_return_address): Mark store of return address with a USE.
authorKaz Kojima <kkojima@gcc.gnu.org>
Sun, 24 May 2009 22:06:17 +0000 (22:06 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Sun, 24 May 2009 22:06:17 +0000 (22:06 +0000)
* gcc/config/sh/sh.c (sh_set_return_address): Mark store of
return address with a USE.

From-SVN: r147836

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.  */