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

Re: aix4.3 math.h header broken for cabs


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';

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