]> git.ipfire.org Git - people/ms/gcc.git/commit
OpenMP: Document ompx warnings + add Fortran omx warning [PR106670]
authorTobias Burnus <tobias@codesourcery.com>
Thu, 8 Sep 2022 19:03:21 +0000 (21:03 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 8 Sep 2022 19:03:21 +0000 (21:03 +0200)
commit264deecb16abcfc8ca8efe9b94b0ad55febd55cc
tree991f5d125971b4361fd84221dd642f187358361c
parent4f05ff34d63b582557918189528531f35041ef0e
OpenMP: Document ompx warnings + add Fortran omx warning [PR106670]

omp/ompx sentinels are for vendor extensions; as they might be required for
the correctness of the program, a warning should be printable. This patch
documents in the OpenMP 5.2 table the existing warnings, including the new
warning for for fixed source form Fortran.

PR fortran/106670

gcc/fortran/ChangeLog:

* scanner.cc (skip_fixed_omp_sentinel): Add -Wsurprising warning
for 'omx' sentinels with -fopenmp.
* invoke.texi (-Wsurprising): Document additional warning case.

libgomp/ChangeLog:

* libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.

gcc/testsuite/ChangeLog:

* c-c++-common/gomp/ompx-1.c: New test.
* c-c++-common/gomp/ompx-2.c: New test.
* g++.dg/gomp/ompx-attrs-1.C: New test.
* gfortran.dg/gomp/ompx-1.f90: New test.
* gfortran.dg/gomp/omx-1.f: New test.
* gfortran.dg/gomp/omx-2.f: New test.
gcc/fortran/invoke.texi
gcc/fortran/scanner.cc
gcc/testsuite/c-c++-common/gomp/ompx-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/gomp/ompx-2.c [new file with mode: 0644]
gcc/testsuite/g++.dg/gomp/ompx-attrs-1.C [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/ompx-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/omx-1.f [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/omx-2.f [new file with mode: 0644]
libgomp/libgomp.texi