Browse code

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

Måns Rullgård authored on 2009/07/16 04:02:07
Showing 1 changed files
... ...
@@ -2335,6 +2335,8 @@ elif enabled ccc; then
2335 2335
     add_cflags -msg_disable nomainieee
2336 2336
     add_cflags -msg_disable ptrmismatch1
2337 2337
     add_cflags -msg_disable unreachcode
2338
+elif enabled gcc; then
2339
+    check_cflags -fno-tree-vectorize
2338 2340
 fi
2339 2341
 
2340 2342
 # PIC flags for shared library objects where they are needed