aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-08-01 19:27:34 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-08-01 19:27:34 -0400
commitc61f7d69593ab779ab2b95b57fe66077af37865e (patch)
tree2b674c346ac25ca2c6290dde5f414e2d9ace4046
parent73c8c157adf578b5fcd51d9a55a2dc5c3484a113 (diff)
downloadgcc-c61f7d69593ab779ab2b95b57fe66077af37865e.zip
gcc-c61f7d69593ab779ab2b95b57fe66077af37865e.tar.gz
gcc-c61f7d69593ab779ab2b95b57fe66077af37865e.tar.bz2
(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
-rw-r--r--gcc/tree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 4bc62e0..e5b12be 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);