]>
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 | # | |
38 | # gas_flag Either yes or no depending on whether GNU as was | |
39 | # requested. | |
40 | # | |
41 | # gnu_ld_flag Either yes or no depending on whether GNU ld was | |
42 | # requested. | |
43 | ||
44 | # This file sets the following shell variables for use by the | |
45 | # autoconf-generated configure script: | |
46 | # | |
47 | # cpu_type The name of the cpu, if different from machine. | |
48 | # | |
d5355cb2 JDA |
49 | # tm_defines List of target macros to define for all compilations. |
50 | # | |
61ed06c3 | 51 | # tm_file A list of target macro files, if different from |
32fb7c9d FS |
52 | # "$cpu_type/$cpu_type.h". Usually it's constructed |
53 | # per target in a way like this: | |
c40409ce | 54 | # tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h" |
32fb7c9d FS |
55 | # Note that the preferred order is: |
56 | # - specific target header "${cpu_type}/${cpu_type.h}" | |
c40409ce | 57 | # - generic headers like dbxelf.h elfos.h, netware.h, etc. |
32fb7c9d FS |
58 | # - specializing target headers like ${cpu_type.h}/elf.h |
59 | # This helps to keep OS specific stuff out of the CPU | |
60 | # defining header ${cpu_type}/${cpu_type.h}. | |
61ed06c3 HPN |
61 | # |
62 | # tm_p_file Location of file with declarations for functions | |
63 | # in $out_file. | |
64 | # | |
65 | # out_file The name of the machine description C support | |
66 | # file, if different from "$cpu_type/$cpu_type.c". | |
67 | # | |
68 | # md_file The name of the machine-description file, if | |
69 | # different from "$cpu_type/$cpu_type.md". | |
70 | # | |
71 | # tmake_file A list of machine-description-specific | |
72 | # makefile-fragments, if different from | |
73 | # "$cpu_type/t-$cpu_type". | |
74 | # | |
1c0ca89d ZW |
75 | # extra_modes The name of the file containing a list of extra |
76 | # machine modes, if necessary and different from | |
77 | # "$cpu_type/$cpu_type-modes.def". | |
78 | # | |
61ed06c3 HPN |
79 | # extra_objs List of extra objects that should be linked into |
80 | # the compiler proper (cc1, cc1obj, cc1plus) | |
81 | # depending on target. | |
82 | # | |
83 | # extra_headers List of used header files from the directory | |
817e13c4 | 84 | # config/${cpu_type}. |
61ed06c3 HPN |
85 | # |
86 | # host_xmake_file List of host-specific makefile-fragments. | |
87 | # | |
88 | # extra_passes List of extra executables compiled for this target | |
89 | # machine, used for compiling from source to object. | |
90 | # | |
91 | # extra_parts List of extra object files that should be compiled | |
92 | # for this target machine. | |
93 | # | |
94 | # extra_programs Like extra_passes, but these are used when linking. | |
95 | # | |
ff7cc307 | 96 | # host_extra_objs List of extra host-dependent objects that should |
61ed06c3 HPN |
97 | # be linked into the compiler proper. |
98 | # | |
ff7cc307 | 99 | # host_extra_gcc_objs List of extra host-dependent objects that should |
61ed06c3 HPN |
100 | # be linked into the gcc driver. |
101 | # | |
476d9098 GK |
102 | # out_host_hook_obj An object file that provides the host hooks. |
103 | # | |
ff7cc307 | 104 | # c_target_objs List of extra target-dependent objects that be |
aac69a49 | 105 | # linked into the C compiler only. |
0e5a4ad8 | 106 | # |
ff7cc307 | 107 | # cxx_target_objs List of extra target-dependent objects that be |
aac69a49 | 108 | # linked into the C++ compiler only. |
0e5a4ad8 | 109 | # |
ef69da62 SS |
110 | # target_gtfiles List of extra source files with type information. |
111 | # | |
61ed06c3 HPN |
112 | # build_xm_defines List of macros to define when compiling for the |
113 | # build machine. | |
114 | # | |
115 | # build_xm_file List of files to include when compiling for the | |
116 | # build machine. | |
117 | # | |
118 | # host_xm_defines List of macros to define when compiling for the | |
119 | # host machine. | |
120 | # | |
121 | # host_xm_file List of files to include when compiling for the | |
122 | # host machine. | |
123 | # | |
124 | # xm_defines List of macros to define when compiling for the | |
125 | # target machine. | |
126 | # | |
127 | # xm_file List of files to include when compiling for the | |
128 | # target machine. | |
129 | # | |
130 | # use_collect2 Set to yes or no, depending on whether collect2 | |
131 | # will be used. | |
132 | # | |
133 | # target_cpu_default Set to override the default target model. | |
134 | # | |
135 | # build_install_headers_dir | |
136 | # Target to use when installing header files. | |
137 | # | |
61ed06c3 HPN |
138 | # host_truncate_target |
139 | # Non-empty if the target name should be truncated | |
140 | # on this host, due to filename length issues. | |
141 | # | |
142 | # gdb_needs_out_file_path | |
143 | # Set to yes if gdb needs a dir command with | |
144 | # `dirname $out_file`. | |
145 | # | |
146 | # build_exeext Set to the suffix, if the build machine requires | |
147 | # executables to have a file name suffix. | |
148 | # | |
149 | # host_exeext Set to the suffix, if the host machine requires | |
150 | # executables to have a file name suffix. | |
151 | # | |
152 | # thread_file Set to control which thread package to use. | |
153 | # | |
154 | # gas Set to yes or no depending on whether the target | |
155 | # system normally uses GNU as. | |
4977bab6 ZW |
156 | # |
157 | # need_64bit_hwint Set to yes if HOST_WIDE_INT must be 64 bits wide | |
158 | # for this target. This is true iff | |
159 | # MAX_LONG_TYPE_SIZE is 64. (The code which | |
160 | # determines the underlying integral type for | |
161 | # HOST_WIDE_INT cannot see the definition of | |
162 | # MAX_LONG_TYPE_SIZE.) | |
61ed06c3 HPN |
163 | |
164 | # The following variables are used in each case-construct to build up the | |
165 | # outgoing variables: | |
166 | # | |
167 | # xmake_file Makefile-fragment when this system is as a host, | |
168 | # for host_xmake_file. | |
169 | # | |
170 | # extra_host_objs List of extra objects that should be linked into | |
171 | # the compiler proper when this system is a host, | |
172 | # for host_extra_objs. | |
173 | # | |
476d9098 GK |
174 | # host_hook_obj An object file that provides the host hooks. |
175 | # | |
61ed06c3 HPN |
176 | # install_headers_dir Makefile-target for how the header file directory |
177 | # is installed, when this system is a build system, | |
178 | # for build_install_headers_dir. | |
179 | # | |
180 | # truncate_target Non-empty if the target name should be truncated | |
181 | # when this system is a host, due to filename length | |
182 | # issues. For host_truncate_target. | |
183 | # | |
184 | # exeext The suffix for executables on this system. | |
185 | # | |
186 | # gnu_ld Set to yes or no depending on whether the target | |
187 | # system normally uses GNU ld. | |
188 | ||
189 | out_file= | |
190 | xmake_file= | |
191 | tmake_file= | |
192 | extra_headers= | |
193 | extra_passes= | |
194 | extra_parts= | |
195 | extra_programs= | |
196 | extra_objs= | |
197 | extra_host_objs= | |
198 | extra_gcc_objs= | |
aac69a49 NC |
199 | c_target_objs= |
200 | cxx_target_objs= | |
476d9098 | 201 | host_hook_obj=host-default.o |
d5355cb2 | 202 | tm_defines= |
61ed06c3 | 203 | xm_defines= |
61ed06c3 HPN |
204 | # Set this to force installation and use of collect2. |
205 | use_collect2= | |
206 | # Set this to override the default target model. | |
207 | target_cpu_default= | |
208 | # Set this to control how the header file directory is installed. | |
209 | install_headers_dir=install-headers-tar | |
61ed06c3 HPN |
210 | # Set this if directory names should be truncated to 14 characters. |
211 | truncate_target= | |
212 | # Set this if gdb needs a dir command with `dirname $out_file` | |
213 | gdb_needs_out_file_path= | |
214 | # Set this if the build machine requires executables to have a | |
215 | # file name suffix. | |
216 | exeext= | |
217 | # Set this to control which thread package will be used. | |
218 | thread_file= | |
219 | # Reinitialize these from the flag values every loop pass, since some | |
220 | # configure entries modify them. | |
221 | gas="$gas_flag" | |
222 | gnu_ld="$gnu_ld_flag" | |
223 | enable_threads=$enable_threads_flag | |
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 | ;; |
250315f7 | 279 | arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*) |
d19fb8e3 NC |
280 | cpu_type=arm |
281 | ;; | |
61ed06c3 HPN |
282 | i[34567]86-*-*) |
283 | cpu_type=i386 | |
6f1a6c5b | 284 | extra_headers="mmintrin.h xmmintrin.h" |
61ed06c3 | 285 | ;; |
14f73b5a JH |
286 | x86_64-*-*) |
287 | cpu_type=i386 | |
8559c8c0 | 288 | extra_headers="mmintrin.h xmmintrin.h" |
4977bab6 | 289 | need_64bit_hwint=yes |
14f73b5a | 290 | ;; |
817e13c4 JM |
291 | ia64-*-*) |
292 | extra_headers=ia64intrin.h | |
4977bab6 | 293 | need_64bit_hwint=yes |
817e13c4 | 294 | ;; |
c21a2372 | 295 | hppa*-*-* | parisc*-*-*) |
61ed06c3 HPN |
296 | cpu_type=pa |
297 | ;; | |
2fd95d71 | 298 | m680[012]0-*-*) |
61ed06c3 | 299 | cpu_type=m68k |
ba1e6c0b JM |
300 | extra_headers=math-68881.h |
301 | ;; | |
302 | m68k-*-*) | |
303 | extra_headers=math-68881.h | |
61ed06c3 HPN |
304 | ;; |
305 | mips*-*-*) | |
306 | cpu_type=mips | |
4977bab6 | 307 | need_64bit_hwint=yes |
61ed06c3 | 308 | ;; |
61ed06c3 HPN |
309 | powerpc*-*-*) |
310 | cpu_type=rs6000 | |
518878e1 | 311 | extra_headers="ppc-asm.h altivec.h spe.h" |
4977bab6 ZW |
312 | need_64bit_hwint=yes |
313 | ;; | |
314 | rs6000*-*-*) | |
315 | need_64bit_hwint=yes | |
316 | ;; | |
317 | sparc64*-*-*) | |
318 | cpu_type=sparc | |
319 | need_64bit_hwint=yes | |
61ed06c3 | 320 | ;; |
61ed06c3 HPN |
321 | sparc*-*-*) |
322 | cpu_type=sparc | |
323 | ;; | |
4977bab6 ZW |
324 | s390*-*-*) |
325 | need_64bit_hwint=yes | |
326 | ;; | |
b4eb03fe JT |
327 | # Note the 'l'; we need to be able to match e.g. "shle" or "shl". |
328 | sh[123456789l]*-*-*) | |
fa5322fa | 329 | cpu_type=sh |
4977bab6 | 330 | need_64bit_hwint=yes |
fa5322fa | 331 | ;; |
7f0db92a SS |
332 | tic4x-*-*) |
333 | cpu_type=c4x | |
334 | ;; | |
61ed06c3 HPN |
335 | esac |
336 | ||
337 | tm_file=${cpu_type}/${cpu_type}.h | |
b6d7afec | 338 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h |
61ed06c3 | 339 | then |
b6d7afec ZW |
340 | tm_p_file=${cpu_type}/${cpu_type}-protos.h |
341 | fi | |
1c0ca89d ZW |
342 | extra_modes= |
343 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def | |
344 | then | |
345 | extra_modes=${cpu_type}/${cpu_type}-modes.def | |
346 | fi | |
e564e618 DB |
347 | |
348 | case $machine in | |
349 | x86_64-*-*) | |
350 | tm_file="i386/biarch64.h ${tm_file}" | |
351 | ;; | |
352 | esac | |
353 | ||
61ed06c3 HPN |
354 | # On a.out targets, we need to use collect2. |
355 | case $machine in | |
356 | *-*-*aout*) | |
357 | use_collect2=yes | |
358 | ;; | |
0e5a4ad8 | 359 | esac |
61ed06c3 | 360 | |
4977bab6 | 361 | # Common parts for widely ported systems. |
61ed06c3 HPN |
362 | case $machine in |
363 | *-*-linux*) | |
609a87f3 | 364 | case $machine in |
7c942e17 | 365 | *-*-linux*libc1* | *-*-linux*aout*) |
609a87f3 JJ |
366 | ;; |
367 | *) | |
66df2ac2 L |
368 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
369 | gas=yes gnu_ld=yes | |
609a87f3 JJ |
370 | case x${enable_threads} in |
371 | x | xyes | xposix) thread_file='posix' | |
372 | ;; | |
373 | esac | |
374 | ;; | |
375 | esac | |
61ed06c3 | 376 | ;; |
5eeab2e3 MK |
377 | *-*-gnu*) |
378 | # On the Hurd, the setup is just about the same on | |
379 | # each different CPU. The specific machines that we | |
380 | # support are matched above and just set $cpu_type. | |
f6e0c56c | 381 | tm_file="${cpu_type}/gnu.h" |
275b60d6 | 382 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" |
5eeab2e3 MK |
383 | # GNU always uses ELF. |
384 | elf=yes | |
385 | # GNU tools are the only tools. | |
386 | gnu_ld=yes | |
387 | gas=yes | |
388 | # These details are the same as for Linux. | |
5eeab2e3 | 389 | # But here we need a little extra magic. |
7b3a4df5 | 390 | tmake_file="t-slibgcc-elf-ver t-linux t-gnu" |
f6e0c56c | 391 | case $machine in |
83248d49 RM |
392 | alpha*) |
393 | tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}" | |
394 | ;; | |
f6e0c56c | 395 | i[34567]86-*-*) |
39ed301b | 396 | 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 | 397 | ;; |
f6e0c56c | 398 | esac |
5eeab2e3 | 399 | ;; |
61ed06c3 HPN |
400 | *-*-openbsd*) |
401 | tm_file=${cpu_type}/openbsd.h | |
f1cf4606 | 402 | tmake_file="t-libc-ok t-openbsd t-libgcc-pic" |
61ed06c3 HPN |
403 | if test x$enable_threads = xyes; then |
404 | thread_file='posix' | |
405 | tmake_file="${tmake_file} t-openbsd-thread" | |
406 | fi | |
407 | ;; | |
f982f805 | 408 | *-*-netbsd*) |
12345543 | 409 | tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd" |
f982f805 JT |
410 | gas=yes |
411 | gnu_ld=yes | |
51b7c247 JT |
412 | |
413 | # NetBSD 2.0 and later get POSIX threads enabled by default. | |
414 | # Allow them to be explicitly enabled on any other version. | |
a0494c05 | 415 | case x${enable_threads} in |
51b7c247 JT |
416 | x) |
417 | case $machine in | |
418 | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) | |
419 | thread_file='posix' | |
420 | tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS" | |
421 | ;; | |
422 | esac | |
423 | ;; | |
a0494c05 JT |
424 | xyes | xposix) |
425 | thread_file='posix' | |
ee3c755a | 426 | tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS" |
a0494c05 JT |
427 | ;; |
428 | esac | |
1169f9e0 JT |
429 | |
430 | # NetBSD 1.7 and later are set up to use GCC's crtstuff for | |
431 | # ELF configurations. We will clear extra_parts in the | |
432 | # a.out configurations. | |
433 | case $machine in | |
4e85eada | 434 | *-*-netbsd*1.[7-9]* | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) |
1169f9e0 JT |
435 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" |
436 | ;; | |
437 | esac | |
f982f805 | 438 | ;; |
9e405fe5 LR |
439 | *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) |
440 | # This is the place-holder for the generic a.out configuration | |
441 | # of FreeBSD. No actual configuration resides here since | |
442 | # there was only ever a bare-bones ix86 configuration for | |
443 | # a.out and it exists solely in the machine-specific section. | |
444 | # This place-holder must exist to avoid dropping into | |
445 | # the generic ELF configuration of FreeBSD (i.e. it must be | |
446 | # ordered before that section). | |
447 | ;; | |
448 | *-*-freebsd*) | |
449 | # This is the generic ELF configuration of FreeBSD. Later | |
450 | # machine-specific sections may refine and add to this | |
451 | # configuration. | |
452 | # | |
453 | # Due to tm_file entry ordering issues that vary between cpu | |
454 | # architectures, we only define fbsd_tm_file to allow the | |
455 | # machine-specific section to dictate the final order of all | |
456 | # entries of tm_file with the minor exception that components | |
457 | # of the tm_file set here will always be of the form: | |
458 | # | |
b91da81f | 459 | # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h |
9e405fe5 LR |
460 | # |
461 | # The machine-specific section should not tamper with this | |
462 | # ordering but may order all other entries of tm_file as it | |
463 | # pleases around the provided core setting. | |
464 | gas=yes | |
465 | gnu_ld=yes | |
466 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
467 | case $machine in | |
468 | *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";; | |
469 | *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";; | |
470 | *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";; | |
471 | *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";; | |
472 | *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;; | |
473 | esac | |
bc3a44db | 474 | tmake_file="t-slibgcc-elf-ver t-freebsd" |
243a7070 | 475 | xmake_file=none |
9e405fe5 LR |
476 | case x${enable_threads} in |
477 | xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";; | |
478 | x | xyes | xpthreads | xposix) | |
479 | thread_file='posix' | |
480 | tmake_file="${tmake_file} t-freebsd-thread" | |
bc3a44db LR |
481 | # Before 5.0, FreeBSD can't bind shared libraries to -lc |
482 | # when "optionally" threaded via weak pthread_* checks. | |
483 | case $machine in | |
484 | *-*-freebsd[34] | *-*-freebsd[34].*) | |
485 | tmake_file="${tmake_file} t-slibgcc-nolc-override";; | |
486 | esac | |
9e405fe5 LR |
487 | ;; |
488 | *) echo 'Unknown thread configuration for FreeBSD'; exit 1;; | |
489 | esac | |
b7e0196a | 490 | fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h" |
9e405fe5 | 491 | ;; |
40b4cdbf GK |
492 | *-*-darwin*) |
493 | tm_file="${tm_file} darwin.h" | |
494 | tm_p_file="${tm_p_file} darwin-protos.h" | |
495 | tmake_file="t-darwin" | |
496 | target_gtfiles="\$(srcdir)/config/darwin.c" | |
497 | c_target_objs="darwin-c.o" | |
498 | cxx_target_objs="darwin-c.o" | |
499 | extra_parts="crt2.o" | |
064b6c70 | 500 | extra_objs="darwin.o" |
40b4cdbf | 501 | ;; |
4977bab6 ZW |
502 | *-*-vxworks*) |
503 | tmake_file=t-vxworks | |
504 | tm_file="${tm_file} elfos.h svr4.h vxworks.h" | |
505 | thread_file='vxworks' | |
506 | use_collect2=yes | |
4977bab6 | 507 | ;; |
61ed06c3 HPN |
508 | esac |
509 | ||
510 | case $machine in | |
511 | # Support site-specific machine types. | |
512 | *local*) | |
61ed06c3 | 513 | rest=`echo $machine | sed -e "s/$cpu_type-//"` |
61ed06c3 | 514 | tm_file=${cpu_type}/$rest.h |
4dc0535b ZW |
515 | if test -f $srcdir/config/${cpu_type}/xm-$rest.h |
516 | then xm_file=${cpu_type}/xm-$rest.h | |
61ed06c3 | 517 | fi |
4dc0535b ZW |
518 | if test -f $srcdir/config/${cpu_type}/x-$rest |
519 | then xmake_file=${cpu_type}/x-$rest | |
520 | fi | |
521 | if test -f $srcdir/config/${cpu_type}/t-$rest | |
522 | then tmake_file=${cpu_type}/t-$rest | |
61ed06c3 HPN |
523 | fi |
524 | ;; | |
30102605 RH |
525 | alpha*-*-unicosmk*) |
526 | use_collect2=yes | |
527 | tm_file="${tm_file} alpha/unicosmk.h" | |
0e5a4ad8 | 528 | |
30102605 RH |
529 | # Don't include t-ieee for now because we don't support that yet |
530 | # tmake_file="alpha/t-ieee" | |
531 | tmake_file="alpha/t-unicosmk" | |
532 | ;; | |
61ed06c3 HPN |
533 | alpha*-*-linux*) |
534 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" | |
535 | target_cpu_default="MASK_GAS" | |
cea3bd3e | 536 | tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee" |
61ed06c3 | 537 | ;; |
83248d49 RM |
538 | alpha*-*-gnu*) |
539 | target_cpu_default="MASK_GAS" | |
540 | tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee" | |
541 | ;; | |
61ed06c3 | 542 | alpha*-*-freebsd*) |
9e405fe5 | 543 | tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h" |
61ed06c3 | 544 | target_cpu_default="MASK_GAS" |
cea3bd3e RH |
545 | tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee" |
546 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" | |
61ed06c3 HPN |
547 | ;; |
548 | alpha*-*-netbsd*) | |
f982f805 | 549 | tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h" |
61ed06c3 | 550 | target_cpu_default="MASK_GAS" |
cea3bd3e | 551 | tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" |
61ed06c3 HPN |
552 | ;; |
553 | ||
554 | alpha*-*-openbsd*) | |
cf0005c6 | 555 | tm_file="${cpu_type}/${cpu_type}.h ${tm_file}" |
61ed06c3 HPN |
556 | # default x-alpha is only appropriate for dec-osf. |
557 | target_cpu_default="MASK_GAS" | |
558 | tmake_file="alpha/t-alpha alpha/t-ieee" | |
559 | ;; | |
0e5a4ad8 | 560 | |
c7bdf0a6 | 561 | alpha*-dec-osf[45]*) |
61ed06c3 HPN |
562 | if test x$stabs = xyes |
563 | then | |
564 | tm_file="${tm_file} dbx.h" | |
565 | fi | |
566 | if test x$gas != xyes | |
567 | then | |
568 | extra_passes="mips-tfile mips-tdump" | |
569 | fi | |
570 | use_collect2=yes | |
c7bdf0a6 ZW |
571 | tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4" |
572 | tm_file="${tm_file} alpha/osf.h" | |
817e13c4 | 573 | extra_headers=va_list.h |
61ed06c3 | 574 | case $machine in |
61ed06c3 | 575 | *-*-osf4*) |
61ed06c3 HPN |
576 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
577 | # a broken tar, so we use cpio instead. | |
578 | install_headers_dir=install-headers-cpio | |
c7bdf0a6 ZW |
579 | # Set target_cpu_default except on 4.0a. |
580 | case $machine in | |
581 | *-*-osf4.0a) ;; | |
582 | *) target_cpu_default=MASK_SUPPORT_ARCH | |
583 | esac | |
61ed06c3 HPN |
584 | ;; |
585 | *-*-osf5*) | |
c7bdf0a6 | 586 | tm_file="${tm_file} alpha/osf5.h" |
61ed06c3 HPN |
587 | target_cpu_default=MASK_SUPPORT_ARCH |
588 | ;; | |
589 | esac | |
590 | ;; | |
b6bfa876 | 591 | alpha64-dec-*vms*) |
cf0005c6 | 592 | tm_file="${tm_file} alpha/vms.h alpha/vms64.h" |
4977bab6 | 593 | xm_file="alpha/xm-vms.h" |
b6bfa876 DR |
594 | tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee" |
595 | xmake_file=alpha/x-vms | |
596 | exeext=.exe | |
597 | # This removes the cpu type and manufacturer components and | |
598 | # replaces "." with "_" in the operating system version. | |
599 | case $host in *-*-*vms*) | |
600 | target_alias=`echo $host \ | |
601 | | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'` | |
602 | ;; | |
603 | esac | |
ff3aaf17 | 604 | install_headers_dir=install-headers-cp |
b6bfa876 DR |
605 | prefix=/gnu |
606 | local_prefix=/gnu | |
607 | ;; | |
ef057c45 | 608 | alpha*-dec-*vms*) |
cf0005c6 | 609 | tm_file="${tm_file} alpha/vms.h" |
4dc0535b | 610 | xm_file=alpha/xm-vms.h |
61ed06c3 | 611 | tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee" |
d133777f | 612 | xmake_file=alpha/x-vms |
ef057c45 DR |
613 | exeext=.exe |
614 | # This removes the cpu type and manufacturer components and | |
615 | # replaces "." with "_" in the operating system version. | |
616 | case $host in *-*-*vms*) | |
617 | target_alias=`echo $host \ | |
618 | | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'` | |
619 | ;; | |
620 | esac | |
ff3aaf17 | 621 | install_headers_dir=install-headers-cp |
ef057c45 DR |
622 | prefix=/gnu |
623 | local_prefix=/gnu | |
61ed06c3 | 624 | ;; |
2cc07db4 | 625 | arc-*-elf*) |
c40409ce | 626 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
2cc07db4 RH |
627 | extra_parts="crtinit.o crtfini.o" |
628 | ;; | |
61ed06c3 | 629 | arm-*-coff* | armel-*-coff*) |
5059254f | 630 | tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h" |
61ed06c3 HPN |
631 | tmake_file=arm/t-arm-coff |
632 | ;; | |
61ed06c3 | 633 | arm-semi-aof | armel-semi-aof) |
5059254f | 634 | tm_file="arm/semiaof.h arm/aof.h arm/arm.h" |
7857f134 | 635 | tmake_file=arm/t-semi |
61ed06c3 | 636 | ;; |
5742588d DB |
637 | arm*-*-freebsd*|strongarm*-*-freebsd*) |
638 | tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h" | |
639 | tmake_file="${tmake_file} arm/t-strongarm-elf" | |
640 | ;; | |
69474c3c | 641 | arm*-*-netbsdelf*) |
ff3afb56 JT |
642 | tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h" |
643 | tmake_file="${tmake_file} arm/t-netbsd" | |
69474c3c | 644 | ;; |
61ed06c3 | 645 | arm*-*-netbsd*) |
f982f805 | 646 | tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h" |
61ed06c3 | 647 | tmake_file="t-netbsd arm/t-netbsd" |
1169f9e0 | 648 | extra_parts="" |
5721cd84 | 649 | use_collect2=yes |
61ed06c3 | 650 | ;; |
14879e76 | 651 | arm*-*-linux*) # ARM GNU/Linux with ELF |
c40409ce | 652 | 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 | 653 | tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux" |
61ed06c3 HPN |
654 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
655 | gnu_ld=yes | |
656 | case x${enable_threads} in | |
657 | x | xyes | xpthreads | xposix) | |
658 | thread_file='posix' | |
659 | ;; | |
660 | esac | |
661 | ;; | |
662 | arm*-*-uclinux*) # ARM ucLinux | |
c40409ce | 663 | 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 |
664 | tmake_file=arm/t-arm-elf |
665 | ;; | |
61ed06c3 | 666 | arm*-*-ecos-elf) |
c40409ce | 667 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h" |
61ed06c3 | 668 | tmake_file=arm/t-arm-elf |
0e5a4ad8 | 669 | ;; |
f22b4bc4 | 670 | arm*-*-rtems*) |
f22b4bc4 JS |
671 | 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" |
672 | tmake_file="arm/t-arm-elf t-rtems" | |
673 | if test x$enable_threads = xyes; then | |
674 | thread_file='rtems' | |
675 | fi | |
676 | ;; | |
9b6b54e2 | 677 | arm*-*-elf | ep9312-*-elf) |
c40409ce | 678 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h" |
61ed06c3 HPN |
679 | tmake_file=arm/t-arm-elf |
680 | ;; | |
61ed06c3 | 681 | arm-*-pe*) |
f910b1bb | 682 | tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h arm/pe.h" |
61ed06c3 HPN |
683 | tmake_file=arm/t-pe |
684 | extra_objs="pe.o" | |
685 | ;; | |
686 | avr-*-*) | |
687 | ;; | |
7f0db92a | 688 | c4x-*-rtems* | tic4x-*-rtems*) |
bc98ef7f | 689 | tmake_file="c4x/t-c4x t-rtems" |
fdc76b09 | 690 | tm_file="c4x/c4x.h c4x/rtems.h rtems.h" |
bc98ef7f JS |
691 | if test x$enable_threads = xyes; then |
692 | thread_file='rtems' | |
693 | fi | |
51fabca5 NB |
694 | c_target_objs="c4x-c.o" |
695 | cxx_target_objs="c4x-c.o" | |
bc98ef7f | 696 | ;; |
7f0db92a | 697 | c4x-* | tic4x-*) |
61ed06c3 | 698 | tmake_file=c4x/t-c4x |
51fabca5 NB |
699 | c_target_objs="c4x-c.o" |
700 | cxx_target_objs="c4x-c.o" | |
61ed06c3 | 701 | ;; |
0b85d816 | 702 | cris-*-aout) |
32fb7c9d | 703 | tm_file="dbxelf.h ${tm_file} cris/aout.h" |
0b85d816 HPN |
704 | gas=yes |
705 | tmake_file="cris/t-cris cris/t-aout" | |
706 | ;; | |
707 | cris-*-elf | cris-*-none) | |
c40409ce | 708 | tm_file="dbxelf.h elfos.h ${tm_file}" |
0b85d816 HPN |
709 | tmake_file="cris/t-cris cris/t-elfmulti" |
710 | gas=yes | |
711 | ;; | |
712 | cris-*-linux*) | |
c40409ce | 713 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h" |
0b85d816 | 714 | tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux" |
0b85d816 | 715 | ;; |
61ed06c3 | 716 | d30v-*) |
c40409ce | 717 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
61ed06c3 HPN |
718 | ;; |
719 | dsp16xx-*) | |
720 | ;; | |
61ed06c3 | 721 | fr30-*-elf) |
c40409ce | 722 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
61ed06c3 HPN |
723 | tmake_file=fr30/t-fr30 |
724 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
725 | ;; | |
36a05131 BS |
726 | frv-*-elf) |
727 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file} frv/frv-abi.h" | |
728 | tmake_file=frv/t-frv | |
729 | ;; | |
bc98ef7f JS |
730 | h8300-*-rtems*) |
731 | tmake_file="h8300/t-h8300 t-rtems" | |
f22b4bc4 | 732 | tm_file="h8300/h8300.h h8300/rtems.h rtems.h" |
bc98ef7f JS |
733 | if test x$enable_threads = xyes; then |
734 | thread_file='rtems' | |
735 | fi | |
bc98ef7f | 736 | ;; |
9f5b774b R |
737 | h8300-*-elf*) |
738 | tmake_file="h8300/t-h8300 h8300/t-elf" | |
739 | tm_file="h8300/h8300.h h8300/elf.h" | |
9f5b774b | 740 | ;; |
61ed06c3 | 741 | h8300-*-*) |
61ed06c3 | 742 | ;; |
c21a2372 AM |
743 | hppa*64*-*-linux* | parisc*64*-*-linux*) |
744 | target_cpu_default="(MASK_PA_11 | MASK_PA_20)" | |
581d9404 JDA |
745 | tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h \ |
746 | pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h" | |
c21a2372 | 747 | tmake_file=pa/t-linux64 |
c21a2372 | 748 | gas=yes gnu_ld=yes |
4977bab6 | 749 | need_64bit_hwint=yes |
c21a2372 AM |
750 | ;; |
751 | hppa*-*-linux* | parisc*-*-linux*) | |
90330d31 | 752 | target_cpu_default="MASK_PA_11 | MASK_NO_SPACE_REGS" |
c40409ce | 753 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \ |
c21a2372 | 754 | pa/pa32-regs.h pa/pa32-linux.h" |
7b3a4df5 | 755 | tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux" |
61ed06c3 HPN |
756 | ;; |
757 | hppa*-*-openbsd*) | |
758 | target_cpu_default="MASK_PA_11" | |
14455c64 | 759 | tmake_file=pa/t-bsd |
61ed06c3 HPN |
760 | ;; |
761 | hppa1.1-*-pro*) | |
762 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" | |
c40409ce | 763 | tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h" |
14455c64 | 764 | tmake_file="pa/t-bsd pa/t-pro" |
ed9d6ff9 | 765 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
766 | ;; |
767 | hppa1.1-*-osf*) | |
768 | target_cpu_default="MASK_PA_11" | |
769 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" | |
14455c64 | 770 | tmake_file="pa/t-bsd pa/t-pa" |
ed9d6ff9 | 771 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
772 | use_collect2=yes |
773 | ;; | |
774 | hppa1.1-*-rtems*) | |
775 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" | |
f22b4bc4 | 776 | 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 | 777 | tmake_file="pa/t-bsd pa/t-pro t-rtems" |
ed9d6ff9 | 778 | xmake_file="pa/x-ada" |
64abe03e JS |
779 | if test x$enable_threads = xyes; then |
780 | thread_file='rtems' | |
781 | fi | |
61ed06c3 | 782 | ;; |
61ed06c3 HPN |
783 | hppa1.1-*-bsd*) |
784 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h" | |
785 | target_cpu_default="MASK_PA_11" | |
14455c64 | 786 | tmake_file="pa/t-bsd pa/t-pa" |
ed9d6ff9 | 787 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
788 | use_collect2=yes |
789 | ;; | |
61ed06c3 HPN |
790 | hppa1.1-*-hpux10* | hppa2*-*-hpux10*) |
791 | target_cpu_default="MASK_PA_11" | |
792 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" | |
e4761274 | 793 | tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib" |
ed9d6ff9 | 794 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
795 | if test x$enable_threads = x; then |
796 | enable_threads=$have_pthread_h | |
797 | fi | |
798 | case x${enable_threads} in | |
799 | xyes | xdce) | |
800 | tmake_file="${tmake_file} pa/t-dce-thr" | |
801 | ;; | |
802 | esac | |
803 | install_headers_dir=install-headers-cpio | |
804 | use_collect2=yes | |
805 | ;; | |
806 | hppa1.0-*-hpux10*) | |
807 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" | |
e4761274 | 808 | tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib" |
ed9d6ff9 | 809 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
810 | if test x$enable_threads = x; then |
811 | enable_threads=$have_pthread_h | |
812 | fi | |
813 | case x${enable_threads} in | |
814 | xyes | xdce) | |
815 | tmake_file="${tmake_file} pa/t-dce-thr" | |
816 | ;; | |
817 | esac | |
818 | install_headers_dir=install-headers-cpio | |
819 | use_collect2=yes | |
820 | ;; | |
821 | hppa*64*-*-hpux11*) | |
581d9404 JDA |
822 | if test x$gas = xyes |
823 | then | |
824 | tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \ | |
825 | pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \ | |
826 | pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h" | |
827 | else | |
828 | tm_file="pa/pa64-start.h ${tm_file} dbxelf.h pa/elf.h \ | |
829 | pa/pa64-regs.h pa/long_double.h pa/pa-hpux.h \ | |
830 | pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h" | |
831 | fi | |
4977bab6 | 832 | need_64bit_hwint=yes |
eab854f6 | 833 | tmake_file="pa/t-pa64 pa/t-pa-hpux" |
ed9d6ff9 | 834 | xmake_file="pa/x-ada" |
c81460e4 | 835 | target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)" |
35d434ed | 836 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" |
83eb95f9 SE |
837 | if test x$gnu_ld = xyes |
838 | then | |
839 | target_cpu_default="${target_cpu_default}|MASK_GNU_LD" | |
840 | fi | |
61ed06c3 HPN |
841 | # if [ x$enable_threads = x ]; then |
842 | # enable_threads=$have_pthread_h | |
843 | # fi | |
844 | # if [ x$enable_threads = xyes ]; then | |
845 | # thread_file='dce' | |
846 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
847 | # fi | |
848 | install_headers_dir=install-headers-cpio | |
61ed06c3 HPN |
849 | ;; |
850 | hppa1.1-*-hpux11* | hppa2*-*-hpux11*) | |
851 | target_cpu_default="MASK_PA_11" | |
852 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" | |
e4761274 | 853 | tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib" |
ed9d6ff9 | 854 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
855 | # if test x$enable_threads = x; then |
856 | # enable_threads=$have_pthread_h | |
857 | # fi | |
858 | # if test x$enable_threads = xyes; then | |
859 | # thread_file='dce' | |
860 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
861 | # fi | |
862 | install_headers_dir=install-headers-cpio | |
863 | use_collect2=yes | |
864 | ;; | |
865 | hppa1.0-*-hpux11*) | |
866 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" | |
e4761274 | 867 | tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib" |
ed9d6ff9 | 868 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
869 | # if test x$enable_threads = x; then |
870 | # enable_threads=$have_pthread_h | |
871 | # fi | |
872 | # if test x$enable_threads = xyes; then | |
873 | # thread_file='dce' | |
874 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
875 | # fi | |
876 | install_headers_dir=install-headers-cpio | |
877 | use_collect2=yes | |
878 | ;; | |
61ed06c3 | 879 | i370-*-opened*) # IBM 360/370/390 Architecture |
cbbf876b | 880 | xm_defines='FATAL_EXIT_CODE=12' |
61ed06c3 | 881 | tm_file=i370/oe.h |
14455c64 | 882 | tmake_file="i370/t-oe i370/t-i370" |
51fabca5 NB |
883 | c_target_objs="i370-c.o" |
884 | cxx_target_objs="i370-c.o" | |
61ed06c3 HPN |
885 | ;; |
886 | i370-*-mvs*) | |
cbbf876b | 887 | xm_defines='FATAL_EXIT_CODE=12' |
61ed06c3 | 888 | tm_file=i370/mvs.h |
51fabca5 NB |
889 | tmake_file="i370/t-i370" |
890 | c_target_objs="i370-c.o" | |
891 | cxx_target_objs="i370-c.o" | |
61ed06c3 HPN |
892 | ;; |
893 | i370-*-linux*) | |
c40409ce | 894 | tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h ${tm_file}" |
7b3a4df5 | 895 | tmake_file="t-slibgcc-elf-ver t-linux" |
61ed06c3 | 896 | # broken_install=yes |
61ed06c3 | 897 | elf=yes |
61ed06c3 | 898 | ;; |
b069de3b | 899 | i[34567]86-*-darwin*) |
40b4cdbf | 900 | tm_file="${tm_file} i386/darwin.h" |
b069de3b | 901 | ;; |
61ed06c3 | 902 | i[34567]86-*-elf*) |
39ed301b | 903 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h" |
14455c64 | 904 | tmake_file="i386/t-i386elf t-svr4" |
61ed06c3 | 905 | ;; |
61ed06c3 | 906 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 |
cbbf876b | 907 | xm_defines="SMALL_ARG_MAX" |
7c942e17 | 908 | 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 |
909 | extra_parts="crtbegin.o crtend.o" |
910 | tmake_file=i386/t-crtpic | |
911 | ;; | |
61ed06c3 | 912 | i[34567]86-*-netware) # Intel 80386's running netware |
39ed301b | 913 | 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 |
914 | tmake_file=i386/t-netware |
915 | ;; | |
61ed06c3 | 916 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) |
70305f2b RH |
917 | if test x$gas = xyes |
918 | then | |
919 | tm_file="${tm_file} usegas.h" | |
920 | fi | |
cbbf876b | 921 | xm_defines="SMALL_ARG_MAX" |
39ed301b | 922 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h" |
61ed06c3 HPN |
923 | tmake_file=t-svr4 |
924 | extra_parts="crtbegin.o crtend.o" | |
925 | install_headers_dir=install-headers-cpio | |
926 | ;; | |
61ed06c3 | 927 | i[34567]86-*-aout*) |
39ed301b | 928 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h" |
61ed06c3 HPN |
929 | ;; |
930 | i[34567]86-*-beoself* | i[34567]86-*-beos*) | |
61ed06c3 | 931 | tmake_file='i386/t-beos i386/t-crtpic' |
39ed301b | 932 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h" |
61ed06c3 HPN |
933 | extra_parts='crtbegin.o crtend.o' |
934 | ;; | |
c7bdf0a6 | 935 | i[34567]86-*-freebsd2 | i[34567]86-*-freebsd2.* | i[34567]86-*-freebsd*aout*) |
39ed301b | 936 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h" |
61ed06c3 HPN |
937 | tmake_file=t-freebsd |
938 | ;; | |
939 | i[34567]86-*-freebsd*) | |
39ed301b | 940 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h" |
e564e618 DB |
941 | ;; |
942 | x86_64-*-freebsd*) | |
39ed301b | 943 | 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 | 944 | ;; |
6ea0279f | 945 | i[34567]86-*-netbsdelf*) |
39ed301b | 946 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h" |
6ea0279f | 947 | ;; |
61ed06c3 | 948 | i[34567]86-*-netbsd*) |
39ed301b | 949 | 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 | 950 | tmake_file=t-netbsd |
1169f9e0 | 951 | extra_parts="" |
5721cd84 | 952 | use_collect2=yes |
61ed06c3 | 953 | ;; |
7c884404 | 954 | x86_64-*-netbsd*) |
39ed301b | 955 | 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 | 956 | ;; |
61ed06c3 | 957 | i[34567]86-*-openbsd*) |
39ed301b | 958 | tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h openbsd-oldgas.h openbsd.h ${tm_file}" |
f1cf4606 ME |
959 | # needed to unconfuse gdb |
960 | tmake_file="t-libc-ok t-openbsd i386/t-openbsd" | |
61ed06c3 HPN |
961 | # we need collect2 until our bug is fixed... |
962 | use_collect2=yes | |
963 | ;; | |
964 | i[34567]86-*-coff*) | |
39ed301b | 965 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h" |
61ed06c3 | 966 | ;; |
61ed06c3 HPN |
967 | i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux |
968 | # with a.out format | |
61ed06c3 | 969 | tmake_file="t-linux-aout i386/t-crtstuff" |
39ed301b | 970 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h" |
61ed06c3 | 971 | gnu_ld=yes |
61ed06c3 HPN |
972 | ;; |
973 | i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux | |
974 | # with ELF format using the | |
975 | # GNU/Linux C library 5 | |
39ed301b | 976 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h" |
7b3a4df5 | 977 | tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff" |
61ed06c3 HPN |
978 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
979 | gnu_ld=yes | |
61ed06c3 HPN |
980 | if test x$enable_threads = xyes; then |
981 | thread_file='single' | |
982 | fi | |
983 | ;; | |
984 | i[34567]86-*-linux*) # Intel 80386's running GNU/Linux | |
985 | # with ELF format using glibc 2 | |
986 | # aka GNU/Linux C library 6 | |
39ed301b | 987 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h" |
7b3a4df5 | 988 | tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff" |
61ed06c3 | 989 | ;; |
14f73b5a | 990 | x86_64-*-linux*) |
39ed301b | 991 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \ |
32fb7c9d | 992 | i386/x86-64.h i386/linux64.h" |
17c04c5e | 993 | tmake_file="t-slibgcc-elf-ver t-linux i386/t-linux64" |
14f73b5a | 994 | ;; |
61ed06c3 | 995 | i[34567]86-*-gnu*) |
61ed06c3 | 996 | ;; |
61ed06c3 HPN |
997 | i[34567]86-pc-msdosdjgpp*) |
998 | xm_file=i386/xm-djgpp.h | |
39ed301b | 999 | tm_file="dbxcoff.h ${tm_file} i386/djgpp.h" |
5dd8a9b1 | 1000 | tmake_file=i386/t-djgpp |
61ed06c3 HPN |
1001 | gnu_ld=yes |
1002 | gas=yes | |
1003 | exeext=.exe | |
61ed06c3 HPN |
1004 | case $host in *pc-msdosdjgpp*) |
1005 | target_alias=djgpp | |
1006 | ;; | |
1007 | esac | |
1008 | ;; | |
1009 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) | |
39ed301b | 1010 | 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 |
1011 | tmake_file=t-libc-ok |
1012 | gnu_ld=yes | |
1013 | gas=yes | |
1014 | ;; | |
1015 | i[34567]86-*-lynxos*) | |
1016 | if test x$gas = xyes | |
1017 | then | |
39ed301b | 1018 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx.h i386/lynx.h" |
61ed06c3 | 1019 | else |
39ed301b | 1020 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx-ng.h i386/lynx-ng.h" |
61ed06c3 | 1021 | fi |
61ed06c3 HPN |
1022 | ;; |
1023 | i[34567]86-*-mach*) | |
39ed301b | 1024 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/mach.h" |
61ed06c3 HPN |
1025 | # tmake_file=t-libc-ok |
1026 | use_collect2=yes | |
1027 | ;; | |
c7bdf0a6 | 1028 | i[34567]86-*-rtems*) |
39ed301b | 1029 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h" |
61ed06c3 HPN |
1030 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
1031 | tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems" | |
bc98ef7f JS |
1032 | if test x$enable_threads = xyes; then |
1033 | thread_file='rtems' | |
1034 | fi | |
61ed06c3 HPN |
1035 | ;; |
1036 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 | |
61ed06c3 | 1037 | install_headers_dir=install-headers-cpio |
ac24fc99 | 1038 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/sco5.h" |
61ed06c3 HPN |
1039 | if test x$gas = xyes |
1040 | then | |
70305f2b | 1041 | tm_file="usegas.h ${tm_file}" |
61ed06c3 | 1042 | fi |
ac24fc99 KJ |
1043 | tmake_file=i386/t-sco5 |
1044 | extra_parts="crtbegin.o crtend.o" | |
61ed06c3 | 1045 | ;; |
61ed06c3 | 1046 | i[34567]86-*-solaris2*) |
cbbf876b | 1047 | xm_defines="SMALL_ARG_MAX" |
8433a25e | 1048 | 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 | 1049 | tmake_file="i386/t-sol2 t-svr4" |
7b3a4df5 RH |
1050 | if test x$gnu_ld = xyes; then |
1051 | tmake_file="$tmake_file t-slibgcc-elf-ver" | |
1052 | else | |
1053 | tmake_file="$tmake_file t-slibgcc-sld" | |
1054 | fi | |
61ed06c3 | 1055 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
61ed06c3 HPN |
1056 | if test x${enable_threads} = x; then |
1057 | enable_threads=$have_pthread_h | |
1058 | if test x${enable_threads} = x; then | |
1059 | enable_threads=$have_thread_h | |
1060 | fi | |
1061 | fi | |
1062 | if test x${enable_threads} = xyes; then | |
1063 | if test x${have_pthread_h} = xyes; then | |
1064 | thread_file='posix' | |
1065 | else | |
1066 | thread_file='solaris' | |
1067 | fi | |
1068 | fi | |
1069 | ;; | |
23a535c4 | 1070 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 |
39ed301b | 1071 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h" |
61ed06c3 HPN |
1072 | if test x$stabs = xyes |
1073 | then | |
1074 | tm_file="${tm_file} dbx.h" | |
1075 | fi | |
14455c64 | 1076 | tmake_file="i386/t-crtpic t-svr4" |
61ed06c3 HPN |
1077 | extra_parts="crtbegin.o crtend.o" |
1078 | if test x$enable_threads = xyes; then | |
1079 | thread_file='posix' | |
1080 | fi | |
1081 | ;; | |
1082 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 | |
cbbf876b | 1083 | xm_defines="SMALL_ARG_MAX" |
3d05b15f | 1084 | 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 |
1085 | if test x$stabs = xyes |
1086 | then | |
1087 | tm_file="${tm_file} dbx.h" | |
1088 | fi | |
14455c64 | 1089 | tmake_file="i386/t-crtpic t-svr4" |
61ed06c3 HPN |
1090 | extra_parts="crtbegin.o crtend.o" |
1091 | ;; | |
1092 | i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit | |
39ed301b | 1093 | 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 | 1094 | tmake_file="i386/t-crtpic i386/t-udk t-svr4" |
61ed06c3 HPN |
1095 | extra_parts="crtbegin.o crtend.o" |
1096 | install_headers_dir=install-headers-cpio | |
1097 | ;; | |
61ed06c3 | 1098 | i[34567]86-*-sysv*) # Intel 80386's running system V |
61ed06c3 HPN |
1099 | if test x$gas = xyes |
1100 | then | |
1101 | if test x$stabs = xyes | |
1102 | then | |
39ed301b | 1103 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h" |
61ed06c3 | 1104 | tmake_file=i386/t-svr3dbx |
c7bdf0a6 | 1105 | extra_parts="svr3.ifile svr3z.ifile" |
61ed06c3 | 1106 | else |
39ed301b | 1107 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h" |
61ed06c3 HPN |
1108 | extra_parts="crtbegin.o crtend.o" |
1109 | tmake_file=i386/t-crtstuff | |
1110 | fi | |
1111 | else | |
39ed301b | 1112 | tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h" |
61ed06c3 HPN |
1113 | extra_parts="crtbegin.o crtend.o" |
1114 | tmake_file=i386/t-crtstuff | |
1115 | fi | |
1116 | tmake_file="$tmake_file i386/t-crtpic" | |
1117 | ;; | |
1118 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
39ed301b DB |
1119 | xm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/xm-vsta.h" |
1120 | tm_file="${tm_file} i386/vsta.h" | |
61ed06c3 | 1121 | ;; |
61ed06c3 | 1122 | i[34567]86-*-pe | i[34567]86-*-cygwin*) |
70e5e841 | 1123 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h" |
4dc0535b | 1124 | xm_file=i386/xm-cygwin.h |
70e5e841 | 1125 | tmake_file="i386/t-cygming i386/t-cygwin" |
61ed06c3 | 1126 | extra_objs=winnt.o |
70e5e841 CF |
1127 | c_target_objs=cygwin2.o |
1128 | cxx_target_objs=cygwin2.o | |
61ed06c3 | 1129 | if test x$enable_threads = xyes; then |
70e5e841 | 1130 | thread_file='posix' |
61ed06c3 HPN |
1131 | fi |
1132 | exeext=.exe | |
1133 | ;; | |
1134 | i[34567]86-*-mingw32*) | |
70e5e841 | 1135 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h" |
4dc0535b | 1136 | xm_file=i386/xm-mingw32.h |
70e5e841 | 1137 | tmake_file="i386/t-cygming i386/t-mingw32" |
02c67fd1 | 1138 | xmake_file=i386/x-mingw32 |
61ed06c3 | 1139 | extra_objs=winnt.o |
61ed06c3 HPN |
1140 | if test x$enable_threads = xyes; then |
1141 | thread_file='win32' | |
1142 | fi | |
1143 | exeext=.exe | |
1144 | case $machine in | |
09eaf5a5 | 1145 | *mingw32crt*) |
61ed06c3 HPN |
1146 | tm_file="${tm_file} i386/crtdll.h" |
1147 | ;; | |
70e5e841 | 1148 | *mingw32msv* | *mingw32*) |
09eaf5a5 | 1149 | ;; |
61ed06c3 HPN |
1150 | esac |
1151 | ;; | |
1152 | i[34567]86-*-uwin*) | |
3eae722d | 1153 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygwin.h i386/uwin.h" |
61ed06c3 HPN |
1154 | tmake_file="i386/t-cygwin i386/t-uwin" |
1155 | extra_objs=winnt.o | |
61ed06c3 HPN |
1156 | if test x$enable_threads = xyes; then |
1157 | thread_file='win32' | |
1158 | fi | |
1159 | exeext=.exe | |
1160 | ;; | |
04cec1a7 | 1161 | i[34567]86-*-interix3*) |
39ed301b | 1162 | 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 | 1163 | tmake_file="t-interix i386/t-interix" |
84512347 | 1164 | extra_objs=winnt.o |
5dd8a9b1 | 1165 | xmake_file="x-interix" |
04cec1a7 DR |
1166 | if test x$enable_threads = xyes ; then |
1167 | thread_file='posix' | |
1168 | fi | |
1169 | if test x$stabs = xyes ; then | |
1170 | tm_file="${tm_file} dbxcoff.h" | |
1171 | fi | |
1172 | ;; | |
61ed06c3 | 1173 | i[34567]86-*-interix*) |
39ed301b | 1174 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h" |
14455c64 | 1175 | tmake_file="t-interix i386/t-interix" |
84512347 | 1176 | extra_objs=winnt.o |
61ed06c3 HPN |
1177 | if test x$enable_threads = xyes ; then |
1178 | thread_file='posix' | |
1179 | fi | |
1180 | if test x$stabs = xyes ; then | |
1181 | tm_file="${tm_file} dbxcoff.h" | |
1182 | fi | |
1183 | ;; | |
61ed06c3 HPN |
1184 | i960-*-coff*) |
1185 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
1186 | tmake_file=i960/t-960bare | |
43fabf7d JW |
1187 | c_target_objs="i960-c.o" |
1188 | cxx_target_objs="i960-c.o" | |
61ed06c3 HPN |
1189 | ;; |
1190 | i960-*-rtems) | |
1191 | tmake_file="i960/t-960bare t-rtems" | |
f22b4bc4 | 1192 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h" |
bc98ef7f JS |
1193 | if test x$enable_threads = xyes; then |
1194 | thread_file='rtems' | |
1195 | fi | |
43fabf7d JW |
1196 | c_target_objs="i960-c.o" |
1197 | cxx_target_objs="i960-c.o" | |
61ed06c3 HPN |
1198 | ;; |
1199 | i960-*-*) # Default i960 environment. | |
1200 | use_collect2=yes | |
5f37d07c | 1201 | tmake_file=i960/t-960bare |
43fabf7d JW |
1202 | c_target_objs="i960-c.o" |
1203 | cxx_target_objs="i960-c.o" | |
61ed06c3 HPN |
1204 | ;; |
1205 | ia64*-*-elf*) | |
c40409ce | 1206 | tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h" |
61ed06c3 HPN |
1207 | tmake_file="ia64/t-ia64" |
1208 | target_cpu_default="0" | |
1209 | if test x$gas = xyes | |
1210 | then | |
1211 | target_cpu_default="${target_cpu_default}|MASK_GNU_AS" | |
1212 | fi | |
1213 | if test x$gnu_ld = xyes | |
1214 | then | |
1215 | target_cpu_default="${target_cpu_default}|MASK_GNU_LD" | |
1216 | fi | |
32b4f6f4 | 1217 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" |
61ed06c3 | 1218 | ;; |
243a7070 | 1219 | ia64*-*-freebsd*) |
fee42cc1 | 1220 | tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h" |
243a7070 DB |
1221 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" |
1222 | tmake_file="${tmake_file} ia64/t-ia64" | |
32b4f6f4 | 1223 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" |
243a7070 | 1224 | ;; |
61ed06c3 | 1225 | ia64*-*-linux*) |
c40409ce | 1226 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h" |
7b3a4df5 | 1227 | tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc" |
61ed06c3 | 1228 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" |
32b4f6f4 | 1229 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o" |
4977bab6 ZW |
1230 | if test x"$use_libunwind_exceptions" = xyes; then |
1231 | tmake_file="$tmake_file t-libunwind" | |
1232 | fi | |
61ed06c3 | 1233 | ;; |
7e5b9908 | 1234 | ia64*-*-hpux*) |
c40409ce | 1235 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h" |
23c108af | 1236 | tmake_file="ia64/t-ia64 ia64/t-hpux" |
7e5b9908 SE |
1237 | target_cpu_default="MASK_GNU_AS" |
1238 | if test x$enable_threads = xyes; then | |
1239 | thread_file='posix' | |
1240 | fi | |
cad61762 | 1241 | use_collect2=no |
34c1864f SE |
1242 | c_target_objs="ia64-c.o" |
1243 | cxx_target_objs="ia64-c.o" | |
7e5b9908 | 1244 | ;; |
6d439235 | 1245 | ip2k-*-elf) |
2f9021d3 | 1246 | ;; |
61ed06c3 | 1247 | m32r-*-elf*) |
c40409ce | 1248 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
250315f7 | 1249 | extra_parts="crtinit.o crtfini.o m32rx/crtinit.o m32rx/crtfini.o" |
37ec8b7a | 1250 | ;; |
61ed06c3 HPN |
1251 | # m68hc11 and m68hc12 share the same machine description. |
1252 | m68hc11-*-*|m6811-*-*) | |
c40409ce | 1253 | tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h" |
61ed06c3 HPN |
1254 | tm_p_file="m68hc11/m68hc11-protos.h" |
1255 | md_file="m68hc11/m68hc11.md" | |
1256 | out_file="m68hc11/m68hc11.c" | |
1257 | tmake_file="m68hc11/t-m68hc11-gas" | |
1258 | ;; | |
1259 | m68hc12-*-*|m6812-*-*) | |
c40409ce | 1260 | tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h" |
61ed06c3 | 1261 | tm_p_file="m68hc11/m68hc11-protos.h" |
61ed06c3 HPN |
1262 | md_file="m68hc11/m68hc11.md" |
1263 | out_file="m68hc11/m68hc11.c" | |
1264 | tmake_file="m68hc11/t-m68hc11-gas" | |
1265 | ;; | |
61ed06c3 | 1266 | m68000-hp-hpux*) # HP 9000 series 300 |
61ed06c3 HPN |
1267 | if test x$gas = xyes |
1268 | then | |
61ed06c3 HPN |
1269 | tm_file=m68k/hp310g.h |
1270 | else | |
61ed06c3 HPN |
1271 | tm_file=m68k/hp310.h |
1272 | fi | |
14455c64 | 1273 | tmake_file=m68k/t-hp320 |
61ed06c3 HPN |
1274 | install_headers_dir=install-headers-cpio |
1275 | use_collect2=yes | |
61ed06c3 | 1276 | ;; |
61ed06c3 | 1277 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. |
61ed06c3 HPN |
1278 | if test x$gas = xyes |
1279 | then | |
61ed06c3 HPN |
1280 | tm_file=m68k/hp320g.h |
1281 | else | |
61ed06c3 HPN |
1282 | tm_file=m68k/hpux7.h |
1283 | fi | |
1284 | install_headers_dir=install-headers-cpio | |
1285 | use_collect2=yes | |
61ed06c3 HPN |
1286 | ;; |
1287 | m68k-hp-hpux*) # HP 9000 series 300 | |
61ed06c3 HPN |
1288 | if test x$gas = xyes |
1289 | then | |
61ed06c3 HPN |
1290 | tm_file=m68k/hp320g.h |
1291 | else | |
61ed06c3 HPN |
1292 | tm_file=m68k/hp320.h |
1293 | fi | |
1294 | install_headers_dir=install-headers-cpio | |
1295 | use_collect2=yes | |
61ed06c3 | 1296 | ;; |
61ed06c3 HPN |
1297 | m68k-*-aout*) |
1298 | tmake_file=m68k/t-m68kbare | |
1299 | tm_file="m68k/m68k-aout.h libgloss.h" | |
61ed06c3 HPN |
1300 | ;; |
1301 | m68k-*-coff*) | |
1302 | tmake_file=m68k/t-m68kbare | |
1303 | tm_file="m68k/m68k-coff.h dbx.h" | |
61ed06c3 HPN |
1304 | ;; |
1305 | m68020-*-elf* | m68k-*-elf*) | |
91171315 | 1306 | tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h" |
61ed06c3 | 1307 | tmake_file=m68k/t-m68kelf |
bb8602be | 1308 | extra_parts="crtbegin.o crtend.o" |
61ed06c3 | 1309 | ;; |
2fd95d71 JT |
1310 | m68010-*-netbsdelf* | m68k*-*-netbsdelf*) |
1311 | tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h" | |
1312 | case $machine in | |
1313 | m68010*) | |
1314 | target_cpu_default="0" | |
1315 | ;; | |
1316 | *) | |
1317 | target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD" | |
1318 | ;; | |
1319 | esac | |
2fd95d71 | 1320 | ;; |
61ed06c3 HPN |
1321 | m68k*-*-netbsd*) |
1322 | tm_file=m68k/netbsd.h | |
1323 | tmake_file=t-netbsd | |
1169f9e0 | 1324 | extra_parts="" |
5721cd84 | 1325 | use_collect2=yes |
61ed06c3 HPN |
1326 | ;; |
1327 | m68k*-*-openbsd*) | |
f1cf4606 ME |
1328 | # needed to unconfuse gdb |
1329 | tmake_file="t-libc-ok t-openbsd m68k/t-openbsd" | |
61ed06c3 HPN |
1330 | # we need collect2 until our bug is fixed... |
1331 | use_collect2=yes | |
1332 | ;; | |
61ed06c3 HPN |
1333 | m68k-*-sysv4*) # Motorola m68k's running system V.4 |
1334 | tm_file=m68k/m68kv4.h | |
61ed06c3 HPN |
1335 | tmake_file=t-svr4 |
1336 | extra_parts="crtbegin.o crtend.o" | |
61ed06c3 | 1337 | ;; |
61ed06c3 HPN |
1338 | m68k-*-linux*) # Motorola m68k's running GNU/Linux |
1339 | # with ELF format using glibc 2 | |
1340 | # aka the GNU/Linux C library 6. | |
61ed06c3 | 1341 | tm_file=m68k/linux.h |
d2c172bf | 1342 | tmake_file="t-slibgcc-elf-ver t-linux" |
61ed06c3 | 1343 | ;; |
c7bdf0a6 | 1344 | m68k-*-rtems*) |
61ed06c3 | 1345 | tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff" |
f22b4bc4 | 1346 | tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h" |
bb8602be | 1347 | extra_parts="crtbegin.o crtend.o" |
bc98ef7f JS |
1348 | if test x$enable_threads = xyes; then |
1349 | thread_file='rtems' | |
1350 | fi | |
61ed06c3 | 1351 | ;; |
61ed06c3 | 1352 | mcore-*-elf) |
c40409ce | 1353 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h" |
61ed06c3 HPN |
1354 | tmake_file=mcore/t-mcore |
1355 | ;; | |
1356 | mcore-*-pe*) | |
1357 | tm_file=mcore/mcore-pe.h | |
1358 | tmake_file=mcore/t-mcore-pe | |
1359 | ;; | |
789b7de5 RO |
1360 | mips-sgi-irix6*o32) # SGI System V.4., IRIX 6, O32 ABI |
1361 | if test x$gas = xyes | |
1362 | then | |
59267987 | 1363 | tm_file="mips/iris5.h mips/iris5gas.h mips/iris6-o32-gas.h" |
789b7de5 RO |
1364 | if test x$stabs = xyes |
1365 | then | |
1366 | tm_file="${tm_file} dbx.h" | |
1367 | fi | |
59267987 | 1368 | tmake_file=mips/t-iris5-gas |
789b7de5 RO |
1369 | else |
1370 | tm_file="mips/iris5.h mips/iris6-o32-as.h" | |
1371 | tmake_file=mips/t-iris5-as | |
1372 | fi | |
1373 | tm_file="${tm_file} mips/iris6-o32.h" | |
1374 | tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6" | |
789b7de5 RO |
1375 | xm_file=mips/xm-iris5.h |
1376 | # mips-tfile doesn't work yet | |
1377 | # See comment in mips/iris5.h file. | |
1378 | use_collect2=yes | |
1379 | # if test x$enable_threads = xyes; then | |
1380 | # thread_file='irix' | |
1381 | # fi | |
1382 | ;; | |
61ed06c3 HPN |
1383 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 |
1384 | if test "x$gnu_ld" = xyes | |
1385 | then | |
1386 | tm_file="mips/iris6.h mips/iris6gld.h" | |
1387 | else | |
1388 | tm_file=mips/iris6.h | |
1389 | fi | |
789b7de5 | 1390 | tmake_file="mips/t-iris mips/t-iris5-6 mips/t-iris6" |
61ed06c3 HPN |
1391 | # if test x$enable_threads = xyes; then |
1392 | # thread_file='irix' | |
1393 | # fi | |
1394 | ;; | |
61ed06c3 HPN |
1395 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 |
1396 | tm_file="mips/iris6.h mips/cross64.h" | |
84c041a1 | 1397 | xm_file=mips/xm-iris5.h |
14455c64 | 1398 | tmake_file="mips/t-iris mips/t-cross64" |
61ed06c3 HPN |
1399 | # See comment in mips/iris[56].h files. |
1400 | use_collect2=yes | |
1401 | # if test x$enable_threads = xyes; then | |
1402 | # thread_file='irix' | |
1403 | # fi | |
1404 | ;; | |
61ed06c3 HPN |
1405 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 |
1406 | if test x$gas = xyes | |
1407 | then | |
1408 | tm_file="mips/iris5.h mips/iris5gas.h" | |
1409 | if test x$stabs = xyes | |
1410 | then | |
1411 | tm_file="${tm_file} dbx.h" | |
1412 | fi | |
59267987 | 1413 | tmake_file=mips/t-iris5-gas |
61ed06c3 HPN |
1414 | else |
1415 | tm_file=mips/iris5.h | |
789b7de5 | 1416 | tmake_file=mips/t-iris5-as |
61ed06c3 | 1417 | fi |
789b7de5 | 1418 | tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6" |
84c041a1 | 1419 | xm_file=mips/xm-iris5.h |
61ed06c3 | 1420 | # mips-tfile doesn't work yet |
61ed06c3 HPN |
1421 | # See comment in mips/iris5.h file. |
1422 | use_collect2=yes | |
1423 | # if test x$enable_threads = xyes; then | |
1424 | # thread_file='irix' | |
1425 | # fi | |
1426 | ;; | |
f982f805 | 1427 | mips*-*-netbsd*) # NetBSD/mips, either endian. |
27f4b67e | 1428 | target_cpu_default="MASK_GAS|MASK_ABICALLS" |
f3f268dd | 1429 | tm_file="elfos.h ${tm_file} mips/netbsd.h" |
4977bab6 | 1430 | tmake_file="${tmake_file}" |
61ed06c3 | 1431 | ;; |
3bd6d4c4 AO |
1432 | mips64*-*-linux*) |
1433 | tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h mips/linux64.h" | |
7c942e17 | 1434 | tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux64" |
3bd6d4c4 AO |
1435 | |
1436 | # This default ABI is a partial lie: t-linux64 overrides the | |
1437 | # DRIVER_SELF_SPEC that sets the default abi, in the spec file | |
1438 | # that is installed. What GCC thinks of as the default must | |
1439 | # remain as ABI_32 such that the SONAMEs of the libgcc shared | |
1440 | # libraries remain compatible with those of mips-linux-gnu. | |
1441 | tm_defines="MIPS_ISA_DEFAULT=1 MIPS_ABI_DEFAULT=ABI_32" | |
1442 | target_cpu_default="MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT" | |
1443 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" | |
1444 | gnu_ld=yes | |
1445 | gas=yes | |
1446 | if test x$enable_threads = xyes; then | |
1447 | thread_file='posix' | |
1448 | fi | |
1449 | ;; | |
61ed06c3 | 1450 | mips*-*-linux*) # Linux MIPS, either endian. |
2017ed61 | 1451 | tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h" |
61ed06c3 | 1452 | case $machine in |
009da785 | 1453 | mipsisa32*-*) |
009da785 | 1454 | target_cpu_default="MASK_SOFT_FLOAT" |
6d439235 | 1455 | tm_defines="MIPS_ISA_DEFAULT=32" |
009da785 EC |
1456 | ;; |
1457 | esac | |
4977bab6 | 1458 | tmake_file="t-slibgcc-elf-ver t-linux" |
61ed06c3 HPN |
1459 | ;; |
1460 | mips*el-*-openbsd*) # mips little endian | |
1461 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
1462 | ;; | |
1463 | mips*-*-openbsd*) # mips big endian | |
1464 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
1465 | tm_file="mips/openbsd-be.h ${tm_file}" | |
1466 | ;; | |
74826b0f | 1467 | mipsisa32-*-elf* | mipsisa32el-*-elf*) |
ac8ab9fe | 1468 | tm_file="${tm_file} mips/elf.h" |
0e5a4ad8 | 1469 | tmake_file=mips/t-isa3264 |
ef8dfae6 | 1470 | tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_EABI" |
0e5a4ad8 | 1471 | ;; |
2d2a50c3 CD |
1472 | mipsisa32r2-*-elf* | mipsisa32r2el-*-elf*) |
1473 | tm_file="${tm_file} mips/elf.h" | |
1474 | tmake_file=mips/t-isa3264 | |
1475 | tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_EABI" | |
1476 | ;; | |
5c44e275 | 1477 | mipsisa64-*-elf* | mipsisa64el-*-elf*) |
ac8ab9fe | 1478 | tm_file="${tm_file} mips/elf.h" |
5c44e275 CD |
1479 | tmake_file=mips/t-isa3264 |
1480 | target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS" | |
d1c4bfe8 | 1481 | tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_EABI" |
5c44e275 | 1482 | ;; |
5ce6f47b EC |
1483 | mipsisa64sr71k-*-elf*) |
1484 | tm_file="${tm_file} mips/elf.h" | |
1485 | tmake_file=mips/t-sr71k | |
1486 | target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS" | |
d1c4bfe8 | 1487 | tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI" |
5ce6f47b | 1488 | ;; |
3d41dbb0 | 1489 | mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*) |
ac8ab9fe | 1490 | tm_file="${tm_file} mips/elf.h" |
3d41dbb0 CD |
1491 | tmake_file=mips/t-elf |
1492 | target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS" | |
1493 | tm_defines="MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64" | |
1494 | ;; | |
74826b0f | 1495 | mips-*-elf* | mipsel-*-elf*) |
6d439235 | 1496 | tm_file="${tm_file} mips/elf.h" |
61ed06c3 HPN |
1497 | tmake_file=mips/t-elf |
1498 | ;; | |
74826b0f | 1499 | mips64-*-elf* | mips64el-*-elf*) |
6d439235 | 1500 | tm_file="${tm_file} mips/elf64.h" |
61ed06c3 | 1501 | tmake_file=mips/t-elf |
6d439235 EC |
1502 | target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS" |
1503 | tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64" | |
61ed06c3 | 1504 | ;; |
5ce6f47b EC |
1505 | mips64vr-*-elf* | mips64vrel-*-elf*) |
1506 | tm_file="mips/vr.h ${tm_file} mips/elf64.h" | |
60bc2b4b | 1507 | tm_defines="MIPS_ABI_DEFAULT=ABI_O64 MIPS_MARCH_CONTROLS_SOFT_FLOAT=1" |
5ce6f47b EC |
1508 | tmake_file=mips/t-vr |
1509 | ;; | |
74826b0f | 1510 | mips64orion-*-elf* | mips64orionel-*-elf*) |
6d439235 EC |
1511 | tm_file="${tm_file} mips/elforion.h mips/elf64.h" |
1512 | tmake_file=mips/t-elf | |
61ed06c3 | 1513 | tmake_file=mips/t-elf |
6d439235 EC |
1514 | target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS" |
1515 | tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64" | |
61ed06c3 | 1516 | ;; |
bc98ef7f | 1517 | mips*-*-rtems*) |
6d439235 | 1518 | tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h" |
bc98ef7f JS |
1519 | tmake_file="mips/t-elf t-rtems" |
1520 | if test x$enable_threads = xyes; then | |
1521 | thread_file='rtems' | |
1522 | fi | |
61ed06c3 | 1523 | ;; |
74826b0f | 1524 | mipstx39-*-elf* | mipstx39el-*-elf*) |
ac8ab9fe | 1525 | tm_file="${tm_file} mips/r3900.h mips/elf.h" |
61ed06c3 HPN |
1526 | tmake_file=mips/t-r3900 |
1527 | ;; | |
bcf684c7 | 1528 | mmix-knuth-mmixware) |
4977bab6 | 1529 | need_64bit_hwint=yes |
bcf684c7 | 1530 | ;; |
61ed06c3 | 1531 | mn10300-*-*) |
c40409ce | 1532 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
61ed06c3 HPN |
1533 | if test x$stabs = xyes |
1534 | then | |
1535 | tm_file="${tm_file} dbx.h" | |
1536 | fi | |
1537 | use_collect2=no | |
1538 | ;; | |
69474c3c JT |
1539 | ns32k-*-netbsdelf*) |
1540 | echo "GCC does not yet support the ${machine} target"; exit 1 | |
1541 | ;; | |
61ed06c3 | 1542 | ns32k-*-netbsd*) |
c8eb9785 | 1543 | tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h" |
61ed06c3 | 1544 | # On NetBSD, the headers are already okay, except for math.h. |
ac14c725 | 1545 | tmake_file="t-netbsd ns32k/t-ns32k" |
1169f9e0 | 1546 | extra_parts="" |
5721cd84 | 1547 | use_collect2=yes |
61ed06c3 HPN |
1548 | ;; |
1549 | pdp11-*-bsd) | |
1550 | tm_file="${tm_file} pdp11/2bsd.h" | |
1551 | ;; | |
1552 | pdp11-*-*) | |
1553 | ;; | |
1554 | avr-*-*) | |
1555 | ;; | |
61ed06c3 | 1556 | powerpc-*-openbsd*) |
7c942e17 | 1557 | tmake_file="${tmake_file} rs6000/t-fprules " |
ba1e6c0b | 1558 | extra_headers= |
61ed06c3 | 1559 | ;; |
2bfcf297 | 1560 | powerpc64-*-linux*) |
c40409ce | 1561 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux64.h" |
40b4cdbf | 1562 | tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-linux64" |
2bfcf297 | 1563 | ;; |
ddb28441 RM |
1564 | powerpc64-*-gnu*) |
1565 | 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 | 1566 | tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-gnu rs6000/t-linux64" |
ddb28441 | 1567 | ;; |
61ed06c3 | 1568 | powerpc-*-beos*) |
2bfcf297 | 1569 | tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h" |
40b4cdbf | 1570 | tmake_file="rs6000/t-fprules rs6000/t-beos" |
ba1e6c0b | 1571 | extra_headers= |
61ed06c3 | 1572 | ;; |
18922061 | 1573 | powerpc-*-darwin*) |
40b4cdbf GK |
1574 | tm_file="${tm_file} rs6000/darwin.h" |
1575 | tmake_file="rs6000/t-fprules t-darwin rs6000/t-darwin" | |
5fb4cf24 | 1576 | extra_headers=altivec.h |
4977bab6 ZW |
1577 | # override ppc default |
1578 | need_64bit_hwint= | |
476d9098 GK |
1579 | # powerpc-darwin host support. |
1580 | host_hook_obj=host-darwin.o | |
1581 | xmake_file=rs6000/x-darwin | |
18922061 | 1582 | ;; |
b91da81f | 1583 | powerpc*-*-freebsd*) |
c40409ce | 1584 | tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h" |
40b4cdbf | 1585 | tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" |
b91da81f | 1586 | ;; |
edf1b3f3 | 1587 | powerpc-*-netbsd*) |
a4967b8d JT |
1588 | tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h" |
1589 | tmake_file="${tmake_file} rs6000/t-netbsd" | |
edf1b3f3 | 1590 | ;; |
8da6d80e | 1591 | powerpc-*-chorusos*) |
c40409ce | 1592 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h" |
40b4cdbf | 1593 | tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm" |
8da6d80e CC |
1594 | case x${enable_threads} in |
1595 | xyes | xpthreads | xposix) | |
1596 | thread_file='posix' | |
1597 | ;; | |
1598 | esac | |
1599 | ;; | |
518878e1 | 1600 | powerpc-*-eabispe*) |
518878e1 | 1601 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h" |
00c060a4 | 1602 | tmake_file="rs6000/t-spe rs6000/t-ppccomm" |
518878e1 | 1603 | ;; |
cf6ede82 | 1604 | powerpc-*-eabisimaltivec*) |
cf6ede82 | 1605 | 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 | 1606 | tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm" |
cf6ede82 | 1607 | ;; |
61ed06c3 | 1608 | powerpc-*-eabisim*) |
c40409ce | 1609 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h" |
40b4cdbf | 1610 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 HPN |
1611 | ;; |
1612 | powerpc-*-elf*) | |
c40409ce | 1613 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h" |
40b4cdbf | 1614 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 | 1615 | ;; |
10baca6b | 1616 | powerpc-*-eabialtivec*) |
10baca6b | 1617 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h" |
40b4cdbf | 1618 | tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm" |
10baca6b | 1619 | ;; |
61ed06c3 | 1620 | powerpc-*-eabi*) |
c40409ce | 1621 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h" |
40b4cdbf | 1622 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 HPN |
1623 | ;; |
1624 | powerpc-*-rtems*) | |
f22b4bc4 | 1625 | 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 | 1626 | tmake_file="rs6000/t-fprules t-rtems rs6000/t-ppccomm" |
bc98ef7f JS |
1627 | if test x$enable_threads = xyes; then |
1628 | thread_file='rtems' | |
1629 | fi | |
61ed06c3 | 1630 | ;; |
7c942e17 | 1631 | powerpc-*-linux*altivec*) |
10baca6b | 1632 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h" |
40b4cdbf | 1633 | tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm" |
10baca6b | 1634 | ;; |
7c942e17 | 1635 | powerpc-*-linux*spe*) |
2f3f95e9 AH |
1636 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h" |
1637 | tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm" | |
1638 | ;; | |
61ed06c3 | 1639 | powerpc-*-linux*) |
c40409ce | 1640 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h" |
40b4cdbf | 1641 | tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm" |
61ed06c3 | 1642 | ;; |
ddb28441 RM |
1643 | powerpc-*-gnu-gnualtivec*) |
1644 | 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 | 1645 | tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm" |
ddb28441 RM |
1646 | if test x$enable_threads = xyes; then |
1647 | thread_file='posix' | |
1648 | fi | |
1649 | ;; | |
1650 | powerpc-*-gnu*) | |
1651 | 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 | 1652 | tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm" |
ddb28441 RM |
1653 | if test x$enable_threads = xyes; then |
1654 | thread_file='posix' | |
1655 | fi | |
1656 | ;; | |
61ed06c3 | 1657 | powerpc-wrs-vxworks*) |
4977bab6 ZW |
1658 | # We want vxworks.h after rs6000/sysv4.h, which unfortunately |
1659 | # means we have to redo the tm_file list from scratch. | |
1660 | tm_file="rs6000/rs6000.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h" | |
1661 | tm_file="${tm_file} vxworks.h rs6000/vxworks.h" | |
40b4cdbf | 1662 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks" |
4977bab6 ZW |
1663 | extra_headers=ppc-asm.h |
1664 | ;; | |
bce0deb2 | 1665 | powerpc-wrs-windiss*) |
bce0deb2 | 1666 | tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h" |
40b4cdbf | 1667 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
bce0deb2 MM |
1668 | thread_file="" |
1669 | ;; | |
61ed06c3 | 1670 | powerpcle-*-sysv*) |
c40409ce | 1671 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h" |
40b4cdbf | 1672 | tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm" |
61ed06c3 HPN |
1673 | ;; |
1674 | powerpcle-*-elf*) | |
c40409ce | 1675 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h" |
40b4cdbf | 1676 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 HPN |
1677 | ;; |
1678 | powerpcle-*-eabisim*) | |
c40409ce | 1679 | 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 | 1680 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 HPN |
1681 | ;; |
1682 | powerpcle-*-eabi*) | |
c40409ce | 1683 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h" |
40b4cdbf | 1684 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 | 1685 | ;; |
61ed06c3 | 1686 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) |
2bfcf297 | 1687 | tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h" |
40b4cdbf | 1688 | tmake_file="rs6000/t-fprules rs6000/t-newas" |
61ed06c3 | 1689 | use_collect2=yes |
ba1e6c0b | 1690 | extra_headers= |
61ed06c3 HPN |
1691 | ;; |
1692 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) | |
2bfcf297 | 1693 | tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h" |
61ed06c3 | 1694 | tmake_file=rs6000/t-aix43 |
61ed06c3 HPN |
1695 | use_collect2=yes |
1696 | thread_file='aix' | |
ba1e6c0b | 1697 | extra_headers= |
61ed06c3 | 1698 | ;; |
5f5d5417 | 1699 | rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*) |
2bfcf297 | 1700 | tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h" |
61ed06c3 | 1701 | tmake_file=rs6000/t-aix43 |
61ed06c3 HPN |
1702 | use_collect2=yes |
1703 | thread_file='aix' | |
ba1e6c0b | 1704 | extra_headers= |
61ed06c3 | 1705 | ;; |
5f5d5417 | 1706 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) |
5f5d5417 DE |
1707 | tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h" |
1708 | tmake_file=rs6000/t-aix52 | |
1709 | use_collect2=yes | |
1710 | thread_file='aix' | |
1711 | extra_headers= | |
1712 | ;; | |
61ed06c3 | 1713 | rs6000-*-lynxos*) |
b91da81f | 1714 | tm_file="lynx.h rs6000/lynx.h" |
40b4cdbf | 1715 | tmake_file=rs6000/t-fprules |
61ed06c3 HPN |
1716 | use_collect2=yes |
1717 | ;; | |
0e5a4ad8 | 1718 | s390-*-linux*) |
c40409ce | 1719 | tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h" |
8ef34c0d | 1720 | tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff" |
9628a767 | 1721 | ;; |
0e5a4ad8 | 1722 | s390x-*-linux*) |
58d10f89 | 1723 | tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h" |
70eeb10b UW |
1724 | tm_p_file=s390/s390-protos.h |
1725 | md_file=s390/s390.md | |
1c0ca89d | 1726 | extra_modes=s390/s390-modes.def |
70eeb10b | 1727 | out_file=s390/s390.c |
8ef34c0d | 1728 | tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff s390/t-linux64" |
9628a767 | 1729 | ;; |
8bc6e101 | 1730 | sh-*-elf* | sh[2346l]*-*-elf*) |
61ed06c3 | 1731 | tmake_file="sh/t-sh sh/t-elf" |
dbf87f32 R |
1732 | case $machine in |
1733 | shl* | sh64l*) | |
1734 | tm_file="sh/little.h ${tm_file}" | |
1735 | tmake_file="${tmake_file} sh/t-le" | |
1736 | ;; | |
1737 | esac | |
f1a58d92 | 1738 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h" |
dbf87f32 R |
1739 | case $machine in |
1740 | sh64*) | |
1741 | tmake_file="${tmake_file} sh/t-sh64" | |
1742 | tm_file="${tm_file} sh/sh64.h" | |
1743 | extra_headers="shmedia.h ushmedia.h sshmedia.h" | |
dbf87f32 | 1744 | ;; |
8bc6e101 R |
1745 | sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;; |
1746 | sh4*) target_cpu_default="SELECT_SH4" ;; | |
1747 | sh3e*) target_cpu_default="SELECT_SH3E" ;; | |
1748 | sh3*) target_cpu_default="SELECT_SH3" ;; | |
3a8699c7 | 1749 | sh2e*) target_cpu_default="SELECT_SH2E" ;; |
8bc6e101 R |
1750 | sh2*) target_cpu_default="SELECT_SH2" ;; |
1751 | esac | |
1752 | case $machine in | |
1753 | sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;; | |
dbf87f32 | 1754 | esac |
fa5322fa | 1755 | ;; |
61ed06c3 HPN |
1756 | sh-*-rtemself*) |
1757 | tmake_file="sh/t-sh sh/t-elf t-rtems" | |
f1a58d92 | 1758 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h sh/rtemself.h rtems.h" |
bc98ef7f JS |
1759 | if test x$enable_threads = xyes; then |
1760 | thread_file='rtems' | |
1761 | fi | |
61ed06c3 HPN |
1762 | ;; |
1763 | sh-*-rtems*) | |
1764 | tmake_file="sh/t-sh t-rtems" | |
f1a58d92 | 1765 | tm_file="${tm_file} sh/coff.h sh/rtems.h rtems.h" |
bc98ef7f JS |
1766 | if test x$enable_threads = xyes; then |
1767 | thread_file='rtems' | |
1768 | fi | |
61ed06c3 | 1769 | ;; |
8bc6e101 | 1770 | sh-*-linux* | sh[2346lbe]*-*-linux*) |
4977bab6 | 1771 | tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux sh/t-linux" |
8bc6e101 R |
1772 | case $machine in |
1773 | sh*be-*-* | sh*eb-*-*) ;; | |
1774 | *) | |
1775 | tm_file="sh/little.h ${tm_file}" | |
1776 | tmake_file="${tmake_file} sh/t-le" | |
1777 | ;; | |
1778 | esac | |
1779 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h" | |
8bc6e101 R |
1780 | case $machine in |
1781 | sh64*) | |
1782 | tmake_file="${tmake_file} sh/t-sh64" | |
1783 | tm_file="${tm_file} sh/sh64.h" | |
1784 | extra_headers="shmedia.h ushmedia.h sshmedia.h" | |
8bc6e101 R |
1785 | ;; |
1786 | sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;; | |
1787 | sh4*) target_cpu_default="SELECT_SH4" ;; | |
1788 | sh3e[lb]e*) target_cpu_default="SELECT_SH3E" ;; | |
1789 | sh3e[lb]*) target_cpu_default="SELECT_SH3" ;; | |
1790 | sh3e*) target_cpu_default="SELECT_SH3E" ;; | |
1791 | sh3*) target_cpu_default="SELECT_SH3" ;; | |
3a8699c7 AO |
1792 | sh2e[lb]e*) target_cpu_default="SELECT_SH2E" ;; |
1793 | sh2e[lb]*) target_cpu_default="SELECT_SH2" ;; | |
1794 | sh2e*) target_cpu_default="SELECT_SH2E" ;; | |
8bc6e101 R |
1795 | sh2*) target_cpu_default="SELECT_SH2" ;; |
1796 | esac | |
1797 | case $machine in | |
1798 | sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;; | |
1799 | esac | |
61ed06c3 | 1800 | ;; |
b655555e JT |
1801 | sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ |
1802 | sh64-*-netbsd* | sh64l*-*-netbsd*) | |
b4eb03fe JT |
1803 | tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h netbsd.h netbsd-elf.h sh/netbsd-elf.h" |
1804 | tmake_file="${tmake_file} sh/t-sh sh/t-elf" | |
1805 | case $machine in | |
1806 | sh*l*-*) | |
1807 | tm_file="sh/little.h ${tm_file}" | |
1808 | tmake_file="${tmake_file} sh/t-le" | |
1809 | ;; | |
1810 | *) | |
1811 | tmake_file="${tmake_file} sh/t-be" | |
1812 | ;; | |
1813 | esac | |
b655555e JT |
1814 | case $machine in |
1815 | sh5*-*) | |
1816 | # SHmedia, 32-bit ABI | |
3a8699c7 | 1817 | target_cpu_default="SH5_BIT|SH4_BIT|SH3_BIT|SH_E_BIT" |
3fa1b448 | 1818 | tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5" |
b655555e JT |
1819 | ;; |
1820 | sh64*-*) | |
1821 | # SHmedia, 64-bit ABI | |
1822 | target_cpu_default="SH5_BIT|SH4_BIT" | |
3fa1b448 | 1823 | tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5 sh/t-netbsd-sh5-64" |
b655555e JT |
1824 | ;; |
1825 | *) | |
1826 | # SH3, software floating point | |
1827 | target_cpu_default="SH1_BIT|SH2_BIT|SH3_BIT" | |
1828 | tmake_file="${tmake_file} sh/t-netbsd" | |
1829 | ;; | |
1830 | esac | |
b4eb03fe | 1831 | ;; |
61ed06c3 | 1832 | sh-*-*) |
f1a58d92 | 1833 | tm_file="${tm_file} sh/coff.h" |
61ed06c3 HPN |
1834 | ;; |
1835 | sparc-tti-*) | |
0f658c83 | 1836 | tm_file="${tm_file} sparc/pbd.h" |
61ed06c3 | 1837 | ;; |
69474c3c | 1838 | sparc-*-netbsdelf*) |
4cb7482c | 1839 | tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h" |
69474c3c | 1840 | ;; |
61ed06c3 | 1841 | sparc-*-openbsd*) |
0f7a7be7 | 1842 | tm_file="sparc/sparc.h ${tm_file}" |
f1cf4606 ME |
1843 | # needed to unconfuse gdb |
1844 | tmake_file="t-libc-ok t-openbsd sparc/t-openbsd" | |
61ed06c3 HPN |
1845 | # we need collect2 until our bug is fixed... |
1846 | use_collect2=yes | |
1847 | ;; | |
91f0fcee ME |
1848 | sparc64-*-openbsd*) |
1849 | 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 |
1850 | gas=yes gnu_ld=yes |
1851 | with_cpu=ultrasparc | |
91f0fcee | 1852 | ;; |
61ed06c3 | 1853 | sparc-*-elf*) |
8433a25e | 1854 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h" |
a261e0cc | 1855 | tmake_file="sparc/t-elf sparc/t-crtfm" |
61ed06c3 | 1856 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
61ed06c3 | 1857 | ;; |
981f6289 | 1858 | sparc-*-linux*) # SPARC's running GNU/Linux, libc6 |
c40409ce | 1859 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h" |
a261e0cc | 1860 | tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm" |
61ed06c3 | 1861 | ;; |
c7bdf0a6 | 1862 | sparc-*-rtems*) |
8433a25e | 1863 | 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 | 1864 | tmake_file="sparc/t-elf sparc/t-crtfm t-rtems" |
61ed06c3 | 1865 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
bc98ef7f JS |
1866 | if test x$enable_threads = xyes; then |
1867 | thread_file='rtems' | |
1868 | fi | |
61ed06c3 | 1869 | ;; |
8947df0c | 1870 | sparc64-*-solaris2* | sparcv9-*-solaris2*) |
8433a25e | 1871 | 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 |
1872 | if test x$gnu_ld = xyes; then |
1873 | tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h" | |
61ed06c3 | 1874 | fi |
f0871dfe RH |
1875 | if test x$gas = xyes; then |
1876 | tm_file="${tm_file} sparc/sol2-gas-bi.h" | |
1877 | fi | |
a261e0cc | 1878 | tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm" |
61ed06c3 | 1879 | if test x$gnu_ld = xyes; then |
7b3a4df5 | 1880 | tmake_file="$tmake_file t-slibgcc-elf-ver" |
61ed06c3 | 1881 | else |
7b3a4df5 | 1882 | tmake_file="$tmake_file t-slibgcc-sld" |
61ed06c3 | 1883 | fi |
61ed06c3 | 1884 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" |
61ed06c3 HPN |
1885 | if test x${enable_threads} = x ; then |
1886 | enable_threads=$have_pthread_h | |
1887 | if test x${enable_threads} = x ; then | |
1888 | enable_threads=$have_thread_h | |
1889 | fi | |
1890 | fi | |
1891 | if test x${enable_threads} = xyes ; then | |
1892 | if test x${have_pthread_h} = xyes ; then | |
1893 | thread_file='posix' | |
1894 | else | |
1895 | thread_file='solaris' | |
1896 | fi | |
1897 | fi | |
4977bab6 | 1898 | need_64bit_hwint=yes |
61ed06c3 | 1899 | ;; |
8947df0c | 1900 | sparc-*-solaris2*) |
8433a25e | 1901 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h" |
3fc602a0 RH |
1902 | if test x$gnu_ld = xyes; then |
1903 | tm_file="${tm_file} sparc/sol2-gld.h" | |
61ed06c3 | 1904 | fi |
a261e0cc | 1905 | tmake_file="sparc/t-sol2 sparc/t-crtfm" |
61ed06c3 | 1906 | if test x$gnu_ld = xyes; then |
7b3a4df5 | 1907 | tmake_file="$tmake_file t-slibgcc-elf-ver" |
61ed06c3 | 1908 | else |
7b3a4df5 | 1909 | tmake_file="$tmake_file t-slibgcc-sld" |
61ed06c3 | 1910 | fi |
7112135f | 1911 | case $machine in |
8947df0c RH |
1912 | *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) |
1913 | if test x$gnu_ld = xno; then | |
1914 | tm_file="${tm_file} sparc/sol26-sld.h" | |
1915 | fi | |
1916 | ;; | |
1917 | *-*-solaris2.[789]) | |
3fc602a0 RH |
1918 | tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h" |
1919 | if test x$gnu_ld = xyes; then | |
1920 | tm_file="${tm_file} sparc/sol2-gld-bi.h" | |
7112135f | 1921 | fi |
f0871dfe RH |
1922 | if test x$gas = xyes; then |
1923 | tm_file="${tm_file} sparc/sol2-gas-bi.h" | |
1924 | fi | |
7112135f | 1925 | tmake_file="$tmake_file sparc/t-sol2-64" |
4977bab6 | 1926 | need_64bit_hwint=yes |
7112135f AO |
1927 | ;; |
1928 | esac | |
3fc602a0 | 1929 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
61ed06c3 HPN |
1930 | if test x${enable_threads} = x; then |
1931 | enable_threads=$have_pthread_h | |
1932 | if test x${enable_threads} = x; then | |
1933 | enable_threads=$have_thread_h | |
1934 | fi | |
1935 | fi | |
1936 | if test x${enable_threads} = xyes; then | |
1937 | if test x${have_pthread_h} = xyes; then | |
1938 | thread_file='posix' | |
1939 | else | |
1940 | thread_file='solaris' | |
1941 | fi | |
1942 | fi | |
1943 | ;; | |
61ed06c3 | 1944 | sparc-*-sysv4*) |
9b8466f4 | 1945 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/sysv4-only.h" |
61ed06c3 | 1946 | tmake_file=t-svr4 |
61ed06c3 HPN |
1947 | extra_parts="crtbegin.o crtend.o" |
1948 | ;; | |
61ed06c3 | 1949 | sparclite-*-coff*) |
0f658c83 | 1950 | tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h" |
61ed06c3 HPN |
1951 | tmake_file=sparc/t-sparclite |
1952 | ;; | |
61ed06c3 | 1953 | sparclite-*-elf*) |
8433a25e | 1954 | 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 | 1955 | tmake_file="sparc/t-sparclite sparc/t-crtfm" |
61ed06c3 HPN |
1956 | extra_parts="crtbegin.o crtend.o" |
1957 | ;; | |
0e5a4ad8 | 1958 | sparc86x-*-elf*) |
8433a25e | 1959 | 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 | 1960 | tmake_file="sparc/t-sp86x sparc/t-crtfm" |
61ed06c3 HPN |
1961 | extra_parts="crtbegin.o crtend.o" |
1962 | ;; | |
1963 | sparc64-*-aout*) | |
0f7a7be7 | 1964 | tm_file="sparc/sparc.h aoutos.h sparc/aout.h sparc/sp64-aout.h" |
61ed06c3 HPN |
1965 | ;; |
1966 | sparc64-*-elf*) | |
8433a25e | 1967 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sp64-elf.h" |
2d69e3cb | 1968 | tmake_file="${tmake_file} sparc/t-crtfm" |
61ed06c3 HPN |
1969 | extra_parts="crtbegin.o crtend.o" |
1970 | ;; | |
c7240cbd DB |
1971 | sparc64-*-freebsd*|ultrasparc-*-freebsd*) |
1972 | tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h" | |
2d69e3cb | 1973 | tmake_file="${tmake_file} sparc/t-crtfm" |
c7240cbd DB |
1974 | xmake_file=none |
1975 | case "x$with_cpu" in | |
e0054185 | 1976 | xultrasparc) ;; |
c7240cbd DB |
1977 | x) with_cpu=ultrasparc ;; |
1978 | *) echo "$with_cpu not supported for freebsd target"; exit 1 ;; | |
1979 | esac | |
4977bab6 | 1980 | need_64bit_hwint=yes |
c7240cbd | 1981 | ;; |
981f6289 | 1982 | sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux |
19fe522a | 1983 | tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm" |
86f808dc | 1984 | tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h" |
61ed06c3 | 1985 | ;; |
4cb7482c MG |
1986 | sparc64-*-netbsd*) |
1987 | tmake_file="${tmake_file} sparc/t-netbsd64" | |
1988 | tm_file="sparc/biarch64.h ${tm_file}" | |
1989 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h" | |
4cb7482c | 1990 | ;; |
d19fb8e3 | 1991 | strongarm-*-elf*) |
c40409ce | 1992 | 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 |
1993 | tmake_file=arm/t-strongarm-elf |
1994 | out_file=arm/arm.c | |
d19fb8e3 | 1995 | md_file=arm/arm.md |
1c0ca89d | 1996 | extra_modes=arm/arm-modes.def |
d19fb8e3 | 1997 | ;; |
d19fb8e3 | 1998 | strongarm-*-pe) |
f910b1bb | 1999 | tm_file="arm/semi.h arm/aout.h arm/coff.h arm/strongarm-coff.h arm/arm.h arm/pe.h arm/strongarm-pe.h" |
d19fb8e3 NC |
2000 | tmake_file=arm/t-strongarm-pe |
2001 | out_file=arm/arm.c | |
d19fb8e3 | 2002 | md_file=arm/arm.md |
1c0ca89d | 2003 | extra_modes=arm/arm-modes.def |
d19fb8e3 NC |
2004 | extra_objs=pe.o |
2005 | ;; | |
b4378319 NC |
2006 | v850e-*-*) |
2007 | target_cpu_default="TARGET_CPU_v850e" | |
2008 | tm_file="dbxelf.h elfos.h svr4.h v850/v850.h" | |
2009 | tm_p_file=v850/v850-protos.h | |
2010 | tmake_file=v850/t-v850 | |
2011 | md_file=v850/v850.md | |
2012 | out_file=v850/v850.c | |
2013 | if test x$stabs = xyes | |
2014 | then | |
2015 | tm_file="${tm_file} dbx.h" | |
2016 | fi | |
2017 | use_collect2=no | |
2018 | c_target_objs="v850-c.o" | |
2019 | cxx_target_objs="v850-c.o" | |
2020 | ;; | |
61ed06c3 HPN |
2021 | v850-*-*) |
2022 | target_cpu_default="TARGET_CPU_generic" | |
c40409ce | 2023 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
61ed06c3 HPN |
2024 | tmake_file=v850/t-v850 |
2025 | if test x$stabs = xyes | |
2026 | then | |
2027 | tm_file="${tm_file} dbx.h" | |
2028 | fi | |
2029 | use_collect2=no | |
c3edd394 NC |
2030 | c_target_objs="v850-c.o" |
2031 | cxx_target_objs="v850-c.o" | |
61ed06c3 | 2032 | ;; |
8aeea6e6 | 2033 | vax-*-bsd*) # VAXen running BSD |
169274cd | 2034 | tm_file="${tm_file} vax/bsd.h" |
61ed06c3 | 2035 | use_collect2=yes |
61ed06c3 | 2036 | ;; |
8aeea6e6 | 2037 | vax-*-sysv*) # VAXen running system V |
61ed06c3 | 2038 | tm_file="${tm_file} vax/vaxv.h" |
61ed06c3 | 2039 | ;; |
69474c3c | 2040 | vax-*-netbsdelf*) |
ec20cffb | 2041 | tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h" |
69474c3c | 2042 | ;; |
61ed06c3 | 2043 | vax-*-netbsd*) |
f982f805 | 2044 | tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h" |
61ed06c3 | 2045 | tmake_file=t-netbsd |
1169f9e0 | 2046 | extra_parts="" |
5721cd84 | 2047 | use_collect2=yes |
61ed06c3 HPN |
2048 | ;; |
2049 | vax-*-openbsd*) | |
61ed06c3 | 2050 | tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}" |
61ed06c3 HPN |
2051 | use_collect2=yes |
2052 | ;; | |
8aeea6e6 | 2053 | vax-*-ultrix*) # VAXen running ultrix |
61ed06c3 | 2054 | tm_file="${tm_file} vax/ultrix.h" |
61ed06c3 | 2055 | ;; |
8aeea6e6 | 2056 | vax-*-vms*) # VAXen running VMS |
4977bab6 ZW |
2057 | echo "Configuration $machine no longer supported" 1>&2 |
2058 | exit 1 | |
61ed06c3 | 2059 | ;; |
8aeea6e6 | 2060 | vax-*-*) # VAX default entry |
61ed06c3 | 2061 | ;; |
d19fb8e3 | 2062 | xscale-*-elf) |
c40409ce | 2063 | 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 |
2064 | tmake_file=arm/t-xscale-elf |
2065 | out_file=arm/arm.c | |
d19fb8e3 | 2066 | md_file=arm/arm.md |
1c0ca89d | 2067 | extra_modes=arm/arm-modes.def |
d19fb8e3 NC |
2068 | ;; |
2069 | xscale-*-coff) | |
578316b9 | 2070 | tm_file="arm/semi.h arm/aout.h arm/coff.h arm/xscale-coff.h arm/arm.h" |
d19fb8e3 NC |
2071 | tmake_file=arm/t-xscale-coff |
2072 | out_file=arm/arm.c | |
d19fb8e3 | 2073 | md_file=arm/arm.md |
1c0ca89d | 2074 | extra_modes=arm/arm-modes.def |
d19fb8e3 | 2075 | ;; |
14d269bb GK |
2076 | xstormy16-*-elf) |
2077 | # For historical reasons, the target files omit the 'x'. | |
c40409ce | 2078 | tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h" |
14d269bb GK |
2079 | tm_p_file=stormy16/stormy16-protos.h |
2080 | md_file=stormy16/stormy16.md | |
2081 | out_file=stormy16/stormy16.c | |
2082 | tmake_file="stormy16/t-stormy16" | |
2083 | extra_parts="crtbegin.o crtend.o" | |
2084 | ;; | |
03984308 BW |
2085 | xtensa-*-elf*) |
2086 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h" | |
1f37a5b2 | 2087 | tmake_file="xtensa/t-xtensa xtensa/t-elf" |
03984308 BW |
2088 | ;; |
2089 | xtensa-*-linux*) | |
2090 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h" | |
066f1538 | 2091 | tmake_file="t-slibgcc-elf-ver t-linux xtensa/t-xtensa xtensa/t-linux" |
03984308 | 2092 | ;; |
61ed06c3 | 2093 | *) |
c7bdf0a6 | 2094 | echo "*** Configuration $machine not supported" 1>&2 |
61ed06c3 HPN |
2095 | exit 1 |
2096 | ;; | |
2097 | esac | |
2098 | ||
2099 | case $machine in | |
61ed06c3 HPN |
2100 | *-*-sysv*) |
2101 | install_headers_dir=install-headers-cpio | |
2102 | ;; | |
2103 | esac | |
2104 | ||
2105 | # Distinguish i[34567]86 | |
2106 | # Also, do not run mips-tfile on MIPS if using gas. | |
2107 | # Process --with-cpu= for PowerPC/rs6000 | |
2108 | target_cpu_default2= | |
2109 | case $machine in | |
2110 | i486-*-*) | |
e10e23ee | 2111 | target_cpu_default2=TARGET_CPU_DEFAULT_i486 |
61ed06c3 HPN |
2112 | ;; |
2113 | i586-*-*) | |
2114 | case $target_alias in | |
e10e23ee JH |
2115 | k6_2-*) |
2116 | target_cpu_default2=TARGET_CPU_DEFAULT_k6_2 | |
2117 | ;; | |
2118 | k6_3-*) | |
2119 | target_cpu_default2=TARGET_CPU_DEFAULT_k6_3 | |
2120 | ;; | |
61ed06c3 | 2121 | k6-*) |
e10e23ee JH |
2122 | target_cpu_default2=TARGET_CPU_DEFAULT_k6 |
2123 | ;; | |
3780101d | 2124 | pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*) |
e10e23ee | 2125 | target_cpu_default2=TARGET_CPU_DEFAULT_pentium_mmx |
61ed06c3 HPN |
2126 | ;; |
2127 | *) | |
e10e23ee | 2128 | target_cpu_default2=TARGET_CPU_DEFAULT_pentium |
61ed06c3 HPN |
2129 | ;; |
2130 | esac | |
2131 | ;; | |
2132 | i686-*-* | i786-*-*) | |
4ed47bea | 2133 | case $target_alias in |
4977bab6 ZW |
2134 | k8-*) |
2135 | target_cpu_default2=TARGET_CPU_DEFAULT_k8 | |
2136 | ;; | |
e10e23ee JH |
2137 | athlon_xp-*|athlon_mp-*|athlon_4-*) |
2138 | target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse | |
2139 | ;; | |
2140 | athlon_tbird-*|athlon-*) | |
2141 | target_cpu_default2=TARGET_CPU_DEFAULT_athlon | |
2142 | ;; | |
2143 | pentium2-*) | |
2144 | target_cpu_default2=TARGET_CPU_DEFAULT_pentium2 | |
2145 | ;; | |
2146 | pentium3-*) | |
2147 | target_cpu_default2=TARGET_CPU_DEFAULT_pentium3 | |
2148 | ;; | |
2149 | pentium4-*) | |
2150 | target_cpu_default2=TARGET_CPU_DEFAULT_pentium4 | |
4ed47bea JM |
2151 | ;; |
2152 | *) | |
e10e23ee | 2153 | target_cpu_default2=TARGET_CPU_DEFAULT_pentiumpro |
4ed47bea JM |
2154 | ;; |
2155 | esac | |
61ed06c3 | 2156 | ;; |
e10e23ee JH |
2157 | x86_64-*-*) |
2158 | # We should have hammer chip here, but it does not exist yet and | |
2159 | # thus it is not supported. Athlon_SSE is probably equivalent feature | |
2160 | # wise to hammer from our point of view except for 64bit mode. | |
4977bab6 | 2161 | target_cpu_default2=TARGET_CPU_DEFAULT_k8 |
e10e23ee | 2162 | ;; |
61ed06c3 HPN |
2163 | alpha*-*-*) |
2164 | case $machine in | |
2165 | alphaev6[78]*) | |
2166 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX" | |
2167 | ;; | |
2168 | alphaev6*) | |
2169 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX" | |
2170 | ;; | |
2171 | alphapca56*) | |
2172 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" | |
2173 | ;; | |
2174 | alphaev56*) | |
2175 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" | |
2176 | ;; | |
2177 | alphaev5*) | |
2178 | target_cpu_default2="MASK_CPU_EV5" | |
2179 | ;; | |
2180 | esac | |
0e5a4ad8 | 2181 | |
61ed06c3 HPN |
2182 | if test x$gas = xyes |
2183 | then | |
2184 | if test "$target_cpu_default2" = "" | |
2185 | then | |
2186 | target_cpu_default2="MASK_GAS" | |
2187 | else | |
2188 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
2189 | fi | |
2190 | fi | |
2191 | ;; | |
250315f7 | 2192 | arm*-*-* | xscale-*-*) |
61ed06c3 HPN |
2193 | case "x$with_cpu" in |
2194 | x) | |
2195 | # The most generic | |
2196 | target_cpu_default2="TARGET_CPU_generic" | |
2197 | ;; | |
2198 | ||
2199 | # Distinguish cores, and major variants | |
2200 | # arm7m doesn't exist, but D & I don't affect code | |
70f24e49 NC |
2201 | xarm[236789] | xarm250 | xarm[67][01]0 \ |
2202 | | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \ | |
61ed06c3 | 2203 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ |
250315f7 | 2204 | | xxscale | xiwmmxt \ |
9b6b54e2 | 2205 | | xep9312 \ |
61ed06c3 HPN |
2206 | | xstrongarm | xstrongarm110 | xstrongarm1100) |
2207 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
2208 | ;; | |
2209 | ||
2210 | xyes | xno) | |
2211 | echo "--with-cpu must be passed a value" 1>&2 | |
2212 | exit 1 | |
2213 | ;; | |
2214 | ||
2215 | *) | |
2216 | if test x$pass2done = xyes | |
2217 | then | |
2218 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
2219 | exit 1 | |
2220 | fi | |
2221 | ;; | |
2222 | esac | |
9b6b54e2 NC |
2223 | case $machine in |
2224 | 9ep9312-*-*) | |
2225 | target_cpu_default2="TARGET_CPU_9ep9312" | |
2226 | ;; | |
2227 | esac | |
61ed06c3 HPN |
2228 | ;; |
2229 | ||
c21a2372 AM |
2230 | hppa*-*-* | parisc*-*-*) |
2231 | if test x$gas = xyes | |
2232 | then | |
2233 | target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY" | |
2234 | fi | |
806bf413 | 2235 | case $machine in |
d5355cb2 JDA |
2236 | hppa1* | parisc1*) |
2237 | tm_defines="TARGET_SCHED_DEFAULT=\\\"7100LC\\\"" | |
806bf413 JDA |
2238 | ;; |
2239 | esac | |
c21a2372 | 2240 | ;; |
74826b0f EC |
2241 | mips*-*-*) |
2242 | case $machine in | |
2243 | mips*-*-ecoff* | mips*-*-elf*) | |
2244 | if test x$gas = xyes | |
2245 | then | |
2246 | if test x$gnu_ld = xyes | |
2247 | then | |
2248 | target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR" | |
2249 | else | |
2250 | target_cpu_default2="MASK_GAS" | |
2251 | fi | |
2252 | fi | |
2253 | ;; | |
2254 | mips*-*-*) | |
2255 | if test x$gas = xyes | |
61ed06c3 | 2256 | then |
61ed06c3 HPN |
2257 | target_cpu_default2="MASK_GAS" |
2258 | fi | |
74826b0f EC |
2259 | ;; |
2260 | esac | |
2261 | case $machine in | |
2262 | mips*el-*-*) | |
9bb46191 | 2263 | tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines" |
74826b0f EC |
2264 | ;; |
2265 | esac | |
4db83639 RS |
2266 | case $tm_file in |
2267 | *mips/elf.h* | *mips/elf64.h*) | |
2268 | tm_defines="OBJECT_FORMAT_ELF $tm_defines" | |
2269 | ;; | |
2270 | esac | |
6d439235 EC |
2271 | if test "x$enable_gofast" = xyes |
2272 | then | |
2273 | tm_defines="INIT_SUBTARGET_OPTABS=INIT_GOFAST_OPTABS $tm_defines" | |
2274 | tm_file="gofast.h $tm_file" | |
2275 | tmake_file="mips/t-gofast $tmake_file" | |
2276 | else | |
2277 | tmake_file="mips/t-mips $tmake_file" | |
2278 | fi | |
61ed06c3 HPN |
2279 | ;; |
2280 | powerpc*-*-* | rs6000-*-*) | |
480f7f3a AH |
2281 | if test x$enable_altivec = xyes |
2282 | then | |
5e505bc9 | 2283 | tm_file="$tm_file rs6000/altivec-defs.h" |
480f7f3a | 2284 | fi |
61ed06c3 HPN |
2285 | case "x$with_cpu" in |
2286 | x) | |
2287 | ;; | |
2288 | ||
dccd5213 DE |
2289 | xcommon | xpowerpc | xpowerpc64 \ |
2290 | | xpower | xpower2 | xpower3 | xpower4 \ | |
94f1d97c DJ |
2291 | | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \ |
2292 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 | x630 \ | |
2293 | | x740 | x750 | x7400 | x7450 | x505) | |
ff25793c | 2294 | target_cpu_default2="\\\"$with_cpu\\\"" |
61ed06c3 HPN |
2295 | ;; |
2296 | ||
94f1d97c | 2297 | x401 | x403 | x405 | xec603e | x801 | x821 | x823 | x860) |
c19083d8 | 2298 | target_cpu_default2="\\\"$with_cpu\\\"" |
c19083d8 DD |
2299 | ;; |
2300 | ||
61ed06c3 HPN |
2301 | xyes | xno) |
2302 | echo "--with-cpu must be passed a value" 1>&2 | |
2303 | exit 1 | |
2304 | ;; | |
2305 | ||
2306 | *) | |
2307 | if test x$pass2done = xyes | |
2308 | then | |
2309 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
2310 | exit 1 | |
2311 | fi | |
2312 | ;; | |
2313 | esac | |
b17bb466 | 2314 | out_file=rs6000/rs6000.c |
a6e2e53e GK |
2315 | c_target_objs="${c_target_objs} rs6000-c.o" |
2316 | cxx_target_objs="${cxx_target_objs} rs6000-c.o" | |
40b4cdbf | 2317 | tmake_file="rs6000/t-rs6000 ${tmake_file}" |
61ed06c3 HPN |
2318 | ;; |
2319 | sparc*-*-*) | |
2320 | case ".$with_cpu" in | |
2321 | .) | |
2322 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
2323 | ;; | |
2324 | .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9) | |
2325 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
b4378319 NC |
2326 | ;; |
2327 | *) | |
2328 | if test x$pass2done = xyes | |
2329 | then | |
2330 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
2331 | exit 1 | |
2332 | fi | |
2333 | ;; | |
2334 | esac | |
2335 | ;; | |
2336 | v850*-*-*) | |
2337 | case "x$with_cpu" in | |
2338 | x) | |
2339 | ;; | |
09818236 | 2340 | xv850e) |
b4378319 | 2341 | target_cpu_default2="TARGET_CPU_$with_cpu" |
61ed06c3 HPN |
2342 | ;; |
2343 | *) | |
2344 | if test x$pass2done = xyes | |
2345 | then | |
2346 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
2347 | exit 1 | |
2348 | fi | |
2349 | ;; | |
2350 | esac | |
2351 | ;; | |
2352 | esac | |
2353 | ||
2354 | if test "$target_cpu_default2" != "" | |
2355 | then | |
2356 | if test "$target_cpu_default" != "" | |
2357 | then | |
2358 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
2359 | else | |
2360 | target_cpu_default=$target_cpu_default2 | |
2361 | fi | |
2362 | fi | |
2363 | ||
61ed06c3 HPN |
2364 | # Save data on machine being used to compile GCC in build_xm_file. |
2365 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
2366 | if test x$pass1done = x | |
2367 | then | |
4dc0535b ZW |
2368 | if test x$xm_file != x |
2369 | then build_xm_file=$xm_file | |
61ed06c3 HPN |
2370 | fi |
2371 | build_xm_defines=$xm_defines | |
2372 | build_install_headers_dir=$install_headers_dir | |
2373 | build_exeext=$exeext | |
2374 | pass1done=yes | |
2375 | else | |
2376 | if test x$pass2done = x | |
2377 | then | |
4dc0535b ZW |
2378 | if test x$xm_file != x |
2379 | then host_xm_file=$xm_file | |
61ed06c3 HPN |
2380 | fi |
2381 | host_xm_defines=$xm_defines | |
61ed06c3 HPN |
2382 | host_xmake_file="$xmake_file" |
2383 | host_truncate_target=$truncate_target | |
2384 | host_extra_gcc_objs=$extra_gcc_objs | |
2385 | host_extra_objs=$extra_host_objs | |
2386 | host_exeext=$exeext | |
476d9098 | 2387 | out_host_hook_obj=$host_hook_obj |
61ed06c3 HPN |
2388 | pass2done=yes |
2389 | fi | |
2390 | fi |