]> gcc.gnu.org Git - gcc.git/commit
OpenMP/Fortran: Permit impure ELEMENTAL in omp directives
authorTobias Burnus <tobias@codesourcery.com>
Tue, 16 Jun 2020 13:11:12 +0000 (15:11 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 16 Jun 2020 13:11:12 +0000 (15:11 +0200)
commit6a893783f972a2c5d53186dfa15e0a7b8f1b2990
tree53cf55541468dc99aafd78cb917dceeaabd3400b
parentf193b29e42bcca7b92752d98d3a38dc9df884bef
OpenMP/Fortran: Permit impure ELEMENTAL in omp directives

OpenMP since 4.5 permits IMPURE ELEMENTAL in directives and
the code already only checked for PURE.

gcc/fortran/ChangeLog:

* parse.c (decode_omp_directive): Remove "or ELEMENTAL"
from "in PURE" error message.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/pr79154-1.f90: Update dg-*;
add an impure elemental example.
* gfortran.dg/gomp/pr79154-2.f90: Likewise.
gcc/fortran/parse.c
gcc/testsuite/gfortran.dg/gomp/pr79154-1.f90
gcc/testsuite/gfortran.dg/gomp/pr79154-2.f90
This page took 0.061089 seconds and 5 git commands to generate.