From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0FD9F38582B8; Thu, 8 Sep 2022 19:04:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0FD9F38582B8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662663850; bh=0Iwbl/NV03kBdw8+BoPKc7wL5knFzgnAp7q6g5WQ5aU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vxChTUrkNo6ldEUUuVJrBYGlofpnDI7avsRdzFJ7fT9wohEc+nvpMhSHsdx0vu9V5 JtA/TPSKB1K0uXPf39mt+QhAtR1krH2iqHe/HG2fxrdwUyIVkn36JbzMNFQx9VR6AZ acm2c9B4OBiKyKYQa609PFVKvw/keCrm3Qe48JPw= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/106670] [OpenMP][5.2] Warn for unknown '!$ompx' (!$omx') sentinels Date: Thu, 08 Sep 2022 19:04:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: diagnostic, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106670 --- Comment #1 from CVS Commits --- The master branch has been updated by Tobias Burnus : https://gcc.gnu.org/g:264deecb16abcfc8ca8efe9b94b0ad55febd55cc commit r13-2552-g264deecb16abcfc8ca8efe9b94b0ad55febd55cc Author: Tobias Burnus Date: Thu Sep 8 21:03:21 2022 +0200 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 pat= ch 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.=