public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/18305] New: Class initialization optimization is not done when compiled from .class
@ 2004-11-05  1:13 pinskia at gcc dot gnu dot org
  2004-11-05  1:27 ` [Bug java/18305] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-05  1:13 UTC (permalink / raw)
  To: java-prs

I noticed this when looking at the regression, PR 15576.  I don't know why it is disabled for compiling 
.class.  It might because we were not function at a time before 4.0, I don't know.

-- 
           Summary: Class initialization optimization is not done when
                    compiled from .class
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                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=18305


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

* [Bug java/18305] Class initialization optimization is not done when compiled from .class
  2004-11-05  1:13 [Bug java/18305] New: Class initialization optimization is not done when compiled from .class pinskia at gcc dot gnu dot org
@ 2004-11-05  1:27 ` pinskia at gcc dot gnu dot org
  2004-11-09 17:50 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-05  1:27 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-05 01:27 -------
The code in question:
  /* Currently we always have to emit calls to _Jv_InitClass when
     compiling from class files.  */
  always_initialize_class_p = 1;



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-05 01:27:21
               date|                            |


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


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

* [Bug java/18305] Class initialization optimization is not done when compiled from .class
  2004-11-05  1:13 [Bug java/18305] New: Class initialization optimization is not done when compiled from .class pinskia at gcc dot gnu dot org
  2004-11-05  1:27 ` [Bug java/18305] " pinskia at gcc dot gnu dot org
@ 2004-11-09 17:50 ` pinskia at gcc dot gnu dot org
  2004-11-26 18:04 ` cvs-commit at gcc dot gnu dot org
  2004-11-26 18:05 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-09 17:50 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-09 17:50 -------
Mine, I posted a patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00746.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
           Keywords|                            |patch


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


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

* [Bug java/18305] Class initialization optimization is not done when compiled from .class
  2004-11-05  1:13 [Bug java/18305] New: Class initialization optimization is not done when compiled from .class pinskia at gcc dot gnu dot org
  2004-11-05  1:27 ` [Bug java/18305] " pinskia at gcc dot gnu dot org
  2004-11-09 17:50 ` pinskia at gcc dot gnu dot org
@ 2004-11-26 18:04 ` cvs-commit at gcc dot gnu dot org
  2004-11-26 18:05 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-26 18:04 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-11-26 18:04 -------
Subject: Bug 18305

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-11-26 18:04:46

Modified files:
	gcc/java       : ChangeLog decl.c expr.c java-tree.h jcf-parse.c 
	                 parse.y 

Log message:
	2004-11-26  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR java/18305
	* decl.c (end_java_method): Call
	attach_init_test_initialization_flags on all the init_decls.
	* parse.y (attach_init_test_initialization_flags): Move to ...
	* expr.c (attach_init_test_initialization_flags): here and
	support BIND_EXPR also.
	* java-tree.h (attach_init_test_initialization_flags): Prototype.
	* jcf-parse.c (parse_class_file): Don't disable class init
	optimization.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1506&r2=1.1507
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/decl.c.diff?cvsroot=gcc&r1=1.204&r2=1.205
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/expr.c.diff?cvsroot=gcc&r1=1.211&r2=1.212
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/java-tree.h.diff?cvsroot=gcc&r1=1.222&r2=1.223
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/jcf-parse.c.diff?cvsroot=gcc&r1=1.178&r2=1.179
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/parse.y.diff?cvsroot=gcc&r1=1.522&r2=1.523



-- 


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


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

* [Bug java/18305] Class initialization optimization is not done when compiled from .class
  2004-11-05  1:13 [Bug java/18305] New: Class initialization optimization is not done when compiled from .class pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-11-26 18:04 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-26 18:05 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-26 18:05 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-26 18:05 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


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


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

end of thread, other threads:[~2004-11-26 18:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-05  1:13 [Bug java/18305] New: Class initialization optimization is not done when compiled from .class pinskia at gcc dot gnu dot org
2004-11-05  1:27 ` [Bug java/18305] " pinskia at gcc dot gnu dot org
2004-11-09 17:50 ` pinskia at gcc dot gnu dot org
2004-11-26 18:04 ` cvs-commit at gcc dot gnu dot org
2004-11-26 18:05 ` 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).