diff options
author | Per Bothner <per@bothner.com> | 2001-12-06 15:12:55 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2001-12-06 15:12:55 -0800 |
commit | 5412ef6bba5b252ccb88f778025e6c21cc075883 (patch) | |
tree | 0329e48c15d6e4c56f175ddff6166ec1395400e4 /gcc/java/class.c | |
parent | c1bf99a2ab955f1b5945ceb0f62a4e1652fe0c02 (diff) | |
download | gcc-5412ef6bba5b252ccb88f778025e6c21cc075883.zip gcc-5412ef6bba5b252ccb88f778025e6c21cc075883.tar.gz gcc-5412ef6bba5b252ccb88f778025e6c21cc075883.tar.bz2 |
Restore support for static class initialization optimization.
From-SVN: r47735
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index 9700994..3d691bc 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -656,7 +656,7 @@ java_hash_compare_tree_node (k1, k2) hash_table_key k1; hash_table_key k2; { - return ((char*) k1 == (char*) k2); + return ((tree) k1 == (tree) k2); } tree @@ -688,11 +688,8 @@ add_method_1 (handle_class, access_flags, name, function_type) init_test_hash_newfunc, java_hash_hash_tree_node, java_hash_compare_tree_node); - /* Initialize the static method invocation compound table */ - if (STATIC_CLASS_INIT_OPT_P ()) - hash_table_init (&DECL_FUNCTION_STATIC_METHOD_INVOCATION_COMPOUND (fndecl), - init_test_hash_newfunc, java_hash_hash_tree_node, - java_hash_compare_tree_node); + /* Initialize the static method invocation compound list */ + DECL_FUNCTION_STATIC_METHOD_INVOCATION_COMPOUND (fndecl) = NULL_TREE; TREE_CHAIN (fndecl) = TYPE_METHODS (handle_class); TYPE_METHODS (handle_class) = fndecl; |