From 49fa50ef9c59aa6d03bc2e33a25b2d832a9e692b Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 26 Jun 2017 09:28:51 +0100 Subject: [PATCH] Fix compile time warning building gas for arm-wince target. * config/tc-arm.c (fpu_any): Only define for ELF based targets. --- gas/ChangeLog | 4 ++++ gas/config/tc-arm.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index d91de4719a8..f48280d8fdc 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2017-06-26 Nick Clifton + + * config/tc-arm.c (fpu_any): Only define for ELF based targets. + 2017-06-26 Claudiu Zissulescu * /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 3c37b4f1a26..f0b11f4f2c7 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; -- 2.30.2