Debian Codegraph @

libgcc/config.host

raw
1 # libgcc host-specific configuration file.
2 # Copyright (C) 1997-2025 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_def_header The name of a header file defining architecture
55 # -specific frame information types for unwinding.
56 # md_unwind_header The name of a header file defining architecture
57 # -specific handlers used in the unwinder.
58 # sfp_machine_header The name of a sfp-machine.h header file for soft-fp.
59 # Defaults to "$cpu_type/sfp-machine.h" if it exists,
60 # no-sfp-machine.h otherwise.
61 # tmake_file A list of machine-description-specific
62 # makefile fragments.
63 # tm_defines List of target macros to define for all compilations.
64 # tm_file A list of target macro files used only for code
65 # built for the target, not the host. These files
66 # are relative to $srcdir/config and must not have
67 # the same names as files in $srcdir/../gcc/config.
68 # unwind_header The name of the header file declaring the unwind
69 # runtime interface routines.
70
71 asm_hidden_op=.hidden
72 enable_execute_stack=
73 extra_parts=
74 tmake_file=
75 tm_file=
76 tm_define=
77 md_unwind_def_header=no-unwind.h
78 md_unwind_header=no-unwind.h
79 unwind_header=unwind-generic.h
80
81 # Set default cpu_type so it can be updated in each machine entry.
82 cpu_type=`echo ${host} | sed 's/-.*$//'`
83 case ${host} in
84 m32c*-*-*)
85 cpu_type=m32c
86 tmake_file=t-fdpbit
87 ;;
88 aarch64*-*-*)
89 cpu_type=aarch64
90 ;;
91 alpha*-*-*)
92 cpu_type=alpha
93 ;;
94 am33_2.0-*-linux*)
95 cpu_type=mn10300
96 ;;
97 amdgcn*-*-*)
98 cpu_type=gcn
99 tmake_file="${tmake_file} t-softfp-sfdf t-softfp"
100 ;;
101 arc*-*-*)
102 cpu_type=arc
103 ;;
104 arm*-*-*)
105 cpu_type=arm
106 ;;
107 avr-*-*)
108 cpu_type=avr
109 ;;
110 bfin*-*)
111 cpu_type=bfin
112 ;;
113 bpf-*-*)
114 cpu_type=bpf
115 ;;
116 csky*-*-*)
117 cpu_type=csky
118 ;;
119 fido-*-*)
120 cpu_type=m68k
121 ;;
122 frv*) cpu_type=frv
123 ;;
124 ft32*) cpu_type=ft32
125 ;;
126 moxie*) cpu_type=moxie
127 ;;
128 i[34567]86-*-*)
129 cpu_type=i386
130 ;;
131 x86_64-*-*)
132 cpu_type=i386
133 ;;
134 ia64-*-*)
135 ;;
136 hppa*-*-*)
137 cpu_type=pa
138 ;;
139 lm32*-*-*)
140 cpu_type=lm32
141 ;;
142 loongarch*-*)
143 cpu_type=loongarch
144 tmake_file="loongarch/t-loongarch"
145 if test "${libgcc_cv_loongarch_hard_float}" = yes; then
146 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
147 else
148 tmake_file="${tmake_file} t-softfp-sfdf"
149 fi
150 if test "${ac_cv_sizeof_long_double}" = 16; then
151 tmake_file="${tmake_file} loongarch/t-softfp-tf"
152 fi
153 if test "${host_address}" = 64; then
154 tmake_file="${tmake_file} loongarch/t-loongarch64"
155 fi
156 tmake_file="${tmake_file} t-softfp"
157 ;;
158 m32r*-*-*)
159 cpu_type=m32r
160 ;;
161 m68k-*-*)
162 ;;
163 microblaze*-*-*)
164 cpu_type=microblaze
165 ;;
166 mips*-*-*)
167 # All MIPS targets provide a full set of FP routines.
168 cpu_type=mips
169 tmake_file="mips/t-mips"
170 if test "${libgcc_cv_mips_hard_float}" = yes; then
171 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
172 else
173 tmake_file="${tmake_file} t-softfp-sfdf"
174 fi
175 if test "${ac_cv_sizeof_long_double}" = 16; then
176 tmake_file="${tmake_file} mips/t-softfp-tf"
177 fi
178 if test "${host_address}" = 64; then
179 tmake_file="${tmake_file} mips/t-mips64"
180 fi
181 tmake_file="${tmake_file} t-softfp"
182 ;;
183 nds32*-*)
184 cpu_type=nds32
185 ;;
186 or1k*-*-*)
187 cpu_type=or1k
188 ;;
189 powerpc*-*-*)
190 cpu_type=rs6000
191 ;;
192 pru-*-*)
193 cpu_type=pru
194 ;;
195 rs6000*-*-*)
196 ;;
197 riscv*-*-*)
198 cpu_type=riscv
199 ;;
200 sparc64*-*-*)
201 cpu_type=sparc
202 tmake_file="${tmake_file} sparc/t-sparc"
203 ;;
204 sparc*-*-*)
205 cpu_type=sparc
206 tmake_file="${tmake_file} sparc/t-sparc"
207 ;;
208 s390*-*-*)
209 cpu_type=s390
210 ;;
211 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
212 sh[123456789lbe]*-*-*)
213 cpu_type=sh
214 ;;
215 v850*-*-*)
216 cpu_type=v850
217 ;;
218 tic6x-*-*)
219 cpu_type=c6x
220 ;;
221 esac
222
223 # Common parts for widely ported systems.
224 case ${host} in
225 *-*-darwin*)
226 asm_hidden_op=.private_extern
227 tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic"
228 # The unwinder is provided by the system shared libraries, do not add one
229 # to the shared libgcc but, for older systems, we build a shared unwinder
230 # separately so that we can construct a libgcc_s.1 to use for binaries
231 # linked against the old libgcc_ext.10.x stubs.
232 case ${host} in
233 *-*-darwin[89]* | *-*-darwin10*)
234 tmake_file="$tmake_file t-darwin-ehs ${cpu_type}/t-darwin-ehs"
235 ;;
236 esac
237 tmake_file="$tmake_file t-slibgcc-darwin"
238 case ${host} in
239 x86_64-*-darwin2[0-2]*)
240 tmake_file="t-darwin-min-11 t-darwin-libgccs1 $tmake_file"
241 ;;
242 *-*-darwin2*)
243 tmake_file="t-darwin-min-11 $tmake_file"
244 ;;
245 *-*-darwin1[89]*)
246 tmake_file="t-darwin-min-8 t-darwin-libgccs1 $tmake_file"
247 ;;
248 *-*-darwin9* | *-*-darwin1[0-7]*)
249 tmake_file="t-darwin-min-5 t-darwin-libgccs1 $tmake_file"
250 ;;
251 *-*-darwin[4-8]*)
252 tmake_file="t-darwin-min-1 t-darwin-libgccs1 $tmake_file"
253 ;;
254 *)
255 # Fall back to configuring for the oldest system known to work with
256 # all archs and the current sources.
257 tmake_file="t-darwin-min-5 t-darwin-libgccs1 $tmake_file"
258 echo "Warning: libgcc configured to support macOS 10.5" 1>&2
259 ;;
260 esac
261 # We are not using libtool to build the libs here, so we need to replicate
262 # a little of the logic around setting Darwin rpaths. Setting an explicit
263 # yes or no is honoured, otherwise we choose a suitable default.
264 # Sadly, this has to be kept in line with the rules in libtool.m4.
265 # This make fragment will override the setting in t-slibgcc-darwin so it
266 # must appear after it.
267 if test "x$enable_darwin_at_rpath" = "x"; then
268 echo "enable_darwin_at_rpath is unset" 1>&2
269 case ${host} in
270 *-darwin[45678]*) ;;
271 *-darwin9* | *-darwin1[01234]*) ;; # We might default these on later.
272 *-darwin*)
273 echo "but is needed after macOS 10.11 (setting it on)" 1>&2
274 enable_darwin_at_rpath=yes
275 ;;
276 esac
277 else
278 echo "enable_darwin_at_rpath is '$enable_darwin_at_rpath'" 1>&2
279 fi
280 if test "x$enable_darwin_at_rpath" = "xyes"; then
281 tmake_file="$tmake_file t-darwin-rpath "
282 fi
283 extra_parts="crt3.o libd10-uwfef.a crttms.o crttme.o libemutls_w.a"
284 ;;
285 *-*-dragonfly*)
286 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
287 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
288 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
289 ;;
290 *-*-freebsd*)
291 # This is the generic ELF configuration of FreeBSD. Later
292 # machine-specific sections may refine and add to this
293 # configuration.
294 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"
295 extra_parts="crtbegin.o crtend.o crtbeginS.o crtbeginT.o crtendS.o"
296 case ${target_thread_file} in
297 posix)
298 tmake_file="${tmake_file} t-freebsd-thread"
299 # Before 5.0, FreeBSD can't bind shared libraries to -lc
300 # when "optionally" threaded via weak pthread_* checks.
301 case ${host} in
302 *-*-freebsd[34] | *-*-freebsd[34].*)
303 tmake_file="${tmake_file} t-slibgcc-nolc-override"
304 ;;
305 esac
306 ;;
307 esac
308 ;;
309 *-*-fuchsia*)
310 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
311 extra_parts="crtbegin.o crtend.o"
312 ;;
313 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)
314 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"
315 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
316 if test x$enable_vtable_verify = xyes; then
317 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
318 fi
319 ;;
320 *-*-lynxos*)
321 tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
322 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
323 ;;
324 *-*-netbsd*)
325 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
326 tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
327 tmake_file="$tmake_file t-slibgcc-libgcc"
328 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
329 ;;
330 *-*-openbsd*)
331 tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
332 case ${target_thread_file} in
333 posix)
334 tmake_file="$tmake_file t-openbsd-thread"
335 ;;
336 esac
337 ;;
338 *-*-rtems*)
339 tmake_file="$tmake_file t-rtems"
340 extra_parts="crtbegin.o crtend.o"
341 ;;
342 *-*-solaris2*)
343 # Unless linker support and dl_iterate_phdr are present,
344 # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
345 tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
346 if test $with_gnu_ld = yes; then
347 tmake_file="$tmake_file t-slibgcc-gld"
348 else
349 tmake_file="$tmake_file t-slibgcc-sld"
350 fi
351 # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
352 tmake_file="$tmake_file $cpu_type/t-sol2"
353 extra_parts="gmon.o crtbegin.o crtend.o"
354 # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
355 # base system. crtp.o and crtpg.o implement the compiler-dependent parts.
356 extra_parts="$extra_parts crtp.o crtpg.o"
357 # If the Solaris CRTs are present, both ld and gld will have PIE support.
358 extra_parts="$extra_parts crtbeginS.o crtendS.o"
359 if test x$enable_vtable_verify = xyes; then
360 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
361 fi
362 ;;
363 *-*-uclinux*)
364 extra_parts="crtbegin.o crtend.o"
365 ;;
366 *-*-*vms*)
367 tmake_file="vms/t-vms"
368 extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
369 ;;
370 *-*-vxworksae*)
371 tmake_file=t-vxworksae
372 ;;
373 *-*-vxworks*)
374 tmake_file=t-vxworks
375 ;;
376 *-*-elf)
377 extra_parts="crtbegin.o crtend.o"
378 ;;
379 esac
380
381 # VxWorks ports rely on specially crafted crtstuff files
382 case ${host} in
383 *-*-vxworks*)
384 tmake_file="${tmake_file} t-vxcrtstuff"
385 ;;
386 esac
387
388 case ${host} in
389 *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
390 *-*-solaris2*)
391 enable_execute_stack=enable-execute-stack-mprotect.c
392 ;;
393 i[34567]86-*-mingw* | x86_64-*-mingw*)
394 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
395 ;;
396 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
397 enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
398 ;;
399 *)
400 enable_execute_stack=enable-execute-stack-empty.c;
401 ;;
402 esac
403
404 case ${host} in
405 aarch64*-*-elf | aarch64*-*-rtems*)
406 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
407 extra_parts="$extra_parts crtfastmath.o"
408 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
409 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
410 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
411 tmake_file="${tmake_file} t-dfprules"
412 md_unwind_def_header=aarch64/aarch64-unwind-def.h
413 md_unwind_header=aarch64/aarch64-unwind.h
414 ;;
415 aarch64*-*-freebsd*)
416 extra_parts="$extra_parts crtfastmath.o"
417 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
418 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
419 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
420 tmake_file="${tmake_file} t-dfprules"
421 md_unwind_def_header=aarch64/aarch64-unwind-def.h
422 md_unwind_header=aarch64/freebsd-unwind.h
423 ;;
424 aarch64*-*-netbsd*)
425 extra_parts="$extra_parts crtfastmath.o"
426 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
427 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
428 tmake_file="${tmake_file} t-dfprules"
429 md_unwind_def_header=aarch64/aarch64-unwind-def.h
430 md_unwind_header=aarch64/aarch64-unwind.h
431 ;;
432 aarch64*-*-fuchsia*)
433 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
434 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
435 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
436 tmake_file="${tmake_file} t-dfprules"
437 ;;
438 aarch64*-*-linux*)
439 extra_parts="$extra_parts crtfastmath.o"
440 md_unwind_def_header=aarch64/aarch64-unwind-def.h
441 md_unwind_header=aarch64/linux-unwind.h
442 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
443 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
444 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
445 tmake_file="${tmake_file} t-dfprules"
446 tmake_file="${tmake_file} ${cpu_type}/t-heap-trampoline"
447 ;;
448 aarch64*-*-gnu*)
449 extra_parts="$extra_parts crtfastmath.o"
450 md_unwind_def_header=aarch64/aarch64-unwind-def.h
451 md_unwind_header=aarch64/gnu-unwind.h
452 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
453 tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
454 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
455 tmake_file="${tmake_file} t-dfprules"
456 tmake_file="${tmake_file} ${cpu_type}/t-heap-trampoline"
457 ;;
458 aarch64*-*-vxworks7*)
459 extra_parts="$extra_parts crtfastmath.o"
460 md_unwind_def_header=aarch64/aarch64-unwind-def.h
461 md_unwind_header=aarch64/aarch64-unwind.h
462 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
463 tmake_file="${tmake_file} ${cpu_type}/t-lse"
464 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
465 tmake_file="${tmake_file} t-dfprules"
466 ;;
467 aarch64-*-mingw*)
468 case ${target_thread_file} in
469 win32)
470 tmake_thr_file="mingw/t-gthr-win32"
471 ;;
472 posix)
473 tmake_thr_file="mingw/t-mingw-pthread"
474 ;;
475 esac
476 tmake_file="${tmake_file} ${cpu_type}/t-no-eh ${tmake_thr_file}"
477 tmake_file="${tmake_file} t-dfprules"
478 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
479 tmake_file="${tmake_file} ${cpu_type}/t-mingw"
480 tmake_file="${tmake_file} ${cpu_type}/t-lse"
481 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
482 ;;
483 alpha*-*-linux*)
484 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
485 extra_parts="$extra_parts crtfastmath.o"
486 md_unwind_header=alpha/linux-unwind.h
487 ;;
488 alpha*-*-freebsd*)
489 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
490 extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
491 ;;
492 alpha*-*-netbsd*)
493 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
494 ;;
495 alpha*-*-openbsd*)
496 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
497 ;;
498 alpha64-dec-*vms*)
499 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
500 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
501 md_unwind_header=alpha/vms-unwind.h
502 ;;
503 alpha*-dec-*vms*)
504 tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
505 extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
506 md_unwind_header=alpha/vms-unwind.h
507 ;;
508 amdgcn*-*-amdhsa)
509 tmake_file="$tmake_file gcn/t-amdgcn"
510 extra_parts="crt0.o"
511 ;;
512 arc*-*-elf*)
513 tmake_file="arc/t-arc"
514 extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
515 extra_parts="$extra_parts crttls.o"
516 ;;
517 arc*-*-linux*)
518 tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
519 extra_parts="$extra_parts crti.o crtn.o"
520 extra_parts="$extra_parts crttls.o"
521 md_unwind_header=arc/linux-unwind.h
522 ;;
523 arm-wrs-vxworks7*)
524 tmake_file="$tmake_file arm/t-arm arm/t-elf arm/t-bpabi arm/t-vxworks7"
525 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
526 tm_file="$tm_file arm/bpabi-lib.h"
527 unwind_header=config/arm/unwind-arm.h
528 extra_parts="$extra_parts crti.o crtn.o"
529 ;;
530 arm*-*-freebsd*) # ARM FreeBSD EABI
531 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
532 tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
533 tm_file="${tm_file} arm/bpabi-lib.h"
534 unwind_header=config/arm/unwind-arm.h
535 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
536 ;;
537 arm*-*-fuchsia*)
538 tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
539 tmake_file="${tmake_file} arm/tsoftfp t-softfp"
540 tm_file="${tm_file} arm/bpabi-lib.h"
541 unwind_header=config/arm/unwind-arm.h
542 ;;
543 arm*-*-netbsdelf*)
544 tmake_file="$tmake_file arm/t-arm"
545 case ${host} in
546 arm*-*-netbsdelf-*eabi*)
547 tmake_file="${tmake_file} arm/t-netbsd-eabi"
548 unwind_header=config/arm/unwind-arm.h
549 ;;
550 *)
551 tmake_file="${tmake_file} arm/t-netbsd t-slibgcc-gld-nover"
552 ;;
553 esac
554 ;;
555 arm*-*-linux* | arm*-*-uclinuxfdpiceabi)
556 tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
557 tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
558 tm_file="$tm_file arm/bpabi-lib.h"
559 unwind_header=config/arm/unwind-arm.h
560 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
561 extra_parts="$extra_parts crtfastmath.o"
562 ;;
563 arm*-*-uclinux*) # ARM ucLinux
564 tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
565 tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
566 tmake_file="${tmake_file} arm/t-bpabi"
567 tm_file="$tm_file arm/bpabi-lib.h"
568 unwind_header=config/arm/unwind-arm.h
569 extra_parts="$extra_parts crti.o crtn.o"
570 ;;
571 arm*-*-phoenix*)
572 tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
573 tmake_file="${tmake_file} arm/t-bpabi"
574 tm_file="$tm_file arm/bpabi-lib.h"
575 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
576 unwind_header=config/arm/unwind-arm.h
577 ;;
578 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
579 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
580 tm_file="$tm_file arm/bpabi-lib.h"
581 case ${host} in
582 arm*-*-eabi* | arm*-*-rtems*)
583 tmake_file="${tmake_file} arm/t-bpabi arm/t-sync t-crtfm"
584 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
585 ;;
586 arm*-*-symbianelf*)
587 tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
588 tm_file="$tm_file arm/symbian-lib.h"
589 # Symbian OS provides its own startup code.
590 ;;
591 esac
592 tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
593 extra_parts="$extra_parts crtfastmath.o"
594 unwind_header=config/arm/unwind-arm.h
595 ;;
596 avr-*-*)
597 # Make HImode functions for AVR
598 tmake_file="${cpu_type}/t-avr t-fpbit"
599 # Make some DFmode functions from libf7, part of avr-libgcc.
600 # This must be prior to adding t-avrlibc.
601 case "y${with_libf7}" in
602 yno)
603 # No libf7 support.
604 ;;
605 ylibgcc)
606 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
607 ;;
608 ymath)
609 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
610 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
611 ;;
612 ymath-symbols | yyes | y)
613 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math-symbols"
614 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
615 tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
616 ;;
617 *)
618 echo "Error: --with-libf7=${with_libf7} but can only be used with: 'libgcc', 'math', 'math-symbols', 'yes', 'no'" 1>&2
619 exit 1
620 ;;
621 esac
622 if test x${with_avrlibc} != xno; then
623 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
624 fi
625 tm_file="$tm_file avr/avr-lib.h"
626 if test x${with_fixed_point} = xno; then
627 fixed_point=no
628 fi
629 ;;
630 bfin*-elf*)
631 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
632 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
633 ;;
634 bfin*-uclinux*)
635 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
636 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
637 md_unwind_header=bfin/linux-unwind.h
638 ;;
639 bfin*-linux-uclibc*)
640 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
641 # No need to build crtbeginT.o on uClibc systems. Should probably
642 # be moved to the OS specific section above.
643 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
644 md_unwind_header=bfin/linux-unwind.h
645 ;;
646 bfin*-rtems*)
647 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
648 extra_parts="$extra_parts crti.o crtn.o"
649 ;;
650 bfin*-*)
651 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
652 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
653 ;;
654 bpf-*-*)
655 tmake_file="$tmake_file ${cpu_type}/t-${cpu_type}"
656 extra_parts="crti.o crtn.o"
657 ;;
658 cris-*-elf)
659 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
660 ;;
661 csky-*-elf*)
662 tmake_file="csky/t-csky t-fdpbit"
663 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
664 ;;
665 csky-*-linux*)
666 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
667 extra_parts="$extra_parts crti.o crtn.o"
668 md_unwind_header=csky/linux-unwind.h
669 ;;
670 epiphany-*-elf* | epiphany-*-rtems*)
671 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
672 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
673 ;;
674 fr30-*-elf)
675 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
676 extra_parts="$extra_parts crti.o crtn.o"
677 ;;
678 frv-*-elf)
679 tmake_file="$tmake_file frv/t-frv t-fdpbit"
680 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
681 # Don't use crtbegin.o, crtend.o.
682 extra_parts="frvbegin.o frvend.o"
683 ;;
684 frv-*-*linux*)
685 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
686 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
687 ;;
688 ft32-*-elf)
689 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
690 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
691 ;;
692 h8300-*-elf*)
693 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
694 tm_file="$tm_file h8300/h8300-lib.h"
695 extra_parts="$extra_parts crti.o crtn.o"
696 ;;
697 h8300-*-linux*)
698 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
699 tm_file="$tm_file h8300/h8300-lib.h"
700 ;;
701 hppa*64*-*-linux*)
702 tmake_file="$tmake_file pa/t-pa64-linux pa/t-dimode"
703 tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp"
704 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
705 ;;
706 hppa*-*-linux*)
707 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
708 # Set the libgcc version number
709 if test x$ac_cv_sjlj_exceptions = xyes; then
710 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
711 else
712 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
713 fi
714 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
715 md_unwind_header=pa/linux-unwind.h
716 ;;
717 hppa*64*-*-hpux11*)
718 tmake_file="$tmake_file pa/t-pa64-hpux pa/t-dimode"
719 tmake_file="$tmake_file pa/t-stublib t-libgcc-pic t-slibgcc"
720 # Set the libgcc version number
721 if test x$ac_cv_sjlj_exceptions = xyes; then
722 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
723 else
724 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
725 fi
726 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
727 tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp"
728 tm_file="$tm_file pa/pa64-hpux-lib.h"
729 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
730 libgcc_stub.a"
731 md_unwind_header=pa/hpux-unwind.h
732 ;;
733 hppa*-*-openbsd*)
734 tmake_file="$tmake_file pa/t-openbsd"
735 ;;
736 hppa*-*-netbsd*)
737 tmake_file="$tmake_file pa/t-netbsd"
738 ;;
739 i[34567]86-*-darwin*)
740 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
741 tm_file="$tm_file i386/darwin-lib.h"
742 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o"
743 extra_parts="$extra_parts crtfastmath.o libheapt_w.a"
744 tmake_file="${tmake_file} i386/t-heap-trampoline"
745 ;;
746 x86_64-*-darwin*)
747 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
748 tm_file="$tm_file i386/darwin-lib.h"
749 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o"
750 extra_parts="$extra_parts crtfastmath.o libheapt_w.a"
751 tmake_file="${tmake_file} i386/t-heap-trampoline"
752 ;;
753 i[34567]86-*-elfiamcu)
754 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"
755 ;;
756 i[34567]86-*-elf*)
757 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
758 ;;
759 x86_64-*-elf* | x86_64-*-rtems*)
760 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
761 case ${host} in
762 x86_64-*-rtems*)
763 extra_parts="$extra_parts crti.o crtn.o"
764 ;;
765 esac
766 ;;
767 x86_64-*-fuchsia*)
768 tmake_file="$tmake_file t-libgcc-pic"
769 ;;
770 i[34567]86-*-dragonfly*)
771 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
772 md_unwind_header=i386/dragonfly-unwind.h
773 ;;
774 x86_64-*-dragonfly*)
775 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
776 md_unwind_header=i386/dragonfly-unwind.h
777 ;;
778 i[34567]86-*-freebsd*)
779 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
780 md_unwind_header=i386/freebsd-unwind.h
781 ;;
782 x86_64-*-freebsd*)
783 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
784 md_unwind_header=i386/freebsd-unwind.h
785 ;;
786 i[34567]86-*-netbsdelf*)
787 tmake_file="${tmake_file} i386/t-crtstuff"
788 ;;
789 x86_64-*-netbsd*)
790 tmake_file="${tmake_file} i386/t-crtstuff"
791 ;;
792 i[34567]86-*-openbsd*)
793 ;;
794 x86_64-*-openbsd*)
795 ;;
796 i[34567]86-*-linux*)
797 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
798 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
799 tm_file="${tm_file} i386/elf-lib.h"
800 md_unwind_header=i386/linux-unwind.h
801 tmake_file="${tmake_file} i386/t-heap-trampoline"
802 ;;
803 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-kopensolaris*-gnu)
804 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
805 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
806 tm_file="${tm_file} i386/elf-lib.h"
807 ;;
808 i[34567]86-*-gnu*)
809 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
810 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
811 tm_file="${tm_file} i386/elf-lib.h"
812 md_unwind_header=i386/gnu-unwind.h
813 ;;
814 x86_64-*-linux*)
815 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
816 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
817 tm_file="${tm_file} i386/elf-lib.h"
818 md_unwind_header=i386/linux-unwind.h
819 tmake_file="${tmake_file} i386/t-heap-trampoline"
820 ;;
821 x86_64-*-kfreebsd*-gnu)
822 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
823 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
824 tm_file="${tm_file} i386/elf-lib.h"
825 ;;
826 x86_64-*-gnu*)
827 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
828 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
829 tm_file="${tm_file} i386/elf-lib.h"
830 md_unwind_header=i386/gnu-unwind.h
831 ;;
832 i[34567]86-pc-msdosdjgpp*)
833 ;;
834 i[34567]86-*-lynxos*)
835 ;;
836 i[34567]86-*-nto-qnx*)
837 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
838 extra_parts=crtbegin.o
839 ;;
840 i[34567]86-*-rtems*)
841 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
842 extra_parts="$extra_parts crti.o crtn.o"
843 ;;
844 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
845 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
846 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
847 tm_file="${tm_file} i386/elf-lib.h"
848 md_unwind_header=i386/sol2-unwind.h
849 ;;
850 i[4567]86-wrs-vxworks*|x86_64-wrs-vxworks*)
851 ;;
852 i[34567]86-*-cygwin*)
853 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
854 if test x$enable_vtable_verify = xyes; then
855 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
856 fi
857 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
858 if test x$ac_cv_sjlj_exceptions = xyes; then
859 tmake_eh_file="i386/t-sjlj-eh"
860 else
861 tmake_eh_file="i386/t-dw2-eh"
862 fi
863 # Shared libgcc DLL install dir depends on cross/native build.
864 if test x${build} = x${host} ; then
865 tmake_dlldir_file="i386/t-dlldir"
866 else
867 tmake_dlldir_file="i386/t-dlldir-x"
868 fi
869 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"
870 ;;
871 x86_64-*-cygwin*)
872 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
873 if test x$enable_vtable_verify = xyes; then
874 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
875 fi
876 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
877 if test x$ac_cv_sjlj_exceptions = xyes; then
878 tmake_eh_file="i386/t-sjlj-eh"
879 elif test "${host_address}" = 32; then
880 # biarch -m32 with --disable-sjlj-exceptions
881 tmake_eh_file="i386/t-dw2-eh"
882 else
883 tmake_eh_file="i386/t-seh-eh"
884 fi
885 # Shared libgcc DLL install dir depends on cross/native build.
886 if test x${build} = x${host} ; then
887 tmake_dlldir_file="i386/t-dlldir"
888 else
889 tmake_dlldir_file="i386/t-dlldir-x"
890 fi
891 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
892 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"
893 ;;
894 i[34567]86-*-mingw*)
895 extra_parts="crtbegin.o crtend.o crtfastmath.o"
896 if test x$enable_vtable_verify = xyes; then
897 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
898 fi
899 case ${target_thread_file} in
900 win32)
901 tmake_thr_file="mingw/t-gthr-win32"
902 ;;
903 posix)
904 tmake_thr_file="mingw/t-mingw-pthread"
905 ;;
906 mcf)
907 tmake_thr_file="i386/t-mingw-mcfgthread"
908 ;;
909 esac
910 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
911 if test x$ac_cv_sjlj_exceptions = xyes; then
912 tmake_eh_file="i386/t-sjlj-eh"
913 else
914 tmake_eh_file="i386/t-dw2-eh"
915 md_unwind_header=i386/w32-unwind.h
916 fi
917 # Shared libgcc DLL install dir depends on cross/native build.
918 if test x${build} = x${host} ; then
919 tmake_dlldir_file="i386/t-dlldir"
920 else
921 tmake_dlldir_file="i386/t-dlldir-x"
922 fi
923 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_thr_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-slibgcc-mingw i386/t-cygming i386/t-mingw32 t-crtfm i386/t-chkstk t-dfprules"
924 ;;
925 x86_64-*-mingw*)
926 case ${target_thread_file} in
927 win32)
928 tmake_thr_file="mingw/t-gthr-win32"
929 ;;
930 posix)
931 tmake_thr_file="mingw/t-mingw-pthread"
932 ;;
933 mcf)
934 tmake_thr_file="i386/t-mingw-mcfgthread"
935 ;;
936 esac
937 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
938 if test x$ac_cv_sjlj_exceptions = xyes; then
939 tmake_eh_file="i386/t-sjlj-eh"
940 elif test "${host_address}" = 32; then
941 # biarch -m32 with --disable-sjlj-exceptions
942 tmake_eh_file="i386/t-dw2-eh"
943 md_unwind_header=i386/w32-unwind.h
944 else
945 tmake_eh_file="i386/t-seh-eh"
946 fi
947 # Shared libgcc DLL install dir depends on cross/native build.
948 if test x${build} = x${host} ; then
949 tmake_dlldir_file="i386/t-dlldir"
950 else
951 tmake_dlldir_file="i386/t-dlldir-x"
952 fi
953 tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_thr_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-slibgcc-mingw i386/t-cygming i386/t-mingw32 t-dfprules t-crtfm i386/t-chkstk"
954 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
955 if test x$enable_vtable_verify = xyes; then
956 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
957 fi
958 ;;
959 ia64*-*-elf*)
960 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
961 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"
962 ;;
963 ia64*-*-freebsd*)
964 extra_parts="$extra_parts crtfastmath.o"
965 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"
966 ;;
967 ia64*-*-linux*)
968 # Don't use crtbeginT.o from *-*-linux* default.
969 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
970 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"
971 if test x$with_system_libunwind != xyes ; then
972 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
973 fi
974 md_unwind_header=ia64/linux-unwind.h
975 ;;
976 ia64*-*-hpux*)
977 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
978 ;;
979 ia64-hp-*vms*)
980 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"
981 extra_parts="$extra_parts crtinitS.o"
982 md_unwind_header=ia64/vms-unwind.h
983 ;;
984 iq2000*-*-elf*)
985 tmake_file="iq2000/t-iq2000 t-fdpbit"
986 # Don't use default.
987 extra_parts=
988 ;;
989 lm32-*-elf*)
990 extra_parts="$extra_parts crti.o crtn.o"
991 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
992 ;;
993 lm32-*-rtems*)
994 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
995 extra_parts="$extra_parts crti.o crtn.o"
996 ;;
997 lm32-*-uclinux*)
998 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
999 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
1000 ;;
1001 loongarch*-linux*)
1002 extra_parts="$extra_parts crtfastmath.o"
1003 tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff"
1004 case ${host} in
1005 *)
1006 tmake_file="${tmake_file} t-slibgcc-libgcc"
1007 ;;
1008 esac
1009 md_unwind_header=loongarch/linux-unwind.h
1010 ;;
1011 loongarch*-elf*)
1012 extra_parts="$extra_parts crtfastmath.o"
1013 tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff"
1014 tmake_file="${tmake_file} t-slibgcc-libgcc"
1015 ;;
1016 m32r-*-elf*)
1017 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
1018 extra_parts="$extra_parts crtinit.o crtfini.o"
1019 ;;
1020 m32rle-*-elf*)
1021 tmake_file=t-fdpbit
1022 ;;
1023 m68k-*-elf* | fido-*-elf)
1024 tmake_file="$tmake_file m68k/t-floatlib"
1025 ;;
1026 m68k*-*-netbsdelf*)
1027 ;;
1028 m68k*-*-openbsd*)
1029 ;;
1030 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
1031 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
1032 md_unwind_header=m68k/linux-unwind.h
1033 ;;
1034 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1035 # with ELF format using glibc 2
1036 # aka the GNU/Linux C library 6.
1037 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
1038 # If not configured with setjmp/longjmp exceptions, bump the
1039 # libgcc version number.
1040 if test x$ac_cv_sjlj_exceptions != xyes; then
1041 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
1042 fi
1043 md_unwind_header=m68k/linux-unwind.h
1044 ;;
1045 m68k-*-rtems*)
1046 tmake_file="$tmake_file m68k/t-floatlib"
1047 extra_parts="$extra_parts crti.o crtn.o"
1048 ;;
1049 mcore-*-elf)
1050 tmake_file="mcore/t-mcore t-fdpbit"
1051 extra_parts="$extra_parts crti.o crtn.o"
1052 ;;
1053 microblaze*-linux*)
1054 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
1055 md_unwind_header=microblaze/linux-unwind.h
1056 ;;
1057 microblaze*-*-elf)
1058 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
1059 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
1060 ;;
1061 microblaze*-*-rtems*)
1062 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
1063 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
1064 ;;
1065 mips*-*-netbsd*) # NetBSD/mips, either endian.
1066 ;;
1067 mips*-*-linux*) # Linux MIPS, either endian.
1068 extra_parts="$extra_parts crtfastmath.o"
1069 tmake_file="${tmake_file} t-crtfm"
1070 case ${host} in
1071 mips64r5900* | mipsr5900*)
1072 # The MIPS16 support code uses floating point
1073 # instructions that are not supported on r5900.
1074 ;;
1075 *)
1076 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
1077 ;;
1078 esac
1079 md_unwind_header=mips/linux-unwind.h
1080 ;;
1081 mips*-sde-elf*)
1082 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1083 case "${with_newlib}" in
1084 yes)
1085 # newlib / libgloss.
1086 ;;
1087 *)
1088 # MIPS toolkit libraries.
1089 tmake_file="$tmake_file mips/t-sdemtk"
1090 ;;
1091 esac
1092 extra_parts="$extra_parts crti.o crtn.o"
1093 ;;
1094 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
1095 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
1096 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
1097 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
1098 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
1099 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
1100 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1101 extra_parts="$extra_parts crti.o crtn.o"
1102 ;;
1103 mipsisa64sr71k-*-elf*)
1104 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
1105 extra_parts="$extra_parts crti.o crtn.o"
1106 ;;
1107 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1108 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1109 extra_parts="$extra_parts crti.o crtn.o"
1110 ;;
1111 mips-*-elf* | mipsel-*-elf*)
1112 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1113 extra_parts="$extra_parts crti.o crtn.o"
1114 ;;
1115 mipsr5900-*-elf* | mipsr5900el-*-elf*)
1116 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1117 extra_parts="$extra_parts crti.o crtn.o"
1118 ;;
1119 mips64-*-elf* | mips64el-*-elf*)
1120 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1121 extra_parts="$extra_parts crti.o crtn.o"
1122 ;;
1123 mips64r5900-*-elf* | mips64r5900el-*-elf*)
1124 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1125 extra_parts="$extra_parts crti.o crtn.o"
1126 ;;
1127 mips64vr-*-elf* | mips64vrel-*-elf*)
1128 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
1129 extra_parts="$extra_parts crti.o crtn.o"
1130 ;;
1131 mips64orion-*-elf* | mips64orionel-*-elf*)
1132 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1133 extra_parts="$extra_parts crti.o crtn.o"
1134 ;;
1135 mips*-*-rtems*)
1136 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1137 extra_parts="$extra_parts crti.o crtn.o"
1138 ;;
1139 mips-wrs-vxworks)
1140 ;;
1141 mipstx39-*-elf* | mipstx39el-*-elf*)
1142 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1143 ;;
1144 mmix-knuth-mmixware)
1145 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1146 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
1147 ;;
1148 mn10300-*-*)
1149 tmake_file=t-fdpbit
1150 ;;
1151 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
1152 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
1153 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
1154 ;;
1155 msp430-*-elf*)
1156 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
1157 extra_parts="crtbegin.o crtend.o crtbegin_no_eh.o crtend_no_eh.o"
1158 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
1159 ;;
1160 nds32*-linux*)
1161 # Basic makefile fragment and extra_parts for crt stuff.
1162 # We also append c-isr library implementation.
1163 tmake_file="${tmake_file} t-slibgcc-libgcc"
1164 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1165 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1166 md_unwind_header=nds32/linux-unwind.h
1167 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1168 case "${with_nds32_lib}" in
1169 "" | glibc | uclibc )
1170 ;;
1171 *)
1172 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1173 exit 1
1174 ;;
1175 esac
1176 ;;
1177 nds32*-elf*)
1178 # Basic makefile fragment and extra_parts for crt stuff.
1179 # We also append c-isr library implementation.
1180 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1181 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1182 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1183 case "${with_nds32_lib}" in
1184 "" | newlib)
1185 # Append library definition makefile fragment t-nds32-newlib.
1186 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1187 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1188 ;;
1189 mculib)
1190 # Append library definition makefile fragment t-nds32-mculib.
1191 # The software floating point library is included in mculib.
1192 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1193 ;;
1194 *)
1195 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1196 exit 1
1197 ;;
1198 esac
1199 ;;
1200 or1k-*-linux*)
1201 tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff"
1202 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1203 md_unwind_header=or1k/linux-unwind.h
1204 ;;
1205 or1k-*-*)
1206 tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff"
1207 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1208 ;;
1209 pdp11-*-*)
1210 tmake_file="pdp11/t-pdp11 t-fdpbit"
1211 ;;
1212 powerpc-*-darwin*)
1213 case ${host} in
1214 *-*-darwin9* | *-*-darwin[12][0-9]*)
1215 # libSystem contains unwind information for signal frames since
1216 # Darwin 9.
1217 ;;
1218 *)
1219 md_unwind_header=rs6000/darwin-unwind.h
1220 ;;
1221 esac
1222 # We build the darwin10 EH shim for Rosetta (running on x86 machines).
1223 tm_file="$tm_file i386/darwin-lib.h"
1224 tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
1225 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1226 ;;
1227 powerpc64-*-darwin*)
1228 # We build the darwin10 EH shim for Rosetta (running on x86 machines).
1229 tm_file="$tm_file i386/darwin-lib.h"
1230 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1231 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1232 ;;
1233 powerpc*-*-freebsd*)
1234 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1235 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1236 case ${host} in
1237 powerpc64*)
1238 tmake_file="${tmake_file} rs6000/t-freebsd64"
1239 md_unwind_header=rs6000/freebsd-unwind.h
1240 ;;
1241 esac
1242 ;;
1243 powerpc-*-netbsd*)
1244 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1245 ;;
1246 powerpc-*-eabisimaltivec*)
1247 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1248 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1249 ;;
1250 powerpc-*-eabisim*)
1251 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1252 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1253 ;;
1254 powerpc-*-elf*)
1255 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1256 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1257 ;;
1258 powerpc-*-eabialtivec*)
1259 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1260 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1261 ;;
1262 powerpc-xilinx-eabi*)
1263 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1264 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1265 ;;
1266 powerpc-*-eabi*)
1267 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1268 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1269 ;;
1270 powerpc-*-rtems*)
1271 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1272 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1273 ;;
1274 powerpc*-*-linux*)
1275 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"
1276 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1277 case $ppc_fp_type in
1278 64)
1279 ;;
1280 hard)
1281 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1282 ;;
1283 soft)
1284 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1285 ;;
1286 e500v1)
1287 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1288 ;;
1289 e500v2)
1290 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1291 ;;
1292 *)
1293 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1294 exit 1
1295 ;;
1296 esac
1297
1298 if test $libgcc_cv_powerpc_float128 = yes; then
1299 tmake_file="${tmake_file} rs6000/t-float128"
1300 fi
1301
1302 if test $libgcc_cv_powerpc_float128_hw = yes; then
1303 tmake_file="${tmake_file} rs6000/t-float128-hw"
1304 fi
1305
1306 if test $libgcc_cv_powerpc_3_1_float128_hw = yes; then
1307 tmake_file="${tmake_file} rs6000/t-float128-p10-hw"
1308 fi
1309
1310 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1311 md_unwind_header=rs6000/linux-unwind.h
1312 ;;
1313 powerpc*-wrs-vxworks7*)
1314 tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-dfprules rs6000/t-ppc64-fp"
1315 tmake_file="rs6000/t-crtstuff ${tmake_file}"
1316 case $ppc_fp_type in
1317 64)
1318 ;;
1319 hard)
1320 tmake_file="${tmake_file} t-hardfp-sfdf"
1321 ;;
1322 soft)
1323 tmake_file="${tmake_file} t-softfp-sfdf t-softfp"
1324 ;;
1325 *)
1326 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1327 exit 1
1328 ;;
1329 esac
1330 ;;
1331 powerpc-wrs-vxworks*)
1332 tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-fdpbit"
1333 ;;
1334 powerpc-*-lynxos*)
1335 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1336 ;;
1337 powerpcle-*-elf*)
1338 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1339 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1340 ;;
1341 powerpcle-*-eabisim*)
1342 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1343 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1344 ;;
1345 powerpcle-*-eabi*)
1346 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1347 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1348 ;;
1349 pru-*-*)
1350 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru"
1351 tm_file="$tm_file pru/pru-abi.h"
1352 ;;
1353 riscv*-*-linux*)
1354 tmake_file="${tmake_file} riscv/t-crtstuff riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1355 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1356 md_unwind_header=riscv/linux-unwind.h
1357 ;;
1358 riscv*-*-freebsd*)
1359 tmake_file="${tmake_file} riscv/t-crtstuff riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1360 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1361 ;;
1362 riscv*-*-*)
1363 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1364 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1365 ;;
1366 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1367 md_unwind_header=rs6000/aix-unwind.h
1368 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1369 ;;
1370 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1371 md_unwind_header=rs6000/aix-unwind.h
1372 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1373 ;;
1374 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1375 md_unwind_header=rs6000/aix-unwind.h
1376 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1377 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o crtcxa_64.o crtcxa_64_s.o crtdbase_64.o"
1378 ;;
1379 rl78-*-elf)
1380 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1381 ;;
1382 rx-*-elf)
1383 tmake_file="rx/t-rx t-fdpbit"
1384 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1385 ;;
1386 rx-*-linux*)
1387 tmake_file="rx/t-rx t-fdpbit"
1388 tm_file="$tm_file rx/rx-lib.h"
1389 ;;
1390 s390-*-linux*)
1391 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1392 md_unwind_header=s390/linux-unwind.h
1393 ;;
1394 s390x-*-linux*)
1395 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1396 if test "${host_address}" = 32; then
1397 tmake_file="${tmake_file} s390/32/t-floattodi"
1398 fi
1399 md_unwind_header=s390/linux-unwind.h
1400 ;;
1401 s390x-ibm-tpf*)
1402 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip s390/t-tpf"
1403 extra_parts="crtbeginS.o crtendS.o"
1404 md_unwind_header=s390/tpf-unwind.h
1405 ;;
1406 sh-*-elf* | sh[12346l]*-*-elf*)
1407 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-softfp-sfdf t-softfp"
1408 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1409 libic_invalidate_array_4-100.a \
1410 libic_invalidate_array_4-200.a \
1411 libic_invalidate_array_4a.a \
1412 libgcc-Os-4-200.a libgcc-4-300.a"
1413 case ${host} in
1414 sh*-superh-elf)
1415 tmake_file="$tmake_file sh/t-superh"
1416 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1417 ;;
1418 esac
1419 ;;
1420 sh-*-linux* | sh[2346lbe]*-*-linux*)
1421 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1422 md_unwind_header=sh/linux-unwind.h
1423 ;;
1424 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1425 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1426
1427 # NetBSD's C library includes a fast software FP library that
1428 # has support for setting/setting the rounding mode, exception
1429 # mask, etc. Therefore, we don't want to include software FP
1430 # in libgcc.
1431 ;;
1432 sh-*-rtems*)
1433 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1434 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1435 libic_invalidate_array_4-100.a \
1436 libic_invalidate_array_4-200.a \
1437 libic_invalidate_array_4a.a \
1438 libgcc-Os-4-200.a libgcc-4-300.a"
1439 ;;
1440 sh-wrs-vxworks)
1441 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1442 ;;
1443 sparc-*-netbsdelf*)
1444 ;;
1445 sparc64-*-openbsd*)
1446 ;;
1447 sparc-*-elf*)
1448 case ${host} in
1449 *-leon[3-9]*)
1450 ;;
1451 *)
1452 tmake_file="sparc/t-softmul"
1453 ;;
1454 esac
1455 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1456 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1457 ;;
1458 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1459 tmake_file="${tmake_file} t-crtfm"
1460 if test "${host_address}" = 64; then
1461 tmake_file="$tmake_file sparc/t-linux64"
1462 fi
1463 case ${host} in
1464 *-leon*)
1465 tmake_file="${tmake_file} t-fdpbit"
1466 ;;
1467 *)
1468 tmake_file="${tmake_file} sparc/t-linux"
1469 ;;
1470 esac
1471 case ${host} in
1472 *-leon[3-9]*)
1473 ;;
1474 *)
1475 if test "${host_address}" = 32; then
1476 tmake_file="$tmake_file sparc/t-softmul"
1477 fi
1478 ;;
1479 esac
1480 extra_parts="$extra_parts crtfastmath.o"
1481 md_unwind_header=sparc/linux-unwind.h
1482 ;;
1483 sparc-*-rtems*)
1484 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1485 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1486 ;;
1487 sparc*-*-solaris2*)
1488 tmake_file="$tmake_file t-crtfm"
1489 extra_parts="$extra_parts crtfastmath.o"
1490 md_unwind_header=sparc/sol2-unwind.h
1491 ;;
1492 sparc64-*-elf*)
1493 tmake_file="${tmake_file} t-crtfm"
1494 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1495 ;;
1496 sparc64-*-rtems*)
1497 tmake_file="$tmake_file t-crtfm"
1498 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1499 ;;
1500 sparc-wrs-vxworks)
1501 ;;
1502 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1503 tmake_file="$tmake_file t-crtfm"
1504 extra_parts="$extra_parts crtfastmath.o"
1505 ;;
1506 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1507 extra_parts="$extra_parts crtfastmath.o"
1508 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1509 if test "${host_address}" = 64; then
1510 tmake_file="${tmake_file} sparc/t-linux64"
1511 fi
1512 if test "${host_address}" = 32; then
1513 tmake_file="${tmake_file} sparc/t-softmul"
1514 fi
1515 md_unwind_header=sparc/linux-unwind.h
1516 ;;
1517 sparc64-*-netbsd*)
1518 ;;
1519 tic6x-*-uclinux)
1520 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1521 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1522 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1523 tm_file="$tm_file c6x/c6x-abi.h"
1524 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1525 unwind_header=config/c6x/unwind-c6x.h
1526 ;;
1527 tic6x-*-elf)
1528 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1529 tm_file="$tm_file c6x/c6x-abi.h"
1530 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1531 unwind_header=config/c6x/unwind-c6x.h
1532 ;;
1533 v850*-*-*)
1534 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1535 ;;
1536 vax-*-linux*)
1537 tmake_file="$tmake_file vax/t-linux"
1538 ;;
1539 vax-*-netbsdelf*)
1540 ;;
1541 vax-*-openbsd*)
1542 ;;
1543 visium-*-elf*)
1544 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1545 tmake_file="visium/t-visium t-fdpbit"
1546 ;;
1547 xstormy16-*-elf)
1548 tmake_file="stormy16/t-stormy16 t-fdpbit"
1549 ;;
1550 xtensa*-*-elf*)
1551 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1552 extra_parts="$extra_parts crti.o crtn.o"
1553 ;;
1554 xtensa*-*-linux*)
1555 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1556 md_unwind_header=xtensa/linux-unwind.h
1557 ;;
1558 xtensa*-*-uclinux*)
1559 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1560 md_unwind_header=xtensa/linux-unwind.h
1561 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1562 ;;
1563 am33_2.0-*-linux*)
1564 # Don't need crtbeginT.o from *-*-linux* default.
1565 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1566 tmake_file="$tmake_file t-fdpbit"
1567 ;;
1568 m32c-*-elf*)
1569 tmake_file="$tmake_file m32c/t-m32c"
1570 ;;
1571 nvptx-*)
1572 tmake_file="$tmake_file nvptx/t-nvptx"
1573 extra_parts="crt0.o"
1574 ;;
1575 *)
1576 echo "*** Configuration ${host} not supported" 1>&2
1577 exit 1
1578 ;;
1579 esac
1580
1581 case ${host} in
1582 i[34567]86-*-* | x86_64-*-*)
1583 case ${host} in
1584 *-musl*)
1585 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1586 ;;
1587 *)
1588 tmake_file="${tmake_file} i386/t-cpuinfo"
1589 ;;
1590 esac
1591 ;;
1592 esac
1593
1594 case ${host} in
1595 i[34567]86-*-linux* | x86_64-*-linux* | \
1596 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1597 i[34567]86-*-gnu* | x86_64-*-gnu*)
1598 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1599 if test "$libgcc_cv_cfi" = "yes"; then
1600 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1601 fi
1602 ;;
1603 esac
1604
1605 case ${host} in
1606 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1607 # These use soft-fp for SFmode and DFmode, not just TFmode.
1608 ;;
1609 i[34567]86-*-* | x86_64-*-*)
1610 tmake_file="${tmake_file} t-softfp-tf"
1611 tmake_file="${tmake_file} i386/${host_address}/t-softfp i386/t-softfp t-softfp"
1612 ;;
1613 esac
1614
1615 case ${host} in
1616 i[34567]86-*-linux* | x86_64-*-linux*)
1617 # Provide backward binary compatibility for 64bit Linux/x86.
1618 if test "${host_address}" = 64; then
1619 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1620 fi
1621 tm_file="${tm_file} i386/value-unwind.h"
1622 ;;
1623 aarch64*-*-*)
1624 # ILP32 needs an extra header for unwinding
1625 tm_file="${tm_file} aarch64/value-unwind.h"
1626 ;;
1627 riscv*-*-*)
1628 tm_file="${tm_file} riscv/value-unwind.h"
1629 ;;
1630 esac
1631
1632 # Setup to build a shared libgcc for VxWorks when that was requested,
1633 # for library variants that support it (rtp only, code model not large).
1634 #
1635
1636 case ${host} in
1637 *vxworks*)
1638 case ${with_multisubdir}-${enable_shared} in
1639 *large*)
1640 ;;
1641 *mrtp*-yes)
1642 tmake_file="${tmake_file} t-libgcc-pic"
1643
1644 # Arrange to set a soname on libgcc_s so DT_NEEDED entries
1645 # for it refer to that alone. This ensures absence of path
1646 # components which would be incorrect as the runtime loader
1647 # on target has no visibility over the host filesystem.
1648 tmake_file="${tmake_file} t-slibgcc-gld-nover"
1649 tmake_file="${tmake_file} t-slibgcc"
1650
1651 # t-slibgcc-libgcc is needed on at least aarch64 (for
1652 # lse) and at most harmless on other targets.
1653 tmake_file="${tmake_file} t-slibgcc-libgcc"
1654
1655 tmake_file="${tmake_file} t-crtstuff-pic t-vxcrtstuffS"
1656 ;;
1657 esac
1658 ;;
1659 esac
1660
1661 # The vxworks threads implementation relies on a few extra sources,
1662 # which we arrange to add after everything else:
1663
1664 case ${target_thread_file} in
1665 vxworks)
1666 case ${host} in
1667 *-*-vxworksae)
1668 tmake_file="${tmake_file} t-gthr-vxworksae"
1669 ;;
1670 *-*-vxworks*)
1671 tmake_file="${tmake_file} t-gthr-vxworks"
1672 ;;
1673 esac
1674 esac
1675
1676 case ${host} in
1677 *-*-musl*)
1678 # The gthr weak references are unsafe with static linking
1679 tmake_file="$tmake_file t-gthr-noweak"
1680 ;;
1681 esac