This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: middle-end/10336: [3.3/3.4 regression] ICE with-Wunreachable-code
- From: Jason Merrill <jason at redhat dot com>
- To: steven at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, reichelt at igpm dot rwth-aachen dot de, gcc-gnats at gcc dot gnu dot org
- Date: Tue, 15 Apr 2003 04:28:24 +0100
- Subject: Re: middle-end/10336: [3.3/3.4 regression] ICE with-Wunreachable-code
- References: <20030412124949.26726.qmail@sources.redhat.com>
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;