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