comparison configure @ 10391:eb1f8a10ce62

full-featured gcc ppc optimization (601,603,604,740,750,745,755,7400,7410,7450)
author alex
date Mon, 07 Jul 2003 16:26:27 +0000
parents 5455ac90c5d0
children c2fc1c310699
comparison
equal deleted inserted replaced
10390:9e9528fb8329 10391:eb1f8a10ce62
865 _target_arch='TARGET_ARCH_POWERPC = yes' 865 _target_arch='TARGET_ARCH_POWERPC = yes'
866 iproc='ppc' 866 iproc='ppc'
867 proc='' 867 proc=''
868 _march='' 868 _march=''
869 _mcpu='' 869 _mcpu=''
870 # XXX: this should be removed imho...
870 cpu750=`$_cpuinfo | grep "cpu.*750"` 871 cpu750=`$_cpuinfo | grep "cpu.*750"`
871 if test -n "$cpu750"; then 872 if test -n "$cpu750"; then
872 _march='-mcpu=750' 873 _march='-mcpu=750'
873 _mcpu='-mtune=750' 874 _mcpu='-mtune=750'
874 fi 875 fi
875 if linux ; then 876 if linux ; then
877 proc=`$_cpuinfo | grep 'cpu' | cut -d ':' -f 2 | cut -d ',' -f 1 | cut -b 2- | head -1`
876 if test -n "`$_cpuinfo | grep altivec`"; then 878 if test -n "`$_cpuinfo | grep altivec`"; then
877 _altivec=yes 879 _altivec=yes
878 fi 880 fi
879 fi 881 fi
880 if darwin ; then 882 if darwin ; then
881 if [ `sysctl -n hw.vectorunit` -eq 1 ]; then 883 if [ `sysctl -n hw.vectorunit` -eq 1 ]; then
882 _altivec=yes 884 _altivec=yes
883 fi 885 fi
886 fi
887 if test -n "$proc"; then
888 case "$proc" in
889 601) _march='-mcpu=601' _mcpu='-mtune=601' ;;
890 603) _march='-mcpu=603' _mcpu='-mtune=603' ;;
891 603e|603ev) _march='-mcpu=603e' _mcpu='-mtune=603e' ;;
892 604|604e|604r|604ev) _march='-mcpu=604' _mcpu='-mtune=604' ;;
893 740|740/750|745/755) _march='-mcpu=740' _mcpu='-mtune=740' ;;
894 750|750CX) _march='-mcpu=750' _mcpu='-mtune=750' ;;
895 *) ;;
896 esac
897 # gcc 3.1(.1) and up supports 7400 and 7450
898 if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "1"; then
899 case "$proc" in
900 7400*|7410*) _march='-mcpu=7400' _mcpu='-mtune=7400' ;;
901 7450*) _march='-mcpu=7450' _mcpu='-mtune=7450' ;;
902 *) ;;
903 esac
904 fi
884 fi 905 fi
885 ;; 906 ;;
886 907
887 alpha) 908 alpha)
888 _def_arch='#define ARCH_ALPHA 1' 909 _def_arch='#define ARCH_ALPHA 1'