summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-02 10:57:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-02 10:57:56 (GMT)
commit4022ee61194caa869032f4f6453662d0f2540ae7 (patch)
tree51447968bbe902bda5796b542ede6184b21e263d
parent4e1c42706e2192221efb4179bcae10e4bd042303 (diff)
downloadtcl-4022ee61194caa869032f4f6453662d0f2540ae7.zip
tcl-4022ee61194caa869032f4f6453662d0f2540ae7.tar.gz
tcl-4022ee61194caa869032f4f6453662d0f2540ae7.tar.bz2
Prevent inlining of StackGrowsDown(), in case of cross-compilingprevent_inline
-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