| 1 | # GCC target-specific configuration file. |
| 2 | # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
| 3 | # 2008, 2009, 2010 Free Software Foundation, Inc. |
| 4 | |
| 5 | #This file is part of GCC. |
| 6 | |
| 7 | #GCC is free software; you can redistribute it and/or modify it under |
| 8 | #the terms of the GNU General Public License as published by the Free |
| 9 | #Software Foundation; either version 3, or (at your option) any later |
| 10 | #version. |
| 11 | |
| 12 | #GCC is distributed in the hope that it will be useful, but WITHOUT |
| 13 | #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 14 | #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 15 | #for more details. |
| 16 | |
| 17 | #You should have received a copy of the GNU General Public License |
| 18 | #along with GCC; see the file COPYING3. If not see |
| 19 | #<http://www.gnu.org/licenses/>. |
| 20 | |
| 21 | # This is the GCC target-specific configuration file |
| 22 | # where a configuration type is mapped to different system-specific |
| 23 | # definitions and files. This is invoked by the autoconf-generated |
| 24 | # configure script. Putting it in a separate shell file lets us skip |
| 25 | # running autoconf when modifying target-specific information. |
| 26 | |
| 27 | # When you change the cases in the OS or target switches, consider |
| 28 | # updating ../libgcc/config.host also. |
| 29 | |
| 30 | # This file switches on the shell variable ${target}, and also uses the |
| 31 | # following shell variables: |
| 32 | # |
| 33 | # with_* Various variables as set by configure. |
| 34 | # |
| 35 | # enable_threads Either the name, yes or no depending on whether |
| 36 | # threads support was requested. |
| 37 | # |
| 38 | # default_use_cxa_atexit |
| 39 | # The default value for the $enable___cxa_atexit |
| 40 | # variable. enable___cxa_atexit needs to be set to |
| 41 | # "yes" for the correct operation of C++ destructors |
| 42 | # but it relies upon the presence of a non-standard C |
| 43 | # library function called __cxa_atexit. |
| 44 | # Since not all C libraries provide __cxa_atexit the |
| 45 | # default value of $default_use_cxa_atexit is set to |
| 46 | # "no" except for targets which are known to be OK. |
| 47 | # |
| 48 | # gas_flag Either yes or no depending on whether GNU as was |
| 49 | # requested. |
| 50 | # |
| 51 | # gnu_ld_flag Either yes or no depending on whether GNU ld was |
| 52 | # requested. |
| 53 | |
| 54 | # This file sets the following shell variables for use by the |
| 55 | # autoconf-generated configure script: |
| 56 | # |
| 57 | # cpu_type The name of the cpu, if different from the first |
| 58 | # chunk of the canonical target name. |
| 59 | # |
| 60 | # tm_defines List of target macros to define for all compilations. |
| 61 | # |
| 62 | # tm_file A list of target macro files, if different from |
| 63 | # "$cpu_type/$cpu_type.h". Usually it's constructed |
| 64 | # per target in a way like this: |
| 65 | # tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h" |
| 66 | # Note that the preferred order is: |
| 67 | # - specific target header "${cpu_type}/${cpu_type.h}" |
| 68 | # - generic headers like dbxelf.h elfos.h, etc. |
| 69 | # - specializing target headers like ${cpu_type.h}/elf.h |
| 70 | # This helps to keep OS specific stuff out of the CPU |
| 71 | # defining header ${cpu_type}/${cpu_type.h}. |
| 72 | # |
| 73 | # It is possible to include automatically-generated |
| 74 | # build-directory files by prefixing them with "./". |
| 75 | # All other files should relative to $srcdir/config. |
| 76 | # |
| 77 | # tm_p_file Location of file with declarations for functions |
| 78 | # in $out_file. |
| 79 | # |
| 80 | # out_file The name of the machine description C support |
| 81 | # file, if different from "$cpu_type/$cpu_type.c". |
| 82 | # |
| 83 | # md_file The name of the machine-description file, if |
| 84 | # different from "$cpu_type/$cpu_type.md". |
| 85 | # |
| 86 | # tmake_file A list of machine-description-specific |
| 87 | # makefile-fragments, if different from |
| 88 | # "$cpu_type/t-$cpu_type". |
| 89 | # |
| 90 | # extra_modes The name of the file containing a list of extra |
| 91 | # machine modes, if necessary and different from |
| 92 | # "$cpu_type/$cpu_type-modes.def". |
| 93 | # |
| 94 | # extra_objs List of extra objects that should be linked into |
| 95 | # the compiler proper (cc1, cc1obj, cc1plus) |
| 96 | # depending on target. |
| 97 | # |
| 98 | # extra_gcc_objs List of extra objects that should be linked into |
| 99 | # the compiler driver (gcc) depending on target. |
| 100 | # |
| 101 | # extra_headers List of used header files from the directory |
| 102 | # config/${cpu_type}. |
| 103 | # |
| 104 | # use_gcc_tgmath If set, add tgmath.h to the list of used header |
| 105 | # files. |
| 106 | # |
| 107 | # extra_passes List of extra executables compiled for this target |
| 108 | # machine, used for compiling from source to object. |
| 109 | # |
| 110 | # extra_parts List of extra object files that should be compiled |
| 111 | # for this target machine. |
| 112 | # |
| 113 | # extra_programs Like extra_passes, but these are used when linking. |
| 114 | # |
| 115 | # extra_options List of target-dependent .opt files. |
| 116 | # |
| 117 | # c_target_objs List of extra target-dependent objects that be |
| 118 | # linked into the C compiler only. |
| 119 | # |
| 120 | # cxx_target_objs List of extra target-dependent objects that be |
| 121 | # linked into the C++ compiler only. |
| 122 | # |
| 123 | # fortran_target_objs List of extra target-dependent objects that be |
| 124 | # linked into the fortran compiler only. |
| 125 | # |
| 126 | # target_gtfiles List of extra source files with type information. |
| 127 | # |
| 128 | # xm_defines List of macros to define when compiling for the |
| 129 | # target machine. |
| 130 | # |
| 131 | # xm_file List of files to include when compiling for the |
| 132 | # target machine. |
| 133 | # |
| 134 | # use_collect2 Set to yes or no, depending on whether collect2 |
| 135 | # will be used. |
| 136 | # |
| 137 | # target_cpu_default Set to override the default target model. |
| 138 | # |
| 139 | # gdb_needs_out_file_path |
| 140 | # Set to yes if gdb needs a dir command with |
| 141 | # `dirname $out_file`. |
| 142 | # |
| 143 | # thread_file Set to control which thread package to use. |
| 144 | # |
| 145 | # gas Set to yes or no depending on whether the target |
| 146 | # system normally uses GNU as. |
| 147 | # |
| 148 | # need_64bit_hwint Set to yes if HOST_WIDE_INT must be 64 bits wide |
| 149 | # for this target. This is true if this target |
| 150 | # supports "long" or "wchar_t" wider than 32 bits, |
| 151 | # or BITS_PER_WORD is wider than 32 bits. |
| 152 | # The setting made here must match the one made in |
| 153 | # other locations such as libcpp/configure.ac |
| 154 | # |
| 155 | # configure_default_options |
| 156 | # Set to an initializer for configure_default_options |
| 157 | # in configargs.h, based on --with-cpu et cetera. |
| 158 | # |
| 159 | # use_fixproto Set to "yes" if fixproto should be run normally, |
| 160 | # "no" if fixproto should never be run. |
| 161 | |
| 162 | # The following variables are used in each case-construct to build up the |
| 163 | # outgoing variables: |
| 164 | # |
| 165 | # gnu_ld Set to yes or no depending on whether the target |
| 166 | # system normally uses GNU ld. |
| 167 | |
| 168 | out_file= |
| 169 | tmake_file= |
| 170 | extra_headers= |
| 171 | use_gcc_tgmath=yes |
| 172 | extra_passes= |
| 173 | extra_parts= |
| 174 | extra_programs= |
| 175 | extra_objs= |
| 176 | extra_gcc_objs= |
| 177 | extra_options= |
| 178 | c_target_objs= |
| 179 | cxx_target_objs= |
| 180 | fortran_target_objs= |
| 181 | tm_defines= |
| 182 | xm_defines= |
| 183 | # Set this to force installation and use of collect2. |
| 184 | use_collect2= |
| 185 | # Set this to override the default target model. |
| 186 | target_cpu_default= |
| 187 | # Set this if gdb needs a dir command with `dirname $out_file` |
| 188 | gdb_needs_out_file_path= |
| 189 | # Set this to control which thread package will be used. |
| 190 | thread_file= |
| 191 | # Reinitialize these from the flag values every loop pass, since some |
| 192 | # configure entries modify them. |
| 193 | gas="$gas_flag" |
| 194 | gnu_ld="$gnu_ld_flag" |
| 195 | default_use_cxa_atexit=no |
| 196 | target_gtfiles= |
| 197 | need_64bit_hwint= |
| 198 | |
| 199 | # Default to not using fixproto. Targets which need fixproto should |
| 200 | # specifically set this to 'yes'. |
| 201 | use_fixproto=no |
| 202 | |
| 203 | # Don't carry these over build->host->target. Please. |
| 204 | xm_file= |
| 205 | md_file= |
| 206 | |
| 207 | # Obsolete configurations. |
| 208 | case ${target} in |
| 209 | # Avoid generic cases below matching. |
| 210 | h8300-*-rtems* | h8300-*-elf* \ |
| 211 | | sh-*-elf* | sh-*-symbianelf* | sh-*-linux* | sh-*-netbsdelf* \ |
| 212 | | sh-*-rtems* | sh-wrs-vxworks) ;; |
| 213 | arm-*-coff* \ |
| 214 | | armel-*-coff* \ |
| 215 | | h8300-*-* \ |
| 216 | | i[34567]86-*-aout* \ |
| 217 | | i[34567]86-*-coff* \ |
| 218 | | m68k-*-aout* \ |
| 219 | | m68k-*-coff* \ |
| 220 | | sh-*-* \ |
| 221 | | pdp11-*-bsd \ |
| 222 | | rs6000-ibm-aix4.[12]* \ |
| 223 | | powerpc-ibm-aix4.[12]* \ |
| 224 | ) |
| 225 | if test "x$enable_obsolete" != xyes; then |
| 226 | echo "*** Configuration ${target} is obsolete." >&2 |
| 227 | echo "*** Specify --enable-obsolete to build it anyway." >&2 |
| 228 | echo "*** Support will be REMOVED in the next major release of GCC," >&2 |
| 229 | echo "*** unless a maintainer comes forward." >&2 |
| 230 | exit 1 |
| 231 | fi;; |
| 232 | esac |
| 233 | |
| 234 | # Unsupported targets list. Do not put an entry in this list unless |
| 235 | # it would otherwise be caught by a more permissive pattern. The list |
| 236 | # should be in alphabetical order. |
| 237 | case ${target} in |
| 238 | i[34567]86-go32-* \ |
| 239 | | i[34567]86-*-go32* \ |
| 240 | | mips64orion*-*-rtems* \ |
| 241 | | sparc-hal-solaris2* \ |
| 242 | | thumb-*-* \ |
| 243 | | *-*-linux*aout* \ |
| 244 | | *-*-linux*coff* \ |
| 245 | | *-*-linux*libc1* \ |
| 246 | | *-*-linux*oldld* \ |
| 247 | | *-*-rtemsaout* \ |
| 248 | | *-*-rtemscoff* \ |
| 249 | | *-*-solaris2.[0-6] \ |
| 250 | | *-*-solaris2.[0-6].* \ |
| 251 | | *-*-sysv* \ |
| 252 | | vax-*-vms* \ |
| 253 | ) |
| 254 | echo "*** Configuration ${target} not supported" 1>&2 |
| 255 | exit 1 |
| 256 | ;; |
| 257 | esac |
| 258 | |
| 259 | # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be |
| 260 | # updated in each machine entry. Also set default extra_headers for some |
| 261 | # machines. |
| 262 | tm_p_file= |
| 263 | cpu_type=`echo ${target} | sed 's/-.*$//'` |
| 264 | cpu_is_64bit= |
| 265 | case ${target} in |
| 266 | m32c*-*-*) |
| 267 | cpu_type=m32c |
| 268 | tmake_file=m32c/t-m32c |
| 269 | ;; |
| 270 | alpha*-*-*) |
| 271 | cpu_type=alpha |
| 272 | need_64bit_hwint=yes |
| 273 | ;; |
| 274 | am33_2.0-*-linux*) |
| 275 | cpu_type=mn10300 |
| 276 | ;; |
| 277 | arm*-*-*) |
| 278 | cpu_type=arm |
| 279 | extra_headers="mmintrin.h arm_neon.h" |
| 280 | c_target_objs="arm-c.o" |
| 281 | cxx_target_objs="arm-c.o" |
| 282 | ;; |
| 283 | bfin*-*) |
| 284 | cpu_type=bfin |
| 285 | ;; |
| 286 | crisv32-*) |
| 287 | cpu_type=cris |
| 288 | ;; |
| 289 | frv*) cpu_type=frv |
| 290 | ;; |
| 291 | fido-*-*) |
| 292 | cpu_type=m68k |
| 293 | extra_headers=math-68881.h |
| 294 | ;; |
| 295 | i[34567]86-*-*) |
| 296 | cpu_type=i386 |
| 297 | c_target_objs="i386-c.o" |
| 298 | cxx_target_objs="i386-c.o" |
| 299 | extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h |
| 300 | pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h |
| 301 | nmmintrin.h bmmintrin.h mmintrin-common.h |
| 302 | wmmintrin.h immintrin.h x86intrin.h avxintrin.h |
| 303 | cross-stdarg.h" |
| 304 | ;; |
| 305 | x86_64-*-*) |
| 306 | cpu_type=i386 |
| 307 | c_target_objs="i386-c.o" |
| 308 | cxx_target_objs="i386-c.o" |
| 309 | extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h |
| 310 | pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h |
| 311 | nmmintrin.h bmmintrin.h mmintrin-common.h |
| 312 | wmmintrin.h immintrin.h x86intrin.h avxintrin.h |
| 313 | cross-stdarg.h" |
| 314 | need_64bit_hwint=yes |
| 315 | ;; |
| 316 | ia64-*-*) |
| 317 | extra_headers=ia64intrin.h |
| 318 | need_64bit_hwint=yes |
| 319 | ;; |
| 320 | hppa*-*-*) |
| 321 | cpu_type=pa |
| 322 | ;; |
| 323 | m32r*-*-*) |
| 324 | cpu_type=m32r |
| 325 | ;; |
| 326 | m68k-*-*) |
| 327 | extra_headers=math-68881.h |
| 328 | ;; |
| 329 | mips*-*-*) |
| 330 | cpu_type=mips |
| 331 | need_64bit_hwint=yes |
| 332 | extra_headers="loongson.h" |
| 333 | ;; |
| 334 | picochip-*-*) |
| 335 | cpu_type=picochip |
| 336 | ;; |
| 337 | powerpc*-*-*) |
| 338 | cpu_type=rs6000 |
| 339 | extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h" |
| 340 | need_64bit_hwint=yes |
| 341 | case x$with_cpu in |
| 342 | xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[34567]|xpower6x|xrs64a|xcell) |
| 343 | cpu_is_64bit=yes |
| 344 | ;; |
| 345 | esac |
| 346 | ;; |
| 347 | rs6000*-*-*) |
| 348 | need_64bit_hwint=yes |
| 349 | ;; |
| 350 | score*-*-*) |
| 351 | cpu_type=score |
| 352 | ;; |
| 353 | sparc*-*-*) |
| 354 | cpu_type=sparc |
| 355 | need_64bit_hwint=yes |
| 356 | ;; |
| 357 | spu*-*-*) |
| 358 | cpu_type=spu |
| 359 | need_64bit_hwint=yes |
| 360 | ;; |
| 361 | s390*-*-*) |
| 362 | cpu_type=s390 |
| 363 | need_64bit_hwint=yes |
| 364 | ;; |
| 365 | # Note the 'l'; we need to be able to match e.g. "shle" or "shl". |
| 366 | sh[123456789lbe]*-*-* | sh-*-*) |
| 367 | cpu_type=sh |
| 368 | need_64bit_hwint=yes |
| 369 | ;; |
| 370 | esac |
| 371 | |
| 372 | tm_file=${cpu_type}/${cpu_type}.h |
| 373 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h |
| 374 | then |
| 375 | tm_p_file=${cpu_type}/${cpu_type}-protos.h |
| 376 | fi |
| 377 | extra_modes= |
| 378 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def |
| 379 | then |
| 380 | extra_modes=${cpu_type}/${cpu_type}-modes.def |
| 381 | fi |
| 382 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}.opt |
| 383 | then |
| 384 | extra_options="${extra_options} ${cpu_type}/${cpu_type}.opt" |
| 385 | fi |
| 386 | |
| 387 | case ${target} in |
| 388 | i[34567]86-*-*) |
| 389 | if test "x$enable_cld" = xyes; then |
| 390 | tm_defines="${tm_defines} USE_IX86_CLD=1" |
| 391 | fi |
| 392 | ;; |
| 393 | x86_64-*-*) |
| 394 | tm_file="i386/biarch64.h ${tm_file}" |
| 395 | if test "x$enable_cld" = xyes; then |
| 396 | tm_defines="${tm_defines} USE_IX86_CLD=1" |
| 397 | fi |
| 398 | ;; |
| 399 | esac |
| 400 | |
| 401 | # On a.out targets, we need to use collect2. |
| 402 | case ${target} in |
| 403 | *-*-*aout*) |
| 404 | use_collect2=yes |
| 405 | ;; |
| 406 | esac |
| 407 | |
| 408 | # Common parts for widely ported systems. |
| 409 | case ${target} in |
| 410 | *-*-darwin*) |
| 411 | tm_file="${tm_file} darwin.h" |
| 412 | case ${target} in |
| 413 | *-*-darwin[912]*) |
| 414 | tm_file="${tm_file} darwin9.h" |
| 415 | ;; |
| 416 | esac |
| 417 | tm_file="${tm_file} ${cpu_type}/darwin.h" |
| 418 | tm_p_file="${tm_p_file} darwin-protos.h" |
| 419 | tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin" |
| 420 | target_gtfiles="\$(srcdir)/config/darwin.c" |
| 421 | extra_options="${extra_options} darwin.opt" |
| 422 | c_target_objs="${c_target_objs} darwin-c.o" |
| 423 | cxx_target_objs="${cxx_target_objs} darwin-c.o" |
| 424 | fortran_target_objs="darwin-f.o" |
| 425 | extra_objs="darwin.o" |
| 426 | extra_gcc_objs="darwin-driver.o" |
| 427 | default_use_cxa_atexit=yes |
| 428 | case ${enable_threads} in |
| 429 | "" | yes | posix) thread_file='posix' ;; |
| 430 | esac |
| 431 | ;; |
| 432 | *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) |
| 433 | # This is the place-holder for the generic a.out configuration |
| 434 | # of FreeBSD. No actual configuration resides here since |
| 435 | # there was only ever a bare-bones ix86 configuration for |
| 436 | # a.out and it exists solely in the machine-specific section. |
| 437 | # This place-holder must exist to avoid dropping into |
| 438 | # the generic ELF configuration of FreeBSD (i.e. it must be |
| 439 | # ordered before that section). |
| 440 | ;; |
| 441 | *-*-freebsd*) |
| 442 | # This is the generic ELF configuration of FreeBSD. Later |
| 443 | # machine-specific sections may refine and add to this |
| 444 | # configuration. |
| 445 | # |
| 446 | # Due to tm_file entry ordering issues that vary between cpu |
| 447 | # architectures, we only define fbsd_tm_file to allow the |
| 448 | # machine-specific section to dictate the final order of all |
| 449 | # entries of tm_file with the minor exception that components |
| 450 | # of the tm_file set here will always be of the form: |
| 451 | # |
| 452 | # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h |
| 453 | # |
| 454 | # The machine-specific section should not tamper with this |
| 455 | # ordering but may order all other entries of tm_file as it |
| 456 | # pleases around the provided core setting. |
| 457 | gas=yes |
| 458 | gnu_ld=yes |
| 459 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
| 460 | fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\..*//g'` |
| 461 | tm_defines="${tm_defines} FBSD_MAJOR=${fbsd_major}" |
| 462 | tmake_file="t-slibgcc-elf-ver t-freebsd" |
| 463 | case ${enable_threads} in |
| 464 | no) |
| 465 | fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h" |
| 466 | ;; |
| 467 | "" | yes | posix) |
| 468 | thread_file='posix' |
| 469 | tmake_file="${tmake_file} t-freebsd-thread" |
| 470 | # Before 5.0, FreeBSD can't bind shared libraries to -lc |
| 471 | # when "optionally" threaded via weak pthread_* checks. |
| 472 | case ${target} in |
| 473 | *-*-freebsd[34] | *-*-freebsd[34].*) |
| 474 | tmake_file="${tmake_file} t-slibgcc-nolc-override" |
| 475 | ;; |
| 476 | esac |
| 477 | ;; |
| 478 | *) |
| 479 | echo 'Unknown thread configuration for FreeBSD' |
| 480 | exit 1 |
| 481 | ;; |
| 482 | esac |
| 483 | fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h" |
| 484 | case ${target} in |
| 485 | *-*-freebsd[345].*) |
| 486 | :;; |
| 487 | *) |
| 488 | default_use_cxa_atexit=yes;; |
| 489 | esac |
| 490 | ;; |
| 491 | *-*-dragonfly*) |
| 492 | gas=yes |
| 493 | gnu_ld=yes |
| 494 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
| 495 | tmake_file="t-libc-ok t-libgcc-pic" |
| 496 | case ${enable_threads} in |
| 497 | "" | yes | posix) thread_file='posix' ;; |
| 498 | esac |
| 499 | default_use_cxa_atexit=yes |
| 500 | ;; |
| 501 | *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu) |
| 502 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
| 503 | gas=yes |
| 504 | gnu_ld=yes |
| 505 | case ${enable_threads} in |
| 506 | "" | yes | posix) thread_file='posix' ;; |
| 507 | esac |
| 508 | tmake_file="t-slibgcc-elf-ver t-linux" |
| 509 | case $target in |
| 510 | *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-kopensolaris*-gnu) |
| 511 | :;; |
| 512 | *-*-gnu*) |
| 513 | tmake_file="$tmake_file t-gnu";; |
| 514 | esac |
| 515 | # glibc / uclibc switch. uclibc isn't usable for GNU/Hurd and neither for |
| 516 | # GNU/k*BSD. |
| 517 | case $target in |
| 518 | *linux*) |
| 519 | extra_options="$extra_options linux.opt";; |
| 520 | *) |
| 521 | tm_defines="$tm_defines OPTION_GLIBC=1";; |
| 522 | esac |
| 523 | case ${target} in |
| 524 | *-*-*uclibc*) |
| 525 | tm_defines="${tm_defines} UCLIBC_DEFAULT=1" |
| 526 | ;; |
| 527 | *) |
| 528 | tm_defines="${tm_defines} UCLIBC_DEFAULT=0" |
| 529 | ;; |
| 530 | esac |
| 531 | # Assume that glibc or uClibc are being used and so __cxa_atexit is provided. |
| 532 | default_use_cxa_atexit=yes |
| 533 | use_gcc_tgmath=no |
| 534 | ;; |
| 535 | *-*-netbsd*) |
| 536 | tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd t-libgcc-pic" |
| 537 | gas=yes |
| 538 | gnu_ld=yes |
| 539 | |
| 540 | # NetBSD 2.0 and later get POSIX threads enabled by default. |
| 541 | # Allow them to be explicitly enabled on any other version. |
| 542 | case ${enable_threads} in |
| 543 | "") |
| 544 | case ${target} in |
| 545 | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) |
| 546 | thread_file='posix' |
| 547 | tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS" |
| 548 | ;; |
| 549 | esac |
| 550 | ;; |
| 551 | yes | posix) |
| 552 | thread_file='posix' |
| 553 | tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS" |
| 554 | ;; |
| 555 | esac |
| 556 | |
| 557 | # NetBSD 1.7 and later are set up to use GCC's crtstuff for |
| 558 | # ELF configurations. We will clear extra_parts in the |
| 559 | # a.out configurations. |
| 560 | case ${target} in |
| 561 | *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) |
| 562 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" |
| 563 | ;; |
| 564 | esac |
| 565 | |
| 566 | # NetBSD 2.0 and later provide __cxa_atexit(), which we use by |
| 567 | # default (unless overridden by --disable-__cxa_atexit). |
| 568 | case ${target} in |
| 569 | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) |
| 570 | default_use_cxa_atexit=yes |
| 571 | ;; |
| 572 | esac |
| 573 | ;; |
| 574 | *-*-openbsd*) |
| 575 | tmake_file="t-libc-ok t-openbsd t-libgcc-pic" |
| 576 | case ${enable_threads} in |
| 577 | yes) |
| 578 | thread_file='posix' |
| 579 | tmake_file="${tmake_file} t-openbsd-thread" |
| 580 | ;; |
| 581 | esac |
| 582 | case ${target} in |
| 583 | *-*-openbsd2.*|*-*-openbsd3.[012]) |
| 584 | tm_defines="${tm_defines} HAS_LIBC_R=1" ;; |
| 585 | esac |
| 586 | ;; |
| 587 | *-*-rtems*) |
| 588 | case ${enable_threads} in |
| 589 | yes) thread_file='rtems' ;; |
| 590 | esac |
| 591 | ;; |
| 592 | *-*-vxworks*) |
| 593 | tmake_file=t-vxworks |
| 594 | xm_defines=POSIX |
| 595 | extra_options="${extra_options} vxworks.opt" |
| 596 | extra_objs=vxworks.o |
| 597 | case ${enable_threads} in |
| 598 | no) ;; |
| 599 | "" | yes | vxworks) thread_file='vxworks' ;; |
| 600 | *) echo 'Unknown thread configuration for VxWorks'; exit 1 ;; |
| 601 | esac |
| 602 | ;; |
| 603 | *-*-elf) |
| 604 | # Assume that newlib is being used and so __cxa_atexit is provided. |
| 605 | default_use_cxa_atexit=yes |
| 606 | ;; |
| 607 | esac |
| 608 | |
| 609 | case ${target} in |
| 610 | # Support site-specific machine types. |
| 611 | *local*) |
| 612 | rest=`echo ${target} | sed -e "s/$cpu_type-//"` |
| 613 | tm_file=${cpu_type}/$rest.h |
| 614 | if test -f $srcdir/config/${cpu_type}/xm-$rest.h |
| 615 | then xm_file=${cpu_type}/xm-$rest.h |
| 616 | fi |
| 617 | if test -f $srcdir/config/${cpu_type}/t-$rest |
| 618 | then tmake_file=${cpu_type}/t-$rest |
| 619 | fi |
| 620 | ;; |
| 621 | alpha*-*-linux*) |
| 622 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
| 623 | target_cpu_default="MASK_GAS" |
| 624 | tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee alpha/t-linux" |
| 625 | ;; |
| 626 | alpha*-*-gnu*) |
| 627 | tm_file="$tm_file alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h alpha/gnu.h" |
| 628 | target_cpu_default="MASK_GAS" |
| 629 | tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee" |
| 630 | ;; |
| 631 | alpha*-*-freebsd*) |
| 632 | tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h" |
| 633 | target_cpu_default="MASK_GAS" |
| 634 | tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee" |
| 635 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" |
| 636 | ;; |
| 637 | alpha*-*-netbsd*) |
| 638 | tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h" |
| 639 | target_cpu_default="MASK_GAS" |
| 640 | tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" |
| 641 | ;; |
| 642 | alpha*-*-openbsd*) |
| 643 | tm_defines="${tm_defines} OBSD_NO_DYNAMIC_LIBRARIES OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT" |
| 644 | tm_file="alpha/alpha.h openbsd.h alpha/openbsd.h" |
| 645 | # default x-alpha is only appropriate for dec-osf. |
| 646 | target_cpu_default="MASK_GAS" |
| 647 | tmake_file="alpha/t-alpha alpha/t-ieee" |
| 648 | ;; |
| 649 | alpha*-dec-osf[45]*) |
| 650 | if test x$stabs = xyes |
| 651 | then |
| 652 | tm_file="${tm_file} dbx.h" |
| 653 | fi |
| 654 | if test x$gas != xyes |
| 655 | then |
| 656 | extra_passes="mips-tfile mips-tdump" |
| 657 | fi |
| 658 | use_collect2=yes |
| 659 | tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4" |
| 660 | tm_file="${tm_file} alpha/osf.h" |
| 661 | extra_headers=va_list.h |
| 662 | case ${target} in |
| 663 | *-*-osf4*) |
| 664 | # Define TARGET_SUPPORT_ARCH except on 4.0a. |
| 665 | case ${target} in |
| 666 | *-*-osf4.0a) ;; |
| 667 | *) tm_defines="${tm_defines} TARGET_SUPPORT_ARCH=1" |
| 668 | esac |
| 669 | ;; |
| 670 | *-*-osf5*) |
| 671 | tm_file="${tm_file} alpha/osf5.h" |
| 672 | tm_defines="${tm_defines} TARGET_SUPPORT_ARCH=1" |
| 673 | ;; |
| 674 | esac |
| 675 | case ${enable_threads} in |
| 676 | "" | yes | posix) |
| 677 | thread_file='posix' |
| 678 | tmake_file="${tmake_file} alpha/t-osf-pthread" |
| 679 | ;; |
| 680 | esac |
| 681 | ;; |
| 682 | alpha64-dec-*vms*) |
| 683 | tm_file="${tm_file} alpha/vms.h alpha/vms64.h" |
| 684 | xm_file="alpha/xm-vms.h" |
| 685 | tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee" |
| 686 | prefix=/gnu |
| 687 | local_prefix=/gnu |
| 688 | ;; |
| 689 | alpha*-dec-*vms*) |
| 690 | tm_file="${tm_file} alpha/vms.h" |
| 691 | xm_file=alpha/xm-vms.h |
| 692 | tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee" |
| 693 | prefix=/gnu |
| 694 | local_prefix=/gnu |
| 695 | ;; |
| 696 | arc-*-elf*) |
| 697 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
| 698 | extra_parts="crtinit.o crtfini.o" |
| 699 | ;; |
| 700 | arm-*-coff* | armel-*-coff*) |
| 701 | tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h" |
| 702 | tmake_file="arm/t-arm arm/t-arm-coff" |
| 703 | ;; |
| 704 | arm-wrs-vxworks) |
| 705 | tm_file="elfos.h arm/elf.h arm/aout.h ${tm_file} vx-common.h vxworks.h arm/vxworks.h" |
| 706 | tmake_file="${tmake_file} arm/t-arm arm/t-vxworks" |
| 707 | ;; |
| 708 | arm*-*-freebsd*) |
| 709 | tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h" |
| 710 | tmake_file="${tmake_file} arm/t-arm arm/t-strongarm-elf" |
| 711 | ;; |
| 712 | arm*-*-netbsdelf*) |
| 713 | tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h" |
| 714 | tmake_file="${tmake_file} arm/t-arm arm/t-netbsd" |
| 715 | ;; |
| 716 | arm*-*-netbsd*) |
| 717 | tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h" |
| 718 | tmake_file="t-netbsd arm/t-arm arm/t-netbsd" |
| 719 | extra_parts="" |
| 720 | use_collect2=yes |
| 721 | ;; |
| 722 | arm*-*-linux*) # ARM GNU/Linux with ELF |
| 723 | tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" |
| 724 | case $target in |
| 725 | arm*b-*) |
| 726 | tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" |
| 727 | ;; |
| 728 | esac |
| 729 | tmake_file="${tmake_file} t-linux arm/t-arm" |
| 730 | case ${target} in |
| 731 | arm*-*-linux-*eabi) |
| 732 | tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h" |
| 733 | tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc" |
| 734 | # The BPABI long long divmod functions return a 128-bit value in |
| 735 | # registers r0-r3. Correctly modeling that requires the use of |
| 736 | # TImode. |
| 737 | need_64bit_hwint=yes |
| 738 | # The EABI requires the use of __cxa_atexit. |
| 739 | default_use_cxa_atexit=yes |
| 740 | ;; |
| 741 | *) |
| 742 | tmake_file="$tmake_file arm/t-linux" |
| 743 | ;; |
| 744 | esac |
| 745 | tm_file="$tm_file arm/aout.h arm/arm.h" |
| 746 | tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp" |
| 747 | ;; |
| 748 | arm*-*-uclinux*) # ARM ucLinux |
| 749 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/uclinux-elf.h" |
| 750 | tmake_file="arm/t-arm arm/t-arm-elf" |
| 751 | case ${target} in |
| 752 | arm*-*-uclinux*eabi) |
| 753 | tm_file="$tm_file arm/bpabi.h arm/uclinux-eabi.h" |
| 754 | tmake_file="$tmake_file arm/t-bpabi" |
| 755 | # The BPABI long long divmod functions return a 128-bit value in |
| 756 | # registers r0-r3. Correctly modeling that requires the use of |
| 757 | # TImode. |
| 758 | need_64bit_hwint=yes |
| 759 | # The EABI requires the use of __cxa_atexit. |
| 760 | default_use_cxa_atexit=yes |
| 761 | esac |
| 762 | tm_file="$tm_file arm/aout.h arm/arm.h" |
| 763 | tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp" |
| 764 | ;; |
| 765 | arm*-*-ecos-elf) |
| 766 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h" |
| 767 | tmake_file="arm/t-arm arm/t-arm-elf" |
| 768 | tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp" |
| 769 | ;; |
| 770 | arm*-*-eabi* | arm*-*-symbianelf* ) |
| 771 | # The BPABI long long divmod functions return a 128-bit value in |
| 772 | # registers r0-r3. Correctly modeling that requires the use of |
| 773 | # TImode. |
| 774 | need_64bit_hwint=yes |
| 775 | default_use_cxa_atexit=yes |
| 776 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h" |
| 777 | tmake_file="arm/t-arm arm/t-arm-elf" |
| 778 | case ${target} in |
| 779 | arm*-*-eabi*) |
| 780 | tm_file="$tm_file arm/eabi.h" |
| 781 | tmake_file="${tmake_file} arm/t-bpabi" |
| 782 | extra_options="${extra_options} arm/eabi.opt" |
| 783 | ;; |
| 784 | arm*-*-symbianelf*) |
| 785 | tm_file="${tm_file} arm/symbian.h" |
| 786 | # We do not include t-bpabi for Symbian OS because the system |
| 787 | # provides its own implementation of the BPABI functions. |
| 788 | tmake_file="${tmake_file} arm/t-symbian" |
| 789 | ;; |
| 790 | esac |
| 791 | tm_file="${tm_file} arm/aout.h arm/arm.h" |
| 792 | tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp" |
| 793 | ;; |
| 794 | arm*-*-rtems*) |
| 795 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/rtems-elf.h rtems.h" |
| 796 | tmake_file="arm/t-arm arm/t-arm-elf t-rtems arm/t-rtems" |
| 797 | tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp" |
| 798 | ;; |
| 799 | arm*-*-elf) |
| 800 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h" |
| 801 | tmake_file="arm/t-arm arm/t-arm-elf" |
| 802 | tmake_file="${tmake_file} arm/t-arm-softfp soft-fp/t-softfp" |
| 803 | ;; |
| 804 | arm*-wince-pe*) |
| 805 | tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h arm/wince-pe.h" |
| 806 | tmake_file="arm/t-arm arm/t-wince-pe" |
| 807 | extra_options="${extra_options} arm/pe.opt" |
| 808 | extra_objs="pe.o" |
| 809 | ;; |
| 810 | arm-*-pe*) |
| 811 | tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h" |
| 812 | tmake_file="arm/t-arm arm/t-pe" |
| 813 | extra_options="${extra_options} arm/pe.opt" |
| 814 | extra_objs="pe.o" |
| 815 | ;; |
| 816 | avr-*-rtems*) |
| 817 | tm_file="avr/avr.h dbxelf.h avr/rtems.h rtems.h" |
| 818 | tmake_file="avr/t-avr t-rtems avr/t-rtems" |
| 819 | ;; |
| 820 | avr-*-*) |
| 821 | tm_file="avr/avr.h dbxelf.h" |
| 822 | ;; |
| 823 | bfin*-elf*) |
| 824 | tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h" |
| 825 | tmake_file=bfin/t-bfin-elf |
| 826 | use_collect2=no |
| 827 | ;; |
| 828 | bfin*-uclinux*) |
| 829 | tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h linux.h bfin/uclinux.h" |
| 830 | tmake_file=bfin/t-bfin-uclinux |
| 831 | tm_defines="${tm_defines} UCLIBC_DEFAULT=1" |
| 832 | extra_options="${extra_options} linux.opt" |
| 833 | use_collect2=no |
| 834 | ;; |
| 835 | bfin*-linux-uclibc*) |
| 836 | tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h linux.h bfin/linux.h ./linux-sysroot-suffix.h" |
| 837 | tmake_file="t-slibgcc-elf-ver bfin/t-bfin-linux" |
| 838 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
| 839 | use_collect2=no |
| 840 | ;; |
| 841 | bfin*-rtems*) |
| 842 | tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/rtems.h rtems.h" |
| 843 | tmake_file="bfin/t-bfin t-rtems bfin/t-rtems" |
| 844 | ;; |
| 845 | bfin*-*) |
| 846 | tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h" |
| 847 | tmake_file=bfin/t-bfin |
| 848 | use_collect2=no |
| 849 | ;; |
| 850 | crisv32-*-elf | crisv32-*-none) |
| 851 | tm_file="dbxelf.h elfos.h ${tm_file}" |
| 852 | tmake_file="cris/t-cris" |
| 853 | target_cpu_default=32 |
| 854 | gas=yes |
| 855 | extra_options="${extra_options} cris/elf.opt" |
| 856 | ;; |
| 857 | cris-*-elf | cris-*-none) |
| 858 | tm_file="dbxelf.h elfos.h ${tm_file}" |
| 859 | tmake_file="cris/t-cris cris/t-elfmulti" |
| 860 | gas=yes |
| 861 | extra_options="${extra_options} cris/elf.opt" |
| 862 | ;; |
| 863 | crisv32-*-linux* | cris-*-linux*) |
| 864 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h" |
| 865 | # We need to avoid using t-linux, so override default tmake_file |
| 866 | tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux" |
| 867 | extra_options="${extra_options} cris/linux.opt" |
| 868 | case $target in |
| 869 | cris-*-*) |
| 870 | target_cpu_default=10 |
| 871 | ;; |
| 872 | crisv32-*-*) |
| 873 | target_cpu_default=32 |
| 874 | ;; |
| 875 | esac |
| 876 | ;; |
| 877 | crx-*-elf) |
| 878 | tm_file="elfos.h ${tm_file}" |
| 879 | extra_parts="crtbegin.o crtend.o" |
| 880 | use_collect2=no |
| 881 | ;; |
| 882 | fr30-*-elf) |
| 883 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
| 884 | tmake_file=fr30/t-fr30 |
| 885 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
| 886 | ;; |
| 887 | frv-*-elf) |
| 888 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file} frv/frv-abi.h" |
| 889 | tmake_file=frv/t-frv |
| 890 | ;; |
| 891 | frv-*-*linux*) |
| 892 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file} \ |
| 893 | linux.h frv/linux.h frv/frv-abi.h" |
| 894 | tmake_file="${tmake_file} frv/t-frv frv/t-linux" |
| 895 | ;; |
| 896 | h8300-*-rtems*) |
| 897 | tmake_file="h8300/t-h8300 h8300/t-elf t-rtems h8300/t-rtems" |
| 898 | tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h h8300/rtems.h rtems.h" |
| 899 | ;; |
| 900 | h8300-*-elf*) |
| 901 | tmake_file="h8300/t-h8300 h8300/t-elf" |
| 902 | tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h" |
| 903 | ;; |
| 904 | h8300-*-*) |
| 905 | tm_file="h8300/h8300.h dbxcoff.h h8300/coff.h" |
| 906 | ;; |
| 907 | hppa*64*-*-linux*) |
| 908 | target_cpu_default="MASK_PA_11|MASK_PA_20" |
| 909 | tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \ |
| 910 | pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h" |
| 911 | tmake_file="${tmake_file} pa/t-linux64" |
| 912 | gas=yes gnu_ld=yes |
| 913 | need_64bit_hwint=yes |
| 914 | ;; |
| 915 | hppa*-*-linux*) |
| 916 | target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS" |
| 917 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \ |
| 918 | pa/pa32-regs.h pa/pa32-linux.h" |
| 919 | tmake_file="${tmake_file} pa/t-linux" |
| 920 | # Set the libgcc version number |
| 921 | if test x$sjlj = x1; then |
| 922 | tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" |
| 923 | else |
| 924 | tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" |
| 925 | fi |
| 926 | ;; |
| 927 | # port not yet contributed. |
| 928 | #hppa*-*-openbsd*) |
| 929 | # target_cpu_default="MASK_PA_11" |
| 930 | # ;; |
| 931 | hppa[12]*-*-hpux10*) |
| 932 | case ${target} in |
| 933 | hppa1.1-*-* | hppa2*-*-*) |
| 934 | target_cpu_default="MASK_PA_11" |
| 935 | ;; |
| 936 | esac |
| 937 | tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \ |
| 938 | pa/pa-hpux.h pa/pa-hpux10.h" |
| 939 | extra_options="${extra_options} pa/pa-hpux.opt" |
| 940 | case ${target} in |
| 941 | *-*-hpux10.[1-9]*) |
| 942 | tm_file="${tm_file} pa/pa-hpux1010.h" |
| 943 | extra_options="${extra_options} pa/pa-hpux1010.opt" |
| 944 | ;; |
| 945 | esac |
| 946 | tmake_file="pa/t-pa-hpux10 pa/t-pa-hpux pa/t-hpux-shlib" |
| 947 | case ${enable_threads} in |
| 948 | "") |
| 949 | if test x$have_pthread_h = xyes ; then |
| 950 | tmake_file="${tmake_file} pa/t-dce-thr" |
| 951 | fi |
| 952 | ;; |
| 953 | yes | dce) |
| 954 | tmake_file="${tmake_file} pa/t-dce-thr" |
| 955 | ;; |
| 956 | esac |
| 957 | # Set the libgcc version number |
| 958 | if test x$sjlj = x1; then |
| 959 | tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" |
| 960 | else |
| 961 | tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" |
| 962 | fi |
| 963 | use_collect2=yes |
| 964 | gas=yes |
| 965 | ;; |
| 966 | hppa*64*-*-hpux11*) |
| 967 | target_cpu_default="MASK_PA_11|MASK_PA_20" |
| 968 | if test x$gnu_ld = xyes |
| 969 | then |
| 970 | target_cpu_default="${target_cpu_default}|MASK_GNU_LD" |
| 971 | fi |
| 972 | tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \ |
| 973 | pa/pa64-regs.h pa/pa-hpux.h pa/pa-hpux1010.h \ |
| 974 | pa/pa-hpux11.h" |
| 975 | case ${target} in |
| 976 | *-*-hpux11.[1-9]*) |
| 977 | tm_file="${tm_file} pa/pa-hpux1111.h pa/pa-64.h pa/pa64-hpux.h" |
| 978 | extra_options="${extra_options} pa/pa-hpux1111.opt" |
| 979 | ;; |
| 980 | *) |
| 981 | tm_file="${tm_file} pa/pa-64.h pa/pa64-hpux.h" |
| 982 | ;; |
| 983 | esac |
| 984 | extra_options="${extra_options} pa/pa-hpux.opt \ |
| 985 | pa/pa-hpux1010.opt pa/pa64-hpux.opt" |
| 986 | need_64bit_hwint=yes |
| 987 | tmake_file="pa/t-pa64 pa/t-pa-hpux pa/t-hpux-shlib" |
| 988 | # Set the libgcc version number |
| 989 | if test x$sjlj = x1; then |
| 990 | tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" |
| 991 | else |
| 992 | tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" |
| 993 | fi |
| 994 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \ |
| 995 | libgcc_stub.a" |
| 996 | case x${enable_threads} in |
| 997 | x | xyes | xposix ) |
| 998 | thread_file=posix |
| 999 | ;; |
| 1000 | esac |
| 1001 | gas=yes |
| 1002 | ;; |
| 1003 | hppa[12]*-*-hpux11*) |
| 1004 | case ${target} in |
| 1005 | hppa1.1-*-* | hppa2*-*-*) |
| 1006 | target_cpu_default="MASK_PA_11" |
| 1007 | ;; |
| 1008 | esac |
| 1009 | tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \ |
| 1010 | pa/pa-hpux.h pa/pa-hpux1010.h pa/pa-hpux11.h" |
| 1011 | extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux1010.opt" |
| 1012 | case ${target} in |
| 1013 | *-*-hpux11.[1-9]*) |
| 1014 | tm_file="${tm_file} pa/pa-hpux1111.h" |
| 1015 | extra_options="${extra_options} pa/pa-hpux1111.opt" |
| 1016 | ;; |
| 1017 | esac |
| 1018 | tmake_file="pa/t-pa-hpux11 pa/t-pa-hpux pa/t-hpux-shlib" |
| 1019 | # Set the libgcc version number |
| 1020 | if test x$sjlj = x1; then |
| 1021 | tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver" |
| 1022 | else |
| 1023 | tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver" |
| 1024 | fi |
| 1025 | case x${enable_threads} in |
| 1026 | x | xyes | xposix ) |
| 1027 | thread_file=posix |
| 1028 | ;; |
| 1029 | esac |
| 1030 | use_collect2=yes |
| 1031 | gas=yes |
| 1032 | ;; |
| 1033 | i[34567]86-*-darwin*) |
| 1034 | need_64bit_hwint=yes |
| 1035 | |
| 1036 | # This is so that '.../configure && make' doesn't fail due to |
| 1037 | # config.guess deciding that the configuration is i386-*-darwin* and |
| 1038 | # then this file using that to set --with-cpu=i386 which has no -m64 |
| 1039 | # support. |
| 1040 | with_cpu=${with_cpu:-generic} |
| 1041 | tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" |
| 1042 | ;; |
| 1043 | x86_64-*-darwin*) |
| 1044 | with_cpu=${with_cpu:-generic} |
| 1045 | tmake_file="${tmake_file} t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin i386/t-crtpc i386/t-crtfm" |
| 1046 | tm_file="${tm_file} ${cpu_type}/darwin64.h" |
| 1047 | ;; |
| 1048 | i[34567]86-*-elf*) |
| 1049 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h" |
| 1050 | tmake_file="${tmake_file} i386/t-i386elf t-svr4" |
| 1051 | ;; |
| 1052 | x86_64-*-elf*) |
| 1053 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/x86-64.h" |
| 1054 | tmake_file="${tmake_file} i386/t-i386elf t-svr4" |
| 1055 | ;; |
| 1056 | i[34567]86-*-aout*) |
| 1057 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h" |
| 1058 | ;; |
| 1059 | i[34567]86-*-freebsd*) |
| 1060 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h" |
| 1061 | ;; |
| 1062 | x86_64-*-freebsd*) |
| 1063 | 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" |
| 1064 | tmake_file="${tmake_file} i386/t-crtstuff" |
| 1065 | ;; |
| 1066 | i[34567]86-*-dragonfly*) |
| 1067 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h dragonfly.h i386/dragonfly.h" |
| 1068 | ;; |
| 1069 | x86_64-*-dragonfly*) |
| 1070 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h dragonfly.h i386/x86-64.h i386/dragonfly64.h" |
| 1071 | tmake_file="${tmake_file} i386/t-crtstuff" |
| 1072 | ;; |
| 1073 | i[34567]86-*-netbsdelf*) |
| 1074 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h" |
| 1075 | ;; |
| 1076 | i[34567]86-*-netbsd*) |
| 1077 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h" |
| 1078 | tmake_file="${tmake_file} t-netbsd" |
| 1079 | extra_parts="" |
| 1080 | use_collect2=yes |
| 1081 | ;; |
| 1082 | x86_64-*-netbsd*) |
| 1083 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h" |
| 1084 | tmake_file="${tmake_file} i386/t-crtstuff" |
| 1085 | ;; |
| 1086 | i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) |
| 1087 | 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" |
| 1088 | # needed to unconfuse gdb |
| 1089 | tmake_file="${tmake_file} t-libc-ok t-openbsd i386/t-openbsd" |
| 1090 | # we need collect2 until our bug is fixed... |
| 1091 | use_collect2=yes |
| 1092 | ;; |
| 1093 | i[34567]86-*-openbsd*) |
| 1094 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h" |
| 1095 | tm_file="${tm_file} openbsd.h i386/openbsdelf.h" |
| 1096 | gas=yes |
| 1097 | gnu_ld=yes |
| 1098 | ;; |
| 1099 | i[34567]86-*-coff*) |
| 1100 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h" |
| 1101 | ;; |
| 1102 | i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu) |
| 1103 | # Intel 80386's running GNU/* |
| 1104 | # with ELF format using glibc 2 |
| 1105 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h" |
| 1106 | case ${target} in |
| 1107 | i[34567]86-*-linux*) |
| 1108 | if test x$enable_targets = xall; then |
| 1109 | tm_file="${tm_file} i386/x86-64.h i386/linux64.h" |
| 1110 | tm_defines="${tm_defines} TARGET_BI_ARCH=1" |
| 1111 | tmake_file="${tmake_file} i386/t-linux64" |
| 1112 | need_64bit_hwint=yes |
| 1113 | case X"${with_cpu}" in |
| 1114 | Xgeneric|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) |
| 1115 | ;; |
| 1116 | X) |
| 1117 | if test x$with_cpu_64 = x; then |
| 1118 | with_cpu_64=generic |
| 1119 | fi |
| 1120 | ;; |
| 1121 | *) |
| 1122 | echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 |
| 1123 | echo "generic core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 |
| 1124 | exit 1 |
| 1125 | ;; |
| 1126 | esac |
| 1127 | else |
| 1128 | tm_file="${tm_file} i386/linux.h" |
| 1129 | fi |
| 1130 | ;; |
| 1131 | i[34567]86-*-knetbsd*-gnu) tm_file="${tm_file} i386/linux.h knetbsd-gnu.h i386/knetbsd-gnu.h" ;; |
| 1132 | i[34567]86-*-kfreebsd*-gnu) tm_file="${tm_file} i386/linux.h kfreebsd-gnu.h i386/kfreebsd-gnu.h" ;; |
| 1133 | i[34567]86-*-kopensolaris*-gnu) tm_file="${tm_file} i386/linux.h kopensolaris-gnu.h i386/kopensolaris-gnu.h" ;; |
| 1134 | i[34567]86-*-gnu*) tm_file="$tm_file i386/linux.h gnu.h i386/gnu.h";; |
| 1135 | esac |
| 1136 | tmake_file="${tmake_file} i386/t-crtstuff i386/t-crtpc i386/t-crtfm t-dfprules" |
| 1137 | ;; |
| 1138 | x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu) |
| 1139 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \ |
| 1140 | i386/x86-64.h i386/linux64.h" |
| 1141 | case ${target} in |
| 1142 | x86_64-*-kfreebsd*-gnu) tm_file="${tm_file} kfreebsd-gnu.h" ;; |
| 1143 | x86_64-*-knetbsd*-gnu) tm_file="${tm_file} knetbsd-gnu.h" ;; |
| 1144 | esac |
| 1145 | tmake_file="${tmake_file} i386/t-linux64 i386/t-crtstuff i386/t-crtpc i386/t-crtfm t-dfprules" |
| 1146 | ;; |
| 1147 | i[34567]86-pc-msdosdjgpp*) |
| 1148 | xm_file=i386/xm-djgpp.h |
| 1149 | tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h" |
| 1150 | tmake_file="${tmake_file} i386/t-djgpp" |
| 1151 | extra_options="${extra_options} i386/djgpp.opt" |
| 1152 | gnu_ld=yes |
| 1153 | gas=yes |
| 1154 | ;; |
| 1155 | i[34567]86-*-lynxos*) |
| 1156 | xm_defines=POSIX |
| 1157 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/lynx.h lynx.h" |
| 1158 | tmake_file="${tmake_file} i386/t-crtstuff t-lynx" |
| 1159 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
| 1160 | extra_options="${extra_options} lynx.opt" |
| 1161 | thread_file=lynx |
| 1162 | gnu_ld=yes |
| 1163 | gas=yes |
| 1164 | ;; |
| 1165 | i[3456x]86-*-netware*) |
| 1166 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h tm-dwarf2.h i386/netware.h" |
| 1167 | tmake_file="${tmake_file} i386/t-netware" |
| 1168 | extra_objs=netware.o |
| 1169 | case /${with_ld} in |
| 1170 | */nwld) |
| 1171 | extra_objs="$extra_objs nwld.o" |
| 1172 | tm_file="${tm_file} i386/nwld.h" |
| 1173 | tmake_file="${tmake_file} i386/t-nwld" |
| 1174 | extra_parts="crt0.o libgcc.def libc.def libcpre.def posixpre.def" |
| 1175 | ;; |
| 1176 | esac |
| 1177 | case x${enable_threads} in |
| 1178 | x | xyes | xposix) thread_file='posix';; |
| 1179 | xnks) thread_file='nks';; |
| 1180 | xno) ;; |
| 1181 | *) echo 'Unknown thread configuration for NetWare' >&2; exit 1;; |
| 1182 | esac |
| 1183 | ;; |
| 1184 | i[34567]86-*-nto-qnx*) |
| 1185 | tm_file="${tm_file} i386/att.h dbxelf.h tm-dwarf2.h elfos.h svr4.h i386/unix.h i386/nto.h" |
| 1186 | tmake_file="${tmake_file} i386/t-nto" |
| 1187 | gnu_ld=yes |
| 1188 | gas=yes |
| 1189 | ;; |
| 1190 | i[34567]86-*-rtems*) |
| 1191 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h" |
| 1192 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
| 1193 | tmake_file="${tmake_file} i386/t-rtems-i386 i386/t-crtstuff t-rtems" |
| 1194 | ;; |
| 1195 | i[34567]86-*-solaris2*) |
| 1196 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h" |
| 1197 | case ${target} in |
| 1198 | *-*-solaris2.1[0-9]*) |
| 1199 | tm_file="${tm_file} sol2-10.h" |
| 1200 | ;; |
| 1201 | esac |
| 1202 | tm_file="${tm_file} i386/sol2.h" |
| 1203 | if test x$gnu_ld = xyes; then |
| 1204 | tm_file="${tm_file} sol2-gld.h" |
| 1205 | fi |
| 1206 | if test x$gas = xyes; then |
| 1207 | tm_file="${tm_file} i386/sol2-gas.h" |
| 1208 | fi |
| 1209 | tmake_file="${tmake_file} t-sol2 t-svr4" |
| 1210 | c_target_objs="${c_target_objs} sol2-c.o" |
| 1211 | cxx_target_objs="${cxx_target_objs} sol2-c.o" |
| 1212 | extra_objs="sol2.o" |
| 1213 | tm_p_file="${tm_p_file} sol2-protos.h" |
| 1214 | if test x$gnu_ld = xyes; then |
| 1215 | tmake_file="$tmake_file t-slibgcc-elf-ver" |
| 1216 | tm_defines="${tm_defines} TARGET_GNU_LD=1" |
| 1217 | else |
| 1218 | tmake_file="$tmake_file t-slibgcc-sld" |
| 1219 | fi |
| 1220 | if test x$gas = xyes; then |
| 1221 | tm_file="usegas.h ${tm_file}" |
| 1222 | fi |
| 1223 | tm_file="$tm_file tm-dwarf2.h" |
| 1224 | case ${target} in |
| 1225 | *-*-solaris2.1[0-9]*) |
| 1226 | tm_file="${tm_file} i386/x86-64.h i386/sol2-10.h" |
| 1227 | tm_defines="${tm_defines} TARGET_BI_ARCH=1" |
| 1228 | tmake_file="$tmake_file i386/t-sol2-10" |
| 1229 | # i386/t-crtstuff only affects libgcc. Its inclusion |
| 1230 | # depends on a runtime test and is thus performed in |
| 1231 | # libgcc/configure.ac instead. |
| 1232 | need_64bit_hwint=yes |
| 1233 | case X"${with_cpu}" in |
| 1234 | Xgeneric|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) |
| 1235 | ;; |
| 1236 | X) |
| 1237 | if test x$with_cpu_64 = x; then |
| 1238 | with_cpu_64=generic |
| 1239 | fi |
| 1240 | ;; |
| 1241 | *) |
| 1242 | echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 |
| 1243 | echo "generic core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 |
| 1244 | exit 1 |
| 1245 | ;; |
| 1246 | esac |
| 1247 | ;; |
| 1248 | esac |
| 1249 | case ${enable_threads}:${have_pthread_h}:${have_thread_h} in |
| 1250 | "":yes:* | yes:yes:* ) |
| 1251 | thread_file=posix |
| 1252 | ;; |
| 1253 | "":*:yes | yes:*:yes ) |
| 1254 | thread_file=solaris |
| 1255 | ;; |
| 1256 | esac |
| 1257 | ;; |
| 1258 | i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae) |
| 1259 | tm_file="${tm_file} i386/unix.h i386/att.h elfos.h svr4.h vx-common.h" |
| 1260 | case ${target} in |
| 1261 | *-vxworksae*) |
| 1262 | tm_file="${tm_file} vxworksae.h i386/vx-common.h i386/vxworksae.h" |
| 1263 | tmake_file="${tmake_file} i386/t-vxworks i386/t-vxworksae" |
| 1264 | ;; |
| 1265 | *) |
| 1266 | tm_file="${tm_file} vxworks.h i386/vx-common.h i386/vxworks.h" |
| 1267 | tmake_file="${tmake_file} i386/t-vxworks" |
| 1268 | ;; |
| 1269 | esac |
| 1270 | ;; |
| 1271 | i[34567]86-*-pe | i[34567]86-*-cygwin*) |
| 1272 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h" |
| 1273 | xm_file=i386/xm-cygwin.h |
| 1274 | # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h |
| 1275 | if test x$sjlj = x0; then |
| 1276 | tmake_eh_file="i386/t-dw2-eh" |
| 1277 | else |
| 1278 | tmake_eh_file="i386/t-sjlj-eh" |
| 1279 | fi |
| 1280 | tmake_file="${tmake_file} ${tmake_eh_file} i386/t-cygming i386/t-cygwin" |
| 1281 | target_gtfiles="\$(srcdir)/config/i386/winnt.c" |
| 1282 | extra_options="${extra_options} i386/cygming.opt" |
| 1283 | extra_objs="winnt.o winnt-stubs.o" |
| 1284 | c_target_objs="${c_target_objs} cygwin2.o msformat-c.o" |
| 1285 | cxx_target_objs="${cxx_target_objs} cygwin2.o winnt-cxx.o msformat-c.o" |
| 1286 | extra_gcc_objs=cygwin1.o |
| 1287 | if test x$enable_threads = xyes; then |
| 1288 | thread_file='posix' |
| 1289 | fi |
| 1290 | ;; |
| 1291 | i[34567]86-*-mingw* | x86_64-*-mingw*) |
| 1292 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h" |
| 1293 | xm_file=i386/xm-mingw32.h |
| 1294 | case ${target} in |
| 1295 | x86_64-*-*) |
| 1296 | need_64bit_hwint=yes |
| 1297 | ;; |
| 1298 | *) |
| 1299 | ;; |
| 1300 | esac |
| 1301 | # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h |
| 1302 | if test x$sjlj = x0; then |
| 1303 | tmake_eh_file="i386/t-dw2-eh" |
| 1304 | else |
| 1305 | tmake_eh_file="i386/t-sjlj-eh" |
| 1306 | fi |
| 1307 | tmake_file="${tmake_file} ${tmake_eh_file} i386/t-cygming i386/t-mingw32" |
| 1308 | target_gtfiles="\$(srcdir)/config/i386/winnt.c" |
| 1309 | extra_options="${extra_options} i386/cygming.opt i386/mingw.opt" |
| 1310 | extra_objs="winnt.o winnt-stubs.o" |
| 1311 | c_target_objs="${c_target_objs} msformat-c.o" |
| 1312 | cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" |
| 1313 | default_use_cxa_atexit=yes |
| 1314 | case ${enable_threads} in |
| 1315 | "" | yes | win32) |
| 1316 | thread_file='win32' |
| 1317 | tmake_file="${tmake_file} i386/t-gthr-win32" |
| 1318 | ;; |
| 1319 | esac |
| 1320 | case ${target} in |
| 1321 | x86_64-*-mingw*) |
| 1322 | tmake_file="${tmake_file} i386/t-crtfm" |
| 1323 | ;; |
| 1324 | *) |
| 1325 | ;; |
| 1326 | esac |
| 1327 | case ${target} in |
| 1328 | *mingw32crt*) |
| 1329 | tm_file="${tm_file} i386/crtdll.h" |
| 1330 | ;; |
| 1331 | *mingw32msv* | *mingw*) |
| 1332 | ;; |
| 1333 | esac |
| 1334 | ;; |
| 1335 | i[34567]86-*-interix3*) |
| 1336 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h i386/i386-interix3.h interix.h interix3.h" |
| 1337 | tmake_file="${tmake_file} i386/t-interix" |
| 1338 | extra_objs=winnt.o |
| 1339 | target_gtfiles="\$(srcdir)/config/i386/winnt.c" |
| 1340 | if test x$enable_threads = xyes ; then |
| 1341 | thread_file='posix' |
| 1342 | fi |
| 1343 | if test x$stabs = xyes ; then |
| 1344 | tm_file="${tm_file} dbxcoff.h" |
| 1345 | fi |
| 1346 | ;; |
| 1347 | ia64*-*-elf*) |
| 1348 | tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h" |
| 1349 | tmake_file="ia64/t-ia64" |
| 1350 | target_cpu_default="0" |
| 1351 | if test x$gas = xyes |
| 1352 | then |
| 1353 | target_cpu_default="${target_cpu_default}|MASK_GNU_AS" |
| 1354 | fi |
| 1355 | if test x$gnu_ld = xyes |
| 1356 | then |
| 1357 | target_cpu_default="${target_cpu_default}|MASK_GNU_LD" |
| 1358 | fi |
| 1359 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" |
| 1360 | ;; |
| 1361 | ia64*-*-freebsd*) |
| 1362 | tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h" |
| 1363 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" |
| 1364 | tmake_file="${tmake_file} ia64/t-ia64" |
| 1365 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" |
| 1366 | ;; |
| 1367 | ia64*-*-linux*) |
| 1368 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h" |
| 1369 | tmake_file="${tmake_file} ia64/t-ia64 t-libunwind ia64/t-glibc" |
| 1370 | if test x$with_system_libunwind != xyes ; then |
| 1371 | tmake_file="${tmake_file} t-libunwind-elf ia64/t-glibc-libunwind" |
| 1372 | fi |
| 1373 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" |
| 1374 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" |
| 1375 | ;; |
| 1376 | ia64*-*-hpux*) |
| 1377 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h" |
| 1378 | tmake_file="ia64/t-ia64 ia64/t-hpux" |
| 1379 | target_cpu_default="MASK_GNU_AS" |
| 1380 | case x$enable_threads in |
| 1381 | x | xyes | xposix ) |
| 1382 | thread_file=posix |
| 1383 | ;; |
| 1384 | esac |
| 1385 | use_collect2=no |
| 1386 | c_target_objs="ia64-c.o" |
| 1387 | cxx_target_objs="ia64-c.o" |
| 1388 | extra_options="${extra_options} ia64/ilp32.opt" |
| 1389 | ;; |
| 1390 | iq2000*-*-elf*) |
| 1391 | tm_file="svr4.h elfos.h iq2000/iq2000.h" |
| 1392 | tmake_file=iq2000/t-iq2000 |
| 1393 | out_file=iq2000/iq2000.c |
| 1394 | md_file=iq2000/iq2000.md |
| 1395 | ;; |
| 1396 | m32r-*-elf*) |
| 1397 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
| 1398 | extra_parts="crtinit.o crtfini.o" |
| 1399 | ;; |
| 1400 | m32rle-*-elf*) |
| 1401 | tm_file="dbxelf.h elfos.h svr4.h m32r/little.h ${tm_file}" |
| 1402 | extra_parts="crtinit.o crtfini.o m32rx/crtinit.o m32rx/crtfini.o" |
| 1403 | ;; |
| 1404 | m32r-*-rtems*) |
| 1405 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file} m32r/rtems.h rtems.h" |
| 1406 | tmake_file="m32r/t-m32r t-rtems" |
| 1407 | extra_parts="crtinit.o crtfini.o" |
| 1408 | ;; |
| 1409 | m32r-*-linux*) |
| 1410 | tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} m32r/linux.h" |
| 1411 | # We override the tmake_file for linux -- why? |
| 1412 | tmake_file="t-slibgcc-elf-ver m32r/t-linux" |
| 1413 | gnu_ld=yes |
| 1414 | if test x$enable_threads = xyes; then |
| 1415 | thread_file='posix' |
| 1416 | fi |
| 1417 | ;; |
| 1418 | m32rle-*-linux*) |
| 1419 | tm_file="dbxelf.h elfos.h svr4.h linux.h m32r/little.h ${tm_file} m32r/linux.h" |
| 1420 | # We override the tmake_file for linux -- why? |
| 1421 | tmake_file="t-slibgcc-elf-ver m32r/t-linux" |
| 1422 | gnu_ld=yes |
| 1423 | if test x$enable_threads = xyes; then |
| 1424 | thread_file='posix' |
| 1425 | fi |
| 1426 | ;; |
| 1427 | # m68hc11 and m68hc12 share the same machine description. |
| 1428 | m68hc11-*-*|m6811-*-*) |
| 1429 | tm_file="dbxelf.h elfos.h usegas.h m68hc11/m68hc11.h" |
| 1430 | tm_p_file="m68hc11/m68hc11-protos.h" |
| 1431 | md_file="m68hc11/m68hc11.md" |
| 1432 | out_file="m68hc11/m68hc11.c" |
| 1433 | tmake_file="m68hc11/t-m68hc11" |
| 1434 | ;; |
| 1435 | m68hc12-*-*|m6812-*-*) |
| 1436 | tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h usegas.h m68hc11/m68hc11.h" |
| 1437 | tm_p_file="m68hc11/m68hc11-protos.h" |
| 1438 | md_file="m68hc11/m68hc11.md" |
| 1439 | out_file="m68hc11/m68hc11.c" |
| 1440 | tmake_file="m68hc11/t-m68hc11" |
| 1441 | extra_options="${extra_options} m68hc11/m68hc11.opt" |
| 1442 | ;; |
| 1443 | m68k-*-aout*) |
| 1444 | default_m68k_cpu=68020 |
| 1445 | default_cf_cpu=5206 |
| 1446 | tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-mlibs" |
| 1447 | tm_file="${tm_file} m68k/m68k-none.h m68k/m68kemb.h m68k/m68k-aout.h libgloss.h" |
| 1448 | ;; |
| 1449 | m68k-*-coff*) |
| 1450 | default_m68k_cpu=68020 |
| 1451 | default_cf_cpu=5206 |
| 1452 | tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-mlibs" |
| 1453 | tm_defines="${tm_defines} MOTOROLA=1" |
| 1454 | tm_file="${tm_file} m68k/m68k-none.h m68k/m68kemb.h dbxcoff.h m68k/coff.h dbx.h" |
| 1455 | ;; |
| 1456 | m68k-*-elf* | fido-*-elf*) |
| 1457 | case ${target} in |
| 1458 | fido-*-elf*) |
| 1459 | # Check that $with_cpu makes sense. |
| 1460 | case $with_cpu in |
| 1461 | "" | "fidoa") |
| 1462 | ;; |
| 1463 | *) |
| 1464 | echo "Cannot accept --with-cpu=$with_cpu" |
| 1465 | exit 1 |
| 1466 | ;; |
| 1467 | esac |
| 1468 | with_cpu=fidoa |
| 1469 | ;; |
| 1470 | *) |
| 1471 | default_m68k_cpu=68020 |
| 1472 | default_cf_cpu=5206 |
| 1473 | ;; |
| 1474 | esac |
| 1475 | tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h" |
| 1476 | tm_defines="${tm_defines} MOTOROLA=1" |
| 1477 | tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-m68kelf" |
| 1478 | # Add multilibs for targets other than fido. |
| 1479 | case ${target} in |
| 1480 | fido-*-elf*) |
| 1481 | ;; |
| 1482 | *) |
| 1483 | tmake_file="$tmake_file m68k/t-mlibs" |
| 1484 | ;; |
| 1485 | esac |
| 1486 | extra_parts="crtbegin.o crtend.o" |
| 1487 | ;; |
| 1488 | m68k*-*-netbsdelf*) |
| 1489 | default_m68k_cpu=68020 |
| 1490 | default_cf_cpu=5475 |
| 1491 | tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h" |
| 1492 | tm_defines="${tm_defines} MOTOROLA=1" |
| 1493 | ;; |
| 1494 | m68k*-*-openbsd*) |
| 1495 | default_m68k_cpu=68020 |
| 1496 | default_cf_cpu=5475 |
| 1497 | # needed to unconfuse gdb |
| 1498 | tm_defines="${tm_defines} OBSD_OLD_GAS" |
| 1499 | tm_file="${tm_file} openbsd.h m68k/openbsd.h" |
| 1500 | tmake_file="t-libc-ok t-openbsd m68k/t-openbsd" |
| 1501 | # we need collect2 until our bug is fixed... |
| 1502 | use_collect2=yes |
| 1503 | ;; |
| 1504 | m68k-*-uclinuxoldabi*) # Motorola m68k/ColdFire running uClinux |
| 1505 | # with uClibc, using the original |
| 1506 | # m68k-elf-based ABI |
| 1507 | default_m68k_cpu=68020 |
| 1508 | default_cf_cpu=5206 |
| 1509 | tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/uclinux-oldabi.h" |
| 1510 | tm_defines="${tm_defines} MOTOROLA=1" |
| 1511 | tmake_file="m68k/t-floatlib m68k/t-uclinux" |
| 1512 | ;; |
| 1513 | m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux |
| 1514 | # with uClibc, using the new GNU/Linux-style |
| 1515 | # ABI. |
| 1516 | default_m68k_cpu=68020 |
| 1517 | default_cf_cpu=5206 |
| 1518 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h flat.h m68k/linux.h m68k/uclinux.h ./sysroot-suffix.h" |
| 1519 | tm_defines="${tm_defines} MOTOROLA=1 UCLIBC_DEFAULT=1" |
| 1520 | extra_options="${extra_options} linux.opt" |
| 1521 | tmake_file="m68k/t-floatlib m68k/t-uclinux m68k/t-mlibs" |
| 1522 | ;; |
| 1523 | m68k-*-linux*) # Motorola m68k's running GNU/Linux |
| 1524 | # with ELF format using glibc 2 |
| 1525 | # aka the GNU/Linux C library 6. |
| 1526 | default_m68k_cpu=68020 |
| 1527 | default_cf_cpu=5475 |
| 1528 | with_arch=${with_arch:-m68k} |
| 1529 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h m68k/linux.h ./sysroot-suffix.h" |
| 1530 | extra_options="${extra_options} m68k/ieee.opt" |
| 1531 | tm_defines="${tm_defines} MOTOROLA=1" |
| 1532 | tmake_file="${tmake_file} m68k/t-floatlib m68k/t-linux m68k/t-mlibs" |
| 1533 | # if not configured with --enable-sjlj-exceptions, bump the |
| 1534 | # libgcc version number |
| 1535 | if test x$sjlj != x1; then |
| 1536 | tmake_file="$tmake_file m68k/t-slibgcc-elf-ver" |
| 1537 | fi |
| 1538 | ;; |
| 1539 | m68k-*-rtems*) |
| 1540 | default_m68k_cpu=68020 |
| 1541 | default_cf_cpu=5206 |
| 1542 | tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-crtstuff t-rtems m68k/t-rtems m68k/t-mlibs" |
| 1543 | 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" |
| 1544 | tm_defines="${tm_defines} MOTOROLA=1" |
| 1545 | extra_parts="crtbegin.o crtend.o" |
| 1546 | ;; |
| 1547 | mcore-*-elf) |
| 1548 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h" |
| 1549 | tmake_file=mcore/t-mcore |
| 1550 | inhibit_libc=true |
| 1551 | ;; |
| 1552 | mcore-*-pe*) |
| 1553 | tm_file="svr3.h dbxcoff.h ${tm_file} mcore/mcore-pe.h" |
| 1554 | tmake_file=mcore/t-mcore-pe |
| 1555 | inhibit_libc=true |
| 1556 | ;; |
| 1557 | mips-sgi-irix[56]*) |
| 1558 | tm_file="elfos.h ${tm_file} mips/iris.h" |
| 1559 | tmake_file="mips/t-iris mips/t-slibgcc-irix" |
| 1560 | target_cpu_default="MASK_ABICALLS" |
| 1561 | case ${target} in |
| 1562 | *-*-irix5*) |
| 1563 | tm_file="${tm_file} mips/iris5.h" |
| 1564 | ;; |
| 1565 | |
| 1566 | *-*-irix6*) |
| 1567 | tm_file="${tm_file} mips/iris6.h" |
| 1568 | tmake_file="${tmake_file} mips/t-iris6" |
| 1569 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32" |
| 1570 | ;; |
| 1571 | esac |
| 1572 | if test "x$stabs" = xyes |
| 1573 | then |
| 1574 | tm_file="${tm_file} dbx.h mips/dbxmdebug.h" |
| 1575 | fi |
| 1576 | if test "x$gnu_ld" = xyes |
| 1577 | then |
| 1578 | tm_defines="${tm_defines} IRIX_USING_GNU_LD" |
| 1579 | fi |
| 1580 | case ${enable_threads}:${have_pthread_h} in |
| 1581 | "":yes | yes:yes ) thread_file=posix ;; |
| 1582 | esac |
| 1583 | ;; |
| 1584 | mips*-*-netbsd*) # NetBSD/mips, either endian. |
| 1585 | target_cpu_default="MASK_ABICALLS" |
| 1586 | tm_file="elfos.h ${tm_file} mips/elf.h netbsd.h netbsd-elf.h mips/netbsd.h" |
| 1587 | ;; |
| 1588 | mips64*-*-linux* | mipsisa64*-*-linux*) |
| 1589 | tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h mips/linux64.h" |
| 1590 | tmake_file="${tmake_file} mips/t-linux64 mips/t-libgcc-mips16" |
| 1591 | tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_N32" |
| 1592 | case ${target} in |
| 1593 | mips64el-st-linux-gnu) |
| 1594 | tm_file="${tm_file} mips/st.h" |
| 1595 | tmake_file="${tmake_file} mips/t-st" |
| 1596 | ;; |
| 1597 | mips64octeon*-*-linux*) |
| 1598 | tm_defines="${tm_defines} MIPS_CPU_STRING_DEFAULT=\\\"octeon\\\"" |
| 1599 | target_cpu_default=MASK_SOFT_FLOAT_ABI |
| 1600 | ;; |
| 1601 | mipsisa64r2*-*-linux*) |
| 1602 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65" |
| 1603 | ;; |
| 1604 | esac |
| 1605 | gnu_ld=yes |
| 1606 | gas=yes |
| 1607 | test x$with_llsc != x || with_llsc=yes |
| 1608 | ;; |
| 1609 | mips*-*-linux*) # Linux MIPS, either endian. |
| 1610 | tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h" |
| 1611 | tmake_file="${tmake_file} mips/t-libgcc-mips16" |
| 1612 | case ${target} in |
| 1613 | mipsisa32r2*) |
| 1614 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33" |
| 1615 | ;; |
| 1616 | mipsisa32*) |
| 1617 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32" |
| 1618 | esac |
| 1619 | test x$with_llsc != x || with_llsc=yes |
| 1620 | ;; |
| 1621 | mips*-*-openbsd*) |
| 1622 | tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_OBJECT OBSD_HAS_CORRECT_SPECS" |
| 1623 | target_cpu_default="MASK_ABICALLS" |
| 1624 | tm_file="mips/mips.h openbsd.h mips/openbsd.h mips/sdb.h" |
| 1625 | case ${target} in |
| 1626 | mips*el-*-openbsd*) |
| 1627 | tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=0";; |
| 1628 | *) tm_defines="${tm_defines} TARGET_ENDIAN_DEFAULT=MASK_BIG_ENDIAN";; |
| 1629 | esac |
| 1630 | ;; |
| 1631 | mips*-sde-elf*) |
| 1632 | tm_file="elfos.h ${tm_file} mips/elf.h mips/sde.h" |
| 1633 | tmake_file="mips/t-sde mips/t-libgcc-mips16" |
| 1634 | case "${with_newlib}" in |
| 1635 | yes) |
| 1636 | # newlib / libgloss. |
| 1637 | ;; |
| 1638 | *) |
| 1639 | # MIPS toolkit libraries. |
| 1640 | tm_file="$tm_file mips/sdemtk.h" |
| 1641 | tmake_file="$tmake_file mips/t-sdemtk" |
| 1642 | extra_options="$extra_options mips/sdemtk.opt" |
| 1643 | case ${enable_threads} in |
| 1644 | "" | yes | mipssde) |
| 1645 | thread_file='mipssde' |
| 1646 | ;; |
| 1647 | esac |
| 1648 | ;; |
| 1649 | esac |
| 1650 | case ${target} in |
| 1651 | mipsisa32r2*) |
| 1652 | tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32" |
| 1653 | ;; |
| 1654 | mipsisa32*) |
| 1655 | tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_32" |
| 1656 | ;; |
| 1657 | mipsisa64r2*) |
| 1658 | tm_defines="MIPS_ISA_DEFAULT=65 MIPS_ABI_DEFAULT=ABI_N32" |
| 1659 | ;; |
| 1660 | mipsisa64*) |
| 1661 | tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_N32" |
| 1662 | ;; |
| 1663 | esac |
| 1664 | ;; |
| 1665 | mipsisa32-*-elf* | mipsisa32el-*-elf* | \ |
| 1666 | mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \ |
| 1667 | mipsisa64-*-elf* | mipsisa64el-*-elf* | \ |
| 1668 | mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*) |
| 1669 | tm_file="elfos.h ${tm_file} mips/elf.h" |
| 1670 | tmake_file="mips/t-isa3264 mips/t-libgcc-mips16" |
| 1671 | case ${target} in |
| 1672 | mipsisa32r2*) |
| 1673 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33" |
| 1674 | ;; |
| 1675 | mipsisa32*) |
| 1676 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32" |
| 1677 | ;; |
| 1678 | mipsisa64r2*) |
| 1679 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65" |
| 1680 | ;; |
| 1681 | mipsisa64*) |
| 1682 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64" |
| 1683 | ;; |
| 1684 | esac |
| 1685 | case ${target} in |
| 1686 | mipsisa32*-*-elfoabi*) |
| 1687 | tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_32" |
| 1688 | tm_file="${tm_file} mips/elfoabi.h" |
| 1689 | ;; |
| 1690 | mipsisa64*-*-elfoabi*) |
| 1691 | tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_O64" |
| 1692 | tm_file="${tm_file} mips/elfoabi.h" |
| 1693 | ;; |
| 1694 | *-*-elf*) |
| 1695 | tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI" |
| 1696 | ;; |
| 1697 | esac |
| 1698 | ;; |
| 1699 | mipsisa64sr71k-*-elf*) |
| 1700 | tm_file="elfos.h ${tm_file} mips/elf.h" |
| 1701 | tmake_file=mips/t-sr71k |
| 1702 | target_cpu_default="MASK_64BIT|MASK_FLOAT64" |
| 1703 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI" |
| 1704 | ;; |
| 1705 | mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*) |
| 1706 | tm_file="elfos.h ${tm_file} mips/elf.h" |
| 1707 | tmake_file="mips/t-elf mips/t-libgcc-mips16 mips/t-sb1" |
| 1708 | target_cpu_default="MASK_64BIT|MASK_FLOAT64" |
| 1709 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64" |
| 1710 | ;; |
| 1711 | mips-*-elf* | mipsel-*-elf*) |
| 1712 | tm_file="elfos.h ${tm_file} mips/elf.h" |
| 1713 | tmake_file="mips/t-elf mips/t-libgcc-mips16" |
| 1714 | ;; |
| 1715 | mips64-*-elf* | mips64el-*-elf*) |
| 1716 | tm_file="elfos.h ${tm_file} mips/elf.h" |
| 1717 | tmake_file="mips/t-elf mips/t-libgcc-mips16" |
| 1718 | target_cpu_default="MASK_64BIT|MASK_FLOAT64" |
| 1719 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64" |
| 1720 | ;; |
| 1721 | mips64vr-*-elf* | mips64vrel-*-elf*) |
| 1722 | tm_file="elfos.h ${tm_file} mips/vr.h mips/elf.h" |
| 1723 | tmake_file=mips/t-vr |
| 1724 | ;; |
| 1725 | mips64orion-*-elf* | mips64orionel-*-elf*) |
| 1726 | tm_file="elfos.h ${tm_file} mips/elforion.h mips/elf.h" |
| 1727 | tmake_file="mips/t-elf mips/t-libgcc-mips16" |
| 1728 | target_cpu_default="MASK_64BIT|MASK_FLOAT64" |
| 1729 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64" |
| 1730 | ;; |
| 1731 | mips*-*-rtems*) |
| 1732 | tm_file="elfos.h ${tm_file} mips/elf.h mips/rtems.h rtems.h" |
| 1733 | tmake_file="mips/t-elf mips/t-libgcc-mips16 t-rtems mips/t-rtems" |
| 1734 | ;; |
| 1735 | mips-wrs-vxworks) |
| 1736 | tm_file="elfos.h ${tm_file} svr4.h mips/elf.h vx-common.h vxworks.h mips/vxworks.h" |
| 1737 | tmake_file="${tmake_file} mips/t-vxworks" |
| 1738 | ;; |
| 1739 | mipstx39-*-elf* | mipstx39el-*-elf*) |
| 1740 | tm_file="elfos.h ${tm_file} mips/r3900.h mips/elf.h" |
| 1741 | tmake_file="mips/t-r3900 mips/t-libgcc-mips16" |
| 1742 | ;; |
| 1743 | mmix-knuth-mmixware) |
| 1744 | need_64bit_hwint=yes |
| 1745 | ;; |
| 1746 | mn10300-*-*) |
| 1747 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
| 1748 | if test x$stabs = xyes |
| 1749 | then |
| 1750 | tm_file="${tm_file} dbx.h" |
| 1751 | fi |
| 1752 | use_collect2=no |
| 1753 | ;; |
| 1754 | pdp11-*-bsd) |
| 1755 | tm_file="${tm_file} pdp11/2bsd.h" |
| 1756 | use_fixproto=yes |
| 1757 | ;; |
| 1758 | pdp11-*-*) |
| 1759 | ;; |
| 1760 | picochip-*) |
| 1761 | # Nothing special |
| 1762 | ;; |
| 1763 | # port not yet contributed |
| 1764 | #powerpc-*-openbsd*) |
| 1765 | # tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-fprules-fpbit " |
| 1766 | # extra_headers= |
| 1767 | # ;; |
| 1768 | powerpc64-*-linux*) |
| 1769 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h" |
| 1770 | test x$with_cpu != x || cpu_is_64bit=yes |
| 1771 | test x$cpu_is_64bit != xyes || tm_file="${tm_file} rs6000/default64.h" |
| 1772 | tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h" |
| 1773 | if test x${enable_secureplt} = xyes; then |
| 1774 | tm_file="rs6000/secureplt.h ${tm_file}" |
| 1775 | fi |
| 1776 | extra_options="${extra_options} rs6000/sysv4.opt rs6000/linux64.opt" |
| 1777 | tmake_file="t-dfprules rs6000/t-fprules ${tmake_file} rs6000/t-ppccomm rs6000/t-linux64 rs6000/t-fprules-softfp soft-fp/t-softfp" |
| 1778 | ;; |
| 1779 | powerpc64-*-gnu*) |
| 1780 | tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux64.h rs6000/gnu.h" |
| 1781 | extra_options="${extra_options} rs6000/sysv4.opt rs6000/linux64.opt" |
| 1782 | tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-gnu rs6000/t-linux64 rs6000/t-fprules-softfp soft-fp/t-softfp" |
| 1783 | ;; |
| 1784 | powerpc-*-darwin*) |
| 1785 | extra_options="${extra_options} rs6000/darwin.opt" |
| 1786 | extra_parts="crt2.o" |
| 1787 | case ${target} in |
| 1788 | *-darwin1[0-9]* | *-darwin[8-9]*) |
| 1789 | tmake_file="${tmake_file} rs6000/t-darwin8" |
| 1790 | tm_file="${tm_file} rs6000/darwin8.h" |
| 1791 | ;; |
| 1792 | *-darwin7*) |
| 1793 | tm_file="${tm_file} rs6000/darwin7.h" |
| 1794 | ;; |
| 1795 | *-darwin[0-6]*) |
| 1796 | ;; |
| 1797 | esac |
| 1798 | extra_headers=altivec.h |
| 1799 | ;; |
| 1800 | powerpc64-*-darwin*) |
| 1801 | tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h" |
| 1802 | extra_options="${extra_options} ${cpu_type}/darwin.opt" |
| 1803 | # We're omitting t-darwin8 to avoid building any multilibs |
| 1804 | extra_headers=altivec.h |
| 1805 | ;; |
| 1806 | powerpc*-*-freebsd*) |
| 1807 | tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h" |
| 1808 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" |
| 1809 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1810 | ;; |
| 1811 | powerpc-*-netbsd*) |
| 1812 | tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h" |
| 1813 | tmake_file="${tmake_file} rs6000/t-netbsd" |
| 1814 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1815 | ;; |
| 1816 | powerpc-*-eabispe*) |
| 1817 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabispe.h" |
| 1818 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1819 | tmake_file="rs6000/t-spe rs6000/t-ppccomm" |
| 1820 | ;; |
| 1821 | powerpc-*-eabisimaltivec*) |
| 1822 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h rs6000/eabialtivec.h" |
| 1823 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1824 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcendian rs6000/t-ppccomm" |
| 1825 | ;; |
| 1826 | powerpc-*-eabisim*) |
| 1827 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h" |
| 1828 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1829 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm" |
| 1830 | ;; |
| 1831 | powerpc-*-elf*) |
| 1832 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h rs6000/sysv4.h" |
| 1833 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1834 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm" |
| 1835 | ;; |
| 1836 | powerpc-*-eabialtivec*) |
| 1837 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabialtivec.h" |
| 1838 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1839 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcendian rs6000/t-ppccomm" |
| 1840 | ;; |
| 1841 | powerpc-xilinx-eabi*) |
| 1842 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/singlefp.h" |
| 1843 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1844 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm" |
| 1845 | ;; |
| 1846 | powerpc-*-eabi*) |
| 1847 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h" |
| 1848 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1849 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm" |
| 1850 | ;; |
| 1851 | powerpc-*-rtems*) |
| 1852 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/rtems.h rtems.h" |
| 1853 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1854 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-rtems t-rtems rs6000/t-ppccomm" |
| 1855 | ;; |
| 1856 | powerpc-*-linux*altivec*) |
| 1857 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h" |
| 1858 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1859 | tmake_file="rs6000/t-fprules rs6000/t-fprules-softfp soft-fp/t-softfp rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" |
| 1860 | ;; |
| 1861 | powerpc-*-linux*spe*) |
| 1862 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h rs6000/e500.h" |
| 1863 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1864 | tmake_file="t-dfprules rs6000/t-fprules rs6000/t-fprules-softfp soft-fp/t-softfp rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" |
| 1865 | ;; |
| 1866 | powerpc-*-linux*paired*) |
| 1867 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/750cl.h" |
| 1868 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1869 | tmake_file="rs6000/t-fprules rs6000/t-fprules-softfp soft-fp/t-softfp rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" |
| 1870 | ;; |
| 1871 | powerpc-*-linux*) |
| 1872 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h" |
| 1873 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1874 | tmake_file="t-dfprules rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" |
| 1875 | case ${enable_targets}:${cpu_is_64bit} in |
| 1876 | *powerpc64* | all:* | *:yes) |
| 1877 | if test x$cpu_is_64bit = xyes; then |
| 1878 | tm_file="${tm_file} rs6000/default64.h" |
| 1879 | fi |
| 1880 | tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h" |
| 1881 | tmake_file="$tmake_file rs6000/t-linux64" |
| 1882 | extra_options="${extra_options} rs6000/linux64.opt" |
| 1883 | ;; |
| 1884 | *) |
| 1885 | tm_file="${tm_file} rs6000/linux.h" |
| 1886 | ;; |
| 1887 | esac |
| 1888 | tmake_file="${tmake_file} rs6000/t-fprules-softfp soft-fp/t-softfp" |
| 1889 | if test x${enable_secureplt} = xyes; then |
| 1890 | tm_file="rs6000/secureplt.h ${tm_file}" |
| 1891 | fi |
| 1892 | ;; |
| 1893 | powerpc-*-gnu-gnualtivec*) |
| 1894 | tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h" |
| 1895 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1896 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm" |
| 1897 | if test x$enable_threads = xyes; then |
| 1898 | thread_file='posix' |
| 1899 | fi |
| 1900 | ;; |
| 1901 | powerpc-*-gnu*) |
| 1902 | tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/gnu.h" |
| 1903 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm" |
| 1904 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1905 | if test x$enable_threads = xyes; then |
| 1906 | thread_file='posix' |
| 1907 | fi |
| 1908 | ;; |
| 1909 | powerpc-wrs-vxworks|powerpc-wrs-vxworksae) |
| 1910 | tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h" |
| 1911 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppccomm rs6000/t-vxworks" |
| 1912 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1913 | extra_headers=ppc-asm.h |
| 1914 | case ${target} in |
| 1915 | *-vxworksae*) |
| 1916 | tm_file="${tm_file} vx-common.h vxworksae.h rs6000/vxworks.h rs6000/e500.h rs6000/vxworksae.h" |
| 1917 | tmake_file="${tmake_file} rs6000/t-vxworksae" |
| 1918 | ;; |
| 1919 | *-vxworks*) |
| 1920 | tm_file="${tm_file} vx-common.h vxworks.h rs6000/vxworks.h rs6000/e500.h" |
| 1921 | ;; |
| 1922 | esac |
| 1923 | ;; |
| 1924 | powerpc-*-lynxos*) |
| 1925 | xm_defines=POSIX |
| 1926 | tm_file="${tm_file} dbxelf.h elfos.h rs6000/sysv4.h rs6000/lynx.h lynx.h" |
| 1927 | tmake_file="t-lynx rs6000/t-lynx" |
| 1928 | extra_options="${extra_options} rs6000/sysv4.opt lynx.opt" |
| 1929 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
| 1930 | extra_options="${extra_options} lynx.opt" |
| 1931 | thread_file=lynx |
| 1932 | gnu_ld=yes |
| 1933 | gas=yes |
| 1934 | ;; |
| 1935 | powerpcle-*-elf*) |
| 1936 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h" |
| 1937 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm" |
| 1938 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1939 | ;; |
| 1940 | powerpcle-*-eabisim*) |
| 1941 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h" |
| 1942 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm" |
| 1943 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1944 | ;; |
| 1945 | powerpcle-*-eabi*) |
| 1946 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h" |
| 1947 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm" |
| 1948 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1949 | ;; |
| 1950 | powerpc-xilinx-eabi*) |
| 1951 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/singlefp.h rs6000/xfpu.h" |
| 1952 | extra_options="${extra_options} rs6000/sysv4.opt" |
| 1953 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm" |
| 1954 | ;; |
| 1955 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) |
| 1956 | tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h" |
| 1957 | tmake_file="rs6000/t-fprules rs6000/t-fprules-fpbit rs6000/t-newas" |
| 1958 | extra_options="${extra_options} rs6000/aix41.opt" |
| 1959 | use_collect2=yes |
| 1960 | extra_headers= |
| 1961 | use_fixproto=yes |
| 1962 | ;; |
| 1963 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
| 1964 | tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h" |
| 1965 | tmake_file=rs6000/t-aix43 |
| 1966 | extra_options="${extra_options} rs6000/aix64.opt" |
| 1967 | use_collect2=yes |
| 1968 | thread_file='aix' |
| 1969 | extra_headers= |
| 1970 | ;; |
| 1971 | rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*) |
| 1972 | tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h" |
| 1973 | extra_options="${extra_options} rs6000/aix64.opt" |
| 1974 | tmake_file=rs6000/t-aix43 |
| 1975 | use_collect2=yes |
| 1976 | thread_file='aix' |
| 1977 | extra_headers= |
| 1978 | ;; |
| 1979 | rs6000-ibm-aix5.2.* | powerpc-ibm-aix5.2.*) |
| 1980 | tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h" |
| 1981 | tmake_file=rs6000/t-aix52 |
| 1982 | extra_options="${extra_options} rs6000/aix64.opt" |
| 1983 | use_collect2=yes |
| 1984 | thread_file='aix' |
| 1985 | extra_headers= |
| 1986 | ;; |
| 1987 | rs6000-ibm-aix5.3.* | powerpc-ibm-aix5.3.*) |
| 1988 | tm_file="${tm_file} rs6000/aix.h rs6000/aix53.h rs6000/xcoff.h" |
| 1989 | tmake_file=rs6000/t-aix52 |
| 1990 | extra_options="${extra_options} rs6000/aix64.opt" |
| 1991 | use_collect2=yes |
| 1992 | thread_file='aix' |
| 1993 | extra_headers=altivec.h |
| 1994 | ;; |
| 1995 | rs6000-ibm-aix[6789].* | powerpc-ibm-aix[6789].*) |
| 1996 | tm_file="${tm_file} rs6000/aix.h rs6000/aix61.h rs6000/xcoff.h" |
| 1997 | tmake_file=rs6000/t-aix52 |
| 1998 | extra_options="${extra_options} rs6000/aix64.opt" |
| 1999 | use_collect2=yes |
| 2000 | thread_file='aix' |
| 2001 | extra_headers=altivec.h |
| 2002 | ;; |
| 2003 | s390-*-linux*) |
| 2004 | tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h" |
| 2005 | tmake_file="${tmake_file} t-dfprules s390/t-crtstuff s390/t-linux" |
| 2006 | ;; |
| 2007 | s390x-*-linux*) |
| 2008 | tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h" |
| 2009 | tm_p_file=s390/s390-protos.h |
| 2010 | md_file=s390/s390.md |
| 2011 | extra_modes=s390/s390-modes.def |
| 2012 | out_file=s390/s390.c |
| 2013 | tmake_file="${tmake_file} t-dfprules s390/t-crtstuff s390/t-linux s390/t-linux64" |
| 2014 | ;; |
| 2015 | s390x-ibm-tpf*) |
| 2016 | tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h s390/tpf.h" |
| 2017 | tm_p_file=s390/s390-protos.h |
| 2018 | md_file=s390/s390.md |
| 2019 | extra_modes=s390/s390-modes.def |
| 2020 | out_file=s390/s390.c |
| 2021 | extra_parts="crtbeginS.o crtendS.o" |
| 2022 | tmake_file="s390/t-crtstuff s390/t-tpf" |
| 2023 | thread_file='tpf' |
| 2024 | extra_options="${extra_options} s390/tpf.opt" |
| 2025 | ;; |
| 2026 | score-*-elf) |
| 2027 | tm_file="dbxelf.h elfos.h score/elf.h score/score.h" |
| 2028 | tmake_file=score/t-score-elf |
| 2029 | extra_objs="score7.o score3.o" |
| 2030 | ;; |
| 2031 | sh-*-elf* | sh[12346l]*-*-elf* | \ |
| 2032 | sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \ |
| 2033 | sh-*-linux* | sh[2346lbe]*-*-linux* | \ |
| 2034 | sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ |
| 2035 | sh64-*-netbsd* | sh64l*-*-netbsd*) |
| 2036 | tmake_file="${tmake_file} sh/t-sh sh/t-elf" |
| 2037 | if test x${with_endian} = x; then |
| 2038 | case ${target} in |
| 2039 | sh[1234]*be-*-* | sh[1234]*eb-*-*) with_endian=big ;; |
| 2040 | shbe-*-* | sheb-*-*) with_endian=big,little ;; |
| 2041 | sh[1234]l* | sh[34]*-*-linux*) with_endian=little ;; |
| 2042 | shl* | sh64l* | sh*-*-linux* | \ |
| 2043 | sh5l* | sh-superh-elf) with_endian=little,big ;; |
| 2044 | sh[1234]*-*-*) with_endian=big ;; |
| 2045 | *) with_endian=big,little ;; |
| 2046 | esac |
| 2047 | fi |
| 2048 | case ${with_endian} in |
| 2049 | big|little) tmake_file="${tmake_file} sh/t-1e" ;; |
| 2050 | big,little|little,big) ;; |
| 2051 | *) echo "with_endian=${with_endian} not supported."; exit 1 ;; |
| 2052 | esac |
| 2053 | case ${with_endian} in |
| 2054 | little*) tm_file="sh/little.h ${tm_file}" ;; |
| 2055 | esac |
| 2056 | tm_file="${tm_file} dbxelf.h elfos.h" |
| 2057 | case ${target} in |
| 2058 | sh*-*-netbsd*) ;; |
| 2059 | *) tm_file="${tm_file} svr4.h" ;; |
| 2060 | esac |
| 2061 | tm_file="${tm_file} sh/elf.h" |
| 2062 | case ${target} in |
| 2063 | sh*-*-linux*) tmake_file="${tmake_file} sh/t-linux" |
| 2064 | tm_file="${tm_file} linux.h sh/linux.h" ;; |
| 2065 | sh*-*-netbsd*) tm_file="${tm_file} netbsd.h netbsd-elf.h sh/netbsd-elf.h" ;; |
| 2066 | sh*-superh-elf) if test x$with_libgloss != xno; then |
| 2067 | with_libgloss=yes |
| 2068 | tm_file="${tm_file} sh/newlib.h" |
| 2069 | fi |
| 2070 | tm_file="${tm_file} sh/embed-elf.h sh/superh.h" |
| 2071 | tmake_file="${tmake_file} sh/t-superh" |
| 2072 | extra_options="${extra_options} sh/superh.opt" ;; |
| 2073 | *) if test x$with_newlib = xyes \ |
| 2074 | && test x$with_libgloss = xyes; then |
| 2075 | tm_file="${tm_file} sh/newlib.h" |
| 2076 | fi |
| 2077 | tm_file="${tm_file} sh/embed-elf.h" ;; |
| 2078 | esac |
| 2079 | case ${target} in |
| 2080 | sh5*-*-netbsd*) |
| 2081 | # SHmedia, 32-bit ABI |
| 2082 | tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd" |
| 2083 | ;; |
| 2084 | sh64*-netbsd*) |
| 2085 | # SHmedia, 64-bit ABI |
| 2086 | tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd sh/t-netbsd-sh5-64" |
| 2087 | ;; |
| 2088 | *-*-netbsd) |
| 2089 | tmake_file="${tmake_file} sh/t-netbsd" |
| 2090 | ;; |
| 2091 | sh64*-*-linux*) |
| 2092 | tmake_file="${tmake_file} sh/t-sh64 sh/t-linux64" |
| 2093 | tm_file="${tm_file} sh/sh64.h" |
| 2094 | extra_headers="shmedia.h ushmedia.h sshmedia.h" |
| 2095 | ;; |
| 2096 | sh64*) |
| 2097 | tmake_file="${tmake_file} sh/t-sh64" |
| 2098 | tm_file="${tm_file} sh/sh64.h" |
| 2099 | extra_headers="shmedia.h ushmedia.h sshmedia.h" |
| 2100 | ;; |
| 2101 | *-*-symbianelf*) |
| 2102 | tmake_file="sh/t-symbian" |
| 2103 | tm_file="sh/symbian-pre.h sh/little.h ${tm_file} sh/symbian-post.h" |
| 2104 | extra_objs="symbian.o" |
| 2105 | extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o crtbeginS.o crtendS.o" |
| 2106 | ;; |
| 2107 | esac |
| 2108 | # sed el/eb endian suffixes away to avoid confusion with sh[23]e |
| 2109 | case `echo ${target} | sed 's/e[lb]-/-/'` in |
| 2110 | sh64*-*-netbsd*) sh_cpu_target=sh5-64media ;; |
| 2111 | sh64* | sh5*-*-netbsd*) sh_cpu_target=sh5-32media ;; |
| 2112 | sh4a_single_only*) sh_cpu_target=sh4a-single-only ;; |
| 2113 | sh4a_single*) sh_cpu_target=sh4a-single ;; |
| 2114 | sh4a_nofpu*) sh_cpu_target=sh4a-nofpu ;; |
| 2115 | sh4al) sh_cpu_target=sh4al ;; |
| 2116 | sh4a*) sh_cpu_target=sh4a ;; |
| 2117 | sh4_single_only*) sh_cpu_target=sh4-single-only ;; |
| 2118 | sh4_single*) sh_cpu_target=sh4-single ;; |
| 2119 | sh4_nofpu*) sh_cpu_target=sh4-nofpu ;; |
| 2120 | sh4* | sh-superh-*) sh_cpu_target=sh4 ;; |
| 2121 | sh3e*) sh_cpu_target=sh3e ;; |
| 2122 | sh*-*-netbsd* | sh3*) sh_cpu_target=sh3 ;; |
| 2123 | sh2a_single_only*) sh_cpu_target=sh2a-single-only ;; |
| 2124 | sh2a_single*) sh_cpu_target=sh2a-single ;; |
| 2125 | sh2a_nofpu*) sh_cpu_target=sh2a-nofpu ;; |
| 2126 | sh2a*) sh_cpu_target=sh2a ;; |
| 2127 | sh2e*) sh_cpu_target=sh2e ;; |
| 2128 | sh2*) sh_cpu_target=sh2 ;; |
| 2129 | *) sh_cpu_target=sh1 ;; |
| 2130 | esac |
| 2131 | # did the user say --without-fp ? |
| 2132 | if test x$with_fp = xno; then |
| 2133 | case ${sh_cpu_target} in |
| 2134 | sh5-*media) sh_cpu_target=${sh_cpu_target}-nofpu ;; |
| 2135 | sh4al | sh1) ;; |
| 2136 | sh4a* ) sh_cpu_target=sh4a-nofpu ;; |
| 2137 | sh4*) sh_cpu_target=sh4-nofpu ;; |
| 2138 | sh3*) sh_cpu_target=sh3 ;; |
| 2139 | sh2a*) sh_cpu_target=sh2a-nofpu ;; |
| 2140 | sh2*) sh_cpu_target=sh2 ;; |
| 2141 | *) echo --without-fp not available for $target: ignored |
| 2142 | esac |
| 2143 | tm_defines="$tm_defines STRICT_NOFPU=1" |
| 2144 | fi |
| 2145 | sh_cpu_default="`echo $with_cpu|sed s/^m/sh/|tr A-Z_ a-z-`" |
| 2146 | case $sh_cpu_default in |
| 2147 | sh5-64media-nofpu | sh5-64media | \ |
| 2148 | sh5-32media-nofpu | sh5-32media | sh5-compact-nofpu | sh5-compact | \ |
| 2149 | sh2a-single-only | sh2a-single | sh2a-nofpu | sh2a | \ |
| 2150 | sh4a-single-only | sh4a-single | sh4a-nofpu | sh4a | sh4al | \ |
| 2151 | sh4-single-only | sh4-single | sh4-nofpu | sh4 | sh4-300 | \ |
| 2152 | sh3e | sh3 | sh2e | sh2 | sh1) ;; |
| 2153 | "") sh_cpu_default=${sh_cpu_target} ;; |
| 2154 | *) echo "with_cpu=$with_cpu not supported"; exit 1 ;; |
| 2155 | esac |
| 2156 | sh_multilibs=${with_multilib_list} |
| 2157 | if test x${sh_multilibs} = x ; then |
| 2158 | case ${target} in |
| 2159 | sh64-superh-linux* | \ |
| 2160 | sh[1234]*) sh_multilibs=${sh_cpu_target} ;; |
| 2161 | sh64* | sh5*) sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;; |
| 2162 | sh-superh-*) sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;; |
| 2163 | sh*-*-linux*) sh_multilibs=m1,m3e,m4 ;; |
| 2164 | sh*-*-netbsd*) sh_multilibs=m3,m3e,m4 ;; |
| 2165 | *) sh_multilibs=m1,m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single ;; |
| 2166 | esac |
| 2167 | if test x$with_fp = xno; then |
| 2168 | 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`" |
| 2169 | fi |
| 2170 | fi |
| 2171 | target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_` |
| 2172 | tm_defines=${tm_defines}' SH_MULTILIB_CPU_DEFAULT=\"'`echo $sh_cpu_default|sed s/sh/m/`'\"' |
| 2173 | sh_multilibs=`echo $sh_multilibs,$sh_cpu_default | sed -e 's/[ ,/][ ,]*/ /g' -e 's/ $//' -e 's/^m/sh/' -e 's/ m/ sh/g' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz-` |
| 2174 | for sh_multilib in ${sh_multilibs}; do |
| 2175 | case ${sh_multilib} in |
| 2176 | sh1 | sh2 | sh2e | sh3 | sh3e | \ |
| 2177 | sh4 | sh4-single | sh4-single-only | sh4-nofpu | sh4-300 |\ |
| 2178 | sh4a | sh4a-single | sh4a-single-only | sh4a-nofpu | sh4al | \ |
| 2179 | sh2a | sh2a-single | sh2a-single-only | sh2a-nofpu | \ |
| 2180 | sh5-64media | sh5-64media-nofpu | \ |
| 2181 | sh5-32media | sh5-32media-nofpu | \ |
| 2182 | sh5-compact | sh5-compact-nofpu) |
| 2183 | tmake_file="${tmake_file} sh/t-mlib-${sh_multilib}" |
| 2184 | tm_defines="$tm_defines SUPPORT_`echo $sh_multilib|tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1" |
| 2185 | ;; |
| 2186 | *) |
| 2187 | echo "with_multilib_list=${sh_multilib} not supported." |
| 2188 | exit 1 |
| 2189 | ;; |
| 2190 | esac |
| 2191 | done |
| 2192 | if test x${enable_incomplete_targets} = xyes ; then |
| 2193 | 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" |
| 2194 | fi |
| 2195 | ;; |
| 2196 | sh-*-rtems*) |
| 2197 | tmake_file="sh/t-sh sh/t-elf t-rtems sh/t-rtems" |
| 2198 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h" |
| 2199 | ;; |
| 2200 | sh-wrs-vxworks) |
| 2201 | tmake_file="$tmake_file sh/t-sh sh/t-elf sh/t-vxworks" |
| 2202 | tm_file="${tm_file} elfos.h svr4.h sh/elf.h sh/embed-elf.h vx-common.h vxworks.h sh/vxworks.h" |
| 2203 | ;; |
| 2204 | sh-*-*) |
| 2205 | tm_file="${tm_file} dbxcoff.h sh/coff.h" |
| 2206 | ;; |
| 2207 | sparc-*-netbsdelf*) |
| 2208 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h" |
| 2209 | extra_options="${extra_options} sparc/long-double-switch.opt" |
| 2210 | ;; |
| 2211 | sparc64-*-openbsd*) |
| 2212 | tm_file="sparc/openbsd1-64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp64-elf.h openbsd.h sparc/openbsd64.h" |
| 2213 | extra_options="${extra_options} sparc/little-endian.opt" |
| 2214 | gas=yes gnu_ld=yes |
| 2215 | with_cpu=ultrasparc |
| 2216 | ;; |
| 2217 | sparc-*-elf*) |
| 2218 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp-elf.h" |
| 2219 | tmake_file="sparc/t-elf sparc/t-crtfm" |
| 2220 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
| 2221 | ;; |
| 2222 | sparc-*-linux*) # SPARC's running GNU/Linux, libc6 |
| 2223 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/gas.h linux.h" |
| 2224 | extra_options="${extra_options} sparc/long-double-switch.opt" |
| 2225 | tmake_file="${tmake_file} sparc/t-linux" |
| 2226 | if test x$enable_targets = xall; then |
| 2227 | tm_file="sparc/biarch64.h ${tm_file} sparc/linux64.h" |
| 2228 | tmake_file="${tmake_file} sparc/t-linux64" |
| 2229 | else |
| 2230 | tm_file="${tm_file} sparc/linux.h" |
| 2231 | fi |
| 2232 | tmake_file="${tmake_file} sparc/t-crtfm" |
| 2233 | ;; |
| 2234 | sparc-*-rtems*) |
| 2235 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h" |
| 2236 | tmake_file="sparc/t-elf sparc/t-crtfm t-rtems" |
| 2237 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
| 2238 | ;; |
| 2239 | sparc64-*-solaris2* | sparcv9-*-solaris2*) |
| 2240 | tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h" |
| 2241 | case ${target} in |
| 2242 | *-*-solaris2.1[0-9]*) |
| 2243 | tm_file="${tm_file} sol2-10.h" |
| 2244 | ;; |
| 2245 | esac |
| 2246 | tm_file="${tm_file} sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h" |
| 2247 | if test x$gnu_ld = xyes; then |
| 2248 | tm_file="${tm_file} sol2-gld.h sparc/sol2-gld-bi.h" |
| 2249 | fi |
| 2250 | if test x$gas = xyes; then |
| 2251 | tm_file="${tm_file} sparc/sol2-gas.h sparc/sol2-gas-bi.h" |
| 2252 | fi |
| 2253 | tm_file="${tm_file} tm-dwarf2.h" |
| 2254 | tmake_file="t-sol2 sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm" |
| 2255 | if test x$gnu_ld = xyes; then |
| 2256 | tmake_file="$tmake_file t-slibgcc-elf-ver" |
| 2257 | else |
| 2258 | tmake_file="$tmake_file t-slibgcc-sld" |
| 2259 | fi |
| 2260 | if test x$gas = xyes; then |
| 2261 | tm_file="usegas.h ${tm_file}" |
| 2262 | fi |
| 2263 | c_target_objs="sol2-c.o" |
| 2264 | cxx_target_objs="sol2-c.o" |
| 2265 | extra_objs="sol2.o" |
| 2266 | tm_p_file="${tm_p_file} sol2-protos.h" |
| 2267 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" |
| 2268 | case ${enable_threads}:${have_pthread_h}:${have_thread_h} in |
| 2269 | "":yes:* | yes:yes:* ) thread_file=posix ;; |
| 2270 | "":*:yes | yes:*:yes ) thread_file=solaris ;; |
| 2271 | esac |
| 2272 | ;; |
| 2273 | sparc-*-solaris2*) |
| 2274 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h" |
| 2275 | case ${target} in |
| 2276 | *-*-solaris2.1[0-9]*) |
| 2277 | tm_file="${tm_file} sol2-10.h" |
| 2278 | ;; |
| 2279 | esac |
| 2280 | tm_file="${tm_file} sparc/sol2.h" |
| 2281 | if test x$gnu_ld = xyes; then |
| 2282 | tm_file="${tm_file} sol2-gld.h" |
| 2283 | fi |
| 2284 | if test x$gas = xyes; then |
| 2285 | tm_file="${tm_file} sparc/sol2-gas.h" |
| 2286 | fi |
| 2287 | tmake_file="t-sol2 sparc/t-sol2 sparc/t-crtfm" |
| 2288 | if test x$gnu_ld = xyes; then |
| 2289 | tmake_file="$tmake_file t-slibgcc-elf-ver" |
| 2290 | else |
| 2291 | tmake_file="$tmake_file t-slibgcc-sld" |
| 2292 | fi |
| 2293 | tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h" |
| 2294 | if test x$gnu_ld = xyes; then |
| 2295 | tm_file="${tm_file} sparc/sol2-gld-bi.h" |
| 2296 | fi |
| 2297 | if test x$gas = xyes; then |
| 2298 | tm_file="${tm_file} sparc/sol2-gas-bi.h" |
| 2299 | fi |
| 2300 | if test x$gas = xyes; then |
| 2301 | tm_file="usegas.h ${tm_file}" |
| 2302 | fi |
| 2303 | tm_file="${tm_file} tm-dwarf2.h" |
| 2304 | tmake_file="$tmake_file sparc/t-sol2-64" |
| 2305 | test x$with_cpu != x || with_cpu=v9 |
| 2306 | c_target_objs="sol2-c.o" |
| 2307 | cxx_target_objs="sol2-c.o" |
| 2308 | extra_objs="sol2.o" |
| 2309 | tm_p_file="${tm_p_file} sol2-protos.h" |
| 2310 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
| 2311 | case ${enable_threads}:${have_pthread_h}:${have_thread_h} in |
| 2312 | "":yes:* | yes:yes:* ) |
| 2313 | thread_file=posix |
| 2314 | ;; |
| 2315 | "":*:yes | yes:*:yes ) |
| 2316 | thread_file=solaris |
| 2317 | ;; |
| 2318 | esac |
| 2319 | ;; |
| 2320 | sparc-wrs-vxworks) |
| 2321 | tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h vx-common.h vxworks.h sparc/vxworks.h" |
| 2322 | tmake_file="${tmake_file} sparc/t-vxworks" |
| 2323 | ;; |
| 2324 | sparc64-*-elf*) |
| 2325 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sp64-elf.h" |
| 2326 | extra_options="${extra_options} sparc/little-endian.opt" |
| 2327 | tmake_file="${tmake_file} sparc/t-crtfm" |
| 2328 | extra_parts="crtbegin.o crtend.o" |
| 2329 | ;; |
| 2330 | sparc64-*-freebsd*|ultrasparc-*-freebsd*) |
| 2331 | tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h" |
| 2332 | extra_options="${extra_options} sparc/long-double-switch.opt" |
| 2333 | tmake_file="${tmake_file} sparc/t-crtfm" |
| 2334 | case "x$with_cpu" in |
| 2335 | xultrasparc) ;; |
| 2336 | x) with_cpu=ultrasparc ;; |
| 2337 | *) echo "$with_cpu not supported for freebsd target"; exit 1 ;; |
| 2338 | esac |
| 2339 | ;; |
| 2340 | sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux |
| 2341 | tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/gas.h linux.h sparc/linux64.h" |
| 2342 | extra_options="${extra_options} sparc/long-double-switch.opt" |
| 2343 | tmake_file="${tmake_file} sparc/t-linux sparc/t-linux64 sparc/t-crtfm" |
| 2344 | ;; |
| 2345 | sparc64-*-netbsd*) |
| 2346 | tm_file="sparc/biarch64.h ${tm_file}" |
| 2347 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h" |
| 2348 | extra_options="${extra_options} sparc/long-double-switch.opt" |
| 2349 | tmake_file="${tmake_file} sparc/t-netbsd64" |
| 2350 | ;; |
| 2351 | spu-*-elf*) |
| 2352 | tm_file="dbxelf.h elfos.h spu/spu-elf.h spu/spu.h" |
| 2353 | tmake_file="spu/t-spu-elf" |
| 2354 | extra_headers="spu_intrinsics.h spu_internals.h vmx2spu.h spu_mfcio.h vec_types.h" |
| 2355 | extra_modes=spu/spu-modes.def |
| 2356 | c_target_objs="${c_target_objs} spu-c.o" |
| 2357 | cxx_target_objs="${cxx_target_objs} spu-c.o" |
| 2358 | ;; |
| 2359 | v850e1-*-*) |
| 2360 | target_cpu_default="TARGET_CPU_v850e1" |
| 2361 | tm_file="dbxelf.h elfos.h svr4.h v850/v850.h" |
| 2362 | tm_p_file=v850/v850-protos.h |
| 2363 | tmake_file=v850/t-v850e |
| 2364 | md_file=v850/v850.md |
| 2365 | out_file=v850/v850.c |
| 2366 | extra_options="${extra_options} v850/v850.opt" |
| 2367 | if test x$stabs = xyes |
| 2368 | then |
| 2369 | tm_file="${tm_file} dbx.h" |
| 2370 | fi |
| 2371 | use_collect2=no |
| 2372 | c_target_objs="v850-c.o" |
| 2373 | cxx_target_objs="v850-c.o" |
| 2374 | ;; |
| 2375 | v850e-*-*) |
| 2376 | target_cpu_default="TARGET_CPU_v850e" |
| 2377 | tm_file="dbxelf.h elfos.h svr4.h v850/v850.h" |
| 2378 | tm_p_file=v850/v850-protos.h |
| 2379 | tmake_file=v850/t-v850e |
| 2380 | md_file=v850/v850.md |
| 2381 | out_file=v850/v850.c |
| 2382 | extra_options="${extra_options} v850/v850.opt" |
| 2383 | if test x$stabs = xyes |
| 2384 | then |
| 2385 | tm_file="${tm_file} dbx.h" |
| 2386 | fi |
| 2387 | use_collect2=no |
| 2388 | c_target_objs="v850-c.o" |
| 2389 | cxx_target_objs="v850-c.o" |
| 2390 | ;; |
| 2391 | v850-*-*) |
| 2392 | target_cpu_default="TARGET_CPU_generic" |
| 2393 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
| 2394 | tmake_file=v850/t-v850 |
| 2395 | if test x$stabs = xyes |
| 2396 | then |
| 2397 | tm_file="${tm_file} dbx.h" |
| 2398 | fi |
| 2399 | use_collect2=no |
| 2400 | c_target_objs="v850-c.o" |
| 2401 | cxx_target_objs="v850-c.o" |
| 2402 | ;; |
| 2403 | vax-*-netbsdelf*) |
| 2404 | tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h" |
| 2405 | ;; |
| 2406 | vax-*-netbsd*) |
| 2407 | tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h" |
| 2408 | tmake_file=t-netbsd |
| 2409 | extra_parts="" |
| 2410 | use_collect2=yes |
| 2411 | ;; |
| 2412 | vax-*-openbsd*) |
| 2413 | tm_file="vax/vax.h vax/openbsd1.h openbsd.h vax/openbsd.h" |
| 2414 | use_collect2=yes |
| 2415 | ;; |
| 2416 | xstormy16-*-elf) |
| 2417 | # For historical reasons, the target files omit the 'x'. |
| 2418 | tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h" |
| 2419 | tm_p_file=stormy16/stormy16-protos.h |
| 2420 | md_file=stormy16/stormy16.md |
| 2421 | out_file=stormy16/stormy16.c |
| 2422 | extra_options=stormy16/stormy16.opt |
| 2423 | tmake_file="stormy16/t-stormy16" |
| 2424 | extra_parts="crtbegin.o crtend.o" |
| 2425 | ;; |
| 2426 | xtensa*-*-elf*) |
| 2427 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h" |
| 2428 | tmake_file="xtensa/t-xtensa xtensa/t-elf" |
| 2429 | ;; |
| 2430 | xtensa*-*-linux*) |
| 2431 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h" |
| 2432 | tmake_file="${tmake_file} xtensa/t-xtensa xtensa/t-linux" |
| 2433 | ;; |
| 2434 | am33_2.0-*-linux*) |
| 2435 | tm_file="mn10300/mn10300.h dbxelf.h elfos.h linux.h mn10300/linux.h" |
| 2436 | tmake_file="${tmake_file} mn10300/t-linux" |
| 2437 | gas=yes gnu_ld=yes |
| 2438 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
| 2439 | use_collect2=no |
| 2440 | ;; |
| 2441 | m32c-*-rtems*) |
| 2442 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file} m32c/rtems.h rtems.h" |
| 2443 | tmake_file="${tmake_file} t-rtems" |
| 2444 | c_target_objs="m32c-pragma.o" |
| 2445 | cxx_target_objs="m32c-pragma.o" |
| 2446 | ;; |
| 2447 | m32c-*-elf*) |
| 2448 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
| 2449 | c_target_objs="m32c-pragma.o" |
| 2450 | cxx_target_objs="m32c-pragma.o" |
| 2451 | ;; |
| 2452 | *) |
| 2453 | echo "*** Configuration ${target} not supported" 1>&2 |
| 2454 | exit 1 |
| 2455 | ;; |
| 2456 | esac |
| 2457 | |
| 2458 | case ${target} in |
| 2459 | i[34567]86-*-linux* | x86_64-*-linux*) |
| 2460 | tmake_file="${tmake_file} i386/t-pmm_malloc i386/t-i386" |
| 2461 | ;; |
| 2462 | i[34567]86-*-* | x86_64-*-*) |
| 2463 | tmake_file="${tmake_file} i386/t-gmm_malloc i386/t-i386" |
| 2464 | ;; |
| 2465 | esac |
| 2466 | |
| 2467 | # Support for --with-cpu and related options (and a few unrelated options, |
| 2468 | # too). |
| 2469 | case ${with_cpu} in |
| 2470 | yes | no) |
| 2471 | echo "--with-cpu must be passed a value" 1>&2 |
| 2472 | exit 1 |
| 2473 | ;; |
| 2474 | esac |
| 2475 | |
| 2476 | # If there is no $with_cpu option, try to infer one from ${target}. |
| 2477 | # This block sets nothing except for with_cpu. |
| 2478 | if test x$with_cpu = x ; then |
| 2479 | case ${target} in |
| 2480 | i386-*-*) |
| 2481 | with_cpu=i386 |
| 2482 | ;; |
| 2483 | i486-*-*) |
| 2484 | with_cpu=i486 |
| 2485 | ;; |
| 2486 | i586-*-*) |
| 2487 | case ${target_noncanonical} in |
| 2488 | k6_2-*) |
| 2489 | with_cpu=k6-2 |
| 2490 | ;; |
| 2491 | k6_3-*) |
| 2492 | with_cpu=k6-3 |
| 2493 | ;; |
| 2494 | k6-*) |
| 2495 | with_cpu=k6 |
| 2496 | ;; |
| 2497 | pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*) |
| 2498 | with_cpu=pentium-mmx |
| 2499 | ;; |
| 2500 | *) |
| 2501 | with_cpu=pentium |
| 2502 | ;; |
| 2503 | esac |
| 2504 | ;; |
| 2505 | i686-*-* | i786-*-*) |
| 2506 | case ${target_noncanonical} in |
| 2507 | amdfam10-*|barcelona-*) |
| 2508 | with_cpu=amdfam10 |
| 2509 | ;; |
| 2510 | k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) |
| 2511 | with_cpu=k8-sse3 |
| 2512 | ;; |
| 2513 | k8-*|opteron-*|athlon64-*|athlon_fx-*) |
| 2514 | with_cpu=k8 |
| 2515 | ;; |
| 2516 | athlon_xp-*|athlon_mp-*|athlon_4-*) |
| 2517 | with_cpu=athlon-4 |
| 2518 | ;; |
| 2519 | athlon_tbird-*|athlon-*) |
| 2520 | with_cpu=athlon |
| 2521 | ;; |
| 2522 | geode-*) |
| 2523 | with_cpu=geode |
| 2524 | ;; |
| 2525 | pentium2-*) |
| 2526 | with_cpu=pentium2 |
| 2527 | ;; |
| 2528 | pentium3-*|pentium3m-*) |
| 2529 | with_cpu=pentium3 |
| 2530 | ;; |
| 2531 | pentium4-*|pentium4m-*) |
| 2532 | with_cpu=pentium4 |
| 2533 | ;; |
| 2534 | prescott-*) |
| 2535 | with_cpu=prescott |
| 2536 | ;; |
| 2537 | nocona-*) |
| 2538 | with_cpu=nocona |
| 2539 | ;; |
| 2540 | core2-*) |
| 2541 | with_cpu=core2 |
| 2542 | ;; |
| 2543 | pentium_m-*) |
| 2544 | with_cpu=pentium-m |
| 2545 | ;; |
| 2546 | pentiumpro-*) |
| 2547 | with_cpu=pentiumpro |
| 2548 | ;; |
| 2549 | *) |
| 2550 | with_cpu=generic |
| 2551 | ;; |
| 2552 | esac |
| 2553 | ;; |
| 2554 | x86_64-*-*) |
| 2555 | case ${target_noncanonical} in |
| 2556 | amdfam10-*|barcelona-*) |
| 2557 | with_cpu=amdfam10 |
| 2558 | ;; |
| 2559 | k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) |
| 2560 | with_cpu=k8-sse3 |
| 2561 | ;; |
| 2562 | k8-*|opteron-*|athlon64-*|athlon_fx-*) |
| 2563 | with_cpu=k8 |
| 2564 | ;; |
| 2565 | nocona-*) |
| 2566 | with_cpu=nocona |
| 2567 | ;; |
| 2568 | core2-*) |
| 2569 | with_cpu=core2 |
| 2570 | ;; |
| 2571 | *) |
| 2572 | with_cpu=generic |
| 2573 | ;; |
| 2574 | esac |
| 2575 | ;; |
| 2576 | alphaev6[78]*-*-*) |
| 2577 | with_cpu=ev67 |
| 2578 | ;; |
| 2579 | alphaev6*-*-*) |
| 2580 | with_cpu=ev6 |
| 2581 | ;; |
| 2582 | alphapca56*-*-*) |
| 2583 | with_cpu=pca56 |
| 2584 | ;; |
| 2585 | alphaev56*-*-*) |
| 2586 | with_cpu=ev56 |
| 2587 | ;; |
| 2588 | alphaev5*-*-*) |
| 2589 | with_cpu=ev5 |
| 2590 | ;; |
| 2591 | frv-*-*linux* | frv400-*-*linux*) |
| 2592 | with_cpu=fr400 |
| 2593 | ;; |
| 2594 | frv550-*-*linux*) |
| 2595 | with_cpu=fr550 |
| 2596 | ;; |
| 2597 | m68k*-*-*) |
| 2598 | case "$with_arch" in |
| 2599 | "cf") |
| 2600 | with_cpu=${default_cf_cpu} |
| 2601 | ;; |
| 2602 | "" | "m68k") |
| 2603 | with_cpu=m${default_m68k_cpu} |
| 2604 | ;; |
| 2605 | esac |
| 2606 | ;; |
| 2607 | mips*-*-vxworks) |
| 2608 | with_arch=mips2 |
| 2609 | ;; |
| 2610 | sparc*-*-*) |
| 2611 | with_cpu="`echo ${target} | sed 's/-.*$//'`" |
| 2612 | ;; |
| 2613 | esac |
| 2614 | |
| 2615 | # Avoid overriding --with-cpu-32 and --with-cpu-64 values. |
| 2616 | case ${target} in |
| 2617 | i[34567]86-*-*|x86_64-*-*) |
| 2618 | if test x$with_cpu != x; then |
| 2619 | if test x$with_cpu_32 != x || test x$with_cpu_64 != x; then |
| 2620 | if test x$with_cpu_32 = x; then |
| 2621 | with_cpu_32=$with_cpu |
| 2622 | fi |
| 2623 | if test x$with_cpu_64 = x; then |
| 2624 | with_cpu_64=$with_cpu |
| 2625 | fi |
| 2626 | with_cpu= |
| 2627 | fi |
| 2628 | fi |
| 2629 | ;; |
| 2630 | esac |
| 2631 | fi |
| 2632 | |
| 2633 | # Similarly for --with-schedule. |
| 2634 | if test x$with_schedule = x; then |
| 2635 | case ${target} in |
| 2636 | hppa1*) |
| 2637 | # Override default PA8000 scheduling model. |
| 2638 | with_schedule=7100LC |
| 2639 | ;; |
| 2640 | esac |
| 2641 | fi |
| 2642 | |
| 2643 | # Validate and mark as valid any --with options supported |
| 2644 | # by this target. In order to use a particular --with option |
| 2645 | # you must list it in supported_defaults; validating the value |
| 2646 | # is optional. This case statement should set nothing besides |
| 2647 | # supported_defaults. |
| 2648 | |
| 2649 | supported_defaults= |
| 2650 | case "${target}" in |
| 2651 | alpha*-*-*) |
| 2652 | supported_defaults="cpu tune" |
| 2653 | for which in cpu tune; do |
| 2654 | eval "val=\$with_$which" |
| 2655 | case "$val" in |
| 2656 | "" \ |
| 2657 | | ev4 | ev45 | 21064 | ev5 | 21164 | ev56 | 21164a \ |
| 2658 | | pca56 | 21164PC | 21164pc | ev6 | 21264 | ev67 \ |
| 2659 | | 21264a) |
| 2660 | ;; |
| 2661 | *) |
| 2662 | echo "Unknown CPU used in --with-$which=$val" 1>&2 |
| 2663 | exit 1 |
| 2664 | ;; |
| 2665 | esac |
| 2666 | done |
| 2667 | ;; |
| 2668 | |
| 2669 | arm*-*-*) |
| 2670 | supported_defaults="arch cpu float tune fpu abi mode" |
| 2671 | for which in cpu tune; do |
| 2672 | # See if it matches any of the entries in arm-cores.def |
| 2673 | eval "val=\$with_$which" |
| 2674 | if [ x"$val" = x ] \ |
| 2675 | || grep "^ARM_CORE(\"$val\"," \ |
| 2676 | ${srcdir}/config/arm/arm-cores.def \ |
| 2677 | > /dev/null; then |
| 2678 | # Ok |
| 2679 | new_val=`grep "^ARM_CORE(\"$val\"," \ |
| 2680 | ${srcdir}/config/arm/arm-cores.def | \ |
| 2681 | sed -e 's/^[^,]*,[ ]*//' | \ |
| 2682 | sed -e 's/,.*$//'` |
| 2683 | eval "target_${which}_cname=$new_val" |
| 2684 | echo "For $val real value is $new_val" |
| 2685 | true |
| 2686 | else |
| 2687 | echo "Unknown CPU used in --with-$which=$val" 1>&2 |
| 2688 | exit 1 |
| 2689 | fi |
| 2690 | done |
| 2691 | |
| 2692 | case "$with_arch" in |
| 2693 | "" \ |
| 2694 | | armv[23456] | armv2a | armv3m | armv4t | armv5t \ |
| 2695 | | armv5te | armv6j |armv6k | armv6z | armv6zk | armv6-m \ |
| 2696 | | armv7 | armv7-a | armv7-r | armv7-m \ |
| 2697 | | iwmmxt | ep9312) |
| 2698 | # OK |
| 2699 | ;; |
| 2700 | *) |
| 2701 | echo "Unknown arch used in --with-arch=$with_arch" 1>&2 |
| 2702 | exit 1 |
| 2703 | ;; |
| 2704 | esac |
| 2705 | |
| 2706 | case "$with_float" in |
| 2707 | "" \ |
| 2708 | | soft | hard | softfp) |
| 2709 | # OK |
| 2710 | ;; |
| 2711 | *) |
| 2712 | echo "Unknown floating point type used in --with-float=$with_float" 1>&2 |
| 2713 | exit 1 |
| 2714 | ;; |
| 2715 | esac |
| 2716 | |
| 2717 | case "$with_fpu" in |
| 2718 | "" \ |
| 2719 | | fpa | fpe2 | fpe3 | maverick | vfp | vfp3 | vfpv3 | vfpv3-d16 | neon ) |
| 2720 | # OK |
| 2721 | ;; |
| 2722 | *) |
| 2723 | echo "Unknown fpu used in --with-fpu=$with_fpu" 2>&1 |
| 2724 | exit 1 |
| 2725 | ;; |
| 2726 | esac |
| 2727 | |
| 2728 | case "$with_abi" in |
| 2729 | "" \ |
| 2730 | | apcs-gnu | atpcs | aapcs | iwmmxt | aapcs-linux ) |
| 2731 | #OK |
| 2732 | ;; |
| 2733 | *) |
| 2734 | echo "Unknown ABI used in --with-abi=$with_abi" |
| 2735 | exit 1 |
| 2736 | ;; |
| 2737 | esac |
| 2738 | |
| 2739 | case "$with_mode" in |
| 2740 | "" \ |
| 2741 | | arm | thumb ) |
| 2742 | #OK |
| 2743 | ;; |
| 2744 | *) |
| 2745 | echo "Unknown mode used in --with-mode=$with_mode" |
| 2746 | exit 1 |
| 2747 | ;; |
| 2748 | esac |
| 2749 | |
| 2750 | if test "x$with_arch" != x && test "x$with_cpu" != x; then |
| 2751 | echo "Warning: --with-arch overrides --with-cpu=$with_cpu" 1>&2 |
| 2752 | fi |
| 2753 | ;; |
| 2754 | |
| 2755 | fr*-*-*linux*) |
| 2756 | supported_defaults=cpu |
| 2757 | case "$with_cpu" in |
| 2758 | fr400) ;; |
| 2759 | fr550) ;; |
| 2760 | *) |
| 2761 | echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2 |
| 2762 | exit 1 |
| 2763 | ;; |
| 2764 | esac |
| 2765 | ;; |
| 2766 | |
| 2767 | fido-*-* | m68k*-*-*) |
| 2768 | supported_defaults="arch cpu" |
| 2769 | case "$with_arch" in |
| 2770 | "" | "m68k"| "cf") |
| 2771 | m68k_arch_family="$with_arch" |
| 2772 | ;; |
| 2773 | *) |
| 2774 | echo "Invalid --with-arch=$with_arch" 1>&2 |
| 2775 | exit 1 |
| 2776 | ;; |
| 2777 | esac |
| 2778 | |
| 2779 | # We always have a $with_cpu setting here. |
| 2780 | case "$with_cpu" in |
| 2781 | "m68000" | "m68010" | "m68020" | "m68030" | "m68040" | "m68060") |
| 2782 | m68k_cpu_ident=$with_cpu |
| 2783 | ;; |
| 2784 | "m68020-40") |
| 2785 | m68k_cpu_ident=m68020 |
| 2786 | tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_40" |
| 2787 | ;; |
| 2788 | "m68020-60") |
| 2789 | m68k_cpu_ident=m68020 |
| 2790 | tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_60" |
| 2791 | ;; |
| 2792 | *) |
| 2793 | # We need the C identifier rather than the string. |
| 2794 | m68k_cpu_ident=`awk -v arg="\"$with_cpu\"" \ |
| 2795 | 'BEGIN { FS="[ \t]*[,()][ \t]*" }; \ |
| 2796 | $1 == "M68K_DEVICE" && $2 == arg { print $3 }' \ |
| 2797 | ${srcdir}/config/m68k/m68k-devices.def` |
| 2798 | if [ x"$m68k_cpu_ident" = x ] ; then |
| 2799 | echo "Unknown CPU used in --with-cpu=$with_cpu" 1>&2 |
| 2800 | exit 1 |
| 2801 | fi |
| 2802 | with_cpu="mcpu=$with_cpu" |
| 2803 | ;; |
| 2804 | esac |
| 2805 | ;; |
| 2806 | |
| 2807 | hppa*-*-*) |
| 2808 | supported_defaults="arch schedule" |
| 2809 | |
| 2810 | case "$with_arch" in |
| 2811 | "" | 1.0 | 1.1 | 2.0) |
| 2812 | # OK |
| 2813 | ;; |
| 2814 | *) |
| 2815 | echo "Unknown architecture used in --with-arch=$with_arch" 1>&2 |
| 2816 | exit 1 |
| 2817 | ;; |
| 2818 | esac |
| 2819 | |
| 2820 | case "$with_schedule" in |
| 2821 | "" | 700 | 7100 | 7100LC | 7200 | 7300 | 8000) |
| 2822 | # OK |
| 2823 | ;; |
| 2824 | *) |
| 2825 | echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2 |
| 2826 | exit 1 |
| 2827 | ;; |
| 2828 | esac |
| 2829 | ;; |
| 2830 | |
| 2831 | i[34567]86-*-* | x86_64-*-*) |
| 2832 | supported_defaults="arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64" |
| 2833 | for which in arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64; do |
| 2834 | eval "val=\$with_$which" |
| 2835 | case ${val} in |
| 2836 | i386 | i486 \ |
| 2837 | | i586 | pentium | pentium-mmx | winchip-c6 | winchip2 \ |
| 2838 | | c3 | c3-2 | i686 | pentiumpro | pentium2 | pentium3 \ |
| 2839 | | pentium4 | k6 | k6-2 | k6-3 | athlon | athlon-tbird \ |
| 2840 | | athlon-4 | athlon-xp | athlon-mp | geode \ |
| 2841 | | prescott | pentium-m | pentium4m | pentium3m) |
| 2842 | case "${target}" in |
| 2843 | x86_64-*-*) |
| 2844 | case "x$which" in |
| 2845 | *_32) |
| 2846 | ;; |
| 2847 | *) |
| 2848 | echo "CPU given in --with-$which=$val doesn't support 64bit mode." 1>&2 |
| 2849 | exit 1 |
| 2850 | ;; |
| 2851 | esac |
| 2852 | ;; |
| 2853 | esac |
| 2854 | # OK |
| 2855 | ;; |
| 2856 | "" | amdfam10 | barcelona | k8-sse3 | opteron-sse3 | athlon64-sse3 | k8 | opteron | athlon64 | athlon-fx | nocona | core2 | generic) |
| 2857 | # OK |
| 2858 | ;; |
| 2859 | *) |
| 2860 | echo "Unknown CPU given in --with-$which=$val." 1>&2 |
| 2861 | exit 1 |
| 2862 | ;; |
| 2863 | esac |
| 2864 | done |
| 2865 | ;; |
| 2866 | |
| 2867 | mips*-*-*) |
| 2868 | supported_defaults="abi arch float tune divide llsc mips-plt" |
| 2869 | |
| 2870 | case ${with_float} in |
| 2871 | "" | soft | hard) |
| 2872 | # OK |
| 2873 | ;; |
| 2874 | *) |
| 2875 | echo "Unknown floating point type used in --with-float=$with_float" 1>&2 |
| 2876 | exit 1 |
| 2877 | ;; |
| 2878 | esac |
| 2879 | |
| 2880 | case ${with_abi} in |
| 2881 | "" | 32 | o64 | n32 | 64 | eabi) |
| 2882 | # OK |
| 2883 | ;; |
| 2884 | *) |
| 2885 | echo "Unknown ABI used in --with-abi=$with_abi" 1>&2 |
| 2886 | exit 1 |
| 2887 | ;; |
| 2888 | esac |
| 2889 | |
| 2890 | case ${with_divide} in |
| 2891 | "" | breaks | traps) |
| 2892 | # OK |
| 2893 | ;; |
| 2894 | *) |
| 2895 | echo "Unknown division check type use in --with-divide=$with_divide" 1>&2 |
| 2896 | exit 1 |
| 2897 | ;; |
| 2898 | esac |
| 2899 | |
| 2900 | case ${with_llsc} in |
| 2901 | yes) |
| 2902 | with_llsc=llsc |
| 2903 | ;; |
| 2904 | no) |
| 2905 | with_llsc="no-llsc" |
| 2906 | ;; |
| 2907 | "") |
| 2908 | # OK |
| 2909 | ;; |
| 2910 | *) |
| 2911 | echo "Unknown llsc type used in --with-llsc" 1>&2 |
| 2912 | exit 1 |
| 2913 | ;; |
| 2914 | esac |
| 2915 | |
| 2916 | case ${with_mips_plt} in |
| 2917 | yes) |
| 2918 | with_mips_plt=plt |
| 2919 | ;; |
| 2920 | no) |
| 2921 | with_mips_plt=no-plt |
| 2922 | ;; |
| 2923 | "") |
| 2924 | ;; |
| 2925 | *) |
| 2926 | echo "Unknown --with-mips-plt argument: $with_mips_plt" 1>&2 |
| 2927 | exit 1 |
| 2928 | ;; |
| 2929 | esac |
| 2930 | ;; |
| 2931 | |
| 2932 | powerpc*-*-* | rs6000-*-*) |
| 2933 | supported_defaults="cpu float tune" |
| 2934 | |
| 2935 | for which in cpu tune; do |
| 2936 | eval "val=\$with_$which" |
| 2937 | case ${val} in |
| 2938 | default32 | default64) |
| 2939 | with_which="with_$which" |
| 2940 | eval $with_which= |
| 2941 | ;; |
| 2942 | 405cr) |
| 2943 | tm_defines="${tm_defines} CONFIG_PPC405CR" |
| 2944 | eval "with_$which=405" |
| 2945 | ;; |
| 2946 | "" | common \ |
| 2947 | | power | power[234567] | power6x | powerpc | powerpc64 \ |
| 2948 | | rios | rios1 | rios2 | rsc | rsc1 | rs64a \ |
| 2949 | | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \ |
| 2950 | | 505 | 601 | 602 | 603 | 603e | ec603e | 604 \ |
| 2951 | | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \ |
| 2952 | | e300c[23] | 854[08] | e500mc \ |
| 2953 | | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5 | cell) |
| 2954 | # OK |
| 2955 | ;; |
| 2956 | *) |
| 2957 | echo "Unknown cpu used in --with-$which=$val." 1>&2 |
| 2958 | exit 1 |
| 2959 | ;; |
| 2960 | esac |
| 2961 | done |
| 2962 | ;; |
| 2963 | |
| 2964 | s390*-*-*) |
| 2965 | supported_defaults="arch mode tune" |
| 2966 | |
| 2967 | for which in arch tune; do |
| 2968 | eval "val=\$with_$which" |
| 2969 | case ${val} in |
| 2970 | "" | g5 | g6 | z900 | z990 | z9-109 | z9-ec | z10) |
| 2971 | # OK |
| 2972 | ;; |
| 2973 | *) |
| 2974 | echo "Unknown cpu used in --with-$which=$val." 1>&2 |
| 2975 | exit 1 |
| 2976 | ;; |
| 2977 | esac |
| 2978 | done |
| 2979 | |
| 2980 | case ${with_mode} in |
| 2981 | "" | esa | zarch) |
| 2982 | # OK |
| 2983 | ;; |
| 2984 | *) |
| 2985 | echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2 |
| 2986 | exit 1 |
| 2987 | ;; |
| 2988 | esac |
| 2989 | ;; |
| 2990 | |
| 2991 | sh[123456ble]-*-* | sh-*-*) |
| 2992 | supported_defaults="cpu" |
| 2993 | case "`echo $with_cpu | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz- | sed s/sh/m/`" in |
| 2994 | "" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu ) |
| 2995 | # OK |
| 2996 | ;; |
| 2997 | m2a | m2a-single | m2a-single-only | m2a-nofpu) |
| 2998 | ;; |
| 2999 | m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al) |
| 3000 | ;; |
| 3001 | *) |
| 3002 | echo "Unknown CPU used in --with-cpu=$with_cpu, known values:" 1>&2 |
| 3003 | echo "m1 m2 m2e m3 m3e m4 m4-single m4-single-only m4-nofpu" 1>&2 |
| 3004 | echo "m4a m4a-single m4a-single-only m4a-nofpu m4al" 1>&2 |
| 3005 | echo "m2a m2a-single m2a-single-only m2a-nofpu" 1>&2 |
| 3006 | exit 1 |
| 3007 | ;; |
| 3008 | esac |
| 3009 | ;; |
| 3010 | sparc*-*-*) |
| 3011 | supported_defaults="cpu float tune" |
| 3012 | |
| 3013 | for which in cpu tune; do |
| 3014 | eval "val=\$with_$which" |
| 3015 | case ${val} in |
| 3016 | "" | sparc | sparcv9 | sparc64 | sparc86x \ |
| 3017 | | v7 | cypress | v8 | supersparc | sparclite | f930 \ |
| 3018 | | f934 | hypersparc | sparclite86x | sparclet | tsc701 \ |
| 3019 | | v9 | ultrasparc | ultrasparc3 | niagara | niagara2) |
| 3020 | # OK |
| 3021 | ;; |
| 3022 | *) |
| 3023 | echo "Unknown cpu used in --with-$which=$val" 1>&2 |
| 3024 | exit 1 |
| 3025 | ;; |
| 3026 | esac |
| 3027 | done |
| 3028 | |
| 3029 | case ${with_float} in |
| 3030 | "" | soft | hard) |
| 3031 | # OK |
| 3032 | ;; |
| 3033 | *) |
| 3034 | echo "Unknown floating point type used in --with-float=$with_float" 1>&2 |
| 3035 | exit 1 |
| 3036 | ;; |
| 3037 | esac |
| 3038 | ;; |
| 3039 | |
| 3040 | spu-*-*) |
| 3041 | supported_defaults="arch tune" |
| 3042 | |
| 3043 | for which in arch tune; do |
| 3044 | eval "val=\$with_$which" |
| 3045 | case ${val} in |
| 3046 | "" | cell | celledp) |
| 3047 | # OK |
| 3048 | ;; |
| 3049 | *) |
| 3050 | echo "Unknown cpu used in --with-$which=$val." 1>&2 |
| 3051 | exit 1 |
| 3052 | ;; |
| 3053 | esac |
| 3054 | done |
| 3055 | ;; |
| 3056 | |
| 3057 | v850*-*-*) |
| 3058 | supported_defaults=cpu |
| 3059 | case ${with_cpu} in |
| 3060 | "" | v850e | v850e1) |
| 3061 | # OK |
| 3062 | ;; |
| 3063 | *) |
| 3064 | echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2 |
| 3065 | exit 1 |
| 3066 | ;; |
| 3067 | esac |
| 3068 | ;; |
| 3069 | esac |
| 3070 | |
| 3071 | # Set some miscellaneous flags for particular targets. |
| 3072 | target_cpu_default2= |
| 3073 | case ${target} in |
| 3074 | alpha*-*-*) |
| 3075 | if test x$gas = xyes |
| 3076 | then |
| 3077 | target_cpu_default2="MASK_GAS" |
| 3078 | fi |
| 3079 | ;; |
| 3080 | |
| 3081 | arm*-*-*) |
| 3082 | if test x$target_cpu_cname = x |
| 3083 | then |
| 3084 | target_cpu_default2=TARGET_CPU_generic |
| 3085 | else |
| 3086 | target_cpu_default2=TARGET_CPU_$target_cpu_cname |
| 3087 | fi |
| 3088 | ;; |
| 3089 | |
| 3090 | hppa*-*-*) |
| 3091 | target_cpu_default2="MASK_BIG_SWITCH" |
| 3092 | if test x$gas = xyes |
| 3093 | then |
| 3094 | target_cpu_default2="${target_cpu_default2}|MASK_GAS|MASK_JUMP_IN_DELAY" |
| 3095 | fi |
| 3096 | ;; |
| 3097 | |
| 3098 | fido*-*-* | m68k*-*-*) |
| 3099 | target_cpu_default2=$m68k_cpu_ident |
| 3100 | if [ x"$m68k_arch_family" != x ]; then |
| 3101 | tmake_file="m68k/t-$m68k_arch_family $tmake_file" |
| 3102 | fi |
| 3103 | ;; |
| 3104 | |
| 3105 | i[34567]86-*-darwin* | x86_64-*-darwin*) |
| 3106 | tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp" |
| 3107 | ;; |
| 3108 | i[34567]86-*-linux* | x86_64-*-linux* | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu) |
| 3109 | tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp i386/t-linux" |
| 3110 | ;; |
| 3111 | ia64*-*-linux*) |
| 3112 | tmake_file="${tmake_file} ia64/t-fprules-softfp soft-fp/t-softfp" |
| 3113 | ;; |
| 3114 | |
| 3115 | mips*-*-*) |
| 3116 | if test x$gnu_ld = xyes |
| 3117 | then |
| 3118 | target_cpu_default2="MASK_SPLIT_ADDRESSES" |
| 3119 | fi |
| 3120 | case ${target} in |
| 3121 | mips*el-*-*) |
| 3122 | tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines" |
| 3123 | ;; |
| 3124 | esac |
| 3125 | if test "x$enable_gofast" = xyes |
| 3126 | then |
| 3127 | tm_defines="US_SOFTWARE_GOFAST $tm_defines" |
| 3128 | tmake_file="mips/t-gofast $tmake_file" |
| 3129 | else |
| 3130 | tmake_file="mips/t-mips $tmake_file" |
| 3131 | fi |
| 3132 | ;; |
| 3133 | |
| 3134 | powerpc*-*-* | rs6000-*-*) |
| 3135 | # FIXME: The PowerPC port uses the value set at compile time, |
| 3136 | # although it's only cosmetic. |
| 3137 | if test "x$with_cpu" != x |
| 3138 | then |
| 3139 | target_cpu_default2="\\\"$with_cpu\\\"" |
| 3140 | fi |
| 3141 | out_file=rs6000/rs6000.c |
| 3142 | c_target_objs="${c_target_objs} rs6000-c.o" |
| 3143 | cxx_target_objs="${cxx_target_objs} rs6000-c.o" |
| 3144 | tmake_file="rs6000/t-rs6000 ${tmake_file}" |
| 3145 | |
| 3146 | if test x$enable_e500_double = xyes |
| 3147 | then |
| 3148 | tm_file="$tm_file rs6000/e500-double.h" |
| 3149 | fi |
| 3150 | ;; |
| 3151 | |
| 3152 | sh[123456ble]*-*-* | sh-*-*) |
| 3153 | c_target_objs="${c_target_objs} sh-c.o" |
| 3154 | cxx_target_objs="${cxx_target_objs} sh-c.o" |
| 3155 | ;; |
| 3156 | |
| 3157 | sparc*-*-*) |
| 3158 | # Some standard aliases. |
| 3159 | case x$with_cpu in |
| 3160 | xsparc) |
| 3161 | with_cpu=v7 |
| 3162 | ;; |
| 3163 | xsparcv9 | xsparc64) |
| 3164 | with_cpu=v9 |
| 3165 | ;; |
| 3166 | esac |
| 3167 | |
| 3168 | # The SPARC port checks this value at compile-time. |
| 3169 | target_cpu_default2="TARGET_CPU_$with_cpu" |
| 3170 | ;; |
| 3171 | v850*-*-*) |
| 3172 | # FIXME: The v850 is "special" in that it does not support |
| 3173 | # runtime CPU selection, only --with-cpu. |
| 3174 | case "x$with_cpu" in |
| 3175 | x) |
| 3176 | ;; |
| 3177 | xv850e) |
| 3178 | target_cpu_default2="TARGET_CPU_$with_cpu" |
| 3179 | ;; |
| 3180 | esac |
| 3181 | ;; |
| 3182 | esac |
| 3183 | |
| 3184 | t= |
| 3185 | all_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" |
| 3186 | for option in $all_defaults |
| 3187 | do |
| 3188 | eval "val=\$with_"`echo $option | sed s/-/_/g` |
| 3189 | if test -n "$val"; then |
| 3190 | case " $supported_defaults " in |
| 3191 | *" $option "*) |
| 3192 | ;; |
| 3193 | *) |
| 3194 | echo "This target does not support --with-$option." 2>&1 |
| 3195 | echo "Valid --with options are: $supported_defaults" 2>&1 |
| 3196 | exit 1 |
| 3197 | ;; |
| 3198 | esac |
| 3199 | |
| 3200 | if test "x$t" = x |
| 3201 | then |
| 3202 | t="{ \"$option\", \"$val\" }" |
| 3203 | else |
| 3204 | t="${t}, { \"$option\", \"$val\" }" |
| 3205 | fi |
| 3206 | fi |
| 3207 | done |
| 3208 | |
| 3209 | if test "x$t" = x |
| 3210 | then |
| 3211 | configure_default_options="{ { NULL, NULL} }" |
| 3212 | else |
| 3213 | configure_default_options="{ ${t} }" |
| 3214 | fi |
| 3215 | |
| 3216 | if test "$target_cpu_default2" != "" |
| 3217 | then |
| 3218 | if test "$target_cpu_default" != "" |
| 3219 | then |
| 3220 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" |
| 3221 | else |
| 3222 | target_cpu_default=$target_cpu_default2 |
| 3223 | fi |
| 3224 | fi |