Commits

Ryan Schmidt authored eba0b51ea33
libpixman-devel: Address build failure in pixman tests
No tags

graphics/libpixman-devel/files/patch-test-utils-prng.c.diff

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

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut