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