OSDN Git Service

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