[ARM] Fix -Werror build failure

Submitted by Andrew Stubbs on April 26, 2011, 9:49 a.m.

Details

Message ID 4DB69528.4050705@codesourcery.com
State New
Headers show

Commit Message

Andrew Stubbs April 26, 2011, 9:49 a.m.
My previous patch to clean up MOVW support left an unused variable. I 
tested building a cross-compiler, but not with -Werror. Others have 
reported native bootstrap failing. :(

This patch fixes that problem, and removes the unused variable warning 
message.

OK?

Andrew

Comments

Ramana Radhakrishnan April 26, 2011, 10:03 a.m.
>
> OK?

OK.

Ramana

Patch hide | download patch | download mbox

2011-04-26  Andrew Stubbs  <ams@codesourcery.com>

	gcc/
	* config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.

--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -2551,7 +2551,6 @@  arm_gen_constant (enum rtx_code code, enum machine_mode mode, rtx cond,
   int can_invert = 0;
   int can_negate = 0;
   int final_invert = 0;
-  int can_negate_initial = 0;
   int i;
   int num_bits_set = 0;
   int set_sign_bit_copies = 0;
@@ -2575,7 +2574,6 @@  arm_gen_constant (enum rtx_code code, enum machine_mode mode, rtx cond,
 
     case PLUS:
       can_negate = 1;
-      can_negate_initial = 1;
       break;
 
     case IOR: