From 973859f5230e77beea7bb59dc081870689d6d191 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= <mans@mansr.com>
Date: Wed, 15 Jul 2009 19:02:07 +0000
Subject: [PATCH] Disable gcc auto-vectorisation

The auto-vectoriser in gcc is enabled by default at -O3 since version
4.3.  However, it provides no speed benefit, but does produce incorrect
code on many targets.  Disabling it for gcc should give more reliable
builds.

If the adventurous want it back, they can edit the makefile themselves.

Originally committed as revision 19439 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 configure | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure b/configure
index d7acfdb2db7..0a8be7f7bb9 100755
--- a/configure
+++ b/configure
@@ -2335,6 +2335,8 @@ elif enabled ccc; then
     add_cflags -msg_disable nomainieee
     add_cflags -msg_disable ptrmismatch1
     add_cflags -msg_disable unreachcode
+elif enabled gcc; then
+    check_cflags -fno-tree-vectorize
 fi
 
 # PIC flags for shared library objects where they are needed
-- 
GitLab