aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2003-08-01 18:41:40 +0000
committerZack Weinberg <zack@gcc.gnu.org>2003-08-01 18:41:40 +0000
commitf91f41b2949dac51c1367e1b5e5678cac6f30e27 (patch)
treeb78379f5b65e3815b2718d14618e418deacbbc47 /gcc/c-parse.in
parenta8eb1db5500def99dd77a07692d38468649a90da (diff)
downloadgcc-f91f41b2949dac51c1367e1b5e5678cac6f30e27.zip
gcc-f91f41b2949dac51c1367e1b5e5678cac6f30e27.tar.gz
gcc-f91f41b2949dac51c1367e1b5e5678cac6f30e27.tar.bz2
c-decl.c (gettags, [...]): Delete.
* c-decl.c (gettags, pushdecl_function_level): Delete. (last_function_parm_vars): Rename last_function_parm_others. (current_function_parm_vars): Rename current_function_parm_others. (struct c_scope): Rewrite comment explaining this data structure. Add names_last, blocks_last, parms_last fields. Rename incomplete_list to incomplete. (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros. (poplevel): Ignore second argument. No need to nreverse anything. Restructure such that each list is processed exactly once. Use 'const location_t *locus' syntactic sugar variable where useful. Issue unused variable warnings ourselves, do not rely on function.c. (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND. (pushdecl_top_level): Likewise. Don't call duplicate_decls. (implicitly_declare): decl cannot be error_mark_node. (undeclared_variable): Manipulate scope structure directly. (c_make_fname_decl): Likewise. (getdecls, c_init_decl_processing): Fix comment. (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need for 'last' variable. (grokparms): No need to nreverse parms list. (store_parm_decls_newstyle): Set up the parms_last and names_last fields of the new scope too. (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set on parms to begin with; check this under ENABLE_CHECKING. Set up parms_last. (check_for_loop_decls): Refer directly to current_scope->tags. Use consistent quote style in diagnostics. (c_write_global_declarations): The names list is not backward. * c-common.h: Don't prototype gettags. * c-parse.in: Call poplevel with second argument 0 always. From-SVN: r70061
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 dfdd9ab..2ae875e 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -2135,7 +2135,7 @@ compstmt_start: '{' { compstmt_count++;
compstmt_nostart: '}'
{ $$ = convert (void_type_node, integer_zero_node); }
| pushlevel maybe_label_decls compstmt_contents_nonempty '}' poplevel
- { $$ = poplevel (KEEP_MAYBE, 1, 0);
+ { $$ = poplevel (KEEP_MAYBE, 0, 0);
SCOPE_STMT_BLOCK (TREE_PURPOSE ($5))
= SCOPE_STMT_BLOCK (TREE_VALUE ($5))
= $$; }