[x264-devel] commit: Use -fno-tree-vectorize to avoid miscompilation ( Jason Garrett-Glaser )
git at videolan.org
git at videolan.org
Fri Jun 25 09:58:11 CEST 2010
x264 | branch: stable | Jason Garrett-Glaser <darkshikari at gmail.com> | Tue Jun 22 14:20:46 2010 -0700| [4c27afb595ac8e8a621ffc2bf8120f0d43c80384] | committer: Jason Garrett-Glaser
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.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=4c27afb595ac8e8a621ffc2bf8120f0d43c80384
---
configure | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 3a38cb5..24d15ad 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
More information about the x264-devel
mailing list