aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-09-10 01:52:54 -0700
committerRichard Henderson <rth@gcc.gnu.org>2001-09-10 01:52:54 -0700
commitc347e68d71ffaaf932cbe5263235afcc14129c55 (patch)
tree3eb9143af2506574a216cbcd7c1849579fa4c431 /gcc/java
parent6f36d76ad0c0dc6464f1eff5406cff0bf9da2f18 (diff)
downloadgcc-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/ChangeLog4
-rw-r--r--gcc/java/class.c4
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