OSDN Git Service

* java-tree.h (CONSTANT_VALUE_P): New macro.
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Apr 2001 20:56:01 +0000 (20:56 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Apr 2001 20:56:01 +0000 (20:56 +0000)
commit43a20035709c4824a6f73c60c28d4a2cc71e2ddc
tree5a388d102608c5d677efdc447fcc9f752c7506e8
parent94563e2431974f5b1441bf07fbac70ff5c3a4751
* java-tree.h (CONSTANT_VALUE_P):  New macro.
* jcf-write.c (generate_classfile):  Use CONSTANT_VALUE_P.
* parse.y (maybe_build_class_init_for_field):  New static function.
(resolve_expression_name, resolve_field_access):  Use
maybe_build_class_init_for_field instead of build_class_init
This does not do the init if the field is compile-time-constant.
(resolve_field_access):  Simplify.

* parse.y (fold_constant_for_init):  Merge test into switch.

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