Java: build_static_field_ref
Andrew Haley
aph@cambridge.redhat.com
Mon Mar 19 08:07:00 GMT 2001
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;
More information about the Java
mailing list