From: Richard Kenner Date: Sun, 10 Oct 1993 21:10:48 +0000 (-0400) Subject: (put_reg_into_stack): Allocate fixup structure in saveable obstack. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4da73fa0bab5a9c53eae9ccf476fcd291cf696d6;p=gcc.git (put_reg_into_stack): Allocate fixup structure in saveable obstack. From-SVN: r5714 --- 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);