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: Joseph Myers <joseph at codesourcery dot com>
- To: Chris Metcalf <cmetcalf at ezchip dot com>
- Cc: <sellcey at imgtec dot com>, <libc-alpha at sourceware dot org>
- Date: Wed, 26 Aug 2015 21:18:19 +0000
- 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> <1440173079 dot 23512 dot 36 dot camel at ubuntu-sellcey> <55DE1A17 dot 5060706 at ezchip dot com>
On Wed, 26 Aug 2015, Chris Metcalf wrote:
> Doing a tilegx build just now against the tip, I see something similar,
> using gcc 4.8.2:
>
> In file included from ../soft-fp/soft-fp.h:321:0,
> from ../soft-fp/fmadf4.c:30,
> from ../sysdeps/tile/s_fma.c:1:
> ../soft-fp/fmadf4.c: In function â__fmaâ:
> ../soft-fp/op-common.h:274:10: error: âR_eâ may be used uninitialized in this
> function [-Werror=maybe-uninitialized]
I wonder if it's something to do with macro locations, and moving the push
/ ignore right up above the include of soft-fp.h helps (in which case
there isn't much point in the pop)? It works for me as-is with GCC 5, but
given the various reports of problems, maybe it's too fragile and the
warning needs disabling for the whole file in soft-fp/fma*.c.
--
Joseph S. Myers
joseph@codesourcery.com