From 05e3be6503d32c96c7fd24748349a89f261afe7e Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Mon, 28 Apr 2014 15:08:03 +0200 Subject: [PATCH] Fix non-GCC (and non-thread-safe!) case. --- lib/Interpreter/IncrementalExecutor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Interpreter/IncrementalExecutor.cpp b/lib/Interpreter/IncrementalExecutor.cpp index 8fcee7ee..4e16d916 100644 --- a/lib/Interpreter/IncrementalExecutor.cpp +++ b/lib/Interpreter/IncrementalExecutor.cpp @@ -30,9 +30,9 @@ static int boost__detail__atomic_exchange_and_add( int * pw, int dv ) // *pw += dv; // return r; +#if defined( __GNUC__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) ) int r; -#if defined( __GNUC__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) ) __asm__ __volatile__ ( "lock\n\t"