[patch] libstdc++/61841 odr-use pthread_create in std::thread constructor
Jonathan Wakely
jwakely@redhat.com
Wed Aug 13 18:41:00 GMT 2014
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 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 new exported
symbol. We could maybe just add some other odr-use of pthread_create,
but it would probably be optimized away anyway.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2634 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20140813/fa99a36e/attachment.bin>
More information about the Libstdc++
mailing list