aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2003-07-01 09:00:45 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2003-07-01 09:00:45 +0000
commit5b030314afd5f84d30e79594db48bb76da28e36a (patch)
tree1ab2a373f3e8ac65651f191c54f58b1023039ddc /gcc/c-parse.in
parentc9bdad35171f64bcabad635254fa9f3dfc05a376 (diff)
downloadgcc-5b030314afd5f84d30e79594db48bb76da28e36a.zip
gcc-5b030314afd5f84d30e79594db48bb76da28e36a.tar.gz
gcc-5b030314afd5f84d30e79594db48bb76da28e36a.tar.bz2
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
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index 55d06b4..d575013 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -2446,7 +2446,7 @@ label: CASE expr_no_commas ':'
{ stmt_count++;
$$ = do_case (NULL_TREE, NULL_TREE); }
| identifier save_location ':' maybe_attribute
- { tree label = define_label ($2.file, $2.line, $1);
+ { tree label = define_label ($2, $1);
stmt_count++;
if (label)
{