OSDN Git Service

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