Re: Fortran: With OpenACC, ignore OpenMP's cond comp sentinels [PR98011]

2020-11-30 Thread Tobias Burnus
... and now committed as r11-5572-g1d6f6ac693a8601bef9fe4ba72eb6fbf7b60b5cd. Thanks again for the suggestions! Tobias On 27.11.20 23:14, Tobias Burnus wrote: On 27.11.20 18:31, Jakub Jelinek via Fortran wrote: Depends on what does the OpenACC standard say. If it has similar wording to OpenMP

Re: Fortran: With OpenACC, ignore OpenMP's cond comp sentinels [PR98011]

2020-11-27 Thread Tobias Burnus
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter Fortran: With OpenACC, ignore OpenMP's cond comp sentinels gcc/fortran/ChangeLog: PR fortran/98011 * scan

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

2020-11-27 Thread Jakub Jelinek via Gcc-patches
On Fri, Nov 27, 2020 at 06:18:46PM +0100, Tobias Burnus wrote: > '!' 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. > > Currentl

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

2020-11-27 Thread Tobias Burnus
r: Thomas Heurung, Alexander Walter Fortran: With OpenACC, ignore OpenMP's cond comp sentinels gcc/fortran/ChangeLog: PR fortran/98011 * scanner.c (skip_free_comments): If only -fopenacc but not -fopenmp is used, ignore OpenMP's conditional compilation sentinels. gcc/testsuite/Chan