]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgomp.c++/static-aggr-constructor-destructor-{1,2}.C: Fix scan-tree-dump
authorTobias Burnus <tburnus@baylibre.com>
Thu, 8 Aug 2024 08:42:25 +0000 (10:42 +0200)
committerThomas Schwinge <tschwinge@baylibre.com>
Fri, 25 Apr 2025 16:09:19 +0000 (18:09 +0200)
commite55aa018ba1c5ce3f756e56489b7007e736aa5a8
treef245068bc53a5f9938833c1aa32febb32bf786f7
parent0367df9d4fc07c95f08a6a499f36c96851cbe832
libgomp.c++/static-aggr-constructor-destructor-{1,2}.C: Fix scan-tree-dump

In principle, the optimized dump should be the same on the host, but as
'nohost' is not handled, is is present. However when ENABLE_OFFLOADING is
false, it is handled early enough to remove the function.

libgomp/ChangeLog:

* testsuite/libgomp.c++/static-aggr-constructor-destructor-1.C: Split
scan-tree-dump into with and without target offload_target_any.
* testsuite/libgomp.c++/static-aggr-constructor-destructor-2.C:
Likewise.

(cherry picked from commit e3a6dec326a127ad549246435b9d3835e9a32407)
libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.c++/static-aggr-constructor-destructor-1.C
libgomp/testsuite/libgomp.c++/static-aggr-constructor-destructor-2.C