After
Switch to HAVE_SOLARIS_LD
https://gcc.gnu.org/pipermail/gcc-patches/2026-February/708354.html
is in, only 3 or 4 uses of HAVE_GN_LD remain:
* gcc/ada/link.c: Check whether to use GNU ld options, which could be
replaced by a configure check if need be.
* gcc/collect2.cc: Check for @ file support (which is also part of the
ada/link.c uses). Another case for a configure check.
* gcc/config/alpha/vms.h: Check if GNU ld is used and the code can rely
on gld linker scripts for DWARF-2 handling or needs to do it itself
using vms-dwarf2.o. Could introduce a HAVE_VMS_LD check, just as in
the Solaris ld case.
* gcc/testsuite/gcc.misc-tests/outputs.exp: Just a comment about the
inaccurary of HAVE_GNU_LD, while setting $gld from
check_effective_target_gld, defined in target-supports.exp. The
latter is also problematic because it checks the linker used by gcc
for GNU in --version output. Considering that other non-vendor
linkers like lld are command line-compatible to gld, that check is too
narrow, actually. However, leaving this as is isn't too bad, and,
given that it's in a comment only, is a separate issue alltogether.
Just another FYI for now.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University