On Mon, Oct 20, 2025 at 07:56:37AM +0200, Josef Melcr wrote:
> Turns out it's grabbing the file from my system path, the strace output is
> below.  I'll submit the patch to move it to libgomp, thank you for bringing
> this up.

The way tests are setup, {{gcc,g++,gfortran}.dg,c-c++-common}/gomp tests are
solely for compile time tests (dg-preprocess, dg-compile, gc-assemble)
without need of libgomp headers.
For tests which either need some libgomp headers (e.g. <omp.h>) or do need
to link and/or run those need to be in libgomp/testsuite/, because only
that arranges to add the needed options to find libgomp headers and
libraries + spec file and at runtime find the right version of libgomp
shared library.

I know this is different e.g. from g++.dg which arranges for -isystem
to be added so that libstdc++ headers are found and adds other options
to find/link against libstdc++ library.

        Jakub

Reply via email to