(put_reg_into_stack): Allocate fixup structure in saveable obstack.
authorRichard Kenner <kenner@gcc.gnu.org>
Sun, 10 Oct 1993 21:10:48 +0000 (17:10 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 10 Oct 1993 21:10:48 +0000 (17:10 -0400)
From-SVN: r5714

gcc/function.c

index 824855dc44b2e07f21533987fc2dc3d55c465c98..e1c6a9e08e74fb7211c7ca1b72b301f0911cfef6 100644 (file)
@@ -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);