From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29102 invoked by alias); 8 Dec 2011 08:59:34 -0000 Received: (qmail 29092 invoked by uid 22791); 8 Dec 2011 08:59:33 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Dec 2011 08:59:20 +0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/49772] [4.7 Regression] ICE: in ipa_pta_execute, at tree-ssa-structalias.c:6790 with -fipa-pta Date: Thu, 08 Dec 2011 09:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 X-Bugzilla-Changed-Fields: 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: 2011-12/txt/msg00855.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49772 --- Comment #11 from rguenther at suse dot de 2011-12-08 08:57:22 UTC --- On Thu, 8 Dec 2011, pinskia at gcc dot gnu.org wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49772 > > --- Comment #10 from Andrew Pinski 2011-12-08 04:54:41 UTC --- > A better non specific to tree-ssa-structaliasing patch: > Index: cgraphunit.c > =================================================================== > --- cgraphunit.c (revision 182098) > +++ cgraphunit.c (working copy) > @@ -1817,6 +1817,9 @@ cgraph_expand_function (struct cgraph_no > /* Generate RTL for the body of DECL. */ > tree_rest_of_compilation (decl); > > + if (seen_error ()) > + return; > + > /* Make sure that BE didn't give up on compiling. */ > gcc_assert (TREE_ASM_WRITTEN (decl)); > current_function_decl = NULL; > Index: passes.c > =================================================================== > --- passes.c (revision 182098) > +++ passes.c (working copy) > @@ -2074,7 +2074,7 @@ execute_one_pass (struct opt_pass *pass) > timevar_push (pass->tv_id); > > /* Do it! */ > - if (pass->execute) > + if (pass->execute && !seen_error ()) > { > todo_after = pass->execute (); > do_per_function (clear_last_verified, NULL); We don't want late warnings in random functions to be suppressed by earlier errors.