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