OSDN Git Service

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