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


On Mon, May 01, 2000 at 02:33:34PM -0700, Bruce Korb wrote:
> 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';

This version will match things that the other will not.  I wouldn't
advise doing that.

zw

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