mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-18 06:40:25 +08:00
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
This commit is contained in:
parent
3a1f863f50
commit
92f6e62532
@ -1,3 +1,8 @@
|
||||
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>
|
||||
|
||||
* class.c, decl.c, jcf-parse.c, jcf-write.c, parse.y,
|
||||
|
@ -634,17 +634,21 @@ java_init_decl_processing (void)
|
||||
method_symbols_array_ptr_type = build_pointer_type
|
||||
(method_symbols_array_type);
|
||||
|
||||
otable_decl = build_decl (VAR_DECL, get_identifier ("otable"), otable_type);
|
||||
DECL_EXTERNAL (otable_decl) = 1;
|
||||
TREE_STATIC (otable_decl) = 1;
|
||||
TREE_READONLY (otable_decl) = 1;
|
||||
pushdecl (otable_decl);
|
||||
if (flag_indirect_dispatch)
|
||||
{
|
||||
otable_decl = build_decl (VAR_DECL, get_identifier ("otable"),
|
||||
otable_type);
|
||||
DECL_EXTERNAL (otable_decl) = 1;
|
||||
TREE_STATIC (otable_decl) = 1;
|
||||
TREE_READONLY (otable_decl) = 1;
|
||||
pushdecl (otable_decl);
|
||||
|
||||
otable_syms_decl = build_decl (VAR_DECL, get_identifier ("otable_syms"),
|
||||
method_symbols_array_type);
|
||||
TREE_STATIC (otable_syms_decl) = 1;
|
||||
TREE_CONSTANT (otable_syms_decl) = 1;
|
||||
pushdecl (otable_syms_decl);
|
||||
otable_syms_decl = build_decl (VAR_DECL, get_identifier ("otable_syms"),
|
||||
method_symbols_array_type);
|
||||
TREE_STATIC (otable_syms_decl) = 1;
|
||||
TREE_CONSTANT (otable_syms_decl) = 1;
|
||||
pushdecl (otable_syms_decl);
|
||||
}
|
||||
|
||||
PUSH_FIELD (object_type_node, field, "vtable", dtable_ptr_type);
|
||||
/* This isn't exactly true, but it is what we have in the source.
|
||||
|
Loading…
x
Reference in New Issue
Block a user