]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-emutls.c (new_emutls_decl): When a var_section is requested by the target...
authorOlivier Hainque <hainque@adacore.com>
Mon, 6 Aug 2012 15:15:37 +0000 (15:15 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Mon, 6 Aug 2012 15:15:37 +0000 (15:15 +0000)
        * 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
gcc/tree-emutls.c

index 2169ca5627e0a51cdd17d7bdaa0243ba30f9df6b..ce6b4e94941a388c1e1f7114a60b96111b8ba46a 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in
index 25da389abbba724e942f0b099079ad9253851027..b30469c8e597b52717cd652b9eeaf34222fbde7c 100644 (file)
@@ -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