From 6bc5f6cb54247182dd405f10bd77033499bc13ad Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Mon, 19 Mar 2001 16:14:14 +0000 Subject: [PATCH] class.c (build_static_field_ref): Call make_decl_rtl() after setting the DECL_EXTERNAL flag. 2001-03-19 Andrew Haley * class.c (build_static_field_ref): Call make_decl_rtl() after setting the DECL_EXTERNAL flag. From-SVN: r40620 --- gcc/java/ChangeLog | 5 +++++ gcc/java/class.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 4a7a90928bd..63a70d7cddf 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2001-03-19 Andrew Haley + + * class.c (build_static_field_ref): Call make_decl_rtl() after + setting the DECL_EXTERNAL flag. + 2001-03-17 Per Bothner * decl.c (clear_binding_level): Fix initializer (broke 03-15). diff --git a/gcc/java/class.c b/gcc/java/class.c index ee261621ac5..6fc4cace43d 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -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; } -- 2.30.2