Commit 434b44cd authored by Diego Biurrun's avatar Diego Biurrun

configure: Simplify vararg check

parent 8c7554e6
...@@ -4240,12 +4240,11 @@ od -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian ...@@ -4240,12 +4240,11 @@ od -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
check_gas() { check_gas() {
log "check_gas using '$as' as AS" log "check_gas using '$as' as AS"
# :vararg is used on aarch64, arm and ppc altivec # :vararg is used on aarch64, arm and ppc altivec
test_as <<EOF || return 1 check_as vararg "
.macro m n, y:vararg=0 .macro m n, y:vararg=0
\n: .int \y \n: .int \y
.endm .endm
m x m x" || return 1
EOF
# .altmacro is only used in arm asm # .altmacro is only used in arm asm
! enabled arm || check_as gnu_as ".altmacro" ! enabled arm || check_as gnu_as ".altmacro"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment