From patchwork Tue Apr 26 09:49:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Stubbs X-Patchwork-Id: 1176 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:49:55 -0000 Delivered-To: patches@linaro.org Received: by 10.224.2.73 with SMTP id 9cs65213qai; Tue, 26 Apr 2011 02:49:34 -0700 (PDT) Received: by 10.231.67.213 with SMTP id s21mr378354ibi.22.1303811374505; Tue, 26 Apr 2011 02:49:34 -0700 (PDT) Received: from mail.codesourcery.com (mail.codesourcery.com [38.113.113.100]) by mx.google.com with ESMTPS id 38si15399928ibi.52.2011.04.26.02.49.33 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Apr 2011 02:49:33 -0700 (PDT) Received-SPF: pass (google.com: domain of ams@codesourcery.com designates 38.113.113.100 as permitted sender) client-ip=38.113.113.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ams@codesourcery.com designates 38.113.113.100 as permitted sender) smtp.mail=ams@codesourcery.com Received: (qmail 1554 invoked from network); 26 Apr 2011 09:49:31 -0000 Received: from unknown (HELO ?192.168.0.104?) (ams@127.0.0.2) by mail.codesourcery.com with ESMTPA; 26 Apr 2011 09:49:31 -0000 Message-ID: <4DB69528.4050705@codesourcery.com> Date: Tue, 26 Apr 2011 10:49:28 +0100 From: Andrew Stubbs Organization: CodeSourcery User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org CC: patches@linaro.org Subject: [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 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: