From: Dan Dennedy Date: Sun, 22 May 2011 17:54:43 +0000 (-0700) Subject: Fix segfault in yadif with gcc 4.6 -O1 or -O2. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=f0a3d27e85eee67760ae35497504b92f7bed3046;p=mlt Fix segfault in yadif with gcc 4.6 -O1 or -O2. --- diff --git a/configure b/configure index 91c4ef5f..c84ca7a8 100755 --- 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)"