From: Richard Kenner Date: Wed, 7 Dec 1994 21:42:35 +0000 (-0500) Subject: (preserve_momentary): New function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e8730a444d8213d5c19a5a7723278acc725bc90;p=gcc.git (preserve_momentary): New function. From-SVN: r8623 --- 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. */