[compiler-rt] r183225 - [sanitizer] Fix windows build.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Tue Jun 4 07:06:17 PDT 2013


Author: eugenis
Date: Tue Jun  4 09:06:16 2013
New Revision: 183225

URL: http://llvm.org/viewvc/llvm-project?rev=183225&view=rev
Log:
[sanitizer] Fix windows build.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h?rev=183225&r1=183224&r2=183225&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h Tue Jun  4 09:06:16 2013
@@ -68,14 +68,6 @@ typedef signed   int s32;
 typedef signed   long long s64;  // NOLINT
 typedef int fd_t;
 
-// Unaligned versions.
-typedef __attribute__((aligned(1))) u16 uu16;
-typedef __attribute__((aligned(1))) u32 uu32;
-typedef __attribute__((aligned(1))) u64 uu64;
-typedef __attribute__((aligned(1))) s16 us16;
-typedef __attribute__((aligned(1))) s32 us32;
-typedef __attribute__((aligned(1))) s64 us64;
-
 // WARNING: OFF_T may be different from OS type off_t, depending on the value of
 // _FILE_OFFSET_BITS. This definition of OFF_T matches the ABI of system calls
 // like pread and mmap, as opposed to pread64 and mmap64.
@@ -160,6 +152,14 @@ using namespace __sanitizer;  // NOLINT
 # endif
 #endif  // _MSC_VER
 
+// Unaligned versions of basic types.
+typedef ALIGNED(1) u16 uu16;
+typedef ALIGNED(1) u32 uu32;
+typedef ALIGNED(1) u64 uu64;
+typedef ALIGNED(1) s16 us16;
+typedef ALIGNED(1) s32 us32;
+typedef ALIGNED(1) s64 us64;
+
 #if SANITIZER_WINDOWS
 typedef unsigned long DWORD;  // NOLINT
 typedef DWORD thread_return_t;





More information about the llvm-commits mailing list