This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix arc builds
- From: Jeff Law <law at redhat dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 29 Nov 2016 21:37:57 -0700
- Subject: Fix arc builds
- Authentication-results: sourceware.org; auth=none
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 <law@138bc75d-0d04-0410-961f-82ee72b054a4>
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 <law@redhat.com>
+ * 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)
{