aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-07-01 17:33:07 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-07-01 17:33:07 -0400
commit81f415f0b0d6d6769d62f9615551c55104b774d5 (patch)
treebffa4fd70f5023fefd59a3521792fde164da2f48
parentac1e676a1ac59aef2a554d229641fa2726b41092 (diff)
downloadgcc-81f415f0b0d6d6769d62f9615551c55104b774d5.zip
gcc-81f415f0b0d6d6769d62f9615551c55104b774d5.tar.gz
gcc-81f415f0b0d6d6769d62f9615551c55104b774d5.tar.bz2
(push_init_level): If not at "unfilled" position, set
constructor_incremental to 0. From-SVN: r7635
-rw-r--r--gcc/c-typeck.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 96a0a0a..c7f7d48 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -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)