From db84cc462232ae771283b4a81ef151e0008fa4d1 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Wed, 6 Jan 1999 09:49:29 -0800 Subject: [PATCH] check-init.c: New file. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit � * check-init.c: New file. Checks for definite assignment. Various minor other changes; see ChangeLog. From-SVN: r24521 --- gcc/java/ChangeLog | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 765d0d0685b..990890e8ec9 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,26 @@ +Wed Jan 6 17:19:46 1999 Per Bothner + + * 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 * parse.y : include system.h instead of including