Re: [Mingw-w64-public] [PATCH] headers: Don't use __gnu_inline__ with __mingw_ovr in C++ mode

2019-09-11 Thread Martin Storsjö
On Wed, 11 Sep 2019, Christian Franke wrote: Martin Storsjö wrote: On Sat, 7 Sep 2019, Christian Franke wrote: Martin Storsjö wrote: On Wed, 4 Sep 2019, Liu Hao wrote: 在 2019/9/4 4:09, Martin Storsjö 写道: In this case, it doesn't get emitted as .linkonce discard - I'm not sure exactly wh

Re: [Mingw-w64-public] [PATCH] headers: Don't use __gnu_inline__ with __mingw_ovr in C++ mode

2019-09-11 Thread Christian Franke
Martin Storsjö wrote: On Sat, 7 Sep 2019, Christian Franke wrote: Martin Storsjö wrote: On Wed, 4 Sep 2019, Liu Hao wrote: 在 2019/9/4 4:09, Martin Storsjö 写道: In this case, it doesn't get emitted as .linkonce discard - I'm not sure exactly what's going on in this combination, whether it's

Re: [Mingw-w64-public] Subject: [PATCH] headers: Remove __USE_MINGW_ANSI_STDIO *printf() inline functions.

2019-09-11 Thread Martin Storsjö
On Tue, 10 Sep 2019, Christian Franke wrote: AFAICS most of the *printf() and *scanf() inline wrappers are not (or no longer) needed. Prototypes with __asm__() could be used instead. This patch removes a subset of these functions. As a side effect, It also fixes a regression introduced by my

Re: [Mingw-w64-public] [PATCH] headers: Don't use __gnu_inline__ with __mingw_ovr in C++ mode

2019-09-11 Thread Martin Storsjö
On Sat, 7 Sep 2019, Christian Franke wrote: Martin Storsjö wrote: On Wed, 4 Sep 2019, Liu Hao wrote: 在 2019/9/4 4:09, Martin Storsjö 写道: In this case, it doesn't get emitted as .linkonce discard - I'm not sure exactly what's going on in this combination, whether it's contradicting itself in

Re: [Mingw-w64-public] [PATCH] headers: Don't use __gnu_inline__ with __mingw_ovr in C++ mode

2019-09-11 Thread Martin Storsjö
On Tue, 3 Sep 2019, Martin Storsjö wrote: On Tue, 3 Sep 2019, Liu Hao wrote: 在 2019/9/3 14:39, Martin Storsjö 写道: In C++ mode, __mingw_ovr is a plain "inline" without "static". Clang emits a standalone copy of functions in C++ for the combination of non-static inline and __gnu_inline__, lead