diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2023-12-18 17:25:17 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2023-12-19 12:15:17 +0100 |
commit | cf840a7f7c14242ab7018071310851486a557d4f (patch) | |
tree | e3801ba7149cb935aa0dd6539f1fdbcecaaf4e85 /gcc/ada | |
parent | 1555a5e24cc3b6231491d9760e916a4193255b09 (diff) | |
download | gcc-cf840a7f7c14242ab7018071310851486a557d4f.zip gcc-cf840a7f7c14242ab7018071310851486a557d4f.tar.gz gcc-cf840a7f7c14242ab7018071310851486a557d4f.tar.bz2 |
Unify OpenACC/C and C++ behavior re duplicate OpenACC 'declare' directives for 'extern' variables [PR90868]
This likely still isn't what OpenACC actually intends (addressing that is for
another day), but at least we now misbehave consistently for C and C++.
PR c++/90868
gcc/cp/
* parser.cc (cp_parser_oacc_declare): For "more than once", check
the DECL that we're actually setting the attribute on.
gcc/testsuite/
* c-c++-common/goacc/declare-1.c: Adjust.
* c-c++-common/goacc/declare-2.c: Likewise.
Diffstat (limited to 'gcc/ada')
0 files changed, 0 insertions, 0 deletions