aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/java-tree.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2003-06-09 12:57:15 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2003-06-09 12:57:15 +0000
commit36f04556d6bf6b8c272065bab473e354e8540ca9 (patch)
tree2c36f0d548c266e7b466be2d29acaab8cb00f8e1 /gcc/java/java-tree.h
parent86143cb4c392278ae78e47eb4fe884ba82364d6f (diff)
downloadgcc-36f04556d6bf6b8c272065bab473e354e8540ca9.zip
gcc-36f04556d6bf6b8c272065bab473e354e8540ca9.tar.gz
gcc-36f04556d6bf6b8c272065bab473e354e8540ca9.tar.bz2
tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is removed.
* tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is removed. * java/java-tree.h (DECL_FUNCTION_LAST_LINE): New. (struct lang_decl_func): Add last_line field. * java/parse.h (DECL_SOURCE_LINE_MERGE, DECL_SOURCE_LINE_FIRST, DECL_SOURCE_LINE_LAST): Remove. * java/parse.y (missing_return_error, finish_method_declaration, lookup_cl, start_artificial_method_body, source_end_java_method, start_complete_expand_method): Adjust. From-SVN: r67661
Diffstat (limited to 'gcc/java/java-tree.h')
-rw-r--r--gcc/java/java-tree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h
index 78bc924..341928d 100644
--- a/gcc/java/java-tree.h
+++ b/gcc/java/java-tree.h
@@ -773,6 +773,8 @@ union lang_tree_node
/* Number of local variable slots needed for the arguments of this function. */
#define DECL_ARG_SLOT_COUNT(DECL) \
(DECL_LANG_SPECIFIC(DECL)->u.f.arg_slot_count)
+/* Line number of end of function. */
+#define DECL_FUNCTION_LAST_LINE(DECL) (DECL_LANG_SPECIFIC(DECL)->u.f.last_line)
/* Information on declaration location */
#define DECL_FUNCTION_WFL(DECL) (DECL_LANG_SPECIFIC(DECL)->u.f.wfl)
/* List of checked thrown exceptions, as specified with the `throws'
@@ -974,6 +976,7 @@ struct lang_decl_func GTY(())
int max_locals;
int max_stack;
int arg_slot_count;
+ int last_line; /* End line number for a function decl */
tree wfl; /* Information on the original location */
tree throws_list; /* Exception specified by `throws' */
tree function_decl_body; /* Hold all function's statements */