This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix compile time warning building gas for arm-wince target.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=49fa50ef9c59aa6d03bc2e33a25b2d832a9e692b

commit 49fa50ef9c59aa6d03bc2e33a25b2d832a9e692b
Author: Nick Clifton <nickc@redhat.com>
Date:   Mon Jun 26 09:28:51 2017 +0100

    Fix compile time warning building gas for arm-wince target.
    
    	* config/tc-arm.c (fpu_any): Only define for ELF based targets.

Diff:
---
 gas/ChangeLog       | 4 ++++
 gas/config/tc-arm.c | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index d91de47..f48280d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2017-06-26  Nick Clifton  <nickc@redhat.com>
+
+	* config/tc-arm.c (fpu_any): Only define for ELF based targets.
+
 2017-06-26  Claudiu Zissulescu  <claziss@synopsys.com>
 
 	* /config/tc-arc.c (is_br_jmp_insn_p): Update macro with known
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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]