public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Tobias Burnus <tobias@codesourcery.com>
To: Jakub Jelinek <jakub@redhat.com>
Cc: gcc-patches <gcc-patches@gcc.gnu.org>, fortran <fortran@gcc.gnu.org>
Subject: Re: [Patch] Fortran/OpenMP: Reject non-scalar 'holds' expr in 'omp assume(s)' [PR107706] (was: [PR107424])
Date: Thu, 12 Jan 2023 13:24:01 +0100	[thread overview]
Message-ID: <0ceb0a87-4a7b-91ab-a259-870b63c3d847@codesourcery.com> (raw)
In-Reply-To: <Y7/jTGJVQ5K0yiTk@tucnak>

First, I messed up the PR number – it should be PR107706.

On 12.01.23 11:39, Jakub Jelinek wrote:
> On Thu, Jan 12, 2023 at 11:22:40AM +0100, Tobias Burnus wrote:
>> Rather obvious fix for that ICE.
>>
>> Comments? If there are none, I will commit it later as obvious.
> I think the spec should be clarified, unlike clauses like if, novariants,
> nocontext, indirect, final clause operands where we specify the argument
> to be expression of logical type and glossary term says that OpenMP logical
> expression [...] But for the holds clause, all we say is that holds clause
> isn't inarguable and [...] that the listed expression evaluates to true in
> the assumption scope. [...]
> so I think making it clear that holds argument is expression of logical type
> would be useful.

Actually, the spec does have (internally) hold-expr = "OpenMP logical
expression" in a JSON file but that does not show up in the generated
PDF. I have now filed an OpenMP spec issue for it (#3453).

> That said, the patch is ok, a rank > 1 expression can't be considered to
> evaluate to true...

Thanks! Committed as r13-5118-g2ce55247a8bf32985a96ed63a7a92d36746723dc
(with the fixed PR number).

Thanks.

-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955

      reply	other threads:[~2023-01-12 12:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-12 10:22 [Patch] Fortran/OpenMP: Reject non-scalar 'holds' expr in 'omp assume(s)' [PR107424] Tobias Burnus
2023-01-12 10:39 ` Jakub Jelinek
2023-01-12 12:24   ` Tobias Burnus [this message]

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=0ceb0a87-4a7b-91ab-a259-870b63c3d847@codesourcery.com \
    --to=tobias@codesourcery.com \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    /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).