Patchwork Fixed PR rtl-optimization/58220 and PR regression/58221

login
register
mail settings
Submitter Teresa Johnson
Date Aug. 23, 2013, 2:38 p.m.
Message ID <CAAe5K+Vi+N2KXUG+xqcycRJanxn61a4pfkRdLxvs+P3DcRcJrw@mail.gmail.com>
Download mbox | patch
Permalink /patch/269473/
State New
Headers show

Comments

Teresa Johnson - Aug. 23, 2013, 2:38 p.m.
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.


Teresa

Patch

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  <kkojima@gcc.gnu.org>
+
+       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  <gdr@integrable-solutions.net>

        * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro