public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/19295] New: Incorrect bytecode produced for bitwise AND
@ 2005-01-06 19:14 overholt at redhat dot com
  2005-01-06 19:15 ` [Bug java/19295] " overholt at redhat dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: overholt at redhat dot com @ 2005-01-06 19:14 UTC (permalink / raw)
  To: java-prs

This is a boiled-down test case from part of Eclipse.  gcj produces this bytecode:

Method name:"isArrayType" public final Signature: ()boolean
Attribute "Code", length:35, max_stack:3, max_locals:1, code_length:11
  0: aload_0
  1: getfield <Field Test2.tagBits long>
  4: i2l

which results in a verification failure because it's producing an i2l
instruction when there's a long on the stack.

gcj4 --version
gcj4 (GCC) 4.0.0 20041228 (Red Hat 4.0.0-0.17) (i686-pc-linux)

$ gcj4 -C Test2.java; gcj4 -findirect-dispatch -c Test2.class
Test2.java: In class 'Test2':
Test2.java: In method 'Test2.isArrayType()':
Test2.java:5: error: verification failed: incompatible type on stack
Test2.java:5: error: expected type 'int' but stack contains 'void'
Test2.java:5: confused by earlier errors, bailing out

-- 
           Summary: Incorrect bytecode produced for bitwise AND
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: overholt at redhat dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


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


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

end of thread, other threads:[~2005-02-10 23:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-06 19:14 [Bug java/19295] New: Incorrect bytecode produced for bitwise AND overholt at redhat dot com
2005-01-06 19:15 ` [Bug java/19295] " overholt at redhat dot com
2005-01-06 20:00 ` [Bug java/19295] [4.0 regression] " tromey at gcc dot gnu dot org
2005-01-06 20:04 ` pinskia at gcc dot gnu dot org
2005-01-19 18:52 ` mmitchel at gcc dot gnu dot org
2005-01-19 19:24 ` steven at gcc dot gnu dot org
2005-01-19 22:37 ` tromey at gcc dot gnu dot org
2005-01-19 22:44 ` mark at codesourcery dot com
2005-01-24 14:34 ` cvs-commit at gcc dot gnu dot org
2005-01-24 14:41 ` pinskia at gcc dot gnu dot org
2005-02-11 16:35 ` overholt at redhat dot com

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