diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-08-01 19:27:34 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-08-01 19:27:34 -0400 |
commit | c61f7d69593ab779ab2b95b57fe66077af37865e (patch) | |
tree | 2b674c346ac25ca2c6290dde5f414e2d9ace4046 /gcc | |
parent | 73c8c157adf578b5fcd51d9a55a2dc5c3484a113 (diff) | |
download | gcc-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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tree.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |