public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/10632] Numerical result differs from Sun JDK
       [not found] <20030505213601.10632.jens.mueller@ira.uka.de>
@ 2003-06-01 20:23 ` jlquinn@gcc.gnu.org
  2003-07-06  7:30 ` [Bug java/10632] " debian-gcc at lists dot debian dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: jlquinn@gcc.gnu.org @ 2003-06-01 20:23 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10632



------- Additional Comments From jlquinn@gcc.gnu.org  2003-06-01 20:23 -------
It seems like this bug should be in the java component, not libgcj.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug java/10632] Numerical result differs from Sun JDK
       [not found] <20030505213601.10632.jens.mueller@ira.uka.de>
  2003-06-01 20:23 ` [Bug libgcj/10632] Numerical result differs from Sun JDK jlquinn@gcc.gnu.org
@ 2003-07-06  7:30 ` debian-gcc at lists dot debian dot org
  2003-07-06 16:22 ` tromey at gcc dot gnu dot org
  2004-05-12 21:43 ` pmoulder at mail dot csse dot monash dot edu dot au
  3 siblings, 0 replies; 4+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2003-07-06  7:30 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10632


debian-gcc at lists dot debian dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |debian-gcc at lists dot
                   |                            |debian dot org


------- Additional Comments From debian-gcc at lists dot debian dot org  2003-07-06 07:30 -------
bug submitter posted this to the Debian BTS as well: http://bugs.debian.org/192035


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug java/10632] Numerical result differs from Sun JDK
       [not found] <20030505213601.10632.jens.mueller@ira.uka.de>
  2003-06-01 20:23 ` [Bug libgcj/10632] Numerical result differs from Sun JDK jlquinn@gcc.gnu.org
  2003-07-06  7:30 ` [Bug java/10632] " debian-gcc at lists dot debian dot org
@ 2003-07-06 16:22 ` tromey at gcc dot gnu dot org
  2004-05-12 21:43 ` pmoulder at mail dot csse dot monash dot edu dot au
  3 siblings, 0 replies; 4+ messages in thread
From: tromey at gcc dot gnu dot org @ 2003-07-06 16:22 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10632



------- Additional Comments From tromey at gcc dot gnu dot org  2003-07-06 16:22 -------
Java only requires exact FP results for
strictfp classes and methods.  So you would
have to add that to get the correct results.

Unfortunately, even if you do this, you'll
still have problems, since we don't properly
implement strictfp.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug java/10632] Numerical result differs from Sun JDK
       [not found] <20030505213601.10632.jens.mueller@ira.uka.de>
                   ` (2 preceding siblings ...)
  2003-07-06 16:22 ` tromey at gcc dot gnu dot org
@ 2004-05-12 21:43 ` pmoulder at mail dot csse dot monash dot edu dot au
  3 siblings, 0 replies; 4+ messages in thread
From: pmoulder at mail dot csse dot monash dot edu dot au @ 2004-05-12 21:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pmoulder at mail dot csse dot monash dot edu dot au  2004-05-12 09:19 -------
(In reply to comment #5)
> Java only requires exact FP results for
> strictfp classes and methods.

http://java.sun.com/docs/books/jls/second_edition/html/expressions.doc.html#249198
says that in absense of strictfp, implementations are allowed to use
{float,double}-extended-exponent numbers, which allow a wider _exponent_ range,
but are still required to use the normal significand width
(http://java.sun.com/docs/books/jls/second_edition/html/typesValues.doc.html#96802).

Although not completely unambiguous, the most natural reading of sections
15.17.2, 15.4 would be that {float,double} and {float,double}-extended-exponent
are the _only_ value sets allowed, i.e. that gcj's behaviour on x86 is
non-conforming even without strictfp.

Assuming that it is desirable for gcj and other java compilers to use the target
hardware's floating point implementation (typically not strictly
ieee-conforming), I suggest filing a defect report with the Java Language
Specification.

I'm also inclined to suggest better documentation of this bug in e.g. *see
(gcj)Limitations, and possibly section "What features of the Java language
are/arn't (sic) supported" of FAQ.gcj.

Note that this bug results in more than just being wrong in the nth digit of a
calculation, but in comparisons returning the wrong result, which can result in
very different branches of a program being executed (e.g. failing assertions).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10632


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-05-12  9:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030505213601.10632.jens.mueller@ira.uka.de>
2003-06-01 20:23 ` [Bug libgcj/10632] Numerical result differs from Sun JDK jlquinn@gcc.gnu.org
2003-07-06  7:30 ` [Bug java/10632] " debian-gcc at lists dot debian dot org
2003-07-06 16:22 ` tromey at gcc dot gnu dot org
2004-05-12 21:43 ` pmoulder at mail dot csse dot monash dot edu dot au

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).