summaryrefslogtreecommitdiff
path: root/gcc/print-tree.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-06-21 04:46:34 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2014-06-21 02:46:34 +0000
commit714c800f1f3f8b75e5b86c298464692f0bf434ea (patch)
treee3a0076599ad858c565005019a89d35abb96c47b /gcc/print-tree.c
parentb48972129f88f590aea38bf2617649c61a8424c7 (diff)
downloadgcc-714c800f1f3f8b75e5b86c298464692f0bf434ea.tar.gz
cgraph.h (tls_model_names): New variable.
* cgraph.h (tls_model_names): New variable. * print-tree.c (print_node): Simplify. * varpool.c (tls_model_names): New variable. (dump_varpool_node): Output tls model. * lto-symtab.c (lto_varpool_replace_node): Report TLS model conflicts. From-SVN: r211865
Diffstat (limited to 'gcc/print-tree.c')
-rw-r--r--gcc/print-tree.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c
index e26b0633d58..91d88c2835d 100644
--- a/gcc/print-tree.c
+++ b/gcc/print-tree.c
@@ -418,24 +418,8 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
fputs (" common", file);
if (code == VAR_DECL && DECL_THREAD_LOCAL_P (node))
{
- enum tls_model kind = DECL_TLS_MODEL (node);
- switch (kind)
- {
- case TLS_MODEL_GLOBAL_DYNAMIC:
- fputs (" tls-global-dynamic", file);
- break;
- case TLS_MODEL_LOCAL_DYNAMIC:
- fputs (" tls-local-dynamic", file);
- break;
- case TLS_MODEL_INITIAL_EXEC:
- fputs (" tls-initial-exec", file);
- break;
- case TLS_MODEL_LOCAL_EXEC:
- fputs (" tls-local-exec", file);
- break;
- default:
- gcc_unreachable ();
- }
+ fputs (" ", file);
+ fputs (tls_model_names[DECL_TLS_MODEL (node)], file);
}
if (CODE_CONTAINS_STRUCT (code, TS_DECL_COMMON))