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