summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2011-03-12 00:06:54 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2011-03-12 00:06:54 (GMT)
commitb3288baebce521001f60b872579018a4702115e4 (patch)
tree9f82f39c948364964c859d419021ebd066d2a082 /win
parente9272f45153e90453bd5039e5721de383489ee81 (diff)
parent8c40bedf3282e95b9cbccc205e014518d082c6e3 (diff)
downloadtk-b3288baebce521001f60b872579018a4702115e4.zip
tk-b3288baebce521001f60b872579018a4702115e4.tar.gz
tk-b3288baebce521001f60b872579018a4702115e4.tar.bz2
Eliminate unneeded _TkFinalize wrapper.
FossilOrigin-Name: b3141a580115888e3a905ce2bac90d274fe90157
Diffstat (limited to 'win')
-rw-r--r--win/tkWin32Dll.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/win/tkWin32Dll.c b/win/tkWin32Dll.c
index 9b7ad6b..0c36572 100644
--- a/win/tkWin32Dll.c
+++ b/win/tkWin32Dll.c
@@ -97,15 +97,6 @@ DllEntryPoint(
*----------------------------------------------------------------------
*/
-#if defined(HAVE_NO_SEH) && defined(_WIN64)
-/* A little trick to make the assembler code below
- * compile on Win64 with gcc: It appears that Win64
- * does not decorate compiled functions with "_"
- */
-static void _TkFinalize(ClientData clientData) __attribute__((used));
-static void _TkFinalize(ClientData clientData) {TkFinalize(clientData);}
-#endif
-
BOOL APIENTRY
DllMain(
HINSTANCE hInstance,
@@ -144,11 +135,11 @@ DllMain(
"leaq %[registration], %%rdx" "\n\t"
"movq %%gs:0, %%rax" "\n\t"
- "movq %%rax, 0x0(%%edx)" "\n\t" /* link */
+ "movq %%rax, 0x0(%%rdx)" "\n\t" /* link */
"leaq 1f, %%rax" "\n\t"
"movq %%rax, 0x8(%%rdx)" "\n\t" /* handler */
- "movq %%rbp, 0x10(%%rdx)" "\n\t" /* ebp */
- "movq %%rsp, 0x18(%%rdx)" "\n\t" /* esp */
+ "movq %%rbp, 0x10(%%rdx)" "\n\t" /* rbp */
+ "movq %%rsp, 0x18(%%rdx)" "\n\t" /* rsp */
"movl %[error], 0x20(%%rdx)" "\n\t" /* status */
/*
@@ -162,7 +153,7 @@ DllMain(
*/
"movq $0x0, 0x0(%%esp)" "\n\t"
- "call _TkFinalize" "\n\t"
+ "call TkFinalize" "\n\t"
/*
* Come here on a normal exit. Recover the EXCEPTION_REGISTRATION