aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-01-14 10:33:41 -0800
committerJim Wilson <wilson@gcc.gnu.org>1993-01-14 10:33:41 -0800
commitcc81e6253b50a6d819d5fbffaecceec38726c39d (patch)
tree64ee251ff7788c65db092496f27b3d7e05e8694c /gcc/rtl.c
parent1dde5fd23a78cd11810af4b5f1fac4e9be3d1243 (diff)
downloadgcc-cc81e6253b50a6d819d5fbffaecceec38726c39d.zip
gcc-cc81e6253b50a6d819d5fbffaecceec38726c39d.tar.gz
gcc-cc81e6253b50a6d819d5fbffaecceec38726c39d.tar.bz2
(copy_rtx): A MEM with constant address is not sharable.
Undo Dec 27 change. From-SVN: r3231
Diffstat (limited to 'gcc/rtl.c')
-rw-r--r--gcc/rtl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rtl.c b/gcc/rtl.c
index a47ebd5..aca057d 100644
--- a/gcc/rtl.c
+++ b/gcc/rtl.c
@@ -284,10 +284,10 @@ copy_rtx (orig)
return orig;
break;
- case MEM:
- if (CONSTANT_ADDRESS_P (XEXP (orig, 0)))
- return orig;
- break;
+ /* A MEM with a constant address is not sharable. The problem is that
+ the constant address may need to be reloaded. If the mem is shared,
+ then reloading one copy of this mem will cause all copies to appear
+ to have been reloaded. */
}
copy = rtx_alloc (code);