diff options
author | Kaz Kojima <kkojima@gcc.gnu.org> | 2009-05-24 22:06:17 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@gcc.gnu.org> | 2009-05-24 22:06:17 +0000 |
commit | 7f9a14e39f073138a6e03fa719eb33fb2a024ec7 (patch) | |
tree | c48dbf28be4b39b5a71edddadf9d94c796dedb8f | |
parent | b842d478094ed4421934cbbd0f055fe6ca84fccd (diff) | |
download | gcc-7f9a14e39f073138a6e03fa719eb33fb2a024ec7.zip gcc-7f9a14e39f073138a6e03fa719eb33fb2a024ec7.tar.gz gcc-7f9a14e39f073138a6e03fa719eb33fb2a024ec7.tar.bz2 |
sh.c (sh_set_return_address): Mark store of return address with a USE.
* gcc/config/sh/sh.c (sh_set_return_address): Mark store of
return address with a USE.
From-SVN: r147836
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/sh/sh.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8730f68..78985d3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 836eb75..db49b8d 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -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. */ |