]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
AVR: ad target/84211 - Fix a build failure on some hosts.
authorGeorg-Johann Lay <avr@gjlay.de>
Tue, 19 Nov 2024 13:53:10 +0000 (14:53 +0100)
committerGeorg-Johann Lay <avr@gjlay.de>
Tue, 19 Nov 2024 14:18:22 +0000 (15:18 +0100)
This fixes a build failure on hosts where HARD_REG_SET is not a scalar.
The issue was introduced with the patch for PR84211 in r15-5415.
PR target/84211
gcc/
* config/avr/avr-passes.cc (memento_t::apply_insn1): Don't
use operator &= on memento_t.known but on memento_t itself.

gcc/config/avr/avr-passes.cc

index 2b67f9fa32ccdcc8774e7c88c8c4f9f8a287085b..3d55cf885c2ab240154bfa6b268600b056215a96 100644 (file)
@@ -2116,7 +2116,7 @@ memento_t::apply_insn1 (rtx_insn *insn, bool unused)
 
   HARD_REG_SET rset;
   find_all_hard_reg_sets (insn, &rset, true /* implicit */);
-  known &= ~rset;
+  (*this) &= ~rset;
 
   rtx set = single_set (insn);
   rtx dest;