OSDN Git Service

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