aboutsummaryrefslogtreecommitdiff
path: root/gcc/reload1.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@cygnus.co.uk>1999-11-03 11:23:27 +0000
committerBernd Schmidt <crux@gcc.gnu.org>1999-11-03 11:23:27 +0000
commit1b3b576549c1ad7f437f440dd517e880d72a69d6 (patch)
tree13ff5bd7b160b33b4bba3b0f1f6ef815b42cd31c /gcc/reload1.c
parent77355bd5f213c49c1c36c812a230cead2e20f83e (diff)
downloadgcc-1b3b576549c1ad7f437f440dd517e880d72a69d6.zip
gcc-1b3b576549c1ad7f437f440dd517e880d72a69d6.tar.gz
gcc-1b3b576549c1ad7f437f440dd517e880d72a69d6.tar.bz2
Copy reg notes in eliminate_regs_in_insn.
From-SVN: r30372
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r--gcc/reload1.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c
index 98a246b..5291d9b 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -3515,7 +3515,11 @@ eliminate_regs_in_insn (insn, replace)
and one is inside RTL that has been copied while the other is not. */
new_body = old_body;
if (! replace)
- new_body = copy_insn (old_body);
+ {
+ new_body = copy_insn (old_body);
+ if (REG_NOTES (insn))
+ REG_NOTES (insn) = copy_insn_1 (REG_NOTES (insn));
+ }
PATTERN (insn) = new_body;
/* If we had a move insn but now we don't, rerecognize it. This will