config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
[gcc.git] / gcc / config.gcc
1 # GCC build-, host- and target-specific configuration file.
2 # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3
4 #This file is part of GCC.
5
6 #GCC is free software; you can redistribute it and/or modify it under
7 #the terms of the GNU General Public License as published by the Free
8 #Software Foundation; either version 2, or (at your option) any later
9 #version.
10
11 #GCC is distributed in the hope that it will be useful, but WITHOUT
12 #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 #for more details.
15
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING. If not, write to the Free
18 #Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19 #02111-1307, USA.
20
21 # This is the GCC build-, host- and target-specific configuration file
22 # where a configuration type, as recognized and generated by config.bfd,
23 # is mapped to different system-specific definitions and files. This is
24 # invoked by the autoconf-generated configure script, called for build,
25 # host and target in that order, setting ${machine} to each. Putting it
26 # in a separate shell file lets us skip running autoconf when modifying
27 # build-, host- and target-specific information.
28
29 # This file switches on the shell variable ${machine}, and also uses the
30 # following shell variables:
31 #
32 # with_* Various variables as set by configure.
33 #
34 # enable_threads_flag Either the name, yes or no depending on whether
35 # threads support was requested.
36 #
37 # gas_flag Either yes or no depending on whether GNU as was
38 # requested.
39 #
40 # gnu_ld_flag Either yes or no depending on whether GNU ld was
41 # requested.
42
43 # This file sets the following shell variables for use by the
44 # autoconf-generated configure script:
45 #
46 # cpu_type The name of the cpu, if different from machine.
47 #
48 # tm_defines List of target macros to define for all compilations.
49 #
50 # tm_file A list of target macro files, if different from
51 # "$cpu_type/$cpu_type.h". Usually it's constructed
52 # per target in a way like this:
53 # tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h"
54 # Note that the preferred order is:
55 # - specific target header "${cpu_type}/${cpu_type.h}"
56 # - generic headers like dbxelf.h elfos.h, netware.h, etc.
57 # - specializing target headers like ${cpu_type.h}/elf.h
58 # This helps to keep OS specific stuff out of the CPU
59 # defining header ${cpu_type}/${cpu_type.h}.
60 #
61 # tm_p_file Location of file with declarations for functions
62 # in $out_file.
63 #
64 # out_file The name of the machine description C support
65 # file, if different from "$cpu_type/$cpu_type.c".
66 #
67 # md_file The name of the machine-description file, if
68 # different from "$cpu_type/$cpu_type.md".
69 #
70 # tmake_file A list of machine-description-specific
71 # makefile-fragments, if different from
72 # "$cpu_type/t-$cpu_type".
73 #
74 # extra_modes The name of the file containing a list of extra
75 # machine modes, if necessary and different from
76 # "$cpu_type/$cpu_type-modes.def".
77 #
78 # float_format Set to the symbolic name for the floating-point
79 # formats used for this machine, if different from
80 # "i64". Used to derive a header file name to
81 # include, like "vax" for "float-vax.h". If no such
82 # file is wanted, set to "none".
83 #
84 # extra_objs List of extra objects that should be linked into
85 # the compiler proper (cc1, cc1obj, cc1plus)
86 # depending on target.
87 #
88 # extra_headers List of used header files from the directory
89 # config/${cpu_type}.
90 #
91 # host_xmake_file List of host-specific makefile-fragments.
92 #
93 # extra_passes List of extra executables compiled for this target
94 # machine, used for compiling from source to object.
95 #
96 # extra_parts List of extra object files that should be compiled
97 # for this target machine.
98 #
99 # extra_programs Like extra_passes, but these are used when linking.
100 #
101 # host_extra_objs List of extra host-dependent objects that should
102 # be linked into the compiler proper.
103 #
104 # host_extra_gcc_objs List of extra host-dependent objects that should
105 # be linked into the gcc driver.
106 #
107 # c_target_objs List of extra target-dependent objects that be
108 # linked into the C compiler only.
109 #
110 # cxx_target_objs List of extra target-dependent objects that be
111 # linked into the C++ compiler only.
112 #
113 # build_xm_defines List of macros to define when compiling for the
114 # build machine.
115 #
116 # build_xm_file List of files to include when compiling for the
117 # build machine.
118 #
119 # host_xm_defines List of macros to define when compiling for the
120 # host machine.
121 #
122 # host_xm_file List of files to include when compiling for the
123 # host machine.
124 #
125 # xm_defines List of macros to define when compiling for the
126 # target machine.
127 #
128 # xm_file List of files to include when compiling for the
129 # target machine.
130 #
131 # use_collect2 Set to yes or no, depending on whether collect2
132 # will be used.
133 #
134 # target_cpu_default Set to override the default target model.
135 #
136 # build_install_headers_dir
137 # Target to use when installing header files.
138 #
139 # host_truncate_target
140 # Non-empty if the target name should be truncated
141 # on this host, due to filename length issues.
142 #
143 # gdb_needs_out_file_path
144 # Set to yes if gdb needs a dir command with
145 # `dirname $out_file`.
146 #
147 # build_exeext Set to the suffix, if the build machine requires
148 # executables to have a file name suffix.
149 #
150 # host_exeext Set to the suffix, if the host machine requires
151 # executables to have a file name suffix.
152 #
153 # thread_file Set to control which thread package to use.
154 #
155 # gas Set to yes or no depending on whether the target
156 # system normally uses GNU as.
157
158 # The following variables are used in each case-construct to build up the
159 # outgoing variables:
160 #
161 # xmake_file Makefile-fragment when this system is as a host,
162 # for host_xmake_file.
163 #
164 # extra_host_objs List of extra objects that should be linked into
165 # the compiler proper when this system is a host,
166 # for host_extra_objs.
167 #
168 # install_headers_dir Makefile-target for how the header file directory
169 # is installed, when this system is a build system,
170 # for build_install_headers_dir.
171 #
172 # truncate_target Non-empty if the target name should be truncated
173 # when this system is a host, due to filename length
174 # issues. For host_truncate_target.
175 #
176 # exeext The suffix for executables on this system.
177 #
178 # gnu_ld Set to yes or no depending on whether the target
179 # system normally uses GNU ld.
180
181 out_file=
182 xmake_file=
183 tmake_file=
184 extra_headers=
185 extra_passes=
186 extra_parts=
187 extra_programs=
188 extra_objs=
189 extra_host_objs=
190 extra_gcc_objs=
191 c_target_objs=
192 cxx_target_objs=
193 tm_defines=
194 xm_defines=
195 float_format=
196 # Set this to force installation and use of collect2.
197 use_collect2=
198 # Set this to override the default target model.
199 target_cpu_default=
200 # Set this to control how the header file directory is installed.
201 install_headers_dir=install-headers-tar
202 # Set this if directory names should be truncated to 14 characters.
203 truncate_target=
204 # Set this if gdb needs a dir command with `dirname $out_file`
205 gdb_needs_out_file_path=
206 # Set this if the build machine requires executables to have a
207 # file name suffix.
208 exeext=
209 # Set this to control which thread package will be used.
210 thread_file=
211 # Reinitialize these from the flag values every loop pass, since some
212 # configure entries modify them.
213 gas="$gas_flag"
214 gnu_ld="$gnu_ld_flag"
215 enable_threads=$enable_threads_flag
216
217 # Obsolete configurations.
218 case $machine in
219 m88k-*-aout* \
220 | m88k-*-openbsd* \
221 | m88k-*-sysv4* \
222 | mips-sni-sysv4 \
223 | mn10200-*-* \
224 | ns32k-*-openbsd* \
225 | romp-*-openbsd* \
226 )
227 if test "x$enable_obsolete" != xyes; then
228 echo "*** Configuration $machine is obsolete." >&2
229 echo "*** Specify --enable-obsolete to build it anyway." >&2
230 echo "*** Support will be REMOVED in the next major release of GCC," >&2
231 echo "*** unless a maintainer comes forward." >&2
232 exit 1
233 fi;;
234 esac
235
236 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
237 # updated in each machine entry. Also set default extra_headers for some
238 # machines.
239 tm_p_file=
240 cpu_type=`echo $machine | sed 's/-.*$//'`
241 case $machine in
242 alpha*-*-*)
243 cpu_type=alpha
244 ;;
245 strongarm*-*-*)
246 cpu_type=arm
247 ;;
248 arm*-*-*)
249 cpu_type=arm
250 ;;
251 xscale-*-*)
252 cpu_type=arm
253 ;;
254 i[34567]86-*-*)
255 cpu_type=i386
256 extra_headers="mmintrin.h xmmintrin.h"
257 ;;
258 x86_64-*-*)
259 cpu_type=i386
260 extra_headers="mmintrin.h xmmintrin.h"
261 ;;
262 ia64-*-*)
263 extra_headers=ia64intrin.h
264 ;;
265 hppa*-*-* | parisc*-*-*)
266 cpu_type=pa
267 ;;
268 m680[012]0-*-*)
269 cpu_type=m68k
270 extra_headers=math-68881.h
271 ;;
272 m68k-*-*)
273 extra_headers=math-68881.h
274 ;;
275 mips*-*-*)
276 cpu_type=mips
277 ;;
278 powerpc*-*-*)
279 cpu_type=rs6000
280 extra_headers="ppc-asm.h altivec.h"
281 ;;
282 sparc*-*-*)
283 cpu_type=sparc
284 ;;
285 # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
286 sh[123456789l]*-*-*)
287 cpu_type=sh
288 ;;
289 esac
290
291 tm_file=${cpu_type}/${cpu_type}.h
292 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
293 then
294 tm_p_file=${cpu_type}/${cpu_type}-protos.h
295 fi
296 extra_modes=
297 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
298 then
299 extra_modes=${cpu_type}/${cpu_type}-modes.def
300 fi
301
302 case $machine in
303 x86_64-*-*)
304 tm_file="i386/biarch64.h ${tm_file}"
305 ;;
306 esac
307
308 # On a.out targets, we need to use collect2.
309 case $machine in
310 *-*-*aout*)
311 use_collect2=yes
312 ;;
313 esac
314
315 # Common parts for GNU/Linux, GNU/Hurd, OpenBSD, NetBSD, and FreeBSD systems.
316 case $machine in
317 *-*-linux*)
318 xm_defines=POSIX
319 ;;
320 *-*-gnu*)
321 # On the Hurd, the setup is just about the same on
322 # each different CPU. The specific machines that we
323 # support are matched above and just set $cpu_type.
324 xm_defines=POSIX
325 tm_file="${cpu_type}/gnu.h"
326 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
327 # GNU always uses ELF.
328 elf=yes
329 # GNU tools are the only tools.
330 gnu_ld=yes
331 gas=yes
332 # These details are the same as for Linux.
333 # But here we need a little extra magic.
334 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
335 case $machine in
336 alpha*)
337 tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
338 ;;
339 i[34567]86-*-*)
340 tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h gnu.h ${tm_file}"
341 ;;
342 esac
343 ;;
344 *-*-openbsd*)
345 tm_file=${cpu_type}/openbsd.h
346 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
347 xm_defines=POSIX
348 if test x$enable_threads = xyes; then
349 thread_file='posix'
350 tmake_file="${tmake_file} t-openbsd-thread"
351 fi
352 ;;
353 *-*-netbsd*)
354 tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd"
355 xm_defines=POSIX
356 gas=yes
357 gnu_ld=yes
358 ;;
359 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
360 # This is the place-holder for the generic a.out configuration
361 # of FreeBSD. No actual configuration resides here since
362 # there was only ever a bare-bones ix86 configuration for
363 # a.out and it exists solely in the machine-specific section.
364 # This place-holder must exist to avoid dropping into
365 # the generic ELF configuration of FreeBSD (i.e. it must be
366 # ordered before that section).
367 ;;
368 *-*-freebsd*)
369 # This is the generic ELF configuration of FreeBSD. Later
370 # machine-specific sections may refine and add to this
371 # configuration.
372 #
373 # Due to tm_file entry ordering issues that vary between cpu
374 # architectures, we only define fbsd_tm_file to allow the
375 # machine-specific section to dictate the final order of all
376 # entries of tm_file with the minor exception that components
377 # of the tm_file set here will always be of the form:
378 #
379 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
380 #
381 # The machine-specific section should not tamper with this
382 # ordering but may order all other entries of tm_file as it
383 # pleases around the provided core setting.
384 gas=yes
385 gnu_ld=yes
386 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
387 case $machine in
388 *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
389 *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
390 *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
391 *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
392 *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
393 esac
394 tmake_file="t-slibgcc-elf-ver t-freebsd"
395 xmake_file=none
396 xm_defines=POSIX
397 case x${enable_threads} in
398 xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
399 x | xyes | xpthreads | xposix)
400 thread_file='posix'
401 tmake_file="${tmake_file} t-freebsd-thread"
402 # Before 5.0, FreeBSD can't bind shared libraries to -lc
403 # when "optionally" threaded via weak pthread_* checks.
404 case $machine in
405 *-*-freebsd[34] | *-*-freebsd[34].*)
406 tmake_file="${tmake_file} t-slibgcc-nolc-override";;
407 esac
408 ;;
409 *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
410 esac
411 fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
412 ;;
413 esac
414
415 case $machine in
416 # Support site-specific machine types.
417 *local*)
418 rest=`echo $machine | sed -e "s/$cpu_type-//"`
419 tm_file=${cpu_type}/$rest.h
420 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
421 then xm_file=${cpu_type}/xm-$rest.h
422 fi
423 if test -f $srcdir/config/${cpu_type}/x-$rest
424 then xmake_file=${cpu_type}/x-$rest
425 fi
426 if test -f $srcdir/config/${cpu_type}/t-$rest
427 then tmake_file=${cpu_type}/t-$rest
428 fi
429 ;;
430 alpha*-*-unicosmk*)
431 use_collect2=yes
432 tm_file="${tm_file} alpha/unicosmk.h"
433
434 # Don't include t-ieee for now because we don't support that yet
435 # tmake_file="alpha/t-ieee"
436 tmake_file="alpha/t-unicosmk"
437 ;;
438 alpha-*-interix)
439 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
440
441 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
442 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
443
444 # GAS + IEEE_CONFORMANT
445 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
446
447 xm_defines=POSIX
448 xm_file="alpha/xm-alpha-interix.h"
449 tmake_file="alpha/t-alpha t-interix alpha/t-interix alpha/t-ieee"
450 if test x$enable_threads = xyes ; then
451 thread_file='posix'
452 fi
453 if test x$stabs = xyes ; then
454 tm_file="${tm_file} dbxcoff.h"
455 fi
456 #prefix='$$INTERIX_ROOT'/usr/contrib
457 #local_prefix='$$INTERIX_ROOT'/usr/contrib
458 ;;
459 alpha*-*-linux*ecoff*)
460 echo "Configuration $machine no longer supported" 1>&2
461 exit 1
462 ;;
463 alpha*-*-linux*libc1*)
464 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
465 target_cpu_default="MASK_GAS"
466 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtfm alpha/t-ieee"
467 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
468 gas=yes gnu_ld=yes
469 if test x$enable_threads = xyes; then
470 thread_file='posix'
471 fi
472 ;;
473 alpha*-*-linux*)
474 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
475 target_cpu_default="MASK_GAS"
476 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
477 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
478 gas=yes gnu_ld=yes
479 if test x$enable_threads = xyes; then
480 thread_file='posix'
481 fi
482 ;;
483 alpha*-*-gnu*)
484 target_cpu_default="MASK_GAS"
485 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
486 ;;
487 alpha*-*-freebsd*)
488 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
489 target_cpu_default="MASK_GAS"
490 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
491 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
492 ;;
493 alpha*-*-netbsd*)
494 tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
495 target_cpu_default="MASK_GAS"
496 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
497 ;;
498
499 alpha*-*-openbsd*)
500 tm_file="${cpu_type}/${cpu_type}.h ${tm_file}"
501 # default x-alpha is only appropriate for dec-osf.
502 target_cpu_default="MASK_GAS"
503 tmake_file="alpha/t-alpha alpha/t-ieee"
504 ;;
505
506 alpha*-dec-osf[45]*)
507 xm_defines=POSIX
508 if test x$stabs = xyes
509 then
510 tm_file="${tm_file} dbx.h"
511 fi
512 if test x$gas != xyes
513 then
514 extra_passes="mips-tfile mips-tdump"
515 fi
516 use_collect2=yes
517 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4"
518 tm_file="${tm_file} alpha/osf.h"
519 extra_headers=va_list.h
520 case $machine in
521 *-*-osf4*)
522 # Some versions of OSF4 (specifically X4.0-9 296.7) have
523 # a broken tar, so we use cpio instead.
524 install_headers_dir=install-headers-cpio
525 # Set target_cpu_default except on 4.0a.
526 case $machine in
527 *-*-osf4.0a) ;;
528 *) target_cpu_default=MASK_SUPPORT_ARCH
529 esac
530 ;;
531 *-*-osf5*)
532 tm_file="${tm_file} alpha/osf5.h"
533 target_cpu_default=MASK_SUPPORT_ARCH
534 float_format=i128
535 ;;
536 esac
537 ;;
538 alpha*-*-vxworks*)
539 xm_defines=POSIX
540 tm_file="${tm_file} dbx.h alpha/vxworks.h"
541 tmake_file="alpha/t-alpha alpha/t-ieee"
542 if [ x$gas != xyes ]
543 then
544 extra_passes="mips-tfile mips-tdump"
545 fi
546 use_collect2=yes
547 thread_file='vxworks'
548 ;;
549 alpha64-dec-*vms*)
550 xm_defines=POSIX
551 tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
552 xm_file="alpha/xm-vms.h alpha/xm-vms64.h"
553 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
554 xmake_file=alpha/x-vms
555 exeext=.exe
556 # This removes the cpu type and manufacturer components and
557 # replaces "." with "_" in the operating system version.
558 case $host in *-*-*vms*)
559 target_alias=`echo $host \
560 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
561 ;;
562 esac
563 install_headers_dir=install-headers-cp
564 prefix=/gnu
565 local_prefix=/gnu
566 ;;
567 alpha*-dec-*vms*)
568 xm_defines=POSIX
569 tm_file="${tm_file} alpha/vms.h"
570 xm_file=alpha/xm-vms.h
571 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
572 xmake_file=alpha/x-vms
573 exeext=.exe
574 # This removes the cpu type and manufacturer components and
575 # replaces "." with "_" in the operating system version.
576 case $host in *-*-*vms*)
577 target_alias=`echo $host \
578 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
579 ;;
580 esac
581 install_headers_dir=install-headers-cp
582 prefix=/gnu
583 local_prefix=/gnu
584 ;;
585 arc-*-elf*)
586 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
587 extra_parts="crtinit.o crtfini.o"
588 ;;
589 arm-*-coff* | armel-*-coff*)
590 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h"
591 tmake_file=arm/t-arm-coff
592 ;;
593 arm-*-vxworks*)
594 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/vxarm.h arm/arm.h"
595 tmake_file=arm/t-arm-coff
596 thread_file='vxworks'
597 ;;
598 arm-semi-aout | armel-semi-aout)
599 tm_file="arm/semi.h arm/aout.h arm/arm.h"
600 tmake_file=arm/t-semi
601 ;;
602 arm-semi-aof | armel-semi-aof)
603 tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
604 tmake_file=arm/t-semi
605 ;;
606 arm*-*-freebsd*|strongarm*-*-freebsd*)
607 tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
608 tmake_file="${tmake_file} arm/t-strongarm-elf"
609 ;;
610 arm*-*-netbsdelf*)
611 echo "GCC does not yet support the ${machine} target"; exit 1
612 ;;
613 arm*-*-netbsd*)
614 tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
615 tmake_file="t-netbsd arm/t-netbsd"
616 use_collect2=yes
617 ;;
618 arm*-*-linux*) # ARM GNU/Linux with ELF
619 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h"
620 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
621 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
622 gnu_ld=yes
623 case x${enable_threads} in
624 x | xyes | xpthreads | xposix)
625 thread_file='posix'
626 ;;
627 esac
628 ;;
629 arm*-*-uclinux*) # ARM ucLinux
630 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h arm/uclinux-elf.h"
631 tmake_file=arm/t-arm-elf
632 ;;
633 arm*-*-aout)
634 tm_file="arm/aout.h arm/arm.h"
635 tmake_file=arm/t-arm-aout
636 ;;
637 arm*-*-ecos-elf)
638 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
639 tmake_file=arm/t-arm-elf
640 ;;
641 arm*-*-rtems*)
642 xm_defines=POSIX
643 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"
644 tmake_file="arm/t-arm-elf t-rtems"
645 if test x$enable_threads = xyes; then
646 thread_file='rtems'
647 fi
648 ;;
649 arm*-*-elf)
650 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
651 tmake_file=arm/t-arm-elf
652 ;;
653 arm*-*-conix*)
654 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/conix-elf.h arm/aout.h arm/arm.h"
655 tmake_file=arm/t-arm-elf
656 ;;
657 arm*-*-oabi)
658 tm_file="arm/unknown-elf-oabi.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
659 tmake_file=arm/t-arm-elf
660 ;;
661 arm-*-pe*)
662 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h arm/pe.h"
663 tmake_file=arm/t-pe
664 extra_objs="pe.o"
665 ;;
666 avr-*-*)
667 ;;
668 c4x-*-rtems*)
669 xm_defines=POSIX
670 tmake_file="c4x/t-c4x t-rtems"
671 tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
672 if test x$enable_threads = xyes; then
673 thread_file='rtems'
674 fi
675 c_target_objs="c4x-c.o"
676 cxx_target_objs="c4x-c.o"
677 ;;
678 c4x-*)
679 float_format=c4x
680 tmake_file=c4x/t-c4x
681 c_target_objs="c4x-c.o"
682 cxx_target_objs="c4x-c.o"
683 ;;
684 cris-*-aout)
685 tm_file="dbxelf.h ${tm_file} cris/aout.h"
686 gas=yes
687 tmake_file="cris/t-cris cris/t-aout"
688 ;;
689 cris-*-elf | cris-*-none)
690 tm_file="dbxelf.h elfos.h ${tm_file}"
691 tmake_file="cris/t-cris cris/t-elfmulti"
692 gas=yes
693 ;;
694 cris-*-linux*)
695 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
696 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
697 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
698 case x${enable_threads} in
699 x | xyes | xpthreads | xposix)
700 thread_file=posix
701 ;;
702 esac
703 gas=yes
704 ;;
705 d30v-*)
706 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
707 float_format=i64
708 ;;
709 dsp16xx-*)
710 ;;
711 fr30-*-elf)
712 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
713 tmake_file=fr30/t-fr30
714 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
715 ;;
716 h8300-*-rtems*)
717 xm_defines=POSIX
718 tmake_file="h8300/t-h8300 t-rtems"
719 tm_file="h8300/h8300.h h8300/rtems.h rtems.h"
720 if test x$enable_threads = xyes; then
721 thread_file='rtems'
722 fi
723 float_format=i32
724 ;;
725 h8300-*-elf*)
726 tmake_file="h8300/t-h8300 h8300/t-elf"
727 tm_file="h8300/h8300.h h8300/elf.h"
728 float_format=i32
729 ;;
730 h8300-*-*)
731 float_format=i32
732 ;;
733 hppa*64*-*-linux* | parisc*64*-*-linux*)
734 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
735 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
736 pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
737 tmake_file=pa/t-linux64
738 gas=yes gnu_ld=yes
739 ;;
740 hppa*-*-linux* | parisc*-*-linux*)
741 target_cpu_default="MASK_PA_11"
742 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
743 pa/pa32-regs.h pa/pa32-linux.h"
744 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
745 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
746 gas=yes gnu_ld=yes
747 if test x$enable_threads = xyes; then
748 thread_file='posix'
749 fi
750 ;;
751 hppa*-*-openbsd*)
752 target_cpu_default="MASK_PA_11"
753 tmake_file=pa/t-bsd
754 ;;
755 hppa1.1-*-pro*)
756 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
757 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
758 tmake_file="pa/t-bsd pa/t-pro"
759 xmake_file="pa/x-ada"
760 ;;
761 hppa1.1-*-osf*)
762 target_cpu_default="MASK_PA_11"
763 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
764 tmake_file="pa/t-bsd pa/t-pa"
765 xmake_file="pa/x-ada"
766 use_collect2=yes
767 ;;
768 hppa1.1-*-rtems*)
769 xm_defines=POSIX
770 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
771 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h rtems.h"
772 tmake_file="pa/t-bsd pa/t-pro"
773 xmake_file="pa/x-ada"
774 ;;
775 hppa1.0-*-osf*)
776 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
777 tmake_file="pa/t-bsd pa/t-pa"
778 xmake_file="pa/x-ada"
779 use_collect2=yes
780 ;;
781 hppa1.1-*-bsd*)
782 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
783 target_cpu_default="MASK_PA_11"
784 tmake_file="pa/t-bsd pa/t-pa"
785 xmake_file="pa/x-ada"
786 use_collect2=yes
787 ;;
788 hppa1.0-*-bsd*)
789 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
790 tmake_file="pa/t-bsd pa/t-pa"
791 xmake_file="pa/x-ada"
792 use_collect2=yes
793 ;;
794 hppa1.0-*-hpux7*)
795 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
796 xm_defines=POSIX
797 tmake_file=pa/t-pa-hpux
798 install_headers_dir=install-headers-cpio
799 use_collect2=yes
800 ;;
801 hppa1.0-*-hpux8.0[0-2]*)
802 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
803 xm_defines=POSIX
804 tmake_file=pa/t-pa-hpux
805 if test x$gas != xyes
806 then
807 tm_file="pa/pa-oldas.h ${tm_file}"
808 fi
809 install_headers_dir=install-headers-cpio
810 use_collect2=yes
811 ;;
812 hppa1.1-*-hpux8.0[0-2]*)
813 target_cpu_default="MASK_PA_11"
814 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
815 xm_defines=POSIX
816 tmake_file=pa/t-pa-hpux
817 if test x$gas != xyes
818 then
819 tm_file="pa/pa-oldas.h ${tm_file}"
820 fi
821 install_headers_dir=install-headers-cpio
822 use_collect2=yes
823 ;;
824 hppa1.1-*-hpux8*)
825 target_cpu_default="MASK_PA_11"
826 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
827 xm_defines=POSIX
828 tmake_file=pa/t-pa-hpux
829 install_headers_dir=install-headers-cpio
830 use_collect2=yes
831 ;;
832 hppa1.0-*-hpux8*)
833 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
834 xm_defines=POSIX
835 tmake_file=pa/t-pa-hpux
836 install_headers_dir=install-headers-cpio
837 use_collect2=yes
838 ;;
839 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
840 target_cpu_default="MASK_PA_11"
841 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
842 float_format=i128
843 xm_defines=POSIX
844 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
845 xmake_file="pa/x-ada"
846 if test x$enable_threads = x; then
847 enable_threads=$have_pthread_h
848 fi
849 case x${enable_threads} in
850 xyes | xdce)
851 tmake_file="${tmake_file} pa/t-dce-thr"
852 ;;
853 esac
854 install_headers_dir=install-headers-cpio
855 use_collect2=yes
856 ;;
857 hppa1.0-*-hpux10*)
858 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
859 float_format=i128
860 xm_defines=POSIX
861 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
862 xmake_file="pa/x-ada"
863 if test x$enable_threads = x; then
864 enable_threads=$have_pthread_h
865 fi
866 case x${enable_threads} in
867 xyes | xdce)
868 tmake_file="${tmake_file} pa/t-dce-thr"
869 ;;
870 esac
871 install_headers_dir=install-headers-cpio
872 use_collect2=yes
873 ;;
874 hppa*64*-*-hpux11*)
875 xm_defines=POSIX
876 tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
877 float_format=i128
878 tmake_file="pa/t-pa64 pa/t-pa-hpux"
879 xmake_file="pa/x-ada"
880 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
881
882 # if [ x$enable_threads = x ]; then
883 # enable_threads=$have_pthread_h
884 # fi
885 # if [ x$enable_threads = xyes ]; then
886 # thread_file='dce'
887 # tmake_file="${tmake_file} pa/t-dce-thr"
888 # fi
889 install_headers_dir=install-headers-cpio
890 use_collect2=yes
891 ;;
892 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
893 target_cpu_default="MASK_PA_11"
894 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
895 float_format=i128
896 xm_defines=POSIX
897 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
898 xmake_file="pa/x-ada"
899 # if test x$enable_threads = x; then
900 # enable_threads=$have_pthread_h
901 # fi
902 # if test x$enable_threads = xyes; then
903 # thread_file='dce'
904 # tmake_file="${tmake_file} pa/t-dce-thr"
905 # fi
906 install_headers_dir=install-headers-cpio
907 use_collect2=yes
908 ;;
909 hppa1.0-*-hpux11*)
910 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
911 float_format=i128
912 xm_defines=POSIX
913 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
914 xmake_file="pa/x-ada"
915 # if test x$enable_threads = x; then
916 # enable_threads=$have_pthread_h
917 # fi
918 # if test x$enable_threads = xyes; then
919 # thread_file='dce'
920 # tmake_file="${tmake_file} pa/t-dce-thr"
921 # fi
922 install_headers_dir=install-headers-cpio
923 use_collect2=yes
924 ;;
925 hppa1.1-*-hpux* | hppa2*-*-hpux*)
926 target_cpu_default="MASK_PA_11"
927 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
928 xm_defines=POSIX
929 tmake_file=pa/t-pa-hpux
930 install_headers_dir=install-headers-cpio
931 use_collect2=yes
932 ;;
933 hppa1.0-*-hpux*)
934 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
935 xm_defines=POSIX
936 tmake_file=pa/t-pa-hpux
937 install_headers_dir=install-headers-cpio
938 use_collect2=yes
939 ;;
940 hppa1.1-*-hiux* | hppa2*-*-hiux*)
941 target_cpu_default="MASK_PA_11"
942 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
943 xm_defines=POSIX
944 tmake_file=pa/t-pa-hpux
945 install_headers_dir=install-headers-cpio
946 use_collect2=yes
947 ;;
948 hppa1.0-*-hiux*)
949 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
950 xm_defines=POSIX
951 tmake_file=pa/t-pa-hpux
952 install_headers_dir=install-headers-cpio
953 use_collect2=yes
954 ;;
955 hppa*-*-lites*)
956 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h"
957 target_cpu_default="MASK_PA_11"
958 tmake_file="pa/t-bsd pa/t-pa"
959 xmake_file="pa/x-ada"
960 use_collect2=yes
961 ;;
962 hppa*-*-mpeix*)
963 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
964 tmake_file=pa/t-mpeix
965 echo "You must use gas. Assuming it is already installed."
966 gas=yes
967 install_headers_dir=install-headers-tar
968 use_collect2=yes
969 ;;
970 i370-*-opened*) # IBM 360/370/390 Architecture
971 xm_defines='POSIX FATAL_EXIT_CODE=12'
972 tm_file=i370/oe.h
973 tmake_file="i370/t-oe i370/t-i370"
974 c_target_objs="i370-c.o"
975 cxx_target_objs="i370-c.o"
976 ;;
977 i370-*-mvs*)
978 xm_defines='POSIX FATAL_EXIT_CODE=12'
979 tm_file=i370/mvs.h
980 tmake_file="i370/t-i370"
981 c_target_objs="i370-c.o"
982 cxx_target_objs="i370-c.o"
983 ;;
984 i370-*-linux*)
985 tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h ${tm_file}"
986 tmake_file="t-slibgcc-elf-ver t-linux"
987 # broken_install=yes
988 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
989 # extra_parts="crtbegin.o crtend.o"
990 gnu_ld=yes
991 gas=yes
992 elf=yes
993 if test x$enable_threads = xyes; then
994 thread_file='posix'
995 fi
996 ;;
997 i[34567]86-*-elf*)
998 xm_defines=POSIX
999 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
1000 tmake_file="i386/t-i386elf t-svr4"
1001 ;;
1002 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1003 xm_defines="POSIX SMALL_ARG_MAX"
1004 if test x$stabs = xyes -a x$gas = xyes
1005 then
1006 tm_file=i386/sysv4gdb.h
1007 else
1008 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
1009 fi
1010 extra_parts="crtbegin.o crtend.o"
1011 tmake_file=i386/t-crtpic
1012 ;;
1013 i[34567]86-*-netware) # Intel 80386's running netware
1014 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h"
1015 tmake_file=i386/t-netware
1016 ;;
1017 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1018 if test x$gas = xyes
1019 then
1020 tm_file="${tm_file} usegas.h"
1021 fi
1022 xm_defines="POSIX SMALL_ARG_MAX"
1023 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
1024 tmake_file=t-svr4
1025 extra_parts="crtbegin.o crtend.o"
1026 install_headers_dir=install-headers-cpio
1027 ;;
1028 i[34567]86-sequent-sysv*) # would otherwise be caught by i?86-*-sysv*
1029 echo "*** Configuration $machine not supported" 1>&2
1030 exit 1
1031 ;;
1032 i[34567]86-wrs-vxworks*)
1033 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/vxi386.h"
1034 thread_file='vxworks'
1035 ;;
1036 i[34567]86-*-aout*)
1037 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h"
1038 ;;
1039 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1040 xm_defines=POSIX
1041 tmake_file='i386/t-beos i386/t-crtpic'
1042 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
1043 extra_parts='crtbegin.o crtend.o'
1044 ;;
1045 i[34567]86-*-freebsd2 | i[34567]86-*-freebsd2.* | i[34567]86-*-freebsd*aout*)
1046 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h"
1047 tmake_file=t-freebsd
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 ;;
1055 i[34567]86-*-netbsdelf*)
1056 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
1057 float_format=i386
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=t-netbsd
1062 use_collect2=yes
1063 ;;
1064 x86_64-*-netbsd*)
1065 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"
1066 float_format=i386
1067 ;;
1068 i[34567]86-*-openbsd*)
1069 tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h openbsd-oldgas.h openbsd.h ${tm_file}"
1070 # needed to unconfuse gdb
1071 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
1072 # we need collect2 until our bug is fixed...
1073 use_collect2=yes
1074 ;;
1075 i[34567]86-*-coff*)
1076 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
1077 ;;
1078 i[34567]86-*-linux*oldld*) # would otherwise be caught by i?86-*-linux*
1079 echo "*** Configuration $machine not supported" 1>&2
1080 exit 1
1081 ;;
1082 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1083 # with a.out format
1084 tmake_file="t-linux-aout i386/t-crtstuff"
1085 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h"
1086 gnu_ld=yes
1087 float_format=i386
1088 ;;
1089 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1090 # with ELF format using the
1091 # GNU/Linux C library 5
1092 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1093 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
1094 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1095 gnu_ld=yes
1096 float_format=i386
1097 if test x$enable_threads = xyes; then
1098 thread_file='single'
1099 fi
1100 ;;
1101 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1102 # with ELF format using glibc 2
1103 # aka GNU/Linux C library 6
1104 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
1105 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
1106 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1107 gnu_ld=yes
1108 float_format=i386
1109 if test x$enable_threads = xyes; then
1110 thread_file='posix'
1111 fi
1112 ;;
1113 x86_64-*-linux*)
1114 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
1115 i386/x86-64.h i386/linux64.h"
1116 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff i386/t-linux64"
1117 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1118 gnu_ld=yes
1119 float_format=i386
1120 if test x$enable_threads = xyes; then
1121 thread_file='posix'
1122 fi
1123 ;;
1124 i[34567]86-*-gnu*)
1125 float_format=i386
1126 ;;
1127 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1128 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1129 exit 1
1130 ;;
1131 i[34567]86-pc-msdosdjgpp*)
1132 xm_file=i386/xm-djgpp.h
1133 tm_file="dbxcoff.h ${tm_file} i386/djgpp.h"
1134 tmake_file=i386/t-djgpp
1135 gnu_ld=yes
1136 gas=yes
1137 exeext=.exe
1138 float_format=none
1139 case $host in *pc-msdosdjgpp*)
1140 target_alias=djgpp
1141 ;;
1142 esac
1143 ;;
1144 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1145 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h"
1146 tmake_file=t-libc-ok
1147 gnu_ld=yes
1148 gas=yes
1149 ;;
1150 i[34567]86-*-lynxos*)
1151 if test x$gas = xyes
1152 then
1153 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx.h i386/lynx.h"
1154 else
1155 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx-ng.h i386/lynx-ng.h"
1156 fi
1157 ;;
1158 i[34567]86-*-mach*)
1159 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/mach.h"
1160 # tmake_file=t-libc-ok
1161 use_collect2=yes
1162 ;;
1163 i[34567]86-go32-rtems* | i[34567]86-*-rtemscoff*)
1164 # would otherwise be caught by i?86-*-rtems*
1165 echo "*** Configuration $machine not supported" 1>&2
1166 exit 1
1167 ;;
1168 i[34567]86-*-rtems*)
1169 xm_defines=POSIX
1170 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
1171 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1172 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1173 if test x$enable_threads = xyes; then
1174 thread_file='rtems'
1175 fi
1176 ;;
1177 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1178 xm_defines=POSIX
1179 install_headers_dir=install-headers-cpio
1180 tm_file="${tm_file} i386/unix.h i386/att.h i386/sco5.h"
1181 if test x$gas = xyes
1182 then
1183 tm_file="usegas.h ${tm_file}"
1184 tmake_file=i386/t-sco5gas
1185 else
1186 tmake_file=i386/t-sco5
1187 fi
1188 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1189 ;;
1190 i[34567]86-*-solaris2*)
1191 xm_defines="POSIX SMALL_ARG_MAX"
1192 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h"
1193 tmake_file="i386/t-sol2 t-svr4"
1194 if test x$gnu_ld = xyes; then
1195 tmake_file="$tmake_file t-slibgcc-elf-ver"
1196 else
1197 tmake_file="$tmake_file t-slibgcc-sld"
1198 fi
1199 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1200 if test x${enable_threads} = x; then
1201 enable_threads=$have_pthread_h
1202 if test x${enable_threads} = x; then
1203 enable_threads=$have_thread_h
1204 fi
1205 fi
1206 if test x${enable_threads} = xyes; then
1207 if test x${have_pthread_h} = xyes; then
1208 thread_file='posix'
1209 else
1210 thread_file='solaris'
1211 fi
1212 fi
1213 ;;
1214 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1215 xm_defines=POSIX
1216 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1217 if test x$stabs = xyes
1218 then
1219 tm_file="${tm_file} dbx.h"
1220 fi
1221 tmake_file="i386/t-crtpic t-svr4"
1222 extra_parts="crtbegin.o crtend.o"
1223 if test x$enable_threads = xyes; then
1224 thread_file='posix'
1225 fi
1226 ;;
1227 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1228 xm_defines="POSIX SMALL_ARG_MAX"
1229 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
1230 if test x$stabs = xyes
1231 then
1232 tm_file="${tm_file} dbx.h"
1233 fi
1234 tmake_file="i386/t-crtpic t-svr4"
1235 extra_parts="crtbegin.o crtend.o"
1236 ;;
1237 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1238 xm_defines=POSIX
1239 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h i386/udk.h"
1240 tmake_file="i386/t-crtpic i386/t-udk t-svr4"
1241 extra_parts="crtbegin.o crtend.o"
1242 install_headers_dir=install-headers-cpio
1243 ;;
1244 i[34567]86-*-sysv*) # Intel 80386's running system V
1245 xm_defines=POSIX
1246 if test x$gas = xyes
1247 then
1248 if test x$stabs = xyes
1249 then
1250 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h"
1251 tmake_file=i386/t-svr3dbx
1252 extra_parts="svr3.ifile svr3z.ifile"
1253 else
1254 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h"
1255 extra_parts="crtbegin.o crtend.o"
1256 tmake_file=i386/t-crtstuff
1257 fi
1258 else
1259 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h"
1260 extra_parts="crtbegin.o crtend.o"
1261 tmake_file=i386/t-crtstuff
1262 fi
1263 tmake_file="$tmake_file i386/t-crtpic"
1264 ;;
1265 i386-*-vsta) # Intel 80386's running VSTa kernel
1266 xm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/xm-vsta.h"
1267 tm_file="${tm_file} i386/vsta.h"
1268 ;;
1269 i[34567]86-*-win32)
1270 xm_defines=POSIX
1271 xm_file=i386/xm-cygwin.h
1272 float_format=i386
1273 tmake_file=i386/t-cygwin
1274 tm_file="${tm_file} i386/win32.h"
1275 extra_objs=winnt.o
1276 if test x$enable_threads = xyes; then
1277 thread_file='win32'
1278 fi
1279 exeext=.exe
1280 ;;
1281 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1282 xm_defines=POSIX
1283 xm_file=i386/xm-cygwin.h
1284 float_format=i386
1285 tmake_file=i386/t-cygwin
1286 tm_file=i386/cygwin.h
1287 extra_objs=winnt.o
1288 if test x$enable_threads = xyes; then
1289 thread_file='win32'
1290 fi
1291 exeext=.exe
1292 ;;
1293 i[34567]86-*-mingw32*)
1294 tm_file=i386/mingw32.h
1295 float_format=i386
1296 xm_defines=POSIX
1297 xm_file=i386/xm-mingw32.h
1298 tmake_file="i386/t-cygwin i386/t-mingw32"
1299 extra_objs=winnt.o
1300 if test x$enable_threads = xyes; then
1301 thread_file='win32'
1302 fi
1303 exeext=.exe
1304 case $machine in
1305 *mingw32crt*)
1306 tm_file="${tm_file} i386/crtdll.h"
1307 ;;
1308 *minwg32msv* | *mingw32*)
1309 ;;
1310 esac
1311 ;;
1312 i[34567]86-*-uwin*)
1313 tm_file="i386/cygwin.h i386/uwin.h"
1314 tmake_file="i386/t-cygwin i386/t-uwin"
1315 extra_objs=winnt.o
1316 if test x$enable_threads = xyes; then
1317 thread_file='win32'
1318 fi
1319 exeext=.exe
1320 ;;
1321 i[34567]86-*-interix3*)
1322 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"
1323 xm_file="i386/xm-i386-interix.h"
1324 xm_defines=POSIX
1325 tmake_file="t-interix i386/t-interix"
1326 extra_objs=interix.o
1327 xmake_file="x-interix"
1328 if test x$enable_threads = xyes ; then
1329 thread_file='posix'
1330 fi
1331 if test x$stabs = xyes ; then
1332 tm_file="${tm_file} dbxcoff.h"
1333 fi
1334 ;;
1335 i[34567]86-*-interix*)
1336 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h"
1337 xm_file="i386/xm-i386-interix.h"
1338 xm_defines=POSIX
1339 tmake_file="t-interix i386/t-interix"
1340 extra_objs=interix.o
1341 if test x$enable_threads = xyes ; then
1342 thread_file='posix'
1343 fi
1344 if test x$stabs = xyes ; then
1345 tm_file="${tm_file} dbxcoff.h"
1346 fi
1347 ;;
1348 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1349 tm_file="${tm_file} i960/vx960.h"
1350 tmake_file=i960/t-vxworks960
1351 use_collect2=yes
1352 thread_file='vxworks'
1353 c_target_objs="i960-c.o"
1354 cxx_target_objs="i960-c.o"
1355 ;;
1356 i960-wrs-vxworks5* | i960-wrs-vxworks)
1357 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1358 tmake_file=i960/t-vxworks960
1359 use_collect2=yes
1360 thread_file='vxworks'
1361 c_target_objs="i960-c.o"
1362 cxx_target_objs="i960-c.o"
1363 ;;
1364 i960-wrs-vxworks*)
1365 tm_file="${tm_file} i960/vx960.h"
1366 tmake_file=i960/t-vxworks960
1367 use_collect2=yes
1368 thread_file='vxworks'
1369 c_target_objs="i960-c.o"
1370 cxx_target_objs="i960-c.o"
1371 ;;
1372 i960-*-coff*)
1373 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1374 tmake_file=i960/t-960bare
1375 c_target_objs="i960-c.o"
1376 cxx_target_objs="i960-c.o"
1377 ;;
1378 i960-*-rtems)
1379 xm_defines=POSIX
1380 tmake_file="i960/t-960bare t-rtems"
1381 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
1382 if test x$enable_threads = xyes; then
1383 thread_file='rtems'
1384 fi
1385 c_target_objs="i960-c.o"
1386 cxx_target_objs="i960-c.o"
1387 ;;
1388 i960-*-*) # Default i960 environment.
1389 use_collect2=yes
1390 tmake_file=i960/t-960bare
1391 c_target_objs="i960-c.o"
1392 cxx_target_objs="i960-c.o"
1393 ;;
1394 ia64*-*-aix*)
1395 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/aix.h"
1396 tmake_file="ia64/t-ia64 ia64/t-aix"
1397 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1398 ;;
1399 ia64*-*-elf*)
1400 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
1401 tmake_file="ia64/t-ia64"
1402 target_cpu_default="0"
1403 if test x$gas = xyes
1404 then
1405 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1406 fi
1407 if test x$gnu_ld = xyes
1408 then
1409 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1410 fi
1411 float_format=i386
1412 ;;
1413 ia64*-*-freebsd*)
1414 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
1415 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1416 tmake_file="${tmake_file} ia64/t-ia64"
1417 float_format=i386
1418 ;;
1419 ia64*-*-linux*)
1420 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
1421 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
1422 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1423 if test x$enable_threads = xyes; then
1424 thread_file='posix'
1425 fi
1426 float_format=i386
1427 ;;
1428 ia64*-*-hpux*)
1429 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
1430 tmake_file="ia64/t-ia64 ia64/t-hpux"
1431 target_cpu_default="MASK_GNU_AS"
1432 if test x$enable_threads = xyes; then
1433 thread_file='posix'
1434 fi
1435 use_collect2=no
1436 float_format=i128
1437 ;;
1438 ip2k-*-elf)
1439 ;;
1440 m32r-*-elf*)
1441 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1442 extra_parts="crtinit.o crtfini.o"
1443 ;;
1444 # m68hc11 and m68hc12 share the same machine description.
1445 m68hc11-*-*|m6811-*-*)
1446 tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
1447 tm_p_file="m68hc11/m68hc11-protos.h"
1448 md_file="m68hc11/m68hc11.md"
1449 out_file="m68hc11/m68hc11.c"
1450 tmake_file="m68hc11/t-m68hc11-gas"
1451 ;;
1452 m68hc12-*-*|m6812-*-*)
1453 tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
1454 tm_p_file="m68hc11/m68hc11-protos.h"
1455 md_file="m68hc11/m68hc11.md"
1456 out_file="m68hc11/m68hc11.c"
1457 tmake_file="m68hc11/t-m68hc11-gas"
1458 ;;
1459 m68000-hp-bsd*) # HP 9000/200 running BSD
1460 tm_file=m68k/hp2bsd.h
1461 use_collect2=yes
1462 ;;
1463 m68000-hp-hpux*) # HP 9000 series 300
1464 xm_defines=POSIX
1465 if test x$gas = xyes
1466 then
1467 tm_file=m68k/hp310g.h
1468 else
1469 tm_file=m68k/hp310.h
1470 fi
1471 tmake_file=m68k/t-hp320
1472 install_headers_dir=install-headers-cpio
1473 use_collect2=yes
1474 ;;
1475 m68000-sun-sunos3*)
1476 tm_file=m68k/sun2.h
1477 use_collect2=yes
1478 ;;
1479 m68000-sun-sunos4*)
1480 tm_file=m68k/sun2o4.h
1481 use_collect2=yes
1482 ;;
1483 m68000-att-sysv*)
1484 xm_defines=POSIX
1485 if test x$gas = xyes
1486 then
1487 tm_file=m68k/3b1g.h
1488 else
1489 tm_file=m68k/3b1.h
1490 fi
1491 use_collect2=yes
1492 ;;
1493 m68k-atari-sysv4*) # Atari variant of V.4.
1494 tm_file=m68k/atari.h
1495 xm_defines=POSIX
1496 tmake_file=t-svr4
1497 extra_parts="crtbegin.o crtend.o"
1498 float_format=m68k
1499 ;;
1500 m68k-apollo-sysv* | m68k-bull-sysv*)
1501 # can otherwise be caught by m68k-*-sysv4*
1502 echo "*** Configuration $machine not supported" 1>&2
1503 exit 1
1504 ;;
1505 m68k-motorola-sysv*)
1506 tm_file=m68k/mot3300.h
1507 xm_defines=POSIX
1508 if test x$gas = xyes
1509 then
1510 if test x$gnu_ld = xyes
1511 then
1512 tmake_file=m68k/t-mot3300-gald
1513 else
1514 tmake_file=m68k/t-mot3300-gas
1515 use_collect2=yes
1516 fi
1517 else
1518 if test x$gnu_ld = xyes
1519 then
1520 tmake_file=m68k/t-mot3300-gld
1521 else
1522 tmake_file=m68k/t-mot3300
1523 use_collect2=yes
1524 fi
1525 fi
1526 gdb_needs_out_file_path=yes
1527 extra_parts="crt0.o mcrt0.o"
1528 float_format=m68k
1529 ;;
1530 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1531 tm_file=m68k/tower-as.h
1532 xm_defines=POSIX
1533 extra_parts="crtbegin.o crtend.o"
1534 ;;
1535 m68k-plexus-sysv*)
1536 tm_file=m68k/plexus.h
1537 xm_defines=POSIX
1538 use_collect2=yes
1539 ;;
1540 m68k-tti-*)
1541 tm_file=m68k/pbb.h
1542 xm_defines=POSIX
1543 ;;
1544 m68k-crds-unos*)
1545 xm_defines=POSIX
1546 tm_file=m68k/crds.h
1547 use_collect2=yes
1548 ;;
1549 m68k-cbm-sysv4*) # Commodore variant of V.4.
1550 tm_file=m68k/amix.h
1551 xm_defines=POSIX
1552 tmake_file=t-svr4
1553 extra_parts="crtbegin.o crtend.o"
1554 float_format=m68k
1555 ;;
1556 m68k-ccur-rtu)
1557 tm_file=m68k/ccur-GAS.h
1558 use_collect2=yes
1559 float_format=m68k
1560 ;;
1561 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1562 tm_file=m68k/hp3bsd44.h
1563 use_collect2=yes
1564 float_format=m68k
1565 ;;
1566 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1567 tm_file=m68k/hp3bsd.h
1568 use_collect2=yes
1569 float_format=m68k
1570 ;;
1571 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1572 xm_defines=POSIX
1573 if test x$gas = xyes
1574 then
1575 xmake_file=m68k/x-hp320g
1576 tm_file=m68k/hp320g.h
1577 else
1578 xmake_file=m68k/x-hp320
1579 tm_file=m68k/hpux7.h
1580 fi
1581 install_headers_dir=install-headers-cpio
1582 use_collect2=yes
1583 float_format=m68k
1584 ;;
1585 m68k-hp-hpux*) # HP 9000 series 300
1586 xm_defines=POSIX
1587 if test x$gas = xyes
1588 then
1589 xmake_file=m68k/x-hp320g
1590 tm_file=m68k/hp320g.h
1591 else
1592 xmake_file=m68k/x-hp320
1593 tm_file=m68k/hp320.h
1594 fi
1595 install_headers_dir=install-headers-cpio
1596 use_collect2=yes
1597 float_format=m68k
1598 ;;
1599 m68k-sun-mach*)
1600 tm_file=m68k/sun3mach.h
1601 use_collect2=yes
1602 float_format=m68k
1603 ;;
1604 m68k-sun-sunos3*)
1605 if test x$with_fp = xno
1606 then
1607 tm_file=m68k/sun3n3.h
1608 else
1609 tm_file=m68k/sun3o3.h
1610 float_format=m68k
1611 fi
1612 use_collect2=yes
1613 ;;
1614 m68k-sun-sunos*) # For SunOS 4 (the default).
1615 if test x$with_fp = xno
1616 then
1617 tm_file=m68k/sun3n.h
1618 else
1619 tm_file=m68k/sun3.h
1620 float_format=m68k
1621 fi
1622 use_collect2=yes
1623 ;;
1624 m68k-wrs-vxworks*)
1625 tm_file=m68k/vxm68k.h
1626 tmake_file=m68k/t-vxworks68
1627 thread_file='vxworks'
1628 float_format=m68k
1629 ;;
1630 m68k-*-aout*)
1631 tmake_file=m68k/t-m68kbare
1632 tm_file="m68k/m68k-aout.h libgloss.h"
1633 float_format=m68k
1634 ;;
1635 m68k-*-coff*)
1636 tmake_file=m68k/t-m68kbare
1637 tm_file="m68k/m68k-coff.h dbx.h"
1638 float_format=m68k
1639 ;;
1640 m68020-*-elf* | m68k-*-elf*)
1641 tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
1642 xm_defines=POSIX
1643 tmake_file=m68k/t-m68kelf
1644 extra_parts="crtbegin.o crtend.o"
1645 ;;
1646 m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
1647 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
1648 case $machine in
1649 m68010*)
1650 target_cpu_default="0"
1651 ;;
1652 *)
1653 target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
1654 ;;
1655 esac
1656 float_format=m68k
1657 ;;
1658 m68k*-*-netbsd*)
1659 tm_file=m68k/netbsd.h
1660 tmake_file=t-netbsd
1661 float_format=m68k
1662 use_collect2=yes
1663 ;;
1664 m68k*-*-openbsd*)
1665 # needed to unconfuse gdb
1666 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1667 float_format=m68k
1668 # we need collect2 until our bug is fixed...
1669 use_collect2=yes
1670 ;;
1671 m68k-*-sysv4*) # Motorola m68k's running system V.4
1672 tm_file=m68k/m68kv4.h
1673 xm_defines=POSIX
1674 tmake_file=t-svr4
1675 extra_parts="crtbegin.o crtend.o"
1676 float_format=m68k
1677 ;;
1678 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1679 # with a.out format
1680 tm_file=m68k/linux-aout.h
1681 tmake_file="t-linux-aout m68k/t-linux-aout"
1682 float_format=m68k
1683 gnu_ld=yes
1684 ;;
1685 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
1686 # with ELF format using the
1687 # GNU/Linux C library 5
1688 tm_file=m68k/linux.h
1689 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux"
1690 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1691 float_format=m68k
1692 gnu_ld=yes
1693 ;;
1694 m68k-*-linux*) # Motorola m68k's running GNU/Linux
1695 # with ELF format using glibc 2
1696 # aka the GNU/Linux C library 6.
1697 tm_file=m68k/linux.h
1698 tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux"
1699 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1700 float_format=m68k
1701 gnu_ld=yes
1702 if test x$enable_threads = xyes; then
1703 thread_file='posix'
1704 fi
1705 ;;
1706 m68k-*-psos*)
1707 tmake_file=m68k/t-m68kbare
1708 tm_file=m68k/m68k-psos.h
1709 float_format=m68k
1710 ;;
1711 m68k-*-rtemscoff*) # would otherwise be caught by m68k-*-rtems*
1712 echo "*** Configuration $machine not supported" 1>&2
1713 exit 1
1714 ;;
1715 m68k-*-rtems*)
1716 xm_defines=POSIX
1717 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
1718 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"
1719 float_format=m68k
1720 extra_parts="crtbegin.o crtend.o"
1721 if test x$enable_threads = xyes; then
1722 thread_file='rtems'
1723 fi
1724 ;;
1725 m88k-*-aout*)
1726 xm_defines=POSIX
1727 tm_file=m88k/m88k-aout.h
1728 ;;
1729 m88k-*-openbsd*)
1730 tmake_file="${tmake_file} m88k/t-luna-gas"
1731 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
1732 ;;
1733 m88k-*-sysv4*)
1734 xm_defines=POSIX
1735 tm_file="dbxelf.h elfos.h svr4.h m88k/sysv4.h"
1736 extra_parts="crtbegin.o crtend.o"
1737 tmake_file=m88k/t-sysv4
1738 ;;
1739 mcore-*-elf)
1740 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
1741 tmake_file=mcore/t-mcore
1742 ;;
1743 mcore-*-pe*)
1744 tm_file=mcore/mcore-pe.h
1745 tmake_file=mcore/t-mcore-pe
1746 ;;
1747 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1748 if test "x$gnu_ld" = xyes
1749 then
1750 tm_file="mips/iris6.h mips/iris6gld.h"
1751 else
1752 tm_file=mips/iris6.h
1753 fi
1754 tmake_file="mips/t-iris mips/t-iris6"
1755 xm_defines=POSIX
1756 # if test x$enable_threads = xyes; then
1757 # thread_file='irix'
1758 # fi
1759 ;;
1760 mips-wrs-vxworks)
1761 tm_file="mips/elf.h mips/vxworks.h"
1762 tmake_file=mips/t-ecoff
1763 gas=yes
1764 gnu_ld=yes
1765 extra_parts="crtbegin.o crtend.o"
1766 thread_file='vxworks'
1767 ;;
1768 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1769 tm_file="mips/iris6.h mips/cross64.h"
1770 xm_defines=POSIX
1771 xm_file=mips/xm-iris5.h
1772 tmake_file="mips/t-iris mips/t-cross64"
1773 # See comment in mips/iris[56].h files.
1774 use_collect2=yes
1775 # if test x$enable_threads = xyes; then
1776 # thread_file='irix'
1777 # fi
1778 ;;
1779 mips-sni-sysv4)
1780 if test x$gas = xyes
1781 then
1782 if test x$stabs = xyes
1783 then
1784 tm_file=mips/iris5gdb.h
1785 else
1786 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1787 fi
1788 else
1789 tm_file=mips/sni-svr4.h
1790 fi
1791 xm_defines=POSIX
1792 if test x$gnu_ld != xyes
1793 then
1794 use_collect2=yes
1795 fi
1796 ;;
1797 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1798 if test x$gas = xyes
1799 then
1800 tm_file="mips/iris5.h mips/iris5gas.h"
1801 if test x$stabs = xyes
1802 then
1803 tm_file="${tm_file} dbx.h"
1804 fi
1805 else
1806 tm_file=mips/iris5.h
1807 fi
1808 tmake_file=mips/t-iris
1809 xm_defines=POSIX
1810 xm_file=mips/xm-iris5.h
1811 # mips-tfile doesn't work yet
1812 # See comment in mips/iris5.h file.
1813 use_collect2=yes
1814 # if test x$enable_threads = xyes; then
1815 # thread_file='irix'
1816 # fi
1817 ;;
1818 mips-sgi-*) # would otherwise be caught by mips-*-elf*
1819 echo "*** Configuration $machine not supported" 1>&2
1820 exit 1
1821 ;;
1822 mips*-*-netbsd*) # NetBSD/mips, either endian.
1823 tm_file="elfos.h mips/netbsd.h"
1824 tmake_file="${tmake_file} mips/t-netbsd"
1825 ;;
1826 mips*-*-linux*) # Linux MIPS, either endian.
1827 tm_file="dbxelf.h elfos.h svr4.h linux.h mips/linux.h"
1828 case $machine in
1829 mipsisa32*-*)
1830 tm_file="$tm_file mips/isa32-linux.h"
1831 target_cpu_default="MASK_SOFT_FLOAT"
1832 ;;
1833 esac
1834 tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux"
1835 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1836 gnu_ld=yes
1837 gas=yes
1838 if test x$enable_threads = xyes; then
1839 thread_file='posix'
1840 fi
1841 ;;
1842 mips*el-*-openbsd*) # mips little endian
1843 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1844 ;;
1845 mips*-*-openbsd*) # mips big endian
1846 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1847 tm_file="mips/openbsd-be.h ${tm_file}"
1848 ;;
1849 mips-*-ecoff* | mipsel-*-ecoff*)
1850 tm_file="gofast.h mips/ecoff.h"
1851 if test x$stabs = xyes; then
1852 tm_file="${tm_file} dbx.h"
1853 fi
1854 tmake_file=mips/t-ecoff
1855 ;;
1856 mipsisa32-*-elf* | mipsisa32el-*-elf*)
1857 tm_file="mips/isa3264.h mips/abi64.h"
1858 tmake_file=mips/t-isa3264
1859 target_cpu_default="MASK_SOFT_FLOAT"
1860 ;;
1861 mipsisa64-*-elf* | mipsisa64el-*-elf*)
1862 tm_file="mips/isa3264.h mips/abi64.h"
1863 tmake_file=mips/t-isa3264
1864 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1865 tm_defines="MIPS_ISA_DEFAULT=64"
1866 ;;
1867 mips-*-elf* | mipsel-*-elf*)
1868 tm_file="mips/elf.h"
1869 tmake_file=mips/t-elf
1870 ;;
1871 mips64-*-elf* | mips64el-*-elf*)
1872 tm_file="mips/elf64.h"
1873 tmake_file=mips/t-elf
1874 ;;
1875 mips64orion-*-elf* | mips64orionel-*-elf*)
1876 tm_file="mips/elforion.h mips/elf64.h"
1877 tmake_file=mips/t-elf
1878 ;;
1879 mips64orion-*-rtems*)
1880 xm_defines=POSIX
1881 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h rtems.h"
1882 tmake_file="mips/t-elf t-rtems"
1883 if test x$enable_threads = xyes; then
1884 thread_file='rtems'
1885 fi
1886 ;;
1887 mips*-*-rtems*)
1888 xm_defines=POSIX
1889 tm_file="mips/elf.h mips/rtems.h rtems.h"
1890 tmake_file="mips/t-elf t-rtems"
1891 if test x$enable_threads = xyes; then
1892 thread_file='rtems'
1893 fi
1894 ;;
1895 mipstx39-*-elf* | mipstx39el-*-elf*)
1896 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
1897 tmake_file=mips/t-r3900
1898 ;;
1899 mmix-knuth-mmixware)
1900 ;;
1901 mn10200-*-*)
1902 float_format=i32
1903 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1904 if test x$stabs = xyes
1905 then
1906 tm_file="${tm_file} dbx.h"
1907 fi
1908 use_collect2=no
1909 ;;
1910 mn10300-*-*)
1911 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1912 if test x$stabs = xyes
1913 then
1914 tm_file="${tm_file} dbx.h"
1915 fi
1916 use_collect2=no
1917 ;;
1918 ns32k-*-netbsdelf*)
1919 echo "GCC does not yet support the ${machine} target"; exit 1
1920 ;;
1921 ns32k-*-netbsd*)
1922 tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
1923 # On NetBSD, the headers are already okay, except for math.h.
1924 tmake_file=t-netbsd
1925 use_collect2=yes
1926 ;;
1927 pdp11-*-bsd)
1928 tm_file="${tm_file} pdp11/2bsd.h"
1929 ;;
1930 pdp11-*-*)
1931 ;;
1932 avr-*-*)
1933 ;;
1934 ns32k-*-openbsd*)
1935 # Nothing special
1936 ;;
1937 romp-*-openbsd*)
1938 # Nothing special
1939 ;;
1940 powerpc-*-openbsd*)
1941 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
1942 extra_headers=
1943 ;;
1944 powerpc64-*-linux*)
1945 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux64.h"
1946 out_file=rs6000/rs6000.c
1947 tmake_file="rs6000/t-rs6000 t-slibgcc-elf-ver t-linux rs6000/t-linux64"
1948 ;;
1949 powerpc64-*-gnu*)
1950 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"
1951 out_file=rs6000/rs6000.c
1952 tmake_file="rs6000/t-rs6000 t-slibgcc-elf-ver t-gnu rs6000/t-linux64"
1953 ;;
1954 powerpc-*-beos*)
1955 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
1956 xm_defines=POSIX
1957 tmake_file=rs6000/t-beos
1958 extra_headers=
1959 ;;
1960 powerpc-*-darwin*)
1961 tm_file="${tm_file} darwin.h rs6000/darwin.h"
1962 tm_p_file="${tm_p_file} darwin-protos.h"
1963 tmake_file=rs6000/t-darwin
1964 extra_objs="darwin.o"
1965 config_gtfiles="${config_gtfiles} \$(srcdir)/config/darwin.c"
1966 c_target_objs="darwin-c.o"
1967 cxx_target_objs="darwin-c.o"
1968 # Darwin linker does collect2 functionality
1969 use_collect2=no
1970 extra_headers=altivec.h
1971 ;;
1972 powerpc*-*-freebsd*)
1973 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
1974 xm_file=rs6000/xm-sysv4.h
1975 out_file=rs6000/rs6000.c
1976 tmake_file="rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1977 ;;
1978 powerpc-*-sysv*)
1979 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1980 xm_defines=POSIX
1981 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
1982 ;;
1983 powerpc-*-netbsd*)
1984 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
1985 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
1986 ;;
1987 powerpc-*-chorusos*)
1988 xm_defines=POSIX
1989 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
1990 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
1991 case x${enable_threads} in
1992 xyes | xpthreads | xposix)
1993 thread_file='posix'
1994 ;;
1995 esac
1996 ;;
1997 powerpc-*-eabiaix*)
1998 xm_defines=POSIX
1999 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
2000 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2001 ;;
2002 powerpc-*-eabisimaltivec*)
2003 xm_defines=POSIX
2004 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h rs6000/eabialtivec.h"
2005 tmake_file="rs6000/t-ppcendian rs6000/t-ppccomm"
2006 ;;
2007 powerpc-*-eabisim*)
2008 xm_defines=POSIX
2009 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
2010 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2011 ;;
2012 powerpc-*-elf*)
2013 xm_defines=POSIX
2014 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
2015 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2016 ;;
2017 powerpc-*-eabialtivec*)
2018 xm_defines=POSIX
2019 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
2020 tmake_file="rs6000/t-ppcendian rs6000/t-ppccomm"
2021 ;;
2022 powerpc-*-eabi*)
2023 xm_defines=POSIX
2024 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
2025 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2026 ;;
2027 powerpc-*-rtems*)
2028 xm_defines=POSIX
2029 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
2030 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2031 if test x$enable_threads = xyes; then
2032 thread_file='rtems'
2033 fi
2034 ;;
2035 powerpc-*-linux*libc1)
2036 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
2037 out_file=rs6000/rs6000.c
2038 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2039 if test x$enable_threads = xyes; then
2040 thread_file='posix'
2041 fi
2042 ;;
2043 powerpc-*-linux-gnualtivec*)
2044 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
2045 out_file=rs6000/rs6000.c
2046 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2047 if test x$enable_threads = xyes; then
2048 thread_file='posix'
2049 fi
2050 ;;
2051 powerpc-*-linux*)
2052 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
2053 out_file=rs6000/rs6000.c
2054 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
2055 if test x$enable_threads = xyes; then
2056 thread_file='posix'
2057 fi
2058 ;;
2059 powerpc-*-gnu-gnualtivec*)
2060 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"
2061 out_file=rs6000/rs6000.c
2062 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
2063 if test x$enable_threads = xyes; then
2064 thread_file='posix'
2065 fi
2066 ;;
2067 powerpc-*-gnu*)
2068 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"
2069 out_file=rs6000/rs6000.c
2070 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
2071 if test x$enable_threads = xyes; then
2072 thread_file='posix'
2073 fi
2074 ;;
2075 powerpc-wrs-vxworks*)
2076 xm_defines=POSIX
2077 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/vxppc.h"
2078 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2079 thread_file='vxworks'
2080 ;;
2081 powerpc-wrs-windiss*)
2082 xm_defines=POSIX
2083 tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h"
2084 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2085 thread_file=""
2086 ;;
2087 powerpcle-wrs-vxworks*)
2088 xm_defines=POSIX
2089 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
2090 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2091 thread_file='vxworks'
2092 ;;
2093 powerpcle-*-sysv*)
2094 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
2095 xm_defines=POSIX
2096 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2097 ;;
2098 powerpcle-*-elf*)
2099 xm_defines=POSIX
2100 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
2101 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2102 ;;
2103 powerpcle-*-eabisim*)
2104 xm_defines=POSIX
2105 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
2106 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2107 ;;
2108 powerpcle-*-eabi*)
2109 xm_defines=POSIX
2110 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
2111 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2112 ;;
2113 rs6000-ibm-aix3.[01]*)
2114 xm_defines=POSIX
2115 tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h rs6000/xcoff.h"
2116 float_format=none
2117 use_collect2=yes
2118 ;;
2119 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2120 xm_defines=POSIX
2121 tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h rs6000/xcoff.h"
2122 tmake_file=rs6000/t-newas
2123 float_format=none
2124 use_collect2=yes
2125 extra_headers=
2126 ;;
2127 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2128 xm_defines=POSIX
2129 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
2130 tmake_file=rs6000/t-newas
2131 float_format=none
2132 use_collect2=yes
2133 extra_headers=
2134 ;;
2135 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2136 xm_defines=POSIX
2137 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
2138 tmake_file=rs6000/t-aix43
2139 float_format=none
2140 use_collect2=yes
2141 thread_file='aix'
2142 extra_headers=
2143 ;;
2144 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2145 xm_defines=POSIX
2146 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
2147 tmake_file=rs6000/t-aix43
2148 float_format=none
2149 use_collect2=yes
2150 thread_file='aix'
2151 extra_headers=
2152 ;;
2153 rs6000-ibm-aix*)
2154 xm_defines=POSIX
2155 tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2156 float_format=none
2157 use_collect2=yes
2158 ;;
2159 rs6000-bull-bosx)
2160 xm_defines=POSIX
2161 tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
2162 float_format=none
2163 use_collect2=yes
2164 ;;
2165 rs6000-*-mach*)
2166 tm_file="${tm_file} rs6000/mach.h"
2167 xm_defines=POSIX
2168 use_collect2=yes
2169 ;;
2170 rs6000-*-lynxos*)
2171 tm_file="lynx.h rs6000/lynx.h"
2172 tmake_file=rs6000/t-rs6000
2173 use_collect2=yes
2174 ;;
2175 s390-*-linux*)
2176 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
2177 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux"
2178 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
2179 if test x$enable_threads = xyes; then
2180 thread_file='posix'
2181 fi
2182 ;;
2183 s390x-*-linux*)
2184 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
2185 tm_p_file=s390/s390-protos.h
2186 md_file=s390/s390.md
2187 extra_modes=s390/s390-modes.def
2188 out_file=s390/s390.c
2189 tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux s390/t-linux64"
2190 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
2191 if test x$enable_threads = xyes; then
2192 thread_file='posix'
2193 fi
2194 ;;
2195 sh-*-elf* | sh[2346l]*-*-elf*)
2196 tmake_file="sh/t-sh sh/t-elf"
2197 case $machine in
2198 shl* | sh64l*)
2199 tm_file="sh/little.h ${tm_file}"
2200 tmake_file="${tmake_file} sh/t-le"
2201 ;;
2202 esac
2203 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h"
2204 float_format=sh
2205 case $machine in
2206 sh64*)
2207 tmake_file="${tmake_file} sh/t-sh64"
2208 tm_file="${tm_file} sh/sh64.h"
2209 extra_headers="shmedia.h ushmedia.h sshmedia.h"
2210 # Not strictly necessary to check this, but a good idea anyway.
2211 if test $machine = $target; then
2212 target_requires_64bit_host_wide_int=yes
2213 fi
2214 ;;
2215 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
2216 sh4*) target_cpu_default="SELECT_SH4" ;;
2217 sh3e*) target_cpu_default="SELECT_SH3E" ;;
2218 sh3*) target_cpu_default="SELECT_SH3" ;;
2219 sh2*) target_cpu_default="SELECT_SH2" ;;
2220 esac
2221 case $machine in
2222 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
2223 esac
2224 ;;
2225 sh-*-rtemself*)
2226 xm_defines=POSIX
2227 tmake_file="sh/t-sh sh/t-elf t-rtems"
2228 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h sh/rtemself.h rtems.h"
2229 float_format=sh
2230 if test x$enable_threads = xyes; then
2231 thread_file='rtems'
2232 fi
2233 ;;
2234 sh-*-rtems*)
2235 xm_defines=POSIX
2236 tmake_file="sh/t-sh t-rtems"
2237 tm_file="${tm_file} sh/coff.h sh/rtems.h rtems.h"
2238 float_format=sh
2239 if test x$enable_threads = xyes; then
2240 thread_file='rtems'
2241 fi
2242 ;;
2243 sh-*-linux* | sh[2346lbe]*-*-linux*)
2244 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
2245 case $machine in
2246 sh*be-*-* | sh*eb-*-*) ;;
2247 *)
2248 tm_file="sh/little.h ${tm_file}"
2249 tmake_file="${tmake_file} sh/t-le"
2250 ;;
2251 esac
2252 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
2253 gas=yes gnu_ld=yes
2254 if test x$enable_threads = xyes; then
2255 thread_file='posix'
2256 fi
2257 float_format=sh
2258 case $machine in
2259 sh64*)
2260 tmake_file="${tmake_file} sh/t-sh64"
2261 tm_file="${tm_file} sh/sh64.h"
2262 extra_headers="shmedia.h ushmedia.h sshmedia.h"
2263 # Not strictly necessary to check this, but a good idea anyway.
2264 if test $machine = $target; then
2265 target_requires_64bit_host_wide_int=yes
2266 fi
2267 ;;
2268 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
2269 sh4*) target_cpu_default="SELECT_SH4" ;;
2270 sh3e[lb]e*) target_cpu_default="SELECT_SH3E" ;;
2271 sh3e[lb]*) target_cpu_default="SELECT_SH3" ;;
2272 sh3e*) target_cpu_default="SELECT_SH3E" ;;
2273 sh3*) target_cpu_default="SELECT_SH3" ;;
2274 sh2*) target_cpu_default="SELECT_SH2" ;;
2275 esac
2276 case $machine in
2277 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
2278 esac
2279 ;;
2280 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2281 sh64-*-netbsd* | sh64l*-*-netbsd*)
2282 tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h netbsd.h netbsd-elf.h sh/netbsd-elf.h"
2283 tmake_file="${tmake_file} sh/t-sh sh/t-elf"
2284 case $machine in
2285 sh*l*-*)
2286 tm_file="sh/little.h ${tm_file}"
2287 tmake_file="${tmake_file} sh/t-le"
2288 ;;
2289 *)
2290 tmake_file="${tmake_file} sh/t-be"
2291 ;;
2292 esac
2293 case $machine in
2294 sh5*-*)
2295 # SHmedia, 32-bit ABI
2296 target_cpu_default="SH5_BIT|SH4_BIT|SH3E_BIT"
2297 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5"
2298 ;;
2299 sh64*-*)
2300 # SHmedia, 64-bit ABI
2301 target_cpu_default="SH5_BIT|SH4_BIT"
2302 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5 sh/t-netbsd-sh5-64"
2303 ;;
2304 *)
2305 # SH3, software floating point
2306 target_cpu_default="SH1_BIT|SH2_BIT|SH3_BIT"
2307 tmake_file="${tmake_file} sh/t-netbsd"
2308 ;;
2309 esac
2310 float_format=sh
2311 ;;
2312 sh-*-*)
2313 tm_file="${tm_file} sh/coff.h"
2314 float_format=sh
2315 ;;
2316 sparc-tti-*)
2317 tm_file="${tm_file} sparc/pbd.h"
2318 xm_defines=POSIX
2319 ;;
2320 sparc64-wrs-vxworks*)
2321 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/biarch64.h gofast.h sparc/vxsparc64.h"
2322 tmake_file="sparc/t-vxsparc64 sparc/t-crtfm"
2323 use_collect2=yes
2324 ;;
2325 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2326 tm_file="${tm_file} aoutos.h sparc/aout.h gofast.h sparc/vxsparc.h"
2327 tmake_file=sparc/t-vxsparc
2328 use_collect2=yes
2329 thread_file='vxworks'
2330 ;;
2331 sparc-*-aout*)
2332 tmake_file=sparc/t-sparcbare
2333 tm_file="sparc/sparc.h aoutos.h sparc/aout.h libgloss.h"
2334 ;;
2335 sparc-*-netbsdelf*)
2336 tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2337 ;;
2338 sparc-*-netbsd*)
2339 tm_file="${tm_file} sparc/aout.h netbsd.h netbsd-aout.h sparc/netbsd.h"
2340 tmake_file=t-netbsd
2341 use_collect2=yes
2342 ;;
2343 sparc-*-openbsd*)
2344 tm_file="sparc/sparc.h ${tm_file}"
2345 # needed to unconfuse gdb
2346 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
2347 # we need collect2 until our bug is fixed...
2348 use_collect2=yes
2349 ;;
2350 sparc64-*-openbsd*)
2351 tm_file="sparc/openbsd1-64.h sparc/sparc.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sp64-elf.h openbsd.h sparc/openbsd64.h"
2352 xm_file=sparc/xm-sp64.h
2353 gas=yes gnu_ld=yes
2354 with_cpu=ultrasparc
2355 float_format=i128
2356 ;;
2357 sparc-*-bsd*)
2358 tm_file="${tm_file} sparc/bsd.h"
2359 ;;
2360 sparc-*-chorusos*)
2361 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h chorus.h"
2362 tmake_file="sparc/t-chorus-elf sparc/t-crtfm"
2363 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2364 float_format=i64
2365 case x${enable_threads} in
2366 xyes | xpthreads | xposix)
2367 thread_file='posix'
2368 ;;
2369 esac
2370 ;;
2371 sparc-*-elf*)
2372 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h"
2373 tmake_file="sparc/t-elf sparc/t-crtfm"
2374 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2375 #float_format=i128
2376 float_format=i64
2377 ;;
2378 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
2379 tm_file="aoutos.h sparc/sparc.h sparc/aout.h sparc/linux-aout.h"
2380 gnu_ld=yes
2381 ;;
2382 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
2383 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
2384 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 sparc/t-crtfm"
2385 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2386 gnu_ld=yes
2387 float_format=sparc
2388 ;;
2389 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
2390 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
2391 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
2392 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
2393 gnu_ld=yes
2394 if test x$enable_threads = xyes; then
2395 thread_file='posix'
2396 fi
2397 float_format=sparc
2398 ;;
2399 sparc-*-lynxos*)
2400 if test x$gas = xyes
2401 then
2402 tm_file="${tm_file} lynx.h sparc/aout.h sparc/lynx.h"
2403 else
2404 tm_file="${tm_file} lynx-ng.h sparc/aout.h sparc/lynx-ng.h"
2405 fi
2406 tmake_file=sparc/t-sunos41
2407 ;;
2408 sparc-*-rtemsaout*) # would otherwise be caught by sparc-*-rtems*
2409 echo "*** Configuration $machine not supported" 1>&2
2410 exit 1
2411 ;;
2412 sparc-*-rtems*)
2413 xm_defines=POSIX
2414 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h"
2415 tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
2416 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2417 #float_format=i128
2418 float_format=i64
2419 if test x$enable_threads = xyes; then
2420 thread_file='rtems'
2421 fi
2422 ;;
2423 sparc64-*-solaris2* | sparcv9-*-solaris2*)
2424 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h"
2425 if test x$gnu_ld = xyes; then
2426 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
2427 fi
2428 if test x$gas = xyes; then
2429 tm_file="${tm_file} sparc/sol2-gas-bi.h"
2430 fi
2431 xm_defines=POSIX
2432 tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
2433 if test x$gnu_ld = xyes; then
2434 tmake_file="$tmake_file t-slibgcc-elf-ver"
2435 else
2436 tmake_file="$tmake_file t-slibgcc-sld"
2437 fi
2438 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2439 float_format=i128
2440 if test x${enable_threads} = x ; then
2441 enable_threads=$have_pthread_h
2442 if test x${enable_threads} = x ; then
2443 enable_threads=$have_thread_h
2444 fi
2445 fi
2446 if test x${enable_threads} = xyes ; then
2447 if test x${have_pthread_h} = xyes ; then
2448 thread_file='posix'
2449 else
2450 thread_file='solaris'
2451 fi
2452 fi
2453 ;;
2454 sparc-hal-solaris2*)
2455 xm_defines=POSIX
2456 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/hal.h"
2457 tmake_file="sparc/t-halos sparc/t-sol2 sparc/t-crtfm"
2458 if test x$gnu_ld = xyes; then
2459 tm_file="${tm_file} sparc/sol2-gld.h"
2460 tmake_file="$tmake_file t-slibgcc-elf-ver"
2461 else
2462 tmake_file="$tmake_file t-slibgcc-sld"
2463 fi
2464 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
2465 float_format=i128
2466 thread_file='solaris'
2467 ;;
2468 sparc-*-solaris2*)
2469 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h"
2470 if test x$gnu_ld = xyes; then
2471 tm_file="${tm_file} sparc/sol2-gld.h"
2472 fi
2473 tmake_file="sparc/t-sol2 sparc/t-crtfm"
2474 if test x$gnu_ld = xyes; then
2475 tmake_file="$tmake_file t-slibgcc-elf-ver"
2476 else
2477 tmake_file="$tmake_file t-slibgcc-sld"
2478 fi
2479 case $machine in
2480 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
2481 if test x$gnu_ld = xno; then
2482 tm_file="${tm_file} sparc/sol26-sld.h"
2483 fi
2484 ;;
2485 *-*-solaris2.[789])
2486 tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
2487 if test x$gnu_ld = xyes; then
2488 tm_file="${tm_file} sparc/sol2-gld-bi.h"
2489 fi
2490 if test x$gas = xyes; then
2491 tm_file="${tm_file} sparc/sol2-gas-bi.h"
2492 fi
2493 tmake_file="$tmake_file sparc/t-sol2-64"
2494 ;;
2495 esac
2496 xm_defines=POSIX
2497 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2498 float_format=i128
2499 if test x${enable_threads} = x; then
2500 enable_threads=$have_pthread_h
2501 if test x${enable_threads} = x; then
2502 enable_threads=$have_thread_h
2503 fi
2504 fi
2505 if test x${enable_threads} = xyes; then
2506 if test x${have_pthread_h} = xyes; then
2507 thread_file='posix'
2508 else
2509 thread_file='solaris'
2510 fi
2511 fi
2512 ;;
2513 sparc-*-sunos4.0*)
2514 tm_file="${tm_file} sparc/aout.h sparc/sunos4.h"
2515 use_collect2=yes
2516 ;;
2517 sparc-*-sunos4*)
2518 tm_file="${tm_file} sparc/aout.h sparc/sunos4.h"
2519 tmake_file=sparc/t-sunos41
2520 use_collect2=yes
2521 if test x$gas = xyes; then
2522 tm_file="${tm_file} sparc/sun4gas.h"
2523 fi
2524 ;;
2525 sparc-*-sunos3*)
2526 tm_file="${tm_file} sparc/aout.h sparc/sun4o3.h"
2527 use_collect2=yes
2528 ;;
2529 sparc-*-sysv4*)
2530 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h"
2531 xm_defines=POSIX
2532 tmake_file=t-svr4
2533 extra_parts="crtbegin.o crtend.o"
2534 ;;
2535 sparc-*-vxsim*)
2536 xm_defines=POSIX
2537 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/vxsim.h"
2538 tmake_file=sparc/t-vxsparc
2539 ;;
2540 sparclet-*-aout*)
2541 tm_file="${tm_file} aoutos.h sparc/aout.h sparc/splet.h libgloss.h"
2542 tmake_file=sparc/t-splet
2543 ;;
2544 sparclite-*-coff*)
2545 tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
2546 tmake_file=sparc/t-sparclite
2547 ;;
2548 sparclite-*-aout*)
2549 tm_file="${tm_file} gofast.h sparc/aout.h sparc/lite.h aoutos.h libgloss.h"
2550 tmake_file=sparc/t-sparclite
2551 ;;
2552 sparclite-*-elf*)
2553 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h gofast.h sparc/liteelf.h"
2554 tmake_file="sparc/t-sparclite sparc/t-crtfm"
2555 extra_parts="crtbegin.o crtend.o"
2556 ;;
2557 sparc86x-*-aout*)
2558 tm_file="${tm_file} gofast.h sparc/aout.h sparc/sp86x-aout.h aoutos.h libgloss.h"
2559 tmake_file=sparc/t-sp86x
2560 ;;
2561 sparc86x-*-elf*)
2562 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h gofast.h sparc/sp86x-elf.h"
2563 tmake_file="sparc/t-sp86x sparc/t-crtfm"
2564 extra_parts="crtbegin.o crtend.o"
2565 ;;
2566 sparc64-*-aout*)
2567 tm_file="sparc/sparc.h aoutos.h sparc/aout.h sparc/sp64-aout.h"
2568 ;;
2569 sparc64-*-elf*)
2570 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sp64-elf.h"
2571 tmake_file="${tmake_file} sparc/t-crtfm"
2572 extra_parts="crtbegin.o crtend.o"
2573 ;;
2574 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
2575 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
2576 tmake_file="${tmake_file} sparc/t-crtfm"
2577 xmake_file=none
2578 case "x$with_cpu" in
2579 xultrasparc) ;;
2580 x) with_cpu=ultrasparc ;;
2581 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
2582 esac
2583 ;;
2584 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2585 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
2586 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
2587 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
2588 gnu_ld=yes
2589 if test x$enable_threads = xyes; then
2590 thread_file='posix'
2591 fi
2592 float_format=sparc
2593 ;;
2594 sparc64-*-netbsd*)
2595 tmake_file="${tmake_file} sparc/t-netbsd64"
2596 tm_file="sparc/biarch64.h ${tm_file}"
2597 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
2598 float_format=sparc
2599 ;;
2600 strongarm-*-elf*)
2601 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2602 tmake_file=arm/t-strongarm-elf
2603 out_file=arm/arm.c
2604 md_file=arm/arm.md
2605 extra_modes=arm/arm-modes.def
2606 ;;
2607 strongarm-*-coff*)
2608 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/strongarm-coff.h arm/arm.h"
2609 tmake_file=arm/t-strongarm-coff
2610 out_file=arm/arm.c
2611 md_file=arm/arm.md
2612 extra_modes=arm/arm-modes.def
2613 ;;
2614 strongarm-*-pe)
2615 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/strongarm-coff.h arm/arm.h arm/pe.h arm/strongarm-pe.h"
2616 tmake_file=arm/t-strongarm-pe
2617 out_file=arm/arm.c
2618 md_file=arm/arm.md
2619 extra_modes=arm/arm-modes.def
2620 extra_objs=pe.o
2621 ;;
2622 thumb*-*-*)
2623 { echo "config.gcc: error:
2624 *** The Thumb targets have been deprecated. The equivalent
2625 *** ARM based toolchain can now generate Thumb instructions
2626 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
2627 ;;
2628 v850-*-rtems*)
2629 xm_defines=POSIX
2630 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} v850/v850.h v850/rtems.h rtems.h"
2631 tmake_file="v850/t-v850 t-rtems"
2632 if test x$stabs = xyes
2633 then
2634 tm_file="${tm_file} dbx.h"
2635 fi
2636 use_collect2=no
2637 c_target_objs="v850-c.o"
2638 cxx_target_objs="v850-c.o"
2639 ;;
2640 v850-*-*)
2641 target_cpu_default="TARGET_CPU_generic"
2642 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2643 tmake_file=v850/t-v850
2644 if test x$stabs = xyes
2645 then
2646 tm_file="${tm_file} dbx.h"
2647 fi
2648 use_collect2=no
2649 c_target_objs="v850-c.o"
2650 cxx_target_objs="v850-c.o"
2651 ;;
2652 vax-*-bsd*) # VAXen running BSD
2653 tm_file="${tm_file} vax/bsd.h"
2654 use_collect2=yes
2655 float_format=vax
2656 ;;
2657 vax-*-sysv*) # VAXen running system V
2658 tm_file="${tm_file} vax/vaxv.h"
2659 xm_defines=POSIX
2660 float_format=vax
2661 ;;
2662 vax-*-netbsdelf*)
2663 echo "GCC does not yet support the ${machine} target"; exit 1
2664 ;;
2665 vax-*-netbsd*)
2666 tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
2667 tmake_file=t-netbsd
2668 float_format=vax
2669 use_collect2=yes
2670 ;;
2671 vax-*-openbsd*)
2672 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
2673 float_format=vax
2674 use_collect2=yes
2675 ;;
2676 vax-*-ultrix*) # VAXen running ultrix
2677 tm_file="${tm_file} vax/ultrix.h"
2678 float_format=vax
2679 ;;
2680 vax-*-vms*) # VAXen running VMS
2681 xm_file=vax/xm-vms.h
2682 tm_file=vax/vms.h
2683 float_format=vax
2684 ;;
2685 vax-*-*) # VAX default entry
2686 float_format=vax
2687 ;;
2688 xscale-*-elf)
2689 tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
2690 tmake_file=arm/t-xscale-elf
2691 out_file=arm/arm.c
2692 md_file=arm/arm.md
2693 extra_modes=arm/arm-modes.def
2694 ;;
2695 xscale-*-coff)
2696 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/xscale-coff.h arm/arm.h"
2697 tmake_file=arm/t-xscale-coff
2698 out_file=arm/arm.c
2699 md_file=arm/arm.md
2700 extra_modes=arm/arm-modes.def
2701 ;;
2702 xstormy16-*-elf)
2703 # For historical reasons, the target files omit the 'x'.
2704 tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
2705 tm_p_file=stormy16/stormy16-protos.h
2706 md_file=stormy16/stormy16.md
2707 out_file=stormy16/stormy16.c
2708 tmake_file="stormy16/t-stormy16"
2709 extra_parts="crtbegin.o crtend.o"
2710 ;;
2711 xtensa-*-elf*)
2712 tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
2713 with_newlib=yes
2714 tmake_file=xtensa/t-xtensa
2715 extra_parts="crtbegin.o crtend.o"
2716 fixincludes=Makefile.in # newlib headers should be OK
2717 ;;
2718 xtensa-*-linux*)
2719 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
2720 tmake_file="t-linux xtensa/t-xtensa"
2721 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
2722 gas=yes gnu_ld=yes
2723 if test x$enable_threads = xyes; then
2724 thread_file='posix'
2725 fi
2726 ;;
2727 *)
2728 echo "*** Configuration $machine not supported" 1>&2
2729 exit 1
2730 ;;
2731 esac
2732
2733 case $machine in
2734 *-*-sysv*)
2735 install_headers_dir=install-headers-cpio
2736 ;;
2737 esac
2738
2739 # Distinguish i[34567]86
2740 # Also, do not run mips-tfile on MIPS if using gas.
2741 # Process --with-cpu= for PowerPC/rs6000
2742 target_cpu_default2=
2743 case $machine in
2744 i486-*-*)
2745 target_cpu_default2=TARGET_CPU_DEFAULT_i486
2746 ;;
2747 i586-*-*)
2748 case $target_alias in
2749 k6_2-*)
2750 target_cpu_default2=TARGET_CPU_DEFAULT_k6_2
2751 ;;
2752 k6_3-*)
2753 target_cpu_default2=TARGET_CPU_DEFAULT_k6_3
2754 ;;
2755 k6-*)
2756 target_cpu_default2=TARGET_CPU_DEFAULT_k6
2757 ;;
2758 pentium_mmx-*)
2759 target_cpu_default2=TARGET_CPU_DEFAULT_pentium_mmx
2760 ;;
2761 *)
2762 target_cpu_default2=TARGET_CPU_DEFAULT_pentium
2763 ;;
2764 esac
2765 ;;
2766 i686-*-* | i786-*-*)
2767 case $target_alias in
2768 athlon_xp-*|athlon_mp-*|athlon_4-*)
2769 target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
2770 ;;
2771 athlon_tbird-*|athlon-*)
2772 target_cpu_default2=TARGET_CPU_DEFAULT_athlon
2773 ;;
2774 pentium2-*)
2775 target_cpu_default2=TARGET_CPU_DEFAULT_pentium2
2776 ;;
2777 pentium3-*)
2778 target_cpu_default2=TARGET_CPU_DEFAULT_pentium3
2779 ;;
2780 pentium4-*)
2781 target_cpu_default2=TARGET_CPU_DEFAULT_pentium4
2782 ;;
2783 *)
2784 target_cpu_default2=TARGET_CPU_DEFAULT_pentiumpro
2785 ;;
2786 esac
2787 ;;
2788 x86_64-*-*)
2789 # We should have hammer chip here, but it does not exist yet and
2790 # thus it is not supported. Athlon_SSE is probably equivalent feature
2791 # wise to hammer from our point of view except for 64bit mode.
2792 target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
2793 ;;
2794 alpha*-*-*)
2795 case $machine in
2796 alphaev6[78]*)
2797 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
2798 ;;
2799 alphaev6*)
2800 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
2801 ;;
2802 alphapca56*)
2803 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2804 ;;
2805 alphaev56*)
2806 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2807 ;;
2808 alphaev5*)
2809 target_cpu_default2="MASK_CPU_EV5"
2810 ;;
2811 esac
2812
2813 if test x$gas = xyes
2814 then
2815 if test "$target_cpu_default2" = ""
2816 then
2817 target_cpu_default2="MASK_GAS"
2818 else
2819 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2820 fi
2821 fi
2822 ;;
2823 arm*-*-*)
2824 case "x$with_cpu" in
2825 x)
2826 # The most generic
2827 target_cpu_default2="TARGET_CPU_generic"
2828 ;;
2829
2830 # Distinguish cores, and major variants
2831 # arm7m doesn't exist, but D & I don't affect code
2832 xarm[236789] | xarm250 | xarm[67][01]0 \
2833 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
2834 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2835 | xxscale \
2836 | xstrongarm | xstrongarm110 | xstrongarm1100)
2837 target_cpu_default2="TARGET_CPU_$with_cpu"
2838 ;;
2839
2840 xyes | xno)
2841 echo "--with-cpu must be passed a value" 1>&2
2842 exit 1
2843 ;;
2844
2845 *)
2846 if test x$pass2done = xyes
2847 then
2848 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2849 exit 1
2850 fi
2851 ;;
2852 esac
2853 ;;
2854
2855 hppa*-*-* | parisc*-*-*)
2856 if test x$gas = xyes
2857 then
2858 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
2859 fi
2860 case $machine in
2861 hppa1* | parisc1*)
2862 tm_defines="TARGET_SCHED_DEFAULT=\\\"7100LC\\\""
2863 ;;
2864 esac
2865 ;;
2866 mips*-*-*)
2867 case $machine in
2868 mips*-*-ecoff* | mips*-*-elf*)
2869 if test x$gas = xyes
2870 then
2871 if test x$gnu_ld = xyes
2872 then
2873 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
2874 else
2875 target_cpu_default2="MASK_GAS"
2876 fi
2877 fi
2878 ;;
2879 mips*-*-*)
2880 if test x$gas = xyes
2881 then
2882 target_cpu_default2="MASK_GAS"
2883 fi
2884 ;;
2885 esac
2886 case $machine in
2887 mips*el-*-*)
2888 tm_file="mips/little.h ${tm_file}"
2889 ;;
2890 esac
2891 ;;
2892 powerpc*-*-* | rs6000-*-*)
2893 if test x$enable_altivec = xyes
2894 then
2895 tm_file="$tm_file rs6000/altivec-defs.h"
2896 fi
2897 case "x$with_cpu" in
2898 x)
2899 ;;
2900
2901 xcommon | xpower | xpower2 | xpower3 | xpowerpc | xpowerpc64 \
2902 | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
2903 | x601 | x602 | x603 | x603e | x604 | x604e | x620 | x630 \
2904 | x740 | x750 | x7400 | x7450 | x505)
2905 target_cpu_default2="\\\"$with_cpu\\\""
2906 ;;
2907
2908 x401 | x403 | x405 | xec603e | x801 | x821 | x823 | x860)
2909 target_cpu_default2="\\\"$with_cpu\\\""
2910 ;;
2911
2912 xyes | xno)
2913 echo "--with-cpu must be passed a value" 1>&2
2914 exit 1
2915 ;;
2916
2917 *)
2918 if test x$pass2done = xyes
2919 then
2920 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2921 exit 1
2922 fi
2923 ;;
2924 esac
2925 c_target_objs="${c_target_objs} rs6000-c.o"
2926 cxx_target_objs="${cxx_target_objs} rs6000-c.o"
2927 tmake_file="${tmake_file} rs6000/t-rs6000-c-rule"
2928 ;;
2929 sparc*-*-*)
2930 case ".$with_cpu" in
2931 .)
2932 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2933 ;;
2934 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
2935 target_cpu_default2="TARGET_CPU_$with_cpu"
2936 ;;
2937 *)
2938 if test x$pass2done = xyes
2939 then
2940 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2941 exit 1
2942 fi
2943 ;;
2944 esac
2945 ;;
2946 esac
2947
2948 if test "$target_cpu_default2" != ""
2949 then
2950 if test "$target_cpu_default" != ""
2951 then
2952 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2953 else
2954 target_cpu_default=$target_cpu_default2
2955 fi
2956 fi
2957
2958 # Save data on machine being used to compile GCC in build_xm_file.
2959 # Save data on host machine in vars host_xm_file and host_xmake_file.
2960 if test x$pass1done = x
2961 then
2962 if test x$xm_file != x
2963 then build_xm_file=$xm_file
2964 fi
2965 build_xm_defines=$xm_defines
2966 build_install_headers_dir=$install_headers_dir
2967 build_exeext=$exeext
2968 pass1done=yes
2969 else
2970 if test x$pass2done = x
2971 then
2972 if test x$xm_file != x
2973 then host_xm_file=$xm_file
2974 fi
2975 host_xm_defines=$xm_defines
2976 host_xmake_file="$xmake_file"
2977 host_truncate_target=$truncate_target
2978 host_extra_gcc_objs=$extra_gcc_objs
2979 host_extra_objs=$extra_host_objs
2980 host_exeext=$exeext
2981 pass2done=yes
2982 fi
2983 fi