[compiler-rt] r353902 - [tsan] #undef one-letter macros

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 12 15:49:02 PST 2019

Author: eugenis
Date: Tue Feb 12 15:49:02 2019
New Revision: 353902

URL: http://llvm.org/viewvc/llvm-project?rev=353902&view=rev
[tsan] #undef one-letter macros

buildgo.sh puts most of sanitizer_common together in a single source
file. These single-letter macros end up affecting a lot of unrelated
code; #undef them as early as possible.


Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_md5.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_md5.cc?rev=353902&r1=353901&r2=353902&view=diff
--- compiler-rt/trunk/lib/tsan/rtl/tsan_md5.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_md5.cc Tue Feb 12 15:49:02 2019
@@ -138,6 +138,14 @@ static const void *body(MD5_CTX *ctx, co
   return ptr;
+#undef F
+#undef G
+#undef H
+#undef I
+#undef STEP
+#undef SET
+#undef GET
 void MD5_Init(MD5_CTX *ctx) {
   ctx->a = 0x67452301;
   ctx->b = 0xefcdab89;

More information about the llvm-commits mailing list