summaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-01 18:41:40 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-01 18:41:40 +0000
commit3bdb6310cafe44e2a6e80e8678aabc12f1898233 (patch)
treeb78379f5b65e3815b2718d14618e418deacbbc47 /gcc/c-common.h
parent307588f71ae49cb47a066bd33dd965b76423281e (diff)
downloadgcc-3bdb6310cafe44e2a6e80e8678aabc12f1898233.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70061 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index aecf9638a2f..da673f62da1 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -318,7 +318,6 @@ struct c_language_function GTY(()) {
extern void (*lang_expand_stmt) (tree);
extern void (*lang_expand_decl_stmt) (tree);
extern void (*lang_expand_function_end) (void);
-extern tree gettags (void);
/* Callback that determines if it's ok for a function to have no
noreturn attribute. */