Don't use SSE2 optimisations by default; see note in configure.ac.
authorMarc Cannon <vyhdycokio@gmail.com>
Fri, 28 Dec 2012 23:35:14 +0000 (23:35 +0000)
committerMarc Cannon <vyhdycokio@gmail.com>
Sun, 30 Dec 2012 02:20:33 +0000 (02:20 +0000)
configure.ac

index fcc1e77..10cf46c 100644 (file)
@@ -235,7 +235,11 @@ fi
 AM_CONDITIONAL(HAVE_FFMPEG, test "$have_ffmpeg" = "yes")
 AM_CONDITIONAL(HAVE_LIBRESAMPLE, test "$have_libresample" = "yes")
 
-AC_ARG_WITH(sse2, AC_HELP_STRING([--with-sse2], [Enable SSE2 optimization]), with_sse2=$withval, with_sse2=$have_sse2)
+# Don't use SSE2 by default; some GCC versions misoptimise the code, which
+# causes Heisenbugs, and we don't want to inflict that pain unnecessarily.
+# Only supply it if the user specifically asks.
+
+AC_ARG_WITH(sse2, AC_HELP_STRING([--with-sse2], [Enable SSE2 optimization]), with_sse2=$withval, with_sse2=no)
 if test "$with_sse2" = "yes"; then
        CFLAGS="$CFLAGS -msse2"
        CXXFLAGS="$CXXFLAGS -msse2"