diff options
author | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-03 05:38:32 +0000 |
---|---|---|
committer | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-03 05:38:32 +0000 |
commit | d2764e2dd35b831576251722eb96958cd055227f (patch) | |
tree | 85505dacc4125c518bd797dee4270aa38c395fe9 /gcc/c-parser.c | |
parent | 53fcd11d268d0c570234a8b838bd7f3175b14025 (diff) | |
download | gcc-d2764e2dd35b831576251722eb96958cd055227f.tar.gz |
2008-04-03 Paolo Bonzini <bonzini@gnu.org>
* c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
* c-tree.h (c_push_function_context, c_pop_function_context): Remove
argument.
* c-decl.c (c_push_function_context, c_pop_function_context): Remove
argument, call {push,pop}_function_context from here.
* c-parser.c: Use c_{push,pop}_function_context.
* function.c (push_function_context_to): Move meat ...
(push_function_context): ... here. Simplify.
* function.c (pop_function_context_from): Move meat ...
(pop_function_context): ... here. Simplify.
* langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
leave_nested).
* langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
(LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
* tree.h (push_function_context_to, pop_function_context_from): Remove.
cp:
2008-04-03 Paolo Bonzini <bonzini@gnu.org>
* method.c (synthesize_method): Use {push,pop}_function_context.
* name-lookup.c (push_to_top_level): Likewise.
* parser.c (cp_parser_late_parsing_for_member): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133860 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r-- | gcc/c-parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c index c0f86280164..d638a0b2537 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -1374,7 +1374,7 @@ c_parser_declaration_or_fndef (c_parser *parser, bool fndef_ok, bool empty_ok, { if (pedantic) pedwarn ("%HISO C forbids nested functions", &here); - push_function_context (); + c_push_function_context (); } if (!start_function (specs, declarator, all_prefix_attrs)) { @@ -1384,7 +1384,7 @@ c_parser_declaration_or_fndef (c_parser *parser, bool fndef_ok, bool empty_ok, c_parser_error (parser, "expected %<=%>, %<,%>, %<;%>, %<asm%> " "or %<__attribute__%>"); if (nested) - pop_function_context (); + c_pop_function_context (); break; } /* Parse old-style parameter declarations. ??? Attributes are @@ -1411,7 +1411,7 @@ c_parser_declaration_or_fndef (c_parser *parser, bool fndef_ok, bool empty_ok, tree decl = current_function_decl; add_stmt (fnbody); finish_function (); - pop_function_context (); + c_pop_function_context (); add_stmt (build_stmt (DECL_EXPR, decl)); } else |