This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH] link libgcc_s.so against a lib containing copysignl on powerpc-*-linux-uclibc


On Tue, 7 Oct 2008, Bernhard Reutner-Fischer wrote:

> Thanks. I'm attaching an updated patch, ChangeLog remains the same.
> Ok for trunk?

Linking libgcc with libm is still wrong.

I suspect the copysignl references come from the COPYSIGN macro in 
libgcc2.c.  Please see the comment above that about avoiding linking with 
libm.  The problem, instead, would be __builtin_copysignl not being 
expanded inline.  My guess would be you are using a variant such as 
soft-float or E500v1 that does not have the required TFmode insn patterns, 
and you should add sufficient patterns (read the copysign expansion logic 
to work out what the possibilities are) for this case.  The patterns can 
basically be bit-manipulation.

-- 
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]