diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2024-01-24 08:05:30 +0000 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2024-02-02 09:00:30 +0000 |
commit | e439c7827f5c5723fdd7df9c5fac55319db204af (patch) | |
tree | 65a9d1600e3f54f194f6528e843b39902ecefe0e /gcc/go | |
parent | 74489c19070703361acc20bc172f304cae845a96 (diff) | |
download | gcc-e439c7827f5c5723fdd7df9c5fac55319db204af.zip gcc-e439c7827f5c5723fdd7df9c5fac55319db204af.tar.gz gcc-e439c7827f5c5723fdd7df9c5fac55319db204af.tar.bz2 |
testsuite, gfortran: Update link flags [PR112862].
The regressions here are caused by two issues:
1. In some cases there is no generated runpath for libatomic
2. In other cases there are duplicate paths.
This patch simplifies the addition of the options in the main
gfortran exp and removes the duplicates elewhere.
We need to add options to locate libgfortran and the dependent libs
libquadmath (supporting REAL*16) and libatomic (supporting operations
used by coarrays). Usually '-L' options are added to point to the
relevant directories for the uninstalled libraries.
In cases where libraries are available as both shared and convenience
some additional checks are made.
For some targets -static-xxxx options are handled by specs substitution
and need a '-B' option rather than '-L'. For Darwin, when embedded
runpaths are in use (the default for all versions after macOS 10.11),
'-B' is also needed to provide the runpath.
When '-B' is used, this results in a '-L' for each path that exists (so
that appending a '-L' as well is a needless duplicate). There are also
cases where tools warn for duplicates, leading to spurious fails.
PR target/112862
gcc/testsuite/ChangeLog:
* gfortran.dg/coarray/caf.exp: Remove duplicate additions of
libatomic handling.
* gfortran.dg/dg.exp: Likewise.
* lib/gfortran.exp: Decide on whether to present -B or -L to
reference the paths to uninstalled libgfortran, libqadmath and
libatomic and use that to generate the link flags.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions