* class.c (build_class_ref): Set DECL_EXTERNAL before make_decl_rtl.
authorRichard Henderson <rth@redhat.com>
Mon, 10 Sep 2001 08:52:54 +0000 (01:52 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 10 Sep 2001 08:52:54 +0000 (01:52 -0700)
From-SVN: r45500

gcc/java/ChangeLog
gcc/java/class.c

index 4c8b7e6a2b6e003cc3798365e2b231ba5bc6b1e5..057054fc7e3f1e280f746698d47bd4018e5178ce 100644 (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):
index 516ff8a38400e5c0492c33c604306435162b9c2f..2e6eadf16a367aa752902ef1ae8df5eb6f5462c1 100644 (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