changeset 33444:fac64fecdb03

Automatically add "-fno-tree-vectorize" in CFLAGS. Automatic tree vectorization is enabled for high optimization levels (-O3 and above). However it have long history of breaking code. Latest been with gcc-4.6.0 and "-march=corei7-avx -O3". FFmpeg also disables it.
author iive
date Tue, 31 May 2011 20:45:39 +0000
parents 02214457c955
children 8f7f69fd01d7
files configure
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon May 30 21:31:31 2011 +0000
+++ b/configure	Tue May 31 20:45:39 2011 +0000
@@ -2587,6 +2587,7 @@
 fi
 
 if test "$cc_vendor" = "gnu" ; then
+  cflag_check -fno-tree-vectorize && CFLAGS="$CFLAGS -fno-tree-vectorize"
   cflag_check -Wundef && WARNFLAGS="-Wundef $WARNFLAGS"
   cflag_check -std=gnu99 && WARN_CFLAGS="-std=gnu99 $WARN_CFLAGS"
   cflag_check -Wdeclaration-after-statement && WARN_CFLAGS="-Wdeclaration-after-statement $WARN_CFLAGS"