summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2017-01-20 15:30:36 +0100
committerDiego Biurrun <diego@biurrun.de>2017-02-02 14:34:05 +0100
commit24d5680bbc01fc124709d522d348572ad4672563 (patch)
tree5514c9457578c47880d7b3ca2d682f64de7a7b3f /configure
parentb3825723dceffc64240da7b0e562bd1fd024da26 (diff)
configure: Simplify inline asm check with appropriate helper function
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 1 insertions, 3 deletions
diff --git a/configure b/configure
index 79898184c2..4a8d04d210 100755
--- a/configure
+++ b/configure
@@ -4183,9 +4183,7 @@ EOF
sym=$($nm $TMPO | awk '/ff_extern/{ print substr($0, match($0, /[^ \t]*ff_extern/)) }')
extern_prefix=${sym%%ff_extern*}
-check_cc <<EOF && enable_weak inline_asm
-void foo(void) { __asm__ volatile ("" ::); }
-EOF
+check_inline_asm inline_asm '"" ::'
_restrict=
for restrict_keyword in restrict __restrict__ __restrict; do