This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: Gcc-3.0 bootstrap on HPUX 11.00
- To: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>, "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>, "'bkorb at gnu dot org'" <bkorb at gnu dot org>
- Subject: RE: Gcc-3.0 bootstrap on HPUX 11.00
- From: Richard Begg <Richard dot Begg at colesmyer dot com dot au>
- Date: Fri, 6 Jul 2001 17:13:38 +1000
Damn,
I got it wrong... here's the revised diff...
Sorry,
Richard.
<<inclhack.def.diffs>>
> -----Original Message-----
> From: Richard Begg
> Sent: Friday, 6 July 2001 16:40
> To: 'gcc-bugs@gcc.gnu.org'; 'gcc-patches@gcc.gnu.org'; 'bkorb@gnu.org'
> Subject: RE: Gcc-3.0 bootstrap on HPUX 11.00
>
> Just in case no-one has provided a fix, here's my attempt at one:
>
> << File: 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
>
inclhack.def.diffs
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.