This is the mail archive of the libc-alpha@sources.redhat.com 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: [PATCH] PPC mathdef.h warning


Steven Munroe <sjmunroe at us dot ibm dot com> writes:

> sysdeps/powerpc/fpu/bits/mathdef.h defines FLT_EVAL_METHOD which is also
> defined by gcc's float.h. This causes a multiply defined warning in glibc. So
> in mathdef.h add an #undef before defining FLT_EVAL_METHOD.

You want to do the reverse, that is prefer gcc's version.  GCC knows
what the right setting is based on the compiler flags, which glibc
can't do.

-- 
- Geoffrey Keating <geoffk at geoffk dot org>


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