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