From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96493 invoked by alias); 31 May 2015 00:52:25 -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 96471 invoked by uid 89); 31 May 2015 00:52:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 31 May 2015 00:52:23 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 59FC1365063; Sun, 31 May 2015 00:52:22 +0000 (UTC) Received: from reynosa.quesejoda.com (vpn-49-19.rdu2.redhat.com [10.10.49.19]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t4V0qJb2010288; Sat, 30 May 2015 20:52:21 -0400 Message-ID: <556A5B43.7050105@redhat.com> Date: Sun, 31 May 2015 07:53:00 -0000 From: Aldy Hernandez User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Jason Merrill , Richard Biener , Jan Hubicka CC: gcc-patches Subject: Re: [patch 10/10] debug-early merge: compiler proper References: <554C060F.6000609@redhat.com> <555CAD35.5040304@redhat.com> <5565BB13.6040205@redhat.com> <5567643C.1020306@redhat.com> <55677C05.6040302@redhat.com> <5568B32A.1010100@redhat.com> <78B564EA-B9C4-4351-BFD0-9C78EA4C2528@gmail.com> <5568BF0A.7070903@redhat.com> In-Reply-To: <5568BF0A.7070903@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-05/txt/msg02879.txt.bz2 On 05/29/2015 03:33 PM, Jason Merrill wrote: > On 05/29/2015 03:26 PM, Richard Biener wrote: >> ISTR I had to mark the gimple reg used for the bound as >> non-DECL_IGNORED for the LTO stuff. > > Let's go with that, then. Well, I did play around with that option originally, but temporaries do not end up in the symbol table, so we won't see them to feed them to late_global_decl. We'd have to save them on the side to make them survive until late and then feed them to late_global_decl separately (which I'm sure Richi will hate), or we could drill down through the array type/domain to find the gimple register (which now has an early DIE) and call late_global_decl on it. However, this last option sounds like a variant of my original idea-- fill the bound location later, with the unfortunate side-effect of having an additional DIE (the gimple register DIE). I guess we could iterate through all the gimple registers late that have DECL_IGNORED_P == NULL and call late_global_decl on them, but I dislike this as well. Actually, all ideas involving generating DIEs for temporaries involve an additional DIE we wouldn't otherwise get. Can I clean up my original idea instead? Aldy