From 916b57cedabb2d80ac3e947a682efa3bce15cf4e Mon Sep 17 00:00:00 2001 From: Jeff Sturm Date: Wed, 3 Sep 2003 13:44:43 +0000 Subject: decl.c (java_expand_body): New function. * decl.c (java_expand_body): New function. * expr.c (build_class_init): Set DECL_IGNORED_P. * java-tree.h (start_complete_expand_method, java_expand_body): Declare. * jcf-parse.c (cgraph.h): Include. (java_parse_file): Handle flag_unit_at_a_time. * lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING, LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define. (java_estimate_num_insns): Use walk_tree_without_duplicates. (java_start_inlining): New function. * parse.h (java_finish_classes): Declare. * parse.y: Include cgraph.h. (block): Don't special-case empty block production. (craft_constructor): Set DECL_INLINE. (source_end_java_method): Handle flag_unit_at_a_time. Replace inline code with call to java_expand_body. (start_complete_expand_method): Remove static modifier. (java_expand_method_bodies): Patch function tree for class initialization and/or synchronization as needed. Don't begin RTL expansion yet. (java_expand_classes): Check flag_unit_at_a_time before calling finish_class. (java_finish_classes): New function. (java_complete_lhs): Ensure COMPOUND_EXPR has non-NULL type. (patch_assignment): Set DECL_CONTEXT on temporary variable. (emit_test_initialization): Set DECL_IGNORED_P. From-SVN: r71024 --- gcc/java/java-tree.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/java/java-tree.h') diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index 0a7a542..69eb73c 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -1297,6 +1297,9 @@ extern void compile_resource_file (const char *, const char *); extern void write_resource_constructor (void); extern void init_resource_processing (void); +extern void start_complete_expand_method (tree); +extern void java_expand_body (tree); + #define DECL_FINAL(DECL) DECL_LANG_FLAG_3 (DECL) -- cgit v1.1