[committed] Move gfortran.dg/gomp/declare-variant-mod-1*.f90 to libgomp.fortran/ [PR115271] (was: [Patch] Fortran: Store OpenMP's 'declare variant' in module file [PR115271])
Tobias Burnus
tburnus@baylibre.com
Mon Mar 17 09:21:20 GMT 2025
H.J. Lu wrote:
> gfortran: fatal error: cannot read spec file 'libgomp.spec': No such
> file or directory
> ...
> FAIL: gfortran.dg/gomp/declare-variant-mod-1.f90 -O (test for excess errors)
The problem is that dg-additional-sources does not work with '-o' with
dg-compile ("-c") as more than one file is involved.
But while 'dg-do link' solves the '-c -o' issue, a testcase that is
supposed to compile successfully (no dg-error) will actually invoke the
linker, which has issues with -fopenmp (implies the attempt to link
libgomp).
(This issue does not manifest for in-tree testing when the system
provides what is needed.)
Committed as r15-8085-g2d5c1e5149809f.
Thanks for the report!
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: committed.diff
Type: text/x-patch
Size: 1915 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20250317/8977d031/attachment-0001.bin>
More information about the Fortran
mailing list