NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/51139 CVS commit: src/external/gpl3/gcc/dist/libstdc++-v3

The following reply was made to PR lib/51139; it has been noted by GNATS.

From: "Kamil Rytarowski" <>
Subject: PR/51139 CVS commit: src/external/gpl3/gcc/dist/libstdc++-v3
Date: Wed, 21 Dec 2016 21:55:46 +0000

 Module Name:	src
 Committed By:	kamil
 Date:		Wed Dec 21 21:55:46 UTC 2016
 Modified Files:
 	src/external/gpl3/gcc/dist/libstdc++-v3/include/std: mutex
 Log Message:
 Add a walkaround for TLS bug in libstdc++ exposed with std::call_once
 Currently std::call_once with libstdc++ works only with static linking.
 Disable code path using __thread types and introduce FIXME_PR_51139.
 Problem discussed in PR 51139
 Functional std::call_once is required in LLVM and LLDB codebase.
 Example code to test std::call_once:
 #include <iostream>
 #include <thread>
 #include <mutex>
 #include <cstdlib>
 std::once_flag flag;
 int main(int argc, char **argv)
         std::call_once(flag, [](){ std::cout << "Simple example: called once\n"; });
         return EXIT_SUCCESS;
 Sponsored by <The NetBSD Foundation>
 To generate a diff of this commit:
 cvs rdiff -u -r1.1.1.4 -r1.2 \
 cvs rdiff -u -r1.1.1.2 -r1.2 \
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index