diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-03-12 00:06:54 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-03-12 00:06:54 (GMT) |
commit | 77d7867fd5b20233f0fa9163bd8a44d2ac274b0e (patch) | |
tree | 9f82f39c948364964c859d419021ebd066d2a082 | |
parent | cfc7fad4cea8331c03f4687b5619470a5c3aae81 (diff) | |
parent | f3ed602dfb502e47a0ceabf22ecadb0c3a706fc8 (diff) | |
download | tk-77d7867fd5b20233f0fa9163bd8a44d2ac274b0e.zip tk-77d7867fd5b20233f0fa9163bd8a44d2ac274b0e.tar.gz tk-77d7867fd5b20233f0fa9163bd8a44d2ac274b0e.tar.bz2 |
Eliminate unneeded _TkFinalize wrapper.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | win/tkWin32Dll.c | 17 |
2 files changed, 8 insertions, 13 deletions
@@ -1,3 +1,7 @@ +2011-03-12 Jan Nijtmans <nijtmans@users.sf.net> + + * win/tkWin32Dll.c: Eliminate unneeded _TkFinalize wrapper. + 2011-03-11 Jan Nijtmans <nijtmans@users.sf.net> * generic/ttk/ttkDefaultTheme.c: Eliminate some unneeded write-only 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 |