[Mingw-w64-public] [PATCH 5/5] ucrtbase_compat.c: Get rid of no longer needed _lock, _unlock and __dllonexit.

2018-01-11 Thread Jacek Caban
Signed-off-by: Jacek Caban --- mingw-w64-crt/crt/ucrtbase_compat.c | 58 - 1 file changed, 58 deletions(-) diff --git a/mingw-w64-crt/crt/ucrtbase_compat.c b/mingw-w64-crt/crt/ucrtbase_compat.c index 9b63565e..fcdc8cae 100644 ---

[Mingw-w64-public] [PATCH 4/5] crt: Use onexit table functions for atexit implementation.

2018-01-11 Thread Jacek Caban
Signed-off-by: Jacek Caban --- mingw-w64-crt/Makefile.am| 2 +- mingw-w64-crt/crt/atonexit.c | 60 mingw-w64-crt/crt/crtdll.c | 29 ++--- mingw-w64-crt/crt/crtexe.c | 9 --- 4 files changed, 14

[Mingw-w64-public] [PATCH 3/5] libmsvcr*.a: Added compatibility implementation of onexit table functions.

2018-01-11 Thread Jacek Caban
Signed-off-by: Jacek Caban --- mingw-w64-crt/Makefile.am | 1 + mingw-w64-crt/misc/onexit_table.c | 74 +++ 2 files changed, 75 insertions(+) create mode 100644 mingw-w64-crt/misc/onexit_table.c diff --git

Re: [Mingw-w64-public] [PATCH 2/5] corecrt_startup.h: Added _onexit_table_t and related functions declarations.

2018-01-11 Thread Martin Storsjö
On Thu, 11 Jan 2018, Jacek Caban wrote: Signed-off-by: Jacek Caban --- mingw-w64-headers/crt/corecrt_startup.h | 12 1 file changed, 12 insertions(+) Ok // Martin -- Check out the

Re: [Mingw-w64-public] [PATCH 1/5] corecrt_startup.h: Moved _PVFV, _PIFV and _PVFI declarations to corecrt_startup.h.

2018-01-11 Thread Martin Storsjö
On Thu, 11 Jan 2018, Jacek Caban wrote: Signed-off-by: Jacek Caban --- mingw-w64-crt/crt/atonexit.c| 1 + mingw-w64-crt/crt/charmax.c | 3 ++- mingw-w64-crt/crt/tlssup.c | 8 +--- mingw-w64-crt/crt/ucrtbase_compat.c | 1 +

Re: [Mingw-w64-public] [PATCH 5/5] ucrtbase_compat.c: Get rid of no longer needed _lock, _unlock and __dllonexit.

2018-01-11 Thread Jacek Caban
On 01/11/2018 10:00 PM, Martin Storsjö wrote: > On Thu, 11 Jan 2018, Jacek Caban wrote: > >> Signed-off-by: Jacek Caban >> --- >> mingw-w64-crt/crt/ucrtbase_compat.c | 58 >> - >> 1 file changed, 58 deletions(-) > > Nice, thanks - also ok.

Re: [Mingw-w64-public] [PATCH] intrin-impl.h: Added missing volatile to _interlockedbittestandset and _interlockedbittestandset64 declarations.

2018-01-11 Thread Jacek Caban
On 01/11/2018 04:45 AM, Liu Hao wrote: > On 2018/1/11 6:21, Jacek Caban wrote: >> Signed-off-by: Jacek Caban >> --- >> mingw-w64-headers/include/psdk_inc/intrin-impl.h | 16 >> 1 file changed, 8 insertions(+), 8 deletions(-) >> >> > Hmmm shouldn't the x64

Re: [Mingw-w64-public] [PATCH 3/5] libmsvcr*.a: Added compatibility implementation of onexit table functions.

2018-01-11 Thread Martin Storsjö
On Thu, 11 Jan 2018, Jacek Caban wrote: Signed-off-by: Jacek Caban --- mingw-w64-crt/Makefile.am | 1 + mingw-w64-crt/misc/onexit_table.c | 74 +++ 2 files changed, 75 insertions(+) create mode 100644

[Mingw-w64-public] [PATCH] intrin-impl.h: Added missing volatile to _interlockedbittestandset and _interlockedbittestandset64 declarations.

2018-01-11 Thread Jacek Caban
Fixes compilation with clang. Signed-off-by: Jacek Caban --- mingw-w64-headers/include/psdk_inc/intrin-impl.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mingw-w64-headers/include/psdk_inc/intrin-impl.h

Re: [Mingw-w64-public] [PATCH 5/5] ucrtbase_compat.c: Get rid of no longer needed _lock, _unlock and __dllonexit.

2018-01-11 Thread Martin Storsjö
On Thu, 11 Jan 2018, Jacek Caban wrote: Signed-off-by: Jacek Caban --- mingw-w64-crt/crt/ucrtbase_compat.c | 58 - 1 file changed, 58 deletions(-) Nice, thanks - also ok. // Martin

[Mingw-w64-public] [PATCH 1/5] corecrt_startup.h: Moved _PVFV, _PIFV and _PVFI declarations to corecrt_startup.h.

2018-01-11 Thread Jacek Caban
Signed-off-by: Jacek Caban --- mingw-w64-crt/crt/atonexit.c| 1 + mingw-w64-crt/crt/charmax.c | 3 ++- mingw-w64-crt/crt/tlssup.c | 8 +--- mingw-w64-crt/crt/ucrtbase_compat.c | 1 + mingw-w64-crt/include/internal.h| 7

[Mingw-w64-public] [PATCH 2/5] corecrt_startup.h: Added _onexit_table_t and related functions declarations.

2018-01-11 Thread Jacek Caban
Signed-off-by: Jacek Caban --- mingw-w64-headers/crt/corecrt_startup.h | 12 1 file changed, 12 insertions(+) diff --git a/mingw-w64-headers/crt/corecrt_startup.h b/mingw-w64-headers/crt/corecrt_startup.h index bd51b61b..2f47cb51 100644 ---

Re: [Mingw-w64-public] [PATCH 2/5] corecrt_startup.h: Added _onexit_table_t and related functions declarations.

2018-01-11 Thread lhmouse
On 2018/1/12 4:30, Jacek Caban wrote: > Signed-off-by: Jacek Caban -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot

Re: [Mingw-w64-public] [PATCH 3/5] libmsvcr*.a: Added compatibility implementation of onexit table functions.

2018-01-11 Thread lhmouse
On 2018/1/12 4:31, Jacek Caban wrote: > Signed-off-by: Jacek Caban -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot

Re: [Mingw-w64-public] [PATCH] intrin-impl.h: Added missing volatile to _interlockedbittestandset and _interlockedbittestandset64 declarations.

2018-01-11 Thread lhmouse
On 2018/1/12 4:28, Jacek Caban wrote: > > Fixes compilation with clang. > > Signed-off-by: Jacek Caban -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org!

Re: [Mingw-w64-public] [PATCH 2/5] corecrt_startup.h: Added _onexit_table_t and related functions declarations.

2018-01-11 Thread Liu Hao
On 2018/1/12 4:30, Jacek Caban wrote: > Signed-off-by: Jacek Caban > --- > mingw-w64-headers/crt/corecrt_startup.h | 12 > 1 file changed, 12 insertions(+) > > > > The C standard requires that 'the implementation shall support the registration of at least

Re: [Mingw-w64-public] [PATCH 3/5] libmsvcr*.a: Added compatibility implementation of onexit table functions.

2018-01-11 Thread Liu Hao
On 2018/1/12 4:31, Jacek Caban wrote: > Signed-off-by: Jacek Caban > --- > mingw-w64-crt/Makefile.am | 1 + > mingw-w64-crt/misc/onexit_table.c | 74 > +++ > 2 files changed, 75 insertions(+) > create mode 100644

Re: [Mingw-w64-public] [PATCH] intrin-impl.h: Added missing volatile to _interlockedbittestandset and _interlockedbittestandset64 declarations.

2018-01-11 Thread Liu Hao
On 2018/1/12 4:28, Jacek Caban wrote: > > Fixes compilation with clang. > > Signed-off-by: Jacek Caban > --- > mingw-w64-headers/include/psdk_inc/intrin-impl.h | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) > If the last parameter to the

Re: [Mingw-w64-public] [PATCH 2/5] corecrt_startup.h: Added _onexit_table_t and related functions declarations.

2018-01-11 Thread Martin Storsjö
On Fri, 12 Jan 2018, Liu Hao wrote: On 2018/1/12 4:30, Jacek Caban wrote: Signed-off-by: Jacek Caban --- mingw-w64-headers/crt/corecrt_startup.h | 12 1 file changed, 12 insertions(+) The C standard requires that 'the implementation shall support the

Re: [Mingw-w64-public] [PATCH 2/5] corecrt_startup.h: Added _onexit_table_t and related functions declarations.

2018-01-11 Thread Liu Hao
On 2018/1/12 15:15, Martin Storsjö wrote: > On Fri, 12 Jan 2018, Liu Hao wrote: > This struct as declared here, has to be the same form as the struct that > ucrtbase.dll uses in this set of functions. Therefore, the extra local > array of 32 elements can't be in this struct - it needs to be