diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 1998-12-03 17:53:02 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 1998-12-03 09:53:02 -0800 |
commit | 1886c9d8361f7ba8931501dd8658026f5b3afcdd (patch) | |
tree | 6d202291abbf1bce63f1d1a56ad31396e3086b50 /gcc/java/java-tree.h | |
parent | 2036a15c6d3583a413934700c527ae626be01075 (diff) | |
download | gcc-1886c9d8361f7ba8931501dd8658026f5b3afcdd.zip gcc-1886c9d8361f7ba8931501dd8658026f5b3afcdd.tar.gz gcc-1886c9d8361f7ba8931501dd8658026f5b3afcdd.tar.bz2 |
java-tree.h (java_layout_seen_class_methods): New function prototype.
Thu Dec 3 17:11:12 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
* java-tree.h (java_layout_seen_class_methods): New function
prototype.
(LAYOUT_SEEN_CLASS_METHODS): Macro removed.
* jcf-parse.c (parse_class_file): Call java_layout_seen_class_methods.
* parse.h (PROMOTE_RECORD_IF_COMPLETE): New macro.
* parse.y (method_declarator:): Defined action.
(issue_warning_error_from_context): input_filename saved, set to
the appropriate value and restored after java_error is called.
(build_unresolved_array_type): Fixed comment.
(register_fields): Use PROMOTE_RECORD_IF_COMPLETE.
(method_header): Deal with return type the same way type are
handled for fields and method's parameters and local variables
types are handled.
(check_method_redefinition): Removed extra CR.
(declare_local_variables): Use PROMOTE_RECORD_IF_COMPLETE.
(java_layout_seen_class_methods): New function.
(java_layout_classes): Call java_layout_seen_class_methods.
Handles an obsolete way of declaring methods returning an array. Does
a better job at laying out class methods before code generation.
From-SVN: r24077
Diffstat (limited to 'gcc/java/java-tree.h')
-rw-r--r-- | gcc/java/java-tree.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index e8fbb61..4e65525 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -562,6 +562,7 @@ extern void parse_error_context VPROTO ((tree cl, char *msg, ...)); extern tree build_primtype_type_ref PROTO ((char *)); extern tree java_get_real_method_name PROTO ((tree)); extern void finish_class PROTO ((tree)); +extern void java_layout_seen_class_methods PROTO (()); /* Access flags etc for a method (a FUNCTION_DECL): */ @@ -843,10 +844,3 @@ extern tree *type_map; if (java_error_count) \ return; \ } - -#define LAYOUT_SEEN_CLASS_METHODS() \ - { \ - tree current; \ - for (current = all_class_list; current; current = TREE_CHAIN (current)) \ - layout_class_methods (TREE_TYPE (TREE_VALUE (current))); \ - } |