http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58221

--- Comment #8 from Teresa Johnson <tejohnson at google dot com> ---
Tested on x86_64-unknown-linux-gnu, and also reproduced the failure
listed in PR rtl-optimization/58220 and verified the fix with it.
Committed as r201941:

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  <kkoj...@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  <g...@integrable-solutions.net>

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


Thanks,
Teresa

On Fri, Aug 23, 2013 at 6:54 AM, Teresa Johnson <tejohn...@google.com> wrote:
> On Fri, Aug 23, 2013 at 6:49 AM, kkojima at gcc dot gnu.org
> <gcc-bugzi...@gcc.gnu.org> wrote:
>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58221
>>
>> --- Comment #6 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
>> (In reply to Teresa Johnson from comment #5)
>>> Kaz, are you planning to apply your patch, or do you want me to test
>>> it and commit it? I'm kicking off x86_64 tests with it right now, but
>>> I didn't get the failure on that target and don't have on hand yet a
>>> reproducer.
>>
>> I've tested it on sh4-linux only.  I've just fired bootstrap
>> and the usual tests on i686-linux.  It will take hours on my
>> slow host, though.  Could you apply the patch after your x86_64
>> tests?
>
> Will do, thanks.
> Teresa
>
>>
>> --
>> You are receiving this mail because:
>> You are on the CC list for the bug.
>
>
>
> --
> Teresa Johnson | Software Engineer | tejohn...@google.com | 408-460-2413

Reply via email to