]>
Commit | Line | Data |
---|---|---|
894a47b4 | 1 | # libgcc host-specific configuration file. |
99c77e32 | 2 | # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
63abf89e | 3 | # 2008, 2009, 2010, 2011 Free Software Foundation, Inc. |
894a47b4 | 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 | |
6bc9506f | 9 | #Software Foundation; either version 3, or (at your option) any later |
894a47b4 | 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 | |
6bc9506f | 18 | #along with GCC; see the file COPYING3. If not see |
19 | #<http://www.gnu.org/licenses/>. | |
894a47b4 | 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. | |
a6f06169 | 47 | # enable_execute_stack The name of a source file implementing |
48 | # __enable_execute_stack. | |
894a47b4 | 49 | # extra_parts List of extra object files that should be compiled |
50 | # for this target machine. This may be overridden | |
51 | # by setting EXTRA_PARTS in a tmake_file fragment. | |
52 | # If either is set, EXTRA_PARTS and | |
53 | # EXTRA_MULTILIB_PARTS inherited from the GCC | |
54 | # subdirectory will be ignored. | |
1e53920f | 55 | # md_unwind_header The name of a header file defining |
56 | # MD_FALLBACK_FRAME_STATE_FOR. | |
894a47b4 | 57 | # tmake_file A list of machine-description-specific |
58 | # makefile-fragments, if different from | |
59 | # "$cpu_type/t-$cpu_type". | |
60 | ||
61 | asm_hidden_op=.hidden | |
a6f06169 | 62 | enable_execute_stack= |
894a47b4 | 63 | extra_parts= |
64 | tmake_file= | |
1e53920f | 65 | md_unwind_header=no-unwind.h |
894a47b4 | 66 | |
67 | # Set default cpu_type so it can be updated in each machine entry. | |
68 | cpu_type=`echo ${host} | sed 's/-.*$//'` | |
69 | case ${host} in | |
70 | m32c*-*-*) | |
71 | cpu_type=m32c | |
72 | ;; | |
73 | alpha*-*-*) | |
74 | cpu_type=alpha | |
75 | ;; | |
76 | am33_2.0-*-linux*) | |
77 | cpu_type=mn10300 | |
78 | ;; | |
894a47b4 | 79 | arm*-*-*) |
80 | cpu_type=arm | |
81 | ;; | |
38dd5584 | 82 | avr-*-*) |
83 | cpu_type=avr | |
84 | ;; | |
894a47b4 | 85 | bfin*-*) |
86 | cpu_type=bfin | |
87 | ;; | |
278e2fd1 | 88 | fido-*-*) |
89 | cpu_type=m68k | |
90 | ;; | |
894a47b4 | 91 | frv*) cpu_type=frv |
92 | ;; | |
be52b6d8 | 93 | moxie*) cpu_type=moxie |
94 | ;; | |
894a47b4 | 95 | i[34567]86-*-*) |
96 | cpu_type=i386 | |
97 | ;; | |
98 | x86_64-*-*) | |
99 | cpu_type=i386 | |
100 | ;; | |
101 | ia64-*-*) | |
102 | ;; | |
6af9f7ea | 103 | hppa*-*-*) |
894a47b4 | 104 | cpu_type=pa |
105 | ;; | |
f6fe91e8 | 106 | lm32*-*-*) |
107 | cpu_type=lm32 | |
108 | ;; | |
894a47b4 | 109 | m32r*-*-*) |
110 | cpu_type=m32r | |
111 | ;; | |
894a47b4 | 112 | m68k-*-*) |
113 | ;; | |
46222c18 | 114 | mep*-*-*) |
115 | ;; | |
d34b0d1e | 116 | microblaze*-*-*) |
117 | cpu_type=microblaze | |
118 | ;; | |
894a47b4 | 119 | mips*-*-*) |
120 | cpu_type=mips | |
121 | ;; | |
122 | powerpc*-*-*) | |
123 | cpu_type=rs6000 | |
124 | ;; | |
125 | rs6000*-*-*) | |
126 | ;; | |
127 | score*-*-*) | |
128 | cpu_type=score | |
129 | ;; | |
130 | sparc64*-*-*) | |
131 | cpu_type=sparc | |
132 | ;; | |
133 | sparc*-*-*) | |
134 | cpu_type=sparc | |
135 | ;; | |
136 | spu*-*-*) | |
137 | cpu_type=spu | |
138 | ;; | |
139 | s390*-*-*) | |
140 | cpu_type=s390 | |
141 | ;; | |
142 | # Note the 'l'; we need to be able to match e.g. "shle" or "shl". | |
143 | sh[123456789lbe]*-*-*) | |
144 | cpu_type=sh | |
145 | ;; | |
894a47b4 | 146 | esac |
147 | ||
148 | # Common parts for widely ported systems. | |
149 | case ${host} in | |
150 | *-*-darwin*) | |
151 | asm_hidden_op=.private_extern | |
152 | tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin" | |
153 | ;; | |
154 | *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) | |
155 | # This is the place-holder for the generic a.out configuration | |
156 | # of FreeBSD. No actual configuration resides here since | |
157 | # there was only ever a bare-bones ix86 configuration for | |
158 | # a.out and it exists solely in the machine-specific section. | |
159 | # This place-holder must exist to avoid dropping into | |
160 | # the generic ELF configuration of FreeBSD (i.e. it must be | |
161 | # ordered before that section). | |
162 | ;; | |
163 | *-*-freebsd*) | |
164 | # This is the generic ELF configuration of FreeBSD. Later | |
165 | # machine-specific sections may refine and add to this | |
166 | # configuration. | |
167 | ;; | |
74cd9df8 | 168 | *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu*) |
894a47b4 | 169 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
170 | ;; | |
894a47b4 | 171 | *-*-netbsd*) |
172 | ;; | |
173 | *-*-openbsd*) | |
174 | ;; | |
175 | *-*-rtems*) | |
176 | ;; | |
63abf89e | 177 | *-*-solaris2*) |
178 | tmake_file="$tmake_file t-sol2 t-slibgcc t-slibgcc-elf-ver" | |
179 | if test $with_gnu_ld = yes; then | |
180 | tmake_file="$tmake_file t-slibgcc-gld" | |
181 | else | |
182 | tmake_file="$tmake_file t-slibgcc-sld" | |
183 | fi | |
184 | # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES. | |
185 | tmake_file="$tmake_file $cpu_type/t-sol2" | |
186 | extra_parts="gmon.o crtbegin.o crtend.o" | |
187 | case ${host} in | |
188 | i?86-*-solaris2.1[0-9]*) | |
189 | # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as | |
190 | # part of the base system. | |
191 | ;; | |
192 | sparc*-*-solaris2.1[0-9]*) | |
193 | # Solaris 10+/SPARC lacks crt1.o and gcrt1.o. | |
194 | extra_parts="$extra_parts crt1.o gcrt1.o" | |
195 | ;; | |
196 | *) | |
197 | tmake_file="$tmake_file t-crtin" | |
198 | extra_parts="$extra_parts crt1.o crti.o crtn.o gcrt1.o" | |
199 | ;; | |
200 | esac | |
201 | ;; | |
894a47b4 | 202 | *-*-vxworks*) |
203 | ;; | |
204 | *-*-elf) | |
205 | ;; | |
206 | esac | |
207 | ||
a6f06169 | 208 | case ${host} in |
209 | *-*-darwin* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris2* | \ | |
210 | alpha*-dec-osf5.1*) | |
211 | enable_execute_stack=enable-execute-stack-mprotect.c | |
212 | ;; | |
213 | i[34567]86-*-mingw* | x86_64-*-mingw*) | |
214 | enable_execute_stack=config/i386/enable-execute-stack-mingw32.c | |
215 | ;; | |
216 | *) | |
217 | enable_execute_stack=enable-execute-stack-empty.c; | |
218 | ;; | |
219 | esac | |
220 | ||
894a47b4 | 221 | case ${host} in |
222 | # Support site-specific machine types. | |
223 | *local*) | |
224 | rest=`echo ${host} | sed -e "s/$cpu_type-//"` | |
225 | if test -f $srcdir/config/${cpu_type}/t-$rest | |
226 | then tmake_file=${cpu_type}/t-$rest | |
227 | fi | |
228 | ;; | |
17b3d2a8 | 229 | alpha*-*-linux*) |
894a47b4 | 230 | tmake_file="${tmake_file} alpha/t-crtfm" |
cdca0ab7 | 231 | extra_parts="$extra_parts crtfastmath.o" |
1e53920f | 232 | md_unwind_header=alpha/linux-unwind.h |
894a47b4 | 233 | ;; |
894a47b4 | 234 | alpha*-*-freebsd*) |
235 | ;; | |
236 | alpha*-*-netbsd*) | |
237 | ;; | |
238 | alpha*-*-openbsd*) | |
239 | ;; | |
ed3e1bbc | 240 | alpha*-dec-osf5.1*) |
541346b9 | 241 | tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee alpha/t-crtfm t-slibgcc alpha/t-slibgcc-osf" |
242 | case ${target_thread_file} in | |
243 | posix) | |
244 | tmake_file="${tmake_file} alpha/t-osf-pthread" | |
245 | ;; | |
246 | esac | |
247 | extra_parts="${extra_parts} qrnnd.o crtfastmath.o gthr-posix.o" | |
1e53920f | 248 | md_unwind_header=alpha/osf5-unwind.h |
894a47b4 | 249 | ;; |
250 | alpha64-dec-*vms*) | |
9b9a2528 | 251 | tmake_file="vms/t-vms vms/t-vms64 alpha/t-vms" |
1e53920f | 252 | md_unwind_header=alpha/vms-unwind.h |
894a47b4 | 253 | ;; |
254 | alpha*-dec-*vms*) | |
9b9a2528 | 255 | tmake_file="vms/t-vms alpha/t-vms" |
1e53920f | 256 | md_unwind_header=alpha/vms-unwind.h |
894a47b4 | 257 | ;; |
894a47b4 | 258 | arm-wrs-vxworks) |
259 | ;; | |
6af9f7ea | 260 | arm*-*-freebsd*) |
894a47b4 | 261 | ;; |
262 | arm*-*-netbsdelf*) | |
263 | ;; | |
894a47b4 | 264 | arm*-*-linux*) # ARM GNU/Linux with ELF |
265 | ;; | |
266 | arm*-*-uclinux*) # ARM ucLinux | |
267 | ;; | |
268 | arm*-*-ecos-elf) | |
269 | ;; | |
270 | arm*-*-eabi* | arm*-*-symbianelf* ) | |
271 | ;; | |
272 | arm*-*-rtems*) | |
273 | ;; | |
6af9f7ea | 274 | arm*-*-elf) |
894a47b4 | 275 | ;; |
276 | arm*-wince-pe*) | |
277 | ;; | |
894a47b4 | 278 | avr-*-rtems*) |
279 | ;; | |
280 | avr-*-*) | |
38dd5584 | 281 | # Make HImode functions for AVR |
282 | tmake_file=${cpu_type}/t-avr | |
894a47b4 | 283 | ;; |
284 | bfin*-elf*) | |
285 | ;; | |
286 | bfin*-uclinux*) | |
1e53920f | 287 | md_unwind_header=bfin/linux-unwind.h |
894a47b4 | 288 | ;; |
bce94ab5 | 289 | bfin*-linux-uclibc*) |
290 | # No need to build crtbeginT.o on uClibc systems. Should probably | |
291 | # be moved to the OS specific section above. | |
292 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
1e53920f | 293 | md_unwind_header=bfin/linux-unwind.h |
bce94ab5 | 294 | ;; |
894a47b4 | 295 | bfin*-*) |
296 | ;; | |
877d7f12 | 297 | crisv32-*-elf | crisv32-*-none | cris-*-elf | cris-*-none) |
7a9b9c95 | 298 | extra_parts="crtbegin.o crtend.o" |
894a47b4 | 299 | ;; |
877d7f12 | 300 | cris-*-linux* | crisv32-*-linux*) |
894a47b4 | 301 | ;; |
278e2fd1 | 302 | fido-*-elf) |
303 | ;; | |
894a47b4 | 304 | fr30-*-elf) |
305 | ;; | |
306 | frv-*-elf) | |
307 | ;; | |
308 | frv-*-*linux*) | |
309 | ;; | |
894a47b4 | 310 | h8300-*-rtems*) |
311 | ;; | |
312 | h8300-*-elf*) | |
313 | ;; | |
6af9f7ea | 314 | hppa*64*-*-linux*) |
894a47b4 | 315 | ;; |
6af9f7ea | 316 | hppa*-*-linux*) |
01cb8ad1 | 317 | md_unwind_header=pa/linux-unwind.h |
894a47b4 | 318 | ;; |
319 | hppa[12]*-*-hpux10*) | |
1e53920f | 320 | md_unwind_header=pa/hpux-unwind.h |
894a47b4 | 321 | ;; |
322 | hppa*64*-*-hpux11*) | |
1e53920f | 323 | md_unwind_header=pa/hpux-unwind.h |
894a47b4 | 324 | ;; |
325 | hppa[12]*-*-hpux11*) | |
1e53920f | 326 | md_unwind_header=pa/hpux-unwind.h |
894a47b4 | 327 | ;; |
328 | i[34567]86-*-darwin*) | |
329 | ;; | |
330 | x86_64-*-darwin*) | |
331 | tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin" | |
332 | ;; | |
333 | i[34567]86-*-elf*) | |
334 | ;; | |
cc8ebe39 | 335 | x86_64-*-elf*) |
336 | ;; | |
894a47b4 | 337 | i[34567]86-*-freebsd*) |
278afeb5 | 338 | tmake_file="${tmake_file} i386/t-freebsd" |
894a47b4 | 339 | ;; |
340 | x86_64-*-freebsd*) | |
278afeb5 | 341 | tmake_file="${tmake_file} i386/t-freebsd" |
894a47b4 | 342 | ;; |
343 | i[34567]86-*-netbsdelf*) | |
344 | ;; | |
894a47b4 | 345 | x86_64-*-netbsd*) |
346 | ;; | |
347 | i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) | |
348 | ;; | |
349 | i[34567]86-*-openbsd*) | |
350 | ;; | |
1e53920f | 351 | i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu) |
6d057ce8 | 352 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
353 | tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" | |
1e53920f | 354 | md_unwind_header=i386/linux-unwind.h |
894a47b4 | 355 | ;; |
356 | x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu) | |
6d057ce8 | 357 | extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
358 | tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" | |
1e53920f | 359 | md_unwind_header=i386/linux-unwind.h |
894a47b4 | 360 | ;; |
894a47b4 | 361 | i[34567]86-pc-msdosdjgpp*) |
362 | ;; | |
363 | i[34567]86-*-lynxos*) | |
364 | ;; | |
365 | i[3456x]86-*-netware*) | |
366 | case /${with_ld} in | |
367 | */nwld) | |
368 | tmake_file="${tmake_file} i386/t-nwld" | |
369 | ;; | |
370 | esac | |
371 | ;; | |
372 | i[34567]86-*-nto-qnx*) | |
373 | ;; | |
374 | i[34567]86-*-rtems*) | |
63abf89e | 375 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
376 | tmake_file="${tmake_file} t-crtin i386/t-softfp i386/t-crtstuff t-rtems" | |
894a47b4 | 377 | ;; |
894a47b4 | 378 | i[34567]86-*-solaris2*) |
43ae7603 | 379 | tmake_file="$tmake_file i386/t-crtfm" |
380 | extra_parts="$extra_parts crtfastmath.o" | |
1e53920f | 381 | md_unwind_header=i386/sol2-unwind.h |
894a47b4 | 382 | ;; |
894a47b4 | 383 | i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae) |
384 | ;; | |
1e53920f | 385 | i[34567]86-*-cygwin*) |
9e51385b | 386 | extra_parts="crtbegin.o crtend.o crtfastmath.o" |
387 | tmake_file="i386/t-cygming i386/t-crtfm" | |
8f433c51 | 388 | ;; |
1e53920f | 389 | i[34567]86-*-mingw*) |
390 | extra_parts="crtbegin.o crtend.o crtfastmath.o" | |
391 | tmake_file="i386/t-cygming i386/t-crtfm" | |
392 | md_unwind_header=i386/w32-unwind.h | |
393 | ;; | |
8f433c51 | 394 | x86_64-*-mingw*) |
894a47b4 | 395 | ;; |
894a47b4 | 396 | i[34567]86-*-interix3*) |
397 | ;; | |
894a47b4 | 398 | ia64*-*-elf*) |
75612461 | 399 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" |
400 | tmake_file="ia64/t-ia64" | |
894a47b4 | 401 | ;; |
402 | ia64*-*-freebsd*) | |
279dadf5 | 403 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" |
404 | tmake_file="ia64/t-ia64" | |
894a47b4 | 405 | ;; |
406 | ia64*-*-linux*) | |
407 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" | |
24200b28 | 408 | tmake_file="ia64/t-ia64 t-softfp ia64/t-fprules-softfp ia64/t-softfp-compat" |
1e53920f | 409 | md_unwind_header=ia64/linux-unwind.h |
894a47b4 | 410 | ;; |
411 | ia64*-*-hpux*) | |
412 | ;; | |
9b9a2528 | 413 | ia64-hp-*vms*) |
414 | tmake_file="vms/t-vms vms/t-vms64 ia64/t-vms" | |
1e53920f | 415 | md_unwind_header=ia64/vms-unwind.h |
9b9a2528 | 416 | ;; |
894a47b4 | 417 | iq2000*-*-elf*) |
418 | ;; | |
432dd419 | 419 | lm32-*-elf*|lm32-*-rtems*) |
f6fe91e8 | 420 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
421 | tmake_file="lm32/t-lm32 lm32/t-elf t-softfp" | |
422 | ;; | |
423 | lm32-*-uclinux*) | |
424 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" | |
425 | tmake_file="lm32/t-lm32 lm32/t-uclinux t-softfp" | |
426 | ;; | |
b8138586 | 427 | m32r-*-elf*|m32r-*-rtems*) |
894a47b4 | 428 | ;; |
429 | m32rle-*-elf*) | |
430 | ;; | |
431 | m32r-*-linux*) | |
432 | ;; | |
433 | m32rle-*-linux*) | |
434 | ;; | |
6af9f7ea | 435 | m68k-*-elf*) |
894a47b4 | 436 | ;; |
6af9f7ea | 437 | m68k*-*-netbsdelf*) |
894a47b4 | 438 | ;; |
439 | m68k*-*-openbsd*) | |
440 | ;; | |
441 | m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc | |
1e53920f | 442 | md_unwind_header=m68k/linux-unwind.h |
894a47b4 | 443 | ;; |
1e53920f | 444 | m68k-*-linux*) # Motorola m68k's running GNU/Linux |
894a47b4 | 445 | # with ELF format using glibc 2 |
446 | # aka the GNU/Linux C library 6. | |
1e53920f | 447 | md_unwind_header=m68k/linux-unwind.h |
894a47b4 | 448 | ;; |
449 | m68k-*-rtems*) | |
450 | ;; | |
451 | mcore-*-elf) | |
452 | ;; | |
d34b0d1e | 453 | microblaze*-*-*) |
454 | tmake_file="microblaze/t-microblaze" | |
455 | ;; | |
8087ae75 | 456 | mips-sgi-irix6.5*) |
ee884cfb | 457 | tmake_file="mips/t-irix6 t-crtfm t-slibgcc mips/t-slibgcc-irix" |
458 | extra_parts="crtbegin.o crtend.o crtfastmath.o irix-crti.o irix-crtn.o" | |
adf7c0a1 | 459 | md_unwind_header=mips/irix6-unwind.h |
894a47b4 | 460 | ;; |
461 | mips*-*-netbsd*) # NetBSD/mips, either endian. | |
462 | ;; | |
463 | mips64*-*-linux*) | |
283681bb | 464 | extra_parts="$extra_parts crtfastmath.o" |
ee884cfb | 465 | tmake_file="{$tmake_file} t-crtfm" |
1e53920f | 466 | md_unwind_header=mips/linux-unwind.h |
894a47b4 | 467 | ;; |
468 | mips*-*-linux*) # Linux MIPS, either endian. | |
283681bb | 469 | extra_parts="$extra_parts crtfastmath.o" |
ee884cfb | 470 | tmake_file="{$tmake_file} t-crtfm" |
1e53920f | 471 | md_unwind_header=mips/linux-unwind.h |
894a47b4 | 472 | ;; |
473 | mips*-*-openbsd*) | |
474 | ;; | |
475 | mipsisa32-*-elf* | mipsisa32el-*-elf*) | |
476 | ;; | |
477 | mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*) | |
478 | ;; | |
479 | mipsisa64-*-elf* | mipsisa64el-*-elf*) | |
480 | ;; | |
77a32a8e | 481 | mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*) |
482 | ;; | |
894a47b4 | 483 | mipsisa64sr71k-*-elf*) |
484 | ;; | |
485 | mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*) | |
486 | ;; | |
487 | mips-*-elf* | mipsel-*-elf*) | |
488 | ;; | |
489 | mips64-*-elf* | mips64el-*-elf*) | |
490 | ;; | |
491 | mips64vr-*-elf* | mips64vrel-*-elf*) | |
492 | ;; | |
493 | mips64orion-*-elf* | mips64orionel-*-elf*) | |
494 | ;; | |
495 | mips*-*-rtems*) | |
496 | ;; | |
497 | mips-wrs-vxworks) | |
498 | ;; | |
894a47b4 | 499 | mipstx39-*-elf* | mipstx39el-*-elf*) |
500 | ;; | |
501 | mmix-knuth-mmixware) | |
8525326e | 502 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
503 | tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}" | |
894a47b4 | 504 | ;; |
505 | mn10300-*-*) | |
506 | ;; | |
be52b6d8 | 507 | moxie-*-*) |
00301a1a | 508 | tmake_file="moxie/t-moxie moxie/t-moxie-softfp" |
be52b6d8 | 509 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
510 | ;; | |
894a47b4 | 511 | pdp11-*-*) |
512 | ;; | |
8372e9ea | 513 | picochip-*-*) |
514 | ;; | |
894a47b4 | 515 | powerpc-*-darwin*) |
1e53920f | 516 | case ${host} in |
517 | *-*-darwin9* | *-*-darwin[12][0-9]*) | |
518 | # libSystem contains unwind information for signal frames since | |
519 | # Darwin 9. | |
520 | ;; | |
521 | *) | |
522 | md_unwind_header=rs6000/darwin-unwind.h | |
523 | ;; | |
524 | esac | |
894a47b4 | 525 | ;; |
526 | powerpc64-*-darwin*) | |
527 | ;; | |
95525c17 | 528 | powerpc-*-freebsd*) |
529 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-freebsd t-softfp" | |
894a47b4 | 530 | ;; |
531 | powerpc-*-netbsd*) | |
532 | ;; | |
894a47b4 | 533 | powerpc-*-eabispe*) |
952bf8bb | 534 | tmake_file="${tmake_file} rs6000/t-ppccomm" |
894a47b4 | 535 | ;; |
536 | powerpc-*-eabisimaltivec*) | |
537 | ;; | |
538 | powerpc-*-eabisim*) | |
539 | ;; | |
540 | powerpc-*-elf*) | |
541 | ;; | |
542 | powerpc-*-eabialtivec*) | |
543 | ;; | |
544 | powerpc-*-eabi*) | |
952bf8bb | 545 | tmake_file="${tmake_file} rs6000/t-ppccomm" |
894a47b4 | 546 | ;; |
547 | powerpc-*-rtems*) | |
548 | ;; | |
4e5e2802 | 549 | powerpc-*-linux* | powerpc64-*-linux*) |
5790f80a | 550 | tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128 t-softfp" |
1e53920f | 551 | md_unwind_header=rs6000/linux-unwind.h |
894a47b4 | 552 | ;; |
894a47b4 | 553 | powerpc-wrs-vxworks|powerpc-wrs-vxworksae) |
554 | ;; | |
894a47b4 | 555 | powerpc-*-lynxos*) |
556 | ;; | |
894a47b4 | 557 | powerpcle-*-elf*) |
558 | ;; | |
559 | powerpcle-*-eabisim*) | |
560 | ;; | |
561 | powerpcle-*-eabi*) | |
562 | ;; | |
894a47b4 | 563 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
564 | ;; | |
565 | rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*) | |
566 | ;; | |
567 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
568 | ;; | |
24833e1a | 569 | rx-*-elf) |
570 | extra_parts="crtbegin.o crtend.o" | |
571 | tmake_file="rx/t-rx" | |
572 | ;; | |
894a47b4 | 573 | s390-*-linux*) |
e38fe738 | 574 | tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi" |
1e53920f | 575 | md_unwind_header=s390/linux-unwind.h |
894a47b4 | 576 | ;; |
577 | s390x-*-linux*) | |
e38fe738 | 578 | tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux" |
1e53920f | 579 | md_unwind_header=s390/linux-unwind.h |
894a47b4 | 580 | ;; |
581 | s390x-ibm-tpf*) | |
e38fe738 | 582 | tmake_file="${tmake_file} s390/t-crtstuff s390/t-tpf" |
f9cccfac | 583 | md_unwind_header=s390/tpf-unwind.h |
894a47b4 | 584 | ;; |
585 | score-*-elf) | |
586 | ;; | |
6af9f7ea | 587 | sh-*-elf* | sh[12346l]*-*-elf* | \ |
ccf1c0f1 | 588 | sh-*-linux* | sh[2346lbe]*-*-linux* | \ |
894a47b4 | 589 | sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ |
590 | sh64-*-netbsd* | sh64l*-*-netbsd*) | |
97f1a704 | 591 | case ${host} in |
592 | sh*-*-linux*) | |
593 | tmake_file="${tmake_file} sh/t-linux" | |
73956a0d | 594 | md_unwind_header=sh/linux-unwind.h |
97f1a704 | 595 | ;; |
596 | esac | |
894a47b4 | 597 | ;; |
894a47b4 | 598 | sh-*-rtems*) |
599 | ;; | |
600 | sh-wrs-vxworks) | |
601 | ;; | |
894a47b4 | 602 | sparc-*-netbsdelf*) |
603 | ;; | |
604 | sparc64-*-openbsd*) | |
605 | ;; | |
606 | sparc-*-elf*) | |
63abf89e | 607 | case ${host} in |
608 | *-leon[3-9]*) | |
609 | ;; | |
610 | *) | |
611 | tmake_file="sparc/t-softmul" | |
612 | ;; | |
613 | esac | |
614 | tmake_file="${tmake_file} sparc/t-softfp t-crtin t-crtfm" | |
615 | extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o" | |
894a47b4 | 616 | ;; |
617 | sparc-*-linux*) # SPARC's running GNU/Linux, libc6 | |
618 | extra_parts="$extra_parts crtfastmath.o" | |
63abf89e | 619 | tmake_file="${tmake_file} t-crtfm" |
f9cccfac | 620 | md_unwind_header=sparc/linux-unwind.h |
894a47b4 | 621 | ;; |
41d8444c | 622 | sparc-*-rtems* | sparc64-*-rtems* ) |
63abf89e | 623 | tmake_file="sparc/t-elf t-crtin t-crtfm t-rtems" |
624 | extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o" | |
894a47b4 | 625 | ;; |
63abf89e | 626 | sparc*-*-solaris2*) |
627 | tmake_file="$tmake_file t-crtfm" | |
628 | extra_parts="$extra_parts crtfastmath.o" | |
1e53920f | 629 | md_unwind_header=sparc/sol2-unwind.h |
894a47b4 | 630 | ;; |
894a47b4 | 631 | sparc64-*-elf*) |
63abf89e | 632 | tmake_file="${tmake_file} t-crtin t-crtfm" |
633 | extra_parts="crtbegin.o crtend.o crti.o crtn.o crtfastmath.o" | |
894a47b4 | 634 | ;; |
723e1902 | 635 | sparc-wrs-vxworks) |
636 | ;; | |
894a47b4 | 637 | sparc64-*-freebsd*|ultrasparc-*-freebsd*) |
638 | ;; | |
639 | sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux | |
640 | extra_parts="$extra_parts crtfastmath.o" | |
63abf89e | 641 | tmake_file="${tmake_file} t-crtfm" |
1e53920f | 642 | md_unwind_header=sparc/linux-unwind.h |
894a47b4 | 643 | ;; |
644 | sparc64-*-netbsd*) | |
645 | ;; | |
646 | spu-*-elf*) | |
647 | ;; | |
894a47b4 | 648 | v850e1-*-*) |
649 | ;; | |
650 | v850e-*-*) | |
651 | ;; | |
652 | v850-*-*) | |
653 | ;; | |
63bfd172 | 654 | vax-*-linux*) |
655 | ;; | |
894a47b4 | 656 | vax-*-netbsdelf*) |
657 | ;; | |
894a47b4 | 658 | vax-*-openbsd*) |
659 | ;; | |
894a47b4 | 660 | xstormy16-*-elf) |
661 | ;; | |
75c7ffbc | 662 | xtensa*-*-elf*) |
894a47b4 | 663 | ;; |
75c7ffbc | 664 | xtensa*-*-linux*) |
1e53920f | 665 | md_unwind_header=xtensa/linux-unwind.h |
894a47b4 | 666 | ;; |
667 | am33_2.0-*-linux*) | |
668 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
669 | ;; | |
7eac0a4e | 670 | m32c-*-elf*|m32c-*-rtems*) |
894a47b4 | 671 | ;; |
46222c18 | 672 | mep*-*-*) |
673 | ;; | |
894a47b4 | 674 | *) |
675 | echo "*** Configuration ${host} not supported" 1>&2 | |
676 | exit 1 | |
677 | ;; | |
678 | esac | |
e4cbe54f | 679 | |
680 | case ${host} in | |
1eab96a6 | 681 | i[34567]86-*-linux* | x86_64-*-linux* | \ |
682 | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | \ | |
683 | i[34567]86-*-gnu*) | |
c9b3ebc5 | 684 | tmake_file="${tmake_file} t-tls" |
685 | if test "$libgcc_cv_cfi" = "yes"; then | |
f2d9def0 | 686 | tmake_file="${tmake_file} t-stack i386/t-stack-i386" |
c9b3ebc5 | 687 | fi |
e4cbe54f | 688 | ;; |
689 | esac | |
b3fd46a0 | 690 | |
691 | case ${host} in | |
692 | i[34567]86-*-darwin* | x86_64-*-darwin* | \ | |
09ec66c8 | 693 | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \ |
6471e33b | 694 | i[34567]86-*-linux* | x86_64-*-linux* | \ |
8a84c748 | 695 | i[34567]86-*-gnu* | \ |
20be3c56 | 696 | i[34567]86-*-solaris2* | \ |
278afeb5 | 697 | i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \ |
698 | i[34567]86-*-freebsd* | x86_64-*-freebsd*) | |
144633f4 | 699 | if test "${host_address}" = 32; then |
f2b540ae | 700 | tmake_file="${tmake_file} t-softfp i386/${host_address}/t-fprules-softfp" |
144633f4 | 701 | fi |
702 | ;; | |
703 | esac | |
704 | ||
705 | case ${host} in | |
706 | i[34567]86-*-linux* | x86_64-*-linux*) | |
707 | # Provide backward binary compatibility for 64bit Linux/x86. | |
708 | if test "${host_address}" = 64; then | |
709 | tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat" | |
710 | fi | |
b3fd46a0 | 711 | ;; |
712 | esac |