OSDN Git Service

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