class.c (build_static_field_ref): Call make_decl_rtl() after setting the DECL_EXTERNAL flag.

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
This commit is contained in:
Andrew Haley 2001-03-19 16:14:14 +00:00 committed by Andrew Haley
parent e7aadbbb7b
commit 6bc5f6cb54
2 changed files with 6 additions and 1 deletions

View 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).

View 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;
}