comparison configure @ 15707:8c7268bfe792

AMD-64's version of Suse ships a version of 3.3 hacked with broken backported patches from gcc 3.4, which broke CPU + GCC version detection. Patch by Corey Hickey < bugfood - ml WOOP fatooh POUM org>
author gpoirier
date Thu, 09 Jun 2005 21:14:36 +0000
parents a398c21242bf
children 97402fff252e
comparison
equal deleted inserted replaced
15706:c6bedab03c97 15707:8c7268bfe792
805 else 805 else
806 proc=athlon # TODO: should the Duron Spitfire be considered a Thunderbird instead? 806 proc=athlon # TODO: should the Duron Spitfire be considered a Thunderbird instead?
807 fi 807 fi
808 ;; 808 ;;
809 15) iproc=686 809 15) iproc=686
810 # athlon64 cpu-type only supported in gcc >= 3.4.0, but that will be 810 # k8 cpu-type only supported in gcc >= 3.4.0, but that will be
811 # caught and remedied in the optimation tests below. 811 # caught and remedied in the optimization tests below.
812 proc=athlon64 812 proc=k8
813 ;; 813 ;;
814 814
815 *) proc=athlon-xp iproc=686 ;; 815 *) proc=athlon-xp iproc=686 ;;
816 esac 816 esac
817 ;; 817 ;;
962 x86_64|amd64) 962 x86_64|amd64)
963 _def_arch='#define ARCH_X86_64 1' 963 _def_arch='#define ARCH_X86_64 1'
964 _target_arch='TARGET_ARCH_X86_64 = yes' 964 _target_arch='TARGET_ARCH_X86_64 = yes'
965 iproc='x86_64' 965 iproc='x86_64'
966 966
967 # athlon64 cpu-type only supported in gcc >= 3.4.0 967 # gcc >= 3.4.0 doesn't support -mcpu, we have to use -mtune instead
968 # also, gcc >= 3.4.0 doesn't support -mcpu, we have to use -mtune instead
969 if test "$cc_vendor" = "gnu" && test "$_cc_major" -gt 3 -o "$_cc_major" -eq 3 -a "$_cc_minor" -ge 4 ; then 968 if test "$cc_vendor" = "gnu" && test "$_cc_major" -gt 3 -o "$_cc_major" -eq 3 -a "$_cc_minor" -ge 4 ; then
970 proc=athlon64
971 cpuopt=-mtune 969 cpuopt=-mtune
972 else 970 else
973 proc=athlon-xp
974 cpuopt=-mcpu 971 cpuopt=-mcpu
975 fi 972 fi
976 973 # k8 cpu-type only supported in gcc >= 3.4.0, but that will be
974 # caught and remedied in the optimization tests below.
975 proc=k8
977 976
978 echocheck "GCC & CPU optimization abilities" 977 echocheck "GCC & CPU optimization abilities"
979 cat > $TMPC << EOF 978 cat > $TMPC << EOF
980 int main(void) { return 0; } 979 int main(void) { return 0; }
981 EOF 980 EOF