Re: [Mingw-w64-public] GCC 7.2 build bugs on Windows 8.1 and Windows 10

2017-10-25 Thread Jonathan Wakely
On 25 October 2017 at 12:24, Liu Hao wrote: > On 2017/10/25 18:35, Jonathan Wakely wrote: >> >> Is this because -std=c99 sets __STRICT_ANSI__? >> > The C++ runtime is not built with -std=c99, of course. > > >> > > > No. It will not compile despite the `-std=` option, because > `_aligned_{malloc,fr

Re: [Mingw-w64-public] GCC 7.2 build bugs on Windows 8.1 and Windows 10

2017-10-25 Thread Liu Hao
On 2017/10/25 18:35, Jonathan Wakely wrote: Is this because -std=c99 sets __STRICT_ANSI__? > The C++ runtime is not built with -std=c99, of course. > No. It will not compile despite the `-std=` option, because `_aligned_{malloc,free}` are conditionally `#ifdef`'d out by the following code

Re: [Mingw-w64-public] GCC 7.2 build bugs on Windows 8.1 and Windows 10

2017-10-25 Thread Jonathan Wakely
On 25 October 2017 at 02:50, Liu Hao wrote: > On 2017/10/24 23:55, Jonathan Wakely wrote: >> >> On 23 October 2017 at 15:55, David Gressett wrote: >>> >>> gcc needs some substantial patching to to build on Windows. >>> The details depend on whether you are building a 64-bit or a 32-bit gcc. >>> >>>

Re: [Mingw-w64-public] [PATCH][CRT] Split wassert and assert into different units

2017-10-25 Thread Martin Storsjö
On Wed, 25 Oct 2017, Tamar Christina wrote: On Sun, 22 Oct 2017 21:29:32 + Martin Storsjö wrote > On Sun, 22 Oct 2017, Tamar Christina wrote: > > > say I have an object file requiring both _assert and _wassert. > > > > if my link order is -lmsvcrt -lmingwex, it'll pick assert fro

Re: [Mingw-w64-public] [PATCH][CRT] Split wassert and assert into different units

2017-10-25 Thread Tamar Christina
On Sun, 22 Oct 2017 21:29:32 + Martin Storsjö wrote > On Sun, 22 Oct 2017, Tamar Christina wrote: > > > On Sun, 22 Oct 2017 19:28:04 + Martin Storsjö > > wrote > > > On Sun, 22 Oct 2017, Tamar Christina wrote: > > > > > > > Actually.. > > > > >