Browse Source

arm: Check for the .arch directive in configure

When targeting windows, the .arch directive isn't available.

So far, when building for windows, we've always used gas-preprocessor,
both when using msvc's armasm and when using clang. Lately, clang/llvm
has implemented the last missing piece (altmacro support) for building
our assembly without gas-preprocessor. This means that we now build
for arm/windows with clang without any extra compatibility layer.

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n4.0
Martin Storsjö 8 years ago
parent
commit
59cee42d7d
2 changed files with 6 additions and 0 deletions
  1. +4
    -0
      configure
  2. +2
    -0
      libavutil/arm/asm.S

+ 4
- 0
configure View File

@@ -1661,6 +1661,7 @@ SYSTEM_FUNCS="
"

TOOLCHAIN_FEATURES="
as_arch_directive
as_dn_directive
as_fpu_directive
as_func
@@ -4376,6 +4377,9 @@ EOF

check_inline_asm asm_mod_q '"add r0, %Q0, %R0" :: "r"((long long)0)'

check_as <<EOF && enable as_arch_directive
.arch armv7-a
EOF
check_as <<EOF && enable as_dn_directive
ra .dn d0.i16
.unreq ra


+ 2
- 0
libavutil/arm/asm.S View File

@@ -46,6 +46,7 @@
# define FPU @
#endif

#if HAVE_AS_ARCH_DIRECTIVE
#if HAVE_NEON
.arch armv7-a
#elif HAVE_ARMV6T2
@@ -55,6 +56,7 @@
#elif HAVE_ARMV5TE
.arch armv5te
#endif
#endif
#if HAVE_AS_OBJECT_ARCH
ELF .object_arch armv4
#endif


Loading…
Cancel
Save