From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20975 invoked by alias); 14 Jan 2010 11:57:21 -0000 Received: (qmail 20871 invoked by uid 48); 14 Jan 2010 11:56:54 -0000 Date: Thu, 14 Jan 2010 11:57:00 -0000 Message-ID: <20100114115654.20870.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/42739] [4.5 Regression] ICE with computed goto, destructors, and optimization In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" 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: 2010-01/txt/msg01691.txt.bz2 ------- Comment #3 from rguenth at gcc dot gnu dot org 2010-01-14 11:56 ------- The issue is we have an invalid CFG: { int D.2137; Invalid sum of incoming frequencies 10000, should be 5000 M: : [LP 2] f (); : [LP 3] f (); goto ; L: : [LP 3] goto (); note the block with two labels - we'll end up looking up the EH landing pad nr on L instead of . It is cfg-cleanup that when removing a forwarder block moves the label in it to that block via remove_bb (). -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2010-01-14 10:04:13 |2010-01-14 11:56:54 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42739