This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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: java.lang.StrictMath


On Feb 15, 2002, Bryce McKinlay <bryce@waitaki.otago.ac.nz> wrote:

> Do you have any examples of how GCC is *not* strictfp compliant

There are a few platforms, the most prominent of which is alpha, on
which GCC offers an option to enable or disable strict IEEE
compliance.  On alpha, it's -mieee.  Even x86 has -mieee-fp, to handle
unordered compares correctly in all cases.

Oh, wait.  You were talking specifically about Java.

> So, unless I misunderstand something and there is more to it, we
> should make -ffast-math the default for Java except where strictfp is
> encountered.

I'm not sure going all the way to -ffast-math would be appropriate,
but certainly disabling strict IEEE compliance by default, on
platforms on which it makes a difference, would be perfectly
reasonable.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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