[Bug middle-end/86714] tree-ssa-forwprop.c confused by too long initializer
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 30 08:08:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86714
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Agreed completely. Either change the FE to adjust the initializer to the right
length, or change the optimization to punt if the initializer is too long for
the field (note, you need to handle the one larger case with '\0' anyway), or
handle it by taking only the first 3 bytes from the first STRING_CST and then
use further bytes from the second one (my preference). Note, string_constant
already has an argument in which it can optionally provide the lengths.
More information about the Gcc-bugs
mailing list