This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] link libgcc_s.so against a lib containing copysignl on powerpc-*-linux-uclibc
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Bernhard Reutner-Fischer <rep dot dot dot nop at gmail dot com>
- Cc: Ian Lance Taylor <iant at google dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 8 Oct 2008 02:35:35 +0000 (UTC)
- Subject: Re: [PATCH] link libgcc_s.so against a lib containing copysignl on powerpc-*-linux-uclibc
- References: <20081007141721.GG9250@mx.loc> <email@example.com> <20081007181019.GB5178@mx.loc>
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