From bfec753d0da378271e029b783624b81845745285 Mon Sep 17 00:00:00 2001 From: Robin KAY Date: Sat, 22 May 2004 23:38:13 +0000 Subject: Removed -funroll-all-loops from SPARC and PPC targets as it negatively affected performance. CVS patchset: 6577 CVS date: 2004/05/22 23:38:13 --- ChangeLog | 2 ++ configure.ac | 18 +++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index cc11c7580..2cc6c07c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ * fixed compilation of libmad on AMD64 * fixed double-free in the yuv decoder (fixes crashes when switching away from v4l:/ MRLs) + * removed -funroll-all-loops from SPARC and PPC targets as it negatively + affected performance xine-lib (1-rc4a) * audio out now uses a more user friendly "Speaker arrangement" config item; diff --git a/configure.ac b/configure.ac index fc3c6e1db..315b2677c 100644 --- a/configure.ac +++ b/configure.ac @@ -1622,7 +1622,7 @@ case "$host_or_hostalias" in ;; ppc-*-linux* | powerpc-*) - CFLAGS="-O3 -pipe -fomit-frame-pointer $m_wm $m_psb -fexpensive-optimizations $f_si $f_nsa -ffast-math -funroll-loops -funroll-all-loops -finline-functions $CFLAGS" + CFLAGS="-O3 -pipe -fomit-frame-pointer $m_wm $m_psb -fexpensive-optimizations $f_si $f_nsa -ffast-math -funroll-loops -finline-functions $CFLAGS" DEBUG_CFLAGS="-O3 $DEBUG_CFLAGS" dnl avoid ppc compilation crash AS="$CC" @@ -1647,8 +1647,8 @@ case "$host_or_hostalias" in ;; esac - CFLAGS="-O3 $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions $CFLAGS" - DEBUG_CFLAGS="-O $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions $DEBUG_CFLAGS" + CFLAGS="-O3 $cpu_cflags -funroll-loops -finline-functions $CFLAGS" + DEBUG_CFLAGS="-O $cpu_cflags -funroll-loops -finline-functions $DEBUG_CFLAGS" AC_DEFINE_UNQUOTED(FPM_SPARC,,[Define to select libmad fixed point arithmetic implementation]) AC_DEFINE_UNQUOTED(ARCH_SPARC,,[Define this if you're running SPARC architecture]) @@ -1680,19 +1680,19 @@ case "$host_or_hostalias" in *) cpu_cflags= ;; esac - cc_optimize_cflags="-O3 $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions" - cc_debug_cflags="-O $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions" + cc_optimize_cflags="-O3 $cpu_cflags -funroll-loops -finline-functions" + cc_debug_cflags="-O $cpu_cflags -funroll-loops -finline-functions" AC_DEFINE_UNQUOTED(FPM_SPARC,,[Define to select libmad fixed point arithmetic implementation]) dnl uses gnu c asm extensions AC_DEFINE_UNQUOTED(ARCH_SPARC,,[Define this if you're running SPARC architecture]) else case `uname -m` in - sun4c) cpu_cflags="-xarch=v7 -xchip=ultra2" ;; - sun4m) cpu_cflags="-xarch=v8 -xchip=ultra2" ;; - sun4u) cpu_cflags="-xarch=v8plusa -xchip=ultra2" ;; + sun4c) cpu_cflags="-xarch=v7" ;; + sun4m) cpu_cflags="-xarch=v8" ;; + sun4u) cpu_cflags="-xarch=v8plusa" ;; esac - cc_optimize_cflags="-xO5 $cpu_cflags -xCC" + cc_optimize_cflags="-fast $cpu_cflags -xCC" cc_debug_cflags="-O" AC_DEFINE_UNQUOTED(FPM_64BIT,,[Define to select libmad fixed point arithmetic implementation]) dnl use portable version with non-gcc fi -- cgit v1.2.3