re PR gcov-profile/48845 (All g++.dg/tree-prof and gcc.dg/{matrix, tree-prof} executi...
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 24 May 2011 14:53:39 +0000 (14:53 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 24 May 2011 14:53:39 +0000 (14:53 +0000)
PR gcov-profile/48845
* config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.

Co-Authored-By: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
From-SVN: r174119

gcc/ChangeLog
gcc/config/sol2.h

index 38d250fe70a14053b5517bd105dc840ea903244b..34827e3b88c4918c959d9bd663fb461d2c7657e0 100644 (file)
@@ -1,3 +1,9 @@
+2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
+           Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       PR gcov-profile/48845
+       * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
+
 2011-05-24  Richard Guenther  <rguenther@suse.de>
 
        * gimple.c (compare_type_names_p): Remove for_completion_p arg.
index f3394fda74d72c738e9820b8d37b5249d7601052..cf7574830f0e06285e2d2a93f365ffcb03a3e79e 100644 (file)
@@ -136,6 +136,8 @@ along with GCC; see the file COPYING3.  If not see
    %{!symbolic:\
      %{pthreads|pthread:" \
         LIB_THREAD_LDFLAGS_SPEC " -lpthread " LIB_TLS_SPEC "} \
+     %{fprofile-generate*:" \
+        LIB_THREAD_LDFLAGS_SPEC " " LIB_TLS_SPEC "} \
      %{p|pg:-ldl} -lc}"
 
 #undef  ENDFILE_SPEC