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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <[email protected]>:

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

commit r17-5333-gac27d2e11708eb999fab1b26c053df4f3bd8fd0c
Author: Richard Biener <[email protected]>
Date:   Mon Oct 19 13:10:19 2026 +0200

    tree-optimization/127966 - wrong niter with iteration over STRING_CST

    The following fixes a sign-extension issue with loop_niter_by_eval
    simulating an iteration over a STRING_CST by performing the compare
    in uint8_t type.

            PR tree-optimization/127966
            * tree-ssa-loop-niter.cc (loop_niter_by_eval): Perform
            the comparison of the STRING_CST element with the
            terminating constant in uint8_t type.

            * gcc.dg/torture/pr127966.c: New testcase.

Reply via email to