From 71c334f951d9ffa4d8bdc71bdd49628e5ae4512b Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 19 Feb 2016 01:20:07 +0000 Subject: work around regression building for armhf with clang (compiler bug) commit e4355bd6bec89688e8c739cd7b4c76e675643dca moved the math asm from external source files to inline asm, but unfortunately, all current releases of clang use the wrong inline asm constraint codes for float and double ("w" and "P" instead of "t" and "w", respectively). this patch adds detection for the bug in configure, and, for now, just disables the affected asm on broken clang versions. --- src/math/arm/fabsf.c | 2 +- src/math/arm/sqrtf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/math') diff --git a/src/math/arm/fabsf.c b/src/math/arm/fabsf.c index 28153a61..4a217c98 100644 --- a/src/math/arm/fabsf.c +++ b/src/math/arm/fabsf.c @@ -1,6 +1,6 @@ #include -#if __ARM_PCS_VFP +#if __ARM_PCS_VFP && !BROKEN_VFP_ASM float fabsf(float x) { diff --git a/src/math/arm/sqrtf.c b/src/math/arm/sqrtf.c index 98858ecd..32693293 100644 --- a/src/math/arm/sqrtf.c +++ b/src/math/arm/sqrtf.c @@ -1,6 +1,6 @@ #include -#if __ARM_PCS_VFP || (__VFP_FP__ && !__SOFTFP__) +#if (__ARM_PCS_VFP || (__VFP_FP__ && !__SOFTFP__)) && !BROKEN_VFP_ASM float sqrtf(float x) { -- cgit v1.2.3-70-g09d2