OSDN Git Service

Changlog libcpp
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
1 # GCC target-specific configuration file.
2 # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
3 # 2008, 2009 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 3, 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 COPYING3.  If not see
19 #<http://www.gnu.org/licenses/>.
20
21 # This is the GCC target-specific configuration file
22 # where a configuration type is mapped to different system-specific
23 # definitions and files.  This is invoked by the autoconf-generated
24 # configure script.  Putting it in a separate shell file lets us skip
25 # running autoconf when modifying target-specific information.
26
27 # When you change the cases in the OS or target switches, consider
28 # updating ../libgcc/config.host also.
29
30 # This file switches on the shell variable ${target}, and also uses the
31 # following shell variables:
32 #
33 #  with_*               Various variables as set by configure.
34 #
35 #  enable_threads       Either the name, yes or no depending on whether
36 #                       threads support was requested.
37 #
38 #  default_use_cxa_atexit
39 #                         The default value for the $enable___cxa_atexit
40 #                       variable.  enable___cxa_atexit needs to be set to
41 #                       "yes" for the correct operation of C++ destructors
42 #                       but it relies upon the presence of a non-standard C
43 #                       library function called __cxa_atexit.
44 #                         Since not all C libraries provide __cxa_atexit the
45 #                       default value of $default_use_cxa_atexit is set to
46 #                       "no" except for targets which are known to be OK.
47 #
48 #  gas_flag             Either yes or no depending on whether GNU as was
49 #                       requested.
50 #
51 #  gnu_ld_flag          Either yes or no depending on whether GNU ld was
52 #                       requested.
53
54 # This file sets the following shell variables for use by the
55 # autoconf-generated configure script:
56 #
57 #  cpu_type             The name of the cpu, if different from the first
58 #                       chunk of the canonical target name.
59 #
60 #  tm_defines           List of target macros to define for all compilations.
61 #
62 #  tm_file              A list of target macro files, if different from
63 #                       "$cpu_type/$cpu_type.h". Usually it's constructed
64 #                       per target in a way like this:
65 #                       tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h"
66 #                       Note that the preferred order is:
67 #                       - specific target header "${cpu_type}/${cpu_type.h}"
68 #                       - generic headers like dbxelf.h elfos.h, etc.
69 #                       - specializing target headers like ${cpu_type.h}/elf.h
70 #                       This helps to keep OS specific stuff out of the CPU
71 #                       defining header ${cpu_type}/${cpu_type.h}.
72 #
73 #                       It is possible to include automatically-generated
74 #                       build-directory files by prefixing them with "./".
75 #                       All other files should relative to $srcdir/config.
76 #
77 #  tm_p_file            Location of file with declarations for functions
78 #                       in $out_file.
79 #
80 #  out_file             The name of the machine description C support
81 #                       file, if different from "$cpu_type/$cpu_type.c".
82 #
83 #  md_file              The name of the machine-description file, if
84 #                       different from "$cpu_type/$cpu_type.md".
85 #
86 #  tmake_file           A list of machine-description-specific
87 #                       makefile-fragments, if different from
88 #                       "$cpu_type/t-$cpu_type".
89 #
90 #  extra_modes          The name of the file containing a list of extra
91 #                       machine modes, if necessary and different from
92 #                       "$cpu_type/$cpu_type-modes.def".
93 #
94 #  extra_objs           List of extra objects that should be linked into
95 #                       the compiler proper (cc1, cc1obj, cc1plus)
96 #                       depending on target.
97 #
98 #  extra_gcc_objs       List of extra objects that should be linked into
99 #                       the compiler driver (gcc) depending on target.
100 #
101 #  extra_headers        List of used header files from the directory
102 #                       config/${cpu_type}.
103 #
104 #  use_gcc_tgmath       If set, add tgmath.h to the list of used header
105 #                       files.
106 #
107 #  use_gcc_stdint       If "wrap", install a version of stdint.h that
108 #                       wraps the system's copy for hosted compilations;
109 #                       if "provide", provide a version of systems without
110 #                       such a system header; otherwise "none", do not
111 #                       provide such a header at all.
112 #
113 #  extra_passes         List of extra executables compiled for this target
114 #                       machine, used for compiling from source to object.
115 #
116 #  extra_parts          List of extra object files that should be compiled
117 #                       for this target machine.
118 #
119 #  extra_programs       Like extra_passes, but these are used when linking.
120 #
121 #  extra_options        List of target-dependent .opt files.
122 #
123 #  c_target_objs        List of extra target-dependent objects that be
124 #                       linked into the C compiler only.
125 #
126 #  cxx_target_objs      List of extra target-dependent objects that be
127 #                       linked into the C++ compiler only.
128 #
129 #  fortran_target_objs  List of extra target-dependent objects that be
130 #                       linked into the fortran compiler only.
131 #
132 #  target_gtfiles       List of extra source files with type information.
133 #
134 #  xm_defines           List of macros to define when compiling for the
135 #                       target machine.
136 #
137 #  xm_file              List of files to include when compiling for the
138 #                       target machine.
139 #
140 #  use_collect2         Set to yes or no, depending on whether collect2
141 #                       will be used.
142 #
143 #  target_cpu_default   Set to override the default target model.
144 #
145 #  gdb_needs_out_file_path
146 #                       Set to yes if gdb needs a dir command with
147 #                       `dirname $out_file`.
148 #
149 #  thread_file          Set to control which thread package to use.
150 #
151 #  gas                  Set to yes or no depending on whether the target
152 #                       system normally uses GNU as.
153 #
154 #  need_64bit_hwint     Set to yes if HOST_WIDE_INT must be 64 bits wide
155 #                       for this target.  This is true if this target
156 #                       supports "long" or "wchar_t" wider than 32 bits,
157 #                       or BITS_PER_WORD is wider than 32 bits.
158 #                       The setting made here must match the one made in
159 #                       other locations such as libcpp/configure.ac
160 #
161 #  configure_default_options
162 #                       Set to an initializer for configure_default_options
163 #                       in configargs.h, based on --with-cpu et cetera.
164
165 # The following variables are used in each case-construct to build up the
166 # outgoing variables:
167 #
168 #  gnu_ld               Set to yes or no depending on whether the target
169 #                       system normally uses GNU ld.
170
171 out_file=
172 tmake_file=
173 extra_headers=
174 use_gcc_tgmath=yes
175 use_gcc_stdint=none
176 extra_passes=
177 extra_parts=
178 extra_programs=
179 extra_objs=
180 extra_gcc_objs=
181 extra_options=
182 c_target_objs=
183 cxx_target_objs=
184 fortran_target_objs=
185 tm_defines=
186 xm_defines=
187 # Set this to force installation and use of collect2.
188 use_collect2=
189 # Set this to override the default target model.
190 target_cpu_default=
191 # Set this if gdb needs a dir command with `dirname $out_file`
192 gdb_needs_out_file_path=
193 # Set this to control which thread package will be used.
194 thread_file=
195 # Reinitialize these from the flag values every loop pass, since some
196 # configure entries modify them.
197 gas="$gas_flag"
198 gnu_ld="$gnu_ld_flag"
199 default_use_cxa_atexit=no
200 target_gtfiles=
201 need_64bit_hwint=
202
203 # Don't carry these over build->host->target.  Please.
204 xm_file=
205 md_file=
206
207 # Obsolete configurations.
208 #case ${target} in
209 # )
210 #    if test "x$enable_obsolete" != xyes; then
211 #      echo "*** Configuration ${target} is obsolete." >&2
212 #      echo "*** Specify --enable-obsolete to build it anyway." >&2
213 #      echo "*** Support will be REMOVED in the next major release of GCC," >&2
214 #      echo "*** unless a maintainer comes forward." >&2
215 #      exit 1
216 #    fi;;
217 #esac
218
219 # Unsupported targets list.  Do not put an entry in this list unless
220 # it would otherwise be caught by a more permissive pattern.  The list
221 # should be in alphabetical order.
222 case ${target} in
223    i[34567]86-go32-*                    \
224  | i[34567]86-*-go32*                   \
225  | mips64orion*-*-rtems*                \
226  | pdp11-*-bsd                          \
227  | sparc-hal-solaris2*                  \
228  | thumb-*-*                            \
229  | *-*-linux*aout*                      \
230  | *-*-linux*coff*                      \
231  | *-*-linux*libc1*                     \
232  | *-*-linux*oldld*                     \
233  | *-*-rtemsaout*                       \
234  | *-*-rtemscoff*                       \
235  | *-*-solaris2.[0-6]                   \
236  | *-*-solaris2.[0-6].*                 \
237  | *-*-sysv*            \
238  | vax-*-vms*                           \
239  )
240         echo "*** Configuration ${target} not supported" 1>&2
241         exit 1
242         ;;
243 esac
244
245 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
246 # updated in each machine entry.  Also set default extra_headers for some
247 # machines.
248 tm_p_file=
249 cpu_type=`echo ${target} | sed 's/-.*$//'`
250 cpu_is_64bit=
251 case ${target} in
252 m32c*-*-*)
253         cpu_type=m32c
254         tmake_file=m32c/t-m32c
255         ;;
256 alpha*-*-*)
257         cpu_type=alpha
258         need_64bit_hwint=yes
259         ;;
260 am33_2.0-*-linux*)
261         cpu_type=mn10300
262         ;;
263 arm*-*-*)
264         cpu_type=arm
265         extra_headers="mmintrin.h arm_neon.h"
266         c_target_objs="arm-c.o"
267         cxx_target_objs="arm-c.o"
268         ;;
269 bfin*-*)
270         cpu_type=bfin
271         ;;
272 crisv32-*)
273         cpu_type=cris
274         ;;
275 frv*)   cpu_type=frv
276         ;;
277 moxie*) cpu_type=moxie
278         ;;
279 fido-*-*)
280         cpu_type=m68k
281         extra_headers=math-68881.h
282         ;;
283 i[34567]86-*-*)
284         cpu_type=i386
285         c_target_objs="i386-c.o"
286         cxx_target_objs="i386-c.o"
287         extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h
288                        pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h
289                        nmmintrin.h bmmintrin.h mmintrin-common.h
290                        wmmintrin.h immintrin.h x86intrin.h avxintrin.h 
291                        ia32intrin.h cross-stdarg.h"
292         ;;
293 x86_64-*-*)
294         cpu_type=i386
295         c_target_objs="i386-c.o"
296         cxx_target_objs="i386-c.o"
297         extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h
298                        pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h
299                        nmmintrin.h bmmintrin.h mmintrin-common.h
300                        wmmintrin.h immintrin.h x86intrin.h avxintrin.h 
301                        ia32intrin.h cross-stdarg.h"
302         need_64bit_hwint=yes
303         ;;
304 ia64-*-*)
305         extra_headers=ia64intrin.h
306         need_64bit_hwint=yes
307         ;;
308 hppa*-*-*)
309         cpu_type=pa
310         ;;
311 m32r*-*-*)
312         cpu_type=m32r
313         ;;
314 m68k-*-*)
315         extra_headers=math-68881.h
316         ;;
317 mips*-*-*)
318         cpu_type=mips
319         need_64bit_hwint=yes
320         extra_headers="loongson.h"
321         ;;
322 picochip-*-*)
323         cpu_type=picochip
324         ;;
325 powerpc*-*-*)
326         cpu_type=rs6000
327         extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h"
328         need_64bit_hwint=yes
329         case x$with_cpu in
330             xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[34567]|xpower6x|xrs64a|xcell)
331                 cpu_is_64bit=yes
332                 ;;
333         esac
334         ;;
335 rs6000*-*-*)
336         need_64bit_hwint=yes
337         ;;
338 score*-*-*)
339         cpu_type=score
340         ;;
341 sparc*-*-*)
342         cpu_type=sparc
343         need_64bit_hwint=yes
344         ;;
345 spu*-*-*)
346         cpu_type=spu
347         need_64bit_hwint=yes
348         ;;
349 s390*-*-*)
350         cpu_type=s390
351         need_64bit_hwint=yes
352         ;;
353 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
354 sh[123456789lbe]*-*-* | sh-*-*)
355         cpu_type=sh
356         need_64bit_hwint=yes
357         ;;
358 esac
359
360 tm_file=${cpu_type}/${cpu_type}.h
361 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
362 then
363         tm_p_file=${cpu_type}/${cpu_type}-protos.h
364 fi
365 extra_modes=
366 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
367 then
368         extra_modes=${cpu_type}/${cpu_type}-modes.def
369 fi
370 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}.opt
371 then
372         extra_options="${extra_options} ${cpu_type}/${cpu_type}.opt"
373 fi
374
375 case ${target} in
376 i[34567]86-*-*)
377         if test "x$enable_cld" = xyes; then
378                 tm_defines="${tm_defines} USE_IX86_CLD=1"
379         fi
380         tm_file="vxworks-dummy.h ${tm_file}"
381         ;;
382 x86_64-*-*)
383         tm_file="i386/biarch64.h ${tm_file}"
384         if test "x$enable_cld" = xyes; then
385                 tm_defines="${tm_defines} USE_IX86_CLD=1"
386         fi
387         tm_file="vxworks-dummy.h ${tm_file}"
388         ;;
389 esac
390
391 # On a.out targets, we need to use collect2.
392 case ${target} in
393 *-*-*aout*)
394         use_collect2=yes
395         ;;
396 esac
397
398 # Common parts for widely ported systems.
399 case ${target} in
400 *-*-darwin*)
401   tm_file="${tm_file} darwin.h"
402   case ${target} in
403   *-*-darwin[912]*)
404     tm_file="${tm_file} darwin9.h"
405     ;;
406   esac
407   tm_file="${tm_file} ${cpu_type}/darwin.h"
408   tm_p_file="${tm_p_file} darwin-protos.h"
409   tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin"
410   target_gtfiles="\$(srcdir)/config/darwin.c"
411   extra_options="${extra_options} darwin.opt"
412   c_target_objs="${c_target_objs} darwin-c.o"
413   cxx_target_objs="${cxx_target_objs} darwin-c.o"
414   fortran_target_objs="darwin-f.o"
415   extra_objs="darwin.o"
416   extra_gcc_objs="darwin-driver.o"
417   default_use_cxa_atexit=yes
418   use_gcc_stdint=wrap
419   case ${enable_threads} in
420     "" | yes | posix) thread_file='posix' ;;
421   esac
422   ;;
423 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
424   # This is the place-holder for the generic a.out configuration
425   # of FreeBSD.  No actual configuration resides here since
426   # there was only ever a bare-bones ix86 configuration for
427   # a.out and it exists solely in the machine-specific section.
428   # This place-holder must exist to avoid dropping into
429   # the generic ELF configuration of FreeBSD (i.e. it must be
430   # ordered before that section).
431   ;;
432 *-*-freebsd*)
433   # This is the generic ELF configuration of FreeBSD.  Later
434   # machine-specific sections may refine and add to this
435   # configuration.
436   #
437   # Due to tm_file entry ordering issues that vary between cpu
438   # architectures, we only define fbsd_tm_file to allow the
439   # machine-specific section to dictate the final order of all
440   # entries of tm_file with the minor exception that components
441   # of the tm_file set here will always be of the form:
442   #
443   # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
444   #
445   # The machine-specific section should not tamper with this
446   # ordering but may order all other entries of tm_file as it
447   # pleases around the provided core setting.
448   gas=yes
449   gnu_ld=yes
450   extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
451   fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\..*//g'`
452   tm_defines="${tm_defines} FBSD_MAJOR=${fbsd_major}"
453   tmake_file="t-slibgcc-elf-ver t-freebsd"
454   case ${enable_threads} in
455     no)
456       fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h"
457       ;;
458     "" | yes | posix)
459       thread_file='posix'
460       tmake_file="${tmake_file} t-freebsd-thread"
461       # Before 5.0, FreeBSD can't bind shared libraries to -lc
462       # when "optionally" threaded via weak pthread_* checks.
463       case ${target} in
464         *-*-freebsd[34] | *-*-freebsd[34].*)
465           tmake_file="${tmake_file} t-slibgcc-nolc-override"
466           ;;
467       esac
468       ;;
469     *)
470       echo 'Unknown thread configuration for FreeBSD'
471       exit 1
472       ;;
473   esac
474   fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h freebsd-stdint.h"
475   case ${target} in
476     *-*-freebsd[345].*)
477       :;;
478     *)
479       default_use_cxa_atexit=yes;;
480   esac
481   # need_64bit_hwint=yes # system compiler has this for all arch!
482   use_gcc_stdint=wrap
483   ;;
484 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
485   extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
486   gas=yes
487   gnu_ld=yes
488   case ${enable_threads} in
489     "" | yes | posix) thread_file='posix' ;;
490   esac
491   tmake_file="t-slibgcc-elf-ver t-linux"
492   case $target in
493     *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-kopensolaris*-gnu)
494       :;;
495     *-*-gnu*)
496       tmake_file="$tmake_file t-gnu";;
497   esac
498   # glibc / uclibc switch.  uclibc isn't usable for GNU/Hurd and neither for
499   # GNU/k*BSD.
500   case $target in
501     *linux*)
502       extra_options="$extra_options linux.opt";;
503     *)
504       tm_defines="$tm_defines OPTION_GLIBC=1";;
505   esac
506   case ${target} in
507     *-*-*uclibc*)
508       tm_defines="${tm_defines} UCLIBC_DEFAULT=1"
509       ;;
510     *)
511       tm_defines="${tm_defines} UCLIBC_DEFAULT=0"
512       ;;
513   esac
514   # Assume that glibc or uClibc are being used and so __cxa_atexit is provided.
515   default_use_cxa_atexit=yes
516   use_gcc_tgmath=no
517   use_gcc_stdint=wrap
518   ;;
519 *-*-netbsd*)
520   tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd t-libgcc-pic"
521   gas=yes
522   gnu_ld=yes
523
524   # NetBSD 2.0 and later get POSIX threads enabled by default.
525   # Allow them to be explicitly enabled on any other version.
526   case ${enable_threads} in
527     "")
528       case ${target} in
529         *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
530           thread_file='posix'
531           tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
532           ;;
533       esac
534       ;;
535     yes | posix)
536       thread_file='posix'
537       tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
538       ;;
539   esac
540
541   # NetBSD 1.7 and later are set up to use GCC's crtstuff for
542   # ELF configurations.  We will clear extra_parts in the
543   # a.out configurations.
544   case ${target} in
545     *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
546       extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
547       ;;
548   esac
549
550   # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
551   # default (unless overridden by --disable-__cxa_atexit).
552   case ${target} in
553     *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
554       default_use_cxa_atexit=yes
555       ;;
556   esac
557   ;;
558 *-*-openbsd*)
559   tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
560   case ${enable_threads} in
561     yes)
562       thread_file='posix'
563       tmake_file="${tmake_file} t-openbsd-thread"
564       ;;
565   esac
566   case ${target} in
567     *-*-openbsd2.*|*-*-openbsd3.[012])
568       tm_defines="${tm_defines} HAS_LIBC_R=1" ;;
569   esac
570   ;;
571 *-*-rtems*)
572   case ${enable_threads} in
573     yes) thread_file='rtems' ;;
574   esac
575   use_gcc_stdint=wrap
576   ;;
577 *-*-uclinux*)
578   use_gcc_stdint=wrap
579   ;;
580 *-*-vxworks*)
581   tmake_file=t-vxworks
582   xm_defines=POSIX
583   extra_options="${extra_options} vxworks.opt"
584   extra_objs=vxworks.o
585   case ${enable_threads} in
586     no) ;;
587     "" | yes | vxworks) thread_file='vxworks' ;;
588     *) echo 'Unknown thread configuration for VxWorks'; exit 1 ;;
589   esac
590   ;;
591 *-*-elf)
592   # Assume that newlib is being used and so __cxa_atexit is provided.
593   default_use_cxa_atexit=yes
594   use_gcc_stdint=wrap
595   ;;
596 esac
597
598 case ${target} in
599 # Support site-specific machine types.
600 *local*)
601         rest=`echo ${target} | sed -e "s/$cpu_type-//"`
602         tm_file=${cpu_type}/$rest.h
603         if test -f $srcdir/config/${cpu_type}/xm-$rest.h
604         then xm_file=${cpu_type}/xm-$rest.h
605         fi
606         if test -f $srcdir/config/${cpu_type}/t-$rest
607         then tmake_file=${cpu_type}/t-$rest
608         fi
609         ;;
610 alpha*-*-linux*)
611         tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h glibc-stdint.h"
612         target_cpu_default="MASK_GAS"
613         tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee alpha/t-linux"
614         ;;
615 alpha*-*-gnu*)
616         tm_file="$tm_file alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h glibc-stdint.h alpha/gnu.h"
617         target_cpu_default="MASK_GAS"
618         tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
619         ;;
620 alpha*-*-freebsd*)
621         tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
622         target_cpu_default="MASK_GAS"
623         tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
624         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
625         ;;
626 alpha*-*-netbsd*)
627         tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
628         target_cpu_default="MASK_GAS"
629         tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
630         ;;
631 alpha*-*-openbsd*)
632         tm_defines="${tm_defines} OBSD_NO_DYNAMIC_LIBRARIES OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT"
633         tm_file="alpha/alpha.h openbsd.h alpha/openbsd.h"
634         # default x-alpha is only appropriate for dec-osf.
635         target_cpu_default="MASK_GAS"
636         tmake_file="alpha/t-alpha alpha/t-ieee"
637         ;;
638 alpha*-dec-osf[45]*)
639         if test x$stabs = xyes
640         then
641                 tm_file="${tm_file} dbx.h"
642         fi
643         if test x$gas != xyes
644         then
645                 extra_passes="mips-tfile mips-tdump"
646         fi
647         use_collect2=yes
648         tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4"
649         tm_file="${tm_file} alpha/osf.h"
650         extra_headers=va_list.h
651         case ${target} in
652           *-*-osf4*)
653             # Define TARGET_SUPPORT_ARCH except on 4.0a.
654             case ${target} in
655                 *-*-osf4.0a) ;;
656                 *) tm_defines="${tm_defines} TARGET_SUPPORT_ARCH=1"
657             esac
658             ;;
659           *-*-osf5*)
660             tm_file="${tm_file} alpha/osf5.h"
661             tm_defines="${tm_defines} TARGET_SUPPORT_ARCH=1"
662             ;;
663         esac
664         case ${enable_threads} in
665           "" | yes | posix)
666             thread_file='posix'
667             tmake_file="${tmake_file} alpha/t-osf-pthread"
668             ;;
669         esac
670         ;;
671 alpha64-dec-*vms*)
672         tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
673         xm_file="alpha/xm-vms.h vms/xm-vms64.h"
674         tmake_file="alpha/t-alpha vms/t-vms vms/t-vms64 alpha/t-vms alpha/t-ieee"
675         xmake_file=vms/x-vms
676         exeext=.exe
677         install_headers_dir=install-headers-cp
678         extra_options="${extra_options} vms/vms.opt"
679         ;;
680 alpha*-dec-*vms*)
681         tm_file="${tm_file} alpha/vms.h"
682         xm_file="alpha/xm-vms.h"
683         tmake_file="alpha/t-alpha vms/t-vms alpha/t-vms alpha/t-ieee"
684         xmake_file=vms/x-vms
685         exeext=.exe
686         install_headers_dir=install-headers-cp
687         extra_options="${extra_options} vms/vms.opt"
688         ;;
689 arc-*-elf*)
690         tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
691         extra_parts="crtinit.o crtfini.o"
692         ;;
693 arm-wrs-vxworks)
694         tm_file="elfos.h arm/elf.h arm/aout.h ${tm_file} vx-common.h vxworks.h arm/vxworks.h"
695         tmake_file="${tmake_file} arm/t-arm arm/t-vxworks"
696         ;;
697 arm*-*-freebsd*)
698         tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
699         tmake_file="${tmake_file} arm/t-arm arm/t-strongarm-elf"
700         ;;
701 arm*-*-netbsdelf*)
702         tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h"
703         tmake_file="${tmake_file} arm/t-arm arm/t-netbsd"
704         ;;
705 arm*-*-netbsd*)
706         tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
707         tmake_file="t-netbsd arm/t-arm arm/t-netbsd"
708         extra_parts=""
709         use_collect2=yes
710         ;;
711 arm*-*-linux*)                  # ARM GNU/Linux with ELF
712         tm_file="dbxelf.h elfos.h linux.h glibc-stdint.h arm/elf.h arm/linux-gas.h arm/linux-elf.h"
713         case $target in
714         arm*b-*)
715                 tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
716                 ;;
717         esac
718         tmake_file="${tmake_file} t-linux arm/t-arm"
719         case ${target} in
720         arm*-*-linux-*eabi)
721             tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h"
722             tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi"
723             # The BPABI long long divmod functions return a 128-bit value in
724             # registers r0-r3.  Correctly modeling that requires the use of
725             # TImode.
726             need_64bit_hwint=yes
727             # The EABI requires the use of __cxa_atexit.
728             default_use_cxa_atexit=yes
729             ;;
730         *)
731             tmake_file="$tmake_file arm/t-linux"
732             ;;
733         esac
734         tm_file="$tm_file arm/aout.h arm/arm.h"
735         tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp"
736         ;;
737 arm*-*-uclinux*)                # ARM ucLinux
738         tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/uclinux-elf.h glibc-stdint.h"
739         tmake_file="arm/t-arm arm/t-arm-elf"
740         case ${target} in
741         arm*-*-uclinux*eabi)
742             tm_file="$tm_file arm/bpabi.h arm/uclinux-eabi.h"
743             tmake_file="$tmake_file arm/t-bpabi"
744             # The BPABI long long divmod functions return a 128-bit value in
745             # registers r0-r3.  Correctly modeling that requires the use of
746             # TImode.
747             need_64bit_hwint=yes
748             # The EABI requires the use of __cxa_atexit.
749             default_use_cxa_atexit=yes
750         esac
751         tm_file="$tm_file arm/aout.h arm/arm.h"
752         tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp"
753         ;;
754 arm*-*-ecos-elf)
755         tm_file="dbxelf.h elfos.h newlib-stdint.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
756         tmake_file="arm/t-arm arm/t-arm-elf"
757         tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp"
758         ;;
759 arm*-*-eabi* | arm*-*-symbianelf* )
760         # The BPABI long long divmod functions return a 128-bit value in
761         # registers r0-r3.  Correctly modeling that requires the use of
762         # TImode.
763         need_64bit_hwint=yes
764         default_use_cxa_atexit=yes
765         tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h"
766         tmake_file="arm/t-arm arm/t-arm-elf"
767         case ${target} in
768         arm*-*-eabi*)
769           tm_file="$tm_file arm/eabi.h newlib-stdint.h"
770           tmake_file="${tmake_file} arm/t-bpabi"
771           extra_options="${extra_options} arm/eabi.opt"
772           use_gcc_stdint=wrap
773           ;;
774         arm*-*-symbianelf*)
775           tm_file="${tm_file} arm/symbian.h"
776           # We do not include t-bpabi for Symbian OS because the system
777           # provides its own implementation of the BPABI functions.
778           tmake_file="${tmake_file} arm/t-symbian"
779           ;;
780         esac
781         tm_file="${tm_file} arm/aout.h arm/arm.h"
782         tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp"
783         ;;
784 arm*-*-rtems*)
785         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 newlib-stdint.h"
786         tmake_file="arm/t-arm arm/t-arm-elf t-rtems arm/t-rtems"
787         tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp"
788         ;;
789 arm*-*-elf)
790         tm_file="dbxelf.h elfos.h newlib-stdint.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
791         tmake_file="arm/t-arm arm/t-arm-elf"
792         tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp"
793         ;;
794 arm*-wince-pe*)
795         tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h arm/wince-pe.h"
796         tmake_file="arm/t-arm arm/t-wince-pe"
797         extra_options="${extra_options} arm/pe.opt"
798         extra_objs="pe.o"
799         ;;
800 arm-*-pe*)
801         tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h newlib-stdint.h"
802         tmake_file="arm/t-arm arm/t-pe"
803         use_gcc_stdint=wrap
804         extra_options="${extra_options} arm/pe.opt"
805         extra_objs="pe.o"
806         ;;
807 avr-*-rtems*)
808         tm_file="avr/avr.h dbxelf.h avr/rtems.h rtems.h newlib-stdint.h"
809         tmake_file="avr/t-avr t-rtems avr/t-rtems"
810         extra_gcc_objs="driver-avr.o avr-devices.o"
811         extra_objs="avr-devices.o"
812         ;;
813 avr-*-*)
814         tm_file="avr/avr.h dbxelf.h newlib-stdint.h"
815         use_gcc_stdint=wrap
816         extra_gcc_objs="driver-avr.o avr-devices.o"
817         extra_objs="avr-devices.o"
818         ;;
819 bfin*-elf*)
820         tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h"
821         tmake_file=bfin/t-bfin-elf
822         use_collect2=no
823         ;;
824 bfin*-uclinux*)
825         tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h linux.h glibc-stdint.h bfin/uclinux.h"
826         tmake_file=bfin/t-bfin-uclinux
827         tm_defines="${tm_defines} UCLIBC_DEFAULT=1"
828         extra_options="${extra_options} linux.opt"
829         use_collect2=no
830         ;;
831 bfin*-linux-uclibc*)
832         tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h linux.h glibc-stdint.h bfin/linux.h ./linux-sysroot-suffix.h"
833         tmake_file="t-slibgcc-elf-ver bfin/t-bfin-linux"
834         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
835         use_collect2=no
836         ;;
837 bfin*-rtems*)
838         tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/rtems.h rtems.h"
839         tmake_file="bfin/t-bfin t-rtems bfin/t-rtems"
840         ;;
841 bfin*-*)
842         tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h"
843         tmake_file=bfin/t-bfin
844         use_collect2=no
845         use_gcc_stdint=wrap
846         ;;
847 crisv32-*-elf | crisv32-*-none)
848         tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
849         tmake_file="cris/t-cris"
850         target_cpu_default=32
851         gas=yes
852         extra_options="${extra_options} cris/elf.opt"
853         use_gcc_stdint=wrap
854         ;;
855 cris-*-elf | cris-*-none)
856         tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
857         tmake_file="cris/t-cris cris/t-elfmulti"
858         gas=yes
859         extra_options="${extra_options} cris/elf.opt"
860         use_gcc_stdint=wrap
861         ;;
862 crisv32-*-linux* | cris-*-linux*)
863         tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h glibc-stdint.h cris/linux.h"
864         # We need to avoid using t-linux, so override default tmake_file
865         tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
866         extra_options="${extra_options} cris/linux.opt"
867         case $target in
868           cris-*-*)
869                 target_cpu_default=10
870                 ;;
871           crisv32-*-*)
872                 target_cpu_default=32
873                 ;;
874         esac
875         ;;
876 crx-*-elf)
877         tm_file="elfos.h newlib-stdint.h ${tm_file}"
878         extra_parts="crtbegin.o crtend.o"
879         use_collect2=no
880         ;;
881 fr30-*-elf)
882         tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
883         tmake_file=fr30/t-fr30
884         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
885         ;;
886 frv-*-elf)
887         tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file} frv/frv-abi.h"
888         tmake_file=frv/t-frv
889         ;;
890 frv-*-*linux*)
891         tm_file="dbxelf.h elfos.h svr4.h ${tm_file} \
892                  linux.h glibc-stdint.h frv/linux.h frv/frv-abi.h"
893         tmake_file="${tmake_file} frv/t-frv frv/t-linux"
894         ;;
895 moxie-*-elf)
896         gas=yes
897         gnu_ld=yes
898         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
899         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
900         tmake_file="${tmake_file} moxie/t-moxie moxie/t-moxie-softfp soft-fp/t-softfp"
901         ;;
902 moxie-*-uclinux*)
903         gas=yes
904         gnu_ld=yes
905         tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h glibc-stdint.h moxie/uclinux.h"
906         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
907         tmake_file="${tmake_file} moxie/t-moxie moxie/t-moxie-softfp soft-fp/t-softfp"
908         tm_defines="${tm_defines} UCLIBC_DEFAULT=1"
909         extra_options="${extra_options} linux.opt"
910         ;;
911 h8300-*-rtems*)
912         tmake_file="h8300/t-h8300 h8300/t-elf t-rtems h8300/t-rtems"
913         tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h h8300/rtems.h rtems.h newlib-stdint.h"
914         ;;
915 h8300-*-elf*)
916         tmake_file="h8300/t-h8300 h8300/t-elf"
917         tm_file="h8300/h8300.h dbxelf.h elfos.h newlib-stdint.h h8300/elf.h"
918         ;;
919 hppa*64*-*-linux*)
920         target_cpu_default="MASK_PA_11|MASK_PA_20"
921         tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \
922                  glibc-stdint.h pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h \
923                  pa/pa64-linux.h"
924         tmake_file="${tmake_file} pa/t-linux64"
925         gas=yes gnu_ld=yes
926         need_64bit_hwint=yes
927         ;;
928 hppa*-*-linux*)
929         target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS"
930         tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h pa/pa-linux.h \
931                  pa/pa32-regs.h pa/pa32-linux.h"
932         tmake_file="${tmake_file} pa/t-linux"
933         # Set the libgcc version number
934         if test x$sjlj = x1; then
935             tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
936         else
937             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
938         fi
939         ;;
940 # port not yet contributed.
941 #hppa*-*-openbsd*)
942 #       target_cpu_default="MASK_PA_11"
943 #       ;;
944 hppa[12]*-*-hpux10*)
945         case ${target} in
946         hppa1.1-*-* | hppa2*-*-*)
947                 target_cpu_default="MASK_PA_11"
948                 ;;
949         esac
950         tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \
951                  pa/pa-hpux.h pa/pa-hpux10.h"
952         extra_options="${extra_options} pa/pa-hpux.opt"
953         case ${target} in
954         *-*-hpux10.[1-9]*)
955                 tm_file="${tm_file} pa/pa-hpux1010.h"
956                 extra_options="${extra_options} pa/pa-hpux1010.opt"
957                 ;;
958         esac
959         use_gcc_stdint=provide
960         tm_file="${tm_file} hpux-stdint.h"
961         tmake_file="pa/t-pa-hpux10 pa/t-pa-hpux pa/t-hpux-shlib"
962         case ${enable_threads} in
963           "")
964             if test x$have_pthread_h = xyes ; then
965               tmake_file="${tmake_file} pa/t-dce-thr"
966             fi
967             ;;
968           yes | dce)
969             tmake_file="${tmake_file} pa/t-dce-thr"
970             ;;
971         esac
972         # Set the libgcc version number
973         if test x$sjlj = x1; then
974             tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
975         else
976             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
977         fi
978         use_collect2=yes
979         gas=yes
980         ;;
981 hppa*64*-*-hpux11*)
982         target_cpu_default="MASK_PA_11|MASK_PA_20"
983         if test x$gnu_ld = xyes
984         then
985                 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
986         fi
987         tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
988                  pa/pa64-regs.h pa/pa-hpux.h pa/pa-hpux1010.h \
989                  pa/pa-hpux11.h"
990         case ${target} in
991         *-*-hpux11.[1-9]*)
992                 tm_file="${tm_file} pa/pa-hpux1111.h pa/pa-64.h pa/pa64-hpux.h"
993                 extra_options="${extra_options} pa/pa-hpux1111.opt"
994                 ;;
995         *)
996                 tm_file="${tm_file} pa/pa-64.h pa/pa64-hpux.h"
997                 ;;
998         esac
999         extra_options="${extra_options} pa/pa-hpux.opt \
1000                        pa/pa-hpux1010.opt pa/pa64-hpux.opt"
1001         need_64bit_hwint=yes
1002         tmake_file="pa/t-pa64 pa/t-pa-hpux pa/t-hpux-shlib"
1003         # Set the libgcc version number
1004         if test x$sjlj = x1; then
1005             tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
1006         else
1007             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
1008         fi
1009         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
1010                      libgcc_stub.a"
1011         case x${enable_threads} in
1012         x | xyes | xposix )
1013                 thread_file=posix
1014                 ;;
1015         esac
1016         gas=yes
1017         case ${target} in
1018           *-*-hpux11.[01]*)
1019                 use_gcc_stdint=provide
1020                 tm_file="${tm_file} hpux-stdint.h"
1021                 ;;
1022           *-*-hpux11.[23]*)
1023                 use_gcc_stdint=wrap
1024                 tm_file="${tm_file} hpux-stdint.h"
1025                 ;;
1026         esac
1027         ;;
1028 hppa[12]*-*-hpux11*)
1029         case ${target} in
1030         hppa1.1-*-* | hppa2*-*-*)
1031                 target_cpu_default="MASK_PA_11"
1032                 ;;
1033         esac
1034         tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \
1035                  pa/pa-hpux.h pa/pa-hpux1010.h pa/pa-hpux11.h"
1036         extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux1010.opt"
1037         case ${target} in
1038         *-*-hpux11.[1-9]*)
1039                 tm_file="${tm_file} pa/pa-hpux1111.h"
1040                 extra_options="${extra_options} pa/pa-hpux1111.opt"
1041                 ;;
1042         esac
1043         tmake_file="pa/t-pa-hpux11 pa/t-pa-hpux pa/t-hpux-shlib"
1044         # Set the libgcc version number
1045         if test x$sjlj = x1; then
1046             tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
1047         else
1048             tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
1049         fi
1050         case x${enable_threads} in
1051         x | xyes | xposix )
1052                 thread_file=posix
1053                 ;;
1054         esac
1055         use_collect2=yes
1056         gas=yes
1057         case ${target} in
1058           *-*-hpux11.[01]*)
1059                 use_gcc_stdint=provide
1060                 tm_file="${tm_file} hpux-stdint.h"
1061                 ;;
1062           *-*-hpux11.[23]*)
1063                 use_gcc_stdint=wrap
1064                 tm_file="${tm_file} hpux-stdint.h"
1065                 ;;
1066         esac
1067         ;;
1068 i[34567]86-*-darwin*)
1069         need_64bit_hwint=yes
1070
1071         # This is so that '.../configure && make' doesn't fail due to
1072         # config.guess deciding that the configuration is i386-*-darwin* and
1073         # then this file using that to set --with-cpu=i386 which has no -m64
1074         # support.
1075         with_cpu=${with_cpu:-generic}
1076         tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
1077         ;;
1078 x86_64-*-darwin*)
1079         with_cpu=${with_cpu:-generic}
1080         tmake_file="${tmake_file} t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin i386/t-crtpc i386/t-crtfm"
1081         tm_file="${tm_file} ${cpu_type}/darwin64.h"
1082         ;;
1083 i[34567]86-*-elf*)
1084         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h"
1085         tmake_file="${tmake_file} i386/t-i386elf t-svr4"
1086         ;;
1087 x86_64-*-elf*)
1088         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h"
1089         tmake_file="${tmake_file} i386/t-i386elf t-svr4"
1090         ;;
1091 i[34567]86-*-freebsd*)
1092         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
1093         ;;
1094 x86_64-*-freebsd*)
1095         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"
1096         tmake_file="${tmake_file} i386/t-crtstuff"
1097         ;;
1098 i[34567]86-*-netbsdelf*)
1099         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
1100         ;;
1101 i[34567]86-*-netbsd*)
1102         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h"
1103         tmake_file="${tmake_file} t-netbsd"
1104         extra_parts=""
1105         use_collect2=yes
1106         ;;
1107 x86_64-*-netbsd*)
1108         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"
1109         tmake_file="${tmake_file} i386/t-crtstuff"
1110         ;;
1111 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
1112         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"
1113         # needed to unconfuse gdb
1114         tmake_file="${tmake_file} t-libc-ok t-openbsd i386/t-openbsd"
1115         # we need collect2 until our bug is fixed...
1116         use_collect2=yes
1117         ;;
1118 i[34567]86-*-openbsd*)
1119         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h"
1120         tm_file="${tm_file} openbsd.h i386/openbsdelf.h"
1121         gas=yes
1122         gnu_ld=yes
1123         ;;
1124 i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
1125                         # Intel 80386's running GNU/*
1126                         # with ELF format using glibc 2
1127         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h"
1128         case ${target} in
1129         i[34567]86-*-linux*)
1130                 if test x$enable_targets = xall; then
1131                         tm_file="${tm_file} i386/x86-64.h i386/linux64.h"
1132                         tm_defines="${tm_defines} TARGET_BI_ARCH=1"
1133                         tmake_file="${tmake_file} i386/t-linux64"
1134                         need_64bit_hwint=yes
1135                         case X"${with_cpu}" in
1136                         Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx)
1137                                 ;;
1138                         X)
1139                                 if test x$with_cpu_64 = x; then
1140                                         with_cpu_64=generic
1141                                 fi
1142                                 ;;
1143                         *)
1144                                 echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
1145                                 echo "generic atom core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx" 1>&2
1146                                 exit 1
1147                                 ;;
1148                         esac
1149                 else
1150                         tm_file="${tm_file} i386/linux.h"
1151                 fi
1152                 ;;
1153         i[34567]86-*-knetbsd*-gnu) tm_file="${tm_file} i386/linux.h knetbsd-gnu.h i386/knetbsd-gnu.h" ;;
1154         i[34567]86-*-kfreebsd*-gnu) tm_file="${tm_file} i386/linux.h kfreebsd-gnu.h i386/kfreebsd-gnu.h" ;;
1155         i[34567]86-*-kopensolaris*-gnu) tm_file="${tm_file} i386/linux.h kopensolaris-gnu.h i386/kopensolaris-gnu.h" ;;
1156         i[34567]86-*-gnu*) tm_file="$tm_file i386/linux.h gnu.h i386/gnu.h";;
1157         esac
1158         tmake_file="${tmake_file} i386/t-crtstuff i386/t-crtpc i386/t-crtfm t-dfprules"
1159         ;;
1160 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
1161         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h \
1162                  i386/x86-64.h i386/linux64.h"
1163         case ${target} in
1164         x86_64-*-kfreebsd*-gnu) tm_file="${tm_file} kfreebsd-gnu.h" ;;
1165         x86_64-*-knetbsd*-gnu) tm_file="${tm_file} knetbsd-gnu.h" ;;
1166         esac
1167         tmake_file="${tmake_file} i386/t-linux64 i386/t-crtstuff i386/t-crtpc i386/t-crtfm t-dfprules"
1168         ;;
1169 i[34567]86-pc-msdosdjgpp*)
1170         xm_file=i386/xm-djgpp.h
1171         tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h"
1172         tmake_file="${tmake_file} i386/t-djgpp"
1173         extra_options="${extra_options} i386/djgpp.opt"
1174         gnu_ld=yes
1175         gas=yes
1176         use_gcc_stdint=wrap
1177         ;;
1178 i[34567]86-*-lynxos*)
1179         xm_defines=POSIX
1180         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/lynx.h lynx.h"
1181         tmake_file="${tmake_file} i386/t-crtstuff t-lynx"
1182         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1183         extra_options="${extra_options} lynx.opt"
1184         thread_file=lynx
1185         gnu_ld=yes
1186         gas=yes
1187         ;;
1188 i[3456x]86-*-netware*)
1189         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h tm-dwarf2.h i386/netware.h"
1190         tmake_file="${tmake_file} i386/t-netware"
1191         extra_objs=netware.o
1192         case /${with_ld} in
1193         */nwld)
1194                 extra_objs="$extra_objs nwld.o"
1195                 tm_file="${tm_file} i386/nwld.h"
1196                 tmake_file="${tmake_file} i386/t-nwld"
1197                 extra_parts="crt0.o libgcc.def libc.def libcpre.def posixpre.def"
1198                 ;;
1199         esac
1200         case x${enable_threads} in
1201         x | xyes | xposix) thread_file='posix';;
1202         xnks) thread_file='nks';;
1203         xno) ;;
1204         *) echo 'Unknown thread configuration for NetWare' >&2; exit 1;;
1205         esac
1206         ;;
1207 i[34567]86-*-nto-qnx*)
1208         tm_file="${tm_file} i386/att.h dbxelf.h tm-dwarf2.h elfos.h svr4.h i386/unix.h i386/nto.h"
1209         tmake_file="${tmake_file} i386/t-nto"
1210         gnu_ld=yes
1211         gas=yes
1212         ;;
1213 i[34567]86-*-rtems*)
1214         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h newlib-stdint.h"
1215         extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1216         tmake_file="${tmake_file} i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1217         ;;
1218 i[34567]86-*-solaris2*)
1219         tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h"
1220         case ${target} in
1221         *-*-solaris2.1[0-9]*)
1222                 tm_file="${tm_file} sol2-10.h"
1223                 ;;
1224         esac
1225         tm_file="${tm_file} i386/sol2.h"
1226         tmake_file="${tmake_file} t-sol2 t-svr4"
1227         c_target_objs="${c_target_objs} sol2-c.o"
1228         cxx_target_objs="${cxx_target_objs} sol2-c.o"
1229         extra_objs="sol2.o"
1230         tm_p_file="${tm_p_file} sol2-protos.h"
1231         if test x$gnu_ld = xyes; then
1232                 tmake_file="$tmake_file t-slibgcc-elf-ver"
1233                 tm_defines="${tm_defines} TARGET_GNU_LD=1"
1234         else
1235                 tmake_file="$tmake_file t-slibgcc-sld"
1236         fi
1237         if test x$gas = xyes; then
1238                 tm_file="usegas.h ${tm_file}"
1239         fi
1240         tm_file="$tm_file tm-dwarf2.h"
1241         case ${target} in
1242         *-*-solaris2.1[0-9]*)
1243                 tm_file="${tm_file} i386/x86-64.h i386/sol2-10.h"
1244                 tm_defines="${tm_defines} TARGET_BI_ARCH=1"
1245                 tmake_file="$tmake_file i386/t-sol2-10"
1246                 # i386/t-crtstuff only affects libgcc.  Its inclusion
1247                 # depends on a runtime test and is thus performed in
1248                 # libgcc/configure.ac instead.
1249                 need_64bit_hwint=yes
1250                 use_gcc_stdint=wrap
1251                 case X"${with_cpu}" in
1252                 Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx)
1253                         ;;
1254                 X)
1255                         if test x$with_cpu_64 = x; then
1256                                 with_cpu_64=generic
1257                         fi
1258                         ;;
1259                 *)
1260                         echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
1261                         echo "generic atom core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx" 1>&2
1262                         exit 1
1263                         ;;
1264                 esac
1265                 ;;
1266         *)
1267                 use_gcc_stdint=provide
1268                 ;;
1269         esac
1270         case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
1271           "":yes:* | yes:yes:* )
1272                 thread_file=posix
1273                 ;;
1274           "":*:yes | yes:*:yes )
1275                 thread_file=solaris
1276                 ;;
1277         esac
1278         ;;
1279 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
1280         tm_file="${tm_file} i386/unix.h i386/att.h elfos.h svr4.h vx-common.h"
1281         case ${target} in
1282           *-vxworksae*)
1283             tm_file="${tm_file} vxworksae.h i386/vx-common.h i386/vxworksae.h"
1284             tmake_file="${tmake_file} i386/t-vxworks i386/t-vxworksae"
1285             ;;
1286           *)
1287             tm_file="${tm_file} vxworks.h i386/vx-common.h i386/vxworks.h"
1288             tmake_file="${tmake_file} i386/t-vxworks"
1289             ;;
1290         esac
1291         ;;
1292 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1293         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h i386/cygwin-stdint.h"
1294         xm_file=i386/xm-cygwin.h
1295         # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
1296         if test x$sjlj = x0; then
1297                 tmake_eh_file="i386/t-dw2-eh"
1298         else
1299                 tmake_eh_file="i386/t-sjlj-eh"
1300         fi
1301         tmake_file="${tmake_file} ${tmake_eh_file} i386/t-cygming i386/t-cygwin"
1302         target_gtfiles="\$(srcdir)/config/i386/winnt.c"
1303         extra_options="${extra_options} i386/cygming.opt"
1304         extra_objs="winnt.o winnt-stubs.o"
1305         c_target_objs="${c_target_objs} cygwin2.o msformat-c.o"
1306         cxx_target_objs="${cxx_target_objs} cygwin2.o winnt-cxx.o msformat-c.o"
1307         extra_gcc_objs=cygwin1.o
1308         if test x$enable_threads = xyes; then
1309                 thread_file='posix'
1310         fi
1311         use_gcc_stdint=wrap
1312         ;;
1313 i[34567]86-*-mingw* | x86_64-*-mingw*)
1314         tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
1315         xm_file=i386/xm-mingw32.h
1316         case ${target} in
1317                 x86_64-*-* | *-w64-*)
1318                         need_64bit_hwint=yes
1319                         ;;
1320                 *)
1321                         ;;
1322         esac
1323         # This makes the logic if mingw's or the w64 feature set has to be used
1324         case ${target} in
1325                 *-w64-*)
1326                         tm_file="${tm_file} i386/mingw-w64.h"
1327                         tmake_file="${tmake_file} i386/t-mingw-w64"
1328                         if test x$enable_targets = xall; then
1329                                 tm_defines="${tm_defines} TARGET_BI_ARCH=1"
1330                                 case X"${with_cpu}" in
1331                                 Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx)
1332                                         ;;
1333                                 X)
1334                                         if test x$with_cpu_64 = x; then
1335                                                 with_cpu_64=generic
1336                                         fi
1337                                         ;;
1338                                 *)
1339                                         echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
1340                                         echo "generic atom core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx" 1>&2
1341                                         exit 1
1342                                         ;;
1343                                 esac
1344                         fi
1345                         ;;
1346                 *)
1347                         tmake_file="${tmake_file} i386/t-mingw32"
1348                         ;;
1349         esac
1350         tm_file="${tm_file} i386/mingw-stdint.h"
1351         # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
1352         if test x$sjlj = x0; then
1353                 tmake_eh_file="i386/t-dw2-eh"
1354         else
1355                 tmake_eh_file="i386/t-sjlj-eh"
1356         fi
1357         tmake_file="${tmake_file} ${tmake_eh_file} i386/t-cygming"
1358         target_gtfiles="\$(srcdir)/config/i386/winnt.c"
1359         extra_options="${extra_options} i386/cygming.opt i386/mingw.opt"
1360         case ${target} in
1361                 *-w64-*)
1362                         extra_options="${extra_options} i386/mingw-w64.opt"
1363                         ;;
1364                 *)
1365                         ;;
1366         esac
1367         extra_objs="winnt.o winnt-stubs.o"
1368         c_target_objs="${c_target_objs} msformat-c.o"
1369         cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"
1370         default_use_cxa_atexit=yes
1371         use_gcc_stdint=wrap
1372         case ${enable_threads} in
1373           "" | yes | win32)       thread_file='win32'
1374           tmake_file="${tmake_file} i386/t-gthr-win32"
1375           ;;
1376         esac
1377         case ${target} in
1378                 x86_64-*-mingw*)
1379                         tmake_file="${tmake_file} i386/t-crtfm"
1380                         ;;
1381                 *)
1382                         ;;
1383         esac
1384         case ${target} in
1385                 *mingw32crt*)
1386                         tm_file="${tm_file} i386/crtdll.h"
1387                         ;;
1388                 *mingw32msv* | *mingw*)
1389                         ;;
1390         esac
1391         ;;
1392 i[34567]86-*-interix3*)
1393         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"
1394         tmake_file="${tmake_file} i386/t-interix"
1395         extra_objs=winnt.o
1396         target_gtfiles="\$(srcdir)/config/i386/winnt.c"
1397         if test x$enable_threads = xyes ; then
1398                 thread_file='posix'
1399         fi
1400         if test x$stabs = xyes ; then
1401                 tm_file="${tm_file} dbxcoff.h"
1402         fi
1403         ;;
1404 ia64*-*-elf*)
1405         tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h ia64/sysv4.h ia64/elf.h"
1406         tmake_file="ia64/t-ia64"
1407         target_cpu_default="0"
1408         if test x$gas = xyes
1409         then
1410                 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1411         fi
1412         if test x$gnu_ld = xyes
1413         then
1414                 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1415         fi
1416         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1417         ;;
1418 ia64*-*-freebsd*)
1419         tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
1420         target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1421         tmake_file="${tmake_file} ia64/t-ia64"
1422         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1423         ;;
1424 ia64*-*-linux*)
1425         tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h ia64/sysv4.h ia64/linux.h"
1426         tmake_file="${tmake_file} ia64/t-ia64 t-libunwind ia64/t-glibc"
1427         if test x$with_system_libunwind != xyes ; then
1428                 tmake_file="${tmake_file} t-libunwind-elf ia64/t-glibc-libunwind"
1429         fi
1430         target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1431         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
1432         ;;
1433 ia64*-*-hpux*)
1434         tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h"
1435         tmake_file="ia64/t-ia64 ia64/t-hpux"
1436         target_cpu_default="MASK_GNU_AS"
1437         case x$enable_threads in
1438         x | xyes | xposix )
1439                 thread_file=posix
1440                 ;;
1441         esac
1442         use_collect2=no
1443         c_target_objs="ia64-c.o"
1444         cxx_target_objs="ia64-c.o"
1445         extra_options="${extra_options} ia64/ilp32.opt"
1446         use_gcc_stdint=wrap
1447         tm_file="${tm_file} hpux-stdint.h"
1448         ;;
1449 ia64-hp-*vms*)
1450         tm_file="${tm_file} elfos.h ia64/sysv4.h ia64/elf.h ia64/vms.h ia64/vms64.h"
1451         xm_file="vms/xm-vms.h vms/xm-vms64.h"
1452         tmake_file="vms/t-vms vms/t-vms64 ia64/t-ia64 ia64/t-vms"
1453         xmake_file=vms/x-vms
1454         target_cpu_default="0"
1455         if test x$gas = xyes
1456         then
1457                 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1458         fi
1459         exeext=.exe
1460         install_headers_dir=install-headers-cp
1461         extra_options="${extra_options} vms/vms.opt"
1462         ;;
1463 iq2000*-*-elf*)
1464         tm_file="svr4.h elfos.h newlib-stdint.h iq2000/iq2000.h"
1465         tmake_file=iq2000/t-iq2000
1466         out_file=iq2000/iq2000.c
1467         md_file=iq2000/iq2000.md
1468         ;;
1469 m32r-*-elf*)
1470         tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
1471         extra_parts="crtinit.o crtfini.o"
1472         ;;
1473 m32rle-*-elf*)
1474         tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h m32r/little.h ${tm_file}"
1475         extra_parts="crtinit.o crtfini.o m32rx/crtinit.o m32rx/crtfini.o"
1476         ;;
1477 m32r-*-rtems*)
1478         tm_file="dbxelf.h elfos.h svr4.h ${tm_file} m32r/rtems.h rtems.h newlib-stdint.h"
1479         tmake_file="m32r/t-m32r t-rtems"
1480         extra_parts="crtinit.o crtfini.o"
1481         ;;
1482 m32r-*-linux*)
1483         tm_file="dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h ${tm_file} m32r/linux.h"
1484         # We override the tmake_file for linux -- why?
1485         tmake_file="t-slibgcc-elf-ver m32r/t-linux"
1486         gnu_ld=yes
1487         if test x$enable_threads = xyes; then
1488                 thread_file='posix'
1489         fi
1490         ;;
1491 m32rle-*-linux*)
1492         tm_file="dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h m32r/little.h ${tm_file} m32r/linux.h"
1493         # We override the tmake_file for linux -- why?
1494         tmake_file="t-slibgcc-elf-ver m32r/t-linux"
1495         gnu_ld=yes
1496         if test x$enable_threads = xyes; then
1497                 thread_file='posix'
1498         fi
1499         ;;
1500 # m68hc11 and m68hc12 share the same machine description.
1501 m68hc11-*-*|m6811-*-*)
1502         tm_file="dbxelf.h elfos.h usegas.h newlib-stdint.h m68hc11/m68hc11.h"
1503         tm_p_file="m68hc11/m68hc11-protos.h"
1504         md_file="m68hc11/m68hc11.md"
1505         out_file="m68hc11/m68hc11.c"
1506         tmake_file="m68hc11/t-m68hc11"
1507         use_gcc_stdint=wrap
1508         ;;
1509 m68hc12-*-*|m6812-*-*)
1510         tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h usegas.h newlib-stdint.h m68hc11/m68hc11.h"
1511         tm_p_file="m68hc11/m68hc11-protos.h"
1512         md_file="m68hc11/m68hc11.md"
1513         out_file="m68hc11/m68hc11.c"
1514         tmake_file="m68hc11/t-m68hc11"
1515         extra_options="${extra_options} m68hc11/m68hc11.opt"
1516         use_gcc_stdint=wrap
1517         ;;
1518 m68k-*-elf* | fido-*-elf*)
1519         case ${target} in
1520         fido-*-elf*)
1521                 # Check that $with_cpu makes sense.
1522                 case $with_cpu in
1523                 "" | "fidoa")
1524                         ;;
1525                 *)
1526                         echo "Cannot accept --with-cpu=$with_cpu"
1527                         exit 1
1528                         ;;
1529                 esac
1530                 with_cpu=fidoa
1531                 ;;
1532         *)
1533                 default_m68k_cpu=68020
1534                 default_cf_cpu=5206
1535                 ;;
1536         esac
1537         tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h newlib-stdint.h m68k/m68kemb.h m68k/m68020-elf.h"
1538         tm_defines="${tm_defines} MOTOROLA=1"
1539         tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-m68kelf"
1540         # Add multilibs for targets other than fido.
1541         case ${target} in
1542         fido-*-elf*)
1543                 ;;
1544         *)
1545                 tmake_file="$tmake_file m68k/t-mlibs"
1546                 ;;
1547         esac
1548         extra_parts="crtbegin.o crtend.o"
1549         ;;
1550 m68k*-*-netbsdelf*)
1551         default_m68k_cpu=68020
1552         default_cf_cpu=5475
1553         tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
1554         tm_defines="${tm_defines} MOTOROLA=1"
1555         ;;
1556 m68k*-*-openbsd*)
1557         default_m68k_cpu=68020
1558         default_cf_cpu=5475
1559         # needed to unconfuse gdb
1560         tm_defines="${tm_defines} OBSD_OLD_GAS"
1561         tm_file="${tm_file} openbsd.h m68k/openbsd.h"
1562         tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1563         # we need collect2 until our bug is fixed...
1564         use_collect2=yes
1565         ;;
1566 m68k-*-uclinuxoldabi*)          # Motorola m68k/ColdFire running uClinux
1567                                 # with uClibc, using the original
1568                                 # m68k-elf-based ABI
1569         default_m68k_cpu=68020
1570         default_cf_cpu=5206
1571         tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/uclinux-oldabi.h glibc-stdint.h"
1572         tm_defines="${tm_defines} MOTOROLA=1"
1573         tmake_file="m68k/t-floatlib m68k/t-uclinux"
1574         ;;
1575 m68k-*-uclinux*)                # Motorola m68k/ColdFire running uClinux
1576                                 # with uClibc, using the new GNU/Linux-style
1577                                 # ABI.
1578         default_m68k_cpu=68020
1579         default_cf_cpu=5206
1580         tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h flat.h m68k/linux.h m68k/uclinux.h ./sysroot-suffix.h"
1581         tm_defines="${tm_defines} MOTOROLA=1 UCLIBC_DEFAULT=1"
1582         extra_options="${extra_options} linux.opt"
1583         tmake_file="m68k/t-floatlib m68k/t-uclinux m68k/t-mlibs"
1584         ;;
1585 m68k-*-linux*)          # Motorola m68k's running GNU/Linux
1586                                 # with ELF format using glibc 2
1587                                 # aka the GNU/Linux C library 6.
1588         default_m68k_cpu=68020
1589         default_cf_cpu=5475
1590         with_arch=${with_arch:-m68k}
1591         tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h m68k/linux.h ./sysroot-suffix.h"
1592         extra_options="${extra_options} m68k/ieee.opt"
1593         tm_defines="${tm_defines} MOTOROLA=1"
1594         tmake_file="${tmake_file} m68k/t-floatlib m68k/t-linux m68k/t-mlibs"
1595         # if not configured with --enable-sjlj-exceptions, bump the
1596         # libgcc version number
1597         if test x$sjlj != x1; then
1598             tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
1599         fi
1600         ;;
1601 m68k-*-rtems*)
1602         default_m68k_cpu=68020
1603         default_cf_cpu=5206
1604         tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-crtstuff t-rtems m68k/t-rtems m68k/t-mlibs"
1605         tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h newlib-stdint.h"
1606         tm_defines="${tm_defines} MOTOROLA=1"
1607         extra_parts="crtbegin.o crtend.o"
1608         ;;
1609 mcore-*-elf)
1610         tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file} mcore/mcore-elf.h"
1611         tmake_file=mcore/t-mcore
1612         inhibit_libc=true
1613         ;;
1614 mcore-*-pe*)
1615         tm_file="svr3.h dbxcoff.h newlib-stdint.h ${tm_file} mcore/mcore-pe.h"
1616         tmake_file=mcore/t-mcore-pe
1617         inhibit_libc=true
1618         use_gcc_stdint=wrap
1619         ;;
1620 mep-*-*)
1621         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1622         tmake_file=mep/t-mep
1623         extra_parts="crtbegin.o crtend.o"
1624         c_target_objs="mep-pragma.o"
1625         cxx_target_objs="mep-pragma.o"
1626         if test -d "${srcdir}/../newlib/libc/include" &&
1627            test "x$with_headers" = x; then
1628                 with_headers=yes
1629         fi
1630         use_gcc_stdint=wrap
1631         ;;
1632 mips-sgi-irix[56]*)
1633         tm_file="elfos.h ${tm_file} mips/iris.h"
1634         tmake_file="mips/t-iris mips/t-slibgcc-irix"
1635         target_cpu_default="MASK_ABICALLS"
1636         case ${target} in
1637         *-*-irix5*)
1638                 tm_file="${tm_file} mips/iris5.h"
1639                 ;;
1640
1641         *-*-irix6*)
1642                 tm_file="${tm_file} mips/iris6.h"
1643                 tmake_file="${tmake_file} mips/t-iris6"
1644                 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
1645                 ;;
1646         esac
1647         if test "x$stabs" = xyes
1648         then
1649                 tm_file="${tm_file} dbx.h mips/dbxmdebug.h"
1650         fi
1651         if test "x$gnu_ld" = xyes
1652         then
1653                 tm_defines="${tm_defines} IRIX_USING_GNU_LD"
1654         fi
1655         case ${enable_threads}:${have_pthread_h} in
1656           "":yes | yes:yes ) thread_file=posix ;;
1657         esac
1658         ;;
1659 mips*-*-netbsd*)                        # NetBSD/mips, either endian.
1660         target_cpu_default="MASK_ABICALLS"
1661         tm_file="elfos.h ${tm_file} mips/elf.h netbsd.h netbsd-elf.h mips/netbsd.h"
1662         ;;
1663 mips64*-*-linux* | mipsisa64*-*-linux*)
1664         tm_file="dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h ${tm_file} mips/linux.h mips/linux64.h"
1665         tmake_file="${tmake_file} mips/t-linux64 mips/t-libgcc-mips16"
1666         tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_N32"
1667         case ${target} in
1668                 mips64el-st-linux-gnu)
1669                         tm_file="${tm_file} mips/st.h"
1670                         tmake_file="${tmake_file} mips/t-st"
1671                         ;;
1672                 mips64octeon*-*-linux*)
1673                         tm_defines="${tm_defines} MIPS_CPU_STRING_DEFAULT=\\\"octeon\\\""
1674                         target_cpu_default=MASK_SOFT_FLOAT_ABI
1675                         ;;
1676                 mipsisa64r2*-*-linux*)
1677                         tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65"
1678                         ;;
1679         esac
1680         gnu_ld=yes
1681         gas=yes
1682         test x$with_llsc != x || with_llsc=yes
1683         ;;
1684 mips*-*-linux*)                         # Linux MIPS, either endian.
1685         tm_file="dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h ${tm_file} mips/linux.h"
1686         tmake_file="${tmake_file} mips/t-libgcc-mips16"
1687         case ${target} in
1688         mipsisa32r2*)
1689                 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33"
1690                 ;;
1691         mipsisa32*)
1692                 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32"
1693         esac
1694         test x$with_llsc != x || with_llsc=yes
1695         ;;
1696 mips*-*-openbsd*)
1697         tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_OBJECT OBSD_HAS_CORRECT_SPECS"
1698         target_cpu_default="MASK_ABICALLS"
1699         tm_file="mips/mips.h openbsd.h mips/openbsd.h mips/sdb.h"
1700         case ${target} in
1701         mips*el-*-openbsd*)
1702             tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=0";;
1703         *)  tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=MASK_BIG_ENDIAN";;
1704         esac
1705         ;;
1706 mips*-sde-elf*)
1707         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/sde.h"
1708         tmake_file="mips/t-sde mips/t-libgcc-mips16"
1709         case "${with_newlib}" in
1710           yes)
1711             # newlib / libgloss.
1712             ;;
1713           *)
1714             # MIPS toolkit libraries.
1715             tm_file="$tm_file mips/sdemtk.h"
1716             tmake_file="$tmake_file mips/t-sdemtk"
1717             extra_options="$extra_options mips/sdemtk.opt"
1718             case ${enable_threads} in
1719               "" | yes | mipssde)
1720                 thread_file='mipssde'
1721                 ;;
1722             esac
1723             ;;
1724         esac
1725         case ${target} in
1726           mipsisa32r2*)
1727             tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32"
1728             ;;
1729           mipsisa32*)
1730             tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_32"
1731             ;;
1732           mipsisa64r2*)
1733             tm_defines="MIPS_ISA_DEFAULT=65 MIPS_ABI_DEFAULT=ABI_N32"
1734             ;;
1735           mipsisa64*)
1736             tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_N32"
1737             ;;
1738         esac
1739         ;;
1740 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
1741 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
1742 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
1743 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
1744         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
1745         tmake_file="mips/t-isa3264 mips/t-libgcc-mips16"
1746         case ${target} in
1747           mipsisa32r2*)
1748             tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33"
1749             ;;
1750           mipsisa32*)
1751             tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32"
1752             ;;
1753           mipsisa64r2*)
1754             tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65"
1755             ;;
1756           mipsisa64*)
1757             tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64"
1758             ;;
1759         esac
1760         case ${target} in
1761           mipsisa32*-*-elfoabi*)
1762             tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_32"
1763             tm_file="${tm_file} mips/elfoabi.h"
1764             ;;
1765           mipsisa64*-*-elfoabi*)
1766             tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_O64"
1767             tm_file="${tm_file} mips/elfoabi.h"
1768             ;;
1769           *-*-elf*)
1770             tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI"
1771             ;;
1772         esac
1773         ;;
1774 mipsisa64sr71k-*-elf*)
1775         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
1776         tmake_file=mips/t-sr71k
1777         target_cpu_default="MASK_64BIT|MASK_FLOAT64"
1778         tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
1779         ;;
1780 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1781         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
1782         tmake_file="mips/t-elf mips/t-libgcc-mips16 mips/t-sb1"
1783         target_cpu_default="MASK_64BIT|MASK_FLOAT64"
1784         tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
1785         ;;
1786 mips-*-elf* | mipsel-*-elf*)
1787         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
1788         tmake_file="mips/t-elf mips/t-libgcc-mips16"
1789         ;;
1790 mips64-*-elf* | mips64el-*-elf*)
1791         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
1792         tmake_file="mips/t-elf mips/t-libgcc-mips16"
1793         target_cpu_default="MASK_64BIT|MASK_FLOAT64"
1794         tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1795         ;;
1796 mips64vr-*-elf* | mips64vrel-*-elf*)
1797         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/vr.h mips/elf.h"
1798         tmake_file=mips/t-vr
1799         tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI"
1800         ;;
1801 mips64orion-*-elf* | mips64orionel-*-elf*)
1802         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elforion.h mips/elf.h"
1803         tmake_file="mips/t-elf mips/t-libgcc-mips16"
1804         target_cpu_default="MASK_64BIT|MASK_FLOAT64"
1805         tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1806         ;;
1807 mips*-*-rtems*)
1808         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/rtems.h rtems.h"
1809         tmake_file="mips/t-elf mips/t-libgcc-mips16 t-rtems mips/t-rtems"
1810         ;;
1811 mips-wrs-vxworks)
1812         tm_file="elfos.h ${tm_file} svr4.h mips/elf.h vx-common.h vxworks.h mips/vxworks.h"
1813         tmake_file="${tmake_file} mips/t-vxworks"
1814         ;;
1815 mipstx39-*-elf* | mipstx39el-*-elf*)
1816         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/r3900.h mips/elf.h"
1817         tmake_file="mips/t-r3900 mips/t-libgcc-mips16"
1818         ;;
1819 mmix-knuth-mmixware)
1820         tm_file="${tm_file} newlib-stdint.h"
1821         need_64bit_hwint=yes
1822         use_gcc_stdint=wrap
1823         ;;
1824 mn10300-*-*)
1825         tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
1826         if test x$stabs = xyes
1827         then
1828                 tm_file="${tm_file} dbx.h"
1829         fi
1830         use_collect2=no
1831         use_gcc_stdint=wrap
1832         ;;
1833 pdp11-*-*)
1834         tm_file="${tm_file} newlib-stdint.h"
1835         use_gcc_stdint=wrap
1836         ;;
1837 picochip-*)
1838         tm_file="${tm_file} newlib-stdint.h"
1839         use_gcc_stdint=wrap
1840         ;;
1841 # port not yet contributed
1842 #powerpc-*-openbsd*)
1843 #       tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-fprules-fpbit "
1844 #       extra_headers=
1845 #       ;;
1846 powerpc-*-darwin*)
1847         extra_options="${extra_options} rs6000/darwin.opt"
1848         extra_parts="crt2.o"
1849         case ${target} in
1850           *-darwin1[0-9]* | *-darwin[8-9]*)
1851             tmake_file="${tmake_file} rs6000/t-darwin8"
1852             tm_file="${tm_file} rs6000/darwin8.h"
1853             ;;
1854           *-darwin7*)
1855             tm_file="${tm_file} rs6000/darwin7.h"
1856             ;;
1857           *-darwin[0-6]*)
1858             ;;
1859         esac
1860         extra_headers=altivec.h
1861         ;;
1862 powerpc64-*-darwin*)
1863         tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h"
1864         extra_options="${extra_options} ${cpu_type}/darwin.opt"
1865         # We're omitting t-darwin8 to avoid building any multilibs
1866         extra_headers=altivec.h
1867         ;;
1868 powerpc*-*-freebsd*)
1869         tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
1870         tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1871         extra_options="${extra_options} rs6000/sysv4.opt"
1872         ;;
1873 powerpc-*-netbsd*)
1874         tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
1875         tmake_file="${tmake_file} rs6000/t-netbsd"
1876         extra_options="${extra_options} rs6000/sysv4.opt"
1877         ;;
1878 powerpc-*-eabispe*)
1879         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabispe.h"
1880         extra_options="${extra_options} rs6000/sysv4.opt"
1881         tmake_file="rs6000/t-spe rs6000/t-ppccomm"
1882         use_gcc_stdint=wrap
1883         ;;
1884 powerpc-*-eabisimaltivec*)
1885         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h rs6000/eabialtivec.h"
1886         extra_options="${extra_options} rs6000/sysv4.opt"
1887         tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcendian rs6000/t-ppccomm"
1888         use_gcc_stdint=wrap
1889         ;;
1890 powerpc-*-eabisim*)
1891         tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h"
1892         extra_options="${extra_options} rs6000/sysv4.opt"
1893         tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
1894         use_gcc_stdint=wrap
1895         ;;
1896 powerpc-*-elf*)
1897         tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h"
1898         extra_options="${extra_options} rs6000/sysv4.opt"
1899         tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
1900         ;;
1901 powerpc-*-eabialtivec*)
1902         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabialtivec.h"
1903         extra_options="${extra_options} rs6000/sysv4.opt"
1904         tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcendian rs6000/t-ppccomm"
1905         use_gcc_stdint=wrap
1906         ;;
1907 powerpc-xilinx-eabi*)
1908         tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/singlefp.h rs6000/xfpu.h rs6000/xilinx.h"
1909         extra_options="${extra_options} rs6000/sysv4.opt"
1910         tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm rs6000/t-xilinx"
1911         use_gcc_stdint=wrap
1912         ;;
1913 powerpc-*-eabi*)
1914         tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h"
1915         extra_options="${extra_options} rs6000/sysv4.opt"
1916         tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
1917         use_gcc_stdint=wrap
1918         ;;
1919 powerpc-*-rtems*)
1920         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/rtems.h rtems.h"
1921         extra_options="${extra_options} rs6000/sysv4.opt"
1922         tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-rtems t-rtems rs6000/t-ppccomm"
1923         ;;
1924 powerpc-*-linux* | powerpc64-*-linux*)
1925         tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1926         extra_options="${extra_options} rs6000/sysv4.opt"
1927         tmake_file="t-dfprules rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1928         maybe_biarch=yes
1929         case ${target} in
1930             powerpc64-*-linux*spe* | powerpc64-*-linux*paired*)
1931                 echo "*** Configuration ${target} not supported" 1>&2
1932                 exit 1
1933                 ;;
1934             powerpc-*-linux*spe* | powerpc-*-linux*paired*)
1935                 maybe_biarch=
1936                 ;;
1937             powerpc64-*-linux*)
1938                 test x$with_cpu != x || cpu_is_64bit=yes
1939                 maybe_biarch=always
1940                 ;;
1941         esac
1942         case ${maybe_biarch}:${enable_targets}:${cpu_is_64bit} in
1943             always:* | yes:*powerpc64* | yes:all:* | yes:*:yes)
1944                 if test x$cpu_is_64bit = xyes; then
1945                     tm_file="${tm_file} rs6000/default64.h"
1946                 fi
1947                 tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h glibc-stdint.h"
1948                 tmake_file="$tmake_file rs6000/t-linux64"
1949                 extra_options="${extra_options} rs6000/linux64.opt"
1950                 ;;
1951             *)
1952                 tm_file="${tm_file} rs6000/linux.h glibc-stdint.h"
1953                 ;;
1954         esac
1955         tmake_file="${tmake_file} t-slibgcc-libgcc rs6000/t-fprules-softfp soft-fp/t-softfp"
1956         case ${target} in
1957             powerpc*-*-linux*altivec*)
1958                 tm_file="${tm_file} rs6000/linuxaltivec.h" ;;
1959             powerpc*-*-linux*spe*)
1960                 tm_file="${tm_file} rs6000/linuxspe.h rs6000/e500.h" ;;
1961             powerpc*-*-linux*paired*)
1962                 tm_file="${tm_file} rs6000/750cl.h" ;;
1963         esac
1964         if test x${enable_secureplt} = xyes; then
1965                 tm_file="rs6000/secureplt.h ${tm_file}"
1966         fi
1967         ;;
1968 powerpc64-*-gnu*)
1969         tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/default64.h rs6000/linux64.h rs6000/gnu.h glibc-stdint.h"
1970         extra_options="${extra_options} rs6000/sysv4.opt rs6000/linux64.opt"
1971         tmake_file="t-slibgcc-elf-ver t-slibgcc-libgcc t-gnu"
1972         ;;
1973 powerpc-*-gnu-gnualtivec*)
1974         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 glibc-stdint.h"
1975         extra_options="${extra_options} rs6000/sysv4.opt"
1976         tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos t-slibgcc-elf-ver t-slibgcc-libgcc t-gnu rs6000/t-ppccomm"
1977         if test x$enable_threads = xyes; then
1978                 thread_file='posix'
1979         fi
1980         ;;
1981 powerpc-*-gnu*)
1982         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 glibc-stdint.h"
1983         tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos t-slibgcc-elf-ver t-slibgcc-libgcc t-gnu rs6000/t-ppccomm"
1984         extra_options="${extra_options} rs6000/sysv4.opt"
1985         if test x$enable_threads = xyes; then
1986                 thread_file='posix'
1987         fi
1988         ;;
1989 powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
1990         tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1991         tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppccomm rs6000/t-vxworks"
1992         extra_options="${extra_options} rs6000/sysv4.opt"
1993         extra_headers=ppc-asm.h
1994         case ${target} in
1995           *-vxworksae*)
1996             tm_file="${tm_file} vx-common.h vxworksae.h rs6000/vxworks.h rs6000/e500.h rs6000/vxworksae.h"
1997             tmake_file="${tmake_file} rs6000/t-vxworksae"
1998             ;;
1999           *-vxworks*)
2000             tm_file="${tm_file} vx-common.h vxworks.h rs6000/vxworks.h rs6000/e500.h"
2001             ;;
2002         esac
2003         ;;
2004 powerpc-*-lynxos*)
2005         xm_defines=POSIX
2006         tm_file="${tm_file} dbxelf.h elfos.h rs6000/sysv4.h rs6000/lynx.h lynx.h"
2007         tmake_file="t-lynx rs6000/t-lynx"
2008         extra_options="${extra_options} rs6000/sysv4.opt lynx.opt"
2009         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2010         extra_options="${extra_options} lynx.opt"
2011         thread_file=lynx
2012         gnu_ld=yes
2013         gas=yes
2014         ;;
2015 powerpcle-*-elf*)
2016         tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h"
2017         tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
2018         extra_options="${extra_options} rs6000/sysv4.opt"
2019         ;;
2020 powerpcle-*-eabisim*)
2021         tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h"
2022         tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
2023         extra_options="${extra_options} rs6000/sysv4.opt"
2024         use_gcc_stdint=wrap
2025         ;;
2026 powerpcle-*-eabi*)
2027         tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h"
2028         tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
2029         extra_options="${extra_options} rs6000/sysv4.opt"
2030         use_gcc_stdint=wrap
2031         ;;
2032 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2033         tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h rs6000/aix-stdint.h"
2034         tmake_file=rs6000/t-aix43
2035         extra_options="${extra_options} rs6000/aix64.opt"
2036         use_collect2=yes
2037         thread_file='aix'
2038         use_gcc_stdint=provide
2039         extra_headers=
2040         ;;
2041 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
2042         tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h rs6000/aix-stdint.h"
2043         extra_options="${extra_options} rs6000/aix64.opt"
2044         tmake_file=rs6000/t-aix43
2045         use_collect2=yes
2046         thread_file='aix'
2047         use_gcc_stdint=wrap
2048         extra_headers=
2049         ;;
2050 rs6000-ibm-aix5.2.* | powerpc-ibm-aix5.2.*)
2051         tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h rs6000/aix-stdint.h"
2052         tmake_file=rs6000/t-aix52
2053         extra_options="${extra_options} rs6000/aix64.opt"
2054         use_collect2=yes
2055         thread_file='aix'
2056         use_gcc_stdint=wrap
2057         extra_headers=
2058         ;;
2059 rs6000-ibm-aix5.3.* | powerpc-ibm-aix5.3.*)
2060         tm_file="${tm_file} rs6000/aix.h rs6000/aix53.h rs6000/xcoff.h rs6000/aix-stdint.h"
2061         tmake_file=rs6000/t-aix52
2062         extra_options="${extra_options} rs6000/aix64.opt"
2063         use_collect2=yes
2064         thread_file='aix'
2065         use_gcc_stdint=wrap
2066         extra_headers=altivec.h
2067         ;;
2068 rs6000-ibm-aix[6789].* | powerpc-ibm-aix[6789].*)
2069         tm_file="${tm_file} rs6000/aix.h rs6000/aix61.h rs6000/xcoff.h rs6000/aix-stdint.h"
2070         tmake_file=rs6000/t-aix52
2071         extra_options="${extra_options} rs6000/aix64.opt"
2072         use_collect2=yes
2073         thread_file='aix'
2074         use_gcc_stdint=wrap
2075         extra_headers=altivec.h
2076         ;;
2077 s390-*-linux*)
2078         tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h s390/linux.h"
2079         tmake_file="${tmake_file} t-dfprules s390/t-crtstuff s390/t-linux"
2080         ;;
2081 s390x-*-linux*)
2082         tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h s390/linux.h"
2083         tm_p_file=s390/s390-protos.h
2084         md_file=s390/s390.md
2085         extra_modes=s390/s390-modes.def
2086         out_file=s390/s390.c
2087         tmake_file="${tmake_file} t-dfprules s390/t-crtstuff s390/t-linux s390/t-linux64"
2088         ;;
2089 s390x-ibm-tpf*)
2090         tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h s390/tpf.h"
2091         tm_p_file=s390/s390-protos.h
2092         md_file=s390/s390.md
2093         extra_modes=s390/s390-modes.def
2094         out_file=s390/s390.c
2095         extra_parts="crtbeginS.o crtendS.o"
2096         tmake_file="s390/t-crtstuff s390/t-tpf"
2097         thread_file='tpf'
2098         extra_options="${extra_options} s390/tpf.opt"
2099         ;;
2100 score-*-elf)
2101         tm_file="dbxelf.h elfos.h score/elf.h score/score.h newlib-stdint.h"
2102         tmake_file=score/t-score-elf
2103         extra_objs="score7.o score3.o"
2104         ;;
2105 sh-*-elf* | sh[12346l]*-*-elf* | \
2106 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
2107   sh-*-linux* | sh[2346lbe]*-*-linux* | \
2108   sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2109    sh64-*-netbsd* | sh64l*-*-netbsd*)
2110         tmake_file="${tmake_file} sh/t-sh sh/t-elf"
2111         if test x${with_endian} = x; then
2112                 case ${target} in
2113                 sh[1234]*be-*-* | sh[1234]*eb-*-*) with_endian=big ;;
2114                 shbe-*-* | sheb-*-*)               with_endian=big,little ;;
2115                 sh[1234]l* | sh[34]*-*-linux*)     with_endian=little ;;
2116                 shl* | sh64l* | sh*-*-linux* | \
2117                   sh5l* | sh-superh-elf)           with_endian=little,big ;;
2118                 sh[1234]*-*-*)                     with_endian=big ;;
2119                 *)                                 with_endian=big,little ;;
2120                 esac
2121         fi
2122         # TM_ENDIAN_CONFIG is used by t-sh to determine multilibs.
2123         #  First word : the default endian.
2124         #  Second word: the secondary endian (optional).
2125         case ${with_endian} in
2126         big)            TM_ENDIAN_CONFIG=mb ;;
2127         little)         TM_ENDIAN_CONFIG=ml ;;
2128         big,little)     TM_ENDIAN_CONFIG="mb ml" ;;
2129         little,big)     TM_ENDIAN_CONFIG="ml mb" ;;
2130         *)      echo "with_endian=${with_endian} not supported."; exit 1 ;;
2131         esac
2132         case ${with_endian} in
2133         little*)        tm_file="sh/little.h ${tm_file}" ;;
2134         esac
2135         tm_file="${tm_file} dbxelf.h elfos.h"
2136         case ${target} in
2137         sh*-*-netbsd*)  ;;
2138         *)              tm_file="${tm_file} svr4.h" ;;
2139         esac
2140         tm_file="${tm_file} sh/elf.h"
2141         case ${target} in
2142         sh*-*-linux*)   tmake_file="${tmake_file} sh/t-linux"
2143                         tm_file="${tm_file} linux.h glibc-stdint.h sh/linux.h" ;;
2144         sh*-*-netbsd*)  tm_file="${tm_file} netbsd.h netbsd-elf.h sh/netbsd-elf.h" ;;
2145         sh*-superh-elf) if test x$with_libgloss != xno; then
2146                                 with_libgloss=yes
2147                                 tm_file="${tm_file} sh/newlib.h"
2148                         fi
2149                         tm_file="${tm_file} sh/embed-elf.h"
2150                         tm_file="${tm_file} sh/superh.h"
2151                         tmake_file="${tmake_file} sh/t-superh"
2152                         extra_options="${extra_options} sh/superh.opt" ;;
2153         *)              if test x$with_newlib = xyes \
2154                            && test x$with_libgloss = xyes; then
2155                                 tm_file="${tm_file} sh/newlib.h"
2156                         fi
2157                         tm_file="${tm_file} sh/embed-elf.h" ;;
2158         esac
2159         case ${target} in
2160         sh5*-*-netbsd*)
2161                 # SHmedia, 32-bit ABI
2162                 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd"
2163                 ;;
2164         sh64*-netbsd*)
2165                 # SHmedia, 64-bit ABI
2166                 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd sh/t-netbsd-sh5-64"
2167                 ;;
2168         *-*-netbsd)
2169                 tmake_file="${tmake_file} sh/t-netbsd"
2170                 ;;
2171         sh64*-*-linux*)
2172                 tmake_file="${tmake_file} sh/t-sh64 sh/t-linux64"
2173                 tm_file="${tm_file} sh/sh64.h"
2174                 extra_headers="shmedia.h ushmedia.h sshmedia.h"
2175                 ;;
2176         sh64*)
2177                 tmake_file="${tmake_file} sh/t-sh64"
2178                 tm_file="${tm_file} sh/sh64.h"
2179                 extra_headers="shmedia.h ushmedia.h sshmedia.h"
2180                 ;;
2181         *-*-symbianelf*)
2182                 tmake_file="sh/t-symbian"
2183                 tm_file="sh/symbian-pre.h sh/little.h ${tm_file} sh/symbian-post.h"
2184                 extra_objs="symbian.o"
2185                 extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
2186                 ;;
2187         *-*-elf*)
2188                 tm_file="${tm_file} newlib-stdint.h"
2189                 ;;
2190         esac
2191         # sed el/eb endian suffixes away to avoid confusion with sh[23]e
2192         case `echo ${target} | sed 's/e[lb]-/-/'` in
2193         sh64*-*-netbsd*)        sh_cpu_target=sh5-64media ;;
2194         sh64* | sh5*-*-netbsd*) sh_cpu_target=sh5-32media ;;
2195         sh4a_single_only*)      sh_cpu_target=sh4a-single-only ;;
2196         sh4a_single*)           sh_cpu_target=sh4a-single ;;
2197         sh4a_nofpu*)            sh_cpu_target=sh4a-nofpu ;;
2198         sh4al)                  sh_cpu_target=sh4al ;;
2199         sh4a*)                  sh_cpu_target=sh4a ;;
2200         sh4_single_only*)       sh_cpu_target=sh4-single-only ;;
2201         sh4_single*)            sh_cpu_target=sh4-single ;;
2202         sh4_nofpu*)             sh_cpu_target=sh4-nofpu ;;
2203         sh4* | sh-superh-*)     sh_cpu_target=sh4 ;;
2204         sh3e*)                  sh_cpu_target=sh3e ;;
2205         sh*-*-netbsd* | sh3*)   sh_cpu_target=sh3 ;;
2206         sh2a_single_only*)      sh_cpu_target=sh2a-single-only ;;
2207         sh2a_single*)           sh_cpu_target=sh2a-single ;;
2208         sh2a_nofpu*)            sh_cpu_target=sh2a-nofpu ;;
2209         sh2a*)                  sh_cpu_target=sh2a ;;
2210         sh2e*)                  sh_cpu_target=sh2e ;;
2211         sh2*)                   sh_cpu_target=sh2 ;;
2212         *)                      sh_cpu_target=sh1 ;;
2213         esac
2214         # did the user say --without-fp ?
2215         if test x$with_fp = xno; then
2216                 case ${sh_cpu_target} in
2217                 sh5-*media)     sh_cpu_target=${sh_cpu_target}-nofpu ;;
2218                 sh4al | sh1)    ;;
2219                 sh4a* )         sh_cpu_target=sh4a-nofpu ;;
2220                 sh4*)           sh_cpu_target=sh4-nofpu ;;
2221                 sh3*)           sh_cpu_target=sh3 ;;
2222                 sh2a*)          sh_cpu_target=sh2a-nofpu ;;
2223                 sh2*)           sh_cpu_target=sh2 ;;
2224                 *)      echo --without-fp not available for $target: ignored
2225                 esac
2226                 tm_defines="$tm_defines STRICT_NOFPU=1"
2227         fi
2228         sh_cpu_default="`echo $with_cpu|sed s/^m/sh/|tr A-Z_ a-z-`"
2229         case $sh_cpu_default in
2230         sh5-64media-nofpu | sh5-64media | \
2231           sh5-32media-nofpu | sh5-32media | sh5-compact-nofpu | sh5-compact | \
2232           sh2a-single-only | sh2a-single | sh2a-nofpu | sh2a | \
2233           sh4a-single-only | sh4a-single | sh4a-nofpu | sh4a | sh4al | \
2234           sh4-single-only | sh4-single | sh4-nofpu | sh4 | sh4-300 | \
2235           sh3e | sh3 | sh2e | sh2 | sh1) ;;
2236         "")     sh_cpu_default=${sh_cpu_target} ;;
2237         *)      echo "with_cpu=$with_cpu not supported"; exit 1 ;;
2238         esac
2239         sh_multilibs=${with_multilib_list}
2240         if test "$sh_multilibs" = "default" ; then
2241                 case ${target} in
2242                 sh64-superh-linux* | \
2243                 sh[1234]*)      sh_multilibs=${sh_cpu_target} ;;
2244                 sh64* | sh5*)   sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;;
2245                 sh-superh-*)    sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;;
2246                 sh*-*-linux*)   sh_multilibs=m1,m3e,m4 ;;
2247                 sh*-*-netbsd*)  sh_multilibs=m3,m3e,m4 ;;
2248                 *) sh_multilibs=m1,m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single ;;
2249                 esac
2250                 if test x$with_fp = xno; then
2251                         sh_multilibs="`echo $sh_multilibs|sed -e s/m4/sh4-nofpu/ -e s/,m4-[^,]*//g -e s/,m[23]e// -e s/m2a,m2a-single/m2a-nofpu/ -e s/m5-..m....,//g`"
2252                 fi
2253         fi
2254         target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`
2255         tm_defines=${tm_defines}' SH_MULTILIB_CPU_DEFAULT=\"'`echo $sh_cpu_default|sed s/sh/m/`'\"'
2256         tm_defines="$tm_defines SUPPORT_`echo $sh_cpu_default | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1"
2257         sh_multilibs=`echo $sh_multilibs | sed -e 's/,/ /g' -e 's/^sh/m/i' -e 's/ sh/ m/gi' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz-`
2258         for sh_multilib in ${sh_multilibs}; do
2259                 case ${sh_multilib} in
2260                 m1 | m2 | m2e | m3 | m3e | \
2261                 m4 | m4-single | m4-single-only | m4-nofpu | m4-300 |\
2262                 m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al | \
2263                 m2a | m2a-single | m2a-single-only | m2a-nofpu | \
2264                 m5-64media | m5-64media-nofpu | \
2265                 m5-32media | m5-32media-nofpu | \
2266                 m5-compact | m5-compact-nofpu)
2267                         # TM_MULTILIB_CONFIG is used by t-sh for the non-endian multilib definition
2268                         # It is passed to MULTIILIB_OPTIONS verbatim.
2269                         TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG}/${sh_multilib}"
2270                         tm_defines="$tm_defines SUPPORT_`echo $sh_multilib | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1"
2271                         ;;
2272                 \!*)    # TM_MULTILIB_EXCEPTIONS_CONFIG is used by t-sh
2273                         # It is passed the MULTILIB_EXCEPTIONS verbatim.
2274                         TM_MULTILIB_EXCEPTIONS_CONFIG="${TM_MULTILIB_EXCEPTIONS_CONFIG} `echo $sh_multilib | sed 's/^!//'`" ;;
2275                 *)
2276                         echo "with_multilib_list=${sh_multilib} not supported."
2277                         exit 1
2278                         ;;
2279                 esac
2280         done
2281         TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's:^/::'`
2282         if test x${enable_incomplete_targets} = xyes ; then
2283                 tm_defines="$tm_defines SUPPORT_SH1=1 SUPPORT_SH2E=1 SUPPORT_SH4=1 SUPPORT_SH4_SINGLE=1 SUPPORT_SH2A=1 SUPPORT_SH2A_SINGLE=1 SUPPORT_SH5_32MEDIA=1 SUPPORT_SH5_32MEDIA_NOFPU=1 SUPPORT_SH5_64MEDIA=1 SUPPORT_SH5_64MEDIA_NOFPU=1"
2284         fi
2285         tm_file="$tm_file ./sysroot-suffix.h"
2286         tmake_file="$tmake_file t-sysroot-suffix"
2287         ;;
2288 sh-*-rtems*)
2289         tmake_file="sh/t-sh sh/t-elf t-rtems sh/t-rtems"
2290         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h newlib-stdint.h"
2291         ;;
2292 sh-wrs-vxworks)
2293         tmake_file="$tmake_file sh/t-sh sh/t-elf sh/t-vxworks"
2294         tm_file="${tm_file} elfos.h svr4.h sh/elf.h sh/embed-elf.h vx-common.h vxworks.h sh/vxworks.h"
2295         ;;
2296 sparc-*-netbsdelf*)
2297         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2298         extra_options="${extra_options} sparc/long-double-switch.opt"
2299         ;;
2300 sparc64-*-openbsd*)
2301         tm_file="sparc/openbsd1-64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp64-elf.h openbsd.h sparc/openbsd64.h"
2302         extra_options="${extra_options} sparc/little-endian.opt"
2303         gas=yes gnu_ld=yes
2304         with_cpu=ultrasparc
2305         ;;
2306 sparc-*-elf*)
2307         tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h svr4.h sparc/sysv4.h sparc/sp-elf.h"
2308         tmake_file="sparc/t-elf sparc/t-crtfm"
2309         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2310         ;;
2311 sparc-*-linux*)         # SPARC's running GNU/Linux, libc6
2312         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h linux.h glibc-stdint.h"
2313         extra_options="${extra_options} sparc/long-double-switch.opt"
2314         tmake_file="${tmake_file} sparc/t-linux"
2315         if test x$enable_targets = xall; then
2316                 tm_file="sparc/biarch64.h ${tm_file} sparc/linux64.h"
2317                 tmake_file="${tmake_file} sparc/t-linux64"
2318         else
2319                 tm_file="${tm_file} sparc/linux.h"
2320         fi
2321         tmake_file="${tmake_file} sparc/t-crtfm"
2322         ;;
2323 sparc-*-rtems*)
2324         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h"
2325         tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
2326         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2327         ;;
2328 sparc64-*-solaris2* | sparcv9-*-solaris2*)
2329         tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h"
2330         case ${target} in
2331         *-*-solaris2.1[0-9]*)
2332                 tm_file="${tm_file} sol2-10.h"
2333                 use_gcc_stdint=wrap
2334                 ;;
2335         *)
2336                 use_gcc_stdint=provide
2337                 ;;
2338         esac
2339         tm_file="${tm_file} sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h"
2340         if test x$gnu_ld = xyes; then
2341                 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
2342         fi
2343         if test x$gas = xyes; then
2344                 tm_file="${tm_file} sparc/sol2-gas.h sparc/sol2-gas-bi.h"
2345         fi
2346         tm_file="${tm_file} tm-dwarf2.h"
2347         tmake_file="t-sol2 sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
2348         if test x$gnu_ld = xyes; then
2349                 tmake_file="$tmake_file t-slibgcc-elf-ver"
2350         else
2351                 tmake_file="$tmake_file t-slibgcc-sld"
2352         fi
2353         c_target_objs="sol2-c.o"
2354         cxx_target_objs="sol2-c.o"
2355         extra_objs="sol2.o"
2356         tm_p_file="${tm_p_file} sol2-protos.h"
2357         extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2358         case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
2359           "":yes:* | yes:yes:* ) thread_file=posix ;;
2360           "":*:yes | yes:*:yes ) thread_file=solaris ;;
2361         esac
2362         ;;
2363 sparc-*-solaris2*)
2364         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h"
2365         case ${target} in
2366         *-*-solaris2.1[0-9]*)
2367                 tm_file="${tm_file} sol2-10.h"
2368                 use_gcc_stdint=wrap
2369                 ;;
2370         *)
2371                 use_gcc_stdint=provide
2372                 ;;
2373         esac
2374         tm_file="${tm_file} sparc/sol2.h"
2375         if test x$gnu_ld = xyes; then
2376                 tm_file="${tm_file} sparc/sol2-gld.h"
2377         fi
2378         if test x$gas = xyes; then
2379                 tm_file="${tm_file} sparc/sol2-gas.h"
2380         fi
2381         tmake_file="t-sol2 sparc/t-sol2 sparc/t-crtfm"
2382         if test x$gnu_ld = xyes; then
2383                 tmake_file="$tmake_file t-slibgcc-elf-ver"
2384         else
2385                 tmake_file="$tmake_file t-slibgcc-sld"
2386         fi
2387         tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
2388         if test x$gnu_ld = xyes; then
2389                 tm_file="${tm_file} sparc/sol2-gld-bi.h"
2390         fi
2391         if test x$gas = xyes; then
2392                 tm_file="${tm_file} sparc/sol2-gas-bi.h"
2393         fi
2394         tm_file="${tm_file} tm-dwarf2.h"
2395         tmake_file="$tmake_file sparc/t-sol2-64"
2396         test x$with_cpu != x || with_cpu=v9
2397         c_target_objs="sol2-c.o"
2398         cxx_target_objs="sol2-c.o"
2399         extra_objs="sol2.o"
2400         tm_p_file="${tm_p_file} sol2-protos.h"
2401         extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2402         case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
2403           "":yes:* | yes:yes:* )
2404                 thread_file=posix
2405                 ;;
2406           "":*:yes | yes:*:yes )
2407                 thread_file=solaris
2408                 ;;
2409         esac
2410         ;;
2411 sparc-wrs-vxworks)
2412         tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h vx-common.h vxworks.h sparc/vxworks.h"
2413         tmake_file="${tmake_file} sparc/t-vxworks"
2414         ;;
2415 sparc64-*-elf*)
2416         tm_file="${tm_file} dbxelf.h elfos.h svr4.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h"
2417         extra_options="${extra_options} sparc/little-endian.opt"
2418         tmake_file="${tmake_file} sparc/t-crtfm"
2419         extra_parts="crtbegin.o crtend.o"
2420         ;;
2421 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
2422         tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
2423         extra_options="${extra_options} sparc/long-double-switch.opt"
2424         tmake_file="${tmake_file} sparc/t-crtfm"
2425         case "x$with_cpu" in
2426                 xultrasparc) ;;
2427                 x) with_cpu=ultrasparc ;;
2428                 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
2429         esac
2430         ;;
2431 sparc64-*-linux*)               # 64-bit SPARC's running GNU/Linux
2432         tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h linux.h glibc-stdint.h sparc/linux64.h"
2433         extra_options="${extra_options} sparc/long-double-switch.opt"
2434         tmake_file="${tmake_file} sparc/t-linux sparc/t-linux64 sparc/t-crtfm"
2435         ;;
2436 sparc64-*-netbsd*)
2437         tm_file="sparc/biarch64.h ${tm_file}"
2438         tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2439         extra_options="${extra_options} sparc/long-double-switch.opt"
2440         tmake_file="${tmake_file} sparc/t-netbsd64"
2441         ;;
2442 spu-*-elf*)
2443         tm_file="dbxelf.h elfos.h spu/spu-elf.h spu/spu.h newlib-stdint.h"
2444         tmake_file="spu/t-spu-elf"
2445         extra_headers="spu_intrinsics.h spu_internals.h vmx2spu.h spu_mfcio.h vec_types.h"
2446         extra_modes=spu/spu-modes.def
2447         c_target_objs="${c_target_objs} spu-c.o"
2448         cxx_target_objs="${cxx_target_objs} spu-c.o"
2449         ;;
2450 v850e1-*-*)
2451         target_cpu_default="TARGET_CPU_v850e1"
2452         tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h v850/v850.h"
2453         tm_p_file=v850/v850-protos.h
2454         tmake_file=v850/t-v850e
2455         md_file=v850/v850.md
2456         out_file=v850/v850.c
2457         extra_options="${extra_options} v850/v850.opt"
2458         if test x$stabs = xyes
2459         then
2460                 tm_file="${tm_file} dbx.h"
2461         fi
2462         use_collect2=no
2463         c_target_objs="v850-c.o"
2464         cxx_target_objs="v850-c.o"
2465         use_gcc_stdint=wrap
2466         ;;
2467 v850e-*-*)
2468         target_cpu_default="TARGET_CPU_v850e"
2469         tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h v850/v850.h"
2470         tm_p_file=v850/v850-protos.h
2471         tmake_file=v850/t-v850e
2472         md_file=v850/v850.md
2473         out_file=v850/v850.c
2474         extra_options="${extra_options} v850/v850.opt"
2475         if test x$stabs = xyes
2476         then
2477                 tm_file="${tm_file} dbx.h"
2478         fi
2479         use_collect2=no
2480         c_target_objs="v850-c.o"
2481         cxx_target_objs="v850-c.o"
2482         use_gcc_stdint=wrap
2483         ;;
2484 v850-*-*)
2485         target_cpu_default="TARGET_CPU_generic"
2486         tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
2487         tmake_file=v850/t-v850
2488         if test x$stabs = xyes
2489         then
2490                 tm_file="${tm_file} dbx.h"
2491         fi
2492         use_collect2=no
2493         c_target_objs="v850-c.o"
2494         cxx_target_objs="v850-c.o"
2495         use_gcc_stdint=wrap
2496         ;;
2497 vax-*-linux*)
2498         tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h vax/elf.h vax/linux.h"
2499         tmake_file=vax/t-linux
2500         ;;
2501 vax-*-netbsdelf*)
2502         tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
2503         ;;
2504 vax-*-netbsd*)
2505         tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
2506         tmake_file=t-netbsd
2507         extra_parts=""
2508         use_collect2=yes
2509         ;;
2510 vax-*-openbsd*)
2511         tm_file="vax/vax.h vax/openbsd1.h openbsd.h vax/openbsd.h"
2512         use_collect2=yes
2513         ;;
2514 xstormy16-*-elf)
2515         # For historical reasons, the target files omit the 'x'.
2516         tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h stormy16/stormy16.h"
2517         tm_p_file=stormy16/stormy16-protos.h
2518         md_file=stormy16/stormy16.md
2519         out_file=stormy16/stormy16.c
2520         extra_options=stormy16/stormy16.opt
2521         tmake_file="stormy16/t-stormy16"
2522         extra_parts="crtbegin.o crtend.o"
2523         ;;
2524 xtensa*-*-elf*)
2525         tm_file="${tm_file} dbxelf.h elfos.h svr4.h newlib-stdint.h xtensa/elf.h"
2526         tmake_file="xtensa/t-xtensa xtensa/t-elf"
2527         ;;
2528 xtensa*-*-linux*)
2529         tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h xtensa/linux.h"
2530         tmake_file="${tmake_file} xtensa/t-xtensa xtensa/t-linux"
2531         ;;
2532 am33_2.0-*-linux*)
2533         tm_file="mn10300/mn10300.h dbxelf.h elfos.h linux.h glibc-stdint.h mn10300/linux.h"
2534         tmake_file="${tmake_file} mn10300/t-linux"
2535         gas=yes gnu_ld=yes
2536         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2537         use_collect2=no
2538         ;;
2539 m32c-*-rtems*)
2540         tm_file="dbxelf.h elfos.h svr4.h ${tm_file} m32c/rtems.h rtems.h newlib-stdint.h"
2541         tmake_file="${tmake_file} t-rtems"
2542         c_target_objs="m32c-pragma.o"
2543         cxx_target_objs="m32c-pragma.o"
2544         ;;
2545 m32c-*-elf*)
2546         tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
2547         c_target_objs="m32c-pragma.o"
2548         cxx_target_objs="m32c-pragma.o"
2549         ;;
2550 *)
2551         echo "*** Configuration ${target} not supported" 1>&2
2552         exit 1
2553         ;;
2554 esac
2555
2556 case ${target} in
2557 i[34567]86-*-linux* | x86_64-*-linux*)
2558         tmake_file="${tmake_file} i386/t-pmm_malloc i386/t-i386"
2559         ;;
2560 i[34567]86-*-* | x86_64-*-*)
2561         tmake_file="${tmake_file} i386/t-gmm_malloc i386/t-i386"
2562         ;;
2563 powerpc*-*-* | rs6000-*-*)
2564         tm_file="${tm_file} rs6000/option-defaults.h"
2565 esac
2566
2567 # Support for --with-cpu and related options (and a few unrelated options,
2568 # too).
2569 case ${with_cpu} in
2570   yes | no)
2571     echo "--with-cpu must be passed a value" 1>&2
2572     exit 1
2573     ;;
2574 esac
2575
2576 # If there is no $with_cpu option, try to infer one from ${target}.
2577 # This block sets nothing except for with_cpu.
2578 if test x$with_cpu = x ; then
2579   case ${target} in
2580     i386-*-*)
2581       with_cpu=i386
2582       ;;
2583     i486-*-*)
2584       with_cpu=i486
2585       ;;
2586     i586-*-*)
2587       case ${target_noncanonical} in
2588         k6_2-*)
2589           with_cpu=k6-2
2590           ;;
2591         k6_3-*)
2592           with_cpu=k6-3
2593           ;;
2594         k6-*)
2595           with_cpu=k6
2596           ;;
2597         pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
2598           with_cpu=pentium-mmx
2599           ;;
2600         *)
2601           with_cpu=pentium
2602           ;;
2603       esac
2604       ;;
2605     i686-*-* | i786-*-*)
2606       case ${target_noncanonical} in
2607         amdfam10-*|barcelona-*)
2608           with_cpu=amdfam10
2609           ;;
2610         k8-*|opteron-*|athlon_64-*)
2611           with_cpu=k8
2612           ;;
2613         athlon_xp-*|athlon_mp-*|athlon_4-*)
2614           with_cpu=athlon-4
2615           ;;
2616         athlon_tbird-*|athlon-*)
2617           with_cpu=athlon
2618           ;;
2619         geode-*)
2620           with_cpu=geode
2621           ;;
2622         pentium2-*)
2623           with_cpu=pentium2
2624           ;;
2625         pentium3-*|pentium3m-*)
2626           with_cpu=pentium3
2627           ;;
2628         pentium4-*|pentium4m-*)
2629           with_cpu=pentium4
2630           ;;
2631         prescott-*)
2632           with_cpu=prescott
2633           ;;
2634         nocona-*)
2635           with_cpu=nocona
2636           ;;
2637         core2-*)
2638           with_cpu=core2
2639           ;;
2640         pentium_m-*)
2641           with_cpu=pentium-m
2642           ;;
2643         pentiumpro-*)
2644           with_cpu=pentiumpro
2645           ;;
2646         *)
2647           with_cpu=generic
2648           ;;
2649       esac
2650       ;;
2651     x86_64-*-*)
2652       case ${target_noncanonical} in
2653         amdfam10-*|barcelona-*)
2654           with_cpu=amdfam10
2655           ;;
2656         k8-*|opteron-*|athlon_64-*)
2657           with_cpu=k8
2658           ;;
2659         nocona-*)
2660           with_cpu=nocona
2661           ;;
2662         core2-*)
2663           with_cpu=core2
2664           ;;
2665         *)
2666           with_cpu=generic
2667           ;;
2668       esac
2669       ;;
2670     alphaev6[78]*-*-*)
2671       with_cpu=ev67
2672       ;;
2673     alphaev6*-*-*)
2674       with_cpu=ev6
2675       ;;
2676     alphapca56*-*-*)
2677       with_cpu=pca56
2678       ;;
2679     alphaev56*-*-*)
2680       with_cpu=ev56
2681       ;;
2682     alphaev5*-*-*)
2683       with_cpu=ev5
2684       ;;
2685     frv-*-*linux* | frv400-*-*linux*)
2686       with_cpu=fr400
2687       ;;
2688     frv550-*-*linux*)
2689       with_cpu=fr550
2690       ;;
2691     m68k*-*-*)
2692       case "$with_arch" in
2693         "cf")
2694           with_cpu=${default_cf_cpu}
2695           ;;
2696         "" | "m68k")
2697           with_cpu=m${default_m68k_cpu}
2698           ;;
2699       esac
2700       ;;
2701     mips*-*-vxworks)
2702       with_arch=mips2
2703       ;;
2704     sparc*-*-*)
2705       with_cpu="`echo ${target} | sed 's/-.*$//'`"
2706       ;;
2707   esac
2708
2709   # Avoid overriding --with-cpu-32 and --with-cpu-64 values.
2710   case ${target} in
2711     i[34567]86-*-*|x86_64-*-*)
2712       if test x$with_cpu != x; then
2713         if test x$with_cpu_32 != x || test x$with_cpu_64 != x; then
2714           if test x$with_cpu_32 = x; then
2715             with_cpu_32=$with_cpu
2716           fi
2717           if test x$with_cpu_64 = x; then
2718             with_cpu_64=$with_cpu
2719           fi
2720           with_cpu=
2721         fi
2722       fi
2723       ;;
2724   esac
2725 fi
2726
2727 # Similarly for --with-schedule.
2728 if test x$with_schedule = x; then
2729         case ${target} in
2730         hppa1*)
2731                 # Override default PA8000 scheduling model.
2732                 with_schedule=7100LC
2733                 ;;
2734         esac
2735 fi
2736
2737 # Validate and mark as valid any --with options supported
2738 # by this target.  In order to use a particular --with option
2739 # you must list it in supported_defaults; validating the value
2740 # is optional.  This case statement should set nothing besides
2741 # supported_defaults.
2742
2743 supported_defaults=
2744 case "${target}" in
2745         alpha*-*-*)
2746                 supported_defaults="cpu tune"
2747                 for which in cpu tune; do
2748                         eval "val=\$with_$which"
2749                         case "$val" in
2750                         "" \
2751                         | ev4 | ev45 | 21064 | ev5 | 21164 | ev56 | 21164a \
2752                         | pca56 | 21164PC | 21164pc | ev6 | 21264 | ev67 \
2753                         | 21264a)
2754                                 ;;
2755                         *)
2756                                 echo "Unknown CPU used in --with-$which=$val" 1>&2
2757                                 exit 1
2758                                 ;;
2759                         esac
2760                 done
2761                 ;;
2762
2763         arm*-*-*)
2764                 supported_defaults="arch cpu float tune fpu abi mode"
2765                 for which in cpu tune; do
2766                         # See if it matches any of the entries in arm-cores.def
2767                         eval "val=\$with_$which"
2768                         if [ x"$val" = x ] \
2769                             || grep "^ARM_CORE(\"$val\"," \
2770                                     ${srcdir}/config/arm/arm-cores.def \
2771                                     > /dev/null; then
2772                           # Ok
2773                           new_val=`grep "^ARM_CORE(\"$val\"," \
2774                                 ${srcdir}/config/arm/arm-cores.def | \
2775                                 sed -e 's/^[^,]*,[      ]*//' | \
2776                                 sed -e 's/,.*$//'`
2777                           eval "target_${which}_cname=$new_val"
2778                         echo "For $val real value is $new_val"
2779                           true
2780                         else
2781                           echo "Unknown CPU used in --with-$which=$val" 1>&2
2782                           exit 1
2783                         fi
2784                 done
2785
2786                 case "$with_arch" in
2787                 "" \
2788                 | armv[23456] | armv2a | armv3m | armv4t | armv5t \
2789                 | armv5te | armv6j |armv6k | armv6z | armv6zk | armv6-m \
2790                 | armv7 | armv7-a | armv7-r | armv7-m \
2791                 | iwmmxt | ep9312)
2792                         # OK
2793                         ;;
2794                 *)
2795                         echo "Unknown arch used in --with-arch=$with_arch" 1>&2
2796                         exit 1
2797                         ;;
2798                 esac
2799
2800                 case "$with_float" in
2801                 "" \
2802                 | soft | hard | softfp)
2803                         # OK
2804                         ;;
2805                 *)
2806                         echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2807                         exit 1
2808                         ;;
2809                 esac
2810
2811                 case "$with_fpu" in
2812                 "" \
2813                 | fpa | fpe2 | fpe3 | maverick | vfp | vfp3 | neon )
2814                         # OK
2815                         ;;
2816                 *)
2817                         echo "Unknown fpu used in --with-fpu=$with_fpu" 2>&1
2818                         exit 1
2819                         ;;
2820                 esac
2821
2822                 case "$with_abi" in
2823                 "" \
2824                 | apcs-gnu | atpcs | aapcs | iwmmxt | aapcs-linux )
2825                         #OK
2826                         ;;
2827                 *)
2828                         echo "Unknown ABI used in --with-abi=$with_abi"
2829                         exit 1
2830                         ;;
2831                 esac
2832
2833                 case "$with_mode" in
2834                 "" \
2835                 | arm | thumb )
2836                         #OK
2837                         ;;
2838                 *)
2839                         echo "Unknown mode used in --with-mode=$with_mode"
2840                         exit 1
2841                         ;;
2842                 esac
2843
2844                 if test "x$with_arch" != x && test "x$with_cpu" != x; then
2845                         echo "Warning: --with-arch overrides --with-cpu=$with_cpu" 1>&2
2846                 fi
2847                 ;;
2848
2849         fr*-*-*linux*)
2850                 supported_defaults=cpu
2851                 case "$with_cpu" in
2852                 fr400) ;;
2853                 fr550) ;;
2854                 *)
2855                         echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
2856                         exit 1
2857                         ;;
2858                 esac
2859                 ;;
2860
2861         fido-*-* | m68k*-*-*)
2862                 supported_defaults="arch cpu"
2863                 case "$with_arch" in
2864                 "" | "m68k"| "cf")
2865                         m68k_arch_family="$with_arch"
2866                         ;;
2867                 *)
2868                         echo "Invalid --with-arch=$with_arch" 1>&2
2869                         exit 1
2870                         ;;
2871                 esac
2872
2873                 # We always have a $with_cpu setting here.
2874                 case "$with_cpu" in
2875                 "m68000" | "m68010" | "m68020" | "m68030" | "m68040" | "m68060")
2876                         m68k_cpu_ident=$with_cpu
2877                         ;;
2878                 "m68020-40")
2879                         m68k_cpu_ident=m68020
2880                         tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_40"
2881                         ;;
2882                 "m68020-60")
2883                         m68k_cpu_ident=m68020
2884                         tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_60"
2885                         ;;
2886                 *)
2887                         # We need the C identifier rather than the string.
2888                         m68k_cpu_ident=`awk -v arg="\"$with_cpu\"" \
2889                            'BEGIN { FS="[ \t]*[,()][ \t]*" }; \
2890                             $1 == "M68K_DEVICE" && $2 == arg { print $3 }' \
2891                                  ${srcdir}/config/m68k/m68k-devices.def`
2892                         if [ x"$m68k_cpu_ident" = x ] ; then
2893                                 echo "Unknown CPU used in --with-cpu=$with_cpu" 1>&2
2894                                 exit 1
2895                         fi
2896                         with_cpu="mcpu=$with_cpu"
2897                         ;;
2898                 esac
2899                 ;;
2900
2901         hppa*-*-*)
2902                 supported_defaults="arch schedule"
2903
2904                 case "$with_arch" in
2905                 "" | 1.0 | 1.1 | 2.0)
2906                         # OK
2907                         ;;
2908                 *)
2909                         echo "Unknown architecture used in --with-arch=$with_arch" 1>&2
2910                         exit 1
2911                         ;;
2912                 esac
2913
2914                 case "$with_schedule" in
2915                 "" | 700 | 7100 | 7100LC | 7200 | 7300 | 8000)
2916                         # OK
2917                         ;;
2918                 *)
2919                         echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2
2920                         exit 1
2921                         ;;
2922                 esac
2923                 ;;
2924
2925         i[34567]86-*-* | x86_64-*-*)
2926                 supported_defaults="arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64"
2927                 for which in arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64; do
2928                         eval "val=\$with_$which"
2929                         case ${val} in
2930                         i386 | i486 \
2931                         | i586 | pentium | pentium-mmx | winchip-c6 | winchip2 \
2932                         | c3 | c3-2 | i686 | pentiumpro | pentium2 | pentium3 \
2933                         | pentium4 | k6 | k6-2 | k6-3 | athlon | athlon-tbird \
2934                         | athlon-4 | athlon-xp | athlon-mp | geode \
2935                         | prescott | pentium-m | pentium4m | pentium3m)
2936                                 case "${target}" in
2937                                   x86_64-*-*)
2938                                       case "x$which" in
2939                                         *_32)
2940                                                 ;;
2941                                         *)
2942                                                 echo "CPU given in --with-$which=$val doesn't support 64bit mode." 1>&2
2943                                                 exit 1
2944                                                 ;;
2945                                       esac
2946                                       ;;
2947                                 esac
2948                                 # OK
2949                                 ;;
2950                         "" | amdfam10 | barcelona | k8 | opteron | athlon64 | athlon-fx | nocona | core2 | atom | generic)
2951                                 # OK
2952                                 ;;
2953                         *)
2954                                 echo "Unknown CPU given in --with-$which=$val." 1>&2
2955                                 exit 1
2956                                 ;;
2957                         esac
2958                 done
2959                 ;;
2960
2961         mips*-*-*)
2962                 supported_defaults="abi arch arch_32 arch_64 float tune tune_32 tune_64 divide llsc mips-plt synci"
2963
2964                 case ${with_float} in
2965                 "" | soft | hard)
2966                         # OK
2967                         ;;
2968                 *)
2969                         echo "Unknown floating point type used in --with-float=$with_float" 1>&2
2970                         exit 1
2971                         ;;
2972                 esac
2973
2974                 case ${with_abi} in
2975                 "" | 32 | o64 | n32 | 64 | eabi)
2976                         # OK
2977                         ;;
2978                 *)
2979                         echo "Unknown ABI used in --with-abi=$with_abi" 1>&2
2980                         exit 1
2981                         ;;
2982                 esac
2983
2984                 case ${with_divide} in
2985                 "" | breaks | traps)
2986                         # OK
2987                         ;;
2988                 *)
2989                         echo "Unknown division check type use in --with-divide=$with_divide" 1>&2
2990                         exit 1
2991                         ;;
2992                 esac
2993
2994                 case ${with_llsc} in
2995                 yes)
2996                         with_llsc=llsc
2997                         ;;
2998                 no)
2999                         with_llsc="no-llsc"
3000                         ;;
3001                 "")
3002                         # OK
3003                         ;;
3004                 *)
3005                         echo "Unknown llsc type used in --with-llsc" 1>&2
3006                         exit 1
3007                         ;;
3008                 esac
3009
3010                 case ${with_mips_plt} in
3011                 yes)
3012                         with_mips_plt=plt
3013                         ;;
3014                 no)
3015                         with_mips_plt=no-plt
3016                         ;;
3017                 "")
3018                         ;;
3019                 *)
3020                         echo "Unknown --with-mips-plt argument: $with_mips_plt" 1>&2
3021                         exit 1
3022                         ;;
3023                 esac
3024
3025                 case ${with_synci} in
3026                 yes)
3027                         with_synci=synci
3028                         ;;
3029                 "" | no)
3030                         # No is the default.
3031                         with_synci=no-synci
3032                         ;;
3033                 *)
3034                         echo "Unknown synci type used in --with-synci" 1>&2
3035                         exit 1
3036                         ;;
3037                 esac
3038                 ;;
3039
3040         powerpc*-*-* | rs6000-*-*)
3041                 supported_defaults="cpu cpu_32 cpu_64 float tune tune_32 tune_64"
3042
3043                 for which in cpu cpu_32 cpu_64 tune tune_32 tune_64; do
3044                         eval "val=\$with_$which"
3045                         case ${val} in
3046                         default32 | default64)
3047                                 case $which in
3048                                 cpu | tune)
3049                                         ;;
3050                                 *)
3051                                         echo "$val only valid for --with-cpu and --with-tune." 1>&2
3052                                         exit 1
3053                                         ;;
3054                                 esac
3055                                 with_which="with_$which"
3056                                 eval $with_which=
3057                                 ;;
3058                         405cr)
3059                                 tm_defines="${tm_defines} CONFIG_PPC405CR"
3060                                 eval "with_$which=405"
3061                                 ;;
3062                         "" | common \
3063                         | power | power[234567] | power6x | powerpc | powerpc64 \
3064                         | rios | rios1 | rios2 | rsc | rsc1 | rs64a \
3065                         | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \
3066                         | 505 | 601 | 602 | 603 | 603e | ec603e | 604 \
3067                         | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \
3068                         | e300c[23] | 854[08] | e500mc \
3069                         | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5 | cell)
3070                                 # OK
3071                                 ;;
3072                         *)
3073                                 echo "Unknown cpu used in --with-$which=$val." 1>&2
3074                                 exit 1
3075                                 ;;
3076                         esac
3077                 done
3078                 ;;
3079
3080         s390*-*-*)
3081                 supported_defaults="arch mode tune"
3082
3083                 for which in arch tune; do
3084                         eval "val=\$with_$which"
3085                         case ${val} in
3086                         "" | g5 | g6 | z900 | z990 | z9-109 | z9-ec | z10)
3087                                 # OK
3088                                 ;;
3089                         *)
3090                                 echo "Unknown cpu used in --with-$which=$val." 1>&2
3091                                 exit 1
3092                                 ;;
3093                         esac
3094                 done
3095
3096                 case ${with_mode} in
3097                 "" | esa | zarch)
3098                         # OK
3099                         ;;
3100                 *)
3101                         echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2
3102                         exit 1
3103                         ;;
3104                 esac
3105                 ;;
3106
3107         sh[123456ble]-*-* | sh-*-*)
3108                 supported_defaults="cpu"
3109                 case "`echo $with_cpu | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz- | sed s/sh/m/`" in
3110                 "" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu )
3111                         # OK
3112                         ;;
3113                 m2a | m2a-single | m2a-single-only | m2a-nofpu)
3114                         ;;
3115                 m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al)
3116                         ;;
3117                 *)
3118                         echo "Unknown CPU used in --with-cpu=$with_cpu, known values:"  1>&2
3119                         echo "m1 m2 m2e m3 m3e m4 m4-single m4-single-only m4-nofpu" 1>&2
3120                         echo "m4a m4a-single m4a-single-only m4a-nofpu m4al" 1>&2
3121                         echo "m2a m2a-single m2a-single-only m2a-nofpu" 1>&2
3122                         exit 1
3123                         ;;
3124                 esac
3125                 ;;
3126         sparc*-*-*)
3127                 supported_defaults="cpu float tune"
3128
3129                 for which in cpu tune; do
3130                         eval "val=\$with_$which"
3131                         case ${val} in
3132                         "" | sparc | sparcv9 | sparc64 | sparc86x \
3133                         | v7 | cypress | v8 | supersparc | sparclite | f930 \
3134                         | f934 | hypersparc | sparclite86x | sparclet | tsc701 \
3135                         | v9 | ultrasparc | ultrasparc3 | niagara | niagara2)
3136                                 # OK
3137                                 ;;
3138                         *)
3139                                 echo "Unknown cpu used in --with-$which=$val" 1>&2
3140                                 exit 1
3141                                 ;;
3142                         esac
3143                 done
3144
3145                 case ${with_float} in
3146                 "" | soft | hard)
3147                         # OK
3148                         ;;
3149                 *)
3150                         echo "Unknown floating point type used in --with-float=$with_float" 1>&2
3151                         exit 1
3152                         ;;
3153                 esac
3154                 ;;
3155
3156         spu-*-*)
3157                 supported_defaults="arch tune"
3158
3159                 for which in arch tune; do
3160                         eval "val=\$with_$which"
3161                         case ${val} in
3162                         "" | cell | celledp)
3163                                 # OK
3164                                 ;;
3165                         *)
3166                                 echo "Unknown cpu used in --with-$which=$val." 1>&2
3167                                 exit 1
3168                                 ;;
3169                         esac
3170                 done
3171                 ;;
3172
3173         v850*-*-*)
3174                 supported_defaults=cpu
3175                 case ${with_cpu} in
3176                 "" | v850e | v850e1)
3177                         # OK
3178                         ;;
3179                 *)
3180                         echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
3181                         exit 1
3182                         ;;
3183                 esac
3184                 ;;
3185 esac
3186
3187 # Set some miscellaneous flags for particular targets.
3188 target_cpu_default2=
3189 case ${target} in
3190         alpha*-*-*)
3191                 if test x$gas = xyes
3192                 then
3193                         target_cpu_default2="MASK_GAS"
3194                 fi
3195                 ;;
3196
3197         arm*-*-*)
3198                 if test x$target_cpu_cname = x
3199                 then
3200                         target_cpu_default2=TARGET_CPU_generic
3201                 else
3202                         target_cpu_default2=TARGET_CPU_$target_cpu_cname
3203                 fi
3204                 ;;
3205
3206         hppa*-*-*)
3207                 target_cpu_default2="MASK_BIG_SWITCH"
3208                 if test x$gas = xyes
3209                 then
3210                         target_cpu_default2="${target_cpu_default2}|MASK_GAS|MASK_JUMP_IN_DELAY"
3211                 fi
3212                 ;;
3213
3214         fido*-*-* | m68k*-*-*)
3215                 target_cpu_default2=$m68k_cpu_ident
3216                 if [ x"$m68k_arch_family" != x ]; then
3217                         tmake_file="m68k/t-$m68k_arch_family $tmake_file"
3218                 fi
3219                 ;;
3220
3221         i[34567]86-*-darwin* | x86_64-*-darwin*)
3222                 tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp"
3223                 ;;
3224         i[34567]86-*-linux* | x86_64-*-linux* | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu)
3225                 tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp i386/t-linux"
3226                 ;;
3227         i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
3228                 tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp"
3229                 ;;
3230         ia64*-*-linux*)
3231                 tmake_file="${tmake_file} ia64/t-fprules-softfp soft-fp/t-softfp"
3232                 ;;
3233
3234         mips*-*-*)
3235                 if test x$gnu_ld = xyes
3236                 then
3237                         target_cpu_default2="MASK_SPLIT_ADDRESSES"