public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/11470] New: bytecode created with gcj -C doesn't cache lookup from synthetic class$ member
@ 2003-07-09  5:26 jsturm at gcc dot gnu dot org
  2003-07-09 13:05 ` [Bug java/11470] " pinskia at physics dot uc dot edu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: jsturm at gcc dot gnu dot org @ 2003-07-09  5:26 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: bytecode created with gcj -C doesn't cache lookup from
                    synthetic class$ member
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsturm at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: all
  GCC host triplet: all
GCC target triplet: all

Given the following source file:

class A {
    Class a() {
        return A.class;
    }
}

gcj generates the following bytecode:

  0: ldc #31=<String "A">
  2: invokestatic #33=<Method A.class$ (java.lang.String)java.lang.Class>
  5: areturn

whereas other java compilers (e.g. jikes) generate similar to:

  0: getstatic #13=<Field A.class$A java.lang.Class>
  3: dup
  4: ifnonnull 18
  7: pop
  8: ldc #14=<String "[LA;">
 10: iconst_0
 11: invokestatic #19=<Method A.class$ (java.lang.String,boolean)java.lang.Class  
 14: dup
 15: putstatic #13=<Field A.class$A java.lang.Class>
 18: areturn

Note the A.class$A synthetic field which is absent from gcj output.

The lossage is particularly noticable in libjava.lang/SyncTest.java.


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <bug-11470-1165@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-01-09 20:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-09  5:26 [Bug java/11470] New: bytecode created with gcj -C doesn't cache lookup from synthetic class$ member jsturm at gcc dot gnu dot org
2003-07-09 13:05 ` [Bug java/11470] " pinskia at physics dot uc dot edu
2003-08-23  0:18 ` dhazeghi at yahoo dot com
2003-11-11 17:34 ` pinskia at gcc dot gnu dot org
     [not found] <bug-11470-1165@http.gcc.gnu.org/bugzilla/>
2007-01-09 20:47 ` tromey 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).