re PR target/77326 ([avr] Invalid optimization omits comparison)
authorGeorg-Johann Lay <avr@gjlay.de>
Wed, 21 Sep 2016 09:17:32 +0000 (09:17 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Wed, 21 Sep 2016 09:17:32 +0000 (09:17 +0000)
commitbc084f84b3baee7b9fdc73cc05b6aa8adf1e97e5
treede1b810bcf4ee0b024d117dbedd3ed67f5be8921
parentc075003a1fc901d487c4cca0b10847d8fc1135fb
re PR target/77326 ([avr] Invalid optimization omits comparison)

gcc/
PR target/77326
* config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
touches some regs mentioned in cc_status, do CC_STATUS_INIT.
gcc/testsuite/
PR target/77326
* gcc.target/avr/torture/pr77326.c: New test.

From-SVN: r240306
gcc/ChangeLog
gcc/config/avr/avr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/avr/torture/pr77326.c [new file with mode: 0644]