libgomp plugin - init string
[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 bpf-*-*)
111 cpu_type=bpf
112 ;;
113 cr16-*-*)
114 ;;
115 crisv32-*-*)
116 cpu_type=cris
117 ;;
118 csky*-*-*)
119 cpu_type=csky
120 ;;
121 fido-*-*)
122 cpu_type=m68k
123 ;;
124 frv*) cpu_type=frv
125 ;;
126 ft32*) cpu_type=ft32
127 ;;
128 moxie*) cpu_type=moxie
129 ;;
130 i[34567]86-*-*)
131 cpu_type=i386
132 ;;
133 x86_64-*-*)
134 cpu_type=i386
135 ;;
136 ia64-*-*)
137 ;;
138 hppa*-*-*)
139 cpu_type=pa
140 ;;
141 lm32*-*-*)
142 cpu_type=lm32
143 ;;
144 m32r*-*-*)
145 cpu_type=m32r
146 ;;
147 m68k-*-*)
148 ;;
149 microblaze*-*-*)
150 cpu_type=microblaze
151 ;;
152 mips*-*-*)
153 # All MIPS targets provide a full set of FP routines.
154 cpu_type=mips
155 tmake_file="mips/t-mips"
156 if test "${libgcc_cv_mips_hard_float}" = yes; then
157 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
158 else
159 tmake_file="${tmake_file} t-softfp-sfdf"
160 fi
161 if test "${ac_cv_sizeof_long_double}" = 16; then
162 tmake_file="${tmake_file} mips/t-softfp-tf"
163 fi
164 if test "${host_address}" = 64; then
165 tmake_file="${tmake_file} mips/t-mips64"
166 fi
167 tmake_file="${tmake_file} t-softfp"
168 ;;
169 nds32*-*)
170 cpu_type=nds32
171 ;;
172 nios2*-*-*)
173 cpu_type=nios2
174 ;;
175 or1k*-*-*)
176 cpu_type=or1k
177 ;;
178 powerpc*-*-*)
179 cpu_type=rs6000
180 ;;
181 pru-*-*)
182 cpu_type=pru
183 ;;
184 rs6000*-*-*)
185 ;;
186 riscv*-*-*)
187 cpu_type=riscv
188 ;;
189 sparc64*-*-*)
190 cpu_type=sparc
191 ;;
192 sparc*-*-*)
193 cpu_type=sparc
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 | *-*-uclinuxfdpiceabi)
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*-*-uclinuxfdpiceabi)
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 bpf-*-*)
530 tmake_file="$tmake_file ${cpu_type}/t-${cpu_type}"
531 extra_parts="crti.o crtn.o"
532 ;;
533 cr16-*-elf)
534 tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
535 extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
536 ;;
537 crisv32-*-elf)
538 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp"
539 ;;
540 cris-*-elf)
541 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
542 ;;
543 cris-*-linux* | crisv32-*-linux*)
544 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux"
545 ;;
546 csky-*-elf*)
547 tmake_file="csky/t-csky t-fdpbit"
548 extra_parts="$extra_parts crti.o crtn.o"
549 ;;
550 csky-*-linux*)
551 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
552 extra_parts="$extra_parts crti.o crtn.o"
553 md_unwind_header=csky/linux-unwind.h
554 ;;
555 epiphany-*-elf* | epiphany-*-rtems*)
556 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
557 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
558 ;;
559 fr30-*-elf)
560 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
561 extra_parts="$extra_parts crti.o crtn.o"
562 ;;
563 frv-*-elf)
564 tmake_file="$tmake_file frv/t-frv t-fdpbit"
565 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
566 # Don't use crtbegin.o, crtend.o.
567 extra_parts="frvbegin.o frvend.o"
568 ;;
569 frv-*-*linux*)
570 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
571 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
572 ;;
573 ft32-*-elf)
574 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
575 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
576 ;;
577 h8300-*-elf*)
578 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
579 tm_file="$tm_file h8300/h8300-lib.h"
580 extra_parts="$extra_parts crti.o crtn.o"
581 ;;
582 h8300-*-linux*)
583 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
584 tm_file="$tm_file h8300/h8300-lib.h"
585 ;;
586 hppa*64*-*-linux*)
587 tmake_file="$tmake_file pa/t-linux pa/t-linux64"
588 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
589 ;;
590 hppa*-*-linux*)
591 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
592 # Set the libgcc version number
593 if test x$ac_cv_sjlj_exceptions = xyes; then
594 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
595 else
596 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
597 fi
598 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
599 md_unwind_header=pa/linux-unwind.h
600 ;;
601 hppa[12]*-*-hpux10*)
602 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
603 # Set the libgcc version number
604 if test x$ac_cv_sjlj_exceptions = xyes; then
605 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
606 else
607 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
608 fi
609 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
610 md_unwind_header=pa/hpux-unwind.h
611 ;;
612 hppa*64*-*-hpux11*)
613 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
614 # Set the libgcc version number
615 if test x$ac_cv_sjlj_exceptions = xyes; then
616 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
617 else
618 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
619 fi
620 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
621 tm_file="$tm_file pa/pa64-hpux-lib.h"
622 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
623 libgcc_stub.a"
624 md_unwind_header=pa/hpux-unwind.h
625 ;;
626 hppa[12]*-*-hpux11*)
627 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
628 # Set the libgcc version number
629 if test x$ac_cv_sjlj_exceptions = xyes; then
630 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
631 else
632 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
633 fi
634 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
635 extra_parts="libgcc_stub.a"
636 md_unwind_header=pa/hpux-unwind.h
637 ;;
638 hppa*-*-openbsd*)
639 tmake_file="$tmake_file pa/t-openbsd"
640 ;;
641 hppa*-*-netbsd*)
642 tmake_file="$tmake_file pa/t-netbsd"
643 ;;
644 i[34567]86-*-darwin*)
645 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
646 tm_file="$tm_file i386/darwin-lib.h"
647 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
648 ;;
649 x86_64-*-darwin*)
650 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
651 tm_file="$tm_file i386/darwin-lib.h"
652 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
653 ;;
654 i[34567]86-*-elfiamcu)
655 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"
656 ;;
657 i[34567]86-*-elf*)
658 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
659 ;;
660 x86_64-*-elf* | x86_64-*-rtems*)
661 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
662 case ${host} in
663 x86_64-*-rtems*)
664 extra_parts="$extra_parts crti.o crtn.o"
665 ;;
666 esac
667 ;;
668 x86_64-*-fuchsia*)
669 tmake_file="$tmake_file t-libgcc-pic"
670 ;;
671 i[34567]86-*-dragonfly*)
672 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
673 md_unwind_header=i386/dragonfly-unwind.h
674 ;;
675 x86_64-*-dragonfly*)
676 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
677 md_unwind_header=i386/dragonfly-unwind.h
678 ;;
679 i[34567]86-*-freebsd*)
680 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
681 md_unwind_header=i386/freebsd-unwind.h
682 ;;
683 x86_64-*-freebsd*)
684 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
685 md_unwind_header=i386/freebsd-unwind.h
686 ;;
687 i[34567]86-*-netbsdelf*)
688 tmake_file="${tmake_file} i386/t-crtstuff"
689 ;;
690 x86_64-*-netbsd*)
691 tmake_file="${tmake_file} i386/t-crtstuff"
692 ;;
693 i[34567]86-*-openbsd*)
694 ;;
695 x86_64-*-openbsd*)
696 ;;
697 i[34567]86-*-linux*)
698 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
699 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
700 tm_file="${tm_file} i386/elf-lib.h"
701 md_unwind_header=i386/linux-unwind.h
702 ;;
703 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
704 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
705 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
706 tm_file="${tm_file} i386/elf-lib.h"
707 ;;
708 x86_64-*-linux*)
709 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
710 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
711 tm_file="${tm_file} i386/elf-lib.h"
712 md_unwind_header=i386/linux-unwind.h
713 ;;
714 x86_64-*-kfreebsd*-gnu)
715 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
716 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
717 tm_file="${tm_file} i386/elf-lib.h"
718 ;;
719 i[34567]86-pc-msdosdjgpp*)
720 ;;
721 i[34567]86-*-lynxos*)
722 ;;
723 i[34567]86-*-nto-qnx*)
724 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
725 extra_parts=crtbegin.o
726 ;;
727 i[34567]86-*-rtems*)
728 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
729 extra_parts="$extra_parts crti.o crtn.o"
730 ;;
731 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
732 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
733 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
734 tm_file="${tm_file} i386/elf-lib.h"
735 md_unwind_header=i386/sol2-unwind.h
736 ;;
737 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae|i[4567]86-wrs-vxworks7|x86_64-wrs-vxworks7)
738 ;;
739 i[34567]86-*-cygwin*)
740 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
741 if test x$enable_vtable_verify = xyes; then
742 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
743 fi
744 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
745 if test x$ac_cv_sjlj_exceptions = xyes; then
746 tmake_eh_file="i386/t-sjlj-eh"
747 else
748 tmake_eh_file="i386/t-dw2-eh"
749 fi
750 # Shared libgcc DLL install dir depends on cross/native build.
751 if test x${build} = x${host} ; then
752 tmake_dlldir_file="i386/t-dlldir"
753 else
754 tmake_dlldir_file="i386/t-dlldir-x"
755 fi
756 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"
757 ;;
758 x86_64-*-cygwin*)
759 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
760 if test x$enable_vtable_verify = xyes; then
761 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
762 fi
763 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
764 if test x$ac_cv_sjlj_exceptions = xyes; then
765 tmake_eh_file="i386/t-sjlj-eh"
766 elif test "${host_address}" = 32; then
767 # biarch -m32 with --disable-sjlj-exceptions
768 tmake_eh_file="i386/t-dw2-eh"
769 else
770 tmake_eh_file="i386/t-seh-eh"
771 fi
772 # Shared libgcc DLL install dir depends on cross/native build.
773 if test x${build} = x${host} ; then
774 tmake_dlldir_file="i386/t-dlldir"
775 else
776 tmake_dlldir_file="i386/t-dlldir-x"
777 fi
778 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
779 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"
780 ;;
781 i[34567]86-*-mingw*)
782 extra_parts="crtbegin.o crtend.o crtfastmath.o"
783 if test x$enable_vtable_verify = xyes; then
784 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
785 fi
786 case ${target_thread_file} in
787 win32)
788 tmake_file="$tmake_file i386/t-gthr-win32"
789 ;;
790 posix)
791 tmake_file="i386/t-mingw-pthread $tmake_file"
792 ;;
793 esac
794 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
795 if test x$ac_cv_sjlj_exceptions = xyes; then
796 tmake_eh_file="i386/t-sjlj-eh"
797 else
798 tmake_eh_file="i386/t-dw2-eh"
799 md_unwind_header=i386/w32-unwind.h
800 fi
801 # Shared libgcc DLL install dir depends on cross/native build.
802 if test x${build} = x${host} ; then
803 tmake_dlldir_file="i386/t-dlldir"
804 else
805 tmake_dlldir_file="i386/t-dlldir-x"
806 fi
807 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"
808 ;;
809 x86_64-*-mingw*)
810 case ${target_thread_file} in
811 win32)
812 tmake_file="$tmake_file i386/t-gthr-win32"
813 ;;
814 posix)
815 tmake_file="i386/t-mingw-pthread $tmake_file"
816 ;;
817 esac
818 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
819 if test x$ac_cv_sjlj_exceptions = xyes; then
820 tmake_eh_file="i386/t-sjlj-eh"
821 elif test "${host_address}" = 32; then
822 # biarch -m32 with --disable-sjlj-exceptions
823 tmake_eh_file="i386/t-dw2-eh"
824 md_unwind_header=i386/w32-unwind.h
825 else
826 tmake_eh_file="i386/t-seh-eh"
827 fi
828 # Shared libgcc DLL install dir depends on cross/native build.
829 if test x${build} = x${host} ; then
830 tmake_dlldir_file="i386/t-dlldir"
831 else
832 tmake_dlldir_file="i386/t-dlldir-x"
833 fi
834 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"
835 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
836 if test x$enable_vtable_verify = xyes; then
837 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
838 fi
839 ;;
840 ia64*-*-elf*)
841 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
842 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*-*-freebsd*)
845 extra_parts="$extra_parts crtfastmath.o"
846 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"
847 ;;
848 ia64*-*-linux*)
849 # Don't use crtbeginT.o from *-*-linux* default.
850 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
851 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"
852 if test x$with_system_libunwind != xyes ; then
853 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
854 fi
855 md_unwind_header=ia64/linux-unwind.h
856 ;;
857 ia64*-*-hpux*)
858 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
859 ;;
860 ia64-hp-*vms*)
861 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"
862 extra_parts="$extra_parts crtinitS.o"
863 md_unwind_header=ia64/vms-unwind.h
864 ;;
865 iq2000*-*-elf*)
866 tmake_file="iq2000/t-iq2000 t-fdpbit"
867 # Don't use default.
868 extra_parts=
869 ;;
870 lm32-*-elf*)
871 extra_parts="$extra_parts crti.o crtn.o"
872 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
873 ;;
874 lm32-*-rtems*)
875 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
876 extra_parts="$extra_parts crti.o crtn.o"
877 ;;
878 lm32-*-uclinux*)
879 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
880 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
881 ;;
882 m32r-*-elf*)
883 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
884 extra_parts="$extra_parts crtinit.o crtfini.o"
885 ;;
886 m32rle-*-elf*)
887 tmake_file=t-fdpbit
888 ;;
889 m32r-*-linux*)
890 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
891 ;;
892 m32rle-*-linux*)
893 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
894 ;;
895 m68k-*-elf* | fido-*-elf)
896 tmake_file="$tmake_file m68k/t-floatlib"
897 ;;
898 m68k*-*-netbsdelf*)
899 ;;
900 m68k*-*-openbsd*)
901 ;;
902 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
903 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
904 md_unwind_header=m68k/linux-unwind.h
905 ;;
906 m68k-*-linux*) # Motorola m68k's running GNU/Linux
907 # with ELF format using glibc 2
908 # aka the GNU/Linux C library 6.
909 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
910 # If not configured with setjmp/longjmp exceptions, bump the
911 # libgcc version number.
912 if test x$ac_cv_sjlj_exceptions != xyes; then
913 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
914 fi
915 md_unwind_header=m68k/linux-unwind.h
916 ;;
917 m68k-*-rtems*)
918 tmake_file="$tmake_file m68k/t-floatlib"
919 extra_parts="$extra_parts crti.o crtn.o"
920 ;;
921 mcore-*-elf)
922 tmake_file="mcore/t-mcore t-fdpbit"
923 extra_parts="$extra_parts crti.o crtn.o"
924 ;;
925 microblaze*-linux*)
926 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
927 ;;
928 microblaze*-*-elf)
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 microblaze*-*-rtems*)
933 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
934 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
935 ;;
936 mips*-*-netbsd*) # NetBSD/mips, either endian.
937 ;;
938 mips*-*-linux*) # Linux MIPS, either endian.
939 extra_parts="$extra_parts crtfastmath.o"
940 tmake_file="${tmake_file} t-crtfm"
941 case ${host} in
942 mips64r5900* | mipsr5900*)
943 # The MIPS16 support code uses floating point
944 # instructions that are not supported on r5900.
945 ;;
946 *)
947 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
948 ;;
949 esac
950 md_unwind_header=mips/linux-unwind.h
951 ;;
952 mips*-sde-elf*)
953 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
954 case "${with_newlib}" in
955 yes)
956 # newlib / libgloss.
957 ;;
958 *)
959 # MIPS toolkit libraries.
960 tmake_file="$tmake_file mips/t-sdemtk"
961 ;;
962 esac
963 extra_parts="$extra_parts crti.o crtn.o"
964 ;;
965 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
966 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
967 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
968 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
969 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
970 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
971 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
972 extra_parts="$extra_parts crti.o crtn.o"
973 ;;
974 mipsisa64sr71k-*-elf*)
975 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
976 extra_parts="$extra_parts crti.o crtn.o"
977 ;;
978 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-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 mips-*-elf* | mipsel-*-elf*)
983 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
984 extra_parts="$extra_parts crti.o crtn.o"
985 ;;
986 mipsr5900-*-elf* | mipsr5900el-*-elf*)
987 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
988 extra_parts="$extra_parts crti.o crtn.o"
989 ;;
990 mips64-*-elf* | mips64el-*-elf*)
991 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
992 extra_parts="$extra_parts crti.o crtn.o"
993 ;;
994 mips64r5900-*-elf* | mips64r5900el-*-elf*)
995 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
996 extra_parts="$extra_parts crti.o crtn.o"
997 ;;
998 mips64vr-*-elf* | mips64vrel-*-elf*)
999 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
1000 extra_parts="$extra_parts crti.o crtn.o"
1001 ;;
1002 mips64orion-*-elf* | mips64orionel-*-elf*)
1003 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1004 extra_parts="$extra_parts crti.o crtn.o"
1005 ;;
1006 mips*-*-rtems*)
1007 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1008 extra_parts="$extra_parts crti.o crtn.o"
1009 ;;
1010 mips-wrs-vxworks)
1011 ;;
1012 mipstx39-*-elf* | mipstx39el-*-elf*)
1013 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1014 ;;
1015 mmix-knuth-mmixware)
1016 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1017 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
1018 ;;
1019 mn10300-*-*)
1020 tmake_file=t-fdpbit
1021 ;;
1022 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
1023 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
1024 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
1025 ;;
1026 msp430*-*-elf)
1027 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
1028 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
1029 ;;
1030 nds32*-linux*)
1031 # Basic makefile fragment and extra_parts for crt stuff.
1032 # We also append c-isr library implementation.
1033 tmake_file="${tmake_file} t-slibgcc-libgcc"
1034 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1035 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1036 md_unwind_header=nds32/linux-unwind.h
1037 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1038 case "${with_nds32_lib}" in
1039 "" | glibc | uclibc )
1040 ;;
1041 *)
1042 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1043 exit 1
1044 ;;
1045 esac
1046 ;;
1047 nds32*-elf*)
1048 # Basic makefile fragment and extra_parts for crt stuff.
1049 # We also append c-isr library implementation.
1050 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1051 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1052 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1053 case "${with_nds32_lib}" in
1054 "" | newlib)
1055 # Append library definition makefile fragment t-nds32-newlib.
1056 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1057 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1058 ;;
1059 mculib)
1060 # Append library definition makefile fragment t-nds32-mculib.
1061 # The software floating point library is included in mculib.
1062 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1063 ;;
1064 *)
1065 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1066 exit 1
1067 ;;
1068 esac
1069 ;;
1070 nios2-*-linux*)
1071 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
1072 md_unwind_header=nios2/linux-unwind.h
1073 ;;
1074 nios2-*-*)
1075 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1076 extra_parts="$extra_parts crti.o crtn.o"
1077 ;;
1078 or1k-*-linux*)
1079 tmake_file="$tmake_file or1k/t-or1k"
1080 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1081 md_unwind_header=or1k/linux-unwind.h
1082 ;;
1083 or1k-*-*)
1084 tmake_file="$tmake_file or1k/t-or1k"
1085 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1086 ;;
1087 pdp11-*-*)
1088 tmake_file="pdp11/t-pdp11 t-fdpbit"
1089 ;;
1090 powerpc-*-darwin*)
1091 case ${host} in
1092 *-*-darwin9* | *-*-darwin[12][0-9]*)
1093 # libSystem contains unwind information for signal frames since
1094 # Darwin 9.
1095 ;;
1096 *)
1097 md_unwind_header=rs6000/darwin-unwind.h
1098 ;;
1099 esac
1100 tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
1101 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1102 ;;
1103 powerpc64-*-darwin*)
1104 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1105 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1106 ;;
1107 powerpc*-*-freebsd*)
1108 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1109 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1110 case ${host} in
1111 powerpc64*)
1112 tmake_file="${tmake_file} rs6000/t-freebsd64"
1113 md_unwind_header=rs6000/freebsd-unwind.h
1114 ;;
1115 esac
1116 ;;
1117 powerpc-*-netbsd*)
1118 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1119 ;;
1120 powerpc-*-eabispe*)
1121 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr 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-*-eabisimaltivec*)
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-*-eabisim*)
1129 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1130 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1131 ;;
1132 powerpc-*-elf*)
1133 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1134 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1135 ;;
1136 powerpc-*-eabialtivec*)
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-xilinx-eabi*)
1141 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1142 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1143 ;;
1144 powerpc-*-eabi*)
1145 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1146 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1147 ;;
1148 powerpc-*-rtems*)
1149 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1150 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1151 ;;
1152 powerpc*-*-linux*)
1153 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"
1154 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1155 case $ppc_fp_type in
1156 64)
1157 ;;
1158 hard)
1159 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1160 ;;
1161 soft)
1162 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1163 ;;
1164 e500v1)
1165 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1166 ;;
1167 e500v2)
1168 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1169 ;;
1170 *)
1171 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1172 exit 1
1173 ;;
1174 esac
1175
1176 if test $libgcc_cv_powerpc_float128 = yes; then
1177 tmake_file="${tmake_file} rs6000/t-float128"
1178 fi
1179
1180 if test $libgcc_cv_powerpc_float128_hw = yes; then
1181 tmake_file="${tmake_file} rs6000/t-float128-hw"
1182 fi
1183
1184 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1185 md_unwind_header=rs6000/linux-unwind.h
1186 ;;
1187 powerpc-wrs-vxworks*)
1188 tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
1189 extra_parts="$extra_parts crtbegin.o crtend.o"
1190 ;;
1191 powerpc-*-lynxos*)
1192 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1193 ;;
1194 powerpcle-*-elf*)
1195 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1196 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1197 ;;
1198 powerpcle-*-eabisim*)
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 powerpcle-*-eabi*)
1203 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1204 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1205 ;;
1206 pru-*-*)
1207 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru"
1208 tm_file="$tm_file pru/pru-abi.h"
1209 ;;
1210 riscv*-*-linux*)
1211 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1212 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1213 md_unwind_header=riscv/linux-unwind.h
1214 ;;
1215 riscv*-*-freebsd*)
1216 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1217 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1218 ;;
1219 riscv*-*-*)
1220 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1221 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1222 ;;
1223 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
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-aix5.1.* | powerpc-ibm-aix5.1.*)
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"
1230 ;;
1231 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1232 md_unwind_header=rs6000/aix-unwind.h
1233 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1234 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o"
1235 ;;
1236 rl78-*-elf)
1237 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1238 ;;
1239 rx-*-elf)
1240 tmake_file="rx/t-rx t-fdpbit"
1241 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1242 ;;
1243 rx-*-linux*)
1244 tmake_file="rx/t-rx t-fdpbit"
1245 tm_file="$tm_file rx/rx-lib.h"
1246 ;;
1247 s390-*-linux*)
1248 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1249 md_unwind_header=s390/linux-unwind.h
1250 ;;
1251 s390x-*-linux*)
1252 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1253 if test "${host_address}" = 32; then
1254 tmake_file="${tmake_file} s390/32/t-floattodi"
1255 fi
1256 md_unwind_header=s390/linux-unwind.h
1257 ;;
1258 s390x-ibm-tpf*)
1259 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
1260 extra_parts="crtbeginS.o crtendS.o"
1261 md_unwind_header=s390/tpf-unwind.h
1262 ;;
1263 sh-*-elf* | sh[12346l]*-*-elf*)
1264 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1265 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1266 libic_invalidate_array_4-100.a \
1267 libic_invalidate_array_4-200.a \
1268 libic_invalidate_array_4a.a \
1269 libgcc-Os-4-200.a libgcc-4-300.a"
1270 case ${host} in
1271 sh*-superh-elf)
1272 tmake_file="$tmake_file sh/t-superh"
1273 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1274 ;;
1275 esac
1276 ;;
1277 sh-*-linux* | sh[2346lbe]*-*-linux*)
1278 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1279 md_unwind_header=sh/linux-unwind.h
1280 ;;
1281 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1282 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1283
1284 # NetBSD's C library includes a fast software FP library that
1285 # has support for setting/setting the rounding mode, exception
1286 # mask, etc. Therefore, we don't want to include software FP
1287 # in libgcc.
1288 ;;
1289 sh-*-rtems*)
1290 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1291 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1292 libic_invalidate_array_4-100.a \
1293 libic_invalidate_array_4-200.a \
1294 libic_invalidate_array_4a.a \
1295 libgcc-Os-4-200.a libgcc-4-300.a"
1296 ;;
1297 sh-wrs-vxworks)
1298 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1299 ;;
1300 sparc-*-netbsdelf*)
1301 ;;
1302 sparc64-*-openbsd*)
1303 ;;
1304 sparc-*-elf*)
1305 case ${host} in
1306 *-leon[3-9]*)
1307 ;;
1308 *)
1309 tmake_file="sparc/t-softmul"
1310 ;;
1311 esac
1312 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1313 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1314 ;;
1315 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1316 tmake_file="${tmake_file} t-crtfm"
1317 if test "${host_address}" = 64; then
1318 tmake_file="$tmake_file sparc/t-linux64"
1319 fi
1320 case ${host} in
1321 *-leon*)
1322 tmake_file="${tmake_file} t-fdpbit"
1323 ;;
1324 *)
1325 tmake_file="${tmake_file} sparc/t-linux"
1326 ;;
1327 esac
1328 case ${host} in
1329 *-leon[3-9]*)
1330 ;;
1331 *)
1332 if test "${host_address}" = 32; then
1333 tmake_file="$tmake_file sparc/t-softmul"
1334 fi
1335 ;;
1336 esac
1337 extra_parts="$extra_parts crtfastmath.o"
1338 md_unwind_header=sparc/linux-unwind.h
1339 ;;
1340 sparc-*-rtems*)
1341 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1342 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1343 ;;
1344 sparc*-*-solaris2*)
1345 tmake_file="$tmake_file t-crtfm"
1346 extra_parts="$extra_parts crtfastmath.o"
1347 md_unwind_header=sparc/sol2-unwind.h
1348 ;;
1349 sparc64-*-elf*)
1350 tmake_file="${tmake_file} t-crtfm"
1351 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1352 ;;
1353 sparc64-*-rtems*)
1354 tmake_file="$tmake_file t-crtfm"
1355 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1356 ;;
1357 sparc-wrs-vxworks)
1358 ;;
1359 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1360 tmake_file="$tmake_file t-crtfm"
1361 extra_parts="$extra_parts crtfastmath.o"
1362 ;;
1363 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1364 extra_parts="$extra_parts crtfastmath.o"
1365 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1366 if test "${host_address}" = 64; then
1367 tmake_file="${tmake_file} sparc/t-linux64"
1368 fi
1369 if test "${host_address}" = 32; then
1370 tmake_file="${tmake_file} sparc/t-softmul"
1371 fi
1372 md_unwind_header=sparc/linux-unwind.h
1373 ;;
1374 sparc64-*-netbsd*)
1375 ;;
1376 tic6x-*-uclinux)
1377 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1378 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1379 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
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 tic6x-*-elf)
1385 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1386 tm_file="$tm_file c6x/c6x-abi.h"
1387 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1388 unwind_header=config/c6x/unwind-c6x.h
1389 ;;
1390 tilegx*-*-linux*)
1391 if test "${host_address}" = 64; then
1392 tmake_file="${tmake_file} tilegx/t-softfp"
1393 fi
1394 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx"
1395 md_unwind_header=tilepro/linux-unwind.h
1396 ;;
1397 tilepro*-*-linux*)
1398 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc"
1399 md_unwind_header=tilepro/linux-unwind.h
1400 ;;
1401 v850*-*-*)
1402 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1403 ;;
1404 vax-*-linux*)
1405 tmake_file="$tmake_file vax/t-linux"
1406 ;;
1407 vax-*-netbsdelf*)
1408 ;;
1409 vax-*-openbsd*)
1410 ;;
1411 visium-*-elf*)
1412 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1413 tmake_file="visium/t-visium t-fdpbit"
1414 ;;
1415 xstormy16-*-elf)
1416 tmake_file="stormy16/t-stormy16 t-fdpbit"
1417 ;;
1418 xtensa*-*-elf*)
1419 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1420 extra_parts="$extra_parts crti.o crtn.o"
1421 ;;
1422 xtensa*-*-linux*)
1423 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1424 md_unwind_header=xtensa/linux-unwind.h
1425 ;;
1426 xtensa*-*-uclinux*)
1427 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1428 md_unwind_header=xtensa/linux-unwind.h
1429 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1430 ;;
1431 am33_2.0-*-linux*)
1432 # Don't need crtbeginT.o from *-*-linux* default.
1433 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1434 tmake_file="$tmake_file t-fdpbit"
1435 ;;
1436 m32c-*-elf*|m32c-*-rtems*)
1437 tmake_file="$tmake_file m32c/t-m32c"
1438 ;;
1439 nvptx-*)
1440 tmake_file="$tmake_file nvptx/t-nvptx"
1441 extra_parts="crt0.o"
1442 ;;
1443 *)
1444 echo "*** Configuration ${host} not supported" 1>&2
1445 exit 1
1446 ;;
1447 esac
1448
1449 case ${host} in
1450 i[34567]86-*-* | x86_64-*-*)
1451 case ${host} in
1452 *-musl*)
1453 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1454 ;;
1455 *)
1456 tmake_file="${tmake_file} i386/t-cpuinfo"
1457 ;;
1458 esac
1459 ;;
1460 esac
1461
1462 case ${host} in
1463 i[34567]86-*-linux* | x86_64-*-linux* | \
1464 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1465 i[34567]86-*-gnu*)
1466 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1467 if test "$libgcc_cv_cfi" = "yes"; then
1468 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1469 fi
1470 ;;
1471 esac
1472
1473 case ${host} in
1474 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1475 # These use soft-fp for SFmode and DFmode, not just TFmode.
1476 ;;
1477 i[34567]86-*-* | x86_64-*-*)
1478 tmake_file="${tmake_file} t-softfp-tf"
1479 if test "${host_address}" = 32; then
1480 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
1481 fi
1482 tmake_file="${tmake_file} i386/t-softfp t-softfp"
1483 ;;
1484 esac
1485
1486 case ${host} in
1487 i[34567]86-*-linux* | x86_64-*-linux*)
1488 # Provide backward binary compatibility for 64bit Linux/x86.
1489 if test "${host_address}" = 64; then
1490 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1491 fi
1492 tm_file="${tm_file} i386/value-unwind.h"
1493 ;;
1494 aarch64*-*-*)
1495 # ILP32 needs an extra header for unwinding
1496 tm_file="${tm_file} aarch64/value-unwind.h"
1497 ;;
1498 esac