diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-23 19:16:56 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-23 19:16:56 +0000 |
commit | a5bb2f61cfb8a707cf20b61bc13bf3f3d60c50f5 (patch) | |
tree | 3aed1affc220cd72906bd67ba29f70b2195d3b7b /llvm/lib/CodeGen/Analysis.cpp | |
parent | ffd8a3364c700f560b5d37e32364b5e53041f1cb (diff) | |
download | bcm5719-llvm-a5bb2f61cfb8a707cf20b61bc13bf3f3d60c50f5.tar.gz bcm5719-llvm-a5bb2f61cfb8a707cf20b61bc13bf3f3d60c50f5.zip |
Use alias linkage and visibility to decide tls access mode.
This matches both what we do for the non-thread case and what gcc does.
With this patch clang would match gcc's behaviour in
static __thread int a = 42;
extern __thread int b __attribute__((alias("a")));
int *f(void) { return &a; }
int *g(void) { return &b; }
if not for pr19843. Manually writing the IL does produce the same access modes.
It is also a step in the direction of fixing pr19844.
llvm-svn: 209543
Diffstat (limited to 'llvm/lib/CodeGen/Analysis.cpp')
0 files changed, 0 insertions, 0 deletions