From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30220 invoked by alias); 11 Jul 2014 12:09:02 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 30190 invoked by uid 89); 11 Jul 2014 12:08:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: nikam.ms.mff.cuni.cz Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 11 Jul 2014 12:08:58 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 2CE14543AF1; Fri, 11 Jul 2014 14:08:56 +0200 (CEST) Date: Fri, 11 Jul 2014 12:09:00 -0000 From: Jan Hubicka To: Richard Biener Cc: Jan Hubicka , gcc-patches@gcc.gnu.org Subject: Re: Use separate sections to stream non-trivial constructors Message-ID: <20140711120855.GD11760@kam.mff.cuni.cz> References: <20140711091810.GC30037@kam.mff.cuni.cz> <20140711115320.GA27809@atrey.karlin.mff.cuni.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-07/txt/msg00803.txt.bz2 > > Well, just make them regular (anonymous) VAR_DECLs then ... (the fact > that a CONST_DECL is anonymous is probably the only real difference - > and that they are mergeable by content). Something like that, perhaps. Plan to do that incrementally - having them in symbol tabel first is an important step. There is also an option to update CONST_DECL into VAR_DECL when it is being turned into hidden. Currently things are bit inflexible because we still make difference between const decl and var decl in tree representation. Once I finish my transition to push out DECL_WITH_VIS and DECL_NON_COMMON fields, we can turn CONST_DECL into VAR_DECL with special flag saying that symbol name/address value doesn't matter. This and, of course, cleaning up constpool mess can get me occupised for months ;) Honza