[PATCH] Powerpc/trampline: consider __NO_FPRS__

Joseph S. Myers joseph@codesourcery.com
Mon Jun 21 11:37:00 GMT 2010


On Fri, 18 Jun 2010, Ryan Arnold wrote:

> The currently blessed method for achieving what you want is to clone
> this code and move a copy with FPU support into the powerpc32/fpu/
> directory and strip the FPR save out of the powerpc32/dl-trampoline.S
> code.  This, of course, introduces code bloat of asm files which is
> ... undesirable.

And to avoid that duplication, you then get into having a generic version 
that uses macros that may expand either to the floating-point register 
loads/stores or to nothing, and an fpu/ version that defines the macros 
one way before including the generic one, and a nofpu version (in ports) 
that defines them the other way before including the generic one.  So you 
get even more complexity.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list