[Mplayer-cvslog] CVS: main configure,1.832,1.833
Alex Beregszaszi
alex at mplayerhq.hu
Sun Jan 25 19:07:45 CET 2004
Update of /cvsroot/mplayer/main
In directory mail:/tmp/cvs-serv1373
Modified Files:
configure
Log Message:
ppc970 support and extra optim flags for ppc. Patch by Romain Dolbeau
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.832
retrieving revision 1.833
diff -u -r1.832 -r1.833
--- configure 22 Jan 2004 14:38:00 -0000 1.832
+++ configure 25 Jan 2004 18:07:43 -0000 1.833
@@ -604,6 +604,10 @@
_cpuinfo="TOOLS/cpuinfo"
fi
+# Additional optimizations flags.
+# Putting them in _march or _mpcpu pollute configure output.
+_optim_flags="-ffast-math -fomit-frame-pointe "
+
case "$host_arch" in
i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686)
_def_arch="#define ARCH_X86 1"
@@ -897,11 +901,21 @@
# gcc 3.1(.1) and up supports 7400 and 7450
if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "1"; then
case "$proc" in
- 7400*|7410*) _march='-mcpu=7400' _mcpu='-mtune=7400' ;;
- 7450*|7455*) _march='-mcpu=7450' _mcpu='-mtune=7450' ;;
+ 7400*|7410*) _march='-mcpu=7400' _mcpu='-mtune=7400'
+ _optim_flags="$_optim_flags -fsched-interblock -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15" ;;
+ 7450*|7455*) _march='-mcpu=7450' _mcpu='-mtune=7450'
+ _optim_flags="$_optim_flags -fsched-interblock -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15" ;;
*) ;;
esac
fi
+ # gcc 3.3 and up supports 970
+ if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3"; then
+ case "$proc" in
+ 970*) _march='-mcpu=970' _mcpu='-mtune=970'
+ _optim_flags="$_optim_flags -fsched-interblock -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15 -mpowerpc64" ;;
+ *) ;;
+ esac
+ fi
fi
if test -n "$_mcpu"; then
@@ -5631,16 +5645,16 @@
# Checking for CFLAGS
_stripbinaries=yes
if test "$_profile" != "" || test "$_debug" != "" ; then
- CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile"
+ CFLAGS="-W -Wall -O2 $_march $_mcpu $_optim_flags $_debug $_profile"
if test "$_cc_major" -ge "3" ; then
CFLAGS=`echo "$CFLAGS" | sed -e 's/\(-Wall\)/\1 -Wno-unused-parameter/'`
fi
_stripbinaries=no
elif test -z "$CFLAGS" ; then
if test "$host_arch" != "mips" ; then
- CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer"
+ CFLAGS="-O4 $_march $_mcpu $_optim_flags -pipe"
else
- CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer"
+ CFLAGS="-O4 $_march $_mcpu $_optim_flags"
fi
# always compile with '-g' if .developer:
if test -f ".developer" ; then
More information about the MPlayer-cvslog
mailing list