Commit e1935569 by Kai Tietz Committed by Kai Tietz

varasm.c (emutls_decl): Merge attributes to new decl.

2010-05-21  Kai Tietz  <kai.tietz@onevision.com>

        PR/44139
        * varasm.c (emutls_decl): Merge attributes to new decl.

From-SVN: r159658
parent 46314d3e
2010-05-21 Kai Tietz <kai.tietz@onevision.com>
PR/44139
* varasm.c (emutls_decl): Merge attributes to new decl.
2010-05-21 Eric Botcazou <ebotcazou@adacore.com> 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
PR middle-end/44101 PR middle-end/44101
......
...@@ -403,6 +403,8 @@ emutls_decl (tree decl) ...@@ -403,6 +403,8 @@ emutls_decl (tree decl)
int foo() { return i; } int foo() { return i; }
__thread int i = 1; __thread int i = 1;
in which I goes from external to locally defined and initialized. */ in which I goes from external to locally defined and initialized. */
DECL_DLLIMPORT_P (to) = DECL_DLLIMPORT_P (decl);
DECL_ATTRIBUTES (to) = targetm.merge_decl_attributes (decl, to);
TREE_STATIC (to) = TREE_STATIC (decl); TREE_STATIC (to) = TREE_STATIC (decl);
TREE_USED (to) = TREE_USED (decl); TREE_USED (to) = TREE_USED (decl);
......
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