To clarify, this is obviously a compiler flag, but the macro is consumed by the library (not compiler) and doesn't affect how gcc/clang work. Thus, if you want old mangling, just pass this flag either to gcc or clang.<div><br></div><div>Yours,</div><div>Andrey<br><br>On Monday, August 15, 2016, Andrey Bokhanko <<a href="mailto:andreybokhanko@gmail.com">andreybokhanko@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As I understand, -D_GLIBCXX_USE_CXX11_ABI is a library flag, not compiler one, so clang should work with libstdc++ *exactly* as gcc5+ do. See <a href="http://developers.redhat.com/blog/2015/02/05/gcc5-and-the-c11-abi/" target="_blank">http://developers.redhat.com/<wbr>blog/2015/02/05/gcc5-and-the-<wbr>c11-abi/</a> for details.<div><br></div><div>Yours,</div><div>Andrey</div><div><br>On Monday, August 15, 2016, Renato Golin <<a href="javascript:_e(%7B%7D,'cvml','renato.golin@linaro.org');" target="_blank">renato.golin@linaro.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 15 August 2016 at 15:58, Maria Gottschalk via cfe-dev<br>
<<a>cfe-dev@lists.llvm.org</a>> wrote:<br>
> So, is it correct that clang-3.9.0 unconditionally compiles for the new abi? That gcc 4.x.y is no longer usable and that you must have gcc 5+ if you want to use libstdc++?<br>
<br>
Oh bother! Adding Dmitry, as he wrote the code [1].<br>
<br>
I was under the impression that, if you didn't use the tag, nothing<br>
would have changed.<br>
<br>
We don't have many compile-time options like GCC, so this would have<br>
to be a run-time option, if needed.<br>
<br>
cheers,<br>
--renato<br>
<br>
[1] <a href="https://reviews.llvm.org/D18035" target="_blank">https://reviews.llvm.org/D1803<wbr>5</a> and <a href="https://reviews.llvm.org/D17567" target="_blank">https://reviews.llvm.org/D1756<wbr>7</a><br>
</blockquote></div>
</blockquote></div>