OSDN Git Service

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