From: Richard Kenner Date: Mon, 1 Aug 1994 23:27:34 +0000 (-0400) Subject: (permanent_allocation): When freeing to momentary_function_firstobj, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c61f7d69593ab779ab2b95b57fe66077af37865e;p=gcc.git (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 --- 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);