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