OSDN Git Service

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