[Patch] Fortran: Add 'device_type' clause to OpenMP's declare target

Tobias Burnus tobias@codesourcery.com
Fri Aug 7 15:03:34 GMT 2020

This patch adds the device_type(any|nohost|host)
clause for 'omp declare target' to Fortran.

In OpenMP 5.0, it has no effect on variables but
only on procedures – in TR8 (and later), it also
affects variables.

This patch adds this clause to either – except that
the middle end does not seem to like 'target link'
with that clause – for normal variables, common
blocks are accepted. (In line with OpenMP 5, the
middle end ignores the clause for variables.)



Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: omp-devtype.diff
Type: text/x-patch
Size: 18073 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200807/37989057/attachment-0001.bin>

More information about the Gcc-patches mailing list