diff --git a/src/tests/cpu/sb_cpu.c b/src/tests/cpu/sb_cpu.c index 74116873..d9e5bde7 100644 --- a/src/tests/cpu/sb_cpu.c +++ b/src/tests/cpu/sb_cpu.c @@ -95,7 +95,7 @@ sb_event_t cpu_next_event(int thread_id) } /* helps to avoid compilers optimizing cpu_execute_event() away */ -static thread_local unsigned long long thread_count_primes; +static TLS unsigned long long thread_count_primes; int cpu_execute_event(sb_event_t *r, int thread_id) {