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