From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17735 invoked by alias); 10 May 2012 18:00:21 -0000 Received: (qmail 17723 invoked by uid 22791); 10 May 2012 18:00:20 -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; Thu, 10 May 2012 18:00:07 +0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/53300] [4.8 Regression] AIX bootstrap related to varpool patch Date: Thu, 10 May 2012 18:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: assemble-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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-05/txt/msg01120.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53300 --- Comment #5 from Jan Hubicka 2012-05-10 17:59:46 UTC --- i am still somewhat in dark on root of this problem. What may actually be problem here is the fact that varpool no longer outputs constant pool decls relying on constant pool code to manage them on its own. Does the following hack avoid the problem? Perhaps during the years when varpool was outputting constant pool vars something broke in the code tracking when the var is needed. Index: varpool.c =================================================================== --- varpool.c (revision 187371) +++ varpool.c (working copy) @@ -282,7 +282,8 @@ varpool_assemble_decl (struct varpool_no /* Constant pool is output from RTL land when the reference survive till this level. */ - if (DECL_IN_CONSTANT_POOL (decl)) + if (DECL_IN_CONSTANT_POOL (decl) + && TREE_ASM_WRITTEN (decl)) return false; /* Decls with VALUE_EXPR should not be in the varpool at all. They