+2020-03-17 Christophe Lyon <christophe.lyon@linaro.org>
+
+ * c-typeck.c (process_init_element): Handle constructor_type with
+ type size represented by POLY_INT_CST.
+
2020-03-17 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/94187
/* Ignore elements of an initializer for a variable-size type.
Those are diagnosed in digest_init. */
if (COMPLETE_TYPE_P (constructor_type)
- && TREE_CODE (TYPE_SIZE (constructor_type)) != INTEGER_CST)
+ && !poly_int_tree_p (TYPE_SIZE (constructor_type)))
return;
if (!implicit && warn_designated_init && !was_designated
+2020-03-17 Christophe Lyon <christophe.lyon@linaro.org>
+
+ * gcc.target/aarch64/sve/acle/general-c/sizeless-1.c: Remove
+ superfluous dg-error.
+ * gcc.target/aarch64/sve/acle/general-c/sizeless-2.c: Likewise.
+
2020-03-17 Jakub Jelinek <jakub@redhat.com>
PR middle-end/94189
svint8_t array[2]; /* { dg-error {array elements cannot have SVE type 'svint8_t'} } */
svint8_t zero_length_array[0]; /* { dg-error {array elements cannot have SVE type 'svint8_t'} } */
svint8_t empty_init_array[] = {}; /* { dg-error {array elements cannot have SVE type 'svint8_t'} } */
- /* { dg-error {empty scalar initializer} "" { target *-*-* } .-1 } */
typedef svint8_t vla_type[n]; /* { dg-error {array elements cannot have SVE type 'svint8_t'} } */
/* Assignment. */
svint8_t array[2]; /* { dg-error {array elements cannot have SVE type 'svint8_t'} } */
svint8_t zero_length_array[0]; /* { dg-error {array elements cannot have SVE type 'svint8_t'} } */
svint8_t empty_init_array[] = {}; /* { dg-error {array elements cannot have SVE type 'svint8_t'} } */
- /* { dg-error {empty scalar initializer} "" { target *-*-* } .-1 } */
typedef svint8_t vla_type[n]; /* { dg-error {array elements cannot have SVE type 'svint8_t'} } */
/* Assignment. */