java-tree.h (CONSTANT_VALUE_P): New macro.
authorPer Bothner <per@bothner.com>
Wed, 4 Apr 2001 20:56:01 +0000 (13:56 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Wed, 4 Apr 2001 20:56:01 +0000 (13:56 -0700)
commit3cc48399b878e39e334670e417741d6b3531185a
tree5a388d102608c5d677efdc447fcc9f752c7506e8
parent8e184d9cc12b898bba2aebea0e0e8d5faac9e569
java-tree.h (CONSTANT_VALUE_P): New macro.

* 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.

From-SVN: r41094
gcc/java/ChangeLog
gcc/java/java-tree.h
gcc/java/jcf-write.c
gcc/java/parse.y