X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/94ba3e61c1cf68520a2ddc8706aad9da7f54f37e..68789b70e7a97bf748e0829eceeb4e2aca2cc490:/src/kernel/context/context_private.hpp diff --git a/src/kernel/context/context_private.hpp b/src/kernel/context/context_private.hpp index c2b809ac33..8a47f56e00 100644 --- a/src/kernel/context/context_private.hpp +++ b/src/kernel/context/context_private.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2017-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2017-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -8,16 +8,16 @@ #include "src/internal_config.h" -#if HAVE_SANITIZE_ADDRESS_FIBER_SUPPORT +#if HAVE_SANITIZER_ADDRESS_FIBER_SUPPORT #include -#define ASAN_EVAL(expr) (expr) +#define ASAN_ONLY(expr) expr #define ASAN_START_SWITCH(fake_stack_save, bottom, size) __sanitizer_start_switch_fiber(fake_stack_save, bottom, size) #define ASAN_FINISH_SWITCH(fake_stack_save, bottom_old, size_old) \ __sanitizer_finish_switch_fiber(fake_stack_save, bottom_old, size_old) #else -#define ASAN_EVAL(expr) (void)0 +#define ASAN_ONLY(expr) (void)0 #define ASAN_START_SWITCH(fake_stack_save, bottom, size) (void)0 -#define ASAN_FINISH_SWITCH(fake_stack_save, bottom_old, size_old) (void)(fake_stack_save) +#define ASAN_FINISH_SWITCH(fake_stack_save, bottom_old, size_old) (void)0 #endif #endif