From: Arnaud Giersch Date: Mon, 24 Sep 2018 07:02:52 +0000 (+0200) Subject: Cosmetic rename. X-Git-Tag: v3_21~53 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/323010d1c247d0097b2cdc79d1da143846461999?hp=edb6af844776d5c67dc71b6e4e00769eb7158ff0 Cosmetic rename. --- diff --git a/src/kernel/context/ContextBoost.hpp b/src/kernel/context/ContextBoost.hpp index 899de64b4b..8031685067 100644 --- a/src/kernel/context/ContextBoost.hpp +++ b/src/kernel/context/ContextBoost.hpp @@ -55,7 +55,7 @@ private: boost::context::detail::fcontext_t fc_; typedef boost::context::detail::transfer_t arg_type; #endif -#if HAVE_SANITIZE_ADDRESS_FIBER_SUPPORT +#if HAVE_SANITIZER_ADDRESS_FIBER_SUPPORT const void* asan_stack_ = nullptr; size_t asan_stack_size_ = 0; BoostContext* asan_ctx_ = nullptr; diff --git a/src/kernel/context/ContextRaw.hpp b/src/kernel/context/ContextRaw.hpp index d7d48eb8f8..fb17bc6176 100644 --- a/src/kernel/context/ContextRaw.hpp +++ b/src/kernel/context/ContextRaw.hpp @@ -40,7 +40,7 @@ private: /** pointer to top the stack stack */ void* stack_top_ = nullptr; -#if HAVE_SANITIZE_ADDRESS_FIBER_SUPPORT +#if HAVE_SANITIZER_ADDRESS_FIBER_SUPPORT const void* asan_stack_ = nullptr; size_t asan_stack_size_ = 0; RawContext* asan_ctx_ = nullptr; diff --git a/src/kernel/context/ContextUnix.hpp b/src/kernel/context/ContextUnix.hpp index 1f9de414f7..88976a8253 100644 --- a/src/kernel/context/ContextUnix.hpp +++ b/src/kernel/context/ContextUnix.hpp @@ -41,7 +41,7 @@ private: void* stack_ = nullptr; /* the thread stack */ ucontext_t uc_; /* the ucontext that executes the code */ -#if HAVE_SANITIZE_ADDRESS_FIBER_SUPPORT +#if HAVE_SANITIZER_ADDRESS_FIBER_SUPPORT const void* asan_stack_ = nullptr; size_t asan_stack_size_ = 0; UContext* asan_ctx_ = nullptr; diff --git a/src/kernel/context/context_private.hpp b/src/kernel/context/context_private.hpp index 756aba9838..b682232eb8 100644 --- a/src/kernel/context/context_private.hpp +++ b/src/kernel/context/context_private.hpp @@ -8,7 +8,7 @@ #include "src/internal_config.h" -#if HAVE_SANITIZE_ADDRESS_FIBER_SUPPORT +#if HAVE_SANITIZER_ADDRESS_FIBER_SUPPORT #include #define ASAN_ONLY(expr) expr #define ASAN_START_SWITCH(fake_stack_save, bottom, size) __sanitizer_start_switch_fiber(fake_stack_save, bottom, size) diff --git a/src/smpi/internals/smpi_memory.cpp b/src/smpi/internals/smpi_memory.cpp index 47d7705416..b09a4f45ec 100644 --- a/src/smpi/internals/smpi_memory.cpp +++ b/src/smpi/internals/smpi_memory.cpp @@ -88,7 +88,7 @@ static void smpi_get_executable_global_size() } #endif -#if HAVE_SANITIZE_ADDRESS +#if HAVE_SANITIZER_ADDRESS #include static void* asan_safe_memcpy(void* dest, void* src, size_t n) { diff --git a/tools/cmake/GCCFlags.cmake b/tools/cmake/GCCFlags.cmake index 8f9f21bfa1..2b51c858f6 100644 --- a/tools/cmake/GCCFlags.cmake +++ b/tools/cmake/GCCFlags.cmake @@ -217,12 +217,12 @@ if(enable_address_sanitizer) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fno-omit-frame-pointer") set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -fsanitize=address") set(TESH_OPTION --enable-sanitizers) - try_compile(HAVE_SANITIZE_ADDRESS ${CMAKE_BINARY_DIR} ${CMAKE_HOME_DIRECTORY}/tools/cmake/test_prog/prog_asan.cpp) - try_compile(HAVE_SANITIZE_ADDRESS_FIBER_SUPPORT ${CMAKE_BINARY_DIR} ${CMAKE_HOME_DIRECTORY}/tools/cmake/test_prog/prog_asan.cpp + try_compile(HAVE_SANITIZER_ADDRESS ${CMAKE_BINARY_DIR} ${CMAKE_HOME_DIRECTORY}/tools/cmake/test_prog/prog_asan.cpp) + try_compile(HAVE_SANITIZER_ADDRESS_FIBER_SUPPORT ${CMAKE_BINARY_DIR} ${CMAKE_HOME_DIRECTORY}/tools/cmake/test_prog/prog_asan.cpp COMPILE_DEFINITIONS -DCHECK_FIBER_SUPPORT) else() - set(HAVE_SANITIZE_ADDRESS FALSE CACHE INTERNAL "") - set(HAVE_SANITIZE_ADDRESS_FIBER_SUPPORT FALSE CACHE INTERNAL "") + set(HAVE_SANITIZER_ADDRESS FALSE CACHE INTERNAL "") + set(HAVE_SANITIZER_ADDRESS_FIBER_SUPPORT FALSE CACHE INTERNAL "") endif() if(enable_thread_sanitizer) diff --git a/tools/cmake/src/internal_config.h.in b/tools/cmake/src/internal_config.h.in index 9612fcb8e6..ae696840ff 100644 --- a/tools/cmake/src/internal_config.h.in +++ b/tools/cmake/src/internal_config.h.in @@ -25,8 +25,8 @@ #cmakedefine01 HAVE_VALGRIND_H /* Address Sanitizer */ -#cmakedefine01 HAVE_SANITIZE_ADDRESS -#cmakedefine01 HAVE_SANITIZE_ADDRESS_FIBER_SUPPORT +#cmakedefine01 HAVE_SANITIZER_ADDRESS +#cmakedefine01 HAVE_SANITIZER_ADDRESS_FIBER_SUPPORT /* Time portability */ /* Function gettimeofday */