BTW, I've tested this patch both on a platform that does need libatomic (sparc, with clang as host compiler), and two that don't (x86-64 and sparc with gcc host compiler) and verified that it does the right thing on both kinds. http://reviews.llvm.org/D10453 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/