class.c (build_static_field_ref): Call make_decl_rtl() after setting the DECL_EXTERNA...
authorAndrew Haley <aph@cambridge.redhat.com>
Mon, 19 Mar 2001 16:14:14 +0000 (16:14 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Mon, 19 Mar 2001 16:14:14 +0000 (16:14 +0000)
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.

From-SVN: r40620

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

index 4a7a90928bd32f81c01ab66bbf4cb15978dd8dbd..63a70d7cddffeb43a1e6a903dbcf4313a3635826 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 ee261621ac51cbe36ee4d376d9383a23ce08c305..6fc4cace43db17bf08334090060262319b59e8d9 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;
     }