[Bug c++/82888] terrible code generation for initialization of POD array members vs. clang

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 8 12:36:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82888

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #4)
> The front-end internally uses VEC_INIT_EXPR, and gimplifies it to a loop. I
> believe we should end up with an empty CONSTRUCTOR instead.

Indeed.  Note that using memset in the gimplification might pessimize
followup optimization, but maybe it's not too important cases only
(it forces the destination TREE_ADDRESSABLE).


More information about the Gcc-bugs mailing list