OSDN Git Service

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