This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: How does one identify HP-UX with broken inline math funs?


>   > ../../../egcs/libstdc++/std/complext.cc: const complex<_FLT> &) [with _FLT 
>   > =
>   > double]':
>   > ../../../egcs/libstdc++/cinst.cc:69:   instantiated from here
>   > ../../../egcs/libstdc++/std/complext.cc:184: call of overloaded `abs (doubl
>   > e)'
>
> I have vague memories of bits you can twiddle in libstdc++ that deal
> with inlined math stuff from system header files.  In fact, I thought
> older stuff from SCO and hpux behaved the same when it came to the
> inlined math crud in system header files.

OK.  It looks like that is spelled _G_MATH_H_INLINES and is tested in
libstdc++/cmath.   But I'm unconvinced it is used anywhere, including
HP-UX.   

$ find . -print | xargs grep G_MATH_H_INLINES
./gcc/testsuite/g++.old-deja/g++.robertl/eb101.C:#define _G_MATH_H_INLINES 0
./libstdc++/ChangeLog:  * std/cmath.h: Wrap abs(double) with #if ! _G_MATH_H_INL
INES.
./libstdc++/cmath:#if ! _G_MATH_H_INLINES /* hpux and SCO define this in math.h
*/

Even in 2.95, I couldn't find a definition for this.  If this is still
the right thing to enable, where should it be turned on?  I'm happy with
letting fixincludes whack it in math.h since apparently this is the only
remaining system where this is an issue.


RJL

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