summaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-04 18:44:53 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-04 18:44:53 +0000
commitecc74eeaa9039b5cca365292229f95e4ff0df24b (patch)
tree53c5cc5b6cfb9186e5f76d34fc5fec1124c7e943 /gcc/java/class.c
parentbbfdda8b30845a74660e87202c4bcc24e4c25e2f (diff)
downloadgcc-ecc74eeaa9039b5cca365292229f95e4ff0df24b.tar.gz
2006-05-04 Andrew Haley <aph@redhat.com>
* class.c (make_field_value): Always build_address_of fdecl if there is an initializer. 2006-05-03 Andrew Haley <aph@redhat.com> PR libgcj/27352 * expr.c (maybe_rewrite_invocation): New function. (rewrite_arglist_getclass): Likewise. (rules): New. (expand_invoke): Call maybe_rewrite_invocation. * parse.y (patch_invoke): Likewise. * java-tree.h: (maybe_rewrite_invocation): New function. 2006-05-03 Andrew Haley <aph@redhat.com> PR libgcj/27352 * java/lang/Class.java (getClassLoader(Class)): New. forName(String, Class): New. * java/lang/natClass.cc (getClassLoader(Class)): New. 2006-05-02 Andrew Haley <aph@redhat.com> * prims.cc (_Jv_NewMultiArray): Check for phantom class. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113532 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index fe52e67d4ac..590925d3ab2 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -1344,7 +1344,8 @@ make_field_value (tree fdecl)
{
tree field_address = integer_zero_node;
- if (! flag_indirect_classes && FIELD_STATIC (fdecl))
+ if ((DECL_INITIAL (fdecl) || ! flag_indirect_classes)
+ && FIELD_STATIC (fdecl))
field_address = build_address_of (fdecl);
PUSH_FIELD_VALUE