[PATCH] Use -frounding-math for math testsuite

David Miller davem@davemloft.net
Mon May 7 19:22:00 GMT 2012


From: "Joseph S. Myers" <joseph@codesourcery.com>
Date: Mon, 7 May 2012 19:15:46 +0000 (UTC)

> On Mon, 7 May 2012, David Miller wrote:
> 
>> I think we should revert this until we can sort it out, especially since
>> I anticipate that it will take quite some time to do so.
> 
> If it's the change to build all of libc with -frounding-math, maybe adding 
> something to a SPARC makefile to build just one lgamma source file with 
> -fno-rounding-math would work around the problem until you can work out 
> where the problem really lies (likely a compiler bug)?  All these tests 
> relate to lgamma (gamma is a alias of lgamma) or tgamma (which works by 
> exp (lgamma)) so it looks rather like only one source file is involved.

So far it looks like the __kernel_standard() call done by lgamma is
going wrong, perhaps the IFUNC of __floor is being misdirected.

This isn't proving easy to diagnose but I'll keep plugging at it.



More information about the Libc-alpha mailing list