decl2.c (get_sentry): Use end_temporary_allocation.
authorJason Merrill <jason@yorick.cygnus.com>
Mon, 18 May 1998 23:23:05 +0000 (23:23 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 18 May 1998 23:23:05 +0000 (19:23 -0400)
* decl2.c (get_sentry): Use end_temporary_allocation.
Don't declare permanent_obstack.

From-SVN: r19858

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 981787a..b45c921 100644 (file)
@@ -1,3 +1,8 @@
+Mon May 18 23:22:52 1998  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * decl2.c (get_sentry): Use end_temporary_allocation.
+       Don't declare permanent_obstack.
+
 Mon May 18 12:28:44 1998  Mark Mitchell  <mmitchell@usa.net>
 
        * parse.y (.finish_new_placement): New non-terminal.
index 200ace4..694f151 100644 (file)
@@ -2774,8 +2774,6 @@ extern int parse_time, varconst_time;
 extern tree pending_templates;
 extern tree maybe_templates;
 
-extern struct obstack permanent_obstack;
-
 static tree
 get_sentry (base)
      tree base;
@@ -2787,7 +2785,8 @@ get_sentry (base)
   tree sentry = IDENTIFIER_GLOBAL_VALUE (sname);
   if (! sentry)
     {
-      push_obstacks (&permanent_obstack, &permanent_obstack);
+      push_obstacks_nochange ();
+      end_temporary_allocation ();
       sentry = build_decl (VAR_DECL, sname, integer_type_node);
       TREE_PUBLIC (sentry) = 1;
       DECL_ARTIFICIAL (sentry) = 1;