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 Wednesday, May 02, 2012 16:32:23 Joseph S. Myers wrote:
> On Wed, 2 May 2012, Joseph S. Myers wrote:
> > 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.
> 
> Incidentally, compiling libraries with -frounding-math should fix bugs
> such as <http://sourceware.org/bugzilla/show_bug.cgi?id=10846> with
> missing underflow exceptions (it's still a GCC bug that it folds these
> underflowing operations with -ftrapping-math -fno-rounding-math, but
> -frounding-math works around the GCC bug by disabling that folding since
> the result is inexact).

Do you really mean all libraries - or just the math subdirectory?

Andreas
-- 
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]