This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/70503] [4.9/5 Regression] extern "C" functions in src/c++11/thread.cc are global in libstdc++.a
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 20 Apr 2016 14:31:05 +0000
- Subject: [Bug libstdc++/70503] [4.9/5 Regression] extern "C" functions in src/c++11/thread.cc are global in libstdc++.a
- Auto-submitted: auto-generated
- References: <bug-70503-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70503
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Apr 20 14:30:33 2016
New Revision: 235284
URL: https://gcc.gnu.org/viewcvs?rev=235284&root=gcc&view=rev
Log:
Ensure std::thread helpers have internal linkage
Backport from mainline
2016-04-05 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/70503
* src/c++11/thread.cc (execute_native_thread_routine,
execute_native_thread_routine_compat): Give internal linkage.
* testsuite/30_threads/thread/70503.cc: New test.
Added:
branches/gcc-4_9-branch/libstdc++-v3/testsuite/30_threads/thread/70503.cc
Modified:
branches/gcc-4_9-branch/libstdc++-v3/ChangeLog
branches/gcc-4_9-branch/libstdc++-v3/src/c++11/thread.cc