Commit e4724785 by Andrew Haley Committed by Andrew Haley

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
parent 4735cca6
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
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment