Re: [patch] libstdc++/61841 odr-use pthread_create in std::thread constructor

2014-08-13 Thread Jakub Jelinek
On Wed, Aug 13, 2014 at 08:02:22PM +0100, Jonathan Wakely wrote: > On 13/08/14 20:47 +0200, Jakub Jelinek wrote: > >On Wed, Aug 13, 2014 at 07:40:57PM +0100, Jonathan Wakely wrote: > >>This should fix the Hurd bug in PR61841 as well as the problem > >>described in https://gcc.gnu.org/ml/gcc/2013-09

Re: [patch] libstdc++/61841 odr-use pthread_create in std::thread constructor

2014-08-13 Thread Jonathan Wakely
On 13/08/14 20:47 +0200, Jakub Jelinek wrote: On Wed, Aug 13, 2014 at 07:40:57PM +0100, Jonathan Wakely wrote: This should fix the Hurd bug in PR61841 as well as the problem described in https://gcc.gnu.org/ml/gcc/2013-09/msg00196.html Tested x86_64-linux, committed to trunk. This is not suita

Re: [patch] libstdc++/61841 odr-use pthread_create in std::thread constructor

2014-08-13 Thread Jakub Jelinek
On Wed, Aug 13, 2014 at 07:40:57PM +0100, Jonathan Wakely wrote: > This should fix the Hurd bug in PR61841 as well as the problem > described in https://gcc.gnu.org/ml/gcc/2013-09/msg00196.html > > Tested x86_64-linux, committed to trunk. > > This is not suitable for the branches as it requires a

[patch] libstdc++/61841 odr-use pthread_create in std::thread constructor

2014-08-13 Thread Jonathan Wakely
This patch causes the std::thread constructor that launches a new thread to odr-use pthread_create on glibc-based targets, so that the program depends directly on pthread_create (and must be linked to libpthread) not just on the weak symbol in gthr-posix.h This should fix the Hurd bug in PR61841