Disable local dynamic TLS model on Solaris/x86 if as/ld cannot handle it

Programming / Compilers / GCC - ro [138bc75d-0d04-0410-961f-82ee72b054a4] - 7 March 2014 05:30 UTC

- 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.

e727a9c Disable local dynamic TLS model on Solaris/x86 if as/ld cannot handle it
gcc/ChangeLog | 13 ++++++++
gcc/config.in | 8 ++++-
gcc/config/i386/i386.c | 7 +++++
gcc/config/i386/i386.md | 11 ++++---
gcc/configure | 78 ++++++++++++++++++++++++++++++++++++++++++++---
gcc/configure.ac | 49 +++++++++++++++++++++++++++--
6 files changed, 153 insertions(+), 13 deletions(-)

Upstream: gcc.gnu.org


  • Share