This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Java: build_static_field_ref
- To: java at gcc dot gnu dot org, gcc-patches at gcc dot gnus dot org
- Subject: Java: build_static_field_ref
- From: Andrew Haley <aph at cambridge dot redhat dot com>
- Date: Mon, 19 Mar 2001 16:07:24 +0000 (GMT)
- References: <3AB07F71.4F017011@albatross.co.nz><15024.52925.50761.174636@viagra.cambridge.redhat.com>
Andrew Haley writes:
> Does anyone have any idea why make_decl_rtl() is called *before*
> setting the DECL_EXTERNAL flag?
I take it that the answer is no, so I checked in this patch to both
the 3.0 branch and the trunk. This allows IA-64 gcj to build.
Andrew.
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.
Index: class.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/class.c,v
retrieving revision 1.88
diff -p -2 -c -r1.88 class.c
*** class.c 2001/02/04 22:44:02 1.88
--- class.c 2001/03/19 16:05:35
*************** build_static_field_ref (fdecl)
*** 984,990 ****
if (DECL_RTL (fdecl) == 0)
{
- make_decl_rtl (fdecl, NULL);
if (is_compiled == 1)
DECL_EXTERNAL (fdecl) = 1;
}
return fdecl;
--- 984,990 ----
if (DECL_RTL (fdecl) == 0)
{
if (is_compiled == 1)
DECL_EXTERNAL (fdecl) = 1;
+ make_decl_rtl (fdecl, NULL);
}
return fdecl;