📄 config.gcc.svn-base
字号:
tmake_file="${tmake_file} t-freebsd-thread" # Before 5.0, FreeBSD can't bind shared libraries to -lc # when "optionally" threaded via weak pthread_* checks. case ${target} in *-*-freebsd[34] | *-*-freebsd[34].*) tmake_file="${tmake_file} t-slibgcc-nolc-override" ;; esac ;; *) echo 'Unknown thread configuration for FreeBSD' exit 1 ;; esac fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h" ;;*-*-linux*libc1* | *-*-linux*aout*) # Avoid the generic linux case. ;;*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu) # Must come before *-*-gnu* (because of *-*-linux-gnu* systems). extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" gas=yes gnu_ld=yes case ${enable_threads} in "" | yes | posix) thread_file='posix' ;; esac tmake_file="t-slibgcc-elf-ver t-linux" ;;*-*-gnu*) # On the Hurd, the setup is just about the same on # each different CPU. The specific machines that we # support are matched above and just set $cpu_type. tm_file="${cpu_type}/gnu.h" extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" # GNU tools are the only tools. gas=yes gnu_ld=yes # These details are the same as for Linux. # But here we need a little extra magic. tmake_file="t-slibgcc-elf-ver t-linux t-gnu" case ${target} in alpha*) tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}" ;; i[34567]86-*-*) tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h gnu.h ${tm_file}" ;; esac ;;*-*-netbsd*) tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd t-libgcc-pic" gas=yes gnu_ld=yes # 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 1.7 and later are set up to use GCC's crtstuff for # ELF configurations. We will clear extra_parts in the # a.out configurations. case ${target} in *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" ;; 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 ;; esac ;;*-*-openbsd*) tmake_file="t-libc-ok t-openbsd t-libgcc-pic" case ${enable_threads} in yes) thread_file='posix' tmake_file="${tmake_file} t-openbsd-thread" ;; esac case ${target} in *-*-openbsd2.*|*-*-openbsd3.[012]) tm_defines="${tm_defines} HAS_LIBC_R=1" ;; esac ;;*-*-rtems*) case ${enable_threads} in yes) thread_file='rtems' ;; esac ;;*-*-vxworks*) tmake_file=t-vxworks tm_file="${tm_file} elfos.h svr4.h vxworks.h" case ${enable_threads} in no) ;; "" | yes | vxworks) thread_file='vxworks' ;; *) echo 'Unknown thread configuration for VxWorks'; exit 1 ;; esac use_collect2=yes xm_defines=POSIX ;;esaccase ${target} in# Support site-specific machine types.*local*) rest=`echo ${target} | sed -e "s/$cpu_type-//"` tm_file=${cpu_type}/$rest.h if test -f $srcdir/config/${cpu_type}/xm-$rest.h then xm_file=${cpu_type}/xm-$rest.h fi if test -f $srcdir/config/${cpu_type}/t-$rest then tmake_file=${cpu_type}/t-$rest fi ;;alpha*-*-unicosmk*) use_collect2=yes tm_file="${tm_file} alpha/unicosmk.h" # Don't include t-ieee for now because we don't support that yet # tmake_file="alpha/t-ieee" tmake_file="alpha/t-unicosmk" use_fixproto=yes ;;alpha*-*-linux*) tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" target_cpu_default="MASK_GAS" tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee" ;;alpha*-*-gnu*) target_cpu_default="MASK_GAS" tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee" ;;alpha*-*-freebsd*) tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h" target_cpu_default="MASK_GAS" tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee" extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" ;;alpha*-*-netbsd*) tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h" target_cpu_default="MASK_GAS" tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" ;;alpha*-*-openbsd*) tm_defines="OBSD_NO_DYNAMIC_LIBRARIES OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT" tm_file="alpha/alpha.h openbsd.h alpha/openbsd.h" # default x-alpha is only appropriate for dec-osf. target_cpu_default="MASK_GAS" tmake_file="alpha/t-alpha alpha/t-ieee" ;;alpha*-dec-osf[45]*) if test x$stabs = xyes then tm_file="${tm_file} dbx.h" fi if test x$gas != xyes then extra_passes="mips-tfile mips-tdump" fi use_collect2=yes tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4" tm_file="${tm_file} alpha/osf.h" extra_headers=va_list.h case ${target} in *-*-osf4*) # Set target_cpu_default except on 4.0a. case ${target} in *-*-osf4.0a) ;; *) target_cpu_default=MASK_SUPPORT_ARCH esac ;; *-*-osf5*) tm_file="${tm_file} alpha/osf5.h" target_cpu_default=MASK_SUPPORT_ARCH ;; esac case ${enable_threads} in "" | yes | posix) thread_file='posix' tmake_file="${tmake_file} alpha/t-osf-pthread" ;; esac ;;alpha64-dec-*vms*) tm_file="${tm_file} alpha/vms.h alpha/vms64.h" xm_file="alpha/xm-vms.h" tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee" prefix=/gnu local_prefix=/gnu ;;alpha*-dec-*vms*) tm_file="${tm_file} alpha/vms.h" xm_file=alpha/xm-vms.h tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee" prefix=/gnu local_prefix=/gnu ;;arc-*-elf*) tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" extra_parts="crtinit.o crtfini.o" use_fixproto=yes ;;arm-*-coff* | armel-*-coff*) tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h" tmake_file="arm/t-arm arm/t-arm-coff" ;;arm-semi-aof | armel-semi-aof) tm_file="arm/semiaof.h arm/aof.h arm/arm.h" tmake_file="arm/t-arm arm/t-semi" ;;arm-wrs-vxworks) tm_file="dbxelf.h elfos.h svr4.h vxworks.h arm/elf.h arm/aout.h arm/arm.h arm/vxworks.h" tmake_file="${tmake_file} arm/t-arm arm/t-vxworks" ;;arm*-*-freebsd*|strongarm*-*-freebsd*) tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h" tmake_file="${tmake_file} arm/t-arm arm/t-strongarm-elf" ;;arm*-*-netbsdelf*) tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h" tmake_file="${tmake_file} arm/t-arm arm/t-netbsd" ;;arm*-*-netbsd*) tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h" tmake_file="t-netbsd arm/t-arm arm/t-netbsd" extra_parts="" use_collect2=yes ;;arm*-*-linux*) # ARM GNU/Linux with ELF tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h" tmake_file="${tmake_file} arm/t-arm arm/t-linux" extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" gnu_ld=yes ;;arm*-*-uclinux*) # ARM ucLinux tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h arm/uclinux-elf.h" tmake_file="arm/t-arm arm/t-arm-elf" ;;arm*-*-ecos-elf) tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h" tmake_file="arm/t-arm arm/t-arm-elf" ;;arm*-*-eabi* | arm*-*-symbianelf* ) # The BPABI long long divmod functions return a 128-bit value in # registers r0-r3. Correctly modeling that requires the use of # TImode. need_64bit_hwint=yes default_use_cxa_atexit=yes tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h" tmake_file="arm/t-arm arm/t-arm-elf" case ${target} in arm*-*-eabi*) tmake_file="${tmake_file} arm/t-bpabi" ;; arm*-*-symbianelf*) tm_file="${tm_file} arm/symbian.h" # We do not include t-bpabi for Symbian OS because the system # provides its own implementation of the BPABI functions. tmake_file="${tmake_file} t-slibgcc-elf-ver arm/t-symbian" ;; esac tm_file="${tm_file} arm/aout.h arm/arm.h" ;;arm*-*-rtems*) tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/rtems-elf.h rtems.h" tmake_file="arm/t-arm arm/t-arm-elf t-rtems arm/t-rtems" ;;arm*-*-elf | ep9312-*-elf) tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h" tmake_file="arm/t-arm arm/t-arm-elf" ;;arm*-wince-pe*) tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h arm/wince-pe.h" tmake_file="arm/t-arm arm/t-wince-pe" extra_objs="pe.o" ;;arm-*-pe*) tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h" tmake_file="arm/t-arm arm/t-pe" extra_objs="pe.o" ;;arm*-*-kaos*) tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h kaos.h arm/kaos-arm.h" tmake_file="arm/t-arm arm/t-arm-elf" ;;avr-*-rtems*) tm_file="avr/avr.h dbxelf.h avr/rtems.h rtems.h" tmake_file="avr/t-avr t-rtems avr/t-rtems" ;;avr-*-*) tm_file="avr/avr.h dbxelf.h" use_fixproto=yes ;;c4x-*-rtems* | tic4x-*-rtems*) tmake_file="c4x/t-c4x t-rtems c4x/t-rtems" tm_file="c4x/c4x.h c4x/rtems.h rtems.h" c_target_objs="c4x-c.o" cxx_target_objs="c4x-c.o" ;;c4x-* | tic4x-*) tmake_file=c4x/t-c4x c_target_objs="c4x-c.o" cxx_target_objs="c4x-c.o" ;;cris-*-aout) tm_file="dbxelf.h ${tm_file} cris/aout.h" gas=yes tmake_file="cris/t-cris cris/t-aout" ;;cris-*-elf | cris-*-none) tm_file="dbxelf.h elfos.h ${tm_file}" tmake_file="cris/t-cris cris/t-elfmulti" gas=yes ;;cris-*-linux*) tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h" # We need to avoid using t-linux, so override default tmake_file tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux" ;;fr30-*-elf) tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" tmake_file=fr30/t-fr30 extra_parts="crti.o crtn.o crtbegin.o crtend.o" use_fixproto=yes ;;frv-*-elf) tm_file="dbxelf.h elfos.h svr4.h ${tm_file} frv/frv-abi.h" tmake_file=frv/t-frv use_fixproto=yes ;;frv-*-*linux*) tm_file="dbxelf.h elfos.h svr4.h ${tm_file} \ linux.h frv/linux.h frv/frv-abi.h" tmake_file="${tmake_file} frv/t-frv frv/t-linux" ;;h8300-*-rtems*) tmake_file="h8300/t-h8300 t-rtems h8300/t-rtems" tm_file="h8300/h8300.h dbxcoff.h h8300/coff.h h8300/rtems.h rtems.h" ;;h8300-*-elf*) tmake_file="h8300/t-h8300 h8300/t-elf" tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h" use_fixproto=yes ;;h8300-*-*) tm_file="h8300/h8300.h dbxcoff.h h8300/coff.h" use_fixproto=yes ;;hppa*64*-*-linux* | parisc*64*-*-linux*) target_cpu_default="MASK_PA_11|MASK_PA_20" tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \ pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h" tmake_file="${tmake_file} pa/t-linux64" gas=yes gnu_ld=yes need_64bit_hwint=yes ;;hppa*-*-linux* | parisc*-*-linux*) target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS" tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \ pa/pa32-regs.h pa/pa32-linux.h" tmake_file="${tmake_file} pa/t-linux" # if not configured with --enable-sjlj-exceptions, bump the # libgcc version number if test x$sjlj != x1; then tmake_file="$tmake_file pa/t-slibgcc-elf-ver" fi ;;# port not yet contributed.#hppa*-*-openbsd*)# target_cpu_default="MASK_PA_11"# ;;hppa1.1-*-pro*) target_cpu_default="MASK_PORTABLE_RUNTIME|MASK_NO_SPACE_REGS|MASK_SOFT_FLOAT" tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h \ pa/pa-pro-end.h libgloss.h" tmake_file="pa/t-pro" ;;hppa1.1-*-osf*) target_cpu_default="MASK_PA_11" tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h pa/pa-osf.h" tmake_file="pa/t-pa" use_collect2=yes ;;hppa1.1-*-rtems*) target_cpu_default="MASK_PORTABLE_RUNTIME|MASK_NO_SPACE_REGS|MASK_SOFT_FLOAT" tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h \ pa/pa-pro-end.h libgloss.h pa/rtems.h rtems.h" tmake_file="pa/t-pro t-rtems" ;;hppa1.1-*-bsd*) target_cpu_default="MASK_PA_11" tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h" tmake_file="pa/t-pa" use_collect2=yes ;;hppa[12]*-*-hpux10*)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -