This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[Commit] Fix compile time warning in tc-arm.c
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sourceware dot org
- Date: Mon, 26 Jun 2017 09:28:38 +0100
- Subject: [Commit] Fix compile time warning in tc-arm.c
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=nickc at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 18E333D945
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 18E333D945
Hi Guys
I am checking the patch below to fix a compile time warning about an
unused static variable when compiling tc-arm.c for a non-ELF based
ARM target.
Cheers
Nick
gas/ChangeLog
2017-06-26 Nick Clifton <nickc@redhat.com>
* config/tc-arm.c (fpu_any): Only define for ELF based targets.
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 3c37b4f..f0b11f4 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -239,7 +239,9 @@ static const arm_feature_set arm_ext_v8_3 =
ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_3A);
static const arm_feature_set arm_arch_any = ARM_ANY;
+#ifdef OBJ_ELF
static const arm_feature_set fpu_any = FPU_ANY;
+#endif
static const arm_feature_set arm_arch_full ATTRIBUTE_UNUSED = ARM_FEATURE (-1, -1, -1);
static const arm_feature_set arm_arch_t2 = ARM_ARCH_THUMB2;
static const arm_feature_set arm_arch_none = ARM_ARCH_NONE;