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
... | ... |
@@ -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 |