This is the mail archive of the gcc-bugs@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]

Re: middle-end/10336: [3.3/3.4 regression] ICE with-Wunreachable-code


Thanks, I'm testing this patch now.  Yours leaves insn null for testcases
that were crashing, so we wouldn't ever warn.

*** jump.c.~2~	2003-04-03 18:54:32.000000000 -0500
--- jump.c	2003-04-14 22:48:49.000000000 -0400
*************** never_reached_warning (avoided_insn, fin
*** 1913,1919 ****
       us the head of a block, a NOTE_INSN_BASIC_BLOCK, which often follows
       the line note.  */
    for (insn = PREV_INSN (avoided_insn); ; insn = PREV_INSN (insn))
!     if (GET_CODE (insn) != NOTE)
        {
  	insn = NEXT_INSN (insn);
  	break;
--- 1913,1920 ----
       us the head of a block, a NOTE_INSN_BASIC_BLOCK, which often follows
       the line note.  */
    for (insn = PREV_INSN (avoided_insn); ; insn = PREV_INSN (insn))
!     if (GET_CODE (insn) != NOTE
! 	|| NOTE_LINE_NUMBER (insn) == NOTE_INSN_FUNCTION_BEG)
        {
  	insn = NEXT_INSN (insn);
  	break;

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