diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0313a840..0fcf494 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-08-30 Andrew Stubbs <ams@codesourcery.com> + + * config/arm/arm.c (arm_gen_constant): Set can_negate correctly + when code is SET. + 2011-08-30 Richard Guenther <rguenther@suse.de> PR middle-end/48571 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 0490da2..3a49f40 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -3367,8 +3367,8 @@ arm_gen_constant (enum rtx_code code, enum machine_mode mode, rtx cond, if (code == SET) { + can_negate = can_invert; can_invert = 0; - can_negate = 1; code = PLUS; } else if (code == MINUS) |