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

Last change on this file since 70 was 70, checked in by bird, 23 years ago

Review. two questions.

  • Property cvs2svn:cvs-rev set to 1.3
  • 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 ;;
1598i[34567]86-*-interix*)
1599 tm_file="i386/i386-interix.h interix.h"
1600 xm_file="i386/xm-i386-interix.h"
1601 xm_defines=POSIX
1602 tmake_file="t-interix i386/t-interix"
1603 extra_objs=interix.o
1604 if test x$enable_threads = xyes ; then
1605 thread_file='posix'
1606 fi
1607 if test x$stabs = xyes ; then
1608 tm_file="${tm_file} dbxcoff.h"
1609 fi
1610 ;;
1611i[34567]86-dg-dgux*)
1612 xm_defines=POSIX
1613 tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/dgux.h"
1614 tmake_file=i386/t-dgux
1615 install_headers_dir=install-headers-cpio
1616 ;;
1617i860-alliant-*) # Alliant FX/2800
1618 tm_file="${tm_file} dbxelf.h elfos.h svr4.h i860/sysv4.h i860/fx2800.h"
1619 tmake_file=i860/t-fx2800
1620 extra_parts="crtbegin.o crtend.o"
1621 ;;
1622i860-*-bsd*)
1623 tm_file="${tm_file} i860/bsd.h"
1624 if test x$gas = xyes
1625 then
1626 tm_file="${tm_file} i860/bsd-gas.h"
1627 fi
1628 use_collect2=yes
1629 ;;
1630i860-*-mach*)
1631 tm_file="${tm_file} i860/mach.h"
1632 tmake_file=t-libc-ok
1633 ;;
1634i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1635 tm_file="${tm_file} svr3.h i860/paragon.h"
1636 xm_defines=POSIX
1637 ;;
1638i860-*-sysv3*)
1639 tm_file="${tm_file} svr3.h i860/sysv3.h"
1640 xm_defines=POSIX
1641 extra_parts="crtbegin.o crtend.o"
1642 ;;
1643i860-*-sysv4*)
1644 tm_file="${tm_file} dbxelf.h elfos.h svr4.h i860/sysv4.h"
1645 xm_defines=POSIX
1646 tmake_file=t-svr4
1647 extra_parts="crtbegin.o crtend.o"
1648 ;;
1649i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1650 tm_file="${tm_file} i960/vx960.h"
1651 tmake_file=i960/t-vxworks960
1652 use_collect2=yes
1653 thread_file='vxworks'
1654 c_target_objs="i960-c.o"
1655 cxx_target_objs="i960-c.o"
1656 ;;
1657i960-wrs-vxworks5* | i960-wrs-vxworks)
1658 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1659 tmake_file=i960/t-vxworks960
1660 use_collect2=yes
1661 thread_file='vxworks'
1662 c_target_objs="i960-c.o"
1663 cxx_target_objs="i960-c.o"
1664 ;;
1665i960-wrs-vxworks*)
1666 tm_file="${tm_file} i960/vx960.h"
1667 tmake_file=i960/t-vxworks960
1668 use_collect2=yes
1669 thread_file='vxworks'
1670 c_target_objs="i960-c.o"
1671 cxx_target_objs="i960-c.o"
1672 ;;
1673i960-*-coff*)
1674 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1675 tmake_file=i960/t-960bare
1676 c_target_objs="i960-c.o"
1677 cxx_target_objs="i960-c.o"
1678 ;;
1679i960-*-rtems)
1680 xm_defines=POSIX
1681 tmake_file="i960/t-960bare t-rtems"
1682 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
1683 if test x$enable_threads = xyes; then
1684 thread_file='rtems'
1685 fi
1686 c_target_objs="i960-c.o"
1687 cxx_target_objs="i960-c.o"
1688 ;;
1689i960-*-*) # Default i960 environment.
1690 use_collect2=yes
1691 tmake_file=i960/t-960bare
1692 c_target_objs="i960-c.o"
1693 cxx_target_objs="i960-c.o"
1694 ;;
1695ia64*-*-aix*)
1696 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/aix.h"
1697 tmake_file="ia64/t-ia64 ia64/t-aix"
1698 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1699 ;;
1700ia64*-*-elf*)
1701 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1702 tmake_file="ia64/t-ia64"
1703 target_cpu_default="0"
1704 if test x$gas = xyes
1705 then
1706 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1707 fi
1708 if test x$gnu_ld = xyes
1709 then
1710 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1711 fi
1712 float_format=i386
1713 ;;
1714ia64*-*-freebsd*)
1715 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
1716 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1717 tmake_file="${tmake_file} ia64/t-ia64"
1718 float_format=i386
1719 ;;
1720ia64*-*-linux*)
1721 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1722 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1723 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1724 float_format=i386
1725 ;;
1726ia64*-*-hpux*)
1727 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1728 tmake_file="ia64/t-ia64 ia64/t-hpux"
1729 target_cpu_default="MASK_GNU_AS"
1730 if test x$enable_threads = xyes; then
1731 thread_file='posix'
1732 fi
1733 float_format=i386
1734 ;;
1735m32r-*-elf*)
1736 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1737 extra_parts="crtinit.o crtfini.o"
1738 ;;
1739# m68hc11 and m68hc12 share the same machine description.
1740m68hc11-*-*|m6811-*-*)
1741 tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1742 tm_p_file="m68hc11/m68hc11-protos.h"
1743 md_file="m68hc11/m68hc11.md"
1744 out_file="m68hc11/m68hc11.c"
1745 tmake_file="m68hc11/t-m68hc11-gas"
1746 ;;
1747m68hc12-*-*|m6812-*-*)
1748 tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1749 tm_p_file="m68hc11/m68hc11-protos.h"
1750 md_file="m68hc11/m68hc11.md"
1751 out_file="m68hc11/m68hc11.c"
1752 tmake_file="m68hc11/t-m68hc11-gas"
1753 ;;
1754m68000-convergent-sysv*)
1755 tm_file=m68k/ctix.h
1756 xm_defines=POSIX
1757 use_collect2=yes
1758 ;;
1759m68000-hp-bsd*) # HP 9000/200 running BSD
1760 tm_file=m68k/hp2bsd.h
1761 use_collect2=yes
1762 ;;
1763m68000-hp-hpux*) # HP 9000 series 300
1764 xm_defines=POSIX
1765 if test x$gas = xyes
1766 then
1767 tm_file=m68k/hp310g.h
1768 else
1769 tm_file=m68k/hp310.h
1770 fi
1771 tmake_file=m68k/t-hp320
1772 install_headers_dir=install-headers-cpio
1773 use_collect2=yes
1774 ;;
1775m68000-sun-sunos3*)
1776 tm_file=m68k/sun2.h
1777 use_collect2=yes
1778 ;;
1779m68000-sun-sunos4*)
1780 tm_file=m68k/sun2o4.h
1781 use_collect2=yes
1782 ;;
1783m68000-att-sysv*)
1784 xm_defines=POSIX
1785 if test x$gas = xyes
1786 then
1787 tm_file=m68k/3b1g.h
1788 else
1789 tm_file=m68k/3b1.h
1790 fi
1791 use_collect2=yes
1792 ;;
1793m68k-apple-aux*) # Apple Macintosh running A/UX
1794 xm_defines=POSIX
1795 tmake_file=m68k/t-aux
1796 install_headers_dir=install-headers-cpio
1797 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1798 tm_file=
1799 if test "$gnu_ld" = yes
1800 then
1801 tm_file="${tm_file} m68k/auxgld.h"
1802 else
1803 tm_file="${tm_file} m68k/auxld.h"
1804 fi
1805 if test "$gas" = yes
1806 then
1807 tm_file="${tm_file} m68k/auxgas.h"
1808 else
1809 tm_file="${tm_file} m68k/auxas.h"
1810 fi
1811 tm_file="${tm_file} m68k/a-ux.h"
1812 float_format=m68k
1813 ;;
1814m68k-apollo-*)
1815 tm_file=m68k/apollo68.h
1816 use_collect2=yes
1817 float_format=m68k
1818 ;;
1819m68k-altos-sysv*) # Altos 3068
1820 if test x$gas = xyes
1821 then
1822 tm_file=m68k/altos3068.h
1823 xm_defines=POSIX
1824 else
1825 echo "The Altos is supported only with the GNU assembler" 1>&2
1826 exit 1
1827 fi
1828 ;;
1829m68k-bull-sysv*) # Bull DPX/2
1830 if test x$gas = xyes
1831 then
1832 if test x$stabs = xyes
1833 then
1834 tm_file=m68k/dpx2cdbx.h
1835 else
1836 tm_file=m68k/dpx2g.h
1837 fi
1838 else
1839 tm_file=m68k/dpx2.h
1840 fi
1841 xm_defines=POSIX
1842 use_collect2=yes
1843 ;;
1844m68k-atari-sysv4*) # Atari variant of V.4.
1845 tm_file=m68k/atari.h
1846 xm_defines=POSIX
1847 tmake_file=t-svr4
1848 extra_parts="crtbegin.o crtend.o"
1849 float_format=m68k
1850 ;;
1851m68k-motorola-sysv*)
1852 tm_file=m68k/mot3300.h
1853 xm_defines=POSIX
1854 if test x$gas = xyes
1855 then
1856 if test x$gnu_ld = xyes
1857 then
1858 tmake_file=m68k/t-mot3300-gald
1859 else
1860 tmake_file=m68k/t-mot3300-gas
1861 use_collect2=yes
1862 fi
1863 else
1864 if test x$gnu_ld = xyes
1865 then
1866 tmake_file=m68k/t-mot3300-gld
1867 else
1868 tmake_file=m68k/t-mot3300
1869 use_collect2=yes
1870 fi
1871 fi
1872 gdb_needs_out_file_path=yes
1873 extra_parts="crt0.o mcrt0.o"
1874 float_format=m68k
1875 ;;
1876m68k-ncr-sysv*) # NCR Tower 32 SVR3
1877 tm_file=m68k/tower-as.h
1878 xm_defines=POSIX
1879 extra_parts="crtbegin.o crtend.o"
1880 ;;
1881m68k-plexus-sysv*)
1882 tm_file=m68k/plexus.h
1883 xm_defines=POSIX
1884 use_collect2=yes
1885 ;;
1886m68k-tti-*)
1887 tm_file=m68k/pbb.h
1888 xm_defines=POSIX
1889 ;;
1890m68k-crds-unos*)
1891 xm_defines=POSIX
1892 tm_file=m68k/crds.h
1893 use_collect2=yes
1894 ;;
1895m68k-cbm-sysv4*) # Commodore variant of V.4.
1896 tm_file=m68k/amix.h
1897 xm_defines=POSIX
1898 tmake_file=t-svr4
1899 extra_parts="crtbegin.o crtend.o"
1900 float_format=m68k
1901 ;;
1902m68k-ccur-rtu)
1903 tm_file=m68k/ccur-GAS.h
1904 use_collect2=yes
1905 float_format=m68k
1906 ;;
1907m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1908 tm_file=m68k/hp3bsd44.h
1909 use_collect2=yes
1910 float_format=m68k
1911 ;;
1912m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1913 tm_file=m68k/hp3bsd.h
1914 use_collect2=yes
1915 float_format=m68k
1916 ;;
1917m68k-isi-bsd*)
1918 if test x$with_fp = xno
1919 then
1920 tm_file=m68k/isi-nfp.h
1921 else
1922 tm_file=m68k/isi.h
1923 float_format=m68k
1924 fi
1925 use_collect2=yes
1926 ;;
1927m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1928 xm_defines=POSIX
1929 if test x$gas = xyes
1930 then
1931 xmake_file=m68k/x-hp320g
1932 tm_file=m68k/hp320g.h
1933 else
1934 xmake_file=m68k/x-hp320
1935 tm_file=m68k/hpux7.h
1936 fi
1937 install_headers_dir=install-headers-cpio
1938 use_collect2=yes
1939 float_format=m68k
1940 ;;
1941m68k-hp-hpux*) # HP 9000 series 300
1942 xm_defines=POSIX
1943 if test x$gas = xyes
1944 then
1945 xmake_file=m68k/x-hp320g
1946 tm_file=m68k/hp320g.h
1947 else
1948 xmake_file=m68k/x-hp320
1949 tm_file=m68k/hp320.h
1950 fi
1951 install_headers_dir=install-headers-cpio
1952 use_collect2=yes
1953 float_format=m68k
1954 ;;
1955m68k-sun-mach*)
1956 tm_file=m68k/sun3mach.h
1957 use_collect2=yes
1958 float_format=m68k
1959 ;;
1960m68k-sony-newsos3*)
1961 if test x$gas = xyes
1962 then
1963 tm_file=m68k/news3gas.h
1964 else
1965 tm_file=m68k/news3.h
1966 fi
1967 use_collect2=yes
1968 float_format=m68k
1969 ;;
1970m68k-sony-bsd* | m68k-sony-newsos*)
1971 if test x$gas = xyes
1972 then
1973 tm_file=m68k/newsgas.h
1974 else
1975 tm_file=m68k/news.h
1976 fi
1977 use_collect2=yes
1978 float_format=m68k
1979 ;;
1980m68k-next-nextstep2*)
1981 tm_p_file="${tm_p_file} nextstep-protos.h"
1982 tm_file=m68k/next21.h
1983 tmake_file=m68k/t-next
1984 xmake_file=m68k/x-next
1985 extra_objs=nextstep.o
1986 use_collect2=yes
1987 float_format=m68k
1988 ;;
1989m68k-next-nextstep[34]*)
1990 tm_p_file="${tm_p_file} nextstep-protos.h"
1991 tm_file=m68k/next.h
1992 tmake_file=m68k/t-next
1993 xmake_file=m68k/x-next
1994 extra_objs=nextstep.o
1995 extra_parts="crtbegin.o crtend.o"
1996 float_format=m68k
1997 if test x$enable_threads = xyes; then
1998 thread_file='mach'
1999 fi
2000 ;;
2001m68k-sun-sunos3*)
2002 if test x$with_fp = xno
2003 then
2004 tm_file=m68k/sun3n3.h
2005 else
2006 tm_file=m68k/sun3o3.h
2007 float_format=m68k
2008 fi
2009 use_collect2=yes
2010 ;;
2011m68k-sun-sunos*) # For SunOS 4 (the default).
2012 if test x$with_fp = xno
2013 then
2014 tm_file=m68k/sun3n.h
2015 else
2016 tm_file=m68k/sun3.h
2017 float_format=m68k
2018 fi
2019 use_collect2=yes
2020 ;;
2021m68k-wrs-vxworks*)
2022 tm_file=m68k/vxm68k.h
2023 tmake_file=m68k/t-vxworks68
2024 thread_file='vxworks'
2025 float_format=m68k
2026 ;;
2027m68k-*-aout*)
2028 tmake_file=m68k/t-m68kbare
2029 tm_file="m68k/m68k-aout.h libgloss.h"
2030 float_format=m68k
2031 ;;
2032m68k-*-coff*)
2033 tmake_file=m68k/t-m68kbare
2034 tm_file="m68k/m68k-coff.h dbx.h"
2035 float_format=m68k
2036 ;;
2037m68020-*-elf* | m68k-*-elf*)
2038 tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
2039 xm_defines=POSIX
2040 tmake_file=m68k/t-m68kelf
2041 extra_parts="crtbegin.o crtend.o"
2042 ;;
2043m68k-*-lynxos*)
2044 if test x$gas = xyes
2045 then
2046 tm_file=m68k/lynx.h
2047 else
2048 tm_file=m68k/lynx-ng.h
2049 fi
2050 tmake_file=m68k/t-lynx
2051 float_format=m68k
2052 ;;
2053m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
2054 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
2055 case $machine in
2056 m68010*)
2057 target_cpu_default="0"
2058 ;;
2059 *)
2060 target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
2061 ;;
2062 esac
2063 float_format=m68k
2064 ;;
2065m68k*-*-netbsd*)
2066 tm_file=m68k/netbsd.h
2067 tmake_file=t-netbsd
2068 float_format=m68k
2069 use_collect2=yes
2070 ;;
2071m68k*-*-openbsd*)
2072 # needed to unconfuse gdb
2073 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
2074 float_format=m68k
2075 # we need collect2 until our bug is fixed...
2076 use_collect2=yes
2077 ;;
2078m68k-*-sysv3*) # Motorola m68k's running system V.3
2079 xm_defines=POSIX
2080 extra_parts="crtbegin.o crtend.o"
2081 float_format=m68k
2082 ;;
2083m68k-*-sysv4*) # Motorola m68k's running system V.4
2084 tm_file=m68k/m68kv4.h
2085 xm_defines=POSIX
2086 tmake_file=t-svr4
2087 extra_parts="crtbegin.o crtend.o"
2088 float_format=m68k
2089 ;;
2090m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
2091 # with a.out format
2092 tm_file=m68k/linux-aout.h
2093 tmake_file="t-linux-aout m68k/t-linux-aout"
2094 float_format=m68k
2095 gnu_ld=yes
2096 ;;
2097m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
2098 # with ELF format using the
2099 # GNU/Linux C library 5
2100 tm_file=m68k/linux.h
2101 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
2102 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2103 float_format=m68k
2104 gnu_ld=yes
2105 ;;
2106m68k-*-linux*) # Motorola m68k's running GNU/Linux
2107 # with ELF format using glibc 2
2108 # aka the GNU/Linux C library 6.
2109 tm_file=m68k/linux.h
2110 tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
2111 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2112 float_format=m68k
2113 gnu_ld=yes
2114 ;;
2115m68k-*-psos*)
2116 tmake_file=m68k/t-m68kbare
2117 tm_file=m68k/m68k-psos.h
2118 float_format=m68k
2119 ;;
2120m68k-*-rtemscoff*)
2121 xm_defines=POSIX
2122 tmake_file="m68k/t-m68kbare t-rtems"
2123 tm_file="m68k/m68k-coff.h m68k/rtems.h rtems.h"
2124 float_format=m68k
2125 if test x$enable_threads = xyes; then
2126 thread_file='rtems'
2127 fi
2128 ;;
2129m68k-*-rtemself*|m68k-*-rtems*)
2130 xm_defines=POSIX
2131 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2132 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"
2133 float_format=m68k
2134 extra_parts="crtbegin.o crtend.o"
2135 if test x$enable_threads = xyes; then
2136 thread_file='rtems'
2137 fi
2138 ;;
2139m88k-dg-dgux*)
2140 xm_defines=POSIX
2141 case $machine in
2142 m88k-dg-dguxbcs*)
2143 tm_file="dbxelf.h elfos.h svr4.h m88k/dgux.h m88k/dguxbcs.h"
2144 tmake_file="m88k/t-dgux m88k/t-dguxbcs"
2145 ;;
2146 *)
2147 tm_file="dbxelf.h elfos.h svr4.h m88k/dgux.h"
2148 tmake_file=m88k/t-dgux
2149 ;;
2150 esac
2151 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2152 if test x$gas = xyes
2153 then
2154 tmake_file=m88k/t-dgux-gas
2155 fi
2156 ;;
2157m88k-dolphin-sysv3*)
2158 xm_defines=POSIX
2159 tm_file=m88k/dolph.h
2160 extra_parts="crtbegin.o crtend.o"
2161 tmake_file=m88k/t-dolph
2162 if test x$gas = xyes
2163 then
2164 tmake_file=m88k/t-m88k-gas
2165 fi
2166 ;;
2167m88k-tektronix-sysv3)
2168 xm_defines=POSIX
2169 tm_file=m88k/tekXD88.h
2170 extra_parts="crtbegin.o crtend.o"
2171 tmake_file=m88k/t-tekXD88
2172 if test x$gas = xyes
2173 then
2174 tmake_file=m88k/t-m88k-gas
2175 fi
2176 ;;
2177m88k-*-aout*)
2178 xm_defines=POSIX
2179 tm_file=m88k/m88k-aout.h
2180 ;;
2181m88k-*-coff*)
2182 xm_defines=POSIX
2183 tm_file=m88k/m88k-coff.h
2184 tmake_file=m88k/t-bug
2185 ;;
2186m88k-*-luna*)
2187 tm_file=m88k/luna.h
2188 extra_parts="crtbegin.o crtend.o"
2189 if test x$gas = xyes
2190 then
2191 tmake_file=m88k/t-luna-gas
2192 else
2193 tmake_file=m88k/t-luna
2194 fi
2195 ;;
2196m88k-*-openbsd*)
2197 tmake_file="${tmake_file} m88k/t-luna-gas"
2198 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2199 ;;
2200m88k-*-sysv3*)
2201 xm_defines=POSIX
2202 tm_file=m88k/sysv3.h
2203 extra_parts="crtbegin.o crtend.o"
2204 if test x$gas = xyes
2205 then
2206 tmake_file=m88k/t-m88k-gas
2207 fi
2208 ;;
2209m88k-*-sysv4*)
2210 xm_defines=POSIX
2211 tm_file="dbxelf.h elfos.h svr4.h m88k/sysv4.h"
2212 extra_parts="crtbegin.o crtend.o"
2213 tmake_file=m88k/t-sysv4
2214 ;;
2215mcore-*-elf)
2216 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
2217 tmake_file=mcore/t-mcore
2218 ;;
2219mcore-*-pe*)
2220 tm_file=mcore/mcore-pe.h
2221 tmake_file=mcore/t-mcore-pe
2222 ;;
2223mips-sgi-irix6*) # SGI System V.4., IRIX 6
2224 if test "x$gnu_ld" = xyes
2225 then
2226 tm_file="mips/iris6.h mips/iris6gld.h"
2227 else
2228 tm_file=mips/iris6.h
2229 fi
2230 tmake_file="mips/t-iris mips/t-iris6"
2231 xm_defines=POSIX
2232# if test x$enable_threads = xyes; then
2233# thread_file='irix'
2234# fi
2235 ;;
2236mips-wrs-vxworks)
2237 tm_file="mips/elf.h mips/vxworks.h"
2238 tmake_file=mips/t-ecoff
2239 gas=yes
2240 gnu_ld=yes
2241 extra_parts="crtbegin.o crtend.o"
2242 thread_file='vxworks'
2243 ;;
2244mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2245 tm_file="mips/iris6.h mips/cross64.h"
2246 xm_defines=POSIX
2247 xm_file=mips/xm-iris5.h
2248 tmake_file="mips/t-iris mips/t-cross64"
2249 # See comment in mips/iris[56].h files.
2250 use_collect2=yes
2251# if test x$enable_threads = xyes; then
2252# thread_file='irix'
2253# fi
2254 ;;
2255mips-sni-sysv4)
2256 if test x$gas = xyes
2257 then
2258 if test x$stabs = xyes
2259 then
2260 tm_file=mips/iris5gdb.h
2261 else
2262 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2263 fi
2264 else
2265 tm_file=mips/sni-svr4.h
2266 fi
2267 xm_defines=POSIX
2268 if test x$gnu_ld != xyes
2269 then
2270 use_collect2=yes
2271 fi
2272 ;;
2273mips-sgi-irix5*) # SGI System V.4., IRIX 5
2274 if test x$gas = xyes
2275 then
2276 tm_file="mips/iris5.h mips/iris5gas.h"
2277 if test x$stabs = xyes
2278 then
2279 tm_file="${tm_file} dbx.h"
2280 fi
2281 else
2282 tm_file=mips/iris5.h
2283 fi
2284 tmake_file=mips/t-iris
2285 xm_defines=POSIX
2286 xm_file=mips/xm-iris5.h
2287 # mips-tfile doesn't work yet
2288 # See comment in mips/iris5.h file.
2289 use_collect2=yes
2290# if test x$enable_threads = xyes; then
2291# thread_file='irix'
2292# fi
2293 ;;
2294mips-sgi-irix4loser*) # Mostly like a MIPS.
2295 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2296 if test x$stabs = xyes; then
2297 tm_file="${tm_file} dbx.h"
2298 fi
2299 tmake_file=mips/t-iris
2300 xm_defines=POSIX
2301 if test x$gas = xyes
2302 then :
2303 else
2304 extra_passes="mips-tfile mips-tdump"
2305 fi
2306 if test x$gnu_ld != xyes
2307 then
2308 use_collect2=yes
2309 fi
2310# if test x$enable_threads = xyes; then
2311# thread_file='irix'
2312# fi
2313 ;;
2314mips-sgi-irix4*) # Mostly like a MIPS.
2315 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2316 if test x$stabs = xyes; then
2317 tm_file="${tm_file} dbx.h"
2318 fi
2319 tmake_file=mips/t-iris
2320 xm_defines=POSIX
2321 if test x$gas = xyes
2322 then :
2323 else
2324 extra_passes="mips-tfile mips-tdump"
2325 fi
2326 if test x$gnu_ld != xyes
2327 then
2328 use_collect2=yes
2329 fi
2330# if test x$enable_threads = xyes; then
2331# thread_file='irix'
2332# fi
2333 ;;
2334mips-sgi-*) # Mostly like a MIPS.
2335 tm_file="mips/iris3.h ${tm_file}"
2336 if test x$stabs = xyes; then
2337 tm_file="${tm_file} dbx.h"
2338 fi
2339 xm_defines=POSIX
2340 if test x$gas = xyes
2341 then :
2342 else
2343 extra_passes="mips-tfile mips-tdump"
2344 fi
2345 if test x$gnu_ld != xyes
2346 then
2347 use_collect2=yes
2348 fi
2349 ;;
2350mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2351 tm_file="mips/osfrose.h ${tm_file}"
2352 extra_objs=halfpic.o
2353 use_collect2=yes
2354 ;;
2355mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2356 tm_file=mips/dec-osf1.h
2357 if test x$stabs = xyes; then
2358 tm_file="${tm_file} dbx.h"
2359 fi
2360 if test x$gas = xyes
2361 then :
2362 else
2363 tmake_file=mips/t-ultrix
2364 extra_passes="mips-tfile mips-tdump"
2365 fi
2366 if test x$gnu_ld != xyes
2367 then
2368 use_collect2=yes
2369 fi
2370 ;;
2371mips-dec-bsd*) # Decstation running 4.4 BSD
2372 tm_file=mips/dec-bsd.h
2373 if test x$gas = xyes
2374 then :
2375 else
2376 tmake_file=mips/t-ultrix
2377 extra_passes="mips-tfile mips-tdump"
2378 fi
2379 if test x$gnu_ld != xyes
2380 then
2381 use_collect2=yes
2382 fi
2383 ;;
2384mips*-*-netbsd*) # NetBSD/mips, either endian.
2385 tm_file="elfos.h mips/netbsd.h"
2386 case $machine in
2387 mips*el-*)
2388 tm_file="mips/little.h $tm_file"
2389 ;;
2390 esac
2391 tmake_file="${tmake_file} mips/t-netbsd"
2392 ;;
2393mips*-*-linux*) # Linux MIPS, either endian.
2394 tm_file="dbxelf.h elfos.h svr4.h linux.h mips/linux.h"
2395 case $machine in
2396 mipsisa32*-*)
2397 tm_file="$tm_file mips/isa32-linux.h"
2398 target_cpu_default="MASK_SOFT_FLOAT"
2399 ;;
2400 esac
2401 case $machine in
2402 mips*el-*)
2403 tm_file="mips/little.h $tm_file"
2404 ;;
2405 esac
2406 tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux"
2407 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
2408 gnu_ld=yes
2409 gas=yes
2410 ;;
2411mips*el-*-openbsd*) # mips little endian
2412 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2413 ;;
2414mips*-*-openbsd*) # mips big endian
2415 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2416 tm_file="mips/openbsd-be.h ${tm_file}"
2417 ;;
2418mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2419 tm_file="mips/news4.h ${tm_file}"
2420 if test x$stabs = xyes; then
2421 tm_file="${tm_file} dbx.h"
2422 fi
2423 if test x$gas = xyes
2424 then :
2425 else
2426 extra_passes="mips-tfile mips-tdump"
2427 fi
2428 if test x$gnu_ld != xyes
2429 then
2430 use_collect2=yes
2431 fi
2432 ;;
2433mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2434 # That is based on svr4.
2435 # t-svr4 is not right because this system doesn't use ELF.
2436 tm_file="mips/news5.h ${tm_file}"
2437 if test x$stabs = xyes; then
2438 tm_file="${tm_file} dbx.h"
2439 fi
2440 xm_defines=POSIX
2441 if test x$gas = xyes
2442 then :
2443 else
2444 extra_passes="mips-tfile mips-tdump"
2445 fi
2446 if test x$gnu_ld != xyes
2447 then
2448 use_collect2=yes
2449 fi
2450 ;;
2451mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2452 tm_file="mips/svr4-5.h mips/svr4-t.h"
2453 if test x$stabs = xyes; then
2454 tm_file="${tm_file} dbx.h"
2455 fi
2456 xm_defines=POSIX
2457 if test x$gas = xyes
2458 then
2459 extra_parts="crtbegin.o crtend.o"
2460 else
2461 extra_passes="mips-tfile mips-tdump"
2462 fi
2463 if test x$gnu_ld != xyes
2464 then
2465 use_collect2=yes
2466 fi
2467 ;;
2468mips-*-ultrix* | mips-dec-mach3) # Decstation.
2469 tm_file="mips/ultrix.h ${tm_file}"
2470 if test x$stabs = xyes; then
2471 tm_file="${tm_file} dbx.h"
2472 fi
2473 if test x$gas = xyes
2474 then :
2475 else
2476 tmake_file=mips/t-ultrix
2477 extra_passes="mips-tfile mips-tdump"
2478 fi
2479 if test x$gnu_ld != xyes
2480 then
2481 use_collect2=yes
2482 fi
2483 ;;
2484mips-*-riscos[56789]bsd*)
2485 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2486 if test x$stabs = xyes; then
2487 tm_file="${tm_file} dbx.h"
2488 fi
2489 if test x$gas = xyes
2490 then
2491 tmake_file=mips/t-bsd-gas
2492 else
2493 tmake_file=mips/t-bsd
2494 extra_passes="mips-tfile mips-tdump"
2495 fi
2496 if test x$gnu_ld != xyes
2497 then
2498 use_collect2=yes
2499 fi
2500 ;;
2501mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2502 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2503 if test x$stabs = xyes; then
2504 tm_file="${tm_file} dbx.h"
2505 fi
2506 if test x$gas = xyes
2507 then
2508 tmake_file=mips/t-bsd-gas
2509 else
2510 tmake_file=mips/t-bsd
2511 extra_passes="mips-tfile mips-tdump"
2512 fi
2513 if test x$gnu_ld != xyes
2514 then
2515 use_collect2=yes
2516 fi
2517 ;;
2518mips-*-riscos[56789]sysv4*)
2519 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2520 if test x$stabs = xyes; then
2521 tm_file="${tm_file} dbx.h"
2522 fi
2523 if test x$gas = xyes
2524 then
2525 tmake_file=mips/t-svr4-gas
2526 else
2527 tmake_file=mips/t-svr4
2528 extra_passes="mips-tfile mips-tdump"
2529 fi
2530 if test x$gnu_ld != xyes
2531 then
2532 use_collect2=yes
2533 fi
2534 ;;
2535mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2536 tm_file="mips/svr4-4.h ${tm_file}"
2537 if test x$stabs = xyes; then
2538 tm_file="${tm_file} dbx.h"
2539 fi
2540 xm_defines=POSIX
2541 if test x$gas = xyes
2542 then
2543 tmake_file=mips/t-svr4-gas
2544 else
2545 tmake_file=mips/t-svr4
2546 extra_passes="mips-tfile mips-tdump"
2547 fi
2548 if test x$gnu_ld != xyes
2549 then
2550 use_collect2=yes
2551 fi
2552 ;;
2553mips-*-riscos[56789]sysv*)
2554 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2555 if test x$stabs = xyes; then
2556 tm_file="${tm_file} dbx.h"
2557 fi
2558 xm_defines=POSIX
2559 if test x$gas = xyes
2560 then
2561 tmake_file=mips/t-svr3-gas
2562 else
2563 tmake_file=mips/t-svr3
2564 extra_passes="mips-tfile mips-tdump"
2565 fi
2566 if test x$gnu_ld != xyes
2567 then
2568 use_collect2=yes
2569 fi
2570 ;;
2571mips-*-sysv* | mips-*-riscos*sysv*)
2572 tm_file="mips/svr3-4.h ${tm_file}"
2573 if test x$stabs = xyes; then
2574 tm_file="${tm_file} dbx.h"
2575 fi
2576 xm_defines=POSIX
2577 if test x$gas = xyes
2578 then
2579 tmake_file=mips/t-svr3-gas
2580 else
2581 tmake_file=mips/t-svr3
2582 extra_passes="mips-tfile mips-tdump"
2583 fi
2584 if test x$gnu_ld != xyes
2585 then
2586 use_collect2=yes
2587 fi
2588 ;;
2589mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2590 tm_file=mips/mips-5.h
2591 if test x$stabs = xyes; then
2592 tm_file="${tm_file} dbx.h"
2593 fi
2594 if test x$gas = xyes
2595 then :
2596 else
2597 extra_passes="mips-tfile mips-tdump"
2598 fi
2599 if test x$gnu_ld != xyes
2600 then
2601 use_collect2=yes
2602 fi
2603 ;;
2604mipsel-*-ecoff*)
2605 tm_file=mips/ecoffl.h
2606 if test x$stabs = xyes; then
2607 tm_file="${tm_file} dbx.h"
2608 fi
2609 tmake_file=mips/t-ecoff
2610 ;;
2611mips-*-ecoff*)
2612 tm_file="gofast.h mips/ecoff.h"
2613 if test x$stabs = xyes; then
2614 tm_file="${tm_file} dbx.h"
2615 fi
2616 tmake_file=mips/t-ecoff
2617 ;;
2618mipsisa32-*-elf*)
2619 tm_file="mips/isa3264.h mips/abi64.h"
2620 tmake_file=mips/t-isa3264
2621 target_cpu_default="MASK_SOFT_FLOAT"
2622 ;;
2623mipsel-*-elf*)
2624 tm_file="mips/elfl.h"
2625 tmake_file=mips/t-elf
2626 ;;
2627mips-*-elf*)
2628 tm_file="mips/elf.h"
2629 tmake_file=mips/t-elf
2630 ;;
2631mips64el-*-elf*)
2632 tm_file="mips/elfl64.h"
2633 tmake_file=mips/t-elf
2634 ;;
2635mips64orionel-*-elf*)
2636 tm_file="mips/elforion.h mips/elfl64.h"
2637 tmake_file=mips/t-elf
2638 ;;
2639mips64-*-elf*)
2640 tm_file="mips/elf64.h"
2641 tmake_file=mips/t-elf
2642 ;;
2643mips64orion-*-elf*)
2644 tm_file="mips/elforion.h mips/elf64.h"
2645 tmake_file=mips/t-elf
2646 ;;
2647mips64orion-*-rtems*)
2648 xm_defines=POSIX
2649 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h rtems.h"
2650 tmake_file="mips/t-elf t-rtems"
2651 if test x$enable_threads = xyes; then
2652 thread_file='rtems'
2653 fi
2654 ;;
2655mips*-*-rtems*)
2656 xm_defines=POSIX
2657 tm_file="mips/elf.h mips/rtems.h rtems.h"
2658 tmake_file="mips/t-elf t-rtems"
2659 if test x$enable_threads = xyes; then
2660 thread_file='rtems'
2661 fi
2662 ;;
2663mipstx39el-*-elf*)
2664 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2665 tmake_file=mips/t-r3900
2666 target_cpu_default="MASK_SOFT_FLOAT"
2667 ;;
2668mipstx39-*-elf*)
2669 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2670 tmake_file=mips/t-r3900
2671 ;;
2672mips-*-*) # Default MIPS RISC-OS 4.0.
2673 if test x$stabs = xyes; then
2674 tm_file="${tm_file} dbx.h"
2675 fi
2676 if test x$gas = xyes
2677 then :
2678 else
2679 extra_passes="mips-tfile mips-tdump"
2680 fi
2681 if test x$gnu_ld != xyes
2682 then
2683 use_collect2=yes
2684 fi
2685 ;;
2686mmix-knuth-mmixware)
2687 ;;
2688mn10200-*-*)
2689 float_format=i32
2690 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2691 if test x$stabs = xyes
2692 then
2693 tm_file="${tm_file} dbx.h"
2694 fi
2695 use_collect2=no
2696 ;;
2697mn10300-*-*)
2698 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2699 if test x$stabs = xyes
2700 then
2701 tm_file="${tm_file} dbx.h"
2702 fi
2703 use_collect2=no
2704 ;;
2705ns32k-encore-bsd*)
2706 tm_file=ns32k/encore.h
2707 use_collect2=yes
2708 ;;
2709ns32k-sequent-bsd*)
2710 tm_file=ns32k/sequent.h
2711 use_collect2=yes
2712 ;;
2713ns32k-tek6100-bsd*)
2714 tm_file=ns32k/tek6100.h
2715 use_collect2=yes
2716 ;;
2717ns32k-tek6200-bsd*)
2718 tm_file=ns32k/tek6200.h
2719 use_collect2=yes
2720 ;;
2721ns32k-merlin-*)
2722 tm_file=ns32k/merlin.h
2723 use_collect2=yes
2724 ;;
2725ns32k-pc532-mach*)
2726 tm_file=ns32k/pc532-mach.h
2727 use_collect2=yes
2728 ;;
2729ns32k-pc532-minix*)
2730 tm_file=ns32k/pc532-min.h
2731 xm_defines='POSIX HZ=60'
2732 use_collect2=yes
2733 ;;
2734ns32k-*-netbsdelf*)
2735 echo "GCC does not yet support the ${machine} target"; exit 1
2736 ;;
2737ns32k-*-netbsd*)
2738 tm_file=ns32k/netbsd.h
2739 # On NetBSD, the headers are already okay, except for math.h.
2740 tmake_file=t-netbsd
2741 use_collect2=yes
2742 ;;
2743pdp11-*-bsd)
2744 tm_file="${tm_file} pdp11/2bsd.h"
2745 ;;
2746pdp11-*-*)
2747 ;;
2748avr-*-*)
2749 ;;
2750ns32k-*-openbsd*)
2751 # Nothing special
2752 ;;
2753pj*-linux*)
2754 tm_file="dbxelf.h elfos.h svr4.h pj/linux.h ${tm_file}"
2755 ;;
2756pj-*)
2757 ;;
2758pjl-*)
2759 tm_file="dbxelf.h elfos.h svr4.h pj/pjl.h ${tm_file}"
2760 ;;
2761
2762romp-*-aos*)
2763 use_collect2=yes
2764 ;;
2765romp-*-mach*)
2766 use_collect2=yes
2767 ;;
2768romp-*-openbsd*)
2769 # Nothing special
2770 ;;
2771powerpc-*-openbsd*)
2772 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2773 extra_headers=
2774 ;;
2775powerpc64-*-linux*)
2776 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux64.h"
2777 out_file=rs6000/rs6000.c
2778 tmake_file="rs6000/t-rs6000 t-slibgcc-elf-ver t-linux rs6000/t-linux64"
2779 ;;
2780powerpc64-*-gnu*)
2781 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"
2782 out_file=rs6000/rs6000.c
2783 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
2784 ;;
2785powerpc-*-beos*)
2786 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
2787 xm_defines=POSIX
2788 tmake_file=rs6000/t-beos
2789 extra_headers=
2790 ;;
2791powerpc-*-darwin*)
2792 tm_file="${tm_file} darwin.h rs6000/darwin.h"
2793 tm_p_file="${tm_p_file} darwin-protos.h"
2794 tmake_file=rs6000/t-darwin
2795 extra_objs="darwin.o"
2796 c_target_objs="darwin-c.o"
2797 cxx_target_objs="darwin-c.o"
2798 # Darwin linker does collect2 functionality
2799 use_collect2=no
2800 extra_headers=altivec.h
2801 ;;
2802powerpc*-*-freebsd*)
2803 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
2804 xm_file=rs6000/xm-sysv4.h
2805 out_file=rs6000/rs6000.c
2806 tmake_file="rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
2807 ;;
2808powerpc-*-sysv*)
2809 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
2810 xm_defines=POSIX
2811 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2812 ;;
2813powerpc-*-netbsd*)
2814 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
2815 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2816 ;;
2817powerpc-*-chorusos*)
2818 xm_defines=POSIX
2819 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
2820 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2821 case x${enable_threads} in
2822 xyes | xpthreads | xposix)
2823 thread_file='posix'
2824 ;;
2825 esac
2826 ;;
2827powerpc-*-eabiaix*)
2828 xm_defines=POSIX
2829 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2830 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2831 ;;
2832powerpc-*-eabisimaltivec*)
2833 xm_defines=POSIX
2834 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"
2835 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2836 ;;
2837powerpc-*-eabisim*)
2838 xm_defines=POSIX
2839 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2840 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2841 ;;
2842powerpc-*-elf*)
2843 xm_defines=POSIX
2844 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
2845 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2846 ;;
2847powerpc-*-eabialtivec*)
2848 xm_defines=POSIX
2849 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
2850 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2851 ;;
2852powerpc-*-eabi*)
2853 xm_defines=POSIX
2854 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
2855 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2856 ;;
2857powerpc-*-rtems*)
2858 xm_defines=POSIX
2859 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
2860 tmake_file="rs6000/t-rtems t-rtems rs6000/t-ppccomm"
2861 if test x$enable_threads = xyes; then
2862 thread_file='rtems'
2863 fi
2864 ;;
2865powerpc-*-linux*libc1)
2866 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
2867 out_file=rs6000/rs6000.c
2868 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2869 if test x$enable_threads = xyes; then
2870 thread_file='posix'
2871 fi
2872 ;;
2873powerpc-*-linux-gnualtivec*)
2874 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
2875 out_file=rs6000/rs6000.c
2876 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2877 ;;
2878powerpc-*-linux*)
2879 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
2880 out_file=rs6000/rs6000.c
2881 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2882 ;;
2883powerpc-*-gnu-gnualtivec*)
2884 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"
2885 out_file=rs6000/rs6000.c
2886 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
2887 if test x$enable_threads = xyes; then
2888 thread_file='posix'
2889 fi
2890 ;;
2891powerpc-*-gnu*)
2892 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"
2893 out_file=rs6000/rs6000.c
2894 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
2895 if test x$enable_threads = xyes; then
2896 thread_file='posix'
2897 fi
2898 ;;
2899powerpc-wrs-vxworks*)
2900 xm_defines=POSIX
2901 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/vxppc.h"
2902 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2903 thread_file='vxworks'
2904 ;;
2905powerpcle-wrs-vxworks*)
2906 xm_defines=POSIX
2907 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2908 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2909 thread_file='vxworks'
2910 ;;
2911powerpcle-*-sysv*)
2912 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
2913 xm_defines=POSIX
2914 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2915 ;;
2916powerpcle-*-elf*)
2917 xm_defines=POSIX
2918 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
2919 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2920 ;;
2921powerpcle-*-eabisim*)
2922 xm_defines=POSIX
2923 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"
2924 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2925 ;;
2926powerpcle-*-eabi*)
2927 xm_defines=POSIX
2928 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2929 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2930 ;;
2931rs6000-ibm-aix3.[01]*)
2932 xm_defines=POSIX
2933 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h rs6000/xcoff.h"
2934 float_format=none
2935 use_collect2=yes
2936 ;;
2937rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2938 xm_defines=POSIX
2939 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h rs6000/xcoff.h"
2940 tmake_file=rs6000/t-newas
2941 float_format=none
2942 use_collect2=yes
2943 extra_headers=
2944 ;;
2945rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2946 xm_defines=POSIX
2947 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
2948 tmake_file=rs6000/t-newas
2949 float_format=none
2950 use_collect2=yes
2951 extra_headers=
2952 ;;
2953rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2954 xm_defines=POSIX
2955 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
2956 tmake_file=rs6000/t-aix43
2957 float_format=none
2958 use_collect2=yes
2959 thread_file='aix'
2960 extra_headers=
2961 ;;
2962rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2963 xm_defines=POSIX
2964 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
2965 tmake_file=rs6000/t-aix43
2966 float_format=none
2967 use_collect2=yes
2968 thread_file='aix'
2969 extra_headers=
2970 ;;
2971rs6000-ibm-aix*)
2972 xm_defines=POSIX
2973 tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2974 float_format=none
2975 use_collect2=yes
2976 ;;
2977rs6000-bull-bosx)
2978 xm_defines=POSIX
2979 tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2980 float_format=none
2981 use_collect2=yes
2982 ;;
2983rs6000-*-mach*)
2984 tm_file="${tm_file} rs6000/mach.h"
2985 xm_defines=POSIX
2986 use_collect2=yes
2987 ;;
2988rs6000-*-lynxos*)
2989 tm_file="lynx.h rs6000/lynx.h"
2990 tmake_file=rs6000/t-rs6000
2991 use_collect2=yes
2992 ;;
2993s390-*-linux*)
2994 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
2995 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2996 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
2997 ;;
2998s390x-*-linux*)
2999 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
3000 tm_p_file=s390/s390-protos.h
3001 md_file=s390/s390.md
3002 out_file=s390/s390.c
3003 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux s390/t-linux64"
3004 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
3005 ;;
3006sh-*-elf*)
3007 tmake_file="sh/t-sh sh/t-elf"
3008 tm_file="${tm_file} sh/elf.h"
3009 float_format=sh
3010 ;;
3011sh64-*-elf*)
3012 tmake_file="sh/t-sh sh/t-elf sh/t-sh64"
3013 tm_file="${tm_file} sh/sh.h sh/elf.h sh/sh64.h"
3014 float_format=sh
3015 extra_headers="../../config/sh/shmedia.h ../../config/sh/ushmedia.h ../../config/sh/sshmedia.h"
3016 # Not strictly necessary to check this, but a good idea anyway.
3017 if test $machine = $target; then
3018 target_requires_64bit_host_wide_int=yes
3019 fi
3020 ;;
3021sh-*-rtemself*)
3022 xm_defines=POSIX
3023 tmake_file="sh/t-sh sh/t-elf t-rtems"
3024 tm_file="${tm_file} sh/elf.h sh/rtemself.h rtems.h"
3025 float_format=sh
3026 if test x$enable_threads = xyes; then
3027 thread_file='rtems'
3028 fi
3029 ;;
3030sh-*-rtems*)
3031 xm_defines=POSIX
3032 tmake_file="sh/t-sh t-rtems"
3033 tm_file="${tm_file} sh/rtems.h rtems.h"
3034 float_format=sh
3035 if test x$enable_threads = xyes; then
3036 thread_file='rtems'
3037 fi
3038 ;;
3039sh-*-linux*)
3040 tm_file="${tm_file} sh/elf.h sh/linux.h"
3041 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
3042 gas=yes gnu_ld=yes
3043 float_format=sh
3044 ;;
3045sh-*-*)
3046 float_format=sh
3047 ;;
3048sparc-tti-*)
3049 tm_file="${tm_file} sparc/pbd.h"
3050 xm_defines=POSIX
3051 ;;
3052sparc64-wrs-vxworks*)
3053 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"
3054 tmake_file="sparc/t-vxsparc64 sparc/t-crtfm"
3055 use_collect2=yes
3056 ;;
3057sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3058 tm_file="${tm_file} aoutos.h sparc/aout.h gofast.h sparc/vxsparc.h"
3059 tmake_file=sparc/t-vxsparc
3060 use_collect2=yes
3061 thread_file='vxworks'
3062 ;;
3063sparc-*-aout*)
3064 tmake_file=sparc/t-sparcbare
3065 tm_file="sparc/sparc.h aoutos.h sparc/aout.h libgloss.h"
3066 ;;
3067sparc-*-netbsdelf*)
3068 tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
3069 ;;
3070sparc-*-netbsd*)
3071 tm_file="${tm_file} sparc/aout.h netbsd.h netbsd-aout.h sparc/netbsd.h"
3072 tmake_file=t-netbsd
3073 use_collect2=yes
3074 ;;
3075sparc-*-openbsd*)
3076 tm_file="sparc/sparc.h ${tm_file}"
3077 # needed to unconfuse gdb
3078 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
3079 # we need collect2 until our bug is fixed...
3080 use_collect2=yes
3081 ;;
3082sparc64-*-openbsd*)
3083 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"
3084 xm_file=sparc/xm-sp64.h
3085 gas=yes gnu_ld=yes
3086 with_cpu=ultrasparc
3087 float_format=i128
3088 ;;
3089sparc-*-bsd*)
3090 tm_file="${tm_file} sparc/bsd.h"
3091 ;;
3092sparc-*-chorusos*)
3093 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h chorus.h"
3094 tmake_file="sparc/t-chorus-elf sparc/t-crtfm"
3095 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3096 float_format=i64
3097 case x${enable_threads} in
3098 xyes | xpthreads | xposix)
3099 thread_file='posix'
3100 ;;
3101 esac
3102 ;;
3103sparc-*-elf*)
3104 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h"
3105 tmake_file="sparc/t-elf sparc/t-crtfm"
3106 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3107 #float_format=i128
3108 float_format=i64
3109 ;;
3110sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
3111 tm_file="aoutos.h sparc/sparc.h sparc/aout.h sparc/linux-aout.h"
3112 gnu_ld=yes
3113 ;;
3114sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
3115 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
3116 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 sparc/t-crtfm"
3117 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3118 gnu_ld=yes
3119 float_format=sparc
3120 ;;
3121sparc-*-linux*) # Sparc's running GNU/Linux, libc6
3122 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
3123 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
3124 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
3125 gnu_ld=yes
3126 float_format=sparc
3127 ;;
3128sparc-*-lynxos*)
3129 if test x$gas = xyes
3130 then
3131 tm_file="${tm_file} lynx.h sparc/aout.h sparc/lynx.h"
3132 else
3133 tm_file="${tm_file} lynx-ng.h sparc/aout.h sparc/lynx-ng.h"
3134 fi
3135 tmake_file=sparc/t-sunos41
3136 ;;
3137sparc-*-rtemsaout*)
3138 xm_defines=POSIX
3139 tmake_file="sparc/t-sparcbare t-rtems"
3140 tm_file="${tm_file} aoutos.h sparc/aout.h sparc/rtems.h rtems.h"
3141 if test x$enable_threads = xyes; then
3142 thread_file='rtems'
3143 fi
3144 ;;
3145sparc-*-rtems*|sparc-*-rtemself*)
3146 xm_defines=POSIX
3147 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h"
3148 tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
3149 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3150 #float_format=i128
3151 float_format=i64
3152 if test x$enable_threads = xyes; then
3153 thread_file='rtems'
3154 fi
3155 ;;
3156sparc64-*-solaris2* | sparcv9-*-solaris2*)
3157 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"
3158 if test x$gnu_ld = xyes; then
3159 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
3160 fi
3161 if test x$gas = xyes; then
3162 tm_file="${tm_file} sparc/sol2-gas-bi.h"
3163 fi
3164 xm_defines=POSIX
3165 tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
3166 if test x$gnu_ld = xyes; then
3167 tmake_file="$tmake_file t-slibgcc-elf-ver"
3168 else
3169 tmake_file="$tmake_file t-slibgcc-sld"
3170 fi
3171 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3172 float_format=i128
3173 if test x${enable_threads} = x ; then
3174 enable_threads=$have_pthread_h
3175 if test x${enable_threads} = x ; then
3176 enable_threads=$have_thread_h
3177 fi
3178 fi
3179 if test x${enable_threads} = xyes ; then
3180 if test x${have_pthread_h} = xyes ; then
3181 thread_file='posix'
3182 else
3183 thread_file='solaris'
3184 fi
3185 fi
3186 ;;
3187sparc-hal-solaris2*)
3188 xm_defines=POSIX
3189 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/hal.h"
3190 tmake_file="sparc/t-halos sparc/t-sol2 sparc/t-crtfm"
3191 if test x$gnu_ld = xyes; then
3192 tm_file="${tm_file} sparc/sol2-gld.h"
3193 tmake_file="$tmake_file t-slibgcc-elf-ver"
3194 else
3195 tmake_file="$tmake_file t-slibgcc-sld"
3196 fi
3197 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3198 float_format=i128
3199 thread_file='solaris'
3200 ;;
3201sparc-*-solaris2*)
3202 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h"
3203 if test x$gnu_ld = xyes; then
3204 tm_file="${tm_file} sparc/sol2-gld.h"
3205 fi
3206 tmake_file="sparc/t-sol2 sparc/t-crtfm"
3207 if test x$gnu_ld = xyes; then
3208 tmake_file="$tmake_file t-slibgcc-elf-ver"
3209 else
3210 tmake_file="$tmake_file t-slibgcc-sld"
3211 fi
3212 case $machine in
3213 *-*-solaris2.[789])
3214 tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
3215 if test x$gnu_ld = xyes; then
3216 tm_file="${tm_file} sparc/sol2-gld-bi.h"
3217 fi
3218 if test x$gas = xyes; then
3219 tm_file="${tm_file} sparc/sol2-gas-bi.h"
3220 fi
3221 tmake_file="$tmake_file sparc/t-sol2-64"
3222 ;;
3223 esac
3224 case $machine in
3225 *-*-solaris2.[0-7] | *-*-solaris2.[0-7].*)
3226 if test x$gnu_ld = xno; then
3227 tm_file="${tm_file} sparc/sol27-sld.h"
3228 fi
3229 ;;
3230 esac
3231 xm_defines=POSIX
3232 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3233 float_format=i128
3234 if test x${enable_threads} = x; then
3235 enable_threads=$have_pthread_h
3236 if test x${enable_threads} = x; then
3237 enable_threads=$have_thread_h
3238 fi
3239 fi
3240 if test x${enable_threads} = xyes; then
3241 if test x${have_pthread_h} = xyes; then
3242 thread_file='posix'
3243 else
3244 thread_file='solaris'
3245 fi
3246 fi
3247 ;;
3248sparc-*-sunos4.0*)
3249 tm_file="${tm_file} sparc/aout.h sparc/sunos4.h"
3250 use_collect2=yes
3251 ;;
3252sparc-*-sunos4*)
3253 tm_file="${tm_file} sparc/aout.h sparc/sunos4.h"
3254 tmake_file=sparc/t-sunos41
3255 use_collect2=yes
3256 if test x$gas = xyes; then
3257 tm_file="${tm_file} sparc/sun4gas.h"
3258 fi
3259 ;;
3260sparc-*-sunos3*)
3261 tm_file="${tm_file} sparc/aout.h sparc/sun4o3.h"
3262 use_collect2=yes
3263 ;;
3264sparc-*-sysv4*)
3265 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h"
3266 xm_defines=POSIX
3267 tmake_file=t-svr4
3268 extra_parts="crtbegin.o crtend.o"
3269 ;;
3270sparc-*-vxsim*)
3271 xm_defines=POSIX
3272 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/vxsim.h"
3273 tmake_file=sparc/t-vxsparc
3274 ;;
3275sparclet-*-aout*)
3276 tm_file="${tm_file} aoutos.h sparc/aout.h sparc/splet.h libgloss.h"
3277 tmake_file=sparc/t-splet
3278 ;;
3279sparclite-*-coff*)
3280 tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
3281 tmake_file=sparc/t-sparclite
3282 ;;
3283sparclite-*-aout*)
3284 tm_file="${tm_file} gofast.h sparc/aout.h sparc/lite.h aoutos.h libgloss.h"
3285 tmake_file=sparc/t-sparclite
3286 ;;
3287sparclite-*-elf*)
3288 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/elf.h gofast.h sparc/liteelf.h"
3289 tmake_file="sparc/t-sparclite sparc/t-crtfm"
3290 extra_parts="crtbegin.o crtend.o"
3291 ;;
3292sparc86x-*-aout*)
3293 tm_file="${tm_file} gofast.h sparc/aout.h sparc/sp86x-aout.h aoutos.h libgloss.h"
3294 tmake_file=sparc/t-sp86x
3295 ;;
3296sparc86x-*-elf*)
3297 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"
3298 tmake_file="sparc/t-sp86x sparc/t-crtfm"
3299 extra_parts="crtbegin.o crtend.o"
3300 ;;
3301sparc64-*-aout*)
3302 tm_file="sparc/sparc.h aoutos.h sparc/aout.h sparc/sp64-aout.h"
3303 ;;
3304sparc64-*-elf*)
3305 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sp64-elf.h"
3306 tmake_file="${tmake_file} sparc/t-crtfm"
3307 extra_parts="crtbegin.o crtend.o"
3308 ;;
3309sparc64-*-freebsd*|ultrasparc-*-freebsd*)
3310 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
3311 tmake_file="${tmake_file} sparc/t-crtfm"
3312 xmake_file=none
3313 case "x$with_cpu" in
3314 xultrasparc) ;;
3315 x) with_cpu=ultrasparc ;;
3316 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
3317 esac
3318 ;;
3319sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3320 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
3321 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
3322 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
3323 gnu_ld=yes
3324 float_format=sparc
3325 ;;
3326sparc64-*-netbsd*)
3327 tmake_file="${tmake_file} sparc/t-netbsd64"
3328 tm_file="sparc/biarch64.h ${tm_file}"
3329 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
3330 float_format=sparc
3331 ;;
3332strongarm-*-elf*)
3333 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
3334 tmake_file=arm/t-strongarm-elf
3335 out_file=arm/arm.c
3336 md_file=arm/arm.md
3337 ;;
3338strongarm-*-coff*)
3339 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/strongarm-coff.h arm/arm.h"
3340 tmake_file=arm/t-strongarm-coff
3341 out_file=arm/arm.c
3342 md_file=arm/arm.md
3343 ;;
3344strongarm-*-pe)
3345 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"
3346 tmake_file=arm/t-strongarm-pe
3347 out_file=arm/arm.c
3348 md_file=arm/arm.md
3349 extra_objs=pe.o
3350 ;;
3351thumb*-*-*)
3352 { echo "config.gcc: error:
3353*** The Thumb targets have been deprecated. The equivalent
3354*** ARM based toolchain can now generate Thumb instructions
3355*** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
3356 ;;
3357v850-*-rtems*)
3358 xm_defines=POSIX
3359 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} v850/v850.h v850/rtems.h rtems.h"
3360 tmake_file="v850/t-v850 t-rtems"
3361 if test x$stabs = xyes
3362 then
3363 tm_file="${tm_file} dbx.h"
3364 fi
3365 use_collect2=no
3366 c_target_objs="v850-c.o"
3367 cxx_target_objs="v850-c.o"
3368 ;;
3369v850-*-*)
3370 target_cpu_default="TARGET_CPU_generic"
3371 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
3372 tmake_file=v850/t-v850
3373 if test x$stabs = xyes
3374 then
3375 tm_file="${tm_file} dbx.h"
3376 fi
3377 use_collect2=no
3378 c_target_objs="v850-c.o"
3379 cxx_target_objs="v850-c.o"
3380 ;;
3381vax-*-bsd*) # VAXen running BSD
3382 use_collect2=yes
3383 float_format=vax
3384 ;;
3385vax-*-sysv*) # VAXen running system V
3386 tm_file="${tm_file} vax/vaxv.h"
3387 xm_defines=POSIX
3388 float_format=vax
3389 ;;
3390vax-*-netbsdelf*)
3391 echo "GCC does not yet support the ${machine} target"; exit 1
3392 ;;
3393vax-*-netbsd*)
3394 tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
3395 tmake_file=t-netbsd
3396 float_format=vax
3397 use_collect2=yes
3398 ;;
3399vax-*-openbsd*)
3400 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3401 float_format=vax
3402 use_collect2=yes
3403 ;;
3404vax-*-ultrix*) # VAXen running ultrix
3405 tm_file="${tm_file} vax/ultrix.h"
3406 float_format=vax
3407 ;;
3408vax-*-vms*) # VAXen running VMS
3409 xm_file=vax/xm-vms.h
3410 tm_file=vax/vms.h
3411 float_format=vax
3412 ;;
3413vax-*-*) # VAX default entry
3414 float_format=vax
3415 ;;
3416we32k-att-sysv*)
3417 xm_defines=POSIX
3418 use_collect2=yes
3419 ;;
3420xscale-*-elf)
3421 tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
3422 tmake_file=arm/t-xscale-elf
3423 out_file=arm/arm.c
3424 md_file=arm/arm.md
3425 ;;
3426xscale-*-coff)
3427 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/xscale-coff.h arm/arm.h"
3428 tmake_file=arm/t-xscale-coff
3429 out_file=arm/arm.c
3430 md_file=arm/arm.md
3431 ;;
3432xstormy16-*-elf)
3433 # For historical reasons, the target files omit the 'x'.
3434 tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
3435 tm_p_file=stormy16/stormy16-protos.h
3436 md_file=stormy16/stormy16.md
3437 out_file=stormy16/stormy16.c
3438 tmake_file="stormy16/t-stormy16"
3439 extra_parts="crtbegin.o crtend.o"
3440 ;;
3441xtensa-*-elf*)
3442 tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
3443 with_newlib=yes
3444 tmake_file=xtensa/t-xtensa
3445 extra_parts="crtbegin.o crtend.o"
3446 fixincludes=Makefile.in # newlib headers should be OK
3447 ;;
3448xtensa-*-linux*)
3449 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
3450 tmake_file="t-linux xtensa/t-xtensa"
3451 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
3452 gas=yes gnu_ld=yes
3453 ;;
3454*)
3455 echo "Configuration $machine not supported" 1>&2
3456 exit 1
3457 ;;
3458esac
3459
3460case $machine in
3461*-*-sysv*)
3462 install_headers_dir=install-headers-cpio
3463 ;;
3464esac
3465
3466# Distinguish i[34567]86
3467# Also, do not run mips-tfile on MIPS if using gas.
3468# Process --with-cpu= for PowerPC/rs6000
3469target_cpu_default2=
3470case $machine in
3471i486-*-*)
3472 target_cpu_default2=TARGET_CPU_DEFAULT_i486
3473 ;;
3474i586-*-*)
3475 case $target_alias in
3476 k6_2-*)
3477 target_cpu_default2=TARGET_CPU_DEFAULT_k6_2
3478 ;;
3479 k6_3-*)
3480 target_cpu_default2=TARGET_CPU_DEFAULT_k6_3
3481 ;;
3482 k6-*)
3483 target_cpu_default2=TARGET_CPU_DEFAULT_k6
3484 ;;
3485 pentium_mmx-*)
3486 target_cpu_default2=TARGET_CPU_DEFAULT_pentium_mmx
3487 ;;
3488 *)
3489 target_cpu_default2=TARGET_CPU_DEFAULT_pentium
3490 ;;
3491 esac
3492 ;;
3493i686-*-* | i786-*-*)
3494 case $target_alias in
3495 athlon_xp-*|athlon_mp-*|athlon_4-*)
3496 target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
3497 ;;
3498 athlon_tbird-*|athlon-*)
3499 target_cpu_default2=TARGET_CPU_DEFAULT_athlon
3500 ;;
3501 pentium2-*)
3502 target_cpu_default2=TARGET_CPU_DEFAULT_pentium2
3503 ;;
3504 pentium3-*)
3505 target_cpu_default2=TARGET_CPU_DEFAULT_pentium3
3506 ;;
3507 pentium4-*)
3508 target_cpu_default2=TARGET_CPU_DEFAULT_pentium4
3509 ;;
3510 *)
3511 target_cpu_default2=TARGET_CPU_DEFAULT_pentiumpro
3512 ;;
3513 esac
3514 ;;
3515x86_64-*-*)
3516 # We should have hammer chip here, but it does not exist yet and
3517 # thus it is not supported. Athlon_SSE is probably equivalent feature
3518 # wise to hammer from our point of view except for 64bit mode.
3519 target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
3520 ;;
3521alpha*-*-*)
3522 case $machine in
3523 alphaev6[78]*)
3524 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3525 ;;
3526 alphaev6*)
3527 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3528 ;;
3529 alphapca56*)
3530 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3531 ;;
3532 alphaev56*)
3533 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3534 ;;
3535 alphaev5*)
3536 target_cpu_default2="MASK_CPU_EV5"
3537 ;;
3538 esac
3539
3540 if test x$gas = xyes
3541 then
3542 if test "$target_cpu_default2" = ""
3543 then
3544 target_cpu_default2="MASK_GAS"
3545 else
3546 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3547 fi
3548 fi
3549 ;;
3550arm*-*-*)
3551 case "x$with_cpu" in
3552 x)
3553 # The most generic
3554 target_cpu_default2="TARGET_CPU_generic"
3555 ;;
3556
3557 # Distinguish cores, and major variants
3558 # arm7m doesn't exist, but D & I don't affect code
3559 xarm[236789] | xarm250 | xarm[67][01]0 \
3560 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
3561 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3562 | xxscale \
3563 | xstrongarm | xstrongarm110 | xstrongarm1100)
3564 target_cpu_default2="TARGET_CPU_$with_cpu"
3565 ;;
3566
3567 xyes | xno)
3568 echo "--with-cpu must be passed a value" 1>&2
3569 exit 1
3570 ;;
3571
3572 *)
3573 if test x$pass2done = xyes
3574 then
3575 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3576 exit 1
3577 fi
3578 ;;
3579 esac
3580 ;;
3581
3582hppa*-*-* | parisc*-*-*)
3583 if test x$gas = xyes
3584 then
3585 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
3586 fi
3587 ;;
3588
3589mips*-*-ecoff* | mips*-*-elf*)
3590 if test x$gas = xyes
3591 then
3592 if test x$gnu_ld = xyes
3593 then
3594 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3595 else
3596 target_cpu_default2="MASK_GAS"
3597 fi
3598 fi
3599 ;;
3600mips*-*-*)
3601 if test x$gas = xyes
3602 then
3603 target_cpu_default2="MASK_GAS"
3604 fi
3605 ;;
3606powerpc*-*-* | rs6000-*-*)
3607 if test x$enable_altivec = xyes
3608 then
3609 tm_file="$tm_file rs6000/altivec-defs.h"
3610 fi
3611 case "x$with_cpu" in
3612 x)
3613 ;;
3614
3615 xcommon | xpower | xpower2 | xpower3 | xpowerpc | xpowerpc64 \
3616 | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
3617 | x601 | x602 | x603 | x603e | x604 | x604e | x620 | x630 \
3618 | x740 | x750 | x7400 | x7450 | x505)
3619 target_cpu_default2="\\\"$with_cpu\\\""
3620 ;;
3621
3622 x401 | x403 | x405 | xec603e | x801 | x821 | x823 | x860)
3623 target_cpu_default2="\\\"$with_cpu\\\""
3624 tm_file="$tm_file rs6000/softfloat.h"
3625 ;;
3626
3627 xyes | xno)
3628 echo "--with-cpu must be passed a value" 1>&2
3629 exit 1
3630 ;;
3631
3632 *)
3633 if test x$pass2done = xyes
3634 then
3635 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3636 exit 1
3637 fi
3638 ;;
3639 esac
3640 ;;
3641sparc*-*-*)
3642 case ".$with_cpu" in
3643 .)
3644 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3645 ;;
3646 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3647 target_cpu_default2="TARGET_CPU_$with_cpu"
3648 ;;
3649 *)
3650 if test x$pass2done = xyes
3651 then
3652 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3653 exit 1
3654 fi
3655 ;;
3656 esac
3657 ;;
3658esac
3659
3660if test "$target_cpu_default2" != ""
3661then
3662 if test "$target_cpu_default" != ""
3663 then
3664 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3665 else
3666 target_cpu_default=$target_cpu_default2
3667 fi
3668fi
3669
3670# Save data on machine being used to compile GCC in build_xm_file.
3671# Save data on host machine in vars host_xm_file and host_xmake_file.
3672if test x$pass1done = x
3673then
3674 if test x$xm_file != x
3675 then build_xm_file=$xm_file
3676 fi
3677 build_xm_defines=$xm_defines
3678 build_install_headers_dir=$install_headers_dir
3679 build_exeext=$exeext
3680 pass1done=yes
3681else
3682 if test x$pass2done = x
3683 then
3684 if test x$xm_file != x
3685 then host_xm_file=$xm_file
3686 fi
3687 host_xm_defines=$xm_defines
3688 host_xmake_file="$xmake_file"
3689 host_truncate_target=$truncate_target
3690 host_extra_gcc_objs=$extra_gcc_objs
3691 host_extra_objs=$extra_host_objs
3692 host_exeext=$exeext
3693 pass2done=yes
3694 fi
3695fi
Note: See TracBrowser for help on using the repository browser.