http://lists.llvm.org/pipermail/cfe-dev/2017-August/055140.html --- test/utils-prng.c.orig 2017-11-25 14:38:28.000000000 -0800 +++ test/utils-prng.c 2017-11-25 14:39:16.000000000 -0800 @@ -27,6 +27,10 @@ #include "utils.h" #include "utils-prng.h" +#ifndef __has_builtin +#define __has_builtin(x) 0 +#endif + #if defined(HAVE_GCC_VECTOR_EXTENSIONS) && defined(__SSE2__) #include <xmmintrin.h> #endif @@ -199,7 +203,7 @@ randmemset_internal (prng_t } else { -#ifdef HAVE_GCC_VECTOR_EXTENSIONS +#if defined(HAVE_GCC_VECTOR_EXTENSIONS) && __has_builtin(__builtin_shuffle) const uint8x16 bswap_shufflemask = { 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12