From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23278 invoked by alias); 25 Apr 2012 16:22:10 -0000 Received: (qmail 23239 invoked by uid 22791); 25 Apr 2012 16:22:03 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED 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; Wed, 25 Apr 2012 16:21:48 +0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/53106] [4.8 Regression] Benchmarks in SPEC CPU 2006 failed to build Date: Wed, 25 Apr 2012 16:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.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: 2012-04/txt/msg02278.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53106 --- Comment #7 from Jan Hubicka 2012-04-25 16:21:03 UTC --- Actually we make the node unanalyzed in this case. There is one misupdated place. I am testing the following patch. Index: ipa.c =================================================================== --- ipa.c (revision 186827) +++ ipa.c (working copy) @@ -262,7 +262,8 @@ cgraph_remove_unreachable_nodes (bool be for (next = cgraph (node->symbol.same_comdat_group); next != node; next = cgraph (next->symbol.same_comdat_group)) - if (!pointer_set_insert (reachable, next)) + if (!next->global.inlined_to + && !pointer_set_insert (reachable, next)) enqueue_cgraph_node (next, &first, reachable); } } @@ -276,7 +277,7 @@ cgraph_remove_unreachable_nodes (bool be { bool noninline = node->clone_of->symbol.decl != node->symbol.decl; node = node->clone_of; - if (noninline && !pointer_set_insert (reachable, node) && !node->symbol.aux) + if (noninline && !pointer_set_contains (reachable, node) && !node->symbol.aux) { enqueue_cgraph_node (node, &first, reachable); break;