aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-parser.cc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2025-01-10 09:32:43 -0300
committerAlexandre Oliva <oliva@gnu.org>2025-01-10 09:40:39 -0300
commitfd4e979d0c66567c2cb89f97b51abd35a8773d88 (patch)
treeef53c252da10edb63f21b42478171e53e7451e0b /gcc/c/c-parser.cc
parent740c84975ceb7426da656dc7115445872a9e5b6f (diff)
downloadgcc-fd4e979d0c66567c2cb89f97b51abd35a8773d88.zip
gcc-fd4e979d0c66567c2cb89f97b51abd35a8773d88.tar.gz
gcc-fd4e979d0c66567c2cb89f97b51abd35a8773d88.tar.bz2
[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.
Diffstat (limited to 'gcc/c/c-parser.cc')
0 files changed, 0 insertions, 0 deletions