diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 1999-03-27 16:17:16 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 1999-03-27 08:17:16 -0800 |
commit | f099f336d1933243103b460498b49c7b7314d2be (patch) | |
tree | 5c845724777068a4a854675479295670fdb5e96e /gcc/java/xref.c | |
parent | f1b0c0d8a3e03b8b587749e4087ccc2f20715279 (diff) | |
download | gcc-f099f336d1933243103b460498b49c7b7314d2be.zip gcc-f099f336d1933243103b460498b49c7b7314d2be.tar.gz gcc-f099f336d1933243103b460498b49c7b7314d2be.tar.bz2 |
[multiple changes]
Sat Mar 27 15:13:21 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.h (EXPR_WFL_GET_LINECOL): Set a line and column count
using a WFL compound value.
* parse.y (xref.h): Include.
(maybe_create_class_interface_decl): Set DECL_SOURCE_LINE to the
WFL compound value.
(register_fields): Set WFL compound value to lineno if doing
xrefs.
(java_complete_expand_method): Call expand_xref if flag_emit_xref
is set.
* xref.c (system.h, jcf.h, parse.h, obstack.h): Include.
* xref.h (expand_xref): Prototype renamed from xref_generate.
Sat Mar 27 14:16:32 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.h (BLOCK_CHAIN_DECL): New use GET_CURRENT_BLOCK.
(GET_CURRENT_BLOCK): New macro.
* parse.y (current_static_block): New global variable.
(method_body:): Define action.
(complete_method_declaration): Set current_function_decl to NULL
when work on the current method is done.
(declare_local_variables): Use GET_CURRENT_BLOCK.
(java_method_add_stmt): Likewise.
(java_complete_expand_method): Disable the use of `this' when
expanding <clinit>.
(enter_a_block): If no current method exist, use
current_static_block to link static initializer blocks.
(exit_block): Rewritten to use current_static_block when no current
method decl exists.
(lookup_name_in_blocks): Use GET_CURRENT_BLOCK.
(patch_return): Forbid the use of `return' in static initializers.
(patch_throw_statement): Fixed indentation. Issue specific error
for uncaught thrown checked exception in static initializer
blocks. Removed FIXME.
From-SVN: r26018
Diffstat (limited to 'gcc/java/xref.c')
-rw-r--r-- | gcc/java/xref.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/java/xref.c b/gcc/java/xref.c index 1276806..906dfed 100644 --- a/gcc/java/xref.c +++ b/gcc/java/xref.c @@ -26,9 +26,13 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ #include <stdio.h> #include "config.h" +#include "system.h" #include "tree.h" #include "java-tree.h" #include "xref.h" +#include "jcf.h" +#include "parse.h" +#include "obstack.h" static xref_flag_table xref_table [] = { |