public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/1139: Class verification error with GCJ -C / Bad code produced
@ 2000-12-20 12:09 jmacnish
  0 siblings, 0 replies; only message in thread
From: jmacnish @ 2000-12-20 12:09 UTC (permalink / raw)
  To: java-gnats

>Number:         1139
>Category:       java
>Synopsis:       Class verification error with GCJ -C / Bad code produced
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:06:32 PST 2000
>Closed-Date:    Tue Jun 06 17:24:17 PDT 2000
>Last-Modified:  Tue Jun  6 17:30:00 PDT 2000
>Originator:     Jesse Macnish (jmacnish@ideaforge.net)
>Release:        unknown-1.0
>Organization:
>Environment:
Linux 2.2.5-15smp #1 SMP 686, also run on Win98 with MS VM & Sun JDK1.2.2 VM
>Description:
After compiling the test program with GCJ -C and running it, the
the output of the test class is:

TestDouble:  Initial value does not equal built value:-4.660922934959311E15 != -4.503599627407125E15

(When compiled with javac, output is:  TestDouble:  OK)

Class fails verification check on Sun JDK 1.2.2 and Microsoft VM 3155

>How-To-Repeat:
gcj -C TestDouble.java

Run on JDK117 without verification to see the output listed in description.
Run with verification to see failure.
>Fix:

>Release-Note:

>Audit-Trail:

Formerly PR gcj/130

State-Changed-From-To: open->closed
State-Changed-By: bryce
State-Changed-When: Tue Jun  6 17:24:17 2000
State-Changed-Why:
    This has been fixed in the current CVS compiler. I have tested
    "gcj -C" output from the test case on both JDK 1.2.2 and JDK 1.3 
    and it works fine.

From: bryce@albatross.co.nz
To: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com,
  jmacnish@ideaforge.net
Cc:  
Subject: Re: gcj/130
Date: 7 Jun 2000 00:24:17 -0000

 Synopsis: Class verification error with GCJ -C / Bad code produced
 
 State-Changed-From-To: open->closed
 State-Changed-By: bryce
 State-Changed-When: Tue Jun  6 17:24:17 2000
 State-Changed-Why:
     This has been fixed in the current CVS compiler. I have tested
     "gcj -C" output from the test case on both JDK 1.2.2 and JDK 1.3 
     and it works fine.
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=130&database=java
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="TestDouble.java"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="TestDouble.java"

LyoqCiAqIEZyb20gbmV0LmlkZWFmb3JnZS51dGlsLkJ5dGVUb29scyAod3d3LmlkZWFmb3JnZS5u
ZXQpCiAqLwpwdWJsaWMgY2xhc3MgVGVzdERvdWJsZSB7CgoJcHVibGljIHN0YXRpYyBmaW5hbCBs
b25nIERPVUJMRV9FWFBfTUFTSyA9IDB4N2ZmMDAwMDAwMDAwMDAwMEw7CgoJcHVibGljIHN0YXRp
YyBmaW5hbCBsb25nIERPVUJMRV9TSUdOX01BU0sgPSAweDgwMDAwMDAwMDAwMDAwMDBMOwoKCXB1
YmxpYyBzdGF0aWMgZmluYWwgbG9uZyBET1VCTEVfTUFOVElTU0FfTUFTSyA9IH4oRE9VQkxFX0VY
UF9NQVNLIHwgRE9VQkxFX1NJR05fTUFTSyk7CgoJcHVibGljIHN0YXRpYyBmaW5hbCBpbnQgRE9V
QkxFX0VYUF9CSUFTID0gMTAyMzsKCglwdWJsaWMgc3RhdGljIGRvdWJsZSBidWlsZERvdWJsZShi
b29sZWFuIGlzbmVnLGludCBleHBvbmVudCxsb25nIG1hbnRpc3NhKSB7CgkJcmV0dXJuIERvdWJs
ZS5sb25nQml0c1RvRG91YmxlKG1hbnRpc3NhIHwgKCgoKGxvbmcpZXhwb25lbnQgKyBET1VCTEVf
RVhQX0JJQVMpIDw8IDUyKSAmIERPVUJMRV9FWFBfTUFTSykgfCAoKGlzbmVnID8gMSA8PCA2MyA6
IDApICYgRE9VQkxFX1NJR05fTUFTSykpOwoJfQoKCXB1YmxpYyBzdGF0aWMgaW50IGdldEV4cG9u
ZW50KGRvdWJsZSBkKSB7CgkJcmV0dXJuIChpbnQpKCgoRG91YmxlLmRvdWJsZVRvTG9uZ0JpdHMo
ZCkgJiBET1VCTEVfRVhQX01BU0spID4+IDUyKSAtIERPVUJMRV9FWFBfQklBUyk7Cgl9CgoJcHVi
bGljIHN0YXRpYyBsb25nIGdldE1hbnRpc3NhKGRvdWJsZSBkKSB7CgkJcmV0dXJuIERvdWJsZS5k
b3VibGVUb0xvbmdCaXRzKGQpICYgRE9VQkxFX01BTlRJU1NBX01BU0s7Cgl9CgoJcHVibGljIHN0
YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewoJCWRvdWJsZSB2YWwgPSAtNDY2MDkyMjkz
NDk1OTMxMS4zOTM7CgkJaW50IGV4cCA9IGdldEV4cG9uZW50KHZhbCk7CgkJbG9uZyBsbWFudCA9
IGdldE1hbnRpc3NhKHZhbCk7CgkJZG91YmxlIHJlc3VsdCA9IGJ1aWxkRG91YmxlKHRydWUsZXhw
LGxtYW50KTsKCQlpZiAodmFsICE9IHJlc3VsdCkgewoJCQlTeXN0ZW0uZXJyLnByaW50bG4oIlRl
c3REb3VibGU6ICBJbml0aWFsIHZhbHVlIGRvZXMgbm90IGVxdWFsIGJ1aWx0IHZhbHVlOiIgKyB2
YWwgKyAiICE9ICIgKyByZXN1bHQpOwoJCQlTeXN0ZW0uZXhpdCgxKTsKCQl9IGVsc2UgewoJCQlT
eXN0ZW0ub3V0LnByaW50bG4oIlRlc3REb3VibGU6ICBPSyIpOwoJCX0KCQlTeXN0ZW0uZXhpdCgw
KTsKCX0KfQo=


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-12-20 12:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-20 12:09 java/1139: Class verification error with GCJ -C / Bad code produced jmacnish

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).