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