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

--- Comment #8 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:cd6c3d19f6370810a20a2b84dad639200affa4fa

commit r16-7215-gcd6c3d19f6370810a20a2b84dad639200affa4fa
Author: Richard Biener <[email protected]>
Date:   Fri Jan 30 19:30:40 2026 +0100

    middle-end/123887 - fix another missing side-effect check

    The following fixes up another pattern lacking a check for
    side-effects on operands made evaluated unconditional.

            PR middle-end/123887
            * match.pd ((a ? x : y) !=/== (b ? x : y)): Make sure
            x and y have no side-effects before evaluating them
            unconditionally.

            * gcc.dg/torture/pr123887-2.c: New testcase.

Reply via email to