public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Janus Weil <janus@gcc.gnu.org>
To: Fritz Reese <fritzoreese@gmail.com>
Cc: Thomas Koenig <tkoenig@netcologne.de>,
	fortran <fortran@gcc.gnu.org>,
		gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [Patch, Fortran] PR 85599: warn about short-circuiting of logical expressions for non-pure functions
Date: Wed, 18 Jul 2018 18:43:00 -0000	[thread overview]
Message-ID: <CAKwh3qj2zdFD1KFeekP=u+Nu7oeZ9OiZ5wPVSP=7u9CCEAB0Yw@mail.gmail.com> (raw)
In-Reply-To: <CAKwh3qjik5=t5OBf_Wmf-b=DrdcxuhL4O5EXY8aEM1Zw+G7eug@mail.gmail.com>

I have now finally committed this as r262860. Thanks everyone for
helping to bring this to a constructive end (and especially to Thomas
for the useful input and for putting up with me).

Cheers,
Janus

PS: The next step here would be to tackle PR57160 and avoid the
short-circuiting with -O0 (I might actually look into that soon). Once
that is done we could even talk about further optimizations (as
previously suggested by Thomas), provided they are only done with
-O... flags and warned about with appropriate -W... flags.



2018-07-17 21:21 GMT+02:00 Janus Weil <janus@gcc.gnu.org>:
> 2018-07-17 20:55 GMT+02:00 Fritz Reese <fritzoreese@gmail.com>:
>> On Tue, Jul 17, 2018 at 2:36 PM Janus Weil <janus@gcc.gnu.org> wrote:
>>>
>>> 2018-07-17 19:34 GMT+02:00 Thomas Koenig <tkoenig@netcologne.de>:
>>> > Am 17.07.2018 um 19:19 schrieb Janus Weil:
>> [...]
>>>
>>> I do hope that things have converged by now and that this will be the
>>> last incarnation of the patch. If there is no more feedback in the
>>> next 24 hours, I'll commit this tomorrow.
>>
>> I hate to be pedantic but it is still worth fixing the style discrepancies:
>
> Oh, sure. Such things are non-optional in GCC, I was just a bit sloppy
> with this. Thanks for catching! Should be fixed in the attached
> update.
>
>
>> My only other comment is I am not sure why you make
>> pure_function()/gfc_implicit_pure_function() public... but I have no
>> real problem with it. Just means rebuilding all of f951 instead of one
>> object. :-(
>
> Well, originally they were only used in resolve.c, but now I need them
> also in frontend-passes.c, therefore they have to be public.
>
>
>> Otherwise if the patch does what it appears to do and passes tests
>> then it seems fine to me.
>
> Thanks for the review!
>
> Cheers,
> Janus

  reply	other threads:[~2018-07-18 18:43 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-11 21:06 Janus Weil
2018-07-12 19:43 ` Janus Weil
2018-07-13  8:03   ` Janus Weil
2018-07-15 20:39     ` Janus Weil
2018-07-15 20:57       ` Thomas Koenig
2018-07-16  8:07         ` Janus Weil
2018-07-16 19:51           ` Thomas Koenig
2018-07-17  5:08             ` Janus Weil
2018-07-17  7:52               ` Janus Weil
2018-07-17 14:32                 ` Janus Weil
2018-07-17 15:19                   ` Fritz Reese
2018-07-17 17:19                     ` Janus Weil
2018-07-17 17:34                       ` Thomas Koenig
2018-07-17 18:36                         ` Janus Weil
2018-07-17 18:55                           ` Fritz Reese
2018-07-17 19:21                             ` Janus Weil
2018-07-18 18:43                               ` Janus Weil [this message]
2018-07-12 11:17 Dominique d'Humières
2018-07-12 14:12 ` Janus Weil
2018-07-12 14:35   ` Dominique d'Humières
2018-07-12 14:55     ` Janus Weil
2018-07-12 19:53       ` Thomas Koenig
2018-07-12 20:03         ` Janus Weil

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='CAKwh3qj2zdFD1KFeekP=u+Nu7oeZ9OiZ5wPVSP=7u9CCEAB0Yw@mail.gmail.com' \
    --to=janus@gcc.gnu.org \
    --cc=fortran@gcc.gnu.org \
    --cc=fritzoreese@gmail.com \
    --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).