OSDN Git Service

2001-03-19 Andrew Haley <aph@cambridge.redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Mar 2001 16:14:14 +0000 (16:14 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Mar 2001 16:14:14 +0000 (16:14 +0000)
        * class.c (build_static_field_ref): Call make_decl_rtl() after
        setting the DECL_EXTERNAL flag.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40620 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 4a7a909..63a70d7 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-19  Andrew Haley  <aph@cambridge.redhat.com>
+
+        * class.c (build_static_field_ref): Call make_decl_rtl() after
+        setting the DECL_EXTERNAL flag.
+
 2001-03-17  Per Bothner  <per@bothner.com>
 
        * decl.c (clear_binding_level):  Fix initializer (broke 03-15).
index ee26162..6fc4cac 100644 (file)
@@ -985,9 +985,9 @@ build_static_field_ref (fdecl)
     {
       if (!DECL_RTL_SET_P (fdecl))
        {
-         make_decl_rtl (fdecl, NULL);
          if (is_compiled == 1)
            DECL_EXTERNAL (fdecl) = 1;
+         make_decl_rtl (fdecl, NULL);
        }
       return fdecl;
     }