From 5ded5b76a2fc550b8c88c1684a44639a3d34823d Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 27 Nov 1993 06:19:03 -0500 Subject: [PATCH] (pop_init_level): Ensure never on momentary_obstack when calling complete_array_type. From-SVN: r6169 --- gcc/c-typeck.c | 4 ++++ 1 file changed, 4 insertions(+) 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 (); } -- 2.30.2