Mesa (master): gallium: GCC 4.9 allows to include tmmintrin.h without -msse3.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sun Aug 9 10:33:11 UTC 2015


Module: Mesa
Branch: master
Commit: eb643db30e1bdf5171d0a012674016c317925b6e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eb643db30e1bdf5171d0a012674016c317925b6e

Author: Jose Fonseca <jfonseca at vmware.com>
Date:   Sun Aug  9 11:21:03 2015 +0100

gallium: GCC 4.9 allows to include tmmintrin.h without -msse3.

Fixes build with MinGW x86_64 build with GCC 4.9, due to conflicting
definition _mm_shuffle_epi8 of u_sse.h and system headers.

Trivial.

---

 src/gallium/include/pipe/p_config.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h
index 794aabe..ac14f86 100644
--- a/src/gallium/include/pipe/p_config.h
+++ b/src/gallium/include/pipe/p_config.h
@@ -100,8 +100,8 @@
 #else
 #define PIPE_ARCH_SSE
 #endif
-#if defined(PIPE_CC_GCC) && !defined(__SSSE3__)
-/* #warning SSE3 support requires -msse3 compiler options */
+#if defined(PIPE_CC_GCC) && (__GNUC__ * 100 + __GNUC_MINOR__) < 409 && !defined(__SSSE3__)
+/* #warning SSE3 support requires -msse3 compiler options before GCC 4.9 */
 #else
 #define PIPE_ARCH_SSSE3
 #endif




More information about the mesa-commit mailing list