public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/6520: Mauve java.lang.Math.min compile failure
@ 2002-05-11 15:42 tromey
0 siblings, 0 replies; 3+ messages in thread
From: tromey @ 2002-05-11 15:42 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, java-prs, mark, nobody, tromey
Synopsis: Mauve java.lang.Math.min compile failure
Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Sat May 11 15:42:48 2002
Responsible-Changed-Why:
I'm handling this.
State-Changed-From-To: open->analyzed
State-Changed-By: tromey
State-Changed-When: Sat May 11 15:42:48 2002
State-Changed-Why:
The problem here is that we change the type on a shared
tree node (the node representing the value of "Float.NaN").
This causes us to generate incorrect bytecode.
I have a patch that I'm testing that I will submit shortly.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6520
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: java/6520: Mauve java.lang.Math.min compile failure
@ 2002-06-11 15:37 tromey
0 siblings, 0 replies; 3+ messages in thread
From: tromey @ 2002-06-11 15:37 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, java-prs, mark, tromey
Synopsis: Mauve java.lang.Math.min compile failure
State-Changed-From-To: analyzed->closed
State-Changed-By: tromey
State-Changed-When: Tue Jun 11 15:37:45 2002
State-Changed-Why:
I've checked in the fix for this.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6520
^ permalink raw reply [flat|nested] 3+ messages in thread
* java/6520: Mauve java.lang.Math.min compile failure
@ 2002-04-30 12:56 mark
0 siblings, 0 replies; 3+ messages in thread
From: mark @ 2002-04-30 12:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 6520
>Category: java
>Synopsis: Mauve java.lang.Math.min compile failure
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 30 12:56:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: mark@klomp.org
>Release: gcj 3.1
>Organization:
>Environment:
>Description:
Mauve gives the following failure.
FAIL: Compile gnu/testlet/java/lang/Math/min.o for
gnu.testlet.java.lang.Math.min
The verifier doesn't like the byte-code generated by gcj -C:
gnu/testlet/java/lang/Math/min.java: In class
`gnu.testlet.java.lang.Math.min':
gnu/testlet/java/lang/Math/min.java: In method
`gnu.testlet.java.lang.Math.min.test(gnu.testlet.TestHarness)':
gnu/testlet/java/lang/Math/min.java:30: verification error at PC=542
gnu/testlet/java/lang/Math/min.java:30: invalid argument type
gnu/testlet/java/lang/Math/min.java:30: Invalid multi-word value on type
stack
Running from bytecode doesn't work either since the libgcj verifier
finds the same error:
java.lang.VerifyError: verification failed at PC 542 in
gnu.testlet.java.lang.Math.min:test((Lgnu.testlet.TestHarness;)V):
incompatible type on stack
Compiling from source gives the following failures:
FAIL: gnu.testlet.java.lang.Math.min: Float NaNs (number 1)
got 0.0 but expected NaN
FAIL: gnu.testlet.java.lang.Math.min: Float NaNs (number 2)
got 0.0 but expected NaN
2 of 41 tests failed
Interestingly compiling from source with -O2 gives:
gnu/testlet/java/lang/Math/min.java:87: Internal compiler error in
emit_move_insn, at expr.c:2768
But I cannot produce a simple testcase for this even though it seems
that it is triggered by Math.min(2.0f, Float.NaN).
>How-To-Repeat:
Install Mauve, set MAUVEDIR and run make check-target-libjava.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-06-11 22:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-11 15:42 java/6520: Mauve java.lang.Math.min compile failure tromey
-- strict thread matches above, loose matches on Subject: below --
2002-06-11 15:37 tromey
2002-04-30 12:56 mark
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).