From: Richard Kenner Date: Sat, 27 Nov 1993 11:19:03 +0000 (-0500) Subject: (pop_init_level): Ensure never on momentary_obstack when calling X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ded5b76a2fc550b8c88c1684a44639a3d34823d;p=gcc.git (pop_init_level): Ensure never on momentary_obstack when calling complete_array_type. From-SVN: r6169 --- diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 6550df23388..15428e4dfd3 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -5235,11 +5235,14 @@ pop_init_level (implicit) && TYPE_DOMAIN (constructor_type) == 0) { int failure; + int momentary_p; push_obstacks_nochange (); if (TREE_PERMANENT (constructor_type)) end_temporary_allocation (); + momentary_p = suspend_momentary (); + /* We shouldn't have an incomplete array type within some other type. */ if (constructor_stack->next) @@ -5252,6 +5255,7 @@ pop_init_level (implicit) abort (); size = int_size_in_bytes (constructor_type); + resume_momentary (momentary_p); pop_obstacks (); }