* class.c (build_class_ref): Set DECL_EXTERNAL before make_decl_rtl.

From-SVN: r45500
This commit is contained in:
Richard Henderson 2001-09-10 01:52:54 -07:00 committed by Richard Henderson
parent 6f36d76ad0
commit c347e68d71
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2001-09-10 Richard Henderson <rth@redhat.com>
* class.c (build_class_ref): Set DECL_EXTERNAL before make_decl_rtl.
2001-09-07 Matt Kraai <kraai@alumni.carnegiemellon.edu>
* typeck.c (java_array_type_length, build_prim_array_type):

View File

@ -1026,13 +1026,13 @@ build_class_ref (type)
TREE_PUBLIC (decl) = 1;
DECL_IGNORED_P (decl) = 1;
DECL_ARTIFICIAL (decl) = 1;
if (is_compiled == 1)
DECL_EXTERNAL (decl) = 1;
SET_DECL_ASSEMBLER_NAME (decl,
java_mangle_class_field
(&temporary_obstack, type));
make_decl_rtl (decl, NULL);
pushdecl_top_level (decl);
if (is_compiled == 1)
DECL_EXTERNAL (decl) = 1;
}
}
else