From 37207ee73dce7e537637606d3b4e7fc9852522d3 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Thu, 25 Oct 2001 17:57:03 +0000 Subject: langhooks.c (lang_hook_default_clear_binding_stack): New. * langhooks.c (lang_hook_default_clear_binding_stack): New. (lang_hook_default_get_alias_set): Move next to other alias hooks. * langhooks.h: Prototype lang_hook_default_clear_binding_stack. (LANG_HOOKS_CLEAR_BINDING_STACK): New macro. (LANG_HOOKS_INITIALIZER): Add it. * toplev.h (struct lang_hooks): Add clear_binding_stack. * toplev.c (compile_file): Call lang_hooks.clear_binding_stack instead of a loop calling poplevel. cp: * cp-lang.c: Redefine LANG_HOOKS_CLEAR_BINDING_STACK to pop_everything. From-SVN: r46492 --- gcc/langhooks.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/langhooks.h') diff --git a/gcc/langhooks.h b/gcc/langhooks.h index 69ff1d8..d844cdb 100644 --- a/gcc/langhooks.h +++ b/gcc/langhooks.h @@ -38,9 +38,11 @@ extern HOST_WIDE_INT hook_get_alias_set_0 PARAMS ((tree)); extern void lang_hook_default_do_nothing PARAMS ((void)); extern int lang_hook_default_decode_option PARAMS ((int, char **)); extern HOST_WIDE_INT lang_hook_default_get_alias_set PARAMS ((tree)); +extern void lang_hook_default_clear_binding_stack PARAMS ((void)); #define LANG_HOOKS_INIT lang_hook_default_do_nothing #define LANG_HOOKS_FINISH lang_hook_default_do_nothing +#define LANG_HOOKS_CLEAR_BINDING_STACK lang_hook_default_clear_binding_stack #define LANG_HOOKS_INIT_OPTIONS lang_hook_default_do_nothing #define LANG_HOOKS_DECODE_OPTION lang_hook_default_decode_option #define LANG_HOOKS_POST_OPTIONS lang_hook_default_do_nothing @@ -99,6 +101,7 @@ int tree_inlining_default_hook_anon_aggr_type_p PARAMS ((tree)); #define LANG_HOOKS_INITIALIZER { \ LANG_HOOKS_INIT, \ LANG_HOOKS_FINISH, \ + LANG_HOOKS_CLEAR_BINDING_STACK, \ LANG_HOOKS_INIT_OPTIONS, \ LANG_HOOKS_DECODE_OPTION, \ LANG_HOOKS_POST_OPTIONS, \ -- cgit v1.1