Copy reg notes in eliminate_regs_in_insn.

From-SVN: r30372
This commit is contained in:
Bernd Schmidt 1999-11-03 11:23:27 +00:00 committed by Bernd Schmidt
parent 77355bd5f2
commit 1b3b576549
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Wed Nov 3 12:12:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
* reload1.c (eliminate_regs_in_insn): If copying insn, also copy notes.
Wed Nov 3 03:26:28 1999 Jeffrey A Law (law@cygnus.com)
* dwarf2out.c: Do not include ctype.h.

View file

@ -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