This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCH] Powerpc/trampline: consider __NO_FPRS__


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


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