https://gcc.gnu.org/g:a8e61cd71f0cda04d583722ca4c66301358b01e1
commit r15-2195-ga8e61cd71f0cda04d583722ca4c66301358b01e1 Author: Richard Biener <rguent...@suse.de> Date: Mon Jul 22 11:07:28 2024 +0200 Fix hash of WIDEN_*_EXPR We're hashing operand 2 to the temporary hash. * fold-const.cc (operand_compare::hash_operand): Fix hash of WIDEN_*_EXPR. Diff: --- gcc/fold-const.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/fold-const.cc b/gcc/fold-const.cc index 83c32dd10d4a..8908e7381e72 100644 --- a/gcc/fold-const.cc +++ b/gcc/fold-const.cc @@ -4123,7 +4123,7 @@ operand_compare::hash_operand (const_tree t, inchash::hash &hstate, hash_operand (TREE_OPERAND (t, 0), one, flags); hash_operand (TREE_OPERAND (t, 1), two, flags); hstate.add_commutative (one, two); - hash_operand (TREE_OPERAND (t, 2), two, flags); + hash_operand (TREE_OPERAND (t, 2), hstate, flags); return; }