c: ignore initializers for elements of variable-size types [PR93577]

Joseph Myers joseph@codesourcery.com
Fri Mar 13 21:47:39 GMT 2020


On Fri, 13 Mar 2020, Christophe Lyon via Gcc-patches wrote:

> The attached small patch fixes the problem (tested on arm and aarch64).
> OK?
> 
> gcc/c/ChangeLog:
> 
> 2020-03-13  Christophe Lyon  <christophe.lyon@linaro.org>
> 
>         * c-typeck.c (process_init_element): Handle constructor_type with
>         type size represented by POLY_INT_CST.
> 
> gcc/testsuite/ChangeLog:
> 
> 2020-03-13  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.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Gcc-patches mailing list