From 5b030314afd5f84d30e79594db48bb76da28e36a Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Tue, 1 Jul 2003 09:00:45 +0000 Subject: c-tree.h (define_label): Replace filename and lineno arguments with a location_t. * c-tree.h (define_label): Replace filename and lineno arguments with a location_t. * c-decl.c (poplevel): Adjust define_label call. (pop_label_level): Likewise. (define_label): Replace filename and lineno arguments with a location_t. (store_parm_decls): Use DECL_SOURCE_LOCATION. * c-parse.in (label): Adjust define_label call. * cp/cp-tree.h (define_label): Replace filename and lineno arguments with a location_t. * cp/decl.c (pop_label): Adjust define_label call. (define_label): Replace filename and lineno arguments with a location_t. * cp/semantics.c (finish_label): Adjust define_label call. * java/decl.c (poplevel): Adjust define_label call. From-SVN: r68766 --- gcc/java/decl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/java/decl.c') diff --git a/gcc/java/decl.c b/gcc/java/decl.c index 5354f89..2737463 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -1366,8 +1366,7 @@ poplevel (int keep, int reverse, int functionbody) { error_with_decl (label, "label `%s' used but not defined"); /* Avoid crashing later. */ - define_label (input_filename, lineno, - DECL_NAME (label)); + define_label (input_location, DECL_NAME (label)); } else if (warn_unused[UNUSED_LABEL] && !TREE_USED (label)) warning_with_decl (label, "label `%s' defined but not used"); -- cgit v1.1