Handle 'omp declare target' attribute set for both OpenACC and OpenMP 'target' [PR894...
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 4 Mar 2020 16:58:33 +0000 (17:58 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Fri, 10 Apr 2020 13:34:22 +0000 (15:34 +0200)
commitff3f862b451496dd4afbe2dbfae82afab59a42c6
treeec5183c87d18e1eccd02b89002e63bab156662a6
parent7478addd84ab6808307f4f285ab05f3a76bbb257
Handle 'omp declare target' attribute set for both OpenACC and OpenMP 'target' [PR89433, PR93465]

... which as of PR89433 commit b48f44bf77a39fefc238a16cf1225c6464c82406 causes
an ICE.  Not sure if this is actually supposed to be valid or invalid code.
Until the interactions between OpenACC and OpenMP 'target' get defined
properly, make this a compile-time error.

gcc/
PR middle-end/89433
PR middle-end/93465
* omp-general.c (oacc_verify_routine_clauses): Diagnose if
"#pragma omp declare target" has also been applied.
gcc/testsuite/
PR middle-end/89433
PR middle-end/93465
* c-c++-common/goacc-gomp/pr93465-1.c: New file.
gcc/ChangeLog
gcc/omp-general.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc-gomp/pr93465-1.c [new file with mode: 0644]