From: Ian Lance Taylor Date: Fri, 30 May 2014 13:53:58 +0000 (+0000) Subject: runtime: Use _mm_pause rather than __builtin_ia32_pause. X-Git-Tag: releases/gcc-5.1.0~7191 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7480a39b770374d5355c60804dd8cc99a8a65a83;p=thirdparty%2Fgcc.git runtime: Use _mm_pause rather than __builtin_ia32_pause. Based on a patch from Peter Collingbourne. From-SVN: r211081 --- diff --git a/libgo/runtime/yield.c b/libgo/runtime/yield.c index 5c47719d48f7..442d346db7d8 100644 --- a/libgo/runtime/yield.c +++ b/libgo/runtime/yield.c @@ -14,6 +14,10 @@ #include #endif +#if defined (__i386__) || defined (__x86_64__) +#include +#endif + #include "runtime.h" /* Spin wait. */ @@ -26,7 +30,7 @@ runtime_procyield (uint32 cnt) for (i = 0; i < cnt; ++i) { #if defined (__i386__) || defined (__x86_64__) - __builtin_ia32_pause (); + _mm_pause (); #endif } }