]>
Commit | Line | Data |
---|---|---|
bb607926 | 1 | # GCC build-, host- and target-specific configuration file. |
81a6a67d | 2 | # Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. |
bb607926 | 3 | |
f12b58b3 | 4 | #This file is part of GCC. |
bb607926 | 5 | |
f12b58b3 | 6 | #GCC is free software; you can redistribute it and/or modify it under |
7 | #the terms of the GNU General Public License as published by the Free | |
8 | #Software Foundation; either version 2, or (at your option) any later | |
9 | #version. | |
bb607926 | 10 | |
f12b58b3 | 11 | #GCC is distributed in the hope that it will be useful, but WITHOUT |
12 | #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 | #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 | #for more details. | |
bb607926 | 15 | |
16 | #You should have received a copy of the GNU General Public License | |
f12b58b3 | 17 | #along with GCC; see the file COPYING. If not, write to the Free |
18 | #Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
19 | #02111-1307, USA. | |
bb607926 | 20 | |
21 | # This is the GCC build-, host- and target-specific configuration file | |
22 | # where a configuration type, as recognized and generated by config.bfd, | |
23 | # is mapped to different system-specific definitions and files. This is | |
24 | # invoked by the autoconf-generated configure script, called for build, | |
25 | # host and target in that order, setting ${machine} to each. Putting it | |
26 | # in a separate shell file lets us skip running autoconf when modifying | |
27 | # build-, host- and target-specific information. | |
28 | ||
29 | # This file switches on the shell variable ${machine}, and also uses the | |
30 | # following shell variables: | |
31 | # | |
32 | # with_* Various variables as set by configure. | |
33 | # | |
34 | # enable_threads_flag Either the name, yes or no depending on whether | |
35 | # threads support was requested. | |
36 | # | |
37 | # gas_flag Either yes or no depending on whether GNU as was | |
38 | # requested. | |
39 | # | |
40 | # gnu_ld_flag Either yes or no depending on whether GNU ld was | |
41 | # requested. | |
42 | ||
43 | # This file sets the following shell variables for use by the | |
44 | # autoconf-generated configure script: | |
45 | # | |
46 | # cpu_type The name of the cpu, if different from machine. | |
47 | # | |
48 | # tm_file A list of target macro files, if different from | |
49 | # "$cpu_type/$cpu_type.h". | |
50 | # | |
51 | # tm_p_file Location of file with declarations for functions | |
52 | # in $out_file. | |
53 | # | |
54 | # out_file The name of the machine description C support | |
55 | # file, if different from "$cpu_type/$cpu_type.c". | |
56 | # | |
57 | # md_file The name of the machine-description file, if | |
58 | # different from "$cpu_type/$cpu_type.md". | |
59 | # | |
60 | # tmake_file A list of machine-description-specific | |
61 | # makefile-fragments, if different from | |
62 | # "$cpu_type/t-$cpu_type". | |
63 | # | |
64 | # float_format Set to the symbolic name for the floating-point | |
65 | # formats used for this machine, if different from | |
66 | # "i64". Used to derive a header file name to | |
67 | # include, like "vax" for "float-vax.h". If no such | |
68 | # file is wanted, set to "none". | |
69 | # | |
70 | # extra_objs List of extra objects that should be linked into | |
71 | # the compiler proper (cc1, cc1obj, cc1plus) | |
72 | # depending on target. | |
73 | # | |
74 | # extra_headers List of used header files from the directory | |
75 | # ginclude. | |
76 | # | |
77 | # host_xmake_file List of host-specific makefile-fragments. | |
78 | # | |
79 | # extra_passes List of extra executables compiled for this target | |
80 | # machine, used for compiling from source to object. | |
81 | # | |
82 | # extra_parts List of extra object files that should be compiled | |
83 | # for this target machine. | |
84 | # | |
85 | # extra_programs Like extra_passes, but these are used when linking. | |
86 | # | |
87 | # host_extra_objs List of extra host-dependant objects that should | |
88 | # be linked into the compiler proper. | |
89 | # | |
bb607926 | 90 | # host_extra_gcc_objs List of extra host-dependant objects that should |
91 | # be linked into the gcc driver. | |
92 | # | |
8daa9e98 | 93 | # c_target_objs List of extra target-dependant objects that be |
94 | # linked into the C compiler only. | |
95 | # | |
96 | # cxx_target_objs List of extra target-dependant objects that be | |
97 | # linked into the C++ compiler only. | |
98 | # | |
bb607926 | 99 | # build_xm_defines List of macros to define when compiling for the |
100 | # build machine. | |
101 | # | |
102 | # build_xm_file List of files to include when compiling for the | |
103 | # build machine. | |
104 | # | |
105 | # host_xm_defines List of macros to define when compiling for the | |
106 | # host machine. | |
107 | # | |
108 | # host_xm_file List of files to include when compiling for the | |
109 | # host machine. | |
110 | # | |
111 | # xm_defines List of macros to define when compiling for the | |
112 | # target machine. | |
113 | # | |
114 | # xm_file List of files to include when compiling for the | |
115 | # target machine. | |
116 | # | |
117 | # use_collect2 Set to yes or no, depending on whether collect2 | |
118 | # will be used. | |
119 | # | |
120 | # target_cpu_default Set to override the default target model. | |
121 | # | |
122 | # build_install_headers_dir | |
123 | # Target to use when installing header files. | |
124 | # | |
bb607926 | 125 | # host_truncate_target |
126 | # Non-empty if the target name should be truncated | |
127 | # on this host, due to filename length issues. | |
128 | # | |
129 | # gdb_needs_out_file_path | |
130 | # Set to yes if gdb needs a dir command with | |
131 | # `dirname $out_file`. | |
132 | # | |
133 | # build_exeext Set to the suffix, if the build machine requires | |
134 | # executables to have a file name suffix. | |
135 | # | |
136 | # host_exeext Set to the suffix, if the host machine requires | |
137 | # executables to have a file name suffix. | |
138 | # | |
139 | # thread_file Set to control which thread package to use. | |
140 | # | |
141 | # gas Set to yes or no depending on whether the target | |
142 | # system normally uses GNU as. | |
143 | ||
144 | # The following variables are used in each case-construct to build up the | |
145 | # outgoing variables: | |
146 | # | |
147 | # xmake_file Makefile-fragment when this system is as a host, | |
148 | # for host_xmake_file. | |
149 | # | |
150 | # extra_host_objs List of extra objects that should be linked into | |
151 | # the compiler proper when this system is a host, | |
152 | # for host_extra_objs. | |
153 | # | |
154 | # install_headers_dir Makefile-target for how the header file directory | |
155 | # is installed, when this system is a build system, | |
156 | # for build_install_headers_dir. | |
157 | # | |
158 | # truncate_target Non-empty if the target name should be truncated | |
159 | # when this system is a host, due to filename length | |
160 | # issues. For host_truncate_target. | |
161 | # | |
162 | # exeext The suffix for executables on this system. | |
163 | # | |
164 | # gnu_ld Set to yes or no depending on whether the target | |
165 | # system normally uses GNU ld. | |
166 | ||
167 | out_file= | |
168 | xmake_file= | |
169 | tmake_file= | |
170 | extra_headers= | |
171 | extra_passes= | |
172 | extra_parts= | |
173 | extra_programs= | |
174 | extra_objs= | |
175 | extra_host_objs= | |
176 | extra_gcc_objs= | |
8daa9e98 | 177 | c_target_objs= |
178 | cxx_target_objs= | |
bb607926 | 179 | xm_defines= |
180 | float_format= | |
181 | # Set this to force installation and use of collect2. | |
182 | use_collect2= | |
183 | # Set this to override the default target model. | |
184 | target_cpu_default= | |
185 | # Set this to control how the header file directory is installed. | |
186 | install_headers_dir=install-headers-tar | |
bb607926 | 187 | # Set this if directory names should be truncated to 14 characters. |
188 | truncate_target= | |
189 | # Set this if gdb needs a dir command with `dirname $out_file` | |
190 | gdb_needs_out_file_path= | |
191 | # Set this if the build machine requires executables to have a | |
192 | # file name suffix. | |
193 | exeext= | |
194 | # Set this to control which thread package will be used. | |
195 | thread_file= | |
196 | # Reinitialize these from the flag values every loop pass, since some | |
197 | # configure entries modify them. | |
198 | gas="$gas_flag" | |
199 | gnu_ld="$gnu_ld_flag" | |
200 | enable_threads=$enable_threads_flag | |
201 | ||
202 | # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be | |
203 | # updated in each machine entry. | |
204 | tm_p_file= | |
205 | cpu_type=`echo $machine | sed 's/-.*$//'` | |
206 | case $machine in | |
207 | alpha*-*-*) | |
208 | cpu_type=alpha | |
209 | ;; | |
210 | strongarm*-*-*) | |
211 | cpu_type=arm | |
212 | ;; | |
213 | arm*-*-*) | |
214 | cpu_type=arm | |
215 | ;; | |
331beb1a | 216 | xscale-*-*) |
217 | cpu_type=arm | |
218 | ;; | |
bb607926 | 219 | c*-convex-*) |
220 | cpu_type=convex | |
221 | ;; | |
222 | i[34567]86-*-*) | |
223 | cpu_type=i386 | |
224 | ;; | |
6630177d | 225 | hppa*-*-* | parisc*-*-*) |
bb607926 | 226 | cpu_type=pa |
227 | ;; | |
228 | m68000-*-*) | |
229 | cpu_type=m68k | |
230 | ;; | |
231 | mips*-*-*) | |
232 | cpu_type=mips | |
233 | ;; | |
234 | pj*-*-*) | |
235 | cpu_type=pj | |
236 | ;; | |
237 | powerpc*-*-*) | |
238 | cpu_type=rs6000 | |
239 | ;; | |
bb607926 | 240 | sparc*-*-*) |
241 | cpu_type=sparc | |
242 | ;; | |
243 | esac | |
244 | ||
245 | tm_file=${cpu_type}/${cpu_type}.h | |
20ffb0b1 | 246 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h |
bb607926 | 247 | then |
20ffb0b1 | 248 | tm_p_file=${cpu_type}/${cpu_type}-protos.h |
249 | fi | |
bb607926 | 250 | # On a.out targets, we need to use collect2. |
251 | case $machine in | |
252 | *-*-*aout*) | |
253 | use_collect2=yes | |
254 | ;; | |
255 | esac | |
256 | ||
1307f5d6 | 257 | # Common parts for GNU/Linux, GNU/Hurd, OpenBSD and FreeBSD systems. |
bb607926 | 258 | case $machine in |
259 | *-*-linux*) | |
597183a7 | 260 | xm_defines=POSIX |
bb607926 | 261 | ;; |
2567d1ca | 262 | *-*-gnu*) |
263 | # On the Hurd, the setup is just about the same on | |
264 | # each different CPU. The specific machines that we | |
265 | # support are matched above and just set $cpu_type. | |
345252d1 | 266 | xm_defines=POSIX |
a26ea229 | 267 | tm_file="${cpu_type}/gnu.h" |
2567d1ca | 268 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
269 | # GNU always uses ELF. | |
270 | elf=yes | |
271 | # GNU tools are the only tools. | |
272 | gnu_ld=yes | |
273 | gas=yes | |
274 | # These details are the same as for Linux. | |
275 | xmake_file=x-linux | |
276 | # But here we need a little extra magic. | |
32e8a7fc | 277 | tmake_file="t-slibgcc-elf-ver t-linux t-gnu" |
a26ea229 | 278 | case $machine in |
279 | i[34567]86-*-*) | |
280 | tm_file="${cpu_type}/${cpu_type}.h i386/att.h linux.h i386/linux.h gnu.h ${tm_file}" | |
281 | ;; | |
282 | mips*-*-*) | |
283 | tm_file="svr4.h ${cpu_type}/${cpu_type}.h ${tm_file}" | |
284 | ;; | |
285 | esac | |
2567d1ca | 286 | ;; |
bb607926 | 287 | *-*-openbsd*) |
288 | tm_file=${cpu_type}/openbsd.h | |
c7be79ca | 289 | tmake_file="t-libc-ok t-openbsd t-libgcc-pic" |
345252d1 | 290 | xm_defines=POSIX |
bb607926 | 291 | if test x$enable_threads = xyes; then |
292 | thread_file='posix' | |
293 | tmake_file="${tmake_file} t-openbsd-thread" | |
294 | fi | |
295 | ;; | |
1307f5d6 | 296 | *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) |
297 | # This is the place-holder for the generic a.out configuration | |
298 | # of FreeBSD. No actual configuration resides here since | |
299 | # there was only ever a bare-bones ix86 configuration for | |
300 | # a.out and it exists solely in the machine-specific section. | |
301 | # This place-holder must exist to avoid dropping into | |
302 | # the generic ELF configuration of FreeBSD (i.e. it must be | |
303 | # ordered before that section). | |
304 | ;; | |
305 | *-*-freebsd*) | |
306 | # This is the generic ELF configuration of FreeBSD. Later | |
307 | # machine-specific sections may refine and add to this | |
308 | # configuration. | |
309 | # | |
310 | # Due to tm_file entry ordering issues that vary between cpu | |
311 | # architectures, we only define fbsd_tm_file to allow the | |
312 | # machine-specific section to dictate the final order of all | |
313 | # entries of tm_file with the minor exception that components | |
314 | # of the tm_file set here will always be of the form: | |
315 | # | |
316 | # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd.h | |
317 | # | |
318 | # The machine-specific section should not tamper with this | |
319 | # ordering but may order all other entries of tm_file as it | |
320 | # pleases around the provided core setting. | |
321 | gas=yes | |
322 | gnu_ld=yes | |
323 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
324 | case $machine in | |
325 | *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";; | |
326 | *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";; | |
327 | *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";; | |
328 | *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";; | |
329 | *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;; | |
330 | esac | |
331 | tmake_file=t-freebsd | |
332 | xm_defines=POSIX | |
333 | case x${enable_threads} in | |
334 | xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";; | |
335 | x | xyes | xpthreads | xposix) | |
336 | thread_file='posix' | |
337 | tmake_file="${tmake_file} t-freebsd-thread" | |
338 | ;; | |
339 | *) echo 'Unknown thread configuration for FreeBSD'; exit 1;; | |
340 | esac | |
341 | fbsd_tm_file="${fbsd_tm_file} freebsd.h" | |
18a54b02 | 342 | if test x${thread_file} = xposix; then |
343 | if test x${enable_libgcj} = xyes; then | |
344 | echo 'FreeBSD does not currently handle --enable-threads (now' | |
345 | echo 'the default to match system compiler) and --enable-libgcj.' | |
346 | echo 'Please explicitly configure with --disable-threads or' | |
347 | echo '--disable-libgcj' | |
348 | exit 1 | |
349 | fi | |
350 | fi | |
1307f5d6 | 351 | ;; |
bb607926 | 352 | esac |
353 | ||
354 | case $machine in | |
355 | # Support site-specific machine types. | |
356 | *local*) | |
bb607926 | 357 | rest=`echo $machine | sed -e "s/$cpu_type-//"` |
bb607926 | 358 | tm_file=${cpu_type}/$rest.h |
e1688c3e | 359 | if test -f $srcdir/config/${cpu_type}/xm-$rest.h |
360 | then xm_file=${cpu_type}/xm-$rest.h | |
bb607926 | 361 | fi |
e1688c3e | 362 | if test -f $srcdir/config/${cpu_type}/x-$rest |
363 | then xmake_file=${cpu_type}/x-$rest | |
364 | fi | |
365 | if test -f $srcdir/config/${cpu_type}/t-$rest | |
366 | then tmake_file=${cpu_type}/t-$rest | |
bb607926 | 367 | fi |
368 | ;; | |
369 | 1750a-*-*) | |
513f3e74 | 370 | # 1750a is only supported as a target. |
371 | case "$build,$host" in 1750a*,* | *,1750a* ) | |
372 | echo "*** $machine is only supported as a target" >&2 | |
373 | exit 1 | |
374 | esac | |
bb607926 | 375 | ;; |
376 | a29k-*-bsd* | a29k-*-sym1*) | |
377 | tm_file="${tm_file} a29k/unix.h" | |
597183a7 | 378 | xm_defines=POSIX |
bb607926 | 379 | use_collect2=yes |
380 | ;; | |
381 | a29k-*-udi | a29k-*-coff) | |
01d15dc5 | 382 | tm_file="${tm_file} dbxcoff.h" |
bb607926 | 383 | tmake_file=a29k/t-a29kbare |
384 | ;; | |
742d48c2 | 385 | a29k*-*-rtems*) |
386 | tm_file=a29k/rtems.h | |
387 | tmake_file="a29k/t-a29kbare t-rtems" | |
388 | if test x$enable_threads = xyes; then | |
389 | thread_file='rtems' | |
390 | fi | |
391 | ;; | |
bb607926 | 392 | a29k-wrs-vxworks*) |
01d15dc5 | 393 | tm_file="${tm_file} dbxcoff.h a29k/vx29k.h" |
bb607926 | 394 | tmake_file=a29k/t-vx29k |
395 | extra_parts="crtbegin.o crtend.o" | |
396 | thread_file='vxworks' | |
397 | ;; | |
398 | a29k-*-*) # Default a29k environment. | |
399 | use_collect2=yes | |
400 | ;; | |
9caef960 | 401 | alpha*-*-unicosmk*) |
402 | use_collect2=yes | |
403 | tm_file="${tm_file} alpha/unicosmk.h" | |
404 | ||
405 | # Don't include t-ieee for now because we don't support that yet | |
406 | # tmake_file="alpha/t-ieee" | |
407 | tmake_file="alpha/t-unicosmk" | |
408 | ;; | |
bb607926 | 409 | alpha-*-interix) |
410 | tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h" | |
411 | ||
412 | # GAS + IEEE_CONFORMANT+IEEE (no inexact); | |
413 | #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE" | |
414 | ||
415 | # GAS + IEEE_CONFORMANT | |
416 | target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT" | |
417 | ||
597183a7 | 418 | xm_defines=POSIX |
02be28b3 | 419 | xm_file="alpha/xm-alpha-interix.h xm-interix.h" |
513f3e74 | 420 | xmake_file=x-interix |
bb607926 | 421 | tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee" |
422 | if test x$enable_threads = xyes ; then | |
423 | thread_file='posix' | |
424 | fi | |
425 | if test x$stabs = xyes ; then | |
426 | tm_file="${tm_file} dbxcoff.h" | |
427 | fi | |
428 | #prefix='$$INTERIX_ROOT'/usr/contrib | |
429 | #local_prefix='$$INTERIX_ROOT'/usr/contrib | |
430 | ;; | |
431 | alpha*-*-linux*ecoff*) | |
432 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" | |
433 | target_cpu_default="MASK_GAS" | |
434 | tmake_file="alpha/t-alpha alpha/t-ieee" | |
435 | gas=no | |
bb607926 | 436 | gas=yes gnu_ld=yes |
437 | ;; | |
438 | alpha*-*-linux*libc1*) | |
439 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" | |
440 | target_cpu_default="MASK_GAS" | |
8969afbe | 441 | tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-crtfm alpha/t-ieee" |
bb607926 | 442 | gas=yes gnu_ld=yes |
443 | if test x$enable_threads = xyes; then | |
444 | thread_file='posix' | |
445 | fi | |
446 | ;; | |
447 | alpha*-*-linux*) | |
448 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" | |
449 | target_cpu_default="MASK_GAS" | |
8969afbe | 450 | tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee" |
bb607926 | 451 | gas=yes gnu_ld=yes |
452 | if test x$enable_threads = xyes; then | |
453 | thread_file='posix' | |
454 | fi | |
455 | ;; | |
456 | alpha*-*-freebsd*) | |
1307f5d6 | 457 | tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h" |
bb607926 | 458 | target_cpu_default="MASK_GAS" |
8969afbe | 459 | tmake_file="${tmake_file} alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee" |
bb607926 | 460 | ;; |
461 | alpha*-*-netbsd*) | |
345252d1 | 462 | xm_defines=POSIX |
bb607926 | 463 | tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h" |
464 | target_cpu_default="MASK_GAS" | |
8969afbe | 465 | tmake_file="alpha/t-crtbe alpha/t-crtfm alpha/t-alpha alpha/t-ieee" |
bb607926 | 466 | gas=yes gnu_ld=yes |
467 | ;; | |
468 | ||
469 | alpha*-*-openbsd*) | |
470 | # default x-alpha is only appropriate for dec-osf. | |
471 | target_cpu_default="MASK_GAS" | |
472 | tmake_file="alpha/t-alpha alpha/t-ieee" | |
473 | ;; | |
474 | ||
475 | alpha*-dec-osf*) | |
345252d1 | 476 | xm_defines=POSIX |
bb607926 | 477 | if test x$stabs = xyes |
478 | then | |
479 | tm_file="${tm_file} dbx.h" | |
480 | fi | |
481 | if test x$gas != xyes | |
482 | then | |
483 | extra_passes="mips-tfile mips-tdump" | |
484 | fi | |
485 | use_collect2=yes | |
8969afbe | 486 | tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf alpha/t-crtfm" |
bb607926 | 487 | case $machine in |
488 | *-*-osf1*) | |
489 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" | |
490 | ;; | |
491 | *-*-osf[23]*) | |
492 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" | |
493 | ;; | |
494 | *-*-osf4*) | |
495 | tm_file="${tm_file} alpha/osf.h" | |
496 | tmake_file="$tmake_file alpha/t-osf4" | |
497 | # Some versions of OSF4 (specifically X4.0-9 296.7) have | |
498 | # a broken tar, so we use cpio instead. | |
499 | install_headers_dir=install-headers-cpio | |
500 | ;; | |
501 | *-*-osf5*) | |
502 | tm_file="${tm_file} alpha/osf.h alpha/osf5.h" | |
503 | tmake_file="$tmake_file alpha/t-osf4" | |
609b78bb | 504 | float_format=i128 |
bb607926 | 505 | ;; |
506 | esac | |
507 | case $machine in | |
508 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*) | |
509 | target_cpu_default=MASK_SUPPORT_ARCH | |
510 | ;; | |
511 | esac | |
512 | ;; | |
513 | alpha*-*-vxworks*) | |
345252d1 | 514 | xm_defines=POSIX |
bb607926 | 515 | tm_file="${tm_file} dbx.h alpha/vxworks.h" |
516 | tmake_file="alpha/t-alpha alpha/t-ieee" | |
517 | if [ x$gas != xyes ] | |
518 | then | |
519 | extra_passes="mips-tfile mips-tdump" | |
520 | fi | |
521 | use_collect2=yes | |
522 | thread_file='vxworks' | |
523 | ;; | |
bb607926 | 524 | alpha*-dec-vms*) |
345252d1 | 525 | xm_defines=POSIX |
bb607926 | 526 | tm_file=alpha/vms.h |
e1688c3e | 527 | xm_file=alpha/xm-vms.h |
bb607926 | 528 | tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee" |
529 | ;; | |
01d15dc5 | 530 | arc-*-elf*) |
531 | extra_parts="crtinit.o crtfini.o" | |
532 | ;; | |
742d48c2 | 533 | arm*-*-rtems*) |
a9acd81a | 534 | tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/rtems-elf.h rtems.h" |
742d48c2 | 535 | tmake_file="arm/t-arm-elf t-rtems" |
536 | if test x$enable_threads = xyes; then | |
537 | thread_file='rtems' | |
538 | fi | |
742d48c2 | 539 | ;; |
bb607926 | 540 | arm-*-coff* | armel-*-coff*) |
541 | tm_file=arm/coff.h | |
542 | tmake_file=arm/t-arm-coff | |
543 | ;; | |
544 | arm-*-vxworks*) | |
545 | tm_file=arm/vxarm.h | |
546 | tmake_file=arm/t-arm-coff | |
547 | thread_file='vxworks' | |
548 | ;; | |
549 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) | |
550 | tm_file=arm/riscix1-1.h | |
551 | use_collect2=yes | |
552 | ;; | |
553 | arm-*-riscix*) # Acorn RISC machine | |
554 | if test x$gas = xyes | |
555 | then | |
556 | tm_file=arm/rix-gas.h | |
557 | else | |
558 | tm_file=arm/riscix.h | |
559 | fi | |
560 | xmake_file=arm/x-riscix | |
561 | tmake_file=arm/t-riscix | |
562 | use_collect2=yes | |
563 | ;; | |
564 | arm-semi-aout | armel-semi-aout) | |
565 | tm_file=arm/semi.h | |
566 | tmake_file=arm/t-semi | |
567 | ;; | |
568 | arm-semi-aof | armel-semi-aof) | |
569 | tm_file=arm/semiaof.h | |
23573244 | 570 | tmake_file=arm/t-semi |
bb607926 | 571 | ;; |
572 | arm*-*-netbsd*) | |
573 | tm_file=arm/netbsd.h | |
574 | tmake_file="t-netbsd arm/t-netbsd" | |
575 | use_collect2=yes | |
576 | ;; | |
c806acc4 | 577 | arm*-*-linux*) # ARM GNU/Linux with ELF |
bb607926 | 578 | xmake_file=x-linux |
a9acd81a | 579 | tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" |
32e8a7fc | 580 | tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux" |
bb607926 | 581 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
582 | gnu_ld=yes | |
583 | case x${enable_threads} in | |
584 | x | xyes | xpthreads | xposix) | |
585 | thread_file='posix' | |
586 | ;; | |
587 | esac | |
588 | ;; | |
589 | arm*-*-uclinux*) # ARM ucLinux | |
a9acd81a | 590 | tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/uclinux-elf.h" |
bb607926 | 591 | tmake_file=arm/t-arm-elf |
592 | ;; | |
593 | arm*-*-aout) | |
594 | tm_file=arm/aout.h | |
595 | tmake_file=arm/t-arm-aout | |
596 | ;; | |
597 | arm*-*-ecos-elf) | |
a9acd81a | 598 | tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/ecos-elf.h" |
bb607926 | 599 | tmake_file=arm/t-arm-elf |
600 | ;; | |
601 | arm*-*-elf) | |
a9acd81a | 602 | tm_file="elfos.h arm/unknown-elf.h arm/elf.h" |
bb607926 | 603 | tmake_file=arm/t-arm-elf |
604 | ;; | |
605 | arm*-*-conix*) | |
a9acd81a | 606 | tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/conix-elf.h" |
bb607926 | 607 | tmake_file=arm/t-arm-elf |
608 | ;; | |
609 | arm*-*-oabi) | |
a9acd81a | 610 | tm_file="arm/unknown-elf-oabi.h elfos.h arm/unknown-elf.h arm/elf.h" |
bb607926 | 611 | tmake_file=arm/t-arm-elf |
612 | ;; | |
613 | arm-*-pe*) | |
614 | tm_file=arm/pe.h | |
615 | tmake_file=arm/t-pe | |
616 | extra_objs="pe.o" | |
617 | ;; | |
618 | avr-*-*) | |
619 | ;; | |
620 | c1-convex-*) # Convex C1 | |
621 | target_cpu_default=1 | |
622 | use_collect2=yes | |
623 | ;; | |
624 | c2-convex-*) # Convex C2 | |
625 | target_cpu_default=2 | |
626 | use_collect2=yes | |
627 | ;; | |
628 | c32-convex-*) | |
629 | target_cpu_default=4 | |
630 | use_collect2=yes | |
631 | ;; | |
632 | c34-convex-*) | |
633 | target_cpu_default=8 | |
634 | use_collect2=yes | |
635 | ;; | |
636 | c38-convex-*) | |
637 | target_cpu_default=16 | |
638 | use_collect2=yes | |
639 | ;; | |
742d48c2 | 640 | c4x-*-rtems*) |
641 | cpu_type=c4x | |
642 | tmake_file="c4x/t-c4x t-rtems" | |
643 | tm_file=c4x/rtems.h | |
644 | if test x$enable_threads = xyes; then | |
645 | thread_file='rtems' | |
646 | fi | |
647 | ;; | |
bb607926 | 648 | c4x-*) |
649 | cpu_type=c4x | |
650 | float_format=c4x | |
651 | tmake_file=c4x/t-c4x | |
652 | ;; | |
653 | clipper-intergraph-clix*) | |
654 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
597183a7 | 655 | xm_defines=POSIX |
bb607926 | 656 | extra_headers=va-clipper.h |
657 | extra_parts="crtbegin.o crtend.o" | |
658 | install_headers_dir=install-headers-cpio | |
659 | ;; | |
660 | d30v-*) | |
661 | float_format=i64 | |
662 | ;; | |
663 | dsp16xx-*) | |
664 | ;; | |
665 | elxsi-elxsi-*) | |
666 | use_collect2=yes | |
667 | ;; | |
668 | fr30-*-elf) | |
669 | tm_file="fr30/fr30.h" | |
670 | tmake_file=fr30/t-fr30 | |
671 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
672 | ;; | |
742d48c2 | 673 | h8300-*-rtems*) |
674 | tmake_file="h8300/t-h8300 t-rtems" | |
675 | tm_file=h8300/rtems.h | |
676 | if test x$enable_threads = xyes; then | |
677 | thread_file='rtems' | |
678 | fi | |
679 | float_format=i32 | |
680 | ;; | |
15b65932 | 681 | h8300-*-elf*) |
682 | tmake_file="h8300/t-h8300 h8300/t-elf" | |
683 | tm_file="h8300/h8300.h h8300/elf.h" | |
684 | float_format=i32 | |
685 | ;; | |
bb607926 | 686 | h8300-*-*) |
687 | float_format=i32 | |
688 | ;; | |
6630177d | 689 | hppa*64*-*-linux* | parisc*64*-*-linux*) |
690 | target_cpu_default="(MASK_PA_11 | MASK_PA_20)" | |
691 | tm_file="pa/pa64-start.h ${tm_file} linux.h pa/pa-linux.h \ | |
692 | pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h" | |
693 | tmake_file=pa/t-linux64 | |
6630177d | 694 | gas=yes gnu_ld=yes |
695 | ;; | |
696 | hppa*-*-linux* | parisc*-*-linux*) | |
697 | target_cpu_default="MASK_PA_11" | |
698 | tm_file="${tm_file} linux.h pa/pa-linux.h \ | |
699 | pa/pa32-regs.h pa/pa32-linux.h" | |
32e8a7fc | 700 | tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux" |
6630177d | 701 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
bb607926 | 702 | gas=yes gnu_ld=yes |
703 | if test x$enable_threads = xyes; then | |
704 | thread_file='posix' | |
705 | fi | |
706 | ;; | |
707 | hppa*-*-openbsd*) | |
708 | target_cpu_default="MASK_PA_11" | |
f6dfa909 | 709 | tmake_file=pa/t-openbsd |
bb607926 | 710 | ;; |
742d48c2 | 711 | hppa1.1-*-rtems*) |
712 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h" | |
742d48c2 | 713 | tmake_file="pa/t-pro t-rtems" |
714 | if test x$enable_threads = xyes; then | |
715 | thread_file='rtems' | |
716 | fi | |
717 | ;; | |
bb607926 | 718 | hppa1.1-*-pro*) |
719 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" | |
720 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h" | |
bb607926 | 721 | tmake_file=pa/t-pro |
722 | ;; | |
723 | hppa1.1-*-osf*) | |
724 | target_cpu_default="MASK_PA_11" | |
725 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" | |
726 | use_collect2=yes | |
727 | ;; | |
728 | hppa1.1-*-rtems*) | |
729 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" | |
730 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h" | |
bb607926 | 731 | tmake_file=pa/t-pro |
732 | ;; | |
733 | hppa1.0-*-osf*) | |
734 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" | |
735 | use_collect2=yes | |
736 | ;; | |
737 | hppa1.1-*-bsd*) | |
738 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h" | |
739 | target_cpu_default="MASK_PA_11" | |
740 | use_collect2=yes | |
741 | ;; | |
742 | hppa1.0-*-bsd*) | |
743 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h" | |
744 | use_collect2=yes | |
745 | ;; | |
746 | hppa1.0-*-hpux7*) | |
747 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h" | |
597183a7 | 748 | xm_defines=POSIX |
bb607926 | 749 | xmake_file=pa/x-pa-hpux |
bb607926 | 750 | install_headers_dir=install-headers-cpio |
751 | use_collect2=yes | |
752 | ;; | |
753 | hppa1.0-*-hpux8.0[0-2]*) | |
754 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" | |
597183a7 | 755 | xm_defines=POSIX |
bb607926 | 756 | xmake_file=pa/x-pa-hpux |
6630177d | 757 | if test x$gas != xyes |
bb607926 | 758 | then |
bb607926 | 759 | tm_file="pa/pa-oldas.h ${tm_file}" |
760 | fi | |
761 | install_headers_dir=install-headers-cpio | |
762 | use_collect2=yes | |
763 | ;; | |
764 | hppa1.1-*-hpux8.0[0-2]*) | |
765 | target_cpu_default="MASK_PA_11" | |
766 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" | |
597183a7 | 767 | xm_defines=POSIX |
bb607926 | 768 | xmake_file=pa/x-pa-hpux |
6630177d | 769 | if test x$gas != xyes |
bb607926 | 770 | then |
bb607926 | 771 | tm_file="pa/pa-oldas.h ${tm_file}" |
772 | fi | |
773 | install_headers_dir=install-headers-cpio | |
774 | use_collect2=yes | |
775 | ;; | |
776 | hppa1.1-*-hpux8*) | |
777 | target_cpu_default="MASK_PA_11" | |
778 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" | |
597183a7 | 779 | xm_defines=POSIX |
bb607926 | 780 | xmake_file=pa/x-pa-hpux |
bb607926 | 781 | install_headers_dir=install-headers-cpio |
782 | use_collect2=yes | |
783 | ;; | |
784 | hppa1.0-*-hpux8*) | |
785 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" | |
597183a7 | 786 | xm_defines=POSIX |
bb607926 | 787 | xmake_file=pa/x-pa-hpux |
bb607926 | 788 | install_headers_dir=install-headers-cpio |
789 | use_collect2=yes | |
790 | ;; | |
791 | hppa1.1-*-hpux10* | hppa2*-*-hpux10*) | |
792 | target_cpu_default="MASK_PA_11" | |
793 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" | |
794 | float_format=i128 | |
597183a7 | 795 | xm_defines=POSIX |
bb607926 | 796 | xmake_file=pa/x-pa-hpux |
797 | tmake_file=pa/t-pa | |
bb607926 | 798 | if test x$enable_threads = x; then |
799 | enable_threads=$have_pthread_h | |
800 | fi | |
801 | case x${enable_threads} in | |
802 | xyes | xdce) | |
803 | tmake_file="${tmake_file} pa/t-dce-thr" | |
804 | ;; | |
805 | esac | |
806 | install_headers_dir=install-headers-cpio | |
807 | use_collect2=yes | |
808 | ;; | |
809 | hppa1.0-*-hpux10*) | |
810 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" | |
811 | float_format=i128 | |
597183a7 | 812 | xm_defines=POSIX |
bb607926 | 813 | xmake_file=pa/x-pa-hpux |
814 | tmake_file=pa/t-pa | |
bb607926 | 815 | if test x$enable_threads = x; then |
816 | enable_threads=$have_pthread_h | |
817 | fi | |
818 | case x${enable_threads} in | |
819 | xyes | xdce) | |
820 | tmake_file="${tmake_file} pa/t-dce-thr" | |
821 | ;; | |
822 | esac | |
823 | install_headers_dir=install-headers-cpio | |
824 | use_collect2=yes | |
825 | ;; | |
826 | hppa*64*-*-hpux11*) | |
597183a7 | 827 | xm_defines=POSIX |
bb607926 | 828 | xmake_file=pa/x-pa-hpux |
829 | tmake_file=pa/t-pa | |
2f33fae1 | 830 | tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h" |
bb607926 | 831 | float_format=i128 |
832 | tmake_file=pa/t-pa64 | |
f9f97de8 | 833 | target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)" |
bb607926 | 834 | |
bb607926 | 835 | # if [ x$enable_threads = x ]; then |
836 | # enable_threads=$have_pthread_h | |
837 | # fi | |
838 | # if [ x$enable_threads = xyes ]; then | |
839 | # thread_file='dce' | |
840 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
841 | # fi | |
842 | install_headers_dir=install-headers-cpio | |
843 | use_collect2=yes | |
844 | ;; | |
845 | hppa1.1-*-hpux11* | hppa2*-*-hpux11*) | |
846 | target_cpu_default="MASK_PA_11" | |
847 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" | |
848 | float_format=i128 | |
597183a7 | 849 | xm_defines=POSIX |
bb607926 | 850 | xmake_file=pa/x-pa-hpux |
851 | tmake_file=pa/t-pa | |
bb607926 | 852 | # if test x$enable_threads = x; then |
853 | # enable_threads=$have_pthread_h | |
854 | # fi | |
855 | # if test x$enable_threads = xyes; then | |
856 | # thread_file='dce' | |
857 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
858 | # fi | |
859 | install_headers_dir=install-headers-cpio | |
860 | use_collect2=yes | |
861 | ;; | |
862 | hppa1.0-*-hpux11*) | |
863 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" | |
864 | float_format=i128 | |
597183a7 | 865 | xm_defines=POSIX |
bb607926 | 866 | xmake_file=pa/x-pa-hpux |
bb607926 | 867 | # if test x$enable_threads = x; then |
868 | # enable_threads=$have_pthread_h | |
869 | # fi | |
870 | # if test x$enable_threads = xyes; then | |
871 | # thread_file='dce' | |
872 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
873 | # fi | |
874 | install_headers_dir=install-headers-cpio | |
875 | use_collect2=yes | |
876 | ;; | |
877 | hppa1.1-*-hpux* | hppa2*-*-hpux*) | |
878 | target_cpu_default="MASK_PA_11" | |
879 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" | |
597183a7 | 880 | xm_defines=POSIX |
bb607926 | 881 | xmake_file=pa/x-pa-hpux |
bb607926 | 882 | install_headers_dir=install-headers-cpio |
883 | use_collect2=yes | |
884 | ;; | |
885 | hppa1.0-*-hpux*) | |
886 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" | |
597183a7 | 887 | xm_defines=POSIX |
bb607926 | 888 | xmake_file=pa/x-pa-hpux |
bb607926 | 889 | install_headers_dir=install-headers-cpio |
890 | use_collect2=yes | |
891 | ;; | |
892 | hppa1.1-*-hiux* | hppa2*-*-hiux*) | |
893 | target_cpu_default="MASK_PA_11" | |
894 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" | |
597183a7 | 895 | xm_defines=POSIX |
bb607926 | 896 | xmake_file=pa/x-pa-hpux |
bb607926 | 897 | install_headers_dir=install-headers-cpio |
898 | use_collect2=yes | |
899 | ;; | |
900 | hppa1.0-*-hiux*) | |
901 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" | |
597183a7 | 902 | xm_defines=POSIX |
bb607926 | 903 | xmake_file=pa/x-pa-hpux |
bb607926 | 904 | install_headers_dir=install-headers-cpio |
905 | use_collect2=yes | |
906 | ;; | |
907 | hppa*-*-lites*) | |
908 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h" | |
909 | target_cpu_default="MASK_PA_11" | |
910 | use_collect2=yes | |
911 | ;; | |
912 | hppa*-*-mpeix*) | |
913 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h" | |
bb607926 | 914 | xmake_file=pa/x-pa-mpeix |
915 | echo "You must use gas. Assuming it is already installed." | |
6630177d | 916 | gas=yes |
bb607926 | 917 | install_headers_dir=install-headers-tar |
918 | use_collect2=yes | |
919 | ;; | |
920 | i370-*-opened*) # IBM 360/370/390 Architecture | |
597183a7 | 921 | xm_defines='POSIX FATAL_EXIT_CODE=12' |
bb607926 | 922 | tm_file=i370/oe.h |
923 | xmake_file=i370/x-oe | |
bb607926 | 924 | ;; |
925 | i370-*-mvs*) | |
597183a7 | 926 | xm_defines='POSIX FATAL_EXIT_CODE=12' |
bb607926 | 927 | tm_file=i370/mvs.h |
bb607926 | 928 | ;; |
929 | i370-*-linux*) | |
bb607926 | 930 | xmake_file=x-linux |
931 | tm_file="i370/linux.h ${tm_file}" | |
32e8a7fc | 932 | tmake_file="t-slibgcc-elf-ver t-linux" |
bb607926 | 933 | # broken_install=yes |
934 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
935 | # extra_parts="crtbegin.o crtend.o" | |
936 | gnu_ld=yes | |
937 | gas=yes | |
938 | elf=yes | |
939 | if test x$enable_threads = xyes; then | |
940 | thread_file='posix' | |
941 | fi | |
942 | ;; | |
e37e4a50 | 943 | i[34567]86-*-chorusos*) |
597183a7 | 944 | xm_defines=POSIX |
b0d7cff1 | 945 | tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h chorus.h" |
e37e4a50 | 946 | tmake_file=i386/t-i386elf |
947 | xmake_file=x-svr4 | |
948 | case x${enable_threads} in | |
949 | xyes | xpthreads | xposix) | |
950 | thread_file='posix' | |
951 | ;; | |
952 | esac | |
953 | ;; | |
bb607926 | 954 | i[34567]86-*-elf*) |
597183a7 | 955 | xm_defines=POSIX |
f006a2e6 | 956 | tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h" |
bb607926 | 957 | tmake_file=i386/t-i386elf |
958 | xmake_file=x-svr4 | |
959 | ;; | |
960 | i[34567]86-ibm-aix*) # IBM PS/2 running AIX | |
961 | if test x$gas = xyes | |
962 | then | |
963 | tm_file=i386/aix386.h | |
964 | extra_parts="crtbegin.o crtend.o" | |
965 | tmake_file=i386/t-crtstuff | |
966 | else | |
967 | tm_file=i386/aix386ng.h | |
968 | use_collect2=yes | |
969 | fi | |
597183a7 | 970 | xm_defines=POSIX |
bb607926 | 971 | ;; |
972 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 | |
597183a7 | 973 | xm_defines="POSIX SMALL_ARG_MAX" |
bb607926 | 974 | if test x$stabs = xyes -a x$gas = xyes |
975 | then | |
976 | tm_file=i386/sysv4gdb.h | |
977 | else | |
978 | tm_file=i386/sysv4.h | |
979 | fi | |
980 | extra_parts="crtbegin.o crtend.o" | |
981 | tmake_file=i386/t-crtpic | |
982 | ;; | |
983 | i[34567]86-next-*) | |
984 | tm_file=i386/next.h | |
bb607926 | 985 | tmake_file=i386/t-next |
bb607926 | 986 | extra_objs=nextstep.o |
987 | extra_parts="crtbegin.o crtend.o" | |
988 | if test x$enable_threads = xyes; then | |
989 | thread_file='mach' | |
990 | fi | |
991 | ;; | |
992 | i[34567]86-*-netware) # Intel 80386's running netware | |
993 | tm_file=i386/netware.h | |
994 | tmake_file=i386/t-netware | |
995 | ;; | |
996 | i[34567]86-sequent-bsd*) # 80386 from Sequent | |
997 | use_collect2=yes | |
998 | if test x$gas = xyes | |
999 | then | |
1000 | tm_file=i386/seq-gas.h | |
1001 | else | |
1002 | tm_file=i386/sequent.h | |
1003 | fi | |
1004 | ;; | |
1005 | i[34567]86-sequent-ptx1*) | |
597183a7 | 1006 | xm_defines=POSIX |
bb607926 | 1007 | tm_file=i386/seq-sysv3.h |
1008 | tmake_file=i386/t-crtstuff | |
1009 | extra_parts="crtbegin.o crtend.o" | |
1010 | install_headers_dir=install-headers-cpio | |
1011 | ;; | |
1012 | i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) | |
597183a7 | 1013 | xm_defines=POSIX |
bb607926 | 1014 | tm_file=i386/seq2-sysv3.h |
1015 | tmake_file=i386/t-crtstuff | |
1016 | extra_parts="crtbegin.o crtend.o" | |
1017 | install_headers_dir=install-headers-cpio | |
1018 | ;; | |
1019 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) | |
f92a3fd0 | 1020 | if test x$gas = xyes |
1021 | then | |
1022 | tm_file="${tm_file} usegas.h" | |
1023 | fi | |
597183a7 | 1024 | xm_defines="POSIX SMALL_ARG_MAX" |
bb607926 | 1025 | xmake_file=x-svr4 |
1026 | tm_file=i386/ptx4-i.h | |
1027 | tmake_file=t-svr4 | |
1028 | extra_parts="crtbegin.o crtend.o" | |
1029 | install_headers_dir=install-headers-cpio | |
1030 | ;; | |
1031 | i386-sun-sunos*) # Sun i386 roadrunner | |
597183a7 | 1032 | xm_defines=POSIX |
bb607926 | 1033 | tm_file=i386/sun.h |
1034 | use_collect2=yes | |
1035 | ;; | |
1036 | i[34567]86-wrs-vxworks*) | |
1037 | tm_file=i386/vxi386.h | |
bb607926 | 1038 | thread_file='vxworks' |
1039 | ;; | |
1040 | i[34567]86-*-aout*) | |
1041 | tm_file=i386/i386-aout.h | |
bb607926 | 1042 | ;; |
1043 | i[34567]86-*-beoself* | i[34567]86-*-beos*) | |
597183a7 | 1044 | xm_defines=POSIX |
bb607926 | 1045 | tmake_file='i386/t-beos i386/t-crtpic' |
1046 | tm_file=i386/beos-elf.h | |
1047 | xmake_file=i386/x-beos | |
1048 | extra_parts='crtbegin.o crtend.o' | |
1049 | ;; | |
1050 | i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) | |
4490d2f1 | 1051 | tm_file="i386/386bsd.h i386/bsd386.h" |
bb607926 | 1052 | # tmake_file=t-libc-ok |
1053 | ;; | |
1054 | i[34567]86-*-bsd*) | |
1055 | tm_file=i386/386bsd.h | |
1056 | # tmake_file=t-libc-ok | |
1057 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
1058 | # use_collect2=yes | |
1059 | ;; | |
1060 | i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*) | |
23573244 | 1061 | tm_file=i386/freebsd-aout.h |
bb607926 | 1062 | tmake_file=t-freebsd |
1063 | ;; | |
1064 | i[34567]86-*-freebsd*) | |
1307f5d6 | 1065 | tm_file="${tm_file} i386/att.h svr4.h ${fbsd_tm_file} i386/freebsd.h" |
bb607926 | 1066 | ;; |
f406b863 | 1067 | i[34567]86-*-netbsdelf*) |
1068 | xm_defines=POSIX | |
1069 | tm_file="${tm_file} i386/att.h svr4.h i386/netbsd-elf.h" | |
1070 | tmake_file=t-netbsd | |
1071 | gnu_ld=yes | |
1072 | float_format=i386 | |
1073 | ;; | |
bb607926 | 1074 | i[34567]86-*-netbsd*) |
1075 | tm_file=i386/netbsd.h | |
1076 | tmake_file=t-netbsd | |
1077 | use_collect2=yes | |
1078 | ;; | |
1079 | i[34567]86-*-openbsd*) | |
c7be79ca | 1080 | # needed to unconfuse gdb |
1081 | tmake_file="t-libc-ok t-openbsd i386/t-openbsd" | |
bb607926 | 1082 | # we need collect2 until our bug is fixed... |
1083 | use_collect2=yes | |
1084 | ;; | |
1085 | i[34567]86-*-coff*) | |
1086 | tm_file=i386/i386-coff.h | |
bb607926 | 1087 | ;; |
1088 | i[34567]86-*-isc*) # 80386 running ISC system | |
597183a7 | 1089 | xm_defines=POSIX |
bb607926 | 1090 | if test x$gas = xyes -a x$stabs = xyes |
1091 | then | |
1092 | tm_file=i386/iscdbx.h | |
1093 | tmake_file=i386/t-svr3dbx | |
1094 | extra_parts="svr3.ifile svr3z.ifile" | |
1095 | else | |
1096 | tm_file=i386/isccoff.h | |
1097 | tmake_file=i386/t-crtstuff | |
1098 | extra_parts="crtbegin.o crtend.o" | |
1099 | fi | |
bb607926 | 1100 | install_headers_dir=install-headers-cpio |
1101 | ;; | |
1102 | i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux | |
1103 | # with a.out format using | |
1104 | # pre BFD linkers | |
bb607926 | 1105 | tmake_file="t-linux-aout i386/t-crtstuff" |
1106 | tm_file=i386/linux-oldld.h | |
1107 | gnu_ld=yes | |
1108 | float_format=i386 | |
1109 | ;; | |
1110 | i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux | |
1111 | # with a.out format | |
bb607926 | 1112 | tmake_file="t-linux-aout i386/t-crtstuff" |
1113 | tm_file=i386/linux-aout.h | |
1114 | gnu_ld=yes | |
1115 | float_format=i386 | |
1116 | ;; | |
1117 | i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux | |
1118 | # with ELF format using the | |
1119 | # GNU/Linux C library 5 | |
1120 | xmake_file=x-linux | |
f006a2e6 | 1121 | tm_file="i386/i386.h i386/att.h linux.h i386/linux.h" |
32e8a7fc | 1122 | tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff" |
bb607926 | 1123 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
1124 | gnu_ld=yes | |
1125 | float_format=i386 | |
1126 | if test x$enable_threads = xyes; then | |
1127 | thread_file='single' | |
1128 | fi | |
1129 | ;; | |
1130 | i[34567]86-*-linux*) # Intel 80386's running GNU/Linux | |
1131 | # with ELF format using glibc 2 | |
1132 | # aka GNU/Linux C library 6 | |
1133 | xmake_file=x-linux | |
f006a2e6 | 1134 | tm_file="i386/i386.h i386/att.h linux.h i386/linux.h" |
32e8a7fc | 1135 | tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff" |
bb607926 | 1136 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
1137 | gnu_ld=yes | |
1138 | float_format=i386 | |
1139 | if test x$enable_threads = xyes; then | |
1140 | thread_file='posix' | |
1141 | fi | |
1142 | ;; | |
1143 | i[34567]86-*-gnu*) | |
1144 | float_format=i386 | |
1145 | ;; | |
1146 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
1147 | echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead." | |
1148 | exit 1 | |
1149 | ;; | |
1150 | i[34567]86-pc-msdosdjgpp*) | |
1151 | xm_file=i386/xm-djgpp.h | |
1152 | tm_file=i386/djgpp.h | |
bb607926 | 1153 | xmake_file=i386/x-djgpp |
1154 | gnu_ld=yes | |
1155 | gas=yes | |
1156 | exeext=.exe | |
1157 | float_format=none | |
1158 | case $host in *pc-msdosdjgpp*) | |
1159 | target_alias=djgpp | |
1160 | ;; | |
1161 | esac | |
1162 | ;; | |
1163 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) | |
f006a2e6 | 1164 | tm_file="i386/i386.h i386/att.h linux.h i386/linux.h i386/moss.h" |
bb607926 | 1165 | tmake_file=t-libc-ok |
1166 | gnu_ld=yes | |
1167 | gas=yes | |
1168 | ;; | |
1169 | i[34567]86-*-lynxos*) | |
1170 | if test x$gas = xyes | |
1171 | then | |
1172 | tm_file=i386/lynx.h | |
1173 | else | |
1174 | tm_file=i386/lynx-ng.h | |
1175 | fi | |
bb607926 | 1176 | ;; |
1177 | i[34567]86-*-mach*) | |
1178 | tm_file=i386/mach.h | |
1179 | # tmake_file=t-libc-ok | |
1180 | use_collect2=yes | |
1181 | ;; | |
1182 | i[34567]86-*-osfrose*) # 386 using OSF/rose | |
1183 | if test x$elf = xyes | |
1184 | then | |
1185 | tm_file=i386/osfelf.h | |
1186 | use_collect2= | |
1187 | else | |
1188 | tm_file=i386/osfrose.h | |
1189 | use_collect2=yes | |
1190 | fi | |
bb607926 | 1191 | tmake_file=i386/t-osf |
1192 | extra_objs=halfpic.o | |
1193 | ;; | |
1194 | i[34567]86-go32-rtems*) | |
1195 | cpu_type=i386 | |
bb607926 | 1196 | tm_file=i386/go32-rtems.h |
513f3e74 | 1197 | tmake_file=t-rtems |
742d48c2 | 1198 | if test x$enable_threads = xyes; then |
1199 | thread_file='rtems' | |
1200 | fi | |
bb607926 | 1201 | ;; |
1202 | i[34567]86-*-rtemscoff*) | |
1203 | cpu_type=i386 | |
1204 | tm_file=i386/rtems.h | |
23573244 | 1205 | tmake_file=t-rtems |
742d48c2 | 1206 | if test x$enable_threads = xyes; then |
1207 | thread_file='rtems' | |
1208 | fi | |
bb607926 | 1209 | ;; |
1210 | i[34567]86-*-rtems*|i[34567]86-*-rtemself*) | |
1211 | cpu_type=i386 | |
1212 | tm_file=i386/rtemself.h | |
1213 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" | |
1214 | tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems" | |
742d48c2 | 1215 | if test x$enable_threads = xyes; then |
1216 | thread_file='rtems' | |
1217 | fi | |
bb607926 | 1218 | ;; |
1219 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 | |
597183a7 | 1220 | xm_defines=POSIX |
bb607926 | 1221 | xmake_file=i386/x-sco5 |
1222 | install_headers_dir=install-headers-cpio | |
1223 | tm_file=i386/sco5.h | |
1224 | if test x$gas = xyes | |
1225 | then | |
f92a3fd0 | 1226 | tm_file="usegas.h ${tm_file}" |
bb607926 | 1227 | tmake_file=i386/t-sco5gas |
1228 | else | |
1229 | tmake_file=i386/t-sco5 | |
1230 | fi | |
bb607926 | 1231 | extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o" |
1232 | ;; | |
bb607926 | 1233 | i[34567]86-*-solaris2*) |
597183a7 | 1234 | xm_defines="POSIX SMALL_ARG_MAX" |
bb607926 | 1235 | tm_file=i386/sol2.h |
1236 | if test x$gas = xyes; then | |
1237 | # Only needed if gas does not support -s | |
1238 | tm_file="i386/sol2gas.h ${tm_file}" | |
1239 | fi | |
23573244 | 1240 | tmake_file=i386/t-sol2 |
32e8a7fc | 1241 | if test x$gnu_ld = xyes; then |
1242 | tmake_file="$tmake_file t-slibgcc-elf-ver" | |
1243 | else | |
1244 | tmake_file="$tmake_file t-slibgcc-sld" | |
1245 | fi | |
bb607926 | 1246 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
1247 | xmake_file=x-svr4 | |
1248 | if test x${enable_threads} = x; then | |
1249 | enable_threads=$have_pthread_h | |
1250 | if test x${enable_threads} = x; then | |
1251 | enable_threads=$have_thread_h | |
1252 | fi | |
1253 | fi | |
1254 | if test x${enable_threads} = xyes; then | |
1255 | if test x${have_pthread_h} = xyes; then | |
1256 | thread_file='posix' | |
1257 | else | |
1258 | thread_file='solaris' | |
1259 | fi | |
1260 | fi | |
1261 | ;; | |
16031d31 | 1262 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 |
597183a7 | 1263 | xm_defines=POSIX |
bb607926 | 1264 | tm_file=i386/sysv5.h |
1265 | if test x$stabs = xyes | |
1266 | then | |
1267 | tm_file="${tm_file} dbx.h" | |
1268 | fi | |
23573244 | 1269 | tmake_file=i386/t-crtpic |
bb607926 | 1270 | xmake_file=x-svr4 |
1271 | extra_parts="crtbegin.o crtend.o" | |
1272 | if test x$enable_threads = xyes; then | |
1273 | thread_file='posix' | |
1274 | fi | |
1275 | ;; | |
1276 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 | |
597183a7 | 1277 | xm_defines="POSIX SMALL_ARG_MAX" |
bb607926 | 1278 | tm_file=i386/sysv4.h |
1279 | if test x$stabs = xyes | |
1280 | then | |
1281 | tm_file="${tm_file} dbx.h" | |
1282 | fi | |
23573244 | 1283 | tmake_file=i386/t-crtpic |
bb607926 | 1284 | xmake_file=x-svr4 |
1285 | extra_parts="crtbegin.o crtend.o" | |
1286 | ;; | |
1287 | i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit | |
597183a7 | 1288 | xm_defines=POSIX |
bb607926 | 1289 | tm_file=i386/udk.h |
23573244 | 1290 | tmake_file="i386/t-crtpic i386/t-udk" |
bb607926 | 1291 | xmake_file=x-svr4 |
1292 | extra_parts="crtbegin.o crtend.o" | |
1293 | install_headers_dir=install-headers-cpio | |
1294 | ;; | |
1295 | i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ | |
1296 | cpu_type=i386 | |
e1688c3e | 1297 | xm_file=i386/xm-osf1elf.h |
597183a7 | 1298 | xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX' |
bb607926 | 1299 | if test x$stabs = xyes |
1300 | then | |
1301 | tm_file=i386/osf1elfgdb.h | |
1302 | else | |
1303 | tm_file=i386/osf1elf.h | |
1304 | fi | |
1305 | tmake_file=i386/t-osf1elf | |
bb607926 | 1306 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
1307 | ;; | |
1308 | i[34567]86-*-sysv*) # Intel 80386's running system V | |
597183a7 | 1309 | xm_defines=POSIX |
bb607926 | 1310 | if test x$gas = xyes |
1311 | then | |
1312 | if test x$stabs = xyes | |
1313 | then | |
1314 | tm_file=i386/svr3dbx.h | |
1315 | tmake_file=i386/t-svr3dbx | |
1316 | extra_parts="svr3.ifile svr3z.rfile" | |
1317 | else | |
1318 | tm_file=i386/svr3gas.h | |
1319 | extra_parts="crtbegin.o crtend.o" | |
1320 | tmake_file=i386/t-crtstuff | |
1321 | fi | |
1322 | else | |
1323 | tm_file=i386/sysv3.h | |
1324 | extra_parts="crtbegin.o crtend.o" | |
1325 | tmake_file=i386/t-crtstuff | |
1326 | fi | |
1327 | tmake_file="$tmake_file i386/t-crtpic" | |
1328 | ;; | |
1329 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
e1688c3e | 1330 | xm_file=i386/xm-vsta.h |
bb607926 | 1331 | tm_file=i386/vsta.h |
bb607926 | 1332 | ;; |
1333 | i[34567]86-*-win32) | |
345252d1 | 1334 | xm_defines=POSIX |
e1688c3e | 1335 | xm_file=i386/xm-cygwin.h |
9650d101 | 1336 | float_format=i386 |
bb607926 | 1337 | tmake_file=i386/t-cygwin |
1338 | tm_file=i386/win32.h | |
1339 | xmake_file=i386/x-cygwin | |
1340 | extra_objs=winnt.o | |
1341 | if test x$enable_threads = xyes; then | |
1342 | thread_file='win32' | |
1343 | fi | |
1344 | exeext=.exe | |
1345 | ;; | |
1346 | i[34567]86-*-pe | i[34567]86-*-cygwin*) | |
345252d1 | 1347 | xm_defines=POSIX |
e1688c3e | 1348 | xm_file=i386/xm-cygwin.h |
9650d101 | 1349 | float_format=i386 |
bb607926 | 1350 | tmake_file=i386/t-cygwin |
1351 | tm_file=i386/cygwin.h | |
1352 | xmake_file=i386/x-cygwin | |
1353 | extra_objs=winnt.o | |
1354 | if test x$enable_threads = xyes; then | |
1355 | thread_file='win32' | |
1356 | fi | |
1357 | exeext=.exe | |
1358 | ;; | |
1359 | i[34567]86-*-mingw32*) | |
1360 | tm_file=i386/mingw32.h | |
9650d101 | 1361 | float_format=i386 |
597183a7 | 1362 | xm_defines=POSIX |
e1688c3e | 1363 | xm_file=i386/xm-mingw32.h |
bb607926 | 1364 | tmake_file="i386/t-cygwin i386/t-mingw32" |
1365 | extra_objs=winnt.o | |
1366 | xmake_file=i386/x-cygwin | |
1367 | if test x$enable_threads = xyes; then | |
1368 | thread_file='win32' | |
1369 | fi | |
1370 | exeext=.exe | |
1371 | case $machine in | |
1372 | *mingw32msv*) | |
1373 | ;; | |
1374 | *minwg32crt* | *mingw32*) | |
1375 | tm_file="${tm_file} i386/crtdll.h" | |
1376 | ;; | |
1377 | esac | |
1378 | ;; | |
1379 | i[34567]86-*-uwin*) | |
1380 | tm_file=i386/uwin.h | |
bb607926 | 1381 | tmake_file="i386/t-cygwin i386/t-uwin" |
1382 | extra_objs=winnt.o | |
1383 | xmake_file=i386/x-cygwin | |
1384 | if test x$enable_threads = xyes; then | |
1385 | thread_file='win32' | |
1386 | fi | |
1387 | exeext=.exe | |
1388 | ;; | |
1389 | i[34567]86-*-interix*) | |
1390 | tm_file="i386/i386-interix.h interix.h" | |
1391 | xm_file="i386/xm-i386-interix.h xm-interix.h" | |
597183a7 | 1392 | xm_defines=POSIX |
bb607926 | 1393 | tmake_file="i386/t-interix" |
1394 | extra_objs=interix.o | |
1395 | xmake_file=x-interix | |
1396 | if test x$enable_threads = xyes ; then | |
1397 | thread_file='posix' | |
1398 | fi | |
1399 | if test x$stabs = xyes ; then | |
1400 | tm_file="${tm_file} dbxcoff.h" | |
1401 | fi | |
1402 | ;; | |
bb607926 | 1403 | i[34567]86-dg-dgux*) |
597183a7 | 1404 | xm_defines=POSIX |
bb607926 | 1405 | out_file=i386/dgux.c |
1406 | tm_file=i386/dgux.h | |
1407 | tmake_file=i386/t-dgux | |
1408 | xmake_file=i386/x-dgux | |
1409 | install_headers_dir=install-headers-cpio | |
1410 | ;; | |
1411 | i860-alliant-*) # Alliant FX/2800 | |
1412 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
bb607926 | 1413 | tmake_file=i860/t-fx2800 |
1414 | extra_parts="crtbegin.o crtend.o" | |
1415 | ;; | |
1416 | i860-*-bsd*) | |
1417 | tm_file="${tm_file} i860/bsd.h" | |
1418 | if test x$gas = xyes | |
1419 | then | |
1420 | tm_file="${tm_file} i860/bsd-gas.h" | |
1421 | fi | |
1422 | use_collect2=yes | |
1423 | ;; | |
1424 | i860-*-mach*) | |
1425 | tm_file="${tm_file} i860/mach.h" | |
1426 | tmake_file=t-libc-ok | |
1427 | ;; | |
1428 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
1429 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
597183a7 | 1430 | xm_defines=POSIX |
bb607926 | 1431 | ;; |
1432 | i860-*-sysv3*) | |
1433 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
597183a7 | 1434 | xm_defines=POSIX |
bb607926 | 1435 | extra_parts="crtbegin.o crtend.o" |
1436 | ;; | |
1437 | i860-*-sysv4*) | |
1438 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
597183a7 | 1439 | xm_defines=POSIX |
bb607926 | 1440 | tmake_file=t-svr4 |
1441 | extra_parts="crtbegin.o crtend.o" | |
1442 | ;; | |
1443 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
1444 | tm_file="${tm_file} i960/vx960.h" | |
1445 | tmake_file=i960/t-vxworks960 | |
1446 | use_collect2=yes | |
1447 | thread_file='vxworks' | |
4f7a0ef9 | 1448 | c_target_objs="i960-c.o" |
1449 | cxx_target_objs="i960-c.o" | |
bb607926 | 1450 | ;; |
1451 | i960-wrs-vxworks5* | i960-wrs-vxworks) | |
1452 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" | |
1453 | tmake_file=i960/t-vxworks960 | |
1454 | use_collect2=yes | |
1455 | thread_file='vxworks' | |
4f7a0ef9 | 1456 | c_target_objs="i960-c.o" |
1457 | cxx_target_objs="i960-c.o" | |
bb607926 | 1458 | ;; |
1459 | i960-wrs-vxworks*) | |
1460 | tm_file="${tm_file} i960/vx960.h" | |
1461 | tmake_file=i960/t-vxworks960 | |
1462 | use_collect2=yes | |
1463 | thread_file='vxworks' | |
4f7a0ef9 | 1464 | c_target_objs="i960-c.o" |
1465 | cxx_target_objs="i960-c.o" | |
bb607926 | 1466 | ;; |
1467 | i960-*-coff*) | |
1468 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
1469 | tmake_file=i960/t-960bare | |
4f7a0ef9 | 1470 | c_target_objs="i960-c.o" |
1471 | cxx_target_objs="i960-c.o" | |
bb607926 | 1472 | ;; |
1473 | i960-*-rtems) | |
1474 | tmake_file="i960/t-960bare t-rtems" | |
1475 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
742d48c2 | 1476 | if test x$enable_threads = xyes; then |
1477 | thread_file='rtems' | |
1478 | fi | |
4f7a0ef9 | 1479 | c_target_objs="i960-c.o" |
1480 | cxx_target_objs="i960-c.o" | |
bb607926 | 1481 | ;; |
1482 | i960-*-*) # Default i960 environment. | |
1483 | use_collect2=yes | |
4f7a0ef9 | 1484 | c_target_objs="i960-c.o" |
1485 | cxx_target_objs="i960-c.o" | |
bb607926 | 1486 | ;; |
037e8675 | 1487 | ia64*-*-aix*) |
1488 | tm_file="${tm_file} svr4.h ia64/sysv4.h ia64/aix.h" | |
1489 | tmake_file="ia64/t-ia64 ia64/t-aix" | |
1490 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" | |
1491 | ;; | |
bb607926 | 1492 | ia64*-*-elf*) |
1493 | tm_file=ia64/elf.h | |
1494 | tmake_file="ia64/t-ia64" | |
1495 | target_cpu_default="0" | |
1496 | if test x$gas = xyes | |
1497 | then | |
1498 | target_cpu_default="${target_cpu_default}|MASK_GNU_AS" | |
1499 | fi | |
1500 | if test x$gnu_ld = xyes | |
1501 | then | |
1502 | target_cpu_default="${target_cpu_default}|MASK_GNU_LD" | |
1503 | fi | |
1504 | float_format=i386 | |
1505 | ;; | |
1506 | ia64*-*-linux*) | |
1507 | tm_file=ia64/linux.h | |
32e8a7fc | 1508 | tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc" |
bb607926 | 1509 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" |
1510 | if test x$enable_threads = xyes; then | |
1511 | thread_file='posix' | |
1512 | fi | |
1513 | float_format=i386 | |
1514 | ;; | |
d838d791 | 1515 | ia64*-*-hpux*) |
4c9b2035 | 1516 | tm_file="ia64/ia64.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h" |
1517 | tmake_file="ia64/t-ia64 ia64/t-hpux" | |
d838d791 | 1518 | target_cpu_default="MASK_GNU_AS" |
1519 | if test x$enable_threads = xyes; then | |
1520 | thread_file='posix' | |
1521 | fi | |
1522 | float_format=i386 | |
1523 | ;; | |
bb607926 | 1524 | m32r-*-elf*) |
1525 | extra_parts="crtinit.o crtfini.o" | |
1526 | ;; | |
1527 | # m68hc11 and m68hc12 share the same machine description. | |
1528 | m68hc11-*-*|m6811-*-*) | |
271f08ab | 1529 | tm_file="elfos.h m68hc11/m68hc11.h" |
bb607926 | 1530 | tm_p_file="m68hc11/m68hc11-protos.h" |
1531 | md_file="m68hc11/m68hc11.md" | |
1532 | out_file="m68hc11/m68hc11.c" | |
1533 | tmake_file="m68hc11/t-m68hc11-gas" | |
1534 | ;; | |
1535 | m68hc12-*-*|m6812-*-*) | |
271f08ab | 1536 | tm_file="m68hc11/m68hc12.h elfos.h m68hc11/m68hc11.h" |
bb607926 | 1537 | tm_p_file="m68hc11/m68hc11-protos.h" |
bb607926 | 1538 | md_file="m68hc11/m68hc11.md" |
1539 | out_file="m68hc11/m68hc11.c" | |
1540 | tmake_file="m68hc11/t-m68hc11-gas" | |
1541 | ;; | |
1542 | m68000-convergent-sysv*) | |
1543 | tm_file=m68k/ctix.h | |
597183a7 | 1544 | xm_defines=POSIX |
bb607926 | 1545 | use_collect2=yes |
1546 | extra_headers=math-68881.h | |
1547 | ;; | |
1548 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
1549 | tm_file=m68k/hp2bsd.h | |
bb607926 | 1550 | use_collect2=yes |
1551 | extra_headers=math-68881.h | |
1552 | ;; | |
1553 | m68000-hp-hpux*) # HP 9000 series 300 | |
597183a7 | 1554 | xm_defines=POSIX |
bb607926 | 1555 | if test x$gas = xyes |
1556 | then | |
1557 | xmake_file=m68k/x-hp320g | |
1558 | tm_file=m68k/hp310g.h | |
1559 | else | |
1560 | xmake_file=m68k/x-hp320 | |
1561 | tm_file=m68k/hp310.h | |
1562 | fi | |
1563 | install_headers_dir=install-headers-cpio | |
1564 | use_collect2=yes | |
1565 | extra_headers=math-68881.h | |
1566 | ;; | |
1567 | m68000-sun-sunos3*) | |
1568 | tm_file=m68k/sun2.h | |
1569 | use_collect2=yes | |
1570 | extra_headers=math-68881.h | |
1571 | ;; | |
1572 | m68000-sun-sunos4*) | |
1573 | tm_file=m68k/sun2o4.h | |
1574 | use_collect2=yes | |
1575 | extra_headers=math-68881.h | |
1576 | ;; | |
1577 | m68000-att-sysv*) | |
597183a7 | 1578 | xm_defines=POSIX |
bb607926 | 1579 | if test x$gas = xyes |
1580 | then | |
1581 | tm_file=m68k/3b1g.h | |
1582 | else | |
1583 | tm_file=m68k/3b1.h | |
1584 | fi | |
1585 | use_collect2=yes | |
1586 | extra_headers=math-68881.h | |
1587 | ;; | |
1588 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
597183a7 | 1589 | xm_defines=POSIX |
bb607926 | 1590 | tmake_file=m68k/t-aux |
1591 | install_headers_dir=install-headers-cpio | |
1592 | extra_headers=math-68881.h | |
1593 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
1594 | tm_file= | |
1595 | if test "$gnu_ld" = yes | |
1596 | then | |
1597 | tm_file="${tm_file} m68k/auxgld.h" | |
1598 | else | |
1599 | tm_file="${tm_file} m68k/auxld.h" | |
1600 | fi | |
1601 | if test "$gas" = yes | |
1602 | then | |
1603 | tm_file="${tm_file} m68k/auxgas.h" | |
1604 | else | |
1605 | tm_file="${tm_file} m68k/auxas.h" | |
1606 | fi | |
1607 | tm_file="${tm_file} m68k/a-ux.h" | |
1608 | float_format=m68k | |
1609 | ;; | |
1610 | m68k-apollo-*) | |
1611 | tm_file=m68k/apollo68.h | |
bb607926 | 1612 | use_collect2=yes |
1613 | extra_headers=math-68881.h | |
1614 | float_format=m68k | |
1615 | ;; | |
1616 | m68k-altos-sysv*) # Altos 3068 | |
1617 | if test x$gas = xyes | |
1618 | then | |
1619 | tm_file=m68k/altos3068.h | |
597183a7 | 1620 | xm_defines=POSIX |
bb607926 | 1621 | else |
1622 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
1623 | exit 1 | |
1624 | fi | |
1625 | extra_headers=math-68881.h | |
1626 | ;; | |
1627 | m68k-bull-sysv*) # Bull DPX/2 | |
1628 | if test x$gas = xyes | |
1629 | then | |
1630 | if test x$stabs = xyes | |
1631 | then | |
1632 | tm_file=m68k/dpx2cdbx.h | |
1633 | else | |
1634 | tm_file=m68k/dpx2g.h | |
1635 | fi | |
1636 | else | |
1637 | tm_file=m68k/dpx2.h | |
1638 | fi | |
597183a7 | 1639 | xm_defines=POSIX |
bb607926 | 1640 | use_collect2=yes |
1641 | extra_headers=math-68881.h | |
1642 | ;; | |
1643 | m68k-atari-sysv4*) # Atari variant of V.4. | |
1644 | tm_file=m68k/atari.h | |
597183a7 | 1645 | xm_defines=POSIX |
bb607926 | 1646 | tmake_file=t-svr4 |
1647 | extra_parts="crtbegin.o crtend.o" | |
1648 | extra_headers=math-68881.h | |
1649 | float_format=m68k | |
1650 | ;; | |
1651 | m68k-motorola-sysv*) | |
1652 | tm_file=m68k/mot3300.h | |
597183a7 | 1653 | xm_defines=POSIX |
bb607926 | 1654 | if test x$gas = xyes |
1655 | then | |
bb607926 | 1656 | if test x$gnu_ld = xyes |
1657 | then | |
1658 | tmake_file=m68k/t-mot3300-gald | |
1659 | else | |
1660 | tmake_file=m68k/t-mot3300-gas | |
1661 | use_collect2=yes | |
1662 | fi | |
1663 | else | |
bb607926 | 1664 | if test x$gnu_ld = xyes |
1665 | then | |
1666 | tmake_file=m68k/t-mot3300-gld | |
1667 | else | |
1668 | tmake_file=m68k/t-mot3300 | |
1669 | use_collect2=yes | |
1670 | fi | |
1671 | fi | |
1672 | gdb_needs_out_file_path=yes | |
1673 | extra_parts="crt0.o mcrt0.o" | |
1674 | extra_headers=math-68881.h | |
1675 | float_format=m68k | |
1676 | ;; | |
1677 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
1678 | tm_file=m68k/tower-as.h | |
597183a7 | 1679 | xm_defines=POSIX |
bb607926 | 1680 | extra_parts="crtbegin.o crtend.o" |
1681 | extra_headers=math-68881.h | |
1682 | ;; | |
1683 | m68k-plexus-sysv*) | |
1684 | tm_file=m68k/plexus.h | |
597183a7 | 1685 | xm_defines=POSIX |
bb607926 | 1686 | use_collect2=yes |
1687 | extra_headers=math-68881.h | |
1688 | ;; | |
1689 | m68k-tti-*) | |
1690 | tm_file=m68k/pbb.h | |
597183a7 | 1691 | xm_defines=POSIX |
bb607926 | 1692 | extra_headers=math-68881.h |
1693 | ;; | |
1694 | m68k-crds-unos*) | |
597183a7 | 1695 | xm_defines=POSIX |
bb607926 | 1696 | tm_file=m68k/crds.h |
1697 | use_collect2=yes | |
1698 | extra_headers=math-68881.h | |
1699 | ;; | |
1700 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
1701 | tm_file=m68k/amix.h | |
597183a7 | 1702 | xm_defines=POSIX |
bb607926 | 1703 | tmake_file=t-svr4 |
1704 | extra_parts="crtbegin.o crtend.o" | |
1705 | extra_headers=math-68881.h | |
1706 | float_format=m68k | |
1707 | ;; | |
1708 | m68k-ccur-rtu) | |
1709 | tm_file=m68k/ccur-GAS.h | |
bb607926 | 1710 | extra_headers=math-68881.h |
1711 | use_collect2=yes | |
1712 | float_format=m68k | |
1713 | ;; | |
1714 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
1715 | tm_file=m68k/hp3bsd44.h | |
bb607926 | 1716 | use_collect2=yes |
1717 | extra_headers=math-68881.h | |
1718 | float_format=m68k | |
1719 | ;; | |
1720 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
1721 | tm_file=m68k/hp3bsd.h | |
1722 | use_collect2=yes | |
1723 | extra_headers=math-68881.h | |
1724 | float_format=m68k | |
1725 | ;; | |
1726 | m68k-isi-bsd*) | |
1727 | if test x$with_fp = xno | |
1728 | then | |
1729 | tm_file=m68k/isi-nfp.h | |
1730 | else | |
1731 | tm_file=m68k/isi.h | |
1732 | float_format=m68k | |
1733 | fi | |
1734 | use_collect2=yes | |
1735 | extra_headers=math-68881.h | |
1736 | ;; | |
1737 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
597183a7 | 1738 | xm_defines=POSIX |
bb607926 | 1739 | if test x$gas = xyes |
1740 | then | |
1741 | xmake_file=m68k/x-hp320g | |
1742 | tm_file=m68k/hp320g.h | |
1743 | else | |
1744 | xmake_file=m68k/x-hp320 | |
1745 | tm_file=m68k/hpux7.h | |
1746 | fi | |
1747 | install_headers_dir=install-headers-cpio | |
1748 | use_collect2=yes | |
1749 | extra_headers=math-68881.h | |
1750 | float_format=m68k | |
1751 | ;; | |
1752 | m68k-hp-hpux*) # HP 9000 series 300 | |
597183a7 | 1753 | xm_defines=POSIX |
bb607926 | 1754 | if test x$gas = xyes |
1755 | then | |
1756 | xmake_file=m68k/x-hp320g | |
1757 | tm_file=m68k/hp320g.h | |
1758 | else | |
1759 | xmake_file=m68k/x-hp320 | |
1760 | tm_file=m68k/hp320.h | |
1761 | fi | |
1762 | install_headers_dir=install-headers-cpio | |
1763 | use_collect2=yes | |
1764 | extra_headers=math-68881.h | |
1765 | float_format=m68k | |
1766 | ;; | |
1767 | m68k-sun-mach*) | |
1768 | tm_file=m68k/sun3mach.h | |
1769 | use_collect2=yes | |
1770 | extra_headers=math-68881.h | |
1771 | float_format=m68k | |
1772 | ;; | |
1773 | m68k-sony-newsos3*) | |
1774 | if test x$gas = xyes | |
1775 | then | |
1776 | tm_file=m68k/news3gas.h | |
1777 | else | |
1778 | tm_file=m68k/news3.h | |
1779 | fi | |
1780 | use_collect2=yes | |
1781 | extra_headers=math-68881.h | |
1782 | float_format=m68k | |
1783 | ;; | |
1784 | m68k-sony-bsd* | m68k-sony-newsos*) | |
1785 | if test x$gas = xyes | |
1786 | then | |
1787 | tm_file=m68k/newsgas.h | |
1788 | else | |
1789 | tm_file=m68k/news.h | |
1790 | fi | |
1791 | use_collect2=yes | |
1792 | extra_headers=math-68881.h | |
1793 | float_format=m68k | |
1794 | ;; | |
1795 | m68k-next-nextstep2*) | |
1796 | tm_file=m68k/next21.h | |
bb607926 | 1797 | tmake_file=m68k/t-next |
1798 | xmake_file=m68k/x-next | |
1799 | extra_objs=nextstep.o | |
1800 | extra_headers=math-68881.h | |
1801 | use_collect2=yes | |
1802 | float_format=m68k | |
1803 | ;; | |
1804 | m68k-next-nextstep[34]*) | |
1805 | tm_file=m68k/next.h | |
bb607926 | 1806 | tmake_file=m68k/t-next |
1807 | xmake_file=m68k/x-next | |
1808 | extra_objs=nextstep.o | |
1809 | extra_parts="crtbegin.o crtend.o" | |
1810 | extra_headers=math-68881.h | |
1811 | float_format=m68k | |
1812 | if test x$enable_threads = xyes; then | |
1813 | thread_file='mach' | |
1814 | fi | |
1815 | ;; | |
1816 | m68k-sun-sunos3*) | |
1817 | if test x$with_fp = xno | |
1818 | then | |
1819 | tm_file=m68k/sun3n3.h | |
1820 | else | |
1821 | tm_file=m68k/sun3o3.h | |
1822 | float_format=m68k | |
1823 | fi | |
1824 | use_collect2=yes | |
1825 | extra_headers=math-68881.h | |
1826 | ;; | |
1827 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
1828 | if test x$with_fp = xno | |
1829 | then | |
1830 | tm_file=m68k/sun3n.h | |
1831 | else | |
1832 | tm_file=m68k/sun3.h | |
1833 | float_format=m68k | |
1834 | fi | |
1835 | use_collect2=yes | |
1836 | extra_headers=math-68881.h | |
1837 | ;; | |
1838 | m68k-wrs-vxworks*) | |
1839 | tm_file=m68k/vxm68k.h | |
1840 | tmake_file=m68k/t-vxworks68 | |
1841 | extra_headers=math-68881.h | |
1842 | thread_file='vxworks' | |
1843 | float_format=m68k | |
1844 | ;; | |
1845 | m68k-*-aout*) | |
1846 | tmake_file=m68k/t-m68kbare | |
1847 | tm_file="m68k/m68k-aout.h libgloss.h" | |
1848 | extra_headers=math-68881.h | |
1849 | float_format=m68k | |
1850 | ;; | |
1851 | m68k-*-coff*) | |
1852 | tmake_file=m68k/t-m68kbare | |
1853 | tm_file="m68k/m68k-coff.h dbx.h" | |
1854 | extra_headers=math-68881.h | |
1855 | float_format=m68k | |
1856 | ;; | |
1857 | m68020-*-elf* | m68k-*-elf*) | |
1858 | tm_file="m68k/m68020-elf.h" | |
597183a7 | 1859 | xm_defines=POSIX |
bb607926 | 1860 | tmake_file=m68k/t-m68kelf |
1861 | header_files=math-68881.h | |
37f722b2 | 1862 | extra_parts="crtbegin.o crtend.o" |
bb607926 | 1863 | ;; |
1864 | m68k-*-lynxos*) | |
1865 | if test x$gas = xyes | |
1866 | then | |
1867 | tm_file=m68k/lynx.h | |
1868 | else | |
1869 | tm_file=m68k/lynx-ng.h | |
1870 | fi | |
bb607926 | 1871 | tmake_file=m68k/t-lynx |
1872 | extra_headers=math-68881.h | |
1873 | float_format=m68k | |
1874 | ;; | |
1875 | m68k*-*-netbsd*) | |
1876 | tm_file=m68k/netbsd.h | |
1877 | tmake_file=t-netbsd | |
1878 | float_format=m68k | |
1879 | use_collect2=yes | |
1880 | ;; | |
1881 | m68k*-*-openbsd*) | |
c7be79ca | 1882 | # needed to unconfuse gdb |
1883 | tmake_file="t-libc-ok t-openbsd m68k/t-openbsd" | |
bb607926 | 1884 | float_format=m68k |
1885 | # we need collect2 until our bug is fixed... | |
1886 | use_collect2=yes | |
1887 | ;; | |
1888 | m68k-*-sysv3*) # Motorola m68k's running system V.3 | |
597183a7 | 1889 | xm_defines=POSIX |
bb607926 | 1890 | extra_parts="crtbegin.o crtend.o" |
1891 | extra_headers=math-68881.h | |
1892 | float_format=m68k | |
1893 | ;; | |
1894 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
1895 | tm_file=m68k/m68kv4.h | |
597183a7 | 1896 | xm_defines=POSIX |
bb607926 | 1897 | tmake_file=t-svr4 |
1898 | extra_parts="crtbegin.o crtend.o" | |
1899 | extra_headers=math-68881.h | |
1900 | float_format=m68k | |
1901 | ;; | |
1902 | m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux | |
1903 | # with a.out format | |
1904 | xmake_file=x-linux | |
1905 | tm_file=m68k/linux-aout.h | |
1906 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
1907 | extra_headers=math-68881.h | |
1908 | float_format=m68k | |
1909 | gnu_ld=yes | |
1910 | ;; | |
1911 | m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux | |
1912 | # with ELF format using the | |
1913 | # GNU/Linux C library 5 | |
1914 | xmake_file=x-linux | |
1915 | tm_file=m68k/linux.h | |
32e8a7fc | 1916 | tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux" |
bb607926 | 1917 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
1918 | extra_headers=math-68881.h | |
1919 | float_format=m68k | |
1920 | gnu_ld=yes | |
1921 | ;; | |
1922 | m68k-*-linux*) # Motorola m68k's running GNU/Linux | |
1923 | # with ELF format using glibc 2 | |
1924 | # aka the GNU/Linux C library 6. | |
1925 | xmake_file=x-linux | |
1926 | tm_file=m68k/linux.h | |
32e8a7fc | 1927 | tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux" |
bb607926 | 1928 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
1929 | extra_headers=math-68881.h | |
1930 | float_format=m68k | |
1931 | gnu_ld=yes | |
1932 | if test x$enable_threads = xyes; then | |
1933 | thread_file='posix' | |
1934 | fi | |
1935 | ;; | |
1936 | m68k-*-psos*) | |
1937 | tmake_file=m68k/t-m68kbare | |
1938 | tm_file=m68k/m68k-psos.h | |
1939 | extra_headers=math-68881.h | |
1940 | float_format=m68k | |
1941 | ;; | |
1942 | m68k-*-rtemscoff*) | |
1943 | tmake_file="m68k/t-m68kbare t-rtems" | |
1944 | tm_file=m68k/rtems.h | |
1945 | extra_headers=math-68881.h | |
1946 | float_format=m68k | |
742d48c2 | 1947 | if test x$enable_threads = xyes; then |
1948 | thread_file='rtems' | |
1949 | fi | |
bb607926 | 1950 | ;; |
1951 | m68k-*-rtemself*|m68k-*-rtems*) | |
1952 | tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff" | |
1953 | tm_file=m68k/rtemself.h | |
1954 | extra_headers=math-68881.h | |
1955 | float_format=m68k | |
37f722b2 | 1956 | extra_parts="crtbegin.o crtend.o" |
742d48c2 | 1957 | if test x$enable_threads = xyes; then |
1958 | thread_file='rtems' | |
1959 | fi | |
bb607926 | 1960 | ;; |
1961 | m88k-dg-dgux*) | |
597183a7 | 1962 | xm_defines=POSIX |
bb607926 | 1963 | case $machine in |
1964 | m88k-dg-dguxbcs*) | |
1965 | tm_file=m88k/dguxbcs.h | |
1966 | tmake_file=m88k/t-dguxbcs | |
1967 | ;; | |
1968 | *) | |
1969 | tm_file=m88k/dgux.h | |
1970 | tmake_file=m88k/t-dgux | |
1971 | ;; | |
1972 | esac | |
1973 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
1974 | xmake_file=m88k/x-dgux | |
1975 | if test x$gas = xyes | |
1976 | then | |
1977 | tmake_file=m88k/t-dgux-gas | |
1978 | fi | |
1979 | ;; | |
1980 | m88k-dolphin-sysv3*) | |
597183a7 | 1981 | xm_defines=POSIX |
bb607926 | 1982 | tm_file=m88k/dolph.h |
1983 | extra_parts="crtbegin.o crtend.o" | |
bb607926 | 1984 | xmake_file=m88k/x-dolph |
1985 | if test x$gas = xyes | |
1986 | then | |
1987 | tmake_file=m88k/t-m88k-gas | |
1988 | fi | |
1989 | ;; | |
1990 | m88k-tektronix-sysv3) | |
597183a7 | 1991 | xm_defines=POSIX |
bb607926 | 1992 | tm_file=m88k/tekXD88.h |
1993 | extra_parts="crtbegin.o crtend.o" | |
bb607926 | 1994 | xmake_file=m88k/x-tekXD88 |
1995 | if test x$gas = xyes | |
1996 | then | |
1997 | tmake_file=m88k/t-m88k-gas | |
1998 | fi | |
1999 | ;; | |
2000 | m88k-*-aout*) | |
597183a7 | 2001 | xm_defines=POSIX |
bb607926 | 2002 | tm_file=m88k/m88k-aout.h |
2003 | ;; | |
2004 | m88k-*-coff*) | |
597183a7 | 2005 | xm_defines=POSIX |
bb607926 | 2006 | tm_file=m88k/m88k-coff.h |
2007 | tmake_file=m88k/t-bug | |
2008 | ;; | |
2009 | m88k-*-luna*) | |
2010 | tm_file=m88k/luna.h | |
2011 | extra_parts="crtbegin.o crtend.o" | |
2012 | if test x$gas = xyes | |
2013 | then | |
2014 | tmake_file=m88k/t-luna-gas | |
2015 | else | |
2016 | tmake_file=m88k/t-luna | |
2017 | fi | |
2018 | ;; | |
2019 | m88k-*-openbsd*) | |
2020 | tmake_file="${tmake_file} m88k/t-luna-gas" | |
2021 | tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}" | |
bb607926 | 2022 | ;; |
2023 | m88k-*-sysv3*) | |
597183a7 | 2024 | xm_defines=POSIX |
bb607926 | 2025 | tm_file=m88k/sysv3.h |
2026 | extra_parts="crtbegin.o crtend.o" | |
bb607926 | 2027 | if test x$gas = xyes |
2028 | then | |
2029 | tmake_file=m88k/t-m88k-gas | |
2030 | fi | |
2031 | ;; | |
2032 | m88k-*-sysv4*) | |
597183a7 | 2033 | xm_defines=POSIX |
bb607926 | 2034 | tm_file=m88k/sysv4.h |
2035 | extra_parts="crtbegin.o crtend.o" | |
bb607926 | 2036 | tmake_file=m88k/t-sysv4 |
2037 | ;; | |
2038 | mcore-*-elf) | |
2039 | tm_file=mcore/mcore-elf.h | |
2040 | tmake_file=mcore/t-mcore | |
2041 | ;; | |
2042 | mcore-*-pe*) | |
2043 | tm_file=mcore/mcore-pe.h | |
2044 | tmake_file=mcore/t-mcore-pe | |
2045 | ;; | |
2046 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 | |
2047 | if test "x$gnu_ld" = xyes | |
2048 | then | |
2049 | tm_file="mips/iris6.h mips/iris6gld.h" | |
2050 | else | |
2051 | tm_file=mips/iris6.h | |
2052 | fi | |
2053 | tmake_file=mips/t-iris6 | |
597183a7 | 2054 | xm_defines=POSIX |
bb607926 | 2055 | xmake_file=mips/x-iris6 |
2056 | # if test x$enable_threads = xyes; then | |
2057 | # thread_file='irix' | |
2058 | # fi | |
2059 | ;; | |
2060 | mips-wrs-vxworks) | |
2061 | tm_file="mips/elf.h mips/vxworks.h" | |
2062 | tmake_file=mips/t-ecoff | |
2063 | gas=yes | |
2064 | gnu_ld=yes | |
2065 | extra_parts="crtbegin.o crtend.o" | |
2066 | thread_file='vxworks' | |
2067 | ;; | |
2068 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 | |
2069 | tm_file="mips/iris6.h mips/cross64.h" | |
597183a7 | 2070 | xm_defines=POSIX |
3239b2ba | 2071 | xm_file=mips/xm-iris5.h |
bb607926 | 2072 | xmake_file=mips/x-iris |
2073 | tmake_file=mips/t-cross64 | |
2074 | # See comment in mips/iris[56].h files. | |
2075 | use_collect2=yes | |
2076 | # if test x$enable_threads = xyes; then | |
2077 | # thread_file='irix' | |
2078 | # fi | |
2079 | ;; | |
2080 | mips-sni-sysv4) | |
2081 | if test x$gas = xyes | |
2082 | then | |
2083 | if test x$stabs = xyes | |
2084 | then | |
2085 | tm_file=mips/iris5gdb.h | |
2086 | else | |
2087 | tm_file="mips/sni-svr4.h mips/sni-gas.h" | |
2088 | fi | |
2089 | else | |
2090 | tm_file=mips/sni-svr4.h | |
2091 | fi | |
597183a7 | 2092 | xm_defines=POSIX |
bb607926 | 2093 | if test x$gnu_ld != xyes |
2094 | then | |
2095 | use_collect2=yes | |
2096 | fi | |
2097 | ;; | |
2098 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
2099 | if test x$gas = xyes | |
2100 | then | |
2101 | tm_file="mips/iris5.h mips/iris5gas.h" | |
2102 | if test x$stabs = xyes | |
2103 | then | |
2104 | tm_file="${tm_file} dbx.h" | |
2105 | fi | |
2106 | else | |
2107 | tm_file=mips/iris5.h | |
2108 | fi | |
597183a7 | 2109 | xm_defines=POSIX |
3239b2ba | 2110 | xm_file=mips/xm-iris5.h |
bb607926 | 2111 | xmake_file=mips/x-iris |
2112 | # mips-tfile doesn't work yet | |
bb607926 | 2113 | # See comment in mips/iris5.h file. |
2114 | use_collect2=yes | |
2115 | # if test x$enable_threads = xyes; then | |
2116 | # thread_file='irix' | |
2117 | # fi | |
2118 | ;; | |
2119 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
2120 | tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" | |
2121 | if test x$stabs = xyes; then | |
2122 | tm_file="${tm_file} dbx.h" | |
2123 | fi | |
597183a7 | 2124 | xm_defines=POSIX |
bb607926 | 2125 | xmake_file=mips/x-iris |
2126 | if test x$gas = xyes | |
23573244 | 2127 | then : |
bb607926 | 2128 | else |
2129 | extra_passes="mips-tfile mips-tdump" | |
2130 | fi | |
2131 | if test x$gnu_ld != xyes | |
2132 | then | |
2133 | use_collect2=yes | |
2134 | fi | |
2135 | # if test x$enable_threads = xyes; then | |
2136 | # thread_file='irix' | |
2137 | # fi | |
2138 | ;; | |
2139 | mips-sgi-irix4*) # Mostly like a MIPS. | |
2140 | tm_file="mips/iris3.h ${tm_file} mips/iris4.h" | |
2141 | if test x$stabs = xyes; then | |
2142 | tm_file="${tm_file} dbx.h" | |
2143 | fi | |
597183a7 | 2144 | xm_defines=POSIX |
bb607926 | 2145 | xmake_file=mips/x-iris |
2146 | if test x$gas = xyes | |
23573244 | 2147 | then : |
bb607926 | 2148 | else |
2149 | extra_passes="mips-tfile mips-tdump" | |
2150 | fi | |
2151 | if test x$gnu_ld != xyes | |
2152 | then | |
2153 | use_collect2=yes | |
2154 | fi | |
2155 | # if test x$enable_threads = xyes; then | |
2156 | # thread_file='irix' | |
2157 | # fi | |
2158 | ;; | |
2159 | mips-sgi-*) # Mostly like a MIPS. | |
2160 | tm_file="mips/iris3.h ${tm_file}" | |
2161 | if test x$stabs = xyes; then | |
2162 | tm_file="${tm_file} dbx.h" | |
2163 | fi | |
597183a7 | 2164 | xm_defines=POSIX |
bb607926 | 2165 | if test x$gas = xyes |
23573244 | 2166 | then : |
bb607926 | 2167 | else |
2168 | extra_passes="mips-tfile mips-tdump" | |
2169 | fi | |
2170 | if test x$gnu_ld != xyes | |
2171 | then | |
2172 | use_collect2=yes | |
2173 | fi | |
2174 | ;; | |
2175 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
2176 | tm_file="mips/osfrose.h ${tm_file}" | |
bb607926 | 2177 | extra_objs=halfpic.o |
2178 | use_collect2=yes | |
2179 | ;; | |
2180 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
2181 | tm_file=mips/dec-osf1.h | |
2182 | if test x$stabs = xyes; then | |
2183 | tm_file="${tm_file} dbx.h" | |
2184 | fi | |
bb607926 | 2185 | if test x$gas = xyes |
23573244 | 2186 | then : |
bb607926 | 2187 | else |
2188 | tmake_file=mips/t-ultrix | |
2189 | extra_passes="mips-tfile mips-tdump" | |
2190 | fi | |
2191 | if test x$gnu_ld != xyes | |
2192 | then | |
2193 | use_collect2=yes | |
2194 | fi | |
2195 | ;; | |
2196 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
2197 | tm_file=mips/dec-bsd.h | |
2198 | if test x$gas = xyes | |
23573244 | 2199 | then : |
bb607926 | 2200 | else |
2201 | tmake_file=mips/t-ultrix | |
2202 | extra_passes="mips-tfile mips-tdump" | |
2203 | fi | |
2204 | if test x$gnu_ld != xyes | |
2205 | then | |
2206 | use_collect2=yes | |
2207 | fi | |
2208 | ;; | |
2209 | mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD | |
2210 | tm_file=mips/netbsd.h | |
2211 | # On NetBSD, the headers are already okay, except for math.h. | |
2212 | tmake_file=t-netbsd | |
2213 | ;; | |
2214 | mips*-*-linux*) # Linux MIPS, either endian. | |
2215 | xmake_file=x-linux | |
71d957f9 | 2216 | tm_file="linux.h mips/linux.h" |
bb607926 | 2217 | case $machine in |
71d957f9 | 2218 | mips*el-*) tm_file="mips/little.h $tm_file" ;; |
bb607926 | 2219 | esac |
32e8a7fc | 2220 | tmake_file="t-slibgcc-elf-ver t-linux" |
bb607926 | 2221 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
2222 | gnu_ld=yes | |
2223 | gas=yes | |
2224 | if test x$enable_threads = xyes; then | |
2225 | thread_file='posix' | |
2226 | fi | |
2227 | ;; | |
2228 | mips*el-*-openbsd*) # mips little endian | |
2229 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
2230 | ;; | |
2231 | mips*-*-openbsd*) # mips big endian | |
2232 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
2233 | tm_file="mips/openbsd-be.h ${tm_file}" | |
2234 | ;; | |
2235 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. | |
2236 | tm_file="mips/news4.h ${tm_file}" | |
2237 | if test x$stabs = xyes; then | |
2238 | tm_file="${tm_file} dbx.h" | |
2239 | fi | |
2240 | if test x$gas = xyes | |
23573244 | 2241 | then : |
bb607926 | 2242 | else |
2243 | extra_passes="mips-tfile mips-tdump" | |
2244 | fi | |
2245 | if test x$gnu_ld != xyes | |
2246 | then | |
2247 | use_collect2=yes | |
2248 | fi | |
bb607926 | 2249 | ;; |
2250 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
2251 | # That is based on svr4. | |
2252 | # t-svr4 is not right because this system doesn't use ELF. | |
2253 | tm_file="mips/news5.h ${tm_file}" | |
2254 | if test x$stabs = xyes; then | |
2255 | tm_file="${tm_file} dbx.h" | |
2256 | fi | |
597183a7 | 2257 | xm_defines=POSIX |
bb607926 | 2258 | if test x$gas = xyes |
23573244 | 2259 | then : |
bb607926 | 2260 | else |
2261 | extra_passes="mips-tfile mips-tdump" | |
2262 | fi | |
2263 | if test x$gnu_ld != xyes | |
2264 | then | |
2265 | use_collect2=yes | |
2266 | fi | |
2267 | ;; | |
2268 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
2269 | tm_file="mips/svr4-5.h mips/svr4-t.h" | |
2270 | if test x$stabs = xyes; then | |
2271 | tm_file="${tm_file} dbx.h" | |
2272 | fi | |
597183a7 | 2273 | xm_defines=POSIX |
bb607926 | 2274 | if test x$gas = xyes |
2275 | then | |
bb607926 | 2276 | extra_parts="crtbegin.o crtend.o" |
2277 | else | |
bb607926 | 2278 | extra_passes="mips-tfile mips-tdump" |
2279 | fi | |
2280 | if test x$gnu_ld != xyes | |
2281 | then | |
2282 | use_collect2=yes | |
2283 | fi | |
2284 | ;; | |
2285 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
2286 | tm_file="mips/ultrix.h ${tm_file}" | |
2287 | if test x$stabs = xyes; then | |
2288 | tm_file="${tm_file} dbx.h" | |
2289 | fi | |
bb607926 | 2290 | if test x$gas = xyes |
23573244 | 2291 | then : |
bb607926 | 2292 | else |
2293 | tmake_file=mips/t-ultrix | |
2294 | extra_passes="mips-tfile mips-tdump" | |
2295 | fi | |
2296 | if test x$gnu_ld != xyes | |
2297 | then | |
2298 | use_collect2=yes | |
2299 | fi | |
2300 | ;; | |
2301 | mips-*-riscos[56789]bsd*) | |
2302 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
2303 | if test x$stabs = xyes; then | |
2304 | tm_file="${tm_file} dbx.h" | |
2305 | fi | |
2306 | if test x$gas = xyes | |
2307 | then | |
2308 | tmake_file=mips/t-bsd-gas | |
2309 | else | |
2310 | tmake_file=mips/t-bsd | |
2311 | extra_passes="mips-tfile mips-tdump" | |
2312 | fi | |
2313 | if test x$gnu_ld != xyes | |
2314 | then | |
2315 | use_collect2=yes | |
2316 | fi | |
2317 | ;; | |
2318 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
2319 | tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 | |
2320 | if test x$stabs = xyes; then | |
2321 | tm_file="${tm_file} dbx.h" | |
2322 | fi | |
2323 | if test x$gas = xyes | |
2324 | then | |
2325 | tmake_file=mips/t-bsd-gas | |
2326 | else | |
2327 | tmake_file=mips/t-bsd | |
2328 | extra_passes="mips-tfile mips-tdump" | |
2329 | fi | |
2330 | if test x$gnu_ld != xyes | |
2331 | then | |
2332 | use_collect2=yes | |
2333 | fi | |
2334 | ;; | |
2335 | mips-*-riscos[56789]sysv4*) | |
2336 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
2337 | if test x$stabs = xyes; then | |
2338 | tm_file="${tm_file} dbx.h" | |
2339 | fi | |
bb607926 | 2340 | if test x$gas = xyes |
2341 | then | |
2342 | tmake_file=mips/t-svr4-gas | |
2343 | else | |
2344 | tmake_file=mips/t-svr4 | |
2345 | extra_passes="mips-tfile mips-tdump" | |
2346 | fi | |
2347 | if test x$gnu_ld != xyes | |
2348 | then | |
2349 | use_collect2=yes | |
2350 | fi | |
2351 | ;; | |
2352 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
2353 | tm_file="mips/svr4-4.h ${tm_file}" | |
2354 | if test x$stabs = xyes; then | |
2355 | tm_file="${tm_file} dbx.h" | |
2356 | fi | |
597183a7 | 2357 | xm_defines=POSIX |
bb607926 | 2358 | if test x$gas = xyes |
2359 | then | |
2360 | tmake_file=mips/t-svr4-gas | |
2361 | else | |
2362 | tmake_file=mips/t-svr4 | |
2363 | extra_passes="mips-tfile mips-tdump" | |
2364 | fi | |
2365 | if test x$gnu_ld != xyes | |
2366 | then | |
2367 | use_collect2=yes | |
2368 | fi | |
2369 | ;; | |
2370 | mips-*-riscos[56789]sysv*) | |
2371 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
2372 | if test x$stabs = xyes; then | |
2373 | tm_file="${tm_file} dbx.h" | |
2374 | fi | |
597183a7 | 2375 | xm_defines=POSIX |
bb607926 | 2376 | if test x$gas = xyes |
2377 | then | |
2378 | tmake_file=mips/t-svr3-gas | |
2379 | else | |
2380 | tmake_file=mips/t-svr3 | |
2381 | extra_passes="mips-tfile mips-tdump" | |
2382 | fi | |
2383 | if test x$gnu_ld != xyes | |
2384 | then | |
2385 | use_collect2=yes | |
2386 | fi | |
2387 | ;; | |
2388 | mips-*-sysv* | mips-*-riscos*sysv*) | |
2389 | tm_file="mips/svr3-4.h ${tm_file}" | |
2390 | if test x$stabs = xyes; then | |
2391 | tm_file="${tm_file} dbx.h" | |
2392 | fi | |
597183a7 | 2393 | xm_defines=POSIX |
bb607926 | 2394 | if test x$gas = xyes |
2395 | then | |
2396 | tmake_file=mips/t-svr3-gas | |
2397 | else | |
2398 | tmake_file=mips/t-svr3 | |
2399 | extra_passes="mips-tfile mips-tdump" | |
2400 | fi | |
2401 | if test x$gnu_ld != xyes | |
2402 | then | |
2403 | use_collect2=yes | |
2404 | fi | |
2405 | ;; | |
2406 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
2407 | tm_file=mips/mips-5.h | |
2408 | if test x$stabs = xyes; then | |
2409 | tm_file="${tm_file} dbx.h" | |
2410 | fi | |
2411 | if test x$gas = xyes | |
23573244 | 2412 | then : |
bb607926 | 2413 | else |
2414 | extra_passes="mips-tfile mips-tdump" | |
2415 | fi | |
2416 | if test x$gnu_ld != xyes | |
2417 | then | |
2418 | use_collect2=yes | |
2419 | fi | |
2420 | ;; | |
2421 | mips-*-gnu*) | |
2422 | ;; | |
2423 | mipsel-*-ecoff*) | |
2424 | tm_file=mips/ecoffl.h | |
2425 | if test x$stabs = xyes; then | |
2426 | tm_file="${tm_file} dbx.h" | |
2427 | fi | |
2428 | tmake_file=mips/t-ecoff | |
2429 | ;; | |
2430 | mips-*-ecoff*) | |
2431 | tm_file="gofast.h mips/ecoff.h" | |
2432 | if test x$stabs = xyes; then | |
2433 | tm_file="${tm_file} dbx.h" | |
2434 | fi | |
2435 | tmake_file=mips/t-ecoff | |
2436 | ;; | |
2437 | mipsel-*-elf*) | |
2438 | tm_file="mips/elfl.h" | |
2439 | tmake_file=mips/t-elf | |
2440 | ;; | |
2441 | mips-*-elf*) | |
2442 | tm_file="mips/elf.h" | |
2443 | tmake_file=mips/t-elf | |
2444 | ;; | |
2445 | mips64el-*-elf*) | |
2446 | tm_file="mips/elfl64.h" | |
2447 | tmake_file=mips/t-elf | |
2448 | ;; | |
2449 | mips64orionel-*-elf*) | |
2450 | tm_file="mips/elforion.h mips/elfl64.h" | |
2451 | tmake_file=mips/t-elf | |
2452 | ;; | |
2453 | mips64-*-elf*) | |
2454 | tm_file="mips/elf64.h" | |
2455 | tmake_file=mips/t-elf | |
2456 | ;; | |
2457 | mips64orion-*-elf*) | |
2458 | tm_file="mips/elforion.h mips/elf64.h" | |
2459 | tmake_file=mips/t-elf | |
2460 | ;; | |
2461 | mips64orion-*-rtems*) | |
2462 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" | |
2463 | tmake_file="mips/t-elf t-rtems" | |
742d48c2 | 2464 | if test x$enable_threads = xyes; then |
2465 | thread_file='rtems' | |
2466 | fi | |
2467 | ;; | |
2468 | mips*-*-rtems*) | |
2469 | tm_file="mips/elf.h mips/rtems.h" | |
2470 | tmake_file="mips/t-elf t-rtems" | |
2471 | if test x$enable_threads = xyes; then | |
2472 | thread_file='rtems' | |
2473 | fi | |
bb607926 | 2474 | ;; |
2475 | mipstx39el-*-elf*) | |
2476 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h" | |
2477 | tmake_file=mips/t-r3900 | |
2478 | ;; | |
2479 | mipstx39-*-elf*) | |
2480 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h" | |
2481 | tmake_file=mips/t-r3900 | |
2482 | ;; | |
2483 | mips-*-*) # Default MIPS RISC-OS 4.0. | |
2484 | if test x$stabs = xyes; then | |
2485 | tm_file="${tm_file} dbx.h" | |
2486 | fi | |
2487 | if test x$gas = xyes | |
23573244 | 2488 | then : |
bb607926 | 2489 | else |
2490 | extra_passes="mips-tfile mips-tdump" | |
2491 | fi | |
2492 | if test x$gnu_ld != xyes | |
2493 | then | |
2494 | use_collect2=yes | |
2495 | fi | |
2496 | ;; | |
2497 | mn10200-*-*) | |
2498 | float_format=i32 | |
2499 | cpu_type=mn10200 | |
2500 | tm_file="mn10200/mn10200.h" | |
2501 | if test x$stabs = xyes | |
2502 | then | |
2503 | tm_file="${tm_file} dbx.h" | |
2504 | fi | |
2505 | use_collect2=no | |
2506 | ;; | |
2507 | mn10300-*-*) | |
2508 | cpu_type=mn10300 | |
2509 | tm_file="mn10300/mn10300.h" | |
2510 | if test x$stabs = xyes | |
2511 | then | |
2512 | tm_file="${tm_file} dbx.h" | |
2513 | fi | |
2514 | use_collect2=no | |
2515 | ;; | |
2516 | ns32k-encore-bsd*) | |
2517 | tm_file=ns32k/encore.h | |
2518 | use_collect2=yes | |
2519 | ;; | |
2520 | ns32k-sequent-bsd*) | |
2521 | tm_file=ns32k/sequent.h | |
2522 | use_collect2=yes | |
2523 | ;; | |
2524 | ns32k-tek6100-bsd*) | |
2525 | tm_file=ns32k/tek6100.h | |
2526 | use_collect2=yes | |
2527 | ;; | |
2528 | ns32k-tek6200-bsd*) | |
2529 | tm_file=ns32k/tek6200.h | |
2530 | use_collect2=yes | |
2531 | ;; | |
2532 | ns32k-merlin-*) | |
2533 | tm_file=ns32k/merlin.h | |
2534 | use_collect2=yes | |
2535 | ;; | |
2536 | ns32k-pc532-mach*) | |
2537 | tm_file=ns32k/pc532-mach.h | |
2538 | use_collect2=yes | |
2539 | ;; | |
2540 | ns32k-pc532-minix*) | |
2541 | tm_file=ns32k/pc532-min.h | |
597183a7 | 2542 | xm_defines='POSIX HZ=60' |
bb607926 | 2543 | use_collect2=yes |
2544 | ;; | |
2545 | ns32k-*-netbsd*) | |
2546 | tm_file=ns32k/netbsd.h | |
bb607926 | 2547 | # On NetBSD, the headers are already okay, except for math.h. |
2548 | tmake_file=t-netbsd | |
2549 | use_collect2=yes | |
2550 | ;; | |
2551 | pdp11-*-bsd) | |
2552 | tm_file="${tm_file} pdp11/2bsd.h" | |
2553 | ;; | |
2554 | pdp11-*-*) | |
2555 | ;; | |
2556 | avr-*-*) | |
2557 | ;; | |
2558 | ns32k-*-openbsd*) | |
2559 | # Nothing special | |
2560 | ;; | |
2561 | pj*-linux*) | |
2562 | tm_file="svr4.h pj/linux.h ${tm_file}" | |
2563 | ;; | |
2564 | pj-*) | |
2565 | ;; | |
2566 | pjl-*) | |
2567 | tm_file="svr4.h pj/pjl.h ${tm_file}" | |
2568 | ;; | |
2569 | ||
2570 | romp-*-aos*) | |
2571 | use_collect2=yes | |
2572 | ;; | |
2573 | romp-*-mach*) | |
bb607926 | 2574 | use_collect2=yes |
2575 | ;; | |
2576 | romp-*-openbsd*) | |
2577 | # Nothing special | |
2578 | ;; | |
2579 | powerpc-*-openbsd*) | |
f6dfa909 | 2580 | tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd" |
bb607926 | 2581 | ;; |
8eaf2dd1 | 2582 | powerpc64-*-linux*) |
2583 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux64.h" | |
2584 | out_file=rs6000/rs6000.c | |
2585 | tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm" | |
2586 | xmake_file=x-linux | |
2587 | extra_headers=ppc-asm.h | |
2588 | ;; | |
bb607926 | 2589 | powerpc-*-beos*) |
2590 | cpu_type=rs6000 | |
8eaf2dd1 | 2591 | tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h" |
597183a7 | 2592 | xm_defines=POSIX |
bb607926 | 2593 | xm_file=rs6000/xm-beos.h |
2594 | tmake_file=rs6000/t-beos | |
bb607926 | 2595 | ;; |
17ac16a1 | 2596 | powerpc-*-darwin*) |
80d725d7 | 2597 | cpu_type=rs6000 |
2598 | tm_file="${tm_file} darwin.h rs6000/darwin.h" | |
2599 | tm_p_file="${tm_p_file} darwin-protos.h" | |
2600 | tmake_file=rs6000/t-darwin | |
17ac16a1 | 2601 | xmake_file=rs6000/x-darwin |
86648ad2 | 2602 | # Override the usual setting, since Apple's GCC has lame bugs |
2603 | # and can't handle the initializers. Someday the bugs will be | |
2604 | # fixed and we can get rid of this silliness. | |
2605 | xm_defines="HAVE_DESIGNATED_INITIALIZERS=0" | |
80d725d7 | 2606 | extra_objs="darwin.o" |
49f45d83 | 2607 | c_target_objs="darwin-c.o" |
2608 | cxx_target_objs="darwin-c.o" | |
80d725d7 | 2609 | # Darwin linker does collect2 functionality |
2610 | use_collect2=no | |
17ac16a1 | 2611 | ;; |
bb607926 | 2612 | powerpc-*-sysv*) |
a1163540 | 2613 | tm_file="${tm_file} svr4.h rs6000/sysv4.h" |
597183a7 | 2614 | xm_defines=POSIX |
bb607926 | 2615 | extra_headers=ppc-asm.h |
2616 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
bb607926 | 2617 | ;; |
93006578 | 2618 | powerpc-*-netbsd*) |
2619 | xm_defines=POSIX | |
2620 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/netbsd.h" | |
2621 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
2622 | extra_headers=ppc-asm.h | |
2623 | ;; | |
e37e4a50 | 2624 | powerpc-*-chorusos*) |
597183a7 | 2625 | xm_defines=POSIX |
b0d7cff1 | 2626 | tm_file="${tm_file} svr4.h rs6000/sysv4.h chorus.h" |
e37e4a50 | 2627 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
2628 | extra_headers=ppc-asm.h | |
2629 | case x${enable_threads} in | |
2630 | xyes | xpthreads | xposix) | |
2631 | thread_file='posix' | |
2632 | ;; | |
2633 | esac | |
2634 | ;; | |
bb607926 | 2635 | powerpc-*-eabiaix*) |
597183a7 | 2636 | xm_defines=POSIX |
a1163540 | 2637 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h" |
bb607926 | 2638 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2639 | extra_headers=ppc-asm.h | |
2640 | ;; | |
2641 | powerpc-*-eabisim*) | |
597183a7 | 2642 | xm_defines=POSIX |
a1163540 | 2643 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h" |
bb607926 | 2644 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2645 | extra_headers=ppc-asm.h | |
2646 | ;; | |
2647 | powerpc-*-elf*) | |
597183a7 | 2648 | xm_defines=POSIX |
a1163540 | 2649 | tm_file="${tm_file} svr4.h rs6000/sysv4.h" |
bb607926 | 2650 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2651 | extra_headers=ppc-asm.h | |
2652 | ;; | |
2653 | powerpc-*-eabi*) | |
597183a7 | 2654 | xm_defines=POSIX |
a1163540 | 2655 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h" |
bb607926 | 2656 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2657 | extra_headers=ppc-asm.h | |
2658 | ;; | |
2659 | powerpc-*-rtems*) | |
597183a7 | 2660 | xm_defines=POSIX |
a1163540 | 2661 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h" |
bb607926 | 2662 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" |
2663 | extra_headers=ppc-asm.h | |
742d48c2 | 2664 | if test x$enable_threads = xyes; then |
2665 | thread_file='rtems' | |
2666 | fi | |
bb607926 | 2667 | ;; |
2668 | powerpc-*-linux*libc1) | |
a1163540 | 2669 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h" |
bb607926 | 2670 | out_file=rs6000/rs6000.c |
32e8a7fc | 2671 | tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm" |
bb607926 | 2672 | xmake_file=x-linux |
2673 | extra_headers=ppc-asm.h | |
2674 | if test x$enable_threads = xyes; then | |
2675 | thread_file='posix' | |
2676 | fi | |
2677 | ;; | |
2678 | powerpc-*-linux*) | |
a1163540 | 2679 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h" |
bb607926 | 2680 | out_file=rs6000/rs6000.c |
32e8a7fc | 2681 | tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm" |
bb607926 | 2682 | xmake_file=x-linux |
2683 | extra_headers=ppc-asm.h | |
2684 | if test x$enable_threads = xyes; then | |
2685 | thread_file='posix' | |
2686 | fi | |
2687 | ;; | |
2688 | powerpc-wrs-vxworks*) | |
2689 | cpu_type=rs6000 | |
597183a7 | 2690 | xm_defines=POSIX |
a1163540 | 2691 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h" |
bb607926 | 2692 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2693 | extra_headers=ppc-asm.h | |
2694 | thread_file='vxworks' | |
2695 | ;; | |
2696 | powerpcle-wrs-vxworks*) | |
2697 | cpu_type=rs6000 | |
597183a7 | 2698 | xm_defines=POSIX |
a1163540 | 2699 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h" |
bb607926 | 2700 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2701 | extra_headers=ppc-asm.h | |
2702 | thread_file='vxworks' | |
2703 | ;; | |
2704 | powerpcle-*-sysv*) | |
a1163540 | 2705 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h" |
597183a7 | 2706 | xm_defines=POSIX |
bb607926 | 2707 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
bb607926 | 2708 | extra_headers=ppc-asm.h |
2709 | ;; | |
2710 | powerpcle-*-elf*) | |
597183a7 | 2711 | xm_defines=POSIX |
a1163540 | 2712 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h" |
bb607926 | 2713 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2714 | extra_headers=ppc-asm.h | |
2715 | ;; | |
2716 | powerpcle-*-eabisim*) | |
597183a7 | 2717 | xm_defines=POSIX |
a1163540 | 2718 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h" |
bb607926 | 2719 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2720 | extra_headers=ppc-asm.h | |
2721 | ;; | |
2722 | powerpcle-*-eabi*) | |
597183a7 | 2723 | xm_defines=POSIX |
a1163540 | 2724 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h" |
bb607926 | 2725 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
2726 | extra_headers=ppc-asm.h | |
2727 | ;; | |
2728 | powerpcle-*-solaris2*) | |
a1163540 | 2729 | tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h" |
597183a7 | 2730 | xm_defines=POSIX |
bb607926 | 2731 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
bb607926 | 2732 | extra_headers=ppc-asm.h |
2733 | ;; | |
2734 | rs6000-ibm-aix3.[01]*) | |
597183a7 | 2735 | xm_defines=POSIX |
8eaf2dd1 | 2736 | tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h rs6000/xcoff.h" |
bb607926 | 2737 | float_format=none |
2738 | use_collect2=yes | |
2739 | ;; | |
2740 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
597183a7 | 2741 | xm_defines=POSIX |
8eaf2dd1 | 2742 | tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h rs6000/xcoff.h" |
513f3e74 | 2743 | tmake_file=rs6000/t-newas |
bb607926 | 2744 | float_format=none |
2745 | use_collect2=yes | |
2746 | ;; | |
2747 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) | |
597183a7 | 2748 | xm_defines=POSIX |
8eaf2dd1 | 2749 | tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h" |
513f3e74 | 2750 | tmake_file=rs6000/t-newas |
bb607926 | 2751 | float_format=none |
2752 | use_collect2=yes | |
2753 | ;; | |
2754 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) | |
597183a7 | 2755 | xm_defines=POSIX |
8eaf2dd1 | 2756 | tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h" |
bb607926 | 2757 | tmake_file=rs6000/t-aix43 |
bb607926 | 2758 | float_format=none |
2759 | use_collect2=yes | |
2760 | thread_file='aix' | |
2761 | ;; | |
2762 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
597183a7 | 2763 | xm_defines=POSIX |
8eaf2dd1 | 2764 | tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h" |
bb607926 | 2765 | tmake_file=rs6000/t-aix43 |
bb607926 | 2766 | float_format=none |
2767 | use_collect2=yes | |
2768 | thread_file='aix' | |
2769 | ;; | |
2770 | rs6000-ibm-aix*) | |
597183a7 | 2771 | xm_defines=POSIX |
8eaf2dd1 | 2772 | tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h" |
bb607926 | 2773 | float_format=none |
2774 | use_collect2=yes | |
2775 | ;; | |
2776 | rs6000-bull-bosx) | |
597183a7 | 2777 | xm_defines=POSIX |
8eaf2dd1 | 2778 | tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h" |
bb607926 | 2779 | float_format=none |
2780 | use_collect2=yes | |
2781 | ;; | |
2782 | rs6000-*-mach*) | |
aae1638c | 2783 | tm_file="rs6000/rs6000.h rs6000/mach.h" |
597183a7 | 2784 | xm_defines=POSIX |
bb607926 | 2785 | use_collect2=yes |
2786 | ;; | |
2787 | rs6000-*-lynxos*) | |
2788 | tm_file=rs6000/lynx.h | |
bb607926 | 2789 | tmake_file=rs6000/t-rs6000 |
bb607926 | 2790 | use_collect2=yes |
2791 | ;; | |
346e8a0c | 2792 | s390-*-linux*) |
2793 | xmake_file=x-linux | |
2794 | tm_file=s390/linux.h | |
1281fed9 | 2795 | tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux" |
346e8a0c | 2796 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
2797 | if test x$enable_threads = xyes; then | |
2798 | thread_file='posix' | |
2799 | fi | |
2800 | ;; | |
2801 | s390x-*-linux*) | |
2802 | xmake_file=x-linux | |
2803 | tm_file=s390/linux64.h | |
1281fed9 | 2804 | tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux" |
346e8a0c | 2805 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
2806 | if test x$enable_threads = xyes; then | |
2807 | thread_file='posix' | |
2808 | fi | |
2809 | ;; | |
bb607926 | 2810 | sh-*-elf*) |
2811 | tmake_file="sh/t-sh sh/t-elf" | |
2812 | tm_file="sh/sh.h sh/elf.h" | |
2813 | float_format=sh | |
2814 | ;; | |
2815 | sh-*-rtemself*) | |
2816 | tmake_file="sh/t-sh sh/t-elf t-rtems" | |
2817 | tm_file="sh/sh.h sh/elf.h sh/rtemself.h" | |
2818 | float_format=sh | |
742d48c2 | 2819 | if test x$enable_threads = xyes; then |
2820 | thread_file='rtems' | |
2821 | fi | |
bb607926 | 2822 | ;; |
2823 | sh-*-rtems*) | |
2824 | tmake_file="sh/t-sh t-rtems" | |
2825 | tm_file="sh/sh.h sh/rtems.h" | |
2826 | float_format=sh | |
742d48c2 | 2827 | if test x$enable_threads = xyes; then |
2828 | thread_file='rtems' | |
2829 | fi | |
bb607926 | 2830 | ;; |
2831 | sh-*-linux*) | |
2832 | tm_file="sh/sh.h sh/elf.h sh/linux.h" | |
2833 | tmake_file="sh/t-sh sh/t-elf sh/t-linux" | |
2834 | xmake_file=x-linux | |
2835 | gas=yes gnu_ld=yes | |
2836 | if test x$enable_threads = xyes; then | |
2837 | thread_file='posix' | |
2838 | fi | |
2839 | float_format=sh | |
2840 | ;; | |
2841 | sh-*-*) | |
2842 | float_format=sh | |
2843 | ;; | |
2844 | sparc-tti-*) | |
2845 | tm_file=sparc/pbd.h | |
597183a7 | 2846 | xm_defines=POSIX |
bb607926 | 2847 | ;; |
81a6a67d | 2848 | sparc64-wrs-vxworks*) |
2849 | tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h" | |
2850 | tmake_file=sparc/t-vxsparc64 | |
2851 | use_collect2=yes | |
2852 | ;; | |
bb607926 | 2853 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) |
2854 | tm_file=sparc/vxsparc.h | |
2855 | tmake_file=sparc/t-vxsparc | |
2856 | use_collect2=yes | |
2857 | thread_file='vxworks' | |
2858 | ;; | |
2859 | sparc-*-aout*) | |
2860 | tmake_file=sparc/t-sparcbare | |
2861 | tm_file="sparc/aout.h libgloss.h" | |
2862 | ;; | |
2863 | sparc-*-netbsd*) | |
2864 | tm_file=sparc/netbsd.h | |
2865 | tmake_file=t-netbsd | |
2866 | use_collect2=yes | |
2867 | ;; | |
2868 | sparc-*-openbsd*) | |
c7be79ca | 2869 | # needed to unconfuse gdb |
2870 | tmake_file="t-libc-ok t-openbsd sparc/t-openbsd" | |
bb607926 | 2871 | # we need collect2 until our bug is fixed... |
2872 | use_collect2=yes | |
2873 | ;; | |
2874 | sparc-*-bsd*) | |
3ee86238 | 2875 | tm_file="${tm_file} sparc/bsd.h" |
bb607926 | 2876 | ;; |
e37e4a50 | 2877 | sparc-*-chorusos*) |
b0d7cff1 | 2878 | tm_file="sparc/sol2.h sparc/elf.h chorus.h" |
e37e4a50 | 2879 | tmake_file=sparc/t-chorus-elf |
2880 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
2881 | float_format=i64 | |
2882 | case x${enable_threads} in | |
2883 | xyes | xpthreads | xposix) | |
2884 | thread_file='posix' | |
2885 | ;; | |
2886 | esac | |
2887 | ;; | |
bb607926 | 2888 | sparc-*-elf*) |
b74ec6e7 | 2889 | tm_file="sparc/sol2.h sparc/elf.h" |
bb607926 | 2890 | tmake_file=sparc/t-elf |
2891 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
2892 | #float_format=i128 | |
2893 | float_format=i64 | |
2894 | ;; | |
2895 | sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out | |
bb607926 | 2896 | tm_file=sparc/linux-aout.h |
2897 | xmake_file=x-linux | |
2898 | gnu_ld=yes | |
2899 | ;; | |
2900 | sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5 | |
bb607926 | 2901 | xmake_file=x-linux |
2902 | tm_file=sparc/linux.h | |
32e8a7fc | 2903 | tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1" |
bb607926 | 2904 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
2905 | gnu_ld=yes | |
2906 | float_format=sparc | |
2907 | ;; | |
2908 | sparc-*-linux*) # Sparc's running GNU/Linux, libc6 | |
bb607926 | 2909 | xmake_file=x-linux |
2910 | tm_file=sparc/linux.h | |
32e8a7fc | 2911 | tmake_file="t-slibgcc-elf-ver t-linux" |
bb607926 | 2912 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
2913 | gnu_ld=yes | |
2914 | if test x$enable_threads = xyes; then | |
2915 | thread_file='posix' | |
2916 | fi | |
2917 | float_format=sparc | |
2918 | ;; | |
2919 | sparc-*-lynxos*) | |
2920 | if test x$gas = xyes | |
2921 | then | |
2922 | tm_file=sparc/lynx.h | |
2923 | else | |
2924 | tm_file=sparc/lynx-ng.h | |
2925 | fi | |
bb607926 | 2926 | tmake_file=sparc/t-sunos41 |
bb607926 | 2927 | ;; |
2928 | sparc-*-rtemsaout*) | |
2929 | tmake_file="sparc/t-sparcbare t-rtems" | |
2930 | tm_file=sparc/rtems.h | |
742d48c2 | 2931 | if test x$enable_threads = xyes; then |
2932 | thread_file='rtems' | |
2933 | fi | |
bb607926 | 2934 | ;; |
2935 | sparc-*-rtems*|sparc-*-rtemself*) | |
b74ec6e7 | 2936 | tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h" |
bb607926 | 2937 | tmake_file="sparc/t-elf t-rtems" |
2938 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
2939 | #float_format=i128 | |
2940 | float_format=i64 | |
742d48c2 | 2941 | if test x$enable_threads = xyes; then |
2942 | thread_file='rtems' | |
2943 | fi | |
bb607926 | 2944 | ;; |
b412afc7 | 2945 | sparcv9-*-solaris2* | sparc64-*-solaris2*) |
bb607926 | 2946 | if test x$gnu_ld = xyes |
2947 | then | |
2948 | tm_file=sparc/sol2-64.h | |
2949 | else | |
2950 | tm_file=sparc/sol2-sld-64.h | |
2951 | fi | |
597183a7 | 2952 | xm_defines=POSIX |
bb607926 | 2953 | tmake_file="sparc/t-sol2 sparc/t-sol2-64" |
2954 | if test x$gnu_ld = xyes; then | |
32e8a7fc | 2955 | tmake_file="$tmake_file t-slibgcc-elf-ver" |
bb607926 | 2956 | else |
32e8a7fc | 2957 | tmake_file="$tmake_file t-slibgcc-sld" |
bb607926 | 2958 | fi |
bb607926 | 2959 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" |
2960 | float_format=none | |
2961 | if test x${enable_threads} = x ; then | |
2962 | enable_threads=$have_pthread_h | |
2963 | if test x${enable_threads} = x ; then | |
2964 | enable_threads=$have_thread_h | |
2965 | fi | |
2966 | fi | |
2967 | if test x${enable_threads} = xyes ; then | |
2968 | if test x${have_pthread_h} = xyes ; then | |
2969 | thread_file='posix' | |
2970 | else | |
2971 | thread_file='solaris' | |
2972 | fi | |
2973 | fi | |
2974 | ;; | |
2975 | sparc-hal-solaris2*) | |
597183a7 | 2976 | xm_defines=POSIX |
bb607926 | 2977 | tm_file="sparc/sol2.h sparc/hal.h" |
2978 | tmake_file="sparc/t-halos sparc/t-sol2" | |
2979 | if test x$gnu_ld = xyes; then | |
32e8a7fc | 2980 | tmake_file="$tmake_file t-slibgcc-elf-ver" |
bb607926 | 2981 | else |
32e8a7fc | 2982 | tmake_file="$tmake_file t-slibgcc-sld" |
bb607926 | 2983 | fi |
bb607926 | 2984 | extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o" |
2985 | case $machine in | |
2986 | *-*-solaris2.[0-4]) | |
2987 | float_format=i128 | |
2988 | ;; | |
2989 | *) | |
2990 | float_format=none | |
2991 | ;; | |
2992 | esac | |
2993 | thread_file='solaris' | |
2994 | ;; | |
2995 | sparc-*-solaris2*) | |
2996 | if test x$gnu_ld = xyes | |
2997 | then | |
2998 | tm_file=sparc/sol2.h | |
2999 | else | |
3000 | tm_file=sparc/sol2-sld.h | |
3001 | fi | |
597183a7 | 3002 | xm_defines=POSIX |
bb607926 | 3003 | tmake_file=sparc/t-sol2 |
3004 | if test x$gnu_ld = xyes; then | |
32e8a7fc | 3005 | tmake_file="$tmake_file t-slibgcc-elf-ver" |
bb607926 | 3006 | else |
32e8a7fc | 3007 | tmake_file="$tmake_file t-slibgcc-sld" |
bb607926 | 3008 | fi |
bb607926 | 3009 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
046d147a | 3010 | case $machine in |
3011 | *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;; | |
3012 | *-*-solaris2*) | |
3013 | if test x$gnu_ld = xyes | |
3014 | then | |
3015 | tm_file=sparc/sol2-64.h | |
3016 | else | |
3017 | tm_file=sparc/sol2-sld-64.h | |
3018 | fi | |
3019 | tmake_file="$tmake_file sparc/t-sol2-64" | |
3020 | ;; | |
3021 | esac | |
bb607926 | 3022 | case $machine in |
3023 | *-*-solaris2.[0-4]) | |
3024 | float_format=i128 | |
3025 | ;; | |
3026 | *) | |
3027 | float_format=none | |
3028 | ;; | |
3029 | esac | |
3030 | if test x${enable_threads} = x; then | |
3031 | enable_threads=$have_pthread_h | |
3032 | if test x${enable_threads} = x; then | |
3033 | enable_threads=$have_thread_h | |
3034 | fi | |
3035 | fi | |
3036 | if test x${enable_threads} = xyes; then | |
3037 | if test x${have_pthread_h} = xyes; then | |
3038 | thread_file='posix' | |
3039 | else | |
3040 | thread_file='solaris' | |
3041 | fi | |
3042 | fi | |
3043 | ;; | |
3044 | sparc-*-sunos4.0*) | |
3045 | tm_file=sparc/sunos4.h | |
bb607926 | 3046 | use_collect2=yes |
3047 | ;; | |
3048 | sparc-*-sunos4*) | |
3049 | tm_file=sparc/sunos4.h | |
3050 | tmake_file=sparc/t-sunos41 | |
3051 | use_collect2=yes | |
3052 | if test x$gas = xyes; then | |
3053 | tm_file="${tm_file} sparc/sun4gas.h" | |
3054 | fi | |
3055 | ;; | |
3056 | sparc-*-sunos3*) | |
3057 | tm_file=sparc/sun4o3.h | |
3058 | use_collect2=yes | |
3059 | ;; | |
3060 | sparc-*-sysv4*) | |
3061 | tm_file=sparc/sysv4.h | |
597183a7 | 3062 | xm_defines=POSIX |
bb607926 | 3063 | tmake_file=t-svr4 |
bb607926 | 3064 | extra_parts="crtbegin.o crtend.o" |
3065 | ;; | |
3066 | sparc-*-vxsim*) | |
597183a7 | 3067 | xm_defines=POSIX |
bb607926 | 3068 | tm_file=sparc/vxsim.h |
3069 | tmake_file=sparc/t-vxsparc | |
bb607926 | 3070 | ;; |
3071 | sparclet-*-aout*) | |
3072 | tm_file="sparc/splet.h libgloss.h" | |
3073 | tmake_file=sparc/t-splet | |
3074 | ;; | |
3075 | sparclite-*-coff*) | |
3076 | tm_file="sparc/litecoff.h libgloss.h" | |
3077 | tmake_file=sparc/t-sparclite | |
3078 | ;; | |
3079 | sparclite-*-aout*) | |
3080 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
3081 | tmake_file=sparc/t-sparclite | |
3082 | ;; | |
3083 | sparclite-*-elf*) | |
b74ec6e7 | 3084 | tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h" |
bb607926 | 3085 | tmake_file=sparc/t-sparclite |
3086 | extra_parts="crtbegin.o crtend.o" | |
3087 | ;; | |
3088 | sparc86x-*-aout*) | |
3089 | tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h" | |
3090 | tmake_file=sparc/t-sp86x | |
3091 | ;; | |
3092 | sparc86x-*-elf*) | |
b74ec6e7 | 3093 | tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h" |
bb607926 | 3094 | tmake_file=sparc/t-sp86x |
3095 | extra_parts="crtbegin.o crtend.o" | |
3096 | ;; | |
3097 | sparc64-*-aout*) | |
bb607926 | 3098 | tm_file=sparc/sp64-aout.h |
3099 | ;; | |
3100 | sparc64-*-elf*) | |
bb607926 | 3101 | tm_file=sparc/sp64-elf.h |
3102 | extra_parts="crtbegin.o crtend.o" | |
3103 | ;; | |
3104 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux | |
32e8a7fc | 3105 | tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64" |
bb607926 | 3106 | tm_file=sparc/linux64.h |
3107 | xmake_file=x-linux | |
3108 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
3109 | gnu_ld=yes | |
3110 | if test x$enable_threads = xyes; then | |
3111 | thread_file='posix' | |
3112 | fi | |
3113 | float_format=sparc | |
3114 | ;; | |
96fb1e39 | 3115 | stormy16-*-elf) |
3116 | tmake_file="stormy16/t-stormy16" | |
3117 | extra_parts="crtbegin.o crtend.o" | |
3118 | ;; | |
331beb1a | 3119 | strongarm-*-elf*) |
a9acd81a | 3120 | tm_file="arm/strongarm-elf.h elfos.h arm/unknown-elf.h arm/elf.h" |
331beb1a | 3121 | tmake_file=arm/t-strongarm-elf |
3122 | out_file=arm/arm.c | |
331beb1a | 3123 | md_file=arm/arm.md |
3124 | ;; | |
3125 | strongarm-*-coff*) | |
3126 | tm_file=arm/strongarm-coff.h | |
3127 | tmake_file=arm/t-strongarm-coff | |
3128 | out_file=arm/arm.c | |
331beb1a | 3129 | md_file=arm/arm.md |
3130 | ;; | |
3131 | strongarm-*-pe) | |
3132 | tm_file=arm/strongarm-pe.h | |
3133 | tmake_file=arm/t-strongarm-pe | |
3134 | out_file=arm/arm.c | |
331beb1a | 3135 | md_file=arm/arm.md |
3136 | extra_objs=pe.o | |
3137 | ;; | |
bb607926 | 3138 | thumb*-*-*) |
3139 | { echo "config.gcc: error: | |
36c77238 | 3140 | *** The Thumb targets have been deprecated. The equivalent |
cb251f34 | 3141 | *** ARM based toolchain can now generate Thumb instructions |
bb607926 | 3142 | *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; } |
3143 | ;; | |
3144 | v850-*-rtems*) | |
3145 | cpu_type=v850 | |
3146 | tm_file="v850/rtems.h" | |
bb607926 | 3147 | tmake_file="v850/t-v850 t-rtems" |
3148 | if test x$stabs = xyes | |
3149 | then | |
3150 | tm_file="${tm_file} dbx.h" | |
3151 | fi | |
3152 | use_collect2=no | |
e101acea | 3153 | c_target_objs="v850-c.o" |
3154 | cxx_target_objs="v850-c.o" | |
bb607926 | 3155 | ;; |
3156 | v850-*-*) | |
3157 | target_cpu_default="TARGET_CPU_generic" | |
3158 | cpu_type=v850 | |
3159 | tm_file="v850/v850.h" | |
bb607926 | 3160 | tmake_file=v850/t-v850 |
3161 | if test x$stabs = xyes | |
3162 | then | |
3163 | tm_file="${tm_file} dbx.h" | |
3164 | fi | |
3165 | use_collect2=no | |
e101acea | 3166 | c_target_objs="v850-c.o" |
3167 | cxx_target_objs="v850-c.o" | |
bb607926 | 3168 | ;; |
6c842310 | 3169 | vax-*-bsd*) # VAXen running BSD |
bb607926 | 3170 | use_collect2=yes |
3171 | float_format=vax | |
3172 | ;; | |
6c842310 | 3173 | vax-*-sysv*) # VAXen running system V |
bb607926 | 3174 | tm_file="${tm_file} vax/vaxv.h" |
597183a7 | 3175 | xm_defines=POSIX |
bb607926 | 3176 | float_format=vax |
3177 | ;; | |
3178 | vax-*-netbsd*) | |
3179 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
3180 | tmake_file=t-netbsd | |
3181 | float_format=vax | |
3182 | use_collect2=yes | |
3183 | ;; | |
3184 | vax-*-openbsd*) | |
bb607926 | 3185 | tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}" |
bb607926 | 3186 | float_format=vax |
3187 | use_collect2=yes | |
3188 | ;; | |
6c842310 | 3189 | vax-*-ultrix*) # VAXen running ultrix |
bb607926 | 3190 | tm_file="${tm_file} vax/ultrix.h" |
3191 | float_format=vax | |
3192 | ;; | |
6c842310 | 3193 | vax-*-vms*) # VAXen running VMS |
bb607926 | 3194 | xm_file=vax/xm-vms.h |
3195 | tm_file=vax/vms.h | |
3196 | float_format=vax | |
3197 | ;; | |
6c842310 | 3198 | vax-*-*) # VAX default entry |
bb607926 | 3199 | float_format=vax |
3200 | ;; | |
3201 | we32k-att-sysv*) | |
597183a7 | 3202 | xm_defines=POSIX |
bb607926 | 3203 | use_collect2=yes |
3204 | ;; | |
331beb1a | 3205 | xscale-*-elf) |
a9acd81a | 3206 | tm_file="arm/xscale-elf.h elfos.h arm/unknown-elf.h arm/elf.h" |
331beb1a | 3207 | tmake_file=arm/t-xscale-elf |
3208 | out_file=arm/arm.c | |
331beb1a | 3209 | md_file=arm/arm.md |
3210 | ;; | |
3211 | xscale-*-coff) | |
3212 | tm_file=arm/xscale-coff.h | |
3213 | tmake_file=arm/t-xscale-coff | |
3214 | out_file=arm/arm.c | |
331beb1a | 3215 | md_file=arm/arm.md |
3216 | ;; | |
bb607926 | 3217 | *) |
3218 | echo "Configuration $machine not supported" 1>&2 | |
3219 | exit 1 | |
3220 | ;; | |
3221 | esac | |
3222 | ||
3223 | case $machine in | |
bb607926 | 3224 | *-*-sysv*) |
3225 | install_headers_dir=install-headers-cpio | |
3226 | ;; | |
3227 | esac | |
3228 | ||
3229 | # Distinguish i[34567]86 | |
3230 | # Also, do not run mips-tfile on MIPS if using gas. | |
3231 | # Process --with-cpu= for PowerPC/rs6000 | |
3232 | target_cpu_default2= | |
3233 | case $machine in | |
3234 | i486-*-*) | |
3235 | target_cpu_default2=1 | |
3236 | ;; | |
3237 | i586-*-*) | |
3238 | case $target_alias in | |
3239 | k6-*) | |
3240 | target_cpu_default2=4 | |
3241 | ;; | |
3242 | *) | |
3243 | target_cpu_default2=2 | |
3244 | ;; | |
3245 | esac | |
3246 | ;; | |
3247 | i686-*-* | i786-*-*) | |
bb678e49 | 3248 | case $target_alias in |
3249 | athlon-*) | |
3250 | target_cpu_default2=5 | |
3251 | ;; | |
3252 | *) | |
3253 | target_cpu_default2=3 | |
3254 | ;; | |
3255 | esac | |
bb607926 | 3256 | ;; |
3257 | alpha*-*-*) | |
3258 | case $machine in | |
3259 | alphaev6[78]*) | |
3260 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX" | |
3261 | ;; | |
3262 | alphaev6*) | |
3263 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX" | |
3264 | ;; | |
3265 | alphapca56*) | |
3266 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" | |
3267 | ;; | |
3268 | alphaev56*) | |
3269 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" | |
3270 | ;; | |
3271 | alphaev5*) | |
3272 | target_cpu_default2="MASK_CPU_EV5" | |
3273 | ;; | |
3274 | esac | |
3275 | ||
3276 | if test x$gas = xyes | |
3277 | then | |
3278 | if test "$target_cpu_default2" = "" | |
3279 | then | |
3280 | target_cpu_default2="MASK_GAS" | |
3281 | else | |
3282 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
3283 | fi | |
3284 | fi | |
3285 | ;; | |
3286 | arm*-*-*) | |
3287 | case "x$with_cpu" in | |
3288 | x) | |
3289 | # The most generic | |
3290 | target_cpu_default2="TARGET_CPU_generic" | |
3291 | ;; | |
3292 | ||
3293 | # Distinguish cores, and major variants | |
3294 | # arm7m doesn't exist, but D & I don't affect code | |
a88ec949 | 3295 | xarm[236789] | xarm250 | xarm[67][01]0 \ |
3296 | | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \ | |
bb607926 | 3297 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ |
331beb1a | 3298 | | xxscale \ |
bb607926 | 3299 | | xstrongarm | xstrongarm110 | xstrongarm1100) |
3300 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
3301 | ;; | |
3302 | ||
3303 | xyes | xno) | |
3304 | echo "--with-cpu must be passed a value" 1>&2 | |
3305 | exit 1 | |
3306 | ;; | |
3307 | ||
3308 | *) | |
3309 | if test x$pass2done = xyes | |
3310 | then | |
3311 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
3312 | exit 1 | |
3313 | fi | |
3314 | ;; | |
3315 | esac | |
3316 | ;; | |
3317 | ||
6630177d | 3318 | hppa*-*-* | parisc*-*-*) |
3319 | if test x$gas = xyes | |
3320 | then | |
3321 | target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY" | |
3322 | fi | |
3323 | ;; | |
3324 | ||
bb607926 | 3325 | mips*-*-ecoff* | mips*-*-elf*) |
3326 | if test x$gas = xyes | |
3327 | then | |
3328 | if test x$gnu_ld = xyes | |
3329 | then | |
3330 | target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR" | |
3331 | else | |
3332 | target_cpu_default2="MASK_GAS" | |
3333 | fi | |
3334 | fi | |
3335 | ;; | |
3336 | mips*-*-*) | |
3337 | if test x$gas = xyes | |
3338 | then | |
3339 | target_cpu_default2="MASK_GAS" | |
3340 | fi | |
3341 | ;; | |
3342 | powerpc*-*-* | rs6000-*-*) | |
3343 | case "x$with_cpu" in | |
3344 | x) | |
3345 | ;; | |
3346 | ||
3347 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
3348 | | xrios1 | xrios2 | xrsc | xrsc1 \ | |
3349 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
3350 | | xec603e | x740 | x750 | x401 \ | |
3351 | | x403 | x505 | x801 | x821 | x823 | x860) | |
4c088c24 | 3352 | target_cpu_default2="\\\"$with_cpu\\\"" |
bb607926 | 3353 | ;; |
3354 | ||
3355 | xyes | xno) | |
3356 | echo "--with-cpu must be passed a value" 1>&2 | |
3357 | exit 1 | |
3358 | ;; | |
3359 | ||
3360 | *) | |
3361 | if test x$pass2done = xyes | |
3362 | then | |
3363 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
3364 | exit 1 | |
3365 | fi | |
3366 | ;; | |
3367 | esac | |
3368 | ;; | |
3369 | sparc*-*-*) | |
3370 | case ".$with_cpu" in | |
3371 | .) | |
3372 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
3373 | ;; | |
3374 | .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9) | |
3375 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
3376 | ;; | |
3377 | *) | |
3378 | if test x$pass2done = xyes | |
3379 | then | |
3380 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
3381 | exit 1 | |
3382 | fi | |
3383 | ;; | |
3384 | esac | |
3385 | ;; | |
3386 | esac | |
3387 | ||
3388 | if test "$target_cpu_default2" != "" | |
3389 | then | |
3390 | if test "$target_cpu_default" != "" | |
3391 | then | |
3392 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
3393 | else | |
3394 | target_cpu_default=$target_cpu_default2 | |
3395 | fi | |
3396 | fi | |
3397 | ||
bb607926 | 3398 | # Save data on machine being used to compile GCC in build_xm_file. |
3399 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
3400 | if test x$pass1done = x | |
3401 | then | |
e1688c3e | 3402 | if test x$xm_file != x |
3403 | then build_xm_file=$xm_file | |
bb607926 | 3404 | fi |
3405 | build_xm_defines=$xm_defines | |
3406 | build_install_headers_dir=$install_headers_dir | |
3407 | build_exeext=$exeext | |
3408 | pass1done=yes | |
3409 | else | |
3410 | if test x$pass2done = x | |
3411 | then | |
e1688c3e | 3412 | if test x$xm_file != x |
3413 | then host_xm_file=$xm_file | |
bb607926 | 3414 | fi |
3415 | host_xm_defines=$xm_defines | |
bb607926 | 3416 | host_xmake_file="$xmake_file" |
3417 | host_truncate_target=$truncate_target | |
3418 | host_extra_gcc_objs=$extra_gcc_objs | |
3419 | host_extra_objs=$extra_host_objs | |
3420 | host_exeext=$exeext | |
3421 | pass2done=yes | |
3422 | fi | |
3423 | fi |