OSDN Git Service

2011-08-22 Matthias Klose <doko@debian.org>
[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 sol2-cxx.o"
722   extra_objs="sol2.o sol2-stubs.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         fi
1858         case ${target} in
1859         mipsisa32r2*)
1860                 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33"
1861                 ;;
1862         mipsisa32*)
1863                 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32"
1864         esac
1865         extra_parts="$extra_parts crtfastmath.o"
1866         test x$with_llsc != x || with_llsc=yes
1867         ;;
1868 mips*-*-openbsd*)
1869         tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_OBJECT OBSD_HAS_CORRECT_SPECS"
1870         target_cpu_default="MASK_ABICALLS"
1871         tm_file="mips/mips.h openbsd.h openbsd-stdint.h openbsd-libpthread.h mips/openbsd.h mips/sdb.h"
1872         extra_options="${extra_options} openbsd.opt"
1873         case ${target} in
1874         mips*el-*-openbsd*)
1875             tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=0";;
1876         *)  tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=MASK_BIG_ENDIAN";;
1877         esac
1878         ;;
1879 mips*-sde-elf*)
1880         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/sde.h"
1881         tmake_file="mips/t-sde mips/t-libgcc-mips16"
1882         extra_options="${extra_options} mips/sde.opt"
1883         case "${with_newlib}" in
1884           yes)
1885             # newlib / libgloss.
1886             ;;
1887           *)
1888             # MIPS toolkit libraries.
1889             tm_file="$tm_file mips/sdemtk.h"
1890             tmake_file="$tmake_file mips/t-sdemtk"
1891             case ${enable_threads} in
1892               "" | yes | mipssde)
1893                 thread_file='mipssde'
1894                 ;;
1895             esac
1896             ;;
1897         esac
1898         case ${target} in
1899           mipsisa32r2*)
1900             tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32"
1901             ;;
1902           mipsisa32*)
1903             tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_32"
1904             ;;
1905           mipsisa64r2*)
1906             tm_defines="MIPS_ISA_DEFAULT=65 MIPS_ABI_DEFAULT=ABI_N32"
1907             ;;
1908           mipsisa64*)
1909             tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_N32"
1910             ;;
1911         esac
1912         ;;
1913 mipsisa32-*-elf* | mipsisa32el-*-elf* | \
1914 mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
1915 mipsisa64-*-elf* | mipsisa64el-*-elf* | \
1916 mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
1917         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
1918         tmake_file="mips/t-isa3264 mips/t-libgcc-mips16"
1919         case ${target} in
1920           mipsisa32r2*)
1921             tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33"
1922             ;;
1923           mipsisa32*)
1924             tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32"
1925             ;;
1926           mipsisa64r2*)
1927             tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65"
1928             ;;
1929           mipsisa64*)
1930             tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64"
1931             ;;
1932         esac
1933         case ${target} in
1934           mipsisa32*-*-elfoabi*)
1935             tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_32"
1936             tm_file="${tm_file} mips/elfoabi.h"
1937             ;;
1938           mipsisa64*-*-elfoabi*)
1939             tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_O64"
1940             tm_file="${tm_file} mips/elfoabi.h"
1941             ;;
1942           *-*-elf*)
1943             tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI"
1944             ;;
1945         esac
1946         ;;
1947 mipsisa64sr71k-*-elf*)
1948         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
1949         tmake_file=mips/t-sr71k
1950         target_cpu_default="MASK_64BIT|MASK_FLOAT64"
1951         tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
1952         ;;
1953 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
1954         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
1955         tmake_file="mips/t-elf mips/t-libgcc-mips16 mips/t-sb1"
1956         target_cpu_default="MASK_64BIT|MASK_FLOAT64"
1957         tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
1958         ;;
1959 mips-*-elf* | mipsel-*-elf*)
1960         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
1961         tmake_file="mips/t-elf mips/t-libgcc-mips16"
1962         ;;
1963 mips64-*-elf* | mips64el-*-elf*)
1964         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
1965         tmake_file="mips/t-elf mips/t-libgcc-mips16"
1966         target_cpu_default="MASK_64BIT|MASK_FLOAT64"
1967         tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1968         ;;
1969 mips64vr-*-elf* | mips64vrel-*-elf*)
1970         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/vr.h mips/elf.h"
1971         tmake_file=mips/t-vr
1972         tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI"
1973         ;;
1974 mips64orion-*-elf* | mips64orionel-*-elf*)
1975         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elforion.h mips/elf.h"
1976         tmake_file="mips/t-elf mips/t-libgcc-mips16"
1977         target_cpu_default="MASK_64BIT|MASK_FLOAT64"
1978         tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
1979         ;;
1980 mips*-*-rtems*)
1981         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/rtems.h rtems.h"
1982         tmake_file="mips/t-elf mips/t-libgcc-mips16 t-rtems mips/t-rtems"
1983         ;;
1984 mips-wrs-vxworks)
1985         tm_file="elfos.h ${tm_file} mips/elf.h vx-common.h vxworks.h mips/vxworks.h"
1986         tmake_file="${tmake_file} mips/t-vxworks"
1987         ;;
1988 mipstx39-*-elf* | mipstx39el-*-elf*)
1989         tm_file="elfos.h newlib-stdint.h ${tm_file} mips/r3900.h mips/elf.h"
1990         tmake_file="mips/t-r3900 mips/t-libgcc-mips16"
1991         ;;
1992 mmix-knuth-mmixware)
1993         tm_file="${tm_file} newlib-stdint.h"
1994         need_64bit_hwint=yes
1995         use_gcc_stdint=wrap
1996         ;;
1997 mn10300-*-*)
1998         tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
1999         if test x$stabs = xyes
2000         then
2001                 tm_file="${tm_file} dbx.h"
2002         fi
2003         use_collect2=no
2004         use_gcc_stdint=wrap
2005         ;;
2006 pdp11-*-*)
2007         tm_file="${tm_file} newlib-stdint.h"
2008         use_gcc_stdint=wrap
2009         ;;
2010 picochip-*)
2011         tm_file="${tm_file} newlib-stdint.h"
2012         use_gcc_stdint=wrap
2013         tmake_file="picochip/t-picochip t-pnt16-warn"
2014         ;;
2015 # port not yet contributed
2016 #powerpc-*-openbsd*)
2017 #       tmake_file="${tmake_file} rs6000/t-fprules"
2018 #       extra_headers=
2019 #       ;;
2020 powerpc-*-darwin*)
2021         extra_options="${extra_options} rs6000/darwin.opt"
2022         case ${target} in
2023           *-darwin1[0-9]* | *-darwin[8-9]*)
2024             tmake_file="${tmake_file} rs6000/t-darwin8"
2025             tm_file="${tm_file} rs6000/darwin8.h"
2026             ;;
2027           *-darwin7*)
2028             tm_file="${tm_file} rs6000/darwin7.h"
2029             ;;
2030           *-darwin[0-6]*)
2031             ;;
2032         esac
2033         tmake_file="${tmake_file} t-slibgcc-dummy"
2034         extra_headers=altivec.h
2035         ;;
2036 powerpc64-*-darwin*)
2037         extra_options="${extra_options} ${cpu_type}/darwin.opt"
2038         tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc-dummy"
2039         tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h"
2040         extra_headers=altivec.h
2041         ;;
2042 powerpc-*-freebsd*)
2043         tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
2044         tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
2045         tmake_file="${tmake_file} t-slibgcc-libgcc"
2046         extra_options="${extra_options} rs6000/sysv4.opt"
2047         ;;
2048 powerpc-*-netbsd*)
2049         tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
2050         extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
2051         tmake_file="${tmake_file} rs6000/t-netbsd"
2052         extra_options="${extra_options} rs6000/sysv4.opt"
2053         ;;
2054 powerpc-*-eabispe*)
2055         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"
2056         extra_options="${extra_options} rs6000/sysv4.opt"
2057         tmake_file="rs6000/t-spe rs6000/t-ppccomm"
2058         use_gcc_stdint=wrap
2059         ;;
2060 powerpc-*-eabisimaltivec*)
2061         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"
2062         extra_options="${extra_options} rs6000/sysv4.opt"
2063         tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
2064         use_gcc_stdint=wrap
2065         ;;
2066 powerpc-*-eabisim*)
2067         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"
2068         extra_options="${extra_options} rs6000/sysv4.opt"
2069         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
2070         use_gcc_stdint=wrap
2071         ;;
2072 powerpc-*-elf*)
2073         tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h"
2074         extra_options="${extra_options} rs6000/sysv4.opt"
2075         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
2076         ;;
2077 powerpc-*-eabialtivec*)
2078         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"
2079         extra_options="${extra_options} rs6000/sysv4.opt"
2080         tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
2081         use_gcc_stdint=wrap
2082         ;;
2083 powerpc-xilinx-eabi*)
2084         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"
2085         extra_options="${extra_options} rs6000/sysv4.opt rs6000/xilinx.opt"
2086         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm rs6000/t-xilinx"
2087         use_gcc_stdint=wrap
2088         ;;
2089 powerpc-*-eabi*)
2090         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"
2091         extra_options="${extra_options} rs6000/sysv4.opt"
2092         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
2093         use_gcc_stdint=wrap
2094         ;;
2095 powerpc-*-rtems*)
2096         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"
2097         extra_options="${extra_options} rs6000/sysv4.opt"
2098         tmake_file="rs6000/t-fprules rs6000/t-rtems t-rtems rs6000/t-ppccomm"
2099         ;;
2100 powerpc-*-linux* | powerpc64-*-linux*)
2101         tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h rs6000/sysv4.h"
2102         extra_options="${extra_options} rs6000/sysv4.opt"
2103         tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
2104         maybe_biarch=yes
2105         case ${target} in
2106             powerpc64-*-linux*spe* | powerpc64-*-linux*paired*)
2107                 echo "*** Configuration ${target} not supported" 1>&2
2108                 exit 1
2109                 ;;
2110             powerpc-*-linux*spe* | powerpc-*-linux*paired*)
2111                 maybe_biarch=
2112                 ;;
2113             powerpc64-*-linux*)
2114                 test x$with_cpu != x || cpu_is_64bit=yes
2115                 maybe_biarch=always
2116                 ;;
2117         esac
2118         case ${maybe_biarch}:${enable_targets}:${cpu_is_64bit} in
2119             always:* | yes:*powerpc64* | yes:all:* | yes:*:yes)
2120                 if test x$cpu_is_64bit = xyes; then
2121                     tm_file="${tm_file} rs6000/default64.h"
2122                 fi
2123                 tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h glibc-stdint.h"
2124                 tmake_file="$tmake_file rs6000/t-linux64"
2125                 extra_options="${extra_options} rs6000/linux64.opt"
2126                 ;;
2127             *)
2128                 tm_file="${tm_file} rs6000/linux.h glibc-stdint.h"
2129                 ;;
2130         esac
2131         tmake_file="${tmake_file} t-slibgcc-libgcc"
2132         case ${target} in
2133             powerpc*-*-linux*altivec*)
2134                 tm_file="${tm_file} rs6000/linuxaltivec.h" ;;
2135             powerpc*-*-linux*spe*)
2136                 tm_file="${tm_file} rs6000/linuxspe.h rs6000/e500.h" ;;
2137             powerpc*-*-linux*paired*)
2138                 tm_file="${tm_file} rs6000/750cl.h" ;;
2139         esac
2140         if test x${enable_secureplt} = xyes; then
2141                 tm_file="rs6000/secureplt.h ${tm_file}"
2142         fi
2143         ;;
2144 powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
2145         tm_file="${tm_file} elfos.h freebsd-spec.h rs6000/sysv4.h"
2146         tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
2147         extra_options="${extra_options} rs6000/sysv4.opt"
2148         extra_headers=ppc-asm.h
2149         case ${target} in
2150           *-vxworksae*)
2151             tm_file="${tm_file} vx-common.h vxworksae.h rs6000/vxworks.h rs6000/e500.h"
2152             tmake_file="${tmake_file} rs6000/t-vxworksae"
2153             ;;
2154           *-vxworks*)
2155             tm_file="${tm_file} vx-common.h vxworks.h rs6000/vxworks.h rs6000/e500.h"
2156             ;;
2157         esac
2158         ;;
2159 powerpc-*-lynxos*)
2160         xm_defines=POSIX
2161         tm_file="${tm_file} dbxelf.h elfos.h rs6000/sysv4.h rs6000/lynx.h lynx.h"
2162         tmake_file="t-lynx rs6000/t-lynx"
2163         extra_options="${extra_options} rs6000/sysv4.opt lynx.opt"
2164         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2165         thread_file=lynx
2166         gnu_ld=yes
2167         gas=yes
2168         ;;
2169 powerpcle-*-elf*)
2170         tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h"
2171         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
2172         extra_options="${extra_options} rs6000/sysv4.opt"
2173         ;;
2174 powerpcle-*-eabisim*)
2175         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"
2176         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
2177         extra_options="${extra_options} rs6000/sysv4.opt"
2178         use_gcc_stdint=wrap
2179         ;;
2180 powerpcle-*-eabi*)
2181         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"
2182         tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
2183         extra_options="${extra_options} rs6000/sysv4.opt"
2184         use_gcc_stdint=wrap
2185         ;;
2186 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2187         tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h rs6000/aix-stdint.h"
2188         tmake_file=rs6000/t-aix43
2189         extra_options="${extra_options} rs6000/aix64.opt"
2190         use_collect2=yes
2191         thread_file='aix'
2192         use_gcc_stdint=provide
2193         extra_headers=
2194         ;;
2195 rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
2196         tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h rs6000/aix-stdint.h"
2197         extra_options="${extra_options} rs6000/aix64.opt"
2198         tmake_file=rs6000/t-aix43
2199         use_collect2=yes
2200         thread_file='aix'
2201         use_gcc_stdint=wrap
2202         extra_headers=
2203         ;;
2204 rs6000-ibm-aix5.2.* | powerpc-ibm-aix5.2.*)
2205         tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h rs6000/aix-stdint.h"
2206         tmake_file=rs6000/t-aix52
2207         extra_options="${extra_options} rs6000/aix64.opt"
2208         use_collect2=yes
2209         thread_file='aix'
2210         use_gcc_stdint=wrap
2211         extra_headers=
2212         ;;
2213 rs6000-ibm-aix5.3.* | powerpc-ibm-aix5.3.*)
2214         tm_file="${tm_file} rs6000/aix.h rs6000/aix53.h rs6000/xcoff.h rs6000/aix-stdint.h"
2215         tmake_file=rs6000/t-aix52
2216         extra_options="${extra_options} rs6000/aix64.opt"
2217         use_collect2=yes
2218         thread_file='aix'
2219         use_gcc_stdint=wrap
2220         extra_headers=altivec.h
2221         ;;
2222 rs6000-ibm-aix[6789].* | powerpc-ibm-aix[6789].*)
2223         tm_file="${tm_file} rs6000/aix.h rs6000/aix61.h rs6000/xcoff.h rs6000/aix-stdint.h"
2224         tmake_file=rs6000/t-aix52
2225         extra_options="${extra_options} rs6000/aix64.opt"
2226         use_collect2=yes
2227         thread_file='aix'
2228         use_gcc_stdint=wrap
2229         extra_headers=altivec.h
2230         ;;
2231 rx-*-elf*)
2232         tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
2233         libgcc_tm_file="${libgcc_tm_file} rx/rx-abi.h rx/rx-lib.h"
2234         tmake_file="${tmake_file} rx/t-rx"
2235         ;;
2236 s390-*-linux*)
2237         tm_file="s390/s390.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h s390/linux.h"
2238         if test x$enable_targets = xall; then
2239                 tmake_file="${tmake_file} s390/t-linux64"
2240         fi
2241         ;;
2242 s390x-*-linux*)
2243         tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h s390/linux.h"
2244         tm_p_file=s390/s390-protos.h
2245         md_file=s390/s390.md
2246         extra_modes=s390/s390-modes.def
2247         out_file=s390/s390.c
2248         tmake_file="${tmake_file} s390/t-linux64"
2249         ;;
2250 s390x-ibm-tpf*)
2251         tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h s390/tpf.h"
2252         tm_p_file=s390/s390-protos.h
2253         md_file=s390/s390.md
2254         extra_modes=s390/s390-modes.def
2255         out_file=s390/s390.c
2256         extra_parts="crtbeginS.o crtendS.o"
2257         thread_file='tpf'
2258         extra_options="${extra_options} s390/tpf.opt"
2259         ;;
2260 score-*-elf)
2261         gas=yes
2262         gnu_ld=yes
2263         tm_file="dbxelf.h elfos.h score/elf.h score/score.h newlib-stdint.h"
2264         extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2265         tmake_file="${tmake_file} score/t-score-elf"
2266         ;;
2267 sh-*-elf* | sh[12346l]*-*-elf* | \
2268   sh-*-linux* | sh[2346lbe]*-*-linux* | \
2269   sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2270    sh64-*-netbsd* | sh64l*-*-netbsd*)
2271         tmake_file="${tmake_file} sh/t-sh sh/t-elf"
2272         if test x${with_endian} = x; then
2273                 case ${target} in
2274                 sh[1234]*be-*-* | sh[1234]*eb-*-*) with_endian=big ;;
2275                 shbe-*-* | sheb-*-*)               with_endian=big,little ;;
2276                 sh[1234]l* | sh[34]*-*-linux*)     with_endian=little ;;
2277                 shl* | sh64l* | sh*-*-linux* | \
2278                   sh5l* | sh-superh-elf)           with_endian=little,big ;;
2279                 sh[1234]*-*-*)                     with_endian=big ;;
2280                 *)                                 with_endian=big,little ;;
2281                 esac
2282         fi
2283         # TM_ENDIAN_CONFIG is used by t-sh to determine multilibs.
2284         #  First word : the default endian.
2285         #  Second word: the secondary endian (optional).
2286         case ${with_endian} in
2287         big)            TM_ENDIAN_CONFIG=mb ;;
2288         little)         TM_ENDIAN_CONFIG=ml ;;
2289         big,little)     TM_ENDIAN_CONFIG="mb ml" ;;
2290         little,big)     TM_ENDIAN_CONFIG="ml mb" ;;
2291         *)      echo "with_endian=${with_endian} not supported."; exit 1 ;;
2292         esac
2293         case ${with_endian} in
2294         little*)        tm_file="sh/little.h ${tm_file}" ;;
2295         esac
2296         tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h"
2297         case ${target} in
2298         sh*-*-linux*)   tmake_file="${tmake_file} sh/t-linux"
2299                         tm_file="${tm_file} gnu-user.h linux.h glibc-stdint.h sh/linux.h" ;;
2300         sh*-*-netbsd*)
2301                         tm_file="${tm_file} netbsd.h netbsd-elf.h sh/netbsd-elf.h"
2302                         extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
2303
2304                         ;;
2305         sh*-superh-elf) if test x$with_libgloss != xno; then
2306                                 with_libgloss=yes
2307                                 tm_file="${tm_file} sh/newlib.h"
2308                         fi
2309                         tm_file="${tm_file} sh/embed-elf.h"
2310                         tm_file="${tm_file} sh/superh.h"
2311                         tmake_file="${tmake_file} sh/t-superh"
2312                         extra_options="${extra_options} sh/superh.opt" ;;
2313         *)              if test x$with_newlib = xyes \
2314                            && test x$with_libgloss = xyes; then
2315                                 tm_file="${tm_file} sh/newlib.h"
2316                         fi
2317                         tm_file="${tm_file} sh/embed-elf.h" ;;
2318         esac
2319         case ${target} in
2320         sh5*-*-netbsd*)
2321                 # SHmedia, 32-bit ABI
2322                 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd"
2323                 ;;
2324         sh64*-netbsd*)
2325                 # SHmedia, 64-bit ABI
2326                 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd sh/t-netbsd-sh5-64"
2327                 ;;
2328         *-*-netbsd)
2329                 tmake_file="${tmake_file} sh/t-netbsd"
2330                 ;;
2331         sh64*-*-linux*)
2332                 tmake_file="${tmake_file} sh/t-sh64 sh/t-linux64"
2333                 tm_file="${tm_file} sh/sh64.h"
2334                 extra_headers="shmedia.h ushmedia.h sshmedia.h"
2335                 ;;
2336         sh64*)
2337                 tmake_file="${tmake_file} sh/t-sh64"
2338                 tm_file="${tm_file} sh/sh64.h"
2339                 if test x$with_newlib = xyes; then
2340                         tm_file="${tm_file} newlib-stdint.h"
2341                 fi
2342                 extra_headers="shmedia.h ushmedia.h sshmedia.h"
2343                 ;;
2344         *-*-elf*)
2345                 tm_file="${tm_file} newlib-stdint.h"
2346                 ;;
2347         esac
2348         # sed el/eb endian suffixes away to avoid confusion with sh[23]e
2349         case `echo ${target} | sed 's/e[lb]-/-/'` in
2350         sh64*-*-netbsd*)        sh_cpu_target=sh5-64media ;;
2351         sh64* | sh5*-*-netbsd*) sh_cpu_target=sh5-32media ;;
2352         sh4a_single_only*)      sh_cpu_target=sh4a-single-only ;;
2353         sh4a_single*)           sh_cpu_target=sh4a-single ;;
2354         sh4a_nofpu*)            sh_cpu_target=sh4a-nofpu ;;
2355         sh4al)                  sh_cpu_target=sh4al ;;
2356         sh4a*)                  sh_cpu_target=sh4a ;;
2357         sh4_single_only*)       sh_cpu_target=sh4-single-only ;;
2358         sh4_single*)            sh_cpu_target=sh4-single ;;
2359         sh4_nofpu*)             sh_cpu_target=sh4-nofpu ;;
2360         sh4* | sh-superh-*)     sh_cpu_target=sh4 ;;
2361         sh3e*)                  sh_cpu_target=sh3e ;;
2362         sh*-*-netbsd* | sh3*)   sh_cpu_target=sh3 ;;
2363         sh2a_single_only*)      sh_cpu_target=sh2a-single-only ;;
2364         sh2a_single*)           sh_cpu_target=sh2a-single ;;
2365         sh2a_nofpu*)            sh_cpu_target=sh2a-nofpu ;;
2366         sh2a*)                  sh_cpu_target=sh2a ;;
2367         sh2e*)                  sh_cpu_target=sh2e ;;
2368         sh2*)                   sh_cpu_target=sh2 ;;
2369         *)                      sh_cpu_target=sh1 ;;
2370         esac
2371         # did the user say --without-fp ?
2372         if test x$with_fp = xno; then
2373                 case ${sh_cpu_target} in
2374                 sh5-*media)     sh_cpu_target=${sh_cpu_target}-nofpu ;;
2375                 sh4al | sh1)    ;;
2376                 sh4a* )         sh_cpu_target=sh4a-nofpu ;;
2377                 sh4*)           sh_cpu_target=sh4-nofpu ;;
2378                 sh3*)           sh_cpu_target=sh3 ;;
2379                 sh2a*)          sh_cpu_target=sh2a-nofpu ;;
2380                 sh2*)           sh_cpu_target=sh2 ;;
2381                 *)      echo --without-fp not available for $target: ignored
2382                 esac
2383                 tm_defines="$tm_defines STRICT_NOFPU=1"
2384         fi
2385         sh_cpu_default="`echo $with_cpu|sed s/^m/sh/|tr A-Z_ a-z-`"
2386         case $sh_cpu_default in
2387         sh5-64media-nofpu | sh5-64media | \
2388           sh5-32media-nofpu | sh5-32media | sh5-compact-nofpu | sh5-compact | \
2389           sh2a-single-only | sh2a-single | sh2a-nofpu | sh2a | \
2390           sh4a-single-only | sh4a-single | sh4a-nofpu | sh4a | sh4al | \
2391           sh4-single-only | sh4-single | sh4-nofpu | sh4 | sh4-300 | \
2392           sh3e | sh3 | sh2e | sh2 | sh1) ;;
2393         "")     sh_cpu_default=${sh_cpu_target} ;;
2394         *)      echo "with_cpu=$with_cpu not supported"; exit 1 ;;
2395         esac
2396         sh_multilibs=${with_multilib_list}
2397         if test "$sh_multilibs" = "default" ; then
2398                 case ${target} in
2399                 sh64-superh-linux* | \
2400                 sh[1234]*)      sh_multilibs=${sh_cpu_target} ;;
2401                 sh64* | sh5*)   sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;;
2402                 sh-superh-*)    sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;;
2403                 sh*-*-linux*)   sh_multilibs=m1,m3e,m4 ;;
2404                 sh*-*-netbsd*)  sh_multilibs=m3,m3e,m4 ;;
2405                 *) sh_multilibs=m1,m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single ;;
2406                 esac
2407                 if test x$with_fp = xno; then
2408                         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`"
2409                 fi
2410         fi
2411         target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`
2412         tm_defines=${tm_defines}' SH_MULTILIB_CPU_DEFAULT=\"'`echo $sh_cpu_default|sed s/sh/m/`'\"'
2413         tm_defines="$tm_defines SUPPORT_`echo $sh_cpu_default | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1"
2414         sh_multilibs=`echo $sh_multilibs | sed -e 's/,/ /g' -e 's/^[Ss][Hh]/m/' -e 's/ [Ss][Hh]/ m/g' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz-`
2415         for sh_multilib in ${sh_multilibs}; do
2416                 case ${sh_multilib} in
2417                 m1 | m2 | m2e | m3 | m3e | \
2418                 m4 | m4-single | m4-single-only | m4-nofpu | m4-300 |\
2419                 m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al | \
2420                 m2a | m2a-single | m2a-single-only | m2a-nofpu | \
2421                 m5-64media | m5-64media-nofpu | \
2422                 m5-32media | m5-32media-nofpu | \
2423                 m5-compact | m5-compact-nofpu)
2424                         # TM_MULTILIB_CONFIG is used by t-sh for the non-endian multilib definition
2425                         # It is passed to MULTIILIB_OPTIONS verbatim.
2426                         TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG}/${sh_multilib}"
2427                         tm_defines="$tm_defines SUPPORT_`echo $sh_multilib | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1"
2428                         ;;
2429                 \!*)    # TM_MULTILIB_EXCEPTIONS_CONFIG is used by t-sh
2430                         # It is passed the MULTILIB_EXCEPTIONS verbatim.
2431                         TM_MULTILIB_EXCEPTIONS_CONFIG="${TM_MULTILIB_EXCEPTIONS_CONFIG} `echo $sh_multilib | sed 's/^!//'`" ;;
2432                 *)
2433                         echo "with_multilib_list=${sh_multilib} not supported."
2434                         exit 1
2435                         ;;
2436                 esac
2437         done
2438         TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's:^/::'`
2439         if test x${enable_incomplete_targets} = xyes ; then
2440                 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"
2441         fi
2442         tm_file="$tm_file ./sysroot-suffix.h"
2443         tmake_file="$tmake_file t-sysroot-suffix"
2444         ;;
2445 sh-*-rtems*)
2446         tmake_file="sh/t-sh sh/t-elf t-rtems sh/t-rtems"
2447         tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h newlib-stdint.h"
2448         ;;
2449 sh-wrs-vxworks)
2450         tmake_file="$tmake_file sh/t-sh sh/t-elf sh/t-vxworks"
2451         tm_file="${tm_file} elfos.h sh/elf.h sh/embed-elf.h vx-common.h vxworks.h sh/vxworks.h"
2452         ;;
2453 sparc-*-elf*)
2454         tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp-elf.h"
2455         case ${target} in
2456             *-leon-*)
2457                 tmake_file="sparc/t-leon"
2458                 ;;
2459             *-leon[3-9]*)
2460                 tmake_file="sparc/t-leon3"
2461                 ;;
2462             *)
2463                 tmake_file="sparc/t-elf"
2464                 ;;
2465         esac
2466         ;;
2467 sparc-*-rtems*)
2468         tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h"
2469         tmake_file="sparc/t-elf t-rtems"
2470         ;;
2471 sparc-*-linux*)
2472         tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h"
2473         extra_options="${extra_options} sparc/long-double-switch.opt"
2474         case ${target} in
2475             *-leon-*)
2476                 tmake_file="${tmake_file} sparc/t-leon"
2477                 ;;
2478             *-leon[3-9]*)
2479                 tmake_file="${tmake_file} sparc/t-leon3"
2480                 ;;
2481             *)
2482                 tmake_file="${tmake_file} sparc/t-linux"
2483                 ;;
2484         esac
2485         if test x$enable_targets = xall; then
2486                 tm_file="sparc/biarch64.h ${tm_file} sparc/linux64.h"
2487                 tmake_file="${tmake_file} sparc/t-linux64"
2488         else
2489                 tm_file="${tm_file} sparc/linux.h"
2490         fi
2491         extra_parts="${extra_parts} crtfastmath.o"
2492         ;;
2493 sparc-*-netbsdelf*)
2494         tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2495         extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
2496         extra_options="${extra_options} sparc/long-double-switch.opt"
2497         ;;
2498 sparc*-*-solaris2*)
2499         tm_file="sparc/biarch64.h ${tm_file} ${sol2_tm_file} sol2-bi.h"
2500         case ${target} in
2501             sparc64-*-* | sparcv9-*-*)
2502                 tm_file="sparc/sol2-64.h ${tm_file}"
2503                 ;;
2504             *)
2505                 test x$with_cpu != x || with_cpu=v9
2506                 ;;
2507         esac
2508         tmake_file="${tmake_file} sparc/t-sol2-64"
2509         ;;
2510 sparc-wrs-vxworks)
2511         tm_file="${tm_file} elfos.h sparc/sysv4.h vx-common.h vxworks.h sparc/vxworks.h"
2512         tmake_file="${tmake_file} sparc/t-vxworks"
2513         ;;
2514 sparc64-*-elf*)
2515         tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h"
2516         extra_options="${extra_options} sparc/little-endian.opt"
2517         ;;
2518 sparc64-*-rtems*)
2519         tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h sparc/rtemself.h rtems.h"
2520         extra_options="${extra_options} sparc/little-endian.opt"
2521         tmake_file="${tmake_file} t-rtems"
2522         ;;
2523 sparc64-*-linux*)
2524         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"
2525         extra_options="${extra_options} sparc/long-double-switch.opt"
2526         tmake_file="${tmake_file} sparc/t-linux sparc/t-linux64"
2527         extra_parts="${extra_parts} crtfastmath.o"
2528         ;;
2529 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
2530         tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
2531         extra_options="${extra_options} sparc/long-double-switch.opt"
2532         case "x$with_cpu" in
2533                 xultrasparc) ;;
2534                 x) with_cpu=ultrasparc ;;
2535                 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
2536         esac
2537         extra_parts="${extra_parts} crtfastmath.o"
2538         ;;
2539 sparc64-*-netbsd*)
2540         tm_file="sparc/biarch64.h ${tm_file}"
2541         tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2542         extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
2543         extra_options="${extra_options} sparc/long-double-switch.opt"
2544         tmake_file="${tmake_file} sparc/t-netbsd64"
2545         ;;
2546 sparc64-*-openbsd*)
2547         tm_file="sparc/openbsd1-64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp64-elf.h"
2548         tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h sparc/openbsd64.h"
2549         extra_options="${extra_options} openbsd.opt"
2550         extra_options="${extra_options} sparc/little-endian.opt"
2551         gas=yes gnu_ld=yes
2552         with_cpu=ultrasparc
2553         ;;
2554 spu-*-elf*)
2555         tm_file="dbxelf.h elfos.h spu/spu-elf.h spu/spu.h newlib-stdint.h"
2556         tmake_file="spu/t-spu-elf"
2557         extra_headers="spu_intrinsics.h spu_internals.h vmx2spu.h spu_mfcio.h vec_types.h spu_cache.h"
2558         extra_modes=spu/spu-modes.def
2559         c_target_objs="${c_target_objs} spu-c.o"
2560         cxx_target_objs="${cxx_target_objs} spu-c.o"
2561         ;;
2562 tic6x-*-elf)
2563         tm_file="elfos.h ${tm_file} c6x/elf-common.h c6x/elf.h"
2564         tm_file="${tm_file} dbxelf.h tm-dwarf2.h newlib-stdint.h"
2565         libgcc_tm_file="${libgcc_tm_file} c6x/c6x-abi.h"
2566         tmake_file="c6x/t-c6x c6x/t-c6x-elf"
2567         use_collect2=no
2568         ;;
2569 tic6x-*-uclinux)
2570         tm_file="elfos.h ${tm_file} gnu-user.h linux.h c6x/elf-common.h c6x/uclinux-elf.h"
2571         tm_file="${tm_file} dbxelf.h tm-dwarf2.h glibc-stdint.h"
2572         tm_file="${tm_file} ./sysroot-suffix.h"
2573         libgcc_tm_file="${libgcc_tm_file} c6x/c6x-abi.h"
2574         tmake_file="t-slibgcc-elf-ver t-sysroot-suffix"
2575         tmake_file="${tmake_file} c6x/t-c6x c6x/t-c6x-elf c6x/t-c6x-uclinux"
2576         use_collect2=no
2577         ;;
2578 v850*-*-*)
2579         case ${target} in
2580         v850e2v3-*-*)
2581                 target_cpu_default="TARGET_CPU_v850e2v3"
2582                 ;;
2583         v850e2-*-*)
2584                 target_cpu_default="TARGET_CPU_v850e2"
2585                 ;;
2586         v850e1-*-* | v850es-*-*)
2587                 target_cpu_default="TARGET_CPU_v850e1"
2588                 ;;
2589         v850e-*-*)
2590                 target_cpu_default="TARGET_CPU_v850e"
2591                 ;;
2592         v850-*-*)
2593                 target_cpu_default="TARGET_CPU_generic"
2594                 ;;
2595         esac
2596         tm_file="dbxelf.h elfos.h newlib-stdint.h v850/v850.h"
2597         if test x$stabs = xyes
2598         then
2599                 tm_file="${tm_file} dbx.h"
2600         fi
2601         use_collect2=no
2602         c_target_objs="v850-c.o"
2603         cxx_target_objs="v850-c.o"
2604         use_gcc_stdint=wrap
2605         ;;
2606 vax-*-linux*)
2607         tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h vax/elf.h vax/linux.h"
2608         extra_options="${extra_options} vax/elf.opt"
2609         tmake_file="${tmake_file} vax/t-linux"
2610         ;;
2611 vax-*-netbsdelf*)
2612         tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
2613         extra_options="${extra_options} netbsd.opt netbsd-elf.opt vax/elf.opt"
2614         ;;
2615 vax-*-openbsd*)
2616         tm_file="vax/vax.h vax/openbsd1.h openbsd.h openbsd-stdint.h openbsd-pthread.h vax/openbsd.h"
2617         extra_options="${extra_options} openbsd.opt"
2618         use_collect2=yes
2619         ;;
2620 xstormy16-*-elf)
2621         # For historical reasons, the target files omit the 'x'.
2622         tm_file="dbxelf.h elfos.h newlib-stdint.h stormy16/stormy16.h"
2623         tm_p_file=stormy16/stormy16-protos.h
2624         md_file=stormy16/stormy16.md
2625         out_file=stormy16/stormy16.c
2626         extra_options=stormy16/stormy16.opt
2627         tmake_file="stormy16/t-stormy16"
2628         extra_parts="crtbegin.o crtend.o"
2629         ;;
2630 xtensa*-*-elf*)
2631         tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h xtensa/elf.h"
2632         extra_options="${extra_options} xtensa/elf.opt"
2633         tmake_file="xtensa/t-xtensa xtensa/t-elf"
2634         ;;
2635 xtensa*-*-linux*)
2636         tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h xtensa/linux.h"
2637         tmake_file="${tmake_file} xtensa/t-xtensa xtensa/t-linux"
2638         ;;
2639 am33_2.0-*-linux*)
2640         tm_file="mn10300/mn10300.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h mn10300/linux.h"
2641         gas=yes gnu_ld=yes
2642         extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2643         use_collect2=no
2644         ;;
2645 m32c-*-rtems*)
2646         tm_file="dbxelf.h elfos.h ${tm_file} m32c/rtems.h rtems.h newlib-stdint.h"
2647         tmake_file="${tmake_file} t-rtems"
2648         c_target_objs="m32c-pragma.o"
2649         cxx_target_objs="m32c-pragma.o"
2650         ;;
2651 m32c-*-elf*)
2652         tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
2653         c_target_objs="m32c-pragma.o"
2654         cxx_target_objs="m32c-pragma.o"
2655         ;;
2656 *)
2657         echo "*** Configuration ${target} not supported" 1>&2
2658         exit 1
2659         ;;
2660 esac
2661
2662 case ${target} in
2663 i[34567]86-*-linux* | x86_64-*-linux*)
2664         tmake_file="${tmake_file} i386/t-pmm_malloc i386/t-i386"
2665         libgcc_tm_file="${libgcc_tm_file} i386/value-unwind.h"
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 # Support --enable-initfini-array.
3061 if test x$enable_initfini_array = xyes; then
3062   tm_file="${tm_file} initfini-array.h"
3063 fi
3064
3065 # Validate and mark as valid any --with options supported
3066 # by this target.  In order to use a particular --with option
3067 # you must list it in supported_defaults; validating the value
3068 # is optional.  This case statement should set nothing besides
3069 # supported_defaults.
3070
3071 supported_defaults=
3072 case "${target}" in
3073         alpha*-*-*)
3074                 supported_defaults="cpu tune"
3075                 for which in cpu tune; do
3076                         eval "val=\$with_$which"
3077                         case "$val" in
3078                         "" \
3079                         | ev4 | ev45 | 21064 | ev5 | 21164 | ev56 | 21164a \
3080                         | pca56 | 21164PC | 21164pc | ev6 | 21264 | ev67 \
3081                         | 21264a)
3082                                 ;;
3083                         *)
3084                                 echo "Unknown CPU used in --with-$which=$val" 1>&2
3085                                 exit 1
3086                                 ;;
3087                         esac
3088                 done
3089                 ;;
3090
3091         arm*-*-*)
3092                 supported_defaults="arch cpu float tune fpu abi mode tls"
3093                 for which in cpu tune; do
3094                         # See if it matches any of the entries in arm-cores.def
3095                         eval "val=\$with_$which"
3096                         if [ x"$val" = x ] \
3097                             || grep "^ARM_CORE(\"$val\"," \
3098                                     ${srcdir}/config/arm/arm-cores.def \
3099                                     > /dev/null; then
3100                           # Ok
3101                           new_val=`grep "^ARM_CORE(\"$val\"," \
3102                                 ${srcdir}/config/arm/arm-cores.def | \
3103                                 sed -e 's/^[^,]*,[      ]*//' | \
3104                                 sed -e 's/,.*$//'`
3105                           eval "target_${which}_cname=$new_val"
3106                         echo "For $val real value is $new_val"
3107                           true
3108                         else
3109                           echo "Unknown CPU used in --with-$which=$val" 1>&2
3110                           exit 1
3111                         fi
3112                 done
3113
3114                 case "$with_arch" in
3115                 "" \
3116                 | armv[23456] | armv2a | armv3m | armv4t | armv5t \
3117                 | armv5te | armv6j |armv6k | armv6z | armv6zk | armv6-m \
3118                 | armv7 | armv7-a | armv7-r | armv7-m \
3119                 | iwmmxt | ep9312)
3120                         # OK
3121                         ;;
3122                 *)
3123                         echo "Unknown arch used in --with-arch=$with_arch" 1>&2
3124                         exit 1
3125                         ;;
3126                 esac
3127
3128                 case "$with_float" in
3129                 "" \
3130                 | soft | hard | softfp)
3131                         # OK
3132                         ;;
3133                 *)
3134                         echo "Unknown floating point type used in --with-float=$with_float" 1>&2
3135                         exit 1
3136                         ;;
3137                 esac
3138
3139                 case "$with_fpu" in
3140                 "" \
3141                 | fpa | fpe2 | fpe3 | maverick | vfp | vfp3 | vfpv3 \
3142                 | vfpv3-fp16 | vfpv3-d16 | vfpv3-d16-fp16 | vfpv3xd \
3143                 | vfpv3xd-fp16 | neon | neon-fp16 | vfpv4 | vfpv4-d16 \
3144                 | fpv4-sp-d16 | neon-vfpv4)
3145                         # OK
3146                         ;;
3147                 *)
3148                         echo "Unknown fpu used in --with-fpu=$with_fpu" 2>&1
3149                         exit 1
3150                         ;;
3151                 esac
3152
3153                 case "$with_abi" in
3154                 "" \
3155                 | apcs-gnu | atpcs | aapcs | iwmmxt | aapcs-linux )
3156                         #OK
3157                         ;;
3158                 *)
3159                         echo "Unknown ABI used in --with-abi=$with_abi"
3160                         exit 1
3161                         ;;
3162                 esac
3163
3164                 case "$with_mode" in
3165                 "" \
3166                 | arm | thumb )
3167                         #OK
3168                         ;;
3169                 *)
3170                         echo "Unknown mode used in --with-mode=$with_mode"
3171                         exit 1
3172                         ;;
3173                 esac
3174
3175                 case "$with_tls" in
3176                 "" \
3177                 | gnu | gnu2)
3178                         # OK
3179                         ;;
3180                 *)
3181                         echo "Unknown TLS method used in --with-tls=$with_tls" 1>&2
3182                         exit 1
3183                         ;;
3184                 esac
3185
3186                 if test "x$with_arch" != x && test "x$with_cpu" != x; then
3187                         echo "Warning: --with-arch overrides --with-cpu=$with_cpu" 1>&2
3188                 fi
3189                 ;;
3190
3191         fr*-*-*linux*)
3192                 supported_defaults=cpu
3193                 case "$with_cpu" in
3194                 fr400) ;;
3195                 fr550) ;;
3196                 *)
3197                         echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
3198                         exit 1
3199                         ;;
3200                 esac
3201                 ;;
3202
3203         fido-*-* | m68k*-*-*)
3204                 supported_defaults="arch cpu"
3205                 case "$with_arch" in
3206                 "" | "m68k"| "cf")
3207                         m68k_arch_family="$with_arch"
3208                         ;;
3209                 *)
3210                         echo "Invalid --with-arch=$with_arch" 1>&2
3211                         exit 1
3212                         ;;
3213                 esac
3214
3215                 # We always have a $with_cpu setting here.
3216                 case "$with_cpu" in
3217                 "m68000" | "m68010" | "m68020" | "m68030" | "m68040" | "m68060")
3218                         m68k_cpu_ident=$with_cpu
3219                         ;;
3220                 "m68020-40")
3221                         m68k_cpu_ident=m68020
3222                         tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_40"
3223                         ;;
3224                 "m68020-60")
3225                         m68k_cpu_ident=m68020
3226                         tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_60"
3227                         ;;
3228                 *)
3229                         # We need the C identifier rather than the string.
3230                         m68k_cpu_ident=`awk -v arg="\"$with_cpu\"" \
3231                            'BEGIN { FS="[ \t]*[,()][ \t]*" }; \
3232                             $1 == "M68K_DEVICE" && $2 == arg { print $3 }' \
3233                                  ${srcdir}/config/m68k/m68k-devices.def`
3234                         if [ x"$m68k_cpu_ident" = x ] ; then
3235                                 echo "Unknown CPU used in --with-cpu=$with_cpu" 1>&2
3236                                 exit 1
3237                         fi
3238                         with_cpu="mcpu=$with_cpu"
3239                         ;;
3240                 esac
3241                 ;;
3242
3243         hppa*-*-*)
3244                 supported_defaults="arch schedule"
3245
3246                 case "$with_arch" in
3247                 "" | 1.0 | 1.1 | 2.0)
3248                         # OK
3249                         ;;
3250                 *)
3251                         echo "Unknown architecture used in --with-arch=$with_arch" 1>&2
3252                         exit 1
3253                         ;;
3254                 esac
3255
3256                 case "$with_schedule" in
3257                 "" | 700 | 7100 | 7100LC | 7200 | 7300 | 8000)
3258                         # OK
3259                         ;;
3260                 *)
3261                         echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2
3262                         exit 1
3263                         ;;
3264                 esac
3265                 ;;
3266
3267         i[34567]86-*-* | x86_64-*-*)
3268                 supported_defaults="arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64"
3269                 for which in arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64; do
3270                         eval "val=\$with_$which"
3271                         case ${val} in
3272                         i386 | i486 \
3273                         | i586 | pentium | pentium-mmx | winchip-c6 | winchip2 \
3274                         | c3 | c3-2 | i686 | pentiumpro | pentium2 | pentium3 \
3275                         | pentium4 | k6 | k6-2 | k6-3 | athlon | athlon-tbird \
3276                         | athlon-4 | athlon-xp | athlon-mp | geode \
3277                         | prescott | pentium-m | pentium4m | pentium3m)
3278                                 case "${target}" in
3279                                   x86_64-*-*)
3280                                       case "x$which" in
3281                                         *_32)
3282                                                 ;;
3283                                         *)
3284                                                 echo "CPU given in --with-$which=$val doesn't support 64bit mode." 1>&2
3285                                                 exit 1
3286                                                 ;;
3287                                       esac
3288                                       ;;
3289                                 esac
3290                                 # OK
3291                                 ;;
3292                         "" | x86-64 | generic | native \
3293                         | k8 | k8-sse3 | athlon64 | athlon64-sse3 | opteron \
3294                         | opteron-sse3 | athlon-fx | bdver2 | bdver1 | btver1 \
3295                         | amdfam10 | barcelona | nocona | core2 | corei7 \
3296                         | corei7-avx | atom)
3297                                 # OK
3298                                 ;;
3299                         *)
3300                                 echo "Unknown CPU given in --with-$which=$val." 1>&2
3301                                 exit 1
3302                                 ;;
3303                         esac
3304                 done
3305                 ;;
3306
3307         mips*-*-*)
3308                 supported_defaults="abi arch arch_32 arch_64 float tune tune_32 tune_64 divide llsc mips-plt synci"
3309
3310                 case ${with_float} in
3311                 "" | soft | hard)
3312                         # OK
3313                         ;;
3314                 *)
3315                         echo "Unknown floating point type used in --with-float=$with_float" 1>&2
3316                         exit 1
3317                         ;;
3318                 esac
3319
3320                 case ${with_abi} in
3321                 "" | 32 | o64 | n32 | 64 | eabi)
3322                         # OK
3323                         ;;
3324                 *)
3325                         echo "Unknown ABI used in --with-abi=$with_abi" 1>&2
3326                         exit 1
3327                         ;;
3328                 esac
3329
3330                 case ${with_divide} in
3331                 "" | breaks | traps)
3332                         # OK
3333                         ;;
3334                 *)
3335                         echo "Unknown division check type use in --with-divide=$with_divide" 1>&2
3336                         exit 1
3337                         ;;
3338                 esac
3339
3340                 case ${with_llsc} in
3341                 yes)
3342                         with_llsc=llsc
3343                         ;;
3344                 no)
3345                         with_llsc="no-llsc"
3346                         ;;
3347                 "")
3348                         # OK
3349                         ;;
3350                 *)
3351                         echo "Unknown llsc type used in --with-llsc" 1>&2
3352                         exit 1
3353                         ;;
3354                 esac
3355
3356                 case ${with_mips_plt} in
3357                 yes)
3358                         with_mips_plt=plt
3359                         ;;
3360                 no)
3361                         with_mips_plt=no-plt
3362                         ;;
3363                 "")
3364                         ;;
3365                 *)
3366                         echo "Unknown --with-mips-plt argument: $with_mips_plt" 1>&2
3367                         exit 1
3368                         ;;
3369                 esac
3370
3371                 case ${with_synci} in
3372                 yes)
3373                         with_synci=synci
3374                         ;;
3375                 "" | no)
3376                         # No is the default.
3377                         with_synci=no-synci
3378                         ;;
3379                 *)
3380                         echo "Unknown synci type used in --with-synci" 1>&2
3381                         exit 1
3382                         ;;
3383                 esac
3384                 ;;
3385
3386         powerpc*-*-* | rs6000-*-*)
3387                 supported_defaults="cpu cpu_32 cpu_64 float tune tune_32 tune_64"
3388
3389                 for which in cpu cpu_32 cpu_64 tune tune_32 tune_64; do
3390                         eval "val=\$with_$which"
3391                         case ${val} in
3392                         default32 | default64)
3393                                 case $which in
3394                                 cpu | tune)
3395                                         ;;
3396                                 *)
3397                                         echo "$val only valid for --with-cpu and --with-tune." 1>&2
3398                                         exit 1
3399                                         ;;
3400                                 esac
3401                                 with_which="with_$which"
3402                                 eval $with_which=
3403                                 ;;
3404                         405cr)
3405                                 tm_defines="${tm_defines} CONFIG_PPC405CR"
3406                                 eval "with_$which=405"
3407                                 ;;
3408                         "" | common \
3409                         | power | power[234567] | power6x | powerpc | powerpc64 \
3410                         | rios | rios1 | rios2 | rsc | rsc1 | rs64a \
3411                         | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \
3412                         | 476 | 476fp | 505 | 601 | 602 | 603 | 603e | ec603e \
3413                         | 604 | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \
3414                         | a2 | e300c[23] | 854[08] | e500mc | e500mc64 | titan\
3415                         | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5 | cell)
3416                                 # OK
3417                                 ;;
3418                         *)
3419                                 echo "Unknown cpu used in --with-$which=$val." 1>&2
3420                                 exit 1
3421                                 ;;
3422                         esac
3423                 done
3424                 ;;
3425
3426         s390*-*-*)
3427                 supported_defaults="arch mode tune"
3428
3429                 for which in arch tune; do
3430                         eval "val=\$with_$which"
3431                         case ${val} in
3432                         "" | g5 | g6 | z900 | z990 | z9-109 | z9-ec | z10 | z196)
3433                                 # OK
3434                                 ;;
3435                         *)
3436                                 echo "Unknown cpu used in --with-$which=$val." 1>&2
3437                                 exit 1
3438                                 ;;
3439                         esac
3440                 done
3441
3442                 case ${with_mode} in
3443                 "" | esa | zarch)
3444                         # OK
3445                         ;;
3446                 *)
3447                         echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2
3448                         exit 1
3449                         ;;
3450                 esac
3451                 ;;
3452
3453         sh[123456ble]-*-* | sh-*-*)
3454                 supported_defaults="cpu"
3455                 case "`echo $with_cpu | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz- | sed s/sh/m/`" in
3456                 "" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu )
3457                         # OK
3458                         ;;
3459                 m2a | m2a-single | m2a-single-only | m2a-nofpu)
3460                         ;;
3461                 m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al)
3462                         ;;
3463                 *)
3464                         echo "Unknown CPU used in --with-cpu=$with_cpu, known values:"  1>&2
3465                         echo "m1 m2 m2e m3 m3e m4 m4-single m4-single-only m4-nofpu" 1>&2
3466                         echo "m4a m4a-single m4a-single-only m4a-nofpu m4al" 1>&2
3467                         echo "m2a m2a-single m2a-single-only m2a-nofpu" 1>&2
3468                         exit 1
3469                         ;;
3470                 esac
3471                 ;;
3472         sparc*-*-*)
3473                 supported_defaults="cpu float tune"
3474
3475                 for which in cpu tune; do
3476                         eval "val=\$with_$which"
3477                         case ${val} in
3478                         "" | sparc | sparcv9 | sparc64 \
3479                         | v7 | cypress \
3480                         | v8 | supersparc | hypersparc | leon \
3481                         | sparclite | f930 | f934 | sparclite86x \
3482                         | sparclet | tsc701 \
3483                         | v9 | ultrasparc | ultrasparc3 | niagara | niagara2)
3484                                 # OK
3485                                 ;;
3486                         *)
3487                                 echo "Unknown cpu used in --with-$which=$val" 1>&2
3488                                 exit 1
3489                                 ;;
3490                         esac
3491                 done
3492
3493                 case ${with_float} in
3494                 "" | soft | hard)
3495                         # OK
3496                         ;;
3497                 *)
3498                         echo "Unknown floating point type used in --with-float=$with_float" 1>&2
3499                         exit 1
3500                         ;;
3501                 esac
3502                 ;;
3503
3504         spu-*-*)
3505                 supported_defaults="arch tune"
3506
3507                 for which in arch tune; do
3508                         eval "val=\$with_$which"
3509                         case ${val} in
3510                         "" | cell | celledp)
3511                                 # OK
3512                                 ;;
3513                         *)
3514                                 echo "Unknown cpu used in --with-$which=$val." 1>&2
3515                                 exit 1
3516                                 ;;
3517                         esac
3518                 done
3519                 ;;
3520
3521         tic6x-*-*)
3522                 supported_defaults="arch"
3523
3524                 case ${with_arch} in
3525                 "" | c62x | c64x | c64x+ | c67x | c67x+ | c674x)
3526                         # OK
3527                         ;;
3528                 *)
3529                         echo "Unknown arch used in --with-arch=$with_arch." 1>&2
3530                         exit 1
3531                         ;;
3532                 esac
3533                 ;;
3534
3535         v850*-*-*)
3536                 supported_defaults=cpu
3537                 case ${with_cpu} in
3538                 "" | v850e | v850e1 | v850e2 | v850es | v850e2v3)
3539                         # OK
3540                         ;;
3541                 *)
3542                         echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
3543                         exit 1
3544                         ;;
3545                 esac
3546                 ;;
3547 esac
3548
3549 # Set some miscellaneous flags for particular targets.
3550 target_cpu_default2=
3551 case ${target} in
3552         alpha*-*-*)
3553                 if test x$gas = xyes
3554                 then
3555                         target_cpu_default2="MASK_GAS"
3556                 fi
3557                 ;;
3558
3559         arm*-*-*)
3560                 if test x$target_cpu_cname = x
3561                 then
3562                         target_cpu_default2=TARGET_CPU_generic
3563                 else
3564                         target_cpu_default2=TARGET_CPU_$target_cpu_cname
3565                 fi
3566                 ;;
3567
3568         hppa*-*-*)
3569                 target_cpu_default2="MASK_BIG_SWITCH"
3570                 if test x$gas = xyes
3571                 then
3572                         target_cpu_default2="${target_cpu_default2}|MASK_GAS|MASK_JUMP_IN_DELAY"
3573                 fi
3574                 ;;
3575
3576         fido*-*-* | m68k*-*-*)
3577                 target_cpu_default2=$m68k_cpu_ident
3578                 tmake_file="m68k/t-opts $tmake_file"
3579                 if [ x"$m68k_arch_family" != x ]; then
3580                         tmake_file="m68k/t-$m68k_arch_family $tmake_file"
3581                 fi
3582                 ;;
3583
3584         i[34567]86-*-darwin* | x86_64-*-darwin*)
3585                 ;;
3586         i[34567]86-*-linux* | x86_64-*-linux* | \
3587           i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
3588           i[34567]86-*-gnu*)
3589                 tmake_file="${tmake_file} i386/t-linux"
3590                 ;;
3591         i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3592                 ;;
3593         i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
3594                 ;;
3595         i[34567]86-*-freebsd* | x86_64-*-freebsd*)
3596                 ;;
3597         ia64*-*-linux*)
3598                 ;;
3599
3600         mips*-*-*)
3601                 if test x$gnu_ld = xyes
3602                 then
3603                         target_cpu_default2="MASK_SPLIT_ADDRESSES"
3604                 fi
3605                 case ${target} in
3606                         mips*el-*-*)
3607                                 tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
3608                                 ;;
3609                 esac
3610                 tmake_file="mips/t-mips $tmake_file"
3611                 ;;
3612
3613         powerpc*-*-* | rs6000-*-*)
3614                 # FIXME: The PowerPC port uses the value set at compile time,
3615                 # although it's only cosmetic.
3616                 if test "x$with_cpu" != x
3617                 then
3618                         target_cpu_default2="\\\"$with_cpu\\\""
3619                 fi
3620                 out_file=rs6000/rs6000.c
3621                 c_target_objs="${c_target_objs} rs6000-c.o"
3622                 cxx_target_objs="${cxx_target_objs} rs6000-c.o"
3623                 tmake_file="rs6000/t-rs6000 ${tmake_file}"
3624
3625                 if test x$enable_e500_double = xyes
3626                 then
3627                         tm_file="$tm_file rs6000/e500-double.h"
3628                 fi
3629                 ;;
3630
3631         sh[123456ble]*-*-* | sh-*-*)
3632                 c_target_objs="${c_target_objs} sh-c.o"
3633                 cxx_target_objs="${cxx_target_objs} sh-c.o"
3634                 ;;
3635
3636         sparc-leon*-*)
3637                 if test x$with_tune = x ; then
3638                   with_tune=leon;
3639                 fi
3640
3641                 # The SPARC port checks this value at compile-time.
3642                 target_cpu_default2="TARGET_CPU_$with_cpu"
3643                 ;;
3644
3645         sparc*-*-*)
3646                 # Some standard aliases.
3647                 case x$with_cpu in
3648                 xsparc)
3649                         with_cpu=v7
3650                         ;;
3651                 xsparcv9 | xsparc64)
3652                         with_cpu=v9
3653                         ;;
3654                 esac
3655
3656                 # The SPARC port checks this value at compile-time.
3657                 target_cpu_default2="TARGET_CPU_$with_cpu"
3658                 ;;
3659
3660         v850*-*-*)
3661                 case "x$with_cpu" in
3662                 x)
3663                         ;;
3664                 xv850e | xv850e1 | xv850e2 | xv850e2v3)
3665                         target_cpu_default2="TARGET_CPU_$with_cpu"
3666                         ;;
3667                 xv850es)
3668                         target_cpu_default2="TARGET_CPU_v850e1"
3669                         ;;
3670                 esac
3671                 ;;
3672 esac
3673
3674 t=
3675 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"
3676 for option in $all_defaults
3677 do
3678         eval "val=\$with_"`echo $option | sed s/-/_/g`
3679         if test -n "$val"; then
3680                 case " $supported_defaults " in
3681                 *" $option "*)
3682                         ;;
3683                 *)
3684                         echo "This target does not support --with-$option." 2>&1
3685                         echo "Valid --with options are: $supported_defaults" 2>&1
3686                         exit 1
3687                         ;;
3688                 esac
3689
3690                 if test "x$t" = x
3691                 then
3692                         t="{ \"$option\", \"$val\" }"
3693                 else
3694                         t="${t}, { \"$option\", \"$val\" }"
3695                 fi
3696         fi
3697 done
3698
3699 if test "x$t" = x
3700 then
3701         configure_default_options="{ { NULL, NULL} }"
3702 else
3703         configure_default_options="{ ${t} }"
3704 fi
3705
3706 if test "$target_cpu_default2" != ""
3707 then
3708         if test "$target_cpu_default" != ""
3709         then
3710                 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3711         else
3712                 target_cpu_default=$target_cpu_default2
3713         fi
3714 fi