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



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
> 


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