This is the mail archive of the gcc-bugs@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]

Gcc-3.0 bootstrap on HPUX 11.00


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

This email and any attachments may contain privileged and

confidential information and are intended for the named

addressee only.  If you have received this e-mail in error, 

please notify the sender and delete this e-mail immediately. 

Any confidentiality, privilege or copyright is not waived or 

lost because this e-mail has been sent to you in error.  It 

is your responsibility to check this e-mail and any 

attachments for viruses.

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