Copy reg notes in eliminate_regs_in_insn.
authorBernd Schmidt <bernds@cygnus.co.uk>
Wed, 3 Nov 1999 11:23:27 +0000 (11:23 +0000)
committerBernd Schmidt <crux@gcc.gnu.org>
Wed, 3 Nov 1999 11:23:27 +0000 (11:23 +0000)
From-SVN: r30372

gcc/ChangeLog
gcc/reload1.c

index 6d327facbe1f47083fe3e9e87ef051c65d0040df..5ee1cb09e85c9154c4a9e2ef47065d5a3fded6ac 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 98a246bc79e8153b22cd94f3605b8994c8f6b8aa..5291d9bf3e756c0a54d806900a0260eb971c503b 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