diff options
author | max <max@tclers.tk> | 2011-06-30 15:13:04 (GMT) |
---|---|---|
committer | max <max@tclers.tk> | 2011-06-30 15:13:04 (GMT) |
commit | 9bad349b17ac966a8c3e2633ada87723d34e69b9 (patch) | |
tree | c9a877a08f11e653a98690d0483a19d9f67a00c7 /unix/configure.in | |
parent | 223386ecd11497a80fe5f0b9245fb1ef9da1a811 (diff) | |
download | tcl-9bad349b17ac966a8c3e2633ada87723d34e69b9.zip tcl-9bad349b17ac966a8c3e2633ada87723d34e69b9.tar.gz tcl-9bad349b17ac966a8c3e2633ada87723d34e69b9.tar.bz2 |
Fix TCL_STACK_GROWS_UP for gcc 4.6
Diffstat (limited to 'unix/configure.in')
-rw-r--r-- | unix/configure.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unix/configure.in b/unix/configure.in index e30c937..3394369 100644 --- a/unix/configure.in +++ b/unix/configure.in @@ -705,10 +705,12 @@ AC_CACHE_CHECK([if the C stack grows upwards in memory], tcl_cv_stack_grows_up, AC_TRY_RUN([ int StackGrowsUp(int *parent) { int here; + volatile int result; if (parent) - return (&here < parent); + result = (&here < parent); else - return StackGrowsUp(&here); + result = StackGrowsUp(&here); + return result; } int main (int argc, char *argv[]) { return StackGrowsUp(0); |