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