Commit 5ded5b76 by Richard Kenner

(pop_init_level): Ensure never on momentary_obstack when calling

complete_array_type.

From-SVN: r6169
parent 9080bb7f
...@@ -5235,11 +5235,14 @@ pop_init_level (implicit) ...@@ -5235,11 +5235,14 @@ pop_init_level (implicit)
&& TYPE_DOMAIN (constructor_type) == 0) && TYPE_DOMAIN (constructor_type) == 0)
{ {
int failure; int failure;
int momentary_p;
push_obstacks_nochange (); push_obstacks_nochange ();
if (TREE_PERMANENT (constructor_type)) if (TREE_PERMANENT (constructor_type))
end_temporary_allocation (); end_temporary_allocation ();
momentary_p = suspend_momentary ();
/* We shouldn't have an incomplete array type within /* We shouldn't have an incomplete array type within
some other type. */ some other type. */
if (constructor_stack->next) if (constructor_stack->next)
...@@ -5252,6 +5255,7 @@ pop_init_level (implicit) ...@@ -5252,6 +5255,7 @@ pop_init_level (implicit)
abort (); abort ();
size = int_size_in_bytes (constructor_type); size = int_size_in_bytes (constructor_type);
resume_momentary (momentary_p);
pop_obstacks (); pop_obstacks ();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment