config.host revision 1.21
1# libgcc host-specific configuration file. 2# Copyright (C) 1997-2017 Free Software Foundation, Inc. 3 4#This file is part of GCC. 5 6#GCC is free software; you can redistribute it and/or modify it under 7#the terms of the GNU General Public License as published by the Free 8#Software Foundation; either version 3, or (at your option) any later 9#version. 10 11#GCC is distributed in the hope that it will be useful, but WITHOUT 12#ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13#FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14#for more details. 15 16#You should have received a copy of the GNU General Public License 17#along with GCC; see the file COPYING3. If not see 18#<http://www.gnu.org/licenses/>. 19 20# This is the libgcc host-specific configuration file 21# where a configuration type is mapped to different system-specific 22# definitions and files. This is invoked by the autoconf-generated 23# configure script. Putting it in a separate shell file lets us skip 24# running autoconf when modifying host-specific information. 25 26# This file bears an obvious resemblance to gcc/config.gcc. The cases 27# should be kept similar, to ease moving library-specific settings 28# from config.gcc to this file. That is also why tmake_file is 29# left as tmake_file, rather than hmake_file, even though this library 30# switches on ${host}. 31 32# This file switches on the shell variable ${host}, and also uses the 33# following shell variables: 34# 35# with_* Various variables as set by configure. 36 37# This file sets the following shell variables for use by the 38# autoconf-generated configure script: 39# 40# asm_hidden_op The assembler pseudo-op to use for hide 41# lists for object files implemented in 42# assembly (with -fvisibility=hidden for C). 43# The default is ".hidden". 44# cpu_type The name of the cpu, if different from the first 45# chunk of the canonical host name. 46# enable_execute_stack The name of a source file implementing 47# __enable_execute_stack. 48# extra_parts List of extra object files that should be compiled 49# for this target machine. This may be overridden 50# by setting EXTRA_PARTS in a tmake_file fragment. 51# If either is set, EXTRA_PARTS and 52# EXTRA_MULTILIB_PARTS inherited from the GCC 53# subdirectory will be ignored. 54# md_unwind_header The name of a header file defining 55# MD_FALLBACK_FRAME_STATE_FOR. 56# sfp_machine_header The name of a sfp-machine.h header file for soft-fp. 57# Defaults to "$cpu_type/sfp-machine.h" if it exists, 58# no-sfp-machine.h otherwise. 59# tmake_file A list of machine-description-specific 60# makefile fragments. 61# tm_defines List of target macros to define for all compilations. 62# tm_file A list of target macro files used only for code 63# built for the target, not the host. These files 64# are relative to $srcdir/config and must not have 65# the same names as files in $srcdir/../gcc/config. 66# unwind_header The name of the header file declaring the unwind 67# runtime interface routines. 68 69asm_hidden_op=.hidden 70enable_execute_stack= 71extra_parts= 72tmake_file= 73tm_file= 74tm_define= 75md_unwind_header=no-unwind.h 76unwind_header=unwind-generic.h 77 78# Set default cpu_type so it can be updated in each machine entry. 79cpu_type=`echo ${host} | sed 's/-.*$//'` 80case ${host} in 81m32c*-*-*) 82 cpu_type=m32c 83 tmake_file=t-fdpbit 84 ;; 85aarch64*-*-*) 86 cpu_type=aarch64 87 ;; 88alpha*-*-*) 89 cpu_type=alpha 90 ;; 91am33_2.0-*-linux*) 92 cpu_type=mn10300 93 ;; 94arc*-*-*) 95 cpu_type=arc 96 ;; 97arm*-*-*) 98 cpu_type=arm 99 ;; 100avr-*-*) 101 cpu_type=avr 102 ;; 103bfin*-*) 104 cpu_type=bfin 105 ;; 106cr16-*-*) 107 ;; 108crisv32-*-*) 109 cpu_type=cris 110 ;; 111fido-*-*) 112 cpu_type=m68k 113 ;; 114frv*) cpu_type=frv 115 ;; 116ft32*) cpu_type=ft32 117 ;; 118moxie*) cpu_type=moxie 119 ;; 120i[34567]86-*-*) 121 cpu_type=i386 122 ;; 123x86_64-*-*) 124 cpu_type=i386 125 ;; 126ia64-*-*) 127 ;; 128hppa*-*-*) 129 cpu_type=pa 130 ;; 131lm32*-*-*) 132 cpu_type=lm32 133 ;; 134m32r*-*-*) 135 cpu_type=m32r 136 ;; 137m68k-*-*) 138 ;; 139microblaze*-*-*) 140 cpu_type=microblaze 141 ;; 142mips*-*-*) 143 # All MIPS targets provide a full set of FP routines. 144 cpu_type=mips 145 tmake_file="mips/t-mips" 146 if test "${libgcc_cv_mips_hard_float}" = yes; then 147 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp" 148 else 149 tmake_file="${tmake_file} t-softfp-sfdf" 150 fi 151 if test "${ac_cv_sizeof_long_double}" = 16; then 152 tmake_file="${tmake_file} mips/t-softfp-tf" 153 fi 154 if test "${host_address}" = 64; then 155 tmake_file="${tmake_file} mips/t-mips64" 156 fi 157 tmake_file="${tmake_file} t-softfp" 158 ;; 159nds32*-*) 160 cpu_type=nds32 161 ;; 162nios2*-*-*) 163 cpu_type=nios2 164 ;; 165or1k-*-* | or1knd-*-*) 166 cpu_type=or1k 167 ;; 168powerpc*-*-*) 169 cpu_type=rs6000 170 ;; 171riscv*-*-*) 172 cpu_type=riscv 173 ;; 174rs6000*-*-*) 175 ;; 176riscv*-*-*) 177 cpu_type=riscv 178 ;; 179sparc64*-*-*) 180 cpu_type=sparc 181 ;; 182sparc*-*-*) 183 cpu_type=sparc 184 ;; 185spu*-*-*) 186 cpu_type=spu 187 ;; 188s390*-*-*) 189 cpu_type=s390 190 ;; 191# Note the 'l'; we need to be able to match e.g. "shle" or "shl". 192sh[123456789lbe]*-*-*) 193 cpu_type=sh 194 ;; 195tilegx*-*-*) 196 cpu_type=tilegx 197 ;; 198tilepro*-*-*) 199 cpu_type=tilepro 200 ;; 201v850*-*-*) 202 cpu_type=v850 203 ;; 204tic6x-*-*) 205 cpu_type=c6x 206 ;; 207esac 208 209# Common parts for widely ported systems. 210case ${host} in 211*-*-darwin*) 212 asm_hidden_op=.private_extern 213 tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic t-slibgcc-darwin" 214 extra_parts="crt3.o crttms.o crttme.o" 215 ;; 216*-*-dragonfly*) 217 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip" 218 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver" 219 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" 220 ;; 221*-*-freebsd*) 222 # This is the generic ELF configuration of FreeBSD. Later 223 # machine-specific sections may refine and add to this 224 # configuration. 225 tmake_file="$tmake_file t-freebsd t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver" 226 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" 227 case ${target_thread_file} in 228 posix) 229 tmake_file="${tmake_file} t-freebsd-thread" 230 # Before 5.0, FreeBSD can't bind shared libraries to -lc 231 # when "optionally" threaded via weak pthread_* checks. 232 case ${host} in 233 *-*-freebsd[34] | *-*-freebsd[34].*) 234 tmake_file="${tmake_file} t-slibgcc-nolc-override" 235 ;; 236 esac 237 ;; 238 esac 239 ;; 240*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu) 241 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" 242 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" 243 if test x$enable_vtable_verify = xyes; then 244 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" 245 fi 246 ;; 247*-*-lynxos*) 248 tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic" 249 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" 250 ;; 251*-*-netbsd*) 252 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip" 253 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver" 254 tmake_file="$tmake_file t-slibgcc-libgcc" 255 # NetBSD 1.7 and later are set up to use GCC's crtstuff for 256 # ELF configurations. We will clear extra_parts in the 257 # a.out configurations. 258 case ${host} in 259 *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) 260 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" 261 ;; 262 esac 263 ;; 264*-*-openbsd*) 265 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip" 266 case ${target_thread_file} in 267 posix) 268 tmake_file="$tmake_file t-openbsd-thread" 269 ;; 270 esac 271 ;; 272*-*-rtems*) 273 tmake_file="$tmake_file t-rtems" 274 extra_parts="crtbegin.o crtend.o" 275 ;; 276*-*-solaris2*) 277 # Unless linker support and dl_iterate_phdr are present, 278 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c. 279 tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver" 280 if test $with_gnu_ld = yes; then 281 tmake_file="$tmake_file t-slibgcc-gld" 282 else 283 tmake_file="$tmake_file t-slibgcc-sld" 284 fi 285 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES. 286 tmake_file="$tmake_file $cpu_type/t-sol2" 287 extra_parts="gmon.o crtbegin.o crtend.o" 288 if test "${libgcc_cv_solaris_crts}" = yes; then 289 # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the 290 # base system. crtp.o and crtpg.o implement the compiler-dependent parts. 291 extra_parts="$extra_parts crtp.o crtpg.o" 292 # If the Solaris CRTs are present, both ld and gld will have PIE support. 293 extra_parts="$extra_parts crtbeginS.o crtendS.o" 294 else 295 case ${host} in 296 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*) 297 # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as 298 # part of the base system. 299 ;; 300 sparc*-*-solaris2.1[0-9]*) 301 # Solaris 10+/SPARC lacks crt1.o and gcrt1.o. 302 extra_parts="$extra_parts crt1.o gcrt1.o" 303 ;; 304 esac 305 fi 306 if test x$enable_vtable_verify = xyes; then 307 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" 308 fi 309 ;; 310*-*-uclinux*) 311 extra_parts="crtbegin.o crtend.o" 312 ;; 313*-*-*vms*) 314 tmake_file="vms/t-vms" 315 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o" 316 ;; 317*-*-vxworks*) 318 tmake_file=t-vxworks 319 ;; 320*-*-elf) 321 extra_parts="crtbegin.o crtend.o" 322 ;; 323esac 324 325case ${host} in 326*-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \ 327 *-*-solaris2*) 328 enable_execute_stack=enable-execute-stack-mprotect.c 329 ;; 330i[34567]86-*-mingw* | x86_64-*-mingw*) 331 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c 332 ;; 333*) 334 enable_execute_stack=enable-execute-stack-empty.c; 335 ;; 336esac 337 338case ${host} in 339aarch64*-*-elf | aarch64*-*-rtems*) 340 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o" 341 extra_parts="$extra_parts crtfastmath.o" 342 tmake_file="${tmake_file} ${cpu_type}/t-aarch64" 343 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" 344 md_unwind_header=aarch64/aarch64-unwind.h 345 ;; 346aarch64*-*-freebsd*) 347 extra_parts="$extra_parts crtfastmath.o" 348 tmake_file="${tmake_file} ${cpu_type}/t-aarch64" 349 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" 350 md_unwind_header=aarch64/freebsd-unwind.h 351 ;; 352aarch64*-*-netbsd*) 353 extra_parts="$extra_parts crtfastmath.o" 354 tmake_file="${tmake_file} ${cpu_type}/t-aarch64" 355 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" 356 md_unwind_header=aarch64/aarch64-unwind.h 357 ;; 358aarch64*-*-linux*) 359 extra_parts="$extra_parts crtfastmath.o" 360 md_unwind_header=aarch64/linux-unwind.h 361 tmake_file="${tmake_file} ${cpu_type}/t-aarch64" 362 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" 363 ;; 364alpha*-*-linux*) 365 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux" 366 extra_parts="$extra_parts crtfastmath.o" 367 md_unwind_header=alpha/linux-unwind.h 368 ;; 369alpha*-*-freebsd*) 370 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm" 371 extra_parts="$extra_parts crtbeginT.o crtfastmath.o" 372 ;; 373alpha*-*-netbsd*) 374 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" 375 ;; 376alpha*-*-openbsd*) 377 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" 378 ;; 379alpha64-dec-*vms*) 380 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms" 381 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o" 382 md_unwind_header=alpha/vms-unwind.h 383 ;; 384alpha*-dec-*vms*) 385 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms" 386 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o" 387 md_unwind_header=alpha/vms-unwind.h 388 ;; 389arc*-*-elf*) 390 tmake_file="arc/t-arc" 391 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o" 392 extra_parts="$extra_parts crttls.o" 393 ;; 394arc*-*-linux*) 395 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc" 396 extra_parts="$extra_parts crti.o crtn.o" 397 extra_parts="$extra_parts crttls.o" 398 ;; 399arm-wrs-vxworks) 400 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" 401 extra_parts="$extra_parts crti.o crtn.o" 402 ;; 403arm*-*-freebsd*) # ARM FreeBSD EABI 404 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf" 405 tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd" 406 tm_file="${tm_file} arm/bpabi-lib.h" 407 unwind_header=config/arm/unwind-arm.h 408 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" 409 ;; 410arm*-*-netbsdelf*) 411 tmake_file="$tmake_file arm/t-arm" 412 case ${host} in 413 arm*-*-netbsdelf-*eabi*) 414 tmake_file="${tmake_file} arm/t-netbsd-eabi" 415 unwind_header=config/arm/unwind-arm.h 416 ;; 417 *) 418 tmake_file="${tmake_file} arm/t-netbsd t-slibgcc-gld-nover" 419 ;; 420 esac 421 ;; 422arm*-*-linux*) # ARM GNU/Linux with ELF 423 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm" 424 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc" 425 tm_file="$tm_file arm/bpabi-lib.h" 426 unwind_header=config/arm/unwind-arm.h 427 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" 428 extra_parts="$extra_parts crtfastmath.o" 429 ;; 430arm*-*-uclinux*) # ARM ucLinux 431 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm" 432 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" 433 tmake_file="${tmake_file} arm/t-bpabi" 434 tm_file="$tm_file arm/bpabi-lib.h" 435 unwind_header=config/arm/unwind-arm.h 436 extra_parts="$extra_parts crti.o crtn.o" 437 ;; 438arm*-*-phoenix*) 439 tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix" 440 tmake_file="${tmake_file} arm/t-bpabi" 441 tm_file="$tm_file arm/bpabi-lib.h" 442 extra_parts="crtbegin.o crtend.o crti.o crtn.o" 443 unwind_header=config/arm/unwind-arm.h 444 ;; 445arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*) 446 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix" 447 tm_file="$tm_file arm/bpabi-lib.h" 448 case ${host} in 449 arm*-*-eabi* | arm*-*-rtems*) 450 tmake_file="${tmake_file} arm/t-bpabi t-crtfm" 451 extra_parts="crtbegin.o crtend.o crti.o crtn.o" 452 ;; 453 arm*-*-symbianelf*) 454 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override" 455 tm_file="$tm_file arm/symbian-lib.h" 456 # Symbian OS provides its own startup code. 457 ;; 458 esac 459 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" 460 extra_parts="$extra_parts crtfastmath.o" 461 unwind_header=config/arm/unwind-arm.h 462 ;; 463avr-*-*) 464 # Make HImode functions for AVR 465 tmake_file="${cpu_type}/t-avr t-fpbit" 466 if test x${with_avrlibc} != xno; then 467 tmake_file="$tmake_file ${cpu_type}/t-avrlibc" 468 fi 469 tm_file="$tm_file avr/avr-lib.h" 470 ;; 471bfin*-elf*) 472 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit" 473 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o" 474 ;; 475bfin*-uclinux*) 476 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit" 477 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o" 478 md_unwind_header=bfin/linux-unwind.h 479 ;; 480bfin*-linux-uclibc*) 481 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux" 482 # No need to build crtbeginT.o on uClibc systems. Should probably 483 # be moved to the OS specific section above. 484 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" 485 md_unwind_header=bfin/linux-unwind.h 486 ;; 487bfin*-rtems*) 488 tmake_file="$tmake_file bfin/t-bfin t-fdpbit" 489 extra_parts="$extra_parts crti.o crtn.o" 490 ;; 491bfin*-*) 492 tmake_file="$tmake_file bfin/t-bfin t-fdpbit" 493 extra_parts="crtbegin.o crtend.o crti.o crtn.o" 494 ;; 495cr16-*-elf) 496 tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit" 497 extra_parts="$extra_parts crti.o crtn.o crtlibid.o" 498 ;; 499crisv32-*-elf) 500 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp" 501 ;; 502cris-*-elf) 503 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti" 504 ;; 505cris-*-linux* | crisv32-*-linux*) 506 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux" 507 ;; 508epiphany-*-elf* | epiphany-*-rtems*) 509 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf" 510 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o" 511 ;; 512fr30-*-elf) 513 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit" 514 extra_parts="$extra_parts crti.o crtn.o" 515 ;; 516frv-*-elf) 517 tmake_file="$tmake_file frv/t-frv t-fdpbit" 518 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h" 519 # Don't use crtbegin.o, crtend.o. 520 extra_parts="frvbegin.o frvend.o" 521 ;; 522frv-*-*linux*) 523 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit" 524 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h" 525 ;; 526ft32-*-elf) 527 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp" 528 extra_parts="$extra_parts crti.o crti-hw.o crtn.o" 529 ;; 530h8300-*-elf*) 531 tmake_file="$tmake_file h8300/t-h8300 t-fpbit" 532 tm_file="$tm_file h8300/h8300-lib.h" 533 extra_parts="$extra_parts crti.o crtn.o" 534 ;; 535h8300-*-linux*) 536 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp" 537 tm_file="$tm_file h8300/h8300-lib.h" 538 ;; 539hppa*64*-*-linux*) 540 tmake_file="$tmake_file pa/t-linux pa/t-linux64" 541 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" 542 ;; 543hppa*-*-linux*) 544 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc" 545 # Set the libgcc version number 546 if test x$ac_cv_sjlj_exceptions = xyes; then 547 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" 548 else 549 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" 550 fi 551 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" 552 md_unwind_header=pa/linux-unwind.h 553 ;; 554hppa[12]*-*-hpux10*) 555 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc" 556 # Set the libgcc version number 557 if test x$ac_cv_sjlj_exceptions = xyes; then 558 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" 559 else 560 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" 561 fi 562 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux" 563 md_unwind_header=pa/hpux-unwind.h 564 ;; 565hppa*64*-*-hpux11*) 566 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc" 567 # Set the libgcc version number 568 if test x$ac_cv_sjlj_exceptions = xyes; then 569 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" 570 else 571 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" 572 fi 573 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux" 574 tm_file="$tm_file pa/pa64-hpux-lib.h" 575 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \ 576 libgcc_stub.a" 577 md_unwind_header=pa/hpux-unwind.h 578 ;; 579hppa[12]*-*-hpux11*) 580 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc" 581 # Set the libgcc version number 582 if test x$ac_cv_sjlj_exceptions = xyes; then 583 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" 584 else 585 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" 586 fi 587 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux" 588 extra_parts="libgcc_stub.a" 589 md_unwind_header=pa/hpux-unwind.h 590 ;; 591hppa*-*-openbsd*) 592 tmake_file="$tmake_file pa/t-openbsd" 593 ;; 594hppa*-*-netbsd*) 595 tmake_file="$tmake_file pa/t-netbsd" 596 ;; 597i[34567]86-*-darwin*) 598 tmake_file="$tmake_file i386/t-crtpc t-crtfm" 599 tm_file="$tm_file i386/darwin-lib.h" 600 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" 601 ;; 602x86_64-*-darwin*) 603 tmake_file="$tmake_file i386/t-crtpc t-crtfm" 604 tm_file="$tm_file i386/darwin-lib.h" 605 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" 606 ;; 607i[34567]86-*-elfiamcu) 608 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/32/t-iamcu i386/t-softfp t-softfp t-dfprules" 609 ;; 610i[34567]86-*-elf*) 611 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic" 612 ;; 613x86_64-*-elf* | x86_64-*-rtems*) 614 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic" 615 ;; 616i[34567]86-*-dragonfly*) 617 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" 618 md_unwind_header=i386/dragonfly-unwind.h 619 ;; 620x86_64-*-dragonfly*) 621 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" 622 md_unwind_header=i386/dragonfly-unwind.h 623 ;; 624i[34567]86-*-freebsd*) 625 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" 626 md_unwind_header=i386/freebsd-unwind.h 627 ;; 628x86_64-*-freebsd*) 629 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" 630 md_unwind_header=i386/freebsd-unwind.h 631 ;; 632i[34567]86-*-netbsdelf*) 633 tmake_file="${tmake_file} i386/t-crtstuff" 634 ;; 635x86_64-*-netbsd*) 636 tmake_file="${tmake_file} i386/t-crtstuff" 637 ;; 638i[34567]86-*-openbsd*) 639 ;; 640x86_64-*-openbsd*) 641 ;; 642i[34567]86-*-linux*) 643 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" 644 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" 645 tm_file="${tm_file} i386/elf-lib.h" 646 md_unwind_header=i386/linux-unwind.h 647 ;; 648i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu) 649 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" 650 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" 651 tm_file="${tm_file} i386/elf-lib.h" 652 ;; 653x86_64-*-linux*) 654 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" 655 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" 656 tm_file="${tm_file} i386/elf-lib.h" 657 md_unwind_header=i386/linux-unwind.h 658 ;; 659x86_64-*-kfreebsd*-gnu) 660 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" 661 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" 662 tm_file="${tm_file} i386/elf-lib.h" 663 ;; 664i[34567]86-pc-msdosdjgpp*) 665 ;; 666i[34567]86-*-lynxos*) 667 ;; 668i[34567]86-*-nto-qnx*) 669 tmake_file="$tmake_file i386/t-nto t-libgcc-pic" 670 extra_parts=crtbegin.o 671 ;; 672i[34567]86-*-rtems*) 673 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp" 674 extra_parts="$extra_parts crti.o crtn.o" 675 ;; 676i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) 677 tmake_file="$tmake_file i386/t-crtpc t-crtfm" 678 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" 679 tm_file="${tm_file} i386/elf-lib.h" 680 md_unwind_header=i386/sol2-unwind.h 681 ;; 682i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae) 683 ;; 684i[34567]86-*-cygwin*) 685 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o" 686 if test x$enable_vtable_verify = xyes; then 687 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" 688 fi 689 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h 690 if test x$ac_cv_sjlj_exceptions = xyes; then 691 tmake_eh_file="i386/t-sjlj-eh" 692 else 693 tmake_eh_file="i386/t-dw2-eh" 694 fi 695 # Shared libgcc DLL install dir depends on cross/native build. 696 if test x${build} = x${host} ; then 697 tmake_dlldir_file="i386/t-dlldir" 698 else 699 tmake_dlldir_file="i386/t-dlldir-x" 700 fi 701 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin t-crtfm i386/t-chkstk t-dfprules" 702 ;; 703x86_64-*-cygwin*) 704 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o" 705 if test x$enable_vtable_verify = xyes; then 706 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" 707 fi 708 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h 709 if test x$ac_cv_sjlj_exceptions = xyes; then 710 tmake_eh_file="i386/t-sjlj-eh" 711 elif test "${host_address}" = 32; then 712 # biarch -m32 with --disable-sjlj-exceptions 713 tmake_eh_file="i386/t-dw2-eh" 714 else 715 tmake_eh_file="i386/t-seh-eh" 716 fi 717 # Shared libgcc DLL install dir depends on cross/native build. 718 if test x${build} = x${host} ; then 719 tmake_dlldir_file="i386/t-dlldir" 720 else 721 tmake_dlldir_file="i386/t-dlldir-x" 722 fi 723 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that 724 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin t-crtfm t-dfprules i386/t-chkstk" 725 ;; 726i[34567]86-*-mingw*) 727 extra_parts="crtbegin.o crtend.o crtfastmath.o" 728 if test x$enable_vtable_verify = xyes; then 729 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" 730 fi 731 case ${target_thread_file} in 732 win32) 733 tmake_file="$tmake_file i386/t-gthr-win32" 734 ;; 735 posix) 736 tmake_file="i386/t-mingw-pthread $tmake_file" 737 ;; 738 esac 739 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h 740 if test x$ac_cv_sjlj_exceptions = xyes; then 741 tmake_eh_file="i386/t-sjlj-eh" 742 else 743 tmake_eh_file="i386/t-dw2-eh" 744 md_unwind_header=i386/w32-unwind.h 745 fi 746 # Shared libgcc DLL install dir depends on cross/native build. 747 if test x${build} = x${host} ; then 748 tmake_dlldir_file="i386/t-dlldir" 749 else 750 tmake_dlldir_file="i386/t-dlldir-x" 751 fi 752 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-mingw32 t-crtfm i386/t-chkstk t-dfprules" 753 ;; 754x86_64-*-mingw*) 755 case ${target_thread_file} in 756 win32) 757 tmake_file="$tmake_file i386/t-gthr-win32" 758 ;; 759 posix) 760 tmake_file="i386/t-mingw-pthread $tmake_file" 761 ;; 762 esac 763 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h 764 if test x$ac_cv_sjlj_exceptions = xyes; then 765 tmake_eh_file="i386/t-sjlj-eh" 766 elif test "${host_address}" = 32; then 767 # biarch -m32 with --disable-sjlj-exceptions 768 tmake_eh_file="i386/t-dw2-eh" 769 md_unwind_header=i386/w32-unwind.h 770 else 771 tmake_eh_file="i386/t-seh-eh" 772 fi 773 # Shared libgcc DLL install dir depends on cross/native build. 774 if test x${build} = x${host} ; then 775 tmake_dlldir_file="i386/t-dlldir" 776 else 777 tmake_dlldir_file="i386/t-dlldir-x" 778 fi 779 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-mingw32 t-dfprules t-crtfm i386/t-chkstk" 780 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o" 781 if test x$enable_vtable_verify = xyes; then 782 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" 783 fi 784 ;; 785ia64*-*-elf*) 786 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o" 787 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm t-softfp-tf ia64/t-softfp t-softfp ia64/t-softfp-compat" 788 ;; 789ia64*-*-freebsd*) 790 extra_parts="$extra_parts crtfastmath.o" 791 tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm t-softfp-tf ia64/t-softfp t-softfp ia64/t-softfp-compat" 792 ;; 793ia64*-*-linux*) 794 # Don't use crtbeginT.o from *-*-linux* default. 795 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" 796 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" 797 if test x$with_system_libunwind != xyes ; then 798 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind" 799 fi 800 md_unwind_header=ia64/linux-unwind.h 801 ;; 802ia64*-*-netbsd*) 803 extra_parts="${extra_parts} crtfastmath.o" 804 tmake_file="${tmake_file} ia64/t-ia64 ia64/t-ia64-elf t-crtfm ia64/t-softfp t-softfp ia64/t-eh-ia64" 805 ;; 806ia64*-*-hpux*) 807 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux" 808 ;; 809ia64-hp-*vms*) 810 tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 ia64/t-vms t-slibgcc-vms t-softfp-tf ia64/t-softfp t-softfp" 811 extra_parts="$extra_parts crtinitS.o" 812 md_unwind_header=ia64/vms-unwind.h 813 ;; 814iq2000*-*-elf*) 815 tmake_file="iq2000/t-iq2000 t-fdpbit" 816 # Don't use default. 817 extra_parts= 818 ;; 819lm32-*-elf*) 820 extra_parts="$extra_parts crti.o crtn.o" 821 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp" 822 ;; 823lm32-*-rtems*) 824 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp" 825 extra_parts="$extra_parts crti.o crtn.o" 826 ;; 827lm32-*-uclinux*) 828 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o" 829 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp" 830 ;; 831m32r-*-elf*) 832 tmake_file="$tmake_file m32r/t-m32r t-fdpbit" 833 extra_parts="$extra_parts crtinit.o crtfini.o" 834 ;; 835m32rle-*-elf*) 836 tmake_file=t-fdpbit 837 ;; 838m32r-*-linux*) 839 tmake_file="$tmake_file m32r/t-linux t-fdpbit" 840 ;; 841m32rle-*-linux*) 842 tmake_file="$tmake_file m32r/t-linux t-fdpbit" 843 ;; 844m68k-*-elf* | fido-*-elf) 845 tmake_file="$tmake_file m68k/t-floatlib" 846 ;; 847m5407-*-netbsdelf*) 848 ;; 849m68k*-*-netbsdelf* | m68010-*-netbsdelf*) 850 tmake_file="$tmake_file m68k/t-floatlib" 851 ;; 852m68k*-*-openbsd*) 853 ;; 854m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc 855 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux" 856 md_unwind_header=m68k/linux-unwind.h 857 ;; 858m68k-*-linux*) # Motorola m68k's running GNU/Linux 859 # with ELF format using glibc 2 860 # aka the GNU/Linux C library 6. 861 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux" 862 # If not configured with setjmp/longjmp exceptions, bump the 863 # libgcc version number. 864 if test x$ac_cv_sjlj_exceptions != xyes; then 865 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver" 866 fi 867 md_unwind_header=m68k/linux-unwind.h 868 ;; 869m68k-*-rtems*) 870 tmake_file="$tmake_file m68k/t-floatlib" 871 extra_parts="$extra_parts crti.o crtn.o" 872 ;; 873mcore-*-elf) 874 tmake_file="mcore/t-mcore t-fdpbit" 875 extra_parts="$extra_parts crti.o crtn.o" 876 ;; 877microblaze*-linux*) 878 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc" 879 ;; 880microblaze*-*-elf) 881 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit" 882 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o" 883 ;; 884microblaze*-*-rtems*) 885 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit" 886 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o" 887 ;; 888mips*-*-netbsd*) # NetBSD/mips, either endian. 889 if test "${libgcc_cv_mips_hard_float}" = no; then 890 # Eat soft float stuff added above since the netbsd libc provides it. 891 xtmake_file= 892 for t in ${tmake_file}; do 893 case $t in 894 *softfp*) ;; 895 *) xtmake_file="${xtmake_file} $t";; 896 esac 897 done 898 tmake_file="${xtmake_file}" 899 fi 900 ;; 901mips*-*-linux*) # Linux MIPS, either endian. 902 extra_parts="$extra_parts crtfastmath.o" 903 tmake_file="${tmake_file} t-crtfm" 904 case ${host} in 905 mips64r5900* | mipsr5900*) 906 # The MIPS16 support code uses floating point 907 # instructions that are not supported on r5900. 908 ;; 909 *) 910 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc" 911 ;; 912 esac 913 md_unwind_header=mips/linux-unwind.h 914 ;; 915mips*-sde-elf*) 916 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16" 917 case "${with_newlib}" in 918 yes) 919 # newlib / libgloss. 920 ;; 921 *) 922 # MIPS toolkit libraries. 923 tmake_file="$tmake_file mips/t-sdemtk" 924 ;; 925 esac 926 extra_parts="$extra_parts crti.o crtn.o" 927 ;; 928mipsisa32-*-elf* | mipsisa32el-*-elf* | \ 929mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \ 930mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \ 931mipsisa64-*-elf* | mipsisa64el-*-elf* | \ 932mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \ 933mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*) 934 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" 935 extra_parts="$extra_parts crti.o crtn.o" 936 ;; 937mipsisa64sr71k-*-elf*) 938 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit" 939 extra_parts="$extra_parts crti.o crtn.o" 940 ;; 941mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*) 942 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" 943 extra_parts="$extra_parts crti.o crtn.o" 944 ;; 945mips-*-elf* | mipsel-*-elf*) 946 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" 947 extra_parts="$extra_parts crti.o crtn.o" 948 ;; 949mipsr5900-*-elf* | mipsr5900el-*-elf*) 950 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff" 951 extra_parts="$extra_parts crti.o crtn.o" 952 ;; 953mips64-*-elf* | mips64el-*-elf*) 954 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" 955 extra_parts="$extra_parts crti.o crtn.o" 956 ;; 957mips64r5900-*-elf* | mips64r5900el-*-elf*) 958 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff" 959 extra_parts="$extra_parts crti.o crtn.o" 960 ;; 961mips64vr-*-elf* | mips64vrel-*-elf*) 962 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff" 963 extra_parts="$extra_parts crti.o crtn.o" 964 ;; 965mips64orion-*-elf* | mips64orionel-*-elf*) 966 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" 967 extra_parts="$extra_parts crti.o crtn.o" 968 ;; 969mips*-*-rtems*) 970 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" 971 extra_parts="$extra_parts crti.o crtn.o" 972 ;; 973mips-wrs-vxworks) 974 ;; 975mipstx39-*-elf* | mipstx39el-*-elf*) 976 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16" 977 ;; 978mmix-knuth-mmixware) 979 extra_parts="crti.o crtn.o crtbegin.o crtend.o" 980 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}" 981 ;; 982mn10300-*-*) 983 tmake_file=t-fdpbit 984 ;; 985moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*) 986 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp" 987 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o" 988 ;; 989msp430*-*-elf) 990 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430" 991 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a" 992 ;; 993or1k*-*-linux* | or1k*-*-uclinux*) 994 tmake_file="$tmake_file or1k/t-or1k or1k/t-linux or1k/t-crtstuff t-softfp-sfdf t-softfp" 995 md_unwind_header=or1k/linux-unwind.h 996 ;; 997or1k*-*-netbsd*) 998 tmake_file="$tmake_file or1k/t-or1k" 999 ;; 1000or1k*-*-*) 1001 tmake_file="$tmake_file or1k/t-or1k or1k/t-linux or1k/t-crtstuff t-softfp-sfdf t-softfp" 1002 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o crti.o crtn.o" 1003 ;; 1004nds32*-elf*) 1005 # Basic makefile fragment and extra_parts for crt stuff. 1006 # We also append c-isr library implementation. 1007 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr" 1008 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a" 1009 # Append library definition makefile fragment according to --with-nds32-lib=X setting. 1010 case "${with_nds32_lib}" in 1011 "" | newlib) 1012 # Append library definition makefile fragment t-nds32-newlib. 1013 # Append 'soft-fp' software floating point make rule fragment provided by gcc. 1014 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp" 1015 ;; 1016 mculib) 1017 # Append library definition makefile fragment t-nds32-mculib. 1018 # The software floating point library is included in mculib. 1019 tmake_file="${tmake_file} nds32/t-nds32-mculib" 1020 ;; 1021 *) 1022 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2 1023 exit 1 1024 ;; 1025 esac 1026 ;; 1027nios2-*-linux*) 1028 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc" 1029 md_unwind_header=nios2/linux-unwind.h 1030 ;; 1031nios2-*-*) 1032 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp" 1033 extra_parts="$extra_parts crti.o crtn.o" 1034 ;; 1035pdp11-*-*) 1036 tmake_file="pdp11/t-pdp11 t-fdpbit" 1037 ;; 1038powerpc-*-darwin*) 1039 case ${host} in 1040 *-*-darwin9* | *-*-darwin[12][0-9]*) 1041 # libSystem contains unwind information for signal frames since 1042 # Darwin 9. 1043 ;; 1044 *) 1045 md_unwind_header=rs6000/darwin-unwind.h 1046 ;; 1047 esac 1048 tmake_file="$tmake_file rs6000/t-ibm-ldouble" 1049 extra_parts="$extra_parts crt2.o" 1050 ;; 1051powerpc64-*-darwin*) 1052 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble" 1053 extra_parts="$extra_parts crt2.o" 1054 ;; 1055powerpc*-*-freebsd*) 1056 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp" 1057 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" 1058 case ${host} in 1059 powerpc64*) 1060 tmake_file="${tmake_file} rs6000/t-freebsd64" 1061 md_unwind_header=rs6000/freebsd-unwind.h 1062 ;; 1063 esac 1064 ;; 1065powerpc*-*-netbsd*) 1066 tmake_file="${tmake_file} rs6000/t-netbsd rs6000/t-crtstuff" 1067 ;; 1068powerpc-*-eabispe*) 1069 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" 1070 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" 1071 ;; 1072powerpc-*-eabisimaltivec*) 1073 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" 1074 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" 1075 ;; 1076powerpc-*-eabisim*) 1077 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" 1078 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" 1079 ;; 1080powerpc-*-elf*) 1081 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" 1082 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" 1083 ;; 1084powerpc-*-eabialtivec*) 1085 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" 1086 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" 1087 ;; 1088powerpc-xilinx-eabi*) 1089 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" 1090 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" 1091 ;; 1092powerpc-*-eabi*) 1093 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" 1094 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" 1095 ;; 1096powerpc-*-rtems*) 1097 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" 1098 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" 1099 ;; 1100powerpc*-*-linux*) 1101 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-linux t-dfprules rs6000/t-ppc64-fp t-slibgcc-libgcc" 1102 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000" 1103 case $ppc_fp_type in 1104 64) 1105 ;; 1106 hard) 1107 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp" 1108 ;; 1109 soft) 1110 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp" 1111 ;; 1112 e500v1) 1113 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp" 1114 ;; 1115 e500v2) 1116 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp" 1117 ;; 1118 *) 1119 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2 1120 exit 1 1121 ;; 1122 esac 1123 1124 if test $libgcc_cv_powerpc_float128 = yes; then 1125 tmake_file="${tmake_file} rs6000/t-float128" 1126 fi 1127 1128 if test $libgcc_cv_powerpc_float128_hw = yes; then 1129 tmake_file="${tmake_file} rs6000/t-float128-hw" 1130 fi 1131 1132 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o" 1133 md_unwind_header=rs6000/linux-unwind.h 1134 ;; 1135powerpc-wrs-vxworks|powerpc-wrs-vxworksae|powerpc-wrs-vxworksmils) 1136 tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit" 1137 ;; 1138powerpc-*-lynxos*) 1139 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit" 1140 ;; 1141powerpcle-*-elf*) 1142 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" 1143 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" 1144 ;; 1145powerpcle-*-eabisim*) 1146 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" 1147 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" 1148 ;; 1149powerpcle-*-eabi*) 1150 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" 1151 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" 1152 ;; 1153riscv*-*-linux*) 1154 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}" 1155 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o" 1156 md_unwind_header=riscv/linux-unwind.h 1157 ;; 1158riscv*-*-netbsd*) 1159 # nothing needed for NetBSD 1160 ;; 1161riscv*-*-*) 1162 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}" 1163 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o" 1164 ;; 1165rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) 1166 md_unwind_header=rs6000/aix-unwind.h 1167 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble" 1168 ;; 1169rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*) 1170 md_unwind_header=rs6000/aix-unwind.h 1171 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble" 1172 ;; 1173rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) 1174 md_unwind_header=rs6000/aix-unwind.h 1175 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa" 1176 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o" 1177 ;; 1178rl78-*-elf) 1179 tmake_file="$tm_file t-fdpbit rl78/t-rl78" 1180 ;; 1181rx-*-elf) 1182 tmake_file="rx/t-rx t-fdpbit" 1183 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h" 1184 ;; 1185s390-*-linux*) 1186 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390" 1187 md_unwind_header=s390/linux-unwind.h 1188 ;; 1189s390x-*-linux*) 1190 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390" 1191 if test "${host_address}" = 32; then 1192 tmake_file="${tmake_file} s390/32/t-floattodi" 1193 fi 1194 md_unwind_header=s390/linux-unwind.h 1195 ;; 1196s390x-ibm-tpf*) 1197 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip" 1198 extra_parts="crtbeginS.o crtendS.o" 1199 md_unwind_header=s390/tpf-unwind.h 1200 ;; 1201sh-*-elf* | sh[12346l]*-*-elf*) 1202 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit" 1203 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \ 1204 libic_invalidate_array_4-100.a \ 1205 libic_invalidate_array_4-200.a \ 1206 libic_invalidate_array_4a.a \ 1207 libgcc-Os-4-200.a libgcc-4-300.a" 1208 case ${host} in 1209 sh*-superh-elf) 1210 tmake_file="$tmake_file sh/t-superh" 1211 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o" 1212 ;; 1213 esac 1214 ;; 1215sh-*-linux* | sh[2346lbe]*-*-linux*) 1216 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit" 1217 md_unwind_header=sh/linux-unwind.h 1218 ;; 1219sh-*-netbsdelf* | shl*-*-netbsdelf*) 1220 tmake_file="$tmake_file sh/t-sh sh/t-netbsd" 1221 1222 # NetBSD's C library includes a fast software FP library that 1223 # has support for setting/setting the rounding mode, exception 1224 # mask, etc. Therefore, we don't want to include software FP 1225 # in libgcc. 1226 ;; 1227sh-*-rtems*) 1228 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit" 1229 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \ 1230 libic_invalidate_array_4-100.a \ 1231 libic_invalidate_array_4-200.a \ 1232 libic_invalidate_array_4a.a \ 1233 libgcc-Os-4-200.a libgcc-4-300.a" 1234 ;; 1235sh-wrs-vxworks) 1236 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit" 1237 ;; 1238sparc-*-netbsdelf*) 1239 ;; 1240sparc64-*-openbsd*) 1241 ;; 1242sparc-*-elf*) 1243 case ${host} in 1244 *-leon[3-9]*) 1245 ;; 1246 *) 1247 tmake_file="sparc/t-softmul" 1248 ;; 1249 esac 1250 tmake_file="${tmake_file} t-fdpbit t-crtfm" 1251 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o" 1252 ;; 1253sparc-*-linux*) # SPARC's running GNU/Linux, libc6 1254 tmake_file="${tmake_file} t-crtfm" 1255 if test "${host_address}" = 64; then 1256 tmake_file="$tmake_file sparc/t-linux64" 1257 fi 1258 case ${host} in 1259 *-leon*) 1260 tmake_file="${tmake_file} t-fdpbit" 1261 ;; 1262 *) 1263 tmake_file="${tmake_file} sparc/t-linux" 1264 ;; 1265 esac 1266 case ${host} in 1267 *-leon[3-9]*) 1268 ;; 1269 *) 1270 if test "${host_address}" = 32; then 1271 tmake_file="$tmake_file sparc/t-softmul" 1272 fi 1273 ;; 1274 esac 1275 extra_parts="$extra_parts crtfastmath.o" 1276 md_unwind_header=sparc/linux-unwind.h 1277 ;; 1278sparc-*-rtems*) 1279 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit" 1280 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o" 1281 ;; 1282sparc*-*-solaris2*) 1283 tmake_file="$tmake_file t-crtfm" 1284 extra_parts="$extra_parts crtfastmath.o" 1285 md_unwind_header=sparc/sol2-unwind.h 1286 ;; 1287sparc64-*-elf*) 1288 tmake_file="${tmake_file} t-crtfm" 1289 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o" 1290 ;; 1291sparc64-*-rtems*) 1292 tmake_file="$tmake_file t-crtfm" 1293 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o" 1294 ;; 1295sparc-wrs-vxworks) 1296 ;; 1297sparc64-*-freebsd*|ultrasparc-*-freebsd*) 1298 tmake_file="$tmake_file t-crtfm" 1299 extra_parts="$extra_parts crtfastmath.o" 1300 ;; 1301sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux 1302 extra_parts="$extra_parts crtfastmath.o" 1303 tmake_file="${tmake_file} t-crtfm sparc/t-linux" 1304 if test "${host_address}" = 64; then 1305 tmake_file="${tmake_file} sparc/t-linux64" 1306 fi 1307 if test "${host_address}" = 32; then 1308 tmake_file="${tmake_file} sparc/t-softmul" 1309 fi 1310 md_unwind_header=sparc/linux-unwind.h 1311 ;; 1312sparc64-*-netbsd*) 1313 ;; 1314spu-*-elf*) 1315 tmake_file="$tmake_file spu/t-elf t-libgcc-pic t-fdpbit" 1316 extra_parts="$extra_parts \ 1317 libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \ 1318 libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \ 1319 libgcc_cache64k.a libgcc_cache128k.a" 1320 ;; 1321tic6x-*-uclinux) 1322 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \ 1323 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \ 1324 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix" 1325 tm_file="$tm_file c6x/c6x-abi.h" 1326 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o" 1327 unwind_header=config/c6x/unwind-c6x.h 1328 ;; 1329tic6x-*-elf) 1330 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf" 1331 tm_file="$tm_file c6x/c6x-abi.h" 1332 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o" 1333 unwind_header=config/c6x/unwind-c6x.h 1334 ;; 1335tilegx*-*-linux*) 1336 if test "${host_address}" = 64; then 1337 tmake_file="${tmake_file} tilegx/t-softfp" 1338 fi 1339 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx" 1340 md_unwind_header=tilepro/linux-unwind.h 1341 ;; 1342tilepro*-*-linux*) 1343 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc" 1344 md_unwind_header=tilepro/linux-unwind.h 1345 ;; 1346v850*-*-*) 1347 tmake_file="${tmake_file} v850/t-v850 t-fdpbit" 1348 ;; 1349vax-*-linux*) 1350 tmake_file="$tmake_file vax/t-linux" 1351 ;; 1352vax-*-netbsdelf*) 1353 ;; 1354vax-*-openbsd*) 1355 ;; 1356visium-*-elf*) 1357 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o" 1358 tmake_file="visium/t-visium t-fdpbit" 1359 ;; 1360xstormy16-*-elf) 1361 tmake_file="stormy16/t-stormy16 t-fdpbit" 1362 ;; 1363xtensa*-*-elf*) 1364 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf" 1365 extra_parts="$extra_parts crti.o crtn.o" 1366 ;; 1367xtensa*-*-linux*) 1368 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc" 1369 md_unwind_header=xtensa/linux-unwind.h 1370 ;; 1371xtensa*-*-uclinux*) 1372 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc" 1373 md_unwind_header=xtensa/linux-unwind.h 1374 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o" 1375 ;; 1376am33_2.0-*-linux*) 1377 # Don't need crtbeginT.o from *-*-linux* default. 1378 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" 1379 tmake_file="$tmake_file t-fdpbit" 1380 ;; 1381m32c-*-elf*|m32c-*-rtems*) 1382 tmake_file="$tmake_file m32c/t-m32c" 1383 ;; 1384nvptx-*) 1385 tmake_file="$tmake_file nvptx/t-nvptx" 1386 extra_parts="crt0.o" 1387 ;; 1388*) 1389 echo "*** Configuration ${host} not supported" 1>&2 1390 exit 1 1391 ;; 1392esac 1393 1394case ${host} in 1395i[34567]86-*-* | x86_64-*-*) 1396 case ${host} in 1397 *-musl*) 1398 tmake_file="${tmake_file} i386/t-cpuinfo-static" 1399 ;; 1400 *) 1401 tmake_file="${tmake_file} i386/t-cpuinfo" 1402 ;; 1403 esac 1404 ;; 1405esac 1406 1407case ${host} in 1408i[34567]86-*-linux* | x86_64-*-linux* | \ 1409 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \ 1410 i[34567]86-*-gnu*) 1411 tmake_file="${tmake_file} t-tls i386/t-linux t-slibgcc-libgcc" 1412 if test "$libgcc_cv_cfi" = "yes"; then 1413 tmake_file="${tmake_file} t-stack i386/t-stack-i386" 1414 fi 1415 ;; 1416esac 1417 1418case ${host} in 1419i[34567]86-*-elfiamcu | i[34567]86-*-rtems*) 1420 # These use soft-fp for SFmode and DFmode, not just TFmode. 1421 ;; 1422i[34567]86-*-* | x86_64-*-*) 1423 tmake_file="${tmake_file} t-softfp-tf" 1424 if test "${host_address}" = 32; then 1425 tmake_file="${tmake_file} i386/${host_address}/t-softfp" 1426 fi 1427 tmake_file="${tmake_file} i386/t-softfp t-softfp" 1428 ;; 1429esac 1430 1431case ${host} in 1432i[34567]86-*-linux* | x86_64-*-linux*) 1433 # Provide backward binary compatibility for 64bit Linux/x86. 1434 if test "${host_address}" = 64; then 1435 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat" 1436 fi 1437 tm_file="${tm_file} i386/value-unwind.h" 1438 ;; 1439aarch64*-*-*) 1440 # ILP32 needs an extra header for unwinding 1441 tm_file="${tm_file} aarch64/value-unwind.h" 1442 ;; 1443esac 1444