From 9e8730a444d8213d5c19a5a7723278acc725bc90 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 7 Dec 1994 16:42:35 -0500 Subject: [PATCH] (preserve_momentary): New function. From-SVN: r8623 --- gcc/tree.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gcc/tree.c b/gcc/tree.c index 24a815ac76e..f7982aceaa3 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -752,6 +752,15 @@ push_momentary () expression_obstack = &momentary_obstack; } +/* Set things up so the next clear_momentary will only clear memory + past our present position in momentary_obstack. */ + +void +preserve_momentary () +{ + momentary_stack->base = (char *) obstack_base (&momentary_obstack); +} + /* Free all the storage in the current momentary-allocation level. In C, this happens at the end of each statement. */ -- 2.30.2