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