From: Eric Botcazou <ebotcazou@adacore.com>
To: gcc-patches@gcc.gnu.org
Subject: [Solaris] Fix profiling
Date: Sun, 22 May 2011 22:25:00 -0000 [thread overview]
Message-ID: <201105222222.28396.ebotcazou@adacore.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 480 bytes --]
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 <ebotcazou@adacore.com>
* config/sol2.h (LIB_SPEC): Link TLS support for profiling.
--
Eric Botcazou
[-- Attachment #2: p.diff --]
[-- Type: text/x-diff, Size: 487 bytes --]
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
next reply other threads:[~2011-05-22 20:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-22 22:25 Eric Botcazou [this message]
2011-05-24 14:52 ` Eric Botcazou
2011-05-24 15:54 ` Rainer Orth
2011-05-24 22:29 ` Eric Botcazou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201105222222.28396.ebotcazou@adacore.com \
--to=ebotcazou@adacore.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).