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

--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Uros Bizjak <u...@gcc.gnu.org>:

https://gcc.gnu.org/g:10904e051f1b970cd8e030dff7dec8374c946b12

commit r12-10610-g10904e051f1b970cd8e030dff7dec8374c946b12
Author: Uros Bizjak <ubiz...@gmail.com>
Date:   Wed Jul 10 09:27:27 2024 +0200

    middle-end: Fix stalled swapped condition code value [PR115836]

    emit_store_flag_1 calculates scode (swapped condition code) at the
    beginning of the function from the value of code variable.  However,
    code variable may change before scode usage site, resulting in
    invalid stalled scode value.

    Move calculation of scode value just before its only usage site to
    avoid stalled scode value.

            PR middle-end/115836

    gcc/ChangeLog:

            * expmed.cc (emit_store_flag_1): Move calculation of
            scode just before its only usage site.

    (cherry picked from commit 44933fdeb338e00c972e42224b9a83d3f8f6a757)

Reply via email to