]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config.gcc
Add support multilib parts for m32rx processor.
[thirdparty/gcc.git] / gcc / config.gcc
CommitLineData
61ed06c3 1# GCC build-, host- and target-specific configuration file.
3bd6d4c4
AO
2# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003
3# Free Software Foundation, Inc.
61ed06c3 4
1322177d 5#This file is part of GCC.
61ed06c3 6
1322177d
LB
7#GCC is free software; you can redistribute it and/or modify it under
8#the terms of the GNU General Public License as published by the Free
9#Software Foundation; either version 2, or (at your option) any later
10#version.
61ed06c3 11
1322177d
LB
12#GCC is distributed in the hope that it will be useful, but WITHOUT
13#ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14#FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15#for more details.
61ed06c3
HPN
16
17#You should have received a copy of the GNU General Public License
1322177d
LB
18#along with GCC; see the file COPYING. If not, write to the Free
19#Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20#02111-1307, USA.
61ed06c3
HPN
21
22# This is the GCC build-, host- and target-specific configuration file
23# where a configuration type, as recognized and generated by config.bfd,
24# is mapped to different system-specific definitions and files. This is
25# invoked by the autoconf-generated configure script, called for build,
26# host and target in that order, setting ${machine} to each. Putting it
27# in a separate shell file lets us skip running autoconf when modifying
28# build-, host- and target-specific information.
29
30# This file switches on the shell variable ${machine}, and also uses the
31# following shell variables:
32#
33# with_* Various variables as set by configure.
34#
35# enable_threads_flag Either the name, yes or no depending on whether
36# threads support was requested.
37#
38# gas_flag Either yes or no depending on whether GNU as was
39# requested.
40#
41# gnu_ld_flag Either yes or no depending on whether GNU ld was
42# requested.
43
44# This file sets the following shell variables for use by the
45# autoconf-generated configure script:
46#
47# cpu_type The name of the cpu, if different from machine.
48#
d5355cb2
JDA
49# tm_defines List of target macros to define for all compilations.
50#
61ed06c3 51# tm_file A list of target macro files, if different from
32fb7c9d
FS
52# "$cpu_type/$cpu_type.h". Usually it's constructed
53# per target in a way like this:
c40409ce 54# tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h"
32fb7c9d
FS
55# Note that the preferred order is:
56# - specific target header "${cpu_type}/${cpu_type.h}"
c40409ce 57# - generic headers like dbxelf.h elfos.h, netware.h, etc.
32fb7c9d
FS
58# - specializing target headers like ${cpu_type.h}/elf.h
59# This helps to keep OS specific stuff out of the CPU
60# defining header ${cpu_type}/${cpu_type.h}.
61ed06c3
HPN
61#
62# tm_p_file Location of file with declarations for functions
63# in $out_file.
64#
65# out_file The name of the machine description C support
66# file, if different from "$cpu_type/$cpu_type.c".
67#
68# md_file The name of the machine-description file, if
69# different from "$cpu_type/$cpu_type.md".
70#
71# tmake_file A list of machine-description-specific
72# makefile-fragments, if different from
73# "$cpu_type/t-$cpu_type".
74#
1c0ca89d
ZW
75# extra_modes The name of the file containing a list of extra
76# machine modes, if necessary and different from
77# "$cpu_type/$cpu_type-modes.def".
78#
61ed06c3
HPN
79# extra_objs List of extra objects that should be linked into
80# the compiler proper (cc1, cc1obj, cc1plus)
81# depending on target.
82#
83# extra_headers List of used header files from the directory
817e13c4 84# config/${cpu_type}.
61ed06c3
HPN
85#
86# host_xmake_file List of host-specific makefile-fragments.
87#
88# extra_passes List of extra executables compiled for this target
89# machine, used for compiling from source to object.
90#
91# extra_parts List of extra object files that should be compiled
92# for this target machine.
93#
94# extra_programs Like extra_passes, but these are used when linking.
95#
ff7cc307 96# host_extra_objs List of extra host-dependent objects that should
61ed06c3
HPN
97# be linked into the compiler proper.
98#
ff7cc307 99# host_extra_gcc_objs List of extra host-dependent objects that should
61ed06c3
HPN
100# be linked into the gcc driver.
101#
476d9098
GK
102# out_host_hook_obj An object file that provides the host hooks.
103#
ff7cc307 104# c_target_objs List of extra target-dependent objects that be
aac69a49 105# linked into the C compiler only.
0e5a4ad8 106#
ff7cc307 107# cxx_target_objs List of extra target-dependent objects that be
aac69a49 108# linked into the C++ compiler only.
0e5a4ad8 109#
ef69da62
SS
110# target_gtfiles List of extra source files with type information.
111#
61ed06c3
HPN
112# build_xm_defines List of macros to define when compiling for the
113# build machine.
114#
115# build_xm_file List of files to include when compiling for the
116# build machine.
117#
118# host_xm_defines List of macros to define when compiling for the
119# host machine.
120#
121# host_xm_file List of files to include when compiling for the
122# host machine.
123#
124# xm_defines List of macros to define when compiling for the
125# target machine.
126#
127# xm_file List of files to include when compiling for the
128# target machine.
129#
130# use_collect2 Set to yes or no, depending on whether collect2
131# will be used.
132#
133# target_cpu_default Set to override the default target model.
134#
135# build_install_headers_dir
136# Target to use when installing header files.
137#
61ed06c3
HPN
138# host_truncate_target
139# Non-empty if the target name should be truncated
140# on this host, due to filename length issues.
141#
142# gdb_needs_out_file_path
143# Set to yes if gdb needs a dir command with
144# `dirname $out_file`.
145#
146# build_exeext Set to the suffix, if the build machine requires
147# executables to have a file name suffix.
148#
149# host_exeext Set to the suffix, if the host machine requires
150# executables to have a file name suffix.
151#
152# thread_file Set to control which thread package to use.
153#
154# gas Set to yes or no depending on whether the target
155# system normally uses GNU as.
4977bab6
ZW
156#
157# need_64bit_hwint Set to yes if HOST_WIDE_INT must be 64 bits wide
158# for this target. This is true iff
159# MAX_LONG_TYPE_SIZE is 64. (The code which
160# determines the underlying integral type for
161# HOST_WIDE_INT cannot see the definition of
162# MAX_LONG_TYPE_SIZE.)
61ed06c3
HPN
163
164# The following variables are used in each case-construct to build up the
165# outgoing variables:
166#
167# xmake_file Makefile-fragment when this system is as a host,
168# for host_xmake_file.
169#
170# extra_host_objs List of extra objects that should be linked into
171# the compiler proper when this system is a host,
172# for host_extra_objs.
173#
476d9098
GK
174# host_hook_obj An object file that provides the host hooks.
175#
61ed06c3
HPN
176# install_headers_dir Makefile-target for how the header file directory
177# is installed, when this system is a build system,
178# for build_install_headers_dir.
179#
180# truncate_target Non-empty if the target name should be truncated
181# when this system is a host, due to filename length
182# issues. For host_truncate_target.
183#
184# exeext The suffix for executables on this system.
185#
186# gnu_ld Set to yes or no depending on whether the target
187# system normally uses GNU ld.
188
189out_file=
190xmake_file=
191tmake_file=
192extra_headers=
193extra_passes=
194extra_parts=
195extra_programs=
196extra_objs=
197extra_host_objs=
198extra_gcc_objs=
aac69a49
NC
199c_target_objs=
200cxx_target_objs=
476d9098 201host_hook_obj=host-default.o
d5355cb2 202tm_defines=
61ed06c3 203xm_defines=
61ed06c3
HPN
204# Set this to force installation and use of collect2.
205use_collect2=
206# Set this to override the default target model.
207target_cpu_default=
208# Set this to control how the header file directory is installed.
209install_headers_dir=install-headers-tar
61ed06c3
HPN
210# Set this if directory names should be truncated to 14 characters.
211truncate_target=
212# Set this if gdb needs a dir command with `dirname $out_file`
213gdb_needs_out_file_path=
214# Set this if the build machine requires executables to have a
215# file name suffix.
216exeext=
217# Set this to control which thread package will be used.
218thread_file=
219# Reinitialize these from the flag values every loop pass, since some
220# configure entries modify them.
221gas="$gas_flag"
222gnu_ld="$gnu_ld_flag"
223enable_threads=$enable_threads_flag
6ab185d6 224target_gtfiles=
4977bab6 225need_64bit_hwint=
61ed06c3 226
6a38414a
NN
227# Don't carry these over build->host->target. Please.
228xm_file=
229md_file=
230
9340544b 231# Obsolete configurations.
9340544b 232case $machine in
7c942e17 233 dummy)
8998d5bf 234 if test "x$enable_obsolete" != xyes; then
9340544b
ZW
235 echo "*** Configuration $machine is obsolete." >&2
236 echo "*** Specify --enable-obsolete to build it anyway." >&2
237 echo "*** Support will be REMOVED in the next major release of GCC," >&2
238 echo "*** unless a maintainer comes forward." >&2
239 exit 1
240 fi;;
9340544b
ZW
241esac
242
7c942e17
ZW
243# Unsupported targets list. Do not put an entry in this list unless
244# it would otherwise be caught by a more permissive pattern. The list
245# should be in alphabetical order.
246case $machine in
247 alpha*-*-linux*libc1* \
248 | i[34567]86-sequent-sysv* \
249 | i[34567]86-go32-* \
250 | i[34567]86-*-go32* \
251 | m68k-*-linux*aout* \
252 | m68k-*-linux*libc1* \
253 | mips64orion*-*-rtems* \
254 | powerpc-*-linux*libc1* \
255 | sparc-*-linux*aout* \
256 | sparc-*-linux*libc1* \
257 | sparc-hal-solaris2* \
258 | thumb-*-* \
259 | *-*-linux*coff* \
260 | *-*-linux*oldld* \
261 | *-*-rtemsaout* \
262 | *-*-rtemscoff* \
263 )
264 echo "*** Configuration $machine not supported" 1>&2
265 exit 1
266 ;;
267esac
268
61ed06c3 269# Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
ba1e6c0b
JM
270# updated in each machine entry. Also set default extra_headers for some
271# machines.
61ed06c3
HPN
272tm_p_file=
273cpu_type=`echo $machine | sed 's/-.*$//'`
274case $machine in
275alpha*-*-*)
276 cpu_type=alpha
4977bab6 277 need_64bit_hwint=yes
61ed06c3 278 ;;
250315f7 279arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
d19fb8e3 280 cpu_type=arm
250315f7 281 extra_headers="mmintrin.h"
d19fb8e3 282 ;;
61ed06c3
HPN
283i[34567]86-*-*)
284 cpu_type=i386
6f1a6c5b 285 extra_headers="mmintrin.h xmmintrin.h"
61ed06c3 286 ;;
14f73b5a
JH
287x86_64-*-*)
288 cpu_type=i386
8559c8c0 289 extra_headers="mmintrin.h xmmintrin.h"
4977bab6 290 need_64bit_hwint=yes
14f73b5a 291 ;;
817e13c4
JM
292ia64-*-*)
293 extra_headers=ia64intrin.h
4977bab6 294 need_64bit_hwint=yes
817e13c4 295 ;;
c21a2372 296hppa*-*-* | parisc*-*-*)
61ed06c3
HPN
297 cpu_type=pa
298 ;;
2fd95d71 299m680[012]0-*-*)
61ed06c3 300 cpu_type=m68k
ba1e6c0b
JM
301 extra_headers=math-68881.h
302 ;;
303m68k-*-*)
304 extra_headers=math-68881.h
61ed06c3
HPN
305 ;;
306mips*-*-*)
307 cpu_type=mips
4977bab6 308 need_64bit_hwint=yes
61ed06c3 309 ;;
61ed06c3
HPN
310powerpc*-*-*)
311 cpu_type=rs6000
518878e1 312 extra_headers="ppc-asm.h altivec.h spe.h"
4977bab6
ZW
313 need_64bit_hwint=yes
314 ;;
315rs6000*-*-*)
316 need_64bit_hwint=yes
317 ;;
318sparc64*-*-*)
319 cpu_type=sparc
320 need_64bit_hwint=yes
61ed06c3 321 ;;
61ed06c3
HPN
322sparc*-*-*)
323 cpu_type=sparc
324 ;;
4977bab6
ZW
325s390*-*-*)
326 need_64bit_hwint=yes
327 ;;
b4eb03fe
JT
328# Note the 'l'; we need to be able to match e.g. "shle" or "shl".
329sh[123456789l]*-*-*)
fa5322fa 330 cpu_type=sh
4977bab6 331 need_64bit_hwint=yes
fa5322fa 332 ;;
7f0db92a
SS
333tic4x-*-*)
334 cpu_type=c4x
335 ;;
61ed06c3
HPN
336esac
337
338tm_file=${cpu_type}/${cpu_type}.h
b6d7afec 339if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
61ed06c3 340then
b6d7afec
ZW
341 tm_p_file=${cpu_type}/${cpu_type}-protos.h
342fi
1c0ca89d
ZW
343extra_modes=
344if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
345then
346 extra_modes=${cpu_type}/${cpu_type}-modes.def
347fi
e564e618
DB
348
349case $machine in
350x86_64-*-*)
351 tm_file="i386/biarch64.h ${tm_file}"
352 ;;
353esac
354
61ed06c3
HPN
355# On a.out targets, we need to use collect2.
356case $machine in
357*-*-*aout*)
358 use_collect2=yes
359 ;;
0e5a4ad8 360esac
61ed06c3 361
4977bab6 362# Common parts for widely ported systems.
61ed06c3
HPN
363case $machine in
364*-*-linux*)
609a87f3 365 case $machine in
7c942e17 366 *-*-linux*libc1* | *-*-linux*aout*)
609a87f3
JJ
367 ;;
368 *)
66df2ac2
L
369 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
370 gas=yes gnu_ld=yes
609a87f3
JJ
371 case x${enable_threads} in
372 x | xyes | xposix) thread_file='posix'
373 ;;
374 esac
375 ;;
376 esac
61ed06c3 377 ;;
5eeab2e3
MK
378*-*-gnu*)
379 # On the Hurd, the setup is just about the same on
380 # each different CPU. The specific machines that we
381 # support are matched above and just set $cpu_type.
f6e0c56c 382 tm_file="${cpu_type}/gnu.h"
275b60d6 383 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
5eeab2e3
MK
384 # GNU always uses ELF.
385 elf=yes
386 # GNU tools are the only tools.
387 gnu_ld=yes
388 gas=yes
389 # These details are the same as for Linux.
5eeab2e3 390 # But here we need a little extra magic.
7b3a4df5 391 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
f6e0c56c 392 case $machine in
83248d49
RM
393 alpha*)
394 tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
395 ;;
f6e0c56c 396 i[34567]86-*-*)
39ed301b 397 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}"
f6e0c56c 398 ;;
f6e0c56c 399 esac
5eeab2e3 400 ;;
61ed06c3
HPN
401*-*-openbsd*)
402 tm_file=${cpu_type}/openbsd.h
f1cf4606 403 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
61ed06c3
HPN
404 if test x$enable_threads = xyes; then
405 thread_file='posix'
406 tmake_file="${tmake_file} t-openbsd-thread"
407 fi
408 ;;
f982f805 409*-*-netbsd*)
12345543 410 tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd"
f982f805
JT
411 gas=yes
412 gnu_ld=yes
51b7c247
JT
413
414 # NetBSD 2.0 and later get POSIX threads enabled by default.
415 # Allow them to be explicitly enabled on any other version.
a0494c05 416 case x${enable_threads} in
51b7c247
JT
417 x)
418 case $machine in
419 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
420 thread_file='posix'
421 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
422 ;;
423 esac
424 ;;
a0494c05
JT
425 xyes | xposix)
426 thread_file='posix'
ee3c755a 427 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
a0494c05
JT
428 ;;
429 esac
1169f9e0
JT
430
431 # NetBSD 1.7 and later are set up to use GCC's crtstuff for
432 # ELF configurations. We will clear extra_parts in the
433 # a.out configurations.
434 case $machine in
4e85eada 435 *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
1169f9e0
JT
436 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
437 ;;
438 esac
f982f805 439 ;;
9e405fe5
LR
440*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
441 # This is the place-holder for the generic a.out configuration
442 # of FreeBSD. No actual configuration resides here since
443 # there was only ever a bare-bones ix86 configuration for
444 # a.out and it exists solely in the machine-specific section.
445 # This place-holder must exist to avoid dropping into
446 # the generic ELF configuration of FreeBSD (i.e. it must be
447 # ordered before that section).
448 ;;
449*-*-freebsd*)
450 # This is the generic ELF configuration of FreeBSD. Later
451 # machine-specific sections may refine and add to this
452 # configuration.
453 #
454 # Due to tm_file entry ordering issues that vary between cpu
455 # architectures, we only define fbsd_tm_file to allow the
456 # machine-specific section to dictate the final order of all
457 # entries of tm_file with the minor exception that components
458 # of the tm_file set here will always be of the form:
459 #
b91da81f 460 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
9e405fe5
LR
461 #
462 # The machine-specific section should not tamper with this
463 # ordering but may order all other entries of tm_file as it
464 # pleases around the provided core setting.
465 gas=yes
466 gnu_ld=yes
467 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
468 case $machine in
469 *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";;
470 *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
471 *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
472 *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
473 *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
474 esac
bc3a44db 475 tmake_file="t-slibgcc-elf-ver t-freebsd"
243a7070 476 xmake_file=none
9e405fe5
LR
477 case x${enable_threads} in
478 xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
479 x | xyes | xpthreads | xposix)
480 thread_file='posix'
481 tmake_file="${tmake_file} t-freebsd-thread"
bc3a44db
LR
482 # Before 5.0, FreeBSD can't bind shared libraries to -lc
483 # when "optionally" threaded via weak pthread_* checks.
484 case $machine in
485 *-*-freebsd[34] | *-*-freebsd[34].*)
486 tmake_file="${tmake_file} t-slibgcc-nolc-override";;
487 esac
9e405fe5
LR
488 ;;
489 *) echo 'Unknown thread configuration for FreeBSD'; exit 1;;
490 esac
b7e0196a 491 fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
9e405fe5 492 ;;
40b4cdbf
GK
493*-*-darwin*)
494 tm_file="${tm_file} darwin.h"
495 tm_p_file="${tm_p_file} darwin-protos.h"
496 tmake_file="t-darwin"
497 target_gtfiles="\$(srcdir)/config/darwin.c"
498 c_target_objs="darwin-c.o"
499 cxx_target_objs="darwin-c.o"
500 extra_parts="crt2.o"
064b6c70 501 extra_objs="darwin.o"
40b4cdbf 502 ;;
4977bab6
ZW
503*-*-vxworks*)
504 tmake_file=t-vxworks
505 tm_file="${tm_file} elfos.h svr4.h vxworks.h"
506 thread_file='vxworks'
507 use_collect2=yes
4977bab6 508 ;;
61ed06c3
HPN
509esac
510
511case $machine in
512# Support site-specific machine types.
513*local*)
61ed06c3 514 rest=`echo $machine | sed -e "s/$cpu_type-//"`
61ed06c3 515 tm_file=${cpu_type}/$rest.h
4dc0535b
ZW
516 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
517 then xm_file=${cpu_type}/xm-$rest.h
61ed06c3 518 fi
4dc0535b
ZW
519 if test -f $srcdir/config/${cpu_type}/x-$rest
520 then xmake_file=${cpu_type}/x-$rest
521 fi
522 if test -f $srcdir/config/${cpu_type}/t-$rest
523 then tmake_file=${cpu_type}/t-$rest
61ed06c3
HPN
524 fi
525 ;;
30102605
RH
526alpha*-*-unicosmk*)
527 use_collect2=yes
528 tm_file="${tm_file} alpha/unicosmk.h"
0e5a4ad8 529
30102605
RH
530 # Don't include t-ieee for now because we don't support that yet
531 # tmake_file="alpha/t-ieee"
532 tmake_file="alpha/t-unicosmk"
533 ;;
61ed06c3
HPN
534alpha*-*-linux*)
535 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
536 target_cpu_default="MASK_GAS"
cea3bd3e 537 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
61ed06c3 538 ;;
83248d49
RM
539alpha*-*-gnu*)
540 target_cpu_default="MASK_GAS"
541 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
542 ;;
61ed06c3 543alpha*-*-freebsd*)
9e405fe5 544 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
61ed06c3 545 target_cpu_default="MASK_GAS"
cea3bd3e
RH
546 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
547 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
61ed06c3
HPN
548 ;;
549alpha*-*-netbsd*)
f982f805 550 tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
61ed06c3 551 target_cpu_default="MASK_GAS"
cea3bd3e 552 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
61ed06c3
HPN
553 ;;
554
555alpha*-*-openbsd*)
cf0005c6 556 tm_file="${cpu_type}/${cpu_type}.h ${tm_file}"
61ed06c3
HPN
557 # default x-alpha is only appropriate for dec-osf.
558 target_cpu_default="MASK_GAS"
559 tmake_file="alpha/t-alpha alpha/t-ieee"
560 ;;
0e5a4ad8 561
c7bdf0a6 562alpha*-dec-osf[45]*)
61ed06c3
HPN
563 if test x$stabs = xyes
564 then
565 tm_file="${tm_file} dbx.h"
566 fi
567 if test x$gas != xyes
568 then
569 extra_passes="mips-tfile mips-tdump"
570 fi
571 use_collect2=yes
c7bdf0a6
ZW
572 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4"
573 tm_file="${tm_file} alpha/osf.h"
817e13c4 574 extra_headers=va_list.h
61ed06c3 575 case $machine in
61ed06c3 576 *-*-osf4*)
61ed06c3
HPN
577 # Some versions of OSF4 (specifically X4.0-9 296.7) have
578 # a broken tar, so we use cpio instead.
579 install_headers_dir=install-headers-cpio
c7bdf0a6
ZW
580 # Set target_cpu_default except on 4.0a.
581 case $machine in
582 *-*-osf4.0a) ;;
583 *) target_cpu_default=MASK_SUPPORT_ARCH
584 esac
61ed06c3
HPN
585 ;;
586 *-*-osf5*)
c7bdf0a6 587 tm_file="${tm_file} alpha/osf5.h"
61ed06c3
HPN
588 target_cpu_default=MASK_SUPPORT_ARCH
589 ;;
590 esac
591 ;;
b6bfa876 592alpha64-dec-*vms*)
cf0005c6 593 tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
4977bab6 594 xm_file="alpha/xm-vms.h"
b6bfa876
DR
595 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
596 xmake_file=alpha/x-vms
597 exeext=.exe
598 # This removes the cpu type and manufacturer components and
599 # replaces "." with "_" in the operating system version.
600 case $host in *-*-*vms*)
601 target_alias=`echo $host \
602 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
603 ;;
604 esac
ff3aaf17 605 install_headers_dir=install-headers-cp
b6bfa876
DR
606 prefix=/gnu
607 local_prefix=/gnu
608 ;;
ef057c45 609alpha*-dec-*vms*)
cf0005c6 610 tm_file="${tm_file} alpha/vms.h"
4dc0535b 611 xm_file=alpha/xm-vms.h
61ed06c3 612 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
d133777f 613 xmake_file=alpha/x-vms
ef057c45
DR
614 exeext=.exe
615 # This removes the cpu type and manufacturer components and
616 # replaces "." with "_" in the operating system version.
617 case $host in *-*-*vms*)
618 target_alias=`echo $host \
619 | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
620 ;;
621 esac
ff3aaf17 622 install_headers_dir=install-headers-cp
ef057c45
DR
623 prefix=/gnu
624 local_prefix=/gnu
61ed06c3 625 ;;
2cc07db4 626arc-*-elf*)
c40409ce 627 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2cc07db4
RH
628 extra_parts="crtinit.o crtfini.o"
629 ;;
61ed06c3 630arm-*-coff* | armel-*-coff*)
5059254f 631 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h"
61ed06c3
HPN
632 tmake_file=arm/t-arm-coff
633 ;;
61ed06c3 634arm-semi-aof | armel-semi-aof)
5059254f 635 tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
7857f134 636 tmake_file=arm/t-semi
61ed06c3 637 ;;
5742588d
DB
638arm*-*-freebsd*|strongarm*-*-freebsd*)
639 tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
640 tmake_file="${tmake_file} arm/t-strongarm-elf"
641 ;;
69474c3c 642arm*-*-netbsdelf*)
ff3afb56
JT
643 tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h"
644 tmake_file="${tmake_file} arm/t-netbsd"
69474c3c 645 ;;
61ed06c3 646arm*-*-netbsd*)
f982f805 647 tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
61ed06c3 648 tmake_file="t-netbsd arm/t-netbsd"
1169f9e0 649 extra_parts=""
5721cd84 650 use_collect2=yes
61ed06c3 651 ;;
14879e76 652arm*-*-linux*) # ARM GNU/Linux with ELF
c40409ce 653 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"
7b3a4df5 654 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
61ed06c3
HPN
655 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
656 gnu_ld=yes
657 case x${enable_threads} in
658 x | xyes | xpthreads | xposix)
659 thread_file='posix'
660 ;;
661 esac
662 ;;
663arm*-*-uclinux*) # ARM ucLinux
c40409ce 664 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"
61ed06c3
HPN
665 tmake_file=arm/t-arm-elf
666 ;;
61ed06c3 667arm*-*-ecos-elf)
c40409ce 668 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
61ed06c3 669 tmake_file=arm/t-arm-elf
0e5a4ad8 670 ;;
f22b4bc4 671arm*-*-rtems*)
f22b4bc4
JS
672 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"
673 tmake_file="arm/t-arm-elf t-rtems"
674 if test x$enable_threads = xyes; then
675 thread_file='rtems'
676 fi
677 ;;
9b6b54e2 678arm*-*-elf | ep9312-*-elf)
c40409ce 679 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
61ed06c3
HPN
680 tmake_file=arm/t-arm-elf
681 ;;
61ed06c3 682arm-*-pe*)
f910b1bb 683 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h arm/pe.h"
61ed06c3
HPN
684 tmake_file=arm/t-pe
685 extra_objs="pe.o"
686 ;;
687avr-*-*)
688 ;;
7f0db92a 689c4x-*-rtems* | tic4x-*-rtems*)
bc98ef7f 690 tmake_file="c4x/t-c4x t-rtems"
fdc76b09 691 tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
bc98ef7f
JS
692 if test x$enable_threads = xyes; then
693 thread_file='rtems'
694 fi
51fabca5
NB
695 c_target_objs="c4x-c.o"
696 cxx_target_objs="c4x-c.o"
bc98ef7f 697 ;;
7f0db92a 698c4x-* | tic4x-*)
61ed06c3 699 tmake_file=c4x/t-c4x
51fabca5
NB
700 c_target_objs="c4x-c.o"
701 cxx_target_objs="c4x-c.o"
61ed06c3 702 ;;
0b85d816 703cris-*-aout)
32fb7c9d 704 tm_file="dbxelf.h ${tm_file} cris/aout.h"
0b85d816
HPN
705 gas=yes
706 tmake_file="cris/t-cris cris/t-aout"
707 ;;
708cris-*-elf | cris-*-none)
c40409ce 709 tm_file="dbxelf.h elfos.h ${tm_file}"
0b85d816
HPN
710 tmake_file="cris/t-cris cris/t-elfmulti"
711 gas=yes
712 ;;
713cris-*-linux*)
c40409ce 714 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
0b85d816 715 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
0b85d816 716 ;;
61ed06c3 717d30v-*)
c40409ce 718 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
61ed06c3
HPN
719 ;;
720dsp16xx-*)
721 ;;
61ed06c3 722fr30-*-elf)
c40409ce 723 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
61ed06c3
HPN
724 tmake_file=fr30/t-fr30
725 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
726 ;;
36a05131
BS
727frv-*-elf)
728 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} frv/frv-abi.h"
729 tmake_file=frv/t-frv
730 ;;
bc98ef7f
JS
731h8300-*-rtems*)
732 tmake_file="h8300/t-h8300 t-rtems"
f22b4bc4 733 tm_file="h8300/h8300.h h8300/rtems.h rtems.h"
bc98ef7f
JS
734 if test x$enable_threads = xyes; then
735 thread_file='rtems'
736 fi
bc98ef7f 737 ;;
9f5b774b
R
738h8300-*-elf*)
739 tmake_file="h8300/t-h8300 h8300/t-elf"
740 tm_file="h8300/h8300.h h8300/elf.h"
9f5b774b 741 ;;
61ed06c3 742h8300-*-*)
61ed06c3 743 ;;
c21a2372
AM
744hppa*64*-*-linux* | parisc*64*-*-linux*)
745 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
581d9404
JDA
746 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \
747 pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
c21a2372 748 tmake_file=pa/t-linux64
c21a2372 749 gas=yes gnu_ld=yes
4977bab6 750 need_64bit_hwint=yes
c21a2372
AM
751 ;;
752hppa*-*-linux* | parisc*-*-linux*)
90330d31 753 target_cpu_default="MASK_PA_11 | MASK_NO_SPACE_REGS"
c40409ce 754 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
c21a2372 755 pa/pa32-regs.h pa/pa32-linux.h"
7b3a4df5 756 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
61ed06c3
HPN
757 ;;
758hppa*-*-openbsd*)
759 target_cpu_default="MASK_PA_11"
14455c64 760 tmake_file=pa/t-bsd
61ed06c3
HPN
761 ;;
762hppa1.1-*-pro*)
763 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
c40409ce 764 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
14455c64 765 tmake_file="pa/t-bsd pa/t-pro"
ed9d6ff9 766 xmake_file="pa/x-ada"
61ed06c3
HPN
767 ;;
768hppa1.1-*-osf*)
769 target_cpu_default="MASK_PA_11"
770 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
14455c64 771 tmake_file="pa/t-bsd pa/t-pa"
ed9d6ff9 772 xmake_file="pa/x-ada"
61ed06c3
HPN
773 use_collect2=yes
774 ;;
775hppa1.1-*-rtems*)
776 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
f22b4bc4 777 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"
64abe03e 778 tmake_file="pa/t-bsd pa/t-pro t-rtems"
ed9d6ff9 779 xmake_file="pa/x-ada"
64abe03e
JS
780 if test x$enable_threads = xyes; then
781 thread_file='rtems'
782 fi
61ed06c3 783 ;;
61ed06c3
HPN
784hppa1.1-*-bsd*)
785 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
786 target_cpu_default="MASK_PA_11"
14455c64 787 tmake_file="pa/t-bsd pa/t-pa"
ed9d6ff9 788 xmake_file="pa/x-ada"
61ed06c3
HPN
789 use_collect2=yes
790 ;;
61ed06c3
HPN
791hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
792 target_cpu_default="MASK_PA_11"
793 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
e4761274 794 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
ed9d6ff9 795 xmake_file="pa/x-ada"
61ed06c3
HPN
796 if test x$enable_threads = x; then
797 enable_threads=$have_pthread_h
798 fi
799 case x${enable_threads} in
800 xyes | xdce)
801 tmake_file="${tmake_file} pa/t-dce-thr"
802 ;;
803 esac
804 install_headers_dir=install-headers-cpio
805 use_collect2=yes
806 ;;
807hppa1.0-*-hpux10*)
808 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
e4761274 809 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
ed9d6ff9 810 xmake_file="pa/x-ada"
61ed06c3
HPN
811 if test x$enable_threads = x; then
812 enable_threads=$have_pthread_h
813 fi
814 case x${enable_threads} in
815 xyes | xdce)
816 tmake_file="${tmake_file} pa/t-dce-thr"
817 ;;
818 esac
819 install_headers_dir=install-headers-cpio
820 use_collect2=yes
821 ;;
822hppa*64*-*-hpux11*)
581d9404
JDA
823 if test x$gas = xyes
824 then
825 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
826 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
827 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
828 else
829 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h pa/elf.h \
830 pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \
831 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
832 fi
4977bab6 833 need_64bit_hwint=yes
eab854f6 834 tmake_file="pa/t-pa64 pa/t-pa-hpux"
ed9d6ff9 835 xmake_file="pa/x-ada"
c81460e4 836 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
35d434ed 837 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
83eb95f9
SE
838 if test x$gnu_ld = xyes
839 then
840 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
841 fi
61ed06c3
HPN
842# if [ x$enable_threads = x ]; then
843# enable_threads=$have_pthread_h
844# fi
845# if [ x$enable_threads = xyes ]; then
846# thread_file='dce'
847# tmake_file="${tmake_file} pa/t-dce-thr"
848# fi
849 install_headers_dir=install-headers-cpio
61ed06c3
HPN
850 ;;
851hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
852 target_cpu_default="MASK_PA_11"
853 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
e4761274 854 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
ed9d6ff9 855 xmake_file="pa/x-ada"
61ed06c3
HPN
856# if test x$enable_threads = x; then
857# enable_threads=$have_pthread_h
858# fi
859# if test x$enable_threads = xyes; then
860# thread_file='dce'
861# tmake_file="${tmake_file} pa/t-dce-thr"
862# fi
863 install_headers_dir=install-headers-cpio
864 use_collect2=yes
865 ;;
866hppa1.0-*-hpux11*)
867 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
e4761274 868 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
ed9d6ff9 869 xmake_file="pa/x-ada"
61ed06c3
HPN
870# if test x$enable_threads = x; then
871# enable_threads=$have_pthread_h
872# fi
873# if test x$enable_threads = xyes; then
874# thread_file='dce'
875# tmake_file="${tmake_file} pa/t-dce-thr"
876# fi
877 install_headers_dir=install-headers-cpio
878 use_collect2=yes
879 ;;
61ed06c3 880i370-*-opened*) # IBM 360/370/390 Architecture
cbbf876b 881 xm_defines='FATAL_EXIT_CODE=12'
61ed06c3 882 tm_file=i370/oe.h
14455c64 883 tmake_file="i370/t-oe i370/t-i370"
51fabca5
NB
884 c_target_objs="i370-c.o"
885 cxx_target_objs="i370-c.o"
61ed06c3
HPN
886 ;;
887i370-*-mvs*)
cbbf876b 888 xm_defines='FATAL_EXIT_CODE=12'
61ed06c3 889 tm_file=i370/mvs.h
51fabca5
NB
890 tmake_file="i370/t-i370"
891 c_target_objs="i370-c.o"
892 cxx_target_objs="i370-c.o"
61ed06c3
HPN
893 ;;
894i370-*-linux*)
c40409ce 895 tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h ${tm_file}"
7b3a4df5 896 tmake_file="t-slibgcc-elf-ver t-linux"
61ed06c3 897 # broken_install=yes
61ed06c3 898 elf=yes
61ed06c3 899 ;;
b069de3b 900i[34567]86-*-darwin*)
40b4cdbf 901 tm_file="${tm_file} i386/darwin.h"
b069de3b 902 ;;
61ed06c3 903i[34567]86-*-elf*)
39ed301b 904 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
14455c64 905 tmake_file="i386/t-i386elf t-svr4"
61ed06c3 906 ;;
61ed06c3 907i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
cbbf876b 908 xm_defines="SMALL_ARG_MAX"
7c942e17 909 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
61ed06c3
HPN
910 extra_parts="crtbegin.o crtend.o"
911 tmake_file=i386/t-crtpic
912 ;;
61ed06c3 913i[34567]86-*-netware) # Intel 80386's running netware
39ed301b 914 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h"
61ed06c3
HPN
915 tmake_file=i386/t-netware
916 ;;
61ed06c3 917i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
70305f2b
RH
918 if test x$gas = xyes
919 then
920 tm_file="${tm_file} usegas.h"
921 fi
cbbf876b 922 xm_defines="SMALL_ARG_MAX"
39ed301b 923 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
61ed06c3
HPN
924 tmake_file=t-svr4
925 extra_parts="crtbegin.o crtend.o"
926 install_headers_dir=install-headers-cpio
927 ;;
61ed06c3 928i[34567]86-*-aout*)
39ed301b 929 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h"
61ed06c3
HPN
930 ;;
931i[34567]86-*-beoself* | i[34567]86-*-beos*)
61ed06c3 932 tmake_file='i386/t-beos i386/t-crtpic'
39ed301b 933 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
61ed06c3
HPN
934 extra_parts='crtbegin.o crtend.o'
935 ;;
c7bdf0a6 936i[34567]86-*-freebsd2 | i[34567]86-*-freebsd2.* | i[34567]86-*-freebsd*aout*)
39ed301b 937 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h"
61ed06c3
HPN
938 tmake_file=t-freebsd
939 ;;
940i[34567]86-*-freebsd*)
39ed301b 941 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
e564e618
DB
942 ;;
943x86_64-*-freebsd*)
39ed301b 944 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"
61ed06c3 945 ;;
6ea0279f 946i[34567]86-*-netbsdelf*)
39ed301b 947 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
6ea0279f 948 ;;
61ed06c3 949i[34567]86-*-netbsd*)
39ed301b 950 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h"
61ed06c3 951 tmake_file=t-netbsd
1169f9e0 952 extra_parts=""
5721cd84 953 use_collect2=yes
61ed06c3 954 ;;
7c884404 955x86_64-*-netbsd*)
39ed301b 956 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"
7c884404 957 ;;
61ed06c3 958i[34567]86-*-openbsd*)
39ed301b 959 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}"
f1cf4606
ME
960 # needed to unconfuse gdb
961 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
61ed06c3
HPN
962 # we need collect2 until our bug is fixed...
963 use_collect2=yes
964 ;;
965i[34567]86-*-coff*)
39ed301b 966 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
61ed06c3 967 ;;
61ed06c3
HPN
968i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
969 # with a.out format
61ed06c3 970 tmake_file="t-linux-aout i386/t-crtstuff"
39ed301b 971 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h"
61ed06c3 972 gnu_ld=yes
61ed06c3
HPN
973 ;;
974i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
975 # with ELF format using the
976 # GNU/Linux C library 5
39ed301b 977 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
7b3a4df5 978 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
61ed06c3
HPN
979 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
980 gnu_ld=yes
61ed06c3
HPN
981 if test x$enable_threads = xyes; then
982 thread_file='single'
983 fi
984 ;;
985i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
986 # with ELF format using glibc 2
987 # aka GNU/Linux C library 6
39ed301b 988 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
7b3a4df5 989 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
61ed06c3 990 ;;
14f73b5a 991x86_64-*-linux*)
39ed301b 992 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
32fb7c9d 993 i386/x86-64.h i386/linux64.h"
17c04c5e 994 tmake_file="t-slibgcc-elf-ver t-linux i386/t-linux64"
14f73b5a 995 ;;
61ed06c3 996i[34567]86-*-gnu*)
61ed06c3 997 ;;
61ed06c3
HPN
998i[34567]86-pc-msdosdjgpp*)
999 xm_file=i386/xm-djgpp.h
39ed301b 1000 tm_file="dbxcoff.h ${tm_file} i386/djgpp.h"
5dd8a9b1 1001 tmake_file=i386/t-djgpp
61ed06c3
HPN
1002 gnu_ld=yes
1003 gas=yes
1004 exeext=.exe
61ed06c3
HPN
1005 case $host in *pc-msdosdjgpp*)
1006 target_alias=djgpp
1007 ;;
1008 esac
1009 ;;
1010i[34567]86-moss-msdos* | i[34567]86-*-moss*)
39ed301b 1011 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h"
61ed06c3
HPN
1012 tmake_file=t-libc-ok
1013 gnu_ld=yes
1014 gas=yes
1015 ;;
1016i[34567]86-*-lynxos*)
1017 if test x$gas = xyes
1018 then
39ed301b 1019 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx.h i386/lynx.h"
61ed06c3 1020 else
39ed301b 1021 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx-ng.h i386/lynx-ng.h"
61ed06c3 1022 fi
61ed06c3
HPN
1023 ;;
1024i[34567]86-*-mach*)
39ed301b 1025 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/mach.h"
61ed06c3
HPN
1026# tmake_file=t-libc-ok
1027 use_collect2=yes
1028 ;;
c7bdf0a6 1029i[34567]86-*-rtems*)
39ed301b 1030 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
61ed06c3
HPN
1031 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1032 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
bc98ef7f
JS
1033 if test x$enable_threads = xyes; then
1034 thread_file='rtems'
1035 fi
61ed06c3
HPN
1036 ;;
1037i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
61ed06c3 1038 install_headers_dir=install-headers-cpio
ac24fc99 1039 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/sco5.h"
61ed06c3
HPN
1040 if test x$gas = xyes
1041 then
70305f2b 1042 tm_file="usegas.h ${tm_file}"
61ed06c3 1043 fi
ac24fc99
KJ
1044 tmake_file=i386/t-sco5
1045 extra_parts="crtbegin.o crtend.o"
61ed06c3 1046 ;;
61ed06c3 1047i[34567]86-*-solaris2*)
cbbf876b 1048 xm_defines="SMALL_ARG_MAX"
8433a25e 1049 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h"
14455c64 1050 tmake_file="i386/t-sol2 t-svr4"
7b3a4df5
RH
1051 if test x$gnu_ld = xyes; then
1052 tmake_file="$tmake_file t-slibgcc-elf-ver"
1053 else
1054 tmake_file="$tmake_file t-slibgcc-sld"
1055 fi
61ed06c3 1056 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
61ed06c3
HPN
1057 if test x${enable_threads} = x; then
1058 enable_threads=$have_pthread_h
1059 if test x${enable_threads} = x; then
1060 enable_threads=$have_thread_h
1061 fi
1062 fi
1063 if test x${enable_threads} = xyes; then
1064 if test x${have_pthread_h} = xyes; then
1065 thread_file='posix'
1066 else
1067 thread_file='solaris'
1068 fi
1069 fi
1070 ;;
23a535c4 1071i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
39ed301b 1072 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
61ed06c3
HPN
1073 if test x$stabs = xyes
1074 then
1075 tm_file="${tm_file} dbx.h"
1076 fi
14455c64 1077 tmake_file="i386/t-crtpic t-svr4"
61ed06c3
HPN
1078 extra_parts="crtbegin.o crtend.o"
1079 if test x$enable_threads = xyes; then
1080 thread_file='posix'
1081 fi
1082 ;;
1083i[34567]86-*-sysv4*) # Intel 80386's running system V.4
cbbf876b 1084 xm_defines="SMALL_ARG_MAX"
3d05b15f 1085 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
61ed06c3
HPN
1086 if test x$stabs = xyes
1087 then
1088 tm_file="${tm_file} dbx.h"
1089 fi
14455c64 1090 tmake_file="i386/t-crtpic t-svr4"
61ed06c3
HPN
1091 extra_parts="crtbegin.o crtend.o"
1092 ;;
1093i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
39ed301b 1094 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"
14455c64 1095 tmake_file="i386/t-crtpic i386/t-udk t-svr4"
61ed06c3
HPN
1096 extra_parts="crtbegin.o crtend.o"
1097 install_headers_dir=install-headers-cpio
1098 ;;
61ed06c3 1099i[34567]86-*-sysv*) # Intel 80386's running system V
61ed06c3
HPN
1100 if test x$gas = xyes
1101 then
1102 if test x$stabs = xyes
1103 then
39ed301b 1104 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h"
61ed06c3 1105 tmake_file=i386/t-svr3dbx
c7bdf0a6 1106 extra_parts="svr3.ifile svr3z.ifile"
61ed06c3 1107 else
39ed301b 1108 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h"
61ed06c3
HPN
1109 extra_parts="crtbegin.o crtend.o"
1110 tmake_file=i386/t-crtstuff
1111 fi
1112 else
39ed301b 1113 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h"
61ed06c3
HPN
1114 extra_parts="crtbegin.o crtend.o"
1115 tmake_file=i386/t-crtstuff
1116 fi
1117 tmake_file="$tmake_file i386/t-crtpic"
1118 ;;
1119i386-*-vsta) # Intel 80386's running VSTa kernel
39ed301b
DB
1120 xm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/xm-vsta.h"
1121 tm_file="${tm_file} i386/vsta.h"
61ed06c3 1122 ;;
61ed06c3 1123i[34567]86-*-pe | i[34567]86-*-cygwin*)
70e5e841 1124 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h"
4dc0535b 1125 xm_file=i386/xm-cygwin.h
70e5e841 1126 tmake_file="i386/t-cygming i386/t-cygwin"
61ed06c3 1127 extra_objs=winnt.o
70e5e841
CF
1128 c_target_objs=cygwin2.o
1129 cxx_target_objs=cygwin2.o
61ed06c3 1130 if test x$enable_threads = xyes; then
70e5e841 1131 thread_file='posix'
61ed06c3
HPN
1132 fi
1133 exeext=.exe
1134 ;;
1135i[34567]86-*-mingw32*)
70e5e841 1136 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
4dc0535b 1137 xm_file=i386/xm-mingw32.h
70e5e841 1138 tmake_file="i386/t-cygming i386/t-mingw32"
02c67fd1 1139 xmake_file=i386/x-mingw32
61ed06c3 1140 extra_objs=winnt.o
61ed06c3
HPN
1141 if test x$enable_threads = xyes; then
1142 thread_file='win32'
1143 fi
1144 exeext=.exe
1145 case $machine in
09eaf5a5 1146 *mingw32crt*)
61ed06c3
HPN
1147 tm_file="${tm_file} i386/crtdll.h"
1148 ;;
70e5e841 1149 *mingw32msv* | *mingw32*)
09eaf5a5 1150 ;;
61ed06c3
HPN
1151 esac
1152 ;;
1153i[34567]86-*-uwin*)
3eae722d 1154 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygwin.h i386/uwin.h"
61ed06c3
HPN
1155 tmake_file="i386/t-cygwin i386/t-uwin"
1156 extra_objs=winnt.o
61ed06c3
HPN
1157 if test x$enable_threads = xyes; then
1158 thread_file='win32'
1159 fi
1160 exeext=.exe
1161 ;;
04cec1a7 1162i[34567]86-*-interix3*)
39ed301b 1163 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"
5dd8a9b1 1164 tmake_file="t-interix i386/t-interix"
84512347 1165 extra_objs=winnt.o
5dd8a9b1 1166 xmake_file="x-interix"
04cec1a7
DR
1167 if test x$enable_threads = xyes ; then
1168 thread_file='posix'
1169 fi
1170 if test x$stabs = xyes ; then
1171 tm_file="${tm_file} dbxcoff.h"
1172 fi
1173 ;;
61ed06c3 1174i[34567]86-*-interix*)
39ed301b 1175 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h"
14455c64 1176 tmake_file="t-interix i386/t-interix"
84512347 1177 extra_objs=winnt.o
61ed06c3
HPN
1178 if test x$enable_threads = xyes ; then
1179 thread_file='posix'
1180 fi
1181 if test x$stabs = xyes ; then
1182 tm_file="${tm_file} dbxcoff.h"
1183 fi
1184 ;;
61ed06c3
HPN
1185i960-*-coff*)
1186 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1187 tmake_file=i960/t-960bare
43fabf7d
JW
1188 c_target_objs="i960-c.o"
1189 cxx_target_objs="i960-c.o"
61ed06c3
HPN
1190 ;;
1191i960-*-rtems)
1192 tmake_file="i960/t-960bare t-rtems"
f22b4bc4 1193 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
bc98ef7f
JS
1194 if test x$enable_threads = xyes; then
1195 thread_file='rtems'
1196 fi
43fabf7d
JW
1197 c_target_objs="i960-c.o"
1198 cxx_target_objs="i960-c.o"
61ed06c3
HPN
1199 ;;
1200i960-*-*) # Default i960 environment.
1201 use_collect2=yes
5f37d07c 1202 tmake_file=i960/t-960bare
43fabf7d
JW
1203 c_target_objs="i960-c.o"
1204 cxx_target_objs="i960-c.o"
61ed06c3
HPN
1205 ;;
1206ia64*-*-elf*)
c40409ce 1207 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
61ed06c3
HPN
1208 tmake_file="ia64/t-ia64"
1209 target_cpu_default="0"
1210 if test x$gas = xyes
1211 then
1212 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1213 fi
1214 if test x$gnu_ld = xyes
1215 then
1216 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1217 fi
32b4f6f4 1218 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
61ed06c3 1219 ;;
243a7070 1220ia64*-*-freebsd*)
fee42cc1 1221 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
243a7070
DB
1222 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1223 tmake_file="${tmake_file} ia64/t-ia64"
32b4f6f4 1224 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
243a7070 1225 ;;
61ed06c3 1226ia64*-*-linux*)
c40409ce 1227 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
7b3a4df5 1228 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
61ed06c3 1229 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
32b4f6f4 1230 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
4977bab6
ZW
1231 if test x"$use_libunwind_exceptions" = xyes; then
1232 tmake_file="$tmake_file t-libunwind"
1233 fi
61ed06c3 1234 ;;
7e5b9908 1235ia64*-*-hpux*)
c40409ce 1236 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h"
23c108af 1237 tmake_file="ia64/t-ia64 ia64/t-hpux"
7e5b9908
SE
1238 target_cpu_default="MASK_GNU_AS"
1239 if test x$enable_threads = xyes; then
1240 thread_file='posix'
1241 fi
cad61762 1242 use_collect2=no
34c1864f
SE
1243 c_target_objs="ia64-c.o"
1244 cxx_target_objs="ia64-c.o"
7e5b9908 1245 ;;
6d439235 1246ip2k-*-elf)
2f9021d3 1247 ;;
61ed06c3 1248m32r-*-elf*)
c40409ce 1249 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
250315f7
KI
1250 extra_parts="crtinit.o crtfini.o m32rx/crtinit.o m32rx/crtfini.o"
1251 ;; ;;
61ed06c3
HPN
1252# m68hc11 and m68hc12 share the same machine description.
1253m68hc11-*-*|m6811-*-*)
c40409ce 1254 tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
61ed06c3
HPN
1255 tm_p_file="m68hc11/m68hc11-protos.h"
1256 md_file="m68hc11/m68hc11.md"
1257 out_file="m68hc11/m68hc11.c"
1258 tmake_file="m68hc11/t-m68hc11-gas"
1259 ;;
1260m68hc12-*-*|m6812-*-*)
c40409ce 1261 tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
61ed06c3 1262 tm_p_file="m68hc11/m68hc11-protos.h"
61ed06c3
HPN
1263 md_file="m68hc11/m68hc11.md"
1264 out_file="m68hc11/m68hc11.c"
1265 tmake_file="m68hc11/t-m68hc11-gas"
1266 ;;
61ed06c3 1267m68000-hp-hpux*) # HP 9000 series 300
61ed06c3
HPN
1268 if test x$gas = xyes
1269 then
61ed06c3
HPN
1270 tm_file=m68k/hp310g.h
1271 else
61ed06c3
HPN
1272 tm_file=m68k/hp310.h
1273 fi
14455c64 1274 tmake_file=m68k/t-hp320
61ed06c3
HPN
1275 install_headers_dir=install-headers-cpio
1276 use_collect2=yes
61ed06c3 1277 ;;
61ed06c3 1278m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
61ed06c3
HPN
1279 if test x$gas = xyes
1280 then
61ed06c3
HPN
1281 tm_file=m68k/hp320g.h
1282 else
61ed06c3
HPN
1283 tm_file=m68k/hpux7.h
1284 fi
1285 install_headers_dir=install-headers-cpio
1286 use_collect2=yes
61ed06c3
HPN
1287 ;;
1288m68k-hp-hpux*) # HP 9000 series 300
61ed06c3
HPN
1289 if test x$gas = xyes
1290 then
61ed06c3
HPN
1291 tm_file=m68k/hp320g.h
1292 else
61ed06c3
HPN
1293 tm_file=m68k/hp320.h
1294 fi
1295 install_headers_dir=install-headers-cpio
1296 use_collect2=yes
61ed06c3 1297 ;;
61ed06c3
HPN
1298m68k-*-aout*)
1299 tmake_file=m68k/t-m68kbare
1300 tm_file="m68k/m68k-aout.h libgloss.h"
61ed06c3
HPN
1301 ;;
1302m68k-*-coff*)
1303 tmake_file=m68k/t-m68kbare
1304 tm_file="m68k/m68k-coff.h dbx.h"
61ed06c3
HPN
1305 ;;
1306m68020-*-elf* | m68k-*-elf*)
91171315 1307 tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
61ed06c3 1308 tmake_file=m68k/t-m68kelf
bb8602be 1309 extra_parts="crtbegin.o crtend.o"
61ed06c3 1310 ;;
2fd95d71
JT
1311m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
1312 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
1313 case $machine in
1314 m68010*)
1315 target_cpu_default="0"
1316 ;;
1317 *)
1318 target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
1319 ;;
1320 esac
2fd95d71 1321 ;;
61ed06c3
HPN
1322m68k*-*-netbsd*)
1323 tm_file=m68k/netbsd.h
1324 tmake_file=t-netbsd
1169f9e0 1325 extra_parts=""
5721cd84 1326 use_collect2=yes
61ed06c3
HPN
1327 ;;
1328m68k*-*-openbsd*)
f1cf4606
ME
1329 # needed to unconfuse gdb
1330 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
61ed06c3
HPN
1331 # we need collect2 until our bug is fixed...
1332 use_collect2=yes
1333 ;;
61ed06c3
HPN
1334m68k-*-sysv4*) # Motorola m68k's running system V.4
1335 tm_file=m68k/m68kv4.h
61ed06c3
HPN
1336 tmake_file=t-svr4
1337 extra_parts="crtbegin.o crtend.o"
61ed06c3 1338 ;;
61ed06c3
HPN
1339m68k-*-linux*) # Motorola m68k's running GNU/Linux
1340 # with ELF format using glibc 2
1341 # aka the GNU/Linux C library 6.
61ed06c3 1342 tm_file=m68k/linux.h
d2c172bf 1343 tmake_file="t-slibgcc-elf-ver t-linux"
61ed06c3 1344 ;;
c7bdf0a6 1345m68k-*-rtems*)
61ed06c3 1346 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
f22b4bc4 1347 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"
bb8602be 1348 extra_parts="crtbegin.o crtend.o"
bc98ef7f
JS
1349 if test x$enable_threads = xyes; then
1350 thread_file='rtems'
1351 fi
61ed06c3 1352 ;;
61ed06c3 1353mcore-*-elf)
c40409ce 1354 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
61ed06c3
HPN
1355 tmake_file=mcore/t-mcore
1356 ;;
1357mcore-*-pe*)
1358 tm_file=mcore/mcore-pe.h
1359 tmake_file=mcore/t-mcore-pe
1360 ;;
789b7de5
RO
1361mips-sgi-irix6*o32) # SGI System V.4., IRIX 6, O32 ABI
1362 if test x$gas = xyes
1363 then
59267987 1364 tm_file="mips/iris5.h mips/iris5gas.h mips/iris6-o32-gas.h"
789b7de5
RO
1365 if test x$stabs = xyes
1366 then
1367 tm_file="${tm_file} dbx.h"
1368 fi
59267987 1369 tmake_file=mips/t-iris5-gas
789b7de5
RO
1370 else
1371 tm_file="mips/iris5.h mips/iris6-o32-as.h"
1372 tmake_file=mips/t-iris5-as
1373 fi
1374 tm_file="${tm_file} mips/iris6-o32.h"
1375 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
789b7de5
RO
1376 xm_file=mips/xm-iris5.h
1377 # mips-tfile doesn't work yet
1378 # See comment in mips/iris5.h file.
1379 use_collect2=yes
1380# if test x$enable_threads = xyes; then
1381# thread_file='irix'
1382# fi
1383 ;;
61ed06c3
HPN
1384mips-sgi-irix6*) # SGI System V.4., IRIX 6
1385 if test "x$gnu_ld" = xyes
1386 then
1387 tm_file="mips/iris6.h mips/iris6gld.h"
1388 else
1389 tm_file=mips/iris6.h
1390 fi
789b7de5 1391 tmake_file="mips/t-iris mips/t-iris5-6 mips/t-iris6"
61ed06c3
HPN
1392# if test x$enable_threads = xyes; then
1393# thread_file='irix'
1394# fi
1395 ;;
61ed06c3
HPN
1396mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1397 tm_file="mips/iris6.h mips/cross64.h"
84c041a1 1398 xm_file=mips/xm-iris5.h
14455c64 1399 tmake_file="mips/t-iris mips/t-cross64"
61ed06c3
HPN
1400 # See comment in mips/iris[56].h files.
1401 use_collect2=yes
1402# if test x$enable_threads = xyes; then
1403# thread_file='irix'
1404# fi
1405 ;;
61ed06c3
HPN
1406mips-sgi-irix5*) # SGI System V.4., IRIX 5
1407 if test x$gas = xyes
1408 then
1409 tm_file="mips/iris5.h mips/iris5gas.h"
1410 if test x$stabs = xyes
1411 then
1412 tm_file="${tm_file} dbx.h"
1413 fi
59267987 1414 tmake_file=mips/t-iris5-gas
61ed06c3
HPN
1415 else
1416 tm_file=mips/iris5.h
789b7de5 1417 tmake_file=mips/t-iris5-as
61ed06c3 1418 fi
789b7de5 1419 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
84c041a1 1420 xm_file=mips/xm-iris5.h
61ed06c3 1421 # mips-tfile doesn't work yet
61ed06c3
HPN
1422 # See comment in mips/iris5.h file.
1423 use_collect2=yes
1424# if test x$enable_threads = xyes; then
1425# thread_file='irix'
1426# fi
1427 ;;
f982f805 1428mips*-*-netbsd*) # NetBSD/mips, either endian.
27f4b67e 1429 target_cpu_default="MASK_GAS|MASK_ABICALLS"
f3f268dd 1430 tm_file="elfos.h ${tm_file} mips/netbsd.h"
4977bab6 1431 tmake_file="${tmake_file}"
61ed06c3 1432 ;;
3bd6d4c4
AO
1433mips64*-*-linux*)
1434 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h mips/linux64.h"
7c942e17 1435 tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux64"
3bd6d4c4
AO
1436
1437 # This default ABI is a partial lie: t-linux64 overrides the
1438 # DRIVER_SELF_SPEC that sets the default abi, in the spec file
1439 # that is installed. What GCC thinks of as the default must
1440 # remain as ABI_32 such that the SONAMEs of the libgcc shared
1441 # libraries remain compatible with those of mips-linux-gnu.
1442 tm_defines="MIPS_ISA_DEFAULT=1 MIPS_ABI_DEFAULT=ABI_32"
1443 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1444 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1445 gnu_ld=yes
1446 gas=yes
1447 if test x$enable_threads = xyes; then
1448 thread_file='posix'
1449 fi
1450 ;;
61ed06c3 1451mips*-*-linux*) # Linux MIPS, either endian.
2017ed61 1452 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
61ed06c3 1453 case $machine in
009da785 1454 mipsisa32*-*)
009da785 1455 target_cpu_default="MASK_SOFT_FLOAT"
6d439235 1456 tm_defines="MIPS_ISA_DEFAULT=32"
009da785
EC
1457 ;;
1458 esac
4977bab6 1459 tmake_file="t-slibgcc-elf-ver t-linux"
61ed06c3
HPN
1460 ;;
1461mips*el-*-openbsd*) # mips little endian
1462 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1463 ;;
1464mips*-*-openbsd*) # mips big endian
1465 target_cpu_default="MASK_GAS|MASK_ABICALLS"
1466 tm_file="mips/openbsd-be.h ${tm_file}"
1467 ;;
74826b0f 1468mipsisa32-*-elf* | mipsisa32el-*-elf*)
ac8ab9fe 1469 tm_file="${tm_file} mips/elf.h"
0e5a4ad8 1470 tmake_file=mips/t-isa3264
ef8dfae6 1471 tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_EABI"
0e5a4ad8 1472 ;;
2d2a50c3
CD
1473mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
1474 tm_file="${tm_file} mips/elf.h"
1475 tmake_file=mips/t-isa3264
1476 tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_EABI"
1477 ;;
5c44e275 1478mipsisa64-*-elf* | mipsisa64el-*-elf*)
ac8ab9fe 1479 tm_file="${tm_file} mips/elf.h"
5c44e275
CD
1480 tmake_file=mips/t-isa3264
1481 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
d1c4bfe8 1482 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_EABI"
5c44e275 1483 ;;
5ce6f47b
EC
1484mipsisa64sr71k-*-elf*)
1485 tm_file="${tm_file} mips/elf.h"
1486 tmake_file=mips/t-sr71k
1487 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
d1c4bfe8 1488 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
5ce6f47b 1489 ;;
3d41dbb0 1490mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
ac8ab9fe 1491 tm_file="${tm_file} mips/elf.h"
3d41dbb0
CD
1492 tmake_file=mips/t-elf
1493 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1494 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
1495 ;;
74826b0f 1496mips-*-elf* | mipsel-*-elf*)
6d439235 1497 tm_file="${tm_file} mips/elf.h"
61ed06c3
HPN
1498 tmake_file=mips/t-elf
1499 ;;
74826b0f 1500mips64-*-elf* | mips64el-*-elf*)
6d439235 1501 tm_file="${tm_file} mips/elf64.h"
61ed06c3 1502 tmake_file=mips/t-elf
6d439235
EC
1503 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1504 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
61ed06c3 1505 ;;
5ce6f47b
EC
1506mips64vr-*-elf* | mips64vrel-*-elf*)
1507 tm_file="mips/vr.h ${tm_file} mips/elf64.h"
60bc2b4b 1508 tm_defines="MIPS_ABI_DEFAULT=ABI_O64 MIPS_MARCH_CONTROLS_SOFT_FLOAT=1"
5ce6f47b
EC
1509 tmake_file=mips/t-vr
1510 ;;
74826b0f 1511mips64orion-*-elf* | mips64orionel-*-elf*)
6d439235
EC
1512 tm_file="${tm_file} mips/elforion.h mips/elf64.h"
1513 tmake_file=mips/t-elf
61ed06c3 1514 tmake_file=mips/t-elf
6d439235
EC
1515 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1516 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
61ed06c3 1517 ;;
bc98ef7f 1518mips*-*-rtems*)
6d439235 1519 tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h"
bc98ef7f
JS
1520 tmake_file="mips/t-elf t-rtems"
1521 if test x$enable_threads = xyes; then
1522 thread_file='rtems'
1523 fi
61ed06c3 1524 ;;
74826b0f 1525mipstx39-*-elf* | mipstx39el-*-elf*)
ac8ab9fe 1526 tm_file="${tm_file} mips/r3900.h mips/elf.h"
61ed06c3
HPN
1527 tmake_file=mips/t-r3900
1528 ;;
bcf684c7 1529mmix-knuth-mmixware)
4977bab6 1530 need_64bit_hwint=yes
bcf684c7 1531 ;;
61ed06c3 1532mn10300-*-*)
c40409ce 1533 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
61ed06c3
HPN
1534 if test x$stabs = xyes
1535 then
1536 tm_file="${tm_file} dbx.h"
1537 fi
1538 use_collect2=no
1539 ;;
69474c3c
JT
1540ns32k-*-netbsdelf*)
1541 echo "GCC does not yet support the ${machine} target"; exit 1
1542 ;;
61ed06c3 1543ns32k-*-netbsd*)
c8eb9785 1544 tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
61ed06c3 1545 # On NetBSD, the headers are already okay, except for math.h.
ac14c725 1546 tmake_file="t-netbsd ns32k/t-ns32k"
1169f9e0 1547 extra_parts=""
5721cd84 1548 use_collect2=yes
61ed06c3
HPN
1549 ;;
1550pdp11-*-bsd)
1551 tm_file="${tm_file} pdp11/2bsd.h"
1552 ;;
1553pdp11-*-*)
1554 ;;
1555avr-*-*)
1556 ;;
61ed06c3 1557powerpc-*-openbsd*)
7c942e17 1558 tmake_file="${tmake_file} rs6000/t-fprules "
ba1e6c0b 1559 extra_headers=
61ed06c3 1560 ;;
2bfcf297 1561powerpc64-*-linux*)
c40409ce 1562 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux64.h"
40b4cdbf 1563 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-linux64"
2bfcf297 1564 ;;
ddb28441
RM
1565powerpc64-*-gnu*)
1566 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"
40b4cdbf 1567 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-gnu rs6000/t-linux64"
ddb28441 1568 ;;
61ed06c3 1569powerpc-*-beos*)
2bfcf297 1570 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
40b4cdbf 1571 tmake_file="rs6000/t-fprules rs6000/t-beos"
ba1e6c0b 1572 extra_headers=
61ed06c3 1573 ;;
18922061 1574powerpc-*-darwin*)
40b4cdbf
GK
1575 tm_file="${tm_file} rs6000/darwin.h"
1576 tmake_file="rs6000/t-fprules t-darwin rs6000/t-darwin"
5fb4cf24 1577 extra_headers=altivec.h
4977bab6
ZW
1578 # override ppc default
1579 need_64bit_hwint=
476d9098
GK
1580 # powerpc-darwin host support.
1581 host_hook_obj=host-darwin.o
1582 xmake_file=rs6000/x-darwin
18922061 1583 ;;
b91da81f 1584powerpc*-*-freebsd*)
c40409ce 1585 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
40b4cdbf 1586 tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
b91da81f 1587 ;;
edf1b3f3 1588powerpc-*-netbsd*)
a4967b8d
JT
1589 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
1590 tmake_file="${tmake_file} rs6000/t-netbsd"
edf1b3f3 1591 ;;
8da6d80e 1592powerpc-*-chorusos*)
c40409ce 1593 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
40b4cdbf 1594 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
8da6d80e
CC
1595 case x${enable_threads} in
1596 xyes | xpthreads | xposix)
1597 thread_file='posix'
1598 ;;
1599 esac
1600 ;;
518878e1 1601powerpc-*-eabispe*)
518878e1 1602 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h"
00c060a4 1603 tmake_file="rs6000/t-spe rs6000/t-ppccomm"
518878e1 1604 ;;
cf6ede82 1605powerpc-*-eabisimaltivec*)
cf6ede82 1606 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"
40b4cdbf 1607 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
cf6ede82 1608 ;;
61ed06c3 1609powerpc-*-eabisim*)
c40409ce 1610 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
40b4cdbf 1611 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
61ed06c3
HPN
1612 ;;
1613powerpc-*-elf*)
c40409ce 1614 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
40b4cdbf 1615 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
61ed06c3 1616 ;;
10baca6b 1617powerpc-*-eabialtivec*)
10baca6b 1618 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
40b4cdbf 1619 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
10baca6b 1620 ;;
61ed06c3 1621powerpc-*-eabi*)
c40409ce 1622 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
40b4cdbf 1623 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
61ed06c3
HPN
1624 ;;
1625powerpc-*-rtems*)
f22b4bc4 1626 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
7c942e17 1627 tmake_file="rs6000/t-fprules t-rtems rs6000/t-ppccomm"
bc98ef7f
JS
1628 if test x$enable_threads = xyes; then
1629 thread_file='rtems'
1630 fi
61ed06c3 1631 ;;
7c942e17 1632powerpc-*-linux*altivec*)
10baca6b 1633 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
40b4cdbf 1634 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
10baca6b 1635 ;;
7c942e17 1636powerpc-*-linux*spe*)
2f3f95e9
AH
1637 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
1638 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1639 ;;
61ed06c3 1640powerpc-*-linux*)
c40409ce 1641 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
40b4cdbf 1642 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
61ed06c3 1643 ;;
ddb28441
RM
1644powerpc-*-gnu-gnualtivec*)
1645 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"
40b4cdbf 1646 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
ddb28441
RM
1647 if test x$enable_threads = xyes; then
1648 thread_file='posix'
1649 fi
1650 ;;
1651powerpc-*-gnu*)
1652 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"
40b4cdbf 1653 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
ddb28441
RM
1654 if test x$enable_threads = xyes; then
1655 thread_file='posix'
1656 fi
1657 ;;
61ed06c3 1658powerpc-wrs-vxworks*)
4977bab6
ZW
1659 # We want vxworks.h after rs6000/sysv4.h, which unfortunately
1660 # means we have to redo the tm_file list from scratch.
1661 tm_file="rs6000/rs6000.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1662 tm_file="${tm_file} vxworks.h rs6000/vxworks.h"
40b4cdbf 1663 tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
4977bab6
ZW
1664 extra_headers=ppc-asm.h
1665 ;;
bce0deb2 1666powerpc-wrs-windiss*)
bce0deb2 1667 tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h"
40b4cdbf 1668 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
bce0deb2
MM
1669 thread_file=""
1670 ;;
61ed06c3 1671powerpcle-*-sysv*)
c40409ce 1672 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
40b4cdbf 1673 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
61ed06c3
HPN
1674 ;;
1675powerpcle-*-elf*)
c40409ce 1676 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
40b4cdbf 1677 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
61ed06c3
HPN
1678 ;;
1679powerpcle-*-eabisim*)
c40409ce 1680 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"
40b4cdbf 1681 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
61ed06c3
HPN
1682 ;;
1683powerpcle-*-eabi*)
c40409ce 1684 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
40b4cdbf 1685 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
61ed06c3 1686 ;;
61ed06c3 1687rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2bfcf297 1688 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
40b4cdbf 1689 tmake_file="rs6000/t-fprules rs6000/t-newas"
61ed06c3 1690 use_collect2=yes
ba1e6c0b 1691 extra_headers=
61ed06c3
HPN
1692 ;;
1693rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
2bfcf297 1694 tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
61ed06c3 1695 tmake_file=rs6000/t-aix43
61ed06c3
HPN
1696 use_collect2=yes
1697 thread_file='aix'
ba1e6c0b 1698 extra_headers=
61ed06c3 1699 ;;
5f5d5417 1700rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
2bfcf297 1701 tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
61ed06c3 1702 tmake_file=rs6000/t-aix43
61ed06c3
HPN
1703 use_collect2=yes
1704 thread_file='aix'
ba1e6c0b 1705 extra_headers=
61ed06c3 1706 ;;
5f5d5417 1707rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5f5d5417
DE
1708 tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h"
1709 tmake_file=rs6000/t-aix52
1710 use_collect2=yes
1711 thread_file='aix'
1712 extra_headers=
1713 ;;
61ed06c3 1714rs6000-*-lynxos*)
b91da81f 1715 tm_file="lynx.h rs6000/lynx.h"
40b4cdbf 1716 tmake_file=rs6000/t-fprules
61ed06c3
HPN
1717 use_collect2=yes
1718 ;;
0e5a4ad8 1719s390-*-linux*)
c40409ce 1720 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
8ef34c0d 1721 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff"
9628a767 1722 ;;
0e5a4ad8 1723s390x-*-linux*)
58d10f89 1724 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
70eeb10b
UW
1725 tm_p_file=s390/s390-protos.h
1726 md_file=s390/s390.md
1c0ca89d 1727 extra_modes=s390/s390-modes.def
70eeb10b 1728 out_file=s390/s390.c
8ef34c0d 1729 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff s390/t-linux64"
9628a767 1730 ;;
8bc6e101 1731sh-*-elf* | sh[2346l]*-*-elf*)
61ed06c3 1732 tmake_file="sh/t-sh sh/t-elf"
dbf87f32
R
1733 case $machine in
1734 shl* | sh64l*)
1735 tm_file="sh/little.h ${tm_file}"
1736 tmake_file="${tmake_file} sh/t-le"
1737 ;;
1738 esac
f1a58d92 1739 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h"
dbf87f32
R
1740 case $machine in
1741 sh64*)
1742 tmake_file="${tmake_file} sh/t-sh64"
1743 tm_file="${tm_file} sh/sh64.h"
1744 extra_headers="shmedia.h ushmedia.h sshmedia.h"
dbf87f32 1745 ;;
8bc6e101
R
1746 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1747 sh4*) target_cpu_default="SELECT_SH4" ;;
1748 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1749 sh3*) target_cpu_default="SELECT_SH3" ;;
3a8699c7 1750 sh2e*) target_cpu_default="SELECT_SH2E" ;;
8bc6e101
R
1751 sh2*) target_cpu_default="SELECT_SH2" ;;
1752 esac
1753 case $machine in
1754 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
dbf87f32 1755 esac
fa5322fa 1756 ;;
61ed06c3
HPN
1757sh-*-rtemself*)
1758 tmake_file="sh/t-sh sh/t-elf t-rtems"
f1a58d92 1759 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h sh/rtemself.h rtems.h"
bc98ef7f
JS
1760 if test x$enable_threads = xyes; then
1761 thread_file='rtems'
1762 fi
61ed06c3
HPN
1763 ;;
1764sh-*-rtems*)
1765 tmake_file="sh/t-sh t-rtems"
f1a58d92 1766 tm_file="${tm_file} sh/coff.h sh/rtems.h rtems.h"
bc98ef7f
JS
1767 if test x$enable_threads = xyes; then
1768 thread_file='rtems'
1769 fi
61ed06c3 1770 ;;
8bc6e101 1771sh-*-linux* | sh[2346lbe]*-*-linux*)
4977bab6 1772 tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux sh/t-linux"
8bc6e101
R
1773 case $machine in
1774 sh*be-*-* | sh*eb-*-*) ;;
1775 *)
1776 tm_file="sh/little.h ${tm_file}"
1777 tmake_file="${tmake_file} sh/t-le"
1778 ;;
1779 esac
1780 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
8bc6e101
R
1781 case $machine in
1782 sh64*)
1783 tmake_file="${tmake_file} sh/t-sh64"
1784 tm_file="${tm_file} sh/sh64.h"
1785 extra_headers="shmedia.h ushmedia.h sshmedia.h"
8bc6e101
R
1786 ;;
1787 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1788 sh4*) target_cpu_default="SELECT_SH4" ;;
1789 sh3e[lb]e*) target_cpu_default="SELECT_SH3E" ;;
1790 sh3e[lb]*) target_cpu_default="SELECT_SH3" ;;
1791 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1792 sh3*) target_cpu_default="SELECT_SH3" ;;
3a8699c7
AO
1793 sh2e[lb]e*) target_cpu_default="SELECT_SH2E" ;;
1794 sh2e[lb]*) target_cpu_default="SELECT_SH2" ;;
1795 sh2e*) target_cpu_default="SELECT_SH2E" ;;
8bc6e101
R
1796 sh2*) target_cpu_default="SELECT_SH2" ;;
1797 esac
1798 case $machine in
1799 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1800 esac
61ed06c3 1801 ;;
b655555e
JT
1802sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1803 sh64-*-netbsd* | sh64l*-*-netbsd*)
b4eb03fe
JT
1804 tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h netbsd.h netbsd-elf.h sh/netbsd-elf.h"
1805 tmake_file="${tmake_file} sh/t-sh sh/t-elf"
1806 case $machine in
1807 sh*l*-*)
1808 tm_file="sh/little.h ${tm_file}"
1809 tmake_file="${tmake_file} sh/t-le"
1810 ;;
1811 *)
1812 tmake_file="${tmake_file} sh/t-be"
1813 ;;
1814 esac
b655555e
JT
1815 case $machine in
1816 sh5*-*)
1817 # SHmedia, 32-bit ABI
3a8699c7 1818 target_cpu_default="SH5_BIT|SH4_BIT|SH3_BIT|SH_E_BIT"
3fa1b448 1819 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5"
b655555e
JT
1820 ;;
1821 sh64*-*)
1822 # SHmedia, 64-bit ABI
1823 target_cpu_default="SH5_BIT|SH4_BIT"
3fa1b448 1824 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5 sh/t-netbsd-sh5-64"
b655555e
JT
1825 ;;
1826 *)
1827 # SH3, software floating point
1828 target_cpu_default="SH1_BIT|SH2_BIT|SH3_BIT"
1829 tmake_file="${tmake_file} sh/t-netbsd"
1830 ;;
1831 esac
b4eb03fe 1832 ;;
61ed06c3 1833sh-*-*)
f1a58d92 1834 tm_file="${tm_file} sh/coff.h"
61ed06c3
HPN
1835 ;;
1836sparc-tti-*)
0f658c83 1837 tm_file="${tm_file} sparc/pbd.h"
61ed06c3 1838 ;;
69474c3c 1839sparc-*-netbsdelf*)
4cb7482c 1840 tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
69474c3c 1841 ;;
61ed06c3 1842sparc-*-openbsd*)
0f7a7be7 1843 tm_file="sparc/sparc.h ${tm_file}"
f1cf4606
ME
1844 # needed to unconfuse gdb
1845 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
61ed06c3
HPN
1846 # we need collect2 until our bug is fixed...
1847 use_collect2=yes
1848 ;;
91f0fcee
ME
1849sparc64-*-openbsd*)
1850 tm_file="sparc/openbsd1-64.h sparc/sparc.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sp64-elf.h openbsd.h sparc/openbsd64.h"
91f0fcee
ME
1851 gas=yes gnu_ld=yes
1852 with_cpu=ultrasparc
91f0fcee 1853 ;;
61ed06c3 1854sparc-*-elf*)
8433a25e 1855 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h"
a261e0cc 1856 tmake_file="sparc/t-elf sparc/t-crtfm"
61ed06c3 1857 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
61ed06c3 1858 ;;
981f6289 1859sparc-*-linux*) # SPARC's running GNU/Linux, libc6
c40409ce 1860 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
a261e0cc 1861 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
61ed06c3 1862 ;;
c7bdf0a6 1863sparc-*-rtems*)
8433a25e 1864 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h"
2d69e3cb 1865 tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
61ed06c3 1866 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
bc98ef7f
JS
1867 if test x$enable_threads = xyes; then
1868 thread_file='rtems'
1869 fi
61ed06c3 1870 ;;
8947df0c 1871sparc64-*-solaris2* | sparcv9-*-solaris2*)
8433a25e 1872 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h"
3fc602a0
RH
1873 if test x$gnu_ld = xyes; then
1874 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
61ed06c3 1875 fi
f0871dfe
RH
1876 if test x$gas = xyes; then
1877 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1878 fi
a261e0cc 1879 tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
61ed06c3 1880 if test x$gnu_ld = xyes; then
7b3a4df5 1881 tmake_file="$tmake_file t-slibgcc-elf-ver"
61ed06c3 1882 else
7b3a4df5 1883 tmake_file="$tmake_file t-slibgcc-sld"
61ed06c3 1884 fi
61ed06c3 1885 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
61ed06c3
HPN
1886 if test x${enable_threads} = x ; then
1887 enable_threads=$have_pthread_h
1888 if test x${enable_threads} = x ; then
1889 enable_threads=$have_thread_h
1890 fi
1891 fi
1892 if test x${enable_threads} = xyes ; then
1893 if test x${have_pthread_h} = xyes ; then
1894 thread_file='posix'
1895 else
1896 thread_file='solaris'
1897 fi
1898 fi
4977bab6 1899 need_64bit_hwint=yes
61ed06c3 1900 ;;
8947df0c 1901sparc-*-solaris2*)
8433a25e 1902 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h"
3fc602a0
RH
1903 if test x$gnu_ld = xyes; then
1904 tm_file="${tm_file} sparc/sol2-gld.h"
61ed06c3 1905 fi
a261e0cc 1906 tmake_file="sparc/t-sol2 sparc/t-crtfm"
61ed06c3 1907 if test x$gnu_ld = xyes; then
7b3a4df5 1908 tmake_file="$tmake_file t-slibgcc-elf-ver"
61ed06c3 1909 else
7b3a4df5 1910 tmake_file="$tmake_file t-slibgcc-sld"
61ed06c3 1911 fi
7112135f 1912 case $machine in
8947df0c
RH
1913 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
1914 if test x$gnu_ld = xno; then
1915 tm_file="${tm_file} sparc/sol26-sld.h"
1916 fi
1917 ;;
1918 *-*-solaris2.[789])
3fc602a0
RH
1919 tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
1920 if test x$gnu_ld = xyes; then
1921 tm_file="${tm_file} sparc/sol2-gld-bi.h"
7112135f 1922 fi
f0871dfe
RH
1923 if test x$gas = xyes; then
1924 tm_file="${tm_file} sparc/sol2-gas-bi.h"
1925 fi
7112135f 1926 tmake_file="$tmake_file sparc/t-sol2-64"
4977bab6 1927 need_64bit_hwint=yes
7112135f
AO
1928 ;;
1929 esac
3fc602a0 1930 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
61ed06c3
HPN
1931 if test x${enable_threads} = x; then
1932 enable_threads=$have_pthread_h
1933 if test x${enable_threads} = x; then
1934 enable_threads=$have_thread_h
1935 fi
1936 fi
1937 if test x${enable_threads} = xyes; then
1938 if test x${have_pthread_h} = xyes; then
1939 thread_file='posix'
1940 else
1941 thread_file='solaris'
1942 fi
1943 fi
1944 ;;
61ed06c3 1945sparc-*-sysv4*)
9b8466f4 1946 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sysv4-only.h"
61ed06c3 1947 tmake_file=t-svr4
61ed06c3
HPN
1948 extra_parts="crtbegin.o crtend.o"
1949 ;;
61ed06c3 1950sparclite-*-coff*)
0f658c83 1951 tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
61ed06c3
HPN
1952 tmake_file=sparc/t-sparclite
1953 ;;
61ed06c3 1954sparclite-*-elf*)
8433a25e 1955 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h gofast.h sparc/liteelf.h"
2d69e3cb 1956 tmake_file="sparc/t-sparclite sparc/t-crtfm"
61ed06c3
HPN
1957 extra_parts="crtbegin.o crtend.o"
1958 ;;
0e5a4ad8 1959sparc86x-*-elf*)
8433a25e 1960 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h gofast.h sparc/sp86x-elf.h"
2d69e3cb 1961 tmake_file="sparc/t-sp86x sparc/t-crtfm"
61ed06c3
HPN
1962 extra_parts="crtbegin.o crtend.o"
1963 ;;
1964sparc64-*-aout*)
0f7a7be7 1965 tm_file="sparc/sparc.h aoutos.h sparc/aout.h sparc/sp64-aout.h"
61ed06c3
HPN
1966 ;;
1967sparc64-*-elf*)
8433a25e 1968 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sp64-elf.h"
2d69e3cb 1969 tmake_file="${tmake_file} sparc/t-crtfm"
61ed06c3
HPN
1970 extra_parts="crtbegin.o crtend.o"
1971 ;;
c7240cbd
DB
1972sparc64-*-freebsd*|ultrasparc-*-freebsd*)
1973 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
2d69e3cb 1974 tmake_file="${tmake_file} sparc/t-crtfm"
c7240cbd
DB
1975 xmake_file=none
1976 case "x$with_cpu" in
e0054185 1977 xultrasparc) ;;
c7240cbd
DB
1978 x) with_cpu=ultrasparc ;;
1979 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
1980 esac
4977bab6 1981 need_64bit_hwint=yes
c7240cbd 1982 ;;
981f6289 1983sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
19fe522a 1984 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
86f808dc 1985 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
61ed06c3 1986 ;;
4cb7482c
MG
1987sparc64-*-netbsd*)
1988 tmake_file="${tmake_file} sparc/t-netbsd64"
1989 tm_file="sparc/biarch64.h ${tm_file}"
1990 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
4cb7482c 1991 ;;
d19fb8e3 1992strongarm-*-elf*)
c40409ce 1993 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
d19fb8e3
NC
1994 tmake_file=arm/t-strongarm-elf
1995 out_file=arm/arm.c
d19fb8e3 1996 md_file=arm/arm.md
1c0ca89d 1997 extra_modes=arm/arm-modes.def
d19fb8e3 1998 ;;
d19fb8e3 1999strongarm-*-pe)
f910b1bb 2000 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"
d19fb8e3
NC
2001 tmake_file=arm/t-strongarm-pe
2002 out_file=arm/arm.c
d19fb8e3 2003 md_file=arm/arm.md
1c0ca89d 2004 extra_modes=arm/arm-modes.def
d19fb8e3
NC
2005 extra_objs=pe.o
2006 ;;
b4378319
NC
2007v850e-*-*)
2008 target_cpu_default="TARGET_CPU_v850e"
2009 tm_file="dbxelf.h elfos.h svr4.h v850/v850.h"
2010 tm_p_file=v850/v850-protos.h
2011 tmake_file=v850/t-v850
2012 md_file=v850/v850.md
2013 out_file=v850/v850.c
2014 if test x$stabs = xyes
2015 then
2016 tm_file="${tm_file} dbx.h"
2017 fi
2018 use_collect2=no
2019 c_target_objs="v850-c.o"
2020 cxx_target_objs="v850-c.o"
2021 ;;
61ed06c3
HPN
2022v850-*-*)
2023 target_cpu_default="TARGET_CPU_generic"
c40409ce 2024 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
61ed06c3
HPN
2025 tmake_file=v850/t-v850
2026 if test x$stabs = xyes
2027 then
2028 tm_file="${tm_file} dbx.h"
2029 fi
2030 use_collect2=no
c3edd394
NC
2031 c_target_objs="v850-c.o"
2032 cxx_target_objs="v850-c.o"
61ed06c3 2033 ;;
8aeea6e6 2034vax-*-bsd*) # VAXen running BSD
169274cd 2035 tm_file="${tm_file} vax/bsd.h"
61ed06c3 2036 use_collect2=yes
61ed06c3 2037 ;;
8aeea6e6 2038vax-*-sysv*) # VAXen running system V
61ed06c3 2039 tm_file="${tm_file} vax/vaxv.h"
61ed06c3 2040 ;;
69474c3c 2041vax-*-netbsdelf*)
ec20cffb 2042 tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
69474c3c 2043 ;;
61ed06c3 2044vax-*-netbsd*)
f982f805 2045 tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
61ed06c3 2046 tmake_file=t-netbsd
1169f9e0 2047 extra_parts=""
5721cd84 2048 use_collect2=yes
61ed06c3
HPN
2049 ;;
2050vax-*-openbsd*)
61ed06c3 2051 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
61ed06c3
HPN
2052 use_collect2=yes
2053 ;;
8aeea6e6 2054vax-*-ultrix*) # VAXen running ultrix
61ed06c3 2055 tm_file="${tm_file} vax/ultrix.h"
61ed06c3 2056 ;;
8aeea6e6 2057vax-*-vms*) # VAXen running VMS
4977bab6
ZW
2058 echo "Configuration $machine no longer supported" 1>&2
2059 exit 1
61ed06c3 2060 ;;
8aeea6e6 2061vax-*-*) # VAX default entry
61ed06c3 2062 ;;
d19fb8e3 2063xscale-*-elf)
c40409ce 2064 tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
d19fb8e3
NC
2065 tmake_file=arm/t-xscale-elf
2066 out_file=arm/arm.c
d19fb8e3 2067 md_file=arm/arm.md
1c0ca89d 2068 extra_modes=arm/arm-modes.def
d19fb8e3
NC
2069 ;;
2070xscale-*-coff)
578316b9 2071 tm_file="arm/semi.h arm/aout.h arm/coff.h arm/xscale-coff.h arm/arm.h"
d19fb8e3
NC
2072 tmake_file=arm/t-xscale-coff
2073 out_file=arm/arm.c
d19fb8e3 2074 md_file=arm/arm.md
1c0ca89d 2075 extra_modes=arm/arm-modes.def
d19fb8e3 2076 ;;
14d269bb
GK
2077xstormy16-*-elf)
2078 # For historical reasons, the target files omit the 'x'.
c40409ce 2079 tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
14d269bb
GK
2080 tm_p_file=stormy16/stormy16-protos.h
2081 md_file=stormy16/stormy16.md
2082 out_file=stormy16/stormy16.c
2083 tmake_file="stormy16/t-stormy16"
2084 extra_parts="crtbegin.o crtend.o"
2085 ;;
03984308
BW
2086xtensa-*-elf*)
2087 tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
1f37a5b2 2088 tmake_file="xtensa/t-xtensa xtensa/t-elf"
03984308
BW
2089 ;;
2090xtensa-*-linux*)
2091 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
066f1538 2092 tmake_file="t-slibgcc-elf-ver t-linux xtensa/t-xtensa xtensa/t-linux"
03984308 2093 ;;
61ed06c3 2094*)
c7bdf0a6 2095 echo "*** Configuration $machine not supported" 1>&2
61ed06c3
HPN
2096 exit 1
2097 ;;
2098esac
2099
2100case $machine in
61ed06c3
HPN
2101*-*-sysv*)
2102 install_headers_dir=install-headers-cpio
2103 ;;
2104esac
2105
2106# Distinguish i[34567]86
2107# Also, do not run mips-tfile on MIPS if using gas.
2108# Process --with-cpu= for PowerPC/rs6000
2109target_cpu_default2=
2110case $machine in
2111i486-*-*)
e10e23ee 2112 target_cpu_default2=TARGET_CPU_DEFAULT_i486
61ed06c3
HPN
2113 ;;
2114i586-*-*)
2115 case $target_alias in
e10e23ee
JH
2116 k6_2-*)
2117 target_cpu_default2=TARGET_CPU_DEFAULT_k6_2
2118 ;;
2119 k6_3-*)
2120 target_cpu_default2=TARGET_CPU_DEFAULT_k6_3
2121 ;;
61ed06c3 2122 k6-*)
e10e23ee
JH
2123 target_cpu_default2=TARGET_CPU_DEFAULT_k6
2124 ;;
3780101d 2125 pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
e10e23ee 2126 target_cpu_default2=TARGET_CPU_DEFAULT_pentium_mmx
61ed06c3
HPN
2127 ;;
2128 *)
e10e23ee 2129 target_cpu_default2=TARGET_CPU_DEFAULT_pentium
61ed06c3
HPN
2130 ;;
2131 esac
2132 ;;
2133i686-*-* | i786-*-*)
4ed47bea 2134 case $target_alias in
4977bab6
ZW
2135 k8-*)
2136 target_cpu_default2=TARGET_CPU_DEFAULT_k8
2137 ;;
e10e23ee
JH
2138 athlon_xp-*|athlon_mp-*|athlon_4-*)
2139 target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse
2140 ;;
2141 athlon_tbird-*|athlon-*)
2142 target_cpu_default2=TARGET_CPU_DEFAULT_athlon
2143 ;;
2144 pentium2-*)
2145 target_cpu_default2=TARGET_CPU_DEFAULT_pentium2
2146 ;;
2147 pentium3-*)
2148 target_cpu_default2=TARGET_CPU_DEFAULT_pentium3
2149 ;;
2150 pentium4-*)
2151 target_cpu_default2=TARGET_CPU_DEFAULT_pentium4
4ed47bea
JM
2152 ;;
2153 *)
e10e23ee 2154 target_cpu_default2=TARGET_CPU_DEFAULT_pentiumpro
4ed47bea
JM
2155 ;;
2156 esac
61ed06c3 2157 ;;
e10e23ee
JH
2158x86_64-*-*)
2159 # We should have hammer chip here, but it does not exist yet and
2160 # thus it is not supported. Athlon_SSE is probably equivalent feature
2161 # wise to hammer from our point of view except for 64bit mode.
4977bab6 2162 target_cpu_default2=TARGET_CPU_DEFAULT_k8
e10e23ee 2163 ;;
61ed06c3
HPN
2164alpha*-*-*)
2165 case $machine in
2166 alphaev6[78]*)
2167 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
2168 ;;
2169 alphaev6*)
2170 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
2171 ;;
2172 alphapca56*)
2173 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2174 ;;
2175 alphaev56*)
2176 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2177 ;;
2178 alphaev5*)
2179 target_cpu_default2="MASK_CPU_EV5"
2180 ;;
2181 esac
0e5a4ad8 2182
61ed06c3
HPN
2183 if test x$gas = xyes
2184 then
2185 if test "$target_cpu_default2" = ""
2186 then
2187 target_cpu_default2="MASK_GAS"
2188 else
2189 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2190 fi
2191 fi
2192 ;;
250315f7 2193arm*-*-* | xscale-*-*)
61ed06c3
HPN
2194 case "x$with_cpu" in
2195 x)
2196 # The most generic
2197 target_cpu_default2="TARGET_CPU_generic"
2198 ;;
2199
2200 # Distinguish cores, and major variants
2201 # arm7m doesn't exist, but D & I don't affect code
70f24e49
NC
2202 xarm[236789] | xarm250 | xarm[67][01]0 \
2203 | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \
61ed06c3 2204 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
250315f7 2205 | xxscale | xiwmmxt \
9b6b54e2 2206 | xep9312 \
61ed06c3
HPN
2207 | xstrongarm | xstrongarm110 | xstrongarm1100)
2208 target_cpu_default2="TARGET_CPU_$with_cpu"
2209 ;;
2210
2211 xyes | xno)
2212 echo "--with-cpu must be passed a value" 1>&2
2213 exit 1
2214 ;;
2215
2216 *)
2217 if test x$pass2done = xyes
2218 then
2219 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2220 exit 1
2221 fi
2222 ;;
2223 esac
9b6b54e2
NC
2224 case $machine in
2225 9ep9312-*-*)
2226 target_cpu_default2="TARGET_CPU_9ep9312"
2227 ;;
2228 esac
61ed06c3
HPN
2229 ;;
2230
c21a2372
AM
2231hppa*-*-* | parisc*-*-*)
2232 if test x$gas = xyes
2233 then
2234 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
2235 fi
806bf413 2236 case $machine in
d5355cb2
JDA
2237 hppa1* | parisc1*)
2238 tm_defines="TARGET_SCHED_DEFAULT=\\\"7100LC\\\""
806bf413
JDA
2239 ;;
2240 esac
c21a2372 2241 ;;
74826b0f
EC
2242mips*-*-*)
2243 case $machine in
2244 mips*-*-ecoff* | mips*-*-elf*)
2245 if test x$gas = xyes
2246 then
2247 if test x$gnu_ld = xyes
2248 then
2249 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
2250 else
2251 target_cpu_default2="MASK_GAS"
2252 fi
2253 fi
2254 ;;
2255 mips*-*-*)
2256 if test x$gas = xyes
61ed06c3 2257 then
61ed06c3
HPN
2258 target_cpu_default2="MASK_GAS"
2259 fi
74826b0f
EC
2260 ;;
2261 esac
2262 case $machine in
2263 mips*el-*-*)
9bb46191 2264 tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
74826b0f
EC
2265 ;;
2266 esac
4db83639
RS
2267 case $tm_file in
2268 *mips/elf.h* | *mips/elf64.h*)
2269 tm_defines="OBJECT_FORMAT_ELF $tm_defines"
2270 ;;
2271 esac
6d439235
EC
2272 if test "x$enable_gofast" = xyes
2273 then
2274 tm_defines="INIT_SUBTARGET_OPTABS=INIT_GOFAST_OPTABS $tm_defines"
2275 tm_file="gofast.h $tm_file"
2276 tmake_file="mips/t-gofast $tmake_file"
2277 else
2278 tmake_file="mips/t-mips $tmake_file"
2279 fi
61ed06c3
HPN
2280 ;;
2281powerpc*-*-* | rs6000-*-*)
480f7f3a
AH
2282 if test x$enable_altivec = xyes
2283 then
5e505bc9 2284 tm_file="$tm_file rs6000/altivec-defs.h"
480f7f3a 2285 fi
61ed06c3
HPN
2286 case "x$with_cpu" in
2287 x)
2288 ;;
2289
dccd5213
DE
2290 xcommon | xpowerpc | xpowerpc64 \
2291 | xpower | xpower2 | xpower3 | xpower4 \
94f1d97c
DJ
2292 | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \
2293 | x601 | x602 | x603 | x603e | x604 | x604e | x620 | x630 \
2294 | x740 | x750 | x7400 | x7450 | x505)
ff25793c 2295 target_cpu_default2="\\\"$with_cpu\\\""
61ed06c3
HPN
2296 ;;
2297
94f1d97c 2298 x401 | x403 | x405 | xec603e | x801 | x821 | x823 | x860)
c19083d8 2299 target_cpu_default2="\\\"$with_cpu\\\""
c19083d8
DD
2300 ;;
2301
61ed06c3
HPN
2302 xyes | xno)
2303 echo "--with-cpu must be passed a value" 1>&2
2304 exit 1
2305 ;;
2306
2307 *)
2308 if test x$pass2done = xyes
2309 then
2310 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2311 exit 1
2312 fi
2313 ;;
2314 esac
b17bb466 2315 out_file=rs6000/rs6000.c
a6e2e53e
GK
2316 c_target_objs="${c_target_objs} rs6000-c.o"
2317 cxx_target_objs="${cxx_target_objs} rs6000-c.o"
40b4cdbf 2318 tmake_file="rs6000/t-rs6000 ${tmake_file}"
61ed06c3
HPN
2319 ;;
2320sparc*-*-*)
2321 case ".$with_cpu" in
2322 .)
2323 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2324 ;;
2325 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
2326 target_cpu_default2="TARGET_CPU_$with_cpu"
b4378319
NC
2327 ;;
2328 *)
2329 if test x$pass2done = xyes
2330 then
2331 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2332 exit 1
2333 fi
2334 ;;
2335 esac
2336 ;;
2337v850*-*-*)
2338 case "x$with_cpu" in
2339 x)
2340 ;;
09818236 2341 xv850e)
b4378319 2342 target_cpu_default2="TARGET_CPU_$with_cpu"
61ed06c3
HPN
2343 ;;
2344 *)
2345 if test x$pass2done = xyes
2346 then
2347 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2348 exit 1
2349 fi
2350 ;;
2351 esac
2352 ;;
2353esac
2354
2355if test "$target_cpu_default2" != ""
2356then
2357 if test "$target_cpu_default" != ""
2358 then
2359 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2360 else
2361 target_cpu_default=$target_cpu_default2
2362 fi
2363fi
2364
61ed06c3
HPN
2365# Save data on machine being used to compile GCC in build_xm_file.
2366# Save data on host machine in vars host_xm_file and host_xmake_file.
2367if test x$pass1done = x
2368then
4dc0535b
ZW
2369 if test x$xm_file != x
2370 then build_xm_file=$xm_file
61ed06c3
HPN
2371 fi
2372 build_xm_defines=$xm_defines
2373 build_install_headers_dir=$install_headers_dir
2374 build_exeext=$exeext
2375 pass1done=yes
2376else
2377 if test x$pass2done = x
2378 then
4dc0535b
ZW
2379 if test x$xm_file != x
2380 then host_xm_file=$xm_file
61ed06c3
HPN
2381 fi
2382 host_xm_defines=$xm_defines
61ed06c3
HPN
2383 host_xmake_file="$xmake_file"
2384 host_truncate_target=$truncate_target
2385 host_extra_gcc_objs=$extra_gcc_objs
2386 host_extra_objs=$extra_host_objs
2387 host_exeext=$exeext
476d9098 2388 out_host_hook_obj=$host_hook_obj
61ed06c3
HPN
2389 pass2done=yes
2390 fi
2391fi