From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15286 invoked by alias); 22 May 2011 20:22:26 -0000 Received: (qmail 15278 invoked by uid 22791); 22 May 2011 20:22:26 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 22 May 2011 20:22:12 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 881A7CB029B for ; Sun, 22 May 2011 22:22:11 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B89Jeme8nadj for ; Sun, 22 May 2011 22:22:08 +0200 (CEST) Received: from [192.168.1.2] (bon31-9-83-155-120-49.fbx.proxad.net [83.155.120.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 8060ACB020C for ; Sun, 22 May 2011 22:22:08 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [Solaris] Fix profiling Date: Sun, 22 May 2011 22:25:00 -0000 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_ECX2NQ6ZFa3QPmq" Message-Id: <201105222222.28396.ebotcazou@adacore.com> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg01577.txt.bz2 --Boundary-00=_ECX2NQ6ZFa3QPmq Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 480 Hi, after http://gcc.gnu.org/ml/gcc-patches/2011-04/msg02139.html profiling uses TLS support where available. This breaks on SPARC/Solaris 8 and 9 (at least) because the associated libraries aren't linked in. Tested on SPARC/Solaris 8 and SPARC64/Solaris 9 (the Solaris 10 machine isn't in very good shape right now), OK for the mainline? 2011-05-22 Eric Botcazou * config/sol2.h (LIB_SPEC): Link TLS support for profiling. -- Eric Botcazou --Boundary-00=_ECX2NQ6ZFa3QPmq Content-Type: text/x-diff; charset="iso 8859-15"; name="p.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="p.diff" Content-length: 487 Index: config/sol2.h =================================================================== --- config/sol2.h (revision 174027) +++ config/sol2.h (working copy) @@ -136,6 +136,8 @@ along with GCC; see the file COPYING3. %{!symbolic:\ %{pthreads|pthread:" \ LIB_THREAD_LDFLAGS_SPEC " -lpthread " LIB_TLS_SPEC "} \ + %{fprofile-arcs|fprofile-generate*|coverage:" \ + LIB_THREAD_LDFLAGS_SPEC " " LIB_TLS_SPEC "} \ %{p|pg:-ldl} -lc}" #undef ENDFILE_SPEC --Boundary-00=_ECX2NQ6ZFa3QPmq--