Fortran: With OpenACC, ignore OpenMP's cond comp sentinels

Tobias Burnus tobias@codesourcery.com
Fri Nov 27 17:18:46 GMT 2020


'!' starts in Fortran a comment (+ fixed-form variants)
OpenACC defines as sentinel "!$acc" (likewise)
But OpenMP has two: Besides "!$omp" there is additionally
"!$ " (with space) to permit conditional compilation.

Currently, -fopenacc also executes the '!$ ' code, which I
think does not make sense.

Hence, this patch ignores it.
Comments? If not, I intent to commit it in the next days

Tobias

-----------------
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: oacc-scanner.diff
Type: text/x-patch
Size: 2186 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20201127/06af6288/attachment.bin>


More information about the Fortran mailing list