From f0a3d27e85eee67760ae35497504b92f7bed3046 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Sun, 22 May 2011 10:54:43 -0700 Subject: [PATCH] Fix segfault in yadif with gcc 4.6 -O1 or -O2. --- configure | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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)" -- 2.39.2