summaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-10 15:50:22 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-10 15:50:22 +0000
commit03bfb68ff297da690fcf1a0e13a5eb6dacd1e2b3 (patch)
tree24e119b58e889caff12306c5a6f38931e8993941 /gcc/tree.c
parentea82bb93744f68a0411344b57701a041eb2b6bd1 (diff)
downloadgcc-03bfb68ff297da690fcf1a0e13a5eb6dacd1e2b3.tar.gz
* loop.c (basic_induction_var): Typo NULL_RTX -> NULL.
(strength_reduce): Release the varrays from the no-bivs early exit. * reload1.c (order_regs_for_reload): Init hard_reg_n_uses before the loop over the registers. * tree.c (save_tree_status): Set maybepermanent_firstobj NULL for a new obstack. (restore_tree_status): Check that instead when freeing the obstack. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29270 138bc75d-0d04-0410-961f-82ee72b054a4
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 16d3f4df43f..2dc6361d0ac 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);