]> gcc.gnu.org Git - gcc.git/commitdiff
(finish_decl_top_level): New function.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 26 Apr 1995 23:17:42 +0000 (19:17 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 26 Apr 1995 23:17:42 +0000 (19:17 -0400)
From-SVN: r9499

gcc/c-decl.c

index 06dff74c57cb416d64c9347e1580d39a58831361..91565a8f12bf7c831ff27aef0c8de9c20fd26113 100644 (file)
@@ -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;
+}
 \f
 /* Generate an implicit declaration for identifier FUNCTIONID
    as a function of type int ().  Print a warning if appropriate.  */
This page took 0.06138 seconds and 5 git commands to generate.