From aedcf8641f802c6796f2634a97cc0318c16cba84 Mon Sep 17 00:00:00 2001 From: kenner Date: Wed, 26 Apr 1995 23:17:42 +0000 Subject: [PATCH] (finish_decl_top_level): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9499 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-decl.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 06dff74..91565a8 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -2303,6 +2303,20 @@ pushdecl_top_level (x) current_binding_level = b; return t; } + + +/* Invoke finish_decl at the global binding level. */ + +void +finish_decl_top_level (d, i, a) + tree d, i, a; +{ + register struct binding_level *b = current_binding_level; + + current_binding_level = global_binding_level; + finish_decl (d, i, a); + current_binding_level = b; +} /* Generate an implicit declaration for identifier FUNCTIONID as a function of type int (). Print a warning if appropriate. */ -- 2.7.4