summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-20 20:18:19 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-20 20:18:19 +0000
commit4573344639162add78d392af655476697f2f5c44 (patch)
tree91b131f5c8b7d0ac54ba391daae578e24a9d35b7
parenta83746ef49d41ec90e2cd888c61c7b38835e8c99 (diff)
downloadppe42-gcc-4573344639162add78d392af655476697f2f5c44.tar.gz
ppe42-gcc-4573344639162add78d392af655476697f2f5c44.zip
* emit-rtl.c (unshare_all_rtl): Store the copied rtx.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34056 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/emit-rtl.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 817424a8e03..9d178f66d03 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
+
+ * emit-rtl.c (unshare_all_rtl): Store the copied rtx.
+
2000-05-20 Zack Weinberg <zack@wolery.cumb.org>
* diagnostic.c: Eliminate implicit int.
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 12ba67f4114..2123701a530 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -1695,7 +1695,7 @@ unshare_all_rtl (fndecl, insn)
/* Make sure that virtual parameters are not shared. */
for (decl = DECL_ARGUMENTS (fndecl); decl; decl = TREE_CHAIN (decl))
- copy_rtx_if_shared (DECL_RTL (decl));
+ DECL_RTL (decl) = copy_rtx_if_shared (DECL_RTL (decl));
/* Unshare just about everything else. */
unshare_all_rtl_1 (insn);
@@ -1707,7 +1707,7 @@ unshare_all_rtl (fndecl, insn)
This special care is necessary when the stack slot MEM does not
actually appear in the insn chain. If it does appear, its address
is unshared from all else at that point. */
- copy_rtx_if_shared (stack_slot_list);
+ stack_slot_list = copy_rtx_if_shared (stack_slot_list);
}
/* Go through all the RTL insn bodies and copy any invalid shared
OpenPOWER on IntegriCloud