This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How does one identify HP-UX with broken inline math funs?
- To: Jeffrey A Law <law at cygnus dot com>
- Subject: Re: How does one identify HP-UX with broken inline math funs?
- From: Robert Lipe <robertlipe at usa dot net>
- Date: Thu, 11 May 2000 10:08:56 -0500
- Cc: gcc at gcc dot gnu dot org
- References: <20000510213219.H1374@rjlhome.sco.com> <5925.958023654@upchuck>
> > ../../../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