public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/main] Revert "Cygwin: autoload: introduce LoadDLLfunc_pfx_only"
@ 2023-08-27 12:50 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2023-08-27 12:50 UTC (permalink / raw)
  To: cygwin-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=eb1584b491384e072c949ecd78ec85de244661fe

commit eb1584b491384e072c949ecd78ec85de244661fe
Author:     Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Sat Aug 26 18:00:04 2023 +0200
Commit:     Corinna Vinschen <corinna@vinschen.de>
CommitDate: Sun Aug 27 14:40:22 2023 +0200

    Revert "Cygwin: autoload: introduce LoadDLLfunc_pfx_only"
    
    This reverts commit 0e711d6cc9b5206335fe8562817b6d5e6cad876e.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/autoload.cc | 27 ---------------------------
 1 file changed, 27 deletions(-)

diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc
index c9ad92530c83..c8909caff4b1 100644
--- a/winsup/cygwin/autoload.cc
+++ b/winsup/cygwin/autoload.cc
@@ -123,33 +123,6 @@ _win32_" #name ":					\n\
   .asciz	\"" #name "\"				\n\
   .text							\n\
 ");
-
-/* Do not export function "foo" as "foo". Only export it as "_win32_foo".
-   That allows to autoload and use a Windows function having the same name
-   as a Cygwin function. Namely select. */
-#define LoadDLLfunc_pfx_only(name, dllname) \
-  LoadDLLprime (dllname, dll_func_load, 0) \
-  __asm__ ("						\n\
-  .section	." #dllname "_autoload_text,\"wx\"	\n\
-  .global	_win32_" #name "			\n\
-  .align	16					\n\
-_win32_" #name ":					\n\
-  movq		3f(%rip),%rax				\n\
-  jmp		*%rax					\n\
-1:movq		2f(%rip),%rax				\n\
-  push		%rbp		# Keep 16 byte aligned	\n\
-  push		%r9					\n\
-  push		%r8					\n\
-  push		%rdx					\n\
-  push		%rcx					\n\
-  call		*(%rax)					\n\
-2:.quad		." #dllname "_info			\n\
-  .hword	0					\n\
-  .hword	0					\n\
-3:.quad		1b					\n\
-  .asciz	\"" #name "\"				\n\
-  .text							\n\
-");
 #else
 #error unimplemented for this target
 #endif

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-27 12:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-27 12:50 [newlib-cygwin/main] Revert "Cygwin: autoload: introduce LoadDLLfunc_pfx_only" Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).