aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-parse.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-11-26 18:04:45 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-11-26 10:04:45 -0800
commit532815a787849962ca2f2101aef12ec1d57b2cfd (patch)
treefd510bfba4be46b5f8449a5f32932ed69e327402 /gcc/java/jcf-parse.c
parente57df6fed97f4e7dd58dd00a1946c698b5a22d92 (diff)
downloadgcc-532815a787849962ca2f2101aef12ec1d57b2cfd.zip
gcc-532815a787849962ca2f2101aef12ec1d57b2cfd.tar.gz
gcc-532815a787849962ca2f2101aef12ec1d57b2cfd.tar.bz2
re PR java/18305 (Class initialization optimization is not done when compiled from .class)
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. From-SVN: r91343
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r--gcc/java/jcf-parse.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index a7cd57a..429e3db 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -827,10 +827,6 @@ parse_class_file (void)
file_start_location = input_location;
(*debug_hooks->start_source_file) (input_line, input_filename);
- /* Currently we always have to emit calls to _Jv_InitClass when
- compiling from class files. */
- always_initialize_class_p = 1;
-
gen_indirect_dispatch_tables (current_class);
java_mark_class_local (current_class);