* [PATCH][ARM] Fix -Werror build failure
@ 2011-04-26 10:35 Andrew Stubbs
2011-04-26 11:44 ` Ramana Radhakrishnan
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Stubbs @ 2011-04-26 10:35 UTC (permalink / raw)
To: gcc-patches; +Cc: patches
[-- Attachment #1: Type: text/plain, Size: 273 bytes --]
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
[-- Attachment #2: unused-var.patch --]
[-- Type: text/x-patch, Size: 639 bytes --]
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:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH][ARM] Fix -Werror build failure
2011-04-26 10:35 [PATCH][ARM] Fix -Werror build failure Andrew Stubbs
@ 2011-04-26 11:44 ` Ramana Radhakrishnan
0 siblings, 0 replies; 2+ messages in thread
From: Ramana Radhakrishnan @ 2011-04-26 11:44 UTC (permalink / raw)
To: Andrew Stubbs; +Cc: gcc-patches, patches
>
> OK?
OK.
Ramana
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-26 10:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-26 10:35 [PATCH][ARM] Fix -Werror build failure Andrew Stubbs
2011-04-26 11:44 ` Ramana Radhakrishnan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).