https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78257
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-11-09
CC| |mliska at suse dot cz
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed. Note handling the terminating nul is likely some off-by-one error
somewhere.
Handling arrays of integers (arrays in general) is harder as we do not store
the constructors in target representation (same for strings written as
{ 'a', 'b', '\0' } btw.). One can't use the host library routines to perform
the folding but has to compare two CONSTRUCTORs elementwise (they are at least
sorted).