From: Jason Garrett-Glaser Date: Tue, 22 Jun 2010 21:20:46 +0000 (-0700) Subject: Use -fno-tree-vectorize to avoid miscompilation X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=4c27afb595ac8e8a621ffc2bf8120f0d43c80384;p=x264.git Use -fno-tree-vectorize to avoid miscompilation Some versions of gcc have been reported to attempt (and fail) to vectorize a loop in plane_expand_border. This results in a segfault, so to limit the possible effects of gcc's utter incompetence, we're turning off vectorization entirely. It's not like it ever did anything useful to begin with. --- diff --git a/configure b/configure index 3a38cb5c..24d15adf 100755 --- a/configure +++ b/configure @@ -628,6 +628,10 @@ else CFLAGS="-O3 -ffast-math $CFLAGS" fi +if cc_check '' -fno-tree-vectorize ; then + CFLAGS="$CFLAGS -fno-tree-vectorize" +fi + if cc_check "stdio.h" "" "fseeko(stdin,0,0);" ; then define fseek fseeko define ftell ftello