From: Georg-Johann Lay Date: Thu, 13 Mar 2014 09:16:53 +0000 (+0000) Subject: re PR target/60486 ([avr] superfluous or missing comparision after addition or subtra... X-Git-Tag: releases/gcc-4.9.0~472 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f3a3138b6e4517a3672329d4cb22d7c828ea837;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7d3cd4efc936..b88ee28f9c6a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-03-13 Georg-Johann Lay + + 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 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index cbfa4b7c3fbe..e16f3bf058ad 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) {