Re: [Mingw-w64-public] Mingw Gcc Windows 7 Reboot

2021-03-02 Thread Ką Mykolas
First of all, I would look at the Windows logs. Second thing to do... well, could You please provide more details on the environment You're facing this issue? Also, are those virtual machines? What kind of virtualizer? If You're having this issue on physical Win7 machine, personal "favorite" suspe

Re: [Mingw-w64-public] Mingw Gcc Windows 7 Reboot

2021-03-02 Thread Vincent Torri
Have you tried with DrMemory ? Or on linux with Wine + valgrind ? Vincent Torri On Tue, Mar 2, 2021 at 10:42 PM Thomas Dineen wrote: > > Gentle People: > > I have an unusual situation! For some time now I have been > developing and application > > using C with Mingw gcc. The application per

[Mingw-w64-public] Mingw Gcc Windows 7 Reboot

2021-03-02 Thread Thomas Dineen
Gentle People:     I have an unusual situation! For some time now I have been developing and application using C with Mingw gcc. The application performs long overnight optimization runs, sometimes running several days. The application crashes on Win7 (Read that causes Reboot on Win7)

[Mingw-w64-public] [PATCH] headers: Add missing names in sspi.h.

2021-03-02 Thread Biswapriyo Nath
From dca2b1340a58fa39e1f4affc35b44e8fd52fe14d Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Wed, 3 Mar 2021 01:37:56 +0530 Subject: [PATCH] headers: Add missing names in sspi.h. Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/include/sspi.h | 294 ++- 1

Re: [Mingw-w64-public] [PATCH v2] headers: Expose SCN*8 defines when using UCRT

2021-03-02 Thread Liu Hao
在 2021-03-02 22:10, Martin Storsjö 写道: Also expose them for other CRTs based on __USE_MINGW_ANSI_STDIO, like other conditionals in the same header. Signed-off-by: Martin Storsjö --- mingw-w64-headers/crt/inttypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) LGTM. -- Best rega

Re: [Mingw-w64-public] g++ shows redundant __builtin declarations in intrin.h

2021-03-02 Thread Liu Hao
在 2021-03-02 17:49, Biswapriyo Nath 写道: * Command: echo "#include " | g++ -c -Wredundant-decls -xc++ - * Output: intrin.h:59:23: note: previous declaration of 'unsigned int __builtin_ia32_crc32qi(unsigned int, unsigned char)' * Test project: https://github.com/ihhub/fheroes2.git They were int

[Mingw-w64-public] [PATCH v2] headers: Expose SCN*8 defines when using UCRT

2021-03-02 Thread Martin Storsjö
Also expose them for other CRTs based on __USE_MINGW_ANSI_STDIO, like other conditionals in the same header. Signed-off-by: Martin Storsjö --- mingw-w64-headers/crt/inttypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/crt/inttypes.h b/mingw-w64-headers

Re: [Mingw-w64-public] [PATCH] headers: Expose SCN*8 defines when using UCRT

2021-03-02 Thread Liu Hao
在 2021-03-02 19:40, Martin Storsjö 写道: Signed-off-by: Martin Storsjö --- The rest of the ifdef also looks a bit off; I guess this should be linked to __USE_MINGW_ANSI_STDIO instead. --- mingw-w64-headers/crt/inttypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) How about `#if d

Re: [Mingw-w64-public] [PATCH] headers: Fix the signature of wcstok() for UCRT

2021-03-02 Thread Martin Storsjö
On Tue, 2 Mar 2021, Liu Hao wrote: 在 2021/3/2 下午3:44, Martin Storsjö 写道: Since the UCRT, the wcstok() function has the C99 compliant signature with a third parameter for thread safety. Signed-off-by: Martin Storsjö --- mingw-w64-headers/crt/wchar.h | 4 1 file changed, 4 insertions(+)

[Mingw-w64-public] [PATCH] headers: Expose SCN*8 defines when using UCRT

2021-03-02 Thread Martin Storsjö
Signed-off-by: Martin Storsjö --- The rest of the ifdef also looks a bit off; I guess this should be linked to __USE_MINGW_ANSI_STDIO instead. --- mingw-w64-headers/crt/inttypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/crt/inttypes.h b/mingw-w64-head

Re: [Mingw-w64-public] [PATCH] headers: Add SCN*8 to inttypes.h

2021-03-02 Thread Martin Storsjö
On Tue, 2 Mar 2021, Liu Hao wrote: 在 2021/3/2 下午3:45, Martin Storsjö 写道: These are available at least in UCRT. Signed-off-by: Martin Storsjö --- If necessary we could hide them within an #ifdef _UCRT. --- mingw-w64-headers/crt/inttypes.h | 15 +++ 1 file changed, 15 insertions(

Re: [Mingw-w64-public] [PATCH] headers: Add SCN*8 to inttypes.h

2021-03-02 Thread Liu Hao
在 2021/3/2 下午3:45, Martin Storsjö 写道: These are available at least in UCRT. Signed-off-by: Martin Storsjö --- If necessary we could hide them within an #ifdef _UCRT. --- mingw-w64-headers/crt/inttypes.h | 15 +++ 1 file changed, 15 insertions(+) I think you should. I have che

Re: [Mingw-w64-public] [PATCH] headers: Fix the signature of wcstok() for UCRT

2021-03-02 Thread Liu Hao
在 2021/3/2 下午3:44, Martin Storsjö 写道: Since the UCRT, the wcstok() function has the C99 compliant signature with a third parameter for thread safety. Signed-off-by: Martin Storsjö --- mingw-w64-headers/crt/wchar.h | 4 1 file changed, 4 insertions(+) This patch looks good to me, too

Re: [Mingw-w64-public] [PATCH] crt: Silence warnings when building _*wc_nolock

2021-03-02 Thread Liu Hao
在 2021/3/2 下午3:44, Martin Storsjö 写道: Define a high enough version for __MSVCRT_VERSION__ to make the declarations visible. These started warning about implicit definitions since 2f9a13461d265592b33cc9ff0e425ecb0df9499c. Signed-off-by: Martin Storsjö --- mingw-w64-crt/stdio/_getwc_nolock.c |

[Mingw-w64-public] g++ shows redundant __builtin declarations in intrin.h

2021-03-02 Thread Biswapriyo Nath
* Command: echo "#include " | g++ -c -Wredundant-decls -xc++ - * Output: intrin.h:59:23: note: previous declaration of 'unsigned int __builtin_ia32_crc32qi(unsigned int, unsigned char)' * Test project: https://github.com/ihhub/fheroes2.git ___ Mingw-w64

[Mingw-w64-public] [PATCH] headers: Add SCN*8 to inttypes.h

2021-03-02 Thread Martin Storsjö
These are available at least in UCRT. Signed-off-by: Martin Storsjö --- If necessary we could hide them within an #ifdef _UCRT. --- mingw-w64-headers/crt/inttypes.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/mingw-w64-headers/crt/inttypes.h b/mingw-w64-headers/crt/intty

[Mingw-w64-public] [PATCH] headers: Fix the signature of wcstok() for UCRT

2021-03-02 Thread Martin Storsjö
Since the UCRT, the wcstok() function has the C99 compliant signature with a third parameter for thread safety. Signed-off-by: Martin Storsjö --- mingw-w64-headers/crt/wchar.h | 4 1 file changed, 4 insertions(+) diff --git a/mingw-w64-headers/crt/wchar.h b/mingw-w64-headers/crt/wchar.h in

[Mingw-w64-public] [PATCH] crt: Silence warnings when building _*wc_nolock

2021-03-02 Thread Martin Storsjö
Define a high enough version for __MSVCRT_VERSION__ to make the declarations visible. These started warning about implicit definitions since 2f9a13461d265592b33cc9ff0e425ecb0df9499c. Signed-off-by: Martin Storsjö --- mingw-w64-crt/stdio/_getwc_nolock.c | 2 ++ mingw-w64-crt/stdio/_putwc_nolock.