This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
[committed] cygwin fixes
- From: Christopher Faylor <me at cgf dot cx>
- To: insight at sourceware dot org
- Date: Thu, 2 Feb 2006 15:02:10 -0500
- Subject: [committed] cygwin fixes
I've had some cygwin-specific changes in my sandbox for a while.
This patch allows me to build the tcl directory with a newer version
of gcc.
cgf
2006-02-02 Christopher Faylor <cgf@timesys.com>
* win/tclWin32Dll.c (_except_checkstackspace_handler): Define with
proper attribute to prevent this static function from being deleted due
to aggressive gcc optimization.
* win/tclWinChan.c (_except_makefilechannel_handler): Ditto.
* win/tclWinFCmd.c (_except_dorenamefile_handler): Ditto.
* configure.in: Make sure that TCL_LIB_SPEC is properly filled out.
* configure: Regenerate.
Index: cygwin/configure
===================================================================
RCS file: /cvs/uberbaum/tcl/cygwin/configure,v
retrieving revision 1.10
diff -u -p -r1.10 configure
--- cygwin/configure 21 Jan 2003 19:39:57 -0000 1.10
+++ cygwin/configure 2 Feb 2006 20:00:57 -0000
@@ -1344,6 +1344,8 @@ SHLIB_LD='${CC} -shared ${CFLAGS}'
TCL_BUILD_LIB_SPEC=`pwd`/libtcl_cygwin.a
+TCL_LIB_SPEC="$TCL_BUILD_LIB_SPEC"
+
trap '' 1 2 15
@@ -1552,6 +1554,7 @@ s%@DL_LIBS@%$DL_LIBS%g
s%@MATH_LIBS@%$MATH_LIBS%g
s%@SHLIB_LD@%$SHLIB_LD%g
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
+s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
CEOF
EOF
Index: cygwin/configure.in
===================================================================
RCS file: /cvs/uberbaum/tcl/cygwin/configure.in,v
retrieving revision 1.10
diff -u -p -r1.10 configure.in
--- cygwin/configure.in 21 Jan 2003 19:39:57 -0000 1.10
+++ cygwin/configure.in 2 Feb 2006 20:00:57 -0000
@@ -102,6 +102,8 @@ SHLIB_LD='${CC} -shared ${CFLAGS}'
AC_SUBST(SHLIB_LD)
TCL_BUILD_LIB_SPEC=`pwd`/libtcl_cygwin.a
AC_SUBST(TCL_BUILD_LIB_SPEC)
+TCL_LIB_SPEC="$TCL_BUILD_LIB_SPEC"
+AC_SUBST(TCL_LIB_SPEC)
AC_OUTPUT([Makefile tclConfig.sh])
Index: win/tclWin32Dll.c
===================================================================
RCS file: /cvs/uberbaum/tcl/win/tclWin32Dll.c,v
retrieving revision 1.9
diff -u -p -r1.9 tclWin32Dll.c
--- win/tclWin32Dll.c 21 Jan 2003 19:40:22 -0000 1.9
+++ win/tclWin32Dll.c 2 Feb 2006 20:00:58 -0000
@@ -393,7 +393,7 @@ TclpCheckStackSpace()
}
#ifdef HAVE_NO_SEH
static
-__attribute__ ((cdecl))
+__attribute__ ((cdecl,used))
EXCEPTION_DISPOSITION
_except_checkstackspace_handler(
struct _EXCEPTION_RECORD *ExceptionRecord,
Index: win/tclWinChan.c
===================================================================
RCS file: /cvs/uberbaum/tcl/win/tclWinChan.c,v
retrieving revision 1.5
diff -u -p -r1.5 tclWinChan.c
--- win/tclWinChan.c 21 Jan 2003 19:40:22 -0000 1.5
+++ win/tclWinChan.c 2 Feb 2006 20:00:58 -0000
@@ -1106,7 +1106,7 @@ Tcl_MakeFileChannel(rawHandle, mode)
}
#ifdef HAVE_NO_SEH
static
-__attribute__ ((cdecl))
+__attribute__ ((cdecl,used))
EXCEPTION_DISPOSITION
_except_makefilechannel_handler(
struct _EXCEPTION_RECORD *ExceptionRecord,
Index: win/tclWinFCmd.c
===================================================================
RCS file: /cvs/uberbaum/tcl/win/tclWinFCmd.c,v
retrieving revision 1.6
diff -u -p -r1.6 tclWinFCmd.c
--- win/tclWinFCmd.c 7 Feb 2003 19:52:00 -0000 1.6
+++ win/tclWinFCmd.c 2 Feb 2006 20:00:59 -0000
@@ -469,7 +469,7 @@ DoRenameFile(
}
#ifdef HAVE_NO_SEH
static
-__attribute__ ((cdecl))
+__attribute__ ((cdecl,used))
EXCEPTION_DISPOSITION
_except_dorenamefile_handler(
struct _EXCEPTION_RECORD *ExceptionRecord,
@@ -651,7 +651,7 @@ DoCopyFile(
}
#ifdef HAVE_NO_SEH
static
-__attribute__ ((cdecl))
+__attribute__ ((cdecl,used))
EXCEPTION_DISPOSITION
_except_docopyfile_handler(
struct _EXCEPTION_RECORD *ExceptionRecord,