This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][ARM] Fix -Werror build failure


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
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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]