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