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