summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixInit.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2013-04-02 10:57:56 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2013-04-02 10:57:56 (GMT)
commit99612e1bfa72c0b13ed0bf666c1d5ea0240b6868 (patch)
tree51447968bbe902bda5796b542ede6184b21e263d /unix/tclUnixInit.c
parentcd93df643c0cbbbc027d6625afad541d21b4c1f8 (diff)
downloadtcl-99612e1bfa72c0b13ed0bf666c1d5ea0240b6868.zip
tcl-99612e1bfa72c0b13ed0bf666c1d5ea0240b6868.tar.gz
tcl-99612e1bfa72c0b13ed0bf666c1d5ea0240b6868.tar.bz2
Prevent inlining of StackGrowsDown(), in case of cross-compiling
Diffstat (limited to 'unix/tclUnixInit.c')
-rw-r--r--unix/tclUnixInit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c
index f9015b7..0b98cf9 100644
--- a/unix/tclUnixInit.c
+++ b/unix/tclUnixInit.c
@@ -1111,7 +1111,7 @@ TclpGetCStackParams(
* Not initialised!
*/
- stackGrowsDown = StackGrowsDown(&result);
+ stackGrowsDown = StackGrowsDown(NULL);
}
#endif
@@ -1186,6 +1186,9 @@ StackGrowsDown(
int *parent)
{
int here;
+ if (!parent) {
+ return StackGrowsDown(&here);
+ }
return (&here < parent);
}
#endif