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] Use -frounding-math for math testsuite


On Wed, 2 May 2012, Andreas Jaeger wrote:

> Still, we should tell GCC that we manipulate the rounding mode and
> therefore add -frounding-math to these files that call fesetround. This
> works around the bug as well and will avoid problems in the future if
> GCC optimizes further.
> 
> Tested on Linux/x86-64.
> 
> Ok to commit? 

Please commit this.  Strictly we should compile all the libraries with 
-frounding-math as well, since library functions may be called in any 
rounding mode (and without -frounding-math, round-to-nearest is assumed); 
the only things for which it's not needed are the miscellaneous 
executables, and those testcases (i.e. all except the ones this patch 
addresses) that don't change the rounding mode.

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