OSDN Git Service

Copy reg notes in eliminate_regs_in_insn.
authorcrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Nov 1999 11:23:27 +0000 (11:23 +0000)
committercrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Nov 1999 11:23:27 +0000 (11:23 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30372 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/reload1.c

index 6d327fa..5ee1cb0 100644 (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.
index 98a246b..5291d9b 100644 (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