OSDN Git Service

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