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