diff options
author | Jakub Jelinek <jakub@redhat.com> | 2002-09-27 15:30:10 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2002-09-27 15:30:10 +0200 |
commit | dce81a1a59f9663eb72e722e17f490adc3f5a2d6 (patch) | |
tree | b7ac095e3e844e739365675e99f4e724059e2a38 /gcc/config/ia64/ia64.c | |
parent | 0e9e1e0a42eff5ec265470b7e8928cb3b3ad2d70 (diff) | |
download | gcc-dce81a1a59f9663eb72e722e17f490adc3f5a2d6.zip gcc-dce81a1a59f9663eb72e722e17f490adc3f5a2d6.tar.gz gcc-dce81a1a59f9663eb72e722e17f490adc3f5a2d6.tar.bz2 |
extend.texi (tls_model): Document.
* doc/extend.texi (tls_model): Document.
* varasm.c (decl_tls_model): New.
* c-common.c (handle_tls_model_attribute): New.
(c_common_attribute_table): Add tls_model.
* config/alpha/alpha.c (alpha_encode_section_info): Use
decl_tls_model.
* flags.h (enum tls_model, flag_tls_default): Move...
* tree.h (enum tls_model, flag_tls_default): ...here.
(decl_tls_model): New prototype.
* config/ia64/ia64.c (ia64_encode_section_info): Likewise.
* config/i386/i386.c (ix86_encode_section_info): Likewise.
* config/i386/i386.md (tls_global_dynamic, tls_local_dynamic_base):
Allow !flag_pic.
From-SVN: r57588
Diffstat (limited to 'gcc/config/ia64/ia64.c')
-rw-r--r-- | gcc/config/ia64/ia64.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index 93b02dd..0db9878 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -7142,24 +7142,7 @@ ia64_encode_section_info (decl, first) is_local = (*targetm.binds_local_p) (decl); if (TREE_CODE (decl) == VAR_DECL && DECL_THREAD_LOCAL (decl)) - { - enum tls_model kind; - if (!flag_pic) - { - if (is_local) - kind = TLS_MODEL_LOCAL_EXEC; - else - kind = TLS_MODEL_INITIAL_EXEC; - } - else if (is_local) - kind = TLS_MODEL_LOCAL_DYNAMIC; - else - kind = TLS_MODEL_GLOBAL_DYNAMIC; - if (kind < flag_tls_default) - kind = flag_tls_default; - - encoding = " GLil"[kind]; - } + encoding = " GLil"[decl_tls_model (decl)]; /* Determine if DECL will wind up in .sdata/.sbss. */ else if (is_local && ia64_in_small_data_p (decl)) encoding = 's'; |