diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2014-03-13 09:16:53 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2014-03-13 09:16:53 +0000 |
commit | 8f3a3138b6e4517a3672329d4cb22d7c828ea837 (patch) | |
tree | e93fa9860a29a19a314ba49505e5d3361df49e60 /gcc | |
parent | 0bb29a056aeaf8daafe5e61c5eabf7eaa45ffe1f (diff) | |
download | gcc-8f3a3138b6e4517a3672329d4cb22d7c828ea837.zip gcc-8f3a3138b6e4517a3672329d4cb22d7c828ea837.tar.gz gcc-8f3a3138b6e4517a3672329d4cb22d7c828ea837.tar.bz2 |
re PR target/60486 ([avr] superfluous or missing comparision after addition or subtraction)
PR target/60486
* config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
calls of avr_out_plus_1.
From-SVN: r208532
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/avr/avr.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7d3cd4e..b88ee28 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-03-13 Georg-Johann Lay <avr@gjlay.de> + + PR target/60486 + * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in + calls of avr_out_plus_1. + 2014-03-13 Bin Cheng <bin.cheng@arm.com> * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index cbfa4b7..e16f3bf 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -6812,8 +6812,8 @@ avr_out_plus (rtx insn, rtx *xop, int *plen, int *pcc, bool out_label) /* Work out the shortest sequence. */ - avr_out_plus_1 (op, &len_minus, MINUS, &cc_plus, code_sat, sign, out_label); - avr_out_plus_1 (op, &len_plus, PLUS, &cc_minus, code_sat, sign, out_label); + avr_out_plus_1 (op, &len_minus, MINUS, &cc_minus, code_sat, sign, out_label); + avr_out_plus_1 (op, &len_plus, PLUS, &cc_plus, code_sat, sign, out_label); if (plen) { |