Hi Filip,
> On Mon 2026-03-02 14:20:14, Rainer Orth wrote:
>> I'd do this differently, following many other targets:
>>
>> #ifndef HAVE_AS_TLS
>> #define HAVE_AS_TLS 0
>> #endif
>
> Alright, here's a revised patch. I've once again verified that the x86_64
> host, sparc target crosscompiler builds.
thanks.
> This patch addresses the problem.
>
> PR target/123926
>
> gcc/ChangeLog:
>
> * config/sparc/sparc.h (HAVE_AS_TLS): Do '#ifndef HAVE_AS_TLS
> #define HAVE_AS_TLS 1'.
That's the opposite of what the patch does ;-) Maybe better say
(HAVE_AS_TLS): Default to 0.
instead?
Although I'm not a SPARC maintainer, this is my fault and as obvious as
it gets, so ok with the nit above fixed.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University