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


 > From: Benjamin Kosnik <bkoz@cygnus.com>
 > 
 > >  > 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)...
 > 
 > I believe outright removal to be the best option. I just don't know how 
 > to do it.
 > 
 > > What happens if either fixincl or fixproto diddles the non-prototyped
 > > version to use __complex__ and a user gets that prototype but calls
 > > the libc function which takes struct dbl_hypot?  We can't assume the
 > > layout of __complex__ is the same as struct dbl_hypot can we?
 > 
 > (Which is why removing it would be better.)

Okay, so why don't you do that?

I.e. can't you simply change the sed expression to delete the cabs
entry instead of replacing it?

--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions

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