source:
mainline/tools/toolchain-gcc-4.8.1-targets.patch@
0cabd10
Last change on this file since 0cabd10 was 5a65d29, checked in by , 12 years ago | |
---|---|
|
|
File size: 10.8 KB |
-
gcc-4.8.1/config.sub
diff -ud -Nrud gcc-4.8.1/config.sub gcc-4.8.1/config.sub
1369 1369 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1370 1370 | -chorusos* | -chorusrdb* | -cegcc* \ 1371 1371 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1372 | -helenos \ 1372 1373 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ 1373 1374 | -linux-newlib* | -linux-musl* | -linux-uclibc* \ 1374 1375 | -uxpv* | -beos* | -mpeix* | -udk* \ -
gcc-4.8.1/gcc/config.gcc
diff -ud -Nrud gcc-4.8.1/gcc/config.gcc gcc-4.8.1/gcc/config.gcc
624 624 # need_64bit_hwint=yes # system compiler has this for all arch! 625 625 use_gcc_stdint=wrap 626 626 ;; 627 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu )627 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-helenos*) 628 628 extra_options="$extra_options gnu-user.opt" 629 629 gas=yes 630 630 gnu_ld=yes … … 642 642 # glibc / uclibc / bionic switch. 643 643 # uclibc and bionic aren't usable for GNU/Hurd and neither for GNU/k*BSD. 644 644 case $target in 645 *linux* )645 *linux* | *helenos*) 646 646 extra_options="$extra_options linux.opt";; 647 647 esac 648 648 case $target in … … 663 663 use_gcc_stdint=wrap 664 664 # Add Android userspace support to Linux targets. 665 665 case $target in 666 *linux* )666 *linux* | *helenos*) 667 667 tm_file="$tm_file linux-android.h" 668 668 extra_options="$extra_options linux-android.opt" 669 669 ;; … … 681 681 cxx_target_objs="${cxx_target_objs} glibc-c.o" 682 682 tmake_file="${tmake_file} t-glibc" 683 683 target_has_targetcm=yes 684 # HelenOS 685 case $target in 686 *-helenos*) tm_file="$tm_file helenos.h" ;; 687 esac 684 688 ;; 685 689 *-*-netbsd*) 686 690 tmake_file="t-slibgcc" … … 868 872 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 869 873 tmake_file="${tmake_file} arm/t-arm" 870 874 ;; 871 arm*-*-linux-* ) # ARM GNU/Linux with ELF875 arm*-*-linux-* | arm*-helenos-*) # ARM GNU/Linux with ELF 872 876 tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" 873 877 case $target in 874 878 arm*b-*-linux*) … … 890 894 # The EABI requires the use of __cxa_atexit. 891 895 default_use_cxa_atexit=yes 892 896 with_tls=${with_tls:-gnu} 897 # HelenOS 898 # (Strangely, tm_file ignores the defaults loaded previously and 899 # we need to add helenos.h one more time.) 900 case $target in 901 *-helenos*) tm_file="$tm_file helenos.h arm/helenos-arm32.h arm/helenos.h" ;; 902 esac 893 903 ;; 894 904 arm*-*-uclinux*eabi*) # ARM ucLinux 895 905 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/uclinux-elf.h glibc-stdint.h" … … 1257 1267 gas=yes 1258 1268 gnu_ld=yes 1259 1269 ;; 1260 i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu )1270 i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu | i[34567]86-*-helenos) 1261 1271 # Intel 80386's running GNU/* 1262 1272 # with ELF format using glibc 2 1263 1273 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h" 1264 1274 case ${target} in 1265 i[34567]86-*-linux* )1275 i[34567]86-*-linux* | i[34567]86-*-helenos) 1266 1276 tm_file="${tm_file} linux.h" 1267 1277 # Assume modern glibc 1268 1278 default_gnu_indirect_function=yes … … 1318 1328 tm_file="$tm_file i386/gnu-user-common.h i386/gnu-user.h gnu.h i386/gnu.h" 1319 1329 ;; 1320 1330 esac 1331 # HelenOS 1332 case $target in 1333 *-helenos*) tm_file="$tm_file i386/helenos-ia32.h i386/helenos.h" ;; 1334 esac 1321 1335 ;; 1322 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu )1336 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu | x86_64-*-helenos) 1323 1337 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h \ 1324 1338 i386/x86-64.h i386/gnu-user-common.h i386/gnu-user64.h" 1325 1339 case ${target} in 1326 x86_64-*-linux* )1340 x86_64-*-linux* | x86_64-*-helenos) 1327 1341 tm_file="${tm_file} linux.h i386/linux-common.h i386/linux64.h" 1328 1342 # Assume modern glibc 1329 1343 default_gnu_indirect_function=yes … … 1359 1373 esac 1360 1374 done 1361 1375 TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'` 1376 # HelenOS 1377 case $target in 1378 *-helenos*) tm_file="$tm_file i386/helenos-amd64.h i386/helenos.h" ;; 1379 esac 1362 1380 ;; 1363 1381 i[34567]86-pc-msdosdjgpp*) 1364 1382 xm_file=i386/xm-djgpp.h … … 1567 1585 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" 1568 1586 tmake_file="${tmake_file} ia64/t-ia64" 1569 1587 ;; 1570 ia64*-*-linux* )1588 ia64*-*-linux* | ia64-*-helenos) 1571 1589 tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ia64/sysv4.h ia64/linux.h" 1572 1590 tmake_file="${tmake_file} ia64/t-ia64 ia64/t-linux t-libunwind" 1573 1591 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" 1592 # HelenOS 1593 case $target in 1594 *-helenos*) tm_file="$tm_file ia64/helenos-ia64.h ia64/helenos.h" ;; 1595 esac 1574 1596 ;; 1575 1597 ia64*-*-hpux*) 1576 1598 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/hpux.h" … … 1794 1816 gas=yes 1795 1817 test x$with_llsc != x || with_llsc=yes 1796 1818 ;; 1797 mips64*-*-linux* | mipsisa64*-*-linux* )1819 mips64*-*-linux* | mipsisa64*-*-linux* | mips64*-*-helenos) 1798 1820 tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/gnu-user64.h mips/linux64.h mips/linux-common.h" 1799 1821 tmake_file="${tmake_file} mips/t-linux64" 1800 1822 tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_N32" … … 1814 1836 gnu_ld=yes 1815 1837 gas=yes 1816 1838 test x$with_llsc != x || with_llsc=yes 1839 # HelenOS 1840 case $target in 1841 *-helenos*) tm_file="$tm_file mips/helenos-mips64el.h mips/helenos.h" ;; 1842 esac 1817 1843 ;; 1818 mips*-*-linux* )# Linux MIPS, either endian.1844 mips*-*-linux* | mips*-*-helenos) # Linux MIPS, either endian. 1819 1845 tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h" 1820 1846 if test x$enable_targets = xall; then 1821 1847 tm_file="${tm_file} mips/gnu-user64.h mips/linux64.h" … … 1830 1856 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32" 1831 1857 esac 1832 1858 test x$with_llsc != x || with_llsc=yes 1859 # HelenOS 1860 case $target in 1861 mipsel-*-helenos*) tm_file="$tm_file mips/helenos-mips32el.h mips/helenos.h" ;; 1862 mips-*-helenos*) tm_file="$tm_file mips/helenos-mips32eb.h mips/helenos.h" ;; 1863 esac 1833 1864 ;; 1834 1865 mips*-mti-elf*) 1835 1866 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/sde.h mips/mti-elf.h" … … 2066 2097 extra_options="${extra_options} rs6000/sysv4.opt" 2067 2098 tmake_file="rs6000/t-fprules rs6000/t-rtems t-rtems rs6000/t-ppccomm" 2068 2099 ;; 2069 powerpc-*-linux* | powerpc64-*-linux* )2100 powerpc-*-linux* | powerpc64-*-linux* | powerpc*-*-helenos) 2070 2101 tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h rs6000/sysv4.h" 2071 2102 extra_options="${extra_options} rs6000/sysv4.opt" 2072 2103 tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" … … 2079 2110 powerpc-*-linux*spe* | powerpc-*-linux*paired*) 2080 2111 maybe_biarch= 2081 2112 ;; 2082 powerpc64-*-linux* )2113 powerpc64-*-linux* | powerpc64-*-helenos) 2083 2114 test x$with_cpu != x || cpu_is_64bit=yes 2084 2115 maybe_biarch=always 2085 2116 ;; … … 2112 2143 if test x${enable_secureplt} = xyes; then 2113 2144 tm_file="rs6000/secureplt.h ${tm_file}" 2114 2145 fi 2146 # HelenOS 2147 case $target in 2148 powerpc-*-helenos*) tm_file="$tm_file rs6000/helenos-ppc32.h rs6000/helenos.h" ;; 2149 powerpc64-*-helenos*) tm_file="$tm_file rs6000/helenos-ppc64.h rs6000/helenos64.h" ;; 2150 esac 2115 2151 ;; 2116 2152 powerpc-wrs-vxworks|powerpc-wrs-vxworksae) 2117 2153 tm_file="${tm_file} elfos.h freebsd-spec.h rs6000/sysv4.h" … … 2496 2532 extra_options="${extra_options}" 2497 2533 tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems-64 t-rtems" 2498 2534 ;; 2499 sparc64-*-linux* )2535 sparc64-*-linux* | sparc64-*-helenos) 2500 2536 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/default-64.h sparc/linux64.h sparc/tso.h" 2501 2537 extra_options="${extra_options} sparc/long-double-switch.opt" 2502 2538 tmake_file="${tmake_file} sparc/t-sparc sparc/t-linux64" 2539 # HelenOS 2540 case $target in 2541 *-helenos*) tm_file="$tm_file sparc/helenos-sparc64.h sparc/helenos64.h" ;; 2542 esac 2503 2543 ;; 2504 2544 sparc64-*-freebsd*|ultrasparc-*-freebsd*) 2505 2545 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h" -
gcc-4.8.1/libgcc/config.host
diff -ud -Nrud gcc-4.8.1/libgcc/config.host gcc-4.8.1/libgcc/config.host
195 195 ;; 196 196 esac 197 197 ;; 198 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu )198 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-helenos) 199 199 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-linux" 200 200 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" 201 201 ;; … … 322 322 arm*-*-netbsdelf*) 323 323 tmake_file="$tmake_file arm/t-arm arm/t-netbsd t-slibgcc-gld-nover" 324 324 ;; 325 arm*-*-linux* ) # ARM GNU/Linux with ELF325 arm*-*-linux* | arm*-helenos-gnueabi) # ARM GNU/Linux with ELF 326 326 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix" 327 327 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc" 328 328 tm_file="$tm_file arm/bpabi-lib.h" … … 518 518 ;; 519 519 x86_64-*-openbsd*) 520 520 ;; 521 i[34567]86-*-linux* )521 i[34567]86-*-linux* | i[34567]86-*-helenos) 522 522 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" 523 523 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules" 524 524 md_unwind_header=i386/linux-unwind.h … … 527 527 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" 528 528 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules" 529 529 ;; 530 x86_64-*-linux* )530 x86_64-*-linux* | x86_64-*-helenos) 531 531 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" 532 532 tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules" 533 533 md_unwind_header=i386/linux-unwind.h … … 631 631 extra_parts="$extra_parts crtfastmath.o" 632 632 tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm" 633 633 ;; 634 ia64*-*-linux* )634 ia64*-*-linux* | ia64-*-helenos) 635 635 # Don't use crtbeginT.o from *-*-linux* default. 636 636 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" 637 637 tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf t-crtfm t-softfp-tf ia64/t-softfp t-softfp ia64/t-softfp-compat ia64/t-eh-ia64 t-libunwind ia64/t-linux" … … 1038 1038 tmake_file="$tmake_file t-crtfm" 1039 1039 extra_parts="$extra_parts crtfastmath.o" 1040 1040 ;; 1041 sparc64-*-linux* )# 64-bit SPARC's running GNU/Linux1041 sparc64-*-linux* | sparc64-*-helenos) # 64-bit SPARC's running GNU/Linux 1042 1042 extra_parts="$extra_parts crtfastmath.o" 1043 1043 tmake_file="${tmake_file} t-crtfm sparc/t-linux" 1044 1044 if test "${host_address}" = 64; then
Note:
See TracBrowser
for help on using the repository browser.