summaryrefslogtreecommitdiff
path: root/gcc/java/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r--gcc/java/decl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index 86dd5c099da..ddba14ff274 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -605,6 +605,7 @@ java_init_decl_processing ()
one_elt_array_domain_type = build_index_type (integer_one_node);
otable_type = build_array_type (integer_type_node,
one_elt_array_domain_type);
+ TYPE_NONALIASED_COMPONENT (otable_type) = 1;
otable_ptr_type = build_pointer_type (otable_type);
method_symbol_type = make_node (RECORD_TYPE);
@@ -681,6 +682,10 @@ java_init_decl_processing ()
FIELD_PRIVATE (t) = 1;
push_super_field (class_type_node, object_type_node);
+ /* Hash synchronization requires at least double-word alignment. */
+ if (flag_hash_synchronization && POINTER_SIZE < 64)
+ TYPE_ALIGN (class_type_node) = 64;
+
FINISH_RECORD (class_type_node);
build_decl (TYPE_DECL, get_identifier ("Class"), class_type_node);