[Patch, Fortran] Reject OpenMP parallelization for DO CONCURRENT

Tobias Burnus burnus@net-b.de
Sun May 11 18:28:00 GMT 2014


While it would be nice to support "!$OMP do" for "do concurrent" loops, 
the OpenMP spec does not support it, yet. (Syntactically, it is a not a 
that simple feature as do concurrent can optionally have a MASK=, which 
has to be evaluated before the loop.)

Thus, this patch avoids an ICE by simply rejecting this feature. That's 
also in line with the other compilers I tried: they either ICE or reject 
it with an error message.

Note: The patch is based on Jakub's OpenMP4 patch (i.e. it uses "name" 
instead of the hard-coded "!$omp do").

Build and regtested on x86-64-gnu-linux.
OK for the trunk? (When/if OpenMP4 support is backported, I think this 
patch should also be included.)

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openmp.diff
Type: text/x-patch
Size: 1316 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140511/89f6e863/attachment.bin>


More information about the Gcc-patches mailing list