This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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  <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

Teresa

-- 
Teresa Johnson | Software Engineer | tejohnson@google.com | 408-460-2413


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]