The following patch was just committed as r201941 (pre-approved by
Jakub) to fix PR rtl-optimization/58220 and PR regression/58221.
Bootstrapped and tested on x86_64-unknown-linux-gnu. also confirmed
that I could reproduce the problem in PR rtl-optimization/58220 and
that the patch fixes it. Thanks to Kaz for the fix.
Index: final.c
===================================================================
--- final.c (revision 201940)
+++ final.c (revision 201941)
@@ -1650,7 +1650,7 @@ reemit_insn_block_notes (void)
rtx insn, note;
insn = get_insns ();
- for (; insn; insn = next_insn (insn))
+ for (; insn; insn = NEXT_INSN (insn))
{
tree this_block;
Index: ChangeLog
===================================================================
--- ChangeLog (revision 201940)
+++ ChangeLog (revision 201941)
@@ -1,3 +1,10 @@
+2013-08-23 Kaz Kojima <[email protected]>
+
+ PR rtl-optimization/58220
+ PR regression/58221
+ * final.c (reemit_insn_block_notes): Use NEXT_INSN to
+ handle SEQUENCE insns properly.
+
2013-08-23 Gabriel Dos Reis <[email protected]>
* pretty-print.h (pp_newline_and_flush): Declare. Remove macro
Teresa
--
Teresa Johnson | Software Engineer | [email protected] | 408-460-2413