diff options
author | Martin Jambor <mjambor@suse.cz> | 2017-07-31 14:43:24 +0200 |
---|---|---|
committer | Martin Jambor <mjambor@suse.cz> | 2017-07-31 14:43:24 +0200 |
commit | b32f12dece884f1fa0f04c643a77105aff6ce8bc (patch) | |
tree | cdab5f10806561fc198f907299b0e55eb5701ef0 /gcc/config.gcc | |
parent | 166bec868d991fdf71f9a66f994e5977fcab4aa2 (diff) | |
parent | a168a775e93ec31ae743ad282d8e60fa1c116891 (diff) | |
download | gcc-gcn.tar.gz |
Merge branch 'master' into gcngcn
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 73 |
1 files changed, 40 insertions, 33 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 7c083622c1b..215784030e3 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -457,9 +457,10 @@ powerpc*-*-*spe*) ;; powerpc*-*-*) cpu_type=rs6000 - extra_objs="rs6000-string.o" + extra_objs="rs6000-string.o rs6000-p8swap.o" extra_headers="ppc-asm.h altivec.h htmintrin.h htmxlintrin.h" - extra_headers="${extra_headers} bmi2intrin.h bmiintrin.h x86intrin.h" + extra_headers="${extra_headers} bmi2intrin.h bmiintrin.h" + extra_headers="${extra_headers} mmintrin.h x86intrin.h" extra_headers="${extra_headers} ppu_intrinsics.h spu2vmx.h vec_types.h si2vmx.h" extra_headers="${extra_headers} paired.h" case x$with_cpu in @@ -475,7 +476,7 @@ riscv*) ;; rs6000*-*-*) extra_options="${extra_options} g.opt fused-madd.opt rs6000/rs6000-tables.opt" - extra_objs="rs6000-string.o" + extra_objs="rs6000-string.o rs6000-p8swap.o" ;; sparc*-*-*) cpu_type=sparc @@ -797,31 +798,10 @@ case ${target} in gas=yes gnu_ld=yes use_gcc_stdint=wrap - - # NetBSD 2.0 and later get POSIX threads enabled by default. - # Allow them to be explicitly enabled on any other version. case ${enable_threads} in - "") - case ${target} in - *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) - thread_file='posix' - tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS" - ;; - esac - ;; - yes | posix) - thread_file='posix' - tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS" - ;; - esac - - # NetBSD 2.0 and later provide __cxa_atexit(), which we use by - # default (unless overridden by --disable-__cxa_atexit). - case ${target} in - *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) - default_use_cxa_atexit=yes - ;; + "" | yes | posix) thread_file='posix' ;; esac + default_use_cxa_atexit=yes ;; *-*-openbsd*) tmake_file="t-openbsd" @@ -929,6 +909,11 @@ case ${target} in "" | yes | vxworks) thread_file='vxworks' ;; *) echo 'Unknown thread configuration for VxWorks'; exit 1 ;; esac + case $target in + *-*-vxworks7*) + tm_defines="$tm_defines TARGET_VXWORKS7=1" + ;; + esac ;; *-*-elf|arc*-*-elf*) # Assume that newlib is being used and so __cxa_atexit is provided. @@ -1056,7 +1041,7 @@ arc*-*-elf*) big*) tm_file="arc/big.h ${tm_file}" esac ;; -arc*-*-linux-uclibc*) +arc*-*-linux*) tm_file="arc/arc-arch.h dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h arc/linux.h ${tm_file}" tmake_file="${tmake_file} arc/t-arc" extra_gcc_objs="driver-arc.o" @@ -1684,8 +1669,15 @@ i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) esac fi ;; -i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae) - tm_file="${tm_file} i386/unix.h i386/att.h elfos.h vx-common.h" +i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae|i[4567]86-wrs-vxworks7|x86_64-wrs-vxworks7) + tm_file="${tm_file} i386/unix.h i386/att.h elfos.h" + case ${target} in + x86_64-*) + need_64bit_isa=yes + tm_file="${tm_file} i386/x86-64.h" + ;; + esac + tm_file="${tm_file} vx-common.h" case ${target} in *-vxworksae*) tm_file="${tm_file} vxworksae.h i386/vxworks.h i386/vxworksae.h" @@ -2057,7 +2049,7 @@ riscv*-*-linux*) # automatically detect that GAS supports it, yet we require it. gcc_cv_initfini_array=yes ;; -riscv*-*-elf*) +riscv*-*-elf* | riscv*-*-rtems*) tm_file="elfos.h newlib-stdint.h ${tm_file} riscv/elf.h" case "x${enable_multilib}" in xno) ;; @@ -2070,6 +2062,11 @@ riscv*-*-elf*) # Force .init_array support. The configure script cannot always # automatically detect that GAS supports it, yet we require it. gcc_cv_initfini_array=yes + case ${target} in + riscv*-*-rtems*) + tm_file="${tm_file} rtems.h riscv/rtems.h" + ;; + esac ;; mips*-*-netbsd*) # NetBSD/mips, either endian. target_cpu_default="MASK_ABICALLS" @@ -2441,7 +2438,7 @@ powerpc-*-rtems*spe*) tmake_file="${tmake_file} powerpcspe/t-fprules powerpcspe/t-rtems powerpcspe/t-ppccomm" ;; powerpc-*-rtems*) - tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h" + tm_file="rs6000/biarch64.h ${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/rtems.h rtems.h" extra_options="${extra_options} rs6000/sysv4.opt" tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-rtems rs6000/t-ppccomm" ;; @@ -3109,6 +3106,16 @@ powerpc*-*-* | rs6000-*-*) tm_file="${tm_file} ${cpu_type}/option-defaults.h" esac +# non-glibc systems +case ${target} in +*-linux-musl*) + tmake_file="${tmake_file} t-musl" + ;; +*-linux-uclibc*) + tmake_file="${tmake_file} t-uclibc" + ;; +esac + # Build mkoffload tool case ${target} in *-intelmic-* | *-intelmicemul-*) @@ -4388,7 +4395,7 @@ case "${target}" in for which in arch tune; do eval "val=\$with_$which" case ${val} in - "" | native | g5 | g6 | z900 | z990 | z9-109 | z9-ec | z10 | z196 | zEC12 | z13 | arch3 | arch5 | arch6 | arch7 | arch8 | arch9 | arch10 | arch11 | arch12) + "" | native | g5 | g6 | z900 | z990 | z9-109 | z9-ec | z10 | z196 | zEC12 | z13 | z14 | arch3 | arch5 | arch6 | arch7 | arch8 | arch9 | arch10 | arch11 | arch12) # OK ;; *) @@ -4440,7 +4447,7 @@ case "${target}" in | sparclite | f930 | f934 | sparclite86x \ | sparclet | tsc701 \ | v9 | ultrasparc | ultrasparc3 | niagara | niagara2 \ - | niagara3 | niagara4 | niagara7) + | niagara3 | niagara4 | niagara7 | m8) # OK ;; *) |