[PATCH] D51883: [Sanitizers] [MinGW] Check for __i386__ in addition to _M_IX86 for i386 specific details

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 25 12:53:29 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL343013: [Sanitizers] [MinGW] Check for __i386__ in addition to _M_IX86 for i386… (authored by mstorsjo, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D51883?vs=164725&id=166976#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D51883

Files:
  compiler-rt/trunk/lib/sanitizer_common/sanitizer_win_defs.h


Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_win_defs.h
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_win_defs.h
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_win_defs.h
@@ -17,17 +17,17 @@
 #if SANITIZER_WINDOWS
 
 #ifndef WINAPI
-#ifdef _M_IX86
+#if defined(_M_IX86) || defined(__i386__)
 #define WINAPI __stdcall
 #else
 #define WINAPI
 #endif
 #endif
 
-#if defined(_WIN64)
-#define WIN_SYM_PREFIX
-#else
+#if defined(_M_IX86) || defined(__i386__)
 #define WIN_SYM_PREFIX "_"
+#else
+#define WIN_SYM_PREFIX
 #endif
 
 // Intermediate macro to ensure the parameter is expanded before stringified.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51883.166976.patch
Type: text/x-patch
Size: 693 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180925/ddb5c597/attachment.bin>


More information about the llvm-commits mailing list