[Bug c++/93210] Sub-optimal code optimization on struct/combound constexpr (gcc vs. clang)

2020-01-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93210 --- Comment #4 from Jakub Jelinek --- Created attachment 47628 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47628=edit gcc10-pr93210-wip.patch Untested patch that fixes this, by moving native_encode_initializer from dwarf2out.c to

[Bug c++/93210] Sub-optimal code optimization on struct/combound constexpr (gcc vs. clang)

2020-01-09 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93210 --- Comment #3 from Jakub Jelinek --- Ah, we already do have native_encode_initializer, so perhaps we should move it over from dwarf2out.c to fold-const.c and tweak to handle the 4 arguments instead of 3 and possibly NULL ptr.

[Bug c++/93210] Sub-optimal code optimization on struct/combound constexpr (gcc vs. clang)

2020-01-09 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93210 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/93210] Sub-optimal code optimization on struct/combound constexpr (gcc vs. clang)

2020-01-09 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93210 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1