llvm-project/compiler-rt/lib
Reid Kleckner 652d70f3e1 Fix most MSVC warnings in compiler-rt profiling library
Here's the warnings and how they were fixed:

- InstrProfilingUtil.c(110): warning C4013: '_open_osfhandle' undefined; assuming extern returning int

Include io.h to get the prototype.

- warning C4005: 'FILE_MAP_EXECUTE': macro redefinition

Stop trying to support pre-XP versions of Windows, don't attempt to
define this macro.

- InstrProfilingWriter.c(271): warning C4221: nonstandard extension used: 'Data': cannot be initialized using address of automatic variable 'Header'
- InstrProfilingWriter.c(275): warning C4221: nonstandard extension used: 'Data': cannot be initialized using address of automatic variable 'Zeroes'

Turn this warning off. This is definitely legal in C++, all compilers
accept it, and I only have room for half of one language standard in my
brain.

- InstrProfilingValue.c(320): warning C4113: 'uint32_t (__cdecl *)()' differs in parameter lists from 'uint32_t (__cdecl *)(void)'

Fix this with an explicit (void) in the prototype.

- InstrProfilingMerge.c.obj : warning LNK4006: _VPMergeHook already defined in InstrProfilingMergeFile.c.obj; second definition ignored

Last remaining warning. This is from linking a selectany definition with
a strong definition. We need to sort out weak symbols in compiler-rt in
general, though.

llvm-svn: 273026
2016-06-17 18:12:50 +00:00
..
BlocksRuntime Move tests for BlocksRuntime and builtins to corresponding directories under test/ 2014-02-14 09:47:31 +00:00
asan [sanitizers] introduce yet another API function: __sanitizer_install_malloc_and_free_hooks 2016-06-16 20:06:06 +00:00
builtins [builtins] Make SOFT_FP versions of floatdidf and floatundidf compile 2016-06-13 15:24:16 +00:00
cfi [sancov] common flags initialization. 2016-03-18 19:28:07 +00:00
dfsan [sanitizer] [SystemZ] Abort if the kernel might be vulnerable to CVE-2016-2143. 2016-04-27 17:42:00 +00:00
esan [esan|cfrag] Add the struct field size array in StructInfo 2016-06-17 04:50:11 +00:00
interception This patch attempts to primitive support for Win64 asan 2016-06-06 18:09:54 +00:00
lsan [sanitizers] introduce yet another API function: __sanitizer_install_malloc_and_free_hooks 2016-06-16 20:06:06 +00:00
msan [sanitizers] introduce yet another API function: __sanitizer_install_malloc_and_free_hooks 2016-06-16 20:06:06 +00:00
profile Fix most MSVC warnings in compiler-rt profiling library 2016-06-17 18:12:50 +00:00
safestack [compiler-rt] [safestack] Enable for aarch64 2015-12-11 17:38:38 +00:00
sanitizer_common Fix some warnings in the MSVC build 2016-06-17 17:48:52 +00:00
scudo [sanitizer] Initial implementation of a Hardened Allocator 2016-06-07 01:20:26 +00:00
stats [Sanitizer] Introduce ListOfModules object and use it to replace GetListOfModules(). 2016-02-22 18:52:51 +00:00
tsan [msan] Intercept send/sendto/sendmsg. 2016-06-17 00:43:11 +00:00
ubsan UBSan: crash less often on corrupted Vtables. 2016-06-02 18:36:12 +00:00
CMakeLists.txt [sanitizer] Initial implementation of a Hardened Allocator 2016-06-07 01:20:26 +00:00
Makefile.mk Remove autoconf support for building runtime libraries. 2016-01-26 21:31:12 +00:00