<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Feb 24, 2014 at 10:46 AM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@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"><div class="gmail_extra"><div class=""><br><div class="gmail_quote">On Mon, Feb 24, 2014 at 10:43 AM, Tom Roeder <span dir="ltr"><<a href="mailto:tmroeder@google.com" target="_blank">tmroeder@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 style="overflow:hidden">I agree that we probably should leave the default behavior as it is.<br>

Are you opposed to adding the always-pass-gold feature behind a build<br>
flag?</div></blockquote></div><br></div>My inclination would be to provide a generic driver flag that does this. Then -flto can just imply this flag when linking, but folks who know they are using gold can pass it directly.</div>


<div class="gmail_extra"><br></div><div class="gmail_extra">Not sure if we really need a build-time parameter to toggle the default here (I personally don't see a need, but perhaps others do).</div></div>
</blockquote></div><br></div><div class="gmail_extra">Sorry for the delay in response here.</div><div class="gmail_extra"><br></div><div class="gmail_extra">If the choice must be made explicitly by the caller of the compiler, then any custom build rules that call the compiler in unusual ways must be modified to pass the right flag, be it a driver flag or a consequence of -flto. This can be unnecessarily painful in large code bases. So, I'd really like to be able to toggle the default mode for the compiler.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">I'd be very interested to hear the opinions of others, though.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Tom</div></div>