Skip to content
Tcl Source Code Check-in [6eae293500]
Login

Check-in [6eae293500]

Overview
Comment: * win/configure: * win/configure.in: Define HAVE_ALLOCA_GCC_INLINE when we detect that no alloca function is found in malloc.h and we are compiling with GCC. Remove HAVE_NO_ALLOC_DECL define. * win/tclWin32Dll.c (TclpCheckStackSpace): Don't define alloca as a cdecl function. Doing this caused a tricky runtime bug because the _alloca function expects the size argument to be passed in a register and not on the stack. To fix this problem, we use inline ASM when compiling with gcc to invoke _alloca with the size argument loaded into a register.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6eae2935008abf68f19603d8c18747bcc634d557
User & Date: mdejong on 2003-01-25 12:48:12.000
Other Links: manifest | tags
Context
2003-01-25
14:11
* win/tclWin32Dll.c (TclpCheckStackSpace, squelch_warnings): * win/tclWinChan.c (Tcl_MakeFileChann... check-in: 071e3de4fc user: mdejong tags: trunk
12:48
* win/configure: * win/configure.in: Define HAVE_ALLOCA_GCC_INLINE when we detect that no alloca ... check-in: 6eae293500 user: mdejong tags: trunk
03:12
* generic/tclEvent.c (Tcl_Finalize): revert finalize change on 2002-12-04 to correct the issue wit... check-in: 225ead1ac4 user: hobbs tags: trunk
Changes