Re: [Patch] OpenMP/Fortran: Permit impure ELEMENTAL in omp directives

2020-06-16 Thread Tobias Burnus
Ups. Good catch. – I think the follow-up patch is obvious. Unless there are comments, I will commit it as such. Tobias On 6/16/20 4:41 PM, Thomas Schwinge wrote: Hi! On 2020-06-16T13:27:43+0200, Tobias Burnus wrote: when looking into a PURE/ELEMENTAL issue with OpenACC, Thomas and I came ac

Re: [Patch] OpenMP/Fortran: Permit impure ELEMENTAL in omp directives

2020-06-16 Thread Thomas Schwinge
Hi! On 2020-06-16T13:27:43+0200, Tobias Burnus wrote: > when looking into a PURE/ELEMENTAL issue with OpenACC, Thomas and > I came across the analogous OpenMP code – and stumbled over > ELEMENTAL. > > In Fortran, ELEMENTAL implies PURE but one can also have an IMPURE > ELEMENTAL procedure. > > As

Re: [Patch] OpenMP/Fortran: Permit impure ELEMENTAL in omp directives

2020-06-16 Thread Jakub Jelinek via Gcc-patches
On Tue, Jun 16, 2020 at 01:27:43PM +0200, Tobias Burnus wrote: > when looking into a PURE/ELEMENTAL issue with OpenACC, Thomas and > I came across the analogous OpenMP code – and stumbled over > ELEMENTAL. > > In Fortran, ELEMENTAL implies PURE but one can also have an IMPURE > ELEMENTAL procedure

[Patch] OpenMP/Fortran: Permit impure ELEMENTAL in omp directives

2020-06-16 Thread Tobias Burnus
Hi all, when looking into a PURE/ELEMENTAL issue with OpenACC, Thomas and I came across the analogous OpenMP code – and stumbled over ELEMENTAL. In Fortran, ELEMENTAL implies PURE but one can also have an IMPURE ELEMENTAL procedure. As PR 79154 quotes, OpenMP 4 had: "OpenMP directives may not a