From 92fe265abe943070679df453616f2730f51bf80f Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Tue, 28 Apr 2015 19:25:06 +0200 Subject: [PATCH] - Clang 3.5.1+ fixed the compiler bug in ACS code. Referring to commit 1c96039d7a1146a50b52335e0af8623f97f98415 . --- src/p_acs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index 753d7728f..011dc8092 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -2302,8 +2302,8 @@ void FBehavior::LoadScriptsDirectory () } // [EP] Clang 3.5.0 optimizer miscompiles this function and causes random -// crashes in the program. I hope that Clang 3.5.x will fix this. -#if defined(__clang__) && __clang_major__ == 3 && __clang_minor__ >= 5 +// crashes in the program. This is fixed in 3.5.1 onwards. +#if defined(__clang__) && __clang_major__ == 3 && __clang_minor__ == 5 && __clang_patchlevel__ == 0 asm("" : "+g" (NumScripts)); #endif for (i = 0; i < NumScripts; ++i)