(variable_size): Return SIZE if it contains a PLACEHOLDER_EXPR.
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 20 Oct 1994 13:41:46 +0000 (09:41 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 20 Oct 1994 13:41:46 +0000 (09:41 -0400)
From-SVN: r8318

gcc/stor-layout.c

index 9fdc65100d63f35811cf7c9850703a186ebb550b..834e96d392bc9abe188757a3950e763f3ee76e95 100644 (file)
@@ -88,8 +88,8 @@ variable_size (size)
 {
   /* If the language-processor is to take responsibility for variable-sized
      items (e.g., languages which have elaboration procedures like Ada),
-     just return SIZE unchanged.  */
-  if (global_bindings_p () < 0)
+     just return SIZE unchanged.  Likewise for self-referential sizes.  */
+  if (global_bindings_p () < 0 || contains_placeholder_p (size))
     return size;
 
   size = save_expr (size);