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