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