Gcc-3.0 bootstrap on HPUX 11.00

Richard Begg Richard.Begg@colesmyer.com.au
Thu Jul 5 18:30:00 GMT 2001


There seems to be a header file problem with gcc-3.0 on HPUX 11.00 above a
certain patch level (PHSS_21070) which causes the g++ bootstrap to fail.
This patch introduces a conflicting inline definition for pow() into math.h.
Looking at gcc/fixinc/inclhack.def, it appears that this problem used to
occur at HPUX 10.20 (refer hpux10_cpp_pow_inline).

This is the relevant bit of /usr/include/math.h:

#if defined(__cplusplus) && (__cplusplus < 199707)
   inline int sqr(int x) {return(x*x);}
   inline double sqr(double x) {return(x*x);}

#  ifndef _STDLIB_INCLUDED
   inline int abs(int d) { return (d>0)?d:-d; }
#  endif /* _STDLIB_INCLUDED */

   inline double abs(double d) { return fabs(d); }
   inline double pow(double d,int expon) {
     return pow(d, (double)expon);
   }
#endif

Now, before I bother updating fixinc, has anyone else already done it?

Cheers,
Richard.

Richard Begg
Unix Production Manager
ITS Open Systems Group
Coles Myer Limited
Phone : 03-9483-7398
Mobile : 0418 386 436
Fax : 03-9483-7381
E-mail : Richard.Begg@colesmyer.com.au



More information about the Gcc-bugs mailing list