public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Steve Kargl <sgk@troutmask.apl.washington.edu>
To: Thomas Koenig <tkoenig@netcologne.de>
Cc: "fortran@gcc.gnu.org" <fortran@gcc.gnu.org>,
	       gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [patch, fortran] PR 84487
Date: Sat, 28 Sep 2019 16:53:00 -0000	[thread overview]
Message-ID: <20190928165318.GB15489@troutmask.apl.washington.edu> (raw)
In-Reply-To: <23849d2b-9339-95d8-8589-f9fdea4b8e9e@netcologne.de>

On Wed, Sep 25, 2019 at 10:24:51PM +0200, Thomas Koenig wrote:
> 
> this patch makes sure that the __def_init variables, which have been
> generated for normal allocatable arrays for quite some time, do not fill
> up huge amounts of space in the object files with zeros. This is done by
> not marking them read-only, which means that they are put into the BSS.
> 
> Setting DECL_ARTIFICIAL on the __def_init variable makes sure it
> is handled as predetermined shared in gfc_omp_predetermined_sharing .
> 
> This is not an optimum solution. As the xfail shows, we are now missing
> out on an optimization (as seen by the xfail that is now needed), and
> having large all-zero variables seems wrong. However, this patch solves
> the most urgent problem in this respect.
> 
> This is an 8/9/10 regression, so I would like to commit this to
> all of these branches (waiting before gcc 9 reopens, of course).
> 
> I wold then close the PR and open an enchancement PR for the xfail
> and the design improvement.
> 
> Test case... I'm not sure what to test for.
> 
> Regression-tested. OK for all affected branches?
> 

Your approach seems reasonable to me.  You may want to
ping Jakub or Tobias as this affects openmp.

-- 
Steve

  reply	other threads:[~2019-09-28 16:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-25 20:24 Thomas Koenig
2019-09-28 16:53 ` Steve Kargl [this message]
2019-09-29 22:20   ` Thomas Koenig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190928165318.GB15489@troutmask.apl.washington.edu \
    --to=sgk@troutmask.apl.washington.edu \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=tkoenig@netcologne.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).