Don't use -Wno-uninitialized in math/
Andreas Schwab
schwab@suse.de
Mon Aug 24 10:18:00 GMT 2015
Joseph Myers <joseph@codesourcery.com> writes:
> * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
That breaks aarch64.
In file included from ../include/fpu_control.h:1:0,
from ../sysdeps/aarch64/fpu/math_private.h:23,
from ../sysdeps/ieee754/dbl-64/e_exp.c:41:
../sysdeps/ieee754/dbl-64/e_exp.c: In function '__ieee754_exp':
../sysdeps/aarch64/fpu/fpu_control.h:28:3: error: 'ctx.env.__fpcr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
__asm__ __volatile__ ("msr fpcr, %0" : : "r" (fpcr))
^
In file included from ../sysdeps/ieee754/flt-32/math_private.h:3:0,
from ../sysdeps/ieee754/dbl-64/wordsize-64/math_private.h:3,
from ../sysdeps/aarch64/fpu/math_private.h:326,
from ../sysdeps/ieee754/dbl-64/e_exp.c:41:
../sysdeps/generic/math_private.h:652:17: note: 'ctx.env.__fpcr' was declared here
struct rm_ctx ctx __attribute__((cleanup (CLEANUPFUNC ## _ctx))); \
^
../sysdeps/generic/math_private.h:661:3: note: in expansion of macro 'SET_RESTORE_ROUND_GENERIC'
SET_RESTORE_ROUND_GENERIC (RM, libc_feholdsetround, libc_feresetround)
^
../sysdeps/ieee754/dbl-64/e_exp.c:63:5: note: in expansion of macro 'SET_RESTORE_ROUND'
SET_RESTORE_ROUND (FE_TONEAREST);
^
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list