aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2001-10-25 17:57:03 +0000
committerZack Weinberg <zack@gcc.gnu.org>2001-10-25 17:57:03 +0000
commit37207ee73dce7e537637606d3b4e7fc9852522d3 (patch)
tree12b2533fede08e5ce838d046b4e64bf512682986 /gcc/toplev.c
parent5037fa8112b6c0c7fc4c3a33a21ddc06104c9b7f (diff)
downloadgcc-37207ee73dce7e537637606d3b4e7fc9852522d3.zip
gcc-37207ee73dce7e537637606d3b4e7fc9852522d3.tar.gz
gcc-37207ee73dce7e537637606d3b4e7fc9852522d3.tar.bz2
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
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 1320013..818da6f 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -2334,8 +2334,7 @@ compile_file (name)
/* In case there were missing block closers,
get us back to the global binding level. */
- while (! global_bindings_p ())
- poplevel (0, 0, 0);
+ (*lang_hooks.clear_binding_stack) ();
/* Compilation is now finished except for writing
what's left of the symbol table output. */