diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2000-08-29 17:34:26 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2000-08-29 17:34:26 +0000 |
commit | 6ad79f1b8b9d061fb3d81b6f950f7115d644f0b6 (patch) | |
tree | 2c1ecb13722eae486296a2d1dc7dd617f60201d2 /gcc/c-parse.in | |
parent | c00f0fb22b193ad055fc552a9213bd5c1b48f032 (diff) | |
download | gcc-6ad79f1b8b9d061fb3d81b6f950f7115d644f0b6.zip gcc-6ad79f1b8b9d061fb3d81b6f950f7115d644f0b6.tar.gz gcc-6ad79f1b8b9d061fb3d81b6f950f7115d644f0b6.tar.bz2 |
c-decl.c (define_label): Call warning_with_file_and_line and error_with_file_and_line instead of plain...
* c-decl.c (define_label): Call warning_with_file_and_line and
error_with_file_and_line instead of plain warning or error.
* c-parse.in (label): Use save_filename/save_lineno to ensure
correct values for calls to define_label.
From-SVN: r36040
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r-- | gcc/c-parse.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in index 469cb5f..588faeb 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -1951,14 +1951,14 @@ label: CASE expr_no_commas ':' genrtl_case_label(CASE_LOW(case_label_tree), CASE_HIGH(case_label_tree)); position_after_white_space (); } - | identifier ':' maybe_attribute - { tree label = define_label (input_filename, lineno, $1); + | identifier ':' save_filename save_lineno maybe_attribute + { tree label = define_label ($3, $4, $1); stmt_count++; emit_nop (); if (label) { expand_label (label); - decl_attributes (label, $3, NULL_TREE); + decl_attributes (label, $5, NULL_TREE); } position_after_white_space (); } ; |