Let ICC 13 build Qt again if the system compiler is GCC 4.7.

GCC 4.7 has new builtins in x86intrin.h that ICC 13 does not (yet)
understand, causing compilation errors.

/usr/lib/gcc/x86_64-redhat-linux/4.7.2/include/adxintrin.h(36): error: identifier "__builtin_ia32_addcarryx_u32" is undefined

Change-Id: I1845ccc3bf3ac15aef063bc3f998c5839fa51866
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Thiago Macieira 2013-01-23 12:33:42 -08:00 committed by The Qt Project
parent 29a78d48d0
commit 4b6bd14063

View File

@ -141,7 +141,8 @@ QT_BEGIN_HEADER
#endif
// other x86 intrinsics
#if defined(QT_COMPILER_SUPPORTS_AVX) && defined(Q_CC_GNU)
#if defined(QT_COMPILER_SUPPORTS_AVX) && defined(Q_CC_GNU) && \
(!defined(Q_CC_INTEL) || (__GNUC__ * 100 + __GNUC_MINOR__ < 407))
#define QT_COMPILER_SUPPORTS_X86INTRIN
#include <x86intrin.h>
#endif