diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-28 01:46:22 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-28 01:46:22 +0000 |
commit | f8960ae4130465ada0333cb3f496342f2fc220de (patch) | |
tree | fa4c90b82fd81a0110eebf35ed144325d0f77661 /gcc/integrate.c | |
parent | 9ef90bd906c1c789f3abd4e32e949136e9c8c7c6 (diff) | |
download | gcc-f8960ae4130465ada0333cb3f496342f2fc220de.tar.gz |
* integrate.c (copy_rtx_and_substitute, case MEM): If inlining
and not for LHS, clear RTX_UNCHANGING_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48337 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r-- | gcc/integrate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c index 45de6186d42..ea389815a28 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -2267,6 +2267,13 @@ copy_rtx_and_substitute (orig, map, for_lhs) PUT_MODE (copy, mode); XEXP (copy, 0) = copy_rtx_and_substitute (XEXP (orig, 0), map, 0); MEM_COPY_ATTRIBUTES (copy, orig); + + /* If inlining and this is not for the LHS, turn off RTX_UNCHANGING_P + since this may be an indirect reference to a parameter and the + actual may not be readonly. */ + if (inlining && !for_lhs) + RTX_UNCHANGING_P (copy) = 0; + return copy; default: |