diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-12-07 16:42:35 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-12-07 16:42:35 -0500 |
commit | 9e8730a444d8213d5c19a5a7723278acc725bc90 (patch) | |
tree | a3c90aa2028826350a5b34c468e81ff2a64c61f9 /gcc | |
parent | d4b0a7a049724e029148cc11e71e4bf51a10b092 (diff) | |
download | gcc-9e8730a444d8213d5c19a5a7723278acc725bc90.zip gcc-9e8730a444d8213d5c19a5a7723278acc725bc90.tar.gz gcc-9e8730a444d8213d5c19a5a7723278acc725bc90.tar.bz2 |
(preserve_momentary): New function.
From-SVN: r8623
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tree.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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. */ |