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