OSDN Git Service

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