Tcl Source Code

Check-in [dda59f5593]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix TCL_STACK_GROWS_UP for gcc 4.6
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core-8-5-branch
Files: files | file ages | folders
SHA1: dda59f55930ac41318518b8579b3af254b0921a5
User & Date: max 2011-06-30 15:13:04
Context
2011-07-02
22:21
Dummy merge from rmax's commit for TCL_STACK_GROWS_UP, to avoid merge conflicts on the next merge. check-in: 923e63eeee user: kbk tags: trunk
21:56
Fix roundoff gaffe in bignum-to-double conversion [Bug 3349507] check-in: 96ac94d775 user: kbk tags: core-8-5-branch
2011-06-30
15:13
Fix TCL_STACK_GROWS_UP for gcc 4.6 check-in: dda59f5593 user: max tags: core-8-5-branch
2011-06-24
17:48
merge RC to stable check-in: 1edc8bd8c1 user: dgp tags: core-8-5-branch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ChangeLog.







1
2
3
4
5
6
7






2011-06-23  Don Porter  <[email protected]>

	*** 8.5.10 TAGGED FOR RELEASE ***

	* changes:	Update for 8.5.10 release.

2011-06-22  Andreas Kupries  <[email protected]>
>
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
2011-06-30  Reinhard Max  <[email protected]>

	* unix/configure.in: Add a volatile declaration to the test for
	TCL_STACK_GROWS_UP to prevent gcc 4.6 from producing invalid
	results due to aggressive optimisation.

2011-06-23  Don Porter  <[email protected]>

	*** 8.5.10 TAGGED FOR RELEASE ***

	* changes:	Update for 8.5.10 release.

2011-06-22  Andreas Kupries  <[email protected]>

Changes to unix/configure.

18701
18702
18703
18704
18705
18706
18707

18708
18709
18710
18711

18712
18713
18714
18715
18716
18717
18718
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	int StackGrowsUp(int *parent) {
	    int here;

	    if (parent)
		return (&here < parent);
	    else
		return StackGrowsUp(&here);

	}
	int main (int argc, char *argv[]) {
	    return StackGrowsUp(0);
	}

_ACEOF
rm -f conftest$ac_exeext







>

|

|
>







18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	int StackGrowsUp(int *parent) {
	    int here;
	    volatile int result;
	    if (parent)
		result = (&here < parent);
	    else
		result = StackGrowsUp(&here);
	    return result;
	}
	int main (int argc, char *argv[]) {
	    return StackGrowsUp(0);
	}

_ACEOF
rm -f conftest$ac_exeext

Changes to unix/configure.in.

701
702
703
704
705
706
707

708
709
710
711

712
713
714
715
716
717
718
#  Does the C stack grow upwards or downwards? Or cross-compiling?
#--------------------------------------------------------------------

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;

	    if (parent)
		return (&here < parent);
	    else
		return StackGrowsUp(&here);

	}
	int main (int argc, char *argv[]) {
	    return StackGrowsUp(0);
	}
    ], tcl_cv_stack_grows_up=yes, tcl_cv_stack_grows_up=no,
    tcl_cv_stack_grows_up=unknown)])
if test $tcl_cv_stack_grows_up = unknown; then







>

|

|
>







701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
#  Does the C stack grow upwards or downwards? Or cross-compiling?
#--------------------------------------------------------------------

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)
		result = (&here < parent);
	    else
		result = StackGrowsUp(&here);
	    return result;
	}
	int main (int argc, char *argv[]) {
	    return StackGrowsUp(0);
	}
    ], tcl_cv_stack_grows_up=yes, tcl_cv_stack_grows_up=no,
    tcl_cv_stack_grows_up=unknown)])
if test $tcl_cv_stack_grows_up = unknown; then