]>
Commit | Line | Data |
---|---|---|
61ed06c3 | 1 | # GCC build-, host- and target-specific configuration file. |
e428b937 | 2 | # Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. |
61ed06c3 HPN |
3 | |
4 | #This file is part of GNU CC. | |
5 | ||
6 | #GNU CC is free software; you can redistribute it and/or modify | |
7 | #it under the terms of the GNU General Public License as published by | |
8 | #the Free Software Foundation; either version 2, or (at your option) | |
9 | #any later version. | |
10 | ||
11 | #GNU CC is distributed in the hope that it will be useful, | |
12 | #but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | #GNU General Public License for more details. | |
15 | ||
16 | #You should have received a copy of the GNU General Public License | |
17 | #along with GNU CC; see the file COPYING. If not, write to | |
18 | #the Free Software Foundation, 59 Temple Place - Suite 330, | |
19 | #Boston, MA 02111-1307, USA. | |
20 | ||
21 | # This is the GCC build-, host- and target-specific configuration file | |
22 | # where a configuration type, as recognized and generated by config.bfd, | |
23 | # is mapped to different system-specific definitions and files. This is | |
24 | # invoked by the autoconf-generated configure script, called for build, | |
25 | # host and target in that order, setting ${machine} to each. Putting it | |
26 | # in a separate shell file lets us skip running autoconf when modifying | |
27 | # build-, host- and target-specific information. | |
28 | ||
29 | # This file switches on the shell variable ${machine}, and also uses the | |
30 | # following shell variables: | |
31 | # | |
32 | # with_* Various variables as set by configure. | |
33 | # | |
34 | # enable_threads_flag Either the name, yes or no depending on whether | |
35 | # threads support was requested. | |
36 | # | |
37 | # gas_flag Either yes or no depending on whether GNU as was | |
38 | # requested. | |
39 | # | |
40 | # gnu_ld_flag Either yes or no depending on whether GNU ld was | |
41 | # requested. | |
42 | ||
43 | # This file sets the following shell variables for use by the | |
44 | # autoconf-generated configure script: | |
45 | # | |
46 | # cpu_type The name of the cpu, if different from machine. | |
47 | # | |
48 | # tm_file A list of target macro files, if different from | |
49 | # "$cpu_type/$cpu_type.h". | |
50 | # | |
51 | # tm_p_file Location of file with declarations for functions | |
52 | # in $out_file. | |
53 | # | |
54 | # out_file The name of the machine description C support | |
55 | # file, if different from "$cpu_type/$cpu_type.c". | |
56 | # | |
57 | # md_file The name of the machine-description file, if | |
58 | # different from "$cpu_type/$cpu_type.md". | |
59 | # | |
60 | # tmake_file A list of machine-description-specific | |
61 | # makefile-fragments, if different from | |
62 | # "$cpu_type/t-$cpu_type". | |
63 | # | |
64 | # float_format Set to the symbolic name for the floating-point | |
65 | # formats used for this machine, if different from | |
66 | # "i64". Used to derive a header file name to | |
67 | # include, like "vax" for "float-vax.h". If no such | |
68 | # file is wanted, set to "none". | |
69 | # | |
70 | # extra_objs List of extra objects that should be linked into | |
71 | # the compiler proper (cc1, cc1obj, cc1plus) | |
72 | # depending on target. | |
73 | # | |
74 | # extra_headers List of used header files from the directory | |
75 | # ginclude. | |
76 | # | |
77 | # host_xmake_file List of host-specific makefile-fragments. | |
78 | # | |
79 | # extra_passes List of extra executables compiled for this target | |
80 | # machine, used for compiling from source to object. | |
81 | # | |
82 | # extra_parts List of extra object files that should be compiled | |
83 | # for this target machine. | |
84 | # | |
85 | # extra_programs Like extra_passes, but these are used when linking. | |
86 | # | |
87 | # host_extra_objs List of extra host-dependant objects that should | |
88 | # be linked into the compiler proper. | |
89 | # | |
61ed06c3 HPN |
90 | # host_extra_gcc_objs List of extra host-dependant objects that should |
91 | # be linked into the gcc driver. | |
92 | # | |
aac69a49 NC |
93 | # c_target_objs List of extra target-dependant objects that be |
94 | # linked into the C compiler only. | |
95 | # | |
96 | # cxx_target_objs List of extra target-dependant objects that be | |
97 | # linked into the C++ compiler only. | |
98 | # | |
61ed06c3 HPN |
99 | # build_xm_defines List of macros to define when compiling for the |
100 | # build machine. | |
101 | # | |
102 | # build_xm_file List of files to include when compiling for the | |
103 | # build machine. | |
104 | # | |
105 | # host_xm_defines List of macros to define when compiling for the | |
106 | # host machine. | |
107 | # | |
108 | # host_xm_file List of files to include when compiling for the | |
109 | # host machine. | |
110 | # | |
111 | # xm_defines List of macros to define when compiling for the | |
112 | # target machine. | |
113 | # | |
114 | # xm_file List of files to include when compiling for the | |
115 | # target machine. | |
116 | # | |
117 | # use_collect2 Set to yes or no, depending on whether collect2 | |
118 | # will be used. | |
119 | # | |
120 | # target_cpu_default Set to override the default target model. | |
121 | # | |
122 | # build_install_headers_dir | |
123 | # Target to use when installing header files. | |
124 | # | |
61ed06c3 HPN |
125 | # host_truncate_target |
126 | # Non-empty if the target name should be truncated | |
127 | # on this host, due to filename length issues. | |
128 | # | |
129 | # gdb_needs_out_file_path | |
130 | # Set to yes if gdb needs a dir command with | |
131 | # `dirname $out_file`. | |
132 | # | |
133 | # build_exeext Set to the suffix, if the build machine requires | |
134 | # executables to have a file name suffix. | |
135 | # | |
136 | # host_exeext Set to the suffix, if the host machine requires | |
137 | # executables to have a file name suffix. | |
138 | # | |
139 | # thread_file Set to control which thread package to use. | |
140 | # | |
141 | # gas Set to yes or no depending on whether the target | |
142 | # system normally uses GNU as. | |
143 | ||
144 | # The following variables are used in each case-construct to build up the | |
145 | # outgoing variables: | |
146 | # | |
147 | # xmake_file Makefile-fragment when this system is as a host, | |
148 | # for host_xmake_file. | |
149 | # | |
150 | # extra_host_objs List of extra objects that should be linked into | |
151 | # the compiler proper when this system is a host, | |
152 | # for host_extra_objs. | |
153 | # | |
154 | # install_headers_dir Makefile-target for how the header file directory | |
155 | # is installed, when this system is a build system, | |
156 | # for build_install_headers_dir. | |
157 | # | |
158 | # truncate_target Non-empty if the target name should be truncated | |
159 | # when this system is a host, due to filename length | |
160 | # issues. For host_truncate_target. | |
161 | # | |
162 | # exeext The suffix for executables on this system. | |
163 | # | |
164 | # gnu_ld Set to yes or no depending on whether the target | |
165 | # system normally uses GNU ld. | |
166 | ||
167 | out_file= | |
168 | xmake_file= | |
169 | tmake_file= | |
170 | extra_headers= | |
171 | extra_passes= | |
172 | extra_parts= | |
173 | extra_programs= | |
174 | extra_objs= | |
175 | extra_host_objs= | |
176 | extra_gcc_objs= | |
aac69a49 NC |
177 | c_target_objs= |
178 | cxx_target_objs= | |
61ed06c3 HPN |
179 | xm_defines= |
180 | float_format= | |
181 | # Set this to force installation and use of collect2. | |
182 | use_collect2= | |
183 | # Set this to override the default target model. | |
184 | target_cpu_default= | |
185 | # Set this to control how the header file directory is installed. | |
186 | install_headers_dir=install-headers-tar | |
61ed06c3 HPN |
187 | # Set this if directory names should be truncated to 14 characters. |
188 | truncate_target= | |
189 | # Set this if gdb needs a dir command with `dirname $out_file` | |
190 | gdb_needs_out_file_path= | |
191 | # Set this if the build machine requires executables to have a | |
192 | # file name suffix. | |
193 | exeext= | |
194 | # Set this to control which thread package will be used. | |
195 | thread_file= | |
196 | # Reinitialize these from the flag values every loop pass, since some | |
197 | # configure entries modify them. | |
198 | gas="$gas_flag" | |
199 | gnu_ld="$gnu_ld_flag" | |
200 | enable_threads=$enable_threads_flag | |
201 | ||
202 | # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be | |
203 | # updated in each machine entry. | |
204 | tm_p_file= | |
205 | cpu_type=`echo $machine | sed 's/-.*$//'` | |
206 | case $machine in | |
207 | alpha*-*-*) | |
208 | cpu_type=alpha | |
209 | ;; | |
210 | strongarm*-*-*) | |
211 | cpu_type=arm | |
212 | ;; | |
213 | arm*-*-*) | |
214 | cpu_type=arm | |
215 | ;; | |
d19fb8e3 NC |
216 | xscale-*-*) |
217 | cpu_type=arm | |
218 | ;; | |
61ed06c3 HPN |
219 | c*-convex-*) |
220 | cpu_type=convex | |
221 | ;; | |
222 | i[34567]86-*-*) | |
223 | cpu_type=i386 | |
224 | ;; | |
c21a2372 | 225 | hppa*-*-* | parisc*-*-*) |
61ed06c3 HPN |
226 | cpu_type=pa |
227 | ;; | |
228 | m68000-*-*) | |
229 | cpu_type=m68k | |
230 | ;; | |
231 | mips*-*-*) | |
232 | cpu_type=mips | |
233 | ;; | |
234 | pj*-*-*) | |
235 | cpu_type=pj | |
236 | ;; | |
237 | powerpc*-*-*) | |
238 | cpu_type=rs6000 | |
239 | ;; | |
61ed06c3 HPN |
240 | sparc*-*-*) |
241 | cpu_type=sparc | |
242 | ;; | |
243 | esac | |
244 | ||
245 | tm_file=${cpu_type}/${cpu_type}.h | |
b6d7afec | 246 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h |
61ed06c3 | 247 | then |
b6d7afec ZW |
248 | tm_p_file=${cpu_type}/${cpu_type}-protos.h |
249 | fi | |
250 | if test -f ${srcdir}/config/${cpu_type}/x-${cpu_type} | |
251 | then | |
252 | xmake_file=${cpu_type}/x-${cpu_type} | |
61ed06c3 HPN |
253 | fi |
254 | # On a.out targets, we need to use collect2. | |
255 | case $machine in | |
256 | *-*-*aout*) | |
257 | use_collect2=yes | |
258 | ;; | |
259 | esac | |
260 | ||
5eeab2e3 | 261 | # Common parts for GNU/Linux, GNU/Hurd and OpenBSD systems. |
61ed06c3 HPN |
262 | case $machine in |
263 | *-*-linux*) | |
9e9b9afe | 264 | xm_defines="POSIX" |
61ed06c3 | 265 | ;; |
5eeab2e3 MK |
266 | *-*-gnu*) |
267 | # On the Hurd, the setup is just about the same on | |
268 | # each different CPU. The specific machines that we | |
269 | # support are matched above and just set $cpu_type. | |
b19a539e | 270 | xm_defines=POSIX |
f6e0c56c | 271 | tm_file="${cpu_type}/gnu.h" |
5eeab2e3 MK |
272 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
273 | # GNU always uses ELF. | |
274 | elf=yes | |
275 | # GNU tools are the only tools. | |
276 | gnu_ld=yes | |
277 | gas=yes | |
278 | # These details are the same as for Linux. | |
279 | xmake_file=x-linux | |
280 | # But here we need a little extra magic. | |
281 | tmake_file="t-linux t-gnu" | |
f6e0c56c DB |
282 | case $machine in |
283 | i[34567]86-*-*) | |
284 | tm_file="${cpu_type}/${cpu_type}.h i386/att.h linux.h i386/linux.h gnu.h ${tm_file}" | |
285 | ;; | |
286 | mips*-*-*) | |
287 | tm_file="svr4.h ${cpu_type}/${cpu_type}.h ${tm_file}" | |
288 | ;; | |
289 | esac | |
5eeab2e3 | 290 | ;; |
61ed06c3 HPN |
291 | *-*-openbsd*) |
292 | tm_file=${cpu_type}/openbsd.h | |
293 | tmake_file="t-libc-ok t-openbsd" | |
b19a539e | 294 | xm_defines=POSIX |
61ed06c3 | 295 | # don't depend on processor x-fragments as well |
b6d7afec | 296 | xmake_file= |
61ed06c3 HPN |
297 | if test x$enable_threads = xyes; then |
298 | thread_file='posix' | |
299 | tmake_file="${tmake_file} t-openbsd-thread" | |
300 | fi | |
301 | ;; | |
302 | esac | |
303 | ||
304 | case $machine in | |
305 | # Support site-specific machine types. | |
306 | *local*) | |
61ed06c3 | 307 | rest=`echo $machine | sed -e "s/$cpu_type-//"` |
61ed06c3 | 308 | tm_file=${cpu_type}/$rest.h |
4dc0535b ZW |
309 | if test -f $srcdir/config/${cpu_type}/xm-$rest.h |
310 | then xm_file=${cpu_type}/xm-$rest.h | |
61ed06c3 | 311 | fi |
4dc0535b ZW |
312 | if test -f $srcdir/config/${cpu_type}/x-$rest |
313 | then xmake_file=${cpu_type}/x-$rest | |
314 | fi | |
315 | if test -f $srcdir/config/${cpu_type}/t-$rest | |
316 | then tmake_file=${cpu_type}/t-$rest | |
61ed06c3 HPN |
317 | fi |
318 | ;; | |
319 | 1750a-*-*) | |
db009825 ZW |
320 | # 1750a is only supported as a target. |
321 | case "$build,$host" in 1750a*,* | *,1750a* ) | |
322 | echo "*** $machine is only supported as a target" >&2 | |
323 | exit 1 | |
324 | esac | |
61ed06c3 HPN |
325 | ;; |
326 | a29k-*-bsd* | a29k-*-sym1*) | |
327 | tm_file="${tm_file} a29k/unix.h" | |
328 | xm_defines=USG | |
329 | xmake_file=a29k/x-unix | |
330 | use_collect2=yes | |
331 | ;; | |
332 | a29k-*-udi | a29k-*-coff) | |
333 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
334 | tmake_file=a29k/t-a29kbare | |
335 | ;; | |
bc98ef7f JS |
336 | a29k*-*-rtems*) |
337 | tm_file=a29k/rtems.h | |
338 | tmake_file="a29k/t-a29kbare t-rtems" | |
339 | if test x$enable_threads = xyes; then | |
340 | thread_file='rtems' | |
341 | fi | |
342 | ;; | |
61ed06c3 HPN |
343 | a29k-wrs-vxworks*) |
344 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" | |
345 | tmake_file=a29k/t-vx29k | |
346 | extra_parts="crtbegin.o crtend.o" | |
347 | thread_file='vxworks' | |
348 | ;; | |
349 | a29k-*-*) # Default a29k environment. | |
350 | use_collect2=yes | |
351 | ;; | |
352 | alpha-*-interix) | |
353 | tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h" | |
354 | ||
355 | # GAS + IEEE_CONFORMANT+IEEE (no inexact); | |
356 | #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE" | |
357 | ||
358 | # GAS + IEEE_CONFORMANT | |
359 | target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT" | |
360 | ||
cf30ef80 | 361 | xm_defines=USG |
75e93faa | 362 | xm_file="alpha/xm-alpha-interix.h xm-interix.h" |
db009825 | 363 | xmake_file=x-interix |
61ed06c3 HPN |
364 | tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee" |
365 | if test x$enable_threads = xyes ; then | |
366 | thread_file='posix' | |
367 | fi | |
368 | if test x$stabs = xyes ; then | |
369 | tm_file="${tm_file} dbxcoff.h" | |
370 | fi | |
371 | #prefix='$$INTERIX_ROOT'/usr/contrib | |
372 | #local_prefix='$$INTERIX_ROOT'/usr/contrib | |
373 | ;; | |
374 | alpha*-*-linux*ecoff*) | |
b19a539e | 375 | xm_defines=POSIX |
61ed06c3 HPN |
376 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" |
377 | target_cpu_default="MASK_GAS" | |
378 | tmake_file="alpha/t-alpha alpha/t-ieee" | |
379 | gas=no | |
61ed06c3 HPN |
380 | gas=yes gnu_ld=yes |
381 | ;; | |
382 | alpha*-*-linux*libc1*) | |
383 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" | |
384 | target_cpu_default="MASK_GAS" | |
385 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee" | |
386 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
61ed06c3 HPN |
387 | gas=yes gnu_ld=yes |
388 | if test x$enable_threads = xyes; then | |
389 | thread_file='posix' | |
390 | fi | |
391 | ;; | |
392 | alpha*-*-linux*) | |
393 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" | |
394 | target_cpu_default="MASK_GAS" | |
395 | tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee" | |
396 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
61ed06c3 HPN |
397 | gas=yes gnu_ld=yes |
398 | if test x$enable_threads = xyes; then | |
399 | thread_file='posix' | |
400 | fi | |
401 | ;; | |
402 | alpha*-*-freebsd*) | |
b19a539e | 403 | xm_defines=POSIX |
61ed06c3 HPN |
404 | tm_file="${tm_file} freebsd.h alpha/elf.h alpha/freebsd.h" |
405 | target_cpu_default="MASK_GAS" | |
406 | tmake_file="t-freebsd alpha/t-crtbe alpha/t-alpha alpha/t-ieee" | |
407 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
61ed06c3 HPN |
408 | gas=yes gnu_ld=yes |
409 | stabs=yes | |
410 | case x${enable_threads} in | |
411 | xyes | xpthreads | xposix) | |
412 | thread_file='posix' | |
413 | tmake_file="${tmake_file} t-freebsd-thread" | |
414 | ;; | |
415 | esac | |
416 | ;; | |
417 | alpha*-*-netbsd*) | |
b19a539e | 418 | xm_defines=POSIX |
61ed06c3 HPN |
419 | tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h" |
420 | target_cpu_default="MASK_GAS" | |
421 | tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee" | |
422 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
61ed06c3 HPN |
423 | gas=yes gnu_ld=yes |
424 | ;; | |
425 | ||
426 | alpha*-*-openbsd*) | |
427 | # default x-alpha is only appropriate for dec-osf. | |
428 | target_cpu_default="MASK_GAS" | |
429 | tmake_file="alpha/t-alpha alpha/t-ieee" | |
430 | ;; | |
431 | ||
432 | alpha*-dec-osf*) | |
b19a539e | 433 | xm_defines=POSIX |
61ed06c3 HPN |
434 | if test x$stabs = xyes |
435 | then | |
436 | tm_file="${tm_file} dbx.h" | |
437 | fi | |
438 | if test x$gas != xyes | |
439 | then | |
440 | extra_passes="mips-tfile mips-tdump" | |
441 | fi | |
442 | use_collect2=yes | |
443 | tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf" | |
444 | xmake_file=alpha/x-osf | |
445 | case $machine in | |
446 | *-*-osf1*) | |
447 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" | |
448 | ;; | |
449 | *-*-osf[23]*) | |
450 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" | |
451 | ;; | |
452 | *-*-osf4*) | |
453 | tm_file="${tm_file} alpha/osf.h" | |
454 | tmake_file="$tmake_file alpha/t-osf4" | |
455 | # Some versions of OSF4 (specifically X4.0-9 296.7) have | |
456 | # a broken tar, so we use cpio instead. | |
457 | install_headers_dir=install-headers-cpio | |
458 | ;; | |
459 | *-*-osf5*) | |
460 | tm_file="${tm_file} alpha/osf.h alpha/osf5.h" | |
461 | tmake_file="$tmake_file alpha/t-osf4" | |
c3e5f9fa | 462 | float_format=i128 |
61ed06c3 HPN |
463 | ;; |
464 | esac | |
465 | case $machine in | |
466 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*) | |
467 | target_cpu_default=MASK_SUPPORT_ARCH | |
468 | ;; | |
469 | esac | |
470 | ;; | |
471 | alpha*-*-vxworks*) | |
b19a539e | 472 | xm_defines=POSIX |
61ed06c3 HPN |
473 | tm_file="${tm_file} dbx.h alpha/vxworks.h" |
474 | tmake_file="alpha/t-alpha alpha/t-ieee" | |
475 | if [ x$gas != xyes ] | |
476 | then | |
477 | extra_passes="mips-tfile mips-tdump" | |
478 | fi | |
479 | use_collect2=yes | |
480 | thread_file='vxworks' | |
481 | ;; | |
61ed06c3 | 482 | alpha*-dec-vms*) |
b19a539e | 483 | xm_defines=POSIX |
61ed06c3 | 484 | tm_file=alpha/vms.h |
4dc0535b | 485 | xm_file=alpha/xm-vms.h |
61ed06c3 HPN |
486 | tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee" |
487 | ;; | |
bc98ef7f JS |
488 | arm*-*-rtems*) |
489 | tm_file=arm/rtems-elf.h | |
490 | tmake_file="arm/t-arm-elf t-rtems" | |
491 | if test x$enable_threads = xyes; then | |
492 | thread_file='rtems' | |
493 | fi | |
494 | extra_parts="crtinit.o crtfini.o" | |
495 | ;; | |
61ed06c3 HPN |
496 | arc-*-elf*) |
497 | extra_parts="crtinit.o crtfini.o" | |
498 | ;; | |
499 | arm-*-coff* | armel-*-coff*) | |
500 | tm_file=arm/coff.h | |
501 | tmake_file=arm/t-arm-coff | |
502 | ;; | |
503 | arm-*-vxworks*) | |
504 | tm_file=arm/vxarm.h | |
505 | tmake_file=arm/t-arm-coff | |
506 | thread_file='vxworks' | |
507 | ;; | |
508 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) | |
509 | tm_file=arm/riscix1-1.h | |
510 | use_collect2=yes | |
511 | ;; | |
512 | arm-*-riscix*) # Acorn RISC machine | |
513 | if test x$gas = xyes | |
514 | then | |
515 | tm_file=arm/rix-gas.h | |
516 | else | |
517 | tm_file=arm/riscix.h | |
518 | fi | |
519 | xmake_file=arm/x-riscix | |
520 | tmake_file=arm/t-riscix | |
521 | use_collect2=yes | |
522 | ;; | |
523 | arm-semi-aout | armel-semi-aout) | |
524 | tm_file=arm/semi.h | |
525 | tmake_file=arm/t-semi | |
526 | ;; | |
527 | arm-semi-aof | armel-semi-aof) | |
528 | tm_file=arm/semiaof.h | |
529 | tmake_file=arm/t-semiaof | |
530 | ;; | |
531 | arm*-*-netbsd*) | |
532 | tm_file=arm/netbsd.h | |
533 | tmake_file="t-netbsd arm/t-netbsd" | |
534 | use_collect2=yes | |
535 | ;; | |
14879e76 | 536 | arm*-*-linux*) # ARM GNU/Linux with ELF |
61ed06c3 HPN |
537 | xmake_file=x-linux |
538 | tm_file="arm/linux-elf.h" | |
61ed06c3 HPN |
539 | tmake_file="t-linux arm/t-linux" |
540 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
541 | gnu_ld=yes | |
542 | case x${enable_threads} in | |
543 | x | xyes | xpthreads | xposix) | |
544 | thread_file='posix' | |
545 | ;; | |
546 | esac | |
547 | ;; | |
548 | arm*-*-uclinux*) # ARM ucLinux | |
549 | tm_file=arm/uclinux-elf.h | |
550 | tmake_file=arm/t-arm-elf | |
551 | ;; | |
552 | arm*-*-aout) | |
553 | tm_file=arm/aout.h | |
554 | tmake_file=arm/t-arm-aout | |
555 | ;; | |
556 | arm*-*-ecos-elf) | |
557 | tm_file=arm/ecos-elf.h | |
558 | tmake_file=arm/t-arm-elf | |
559 | ;; | |
560 | arm*-*-elf) | |
561 | tm_file=arm/unknown-elf.h | |
562 | tmake_file=arm/t-arm-elf | |
563 | ;; | |
564 | arm*-*-conix*) | |
565 | tm_file=arm/conix-elf.h | |
566 | tmake_file=arm/t-arm-elf | |
567 | ;; | |
568 | arm*-*-oabi) | |
569 | tm_file=arm/unknown-elf-oabi.h | |
570 | tmake_file=arm/t-arm-elf | |
571 | ;; | |
572 | arm-*-pe*) | |
573 | tm_file=arm/pe.h | |
574 | tmake_file=arm/t-pe | |
575 | extra_objs="pe.o" | |
576 | ;; | |
577 | avr-*-*) | |
578 | ;; | |
579 | c1-convex-*) # Convex C1 | |
580 | target_cpu_default=1 | |
581 | use_collect2=yes | |
582 | ;; | |
583 | c2-convex-*) # Convex C2 | |
584 | target_cpu_default=2 | |
585 | use_collect2=yes | |
586 | ;; | |
587 | c32-convex-*) | |
588 | target_cpu_default=4 | |
589 | use_collect2=yes | |
590 | ;; | |
591 | c34-convex-*) | |
592 | target_cpu_default=8 | |
593 | use_collect2=yes | |
594 | ;; | |
595 | c38-convex-*) | |
596 | target_cpu_default=16 | |
597 | use_collect2=yes | |
598 | ;; | |
bc98ef7f JS |
599 | c4x-*-rtems*) |
600 | cpu_type=c4x | |
601 | tmake_file="c4x/t-c4x t-rtems" | |
602 | tm_file=c4x/rtems.h | |
603 | if test x$enable_threads = xyes; then | |
604 | thread_file='rtems' | |
605 | fi | |
606 | ;; | |
61ed06c3 HPN |
607 | c4x-*) |
608 | cpu_type=c4x | |
609 | float_format=c4x | |
610 | tmake_file=c4x/t-c4x | |
611 | ;; | |
612 | clipper-intergraph-clix*) | |
613 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
cf30ef80 | 614 | xm_defines=USG |
61ed06c3 HPN |
615 | extra_headers=va-clipper.h |
616 | extra_parts="crtbegin.o crtend.o" | |
617 | install_headers_dir=install-headers-cpio | |
618 | ;; | |
619 | d30v-*) | |
620 | float_format=i64 | |
621 | ;; | |
622 | dsp16xx-*) | |
623 | ;; | |
624 | elxsi-elxsi-*) | |
625 | use_collect2=yes | |
626 | ;; | |
627 | fr30-*-elf) | |
628 | tm_file="fr30/fr30.h" | |
629 | tmake_file=fr30/t-fr30 | |
630 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
631 | ;; | |
bc98ef7f JS |
632 | h8300-*-rtems*) |
633 | tmake_file="h8300/t-h8300 t-rtems" | |
634 | tm_file=h8300/rtems.h | |
635 | if test x$enable_threads = xyes; then | |
636 | thread_file='rtems' | |
637 | fi | |
638 | float_format=i32 | |
639 | ;; | |
61ed06c3 HPN |
640 | h8300-*-*) |
641 | float_format=i32 | |
642 | ;; | |
c21a2372 AM |
643 | hppa*64*-*-linux* | parisc*64*-*-linux*) |
644 | target_cpu_default="(MASK_PA_11 | MASK_PA_20)" | |
645 | tm_file="pa/pa64-start.h ${tm_file} linux.h pa/pa-linux.h \ | |
646 | pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h" | |
647 | tmake_file=pa/t-linux64 | |
648 | xmake_file=x-linux | |
649 | gas=yes gnu_ld=yes | |
650 | ;; | |
651 | hppa*-*-linux* | parisc*-*-linux*) | |
652 | target_cpu_default="MASK_PA_11" | |
653 | tm_file="${tm_file} linux.h pa/pa-linux.h \ | |
654 | pa/pa32-regs.h pa/pa32-linux.h" | |
655 | tmake_file=pa/t-linux | |
656 | xmake_file=x-linux | |
657 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
61ed06c3 HPN |
658 | gas=yes gnu_ld=yes |
659 | if test x$enable_threads = xyes; then | |
660 | thread_file='posix' | |
661 | fi | |
662 | ;; | |
663 | hppa*-*-openbsd*) | |
664 | target_cpu_default="MASK_PA_11" | |
e1b71de9 | 665 | tmake_file=pa/t-openbsd |
61ed06c3 | 666 | ;; |
bc98ef7f JS |
667 | hppa1.1-*-rtems*) |
668 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h" | |
bc98ef7f JS |
669 | tmake_file="pa/t-pro t-rtems" |
670 | if test x$enable_threads = xyes; then | |
671 | thread_file='rtems' | |
672 | fi | |
673 | ;; | |
61ed06c3 HPN |
674 | hppa1.1-*-pro*) |
675 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" | |
676 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h" | |
61ed06c3 HPN |
677 | tmake_file=pa/t-pro |
678 | ;; | |
679 | hppa1.1-*-osf*) | |
680 | target_cpu_default="MASK_PA_11" | |
681 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" | |
682 | use_collect2=yes | |
683 | ;; | |
684 | hppa1.1-*-rtems*) | |
685 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" | |
686 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h" | |
61ed06c3 HPN |
687 | tmake_file=pa/t-pro |
688 | ;; | |
689 | hppa1.0-*-osf*) | |
690 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" | |
691 | use_collect2=yes | |
692 | ;; | |
693 | hppa1.1-*-bsd*) | |
694 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h" | |
695 | target_cpu_default="MASK_PA_11" | |
696 | use_collect2=yes | |
697 | ;; | |
698 | hppa1.0-*-bsd*) | |
699 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h" | |
700 | use_collect2=yes | |
701 | ;; | |
702 | hppa1.0-*-hpux7*) | |
703 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h" | |
cf30ef80 | 704 | xm_defines=USG |
61ed06c3 | 705 | xmake_file=pa/x-pa-hpux |
61ed06c3 HPN |
706 | install_headers_dir=install-headers-cpio |
707 | use_collect2=yes | |
708 | ;; | |
709 | hppa1.0-*-hpux8.0[0-2]*) | |
710 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" | |
cf30ef80 | 711 | xm_defines=USG |
61ed06c3 | 712 | xmake_file=pa/x-pa-hpux |
c21a2372 | 713 | if test x$gas != xyes |
61ed06c3 | 714 | then |
61ed06c3 HPN |
715 | tm_file="pa/pa-oldas.h ${tm_file}" |
716 | fi | |
717 | install_headers_dir=install-headers-cpio | |
718 | use_collect2=yes | |
719 | ;; | |
720 | hppa1.1-*-hpux8.0[0-2]*) | |
721 | target_cpu_default="MASK_PA_11" | |
722 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" | |
cf30ef80 | 723 | xm_defines=USG |
61ed06c3 | 724 | xmake_file=pa/x-pa-hpux |
c21a2372 | 725 | if test x$gas != xyes |
61ed06c3 | 726 | then |
61ed06c3 HPN |
727 | tm_file="pa/pa-oldas.h ${tm_file}" |
728 | fi | |
729 | install_headers_dir=install-headers-cpio | |
730 | use_collect2=yes | |
731 | ;; | |
732 | hppa1.1-*-hpux8*) | |
733 | target_cpu_default="MASK_PA_11" | |
734 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" | |
cf30ef80 | 735 | xm_defines=USG |
61ed06c3 | 736 | xmake_file=pa/x-pa-hpux |
61ed06c3 HPN |
737 | install_headers_dir=install-headers-cpio |
738 | use_collect2=yes | |
739 | ;; | |
740 | hppa1.0-*-hpux8*) | |
741 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" | |
cf30ef80 | 742 | xm_defines=USG |
61ed06c3 | 743 | xmake_file=pa/x-pa-hpux |
61ed06c3 HPN |
744 | install_headers_dir=install-headers-cpio |
745 | use_collect2=yes | |
746 | ;; | |
747 | hppa1.1-*-hpux10* | hppa2*-*-hpux10*) | |
748 | target_cpu_default="MASK_PA_11" | |
749 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" | |
750 | float_format=i128 | |
cf30ef80 | 751 | xm_defines=USG |
61ed06c3 HPN |
752 | xmake_file=pa/x-pa-hpux |
753 | tmake_file=pa/t-pa | |
61ed06c3 HPN |
754 | if test x$enable_threads = x; then |
755 | enable_threads=$have_pthread_h | |
756 | fi | |
757 | case x${enable_threads} in | |
758 | xyes | xdce) | |
759 | tmake_file="${tmake_file} pa/t-dce-thr" | |
760 | ;; | |
761 | esac | |
762 | install_headers_dir=install-headers-cpio | |
763 | use_collect2=yes | |
764 | ;; | |
765 | hppa1.0-*-hpux10*) | |
766 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" | |
767 | float_format=i128 | |
cf30ef80 | 768 | xm_defines=USG |
61ed06c3 HPN |
769 | xmake_file=pa/x-pa-hpux |
770 | tmake_file=pa/t-pa | |
61ed06c3 HPN |
771 | if test x$enable_threads = x; then |
772 | enable_threads=$have_pthread_h | |
773 | fi | |
774 | case x${enable_threads} in | |
775 | xyes | xdce) | |
776 | tmake_file="${tmake_file} pa/t-dce-thr" | |
777 | ;; | |
778 | esac | |
779 | install_headers_dir=install-headers-cpio | |
780 | use_collect2=yes | |
781 | ;; | |
782 | hppa*64*-*-hpux11*) | |
cf30ef80 | 783 | xm_defines=USG |
61ed06c3 HPN |
784 | xmake_file=pa/x-pa-hpux |
785 | tmake_file=pa/t-pa | |
38010927 | 786 | tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h" |
61ed06c3 HPN |
787 | float_format=i128 |
788 | tmake_file=pa/t-pa64 | |
c81460e4 | 789 | target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)" |
61ed06c3 | 790 | |
61ed06c3 HPN |
791 | # if [ x$enable_threads = x ]; then |
792 | # enable_threads=$have_pthread_h | |
793 | # fi | |
794 | # if [ x$enable_threads = xyes ]; then | |
795 | # thread_file='dce' | |
796 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
797 | # fi | |
798 | install_headers_dir=install-headers-cpio | |
799 | use_collect2=yes | |
800 | ;; | |
801 | hppa1.1-*-hpux11* | hppa2*-*-hpux11*) | |
802 | target_cpu_default="MASK_PA_11" | |
803 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" | |
804 | float_format=i128 | |
cf30ef80 | 805 | xm_defines=USG |
61ed06c3 HPN |
806 | xmake_file=pa/x-pa-hpux |
807 | tmake_file=pa/t-pa | |
61ed06c3 HPN |
808 | # if test x$enable_threads = x; then |
809 | # enable_threads=$have_pthread_h | |
810 | # fi | |
811 | # if test x$enable_threads = xyes; then | |
812 | # thread_file='dce' | |
813 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
814 | # fi | |
815 | install_headers_dir=install-headers-cpio | |
816 | use_collect2=yes | |
817 | ;; | |
818 | hppa1.0-*-hpux11*) | |
819 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" | |
820 | float_format=i128 | |
cf30ef80 | 821 | xm_defines=USG |
61ed06c3 | 822 | xmake_file=pa/x-pa-hpux |
61ed06c3 HPN |
823 | # if test x$enable_threads = x; then |
824 | # enable_threads=$have_pthread_h | |
825 | # fi | |
826 | # if test x$enable_threads = xyes; then | |
827 | # thread_file='dce' | |
828 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
829 | # fi | |
830 | install_headers_dir=install-headers-cpio | |
831 | use_collect2=yes | |
832 | ;; | |
833 | hppa1.1-*-hpux* | hppa2*-*-hpux*) | |
834 | target_cpu_default="MASK_PA_11" | |
835 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" | |
cf30ef80 | 836 | xm_defines=USG |
61ed06c3 | 837 | xmake_file=pa/x-pa-hpux |
61ed06c3 HPN |
838 | install_headers_dir=install-headers-cpio |
839 | use_collect2=yes | |
840 | ;; | |
841 | hppa1.0-*-hpux*) | |
842 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" | |
cf30ef80 | 843 | xm_defines=USG |
61ed06c3 | 844 | xmake_file=pa/x-pa-hpux |
61ed06c3 HPN |
845 | install_headers_dir=install-headers-cpio |
846 | use_collect2=yes | |
847 | ;; | |
848 | hppa1.1-*-hiux* | hppa2*-*-hiux*) | |
849 | target_cpu_default="MASK_PA_11" | |
850 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" | |
cf30ef80 | 851 | xm_defines=USG |
61ed06c3 | 852 | xmake_file=pa/x-pa-hpux |
61ed06c3 HPN |
853 | install_headers_dir=install-headers-cpio |
854 | use_collect2=yes | |
855 | ;; | |
856 | hppa1.0-*-hiux*) | |
857 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" | |
cf30ef80 | 858 | xm_defines=USG |
61ed06c3 | 859 | xmake_file=pa/x-pa-hpux |
61ed06c3 HPN |
860 | install_headers_dir=install-headers-cpio |
861 | use_collect2=yes | |
862 | ;; | |
863 | hppa*-*-lites*) | |
864 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h" | |
865 | target_cpu_default="MASK_PA_11" | |
866 | use_collect2=yes | |
867 | ;; | |
868 | hppa*-*-mpeix*) | |
869 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h" | |
61ed06c3 HPN |
870 | xmake_file=pa/x-pa-mpeix |
871 | echo "You must use gas. Assuming it is already installed." | |
c21a2372 | 872 | gas=yes |
61ed06c3 HPN |
873 | install_headers_dir=install-headers-tar |
874 | use_collect2=yes | |
875 | ;; | |
876 | i370-*-opened*) # IBM 360/370/390 Architecture | |
d2a2648c | 877 | xm_defines='USG FATAL_EXIT_CODE=12' |
61ed06c3 HPN |
878 | tm_file=i370/oe.h |
879 | xmake_file=i370/x-oe | |
880 | tmake_file=i370/t-oe | |
881 | ;; | |
882 | i370-*-mvs*) | |
d2a2648c | 883 | xm_defines='USG FATAL_EXIT_CODE=12' |
61ed06c3 HPN |
884 | tm_file=i370/mvs.h |
885 | tmake_file=i370/t-mvs | |
886 | ;; | |
887 | i370-*-linux*) | |
61ed06c3 HPN |
888 | xmake_file=x-linux |
889 | tm_file="i370/linux.h ${tm_file}" | |
890 | tmake_file="t-linux i370/t-linux" | |
891 | # broken_install=yes | |
892 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
893 | # extra_parts="crtbegin.o crtend.o" | |
894 | gnu_ld=yes | |
895 | gas=yes | |
896 | elf=yes | |
897 | if test x$enable_threads = xyes; then | |
898 | thread_file='posix' | |
899 | fi | |
900 | ;; | |
8da6d80e | 901 | i[34567]86-*-chorusos*) |
cf30ef80 | 902 | xm_defines='USG POSIX' |
8da6d80e CC |
903 | tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h i386/chorus.h" |
904 | tmake_file=i386/t-i386elf | |
905 | xmake_file=x-svr4 | |
906 | case x${enable_threads} in | |
907 | xyes | xpthreads | xposix) | |
908 | thread_file='posix' | |
909 | ;; | |
910 | esac | |
911 | ;; | |
61ed06c3 | 912 | i[34567]86-*-elf*) |
cf30ef80 | 913 | xm_defines='USG POSIX' |
4cf12e7e | 914 | tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h" |
61ed06c3 HPN |
915 | tmake_file=i386/t-i386elf |
916 | xmake_file=x-svr4 | |
917 | ;; | |
918 | i[34567]86-ibm-aix*) # IBM PS/2 running AIX | |
919 | if test x$gas = xyes | |
920 | then | |
921 | tm_file=i386/aix386.h | |
922 | extra_parts="crtbegin.o crtend.o" | |
923 | tmake_file=i386/t-crtstuff | |
924 | else | |
925 | tm_file=i386/aix386ng.h | |
926 | use_collect2=yes | |
927 | fi | |
61ed06c3 HPN |
928 | xm_defines=USG |
929 | xmake_file=i386/x-aix | |
930 | ;; | |
931 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 | |
61ed06c3 | 932 | xm_defines="USG POSIX SMALL_ARG_MAX" |
61ed06c3 HPN |
933 | if test x$stabs = xyes -a x$gas = xyes |
934 | then | |
935 | tm_file=i386/sysv4gdb.h | |
936 | else | |
937 | tm_file=i386/sysv4.h | |
938 | fi | |
939 | extra_parts="crtbegin.o crtend.o" | |
940 | tmake_file=i386/t-crtpic | |
941 | ;; | |
942 | i[34567]86-next-*) | |
943 | tm_file=i386/next.h | |
61ed06c3 | 944 | tmake_file=i386/t-next |
61ed06c3 HPN |
945 | extra_objs=nextstep.o |
946 | extra_parts="crtbegin.o crtend.o" | |
947 | if test x$enable_threads = xyes; then | |
948 | thread_file='mach' | |
949 | fi | |
950 | ;; | |
951 | i[34567]86-*-netware) # Intel 80386's running netware | |
952 | tm_file=i386/netware.h | |
953 | tmake_file=i386/t-netware | |
954 | ;; | |
955 | i[34567]86-sequent-bsd*) # 80386 from Sequent | |
956 | use_collect2=yes | |
957 | if test x$gas = xyes | |
958 | then | |
959 | tm_file=i386/seq-gas.h | |
960 | else | |
961 | tm_file=i386/sequent.h | |
962 | fi | |
963 | ;; | |
964 | i[34567]86-sequent-ptx1*) | |
cf30ef80 | 965 | xm_defines=USG |
61ed06c3 HPN |
966 | tm_file=i386/seq-sysv3.h |
967 | tmake_file=i386/t-crtstuff | |
968 | extra_parts="crtbegin.o crtend.o" | |
969 | install_headers_dir=install-headers-cpio | |
970 | ;; | |
971 | i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) | |
cf30ef80 | 972 | xm_defines=USG |
61ed06c3 HPN |
973 | tm_file=i386/seq2-sysv3.h |
974 | tmake_file=i386/t-crtstuff | |
975 | extra_parts="crtbegin.o crtend.o" | |
976 | install_headers_dir=install-headers-cpio | |
977 | ;; | |
978 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) | |
70305f2b RH |
979 | if test x$gas = xyes |
980 | then | |
981 | tm_file="${tm_file} usegas.h" | |
982 | fi | |
61ed06c3 HPN |
983 | xm_defines="USG POSIX SMALL_ARG_MAX" |
984 | xmake_file=x-svr4 | |
985 | tm_file=i386/ptx4-i.h | |
986 | tmake_file=t-svr4 | |
987 | extra_parts="crtbegin.o crtend.o" | |
988 | install_headers_dir=install-headers-cpio | |
989 | ;; | |
990 | i386-sun-sunos*) # Sun i386 roadrunner | |
991 | xm_defines=USG | |
992 | tm_file=i386/sun.h | |
993 | use_collect2=yes | |
994 | ;; | |
995 | i[34567]86-wrs-vxworks*) | |
996 | tm_file=i386/vxi386.h | |
997 | tmake_file=i386/t-i386bare | |
998 | thread_file='vxworks' | |
999 | ;; | |
1000 | i[34567]86-*-aout*) | |
1001 | tm_file=i386/i386-aout.h | |
1002 | tmake_file=i386/t-i386bare | |
1003 | ;; | |
1004 | i[34567]86-*-beoself* | i[34567]86-*-beos*) | |
cf30ef80 | 1005 | xm_defines=USG |
61ed06c3 HPN |
1006 | tmake_file='i386/t-beos i386/t-crtpic' |
1007 | tm_file=i386/beos-elf.h | |
1008 | xmake_file=i386/x-beos | |
1009 | extra_parts='crtbegin.o crtend.o' | |
1010 | ;; | |
1011 | i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) | |
1012 | tm_file=i386/bsd386.h | |
1013 | # tmake_file=t-libc-ok | |
1014 | ;; | |
1015 | i[34567]86-*-bsd*) | |
1016 | tm_file=i386/386bsd.h | |
1017 | # tmake_file=t-libc-ok | |
1018 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
1019 | # use_collect2=yes | |
1020 | ;; | |
1021 | i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*) | |
1022 | tm_file="i386/freebsd-aout.h i386/perform.h" | |
1023 | tmake_file=t-freebsd | |
1024 | ;; | |
1025 | i[34567]86-*-freebsd*) | |
4cf12e7e | 1026 | tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/i386afe.h i386/freebsd.h i386/perform.h" |
61ed06c3 HPN |
1027 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
1028 | tmake_file=t-freebsd | |
1029 | gas=yes | |
1030 | gnu_ld=yes | |
1031 | stabs=yes | |
1032 | case x${enable_threads} in | |
1033 | xyes | xpthreads | xposix) | |
1034 | thread_file='posix' | |
1035 | tmake_file="${tmake_file} t-freebsd-thread" | |
1036 | ;; | |
1037 | esac | |
1038 | ;; | |
1039 | i[34567]86-*-netbsd*) | |
1040 | tm_file=i386/netbsd.h | |
1041 | tmake_file=t-netbsd | |
1042 | use_collect2=yes | |
1043 | ;; | |
1044 | i[34567]86-*-openbsd*) | |
1045 | # we need collect2 until our bug is fixed... | |
1046 | use_collect2=yes | |
1047 | ;; | |
1048 | i[34567]86-*-coff*) | |
1049 | tm_file=i386/i386-coff.h | |
1050 | tmake_file=i386/t-i386bare | |
1051 | ;; | |
1052 | i[34567]86-*-isc*) # 80386 running ISC system | |
cf30ef80 | 1053 | xm_defines=USG |
61ed06c3 HPN |
1054 | if test x$gas = xyes -a x$stabs = xyes |
1055 | then | |
1056 | tm_file=i386/iscdbx.h | |
1057 | tmake_file=i386/t-svr3dbx | |
1058 | extra_parts="svr3.ifile svr3z.ifile" | |
1059 | else | |
1060 | tm_file=i386/isccoff.h | |
1061 | tmake_file=i386/t-crtstuff | |
1062 | extra_parts="crtbegin.o crtend.o" | |
1063 | fi | |
1064 | tmake_file="$tmake_file i386/t-i386bare" | |
1065 | install_headers_dir=install-headers-cpio | |
1066 | ;; | |
1067 | i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux | |
1068 | # with a.out format using | |
1069 | # pre BFD linkers | |
61ed06c3 HPN |
1070 | tmake_file="t-linux-aout i386/t-crtstuff" |
1071 | tm_file=i386/linux-oldld.h | |
1072 | gnu_ld=yes | |
1073 | float_format=i386 | |
1074 | ;; | |
1075 | i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux | |
1076 | # with a.out format | |
61ed06c3 HPN |
1077 | tmake_file="t-linux-aout i386/t-crtstuff" |
1078 | tm_file=i386/linux-aout.h | |
1079 | gnu_ld=yes | |
1080 | float_format=i386 | |
1081 | ;; | |
1082 | i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux | |
1083 | # with ELF format using the | |
1084 | # GNU/Linux C library 5 | |
1085 | xmake_file=x-linux | |
4cf12e7e | 1086 | tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h" |
61ed06c3 HPN |
1087 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" |
1088 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
1089 | gnu_ld=yes | |
1090 | float_format=i386 | |
1091 | if test x$enable_threads = xyes; then | |
1092 | thread_file='single' | |
1093 | fi | |
1094 | ;; | |
1095 | i[34567]86-*-linux*) # Intel 80386's running GNU/Linux | |
1096 | # with ELF format using glibc 2 | |
1097 | # aka GNU/Linux C library 6 | |
1098 | xmake_file=x-linux | |
4cf12e7e | 1099 | tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h" |
61ed06c3 HPN |
1100 | tmake_file="t-linux i386/t-crtstuff" |
1101 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
1102 | gnu_ld=yes | |
1103 | float_format=i386 | |
1104 | if test x$enable_threads = xyes; then | |
1105 | thread_file='posix' | |
1106 | fi | |
1107 | ;; | |
1108 | i[34567]86-*-gnu*) | |
1109 | float_format=i386 | |
1110 | ;; | |
1111 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
1112 | echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead." | |
1113 | exit 1 | |
1114 | ;; | |
1115 | i[34567]86-pc-msdosdjgpp*) | |
1116 | xm_file=i386/xm-djgpp.h | |
1117 | tm_file=i386/djgpp.h | |
1118 | tmake_file=i386/t-djgpp | |
1119 | xmake_file=i386/x-djgpp | |
1120 | gnu_ld=yes | |
1121 | gas=yes | |
1122 | exeext=.exe | |
1123 | float_format=none | |
1124 | case $host in *pc-msdosdjgpp*) | |
1125 | target_alias=djgpp | |
1126 | ;; | |
1127 | esac | |
1128 | ;; | |
1129 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) | |
4cf12e7e | 1130 | tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h i386/moss.h" |
61ed06c3 HPN |
1131 | tmake_file=t-libc-ok |
1132 | gnu_ld=yes | |
1133 | gas=yes | |
1134 | ;; | |
1135 | i[34567]86-*-lynxos*) | |
1136 | if test x$gas = xyes | |
1137 | then | |
1138 | tm_file=i386/lynx.h | |
1139 | else | |
1140 | tm_file=i386/lynx-ng.h | |
1141 | fi | |
61ed06c3 | 1142 | tmake_file=i386/t-i386bare |
61ed06c3 HPN |
1143 | ;; |
1144 | i[34567]86-*-mach*) | |
1145 | tm_file=i386/mach.h | |
1146 | # tmake_file=t-libc-ok | |
1147 | use_collect2=yes | |
1148 | ;; | |
1149 | i[34567]86-*-osfrose*) # 386 using OSF/rose | |
1150 | if test x$elf = xyes | |
1151 | then | |
1152 | tm_file=i386/osfelf.h | |
1153 | use_collect2= | |
1154 | else | |
1155 | tm_file=i386/osfrose.h | |
1156 | use_collect2=yes | |
1157 | fi | |
61ed06c3 HPN |
1158 | xmake_file=i386/x-osfrose |
1159 | tmake_file=i386/t-osf | |
1160 | extra_objs=halfpic.o | |
1161 | ;; | |
1162 | i[34567]86-go32-rtems*) | |
1163 | cpu_type=i386 | |
61ed06c3 | 1164 | tm_file=i386/go32-rtems.h |
db009825 | 1165 | tmake_file=t-rtems |
bc98ef7f JS |
1166 | if test x$enable_threads = xyes; then |
1167 | thread_file='rtems' | |
1168 | fi | |
61ed06c3 HPN |
1169 | ;; |
1170 | i[34567]86-*-rtemscoff*) | |
1171 | cpu_type=i386 | |
1172 | tm_file=i386/rtems.h | |
1173 | tmake_file="i386/t-i386bare t-rtems" | |
bc98ef7f JS |
1174 | if test x$enable_threads = xyes; then |
1175 | thread_file='rtems' | |
1176 | fi | |
61ed06c3 HPN |
1177 | ;; |
1178 | i[34567]86-*-rtems*|i[34567]86-*-rtemself*) | |
1179 | cpu_type=i386 | |
1180 | tm_file=i386/rtemself.h | |
1181 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" | |
1182 | tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems" | |
bc98ef7f JS |
1183 | if test x$enable_threads = xyes; then |
1184 | thread_file='rtems' | |
1185 | fi | |
61ed06c3 HPN |
1186 | ;; |
1187 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 | |
cf30ef80 | 1188 | xm_defines=USG |
61ed06c3 HPN |
1189 | xmake_file=i386/x-sco5 |
1190 | install_headers_dir=install-headers-cpio | |
1191 | tm_file=i386/sco5.h | |
1192 | if test x$gas = xyes | |
1193 | then | |
70305f2b | 1194 | tm_file="usegas.h ${tm_file}" |
61ed06c3 HPN |
1195 | tmake_file=i386/t-sco5gas |
1196 | else | |
1197 | tmake_file=i386/t-sco5 | |
1198 | fi | |
1199 | tmake_file="$tmake_file i386/t-i386bare" | |
1200 | extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
1201 | ;; | |
1202 | i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system | |
cf30ef80 | 1203 | xm_defines="USG BROKEN_LDEXP SMALL_ARG_MAX" |
61ed06c3 HPN |
1204 | xmake_file=i386/x-sco4 |
1205 | install_headers_dir=install-headers-cpio | |
1206 | if test x$stabs = xyes | |
1207 | then | |
1208 | tm_file=i386/sco4dbx.h | |
1209 | tmake_file=i386/t-svr3dbx | |
1210 | extra_parts="svr3.ifile svr3z.rfile" | |
1211 | else | |
1212 | tm_file=i386/sco4.h | |
1213 | tmake_file=i386/t-crtstuff | |
1214 | extra_parts="crtbegin.o crtend.o" | |
1215 | fi | |
1216 | tmake_file="$tmake_file i386/t-i386bare" | |
1217 | # The default EAFS filesystem supports long file names. | |
1218 | # Truncating the target makes $host != $target which | |
1219 | # makes gcc think it is doing a cross-compile. | |
1220 | # truncate_target=yes | |
1221 | ;; | |
1222 | i[34567]86-*-sco*) # 80386 running SCO system | |
61ed06c3 HPN |
1223 | install_headers_dir=install-headers-cpio |
1224 | if test x$stabs = xyes | |
1225 | then | |
1226 | tm_file=i386/scodbx.h | |
1227 | tmake_file=i386/t-svr3dbx | |
1228 | extra_parts="svr3.ifile svr3z.rfile" | |
1229 | else | |
1230 | tm_file=i386/sco.h | |
1231 | extra_parts="crtbegin.o crtend.o" | |
1232 | tmake_file=i386/t-crtstuff | |
1233 | fi | |
1234 | tmake_file="$tmake_file i386/t-i386bare" | |
1235 | truncate_target=yes | |
1236 | ;; | |
1237 | i[34567]86-*-solaris2*) | |
61ed06c3 HPN |
1238 | xm_defines="USG POSIX SMALL_ARG_MAX" |
1239 | tm_file=i386/sol2.h | |
1240 | if test x$gas = xyes; then | |
1241 | # Only needed if gas does not support -s | |
1242 | tm_file="i386/sol2gas.h ${tm_file}" | |
1243 | fi | |
1244 | tmake_file="i386/t-i386bare i386/t-sol2" | |
1245 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
1246 | xmake_file=x-svr4 | |
1247 | if test x${enable_threads} = x; then | |
1248 | enable_threads=$have_pthread_h | |
1249 | if test x${enable_threads} = x; then | |
1250 | enable_threads=$have_thread_h | |
1251 | fi | |
1252 | fi | |
1253 | if test x${enable_threads} = xyes; then | |
1254 | if test x${have_pthread_h} = xyes; then | |
1255 | thread_file='posix' | |
1256 | else | |
1257 | thread_file='solaris' | |
1258 | fi | |
1259 | fi | |
1260 | ;; | |
23a535c4 | 1261 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 |
61ed06c3 HPN |
1262 | xm_defines="USG POSIX" |
1263 | tm_file=i386/sysv5.h | |
1264 | if test x$stabs = xyes | |
1265 | then | |
1266 | tm_file="${tm_file} dbx.h" | |
1267 | fi | |
1268 | tmake_file="i386/t-i386bare i386/t-crtpic" | |
1269 | xmake_file=x-svr4 | |
1270 | extra_parts="crtbegin.o crtend.o" | |
1271 | if test x$enable_threads = xyes; then | |
1272 | thread_file='posix' | |
1273 | fi | |
1274 | ;; | |
1275 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 | |
61ed06c3 HPN |
1276 | xm_defines="USG POSIX SMALL_ARG_MAX" |
1277 | tm_file=i386/sysv4.h | |
1278 | if test x$stabs = xyes | |
1279 | then | |
1280 | tm_file="${tm_file} dbx.h" | |
1281 | fi | |
1282 | tmake_file="i386/t-i386bare i386/t-crtpic" | |
1283 | xmake_file=x-svr4 | |
1284 | extra_parts="crtbegin.o crtend.o" | |
1285 | ;; | |
1286 | i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit | |
61ed06c3 HPN |
1287 | xm_defines="USG POSIX" |
1288 | tm_file=i386/udk.h | |
1289 | tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk" | |
1290 | xmake_file=x-svr4 | |
1291 | extra_parts="crtbegin.o crtend.o" | |
1292 | install_headers_dir=install-headers-cpio | |
1293 | ;; | |
1294 | i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ | |
1295 | cpu_type=i386 | |
4dc0535b | 1296 | xm_file=i386/xm-osf1elf.h |
cf30ef80 | 1297 | xm_defines='USG POSIX USE_C_ALLOCA SMALL_ARG_MAX' |
61ed06c3 HPN |
1298 | if test x$stabs = xyes |
1299 | then | |
1300 | tm_file=i386/osf1elfgdb.h | |
1301 | else | |
1302 | tm_file=i386/osf1elf.h | |
1303 | fi | |
1304 | tmake_file=i386/t-osf1elf | |
1305 | xmake_file=i386/x-osf1elf | |
1306 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
1307 | ;; | |
1308 | i[34567]86-*-sysv*) # Intel 80386's running system V | |
cf30ef80 | 1309 | xm_defines=USG |
61ed06c3 HPN |
1310 | if test x$gas = xyes |
1311 | then | |
1312 | if test x$stabs = xyes | |
1313 | then | |
1314 | tm_file=i386/svr3dbx.h | |
1315 | tmake_file=i386/t-svr3dbx | |
1316 | extra_parts="svr3.ifile svr3z.rfile" | |
1317 | else | |
1318 | tm_file=i386/svr3gas.h | |
1319 | extra_parts="crtbegin.o crtend.o" | |
1320 | tmake_file=i386/t-crtstuff | |
1321 | fi | |
1322 | else | |
1323 | tm_file=i386/sysv3.h | |
1324 | extra_parts="crtbegin.o crtend.o" | |
1325 | tmake_file=i386/t-crtstuff | |
1326 | fi | |
1327 | tmake_file="$tmake_file i386/t-crtpic" | |
1328 | ;; | |
1329 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
4dc0535b | 1330 | xm_file=i386/xm-vsta.h |
61ed06c3 HPN |
1331 | tm_file=i386/vsta.h |
1332 | tmake_file=i386/t-vsta | |
61ed06c3 HPN |
1333 | ;; |
1334 | i[34567]86-*-win32) | |
b19a539e | 1335 | xm_defines=POSIX |
4dc0535b | 1336 | xm_file=i386/xm-cygwin.h |
60a8ab96 | 1337 | float_format=i386 |
61ed06c3 HPN |
1338 | tmake_file=i386/t-cygwin |
1339 | tm_file=i386/win32.h | |
1340 | xmake_file=i386/x-cygwin | |
1341 | extra_objs=winnt.o | |
1342 | if test x$enable_threads = xyes; then | |
1343 | thread_file='win32' | |
1344 | fi | |
1345 | exeext=.exe | |
1346 | ;; | |
1347 | i[34567]86-*-pe | i[34567]86-*-cygwin*) | |
b19a539e | 1348 | xm_defines=POSIX |
4dc0535b | 1349 | xm_file=i386/xm-cygwin.h |
60a8ab96 | 1350 | float_format=i386 |
61ed06c3 HPN |
1351 | tmake_file=i386/t-cygwin |
1352 | tm_file=i386/cygwin.h | |
1353 | xmake_file=i386/x-cygwin | |
1354 | extra_objs=winnt.o | |
1355 | if test x$enable_threads = xyes; then | |
1356 | thread_file='win32' | |
1357 | fi | |
1358 | exeext=.exe | |
1359 | ;; | |
1360 | i[34567]86-*-mingw32*) | |
1361 | tm_file=i386/mingw32.h | |
60a8ab96 | 1362 | float_format=i386 |
cf30ef80 | 1363 | xm_defines=USG |
4dc0535b | 1364 | xm_file=i386/xm-mingw32.h |
61ed06c3 HPN |
1365 | tmake_file="i386/t-cygwin i386/t-mingw32" |
1366 | extra_objs=winnt.o | |
1367 | xmake_file=i386/x-cygwin | |
1368 | if test x$enable_threads = xyes; then | |
1369 | thread_file='win32' | |
1370 | fi | |
1371 | exeext=.exe | |
1372 | case $machine in | |
1373 | *mingw32msv*) | |
1374 | ;; | |
1375 | *minwg32crt* | *mingw32*) | |
1376 | tm_file="${tm_file} i386/crtdll.h" | |
1377 | ;; | |
1378 | esac | |
1379 | ;; | |
1380 | i[34567]86-*-uwin*) | |
1381 | tm_file=i386/uwin.h | |
61ed06c3 HPN |
1382 | tmake_file="i386/t-cygwin i386/t-uwin" |
1383 | extra_objs=winnt.o | |
1384 | xmake_file=i386/x-cygwin | |
1385 | if test x$enable_threads = xyes; then | |
1386 | thread_file='win32' | |
1387 | fi | |
1388 | exeext=.exe | |
1389 | ;; | |
1390 | i[34567]86-*-interix*) | |
1391 | tm_file="i386/i386-interix.h interix.h" | |
1392 | xm_file="i386/xm-i386-interix.h xm-interix.h" | |
1393 | xm_defines="USG" | |
1394 | tmake_file="i386/t-interix" | |
1395 | extra_objs=interix.o | |
1396 | xmake_file=x-interix | |
1397 | if test x$enable_threads = xyes ; then | |
1398 | thread_file='posix' | |
1399 | fi | |
1400 | if test x$stabs = xyes ; then | |
1401 | tm_file="${tm_file} dbxcoff.h" | |
1402 | fi | |
1403 | ;; | |
61ed06c3 | 1404 | i[34567]86-dg-dgux*) |
61ed06c3 HPN |
1405 | xm_defines="USG POSIX" |
1406 | out_file=i386/dgux.c | |
1407 | tm_file=i386/dgux.h | |
1408 | tmake_file=i386/t-dgux | |
1409 | xmake_file=i386/x-dgux | |
1410 | install_headers_dir=install-headers-cpio | |
1411 | ;; | |
1412 | i860-alliant-*) # Alliant FX/2800 | |
1413 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
61ed06c3 HPN |
1414 | tmake_file=i860/t-fx2800 |
1415 | extra_parts="crtbegin.o crtend.o" | |
1416 | ;; | |
1417 | i860-*-bsd*) | |
1418 | tm_file="${tm_file} i860/bsd.h" | |
1419 | if test x$gas = xyes | |
1420 | then | |
1421 | tm_file="${tm_file} i860/bsd-gas.h" | |
1422 | fi | |
1423 | use_collect2=yes | |
1424 | ;; | |
1425 | i860-*-mach*) | |
1426 | tm_file="${tm_file} i860/mach.h" | |
1427 | tmake_file=t-libc-ok | |
1428 | ;; | |
1429 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
1430 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
cf30ef80 | 1431 | xm_defines=USG |
61ed06c3 HPN |
1432 | ;; |
1433 | i860-*-sysv3*) | |
1434 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
cf30ef80 | 1435 | xm_defines=USG |
61ed06c3 HPN |
1436 | extra_parts="crtbegin.o crtend.o" |
1437 | ;; | |
1438 | i860-*-sysv4*) | |
1439 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
cf30ef80 | 1440 | xm_defines=USG |
61ed06c3 HPN |
1441 | tmake_file=t-svr4 |
1442 | extra_parts="crtbegin.o crtend.o" | |
1443 | ;; | |
1444 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
1445 | tm_file="${tm_file} i960/vx960.h" | |
1446 | tmake_file=i960/t-vxworks960 | |
1447 | use_collect2=yes | |
1448 | thread_file='vxworks' | |
43fabf7d JW |
1449 | c_target_objs="i960-c.o" |
1450 | cxx_target_objs="i960-c.o" | |
61ed06c3 HPN |
1451 | ;; |
1452 | i960-wrs-vxworks5* | i960-wrs-vxworks) | |
1453 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" | |
1454 | tmake_file=i960/t-vxworks960 | |
1455 | use_collect2=yes | |
1456 | thread_file='vxworks' | |
43fabf7d JW |
1457 | c_target_objs="i960-c.o" |
1458 | cxx_target_objs="i960-c.o" | |
61ed06c3 HPN |
1459 | ;; |
1460 | i960-wrs-vxworks*) | |
1461 | tm_file="${tm_file} i960/vx960.h" | |
1462 | tmake_file=i960/t-vxworks960 | |
1463 | use_collect2=yes | |
1464 | thread_file='vxworks' | |
43fabf7d JW |
1465 | c_target_objs="i960-c.o" |
1466 | cxx_target_objs="i960-c.o" | |
61ed06c3 HPN |
1467 | ;; |
1468 | i960-*-coff*) | |
1469 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
1470 | tmake_file=i960/t-960bare | |
1471 | use_collect2=yes | |
43fabf7d JW |
1472 | c_target_objs="i960-c.o" |
1473 | cxx_target_objs="i960-c.o" | |
61ed06c3 HPN |
1474 | ;; |
1475 | i960-*-rtems) | |
1476 | tmake_file="i960/t-960bare t-rtems" | |
1477 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
1478 | use_collect2=yes | |
bc98ef7f JS |
1479 | if test x$enable_threads = xyes; then |
1480 | thread_file='rtems' | |
1481 | fi | |
43fabf7d JW |
1482 | c_target_objs="i960-c.o" |
1483 | cxx_target_objs="i960-c.o" | |
61ed06c3 HPN |
1484 | ;; |
1485 | i960-*-*) # Default i960 environment. | |
1486 | use_collect2=yes | |
43fabf7d JW |
1487 | c_target_objs="i960-c.o" |
1488 | cxx_target_objs="i960-c.o" | |
61ed06c3 HPN |
1489 | ;; |
1490 | ia64*-*-elf*) | |
1491 | tm_file=ia64/elf.h | |
1492 | tmake_file="ia64/t-ia64" | |
1493 | target_cpu_default="0" | |
1494 | if test x$gas = xyes | |
1495 | then | |
1496 | target_cpu_default="${target_cpu_default}|MASK_GNU_AS" | |
1497 | fi | |
1498 | if test x$gnu_ld = xyes | |
1499 | then | |
1500 | target_cpu_default="${target_cpu_default}|MASK_GNU_LD" | |
1501 | fi | |
1502 | float_format=i386 | |
1503 | ;; | |
1504 | ia64*-*-linux*) | |
1505 | tm_file=ia64/linux.h | |
1506 | tmake_file="t-linux ia64/t-ia64 ia64/t-glibc" | |
1507 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" | |
1508 | if test x$enable_threads = xyes; then | |
1509 | thread_file='posix' | |
1510 | fi | |
1511 | float_format=i386 | |
1512 | ;; | |
7e5b9908 SE |
1513 | ia64*-*-hpux*) |
1514 | tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h" | |
1515 | tmake_file="ia64/t-ia64 ia64/t-hpux" | |
1516 | target_cpu_default="MASK_GNU_AS" | |
1517 | if test x$enable_threads = xyes; then | |
1518 | thread_file='posix' | |
1519 | fi | |
1520 | float_format=i386 | |
1521 | ;; | |
61ed06c3 HPN |
1522 | m32r-*-elf*) |
1523 | extra_parts="crtinit.o crtfini.o" | |
1524 | ;; | |
1525 | # m68hc11 and m68hc12 share the same machine description. | |
1526 | m68hc11-*-*|m6811-*-*) | |
0b29309a | 1527 | tm_file="elfos.h m68hc11/m68hc11.h" |
61ed06c3 HPN |
1528 | tm_p_file="m68hc11/m68hc11-protos.h" |
1529 | md_file="m68hc11/m68hc11.md" | |
1530 | out_file="m68hc11/m68hc11.c" | |
1531 | tmake_file="m68hc11/t-m68hc11-gas" | |
1532 | ;; | |
1533 | m68hc12-*-*|m6812-*-*) | |
0b29309a | 1534 | tm_file="m68hc11/m68hc12.h elfos.h m68hc11/m68hc11.h" |
61ed06c3 | 1535 | tm_p_file="m68hc11/m68hc11-protos.h" |
61ed06c3 HPN |
1536 | md_file="m68hc11/m68hc11.md" |
1537 | out_file="m68hc11/m68hc11.c" | |
1538 | tmake_file="m68hc11/t-m68hc11-gas" | |
1539 | ;; | |
1540 | m68000-convergent-sysv*) | |
1541 | tm_file=m68k/ctix.h | |
61ed06c3 HPN |
1542 | xm_defines=USG |
1543 | use_collect2=yes | |
1544 | extra_headers=math-68881.h | |
1545 | ;; | |
1546 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
1547 | tm_file=m68k/hp2bsd.h | |
61ed06c3 HPN |
1548 | use_collect2=yes |
1549 | extra_headers=math-68881.h | |
1550 | ;; | |
1551 | m68000-hp-hpux*) # HP 9000 series 300 | |
61ed06c3 HPN |
1552 | xm_defines="USG" |
1553 | if test x$gas = xyes | |
1554 | then | |
1555 | xmake_file=m68k/x-hp320g | |
1556 | tm_file=m68k/hp310g.h | |
1557 | else | |
1558 | xmake_file=m68k/x-hp320 | |
1559 | tm_file=m68k/hp310.h | |
1560 | fi | |
1561 | install_headers_dir=install-headers-cpio | |
1562 | use_collect2=yes | |
1563 | extra_headers=math-68881.h | |
1564 | ;; | |
1565 | m68000-sun-sunos3*) | |
1566 | tm_file=m68k/sun2.h | |
1567 | use_collect2=yes | |
1568 | extra_headers=math-68881.h | |
1569 | ;; | |
1570 | m68000-sun-sunos4*) | |
1571 | tm_file=m68k/sun2o4.h | |
1572 | use_collect2=yes | |
1573 | extra_headers=math-68881.h | |
1574 | ;; | |
1575 | m68000-att-sysv*) | |
61ed06c3 HPN |
1576 | xm_defines=USG |
1577 | if test x$gas = xyes | |
1578 | then | |
1579 | tm_file=m68k/3b1g.h | |
1580 | else | |
1581 | tm_file=m68k/3b1.h | |
1582 | fi | |
1583 | use_collect2=yes | |
1584 | extra_headers=math-68881.h | |
1585 | ;; | |
1586 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
1587 | xm_defines="USG AUX" | |
1588 | tmake_file=m68k/t-aux | |
1589 | install_headers_dir=install-headers-cpio | |
1590 | extra_headers=math-68881.h | |
1591 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
1592 | tm_file= | |
1593 | if test "$gnu_ld" = yes | |
1594 | then | |
1595 | tm_file="${tm_file} m68k/auxgld.h" | |
1596 | else | |
1597 | tm_file="${tm_file} m68k/auxld.h" | |
1598 | fi | |
1599 | if test "$gas" = yes | |
1600 | then | |
1601 | tm_file="${tm_file} m68k/auxgas.h" | |
1602 | else | |
1603 | tm_file="${tm_file} m68k/auxas.h" | |
1604 | fi | |
1605 | tm_file="${tm_file} m68k/a-ux.h" | |
1606 | float_format=m68k | |
1607 | ;; | |
1608 | m68k-apollo-*) | |
1609 | tm_file=m68k/apollo68.h | |
61ed06c3 HPN |
1610 | use_collect2=yes |
1611 | extra_headers=math-68881.h | |
1612 | float_format=m68k | |
1613 | ;; | |
1614 | m68k-altos-sysv*) # Altos 3068 | |
1615 | if test x$gas = xyes | |
1616 | then | |
1617 | tm_file=m68k/altos3068.h | |
1618 | xm_defines=USG | |
1619 | else | |
1620 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
1621 | exit 1 | |
1622 | fi | |
1623 | extra_headers=math-68881.h | |
1624 | ;; | |
1625 | m68k-bull-sysv*) # Bull DPX/2 | |
1626 | if test x$gas = xyes | |
1627 | then | |
1628 | if test x$stabs = xyes | |
1629 | then | |
1630 | tm_file=m68k/dpx2cdbx.h | |
1631 | else | |
1632 | tm_file=m68k/dpx2g.h | |
1633 | fi | |
1634 | else | |
1635 | tm_file=m68k/dpx2.h | |
1636 | fi | |
61ed06c3 HPN |
1637 | xm_defines=USG |
1638 | xmake_file=m68k/x-dpx2 | |
1639 | use_collect2=yes | |
1640 | extra_headers=math-68881.h | |
1641 | ;; | |
1642 | m68k-atari-sysv4*) # Atari variant of V.4. | |
1643 | tm_file=m68k/atari.h | |
000b5f54 | 1644 | xm_defines=USG |
61ed06c3 HPN |
1645 | tmake_file=t-svr4 |
1646 | extra_parts="crtbegin.o crtend.o" | |
1647 | extra_headers=math-68881.h | |
1648 | float_format=m68k | |
1649 | ;; | |
1650 | m68k-motorola-sysv*) | |
1651 | tm_file=m68k/mot3300.h | |
cf30ef80 | 1652 | xm_defines=USG |
61ed06c3 HPN |
1653 | if test x$gas = xyes |
1654 | then | |
61ed06c3 HPN |
1655 | if test x$gnu_ld = xyes |
1656 | then | |
1657 | tmake_file=m68k/t-mot3300-gald | |
1658 | else | |
1659 | tmake_file=m68k/t-mot3300-gas | |
1660 | use_collect2=yes | |
1661 | fi | |
1662 | else | |
61ed06c3 HPN |
1663 | if test x$gnu_ld = xyes |
1664 | then | |
1665 | tmake_file=m68k/t-mot3300-gld | |
1666 | else | |
1667 | tmake_file=m68k/t-mot3300 | |
1668 | use_collect2=yes | |
1669 | fi | |
1670 | fi | |
1671 | gdb_needs_out_file_path=yes | |
1672 | extra_parts="crt0.o mcrt0.o" | |
1673 | extra_headers=math-68881.h | |
1674 | float_format=m68k | |
1675 | ;; | |
1676 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
1677 | tm_file=m68k/tower-as.h | |
cf30ef80 | 1678 | xm_defines=USG |
61ed06c3 HPN |
1679 | extra_parts="crtbegin.o crtend.o" |
1680 | extra_headers=math-68881.h | |
1681 | ;; | |
1682 | m68k-plexus-sysv*) | |
1683 | tm_file=m68k/plexus.h | |
61ed06c3 HPN |
1684 | xm_defines=USG |
1685 | use_collect2=yes | |
1686 | extra_headers=math-68881.h | |
1687 | ;; | |
1688 | m68k-tti-*) | |
1689 | tm_file=m68k/pbb.h | |
61ed06c3 HPN |
1690 | xm_defines=USG |
1691 | extra_headers=math-68881.h | |
1692 | ;; | |
1693 | m68k-crds-unos*) | |
61ed06c3 | 1694 | xm_defines="USG unos" |
61ed06c3 HPN |
1695 | tm_file=m68k/crds.h |
1696 | use_collect2=yes | |
1697 | extra_headers=math-68881.h | |
1698 | ;; | |
1699 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
1700 | tm_file=m68k/amix.h | |
000b5f54 | 1701 | xm_defines=USG |
61ed06c3 HPN |
1702 | tmake_file=t-svr4 |
1703 | extra_parts="crtbegin.o crtend.o" | |
1704 | extra_headers=math-68881.h | |
1705 | float_format=m68k | |
1706 | ;; | |
1707 | m68k-ccur-rtu) | |
1708 | tm_file=m68k/ccur-GAS.h | |
61ed06c3 HPN |
1709 | extra_headers=math-68881.h |
1710 | use_collect2=yes | |
1711 | float_format=m68k | |
1712 | ;; | |
1713 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
1714 | tm_file=m68k/hp3bsd44.h | |
61ed06c3 HPN |
1715 | use_collect2=yes |
1716 | extra_headers=math-68881.h | |
1717 | float_format=m68k | |
1718 | ;; | |
1719 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
1720 | tm_file=m68k/hp3bsd.h | |
1721 | use_collect2=yes | |
1722 | extra_headers=math-68881.h | |
1723 | float_format=m68k | |
1724 | ;; | |
1725 | m68k-isi-bsd*) | |
1726 | if test x$with_fp = xno | |
1727 | then | |
1728 | tm_file=m68k/isi-nfp.h | |
1729 | else | |
1730 | tm_file=m68k/isi.h | |
1731 | float_format=m68k | |
1732 | fi | |
1733 | use_collect2=yes | |
1734 | extra_headers=math-68881.h | |
1735 | ;; | |
1736 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
61ed06c3 HPN |
1737 | xm_defines="USG" |
1738 | if test x$gas = xyes | |
1739 | then | |
1740 | xmake_file=m68k/x-hp320g | |
1741 | tm_file=m68k/hp320g.h | |
1742 | else | |
1743 | xmake_file=m68k/x-hp320 | |
1744 | tm_file=m68k/hpux7.h | |
1745 | fi | |
1746 | install_headers_dir=install-headers-cpio | |
1747 | use_collect2=yes | |
1748 | extra_headers=math-68881.h | |
1749 | float_format=m68k | |
1750 | ;; | |
1751 | m68k-hp-hpux*) # HP 9000 series 300 | |
61ed06c3 HPN |
1752 | xm_defines="USG" |
1753 | if test x$gas = xyes | |
1754 | then | |
1755 | xmake_file=m68k/x-hp320g | |
1756 | tm_file=m68k/hp320g.h | |
1757 | else | |
1758 | xmake_file=m68k/x-hp320 | |
1759 | tm_file=m68k/hp320.h | |
1760 | fi | |
1761 | install_headers_dir=install-headers-cpio | |
1762 | use_collect2=yes | |
1763 | extra_headers=math-68881.h | |
1764 | float_format=m68k | |
1765 | ;; | |
1766 | m68k-sun-mach*) | |
1767 | tm_file=m68k/sun3mach.h | |
1768 | use_collect2=yes | |
1769 | extra_headers=math-68881.h | |
1770 | float_format=m68k | |
1771 | ;; | |
1772 | m68k-sony-newsos3*) | |
1773 | if test x$gas = xyes | |
1774 | then | |
1775 | tm_file=m68k/news3gas.h | |
1776 | else | |
1777 | tm_file=m68k/news3.h | |
1778 | fi | |
1779 | use_collect2=yes | |
1780 | extra_headers=math-68881.h | |
1781 | float_format=m68k | |
1782 | ;; | |
1783 | m68k-sony-bsd* | m68k-sony-newsos*) | |
1784 | if test x$gas = xyes | |
1785 | then | |
1786 | tm_file=m68k/newsgas.h | |
1787 | else | |
1788 | tm_file=m68k/news.h | |
1789 | fi | |
1790 | use_collect2=yes | |
1791 | extra_headers=math-68881.h | |
1792 | float_format=m68k | |
1793 | ;; | |
1794 | m68k-next-nextstep2*) | |
1795 | tm_file=m68k/next21.h | |
61ed06c3 HPN |
1796 | tmake_file=m68k/t-next |
1797 | xmake_file=m68k/x-next | |
1798 | extra_objs=nextstep.o | |
1799 | extra_headers=math-68881.h | |
1800 | use_collect2=yes | |
1801 | float_format=m68k | |
1802 | ;; | |
1803 | m68k-next-nextstep[34]*) | |
1804 | tm_file=m68k/next.h | |
61ed06c3 HPN |
1805 | tmake_file=m68k/t-next |
1806 | xmake_file=m68k/x-next | |
1807 | extra_objs=nextstep.o | |
1808 | extra_parts="crtbegin.o crtend.o" | |
1809 | extra_headers=math-68881.h | |
1810 | float_format=m68k | |
1811 | if test x$enable_threads = xyes; then | |
1812 | thread_file='mach' | |
1813 | fi | |
1814 | ;; | |
1815 | m68k-sun-sunos3*) | |
1816 | if test x$with_fp = xno | |
1817 | then | |
1818 | tm_file=m68k/sun3n3.h | |
1819 | else | |
1820 | tm_file=m68k/sun3o3.h | |
1821 | float_format=m68k | |
1822 | fi | |
1823 | use_collect2=yes | |
1824 | extra_headers=math-68881.h | |
1825 | ;; | |
1826 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
1827 | if test x$with_fp = xno | |
1828 | then | |
1829 | tm_file=m68k/sun3n.h | |
1830 | else | |
1831 | tm_file=m68k/sun3.h | |
1832 | float_format=m68k | |
1833 | fi | |
1834 | use_collect2=yes | |
1835 | extra_headers=math-68881.h | |
1836 | ;; | |
1837 | m68k-wrs-vxworks*) | |
1838 | tm_file=m68k/vxm68k.h | |
1839 | tmake_file=m68k/t-vxworks68 | |
1840 | extra_headers=math-68881.h | |
1841 | thread_file='vxworks' | |
1842 | float_format=m68k | |
1843 | ;; | |
1844 | m68k-*-aout*) | |
1845 | tmake_file=m68k/t-m68kbare | |
1846 | tm_file="m68k/m68k-aout.h libgloss.h" | |
1847 | extra_headers=math-68881.h | |
1848 | float_format=m68k | |
1849 | ;; | |
1850 | m68k-*-coff*) | |
1851 | tmake_file=m68k/t-m68kbare | |
1852 | tm_file="m68k/m68k-coff.h dbx.h" | |
1853 | extra_headers=math-68881.h | |
1854 | float_format=m68k | |
1855 | ;; | |
1856 | m68020-*-elf* | m68k-*-elf*) | |
1857 | tm_file="m68k/m68020-elf.h" | |
cf30ef80 | 1858 | xm_defines=USG |
61ed06c3 HPN |
1859 | tmake_file=m68k/t-m68kelf |
1860 | header_files=math-68881.h | |
1861 | ;; | |
1862 | m68k-*-lynxos*) | |
1863 | if test x$gas = xyes | |
1864 | then | |
1865 | tm_file=m68k/lynx.h | |
1866 | else | |
1867 | tm_file=m68k/lynx-ng.h | |
1868 | fi | |
61ed06c3 HPN |
1869 | tmake_file=m68k/t-lynx |
1870 | extra_headers=math-68881.h | |
1871 | float_format=m68k | |
1872 | ;; | |
1873 | m68k*-*-netbsd*) | |
1874 | tm_file=m68k/netbsd.h | |
1875 | tmake_file=t-netbsd | |
1876 | float_format=m68k | |
1877 | use_collect2=yes | |
1878 | ;; | |
1879 | m68k*-*-openbsd*) | |
1880 | float_format=m68k | |
1881 | # we need collect2 until our bug is fixed... | |
1882 | use_collect2=yes | |
1883 | ;; | |
1884 | m68k-*-sysv3*) # Motorola m68k's running system V.3 | |
61ed06c3 | 1885 | xm_defines=USG |
61ed06c3 HPN |
1886 | extra_parts="crtbegin.o crtend.o" |
1887 | extra_headers=math-68881.h | |
1888 | float_format=m68k | |
1889 | ;; | |
1890 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
1891 | tm_file=m68k/m68kv4.h | |
61ed06c3 HPN |
1892 | xm_defines=USG |
1893 | tmake_file=t-svr4 | |
1894 | extra_parts="crtbegin.o crtend.o" | |
1895 | extra_headers=math-68881.h | |
1896 | float_format=m68k | |
1897 | ;; | |
1898 | m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux | |
1899 | # with a.out format | |
1900 | xmake_file=x-linux | |
1901 | tm_file=m68k/linux-aout.h | |
1902 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
1903 | extra_headers=math-68881.h | |
1904 | float_format=m68k | |
1905 | gnu_ld=yes | |
1906 | ;; | |
1907 | m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux | |
1908 | # with ELF format using the | |
1909 | # GNU/Linux C library 5 | |
1910 | xmake_file=x-linux | |
1911 | tm_file=m68k/linux.h | |
1912 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
1913 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
1914 | extra_headers=math-68881.h | |
1915 | float_format=m68k | |
1916 | gnu_ld=yes | |
1917 | ;; | |
1918 | m68k-*-linux*) # Motorola m68k's running GNU/Linux | |
1919 | # with ELF format using glibc 2 | |
1920 | # aka the GNU/Linux C library 6. | |
1921 | xmake_file=x-linux | |
1922 | tm_file=m68k/linux.h | |
1923 | tmake_file="t-linux m68k/t-linux" | |
1924 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
1925 | extra_headers=math-68881.h | |
1926 | float_format=m68k | |
1927 | gnu_ld=yes | |
1928 | if test x$enable_threads = xyes; then | |
1929 | thread_file='posix' | |
1930 | fi | |
1931 | ;; | |
1932 | m68k-*-psos*) | |
1933 | tmake_file=m68k/t-m68kbare | |
1934 | tm_file=m68k/m68k-psos.h | |
1935 | extra_headers=math-68881.h | |
1936 | float_format=m68k | |
1937 | ;; | |
1938 | m68k-*-rtemscoff*) | |
1939 | tmake_file="m68k/t-m68kbare t-rtems" | |
1940 | tm_file=m68k/rtems.h | |
1941 | extra_headers=math-68881.h | |
1942 | float_format=m68k | |
bc98ef7f JS |
1943 | if test x$enable_threads = xyes; then |
1944 | thread_file='rtems' | |
1945 | fi | |
61ed06c3 HPN |
1946 | ;; |
1947 | m68k-*-rtemself*|m68k-*-rtems*) | |
1948 | tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff" | |
1949 | tm_file=m68k/rtemself.h | |
1950 | extra_headers=math-68881.h | |
1951 | float_format=m68k | |
bc98ef7f JS |
1952 | if test x$enable_threads = xyes; then |
1953 | thread_file='rtems' | |
1954 | fi | |
61ed06c3 HPN |
1955 | ;; |
1956 | m88k-dg-dgux*) | |
cf30ef80 | 1957 | xm_defines=USG |
61ed06c3 HPN |
1958 | case $machine in |
1959 | m88k-dg-dguxbcs*) | |
1960 | tm_file=m88k/dguxbcs.h | |
1961 | tmake_file=m88k/t-dguxbcs | |
1962 | ;; | |
1963 | *) | |
1964 | tm_file=m88k/dgux.h | |
1965 | tmake_file=m88k/t-dgux | |
1966 | ;; | |
1967 | esac | |
1968 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
1969 | xmake_file=m88k/x-dgux | |
1970 | if test x$gas = xyes | |
1971 | then | |
1972 | tmake_file=m88k/t-dgux-gas | |
1973 | fi | |
1974 | ;; | |
1975 | m88k-dolphin-sysv3*) | |
cf30ef80 | 1976 | xm_defines=USG |
61ed06c3 HPN |
1977 | tm_file=m88k/dolph.h |
1978 | extra_parts="crtbegin.o crtend.o" | |
61ed06c3 HPN |
1979 | xmake_file=m88k/x-dolph |
1980 | if test x$gas = xyes | |
1981 | then | |
1982 | tmake_file=m88k/t-m88k-gas | |
1983 | fi | |
1984 | ;; | |
1985 | m88k-tektronix-sysv3) | |
cf30ef80 | 1986 | xm_defines=USG |
61ed06c3 HPN |
1987 | tm_file=m88k/tekXD88.h |
1988 | extra_parts="crtbegin.o crtend.o" | |
61ed06c3 HPN |
1989 | xmake_file=m88k/x-tekXD88 |
1990 | if test x$gas = xyes | |
1991 | then | |
1992 | tmake_file=m88k/t-m88k-gas | |
1993 | fi | |
1994 | ;; | |
1995 | m88k-*-aout*) | |
cf30ef80 | 1996 | xm_defines=USG |
61ed06c3 HPN |
1997 | tm_file=m88k/m88k-aout.h |
1998 | ;; | |
1999 | m88k-*-coff*) | |
cf30ef80 | 2000 | xm_defines=USG |
61ed06c3 HPN |
2001 | tm_file=m88k/m88k-coff.h |
2002 | tmake_file=m88k/t-bug | |
2003 | ;; | |
2004 | m88k-*-luna*) | |
2005 | tm_file=m88k/luna.h | |
2006 | extra_parts="crtbegin.o crtend.o" | |
2007 | if test x$gas = xyes | |
2008 | then | |
2009 | tmake_file=m88k/t-luna-gas | |
2010 | else | |
2011 | tmake_file=m88k/t-luna | |
2012 | fi | |
2013 | ;; | |
2014 | m88k-*-openbsd*) | |
2015 | tmake_file="${tmake_file} m88k/t-luna-gas" | |
2016 | tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}" | |
61ed06c3 HPN |
2017 | ;; |
2018 | m88k-*-sysv3*) | |
cf30ef80 | 2019 | xm_defines=USG |
61ed06c3 HPN |
2020 | tm_file=m88k/sysv3.h |
2021 | extra_parts="crtbegin.o crtend.o" | |
61ed06c3 HPN |
2022 | if test x$gas = xyes |
2023 | then | |
2024 | tmake_file=m88k/t-m88k-gas | |
2025 | fi | |
2026 | ;; | |
2027 | m88k-*-sysv4*) | |
cf30ef80 | 2028 | xm_defines=USG |
61ed06c3 HPN |
2029 | tm_file=m88k/sysv4.h |
2030 | extra_parts="crtbegin.o crtend.o" | |
61ed06c3 HPN |
2031 | tmake_file=m88k/t-sysv4 |
2032 | ;; | |
2033 | mcore-*-elf) | |
2034 | tm_file=mcore/mcore-elf.h | |
2035 | tmake_file=mcore/t-mcore | |
2036 | ;; | |
2037 | mcore-*-pe*) | |
2038 | tm_file=mcore/mcore-pe.h | |
2039 | tmake_file=mcore/t-mcore-pe | |
2040 | ;; | |
2041 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 | |
2042 | if test "x$gnu_ld" = xyes | |
2043 | then | |
2044 | tm_file="mips/iris6.h mips/iris6gld.h" | |
2045 | else | |
2046 | tm_file=mips/iris6.h | |
2047 | fi | |
2048 | tmake_file=mips/t-iris6 | |
cf30ef80 | 2049 | xm_defines=USG |
61ed06c3 HPN |
2050 | xmake_file=mips/x-iris6 |
2051 | # if test x$enable_threads = xyes; then | |
2052 | # thread_file='irix' | |
2053 | # fi | |
2054 | ;; | |
2055 | mips-wrs-vxworks) | |
2056 | tm_file="mips/elf.h mips/vxworks.h" | |
2057 | tmake_file=mips/t-ecoff | |
2058 | gas=yes | |
2059 | gnu_ld=yes | |
2060 | extra_parts="crtbegin.o crtend.o" | |
2061 | thread_file='vxworks' | |
2062 | ;; | |
2063 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 | |
2064 | tm_file="mips/iris6.h mips/cross64.h" | |
2065 | xm_defines=USG | |
84c041a1 | 2066 | xm_file=mips/xm-iris5.h |
61ed06c3 HPN |
2067 | xmake_file=mips/x-iris |
2068 | tmake_file=mips/t-cross64 | |
2069 | # See comment in mips/iris[56].h files. | |
2070 | use_collect2=yes | |
2071 | # if test x$enable_threads = xyes; then | |
2072 | # thread_file='irix' | |
2073 | # fi | |
2074 | ;; | |
2075 | mips-sni-sysv4) | |
2076 | if test x$gas = xyes | |
2077 | then | |
2078 | if test x$stabs = xyes | |
2079 | then | |
2080 | tm_file=mips/iris5gdb.h | |
2081 | else | |
2082 | tm_file="mips/sni-svr4.h mips/sni-gas.h" | |
2083 | fi | |
2084 | else | |
2085 | tm_file=mips/sni-svr4.h | |
2086 | fi | |
2087 | xm_defines=USG | |
61ed06c3 HPN |
2088 | tmake_file=mips/t-mips-gas |
2089 | if test x$gnu_ld != xyes | |
2090 | then | |
2091 | use_collect2=yes | |
2092 | fi | |
2093 | ;; | |
2094 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
2095 | if test x$gas = xyes | |
2096 | then | |
2097 | tm_file="mips/iris5.h mips/iris5gas.h" | |
2098 | if test x$stabs = xyes | |
2099 | then | |
2100 | tm_file="${tm_file} dbx.h" | |
2101 | fi | |
2102 | else | |
2103 | tm_file=mips/iris5.h | |
2104 | fi | |
2105 | xm_defines=USG | |
84c041a1 | 2106 | xm_file=mips/xm-iris5.h |
61ed06c3 HPN |
2107 | xmake_file=mips/x-iris |
2108 | # mips-tfile doesn't work yet | |
2109 | tmake_file=mips/t-mips-gas | |
2110 | # See comment in mips/iris5.h file. | |
2111 | use_collect2=yes | |
2112 | # if test x$enable_threads = xyes; then | |
2113 | # thread_file='irix' | |
2114 | # fi | |
2115 | ;; | |
2116 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
2117 | tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" | |
2118 | if test x$stabs = xyes; then | |
2119 | tm_file="${tm_file} dbx.h" | |
2120 | fi | |
2121 | xm_defines=USG | |
2122 | xmake_file=mips/x-iris | |
2123 | if test x$gas = xyes | |
2124 | then | |
2125 | tmake_file=mips/t-mips-gas | |
2126 | else | |
2127 | extra_passes="mips-tfile mips-tdump" | |
2128 | fi | |
2129 | if test x$gnu_ld != xyes | |
2130 | then | |
2131 | use_collect2=yes | |
2132 | fi | |
2133 | # if test x$enable_threads = xyes; then | |
2134 | # thread_file='irix' | |
2135 | # fi | |
2136 | ;; | |
2137 | mips-sgi-irix4*) # Mostly like a MIPS. | |
2138 | tm_file="mips/iris3.h ${tm_file} mips/iris4.h" | |
2139 | if test x$stabs = xyes; then | |
2140 | tm_file="${tm_file} dbx.h" | |
2141 | fi | |
2142 | xm_defines=USG | |
2143 | xmake_file=mips/x-iris | |
2144 | if test x$gas = xyes | |
2145 | then | |
2146 | tmake_file=mips/t-mips-gas | |
2147 | else | |
2148 | extra_passes="mips-tfile mips-tdump" | |
2149 | fi | |
2150 | if test x$gnu_ld != xyes | |
2151 | then | |
2152 | use_collect2=yes | |
2153 | fi | |
2154 | # if test x$enable_threads = xyes; then | |
2155 | # thread_file='irix' | |
2156 | # fi | |
2157 | ;; | |
2158 | mips-sgi-*) # Mostly like a MIPS. | |
2159 | tm_file="mips/iris3.h ${tm_file}" | |
2160 | if test x$stabs = xyes; then | |
2161 | tm_file="${tm_file} dbx.h" | |
2162 | fi | |
2163 | xm_defines=USG | |
2164 | xmake_file=mips/x-iris3 | |
2165 | if test x$gas = xyes | |
2166 | then | |
2167 | tmake_file=mips/t-mips-gas | |
2168 | else | |
2169 | extra_passes="mips-tfile mips-tdump" | |
2170 | fi | |
2171 | if test x$gnu_ld != xyes | |
2172 | then | |
2173 | use_collect2=yes | |
2174 | fi | |
2175 | ;; | |
2176 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
2177 | tm_file="mips/osfrose.h ${tm_file}" | |
2178 | xmake_file=mips/x-osfrose | |
2179 | tmake_file=mips/t-osfrose | |
2180 | extra_objs=halfpic.o | |
2181 | use_collect2=yes | |
2182 | ;; | |
2183 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
2184 | tm_file=mips/dec-osf1.h | |
2185 | if test x$stabs = xyes; then | |
2186 | tm_file="${tm_file} dbx.h" | |
2187 | fi | |
61ed06c3 HPN |
2188 | if test x$gas = xyes |
2189 | then | |
2190 | tmake_file=mips/t-mips-gas | |
2191 | else | |
2192 | tmake_file=mips/t-ultrix | |
2193 | extra_passes="mips-tfile mips-tdump" | |
2194 | fi | |
2195 | if test x$gnu_ld != xyes | |
2196 | then | |
2197 | use_collect2=yes | |
2198 | fi | |
2199 | ;; | |
2200 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
2201 | tm_file=mips/dec-bsd.h | |
2202 | if test x$gas = xyes | |
2203 | then | |
2204 | tmake_file=mips/t-mips-gas | |
2205 | else | |
2206 | tmake_file=mips/t-ultrix | |
2207 | extra_passes="mips-tfile mips-tdump" | |
2208 | fi | |
2209 | if test x$gnu_ld != xyes | |
2210 | then | |
2211 | use_collect2=yes | |
2212 | fi | |
2213 | ;; | |
2214 | mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD | |
2215 | tm_file=mips/netbsd.h | |
2216 | # On NetBSD, the headers are already okay, except for math.h. | |
2217 | tmake_file=t-netbsd | |
2218 | ;; | |
2219 | mips*-*-linux*) # Linux MIPS, either endian. | |
2220 | xmake_file=x-linux | |
2221 | case $machine in | |
2222 | mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;; | |
2223 | *) tm_file="mips/elf.h mips/linux.h" ;; | |
2224 | esac | |
2225 | tmake_file=t-linux | |
2226 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
2227 | gnu_ld=yes | |
2228 | gas=yes | |
2229 | if test x$enable_threads = xyes; then | |
2230 | thread_file='posix' | |
2231 | fi | |
2232 | ;; | |
2233 | mips*el-*-openbsd*) # mips little endian | |
2234 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
2235 | ;; | |
2236 | mips*-*-openbsd*) # mips big endian | |
2237 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
2238 | tm_file="mips/openbsd-be.h ${tm_file}" | |
2239 | ;; | |
2240 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. | |
2241 | tm_file="mips/news4.h ${tm_file}" | |
2242 | if test x$stabs = xyes; then | |
2243 | tm_file="${tm_file} dbx.h" | |
2244 | fi | |
2245 | if test x$gas = xyes | |
2246 | then | |
2247 | tmake_file=mips/t-mips-gas | |
2248 | else | |
2249 | extra_passes="mips-tfile mips-tdump" | |
2250 | fi | |
2251 | if test x$gnu_ld != xyes | |
2252 | then | |
2253 | use_collect2=yes | |
2254 | fi | |
2255 | xmake_file=mips/x-sony | |
2256 | ;; | |
2257 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
2258 | # That is based on svr4. | |
2259 | # t-svr4 is not right because this system doesn't use ELF. | |
2260 | tm_file="mips/news5.h ${tm_file}" | |
2261 | if test x$stabs = xyes; then | |
2262 | tm_file="${tm_file} dbx.h" | |
2263 | fi | |
2264 | xm_defines=USG | |
2265 | if test x$gas = xyes | |
2266 | then | |
2267 | tmake_file=mips/t-mips-gas | |
2268 | else | |
2269 | extra_passes="mips-tfile mips-tdump" | |
2270 | fi | |
2271 | if test x$gnu_ld != xyes | |
2272 | then | |
2273 | use_collect2=yes | |
2274 | fi | |
2275 | ;; | |
2276 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
2277 | tm_file="mips/svr4-5.h mips/svr4-t.h" | |
2278 | if test x$stabs = xyes; then | |
2279 | tm_file="${tm_file} dbx.h" | |
2280 | fi | |
2281 | xm_defines=USG | |
2282 | xmake_file=mips/x-sysv | |
2283 | if test x$gas = xyes | |
2284 | then | |
2285 | tmake_file=mips/t-mips-gas | |
2286 | extra_parts="crtbegin.o crtend.o" | |
2287 | else | |
2288 | tmake_file=mips/t-mips | |
2289 | extra_passes="mips-tfile mips-tdump" | |
2290 | fi | |
2291 | if test x$gnu_ld != xyes | |
2292 | then | |
2293 | use_collect2=yes | |
2294 | fi | |
2295 | ;; | |
2296 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
2297 | tm_file="mips/ultrix.h ${tm_file}" | |
2298 | if test x$stabs = xyes; then | |
2299 | tm_file="${tm_file} dbx.h" | |
2300 | fi | |
61ed06c3 HPN |
2301 | if test x$gas = xyes |
2302 | then | |
2303 | tmake_file=mips/t-mips-gas | |
2304 | else | |
2305 | tmake_file=mips/t-ultrix | |
2306 | extra_passes="mips-tfile mips-tdump" | |
2307 | fi | |
2308 | if test x$gnu_ld != xyes | |
2309 | then | |
2310 | use_collect2=yes | |
2311 | fi | |
2312 | ;; | |
2313 | mips-*-riscos[56789]bsd*) | |
2314 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
2315 | if test x$stabs = xyes; then | |
2316 | tm_file="${tm_file} dbx.h" | |
2317 | fi | |
2318 | if test x$gas = xyes | |
2319 | then | |
2320 | tmake_file=mips/t-bsd-gas | |
2321 | else | |
2322 | tmake_file=mips/t-bsd | |
2323 | extra_passes="mips-tfile mips-tdump" | |
2324 | fi | |
2325 | if test x$gnu_ld != xyes | |
2326 | then | |
2327 | use_collect2=yes | |
2328 | fi | |
2329 | ;; | |
2330 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
2331 | tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 | |
2332 | if test x$stabs = xyes; then | |
2333 | tm_file="${tm_file} dbx.h" | |
2334 | fi | |
2335 | if test x$gas = xyes | |
2336 | then | |
2337 | tmake_file=mips/t-bsd-gas | |
2338 | else | |
2339 | tmake_file=mips/t-bsd | |
2340 | extra_passes="mips-tfile mips-tdump" | |
2341 | fi | |
2342 | if test x$gnu_ld != xyes | |
2343 | then | |
2344 | use_collect2=yes | |
2345 | fi | |
2346 | ;; | |
2347 | mips-*-riscos[56789]sysv4*) | |
2348 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
2349 | if test x$stabs = xyes; then | |
2350 | tm_file="${tm_file} dbx.h" | |
2351 | fi | |
2352 | xmake_file=mips/x-sysv | |
2353 | if test x$gas = xyes | |
2354 | then | |
2355 | tmake_file=mips/t-svr4-gas | |
2356 | else | |
2357 | tmake_file=mips/t-svr4 | |
2358 | extra_passes="mips-tfile mips-tdump" | |
2359 | fi | |
2360 | if test x$gnu_ld != xyes | |
2361 | then | |
2362 | use_collect2=yes | |
2363 | fi | |
2364 | ;; | |
2365 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
2366 | tm_file="mips/svr4-4.h ${tm_file}" | |
2367 | if test x$stabs = xyes; then | |
2368 | tm_file="${tm_file} dbx.h" | |
2369 | fi | |
2370 | xm_defines=USG | |
2371 | xmake_file=mips/x-sysv | |
2372 | if test x$gas = xyes | |
2373 | then | |
2374 | tmake_file=mips/t-svr4-gas | |
2375 | else | |
2376 | tmake_file=mips/t-svr4 | |
2377 | extra_passes="mips-tfile mips-tdump" | |
2378 | fi | |
2379 | if test x$gnu_ld != xyes | |
2380 | then | |
2381 | use_collect2=yes | |
2382 | fi | |
2383 | ;; | |
2384 | mips-*-riscos[56789]sysv*) | |
2385 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
2386 | if test x$stabs = xyes; then | |
2387 | tm_file="${tm_file} dbx.h" | |
2388 | fi | |
2389 | xm_defines=USG | |
2390 | xmake_file=mips/x-sysv | |
2391 | if test x$gas = xyes | |
2392 | then | |
2393 | tmake_file=mips/t-svr3-gas | |
2394 | else | |
2395 | tmake_file=mips/t-svr3 | |
2396 | extra_passes="mips-tfile mips-tdump" | |
2397 | fi | |
2398 | if test x$gnu_ld != xyes | |
2399 | then | |
2400 | use_collect2=yes | |
2401 | fi | |
2402 | ;; | |
2403 | mips-*-sysv* | mips-*-riscos*sysv*) | |
2404 | tm_file="mips/svr3-4.h ${tm_file}" | |
2405 | if test x$stabs = xyes; then | |
2406 | tm_file="${tm_file} dbx.h" | |
2407 | fi | |
2408 | xm_defines=USG | |
2409 | xmake_file=mips/x-sysv | |
2410 | if test x$gas = xyes | |
2411 | then | |
2412 | tmake_file=mips/t-svr3-gas | |
2413 | else | |
2414 | tmake_file=mips/t-svr3 | |
2415 | extra_passes="mips-tfile mips-tdump" | |
2416 | fi | |
2417 | if test x$gnu_ld != xyes | |
2418 | then | |
2419 | use_collect2=yes | |
2420 | fi | |
2421 | ;; | |
2422 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
2423 | tm_file=mips/mips-5.h | |
2424 | if test x$stabs = xyes; then | |
2425 | tm_file="${tm_file} dbx.h" | |
2426 | fi | |
2427 | if test x$gas = xyes | |
2428 | then | |
2429 | tmake_file=mips/t-mips-gas | |
2430 | else | |
2431 | extra_passes="mips-tfile mips-tdump" | |
2432 | fi | |
2433 | if test x$gnu_ld != xyes | |
2434 | then | |
2435 | use_collect2=yes | |
2436 | fi | |
2437 | ;; | |
2438 | mips-*-gnu*) | |
2439 | ;; | |
2440 | mipsel-*-ecoff*) | |
2441 | tm_file=mips/ecoffl.h | |
2442 | if test x$stabs = xyes; then | |
2443 | tm_file="${tm_file} dbx.h" | |
2444 | fi | |
2445 | tmake_file=mips/t-ecoff | |
2446 | ;; | |
2447 | mips-*-ecoff*) | |
2448 | tm_file="gofast.h mips/ecoff.h" | |
2449 | if test x$stabs = xyes; then | |
2450 | tm_file="${tm_file} dbx.h" | |
2451 | fi | |
2452 | tmake_file=mips/t-ecoff | |
2453 | ;; | |
2454 | mipsel-*-elf*) | |
2455 | tm_file="mips/elfl.h" | |
2456 | tmake_file=mips/t-elf | |
2457 | ;; | |
2458 | mips-*-elf*) | |
2459 | tm_file="mips/elf.h" | |
2460 | tmake_file=mips/t-elf | |
2461 | ;; | |
2462 | mips64el-*-elf*) | |
2463 | tm_file="mips/elfl64.h" | |
2464 | tmake_file=mips/t-elf | |
2465 | ;; | |
2466 | mips64orionel-*-elf*) | |
2467 | tm_file="mips/elforion.h mips/elfl64.h" | |
2468 | tmake_file=mips/t-elf | |
2469 | ;; | |
2470 | mips64-*-elf*) | |
2471 | tm_file="mips/elf64.h" | |
2472 | tmake_file=mips/t-elf | |
2473 | ;; | |
2474 | mips64orion-*-elf*) | |
2475 | tm_file="mips/elforion.h mips/elf64.h" | |
2476 | tmake_file=mips/t-elf | |
2477 | ;; | |
2478 | mips64orion-*-rtems*) | |
2479 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" | |
2480 | tmake_file="mips/t-elf t-rtems" | |
bc98ef7f JS |
2481 | if test x$enable_threads = xyes; then |
2482 | thread_file='rtems' | |
2483 | fi | |
2484 | ;; | |
2485 | mips*-*-rtems*) | |
2486 | tm_file="mips/elf.h mips/rtems.h" | |
2487 | tmake_file="mips/t-elf t-rtems" | |
2488 | if test x$enable_threads = xyes; then | |
2489 | thread_file='rtems' | |
2490 | fi | |
61ed06c3 HPN |
2491 | ;; |
2492 | mipstx39el-*-elf*) | |
2493 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h" | |
2494 | tmake_file=mips/t-r3900 | |
2495 | ;; | |
2496 | mipstx39-*-elf*) | |
2497 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h" | |
2498 | tmake_file=mips/t-r3900 | |
2499 | ;; | |
2500 | mips-*-*) # Default MIPS RISC-OS 4.0. | |
2501 | if test x$stabs = xyes; then | |
2502 | tm_file="${tm_file} dbx.h" | |
2503 | fi | |
2504 | if test x$gas = xyes | |
2505 | then | |
2506 | tmake_file=mips/t-mips-gas | |
2507 | else | |
2508 | extra_passes="mips-tfile mips-tdump" | |
2509 | fi | |
2510 | if test x$gnu_ld != xyes | |
2511 | then | |
2512 | use_collect2=yes | |
2513 | fi | |
2514 | ;; | |
2515 | mn10200-*-*) | |
2516 | float_format=i32 | |
2517 | cpu_type=mn10200 | |
2518 | tm_file="mn10200/mn10200.h" | |
2519 | if test x$stabs = xyes | |
2520 | then | |
2521 | tm_file="${tm_file} dbx.h" | |
2522 | fi | |
2523 | use_collect2=no | |
2524 | ;; | |
2525 | mn10300-*-*) | |
2526 | cpu_type=mn10300 | |
2527 | tm_file="mn10300/mn10300.h" | |
2528 | if test x$stabs = xyes | |
2529 | then | |
2530 | tm_file="${tm_file} dbx.h" | |
2531 | fi | |
2532 | use_collect2=no | |
2533 | ;; | |
2534 | ns32k-encore-bsd*) | |
2535 | tm_file=ns32k/encore.h | |
2536 | use_collect2=yes | |
2537 | ;; | |
2538 | ns32k-sequent-bsd*) | |
2539 | tm_file=ns32k/sequent.h | |
2540 | use_collect2=yes | |
2541 | ;; | |
2542 | ns32k-tek6100-bsd*) | |
2543 | tm_file=ns32k/tek6100.h | |
2544 | use_collect2=yes | |
2545 | ;; | |
2546 | ns32k-tek6200-bsd*) | |
2547 | tm_file=ns32k/tek6200.h | |
2548 | use_collect2=yes | |
2549 | ;; | |
2550 | ns32k-merlin-*) | |
2551 | tm_file=ns32k/merlin.h | |
2552 | use_collect2=yes | |
2553 | ;; | |
2554 | ns32k-pc532-mach*) | |
2555 | tm_file=ns32k/pc532-mach.h | |
2556 | use_collect2=yes | |
2557 | ;; | |
2558 | ns32k-pc532-minix*) | |
2559 | tm_file=ns32k/pc532-min.h | |
d2a2648c | 2560 | xm_defines='USG HZ=60' |
61ed06c3 HPN |
2561 | use_collect2=yes |
2562 | ;; | |
2563 | ns32k-*-netbsd*) | |
2564 | tm_file=ns32k/netbsd.h | |
61ed06c3 HPN |
2565 | # On NetBSD, the headers are already okay, except for math.h. |
2566 | tmake_file=t-netbsd | |
2567 | use_collect2=yes | |
2568 | ;; | |
2569 | pdp11-*-bsd) | |
2570 | tm_file="${tm_file} pdp11/2bsd.h" | |
2571 | ;; | |
2572 | pdp11-*-*) | |
2573 | ;; | |
2574 | avr-*-*) | |
2575 | ;; | |
2576 | ns32k-*-openbsd*) | |
2577 | # Nothing special | |
2578 | ;; | |
2579 | pj*-linux*) | |
2580 | tm_file="svr4.h pj/linux.h ${tm_file}" | |
2581 | ;; | |
2582 | pj-*) | |
2583 | ;; | |
2584 | pjl-*) | |
2585 | tm_file="svr4.h pj/pjl.h ${tm_file}" | |
2586 | ;; | |
2587 | ||
2588 | romp-*-aos*) | |
2589 | use_collect2=yes | |
2590 | ;; | |
2591 | romp-*-mach*) | |
61ed06c3 HPN |
2592 | use_collect2=yes |
2593 | ;; | |
2594 | romp-*-openbsd*) | |
2595 | # Nothing special | |
2596 | ;; | |
2597 | powerpc-*-openbsd*) | |
e1b71de9 | 2598 | tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd" |
61ed06c3 HPN |
2599 | ;; |
2600 | powerpc-*-beos*) | |
2601 | cpu_type=rs6000 | |
e556ad19 | 2602 | tm_file="${tm_file} rs6000/aix.h rs6000/beos.h" |
cf30ef80 | 2603 | xm_defines=USG |
61ed06c3 HPN |
2604 | xm_file=rs6000/xm-beos.h |
2605 | tmake_file=rs6000/t-beos | |
61ed06c3 | 2606 | ;; |
18922061 | 2607 | powerpc-*-darwin*) |
ee890fe2 SS |
2608 | cpu_type=rs6000 |
2609 | tm_file="${tm_file} darwin.h rs6000/darwin.h" | |
2610 | tm_p_file="${tm_p_file} darwin-protos.h" | |
2611 | tmake_file=rs6000/t-darwin | |
84c041a1 | 2612 | xm_file=rs6000/xm-darwin.h |
18922061 | 2613 | xmake_file=rs6000/x-darwin |
ee890fe2 SS |
2614 | extra_objs="darwin.o" |
2615 | # Darwin linker does collect2 functionality | |
2616 | use_collect2=no | |
18922061 | 2617 | ;; |
61ed06c3 | 2618 | powerpc-*-sysv*) |
e556ad19 | 2619 | tm_file="${tm_file} svr4.h rs6000/sysv4.h" |
61ed06c3 HPN |
2620 | xm_defines="USG POSIX" |
2621 | extra_headers=ppc-asm.h | |
2622 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
61ed06c3 | 2623 | ;; |
8da6d80e | 2624 | powerpc-*-chorusos*) |
cf30ef80 | 2625 | xm_defines=USG |
8da6d80e CC |
2626 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/chorus.h" |
2627 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
2628 | extra_headers=ppc-asm.h | |
2629 | case x${enable_threads} in | |
2630 | xyes | xpthreads | xposix) | |
2631 | thread_file='posix' | |
2632 | ;; | |
2633 | esac | |
2634 | ;; | |
61ed06c3 | 2635 | powerpc-*-eabiaix*) |
cf30ef80 | 2636 | xm_defines=USG |
e556ad19 | 2637 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h" |
61ed06c3 HPN |
2638 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2639 | extra_headers=ppc-asm.h | |
2640 | ;; | |
2641 | powerpc-*-eabisim*) | |
cf30ef80 | 2642 | xm_defines=USG |
e556ad19 | 2643 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h" |
61ed06c3 HPN |
2644 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2645 | extra_headers=ppc-asm.h | |
2646 | ;; | |
2647 | powerpc-*-elf*) | |
cf30ef80 | 2648 | xm_defines=USG |
e556ad19 | 2649 | tm_file="${tm_file} svr4.h rs6000/sysv4.h" |
61ed06c3 HPN |
2650 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2651 | extra_headers=ppc-asm.h | |
2652 | ;; | |
2653 | powerpc-*-eabi*) | |
cf30ef80 | 2654 | xm_defines=USG |
e556ad19 | 2655 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h" |
61ed06c3 HPN |
2656 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2657 | extra_headers=ppc-asm.h | |
2658 | ;; | |
2659 | powerpc-*-rtems*) | |
cf30ef80 | 2660 | xm_defines=USG |
e556ad19 | 2661 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h" |
61ed06c3 HPN |
2662 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" |
2663 | extra_headers=ppc-asm.h | |
bc98ef7f JS |
2664 | if test x$enable_threads = xyes; then |
2665 | thread_file='rtems' | |
2666 | fi | |
61ed06c3 HPN |
2667 | ;; |
2668 | powerpc-*-linux*libc1) | |
e556ad19 | 2669 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h" |
b19a539e | 2670 | xm_defines='USG POSIX' |
61ed06c3 HPN |
2671 | out_file=rs6000/rs6000.c |
2672 | tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
2673 | xmake_file=x-linux | |
2674 | extra_headers=ppc-asm.h | |
2675 | if test x$enable_threads = xyes; then | |
2676 | thread_file='posix' | |
2677 | fi | |
2678 | ;; | |
2679 | powerpc-*-linux*) | |
e556ad19 | 2680 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h" |
61ed06c3 HPN |
2681 | xm_defines="USG ${xm_defines}" |
2682 | out_file=rs6000/rs6000.c | |
2683 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" | |
2684 | xmake_file=x-linux | |
2685 | extra_headers=ppc-asm.h | |
2686 | if test x$enable_threads = xyes; then | |
2687 | thread_file='posix' | |
2688 | fi | |
2689 | ;; | |
2690 | powerpc-wrs-vxworks*) | |
2691 | cpu_type=rs6000 | |
61ed06c3 | 2692 | xm_defines="USG POSIX" |
e556ad19 | 2693 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h" |
61ed06c3 HPN |
2694 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2695 | extra_headers=ppc-asm.h | |
2696 | thread_file='vxworks' | |
2697 | ;; | |
2698 | powerpcle-wrs-vxworks*) | |
2699 | cpu_type=rs6000 | |
61ed06c3 | 2700 | xm_defines="USG POSIX" |
e556ad19 | 2701 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h" |
61ed06c3 HPN |
2702 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2703 | extra_headers=ppc-asm.h | |
2704 | thread_file='vxworks' | |
2705 | ;; | |
2706 | powerpcle-*-sysv*) | |
e556ad19 | 2707 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h" |
61ed06c3 HPN |
2708 | xm_defines="USG POSIX" |
2709 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
61ed06c3 HPN |
2710 | extra_headers=ppc-asm.h |
2711 | ;; | |
2712 | powerpcle-*-elf*) | |
cf30ef80 | 2713 | xm_defines=USG |
e556ad19 | 2714 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h" |
61ed06c3 HPN |
2715 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2716 | extra_headers=ppc-asm.h | |
2717 | ;; | |
2718 | powerpcle-*-eabisim*) | |
cf30ef80 | 2719 | xm_defines=USG |
e556ad19 | 2720 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h" |
61ed06c3 HPN |
2721 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2722 | extra_headers=ppc-asm.h | |
2723 | ;; | |
2724 | powerpcle-*-eabi*) | |
cf30ef80 | 2725 | xm_defines=USG |
e556ad19 | 2726 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h" |
61ed06c3 HPN |
2727 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2728 | extra_headers=ppc-asm.h | |
2729 | ;; | |
2730 | powerpcle-*-solaris2*) | |
e556ad19 | 2731 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h" |
61ed06c3 HPN |
2732 | xm_defines="USG POSIX" |
2733 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
61ed06c3 HPN |
2734 | extra_headers=ppc-asm.h |
2735 | ;; | |
2736 | rs6000-ibm-aix3.[01]*) | |
cf30ef80 | 2737 | xm_defines=USG |
e556ad19 | 2738 | tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h" |
61ed06c3 HPN |
2739 | xmake_file=rs6000/x-aix31 |
2740 | float_format=none | |
2741 | use_collect2=yes | |
2742 | ;; | |
2743 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
cf30ef80 | 2744 | xm_defines=USG |
e556ad19 | 2745 | tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h" |
db009825 | 2746 | tmake_file=rs6000/t-newas |
61ed06c3 HPN |
2747 | float_format=none |
2748 | use_collect2=yes | |
2749 | ;; | |
2750 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) | |
cf30ef80 | 2751 | xm_defines=USG |
e556ad19 | 2752 | tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h" |
db009825 | 2753 | tmake_file=rs6000/t-newas |
61ed06c3 HPN |
2754 | xmake_file=rs6000/x-aix41 |
2755 | float_format=none | |
2756 | use_collect2=yes | |
2757 | ;; | |
2758 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) | |
cf30ef80 | 2759 | xm_defines=USG |
e556ad19 | 2760 | tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h" |
61ed06c3 HPN |
2761 | tmake_file=rs6000/t-aix43 |
2762 | xmake_file=rs6000/x-aix41 | |
2763 | float_format=none | |
2764 | use_collect2=yes | |
2765 | thread_file='aix' | |
2766 | ;; | |
2767 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
cf30ef80 | 2768 | xm_defines=USG |
05dba9ee | 2769 | tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h" |
61ed06c3 HPN |
2770 | tmake_file=rs6000/t-aix43 |
2771 | xmake_file=rs6000/x-aix41 | |
2772 | float_format=none | |
2773 | use_collect2=yes | |
2774 | thread_file='aix' | |
2775 | ;; | |
2776 | rs6000-ibm-aix*) | |
cf30ef80 | 2777 | xm_defines=USG |
2d6dc19d | 2778 | tm_file="${tm_file} rs6000/aix.h" |
61ed06c3 HPN |
2779 | float_format=none |
2780 | use_collect2=yes | |
2781 | ;; | |
2782 | rs6000-bull-bosx) | |
cf30ef80 | 2783 | xm_defines=USG |
2d6dc19d | 2784 | tm_file="${tm_file} rs6000/aix.h" |
61ed06c3 HPN |
2785 | float_format=none |
2786 | use_collect2=yes | |
2787 | ;; | |
2788 | rs6000-*-mach*) | |
2789 | tm_file=rs6000/mach.h | |
cf30ef80 | 2790 | xm_defines=USG |
61ed06c3 HPN |
2791 | use_collect2=yes |
2792 | ;; | |
2793 | rs6000-*-lynxos*) | |
2794 | tm_file=rs6000/lynx.h | |
61ed06c3 | 2795 | tmake_file=rs6000/t-rs6000 |
61ed06c3 HPN |
2796 | use_collect2=yes |
2797 | ;; | |
2798 | sh-*-elf*) | |
2799 | tmake_file="sh/t-sh sh/t-elf" | |
2800 | tm_file="sh/sh.h sh/elf.h" | |
2801 | float_format=sh | |
2802 | ;; | |
2803 | sh-*-rtemself*) | |
2804 | tmake_file="sh/t-sh sh/t-elf t-rtems" | |
2805 | tm_file="sh/sh.h sh/elf.h sh/rtemself.h" | |
2806 | float_format=sh | |
bc98ef7f JS |
2807 | if test x$enable_threads = xyes; then |
2808 | thread_file='rtems' | |
2809 | fi | |
61ed06c3 HPN |
2810 | ;; |
2811 | sh-*-rtems*) | |
2812 | tmake_file="sh/t-sh t-rtems" | |
2813 | tm_file="sh/sh.h sh/rtems.h" | |
2814 | float_format=sh | |
bc98ef7f JS |
2815 | if test x$enable_threads = xyes; then |
2816 | thread_file='rtems' | |
2817 | fi | |
61ed06c3 HPN |
2818 | ;; |
2819 | sh-*-linux*) | |
2820 | tm_file="sh/sh.h sh/elf.h sh/linux.h" | |
2821 | tmake_file="sh/t-sh sh/t-elf sh/t-linux" | |
2822 | xmake_file=x-linux | |
2823 | gas=yes gnu_ld=yes | |
2824 | if test x$enable_threads = xyes; then | |
2825 | thread_file='posix' | |
2826 | fi | |
2827 | float_format=sh | |
2828 | ;; | |
2829 | sh-*-*) | |
2830 | float_format=sh | |
2831 | ;; | |
2832 | sparc-tti-*) | |
2833 | tm_file=sparc/pbd.h | |
61ed06c3 HPN |
2834 | xm_defines=USG |
2835 | ;; | |
e428b937 RK |
2836 | sparc64-wrs-vxworks*) |
2837 | tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h" | |
2838 | tmake_file=sparc/t-vxsparc64 | |
2839 | use_collect2=yes | |
2840 | ;; | |
61ed06c3 HPN |
2841 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) |
2842 | tm_file=sparc/vxsparc.h | |
2843 | tmake_file=sparc/t-vxsparc | |
2844 | use_collect2=yes | |
2845 | thread_file='vxworks' | |
2846 | ;; | |
2847 | sparc-*-aout*) | |
2848 | tmake_file=sparc/t-sparcbare | |
2849 | tm_file="sparc/aout.h libgloss.h" | |
2850 | ;; | |
2851 | sparc-*-netbsd*) | |
2852 | tm_file=sparc/netbsd.h | |
2853 | tmake_file=t-netbsd | |
2854 | use_collect2=yes | |
2855 | ;; | |
2856 | sparc-*-openbsd*) | |
2857 | # we need collect2 until our bug is fixed... | |
2858 | use_collect2=yes | |
2859 | ;; | |
2860 | sparc-*-bsd*) | |
2861 | tm_file=sparc/bsd.h | |
2862 | ;; | |
8da6d80e CC |
2863 | sparc-*-chorusos*) |
2864 | tm_file="sparc/sol2.h sparc/elf.h sparc/chorus.h" | |
2865 | tmake_file=sparc/t-chorus-elf | |
2866 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
2867 | float_format=i64 | |
2868 | case x${enable_threads} in | |
2869 | xyes | xpthreads | xposix) | |
2870 | thread_file='posix' | |
2871 | ;; | |
2872 | esac | |
2873 | ;; | |
61ed06c3 | 2874 | sparc-*-elf*) |
fbd68e5d | 2875 | tm_file="sparc/sol2.h sparc/elf.h" |
61ed06c3 HPN |
2876 | tmake_file=sparc/t-elf |
2877 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
2878 | #float_format=i128 | |
2879 | float_format=i64 | |
2880 | ;; | |
2881 | sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out | |
61ed06c3 HPN |
2882 | tm_file=sparc/linux-aout.h |
2883 | xmake_file=x-linux | |
2884 | gnu_ld=yes | |
2885 | ;; | |
2886 | sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5 | |
61ed06c3 HPN |
2887 | xmake_file=x-linux |
2888 | tm_file=sparc/linux.h | |
2889 | tmake_file="t-linux t-linux-gnulibc1" | |
2890 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
2891 | gnu_ld=yes | |
2892 | float_format=sparc | |
2893 | ;; | |
2894 | sparc-*-linux*) # Sparc's running GNU/Linux, libc6 | |
61ed06c3 HPN |
2895 | xmake_file=x-linux |
2896 | tm_file=sparc/linux.h | |
2897 | tmake_file="t-linux" | |
2898 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
2899 | gnu_ld=yes | |
2900 | if test x$enable_threads = xyes; then | |
2901 | thread_file='posix' | |
2902 | fi | |
2903 | float_format=sparc | |
2904 | ;; | |
2905 | sparc-*-lynxos*) | |
2906 | if test x$gas = xyes | |
2907 | then | |
2908 | tm_file=sparc/lynx.h | |
2909 | else | |
2910 | tm_file=sparc/lynx-ng.h | |
2911 | fi | |
61ed06c3 | 2912 | tmake_file=sparc/t-sunos41 |
61ed06c3 HPN |
2913 | ;; |
2914 | sparc-*-rtemsaout*) | |
2915 | tmake_file="sparc/t-sparcbare t-rtems" | |
2916 | tm_file=sparc/rtems.h | |
bc98ef7f JS |
2917 | if test x$enable_threads = xyes; then |
2918 | thread_file='rtems' | |
2919 | fi | |
61ed06c3 HPN |
2920 | ;; |
2921 | sparc-*-rtems*|sparc-*-rtemself*) | |
fbd68e5d | 2922 | tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h" |
61ed06c3 HPN |
2923 | tmake_file="sparc/t-elf t-rtems" |
2924 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
2925 | #float_format=i128 | |
2926 | float_format=i64 | |
bc98ef7f JS |
2927 | if test x$enable_threads = xyes; then |
2928 | thread_file='rtems' | |
2929 | fi | |
61ed06c3 HPN |
2930 | ;; |
2931 | sparcv9-*-solaris2*) | |
2932 | if test x$gnu_ld = xyes | |
2933 | then | |
2934 | tm_file=sparc/sol2-64.h | |
2935 | else | |
2936 | tm_file=sparc/sol2-sld-64.h | |
2937 | fi | |
61ed06c3 HPN |
2938 | xm_defines="USG POSIX" |
2939 | tmake_file="sparc/t-sol2 sparc/t-sol2-64" | |
2940 | if test x$gnu_ld = xyes; then | |
2941 | tmake_file="$tmake_file sparc/t-slibgcc" | |
2942 | else | |
2943 | tmake_file="$tmake_file sparc/t-slibgcc-sld" | |
2944 | fi | |
61ed06c3 HPN |
2945 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" |
2946 | float_format=none | |
2947 | if test x${enable_threads} = x ; then | |
2948 | enable_threads=$have_pthread_h | |
2949 | if test x${enable_threads} = x ; then | |
2950 | enable_threads=$have_thread_h | |
2951 | fi | |
2952 | fi | |
2953 | if test x${enable_threads} = xyes ; then | |
2954 | if test x${have_pthread_h} = xyes ; then | |
2955 | thread_file='posix' | |
2956 | else | |
2957 | thread_file='solaris' | |
2958 | fi | |
2959 | fi | |
2960 | ;; | |
2961 | sparc-hal-solaris2*) | |
61ed06c3 HPN |
2962 | xm_defines="USG POSIX" |
2963 | tm_file="sparc/sol2.h sparc/hal.h" | |
2964 | tmake_file="sparc/t-halos sparc/t-sol2" | |
2965 | if test x$gnu_ld = xyes; then | |
2966 | tmake_file="$tmake_file sparc/t-slibgcc" | |
2967 | else | |
2968 | tmake_file="$tmake_file sparc/t-slibgcc-sld" | |
2969 | fi | |
61ed06c3 HPN |
2970 | extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o" |
2971 | case $machine in | |
2972 | *-*-solaris2.[0-4]) | |
2973 | float_format=i128 | |
2974 | ;; | |
2975 | *) | |
2976 | float_format=none | |
2977 | ;; | |
2978 | esac | |
2979 | thread_file='solaris' | |
2980 | ;; | |
2981 | sparc-*-solaris2*) | |
2982 | if test x$gnu_ld = xyes | |
2983 | then | |
2984 | tm_file=sparc/sol2.h | |
2985 | else | |
2986 | tm_file=sparc/sol2-sld.h | |
2987 | fi | |
61ed06c3 HPN |
2988 | xm_defines="USG POSIX" |
2989 | tmake_file=sparc/t-sol2 | |
2990 | if test x$gnu_ld = xyes; then | |
2991 | tmake_file="$tmake_file sparc/t-slibgcc" | |
2992 | else | |
2993 | tmake_file="$tmake_file sparc/t-slibgcc-sld" | |
2994 | fi | |
61ed06c3 HPN |
2995 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
2996 | # At the moment, 32-to-64 cross compilation doesn't work. | |
2997 | # case $machine in | |
2998 | # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;; | |
2999 | # *-*-solaris2*) | |
3000 | # if test x$gnu_ld = xyes | |
3001 | # then | |
3002 | # tm_file=sparc/sol2-64.h | |
3003 | # else | |
3004 | # tm_file=sparc/sol2-sld-64.h | |
3005 | # fi | |
3006 | # tmake_file="$tmake_file sparc/t-sol2-64" | |
3007 | # ;; | |
3008 | # esac | |
3009 | case $machine in | |
3010 | *-*-solaris2.[0-4]) | |
3011 | float_format=i128 | |
3012 | ;; | |
3013 | *) | |
3014 | float_format=none | |
3015 | ;; | |
3016 | esac | |
3017 | if test x${enable_threads} = x; then | |
3018 | enable_threads=$have_pthread_h | |
3019 | if test x${enable_threads} = x; then | |
3020 | enable_threads=$have_thread_h | |
3021 | fi | |
3022 | fi | |
3023 | if test x${enable_threads} = xyes; then | |
3024 | if test x${have_pthread_h} = xyes; then | |
3025 | thread_file='posix' | |
3026 | else | |
3027 | thread_file='solaris' | |
3028 | fi | |
3029 | fi | |
3030 | ;; | |
3031 | sparc-*-sunos4.0*) | |
3032 | tm_file=sparc/sunos4.h | |
3033 | tmake_file=sparc/t-sunos40 | |
3034 | use_collect2=yes | |
3035 | ;; | |
3036 | sparc-*-sunos4*) | |
3037 | tm_file=sparc/sunos4.h | |
3038 | tmake_file=sparc/t-sunos41 | |
3039 | use_collect2=yes | |
3040 | if test x$gas = xyes; then | |
3041 | tm_file="${tm_file} sparc/sun4gas.h" | |
3042 | fi | |
3043 | ;; | |
3044 | sparc-*-sunos3*) | |
3045 | tm_file=sparc/sun4o3.h | |
3046 | use_collect2=yes | |
3047 | ;; | |
3048 | sparc-*-sysv4*) | |
3049 | tm_file=sparc/sysv4.h | |
61ed06c3 HPN |
3050 | xm_defines="USG POSIX" |
3051 | tmake_file=t-svr4 | |
61ed06c3 HPN |
3052 | extra_parts="crtbegin.o crtend.o" |
3053 | ;; | |
3054 | sparc-*-vxsim*) | |
61ed06c3 HPN |
3055 | xm_defines="USG POSIX" |
3056 | tm_file=sparc/vxsim.h | |
3057 | tmake_file=sparc/t-vxsparc | |
61ed06c3 HPN |
3058 | ;; |
3059 | sparclet-*-aout*) | |
3060 | tm_file="sparc/splet.h libgloss.h" | |
3061 | tmake_file=sparc/t-splet | |
3062 | ;; | |
3063 | sparclite-*-coff*) | |
3064 | tm_file="sparc/litecoff.h libgloss.h" | |
3065 | tmake_file=sparc/t-sparclite | |
3066 | ;; | |
3067 | sparclite-*-aout*) | |
3068 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
3069 | tmake_file=sparc/t-sparclite | |
3070 | ;; | |
3071 | sparclite-*-elf*) | |
fbd68e5d | 3072 | tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h" |
61ed06c3 HPN |
3073 | tmake_file=sparc/t-sparclite |
3074 | extra_parts="crtbegin.o crtend.o" | |
3075 | ;; | |
3076 | sparc86x-*-aout*) | |
3077 | tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h" | |
3078 | tmake_file=sparc/t-sp86x | |
3079 | ;; | |
3080 | sparc86x-*-elf*) | |
fbd68e5d | 3081 | tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h" |
61ed06c3 HPN |
3082 | tmake_file=sparc/t-sp86x |
3083 | extra_parts="crtbegin.o crtend.o" | |
3084 | ;; | |
3085 | sparc64-*-aout*) | |
3086 | tmake_file=sparc/t-sp64 | |
3087 | tm_file=sparc/sp64-aout.h | |
3088 | ;; | |
3089 | sparc64-*-elf*) | |
3090 | tmake_file=sparc/t-sp64 | |
3091 | tm_file=sparc/sp64-elf.h | |
3092 | extra_parts="crtbegin.o crtend.o" | |
3093 | ;; | |
3094 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux | |
3095 | tmake_file="t-linux sparc/t-linux64" | |
61ed06c3 HPN |
3096 | tm_file=sparc/linux64.h |
3097 | xmake_file=x-linux | |
3098 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
3099 | gnu_ld=yes | |
3100 | if test x$enable_threads = xyes; then | |
3101 | thread_file='posix' | |
3102 | fi | |
3103 | float_format=sparc | |
3104 | ;; | |
d19fb8e3 NC |
3105 | strongarm-*-elf*) |
3106 | tm_file=arm/strongarm-elf.h | |
3107 | tmake_file=arm/t-strongarm-elf | |
3108 | out_file=arm/arm.c | |
d19fb8e3 NC |
3109 | md_file=arm/arm.md |
3110 | ;; | |
3111 | strongarm-*-coff*) | |
3112 | tm_file=arm/strongarm-coff.h | |
3113 | tmake_file=arm/t-strongarm-coff | |
3114 | out_file=arm/arm.c | |
d19fb8e3 NC |
3115 | md_file=arm/arm.md |
3116 | ;; | |
3117 | strongarm-*-pe) | |
3118 | tm_file=arm/strongarm-pe.h | |
3119 | tmake_file=arm/t-strongarm-pe | |
3120 | out_file=arm/arm.c | |
d19fb8e3 NC |
3121 | md_file=arm/arm.md |
3122 | extra_objs=pe.o | |
3123 | ;; | |
61ed06c3 HPN |
3124 | thumb*-*-*) |
3125 | { echo "config.gcc: error: | |
9e8fc4b8 | 3126 | *** The Thumb targets have been deprecated. The equivalent |
cfd1c7ea | 3127 | *** ARM based toolchain can now generate Thumb instructions |
61ed06c3 HPN |
3128 | *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; } |
3129 | ;; | |
3130 | v850-*-rtems*) | |
3131 | cpu_type=v850 | |
3132 | tm_file="v850/rtems.h" | |
61ed06c3 HPN |
3133 | tmake_file="v850/t-v850 t-rtems" |
3134 | if test x$stabs = xyes | |
3135 | then | |
3136 | tm_file="${tm_file} dbx.h" | |
3137 | fi | |
3138 | use_collect2=no | |
c3edd394 NC |
3139 | c_target_objs="v850-c.o" |
3140 | cxx_target_objs="v850-c.o" | |
61ed06c3 HPN |
3141 | ;; |
3142 | v850-*-*) | |
3143 | target_cpu_default="TARGET_CPU_generic" | |
3144 | cpu_type=v850 | |
3145 | tm_file="v850/v850.h" | |
61ed06c3 HPN |
3146 | tmake_file=v850/t-v850 |
3147 | if test x$stabs = xyes | |
3148 | then | |
3149 | tm_file="${tm_file} dbx.h" | |
3150 | fi | |
3151 | use_collect2=no | |
c3edd394 NC |
3152 | c_target_objs="v850-c.o" |
3153 | cxx_target_objs="v850-c.o" | |
61ed06c3 HPN |
3154 | ;; |
3155 | vax-*-bsd*) # vaxen running BSD | |
3156 | use_collect2=yes | |
3157 | float_format=vax | |
3158 | ;; | |
3159 | vax-*-sysv*) # vaxen running system V | |
3160 | tm_file="${tm_file} vax/vaxv.h" | |
3161 | xm_defines=USG | |
3162 | float_format=vax | |
3163 | ;; | |
3164 | vax-*-netbsd*) | |
3165 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
3166 | tmake_file=t-netbsd | |
3167 | float_format=vax | |
3168 | use_collect2=yes | |
3169 | ;; | |
3170 | vax-*-openbsd*) | |
3171 | tmake_file="${tmake_file} vax/t-openbsd" | |
3172 | tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}" | |
61ed06c3 HPN |
3173 | float_format=vax |
3174 | use_collect2=yes | |
3175 | ;; | |
3176 | vax-*-ultrix*) # vaxen running ultrix | |
3177 | tm_file="${tm_file} vax/ultrix.h" | |
3178 | float_format=vax | |
3179 | ;; | |
3180 | vax-*-vms*) # vaxen running VMS | |
3181 | xm_file=vax/xm-vms.h | |
3182 | tm_file=vax/vms.h | |
3183 | float_format=vax | |
3184 | ;; | |
3185 | vax-*-*) # vax default entry | |
3186 | float_format=vax | |
3187 | ;; | |
3188 | we32k-att-sysv*) | |
cf30ef80 | 3189 | xm_defines=USG |
61ed06c3 HPN |
3190 | use_collect2=yes |
3191 | ;; | |
d19fb8e3 NC |
3192 | xscale-*-elf) |
3193 | tm_file=arm/xscale-elf.h | |
3194 | tmake_file=arm/t-xscale-elf | |
3195 | out_file=arm/arm.c | |
d19fb8e3 NC |
3196 | md_file=arm/arm.md |
3197 | ;; | |
3198 | xscale-*-coff) | |
3199 | tm_file=arm/xscale-coff.h | |
3200 | tmake_file=arm/t-xscale-coff | |
3201 | out_file=arm/arm.c | |
d19fb8e3 NC |
3202 | md_file=arm/arm.md |
3203 | ;; | |
61ed06c3 HPN |
3204 | *) |
3205 | echo "Configuration $machine not supported" 1>&2 | |
3206 | exit 1 | |
3207 | ;; | |
3208 | esac | |
3209 | ||
3210 | case $machine in | |
61ed06c3 HPN |
3211 | *-*-sysv4*) |
3212 | xmake_try_sysv=x-sysv | |
3213 | install_headers_dir=install-headers-cpio | |
3214 | ;; | |
3215 | *-*-sysv*) | |
3216 | install_headers_dir=install-headers-cpio | |
3217 | ;; | |
3218 | esac | |
3219 | ||
3220 | # Distinguish i[34567]86 | |
3221 | # Also, do not run mips-tfile on MIPS if using gas. | |
3222 | # Process --with-cpu= for PowerPC/rs6000 | |
3223 | target_cpu_default2= | |
3224 | case $machine in | |
3225 | i486-*-*) | |
3226 | target_cpu_default2=1 | |
3227 | ;; | |
3228 | i586-*-*) | |
3229 | case $target_alias in | |
3230 | k6-*) | |
3231 | target_cpu_default2=4 | |
3232 | ;; | |
3233 | *) | |
3234 | target_cpu_default2=2 | |
3235 | ;; | |
3236 | esac | |
3237 | ;; | |
3238 | i686-*-* | i786-*-*) | |
3239 | target_cpu_default2=3 | |
3240 | ;; | |
3241 | alpha*-*-*) | |
3242 | case $machine in | |
3243 | alphaev6[78]*) | |
3244 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX" | |
3245 | ;; | |
3246 | alphaev6*) | |
3247 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX" | |
3248 | ;; | |
3249 | alphapca56*) | |
3250 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" | |
3251 | ;; | |
3252 | alphaev56*) | |
3253 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" | |
3254 | ;; | |
3255 | alphaev5*) | |
3256 | target_cpu_default2="MASK_CPU_EV5" | |
3257 | ;; | |
3258 | esac | |
3259 | ||
3260 | if test x$gas = xyes | |
3261 | then | |
3262 | if test "$target_cpu_default2" = "" | |
3263 | then | |
3264 | target_cpu_default2="MASK_GAS" | |
3265 | else | |
3266 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
3267 | fi | |
3268 | fi | |
3269 | ;; | |
3270 | arm*-*-*) | |
3271 | case "x$with_cpu" in | |
3272 | x) | |
3273 | # The most generic | |
3274 | target_cpu_default2="TARGET_CPU_generic" | |
3275 | ;; | |
3276 | ||
3277 | # Distinguish cores, and major variants | |
3278 | # arm7m doesn't exist, but D & I don't affect code | |
70f24e49 NC |
3279 | xarm[236789] | xarm250 | xarm[67][01]0 \ |
3280 | | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \ | |
61ed06c3 | 3281 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ |
d19fb8e3 | 3282 | | xxscale \ |
61ed06c3 HPN |
3283 | | xstrongarm | xstrongarm110 | xstrongarm1100) |
3284 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
3285 | ;; | |
3286 | ||
3287 | xyes | xno) | |
3288 | echo "--with-cpu must be passed a value" 1>&2 | |
3289 | exit 1 | |
3290 | ;; | |
3291 | ||
3292 | *) | |
3293 | if test x$pass2done = xyes | |
3294 | then | |
3295 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
3296 | exit 1 | |
3297 | fi | |
3298 | ;; | |
3299 | esac | |
3300 | ;; | |
3301 | ||
c21a2372 AM |
3302 | hppa*-*-* | parisc*-*-*) |
3303 | if test x$gas = xyes | |
3304 | then | |
3305 | target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY" | |
3306 | fi | |
3307 | ;; | |
3308 | ||
61ed06c3 HPN |
3309 | mips*-*-ecoff* | mips*-*-elf*) |
3310 | if test x$gas = xyes | |
3311 | then | |
3312 | if test x$gnu_ld = xyes | |
3313 | then | |
3314 | target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR" | |
3315 | else | |
3316 | target_cpu_default2="MASK_GAS" | |
3317 | fi | |
3318 | fi | |
3319 | ;; | |
3320 | mips*-*-*) | |
3321 | if test x$gas = xyes | |
3322 | then | |
3323 | target_cpu_default2="MASK_GAS" | |
3324 | fi | |
3325 | ;; | |
3326 | powerpc*-*-* | rs6000-*-*) | |
3327 | case "x$with_cpu" in | |
3328 | x) | |
3329 | ;; | |
3330 | ||
3331 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
3332 | | xrios1 | xrios2 | xrsc | xrsc1 \ | |
3333 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
3334 | | xec603e | x740 | x750 | x401 \ | |
3335 | | x403 | x505 | x801 | x821 | x823 | x860) | |
3336 | target_cpu_default2="\"$with_cpu\"" | |
3337 | ;; | |
3338 | ||
3339 | xyes | xno) | |
3340 | echo "--with-cpu must be passed a value" 1>&2 | |
3341 | exit 1 | |
3342 | ;; | |
3343 | ||
3344 | *) | |
3345 | if test x$pass2done = xyes | |
3346 | then | |
3347 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
3348 | exit 1 | |
3349 | fi | |
3350 | ;; | |
3351 | esac | |
3352 | ;; | |
3353 | sparc*-*-*) | |
3354 | case ".$with_cpu" in | |
3355 | .) | |
3356 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
3357 | ;; | |
3358 | .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9) | |
3359 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
3360 | ;; | |
3361 | *) | |
3362 | if test x$pass2done = xyes | |
3363 | then | |
3364 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
3365 | exit 1 | |
3366 | fi | |
3367 | ;; | |
3368 | esac | |
3369 | ;; | |
3370 | esac | |
3371 | ||
3372 | if test "$target_cpu_default2" != "" | |
3373 | then | |
3374 | if test "$target_cpu_default" != "" | |
3375 | then | |
3376 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
3377 | else | |
3378 | target_cpu_default=$target_cpu_default2 | |
3379 | fi | |
3380 | fi | |
3381 | ||
3382 | # No need for collect2 if we have the GNU linker. | |
3383 | # Actually, there is now; GNU ld doesn't handle the EH info or | |
3384 | # collecting for shared libraries. | |
3385 | #case x$gnu_ld in | |
3386 | #xyes) | |
3387 | # use_collect2= | |
3388 | # ;; | |
3389 | #esac | |
3390 | ||
3391 | # Save data on machine being used to compile GCC in build_xm_file. | |
3392 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
3393 | if test x$pass1done = x | |
3394 | then | |
4dc0535b ZW |
3395 | if test x$xm_file != x |
3396 | then build_xm_file=$xm_file | |
61ed06c3 HPN |
3397 | fi |
3398 | build_xm_defines=$xm_defines | |
3399 | build_install_headers_dir=$install_headers_dir | |
3400 | build_exeext=$exeext | |
3401 | pass1done=yes | |
3402 | else | |
3403 | if test x$pass2done = x | |
3404 | then | |
4dc0535b ZW |
3405 | if test x$xm_file != x |
3406 | then host_xm_file=$xm_file | |
61ed06c3 HPN |
3407 | fi |
3408 | host_xm_defines=$xm_defines | |
61ed06c3 HPN |
3409 | host_xmake_file="$xmake_file" |
3410 | host_truncate_target=$truncate_target | |
3411 | host_extra_gcc_objs=$extra_gcc_objs | |
3412 | host_extra_objs=$extra_host_objs | |
3413 | host_exeext=$exeext | |
3414 | pass2done=yes | |
3415 | fi | |
3416 | fi |