Tobias Burnus fcff9c3dad OpenMP: Update OMP_REQUIRES_TARGET_USED for declare_target + interop
Older versions of the OpenMP specification were not clear about what counted
as device usage. Newer (like TR13) are rather clear. Hence, this commit adds
GCC's target-used flag also when a 'declare target' or an 'interop' are
encountered.  (The latter only to Fortran as C/C++ parsing support is still
missing.) TR13 also lists 'dispatch' as target-used construct (as it has the
device clause) and 'device_safesync' as clause with global requirement
property, but both are not yet supported in GCC.

gcc/c/ChangeLog:

	* c-parser.cc (c_parser_omp_declare_target): Set target-used bit
	in omp_requires_mask.

gcc/cp/ChangeLog:

	* parser.cc (cp_parser_omp_declare_target): Set target-used bit
	in omp_requires_mask.

gcc/fortran/ChangeLog:

	* parse.cc (decode_omp_directive): Set target-used bit of
	omp_requires_mask when encountering the declare_target or interop
	directive.

gcc/testsuite/ChangeLog:

	* gfortran.dg/gomp/interop-1.f90: Add dg-error for missing
	omp requires requirement and declare_variant usage.
	* gfortran.dg/gomp/requires-8.f90: Likewise.
2024-09-25 13:57:02 +02:00
2024-05-09 10:58:01 +00:00
2024-04-17 00:18:45 +00:00
2024-09-19 00:18:55 +00:00
2024-07-12 00:17:52 +00:00
2024-07-08 00:17:01 +00:00
2024-04-16 00:18:06 +00:00
2024-09-25 00:18:47 +00:00
2024-01-03 12:19:35 +01:00
2024-09-03 00:21:29 +00:00
2024-08-06 00:17:19 +00:00
2024-09-21 00:16:55 +00:00
2024-09-20 17:36:00 +00:00
2024-04-03 00:17:29 +00:00
2024-09-24 00:18:14 +00:00
2024-09-25 00:18:47 +00:00
2024-09-25 00:18:47 +00:00
2024-05-30 00:16:44 +00:00
2024-04-29 11:39:58 -07:00
2024-09-25 00:18:47 +00:00
2024-08-02 00:18:55 +00:00
2024-09-08 00:17:46 +00:00
2024-09-24 00:18:14 +00:00
2024-09-24 00:18:14 +00:00
2024-09-03 00:21:29 +00:00
2024-08-29 00:19:25 +00:00
2024-09-06 00:19:10 +00:00
2024-05-09 10:58:01 +00:00
2024-09-25 00:18:47 +00:00
2024-09-03 00:21:29 +00:00
2024-08-24 00:18:13 +00:00
2024-07-20 00:17:53 +00:00
2023-10-23 00:16:43 +00:00
2024-09-12 22:51:00 +08:00
2024-09-25 00:18:47 +00:00
2024-09-18 11:51:45 -06:00
2024-09-18 11:51:45 -06:00

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.
Description
No description provided
Readme 1.5 GiB
Languages
C++ 30.7%
C 30%
Ada 14.5%
D 6.1%
Go 5.7%
Other 12.5%