On Thu, Mar 12, 2026 at 3:16 PM Richard Biener
<[email protected]> wrote:
>
> On Thu, Mar 12, 2026 at 11:02 AM Rainer Orth
> <[email protected]> wrote:
> >
> > As reported in
> >
> >         https://gcc.gnu.org/pipermail/gcc-patches/2026-March/709850.html
> >
> > this patch
> >
> > commit fdd1d058f289eda39b6eb1386a0dabef3478d298
> > Author: Rainer Orth <[email protected]>
> > Date:   Fri Feb 6 20:31:27 2026 +0100
> >
> >     build: Properly set gas_flag/gnu_ld_flag
> >
> > still causes testsuite regressions in some scenarious (a cross to
> > arm-none-eabi in this case).
> >
> > Comparing gcc/auto-host.h before and after that patch shows that
> > HAVE_GNU_AS and HAVE_GNU_LD are mis-detected again:
> >
> > @@ -1640 +1616 @@
> > -#define HAVE_GNU_AS 1
> > +#define HAVE_GNU_AS 0
> > @@ -1652 +1628 @@
> > -#define HAVE_GNU_LD 1
> > +#define HAVE_GNU_LD 0
> >
> > Since
> >
> > commit c807ac4d96dbb2e612fa2e8ebf7485b2fc3db117
> > Author: Rainer Orth <[email protected]>
> > Date:   Sun Mar 1 18:04:03 2026 +0100
> >
> >     Switch to HAVE_SOLARIS_AS
> >
> > and
> >
> > commit 96f3b4dfe16984299d65d7a071a5586dafcbd046
> > Author: Rainer Orth <[email protected]>
> > Date:   Sun Mar 1 18:32:26 2026 +0100
> >
> >     Switch to HAVE_SOLARIS_LD
> >
> > this patch is no longer needed to avoid the HAVE_GNU_AS/HAVE_GNU_LD
> > misdetections on Solaris.  In fact, the few remaining uses of those
> > macros are expected to be removed in GCC 17 stage 1.
> >
> > For the moment, I'd like to revert the patch above.
> >
> > Bootstrapped without regressions no i386-pc-solaris2.11,
> > sparc-sun-solaris2.11, x86_64-pc-linux-gnu, and by comparing auto-host.h
> > in make configure-gcc for a cross to arm-none-eabi.
> >
> > Ok for trunk?
>
> OK.

This probably has caused PR124547 to pop up, the gcc/ configury now fails
to detect ld_version_script_option causing libgccjit to build with a different
ABI on x86_64-linux at least.

The configury relies on gnu_ld_flag == yes, so I'm suspecting this
area of changes.

Richard.

> >         Rainer
> >
> > --
> > -----------------------------------------------------------------------------
> > Rainer Orth, Center for Biotechnology, Bielefeld University
> >
> >
> > 2026-03-06  Rainer Orth  <[email protected]>
> >
> >         gcc:
> >         Revert:
> >         2026-02-04  Rainer Orth  <[email protected]>
> >
> >         * configure.ac (gnu_ld_flag): Move $gcc_cv_ld --version check into
> >         AC_ARG_WITH(gnu-ld).
> >         (gcc_cv_ld): Set before gnu_ld_flag.
> >         (gas_flag): Move $gcc_cv_ld --version check into 
> > AC_ARG_WITH(gnu-ld).
> >         (gcc_cv_as): Set before gas_flag.
> >         * configure: Regenerate.
> >

Reply via email to