public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/16188] New: [3.5 Regression] wrong code generation
@ 2004-06-25  2:10 bonniot at users dot sf dot net
  2004-06-25  5:41 ` [Bug java/16188] " bonniot at users dot sf dot net
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bonniot at users dot sf dot net @ 2004-06-25  2:10 UTC (permalink / raw)
  To: java-prs

I attach a compiled class, for which gcj 3.5.0 20040613 generates wrong code (at
least, the execution gives a wrong result). There is no call to any external
library, so it must be the code generation itself.

Looking at the bytecode for the main method, it is easy to see that to see that
the local variable 2 should be assigned a newly created array. So the println
call should print an array reference. Instead it prints null. Interpretation
with gij (same version) works fine (prints non-null), as well as compilation
with gcj 3.3.4 (hence the regression).

(I have no Java source to show for this, which was generated by the Nice compiler)

-- 
           Summary: [3.5 Regression] wrong code generation
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bonniot at users dot sf dot net
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
  GCC host triplet: i386-debian-linux-gnu


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


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

end of thread, other threads:[~2004-08-09  0:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-25  2:10 [Bug java/16188] New: [3.5 Regression] wrong code generation bonniot at users dot sf dot net
2004-06-25  5:41 ` [Bug java/16188] " bonniot at users dot sf dot net
2004-06-25  9:34 ` pinskia at gcc dot gnu dot org
2004-06-25 21:02 ` mckinlay at redhat dot com
2004-08-09  0:36 ` pinskia at gcc dot gnu dot org

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