OpenMP/Fortran: Permit impure ELEMENTAL in omp directives
authorTobias Burnus <tobias@codesourcery.com>
Tue, 16 Jun 2020 18:17:20 +0000 (20:17 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 16 Jun 2020 18:17:20 +0000 (20:17 +0200)
commit244ed2adaa3d349d381ca6ce090c2fa69b6e8d8b
tree8a2c79f3be0c90898bd28d69243dc257027d3991
parent04afaf4575ff239279cfa34aff17101345451965
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. – Followup for
-fopenmp-simd.

gcc/fortran/ChangeLog:

* parse.c (decode_omp_directive): Remove "or ELEMENTAL"
from "in PURE" error message also for -fopenmp-simd.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/pr79154-simd.f90: New test.
gcc/fortran/parse.c
gcc/testsuite/gfortran.dg/gomp/pr79154-simd.f90 [new file with mode: 0644]