This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Don't use -Wno-uninitialized in math/
- From: Andreas Schwab <schwab at suse dot de>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Mon, 24 Aug 2015 12:18:49 +0200
- Subject: Re: Don't use -Wno-uninitialized in math/
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1508201800380 dot 30940 at digraph dot polyomino dot org dot uk>
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."