OSDN Git Service

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