[Mingw-w64-public] [PATCH] crt: Fix misleading indentation warning with gcc

2023-02-04 Thread Biswapriyo Nath
From dad9f2a0a452b188e5f45892a0882fddc50c8db9 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Sat, 4 Feb 2023 23:27:35 +0530 Subject: [PATCH] crt: Fix misleading indentation warning with gcc This fixes the following warning secapi/strerror_s.c:21:7: warning: this 'if' clause does not guard.

Re: [Mingw-w64-public] Internal compiler error specific to MinGW when using -fstack-clash-protection and __attribute__((noreturn))

2023-02-04 Thread Christian Franke
LIU Hao wrote: 在 2023-02-04 20:51, Théo Cavignac 写道: Sorry, I misclicked and sent an half written mail. So as I tried to expose, I am using MinGW with following configuration: This looks like a GCC issue. Reported here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108673 Workaround: -f

Re: [Mingw-w64-public] [PATCH] headers: _FORTIFY_SOURCE: Enhance missing open() argument warning

2023-02-04 Thread LIU Hao
在 2023-02-04 02:45, Christian Franke 写道: A minor enhancement which detects cases like:   int flags = _O_CREAT | O_TRUNC;   if (binary)     flags |= O_BINARY;   // "warning: _open(..._O_CREAT...): missing argument "   int fd = open(name, flags); Thanks for the patch. This patch looks goo

Re: [Mingw-w64-public] Internal compiler error specific to MinGW when using -fstack-clash-protection and __attribute__((noreturn))

2023-02-04 Thread LIU Hao
在 2023-02-04 20:51, Théo Cavignac 写道: Sorry, I misclicked and sent an half written mail. So as I tried to expose, I am using MinGW with following configuration: This looks like a GCC issue. Reported here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108673 -- Best regards, LIU Hao Open

Re: [Mingw-w64-public] Internal compiler error specific to MinGW when using -fstack-clash-protection and __attribute__((noreturn))

2023-02-04 Thread Théo Cavignac
Sorry, I misclicked and sent an half written mail. So as I tried to expose, I am using MinGW with following configuration: Using built-in specs. COLLECT_GCC=x86_64-w64-mingw32-gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-w64-mingw32/12.2.0/lto-wrapper Target: x86_64-w64-mingw32 Con

[Mingw-w64-public] Internal compiler error specific to MinGW when using -fstack-clash-protection and __attribute__((noreturn))

2023-02-04 Thread Théo Cavignac
Hello, As implied by the subject I isolated an internal compiler error that is specific to MinGW (stock GCC Minimal code /*   /usr/bin/x86_64-w64-mingw32-gcc \     -O2 -fstack-clash-protection -c \     -freport-bug \     -o f.o f.c  */ void exit(int) __attribute__((