# HG changeset patch # User iive # Date 1306874739 0 # Node ID fac64fecdb03a629fcaee52a5c20c2c125f8e15f # Parent 02214457c955664c2ab6f5c73f13a9d961a540d8 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. diff -r 02214457c955 -r fac64fecdb03 configure --- 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"