]> git.sesse.net Git - mlt/commitdiff
Fix segfault in yadif with gcc 4.6 -O1 or -O2.
authorDan Dennedy <dan@dennedy.org>
Sun, 22 May 2011 17:54:43 +0000 (10:54 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 22 May 2011 17:54:43 +0000 (10:54 -0700)
configure

index 91c4ef5f7533c7b78d93c69d818bab9e9d7a0958..c84ca7a84b8a1e365c13ce48a9c745bb2b12ed80 100755 (executable)
--- a/configure
+++ b/configure
@@ -70,8 +70,14 @@ build_config()
 
                [ "$arch" != "" ] && echo "TARGETARCH=-march=$arch"
                [ "$cpu" != "" ] && echo "TARGETCPU=-mcpu=$cpu"
-               [ "$optimisations" = "true" ] &&
-                       echo "OPTIMISATIONS=-O2 -pipe -fomit-frame-pointer"
+               if [ "$optimisations" = "true" ]
+               then
+                       echo "OPTIMISATIONS=-O2 -pipe"
+                       # Since gcc 4.6, this optimization enabled with -O1 causes filter_line_sse2 to crash.
+                       echo "OPTIMISATIONS+=-fno-tree-dominator-opts"
+                       # Since gcc 4.6, this optimization enabled with -O2 causes filter_line_sse2 to crash.
+                       echo "OPTIMISATIONS+=-fno-tree-pre"
+               fi
 
                echo "CFLAGS+=-Wall -DPIC \$(TARGETARCH) \$(TARGETCPU) \$(OPTIMISATIONS) \$(MMX_FLAGS) \$(SSE_FLAGS) \$(SSE2_FLAGS) \$(DEBUG_FLAGS) \$(LARGE_FILE)"