config.gcc revision 1.28
1# GCC target-specific configuration file. 2# Copyright (C) 1997-2013 Free Software Foundation, Inc. 3 4#This file is part of GCC. 5 6#GCC is free software; you can redistribute it and/or modify it under 7#the terms of the GNU General Public License as published by the Free 8#Software Foundation; either version 3, or (at your option) any later 9#version. 10 11#GCC is distributed in the hope that it will be useful, but WITHOUT 12#ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13#FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14#for more details. 15 16#You should have received a copy of the GNU General Public License 17#along with GCC; see the file COPYING3. If not see 18#<http://www.gnu.org/licenses/>. 19 20# This is the GCC target-specific configuration file 21# where a configuration type is mapped to different system-specific 22# definitions and files. This is invoked by the autoconf-generated 23# configure script. Putting it in a separate shell file lets us skip 24# running autoconf when modifying target-specific information. 25 26# When you change the cases in the OS or target switches, consider 27# updating ../libgcc/config.host also. 28 29# This file switches on the shell variable ${target}, and also uses the 30# following shell variables: 31# 32# with_* Various variables as set by configure. 33# 34# enable_threads Either the name, yes or no depending on whether 35# threads support was requested. 36# 37# default_use_cxa_atexit 38# The default value for the $enable___cxa_atexit 39# variable. enable___cxa_atexit needs to be set to 40# "yes" for the correct operation of C++ destructors 41# but it relies upon the presence of a non-standard C 42# library function called __cxa_atexit. 43# Since not all C libraries provide __cxa_atexit the 44# default value of $default_use_cxa_atexit is set to 45# "no" except for targets which are known to be OK. 46# 47# default_gnu_indirect_function 48# The default value for the $enable_gnu_indirect_function 49# variable. enable_gnu_indirect_function relies 50# upon the presence of a non-standard gnu ifunc support 51# in the assembler, linker and dynamic linker. 52# Since not all libraries provide the dynamic linking 53# support, the default value of 54# $default_gnu_indirect_function is set to 55# "no" except for targets which are known to be OK. 56# 57# gas_flag Either yes or no depending on whether GNU as was 58# requested. 59# 60# gnu_ld_flag Either yes or no depending on whether GNU ld was 61# requested. 62 63# This file sets the following shell variables for use by the 64# autoconf-generated configure script: 65# 66# cpu_type The name of the cpu, if different from the first 67# chunk of the canonical target name. 68# 69# tm_defines List of target macros to define for all compilations. 70# 71# tm_file A list of target macro files, if different from 72# "$cpu_type/$cpu_type.h". Usually it's constructed 73# per target in a way like this: 74# tm_file="${tm_file} dbxelf.h elfos.h ${cpu_type.h}/elf.h" 75# Note that the preferred order is: 76# - specific target header "${cpu_type}/${cpu_type.h}" 77# - generic headers like dbxelf.h elfos.h, etc. 78# - specializing target headers like ${cpu_type.h}/elf.h 79# This helps to keep OS specific stuff out of the CPU 80# defining header ${cpu_type}/${cpu_type.h}. 81# 82# It is possible to include automatically-generated 83# build-directory files by prefixing them with "./". 84# All other files should relative to $srcdir/config. 85# 86# tm_p_file Location of file with declarations for functions 87# in $out_file. 88# 89# out_file The name of the machine description C support 90# file, if different from "$cpu_type/$cpu_type.c". 91# 92# common_out_file The name of the source file for code shared between 93# the compiler proper and the driver. 94# 95# md_file The name of the machine-description file, if 96# different from "$cpu_type/$cpu_type.md". 97# 98# tmake_file A list of machine-description-specific 99# makefile-fragments, if different from 100# "$cpu_type/t-$cpu_type". 101# 102# extra_modes The name of the file containing a list of extra 103# machine modes, if necessary and different from 104# "$cpu_type/$cpu_type-modes.def". 105# 106# extra_objs List of extra objects that should be linked into 107# the compiler proper (cc1, cc1obj, cc1plus) 108# depending on target. 109# 110# extra_gcc_objs List of extra objects that should be linked into 111# the compiler driver (gcc) depending on target. 112# 113# extra_headers List of used header files from the directory 114# config/${cpu_type}. 115# 116# user_headers_inc_next_pre 117# List of header file names of internal gcc header 118# files, which should be prefixed by an include_next. 119# user_headers_inc_next_post 120# List of header file names of internal gcc header 121# files, which should be postfixed by an include_next. 122# use_gcc_tgmath If set, add tgmath.h to the list of used header 123# files. 124# 125# use_gcc_stdint If "wrap", install a version of stdint.h that 126# wraps the system's copy for hosted compilations; 127# if "provide", provide a version of systems without 128# such a system header; otherwise "none", do not 129# provide such a header at all. 130# 131# extra_programs List of extra executables compiled for this target 132# machine, used when linking. 133# 134# extra_options List of target-dependent .opt files. 135# 136# c_target_objs List of extra target-dependent objects that be 137# linked into the C compiler only. 138# 139# cxx_target_objs List of extra target-dependent objects that be 140# linked into the C++ compiler only. 141# 142# fortran_target_objs List of extra target-dependent objects that be 143# linked into the fortran compiler only. 144# 145# target_gtfiles List of extra source files with type information. 146# 147# xm_defines List of macros to define when compiling for the 148# target machine. 149# 150# xm_file List of files to include when compiling for the 151# target machine. 152# 153# use_collect2 Set to yes or no, depending on whether collect2 154# will be used. 155# 156# target_cpu_default Set to override the default target model. 157# 158# gdb_needs_out_file_path 159# Set to yes if gdb needs a dir command with 160# `dirname $out_file`. 161# 162# thread_file Set to control which thread package to use. 163# 164# gas Set to yes or no depending on whether the target 165# system normally uses GNU as. 166# 167# need_64bit_hwint Set to yes if HOST_WIDE_INT must be 64 bits wide 168# for this target. This is true if this target 169# supports "long" or "wchar_t" wider than 32 bits, 170# or BITS_PER_WORD is wider than 32 bits. 171# The setting made here must match the one made in 172# other locations such as libcpp/configure.ac 173# 174# configure_default_options 175# Set to an initializer for configure_default_options 176# in configargs.h, based on --with-cpu et cetera. 177# 178# native_system_header_dir 179# Where system header files are found for this 180# target. This defaults to /usr/include. If 181# the --with-sysroot configure option or the 182# --sysroot command line option is used this 183# will be relative to the sysroot. 184# target_type_format_char 185# The default character to be used for formatting 186# the attribute in a 187# .type symbol_name, ${t_t_f_c}<property> 188# directive. 189 190# The following variables are used in each case-construct to build up the 191# outgoing variables: 192# 193# gnu_ld Set to yes or no depending on whether the target 194# system normally uses GNU ld. 195# 196# target_has_targetcm Set to yes or no depending on whether the target 197# has its own definition of targetcm. 198# 199# target_has_targetm_common Set to yes or no depending on whether the 200# target has its own definition of targetm_common. 201 202out_file= 203common_out_file= 204tmake_file= 205extra_headers= 206user_headers_inc_next_pre= 207user_headers_inc_next_post= 208use_gcc_tgmath=yes 209use_gcc_stdint=none 210extra_programs= 211extra_objs= 212extra_gcc_objs= 213extra_options= 214c_target_objs= 215cxx_target_objs= 216fortran_target_objs= 217target_has_targetcm=no 218target_has_targetm_common=yes 219tm_defines= 220xm_defines= 221# Set this to force installation and use of collect2. 222use_collect2= 223# Set this to override the default target model. 224target_cpu_default= 225# Set this if gdb needs a dir command with `dirname $out_file` 226gdb_needs_out_file_path= 227# Set this to control which thread package will be used. 228thread_file= 229# Reinitialize these from the flag values every loop pass, since some 230# configure entries modify them. 231gas="$gas_flag" 232gnu_ld="$gnu_ld_flag" 233default_use_cxa_atexit=no 234default_gnu_indirect_function=no 235target_gtfiles= 236need_64bit_hwint= 237need_64bit_isa= 238native_system_header_dir=/usr/include 239target_type_format_char='@' 240 241# Don't carry these over build->host->target. Please. 242xm_file= 243md_file= 244 245# Obsolete configurations. 246case ${target} in 247 picochip-* \ 248 | score-* \ 249 ) 250 if test "x$enable_obsolete" != xyes; then 251 echo "*** Configuration ${target} is obsolete." >&2 252 echo "*** Specify --enable-obsolete to build it anyway." >&2 253 echo "*** Support will be REMOVED in the next major release of GCC," >&2 254 echo "*** unless a maintainer comes forward." >&2 255 exit 1 256 fi;; 257esac 258 259# Unsupported targets list. Do not put an entry in this list unless 260# it would otherwise be caught by a more permissive pattern. The list 261# should be in alphabetical order. 262case ${target} in 263 # Avoid special cases that are not obsolete 264 arm*-*-*eabi* \ 265 ) 266 ;; 267 arm*-wince-pe* \ 268 | arm*-*-ecos-elf \ 269 | arm*-*-elf \ 270 | arm*-*-freebsd* \ 271 | arm*-*-linux* \ 272 | arm*-*-uclinux* \ 273 | i[34567]86-go32-* \ 274 | i[34567]86-*-go32* \ 275 | m68k-*-uclinuxoldabi* \ 276 | mips64orion*-*-rtems* \ 277 | pdp11-*-bsd \ 278 | sparc-hal-solaris2* \ 279 | thumb-*-* \ 280 | *-*-freebsd[12] | *-*-freebsd[12].* \ 281 | *-*-freebsd*aout* \ 282 | *-*-linux*aout* \ 283 | *-*-linux*coff* \ 284 | *-*-linux*libc1* \ 285 | *-*-linux*oldld* \ 286 | *-*-rtemsaout* \ 287 | *-*-rtemscoff* \ 288 | *-*-solaris2 \ 289 | *-*-solaris2.[0-8] \ 290 | *-*-solaris2.[0-8].* \ 291 | *-*-sysv* \ 292 | vax-*-vms* \ 293 ) 294 echo "*** Configuration ${target} not supported" 1>&2 295 exit 1 296 ;; 297esac 298 299# Set default cpu_type, tm_file, tm_p_file and xm_file so it can be 300# updated in each machine entry. Also set default extra_headers for some 301# machines. 302tm_p_file= 303cpu_type=`echo ${target} | sed 's/-.*$//'` 304cpu_is_64bit= 305case ${target} in 306m32c*-*-*) 307 cpu_type=m32c 308 tmake_file=m32c/t-m32c 309 target_has_targetm_common=no 310 ;; 311aarch64*-*-*) 312 cpu_type=aarch64 313 need_64bit_hwint=yes 314 extra_headers="arm_neon.h" 315 extra_objs="aarch64-builtins.o" 316 target_has_targetm_common=yes 317 ;; 318alpha*-*-*) 319 cpu_type=alpha 320 need_64bit_hwint=yes 321 extra_options="${extra_options} g.opt" 322 ;; 323am33_2.0-*-linux*) 324 cpu_type=mn10300 325 ;; 326arm*-*-*) 327 cpu_type=arm 328 need_64bit_hwint=yes 329 extra_headers="mmintrin.h arm_neon.h" 330 target_type_format_char='%' 331 c_target_objs="arm-c.o" 332 cxx_target_objs="arm-c.o" 333 extra_options="${extra_options} arm/arm-tables.opt" 334 ;; 335avr-*-*) 336 cpu_type=avr 337 c_target_objs="avr-c.o" 338 cxx_target_objs="avr-c.o" 339 extra_options="${extra_options} avr/avr-tables.opt" 340 ;; 341bfin*-*) 342 cpu_type=bfin 343 ;; 344crisv32-*) 345 cpu_type=cris 346 ;; 347frv*) cpu_type=frv 348 extra_options="${extra_options} g.opt" 349 ;; 350moxie*) cpu_type=moxie 351 target_has_targetm_common=no 352 ;; 353fido-*-*) 354 cpu_type=m68k 355 extra_headers=math-68881.h 356 extra_options="${extra_options} m68k/m68k-tables.opt" 357 ;; 358i[34567]86-*-*) 359 cpu_type=i386 360 c_target_objs="i386-c.o" 361 cxx_target_objs="i386-c.o" 362 need_64bit_hwint=yes 363 extra_options="${extra_options} fused-madd.opt" 364 extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h 365 pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h 366 nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h 367 immintrin.h x86intrin.h avxintrin.h xopintrin.h 368 ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h 369 lzcntintrin.h bmiintrin.h bmi2intrin.h tbmintrin.h 370 avx2intrin.h fmaintrin.h f16cintrin.h rtmintrin.h 371 xtestintrin.h rdseedintrin.h prfchwintrin.h adxintrin.h 372 fxsrintrin.h xsaveintrin.h xsaveoptintrin.h" 373 ;; 374x86_64-*-*) 375 cpu_type=i386 376 c_target_objs="i386-c.o" 377 cxx_target_objs="i386-c.o" 378 extra_options="${extra_options} fused-madd.opt" 379 extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h 380 pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h 381 nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h 382 immintrin.h x86intrin.h avxintrin.h xopintrin.h 383 ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h 384 lzcntintrin.h bmiintrin.h tbmintrin.h bmi2intrin.h 385 avx2intrin.h fmaintrin.h f16cintrin.h rtmintrin.h 386 xtestintrin.h rdseedintrin.h prfchwintrin.h adxintrin.h 387 fxsrintrin.h xsaveintrin.h xsaveoptintrin.h" 388 need_64bit_hwint=yes 389 ;; 390ia64-*-*) 391 extra_headers=ia64intrin.h 392 need_64bit_hwint=yes 393 extra_options="${extra_options} g.opt fused-madd.opt" 394 ;; 395hppa*-*-*) 396 cpu_type=pa 397 ;; 398lm32*) 399 extra_options="${extra_options} g.opt" 400 ;; 401m32r*-*-*) 402 cpu_type=m32r 403 extra_options="${extra_options} g.opt" 404 ;; 405m5200-*-*|m5407-*-*) 406 cpu_type=m68k 407 extra_headers=math-68881.h 408 extra_options="${extra_options} m68k/m68k-tables.opt" 409 ;; 410m680[012]0-*-*) 411 cpu_type=m68k 412 extra_headers=math-68881.h 413 extra_options="${extra_options} m68k/m68k-tables.opt" 414 ;; 415m68k-*-*) 416 extra_headers=math-68881.h 417 extra_options="${extra_options} m68k/m68k-tables.opt" 418 ;; 419microblaze*-*-*) 420 cpu_type=microblaze 421 extra_options="${extra_options} g.opt" 422 ;; 423mips*-*-*) 424 cpu_type=mips 425 need_64bit_hwint=yes 426 extra_headers="loongson.h" 427 extra_options="${extra_options} g.opt mips/mips-tables.opt" 428 ;; 429picochip-*-*) 430 cpu_type=picochip 431 ;; 432powerpc*-*-*) 433 cpu_type=rs6000 434 extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h htmintrin.h htmxlintrin.h" 435 need_64bit_hwint=yes 436 case x$with_cpu in 437 xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345678]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|Xe6500) 438 cpu_is_64bit=yes 439 ;; 440 esac 441 extra_options="${extra_options} g.opt fused-madd.opt rs6000/rs6000-tables.opt" 442 ;; 443rs6000*-*-*) 444 need_64bit_hwint=yes 445 extra_options="${extra_options} g.opt fused-madd.opt rs6000/rs6000-tables.opt" 446 ;; 447score*-*-*) 448 cpu_type=score 449 extra_options="${extra_options} g.opt" 450 ;; 451sparc*-*-*) 452 cpu_type=sparc 453 c_target_objs="sparc-c.o" 454 cxx_target_objs="sparc-c.o" 455 extra_headers="visintrin.h" 456 need_64bit_hwint=yes 457 ;; 458spu*-*-*) 459 cpu_type=spu 460 need_64bit_hwint=yes 461 ;; 462s390*-*-*) 463 cpu_type=s390 464 need_64bit_hwint=yes 465 extra_options="${extra_options} fused-madd.opt" 466 extra_headers="s390intrin.h htmintrin.h htmxlintrin.h" 467 ;; 468# Note the 'l'; we need to be able to match e.g. "shle" or "shl". 469sh[123456789lbe]*-*-* | sh-*-*) 470 cpu_type=sh 471 need_64bit_hwint=yes 472 extra_options="${extra_options} fused-madd.opt" 473 ;; 474v850*-*-*) 475 cpu_type=v850 476 ;; 477tic6x-*-*) 478 cpu_type=c6x 479 extra_headers="c6x_intrinsics.h" 480 extra_options="${extra_options} c6x/c6x-tables.opt" 481 ;; 482xtensa*-*-*) 483 extra_options="${extra_options} fused-madd.opt" 484 ;; 485tilegx*-*-*) 486 cpu_type=tilegx 487 need_64bit_hwint=yes 488 ;; 489tilepro-*-*) 490 cpu_type=tilepro 491 need_64bit_hwint=yes 492 ;; 493esac 494 495tm_file=${cpu_type}/${cpu_type}.h 496if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h 497then 498 tm_p_file=${cpu_type}/${cpu_type}-protos.h 499fi 500extra_modes= 501if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def 502then 503 extra_modes=${cpu_type}/${cpu_type}-modes.def 504fi 505if test -f ${srcdir}/config/${cpu_type}/${cpu_type}.opt 506then 507 extra_options="${extra_options} ${cpu_type}/${cpu_type}.opt" 508fi 509 510case ${target} in 511i[34567]86-*-*) 512 if test "x$with_abi" != x; then 513 echo "This target does not support --with-abi." 514 exit 1 515 fi 516 if test "x$enable_cld" = xyes; then 517 tm_defines="${tm_defines} USE_IX86_CLD=1" 518 fi 519 if test "x$enable_frame_pointer" = xyes; then 520 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1" 521 fi 522 tm_file="vxworks-dummy.h ${tm_file}" 523 ;; 524x86_64-*-*) 525 case ${with_abi} in 526 "") 527 if test "x$with_multilib_list" = xmx32; then 528 tm_file="i386/biarchx32.h ${tm_file}" 529 else 530 tm_file="i386/biarch64.h ${tm_file}" 531 fi 532 ;; 533 64 | m64) 534 tm_file="i386/biarch64.h ${tm_file}" 535 ;; 536 x32 | mx32) 537 tm_file="i386/biarchx32.h ${tm_file}" 538 ;; 539 *) 540 echo "Unknown ABI used in --with-abi=$with_abi" 541 exit 1 542 esac 543 if test "x$enable_cld" = xyes; then 544 tm_defines="${tm_defines} USE_IX86_CLD=1" 545 fi 546 if test "x$enable_frame_pointer" = xyes; then 547 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1" 548 fi 549 tm_file="vxworks-dummy.h ${tm_file}" 550 ;; 551arm*-*-* | mips*-*-* | sh*-*-* | sparc*-*-*) 552 tm_file="vxworks-dummy.h ${tm_file}" 553 ;; 554esac 555 556# On a.out targets, we need to use collect2. 557case ${target} in 558*-*-*aout*) 559 use_collect2=yes 560 ;; 561esac 562 563# Common C libraries. 564tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3" 565 566# Common parts for widely ported systems. 567case ${target} in 568*-*-darwin*) 569 tmake_file="t-darwin ${cpu_type}/t-darwin" 570 tm_file="${tm_file} darwin.h" 571 case ${target} in 572 *-*-darwin9*) 573 tm_file="${tm_file} darwin9.h" 574 ;; 575 *-*-darwin[12][0-9]*) 576 tm_file="${tm_file} darwin9.h darwin10.h" 577 ;; 578 esac 579 tm_file="${tm_file} ${cpu_type}/darwin.h" 580 tm_p_file="${tm_p_file} darwin-protos.h" 581 target_gtfiles="\$(srcdir)/config/darwin.c" 582 extra_options="${extra_options} darwin.opt" 583 c_target_objs="${c_target_objs} darwin-c.o" 584 cxx_target_objs="${cxx_target_objs} darwin-c.o" 585 fortran_target_objs="darwin-f.o" 586 target_has_targetcm=yes 587 extra_objs="darwin.o" 588 extra_gcc_objs="darwin-driver.o" 589 default_use_cxa_atexit=yes 590 use_gcc_stdint=wrap 591 case ${enable_threads} in 592 "" | yes | posix) thread_file='posix' ;; 593 esac 594 ;; 595*-*-freebsd*) 596 # This is the generic ELF configuration of FreeBSD. Later 597 # machine-specific sections may refine and add to this 598 # configuration. 599 # 600 # Due to tm_file entry ordering issues that vary between cpu 601 # architectures, we only define fbsd_tm_file to allow the 602 # machine-specific section to dictate the final order of all 603 # entries of tm_file with the minor exception that components 604 # of the tm_file set here will always be of the form: 605 # 606 # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h 607 # 608 # The machine-specific section should not tamper with this 609 # ordering but may order all other entries of tm_file as it 610 # pleases around the provided core setting. 611 gas=yes 612 gnu_ld=yes 613 fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\..*//g'` 614 tm_defines="${tm_defines} FBSD_MAJOR=${fbsd_major}" 615 tmake_file="t-slibgcc" 616 case ${enable_threads} in 617 no) 618 fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h" 619 ;; 620 "" | yes | posix) 621 thread_file='posix' 622 ;; 623 *) 624 echo 'Unknown thread configuration for FreeBSD' 625 exit 1 626 ;; 627 esac 628 fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h freebsd-stdint.h" 629 extra_options="$extra_options rpath.opt freebsd.opt" 630 case ${target} in 631 *-*-freebsd[345].*) 632 :;; 633 *) 634 default_use_cxa_atexit=yes;; 635 esac 636 # need_64bit_hwint=yes # system compiler has this for all arch! 637 use_gcc_stdint=wrap 638 ;; 639*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu) 640 extra_options="$extra_options gnu-user.opt" 641 gas=yes 642 gnu_ld=yes 643 case ${enable_threads} in 644 "" | yes | posix) thread_file='posix' ;; 645 esac 646 tmake_file="t-slibgcc" 647 case $target in 648 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-kopensolaris*-gnu) 649 :;; 650 *-*-gnu*) 651 native_system_header_dir=/include 652 ;; 653 esac 654 # glibc / uclibc / bionic switch. 655 # uclibc and bionic aren't usable for GNU/Hurd and neither for GNU/k*BSD. 656 case $target in 657 *linux*) 658 extra_options="$extra_options linux.opt";; 659 esac 660 case $target in 661 *-*-*android*) 662 tm_defines="$tm_defines DEFAULT_LIBC=LIBC_BIONIC" 663 ;; 664 *-*-*uclibc*) 665 tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC" 666 ;; 667 *) 668 tm_defines="$tm_defines DEFAULT_LIBC=LIBC_GLIBC" 669 ;; 670 esac 671 # Assume that glibc or uClibc or Bionic are being used and so __cxa_atexit 672 # is provided. 673 default_use_cxa_atexit=yes 674 use_gcc_tgmath=no 675 use_gcc_stdint=wrap 676 # Add Android userspace support to Linux targets. 677 case $target in 678 *linux*) 679 tm_file="$tm_file linux-android.h" 680 extra_options="$extra_options linux-android.opt" 681 ;; 682 esac 683 # Enable compilation for Android by default for *android* targets. 684 case $target in 685 *-*-*android*) 686 tm_defines="$tm_defines ANDROID_DEFAULT=1" 687 ;; 688 *) 689 tm_defines="$tm_defines ANDROID_DEFAULT=0" 690 ;; 691 esac 692 c_target_objs="${c_target_objs} glibc-c.o" 693 cxx_target_objs="${cxx_target_objs} glibc-c.o" 694 tmake_file="${tmake_file} t-glibc" 695 target_has_targetcm=yes 696 ;; 697*-*-netbsd*) 698 tmake_file="t-slibgcc" 699 gas=yes 700 gnu_ld=yes 701 702 # NetBSD 2.0 and later get POSIX threads enabled by default. 703 # Allow them to be explicitly enabled on any other version. 704 case ${enable_threads} in 705 "") 706 case ${target} in 707 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) 708 thread_file='posix' 709 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS" 710 ;; 711 esac 712 ;; 713 yes | posix) 714 thread_file='posix' 715 tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS" 716 ;; 717 esac 718 719 # NetBSD 2.0 and later provide __cxa_atexit(), which we use by 720 # default (unless overridden by --disable-__cxa_atexit). 721 case ${target} in 722 *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) 723 default_use_cxa_atexit=yes 724 ;; 725 esac 726 nbsd_tm_file="${nbsd_tm_file} netbsd.h netbsd-stdint.h netbsd-elf.h" 727 ;; 728*-*-openbsd*) 729 tmake_file="t-openbsd" 730 case ${enable_threads} in 731 yes) 732 thread_file='posix' 733 ;; 734 esac 735 case ${target} in 736 *-*-openbsd2.*|*-*-openbsd3.[012]) 737 tm_defines="${tm_defines} HAS_LIBC_R=1" ;; 738 esac 739 case ${target} in 740 *-*-openbsd4.[3-9]|*-*-openbsd[5-9]*) 741 default_use_cxa_atexit=yes 742 ;; 743 esac 744 ;; 745*-*-rtems*) 746 case ${enable_threads} in 747 yes) thread_file='rtems' ;; 748 esac 749 extra_options="${extra_options} rtems.opt" 750 default_use_cxa_atexit=yes 751 use_gcc_stdint=wrap 752 ;; 753*-*-uclinux*) 754 extra_options="$extra_options gnu-user.opt" 755 use_gcc_stdint=wrap 756 tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC SINGLE_LIBC" 757 ;; 758*-*-rdos*) 759 use_gcc_stdint=wrap 760 ;; 761*-*-solaris2*) 762 # i?86-*-solaris2* needs to insert headers between cpu default and 763 # Solaris 2 specific ones. 764 sol2_tm_file="dbxelf.h elfos.h ${cpu_type}/sysv4.h sol2.h ${cpu_type}/sol2.h" 765 case ${target} in 766 *-*-solaris2.1[0-9]*) 767 sol2_tm_file="${sol2_tm_file} sol2-10.h" 768 use_gcc_stdint=wrap 769 ;; 770 *) 771 use_gcc_stdint=provide 772 ;; 773 esac 774 if test x$gnu_ld = xyes; then 775 tm_file="usegld.h ${tm_file}" 776 fi 777 if test x$gas = xyes; then 778 tm_file="usegas.h ${tm_file}" 779 fi 780 tm_p_file="${tm_p_file} sol2-protos.h" 781 tmake_file="${tmake_file} t-sol2 t-slibgcc" 782 c_target_objs="${c_target_objs} sol2-c.o" 783 cxx_target_objs="${cxx_target_objs} sol2-c.o sol2-cxx.o" 784 extra_objs="sol2.o sol2-stubs.o" 785 extra_options="${extra_options} sol2.opt" 786 case ${enable_threads}:${have_pthread_h}:${have_thread_h} in 787 "":yes:* | yes:yes:* ) 788 thread_file=posix 789 ;; 790 esac 791 ;; 792*-*-*vms*) 793 extra_options="${extra_options} vms/vms.opt" 794 xmake_file=vms/x-vms 795 tmake_file="vms/t-vms t-slibgcc" 796 extra_objs="vms.o" 797 target_gtfiles="$target_gtfiles \$(srcdir)/config/vms/vms.c" 798 tm_p_file="${tm_p_file} vms/vms-protos.h" 799 xm_file="vms/xm-vms.h" 800 c_target_objs="vms-c.o" 801 cxx_target_objs="vms-c.o" 802 fortran_target_objs="vms-f.o" 803 use_gcc_stdint=provide 804 tm_file="${tm_file} vms/vms-stdint.h" 805 if test x$gnu_ld != xyes; then 806 # Build wrappers for native case. 807 extra_programs="ld\$(exeext) ar\$(exeext)" 808 tmake_file="$tmake_file vms/t-vmsnative" 809 fi 810 ;; 811*-*-vxworks*) 812 tmake_file=t-vxworks 813 xm_defines=POSIX 814 extra_options="${extra_options} vxworks.opt" 815 extra_objs=vxworks.o 816 case ${enable_threads} in 817 no) ;; 818 "" | yes | vxworks) thread_file='vxworks' ;; 819 *) echo 'Unknown thread configuration for VxWorks'; exit 1 ;; 820 esac 821 ;; 822*-*-elf) 823 # Assume that newlib is being used and so __cxa_atexit is provided. 824 default_use_cxa_atexit=yes 825 use_gcc_stdint=wrap 826 ;; 827esac 828 829case ${target} in 830aarch64*-*-elf) 831 tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h" 832 tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-elf-raw.h" 833 tmake_file="${tmake_file} aarch64/t-aarch64" 834 use_gcc_stdint=wrap 835 case $target in 836 aarch64_be-*) 837 tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" 838 ;; 839 esac 840 ;; 841aarch64*-*-linux*) 842 tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h" 843 tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-linux.h" 844 tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aarch64-linux" 845 case $target in 846 aarch64_be-*) 847 tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" 848 ;; 849 esac 850 ;; 851alpha*-*-linux*) 852 tm_file="elfos.h ${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h glibc-stdint.h" 853 tmake_file="${tmake_file} alpha/t-linux" 854 extra_options="${extra_options} alpha/elf.opt" 855 ;; 856alpha*-*-freebsd*) 857 tm_file="elfos.h ${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h" 858 extra_options="${extra_options} alpha/elf.opt" 859 ;; 860alpha*-*-netbsd*) 861 tm_file="elfos.h ${tm_file} ${nbsd_tm_file} alpha/elf.h alpha/netbsd.h" 862 extra_options="${extra_options} netbsd.opt netbsd-elf.opt \ 863 alpha/elf.opt" 864 ;; 865alpha*-*-openbsd*) 866 tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT" 867 tm_file="elfos.h alpha/alpha.h alpha/elf.h openbsd.h openbsd-stdint.h alpha/openbsd.h openbsd-libpthread.h" 868 extra_options="${extra_options} openbsd.opt alpha/elf.opt" 869 # default x-alpha is only appropriate for dec-osf. 870 ;; 871alpha*-dec-*vms*) 872 tm_file="${tm_file} vms/vms.h alpha/vms.h" 873 tmake_file="${tmake_file} alpha/t-vms" 874 ;; 875arm-wrs-vxworks) 876 tm_file="elfos.h arm/elf.h arm/aout.h ${tm_file} vx-common.h vxworks.h arm/vxworks.h" 877 extra_options="${extra_options} arm/vxworks.opt" 878 tmake_file="${tmake_file} arm/t-arm arm/t-vxworks" 879 ;; 880arm*-*-netbsdelf*) 881 tmake_file="${tmake_file} arm/t-arm" 882 tm_file="dbxelf.h elfos.h ${nbsd_tm_file} arm/elf.h arm/aout.h arm/arm.h" 883 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 884 case ${target} in 885 arm*eb-*) tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" ;; 886 esac 887 case ${target} in 888 arm*-*-netbsdelf-*eabi*) 889 tm_file="$tm_file arm/bpabi.h arm/netbsd-elf.h arm/netbsd-eabi.h" 890 tmake_file="$tmake_file arm/t-bpabi" 891 # The BPABI long long divmod functions return a 128-bit value in 892 # registers r0-r3. Correctly modeling that requires the use of 893 # TImode. 894 need_64bit_hwint=yes 895 # The EABI requires the use of __cxa_atexit. 896 default_use_cxa_atexit=yes 897 ;; 898 *) 899 tm_file="$tm_file arm/netbsd-elf.h" 900 tmake_file="$tmake_file arm/t-netbsd" 901 ;; 902 esac 903 case ${target} in 904 arm*-*-netbsdelf-*eabihf*) 905 tm_defines="${tm_defines} TARGET_DEFAULT_FLOAT_ABI=ARM_FLOAT_ABI_HARD" 906 ;; 907 esac 908 case ${target} in 909 armv4*) with_cpu=${with_cpu:-strongarm};; 910 armv6*) with_cpu=${with_cpu:-arm1176jzf-s};; 911 armv7*) with_cpu=${with_cpu:-cortex-a8};; 912 esac 913 ;; 914arm*-*-linux-*) # ARM GNU/Linux with ELF 915 tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" 916 case $target in 917 arm*b-*-linux*) 918 tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" 919 ;; 920 esac 921 tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi" 922 tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h arm/aout.h vxworks-dummy.h arm/arm.h" 923 # Define multilib configuration for arm-linux-androideabi. 924 case ${target} in 925 *-androideabi) 926 tmake_file="$tmake_file arm/t-linux-androideabi" 927 ;; 928 esac 929 # The BPABI long long divmod functions return a 128-bit value in 930 # registers r0-r3. Correctly modeling that requires the use of 931 # TImode. 932 need_64bit_hwint=yes 933 # The EABI requires the use of __cxa_atexit. 934 default_use_cxa_atexit=yes 935 with_tls=${with_tls:-gnu} 936 ;; 937arm*-*-uclinux*eabi*) # ARM ucLinux 938 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/uclinux-elf.h glibc-stdint.h" 939 tmake_file="arm/t-arm arm/t-arm-elf arm/t-bpabi" 940 tm_file="$tm_file arm/bpabi.h arm/uclinux-eabi.h arm/aout.h vxworks-dummy.h arm/arm.h" 941 # The BPABI long long divmod functions return a 128-bit value in 942 # registers r0-r3. Correctly modeling that requires the use of 943 # TImode. 944 need_64bit_hwint=yes 945 # The EABI requires the use of __cxa_atexit. 946 default_use_cxa_atexit=yes 947 ;; 948arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*) 949 case ${target} in 950 arm*eb-*-eabi*) 951 tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" 952 esac 953 # The BPABI long long divmod functions return a 128-bit value in 954 # registers r0-r3. Correctly modeling that requires the use of 955 # TImode. 956 need_64bit_hwint=yes 957 default_use_cxa_atexit=yes 958 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h" 959 tmake_file="arm/t-arm arm/t-arm-elf" 960 case ${target} in 961 arm*-*-eabi*) 962 tm_file="$tm_file newlib-stdint.h" 963 tmake_file="${tmake_file} arm/t-bpabi" 964 use_gcc_stdint=wrap 965 ;; 966 arm*-*-rtems*) 967 tm_file="${tm_file} rtems.h arm/rtems-eabi.h newlib-stdint.h" 968 tmake_file="${tmake_file} arm/t-bpabi t-rtems arm/t-rtems-eabi" 969 ;; 970 arm*-*-symbianelf*) 971 tm_file="${tm_file} arm/symbian.h" 972 # We do not include t-bpabi for Symbian OS because the system 973 # provides its own implementation of the BPABI functions. 974 tmake_file="${tmake_file} arm/t-symbian" 975 ;; 976 esac 977 tm_file="${tm_file} arm/aout.h vxworks-dummy.h arm/arm.h" 978 ;; 979avr-*-rtems*) 980 tm_file="elfos.h avr/elf.h avr/avr-arch.h avr/avr.h dbxelf.h avr/rtems.h rtems.h newlib-stdint.h" 981 tmake_file="avr/t-avr avr/t-multilib t-rtems avr/t-rtems" 982 extra_gcc_objs="driver-avr.o avr-devices.o" 983 extra_objs="avr-devices.o avr-log.o" 984 ;; 985avr-*-*) 986 tm_file="elfos.h avr/elf.h avr/avr-arch.h avr/avr.h dbxelf.h avr/avr-stdint.h" 987 if test x${with_avrlibc} != xno; then 988 tm_file="${tm_file} ${cpu_type}/avrlibc.h" 989 tm_defines="${tm_defines} WITH_AVRLIBC" 990 fi 991 tmake_file="avr/t-avr avr/t-multilib" 992 use_gcc_stdint=wrap 993 extra_gcc_objs="driver-avr.o avr-devices.o" 994 extra_objs="avr-devices.o avr-log.o" 995 ;; 996bfin*-elf*) 997 tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h" 998 tmake_file=bfin/t-bfin-elf 999 use_collect2=no 1000 ;; 1001bfin*-uclinux*) 1002 tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h gnu-user.h linux.h glibc-stdint.h bfin/uclinux.h" 1003 tmake_file=bfin/t-bfin-uclinux 1004 use_collect2=no 1005 ;; 1006bfin*-linux-uclibc*) 1007 tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h gnu-user.h linux.h glibc-stdint.h bfin/linux.h ./linux-sysroot-suffix.h" 1008 tmake_file="bfin/t-bfin-linux t-slibgcc" 1009 use_collect2=no 1010 ;; 1011bfin*-rtems*) 1012 tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/rtems.h rtems.h newlib-stdint.h" 1013 tmake_file="t-rtems bfin/t-rtems" 1014 ;; 1015bfin*-*) 1016 tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h" 1017 use_collect2=no 1018 use_gcc_stdint=wrap 1019 ;; 1020cr16-*-elf) 1021 tm_file="elfos.h ${tm_file}" 1022 tmake_file="${tmake_file} cr16/t-cr16 " 1023 use_collect2=no 1024 ;; 1025crisv32-*-elf | crisv32-*-none) 1026 tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" 1027 tmake_file="cris/t-cris" 1028 target_cpu_default=32 1029 gas=yes 1030 extra_options="${extra_options} cris/elf.opt" 1031 use_gcc_stdint=wrap 1032 ;; 1033cris-*-elf | cris-*-none) 1034 tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" 1035 tmake_file="cris/t-cris cris/t-elfmulti" 1036 gas=yes 1037 extra_options="${extra_options} cris/elf.opt" 1038 use_gcc_stdint=wrap 1039 ;; 1040crisv32-*-linux* | cris-*-linux*) 1041 tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h glibc-stdint.h cris/linux.h" 1042 # We need to avoid using t-linux, so override default tmake_file 1043 tmake_file="cris/t-cris cris/t-linux t-slibgcc" 1044 extra_options="${extra_options} cris/linux.opt" 1045 case $target in 1046 cris-*-*) 1047 target_cpu_default=10 1048 ;; 1049 crisv32-*-*) 1050 target_cpu_default=32 1051 ;; 1052 esac 1053 ;; 1054epiphany-*-elf ) 1055 tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" 1056 tmake_file="epiphany/t-epiphany" 1057 extra_options="${extra_options} fused-madd.opt" 1058 extra_objs="$extra_objs mode-switch-use.o resolve-sw-modes.o" 1059 tm_defines="${tm_defines} EPIPHANY_STACK_OFFSET=${with_stack_offset:-8}" 1060 extra_headers="epiphany_intrinsics.h" 1061 ;; 1062fr30-*-elf) 1063 tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" 1064 ;; 1065frv-*-elf) 1066 tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" 1067 tmake_file=frv/t-frv 1068 ;; 1069frv-*-*linux*) 1070 tm_file="dbxelf.h elfos.h ${tm_file} \ 1071 gnu-user.h linux.h glibc-stdint.h frv/linux.h" 1072 tmake_file="${tmake_file} frv/t-frv frv/t-linux" 1073 ;; 1074moxie-*-elf) 1075 gas=yes 1076 gnu_ld=yes 1077 tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" 1078 tmake_file="${tmake_file} moxie/t-moxie" 1079 ;; 1080moxie-*-uclinux*) 1081 gas=yes 1082 gnu_ld=yes 1083 tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h glibc-stdint.h moxie/uclinux.h" 1084 tmake_file="${tmake_file} moxie/t-moxie" 1085 ;; 1086moxie-*-rtems*) 1087 tmake_file="${tmake_file} moxie/t-moxie t-rtems" 1088 tm_file="moxie/moxie.h dbxelf.h elfos.h moxie/rtems.h rtems.h newlib-stdint.h" 1089 ;; 1090h8300-*-rtems*) 1091 tmake_file="h8300/t-h8300 t-rtems h8300/t-rtems" 1092 tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h h8300/rtems.h rtems.h newlib-stdint.h" 1093 ;; 1094h8300-*-elf*) 1095 tmake_file="h8300/t-h8300" 1096 tm_file="h8300/h8300.h dbxelf.h elfos.h newlib-stdint.h h8300/elf.h" 1097 ;; 1098hppa*64*-*-linux*) 1099 target_cpu_default="MASK_PA_11|MASK_PA_20" 1100 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h gnu-user.h linux.h \ 1101 glibc-stdint.h pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h \ 1102 pa/pa64-linux.h" 1103 gas=yes gnu_ld=yes 1104 need_64bit_hwint=yes 1105 ;; 1106hppa*-*-linux*) 1107 target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS" 1108 tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h pa/pa-linux.h \ 1109 pa/pa32-regs.h pa/pa32-linux.h" 1110 tmake_file="${tmake_file} pa/t-linux" 1111 ;; 1112hppa*-*-openbsd*) 1113 target_cpu_default="MASK_PA_11" 1114 tm_file="${tm_file} dbxelf.h elfos.h openbsd.h openbsd-stdint.h openbsd-libpthread.h \ 1115 pa/pa-openbsd.h pa/pa32-regs.h pa/pa32-openbsd.h" 1116 tmake_file="${tmake_file} pa/t-openbsd" 1117 extra_options="${extra_options} openbsd.opt" 1118 gas=yes 1119 gnu_ld=yes 1120 ;; 1121hppa*-*-netbsd* | parisc*-*-netbsd*) 1122 target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS" 1123 tm_file="${tm_file} dbxelf.h elfos.h ${nbsd_tm_file} \ 1124 pa/pa-netbsd.h pa/pa32-regs.h pa/pa32-netbsd.h" 1125 tmake_file="${tmake_file} pa/t-netbsd" 1126 tm_defines="${tm_defines} CHAR_FAST8=1 SHORT_FAST16=1" 1127 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 1128 ;; 1129hppa[12]*-*-hpux10*) 1130 case ${target} in 1131 hppa1.1-*-* | hppa2*-*-*) 1132 target_cpu_default="MASK_PA_11" 1133 ;; 1134 esac 1135 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \ 1136 pa/pa-hpux.h pa/pa-hpux10.h" 1137 extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux10.opt" 1138 case ${target} in 1139 *-*-hpux10.[1-9]*) 1140 tm_file="${tm_file} pa/pa-hpux1010.h" 1141 extra_options="${extra_options} pa/pa-hpux1010.opt" 1142 ;; 1143 esac 1144 use_gcc_stdint=provide 1145 tm_file="${tm_file} hpux-stdint.h" 1146 tmake_file="t-slibgcc" 1147 case ${enable_threads} in 1148 "") 1149 if test x$have_pthread_h = xyes ; then 1150 tmake_file="${tmake_file} pa/t-dce-thr" 1151 fi 1152 ;; 1153 yes | dce) 1154 tmake_file="${tmake_file} pa/t-dce-thr" 1155 ;; 1156 esac 1157 use_collect2=yes 1158 gas=yes 1159 if test "x$with_dwarf2" != x; then 1160 echo "Warning: dwarf2 debug format is not supported for this target, --with-dwarf2 ignored" 1>&2 1161 dwarf2=no 1162 fi 1163 ;; 1164hppa*64*-*-hpux11*) 1165 target_cpu_default="MASK_PA_11|MASK_PA_20" 1166 if test x$gnu_ld = xyes 1167 then 1168 target_cpu_default="${target_cpu_default}|MASK_GNU_LD" 1169 fi 1170 tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \ 1171 pa/pa64-regs.h pa/pa-hpux.h pa/pa-hpux1010.h \ 1172 pa/pa-hpux11.h" 1173 case ${target} in 1174 *-*-hpux11.[12]*) 1175 tm_file="${tm_file} pa/pa-hpux1111.h pa/pa-64.h pa/pa64-hpux.h" 1176 extra_options="${extra_options} pa/pa-hpux1111.opt" 1177 ;; 1178 *-*-hpux11.[3-9]*) 1179 tm_file="${tm_file} pa/pa-hpux1131.h pa/pa-64.h pa/pa64-hpux.h" 1180 extra_options="${extra_options} pa/pa-hpux1131.opt" 1181 ;; 1182 *) 1183 tm_file="${tm_file} pa/pa-64.h pa/pa64-hpux.h" 1184 ;; 1185 esac 1186 extra_options="${extra_options} pa/pa-hpux.opt \ 1187 pa/pa-hpux1010.opt pa/pa64-hpux.opt hpux11.opt" 1188 need_64bit_hwint=yes 1189 tmake_file="t-slibgcc" 1190 case x${enable_threads} in 1191 x | xyes | xposix ) 1192 thread_file=posix 1193 ;; 1194 esac 1195 gas=yes 1196 case ${target} in 1197 *-*-hpux11.[01]*) 1198 use_gcc_stdint=provide 1199 tm_file="${tm_file} hpux-stdint.h" 1200 ;; 1201 *-*-hpux11.[23]*) 1202 use_gcc_stdint=wrap 1203 tm_file="${tm_file} hpux-stdint.h" 1204 ;; 1205 esac 1206 ;; 1207hppa[12]*-*-hpux11*) 1208 case ${target} in 1209 hppa1.1-*-* | hppa2*-*-*) 1210 target_cpu_default="MASK_PA_11" 1211 ;; 1212 esac 1213 tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \ 1214 pa/pa-hpux.h pa/pa-hpux1010.h pa/pa-hpux11.h" 1215 extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux1010.opt \ 1216 hpux11.opt" 1217 case ${target} in 1218 *-*-hpux11.[12]*) 1219 tm_file="${tm_file} pa/pa-hpux1111.h" 1220 extra_options="${extra_options} pa/pa-hpux1111.opt" 1221 ;; 1222 *-*-hpux11.[3-9]*) 1223 tm_file="${tm_file} pa/pa-hpux1131.h" 1224 extra_options="${extra_options} pa/pa-hpux1131.opt" 1225 ;; 1226 esac 1227 tmake_file="t-slibgcc" 1228 case x${enable_threads} in 1229 x | xyes | xposix ) 1230 thread_file=posix 1231 ;; 1232 esac 1233 use_collect2=yes 1234 gas=yes 1235 case ${target} in 1236 *-*-hpux11.[01]*) 1237 use_gcc_stdint=provide 1238 tm_file="${tm_file} hpux-stdint.h" 1239 ;; 1240 *-*-hpux11.[23]*) 1241 use_gcc_stdint=wrap 1242 tm_file="${tm_file} hpux-stdint.h" 1243 ;; 1244 esac 1245 if test "x$with_dwarf2" != x; then 1246 echo "Warning: dwarf2 debug format is not supported for this target, --with-dwarf2 ignored" 1>&2 1247 dwarf2=no 1248 fi 1249 ;; 1250i[34567]86-*-darwin*) 1251 need_64bit_isa=yes 1252 # Baseline choice for a machine that allows m64 support. 1253 with_cpu=${with_cpu:-core2} 1254 tmake_file="${tmake_file} t-slibgcc" 1255 ;; 1256x86_64-*-darwin*) 1257 with_cpu=${with_cpu:-core2} 1258 tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc" 1259 tm_file="${tm_file} ${cpu_type}/darwin64.h" 1260 ;; 1261i[34567]86-*-elf*) 1262 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h" 1263 ;; 1264x86_64-*-elf*) 1265 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h" 1266 ;; 1267i[34567]86-*-rdos*) 1268 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/rdos.h" 1269 ;; 1270x86_64-*-rdos*) 1271 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h i386/rdos.h i386/rdos64.h" 1272 tmake_file="i386/t-i386elf t-svr4" 1273 ;; 1274i[34567]86-*-freebsd*) 1275 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h" 1276 ;; 1277x86_64-*-freebsd*) 1278 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" 1279 ;; 1280i[34567]86-*-netbsdelf*) 1281 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${nbsd_tm_file} i386/netbsd-elf.h" 1282 tmake_file="${tmake_file} i386/t-crtstuff" 1283 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 1284 ;; 1285i[34567]86-*-netbsd*) 1286 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h" 1287 tmake_file="${tmake_file} t-netbsd" 1288 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 1289 extra_parts="" 1290 use_collect2=yes 1291 ;; 1292x86_64-*-netbsd*) 1293 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${nbsd_tm_file} i386/x86-64.h i386/netbsd64.h" 1294 tmake_file="${tmake_file} i386/t-netbsd64" 1295 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 1296 ;; 1297i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) 1298 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" 1299 extra_options="${extra_options} openbsd.opt" 1300 # needed to unconfuse gdb 1301 tmake_file="${tmake_file} t-openbsd i386/t-openbsd" 1302 # we need collect2 until our bug is fixed... 1303 use_collect2=yes 1304 ;; 1305i[34567]86-*-openbsd*) 1306 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h" 1307 tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/openbsdelf.h" 1308 extra_options="${extra_options} openbsd.opt" 1309 gas=yes 1310 gnu_ld=yes 1311 ;; 1312x86_64-*-openbsd*) 1313 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h" 1314 tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/x86-64.h i386/openbsdelf.h" 1315 extra_options="${extra_options} openbsd.opt" 1316 gas=yes 1317 gnu_ld=yes 1318 ;; 1319i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu) 1320 # Intel 80386's running GNU/* 1321 # with ELF format using glibc 2 1322 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h" 1323 case ${target} in 1324 i[34567]86-*-linux*) 1325 tm_file="${tm_file} linux.h" 1326 # Assume modern glibc 1327 default_gnu_indirect_function=yes 1328 if test x$enable_targets = xall; then 1329 tm_file="${tm_file} i386/x86-64.h i386/gnu-user-common.h i386/gnu-user64.h i386/linux-common.h i386/linux64.h" 1330 tm_defines="${tm_defines} TARGET_BI_ARCH=1" 1331 tmake_file="${tmake_file} i386/t-linux64" 1332 x86_multilibs="${with_multilib_list}" 1333 if test "$x86_multilibs" = "default"; then 1334 x86_multilibs="m64,m32" 1335 fi 1336 x86_multilibs=`echo $x86_multilibs | sed -e 's/,/ /g'` 1337 for x86_multilib in ${x86_multilibs}; do 1338 case ${x86_multilib} in 1339 m32 | m64 | mx32) 1340 TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${x86_multilib}" 1341 ;; 1342 *) 1343 echo "--with-multilib-list=${x86_with_multilib} not supported." 1344 exit 1 1345 esac 1346 done 1347 TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'` 1348 need_64bit_isa=yes 1349 case X"${with_cpu}" in 1350 Xgeneric|Xatom|Xcore2|Xcorei7|Xcorei7-avx|Xnocona|Xx86-64|Xbdver3|Xbdver2|Xbdver1|Xbtver2|Xbtver1|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) 1351 ;; 1352 X) 1353 if test x$with_cpu_64 = x; then 1354 with_cpu_64=generic 1355 fi 1356 ;; 1357 *) 1358 echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 1359 echo "generic atom core2 corei7 corei7-avx nocona x86-64 bdver3 bdver2 bdver1 btver2 btver1 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 1360 exit 1 1361 ;; 1362 esac 1363 else 1364 tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h i386/linux-common.h i386/linux.h" 1365 fi 1366 ;; 1367 i[34567]86-*-knetbsd*-gnu) 1368 tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h knetbsd-gnu.h i386/knetbsd-gnu.h" 1369 ;; 1370 i[34567]86-*-kfreebsd*-gnu) 1371 tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h kfreebsd-gnu.h i386/kfreebsd-gnu.h" 1372 ;; 1373 i[34567]86-*-kopensolaris*-gnu) 1374 tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h kopensolaris-gnu.h i386/kopensolaris-gnu.h" 1375 ;; 1376 i[34567]86-*-gnu*) 1377 tm_file="$tm_file i386/gnu-user-common.h i386/gnu-user.h gnu.h i386/gnu.h" 1378 ;; 1379 esac 1380 ;; 1381x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu) 1382 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h \ 1383 i386/x86-64.h i386/gnu-user-common.h i386/gnu-user64.h" 1384 case ${target} in 1385 x86_64-*-linux*) 1386 tm_file="${tm_file} linux.h i386/linux-common.h i386/linux64.h" 1387 # Assume modern glibc 1388 default_gnu_indirect_function=yes 1389 ;; 1390 x86_64-*-kfreebsd*-gnu) 1391 tm_file="${tm_file} kfreebsd-gnu.h i386/kfreebsd-gnu64.h" 1392 ;; 1393 x86_64-*-knetbsd*-gnu) 1394 tm_file="${tm_file} knetbsd-gnu.h" 1395 ;; 1396 esac 1397 tmake_file="${tmake_file} i386/t-linux64" 1398 x86_multilibs="${with_multilib_list}" 1399 if test "$x86_multilibs" = "default"; then 1400 case ${with_abi} in 1401 x32 | mx32) 1402 x86_multilibs="mx32" 1403 ;; 1404 *) 1405 x86_multilibs="m64,m32" 1406 ;; 1407 esac 1408 fi 1409 x86_multilibs=`echo $x86_multilibs | sed -e 's/,/ /g'` 1410 for x86_multilib in ${x86_multilibs}; do 1411 case ${x86_multilib} in 1412 m32 | m64 | mx32) 1413 TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${x86_multilib}" 1414 ;; 1415 *) 1416 echo "--with-multilib-list=${x86_with_multilib} not supported." 1417 exit 1 1418 esac 1419 done 1420 TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'` 1421 ;; 1422i[34567]86-pc-msdosdjgpp*) 1423 xm_file=i386/xm-djgpp.h 1424 tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h i386/djgpp-stdint.h" 1425 native_system_header_dir=/dev/env/DJDIR/include 1426 extra_options="${extra_options} i386/djgpp.opt" 1427 gnu_ld=yes 1428 gas=yes 1429 use_gcc_stdint=wrap 1430 ;; 1431i[34567]86-*-lynxos*) 1432 xm_defines=POSIX 1433 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/lynx.h lynx.h" 1434 tmake_file="${tmake_file} t-lynx" 1435 extra_options="${extra_options} lynx.opt" 1436 thread_file=lynx 1437 gnu_ld=yes 1438 gas=yes 1439 ;; 1440i[34567]86-*-nto-qnx*) 1441 tm_file="${tm_file} i386/att.h dbxelf.h tm-dwarf2.h elfos.h i386/unix.h i386/nto.h" 1442 extra_options="${extra_options} i386/nto.opt" 1443 gnu_ld=yes 1444 gas=yes 1445 ;; 1446i[34567]86-*-rtems*) 1447 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" 1448 tmake_file="${tmake_file} i386/t-rtems t-rtems" 1449 ;; 1450i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) 1451 tm_file="${tm_file} i386/unix.h i386/att.h ${sol2_tm_file}" 1452 # Set default arch_32 to pentium4, tune_32 to generic like the other 1453 # i386 targets, although config.guess defaults to i386-pc-solaris2*. 1454 case ${target} in 1455 *-*-solaris2.9*) 1456 # Solaris 9/x86 cannot execute SSE/SSE2 instructions by default. 1457 with_arch_32=${with_arch_32:-pentiumpro} 1458 ;; 1459 *) 1460 with_arch_32=${with_arch_32:-pentium4} 1461 ;; 1462 esac 1463 with_tune_32=${with_tune_32:-generic} 1464 case ${target} in 1465 *-*-solaris2.1[0-9]*) 1466 tm_file="${tm_file} i386/x86-64.h i386/sol2-bi.h sol2-bi.h" 1467 tm_defines="${tm_defines} TARGET_BI_ARCH=1" 1468 tmake_file="$tmake_file i386/t-sol2-64" 1469 need_64bit_isa=yes 1470 case X"${with_cpu}" in 1471 Xgeneric|Xatom|Xcore2|Xcorei7|Xcorei7-avx|Xnocona|Xx86-64|Xbdver3|Xbdver2|Xbdver1|Xbtver2|Xbtver1|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) 1472 ;; 1473 X) 1474 if test x$with_cpu_64 = x; then 1475 with_cpu_64=generic 1476 fi 1477 ;; 1478 *) 1479 echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 1480 echo "generic atom core2 corei7 corei7-avx nocona x86-64 bdver3 bdver2 bdver1 btver2 btver1 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 1481 exit 1 1482 ;; 1483 esac 1484 ;; 1485 esac 1486 ;; 1487i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae) 1488 tm_file="${tm_file} i386/unix.h i386/att.h elfos.h vx-common.h" 1489 case ${target} in 1490 *-vxworksae*) 1491 tm_file="${tm_file} vxworksae.h i386/vx-common.h i386/vxworksae.h" 1492 tmake_file="${tmake_file} i386/t-vxworks i386/t-vxworksae" 1493 ;; 1494 *) 1495 tm_file="${tm_file} vxworks.h i386/vx-common.h i386/vxworks.h" 1496 tmake_file="${tmake_file} i386/t-vxworks" 1497 ;; 1498 esac 1499 ;; 1500i[34567]86-*-cygwin*) 1501 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" 1502 xm_file=i386/xm-cygwin.h 1503 tmake_file="${tmake_file} i386/t-cygming t-slibgcc" 1504 target_gtfiles="\$(srcdir)/config/i386/winnt.c" 1505 extra_options="${extra_options} i386/cygming.opt" 1506 extra_objs="winnt.o winnt-stubs.o" 1507 c_target_objs="${c_target_objs} msformat-c.o" 1508 cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" 1509 if test x$enable_threads = xyes; then 1510 thread_file='posix' 1511 fi 1512 use_gcc_stdint=wrap 1513 ;; 1514i[34567]86-*-mingw* | x86_64-*-mingw*) 1515 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h" 1516 xm_file=i386/xm-mingw32.h 1517 case ${target} in 1518 x86_64-*-* | *-w64-*) 1519 need_64bit_isa=yes 1520 ;; 1521 *) 1522 ;; 1523 esac 1524 if test x$enable_threads = xposix ; then 1525 tm_file="${tm_file} i386/mingw-pthread.h" 1526 fi 1527 tm_file="${tm_file} i386/mingw32.h" 1528 # This makes the logic if mingw's or the w64 feature set has to be used 1529 case ${target} in 1530 *-w64-*) 1531 user_headers_inc_next_post="${user_headers_inc_next_post} float.h" 1532 user_headers_inc_next_pre="${user_headers_inc_next_pre} stddef.h stdarg.h" 1533 tm_file="${tm_file} i386/mingw-w64.h" 1534 if test x$enable_targets = xall; then 1535 tm_defines="${tm_defines} TARGET_BI_ARCH=1" 1536 case X"${with_cpu}" in 1537 Xgeneric|Xatom|Xcore2|Xcorei7|Xcorei7-avx|Xnocona|Xx86-64|Xbdver3|Xbdver2|Xbdver1|Xbtver2|Xbtver1|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) 1538 ;; 1539 X) 1540 if test x$with_cpu_64 = x; then 1541 with_cpu_64=generic 1542 fi 1543 ;; 1544 *) 1545 echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 1546 echo "generic atom core2 corei7 Xcorei7-avx nocona x86-64 bdver3 bdver2 bdver1 btver2 btver1 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 1547 exit 1 1548 ;; 1549 esac 1550 fi 1551 ;; 1552 *) 1553 ;; 1554 esac 1555 tm_file="${tm_file} i386/mingw-stdint.h" 1556 tmake_file="${tmake_file} i386/t-cygming t-slibgcc" 1557 case ${target} in 1558 x86_64-w64-*) 1559 tmake_file="${tmake_file} i386/t-mingw-w64" 1560 ;; 1561 i[34567]86-w64-*) 1562 tmake_file="${tmake_file} i386/t-mingw-w32" 1563 ;; 1564 esac 1565 native_system_header_dir=/mingw/include 1566 target_gtfiles="\$(srcdir)/config/i386/winnt.c" 1567 extra_options="${extra_options} i386/cygming.opt i386/mingw.opt" 1568 case ${target} in 1569 *-w64-*) 1570 extra_options="${extra_options} i386/mingw-w64.opt" 1571 ;; 1572 *) 1573 ;; 1574 esac 1575 extra_objs="winnt.o winnt-stubs.o" 1576 c_target_objs="${c_target_objs} msformat-c.o" 1577 cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" 1578 gas=yes 1579 gnu_ld=yes 1580 default_use_cxa_atexit=yes 1581 use_gcc_stdint=wrap 1582 case ${enable_threads} in 1583 "" | yes | win32) 1584 thread_file='win32' 1585 ;; 1586 posix) 1587 thread_file='posix' 1588 ;; 1589 esac 1590 case ${target} in 1591 *mingw32crt*) 1592 tm_file="${tm_file} i386/crtdll.h" 1593 ;; 1594 *mingw32msv* | *mingw*) 1595 ;; 1596 esac 1597 ;; 1598i[34567]86-*-interix[3-9]*) 1599 tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h" 1600 tmake_file="${tmake_file} i386/t-interix" 1601 extra_options="${extra_options} rpath.opt i386/interix.opt" 1602 extra_objs="winnt.o winnt-stubs.o" 1603 target_gtfiles="\$(srcdir)/config/i386/winnt.c" 1604 if test x$enable_threads = xyes ; then 1605 thread_file='posix' 1606 fi 1607 if test x$stabs = xyes ; then 1608 tm_file="${tm_file} dbxcoff.h" 1609 fi 1610 ;; 1611ia64*-*-elf*) 1612 tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h ia64/sysv4.h ia64/elf.h" 1613 tmake_file="ia64/t-ia64" 1614 target_cpu_default="0" 1615 if test x$gas = xyes 1616 then 1617 target_cpu_default="${target_cpu_default}|MASK_GNU_AS" 1618 fi 1619 if test x$gnu_ld = xyes 1620 then 1621 target_cpu_default="${target_cpu_default}|MASK_GNU_LD" 1622 fi 1623 ;; 1624ia64*-*-netbsd*) 1625 tm_file="${tm_file} dbxelf.h elfos.h ${nbsd_tm_file} ia64/sysv4.h ia64/netbsd.h" 1626 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" 1627 tmake_file="${tmake_file} ia64/t-ia64" 1628 if test x$with_system_libunwind != xyes ; then 1629 tmake_file="${tmake_file} t-libunwind-elf ia64/t-glibc-libunwind" 1630 fi 1631 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" 1632 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 1633 ;; 1634ia64*-*-freebsd*) 1635 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h" 1636 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" 1637 tmake_file="${tmake_file} ia64/t-ia64" 1638 ;; 1639ia64*-*-linux*) 1640 tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ia64/sysv4.h ia64/linux.h" 1641 tmake_file="${tmake_file} ia64/t-ia64 ia64/t-linux t-libunwind" 1642 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" 1643 ;; 1644ia64*-*-hpux*) 1645 tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/hpux.h" 1646 tmake_file="ia64/t-ia64 ia64/t-hpux t-slibgcc" 1647 target_cpu_default="MASK_GNU_AS" 1648 case x$enable_threads in 1649 x | xyes | xposix ) 1650 thread_file=posix 1651 ;; 1652 esac 1653 use_collect2=no 1654 c_target_objs="ia64-c.o" 1655 cxx_target_objs="ia64-c.o" 1656 extra_options="${extra_options} ia64/ilp32.opt hpux11.opt" 1657 use_gcc_stdint=wrap 1658 tm_file="${tm_file} hpux-stdint.h" 1659 case ${target} in 1660 *-*-hpux11.3*) 1661 tm_file="${tm_file} ia64/hpux-unix2003.h" 1662 ;; 1663 esac 1664 ;; 1665ia64-hp-*vms*) 1666 tm_file="${tm_file} elfos.h ia64/sysv4.h vms/vms.h ia64/vms.h" 1667 tmake_file="${tmake_file} ia64/t-ia64" 1668 target_cpu_default="0" 1669 if test x$gas = xyes 1670 then 1671 target_cpu_default="${target_cpu_default}|MASK_GNU_AS" 1672 fi 1673 extra_options="${extra_options} ia64/vms.opt" 1674 ;; 1675iq2000*-*-elf*) 1676 tm_file="elfos.h newlib-stdint.h iq2000/iq2000.h" 1677 out_file=iq2000/iq2000.c 1678 md_file=iq2000/iq2000.md 1679 ;; 1680lm32-*-elf*) 1681 tm_file="dbxelf.h elfos.h ${tm_file}" 1682 tmake_file="${tmake_file} lm32/t-lm32" 1683 ;; 1684lm32-*-rtems*) 1685 tm_file="dbxelf.h elfos.h ${tm_file} lm32/rtems.h rtems.h newlib-stdint.h" 1686 tmake_file="${tmake_file} lm32/t-lm32" 1687 tmake_file="${tmake_file} t-rtems" 1688 tmake_file="${tmake_file} lm32/t-rtems" 1689 ;; 1690lm32-*-uclinux*) 1691 tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h lm32/uclinux-elf.h" 1692 tmake_file="${tmake_file} lm32/t-lm32" 1693 ;; 1694m32r-*-elf*) 1695 tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" 1696 ;; 1697m32rle-*-elf*) 1698 tm_file="dbxelf.h elfos.h newlib-stdint.h m32r/little.h ${tm_file}" 1699 ;; 1700m32r-*-rtems*) 1701 tm_file="dbxelf.h elfos.h ${tm_file} m32r/rtems.h rtems.h newlib-stdint.h" 1702 tmake_file="m32r/t-m32r t-rtems" 1703 ;; 1704m32r-*-linux*) 1705 tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} m32r/linux.h" 1706 # We override the tmake_file for linux -- why? 1707 tmake_file="m32r/t-linux t-slibgcc" 1708 gnu_ld=yes 1709 if test x$enable_threads = xyes; then 1710 thread_file='posix' 1711 fi 1712 ;; 1713m32rle-*-linux*) 1714 tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h m32r/little.h ${tm_file} m32r/linux.h" 1715 # We override the tmake_file for linux -- why? 1716 tmake_file="m32r/t-linux t-slibgcc" 1717 gnu_ld=yes 1718 if test x$enable_threads = xyes; then 1719 thread_file='posix' 1720 fi 1721 ;; 1722m68k-*-elf* | fido-*-elf*) 1723 case ${target} in 1724 fido-*-elf*) 1725 # Check that $with_cpu makes sense. 1726 case $with_cpu in 1727 "" | "fidoa") 1728 ;; 1729 *) 1730 echo "Cannot accept --with-cpu=$with_cpu" 1731 exit 1 1732 ;; 1733 esac 1734 with_cpu=fidoa 1735 ;; 1736 *) 1737 default_m68k_cpu=68020 1738 default_cf_cpu=5206 1739 ;; 1740 esac 1741 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" 1742 tm_defines="${tm_defines} MOTOROLA=1" 1743 tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-m68kelf" 1744 # Add multilibs for targets other than fido. 1745 case ${target} in 1746 fido-*-elf*) 1747 ;; 1748 *) 1749 tmake_file="$tmake_file m68k/t-mlibs" 1750 ;; 1751 esac 1752 ;; 1753m68010-*-netbsdelf* | m68k-*-netbsdelf* | m5407-*-netbsdelf*) 1754 tm_file="${tm_file} dbxelf.h elfos.h ${nbsd_tm_file} m68k/netbsd-elf.h" 1755 tm_defines="${tm_defines} MOTOROLA=1 USE_GAS=1" 1756 tm_defines="${tm_defines} CHAR_FAST8=1 SHORT_FAST16=1" 1757 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 1758 default_cf_cpu=5475 1759 default_m68k_cpu=68020 1760 case ${target} in 1761 m5407*) 1762 with_arch=${with_arch:-cf} 1763 target_cpu_default="mcf5475" 1764# target="`echo ${target} | sed 's/m68kcf/m68k/'`" 1765 ;; 1766 m68010*) 1767 target_cpu_default="m68010" 1768 tmake_file="m68k/t-m68kelf m68k/t-m68010-netbsd" 1769 default_m68k_cpu=68010 1770 tmake_file="${tmake_file} m68k/t-floatlib" 1771 ;; 1772 *) 1773 with_arch=${with_arch:-m68k} 1774 tmake_file="${tmake_file} m68k/t-floatlib" 1775 ;; 1776 esac 1777 ;; 1778m68k*-*-openbsd*) 1779 default_m68k_cpu=68020 1780 default_cf_cpu=5475 1781 # needed to unconfuse gdb 1782 tm_defines="${tm_defines} OBSD_OLD_GAS" 1783 tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h m68k/openbsd.h" 1784 extra_options="${extra_options} openbsd.opt" 1785 tmake_file="t-openbsd m68k/t-openbsd" 1786 # we need collect2 until our bug is fixed... 1787 use_collect2=yes 1788 ;; 1789m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux 1790 # with uClibc, using the new GNU/Linux-style 1791 # ABI. 1792 default_m68k_cpu=68020 1793 default_cf_cpu=5206 1794 tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h flat.h m68k/linux.h m68k/uclinux.h ./sysroot-suffix.h" 1795 extra_options="${extra_options} m68k/uclinux.opt" 1796 tm_defines="${tm_defines} MOTOROLA=1" 1797 tmake_file="m68k/t-floatlib m68k/t-uclinux m68k/t-mlibs" 1798 ;; 1799m68k-*-linux*) # Motorola m68k's running GNU/Linux 1800 # with ELF format using glibc 2 1801 # aka the GNU/Linux C library 6. 1802 default_m68k_cpu=68020 1803 default_cf_cpu=5475 1804 with_arch=${with_arch:-m68k} 1805 tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h m68k/linux.h ./sysroot-suffix.h" 1806 extra_options="${extra_options} m68k/ieee.opt" 1807 tm_defines="${tm_defines} MOTOROLA=1" 1808 tmake_file="${tmake_file} m68k/t-floatlib m68k/t-linux m68k/t-mlibs" 1809 ;; 1810m68k-*-rtems*) 1811 default_m68k_cpu=68020 1812 default_cf_cpu=5206 1813 tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-crtstuff t-rtems m68k/t-rtems m68k/t-mlibs" 1814 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" 1815 tm_defines="${tm_defines} MOTOROLA=1" 1816 ;; 1817mcore-*-elf) 1818 tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file} mcore/mcore-elf.h" 1819 tmake_file=mcore/t-mcore 1820 inhibit_libc=true 1821 ;; 1822mep-*-*) 1823 tm_file="dbxelf.h elfos.h ${tm_file}" 1824 tmake_file=mep/t-mep 1825 c_target_objs="mep-pragma.o" 1826 cxx_target_objs="mep-pragma.o" 1827 if test -d "${srcdir}/../newlib/libc/include" && 1828 test "x$with_headers" = x; then 1829 with_headers=yes 1830 fi 1831 use_gcc_stdint=wrap 1832 ;; 1833microblaze*-linux*) 1834 case $target in 1835 microblazeel-*) 1836 tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=0" 1837 ;; 1838 microblaze-*) 1839 tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=4321" 1840 ;; 1841 esac 1842 tm_file="${tm_file} dbxelf.h gnu-user.h linux.h microblaze/linux.h" 1843 tm_file="${tm_file} glibc-stdint.h" 1844 c_target_objs="${c_target_objs} microblaze-c.o" 1845 cxx_target_objs="${cxx_target_objs} microblaze-c.o" 1846 tmake_file="${tmake_file} microblaze/t-microblaze" 1847 tmake_file="${tmake_file} microblaze/t-microblaze-linux" 1848 ;; 1849microblaze*-*-rtems*) 1850 case $target in 1851 microblazeel-*) 1852 tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=0" 1853 ;; 1854 microblaze-*) 1855 tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=4321" 1856 ;; 1857 esac 1858 tm_file="${tm_file} dbxelf.h" 1859 tm_file="${tm_file} microblaze/rtems.h rtems.h newlib-stdint.h" 1860 c_target_objs="${c_target_objs} microblaze-c.o" 1861 cxx_target_objs="${cxx_target_objs} microblaze-c.o" 1862 tmake_file="${tmake_file} microblaze/t-microblaze" 1863 tmake_file="${tmake_file} t-rtems microblaze/t-rtems" 1864 ;; 1865microblaze*-*-elf) 1866 case $target in 1867 microblazeel-*) 1868 tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=0" 1869 ;; 1870 microblaze-*) 1871 tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=4321" 1872 ;; 1873 esac 1874 tm_file="${tm_file} dbxelf.h newlib-stdint.h" 1875 c_target_objs="${c_target_objs} microblaze-c.o" 1876 cxx_target_objs="${cxx_target_objs} microblaze-c.o" 1877 tmake_file="${tmake_file} microblaze/t-microblaze" 1878 ;; 1879mips64*-*-netbsd*) # NetBSD/mips64, either endian. 1880 target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_SOFT_FLOAT_ABI" 1881 tm_file="elfos.h ${tm_file} mips/elf.h ${nbsd_tm_file} mips/netbsd.h mips/netbsd64.h" 1882 tmake_file="${tmake_file} mips/t-netbsd64" 1883 tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_N32" 1884 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 1885 ;; 1886mips*-*-netbsd*) # NetBSD/mips, either endian. 1887 target_cpu_default="MASK_ABICALLS" 1888 tm_file="elfos.h ${tm_file} mips/elf.h ${nbsd_tm_file} mips/netbsd.h" 1889 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 1890 ;; 1891mips*-mti-linux*) 1892 tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/gnu-user64.h mips/linux64.h mips/linux-common.h mips/mti-linux.h" 1893 tmake_file="${tmake_file} mips/t-mti-linux" 1894 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32" 1895 gnu_ld=yes 1896 gas=yes 1897 test x$with_llsc != x || with_llsc=yes 1898 ;; 1899mips64*-*-linux* | mipsisa64*-*-linux*) 1900 tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/gnu-user64.h mips/linux64.h mips/linux-common.h" 1901 tmake_file="${tmake_file} mips/t-linux64" 1902 tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_N32" 1903 case ${target} in 1904 mips64el-st-linux-gnu) 1905 tm_file="${tm_file} mips/st.h" 1906 tmake_file="${tmake_file} mips/t-st" 1907 ;; 1908 mips64octeon*-*-linux*) 1909 tm_defines="${tm_defines} MIPS_CPU_STRING_DEFAULT=\\\"octeon\\\"" 1910 target_cpu_default=MASK_SOFT_FLOAT_ABI 1911 ;; 1912 mipsisa64r2*-*-linux*) 1913 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65" 1914 ;; 1915 esac 1916 gnu_ld=yes 1917 gas=yes 1918 test x$with_llsc != x || with_llsc=yes 1919 ;; 1920mips*-*-linux*) # Linux MIPS, either endian. 1921 tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h" 1922 if test x$enable_targets = xall; then 1923 tm_file="${tm_file} mips/gnu-user64.h mips/linux64.h" 1924 tmake_file="${tmake_file} mips/t-linux64" 1925 fi 1926 tm_file="${tm_file} mips/linux-common.h" 1927 case ${target} in 1928 mipsisa32r2*) 1929 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33" 1930 ;; 1931 mipsisa32*) 1932 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32" 1933 esac 1934 test x$with_llsc != x || with_llsc=yes 1935 ;; 1936mips*-mti-elf*) 1937 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/sde.h mips/mti-elf.h" 1938 tmake_file="mips/t-mti-elf" 1939 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32" 1940 ;; 1941mips*-sde-elf*) 1942 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/sde.h" 1943 tmake_file="mips/t-sde" 1944 extra_options="${extra_options} mips/sde.opt" 1945 case "${with_newlib}" in 1946 yes) 1947 # newlib / libgloss. 1948 ;; 1949 *) 1950 # MIPS toolkit libraries. 1951 tm_file="$tm_file mips/sdemtk.h" 1952 tmake_file="$tmake_file mips/t-sdemtk" 1953 case ${enable_threads} in 1954 "" | yes | mipssde) 1955 thread_file='mipssde' 1956 ;; 1957 esac 1958 ;; 1959 esac 1960 case ${target} in 1961 mipsisa32r2*) 1962 tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32" 1963 ;; 1964 mipsisa32*) 1965 tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_32" 1966 ;; 1967 mipsisa64r2*) 1968 tm_defines="MIPS_ISA_DEFAULT=65 MIPS_ABI_DEFAULT=ABI_N32" 1969 ;; 1970 mipsisa64*) 1971 tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_N32" 1972 ;; 1973 esac 1974 ;; 1975mipsisa32-*-elf* | mipsisa32el-*-elf* | \ 1976mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \ 1977mipsisa64-*-elf* | mipsisa64el-*-elf* | \ 1978mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*) 1979 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" 1980 tmake_file="mips/t-isa3264" 1981 case ${target} in 1982 mipsisa32r2*) 1983 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33" 1984 ;; 1985 mipsisa32*) 1986 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32" 1987 ;; 1988 mipsisa64r2*) 1989 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65" 1990 ;; 1991 mipsisa64*) 1992 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64" 1993 ;; 1994 esac 1995 case ${target} in 1996 mipsisa32*-*-elfoabi*) 1997 tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_32" 1998 tm_file="${tm_file} mips/elfoabi.h" 1999 ;; 2000 mipsisa64*-*-elfoabi*) 2001 tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_O64" 2002 tm_file="${tm_file} mips/elfoabi.h" 2003 ;; 2004 *-*-elf*) 2005 tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI" 2006 ;; 2007 esac 2008 ;; 2009mipsisa64sr71k-*-elf*) 2010 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" 2011 tmake_file=mips/t-sr71k 2012 target_cpu_default="MASK_64BIT|MASK_FLOAT64" 2013 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI" 2014 ;; 2015mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*) 2016 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" 2017 tmake_file="mips/t-elf mips/t-sb1" 2018 target_cpu_default="MASK_64BIT|MASK_FLOAT64" 2019 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64" 2020 ;; 2021mips-*-elf* | mipsel-*-elf*) 2022 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" 2023 tmake_file="mips/t-elf" 2024 ;; 2025mips64-*-elf* | mips64el-*-elf*) 2026 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" 2027 tmake_file="mips/t-elf" 2028 target_cpu_default="MASK_64BIT|MASK_FLOAT64" 2029 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64" 2030 ;; 2031mips64vr-*-elf* | mips64vrel-*-elf*) 2032 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/vr.h mips/elf.h" 2033 tmake_file=mips/t-vr 2034 tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI" 2035 ;; 2036mips64orion-*-elf* | mips64orionel-*-elf*) 2037 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elforion.h mips/elf.h" 2038 tmake_file="mips/t-elf" 2039 target_cpu_default="MASK_64BIT|MASK_FLOAT64" 2040 tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64" 2041 ;; 2042mips*-*-rtems*) 2043 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/rtems.h rtems.h" 2044 tmake_file="mips/t-elf t-rtems mips/t-rtems" 2045 ;; 2046mips-wrs-vxworks) 2047 tm_file="elfos.h ${tm_file} mips/elf.h vx-common.h vxworks.h mips/vxworks.h" 2048 tmake_file="${tmake_file} mips/t-vxworks" 2049 ;; 2050mipstx39-*-elf* | mipstx39el-*-elf*) 2051 tm_file="elfos.h newlib-stdint.h ${tm_file} mips/r3900.h mips/elf.h" 2052 tmake_file="mips/t-r3900" 2053 ;; 2054mmix-knuth-mmixware) 2055 tm_file="${tm_file} newlib-stdint.h" 2056 need_64bit_hwint=yes 2057 use_gcc_stdint=wrap 2058 ;; 2059mn10300-*-*) 2060 tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" 2061 if test x$stabs = xyes 2062 then 2063 tm_file="${tm_file} dbx.h" 2064 fi 2065 use_collect2=no 2066 use_gcc_stdint=wrap 2067 ;; 2068pdp11-*-*) 2069 tm_file="${tm_file} newlib-stdint.h" 2070 use_gcc_stdint=wrap 2071 ;; 2072picochip-*) 2073 tm_file="${tm_file} newlib-stdint.h" 2074 use_gcc_stdint=wrap 2075 tmake_file="picochip/t-picochip t-pnt16-warn" 2076 ;; 2077# port not yet contributed 2078#powerpc-*-openbsd*) 2079# tmake_file="${tmake_file} rs6000/t-fprules" 2080# extra_headers= 2081# ;; 2082powerpc-*-darwin*) 2083 extra_options="${extra_options} rs6000/darwin.opt" 2084 case ${target} in 2085 *-darwin1[0-9]* | *-darwin[8-9]*) 2086 tmake_file="${tmake_file} rs6000/t-darwin8" 2087 tm_file="${tm_file} rs6000/darwin8.h" 2088 ;; 2089 *-darwin7*) 2090 tm_file="${tm_file} rs6000/darwin7.h" 2091 ;; 2092 *-darwin[0-6]*) 2093 ;; 2094 esac 2095 tmake_file="${tmake_file} t-slibgcc" 2096 extra_headers=altivec.h 2097 ;; 2098powerpc64-*-darwin*) 2099 extra_options="${extra_options} ${cpu_type}/darwin.opt" 2100 tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc" 2101 tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h" 2102 extra_headers=altivec.h 2103 ;; 2104powerpc*-*-freebsd*) 2105 tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h" 2106 extra_options="${extra_options} rs6000/sysv4.opt" 2107 tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" 2108 case ${target} in 2109 powerpc64*) 2110 tm_file="${tm_file} rs6000/default64.h rs6000/freebsd64.h" 2111 tmake_file="${tmake_file} rs6000/t-freebsd64" 2112 extra_options="${extra_options} rs6000/linux64.opt" 2113 ;; 2114 *) 2115 tm_file="${tm_file} rs6000/freebsd.h" 2116 ;; 2117 esac 2118 ;; 2119powerpc*-*-netbsd*) 2120 tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h" 2121 tm_file="${tm_file} netbsd.h netbsd-elf.h" 2122 case ${target} in 2123 powerpc64*) 2124 tm_file="rs6000/biarch64.h ${tm_file} rs6000/sysv4.h rs6000/default64.h rs6000/netbsd64.h" 2125 tmake_file="${tmake_file} rs6000/t-netbsd64" 2126 ;; 2127 *) 2128 tm_file="${tm_file} rs6000/sysv4.h rs6000/netbsd.h" 2129 tmake_file="${tmake_file} rs6000/t-netbsd" 2130 ;; 2131 esac 2132 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 2133 if test x${enable_secureplt} != xno; then 2134 tm_file="rs6000/secureplt.h ${tm_file}" 2135 fi 2136 extra_options="${extra_options} rs6000/sysv4.opt rs6000/linux64.opt" 2137 ;; 2138powerpc-*-eabispe*) 2139 tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabispe.h" 2140 extra_options="${extra_options} rs6000/sysv4.opt" 2141 tmake_file="rs6000/t-spe rs6000/t-ppccomm" 2142 use_gcc_stdint=wrap 2143 ;; 2144powerpc-*-eabisimaltivec*) 2145 tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h rs6000/eabialtivec.h" 2146 extra_options="${extra_options} rs6000/sysv4.opt" 2147 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm" 2148 use_gcc_stdint=wrap 2149 ;; 2150powerpc-*-eabisim*) 2151 tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h" 2152 extra_options="${extra_options} rs6000/sysv4.opt" 2153 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" 2154 use_gcc_stdint=wrap 2155 ;; 2156powerpc-*-elf*) 2157 tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h" 2158 extra_options="${extra_options} rs6000/sysv4.opt" 2159 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" 2160 ;; 2161powerpc-*-eabialtivec*) 2162 tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabialtivec.h" 2163 extra_options="${extra_options} rs6000/sysv4.opt" 2164 tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm" 2165 use_gcc_stdint=wrap 2166 ;; 2167powerpc-xilinx-eabi*) 2168 tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/singlefp.h rs6000/xfpu.h rs6000/xilinx.h" 2169 extra_options="${extra_options} rs6000/sysv4.opt rs6000/xilinx.opt" 2170 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm rs6000/t-xilinx" 2171 use_gcc_stdint=wrap 2172 ;; 2173powerpc-*-eabi*) 2174 tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h" 2175 extra_options="${extra_options} rs6000/sysv4.opt" 2176 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" 2177 use_gcc_stdint=wrap 2178 ;; 2179powerpc-*-rtems*) 2180 tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/rtems.h rtems.h" 2181 extra_options="${extra_options} rs6000/sysv4.opt" 2182 tmake_file="rs6000/t-fprules rs6000/t-rtems t-rtems rs6000/t-ppccomm" 2183 ;; 2184powerpc*-*-linux*) 2185 tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h rs6000/sysv4.h" 2186 extra_options="${extra_options} rs6000/sysv4.opt" 2187 tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" 2188 case ${target} in 2189 powerpc*le-*-*) 2190 tm_file="${tm_file} rs6000/sysv4le.h" ;; 2191 esac 2192 maybe_biarch=yes 2193 case ${target} in 2194 powerpc64*-*-linux*spe* | powerpc64*-*-linux*paired*) 2195 echo "*** Configuration ${target} not supported" 1>&2 2196 exit 1 2197 ;; 2198 powerpc*-*-linux*spe* | powerpc*-*-linux*paired*) 2199 maybe_biarch= 2200 ;; 2201 powerpc64*-*-linux*) 2202 test x$with_cpu != x || cpu_is_64bit=yes 2203 maybe_biarch=always 2204 ;; 2205 esac 2206 case ${maybe_biarch}:${enable_targets}:${cpu_is_64bit} in 2207 always:* | yes:*powerpc64* | yes:all:* | yes:*:yes) 2208 if test x$cpu_is_64bit = xyes; then 2209 tm_file="${tm_file} rs6000/default64.h" 2210 fi 2211 tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h glibc-stdint.h" 2212 tmake_file="$tmake_file rs6000/t-linux64" 2213 case ${target} in 2214 powerpc*le-*-*) 2215 tmake_file="$tmake_file rs6000/t-linux64le" 2216 case ${enable_targets} in 2217 all | *powerpc64-* | *powerpc-*) 2218 tmake_file="$tmake_file rs6000/t-linux64lebe" ;; 2219 esac ;; 2220 *) 2221 case ${enable_targets} in 2222 all | *powerpc64le-* | *powerpcle-*) 2223 tmake_file="$tmake_file rs6000/t-linux64bele" ;; 2224 esac ;; 2225 esac 2226 extra_options="${extra_options} rs6000/linux64.opt" 2227 ;; 2228 *) 2229 tm_file="${tm_file} rs6000/linux.h glibc-stdint.h" 2230 tmake_file="$tmake_file rs6000/t-linux" 2231 ;; 2232 esac 2233 case ${target} in 2234 powerpc*-*-linux*ppc476*) 2235 tm_file="${tm_file} rs6000/476.h" 2236 extra_options="${extra_options} rs6000/476.opt" ;; 2237 powerpc*-*-linux*altivec*) 2238 tm_file="${tm_file} rs6000/linuxaltivec.h" ;; 2239 powerpc*-*-linux*spe*) 2240 tm_file="${tm_file} rs6000/linuxspe.h rs6000/e500.h" ;; 2241 powerpc*-*-linux*paired*) 2242 tm_file="${tm_file} rs6000/750cl.h" ;; 2243 esac 2244 if test x${enable_secureplt} = xyes; then 2245 tm_file="rs6000/secureplt.h ${tm_file}" 2246 fi 2247 ;; 2248powerpc-wrs-vxworks|powerpc-wrs-vxworksae) 2249 tm_file="${tm_file} elfos.h freebsd-spec.h rs6000/sysv4.h" 2250 tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks" 2251 extra_options="${extra_options} rs6000/sysv4.opt" 2252 extra_headers=ppc-asm.h 2253 case ${target} in 2254 *-vxworksae*) 2255 tm_file="${tm_file} vx-common.h vxworksae.h rs6000/vxworks.h rs6000/e500.h" 2256 tmake_file="${tmake_file} rs6000/t-vxworksae" 2257 ;; 2258 *-vxworks*) 2259 tm_file="${tm_file} vx-common.h vxworks.h rs6000/vxworks.h rs6000/e500.h" 2260 ;; 2261 esac 2262 ;; 2263powerpc-*-lynxos*) 2264 xm_defines=POSIX 2265 tm_file="${tm_file} dbxelf.h elfos.h rs6000/sysv4.h rs6000/lynx.h lynx.h" 2266 tmake_file="t-lynx rs6000/t-lynx" 2267 extra_options="${extra_options} rs6000/sysv4.opt lynx.opt" 2268 thread_file=lynx 2269 gnu_ld=yes 2270 gas=yes 2271 ;; 2272powerpcle-*-elf*) 2273 tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h" 2274 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" 2275 extra_options="${extra_options} rs6000/sysv4.opt" 2276 ;; 2277powerpcle-*-eabisim*) 2278 tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h" 2279 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" 2280 extra_options="${extra_options} rs6000/sysv4.opt" 2281 use_gcc_stdint=wrap 2282 ;; 2283powerpcle-*-eabi*) 2284 tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h" 2285 tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" 2286 extra_options="${extra_options} rs6000/sysv4.opt" 2287 use_gcc_stdint=wrap 2288 ;; 2289rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) 2290 tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h rs6000/aix-stdint.h" 2291 tmake_file="rs6000/t-aix43 t-slibgcc" 2292 extra_options="${extra_options} rs6000/aix64.opt" 2293 use_collect2=yes 2294 thread_file='aix' 2295 use_gcc_stdint=provide 2296 extra_headers= 2297 ;; 2298rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*) 2299 tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h rs6000/aix-stdint.h" 2300 extra_options="${extra_options} rs6000/aix64.opt" 2301 tmake_file="rs6000/t-aix43 t-slibgcc" 2302 use_collect2=yes 2303 thread_file='aix' 2304 use_gcc_stdint=wrap 2305 extra_headers= 2306 ;; 2307rs6000-ibm-aix5.2.* | powerpc-ibm-aix5.2.*) 2308 tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h rs6000/aix-stdint.h" 2309 tmake_file="rs6000/t-aix52 t-slibgcc" 2310 extra_options="${extra_options} rs6000/aix64.opt" 2311 use_collect2=yes 2312 thread_file='aix' 2313 use_gcc_stdint=wrap 2314 extra_headers= 2315 ;; 2316rs6000-ibm-aix5.3.* | powerpc-ibm-aix5.3.*) 2317 tm_file="${tm_file} rs6000/aix.h rs6000/aix53.h rs6000/xcoff.h rs6000/aix-stdint.h" 2318 tmake_file="rs6000/t-aix52 t-slibgcc" 2319 extra_options="${extra_options} rs6000/aix64.opt" 2320 use_collect2=yes 2321 thread_file='aix' 2322 use_gcc_stdint=wrap 2323 extra_headers=altivec.h 2324 ;; 2325rs6000-ibm-aix[6789].* | powerpc-ibm-aix[6789].*) 2326 tm_file="${tm_file} rs6000/aix.h rs6000/aix61.h rs6000/xcoff.h rs6000/aix-stdint.h" 2327 tmake_file="rs6000/t-aix52 t-slibgcc" 2328 extra_options="${extra_options} rs6000/aix64.opt" 2329 use_collect2=yes 2330 thread_file='aix' 2331 use_gcc_stdint=wrap 2332 extra_headers=altivec.h 2333 ;; 2334rl78-*-elf*) 2335 tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" 2336 target_has_targetm_common=no 2337 c_target_objs="rl78-c.o" 2338 cxx_target_objs="rl78-c.o" 2339 tmake_file="${tmake_file} rl78/t-rl78" 2340 ;; 2341rx-*-elf*) 2342 tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" 2343 tmake_file="${tmake_file} rx/t-rx" 2344 ;; 2345s390-*-linux*) 2346 default_gnu_indirect_function=yes 2347 tm_file="s390/s390.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h s390/linux.h" 2348 if test x$enable_targets = xall; then 2349 tmake_file="${tmake_file} s390/t-linux64" 2350 fi 2351 ;; 2352s390x-*-linux*) 2353 default_gnu_indirect_function=yes 2354 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h s390/linux.h" 2355 tm_p_file=s390/s390-protos.h 2356 md_file=s390/s390.md 2357 extra_modes=s390/s390-modes.def 2358 out_file=s390/s390.c 2359 tmake_file="${tmake_file} s390/t-linux64" 2360 ;; 2361s390x-ibm-tpf*) 2362 tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h s390/tpf.h" 2363 tm_p_file=s390/s390-protos.h 2364 md_file=s390/s390.md 2365 extra_modes=s390/s390-modes.def 2366 out_file=s390/s390.c 2367 thread_file='tpf' 2368 extra_options="${extra_options} s390/tpf.opt" 2369 ;; 2370score-*-elf) 2371 gas=yes 2372 gnu_ld=yes 2373 tm_file="dbxelf.h elfos.h score/elf.h score/score.h newlib-stdint.h" 2374 ;; 2375sh-*-elf* | sh[12346l]*-*-elf* | \ 2376 sh-*-linux* | sh[2346lbe]*-*-linux* | \ 2377 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ 2378 sh64-*-netbsd* | sh64l*-*-netbsd*) 2379 tmake_file="${tmake_file} sh/t-sh sh/t-elf" 2380 if test x${with_endian} = x; then 2381 case ${target} in 2382 sh[1234]*be-*-* | sh[1234]*eb-*-*) with_endian=big ;; 2383 shbe-*-* | sheb-*-*) with_endian=big,little ;; 2384 sh[1234]l* | sh[34]*-*-linux*) with_endian=little ;; 2385 shl* | sh64l* | sh*-*-linux* | \ 2386 sh5l* | sh-superh-elf) with_endian=little,big ;; 2387 sh[1234]*-*-*) with_endian=big ;; 2388 *) with_endian=big,little ;; 2389 esac 2390 fi 2391 # TM_ENDIAN_CONFIG is used by t-sh to determine multilibs. 2392 # First word : the default endian. 2393 # Second word: the secondary endian (optional). 2394 case ${with_endian} in 2395 big) TM_ENDIAN_CONFIG=mb ;; 2396 little) TM_ENDIAN_CONFIG=ml ;; 2397 big,little) TM_ENDIAN_CONFIG="mb ml" ;; 2398 little,big) TM_ENDIAN_CONFIG="ml mb" ;; 2399 *) echo "with_endian=${with_endian} not supported."; exit 1 ;; 2400 esac 2401 case ${with_endian} in 2402 little*) tm_file="sh/little.h ${tm_file}" ;; 2403 esac 2404 tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h" 2405 case ${target} in 2406 sh*-*-linux*) tmake_file="${tmake_file} sh/t-linux" 2407 tm_file="${tm_file} gnu-user.h linux.h glibc-stdint.h sh/linux.h" ;; 2408 sh*-*-netbsd*) 2409 tm_file="${tm_file} ${nbsd_tm_file} sh/netbsd-elf.h" 2410 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 2411 2412 ;; 2413 sh*-superh-elf) if test x$with_libgloss != xno; then 2414 with_libgloss=yes 2415 tm_file="${tm_file} sh/newlib.h" 2416 fi 2417 tm_file="${tm_file} sh/embed-elf.h" 2418 tm_file="${tm_file} sh/superh.h" 2419 extra_options="${extra_options} sh/superh.opt" ;; 2420 *) if test x$with_newlib = xyes \ 2421 && test x$with_libgloss = xyes; then 2422 tm_file="${tm_file} sh/newlib.h" 2423 fi 2424 tm_file="${tm_file} sh/embed-elf.h" ;; 2425 esac 2426 case ${target} in 2427 sh5*-*-netbsd*) 2428 # SHmedia, 32-bit ABI 2429 tmake_file="${tmake_file} sh/t-sh64" 2430 ;; 2431 sh64*-netbsd*) 2432 # SHmedia, 64-bit ABI 2433 tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5-64" 2434 ;; 2435 *-*-netbsd*) 2436 tmake_file="${tmake_file} sh/t-netbsd" 2437 ;; 2438 sh64*-*-linux*) 2439 tmake_file="${tmake_file} sh/t-sh64" 2440 tm_file="${tm_file} sh/sh64.h" 2441 extra_headers="shmedia.h ushmedia.h sshmedia.h" 2442 ;; 2443 sh64*) 2444 tmake_file="${tmake_file} sh/t-sh64" 2445 tm_file="${tm_file} sh/sh64.h" 2446 if test x$with_newlib = xyes; then 2447 tm_file="${tm_file} newlib-stdint.h" 2448 fi 2449 extra_headers="shmedia.h ushmedia.h sshmedia.h" 2450 ;; 2451 *-*-elf*) 2452 tm_file="${tm_file} newlib-stdint.h" 2453 ;; 2454 esac 2455 # sed el/eb endian suffixes away to avoid confusion with sh[23]e 2456 case `echo ${target} | sed 's/e[lb]-/-/'` in 2457 sh64*-*-netbsd*) sh_cpu_target=sh5-64media ;; 2458 sh64* | sh5*-*-netbsd*) sh_cpu_target=sh5-32media ;; 2459 sh4a_single_only*) sh_cpu_target=sh4a-single-only ;; 2460 sh4a_single*) sh_cpu_target=sh4a-single ;; 2461 sh4a_nofpu*) sh_cpu_target=sh4a-nofpu ;; 2462 sh4al) sh_cpu_target=sh4al ;; 2463 sh4a*) sh_cpu_target=sh4a ;; 2464 sh4_single_only*) sh_cpu_target=sh4-single-only ;; 2465 sh4_single*) sh_cpu_target=sh4-single ;; 2466 sh4_nofpu*) sh_cpu_target=sh4-nofpu ;; 2467 sh4* | sh-superh-*) sh_cpu_target=sh4 ;; 2468 sh3e*) sh_cpu_target=sh3e ;; 2469 sh*-*-netbsd* | sh3*) sh_cpu_target=sh3 ;; 2470 sh2a_single_only*) sh_cpu_target=sh2a-single-only ;; 2471 sh2a_single*) sh_cpu_target=sh2a-single ;; 2472 sh2a_nofpu*) sh_cpu_target=sh2a-nofpu ;; 2473 sh2a*) sh_cpu_target=sh2a ;; 2474 sh2e*) sh_cpu_target=sh2e ;; 2475 sh2*) sh_cpu_target=sh2 ;; 2476 *) sh_cpu_target=sh1 ;; 2477 esac 2478 # did the user say --without-fp ? 2479 if test x$with_fp = xno; then 2480 case ${sh_cpu_target} in 2481 sh5-*media) sh_cpu_target=${sh_cpu_target}-nofpu ;; 2482 sh4al | sh1) ;; 2483 sh4a* ) sh_cpu_target=sh4a-nofpu ;; 2484 sh4*) sh_cpu_target=sh4-nofpu ;; 2485 sh3*) sh_cpu_target=sh3 ;; 2486 sh2a*) sh_cpu_target=sh2a-nofpu ;; 2487 sh2*) sh_cpu_target=sh2 ;; 2488 *) echo --without-fp not available for $target: ignored 2489 esac 2490 tm_defines="$tm_defines STRICT_NOFPU=1" 2491 fi 2492 sh_cpu_default="`echo $with_cpu|sed s/^m/sh/|tr A-Z_ a-z-`" 2493 case $sh_cpu_default in 2494 sh5-64media-nofpu | sh5-64media | \ 2495 sh5-32media-nofpu | sh5-32media | sh5-compact-nofpu | sh5-compact | \ 2496 sh2a-single-only | sh2a-single | sh2a-nofpu | sh2a | \ 2497 sh4a-single-only | sh4a-single | sh4a-nofpu | sh4a | sh4al | \ 2498 sh4-single-only | sh4-single | sh4-nofpu | sh4 | sh4-300 | \ 2499 sh3e | sh3 | sh2e | sh2 | sh1) ;; 2500 "") sh_cpu_default=${sh_cpu_target} ;; 2501 *) echo "with_cpu=$with_cpu not supported"; exit 1 ;; 2502 esac 2503 sh_multilibs=${with_multilib_list} 2504 if test "$sh_multilibs" = "default" ; then 2505 case ${target} in 2506 sh64-superh-linux* | \ 2507 sh[1234]*) sh_multilibs=${sh_cpu_target} ;; 2508 sh64* | sh5*) sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;; 2509 sh-superh-*) sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;; 2510 sh*-*-linux*) sh_multilibs=m1,m2,m2a,m3e,m4 ;; 2511 sh*-*-netbsd*) sh_multilibs=m3,m3e,m4 ;; 2512 *) sh_multilibs=m1,m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single ;; 2513 esac 2514 if test x$with_fp = xno; then 2515 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`" 2516 fi 2517 fi 2518 target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_` 2519 tm_defines=${tm_defines}' SH_MULTILIB_CPU_DEFAULT=\"'`echo $sh_cpu_default|sed s/sh/m/`'\"' 2520 tm_defines="$tm_defines SUPPORT_`echo $sh_cpu_default | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1" 2521 sh_multilibs=`echo $sh_multilibs | sed -e 's/,/ /g' -e 's/^[Ss][Hh]/m/' -e 's/ [Ss][Hh]/ m/g' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz-` 2522 for sh_multilib in ${sh_multilibs}; do 2523 case ${sh_multilib} in 2524 m1 | m2 | m2e | m3 | m3e | \ 2525 m4 | m4-single | m4-single-only | m4-nofpu | m4-300 |\ 2526 m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al | \ 2527 m2a | m2a-single | m2a-single-only | m2a-nofpu | \ 2528 m5-64media | m5-64media-nofpu | \ 2529 m5-32media | m5-32media-nofpu | \ 2530 m5-compact | m5-compact-nofpu) 2531 # TM_MULTILIB_CONFIG is used by t-sh for the non-endian multilib definition 2532 # It is passed to MULTIILIB_OPTIONS verbatim. 2533 TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG}/${sh_multilib}" 2534 tm_defines="$tm_defines SUPPORT_`echo $sh_multilib | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1" 2535 ;; 2536 \!*) # TM_MULTILIB_EXCEPTIONS_CONFIG is used by t-sh 2537 # It is passed the MULTILIB_EXCEPTIONS verbatim. 2538 TM_MULTILIB_EXCEPTIONS_CONFIG="${TM_MULTILIB_EXCEPTIONS_CONFIG} `echo $sh_multilib | sed 's/^!//'`" ;; 2539 *) 2540 echo "with_multilib_list=${sh_multilib} not supported." 2541 exit 1 2542 ;; 2543 esac 2544 done 2545 TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's:^/::'` 2546 if test x${enable_incomplete_targets} = xyes ; then 2547 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" 2548 fi 2549 tm_file="$tm_file ./sysroot-suffix.h" 2550 tmake_file="$tmake_file t-sysroot-suffix" 2551 ;; 2552sh-*-rtems*) 2553 tmake_file="sh/t-sh t-rtems sh/t-rtems" 2554 tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h newlib-stdint.h" 2555 ;; 2556sh-wrs-vxworks) 2557 tmake_file="$tmake_file sh/t-sh sh/t-vxworks" 2558 tm_file="${tm_file} elfos.h sh/elf.h sh/embed-elf.h vx-common.h vxworks.h sh/vxworks.h" 2559 ;; 2560sparc-*-elf*) 2561 tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp-elf.h" 2562 case ${target} in 2563 *-leon-*) 2564 tmake_file="sparc/t-sparc sparc/t-leon" 2565 ;; 2566 *-leon[3-9]*) 2567 tmake_file="sparc/t-sparc sparc/t-leon3" 2568 ;; 2569 *) 2570 tmake_file="sparc/t-sparc sparc/t-elf" 2571 ;; 2572 esac 2573 ;; 2574sparc-*-rtems*) 2575 tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h" 2576 tmake_file="sparc/t-sparc sparc/t-elf sparc/t-rtems t-rtems" 2577 ;; 2578sparc-*-linux*) 2579 tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/tso.h" 2580 extra_options="${extra_options} sparc/long-double-switch.opt" 2581 case ${target} in 2582 *-leon-*) 2583 tmake_file="${tmake_file} sparc/t-sparc sparc/t-leon" 2584 ;; 2585 *-leon[3-9]*) 2586 tmake_file="${tmake_file} sparc/t-sparc sparc/t-leon3" 2587 ;; 2588 *) 2589 tmake_file="${tmake_file} sparc/t-sparc" 2590 ;; 2591 esac 2592 if test x$enable_targets = xall; then 2593 tm_file="sparc/biarch64.h ${tm_file} sparc/linux64.h" 2594 tmake_file="${tmake_file} sparc/t-linux64" 2595 else 2596 tm_file="${tm_file} sparc/linux.h" 2597 tmake_file="${tmake_file} sparc/t-linux" 2598 fi 2599 ;; 2600sparc-*-netbsdelf*) 2601 tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h ${nbsd_tm_file} sparc/netbsd-elf.h" 2602 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 2603 extra_options="${extra_options} sparc/long-double-switch.opt" 2604 tmake_file="${tmake_file} sparc/t-sparc" 2605 ;; 2606sparc*-*-solaris2*) 2607 tm_file="sparc/biarch64.h ${tm_file} ${sol2_tm_file} sol2-bi.h sparc/tso.h" 2608 case ${target} in 2609 sparc64-*-* | sparcv9-*-*) 2610 tm_file="sparc/default-64.h ${tm_file}" 2611 ;; 2612 *) 2613 test x$with_cpu != x || with_cpu=v9 2614 ;; 2615 esac 2616 tmake_file="${tmake_file} sparc/t-sparc sparc/t-sol2-64" 2617 ;; 2618sparc-wrs-vxworks) 2619 tm_file="${tm_file} elfos.h sparc/sysv4.h vx-common.h vxworks.h sparc/vxworks.h" 2620 tmake_file="${tmake_file} sparc/t-sparc sparc/t-vxworks" 2621 ;; 2622sparc64-*-elf*) 2623 tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h" 2624 extra_options="${extra_options}" 2625 tmake_file="${tmake_file} sparc/t-sparc" 2626 ;; 2627sparc64-*-rtems*) 2628 tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h sparc/rtemself.h rtems.h" 2629 extra_options="${extra_options}" 2630 tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems-64 t-rtems" 2631 ;; 2632sparc64-*-linux*) 2633 tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/default-64.h sparc/linux64.h sparc/tso.h" 2634 extra_options="${extra_options} sparc/long-double-switch.opt" 2635 tmake_file="${tmake_file} sparc/t-sparc sparc/t-linux64" 2636 ;; 2637sparc64-*-freebsd*|ultrasparc-*-freebsd*) 2638 tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h" 2639 extra_options="${extra_options} sparc/long-double-switch.opt" 2640 case "x$with_cpu" in 2641 xultrasparc) ;; 2642 x) with_cpu=ultrasparc ;; 2643 *) echo "$with_cpu not supported for freebsd target"; exit 1 ;; 2644 esac 2645 tmake_file="${tmake_file} sparc/t-sparc" 2646 ;; 2647sparc64-*-netbsd*) 2648 tm_file="sparc/biarch64.h ${tm_file}" 2649 tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h ${nbsd_tm_file} sparc/netbsd-elf.h" 2650 extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 2651 extra_options="${extra_options} sparc/long-double-switch.opt" 2652 tmake_file="${tmake_file} sparc/t-sparc sparc/t-netbsd64" 2653 with_cpu=ultrasparc 2654 ;; 2655sparc64-*-openbsd*) 2656 tm_file="sparc/openbsd1-64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp64-elf.h" 2657 tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h sparc/openbsd64.h" 2658 extra_options="${extra_options} openbsd.opt" 2659 extra_options="${extra_options}" 2660 gas=yes gnu_ld=yes 2661 with_cpu=ultrasparc 2662 tmake_file="${tmake_file} sparc/t-sparc" 2663 ;; 2664spu-*-elf*) 2665 tm_file="dbxelf.h elfos.h spu/spu-elf.h spu/spu.h newlib-stdint.h" 2666 tmake_file="spu/t-spu-elf" 2667 native_system_header_dir=/include 2668 extra_headers="spu_intrinsics.h spu_internals.h vmx2spu.h spu_mfcio.h vec_types.h spu_cache.h" 2669 extra_modes=spu/spu-modes.def 2670 c_target_objs="${c_target_objs} spu-c.o" 2671 cxx_target_objs="${cxx_target_objs} spu-c.o" 2672 ;; 2673tic6x-*-elf) 2674 tm_file="elfos.h ${tm_file} c6x/elf-common.h c6x/elf.h" 2675 tm_file="${tm_file} dbxelf.h tm-dwarf2.h newlib-stdint.h" 2676 tmake_file="c6x/t-c6x c6x/t-c6x-elf" 2677 use_collect2=no 2678 ;; 2679tic6x-*-uclinux) 2680 tm_file="elfos.h ${tm_file} gnu-user.h linux.h c6x/elf-common.h c6x/uclinux-elf.h" 2681 tm_file="${tm_file} dbxelf.h tm-dwarf2.h glibc-stdint.h" 2682 tm_file="${tm_file} ./sysroot-suffix.h" 2683 tmake_file="t-sysroot-suffix t-slibgcc" 2684 tmake_file="${tmake_file} c6x/t-c6x c6x/t-c6x-elf c6x/t-c6x-uclinux" 2685 use_collect2=no 2686 ;; 2687tilegx-*-linux*) 2688 tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h tilegx/linux.h ${tm_file}" 2689 tmake_file="${tmake_file} tilegx/t-tilegx" 2690 extra_objs="mul-tables.o" 2691 c_target_objs="${c_target_objs} tilegx-c.o" 2692 cxx_target_objs="${cxx_target_objs} tilegx-c.o" 2693 extra_headers="feedback.h" 2694 ;; 2695tilepro-*-linux*) 2696 tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h tilepro/linux.h ${tm_file}" 2697 tmake_file="${tmake_file} tilepro/t-tilepro" 2698 extra_objs="mul-tables.o" 2699 c_target_objs="${c_target_objs} tilepro-c.o" 2700 cxx_target_objs="${cxx_target_objs} tilepro-c.o" 2701 extra_headers="feedback.h" 2702 ;; 2703v850-*-rtems*) 2704 target_cpu_default="TARGET_CPU_generic" 2705 tm_file="dbxelf.h elfos.h v850/v850.h" 2706 tm_file="${tm_file} rtems.h v850/rtems.h newlib-stdint.h" 2707 tmake_file="${tmake_file} v850/t-v850" 2708 tmake_file="${tmake_file} t-rtems v850/t-rtems" 2709 use_collect2=no 2710 c_target_objs="v850-c.o" 2711 cxx_target_objs="v850-c.o" 2712 ;; 2713v850*-*-*) 2714 case ${target} in 2715 v850e3v5-*-*) 2716 target_cpu_default="TARGET_CPU_v850e3v5" 2717 ;; 2718 v850e2v3-*-*) 2719 target_cpu_default="TARGET_CPU_v850e2v3" 2720 ;; 2721 v850e2-*-*) 2722 target_cpu_default="TARGET_CPU_v850e2" 2723 ;; 2724 v850e1-*-* | v850es-*-*) 2725 target_cpu_default="TARGET_CPU_v850e1" 2726 ;; 2727 v850e-*-*) 2728 target_cpu_default="TARGET_CPU_v850e" 2729 ;; 2730 v850-*-*) 2731 target_cpu_default="TARGET_CPU_generic" 2732 ;; 2733 esac 2734 tm_file="dbxelf.h elfos.h newlib-stdint.h v850/v850.h" 2735 if test x$stabs = xyes 2736 then 2737 tm_file="${tm_file} dbx.h" 2738 fi 2739 use_collect2=no 2740 c_target_objs="v850-c.o" 2741 cxx_target_objs="v850-c.o" 2742 use_gcc_stdint=wrap 2743 ;; 2744vax-*-linux*) 2745 tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h vax/elf.h vax/linux.h" 2746 extra_options="${extra_options} vax/elf.opt" 2747 ;; 2748vax-*-netbsdelf*) 2749 tm_file="${tm_file} elfos.h ${nbsd_tm_file} vax/elf.h vax/netbsd-elf.h" 2750 tm_defines="${tm_defines} CHAR_FAST8=1 SHORT_FAST16=1" 2751 extra_options="${extra_options} netbsd.opt netbsd-elf.opt vax/elf.opt" 2752 ;; 2753vax-*-openbsd*) 2754 tm_file="vax/vax.h vax/openbsd1.h openbsd.h openbsd-stdint.h openbsd-pthread.h vax/openbsd.h" 2755 extra_options="${extra_options} openbsd.opt" 2756 use_collect2=yes 2757 ;; 2758xstormy16-*-elf) 2759 # For historical reasons, the target files omit the 'x'. 2760 tm_file="dbxelf.h elfos.h newlib-stdint.h stormy16/stormy16.h" 2761 tm_p_file=stormy16/stormy16-protos.h 2762 md_file=stormy16/stormy16.md 2763 out_file=stormy16/stormy16.c 2764 extra_options=stormy16/stormy16.opt 2765 tmake_file="stormy16/t-stormy16" 2766 ;; 2767xtensa*-*-elf*) 2768 tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h xtensa/elf.h" 2769 extra_options="${extra_options} xtensa/elf.opt" 2770 ;; 2771xtensa*-*-linux*) 2772 tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h xtensa/linux.h" 2773 tmake_file="${tmake_file} xtensa/t-xtensa" 2774 ;; 2775am33_2.0-*-linux*) 2776 tm_file="mn10300/mn10300.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h mn10300/linux.h" 2777 gas=yes gnu_ld=yes 2778 use_collect2=no 2779 ;; 2780m32c-*-rtems*) 2781 tm_file="dbxelf.h elfos.h ${tm_file} m32c/rtems.h rtems.h newlib-stdint.h" 2782 tmake_file="${tmake_file} t-rtems" 2783 c_target_objs="m32c-pragma.o" 2784 cxx_target_objs="m32c-pragma.o" 2785 ;; 2786m32c-*-elf*) 2787 tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" 2788 c_target_objs="m32c-pragma.o" 2789 cxx_target_objs="m32c-pragma.o" 2790 ;; 2791*) 2792 echo "*** Configuration ${target} not supported" 1>&2 2793 exit 1 2794 ;; 2795esac 2796 2797case ${target} in 2798i[34567]86-*-linux* | x86_64-*-linux*) 2799 tmake_file="${tmake_file} i386/t-pmm_malloc i386/t-i386" 2800 ;; 2801i[34567]86-*-* | x86_64-*-*) 2802 tmake_file="${tmake_file} i386/t-gmm_malloc i386/t-i386" 2803 ;; 2804powerpc*-*-* | rs6000-*-*) 2805 tm_file="${tm_file} rs6000/option-defaults.h" 2806esac 2807 2808if [ "$target_has_targetcm" = "no" ]; then 2809 c_target_objs="$c_target_objs default-c.o" 2810 cxx_target_objs="$cxx_target_objs default-c.o" 2811fi 2812 2813if [ "$common_out_file" = "" ]; then 2814 if [ "$target_has_targetm_common" = "yes" ]; then 2815 common_out_file="$cpu_type/$cpu_type-common.c" 2816 else 2817 common_out_file="default-common.c" 2818 fi 2819fi 2820 2821# Support for --with-cpu and related options (and a few unrelated options, 2822# too). 2823case ${with_cpu} in 2824 yes | no) 2825 echo "--with-cpu must be passed a value" 1>&2 2826 exit 1 2827 ;; 2828esac 2829 2830# Set arch and cpu from ${target} and ${target_noncanonical}. Set cpu 2831# to generic if there is no processor scheduler model for the target. 2832arch= 2833cpu= 2834arch_without_sse2=no 2835arch_without_64bit=no 2836case ${target} in 2837 i386-*-freebsd*) 2838 if test $fbsd_major -ge 6; then 2839 arch=i486 2840 else 2841 arch=i386 2842 fi 2843 cpu=generic 2844 arch_without_sse2=yes 2845 arch_without_64bit=yes 2846 ;; 2847 i386-*-*) 2848 arch=i386 2849 cpu=i386 2850 arch_without_sse2=yes 2851 arch_without_64bit=yes 2852 ;; 2853 i486-*-*) 2854 arch=i486 2855 cpu=i486 2856 arch_without_sse2=yes 2857 arch_without_64bit=yes 2858 ;; 2859 i586-*-*) 2860 arch_without_sse2=yes 2861 arch_without_64bit=yes 2862 case ${target_noncanonical} in 2863 k6_2-*) 2864 arch=k6-2 2865 cpu=k6-2 2866 ;; 2867 k6_3-*) 2868 arch=k6-3 2869 cpu=k6-3 2870 ;; 2871 k6-*) 2872 arch=k6 2873 cpu=k6 2874 ;; 2875 pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*) 2876 arch=pentium-mmx 2877 cpu=pentium-mmx 2878 ;; 2879 *) 2880 arch=pentium 2881 cpu=pentium 2882 ;; 2883 esac 2884 ;; 2885 i686-*-* | i786-*-*) 2886 case ${target_noncanonical} in 2887 bdver3-*) 2888 arch=bdver3 2889 cpu=bdver3 2890 ;; 2891 bdver2-*) 2892 arch=bdver2 2893 cpu=bdver2 2894 ;; 2895 bdver1-*) 2896 arch=bdver1 2897 cpu=bdver1 2898 ;; 2899 btver1-*) 2900 arch=btver1 2901 cpu=btver1 2902 ;; 2903 btver2-*) 2904 arch=btver2 2905 cpu=btver2 2906 ;; 2907 amdfam10-*|barcelona-*) 2908 arch=amdfam10 2909 cpu=amdfam10 2910 ;; 2911 k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) 2912 arch=k8-sse3 2913 cpu=k8-sse3 2914 ;; 2915 k8-*|opteron-*|athlon64-*|athlon_fx-*) 2916 arch=k8 2917 cpu=k8 2918 ;; 2919 athlon_xp-*|athlon_mp-*|athlon_4-*) 2920 arch=athlon-4 2921 cpu=athlon-4 2922 arch_without_sse2=yes 2923 arch_without_64bit=yes 2924 ;; 2925 athlon_tbird-*|athlon-*) 2926 arch=athlon 2927 cpu=athlon 2928 arch_without_sse2=yes 2929 ;; 2930 geode-*) 2931 arch=geode 2932 cpu=geode 2933 arch_without_sse2=yes 2934 ;; 2935 pentium2-*) 2936 arch=pentium2 2937 cpu=pentium2 2938 arch_without_sse2=yes 2939 ;; 2940 pentium3-*|pentium3m-*) 2941 arch=pentium3 2942 cpu=pentium3 2943 arch_without_sse2=yes 2944 ;; 2945 pentium4-*|pentium4m-*) 2946 arch=pentium4 2947 cpu=pentium4 2948 ;; 2949 prescott-*) 2950 arch=prescott 2951 cpu=prescott 2952 ;; 2953 nocona-*) 2954 arch=nocona 2955 cpu=nocona 2956 ;; 2957 atom-*) 2958 arch=atom 2959 cpu=atom 2960 ;; 2961 core2-*) 2962 arch=core2 2963 cpu=core2 2964 ;; 2965 corei7-*) 2966 arch=corei7 2967 cpu=corei7 2968 ;; 2969 corei7_avx-*) 2970 arch=corei7-avx 2971 cpu=corei7-avx 2972 ;; 2973 pentium_m-*) 2974 arch=pentium-m 2975 cpu=pentium-m 2976 ;; 2977 pentiumpro-*) 2978 arch=pentiumpro 2979 cpu=pentiumpro 2980 arch_without_sse2=yes 2981 ;; 2982 *) 2983 arch=pentiumpro 2984 cpu=generic 2985 arch_without_sse2=yes 2986 arch_without_64bit=yes 2987 ;; 2988 esac 2989 ;; 2990 x86_64-*-*) 2991 case ${target_noncanonical} in 2992 bdver3-*) 2993 arch=bdver3 2994 cpu=bdver3 2995 ;; 2996 bdver2-*) 2997 arch=bdver2 2998 cpu=bdver2 2999 ;; 3000 bdver1-*) 3001 arch=bdver1 3002 cpu=bdver1 3003 ;; 3004 btver1-*) 3005 arch=btver1 3006 cpu=btver1 3007 ;; 3008 btver2-*) 3009 arch=btver2 3010 cpu=btver2 3011 ;; 3012 amdfam10-*|barcelona-*) 3013 arch=amdfam10 3014 cpu=amdfam10 3015 ;; 3016 k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) 3017 arch=k8-sse3 3018 cpu=k8-sse3 3019 ;; 3020 k8-*|opteron-*|athlon_64-*) 3021 arch=k8 3022 cpu=k8 3023 ;; 3024 nocona-*) 3025 arch=nocona 3026 cpu=nocona 3027 ;; 3028 atom-*) 3029 arch=atom 3030 cpu=atom 3031 ;; 3032 core2-*) 3033 arch=core2 3034 cpu=core2 3035 ;; 3036 corei7-*) 3037 arch=corei7 3038 cpu=corei7 3039 ;; 3040 *) 3041 arch=x86-64 3042 cpu=generic 3043 ;; 3044 esac 3045 ;; 3046esac 3047 3048# If there is no $with_cpu option, try to infer one from ${target}. 3049# This block sets nothing except for with_cpu. 3050if test x$with_cpu = x ; then 3051 case ${target} in 3052 i[34567]86-*-*|x86_64-*-*) 3053 with_cpu=$cpu 3054 ;; 3055 alphaev6[78]*-*-*) 3056 with_cpu=ev67 3057 ;; 3058 alphaev6*-*-*) 3059 with_cpu=ev6 3060 ;; 3061 alphapca56*-*-*) 3062 with_cpu=pca56 3063 ;; 3064 alphaev56*-*-*) 3065 with_cpu=ev56 3066 ;; 3067 alphaev5*-*-*) 3068 with_cpu=ev5 3069 ;; 3070 frv-*-*linux* | frv400-*-*linux*) 3071 with_cpu=fr400 3072 ;; 3073 frv550-*-*linux*) 3074 with_cpu=fr550 3075 ;; 3076 m5200-*-*|m5407-*-*) 3077 with_cpu=${default_cf_cpu} 3078 ;; 3079 m68k*-*-*) 3080 case "$with_arch" in 3081 "cf") 3082 with_cpu=${default_cf_cpu} 3083 ;; 3084 "" | "m68k") 3085 with_cpu=m${default_m68k_cpu} 3086 ;; 3087 esac 3088 ;; 3089 mips*-*-vxworks) 3090 with_arch=mips2 3091 ;; 3092 powerpc*-*-*spe*) 3093 if test x$enable_e500_double = xyes; then 3094 with_cpu=8548 3095 else 3096 with_cpu=8540 3097 fi 3098 ;; 3099 sparc*-*-*) 3100 case ${target} in 3101 *-leon-*) 3102 with_cpu=leon 3103 ;; 3104 *-leon[3-9]*) 3105 with_cpu=leon3 3106 ;; 3107 *) 3108 with_cpu="`echo ${target} | sed 's/-.*$//'`" 3109 ;; 3110 esac 3111 ;; 3112 esac 3113 3114 # Avoid overriding --with-cpu-32 and --with-cpu-64 values. 3115 case ${target} in 3116 i[34567]86-*-*|x86_64-*-*) 3117 if test x$with_cpu_32 != x || test x$with_cpu_64 != x; then 3118 if test x$with_cpu_32 = x; then 3119 with_cpu_32=$with_cpu 3120 fi 3121 if test x$with_cpu_64 = x; then 3122 with_cpu_64=$with_cpu 3123 fi 3124 with_cpu= 3125 fi 3126 ;; 3127 esac 3128fi 3129 3130# Support for --with-arch and related options (and a few unrelated options, 3131# too). 3132case ${with_arch} in 3133 yes | no) 3134 echo "--with-arch must be passed a value" 1>&2 3135 exit 1 3136 ;; 3137esac 3138 3139# If there is no $with_arch option, try to infer one from ${target}. 3140# This block sets nothing except for with_arch. 3141if test x$with_arch = x ; then 3142 case ${target} in 3143 i[34567]86-*-darwin*|x86_64-*-darwin*) 3144 # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT 3145 # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h. 3146 ;; 3147 i[34567]86-*-*) 3148 # --with-fpmath sets the default ISA to SSE2, which is the same 3149 # ISA supported by Pentium 4. 3150 if test x$with_fpmath = x || test $arch_without_sse2 = no; then 3151 with_arch=$arch 3152 else 3153 with_arch=pentium4 3154 fi 3155 ;; 3156 x86_64-*-*) 3157 with_arch=$arch 3158 ;; 3159 esac 3160 3161 # Avoid overriding --with-arch-32 and --with-arch-64 values. 3162 case ${target} in 3163 i[34567]86-*-darwin*|x86_64-*-darwin*) 3164 # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT 3165 # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h. 3166 ;; 3167 i[34567]86-*-*|x86_64-*-*) 3168 if test x$with_arch_32 != x || test x$with_arch_64 != x; then 3169 if test x$with_arch_32 = x; then 3170 with_arch_32=$with_arch 3171 fi 3172 if test x$with_arch_64 = x; then 3173 if test $arch_without_64bit = yes; then 3174 # Set the default 64bit arch to x86-64 if the default arch 3175 # doesn't support 64bit. 3176 with_arch_64=x86-64 3177 else 3178 with_arch_64=$with_arch 3179 fi 3180 fi 3181 with_arch= 3182 elif test $arch_without_64bit$need_64bit_isa = yesyes; then 3183 # Set the default 64bit arch to x86-64 if the default arch 3184 # doesn't support 64bit and we need 64bit ISA. 3185 with_arch_32=$with_arch 3186 with_arch_64=x86-64 3187 with_arch= 3188 fi 3189 ;; 3190 esac 3191fi 3192 3193# Support --with-fpmath. 3194if test x$with_fpmath != x; then 3195 case ${target} in 3196 i[34567]86-*-* | x86_64-*-*) 3197 case ${with_fpmath} in 3198 avx) 3199 tm_file="${tm_file} i386/avxmath.h" 3200 ;; 3201 sse) 3202 tm_file="${tm_file} i386/ssemath.h" 3203 ;; 3204 *) 3205 echo "Invalid --with-fpmath=$with_fpmath" 1>&2 3206 exit 1 3207 ;; 3208 esac 3209 ;; 3210 *) 3211 echo "--with-fpmath isn't supported for $target." 1>&2 3212 exit 1 3213 ;; 3214 esac 3215fi 3216 3217# Similarly for --with-schedule. 3218if test x$with_schedule = x; then 3219 case ${target} in 3220 hppa1*) 3221 # Override default PA8000 scheduling model. 3222 with_schedule=7100LC 3223 ;; 3224 esac 3225fi 3226 3227# Validate and mark as valid any --with options supported 3228# by this target. In order to use a particular --with option 3229# you must list it in supported_defaults; validating the value 3230# is optional. This case statement should set nothing besides 3231# supported_defaults. 3232 3233supported_defaults= 3234case "${target}" in 3235 aarch64*-*-*) 3236 supported_defaults="cpu arch" 3237 for which in cpu arch; do 3238 3239 eval "val=\$with_$which" 3240 base_val=`echo $val | sed -e 's/\+.*//'` 3241 ext_val=`echo $val | sed -e 's/[a-z0-9\-]\+//'` 3242 3243 if [ $which = arch ]; then 3244 def=aarch64-arches.def 3245 pattern=AARCH64_ARCH 3246 else 3247 def=aarch64-cores.def 3248 pattern=AARCH64_CORE 3249 fi 3250 3251 ext_mask=AARCH64_CPU_DEFAULT_FLAGS 3252 3253 # Find the base CPU or ARCH id in aarch64-cores.def or 3254 # aarch64-arches.def 3255 if [ x"$base_val" = x ] \ 3256 || grep "^$pattern(\"$base_val\"," \ 3257 ${srcdir}/config/aarch64/$def \ 3258 > /dev/null; then 3259 3260 if [ $which = arch ]; then 3261 base_id=`grep "^$pattern(\"$base_val\"," \ 3262 ${srcdir}/config/aarch64/$def | \ 3263 sed -e 's/^[^,]*,[ ]*//' | \ 3264 sed -e 's/,.*$//'` 3265 # Extract the architecture flags from aarch64-arches.def 3266 ext_mask=`grep "^$pattern(\"$base_val\"," \ 3267 ${srcdir}/config/aarch64/$def | \ 3268 sed -e 's/)$//' | \ 3269 sed -e 's/^.*,//'` 3270 else 3271 base_id=`grep "^$pattern(\"$base_val\"," \ 3272 ${srcdir}/config/aarch64/$def | \ 3273 sed -e 's/^[^,]*,[ ]*//' | \ 3274 sed -e 's/,.*$//'` 3275 fi 3276 3277 while [ x"$ext_val" != x ] 3278 do 3279 ext_val=`echo $ext_val | sed -e 's/\+//'` 3280 ext=`echo $ext_val | sed -e 's/\+.*//'` 3281 base_ext=`echo $ext | sed -e 's/^no//'` 3282 3283 if [ x"$base_ext" = x ] \ 3284 || grep "^AARCH64_OPT_EXTENSION(\"$base_ext\"," \ 3285 ${srcdir}/config/aarch64/aarch64-option-extensions.def \ 3286 > /dev/null; then 3287 3288 ext_on=`grep "^AARCH64_OPT_EXTENSION(\"$base_ext\"," \ 3289 ${srcdir}/config/aarch64/aarch64-option-extensions.def | \ 3290 sed -e 's/^[^,]*,[ ]*//' | \ 3291 sed -e 's/,.*$//'` 3292 ext_off=`grep "^AARCH64_OPT_EXTENSION(\"$base_ext\"," \ 3293 ${srcdir}/config/aarch64/aarch64-option-extensions.def | \ 3294 sed -e 's/^[^,]*,[ ]*[^,]*,[ ]*//' | \ 3295 sed -e 's/,.*$//' | \ 3296 sed -e 's/).*$//'` 3297 3298 if [ $ext = $base_ext ]; then 3299 # Adding extension 3300 ext_mask="("$ext_mask") | ("$ext_on")" 3301 else 3302 # Removing extension 3303 ext_mask="("$ext_mask") & ~("$ext_off")" 3304 fi 3305 3306 true 3307 else 3308 echo "Unknown extension used in --with-$which=$val" 1>&2 3309 exit 1 3310 fi 3311 ext_val=`echo $ext_val | sed -e 's/[a-z0-9]\+//'` 3312 done 3313 3314 ext_mask="(("$ext_mask") << 6)" 3315 if [ x"$base_id" != x ]; then 3316 target_cpu_cname="TARGET_CPU_$base_id | $ext_mask" 3317 fi 3318 true 3319 else 3320 echo "Unknown $which used in --with-$which=$val" 1>&2 3321 exit 1 3322 fi 3323 done 3324 ;; 3325 3326 alpha*-*-*) 3327 supported_defaults="cpu tune" 3328 for which in cpu tune; do 3329 eval "val=\$with_$which" 3330 case "$val" in 3331 "" \ 3332 | ev4 | ev45 | 21064 | ev5 | 21164 | ev56 | 21164a \ 3333 | pca56 | 21164PC | 21164pc | ev6 | 21264 | ev67 \ 3334 | 21264a) 3335 ;; 3336 *) 3337 echo "Unknown CPU used in --with-$which=$val" 1>&2 3338 exit 1 3339 ;; 3340 esac 3341 done 3342 ;; 3343 3344 arm*-*-*) 3345 supported_defaults="arch cpu float tune fpu abi mode tls" 3346 for which in cpu tune; do 3347 # See if it matches any of the entries in arm-cores.def 3348 eval "val=\$with_$which" 3349 if [ x"$val" = x ] \ 3350 || grep "^ARM_CORE(\"$val\"," \ 3351 ${srcdir}/config/arm/arm-cores.def \ 3352 > /dev/null; then 3353 # Ok 3354 new_val=`grep "^ARM_CORE(\"$val\"," \ 3355 ${srcdir}/config/arm/arm-cores.def | \ 3356 sed -e 's/^[^,]*,[ ]*//' | \ 3357 sed -e 's/,.*$//'` 3358 eval "target_${which}_cname=$new_val" 3359 echo "For $val real value is $new_val" 3360 true 3361 else 3362 echo "Unknown CPU used in --with-$which=$val" 1>&2 3363 exit 1 3364 fi 3365 done 3366 3367 case "$with_arch" in 3368 "" \ 3369 | armv[23456] | armv2a | armv3m | armv4t | armv5t \ 3370 | armv5te | armv6j |armv6k | armv6z | armv6zk | armv6-m \ 3371 | armv7 | armv7-a | armv7-r | armv7-m | armv8-a \ 3372 | iwmmxt | ep9312) 3373 # OK 3374 ;; 3375 *) 3376 echo "Unknown arch used in --with-arch=$with_arch" 1>&2 3377 exit 1 3378 ;; 3379 esac 3380 3381 case "$with_float" in 3382 "" \ 3383 | soft | hard | softfp) 3384 # OK 3385 ;; 3386 *) 3387 echo "Unknown floating point type used in --with-float=$with_float" 1>&2 3388 exit 1 3389 ;; 3390 esac 3391 3392 case "$with_fpu" in 3393 "" \ 3394 | vfp | vfp3 | vfpv3 \ 3395 | vfpv3-fp16 | vfpv3-d16 | vfpv3-d16-fp16 | vfpv3xd \ 3396 | vfpv3xd-fp16 | neon | neon-fp16 | vfpv4 | vfpv4-d16 \ 3397 | fpv4-sp-d16 | neon-vfpv4 | fp-arm-v8 | neon-fp-armv8 \ 3398 | crypto-neon-fp-armv8) 3399 # OK 3400 ;; 3401 *) 3402 echo "Unknown fpu used in --with-fpu=$with_fpu" 2>&1 3403 exit 1 3404 ;; 3405 esac 3406 3407 case "$with_abi" in 3408 "" \ 3409 | apcs-gnu | atpcs | aapcs | iwmmxt | aapcs-linux ) 3410 #OK 3411 ;; 3412 *) 3413 echo "Unknown ABI used in --with-abi=$with_abi" 3414 exit 1 3415 ;; 3416 esac 3417 3418 case "$with_mode" in 3419 "" \ 3420 | arm | thumb ) 3421 #OK 3422 ;; 3423 *) 3424 echo "Unknown mode used in --with-mode=$with_mode" 3425 exit 1 3426 ;; 3427 esac 3428 3429 case "$with_tls" in 3430 "" \ 3431 | gnu | gnu2) 3432 # OK 3433 ;; 3434 *) 3435 echo "Unknown TLS method used in --with-tls=$with_tls" 1>&2 3436 exit 1 3437 ;; 3438 esac 3439 3440 if test "x$with_arch" != x && test "x$with_cpu" != x; then 3441 echo "Warning: --with-arch overrides --with-cpu=$with_cpu" 1>&2 3442 fi 3443 ;; 3444 3445 fr*-*-*linux*) 3446 supported_defaults=cpu 3447 case "$with_cpu" in 3448 fr400) ;; 3449 fr550) ;; 3450 *) 3451 echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2 3452 exit 1 3453 ;; 3454 esac 3455 ;; 3456 3457 fido-*-* | m68k*-*-* | m5200-*-* | m5407-*-*) 3458 supported_defaults="arch cpu" 3459 case "$with_arch" in 3460 "" | "m68k"| "cf") 3461 m68k_arch_family="$with_arch" 3462 ;; 3463 *) 3464 echo "Invalid --with-arch=$with_arch" 1>&2 3465 exit 1 3466 ;; 3467 esac 3468 3469 # We always have a $with_cpu setting here. 3470 case "$with_cpu" in 3471 "m68000" | "m68010" | "m68020" | "m68030" | "m68040" | "m68060") 3472 m68k_cpu_ident=$with_cpu 3473 ;; 3474 "m68020-40") 3475 m68k_cpu_ident=m68020 3476 tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_40" 3477 ;; 3478 "m68020-60") 3479 m68k_cpu_ident=m68020 3480 tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_60" 3481 ;; 3482 *) 3483 # We need the C identifier rather than the string. 3484 m68k_cpu_ident=`awk -v arg="\"$with_cpu\"" \ 3485 'BEGIN { FS="[ \t]*[,()][ \t]*" }; \ 3486 $1 == "M68K_DEVICE" && $2 == arg { print $3 }' \ 3487 ${srcdir}/config/m68k/m68k-devices.def` 3488 if [ x"$m68k_cpu_ident" = x ] ; then 3489 echo "Unknown CPU used in --with-cpu=$with_cpu" 1>&2 3490 exit 1 3491 fi 3492 with_cpu="mcpu=$with_cpu" 3493 ;; 3494 esac 3495 ;; 3496 3497 hppa*-*-*) 3498 supported_defaults="arch schedule" 3499 3500 case "$with_arch" in 3501 "" | 1.0 | 1.1 | 2.0) 3502 # OK 3503 ;; 3504 *) 3505 echo "Unknown architecture used in --with-arch=$with_arch" 1>&2 3506 exit 1 3507 ;; 3508 esac 3509 3510 case "$with_schedule" in 3511 "" | 700 | 7100 | 7100LC | 7200 | 7300 | 8000) 3512 # OK 3513 ;; 3514 *) 3515 echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2 3516 exit 1 3517 ;; 3518 esac 3519 ;; 3520 3521 i[34567]86-*-* | x86_64-*-*) 3522 supported_defaults="abi arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64" 3523 for which in arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64; do 3524 eval "val=\$with_$which" 3525 case ${val} in 3526 i386 | i486 \ 3527 | i586 | pentium | pentium-mmx | winchip-c6 | winchip2 \ 3528 | c3 | c3-2 | i686 | pentiumpro | pentium2 | pentium3 \ 3529 | pentium4 | k6 | k6-2 | k6-3 | athlon | athlon-tbird \ 3530 | athlon-4 | athlon-xp | athlon-mp | geode \ 3531 | prescott | pentium-m | pentium4m | pentium3m) 3532 case "${target}" in 3533 x86_64-*-*) 3534 case "x$which" in 3535 *_32) 3536 ;; 3537 *) 3538 echo "CPU given in --with-$which=$val doesn't support 64bit mode." 1>&2 3539 exit 1 3540 ;; 3541 esac 3542 ;; 3543 esac 3544 # OK 3545 ;; 3546 "" | x86-64 | generic | native \ 3547 | k8 | k8-sse3 | athlon64 | athlon64-sse3 | opteron \ 3548 | opteron-sse3 | athlon-fx | bdver3 | bdver2 | bdver1 | btver2 \ 3549 | btver1 | amdfam10 | barcelona | nocona | core2 | corei7 \ 3550 | corei7-avx | core-avx-i | core-avx2 | atom) 3551 # OK 3552 ;; 3553 *) 3554 echo "Unknown CPU given in --with-$which=$val." 1>&2 3555 exit 1 3556 ;; 3557 esac 3558 done 3559 ;; 3560 3561 mips*-*-*) 3562 supported_defaults="abi arch arch_32 arch_64 float tune tune_32 tune_64 divide llsc mips-plt synci" 3563 3564 case ${with_float} in 3565 "" | soft | hard) 3566 # OK 3567 ;; 3568 *) 3569 echo "Unknown floating point type used in --with-float=$with_float" 1>&2 3570 exit 1 3571 ;; 3572 esac 3573 3574 case ${with_abi} in 3575 "" | 32 | o64 | n32 | 64 | eabi) 3576 # OK 3577 ;; 3578 *) 3579 echo "Unknown ABI used in --with-abi=$with_abi" 1>&2 3580 exit 1 3581 ;; 3582 esac 3583 3584 case ${with_divide} in 3585 "" | breaks | traps) 3586 # OK 3587 ;; 3588 *) 3589 echo "Unknown division check type use in --with-divide=$with_divide" 1>&2 3590 exit 1 3591 ;; 3592 esac 3593 3594 case ${with_llsc} in 3595 yes) 3596 with_llsc=llsc 3597 ;; 3598 no) 3599 with_llsc="no-llsc" 3600 ;; 3601 "") 3602 # OK 3603 ;; 3604 *) 3605 echo "Unknown llsc type used in --with-llsc" 1>&2 3606 exit 1 3607 ;; 3608 esac 3609 3610 case ${with_mips_plt} in 3611 yes) 3612 with_mips_plt=plt 3613 ;; 3614 no) 3615 with_mips_plt=no-plt 3616 ;; 3617 "") 3618 ;; 3619 *) 3620 echo "Unknown --with-mips-plt argument: $with_mips_plt" 1>&2 3621 exit 1 3622 ;; 3623 esac 3624 3625 case ${with_synci} in 3626 yes) 3627 with_synci=synci 3628 ;; 3629 no) 3630 with_synci=no-synci 3631 ;; 3632 "") 3633 ;; 3634 *) 3635 echo "Unknown synci type used in --with-synci" 1>&2 3636 exit 1 3637 ;; 3638 esac 3639 ;; 3640 3641 powerpc*-*-* | rs6000-*-*) 3642 supported_defaults="abi cpu cpu_32 cpu_64 float tune tune_32 tune_64" 3643 3644 for which in cpu cpu_32 cpu_64 tune tune_32 tune_64; do 3645 eval "val=\$with_$which" 3646 case ${val} in 3647 default32 | default64) 3648 case $which in 3649 cpu | tune) 3650 ;; 3651 *) 3652 echo "$val only valid for --with-cpu and --with-tune." 1>&2 3653 exit 1 3654 ;; 3655 esac 3656 with_which="with_$which" 3657 eval $with_which= 3658 ;; 3659 405cr) 3660 tm_defines="${tm_defines} CONFIG_PPC405CR" 3661 eval "with_$which=405" 3662 ;; 3663 "" | common \ 3664 | power | power[2345678] | power6x | powerpc | powerpc64 \ 3665 | rios | rios1 | rios2 | rsc | rsc1 | rs64a \ 3666 | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \ 3667 | 476 | 476fp | 505 | 601 | 602 | 603 | 603e | ec603e \ 3668 | 604 | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \ 3669 | a2 | e300c[23] | 854[08] | e500mc | e500mc64 | e5500 | e6500 \ 3670 | titan | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5 | cell) 3671 # OK 3672 ;; 3673 *) 3674 echo "Unknown cpu used in --with-$which=$val." 1>&2 3675 exit 1 3676 ;; 3677 esac 3678 done 3679 3680 case "$with_abi" in 3681 "" | elfv1 | elfv2 ) 3682 #OK 3683 ;; 3684 *) 3685 echo "Unknown ABI used in --with-abi=$with_abi" 3686 exit 1 3687 ;; 3688 esac 3689 ;; 3690 3691 s390*-*-*) 3692 supported_defaults="arch mode tune" 3693 3694 for which in arch tune; do 3695 eval "val=\$with_$which" 3696 case ${val} in 3697 "" | g5 | g6 | z900 | z990 | z9-109 | z9-ec | z10 | z196 | zEC12) 3698 # OK 3699 ;; 3700 *) 3701 echo "Unknown cpu used in --with-$which=$val." 1>&2 3702 exit 1 3703 ;; 3704 esac 3705 done 3706 3707 case ${with_mode} in 3708 "" | esa | zarch) 3709 # OK 3710 ;; 3711 *) 3712 echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2 3713 exit 1 3714 ;; 3715 esac 3716 ;; 3717 3718 sh[123456ble]-*-* | sh-*-*) 3719 supported_defaults="cpu" 3720 case "`echo $with_cpu | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz- | sed s/sh/m/`" in 3721 "" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu ) 3722 # OK 3723 ;; 3724 m2a | m2a-single | m2a-single-only | m2a-nofpu) 3725 ;; 3726 m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al) 3727 ;; 3728 *) 3729 echo "Unknown CPU used in --with-cpu=$with_cpu, known values:" 1>&2 3730 echo "m1 m2 m2e m3 m3e m4 m4-single m4-single-only m4-nofpu" 1>&2 3731 echo "m4a m4a-single m4a-single-only m4a-nofpu m4al" 1>&2 3732 echo "m2a m2a-single m2a-single-only m2a-nofpu" 1>&2 3733 exit 1 3734 ;; 3735 esac 3736 ;; 3737 sparc*-*-*) 3738 supported_defaults="cpu float tune" 3739 3740 for which in cpu tune; do 3741 eval "val=\$with_$which" 3742 case ${val} in 3743 "" | sparc | sparcv9 | sparc64 \ 3744 | v7 | cypress \ 3745 | v8 | supersparc | hypersparc | leon | leon3 \ 3746 | sparclite | f930 | f934 | sparclite86x \ 3747 | sparclet | tsc701 \ 3748 | v9 | ultrasparc | ultrasparc3 | niagara | niagara2 \ 3749 | niagara3 | niagara4) 3750 # OK 3751 ;; 3752 *) 3753 echo "Unknown cpu used in --with-$which=$val" 1>&2 3754 exit 1 3755 ;; 3756 esac 3757 done 3758 3759 case ${with_float} in 3760 "" | soft | hard) 3761 # OK 3762 ;; 3763 *) 3764 echo "Unknown floating point type used in --with-float=$with_float" 1>&2 3765 exit 1 3766 ;; 3767 esac 3768 ;; 3769 3770 spu-*-*) 3771 supported_defaults="arch tune" 3772 3773 for which in arch tune; do 3774 eval "val=\$with_$which" 3775 case ${val} in 3776 "" | cell | celledp) 3777 # OK 3778 ;; 3779 *) 3780 echo "Unknown cpu used in --with-$which=$val." 1>&2 3781 exit 1 3782 ;; 3783 esac 3784 done 3785 ;; 3786 3787 tic6x-*-*) 3788 supported_defaults="arch" 3789 3790 case ${with_arch} in 3791 "" | c62x | c64x | c64x+ | c67x | c67x+ | c674x) 3792 # OK 3793 ;; 3794 *) 3795 echo "Unknown arch used in --with-arch=$with_arch." 1>&2 3796 exit 1 3797 ;; 3798 esac 3799 ;; 3800 3801 v850*-*-*) 3802 supported_defaults=cpu 3803 case ${with_cpu} in 3804 "" | v850e | v850e1 | v850e2 | v850es | v850e2v3 | v850e3v5) 3805 # OK 3806 ;; 3807 *) 3808 echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2 3809 exit 1 3810 ;; 3811 esac 3812 ;; 3813esac 3814 3815# Set some miscellaneous flags for particular targets. 3816target_cpu_default2= 3817case ${target} in 3818 aarch64*-*-*) 3819 if test x"$target_cpu_cname" != x 3820 then 3821 target_cpu_default2=$target_cpu_cname 3822 fi 3823 ;; 3824 3825 arm*-*-*) 3826 if test x$target_cpu_cname = x 3827 then 3828 target_cpu_default2=TARGET_CPU_generic 3829 else 3830 target_cpu_default2=TARGET_CPU_$target_cpu_cname 3831 fi 3832 ;; 3833 3834 hppa*-*-*) 3835 target_cpu_default2="MASK_BIG_SWITCH" 3836 if test x$gas = xyes 3837 then 3838 target_cpu_default2="${target_cpu_default2}|MASK_GAS|MASK_JUMP_IN_DELAY" 3839 fi 3840 ;; 3841 3842 fido*-*-* | m68k*-*-*) 3843 target_cpu_default2=$m68k_cpu_ident 3844 tmake_file="m68k/t-opts $tmake_file" 3845 if [ x"$m68k_arch_family" != x ]; then 3846 tmake_file="m68k/t-$m68k_arch_family $tmake_file" 3847 fi 3848 ;; 3849 3850 i[34567]86-*-darwin* | x86_64-*-darwin*) 3851 ;; 3852 i[34567]86-*-linux* | x86_64-*-linux*) 3853 tmake_file="$tmake_file i386/t-linux" 3854 ;; 3855 i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu) 3856 tmake_file="$tmake_file i386/t-kfreebsd" 3857 ;; 3858 i[34567]86-*-gnu*) 3859 tmake_file="$tmake_file i386/t-gnu" 3860 ;; 3861 i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) 3862 ;; 3863 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*) 3864 ;; 3865 i[34567]86-*-freebsd* | x86_64-*-freebsd*) 3866 ;; 3867 ia64*-*-linux*) 3868 ;; 3869 3870 mips*-*-*) 3871 if test x$gnu_ld = xyes 3872 then 3873 target_cpu_default2="MASK_SPLIT_ADDRESSES" 3874 fi 3875 case ${target} in 3876 mips*el-*-*) 3877 tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines" 3878 ;; 3879 esac 3880 tmake_file="mips/t-mips $tmake_file" 3881 ;; 3882 3883 powerpc*-*-* | rs6000-*-*) 3884 # FIXME: The PowerPC port uses the value set at compile time, 3885 # although it's only cosmetic. 3886 if test "x$with_cpu" != x 3887 then 3888 target_cpu_default2="\\\"$with_cpu\\\"" 3889 fi 3890 out_file=rs6000/rs6000.c 3891 c_target_objs="${c_target_objs} rs6000-c.o" 3892 cxx_target_objs="${cxx_target_objs} rs6000-c.o" 3893 tmake_file="rs6000/t-rs6000 ${tmake_file}" 3894 ;; 3895 3896 sh[123456ble]*-*-* | sh-*-*) 3897 c_target_objs="${c_target_objs} sh-c.o" 3898 cxx_target_objs="${cxx_target_objs} sh-c.o" 3899 ;; 3900 3901 sparc*-*-*) 3902 # Some standard aliases. 3903 case x$with_cpu in 3904 xsparc) 3905 with_cpu=v7 3906 ;; 3907 xsparcv9 | xsparc64) 3908 with_cpu=v9 3909 ;; 3910 esac 3911 3912 if test x$with_tune = x ; then 3913 case ${target} in 3914 *-leon-*) 3915 with_tune=leon 3916 ;; 3917 *-leon[3-9]*) 3918 with_tune=leon3 3919 ;; 3920 esac 3921 fi 3922 3923 # The SPARC port checks this value at compile-time. 3924 target_cpu_default2="TARGET_CPU_$with_cpu" 3925 ;; 3926 3927 v850*-*-*) 3928 case "x$with_cpu" in 3929 x) 3930 ;; 3931 xv850e | xv850e1 | xv850e2 | xv850e2v3 | xv850e3v5) 3932 target_cpu_default2="TARGET_CPU_$with_cpu" 3933 ;; 3934 xv850es) 3935 target_cpu_default2="TARGET_CPU_v850e1" 3936 ;; 3937 esac 3938 ;; 3939esac 3940 3941t= 3942all_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 tls" 3943for option in $all_defaults 3944do 3945 eval "val=\$with_"`echo $option | sed s/-/_/g` 3946 if test -n "$val"; then 3947 case " $supported_defaults " in 3948 *" $option "*) 3949 ;; 3950 *) 3951 echo "This target does not support --with-$option." 2>&1 3952 echo "Valid --with options are: $supported_defaults" 2>&1 3953 exit 1 3954 ;; 3955 esac 3956 3957 if test "x$t" = x 3958 then 3959 t="{ \"$option\", \"$val\" }" 3960 else 3961 t="${t}, { \"$option\", \"$val\" }" 3962 fi 3963 fi 3964done 3965 3966if test "x$t" = x 3967then 3968 configure_default_options="{ { NULL, NULL} }" 3969else 3970 configure_default_options="{ ${t} }" 3971fi 3972 3973if test "$target_cpu_default2" != "" 3974then 3975 if test "$target_cpu_default" != "" 3976 then 3977 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" 3978 else 3979 target_cpu_default=$target_cpu_default2 3980 fi 3981fi 3982