[gcc r17-2651] testsuite: Use solaris_ld effective target
Rainer Orth via Gcc-cvs <[email protected]>
| Newsgroups | gmane.comp.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://gcc.gnu.org/g:e3f61fb10d7975fe91722e9afe96f8d59354c53d commit r17-2651-ge3f61fb10d7975fe91722e9afe96f8d59354c53d Author: Rainer Orth <[email protected]> Date: Thu Jul 23 10:04:33 2026 +0200 testsuite: Use solaris_ld effective target Like the gas/solaris_as case, a testcase actually checks if Solaris ld is in use. This patch uses the et-static framework to introduce a solaris_ld effective target for this. Other uses of the existing gld effective target are about GNU ld features and remain untouched. Bootstrapped without regressions on i386-pc-solaris2.11, sparc-sun-solaris2.11 (as/ld and gas/gld), and x86_64-pc-linux-gnu. 2026-05-10 Rainer Orth <[email protected]> gcc/testsuite: * lib/et-static.def (solaris_ld): New effective target. * g++.dg/eh/unwind-direct.C: Check solaris_ld instead of !gld. gcc: * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes): Document solaris_ld. Diff: --- gcc/doc/sourcebuild.texi | 3 +++ gcc/testsuite/g++.dg/eh/unwind-direct.C | 2 +- gcc/testsuite/lib/et-static.def | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index 1f58ff07f697..603633e6932c 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -3214,6 +3214,9 @@ Target defaults to short enums. @item solaris_as Target uses the Solaris @command{as}. +@item solaris_ld +Target uses the Solaris @command{ld}. + @item stack_size @anchor{stack_size_et} Target has limited stack size. The stack size limit can be obtained using the diff --git a/gcc/testsuite/g++.dg/eh/unwind-direct.C b/gcc/testsuite/g++.dg/eh/unwind-direct.C index 8d2cd772916a..8f6b2f003219 100644 --- a/gcc/testsuite/g++.dg/eh/unwind-direct.C +++ b/gcc/testsuite/g++.dg/eh/unwind-direct.C @@ -1,5 +1,5 @@ // PR target/59788 -// { dg-do run { target { *-*-solaris2* && { ! gld } } } } +// { dg-do run { target solaris_ld } } // { dg-options "-Wl,-Bdirect" } #include <stdexcept> diff --git a/gcc/testsuite/lib/et-static.def b/gcc/testsuite/lib/et-static.def index 58bbed8faf6c..5f52670c0161 100644 --- a/gcc/testsuite/lib/et-static.def +++ b/gcc/testsuite/lib/et-static.def @@ -31,3 +31,7 @@ your linker supports GNU style response files solaris_as HAVE_SOLARIS_AS using the Solaris assembler + +solaris_ld +HAVE_SOLARIS_LD +using the Solaris linker