diff --git a/bench/bench-string.cpp b/bench/bench-string.cpp index 2ec92958..85f7f26a 100644 --- a/bench/bench-string.cpp +++ b/bench/bench-string.cpp @@ -90,7 +90,6 @@ extern "C" { * optimizing too much the inline functions and literraly breaking * the benchmark by doing nothing. */ -//#define BARRIER(addr) ({ volatile void *p = (void*) &addr ; asm volatile("": "+r" (p) : :"memory"); }) #define BARRIER(addr) compiler_barrier((void*) addr) bool print_csv = false; diff --git a/bench/common.c b/bench/common.c index e05f3d8d..31ade56e 100644 --- a/bench/common.c +++ b/bench/common.c @@ -29,4 +29,6 @@ void compiler_barrier(void *p) { // Do nothing, but let the compiler thinks that we did. (void) p; + // Can be used for FLTO building + // asm volatile("": "+r" (p) : :"memory"); }