diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-04 11:10:38 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-04 11:10:38 +0000 |
commit | 72a430e4dd7cfa5d104dfc1eb9f76c988bd83b0e (patch) | |
tree | 38c687216b40ee374097b4fbb790fb3131adfdc3 /config | |
parent | 497f2858ac9b8d97b197b4657b4145ae0c7534a8 (diff) | |
download | gcc-72a430e4dd7cfa5d104dfc1eb9f76c988bd83b0e.tar.gz |
config/
* tls.m4 (GCC_CHECK_TLS): Do not test TLS with static linking
if static linking doesn't even work.
libgomp/
* configure: Regenerate.
libmudflap/
* configure: Regenerate.
libjava/
* configure: Regenerate.
libstdc++-v3/
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119487 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 5 | ||||
-rw-r--r-- | config/tls.m4 | 10 |
2 files changed, 11 insertions, 4 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index fda6f95a2cd..88b688ca7fe 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr> + + * tls.m4 (GCC_CHECK_TLS): Do not test TLS with static linking + if static linking doesn't even work. + 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com> * tls.m4 (GCC_CHECK_TLS): Fall back to a link test. diff --git a/config/tls.m4 b/config/tls.m4 index b66b6d758ce..41f11ab3ea5 100644 --- a/config/tls.m4 +++ b/config/tls.m4 @@ -5,12 +5,14 @@ AC_DEFUN([GCC_CHECK_TLS], [ have_tls, [ AC_RUN_IFELSE([__thread int a; int b; int main() { return a = b; }], [dnl If the test case passed with dynamic linking, try again with - dnl static linking. This fails at least with some older Red Hat - dnl releases. + dnl static linking, but only if static linking is supported (not + dnl on Solaris 10). This fails with some older Red Hat releases. save_LDFLAGS="$LDFLAGS" LDFLAGS="-static $LDFLAGS" - AC_RUN_IFELSE([__thread int a; int b; int main() { return a = b; }], - [have_tls=yes], [have_tls=no], []) + AC_LINK_IFELSE([int main() { return 0; }], + AC_RUN_IFELSE([__thread int a; int b; int main() { return a = b; }], + [have_tls=yes], [have_tls=no],[]), + [have_tls=yes]) LDFLAGS="$save_LDFLAGS"], [have_tls=no], [AC_LINK_IFELSE([__thread int a; int b; int main() { return a = b; }], |