This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: aix4.3 math.h header broken for cabs
- To: Zack Weinberg <zack at wolery dot cumb dot org>
- Subject: Re: aix4.3 math.h header broken for cabs
- From: Benjamin Kosnik <bkoz at cygnus dot com>
- Date: Mon, 1 May 2000 13:58:53 -0700 (PDT)
- cc: gcc-bugs at gcc dot gnu dot org, autogen at linuxbox dot com
right.
This hunk seems to work correctly, thanks zack:
/*
* Fix cabs declarations in math.h on AIX.
*/
fix = {
hackname = aix_cabs;
files = "math.h";
select = 'double cabs';
sed = '/extern double cabs();/d';
sed = '/extern double cabs(struct dbl_hypot);/d';
};
-benjamin
> > This needs to be fixed, as libstdc++-v3 uses the C9x signatures.
> > Here's an attempt to fix it, by patching gcc/fixinc/inclhack.def. I'd
> > rather just remove the entire declaration though (how do i do this)...
>
> ...
>
> Just write
>
> sed = '/extern double cabs()/d';
>
> instead of the sed expression you have now.
>
> BTW, you have the files expression twice.
>
> zw
>