Disable local dynamic TLS model on Solaris/x86 if as/ld cannot handle it
commite727a9cd911d001a3f6eb6628ac3922da7d884ac
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Mar 2014 11:30:40 +0000 (7 11:30 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Mar 2014 11:30:40 +0000 (7 11:30 +0000)
treea011634132cdbafc0a5e5fb3639e9669412d7f10
parent155354e53eb7a77f9a1b6d84af71af9306561f9d
Disable local dynamic TLS model on Solaris/x86 if as/ld cannot handle it

* configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
(LIB_TLS_SPEC): Save as ld_tls_libs.
(HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
(HAVE_AS_IX86_TLSLDM): New test.
* configure, config.in: Regenerate.
* config/i386/i386.c (legitimize_tls_address): Fall back to
TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
cannot support TLS_MODEL_LOCAL_DYNAMIC.
* config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208398 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config.in
gcc/config/i386/i386.c
gcc/config/i386/i386.md
gcc/configure
gcc/configure.ac