diff options
author | Andrew Stubbs <ams@codesourcery.com> | 2021-12-16 15:30:05 +0000 |
---|---|---|
committer | Andrew Stubbs <ams@codesourcery.com> | 2022-01-17 15:55:37 +0000 |
commit | 450c85b81f4dd67bf6211d307afdc0f3c07ef44f (patch) | |
tree | bacf240f314b34f71524f019e1744f713021a1dc /gcc/cp/parser.c | |
parent | 1374d4b963a6ac2e0ec1645c09e5162e68b009d6 (diff) | |
download | gcc-450c85b81f4dd67bf6211d307afdc0f3c07ef44f.zip gcc-450c85b81f4dd67bf6211d307afdc0f3c07ef44f.tar.gz gcc-450c85b81f4dd67bf6211d307afdc0f3c07ef44f.tar.bz2 |
OpenMP: allow requires dynamic_allocators
There's no need to reject the dynamic_allocators requires directive because
we actually do support the feature, and it doesn't have to actually "do"
anything.
gcc/c/ChangeLog:
* c-parser.c (c_parser_omp_requires): Don't "sorry" dynamic_allocators.
gcc/cp/ChangeLog:
* parser.c (cp_parser_omp_requires): Don't "sorry" dynamic_allocators.
gcc/fortran/ChangeLog:
* openmp.c (gfc_match_omp_requires): Don't "sorry" dynamic_allocators.
gcc/testsuite/ChangeLog:
* gfortran.dg/gomp/requires-8.f90: Reinstate dynamic allocators
requirement.
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index c06ed5e..97e9aea 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -46512,7 +46512,7 @@ cp_parser_omp_requires (cp_parser *parser, cp_token *pragma_tok) cp_parser_skip_to_pragma_eol (parser, pragma_tok); return false; } - if (p) + if (p && this_req != OMP_REQUIRES_DYNAMIC_ALLOCATORS) sorry_at (cloc, "%qs clause on %<requires%> directive not " "supported yet", p); if (p) |