aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 16d3f4d..2dc6361 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -365,8 +365,7 @@ save_tree_status (p)
function_maybepermanent_obstack
= (struct obstack *) xmalloc (sizeof (struct obstack));
gcc_obstack_init (function_maybepermanent_obstack);
- maybepermanent_firstobj
- = (char *) obstack_finish (function_maybepermanent_obstack);
+ maybepermanent_firstobj = NULL;
function_obstack = (struct obstack *) xmalloc (sizeof (struct obstack));
gcc_obstack_init (function_obstack);
@@ -399,9 +398,9 @@ restore_tree_status (p)
obstack_free (&temporary_obstack, temporary_firstobj);
obstack_free (&momentary_obstack, momentary_function_firstobj);
- obstack_free (function_obstack, 0);
+ obstack_free (function_obstack, NULL);
- if (obstack_empty_p (function_maybepermanent_obstack))
+ if (maybepermanent_firstobj == NULL)
free (function_maybepermanent_obstack);
free (function_obstack);