diff options
author | Olivier Hainque <hainque@adacore.com> | 2012-08-06 15:15:37 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@gcc.gnu.org> | 2012-08-06 15:15:37 +0000 |
commit | a4a837968d01562e9caf7930670e236ae0fbf6a9 (patch) | |
tree | 5b489492e6da10436c9bd66b78a59bf18307e78b /gcc | |
parent | b9958d43c0e25040b6f3d4eed0a42b999c92c579 (diff) | |
download | gcc-a4a837968d01562e9caf7930670e236ae0fbf6a9.zip gcc-a4a837968d01562e9caf7930670e236ae0fbf6a9.tar.gz gcc-a4a837968d01562e9caf7930670e236ae0fbf6a9.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-emutls.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2169ca5..ce6b4e9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/tree-emutls.c b/gcc/tree-emutls.c index 25da389..b30469c 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 |