config.host 47.1 KB
Newer Older
1
# libgcc host-specific configuration file.
2
# Copyright (C) 1997-2018 Free Software Foundation, Inc.
3 4 5 6 7

#This file is part of GCC.

#GCC is free software; you can redistribute it and/or modify it under
#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 10 11 12 13 14 15 16
#version.

#GCC is distributed in the hope that it will be useful, but WITHOUT
#ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
#FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
#for more details.

#You should have received a copy of the GNU General Public License
17 18
#along with GCC; see the file COPYING3.  If not see
#<http://www.gnu.org/licenses/>.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45

# This is the libgcc host-specific configuration file
# where a configuration type is mapped to different system-specific
# definitions and files.  This is invoked by the autoconf-generated
# configure script.  Putting it in a separate shell file lets us skip
# running autoconf when modifying host-specific information.

# This file bears an obvious resemblance to gcc/config.gcc.  The cases
# should be kept similar, to ease moving library-specific settings
# from config.gcc to this file.  That is also why tmake_file is
# left as tmake_file, rather than hmake_file, even though this library
# switches on ${host}.

# This file switches on the shell variable ${host}, and also uses the
# following shell variables:
#
#  with_*		Various variables as set by configure.

# This file sets the following shell variables for use by the
# autoconf-generated configure script:
#
#  asm_hidden_op	The assembler pseudo-op to use for hide
#			lists for object files implemented in
#			assembly (with -fvisibility=hidden for C).
#			The default is ".hidden".
#  cpu_type		The name of the cpu, if different from the first
#			chunk of the canonical host name.
46 47
#  enable_execute_stack The name of a source file implementing
#			__enable_execute_stack.
48 49 50 51 52 53
#  extra_parts		List of extra object files that should be compiled
#			for this target machine.  This may be overridden
#			by setting EXTRA_PARTS in a tmake_file fragment.
#			If either is set, EXTRA_PARTS and
#			EXTRA_MULTILIB_PARTS inherited from the GCC
#			subdirectory will be ignored.
54 55
#  md_unwind_header	The name of a header file defining
#			MD_FALLBACK_FRAME_STATE_FOR.
56 57 58
#  sfp_machine_header	The name of a sfp-machine.h header file for soft-fp.
#  			Defaults to "$cpu_type/sfp-machine.h" if it exists,
#			no-sfp-machine.h otherwise.
59
#  tmake_file		A list of machine-description-specific
60
#			makefile fragments.
61 62 63 64 65
#  tm_defines		List of target macros to define for all compilations.
#  tm_file		A list of target macro files used only for code
#			built for the target, not the host.  These files
#			are relative to $srcdir/config and must not have
#			the same names as files in $srcdir/../gcc/config.
66 67
#  unwind_header	The name of the header file declaring the unwind
#			runtime interface routines.
68 69

asm_hidden_op=.hidden
70
enable_execute_stack=
71 72
extra_parts=
tmake_file=
73 74
tm_file=
tm_define=
75
md_unwind_header=no-unwind.h
76
unwind_header=unwind-generic.h
77 78 79 80 81 82

# Set default cpu_type so it can be updated in each machine entry.
cpu_type=`echo ${host} | sed 's/-.*$//'`
case ${host} in
m32c*-*-*)
        cpu_type=m32c
83
	tmake_file=t-fdpbit
84
        ;;
Ian Bolton committed
85 86 87
aarch64*-*-*)
	cpu_type=aarch64
	;;
88 89 90 91 92 93
alpha*-*-*)
	cpu_type=alpha
	;;
am33_2.0-*-linux*)
	cpu_type=mn10300
	;;
94 95 96
arc*-*-*)
	cpu_type=arc
	;;
97 98 99
arm*-*-*)
	cpu_type=arm
	;;
100 101 102
avr-*-*)
	cpu_type=avr
	;;    
103 104 105
bfin*-*)
	cpu_type=bfin
	;;
106 107
cr16-*-*)
	;;
108 109 110
crisv32-*-*)
	cpu_type=cris
	;;
Jojo committed
111 112 113
csky*-*-*)
	cpu_type=csky
	;;
114 115 116
fido-*-*)
	cpu_type=m68k
	;;
117 118
frv*)	cpu_type=frv
	;;
119 120
ft32*)	cpu_type=ft32
	;;
Anthony Green committed
121 122
moxie*)	cpu_type=moxie
	;;
123 124 125 126 127 128 129 130
i[34567]86-*-*)
	cpu_type=i386
	;;
x86_64-*-*)
	cpu_type=i386
	;;
ia64-*-*)
	;;
131
hppa*-*-*)
132 133
	cpu_type=pa
	;;
134 135 136
lm32*-*-*)
	cpu_type=lm32
	;;
137 138 139 140 141
m32r*-*-*)
        cpu_type=m32r
        ;;
m68k-*-*)
	;;
142 143 144
microblaze*-*-*)
	cpu_type=microblaze
	;;
145
mips*-*-*)
146
	# All MIPS targets provide a full set of FP routines.
147
	cpu_type=mips
148 149 150 151 152 153
	tmake_file="mips/t-mips"
	if test "${libgcc_cv_mips_hard_float}" = yes; then
		tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
	else
		tmake_file="${tmake_file} t-softfp-sfdf"
	fi
154 155 156 157 158 159 160
	if test "${ac_cv_sizeof_long_double}" = 16; then
		tmake_file="${tmake_file} mips/t-softfp-tf"
	fi
	if test "${host_address}" = 64; then
		tmake_file="${tmake_file} mips/t-mips64"
	fi
	tmake_file="${tmake_file} t-softfp"
161
	;;
162 163 164
nds32*-*)
	cpu_type=nds32
	;;
165 166 167
nios2*-*-*)
	cpu_type=nios2
	;;
168 169 170
or1k*-*-*)
	cpu_type=or1k
	;;
171 172 173 174 175
powerpc*-*-*)
	cpu_type=rs6000
	;;
rs6000*-*-*)
	;;
Palmer Dabbelt committed
176 177 178
riscv*-*-*)
	cpu_type=riscv
	;;
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
sparc64*-*-*)
	cpu_type=sparc
	;;
sparc*-*-*)
	cpu_type=sparc
	;;
spu*-*-*)
	cpu_type=spu
	;;
s390*-*-*)
	cpu_type=s390
	;;
# Note the 'l'; we need to be able to match e.g. "shle" or "shl".
sh[123456789lbe]*-*-*)
	cpu_type=sh
	;;
Walter Lee committed
195 196 197 198 199 200
tilegx*-*-*)
	cpu_type=tilegx
	;;
tilepro*-*-*)
	cpu_type=tilepro
	;;
201 202 203
v850*-*-*)
	cpu_type=v850
	;;
204 205 206
tic6x-*-*)
	cpu_type=c6x
	;;
207 208 209 210 211 212
esac

# Common parts for widely ported systems.
case ${host} in
*-*-darwin*)
  asm_hidden_op=.private_extern
213
  tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic t-slibgcc-darwin"
214
  extra_parts="crt3.o d10-uwfef.o crttms.o crttme.o"
215
  ;;
216 217 218 219 220
*-*-dragonfly*)
  tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
  tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
  extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
  ;;
221 222 223 224
*-*-freebsd*)
  # This is the generic ELF configuration of FreeBSD.  Later
  # machine-specific sections may refine and add to this
  # configuration.
225
  tmake_file="$tmake_file t-freebsd t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
226
  extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
227 228
  case ${target_thread_file} in
    posix)
229
      tmake_file="${tmake_file} t-freebsd-thread"
230 231 232 233 234 235 236 237 238
      # Before 5.0, FreeBSD can't bind shared libraries to -lc
      # when "optionally" threaded via weak pthread_* checks.
      case ${host} in
        *-*-freebsd[34] | *-*-freebsd[34].*)
          tmake_file="${tmake_file} t-slibgcc-nolc-override"
          ;;
      esac
      ;;
  esac
239
  ;;
240 241 242 243
*-*-fuchsia*)
  tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
  extra_parts="crtbegin.o crtend.o"
  ;;
244
*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
245
  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"
246 247 248 249
  extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
  if test x$enable_vtable_verify = xyes; then
    extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
  fi
250
  ;;
251
*-*-lynxos*)
252
  tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
253 254
  extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
  ;;
255
*-*-netbsd*)
256 257
  tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
  tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
258
  tmake_file="$tmake_file t-slibgcc-libgcc"
259
  extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
260 261
  ;;
*-*-openbsd*)
262
  tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
263 264 265 266 267
  case ${target_thread_file} in
    posix)
      tmake_file="$tmake_file t-openbsd-thread"
      ;;
  esac
268 269
  ;;
*-*-rtems*)
270
  tmake_file="$tmake_file t-rtems"
271
  extra_parts="crtbegin.o crtend.o"
272
  ;;
273
*-*-solaris2*)
274 275
  # Unless linker support and dl_iterate_phdr are present,
  # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
Rainer Orth committed
276
  tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
277 278 279 280 281 282 283 284
  if test $with_gnu_ld = yes; then
    tmake_file="$tmake_file t-slibgcc-gld"
  else
    tmake_file="$tmake_file t-slibgcc-sld"
  fi
  # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
  tmake_file="$tmake_file $cpu_type/t-sol2"
  extra_parts="gmon.o crtbegin.o crtend.o"
285
  if test "${libgcc_cv_solaris_crts}" = yes; then
286
    # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
287 288
    # base system.  crtp.o and crtpg.o implement the compiler-dependent parts.
    extra_parts="$extra_parts crtp.o crtpg.o"
Rainer Orth committed
289 290
    # If the Solaris CRTs are present, both ld and gld will have PIE support.
    extra_parts="$extra_parts crtbeginS.o crtendS.o"
291 292 293 294 295 296 297 298 299 300 301 302
  else
    case ${host} in
      i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
        # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
        # part of the base system.
        ;;
      sparc*-*-solaris2.1[0-9]*)
        # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
        extra_parts="$extra_parts crt1.o gcrt1.o"
        ;;
    esac
  fi
Rainer Orth committed
303 304 305
  if test x$enable_vtable_verify = xyes; then
    extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
  fi
306
  ;;
307 308 309 310 311
*-*-uclinux*)
  extra_parts="crtbegin.o crtend.o"
  ;;
*-*-*vms*)
  tmake_file="vms/t-vms"
312
  extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
313
  ;;
314
*-*-vxworks7*)
315 316
  tmake_file=t-vxworks7
  ;;
317
*-*-vxworks*)
318
  tmake_file=t-vxworks
319 320
  ;;
*-*-elf)
321
  extra_parts="crtbegin.o crtend.o"
322 323 324 325
  ;;
esac

case ${host} in
326 327
*-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
  *-*-solaris2*)
328 329 330 331 332
  enable_execute_stack=enable-execute-stack-mprotect.c
  ;;
i[34567]86-*-mingw* | x86_64-*-mingw*)
  enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
  ;;
333 334 335
i[34567]86-*-cygwin* | x86_64-*-cygwin*)
  enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
  ;;
336 337 338 339 340 341
*)
  enable_execute_stack=enable-execute-stack-empty.c;
  ;;
esac

case ${host} in
342
aarch64*-*-elf | aarch64*-*-rtems*)
Ian Bolton committed
343
	extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
344
	extra_parts="$extra_parts crtfastmath.o"
Ian Bolton committed
345
	tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
346
	tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
347
	md_unwind_header=aarch64/aarch64-unwind.h
Ian Bolton committed
348
	;;
349 350 351 352
aarch64*-*-freebsd*)
	extra_parts="$extra_parts crtfastmath.o"
	tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
	tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
353
	md_unwind_header=aarch64/freebsd-unwind.h
354
	;;
355 356 357 358
aarch64*-*-fuchsia*)
	tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
	tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
	;;
Ian Bolton committed
359
aarch64*-*-linux*)
360
	extra_parts="$extra_parts crtfastmath.o"
Ian Bolton committed
361 362
	md_unwind_header=aarch64/linux-unwind.h
	tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
363
	tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
Ian Bolton committed
364
	;;
365
alpha*-*-linux*)
366
	tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
367
	extra_parts="$extra_parts crtfastmath.o"
368
	md_unwind_header=alpha/linux-unwind.h
369 370
	;;
alpha*-*-freebsd*)
371
	tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
372
	extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
373 374
	;;
alpha*-*-netbsd*)
375
	tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
376 377
	;;
alpha*-*-openbsd*)
378
	tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
379 380
	;;
alpha64-dec-*vms*)
381
	tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
382
	extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
383
	md_unwind_header=alpha/vms-unwind.h
384 385
	;;
alpha*-dec-*vms*)
386
	tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
387
	extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
388
	md_unwind_header=alpha/vms-unwind.h
389
	;;
390
arc*-*-elf*)
391 392 393
	tmake_file="arc/t-arc"
	extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
	extra_parts="$extra_parts crttls.o"
394
	;;
395
arc*-*-linux*)
396 397
	tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
	extra_parts="$extra_parts crti.o crtn.o"
Cupertino Miranda committed
398
	extra_parts="$extra_parts crttls.o"
399
	md_unwind_header=arc/linux-unwind.h
400
	;;
401
arm-wrs-vxworks|arm-wrs-vxworks7)
402
	tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
403
	extra_parts="$extra_parts crti.o crtn.o"
404 405 406 407 408 409 410 411 412
	case ${host} in
	*-*-vxworks7)
	  # Note that arm/t-bpabi will reset the LIB2ADDEH macro.
	  # This is intentional.
	  tmake_file="$tmake_file arm/t-bpabi arm/t-vxworks7"
	  tm_file="$tm_file arm/bpabi-lib.h"
	  unwind_header=config/arm/unwind-arm.h
	  ;;
	esac
413
	;;
414 415
arm*-*-freebsd*)                # ARM FreeBSD EABI
	tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
416
	tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
417 418 419 420
	tm_file="${tm_file} arm/bpabi-lib.h"
	unwind_header=config/arm/unwind-arm.h
	tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
	;;
421 422 423 424 425 426
arm*-*-fuchsia*)
	tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
	tmake_file="${tmake_file} arm/tsoftfp t-softfp"
	tm_file="${tm_file} arm/bpabi-lib.h"
	unwind_header=config/arm/unwind-arm.h
	;;
427
arm*-*-netbsdelf*)
428
	tmake_file="$tmake_file arm/t-arm arm/t-netbsd t-slibgcc-gld-nover"
429 430
	;;
arm*-*-linux*)			# ARM GNU/Linux with ELF
431
	tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
432 433 434
	tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
	tm_file="$tm_file arm/bpabi-lib.h"
	unwind_header=config/arm/unwind-arm.h
435
	tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
436
	extra_parts="$extra_parts crtfastmath.o"
437 438
	;;
arm*-*-uclinux*)		# ARM ucLinux
439
	tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
440
	tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
441 442 443
	tmake_file="${tmake_file} arm/t-bpabi"
	tm_file="$tm_file arm/bpabi-lib.h"
	unwind_header=config/arm/unwind-arm.h
444
	extra_parts="$extra_parts crti.o crtn.o"
445
	;;
446 447 448 449 450 451 452
arm*-*-phoenix*)
	tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
	tmake_file="${tmake_file} arm/t-bpabi"
	tm_file="$tm_file arm/bpabi-lib.h"
	extra_parts="crtbegin.o crtend.o crti.o crtn.o"
	unwind_header=config/arm/unwind-arm.h
	;;
453
arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
454
	tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
455
	tm_file="$tm_file arm/bpabi-lib.h"
456
	case ${host} in
457
	arm*-*-eabi* | arm*-*-rtems*)
458
	  tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
459
	  extra_parts="crtbegin.o crtend.o crti.o crtn.o"
460 461
	  ;;
	arm*-*-symbianelf*)
462
	  tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
463
	  tm_file="$tm_file arm/symbian-lib.h"
464
	  # Symbian OS provides its own startup code.
465 466
	  ;;
	esac
467
	tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
468
	extra_parts="$extra_parts crtfastmath.o"
469
	unwind_header=config/arm/unwind-arm.h
470 471
	;;
avr-*-*)
472 473
	# Make HImode functions for AVR
	tmake_file="${cpu_type}/t-avr t-fpbit"
474 475 476
	if test x${with_avrlibc} != xno; then
	    tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
	fi
477
	tm_file="$tm_file avr/avr-lib.h"
478 479
	;;
bfin*-elf*)
480
	tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
481
	extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
482 483
        ;;
bfin*-uclinux*)
484
	tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
485
	extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
486
	md_unwind_header=bfin/linux-unwind.h
487
        ;;
488
bfin*-linux-uclibc*)
489
	tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
490 491 492
	# No need to build crtbeginT.o on uClibc systems.  Should probably
	# be moved to the OS specific section above.
	extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
493
	md_unwind_header=bfin/linux-unwind.h
494
	;;
495
bfin*-rtems*)
496
	tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
497
	extra_parts="$extra_parts crti.o crtn.o"
498
	;;
499
bfin*-*)
500
	tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
501
	extra_parts="crtbegin.o crtend.o crti.o crtn.o"
502
        ;;
503 504 505 506
cr16-*-elf)
	tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
	extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
        ;;
507
crisv32-*-elf)
508
	tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp"
509 510
 	;;
cris-*-elf)
511
	tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
512
	;;
513
cris-*-linux* | crisv32-*-linux*)
514
	tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux"
515
	;;
Jojo committed
516 517 518 519 520 521 522 523 524
csky-*-elf*)
	tmake_file="csky/t-csky t-fdpbit"
	extra_parts="$extra_parts crti.o crtn.o"
	;;
csky-*-linux*)
	tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
	extra_parts="$extra_parts crti.o crtn.o"
	md_unwind_header=csky/linux-unwind.h
	;;
525 526
epiphany-*-elf* | epiphany-*-rtems*)
	tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
527 528
	extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
	;;
529
fr30-*-elf)
530
	tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
531
	extra_parts="$extra_parts crti.o crtn.o"
532 533
	;;
frv-*-elf)
534
	tmake_file="$tmake_file frv/t-frv t-fdpbit"
Uros Bizjak committed
535
	tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
536 537
	# Don't use crtbegin.o, crtend.o.
	extra_parts="frvbegin.o frvend.o"
538 539
	;;
frv-*-*linux*)
540
	tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
Uros Bizjak committed
541
	tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
542
	;;
543 544 545 546
ft32-*-elf)
	tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
	extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
	;;
547
h8300-*-elf*)
548
	tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
549
	tm_file="$tm_file h8300/h8300-lib.h"
550
	extra_parts="$extra_parts crti.o crtn.o"
551
	;;
552 553 554 555
h8300-*-linux*)
	tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
	tm_file="$tm_file h8300/h8300-lib.h"
	;;
556
hppa*64*-*-linux*)
557
	tmake_file="$tmake_file pa/t-linux pa/t-linux64"
558
	extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
559
	;;
560
hppa*-*-linux*)
561
	tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
562
	# Set the libgcc version number
Eric Botcazou committed
563
	if test x$ac_cv_sjlj_exceptions = xyes; then
564 565 566 567
	    tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
	else
	    tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
	fi
568
	extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
569
	md_unwind_header=pa/linux-unwind.h
570 571
	;;
hppa[12]*-*-hpux10*)
572
	tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
573
	# Set the libgcc version number
Eric Botcazou committed
574
	if test x$ac_cv_sjlj_exceptions = xyes; then
575 576 577 578 579
	    tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
	else
	    tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
	fi
	tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
580
	md_unwind_header=pa/hpux-unwind.h
581 582
	;;
hppa*64*-*-hpux11*)
583
	tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
584
	# Set the libgcc version number
Eric Botcazou committed
585
	if test x$ac_cv_sjlj_exceptions = xyes; then
586 587 588 589 590
	    tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
	else
	    tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
	fi
	tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
591
	tm_file="$tm_file pa/pa64-hpux-lib.h"
592 593
	extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
		     libgcc_stub.a"
594
	md_unwind_header=pa/hpux-unwind.h
595 596
	;;
hppa[12]*-*-hpux11*)
597
	tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
598
	# Set the libgcc version number
Eric Botcazou committed
599
	if test x$ac_cv_sjlj_exceptions = xyes; then
600 601 602 603 604
	    tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
	else
	    tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
	fi
	tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
605
	extra_parts="libgcc_stub.a"
606
	md_unwind_header=pa/hpux-unwind.h
607
	;;
608 609 610
hppa*-*-openbsd*)
	tmake_file="$tmake_file pa/t-openbsd"
	;;
611
i[34567]86-*-darwin*)
612
	tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
613
	tm_file="$tm_file i386/darwin-lib.h"
614
	extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
615 616
	;;
x86_64-*-darwin*)
617
	tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
618
	tm_file="$tm_file i386/darwin-lib.h"
619
	extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
620
	;;
621 622 623
i[34567]86-*-elfiamcu)
	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"
	;;
624
i[34567]86-*-elf*)
625
	tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
626
	;;
627
x86_64-*-elf* | x86_64-*-rtems*)
628
	tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
629 630 631 632 633
	case ${host} in
	  x86_64-*-rtems*)
	    extra_parts="$extra_parts crti.o crtn.o"
	    ;;
	esac
634
	;;
635 636 637
x86_64-*-fuchsia*)
	tmake_file="$tmake_file t-libgcc-pic"
	;;
638 639 640 641 642 643 644 645
i[34567]86-*-dragonfly*)
	tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
	md_unwind_header=i386/dragonfly-unwind.h
	;;
x86_64-*-dragonfly*)
	tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
	md_unwind_header=i386/dragonfly-unwind.h
	;;
646
i[34567]86-*-freebsd*)
647
	tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
648
	md_unwind_header=i386/freebsd-unwind.h
649 650
	;;
x86_64-*-freebsd*)
651
	tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
652
	md_unwind_header=i386/freebsd-unwind.h
653 654
	;;
i[34567]86-*-netbsdelf*)
655
	tmake_file="${tmake_file} i386/t-crtstuff"
656 657
	;;
x86_64-*-netbsd*)
658
	tmake_file="${tmake_file} i386/t-crtstuff"
659 660 661
	;;
i[34567]86-*-openbsd*)
	;;
662 663
x86_64-*-openbsd*)
	;;
Thomas Schwinge committed
664
i[34567]86-*-linux*)
665
	extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
666
	tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
Uros Bizjak committed
667
	tm_file="${tm_file} i386/elf-lib.h"
668
	md_unwind_header=i386/linux-unwind.h
669
	;;
670
i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
Thomas Schwinge committed
671
	extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
672
	tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
Uros Bizjak committed
673
	tm_file="${tm_file} i386/elf-lib.h"
Thomas Schwinge committed
674 675
	;;
x86_64-*-linux*)
676
	extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
677
	tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
Uros Bizjak committed
678
	tm_file="${tm_file} i386/elf-lib.h"
679
	md_unwind_header=i386/linux-unwind.h
680
	;;
681
x86_64-*-kfreebsd*-gnu)
Thomas Schwinge committed
682
	extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
683
	tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
Uros Bizjak committed
684
	tm_file="${tm_file} i386/elf-lib.h"
Thomas Schwinge committed
685
	;;
686 687 688 689 690
i[34567]86-pc-msdosdjgpp*)
	;;
i[34567]86-*-lynxos*)
	;;
i[34567]86-*-nto-qnx*)
691
	tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
692
	extra_parts=crtbegin.o
693 694
	;;
i[34567]86-*-rtems*)
695
	tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
696
	extra_parts="$extra_parts crti.o crtn.o"
697
	;;
698
i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
699
	tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
700
	extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
701
	tm_file="${tm_file} i386/elf-lib.h"
702
	md_unwind_header=i386/sol2-unwind.h
703
	;;
704
i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae|i[4567]86-wrs-vxworks7|x86_64-wrs-vxworks7)
705
	;;
706
i[34567]86-*-cygwin*)
707
	extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
708 709 710
	if test x$enable_vtable_verify = xyes; then
		extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
	fi
711
	# This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
Eric Botcazou committed
712
	if test x$ac_cv_sjlj_exceptions = xyes; then
713 714 715 716 717 718 719 720 721 722
		tmake_eh_file="i386/t-sjlj-eh"
	else
		tmake_eh_file="i386/t-dw2-eh"
	fi
	# Shared libgcc DLL install dir depends on cross/native build.
	if test x${build} = x${host} ; then
		tmake_dlldir_file="i386/t-dlldir"
	else
		tmake_dlldir_file="i386/t-dlldir-x"
	fi
723
	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"
724
	;;
725
x86_64-*-cygwin*)
726
	extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
727 728 729
	if test x$enable_vtable_verify = xyes; then
		extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
	fi
730
	# This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
Eric Botcazou committed
731
	if test x$ac_cv_sjlj_exceptions = xyes; then
732
		tmake_eh_file="i386/t-sjlj-eh"
733 734 735
	elif test "${host_address}" = 32; then
	        # biarch -m32 with --disable-sjlj-exceptions
	     	tmake_eh_file="i386/t-dw2-eh"
736 737 738 739 740 741 742 743 744 745
	else
		tmake_eh_file="i386/t-seh-eh"
	fi
	# Shared libgcc DLL install dir depends on cross/native build.
	if test x${build} = x${host} ; then
		tmake_dlldir_file="i386/t-dlldir"
	else
		tmake_dlldir_file="i386/t-dlldir-x"
	fi
	# FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
746
	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"
747
	;;
748 749
i[34567]86-*-mingw*)
	extra_parts="crtbegin.o crtend.o crtfastmath.o"
750 751 752
	if test x$enable_vtable_verify = xyes; then
		extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
	fi
753 754 755 756
	case ${target_thread_file} in
	  win32)
	    tmake_file="$tmake_file i386/t-gthr-win32"
	    ;;
757 758 759
	  posix)
	    tmake_file="i386/t-mingw-pthread $tmake_file"
	    ;;
760
	esac
761
	# This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
Eric Botcazou committed
762
	if test x$ac_cv_sjlj_exceptions = xyes; then
763 764 765
		tmake_eh_file="i386/t-sjlj-eh"
	else
		tmake_eh_file="i386/t-dw2-eh"
766
		md_unwind_header=i386/w32-unwind.h
767 768 769 770 771 772 773
	fi
	# Shared libgcc DLL install dir depends on cross/native build.
	if test x${build} = x${host} ; then
		tmake_dlldir_file="i386/t-dlldir"
	else
		tmake_dlldir_file="i386/t-dlldir-x"
	fi
774
	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"
775
	;;
776
x86_64-*-mingw*)
777 778 779 780
	case ${target_thread_file} in
	  win32)
	    tmake_file="$tmake_file i386/t-gthr-win32"
	    ;;
781 782 783
	  posix)
	    tmake_file="i386/t-mingw-pthread $tmake_file"
	    ;;
784
	esac
785
	# This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
Eric Botcazou committed
786
	if test x$ac_cv_sjlj_exceptions = xyes; then
787
		tmake_eh_file="i386/t-sjlj-eh"
788 789 790 791
	elif test "${host_address}" = 32; then
	        # biarch -m32 with --disable-sjlj-exceptions
	     	tmake_eh_file="i386/t-dw2-eh"
		md_unwind_header=i386/w32-unwind.h
792
	else
793
		tmake_eh_file="i386/t-seh-eh"
794 795 796 797 798 799 800
	fi
	# Shared libgcc DLL install dir depends on cross/native build.
	if test x${build} = x${host} ; then
		tmake_dlldir_file="i386/t-dlldir"
	else
		tmake_dlldir_file="i386/t-dlldir-x"
	fi
801
	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"
802
	extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
803 804 805
	if test x$enable_vtable_verify = xyes; then
		extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
	fi
806 807
	;;
ia64*-*-elf*)
808
	extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
809
	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"
810 811
	;;
ia64*-*-freebsd*)
812
	extra_parts="$extra_parts crtfastmath.o"
813
	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"
814 815
	;;
ia64*-*-linux*)
816
	# Don't use crtbeginT.o from *-*-linux* default.
817
	extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
818
	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"
819
	if test x$with_system_libunwind != xyes ; then
820
		tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
821
	fi
822
	md_unwind_header=ia64/linux-unwind.h
823 824
	;;
ia64*-*-hpux*)
825
	tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
826
	;;
827
ia64-hp-*vms*)
828
	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"
829
	extra_parts="$extra_parts crtinitS.o"
830
	md_unwind_header=ia64/vms-unwind.h
831
	;;
832
iq2000*-*-elf*)
833
	tmake_file="iq2000/t-iq2000 t-fdpbit"
834 835
	# Don't use default.
	extra_parts=
836
        ;;
837
lm32-*-elf*)
838
        extra_parts="$extra_parts crti.o crtn.o"
839
        tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
840
	;;
841 842 843 844
lm32-*-rtems*)
        tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
        extra_parts="$extra_parts crti.o crtn.o"
	;;
845
lm32-*-uclinux*)
846
        extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
847
        tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
848
	;;	
849
m32r-*-elf*)
850 851
	tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
	extra_parts="$extra_parts crtinit.o crtfini.o"
852 853
 	;;
m32rle-*-elf*)
854
	tmake_file=t-fdpbit
855 856
	;;
m32r-*-linux*)
857
	tmake_file="$tmake_file m32r/t-linux t-fdpbit"
858 859
 	;;
m32rle-*-linux*)
860
	tmake_file="$tmake_file m32r/t-linux t-fdpbit"
861
	;;
862 863
m68k-*-elf* | fido-*-elf)
	tmake_file="$tmake_file m68k/t-floatlib"
864
	;;
865
m68k*-*-netbsdelf*)
866 867 868
	;;
m68k*-*-openbsd*)
	;;
869 870
m68k-*-uclinux*)	# Motorola m68k/ColdFire running uClinux with uClibc
	tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
871
	md_unwind_header=m68k/linux-unwind.h
872
	;;
873
m68k-*-linux*)			# Motorola m68k's running GNU/Linux
874 875
				# with ELF format using glibc 2
				# aka the GNU/Linux C library 6.
876
	tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
Eric Botcazou committed
877
	# If not configured with setjmp/longjmp exceptions, bump the
878
	# libgcc version number.
Eric Botcazou committed
879
	if test x$ac_cv_sjlj_exceptions != xyes; then
880 881
	    tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
	fi
882
	md_unwind_header=m68k/linux-unwind.h
883 884
	;;
m68k-*-rtems*)
885
	tmake_file="$tmake_file m68k/t-floatlib"
886
	extra_parts="$extra_parts crti.o crtn.o"
887 888
	;;
mcore-*-elf)
889
	tmake_file="mcore/t-mcore t-fdpbit"
890
	extra_parts="$extra_parts crti.o crtn.o"
891
	;;
892
microblaze*-linux*)
David Holsgrove committed
893
	tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
894
	;;
895 896 897
microblaze*-*-elf)
	tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
	extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
898
	;;
899 900 901 902
microblaze*-*-rtems*)
	tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
	extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
	;;
903 904 905
mips*-*-netbsd*)			# NetBSD/mips, either endian.
	;;
mips*-*-linux*)				# Linux MIPS, either endian.
906
	extra_parts="$extra_parts crtfastmath.o"
Jürgen Urban committed
907 908
	tmake_file="${tmake_file} t-crtfm"
	case ${host} in
909 910 911 912 913 914 915
	  mips64r5900* | mipsr5900*)
	    # The MIPS16 support code uses floating point
	    # instructions that are not supported on r5900.
	    ;;
	  *)
	    tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
	    ;;
Jürgen Urban committed
916
	esac
917
	md_unwind_header=mips/linux-unwind.h
918
	;;
919
mips*-sde-elf*)
920
	tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
921 922 923 924 925 926
	case "${with_newlib}" in
	  yes)
	    # newlib / libgloss.
	    ;;
	  *)
	    # MIPS toolkit libraries.
927
	    tmake_file="$tmake_file mips/t-sdemtk"
928 929
	    ;;
	esac
930
	extra_parts="$extra_parts crti.o crtn.o"
931
	;;
Rainer Orth committed
932 933
mipsisa32-*-elf* | mipsisa32el-*-elf* | \
mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
934
mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
Rainer Orth committed
935
mipsisa64-*-elf* | mipsisa64el-*-elf* | \
936 937
mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
938
	tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
939
	extra_parts="$extra_parts crti.o crtn.o"
940
	;;
941
mipsisa64sr71k-*-elf*)
942
	tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
943
	extra_parts="$extra_parts crti.o crtn.o"
944 945
        ;;
mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
946
	tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
947
	extra_parts="$extra_parts crti.o crtn.o"
948 949
	;;
mips-*-elf* | mipsel-*-elf*)
950
	tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
951
	extra_parts="$extra_parts crti.o crtn.o"
952
	;;
Jürgen Urban committed
953 954 955 956
mipsr5900-*-elf* | mipsr5900el-*-elf*)
	tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
	extra_parts="$extra_parts crti.o crtn.o"
	;;
957
mips64-*-elf* | mips64el-*-elf*)
958
	tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
959
	extra_parts="$extra_parts crti.o crtn.o"
960
	;;
Jürgen Urban committed
961 962 963 964
mips64r5900-*-elf* | mips64r5900el-*-elf*)
	tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
	extra_parts="$extra_parts crti.o crtn.o"
	;;
965
mips64vr-*-elf* | mips64vrel-*-elf*)
966
	tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
967
	extra_parts="$extra_parts crti.o crtn.o"
968 969
        ;;
mips64orion-*-elf* | mips64orionel-*-elf*)
970
	tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
971
	extra_parts="$extra_parts crti.o crtn.o"
972 973
	;;
mips*-*-rtems*)
974
	tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
975
	extra_parts="$extra_parts crti.o crtn.o"
976 977 978 979
	;;
mips-wrs-vxworks)
	;;
mipstx39-*-elf* | mipstx39el-*-elf*)
980
	tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
981 982
	;;
mmix-knuth-mmixware)
983 984
	extra_parts="crti.o crtn.o crtbegin.o crtend.o"
	tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
985 986
	;;
mn10300-*-*)
987
	tmake_file=t-fdpbit
988
	;;
989
moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
990
	tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
991
	extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
Anthony Green committed
992
	;;
993 994
msp430*-*-elf)
	tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
995
        extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
996
	;;
997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013
nds32*-linux*)
	# Basic makefile fragment and extra_parts for crt stuff.
	# We also append c-isr library implementation.
	tmake_file="${tmake_file} t-slibgcc-libgcc"
	tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
	# The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
	md_unwind_header=nds32/linux-unwind.h
	# Append library definition makefile fragment according to --with-nds32-lib=X setting.
	case "${with_nds32_lib}" in
	"" | glibc | uclibc )
		;;
	*)
		echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
		exit 1
		;;
	esac
	;;
1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036
nds32*-elf*)
	# Basic makefile fragment and extra_parts for crt stuff.
	# We also append c-isr library implementation.
	tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
	extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
	# Append library definition makefile fragment according to --with-nds32-lib=X setting.
	case "${with_nds32_lib}" in
	"" | newlib)
		# Append library definition makefile fragment t-nds32-newlib.
		# Append 'soft-fp' software floating point make rule fragment provided by gcc.
		tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
		;;
	mculib)
		# Append library definition makefile fragment t-nds32-mculib.
		# The software floating point library is included in mculib.
		tmake_file="${tmake_file} nds32/t-nds32-mculib"
		;;
	*)
		echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
		exit 1
		;;
	esac
	;;
1037 1038 1039 1040 1041 1042 1043 1044
nios2-*-linux*)
	tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
	md_unwind_header=nios2/linux-unwind.h
	;;
nios2-*-*)
	tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
	extra_parts="$extra_parts crti.o crtn.o"
	;;
1045 1046 1047 1048 1049 1050 1051 1052 1053
or1k-*-linux*)
	tmake_file="$tmake_file or1k/t-or1k"
	tmake_file="$tmake_file t-softfp-sfdf t-softfp"
	md_unwind_header=or1k/linux-unwind.h
	;;
or1k-*-*)
	tmake_file="$tmake_file or1k/t-or1k"
	tmake_file="$tmake_file t-softfp-sfdf t-softfp"
	;;
1054
pdp11-*-*)
1055
	tmake_file="pdp11/t-pdp11 t-fdpbit"
1056 1057
	;;
powerpc-*-darwin*)
1058 1059 1060 1061 1062 1063 1064 1065 1066
	case ${host} in
	*-*-darwin9* | *-*-darwin[12][0-9]*)
	  # libSystem contains unwind information for signal frames since
	  # Darwin 9.
	  ;;
	*)
	  md_unwind_header=rs6000/darwin-unwind.h
	  ;;
	esac
1067
	tmake_file="$tmake_file rs6000/t-ibm-ldouble"
1068
	extra_parts="$extra_parts crt2.o"
1069 1070
	;;
powerpc64-*-darwin*)
1071
	tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1072
	extra_parts="$extra_parts crt2.o"
1073
	;;
1074 1075
powerpc*-*-freebsd*)
	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1076
	extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1077 1078 1079 1080 1081 1082
	case ${host} in
	powerpc64*)
	  tmake_file="${tmake_file} rs6000/t-freebsd64"
	  md_unwind_header=rs6000/freebsd-unwind.h
	  ;;
	esac
1083 1084
	;;
powerpc-*-netbsd*)
1085
	tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1086 1087
	;;
powerpc-*-eabispe*)
1088
	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1089
	extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1090 1091
	;;
powerpc-*-eabisimaltivec*)
1092
	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1093
	extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1094 1095
	;;
powerpc-*-eabisim*)
1096
	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1097
	extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1098 1099
	;;
powerpc-*-elf*)
1100
	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1101
	extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1102 1103
	;;
powerpc-*-eabialtivec*)
1104
	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1105
	extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1106 1107
	;;
powerpc-xilinx-eabi*)
1108
	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1109
	extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1110 1111
	;;
powerpc-*-eabi*)
1112
	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1113
	extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1114 1115
	;;
powerpc-*-rtems*)
1116
	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1117
	extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1118
	;;
1119
powerpc*-*-linux*)
1120
	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"
1121
	tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1122 1123 1124 1125 1126 1127 1128
	case $ppc_fp_type in
	64)
		;;
	hard)
		tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
		;;
	soft)
1129
		tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1130
		;;
1131
	e500v1)
1132
		tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1133 1134
		;;
	e500v2)
1135
		tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1136 1137 1138 1139 1140 1141
		;;
	*)
		echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
		exit 1
		;;
	esac
1142 1143 1144 1145 1146 1147 1148 1149 1150

	if test $libgcc_cv_powerpc_float128 = yes; then
		tmake_file="${tmake_file} rs6000/t-float128"
	fi

	if test $libgcc_cv_powerpc_float128_hw = yes; then
		tmake_file="${tmake_file} rs6000/t-float128-hw"
	fi

1151
	extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1152
	md_unwind_header=rs6000/linux-unwind.h
1153
	;;
1154
powerpc-wrs-vxworks*)
1155
	tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
1156
	extra_parts="$extra_parts crtbegin.o crtend.o"
1157 1158
	;;
powerpc-*-lynxos*)
1159
	tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1160 1161
	;;
powerpcle-*-elf*)
1162
	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1163
	extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1164 1165
	;;
powerpcle-*-eabisim*)
1166
	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1167
	extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1168 1169
	;;
powerpcle-*-eabi*)
1170
	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1171
	extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1172
	;;
Palmer Dabbelt committed
1173 1174 1175 1176 1177
riscv*-*-linux*)
	tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
	extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
	md_unwind_header=riscv/linux-unwind.h
	;;
1178 1179 1180 1181
riscv*-*-freebsd*)
	tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
	extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
	;;
Palmer Dabbelt committed
1182 1183 1184 1185
riscv*-*-*)
	tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
	extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
	;;
1186
rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1187
	md_unwind_header=rs6000/aix-unwind.h
1188
	tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1189 1190
	;;
rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1191
	md_unwind_header=rs6000/aix-unwind.h
1192
	tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1193 1194
	;;
rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1195
	md_unwind_header=rs6000/aix-unwind.h
1196
	tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1197
	extra_parts="crtcxa.o crtcxa_s.o crtdbase.o"
1198
	;;
.  
DJ Delorie committed
1199 1200 1201
rl78-*-elf)
	tmake_file="$tm_file t-fdpbit rl78/t-rl78"
	;;
1202
rx-*-elf)
1203
	tmake_file="rx/t-rx t-fdpbit"
1204
	tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1205
	;;
1206
s390-*-linux*)
1207
	tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1208
	md_unwind_header=s390/linux-unwind.h
1209 1210
	;;
s390x-*-linux*)
1211
	tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1212 1213 1214
	if test "${host_address}" = 32; then
	   tmake_file="${tmake_file} s390/32/t-floattodi"
	fi
1215
	md_unwind_header=s390/linux-unwind.h
1216 1217
	;;
s390x-ibm-tpf*)
1218
	tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
1219
	extra_parts="crtbeginS.o crtendS.o"
1220
	md_unwind_header=s390/tpf-unwind.h
1221
	;;
1222 1223 1224 1225 1226 1227 1228
sh-*-elf* | sh[12346l]*-*-elf*)
	tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
	extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
		libic_invalidate_array_4-100.a \
		libic_invalidate_array_4-200.a \
		libic_invalidate_array_4a.a \
		libgcc-Os-4-200.a libgcc-4-300.a"
1229
	case ${host} in
1230 1231 1232 1233 1234 1235 1236
	sh*-superh-elf)
		tmake_file="$tmake_file sh/t-superh"
		extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
 		;;
 	esac
	;;
sh-*-linux* | sh[2346lbe]*-*-linux*)
1237
	tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1238 1239
	md_unwind_header=sh/linux-unwind.h
	;;
1240
sh-*-netbsdelf* | shl*-*-netbsdelf*)
1241
	tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1242

1243 1244 1245 1246
	# NetBSD's C library includes a fast software FP library that
	# has support for setting/setting the rounding mode, exception
	# mask, etc.  Therefore, we don't want to include software FP
	# in libgcc.
1247 1248
	;;
sh-*-rtems*)
1249
	tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1250
	extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1251 1252 1253 1254
		libic_invalidate_array_4-100.a \
		libic_invalidate_array_4-200.a \
		libic_invalidate_array_4a.a \
		libgcc-Os-4-200.a libgcc-4-300.a"
1255 1256
	;;
sh-wrs-vxworks)
1257
	tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1258 1259 1260 1261 1262 1263
	;;
sparc-*-netbsdelf*)
	;;
sparc64-*-openbsd*)
	;;
sparc-*-elf*)
1264 1265 1266 1267 1268 1269 1270
	case ${host} in
	*-leon[3-9]*)
		;;
	*)
	  	tmake_file="sparc/t-softmul"
	  	;;
	esac
1271 1272
	tmake_file="${tmake_file} t-fdpbit t-crtfm"
	extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1273 1274
	;;
sparc-*-linux*)		# SPARC's running GNU/Linux, libc6
1275 1276 1277 1278
	tmake_file="${tmake_file} t-crtfm"
	if test "${host_address}" = 64; then
		tmake_file="$tmake_file sparc/t-linux64"
	fi
1279 1280
	case ${host} in
	*-leon*)
1281 1282 1283 1284
		tmake_file="${tmake_file} t-fdpbit"
		;;
	*)
		tmake_file="${tmake_file} sparc/t-linux"
1285 1286
		;;
	esac
1287 1288 1289 1290
	case ${host} in
	*-leon[3-9]*)
		;;
	*)
1291 1292 1293
		if test "${host_address}" = 32; then
			tmake_file="$tmake_file sparc/t-softmul"
		fi
1294 1295
	  	;;
	esac
1296
	extra_parts="$extra_parts crtfastmath.o"
1297
	md_unwind_header=sparc/linux-unwind.h
1298
	;;
1299
sparc-*-rtems*)
1300
	tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1301
	extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1302
	;;
1303 1304 1305
sparc*-*-solaris2*)
	tmake_file="$tmake_file t-crtfm"
	extra_parts="$extra_parts crtfastmath.o"
1306
	md_unwind_header=sparc/sol2-unwind.h
1307 1308
	;;
sparc64-*-elf*)
1309 1310
	tmake_file="${tmake_file} t-crtfm"
	extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1311
	;;
1312
sparc64-*-rtems*)
1313
	tmake_file="$tmake_file t-crtfm"
1314
	extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1315
	;;
1316 1317
sparc-wrs-vxworks)
	;;
1318
sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1319
	tmake_file="$tmake_file t-crtfm"
1320
	extra_parts="$extra_parts crtfastmath.o"
1321 1322 1323
	;;
sparc64-*-linux*)		# 64-bit SPARC's running GNU/Linux
	extra_parts="$extra_parts crtfastmath.o"
1324 1325 1326 1327 1328 1329 1330
	tmake_file="${tmake_file} t-crtfm sparc/t-linux"
	if test "${host_address}" = 64; then
		tmake_file="${tmake_file} sparc/t-linux64"
	fi
	if test "${host_address}" = 32; then
		tmake_file="${tmake_file} sparc/t-softmul"
	fi
1331
	md_unwind_header=sparc/linux-unwind.h
1332 1333 1334 1335
	;;
sparc64-*-netbsd*)
	;;
spu-*-elf*)
1336
	tmake_file="$tmake_file spu/t-elf t-libgcc-pic t-fdpbit"
1337 1338 1339 1340
	extra_parts="$extra_parts \
		libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \
		libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \
		libgcc_cache64k.a libgcc_cache128k.a"
1341
	;;
1342
tic6x-*-uclinux)
1343 1344 1345
	tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
		c6x/t-elf  c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
		t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1346
	tm_file="$tm_file c6x/c6x-abi.h"
1347
	extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1348 1349
	unwind_header=config/c6x/unwind-c6x.h
	;;
1350 1351
tic6x-*-elf)
	tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1352
	tm_file="$tm_file c6x/c6x-abi.h"
1353
	extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1354
	unwind_header=config/c6x/unwind-c6x.h
1355
	;;
Walter Lee committed
1356
tilegx*-*-linux*)
1357 1358 1359 1360
	if test "${host_address}" = 64; then
		tmake_file="${tmake_file} tilegx/t-softfp"
	fi
	tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx"
1361 1362
	md_unwind_header=tilepro/linux-unwind.h
        ;;
Walter Lee committed
1363
tilepro*-*-linux*)
1364
	tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc"
1365 1366
	md_unwind_header=tilepro/linux-unwind.h
        ;;
1367
v850*-*-*)
1368
	tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1369
	;;
1370
vax-*-linux*)
1371
	tmake_file="$tmake_file vax/t-linux"
1372
	;;
1373 1374 1375 1376
vax-*-netbsdelf*)
	;;
vax-*-openbsd*)
	;;
1377 1378 1379 1380
visium-*-elf*)
        extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
        tmake_file="visium/t-visium t-fdpbit"
        ;;
1381
xstormy16-*-elf)
1382
	tmake_file="stormy16/t-stormy16 t-fdpbit"
1383
	;;
1384
xtensa*-*-elf*)
1385 1386
	tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
	extra_parts="$extra_parts crti.o crtn.o"
1387
	;;
1388
xtensa*-*-linux*)
1389
	tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1390
	md_unwind_header=xtensa/linux-unwind.h
1391
	;;
1392 1393 1394 1395 1396
xtensa*-*-uclinux*)
	tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
	md_unwind_header=xtensa/linux-unwind.h
	extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
	;;
1397
am33_2.0-*-linux*)
1398
	# Don't need crtbeginT.o from *-*-linux* default.
1399
	extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1400
	tmake_file="$tmake_file t-fdpbit"
1401
	;;
1402
m32c-*-elf*|m32c-*-rtems*)
1403
	tmake_file="$tmake_file m32c/t-m32c"
1404
 	;;
Bernd Schmidt committed
1405 1406 1407 1408
nvptx-*)
	tmake_file="$tmake_file nvptx/t-nvptx"
	extra_parts="crt0.o"
	;;
1409 1410 1411 1412 1413
*)
	echo "*** Configuration ${host} not supported" 1>&2
	exit 1
	;;
esac
1414 1415

case ${host} in
1416
i[34567]86-*-* | x86_64-*-*)
1417 1418 1419 1420 1421 1422 1423 1424
	case ${host} in
	*-musl*)
		tmake_file="${tmake_file} i386/t-cpuinfo-static"
		;;
	*)
		tmake_file="${tmake_file} i386/t-cpuinfo"
		;;
	esac
1425 1426 1427 1428
	;;
esac

case ${host} in
1429
i[34567]86-*-linux* | x86_64-*-linux* | \
1430
  i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1431
  i[34567]86-*-gnu*)
1432
	tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1433
	if test "$libgcc_cv_cfi" = "yes"; then
H.J. Lu committed
1434
		tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1435
	fi
1436 1437
	;;
esac
1438 1439

case ${host} in
1440 1441 1442 1443
i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
	# These use soft-fp for SFmode and DFmode, not just TFmode.
	;;
i[34567]86-*-* | x86_64-*-*)
1444
  	tmake_file="${tmake_file} t-softfp-tf"
1445 1446 1447
	if test "${host_address}" = 32; then
		tmake_file="${tmake_file} i386/${host_address}/t-softfp"
	fi
1448
	tmake_file="${tmake_file} i386/t-softfp t-softfp"
1449 1450 1451 1452 1453 1454 1455 1456 1457
	;;
esac

case ${host} in
i[34567]86-*-linux* | x86_64-*-linux*)
	# Provide backward binary compatibility for 64bit Linux/x86.
	if test "${host_address}" = 64; then
		tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
	fi
1458
	tm_file="${tm_file} i386/value-unwind.h"
1459
	;;
1460 1461 1462 1463
aarch64*-*-*)
	# ILP32 needs an extra header for unwinding
	tm_file="${tm_file} aarch64/value-unwind.h"
	;;
1464
esac