[PATCH] avoid assuming known string length is constant (PR 83896)

Martin Sebor msebor@gmail.com
Tue Jan 16 19:37:00 GMT 2018


Recent improvements to the strlen pass introduced the assumption
that when the length of a string has been recorded by the pass
the length is necessarily constant.  Bug 83896 shows that this
assumption is not always true, and that GCC fails with an ICE
when it doesn't hold.  To avoid the ICE the attached patch
removes the assumption.

x86_64-linux bootstrap successful, regression test in progress.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-83896.diff
Type: text/x-patch
Size: 1647 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180116/a3e72e1d/attachment.bin>


More information about the Gcc-patches mailing list