This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] Fix PR java/15576, class initialization optimization disable
- From: Tom Tromey <tromey at redhat dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: GCJ Patches <java-patches at gcc dot gnu dot org>, "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: 08 Nov 2004 15:21:37 -0700
- Subject: Re: [PATCH] Fix PR java/15576, class initialization optimization disable
- References: <BE4083C0-2F42-11D9-81C8-000A95D692F4@physics.uc.edu>
- Reply-to: tromey at redhat dot com
>>>>> "Andrew" == Andrew Pinski <pinskia@physics.uc.edu> writes:
Andrew> ChangeLog:
Andrew> * check-init.c (check_init): Ignore DECL_EXPR.
Andrew> * expr.c (always_initialize_class_p): Reenable.
Andrew> (build_class_init): Use a variable to store the decl. Also use
Andrew> boolean_false_node instead of integer_zero_node.
Andrew> * parse.y (attach_init_test_initialization_flags): Add a decl_expr
Andrew> to the block.
This looks reasonable to me, but Andrew H. or Per will have to
approve.
Tom