OSDN Git Service

* config.gcc: Narrow unsupported target match to avoid clobbering
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
1 # GCC build-, host- and target-specific configuration file.
2 # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003
3 # Free Software Foundation, Inc.
4
5 #This file is part of GCC.
6
7 #GCC is free software; you can redistribute it and/or modify it under
8 #the terms of the GNU General Public License as published by the Free
9 #Software Foundation; either version 2, or (at your option) any later
10 #version.
11
12 #GCC is distributed in the hope that it will be useful, but WITHOUT
13 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 #FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 #for more details.
16
17 #You should have received a copy of the GNU General Public License
18 #along with GCC; see the file COPYING.  If not, write to the Free
19 #Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 #02111-1307, USA.
21
22 # This is the GCC build-, host- and target-specific configuration file
23 # where a configuration type, as recognized and generated by config.bfd,
24 # is mapped to different system-specific definitions and files.  This is
25 # invoked by the autoconf-generated configure script, called for build,
26 # host and target in that order, setting ${machine} to each.  Putting it
27 # in a separate shell file lets us skip running autoconf when modifying
28 # build-, host- and target-specific information.
29
30 # This file switches on the shell variable ${machine}, and also uses the
31 # following shell variables:
32 #
33 #  with_*               Various variables as set by configure.
34 #
35 #  enable_threads_flag  Either the name, yes or no depending on whether
36 #                       threads support was requested.
37 #
38 #  default_use_cxa_atexit
39 #                       "no" by default, can be set to "yes" if a target
40 #                       wishes to use __cxa_atexit() by default if the
41 #                       $enable___cxa_atexit variable is not set.
42 #
43 #  gas_flag             Either yes or no depending on whether GNU as was
44 #                       requested.
45 #
46 #  gnu_ld_flag          Either yes or no depending on whether GNU ld was
47 #                       requested.
48
49 # This file sets the following shell variables for use by the
50 # autoconf-generated configure script:
51 #
52 #  cpu_type             The name of the cpu, if different from machine.
53 #
54 #  tm_defines           List of target macros to define for all compilations.
55 #
56 #  tm_file              A list of target macro files, if different from
57 #                       "$cpu_type/$cpu_type.h". Usually it's constructed
58 #                       per target in a way like this:
59 #                       tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h"
60 #                       Note that the preferred order is:
61 #                       - specific target header "${cpu_type}/${cpu_type.h}"
62 #                       - generic headers like dbxelf.h elfos.h, netware.h, etc.
63 #                       - specializing target headers like ${cpu_type.h}/elf.h
64 #                       This helps to keep OS specific stuff out of the CPU
65 #                       defining header ${cpu_type}/${cpu_type.h}.
66 #
67 #  tm_p_file            Location of file with declarations for functions
68 #                       in $out_file.
69 #
70 #  out_file             The name of the machine description C support
71 #                       file, if different from "$cpu_type/$cpu_type.c".
72 #
73 #  md_file              The name of the machine-description file, if
74 #                       different from "$cpu_type/$cpu_type.md".
75 #
76 #  tmake_file           A list of machine-description-specific
77 #                       makefile-fragments, if different from
78 #                       "$cpu_type/t-$cpu_type".
79 #
80 #  extra_modes          The name of the file containing a list of extra
81 #                       machine modes, if necessary and different from
82 #                       "$cpu_type/$cpu_type-modes.def".
83 #
84 #  extra_objs           List of extra objects that should be linked into
85 #                       the compiler proper (cc1, cc1obj, cc1plus)
86 #                       depending on target.
87 #
88 #  extra_headers        List of used header files from the directory
89 #                       config/${cpu_type}.
90 #
91 #  host_xmake_file      List of host-specific makefile-fragments.
92 #
93 #  extra_passes         List of extra executables compiled for this target
94 #                       machine, used for compiling from source to object.
95 #
96 #  extra_parts          List of extra object files that should be compiled
97 #                       for this target machine.
98 #
99 #  extra_programs       Like extra_passes, but these are used when linking.
100 #
101 #  host_extra_objs      List of extra host-dependent objects that should
102 #                       be linked into the compiler proper.
103 #
104 #  host_extra_gcc_objs  List of extra host-dependent objects that should
105 #                       be linked into the gcc driver.
106 #
107 #  out_host_hook_obj    An object file that provides the host hooks.
108 #
109 #  c_target_objs        List of extra target-dependent objects that be
110 #                       linked into the C compiler only.
111 #
112 #  cxx_target_objs      List of extra target-dependent objects that be
113 #                       linked into the C++ compiler only.
114 #
115 #  target_gtfiles       List of extra source files with type information.
116 #
117 #  build_xm_defines     List of macros to define when compiling for the
118 #                       build machine.
119 #
120 #  build_xm_file        List of files to include when compiling for the
121 #                       build machine.
122 #
123 #  host_xm_defines      List of macros to define when compiling for the
124 #                       host machine.
125 #
126 #  host_xm_file         List of files to include when compiling for the
127 #                       host machine.
128 #
129 #  xm_defines           List of macros to define when compiling for the
130 #                       target machine.
131 #
132 #  xm_file              List of files to include when compiling for the
133 #                       target machine.
134 #
135 #  use_collect2         Set to yes or no, depending on whether collect2
136 #                       will be used.
137 #
138 #  target_cpu_default   Set to override the default target model.
139 #
140 #  build_install_headers_dir
141 #                       Target to use when installing header files.
142 #
143 #  gdb_needs_out_file_path
144 #                       Set to yes if gdb needs a dir command with
145 #                       `dirname $out_file`.
146 #
147 #  build_exeext         Set to the suffix, if the build machine requires
148 #                       executables to have a file name suffix.
149 #
150 #  host_exeext          Set to the suffix, if the host machine requires
151 #                       executables to have a file name suffix.
152 #
153 #  thread_file          Set to control which thread package to use.
154 #
155 #  gas                  Set to yes or no depending on whether the target
156 #                       system normally uses GNU as.
157 #
158 #  need_64bit_hwint     Set to yes if HOST_WIDE_INT must be 64 bits wide
159 #                       for this target.  This is true iff
160 #                       MAX_LONG_TYPE_SIZE is 64.  (The code which
161 #                       determines the underlying integral type for
162 #                       HOST_WIDE_INT cannot see the definition of
163 #                       MAX_LONG_TYPE_SIZE.)
164 #
165 #  configure_default_options
166 #                       Set to an initializer for configure_default_options
167 #                       in configargs.h, based on --with-cpu et cetera.
168
169 # The following variables are used in each case-construct to build up the
170 # outgoing variables:
171 #
172 #  xmake_file           Makefile-fragment when this system is as a host,
173 #                       for host_xmake_file.
174 #
175 #  extra_host_objs      List of extra objects that should be linked into
176 #                       the compiler proper when this system is a host,
177 #                       for host_extra_objs.
178 #
179 #  host_hook_obj        An object file that provides the host hooks.
180 #
181 #  install_headers_dir  Makefile-target for how the header file directory
182 #                       is installed, when this system is a build system,
183 #                       for build_install_headers_dir.
184 #
185 #  exeext               The suffix for executables on this system.
186 #
187 #  gnu_ld               Set to yes or no depending on whether the target
188 #                       system normally uses GNU ld.
189
190 out_file=
191 xmake_file=
192 tmake_file=
193 extra_headers=
194 extra_passes=
195 extra_parts=
196 extra_programs=
197 extra_objs=
198 extra_host_objs=
199 extra_gcc_objs=
200 c_target_objs=
201 cxx_target_objs=
202 host_hook_obj=host-default.o
203 tm_defines=
204 xm_defines=
205 # Set this to force installation and use of collect2.
206 use_collect2=
207 # Set this to override the default target model.
208 target_cpu_default=
209 # Set this to control how the header file directory is installed.
210 install_headers_dir=install-headers-tar
211 # Set this if gdb needs a dir command with `dirname $out_file`
212 gdb_needs_out_file_path=
213 # Set this if the build machine requires executables to have a
214 # file name suffix.
215 exeext=
216 # Set this to control which thread package will be used.
217 thread_file=
218 # Reinitialize these from the flag values every loop pass, since some
219 # configure entries modify them.
220 gas="$gas_flag"
221 gnu_ld="$gnu_ld_flag"
222 enable_threads=$enable_threads_flag
223 default_use_cxa_atexit=no
224 target_gtfiles=
225 need_64bit_hwint=
226
227 # Don't carry these over build->host->target.  Please.
228 xm_file=
229 md_file=
230
231 # Obsolete configurations.
232 case $machine in
233  dummy)
234     if test "x$enable_obsolete" != xyes; then
235       echo "*** Configuration $machine is obsolete." >&2
236       echo "*** Specify --enable-obsolete to build it anyway." >&2
237       echo "*** Support will be REMOVED in the next major release of GCC," >&2
238       echo "*** unless a maintainer comes forward." >&2
239       exit 1
240     fi;;
241 esac
242
243 # Unsupported targets list.  Do not put an entry in this list unless
244 # it would otherwise be caught by a more permissive pattern.  The list
245 # should be in alphabetical order.
246 case $machine in
247    alpha*-*-linux*libc1*                \
248  | i[34567]86-sequent-sysv              \
249  | i[34567]86-sequent-sysv[!4]*         \
250  | i[34567]86-go32-*                    \
251  | i[34567]86-*-go32*                   \
252  | m68k-*-linux*aout*                   \
253  | m68k-*-linux*libc1*                  \
254  | mips64orion*-*-rtems*                \
255  | powerpc-*-linux*libc1*               \
256  | sparc-*-linux*aout*                  \
257  | sparc-*-linux*libc1*                 \
258  | sparc-hal-solaris2*                  \
259  | thumb-*-*                            \
260  | *-*-linux*coff*                      \
261  | *-*-linux*oldld*                     \
262  | *-*-rtemsaout*                       \
263  | *-*-rtemscoff*                       \
264  )
265         echo "*** Configuration $machine not supported" 1>&2
266         exit 1
267         ;;
268 esac
269
270 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
271 # updated in each machine entry.  Also set default extra_headers for some
272 # machines.
273 tm_p_file=
274 cpu_type=`echo $machine | sed 's/-.*$//'`
275 case $machine in
276 alpha*-*-*)
277         cpu_type=alpha
278         need_64bit_hwint=yes
279         ;;
280 am33_2.0-*-linux*)
281         cpu_type=mn10300
282         ;;
283 strongarm*-*-*)
284         cpu_type=arm
285         ;;
286 arm*-*-*)
287         cpu_type=arm
288         extra_headers="mmintrin.h"
289         ;;
290 ep9312*-*-*)
291         cpu_type=arm
292         ;;
293 xscale-*-*)
294         cpu_type=arm
295         extra_headers="mmintrin.h"
296         ;;
297 i[34567]86-*-*)
298         cpu_type=i386
299         extra_headers="mmintrin.h xmmintrin.h emmintrin.h pmmintrin.h"
300         ;;
301 x86_64-*-*)
302         cpu_type=i386
303         extra_headers="mmintrin.h xmmintrin.h emmintrin.h pmmintrin.h"
304         need_64bit_hwint=yes
305         ;;
306 ia64-*-*)
307         extra_headers=ia64intrin.h
308         need_64bit_hwint=yes
309         ;;
310 hppa*-*-* | parisc*-*-*)
311         cpu_type=pa
312         ;;
313 m680[012]0-*-*)
314         cpu_type=m68k
315         extra_headers=math-68881.h
316         ;;
317 m68k-*-*)
318         extra_headers=math-68881.h
319         ;;
320 mips*-*-*)
321         cpu_type=mips
322         need_64bit_hwint=yes
323         ;;
324 powerpc*-*-*)
325         cpu_type=rs6000
326         extra_headers="ppc-asm.h altivec.h spe.h"
327         need_64bit_hwint=yes
328         ;;
329 rs6000*-*-*)
330         need_64bit_hwint=yes
331         ;;
332 sparc64*-*-*)
333         cpu_type=sparc
334         need_64bit_hwint=yes
335         ;;
336 sparc*-*-*)
337         cpu_type=sparc
338         ;;
339 s390*-*-*)
340         need_64bit_hwint=yes
341         ;;
342 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
343 sh[123456789l]*-*-*)
344         cpu_type=sh
345         need_64bit_hwint=yes
346         ;;
347 tic4x-*-*)
348         cpu_type=c4x
349         ;;
350 esac
351
352 tm_file=${cpu_type}/${cpu_type}.h
353 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
354 then
355         tm_p_file=${cpu_type}/${cpu_type}-protos.h
356 fi
357 extra_modes=
358 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
359 then
360         extra_modes=${cpu_type}/${cpu_type}-modes.def
361 fi
362
363 case $machine in
364 x86_64-*-*)
365         tm_file="i386/biarch64.h ${tm_file}"
366         ;;
367 esac
368
369 # On a.out targets, we need to use collect2.
370 case $machine in
371 *-*-*aout*)
372         use_collect2=yes
373         ;;
374 esac
375
376 # Common parts for widely ported systems.
377 case $machine in
378 *-*-linux*)
379         case $machine in
380          *-*-linux*libc1* | *-*-linux*aout*)
381                 ;;
382         *)
383                 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
384                 gas=yes gnu_ld=yes
385                 case x${enable_threads} in
386                         x | xyes | xposix) thread_file='posix'
387                         ;;
388                 esac
389                 ;;
390         esac
391         ;;
392 *-*-gnu*)
393         # On the Hurd, the setup is just about the same on
394         # each different CPU.  The specific machines that we
395         # support are matched above and just set $cpu_type.
396         tm_file="${cpu_type}/gnu.h"
397         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
398         # GNU always uses ELF.
399         elf=yes
400         # GNU tools are the only tools.
401         gnu_ld=yes
402         gas=yes
403         # These details are the same as for Linux.
404         # But here we need a little extra magic.
405         tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
406         case $machine in
407         alpha*)
408                 tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
409                 ;;
410         i[34567]86-*-*)
411                 tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h gnu.h ${tm_file}"
412                 ;;
413         esac
414         ;;
415 *-*-openbsd*)
416         tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
417         if test x$enable_threads = xyes; then
418                 thread_file='posix'
419                 tmake_file="${tmake_file} t-openbsd-thread"
420         fi
421         ;;
422 *-*-netbsd*)
423         tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd t-libgcc-pic"
424         gas=yes
425         gnu_ld=yes
426
427         # NetBSD 2.0 and later get POSIX threads enabled by default.
428         # Allow them to be explicitly enabled on any other version.
429         case x${enable_threads} in
430         x)
431                 case $machine in
432                 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
433                         thread_file='posix'
434                         tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
435                         ;;
436                 esac
437                 ;;
438         xyes | xposix)
439                 thread_file='posix'
440                 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
441                 ;;
442         esac
443
444         # NetBSD 1.7 and later are set up to use GCC's crtstuff for
445         # ELF configurations.  We will clear extra_parts in the
446         # a.out configurations.
447         case $machine in
448         *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
449                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
450                 ;;
451         esac
452
453         # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
454         # default (unless overridden by --disable-__cxa_atexit).
455         case $machine in
456         *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
457                 default_use_cxa_atexit=yes
458                 ;;
459         esac
460         ;;
461 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
462         # This is the place-holder for the generic a.out configuration
463         # of FreeBSD.  No actual configuration resides here since
464         # there was only ever a bare-bones ix86 configuration for
465         # a.out and it exists solely in the machine-specific section.
466         # This place-holder must exist to avoid dropping into
467         # the generic ELF configuration of FreeBSD (i.e. it must be
468         # ordered before that section).
469         ;;
470 *-*-freebsd*)
471         # This is the generic ELF configuration of FreeBSD.  Later
472         # machine-specific sections may refine and add to this
473         # configuration.
474         #
475         # Due to tm_file entry ordering issues that vary between cpu
476         # architectures, we only define fbsd_tm_file to allow the
477         # machine-specific section to dictate the final order of all
478         # entries of tm_file with the minor exception that components
479         # of the tm_file set here will always be of the form:
480         #
481         # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
482         #
483         # The machine-specific section should not tamper with this
484         # ordering but may order all other entries of tm_file as it
485         # pleases around the provided core setting.
486         gas=yes
487         gnu_ld=yes
488         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
489         case $machine in
490         *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
491         *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
492         *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
493         *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
494         *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
495         esac
496         tmake_file="t-slibgcc-elf-ver t-freebsd"
497         xmake_file=none
498         case x${enable_threads} in
499         xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
500         x | xyes | xpthreads | xposix)
501                 thread_file='posix'
502                 tmake_file="${tmake_file} t-freebsd-thread"
503                 # Before 5.0, FreeBSD can't bind shared libraries to -lc
504                 # when "optionally" threaded via weak pthread_* checks.
505                 case $machine in
506                 *-*-freebsd[34] | *-*-freebsd[34].*)
507                         tmake_file="${tmake_file} t-slibgcc-nolc-override";;
508                 esac
509                 ;;
510         *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
511         esac
512         fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
513         ;;
514 *-*-darwin*)
515         tm_file="${tm_file} darwin.h"
516         tm_p_file="${tm_p_file} darwin-protos.h"
517         tmake_file="t-darwin"
518         target_gtfiles="\$(srcdir)/config/darwin.c"
519         c_target_objs="darwin-c.o"
520         cxx_target_objs="darwin-c.o"
521         extra_parts="crt2.o"
522         extra_objs="darwin.o"
523         case x${enable_threads} in
524              x | xyes | xposix) thread_file='posix'
525              ;;
526         esac
527         ;;      
528 *-*-vxworks*)
529         tmake_file=t-vxworks
530         tm_file="${tm_file} elfos.h svr4.h vxworks.h"
531         thread_file='vxworks'
532         use_collect2=yes
533         ;;
534 esac
535
536 case $machine in
537 # Support site-specific machine types.
538 *local*)
539         rest=`echo $machine | sed -e "s/$cpu_type-//"`
540         tm_file=${cpu_type}/$rest.h
541         if test -f $srcdir/config/${cpu_type}/xm-$rest.h
542         then xm_file=${cpu_type}/xm-$rest.h
543         fi
544         if test -f $srcdir/config/${cpu_type}/x-$rest
545         then xmake_file=${cpu_type}/x-$rest
546         fi
547         if test -f $srcdir/config/${cpu_type}/t-$rest
548         then tmake_file=${cpu_type}/t-$rest
549         fi
550         ;;
551 alpha*-*-unicosmk*)
552         use_collect2=yes
553         tm_file="${tm_file} alpha/unicosmk.h"
554
555         # Don't include t-ieee for now because we don't support that yet
556         # tmake_file="alpha/t-ieee"
557         tmake_file="alpha/t-unicosmk"
558         ;;
559 alpha*-*-linux*)
560         tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
561         target_cpu_default="MASK_GAS"
562         tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
563         ;;
564 alpha*-*-gnu*)
565         target_cpu_default="MASK_GAS"
566         tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
567         ;;
568 alpha*-*-freebsd*)
569         tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
570         target_cpu_default="MASK_GAS"
571         tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
572         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
573         ;;
574 alpha*-*-netbsd*)
575         tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
576         target_cpu_default="MASK_GAS"
577         tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
578         ;;
579
580 alpha*-*-openbsd*)
581         tm_defines="OBSD_NO_DYNAMIC_LIBRARIES OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT"
582         tm_file="alpha/alpha.h openbsd.h alpha/openbsd.h"
583         # default x-alpha is only appropriate for dec-osf.
584         target_cpu_default="MASK_GAS"
585         tmake_file="alpha/t-alpha alpha/t-ieee"
586         ;;
587
588 alpha*-dec-osf[45]*)
589         if test x$stabs = xyes
590         then
591                 tm_file="${tm_file} dbx.h"
592         fi
593         if test x$gas != xyes
594         then
595                 extra_passes="mips-tfile mips-tdump"
596         fi
597         use_collect2=yes
598         tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4"
599         tm_file="${tm_file} alpha/osf.h"
600         extra_headers=va_list.h
601         case $machine in
602           *-*-osf4*)
603             # Some versions of OSF4 (specifically X4.0-9 296.7) have
604             # a broken tar, so we use cpio instead.
605             install_headers_dir=install-headers-cpio
606             # Set target_cpu_default except on 4.0a.
607             case $machine in
608                 *-*-osf4.0a) ;;
609                 *) target_cpu_default=MASK_SUPPORT_ARCH
610             esac
611             ;;
612           *-*-osf5*)
613             tm_file="${tm_file} alpha/osf5.h"
614             target_cpu_default=MASK_SUPPORT_ARCH
615             ;;
616         esac
617         case x${enable_threads} in
618         x | xyes | xpthreads | xposix)
619             thread_file='posix'
620             tmake_file="${tmake_file} alpha/t-osf-pthread"
621             ;;
622         esac
623         ;;
624 alpha64-dec-*vms*)
625         tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
626         xm_file="alpha/xm-vms.h"
627         tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
628         xmake_file=alpha/x-vms
629         exeext=.exe
630         # This removes the cpu type and manufacturer components and
631         #  replaces "." with "_" in the operating system version.
632         case $host in *-*-*vms*)
633                 target_alias=`echo $host \
634                   | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
635                 ;;
636         esac
637         install_headers_dir=install-headers-cp
638         prefix=/gnu
639         local_prefix=/gnu
640         ;;
641 alpha*-dec-*vms*)
642         tm_file="${tm_file} alpha/vms.h"
643         xm_file=alpha/xm-vms.h
644         tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
645         xmake_file=alpha/x-vms
646         exeext=.exe
647         # This removes the cpu type and manufacturer components and
648         #  replaces "." with "_" in the operating system version.
649         case $host in *-*-*vms*)
650                 target_alias=`echo $host \
651                   | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
652                 ;;
653         esac
654         install_headers_dir=install-headers-cp
655         prefix=/gnu
656         local_prefix=/gnu
657         ;;
658 arc-*-elf*)
659         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
660         extra_parts="crtinit.o crtfini.o"
661         ;;
662 arm-*-coff* | armel-*-coff*)
663         tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h"
664         tmake_file=arm/t-arm-coff
665         ;;
666 arm-semi-aof | armel-semi-aof)
667         tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
668         tmake_file=arm/t-semi
669         ;;
670 arm*-*-freebsd*|strongarm*-*-freebsd*)
671         tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
672         tmake_file="${tmake_file} arm/t-strongarm-elf"
673         ;;
674 arm*-*-netbsdelf*)
675         tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h"
676         tmake_file="${tmake_file} arm/t-netbsd"
677         ;;
678 arm*-*-netbsd*)
679         tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
680         tmake_file="t-netbsd arm/t-netbsd"
681         extra_parts=""
682         use_collect2=yes
683         ;;
684 arm*-*-linux*)                  # ARM GNU/Linux with ELF
685         tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h"
686         tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
687         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
688         gnu_ld=yes
689         case x${enable_threads} in
690         x | xyes | xpthreads | xposix)
691                 thread_file='posix'
692                 ;;
693         esac
694         ;;
695 arm*-*-uclinux*)                # ARM ucLinux
696         tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h arm/uclinux-elf.h"
697         tmake_file=arm/t-arm-elf
698         ;;
699 arm*-*-ecos-elf)
700         tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
701         tmake_file=arm/t-arm-elf
702         ;;
703 arm*-*-rtems*)
704         tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/rtems-elf.h rtems.h"
705         tmake_file="arm/t-arm-elf t-rtems"
706         if test x$enable_threads = xyes; then
707           thread_file='rtems'
708         fi
709         ;;
710 arm*-*-elf | ep9312-*-elf)
711         tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
712         tmake_file=arm/t-arm-elf
713         ;;
714 arm*-wince-pe*)
715         tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h arm/wince-pe.h"
716         tmake_file=arm/t-wince-pe
717         extra_objs="pe.o"
718         ;;
719 arm-*-pe*)
720         tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h"
721         tmake_file=arm/t-pe
722         extra_objs="pe.o"
723         ;;
724 arm*-*-kaos*)
725         tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h kaos.h arm/kaos-arm.h"
726         tmake_file=arm/t-arm-elf
727         ;;
728 avr-*-*)
729         tm_file="avr/avr.h dbxelf.h"
730         ;;
731 c4x-*-rtems* | tic4x-*-rtems*)
732         tmake_file="c4x/t-c4x t-rtems"
733         tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
734         if test x$enable_threads = xyes; then
735           thread_file='rtems'
736         fi
737         c_target_objs="c4x-c.o"
738         cxx_target_objs="c4x-c.o"
739         ;;
740 c4x-* | tic4x-*)
741         tmake_file=c4x/t-c4x
742         c_target_objs="c4x-c.o"
743         cxx_target_objs="c4x-c.o"
744         ;;
745 cris-*-aout)
746         tm_file="dbxelf.h ${tm_file} cris/aout.h"
747         gas=yes
748         tmake_file="cris/t-cris cris/t-aout"
749         ;;
750 cris-*-elf | cris-*-none)
751         tm_file="dbxelf.h elfos.h ${tm_file}"
752         tmake_file="cris/t-cris cris/t-elfmulti"
753         gas=yes
754         ;;
755 cris-*-linux*)
756         tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
757         tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
758         ;;
759 d30v-*)
760         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
761         ;;
762 dsp16xx-*)
763         ;;
764 fr30-*-elf)
765         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
766         tmake_file=fr30/t-fr30
767         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
768         ;;
769 frv-*-elf)
770         tm_file="dbxelf.h elfos.h svr4.h ${tm_file} frv/frv-abi.h"
771         tmake_file=frv/t-frv
772         ;;
773 h8300-*-rtems*)
774         tmake_file="h8300/t-h8300 t-rtems"
775         tm_file="h8300/h8300.h dbxcoff.h h8300/coff.h h8300/rtems.h rtems.h"
776         if test x$enable_threads = xyes; then
777           thread_file='rtems'
778         fi
779         ;;
780 h8300-*-elf*)
781         tmake_file="h8300/t-h8300 h8300/t-elf"
782         tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h"
783         ;;
784 h8300-*-*)
785         tm_file="h8300/h8300.h dbxcoff.h h8300/coff.h"
786         ;;
787 hppa*64*-*-linux* | parisc*64*-*-linux*)
788         target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
789         tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \
790                  pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
791         tmake_file=pa/t-linux64
792         gas=yes gnu_ld=yes
793         need_64bit_hwint=yes
794         ;;
795 hppa*-*-linux* | parisc*-*-linux*)
796         target_cpu_default="MASK_PA_11 | MASK_NO_SPACE_REGS"
797         tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
798                  pa/pa32-regs.h pa/pa32-linux.h"
799         tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
800         ;;
801 # port not yet contributed.
802 #hppa*-*-openbsd*)
803 #       target_cpu_default="MASK_PA_11"
804 #       tmake_file=pa/t-bsd
805 #       ;;
806 hppa1.1-*-pro*)
807         target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
808         tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
809         tmake_file="pa/t-bsd pa/t-pro"
810         xmake_file="pa/x-ada"
811         ;;
812 hppa1.1-*-osf*)
813         target_cpu_default="MASK_PA_11"
814         tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h pa/pa-osf.h"
815         tmake_file="pa/t-bsd pa/t-pa"
816         xmake_file="pa/x-ada"
817         use_collect2=yes
818         ;;
819 hppa1.1-*-rtems*)
820         target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
821         tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h rtems.h"
822         tmake_file="pa/t-bsd pa/t-pro t-rtems"
823         xmake_file="pa/x-ada"
824         if test x$enable_threads = xyes; then
825           thread_file='rtems'
826         fi
827         ;;
828 hppa1.1-*-bsd*)
829         tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h"
830         target_cpu_default="MASK_PA_11"
831         tmake_file="pa/t-bsd pa/t-pa"
832         xmake_file="pa/x-ada"
833         use_collect2=yes
834         ;;
835 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
836         target_cpu_default="MASK_PA_11"
837         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h dbxelf.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
838         tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
839         xmake_file="pa/x-ada"
840         if test x$enable_threads = x; then
841             enable_threads=$have_pthread_h
842         fi
843         case x${enable_threads} in
844         xyes | xdce)
845                 tmake_file="${tmake_file} pa/t-dce-thr"
846                 ;;
847         esac
848         install_headers_dir=install-headers-cpio
849         use_collect2=yes
850         ;;
851 hppa1.0-*-hpux10*)
852         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h dbxelf.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
853         tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
854         xmake_file="pa/x-ada"
855         if test x$enable_threads = x; then
856             enable_threads=$have_pthread_h
857         fi
858         case x${enable_threads} in
859         xyes | xdce)
860                 tmake_file="${tmake_file} pa/t-dce-thr"
861                 ;;
862         esac
863         install_headers_dir=install-headers-cpio
864         use_collect2=yes
865         ;;
866 hppa*64*-*-hpux11*)
867         if test x$gas = xyes
868         then
869                 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h  \
870                          pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
871                          pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
872         else
873                 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h pa/elf.h \
874                          pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
875                          pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
876         fi
877         need_64bit_hwint=yes
878         tmake_file="pa/t-pa64 pa/t-pa-hpux"
879         xmake_file="pa/x-ada"
880         target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
881         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
882         if test x$gnu_ld = xyes
883         then
884                 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
885         fi
886         case x${enable_threads} in
887         xyes | xposix )
888                 thread_file=posix 
889                 ;;
890         esac
891         install_headers_dir=install-headers-cpio
892         ;;
893 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
894         target_cpu_default="MASK_PA_11"
895         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h dbxelf.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
896         tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
897         xmake_file="pa/x-ada"
898         case x${enable_threads} in
899         xyes | xposix )
900                 thread_file=posix 
901                 ;;
902         esac
903         install_headers_dir=install-headers-cpio
904         use_collect2=yes
905         ;;
906 hppa1.0-*-hpux11*)
907         tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h dbxelf.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
908         tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
909         xmake_file="pa/x-ada"
910         case x${enable_threads} in
911         xyes | xposix )
912                 thread_file=posix 
913                 ;;
914         esac
915         install_headers_dir=install-headers-cpio
916         use_collect2=yes
917         ;;
918 i370-*-opened*)                  # IBM 360/370/390 Architecture
919         xm_defines='FATAL_EXIT_CODE=12'
920         tm_file="i370/oe.h i370/i370.h"
921         tmake_file="i370/t-oe i370/t-i370"
922         c_target_objs="i370-c.o"
923         cxx_target_objs="i370-c.o"
924         ;;
925 i370-*-mvs*)
926         xm_defines='FATAL_EXIT_CODE=12'
927         tm_file="i370/mvs.h i370/i370.h"
928         tmake_file="i370/t-i370"
929         c_target_objs="i370-c.o"
930         cxx_target_objs="i370-c.o"
931         ;;
932 i370-*-linux*)
933         tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h i370/i370.h"
934         tmake_file="t-slibgcc-elf-ver t-linux"
935         # broken_install=yes
936         elf=yes
937         ;;
938 i[34567]86-*-darwin*)
939         tm_file="${tm_file} i386/darwin.h"
940         ;;
941 i[34567]86-*-elf*)
942         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
943         tmake_file="i386/t-i386elf t-svr4"
944         ;;
945 i[34567]86-ncr-sysv4*)          # NCR 3000 - ix86 running system V.4
946         xm_defines="SMALL_ARG_MAX"
947         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
948         extra_parts="crtbegin.o crtend.o"
949         tmake_file=i386/t-crtpic
950         ;;
951 i[34567]86-*-netware)           # Intel 80386's running netware
952         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h"
953         tmake_file=i386/t-netware
954         ;;
955 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
956         if test x$gas = xyes
957         then
958                 tm_file="${tm_file} usegas.h"
959         fi
960         xm_defines="SMALL_ARG_MAX"
961         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
962         tmake_file=t-svr4
963         extra_parts="crtbegin.o crtend.o"
964         install_headers_dir=install-headers-cpio
965         ;;
966 i[34567]86-*-aout*)
967         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h"
968         ;;
969 i[34567]86-*-beoself* | i[34567]86-*-beos*)
970         tmake_file='i386/t-beos i386/t-crtpic'
971         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
972         extra_parts='crtbegin.o crtend.o'
973         ;;
974 i[34567]86-*-freebsd2 | i[34567]86-*-freebsd2.* | i[34567]86-*-freebsd*aout*)
975         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h"
976         tmake_file=t-freebsd
977         ;;
978 i[34567]86-*-freebsd*)
979         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
980         ;;
981 x86_64-*-freebsd*)
982         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h"
983         ;;
984 i[34567]86-*-netbsdelf*)
985         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
986         ;;
987 i[34567]86-*-netbsd*)
988         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h"
989         tmake_file=t-netbsd
990         extra_parts=""
991         use_collect2=yes
992         ;;
993 x86_64-*-netbsd*)
994         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h"
995         ;;
996 i[34567]86-*-openbsd*)
997         tm_file="i386/i386.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h openbsd-oldgas.h openbsd.h i386/openbsd.h"
998         # needed to unconfuse gdb
999         tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1000         # we need collect2 until our bug is fixed...
1001         use_collect2=yes
1002         ;;
1003 i[34567]86-*-coff*)
1004         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
1005         ;;
1006 i[34567]86-*-linux*aout*)       # Intel 80386's running GNU/Linux
1007                                 # with a.out format
1008         tmake_file="t-linux-aout i386/t-crtstuff"
1009         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h"
1010         gnu_ld=yes
1011         ;;
1012 i[34567]86-*-linux*libc1)       # Intel 80386's running GNU/Linux
1013                                 # with ELF format using the
1014                                 # GNU/Linux C library 5
1015         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1016         tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1017         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1018         gnu_ld=yes
1019         if test x$enable_threads = xyes; then
1020                 thread_file='single'
1021         fi
1022         ;;
1023 i[34567]86-*-linux*)    # Intel 80386's running GNU/Linux
1024                         # with ELF format using glibc 2
1025                         # aka GNU/Linux C library 6
1026         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1027         tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1028         ;;
1029 x86_64-*-linux*)
1030         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
1031                  i386/x86-64.h i386/linux64.h"
1032         tmake_file="t-slibgcc-elf-ver t-linux i386/t-linux64"
1033         ;;
1034 i[34567]86-*-gnu*)
1035         ;;
1036 i[34567]86-pc-msdosdjgpp*)
1037         xm_file=i386/xm-djgpp.h
1038         tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h"
1039         tmake_file=i386/t-djgpp
1040         gnu_ld=yes
1041         gas=yes
1042         exeext=.exe
1043         case $host in *pc-msdosdjgpp*)
1044                 target_alias=djgpp
1045                 ;;
1046         esac
1047         ;;
1048 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1049         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h"
1050         tmake_file=t-libc-ok
1051         gnu_ld=yes
1052         gas=yes
1053         ;;
1054 i[34567]86-*-lynxos*)
1055         if test x$gas = xyes
1056         then
1057                 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h svr3.h lynx.h i386/lynx.h"
1058         else
1059                 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx-ng.h i386/lynx-ng.h"
1060         fi
1061         ;;
1062 i[34567]86-*-mach*)
1063         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/mach.h"
1064 #       tmake_file=t-libc-ok
1065         use_collect2=yes
1066         ;;
1067 i[34567]86-*-nto-qnx*)
1068         tm_file="${tm_file} i386/att.h dbxelf.h tm-dwarf2.h elfos.h svr4.h i386/unix.h i386/nto.h"
1069         tmake_file=i386/t-nto
1070         gnu_ld=yes
1071         gas=yes
1072         ;;
1073 i[34567]86-*-rtems*)
1074         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
1075         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1076         tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1077         if test x$enable_threads = xyes; then
1078           thread_file='rtems'
1079         fi
1080         ;;
1081 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1082         install_headers_dir=install-headers-cpio
1083         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/sco5.h"
1084         if test x$gas = xyes
1085         then
1086                 tm_file="usegas.h ${tm_file}"
1087         fi
1088         tmake_file=i386/t-sco5
1089         extra_parts="crtbegin.o crtend.o"
1090         ;;
1091 i[34567]86-*-solaris2*)
1092         xm_defines="SMALL_ARG_MAX"
1093         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h"
1094         tmake_file="i386/t-sol2 t-svr4"
1095         if test x$gnu_ld = xyes; then
1096                 tmake_file="$tmake_file t-slibgcc-elf-ver"
1097         else
1098                 tmake_file="$tmake_file t-slibgcc-sld"
1099         fi
1100         extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1101         if test x${enable_threads} = x; then
1102             enable_threads=$have_pthread_h
1103             if test x${enable_threads} = x; then
1104                 enable_threads=$have_thread_h
1105             fi
1106         fi
1107         if test x${enable_threads} = xyes; then
1108             if test x${have_pthread_h} = xyes; then
1109                 thread_file='posix'
1110             else
1111                 thread_file='solaris'
1112             fi
1113         fi
1114         ;;
1115 i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
1116        tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1117        if test x$stabs = xyes
1118        then
1119                tm_file="${tm_file} dbx.h"
1120        fi
1121        tmake_file="i386/t-crtpic t-svr4"
1122        extra_parts="crtbegin.o crtend.o"
1123        if test x$enable_threads = xyes; then
1124                thread_file='posix'
1125        fi
1126        ;;
1127 i[34567]86-*-sysv4*)            # Intel 80386's running system V.4
1128         xm_defines="SMALL_ARG_MAX"
1129         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
1130         if test x$stabs = xyes
1131         then
1132                 tm_file="${tm_file} dbx.h"
1133         fi
1134         tmake_file="i386/t-crtpic t-svr4"
1135         extra_parts="crtbegin.o crtend.o"
1136         ;;
1137 i[34567]86-*-udk*)      # Intel x86 on SCO UW/OSR5 Dev Kit
1138         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h i386/udk.h"
1139         tmake_file="i386/t-crtpic i386/t-udk t-svr4"
1140         extra_parts="crtbegin.o crtend.o"
1141         install_headers_dir=install-headers-cpio
1142         ;;
1143 i[34567]86-*-sysv*)             # Intel 80386's running system V
1144         if test x$gas = xyes
1145         then
1146                 if test x$stabs = xyes
1147                 then
1148                         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h"
1149                         tmake_file=i386/t-svr3dbx
1150                         extra_parts="svr3.ifile svr3z.ifile"
1151                 else
1152                         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h"
1153                         extra_parts="crtbegin.o crtend.o"
1154                         tmake_file=i386/t-crtstuff
1155                 fi
1156         else
1157                 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h"
1158                 extra_parts="crtbegin.o crtend.o"
1159                 tmake_file=i386/t-crtstuff
1160         fi
1161         tmake_file="$tmake_file i386/t-crtpic"
1162         ;;
1163 i386-*-vsta)                    # Intel 80386's running VSTa kernel
1164         xm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/xm-vsta.h"
1165         tm_file="${tm_file} i386/vsta.h"
1166         ;;
1167 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1168         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h"
1169         xm_file=i386/xm-cygwin.h
1170         tmake_file="i386/t-cygming i386/t-cygwin"
1171         extra_objs=winnt.o
1172         c_target_objs=cygwin2.o
1173         cxx_target_objs=cygwin2.o
1174         if test x$enable_threads = xyes; then
1175                 thread_file='posix'
1176         fi
1177         exeext=.exe
1178         ;;
1179 i[34567]86-*-mingw32*)
1180         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
1181         xm_file=i386/xm-mingw32.h
1182         tmake_file="i386/t-cygming i386/t-mingw32"
1183         xmake_file=i386/x-mingw32
1184         extra_objs=winnt.o
1185         if test x$enable_threads = xyes; then
1186                 thread_file='win32'
1187         fi
1188         exeext=.exe
1189         case $machine in
1190                 *mingw32crt*)
1191                         tm_file="${tm_file} i386/crtdll.h"
1192                         ;;
1193                 *mingw32msv* | *mingw32*)
1194                         ;;
1195         esac
1196         ;;
1197 i[34567]86-*-uwin*)
1198         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygwin.h i386/uwin.h"
1199         tmake_file="i386/t-cygwin i386/t-uwin"
1200         extra_objs=winnt.o
1201         if test x$enable_threads = xyes; then
1202                 thread_file='win32'
1203         fi
1204         exeext=.exe
1205         ;;
1206 i[34567]86-*-interix3*)
1207         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h i386/i386-interix3.h interix.h interix3.h"
1208         tmake_file="t-interix i386/t-interix"
1209         extra_objs=winnt.o
1210         xmake_file="x-interix"
1211         if test x$enable_threads = xyes ; then
1212                 thread_file='posix'
1213         fi
1214         if test x$stabs = xyes ; then
1215                 tm_file="${tm_file} dbxcoff.h"
1216         fi
1217         ;;
1218 i[34567]86-*-interix*)
1219         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h"
1220         tmake_file="t-interix i386/t-interix"
1221         extra_objs=winnt.o
1222         if test x$enable_threads = xyes ; then
1223                 thread_file='posix'
1224         fi
1225         if test x$stabs = xyes ; then
1226                 tm_file="${tm_file} dbxcoff.h"
1227         fi
1228         ;;
1229 i[34567]86-*-kaos*)
1230         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h kaos.h i386/kaos-i386.h"
1231         tmake_file="i386/t-i386elf t-svr4"
1232         ;;
1233 i860-*-sysv4*)
1234         tm_file="${tm_file} elfos.h svr4.h i860/sysv4.h"
1235         xm_defines="USG SVR3"
1236         xmake_file=i860/x-sysv4
1237         tmake_file="i860/t-i860 i860/t-svr4"
1238         extra_parts="crtbegin.o crtend.o"
1239         ;;
1240 i960-*-coff*)
1241         tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1242         tmake_file=i960/t-960bare
1243         c_target_objs="i960-c.o"
1244         cxx_target_objs="i960-c.o"
1245         ;;
1246 i960-*-rtems)
1247         tmake_file="i960/t-960bare t-rtems"
1248         tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
1249         if test x$enable_threads = xyes; then
1250           thread_file='rtems'
1251         fi
1252         c_target_objs="i960-c.o"
1253         cxx_target_objs="i960-c.o"
1254         ;;
1255 i960-*-*)                       # Default i960 environment.
1256         use_collect2=yes
1257         tmake_file=i960/t-960bare
1258         c_target_objs="i960-c.o"
1259         cxx_target_objs="i960-c.o"
1260         ;;
1261 ia64*-*-elf*)
1262         tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1263         tmake_file="ia64/t-ia64"
1264         target_cpu_default="0"
1265         if test x$gas = xyes
1266         then
1267                 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1268         fi
1269         if test x$gnu_ld = xyes
1270         then
1271                 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1272         fi
1273         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1274         ;;
1275 ia64*-*-freebsd*)
1276         tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
1277         target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1278         tmake_file="${tmake_file} ia64/t-ia64"
1279         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1280         ;;
1281 ia64*-*-linux*)
1282         tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1283         tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1284         target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1285         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1286         if test x"$use_libunwind_exceptions" = xyes; then
1287           tmake_file="$tmake_file t-libunwind"
1288         fi
1289         ;;
1290 ia64*-*-hpux*)
1291         tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1292         tmake_file="ia64/t-ia64 ia64/t-hpux"
1293         target_cpu_default="MASK_GNU_AS"
1294         case x$enable_threads in
1295         xyes | xposix )
1296                 thread_file=posix
1297                 ;;
1298         esac
1299         use_collect2=no
1300         c_target_objs="ia64-c.o"
1301         cxx_target_objs="ia64-c.o"
1302         ;;
1303 ip2k-*-elf)
1304         tm_file="elfos.h ${tm_file}"
1305         ;;
1306 iq2000*-*-elf*)
1307         tm_file="svr4.h elfos.h iq2000/iq2000.h"
1308         tmake_file=iq2000/t-iq2000
1309         out_file=iq2000/iq2000.c
1310         md_file=iq2000/iq2000.md
1311         ;;
1312 m32r-*-elf*)
1313         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1314         extra_parts="crtinit.o crtfini.o"
1315         ;;
1316 # m68hc11 and m68hc12 share the same machine description.
1317 m68hc11-*-*|m6811-*-*)
1318         tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1319         tm_p_file="m68hc11/m68hc11-protos.h"
1320         md_file="m68hc11/m68hc11.md"
1321         out_file="m68hc11/m68hc11.c"
1322         tmake_file="m68hc11/t-m68hc11-gas"
1323         ;;
1324 m68hc12-*-*|m6812-*-*)
1325         tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1326         tm_p_file="m68hc11/m68hc11-protos.h"
1327         md_file="m68hc11/m68hc11.md"
1328         out_file="m68hc11/m68hc11.c"
1329         tmake_file="m68hc11/t-m68hc11-gas"
1330         ;;
1331 m68000-hp-hpux*)                # HP 9000 series 300
1332         tm_file="m68k/hp320base.h m68k/m68k.h m68k/hp320.h m68k/hp310.h"
1333         tm_defines="TARGET_DEFAULT=0" # 68000, no 68881, no bitfield ops
1334         if test x$gas = xyes
1335         then
1336                 tm_defines="${tm_defines} DBX_DEBUGGING_INFO=1 USE_GAS"
1337         fi
1338         tmake_file=m68k/t-hp320
1339         install_headers_dir=install-headers-cpio
1340         use_collect2=yes
1341         ;;
1342 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1343         tm_file="m68k/hp320base.h m68k/m68k.h m68k/hp320.h"
1344         if test x$gas = xyes
1345         then
1346                 tm_defines="DBX_DEBUGGING_INFO=1 USE_GAS"
1347         else
1348                 tm_defines="NO_DOT_IN_LABEL NO_BUGS"
1349         fi
1350         install_headers_dir=install-headers-cpio
1351         use_collect2=yes
1352         ;;
1353 m68k-hp-hpux*)  # HP 9000 series 300
1354         tm_file="m68k/hp320base.h m68k/m68k.h m68k/hp320.h"
1355         if test x$gas = xyes
1356         then
1357                 tm_defines="DBX_DEBUGGING_INFO=1 USE_GAS"
1358         fi
1359         install_headers_dir=install-headers-cpio
1360         use_collect2=yes
1361         ;;
1362 m68k-*-aout*)
1363         tmake_file=m68k/t-m68kbare
1364         tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kemb.h m68k/m68k-aout.h libgloss.h"
1365         ;;
1366 m68k-*-coff*)
1367         tmake_file=m68k/t-m68kbare
1368         tm_defines="MOTOROLA USE_GAS"
1369         tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kemb.h dbxcoff.h m68k/coff.h dbx.h"
1370         ;;
1371 m68020-*-elf* | m68k-*-elf*)
1372         tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
1373         tmake_file=m68k/t-m68kelf
1374         extra_parts="crtbegin.o crtend.o"
1375         ;;
1376 m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
1377         tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
1378         case $machine in
1379         m68010*)
1380                 target_cpu_default="0"
1381                 ;;
1382         *)
1383                 target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
1384                 ;;
1385         esac
1386         ;;
1387 m68k*-*-netbsd*)
1388         tm_file="m68k/m68k.h netbsd.h netbsd-aout.h m68k/netbsd.h"
1389         tmake_file=t-netbsd
1390         extra_parts=""
1391         use_collect2=yes
1392         ;;
1393 m68k*-*-openbsd*)
1394         # needed to unconfuse gdb
1395         tm_defines="OBSD_OLD_GAS TARGET_DEFAULT=(MASK_68020|MASK_68881|MASK_BITFIELD)"
1396         tm_file="m68k/m68k.h openbsd.h m68k/openbsd.h"
1397         tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1398         # we need collect2 until our bug is fixed...
1399         use_collect2=yes
1400         ;;
1401 m68k-*-sysv4*)                  # Motorola m68k's running system V.4
1402         tm_file="m68k/m68k.h m68k/sgs.h dbxelf.h elfos.h svr4.h m68k/m68kv4.h"
1403         tm_defines="MOTOROLA SGS SGS_CMP_ORDER SGS_SWITCH_TABLES"
1404         tmake_file=t-svr4
1405         extra_parts="crtbegin.o crtend.o"
1406         ;;
1407 m68k-*-linux*)          # Motorola m68k's running GNU/Linux
1408                                 # with ELF format using glibc 2
1409                                 # aka the GNU/Linux C library 6.
1410         tm_file="m68k/m68k.h dbxelf.h elfos.h svr4.h linux.h m68k/linux.h"
1411         tm_defines="MOTOROLA USE_GAS LINUX_DEFAULT_ELF"
1412         tmake_file="t-slibgcc-elf-ver t-linux"
1413         ;;
1414 m68k-*-rtems*)
1415         tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1416         tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h"
1417         extra_parts="crtbegin.o crtend.o"
1418         if test x$enable_threads = xyes; then
1419           thread_file='rtems'
1420         fi
1421         ;;
1422 mcore-*-elf)
1423         tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
1424         tmake_file=mcore/t-mcore
1425         ;;
1426 mcore-*-pe*)
1427         tm_file="svr3.h dbxcoff.h ${tm_file} mcore/mcore-pe.h"
1428         tmake_file=mcore/t-mcore-pe
1429         ;;
1430 mips-sgi-irix6*o32)             # SGI System V.4., IRIX 6, O32 ABI
1431         tm_file="${tm_file} mips/iris5.h"
1432         if test x$gas = xyes
1433         then
1434                 tm_file="${tm_file} mips/sdb.h mips/iris5gas.h mips/iris6-o32-gas.h"
1435                 if test x$stabs = xyes
1436                 then
1437                         tm_file="${tm_file} dbx.h mips/dbxmdebug.h"
1438                 fi
1439                 tmake_file=mips/t-iris5-gas
1440         else
1441                 tm_file="${tm_file} mips/iris6-o32-as.h"
1442                 tmake_file=mips/t-iris5-as
1443         fi
1444         tm_file="${tm_file} mips/iris6-o32.h"
1445         tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1446         xm_file=mips/xm-iris5.h
1447         target_cpu_default="MASK_ABICALLS"
1448         # mips-tfile doesn't work yet
1449         # See comment in mips/iris5.h file.
1450         use_collect2=yes
1451 #       if test x$enable_threads = xyes; then
1452 #               thread_file='irix'
1453 #       fi
1454         ;;
1455 mips-sgi-irix6*)                # SGI System V.4., IRIX 6
1456         tm_file="${tm_file} mips/iris5.h mips/iris6.h"
1457         if test "x$gnu_ld" = xyes
1458         then
1459                 tm_file="${tm_file} mips/iris6gld.h"
1460         fi
1461         tmake_file="mips/t-iris mips/t-iris5-6 mips/t-iris6"
1462         target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1463         tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
1464 #       if test x$enable_threads = xyes; then
1465 #               thread_file='irix'
1466 #       fi
1467         ;;
1468 mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
1469         tm_file="${tm_file} mips/iris5.h mips/iris6.h mips/cross64.h"
1470         xm_file=mips/xm-iris5.h
1471         tmake_file="mips/t-iris mips/t-cross64"
1472         target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1473         tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
1474         # See comment in mips/iris[56].h files.
1475         use_collect2=yes
1476 #       if test x$enable_threads = xyes; then
1477 #               thread_file='irix'
1478 #       fi
1479         ;;
1480 mips-sgi-irix5*)                # SGI System V.4., IRIX 5
1481         tm_file="${tm_file} mips/iris5.h"
1482         if test x$gas = xyes
1483         then
1484                 tm_file="${tm_file} mips/sdb.h mips/iris5gas.h"
1485                 if test x$stabs = xyes
1486                 then
1487                         tm_file="${tm_file} dbx.h mips/dbxmdebug.h"
1488                 fi
1489                 tmake_file=mips/t-iris5-gas
1490         else
1491                 tmake_file=mips/t-iris5-as
1492         fi
1493         tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
1494         xm_file=mips/xm-iris5.h
1495         target_cpu_default="MASK_ABICALLS"
1496         # mips-tfile doesn't work yet
1497         # See comment in mips/iris5.h file.
1498         use_collect2=yes
1499 #       if test x$enable_threads = xyes; then
1500 #               thread_file='irix'
1501 #       fi
1502         ;;
1503 mips*-*-netbsd*)                        # NetBSD/mips, either endian.
1504         target_cpu_default="MASK_GAS|MASK_ABICALLS"
1505         tm_file="elfos.h ${tm_file} mips/elf.h netbsd.h netbsd-elf.h mips/netbsd.h"
1506         tmake_file="${tmake_file}"
1507         ;;
1508 mips64*-*-linux*)
1509         tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h mips/linux64.h"
1510         tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux64"
1511
1512         # This default ABI is a partial lie: t-linux64 overrides the
1513         # DRIVER_SELF_SPEC that sets the default abi, in the spec file
1514         # that is installed.  What GCC thinks of as the default must
1515         # remain as ABI_32 such that the SONAMEs of the libgcc shared
1516         # libraries remain compatible with those of mips-linux-gnu.
1517         tm_defines="MIPS_ISA_DEFAULT=1 MIPS_ABI_DEFAULT=ABI_32"
1518         target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1519         extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1520         gnu_ld=yes
1521         gas=yes
1522         if test x$enable_threads = xyes; then
1523                 thread_file='posix'
1524         fi
1525         ;;
1526 mips*-*-linux*)                         # Linux MIPS, either endian.
1527         tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
1528         case $machine in
1529         mipsisa32*-*)
1530                 target_cpu_default="MASK_SOFT_FLOAT"
1531                 tm_defines="MIPS_ISA_DEFAULT=32"
1532                 ;;
1533         esac
1534         tmake_file="t-slibgcc-elf-ver t-linux"
1535         ;;
1536 mips*-*-openbsd*)
1537         tm_defines="OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_OBJECT OBSD_HAS_CORRECT_SPECS"
1538         target_cpu_default="MASK_GAS|MASK_ABICALLS"
1539         tm_file="mips/mips.h openbsd.h mips/openbsd.h mips/sdb.h"
1540         case $machine in
1541         mips*el-*-openbsd*) 
1542             tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=0";;
1543         *)  tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=MASK_BIG_ENDIAN";;
1544         esac
1545         ;;
1546 mipsisa32-*-elf* | mipsisa32el-*-elf*)
1547         tm_file="${tm_file} mips/elf.h"
1548         tmake_file=mips/t-isa3264
1549         tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_EABI"
1550         ;;
1551 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
1552         tm_file="${tm_file} mips/elf.h"
1553         tmake_file=mips/t-isa3264
1554         tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_EABI"
1555         ;;
1556 mipsisa64-*-elf* | mipsisa64el-*-elf*)
1557         tm_file="${tm_file} mips/elf.h"
1558         tmake_file=mips/t-isa3264
1559         target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1560         tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_EABI"
1561         ;;
1562 mipsisa64sr71k-*-elf*)
1563         tm_file="${tm_file} mips/elf.h"
1564         tmake_file=mips/t-sr71k
1565         target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1566         tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
1567         ;;
1568 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1569         tm_file="${tm_file} mips/elf.h"
1570         tmake_file=mips/t-elf
1571         target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1572         tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
1573         ;;
1574 mips-*-elf* | mipsel-*-elf*)
1575         tm_file="${tm_file} mips/elf.h"
1576         tmake_file=mips/t-elf
1577         ;;
1578 mips64-*-elf* | mips64el-*-elf*)
1579         tm_file="${tm_file} mips/elf64.h"
1580         tmake_file=mips/t-elf
1581         target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1582         tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1583         ;;
1584 mips64vr-*-elf* | mips64vrel-*-elf*)
1585         tm_file="mips/vr.h ${tm_file} mips/elf64.h"
1586         tm_defines="MIPS_ABI_DEFAULT=ABI_O64 MIPS_MARCH_CONTROLS_SOFT_FLOAT=1"
1587         tmake_file=mips/t-vr
1588         ;;
1589 mips64orion-*-elf* | mips64orionel-*-elf*)
1590         tm_file="${tm_file} mips/elforion.h mips/elf64.h"
1591         tmake_file=mips/t-elf
1592         tmake_file=mips/t-elf
1593         target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1594         tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1595         ;;
1596 mips*-*-rtems*)
1597         tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h"
1598         tmake_file="mips/t-elf t-rtems"
1599         if test x$enable_threads = xyes; then
1600           thread_file='rtems'
1601         fi
1602         ;;
1603 mipstx39-*-elf* | mipstx39el-*-elf*)
1604         tm_file="${tm_file} mips/r3900.h mips/elf.h"
1605         tmake_file=mips/t-r3900
1606         ;;
1607 mmix-knuth-mmixware)
1608         need_64bit_hwint=yes
1609         ;;
1610 mn10300-*-*)
1611         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1612         if test x$stabs = xyes
1613         then
1614                 tm_file="${tm_file} dbx.h"
1615         fi
1616         use_collect2=no
1617         ;;
1618 ns32k-*-netbsdelf*)
1619         echo "GCC does not yet support the ${machine} target"; exit 1
1620         ;;
1621 ns32k-*-netbsd*)
1622         tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
1623         # On NetBSD, the headers are already okay, except for math.h.
1624         tmake_file="t-netbsd ns32k/t-ns32k"
1625         extra_parts=""
1626         use_collect2=yes
1627         ;;
1628 pdp11-*-bsd)
1629         tm_file="${tm_file} pdp11/2bsd.h"
1630         ;;
1631 pdp11-*-*)
1632         ;;
1633 avr-*-*)
1634         ;;
1635 # port not yet contributed
1636 #powerpc-*-openbsd*)
1637 #       tmake_file="${tmake_file} rs6000/t-fprules "
1638 #       extra_headers=
1639 #       ;;
1640 powerpc64-*-linux*)
1641         tm_file="rs6000/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1642         case x$with_cpu in
1643         x|xpowerpc64|xdefault64) tm_file="${tm_file} rs6000/default64.h";;
1644         esac
1645         tm_file="${tm_file} rs6000/linux64.h"
1646         tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-ppccomm rs6000/t-linux64"
1647         ;;
1648 powerpc64-*-gnu*)
1649         tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux64.h rs6000/gnu.h"
1650         tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-gnu rs6000/t-linux64"
1651         ;;
1652 powerpc-*-beos*)
1653         tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
1654         tmake_file="rs6000/t-fprules rs6000/t-beos"
1655         extra_headers=
1656         ;;
1657 powerpc-*-darwin*)
1658         tm_file="${tm_file} rs6000/darwin.h"
1659         tmake_file="t-darwin rs6000/t-darwin"
1660         extra_headers=altivec.h
1661         # override ppc default
1662         need_64bit_hwint=
1663         # powerpc-darwin host support.
1664         host_hook_obj=host-darwin.o
1665         xmake_file=rs6000/x-darwin
1666         ;;
1667 powerpc*-*-freebsd*)
1668         tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
1669         tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1670         ;;
1671 powerpc-*-netbsd*)
1672         tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
1673         tmake_file="${tmake_file} rs6000/t-netbsd"
1674         ;;
1675 powerpc-*-chorusos*)
1676         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
1677         tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
1678         case x${enable_threads} in
1679           xyes | xpthreads | xposix)
1680                 thread_file='posix'
1681                 ;;
1682         esac
1683         ;;
1684 powerpc-*-eabispe*)
1685         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h"
1686         tmake_file="rs6000/t-spe rs6000/t-ppccomm"
1687         ;;
1688 powerpc-*-eabisimaltivec*)
1689         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h rs6000/eabialtivec.h"
1690         tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1691         ;;
1692 powerpc-*-eabisim*)
1693         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
1694         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1695         ;;
1696 powerpc-*-elf*)
1697         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1698         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1699         ;;
1700 powerpc-*-eabialtivec*)
1701         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
1702         tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
1703         ;;
1704 powerpc-*-eabi*)
1705         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
1706         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1707         ;;
1708 powerpc-*-rtems*)
1709         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
1710         tmake_file="rs6000/t-fprules t-rtems rs6000/t-ppccomm"
1711         if test x$enable_threads = xyes; then
1712           thread_file='rtems'
1713         fi
1714         ;;
1715 powerpc-*-linux*altivec*)
1716         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
1717         tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1718         ;;
1719 powerpc-*-linux*spe*)
1720         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
1721         tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1722         ;;
1723 powerpc-*-linux*)
1724         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
1725         tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1726         ;;
1727 powerpc-*-gnu-gnualtivec*)
1728         tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h"
1729         tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1730         if test x$enable_threads = xyes; then
1731                 thread_file='posix'
1732         fi
1733         ;;
1734 powerpc-*-gnu*)
1735         tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/gnu.h"
1736         tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
1737         if test x$enable_threads = xyes; then
1738                 thread_file='posix'
1739         fi
1740         ;;
1741 powerpc-wrs-vxworks*)
1742         # We want vxworks.h after rs6000/sysv4.h, which unfortunately
1743         # means we have to redo the tm_file list from scratch.
1744         tm_file="rs6000/rs6000.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1745         tm_file="${tm_file} vxworks.h rs6000/vxworks.h"
1746         tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
1747         extra_headers=ppc-asm.h
1748         ;;
1749 powerpc-wrs-windiss*)
1750         tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h"
1751         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1752         thread_file=""
1753         ;;
1754 powerpcle-*-sysv*)
1755         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1756         tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
1757         ;;
1758 powerpcle-*-elf*)
1759         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
1760         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1761         ;;
1762 powerpcle-*-eabisim*)
1763         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
1764         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1765         ;;
1766 powerpcle-*-eabi*)
1767         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
1768         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1769         ;;
1770 powerpc-*-kaos*)
1771         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h kaos.h rs6000/kaos-ppc.h"
1772         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1773         ;;
1774 powerpcle-*-kaos*)
1775         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h kaos.h rs6000/kaos-ppc.h"
1776         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1777         ;;
1778 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
1779         tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
1780         tmake_file="rs6000/t-fprules rs6000/t-newas"
1781         use_collect2=yes
1782         extra_headers=
1783         ;;
1784 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
1785         tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
1786         tmake_file=rs6000/t-aix43
1787         use_collect2=yes
1788         thread_file='aix'
1789         extra_headers=
1790         ;;
1791 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
1792         tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
1793         tmake_file=rs6000/t-aix43
1794         use_collect2=yes
1795         thread_file='aix'
1796         extra_headers=
1797         ;;
1798 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
1799         tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h"
1800         tmake_file=rs6000/t-aix52
1801         use_collect2=yes
1802         thread_file='aix'
1803         extra_headers=
1804         ;;
1805 rs6000-*-lynxos*)
1806         tm_file="svr3.h lynx.h rs6000/lynxbase.h rs6000/rs6000.h rs6000/lynx.h"
1807         tmake_file=rs6000/t-fprules
1808         use_collect2=yes
1809         ;;
1810 s390-*-linux*)
1811         tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1812         tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff"
1813         ;;
1814 s390x-*-linux*)
1815         tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
1816         tm_p_file=s390/s390-protos.h
1817         md_file=s390/s390.md
1818         extra_modes=s390/s390-modes.def
1819         out_file=s390/s390.c
1820         tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff s390/t-linux64"
1821         ;;
1822 sh-*-elf* | sh[2346l]*-*-elf* | sh*-*-kaos*)
1823         tmake_file="sh/t-sh sh/t-elf"
1824         case $machine in
1825         shl* | sh64l*)
1826                 tm_file="sh/little.h ${tm_file}"
1827                 tmake_file="${tmake_file} sh/t-le"
1828                 ;;
1829         esac
1830         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h"
1831         case $machine in
1832         sh64*)
1833                 tmake_file="${tmake_file} sh/t-sh64"
1834                 tm_file="${tm_file} sh/sh64.h"
1835                 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1836                 ;;
1837         sh4_single*)  target_cpu_default="SELECT_SH4_SINGLE" ;;
1838         sh4*)  target_cpu_default="SELECT_SH4" ;;
1839         sh3e*) target_cpu_default="SELECT_SH3E" ;;
1840         sh3*)  target_cpu_default="SELECT_SH3" ;;
1841         sh2e*) target_cpu_default="SELECT_SH2E" ;;
1842         sh2*)  target_cpu_default="SELECT_SH2" ;;
1843         esac
1844         case $machine in
1845         sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1846         esac
1847         case $machine in
1848         sh*-*-kaos*) tm_file="${tm_file} kaos.h sh/kaos-sh.h" ;;
1849         esac
1850         ;;
1851 sh-*-rtemself*)
1852         tmake_file="sh/t-sh sh/t-elf t-rtems"
1853         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h"
1854         if test x$enable_threads = xyes; then
1855           thread_file='rtems'
1856         fi
1857         ;;
1858 sh-*-rtems*)
1859         tmake_file="sh/t-sh t-rtems"
1860         tm_file="${tm_file} dbxcoff.h sh/coff.h sh/rtems.h rtems.h"
1861         if test x$enable_threads = xyes; then
1862           thread_file='rtems'
1863         fi
1864         ;;
1865 sh-*-linux* | sh[2346lbe]*-*-linux*)
1866         tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux"
1867         case $machine in
1868         sh*be-*-* | sh*eb-*-*) ;;
1869         *)
1870                 tm_file="sh/little.h ${tm_file}"
1871                 tmake_file="${tmake_file} sh/t-le"
1872                 ;;
1873         esac
1874         tmake_file="${tmake_file} sh/t-linux"
1875         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
1876         case $machine in
1877         sh64*)
1878                 tmake_file="${tmake_file} sh/t-sh64"
1879                 tm_file="${tm_file} sh/sh64.h"
1880                 extra_headers="shmedia.h ushmedia.h sshmedia.h"
1881                 ;;
1882         sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1883         sh4*) target_cpu_default="SELECT_SH4" ;;
1884         sh3e[lb]e*) target_cpu_default="SELECT_SH3E" ;;
1885         sh3e[lb]*) target_cpu_default="SELECT_SH3" ;;
1886         sh3e*) target_cpu_default="SELECT_SH3E" ;;
1887         sh3*) target_cpu_default="SELECT_SH3" ;;
1888         sh2e[lb]e*) target_cpu_default="SELECT_SH2E" ;;
1889         sh2e[lb]*) target_cpu_default="SELECT_SH2" ;;
1890         sh2e*) target_cpu_default="SELECT_SH2E" ;;
1891         sh2*) target_cpu_default="SELECT_SH2" ;;
1892         esac
1893         case $machine in
1894         sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1895         esac
1896         ;;
1897 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1898   sh64-*-netbsd* | sh64l*-*-netbsd*)
1899         tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h netbsd.h netbsd-elf.h sh/netbsd-elf.h"
1900         tmake_file="${tmake_file} sh/t-sh sh/t-elf"
1901         case $machine in
1902         sh*l*-*)
1903                 tm_file="sh/little.h ${tm_file}"
1904                 tmake_file="${tmake_file} sh/t-le"
1905                 ;;
1906         *)
1907                 tmake_file="${tmake_file} sh/t-be"
1908                 ;;
1909         esac
1910         case $machine in
1911         sh5*-*)
1912                 # SHmedia, 32-bit ABI
1913                 target_cpu_default="SH5_BIT|SH4_BIT|SH3_BIT|SH_E_BIT"
1914                 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5"
1915                 ;;
1916         sh64*-*)
1917                 # SHmedia, 64-bit ABI
1918                 target_cpu_default="SH5_BIT|SH4_BIT"
1919                 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5 sh/t-netbsd-sh5-64"
1920                 ;;
1921         *)
1922                 # SH3, software floating point
1923                 target_cpu_default="SH1_BIT|SH2_BIT|SH3_BIT"
1924                 tmake_file="${tmake_file} sh/t-netbsd"
1925                 ;;
1926         esac
1927         ;;
1928 sh-*-*)
1929         tm_file="${tm_file} dbxcoff.h sh/coff.h"
1930         ;;
1931 sparc-tti-*)
1932         tm_file="${tm_file} sparc/pbd.h"
1933         ;;
1934 sparc-*-netbsdelf*)
1935         tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
1936         ;;
1937 sparc-*-openbsd*)
1938         tm_defines=OBSD_OLD_GAS
1939         tm_file="sparc/sparc.h openbsd.h sparc/openbsd.h"
1940         # needed to unconfuse gdb
1941         tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
1942         # we need collect2 until our bug is fixed...
1943         use_collect2=yes
1944         ;;
1945 sparc64-*-openbsd*)
1946         tm_file="sparc/openbsd1-64.h sparc/sparc.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sp64-elf.h openbsd.h sparc/openbsd64.h"
1947         gas=yes gnu_ld=yes
1948         with_cpu=ultrasparc
1949         ;;
1950 sparc-*-elf*)
1951         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h"
1952         tmake_file="sparc/t-elf sparc/t-crtfm"
1953         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1954         ;;
1955 sparc-*-linux*)         # SPARC's running GNU/Linux, libc6
1956         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
1957         tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
1958         ;;
1959 sparc-*-rtems*)
1960         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h"
1961         tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
1962         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1963         if test x$enable_threads = xyes; then
1964           thread_file='rtems'
1965         fi
1966         ;;
1967 sparc64-*-solaris2* | sparcv9-*-solaris2*)
1968         tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h"
1969         if test x$gnu_ld = xyes; then
1970                 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
1971         fi
1972         if test x$gas = xyes; then
1973                 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1974         fi
1975         tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
1976         if test x$gnu_ld = xyes; then
1977                 tmake_file="$tmake_file t-slibgcc-elf-ver"
1978         else
1979                 tmake_file="$tmake_file t-slibgcc-sld"
1980         fi
1981         extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
1982         if test x${enable_threads} = x ; then
1983             enable_threads=$have_pthread_h
1984             if test x${enable_threads} = x ; then
1985                 enable_threads=$have_thread_h
1986             fi
1987         fi
1988         if test x${enable_threads} = xyes ; then
1989             if test x${have_pthread_h} = xyes ; then
1990                 thread_file='posix'
1991             else
1992                 thread_file='solaris'
1993             fi
1994         fi
1995         need_64bit_hwint=yes
1996         ;;
1997 sparc-*-solaris2*)
1998         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h"
1999         if test x$gnu_ld = xyes; then
2000                 tm_file="${tm_file} sparc/sol2-gld.h"
2001         fi
2002         tmake_file="sparc/t-sol2 sparc/t-crtfm"
2003         if test x$gnu_ld = xyes; then
2004                 tmake_file="$tmake_file t-slibgcc-elf-ver"
2005         else
2006                 tmake_file="$tmake_file t-slibgcc-sld"
2007         fi
2008         case $machine in
2009         *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
2010                 if test x$gnu_ld = xno; then
2011                         tm_file="${tm_file} sparc/sol26-sld.h"
2012                 fi
2013                 ;;
2014         *-*-solaris2.[789])
2015                 tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
2016                 if test x$gnu_ld = xyes; then
2017                         tm_file="${tm_file} sparc/sol2-gld-bi.h"
2018                 fi
2019                 if test x$gas = xyes; then
2020                         tm_file="${tm_file} sparc/sol2-gas-bi.h"
2021                 fi
2022                 tmake_file="$tmake_file sparc/t-sol2-64"
2023                 need_64bit_hwint=yes
2024                 ;;
2025         esac
2026         extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2027         if test x${enable_threads} = x; then
2028             enable_threads=$have_pthread_h
2029             if test x${enable_threads} = x; then
2030                 enable_threads=$have_thread_h
2031             fi
2032         fi
2033         if test x${enable_threads} = xyes; then
2034             if test x${have_pthread_h} = xyes; then
2035                 thread_file='posix'
2036             else
2037                 thread_file='solaris'
2038             fi
2039         fi
2040         ;;
2041 sparc-*-sysv4*)
2042         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sysv4-only.h"
2043         tmake_file=t-svr4
2044         extra_parts="crtbegin.o crtend.o"
2045         ;;
2046 sparclite-*-coff*)
2047         tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
2048         tmake_file=sparc/t-sparclite
2049         ;;
2050 sparclite-*-elf*)
2051         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h gofast.h sparc/liteelf.h"
2052         tmake_file="sparc/t-sparclite sparc/t-crtfm"
2053         extra_parts="crtbegin.o crtend.o"
2054         ;;
2055 sparc86x-*-elf*)
2056         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h gofast.h sparc/sp86x-elf.h"
2057         tmake_file="sparc/t-sp86x sparc/t-crtfm"
2058         extra_parts="crtbegin.o crtend.o"
2059         ;;
2060 sparc64-*-aout*)
2061         tm_file="sparc/sparc.h sparc/aout.h sparc/sp64-aout.h"
2062         ;;
2063 sparc64-*-elf*)
2064         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sp64-elf.h"
2065         tmake_file="${tmake_file} sparc/t-crtfm"
2066         extra_parts="crtbegin.o crtend.o"
2067         ;;
2068 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
2069         tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
2070         tmake_file="${tmake_file} sparc/t-crtfm"
2071         xmake_file=none
2072         case "x$with_cpu" in
2073                 xultrasparc) ;;
2074                 x) with_cpu=ultrasparc ;;
2075                 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
2076         esac
2077         need_64bit_hwint=yes
2078         ;;
2079 sparc64-*-linux*)               # 64-bit SPARC's running GNU/Linux
2080         tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
2081         tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
2082         ;;
2083 sparc64-*-netbsd*)
2084         tmake_file="${tmake_file} sparc/t-netbsd64"
2085         tm_file="sparc/biarch64.h ${tm_file}"
2086         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2087         ;;
2088 strongarm-*-elf*)
2089         tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2090         tmake_file=arm/t-strongarm-elf
2091         out_file=arm/arm.c
2092         md_file=arm/arm.md
2093         extra_modes=arm/arm-modes.def
2094         ;;
2095 strongarm-*-pe)
2096         tm_file="arm/semi.h arm/aout.h arm/coff.h dbxcoff.h arm/strongarm-coff.h arm/arm.h arm/pe.h arm/strongarm-pe.h"
2097         tmake_file=arm/t-strongarm-pe
2098         out_file=arm/arm.c
2099         md_file=arm/arm.md
2100         extra_modes=arm/arm-modes.def
2101         extra_objs=pe.o
2102         ;;
2103 strongarm-*-kaos*)
2104         tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h kaos.h arm/kaos-strongarm.h"
2105         tmake_file=arm/t-strongarm-elf
2106         out_file=arm/arm.c
2107         md_file=arm/arm.md
2108         extra_modes=arm/arm-modes.def
2109         ;;
2110 v850e-*-*)
2111         target_cpu_default="TARGET_CPU_v850e"
2112         tm_file="dbxelf.h elfos.h svr4.h v850/v850.h"
2113         tm_p_file=v850/v850-protos.h
2114         tmake_file=v850/t-v850
2115         md_file=v850/v850.md
2116         out_file=v850/v850.c
2117         if test x$stabs = xyes
2118         then
2119                 tm_file="${tm_file} dbx.h"
2120         fi
2121         use_collect2=no
2122         c_target_objs="v850-c.o"
2123         cxx_target_objs="v850-c.o"
2124         ;;
2125 v850-*-*)
2126         target_cpu_default="TARGET_CPU_generic"
2127         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2128         tmake_file=v850/t-v850
2129         if test x$stabs = xyes
2130         then
2131                 tm_file="${tm_file} dbx.h"
2132         fi
2133         use_collect2=no
2134         c_target_objs="v850-c.o"
2135         cxx_target_objs="v850-c.o"
2136         ;;
2137 vax-*-bsd*)                     # VAXen running BSD
2138         tm_file="${tm_file} vax/bsd.h"
2139         use_collect2=yes
2140         ;;
2141 vax-*-sysv*)                    # VAXen running system V
2142         tm_file="${tm_file} vax/vaxv.h"
2143         ;;
2144 vax-*-netbsdelf*)
2145         tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
2146         ;;
2147 vax-*-netbsd*)
2148         tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
2149         tmake_file=t-netbsd
2150         extra_parts=""
2151         use_collect2=yes
2152         ;;
2153 vax-*-openbsd*)
2154         tm_file="vax/vax.h vax/openbsd1.h openbsd.h vax/openbsd.h"
2155         use_collect2=yes
2156         ;;
2157 vax-*-ultrix*)                  # VAXen running ultrix
2158         tm_file="${tm_file} vax/ultrix.h"
2159         ;;
2160 vax-*-vms*)                     # VAXen running VMS
2161         echo "Configuration $machine no longer supported" 1>&2
2162         exit 1
2163         ;;
2164 vax-*-*)                        # VAX default entry
2165         ;;
2166 xscale-*-elf)
2167         tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2168         tmake_file=arm/t-xscale-elf
2169         out_file=arm/arm.c
2170         md_file=arm/arm.md
2171         extra_modes=arm/arm-modes.def
2172         ;;
2173 xscale-*-coff)
2174         tm_file="arm/semi.h arm/aout.h arm/coff.h dbxcoff.h arm/xscale-coff.h arm/arm.h"
2175         tmake_file=arm/t-xscale-coff
2176         out_file=arm/arm.c
2177         md_file=arm/arm.md
2178         extra_modes=arm/arm-modes.def
2179         ;;
2180 xstormy16-*-elf)
2181         # For historical reasons, the target files omit the 'x'.
2182         tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
2183         tm_p_file=stormy16/stormy16-protos.h
2184         md_file=stormy16/stormy16.md
2185         out_file=stormy16/stormy16.c
2186         tmake_file="stormy16/t-stormy16"
2187         extra_parts="crtbegin.o crtend.o"
2188         ;;
2189 xtensa-*-elf*)
2190         tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
2191         tmake_file="xtensa/t-xtensa xtensa/t-elf"
2192         ;;
2193 xtensa-*-linux*)
2194         tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
2195         tmake_file="t-slibgcc-elf-ver t-linux xtensa/t-xtensa xtensa/t-linux"
2196         ;;
2197 am33_2.0-*-linux*)
2198         tm_file="mn10300/mn10300.h dbxelf.h elfos.h linux.h mn10300/linux.h"
2199         tmake_file="t-linux mn10300/t-linux"
2200         gas=yes gnu_ld=yes
2201         if test x$enable_threads = xyes; then
2202                 thread_file='posix'
2203         fi
2204         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2205         use_collect2=no
2206         ;;
2207 *)
2208         echo "*** Configuration $machine not supported" 1>&2
2209         exit 1
2210         ;;
2211 esac
2212
2213 case $machine in
2214 *-*-sysv*)
2215         install_headers_dir=install-headers-cpio
2216         ;;
2217 esac
2218
2219 # Support for --with-cpu and related options (and a few unrelated options,
2220 # too).  Only do this if $machine is the target, or we'll try to validate
2221 # the CPU argument against the wrong machine type.
2222
2223 if test "x$pass2done" = xyes
2224 then
2225         case "x$with_cpu" in
2226         xyes | xno)
2227                 echo "--with-cpu must be passed a value" 1>&2
2228                 exit 1
2229                 ;;
2230         esac
2231
2232         # If there is no $with_cpu option, try to infer one from ${machine}.
2233         # This block sets nothing except for with_cpu.
2234         if test x$with_cpu = x
2235         then
2236                 case $machine in
2237                 ep9312-*-*)
2238                         # A Cirrus ARM variant.
2239                         with_cpu="ep9312"
2240                         ;;
2241                 i486-*-*)
2242                         with_cpu=i486
2243                         ;;
2244                 i586-*-*)
2245                         case $target_alias in
2246                         k6_2-*)
2247                                 with_cpu=k6-2
2248                                 ;;
2249                         k6_3-*)
2250                                 with_cpu=k6-3
2251                                 ;;
2252                         k6-*)
2253                                 with_cpu=k6
2254                                 ;;
2255                         pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
2256                                 with_cpu=pentium-mmx
2257                                 ;;
2258                         *)
2259                                 with_cpu=pentium
2260                                 ;;
2261                         esac
2262                         ;;
2263                 i686-*-* | i786-*-*)
2264                         case $target_alias in
2265                         k8-*)
2266                                 with_cpu=k8
2267                                 ;;
2268                         athlon_xp-*|athlon_mp-*|athlon_4-*)
2269                                 with_cpu=athlon-4
2270                                 ;;
2271                         athlon_tbird-*|athlon-*)
2272                                 with_cpu=athlon
2273                                 ;;
2274                         pentium2-*)
2275                                 with_cpu=pentium2
2276                                 ;;
2277                         pentium3-*)
2278                                 with_cpu=pentium3
2279                                 ;;
2280                         pentium4-*)
2281                                 with_cpu=pentium4
2282                                 ;;
2283                         *)
2284                                 with_cpu=pentiumpro
2285                                 ;;
2286                         esac
2287                         ;;
2288                 x86_64-*-*)
2289                         with_cpu=k8
2290                         ;;
2291                 alpha*-*-*)
2292                         case $machine in
2293                         alphaev6[78]*)
2294                                 with_cpu=ev67
2295                                 ;;
2296                         alphaev6*)
2297                                 with_cpu=ev6
2298                                 ;;
2299                         alphapca56*)
2300                                 with_cpu=pca56
2301                                 ;;
2302                         alphaev56*)
2303                                 with_cpu=ev56
2304                                 ;;
2305                         alphaev5*)
2306                                 with_cpu=ev5
2307                                 ;;
2308                         esac
2309                         ;;
2310                 sparc*-*-*)
2311                         with_cpu="`echo $machine | sed 's/-.*$//'`"
2312                         if [ x$with_cpu = xsparc64 ]; then
2313                                 with_cpu=v9
2314                         fi
2315                         ;;
2316                 esac
2317         fi
2318
2319         # Similarly for --with-schedule.
2320         if test x$with_schedule = x; then
2321                 case $machine in
2322                 hppa1* | parisc1*)
2323                         # Override default PA8000 scheduling model.
2324                         with_schedule=7100LC
2325                         ;;
2326                 esac
2327         fi
2328
2329         # Validate and mark as valid any --with options supported
2330         # by this target.  In order to use a particular --with option
2331         # you must list it in supported_defaults; validating the value
2332         # is optional.  This case statement should set nothing besides
2333         # supported_defaults.
2334
2335         supported_defaults=
2336         case "$machine" in
2337         alpha*-*-*)
2338                 supported_defaults="cpu tune"
2339                 for which in cpu tune; do
2340                         eval "val=\$with_$which"
2341                         case "x$val" in
2342                         x \
2343                         | xev4 | xev45 | x21064 | xev5 | x21164 | xev56 | x21164a \
2344                         | xpca56 | x21164PC | x21164pc | xev6 | x21264 | xev67 \
2345                         | x21264a)
2346                                 ;;
2347                         *)
2348                                 echo "Unknown CPU used in --with-$which=$val" 1>&2
2349                                 exit 1
2350                                 ;;
2351                         esac
2352                 done
2353                 ;;
2354
2355         arm*-*-*)
2356                 supported_defaults="arch cpu float tune"
2357                 for which in cpu tune; do
2358                         eval "val=\$with_$which"
2359                         case "x$val" in
2360                         x \
2361                         | xarm[236789] | xarm250 | xarm[67][01]0 \
2362                         | xarm60 | xarm620 | xarm7d | xarm7di \
2363                         | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
2364                         | xarm70 | xarm700i | xarm710t | xarm720 \
2365                         | xarm720t | xarm740t | xarm710c | xarm920 \
2366                         | xarm920t | xarm940t | xarm9e | xarm10tdmi \
2367                         | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2368                         | xarm1020t \
2369                         | xxscale | xiwmmxt \
2370                         | xep9312 \
2371                         | xstrongarm | xstrongarm110 | xstrongarm11[01]0)
2372                                 # OK
2373                                 ;;
2374                         *)
2375                                 echo "Unknown CPU used in --with-$which=$val" 1>&2
2376                                 exit 1
2377                                 ;;
2378                         esac
2379                 done
2380
2381                 case "x$with_arch" in
2382                 x \
2383                 | xarmv[2345] | xarmv2a | xarmv3m | xarmv4t | xarmv5t \
2384                 | xarmv5te | ep9312)
2385                         # OK
2386                         ;;
2387                 *)
2388                         echo "Unknown arch used in --with-arch=$with_arch" 1>&2
2389                         exit 1
2390                         ;;
2391                 esac
2392
2393                 case "x$with_float" in
2394                 x \
2395                 | xsoft | xhard)
2396                         # OK
2397                         ;;
2398                 *)
2399                         echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2400                         exit 1
2401                         ;;
2402                 esac
2403
2404                 if test "x$with_arch" != x && test "x$with_cpu" != x; then
2405                         echo "Warning: --with-arch overrides --with-cpu" 1>&2
2406                 fi
2407                 ;;
2408
2409         hppa*-*-* | parisc*-*-*)
2410                 supported_defaults="arch schedule"
2411
2412                 case "x$with_arch" in
2413                 x | x1.0 | x1.1 | x2.0)
2414                         # OK
2415                         ;;
2416                 *)
2417                         echo "Unknown architecture used in --with-arch=$with_arch" 1>&2
2418                         exit 1
2419                         ;;
2420                 esac
2421
2422                 case "x$with_schedule" in
2423                 x | x700 | x7100 | x7100LC | x7200 | x7300 | x8000)
2424                         # OK
2425                         ;;
2426                 *)
2427                         echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2
2428                         exit 1
2429                         ;;
2430                 esac
2431                 ;;
2432
2433         i[34567]86-*-* | x86_64-*-*)
2434                 supported_defaults="arch cpu tune"
2435                 for which in arch cpu tune; do
2436                         eval "val=\$with_$which"
2437                         case "x$val" in
2438                         x \
2439                         | xi386 | xi486 \
2440                         | xi586 | xpentium | xpentium-mmx | xwinchip-c6 | xwinchip2 \
2441                         | xc3 | xc3-2 | xi686 | xpentiumpro | xpentium2 | xpentium3 \
2442                         | xpentium4 | xk6 | xk6-2 | xk6-3 | xathlon | xathlon-tbird \
2443                         | xathlon-4 | xathlon-xp | xathlon-mp | xk8)
2444                                 # OK
2445                                 ;;
2446                         *)
2447                                 echo "Unknown CPU given in --with-$which=$val." 1>&2
2448                                 exit 1
2449                                 ;;
2450                         esac
2451                 done
2452                 ;;
2453
2454         mips*-*-*)
2455                 supported_defaults="abi arch float tune"
2456
2457                 case "x$with_float" in
2458                 x \
2459                 | xsoft | xhard)
2460                         # OK
2461                         ;;
2462                 *)
2463                         echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2464                         exit 1
2465                         ;;
2466                 esac
2467
2468                 case "x$with_abi" in
2469                 x \
2470                 | x32 | xo64 | xn32 | x64 | xeabi)
2471                         # OK
2472                         ;;
2473                 *)
2474                         echo "Unknown ABI used in --with-abi=$with_abi" 1>&2
2475                         exit 1
2476                         ;;
2477                 esac
2478                 ;;
2479
2480         powerpc*-*-* | rs6000-*-*)
2481                 supported_defaults="cpu float tune"
2482
2483                 for which in cpu tune; do
2484                         eval "val=\$with_$which"
2485                         case "x$val" in
2486                         x \
2487                         | xdefault32 | xdefault64 \
2488                         | xcommon \
2489                         | xpower | xpower2 | xpower3 | xpower4 \
2490                         | xpowerpc | xpowerpc64 \
2491                         | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
2492                         | x401 | x403 | x405 | x405fp | x440 | x440fp | x505 \
2493                         | x601 | x602 | x603 | x603e | xec603e | x604 \
2494                         | x604e | x620 | x630 | x740 | x750 | x7400 | x7450 \
2495                         | x8540 | x801 | x821 | x823 | x860 | x970)
2496                                 # OK
2497                                 ;;
2498                         *)
2499                                 echo "Unknown cpu used in --with-$which=$val." 1>&2
2500                                 exit 1
2501                                 ;;
2502                         esac
2503                 done
2504                 ;;
2505
2506         s390*-*-*)
2507                 supported_defaults="arch mode tune"
2508
2509                 for which in arch tune; do
2510                         eval "val=\$with_$which"
2511                         case x$val in
2512                         x \
2513                         | xg5 | xg6 | xz900 | xz990)
2514                                 # OK
2515                                 ;;
2516                         *)
2517                                 echo "Unknown cpu used in --with-$which=$val." 1>&2
2518                                 exit 1
2519                                 ;;
2520                         esac
2521                 done
2522
2523                 case "x$with_mode" in
2524                 x \
2525                 | xesa | xzarch)
2526                         # OK
2527                         ;;
2528                 *)
2529                         echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2
2530                         exit 1
2531                         ;;
2532                 esac
2533                 ;;
2534
2535         sparc*-*-*)
2536                 supported_defaults="cpu float tune"
2537
2538                 for which in cpu tune; do
2539                         eval "val=\$with_$which"
2540                         case x$val in
2541                         x \
2542                         | xsparc | xsparcv9 | xsparc64 | xsparc86x \
2543                         | xv7 | xcypress | xv8 | xsupersparc | xsparclite | xf930 \
2544                         | xf934 | xhypersparc | xsparclite86x | xsparclet | tsc701 \
2545                         | xv9 | xultrasparc | xultrasparc3)
2546                                 # OK
2547                                 ;;
2548                         *)
2549                                 echo "Unknown cpu used in --with-$which=$val" 1>&2
2550                                 exit 1
2551                                 ;;
2552                         esac
2553                 done
2554
2555                 case "x$with_float" in
2556                 x \
2557                 | xsoft | xhard)
2558                         # OK
2559                         ;;
2560                 *)
2561                         echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2562                         exit 1
2563                         ;;
2564                 esac
2565                 ;;
2566
2567         v850*-*-*)
2568                 supported_defaults=cpu
2569                 case "x$with_cpu" in
2570                 x | xv850e)
2571                         # OK
2572                         ;;
2573                 *)
2574                         echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
2575                         exit 1
2576                         ;;
2577                 esac
2578                 ;;
2579         esac
2580
2581         # Set some miscellaneous flags for particular targets.
2582         target_cpu_default2=
2583         case $machine in
2584         alpha*-*-*)
2585                 if test x$gas = xyes
2586                 then
2587                         target_cpu_default2="MASK_GAS"
2588                 fi
2589                 ;;
2590
2591         arm*-*-*)
2592                 case "x$with_cpu" in
2593                 x)
2594                         # The most generic
2595                         target_cpu_default2="TARGET_CPU_generic"
2596                         ;;
2597
2598                 *)
2599                         target_cpu_default2="TARGET_CPU_$with_cpu"
2600                         ;;
2601                 esac
2602                 ;;
2603
2604         hppa*-*-* | parisc*-*-*)
2605                 if test x$gas = xyes
2606                 then
2607                         target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
2608                 fi
2609                 ;;
2610
2611         mips*-*-*)
2612                 case $machine in
2613                 mips*-*-ecoff* | mips*-*-elf*)
2614                         if test x$gas = xyes
2615                         then
2616                                 if test x$gnu_ld = xyes
2617                                 then
2618                                         target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
2619                                 else
2620                                         target_cpu_default2="MASK_GAS"
2621                                 fi
2622                         fi
2623                         ;;
2624                 mips*-*-*)
2625                         if test x$gas = xyes
2626                         then
2627                                 target_cpu_default2="MASK_GAS"
2628                         fi
2629                         ;;
2630                 esac
2631                 case $machine in
2632                         mips*el-*-*)
2633                                 tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
2634                                 ;;
2635                 esac
2636                 case $tm_file in
2637                         *mips/elf.h* | *mips/elf64.h*)
2638                                 tm_defines="OBJECT_FORMAT_ELF $tm_defines"
2639                                 ;;
2640                 esac
2641                 if test "x$enable_gofast" = xyes
2642                 then
2643                         tm_defines="INIT_SUBTARGET_OPTABS=INIT_GOFAST_OPTABS $tm_defines"
2644                         tm_file="gofast.h $tm_file"
2645                         tmake_file="mips/t-gofast $tmake_file"
2646                 else
2647                         tmake_file="mips/t-mips $tmake_file"
2648                 fi
2649                 ;;
2650
2651         powerpc*-*-* | rs6000-*-*)
2652                 if test x$enable_altivec = xyes
2653                 then
2654                         tm_file="$tm_file rs6000/altivec-defs.h"
2655                 fi
2656                 # FIXME: The PowerPC port uses the value set at compile time,
2657                 # although it's only cosmetic.
2658                 if test "x$with_cpu" != x
2659                 then
2660                         target_cpu_default2="\\\"$with_cpu\\\""
2661                 fi
2662                 out_file=rs6000/rs6000.c
2663                 c_target_objs="${c_target_objs} rs6000-c.o"
2664                 cxx_target_objs="${cxx_target_objs} rs6000-c.o"
2665                 tmake_file="rs6000/t-rs6000 ${tmake_file}"
2666                 ;;
2667
2668         sparc*-*-*)
2669                 # Some standard aliases.
2670                 case x$with_cpu in
2671                 xsparc)
2672                         with_cpu=v7
2673                         ;;
2674                 xsparc86x)
2675                         with_cpu=sparclite86x
2676                         ;;
2677                 xsparcv9 | xsparc64)
2678                         with_cpu=v9
2679                         ;;
2680                 esac
2681
2682                 # The Sparc port checks this value at compile-time.
2683                 target_cpu_default2="TARGET_CPU_$with_cpu"
2684                 ;;
2685         v850*-*-*)
2686                 # FIXME: The v850 is "special" in that it does not support
2687                 # runtime CPU selection, only --with-cpu.
2688                 case "x$with_cpu" in
2689                 x)
2690                         ;;
2691                 xv850e)
2692                         target_cpu_default2="TARGET_CPU_$with_cpu"
2693                         ;;
2694                 esac
2695                 ;;
2696         esac
2697
2698         t=
2699         all_defaults="abi cpu arch tune schedule float mode"
2700         for option in $all_defaults
2701         do
2702                 eval "val=\$with_$option"
2703                 if test -n "$val"; then
2704                         case " $supported_defaults " in
2705                         *" $option "*)
2706                                 ;;
2707                         *)
2708                                 echo "This target does not support --with-$option." 2>&1
2709                                 exit 1
2710                                 ;;
2711                         esac
2712
2713                         if test "x$t" = x
2714                         then
2715                                 t="{ \"$option\", \"$val\" }"
2716                         else
2717                                 t="${t}, { \"$option\", \"$val\" }"
2718                         fi
2719                 fi
2720         done
2721         if test "x$t" = x
2722         then
2723                 configure_default_options="{ { NULL, NULL} }"
2724         else
2725                 configure_default_options="{ ${t} }"
2726         fi
2727
2728         if test "$target_cpu_default2" != ""
2729         then
2730                 if test "$target_cpu_default" != ""
2731                 then
2732                         target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2733                 else
2734                         target_cpu_default=$target_cpu_default2
2735                 fi
2736         fi
2737 fi
2738
2739 # Save data on machine being used to compile GCC in build_xm_file.
2740 # Save data on host machine in vars host_xm_file and host_xmake_file.
2741 if test x$pass1done = x
2742 then
2743         if test x$xm_file != x
2744         then build_xm_file=$xm_file
2745         fi
2746         build_xm_defines=$xm_defines
2747         build_install_headers_dir=$install_headers_dir
2748         build_exeext=$exeext
2749         pass1done=yes
2750 else
2751         if test x$pass2done = x
2752         then
2753                 if test x$xm_file != x
2754                 then host_xm_file=$xm_file
2755                 fi
2756                 host_xm_defines=$xm_defines
2757                 host_xmake_file="$xmake_file"
2758                 host_extra_gcc_objs=$extra_gcc_objs
2759                 host_extra_objs=$extra_host_objs
2760                 host_exeext=$exeext
2761                 out_host_hook_obj=$host_hook_obj
2762                 pass2done=yes
2763         fi
2764 fi