summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/tcltk/tcl/mips-tclstrtod.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/tcltk/tcl/mips-tclstrtod.patch')
-rw-r--r--meta/recipes-devtools/tcltk/tcl/mips-tclstrtod.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-devtools/tcltk/tcl/mips-tclstrtod.patch b/meta/recipes-devtools/tcltk/tcl/mips-tclstrtod.patch
new file mode 100644
index 0000000000..c1e0d63324
--- /dev/null
+++ b/meta/recipes-devtools/tcltk/tcl/mips-tclstrtod.patch
@@ -0,0 +1,28 @@
1http://sourceforge.net/tracker/index.php?func=detail&aid=2902010&group_id=10894&atid=110894
2
3Pulled from OE by: Saul Wold <saul.wold@intel.com>
4
5--- ../generic/tclStrToD.c.orig
6+++ ../generic/tclStrToD.c
7@@ -71,9 +71,10 @@
8
9 /*
10 * MIPS floating-point units need special settings in control registers
11- * to use gradual underflow as we expect.
12+ * to use gradual underflow as we expect. This fix is for the MIPSpro
13+ * compiler.
14 */
15-#if defined(__mips)
16+#if defined(__sgi) && defined(_COMPILER_VERSION)
17 #include <sys/fpu.h>
18 #endif
19 /*
20@@ -2166,7 +2167,7 @@
21 } bitwhack;
22 #endif
23
24-#if defined(__mips)
25+#if defined(__sgi) && defined(_COMPILER_VERSION)
26 union fpc_csr mipsCR;
27
28 mipsCR.fc_word = get_fpc_csr();