[v3 PATCH] PR libstdc++/77288 and the newest proposed resolution for LWG 2756

Jonathan Wakely jwakely@redhat.com
Thu Sep 22 11:38:00 GMT 2016


On 22/09/16 11:16 +0100, Jonathan Wakely wrote:
>(Somebody should fix PR58938 so exception_ptr is portable).

Christophe, would you be able to test this patch?

It uses a single global mutex for exception_ptr objects, which doesn't
scale well but that probably isn't a problem for processors without
lock-free atomics for single words.

This also solves the problem of mismatched -march options, where the
header is compiled for a CPU that supports the atomics but
libstdc++.so was built for an older CPU that doesn't support them, and
linking fails (as in https://gcc.gnu.org/PR58938#c13).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 9380 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160922/4e36267b/attachment.bin>


More information about the Gcc-patches mailing list