]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config.gcc
* common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
[thirdparty/gcc.git] / gcc / config.gcc
CommitLineData
973f8bf3 1# GCC target-specific configuration file.
99c77e32 2# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
e2fb821c 3# 2008, 2009, 2010 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
8c4c00c1 9#Software Foundation; either version 3, or (at your option) any later
f12b58b3 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
8c4c00c1 18#along with GCC; see the file COPYING3. If not see
19#<http://www.gnu.org/licenses/>.
bb607926 20
973f8bf3 21# This is the GCC target-specific configuration file
22# where a configuration type is mapped to different system-specific
23# definitions and files. This is invoked by the autoconf-generated
24# configure script. Putting it in a separate shell file lets us skip
25# running autoconf when modifying target-specific information.
bb607926 26
894a47b4 27# When you change the cases in the OS or target switches, consider
28# updating ../libgcc/config.host also.
29
09c6646e 30# This file switches on the shell variable ${target}, and also uses the
bb607926 31# following shell variables:
32#
33# with_* Various variables as set by configure.
34#
334c8279 35# enable_threads Either the name, yes or no depending on whether
bb607926 36# threads support was requested.
37#
bc5ae993 38# default_use_cxa_atexit
430e8f92 39# The default value for the $enable___cxa_atexit
40# variable. enable___cxa_atexit needs to be set to
41# "yes" for the correct operation of C++ destructors
42# but it relies upon the presence of a non-standard C
43# library function called __cxa_atexit.
44# Since not all C libraries provide __cxa_atexit the
45# default value of $default_use_cxa_atexit is set to
46# "no" except for targets which are known to be OK.
bc5ae993 47#
1c6e0788 48# default_gnu_indirect_function
49# The default value for the $enable_gnu_indirect_function
50# variable. enable_gnu_indirect_function relies
51# upon the presence of a non-standard gnu ifunc support
52# in the assembler, linker and dynamic linker.
53# Since not all libraries provide the dynamic linking
54# support, the default value of
55# $default_gnu_indirect_function is set to
56# "no" except for targets which are known to be OK.
57#
bb607926 58# gas_flag Either yes or no depending on whether GNU as was
59# requested.
60#
61# gnu_ld_flag Either yes or no depending on whether GNU ld was
62# requested.
63
64# This file sets the following shell variables for use by the
65# autoconf-generated configure script:
66#
09c6646e 67# cpu_type The name of the cpu, if different from the first
68# chunk of the canonical target name.
bb607926 69#
8d4f8d46 70# tm_defines List of target macros to define for all compilations.
71#
bb607926 72# tm_file A list of target macro files, if different from
277773bd 73# "$cpu_type/$cpu_type.h". Usually it's constructed
74# per target in a way like this:
7a6d1a72 75# tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h"
277773bd 76# Note that the preferred order is:
77# - specific target header "${cpu_type}/${cpu_type.h}"
04d9b51b 78# - generic headers like dbxelf.h elfos.h, etc.
277773bd 79# - specializing target headers like ${cpu_type.h}/elf.h
80# This helps to keep OS specific stuff out of the CPU
81# defining header ${cpu_type}/${cpu_type.h}.
bb607926 82#
b4b98cc1 83# It is possible to include automatically-generated
84# build-directory files by prefixing them with "./".
85# All other files should relative to $srcdir/config.
86#
bb607926 87# tm_p_file Location of file with declarations for functions
88# in $out_file.
89#
90# out_file The name of the machine description C support
91# file, if different from "$cpu_type/$cpu_type.c".
92#
93# md_file The name of the machine-description file, if
94# different from "$cpu_type/$cpu_type.md".
95#
96# tmake_file A list of machine-description-specific
97# makefile-fragments, if different from
98# "$cpu_type/t-$cpu_type".
99#
b5ccaa7b 100# extra_modes The name of the file containing a list of extra
101# machine modes, if necessary and different from
102# "$cpu_type/$cpu_type-modes.def".
103#
bb607926 104# extra_objs List of extra objects that should be linked into
105# the compiler proper (cc1, cc1obj, cc1plus)
106# depending on target.
107#
69eb04f7 108# extra_gcc_objs List of extra objects that should be linked into
109# the compiler driver (gcc) depending on target.
110#
bb607926 111# extra_headers List of used header files from the directory
b965afcd 112# config/${cpu_type}.
bb607926 113#
ac0366be 114# user_headers_inc_next_pre
115# List of header file names of internal gcc header
116# files, which should be prefixed by an include_next.
117# user_headers_inc_next_post
118# List of header file names of internal gcc header
119# files, which should be postfixed by an include_next.
50388ca3 120# use_gcc_tgmath If set, add tgmath.h to the list of used header
121# files.
122#
f3449a3c 123# use_gcc_stdint If "wrap", install a version of stdint.h that
124# wraps the system's copy for hosted compilations;
125# if "provide", provide a version of systems without
126# such a system header; otherwise "none", do not
127# provide such a header at all.
128#
bb607926 129# extra_passes List of extra executables compiled for this target
130# machine, used for compiling from source to object.
131#
132# extra_parts List of extra object files that should be compiled
133# for this target machine.
134#
135# extra_programs Like extra_passes, but these are used when linking.
136#
ff05e09e 137# extra_options List of target-dependent .opt files.
138#
424da949 139# c_target_objs List of extra target-dependent objects that be
8daa9e98 140# linked into the C compiler only.
582b17a6 141#
424da949 142# cxx_target_objs List of extra target-dependent objects that be
8daa9e98 143# linked into the C++ compiler only.
582b17a6 144#
32006f36 145# fortran_target_objs List of extra target-dependent objects that be
146# linked into the fortran compiler only.
147#
eb1bd38b 148# target_gtfiles List of extra source files with type information.
149#
bb607926 150# xm_defines List of macros to define when compiling for the
151# target machine.
152#
153# xm_file List of files to include when compiling for the
154# target machine.
155#
156# use_collect2 Set to yes or no, depending on whether collect2
157# will be used.
158#
159# target_cpu_default Set to override the default target model.
160#
bb607926 161# gdb_needs_out_file_path
162# Set to yes if gdb needs a dir command with
163# `dirname $out_file`.
164#
bb607926 165# thread_file Set to control which thread package to use.
166#
167# gas Set to yes or no depending on whether the target
168# system normally uses GNU as.
805e22b2 169#
170# need_64bit_hwint Set to yes if HOST_WIDE_INT must be 64 bits wide
f824d860 171# for this target. This is true if this target
172# supports "long" or "wchar_t" wider than 32 bits,
173# or BITS_PER_WORD is wider than 32 bits.
bbb5db40 174# The setting made here must match the one made in
175# other locations such as libcpp/configure.ac
7dd97ab6 176#
177# configure_default_options
178# Set to an initializer for configure_default_options
179# in configargs.h, based on --with-cpu et cetera.
bb607926 180
181# The following variables are used in each case-construct to build up the
182# outgoing variables:
183#
bb607926 184# gnu_ld Set to yes or no depending on whether the target
185# system normally uses GNU ld.
186
187out_file=
bb607926 188tmake_file=
189extra_headers=
ac0366be 190user_headers_inc_next_pre=
191user_headers_inc_next_post=
50388ca3 192use_gcc_tgmath=yes
f3449a3c 193use_gcc_stdint=none
bb607926 194extra_passes=
195extra_parts=
196extra_programs=
197extra_objs=
bb607926 198extra_gcc_objs=
ff05e09e 199extra_options=
8daa9e98 200c_target_objs=
201cxx_target_objs=
32006f36 202fortran_target_objs=
8d4f8d46 203tm_defines=
bb607926 204xm_defines=
bb607926 205# Set this to force installation and use of collect2.
206use_collect2=
207# Set this to override the default target model.
208target_cpu_default=
bb607926 209# Set this if gdb needs a dir command with `dirname $out_file`
210gdb_needs_out_file_path=
bb607926 211# Set this to control which thread package will be used.
212thread_file=
213# Reinitialize these from the flag values every loop pass, since some
214# configure entries modify them.
215gas="$gas_flag"
216gnu_ld="$gnu_ld_flag"
bc5ae993 217default_use_cxa_atexit=no
1c6e0788 218default_gnu_indirect_function=no
22ac052b 219target_gtfiles=
805e22b2 220need_64bit_hwint=
ed2b8f56 221need_64bit_isa=
4d992eb6 222# Selects the object file format reader/writer used by LTO.
223lto_binary_reader=lto-elf
bb607926 224
b696fe80 225# Don't carry these over build->host->target. Please.
226xm_file=
227md_file=
228
c2527f80 229# Obsolete configurations.
be52f086 230#case ${target} in
231# )
232# if test "x$enable_obsolete" != xyes; then
233# echo "*** Configuration ${target} is obsolete." >&2
234# echo "*** Specify --enable-obsolete to build it anyway." >&2
235# echo "*** Support will be REMOVED in the next major release of GCC," >&2
236# echo "*** unless a maintainer comes forward." >&2
237# exit 1
238# fi;;
239#esac
c2527f80 240
ece7f381 241# Unsupported targets list. Do not put an entry in this list unless
242# it would otherwise be caught by a more permissive pattern. The list
243# should be in alphabetical order.
09c6646e 244case ${target} in
6af9f7ea 245 i[34567]86-go32-* \
ece7f381 246 | i[34567]86-*-go32* \
ece7f381 247 | mips64orion*-*-rtems* \
f2397fc4 248 | pdp11-*-bsd \
ece7f381 249 | sparc-hal-solaris2* \
250 | thumb-*-* \
6af9f7ea 251 | *-*-linux*aout* \
ece7f381 252 | *-*-linux*coff* \
6af9f7ea 253 | *-*-linux*libc1* \
ece7f381 254 | *-*-linux*oldld* \
255 | *-*-rtemsaout* \
256 | *-*-rtemscoff* \
efad0fb7 257 | *-*-solaris2.[0-7] \
258 | *-*-solaris2.[0-7].* \
6af9f7ea 259 | *-*-sysv* \
3598ba3d 260 | vax-*-vms* \
ece7f381 261 )
09c6646e 262 echo "*** Configuration ${target} not supported" 1>&2
ece7f381 263 exit 1
264 ;;
265esac
266
bb607926 267# Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
83287f80 268# updated in each machine entry. Also set default extra_headers for some
269# machines.
bb607926 270tm_p_file=
09c6646e 271cpu_type=`echo ${target} | sed 's/-.*$//'`
cc5ffbb8 272cpu_is_64bit=
09c6646e 273case ${target} in
85c84d5c 274m32c*-*-*)
275 cpu_type=m32c
276 tmake_file=m32c/t-m32c
277 ;;
bb607926 278alpha*-*-*)
279 cpu_type=alpha
805e22b2 280 need_64bit_hwint=yes
d1e5a65f 281 extra_options="${extra_options} g.opt"
bb607926 282 ;;
1acdfc69 283am33_2.0-*-linux*)
284 cpu_type=mn10300
285 ;;
6e421549 286arm*-*-*)
287 cpu_type=arm
d98a3884 288 extra_headers="mmintrin.h arm_neon.h"
baa1a726 289 c_target_objs="arm-c.o"
290 cxx_target_objs="arm-c.o"
6e421549 291 ;;
33169f97 292avr-*-*)
293 cpu_type=avr
294 c_target_objs="avr-c.o"
295 cxx_target_objs="avr-c.o"
296 ;;
9e6a0967 297bfin*-*)
298 cpu_type=bfin
299 ;;
9b9e3455 300crisv32-*)
301 cpu_type=cris
302 ;;
de6e318c 303frv*) cpu_type=frv
d1e5a65f 304 extra_options="${extra_options} g.opt"
de6e318c 305 ;;
be52b6d8 306moxie*) cpu_type=moxie
307 ;;
278e2fd1 308fido-*-*)
309 cpu_type=m68k
310 extra_headers=math-68881.h
311 ;;
bb607926 312i[34567]86-*-*)
313 cpu_type=i386
46f8e3b0 314 c_target_objs="i386-c.o"
315 cxx_target_objs="i386-c.o"
daf03e2f 316 extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h
f25d51c3 317 pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h
2f212aae 318 nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h
18525343 319 immintrin.h x86intrin.h avxintrin.h xopintrin.h
87c62cba 320 ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h
321 abmintrin.h"
bb607926 322 ;;
5c66405b 323x86_64-*-*)
324 cpu_type=i386
46f8e3b0 325 c_target_objs="i386-c.o"
326 cxx_target_objs="i386-c.o"
daf03e2f 327 extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h
f25d51c3 328 pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h
2f212aae 329 nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h
18525343 330 immintrin.h x86intrin.h avxintrin.h xopintrin.h
87c62cba 331 ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h
332 abmintrin.h"
805e22b2 333 need_64bit_hwint=yes
5c66405b 334 ;;
b965afcd 335ia64-*-*)
336 extra_headers=ia64intrin.h
805e22b2 337 need_64bit_hwint=yes
d1e5a65f 338 extra_options="${extra_options} g.opt"
b965afcd 339 ;;
6af9f7ea 340hppa*-*-*)
bb607926 341 cpu_type=pa
342 ;;
d1e5a65f 343lm32*)
344 extra_options="${extra_options} g.opt"
345 ;;
467dc9aa 346m32r*-*-*)
347 cpu_type=m32r
d1e5a65f 348 extra_options="${extra_options} g.opt"
467dc9aa 349 ;;
83287f80 350m68k-*-*)
351 extra_headers=math-68881.h
bb607926 352 ;;
d34b0d1e 353microblaze*-*-*)
354 cpu_type=microblaze
355 extra_options="${extra_options} g.opt"
356 ;;
bb607926 357mips*-*-*)
358 cpu_type=mips
805e22b2 359 need_64bit_hwint=yes
9636921b 360 extra_headers="loongson.h"
d1e5a65f 361 extra_options="${extra_options} g.opt"
bb607926 362 ;;
8372e9ea 363picochip-*-*)
364 cpu_type=picochip
365 ;;
bb607926 366powerpc*-*-*)
367 cpu_type=rs6000
c22e07a3 368 extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h"
805e22b2 369 need_64bit_hwint=yes
cc5ffbb8 370 case x$with_cpu in
20d6e0e0 371 xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[34567]|xpower6x|xrs64a|xcell|xa2|xe500mc64)
cc5ffbb8 372 cpu_is_64bit=yes
373 ;;
374 esac
d1e5a65f 375 extra_options="${extra_options} g.opt"
805e22b2 376 ;;
377rs6000*-*-*)
378 need_64bit_hwint=yes
d1e5a65f 379 extra_options="${extra_options} g.opt"
805e22b2 380 ;;
3dbfe3e4 381score*-*-*)
382 cpu_type=score
d1e5a65f 383 extra_options="${extra_options} g.opt"
3dbfe3e4 384 ;;
bb607926 385sparc*-*-*)
386 cpu_type=sparc
1168681b 387 need_64bit_hwint=yes
bb607926 388 ;;
644459d0 389spu*-*-*)
390 cpu_type=spu
391 need_64bit_hwint=yes
392 ;;
805e22b2 393s390*-*-*)
37d32fbf 394 cpu_type=s390
805e22b2 395 need_64bit_hwint=yes
396 ;;
4ee34c70 397# Note the 'l'; we need to be able to match e.g. "shle" or "shl".
fc7383ad 398sh[123456789lbe]*-*-* | sh-*-*)
87e19636 399 cpu_type=sh
805e22b2 400 need_64bit_hwint=yes
87e19636 401 ;;
bb607926 402esac
403
404tm_file=${cpu_type}/${cpu_type}.h
20ffb0b1 405if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
bb607926 406then
20ffb0b1 407 tm_p_file=${cpu_type}/${cpu_type}-protos.h
408fi
b5ccaa7b 409extra_modes=
410if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
411then
412 extra_modes=${cpu_type}/${cpu_type}-modes.def
413fi
ff05e09e 414if test -f ${srcdir}/config/${cpu_type}/${cpu_type}.opt
415then
416 extra_options="${extra_options} ${cpu_type}/${cpu_type}.opt"
417fi
a8456aba 418
09c6646e 419case ${target} in
144c3e90 420i[34567]86-*-*)
43da04c5 421 if test "x$enable_cld" = xyes; then
144c3e90 422 tm_defines="${tm_defines} USE_IX86_CLD=1"
423 fi
fc00a76a 424 if test "x$enable_frame_pointer" = xyes; then
425 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
426 fi
912f2b18 427 tm_file="vxworks-dummy.h ${tm_file}"
144c3e90 428 ;;
a8456aba 429x86_64-*-*)
430 tm_file="i386/biarch64.h ${tm_file}"
43da04c5 431 if test "x$enable_cld" = xyes; then
144c3e90 432 tm_defines="${tm_defines} USE_IX86_CLD=1"
433 fi
fc00a76a 434 if test "x$enable_frame_pointer" = xyes; then
435 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
436 fi
912f2b18 437 tm_file="vxworks-dummy.h ${tm_file}"
a8456aba 438 ;;
439esac
440
bb607926 441# On a.out targets, we need to use collect2.
09c6646e 442case ${target} in
bb607926 443*-*-*aout*)
444 use_collect2=yes
445 ;;
582b17a6 446esac
bb607926 447
3d0ed9e7 448# Common C libraries.
449tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3"
450
805e22b2 451# Common parts for widely ported systems.
09c6646e 452case ${target} in
1025d5b9 453*-*-darwin*)
e2e89254 454 tmake_file="t-darwin ${cpu_type}/t-darwin"
650c26dc 455 tm_file="${tm_file} darwin.h"
456 case ${target} in
9166f36a 457 *-*-darwin9*)
650c26dc 458 tm_file="${tm_file} darwin9.h"
459 ;;
9166f36a 460 *-*-darwin[12][0-9]*)
461 tm_file="${tm_file} darwin9.h darwin10.h"
462 ;;
650c26dc 463 esac
464 tm_file="${tm_file} ${cpu_type}/darwin.h"
1025d5b9 465 tm_p_file="${tm_p_file} darwin-protos.h"
1025d5b9 466 target_gtfiles="\$(srcdir)/config/darwin.c"
0c44645a 467 extra_options="${extra_options} darwin.opt"
46f8e3b0 468 c_target_objs="${c_target_objs} darwin-c.o"
469 cxx_target_objs="${cxx_target_objs} darwin-c.o"
32006f36 470 fortran_target_objs="darwin-f.o"
1025d5b9 471 extra_objs="darwin.o"
a9540fb6 472 extra_gcc_objs="darwin-driver.o"
3da996b9 473 default_use_cxa_atexit=yes
ef87fe4c 474 use_gcc_stdint=wrap
1025d5b9 475 case ${enable_threads} in
476 "" | yes | posix) thread_file='posix' ;;
477 esac
478 ;;
479*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
480 # This is the place-holder for the generic a.out configuration
481 # of FreeBSD. No actual configuration resides here since
482 # there was only ever a bare-bones ix86 configuration for
483 # a.out and it exists solely in the machine-specific section.
484 # This place-holder must exist to avoid dropping into
485 # the generic ELF configuration of FreeBSD (i.e. it must be
486 # ordered before that section).
487 ;;
488*-*-freebsd*)
489 # This is the generic ELF configuration of FreeBSD. Later
490 # machine-specific sections may refine and add to this
491 # configuration.
492 #
493 # Due to tm_file entry ordering issues that vary between cpu
494 # architectures, we only define fbsd_tm_file to allow the
495 # machine-specific section to dictate the final order of all
496 # entries of tm_file with the minor exception that components
497 # of the tm_file set here will always be of the form:
498 #
499 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
500 #
501 # The machine-specific section should not tamper with this
502 # ordering but may order all other entries of tm_file as it
503 # pleases around the provided core setting.
504 gas=yes
505 gnu_ld=yes
506 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
cfb5f9aa 507 fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\..*//g'`
508 tm_defines="${tm_defines} FBSD_MAJOR=${fbsd_major}"
1025d5b9 509 tmake_file="t-slibgcc-elf-ver t-freebsd"
510 case ${enable_threads} in
511 no)
512 fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h"
513 ;;
5614d3f5 514 "" | yes | posix)
1025d5b9 515 thread_file='posix'
516 tmake_file="${tmake_file} t-freebsd-thread"
517 # Before 5.0, FreeBSD can't bind shared libraries to -lc
518 # when "optionally" threaded via weak pthread_* checks.
519 case ${target} in
520 *-*-freebsd[34] | *-*-freebsd[34].*)
521 tmake_file="${tmake_file} t-slibgcc-nolc-override"
522 ;;
523 esac
524 ;;
3ebc7dec 525 *)
1025d5b9 526 echo 'Unknown thread configuration for FreeBSD'
527 exit 1
528 ;;
529 esac
c4c8f6ce 530 fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h freebsd-stdint.h"
d52a86c7 531 case ${target} in
532 *-*-freebsd[345].*)
533 :;;
534 *)
535 default_use_cxa_atexit=yes;;
536 esac
537 # need_64bit_hwint=yes # system compiler has this for all arch!
c4c8f6ce 538 use_gcc_stdint=wrap
1025d5b9 539 ;;
3bef4012 540*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
338f7557 541 extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
542 gas=yes
543 gnu_ld=yes
544 case ${enable_threads} in
545 "" | yes | posix) thread_file='posix' ;;
546 esac
1afa774a 547 tmake_file="t-slibgcc-elf-ver t-linux"
72a65e81 548 case $target in
3bef4012 549 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-kopensolaris*-gnu)
72a65e81 550 :;;
551 *-*-gnu*)
552 tmake_file="$tmake_file t-gnu";;
553 esac
66fd9df9 554 # glibc / uclibc / bionic switch.
555 # uclibc and bionic aren't usable for GNU/Hurd and neither for GNU/k*BSD.
72a65e81 556 case $target in
557 *linux*)
558 extra_options="$extra_options linux.opt";;
559 *)
560 tm_defines="$tm_defines OPTION_GLIBC=1";;
561 esac
66fd9df9 562 case $target in
563 *-*-*android*)
564 tm_defines="$tm_defines DEFAULT_LIBC=LIBC_BIONIC"
565 ;;
ee085235 566 *-*-*uclibc*)
66fd9df9 567 tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC"
c490c13b 568 ;;
569 *)
66fd9df9 570 tm_defines="$tm_defines DEFAULT_LIBC=LIBC_GLIBC"
ee085235 571 ;;
572 esac
66fd9df9 573 # Assume that glibc or uClibc or Bionic are being used and so __cxa_atexit
574 # is provided.
430e8f92 575 default_use_cxa_atexit=yes
50388ca3 576 use_gcc_tgmath=no
f3449a3c 577 use_gcc_stdint=wrap
f1b7ead9 578 # Add Android userspace support to Linux targets.
579 case $target in
580 *linux*)
581 tm_file="$tm_file linux-android.h"
582 extra_options="$extra_options linux-android.opt"
583 ;;
584 esac
585 # Enable compilation for Android by default for *android* targets.
586 case $target in
587 *-*-*android*)
588 tm_defines="$tm_defines ANDROID_DEFAULT=1"
589 ;;
590 *)
591 tm_defines="$tm_defines ANDROID_DEFAULT=0"
592 ;;
593 esac
338f7557 594 ;;
4ace673e 595*-*-netbsd*)
338f7557 596 tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd t-libgcc-pic"
597 gas=yes
598 gnu_ld=yes
b7ac288f 599
338f7557 600 # NetBSD 2.0 and later get POSIX threads enabled by default.
601 # Allow them to be explicitly enabled on any other version.
602 case ${enable_threads} in
603 "")
604 case ${target} in
605 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
606 thread_file='posix'
607 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
608 ;;
609 esac
610 ;;
611 yes | posix)
612 thread_file='posix'
613 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
614 ;;
615 esac
9a33b00e 616
338f7557 617 # NetBSD 1.7 and later are set up to use GCC's crtstuff for
618 # ELF configurations. We will clear extra_parts in the
619 # a.out configurations.
620 case ${target} in
621 *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
622 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
623 ;;
624 esac
bc5ae993 625
338f7557 626 # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
627 # default (unless overridden by --disable-__cxa_atexit).
628 case ${target} in
629 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
630 default_use_cxa_atexit=yes
631 ;;
632 esac
633 ;;
1025d5b9 634*-*-openbsd*)
635 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
338f7557 636 case ${enable_threads} in
1025d5b9 637 yes)
338f7557 638 thread_file='posix'
1025d5b9 639 tmake_file="${tmake_file} t-openbsd-thread"
338f7557 640 ;;
641 esac
d3ad7bb1 642 case ${target} in
643 *-*-openbsd2.*|*-*-openbsd3.[012])
644 tm_defines="${tm_defines} HAS_LIBC_R=1" ;;
645 esac
338f7557 646 ;;
2fcfea2a 647*-*-rtems*)
648 case ${enable_threads} in
649 yes) thread_file='rtems' ;;
650 esac
f3449a3c 651 use_gcc_stdint=wrap
652 ;;
653*-*-uclinux*)
654 use_gcc_stdint=wrap
2fcfea2a 655 ;;
0c7243ae 656*-*-solaris2*)
657 extra_options="${extra_options} sol2.opt"
658 ;;
805e22b2 659*-*-vxworks*)
338f7557 660 tmake_file=t-vxworks
e6eccdb3 661 xm_defines=POSIX
662 extra_options="${extra_options} vxworks.opt"
6c181a06 663 extra_objs=vxworks.o
d9799238 664 case ${enable_threads} in
665 no) ;;
666 "" | yes | vxworks) thread_file='vxworks' ;;
667 *) echo 'Unknown thread configuration for VxWorks'; exit 1 ;;
668 esac
338f7557 669 ;;
430e8f92 670*-*-elf)
671 # Assume that newlib is being used and so __cxa_atexit is provided.
672 default_use_cxa_atexit=yes
f3449a3c 673 use_gcc_stdint=wrap
430e8f92 674 ;;
bb607926 675esac
676
09c6646e 677case ${target} in
bb607926 678# Support site-specific machine types.
679*local*)
09c6646e 680 rest=`echo ${target} | sed -e "s/$cpu_type-//"`
bb607926 681 tm_file=${cpu_type}/$rest.h
e1688c3e 682 if test -f $srcdir/config/${cpu_type}/xm-$rest.h
683 then xm_file=${cpu_type}/xm-$rest.h
bb607926 684 fi
e1688c3e 685 if test -f $srcdir/config/${cpu_type}/t-$rest
686 then tmake_file=${cpu_type}/t-$rest
bb607926 687 fi
688 ;;
bb607926 689alpha*-*-linux*)
f3449a3c 690 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h glibc-stdint.h"
bb607926 691 target_cpu_default="MASK_GAS"
0d6c33ea 692 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee alpha/t-linux"
bb607926 693 ;;
7698a084 694alpha*-*-gnu*)
f3449a3c 695 tm_file="$tm_file alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h glibc-stdint.h alpha/gnu.h"
7698a084 696 target_cpu_default="MASK_GAS"
697 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
698 ;;
bb607926 699alpha*-*-freebsd*)
1307f5d6 700 tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
bb607926 701 target_cpu_default="MASK_GAS"
e1ff7102 702 tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee"
703 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
bb607926 704 ;;
705alpha*-*-netbsd*)
4ace673e 706 tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
bb607926 707 target_cpu_default="MASK_GAS"
e1ff7102 708 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
bb607926 709 ;;
bb607926 710alpha*-*-openbsd*)
8e6600a1 711 tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT"
712 tm_file="alpha/alpha.h alpha/elf.h openbsd.h openbsd-stdint.h alpha/openbsd.h openbsd-libpthread.h"
bb607926 713 # default x-alpha is only appropriate for dec-osf.
714 target_cpu_default="MASK_GAS"
8e6600a1 715 tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
bb607926 716 ;;
ed3e1bbc 717alpha*-dec-osf5.1*)
bb607926 718 if test x$stabs = xyes
719 then
720 tm_file="${tm_file} dbx.h"
721 fi
722 if test x$gas != xyes
723 then
724 extra_passes="mips-tfile mips-tdump"
725 fi
726 use_collect2=yes
ed3e1bbc 727 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf5"
728 tm_file="${tm_file} alpha/osf5.h"
729 tm_defines="${tm_defines} TARGET_SUPPORT_ARCH=1"
b965afcd 730 extra_headers=va_list.h
3aba5911 731 use_gcc_stdint=provide
5614d3f5 732 case ${enable_threads} in
733 "" | yes | posix)
ecd34a08 734 thread_file='posix'
735 tmake_file="${tmake_file} alpha/t-osf-pthread"
736 ;;
737 esac
bb607926 738 ;;
56685c17 739alpha64-dec-*vms*)
f75effa0 740 tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
9b9a2528 741 xm_file="alpha/xm-vms.h vms/xm-vms64.h"
ab14e5be 742 tmake_file="alpha/t-alpha vms/t-vms alpha/t-vms alpha/t-ieee"
9b9a2528 743 xmake_file=vms/x-vms
744 exeext=.exe
745 install_headers_dir=install-headers-cp
746 extra_options="${extra_options} vms/vms.opt"
56685c17 747 ;;
73777e7b 748alpha*-dec-*vms*)
f75effa0 749 tm_file="${tm_file} alpha/vms.h"
9b9a2528 750 xm_file="alpha/xm-vms.h"
751 tmake_file="alpha/t-alpha vms/t-vms alpha/t-vms alpha/t-ieee"
752 xmake_file=vms/x-vms
753 exeext=.exe
754 install_headers_dir=install-headers-cp
755 extra_options="${extra_options} vms/vms.opt"
bb607926 756 ;;
01d15dc5 757arc-*-elf*)
f3449a3c 758 tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
01d15dc5 759 extra_parts="crtinit.o crtfini.o"
760 ;;
d9799238 761arm-wrs-vxworks)
ab39d1bf 762 tm_file="elfos.h arm/elf.h arm/aout.h ${tm_file} vx-common.h vxworks.h arm/vxworks.h"
06469f9e 763 tmake_file="${tmake_file} arm/t-arm arm/t-vxworks"
d9799238 764 ;;
6af9f7ea 765arm*-*-freebsd*)
66f02fd0 766 tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h"
06469f9e 767 tmake_file="${tmake_file} arm/t-arm arm/t-strongarm-elf"
66f02fd0 768 ;;
f470dade 769arm*-*-netbsdelf*)
2b6c0e61 770 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 771 tmake_file="${tmake_file} arm/t-arm arm/t-netbsd"
f470dade 772 ;;
bb607926 773arm*-*-netbsd*)
4ace673e 774 tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
06469f9e 775 tmake_file="t-netbsd arm/t-arm arm/t-netbsd"
9a33b00e 776 extra_parts=""
87a1ff8e 777 use_collect2=yes
bb607926 778 ;;
c806acc4 779arm*-*-linux*) # ARM GNU/Linux with ELF
f1b7ead9 780 tm_file="dbxelf.h elfos.h linux.h linux-android.h glibc-stdint.h arm/elf.h arm/linux-gas.h arm/linux-elf.h"
fcc91c04 781 case $target in
782 arm*b-*)
783 tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
784 ;;
785 esac
6783d878 786 tmake_file="${tmake_file} t-linux arm/t-arm"
6783d878 787 case ${target} in
ee085235 788 arm*-*-linux-*eabi)
6783d878 789 tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h"
faf175ae 790 tm_file="$tm_file ../../libgcc/config/arm/bpabi.h"
0bf158c8 791 tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
4e38d150 792 # Define multilib configuration for arm-linux-androideabi.
793 case ${target} in
794 *-androideabi)
795 tmake_file="$tmake_file arm/t-linux-androideabi"
796 ;;
797 esac
3ebc7dec 798 # The BPABI long long divmod functions return a 128-bit value in
6783d878 799 # registers r0-r3. Correctly modeling that requires the use of
800 # TImode.
801 need_64bit_hwint=yes
802 # The EABI requires the use of __cxa_atexit.
803 default_use_cxa_atexit=yes
804 ;;
805 *)
806 tmake_file="$tmake_file arm/t-linux"
807 ;;
808 esac
809 tm_file="$tm_file arm/aout.h arm/arm.h"
b77c60b7 810 tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp"
bb607926 811 ;;
812arm*-*-uclinux*) # ARM ucLinux
f3449a3c 813 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/uclinux-elf.h glibc-stdint.h"
06469f9e 814 tmake_file="arm/t-arm arm/t-arm-elf"
1ad38120 815 case ${target} in
82d31c10 816 arm*-*-uclinux*eabi)
1ad38120 817 tm_file="$tm_file arm/bpabi.h arm/uclinux-eabi.h"
faf175ae 818 tm_file="$tm_file ../../libgcc/config/arm/bpabi.h"
1ad38120 819 tmake_file="$tmake_file arm/t-bpabi"
820 # The BPABI long long divmod functions return a 128-bit value in
821 # registers r0-r3. Correctly modeling that requires the use of
822 # TImode.
823 need_64bit_hwint=yes
824 # The EABI requires the use of __cxa_atexit.
825 default_use_cxa_atexit=yes
826 esac
827 tm_file="$tm_file arm/aout.h arm/arm.h"
b77c60b7 828 tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp"
bb607926 829 ;;
bb607926 830arm*-*-ecos-elf)
f3449a3c 831 tm_file="dbxelf.h elfos.h newlib-stdint.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h"
0b77e279 832 tmake_file="arm/t-arm arm/t-arm-elf"
b77c60b7 833 tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp"
582b17a6 834 ;;
30e9913f 835arm*-*-eabi* | arm*-*-symbianelf* )
3ebc7dec 836 # The BPABI long long divmod functions return a 128-bit value in
30e9913f 837 # registers r0-r3. Correctly modeling that requires the use of
838 # TImode.
839 need_64bit_hwint=yes
a6b58380 840 default_use_cxa_atexit=yes
30e9913f 841 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h"
faf175ae 842 tm_file="$tm_file ../../libgcc/config/arm/bpabi.h"
2219ac9e 843 tmake_file="arm/t-arm arm/t-arm-elf"
30e9913f 844 case ${target} in
35da3667 845 arm*-*-eabi*)
f1b7ead9 846 tm_file="$tm_file newlib-stdint.h"
35da3667 847 tmake_file="${tmake_file} arm/t-bpabi"
f3449a3c 848 use_gcc_stdint=wrap
35da3667 849 ;;
30e9913f 850 arm*-*-symbianelf*)
851 tm_file="${tm_file} arm/symbian.h"
35da3667 852 # We do not include t-bpabi for Symbian OS because the system
853 # provides its own implementation of the BPABI functions.
67de96d2 854 tmake_file="${tmake_file} arm/t-symbian"
30e9913f 855 ;;
856 esac
857 tm_file="${tm_file} arm/aout.h arm/arm.h"
b77c60b7 858 tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp"
ccf155b5 859 ;;
214507b9 860arm*-*-rtems*)
f3449a3c 861 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 newlib-stdint.h"
c6dce142 862 tmake_file="arm/t-arm arm/t-arm-elf t-rtems arm/t-rtems"
b77c60b7 863 tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp"
214507b9 864 ;;
6af9f7ea 865arm*-*-elf)
f3449a3c 866 tm_file="dbxelf.h elfos.h newlib-stdint.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
06469f9e 867 tmake_file="arm/t-arm arm/t-arm-elf"
b77c60b7 868 tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp"
bb607926 869 ;;
ebde2335 870arm*-wince-pe*)
0ac7fc08 871 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h arm/wince-pe.h"
06469f9e 872 tmake_file="arm/t-arm arm/t-wince-pe"
81f6de2f 873 extra_options="${extra_options} arm/pe.opt"
ebde2335 874 extra_objs="pe.o"
875 ;;
bb607926 876arm-*-pe*)
f3449a3c 877 tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h newlib-stdint.h"
06469f9e 878 tmake_file="arm/t-arm arm/t-pe"
f3449a3c 879 use_gcc_stdint=wrap
81f6de2f 880 extra_options="${extra_options} arm/pe.opt"
bb607926 881 extra_objs="pe.o"
882 ;;
1598c1ed 883avr-*-rtems*)
f3449a3c 884 tm_file="avr/avr.h dbxelf.h avr/rtems.h rtems.h newlib-stdint.h"
b056efbc 885 tmake_file="avr/t-avr t-rtems avr/t-rtems"
795cff42 886 extra_gcc_objs="driver-avr.o avr-devices.o"
887 extra_objs="avr-devices.o"
1598c1ed 888 ;;
bb607926 889avr-*-*)
f3449a3c 890 tm_file="avr/avr.h dbxelf.h newlib-stdint.h"
891 use_gcc_stdint=wrap
795cff42 892 extra_gcc_objs="driver-avr.o avr-devices.o"
893 extra_objs="avr-devices.o"
bb607926 894 ;;
9e6a0967 895bfin*-elf*)
f3449a3c 896 tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h"
e0cbe6c1 897 tmake_file=bfin/t-bfin-elf
898 use_collect2=no
899 ;;
43be3be8 900bfin*-uclinux*)
f3449a3c 901 tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h linux.h glibc-stdint.h bfin/uclinux.h"
e0cbe6c1 902 tmake_file=bfin/t-bfin-uclinux
66fd9df9 903 tm_defines="${tm_defines} DEFAULT_LIBC=LIBC_UCLIBC"
f9612ead 904 extra_options="${extra_options} linux.opt"
e0cbe6c1 905 use_collect2=no
906 ;;
bce94ab5 907bfin*-linux-uclibc*)
f3449a3c 908 tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h linux.h glibc-stdint.h bfin/linux.h ./linux-sysroot-suffix.h"
e0cbe6c1 909 tmake_file="t-slibgcc-elf-ver bfin/t-bfin-linux"
910 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
911 use_collect2=no
912 ;;
4a7fad64 913bfin*-rtems*)
b4cebe6e 914 tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/rtems.h rtems.h newlib-stdint.h"
4a7fad64 915 tmake_file="bfin/t-bfin t-rtems bfin/t-rtems"
e0cbe6c1 916 ;;
9e6a0967 917bfin*-*)
f3449a3c 918 tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h"
e0cbe6c1 919 tmake_file=bfin/t-bfin
920 use_collect2=no
f3449a3c 921 use_gcc_stdint=wrap
e0cbe6c1 922 ;;
9b9e3455 923crisv32-*-elf | crisv32-*-none)
f3449a3c 924 tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
9b9e3455 925 tmake_file="cris/t-cris"
926 target_cpu_default=32
927 gas=yes
928 extra_options="${extra_options} cris/elf.opt"
f3449a3c 929 use_gcc_stdint=wrap
9b9e3455 930 ;;
e03f789f 931cris-*-elf | cris-*-none)
f3449a3c 932 tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
e03f789f 933 tmake_file="cris/t-cris cris/t-elfmulti"
934 gas=yes
c419af1d 935 extra_options="${extra_options} cris/elf.opt"
f3449a3c 936 use_gcc_stdint=wrap
e03f789f 937 ;;
9b9e3455 938crisv32-*-linux* | cris-*-linux*)
f3449a3c 939 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h glibc-stdint.h cris/linux.h"
1afa774a 940 # We need to avoid using t-linux, so override default tmake_file
436d6f0d 941 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
c419af1d 942 extra_options="${extra_options} cris/linux.opt"
9b9e3455 943 case $target in
944 cris-*-*)
945 target_cpu_default=10
946 ;;
947 crisv32-*-*)
948 target_cpu_default=32
949 ;;
950 esac
e03f789f 951 ;;
5b7178c8 952crx-*-elf)
f3449a3c 953 tm_file="elfos.h newlib-stdint.h ${tm_file}"
5b7178c8 954 extra_parts="crtbegin.o crtend.o"
955 use_collect2=no
956 ;;
bb607926 957fr30-*-elf)
f3449a3c 958 tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
bb607926 959 tmake_file=fr30/t-fr30
960 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
961 ;;
efb6037d 962frv-*-elf)
faf175ae 963 tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
964 tm_file="${tm_file} ../../libgcc/config/frv/frv-abi.h"
efb6037d 965 tmake_file=frv/t-frv
966 ;;
3e7f6cce 967frv-*-*linux*)
968 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} \
faf175ae 969 linux.h glibc-stdint.h frv/linux.h"
970 tm_file="${tm_file} ../../libgcc/config/frv/frv-abi.h"
1afa774a 971 tmake_file="${tmake_file} frv/t-frv frv/t-linux"
3e7f6cce 972 ;;
be52b6d8 973moxie-*-elf)
974 gas=yes
975 gnu_ld=yes
976 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
977 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
978 tmake_file="${tmake_file} moxie/t-moxie moxie/t-moxie-softfp soft-fp/t-softfp"
979 ;;
447e8aaa 980moxie-*-uclinux*)
981 gas=yes
982 gnu_ld=yes
983 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h glibc-stdint.h moxie/uclinux.h"
984 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
985 tmake_file="${tmake_file} moxie/t-moxie moxie/t-moxie-softfp soft-fp/t-softfp"
66fd9df9 986 tm_defines="${tm_defines} DEFAULT_LIBC=LIBC_UCLIBC"
447e8aaa 987 extra_options="${extra_options} linux.opt"
988 ;;
c4fa0b2a 989moxie-*-rtems*)
3373795d 990 tmake_file="${tmake_file} moxie/t-moxie moxie/t-moxie-softfp soft-fp/t-softfp t-rtems"
c4fa0b2a 991 tm_file="moxie/moxie.h dbxelf.h elfos.h moxie/rtems.h rtems.h newlib-stdint.h"
992 ;;
02fe7cca 993h8300-*-rtems*)
994 tmake_file="h8300/t-h8300 h8300/t-elf t-rtems h8300/t-rtems"
f3449a3c 995 tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h h8300/rtems.h rtems.h newlib-stdint.h"
02fe7cca 996 ;;
15b65932 997h8300-*-elf*)
998 tmake_file="h8300/t-h8300 h8300/t-elf"
f3449a3c 999 tm_file="h8300/h8300.h dbxelf.h elfos.h newlib-stdint.h h8300/elf.h"
15b65932 1000 ;;
6af9f7ea 1001hppa*64*-*-linux*)
8ab32933 1002 target_cpu_default="MASK_PA_11|MASK_PA_20"
9bd9af5d 1003 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \
f3449a3c 1004 glibc-stdint.h pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h \
1005 pa/pa64-linux.h"
1afa774a 1006 tmake_file="${tmake_file} pa/t-linux64"
6630177d 1007 gas=yes gnu_ld=yes
805e22b2 1008 need_64bit_hwint=yes
6630177d 1009 ;;
6af9f7ea 1010hppa*-*-linux*)
8ab32933 1011 target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS"
f3449a3c 1012 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h pa/pa-linux.h \
6630177d 1013 pa/pa32-regs.h pa/pa32-linux.h"
2ebd06c5 1014 tmake_file="${tmake_file} pa/t-linux t-slibgcc-libgcc"
4779159e 1015 # Set the libgcc version number
1016 if test x$sjlj = x1; then
1017 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
1018 else
1019 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
51bfa4d4 1020 fi
bb607926 1021 ;;
0ac7fc08 1022# port not yet contributed.
1023#hppa*-*-openbsd*)
8ab32933 1024# target_cpu_default="MASK_PA_11"
0ac7fc08 1025# ;;
8ab32933 1026hppa[12]*-*-hpux10*)
1027 case ${target} in
1028 hppa1.1-*-* | hppa2*-*-*)
1029 target_cpu_default="MASK_PA_11"
1030 ;;
1031 esac
1032 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \
1033 pa/pa-hpux.h pa/pa-hpux10.h"
bd57250e 1034 extra_options="${extra_options} pa/pa-hpux.opt"
8ab32933 1035 case ${target} in
1036 *-*-hpux10.[1-9]*)
1037 tm_file="${tm_file} pa/pa-hpux1010.h"
bd57250e 1038 extra_options="${extra_options} pa/pa-hpux1010.opt"
8ab32933 1039 ;;
bb607926 1040 esac
c0045c9e 1041 use_gcc_stdint=provide
1042 tm_file="${tm_file} hpux-stdint.h"
0119c7f2 1043 tmake_file="pa/t-pa-hpux10 pa/t-pa-hpux pa/t-hpux-shlib"
334c8279 1044 case ${enable_threads} in
1045 "")
1046 if test x$have_pthread_h = xyes ; then
1047 tmake_file="${tmake_file} pa/t-dce-thr"
1048 fi
1049 ;;
1050 yes | dce)
1051 tmake_file="${tmake_file} pa/t-dce-thr"
1052 ;;
bb607926 1053 esac
4779159e 1054 # Set the libgcc version number
1055 if test x$sjlj = x1; then
1056 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
1057 else
1058 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
7c19e240 1059 fi
bb607926 1060 use_collect2=yes
8ad01423 1061 gas=yes
bb607926 1062 ;;
1063hppa*64*-*-hpux11*)
8ab32933 1064 target_cpu_default="MASK_PA_11|MASK_PA_20"
cacee710 1065 if test x$gnu_ld = xyes
1066 then
8ab32933 1067 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
cacee710 1068 fi
8ad01423 1069 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
1070 pa/pa64-regs.h pa/pa-hpux.h pa/pa-hpux1010.h \
1071 pa/pa-hpux11.h"
8ab32933 1072 case ${target} in
d15dd39c 1073 *-*-hpux11.[1-9]*)
8ab32933 1074 tm_file="${tm_file} pa/pa-hpux1111.h pa/pa-64.h pa/pa64-hpux.h"
bd57250e 1075 extra_options="${extra_options} pa/pa-hpux1111.opt"
8ab32933 1076 ;;
1077 *)
1078 tm_file="${tm_file} pa/pa-64.h pa/pa64-hpux.h"
1079 ;;
1080 esac
bd57250e 1081 extra_options="${extra_options} pa/pa-hpux.opt \
1082 pa/pa-hpux1010.opt pa/pa64-hpux.opt"
805e22b2 1083 need_64bit_hwint=yes
6e1c4c98 1084 tmake_file="pa/t-pa64 pa/t-pa-hpux pa/t-hpux-shlib"
4779159e 1085 # Set the libgcc version number
1086 if test x$sjlj = x1; then
1087 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
1088 else
1089 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
7c19e240 1090 fi
25e266ae 1091 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
1092 libgcc_stub.a"
120a2fed 1093 case x${enable_threads} in
4699015f 1094 x | xyes | xposix )
3ebc7dec 1095 thread_file=posix
120a2fed 1096 ;;
1097 esac
8ad01423 1098 gas=yes
43cb9222 1099 case ${target} in
1100 *-*-hpux11.[01]*)
1101 use_gcc_stdint=provide
1102 tm_file="${tm_file} hpux-stdint.h"
1103 ;;
1104 *-*-hpux11.[23]*)
1105 use_gcc_stdint=wrap
1106 tm_file="${tm_file} hpux-stdint.h"
1107 ;;
1108 esac
bb607926 1109 ;;
8ab32933 1110hppa[12]*-*-hpux11*)
1111 case ${target} in
1112 hppa1.1-*-* | hppa2*-*-*)
1113 target_cpu_default="MASK_PA_11"
1114 ;;
1115 esac
1116 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \
bd57250e 1117 pa/pa-hpux.h pa/pa-hpux1010.h pa/pa-hpux11.h"
1118 extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux1010.opt"
8ab32933 1119 case ${target} in
1120 *-*-hpux11.[1-9]*)
1121 tm_file="${tm_file} pa/pa-hpux1111.h"
bd57250e 1122 extra_options="${extra_options} pa/pa-hpux1111.opt"
120a2fed 1123 ;;
1124 esac
0119c7f2 1125 tmake_file="pa/t-pa-hpux11 pa/t-pa-hpux pa/t-hpux-shlib"
4779159e 1126 # Set the libgcc version number
1127 if test x$sjlj = x1; then
1128 tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
1129 else
1130 tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
7c19e240 1131 fi
698b676d 1132 extra_parts="libgcc_stub.a"
120a2fed 1133 case x${enable_threads} in
4699015f 1134 x | xyes | xposix )
3ebc7dec 1135 thread_file=posix
120a2fed 1136 ;;
1137 esac
bb607926 1138 use_collect2=yes
8ad01423 1139 gas=yes
43cb9222 1140 case ${target} in
1141 *-*-hpux11.[01]*)
1142 use_gcc_stdint=provide
1143 tm_file="${tm_file} hpux-stdint.h"
1144 ;;
1145 *-*-hpux11.[23]*)
1146 use_gcc_stdint=wrap
1147 tm_file="${tm_file} hpux-stdint.h"
1148 ;;
1149 esac
bb607926 1150 ;;
ffd05090 1151i[34567]86-*-darwin*)
3ebc7dec 1152 need_64bit_hwint=yes
ed2b8f56 1153 need_64bit_isa=yes
a5efd1bc 1154
1155 # This is so that '.../configure && make' doesn't fail due to
1156 # config.guess deciding that the configuration is i386-*-darwin* and
1157 # then this file using that to set --with-cpu=i386 which has no -m64
1158 # support.
a5efd1bc 1159 with_cpu=${with_cpu:-generic}
e2e89254 1160 tmake_file="${tmake_file} t-slibgcc-darwin i386/t-crtpc i386/t-crtfm"
0b1d266f 1161 extra_options="${extra_options} i386/darwin.opt"
23433d72 1162 lto_binary_reader=lto-macho
ffd05090 1163 ;;
4a839b30 1164x86_64-*-darwin*)
4a839b30 1165 with_cpu=${with_cpu:-generic}
e2e89254 1166 tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc-darwin i386/t-crtpc i386/t-crtfm"
4a839b30 1167 tm_file="${tm_file} ${cpu_type}/darwin64.h"
0b1d266f 1168 extra_options="${extra_options} i386/darwin.opt"
23433d72 1169 lto_binary_reader=lto-macho
4a839b30 1170 ;;
bb607926 1171i[34567]86-*-elf*)
f3449a3c 1172 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h"
46f8e3b0 1173 tmake_file="${tmake_file} i386/t-i386elf t-svr4"
bc831fe3 1174 ;;
1175x86_64-*-elf*)
f3449a3c 1176 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h"
46f8e3b0 1177 tmake_file="${tmake_file} i386/t-i386elf t-svr4"
bb607926 1178 ;;
bb607926 1179i[34567]86-*-freebsd*)
d2307a72 1180 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
a8456aba 1181 ;;
1182x86_64-*-freebsd*)
d2307a72 1183 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"
0f2457b8 1184 tmake_file="${tmake_file} i386/t-crtstuff"
bb607926 1185 ;;
f406b863 1186i[34567]86-*-netbsdelf*)
d2307a72 1187 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
f406b863 1188 ;;
bb607926 1189i[34567]86-*-netbsd*)
d2307a72 1190 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h"
46f8e3b0 1191 tmake_file="${tmake_file} t-netbsd"
9a33b00e 1192 extra_parts=""
87a1ff8e 1193 use_collect2=yes
bb607926 1194 ;;
8bc47d57 1195x86_64-*-netbsd*)
d2307a72 1196 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"
0f2457b8 1197 tmake_file="${tmake_file} i386/t-crtstuff"
8bc47d57 1198 ;;
d3ad7bb1 1199i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
0ac7fc08 1200 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 1201 # needed to unconfuse gdb
46f8e3b0 1202 tmake_file="${tmake_file} t-libc-ok t-openbsd i386/t-openbsd"
bb607926 1203 # we need collect2 until our bug is fixed...
1204 use_collect2=yes
1205 ;;
d3ad7bb1 1206i[34567]86-*-openbsd*)
bcc9ac22 1207 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h"
8e6600a1 1208 tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/openbsdelf.h"
d3ad7bb1 1209 gas=yes
1210 gnu_ld=yes
d3ad7bb1 1211 ;;
3bef4012 1212i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
6396cc37 1213 # Intel 80386's running GNU/*
bb607926 1214 # with ELF format using glibc 2
f3449a3c 1215 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h"
6396cc37 1216 case ${target} in
54bb64fb 1217 i[34567]86-*-linux*)
1c6e0788 1218 # Assume modern glibc
1219 default_gnu_indirect_function=yes
54bb64fb 1220 if test x$enable_targets = xall; then
1221 tm_file="${tm_file} i386/x86-64.h i386/linux64.h"
1222 tm_defines="${tm_defines} TARGET_BI_ARCH=1"
b3fd46a0 1223 tmake_file="${tmake_file} i386/t-linux64"
54bb64fb 1224 need_64bit_hwint=yes
ed2b8f56 1225 need_64bit_isa=yes
54bb64fb 1226 case X"${with_cpu}" in
6fc76bb0 1227 Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xbdver1|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3)
54bb64fb 1228 ;;
1229 X)
f067c6b7 1230 if test x$with_cpu_64 = x; then
1231 with_cpu_64=generic
1232 fi
54bb64fb 1233 ;;
1234 *)
1235 echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
6fc76bb0 1236 echo "generic atom core2 nocona x86-64 bdver1 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2
54bb64fb 1237 exit 1
1238 ;;
1239 esac
1240 else
1241 tm_file="${tm_file} i386/linux.h"
1242 fi
1243 ;;
1244 i[34567]86-*-knetbsd*-gnu) tm_file="${tm_file} i386/linux.h knetbsd-gnu.h i386/knetbsd-gnu.h" ;;
1245 i[34567]86-*-kfreebsd*-gnu) tm_file="${tm_file} i386/linux.h kfreebsd-gnu.h i386/kfreebsd-gnu.h" ;;
3bef4012 1246 i[34567]86-*-kopensolaris*-gnu) tm_file="${tm_file} i386/linux.h kopensolaris-gnu.h i386/kopensolaris-gnu.h" ;;
72a65e81 1247 i[34567]86-*-gnu*) tm_file="$tm_file i386/linux.h gnu.h i386/gnu.h";;
6396cc37 1248 esac
6d057ce8 1249 tmake_file="${tmake_file} i386/t-crtstuff i386/t-crtpc i386/t-crtfm t-dfprules"
bb607926 1250 ;;
28a6c5e3 1251x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
f3449a3c 1252 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h \
277773bd 1253 i386/x86-64.h i386/linux64.h"
28a6c5e3 1254 case ${target} in
1c6e0788 1255 x86_64-*-linux*)
1256 default_gnu_indirect_function=glibc-2011 ;;
28a6c5e3 1257 x86_64-*-kfreebsd*-gnu) tm_file="${tm_file} kfreebsd-gnu.h" ;;
1258 x86_64-*-knetbsd*-gnu) tm_file="${tm_file} knetbsd-gnu.h" ;;
1259 esac
b3fd46a0 1260 tmake_file="${tmake_file} i386/t-linux64 i386/t-crtstuff i386/t-crtpc i386/t-crtfm t-dfprules"
5c66405b 1261 ;;
bb607926 1262i[34567]86-pc-msdosdjgpp*)
1263 xm_file=i386/xm-djgpp.h
f283da8d 1264 tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h"
46f8e3b0 1265 tmake_file="${tmake_file} i386/t-djgpp"
0c44645a 1266 extra_options="${extra_options} i386/djgpp.opt"
bb607926 1267 gnu_ld=yes
1268 gas=yes
a47075bb 1269 use_gcc_stdint=wrap
bb607926 1270 ;;
bb607926 1271i[34567]86-*-lynxos*)
d895dbf9 1272 xm_defines=POSIX
1273 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/lynx.h lynx.h"
46f8e3b0 1274 tmake_file="${tmake_file} i386/t-crtstuff t-lynx"
d895dbf9 1275 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
0c44645a 1276 extra_options="${extra_options} lynx.opt"
d895dbf9 1277 thread_file=lynx
1278 gnu_ld=yes
1279 gas=yes
bb607926 1280 ;;
634f7a13 1281i[3456x]86-*-netware*)
590d3b74 1282 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h tm-dwarf2.h i386/netware.h"
46f8e3b0 1283 tmake_file="${tmake_file} i386/t-netware"
634f7a13 1284 extra_objs=netware.o
1285 case /${with_ld} in
1286 */nwld)
1287 extra_objs="$extra_objs nwld.o"
1288 tm_file="${tm_file} i386/nwld.h"
1289 tmake_file="${tmake_file} i386/t-nwld"
1290 extra_parts="crt0.o libgcc.def libc.def libcpre.def posixpre.def"
1291 ;;
1292 esac
1293 case x${enable_threads} in
1294 x | xyes | xposix) thread_file='posix';;
1295 xnks) thread_file='nks';;
1296 xno) ;;
1297 *) echo 'Unknown thread configuration for NetWare' >&2; exit 1;;
1298 esac
1299 ;;
b1aac5f5 1300i[34567]86-*-nto-qnx*)
0ac7fc08 1301 tm_file="${tm_file} i386/att.h dbxelf.h tm-dwarf2.h elfos.h svr4.h i386/unix.h i386/nto.h"
46f8e3b0 1302 tmake_file="${tmake_file} i386/t-nto"
b1aac5f5 1303 gnu_ld=yes
1304 gas=yes
1305 ;;
41e38a87 1306i[34567]86-*-rtems*)
f3449a3c 1307 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h newlib-stdint.h"
bb607926 1308 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
46f8e3b0 1309 tmake_file="${tmake_file} i386/t-rtems-i386 i386/t-crtstuff t-rtems"
bb607926 1310 ;;
bb607926 1311i[34567]86-*-solaris2*)
8fde03ba 1312 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h"
6f5b6a64 1313 # Set default arch_32 to pentium4, tune_32 to generic like the other
1314 # i386 targets, although config.guess defaults to i386-pc-solaris2*.
05157f42 1315 case ${target} in
949e49d0 1316 *-*-solaris2.[89]*)
1317 # Solaris 8 and 9/x86 cannot execute SSE/SSE2 instructions by
1318 # default.
1319 with_arch_32=${with_arch_32:-pentiumpro}
05157f42 1320 ;;
1321 *)
1322 with_arch_32=${with_arch_32:-pentium4}
1323 ;;
1324 esac
be67f556 1325 with_tune_32=${with_tune_32:-generic}
8fde03ba 1326 case ${target} in
517cabaa 1327 *-*-solaris2.1[0-9]*)
1328 tm_file="${tm_file} sol2-10.h"
1329 ;;
8fde03ba 1330 esac
1331 tm_file="${tm_file} i386/sol2.h"
9232c3b6 1332 if test x$gnu_ld = xyes; then
1333 tm_file="${tm_file} sol2-gld.h"
1334 fi
0adf6b09 1335 if test x$gas = xyes; then
1336 tm_file="${tm_file} i386/sol2-gas.h"
1337 fi
03150a33 1338 tmake_file="${tmake_file} t-sol2 t-svr4"
46f8e3b0 1339 c_target_objs="${c_target_objs} sol2-c.o"
1340 cxx_target_objs="${cxx_target_objs} sol2-c.o"
e02a1225 1341 extra_objs="sol2.o"
1342 tm_p_file="${tm_p_file} sol2-protos.h"
32e8a7fc 1343 if test x$gnu_ld = xyes; then
1344 tmake_file="$tmake_file t-slibgcc-elf-ver"
27559c4e 1345 tm_defines="${tm_defines} TARGET_GNU_LD=1"
32e8a7fc 1346 else
1347 tmake_file="$tmake_file t-slibgcc-sld"
1348 fi
8b3b32fb 1349 if test x$gas = xyes; then
1350 tm_file="usegas.h ${tm_file}"
1351 fi
6af9f7ea 1352 tm_file="$tm_file tm-dwarf2.h"
27559c4e 1353 case ${target} in
b8273627 1354 *-*-solaris2.1[0-9]*)
27559c4e 1355 tm_file="${tm_file} i386/x86-64.h i386/sol2-10.h"
1356 tm_defines="${tm_defines} TARGET_BI_ARCH=1"
03150a33 1357 tmake_file="$tmake_file i386/t-sol2-10"
1358 # i386/t-crtstuff only affects libgcc. Its inclusion
1359 # depends on a runtime test and is thus performed in
1360 # libgcc/configure.ac instead.
27559c4e 1361 need_64bit_hwint=yes
ed2b8f56 1362 need_64bit_isa=yes
f3449a3c 1363 use_gcc_stdint=wrap
a2e127ea 1364 case X"${with_cpu}" in
6fc76bb0 1365 Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xbdver1|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3)
a2e127ea 1366 ;;
1367 X)
f067c6b7 1368 if test x$with_cpu_64 = x; then
1369 with_cpu_64=generic
1370 fi
a2e127ea 1371 ;;
1372 *)
1373 echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
6fc76bb0 1374 echo "generic atom core2 nocona x86-64 bdver1 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2
a2e127ea 1375 exit 1
1376 ;;
1377 esac
27559c4e 1378 ;;
f3449a3c 1379 *)
1380 use_gcc_stdint=provide
1381 ;;
27559c4e 1382 esac
334c8279 1383 case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
8fde03ba 1384 "":yes:* | yes:yes:* )
6af9f7ea 1385 thread_file=posix
8fde03ba 1386 ;;
1387 "":*:yes | yes:*:yes )
1388 thread_file=solaris
1389 ;;
334c8279 1390 esac
bb607926 1391 ;;
2adf99fa 1392i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
c77a1c92 1393 tm_file="${tm_file} i386/unix.h i386/att.h elfos.h svr4.h vx-common.h"
2adf99fa 1394 case ${target} in
1395 *-vxworksae*)
c77a1c92 1396 tm_file="${tm_file} vxworksae.h i386/vx-common.h i386/vxworksae.h"
2adf99fa 1397 tmake_file="${tmake_file} i386/t-vxworks i386/t-vxworksae"
1398 ;;
1399 *)
c77a1c92 1400 tm_file="${tm_file} vxworks.h i386/vx-common.h i386/vxworks.h"
2adf99fa 1401 tmake_file="${tmake_file} i386/t-vxworks"
1402 ;;
1403 esac
d9799238 1404 ;;
bb607926 1405i[34567]86-*-pe | i[34567]86-*-cygwin*)
615180dd 1406 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h i386/cygwin-stdint.h"
e1688c3e 1407 xm_file=i386/xm-cygwin.h
8cae609c 1408 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
1409 if test x$sjlj = x0; then
1410 tmake_eh_file="i386/t-dw2-eh"
1411 else
1412 tmake_eh_file="i386/t-sjlj-eh"
1413 fi
1414 tmake_file="${tmake_file} ${tmake_eh_file} i386/t-cygming i386/t-cygwin"
62b4d90e 1415 target_gtfiles="\$(srcdir)/config/i386/winnt.c"
0c44645a 1416 extra_options="${extra_options} i386/cygming.opt"
6c1e551f 1417 extra_objs="winnt.o winnt-stubs.o"
2637551a 1418 c_target_objs="${c_target_objs} msformat-c.o"
1419 cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"
bb607926 1420 if test x$enable_threads = xyes; then
8728e49b 1421 thread_file='posix'
bb607926 1422 fi
615180dd 1423 use_gcc_stdint=wrap
4d992eb6 1424 lto_binary_reader=lto-coff
bb607926 1425 ;;
c8c521bb 1426i[34567]86-*-mingw* | x86_64-*-mingw*)
72f432d4 1427 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
e1688c3e 1428 xm_file=i386/xm-mingw32.h
a4f7c8f7 1429 case ${target} in
1430 x86_64-*-* | *-w64-*)
1431 need_64bit_hwint=yes
ed2b8f56 1432 need_64bit_isa=yes
a4f7c8f7 1433 ;;
1434 *)
1435 ;;
1436 esac
72f432d4 1437 # This makes the logic if mingw's or the w64 feature set has to be used
1438 case ${target} in
1439 *-w64-*)
ac0366be 1440 user_headers_inc_next_post="${user_headers_inc_next_post} float.h"
1441 user_headers_inc_next_pre="${user_headers_inc_next_pre} stddef.h stdarg.h"
72f432d4 1442 tm_file="${tm_file} i386/mingw-w64.h"
a4f7c8f7 1443 if test x$enable_targets = xall; then
1444 tm_defines="${tm_defines} TARGET_BI_ARCH=1"
1445 case X"${with_cpu}" in
6fc76bb0 1446 Xgeneric|Xatom|Xcore2|Xnocona|Xx86-64|Xbdver1|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3)
a4f7c8f7 1447 ;;
1448 X)
1449 if test x$with_cpu_64 = x; then
1450 with_cpu_64=generic
1451 fi
1452 ;;
1453 *)
1454 echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
6fc76bb0 1455 echo "generic atom core2 nocona x86-64 bdver1 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2
a4f7c8f7 1456 exit 1
1457 ;;
1458 esac
1459 fi
72f432d4 1460 ;;
1461 *)
72f432d4 1462 ;;
1463 esac
1464 tm_file="${tm_file} i386/mingw-stdint.h"
8cae609c 1465 # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
1466 if test x$sjlj = x0; then
1467 tmake_eh_file="i386/t-dw2-eh"
1468 else
1469 tmake_eh_file="i386/t-sjlj-eh"
1470 fi
b537ad13 1471 tmake_file="${tmake_file} ${tmake_eh_file} i386/t-cygming t-dfprules"
0767c2a8 1472 case ${target} in
aca9e986 1473 x86_64-w64-*)
0767c2a8 1474 tmake_file="${tmake_file} i386/t-mingw-w64"
1475 ;;
aca9e986 1476 i[34567]86-w64-*)
1477 tmake_file="${tmake_file} i386/t-mingw-w32"
1478 ;;
0767c2a8 1479 *)
1480 tmake_file="${tmake_file} i386/t-mingw32"
1481 ;;
1482 esac
62b4d90e 1483 target_gtfiles="\$(srcdir)/config/i386/winnt.c"
78e16ab5 1484 extra_options="${extra_options} i386/cygming.opt i386/mingw.opt"
72f432d4 1485 case ${target} in
1486 *-w64-*)
1487 extra_options="${extra_options} i386/mingw-w64.opt"
1488 ;;
1489 *)
1490 ;;
1491 esac
6c1e551f 1492 extra_objs="winnt.o winnt-stubs.o"
46f8e3b0 1493 c_target_objs="${c_target_objs} msformat-c.o"
1494 cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"
d91ef9b0 1495 default_use_cxa_atexit=yes
8953973a 1496 use_gcc_stdint=wrap
4d992eb6 1497 lto_binary_reader=lto-coff
c89ba7eb 1498 case ${enable_threads} in
6471e33b 1499 "" | yes | win32) thread_file='win32'
a3d38952 1500 tmake_file="${tmake_file} i386/t-gthr-win32"
1501 ;;
c89ba7eb 1502 esac
09c6646e 1503 case ${target} in
c8c521bb 1504 x86_64-*-mingw*)
1505 tmake_file="${tmake_file} i386/t-crtfm"
bb607926 1506 ;;
c8c521bb 1507 *)
1508 ;;
1509 esac
1510 case ${target} in
1511 *mingw32crt*)
1512 tm_file="${tm_file} i386/crtdll.h"
1513 ;;
1514 *mingw32msv* | *mingw*)
170a37e8 1515 ;;
bb607926 1516 esac
1517 ;;
49d31318 1518i[34567]86-*-interix3*)
d2307a72 1519 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"
46f8e3b0 1520 tmake_file="${tmake_file} i386/t-interix"
2fbafe8b 1521 extra_objs=winnt.o
62b4d90e 1522 target_gtfiles="\$(srcdir)/config/i386/winnt.c"
49d31318 1523 if test x$enable_threads = xyes ; then
1524 thread_file='posix'
1525 fi
1526 if test x$stabs = xyes ; then
1527 tm_file="${tm_file} dbxcoff.h"
1528 fi
1529 ;;
bb607926 1530ia64*-*-elf*)
f3449a3c 1531 tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h ia64/sysv4.h ia64/elf.h"
bb607926 1532 tmake_file="ia64/t-ia64"
1533 target_cpu_default="0"
1534 if test x$gas = xyes
1535 then
1536 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1537 fi
1538 if test x$gnu_ld = xyes
1539 then
1540 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1541 fi
127ab935 1542 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
bb607926 1543 ;;
49b2e77d 1544ia64*-*-freebsd*)
0670e09b 1545 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
49b2e77d 1546 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1547 tmake_file="${tmake_file} ia64/t-ia64"
127ab935 1548 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
49b2e77d 1549 ;;
bb607926 1550ia64*-*-linux*)
f3449a3c 1551 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h ia64/sysv4.h ia64/linux.h"
8bdf23ae 1552 tmake_file="${tmake_file} ia64/t-ia64 t-libunwind ia64/t-glibc"
1553 if test x$with_system_libunwind != xyes ; then
1554 tmake_file="${tmake_file} t-libunwind-elf ia64/t-glibc-libunwind"
1555 fi
bb607926 1556 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
127ab935 1557 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
bb607926 1558 ;;
d838d791 1559ia64*-*-hpux*)
f2f543a3 1560 tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h"
4c9b2035 1561 tmake_file="ia64/t-ia64 ia64/t-hpux"
d838d791 1562 target_cpu_default="MASK_GNU_AS"
120a2fed 1563 case x$enable_threads in
c5e978ad 1564 x | xyes | xposix )
120a2fed 1565 thread_file=posix
1566 ;;
1567 esac
297cec9a 1568 use_collect2=no
23ebf0fe 1569 c_target_objs="ia64-c.o"
1570 cxx_target_objs="ia64-c.o"
b1c7573c 1571 extra_options="${extra_options} ia64/ilp32.opt"
43cb9222 1572 use_gcc_stdint=wrap
1573 tm_file="${tm_file} hpux-stdint.h"
d838d791 1574 ;;
9b9a2528 1575ia64-hp-*vms*)
1576 tm_file="${tm_file} elfos.h ia64/sysv4.h ia64/elf.h ia64/vms.h ia64/vms64.h"
1577 xm_file="vms/xm-vms.h vms/xm-vms64.h"
ab14e5be 1578 tmake_file="vms/t-vms ia64/t-ia64 ia64/t-vms"
9b9a2528 1579 xmake_file=vms/x-vms
1580 target_cpu_default="0"
1581 if test x$gas = xyes
1582 then
1583 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1584 fi
1585 exeext=.exe
1586 install_headers_dir=install-headers-cp
1587 extra_options="${extra_options} vms/vms.opt"
1588 ;;
54f12d76 1589iq2000*-*-elf*)
f3449a3c 1590 tm_file="svr4.h elfos.h newlib-stdint.h iq2000/iq2000.h"
54f12d76 1591 tmake_file=iq2000/t-iq2000
1592 out_file=iq2000/iq2000.c
54f12d76 1593 md_file=iq2000/iq2000.md
1594 ;;
f6fe91e8 1595lm32-*-elf*)
1596 tm_file="dbxelf.h elfos.h ${tm_file}"
cf842d6a 1597 tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp soft-fp/t-softfp"
f6fe91e8 1598 ;;
431df6da 1599lm32-*-rtems*)
b4cebe6e 1600 tm_file="dbxelf.h elfos.h ${tm_file} lm32/rtems.h rtems.h newlib-stdint.h"
431df6da 1601 tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp soft-fp/t-softfp"
1602 tmake_file="${tmake_file} t-rtems"
1603 ;;
f6fe91e8 1604lm32-*-uclinux*)
1605 tm_file="dbxelf.h elfos.h ${tm_file} linux.h lm32/uclinux-elf.h"
cf842d6a 1606 tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp soft-fp/t-softfp"
f6fe91e8 1607 ;;
bb607926 1608m32r-*-elf*)
f3449a3c 1609 tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
4f889607 1610 extra_parts="crtinit.o crtfini.o"
19cd32af 1611 ;;
467dc9aa 1612m32rle-*-elf*)
f3449a3c 1613 tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h m32r/little.h ${tm_file}"
467dc9aa 1614 extra_parts="crtinit.o crtfini.o m32rx/crtinit.o m32rx/crtfini.o"
467dc9aa 1615 ;;
e4c85211 1616m32r-*-rtems*)
f3449a3c 1617 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} m32r/rtems.h rtems.h newlib-stdint.h"
e4c85211 1618 tmake_file="m32r/t-m32r t-rtems"
1619 extra_parts="crtinit.o crtfini.o"
1620 ;;
467dc9aa 1621m32r-*-linux*)
f3449a3c 1622 tm_file="dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h ${tm_file} m32r/linux.h"
1afa774a 1623 # We override the tmake_file for linux -- why?
f92be414 1624 tmake_file="t-slibgcc-elf-ver m32r/t-linux"
467dc9aa 1625 gnu_ld=yes
467dc9aa 1626 if test x$enable_threads = xyes; then
1627 thread_file='posix'
1628 fi
1629 ;;
1630m32rle-*-linux*)
f3449a3c 1631 tm_file="dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h m32r/little.h ${tm_file} m32r/linux.h"
1afa774a 1632 # We override the tmake_file for linux -- why?
f92be414 1633 tmake_file="t-slibgcc-elf-ver m32r/t-linux"
467dc9aa 1634 gnu_ld=yes
467dc9aa 1635 if test x$enable_threads = xyes; then
1636 thread_file='posix'
1637 fi
1638 ;;
bb607926 1639# m68hc11 and m68hc12 share the same machine description.
1640m68hc11-*-*|m6811-*-*)
f3449a3c 1641 tm_file="dbxelf.h elfos.h usegas.h newlib-stdint.h m68hc11/m68hc11.h"
bb607926 1642 tm_p_file="m68hc11/m68hc11-protos.h"
1643 md_file="m68hc11/m68hc11.md"
1644 out_file="m68hc11/m68hc11.c"
58a8c75f 1645 tmake_file="m68hc11/t-m68hc11"
f3449a3c 1646 use_gcc_stdint=wrap
bb607926 1647 ;;
1648m68hc12-*-*|m6812-*-*)
f3449a3c 1649 tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h usegas.h newlib-stdint.h m68hc11/m68hc11.h"
bb607926 1650 tm_p_file="m68hc11/m68hc11-protos.h"
bb607926 1651 md_file="m68hc11/m68hc11.md"
1652 out_file="m68hc11/m68hc11.c"
58a8c75f 1653 tmake_file="m68hc11/t-m68hc11"
bfb701b0 1654 extra_options="${extra_options} m68hc11/m68hc11.opt"
f3449a3c 1655 use_gcc_stdint=wrap
bb607926 1656 ;;
6af9f7ea 1657m68k-*-elf* | fido-*-elf*)
278e2fd1 1658 case ${target} in
1659 fido-*-elf*)
1660 # Check that $with_cpu makes sense.
1661 case $with_cpu in
1662 "" | "fidoa")
1663 ;;
1664 *)
1665 echo "Cannot accept --with-cpu=$with_cpu"
1666 exit 1
1667 ;;
1668 esac
1669 with_cpu=fidoa
1670 ;;
1671 *)
1672 default_m68k_cpu=68020
1673 default_cf_cpu=5206
1674 ;;
1675 esac
f3449a3c 1676 tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h newlib-stdint.h m68k/m68kemb.h m68k/m68020-elf.h"
99570287 1677 tm_defines="${tm_defines} MOTOROLA=1"
278e2fd1 1678 tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-m68kelf"
1679 # Add multilibs for targets other than fido.
1680 case ${target} in
1681 fido-*-elf*)
1682 ;;
1683 *)
1684 tmake_file="$tmake_file m68k/t-mlibs"
1685 ;;
1686 esac
37f722b2 1687 extra_parts="crtbegin.o crtend.o"
bb607926 1688 ;;
6af9f7ea 1689m68k*-*-netbsdelf*)
f84195ec 1690 default_m68k_cpu=68020
558b196a 1691 default_cf_cpu=5475
124c3198 1692 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
99570287 1693 tm_defines="${tm_defines} MOTOROLA=1"
124c3198 1694 ;;
984408e9 1695m68k*-*-openbsd*)
f84195ec 1696 default_m68k_cpu=68020
558b196a 1697 default_cf_cpu=5475
984408e9 1698 # needed to unconfuse gdb
f84195ec 1699 tm_defines="${tm_defines} OBSD_OLD_GAS"
8e6600a1 1700 tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h m68k/openbsd.h"
984408e9 1701 tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
1702 # we need collect2 until our bug is fixed...
1703 use_collect2=yes
1704 ;;
8bc67792 1705m68k-*-uclinuxoldabi*) # Motorola m68k/ColdFire running uClinux
1706 # with uClibc, using the original
1707 # m68k-elf-based ABI
1708 default_m68k_cpu=68020
558b196a 1709 default_cf_cpu=5206
f3449a3c 1710 tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/uclinux-oldabi.h glibc-stdint.h"
99570287 1711 tm_defines="${tm_defines} MOTOROLA=1"
45965f3c 1712 tmake_file="m68k/t-floatlib m68k/t-uclinux"
8bc67792 1713 ;;
1714m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux
1715 # with uClibc, using the new GNU/Linux-style
1716 # ABI.
f84195ec 1717 default_m68k_cpu=68020
558b196a 1718 default_cf_cpu=5206
f3449a3c 1719 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h flat.h m68k/linux.h m68k/uclinux.h ./sysroot-suffix.h"
66fd9df9 1720 tm_defines="${tm_defines} MOTOROLA=1 DEFAULT_LIBC=LIBC_UCLIBC"
a4e649cf 1721 extra_options="${extra_options} linux.opt"
558b196a 1722 tmake_file="m68k/t-floatlib m68k/t-uclinux m68k/t-mlibs"
13285dde 1723 ;;
bb607926 1724m68k-*-linux*) # Motorola m68k's running GNU/Linux
1725 # with ELF format using glibc 2
1726 # aka the GNU/Linux C library 6.
f84195ec 1727 default_m68k_cpu=68020
558b196a 1728 default_cf_cpu=5475
27f1c610 1729 with_arch=${with_arch:-m68k}
f3449a3c 1730 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h m68k/linux.h ./sysroot-suffix.h"
fbdd0521 1731 extra_options="${extra_options} m68k/ieee.opt"
99570287 1732 tm_defines="${tm_defines} MOTOROLA=1"
27f1c610 1733 tmake_file="${tmake_file} m68k/t-floatlib m68k/t-linux m68k/t-mlibs"
51bfa4d4 1734 # if not configured with --enable-sjlj-exceptions, bump the
1735 # libgcc version number
1736 if test x$sjlj != x1; then
1737 tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
1738 fi
bb607926 1739 ;;
41e38a87 1740m68k-*-rtems*)
f84195ec 1741 default_m68k_cpu=68020
558b196a 1742 default_cf_cpu=5206
1743 tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-crtstuff t-rtems m68k/t-rtems m68k/t-mlibs"
f3449a3c 1744 tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h newlib-stdint.h"
99570287 1745 tm_defines="${tm_defines} MOTOROLA=1"
37f722b2 1746 extra_parts="crtbegin.o crtend.o"
bb607926 1747 ;;
bb607926 1748mcore-*-elf)
f3449a3c 1749 tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file} mcore/mcore-elf.h"
bb607926 1750 tmake_file=mcore/t-mcore
58a8c75f 1751 inhibit_libc=true
bb607926 1752 ;;
1753mcore-*-pe*)
f3449a3c 1754 tm_file="svr3.h dbxcoff.h newlib-stdint.h ${tm_file} mcore/mcore-pe.h"
bb607926 1755 tmake_file=mcore/t-mcore-pe
58a8c75f 1756 inhibit_libc=true
f3449a3c 1757 use_gcc_stdint=wrap
bb607926 1758 ;;
46222c18 1759mep-*-*)
1760 tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
1761 tmake_file=mep/t-mep
1762 extra_parts="crtbegin.o crtend.o"
1763 c_target_objs="mep-pragma.o"
1764 cxx_target_objs="mep-pragma.o"
1765 if test -d "${srcdir}/../newlib/libc/include" &&
1766 test "x$with_headers" = x; then
1767 with_headers=yes
1768 fi
1769 use_gcc_stdint=wrap
1770 ;;
d34b0d1e 1771microblaze*-linux*)
1772 tm_file="${tm_file} dbxelf.h linux.h microblaze/linux.h"
1773 c_target_objs="${c_target_objs} microblaze-c.o"
1774 cxx_target_objs="${cxx_target_objs} microblaze-c.o"
1775 tmake_file="${tmake_file} t-slibgcc-elf-ver t-slibgcc-nolc-override t-linux microblaze/t-microblaze"
1776 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o crtbeginT.o"
1777 ;;
1778microblaze*-*-*)
1779 tm_file="${tm_file} dbxelf.h"
1780 c_target_objs="${c_target_objs} microblaze-c.o"
1781 cxx_target_objs="${cxx_target_objs} microblaze-c.o"
1782 tmake_file="${tmake_file} microblaze/t-microblaze"
1783 ;;
be52f086 1784mips-sgi-irix6.5*)
1785 tm_file="elfos.h ${tm_file} mips/iris6.h"
1786 tmake_file="mips/t-iris mips/t-iris6 mips/t-slibgcc-irix"
b93bf04a 1787 target_cpu_default="MASK_ABICALLS"
be52f086 1788 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
1789 # Only IRIX Development Foundation 1.3 for IRIX 6.5 provides stdint.h.
1790 use_gcc_stdint=wrap
6e930e6c 1791 if test "x$stabs" = xyes
bb607926 1792 then
0bf68cc9 1793 tm_file="${tm_file} dbx.h"
bb607926 1794 fi
6912d656 1795 if test "x$gnu_ld" = xyes
1796 then
6e930e6c 1797 tm_defines="${tm_defines} IRIX_USING_GNU_LD"
6912d656 1798 fi
2f1d7291 1799 case ${enable_threads}:${have_pthread_h} in
1800 "":yes | yes:yes ) thread_file=posix ;;
1801 esac
bb607926 1802 ;;
4ace673e 1803mips*-*-netbsd*) # NetBSD/mips, either endian.
b93bf04a 1804 target_cpu_default="MASK_ABICALLS"
0ac7fc08 1805 tm_file="elfos.h ${tm_file} mips/elf.h netbsd.h netbsd-elf.h mips/netbsd.h"
bb607926 1806 ;;
606c99b0 1807mips64*-*-linux* | mipsisa64*-*-linux*)
f3449a3c 1808 tm_file="dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h ${tm_file} mips/linux.h mips/linux64.h"
559b0712 1809 tmake_file="${tmake_file} mips/t-linux64 mips/t-libgcc-mips16"
42102a26 1810 tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_N32"
69f36814 1811 case ${target} in
1812 mips64el-st-linux-gnu)
1813 tm_file="${tm_file} mips/st.h"
1814 tmake_file="${tmake_file} mips/t-st"
1815 ;;
fc84efeb 1816 mips64octeon*-*-linux*)
1817 tm_defines="${tm_defines} MIPS_CPU_STRING_DEFAULT=\\\"octeon\\\""
1818 target_cpu_default=MASK_SOFT_FLOAT_ABI
1819 ;;
606c99b0 1820 mipsisa64r2*-*-linux*)
1821 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65"
1822 ;;
69f36814 1823 esac
283681bb 1824 extra_parts="$extra_parts crtfastmath.o"
d0faeb9d 1825 gnu_ld=yes
1826 gas=yes
bc4c18f7 1827 test x$with_llsc != x || with_llsc=yes
d0faeb9d 1828 ;;
bb607926 1829mips*-*-linux*) # Linux MIPS, either endian.
f3449a3c 1830 tm_file="dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h ${tm_file} mips/linux.h"
559b0712 1831 tmake_file="${tmake_file} mips/t-libgcc-mips16"
09c6646e 1832 case ${target} in
487874ac 1833 mipsisa32r2*)
1834 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33"
613a38b0 1835 ;;
487874ac 1836 mipsisa32*)
1837 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32"
613a38b0 1838 esac
283681bb 1839 extra_parts="$extra_parts crtfastmath.o"
bc4c18f7 1840 test x$with_llsc != x || with_llsc=yes
bb607926 1841 ;;
0ac7fc08 1842mips*-*-openbsd*)
515fdcc2 1843 tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_OBJECT OBSD_HAS_CORRECT_SPECS"
b93bf04a 1844 target_cpu_default="MASK_ABICALLS"
8e6600a1 1845 tm_file="mips/mips.h openbsd.h openbsd-stdint.h openbsd-libpthread.h mips/openbsd.h mips/sdb.h"
09c6646e 1846 case ${target} in
3ebc7dec 1847 mips*el-*-openbsd*)
0ac7fc08 1848 tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=0";;
1849 *) tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=MASK_BIG_ENDIAN";;
1850 esac
bb607926 1851 ;;
5aeba334 1852mips*-sde-elf*)
f3449a3c 1853 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/sde.h"
5aeba334 1854 tmake_file="mips/t-sde mips/t-libgcc-mips16"
0b1d266f 1855 extra_options="${extra_options} mips/sde.opt"
68c9bc25 1856 case "${with_newlib}" in
1857 yes)
1858 # newlib / libgloss.
1859 ;;
1860 *)
1861 # MIPS toolkit libraries.
1862 tm_file="$tm_file mips/sdemtk.h"
1863 tmake_file="$tmake_file mips/t-sdemtk"
68c9bc25 1864 case ${enable_threads} in
1865 "" | yes | mipssde)
1866 thread_file='mipssde'
1867 ;;
1868 esac
1869 ;;
1870 esac
5aeba334 1871 case ${target} in
1872 mipsisa32r2*)
1873 tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32"
1874 ;;
1875 mipsisa32*)
1876 tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_32"
1877 ;;
77a32a8e 1878 mipsisa64r2*)
1879 tm_defines="MIPS_ISA_DEFAULT=65 MIPS_ABI_DEFAULT=ABI_N32"
1880 ;;
5aeba334 1881 mipsisa64*)
1882 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_N32"
1883 ;;
1884 esac
1885 ;;
7583e786 1886mipsisa32-*-elf* | mipsisa32el-*-elf* | \
1887mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
77a32a8e 1888mipsisa64-*-elf* | mipsisa64el-*-elf* | \
1889mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
f3449a3c 1890 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
5aeba334 1891 tmake_file="mips/t-isa3264 mips/t-libgcc-mips16"
7583e786 1892 case ${target} in
1893 mipsisa32r2*)
1894 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33"
1895 ;;
1896 mipsisa32*)
1897 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32"
1898 ;;
77a32a8e 1899 mipsisa64r2*)
1900 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65"
1901 ;;
7583e786 1902 mipsisa64*)
1903 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64"
1904 ;;
1905 esac
1906 case ${target} in
1907 mipsisa32*-*-elfoabi*)
1908 tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_32"
1909 tm_file="${tm_file} mips/elfoabi.h"
1910 ;;
1911 mipsisa64*-*-elfoabi*)
1912 tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_O64"
1913 tm_file="${tm_file} mips/elfoabi.h"
1914 ;;
1915 *-*-elf*)
1916 tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI"
1917 ;;
1918 esac
5381547d 1919 ;;
2857c21b 1920mipsisa64sr71k-*-elf*)
f3449a3c 1921 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
2857c21b 1922 tmake_file=mips/t-sr71k
b93bf04a 1923 target_cpu_default="MASK_64BIT|MASK_FLOAT64"
515fdcc2 1924 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
2857c21b 1925 ;;
19c56034 1926mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
f3449a3c 1927 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
5aeba334 1928 tmake_file="mips/t-elf mips/t-libgcc-mips16 mips/t-sb1"
b93bf04a 1929 target_cpu_default="MASK_64BIT|MASK_FLOAT64"
515fdcc2 1930 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
19c56034 1931 ;;
f4deb416 1932mips-*-elf* | mipsel-*-elf*)
f3449a3c 1933 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
5aeba334 1934 tmake_file="mips/t-elf mips/t-libgcc-mips16"
bb607926 1935 ;;
f4deb416 1936mips64-*-elf* | mips64el-*-elf*)
f3449a3c 1937 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
5aeba334 1938 tmake_file="mips/t-elf mips/t-libgcc-mips16"
b93bf04a 1939 target_cpu_default="MASK_64BIT|MASK_FLOAT64"
515fdcc2 1940 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
bb607926 1941 ;;
2857c21b 1942mips64vr-*-elf* | mips64vrel-*-elf*)
f3449a3c 1943 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/vr.h mips/elf.h"
2857c21b 1944 tmake_file=mips/t-vr
9d463647 1945 tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI"
2857c21b 1946 ;;
f4deb416 1947mips64orion-*-elf* | mips64orionel-*-elf*)
f3449a3c 1948 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elforion.h mips/elf.h"
5aeba334 1949 tmake_file="mips/t-elf mips/t-libgcc-mips16"
b93bf04a 1950 target_cpu_default="MASK_64BIT|MASK_FLOAT64"
515fdcc2 1951 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
bb607926 1952 ;;
742d48c2 1953mips*-*-rtems*)
f3449a3c 1954 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/rtems.h rtems.h"
5aeba334 1955 tmake_file="mips/t-elf mips/t-libgcc-mips16 t-rtems mips/t-rtems"
bb607926 1956 ;;
d9799238 1957mips-wrs-vxworks)
c77a1c92 1958 tm_file="elfos.h ${tm_file} svr4.h mips/elf.h vx-common.h vxworks.h mips/vxworks.h"
d9799238 1959 tmake_file="${tmake_file} mips/t-vxworks"
d9799238 1960 ;;
f4deb416 1961mipstx39-*-elf* | mipstx39el-*-elf*)
f3449a3c 1962 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/r3900.h mips/elf.h"
5aeba334 1963 tmake_file="mips/t-r3900 mips/t-libgcc-mips16"
bb607926 1964 ;;
68cbb7e3 1965mmix-knuth-mmixware)
f3449a3c 1966 tm_file="${tm_file} newlib-stdint.h"
805e22b2 1967 need_64bit_hwint=yes
f3449a3c 1968 use_gcc_stdint=wrap
68cbb7e3 1969 ;;
bb607926 1970mn10300-*-*)
f3449a3c 1971 tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
bb607926 1972 if test x$stabs = xyes
1973 then
1974 tm_file="${tm_file} dbx.h"
1975 fi
1976 use_collect2=no
f3449a3c 1977 use_gcc_stdint=wrap
bb607926 1978 ;;
bb607926 1979pdp11-*-*)
f3449a3c 1980 tm_file="${tm_file} newlib-stdint.h"
1981 use_gcc_stdint=wrap
bb607926 1982 ;;
8372e9ea 1983picochip-*)
f3449a3c 1984 tm_file="${tm_file} newlib-stdint.h"
1985 use_gcc_stdint=wrap
8372e9ea 1986 ;;
0ac7fc08 1987# port not yet contributed
1988#powerpc-*-openbsd*)
b8886216 1989# tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-fprules-fpbit "
0ac7fc08 1990# extra_headers=
1991# ;;
17ac16a1 1992powerpc-*-darwin*)
16ac04e7 1993 extra_options="${extra_options} rs6000/darwin.opt"
3da996b9 1994 extra_parts="crt2.o"
8949381a 1995 case ${target} in
9b1f316f 1996 *-darwin1[0-9]* | *-darwin[8-9]*)
3ebc7dec 1997 tmake_file="${tmake_file} rs6000/t-darwin8"
9b1f316f 1998 tm_file="${tm_file} rs6000/darwin8.h"
1999 ;;
2000 *-darwin7*)
2001 tm_file="${tm_file} rs6000/darwin7.h"
2002 ;;
2003 *-darwin[0-6]*)
2004 ;;
8949381a 2005 esac
e2e89254 2006 tmake_file="${tmake_file} t-slibgcc-darwin"
f64b48e2 2007 lto_binary_reader=lto-macho
25b7153e 2008 extra_headers=altivec.h
17ac16a1 2009 ;;
84eba009 2010powerpc64-*-darwin*)
84eba009 2011 extra_options="${extra_options} ${cpu_type}/darwin.opt"
191bb103 2012 extra_parts="crt2.o"
e2e89254 2013 tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc-darwin"
191bb103 2014 tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h"
f64b48e2 2015 lto_binary_reader=lto-macho
84eba009 2016 extra_headers=altivec.h
2017 ;;
327811ee 2018powerpc*-*-freebsd*)
7a6d1a72 2019 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h"
b8886216 2020 tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
16ac04e7 2021 extra_options="${extra_options} rs6000/sysv4.opt"
327811ee 2022 ;;
93006578 2023powerpc-*-netbsd*)
5eeaefac 2024 tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
2025 tmake_file="${tmake_file} rs6000/t-netbsd"
16ac04e7 2026 extra_options="${extra_options} rs6000/sysv4.opt"
93006578 2027 ;;
6f0a80d3 2028powerpc-*-eabispe*)
f3449a3c 2029 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabispe.h"
16ac04e7 2030 extra_options="${extra_options} rs6000/sysv4.opt"
79bbdafd 2031 tmake_file="rs6000/t-spe rs6000/t-ppccomm"
f3449a3c 2032 use_gcc_stdint=wrap
6f0a80d3 2033 ;;
bbf524e7 2034powerpc-*-eabisimaltivec*)
f3449a3c 2035 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h rs6000/eabialtivec.h"
16ac04e7 2036 extra_options="${extra_options} rs6000/sysv4.opt"
b8886216 2037 tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcendian rs6000/t-ppccomm"
f3449a3c 2038 use_gcc_stdint=wrap
bbf524e7 2039 ;;
bb607926 2040powerpc-*-eabisim*)
f3449a3c 2041 tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h"
16ac04e7 2042 extra_options="${extra_options} rs6000/sysv4.opt"
b8886216 2043 tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
f3449a3c 2044 use_gcc_stdint=wrap
bb607926 2045 ;;
2046powerpc-*-elf*)
f3449a3c 2047 tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h"
16ac04e7 2048 extra_options="${extra_options} rs6000/sysv4.opt"
b8886216 2049 tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
bb607926 2050 ;;
553c09a8 2051powerpc-*-eabialtivec*)
f3449a3c 2052 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabialtivec.h"
16ac04e7 2053 extra_options="${extra_options} rs6000/sysv4.opt"
b8886216 2054 tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcendian rs6000/t-ppccomm"
f3449a3c 2055 use_gcc_stdint=wrap
553c09a8 2056 ;;
3f5debcf 2057powerpc-xilinx-eabi*)
b91a266c 2058 tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/singlefp.h rs6000/xfpu.h rs6000/xilinx.h"
3f5debcf 2059 extra_options="${extra_options} rs6000/sysv4.opt"
c6312735 2060 tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm rs6000/t-xilinx"
f3449a3c 2061 use_gcc_stdint=wrap
3f5debcf 2062 ;;
bb607926 2063powerpc-*-eabi*)
f3449a3c 2064 tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h"
16ac04e7 2065 extra_options="${extra_options} rs6000/sysv4.opt"
b8886216 2066 tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
f3449a3c 2067 use_gcc_stdint=wrap
bb607926 2068 ;;
2069powerpc-*-rtems*)
f3449a3c 2070 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/rtems.h rtems.h"
16ac04e7 2071 extra_options="${extra_options} rs6000/sysv4.opt"
b8886216 2072 tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-rtems t-rtems rs6000/t-ppccomm"
bb607926 2073 ;;
4e5e2802 2074powerpc-*-linux* | powerpc64-*-linux*)
cc5ffbb8 2075 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
16ac04e7 2076 extra_options="${extra_options} rs6000/sysv4.opt"
4e5e2802 2077 tmake_file="t-dfprules rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
8d40ea45 2078 maybe_biarch=yes
2079 case ${target} in
4e5e2802 2080 powerpc64-*-linux*spe* | powerpc64-*-linux*paired*)
2081 echo "*** Configuration ${target} not supported" 1>&2
2082 exit 1
2083 ;;
8d40ea45 2084 powerpc-*-linux*spe* | powerpc-*-linux*paired*)
4e5e2802 2085 maybe_biarch=
2086 ;;
2087 powerpc64-*-linux*)
2088 test x$with_cpu != x || cpu_is_64bit=yes
50ec89c7 2089 maybe_biarch=always
4e5e2802 2090 ;;
8d40ea45 2091 esac
2092 case ${maybe_biarch}:${enable_targets}:${cpu_is_64bit} in
50ec89c7 2093 always:* | yes:*powerpc64* | yes:all:* | yes:*:yes)
cc5ffbb8 2094 if test x$cpu_is_64bit = xyes; then
2095 tm_file="${tm_file} rs6000/default64.h"
2096 fi
f3449a3c 2097 tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h glibc-stdint.h"
cc5ffbb8 2098 tmake_file="$tmake_file rs6000/t-linux64"
e168332d 2099 extra_options="${extra_options} rs6000/linux64.opt"
cc5ffbb8 2100 ;;
2101 *)
f3449a3c 2102 tm_file="${tm_file} rs6000/linux.h glibc-stdint.h"
cc5ffbb8 2103 ;;
2104 esac
a3eb2117 2105 tmake_file="${tmake_file} t-slibgcc-libgcc rs6000/t-fprules-softfp soft-fp/t-softfp"
8d40ea45 2106 case ${target} in
2107 powerpc*-*-linux*altivec*)
2108 tm_file="${tm_file} rs6000/linuxaltivec.h" ;;
2109 powerpc*-*-linux*spe*)
2110 tm_file="${tm_file} rs6000/linuxspe.h rs6000/e500.h" ;;
2111 powerpc*-*-linux*paired*)
2112 tm_file="${tm_file} rs6000/750cl.h" ;;
2113 esac
197f58fa 2114 if test x${enable_secureplt} = xyes; then
2115 tm_file="rs6000/secureplt.h ${tm_file}"
2116 fi
bb607926 2117 ;;
4e5e2802 2118powerpc64-*-gnu*)
2119 tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/default64.h rs6000/linux64.h rs6000/gnu.h glibc-stdint.h"
2120 extra_options="${extra_options} rs6000/sysv4.opt rs6000/linux64.opt"
a3eb2117 2121 tmake_file="t-slibgcc-elf-ver t-slibgcc-libgcc t-gnu"
4e5e2802 2122 ;;
fca26bb8 2123powerpc-*-gnu-gnualtivec*)
f3449a3c 2124 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 glibc-stdint.h"
16ac04e7 2125 extra_options="${extra_options} rs6000/sysv4.opt"
a3eb2117 2126 tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos t-slibgcc-elf-ver t-slibgcc-libgcc t-gnu rs6000/t-ppccomm"
fca26bb8 2127 if test x$enable_threads = xyes; then
2128 thread_file='posix'
2129 fi
2130 ;;
2131powerpc-*-gnu*)
f3449a3c 2132 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 glibc-stdint.h"
a3eb2117 2133 tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos t-slibgcc-elf-ver t-slibgcc-libgcc t-gnu rs6000/t-ppccomm"
16ac04e7 2134 extra_options="${extra_options} rs6000/sysv4.opt"
fca26bb8 2135 if test x$enable_threads = xyes; then
2136 thread_file='posix'
2137 fi
2138 ;;
e6eccdb3 2139powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
c77a1c92 2140 tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
b8886216 2141 tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppccomm rs6000/t-vxworks"
16ac04e7 2142 extra_options="${extra_options} rs6000/sysv4.opt"
805e22b2 2143 extra_headers=ppc-asm.h
e6eccdb3 2144 case ${target} in
2145 *-vxworksae*)
7c69b636 2146 tm_file="${tm_file} vx-common.h vxworksae.h rs6000/vxworks.h rs6000/e500.h rs6000/vxworksae.h"
e6eccdb3 2147 tmake_file="${tmake_file} rs6000/t-vxworksae"
2148 ;;
2149 *-vxworks*)
7c69b636 2150 tm_file="${tm_file} vx-common.h vxworks.h rs6000/vxworks.h rs6000/e500.h"
e6eccdb3 2151 ;;
2152 esac
805e22b2 2153 ;;
d895dbf9 2154powerpc-*-lynxos*)
2155 xm_defines=POSIX
2156 tm_file="${tm_file} dbxelf.h elfos.h rs6000/sysv4.h rs6000/lynx.h lynx.h"
2157 tmake_file="t-lynx rs6000/t-lynx"
16ac04e7 2158 extra_options="${extra_options} rs6000/sysv4.opt lynx.opt"
d895dbf9 2159 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
0c44645a 2160 extra_options="${extra_options} lynx.opt"
d895dbf9 2161 thread_file=lynx
2162 gnu_ld=yes
2163 gas=yes
2164 ;;
bb607926 2165powerpcle-*-elf*)
f3449a3c 2166 tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h"
b8886216 2167 tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
16ac04e7 2168 extra_options="${extra_options} rs6000/sysv4.opt"
bb607926 2169 ;;
2170powerpcle-*-eabisim*)
f3449a3c 2171 tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h"
b8886216 2172 tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
16ac04e7 2173 extra_options="${extra_options} rs6000/sysv4.opt"
f3449a3c 2174 use_gcc_stdint=wrap
bb607926 2175 ;;
2176powerpcle-*-eabi*)
f3449a3c 2177 tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h"
b8886216 2178 tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm"
16ac04e7 2179 extra_options="${extra_options} rs6000/sysv4.opt"
f3449a3c 2180 use_gcc_stdint=wrap
bb607926 2181 ;;
bb607926 2182rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
b5e8a0bc 2183 tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h rs6000/aix-stdint.h"
bb607926 2184 tmake_file=rs6000/t-aix43
a8bb341c 2185 extra_options="${extra_options} rs6000/aix64.opt"
bb607926 2186 use_collect2=yes
2187 thread_file='aix'
b5e8a0bc 2188 use_gcc_stdint=provide
83287f80 2189 extra_headers=
bb607926 2190 ;;
b1974978 2191rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
b5e8a0bc 2192 tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h rs6000/aix-stdint.h"
a8bb341c 2193 extra_options="${extra_options} rs6000/aix64.opt"
bb607926 2194 tmake_file=rs6000/t-aix43
bb607926 2195 use_collect2=yes
2196 thread_file='aix'
b5e8a0bc 2197 use_gcc_stdint=wrap
83287f80 2198 extra_headers=
bb607926 2199 ;;
d4115f8c 2200rs6000-ibm-aix5.2.* | powerpc-ibm-aix5.2.*)
b5e8a0bc 2201 tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h rs6000/aix-stdint.h"
b1974978 2202 tmake_file=rs6000/t-aix52
a8bb341c 2203 extra_options="${extra_options} rs6000/aix64.opt"
b1974978 2204 use_collect2=yes
2205 thread_file='aix'
b5e8a0bc 2206 use_gcc_stdint=wrap
b1974978 2207 extra_headers=
2208 ;;
0cc77516 2209rs6000-ibm-aix5.3.* | powerpc-ibm-aix5.3.*)
b5e8a0bc 2210 tm_file="${tm_file} rs6000/aix.h rs6000/aix53.h rs6000/xcoff.h rs6000/aix-stdint.h"
d4115f8c 2211 tmake_file=rs6000/t-aix52
2212 extra_options="${extra_options} rs6000/aix64.opt"
2213 use_collect2=yes
2214 thread_file='aix'
b5e8a0bc 2215 use_gcc_stdint=wrap
4b39bf76 2216 extra_headers=altivec.h
d4115f8c 2217 ;;
0cc77516 2218rs6000-ibm-aix[6789].* | powerpc-ibm-aix[6789].*)
b5e8a0bc 2219 tm_file="${tm_file} rs6000/aix.h rs6000/aix61.h rs6000/xcoff.h rs6000/aix-stdint.h"
0cc77516 2220 tmake_file=rs6000/t-aix52
2221 extra_options="${extra_options} rs6000/aix64.opt"
2222 use_collect2=yes
2223 thread_file='aix'
b5e8a0bc 2224 use_gcc_stdint=wrap
0cc77516 2225 extra_headers=altivec.h
2226 ;;
24833e1a 2227rx-*-elf*)
2228 tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file} ../../libgcc/config/rx/rx-abi.h"
2229 tmake_file="${tmake_file} rx/t-rx"
2230 ;;
582b17a6 2231s390-*-linux*)
f3449a3c 2232 tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h s390/linux.h"
346e8a0c 2233 ;;
582b17a6 2234s390x-*-linux*)
f3449a3c 2235 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h s390/linux.h"
48de175f 2236 tm_p_file=s390/s390-protos.h
2237 md_file=s390/s390.md
b5ccaa7b 2238 extra_modes=s390/s390-modes.def
48de175f 2239 out_file=s390/s390.c
e38fe738 2240 tmake_file="${tmake_file} s390/t-linux64"
346e8a0c 2241 ;;
7c1f201b 2242s390x-ibm-tpf*)
9f88bc9d 2243 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h s390/tpf.h"
2244 tm_p_file=s390/s390-protos.h
2245 md_file=s390/s390.md
2246 extra_modes=s390/s390-modes.def
2247 out_file=s390/s390.c
2248 extra_parts="crtbeginS.o crtendS.o"
9f88bc9d 2249 thread_file='tpf'
2250 extra_options="${extra_options} s390/tpf.opt"
7c1f201b 2251 ;;
3dbfe3e4 2252score-*-elf)
f3449a3c 2253 tm_file="dbxelf.h elfos.h score/elf.h score/score.h newlib-stdint.h"
3dbfe3e4 2254 tmake_file=score/t-score-elf
c0f96d15 2255 extra_objs="score7.o score3.o"
3dbfe3e4 2256 ;;
6af9f7ea 2257sh-*-elf* | sh[12346l]*-*-elf* | \
db281f5a 2258sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
ccf1c0f1 2259 sh-*-linux* | sh[2346lbe]*-*-linux* | \
07168dd9 2260 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2261 sh64-*-netbsd* | sh64l*-*-netbsd*)
2262 tmake_file="${tmake_file} sh/t-sh sh/t-elf"
2263 if test x${with_endian} = x; then
2264 case ${target} in
2265 sh[1234]*be-*-* | sh[1234]*eb-*-*) with_endian=big ;;
2266 shbe-*-* | sheb-*-*) with_endian=big,little ;;
2267 sh[1234]l* | sh[34]*-*-linux*) with_endian=little ;;
2268 shl* | sh64l* | sh*-*-linux* | \
2269 sh5l* | sh-superh-elf) with_endian=little,big ;;
2270 sh[1234]*-*-*) with_endian=big ;;
2271 *) with_endian=big,little ;;
2272 esac
2273 fi
f555bf81 2274 # TM_ENDIAN_CONFIG is used by t-sh to determine multilibs.
2275 # First word : the default endian.
2276 # Second word: the secondary endian (optional).
07168dd9 2277 case ${with_endian} in
f555bf81 2278 big) TM_ENDIAN_CONFIG=mb ;;
2279 little) TM_ENDIAN_CONFIG=ml ;;
2280 big,little) TM_ENDIAN_CONFIG="mb ml" ;;
2281 little,big) TM_ENDIAN_CONFIG="ml mb" ;;
07168dd9 2282 *) echo "with_endian=${with_endian} not supported."; exit 1 ;;
2283 esac
2284 case ${with_endian} in
2285 little*) tm_file="sh/little.h ${tm_file}" ;;
2286 esac
2287 tm_file="${tm_file} dbxelf.h elfos.h"
09c6646e 2288 case ${target} in
07168dd9 2289 sh*-*-netbsd*) ;;
2290 *) tm_file="${tm_file} svr4.h" ;;
febf5bcd 2291 esac
07168dd9 2292 tm_file="${tm_file} sh/elf.h"
09c6646e 2293 case ${target} in
07168dd9 2294 sh*-*-linux*) tmake_file="${tmake_file} sh/t-linux"
f3449a3c 2295 tm_file="${tm_file} linux.h glibc-stdint.h sh/linux.h" ;;
07168dd9 2296 sh*-*-netbsd*) tm_file="${tm_file} netbsd.h netbsd-elf.h sh/netbsd-elf.h" ;;
cfcf8539 2297 sh*-superh-elf) if test x$with_libgloss != xno; then
2298 with_libgloss=yes
2299 tm_file="${tm_file} sh/newlib.h"
2300 fi
0e6b6360 2301 tm_file="${tm_file} sh/embed-elf.h"
cfcf8539 2302 tm_file="${tm_file} sh/superh.h"
2303 tmake_file="${tmake_file} sh/t-superh"
2304 extra_options="${extra_options} sh/superh.opt" ;;
65a1f1e9 2305 *) if test x$with_newlib = xyes \
2306 && test x$with_libgloss = xyes; then
2307 tm_file="${tm_file} sh/newlib.h"
2308 fi
2309 tm_file="${tm_file} sh/embed-elf.h" ;;
07168dd9 2310 esac
2311 case ${target} in
2312 sh5*-*-netbsd*)
2313 # SHmedia, 32-bit ABI
2314 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd"
2315 ;;
2316 sh64*-netbsd*)
2317 # SHmedia, 64-bit ABI
2318 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd sh/t-netbsd-sh5-64"
2319 ;;
2320 *-*-netbsd)
2321 tmake_file="${tmake_file} sh/t-netbsd"
2322 ;;
2323 sh64*-*-linux*)
2324 tmake_file="${tmake_file} sh/t-sh64 sh/t-linux64"
2325 tm_file="${tm_file} sh/sh64.h"
2326 extra_headers="shmedia.h ushmedia.h sshmedia.h"
2327 ;;
febf5bcd 2328 sh64*)
2329 tmake_file="${tmake_file} sh/t-sh64"
2330 tm_file="${tm_file} sh/sh64.h"
2331 extra_headers="shmedia.h ushmedia.h sshmedia.h"
febf5bcd 2332 ;;
db281f5a 2333 *-*-symbianelf*)
2334 tmake_file="sh/t-symbian"
2335 tm_file="sh/symbian-pre.h sh/little.h ${tm_file} sh/symbian-post.h"
6f88e480 2336 c_target_objs="symbian-base.o symbian-c.o"
2337 cxx_target_objs="symbian-base.o symbian-cxx.o"
db281f5a 2338 extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
3ebc7dec 2339 ;;
f3449a3c 2340 *-*-elf*)
2341 tm_file="${tm_file} newlib-stdint.h"
2342 ;;
493914a8 2343 esac
07168dd9 2344 # sed el/eb endian suffixes away to avoid confusion with sh[23]e
2345 case `echo ${target} | sed 's/e[lb]-/-/'` in
2346 sh64*-*-netbsd*) sh_cpu_target=sh5-64media ;;
2347 sh64* | sh5*-*-netbsd*) sh_cpu_target=sh5-32media ;;
9435e831 2348 sh4a_single_only*) sh_cpu_target=sh4a-single-only ;;
2349 sh4a_single*) sh_cpu_target=sh4a-single ;;
2350 sh4a_nofpu*) sh_cpu_target=sh4a-nofpu ;;
2351 sh4al) sh_cpu_target=sh4al ;;
2352 sh4a*) sh_cpu_target=sh4a ;;
07168dd9 2353 sh4_single_only*) sh_cpu_target=sh4-single-only ;;
2354 sh4_single*) sh_cpu_target=sh4-single ;;
2355 sh4_nofpu*) sh_cpu_target=sh4-nofpu ;;
2356 sh4* | sh-superh-*) sh_cpu_target=sh4 ;;
2357 sh3e*) sh_cpu_target=sh3e ;;
2358 sh*-*-netbsd* | sh3*) sh_cpu_target=sh3 ;;
7105fb72 2359 sh2a_single_only*) sh_cpu_target=sh2a-single-only ;;
2360 sh2a_single*) sh_cpu_target=sh2a-single ;;
2361 sh2a_nofpu*) sh_cpu_target=sh2a-nofpu ;;
2362 sh2a*) sh_cpu_target=sh2a ;;
07168dd9 2363 sh2e*) sh_cpu_target=sh2e ;;
2364 sh2*) sh_cpu_target=sh2 ;;
2365 *) sh_cpu_target=sh1 ;;
aa76b2b5 2366 esac
65a1f1e9 2367 # did the user say --without-fp ?
2368 if test x$with_fp = xno; then
2369 case ${sh_cpu_target} in
2370 sh5-*media) sh_cpu_target=${sh_cpu_target}-nofpu ;;
2371 sh4al | sh1) ;;
2372 sh4a* ) sh_cpu_target=sh4a-nofpu ;;
2373 sh4*) sh_cpu_target=sh4-nofpu ;;
2374 sh3*) sh_cpu_target=sh3 ;;
2375 sh2a*) sh_cpu_target=sh2a-nofpu ;;
2376 sh2*) sh_cpu_target=sh2 ;;
2377 *) echo --without-fp not available for $target: ignored
2378 esac
2379 tm_defines="$tm_defines STRICT_NOFPU=1"
2380 fi
07168dd9 2381 sh_cpu_default="`echo $with_cpu|sed s/^m/sh/|tr A-Z_ a-z-`"
2382 case $sh_cpu_default in
2383 sh5-64media-nofpu | sh5-64media | \
2384 sh5-32media-nofpu | sh5-32media | sh5-compact-nofpu | sh5-compact | \
7105fb72 2385 sh2a-single-only | sh2a-single | sh2a-nofpu | sh2a | \
9435e831 2386 sh4a-single-only | sh4a-single | sh4a-nofpu | sh4a | sh4al | \
99b0f6d9 2387 sh4-single-only | sh4-single | sh4-nofpu | sh4 | sh4-300 | \
eb4e5153 2388 sh3e | sh3 | sh2e | sh2 | sh1) ;;
07168dd9 2389 "") sh_cpu_default=${sh_cpu_target} ;;
2390 *) echo "with_cpu=$with_cpu not supported"; exit 1 ;;
febf5bcd 2391 esac
07168dd9 2392 sh_multilibs=${with_multilib_list}
f555bf81 2393 if test "$sh_multilibs" = "default" ; then
07168dd9 2394 case ${target} in
65a1f1e9 2395 sh64-superh-linux* | \
07168dd9 2396 sh[1234]*) sh_multilibs=${sh_cpu_target} ;;
2397 sh64* | sh5*) sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;;
2398 sh-superh-*) sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;;
2399 sh*-*-linux*) sh_multilibs=m1,m3e,m4 ;;
2400 sh*-*-netbsd*) sh_multilibs=m3,m3e,m4 ;;
7105fb72 2401 *) sh_multilibs=m1,m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single ;;
07168dd9 2402 esac
65a1f1e9 2403 if test x$with_fp = xno; then
2404 sh_multilibs="`echo $sh_multilibs|sed -e s/m4/sh4-nofpu/ -e s/,m4-[^,]*//g -e s/,m[23]e// -e s/m2a,m2a-single/m2a-nofpu/ -e s/m5-..m....,//g`"
2405 fi
07168dd9 2406 fi
3a6994f8 2407 target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`
07168dd9 2408 tm_defines=${tm_defines}' SH_MULTILIB_CPU_DEFAULT=\"'`echo $sh_cpu_default|sed s/sh/m/`'\"'
f555bf81 2409 tm_defines="$tm_defines SUPPORT_`echo $sh_cpu_default | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1"
b56481ad 2410 sh_multilibs=`echo $sh_multilibs | sed -e 's/,/ /g' -e 's/^[Ss][Hh]/m/' -e 's/ [Ss][Hh]/ m/g' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz-`
07168dd9 2411 for sh_multilib in ${sh_multilibs}; do
2412 case ${sh_multilib} in
f555bf81 2413 m1 | m2 | m2e | m3 | m3e | \
2414 m4 | m4-single | m4-single-only | m4-nofpu | m4-300 |\
2415 m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al | \
2416 m2a | m2a-single | m2a-single-only | m2a-nofpu | \
2417 m5-64media | m5-64media-nofpu | \
2418 m5-32media | m5-32media-nofpu | \
2419 m5-compact | m5-compact-nofpu)
2420 # TM_MULTILIB_CONFIG is used by t-sh for the non-endian multilib definition
2421 # It is passed to MULTIILIB_OPTIONS verbatim.
2422 TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG}/${sh_multilib}"
2423 tm_defines="$tm_defines SUPPORT_`echo $sh_multilib | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1"
07168dd9 2424 ;;
f555bf81 2425 \!*) # TM_MULTILIB_EXCEPTIONS_CONFIG is used by t-sh
2426 # It is passed the MULTILIB_EXCEPTIONS verbatim.
2427 TM_MULTILIB_EXCEPTIONS_CONFIG="${TM_MULTILIB_EXCEPTIONS_CONFIG} `echo $sh_multilib | sed 's/^!//'`" ;;
07168dd9 2428 *)
2429 echo "with_multilib_list=${sh_multilib} not supported."
2430 exit 1
2431 ;;
2432 esac
2433 done
f555bf81 2434 TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's:^/::'`
3a6994f8 2435 if test x${enable_incomplete_targets} = xyes ; then
156fac8b 2436 tm_defines="$tm_defines SUPPORT_SH1=1 SUPPORT_SH2E=1 SUPPORT_SH4=1 SUPPORT_SH4_SINGLE=1 SUPPORT_SH2A=1 SUPPORT_SH2A_SINGLE=1 SUPPORT_SH5_32MEDIA=1 SUPPORT_SH5_32MEDIA_NOFPU=1 SUPPORT_SH5_64MEDIA=1 SUPPORT_SH5_64MEDIA_NOFPU=1"
07168dd9 2437 fi
fa22494c 2438 tm_file="$tm_file ./sysroot-suffix.h"
2439 tmake_file="$tmake_file t-sysroot-suffix"
87e19636 2440 ;;
26f6dfe2 2441sh-*-rtems*)
0e0debcf 2442 tmake_file="sh/t-sh sh/t-elf t-rtems sh/t-rtems"
f3449a3c 2443 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h newlib-stdint.h"
26f6dfe2 2444 ;;
d9799238 2445sh-wrs-vxworks)
2446 tmake_file="$tmake_file sh/t-sh sh/t-elf sh/t-vxworks"
a9cfe83b 2447 tm_file="${tm_file} elfos.h svr4.h sh/elf.h sh/embed-elf.h vx-common.h vxworks.h sh/vxworks.h"
d9799238 2448 ;;
f470dade 2449sparc-*-netbsdelf*)
8c393d8d 2450 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
a9341855 2451 extra_options="${extra_options} sparc/long-double-switch.opt"
f470dade 2452 ;;
61f2f0de 2453sparc64-*-openbsd*)
8e6600a1 2454 tm_file="sparc/openbsd1-64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp64-elf.h"
2455 tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h sparc/openbsd64.h"
a9341855 2456 extra_options="${extra_options} sparc/little-endian.opt"
61f2f0de 2457 gas=yes gnu_ld=yes
2458 with_cpu=ultrasparc
61f2f0de 2459 ;;
bb607926 2460sparc-*-elf*)
f3449a3c 2461 tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h svr4.h sparc/sysv4.h sparc/sp-elf.h"
f24facde 2462 tmake_file="sparc/t-elf sparc/t-crtfm"
bb607926 2463 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
bb607926 2464 ;;
7800959d 2465sparc-*-linux*) # SPARC's running GNU/Linux, libc6
16528046 2466 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h linux.h glibc-stdint.h"
a9341855 2467 extra_options="${extra_options} sparc/long-double-switch.opt"
64c6f17e 2468 tmake_file="${tmake_file} sparc/t-linux"
1168681b 2469 if test x$enable_targets = xall; then
2470 tm_file="sparc/biarch64.h ${tm_file} sparc/linux64.h"
64c6f17e 2471 tmake_file="${tmake_file} sparc/t-linux64"
1168681b 2472 else
2473 tm_file="${tm_file} sparc/linux.h"
1168681b 2474 fi
64c6f17e 2475 tmake_file="${tmake_file} sparc/t-crtfm"
bb607926 2476 ;;
41e38a87 2477sparc-*-rtems*)
f3449a3c 2478 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h"
8c9facdb 2479 tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
bb607926 2480 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
bb607926 2481 ;;
9afa4711 2482sparc64-*-rtems*)
2483 tm_file="${tm_file} dbxelf.h elfos.h svr4.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h sparc/rtemself.h rtems.h"
2484 extra_options="${extra_options} sparc/little-endian.opt"
2485 tmake_file="${tmake_file} sparc/t-crtfm t-rtems"
2486 extra_parts="crtbegin.o crtend.o"
2487 ;;
8acfe9c6 2488sparc*-*-solaris2*)
517cabaa 2489 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h"
2490 case ${target} in
8acfe9c6 2491 *-*-solaris2.1[0-9]*)
517cabaa 2492 tm_file="${tm_file} sol2-10.h"
f3449a3c 2493 use_gcc_stdint=wrap
2494 ;;
8acfe9c6 2495 *)
f3449a3c 2496 use_gcc_stdint=provide
517cabaa 2497 ;;
2498 esac
8acfe9c6 2499 tm_file="${tm_file} sparc/sol2.h"
8fde03ba 2500 case ${target} in
8acfe9c6 2501 sparc64-*-* | sparcv9-*-*)
2502 tm_file="${tm_file} sparc/sol2-64.h"
f3449a3c 2503 ;;
8acfe9c6 2504 *)
2505 test x$with_cpu != x || with_cpu=v9
517cabaa 2506 ;;
8fde03ba 2507 esac
8acfe9c6 2508 tm_file="${tm_file} sparc/sol2-bi.h"
7d6171f2 2509 if test x$gas = xyes; then
16528046 2510 tm_file="${tm_file} sparc/sol2-gas.h sparc/sol2-gas-bi.h"
7d6171f2 2511 fi
16528046 2512 if test x$gnu_ld = xyes; then
9232c3b6 2513 tm_file="${tm_file} sol2-gld.h sparc/sol2-gld-bi.h"
16528046 2514 fi
2515 tm_file="${tm_file} tm-dwarf2.h"
2516 tmake_file="t-sol2 sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
bb607926 2517 if test x$gnu_ld = xyes; then
32e8a7fc 2518 tmake_file="$tmake_file t-slibgcc-elf-ver"
bb607926 2519 else
32e8a7fc 2520 tmake_file="$tmake_file t-slibgcc-sld"
bb607926 2521 fi
7d070520 2522 if test x$gas = xyes; then
2523 tm_file="usegas.h ${tm_file}"
2524 fi
1e9af880 2525 c_target_objs="sol2-c.o"
2526 cxx_target_objs="sol2-c.o"
e02a1225 2527 extra_objs="sol2.o"
2528 tm_p_file="${tm_p_file} sol2-protos.h"
d5a614bc 2529 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
334c8279 2530 case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
8fde03ba 2531 "":yes:* | yes:yes:* )
6af9f7ea 2532 thread_file=posix
8fde03ba 2533 ;;
2534 "":*:yes | yes:*:yes )
2535 thread_file=solaris
2536 ;;
334c8279 2537 esac
bb607926 2538 ;;
723e1902 2539sparc-wrs-vxworks)
2540 tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h vx-common.h vxworks.h sparc/vxworks.h"
2541 tmake_file="${tmake_file} sparc/t-vxworks"
2542 ;;
bb607926 2543sparc64-*-elf*)
f3449a3c 2544 tm_file="${tm_file} dbxelf.h elfos.h svr4.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h"
a9341855 2545 extra_options="${extra_options} sparc/little-endian.opt"
8c9facdb 2546 tmake_file="${tmake_file} sparc/t-crtfm"
bb607926 2547 extra_parts="crtbegin.o crtend.o"
2548 ;;
cf481f89 2549sparc64-*-freebsd*|ultrasparc-*-freebsd*)
2550 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
a9341855 2551 extra_options="${extra_options} sparc/long-double-switch.opt"
8c9facdb 2552 tmake_file="${tmake_file} sparc/t-crtfm"
cf481f89 2553 case "x$with_cpu" in
68345096 2554 xultrasparc) ;;
cf481f89 2555 x) with_cpu=ultrasparc ;;
2556 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
2557 esac
2558 ;;
7800959d 2559sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
16528046 2560 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h linux.h glibc-stdint.h sparc/linux64.h"
a9341855 2561 extra_options="${extra_options} sparc/long-double-switch.opt"
0d6c33ea 2562 tmake_file="${tmake_file} sparc/t-linux sparc/t-linux64 sparc/t-crtfm"
bb607926 2563 ;;
1897a3df 2564sparc64-*-netbsd*)
1897a3df 2565 tm_file="sparc/biarch64.h ${tm_file}"
2566 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
a9341855 2567 extra_options="${extra_options} sparc/long-double-switch.opt"
2568 tmake_file="${tmake_file} sparc/t-netbsd64"
1897a3df 2569 ;;
644459d0 2570spu-*-elf*)
f3449a3c 2571 tm_file="dbxelf.h elfos.h spu/spu-elf.h spu/spu.h newlib-stdint.h"
644459d0 2572 tmake_file="spu/t-spu-elf"
6cf5579e 2573 extra_headers="spu_intrinsics.h spu_internals.h vmx2spu.h spu_mfcio.h vec_types.h spu_cache.h"
644459d0 2574 extra_modes=spu/spu-modes.def
2575 c_target_objs="${c_target_objs} spu-c.o"
2576 cxx_target_objs="${cxx_target_objs} spu-c.o"
2577 ;;
00b114bf 2578v850e1-*-*)
2579 target_cpu_default="TARGET_CPU_v850e1"
f3449a3c 2580 tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h v850/v850.h"
00b114bf 2581 tm_p_file=v850/v850-protos.h
2582 tmake_file=v850/t-v850e
2583 md_file=v850/v850.md
65b688d7 2584 extra_modes=v850/v850-modes.def
00b114bf 2585 out_file=v850/v850.c
bfb701b0 2586 extra_options="${extra_options} v850/v850.opt"
00b114bf 2587 if test x$stabs = xyes
2588 then
2589 tm_file="${tm_file} dbx.h"
2590 fi
2591 use_collect2=no
2592 c_target_objs="v850-c.o"
2593 cxx_target_objs="v850-c.o"
f3449a3c 2594 use_gcc_stdint=wrap
00b114bf 2595 ;;
5dd3389c 2596v850e-*-*)
2597 target_cpu_default="TARGET_CPU_v850e"
f3449a3c 2598 tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h v850/v850.h"
5dd3389c 2599 tm_p_file=v850/v850-protos.h
c7feb70c 2600 tmake_file=v850/t-v850e
5dd3389c 2601 md_file=v850/v850.md
65b688d7 2602 extra_modes=v850/v850-modes.def
5dd3389c 2603 out_file=v850/v850.c
bfb701b0 2604 extra_options="${extra_options} v850/v850.opt"
5dd3389c 2605 if test x$stabs = xyes
2606 then
2607 tm_file="${tm_file} dbx.h"
2608 fi
2609 use_collect2=no
2610 c_target_objs="v850-c.o"
2611 cxx_target_objs="v850-c.o"
f3449a3c 2612 use_gcc_stdint=wrap
5dd3389c 2613 ;;
bb607926 2614v850-*-*)
2615 target_cpu_default="TARGET_CPU_generic"
f3449a3c 2616 tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
bb607926 2617 tmake_file=v850/t-v850
2618 if test x$stabs = xyes
2619 then
2620 tm_file="${tm_file} dbx.h"
2621 fi
2622 use_collect2=no
e101acea 2623 c_target_objs="v850-c.o"
2624 cxx_target_objs="v850-c.o"
f3449a3c 2625 use_gcc_stdint=wrap
bb607926 2626 ;;
6718899e 2627vax-*-linux*)
2628 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h vax/elf.h vax/linux.h"
fdeaa5f1 2629 tmake_file="${tmake_file} vax/t-linux"
6718899e 2630 ;;
f470dade 2631vax-*-netbsdelf*)
83accbc0 2632 tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
f470dade 2633 ;;
bb607926 2634vax-*-netbsd*)
4ace673e 2635 tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
bb607926 2636 tmake_file=t-netbsd
9a33b00e 2637 extra_parts=""
87a1ff8e 2638 use_collect2=yes
bb607926 2639 ;;
2640vax-*-openbsd*)
8e6600a1 2641 tm_file="vax/vax.h vax/openbsd1.h openbsd.h openbsd-stdint.h openbsd-pthread.h vax/openbsd.h"
bb607926 2642 use_collect2=yes
2643 ;;
9b954fed 2644xstormy16-*-elf)
2645 # For historical reasons, the target files omit the 'x'.
f3449a3c 2646 tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h stormy16/stormy16.h"
9b954fed 2647 tm_p_file=stormy16/stormy16-protos.h
2648 md_file=stormy16/stormy16.md
2649 out_file=stormy16/stormy16.c
840f1481 2650 extra_options=stormy16/stormy16.opt
9b954fed 2651 tmake_file="stormy16/t-stormy16"
2652 extra_parts="crtbegin.o crtend.o"
2653 ;;
a76109da 2654xtensa*-*-elf*)
f3449a3c 2655 tm_file="${tm_file} dbxelf.h elfos.h svr4.h newlib-stdint.h xtensa/elf.h"
54a0bb9d 2656 tmake_file="xtensa/t-xtensa xtensa/t-elf"
f6b7ba2b 2657 ;;
a76109da 2658xtensa*-*-linux*)
f3449a3c 2659 tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h xtensa/linux.h"
1afa774a 2660 tmake_file="${tmake_file} xtensa/t-xtensa xtensa/t-linux"
f6b7ba2b 2661 ;;
1acdfc69 2662am33_2.0-*-linux*)
f3449a3c 2663 tm_file="mn10300/mn10300.h dbxelf.h elfos.h linux.h glibc-stdint.h mn10300/linux.h"
1afa774a 2664 tmake_file="${tmake_file} mn10300/t-linux"
1acdfc69 2665 gas=yes gnu_ld=yes
1acdfc69 2666 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2667 use_collect2=no
2668 ;;
a41d0b5e 2669m32c-*-rtems*)
f3449a3c 2670 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} m32c/rtems.h rtems.h newlib-stdint.h"
a41d0b5e 2671 tmake_file="${tmake_file} t-rtems"
2672 c_target_objs="m32c-pragma.o"
2673 cxx_target_objs="m32c-pragma.o"
2674 ;;
85c84d5c 2675m32c-*-elf*)
f3449a3c 2676 tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
85c84d5c 2677 c_target_objs="m32c-pragma.o"
2678 cxx_target_objs="m32c-pragma.o"
85c84d5c 2679 ;;
bb607926 2680*)
09c6646e 2681 echo "*** Configuration ${target} not supported" 1>&2
bb607926 2682 exit 1
2683 ;;
2684esac
2685
561866ed 2686case ${target} in
561866ed 2687i[34567]86-*-linux* | x86_64-*-linux*)
46f8e3b0 2688 tmake_file="${tmake_file} i386/t-pmm_malloc i386/t-i386"
561866ed 2689 ;;
2690i[34567]86-*-* | x86_64-*-*)
46f8e3b0 2691 tmake_file="${tmake_file} i386/t-gmm_malloc i386/t-i386"
561866ed 2692 ;;
cf61fe8d 2693powerpc*-*-* | rs6000-*-*)
2694 tm_file="${tm_file} rs6000/option-defaults.h"
561866ed 2695esac
2696
3864b642 2697# Support for --with-cpu and related options (and a few unrelated options,
973f8bf3 2698# too).
370a1d10 2699case ${with_cpu} in
2700 yes | no)
2701 echo "--with-cpu must be passed a value" 1>&2
2702 exit 1
2703 ;;
2704esac
f0b281fe 2705
1f64ad21 2706# Set arch and cpu from ${target} and ${target_noncanonical}. Set cpu
2707# to generic if there is no processor scheduler model for the target.
2708arch=
2709cpu=
05b38372 2710arch_without_sse2=no
ed2b8f56 2711arch_without_64bit=no
1f64ad21 2712case ${target} in
2713 i386-*-*)
2714 arch=i386
2715 cpu=i386
05b38372 2716 arch_without_sse2=yes
ed2b8f56 2717 arch_without_64bit=yes
1f64ad21 2718 ;;
2719 i486-*-*)
2720 arch=i486
2721 cpu=i486
05b38372 2722 arch_without_sse2=yes
ed2b8f56 2723 arch_without_64bit=yes
1f64ad21 2724 ;;
2725 i586-*-*)
05b38372 2726 arch_without_sse2=yes
ed2b8f56 2727 arch_without_64bit=yes
1f64ad21 2728 case ${target_noncanonical} in
2729 k6_2-*)
2730 arch=k6-2
2731 cpu=k6-2
2732 ;;
2733 k6_3-*)
2734 arch=k6-3
2735 cpu=k6-3
2736 ;;
2737 k6-*)
2738 arch=k6
2739 cpu=k6
2740 ;;
2741 pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
2742 arch=pentium-mmx
2743 cpu=pentium-mmx
2744 ;;
2745 *)
2746 arch=pentium
2747 cpu=pentium
2748 ;;
2749 esac
2750 ;;
2751 i686-*-* | i786-*-*)
2752 case ${target_noncanonical} in
6fc76bb0 2753 bdver1-*)
2754 arch=bdver1
2755 cpu=bdver1
2756 ;;
1f64ad21 2757 amdfam10-*|barcelona-*)
2758 arch=amdfam10
2759 cpu=amdfam10
2760 ;;
2761 k8_sse3-*|opteron_sse3-*|athlon64_sse3-*)
2762 arch=k8-sse3
2763 cpu=k8-sse3
2764 ;;
2765 k8-*|opteron-*|athlon64-*|athlon_fx-*)
2766 arch=k8
2767 cpu=k8
2768 ;;
2769 athlon_xp-*|athlon_mp-*|athlon_4-*)
2770 arch=athlon-4
2771 cpu=athlon-4
05b38372 2772 arch_without_sse2=yes
ed2b8f56 2773 arch_without_64bit=yes
1f64ad21 2774 ;;
2775 athlon_tbird-*|athlon-*)
2776 arch=athlon
2777 cpu=athlon
05b38372 2778 arch_without_sse2=yes
1f64ad21 2779 ;;
2780 geode-*)
2781 arch=geode
2782 cpu=geode
05b38372 2783 arch_without_sse2=yes
1f64ad21 2784 ;;
2785 pentium2-*)
2786 arch=pentium2
2787 cpu=pentium2
05b38372 2788 arch_without_sse2=yes
1f64ad21 2789 ;;
2790 pentium3-*|pentium3m-*)
2791 arch=pentium3
2792 cpu=pentium3
05b38372 2793 arch_without_sse2=yes
1f64ad21 2794 ;;
2795 pentium4-*|pentium4m-*)
2796 arch=pentium4
2797 cpu=pentium4
2798 ;;
2799 prescott-*)
2800 arch=prescott
2801 cpu=prescott
2802 ;;
2803 nocona-*)
2804 arch=nocona
2805 cpu=nocona
2806 ;;
2807 atom-*)
2808 arch=atom
2809 cpu=atom
2810 ;;
2811 core2-*)
2812 arch=core2
2813 cpu=core2
2814 ;;
2815 pentium_m-*)
2816 arch=pentium-m
2817 cpu=pentium-m
2818 ;;
2819 pentiumpro-*)
2820 arch=pentiumpro
2821 cpu=pentiumpro
05b38372 2822 arch_without_sse2=yes
1f64ad21 2823 ;;
2824 *)
2825 arch=pentiumpro
2826 cpu=generic
05b38372 2827 arch_without_sse2=yes
ed2b8f56 2828 arch_without_64bit=yes
1f64ad21 2829 ;;
2830 esac
2831 ;;
2832 x86_64-*-*)
2833 case ${target_noncanonical} in
6fc76bb0 2834 bdver1-*)
2835 arch=bdver1
2836 cpu=bdver1
2837 ;;
1f64ad21 2838 amdfam10-*|barcelona-*)
2839 arch=amdfam10
2840 cpu=amdfam10
2841 ;;
2842 k8_sse3-*|opteron_sse3-*|athlon64_sse3-*)
2843 arch=k8-sse3
2844 cpu=k8-sse3
2845 ;;
2846 k8-*|opteron-*|athlon_64-*)
2847 arch=k8
2848 cpu=k8
2849 ;;
2850 nocona-*)
2851 arch=nocona
2852 cpu=nocona
2853 ;;
2854 atom-*)
2855 arch=atom
2856 cpu=atom
2857 ;;
2858 core2-*)
2859 arch=core2
2860 cpu=core2
2861 ;;
2862 *)
2863 arch=x86-64
2864 cpu=generic
2865 ;;
2866 esac
2867 ;;
2868esac
2869
370a1d10 2870# If there is no $with_cpu option, try to infer one from ${target}.
2871# This block sets nothing except for with_cpu.
2872if test x$with_cpu = x ; then
2873 case ${target} in
1f64ad21 2874 i[34567]86-*-*|x86_64-*-*)
2875 with_cpu=$cpu
370a1d10 2876 ;;
2877 alphaev6[78]*-*-*)
2878 with_cpu=ev67
2879 ;;
2880 alphaev6*-*-*)
2881 with_cpu=ev6
2882 ;;
2883 alphapca56*-*-*)
2884 with_cpu=pca56
2885 ;;
2886 alphaev56*-*-*)
2887 with_cpu=ev56
2888 ;;
2889 alphaev5*-*-*)
2890 with_cpu=ev5
2891 ;;
de6e318c 2892 frv-*-*linux* | frv400-*-*linux*)
3e7f6cce 2893 with_cpu=fr400
2894 ;;
de6e318c 2895 frv550-*-*linux*)
2896 with_cpu=fr550
2897 ;;
f84195ec 2898 m68k*-*-*)
558b196a 2899 case "$with_arch" in
2900 "cf")
2901 with_cpu=${default_cf_cpu}
2902 ;;
2903 "" | "m68k")
2904 with_cpu=m${default_m68k_cpu}
2905 ;;
2906 esac
f84195ec 2907 ;;
223f6dbc 2908 mips*-*-vxworks)
2909 with_arch=mips2
2910 ;;
370a1d10 2911 sparc*-*-*)
2912 with_cpu="`echo ${target} | sed 's/-.*$//'`"
370a1d10 2913 ;;
2914 esac
f067c6b7 2915
2916 # Avoid overriding --with-cpu-32 and --with-cpu-64 values.
2917 case ${target} in
2918 i[34567]86-*-*|x86_64-*-*)
1f64ad21 2919 if test x$with_cpu_32 != x || test x$with_cpu_64 != x; then
2920 if test x$with_cpu_32 = x; then
2921 with_cpu_32=$with_cpu
2922 fi
2923 if test x$with_cpu_64 = x; then
2924 with_cpu_64=$with_cpu
2925 fi
2926 with_cpu=
2927 fi
2928 ;;
2929 esac
2930fi
2931
2932# Support for --with-arch and related options (and a few unrelated options,
2933# too).
2934case ${with_arch} in
2935 yes | no)
2936 echo "--with-arch must be passed a value" 1>&2
2937 exit 1
2938 ;;
2939esac
2940
2941# If there is no $with_arch option, try to infer one from ${target}.
2942# This block sets nothing except for with_arch.
2943if test x$with_arch = x ; then
2944 case ${target} in
ffcf29bf 2945 i[34567]86-*-darwin*|x86_64-*-darwin*)
2946 # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT
2947 # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h.
2948 ;;
2d2e1f85 2949 i[34567]86-*-*)
05b38372 2950 # --with-fpmath sets the default ISA to SSE2, which is the same
2951 # ISA supported by Pentium 4.
2952 if test x$with_fpmath = x || test $arch_without_sse2 = no; then
2953 with_arch=$arch
2954 else
2955 with_arch=pentium4
2d2e1f85 2956 fi
2957 ;;
2958 x86_64-*-*)
1f64ad21 2959 with_arch=$arch
2960 ;;
2961 esac
2962
2963 # Avoid overriding --with-arch-32 and --with-arch-64 values.
2964 case ${target} in
ffcf29bf 2965 i[34567]86-*-darwin*|x86_64-*-darwin*)
2966 # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT
2967 # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h.
2968 ;;
1f64ad21 2969 i[34567]86-*-*|x86_64-*-*)
2970 if test x$with_arch_32 != x || test x$with_arch_64 != x; then
2971 if test x$with_arch_32 = x; then
525b174b 2972 with_arch_32=$with_arch
1f64ad21 2973 fi
2974 if test x$with_arch_64 = x; then
ed2b8f56 2975 if test $arch_without_64bit = yes; then
2976 # Set the default 64bit arch to x86-64 if the default arch
2977 # doesn't support 64bit.
2978 with_arch_64=x86-64
2979 else
525b174b 2980 with_arch_64=$with_arch
ed2b8f56 2981 fi
1f64ad21 2982 fi
2983 with_arch=
ed2b8f56 2984 elif test $arch_without_64bit$need_64bit_isa = yesyes; then
2985 # Set the default 64bit arch to x86-64 if the default arch
2986 # doesn't support 64bit and we need 64bit ISA.
525b174b 2987 with_arch_32=$with_arch
ed2b8f56 2988 with_arch_64=x86-64
2989 with_arch=
f067c6b7 2990 fi
2991 ;;
2992 esac
370a1d10 2993fi
f0b281fe 2994
2d2e1f85 2995# Support --with-fpmath.
2996if test x$with_fpmath != x; then
2997 case ${target} in
2998 i[34567]86-*-* | x86_64-*-*)
2999 case ${with_fpmath} in
3000 sse)
3001 tm_file="${tm_file} i386/ssemath.h"
3002 ;;
3003 *)
3004 echo "Invalid --with-fpmath=$with_fpmath" 1>&2
3005 exit 1
3006 ;;
3007 esac
3008 ;;
3009 *)
3010 echo "--with-fpmath isn't supported for $target." 1>&2
3011 exit 1
3012 ;;
3013 esac
3014fi
3015
0a76a4fd 3016# Similarly for --with-schedule.
3017if test x$with_schedule = x; then
3018 case ${target} in
6af9f7ea 3019 hppa1*)
0a76a4fd 3020 # Override default PA8000 scheduling model.
3021 with_schedule=7100LC
3022 ;;
3023 esac
3024fi
f0b281fe 3025
0a76a4fd 3026# Validate and mark as valid any --with options supported
3027# by this target. In order to use a particular --with option
3028# you must list it in supported_defaults; validating the value
3029# is optional. This case statement should set nothing besides
3030# supported_defaults.
7dd97ab6 3031
0a76a4fd 3032supported_defaults=
3033case "${target}" in
f0b281fe 3034 alpha*-*-*)
7dd97ab6 3035 supported_defaults="cpu tune"
3036 for which in cpu tune; do
3037 eval "val=\$with_$which"
8d520382 3038 case "$val" in
3039 "" \
3040 | ev4 | ev45 | 21064 | ev5 | 21164 | ev56 | 21164a \
3041 | pca56 | 21164PC | 21164pc | ev6 | 21264 | ev67 \
3042 | 21264a)
7dd97ab6 3043 ;;
3044 *)
3045 echo "Unknown CPU used in --with-$which=$val" 1>&2
3046 exit 1
3047 ;;
3048 esac
3049 done
3050 ;;
3051
3052 arm*-*-*)
086571a4 3053 supported_defaults="arch cpu float tune fpu abi mode"
7dd97ab6 3054 for which in cpu tune; do
70ac928b 3055 # See if it matches any of the entries in arm-cores.def
7dd97ab6 3056 eval "val=\$with_$which"
1cfd705e 3057 if [ x"$val" = x ] \
61b58075 3058 || grep "^ARM_CORE(\"$val\"," \
1cfd705e 3059 ${srcdir}/config/arm/arm-cores.def \
3060 > /dev/null; then
3061 # Ok
61b58075 3062 new_val=`grep "^ARM_CORE(\"$val\"," \
3063 ${srcdir}/config/arm/arm-cores.def | \
3064 sed -e 's/^[^,]*,[ ]*//' | \
3065 sed -e 's/,.*$//'`
346bfe2d 3066 eval "target_${which}_cname=$new_val"
61b58075 3067 echo "For $val real value is $new_val"
1cfd705e 3068 true
3069 else
3070 echo "Unknown CPU used in --with-$which=$val" 1>&2
3071 exit 1
70ac928b 3072 fi
7dd97ab6 3073 done
3074
8d520382 3075 case "$with_arch" in
3076 "" \
a2cd141b 3077 | armv[23456] | armv2a | armv3m | armv4t | armv5t \
b77c60b7 3078 | armv5te | armv6j |armv6k | armv6z | armv6zk | armv6-m \
3079 | armv7 | armv7-a | armv7-r | armv7-m \
6b4d6063 3080 | iwmmxt | ep9312)
f0b281fe 3081 # OK
bb678e49 3082 ;;
3083 *)
7dd97ab6 3084 echo "Unknown arch used in --with-arch=$with_arch" 1>&2
f0b281fe 3085 exit 1
3864b642 3086 ;;
3087 esac
f0b281fe 3088
8d520382 3089 case "$with_float" in
3090 "" \
a2cd141b 3091 | soft | hard | softfp)
f0b281fe 3092 # OK
3864b642 3093 ;;
f0b281fe 3094 *)
7dd97ab6 3095 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
f0b281fe 3096 exit 1
3864b642 3097 ;;
3098 esac
7dd97ab6 3099
a2cd141b 3100 case "$with_fpu" in
3101 "" \
414f0dcb 3102 | fpa | fpe2 | fpe3 | maverick | vfp | vfp3 | vfpv3 \
3103 | vfpv3-fp16 | vfpv3-d16 | vfpv3-d16-fp16 | vfpv3xd \
3104 | vfpv3xd-fp16 | neon | neon-fp16 | vfpv4 | vfpv4-d16 \
3105 | fpv4-sp-d16 | neon-vfpv4)
a2cd141b 3106 # OK
3107 ;;
3108 *)
f9273c43 3109 echo "Unknown fpu used in --with-fpu=$with_fpu" 2>&1
3110 exit 1
3111 ;;
3112 esac
3113
3114 case "$with_abi" in
3115 "" \
6cac4dc0 3116 | apcs-gnu | atpcs | aapcs | iwmmxt | aapcs-linux )
f9273c43 3117 #OK
3118 ;;
3119 *)
3120 echo "Unknown ABI used in --with-abi=$with_abi"
a2cd141b 3121 exit 1
3122 ;;
3123 esac
3124
086571a4 3125 case "$with_mode" in
3126 "" \
3127 | arm | thumb )
3128 #OK
3129 ;;
3130 *)
3131 echo "Unknown mode used in --with-mode=$with_mode"
3132 exit 1
3133 ;;
3134 esac
3135
7dd97ab6 3136 if test "x$with_arch" != x && test "x$with_cpu" != x; then
f9273c43 3137 echo "Warning: --with-arch overrides --with-cpu=$with_cpu" 1>&2
7dd97ab6 3138 fi
3864b642 3139 ;;
3864b642 3140
3e7f6cce 3141 fr*-*-*linux*)
3142 supported_defaults=cpu
3143 case "$with_cpu" in
3144 fr400) ;;
de6e318c 3145 fr550) ;;
3e7f6cce 3146 *)
3147 echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
3148 exit 1
3149 ;;
3150 esac
3151 ;;
3152
6af9f7ea 3153 fido-*-* | m68k*-*-*)
558b196a 3154 supported_defaults="arch cpu"
3155 case "$with_arch" in
3156 "" | "m68k"| "cf")
3157 m68k_arch_family="$with_arch"
3158 ;;
3159 *)
3160 echo "Invalid --with-arch=$with_arch" 1>&2
3161 exit 1
3162 ;;
3163 esac
f84195ec 3164
3165 # We always have a $with_cpu setting here.
8e80b452 3166 case "$with_cpu" in
8aed3cb3 3167 "m68000" | "m68010" | "m68020" | "m68030" | "m68040" | "m68060")
3168 m68k_cpu_ident=$with_cpu
3169 ;;
3170 "m68020-40")
3171 m68k_cpu_ident=m68020
3172 tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_40"
3173 ;;
3174 "m68020-60")
3175 m68k_cpu_ident=m68020
3176 tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_60"
8e80b452 3177 ;;
3178 *)
8aed3cb3 3179 # We need the C identifier rather than the string.
3180 m68k_cpu_ident=`awk -v arg="\"$with_cpu\"" \
3181 'BEGIN { FS="[ \t]*[,()][ \t]*" }; \
3182 $1 == "M68K_DEVICE" && $2 == arg { print $3 }' \
3183 ${srcdir}/config/m68k/m68k-devices.def`
3184 if [ x"$m68k_cpu_ident" = x ] ; then
3185 echo "Unknown CPU used in --with-cpu=$with_cpu" 1>&2
3186 exit 1
3187 fi
3188 with_cpu="mcpu=$with_cpu"
8e80b452 3189 ;;
3190 esac
3191 ;;
3192
6af9f7ea 3193 hppa*-*-*)
7dd97ab6 3194 supported_defaults="arch schedule"
3195
8d520382 3196 case "$with_arch" in
3197 "" | 1.0 | 1.1 | 2.0)
7dd97ab6 3198 # OK
3199 ;;
3200 *)
3201 echo "Unknown architecture used in --with-arch=$with_arch" 1>&2
3202 exit 1
3203 ;;
3204 esac
3205
8d520382 3206 case "$with_schedule" in
3207 "" | 700 | 7100 | 7100LC | 7200 | 7300 | 8000)
f0b281fe 3208 # OK
3209 ;;
3210 *)
3211 echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2
3212 exit 1
3213 ;;
3214 esac
3864b642 3215 ;;
3864b642 3216
f0b281fe 3217 i[34567]86-*-* | x86_64-*-*)
f067c6b7 3218 supported_defaults="arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64"
3219 for which in arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64; do
7dd97ab6 3220 eval "val=\$with_$which"
e83e5390 3221 case ${val} in
9db3d688 3222 i386 | i486 \
e83e5390 3223 | i586 | pentium | pentium-mmx | winchip-c6 | winchip2 \
3224 | c3 | c3-2 | i686 | pentiumpro | pentium2 | pentium3 \
3225 | pentium4 | k6 | k6-2 | k6-3 | athlon | athlon-tbird \
3451fffd 3226 | athlon-4 | athlon-xp | athlon-mp | geode \
9db3d688 3227 | prescott | pentium-m | pentium4m | pentium3m)
3228 case "${target}" in
3229 x86_64-*-*)
f067c6b7 3230 case "x$which" in
3231 *_32)
3232 ;;
3233 *)
3234 echo "CPU given in --with-$which=$val doesn't support 64bit mode." 1>&2
3235 exit 1
3236 ;;
3237 esac
9db3d688 3238 ;;
3239 esac
3240 # OK
3241 ;;
414f0dcb 3242 "" | x86-64 | generic | native \
3243 | k8 | k8-sse3 | athlon64 | athlon64-sse3 | opteron \
6fc76bb0 3244 | opteron-sse3 | athlon-fx | bdver1 | amdfam10 \
3245 | barcelona | nocona | core2 | atom)
7dd97ab6 3246 # OK
3247 ;;
3248 *)
3249 echo "Unknown CPU given in --with-$which=$val." 1>&2
3250 exit 1
3251 ;;
3252 esac
3253 done
3254 ;;
3255
3256 mips*-*-*)
1af9587c 3257 supported_defaults="abi arch arch_32 arch_64 float tune tune_32 tune_64 divide llsc mips-plt synci"
7dd97ab6 3258
e83e5390 3259 case ${with_float} in
3260 "" | soft | hard)
f0b281fe 3261 # OK
3262 ;;
3263 *)
7dd97ab6 3264 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
f0b281fe 3265 exit 1
3266 ;;
3267 esac
3864b642 3268
e83e5390 3269 case ${with_abi} in
3270 "" | 32 | o64 | n32 | 64 | eabi)
f0b281fe 3271 # OK
3272 ;;
3273 *)
7dd97ab6 3274 echo "Unknown ABI used in --with-abi=$with_abi" 1>&2
f0b281fe 3275 exit 1
3276 ;;
3277 esac
f9262d1e 3278
3279 case ${with_divide} in
3280 "" | breaks | traps)
3281 # OK
3282 ;;
3283 *)
3284 echo "Unknown division check type use in --with-divide=$with_divide" 1>&2
3285 exit 1
bc4c18f7 3286 ;;
3287 esac
3288
3289 case ${with_llsc} in
3290 yes)
3291 with_llsc=llsc
3292 ;;
3293 no)
3294 with_llsc="no-llsc"
3295 ;;
3296 "")
3297 # OK
3298 ;;
3299 *)
3300 echo "Unknown llsc type used in --with-llsc" 1>&2
3301 exit 1
3302 ;;
f9262d1e 3303 esac
4a909f69 3304
3305 case ${with_mips_plt} in
3306 yes)
3307 with_mips_plt=plt
3308 ;;
3309 no)
3310 with_mips_plt=no-plt
3311 ;;
3312 "")
3313 ;;
3314 *)
3315 echo "Unknown --with-mips-plt argument: $with_mips_plt" 1>&2
3316 exit 1
3317 ;;
3318 esac
1af9587c 3319
3320 case ${with_synci} in
3321 yes)
3322 with_synci=synci
3323 ;;
3324 "" | no)
3325 # No is the default.
3326 with_synci=no-synci
3327 ;;
3328 *)
3329 echo "Unknown synci type used in --with-synci" 1>&2
3330 exit 1
3331 ;;
3332 esac
3864b642 3333 ;;
3864b642 3334
7dd97ab6 3335 powerpc*-*-* | rs6000-*-*)
cf61fe8d 3336 supported_defaults="cpu cpu_32 cpu_64 float tune tune_32 tune_64"
7dd97ab6 3337
cf61fe8d 3338 for which in cpu cpu_32 cpu_64 tune tune_32 tune_64; do
7dd97ab6 3339 eval "val=\$with_$which"
e83e5390 3340 case ${val} in
83ae44d6 3341 default32 | default64)
cf61fe8d 3342 case $which in
3343 cpu | tune)
3344 ;;
3345 *)
3346 echo "$val only valid for --with-cpu and --with-tune." 1>&2
3347 exit 1
3348 ;;
3349 esac
83ae44d6 3350 with_which="with_$which"
3351 eval $with_which=
3352 ;;
e2fcf81b 3353 405cr)
3354 tm_defines="${tm_defines} CONFIG_PPC405CR"
3355 eval "with_$which=405"
3356 ;;
83ae44d6 3357 "" | common \
94f7a54b 3358 | power | power[234567] | power6x | powerpc | powerpc64 \
e83e5390 3359 | rios | rios1 | rios2 | rsc | rsc1 | rs64a \
257bc844 3360 | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \
ed08558a 3361 | 476 | 476fp | 505 | 601 | 602 | 603 | 603e | ec603e \
3362 | 604 | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \
81a88188 3363 | a2 | e300c[23] | 854[08] | e500mc | e500mc64 | titan\
2b3ae3ef 3364 | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5 | cell)
7dd97ab6 3365 # OK
3366 ;;
3367 *)
3368 echo "Unknown cpu used in --with-$which=$val." 1>&2
3369 exit 1
3370 ;;
3371 esac
3372 done
3373 ;;
3374
b8c0043c 3375 s390*-*-*)
3376 supported_defaults="arch mode tune"
3377
3378 for which in arch tune; do
3379 eval "val=\$with_$which"
e83e5390 3380 case ${val} in
33d033da 3381 "" | g5 | g6 | z900 | z990 | z9-109 | z9-ec | z10 | z196)
b8c0043c 3382 # OK
3383 ;;
3384 *)
3385 echo "Unknown cpu used in --with-$which=$val." 1>&2
3386 exit 1
3387 ;;
3388 esac
3389 done
3390
e83e5390 3391 case ${with_mode} in
3392 "" | esa | zarch)
b8c0043c 3393 # OK
3394 ;;
3395 *)
3396 echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2
3397 exit 1
3398 ;;
3399 esac
3400 ;;
3401
07168dd9 3402 sh[123456ble]-*-* | sh-*-*)
3403 supported_defaults="cpu"
3a6994f8 3404 case "`echo $with_cpu | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz- | sed s/sh/m/`" in
07168dd9 3405 "" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu )
3406 # OK
3407 ;;
7105fb72 3408 m2a | m2a-single | m2a-single-only | m2a-nofpu)
3409 ;;
9435e831 3410 m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al)
3411 ;;
07168dd9 3412 *)
3413 echo "Unknown CPU used in --with-cpu=$with_cpu, known values:" 1>&2
3414 echo "m1 m2 m2e m3 m3e m4 m4-single m4-single-only m4-nofpu" 1>&2
9435e831 3415 echo "m4a m4a-single m4a-single-only m4a-nofpu m4al" 1>&2
7105fb72 3416 echo "m2a m2a-single m2a-single-only m2a-nofpu" 1>&2
07168dd9 3417 exit 1
3418 ;;
3419 esac
3420 ;;
f0b281fe 3421 sparc*-*-*)
7dd97ab6 3422 supported_defaults="cpu float tune"
3423
3424 for which in cpu tune; do
3425 eval "val=\$with_$which"
e83e5390 3426 case ${val} in
3427 "" | sparc | sparcv9 | sparc64 | sparc86x \
3428 | v7 | cypress | v8 | supersparc | sparclite | f930 \
3429 | f934 | hypersparc | sparclite86x | sparclet | tsc701 \
d6ecc3a3 3430 | v9 | ultrasparc | ultrasparc3 | niagara | niagara2)
7dd97ab6 3431 # OK
3432 ;;
3433 *)
3434 echo "Unknown cpu used in --with-$which=$val" 1>&2
3435 exit 1
3436 ;;
3437 esac
3438 done
3864b642 3439
e83e5390 3440 case ${with_float} in
3441 "" | soft | hard)
f0b281fe 3442 # OK
3443 ;;
3444 *)
7dd97ab6 3445 echo "Unknown floating point type used in --with-float=$with_float" 1>&2
f0b281fe 3446 exit 1
3447 ;;
3448 esac
3864b642 3449 ;;
3864b642 3450
5474166e 3451 spu-*-*)
3452 supported_defaults="arch tune"
3453
3454 for which in arch tune; do
3455 eval "val=\$with_$which"
3456 case ${val} in
3457 "" | cell | celledp)
3458 # OK
3459 ;;
3460 *)
3461 echo "Unknown cpu used in --with-$which=$val." 1>&2
3462 exit 1
3463 ;;
3464 esac
3465 done
3466 ;;
3467
f0b281fe 3468 v850*-*-*)
7dd97ab6 3469 supported_defaults=cpu
e83e5390 3470 case ${with_cpu} in
3471 "" | v850e | v850e1)
f0b281fe 3472 # OK
3473 ;;
3474 *)
3475 echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
3476 exit 1
3477 ;;
3478 esac
3864b642 3479 ;;
0a76a4fd 3480esac
3864b642 3481
0a76a4fd 3482# Set some miscellaneous flags for particular targets.
3483target_cpu_default2=
3484case ${target} in
f0b281fe 3485 alpha*-*-*)
f0b281fe 3486 if test x$gas = xyes
3487 then
7dd97ab6 3488 target_cpu_default2="MASK_GAS"
f0b281fe 3489 fi
3864b642 3490 ;;
3864b642 3491
f0b281fe 3492 arm*-*-*)
346bfe2d 3493 if test x$target_cpu_cname = x
3494 then
3495 target_cpu_default2=TARGET_CPU_generic
3496 else
3497 target_cpu_default2=TARGET_CPU_$target_cpu_cname
3498 fi
f0b281fe 3499 ;;
582b17a6 3500
6af9f7ea 3501 hppa*-*-*)
8ab32933 3502 target_cpu_default2="MASK_BIG_SWITCH"
f0b281fe 3503 if test x$gas = xyes
bb607926 3504 then
8ab32933 3505 target_cpu_default2="${target_cpu_default2}|MASK_GAS|MASK_JUMP_IN_DELAY"
f0b281fe 3506 fi
3864b642 3507 ;;
3864b642 3508
6af9f7ea 3509 fido*-*-* | m68k*-*-*)
8aed3cb3 3510 target_cpu_default2=$m68k_cpu_ident
558b196a 3511 if [ x"$m68k_arch_family" != x ]; then
3512 tmake_file="m68k/t-$m68k_arch_family $tmake_file"
3513 fi
8aed3cb3 3514 ;;
3515
b3fd46a0 3516 i[34567]86-*-darwin* | x86_64-*-darwin*)
3517 tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp"
3518 ;;
8a84c748 3519 i[34567]86-*-linux* | x86_64-*-linux* | \
3520 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
3521 i[34567]86-*-gnu*)
b3fd46a0 3522 tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp i386/t-linux"
3523 ;;
20be3c56 3524 i[34567]86-*-solaris2*)
3525 tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp"
3526 ;;
f7ef49da 3527 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
6471e33b 3528 tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp"
3529 ;;
278afeb5 3530 i[34567]86-*-freebsd* | x86_64-*-freebsd*)
3531 tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp"
3532 ;;
8b21beb2 3533 ia64*-*-linux*)
3534 tmake_file="${tmake_file} ia64/t-fprules-softfp soft-fp/t-softfp"
3535 ;;
b3fd46a0 3536
f0b281fe 3537 mips*-*-*)
b93bf04a 3538 if test x$gnu_ld = xyes
3539 then
dfae4483 3540 target_cpu_default2="MASK_SPLIT_ADDRESSES"
b93bf04a 3541 fi
09c6646e 3542 case ${target} in
f0b281fe 3543 mips*el-*-*)
3544 tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
3545 ;;
3546 esac
f0b281fe 3547 if test "x$enable_gofast" = xyes
3548 then
f2f543a3 3549 tm_defines="US_SOFTWARE_GOFAST $tm_defines"
f0b281fe 3550 tmake_file="mips/t-gofast $tmake_file"
3551 else
3552 tmake_file="mips/t-mips $tmake_file"
f4deb416 3553 fi
3554 ;;
f0b281fe 3555
3556 powerpc*-*-* | rs6000-*-*)
7dd97ab6 3557 # FIXME: The PowerPC port uses the value set at compile time,
3558 # although it's only cosmetic.
f0b281fe 3559 if test "x$with_cpu" != x
bb607926 3560 then
f0b281fe 3561 target_cpu_default2="\\\"$with_cpu\\\""
bb607926 3562 fi
f0b281fe 3563 out_file=rs6000/rs6000.c
3564 c_target_objs="${c_target_objs} rs6000-c.o"
3565 cxx_target_objs="${cxx_target_objs} rs6000-c.o"
3566 tmake_file="rs6000/t-rs6000 ${tmake_file}"
63f9fa57 3567
3568 if test x$enable_e500_double = xyes
3569 then
3570 tm_file="$tm_file rs6000/e500-double.h"
3571 fi
f4deb416 3572 ;;
3864b642 3573
57d5535b 3574 sh[123456ble]*-*-* | sh-*-*)
3575 c_target_objs="${c_target_objs} sh-c.o"
3576 cxx_target_objs="${cxx_target_objs} sh-c.o"
3577 ;;
3578
f0b281fe 3579 sparc*-*-*)
7dd97ab6 3580 # Some standard aliases.
3581 case x$with_cpu in
3582 xsparc)
3583 with_cpu=v7
3584 ;;
7dd97ab6 3585 xsparcv9 | xsparc64)
3586 with_cpu=v9
3587 ;;
3588 esac
3589
3ce7ff97 3590 # The SPARC port checks this value at compile-time.
3864b642 3591 target_cpu_default2="TARGET_CPU_$with_cpu"
3592 ;;
f0b281fe 3593 v850*-*-*)
7dd97ab6 3594 # FIXME: The v850 is "special" in that it does not support
3595 # runtime CPU selection, only --with-cpu.
f0b281fe 3596 case "x$with_cpu" in
3597 x)
3598 ;;
3599 xv850e)
3600 target_cpu_default2="TARGET_CPU_$with_cpu"
3601 ;;
3602 esac
3603 ;;
0a76a4fd 3604esac
bb607926 3605
0a76a4fd 3606t=
1af9587c 3607all_defaults="abi cpu cpu_32 cpu_64 arch arch_32 arch_64 tune tune_32 tune_64 schedule float mode fpu divide llsc mips-plt synci"
0a76a4fd 3608for option in $all_defaults
3609do
4a909f69 3610 eval "val=\$with_"`echo $option | sed s/-/_/g`
0a76a4fd 3611 if test -n "$val"; then
3612 case " $supported_defaults " in
3613 *" $option "*)
3614 ;;
3615 *)
3616 echo "This target does not support --with-$option." 2>&1
fc3e831e 3617 echo "Valid --with options are: $supported_defaults" 2>&1
0a76a4fd 3618 exit 1
3619 ;;
3620 esac
7dd97ab6 3621
0a76a4fd 3622 if test "x$t" = x
3623 then
3624 t="{ \"$option\", \"$val\" }"
3625 else
3626 t="${t}, { \"$option\", \"$val\" }"
7dd97ab6 3627 fi
7dd97ab6 3628 fi
0a76a4fd 3629done
7dd97ab6 3630
0a76a4fd 3631if test "x$t" = x
3632then
3633 configure_default_options="{ { NULL, NULL} }"
3634else
3635 configure_default_options="{ ${t} }"
3636fi
3637
3638if test "$target_cpu_default2" != ""
3639then
3640 if test "$target_cpu_default" != ""
bb607926 3641 then
0a76a4fd 3642 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3643 else
3644 target_cpu_default=$target_cpu_default2
bb607926 3645 fi
0a76a4fd 3646fi