[patch] libstdc++/70503 Ensure std::thread helpers have internal linkage

Jonathan Wakely jwakely@redhat.com
Thu Apr 7 14:27:00 GMT 2016


On 07/04/16 15:42 +0200, Jakub Jelinek wrote:
>Or perhaps instead change the test, so that instead of testing for
>undefined symbols it provides some definition of those 2 symbols
>and makes sure libstdc++.a(thread.o) is linked in too (such as
>using std::thread::detach or similar somewhere).
>Then in the buggy libstdc++ case, because those old definitions
>were strong rather than weak, it should fail to link, while with
>fixed libstdc++ succeed.

That'll work. Tested x86_64-linux, committed to trunk.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 1469 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160407/55697c7b/attachment.bin>


More information about the Libstdc++ mailing list