OSDN Git Service

* java-tree.h (DECL_LOCAL_FINAL_IUD): New macro to test if a
authorrmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 29 May 2004 05:11:41 +0000 (05:11 +0000)
committerrmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 29 May 2004 05:11:41 +0000 (05:11 +0000)
commitb058b5b4a94939c18b568d90b3c1c1a2acb1459f
treefa7c6c430b62609bd2e6979cf8f506515595ec7f
parent972e98ddf92b3a62cda27f1c296052561d5ac76c
* java-tree.h (DECL_LOCAL_FINAL_IUD): New macro to test if a
local variable was initialised upon declaration.
* parse.y (declare_local_variables): Set DECL_LOCAL_FINAL_IUD if
variable was final and initialised upon declaration.
* check-init.c (check_final_reassigned): Give error only if a blank
final is not definitely unassigned or if an initialised final is
reassigned.
(check_bool_init): Respect JLS2 16.1.7 requirements for boolean
assignment expressions. Remove case MODIFY_EXPR, label do_default.
(check_init): Perform initialised-variable-removing-optimisation
only on non-final local variables.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82416 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/java/ChangeLog
gcc/java/check-init.c
gcc/java/java-tree.h
gcc/java/parse.y