diff options
author | Richard Henderson <rth@redhat.com> | 2001-09-10 01:52:54 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-09-10 01:52:54 -0700 |
commit | c347e68d71ffaaf932cbe5263235afcc14129c55 (patch) | |
tree | 3eb9143af2506574a216cbcd7c1849579fa4c431 /gcc/java | |
parent | 6f36d76ad0c0dc6464f1eff5406cff0bf9da2f18 (diff) | |
download | gcc-c347e68d71ffaaf932cbe5263235afcc14129c55.zip gcc-c347e68d71ffaaf932cbe5263235afcc14129c55.tar.gz gcc-c347e68d71ffaaf932cbe5263235afcc14129c55.tar.bz2 |
* class.c (build_class_ref): Set DECL_EXTERNAL before make_decl_rtl.
From-SVN: r45500
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/java/class.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 4c8b7e6..057054f 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -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): diff --git a/gcc/java/class.c b/gcc/java/class.c index 516ff8a..2e6eadf 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -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 |