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