PR tree-optimization/86696 - ICE in handle_char_store at gcc/tree-ssa-strlen.c:3332
authorMartin Sebor <msebor@redhat.com>
Fri, 27 Jul 2018 17:06:44 +0000 (17:06 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Fri, 27 Jul 2018 17:06:44 +0000 (11:06 -0600)
commite4bbeea27ee88bca0261978ad389f2aff9a6b7fb
treef125c9ab7545a42ce51f366b544cb0f0564585c2
parent254c23d3f40c2832670c90de179630e903755252
PR tree-optimization/86696 - ICE in handle_char_store at gcc/tree-ssa-strlen.c:3332

gcc/ChangeLog:

PR tree-optimization/86696
* tree-ssa-strlen.c (get_min_string_length): Handle all integer
types, including enums.
(handle_char_store): Be prepared for the above function to fail.

gcc/testsuite/ChangeLog:

PR tree-optimization/86696
* gcc.dg/pr86696.C: New test.

From-SVN: r263032
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr86696.C [new file with mode: 0644]
gcc/tree-ssa-strlen.c