While playing with Clang and compiling a Gentoo system with it, I
realized that pixman is not compiling because of the use
of /__builtin_shuffle which according to LLVM mailing list, should not
be used directly [1]./

//
/As such, I investigated a bit, and made a patch for making it compile
compatible with Clang that I attach here in the hope that it is reviewed./
//
/Thanks,/
//
/David C. Manuelda/
//
/[1]: //http://lists.llvm.org/pipermail/cfe-dev/2017-August/055142.html
<http://lists.llvm.org/pipermail/cfe-dev/2017-August/055142.html>/
--- test/utils-prng.c.original	2018-08-07 09:04:57.690219651 +0000
+++ test/utils-prng.c	2018-08-07 09:28:33.619254582 +0000
@@ -199,7 +199,7 @@
         }
         else
         {
-#ifdef HAVE_GCC_VECTOR_EXTENSIONS
+#if defined(HAVE_GCC_VECTOR_EXTENSIONS) && defined(__GNUC__) && !defined(__clang__)
             const uint8x16 bswap_shufflemask =
             {
                 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Pixman mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/pixman

Reply via email to