From ee0cb37cd3cfd878e13d721310440eb01b21cb76 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 24 May 2011 14:53:39 +0000 Subject: [PATCH] re PR gcov-profile/48845 (All g++.dg/tree-prof and gcc.dg/{matrix, tree-prof} executions tests fail on Solaris 8/9) PR gcov-profile/48845 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling. Co-Authored-By: Rainer Orth From-SVN: r174119 --- gcc/ChangeLog | 6 ++++++ gcc/config/sol2.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 38d250fe70a1..34827e3b88c4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-05-24 Eric Botcazou + Rainer Orth + + PR gcov-profile/48845 + * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling. + 2011-05-24 Richard Guenther * gimple.c (compare_type_names_p): Remove for_completion_p arg. diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h index f3394fda74d7..cf7574830f0e 100644 --- a/gcc/config/sol2.h +++ b/gcc/config/sol2.h @@ -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 -- 2.43.5