From b4dce965cd84d86e0fad9e321f2d53ffe4d90c68 Mon Sep 17 00:00:00 2001 From: kkojima Date: Sun, 24 May 2009 22:06:17 +0000 Subject: [PATCH] * gcc/config/sh/sh.c (sh_set_return_address): Mark store of return address with a USE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147836 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/sh/sh.c | 2 ++ 2 files changed, 7 insertions(+) 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 + + * gcc/config/sh/sh.c (sh_set_return_address): Mark store of + return address with a USE. + 2009-05-24 Richard Guenther 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. */ -- 2.7.4