]>
Commit | Line | Data |
---|---|---|
fa958513 | 1 | # libgcc host-specific configuration file. |
cbe34bb5 | 2 | # Copyright (C) 1997-2017 Free Software Foundation, Inc. |
fa958513 DJ |
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 | |
748086b7 | 8 | #Software Foundation; either version 3, or (at your option) any later |
fa958513 DJ |
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 | |
748086b7 JJ |
17 | #along with GCC; see the file COPYING3. If not see |
18 | #<http://www.gnu.org/licenses/>. | |
fa958513 DJ |
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. | |
10e48e39 RO |
46 | # enable_execute_stack The name of a source file implementing |
47 | # __enable_execute_stack. | |
fa958513 DJ |
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. | |
58cd1d70 RO |
54 | # md_unwind_header The name of a header file defining |
55 | # MD_FALLBACK_FRAME_STATE_FOR. | |
aca0b0b3 RO |
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. | |
fa958513 | 59 | # tmake_file A list of machine-description-specific |
200feb07 | 60 | # makefile fragments. |
852b75ed RO |
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. | |
201cdb74 RO |
66 | # unwind_header The name of the header file declaring the unwind |
67 | # runtime interface routines. | |
fa958513 DJ |
68 | |
69 | asm_hidden_op=.hidden | |
10e48e39 | 70 | enable_execute_stack= |
fa958513 DJ |
71 | extra_parts= |
72 | tmake_file= | |
852b75ed RO |
73 | tm_file= |
74 | tm_define= | |
58cd1d70 | 75 | md_unwind_header=no-unwind.h |
201cdb74 | 76 | unwind_header=unwind-generic.h |
fa958513 DJ |
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 | |
569dc494 | 83 | tmake_file=t-fdpbit |
fa958513 | 84 | ;; |
1e3d5096 IB |
85 | aarch64*-*-*) |
86 | cpu_type=aarch64 | |
87 | ;; | |
fa958513 DJ |
88 | alpha*-*-*) |
89 | cpu_type=alpha | |
90 | ;; | |
91 | am33_2.0-*-linux*) | |
92 | cpu_type=mn10300 | |
93 | ;; | |
d38a64b4 JR |
94 | arc*-*-*) |
95 | cpu_type=arc | |
96 | ;; | |
fa958513 DJ |
97 | arm*-*-*) |
98 | cpu_type=arm | |
99 | ;; | |
47583040 AH |
100 | avr-*-*) |
101 | cpu_type=avr | |
102 | ;; | |
fa958513 DJ |
103 | bfin*-*) |
104 | cpu_type=bfin | |
105 | ;; | |
b25364a0 S |
106 | cr16-*-*) |
107 | ;; | |
0e499e75 HPN |
108 | crisv32-*-*) |
109 | cpu_type=cris | |
110 | ;; | |
7d33c31d KH |
111 | fido-*-*) |
112 | cpu_type=m68k | |
113 | ;; | |
fa958513 DJ |
114 | frv*) cpu_type=frv |
115 | ;; | |
fef939d6 JB |
116 | ft32*) cpu_type=ft32 |
117 | ;; | |
cceb575c AG |
118 | moxie*) cpu_type=moxie |
119 | ;; | |
fa958513 DJ |
120 | i[34567]86-*-*) |
121 | cpu_type=i386 | |
122 | ;; | |
123 | x86_64-*-*) | |
124 | cpu_type=i386 | |
125 | ;; | |
126 | ia64-*-*) | |
127 | ;; | |
cd985f66 | 128 | hppa*-*-*) |
fa958513 DJ |
129 | cpu_type=pa |
130 | ;; | |
aa4945c1 JB |
131 | lm32*-*-*) |
132 | cpu_type=lm32 | |
133 | ;; | |
fa958513 DJ |
134 | m32r*-*-*) |
135 | cpu_type=m32r | |
136 | ;; | |
fa958513 DJ |
137 | m68k-*-*) |
138 | ;; | |
80920132 ME |
139 | microblaze*-*-*) |
140 | cpu_type=microblaze | |
141 | ;; | |
fa958513 | 142 | mips*-*-*) |
1ea0a651 | 143 | # All MIPS targets provide a full set of FP routines. |
fa958513 | 144 | cpu_type=mips |
1c51d688 RS |
145 | tmake_file="mips/t-mips" |
146 | if test "${libgcc_cv_mips_hard_float}" = yes; then | |
147 | tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp" | |
148 | else | |
149 | tmake_file="${tmake_file} t-softfp-sfdf" | |
150 | fi | |
1ea0a651 RS |
151 | if test "${ac_cv_sizeof_long_double}" = 16; then |
152 | tmake_file="${tmake_file} mips/t-softfp-tf" | |
153 | fi | |
154 | if test "${host_address}" = 64; then | |
155 | tmake_file="${tmake_file} mips/t-mips64" | |
156 | fi | |
157 | tmake_file="${tmake_file} t-softfp" | |
fa958513 | 158 | ;; |
9304f876 CJW |
159 | nds32*-*) |
160 | cpu_type=nds32 | |
161 | ;; | |
e430824f CLT |
162 | nios2*-*-*) |
163 | cpu_type=nios2 | |
164 | ;; | |
fa958513 DJ |
165 | powerpc*-*-*) |
166 | cpu_type=rs6000 | |
167 | ;; | |
168 | rs6000*-*-*) | |
169 | ;; | |
fa958513 DJ |
170 | sparc64*-*-*) |
171 | cpu_type=sparc | |
172 | ;; | |
173 | sparc*-*-*) | |
174 | cpu_type=sparc | |
175 | ;; | |
176 | spu*-*-*) | |
177 | cpu_type=spu | |
178 | ;; | |
179 | s390*-*-*) | |
180 | cpu_type=s390 | |
181 | ;; | |
182 | # Note the 'l'; we need to be able to match e.g. "shle" or "shl". | |
183 | sh[123456789lbe]*-*-*) | |
184 | cpu_type=sh | |
185 | ;; | |
341c653c WL |
186 | tilegx*-*-*) |
187 | cpu_type=tilegx | |
188 | ;; | |
189 | tilepro*-*-*) | |
190 | cpu_type=tilepro | |
191 | ;; | |
4be46d19 NC |
192 | v850*-*-*) |
193 | cpu_type=v850 | |
194 | ;; | |
bcead286 BS |
195 | tic6x-*-*) |
196 | cpu_type=c6x | |
197 | ;; | |
fa958513 DJ |
198 | esac |
199 | ||
200 | # Common parts for widely ported systems. | |
201 | case ${host} in | |
202 | *-*-darwin*) | |
203 | asm_hidden_op=.private_extern | |
f9989b51 | 204 | tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic t-slibgcc-darwin" |
e2362f5d | 205 | extra_parts="crt3.o crttms.o crttme.o" |
fa958513 | 206 | ;; |
dbed5a9b JM |
207 | *-*-dragonfly*) |
208 | tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip" | |
209 | tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver" | |
210 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
211 | ;; | |
fa958513 DJ |
212 | *-*-freebsd*) |
213 | # This is the generic ELF configuration of FreeBSD. Later | |
214 | # machine-specific sections may refine and add to this | |
215 | # configuration. | |
f9989b51 | 216 | 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" |
5f73c6cc | 217 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
b040f2be RO |
218 | case ${target_thread_file} in |
219 | posix) | |
f9989b51 | 220 | tmake_file="${tmake_file} t-freebsd-thread" |
b040f2be RO |
221 | # Before 5.0, FreeBSD can't bind shared libraries to -lc |
222 | # when "optionally" threaded via weak pthread_* checks. | |
223 | case ${host} in | |
224 | *-*-freebsd[34] | *-*-freebsd[34].*) | |
225 | tmake_file="${tmake_file} t-slibgcc-nolc-override" | |
226 | ;; | |
227 | esac | |
228 | ;; | |
229 | esac | |
fa958513 | 230 | ;; |
8466af06 | 231 | *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu) |
f9989b51 | 232 | 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" |
227a7dc8 RO |
233 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
234 | if test x$enable_vtable_verify = xyes; then | |
235 | extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" | |
236 | fi | |
fa958513 | 237 | ;; |
5f73c6cc | 238 | *-*-lynxos*) |
f9989b51 | 239 | tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic" |
5f73c6cc RO |
240 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
241 | ;; | |
fa958513 | 242 | *-*-netbsd*) |
ab955692 KW |
243 | tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip" |
244 | tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver" | |
5f73c6cc RO |
245 | # NetBSD 1.7 and later are set up to use GCC's crtstuff for |
246 | # ELF configurations. We will clear extra_parts in the | |
247 | # a.out configurations. | |
248 | case ${host} in | |
249 | *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) | |
250 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" | |
251 | ;; | |
252 | esac | |
fa958513 DJ |
253 | ;; |
254 | *-*-openbsd*) | |
8eaee0f0 | 255 | tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip" |
f9989b51 RO |
256 | case ${target_thread_file} in |
257 | posix) | |
258 | tmake_file="$tmake_file t-openbsd-thread" | |
259 | ;; | |
260 | esac | |
fa958513 DJ |
261 | ;; |
262 | *-*-rtems*) | |
c9cd1a07 | 263 | tmake_file="$tmake_file t-rtems" |
5f73c6cc | 264 | extra_parts="crtbegin.o crtend.o" |
fa958513 | 265 | ;; |
ca24c5ad | 266 | *-*-solaris2*) |
201cdb74 RO |
267 | # Unless linker support and dl_iterate_phdr are present, |
268 | # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c. | |
df2a1cc4 | 269 | tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver" |
ca24c5ad RO |
270 | if test $with_gnu_ld = yes; then |
271 | tmake_file="$tmake_file t-slibgcc-gld" | |
272 | else | |
273 | tmake_file="$tmake_file t-slibgcc-sld" | |
274 | fi | |
275 | # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES. | |
276 | tmake_file="$tmake_file $cpu_type/t-sol2" | |
277 | extra_parts="gmon.o crtbegin.o crtend.o" | |
2d110442 RO |
278 | if test "${libgcc_cv_solaris_crts}" = yes; then |
279 | # Solaris 11.x and 12 provide crt1.o, crti.o, and crtn.o as part of the | |
280 | # base system. crtp.o and crtpg.o implement the compiler-dependent parts. | |
281 | extra_parts="$extra_parts crtp.o crtpg.o" | |
df2a1cc4 RO |
282 | # If the Solaris CRTs are present, both ld and gld will have PIE support. |
283 | extra_parts="$extra_parts crtbeginS.o crtendS.o" | |
2d110442 RO |
284 | else |
285 | case ${host} in | |
286 | i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*) | |
287 | # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as | |
288 | # part of the base system. | |
289 | ;; | |
290 | sparc*-*-solaris2.1[0-9]*) | |
291 | # Solaris 10+/SPARC lacks crt1.o and gcrt1.o. | |
292 | extra_parts="$extra_parts crt1.o gcrt1.o" | |
293 | ;; | |
294 | esac | |
295 | fi | |
e5ef217c RO |
296 | if test x$enable_vtable_verify = xyes; then |
297 | extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" | |
298 | fi | |
ca24c5ad | 299 | ;; |
5f73c6cc RO |
300 | *-*-uclinux*) |
301 | extra_parts="crtbegin.o crtend.o" | |
302 | ;; | |
303 | *-*-*vms*) | |
304 | tmake_file="vms/t-vms" | |
4b12e93d | 305 | extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o" |
5f73c6cc | 306 | ;; |
fa958513 | 307 | *-*-vxworks*) |
f9989b51 | 308 | tmake_file=t-vxworks |
fa958513 DJ |
309 | ;; |
310 | *-*-elf) | |
5f73c6cc | 311 | extra_parts="crtbegin.o crtend.o" |
fa958513 DJ |
312 | ;; |
313 | esac | |
314 | ||
10e48e39 | 315 | case ${host} in |
dbed5a9b JM |
316 | *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \ |
317 | *-*-solaris2*) | |
10e48e39 RO |
318 | enable_execute_stack=enable-execute-stack-mprotect.c |
319 | ;; | |
320 | i[34567]86-*-mingw* | x86_64-*-mingw*) | |
321 | enable_execute_stack=config/i386/enable-execute-stack-mingw32.c | |
322 | ;; | |
323 | *) | |
324 | enable_execute_stack=enable-execute-stack-empty.c; | |
325 | ;; | |
326 | esac | |
327 | ||
fa958513 | 328 | case ${host} in |
7cb065d6 | 329 | aarch64*-*-elf | aarch64*-*-rtems*) |
1e3d5096 | 330 | extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o" |
b677236a | 331 | extra_parts="$extra_parts crtfastmath.o" |
1e3d5096 | 332 | tmake_file="${tmake_file} ${cpu_type}/t-aarch64" |
b677236a | 333 | tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" |
1e3d5096 | 334 | ;; |
b20e7532 AT |
335 | aarch64*-*-freebsd*) |
336 | extra_parts="$extra_parts crtfastmath.o" | |
337 | tmake_file="${tmake_file} ${cpu_type}/t-aarch64" | |
338 | tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" | |
339 | ;; | |
1e3d5096 | 340 | aarch64*-*-linux*) |
b677236a | 341 | extra_parts="$extra_parts crtfastmath.o" |
1e3d5096 IB |
342 | md_unwind_header=aarch64/linux-unwind.h |
343 | tmake_file="${tmake_file} ${cpu_type}/t-aarch64" | |
b677236a | 344 | tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm" |
1e3d5096 | 345 | ;; |
ebb9f8b0 | 346 | alpha*-*-linux*) |
f9989b51 | 347 | tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux" |
5ea41e3a | 348 | extra_parts="$extra_parts crtfastmath.o" |
58cd1d70 | 349 | md_unwind_header=alpha/linux-unwind.h |
fa958513 | 350 | ;; |
fa958513 | 351 | alpha*-*-freebsd*) |
f9989b51 | 352 | tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm" |
5f73c6cc | 353 | extra_parts="$extra_parts crtbeginT.o crtfastmath.o" |
fa958513 DJ |
354 | ;; |
355 | alpha*-*-netbsd*) | |
f9989b51 | 356 | tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" |
fa958513 DJ |
357 | ;; |
358 | alpha*-*-openbsd*) | |
f9989b51 | 359 | tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" |
fa958513 | 360 | ;; |
fa958513 | 361 | alpha64-dec-*vms*) |
f9989b51 | 362 | tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms" |
5f73c6cc | 363 | extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o" |
58cd1d70 | 364 | md_unwind_header=alpha/vms-unwind.h |
fa958513 DJ |
365 | ;; |
366 | alpha*-dec-*vms*) | |
f9989b51 | 367 | tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms" |
5f73c6cc | 368 | extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o" |
58cd1d70 | 369 | md_unwind_header=alpha/vms-unwind.h |
fa958513 | 370 | ;; |
d38a64b4 | 371 | arc*-*-elf*) |
e04ea1da CZ |
372 | tmake_file="arc/t-arc" |
373 | extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o" | |
374 | extra_parts="$extra_parts crttls.o" | |
d38a64b4 JR |
375 | ;; |
376 | arc*-*-linux-uclibc*) | |
e04ea1da CZ |
377 | tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc" |
378 | extra_parts="$extra_parts crti.o crtn.o" | |
62440b4f | 379 | extra_parts="$extra_parts crttls.o" |
d38a64b4 | 380 | ;; |
fa958513 | 381 | arm-wrs-vxworks) |
1a80085d | 382 | tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" |
5f73c6cc | 383 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 | 384 | ;; |
82a19768 AT |
385 | arm*-*-freebsd*) # ARM FreeBSD EABI |
386 | tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf" | |
387 | tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd t-slibgcc-libgcc" | |
388 | tm_file="${tm_file} arm/bpabi-lib.h" | |
389 | unwind_header=config/arm/unwind-arm.h | |
390 | tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" | |
391 | ;; | |
fa958513 | 392 | arm*-*-netbsdelf*) |
f9989b51 | 393 | tmake_file="$tmake_file arm/t-arm arm/t-netbsd t-slibgcc-gld-nover" |
fa958513 | 394 | ;; |
fa958513 | 395 | arm*-*-linux*) # ARM GNU/Linux with ELF |
5a0ff57c | 396 | tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm" |
5005fe22 RE |
397 | tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc" |
398 | tm_file="$tm_file arm/bpabi-lib.h" | |
399 | unwind_header=config/arm/unwind-arm.h | |
aca0b0b3 | 400 | tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" |
5a0ff57c | 401 | extra_parts="$extra_parts crtfastmath.o" |
fa958513 DJ |
402 | ;; |
403 | arm*-*-uclinux*) # ARM ucLinux | |
5a0ff57c | 404 | tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm" |
064c4ff2 | 405 | tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" |
5005fe22 RE |
406 | tmake_file="${tmake_file} arm/t-bpabi" |
407 | tm_file="$tm_file arm/bpabi-lib.h" | |
408 | unwind_header=config/arm/unwind-arm.h | |
5f73c6cc | 409 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 | 410 | ;; |
a34c0db5 JS |
411 | arm*-*-phoenix*) |
412 | tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix" | |
413 | tmake_file="${tmake_file} arm/t-bpabi" | |
414 | tm_file="$tm_file arm/bpabi-lib.h" | |
415 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" | |
416 | unwind_header=config/arm/unwind-arm.h | |
417 | ;; | |
153c8397 | 418 | arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*) |
45b86625 | 419 | tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix" |
852b75ed | 420 | tm_file="$tm_file arm/bpabi-lib.h" |
201cdb74 | 421 | case ${host} in |
153c8397 | 422 | arm*-*-eabi* | arm*-*-rtems*) |
5a0ff57c | 423 | tmake_file="${tmake_file} arm/t-bpabi t-crtfm" |
5f73c6cc | 424 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
201cdb74 RO |
425 | ;; |
426 | arm*-*-symbianelf*) | |
b040f2be | 427 | tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override" |
852b75ed | 428 | tm_file="$tm_file arm/symbian-lib.h" |
5f73c6cc | 429 | # Symbian OS provides its own startup code. |
201cdb74 RO |
430 | ;; |
431 | esac | |
aca0b0b3 | 432 | tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" |
1300f017 | 433 | extra_parts="$extra_parts crtfastmath.o" |
201cdb74 | 434 | unwind_header=config/arm/unwind-arm.h |
fa958513 | 435 | ;; |
fa958513 | 436 | avr-*-*) |
569dc494 RO |
437 | # Make HImode functions for AVR |
438 | tmake_file="${cpu_type}/t-avr t-fpbit" | |
b588ae30 GJL |
439 | if test x${with_avrlibc} != xno; then |
440 | tmake_file="$tmake_file ${cpu_type}/t-avrlibc" | |
441 | fi | |
852b75ed | 442 | tm_file="$tm_file avr/avr-lib.h" |
fa958513 DJ |
443 | ;; |
444 | bfin*-elf*) | |
200feb07 | 445 | tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit" |
5f73c6cc | 446 | extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o" |
fa958513 DJ |
447 | ;; |
448 | bfin*-uclinux*) | |
200feb07 | 449 | tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit" |
5f73c6cc | 450 | extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o" |
58cd1d70 | 451 | md_unwind_header=bfin/linux-unwind.h |
fa958513 | 452 | ;; |
344189f9 | 453 | bfin*-linux-uclibc*) |
200feb07 | 454 | tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux" |
344189f9 BS |
455 | # No need to build crtbeginT.o on uClibc systems. Should probably |
456 | # be moved to the OS specific section above. | |
457 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
58cd1d70 | 458 | md_unwind_header=bfin/linux-unwind.h |
344189f9 | 459 | ;; |
569dc494 | 460 | bfin*-rtems*) |
45b86625 | 461 | tmake_file="$tmake_file bfin/t-bfin t-fdpbit" |
5f73c6cc | 462 | extra_parts="$extra_parts crti.o crtn.o" |
569dc494 | 463 | ;; |
fa958513 | 464 | bfin*-*) |
45b86625 | 465 | tmake_file="$tmake_file bfin/t-bfin t-fdpbit" |
5f73c6cc | 466 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
fa958513 | 467 | ;; |
b25364a0 S |
468 | cr16-*-elf) |
469 | tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit" | |
470 | extra_parts="$extra_parts crti.o crtn.o crtlibid.o" | |
471 | ;; | |
5f73c6cc | 472 | crisv32-*-elf) |
0e499e75 | 473 | tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp" |
5f73c6cc | 474 | ;; |
5f73c6cc | 475 | cris-*-elf) |
0e499e75 | 476 | tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti" |
5f73c6cc | 477 | ;; |
4081d704 | 478 | cris-*-linux* | crisv32-*-linux*) |
0e499e75 | 479 | tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-linux" |
fa958513 | 480 | ;; |
feeeff5c JR |
481 | epiphany-*-elf*) |
482 | tmake_file="epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf" | |
483 | extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o" | |
484 | ;; | |
fa958513 | 485 | fr30-*-elf) |
45b86625 | 486 | tmake_file="$tmake_file fr30/t-fr30 t-fdpbit" |
5f73c6cc | 487 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 DJ |
488 | ;; |
489 | frv-*-elf) | |
5f73c6cc | 490 | tmake_file="$tmake_file frv/t-frv t-fdpbit" |
cc86234f | 491 | tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h" |
5f73c6cc RO |
492 | # Don't use crtbegin.o, crtend.o. |
493 | extra_parts="frvbegin.o frvend.o" | |
fa958513 DJ |
494 | ;; |
495 | frv-*-*linux*) | |
45b86625 | 496 | tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit" |
cc86234f | 497 | tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h" |
fa958513 | 498 | ;; |
fef939d6 JB |
499 | ft32-*-elf) |
500 | tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp" | |
501 | extra_parts="$extra_parts crti.o crti-hw.o crtn.o" | |
502 | ;; | |
fa958513 | 503 | h8300-*-elf*) |
45b86625 | 504 | tmake_file="$tmake_file h8300/t-h8300 t-fpbit" |
852b75ed | 505 | tm_file="$tm_file h8300/h8300-lib.h" |
5f73c6cc | 506 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 | 507 | ;; |
2f6bd6eb YS |
508 | h8300-*-linux*) |
509 | tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp" | |
510 | tm_file="$tm_file h8300/h8300-lib.h" | |
511 | ;; | |
cd985f66 | 512 | hppa*64*-*-linux*) |
45b86625 | 513 | tmake_file="$tmake_file pa/t-linux pa/t-linux64" |
69778659 | 514 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
fa958513 | 515 | ;; |
cd985f66 | 516 | hppa*-*-linux*) |
45b86625 | 517 | tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc" |
b040f2be | 518 | # Set the libgcc version number |
9b92a9f3 | 519 | if test x$ac_cv_sjlj_exceptions = xyes; then |
b040f2be RO |
520 | tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" |
521 | else | |
522 | tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" | |
523 | fi | |
69778659 | 524 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
0defd786 | 525 | md_unwind_header=pa/linux-unwind.h |
fa958513 DJ |
526 | ;; |
527 | hppa[12]*-*-hpux10*) | |
f9989b51 | 528 | tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc" |
b040f2be | 529 | # Set the libgcc version number |
9b92a9f3 | 530 | if test x$ac_cv_sjlj_exceptions = xyes; then |
b040f2be RO |
531 | tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" |
532 | else | |
533 | tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" | |
534 | fi | |
535 | tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux" | |
58cd1d70 | 536 | md_unwind_header=pa/hpux-unwind.h |
fa958513 DJ |
537 | ;; |
538 | hppa*64*-*-hpux11*) | |
9dfd5832 | 539 | tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-stublib t-libgcc-pic t-slibgcc" |
b040f2be | 540 | # Set the libgcc version number |
9b92a9f3 | 541 | if test x$ac_cv_sjlj_exceptions = xyes; then |
b040f2be RO |
542 | tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" |
543 | else | |
544 | tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" | |
545 | fi | |
546 | tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux" | |
4c6d7494 | 547 | tm_file="$tm_file pa/pa64-hpux-lib.h" |
5f73c6cc RO |
548 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \ |
549 | libgcc_stub.a" | |
58cd1d70 | 550 | md_unwind_header=pa/hpux-unwind.h |
fa958513 DJ |
551 | ;; |
552 | hppa[12]*-*-hpux11*) | |
f9989b51 | 553 | tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc" |
b040f2be | 554 | # Set the libgcc version number |
9b92a9f3 | 555 | if test x$ac_cv_sjlj_exceptions = xyes; then |
b040f2be RO |
556 | tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" |
557 | else | |
558 | tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" | |
559 | fi | |
560 | tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux" | |
5f73c6cc | 561 | extra_parts="libgcc_stub.a" |
58cd1d70 | 562 | md_unwind_header=pa/hpux-unwind.h |
fa958513 | 563 | ;; |
17f293b0 MK |
564 | hppa*-*-openbsd*) |
565 | tmake_file="$tmake_file pa/t-openbsd" | |
566 | ;; | |
fa958513 | 567 | i[34567]86-*-darwin*) |
9b789cc1 | 568 | tmake_file="$tmake_file i386/t-crtpc t-crtfm" |
852b75ed | 569 | tm_file="$tm_file i386/darwin-lib.h" |
b3fe1584 | 570 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
fa958513 DJ |
571 | ;; |
572 | x86_64-*-darwin*) | |
9b789cc1 | 573 | tmake_file="$tmake_file i386/t-crtpc t-crtfm" |
852b75ed | 574 | tm_file="$tm_file i386/darwin-lib.h" |
b3fe1584 | 575 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
fa958513 | 576 | ;; |
cb78b51c L |
577 | i[34567]86-*-elfiamcu) |
578 | 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" | |
579 | ;; | |
fa958513 | 580 | i[34567]86-*-elf*) |
f9989b51 | 581 | tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic" |
fa958513 | 582 | ;; |
df674f74 | 583 | x86_64-*-elf* | x86_64-*-rtems*) |
f9989b51 | 584 | tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic" |
3ae3dbd6 | 585 | ;; |
dbed5a9b JM |
586 | i[34567]86-*-dragonfly*) |
587 | tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" | |
588 | md_unwind_header=i386/dragonfly-unwind.h | |
589 | ;; | |
590 | x86_64-*-dragonfly*) | |
591 | tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" | |
592 | md_unwind_header=i386/dragonfly-unwind.h | |
593 | ;; | |
fa958513 | 594 | i[34567]86-*-freebsd*) |
5f73c6cc | 595 | tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" |
89c54dd3 | 596 | md_unwind_header=i386/freebsd-unwind.h |
fa958513 DJ |
597 | ;; |
598 | x86_64-*-freebsd*) | |
5f73c6cc | 599 | tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" |
89c54dd3 | 600 | md_unwind_header=i386/freebsd-unwind.h |
fa958513 DJ |
601 | ;; |
602 | i[34567]86-*-netbsdelf*) | |
d6574dd1 | 603 | tmake_file="${tmake_file} i386/t-crtstuff" |
fa958513 | 604 | ;; |
fa958513 | 605 | x86_64-*-netbsd*) |
5f73c6cc | 606 | tmake_file="${tmake_file} i386/t-crtstuff" |
fa958513 | 607 | ;; |
fa958513 DJ |
608 | i[34567]86-*-openbsd*) |
609 | ;; | |
613061fd MK |
610 | x86_64-*-openbsd*) |
611 | ;; | |
9e7714f4 | 612 | i[34567]86-*-linux*) |
577565f9 | 613 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
9b789cc1 | 614 | tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" |
7bbf9734 | 615 | tm_file="${tm_file} i386/elf-lib.h" |
58cd1d70 | 616 | md_unwind_header=i386/linux-unwind.h |
fa958513 | 617 | ;; |
8466af06 | 618 | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu) |
9e7714f4 | 619 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
9b789cc1 | 620 | tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" |
7bbf9734 | 621 | tm_file="${tm_file} i386/elf-lib.h" |
9e7714f4 TS |
622 | ;; |
623 | x86_64-*-linux*) | |
577565f9 | 624 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
9b789cc1 | 625 | tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" |
7bbf9734 | 626 | tm_file="${tm_file} i386/elf-lib.h" |
58cd1d70 | 627 | md_unwind_header=i386/linux-unwind.h |
fa958513 | 628 | ;; |
8466af06 | 629 | x86_64-*-kfreebsd*-gnu) |
9e7714f4 | 630 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
9b789cc1 | 631 | tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules" |
7bbf9734 | 632 | tm_file="${tm_file} i386/elf-lib.h" |
9e7714f4 | 633 | ;; |
fa958513 DJ |
634 | i[34567]86-pc-msdosdjgpp*) |
635 | ;; | |
636 | i[34567]86-*-lynxos*) | |
637 | ;; | |
fa958513 | 638 | i[34567]86-*-nto-qnx*) |
f9989b51 | 639 | tmake_file="$tmake_file i386/t-nto t-libgcc-pic" |
5f73c6cc | 640 | extra_parts=crtbegin.o |
fa958513 DJ |
641 | ;; |
642 | i[34567]86-*-rtems*) | |
21184026 | 643 | tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp" |
5f73c6cc | 644 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 | 645 | ;; |
fbdd5d87 | 646 | i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
9b789cc1 | 647 | tmake_file="$tmake_file i386/t-crtpc t-crtfm" |
b3fe1584 | 648 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
f962fbf1 | 649 | tm_file="${tm_file} i386/elf-lib.h" |
58cd1d70 | 650 | md_unwind_header=i386/sol2-unwind.h |
fa958513 | 651 | ;; |
fa958513 DJ |
652 | i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae) |
653 | ;; | |
58cd1d70 | 654 | i[34567]86-*-cygwin*) |
25efdb9f | 655 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o" |
f7f049fa CT |
656 | if test x$enable_vtable_verify = xyes; then |
657 | extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" | |
658 | fi | |
b040f2be | 659 | # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h |
9b92a9f3 | 660 | if test x$ac_cv_sjlj_exceptions = xyes; then |
b040f2be RO |
661 | tmake_eh_file="i386/t-sjlj-eh" |
662 | else | |
663 | tmake_eh_file="i386/t-dw2-eh" | |
664 | fi | |
665 | # Shared libgcc DLL install dir depends on cross/native build. | |
666 | if test x${build} = x${host} ; then | |
667 | tmake_dlldir_file="i386/t-dlldir" | |
668 | else | |
669 | tmake_dlldir_file="i386/t-dlldir-x" | |
670 | fi | |
9b789cc1 | 671 | 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" |
9bd196f0 | 672 | ;; |
e9fd8c19 | 673 | x86_64-*-cygwin*) |
25efdb9f | 674 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o" |
f7f049fa CT |
675 | if test x$enable_vtable_verify = xyes; then |
676 | extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" | |
677 | fi | |
e9fd8c19 | 678 | # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h |
9b92a9f3 | 679 | if test x$ac_cv_sjlj_exceptions = xyes; then |
e9fd8c19 | 680 | tmake_eh_file="i386/t-sjlj-eh" |
6befaff6 SL |
681 | elif test "${host_address}" = 32; then |
682 | # biarch -m32 with --disable-sjlj-exceptions | |
683 | tmake_eh_file="i386/t-dw2-eh" | |
e9fd8c19 KT |
684 | else |
685 | tmake_eh_file="i386/t-seh-eh" | |
686 | fi | |
687 | # Shared libgcc DLL install dir depends on cross/native build. | |
688 | if test x${build} = x${host} ; then | |
689 | tmake_dlldir_file="i386/t-dlldir" | |
690 | else | |
691 | tmake_dlldir_file="i386/t-dlldir-x" | |
692 | fi | |
693 | # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that | |
9b789cc1 | 694 | 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" |
e9fd8c19 | 695 | ;; |
58cd1d70 RO |
696 | i[34567]86-*-mingw*) |
697 | extra_parts="crtbegin.o crtend.o crtfastmath.o" | |
f7f049fa CT |
698 | if test x$enable_vtable_verify = xyes; then |
699 | extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" | |
700 | fi | |
f9989b51 RO |
701 | case ${target_thread_file} in |
702 | win32) | |
703 | tmake_file="$tmake_file i386/t-gthr-win32" | |
704 | ;; | |
e3d871e4 RO |
705 | posix) |
706 | tmake_file="i386/t-mingw-pthread $tmake_file" | |
707 | ;; | |
f9989b51 | 708 | esac |
b040f2be | 709 | # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h |
9b92a9f3 | 710 | if test x$ac_cv_sjlj_exceptions = xyes; then |
b040f2be RO |
711 | tmake_eh_file="i386/t-sjlj-eh" |
712 | else | |
713 | tmake_eh_file="i386/t-dw2-eh" | |
0c0c6398 | 714 | md_unwind_header=i386/w32-unwind.h |
b040f2be RO |
715 | fi |
716 | # Shared libgcc DLL install dir depends on cross/native build. | |
717 | if test x${build} = x${host} ; then | |
718 | tmake_dlldir_file="i386/t-dlldir" | |
719 | else | |
720 | tmake_dlldir_file="i386/t-dlldir-x" | |
721 | fi | |
9b789cc1 | 722 | 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" |
58cd1d70 | 723 | ;; |
9bd196f0 | 724 | x86_64-*-mingw*) |
f9989b51 RO |
725 | case ${target_thread_file} in |
726 | win32) | |
727 | tmake_file="$tmake_file i386/t-gthr-win32" | |
728 | ;; | |
e3d871e4 RO |
729 | posix) |
730 | tmake_file="i386/t-mingw-pthread $tmake_file" | |
731 | ;; | |
f9989b51 | 732 | esac |
b040f2be | 733 | # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h |
9b92a9f3 | 734 | if test x$ac_cv_sjlj_exceptions = xyes; then |
b040f2be | 735 | tmake_eh_file="i386/t-sjlj-eh" |
6befaff6 SL |
736 | elif test "${host_address}" = 32; then |
737 | # biarch -m32 with --disable-sjlj-exceptions | |
738 | tmake_eh_file="i386/t-dw2-eh" | |
739 | md_unwind_header=i386/w32-unwind.h | |
b040f2be | 740 | else |
bf1431e3 | 741 | tmake_eh_file="i386/t-seh-eh" |
b040f2be RO |
742 | fi |
743 | # Shared libgcc DLL install dir depends on cross/native build. | |
744 | if test x${build} = x${host} ; then | |
745 | tmake_dlldir_file="i386/t-dlldir" | |
746 | else | |
747 | tmake_dlldir_file="i386/t-dlldir-x" | |
748 | fi | |
9b789cc1 | 749 | 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" |
580d22a3 | 750 | extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o" |
f7f049fa CT |
751 | if test x$enable_vtable_verify = xyes; then |
752 | extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o" | |
753 | fi | |
fa958513 | 754 | ;; |
fa958513 | 755 | ia64*-*-elf*) |
5f73c6cc | 756 | extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o" |
73f01cca | 757 | 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" |
fa958513 DJ |
758 | ;; |
759 | ia64*-*-freebsd*) | |
5f73c6cc | 760 | extra_parts="$extra_parts crtfastmath.o" |
73f01cca | 761 | 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" |
fa958513 DJ |
762 | ;; |
763 | ia64*-*-linux*) | |
5f73c6cc | 764 | # Don't use crtbeginT.o from *-*-linux* default. |
fa958513 | 765 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" |
1ab3568b | 766 | 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" |
201cdb74 | 767 | if test x$with_system_libunwind != xyes ; then |
b040f2be | 768 | tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind" |
201cdb74 | 769 | fi |
58cd1d70 | 770 | md_unwind_header=ia64/linux-unwind.h |
fa958513 DJ |
771 | ;; |
772 | ia64*-*-hpux*) | |
1ab3568b | 773 | tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux" |
fa958513 | 774 | ;; |
a9a25daa | 775 | ia64-hp-*vms*) |
73f01cca | 776 | 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" |
5f73c6cc | 777 | extra_parts="$extra_parts crtinitS.o" |
58cd1d70 | 778 | md_unwind_header=ia64/vms-unwind.h |
a9a25daa | 779 | ;; |
fa958513 | 780 | iq2000*-*-elf*) |
d4b4b542 | 781 | tmake_file="iq2000/t-iq2000 t-fdpbit" |
5f73c6cc RO |
782 | # Don't use default. |
783 | extra_parts= | |
fa958513 | 784 | ;; |
c9cd1a07 | 785 | lm32-*-elf*) |
5f73c6cc | 786 | extra_parts="$extra_parts crti.o crtn.o" |
aca0b0b3 | 787 | tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp" |
aa4945c1 | 788 | ;; |
c9cd1a07 RO |
789 | lm32-*-rtems*) |
790 | tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp" | |
791 | extra_parts="$extra_parts crti.o crtn.o" | |
792 | ;; | |
aa4945c1 | 793 | lm32-*-uclinux*) |
5f73c6cc | 794 | extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o" |
f9989b51 | 795 | tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp" |
aa4945c1 | 796 | ;; |
5f73c6cc | 797 | m32r-*-elf*) |
985a47b2 NC |
798 | tmake_file="$tmake_file m32r/t-m32r t-fdpbit" |
799 | extra_parts="$extra_parts crtinit.o crtfini.o" | |
fa958513 DJ |
800 | ;; |
801 | m32rle-*-elf*) | |
569dc494 | 802 | tmake_file=t-fdpbit |
fa958513 DJ |
803 | ;; |
804 | m32r-*-linux*) | |
5f73c6cc | 805 | tmake_file="$tmake_file m32r/t-linux t-fdpbit" |
fa958513 DJ |
806 | ;; |
807 | m32rle-*-linux*) | |
5f73c6cc | 808 | tmake_file="$tmake_file m32r/t-linux t-fdpbit" |
fa958513 | 809 | ;; |
45b86625 RO |
810 | m68k-*-elf* | fido-*-elf) |
811 | tmake_file="$tmake_file m68k/t-floatlib" | |
fa958513 | 812 | ;; |
cd985f66 | 813 | m68k*-*-netbsdelf*) |
fa958513 DJ |
814 | ;; |
815 | m68k*-*-openbsd*) | |
816 | ;; | |
8b281334 RH |
817 | m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc |
818 | tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux" | |
58cd1d70 | 819 | md_unwind_header=m68k/linux-unwind.h |
fa958513 | 820 | ;; |
58cd1d70 | 821 | m68k-*-linux*) # Motorola m68k's running GNU/Linux |
fa958513 DJ |
822 | # with ELF format using glibc 2 |
823 | # aka the GNU/Linux C library 6. | |
8b281334 | 824 | tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux" |
9b92a9f3 | 825 | # If not configured with setjmp/longjmp exceptions, bump the |
b040f2be | 826 | # libgcc version number. |
9b92a9f3 | 827 | if test x$ac_cv_sjlj_exceptions != xyes; then |
b040f2be RO |
828 | tmake_file="$tmake_file m68k/t-slibgcc-elf-ver" |
829 | fi | |
58cd1d70 | 830 | md_unwind_header=m68k/linux-unwind.h |
fa958513 DJ |
831 | ;; |
832 | m68k-*-rtems*) | |
45b86625 | 833 | tmake_file="$tmake_file m68k/t-floatlib" |
5f73c6cc | 834 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 DJ |
835 | ;; |
836 | mcore-*-elf) | |
45b86625 | 837 | tmake_file="mcore/t-mcore t-fdpbit" |
5f73c6cc | 838 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 | 839 | ;; |
b040f2be | 840 | microblaze*-linux*) |
fbf0cf90 | 841 | tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc" |
b040f2be | 842 | ;; |
6f14eef2 EI |
843 | microblaze*-*-elf) |
844 | tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit" | |
845 | extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o" | |
80920132 | 846 | ;; |
3fa2ccb4 RC |
847 | microblaze*-*-rtems*) |
848 | tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit" | |
849 | extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o" | |
850 | ;; | |
fa958513 DJ |
851 | mips*-*-netbsd*) # NetBSD/mips, either endian. |
852 | ;; | |
fa958513 | 853 | mips*-*-linux*) # Linux MIPS, either endian. |
48b09a92 | 854 | extra_parts="$extra_parts crtfastmath.o" |
107eea2c | 855 | tmake_file="${tmake_file} t-crtfm" |
107eea2c | 856 | case ${host} in |
0f9bde1f MR |
857 | mips64r5900* | mipsr5900*) |
858 | # The MIPS16 support code uses floating point | |
859 | # instructions that are not supported on r5900. | |
860 | ;; | |
861 | *) | |
862 | tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc" | |
863 | ;; | |
107eea2c | 864 | esac |
58cd1d70 | 865 | md_unwind_header=mips/linux-unwind.h |
fa958513 | 866 | ;; |
569dc494 | 867 | mips*-sde-elf*) |
eb028768 | 868 | tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16" |
569dc494 RO |
869 | case "${with_newlib}" in |
870 | yes) | |
871 | # newlib / libgloss. | |
872 | ;; | |
873 | *) | |
874 | # MIPS toolkit libraries. | |
5f73c6cc | 875 | tmake_file="$tmake_file mips/t-sdemtk" |
569dc494 RO |
876 | ;; |
877 | esac | |
5f73c6cc | 878 | extra_parts="$extra_parts crti.o crtn.o" |
569dc494 | 879 | ;; |
c6412d86 RO |
880 | mipsisa32-*-elf* | mipsisa32el-*-elf* | \ |
881 | mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \ | |
82f84ecb | 882 | mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \ |
c6412d86 | 883 | mipsisa64-*-elf* | mipsisa64el-*-elf* | \ |
82f84ecb MF |
884 | mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \ |
885 | mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*) | |
f9989b51 | 886 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" |
5f73c6cc | 887 | extra_parts="$extra_parts crti.o crtn.o" |
0a4a51c7 | 888 | ;; |
fa958513 | 889 | mipsisa64sr71k-*-elf*) |
eb028768 | 890 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit" |
5f73c6cc | 891 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 DJ |
892 | ;; |
893 | mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*) | |
f9989b51 | 894 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" |
5f73c6cc | 895 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 DJ |
896 | ;; |
897 | mips-*-elf* | mipsel-*-elf*) | |
f9989b51 | 898 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" |
5f73c6cc | 899 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 | 900 | ;; |
107eea2c JU |
901 | mipsr5900-*-elf* | mipsr5900el-*-elf*) |
902 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff" | |
903 | extra_parts="$extra_parts crti.o crtn.o" | |
904 | ;; | |
fa958513 | 905 | mips64-*-elf* | mips64el-*-elf*) |
f9989b51 | 906 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" |
5f73c6cc | 907 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 | 908 | ;; |
107eea2c JU |
909 | mips64r5900-*-elf* | mips64r5900el-*-elf*) |
910 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff" | |
911 | extra_parts="$extra_parts crti.o crtn.o" | |
912 | ;; | |
fa958513 | 913 | mips64vr-*-elf* | mips64vrel-*-elf*) |
f9989b51 | 914 | tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff" |
5f73c6cc | 915 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 DJ |
916 | ;; |
917 | mips64orion-*-elf* | mips64orionel-*-elf*) | |
f9989b51 | 918 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" |
5f73c6cc | 919 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 DJ |
920 | ;; |
921 | mips*-*-rtems*) | |
f9989b51 | 922 | tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" |
5f73c6cc | 923 | extra_parts="$extra_parts crti.o crtn.o" |
fa958513 DJ |
924 | ;; |
925 | mips-wrs-vxworks) | |
926 | ;; | |
fa958513 | 927 | mipstx39-*-elf* | mipstx39el-*-elf*) |
5f73c6cc | 928 | tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16" |
fa958513 DJ |
929 | ;; |
930 | mmix-knuth-mmixware) | |
e7c914db HPN |
931 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
932 | tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}" | |
fa958513 DJ |
933 | ;; |
934 | mn10300-*-*) | |
569dc494 | 935 | tmake_file=t-fdpbit |
fa958513 | 936 | ;; |
ad251dfd | 937 | moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*) |
c9cd1a07 | 938 | tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp" |
ad251dfd | 939 | extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o" |
cceb575c | 940 | ;; |
f6a83b4a DD |
941 | msp430*-*-elf) |
942 | tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430" | |
04a9ae28 | 943 | extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a" |
f6a83b4a | 944 | ;; |
9304f876 CJW |
945 | nds32*-elf*) |
946 | # Basic makefile fragment and extra_parts for crt stuff. | |
947 | # We also append c-isr library implementation. | |
948 | tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr" | |
949 | extra_parts="crtbegin1.o crtend1.o libnds32_isr.a" | |
950 | # Append library definition makefile fragment according to --with-nds32-lib=X setting. | |
951 | case "${with_nds32_lib}" in | |
952 | "" | newlib) | |
953 | # Append library definition makefile fragment t-nds32-newlib. | |
954 | # Append 'soft-fp' software floating point make rule fragment provided by gcc. | |
955 | tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp" | |
956 | ;; | |
957 | mculib) | |
958 | # Append library definition makefile fragment t-nds32-mculib. | |
959 | # The software floating point library is included in mculib. | |
960 | tmake_file="${tmake_file} nds32/t-nds32-mculib" | |
961 | ;; | |
962 | *) | |
963 | echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2 | |
964 | exit 1 | |
965 | ;; | |
966 | esac | |
967 | ;; | |
e430824f CLT |
968 | nios2-*-linux*) |
969 | tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc" | |
e430824f CLT |
970 | md_unwind_header=nios2/linux-unwind.h |
971 | ;; | |
972 | nios2-*-*) | |
973 | tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp" | |
974 | extra_parts="$extra_parts crti.o crtn.o" | |
975 | ;; | |
fa958513 | 976 | pdp11-*-*) |
f9989b51 | 977 | tmake_file="pdp11/t-pdp11 t-fdpbit" |
fa958513 | 978 | ;; |
fa958513 | 979 | powerpc-*-darwin*) |
58cd1d70 RO |
980 | case ${host} in |
981 | *-*-darwin9* | *-*-darwin[12][0-9]*) | |
982 | # libSystem contains unwind information for signal frames since | |
983 | # Darwin 9. | |
984 | ;; | |
985 | *) | |
986 | md_unwind_header=rs6000/darwin-unwind.h | |
987 | ;; | |
988 | esac | |
aca0b0b3 | 989 | tmake_file="$tmake_file rs6000/t-ibm-ldouble" |
e141542e | 990 | extra_parts="$extra_parts crt2.o" |
fa958513 DJ |
991 | ;; |
992 | powerpc64-*-darwin*) | |
f9989b51 | 993 | tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble" |
e141542e | 994 | extra_parts="$extra_parts crt2.o" |
fa958513 | 995 | ;; |
d82ad50d AT |
996 | powerpc*-*-freebsd*) |
997 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp" | |
5f73c6cc | 998 | extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
d82ad50d AT |
999 | case ${host} in |
1000 | powerpc64*) | |
1001 | tmake_file="${tmake_file} rs6000/t-freebsd64" | |
1002 | md_unwind_header=rs6000/freebsd-unwind.h | |
1003 | ;; | |
1004 | esac | |
fa958513 DJ |
1005 | ;; |
1006 | powerpc-*-netbsd*) | |
d4b4b542 | 1007 | tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff" |
fa958513 | 1008 | ;; |
fa958513 | 1009 | powerpc-*-eabispe*) |
7da38058 | 1010 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1011 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1012 | ;; |
1013 | powerpc-*-eabisimaltivec*) | |
f9c55897 | 1014 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1015 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1016 | ;; |
1017 | powerpc-*-eabisim*) | |
f9c55897 | 1018 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1019 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1020 | ;; |
1021 | powerpc-*-elf*) | |
49dcafd4 | 1022 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1023 | extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1024 | ;; |
1025 | powerpc-*-eabialtivec*) | |
f9c55897 | 1026 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1027 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
569dc494 RO |
1028 | ;; |
1029 | powerpc-xilinx-eabi*) | |
f9c55897 | 1030 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1031 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1032 | ;; |
1033 | powerpc-*-eabi*) | |
f9c55897 | 1034 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1035 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1036 | ;; |
1037 | powerpc-*-rtems*) | |
6f288860 | 1038 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1039 | extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 | 1040 | ;; |
b9a7eb5d | 1041 | powerpc*-*-linux*) |
693b297b | 1042 | 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" |
0f0fd745 | 1043 | tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000" |
d80c2bea JM |
1044 | case $ppc_fp_type in |
1045 | 64) | |
1046 | ;; | |
1047 | hard) | |
1048 | tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp" | |
1049 | ;; | |
1050 | soft) | |
e610393c | 1051 | tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp" |
d80c2bea | 1052 | ;; |
bc1b3a88 | 1053 | e500v1) |
e610393c | 1054 | tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp" |
bc1b3a88 JM |
1055 | ;; |
1056 | e500v2) | |
e610393c | 1057 | tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp" |
d80c2bea JM |
1058 | ;; |
1059 | *) | |
1060 | echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2 | |
1061 | exit 1 | |
1062 | ;; | |
1063 | esac | |
a71c0334 MM |
1064 | |
1065 | if test $libgcc_cv_powerpc_float128 = yes; then | |
1066 | tmake_file="${tmake_file} rs6000/t-float128" | |
1067 | fi | |
1068 | ||
1069 | if test $libgcc_cv_powerpc_float128_hw = yes; then | |
1070 | tmake_file="${tmake_file} rs6000/t-float128-hw" | |
1071 | fi | |
1072 | ||
5f73c6cc | 1073 | extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o" |
58cd1d70 | 1074 | md_unwind_header=rs6000/linux-unwind.h |
fa958513 | 1075 | ;; |
3a8fe7c6 | 1076 | powerpc-wrs-vxworks|powerpc-wrs-vxworksae|powerpc-wrs-vxworksmils) |
49dcafd4 | 1077 | tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit" |
fa958513 | 1078 | ;; |
fa958513 | 1079 | powerpc-*-lynxos*) |
d4b4b542 | 1080 | tmake_file="$tmake_file rs6000/t-lynx t-fdpbit" |
fa958513 | 1081 | ;; |
fa958513 | 1082 | powerpcle-*-elf*) |
f9c55897 | 1083 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1084 | extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1085 | ;; |
1086 | powerpcle-*-eabisim*) | |
f9c55897 | 1087 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1088 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 DJ |
1089 | ;; |
1090 | powerpcle-*-eabi*) | |
f9c55897 | 1091 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1092 | extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o" |
fa958513 | 1093 | ;; |
fa958513 | 1094 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
201cdb74 | 1095 | md_unwind_header=rs6000/aix-unwind.h |
138f5acd | 1096 | tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble" |
fa958513 DJ |
1097 | ;; |
1098 | rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*) | |
201cdb74 | 1099 | md_unwind_header=rs6000/aix-unwind.h |
138f5acd | 1100 | tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble" |
fa958513 DJ |
1101 | ;; |
1102 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
201cdb74 | 1103 | md_unwind_header=rs6000/aix-unwind.h |
99113dff | 1104 | tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa" |
04218b35 | 1105 | extra_parts="crtcxa.o crtcxa_s.o crtdbase.o" |
fa958513 | 1106 | ;; |
85b8555e DD |
1107 | rl78-*-elf) |
1108 | tmake_file="$tm_file t-fdpbit rl78/t-rl78" | |
1109 | ;; | |
65a324b4 | 1110 | rx-*-elf) |
569dc494 | 1111 | tmake_file="rx/t-rx t-fdpbit" |
852b75ed | 1112 | tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h" |
65a324b4 | 1113 | ;; |
fa958513 | 1114 | s390-*-linux*) |
4cb4721f | 1115 | tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390" |
58cd1d70 | 1116 | md_unwind_header=s390/linux-unwind.h |
fa958513 DJ |
1117 | ;; |
1118 | s390x-*-linux*) | |
4cb4721f | 1119 | tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390" |
59976ef8 AK |
1120 | if test "${host_address}" = 32; then |
1121 | tmake_file="${tmake_file} s390/32/t-floattodi" | |
1122 | fi | |
58cd1d70 | 1123 | md_unwind_header=s390/linux-unwind.h |
fa958513 DJ |
1124 | ;; |
1125 | s390x-ibm-tpf*) | |
f9989b51 | 1126 | tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip" |
5f73c6cc | 1127 | extra_parts="crtbeginS.o crtendS.o" |
10c4cabc | 1128 | md_unwind_header=s390/tpf-unwind.h |
fa958513 | 1129 | ;; |
5f73c6cc RO |
1130 | sh-*-elf* | sh[12346l]*-*-elf*) |
1131 | tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit" | |
1132 | extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \ | |
1133 | libic_invalidate_array_4-100.a \ | |
1134 | libic_invalidate_array_4-200.a \ | |
1135 | libic_invalidate_array_4a.a \ | |
1136 | libgcc-Os-4-200.a libgcc-4-300.a" | |
26900826 | 1137 | case ${host} in |
5f73c6cc RO |
1138 | sh*-superh-elf) |
1139 | tmake_file="$tmake_file sh/t-superh" | |
1140 | extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o" | |
1141 | ;; | |
1142 | esac | |
1143 | ;; | |
1144 | sh-*-linux* | sh[2346lbe]*-*-linux*) | |
45b86625 | 1145 | tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit" |
5f73c6cc RO |
1146 | md_unwind_header=sh/linux-unwind.h |
1147 | ;; | |
bc6d9014 | 1148 | sh-*-netbsdelf* | shl*-*-netbsdelf*) |
45b86625 | 1149 | tmake_file="$tmake_file sh/t-sh sh/t-netbsd" |
bc6d9014 | 1150 | |
5f73c6cc RO |
1151 | # NetBSD's C library includes a fast software FP library that |
1152 | # has support for setting/setting the rounding mode, exception | |
1153 | # mask, etc. Therefore, we don't want to include software FP | |
1154 | # in libgcc. | |
fa958513 | 1155 | ;; |
fa958513 | 1156 | sh-*-rtems*) |
45b86625 | 1157 | tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit" |
5f73c6cc | 1158 | extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \ |
76c78361 RC |
1159 | libic_invalidate_array_4-100.a \ |
1160 | libic_invalidate_array_4-200.a \ | |
1161 | libic_invalidate_array_4a.a \ | |
1162 | libgcc-Os-4-200.a libgcc-4-300.a" | |
fa958513 DJ |
1163 | ;; |
1164 | sh-wrs-vxworks) | |
45b86625 | 1165 | tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit" |
fa958513 | 1166 | ;; |
fa958513 DJ |
1167 | sparc-*-netbsdelf*) |
1168 | ;; | |
1169 | sparc64-*-openbsd*) | |
1170 | ;; | |
1171 | sparc-*-elf*) | |
ca24c5ad RO |
1172 | case ${host} in |
1173 | *-leon[3-9]*) | |
1174 | ;; | |
1175 | *) | |
1176 | tmake_file="sparc/t-softmul" | |
1177 | ;; | |
1178 | esac | |
5f73c6cc RO |
1179 | tmake_file="${tmake_file} t-fdpbit t-crtfm" |
1180 | extra_parts="$extra_parts crti.o crtn.o crtfastmath.o" | |
fa958513 DJ |
1181 | ;; |
1182 | sparc-*-linux*) # SPARC's running GNU/Linux, libc6 | |
d2a7d041 DM |
1183 | tmake_file="${tmake_file} t-crtfm" |
1184 | if test "${host_address}" = 64; then | |
1185 | tmake_file="$tmake_file sparc/t-linux64" | |
1186 | fi | |
569dc494 RO |
1187 | case ${host} in |
1188 | *-leon*) | |
b040f2be RO |
1189 | tmake_file="${tmake_file} t-fdpbit" |
1190 | ;; | |
1191 | *) | |
1192 | tmake_file="${tmake_file} sparc/t-linux" | |
569dc494 RO |
1193 | ;; |
1194 | esac | |
45b86625 RO |
1195 | case ${host} in |
1196 | *-leon[3-9]*) | |
1197 | ;; | |
1198 | *) | |
d2a7d041 DM |
1199 | if test "${host_address}" = 32; then |
1200 | tmake_file="$tmake_file sparc/t-softmul" | |
1201 | fi | |
45b86625 RO |
1202 | ;; |
1203 | esac | |
fa958513 | 1204 | extra_parts="$extra_parts crtfastmath.o" |
10c4cabc | 1205 | md_unwind_header=sparc/linux-unwind.h |
fa958513 | 1206 | ;; |
569dc494 | 1207 | sparc-*-rtems*) |
c9cd1a07 | 1208 | tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit" |
5f73c6cc | 1209 | extra_parts="$extra_parts crti.o crtn.o crtfastmath.o" |
fa958513 | 1210 | ;; |
ca24c5ad RO |
1211 | sparc*-*-solaris2*) |
1212 | tmake_file="$tmake_file t-crtfm" | |
1213 | extra_parts="$extra_parts crtfastmath.o" | |
58cd1d70 | 1214 | md_unwind_header=sparc/sol2-unwind.h |
fa958513 | 1215 | ;; |
fa958513 | 1216 | sparc64-*-elf*) |
5f73c6cc RO |
1217 | tmake_file="${tmake_file} t-crtfm" |
1218 | extra_parts="$extra_parts crti.o crtn.o crtfastmath.o" | |
fa958513 | 1219 | ;; |
569dc494 | 1220 | sparc64-*-rtems*) |
43a8f1a1 | 1221 | tmake_file="$tmake_file t-crtfm" |
5f73c6cc | 1222 | extra_parts="$extra_parts crti.o crtn.o crtfastmath.o" |
569dc494 | 1223 | ;; |
1910440e RS |
1224 | sparc-wrs-vxworks) |
1225 | ;; | |
fa958513 | 1226 | sparc64-*-freebsd*|ultrasparc-*-freebsd*) |
35d8090d | 1227 | tmake_file="$tmake_file t-crtfm" |
5f73c6cc | 1228 | extra_parts="$extra_parts crtfastmath.o" |
fa958513 DJ |
1229 | ;; |
1230 | sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux | |
1231 | extra_parts="$extra_parts crtfastmath.o" | |
d2a7d041 DM |
1232 | tmake_file="${tmake_file} t-crtfm sparc/t-linux" |
1233 | if test "${host_address}" = 64; then | |
1234 | tmake_file="${tmake_file} sparc/t-linux64" | |
1235 | fi | |
1236 | if test "${host_address}" = 32; then | |
1237 | tmake_file="${tmake_file} sparc/t-softmul" | |
1238 | fi | |
58cd1d70 | 1239 | md_unwind_header=sparc/linux-unwind.h |
fa958513 DJ |
1240 | ;; |
1241 | sparc64-*-netbsd*) | |
1242 | ;; | |
1243 | spu-*-elf*) | |
f9989b51 | 1244 | tmake_file="$tmake_file spu/t-elf t-libgcc-pic t-fdpbit" |
5f73c6cc RO |
1245 | extra_parts="$extra_parts \ |
1246 | libgcc_cachemgr.a libgcc_cachemgr_nonatomic.a \ | |
1247 | libgcc_cache8k.a libgcc_cache16k.a libgcc_cache32k.a \ | |
1248 | libgcc_cache64k.a libgcc_cache128k.a" | |
fa958513 | 1249 | ;; |
b040f2be | 1250 | tic6x-*-uclinux) |
4d5ae4ea BS |
1251 | tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \ |
1252 | c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \ | |
1253 | t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix" | |
852b75ed | 1254 | tm_file="$tm_file c6x/c6x-abi.h" |
4d5ae4ea | 1255 | extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o" |
b040f2be RO |
1256 | unwind_header=config/c6x/unwind-c6x.h |
1257 | ;; | |
5f73c6cc RO |
1258 | tic6x-*-elf) |
1259 | tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf" | |
852b75ed | 1260 | tm_file="$tm_file c6x/c6x-abi.h" |
5f73c6cc | 1261 | extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o" |
1e874273 | 1262 | unwind_header=config/c6x/unwind-c6x.h |
bcead286 | 1263 | ;; |
341c653c | 1264 | tilegx*-*-linux*) |
b29d9a29 WL |
1265 | if test "${host_address}" = 64; then |
1266 | tmake_file="${tmake_file} tilegx/t-softfp" | |
1267 | fi | |
1268 | tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx" | |
dd552284 WL |
1269 | md_unwind_header=tilepro/linux-unwind.h |
1270 | ;; | |
341c653c | 1271 | tilepro*-*-linux*) |
7a384912 | 1272 | tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc" |
dd552284 WL |
1273 | md_unwind_header=tilepro/linux-unwind.h |
1274 | ;; | |
4be46d19 | 1275 | v850*-*-*) |
d02bbcf3 | 1276 | tmake_file="${tmake_file} v850/t-v850 t-fdpbit" |
fa958513 | 1277 | ;; |
fea96e25 | 1278 | vax-*-linux*) |
45b86625 | 1279 | tmake_file="$tmake_file vax/t-linux" |
fea96e25 | 1280 | ;; |
fa958513 DJ |
1281 | vax-*-netbsdelf*) |
1282 | ;; | |
fa958513 DJ |
1283 | vax-*-openbsd*) |
1284 | ;; | |
0969ec7d EB |
1285 | visium-*-elf*) |
1286 | extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o" | |
1287 | tmake_file="visium/t-visium t-fdpbit" | |
1288 | ;; | |
fa958513 | 1289 | xstormy16-*-elf) |
200feb07 | 1290 | tmake_file="stormy16/t-stormy16 t-fdpbit" |
fa958513 | 1291 | ;; |
c660f132 | 1292 | xtensa*-*-elf*) |
5f73c6cc RO |
1293 | tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf" |
1294 | extra_parts="$extra_parts crti.o crtn.o" | |
fa958513 | 1295 | ;; |
c660f132 | 1296 | xtensa*-*-linux*) |
800d8bd5 | 1297 | tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc" |
58cd1d70 | 1298 | md_unwind_header=xtensa/linux-unwind.h |
fa958513 | 1299 | ;; |
4a0a9457 MF |
1300 | xtensa*-*-uclinux*) |
1301 | tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc" | |
1302 | md_unwind_header=xtensa/linux-unwind.h | |
1303 | extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o" | |
1304 | ;; | |
fa958513 | 1305 | am33_2.0-*-linux*) |
5f73c6cc | 1306 | # Don't need crtbeginT.o from *-*-linux* default. |
fa958513 | 1307 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
b040f2be | 1308 | tmake_file="$tmake_file t-fdpbit" |
fa958513 | 1309 | ;; |
541ed00e | 1310 | m32c-*-elf*|m32c-*-rtems*) |
45b86625 | 1311 | tmake_file="$tmake_file m32c/t-m32c" |
fa958513 | 1312 | ;; |
738f2522 BS |
1313 | nvptx-*) |
1314 | tmake_file="$tmake_file nvptx/t-nvptx" | |
1315 | extra_parts="crt0.o" | |
1316 | ;; | |
fa958513 DJ |
1317 | *) |
1318 | echo "*** Configuration ${host} not supported" 1>&2 | |
1319 | exit 1 | |
1320 | ;; | |
1321 | esac | |
6f461e76 | 1322 | |
aca06c90 RO |
1323 | case ${host} in |
1324 | i[34567]86-*-* | x86_64-*-*) | |
9d8f95de SN |
1325 | case ${host} in |
1326 | *-musl*) | |
1327 | tmake_file="${tmake_file} i386/t-cpuinfo-static" | |
1328 | ;; | |
1329 | *) | |
1330 | tmake_file="${tmake_file} i386/t-cpuinfo" | |
1331 | ;; | |
1332 | esac | |
aca06c90 RO |
1333 | ;; |
1334 | esac | |
1335 | ||
6f461e76 | 1336 | case ${host} in |
2a761e46 | 1337 | i[34567]86-*-linux* | x86_64-*-linux* | \ |
b040f2be | 1338 | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \ |
2a761e46 | 1339 | i[34567]86-*-gnu*) |
abd0cdc9 | 1340 | tmake_file="${tmake_file} t-tls i386/t-linux t-slibgcc-libgcc" |
b6110d6d | 1341 | if test "$libgcc_cv_cfi" = "yes"; then |
ca007d11 | 1342 | tmake_file="${tmake_file} t-stack i386/t-stack-i386" |
b6110d6d | 1343 | fi |
6f461e76 L |
1344 | ;; |
1345 | esac | |
ff473280 L |
1346 | |
1347 | case ${host} in | |
21184026 JM |
1348 | i[34567]86-*-elfiamcu | i[34567]86-*-rtems*) |
1349 | # These use soft-fp for SFmode and DFmode, not just TFmode. | |
1350 | ;; | |
1351 | i[34567]86-*-* | x86_64-*-*) | |
aca0b0b3 | 1352 | tmake_file="${tmake_file} t-softfp-tf" |
7d6aa9a6 UB |
1353 | if test "${host_address}" = 32; then |
1354 | tmake_file="${tmake_file} i386/${host_address}/t-softfp" | |
1355 | fi | |
492fbea1 | 1356 | tmake_file="${tmake_file} i386/t-softfp t-softfp" |
c174f11c L |
1357 | ;; |
1358 | esac | |
1359 | ||
1360 | case ${host} in | |
1361 | i[34567]86-*-linux* | x86_64-*-linux*) | |
1362 | # Provide backward binary compatibility for 64bit Linux/x86. | |
1363 | if test "${host_address}" = 64; then | |
1364 | tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat" | |
1365 | fi | |
852b75ed | 1366 | tm_file="${tm_file} i386/value-unwind.h" |
ff473280 L |
1367 | ;; |
1368 | esac |