<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 2, 2019 at 1:49 PM Kostya Kortchinsky via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">cryptoad added a comment.<br>
<br>
Regarding Teresa's issue, it seems to boil down to the version of clang, and not inlining the __atomic_load_8 & co.<br>
Looking at godbolt, it doesn't seem to happen until clang 6, while gcc did it since a while.<br>
After attempting to conditionally add -latomic, and failing, I am resorting to adding -latomic unconditionally to the tests link flags, unless someone has a better idea.<br></blockquote><div><br></div><div>This seems like the right solution (if not inlined for whatever reason, it needs to be satisfied out of the library; if inlined, linking in the library should not have any user visible impact).</div><div>Can you go ahead and commit that fix? I'm having to manually disable these tests in all my clients for now.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
In D63831#1562747 <<a href="https://reviews.llvm.org/D63831#1562747" rel="noreferrer" target="_blank">https://reviews.llvm.org/D63831#1562747</a>>, @tejohnson wrote:<br>
<br>
> It passes if I link manually and add in -latomic. Should that be added to the link flags somewhere? How does this work on the bots or elsewhere?<br>
<br>
<br>
<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D63831/new/" rel="noreferrer" target="_blank">https://reviews.llvm.org/D63831/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D63831" rel="noreferrer" target="_blank">https://reviews.llvm.org/D63831</a><br>
<br>
<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><span style="font-family:Times;font-size:medium"><table cellspacing="0" cellpadding="0"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top:2px solid rgb(213,15,37)">Teresa Johnson |</td><td nowrap style="border-top:2px solid rgb(51,105,232)"> Software Engineer |</td><td nowrap style="border-top:2px solid rgb(0,153,57)"> <a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a> |</td><td nowrap style="border-top:2px solid rgb(238,178,17)"><br></td></tr></tbody></table></span></div></div></div></div>