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