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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 43115
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43115&action=edit
gcc8-pr83801.patch

Untested patch, that if !is_init kind of restores the 7.x behavior of not using
DECL_INITIAL if it is BLKmode or has ARRAY_TYPE, on the other hand if is_init
it tries even harder now to optimize more cases.  But these are non-lval, so
not even inside of ADDR_EXPR and in initializers e.g. array indices should be
constant too and so it really should fold into something usable in the
initializer.

Reply via email to