https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107554

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:ca8b8191983d1a211a718b39ca07e35b8c626416

commit r12-9062-gca8b8191983d1a211a718b39ca07e35b8c626416
Author: Richard Biener <rguent...@suse.de>
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.cc (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 <nik_1...@mail.ru>
    (cherry picked from commit 81de4037454275f8ed6d858fbc129e832c6147ef)

Reply via email to