Re: c: Support C2x empty initializer braces

2022-08-25 Thread Joseph Myers
On Thu, 25 Aug 2022, Jakub Jelinek via Gcc-patches wrote: > > + && vec_safe_is_empty (CONSTRUCTOR_ELTS (*from_p))) > > Perhaps > && CONSTRUCTOR_NELTS (*from_p) == 0) > instead? > > > +{ > > +maybe_with_size_expr (from_p); > > The indentation above is 8 spaces instead of t

Re: c: Support C2x empty initializer braces

2022-08-25 Thread Jakub Jelinek via Gcc-patches
On Thu, Aug 25, 2022 at 05:33:02PM +, Joseph Myers wrote: > * gimplify.cc (gimplify_modify_expr): Convert initialization from > a variable-size CONSTRUCTOR to memset before call to > gimplify_modify_expr_rhs. > --- a/gcc/gimplify.cc > +++ b/gcc/gimplify.cc > @@ -6031,6 +6031,