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

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

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

commit r14-12438-gd16cbe084c90a151a2fc326daeb7287485cb31d0
Author: Richard Biener <[email protected]>
Date:   Fri May 30 13:47:55 2025 +0200

    tree-optimization/120341 - stores into STRING_CSTs can trap

    The following fixes conditional store elimination and store motion
    so they consider stores to STRING_CSTs as trapping.

            PR tree-optimization/120341
            * tree-ssa-loop-im.cc (can_sm_ref_p): STRING_CSTs are readonly.

            * gcc.dg/torture/pr120341-1.c: New testcase.
            * gcc.dg/torture/pr120341-2.c: Likewise.

    (cherry picked from commit 02c58bc4b0885f5b6f50033da35768ebe6c4a030)

Reply via email to