summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/nodejs/nodejs/fix-hardfloat-detection.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/nodejs/nodejs/fix-hardfloat-detection.patch')
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/fix-hardfloat-detection.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/fix-hardfloat-detection.patch b/meta-oe/recipes-devtools/nodejs/nodejs/fix-hardfloat-detection.patch
new file mode 100644
index 000000000..36e8bf1c9
--- /dev/null
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/fix-hardfloat-detection.patch
@@ -0,0 +1,22 @@
1Fix hardfloat detection
2
3gcc has a builtin define to denote hard abi when in use, e.g. when
4using -mfloat-abi=hard it will define __ARM_PCS_VFP to 1 and therefore
5we should check that to determine which calling convention is in use
6and not __VFP_FP__ which merely indicates presence of VFP unit
7
8The fix has been provided by Khem Raj <raj.khem@gmail.com>
9
10Upstream-Status: Forwarded
11
12--- a/deps/v8/src/platform-linux.cc 2012-05-17 12:52:59.329519921 -0700
13+++ b/deps/v8/src/platform-linux.cc 2012-05-17 12:54:02.037521511 -0700
14@@ -212,7 +212,7 @@
15 // calling this will return 1.0 and otherwise 0.0.
16 static void ArmUsingHardFloatHelper() {
17 asm("mov r0, #0");
18-#if defined(__VFP_FP__) && !defined(__SOFTFP__)
19+#if defined(__ARM_PCS_VFP) && !defined(__SOFTFP__)
20 // Load 0x3ff00000 into r1 using instructions available in both ARM
21 // and Thumb mode.
22 asm("mov r1, #3");