OSDN Git Service

2006-04-03 Andrew Haley <aph@redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Apr 2006 14:31:56 +0000 (14:31 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Apr 2006 14:31:56 +0000 (14:31 +0000)
        PR java/26858
        * expr.c (build_field_ref): Don't check the field offset if
        flag_syntax_only.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112640 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/expr.c

index e40d443..e3cde16 100644 (file)
@@ -1,3 +1,9 @@
+2006-04-03  Andrew Haley  <aph@redhat.com>
+
+       PR java/26858
+       * expr.c (build_field_ref): Don't check the field offset if
+       flag_syntax_only.
+
 2006-03-30  Andrew Haley  <aph@redhat.com>
 
        PR java/26858
index c178552..4a6afaa 100644 (file)
@@ -1696,7 +1696,8 @@ build_field_ref (tree self_value, tree self_class, tree name)
         memory may be allocated from any other page, so only field
         offsets < pagesize are guaratneed to trap.  We also assume
         the smallest page size we'll encounter is 4k bytes.  */
-      if (check && ! flag_check_references && ! flag_indirect_dispatch)
+      if (! flag_syntax_only && check && ! flag_check_references 
+         && ! flag_indirect_dispatch)
        {
          tree field_offset = byte_position (field_decl);
          if (! page_size)