From 4da73fa0bab5a9c53eae9ccf476fcd291cf696d6 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 10 Oct 1993 17:10:48 -0400 Subject: [PATCH] (put_reg_into_stack): Allocate fixup structure in saveable obstack. From-SVN: r5714 --- gcc/function.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/function.c b/gcc/function.c index 824855dc44b..e1c6a9e08e7 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -1074,8 +1074,11 @@ put_reg_into_stack (function, reg, type, promoted_mode, decl_mode) /* Variable is inherited; fix it up when we get back to its function. */ push_obstacks (function->function_obstack, function->function_maybepermanent_obstack); + + /* See comment in restore_tree_status in tree.c for why this needs to be + on saveable obstack. */ temp - = (struct var_refs_queue *) oballoc (sizeof (struct var_refs_queue)); + = (struct var_refs_queue *) savealloc (sizeof (struct var_refs_queue)); temp->modified = reg; temp->promoted_mode = promoted_mode; temp->unsignedp = TREE_UNSIGNED (type); -- 2.30.2