This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libm -fno-builtin


On Jun 20 17:11, Jon Beniston wrote:
> Hi,
> 
> I've tried removing -fno-builtin for libm and the results look good. As well
> as fabs and floor, gcc also inlines creal, cimag, carg, copysign and finite.
> Some of the complex maths functions are greatly simplified, as creal & cimag
> can effectively be optimised away, whereas at the moment the function calls
> result in lots of stack manipulation. I can't see anything obviously
> problematic with this.
> 
> Overall, for my embedded target, libm code size reduced by about 4%.
> 
> Cheers,
> Jon
> 
> 
> 
> Here's a few places where it can be removed - there's also other uses in
> machine/*/configure - but I guess that is best left to the maintainers of
> those ports to remove.

Care to provide a git format-patch created patch, please?


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: signature.asc
Description: PGP signature


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