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