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