This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: aix4.3 math.h header broken for cabs
- To: Benjamin Kosnik <bkoz at cygnus dot com>, gcc-patches at gcc dot gnu dot org
- Subject: Re: aix4.3 math.h header broken for cabs
- From: Bruce Korb <bkorb at sco dot COM>
- Date: Mon, 01 May 2000 14:33:34 -0700
- CC: Zack Weinberg <zack at wolery dot cumb dot org>, gcc-bugs at gcc dot gnu dot org, Bruce Korb <bkorb at gnu dot org>
- Organization: Santa Cruz Operations
- References: <Pine.LNX.4.10.10005011357520.16712-100000@autobot.cygnus.com>
Benjamin Kosnik wrote:
> 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';
> };
I will apply this as:
> /*
> * Remove `extern double cabs' declarations from math.h.
> * This conflicts with C9x. Discovered on AIX.
> */
> fix = {
> hackname = broken_cabs;
> files = "math.h";
> select = '^extern double cabs';
> sed = '/^extern double cabs();/d';
> sed = '/^extern double cabs(struct dbl_hypot);/d';
> };
The difference being that this is no longer constrained to AIX.
Also, do we need the two versions of the deletion, or does
this work too:
> sed = '/extern double cabs(/d';