From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128786 invoked by alias); 8 Apr 2019 09:33:46 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 128771 invoked by uid 89); 8 Apr 2019 09:33:46 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*f:sk:db3a5e9, H*i:sk:db3a5e9, aph@redhat.com, U*aph X-HELO: mail-lj1-f176.google.com Received: from mail-lj1-f176.google.com (HELO mail-lj1-f176.google.com) (209.85.208.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 08 Apr 2019 09:33:45 +0000 Received: by mail-lj1-f176.google.com with SMTP id k8so10552543lja.8; Mon, 08 Apr 2019 02:33:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Z/BBwFsK4fbOWkeymQ0I0eXZq6sTKMZlw9A7y0OVUkI=; b=XjGSU8uCLIECSlz5GsAP8r3veGV6HRzAtDT3vf2kNmTLFtFRFRxtDXwUoe9697imrt GzRLsU2N6QCWvFq0US5zdQH+nEPsHckzDPMZw1DdToWU+xYWT+73N4h6qg+P46YY6PMi HJ0qSVxagx//+kHVK8XPhTr2Ohe8B+XkjbJyWzEoCbZaFkqAT6IJHvcxQtKAaR5jV9aD Oh1pFuG7xpNkyHtrNryRDmO8Vkni/ydgdrPm6UHCDxzxhD8HSUuJ4m1pK5R+4cZ3wp7I YGIwb5lQodOaEoTJzqWX565t1i4HkBCxhTgjmT2U3AmFhZfD+IZ13PYiyUPs8ZOBqjKK RNXQ== MIME-Version: 1.0 References: <87ef6koy6f.fsf@igel.home> <3930c1e6-fa7c-746b-c21a-8e8fa457deec@netcologne.de> <871s2ihkfs.fsf@igel.home> <361F609E-2767-4AF6-BD0C-E41F4666AAF2@gmail.com> <441499d5-9b84-2d5e-e152-654f4014c0f4@netcologne.de> In-Reply-To: From: Richard Biener Date: Mon, 08 Apr 2019 09:33:00 -0000 Message-ID: Subject: Re: Putting an all-zero variable into BSS To: Andrew Haley Cc: Thomas Koenig , gcc mailing list , "fortran@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00111.txt.bz2 On Mon, Apr 8, 2019 at 10:38 AM Andrew Haley wrote: > > On 4/7/19 5:03 PM, Thomas Koenig wrote: > > Hi Richard, > > > >> I don't know without looking, but I'd start at assemble_variable in varasm.c. > > > > Thanks. I've done that, and this is what a patch could look like. > > However, I will not have time to formally submit this until next > > weekend. > > > > In the meantime, comments are still welcome :-) > > Did you look at > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83100 > > This was the change that caused this behaviour. Actually that just changed the behavior for DECL_COMMONs which may of course match the fortran case here in case you bisected this. OTOH DECL_COMMONs are tentative and do not have an initializer (and not go to .rodata either). Richard. > > -- > Andrew Haley > Java Platform Lead Engineer > Red Hat UK Ltd. > EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671