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