aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>2000-03-16 18:32:45 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-03-16 18:32:45 +0000
commit64aa33dd9c7353a00780a6c6a45c4f835adc2996 (patch)
treea9a67b3bdebd8b47728643d12e9e3d6dffc0f055 /gcc/java/class.c
parent3c0fca12828829ee5a8c277c1792f59dfd868fef (diff)
downloadgcc-64aa33dd9c7353a00780a6c6a45c4f835adc2996.zip
gcc-64aa33dd9c7353a00780a6c6a45c4f835adc2996.tar.gz
gcc-64aa33dd9c7353a00780a6c6a45c4f835adc2996.tar.bz2
lang.c (flag_hash_synchronization): New global.
* lang.c (flag_hash_synchronization): New global. (lang_f_options): Added `hash-synchronization'. * lang-options.h: Mention -fhash-synchronization. * java-tree.h (flag_hash_synchronization): Declare. * expr.c (java_lang_expand_expr): Only push `sync_info' value when hash table synchronization is disabled. * decl.c (init_decl_processing): Only push `sync_info' value when hash table synchronization is disabled. * class.c (make_class_data): Only push `sync_info' field when hash table synchronization is disabled. Removed dead code. From-SVN: r32593
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index aea3dfd..99d38e0 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -1373,7 +1373,8 @@ make_class_data (type)
START_RECORD_CONSTRUCTOR (temp, object_type_node);
PUSH_FIELD_VALUE (temp, "vtable",
build1 (ADDR_EXPR, dtable_ptr_type, class_dtable_decl));
- PUSH_FIELD_VALUE (temp, "sync_info", null_pointer_node);
+ if (! flag_hash_synchronization)
+ PUSH_FIELD_VALUE (temp, "sync_info", null_pointer_node);
FINISH_RECORD_CONSTRUCTOR (temp);
START_RECORD_CONSTRUCTOR (cons, class_type_node);
PUSH_SUPER_VALUE (cons, temp);