https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107554
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:23a9270c999a24cdc0b716e832e5f16bb13db891 commit r11-10483-g23a9270c999a24cdc0b716e832e5f16bb13db891 Author: Richard Biener <[email protected]> Date: Fri Nov 11 14:28:52 2022 +0100 tree-optimization/107554 - fix ICE in stlen optimization The following fixes a wrongly typed variable causing an ICE. PR tree-optimization/107554 * tree-ssa-strlen.c (strlen_pass::count_nonzero_bytes): Use unsigned HOST_WIDE_INT type for the strlen. * gcc.dg/pr107554.c: New testcase. Co-Authored-By: Nikita Voronov <[email protected]> (cherry picked from commit 81de4037454275f8ed6d858fbc129e832c6147ef)
