diff options
author | dgp <dgp@noemail.net> | 2009-12-07 17:14:27 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2009-12-07 17:14:27 (GMT) |
commit | 0e7a7e6efc0458c78f1876fb882698e586c5257c (patch) | |
tree | 7c357a7678ba3523e4754abe685dbcab263aac53 /generic/tclStrToD.c | |
parent | fa615d3ba345fedd746e60947af642956bdbaaa5 (diff) | |
download | tcl-0e7a7e6efc0458c78f1876fb882698e586c5257c.zip tcl-0e7a7e6efc0458c78f1876fb882698e586c5257c.tar.gz tcl-0e7a7e6efc0458c78f1876fb882698e586c5257c.tar.bz2 |
* generic/tclStrToD.c: Correct conditional compile directives to
better detect the toolchain that needs extra work for proper underflow
treatment instead of merely detecting the mips platform. [Bug 2902010].
FossilOrigin-Name: 6bc1abafffd991c5c9c506cf73c10a12dac13d79
Diffstat (limited to 'generic/tclStrToD.c')
-rwxr-xr-x | generic/tclStrToD.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c index 453a34c..eda53ac 100755 --- a/generic/tclStrToD.c +++ b/generic/tclStrToD.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclStrToD.c,v 1.33.2.2 2009/07/16 20:50:54 dgp Exp $ + * RCS: @(#) $Id: tclStrToD.c,v 1.33.2.3 2009/12/07 17:14:28 dgp Exp $ * *---------------------------------------------------------------------- */ @@ -71,9 +71,10 @@ typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__HI__))); /* * 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 @@ TclInitDoubleConversion(void) } bitwhack; #endif -#if defined(__mips) +#if defined(__sgi) && defined(_COMPILER_VERSION) union fpc_csr mipsCR; mipsCR.fc_word = get_fpc_csr(); |