Gcc-3.0 bootstrap on HPUX 11.00
Richard Begg
Richard.Begg@colesmyer.com.au
Thu Jul 5 23:40:00 GMT 2001
Just in case no-one has provided a fix, here's my attempt at one:
<<inclhack.def.diffs>>
Cheers,
Richard.
> -----Original Message-----
> From: Richard Begg
> Sent: Friday, 6 July 2001 11:30
> To: 'gcc-bugs@gcc.gnu.org'; 'gcc-patches@gcc.gnu.org'; 'bkorb@gnu.org'
> Subject: 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inclhack.def.diffs
Type: text/x-diff
Size: 1193 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20010705/b667dec2/attachment.bin>
More information about the Gcc-patches
mailing list