]> 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)
committerTobias Burnus <tburnus@baylibre.com>
Thu, 8 Aug 2024 08:42:25 +0000 (10:42 +0200)
commite3a6dec326a127ad549246435b9d3835e9a32407
treed7650ba0580b709153ec04cf8da7560fc88cca0c
parent6db7150947996f89a4a62f4579f8b817b0ca1986
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.
libgomp/testsuite/libgomp.c++/static-aggr-constructor-destructor-1.C
libgomp/testsuite/libgomp.c++/static-aggr-constructor-destructor-2.C