From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19337 invoked by alias); 5 Nov 2004 01:08:09 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 19261 invoked by uid 48); 5 Nov 2004 01:08:08 -0000 Date: Fri, 05 Nov 2004 01:08:00 -0000 Message-ID: <20041105010808.19259.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: java-prs@gcc.gnu.org In-Reply-To: <20040521210313.15576.mckinlay@redhat.com> References: <20040521210313.15576.mckinlay@redhat.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/15576] [4.0 Regression] Class initialization optimization is disabled X-Bugzilla-Reason: CC X-SW-Source: 2004-q4/txt/msg00311.txt.bz2 List-Id: ------- 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