From 44e324db1268482c8ce6bab1e30505006e817fc5 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Sun, 25 Aug 2013 12:54:04 -0600 Subject: [PATCH] ARM JIT: fix test for VFP Having `__VFP_FP__` defined does not mean that VFP instructions are available; it just means that floating-point is native-endian. According to https://wiki.debian.org/ArmEabiPort the absence of `__SOFTFP__` combined with the precense of `__VFP_FP__` can mean VFP, though. --- racket/src/racket/src/lightning/arm/asm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/racket/src/racket/src/lightning/arm/asm.h b/racket/src/racket/src/lightning/arm/asm.h index 8f36e1de47..8964eb1bf5 100644 --- a/racket/src/racket/src/lightning/arm/asm.h +++ b/racket/src/racket/src/lightning/arm/asm.h @@ -130,7 +130,7 @@ typedef enum { # define JIT_ARM_VERSION 4 #endif -#if defined(__ARM_PCS_VFP) || defined(__VFP_FP__) +#if defined(__ARM_PCS_VFP) || (defined(__VFP_FP__) && !defined(__SOFTFP__)) # define JIT_ARM_VFP 1 #endif