<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 26, 2016 at 10:16 PM, Xinliang David Li <span dir="ltr"><<a href="mailto:davidxl@google.com" target="_blank">davidxl@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Fri, Feb 26, 2016 at 10:12 PM, Sean Silva <span dir="ltr"><<a href="mailto:chisophugis@gmail.com" target="_blank">chisophugis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">silvas added a comment.<br>
<br>
Thanks David. r262112.<br>
<span><br>
In <a href="http://reviews.llvm.org/D17672#363502" rel="noreferrer" target="_blank">http://reviews.llvm.org/D17672#363502</a>, @davidxl wrote:<br>
<br>
> This one looks fine. There is a compiler-rt part too.<br>
<br>
<br>
</span>Curiously PS4 defines __FreeBSD__ and we we were actually already taking the linker magic `#ifdef`. I actually ran into this somewhat accidentally when using an upstream compiler-rt for PS4. I actually encountered link errors for missing `__llvm_profile_register_function` et al. which gave me the motivation to look closer. In the end this change seemed like the natural thing to do since it was a win-win for reducing our private patches and also getting the improved startup time.<br></blockquote><div><br></div></span><div>ok. Does PS4 define its own platform macro? It might be better to make it more explicit.</div></div></div></div></blockquote><div><br></div><div>Yes, it has __PS4__ in the upstream compiler which will be used for gating differences between PS4 and FreeBSD.</div><div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="HOEnZb"><font color="#888888"><div><br></div><div>David</div></font></span><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div><br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="http://reviews.llvm.org/D17672" rel="noreferrer" target="_blank">http://reviews.llvm.org/D17672</a><br>
<br>
<br>
<br>
</div></div></blockquote></span></div><br></div></div>
</blockquote></div><br></div></div>