c/10336: [3.4 regression] ICE with -Wunreachable-code
Steven Bosscher
s.bosscher@student.tudelft.nl
Mon Apr 7 13:01:00 GMT 2003
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10336
Does this help?
Index: jump.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/jump.c,v
retrieving revision 1.221
diff -c -3 -p -r1.221 jump.c
*** jump.c 4 Apr 2003 01:21:56 -0000 1.221
--- jump.c 7 Apr 2003 12:59:17 -0000
*************** never_reached_warning (avoided_insn, fin
*** 1912,1918 ****
/* Back up to the first of any NOTEs preceding avoided_insn; flow passes
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);
--- 1912,1918 ----
/* Back up to the first of any NOTEs preceding avoided_insn; flow passes
us the head of a block, a NOTE_INSN_BASIC_BLOCK, which often follows
the line note. */
! for (insn = PREV_INSN (avoided_insn); insn; insn = PREV_INSN (insn))
if (GET_CODE (insn) != NOTE)
{
insn = NEXT_INSN (insn);
More information about the Gcc-bugs
mailing list