(Re: [committed] openmp: Add nothing directive support)

Tobias Burnus tobias@codesourcery.com
Wed Aug 18 11:10:12 GMT 2021


On 18.08.21 11:18, Jakub Jelinek wrote:

> As has been clarified, it is intentional that nothing directive is accepted
> in substatements of selection and looping statements and after labels and
> is handled as if the directive just isn't there ...

And here is the Fortran version; as ST_NONE is used, it is also just ignored like a comment.

However, there is a pure-procedure check, which triggers. I think that's
fine and a spec issue. (Tracked on the OpenMP side as Issue 2913.)

I think otherwise the patch is boring - as boring as 'omp nothing' itself
(outside its use in metadirectives).

Tobias

-----------------
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: omp-nothing-fortran.diff
Type: text/x-patch
Size: 3346 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210818/03bdcaf2/attachment-0001.bin>


More information about the Gcc-patches mailing list