gcj.texi (Configure-time Options): Add -fcheck-references.
authorAndrew Haley <aph@redhat.com>
Fri, 23 Mar 2001 17:31:42 +0000 (17:31 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Fri, 23 Mar 2001 17:31:42 +0000 (17:31 +0000)
commit3e02b1c3e85584cb8d944fe4cd3c94eea723c77b
tree503104ab7465171bd52a6ef2b4bb97773e704bff
parent25caaba84b328d4db7c8e23b73f0aa575876b53b
gcj.texi (Configure-time Options): Add -fcheck-references.

2001-02-07  Andrew Haley  <aph@redhat.com>

* gcj.texi (Configure-time Options): Add -fcheck-references.
* expr.c (build_java_indirect_ref): New function.
(java_check_reference): New function.
(build_java_array_length_access): Use build_java_indirect_ref to
check for null references.
(build_java_arrayaccess): Likewise.
(build_get_class): Likewise.
(build_field_ref): Likewise.
(invoke_build_dtable): Likewise.
(build_invokeinterface): Likewise.
* lang.c (lang_f_options): Add flag_check_references.
* jvspec.c (jvgenmain_spec): Add flag_check_references.
* java-tree.h (flag_check_references): New variable.
* lang.c (flag_check_references): Likewise.
* parse.y (patch_invoke): Use java_check_reference.
(patch_assignment): Allow for extra nesting in
_Jv_CheckArrayStore.

From-SVN: r40782
gcc/java/ChangeLog
gcc/java/parse.y