]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgomp: Fix offload_target with additional sources
authorAndrew Stubbs <ams@baylibre.com>
Wed, 3 Dec 2025 14:34:59 +0000 (14:34 +0000)
committerAndrew Stubbs <ams@baylibre.com>
Wed, 3 Dec 2025 16:29:32 +0000 (16:29 +0000)
commit1eb2aeed08ca8732e5146974bcf5512bdfcd2e5f
tree1bd7c2d09041a20b3901a5e10725f0b32c944958
parent8641223df928a12246d23147d5ad8073769d5765
libgomp: Fix offload_target with additional sources

The offload_target_* effective target checks called libgomp_target_compile in a
way that altered global state if additional sources were configured.

This patch ignores additional sources if the compile check uses no sources (a
compiler probe, only), thus fixing the problem.

libgomp/ChangeLog:

* testsuite/lib/libgomp.exp (libgomp_target_compile): Don't use
additional sources if there are no primary sources.
libgomp/testsuite/lib/libgomp.exp