re PR libgcj/26858 (NullPointerException not generated for large classes...)

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
This commit is contained in:
Andrew Haley 2006-04-03 14:31:56 +00:00 committed by Andrew Haley
parent 4735cca6b1
commit e47247850c
2 changed files with 8 additions and 1 deletions

View 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

View 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)