From a4a837968d01562e9caf7930670e236ae0fbf6a9 Mon Sep 17 00:00:00 2001 From: Olivier Hainque Date: Mon, 6 Aug 2012 15:15:37 +0000 Subject: [PATCH] tree-emutls.c (new_emutls_decl): When a var_section is requested by the target... * tree-emutls.c (new_emutls_decl): When a var_section is requested by the target, attach the new decl to that, not to the template section. From-SVN: r190179 --- gcc/ChangeLog | 5 +++++ gcc/tree-emutls.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2169ca5627e0..ce6b4e94941a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-08-06 Olivier Hainque + + * tree-emutls.c (new_emutls_decl): When a var_section is requested by + the target, attach the new decl to that, not to the template section. + 2012-08-06 Tom de Vries * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in diff --git a/gcc/tree-emutls.c b/gcc/tree-emutls.c index 25da389abbba..b30469c8e597 100644 --- a/gcc/tree-emutls.c +++ b/gcc/tree-emutls.c @@ -312,8 +312,8 @@ new_emutls_decl (tree decl, tree alias_of) if (!DECL_COMMON (to) && targetm.emutls.var_section) { DECL_SECTION_NAME (to) - = build_string (strlen (targetm.emutls.tmpl_section), - targetm.emutls.tmpl_section); + = build_string (strlen (targetm.emutls.var_section), + targetm.emutls.var_section); } /* If this variable is defined locally, then we need to initialize the