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