This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: xscale-elf testsuite results


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));
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]