summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-18 23:23:05 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-18 23:23:05 +0000
commitfb8d24715087a7b5e786068f19660287379aa621 (patch)
tree80c602cd8aa77dbc82cb897c47c3120432f05f7d /gcc
parentfe3e0d9f2ec8971d429e87ea03f35262730ae78d (diff)
downloadppe42-gcc-fb8d24715087a7b5e786068f19660287379aa621.tar.gz
ppe42-gcc-fb8d24715087a7b5e786068f19660287379aa621.zip
* decl2.c (get_sentry): Use end_temporary_allocation.
Don't declare permanent_obstack. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19858 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl2.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 981787a37ad..b45c9216161 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 200ace42831..694f1516724 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -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;
OpenPOWER on IntegriCloud