Commit 548062ea authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

r11951 changed the existing check for the __SOFTFP__ define in ARM platforms

to a check for __SOFTP. Most other programs look for __SOFTFP__ [1], so
look for both to increase the chances of not erroring out when using GCC 4.5.

[1] Based on http://codesearch.debian.net/search?q=__SOFTFP__ vs
    http://codesearch.debian.net/search?q=__SOFTFP[^_]

BUG=v8:2140
R=bmeurer@chromium.org

Review URL: https://codereview.chromium.org/22210002

Patch from Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16070 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 4e6041d5
...@@ -239,7 +239,8 @@ bool OS::ArmUsingHardFloat() { ...@@ -239,7 +239,8 @@ bool OS::ArmUsingHardFloat() {
#else #else
#if defined(__ARM_PCS_VFP) #if defined(__ARM_PCS_VFP)
return true; return true;
#elif defined(__ARM_PCS) || defined(__SOFTFP) || !defined(__VFP_FP__) #elif defined(__ARM_PCS) || defined(__SOFTFP__) || defined(__SOFTFP) || \
!defined(__VFP_FP__)
return false; return false;
#else #else
#error "Your version of GCC does not report the FP ABI compiled for." \ #error "Your version of GCC does not report the FP ABI compiled for." \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment