(push_init_level): If not at "unfilled" position, set
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 1 Jul 1994 21:33:07 +0000 (17:33 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 1 Jul 1994 21:33:07 +0000 (17:33 -0400)
constructor_incremental to 0.

From-SVN: r7635

gcc/c-typeck.c

index 96a0a0a8cf146e8336e221d82c8deb6cec4ad6b0..c7f7d486a3bc8dc809ad161f5bcec062c0da966b 100644 (file)
@@ -5214,12 +5214,16 @@ push_init_level (implicit)
        {
          constructor_type = TREE_TYPE (constructor_fields);
          push_member_name (constructor_fields);
+         if (constructor_fields != constructor_unfilled_fields)
+           constructor_incremental = 0;
        }
     }
   else if (TREE_CODE (constructor_type) == ARRAY_TYPE)
     {
       constructor_type = TREE_TYPE (constructor_type);
       push_array_bounds (TREE_INT_CST_LOW (constructor_index));
+      if (! tree_int_cst_equal (constructor_index, constructor_unfilled_index))
+       constructor_incremental = 0;
     }
 
   if (constructor_type == 0)