From patchwork Wed Nov 30 04:37:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 700848 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tT72l0BLzz9sDG for ; Wed, 30 Nov 2016 15:38:19 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="pBwiBIkT"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=jAJN1siFkgHpt27Lim5/ebtaSeJju6JI3SM70c+EOVaEzYlb9X eVtVNIinlCEjZ3cNS+bkSkJBV8gfQixbJa0R9N+wx1ZhR6O6BGZu5PYW9Wx1xBvU ASiYsg61LiZbUA+fPfFb460Ue7rhWssqBHAHlS9ZbJbC3Gy49HMSaIjmw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=J4e615W9X6SeiFeTn57sKmkyOj0=; b=pBwiBIkTPMcXeA/Q6qrW mjT94f1NSwE5G5w/1HYaS+BRT/r+jTEoQ+MFFWBX0Q8W8FgisFY86A9gLHsLbE+e AnA2xYW5hhoyGFErexMXMipnLOcPa0l/MC6mmPSbU6Ngvm+BYtLWFwxcwdilo8FA hj7r6wUhZUVELI1Omh+lgfE= Received: (qmail 98919 invoked by alias); 30 Nov 2016 04:38:09 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 98811 invoked by uid 89); 30 Nov 2016 04:38:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=arc-common.c, arccommonc, UD:arc-common.c X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 30 Nov 2016 04:37:59 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E48AB7F7A6 for ; Wed, 30 Nov 2016 04:37:57 +0000 (UTC) Received: from localhost.localdomain (ovpn-116-24.phx2.redhat.com [10.3.116.24]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAU4bvVV020395 for ; Tue, 29 Nov 2016 23:37:57 -0500 To: gcc-patches From: Jeff Law Subject: Fix arc builds Message-ID: <4e55f999-632c-23f0-6ee9-e8e9798dbb8b@redhat.com> Date: Tue, 29 Nov 2016 21:37:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 X-IsSubscribed: yes There's a couple unused variables in arc_handle_option. This patch removes them. Verified the arc port builds again. Installed on the trunk. Jeff commit 0177a97d002107d99f82be0861ac0052285ccc0a Author: law Date: Wed Nov 30 04:37:10 2016 +0000 * common/config/arc/arc-common.c (arc_handle_option): Remove unused variables. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242994 138bc75d-0d04-0410-961f-82ee72b054a4 diff --git a/gcc/ChangeLog b/gcc/ChangeLog index df787e1..a5b191b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2016-11-29 Jeff Law + * common/config/arc/arc-common.c (arc_handle_option): Remove unused + variables. + * lra-constraints.c (check_and_process_move): Constrain the range of DCLASS and SCLASS to avoid false positive out of bounds array index warning. diff --git a/gcc/common/config/arc/arc-common.c b/gcc/common/config/arc/arc-common.c index 1dbddae..9f87122 100644 --- a/gcc/common/config/arc/arc-common.c +++ b/gcc/common/config/arc/arc-common.c @@ -69,9 +69,7 @@ arc_handle_option (struct gcc_options *opts, { size_t code = decoded->opt_index; int value = decoded->value; - const char *arg = decoded->arg; static int mcpu_seen = PROCESSOR_NONE; - char *p; switch (code) {