summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2013-04-03 13:26:16 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2013-04-03 13:26:16 (GMT)
commit2db85fb0d14bdbca70c61cfe8ed2f73ece160a52 (patch)
treeab8a029e357ef92e634c80d00a6ee43daf33ddfa /unix
parentfff4662fe6786ddd49d2d7499ad074188a521c91 (diff)
parent99612e1bfa72c0b13ed0bf666c1d5ea0240b6868 (diff)
downloadtcl-2db85fb0d14bdbca70c61cfe8ed2f73ece160a52.zip
tcl-2db85fb0d14bdbca70c61cfe8ed2f73ece160a52.tar.gz
tcl-2db85fb0d14bdbca70c61cfe8ed2f73ece160a52.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