[04/10] configure: Check MSVC defines for identifying hardfloat

Message ID 1437904678-19444-4-git-send-email-martin@martin.st
State Committed
Commit 616b409c8f1e4fa568908212c01f6530da8d2e71
Headers show

Commit Message

Martin Storsjö July 26, 2015, 9:57 a.m.
This macro identifies whether VFPv3 is available; MSVC defaults
to hardfloat (except for older MSVC versions for CE, targeting
ARMv4).
---
 configure | 2 ++
 1 file changed, 2 insertions(+)

Comments

Luca Barbato July 26, 2015, 10:17 a.m. | #1
On 26/07/15 11:57, Martin Storsjö wrote:
> This macro identifies whether VFPv3 is available; MSVC defaults
> to hardfloat (except for older MSVC versions for CE, targeting
> ARMv4).
> ---
>   configure | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/configure b/configure
> index 96e5f93..446a786 100755
> --- a/configure
> +++ b/configure
> @@ -4012,6 +4012,8 @@ elif enabled arm; then
>
>       if     check_cpp_condition stddef.h "defined __ARM_PCS_VFP"; then
>           enable vfp_args
> +    elif check_cpp_condition stddef.h "defined _M_ARM_FP && _M_ARM_FP >= 30"; then
> +        enable vfp_args
>       elif ! check_cpp_condition stddef.h "defined __ARM_PCS || defined __SOFTFP__"; then
>           case "${cross_prefix:-$cc}" in
>               *hardfloat*)         enable vfp_args;   fpabi=vfp ;;
>

Seems fine.
Janne Grunau July 26, 2015, 9:59 p.m. | #2
On 2015-07-26 12:57:52 +0300, Martin Storsjö wrote:
> This macro identifies whether VFPv3 is available; MSVC defaults
> to hardfloat (except for older MSVC versions for CE, targeting
> ARMv4).
> ---
>  configure | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/configure b/configure
> index 96e5f93..446a786 100755
> --- a/configure
> +++ b/configure
> @@ -4012,6 +4012,8 @@ elif enabled arm; then
>  
>      if     check_cpp_condition stddef.h "defined __ARM_PCS_VFP"; then
>          enable vfp_args
> +    elif check_cpp_condition stddef.h "defined _M_ARM_FP && _M_ARM_FP >= 30"; then
> +        enable vfp_args
>      elif ! check_cpp_condition stddef.h "defined __ARM_PCS || defined __SOFTFP__"; then
>          case "${cross_prefix:-$cc}" in
>              *hardfloat*)         enable vfp_args;   fpabi=vfp ;;

ok

Janne

Patch

diff --git a/configure b/configure
index 96e5f93..446a786 100755
--- a/configure
+++ b/configure
@@ -4012,6 +4012,8 @@  elif enabled arm; then
 
     if     check_cpp_condition stddef.h "defined __ARM_PCS_VFP"; then
         enable vfp_args
+    elif check_cpp_condition stddef.h "defined _M_ARM_FP && _M_ARM_FP >= 30"; then
+        enable vfp_args
     elif ! check_cpp_condition stddef.h "defined __ARM_PCS || defined __SOFTFP__"; then
         case "${cross_prefix:-$cc}" in
             *hardfloat*)         enable vfp_args;   fpabi=vfp ;;