[compiler-rt] r185324 - [sanitizer] Use the correct macro to check glibc version.

Sergey Matveev earthdok at google.com
Mon Jul 1 03:15:29 PDT 2013


Author: smatveev
Date: Mon Jul  1 05:15:29 2013
New Revision: 185324

URL: http://llvm.org/viewvc/llvm-project?rev=185324&view=rev
Log:
[sanitizer] Use the correct macro to check glibc version.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc?rev=185324&r1=185323&r2=185324&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc Mon Jul  1 05:15:29 2013
@@ -197,7 +197,7 @@ uptr GetTlsSize() {
 // sizeof(struct thread) from glibc.
 // There has been a report of this being different on glibc 2.11. We don't know
 // when this change happened, so 2.12 is a conservative estimate.
-#if __GNUC_PREREQ(2, 12)
+#if __GLIBC_PREREQ(2, 12)
 const uptr kThreadDescriptorSize = FIRST_32_SECOND_64(1216, 2304);
 #else
 const uptr kThreadDescriptorSize = FIRST_32_SECOND_64(1168, 2304);





More information about the llvm-commits mailing list