(permanent_allocation): When freeing to momentary_function_firstobj,
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 1 Aug 1994 23:27:34 +0000 (19:27 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 1 Aug 1994 23:27:34 +0000 (19:27 -0400)
set momentary_firstobj to be the next available location (i.e.,
momentary_function_firstobj).

From-SVN: r7845

gcc/tree.c

index 4bc62e0..e5b12be 100644 (file)
@@ -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);