From: Mike Pall Date: Thu, 9 Aug 2012 11:13:39 +0000 (+0200) Subject: ARM: Enable VFP and hard-float ABI support. X-Git-Tag: v2.0.0-beta11~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85a02f9ae87eea34eac05679422bc558b5409fc7;p=thirdparty%2FLuaJIT.git ARM: Enable VFP and hard-float ABI support. --- diff --git a/src/lj_arch.h b/src/lj_arch.h index c0c2006d..9ff3c2b6 100644 --- a/src/lj_arch.h +++ b/src/lj_arch.h @@ -152,10 +152,10 @@ #define LJ_ARCH_NAME "arm" #define LJ_ARCH_BITS 32 #define LJ_ARCH_ENDIAN LUAJIT_LE -#ifndef LJ_ARCH_HASFPU +#if !defined(LJ_ARCH_HASFPU) && __SOFTFP__ #define LJ_ARCH_HASFPU 0 #endif -#ifndef LJ_ABI_SOFTFP +#if !defined(LJ_ABI_SOFTFP) && !__ARM_PCS_VFP #define LJ_ABI_SOFTFP 1 #endif #define LJ_ABI_EABI 1 @@ -302,9 +302,6 @@ #if defined(__ARMEB__) #error "No support for big-endian ARM" #endif -#if defined(__ARM_PCS_VFP) -#error "No support for ARM hard-float ABI (yet)" -#endif #if __ARM_ARCH_6M__ || __ARM_ARCH_7M__ || __ARM_ARCH_7EM__ #error "No support for Cortex-M CPUs" #endif