Revision e939cedd

View differences:

configure
1113 1113

  
1114 1114
vis_deps="sparc"
1115 1115

  
1116
x86_64_select="cmov fast_cmov"
1116 1117
amd3dnow_deps="mmx"
1117 1118
amd3dnowext_deps="amd3dnow"
1118 1119
mmx_deps="x86"
......
1120 1121
sse_deps="mmx"
1121 1122
ssse3_deps="sse"
1122 1123

  
1124
fast_64bit_if_any="alpha ia64 mips64 parisc64 ppc64 sparc64 x86_64"
1123 1125
fast_clz_if_any="alpha armv5te avr32 mips ppc x86"
1126
fast_unaligned_if_any="armv6 ppc x86"
1124 1127

  
1125 1128
need_memalign="altivec neon sse"
1126 1129
inline_asm_deps="!tms470"
......
1767 1770
    test "${cpu:-host}" = host && die "--cpu=host not supported with compiler $cc"
1768 1771
fi
1769 1772

  
1773
# Deal with common $arch aliases
1774
case "$arch" in
1775
    arm*)
1776
        arch="arm"
1777
    ;;
1778
    mips|mipsel|IP*)
1779
        arch="mips"
1780
    ;;
1781
    mips64)
1782
        arch="mips"
1783
        subarch="mips64"
1784
    ;;
1785
    parisc|hppa)
1786
        arch="parisc"
1787
    ;;
1788
    parisc64|hppa64)
1789
        arch="parisc"
1790
        subarch="parisc64"
1791
    ;;
1792
    "Power Macintosh"|ppc|powerpc)
1793
        arch="ppc"
1794
    ;;
1795
    ppc64)
1796
        arch="ppc"
1797
        subarch="ppc64"
1798
    ;;
1799
    s390|s390x)
1800
        arch="s390"
1801
    ;;
1802
    sh4|sh)
1803
        arch="sh4"
1804
    ;;
1805
    sun4u|sparc64)
1806
        arch="sparc"
1807
        subarch="sparc64"
1808
    ;;
1809
    i[3-6]86|i86pc|BePC|x86_64|amd64)
1810
        arch="x86"
1811
    ;;
1812
esac
1813

  
1814
is_in $arch $ARCH_LIST || echo "WARNING: unknown arch $arch"
1815

  
1770 1816
# Add processor-specific flags
1771 1817
case $cpu in
1772 1818
    601|ppc601|PowerPC601)
......
1820 1866
    ;;
1821 1867
    arm11*|cortex*)
1822 1868
        cpuflags="-mcpu=$cpu"
1823
        enable fast_unaligned
1824 1869
    ;;
1825 1870
    armv[67]*)
1826 1871
        cpuflags="-march=$cpu"
1827
        enable fast_unaligned
1828 1872
    ;;
1829 1873
    armv*)
1830 1874
        cpuflags="-march=$cpu"
......
1892 1936
check_host_cflags -std=c99
1893 1937

  
1894 1938
case "$arch" in
1895
    alpha)
1896
        arch="alpha"
1897
        enable fast_64bit
1898
        check_cflags -mieee
1899
        spic=$shared
1900
    ;;
1901
    arm|armv[4567]*l)
1902
        arch="arm"
1903
    ;;
1904
    avr32)
1905
    ;;
1906
    bfin)
1907
        arch="bfin"
1908
    ;;
1909
    ia64)
1910
        arch="ia64"
1911
        enable fast_64bit
1912
        spic=$shared
1913
        # HACK: currently fails to build if .bss is > 4MB and shared libs are built
1914
        enabled shared && enable_weak hardcoded_tables
1915
    ;;
1916
    m68k)
1917
        arch="m68k"
1918
    ;;
1919
    mips|mipsel|IP*)
1920
        arch="mips"
1921
        spic=$shared
1922
    ;;
1923
    mips64)
1924
        arch="mips"
1925
        subarch="mips64"
1926
        enable fast_64bit
1927
        spic=$shared
1928
    ;;
1929
    parisc|hppa)
1930
        arch="parisc"
1931
        spic=$shared
1932
    ;;
1933
    parisc64|hppa64)
1934
        arch="parisc"
1935
        enable fast_64bit
1936
        spic=$shared
1937
    ;;
1938
    "Power Macintosh"|ppc|powerpc)
1939
        arch="ppc"
1940
        enable fast_unaligned
1941
    ;;
1942
    ppc64)
1943
        arch="ppc"
1944
        subarch="ppc64"
1945
        enable fast_64bit
1946
        enable fast_unaligned
1947
    ;;
1948
    s390|s390x)
1949
        arch="s390"
1950
    ;;
1951
    sh4|sh)
1952
        arch="sh4"
1953
    ;;
1954
    sparc)
1955
        arch="sparc"
1939
    alpha|ia64|mips|parisc|sparc)
1956 1940
        spic=$shared
1957 1941
    ;;
1958
    sun4u|sparc64)
1959
        arch="sparc"
1960
        subarch="sparc64"
1961
        enable fast_64bit
1962
        spic=$shared
1963
    ;;
1964
    i386|i486|i586|i686|i86pc|BePC|x86_64|amd64)
1965
        arch="x86"
1942
    x86)
1966 1943
        subarch="x86_32"
1967
        enable fast_unaligned
1968
        check_cc <<EOF && enable fast_64bit && subarch="x86_64" && spic=$shared
1944
        check_cc <<EOF && subarch="x86_64"
1969 1945
        int test[(int)sizeof(char*) - 7];
1970 1946
EOF
1971 1947
        if test "$subarch" = "x86_64"; then
1972
            enable cmov
1973
            enable fast_cmov
1948
            spic=$shared
1974 1949
        fi
1975 1950
    ;;
1976
    *)
1977
        arch="unknown"
1978
    ;;
1979 1951
esac
1980 1952

  
1981 1953
enable $arch $subarch
......
2242 2214
EOF
2243 2215
od -A n -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
2244 2216

  
2245
if enabled arm; then
2217
if enabled alpha; then
2218

  
2219
    check_cflags -mieee
2220

  
2221
elif enabled arm; then
2246 2222

  
2247 2223
    check_cflags -marm
2248 2224

  
......
2263 2239

  
2264 2240
    enabled_all armv6t2 shared !pic && enable_pic
2265 2241

  
2242
elif enabled ia64; then
2243

  
2244
    # HACK: currently fails to build if .bss is > 4MB and shared libs are built
2245
    enabled shared && enable_weak hardcoded_tables
2246

  
2266 2247
elif enabled mips; then
2267 2248

  
2268 2249
    check_asm loongson '"dmult.g $1, $2, $3"'

Also available in: Unified diff