[glibc] powerpc: Update acosf ulps
Andreas Schwab
schwab@linux-m68k.org
Thu Jan 2 15:40:50 GMT 2025
On Jan 02 2025, Florian Weimer wrote:
> * Adhemerval Zanella Netto:
>
>> Because gcc complains due how math_opt_barrier is implemented:
>>
>> ../sysdeps/ieee754/flt-32/e_acosf.c: In function ‘__ieee754_acosf’:
>> ../sysdeps/aarch64/fpu/math-barriers.h:23:30: error: read-only variable ‘__x’ used as ‘asm’ output
>> 23 | ({ __typeof (x) __x = (x); __asm ("" : "+w" (__x)); __x; })
>> | ^~~~~
>> ../sysdeps/ieee754/flt-32/e_acosf.c:94:16: note: in expansion of macro ‘math_opt_barrier’
>> 94 | return math_opt_barrier (pi2);
>> | ^~~~~~~~~~~~~~~~
>
> We can fix this by using __typeof (+x). It removes the const qualifier,
C23 has typeof_unqual.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
More information about the Libc-alpha
mailing list