public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: fold common.din and x86_64.din into cygwin.din
@ 2022-08-08 16:17 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2022-08-08 16:17 UTC (permalink / raw)
  To: cygwin-cvs

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

commit 3ba050dfcd1d7e1462edf8b7c3d557f09ed993a6
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Mon Aug 8 17:47:46 2022 +0200

    Cygwin: fold common.din and x86_64.din into cygwin.din
    
    We don't need a target-specific DEF file anymore
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/configure.ac                      |  2 --
 winsup/cygwin/Makefile.am                |  5 ++---
 winsup/cygwin/{common.din => cygwin.din} | 10 ++++++++++
 winsup/cygwin/x86_64.din                 | 11 -----------
 4 files changed, 12 insertions(+), 16 deletions(-)

diff --git a/winsup/configure.ac b/winsup/configure.ac
index 634493e59..9205a8886 100644
--- a/winsup/configure.ac
+++ b/winsup/configure.ac
@@ -66,7 +66,6 @@ esac
 ])
 
 DLL_ENTRY="dll_entry"
-DIN_FILE="${target_cpu}.din"
 
 case "$target_cpu" in
    x86_64)	;;
@@ -74,7 +73,6 @@ case "$target_cpu" in
 esac
 
 AC_SUBST(DLL_ENTRY)
-AC_SUBST(DIN_FILE)
 
 AM_CONDITIONAL(TARGET_X86_64, [test $target_cpu = "x86_64"])
 
diff --git a/winsup/cygwin/Makefile.am b/winsup/cygwin/Makefile.am
index b8436226b..6debcc4f2 100644
--- a/winsup/cygwin/Makefile.am
+++ b/winsup/cygwin/Makefile.am
@@ -43,7 +43,6 @@ DLL_NAME=cygwin1.dll
 PRE_DLL_NAME=cygwin0.dll
 DBG_DLL_NAME=cygwin1.dbg
 NEW_DLL_NAME=new-cygwin1.dll
-DIN_FILE=@DIN_FILE@
 DEF_FILE=cygwin.def
 LIB_NAME=libcygwin.a
 TEST_LIB_NAME=libcygwin0.a
@@ -622,8 +621,8 @@ $(NEW_DLL_NAME): $(PRE_DLL_NAME) $(DBG_DLL_NAME)
 # cygwin import library
 toolopts=--cpu=@target_cpu@ --ar=@AR@ --as=@AS@ --nm=@NM@ --objcopy=@OBJCOPY@
 
-$(DEF_FILE): scripts/gendef $(DIN_FILE) common.din
-	$(AM_V_GEN)$(srcdir)/scripts/gendef --cpu=@target_cpu@ --output-def=$(DEF_FILE) $(srcdir)/$(DIN_FILE) $(srcdir)/common.din
+$(DEF_FILE): scripts/gendef cygwin.din
+	$(AM_V_GEN)$(srcdir)/scripts/gendef --cpu=@target_cpu@ --output-def=$(DEF_FILE) $(srcdir)/cygwin.din
 
 sigfe.s: $(DEF_FILE) tlsoffsets
 	@[ -s $@ ] || \
diff --git a/winsup/cygwin/common.din b/winsup/cygwin/cygwin.din
similarity index 98%
rename from winsup/cygwin/common.din
rename to winsup/cygwin/cygwin.din
index afcb71725..c6768e4fc 100644
--- a/winsup/cygwin/common.din
+++ b/winsup/cygwin/cygwin.din
@@ -1,3 +1,6 @@
+LIBRARY "cygwin1.dll" BASE=0x180040000
+
+EXPORTS
 # Exported variables
 __argc DATA
 __argv DATA
@@ -122,10 +125,16 @@ __wrap__ZdaPv NOSIGFE               # void operator delete[](void *p) throw()
 __wrap__ZdaPvRKSt9nothrow_t NOSIGFE # void operator delete[](void *p, const std::nothrow_t &nt) throw()
 __wrap__ZdlPv NOSIGFE               # void operator delete(void *p) throw()
 __wrap__ZdlPvRKSt9nothrow_t NOSIGFE # void operator delete(void *p, const std::nothrow_t &nt) throw()
+__wrap__Znam NOSIGFE                # void *operator new[](std::size_t sz) throw (std::bad_alloc)
+__wrap__ZnamRKSt9nothrow_t NOSIGFE  # void *operator new[](std::size_t sz, const std::nothrow_t &nt) throw()
+__wrap__Znwm NOSIGFE                # void *operator new(std::size_t sz) throw (std::bad_alloc)
+__wrap__ZnwmRKSt9nothrow_t NOSIGFE  # void *operator new(std::size_t sz, const std::nothrow_t &nt) throw()
 __xdrrec_getrec SIGFE
 __xdrrec_setnonblock SIGFE
 __xpg_sigpause SIGFE
 __xpg_strerror_r SIGFE
+_alloca = __alloca NOSIGFE
+_dll_crt0 NOSIGFE
 _Exit SIGFE
 _exit SIGFE
 _feinitialise NOSIGFE
@@ -421,6 +430,7 @@ dlerror NOSIGFE
 dlfork NOSIGFE
 dll_crt0__FP11per_process NOSIGFE # dll_crt0(per_process *)
 dll_dllcrt0 NOSIGFE
+dll_entry NOSIGFE
 dlopen SIGFE
 dlsym SIGFE
 dn_comp = __dn_comp SIGFE
diff --git a/winsup/cygwin/x86_64.din b/winsup/cygwin/x86_64.din
deleted file mode 100644
index b0b6f6b78..000000000
--- a/winsup/cygwin/x86_64.din
+++ /dev/null
@@ -1,11 +0,0 @@
-LIBRARY "cygwin1.dll" BASE=0x180040000
-
-EXPORTS
-#Exported functions
-__wrap__Znam NOSIGFE                # void *operator new[](std::size_t sz) throw (std::bad_alloc)
-__wrap__ZnamRKSt9nothrow_t NOSIGFE  # void *operator new[](std::size_t sz, const std::nothrow_t &nt) throw()
-__wrap__Znwm NOSIGFE                # void *operator new(std::size_t sz) throw (std::bad_alloc)
-__wrap__ZnwmRKSt9nothrow_t NOSIGFE  # void *operator new(std::size_t sz, const std::nothrow_t &nt) throw()
-_alloca = __alloca NOSIGFE
-_dll_crt0 NOSIGFE
-dll_entry NOSIGFE


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

only message in thread, other threads:[~2022-08-08 16:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08 16:17 [newlib-cygwin] Cygwin: fold common.din and x86_64.din into cygwin.din 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).