From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15021 invoked by alias); 15 Apr 2003 03:36:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 14993 invoked by uid 71); 15 Apr 2003 03:36:01 -0000 Date: Tue, 15 Apr 2003 03:36:00 -0000 Message-ID: <20030415033601.14992.qmail@sources.redhat.com> To: jason@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Jason Merrill Subject: Re: middle-end/10336: [3.3/3.4 regression] ICE with -Wunreachable-code Reply-To: Jason Merrill X-SW-Source: 2003-04/txt/msg00658.txt.bz2 List-Id: The following reply was made to PR middle-end/10336; it has been noted by GNATS. From: Jason Merrill To: steven@gcc.gnu.org Cc: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, reichelt@igpm.rwth-aachen.de, gcc-gnats@gcc.gnu.org Subject: Re: middle-end/10336: [3.3/3.4 regression] ICE with -Wunreachable-code Date: Tue, 15 Apr 2003 04:28:24 +0100 --=-=-= Thanks, I'm testing this patch now. Yours leaves insn null for testcases that were crashing, so we wouldn't ever warn. --=-=-= Content-Type: text/x-patch Content-Disposition: inline *** 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; --=-=-=--