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