This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] libstdc++/70503 Ensure std::thread helpers have internal linkage
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 5 Apr 2016 18:23:41 +0100
- Subject: Re: [patch] libstdc++/70503 Ensure std::thread helpers have internal linkage
- Authentication-results: sourceware.org; auth=none
- References: <20160405133701 dot GH5814 at redhat dot com>
On 05/04/16 14:37 +0100, Jonathan Wakely wrote:
Ensure std::thread helpers have internal linkage
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.
This small tweak to the new test checks that -static works before
trying to run it.
Tested x86_64-linux, with and without static glibc installed.
Committed to trunk.
commit 1fdc9bbe912281ba6d573fc28c53817402656e57
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Tue Apr 5 18:18:36 2016 +0100
* testsuite/30_threads/thread/70503.cc: Require -static to work.
diff --git a/libstdc++-v3/testsuite/30_threads/thread/70503.cc b/libstdc++-v3/testsuite/30_threads/thread/70503.cc
index 1763ac2..950d754 100644
--- a/libstdc++-v3/testsuite/30_threads/thread/70503.cc
+++ b/libstdc++-v3/testsuite/30_threads/thread/70503.cc
@@ -19,6 +19,7 @@
// { dg-options " -std=gnu++11 -static" { target *-*-*gnu* } }
// { dg-require-cstdint "" }
// { dg-require-gthreads "" }
+// { dg-require-effective-target static }
extern "C" {
void execute_native_thread_routine(void);