* integrate.c (copy_insn_list): Substitute NOTE_EXPECTED_VALUE.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 5 May 2001 16:55:48 +0000 (16:55 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 5 May 2001 16:55:48 +0000 (16:55 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41868 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/integrate.c

index 3b9b4a6..c8f3f0a 100644 (file)
@@ -1,5 +1,9 @@
 2001-05-05  Richard Henderson  <rth@redhat.com>
 
+       * integrate.c (copy_insn_list): Substitute NOTE_EXPECTED_VALUE.
+
+2001-05-05  Richard Henderson  <rth@redhat.com>
+
        * except.c (remove_fixup_regions): Adjust REG_EH_REGION notes
        to the parent of the fixup region.
 
index a430030..6795d82 100644 (file)
@@ -1536,6 +1536,11 @@ copy_insn_list (insns, map, static_chain_value)
                  else
                    NOTE_BLOCK (copy) = *mapped_block_p;
                }
+             else if (copy
+                      && NOTE_LINE_NUMBER (copy) == NOTE_INSN_EXPECTED_VALUE)
+               NOTE_EXPECTED_VALUE (copy)
+                 = copy_rtx_and_substitute (NOTE_EXPECTED_VALUE (insn),
+                                            map, 0);
            }
          else
            copy = 0;