[Bug java/15576] [4.0 Regression] Class initialization optimization is disabled
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-09 14:34 --- Subject: Bug 15576 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2004-11-09 14:33:36 Modified files: gcc/java : ChangeLog check-init.c expr.c parse.y Log message: 2004-11-09 Andrew Pinski [EMAIL PROTECTED] PR java/15576 * check-init.c (check_init): Ignore DECL_EXPR. * expr.c (always_initialize_class_p): Reenable. (build_class_init): Use a variable to store the decl. Also use boolean_false_node instead of integer_zero_node. * parse.y (attach_init_test_initialization_flags): Add a decl_expr to the block. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gccr1=1.1495r2=1.1496 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/check-init.c.diff?cvsroot=gccr1=1.59r2=1.60 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/expr.c.diff?cvsroot=gccr1=1.209r2=1.210 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/parse.y.diff?cvsroot=gccr1=1.519r2=1.520 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15576
[Bug java/15576] [4.0 Regression] Class initialization optimization is disabled
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-09 14:36 --- Fixed, I filed PR 18399 for this optimization not working with the inliner. -- What|Removed |Added OtherBugsDependingO||18399 nThis|| Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15576
[Bug java/15576] [4.0 Regression] Class initialization optimization is disabled
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-06 03:05 --- Patch here: http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00400.html. -- What|Removed |Added Keywords||patch http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15576
[Bug java/15576] [4.0 Regression] Class initialization optimization is disabled
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-05 00:43 --- I have a fix which just renables the orginal code plus fixes the other part of the front-end. -- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15576
[Bug java/15576] [4.0 Regression] Class initialization optimization is disabled
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-05 01:08 --- I attached the patch which I am testing right now to fix this. The changelog is: * check-init.c (check_init): Ignore DECL_EXPR. * expr.c (always_initialize_class_p): Reenable. (build_class_init): Use a variable to store the decl. Also use boolean_false_node instead of integer_zero_node. * parse.y (attach_init_test_initialization_flags): Add a decl_expr to the block. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15576