From 4c27afb595ac8e8a621ffc2bf8120f0d43c80384 Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Tue, 22 Jun 2010 14:20:46 -0700 Subject: [PATCH] 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. --- configure | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.3