Re: [Mingw-w64-public] winpthreads and gcc 7.1

2017-05-03 Thread Liu Hao
On 2017/5/4 13:54, Daniel Santos wrote: > I see one in libgcc, but I guess you would have to add that to your > link. I presume it's in the dynamic portion. As Kai said yesterday on IRC, in the case of cross compiling libpthread has to be available prior to libgcc. That is the reason why we link

Re: [Mingw-w64-public] winpthreads and gcc 7.1

2017-05-03 Thread Daniel Santos
On 05/03/2017 10:17 AM, Liu Hao wrote: > On 2017/5/3 18:56, Christer Solskogen wrote: >> On 03.05.2017 10.23, Liu Hao wrote: >>> On 2017/5/3 15:35, Christer Solskogen wrote: I'm having a hard time (cross) compiling winpthreads (from 5.x branch) with gcc 7.1. >>> Please try the attached pa

Re: [Mingw-w64-public] [PATCH] guiddef.h: Use __declspec(selectany) on GUID declarations.

2017-05-03 Thread David Grayson
Hello, Mateusz, LH_Mouse. Another point against my patch and Mateusz's patch is that applying __declspec(selectany) to a declaration is "incorrect" according to MSDN: https://msdn.microsoft.com/en-us/library/5tkz6s71.aspx The clang people have some handy notes in their test suite about how clang

Re: [Mingw-w64-public] [PATCH] guiddef.h: Use __declspec(selectany) on GUID declarations.

2017-05-03 Thread Mateusz
W dniu 2017-05-03 o 23:14, Mateusz pisze: > We could consider define DECLSPEC_SELECTANY to __attribute__((weak)) for old > GCC. > > Patch for this attached. Sorry for this patch -- it's not working for old GCC. -- Check

Re: [Mingw-w64-public] [PATCH] guiddef.h: Use __declspec(selectany) on GUID declarations.

2017-05-03 Thread Mateusz
We could consider define DECLSPEC_SELECTANY to __attribute__((weak)) for old GCC. Patch for this attached. W dniu 2017-05-03 o 17:19, David Grayson pisze: > By the way, it's really not clear to me what specific solution you are > proposing when you say "ensure each GUID is defined only once" but

Re: [Mingw-w64-public] [PATCH] guiddef.h: Use __declspec(selectany) on GUID declarations.

2017-05-03 Thread Liu Hao
On 2017/5/3 23:12, David Grayson wrote: > When you say "optimal", what are you optimizing for? > For decreasing object file sizes and link time, apparently. > The UsbView code uses that header file in several different translation > units, so you end up having a bunch of duplicate GUID definitions

Re: [Mingw-w64-public] [PATCH] guiddef.h: Use __declspec(selectany) on GUID declarations.

2017-05-03 Thread David Grayson
By the way, it's really not clear to me what specific solution you are proposing when you say "ensure each GUID is defined only once" but I'm imagining it will introduce new incompatibilities/quirks that people have to worry about when switching between Visual Studio and mingw-w64, because you woul

Re: [Mingw-w64-public] winpthreads and gcc 7.1

2017-05-03 Thread Liu Hao
On 2017/5/3 18:56, Christer Solskogen wrote: > On 03.05.2017 10.23, Liu Hao wrote: >> On 2017/5/3 15:35, Christer Solskogen wrote: >>> I'm having a hard time (cross) compiling winpthreads (from 5.x branch) >>> with gcc 7.1. >> Please try the attached patch. >> > > Works! Thanks! \o/ > This is nothi

Re: [Mingw-w64-public] [PATCH] guiddef.h: Use __declspec(selectany) on GUID declarations.

2017-05-03 Thread David Grayson
> > > It sounds like guiddef.h should probably check the GCC major version. > > Based on the tests people have reported in this thread, I would guess > that > > for GCC 6 and above the selectany attribute on the declaration is > required, > > while on GCC 5 and below the selectany attribute on the

Re: [Mingw-w64-public] winpthreads and gcc 7.1

2017-05-03 Thread Christer Solskogen
On 03.05.2017 10.23, Liu Hao wrote: > On 2017/5/3 15:35, Christer Solskogen wrote: >> I'm having a hard time (cross) compiling winpthreads (from 5.x branch) >> with gcc 7.1. > Please try the attached patch. > Works! Thanks! \o/ -- chs --

Re: [Mingw-w64-public] Successful bootstrap of GCC 7.1.1 targeting {i686, x86_64}-w64-mingw32 with MCF thread model

2017-05-03 Thread niXman
Liu Hao 2017-05-03 13:08: > Hello all, > > This message indicates success of bootstrapping GCC 7.1.1 on > i686-w64-mingw32 and x86_64-w64-mingw32 with MCF thread model. I also can bootstrapping GCC 7.1.1 as i686-w64-mingw32 and x86_64-w64-mingw32 with winpthreads. -- Regards, niXman _

[Mingw-w64-public] Successful bootstrap of GCC 7.1.1 targeting {i686, x86_64}-w64-mingw32 with MCF thread model

2017-05-03 Thread Liu Hao
Hello all, This message indicates success of bootstrapping GCC 7.1.1 on i686-w64-mingw32 and x86_64-w64-mingw32 with MCF thread model. You may get prebuilt binaries at . Special thanks to MSYS2 for the gcc-git package, which this work is largely based on. Both of

Re: [Mingw-w64-public] winpthreads and gcc 7.1

2017-05-03 Thread Liu Hao
On 2017/5/3 15:35, Christer Solskogen wrote: I'm having a hard time (cross) compiling winpthreads (from 5.x branch) with gcc 7.1. Please try the attached patch. -- Best regards, LH_Mouse From 4fa48b2af092a3b8615cef39b6e0036e20481c3f Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Wed, 3 May 20

[Mingw-w64-public] winpthreads and gcc 7.1

2017-05-03 Thread Christer Solskogen
I'm having a hard time (cross) compiling winpthreads (from 5.x branch) with gcc 7.1. make[2]: Entering directory '/tmp/obj/_build/winpthreads.cross.i686-w64-mingw32' /bin/bash ./libtool --tag=CC --mode=link i686-w64-mingw32-gcc -Wall -DWIN32_LEAN_AND_MEAN -O2 -pipe -no-undefined -version-inf