summaryrefslogtreecommitdiff
path: root/gcc/java/ChangeLog
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-14 19:22:30 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-14 19:22:30 +0000
commitefdf3e4539836aa10f6749cb0d0038639b6f6502 (patch)
treed991649ba93a9408ad3341cf5ddd4bb0ee29bbfa /gcc/java/ChangeLog
parent192e3e6d29adf60946623d0bfdc1bfe2fd472270 (diff)
downloadgcc-efdf3e4539836aa10f6749cb0d0038639b6f6502.tar.gz
* parse.y (fold_constant_for_init): New function. (resolve_expression_name): Don't replace static final constant-initialized fields by its value. (java_complete_lhs): New. Same as java_complete_tree, except does not replace static final constant-initialized fields by their values. (register_fields): If there is an initializer, set DECL_INITIAL and MODIFY_EXPR_FROM_INITIALIZATION_P. (java_complete_tree): For MODIFY_EXPR, use java_complete_lhs for lhs. Only call patch_initialized_static_field if MODIFY_EXPR_FROM_INITIALIZATION_P. (patch_initialized_static_field): If not valid constant, clear DECL_INITIAL. * parse.y (lookup_field_wrapper): Fix thinko. * parse.y (java_complete_tree): In EXPR_WITH_FILE_LOCATION, set and restore global lineno. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24317 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/ChangeLog')
-rw-r--r--gcc/java/ChangeLog20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index a2893099104..4032f8ffacd 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,23 @@
+Mon Dec 14 18:49:29 1998 Per Bothner <bothner@cygnus.com>
+
+ * parse.y (fold_constant_for_init): New function.
+ (resolve_expression_name): Don't replace static final
+ constant-initialized fields by its value.
+ (java_complete_lhs): New. Same as java_complete_tree, except does
+ not replace static final constant-initialized fields by their values.
+ (register_fields): If there is an initializer, set DECL_INITIAL and
+ MODIFY_EXPR_FROM_INITIALIZATION_P.
+ (java_complete_tree): For MODIFY_EXPR, use java_complete_lhs for lhs.
+ Only call patch_initialized_static_field if
+ MODIFY_EXPR_FROM_INITIALIZATION_P.
+ (patch_initialized_static_field): If not valid constant, clear
+ DECL_INITIAL.
+
+ * parse.y (lookup_field_wrapper): Fix thinko.
+
+ * parse.y (java_complete_tree): In EXPR_WITH_FILE_LOCATION,
+ set and restore global lineno.
+
1998-12-14 Tom Tromey <tromey@cygnus.com>
* gjavah.c (print_field_info): If value to print is the smallest