aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-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 817424a..9d178f6 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 12ba67f..2123701 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