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