check-init.c: New file.
authorPer Bothner <bothner@gcc.gnu.org>
Wed, 6 Jan 1999 17:49:29 +0000 (09:49 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Wed, 6 Jan 1999 17:49:29 +0000 (09:49 -0800)

* check-init.c:  New file.  Checks for definite assignment.
Various minor other changes;  see ChangeLog.

From-SVN: r24521

gcc/java/ChangeLog

index 765d0d0685b126f20f6525c3097a9cb2cb2c7835..990890e8ec9c524d74edd804352c00db7b61ca54 100644 (file)
@@ -1,3 +1,26 @@
+Wed Jan  6 17:19:46 1999  Per Bothner  <bothner@cygnus.com>
+
+       * java-tree.h:  Declare read_class.
+       * jcf-parse.c (read_class):  New function.
+       (load_class):  Now just call read_class.
+
+       * java-tree.h (java_parse_abort_on_error):  Only return if new errors.
+       * jcf-parse.c (parse_source_file):  Declare save_error_count,
+       which is needed by java_parse_abort_on_error macro,
+       * parse.y (java_layout_classes, java_expand_classes):  Likewise.
+
+       * parse.y (register_fields):  Set TREE_STATIC flag of NEW_ARRAY_INIT
+       constructor, if initializing a static field.
+       (patch_new_array_init):  Set TREE_CONSTANT if it is.
+       * expr.c (java_lang_expand_expr):  For a static array constructor
+       of primitive elements, allocate the array itself statically.
+       Disabled until we can set the vtable field statically.
+       
+       * check-init.c:  New file.  Checks for definite assignment.
+       * Makefile.in (JAVA_OBJS):  Add check-init.o.
+       * parse.y (java_complete_expand_method): Call check_for_initialization.
+       * parse.h (BLOCK_EXPR_DECLS, BLOCK_EXPR_BODY):  Moved to java-tree.h.
+
 Wed Jan  6 14:53:10 1999  Graham <grahams@rcp.co.uk>
 
        * parse.y : include system.h instead of including