summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-03 13:26:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-03 13:26:16 (GMT)
commitf3532321f9bb93e5b462e1fbcbdef01d7cc2dadb (patch)
treeab8a029e357ef92e634c80d00a6ee43daf33ddfa /unix
parent0a5be3c5d46094822c558e5b07351553b781ad35 (diff)
parent4022ee61194caa869032f4f6453662d0f2540ae7 (diff)
downloadtcl-f3532321f9bb93e5b462e1fbcbdef01d7cc2dadb.zip
tcl-f3532321f9bb93e5b462e1fbcbdef01d7cc2dadb.tar.gz
tcl-f3532321f9bb93e5b462e1fbcbdef01d7cc2dadb.tar.bz2
[Bug 3205320]: stack space detection defeated by inlining. Now fixed in the cross-compile case as well.
Diffstat (limited to 'unix')
-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