Commit a4a83796 by Olivier Hainque Committed by Olivier Hainque

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
parent b9958d43
2012-08-06 Olivier Hainque <hainque@adacore.com>
* 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 <tom@codesourcery.com> 2012-08-06 Tom de Vries <tom@codesourcery.com>
* tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in
......
...@@ -312,8 +312,8 @@ new_emutls_decl (tree decl, tree alias_of) ...@@ -312,8 +312,8 @@ new_emutls_decl (tree decl, tree alias_of)
if (!DECL_COMMON (to) && targetm.emutls.var_section) if (!DECL_COMMON (to) && targetm.emutls.var_section)
{ {
DECL_SECTION_NAME (to) DECL_SECTION_NAME (to)
= build_string (strlen (targetm.emutls.tmpl_section), = build_string (strlen (targetm.emutls.var_section),
targetm.emutls.tmpl_section); targetm.emutls.var_section);
} }
/* If this variable is defined locally, then we need to initialize the /* If this variable is defined locally, then we need to initialize the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment