Commit 9e34e53f by Rainer Orth Committed by Rainer Orth

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
parent 51564684
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> 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
* haifa-sched.c (struct sched_block_state): New. * haifa-sched.c (struct sched_block_state): New.
......
...@@ -109,10 +109,8 @@ along with GCC; see the file COPYING3. If not see ...@@ -109,10 +109,8 @@ along with GCC; see the file COPYING3. If not see
#undef LIB_SPEC #undef LIB_SPEC
#define LIB_SPEC \ #define LIB_SPEC \
"%{!symbolic:\ "%{!symbolic:\
%{pthreads|pthread:" \ %{pthreads|pthread:-lpthread} \
LIB_THREAD_LDFLAGS_SPEC " -lpthread " LIB_TLS_SPEC "} \ %{pthreads|pthread|fprofile-generate*:" LIB_TLS_SPEC "} \
%{fprofile-generate*:" \
LIB_THREAD_LDFLAGS_SPEC " " LIB_TLS_SPEC "} \
%{p|pg:-ldl} -lc}" %{p|pg:-ldl} -lc}"
#ifndef CROSS_DIRECTORY_STRUCTURE #ifndef CROSS_DIRECTORY_STRUCTURE
...@@ -175,6 +173,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -175,6 +173,7 @@ along with GCC; see the file COPYING3. If not see
%{static:-dn -Bstatic} \ %{static:-dn -Bstatic} \
%{shared:-G -dy %{!mimpure-text:-z text}} \ %{shared:-G -dy %{!mimpure-text:-z text}} \
%{symbolic:-Bsymbolic -G -dy -z text} \ %{symbolic:-Bsymbolic -G -dy -z text} \
%{pthreads|pthread|fprofile-generate*:" LIB_THREAD_LDFLAGS_SPEC "} \
%(link_arch) \ %(link_arch) \
%{Qy:} %{!Qn:-Qy}" %{Qy:} %{!Qn:-Qy}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment