]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libgcj/26858 (NullPointerException not generated for large classes...)
authorAndrew Haley <aph@redhat.com>
Mon, 3 Apr 2006 14:31:56 +0000 (14:31 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Mon, 3 Apr 2006 14:31:56 +0000 (14:31 +0000)
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.

From-SVN: r112640

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

index e40d443b21421776f8b2666e46a1513fa4b3d6da..e3cde16e80f1ecd12b6c044801d27047299b8762 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 c178552904dd07e768c94a4c4fce10117e54a37e..4a6afaa5827171b8d237b38b9d5319c3c7ae12ab 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)