source: trunk/src/gcc/gcc/config.gcc@ 393

Last change on this file since 393 was 393, checked in by bird, 22 years ago

#563: we have our own float.h. (float_format=none)

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