gcc: xtensa: make TARGET_HAVE_TLS definition static
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 14 Jun 2020 08:07:01 +0000 (01:07 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 15 Jun 2020 10:36:16 +0000 (03:36 -0700)
commite46dad5d8f09cd344911e2df428a9d38981c2351
treeb6efedf1be43ac3cb5ef4411e1c99e13025bc75c
parent8c8eb94914c1afcac014e33def43ce329dfa314e
gcc: xtensa: make TARGET_HAVE_TLS definition static

Remove TARGET_THREADPTR reference from TARGET_HAVE_TLS to avoid
static data initialization dependency on xtensa core configuration.

2020-06-15  Max Filippov  <jcmvbkbc@gmail.com>
gcc/
* config/xtensa/xtensa.c (TARGET_HAVE_TLS): Remove
TARGET_THREADPTR reference.
(xtensa_tls_symbol_p, xtensa_tls_referenced_p): Use
targetm.have_tls instead of TARGET_HAVE_TLS.
(xtensa_option_override): Set targetm.have_tls to false in
configurations without THREADPTR.
gcc/config/xtensa/xtensa.c