aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2011-07-13 17:58:18 +0000
committerRainer Orth <ro@gcc.gnu.org>2011-07-13 17:58:18 +0000
commit9e34e53f8e2c0379411d643790e0587038d922cf (patch)
tree587b523eeb3cdc6d42e4b294e7a218dee5d581dd
parent515646845f462707b22e7425f9f2f5917a93085a (diff)
downloadgcc-9e34e53f8e2c0379411d643790e0587038d922cf.zip
gcc-9e34e53f8e2c0379411d643790e0587038d922cf.tar.gz
gcc-9e34e53f8e2c0379411d643790e0587038d922cf.tar.bz2
re PR target/49541 (TLS support partially broken in 64-bit mode)
PR target/49541 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ... (LINK_SPEC): ... here. From-SVN: r176244
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/sol2.h7
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cd02017..ba71966 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ PR target/49541
+ * config/sol2.h (LIB_SPEC): Simplify.
+ Move LIB_THREAD_LDFLAGS_SPEC ...
+ (LINK_SPEC): ... here.
+
2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
* haifa-sched.c (struct sched_block_state): New.
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h
index 3867c7d..99f0382 100644
--- a/gcc/config/sol2.h
+++ b/gcc/config/sol2.h
@@ -109,10 +109,8 @@ along with GCC; see the file COPYING3. If not see
#undef LIB_SPEC
#define LIB_SPEC \
"%{!symbolic:\
- %{pthreads|pthread:" \
- LIB_THREAD_LDFLAGS_SPEC " -lpthread " LIB_TLS_SPEC "} \
- %{fprofile-generate*:" \
- LIB_THREAD_LDFLAGS_SPEC " " LIB_TLS_SPEC "} \
+ %{pthreads|pthread:-lpthread} \
+ %{pthreads|pthread|fprofile-generate*:" LIB_TLS_SPEC "} \
%{p|pg:-ldl} -lc}"
#ifndef CROSS_DIRECTORY_STRUCTURE
@@ -175,6 +173,7 @@ along with GCC; see the file COPYING3. If not see
%{static:-dn -Bstatic} \
%{shared:-G -dy %{!mimpure-text:-z text}} \
%{symbolic:-Bsymbolic -G -dy -z text} \
+ %{pthreads|pthread|fprofile-generate*:" LIB_THREAD_LDFLAGS_SPEC "} \
%(link_arch) \
%{Qy:} %{!Qn:-Qy}"