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

Joseph Myers <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha
Message-ID <[email protected]>
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').

-- 
Joseph S. Myers
[email protected]
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.