Commit 92f6e625 by Jeff Sturm Committed by Jeff Sturm

decl.c (java_init_decl_processing): Don't emit otable decls if flag_indirect_dispatch is not set.

* decl.c (java_init_decl_processing): Don't emit otable decls
if flag_indirect_dispatch is not set.

From-SVN: r71674
parent 3a1f863f
2003-09-22 Jeff Sturm <jsturm@one-point.com>
* decl.c (java_init_decl_processing): Don't emit otable decls
if flag_indirect_dispatch is not set.
2003-09-21 Richard Henderson <rth@redhat.com> 2003-09-21 Richard Henderson <rth@redhat.com>
* class.c, decl.c, jcf-parse.c, jcf-write.c, parse.y, * class.c, decl.c, jcf-parse.c, jcf-write.c, parse.y,
......
...@@ -634,7 +634,10 @@ java_init_decl_processing (void) ...@@ -634,7 +634,10 @@ java_init_decl_processing (void)
method_symbols_array_ptr_type = build_pointer_type method_symbols_array_ptr_type = build_pointer_type
(method_symbols_array_type); (method_symbols_array_type);
otable_decl = build_decl (VAR_DECL, get_identifier ("otable"), otable_type); if (flag_indirect_dispatch)
{
otable_decl = build_decl (VAR_DECL, get_identifier ("otable"),
otable_type);
DECL_EXTERNAL (otable_decl) = 1; DECL_EXTERNAL (otable_decl) = 1;
TREE_STATIC (otable_decl) = 1; TREE_STATIC (otable_decl) = 1;
TREE_READONLY (otable_decl) = 1; TREE_READONLY (otable_decl) = 1;
...@@ -645,6 +648,7 @@ java_init_decl_processing (void) ...@@ -645,6 +648,7 @@ java_init_decl_processing (void)
TREE_STATIC (otable_syms_decl) = 1; TREE_STATIC (otable_syms_decl) = 1;
TREE_CONSTANT (otable_syms_decl) = 1; TREE_CONSTANT (otable_syms_decl) = 1;
pushdecl (otable_syms_decl); pushdecl (otable_syms_decl);
}
PUSH_FIELD (object_type_node, field, "vtable", dtable_ptr_type); PUSH_FIELD (object_type_node, field, "vtable", dtable_ptr_type);
/* This isn't exactly true, but it is what we have in the source. /* This isn't exactly true, but it is what we have in the source.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment