From a2cad990a216ca3a96d5675c232332f088a1ef45 Mon Sep 17 00:00:00 2001 From: apbianco Date: Thu, 30 Dec 1999 22:36:25 +0000 Subject: 1999-12-14 Alexandre Petit-Bianco * class.c (class_depth): Return -1 if the class doesn't load properly. * expr.c (can_widen_reference_to): Check for errors during depth computation and return 0 accordingly. * jcf-parse.c (parse_source_file): Call java_fix_constructors to create default constructors and add an other error check. * parse.h (java_fix_constructors): Prototyped. * parse.y (java_pre_expand_clinit): Likewise. (build_super_invocation): Re-prototyped to feature one argument. (java_check_circular_reference): Directly use `current'. (java_fix_constructors): New function. (java_check_regular_methods): Don't create default constructors here, but abort if none were found. (java_complete_expand_methods): Pre-process calling java_pre_expand_clinit. (java_pre_expand_clinit): New function. (fix_constructors): build_super_invocation invoked with the current method declaration as an argument. (build_super_invocation): Use the context of the processed method decl argument instead of current_class. * typeck.c (lookup_java_method): Take WFLs in method names into account. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31144 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/java/parse.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/java/parse.h') diff --git a/gcc/java/parse.h b/gcc/java/parse.h index 4d3b9ee98e3..2cfbedaf602 100644 --- a/gcc/java/parse.h +++ b/gcc/java/parse.h @@ -662,6 +662,7 @@ struct parser_ctxt { void safe_layout_class PROTO ((tree)); void java_complete_class PROTO ((void)); void java_check_circular_reference PROTO ((void)); +void java_fix_constructors PROTO ((void)); void java_check_final PROTO ((void)); void java_layout_classes PROTO ((void)); tree java_method_add_stmt PROTO ((tree, tree)); -- cgit v1.2.3