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

* [Bug java/16188] [3.5 Regression] wrong code generation
  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 ` bonniot at users dot sf dot net
  2004-06-25  9:34 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bonniot at users dot sf dot net @ 2004-06-25  5:41 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From bonniot at users dot sf dot net  2004-06-25 02:10 -------
Created an attachment (id=6626)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6626&action=view)
Compiled class test.fun

Compiled with
/usr/lib/gcc-snapshot/bin/gcj --main=test.fun test/fun.class


-- 


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


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

* [Bug java/16188] [3.5 Regression] wrong code generation
  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
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-25  9:34 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
   Target Milestone|---                         |3.5.0


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


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

* [Bug java/16188] [3.5 Regression] wrong code generation
  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
  3 siblings, 0 replies; 5+ messages in thread
From: mckinlay at redhat dot com @ 2004-06-25 21:02 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2004-06-25 19:56 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-25 19:56:37
               date|                            |


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


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

* [Bug java/16188] [3.5 Regression] wrong code generation
  2004-06-25  2:10 [Bug java/16188] New: [3.5 Regression] wrong code generation bonniot at users dot sf dot net
                   ` (2 preceding siblings ...)
  2004-06-25 21:02 ` mckinlay at redhat dot com
@ 2004-08-09  0:36 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-09  0:36 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-09 00:36 -------
Fixed, and this is a dup of bug 16431.

*** This bug has been marked as a duplicate of 16431 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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