From c61f7d69593ab779ab2b95b57fe66077af37865e Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 1 Aug 1994 19:27:34 -0400 Subject: [PATCH] (permanent_allocation): When freeing to momentary_function_firstobj, set momentary_firstobj to be the next available location (i.e., momentary_function_firstobj). From-SVN: r7845 --- gcc/tree.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/tree.c b/gcc/tree.c index 4bc62e08107..e5b12be88f8 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -519,7 +519,10 @@ permanent_allocation (function_end) /* Free up previous temporary obstack data */ obstack_free (&temporary_obstack, temporary_firstobj); if (function_end) - obstack_free (&momentary_obstack, momentary_function_firstobj); + { + obstack_free (&momentary_obstack, momentary_function_firstobj); + momentary_firstobj = momentary_function_firstobj; + } else obstack_free (&momentary_obstack, momentary_firstobj); obstack_free (&maybepermanent_obstack, maybepermanent_firstobj); -- 2.30.2