From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26782 invoked by alias); 25 Nov 2012 11:11:52 -0000 Received: (qmail 26716 invoked by uid 48); 25 Nov 2012 11:11:36 -0000 From: "mikpe at it dot uu.se" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55405] ICE with optimization Date: Sun, 25 Nov 2012 11:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mikpe at it dot uu.se X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg02286.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55405 Mikael Pettersson changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpe at it dot uu.se --- Comment #2 from Mikael Pettersson 2012-11-25 11:11:35 UTC --- The ICE at -O3 was first silenced for 4.7 by r171450: http://gcc.gnu.org/ml/gcc-cvs/2011-03/msg00874.html, when Richard Biener added an FRE pass after early SRA. At that point the ICE still occurs with -O3 -fno-tree-fre. The ICE at -O3 -fno-tree-fre was then silenced for 4.7 by r181014: http://gcc.gnu.org/ml/gcc-cvs/2011-11/msg00300.html, a missed-optimization patch. The ICE before r181014 occurs because except.c:emit_to_new_bb_before is called on an insn whose BLOCK_FOR_INSN is NULL, but that NULL pointer is unconditionally dereferenced causing a SEGV. I don't see a sane way of handling that locally.