diff options
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r-- | gcc/java/decl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c index 8720423..047c0af 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -638,6 +638,9 @@ java_init_decl_processing (void) otable_ptr_type = build_pointer_type (otable_type); PUSH_FIELD (object_type_node, field, "vtable", dtable_ptr_type); + DECL_FCONTEXT (field) = object_type_node; + TYPE_VFIELD (object_type_node) = field; + /* This isn't exactly true, but it is what we have in the source. There is an unresolved issue here, which is whether the vtable should be marked by the GC. */ |