xscale-elf testsuite results
Andrew Haley
aph@cambridge.redhat.com
Fri Mar 22 11:14:00 GMT 2002
This is a better patch.
Andrew.
from Tom Tromey <tromey@redhat.com>
* expr.c (build_field_ref): Don't build a check if the field is a
member of `this'.
Index: expr.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/expr.c,v
retrieving revision 1.132.2.4
diff -u -r1.132.2.4 expr.c
--- expr.c 2002年03月11日 11:25:48 1.132.2.4
+++ expr.c 2002年03月22日 19:13:11
@@ -1586,6 +1586,10 @@
}
else
{
+ int check = (flag_check_references
+ && ! (DECL_P (self_value)
+ && DECL_NAME (self_value) == this_identifier_node));
+
tree base_handle_type = promote_type (base_class);
if (base_handle_type != TREE_TYPE (self_value))
self_value = fold (build1 (NOP_EXPR, base_handle_type, self_value));
@@ -1593,7 +1597,7 @@
self_value = unhand_expr (self_value);
#endif
self_value = build_java_indirect_ref (TREE_TYPE (TREE_TYPE (self_value)),
- self_value, flag_check_references);
+ self_value, check);
return fold (build (COMPONENT_REF, TREE_TYPE (field_decl),
self_value, field_decl));
}
More information about the Java
mailing list