aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-loop-distribution.c
diff options
context:
space:
mode:
authorTobias Burnus <tburnus@baylibre.com>2025-05-26 19:50:40 +0200
committerTobias Burnus <tburnus@baylibre.com>2025-05-26 19:57:34 +0200
commitd390c7e5bd03490485a0b036add096e2e8b811b9 (patch)
tree123d6810d3bf5922191fef66f8300324eb4ec2a0 /gcc/tree-loop-distribution.c
parentcf619d4a366ad428421fdb7ad617b4749799cf93 (diff)
downloadgcc-d390c7e5bd03490485a0b036add096e2e8b811b9.zip
gcc-d390c7e5bd03490485a0b036add096e2e8b811b9.tar.gz
gcc-d390c7e5bd03490485a0b036add096e2e8b811b9.tar.bz2
c-c++-common/gomp/{attrs-,}metadirective-3.c: Fix expected result [PR118694]
With compilation for nvptx enabled, two issues showed up: (a) "error: 'target' construct with nested 'teams' construct contains directives outside of the 'teams' construct" See PR comment 9 why this is difficult to fix. Solution: Add dg-bogus and accept/expect the error for 'target offload_nvptx'. (b) The assumptions about the dump for 'target offload_nvptx' were wrong as the metadirective was already expanded to a OMP_NEXT_VARIANT construct such that no 'omp metadirective' was left in either case. Solution: Check that no 'omp metadirective' is left; additionally, expect either OMP_NEXT_VARIANT (when offload_nvptx is available) or no 'teams' directive at all (if not). gcc/testsuite/ChangeLog: PR middle-end/118694 * c-c++-common/gomp/attrs-metadirective-3.c: Change to never expect 'omp metadirective' in the dump. If !offload_nvptx, check that no 'teams' shows up in the dump; for offload_nvptx, expect OMP_NEXT_VARIANT and an error about directive between 'target' and 'teams'. * c-c++-common/gomp/metadirective-3.c: Likewise. (cherry picked from commit 5d6ed6d604ff949b650e48fa4eaed3ec8b6489c1)
Diffstat (limited to 'gcc/tree-loop-distribution.c')
0 files changed, 0 insertions, 0 deletions