]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP: Skip target-nesting warning for reverse offload
authorTobias Burnus <tobias@codesourcery.com>
Tue, 5 Jul 2022 06:36:42 +0000 (08:36 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 5 Jul 2022 06:36:42 +0000 (08:36 +0200)
commitd89bf164516d06684f120a42d9f8d351f8e5dd2f
treec471ed66feb29b476d25458bd94db143f0200d6f
parentbf4e0a66d0027fc20f216afc8e84d8ae35baf0ca
OpenMP: Skip target-nesting warning for reverse offload

gcc/ChangeLog:

* omp-low.cc (check_omp_nesting_restrictions): Skip warning for
target inside target if inner is reverse offload.

gcc/testsuite/ChangeLog:

* c-c++-common/gomp/target-device-ancestor-5.c: New test.

(cherry picked from commit 47554478a13f64bff1ee4b9bb0319ae63d42ca52)
gcc/ChangeLog.omp
gcc/omp-low.cc
gcc/testsuite/ChangeLog.omp
gcc/testsuite/c-c++-common/gomp/target-device-ancestor-5.c [new file with mode: 0644]