From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95293 invoked by alias); 17 Apr 2019 11:06:31 -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 95277 invoked by uid 89); 17 Apr 2019 11:06:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= 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 ESMTP; Wed, 17 Apr 2019 11:06:30 +0000 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E4A3564474; Wed, 17 Apr 2019 11:06:28 +0000 (UTC) Received: from oldenburg2.str.redhat.com (dhcp-192-219.str.redhat.com [10.33.192.219]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BE5A719C71; Wed, 17 Apr 2019 11:06:26 +0000 (UTC) From: Florian Weimer To: Richard Biener Cc: Thomas =?utf-8?Q?K=C3=B6nig?= , Jakub Jelinek , Segher Boessenkool , Thomas Koenig , Jan Hubicka , "fortran\@gcc.gnu.org" , gcc-patches Subject: Re: [patch] Fix PR 84487, large rodata increase in tonto and other programs References: <9dcba167-4fa0-7c7e-aee4-74a29a8b32cb@netcologne.de> <87lg0b4h7g.fsf@oldenburg2.str.redhat.com> <20190415195324.GV8599@gate.crashing.org> <871s221eh8.fsf@oldenburg2.str.redhat.com> <20190416101616.GB21066@tucnak> <6DB71AF1-D01A-4288-9526-3B577AA8C15A@tkoenig.net> Date: Wed, 17 Apr 2019 11:09:00 -0000 In-Reply-To: (Richard Biener's message of "Wed, 17 Apr 2019 10:41:39 +0200") Message-ID: <87lg087uxa.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00696.txt.bz2 * Richard Biener: > On Wed, Apr 17, 2019 at 9:19 AM Thomas K=C3=B6nig wrote: >> >> Hi, >> >> thanks a lot for the extensive discussion :-) >> >> How should we now proceed, first for gcc 9, snd then for backporting? >> Use Richard=E2=80=98s patch with the corresponding Fortran FE change? > > Btw, for the testcase the fortran FE could also simply opt to not > make def_init TREE_READONLY. Or even better, for all-zero > initialization omit the explicit initialization data and instead > mark it specially in the vtable (just use a NULL initializer > denoting zero-initialization?). Even .bss costs (runtime) memory. Not just that, .bss adds to the commit charge, while .rodata would not. So it's not clear that using .bss for zero constants is always a win. Thanks, Florian