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