From: Jose Fonseca Date: Sun, 9 Aug 2015 10:21:03 +0000 (+0100) Subject: gallium: GCC 4.9 allows to include tmmintrin.h without -msse3. X-Git-Tag: upstream/17.1.0~17016 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb643db30e1bdf5171d0a012674016c317925b6e;p=platform%2Fupstream%2Fmesa.git 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. --- 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