<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 10, 2013 at 7:34 PM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@gmail.com" target="_blank">chandlerc@gmail.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>Greetings all! This is the result of a chat between Richard and myself just now.</div><div><br></div>
<div>These days Clang does a great job of detecting GCC and libstdc++ installations and using them... such a great job that Clang installed today will work with GCC 4.9 if such a thing existed and were installed.</div>
<div><br></div><div>As we've noticed recently, this can cause problems, and now that we have clang releases and GCC releases with decent compatibility out in the wild (3.2 and 4.{6,7} resp.), I think we should take a different approach:</div>
<div><br></div><div>1) Set a max GCC version we use, and on trunk have it be silly (v99.99.99).</div><div>2) On the release branch, lower this to the highest GCC version we test that release against. This protects a released clang from using newer GCC libstdc++ which is both good and bad -- no improvements from updates, but no breakage from updates.</div>
<div>3) Teach the driver about incompatible versions of GCC and libstdc++, and have it try to find a different version when available. (Mostly relevant to 4.4 and 4.5 and C++11 headers...)</div>
<div>4) Teach Clang itself to warn on a libstdc++ version macro which is one of the versions that has incompatibilities so users understand what is happening.</div><div>
<br></div><div><br></div><div>Thoughts?</div></div></blockquote><div><br></div><div style>Seems totally reasonable here.</div><div style><br></div><div style>-eric</div><div style> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div> </div></div></blockquote></div></div></div>