]>
Commit | Line | Data |
---|---|---|
fa958513 | 1 | # libgcc host-specific configuration file. |
8d8da227 | 2 | # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
ca24c5ad | 3 | # 2008, 2009, 2010, 2011 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 | ;; | |
80920132 ME |
110 | microblaze*-*-*) |
111 | cpu_type=microblaze | |
112 | ;; | |
fa958513 DJ |
113 | mips*-*-*) |
114 | cpu_type=mips | |
115 | ;; | |
116 | powerpc*-*-*) | |
117 | cpu_type=rs6000 | |
118 | ;; | |
119 | rs6000*-*-*) | |
120 | ;; | |
121 | score*-*-*) | |
122 | cpu_type=score | |
123 | ;; | |
124 | sparc64*-*-*) | |
125 | cpu_type=sparc | |
126 | ;; | |
127 | sparc*-*-*) | |
128 | cpu_type=sparc | |
129 | ;; | |
130 | spu*-*-*) | |
131 | cpu_type=spu | |
132 | ;; | |
133 | s390*-*-*) | |
134 | cpu_type=s390 | |
135 | ;; | |
136 | # Note the 'l'; we need to be able to match e.g. "shle" or "shl". | |
137 | sh[123456789lbe]*-*-*) | |
138 | cpu_type=sh | |
139 | ;; | |
fa958513 DJ |
140 | esac |
141 | ||
142 | # Common parts for widely ported systems. | |
143 | case ${host} in | |
144 | *-*-darwin*) | |
145 | asm_hidden_op=.private_extern | |
146 | tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin" | |
147 | ;; | |
148 | *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) | |
149 | # This is the place-holder for the generic a.out configuration | |
150 | # of FreeBSD. No actual configuration resides here since | |
151 | # there was only ever a bare-bones ix86 configuration for | |
152 | # a.out and it exists solely in the machine-specific section. | |
153 | # This place-holder must exist to avoid dropping into | |
154 | # the generic ELF configuration of FreeBSD (i.e. it must be | |
155 | # ordered before that section). | |
156 | ;; | |
157 | *-*-freebsd*) | |
158 | # This is the generic ELF configuration of FreeBSD. Later | |
159 | # machine-specific sections may refine and add to this | |
160 | # configuration. | |
161 | ;; | |
c0451df7 | 162 | *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu*) |
fa958513 DJ |
163 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
164 | ;; | |
fa958513 DJ |
165 | *-*-netbsd*) |
166 | ;; | |
167 | *-*-openbsd*) | |
168 | ;; | |
169 | *-*-rtems*) | |
170 | ;; | |
ca24c5ad RO |
171 | *-*-solaris2*) |
172 | tmake_file="$tmake_file t-sol2 t-slibgcc t-slibgcc-elf-ver" | |
173 | if test $with_gnu_ld = yes; then | |
174 | tmake_file="$tmake_file t-slibgcc-gld" | |
175 | else | |
176 | tmake_file="$tmake_file t-slibgcc-sld" | |
177 | fi | |
178 | # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES. | |
179 | tmake_file="$tmake_file $cpu_type/t-sol2" | |
180 | extra_parts="gmon.o crtbegin.o crtend.o" | |
181 | case ${host} in | |
182 | i?86-*-solaris2.1[0-9]*) | |
183 | # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as | |
184 | # part of the base system. | |
185 | ;; | |
186 | sparc*-*-solaris2.1[0-9]*) | |
187 | # Solaris 10+/SPARC lacks crt1.o and gcrt1.o. | |
188 | extra_parts="$extra_parts crt1.o gcrt1.o" | |
189 | ;; | |
190 | *) | |
191 | tmake_file="$tmake_file t-crtin" | |
192 | extra_parts="$extra_parts crt1.o crti.o crtn.o gcrt1.o" | |
193 | ;; | |
194 | esac | |
195 | ;; | |
fa958513 DJ |
196 | *-*-vxworks*) |
197 | ;; | |
198 | *-*-elf) | |
199 | ;; | |
200 | esac | |
201 | ||
202 | case ${host} in | |
203 | # Support site-specific machine types. | |
204 | *local*) | |
205 | rest=`echo ${host} | sed -e "s/$cpu_type-//"` | |
206 | if test -f $srcdir/config/${cpu_type}/t-$rest | |
207 | then tmake_file=${cpu_type}/t-$rest | |
208 | fi | |
209 | ;; | |
ebb9f8b0 | 210 | alpha*-*-linux*) |
fa958513 | 211 | tmake_file="${tmake_file} alpha/t-crtfm" |
5ea41e3a | 212 | extra_parts="$extra_parts crtfastmath.o" |
fa958513 | 213 | ;; |
fa958513 DJ |
214 | alpha*-*-freebsd*) |
215 | ;; | |
216 | alpha*-*-netbsd*) | |
217 | ;; | |
218 | alpha*-*-openbsd*) | |
219 | ;; | |
8c200350 | 220 | alpha*-dec-osf5.1*) |
fa958513 DJ |
221 | ;; |
222 | alpha64-dec-*vms*) | |
a9a25daa | 223 | tmake_file="vms/t-vms vms/t-vms64 alpha/t-vms" |
fa958513 DJ |
224 | ;; |
225 | alpha*-dec-*vms*) | |
a9a25daa | 226 | tmake_file="vms/t-vms alpha/t-vms" |
fa958513 | 227 | ;; |
fa958513 DJ |
228 | arm-wrs-vxworks) |
229 | ;; | |
cd985f66 | 230 | arm*-*-freebsd*) |
fa958513 DJ |
231 | ;; |
232 | arm*-*-netbsdelf*) | |
233 | ;; | |
fa958513 DJ |
234 | arm*-*-linux*) # ARM GNU/Linux with ELF |
235 | ;; | |
236 | arm*-*-uclinux*) # ARM ucLinux | |
237 | ;; | |
238 | arm*-*-ecos-elf) | |
239 | ;; | |
240 | arm*-*-eabi* | arm*-*-symbianelf* ) | |
241 | ;; | |
242 | arm*-*-rtems*) | |
243 | ;; | |
cd985f66 | 244 | arm*-*-elf) |
fa958513 DJ |
245 | ;; |
246 | arm*-wince-pe*) | |
247 | ;; | |
fa958513 DJ |
248 | avr-*-rtems*) |
249 | ;; | |
250 | avr-*-*) | |
47583040 AH |
251 | # Make HImode functions for AVR |
252 | tmake_file=${cpu_type}/t-avr | |
fa958513 DJ |
253 | ;; |
254 | bfin*-elf*) | |
255 | ;; | |
256 | bfin*-uclinux*) | |
257 | ;; | |
344189f9 BS |
258 | bfin*-linux-uclibc*) |
259 | # No need to build crtbeginT.o on uClibc systems. Should probably | |
260 | # be moved to the OS specific section above. | |
261 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
262 | ;; | |
fa958513 DJ |
263 | bfin*-*) |
264 | ;; | |
4081d704 | 265 | crisv32-*-elf | crisv32-*-none | cris-*-elf | cris-*-none) |
8fce4e31 | 266 | extra_parts="crtbegin.o crtend.o" |
fa958513 | 267 | ;; |
4081d704 | 268 | cris-*-linux* | crisv32-*-linux*) |
fa958513 | 269 | ;; |
7d33c31d KH |
270 | fido-*-elf) |
271 | ;; | |
fa958513 DJ |
272 | fr30-*-elf) |
273 | ;; | |
274 | frv-*-elf) | |
275 | ;; | |
276 | frv-*-*linux*) | |
277 | ;; | |
fa958513 DJ |
278 | h8300-*-rtems*) |
279 | ;; | |
280 | h8300-*-elf*) | |
281 | ;; | |
cd985f66 | 282 | hppa*64*-*-linux*) |
fa958513 | 283 | ;; |
cd985f66 | 284 | hppa*-*-linux*) |
fa958513 DJ |
285 | ;; |
286 | hppa[12]*-*-hpux10*) | |
287 | ;; | |
288 | hppa*64*-*-hpux11*) | |
289 | ;; | |
290 | hppa[12]*-*-hpux11*) | |
291 | ;; | |
292 | i[34567]86-*-darwin*) | |
293 | ;; | |
294 | x86_64-*-darwin*) | |
295 | tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin" | |
296 | ;; | |
297 | i[34567]86-*-elf*) | |
298 | ;; | |
3ae3dbd6 HK |
299 | x86_64-*-elf*) |
300 | ;; | |
fa958513 | 301 | i[34567]86-*-freebsd*) |
d78552bd | 302 | tmake_file="${tmake_file} i386/t-freebsd" |
fa958513 DJ |
303 | ;; |
304 | x86_64-*-freebsd*) | |
d78552bd | 305 | tmake_file="${tmake_file} i386/t-freebsd" |
fa958513 DJ |
306 | ;; |
307 | i[34567]86-*-netbsdelf*) | |
308 | ;; | |
fa958513 DJ |
309 | x86_64-*-netbsd*) |
310 | ;; | |
311 | i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) | |
312 | ;; | |
313 | i[34567]86-*-openbsd*) | |
314 | ;; | |
c0451df7 | 315 | i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu*) |
577565f9 UB |
316 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
317 | tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" | |
fa958513 DJ |
318 | ;; |
319 | x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu) | |
577565f9 UB |
320 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
321 | tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" | |
fa958513 | 322 | ;; |
fa958513 DJ |
323 | i[34567]86-pc-msdosdjgpp*) |
324 | ;; | |
325 | i[34567]86-*-lynxos*) | |
326 | ;; | |
327 | i[3456x]86-*-netware*) | |
328 | case /${with_ld} in | |
329 | */nwld) | |
330 | tmake_file="${tmake_file} i386/t-nwld" | |
331 | ;; | |
332 | esac | |
333 | ;; | |
334 | i[34567]86-*-nto-qnx*) | |
335 | ;; | |
336 | i[34567]86-*-rtems*) | |
ca24c5ad RO |
337 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
338 | tmake_file="${tmake_file} t-crtin i386/t-softfp i386/t-crtstuff t-rtems" | |
fa958513 | 339 | ;; |
fa958513 DJ |
340 | i[34567]86-*-solaris2*) |
341 | ;; | |
fa958513 DJ |
342 | i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae) |
343 | ;; | |
9bd196f0 | 344 | i[34567]86-*-cygwin* | i[34567]86-*-mingw*) |
76f5e200 DS |
345 | extra_parts="crtbegin.o crtend.o crtfastmath.o" |
346 | tmake_file="i386/t-cygming i386/t-crtfm" | |
9bd196f0 ZM |
347 | ;; |
348 | x86_64-*-mingw*) | |
fa958513 | 349 | ;; |
fa958513 DJ |
350 | i[34567]86-*-interix3*) |
351 | ;; | |
fa958513 | 352 | ia64*-*-elf*) |
f43e89a3 RIL |
353 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" |
354 | tmake_file="ia64/t-ia64" | |
fa958513 DJ |
355 | ;; |
356 | ia64*-*-freebsd*) | |
be1c764e GP |
357 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" |
358 | tmake_file="ia64/t-ia64" | |
fa958513 DJ |
359 | ;; |
360 | ia64*-*-linux*) | |
361 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" | |
ba181049 | 362 | tmake_file="ia64/t-ia64 t-softfp ia64/t-fprules-softfp ia64/t-softfp-compat" |
fa958513 DJ |
363 | ;; |
364 | ia64*-*-hpux*) | |
365 | ;; | |
a9a25daa DR |
366 | ia64-hp-*vms*) |
367 | tmake_file="vms/t-vms vms/t-vms64 ia64/t-vms" | |
368 | ;; | |
fa958513 DJ |
369 | iq2000*-*-elf*) |
370 | ;; | |
c1b14424 | 371 | lm32-*-elf*|lm32-*-rtems*) |
aa4945c1 JB |
372 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
373 | tmake_file="lm32/t-lm32 lm32/t-elf t-softfp" | |
374 | ;; | |
375 | lm32-*-uclinux*) | |
376 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" | |
377 | tmake_file="lm32/t-lm32 lm32/t-uclinux t-softfp" | |
378 | ;; | |
2042cb04 | 379 | m32r-*-elf*|m32r-*-rtems*) |
fa958513 DJ |
380 | ;; |
381 | m32rle-*-elf*) | |
382 | ;; | |
383 | m32r-*-linux*) | |
384 | ;; | |
385 | m32rle-*-linux*) | |
386 | ;; | |
cd985f66 | 387 | m68k-*-elf*) |
fa958513 | 388 | ;; |
cd985f66 | 389 | m68k*-*-netbsdelf*) |
fa958513 DJ |
390 | ;; |
391 | m68k*-*-openbsd*) | |
392 | ;; | |
393 | m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc | |
394 | ;; | |
395 | m68k-*-linux*) # Motorola m68k's running GNU/Linux | |
396 | # with ELF format using glibc 2 | |
397 | # aka the GNU/Linux C library 6. | |
398 | ;; | |
399 | m68k-*-rtems*) | |
400 | ;; | |
401 | mcore-*-elf) | |
402 | ;; | |
80920132 ME |
403 | microblaze*-*-*) |
404 | tmake_file="microblaze/t-microblaze" | |
405 | ;; | |
fa958513 DJ |
406 | mips-sgi-irix[56]*) |
407 | ;; | |
408 | mips*-*-netbsd*) # NetBSD/mips, either endian. | |
409 | ;; | |
410 | mips64*-*-linux*) | |
48b09a92 KH |
411 | extra_parts="$extra_parts crtfastmath.o" |
412 | tmake_file="{$tmake_file} mips/t-crtfm" | |
fa958513 DJ |
413 | ;; |
414 | mips*-*-linux*) # Linux MIPS, either endian. | |
48b09a92 KH |
415 | extra_parts="$extra_parts crtfastmath.o" |
416 | tmake_file="{$tmake_file} mips/t-crtfm" | |
fa958513 DJ |
417 | ;; |
418 | mips*-*-openbsd*) | |
419 | ;; | |
420 | mipsisa32-*-elf* | mipsisa32el-*-elf*) | |
421 | ;; | |
422 | mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*) | |
423 | ;; | |
424 | mipsisa64-*-elf* | mipsisa64el-*-elf*) | |
425 | ;; | |
0a4a51c7 AN |
426 | mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*) |
427 | ;; | |
fa958513 DJ |
428 | mipsisa64sr71k-*-elf*) |
429 | ;; | |
430 | mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*) | |
431 | ;; | |
432 | mips-*-elf* | mipsel-*-elf*) | |
433 | ;; | |
434 | mips64-*-elf* | mips64el-*-elf*) | |
435 | ;; | |
436 | mips64vr-*-elf* | mips64vrel-*-elf*) | |
437 | ;; | |
438 | mips64orion-*-elf* | mips64orionel-*-elf*) | |
439 | ;; | |
440 | mips*-*-rtems*) | |
441 | ;; | |
442 | mips-wrs-vxworks) | |
443 | ;; | |
fa958513 DJ |
444 | mipstx39-*-elf* | mipstx39el-*-elf*) |
445 | ;; | |
446 | mmix-knuth-mmixware) | |
e7c914db HPN |
447 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
448 | tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}" | |
fa958513 DJ |
449 | ;; |
450 | mn10300-*-*) | |
451 | ;; | |
cceb575c | 452 | moxie-*-*) |
e6e50811 | 453 | tmake_file="moxie/t-moxie moxie/t-moxie-softfp" |
cceb575c AG |
454 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
455 | ;; | |
fa958513 DJ |
456 | pdp11-*-*) |
457 | ;; | |
358da97e HS |
458 | picochip-*-*) |
459 | ;; | |
fa958513 DJ |
460 | powerpc-*-darwin*) |
461 | ;; | |
462 | powerpc64-*-darwin*) | |
463 | ;; | |
9cfa1499 AT |
464 | powerpc-*-freebsd*) |
465 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-freebsd t-softfp" | |
fa958513 DJ |
466 | ;; |
467 | powerpc-*-netbsd*) | |
468 | ;; | |
fa958513 | 469 | powerpc-*-eabispe*) |
c5b79d4e | 470 | tmake_file="${tmake_file} rs6000/t-ppccomm" |
fa958513 DJ |
471 | ;; |
472 | powerpc-*-eabisimaltivec*) | |
473 | ;; | |
474 | powerpc-*-eabisim*) | |
475 | ;; | |
476 | powerpc-*-elf*) | |
477 | ;; | |
478 | powerpc-*-eabialtivec*) | |
479 | ;; | |
480 | powerpc-*-eabi*) | |
c5b79d4e | 481 | tmake_file="${tmake_file} rs6000/t-ppccomm" |
fa958513 DJ |
482 | ;; |
483 | powerpc-*-rtems*) | |
484 | ;; | |
633dd061 | 485 | powerpc-*-linux* | powerpc64-*-linux*) |
bcf4713b | 486 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128 t-softfp" |
fa958513 | 487 | ;; |
fa958513 DJ |
488 | powerpc-wrs-vxworks|powerpc-wrs-vxworksae) |
489 | ;; | |
fa958513 DJ |
490 | powerpc-*-lynxos*) |
491 | ;; | |
fa958513 DJ |
492 | powerpcle-*-elf*) |
493 | ;; | |
494 | powerpcle-*-eabisim*) | |
495 | ;; | |
496 | powerpcle-*-eabi*) | |
497 | ;; | |
fa958513 DJ |
498 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
499 | ;; | |
500 | rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*) | |
501 | ;; | |
502 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
503 | ;; | |
65a324b4 NC |
504 | rx-*-elf) |
505 | extra_parts="crtbegin.o crtend.o" | |
506 | tmake_file="rx/t-rx" | |
507 | ;; | |
fa958513 | 508 | s390-*-linux*) |
81dd9fd7 | 509 | tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi" |
fa958513 DJ |
510 | ;; |
511 | s390x-*-linux*) | |
81dd9fd7 | 512 | tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux" |
fa958513 DJ |
513 | ;; |
514 | s390x-ibm-tpf*) | |
81dd9fd7 | 515 | tmake_file="${tmake_file} s390/t-crtstuff s390/t-tpf" |
fa958513 DJ |
516 | ;; |
517 | score-*-elf) | |
518 | ;; | |
cd985f66 | 519 | sh-*-elf* | sh[12346l]*-*-elf* | \ |
93fea8d3 | 520 | sh-*-linux* | sh[2346lbe]*-*-linux* | \ |
fa958513 DJ |
521 | sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ |
522 | sh64-*-netbsd* | sh64l*-*-netbsd*) | |
26900826 KK |
523 | case ${host} in |
524 | sh*-*-linux*) | |
525 | tmake_file="${tmake_file} sh/t-linux" | |
526 | ;; | |
527 | esac | |
fa958513 | 528 | ;; |
fa958513 DJ |
529 | sh-*-rtems*) |
530 | ;; | |
531 | sh-wrs-vxworks) | |
532 | ;; | |
fa958513 DJ |
533 | sparc-*-netbsdelf*) |
534 | ;; | |
535 | sparc64-*-openbsd*) | |
536 | ;; | |
537 | sparc-*-elf*) | |
ca24c5ad RO |
538 | case ${host} in |
539 | *-leon[3-9]*) | |
540 | ;; | |
541 | *) | |
542 | tmake_file="sparc/t-softmul" | |
543 | ;; | |
544 | esac | |
545 | tmake_file="${tmake_file} sparc/t-softfp t-crtin t-crtfm" | |
546 | extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o" | |
fa958513 DJ |
547 | ;; |
548 | sparc-*-linux*) # SPARC's running GNU/Linux, libc6 | |
549 | extra_parts="$extra_parts crtfastmath.o" | |
ca24c5ad | 550 | tmake_file="${tmake_file} t-crtfm" |
fa958513 | 551 | ;; |
1b64cc3e | 552 | sparc-*-rtems* | sparc64-*-rtems* ) |
ca24c5ad RO |
553 | tmake_file="sparc/t-elf t-crtin t-crtfm t-rtems" |
554 | extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o" | |
fa958513 | 555 | ;; |
ca24c5ad RO |
556 | sparc*-*-solaris2*) |
557 | tmake_file="$tmake_file t-crtfm" | |
558 | extra_parts="$extra_parts crtfastmath.o" | |
fa958513 | 559 | ;; |
fa958513 | 560 | sparc64-*-elf*) |
ca24c5ad RO |
561 | tmake_file="${tmake_file} t-crtin t-crtfm" |
562 | extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o" | |
fa958513 | 563 | ;; |
1910440e RS |
564 | sparc-wrs-vxworks) |
565 | ;; | |
fa958513 DJ |
566 | sparc64-*-freebsd*|ultrasparc-*-freebsd*) |
567 | ;; | |
568 | sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux | |
569 | extra_parts="$extra_parts crtfastmath.o" | |
ca24c5ad | 570 | tmake_file="${tmake_file} t-crtfm" |
fa958513 DJ |
571 | ;; |
572 | sparc64-*-netbsd*) | |
573 | ;; | |
574 | spu-*-elf*) | |
575 | ;; | |
fa958513 DJ |
576 | v850e1-*-*) |
577 | ;; | |
578 | v850e-*-*) | |
579 | ;; | |
580 | v850-*-*) | |
581 | ;; | |
fea96e25 MR |
582 | vax-*-linux*) |
583 | ;; | |
fa958513 DJ |
584 | vax-*-netbsdelf*) |
585 | ;; | |
fa958513 DJ |
586 | vax-*-openbsd*) |
587 | ;; | |
fa958513 DJ |
588 | xstormy16-*-elf) |
589 | ;; | |
c660f132 | 590 | xtensa*-*-elf*) |
fa958513 | 591 | ;; |
c660f132 | 592 | xtensa*-*-linux*) |
fa958513 DJ |
593 | ;; |
594 | am33_2.0-*-linux*) | |
595 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
596 | ;; | |
541ed00e | 597 | m32c-*-elf*|m32c-*-rtems*) |
fa958513 | 598 | ;; |
7acf4da6 DD |
599 | mep*-*-*) |
600 | ;; | |
fa958513 DJ |
601 | *) |
602 | echo "*** Configuration ${host} not supported" 1>&2 | |
603 | exit 1 | |
604 | ;; | |
605 | esac | |
6f461e76 L |
606 | |
607 | case ${host} in | |
2a761e46 TS |
608 | i[34567]86-*-linux* | x86_64-*-linux* | \ |
609 | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | \ | |
610 | i[34567]86-*-gnu*) | |
b6110d6d ILT |
611 | tmake_file="${tmake_file} t-tls" |
612 | if test "$libgcc_cv_cfi" = "yes"; then | |
ca007d11 | 613 | tmake_file="${tmake_file} t-stack i386/t-stack-i386" |
b6110d6d | 614 | fi |
6f461e76 L |
615 | ;; |
616 | esac | |
ff473280 L |
617 | |
618 | case ${host} in | |
619 | i[34567]86-*-darwin* | x86_64-*-darwin* | \ | |
532bfb0a | 620 | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \ |
e997fb9c | 621 | i[34567]86-*-linux* | x86_64-*-linux* | \ |
3f56ef8b | 622 | i[34567]86-*-gnu* | \ |
f128db92 | 623 | i[34567]86-*-solaris2* | \ |
d78552bd UB |
624 | i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \ |
625 | i[34567]86-*-freebsd* | x86_64-*-freebsd*) | |
c174f11c | 626 | if test "${host_address}" = 32; then |
ce16861e | 627 | tmake_file="${tmake_file} t-softfp i386/${host_address}/t-fprules-softfp" |
c174f11c L |
628 | fi |
629 | ;; | |
630 | esac | |
631 | ||
632 | case ${host} in | |
633 | i[34567]86-*-linux* | x86_64-*-linux*) | |
634 | # Provide backward binary compatibility for 64bit Linux/x86. | |
635 | if test "${host_address}" = 64; then | |
636 | tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat" | |
637 | fi | |
ff473280 L |
638 | ;; |
639 | esac |