public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/15576] New: Class initialization optimization is disabled
@ 2004-05-21 21:13 mckinlay at redhat dot com
  2004-05-21 21:34 ` [Bug java/15576] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: mckinlay at redhat dot com @ 2004-05-21 21:13 UTC (permalink / raw)
  To: java-prs

gcj used to perform an optimization which eliminated redundant class
initialization calls. For example, given the following example,
_Jv_InitClass(Foo) is called twice from Init.a() when it is only needed once:

class Foo 
{
  static int a;
  static int b;
}

public class Init
{
  int a()
  { 
    return Foo.a + Foo.b;
  }
}

This was done in expr.c build_class_init(), look for
LOCAL_CLASS_INITIALIZATION_FLAG. The optimization was turned off in tree-ssa
branch and needs to be updated to work with the gimplifier.

-- 
           Summary: Class initialization optimization is disabled
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mckinlay 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=15576


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

end of thread, other threads:[~2004-11-09 14:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-21 21:13 [Bug java/15576] New: Class initialization optimization is disabled mckinlay at redhat dot com
2004-05-21 21:34 ` [Bug java/15576] " pinskia at gcc dot gnu dot org
2004-05-21 23:32 ` mckinlay at redhat dot com
2004-05-27  9:24 ` [Bug java/15576] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-07-09 16:51 ` pinskia at gcc dot gnu dot org
2004-11-05  0:43 ` [Bug java/15576] [4.0 " pinskia at gcc dot gnu dot org
2004-11-05  1:08 ` pinskia at gcc dot gnu dot org
2004-11-06  3:05 ` pinskia at gcc dot gnu dot org
2004-11-09 14:34 ` cvs-commit at gcc dot gnu dot org
2004-11-09 14:37 ` 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).