copysignl.c

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Tue Mar 16 21:47:13 UTC 2010


Bernhard, All,

On Tuesday 16 March 2010 21:59:47 Bernhard Reutner-Fischer wrote:
> On Tue, Mar 16, 2010 at 09:10:40PM +0100, Peter Korsgaard wrote:
> >>>>>> "Nuno" == Nuno Pereira <fxss at iol.pt> writes:
> > Nuno> This fix allows to compile BR with software floating point support
> > Nuno> with shared libgcc.
> >
> > Nuno> If you keep software floating point support enabled and disable shared
> > Nuno> libgcc, it compiles ok but when you enable shared libgcc, compilation
> > Nuno> blows due to an invalid reference to copysignl.c.

We're having the same issue just been raised on crossgcc:
http://sourceware.org/ml/crossgcc/2010-03/msg00057.html
and subsequent messages in the thread.

Skimming the gcc svn log did not come up with a fix or workaround, neither
in trunk, nor in the 4.4 branch. Except for the two workarounds below (the
first is yours, Bernhard, and the second one already pointed to by the OP),
we are at lost now...

http://gcc.gnu.org/ml/gcc-patches/2008-10/msg00237.html
https://dev.openwrt.org/browser/trunk/toolchain/uClibc/patches-0.9.30.1/450-powerpc_copysignl.patch

> See gcc thread cited below, yes.

Did you mean the above gcc thread, maybe?

> And no,
> emitting libcalls to math functions and not linking against libm is just
> a gcc bug and not a call to make libc a superset of libm

Agreed. But alas, still no fix I could see (but I can be quite blind at
times).

> I've locally changed that for good (and better, size-wise) for shared
> setups since they (end up) want(ing) IEEE m anyway in usual setups.

Care to elaborate, please?

> > >>  Nuno> Hi,
> > >>  Nuno> In the latest release of Buildroot, I think that fix should be included:
> > >>  Nuno> http://lists.busybox.net/pipermail/buildroot/2010-February/031987.html
> > >> What exactly does this fix? I'm using BR on ppc daily, and never seen
> > >> this problem.
> default sanity is imposed by 405 soft-fp mmu C99, to keep your eyebrows
> down.

Sorry, I missed that completely. Care to explain a bit more, please?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'




More information about the uClibc mailing list