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