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 <jwak...@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);

Reply via email to