<div dir="ltr">lgtm</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 23, 2014 at 10:39 AM, Rafael EspĂ­ndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This matches both what we do for the non-thread case and what gcc does.<br>
<br>
I found this while looking a the possibility of having a GlobalAlias<br>
with an aliasee that is an arbitrary ConstantExpr, and therefore with<br>
no notion of "aliased global".<br>
<br>
With this patch clang would match gcc's behaviour in<br>
<br>
static __thread int a = 42;<br>
extern __thread int b __attribute__((alias("a")));<br>
int *f(void) { return &a; }<br>
int *g(void) { return &b; }<br>
<br>
if not for pr19843. Manually writing the IL does produce the same access modes.<br>
<br>
It is also a step in the direction of fixing pr19844.<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div>