OSDN Git Service

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