]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgcc/config.host
MSP430: Add -fno-exceptions multilib
[thirdparty/gcc.git] / libgcc / config.host
1 # libgcc host-specific configuration file.
2 # Copyright (C) 1997-2019 Free Software Foundation, Inc.
3
4 #This file is part of GCC.
5
6 #GCC is free software; you can redistribute it and/or modify it under
7 #the terms of the GNU General Public License as published by the Free
8 #Software Foundation; either version 3, or (at your option) any later
9 #version.
10
11 #GCC is distributed in the hope that it will be useful, but WITHOUT
12 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 #for more details.
15
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING3. If not see
18 #<http://www.gnu.org/licenses/>.
19
20 # This is the libgcc host-specific configuration file
21 # where a configuration type is mapped to different system-specific
22 # definitions and files. This is invoked by the autoconf-generated
23 # configure script. Putting it in a separate shell file lets us skip
24 # running autoconf when modifying host-specific information.
25
26 # This file bears an obvious resemblance to gcc/config.gcc. The cases
27 # should be kept similar, to ease moving library-specific settings
28 # from config.gcc to this file. That is also why tmake_file is
29 # left as tmake_file, rather than hmake_file, even though this library
30 # switches on ${host}.
31
32 # This file switches on the shell variable ${host}, and also uses the
33 # following shell variables:
34 #
35 # with_* Various variables as set by configure.
36
37 # This file sets the following shell variables for use by the
38 # autoconf-generated configure script:
39 #
40 # asm_hidden_op The assembler pseudo-op to use for hide
41 # lists for object files implemented in
42 # assembly (with -fvisibility=hidden for C).
43 # The default is ".hidden".
44 # cpu_type The name of the cpu, if different from the first
45 # chunk of the canonical host name.
46 # enable_execute_stack The name of a source file implementing
47 # __enable_execute_stack.
48 # extra_parts List of extra object files that should be compiled
49 # for this target machine. This may be overridden
50 # by setting EXTRA_PARTS in a tmake_file fragment.
51 # If either is set, EXTRA_PARTS and
52 # EXTRA_MULTILIB_PARTS inherited from the GCC
53 # subdirectory will be ignored.
54 # md_unwind_header The name of a header file defining
55 # MD_FALLBACK_FRAME_STATE_FOR.
56 # sfp_machine_header The name of a sfp-machine.h header file for soft-fp.
57 # Defaults to "$cpu_type/sfp-machine.h" if it exists,
58 # no-sfp-machine.h otherwise.
59 # tmake_file A list of machine-description-specific
60 # makefile fragments.
61 # tm_defines List of target macros to define for all compilations.
62 # tm_file A list of target macro files used only for code
63 # built for the target, not the host. These files
64 # are relative to $srcdir/config and must not have
65 # the same names as files in $srcdir/../gcc/config.
66 # unwind_header The name of the header file declaring the unwind
67 # runtime interface routines.
68
69 asm_hidden_op=.hidden
70 enable_execute_stack=
71 extra_parts=
72 tmake_file=
73 tm_file=
74 tm_define=
75 md_unwind_header=no-unwind.h
76 unwind_header=unwind-generic.h
77
78 # Set default cpu_type so it can be updated in each machine entry.
79 cpu_type=`echo ${host} | sed 's/-.*$//'`
80 case ${host} in
81 m32c*-*-*)
82 cpu_type=m32c
83 tmake_file=t-fdpbit
84 ;;
85 aarch64*-*-*)
86 cpu_type=aarch64
87 ;;
88 alpha*-*-*)
89 cpu_type=alpha
90 ;;
91 am33_2.0-*-linux*)
92 cpu_type=mn10300
93 ;;
94 amdgcn*-*-*)
95 cpu_type=gcn
96 tmake_file="${tmake_file} t-softfp-sfdf t-softfp"
97 ;;
98 arc*-*-*)
99 cpu_type=arc
100 ;;
101 arm*-*-*)
102 cpu_type=arm
103 ;;
104 avr-*-*)
105 cpu_type=avr
106 ;;
107 bfin*-*)
108 cpu_type=bfin
109 ;;
110 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 if test x${with_avrlibc} != xno; then
518 tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
519 fi
520 tm_file="$tm_file avr/avr-lib.h"
521 if test x${with_fixed_point} = xno; then
522 fixed_point=no
523 fi
524 ;;
525 bfin*-elf*)
526 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
527 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
528 ;;
529 bfin*-uclinux*)
530 tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
531 extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
532 md_unwind_header=bfin/linux-unwind.h
533 ;;
534 bfin*-linux-uclibc*)
535 tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
536 # No need to build crtbeginT.o on uClibc systems. Should probably
537 # be moved to the OS specific section above.
538 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
539 md_unwind_header=bfin/linux-unwind.h
540 ;;
541 bfin*-rtems*)
542 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
543 extra_parts="$extra_parts crti.o crtn.o"
544 ;;
545 bfin*-*)
546 tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
547 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
548 ;;
549 bpf-*-*)
550 tmake_file="$tmake_file ${cpu_type}/t-${cpu_type}"
551 extra_parts="crti.o crtn.o"
552 ;;
553 cr16-*-elf)
554 tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
555 extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
556 ;;
557 crisv32-*-elf)
558 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp"
559 ;;
560 cris-*-elf)
561 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
562 ;;
563 cris-*-linux* | crisv32-*-linux*)
564 tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux"
565 ;;
566 csky-*-elf*)
567 tmake_file="csky/t-csky t-fdpbit"
568 extra_parts="$extra_parts crti.o crtn.o"
569 ;;
570 csky-*-linux*)
571 tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
572 extra_parts="$extra_parts crti.o crtn.o"
573 md_unwind_header=csky/linux-unwind.h
574 ;;
575 epiphany-*-elf* | epiphany-*-rtems*)
576 tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
577 extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
578 ;;
579 fr30-*-elf)
580 tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
581 extra_parts="$extra_parts crti.o crtn.o"
582 ;;
583 frv-*-elf)
584 tmake_file="$tmake_file frv/t-frv t-fdpbit"
585 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
586 # Don't use crtbegin.o, crtend.o.
587 extra_parts="frvbegin.o frvend.o"
588 ;;
589 frv-*-*linux*)
590 tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
591 tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
592 ;;
593 ft32-*-elf)
594 tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
595 extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
596 ;;
597 h8300-*-elf*)
598 tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
599 tm_file="$tm_file h8300/h8300-lib.h"
600 extra_parts="$extra_parts crti.o crtn.o"
601 ;;
602 h8300-*-linux*)
603 tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
604 tm_file="$tm_file h8300/h8300-lib.h"
605 ;;
606 hppa*64*-*-linux*)
607 tmake_file="$tmake_file pa/t-linux pa/t-linux64"
608 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
609 ;;
610 hppa*-*-linux*)
611 tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
612 # Set the libgcc version number
613 if test x$ac_cv_sjlj_exceptions = xyes; then
614 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
615 else
616 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
617 fi
618 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
619 md_unwind_header=pa/linux-unwind.h
620 ;;
621 hppa[12]*-*-hpux10*)
622 tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
623 # Set the libgcc version number
624 if test x$ac_cv_sjlj_exceptions = xyes; then
625 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
626 else
627 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
628 fi
629 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
630 md_unwind_header=pa/hpux-unwind.h
631 ;;
632 hppa*64*-*-hpux11*)
633 tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc"
634 # Set the libgcc version number
635 if test x$ac_cv_sjlj_exceptions = xyes; then
636 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
637 else
638 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
639 fi
640 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
641 tm_file="$tm_file pa/pa64-hpux-lib.h"
642 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
643 libgcc_stub.a"
644 md_unwind_header=pa/hpux-unwind.h
645 ;;
646 hppa[12]*-*-hpux11*)
647 tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
648 # Set the libgcc version number
649 if test x$ac_cv_sjlj_exceptions = xyes; then
650 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
651 else
652 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
653 fi
654 tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
655 extra_parts="libgcc_stub.a"
656 md_unwind_header=pa/hpux-unwind.h
657 ;;
658 hppa*-*-openbsd*)
659 tmake_file="$tmake_file pa/t-openbsd"
660 ;;
661 hppa*-*-netbsd*)
662 tmake_file="$tmake_file pa/t-netbsd"
663 ;;
664 i[34567]86-*-darwin*)
665 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
666 tm_file="$tm_file i386/darwin-lib.h"
667 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
668 ;;
669 x86_64-*-darwin*)
670 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
671 tm_file="$tm_file i386/darwin-lib.h"
672 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
673 ;;
674 i[34567]86-*-elfiamcu)
675 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"
676 ;;
677 i[34567]86-*-elf*)
678 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
679 ;;
680 x86_64-*-elf* | x86_64-*-rtems*)
681 tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
682 case ${host} in
683 x86_64-*-rtems*)
684 extra_parts="$extra_parts crti.o crtn.o"
685 ;;
686 esac
687 ;;
688 x86_64-*-fuchsia*)
689 tmake_file="$tmake_file t-libgcc-pic"
690 ;;
691 i[34567]86-*-dragonfly*)
692 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
693 md_unwind_header=i386/dragonfly-unwind.h
694 ;;
695 x86_64-*-dragonfly*)
696 tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
697 md_unwind_header=i386/dragonfly-unwind.h
698 ;;
699 i[34567]86-*-freebsd*)
700 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
701 md_unwind_header=i386/freebsd-unwind.h
702 ;;
703 x86_64-*-freebsd*)
704 tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
705 md_unwind_header=i386/freebsd-unwind.h
706 ;;
707 i[34567]86-*-netbsdelf*)
708 tmake_file="${tmake_file} i386/t-crtstuff"
709 ;;
710 x86_64-*-netbsd*)
711 tmake_file="${tmake_file} i386/t-crtstuff"
712 ;;
713 i[34567]86-*-openbsd*)
714 ;;
715 x86_64-*-openbsd*)
716 ;;
717 i[34567]86-*-linux*)
718 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
719 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
720 tm_file="${tm_file} i386/elf-lib.h"
721 md_unwind_header=i386/linux-unwind.h
722 ;;
723 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
724 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
725 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
726 tm_file="${tm_file} i386/elf-lib.h"
727 ;;
728 x86_64-*-linux*)
729 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
730 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
731 tm_file="${tm_file} i386/elf-lib.h"
732 md_unwind_header=i386/linux-unwind.h
733 ;;
734 x86_64-*-kfreebsd*-gnu)
735 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
736 tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
737 tm_file="${tm_file} i386/elf-lib.h"
738 ;;
739 i[34567]86-pc-msdosdjgpp*)
740 ;;
741 i[34567]86-*-lynxos*)
742 ;;
743 i[34567]86-*-nto-qnx*)
744 tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
745 extra_parts=crtbegin.o
746 ;;
747 i[34567]86-*-rtems*)
748 tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
749 extra_parts="$extra_parts crti.o crtn.o"
750 ;;
751 i[34567]86-*-solaris2* | x86_64-*-solaris2*)
752 tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
753 extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
754 tm_file="${tm_file} i386/elf-lib.h"
755 md_unwind_header=i386/sol2-unwind.h
756 ;;
757 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae|i[4567]86-wrs-vxworks7|x86_64-wrs-vxworks7)
758 ;;
759 i[34567]86-*-cygwin*)
760 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
761 if test x$enable_vtable_verify = xyes; then
762 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
763 fi
764 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
765 if test x$ac_cv_sjlj_exceptions = xyes; then
766 tmake_eh_file="i386/t-sjlj-eh"
767 else
768 tmake_eh_file="i386/t-dw2-eh"
769 fi
770 # Shared libgcc DLL install dir depends on cross/native build.
771 if test x${build} = x${host} ; then
772 tmake_dlldir_file="i386/t-dlldir"
773 else
774 tmake_dlldir_file="i386/t-dlldir-x"
775 fi
776 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"
777 ;;
778 x86_64-*-cygwin*)
779 extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
780 if test x$enable_vtable_verify = xyes; then
781 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
782 fi
783 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
784 if test x$ac_cv_sjlj_exceptions = xyes; then
785 tmake_eh_file="i386/t-sjlj-eh"
786 elif test "${host_address}" = 32; then
787 # biarch -m32 with --disable-sjlj-exceptions
788 tmake_eh_file="i386/t-dw2-eh"
789 else
790 tmake_eh_file="i386/t-seh-eh"
791 fi
792 # Shared libgcc DLL install dir depends on cross/native build.
793 if test x${build} = x${host} ; then
794 tmake_dlldir_file="i386/t-dlldir"
795 else
796 tmake_dlldir_file="i386/t-dlldir-x"
797 fi
798 # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
799 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"
800 ;;
801 i[34567]86-*-mingw*)
802 extra_parts="crtbegin.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 case ${target_thread_file} in
807 win32)
808 tmake_file="$tmake_file i386/t-gthr-win32"
809 ;;
810 posix)
811 tmake_file="i386/t-mingw-pthread $tmake_file"
812 ;;
813 esac
814 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
815 if test x$ac_cv_sjlj_exceptions = xyes; then
816 tmake_eh_file="i386/t-sjlj-eh"
817 else
818 tmake_eh_file="i386/t-dw2-eh"
819 md_unwind_header=i386/w32-unwind.h
820 fi
821 # Shared libgcc DLL install dir depends on cross/native build.
822 if test x${build} = x${host} ; then
823 tmake_dlldir_file="i386/t-dlldir"
824 else
825 tmake_dlldir_file="i386/t-dlldir-x"
826 fi
827 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"
828 ;;
829 x86_64-*-mingw*)
830 case ${target_thread_file} in
831 win32)
832 tmake_file="$tmake_file i386/t-gthr-win32"
833 ;;
834 posix)
835 tmake_file="i386/t-mingw-pthread $tmake_file"
836 ;;
837 esac
838 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
839 if test x$ac_cv_sjlj_exceptions = xyes; then
840 tmake_eh_file="i386/t-sjlj-eh"
841 elif test "${host_address}" = 32; then
842 # biarch -m32 with --disable-sjlj-exceptions
843 tmake_eh_file="i386/t-dw2-eh"
844 md_unwind_header=i386/w32-unwind.h
845 else
846 tmake_eh_file="i386/t-seh-eh"
847 fi
848 # Shared libgcc DLL install dir depends on cross/native build.
849 if test x${build} = x${host} ; then
850 tmake_dlldir_file="i386/t-dlldir"
851 else
852 tmake_dlldir_file="i386/t-dlldir-x"
853 fi
854 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"
855 extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
856 if test x$enable_vtable_verify = xyes; then
857 extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
858 fi
859 ;;
860 ia64*-*-elf*)
861 extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
862 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"
863 ;;
864 ia64*-*-freebsd*)
865 extra_parts="$extra_parts crtfastmath.o"
866 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"
867 ;;
868 ia64*-*-linux*)
869 # Don't use crtbeginT.o from *-*-linux* default.
870 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
871 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"
872 if test x$with_system_libunwind != xyes ; then
873 tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
874 fi
875 md_unwind_header=ia64/linux-unwind.h
876 ;;
877 ia64*-*-hpux*)
878 tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
879 ;;
880 ia64-hp-*vms*)
881 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"
882 extra_parts="$extra_parts crtinitS.o"
883 md_unwind_header=ia64/vms-unwind.h
884 ;;
885 iq2000*-*-elf*)
886 tmake_file="iq2000/t-iq2000 t-fdpbit"
887 # Don't use default.
888 extra_parts=
889 ;;
890 lm32-*-elf*)
891 extra_parts="$extra_parts crti.o crtn.o"
892 tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
893 ;;
894 lm32-*-rtems*)
895 tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
896 extra_parts="$extra_parts crti.o crtn.o"
897 ;;
898 lm32-*-uclinux*)
899 extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
900 tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
901 ;;
902 m32r-*-elf*)
903 tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
904 extra_parts="$extra_parts crtinit.o crtfini.o"
905 ;;
906 m32rle-*-elf*)
907 tmake_file=t-fdpbit
908 ;;
909 m32r-*-linux*)
910 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
911 ;;
912 m32rle-*-linux*)
913 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
914 ;;
915 m68k-*-elf* | fido-*-elf)
916 tmake_file="$tmake_file m68k/t-floatlib"
917 ;;
918 m68k*-*-netbsdelf*)
919 ;;
920 m68k*-*-openbsd*)
921 ;;
922 m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
923 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
924 md_unwind_header=m68k/linux-unwind.h
925 ;;
926 m68k-*-linux*) # Motorola m68k's running GNU/Linux
927 # with ELF format using glibc 2
928 # aka the GNU/Linux C library 6.
929 tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
930 # If not configured with setjmp/longjmp exceptions, bump the
931 # libgcc version number.
932 if test x$ac_cv_sjlj_exceptions != xyes; then
933 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
934 fi
935 md_unwind_header=m68k/linux-unwind.h
936 ;;
937 m68k-*-rtems*)
938 tmake_file="$tmake_file m68k/t-floatlib"
939 extra_parts="$extra_parts crti.o crtn.o"
940 ;;
941 mcore-*-elf)
942 tmake_file="mcore/t-mcore t-fdpbit"
943 extra_parts="$extra_parts crti.o crtn.o"
944 ;;
945 microblaze*-linux*)
946 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
947 ;;
948 microblaze*-*-elf)
949 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
950 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
951 ;;
952 microblaze*-*-rtems*)
953 tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
954 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
955 ;;
956 mips*-*-netbsd*) # NetBSD/mips, either endian.
957 ;;
958 mips*-*-linux*) # Linux MIPS, either endian.
959 extra_parts="$extra_parts crtfastmath.o"
960 tmake_file="${tmake_file} t-crtfm"
961 case ${host} in
962 mips64r5900* | mipsr5900*)
963 # The MIPS16 support code uses floating point
964 # instructions that are not supported on r5900.
965 ;;
966 *)
967 tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
968 ;;
969 esac
970 md_unwind_header=mips/linux-unwind.h
971 ;;
972 mips*-sde-elf*)
973 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
974 case "${with_newlib}" in
975 yes)
976 # newlib / libgloss.
977 ;;
978 *)
979 # MIPS toolkit libraries.
980 tmake_file="$tmake_file mips/t-sdemtk"
981 ;;
982 esac
983 extra_parts="$extra_parts crti.o crtn.o"
984 ;;
985 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
986 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
987 mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
988 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
989 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
990 mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
991 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
992 extra_parts="$extra_parts crti.o crtn.o"
993 ;;
994 mipsisa64sr71k-*-elf*)
995 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
996 extra_parts="$extra_parts crti.o crtn.o"
997 ;;
998 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
999 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1000 extra_parts="$extra_parts crti.o crtn.o"
1001 ;;
1002 mips-*-elf* | mipsel-*-elf*)
1003 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1004 extra_parts="$extra_parts crti.o crtn.o"
1005 ;;
1006 mipsr5900-*-elf* | mipsr5900el-*-elf*)
1007 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1008 extra_parts="$extra_parts crti.o crtn.o"
1009 ;;
1010 mips64-*-elf* | mips64el-*-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 mips64r5900-*-elf* | mips64r5900el-*-elf*)
1015 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
1016 extra_parts="$extra_parts crti.o crtn.o"
1017 ;;
1018 mips64vr-*-elf* | mips64vrel-*-elf*)
1019 tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
1020 extra_parts="$extra_parts crti.o crtn.o"
1021 ;;
1022 mips64orion-*-elf* | mips64orionel-*-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 mips*-*-rtems*)
1027 tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
1028 extra_parts="$extra_parts crti.o crtn.o"
1029 ;;
1030 mips-wrs-vxworks)
1031 ;;
1032 mipstx39-*-elf* | mipstx39el-*-elf*)
1033 tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
1034 ;;
1035 mmix-knuth-mmixware)
1036 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1037 tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
1038 ;;
1039 mn10300-*-*)
1040 tmake_file=t-fdpbit
1041 ;;
1042 moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
1043 tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
1044 extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
1045 ;;
1046 msp430*-*-elf)
1047 tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
1048 extra_parts="$extra_parts crtbegin_no_eh.o crtend_no_eh.o"
1049 extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
1050 ;;
1051 nds32*-linux*)
1052 # Basic makefile fragment and extra_parts for crt stuff.
1053 # We also append c-isr library implementation.
1054 tmake_file="${tmake_file} t-slibgcc-libgcc"
1055 tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
1056 # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
1057 md_unwind_header=nds32/linux-unwind.h
1058 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1059 case "${with_nds32_lib}" in
1060 "" | glibc | uclibc )
1061 ;;
1062 *)
1063 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
1064 exit 1
1065 ;;
1066 esac
1067 ;;
1068 nds32*-elf*)
1069 # Basic makefile fragment and extra_parts for crt stuff.
1070 # We also append c-isr library implementation.
1071 tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
1072 extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
1073 # Append library definition makefile fragment according to --with-nds32-lib=X setting.
1074 case "${with_nds32_lib}" in
1075 "" | newlib)
1076 # Append library definition makefile fragment t-nds32-newlib.
1077 # Append 'soft-fp' software floating point make rule fragment provided by gcc.
1078 tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
1079 ;;
1080 mculib)
1081 # Append library definition makefile fragment t-nds32-mculib.
1082 # The software floating point library is included in mculib.
1083 tmake_file="${tmake_file} nds32/t-nds32-mculib"
1084 ;;
1085 *)
1086 echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
1087 exit 1
1088 ;;
1089 esac
1090 ;;
1091 nios2-*-linux*)
1092 tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
1093 md_unwind_header=nios2/linux-unwind.h
1094 ;;
1095 nios2-*-*)
1096 tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
1097 extra_parts="$extra_parts crti.o crtn.o"
1098 ;;
1099 or1k-*-linux*)
1100 tmake_file="$tmake_file or1k/t-or1k"
1101 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1102 md_unwind_header=or1k/linux-unwind.h
1103 ;;
1104 or1k-*-*)
1105 tmake_file="$tmake_file or1k/t-or1k"
1106 tmake_file="$tmake_file t-softfp-sfdf t-softfp"
1107 ;;
1108 pdp11-*-*)
1109 tmake_file="pdp11/t-pdp11 t-fdpbit"
1110 ;;
1111 powerpc-*-darwin*)
1112 case ${host} in
1113 *-*-darwin9* | *-*-darwin[12][0-9]*)
1114 # libSystem contains unwind information for signal frames since
1115 # Darwin 9.
1116 ;;
1117 *)
1118 md_unwind_header=rs6000/darwin-unwind.h
1119 ;;
1120 esac
1121 tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
1122 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1123 ;;
1124 powerpc64-*-darwin*)
1125 tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
1126 extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
1127 ;;
1128 powerpc*-*-freebsd*)
1129 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
1130 extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1131 case ${host} in
1132 powerpc64*)
1133 tmake_file="${tmake_file} rs6000/t-freebsd64"
1134 md_unwind_header=rs6000/freebsd-unwind.h
1135 ;;
1136 esac
1137 ;;
1138 powerpc-*-netbsd*)
1139 tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
1140 ;;
1141 powerpc-*-eabispe*)
1142 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1143 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1144 ;;
1145 powerpc-*-eabisimaltivec*)
1146 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1147 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1148 ;;
1149 powerpc-*-eabisim*)
1150 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1151 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1152 ;;
1153 powerpc-*-elf*)
1154 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1155 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1156 ;;
1157 powerpc-*-eabialtivec*)
1158 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1159 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1160 ;;
1161 powerpc-xilinx-eabi*)
1162 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1163 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1164 ;;
1165 powerpc-*-eabi*)
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-*-rtems*)
1170 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1171 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1172 ;;
1173 powerpc*-*-linux*)
1174 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"
1175 tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
1176 case $ppc_fp_type in
1177 64)
1178 ;;
1179 hard)
1180 tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
1181 ;;
1182 soft)
1183 tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
1184 ;;
1185 e500v1)
1186 tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
1187 ;;
1188 e500v2)
1189 tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
1190 ;;
1191 *)
1192 echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
1193 exit 1
1194 ;;
1195 esac
1196
1197 if test $libgcc_cv_powerpc_float128 = yes; then
1198 tmake_file="${tmake_file} rs6000/t-float128"
1199 fi
1200
1201 if test $libgcc_cv_powerpc_float128_hw = yes; then
1202 tmake_file="${tmake_file} rs6000/t-float128-hw"
1203 fi
1204
1205 extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
1206 md_unwind_header=rs6000/linux-unwind.h
1207 ;;
1208 powerpc-wrs-vxworks*)
1209 tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
1210 extra_parts="$extra_parts crtbegin.o crtend.o"
1211 ;;
1212 powerpc-*-lynxos*)
1213 tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
1214 ;;
1215 powerpcle-*-elf*)
1216 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1217 extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1218 ;;
1219 powerpcle-*-eabisim*)
1220 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1221 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1222 ;;
1223 powerpcle-*-eabi*)
1224 tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
1225 extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
1226 ;;
1227 pru-*-*)
1228 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru"
1229 tm_file="$tm_file pru/pru-abi.h"
1230 ;;
1231 riscv*-*-linux*)
1232 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1233 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1234 md_unwind_header=riscv/linux-unwind.h
1235 ;;
1236 riscv*-*-freebsd*)
1237 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
1238 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
1239 ;;
1240 riscv*-*-*)
1241 tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
1242 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1243 ;;
1244 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1245 md_unwind_header=rs6000/aix-unwind.h
1246 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1247 ;;
1248 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1249 md_unwind_header=rs6000/aix-unwind.h
1250 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
1251 ;;
1252 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1253 md_unwind_header=rs6000/aix-unwind.h
1254 tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
1255 extra_parts="crtcxa.o crtcxa_s.o crtdbase.o"
1256 ;;
1257 rl78-*-elf)
1258 tmake_file="$tm_file t-fdpbit rl78/t-rl78"
1259 ;;
1260 rx-*-elf)
1261 tmake_file="rx/t-rx t-fdpbit"
1262 tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
1263 ;;
1264 rx-*-linux*)
1265 tmake_file="rx/t-rx t-fdpbit"
1266 tm_file="$tm_file rx/rx-lib.h"
1267 ;;
1268 s390-*-linux*)
1269 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
1270 md_unwind_header=s390/linux-unwind.h
1271 ;;
1272 s390x-*-linux*)
1273 tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
1274 if test "${host_address}" = 32; then
1275 tmake_file="${tmake_file} s390/32/t-floattodi"
1276 fi
1277 md_unwind_header=s390/linux-unwind.h
1278 ;;
1279 s390x-ibm-tpf*)
1280 tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
1281 extra_parts="crtbeginS.o crtendS.o"
1282 md_unwind_header=s390/tpf-unwind.h
1283 ;;
1284 sh-*-elf* | sh[12346l]*-*-elf*)
1285 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1286 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1287 libic_invalidate_array_4-100.a \
1288 libic_invalidate_array_4-200.a \
1289 libic_invalidate_array_4a.a \
1290 libgcc-Os-4-200.a libgcc-4-300.a"
1291 case ${host} in
1292 sh*-superh-elf)
1293 tmake_file="$tmake_file sh/t-superh"
1294 extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
1295 ;;
1296 esac
1297 ;;
1298 sh-*-linux* | sh[2346lbe]*-*-linux*)
1299 tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
1300 md_unwind_header=sh/linux-unwind.h
1301 ;;
1302 sh-*-netbsdelf* | shl*-*-netbsdelf*)
1303 tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
1304
1305 # NetBSD's C library includes a fast software FP library that
1306 # has support for setting/setting the rounding mode, exception
1307 # mask, etc. Therefore, we don't want to include software FP
1308 # in libgcc.
1309 ;;
1310 sh-*-rtems*)
1311 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1312 extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
1313 libic_invalidate_array_4-100.a \
1314 libic_invalidate_array_4-200.a \
1315 libic_invalidate_array_4a.a \
1316 libgcc-Os-4-200.a libgcc-4-300.a"
1317 ;;
1318 sh-wrs-vxworks)
1319 tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
1320 ;;
1321 sparc-*-netbsdelf*)
1322 ;;
1323 sparc64-*-openbsd*)
1324 ;;
1325 sparc-*-elf*)
1326 case ${host} in
1327 *-leon[3-9]*)
1328 ;;
1329 *)
1330 tmake_file="sparc/t-softmul"
1331 ;;
1332 esac
1333 tmake_file="${tmake_file} t-fdpbit t-crtfm"
1334 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1335 ;;
1336 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
1337 tmake_file="${tmake_file} t-crtfm"
1338 if test "${host_address}" = 64; then
1339 tmake_file="$tmake_file sparc/t-linux64"
1340 fi
1341 case ${host} in
1342 *-leon*)
1343 tmake_file="${tmake_file} t-fdpbit"
1344 ;;
1345 *)
1346 tmake_file="${tmake_file} sparc/t-linux"
1347 ;;
1348 esac
1349 case ${host} in
1350 *-leon[3-9]*)
1351 ;;
1352 *)
1353 if test "${host_address}" = 32; then
1354 tmake_file="$tmake_file sparc/t-softmul"
1355 fi
1356 ;;
1357 esac
1358 extra_parts="$extra_parts crtfastmath.o"
1359 md_unwind_header=sparc/linux-unwind.h
1360 ;;
1361 sparc-*-rtems*)
1362 tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
1363 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1364 ;;
1365 sparc*-*-solaris2*)
1366 tmake_file="$tmake_file t-crtfm"
1367 extra_parts="$extra_parts crtfastmath.o"
1368 md_unwind_header=sparc/sol2-unwind.h
1369 ;;
1370 sparc64-*-elf*)
1371 tmake_file="${tmake_file} t-crtfm"
1372 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1373 ;;
1374 sparc64-*-rtems*)
1375 tmake_file="$tmake_file t-crtfm"
1376 extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
1377 ;;
1378 sparc-wrs-vxworks)
1379 ;;
1380 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1381 tmake_file="$tmake_file t-crtfm"
1382 extra_parts="$extra_parts crtfastmath.o"
1383 ;;
1384 sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
1385 extra_parts="$extra_parts crtfastmath.o"
1386 tmake_file="${tmake_file} t-crtfm sparc/t-linux"
1387 if test "${host_address}" = 64; then
1388 tmake_file="${tmake_file} sparc/t-linux64"
1389 fi
1390 if test "${host_address}" = 32; then
1391 tmake_file="${tmake_file} sparc/t-softmul"
1392 fi
1393 md_unwind_header=sparc/linux-unwind.h
1394 ;;
1395 sparc64-*-netbsd*)
1396 ;;
1397 tic6x-*-uclinux)
1398 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
1399 c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
1400 t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
1401 tm_file="$tm_file c6x/c6x-abi.h"
1402 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1403 unwind_header=config/c6x/unwind-c6x.h
1404 ;;
1405 tic6x-*-elf)
1406 tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
1407 tm_file="$tm_file c6x/c6x-abi.h"
1408 extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
1409 unwind_header=config/c6x/unwind-c6x.h
1410 ;;
1411 tilegx*-*-linux*)
1412 if test "${host_address}" = 64; then
1413 tmake_file="${tmake_file} tilegx/t-softfp"
1414 fi
1415 tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx"
1416 md_unwind_header=tilepro/linux-unwind.h
1417 ;;
1418 tilepro*-*-linux*)
1419 tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc"
1420 md_unwind_header=tilepro/linux-unwind.h
1421 ;;
1422 v850*-*-*)
1423 tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
1424 ;;
1425 vax-*-linux*)
1426 tmake_file="$tmake_file vax/t-linux"
1427 ;;
1428 vax-*-netbsdelf*)
1429 ;;
1430 vax-*-openbsd*)
1431 ;;
1432 visium-*-elf*)
1433 extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
1434 tmake_file="visium/t-visium t-fdpbit"
1435 ;;
1436 xstormy16-*-elf)
1437 tmake_file="stormy16/t-stormy16 t-fdpbit"
1438 ;;
1439 xtensa*-*-elf*)
1440 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
1441 extra_parts="$extra_parts crti.o crtn.o"
1442 ;;
1443 xtensa*-*-linux*)
1444 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1445 md_unwind_header=xtensa/linux-unwind.h
1446 ;;
1447 xtensa*-*-uclinux*)
1448 tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
1449 md_unwind_header=xtensa/linux-unwind.h
1450 extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
1451 ;;
1452 am33_2.0-*-linux*)
1453 # Don't need crtbeginT.o from *-*-linux* default.
1454 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1455 tmake_file="$tmake_file t-fdpbit"
1456 ;;
1457 m32c-*-elf*|m32c-*-rtems*)
1458 tmake_file="$tmake_file m32c/t-m32c"
1459 ;;
1460 nvptx-*)
1461 tmake_file="$tmake_file nvptx/t-nvptx"
1462 extra_parts="crt0.o"
1463 ;;
1464 *)
1465 echo "*** Configuration ${host} not supported" 1>&2
1466 exit 1
1467 ;;
1468 esac
1469
1470 case ${host} in
1471 i[34567]86-*-* | x86_64-*-*)
1472 case ${host} in
1473 *-musl*)
1474 tmake_file="${tmake_file} i386/t-cpuinfo-static"
1475 ;;
1476 *)
1477 tmake_file="${tmake_file} i386/t-cpuinfo"
1478 ;;
1479 esac
1480 ;;
1481 esac
1482
1483 case ${host} in
1484 i[34567]86-*-linux* | x86_64-*-linux* | \
1485 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
1486 i[34567]86-*-gnu*)
1487 tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
1488 if test "$libgcc_cv_cfi" = "yes"; then
1489 tmake_file="${tmake_file} t-stack i386/t-stack-i386"
1490 fi
1491 ;;
1492 esac
1493
1494 case ${host} in
1495 i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
1496 # These use soft-fp for SFmode and DFmode, not just TFmode.
1497 ;;
1498 i[34567]86-*-* | x86_64-*-*)
1499 tmake_file="${tmake_file} t-softfp-tf"
1500 if test "${host_address}" = 32; then
1501 tmake_file="${tmake_file} i386/${host_address}/t-softfp"
1502 fi
1503 tmake_file="${tmake_file} i386/t-softfp t-softfp"
1504 ;;
1505 esac
1506
1507 case ${host} in
1508 i[34567]86-*-linux* | x86_64-*-linux*)
1509 # Provide backward binary compatibility for 64bit Linux/x86.
1510 if test "${host_address}" = 64; then
1511 tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
1512 fi
1513 tm_file="${tm_file} i386/value-unwind.h"
1514 ;;
1515 aarch64*-*-*)
1516 # ILP32 needs an extra header for unwinding
1517 tm_file="${tm_file} aarch64/value-unwind.h"
1518 ;;
1519 esac
1520
1521 # The vxworks threads implementation relies on a few extra sources,
1522 # which we arrange to add after everything else:
1523
1524 case ${target_thread_file} in
1525 vxworks)
1526 case ${host} in
1527 *-*-vxworksae)
1528 tmake_file="${tmake_file} t-gthr-vxworksae"
1529 ;;
1530 *-*-vxworks*)
1531 tmake_file="${tmake_file} t-gthr-vxworks"
1532 ;;
1533 esac
1534 esac
1535
1536 case ${host} in
1537 *-*-musl*)
1538 # The gthr weak references are unsafe with static linking
1539 tmake_file="$tmake_file t-gthr-noweak"
1540 ;;
1541 esac