diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2001-12-28 01:46:22 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-12-27 20:46:22 -0500 |
commit | 9674c84284965acd942ca436b71aa051f070eeb3 (patch) | |
tree | fa4c90b82fd81a0110eebf35ed144325d0f77661 /gcc | |
parent | 0b264069f0b1cecd5d7f3b107a6f2e51bc6179dd (diff) | |
download | gcc-9674c84284965acd942ca436b71aa051f070eeb3.zip gcc-9674c84284965acd942ca436b71aa051f070eeb3.tar.gz gcc-9674c84284965acd942ca436b71aa051f070eeb3.tar.bz2 |
integrate.c (copy_rtx_and_substitute, case MEM): If inlining and not for LHS, clear RTX_UNCHANGING_P.
* integrate.c (copy_rtx_and_substitute, case MEM): If inlining
and not for LHS, clear RTX_UNCHANGING_P.
From-SVN: r48337
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/integrate.c | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a5e4b93..82365dd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 27 20:39:55 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> + + * integrate.c (copy_rtx_and_substitute, case MEM): If inlining + and not for LHS, clear RTX_UNCHANGING_P. + 2001-12-28 Philipp Thomas <pthomas@suse.de> * cppfiles.c (stack_include_file): Don't translate <stdin>. diff --git a/gcc/integrate.c b/gcc/integrate.c index 45de618..ea38981 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: |