This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/70503] [4.9/5 Regression] extern "C" functions in src/c++11/thread.cc are global in libstdc++.a


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]