From 6f9e34baea4f6f484392e4e67f606a0835d07b73 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Mon, 18 Jul 2016 23:23:50 +0300 Subject: arm: Check for support for the .fpu directive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When targeting COFF (windows), clang doesn't support this directive (while binutils supports it for all targets). Signed-off-by: Martin Storsjö --- libavutil/arm/asm.S | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'libavutil/arm/asm.S') diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S index 943c1cea3f..1a048b56fb 100644 --- a/libavutil/arm/asm.S +++ b/libavutil/arm/asm.S @@ -40,6 +40,12 @@ # define FUNC @ #endif +#if HAVE_AS_FPU_DIRECTIVE +# define FPU +#else +# define FPU @ +#endif + #if HAVE_NEON .arch armv7-a #elif HAVE_ARMV6T2 @@ -54,11 +60,11 @@ ELF .object_arch armv4 #endif #if HAVE_NEON - .fpu neon +FPU .fpu neon ELF .eabi_attribute 10, 0 @ suppress Tag_FP_arch ELF .eabi_attribute 12, 0 @ suppress Tag_Advanced_SIMD_arch #elif HAVE_VFP - .fpu vfp +FPU .fpu vfp ELF .eabi_attribute 10, 0 @ suppress Tag_FP_arch #endif -- cgit v1.2.3