]>
Commit | Line | Data |
---|---|---|
fa958513 | 1 | # libgcc host-specific configuration file. |
8d8da227 | 2 | # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
e6e50811 | 3 | # 2008, 2009, 2010 Free Software Foundation, Inc. |
fa958513 DJ |
4 | |
5 | #This file is part of GCC. | |
6 | ||
7 | #GCC is free software; you can redistribute it and/or modify it under | |
8 | #the terms of the GNU General Public License as published by the Free | |
748086b7 | 9 | #Software Foundation; either version 3, or (at your option) any later |
fa958513 DJ |
10 | #version. |
11 | ||
12 | #GCC is distributed in the hope that it will be useful, but WITHOUT | |
13 | #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 | #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 | #for more details. | |
16 | ||
17 | #You should have received a copy of the GNU General Public License | |
748086b7 JJ |
18 | #along with GCC; see the file COPYING3. If not see |
19 | #<http://www.gnu.org/licenses/>. | |
fa958513 DJ |
20 | |
21 | # This is the libgcc host-specific configuration file | |
22 | # where a configuration type is mapped to different system-specific | |
23 | # definitions and files. This is invoked by the autoconf-generated | |
24 | # configure script. Putting it in a separate shell file lets us skip | |
25 | # running autoconf when modifying host-specific information. | |
26 | ||
27 | # This file bears an obvious resemblance to gcc/config.gcc. The cases | |
28 | # should be kept similar, to ease moving library-specific settings | |
29 | # from config.gcc to this file. That is also why tmake_file is | |
30 | # left as tmake_file, rather than hmake_file, even though this library | |
31 | # switches on ${host}. | |
32 | ||
33 | # This file switches on the shell variable ${host}, and also uses the | |
34 | # following shell variables: | |
35 | # | |
36 | # with_* Various variables as set by configure. | |
37 | ||
38 | # This file sets the following shell variables for use by the | |
39 | # autoconf-generated configure script: | |
40 | # | |
41 | # asm_hidden_op The assembler pseudo-op to use for hide | |
42 | # lists for object files implemented in | |
43 | # assembly (with -fvisibility=hidden for C). | |
44 | # The default is ".hidden". | |
45 | # cpu_type The name of the cpu, if different from the first | |
46 | # chunk of the canonical host name. | |
47 | # extra_parts List of extra object files that should be compiled | |
48 | # for this target machine. This may be overridden | |
49 | # by setting EXTRA_PARTS in a tmake_file fragment. | |
50 | # If either is set, EXTRA_PARTS and | |
51 | # EXTRA_MULTILIB_PARTS inherited from the GCC | |
52 | # subdirectory will be ignored. | |
53 | # tmake_file A list of machine-description-specific | |
54 | # makefile-fragments, if different from | |
55 | # "$cpu_type/t-$cpu_type". | |
56 | ||
57 | asm_hidden_op=.hidden | |
58 | extra_parts= | |
59 | tmake_file= | |
60 | ||
61 | # Set default cpu_type so it can be updated in each machine entry. | |
62 | cpu_type=`echo ${host} | sed 's/-.*$//'` | |
63 | case ${host} in | |
64 | m32c*-*-*) | |
65 | cpu_type=m32c | |
66 | ;; | |
67 | alpha*-*-*) | |
68 | cpu_type=alpha | |
69 | ;; | |
70 | am33_2.0-*-linux*) | |
71 | cpu_type=mn10300 | |
72 | ;; | |
fa958513 DJ |
73 | arm*-*-*) |
74 | cpu_type=arm | |
75 | ;; | |
47583040 AH |
76 | avr-*-*) |
77 | cpu_type=avr | |
78 | ;; | |
fa958513 DJ |
79 | bfin*-*) |
80 | cpu_type=bfin | |
81 | ;; | |
7d33c31d KH |
82 | fido-*-*) |
83 | cpu_type=m68k | |
84 | ;; | |
fa958513 DJ |
85 | frv*) cpu_type=frv |
86 | ;; | |
cceb575c AG |
87 | moxie*) cpu_type=moxie |
88 | ;; | |
fa958513 DJ |
89 | i[34567]86-*-*) |
90 | cpu_type=i386 | |
91 | ;; | |
92 | x86_64-*-*) | |
93 | cpu_type=i386 | |
94 | ;; | |
95 | ia64-*-*) | |
96 | ;; | |
cd985f66 | 97 | hppa*-*-*) |
fa958513 DJ |
98 | cpu_type=pa |
99 | ;; | |
aa4945c1 JB |
100 | lm32*-*-*) |
101 | cpu_type=lm32 | |
102 | ;; | |
fa958513 DJ |
103 | m32r*-*-*) |
104 | cpu_type=m32r | |
105 | ;; | |
fa958513 DJ |
106 | m68k-*-*) |
107 | ;; | |
7acf4da6 DD |
108 | mep*-*-*) |
109 | ;; | |
fa958513 DJ |
110 | mips*-*-*) |
111 | cpu_type=mips | |
112 | ;; | |
113 | powerpc*-*-*) | |
114 | cpu_type=rs6000 | |
115 | ;; | |
116 | rs6000*-*-*) | |
117 | ;; | |
118 | score*-*-*) | |
119 | cpu_type=score | |
120 | ;; | |
121 | sparc64*-*-*) | |
122 | cpu_type=sparc | |
123 | ;; | |
124 | sparc*-*-*) | |
125 | cpu_type=sparc | |
126 | ;; | |
127 | spu*-*-*) | |
128 | cpu_type=spu | |
129 | ;; | |
130 | s390*-*-*) | |
131 | cpu_type=s390 | |
132 | ;; | |
133 | # Note the 'l'; we need to be able to match e.g. "shle" or "shl". | |
134 | sh[123456789lbe]*-*-*) | |
135 | cpu_type=sh | |
136 | ;; | |
fa958513 DJ |
137 | esac |
138 | ||
139 | # Common parts for widely ported systems. | |
140 | case ${host} in | |
141 | *-*-darwin*) | |
142 | asm_hidden_op=.private_extern | |
143 | tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin" | |
144 | ;; | |
145 | *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) | |
146 | # This is the place-holder for the generic a.out configuration | |
147 | # of FreeBSD. No actual configuration resides here since | |
148 | # there was only ever a bare-bones ix86 configuration for | |
149 | # a.out and it exists solely in the machine-specific section. | |
150 | # This place-holder must exist to avoid dropping into | |
151 | # the generic ELF configuration of FreeBSD (i.e. it must be | |
152 | # ordered before that section). | |
153 | ;; | |
154 | *-*-freebsd*) | |
155 | # This is the generic ELF configuration of FreeBSD. Later | |
156 | # machine-specific sections may refine and add to this | |
157 | # configuration. | |
158 | ;; | |
c0451df7 | 159 | *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu*) |
fa958513 DJ |
160 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
161 | ;; | |
fa958513 DJ |
162 | *-*-netbsd*) |
163 | ;; | |
164 | *-*-openbsd*) | |
165 | ;; | |
166 | *-*-rtems*) | |
167 | ;; | |
168 | *-*-vxworks*) | |
169 | ;; | |
170 | *-*-elf) | |
171 | ;; | |
172 | esac | |
173 | ||
174 | case ${host} in | |
175 | # Support site-specific machine types. | |
176 | *local*) | |
177 | rest=`echo ${host} | sed -e "s/$cpu_type-//"` | |
178 | if test -f $srcdir/config/${cpu_type}/t-$rest | |
179 | then tmake_file=${cpu_type}/t-$rest | |
180 | fi | |
181 | ;; | |
c0451df7 | 182 | alpha*-*-linux* | alpha*-*-gnu*) |
fa958513 | 183 | tmake_file="${tmake_file} alpha/t-crtfm" |
5ea41e3a | 184 | extra_parts="$extra_parts crtfastmath.o" |
fa958513 | 185 | ;; |
fa958513 DJ |
186 | alpha*-*-freebsd*) |
187 | ;; | |
188 | alpha*-*-netbsd*) | |
189 | ;; | |
190 | alpha*-*-openbsd*) | |
191 | ;; | |
8c200350 | 192 | alpha*-dec-osf5.1*) |
fa958513 DJ |
193 | ;; |
194 | alpha64-dec-*vms*) | |
a9a25daa | 195 | tmake_file="vms/t-vms vms/t-vms64 alpha/t-vms" |
fa958513 DJ |
196 | ;; |
197 | alpha*-dec-*vms*) | |
a9a25daa | 198 | tmake_file="vms/t-vms alpha/t-vms" |
fa958513 DJ |
199 | ;; |
200 | arc-*-elf*) | |
201 | ;; | |
fa958513 DJ |
202 | arm-wrs-vxworks) |
203 | ;; | |
cd985f66 | 204 | arm*-*-freebsd*) |
fa958513 DJ |
205 | ;; |
206 | arm*-*-netbsdelf*) | |
207 | ;; | |
208 | arm*-*-netbsd*) | |
209 | ;; | |
210 | arm*-*-linux*) # ARM GNU/Linux with ELF | |
211 | ;; | |
212 | arm*-*-uclinux*) # ARM ucLinux | |
213 | ;; | |
214 | arm*-*-ecos-elf) | |
215 | ;; | |
216 | arm*-*-eabi* | arm*-*-symbianelf* ) | |
217 | ;; | |
218 | arm*-*-rtems*) | |
219 | ;; | |
cd985f66 | 220 | arm*-*-elf) |
fa958513 DJ |
221 | ;; |
222 | arm*-wince-pe*) | |
223 | ;; | |
224 | arm-*-pe*) | |
225 | ;; | |
fa958513 DJ |
226 | avr-*-rtems*) |
227 | ;; | |
228 | avr-*-*) | |
47583040 AH |
229 | # Make HImode functions for AVR |
230 | tmake_file=${cpu_type}/t-avr | |
fa958513 DJ |
231 | ;; |
232 | bfin*-elf*) | |
233 | ;; | |
234 | bfin*-uclinux*) | |
235 | ;; | |
344189f9 BS |
236 | bfin*-linux-uclibc*) |
237 | # No need to build crtbeginT.o on uClibc systems. Should probably | |
238 | # be moved to the OS specific section above. | |
239 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
240 | ;; | |
fa958513 DJ |
241 | bfin*-*) |
242 | ;; | |
4081d704 | 243 | crisv32-*-elf | crisv32-*-none | cris-*-elf | cris-*-none) |
8fce4e31 | 244 | extra_parts="crtbegin.o crtend.o" |
fa958513 | 245 | ;; |
4081d704 | 246 | cris-*-linux* | crisv32-*-linux*) |
fa958513 DJ |
247 | ;; |
248 | crx-*-elf) | |
249 | ;; | |
7d33c31d KH |
250 | fido-*-elf) |
251 | ;; | |
fa958513 DJ |
252 | fr30-*-elf) |
253 | ;; | |
254 | frv-*-elf) | |
255 | ;; | |
256 | frv-*-*linux*) | |
257 | ;; | |
fa958513 DJ |
258 | h8300-*-rtems*) |
259 | ;; | |
260 | h8300-*-elf*) | |
261 | ;; | |
cd985f66 | 262 | hppa*64*-*-linux*) |
fa958513 | 263 | ;; |
cd985f66 | 264 | hppa*-*-linux*) |
fa958513 DJ |
265 | ;; |
266 | hppa[12]*-*-hpux10*) | |
267 | ;; | |
268 | hppa*64*-*-hpux11*) | |
269 | ;; | |
270 | hppa[12]*-*-hpux11*) | |
271 | ;; | |
272 | i[34567]86-*-darwin*) | |
273 | ;; | |
274 | x86_64-*-darwin*) | |
275 | tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin" | |
276 | ;; | |
277 | i[34567]86-*-elf*) | |
278 | ;; | |
3ae3dbd6 HK |
279 | x86_64-*-elf*) |
280 | ;; | |
fa958513 | 281 | i[34567]86-*-freebsd*) |
d78552bd | 282 | tmake_file="${tmake_file} i386/t-freebsd" |
fa958513 DJ |
283 | ;; |
284 | x86_64-*-freebsd*) | |
d78552bd | 285 | tmake_file="${tmake_file} i386/t-freebsd" |
fa958513 DJ |
286 | ;; |
287 | i[34567]86-*-netbsdelf*) | |
288 | ;; | |
289 | i[34567]86-*-netbsd*) | |
290 | ;; | |
291 | x86_64-*-netbsd*) | |
292 | ;; | |
293 | i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) | |
294 | ;; | |
295 | i[34567]86-*-openbsd*) | |
296 | ;; | |
c0451df7 | 297 | i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu*) |
577565f9 UB |
298 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
299 | tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" | |
fa958513 DJ |
300 | ;; |
301 | x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu) | |
577565f9 UB |
302 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
303 | tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" | |
fa958513 | 304 | ;; |
fa958513 DJ |
305 | i[34567]86-pc-msdosdjgpp*) |
306 | ;; | |
307 | i[34567]86-*-lynxos*) | |
308 | ;; | |
309 | i[3456x]86-*-netware*) | |
310 | case /${with_ld} in | |
311 | */nwld) | |
312 | tmake_file="${tmake_file} i386/t-nwld" | |
313 | ;; | |
314 | esac | |
315 | ;; | |
316 | i[34567]86-*-nto-qnx*) | |
317 | ;; | |
318 | i[34567]86-*-rtems*) | |
319 | ;; | |
fa958513 | 320 | i[34567]86-*-solaris2*) |
19523300 RO |
321 | tmake_file="${tmake_file} i386/t-sol2" |
322 | case ${host} in | |
323 | *-*-solaris2.1[0-9]*) | |
324 | # Solaris 2.10 provides crt1.o, crti.o, crtn.o, and gcrt1.o as | |
325 | # part of the base system. | |
326 | extra_parts="gmon.o crtbegin.o crtend.o" | |
327 | ;; | |
328 | *) | |
329 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
330 | ;; | |
331 | esac | |
fa958513 | 332 | ;; |
fa958513 DJ |
333 | i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae) |
334 | ;; | |
9bd196f0 | 335 | i[34567]86-*-pe) |
fa958513 | 336 | ;; |
9bd196f0 | 337 | i[34567]86-*-cygwin* | i[34567]86-*-mingw*) |
76f5e200 DS |
338 | extra_parts="crtbegin.o crtend.o crtfastmath.o" |
339 | tmake_file="i386/t-cygming i386/t-crtfm" | |
9bd196f0 ZM |
340 | ;; |
341 | x86_64-*-mingw*) | |
fa958513 | 342 | ;; |
fa958513 DJ |
343 | i[34567]86-*-interix3*) |
344 | ;; | |
fa958513 | 345 | ia64*-*-elf*) |
f43e89a3 RIL |
346 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" |
347 | tmake_file="ia64/t-ia64" | |
fa958513 DJ |
348 | ;; |
349 | ia64*-*-freebsd*) | |
be1c764e GP |
350 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" |
351 | tmake_file="ia64/t-ia64" | |
fa958513 DJ |
352 | ;; |
353 | ia64*-*-linux*) | |
354 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" | |
ba181049 | 355 | tmake_file="ia64/t-ia64 t-softfp ia64/t-fprules-softfp ia64/t-softfp-compat" |
fa958513 DJ |
356 | ;; |
357 | ia64*-*-hpux*) | |
358 | ;; | |
a9a25daa DR |
359 | ia64-hp-*vms*) |
360 | tmake_file="vms/t-vms vms/t-vms64 ia64/t-vms" | |
361 | ;; | |
fa958513 DJ |
362 | iq2000*-*-elf*) |
363 | ;; | |
c1b14424 | 364 | lm32-*-elf*|lm32-*-rtems*) |
aa4945c1 JB |
365 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
366 | tmake_file="lm32/t-lm32 lm32/t-elf t-softfp" | |
367 | ;; | |
368 | lm32-*-uclinux*) | |
369 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" | |
370 | tmake_file="lm32/t-lm32 lm32/t-uclinux t-softfp" | |
371 | ;; | |
2042cb04 | 372 | m32r-*-elf*|m32r-*-rtems*) |
fa958513 DJ |
373 | ;; |
374 | m32rle-*-elf*) | |
375 | ;; | |
376 | m32r-*-linux*) | |
377 | ;; | |
378 | m32rle-*-linux*) | |
379 | ;; | |
380 | m68hc11-*-*|m6811-*-*) | |
381 | ;; | |
382 | m68hc12-*-*|m6812-*-*) | |
383 | ;; | |
cd985f66 | 384 | m68k-*-elf*) |
fa958513 | 385 | ;; |
cd985f66 | 386 | m68k*-*-netbsdelf*) |
fa958513 DJ |
387 | ;; |
388 | m68k*-*-openbsd*) | |
389 | ;; | |
390 | m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc | |
391 | ;; | |
392 | m68k-*-linux*) # Motorola m68k's running GNU/Linux | |
393 | # with ELF format using glibc 2 | |
394 | # aka the GNU/Linux C library 6. | |
395 | ;; | |
396 | m68k-*-rtems*) | |
397 | ;; | |
398 | mcore-*-elf) | |
399 | ;; | |
400 | mcore-*-pe*) | |
401 | ;; | |
402 | mips-sgi-irix[56]*) | |
403 | ;; | |
404 | mips*-*-netbsd*) # NetBSD/mips, either endian. | |
405 | ;; | |
406 | mips64*-*-linux*) | |
48b09a92 KH |
407 | extra_parts="$extra_parts crtfastmath.o" |
408 | tmake_file="{$tmake_file} mips/t-crtfm" | |
fa958513 DJ |
409 | ;; |
410 | mips*-*-linux*) # Linux MIPS, either endian. | |
48b09a92 KH |
411 | extra_parts="$extra_parts crtfastmath.o" |
412 | tmake_file="{$tmake_file} mips/t-crtfm" | |
fa958513 DJ |
413 | ;; |
414 | mips*-*-openbsd*) | |
415 | ;; | |
416 | mipsisa32-*-elf* | mipsisa32el-*-elf*) | |
417 | ;; | |
418 | mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*) | |
419 | ;; | |
420 | mipsisa64-*-elf* | mipsisa64el-*-elf*) | |
421 | ;; | |
0a4a51c7 AN |
422 | mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*) |
423 | ;; | |
fa958513 DJ |
424 | mipsisa64sr71k-*-elf*) |
425 | ;; | |
426 | mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*) | |
427 | ;; | |
428 | mips-*-elf* | mipsel-*-elf*) | |
429 | ;; | |
430 | mips64-*-elf* | mips64el-*-elf*) | |
431 | ;; | |
432 | mips64vr-*-elf* | mips64vrel-*-elf*) | |
433 | ;; | |
434 | mips64orion-*-elf* | mips64orionel-*-elf*) | |
435 | ;; | |
436 | mips*-*-rtems*) | |
437 | ;; | |
438 | mips-wrs-vxworks) | |
439 | ;; | |
fa958513 DJ |
440 | mipstx39-*-elf* | mipstx39el-*-elf*) |
441 | ;; | |
442 | mmix-knuth-mmixware) | |
e7c914db HPN |
443 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
444 | tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}" | |
fa958513 DJ |
445 | ;; |
446 | mn10300-*-*) | |
447 | ;; | |
cceb575c | 448 | moxie-*-*) |
e6e50811 | 449 | tmake_file="moxie/t-moxie moxie/t-moxie-softfp" |
cceb575c AG |
450 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
451 | ;; | |
fa958513 DJ |
452 | pdp11-*-*) |
453 | ;; | |
358da97e HS |
454 | picochip-*-*) |
455 | ;; | |
fa958513 DJ |
456 | powerpc-*-darwin*) |
457 | ;; | |
458 | powerpc64-*-darwin*) | |
459 | ;; | |
460 | powerpc*-*-freebsd*) | |
461 | ;; | |
462 | powerpc-*-netbsd*) | |
463 | ;; | |
fa958513 | 464 | powerpc-*-eabispe*) |
c5b79d4e | 465 | tmake_file="${tmake_file} rs6000/t-ppccomm" |
fa958513 DJ |
466 | ;; |
467 | powerpc-*-eabisimaltivec*) | |
468 | ;; | |
469 | powerpc-*-eabisim*) | |
470 | ;; | |
471 | powerpc-*-elf*) | |
472 | ;; | |
473 | powerpc-*-eabialtivec*) | |
474 | ;; | |
475 | powerpc-*-eabi*) | |
c5b79d4e | 476 | tmake_file="${tmake_file} rs6000/t-ppccomm" |
fa958513 DJ |
477 | ;; |
478 | powerpc-*-rtems*) | |
479 | ;; | |
633dd061 | 480 | powerpc-*-linux* | powerpc64-*-linux*) |
bcf4713b | 481 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128 t-softfp" |
fa958513 | 482 | ;; |
633dd061 AM |
483 | powerpc64-*-gnu*) |
484 | tmake_file="${tmake_file} rs6000/t-ldbl128 t-softfp" | |
485 | ;; | |
fa958513 DJ |
486 | powerpc-*-gnu-gnualtivec*) |
487 | tmake_file="${tmake_file} rs6000/t-ldbl128" | |
488 | ;; | |
489 | powerpc-*-gnu*) | |
490 | tmake_file="${tmake_file} rs6000/t-ldbl128" | |
491 | ;; | |
492 | powerpc-wrs-vxworks|powerpc-wrs-vxworksae) | |
493 | ;; | |
fa958513 DJ |
494 | powerpc-*-lynxos*) |
495 | ;; | |
fa958513 DJ |
496 | powerpcle-*-elf*) |
497 | ;; | |
498 | powerpcle-*-eabisim*) | |
499 | ;; | |
500 | powerpcle-*-eabi*) | |
501 | ;; | |
fa958513 DJ |
502 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
503 | ;; | |
504 | rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*) | |
505 | ;; | |
506 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
507 | ;; | |
65a324b4 NC |
508 | rx-*-elf) |
509 | extra_parts="crtbegin.o crtend.o" | |
510 | tmake_file="rx/t-rx" | |
511 | ;; | |
fa958513 | 512 | s390-*-linux*) |
81dd9fd7 | 513 | tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi" |
fa958513 DJ |
514 | ;; |
515 | s390x-*-linux*) | |
81dd9fd7 | 516 | tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux" |
fa958513 DJ |
517 | ;; |
518 | s390x-ibm-tpf*) | |
81dd9fd7 | 519 | tmake_file="${tmake_file} s390/t-crtstuff s390/t-tpf" |
fa958513 DJ |
520 | ;; |
521 | score-*-elf) | |
522 | ;; | |
cd985f66 | 523 | sh-*-elf* | sh[12346l]*-*-elf* | \ |
fa958513 | 524 | sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \ |
93fea8d3 | 525 | sh-*-linux* | sh[2346lbe]*-*-linux* | \ |
fa958513 DJ |
526 | sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ |
527 | sh64-*-netbsd* | sh64l*-*-netbsd*) | |
26900826 KK |
528 | case ${host} in |
529 | sh*-*-linux*) | |
530 | tmake_file="${tmake_file} sh/t-linux" | |
531 | ;; | |
532 | esac | |
fa958513 | 533 | ;; |
fa958513 DJ |
534 | sh-*-rtems*) |
535 | ;; | |
536 | sh-wrs-vxworks) | |
537 | ;; | |
fa958513 DJ |
538 | sparc-*-netbsdelf*) |
539 | ;; | |
540 | sparc64-*-openbsd*) | |
541 | ;; | |
542 | sparc-*-elf*) | |
543 | ;; | |
544 | sparc-*-linux*) # SPARC's running GNU/Linux, libc6 | |
545 | extra_parts="$extra_parts crtfastmath.o" | |
546 | tmake_file="${tmake_file} sparc/t-crtfm" | |
547 | ;; | |
1b64cc3e | 548 | sparc-*-rtems* | sparc64-*-rtems* ) |
fa958513 DJ |
549 | ;; |
550 | sparc64-*-solaris2* | sparcv9-*-solaris2*) | |
551 | ;; | |
552 | sparc-*-solaris2*) | |
553 | ;; | |
fa958513 DJ |
554 | sparc64-*-elf*) |
555 | ;; | |
1910440e RS |
556 | sparc-wrs-vxworks) |
557 | ;; | |
fa958513 DJ |
558 | sparc64-*-freebsd*|ultrasparc-*-freebsd*) |
559 | ;; | |
560 | sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux | |
561 | extra_parts="$extra_parts crtfastmath.o" | |
562 | tmake_file="${tmake_file} sparc/t-crtfm" | |
563 | ;; | |
564 | sparc64-*-netbsd*) | |
565 | ;; | |
566 | spu-*-elf*) | |
567 | ;; | |
fa958513 DJ |
568 | v850e1-*-*) |
569 | ;; | |
570 | v850e-*-*) | |
571 | ;; | |
572 | v850-*-*) | |
573 | ;; | |
fea96e25 MR |
574 | vax-*-linux*) |
575 | ;; | |
fa958513 DJ |
576 | vax-*-netbsdelf*) |
577 | ;; | |
578 | vax-*-netbsd*) | |
579 | ;; | |
580 | vax-*-openbsd*) | |
581 | ;; | |
fa958513 DJ |
582 | xstormy16-*-elf) |
583 | ;; | |
c660f132 | 584 | xtensa*-*-elf*) |
fa958513 | 585 | ;; |
c660f132 | 586 | xtensa*-*-linux*) |
fa958513 DJ |
587 | ;; |
588 | am33_2.0-*-linux*) | |
589 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
590 | ;; | |
541ed00e | 591 | m32c-*-elf*|m32c-*-rtems*) |
fa958513 | 592 | ;; |
7acf4da6 DD |
593 | mep*-*-*) |
594 | ;; | |
fa958513 DJ |
595 | *) |
596 | echo "*** Configuration ${host} not supported" 1>&2 | |
597 | exit 1 | |
598 | ;; | |
599 | esac | |
6f461e76 L |
600 | |
601 | case ${host} in | |
2a761e46 TS |
602 | i[34567]86-*-linux* | x86_64-*-linux* | \ |
603 | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | \ | |
604 | i[34567]86-*-gnu*) | |
7458026b | 605 | tmake_file="${tmake_file} t-tls t-stack i386/t-stack-i386" |
6f461e76 L |
606 | ;; |
607 | esac | |
ff473280 L |
608 | |
609 | case ${host} in | |
610 | i[34567]86-*-darwin* | x86_64-*-darwin* | \ | |
532bfb0a | 611 | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \ |
e997fb9c | 612 | i[34567]86-*-linux* | x86_64-*-linux* | \ |
3f56ef8b | 613 | i[34567]86-*-gnu* | \ |
f128db92 | 614 | i[34567]86-*-solaris2* | \ |
d78552bd UB |
615 | i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \ |
616 | i[34567]86-*-freebsd* | x86_64-*-freebsd*) | |
c174f11c | 617 | if test "${host_address}" = 32; then |
ce16861e | 618 | tmake_file="${tmake_file} t-softfp i386/${host_address}/t-fprules-softfp" |
c174f11c L |
619 | fi |
620 | ;; | |
621 | esac | |
622 | ||
623 | case ${host} in | |
624 | i[34567]86-*-linux* | x86_64-*-linux*) | |
625 | # Provide backward binary compatibility for 64bit Linux/x86. | |
626 | if test "${host_address}" = 64; then | |
627 | tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat" | |
628 | fi | |
ff473280 L |
629 | ;; |
630 | esac |