(layout_type): Put size-related nodes in same obstack as type.
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 5 Aug 1993 23:23:52 +0000 (19:23 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 5 Aug 1993 23:23:52 +0000 (19:23 -0400)
From-SVN: r5079

gcc/stor-layout.c

index 620c0bb2b91a653edd20ae5f3bca3c8582010840..fb527a3de74c4839888f2436081c8a83281c074d 100644 (file)
@@ -676,18 +676,11 @@ layout_type (type)
      they must last past the current statement.  */
   old = suspend_momentary ();
 
-  /* If we are processing a permanent type, make nodes permanent.
-     If processing a temporary type, make it saveable, since the
-     type node itself is.  This is important if the function is inline,
-     since its decls will get copied later.  */
-  push_obstacks_nochange ();
-  if (allocation_temporary_p ())
-    {
-      if (TREE_PERMANENT (type))
-       end_temporary_allocation ();
-      else
-       saveable_allocation ();
-    }
+  /* Put all our nodes into the same obstack as the type.  Also,
+     make expressions saveable (this is a no-op for permanent types).  */
+
+  push_obstacks (TYPE_OBSTACK (type), TYPE_OBSTACK (type));
+  saveable_allocation ();
 
   switch (TREE_CODE (type))
     {