]> gcc.gnu.org Git - gcc.git/blame - gcc/config.gcc
xfails: Removed tests that pass now...
[gcc.git] / gcc / config.gcc
CommitLineData
a89ea0df 1# GCC 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 21
a89ea0df
NN
22# This is the GCC target-specific configuration file
23# where a configuration type is mapped to different system-specific
24# definitions and files. This is invoked by the autoconf-generated
25# configure script. Putting it in a separate shell file lets us skip
26# running autoconf when modifying target-specific information.
61ed06c3 27
b01bc573 28# This file switches on the shell variable ${target}, and also uses the
61ed06c3
HPN
29# following shell variables:
30#
31# with_* Various variables as set by configure.
32#
33# enable_threads_flag Either the name, yes or no depending on whether
34# threads support was requested.
35#
2121a768
JT
36# default_use_cxa_atexit
37# "no" by default, can be set to "yes" if a target
38# wishes to use __cxa_atexit() by default if the
39# $enable___cxa_atexit variable is not set.
40#
61ed06c3
HPN
41# gas_flag Either yes or no depending on whether GNU as was
42# requested.
43#
44# gnu_ld_flag Either yes or no depending on whether GNU ld was
45# requested.
46
47# This file sets the following shell variables for use by the
48# autoconf-generated configure script:
49#
b01bc573
NN
50# cpu_type The name of the cpu, if different from the first
51# chunk of the canonical target name.
61ed06c3 52#
d5355cb2
JDA
53# tm_defines List of target macros to define for all compilations.
54#
61ed06c3 55# tm_file A list of target macro files, if different from
32fb7c9d
FS
56# "$cpu_type/$cpu_type.h". Usually it's constructed
57# per target in a way like this:
c40409ce 58# tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h"
32fb7c9d
FS
59# Note that the preferred order is:
60# - specific target header "${cpu_type}/${cpu_type.h}"
c40409ce 61# - generic headers like dbxelf.h elfos.h, netware.h, etc.
32fb7c9d
FS
62# - specializing target headers like ${cpu_type.h}/elf.h
63# This helps to keep OS specific stuff out of the CPU
64# defining header ${cpu_type}/${cpu_type.h}.
61ed06c3
HPN
65#
66# tm_p_file Location of file with declarations for functions
67# in $out_file.
68#
69# out_file The name of the machine description C support
70# file, if different from "$cpu_type/$cpu_type.c".
71#
72# md_file The name of the machine-description file, if
73# different from "$cpu_type/$cpu_type.md".
74#
75# tmake_file A list of machine-description-specific
76# makefile-fragments, if different from
77# "$cpu_type/t-$cpu_type".
78#
1c0ca89d
ZW
79# extra_modes The name of the file containing a list of extra
80# machine modes, if necessary and different from
81# "$cpu_type/$cpu_type-modes.def".
82#
61ed06c3
HPN
83# extra_objs List of extra objects that should be linked into
84# the compiler proper (cc1, cc1obj, cc1plus)
85# depending on target.
86#
87# extra_headers List of used header files from the directory
817e13c4 88# config/${cpu_type}.
61ed06c3 89#
61ed06c3
HPN
90# extra_passes List of extra executables compiled for this target
91# machine, used for compiling from source to object.
92#
93# extra_parts List of extra object files that should be compiled
94# for this target machine.
95#
96# extra_programs Like extra_passes, but these are used when linking.
97#
ff7cc307 98# c_target_objs List of extra target-dependent objects that be
aac69a49 99# linked into the C compiler only.
0e5a4ad8 100#
ff7cc307 101# cxx_target_objs List of extra target-dependent objects that be
aac69a49 102# linked into the C++ compiler only.
0e5a4ad8 103#
ef69da62
SS
104# target_gtfiles List of extra source files with type information.
105#
61ed06c3
HPN
106# xm_defines List of macros to define when compiling for the
107# target machine.
108#
109# xm_file List of files to include when compiling for the
110# target machine.
111#
112# use_collect2 Set to yes or no, depending on whether collect2
113# will be used.
114#
115# target_cpu_default Set to override the default target model.
116#
61ed06c3
HPN
117# gdb_needs_out_file_path
118# Set to yes if gdb needs a dir command with
119# `dirname $out_file`.
120#
61ed06c3
HPN
121# thread_file Set to control which thread package to use.
122#
123# gas Set to yes or no depending on whether the target
124# system normally uses GNU as.
4977bab6
ZW
125#
126# need_64bit_hwint Set to yes if HOST_WIDE_INT must be 64 bits wide
127# for this target. This is true iff
128# MAX_LONG_TYPE_SIZE is 64. (The code which
129# determines the underlying integral type for
130# HOST_WIDE_INT cannot see the definition of
131# MAX_LONG_TYPE_SIZE.)
7816bea0
DJ
132#
133# configure_default_options
134# Set to an initializer for configure_default_options
135# in configargs.h, based on --with-cpu et cetera.
587dc9c6
NN
136#
137# use_fixproto Set to "yes" if fixproto should be run normally,
138# "no" if fixproto should never be run.
61ed06c3
HPN
139
140# The following variables are used in each case-construct to build up the
141# outgoing variables:
142#
61ed06c3
HPN
143# gnu_ld Set to yes or no depending on whether the target
144# system normally uses GNU ld.
145
146out_file=
61ed06c3
HPN
147tmake_file=
148extra_headers=
149extra_passes=
150extra_parts=
151extra_programs=
152extra_objs=
61ed06c3 153extra_gcc_objs=
aac69a49
NC
154c_target_objs=
155cxx_target_objs=
d5355cb2 156tm_defines=
61ed06c3 157xm_defines=
61ed06c3
HPN
158# Set this to force installation and use of collect2.
159use_collect2=
160# Set this to override the default target model.
161target_cpu_default=
61ed06c3
HPN
162# Set this if gdb needs a dir command with `dirname $out_file`
163gdb_needs_out_file_path=
61ed06c3
HPN
164# Set this to control which thread package will be used.
165thread_file=
166# Reinitialize these from the flag values every loop pass, since some
167# configure entries modify them.
168gas="$gas_flag"
169gnu_ld="$gnu_ld_flag"
170enable_threads=$enable_threads_flag
2121a768 171default_use_cxa_atexit=no
6ab185d6 172target_gtfiles=
4977bab6 173need_64bit_hwint=
61ed06c3 174
ec2a60b0
NN
175# Default to not using fixproto. Targets which need fixproto should
176# specifically set this to 'yes'.
177use_fixproto=no
587dc9c6 178
6a38414a
NN
179# Don't carry these over build->host->target. Please.
180xm_file=
181md_file=
182
9340544b 183# Obsolete configurations.
b01bc573 184case ${target} in
34cf946f
NN
185 d30v-* | \
186 dsp16xx-* | \
187 i370-* | \
188 i960-* | \
189 i?86-moss-msdos | i?86-*-moss* | \
190 i?86-ncr-sysv4* | \
191 i?86-*-netware | \
192 i?86-*-freebsd2* | i?86-*-freebsd*aout* | \
193 i?86-*-linux*aout* | \
194 i?86-*-linux*libc1* | \
195 i?86-*-interix | \
196 i?86-*-mach* | \
197 i?86-*-udk* | \
198 i?86-*-sysv[123]* | \
199 i386-*-vsta | \
200 m68k-hp-hpux* | m68000-hp-hpux* | \
201 m68k-*-sysv4*)
8998d5bf 202 if test "x$enable_obsolete" != xyes; then
b01bc573 203 echo "*** Configuration ${target} is obsolete." >&2
9340544b
ZW
204 echo "*** Specify --enable-obsolete to build it anyway." >&2
205 echo "*** Support will be REMOVED in the next major release of GCC," >&2
206 echo "*** unless a maintainer comes forward." >&2
207 exit 1
208 fi;;
9340544b
ZW
209esac
210
7c942e17
ZW
211# Unsupported targets list. Do not put an entry in this list unless
212# it would otherwise be caught by a more permissive pattern. The list
213# should be in alphabetical order.
b01bc573 214case ${target} in
7c942e17 215 alpha*-*-linux*libc1* \
8e3a7070 216 | i[34567]86-sequent-sysv \
2d3359eb 217 | i[34567]86-sequent-sysv[123]* \
7c942e17
ZW
218 | i[34567]86-go32-* \
219 | i[34567]86-*-go32* \
220 | m68k-*-linux*aout* \
221 | m68k-*-linux*libc1* \
222 | mips64orion*-*-rtems* \
223 | powerpc-*-linux*libc1* \
224 | sparc-*-linux*aout* \
225 | sparc-*-linux*libc1* \
226 | sparc-hal-solaris2* \
227 | thumb-*-* \
228 | *-*-linux*coff* \
229 | *-*-linux*oldld* \
230 | *-*-rtemsaout* \
231 | *-*-rtemscoff* \
9ab346a1 232 | vax-*-vms* \
7c942e17 233 )
b01bc573 234 echo "*** Configuration ${target} not supported" 1>&2
7c942e17
ZW
235 exit 1
236 ;;
237esac
238
61ed06c3 239# Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
ba1e6c0b
JM
240# updated in each machine entry. Also set default extra_headers for some
241# machines.
61ed06c3 242tm_p_file=
b01bc573
NN
243cpu_type=`echo ${target} | sed 's/-.*$//'`
244case ${target} in
61ed06c3
HPN
245alpha*-*-*)
246 cpu_type=alpha
4977bab6 247 need_64bit_hwint=yes
61ed06c3 248 ;;
2beef00e
AO
249am33_2.0-*-linux*)
250 cpu_type=mn10300
251 ;;
150b72ed
DJ
252strongarm*-*-*)
253 cpu_type=arm
254 ;;
255arm*-*-*)
256 cpu_type=arm
5a9335ef 257 extra_headers="mmintrin.h"
150b72ed
DJ
258 ;;
259ep9312*-*-*)
260 cpu_type=arm
261 ;;
262xscale-*-*)
d19fb8e3 263 cpu_type=arm
5a9335ef 264 extra_headers="mmintrin.h"
d19fb8e3 265 ;;
61ed06c3
HPN
266i[34567]86-*-*)
267 cpu_type=i386
8c90b13a 268 extra_headers="mmintrin.h xmmintrin.h emmintrin.h pmmintrin.h"
61ed06c3 269 ;;
14f73b5a
JH
270x86_64-*-*)
271 cpu_type=i386
1a7d0840 272 extra_headers="mmintrin.h xmmintrin.h emmintrin.h pmmintrin.h"
4977bab6 273 need_64bit_hwint=yes
14f73b5a 274 ;;
817e13c4
JM
275ia64-*-*)
276 extra_headers=ia64intrin.h
4977bab6 277 need_64bit_hwint=yes
817e13c4 278 ;;
c21a2372 279hppa*-*-* | parisc*-*-*)
61ed06c3
HPN
280 cpu_type=pa
281 ;;
2fd95d71 282m680[012]0-*-*)
61ed06c3 283 cpu_type=m68k
ba1e6c0b
JM
284 extra_headers=math-68881.h
285 ;;
286m68k-*-*)
287 extra_headers=math-68881.h
61ed06c3
HPN
288 ;;
289mips*-*-*)
290 cpu_type=mips
4977bab6 291 need_64bit_hwint=yes
61ed06c3 292 ;;
61ed06c3
HPN
293powerpc*-*-*)
294 cpu_type=rs6000
518878e1 295 extra_headers="ppc-asm.h altivec.h spe.h"
4977bab6
ZW
296 need_64bit_hwint=yes
297 ;;
298rs6000*-*-*)
299 need_64bit_hwint=yes
300 ;;
301sparc64*-*-*)
302 cpu_type=sparc
303 need_64bit_hwint=yes
61ed06c3 304 ;;
61ed06c3
HPN
305sparc*-*-*)
306 cpu_type=sparc
307 ;;
4977bab6
ZW
308s390*-*-*)
309 need_64bit_hwint=yes
310 ;;
b4eb03fe
JT
311# Note the 'l'; we need to be able to match e.g. "shle" or "shl".
312sh[123456789l]*-*-*)
fa5322fa 313 cpu_type=sh
4977bab6 314 need_64bit_hwint=yes
fa5322fa 315 ;;
7f0db92a
SS
316tic4x-*-*)
317 cpu_type=c4x
318 ;;
61ed06c3
HPN
319esac
320
321tm_file=${cpu_type}/${cpu_type}.h
b6d7afec 322if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
61ed06c3 323then
b6d7afec
ZW
324 tm_p_file=${cpu_type}/${cpu_type}-protos.h
325fi
1c0ca89d
ZW
326extra_modes=
327if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
328then
329 extra_modes=${cpu_type}/${cpu_type}-modes.def
330fi
e564e618 331
b01bc573 332case ${target} in
e564e618
DB
333x86_64-*-*)
334 tm_file="i386/biarch64.h ${tm_file}"
335 ;;
336esac
337
61ed06c3 338# On a.out targets, we need to use collect2.
b01bc573 339case ${target} in
61ed06c3
HPN
340*-*-*aout*)
341 use_collect2=yes
342 ;;
0e5a4ad8 343esac
61ed06c3 344
4977bab6 345# Common parts for widely ported systems.
b01bc573 346case ${target} in
4d6d5bb2
NN
347*-*-darwin*)
348 tm_file="${tm_file} darwin.h"
349 tm_p_file="${tm_p_file} darwin-protos.h"
350 tmake_file="t-darwin"
351 target_gtfiles="\$(srcdir)/config/darwin.c"
352 c_target_objs="darwin-c.o"
353 cxx_target_objs="darwin-c.o"
354 extra_parts="crt2.o"
355 extra_objs="darwin.o"
356 case ${enable_threads} in
357 "" | yes | posix) thread_file='posix' ;;
358 esac
359 ;;
360*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
361 # This is the place-holder for the generic a.out configuration
362 # of FreeBSD. No actual configuration resides here since
363 # there was only ever a bare-bones ix86 configuration for
364 # a.out and it exists solely in the machine-specific section.
365 # This place-holder must exist to avoid dropping into
366 # the generic ELF configuration of FreeBSD (i.e. it must be
367 # ordered before that section).
368 ;;
369*-*-freebsd*)
370 # This is the generic ELF configuration of FreeBSD. Later
371 # machine-specific sections may refine and add to this
372 # configuration.
373 #
374 # Due to tm_file entry ordering issues that vary between cpu
375 # architectures, we only define fbsd_tm_file to allow the
376 # machine-specific section to dictate the final order of all
377 # entries of tm_file with the minor exception that components
378 # of the tm_file set here will always be of the form:
379 #
380 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
381 #
382 # The machine-specific section should not tamper with this
383 # ordering but may order all other entries of tm_file as it
384 # pleases around the provided core setting.
385 gas=yes
386 gnu_ld=yes
387 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
388 case ${target} in
bc9b32c2
NN
389 *-*-freebsd3 | *-*-freebsd[3].*)
390 tm_defines="${tm_defines} FBSD_MAJOR=3" ;;
391 *-*-freebsd4 | *-*-freebsd[4].*)
392 tm_defines="${tm_defines} FBSD_MAJOR=4" ;;
393 *-*-freebsd5 | *-*-freebsd[5].*)
394 tm_defines="${tm_defines} FBSD_MAJOR=5" ;;
395 *-*-freebsd6 | *-*-freebsd[6].*)
396 tm_defines="${tm_defines} FBSD_MAJOR=6" ;;
397 *)
398 echo 'Please update *-*-freebsd* in gcc/config.gcc'
399 exit 1
400 ;;
4d6d5bb2
NN
401 esac
402 tmake_file="t-slibgcc-elf-ver t-freebsd"
403 case ${enable_threads} in
404 no)
405 fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h"
406 ;;
769e49eb 407 "" | yes | posix)
4d6d5bb2
NN
408 thread_file='posix'
409 tmake_file="${tmake_file} t-freebsd-thread"
410 # Before 5.0, FreeBSD can't bind shared libraries to -lc
411 # when "optionally" threaded via weak pthread_* checks.
412 case ${target} in
413 *-*-freebsd[34] | *-*-freebsd[34].*)
414 tmake_file="${tmake_file} t-slibgcc-nolc-override"
415 ;;
416 esac
417 ;;
418 *)
419 echo 'Unknown thread configuration for FreeBSD'
420 exit 1
421 ;;
422 esac
423 fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h"
424 ;;
e2befd7d
RM
425*-*-kfreebsd*-gnu)
426 # Must come before *-*-gnu*
427 xm_defines=POSIX # needed for cross-compiling from FreeBSD?
428 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
429 # GNU tools are the only tools.
430 gas=yes
431 gnu_ld=yes
432 case ${enable_threads} in
433 "" | yes | posix) thread_file='posix' ;;
434 esac
435 ;;
e3029773
NN
436*-*-linux*libc1* | *-*-linux*aout*)
437 # Avoid the generic linux case.
438 ;;
61ed06c3 439*-*-linux*)
4d6d5bb2 440 # Must come before *-*-gnu* (because of *-*-linux-gnu* systems).
e3029773
NN
441 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
442 gas=yes
443 gnu_ld=yes
444 case ${enable_threads} in
445 "" | yes | posix) thread_file='posix' ;;
446 esac
447 ;;
5eeab2e3 448*-*-gnu*)
e3029773
NN
449 # On the Hurd, the setup is just about the same on
450 # each different CPU. The specific machines that we
451 # support are matched above and just set $cpu_type.
452 tm_file="${cpu_type}/gnu.h"
453 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
454 # GNU tools are the only tools.
455 gas=yes
456 gnu_ld=yes
457 # These details are the same as for Linux.
458 # But here we need a little extra magic.
459 tmake_file="t-slibgcc-elf-ver t-linux t-gnu"
460 case ${target} in
461 alpha*)
462 tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}"
463 ;;
464 i[34567]86-*-*)
465 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}"
466 ;;
467 esac
468 ;;
f982f805 469*-*-netbsd*)
e3029773
NN
470 tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd t-libgcc-pic"
471 gas=yes
472 gnu_ld=yes
51b7c247 473
e3029773
NN
474 # NetBSD 2.0 and later get POSIX threads enabled by default.
475 # Allow them to be explicitly enabled on any other version.
476 case ${enable_threads} in
477 "")
478 case ${target} in
479 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
480 thread_file='posix'
481 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
482 ;;
483 esac
484 ;;
485 yes | posix)
486 thread_file='posix'
487 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
488 ;;
489 esac
1169f9e0 490
e3029773
NN
491 # NetBSD 1.7 and later are set up to use GCC's crtstuff for
492 # ELF configurations. We will clear extra_parts in the
493 # a.out configurations.
494 case ${target} in
495 *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
496 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
497 ;;
498 esac
2121a768 499
e3029773
NN
500 # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
501 # default (unless overridden by --disable-__cxa_atexit).
502 case ${target} in
503 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
504 default_use_cxa_atexit=yes
505 ;;
506 esac
507 ;;
4d6d5bb2
NN
508*-*-openbsd*)
509 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
e3029773 510 case ${enable_threads} in
4d6d5bb2 511 yes)
e3029773 512 thread_file='posix'
4d6d5bb2 513 tmake_file="${tmake_file} t-openbsd-thread"
e3029773
NN
514 ;;
515 esac
e3029773 516 ;;
8179b3c8
NN
517*-*-rtems*)
518 case ${enable_threads} in
519 yes) thread_file='rtems' ;;
520 esac
521 ;;
4977bab6 522*-*-vxworks*)
e3029773
NN
523 tmake_file=t-vxworks
524 tm_file="${tm_file} elfos.h svr4.h vxworks.h"
55047c9d
PE
525 case ${enable_threads} in
526 no) ;;
527 "" | yes | vxworks) thread_file='vxworks' ;;
528 *) echo 'Unknown thread configuration for VxWorks'; exit 1 ;;
529 esac
e3029773 530 use_collect2=yes
55047c9d 531 xm_defines=POSIX
e3029773 532 ;;
61ed06c3
HPN
533esac
534
b01bc573 535case ${target} in
61ed06c3
HPN
536# Support site-specific machine types.
537*local*)
b01bc573 538 rest=`echo ${target} | sed -e "s/$cpu_type-//"`
61ed06c3 539 tm_file=${cpu_type}/$rest.h
4dc0535b
ZW
540 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
541 then xm_file=${cpu_type}/xm-$rest.h
61ed06c3 542 fi
4dc0535b
ZW
543 if test -f $srcdir/config/${cpu_type}/t-$rest
544 then tmake_file=${cpu_type}/t-$rest
61ed06c3
HPN
545 fi
546 ;;
30102605
RH
547alpha*-*-unicosmk*)
548 use_collect2=yes
549 tm_file="${tm_file} alpha/unicosmk.h"
0e5a4ad8 550
30102605
RH
551 # Don't include t-ieee for now because we don't support that yet
552 # tmake_file="alpha/t-ieee"
553 tmake_file="alpha/t-unicosmk"
ec2a60b0 554 use_fixproto=yes
30102605 555 ;;
61ed06c3
HPN
556alpha*-*-linux*)
557 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
558 target_cpu_default="MASK_GAS"
cea3bd3e 559 tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
61ed06c3 560 ;;
83248d49
RM
561alpha*-*-gnu*)
562 target_cpu_default="MASK_GAS"
563 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
564 ;;
61ed06c3 565alpha*-*-freebsd*)
9e405fe5 566 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
61ed06c3 567 target_cpu_default="MASK_GAS"
cea3bd3e
RH
568 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
569 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
61ed06c3
HPN
570 ;;
571alpha*-*-netbsd*)
f982f805 572 tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
61ed06c3 573 target_cpu_default="MASK_GAS"
cea3bd3e 574 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
61ed06c3 575 ;;
61ed06c3 576alpha*-*-openbsd*)
ca11c37c
ZW
577 tm_defines="OBSD_NO_DYNAMIC_LIBRARIES OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT"
578 tm_file="alpha/alpha.h openbsd.h alpha/openbsd.h"
61ed06c3
HPN
579 # default x-alpha is only appropriate for dec-osf.
580 target_cpu_default="MASK_GAS"
581 tmake_file="alpha/t-alpha alpha/t-ieee"
582 ;;
c7bdf0a6 583alpha*-dec-osf[45]*)
61ed06c3
HPN
584 if test x$stabs = xyes
585 then
586 tm_file="${tm_file} dbx.h"
587 fi
588 if test x$gas != xyes
589 then
590 extra_passes="mips-tfile mips-tdump"
591 fi
592 use_collect2=yes
c7bdf0a6
ZW
593 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4"
594 tm_file="${tm_file} alpha/osf.h"
817e13c4 595 extra_headers=va_list.h
b01bc573 596 case ${target} in
61ed06c3 597 *-*-osf4*)
c7bdf0a6 598 # Set target_cpu_default except on 4.0a.
b01bc573 599 case ${target} in
c7bdf0a6
ZW
600 *-*-osf4.0a) ;;
601 *) target_cpu_default=MASK_SUPPORT_ARCH
602 esac
61ed06c3
HPN
603 ;;
604 *-*-osf5*)
c7bdf0a6 605 tm_file="${tm_file} alpha/osf5.h"
61ed06c3
HPN
606 target_cpu_default=MASK_SUPPORT_ARCH
607 ;;
608 esac
769e49eb
NN
609 case ${enable_threads} in
610 "" | yes | posix)
2a4e8ebc
RO
611 thread_file='posix'
612 tmake_file="${tmake_file} alpha/t-osf-pthread"
613 ;;
614 esac
61ed06c3 615 ;;
b6bfa876 616alpha64-dec-*vms*)
cf0005c6 617 tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
4977bab6 618 xm_file="alpha/xm-vms.h"
b6bfa876 619 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
b6bfa876
DR
620 prefix=/gnu
621 local_prefix=/gnu
622 ;;
ef057c45 623alpha*-dec-*vms*)
cf0005c6 624 tm_file="${tm_file} alpha/vms.h"
4dc0535b 625 xm_file=alpha/xm-vms.h
61ed06c3 626 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
ef057c45
DR
627 prefix=/gnu
628 local_prefix=/gnu
61ed06c3 629 ;;
2cc07db4 630arc-*-elf*)
c40409ce 631 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
2cc07db4 632 extra_parts="crtinit.o crtfini.o"
ec2a60b0 633 use_fixproto=yes
2cc07db4 634 ;;
61ed06c3 635arm-*-coff* | armel-*-coff*)
ca11c37c 636 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h"
61ed06c3
HPN
637 tmake_file=arm/t-arm-coff
638 ;;
61ed06c3 639arm-semi-aof | armel-semi-aof)
5059254f 640 tm_file="arm/semiaof.h arm/aof.h arm/arm.h"
7857f134 641 tmake_file=arm/t-semi
61ed06c3 642 ;;
55047c9d
PE
643arm-wrs-vxworks)
644 tm_file="dbxelf.h elfos.h svr4.h vxworks.h arm/elf.h arm/aout.h arm/arm.h arm/vxworks.h"
645 tmake_file="${tmake_file} arm/t-vxworks"
646 ;;
5742588d
DB
647arm*-*-freebsd*|strongarm*-*-freebsd*)
648 tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
649 tmake_file="${tmake_file} arm/t-strongarm-elf"
650 ;;
69474c3c 651arm*-*-netbsdelf*)
ff3afb56
JT
652 tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h"
653 tmake_file="${tmake_file} arm/t-netbsd"
69474c3c 654 ;;
61ed06c3 655arm*-*-netbsd*)
f982f805 656 tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
61ed06c3 657 tmake_file="t-netbsd arm/t-netbsd"
1169f9e0 658 extra_parts=""
5721cd84 659 use_collect2=yes
61ed06c3 660 ;;
14879e76 661arm*-*-linux*) # ARM GNU/Linux with ELF
6975bd2c 662 tm_file="dbxelf.h elfos.h linux.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h"
7b3a4df5 663 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
61ed06c3
HPN
664 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
665 gnu_ld=yes
61ed06c3
HPN
666 ;;
667arm*-*-uclinux*) # ARM ucLinux
c40409ce 668 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
669 tmake_file=arm/t-arm-elf
670 ;;
61ed06c3 671arm*-*-ecos-elf)
c40409ce 672 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
61ed06c3 673 tmake_file=arm/t-arm-elf
0e5a4ad8 674 ;;
f22b4bc4 675arm*-*-rtems*)
f22b4bc4
JS
676 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"
677 tmake_file="arm/t-arm-elf t-rtems"
f22b4bc4 678 ;;
9b6b54e2 679arm*-*-elf | ep9312-*-elf)
c40409ce 680 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
61ed06c3
HPN
681 tmake_file=arm/t-arm-elf
682 ;;
52f97a3b 683arm*-wince-pe*)
ca11c37c 684 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h arm/wince-pe.h"
52f97a3b
NC
685 tmake_file=arm/t-wince-pe
686 extra_objs="pe.o"
687 ;;
61ed06c3 688arm-*-pe*)
ca11c37c 689 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h"
61ed06c3
HPN
690 tmake_file=arm/t-pe
691 extra_objs="pe.o"
692 ;;
6b3a0b34
US
693arm*-*-kaos*)
694 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h kaos.h arm/kaos-arm.h"
695 tmake_file=arm/t-arm-elf
696 ;;
61ed06c3 697avr-*-*)
ca11c37c 698 tm_file="avr/avr.h dbxelf.h"
ec2a60b0 699 use_fixproto=yes
61ed06c3 700 ;;
7f0db92a 701c4x-*-rtems* | tic4x-*-rtems*)
bc98ef7f 702 tmake_file="c4x/t-c4x t-rtems"
fdc76b09 703 tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
51fabca5
NB
704 c_target_objs="c4x-c.o"
705 cxx_target_objs="c4x-c.o"
bc98ef7f 706 ;;
7f0db92a 707c4x-* | tic4x-*)
61ed06c3 708 tmake_file=c4x/t-c4x
51fabca5
NB
709 c_target_objs="c4x-c.o"
710 cxx_target_objs="c4x-c.o"
61ed06c3 711 ;;
0b85d816 712cris-*-aout)
32fb7c9d 713 tm_file="dbxelf.h ${tm_file} cris/aout.h"
0b85d816
HPN
714 gas=yes
715 tmake_file="cris/t-cris cris/t-aout"
716 ;;
717cris-*-elf | cris-*-none)
c40409ce 718 tm_file="dbxelf.h elfos.h ${tm_file}"
0b85d816
HPN
719 tmake_file="cris/t-cris cris/t-elfmulti"
720 gas=yes
721 ;;
722cris-*-linux*)
c40409ce 723 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
3fc87ac1 724 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
0b85d816 725 ;;
61ed06c3 726d30v-*)
c40409ce 727 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
61ed06c3
HPN
728 ;;
729dsp16xx-*)
ec2a60b0 730 use_fixproto=yes
61ed06c3 731 ;;
61ed06c3 732fr30-*-elf)
c40409ce 733 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
61ed06c3
HPN
734 tmake_file=fr30/t-fr30
735 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
ec2a60b0 736 use_fixproto=yes
61ed06c3 737 ;;
36a05131
BS
738frv-*-elf)
739 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} frv/frv-abi.h"
740 tmake_file=frv/t-frv
ec2a60b0 741 use_fixproto=yes
36a05131 742 ;;
bc98ef7f
JS
743h8300-*-rtems*)
744 tmake_file="h8300/t-h8300 t-rtems"
ca11c37c 745 tm_file="h8300/h8300.h dbxcoff.h h8300/coff.h h8300/rtems.h rtems.h"
bc98ef7f 746 ;;
9f5b774b
R
747h8300-*-elf*)
748 tmake_file="h8300/t-h8300 h8300/t-elf"
ca11c37c 749 tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h"
ec2a60b0 750 use_fixproto=yes
9f5b774b 751 ;;
61ed06c3 752h8300-*-*)
ca11c37c 753 tm_file="h8300/h8300.h dbxcoff.h h8300/coff.h"
ec2a60b0 754 use_fixproto=yes
61ed06c3 755 ;;
c21a2372
AM
756hppa*64*-*-linux* | parisc*64*-*-linux*)
757 target_cpu_default="(MASK_PA_11 | MASK_PA_20)"
581d9404
JDA
758 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \
759 pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h"
63e002bd 760 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux64"
c21a2372 761 gas=yes gnu_ld=yes
4977bab6 762 need_64bit_hwint=yes
c21a2372
AM
763 ;;
764hppa*-*-linux* | parisc*-*-linux*)
90330d31 765 target_cpu_default="MASK_PA_11 | MASK_NO_SPACE_REGS"
c40409ce 766 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \
c21a2372 767 pa/pa32-regs.h pa/pa32-linux.h"
7b3a4df5 768 tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux"
61ed06c3 769 ;;
ca11c37c
ZW
770# port not yet contributed.
771#hppa*-*-openbsd*)
772# target_cpu_default="MASK_PA_11"
ca11c37c 773# ;;
61ed06c3
HPN
774hppa1.1-*-pro*)
775 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
c40409ce 776 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
587dc9c6 777 tmake_file="pa/t-pro"
61ed06c3
HPN
778 ;;
779hppa1.1-*-osf*)
780 target_cpu_default="MASK_PA_11"
ca11c37c 781 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h pa/pa-osf.h"
587dc9c6 782 tmake_file="pa/t-pa"
61ed06c3
HPN
783 use_collect2=yes
784 ;;
785hppa1.1-*-rtems*)
786 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
f22b4bc4 787 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"
587dc9c6 788 tmake_file="pa/t-pro t-rtems"
61ed06c3 789 ;;
61ed06c3 790hppa1.1-*-bsd*)
ca11c37c 791 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h"
61ed06c3 792 target_cpu_default="MASK_PA_11"
587dc9c6 793 tmake_file="pa/t-pa"
61ed06c3
HPN
794 use_collect2=yes
795 ;;
61ed06c3
HPN
796hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
797 target_cpu_default="MASK_PA_11"
c15c90bb 798 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
e4761274 799 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
61ed06c3
HPN
800 if test x$enable_threads = x; then
801 enable_threads=$have_pthread_h
802 fi
803 case x${enable_threads} in
804 xyes | xdce)
805 tmake_file="${tmake_file} pa/t-dce-thr"
806 ;;
807 esac
61ed06c3 808 use_collect2=yes
ec2a60b0 809 use_fixproto=yes
61ed06c3
HPN
810 ;;
811hppa1.0-*-hpux10*)
c15c90bb 812 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
e4761274 813 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
61ed06c3
HPN
814 if test x$enable_threads = x; then
815 enable_threads=$have_pthread_h
816 fi
817 case x${enable_threads} in
818 xyes | xdce)
819 tmake_file="${tmake_file} pa/t-dce-thr"
820 ;;
821 esac
61ed06c3 822 use_collect2=yes
ec2a60b0 823 use_fixproto=yes
61ed06c3
HPN
824 ;;
825hppa*64*-*-hpux11*)
581d9404
JDA
826 if test x$gas = xyes
827 then
828 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
c15c90bb 829 pa/pa64-regs.h pa/pa-hpux.h \
581d9404
JDA
830 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
831 else
832 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h pa/elf.h \
c15c90bb 833 pa/pa64-regs.h pa/pa-hpux.h \
581d9404
JDA
834 pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
835 fi
4977bab6 836 need_64bit_hwint=yes
eab854f6 837 tmake_file="pa/t-pa64 pa/t-pa-hpux"
c81460e4 838 target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)"
35d434ed 839 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
83eb95f9
SE
840 if test x$gnu_ld = xyes
841 then
842 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
843 fi
7e2055ec
ZW
844 case x${enable_threads} in
845 xyes | xposix )
846 thread_file=posix
847 ;;
848 esac
61ed06c3
HPN
849 ;;
850hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
851 target_cpu_default="MASK_PA_11"
c15c90bb 852 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
e4761274 853 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
7e2055ec
ZW
854 case x${enable_threads} in
855 xyes | xposix )
856 thread_file=posix
857 ;;
858 esac
61ed06c3
HPN
859 use_collect2=yes
860 ;;
861hppa1.0-*-hpux11*)
c15c90bb 862 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
e4761274 863 tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
7e2055ec
ZW
864 case x${enable_threads} in
865 xyes | xposix )
866 thread_file=posix
867 ;;
868 esac
61ed06c3
HPN
869 use_collect2=yes
870 ;;
61ed06c3 871i370-*-opened*) # IBM 360/370/390 Architecture
cbbf876b 872 xm_defines='FATAL_EXIT_CODE=12'
ca11c37c 873 tm_file="i370/oe.h i370/i370.h"
587dc9c6 874 tmake_file="i370/t-i370"
51fabca5
NB
875 c_target_objs="i370-c.o"
876 cxx_target_objs="i370-c.o"
587dc9c6 877 # Don't bother fixing up header files; they're weird.
61ed06c3
HPN
878 ;;
879i370-*-mvs*)
cbbf876b 880 xm_defines='FATAL_EXIT_CODE=12'
ca11c37c 881 tm_file="i370/mvs.h i370/i370.h"
51fabca5
NB
882 tmake_file="i370/t-i370"
883 c_target_objs="i370-c.o"
884 cxx_target_objs="i370-c.o"
ec2a60b0 885 use_fixproto=yes
61ed06c3
HPN
886 ;;
887i370-*-linux*)
ca11c37c 888 tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h i370/i370.h"
7b3a4df5 889 tmake_file="t-slibgcc-elf-ver t-linux"
61ed06c3 890 # broken_install=yes
61ed06c3 891 ;;
b069de3b 892i[34567]86-*-darwin*)
40b4cdbf 893 tm_file="${tm_file} i386/darwin.h"
b069de3b 894 ;;
61ed06c3 895i[34567]86-*-elf*)
39ed301b 896 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
14455c64 897 tmake_file="i386/t-i386elf t-svr4"
ec2a60b0 898 use_fixproto=yes
61ed06c3 899 ;;
61ed06c3 900i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
cbbf876b 901 xm_defines="SMALL_ARG_MAX"
7c942e17 902 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
903 extra_parts="crtbegin.o crtend.o"
904 tmake_file=i386/t-crtpic
ec2a60b0 905 use_fixproto=yes
61ed06c3 906 ;;
61ed06c3 907i[34567]86-*-netware) # Intel 80386's running netware
39ed301b 908 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 909 ;;
61ed06c3 910i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
70305f2b
RH
911 if test x$gas = xyes
912 then
913 tm_file="${tm_file} usegas.h"
914 fi
cbbf876b 915 xm_defines="SMALL_ARG_MAX"
39ed301b 916 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
61ed06c3
HPN
917 tmake_file=t-svr4
918 extra_parts="crtbegin.o crtend.o"
ec2a60b0 919 use_fixproto=yes
61ed06c3 920 ;;
61ed06c3 921i[34567]86-*-aout*)
39ed301b 922 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h"
ec2a60b0 923 use_fixproto=yes
61ed06c3
HPN
924 ;;
925i[34567]86-*-beoself* | i[34567]86-*-beos*)
61ed06c3 926 tmake_file='i386/t-beos i386/t-crtpic'
39ed301b 927 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
61ed06c3
HPN
928 extra_parts='crtbegin.o crtend.o'
929 ;;
c7bdf0a6 930i[34567]86-*-freebsd2 | i[34567]86-*-freebsd2.* | i[34567]86-*-freebsd*aout*)
39ed301b 931 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h"
61ed06c3
HPN
932 tmake_file=t-freebsd
933 ;;
934i[34567]86-*-freebsd*)
39ed301b 935 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
e564e618
DB
936 ;;
937x86_64-*-freebsd*)
39ed301b 938 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 939 ;;
6ea0279f 940i[34567]86-*-netbsdelf*)
39ed301b 941 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
6ea0279f 942 ;;
61ed06c3 943i[34567]86-*-netbsd*)
39ed301b 944 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 945 tmake_file=t-netbsd
1169f9e0 946 extra_parts=""
5721cd84 947 use_collect2=yes
61ed06c3 948 ;;
7c884404 949x86_64-*-netbsd*)
39ed301b 950 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 951 ;;
61ed06c3 952i[34567]86-*-openbsd*)
ca11c37c 953 tm_file="i386/i386.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h openbsd-oldgas.h openbsd.h i386/openbsd.h"
f1cf4606
ME
954 # needed to unconfuse gdb
955 tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
61ed06c3
HPN
956 # we need collect2 until our bug is fixed...
957 use_collect2=yes
958 ;;
959i[34567]86-*-coff*)
39ed301b 960 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h"
ec2a60b0 961 use_fixproto=yes
61ed06c3 962 ;;
61ed06c3
HPN
963i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
964 # with a.out format
587dc9c6 965 tmake_file="i386/t-crtstuff"
39ed301b 966 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h"
61ed06c3 967 gnu_ld=yes
61ed06c3
HPN
968 ;;
969i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
970 # with ELF format using the
971 # GNU/Linux C library 5
39ed301b 972 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
7b3a4df5 973 tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff"
61ed06c3
HPN
974 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
975 gnu_ld=yes
61ed06c3
HPN
976 if test x$enable_threads = xyes; then
977 thread_file='single'
978 fi
979 ;;
980i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
981 # with ELF format using glibc 2
982 # aka GNU/Linux C library 6
39ed301b 983 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
7b3a4df5 984 tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
61ed06c3 985 ;;
14f73b5a 986x86_64-*-linux*)
39ed301b 987 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \
32fb7c9d 988 i386/x86-64.h i386/linux64.h"
17c04c5e 989 tmake_file="t-slibgcc-elf-ver t-linux i386/t-linux64"
14f73b5a 990 ;;
e2befd7d
RM
991i[34567]86-*-kfreebsd*-gnu) # must be before i[34567]86-*-gnu*
992 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h kfreebsdgnu.h i386/kfreebsdgnu.h"
993 tmake_file="t-slibgcc-elf-ver t-kfreebsd-gnu i386/t-crtstuff"
994 float_format=i386
995 use_fixproto=no
996 ;;
61ed06c3 997i[34567]86-*-gnu*)
61ed06c3 998 ;;
61ed06c3
HPN
999i[34567]86-pc-msdosdjgpp*)
1000 xm_file=i386/xm-djgpp.h
267409e8 1001 tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h"
5dd8a9b1 1002 tmake_file=i386/t-djgpp
61ed06c3
HPN
1003 gnu_ld=yes
1004 gas=yes
61ed06c3
HPN
1005 ;;
1006i[34567]86-moss-msdos* | i[34567]86-*-moss*)
39ed301b 1007 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
1008 tmake_file=t-libc-ok
1009 gnu_ld=yes
1010 gas=yes
ec2a60b0 1011 use_fixproto=yes
61ed06c3
HPN
1012 ;;
1013i[34567]86-*-lynxos*)
1014 if test x$gas = xyes
1015 then
ca11c37c 1016 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h svr3.h lynx.h i386/lynx.h"
61ed06c3 1017 else
39ed301b 1018 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx-ng.h i386/lynx-ng.h"
61ed06c3 1019 fi
ec2a60b0 1020 use_fixproto=yes
61ed06c3
HPN
1021 ;;
1022i[34567]86-*-mach*)
39ed301b 1023 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/mach.h"
61ed06c3
HPN
1024# tmake_file=t-libc-ok
1025 use_collect2=yes
ec2a60b0 1026 use_fixproto=yes
61ed06c3 1027 ;;
f2feed2c 1028i[34567]86-*-nto-qnx*)
ca11c37c 1029 tm_file="${tm_file} i386/att.h dbxelf.h tm-dwarf2.h elfos.h svr4.h i386/unix.h i386/nto.h"
f2feed2c
GP
1030 tmake_file=i386/t-nto
1031 gnu_ld=yes
1032 gas=yes
1033 ;;
c7bdf0a6 1034i[34567]86-*-rtems*)
39ed301b 1035 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
61ed06c3
HPN
1036 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1037 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1038 ;;
1039i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
ac24fc99 1040 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/sco5.h"
61ed06c3
HPN
1041 if test x$gas = xyes
1042 then
70305f2b 1043 tm_file="usegas.h ${tm_file}"
61ed06c3 1044 fi
ac24fc99
KJ
1045 tmake_file=i386/t-sco5
1046 extra_parts="crtbegin.o crtend.o"
ec2a60b0 1047 use_fixproto=yes
61ed06c3 1048 ;;
61ed06c3 1049i[34567]86-*-solaris2*)
cbbf876b 1050 xm_defines="SMALL_ARG_MAX"
8433a25e 1051 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 1052 tmake_file="i386/t-sol2 t-svr4"
7b3a4df5
RH
1053 if test x$gnu_ld = xyes; then
1054 tmake_file="$tmake_file t-slibgcc-elf-ver"
1055 else
1056 tmake_file="$tmake_file t-slibgcc-sld"
1057 fi
61ed06c3 1058 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
61ed06c3
HPN
1059 if test x${enable_threads} = x; then
1060 enable_threads=$have_pthread_h
1061 if test x${enable_threads} = x; then
1062 enable_threads=$have_thread_h
1063 fi
1064 fi
1065 if test x${enable_threads} = xyes; then
1066 if test x${have_pthread_h} = xyes; then
1067 thread_file='posix'
1068 else
1069 thread_file='solaris'
1070 fi
1071 fi
1072 ;;
23a535c4 1073i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
39ed301b 1074 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
61ed06c3
HPN
1075 if test x$stabs = xyes
1076 then
1077 tm_file="${tm_file} dbx.h"
1078 fi
14455c64 1079 tmake_file="i386/t-crtpic t-svr4"
61ed06c3
HPN
1080 extra_parts="crtbegin.o crtend.o"
1081 if test x$enable_threads = xyes; then
1082 thread_file='posix'
1083 fi
ec2a60b0 1084 use_fixproto=yes
61ed06c3
HPN
1085 ;;
1086i[34567]86-*-sysv4*) # Intel 80386's running system V.4
cbbf876b 1087 xm_defines="SMALL_ARG_MAX"
3d05b15f 1088 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
1089 if test x$stabs = xyes
1090 then
1091 tm_file="${tm_file} dbx.h"
1092 fi
14455c64 1093 tmake_file="i386/t-crtpic t-svr4"
61ed06c3 1094 extra_parts="crtbegin.o crtend.o"
ec2a60b0 1095 use_fixproto=yes
61ed06c3
HPN
1096 ;;
1097i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
39ed301b 1098 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 1099 tmake_file="i386/t-crtpic i386/t-udk t-svr4"
61ed06c3 1100 extra_parts="crtbegin.o crtend.o"
ec2a60b0 1101 use_fixproto=yes
61ed06c3 1102 ;;
61ed06c3 1103i[34567]86-*-sysv*) # Intel 80386's running system V
61ed06c3
HPN
1104 if test x$gas = xyes
1105 then
1106 if test x$stabs = xyes
1107 then
39ed301b 1108 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h"
61ed06c3 1109 tmake_file=i386/t-svr3dbx
c7bdf0a6 1110 extra_parts="svr3.ifile svr3z.ifile"
61ed06c3 1111 else
39ed301b 1112 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h"
61ed06c3
HPN
1113 extra_parts="crtbegin.o crtend.o"
1114 tmake_file=i386/t-crtstuff
1115 fi
1116 else
39ed301b 1117 tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h"
61ed06c3
HPN
1118 extra_parts="crtbegin.o crtend.o"
1119 tmake_file=i386/t-crtstuff
1120 fi
1121 tmake_file="$tmake_file i386/t-crtpic"
ec2a60b0 1122 use_fixproto=yes
61ed06c3
HPN
1123 ;;
1124i386-*-vsta) # Intel 80386's running VSTa kernel
c5e54ac8
NN
1125 xm_file="i386/xm-vsta.h"
1126 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/vsta.h"
ec2a60b0 1127 use_fixproto=yes
61ed06c3 1128 ;;
55047c9d
PE
1129i[4567]86-wrs-vxworks)
1130 tm_file="${tm_file} i386/sysv4.h i386/unix.h i386/vxworks.h"
1131 tmake_file="${tmake_file} i386/t-vxworks"
1132 ;;
61ed06c3 1133i[34567]86-*-pe | i[34567]86-*-cygwin*)
70e5e841 1134 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h"
4dc0535b 1135 xm_file=i386/xm-cygwin.h
70e5e841 1136 tmake_file="i386/t-cygming i386/t-cygwin"
61ed06c3 1137 extra_objs=winnt.o
70e5e841
CF
1138 c_target_objs=cygwin2.o
1139 cxx_target_objs=cygwin2.o
61ed06c3 1140 if test x$enable_threads = xyes; then
70e5e841 1141 thread_file='posix'
61ed06c3 1142 fi
61ed06c3
HPN
1143 ;;
1144i[34567]86-*-mingw32*)
70e5e841 1145 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
4dc0535b 1146 xm_file=i386/xm-mingw32.h
70e5e841 1147 tmake_file="i386/t-cygming i386/t-mingw32"
61ed06c3 1148 extra_objs=winnt.o
61ed06c3
HPN
1149 if test x$enable_threads = xyes; then
1150 thread_file='win32'
1151 fi
b01bc573 1152 case ${target} in
09eaf5a5 1153 *mingw32crt*)
61ed06c3
HPN
1154 tm_file="${tm_file} i386/crtdll.h"
1155 ;;
70e5e841 1156 *mingw32msv* | *mingw32*)
09eaf5a5 1157 ;;
61ed06c3
HPN
1158 esac
1159 ;;
1160i[34567]86-*-uwin*)
3eae722d 1161 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygwin.h i386/uwin.h"
61ed06c3
HPN
1162 tmake_file="i386/t-cygwin i386/t-uwin"
1163 extra_objs=winnt.o
61ed06c3
HPN
1164 if test x$enable_threads = xyes; then
1165 thread_file='win32'
1166 fi
ec2a60b0 1167 use_fixproto=yes
61ed06c3 1168 ;;
04cec1a7 1169i[34567]86-*-interix3*)
39ed301b 1170 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"
587dc9c6 1171 tmake_file="i386/t-interix"
84512347 1172 extra_objs=winnt.o
04cec1a7
DR
1173 if test x$enable_threads = xyes ; then
1174 thread_file='posix'
1175 fi
1176 if test x$stabs = xyes ; then
1177 tm_file="${tm_file} dbxcoff.h"
1178 fi
1179 ;;
61ed06c3 1180i[34567]86-*-interix*)
39ed301b 1181 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h"
587dc9c6 1182 tmake_file="i386/t-interix"
84512347 1183 extra_objs=winnt.o
61ed06c3
HPN
1184 if test x$enable_threads = xyes ; then
1185 thread_file='posix'
1186 fi
1187 if test x$stabs = xyes ; then
1188 tm_file="${tm_file} dbxcoff.h"
1189 fi
1190 ;;
6b3a0b34
US
1191i[34567]86-*-kaos*)
1192 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h kaos.h i386/kaos-i386.h"
1193 tmake_file="i386/t-i386elf t-svr4"
1194 ;;
e1567352
JE
1195i860-*-sysv4*)
1196 tm_file="${tm_file} elfos.h svr4.h i860/sysv4.h"
b882d60d 1197 tmake_file="i860/t-i860 i860/t-svr4"
e1567352 1198 extra_parts="crtbegin.o crtend.o"
ec2a60b0 1199 use_fixproto=yes
e1567352 1200 ;;
61ed06c3
HPN
1201i960-*-coff*)
1202 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1203 tmake_file=i960/t-960bare
43fabf7d
JW
1204 c_target_objs="i960-c.o"
1205 cxx_target_objs="i960-c.o"
61ed06c3
HPN
1206 ;;
1207i960-*-rtems)
1208 tmake_file="i960/t-960bare t-rtems"
f22b4bc4 1209 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
43fabf7d
JW
1210 c_target_objs="i960-c.o"
1211 cxx_target_objs="i960-c.o"
61ed06c3
HPN
1212 ;;
1213i960-*-*) # Default i960 environment.
1214 use_collect2=yes
5f37d07c 1215 tmake_file=i960/t-960bare
43fabf7d
JW
1216 c_target_objs="i960-c.o"
1217 cxx_target_objs="i960-c.o"
ec2a60b0 1218 use_fixproto=yes
61ed06c3
HPN
1219 ;;
1220ia64*-*-elf*)
c40409ce 1221 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h"
61ed06c3
HPN
1222 tmake_file="ia64/t-ia64"
1223 target_cpu_default="0"
1224 if test x$gas = xyes
1225 then
1226 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1227 fi
1228 if test x$gnu_ld = xyes
1229 then
1230 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1231 fi
32b4f6f4 1232 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
ec2a60b0 1233 use_fixproto=yes
61ed06c3 1234 ;;
243a7070 1235ia64*-*-freebsd*)
fee42cc1 1236 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
243a7070
DB
1237 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1238 tmake_file="${tmake_file} ia64/t-ia64"
32b4f6f4 1239 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
243a7070 1240 ;;
61ed06c3 1241ia64*-*-linux*)
c40409ce 1242 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h"
7b3a4df5 1243 tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc"
61ed06c3 1244 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
32b4f6f4 1245 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
4977bab6 1246 if test x"$use_libunwind_exceptions" = xyes; then
28f08c8a 1247 tmake_file="$tmake_file t-libunwind"
4977bab6 1248 fi
61ed06c3 1249 ;;
7e5b9908 1250ia64*-*-hpux*)
c15c90bb 1251 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h"
23c108af 1252 tmake_file="ia64/t-ia64 ia64/t-hpux"
7e5b9908 1253 target_cpu_default="MASK_GNU_AS"
7e2055ec
ZW
1254 case x$enable_threads in
1255 xyes | xposix )
1256 thread_file=posix
1257 ;;
1258 esac
cad61762 1259 use_collect2=no
34c1864f
SE
1260 c_target_objs="ia64-c.o"
1261 cxx_target_objs="ia64-c.o"
587dc9c6
NN
1262 # If we decide to run fixproto we should define FIXPROTO_DEFINES
1263 # in ia64/t-hpux, and also fix the definition of putenv in
1264 # sys-protos.h (const char not char).
7e5b9908 1265 ;;
6d439235 1266ip2k-*-elf)
9cd598aa 1267 tm_file="elfos.h ${tm_file}"
ec2a60b0 1268 use_fixproto=yes
2f9021d3 1269 ;;
6b3d1e47 1270iq2000*-*-elf*)
ca11c37c 1271 tm_file="svr4.h elfos.h iq2000/iq2000.h"
6b3d1e47
SC
1272 tmake_file=iq2000/t-iq2000
1273 out_file=iq2000/iq2000.c
6b3d1e47 1274 md_file=iq2000/iq2000.md
ec2a60b0 1275 use_fixproto=yes
6b3d1e47 1276 ;;
61ed06c3 1277m32r-*-elf*)
c40409ce 1278 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
3a30516d 1279 extra_parts="crtinit.o crtfini.o"
ec2a60b0 1280 use_fixproto=yes
37ec8b7a 1281 ;;
61ed06c3
HPN
1282# m68hc11 and m68hc12 share the same machine description.
1283m68hc11-*-*|m6811-*-*)
c40409ce 1284 tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h"
61ed06c3
HPN
1285 tm_p_file="m68hc11/m68hc11-protos.h"
1286 md_file="m68hc11/m68hc11.md"
1287 out_file="m68hc11/m68hc11.c"
1288 tmake_file="m68hc11/t-m68hc11-gas"
ec2a60b0 1289 use_fixproto=yes
61ed06c3
HPN
1290 ;;
1291m68hc12-*-*|m6812-*-*)
c40409ce 1292 tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h"
61ed06c3 1293 tm_p_file="m68hc11/m68hc11-protos.h"
61ed06c3
HPN
1294 md_file="m68hc11/m68hc11.md"
1295 out_file="m68hc11/m68hc11.c"
1296 tmake_file="m68hc11/t-m68hc11-gas"
ec2a60b0 1297 use_fixproto=yes
61ed06c3 1298 ;;
61ed06c3 1299m68000-hp-hpux*) # HP 9000 series 300
ca11c37c
ZW
1300 tm_file="m68k/hp320base.h m68k/m68k.h m68k/hp320.h m68k/hp310.h"
1301 tm_defines="TARGET_DEFAULT=0" # 68000, no 68881, no bitfield ops
61ed06c3
HPN
1302 if test x$gas = xyes
1303 then
ca11c37c 1304 tm_defines="${tm_defines} DBX_DEBUGGING_INFO=1 USE_GAS"
61ed06c3 1305 fi
14455c64 1306 tmake_file=m68k/t-hp320
61ed06c3 1307 use_collect2=yes
ec2a60b0 1308 use_fixproto=yes
61ed06c3 1309 ;;
61ed06c3 1310m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
ca11c37c 1311 tm_file="m68k/hp320base.h m68k/m68k.h m68k/hp320.h"
61ed06c3
HPN
1312 if test x$gas = xyes
1313 then
ca11c37c 1314 tm_defines="DBX_DEBUGGING_INFO=1 USE_GAS"
61ed06c3 1315 else
ca11c37c 1316 tm_defines="NO_DOT_IN_LABEL NO_BUGS"
61ed06c3 1317 fi
61ed06c3 1318 use_collect2=yes
ec2a60b0 1319 use_fixproto=yes
61ed06c3
HPN
1320 ;;
1321m68k-hp-hpux*) # HP 9000 series 300
ca11c37c 1322 tm_file="m68k/hp320base.h m68k/m68k.h m68k/hp320.h"
61ed06c3
HPN
1323 if test x$gas = xyes
1324 then
ca11c37c 1325 tm_defines="DBX_DEBUGGING_INFO=1 USE_GAS"
61ed06c3 1326 fi
61ed06c3 1327 use_collect2=yes
ec2a60b0 1328 use_fixproto=yes
61ed06c3 1329 ;;
61ed06c3
HPN
1330m68k-*-aout*)
1331 tmake_file=m68k/t-m68kbare
ca11c37c 1332 tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kemb.h m68k/m68k-aout.h libgloss.h"
61ed06c3
HPN
1333 ;;
1334m68k-*-coff*)
1335 tmake_file=m68k/t-m68kbare
ca11c37c
ZW
1336 tm_defines="MOTOROLA USE_GAS"
1337 tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kemb.h dbxcoff.h m68k/coff.h dbx.h"
ec2a60b0 1338 use_fixproto=yes
61ed06c3
HPN
1339 ;;
1340m68020-*-elf* | m68k-*-elf*)
ca11c37c 1341 tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
c16202e1 1342 tm_defines="MOTOROLA USE_GAS"
61ed06c3 1343 tmake_file=m68k/t-m68kelf
bb8602be 1344 extra_parts="crtbegin.o crtend.o"
ec2a60b0 1345 use_fixproto=yes
61ed06c3 1346 ;;
2fd95d71
JT
1347m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
1348 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
c16202e1 1349 tm_defines="MOTOROLA USE_GAS"
b01bc573 1350 case ${target} in
2fd95d71
JT
1351 m68010*)
1352 target_cpu_default="0"
1353 ;;
1354 *)
1355 target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD"
1356 ;;
1357 esac
2fd95d71 1358 ;;
61ed06c3 1359m68k*-*-netbsd*)
34cf946f
NN
1360 if test "x$enable_obsolete" != xyes; then
1361 echo "*** Configuration ${target} is obsolete." >&2
1362 echo "*** Specify --enable-obsolete to build it anyway." >&2
1363 echo "*** Support will be REMOVED in the next major release of GCC," >&2
1364 echo "*** unless a maintainer comes forward." >&2
1365 exit 1
1366 fi
ca11c37c 1367 tm_file="m68k/m68k.h netbsd.h netbsd-aout.h m68k/netbsd.h"
61ed06c3 1368 tmake_file=t-netbsd
1169f9e0 1369 extra_parts=""
5721cd84 1370 use_collect2=yes
61ed06c3
HPN
1371 ;;
1372m68k*-*-openbsd*)
f1cf4606 1373 # needed to unconfuse gdb
ca11c37c
ZW
1374 tm_defines="OBSD_OLD_GAS TARGET_DEFAULT=(MASK_68020|MASK_68881|MASK_BITFIELD)"
1375 tm_file="m68k/m68k.h openbsd.h m68k/openbsd.h"
f1cf4606 1376 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
61ed06c3
HPN
1377 # we need collect2 until our bug is fixed...
1378 use_collect2=yes
1379 ;;
61ed06c3 1380m68k-*-sysv4*) # Motorola m68k's running system V.4
ca11c37c
ZW
1381 tm_file="m68k/m68k.h m68k/sgs.h dbxelf.h elfos.h svr4.h m68k/m68kv4.h"
1382 tm_defines="MOTOROLA SGS SGS_CMP_ORDER SGS_SWITCH_TABLES"
61ed06c3
HPN
1383 tmake_file=t-svr4
1384 extra_parts="crtbegin.o crtend.o"
ec2a60b0 1385 use_fixproto=yes
61ed06c3 1386 ;;
ba591f5a
BI
1387m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
1388 tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/uclinux.h"
1389 tm_defines="MOTOROLA USE_GAS"
1390 tmake_file=m68k/t-uclinux
1391 use_fixproto=no
1392 ;;
61ed06c3
HPN
1393m68k-*-linux*) # Motorola m68k's running GNU/Linux
1394 # with ELF format using glibc 2
1395 # aka the GNU/Linux C library 6.
ca11c37c 1396 tm_file="m68k/m68k.h dbxelf.h elfos.h svr4.h linux.h m68k/linux.h"
47fe5c48 1397 tm_defines="MOTOROLA USE_GAS"
d2c172bf 1398 tmake_file="t-slibgcc-elf-ver t-linux"
61ed06c3 1399 ;;
c7bdf0a6 1400m68k-*-rtems*)
472b0fbc 1401 tmake_file="m68k/t-m68kbare m68k/t-crtstuff t-rtems m68k/t-rtems"
ca11c37c 1402 tm_file="m68k/m68k.h m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h"
c16202e1 1403 tm_defines="MOTOROLA USE_GAS"
bb8602be 1404 extra_parts="crtbegin.o crtend.o"
61ed06c3 1405 ;;
61ed06c3 1406mcore-*-elf)
c40409ce 1407 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h"
61ed06c3 1408 tmake_file=mcore/t-mcore
ec2a60b0 1409 use_fixproto=yes
61ed06c3
HPN
1410 ;;
1411mcore-*-pe*)
ca11c37c 1412 tm_file="svr3.h dbxcoff.h ${tm_file} mcore/mcore-pe.h"
61ed06c3 1413 tmake_file=mcore/t-mcore-pe
ec2a60b0 1414 use_fixproto=yes
61ed06c3 1415 ;;
789b7de5 1416mips-sgi-irix6*o32) # SGI System V.4., IRIX 6, O32 ABI
4c82f12b 1417 tm_file="${tm_file} mips/iris5.h"
789b7de5
RO
1418 if test x$gas = xyes
1419 then
6627b7f9 1420 tm_file="${tm_file} mips/sdb.h mips/iris5gas.h mips/iris6-o32-gas.h"
789b7de5
RO
1421 if test x$stabs = xyes
1422 then
655b7166 1423 tm_file="${tm_file} dbx.h mips/dbxmdebug.h"
789b7de5 1424 fi
59267987 1425 tmake_file=mips/t-iris5-gas
789b7de5 1426 else
4c82f12b 1427 tm_file="${tm_file} mips/iris6-o32-as.h"
789b7de5
RO
1428 tmake_file=mips/t-iris5-as
1429 fi
1430 tm_file="${tm_file} mips/iris6-o32.h"
1431 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
4c82f12b 1432 target_cpu_default="MASK_ABICALLS"
789b7de5
RO
1433 # mips-tfile doesn't work yet
1434 # See comment in mips/iris5.h file.
3c7404d3
RO
1435 if test x$gas = xno
1436 then
1437 use_collect2=yes
1438 fi
789b7de5
RO
1439# if test x$enable_threads = xyes; then
1440# thread_file='irix'
1441# fi
ec2a60b0 1442 use_fixproto=yes
789b7de5 1443 ;;
61ed06c3 1444mips-sgi-irix6*) # SGI System V.4., IRIX 6
4c82f12b 1445 tm_file="${tm_file} mips/iris5.h mips/iris6.h"
21b807f1 1446 tmake_file="mips/t-iris mips/t-iris5-6 mips/t-iris6"
3c7404d3
RO
1447 if test x$gas = xyes
1448 then
1449 tm_file="${tm_file} mips/iris6gas.h"
1450 fi
61ed06c3
HPN
1451 if test "x$gnu_ld" = xyes
1452 then
4c82f12b 1453 tm_file="${tm_file} mips/iris6gld.h"
21b807f1 1454 tmake_file="$tmake_file mips/t-iris6gld"
61ed06c3 1455 fi
4c82f12b
RO
1456 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1457 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
3c7404d3
RO
1458 # See comment in mips/iris5.h file. Only enabled for O32 ABI
1459 # without GNU as.
1460 if test x$gas = xno
1461 then
1462 use_collect2=yes
1463 fi
61ed06c3
HPN
1464# if test x$enable_threads = xyes; then
1465# thread_file='irix'
1466# fi
ec2a60b0 1467 use_fixproto=yes
61ed06c3 1468 ;;
61ed06c3 1469mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
4c82f12b 1470 tm_file="${tm_file} mips/iris5.h mips/iris6.h mips/cross64.h"
14455c64 1471 tmake_file="mips/t-iris mips/t-cross64"
4c82f12b
RO
1472 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1473 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
61ed06c3
HPN
1474 # See comment in mips/iris[56].h files.
1475 use_collect2=yes
1476# if test x$enable_threads = xyes; then
1477# thread_file='irix'
1478# fi
ec2a60b0 1479 use_fixproto=yes
61ed06c3 1480 ;;
61ed06c3 1481mips-sgi-irix5*) # SGI System V.4., IRIX 5
4c82f12b 1482 tm_file="${tm_file} mips/iris5.h"
61ed06c3
HPN
1483 if test x$gas = xyes
1484 then
6627b7f9 1485 tm_file="${tm_file} mips/sdb.h mips/iris5gas.h"
61ed06c3
HPN
1486 if test x$stabs = xyes
1487 then
655b7166 1488 tm_file="${tm_file} dbx.h mips/dbxmdebug.h"
61ed06c3 1489 fi
59267987 1490 tmake_file=mips/t-iris5-gas
61ed06c3 1491 else
789b7de5 1492 tmake_file=mips/t-iris5-as
61ed06c3 1493 fi
789b7de5 1494 tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
4c82f12b 1495 target_cpu_default="MASK_ABICALLS"
61ed06c3 1496 # mips-tfile doesn't work yet
61ed06c3
HPN
1497 # See comment in mips/iris5.h file.
1498 use_collect2=yes
1499# if test x$enable_threads = xyes; then
1500# thread_file='irix'
1501# fi
ec2a60b0 1502 use_fixproto=yes
61ed06c3 1503 ;;
f982f805 1504mips*-*-netbsd*) # NetBSD/mips, either endian.
27f4b67e 1505 target_cpu_default="MASK_GAS|MASK_ABICALLS"
ca11c37c 1506 tm_file="elfos.h ${tm_file} mips/elf.h netbsd.h netbsd-elf.h mips/netbsd.h"
61ed06c3 1507 ;;
3bd6d4c4
AO
1508mips64*-*-linux*)
1509 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h mips/linux64.h"
7c942e17 1510 tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux64"
3bd6d4c4
AO
1511
1512 # This default ABI is a partial lie: t-linux64 overrides the
1513 # DRIVER_SELF_SPEC that sets the default abi, in the spec file
1514 # that is installed. What GCC thinks of as the default must
1515 # remain as ABI_32 such that the SONAMEs of the libgcc shared
1516 # libraries remain compatible with those of mips-linux-gnu.
1517 tm_defines="MIPS_ISA_DEFAULT=1 MIPS_ABI_DEFAULT=ABI_32"
1518 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT"
1519 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
1520 gnu_ld=yes
1521 gas=yes
3bd6d4c4 1522 ;;
61ed06c3 1523mips*-*-linux*) # Linux MIPS, either endian.
2017ed61 1524 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
b01bc573 1525 case ${target} in
009da785 1526 mipsisa32*-*)
009da785 1527 target_cpu_default="MASK_SOFT_FLOAT"
6d439235 1528 tm_defines="MIPS_ISA_DEFAULT=32"
009da785
EC
1529 ;;
1530 esac
4977bab6 1531 tmake_file="t-slibgcc-elf-ver t-linux"
61ed06c3 1532 ;;
ca11c37c
ZW
1533mips*-*-openbsd*)
1534 tm_defines="OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_OBJECT OBSD_HAS_CORRECT_SPECS"
61ed06c3 1535 target_cpu_default="MASK_GAS|MASK_ABICALLS"
ca11c37c 1536 tm_file="mips/mips.h openbsd.h mips/openbsd.h mips/sdb.h"
b01bc573 1537 case ${target} in
ca11c37c
ZW
1538 mips*el-*-openbsd*)
1539 tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=0";;
1540 *) tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=MASK_BIG_ENDIAN";;
1541 esac
61ed06c3 1542 ;;
74826b0f 1543mipsisa32-*-elf* | mipsisa32el-*-elf*)
ac8ab9fe 1544 tm_file="${tm_file} mips/elf.h"
0e5a4ad8 1545 tmake_file=mips/t-isa3264
ef8dfae6 1546 tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_EABI"
ec2a60b0 1547 use_fixproto=yes
0e5a4ad8 1548 ;;
2d2a50c3
CD
1549mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*)
1550 tm_file="${tm_file} mips/elf.h"
1551 tmake_file=mips/t-isa3264
1552 tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_EABI"
ec2a60b0 1553 use_fixproto=yes
2d2a50c3 1554 ;;
5c44e275 1555mipsisa64-*-elf* | mipsisa64el-*-elf*)
ac8ab9fe 1556 tm_file="${tm_file} mips/elf.h"
5c44e275
CD
1557 tmake_file=mips/t-isa3264
1558 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
d1c4bfe8 1559 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_EABI"
ec2a60b0 1560 use_fixproto=yes
5c44e275 1561 ;;
5ce6f47b
EC
1562mipsisa64sr71k-*-elf*)
1563 tm_file="${tm_file} mips/elf.h"
1564 tmake_file=mips/t-sr71k
1565 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
d1c4bfe8 1566 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
ec2a60b0 1567 use_fixproto=yes
5ce6f47b 1568 ;;
3d41dbb0 1569mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
ac8ab9fe 1570 tm_file="${tm_file} mips/elf.h"
3d41dbb0
CD
1571 tmake_file=mips/t-elf
1572 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1573 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
ec2a60b0 1574 use_fixproto=yes
3d41dbb0 1575 ;;
74826b0f 1576mips-*-elf* | mipsel-*-elf*)
6d439235 1577 tm_file="${tm_file} mips/elf.h"
61ed06c3 1578 tmake_file=mips/t-elf
ec2a60b0 1579 use_fixproto=yes
61ed06c3 1580 ;;
74826b0f 1581mips64-*-elf* | mips64el-*-elf*)
6d439235 1582 tm_file="${tm_file} mips/elf64.h"
61ed06c3 1583 tmake_file=mips/t-elf
6d439235
EC
1584 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1585 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
ec2a60b0 1586 use_fixproto=yes
61ed06c3 1587 ;;
5ce6f47b
EC
1588mips64vr-*-elf* | mips64vrel-*-elf*)
1589 tm_file="mips/vr.h ${tm_file} mips/elf64.h"
60bc2b4b 1590 tm_defines="MIPS_ABI_DEFAULT=ABI_O64 MIPS_MARCH_CONTROLS_SOFT_FLOAT=1"
5ce6f47b 1591 tmake_file=mips/t-vr
ec2a60b0 1592 use_fixproto=yes
5ce6f47b 1593 ;;
74826b0f 1594mips64orion-*-elf* | mips64orionel-*-elf*)
6d439235
EC
1595 tm_file="${tm_file} mips/elforion.h mips/elf64.h"
1596 tmake_file=mips/t-elf
61ed06c3 1597 tmake_file=mips/t-elf
6d439235
EC
1598 target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
1599 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
ec2a60b0 1600 use_fixproto=yes
61ed06c3 1601 ;;
bc98ef7f 1602mips*-*-rtems*)
6d439235 1603 tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h"
c7fcd90b 1604 tmake_file="mips/t-elf t-rtems mips/t-rtems"
61ed06c3 1605 ;;
55047c9d
PE
1606mips-wrs-vxworks)
1607 # We want vxworks.h after mips/elf.h, which unfortunately means we
1608 # have to redo the tm_file list from scratch.
1609 tm_file="elfos.h mips/mips.h svr4.h mips/elf.h vxworks.h mips/vxworks.h"
1610 tmake_file="${tmake_file} mips/t-vxworks"
1611 target_cpu_default="MASK_GAS"
1612 ;;
1613mips-wrs-windiss) # Instruction-level simulator for VxWorks.
1614 xm_defines=POSIX
1615 tm_file="elfos.h mips/mips.h svr4.h mips/elf.h windiss.h mips/windiss.h"
1616 tmake_file="${tmake_file} mips/t-elf"
1617 target_cpu_default="MASK_GAS"
1618 thread_file=
1619 ;;
74826b0f 1620mipstx39-*-elf* | mipstx39el-*-elf*)
ac8ab9fe 1621 tm_file="${tm_file} mips/r3900.h mips/elf.h"
61ed06c3 1622 tmake_file=mips/t-r3900
ec2a60b0 1623 use_fixproto=yes
61ed06c3 1624 ;;
bcf684c7 1625mmix-knuth-mmixware)
4977bab6 1626 need_64bit_hwint=yes
bcf684c7 1627 ;;
61ed06c3 1628mn10300-*-*)
c40409ce 1629 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
61ed06c3
HPN
1630 if test x$stabs = xyes
1631 then
1632 tm_file="${tm_file} dbx.h"
1633 fi
1634 use_collect2=no
ec2a60b0 1635 use_fixproto=yes
61ed06c3 1636 ;;
69474c3c 1637ns32k-*-netbsdelf*)
b01bc573 1638 echo "GCC does not yet support the ${target} target"; exit 1
69474c3c 1639 ;;
61ed06c3 1640ns32k-*-netbsd*)
c8eb9785 1641 tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
61ed06c3 1642 # On NetBSD, the headers are already okay, except for math.h.
ac14c725 1643 tmake_file="t-netbsd ns32k/t-ns32k"
1169f9e0 1644 extra_parts=""
5721cd84 1645 use_collect2=yes
61ed06c3
HPN
1646 ;;
1647pdp11-*-bsd)
1648 tm_file="${tm_file} pdp11/2bsd.h"
ec2a60b0 1649 use_fixproto=yes
61ed06c3
HPN
1650 ;;
1651pdp11-*-*)
ec2a60b0 1652 use_fixproto=yes
61ed06c3
HPN
1653 ;;
1654avr-*-*)
ec2a60b0 1655 use_fixproto=yes
61ed06c3 1656 ;;
ca11c37c
ZW
1657# port not yet contributed
1658#powerpc-*-openbsd*)
1659# tmake_file="${tmake_file} rs6000/t-fprules "
1660# extra_headers=
1661# ;;
2bfcf297 1662powerpc64-*-linux*)
9739c90c
JJ
1663 tm_file="rs6000/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1664 case x$with_cpu in
1665 x|xpowerpc64|xdefault64) tm_file="${tm_file} rs6000/default64.h";;
1666 esac
1667 tm_file="${tm_file} rs6000/linux64.h"
1668 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-ppccomm rs6000/t-linux64"
2bfcf297 1669 ;;
ddb28441
RM
1670powerpc64-*-gnu*)
1671 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 1672 tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-gnu rs6000/t-linux64"
ddb28441 1673 ;;
61ed06c3 1674powerpc-*-beos*)
2bfcf297 1675 tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
40b4cdbf 1676 tmake_file="rs6000/t-fprules rs6000/t-beos"
ba1e6c0b 1677 extra_headers=
ec2a60b0 1678 use_fixproto=yes
61ed06c3 1679 ;;
18922061 1680powerpc-*-darwin*)
40b4cdbf 1681 tm_file="${tm_file} rs6000/darwin.h"
f7a75b82 1682 tmake_file="t-darwin t-slibgcc-darwin rs6000/t-darwin"
5fb4cf24 1683 extra_headers=altivec.h
18922061 1684 ;;
b91da81f 1685powerpc*-*-freebsd*)
c40409ce 1686 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
40b4cdbf 1687 tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
b91da81f 1688 ;;
edf1b3f3 1689powerpc-*-netbsd*)
a4967b8d
JT
1690 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
1691 tmake_file="${tmake_file} rs6000/t-netbsd"
edf1b3f3 1692 ;;
8da6d80e 1693powerpc-*-chorusos*)
c40409ce 1694 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
40b4cdbf 1695 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
769e49eb
NN
1696 case ${enable_threads} in
1697 yes | posix)
1698 thread_file='posix'
1699 ;;
8da6d80e 1700 esac
ec2a60b0 1701 use_fixproto=yes
8da6d80e 1702 ;;
518878e1 1703powerpc-*-eabispe*)
518878e1 1704 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h"
00c060a4 1705 tmake_file="rs6000/t-spe rs6000/t-ppccomm"
518878e1 1706 ;;
cf6ede82 1707powerpc-*-eabisimaltivec*)
cf6ede82 1708 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 1709 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
cf6ede82 1710 ;;
61ed06c3 1711powerpc-*-eabisim*)
c40409ce 1712 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
40b4cdbf 1713 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
61ed06c3
HPN
1714 ;;
1715powerpc-*-elf*)
c40409ce 1716 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
40b4cdbf 1717 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
ec2a60b0 1718 use_fixproto=yes
61ed06c3 1719 ;;
10baca6b 1720powerpc-*-eabialtivec*)
10baca6b 1721 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
40b4cdbf 1722 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
10baca6b 1723 ;;
61ed06c3 1724powerpc-*-eabi*)
c40409ce 1725 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
40b4cdbf 1726 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
61ed06c3
HPN
1727 ;;
1728powerpc-*-rtems*)
f22b4bc4 1729 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 1730 tmake_file="rs6000/t-fprules t-rtems rs6000/t-ppccomm"
61ed06c3 1731 ;;
7c942e17 1732powerpc-*-linux*altivec*)
10baca6b 1733 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
40b4cdbf 1734 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
10baca6b 1735 ;;
7c942e17 1736powerpc-*-linux*spe*)
2f3f95e9
AH
1737 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
1738 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
1739 ;;
61ed06c3 1740powerpc-*-linux*)
c40409ce 1741 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
40b4cdbf 1742 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
61ed06c3 1743 ;;
ddb28441
RM
1744powerpc-*-gnu-gnualtivec*)
1745 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 1746 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
ddb28441
RM
1747 if test x$enable_threads = xyes; then
1748 thread_file='posix'
1749 fi
1750 ;;
1751powerpc-*-gnu*)
1752 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 1753 tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm"
ddb28441
RM
1754 if test x$enable_threads = xyes; then
1755 thread_file='posix'
1756 fi
1757 ;;
61ed06c3 1758powerpc-wrs-vxworks*)
4977bab6
ZW
1759 # We want vxworks.h after rs6000/sysv4.h, which unfortunately
1760 # means we have to redo the tm_file list from scratch.
1761 tm_file="rs6000/rs6000.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1762 tm_file="${tm_file} vxworks.h rs6000/vxworks.h"
40b4cdbf 1763 tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
4977bab6
ZW
1764 extra_headers=ppc-asm.h
1765 ;;
55047c9d 1766powerpc-wrs-windiss*) # Instruction-level simulator for VxWorks.
bce0deb2 1767 tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h"
40b4cdbf 1768 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
bce0deb2 1769 thread_file=""
ec2a60b0 1770 use_fixproto=yes
bce0deb2 1771 ;;
61ed06c3 1772powerpcle-*-sysv*)
c40409ce 1773 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
40b4cdbf 1774 tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
ec2a60b0 1775 use_fixproto=yes
61ed06c3
HPN
1776 ;;
1777powerpcle-*-elf*)
c40409ce 1778 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
40b4cdbf 1779 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
ec2a60b0 1780 use_fixproto=yes
61ed06c3
HPN
1781 ;;
1782powerpcle-*-eabisim*)
c40409ce 1783 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 1784 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
61ed06c3
HPN
1785 ;;
1786powerpcle-*-eabi*)
c40409ce 1787 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
40b4cdbf 1788 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
61ed06c3 1789 ;;
6b3a0b34
US
1790powerpc-*-kaos*)
1791 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h kaos.h rs6000/kaos-ppc.h"
1792 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1793 ;;
1794powerpcle-*-kaos*)
1795 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h kaos.h rs6000/kaos-ppc.h"
1796 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
1797 ;;
61ed06c3 1798rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2bfcf297 1799 tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
40b4cdbf 1800 tmake_file="rs6000/t-fprules rs6000/t-newas"
61ed06c3 1801 use_collect2=yes
ba1e6c0b 1802 extra_headers=
ec2a60b0 1803 use_fixproto=yes
61ed06c3
HPN
1804 ;;
1805rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
9739c90c 1806 tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
61ed06c3 1807 tmake_file=rs6000/t-aix43
61ed06c3
HPN
1808 use_collect2=yes
1809 thread_file='aix'
ba1e6c0b 1810 extra_headers=
61ed06c3 1811 ;;
5f5d5417 1812rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
9739c90c 1813 tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
61ed06c3 1814 tmake_file=rs6000/t-aix43
61ed06c3
HPN
1815 use_collect2=yes
1816 thread_file='aix'
ba1e6c0b 1817 extra_headers=
61ed06c3 1818 ;;
5f5d5417 1819rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5f5d5417
DE
1820 tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h"
1821 tmake_file=rs6000/t-aix52
1822 use_collect2=yes
1823 thread_file='aix'
1824 extra_headers=
1825 ;;
61ed06c3 1826rs6000-*-lynxos*)
ca11c37c 1827 tm_file="svr3.h lynx.h rs6000/lynxbase.h rs6000/rs6000.h rs6000/lynx.h"
40b4cdbf 1828 tmake_file=rs6000/t-fprules
61ed06c3 1829 use_collect2=yes
ec2a60b0 1830 use_fixproto=yes
61ed06c3 1831 ;;
0e5a4ad8 1832s390-*-linux*)
c40409ce 1833 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
8ef34c0d 1834 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff"
9628a767 1835 ;;
0e5a4ad8 1836s390x-*-linux*)
58d10f89 1837 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
70eeb10b
UW
1838 tm_p_file=s390/s390-protos.h
1839 md_file=s390/s390.md
1c0ca89d 1840 extra_modes=s390/s390-modes.def
70eeb10b 1841 out_file=s390/s390.c
8ef34c0d 1842 tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff s390/t-linux64"
9628a767 1843 ;;
24fe22c9
UW
1844s390x-ibm-tpf*)
1845 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h s390/tpf.h"
1846 tm_p_file=s390/s390-protos.h
1847 md_file=s390/s390.md
1848 extra_modes=s390/s390-modes.def
bde5dd25 1849 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
24fe22c9
UW
1850 out_file=s390/s390.c
1851 tmake_file="t-slibgcc-elf-ver s390/t-crtstuff s390/t-tpf"
1852 ;;
6b3a0b34 1853sh-*-elf* | sh[2346l]*-*-elf* | sh*-*-kaos*)
61ed06c3 1854 tmake_file="sh/t-sh sh/t-elf"
b01bc573 1855 case ${target} in
dbf87f32
R
1856 shl* | sh64l*)
1857 tm_file="sh/little.h ${tm_file}"
1858 tmake_file="${tmake_file} sh/t-le"
1859 ;;
1860 esac
ca11c37c 1861 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h"
b01bc573 1862 case ${target} in
dbf87f32
R
1863 sh64*)
1864 tmake_file="${tmake_file} sh/t-sh64"
1865 tm_file="${tm_file} sh/sh64.h"
1866 extra_headers="shmedia.h ushmedia.h sshmedia.h"
dbf87f32 1867 ;;
8bc6e101
R
1868 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1869 sh4*) target_cpu_default="SELECT_SH4" ;;
1870 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1871 sh3*) target_cpu_default="SELECT_SH3" ;;
3a8699c7 1872 sh2e*) target_cpu_default="SELECT_SH2E" ;;
8bc6e101
R
1873 sh2*) target_cpu_default="SELECT_SH2" ;;
1874 esac
b01bc573 1875 case ${target} in
8bc6e101 1876 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
8f48afc1 1877 esac
b01bc573 1878 case ${target} in
6b3a0b34 1879 sh*-*-kaos*) tm_file="${tm_file} kaos.h sh/kaos-sh.h" ;;
dbf87f32 1880 esac
ec2a60b0 1881 use_fixproto=yes
fa5322fa 1882 ;;
61ed06c3
HPN
1883sh-*-rtemself*)
1884 tmake_file="sh/t-sh sh/t-elf t-rtems"
ca11c37c 1885 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h"
61ed06c3
HPN
1886 ;;
1887sh-*-rtems*)
1888 tmake_file="sh/t-sh t-rtems"
10d6ea27 1889 tm_file="${tm_file} dbxcoff.h sh/coff.h sh/rtems.h rtems.h"
61ed06c3 1890 ;;
8bc6e101 1891sh-*-linux* | sh[2346lbe]*-*-linux*)
2fdd01a0 1892 tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux"
b01bc573 1893 case ${target} in
8bc6e101
R
1894 sh*be-*-* | sh*eb-*-*) ;;
1895 *)
1896 tm_file="sh/little.h ${tm_file}"
1897 tmake_file="${tmake_file} sh/t-le"
1898 ;;
1899 esac
2fdd01a0 1900 tmake_file="${tmake_file} sh/t-linux"
8bc6e101 1901 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
b01bc573 1902 case ${target} in
8bc6e101
R
1903 sh64*)
1904 tmake_file="${tmake_file} sh/t-sh64"
1905 tm_file="${tm_file} sh/sh64.h"
1906 extra_headers="shmedia.h ushmedia.h sshmedia.h"
8bc6e101
R
1907 ;;
1908 sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
1909 sh4*) target_cpu_default="SELECT_SH4" ;;
1910 sh3e[lb]e*) target_cpu_default="SELECT_SH3E" ;;
1911 sh3e[lb]*) target_cpu_default="SELECT_SH3" ;;
1912 sh3e*) target_cpu_default="SELECT_SH3E" ;;
1913 sh3*) target_cpu_default="SELECT_SH3" ;;
3a8699c7
AO
1914 sh2e[lb]e*) target_cpu_default="SELECT_SH2E" ;;
1915 sh2e[lb]*) target_cpu_default="SELECT_SH2" ;;
1916 sh2e*) target_cpu_default="SELECT_SH2E" ;;
8bc6e101
R
1917 sh2*) target_cpu_default="SELECT_SH2" ;;
1918 esac
b01bc573 1919 case ${target} in
8bc6e101
R
1920 sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;;
1921 esac
61ed06c3 1922 ;;
b655555e
JT
1923sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
1924 sh64-*-netbsd* | sh64l*-*-netbsd*)
b4eb03fe
JT
1925 tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h netbsd.h netbsd-elf.h sh/netbsd-elf.h"
1926 tmake_file="${tmake_file} sh/t-sh sh/t-elf"
b01bc573 1927 case ${target} in
b4eb03fe
JT
1928 sh*l*-*)
1929 tm_file="sh/little.h ${tm_file}"
1930 tmake_file="${tmake_file} sh/t-le"
1931 ;;
1932 *)
1933 tmake_file="${tmake_file} sh/t-be"
1934 ;;
1935 esac
b01bc573 1936 case ${target} in
b655555e
JT
1937 sh5*-*)
1938 # SHmedia, 32-bit ABI
3a8699c7 1939 target_cpu_default="SH5_BIT|SH4_BIT|SH3_BIT|SH_E_BIT"
3fa1b448 1940 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5"
b655555e
JT
1941 ;;
1942 sh64*-*)
1943 # SHmedia, 64-bit ABI
1944 target_cpu_default="SH5_BIT|SH4_BIT"
3fa1b448 1945 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5 sh/t-netbsd-sh5-64"
b655555e
JT
1946 ;;
1947 *)
1948 # SH3, software floating point
1949 target_cpu_default="SH1_BIT|SH2_BIT|SH3_BIT"
1950 tmake_file="${tmake_file} sh/t-netbsd"
1951 ;;
1952 esac
b4eb03fe 1953 ;;
55047c9d
PE
1954sh-wrs-vxworks)
1955 tmake_file="$tmake_file sh/t-sh sh/t-elf sh/t-vxworks"
1956 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h sh/vxworks.h"
1957 ;;
61ed06c3 1958sh-*-*)
10d6ea27 1959 tm_file="${tm_file} dbxcoff.h sh/coff.h"
ec2a60b0 1960 use_fixproto=yes
61ed06c3
HPN
1961 ;;
1962sparc-tti-*)
0f658c83 1963 tm_file="${tm_file} sparc/pbd.h"
ec2a60b0 1964 use_fixproto=yes
61ed06c3 1965 ;;
69474c3c 1966sparc-*-netbsdelf*)
4cb7482c 1967 tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
69474c3c 1968 ;;
61ed06c3 1969sparc-*-openbsd*)
ca11c37c
ZW
1970 tm_defines=OBSD_OLD_GAS
1971 tm_file="sparc/sparc.h openbsd.h sparc/openbsd.h"
f1cf4606
ME
1972 # needed to unconfuse gdb
1973 tmake_file="t-libc-ok t-openbsd sparc/t-openbsd"
61ed06c3
HPN
1974 # we need collect2 until our bug is fixed...
1975 use_collect2=yes
1976 ;;
91f0fcee
ME
1977sparc64-*-openbsd*)
1978 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
1979 gas=yes gnu_ld=yes
1980 with_cpu=ultrasparc
91f0fcee 1981 ;;
61ed06c3 1982sparc-*-elf*)
8433a25e 1983 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h"
a261e0cc 1984 tmake_file="sparc/t-elf sparc/t-crtfm"
61ed06c3 1985 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
ec2a60b0 1986 use_fixproto=yes
61ed06c3 1987 ;;
981f6289 1988sparc-*-linux*) # SPARC's running GNU/Linux, libc6
c40409ce 1989 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
a261e0cc 1990 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
61ed06c3 1991 ;;
c7bdf0a6 1992sparc-*-rtems*)
8433a25e 1993 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 1994 tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
61ed06c3 1995 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
61ed06c3 1996 ;;
8947df0c 1997sparc64-*-solaris2* | sparcv9-*-solaris2*)
8433a25e 1998 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
1999 if test x$gnu_ld = xyes; then
2000 tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
61ed06c3 2001 fi
f0871dfe
RH
2002 if test x$gas = xyes; then
2003 tm_file="${tm_file} sparc/sol2-gas-bi.h"
2004 fi
a261e0cc 2005 tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
61ed06c3 2006 if test x$gnu_ld = xyes; then
7b3a4df5 2007 tmake_file="$tmake_file t-slibgcc-elf-ver"
61ed06c3 2008 else
7b3a4df5 2009 tmake_file="$tmake_file t-slibgcc-sld"
61ed06c3 2010 fi
61ed06c3 2011 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
61ed06c3
HPN
2012 if test x${enable_threads} = x ; then
2013 enable_threads=$have_pthread_h
2014 if test x${enable_threads} = x ; then
2015 enable_threads=$have_thread_h
2016 fi
2017 fi
2018 if test x${enable_threads} = xyes ; then
2019 if test x${have_pthread_h} = xyes ; then
2020 thread_file='posix'
2021 else
2022 thread_file='solaris'
2023 fi
2024 fi
4977bab6 2025 need_64bit_hwint=yes
61ed06c3 2026 ;;
8947df0c 2027sparc-*-solaris2*)
8433a25e 2028 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h"
3fc602a0
RH
2029 if test x$gnu_ld = xyes; then
2030 tm_file="${tm_file} sparc/sol2-gld.h"
61ed06c3 2031 fi
a261e0cc 2032 tmake_file="sparc/t-sol2 sparc/t-crtfm"
61ed06c3 2033 if test x$gnu_ld = xyes; then
7b3a4df5 2034 tmake_file="$tmake_file t-slibgcc-elf-ver"
61ed06c3 2035 else
7b3a4df5 2036 tmake_file="$tmake_file t-slibgcc-sld"
61ed06c3 2037 fi
b01bc573 2038 case ${target} in
8947df0c
RH
2039 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
2040 if test x$gnu_ld = xno; then
2041 tm_file="${tm_file} sparc/sol26-sld.h"
2042 fi
2043 ;;
51ac684e 2044 *-*-solaris2.[789] | *-*-solaris2.1[0-9])
3fc602a0
RH
2045 tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
2046 if test x$gnu_ld = xyes; then
2047 tm_file="${tm_file} sparc/sol2-gld-bi.h"
7112135f 2048 fi
f0871dfe
RH
2049 if test x$gas = xyes; then
2050 tm_file="${tm_file} sparc/sol2-gas-bi.h"
2051 fi
7112135f 2052 tmake_file="$tmake_file sparc/t-sol2-64"
4977bab6 2053 need_64bit_hwint=yes
7112135f
AO
2054 ;;
2055 esac
3fc602a0 2056 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
61ed06c3
HPN
2057 if test x${enable_threads} = x; then
2058 enable_threads=$have_pthread_h
2059 if test x${enable_threads} = x; then
2060 enable_threads=$have_thread_h
2061 fi
2062 fi
2063 if test x${enable_threads} = xyes; then
2064 if test x${have_pthread_h} = xyes; then
2065 thread_file='posix'
2066 else
2067 thread_file='solaris'
2068 fi
2069 fi
2070 ;;
61ed06c3 2071sparc-*-sysv4*)
9b8466f4 2072 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sysv4-only.h"
61ed06c3 2073 tmake_file=t-svr4
61ed06c3 2074 extra_parts="crtbegin.o crtend.o"
ec2a60b0 2075 use_fixproto=yes
61ed06c3 2076 ;;
61ed06c3 2077sparclite-*-coff*)
c15c90bb 2078 tm_file="${tm_file} sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h"
61ed06c3
HPN
2079 tmake_file=sparc/t-sparclite
2080 ;;
61ed06c3 2081sparclite-*-elf*)
c15c90bb 2082 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/liteelf.h"
2d69e3cb 2083 tmake_file="sparc/t-sparclite sparc/t-crtfm"
61ed06c3 2084 extra_parts="crtbegin.o crtend.o"
ec2a60b0 2085 use_fixproto=yes
61ed06c3 2086 ;;
0e5a4ad8 2087sparc86x-*-elf*)
c15c90bb 2088 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/sp86x-elf.h"
2d69e3cb 2089 tmake_file="sparc/t-sp86x sparc/t-crtfm"
61ed06c3 2090 extra_parts="crtbegin.o crtend.o"
ec2a60b0 2091 use_fixproto=yes
61ed06c3
HPN
2092 ;;
2093sparc64-*-aout*)
ad9b8af6 2094 tm_file="sparc/sparc.h sparc/aout.h sparc/sp64-aout.h"
ec2a60b0 2095 use_fixproto=yes
61ed06c3
HPN
2096 ;;
2097sparc64-*-elf*)
8433a25e 2098 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sp64-elf.h"
2d69e3cb 2099 tmake_file="${tmake_file} sparc/t-crtfm"
61ed06c3 2100 extra_parts="crtbegin.o crtend.o"
ec2a60b0 2101 use_fixproto=yes
61ed06c3 2102 ;;
c7240cbd
DB
2103sparc64-*-freebsd*|ultrasparc-*-freebsd*)
2104 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
2d69e3cb 2105 tmake_file="${tmake_file} sparc/t-crtfm"
c7240cbd 2106 case "x$with_cpu" in
e0054185 2107 xultrasparc) ;;
c7240cbd
DB
2108 x) with_cpu=ultrasparc ;;
2109 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
2110 esac
4977bab6 2111 need_64bit_hwint=yes
c7240cbd 2112 ;;
981f6289 2113sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
19fe522a 2114 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
86f808dc 2115 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
61ed06c3 2116 ;;
4cb7482c
MG
2117sparc64-*-netbsd*)
2118 tmake_file="${tmake_file} sparc/t-netbsd64"
2119 tm_file="sparc/biarch64.h ${tm_file}"
2120 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
4cb7482c 2121 ;;
d19fb8e3 2122strongarm-*-elf*)
c40409ce 2123 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
2124 tmake_file=arm/t-strongarm-elf
2125 out_file=arm/arm.c
d19fb8e3 2126 md_file=arm/arm.md
1c0ca89d 2127 extra_modes=arm/arm-modes.def
ec2a60b0 2128 use_fixproto=yes
d19fb8e3 2129 ;;
d19fb8e3 2130strongarm-*-pe)
ca11c37c 2131 tm_file="arm/semi.h arm/aout.h arm/coff.h dbxcoff.h arm/strongarm-coff.h arm/arm.h arm/pe.h arm/strongarm-pe.h"
d19fb8e3
NC
2132 tmake_file=arm/t-strongarm-pe
2133 out_file=arm/arm.c
d19fb8e3 2134 md_file=arm/arm.md
1c0ca89d 2135 extra_modes=arm/arm-modes.def
d19fb8e3 2136 extra_objs=pe.o
ec2a60b0 2137 use_fixproto=yes
d19fb8e3 2138 ;;
6b3a0b34
US
2139strongarm-*-kaos*)
2140 tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h kaos.h arm/kaos-strongarm.h"
2141 tmake_file=arm/t-strongarm-elf
2142 out_file=arm/arm.c
2143 md_file=arm/arm.md
2144 extra_modes=arm/arm-modes.def
2145 ;;
70d65164
NC
2146v850e1-*-*)
2147 target_cpu_default="TARGET_CPU_v850e1"
2148 tm_file="dbxelf.h elfos.h svr4.h v850/v850.h"
2149 tm_p_file=v850/v850-protos.h
2150 tmake_file=v850/t-v850e
2151 md_file=v850/v850.md
2152 out_file=v850/v850.c
2153 if test x$stabs = xyes
2154 then
2155 tm_file="${tm_file} dbx.h"
2156 fi
2157 use_collect2=no
2158 c_target_objs="v850-c.o"
2159 cxx_target_objs="v850-c.o"
ec2a60b0 2160 use_fixproto=yes
70d65164 2161 ;;
b4378319
NC
2162v850e-*-*)
2163 target_cpu_default="TARGET_CPU_v850e"
2164 tm_file="dbxelf.h elfos.h svr4.h v850/v850.h"
2165 tm_p_file=v850/v850-protos.h
c490cc89 2166 tmake_file=v850/t-v850e
b4378319
NC
2167 md_file=v850/v850.md
2168 out_file=v850/v850.c
2169 if test x$stabs = xyes
2170 then
2171 tm_file="${tm_file} dbx.h"
2172 fi
2173 use_collect2=no
2174 c_target_objs="v850-c.o"
2175 cxx_target_objs="v850-c.o"
ec2a60b0 2176 use_fixproto=yes
b4378319 2177 ;;
61ed06c3
HPN
2178v850-*-*)
2179 target_cpu_default="TARGET_CPU_generic"
c40409ce 2180 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
61ed06c3
HPN
2181 tmake_file=v850/t-v850
2182 if test x$stabs = xyes
2183 then
2184 tm_file="${tm_file} dbx.h"
2185 fi
2186 use_collect2=no
c3edd394
NC
2187 c_target_objs="v850-c.o"
2188 cxx_target_objs="v850-c.o"
ec2a60b0 2189 use_fixproto=yes
61ed06c3 2190 ;;
8aeea6e6 2191vax-*-bsd*) # VAXen running BSD
169274cd 2192 tm_file="${tm_file} vax/bsd.h"
61ed06c3 2193 use_collect2=yes
ec2a60b0 2194 use_fixproto=yes
61ed06c3 2195 ;;
8aeea6e6 2196vax-*-sysv*) # VAXen running system V
61ed06c3 2197 tm_file="${tm_file} vax/vaxv.h"
ec2a60b0 2198 use_fixproto=yes
61ed06c3 2199 ;;
69474c3c 2200vax-*-netbsdelf*)
ec20cffb 2201 tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
69474c3c 2202 ;;
61ed06c3 2203vax-*-netbsd*)
f982f805 2204 tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
61ed06c3 2205 tmake_file=t-netbsd
1169f9e0 2206 extra_parts=""
5721cd84 2207 use_collect2=yes
61ed06c3
HPN
2208 ;;
2209vax-*-openbsd*)
ca11c37c 2210 tm_file="vax/vax.h vax/openbsd1.h openbsd.h vax/openbsd.h"
61ed06c3
HPN
2211 use_collect2=yes
2212 ;;
8aeea6e6 2213vax-*-ultrix*) # VAXen running ultrix
61ed06c3 2214 tm_file="${tm_file} vax/ultrix.h"
ec2a60b0 2215 use_fixproto=yes
61ed06c3 2216 ;;
8aeea6e6 2217vax-*-*) # VAX default entry
34cf946f
NN
2218 if test "x$enable_obsolete" != xyes; then
2219 echo "*** Configuration ${target} is obsolete." >&2
2220 echo "*** Specify --enable-obsolete to build it anyway." >&2
2221 echo "*** Support will be REMOVED in the next major release of GCC," >&2
2222 echo "*** unless a maintainer comes forward." >&2
2223 exit 1
2224 fi
ec2a60b0 2225 use_fixproto=yes
61ed06c3 2226 ;;
d19fb8e3 2227xscale-*-elf)
c40409ce 2228 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
2229 tmake_file=arm/t-xscale-elf
2230 out_file=arm/arm.c
d19fb8e3 2231 md_file=arm/arm.md
1c0ca89d 2232 extra_modes=arm/arm-modes.def
ec2a60b0 2233 use_fixproto=yes
d19fb8e3
NC
2234 ;;
2235xscale-*-coff)
ca11c37c 2236 tm_file="arm/semi.h arm/aout.h arm/coff.h dbxcoff.h arm/xscale-coff.h arm/arm.h"
d19fb8e3
NC
2237 tmake_file=arm/t-xscale-coff
2238 out_file=arm/arm.c
d19fb8e3 2239 md_file=arm/arm.md
1c0ca89d 2240 extra_modes=arm/arm-modes.def
ec2a60b0 2241 use_fixproto=yes
d19fb8e3 2242 ;;
14d269bb
GK
2243xstormy16-*-elf)
2244 # For historical reasons, the target files omit the 'x'.
c40409ce 2245 tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h"
14d269bb
GK
2246 tm_p_file=stormy16/stormy16-protos.h
2247 md_file=stormy16/stormy16.md
2248 out_file=stormy16/stormy16.c
2249 tmake_file="stormy16/t-stormy16"
2250 extra_parts="crtbegin.o crtend.o"
ec2a60b0 2251 use_fixproto=yes
14d269bb 2252 ;;
03984308
BW
2253xtensa-*-elf*)
2254 tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h"
1f37a5b2 2255 tmake_file="xtensa/t-xtensa xtensa/t-elf"
03984308
BW
2256 ;;
2257xtensa-*-linux*)
2258 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h"
066f1538 2259 tmake_file="t-slibgcc-elf-ver t-linux xtensa/t-xtensa xtensa/t-linux"
03984308 2260 ;;
2beef00e
AO
2261am33_2.0-*-linux*)
2262 tm_file="mn10300/mn10300.h dbxelf.h elfos.h linux.h mn10300/linux.h"
e7f86e61 2263 tmake_file="t-slibgcc-elf-ver t-linux mn10300/t-linux"
2beef00e 2264 gas=yes gnu_ld=yes
2beef00e
AO
2265 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2266 use_collect2=no
2267 ;;
61ed06c3 2268*)
b01bc573 2269 echo "*** Configuration ${target} not supported" 1>&2
61ed06c3
HPN
2270 exit 1
2271 ;;
2272esac
2273
73f09c99 2274# Support for --with-cpu and related options (and a few unrelated options,
a89ea0df 2275# too).
35341073
NN
2276case ${with_cpu} in
2277 yes | no)
2278 echo "--with-cpu must be passed a value" 1>&2
2279 exit 1
2280 ;;
2281esac
83079d89 2282
35341073
NN
2283# If there is no $with_cpu option, try to infer one from ${target}.
2284# This block sets nothing except for with_cpu.
2285if test x$with_cpu = x ; then
2286 case ${target} in
2287 ep9312-*-*)
2288 # A Cirrus ARM variant.
2289 with_cpu="ep9312"
2290 ;;
2291 i486-*-*)
2292 with_cpu=i486
2293 ;;
2294 i586-*-*)
43aba518 2295 case ${target_noncanonical} in
35341073
NN
2296 k6_2-*)
2297 with_cpu=k6-2
2298 ;;
2299 k6_3-*)
2300 with_cpu=k6-3
2301 ;;
2302 k6-*)
2303 with_cpu=k6
2304 ;;
2305 pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
2306 with_cpu=pentium-mmx
2307 ;;
2308 *)
2309 with_cpu=pentium
2310 ;;
2311 esac
2312 ;;
2313 i686-*-* | i786-*-*)
43aba518 2314 case ${target_noncanonical} in
35341073
NN
2315 k8-*)
2316 with_cpu=k8
2317 ;;
2318 athlon_xp-*|athlon_mp-*|athlon_4-*)
2319 with_cpu=athlon-4
2320 ;;
2321 athlon_tbird-*|athlon-*)
2322 with_cpu=athlon
2323 ;;
2324 pentium2-*)
2325 with_cpu=pentium2
2326 ;;
2327 pentium3-*)
2328 with_cpu=pentium3
2329 ;;
2330 pentium4-*)
2331 with_cpu=pentium4
2332 ;;
2333 *)
2334 with_cpu=pentiumpro
2335 ;;
2336 esac
2337 ;;
2338 x86_64-*-*)
2339 with_cpu=k8
2340 ;;
2341 alphaev6[78]*-*-*)
2342 with_cpu=ev67
2343 ;;
2344 alphaev6*-*-*)
2345 with_cpu=ev6
2346 ;;
2347 alphapca56*-*-*)
2348 with_cpu=pca56
2349 ;;
2350 alphaev56*-*-*)
2351 with_cpu=ev56
2352 ;;
2353 alphaev5*-*-*)
2354 with_cpu=ev5
2355 ;;
2356 sparc*-*-*)
2357 with_cpu="`echo ${target} | sed 's/-.*$//'`"
2358 if [ x$with_cpu = xsparc64 ]; then
2359 with_cpu=v9
2360 fi
2361 ;;
2362 esac
2363fi
83079d89
DJ
2364
2365 # Similarly for --with-schedule.
2366 if test x$with_schedule = x; then
b01bc573 2367 case ${target} in
83079d89
DJ
2368 hppa1* | parisc1*)
2369 # Override default PA8000 scheduling model.
2370 with_schedule=7100LC
e10e23ee 2371 ;;
83079d89
DJ
2372 esac
2373 fi
2374
7816bea0
DJ
2375 # Validate and mark as valid any --with options supported
2376 # by this target. In order to use a particular --with option
2377 # you must list it in supported_defaults; validating the value
2378 # is optional. This case statement should set nothing besides
2379 # supported_defaults.
2380
2381 supported_defaults=
b01bc573 2382 case "${target}" in
83079d89 2383 alpha*-*-*)
7816bea0
DJ
2384 supported_defaults="cpu tune"
2385 for which in cpu tune; do
2386 eval "val=\$with_$which"
b597bfd8
NN
2387 case "$val" in
2388 "" \
2389 | ev4 | ev45 | 21064 | ev5 | 21164 | ev56 | 21164a \
2390 | pca56 | 21164PC | 21164pc | ev6 | 21264 | ev67 \
2391 | 21264a)
7816bea0
DJ
2392 ;;
2393 *)
2394 echo "Unknown CPU used in --with-$which=$val" 1>&2
2395 exit 1
2396 ;;
2397 esac
2398 done
2399 ;;
2400
2401 arm*-*-*)
2402 supported_defaults="arch cpu float tune"
2403 for which in cpu tune; do
2404 eval "val=\$with_$which"
b597bfd8
NN
2405 case "$val" in
2406 "" \
2407 | arm[236789] | arm250 | arm[67][01]0 \
2408 | arm60 | arm620 | arm7d | arm7di \
2409 | arm7m | arm7dm | arm7dmi | arm[79]tdmi \
2410 | arm70 | arm700i | arm710t | arm720 \
2411 | arm720t | arm740t | arm710c | arm920 \
81f9037c 2412 | arm920t | arm926ejs | arm940t | arm9e | arm10tdmi \
b597bfd8 2413 | arm7100 | arm7500 | arm7500fe | arm810 \
81f9037c 2414 | arm1026ejs | arm1020t | arm1136js | arm1136jfs \
b597bfd8
NN
2415 | xscale | iwmmxt \
2416 | ep9312 \
2417 | strongarm | strongarm110 | strongarm11[01]0)
7816bea0
DJ
2418 # OK
2419 ;;
2420 *)
2421 echo "Unknown CPU used in --with-$which=$val" 1>&2
2422 exit 1
2423 ;;
2424 esac
2425 done
2426
b597bfd8
NN
2427 case "$with_arch" in
2428 "" \
2429 | armv[2345] | armv2a | armv3m | armv4t | armv5t \
81f9037c 2430 | armv5te | armv6j | ep9312)
83079d89 2431 # OK
4ed47bea
JM
2432 ;;
2433 *)
7816bea0 2434 echo "Unknown arch used in --with-arch=$with_arch" 1>&2
83079d89 2435 exit 1
73f09c99
DJ
2436 ;;
2437 esac
83079d89 2438
b597bfd8
NN
2439 case "$with_float" in
2440 "" \
2441 | soft | hard)
83079d89 2442 # OK
73f09c99 2443 ;;
83079d89 2444 *)
7816bea0 2445 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
83079d89 2446 exit 1
73f09c99
DJ
2447 ;;
2448 esac
7816bea0
DJ
2449
2450 if test "x$with_arch" != x && test "x$with_cpu" != x; then
2451 echo "Warning: --with-arch overrides --with-cpu" 1>&2
2452 fi
73f09c99 2453 ;;
73f09c99 2454
83079d89 2455 hppa*-*-* | parisc*-*-*)
7816bea0
DJ
2456 supported_defaults="arch schedule"
2457
b597bfd8
NN
2458 case "$with_arch" in
2459 "" | 1.0 | 1.1 | 2.0)
7816bea0
DJ
2460 # OK
2461 ;;
2462 *)
2463 echo "Unknown architecture used in --with-arch=$with_arch" 1>&2
2464 exit 1
2465 ;;
2466 esac
2467
b597bfd8
NN
2468 case "$with_schedule" in
2469 "" | 700 | 7100 | 7100LC | 7200 | 7300 | 8000)
83079d89
DJ
2470 # OK
2471 ;;
2472 *)
2473 echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2
2474 exit 1
2475 ;;
2476 esac
73f09c99 2477 ;;
73f09c99 2478
83079d89 2479 i[34567]86-*-* | x86_64-*-*)
7816bea0
DJ
2480 supported_defaults="arch cpu tune"
2481 for which in arch cpu tune; do
2482 eval "val=\$with_$which"
16aa42c0
NN
2483 case ${val} in
2484 "" | i386 | i486 \
2485 | i586 | pentium | pentium-mmx | winchip-c6 | winchip2 \
2486 | c3 | c3-2 | i686 | pentiumpro | pentium2 | pentium3 \
2487 | pentium4 | k6 | k6-2 | k6-3 | athlon | athlon-tbird \
2488 | athlon-4 | athlon-xp | athlon-mp | k8)
7816bea0
DJ
2489 # OK
2490 ;;
2491 *)
2492 echo "Unknown CPU given in --with-$which=$val." 1>&2
2493 exit 1
2494 ;;
2495 esac
2496 done
2497 ;;
2498
2499 mips*-*-*)
2500 supported_defaults="abi arch float tune"
2501
16aa42c0
NN
2502 case ${with_float} in
2503 "" | soft | hard)
83079d89
DJ
2504 # OK
2505 ;;
2506 *)
7816bea0 2507 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
83079d89
DJ
2508 exit 1
2509 ;;
2510 esac
73f09c99 2511
16aa42c0
NN
2512 case ${with_abi} in
2513 "" | 32 | o64 | n32 | 64 | eabi)
83079d89
DJ
2514 # OK
2515 ;;
2516 *)
7816bea0 2517 echo "Unknown ABI used in --with-abi=$with_abi" 1>&2
83079d89
DJ
2518 exit 1
2519 ;;
2520 esac
73f09c99 2521 ;;
73f09c99 2522
7816bea0
DJ
2523 powerpc*-*-* | rs6000-*-*)
2524 supported_defaults="cpu float tune"
2525
2526 for which in cpu tune; do
2527 eval "val=\$with_$which"
16aa42c0
NN
2528 case ${val} in
2529 "" | default32 | default64 | common \
2530 | power | power2 | power3 | power4 \
2531 | powerpc | powerpc64 \
2532 | rios | rios1 | rios2 | rsc | rsc1 | rs64a \
2533 | 401 | 403 | 405 | 405fp | 440 | 440fp | 505 \
2534 | 601 | 602 | 603 | 603e | ec603e | 604 \
2535 | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \
49ffe578 2536 | 8540 | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5)
7816bea0
DJ
2537 # OK
2538 ;;
2539 *)
2540 echo "Unknown cpu used in --with-$which=$val." 1>&2
2541 exit 1
2542 ;;
2543 esac
2544 done
2545 ;;
2546
f13e0d4e
UW
2547 s390*-*-*)
2548 supported_defaults="arch mode tune"
2549
2550 for which in arch tune; do
2551 eval "val=\$with_$which"
16aa42c0
NN
2552 case ${val} in
2553 "" | g5 | g6 | z900 | z990)
f13e0d4e
UW
2554 # OK
2555 ;;
2556 *)
2557 echo "Unknown cpu used in --with-$which=$val." 1>&2
2558 exit 1
2559 ;;
2560 esac
2561 done
2562
16aa42c0
NN
2563 case ${with_mode} in
2564 "" | esa | zarch)
f13e0d4e
UW
2565 # OK
2566 ;;
2567 *)
2568 echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2
2569 exit 1
2570 ;;
2571 esac
2572 ;;
2573
83079d89 2574 sparc*-*-*)
7816bea0
DJ
2575 supported_defaults="cpu float tune"
2576
2577 for which in cpu tune; do
2578 eval "val=\$with_$which"
16aa42c0
NN
2579 case ${val} in
2580 "" | sparc | sparcv9 | sparc64 | sparc86x \
2581 | v7 | cypress | v8 | supersparc | sparclite | f930 \
2582 | f934 | hypersparc | sparclite86x | sparclet | tsc701 \
2583 | v9 | ultrasparc | ultrasparc3)
7816bea0
DJ
2584 # OK
2585 ;;
2586 *)
2587 echo "Unknown cpu used in --with-$which=$val" 1>&2
2588 exit 1
2589 ;;
2590 esac
2591 done
73f09c99 2592
16aa42c0
NN
2593 case ${with_float} in
2594 "" | soft | hard)
83079d89
DJ
2595 # OK
2596 ;;
2597 *)
7816bea0 2598 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
83079d89
DJ
2599 exit 1
2600 ;;
2601 esac
73f09c99 2602 ;;
73f09c99 2603
83079d89 2604 v850*-*-*)
7816bea0 2605 supported_defaults=cpu
16aa42c0
NN
2606 case ${with_cpu} in
2607 "" | v850e | v850e1)
83079d89
DJ
2608 # OK
2609 ;;
2610 *)
2611 echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
2612 exit 1
2613 ;;
2614 esac
73f09c99
DJ
2615 ;;
2616 esac
73f09c99 2617
7816bea0 2618 # Set some miscellaneous flags for particular targets.
83079d89 2619 target_cpu_default2=
b01bc573 2620 case ${target} in
83079d89 2621 alpha*-*-*)
83079d89
DJ
2622 if test x$gas = xyes
2623 then
7816bea0 2624 target_cpu_default2="MASK_GAS"
83079d89 2625 fi
73f09c99 2626 ;;
73f09c99 2627
83079d89
DJ
2628 arm*-*-*)
2629 case "x$with_cpu" in
2630 x)
2631 # The most generic
2632 target_cpu_default2="TARGET_CPU_generic"
61ed06c3 2633 ;;
83079d89
DJ
2634
2635 *)
2636 target_cpu_default2="TARGET_CPU_$with_cpu"
61ed06c3 2637 ;;
83079d89
DJ
2638 esac
2639 ;;
0e5a4ad8 2640
83079d89
DJ
2641 hppa*-*-* | parisc*-*-*)
2642 if test x$gas = xyes
61ed06c3 2643 then
83079d89
DJ
2644 target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
2645 fi
73f09c99 2646 ;;
73f09c99 2647
83079d89 2648 mips*-*-*)
b01bc573 2649 case ${target} in
83079d89
DJ
2650 mips*-*-ecoff* | mips*-*-elf*)
2651 if test x$gas = xyes
2652 then
2653 if test x$gnu_ld = xyes
2654 then
2655 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
2656 else
2657 target_cpu_default2="MASK_GAS"
2658 fi
2659 fi
2660 ;;
2661 mips*-*-*)
2662 if test x$gas = xyes
74826b0f 2663 then
74826b0f
EC
2664 target_cpu_default2="MASK_GAS"
2665 fi
83079d89
DJ
2666 ;;
2667 esac
b01bc573 2668 case ${target} in
83079d89
DJ
2669 mips*el-*-*)
2670 tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
2671 ;;
2672 esac
2673 case $tm_file in
2674 *mips/elf.h* | *mips/elf64.h*)
2675 tm_defines="OBJECT_FORMAT_ELF $tm_defines"
2676 ;;
2677 esac
2678 if test "x$enable_gofast" = xyes
2679 then
c15c90bb 2680 tm_defines="US_SOFTWARE_GOFAST $tm_defines"
83079d89
DJ
2681 tmake_file="mips/t-gofast $tmake_file"
2682 else
2683 tmake_file="mips/t-mips $tmake_file"
74826b0f
EC
2684 fi
2685 ;;
83079d89
DJ
2686
2687 powerpc*-*-* | rs6000-*-*)
7816bea0
DJ
2688 if test x$enable_altivec = xyes
2689 then
2690 tm_file="$tm_file rs6000/altivec-defs.h"
2691 fi
2692 # FIXME: The PowerPC port uses the value set at compile time,
2693 # although it's only cosmetic.
83079d89 2694 if test "x$with_cpu" != x
61ed06c3 2695 then
83079d89 2696 target_cpu_default2="\\\"$with_cpu\\\""
61ed06c3 2697 fi
83079d89
DJ
2698 out_file=rs6000/rs6000.c
2699 c_target_objs="${c_target_objs} rs6000-c.o"
2700 cxx_target_objs="${cxx_target_objs} rs6000-c.o"
2701 tmake_file="rs6000/t-rs6000 ${tmake_file}"
74826b0f 2702 ;;
73f09c99 2703
83079d89 2704 sparc*-*-*)
7816bea0
DJ
2705 # Some standard aliases.
2706 case x$with_cpu in
2707 xsparc)
2708 with_cpu=v7
2709 ;;
2710 xsparc86x)
2711 with_cpu=sparclite86x
2712 ;;
2713 xsparcv9 | xsparc64)
2714 with_cpu=v9
2715 ;;
2716 esac
2717
2718 # The Sparc port checks this value at compile-time.
73f09c99
DJ
2719 target_cpu_default2="TARGET_CPU_$with_cpu"
2720 ;;
83079d89 2721 v850*-*-*)
7816bea0
DJ
2722 # FIXME: The v850 is "special" in that it does not support
2723 # runtime CPU selection, only --with-cpu.
83079d89
DJ
2724 case "x$with_cpu" in
2725 x)
2726 ;;
2727 xv850e)
2728 target_cpu_default2="TARGET_CPU_$with_cpu"
2729 ;;
2730 esac
2731 ;;
61ed06c3 2732 esac
61ed06c3 2733
7816bea0 2734 t=
f13e0d4e 2735 all_defaults="abi cpu arch tune schedule float mode"
7816bea0
DJ
2736 for option in $all_defaults
2737 do
2738 eval "val=\$with_$option"
2739 if test -n "$val"; then
2740 case " $supported_defaults " in
2741 *" $option "*)
2742 ;;
2743 *)
2744 echo "This target does not support --with-$option." 2>&1
2745 exit 1
2746 ;;
2747 esac
2748
2749 if test "x$t" = x
2750 then
2751 t="{ \"$option\", \"$val\" }"
2752 else
2753 t="${t}, { \"$option\", \"$val\" }"
2754 fi
2755 fi
2756 done
2757 if test "x$t" = x
2758 then
2759 configure_default_options="{ { NULL, NULL} }"
2760 else
2761 configure_default_options="{ ${t} }"
2762 fi
2763
83079d89 2764 if test "$target_cpu_default2" != ""
61ed06c3 2765 then
83079d89
DJ
2766 if test "$target_cpu_default" != ""
2767 then
2768 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2769 else
2770 target_cpu_default=$target_cpu_default2
2771 fi
61ed06c3 2772 fi
This page took 1.185742 seconds and 5 git commands to generate.