This is the mail archive of the gcc-patches@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]

Re: [patch] libstdc++/70503 Ensure std::thread helpers have internal linkage


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);

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