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