Re: [PATCH] powerpc: Fix non-atomic stack pointer update in fortified longjmp (bug 34530)

Adhemerval Zanella Netto <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha
Organization Linaro
Message-ID <[email protected]>

On 24/08/26 13:22, Joseph Myers wrote:
> On Mon, 17 Aug 2026, Florian Weimer wrote:
> 
>> diff --git a/sysdeps/powerpc/powerpc32/__longjmp-common.S b/sysdeps/powerpc/powerpc32/__longjmp-common.S
>> index eb228bf4fe..9da86330f7 100644
>> --- a/sysdeps/powerpc/powerpc32/__longjmp-common.S
>> +++ b/sysdeps/powerpc/powerpc32/__longjmp-common.S
>> @@ -30,11 +30,12 @@ ENTRY (__longjmp_symbol)
>>  
>>  #if defined PTR_DEMANGLE || defined CHECK_SP
>>  	lwz r24,(JB_GPR1*4)(r3)
>> +# ifdef PTR_DEMANGLE
>> +	PTR_DEMANGLE (r24, r25)
>> +# endif
>>  # ifdef CHECK_SP
>> -#  ifdef PTR_DEMANGLE
>> -	PTR_DEMANGLE3 (r24, r24, r25)
>> -#  endif
>>  	CHECK_SP (r24)
>> +# endif
>>  	mr r1,r24
>>  # endif
>>  #else
> 
> This breaks the build for powerpc soft-float (error: '#else' without 
> '#if').
> 

I hit the same issue, I am about to install a fix.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.