summaryrefslogtreecommitdiff
path: root/recipes/tcltk/tcl-8.5.8/mips-tclstrtod.patch
diff options
context:
space:
mode:
authorGraham Gower <graham.gower@gmail.com>2010-07-01 20:52:09 +0000
committerKhem Raj <raj.khem@gmail.com>2010-07-02 21:21:27 -0700
commit065247eb9ad7f955457a87aacab9f26a4c4de4d8 (patch)
tree1e7a3f46ec5f4c883917488d688b9a510f71fa98 /recipes/tcltk/tcl-8.5.8/mips-tclstrtod.patch
parent2851a844c0782d38af976078d92553302dabb4c5 (diff)
tcl_8.5.8.bb: fix build for mips/mipsel.
Signed-off-by: Graham Gower <graham.gower@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/tcltk/tcl-8.5.8/mips-tclstrtod.patch')
-rw-r--r--recipes/tcltk/tcl-8.5.8/mips-tclstrtod.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes/tcltk/tcl-8.5.8/mips-tclstrtod.patch b/recipes/tcltk/tcl-8.5.8/mips-tclstrtod.patch
new file mode 100644
index 0000000000..b846d0fa82
--- /dev/null
+++ b/recipes/tcltk/tcl-8.5.8/mips-tclstrtod.patch
@@ -0,0 +1,26 @@
+http://sourceforge.net/tracker/index.php?func=detail&aid=2902010&group_id=10894&atid=110894
+
+--- ../generic/tclStrToD.c.orig
++++ ../generic/tclStrToD.c
+@@ -71,9 +71,10 @@
+
+ /*
+ * MIPS floating-point units need special settings in control registers
+- * to use gradual underflow as we expect.
++ * to use gradual underflow as we expect. This fix is for the MIPSpro
++ * compiler.
+ */
+-#if defined(__mips)
++#if defined(__sgi) && defined(_COMPILER_VERSION)
+ #include <sys/fpu.h>
+ #endif
+ /*
+@@ -2166,7 +2167,7 @@
+ } bitwhack;
+ #endif
+
+-#if defined(__mips)
++#if defined(__sgi) && defined(_COMPILER_VERSION)
+ union fpc_csr mipsCR;
+
+ mipsCR.fc_word = get_fpc_csr();