This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GNU C Library master sources branch master updated. glibc-2.25-699-g7023e6d


On Jul 09 2017, danglin@sourceware.org wrote:

> diff --git a/sysdeps/hppa/__longjmp.c b/sysdeps/hppa/__longjmp.c
> index a7eefc7..438db01 100644
> --- a/sysdeps/hppa/__longjmp.c
> +++ b/sysdeps/hppa/__longjmp.c
> @@ -24,15 +24,16 @@
>  void
>  __longjmp (__jmp_buf env, int val)
>  {
> +#ifdef CHECK_SP
> +  CHECK_SP (env[0].__jmp_buf.__sp);
> +#endif
> +
> +  {
>    /* We must use one of the non-callee saves registers
>       for env.  */
>    register unsigned long r26 asm ("r26") = (unsigned long)&env[0];
>    register unsigned long r25 asm ("r25") = (unsigned long)(val == 0 ? 1 : val);
>  
> -#ifdef CHECK_SP
> -  CHECK_SP (env[0].__jmp_buf.__sp);
> -#endif
> -
>    asm volatile(
>  	/* Set return value.  */
>  	"copy	%0, %%r28\n\t"
> @@ -79,6 +80,8 @@ __longjmp (__jmp_buf env, int val)
>  	: /* No outputs.  */
>  	: "r" (r25), "r" (r26)
>  	: /* No point in clobbers.  */ );
> +  }
> +

There is no need for the extra braces.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]