[committed] use byte_representation instead of string_constant (PR 96670)

Martin Sebor msebor@gmail.com
Tue Aug 18 18:53:18 GMT 2020


The recent enhancement to memchr/memcmp folding introduced two bugs
(that I know of).  The attached patch fixes the one where a call to
the string_constant function that would previously be guaranteed to
succeed now fails as a result of the function only handling strings
and not other types.  The unexpected failure triggers an ICE down
the line.  I have committed the bootstrapped/regtested one-line
patch in r11-2742.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-96670.diff
Type: text/x-patch
Size: 3435 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200818/746ef044/attachment.bin>


More information about the Gcc-patches mailing list