java.lang.StrictMath

Alexandre Oliva aoliva@redhat.com
Fri Feb 15 08:23:00 GMT 2002


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /