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

Tobias Burnus tobias@codesourcery.com
Wed Aug 18 20:01:09 GMT 2021


On 18.08.21 13:18, Jakub Jelinek wrote:

>> gcc/testsuite/ChangeLog:
>>      * gfortran.dg/nothing-1.f90: New test.
>>      * gfortran.dg/nothing-2.f90: New test.

While testing manually with -fopenmp, I did manage to place it for the
testsuite run outside the 'gomp/' subdirectory. – Now fixed → attachment.

For completeness (as already discussed on IRC):

>> +  !$omp nothing
>> +  if (.false.) &
>> +& &    !$omp nothing
>> +    i = i + 1

This indeed does not trigger the sentinel (as also discussed on IRC and as comment in the test).
While
   if (x) &
     !$omp nothing
gives an error but it is not obviously invalid. → That's now OpenMP spec bug #2914.

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: committed.diff
Type: text/x-patch
Size: 1576 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210818/78833371/attachment.bin>


More information about the Gcc-patches mailing list