From: Marco Costalba Date: Sat, 6 Oct 2012 07:09:27 +0000 (+0200) Subject: Fix fallouts from previous patch X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=ff9ca3e76eb6432dee8ed2442e3942b93d0f6ba5;ds=sidebyside Fix fallouts from previous patch These kind of arch specific code is really nasty to make it right becuase you need to verify on all the platforms. Now should compile properly also on ARM Reported by Jean-Francois. No functional change. --- diff --git a/src/Makefile b/src/Makefile index 2ad22de4..8c2c6a70 100644 --- a/src/Makefile +++ b/src/Makefile @@ -175,6 +175,7 @@ endif ifeq ($(COMP),mingw) comp=mingw CXX=g++ + prefetch = yes profile_prepare = gcc-profile-prepare profile_make = gcc-profile-make profile_use = gcc-profile-use @@ -184,6 +185,7 @@ endif ifeq ($(COMP),gcc) comp=gcc CXX=g++ + prefetch = yes profile_prepare = gcc-profile-prepare profile_make = gcc-profile-make profile_use = gcc-profile-use @@ -202,6 +204,7 @@ endif ifeq ($(COMP),clang) comp=clang CXX=clang++ + prefetch = yes profile_prepare = gcc-profile-prepare profile_make = gcc-profile-make profile_use = gcc-profile-use diff --git a/src/misc.cpp b/src/misc.cpp index 167eedb3..1e1b220c 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -227,7 +227,9 @@ void prefetch(char*) {} #else +# if defined(__INTEL_COMPILER) || defined(__ICL) || defined(_MSC_VER) # include +# endif void prefetch(char* addr) {