This is the mail archive of the 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: Don't use -Wno-uninitialized in math/

On Fri, 21 Aug 2015, Steve Ellcey wrote:

> On Fri, 2015-08-21 at 16:10 +0000, Joseph Myers wrote:
> > > 
> > > I am seeing a mips32 build failure (using Top-of-tree GCC) with this
> > > change:
> > > 
> > > In file included from ../soft-fp/soft-fp.h:321:0,
> > >                  from ../soft-fp/fmatf4.c:30,
> > 
> > mips32 shouldn't be using fmatf4; sysdeps/mips/ieee754/s_fmal.c even has a 
> > #error to make sure of this.  Do you mean mips64?
> > 
> > There are also diagnostic control macros in fmatf4.c specifically to 
> > disable this warning, so you'll need to look at why those aren't working 
> > for you.
> Ah, it is mips64 but with the N32 ABI.

OK, that explains why the file is being compiled.

As it's GCC trunk, maybe the problem can be reduced to a GCC bug report 
and the bug fixed well before GCC 6 is out (given that I don't see it with 
GCC 5, so it's likely a regression)?  If not, maybe moving the PUSH / 
IGNORE macros up to be right after the libc-internal.h inclusion helps?  
Suppressing warnings for a whole file isn't ideal, but it's better than 
suppressing them for the whole of libm.

Joseph S. Myers

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