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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alexandre Oliva <aol...@gcc.gnu.org>:

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

commit r15-6775-gfd4e979d0c66567c2cb89f97b51abd35a8773d88
Author: Alexandre Oliva <ol...@adacore.com>
Date:   Fri Jan 10 09:32:43 2025 -0300

    [ifcombine] fix mask variable test to match use [PR118344]

    There was a cut&pasto in the rr_and_mask's adjustment to match the
    combined type: the test on whether there was a mask already was
    testing the wrong variable, and then it might crash or otherwise fail
    accessing an undefined mask.  This only hit with checking enabled,
    and rarely at that.


    for  gcc/ChangeLog

            PR tree-optimization/118344
            * gimple-fold.cc (fold_truth_andor_for_ifcombine): Fix typo in
            rr_and_mask's type adjustment test.

    for  gcc/testsuite/ChangeLog

            PR tree-optimization/118344
            * gcc.dg/field-merge-19.c: New.

Reply via email to