From patchwork Thu May 12 11:31:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 95286 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 14AA7B6FD3 for ; Thu, 12 May 2011 21:32:05 +1000 (EST) Received: (qmail 16922 invoked by alias); 12 May 2011 11:32:03 -0000 Received: (qmail 16912 invoked by uid 22791); 12 May 2011 11:32:02 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 May 2011 11:31:47 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 53FE39AC830; Thu, 12 May 2011 13:31:46 +0200 (CEST) Date: Thu, 12 May 2011 13:31:46 +0200 From: Jan Hubicka To: gcc-patches@gcc.gnu.org Subject: Fix inline_merge_summary ICE during kernel build Message-ID: <20110512113146.GB26074@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, the problem is that Andi's test build is with -O0 and we should not allocate ipa-prop datastructures then. We do so via duplication hook by accident since do_whole_program_analysis for some illogical reason calls ipa_register_cgraph_hooks. Comitted as obvoius. Honza PR lto/48952 * lto.c (do_whole_program_analysis): Do not register cgraph hooks. Index: lto/lto.c =================================================================== --- lto/lto.c (revision 173666) +++ lto/lto.c (working copy) @@ -2511,7 +2511,6 @@ do_whole_program_analysis (void) dump_varpool (cgraph_dump_file); } bitmap_obstack_initialize (NULL); - ipa_register_cgraph_hooks (); cgraph_state = CGRAPH_STATE_IPA_SSA; execute_ipa_pass_list (all_regular_ipa_passes);