]>
Commit | Line | Data |
---|---|---|
61ed06c3 | 1 | # GCC build-, host- and target-specific configuration file. |
817e13c4 | 2 | # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
61ed06c3 | 3 | |
1322177d | 4 | #This file is part of GCC. |
61ed06c3 | 5 | |
1322177d LB |
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. | |
61ed06c3 | 10 | |
1322177d LB |
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. | |
61ed06c3 HPN |
15 | |
16 | #You should have received a copy of the GNU General Public License | |
1322177d LB |
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. | |
61ed06c3 HPN |
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 | # | |
d5355cb2 JDA |
48 | # tm_defines List of target macros to define for all compilations. |
49 | # | |
61ed06c3 | 50 | # tm_file A list of target macro files, if different from |
32fb7c9d FS |
51 | # "$cpu_type/$cpu_type.h". Usually it's constructed |
52 | # per target in a way like this: | |
c40409ce | 53 | # tm_file="${tm_file} dbxelf.h elfos.h svr4.h ${cpu_type.h}/elf.h" |
32fb7c9d FS |
54 | # Note that the preferred order is: |
55 | # - specific target header "${cpu_type}/${cpu_type.h}" | |
c40409ce | 56 | # - generic headers like dbxelf.h elfos.h, netware.h, etc. |
32fb7c9d FS |
57 | # - specializing target headers like ${cpu_type.h}/elf.h |
58 | # This helps to keep OS specific stuff out of the CPU | |
59 | # defining header ${cpu_type}/${cpu_type.h}. | |
61ed06c3 HPN |
60 | # |
61 | # tm_p_file Location of file with declarations for functions | |
62 | # in $out_file. | |
63 | # | |
64 | # out_file The name of the machine description C support | |
65 | # file, if different from "$cpu_type/$cpu_type.c". | |
66 | # | |
67 | # md_file The name of the machine-description file, if | |
68 | # different from "$cpu_type/$cpu_type.md". | |
69 | # | |
70 | # tmake_file A list of machine-description-specific | |
71 | # makefile-fragments, if different from | |
72 | # "$cpu_type/t-$cpu_type". | |
73 | # | |
1c0ca89d ZW |
74 | # extra_modes The name of the file containing a list of extra |
75 | # machine modes, if necessary and different from | |
76 | # "$cpu_type/$cpu_type-modes.def". | |
77 | # | |
61ed06c3 HPN |
78 | # float_format Set to the symbolic name for the floating-point |
79 | # formats used for this machine, if different from | |
80 | # "i64". Used to derive a header file name to | |
81 | # include, like "vax" for "float-vax.h". If no such | |
82 | # file is wanted, set to "none". | |
83 | # | |
84 | # extra_objs List of extra objects that should be linked into | |
85 | # the compiler proper (cc1, cc1obj, cc1plus) | |
86 | # depending on target. | |
87 | # | |
88 | # extra_headers List of used header files from the directory | |
817e13c4 | 89 | # config/${cpu_type}. |
61ed06c3 HPN |
90 | # |
91 | # host_xmake_file List of host-specific makefile-fragments. | |
92 | # | |
93 | # extra_passes List of extra executables compiled for this target | |
94 | # machine, used for compiling from source to object. | |
95 | # | |
96 | # extra_parts List of extra object files that should be compiled | |
97 | # for this target machine. | |
98 | # | |
99 | # extra_programs Like extra_passes, but these are used when linking. | |
100 | # | |
ff7cc307 | 101 | # host_extra_objs List of extra host-dependent objects that should |
61ed06c3 HPN |
102 | # be linked into the compiler proper. |
103 | # | |
ff7cc307 | 104 | # host_extra_gcc_objs List of extra host-dependent objects that should |
61ed06c3 HPN |
105 | # be linked into the gcc driver. |
106 | # | |
ff7cc307 | 107 | # c_target_objs List of extra target-dependent objects that be |
aac69a49 | 108 | # linked into the C compiler only. |
0e5a4ad8 | 109 | # |
ff7cc307 | 110 | # cxx_target_objs List of extra target-dependent objects that be |
aac69a49 | 111 | # linked into the C++ compiler only. |
0e5a4ad8 | 112 | # |
61ed06c3 HPN |
113 | # build_xm_defines List of macros to define when compiling for the |
114 | # build machine. | |
115 | # | |
116 | # build_xm_file List of files to include when compiling for the | |
117 | # build machine. | |
118 | # | |
119 | # host_xm_defines List of macros to define when compiling for the | |
120 | # host machine. | |
121 | # | |
122 | # host_xm_file List of files to include when compiling for the | |
123 | # host machine. | |
124 | # | |
125 | # xm_defines List of macros to define when compiling for the | |
126 | # target machine. | |
127 | # | |
128 | # xm_file List of files to include when compiling for the | |
129 | # target machine. | |
130 | # | |
131 | # use_collect2 Set to yes or no, depending on whether collect2 | |
132 | # will be used. | |
133 | # | |
134 | # target_cpu_default Set to override the default target model. | |
135 | # | |
136 | # build_install_headers_dir | |
137 | # Target to use when installing header files. | |
138 | # | |
61ed06c3 HPN |
139 | # host_truncate_target |
140 | # Non-empty if the target name should be truncated | |
141 | # on this host, due to filename length issues. | |
142 | # | |
143 | # gdb_needs_out_file_path | |
144 | # Set to yes if gdb needs a dir command with | |
145 | # `dirname $out_file`. | |
146 | # | |
147 | # build_exeext Set to the suffix, if the build machine requires | |
148 | # executables to have a file name suffix. | |
149 | # | |
150 | # host_exeext Set to the suffix, if the host machine requires | |
151 | # executables to have a file name suffix. | |
152 | # | |
153 | # thread_file Set to control which thread package to use. | |
154 | # | |
155 | # gas Set to yes or no depending on whether the target | |
156 | # system normally uses GNU as. | |
157 | ||
158 | # The following variables are used in each case-construct to build up the | |
159 | # outgoing variables: | |
160 | # | |
161 | # xmake_file Makefile-fragment when this system is as a host, | |
162 | # for host_xmake_file. | |
163 | # | |
164 | # extra_host_objs List of extra objects that should be linked into | |
165 | # the compiler proper when this system is a host, | |
166 | # for host_extra_objs. | |
167 | # | |
168 | # install_headers_dir Makefile-target for how the header file directory | |
169 | # is installed, when this system is a build system, | |
170 | # for build_install_headers_dir. | |
171 | # | |
172 | # truncate_target Non-empty if the target name should be truncated | |
173 | # when this system is a host, due to filename length | |
174 | # issues. For host_truncate_target. | |
175 | # | |
176 | # exeext The suffix for executables on this system. | |
177 | # | |
178 | # gnu_ld Set to yes or no depending on whether the target | |
179 | # system normally uses GNU ld. | |
180 | ||
181 | out_file= | |
182 | xmake_file= | |
183 | tmake_file= | |
184 | extra_headers= | |
185 | extra_passes= | |
186 | extra_parts= | |
187 | extra_programs= | |
188 | extra_objs= | |
189 | extra_host_objs= | |
190 | extra_gcc_objs= | |
aac69a49 NC |
191 | c_target_objs= |
192 | cxx_target_objs= | |
d5355cb2 | 193 | tm_defines= |
61ed06c3 HPN |
194 | xm_defines= |
195 | float_format= | |
196 | # Set this to force installation and use of collect2. | |
197 | use_collect2= | |
198 | # Set this to override the default target model. | |
199 | target_cpu_default= | |
200 | # Set this to control how the header file directory is installed. | |
201 | install_headers_dir=install-headers-tar | |
61ed06c3 HPN |
202 | # Set this if directory names should be truncated to 14 characters. |
203 | truncate_target= | |
204 | # Set this if gdb needs a dir command with `dirname $out_file` | |
205 | gdb_needs_out_file_path= | |
206 | # Set this if the build machine requires executables to have a | |
207 | # file name suffix. | |
208 | exeext= | |
209 | # Set this to control which thread package will be used. | |
210 | thread_file= | |
211 | # Reinitialize these from the flag values every loop pass, since some | |
212 | # configure entries modify them. | |
213 | gas="$gas_flag" | |
214 | gnu_ld="$gnu_ld_flag" | |
215 | enable_threads=$enable_threads_flag | |
216 | ||
9340544b | 217 | # Obsolete configurations. |
9340544b | 218 | case $machine in |
c7bdf0a6 ZW |
219 | m88k-*-aout* \ |
220 | | m88k-*-openbsd* \ | |
221 | | m88k-*-sysv4* \ | |
222 | | mips-sni-sysv4 \ | |
9c075570 | 223 | | mn10200-*-* \ |
c7bdf0a6 ZW |
224 | | ns32k-*-openbsd* \ |
225 | | romp-*-openbsd* \ | |
226 | ) | |
8998d5bf | 227 | if test "x$enable_obsolete" != xyes; then |
9340544b ZW |
228 | echo "*** Configuration $machine is obsolete." >&2 |
229 | echo "*** Specify --enable-obsolete to build it anyway." >&2 | |
230 | echo "*** Support will be REMOVED in the next major release of GCC," >&2 | |
231 | echo "*** unless a maintainer comes forward." >&2 | |
232 | exit 1 | |
233 | fi;; | |
9340544b ZW |
234 | esac |
235 | ||
61ed06c3 | 236 | # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be |
ba1e6c0b JM |
237 | # updated in each machine entry. Also set default extra_headers for some |
238 | # machines. | |
61ed06c3 HPN |
239 | tm_p_file= |
240 | cpu_type=`echo $machine | sed 's/-.*$//'` | |
241 | case $machine in | |
242 | alpha*-*-*) | |
243 | cpu_type=alpha | |
244 | ;; | |
245 | strongarm*-*-*) | |
246 | cpu_type=arm | |
247 | ;; | |
248 | arm*-*-*) | |
249 | cpu_type=arm | |
250 | ;; | |
d19fb8e3 NC |
251 | xscale-*-*) |
252 | cpu_type=arm | |
253 | ;; | |
61ed06c3 HPN |
254 | i[34567]86-*-*) |
255 | cpu_type=i386 | |
6f1a6c5b | 256 | extra_headers="mmintrin.h xmmintrin.h" |
61ed06c3 | 257 | ;; |
14f73b5a JH |
258 | x86_64-*-*) |
259 | cpu_type=i386 | |
8559c8c0 | 260 | extra_headers="mmintrin.h xmmintrin.h" |
14f73b5a | 261 | ;; |
817e13c4 JM |
262 | ia64-*-*) |
263 | extra_headers=ia64intrin.h | |
264 | ;; | |
c21a2372 | 265 | hppa*-*-* | parisc*-*-*) |
61ed06c3 HPN |
266 | cpu_type=pa |
267 | ;; | |
2fd95d71 | 268 | m680[012]0-*-*) |
61ed06c3 | 269 | cpu_type=m68k |
ba1e6c0b JM |
270 | extra_headers=math-68881.h |
271 | ;; | |
272 | m68k-*-*) | |
273 | extra_headers=math-68881.h | |
61ed06c3 HPN |
274 | ;; |
275 | mips*-*-*) | |
276 | cpu_type=mips | |
277 | ;; | |
61ed06c3 HPN |
278 | powerpc*-*-*) |
279 | cpu_type=rs6000 | |
5fb4cf24 | 280 | extra_headers="ppc-asm.h altivec.h" |
61ed06c3 | 281 | ;; |
61ed06c3 HPN |
282 | sparc*-*-*) |
283 | cpu_type=sparc | |
284 | ;; | |
b4eb03fe JT |
285 | # Note the 'l'; we need to be able to match e.g. "shle" or "shl". |
286 | sh[123456789l]*-*-*) | |
fa5322fa AO |
287 | cpu_type=sh |
288 | ;; | |
61ed06c3 HPN |
289 | esac |
290 | ||
291 | tm_file=${cpu_type}/${cpu_type}.h | |
b6d7afec | 292 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h |
61ed06c3 | 293 | then |
b6d7afec ZW |
294 | tm_p_file=${cpu_type}/${cpu_type}-protos.h |
295 | fi | |
1c0ca89d ZW |
296 | extra_modes= |
297 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def | |
298 | then | |
299 | extra_modes=${cpu_type}/${cpu_type}-modes.def | |
300 | fi | |
e564e618 DB |
301 | |
302 | case $machine in | |
303 | x86_64-*-*) | |
304 | tm_file="i386/biarch64.h ${tm_file}" | |
305 | ;; | |
306 | esac | |
307 | ||
61ed06c3 HPN |
308 | # On a.out targets, we need to use collect2. |
309 | case $machine in | |
310 | *-*-*aout*) | |
311 | use_collect2=yes | |
312 | ;; | |
0e5a4ad8 | 313 | esac |
61ed06c3 | 314 | |
f982f805 | 315 | # Common parts for GNU/Linux, GNU/Hurd, OpenBSD, NetBSD, and FreeBSD systems. |
61ed06c3 HPN |
316 | case $machine in |
317 | *-*-linux*) | |
34f4f3a5 | 318 | xm_defines=POSIX |
61ed06c3 | 319 | ;; |
5eeab2e3 MK |
320 | *-*-gnu*) |
321 | # On the Hurd, the setup is just about the same on | |
322 | # each different CPU. The specific machines that we | |
323 | # support are matched above and just set $cpu_type. | |
b19a539e | 324 | xm_defines=POSIX |
f6e0c56c | 325 | tm_file="${cpu_type}/gnu.h" |
275b60d6 | 326 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" |
5eeab2e3 MK |
327 | # GNU always uses ELF. |
328 | elf=yes | |
329 | # GNU tools are the only tools. | |
330 | gnu_ld=yes | |
331 | gas=yes | |
332 | # These details are the same as for Linux. | |
5eeab2e3 | 333 | # But here we need a little extra magic. |
7b3a4df5 | 334 | tmake_file="t-slibgcc-elf-ver t-linux t-gnu" |
f6e0c56c | 335 | case $machine in |
83248d49 RM |
336 | alpha*) |
337 | tm_file="${cpu_type}/${cpu_type}.h alpha/elf.h alpha/linux.h alpha/linux-elf.h gnu.h ${tm_file}" | |
338 | ;; | |
f6e0c56c | 339 | i[34567]86-*-*) |
39ed301b | 340 | tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h gnu.h ${tm_file}" |
f6e0c56c | 341 | ;; |
f6e0c56c | 342 | esac |
5eeab2e3 | 343 | ;; |
61ed06c3 HPN |
344 | *-*-openbsd*) |
345 | tm_file=${cpu_type}/openbsd.h | |
f1cf4606 | 346 | tmake_file="t-libc-ok t-openbsd t-libgcc-pic" |
b19a539e | 347 | xm_defines=POSIX |
61ed06c3 HPN |
348 | if test x$enable_threads = xyes; then |
349 | thread_file='posix' | |
350 | tmake_file="${tmake_file} t-openbsd-thread" | |
351 | fi | |
352 | ;; | |
f982f805 | 353 | *-*-netbsd*) |
12345543 | 354 | tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd" |
f982f805 JT |
355 | xm_defines=POSIX |
356 | gas=yes | |
357 | gnu_ld=yes | |
358 | ;; | |
9e405fe5 LR |
359 | *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) |
360 | # This is the place-holder for the generic a.out configuration | |
361 | # of FreeBSD. No actual configuration resides here since | |
362 | # there was only ever a bare-bones ix86 configuration for | |
363 | # a.out and it exists solely in the machine-specific section. | |
364 | # This place-holder must exist to avoid dropping into | |
365 | # the generic ELF configuration of FreeBSD (i.e. it must be | |
366 | # ordered before that section). | |
367 | ;; | |
368 | *-*-freebsd*) | |
369 | # This is the generic ELF configuration of FreeBSD. Later | |
370 | # machine-specific sections may refine and add to this | |
371 | # configuration. | |
372 | # | |
373 | # Due to tm_file entry ordering issues that vary between cpu | |
374 | # architectures, we only define fbsd_tm_file to allow the | |
375 | # machine-specific section to dictate the final order of all | |
376 | # entries of tm_file with the minor exception that components | |
377 | # of the tm_file set here will always be of the form: | |
378 | # | |
b91da81f | 379 | # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h |
9e405fe5 LR |
380 | # |
381 | # The machine-specific section should not tamper with this | |
382 | # ordering but may order all other entries of tm_file as it | |
383 | # pleases around the provided core setting. | |
384 | gas=yes | |
385 | gnu_ld=yes | |
386 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
387 | case $machine in | |
388 | *-*-freebsd3 | *-*-freebsd[3].*) fbsd_tm_file="freebsd3.h";; | |
389 | *-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";; | |
390 | *-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";; | |
391 | *-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";; | |
392 | *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;; | |
393 | esac | |
bc3a44db | 394 | tmake_file="t-slibgcc-elf-ver t-freebsd" |
243a7070 | 395 | xmake_file=none |
9e405fe5 LR |
396 | xm_defines=POSIX |
397 | case x${enable_threads} in | |
398 | xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";; | |
399 | x | xyes | xpthreads | xposix) | |
400 | thread_file='posix' | |
401 | tmake_file="${tmake_file} t-freebsd-thread" | |
bc3a44db LR |
402 | # Before 5.0, FreeBSD can't bind shared libraries to -lc |
403 | # when "optionally" threaded via weak pthread_* checks. | |
404 | case $machine in | |
405 | *-*-freebsd[34] | *-*-freebsd[34].*) | |
406 | tmake_file="${tmake_file} t-slibgcc-nolc-override";; | |
407 | esac | |
9e405fe5 LR |
408 | ;; |
409 | *) echo 'Unknown thread configuration for FreeBSD'; exit 1;; | |
410 | esac | |
b7e0196a | 411 | fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h" |
9e405fe5 | 412 | ;; |
61ed06c3 HPN |
413 | esac |
414 | ||
415 | case $machine in | |
416 | # Support site-specific machine types. | |
417 | *local*) | |
61ed06c3 | 418 | rest=`echo $machine | sed -e "s/$cpu_type-//"` |
61ed06c3 | 419 | tm_file=${cpu_type}/$rest.h |
4dc0535b ZW |
420 | if test -f $srcdir/config/${cpu_type}/xm-$rest.h |
421 | then xm_file=${cpu_type}/xm-$rest.h | |
61ed06c3 | 422 | fi |
4dc0535b ZW |
423 | if test -f $srcdir/config/${cpu_type}/x-$rest |
424 | then xmake_file=${cpu_type}/x-$rest | |
425 | fi | |
426 | if test -f $srcdir/config/${cpu_type}/t-$rest | |
427 | then tmake_file=${cpu_type}/t-$rest | |
61ed06c3 HPN |
428 | fi |
429 | ;; | |
30102605 RH |
430 | alpha*-*-unicosmk*) |
431 | use_collect2=yes | |
432 | tm_file="${tm_file} alpha/unicosmk.h" | |
0e5a4ad8 | 433 | |
30102605 RH |
434 | # Don't include t-ieee for now because we don't support that yet |
435 | # tmake_file="alpha/t-ieee" | |
436 | tmake_file="alpha/t-unicosmk" | |
437 | ;; | |
61ed06c3 HPN |
438 | alpha-*-interix) |
439 | tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h" | |
440 | ||
441 | # GAS + IEEE_CONFORMANT+IEEE (no inexact); | |
442 | #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE" | |
443 | ||
444 | # GAS + IEEE_CONFORMANT | |
445 | target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT" | |
446 | ||
34f4f3a5 | 447 | xm_defines=POSIX |
5dd8a9b1 | 448 | xm_file="alpha/xm-alpha-interix.h" |
14455c64 | 449 | tmake_file="alpha/t-alpha t-interix alpha/t-interix alpha/t-ieee" |
61ed06c3 HPN |
450 | if test x$enable_threads = xyes ; then |
451 | thread_file='posix' | |
452 | fi | |
453 | if test x$stabs = xyes ; then | |
454 | tm_file="${tm_file} dbxcoff.h" | |
455 | fi | |
456 | #prefix='$$INTERIX_ROOT'/usr/contrib | |
457 | #local_prefix='$$INTERIX_ROOT'/usr/contrib | |
458 | ;; | |
77a403e4 RH |
459 | alpha*-*-linux*ecoff*) |
460 | echo "Configuration $machine no longer supported" 1>&2 | |
461 | exit 1 | |
462 | ;; | |
61ed06c3 HPN |
463 | alpha*-*-linux*libc1*) |
464 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" | |
465 | target_cpu_default="MASK_GAS" | |
cea3bd3e RH |
466 | tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtfm alpha/t-ieee" |
467 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" | |
61ed06c3 HPN |
468 | gas=yes gnu_ld=yes |
469 | if test x$enable_threads = xyes; then | |
470 | thread_file='posix' | |
471 | fi | |
472 | ;; | |
473 | alpha*-*-linux*) | |
474 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" | |
475 | target_cpu_default="MASK_GAS" | |
cea3bd3e RH |
476 | tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee" |
477 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" | |
61ed06c3 HPN |
478 | gas=yes gnu_ld=yes |
479 | if test x$enable_threads = xyes; then | |
480 | thread_file='posix' | |
481 | fi | |
482 | ;; | |
83248d49 RM |
483 | alpha*-*-gnu*) |
484 | target_cpu_default="MASK_GAS" | |
485 | tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee" | |
486 | ;; | |
61ed06c3 | 487 | alpha*-*-freebsd*) |
9e405fe5 | 488 | tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h" |
61ed06c3 | 489 | target_cpu_default="MASK_GAS" |
cea3bd3e RH |
490 | tmake_file="${tmake_file} alpha/t-crtfm alpha/t-alpha alpha/t-ieee" |
491 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" | |
61ed06c3 HPN |
492 | ;; |
493 | alpha*-*-netbsd*) | |
f982f805 | 494 | tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h" |
61ed06c3 | 495 | target_cpu_default="MASK_GAS" |
cea3bd3e | 496 | tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" |
61ed06c3 HPN |
497 | ;; |
498 | ||
499 | alpha*-*-openbsd*) | |
cf0005c6 | 500 | tm_file="${cpu_type}/${cpu_type}.h ${tm_file}" |
61ed06c3 HPN |
501 | # default x-alpha is only appropriate for dec-osf. |
502 | target_cpu_default="MASK_GAS" | |
503 | tmake_file="alpha/t-alpha alpha/t-ieee" | |
504 | ;; | |
0e5a4ad8 | 505 | |
c7bdf0a6 | 506 | alpha*-dec-osf[45]*) |
b19a539e | 507 | xm_defines=POSIX |
61ed06c3 HPN |
508 | if test x$stabs = xyes |
509 | then | |
510 | tm_file="${tm_file} dbx.h" | |
511 | fi | |
512 | if test x$gas != xyes | |
513 | then | |
514 | extra_passes="mips-tfile mips-tdump" | |
515 | fi | |
516 | use_collect2=yes | |
c7bdf0a6 ZW |
517 | tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf4" |
518 | tm_file="${tm_file} alpha/osf.h" | |
817e13c4 | 519 | extra_headers=va_list.h |
61ed06c3 | 520 | case $machine in |
61ed06c3 | 521 | *-*-osf4*) |
61ed06c3 HPN |
522 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
523 | # a broken tar, so we use cpio instead. | |
524 | install_headers_dir=install-headers-cpio | |
c7bdf0a6 ZW |
525 | # Set target_cpu_default except on 4.0a. |
526 | case $machine in | |
527 | *-*-osf4.0a) ;; | |
528 | *) target_cpu_default=MASK_SUPPORT_ARCH | |
529 | esac | |
61ed06c3 HPN |
530 | ;; |
531 | *-*-osf5*) | |
c7bdf0a6 | 532 | tm_file="${tm_file} alpha/osf5.h" |
61ed06c3 | 533 | target_cpu_default=MASK_SUPPORT_ARCH |
c7bdf0a6 | 534 | float_format=i128 |
61ed06c3 HPN |
535 | ;; |
536 | esac | |
537 | ;; | |
538 | alpha*-*-vxworks*) | |
b19a539e | 539 | xm_defines=POSIX |
61ed06c3 HPN |
540 | tm_file="${tm_file} dbx.h alpha/vxworks.h" |
541 | tmake_file="alpha/t-alpha alpha/t-ieee" | |
542 | if [ x$gas != xyes ] | |
543 | then | |
544 | extra_passes="mips-tfile mips-tdump" | |
545 | fi | |
546 | use_collect2=yes | |
547 | thread_file='vxworks' | |
548 | ;; | |
b6bfa876 DR |
549 | alpha64-dec-*vms*) |
550 | xm_defines=POSIX | |
cf0005c6 | 551 | tm_file="${tm_file} alpha/vms.h alpha/vms64.h" |
b6bfa876 DR |
552 | xm_file="alpha/xm-vms.h alpha/xm-vms64.h" |
553 | tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee" | |
554 | xmake_file=alpha/x-vms | |
555 | exeext=.exe | |
556 | # This removes the cpu type and manufacturer components and | |
557 | # replaces "." with "_" in the operating system version. | |
558 | case $host in *-*-*vms*) | |
559 | target_alias=`echo $host \ | |
560 | | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'` | |
561 | ;; | |
562 | esac | |
ff3aaf17 | 563 | install_headers_dir=install-headers-cp |
b6bfa876 DR |
564 | prefix=/gnu |
565 | local_prefix=/gnu | |
566 | ;; | |
ef057c45 | 567 | alpha*-dec-*vms*) |
b19a539e | 568 | xm_defines=POSIX |
cf0005c6 | 569 | tm_file="${tm_file} alpha/vms.h" |
4dc0535b | 570 | xm_file=alpha/xm-vms.h |
61ed06c3 | 571 | tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee" |
d133777f | 572 | xmake_file=alpha/x-vms |
ef057c45 DR |
573 | exeext=.exe |
574 | # This removes the cpu type and manufacturer components and | |
575 | # replaces "." with "_" in the operating system version. | |
576 | case $host in *-*-*vms*) | |
577 | target_alias=`echo $host \ | |
578 | | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'` | |
579 | ;; | |
580 | esac | |
ff3aaf17 | 581 | install_headers_dir=install-headers-cp |
ef057c45 DR |
582 | prefix=/gnu |
583 | local_prefix=/gnu | |
61ed06c3 | 584 | ;; |
2cc07db4 | 585 | arc-*-elf*) |
c40409ce | 586 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
2cc07db4 RH |
587 | extra_parts="crtinit.o crtfini.o" |
588 | ;; | |
61ed06c3 | 589 | arm-*-coff* | armel-*-coff*) |
5059254f | 590 | tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h" |
61ed06c3 HPN |
591 | tmake_file=arm/t-arm-coff |
592 | ;; | |
593 | arm-*-vxworks*) | |
5059254f | 594 | tm_file="arm/semi.h arm/aout.h arm/coff.h arm/vxarm.h arm/arm.h" |
61ed06c3 HPN |
595 | tmake_file=arm/t-arm-coff |
596 | thread_file='vxworks' | |
597 | ;; | |
61ed06c3 | 598 | arm-semi-aout | armel-semi-aout) |
5059254f | 599 | tm_file="arm/semi.h arm/aout.h arm/arm.h" |
61ed06c3 HPN |
600 | tmake_file=arm/t-semi |
601 | ;; | |
602 | arm-semi-aof | armel-semi-aof) | |
5059254f | 603 | tm_file="arm/semiaof.h arm/aof.h arm/arm.h" |
7857f134 | 604 | tmake_file=arm/t-semi |
61ed06c3 | 605 | ;; |
5742588d DB |
606 | arm*-*-freebsd*|strongarm*-*-freebsd*) |
607 | tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h" | |
608 | tmake_file="${tmake_file} arm/t-strongarm-elf" | |
609 | ;; | |
69474c3c JT |
610 | arm*-*-netbsdelf*) |
611 | echo "GCC does not yet support the ${machine} target"; exit 1 | |
612 | ;; | |
61ed06c3 | 613 | arm*-*-netbsd*) |
f982f805 | 614 | tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h" |
61ed06c3 | 615 | tmake_file="t-netbsd arm/t-netbsd" |
5721cd84 | 616 | use_collect2=yes |
61ed06c3 | 617 | ;; |
14879e76 | 618 | arm*-*-linux*) # ARM GNU/Linux with ELF |
c40409ce | 619 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h" |
7b3a4df5 | 620 | tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux" |
61ed06c3 HPN |
621 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
622 | gnu_ld=yes | |
623 | case x${enable_threads} in | |
624 | x | xyes | xpthreads | xposix) | |
625 | thread_file='posix' | |
626 | ;; | |
627 | esac | |
628 | ;; | |
629 | arm*-*-uclinux*) # ARM ucLinux | |
c40409ce | 630 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h arm/uclinux-elf.h" |
61ed06c3 HPN |
631 | tmake_file=arm/t-arm-elf |
632 | ;; | |
633 | arm*-*-aout) | |
f910b1bb | 634 | tm_file="arm/aout.h arm/arm.h" |
61ed06c3 HPN |
635 | tmake_file=arm/t-arm-aout |
636 | ;; | |
637 | arm*-*-ecos-elf) | |
c40409ce | 638 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h" |
61ed06c3 | 639 | tmake_file=arm/t-arm-elf |
0e5a4ad8 | 640 | ;; |
f22b4bc4 JS |
641 | arm*-*-rtems*) |
642 | xm_defines=POSIX | |
643 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/rtems-elf.h rtems.h" | |
644 | tmake_file="arm/t-arm-elf t-rtems" | |
645 | if test x$enable_threads = xyes; then | |
646 | thread_file='rtems' | |
647 | fi | |
648 | ;; | |
61ed06c3 | 649 | arm*-*-elf) |
c40409ce | 650 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h" |
61ed06c3 HPN |
651 | tmake_file=arm/t-arm-elf |
652 | ;; | |
653 | arm*-*-conix*) | |
c40409ce | 654 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/conix-elf.h arm/aout.h arm/arm.h" |
61ed06c3 HPN |
655 | tmake_file=arm/t-arm-elf |
656 | ;; | |
657 | arm*-*-oabi) | |
c40409ce | 658 | tm_file="arm/unknown-elf-oabi.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h" |
61ed06c3 HPN |
659 | tmake_file=arm/t-arm-elf |
660 | ;; | |
661 | arm-*-pe*) | |
f910b1bb | 662 | tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h arm/pe.h" |
61ed06c3 HPN |
663 | tmake_file=arm/t-pe |
664 | extra_objs="pe.o" | |
665 | ;; | |
666 | avr-*-*) | |
667 | ;; | |
bc98ef7f | 668 | c4x-*-rtems*) |
f22b4bc4 | 669 | xm_defines=POSIX |
bc98ef7f | 670 | tmake_file="c4x/t-c4x t-rtems" |
fdc76b09 | 671 | tm_file="c4x/c4x.h c4x/rtems.h rtems.h" |
bc98ef7f JS |
672 | if test x$enable_threads = xyes; then |
673 | thread_file='rtems' | |
674 | fi | |
51fabca5 NB |
675 | c_target_objs="c4x-c.o" |
676 | cxx_target_objs="c4x-c.o" | |
bc98ef7f | 677 | ;; |
61ed06c3 | 678 | c4x-*) |
61ed06c3 HPN |
679 | float_format=c4x |
680 | tmake_file=c4x/t-c4x | |
51fabca5 NB |
681 | c_target_objs="c4x-c.o" |
682 | cxx_target_objs="c4x-c.o" | |
61ed06c3 | 683 | ;; |
0b85d816 | 684 | cris-*-aout) |
32fb7c9d | 685 | tm_file="dbxelf.h ${tm_file} cris/aout.h" |
0b85d816 HPN |
686 | gas=yes |
687 | tmake_file="cris/t-cris cris/t-aout" | |
688 | ;; | |
689 | cris-*-elf | cris-*-none) | |
c40409ce | 690 | tm_file="dbxelf.h elfos.h ${tm_file}" |
0b85d816 HPN |
691 | tmake_file="cris/t-cris cris/t-elfmulti" |
692 | gas=yes | |
693 | ;; | |
694 | cris-*-linux*) | |
c40409ce | 695 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h" |
0b85d816 | 696 | tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux" |
275b60d6 | 697 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
0b85d816 HPN |
698 | case x${enable_threads} in |
699 | x | xyes | xpthreads | xposix) | |
700 | thread_file=posix | |
701 | ;; | |
702 | esac | |
703 | gas=yes | |
704 | ;; | |
61ed06c3 | 705 | d30v-*) |
c40409ce | 706 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
61ed06c3 HPN |
707 | float_format=i64 |
708 | ;; | |
709 | dsp16xx-*) | |
710 | ;; | |
61ed06c3 | 711 | fr30-*-elf) |
c40409ce | 712 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
61ed06c3 HPN |
713 | tmake_file=fr30/t-fr30 |
714 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
715 | ;; | |
bc98ef7f | 716 | h8300-*-rtems*) |
f22b4bc4 | 717 | xm_defines=POSIX |
bc98ef7f | 718 | tmake_file="h8300/t-h8300 t-rtems" |
f22b4bc4 | 719 | tm_file="h8300/h8300.h h8300/rtems.h rtems.h" |
bc98ef7f JS |
720 | if test x$enable_threads = xyes; then |
721 | thread_file='rtems' | |
722 | fi | |
723 | float_format=i32 | |
724 | ;; | |
9f5b774b R |
725 | h8300-*-elf*) |
726 | tmake_file="h8300/t-h8300 h8300/t-elf" | |
727 | tm_file="h8300/h8300.h h8300/elf.h" | |
728 | float_format=i32 | |
729 | ;; | |
61ed06c3 HPN |
730 | h8300-*-*) |
731 | float_format=i32 | |
732 | ;; | |
c21a2372 AM |
733 | hppa*64*-*-linux* | parisc*64*-*-linux*) |
734 | target_cpu_default="(MASK_PA_11 | MASK_PA_20)" | |
c40409ce | 735 | tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \ |
c21a2372 AM |
736 | pa/pa64-regs.h pa/pa-64.h pa/pa64-linux.h" |
737 | tmake_file=pa/t-linux64 | |
c21a2372 AM |
738 | gas=yes gnu_ld=yes |
739 | ;; | |
740 | hppa*-*-linux* | parisc*-*-linux*) | |
741 | target_cpu_default="MASK_PA_11" | |
c40409ce | 742 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \ |
c21a2372 | 743 | pa/pa32-regs.h pa/pa32-linux.h" |
7b3a4df5 | 744 | tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux" |
275b60d6 | 745 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
61ed06c3 HPN |
746 | gas=yes gnu_ld=yes |
747 | if test x$enable_threads = xyes; then | |
748 | thread_file='posix' | |
749 | fi | |
750 | ;; | |
751 | hppa*-*-openbsd*) | |
752 | target_cpu_default="MASK_PA_11" | |
14455c64 | 753 | tmake_file=pa/t-bsd |
61ed06c3 HPN |
754 | ;; |
755 | hppa1.1-*-pro*) | |
756 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" | |
c40409ce | 757 | tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h" |
14455c64 | 758 | tmake_file="pa/t-bsd pa/t-pro" |
ed9d6ff9 | 759 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
760 | ;; |
761 | hppa1.1-*-osf*) | |
762 | target_cpu_default="MASK_PA_11" | |
763 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" | |
14455c64 | 764 | tmake_file="pa/t-bsd pa/t-pa" |
ed9d6ff9 | 765 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
766 | use_collect2=yes |
767 | ;; | |
768 | hppa1.1-*-rtems*) | |
f22b4bc4 | 769 | xm_defines=POSIX |
61ed06c3 | 770 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" |
f22b4bc4 | 771 | tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h rtems.h" |
14455c64 | 772 | tmake_file="pa/t-bsd pa/t-pro" |
ed9d6ff9 | 773 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
774 | ;; |
775 | hppa1.0-*-osf*) | |
776 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" | |
14455c64 | 777 | tmake_file="pa/t-bsd pa/t-pa" |
ed9d6ff9 | 778 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
779 | use_collect2=yes |
780 | ;; | |
781 | hppa1.1-*-bsd*) | |
782 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h" | |
783 | target_cpu_default="MASK_PA_11" | |
14455c64 | 784 | tmake_file="pa/t-bsd pa/t-pa" |
ed9d6ff9 | 785 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
786 | use_collect2=yes |
787 | ;; | |
788 | hppa1.0-*-bsd*) | |
789 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h" | |
14455c64 | 790 | tmake_file="pa/t-bsd pa/t-pa" |
ed9d6ff9 | 791 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
792 | use_collect2=yes |
793 | ;; | |
794 | hppa1.0-*-hpux7*) | |
795 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h" | |
34f4f3a5 | 796 | xm_defines=POSIX |
14455c64 | 797 | tmake_file=pa/t-pa-hpux |
61ed06c3 HPN |
798 | install_headers_dir=install-headers-cpio |
799 | use_collect2=yes | |
800 | ;; | |
801 | hppa1.0-*-hpux8.0[0-2]*) | |
802 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" | |
34f4f3a5 | 803 | xm_defines=POSIX |
14455c64 | 804 | tmake_file=pa/t-pa-hpux |
c21a2372 | 805 | if test x$gas != xyes |
61ed06c3 | 806 | then |
61ed06c3 HPN |
807 | tm_file="pa/pa-oldas.h ${tm_file}" |
808 | fi | |
809 | install_headers_dir=install-headers-cpio | |
810 | use_collect2=yes | |
811 | ;; | |
812 | hppa1.1-*-hpux8.0[0-2]*) | |
813 | target_cpu_default="MASK_PA_11" | |
814 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" | |
34f4f3a5 | 815 | xm_defines=POSIX |
14455c64 | 816 | tmake_file=pa/t-pa-hpux |
c21a2372 | 817 | if test x$gas != xyes |
61ed06c3 | 818 | then |
61ed06c3 HPN |
819 | tm_file="pa/pa-oldas.h ${tm_file}" |
820 | fi | |
821 | install_headers_dir=install-headers-cpio | |
822 | use_collect2=yes | |
823 | ;; | |
824 | hppa1.1-*-hpux8*) | |
825 | target_cpu_default="MASK_PA_11" | |
826 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" | |
34f4f3a5 | 827 | xm_defines=POSIX |
14455c64 | 828 | tmake_file=pa/t-pa-hpux |
61ed06c3 HPN |
829 | install_headers_dir=install-headers-cpio |
830 | use_collect2=yes | |
831 | ;; | |
832 | hppa1.0-*-hpux8*) | |
833 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" | |
34f4f3a5 | 834 | xm_defines=POSIX |
14455c64 | 835 | tmake_file=pa/t-pa-hpux |
61ed06c3 HPN |
836 | install_headers_dir=install-headers-cpio |
837 | use_collect2=yes | |
838 | ;; | |
839 | hppa1.1-*-hpux10* | hppa2*-*-hpux10*) | |
840 | target_cpu_default="MASK_PA_11" | |
841 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" | |
842 | float_format=i128 | |
34f4f3a5 | 843 | xm_defines=POSIX |
e4761274 | 844 | tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib" |
ed9d6ff9 | 845 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
846 | if test x$enable_threads = x; then |
847 | enable_threads=$have_pthread_h | |
848 | fi | |
849 | case x${enable_threads} in | |
850 | xyes | xdce) | |
851 | tmake_file="${tmake_file} pa/t-dce-thr" | |
852 | ;; | |
853 | esac | |
854 | install_headers_dir=install-headers-cpio | |
855 | use_collect2=yes | |
856 | ;; | |
857 | hppa1.0-*-hpux10*) | |
858 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" | |
859 | float_format=i128 | |
34f4f3a5 | 860 | xm_defines=POSIX |
e4761274 | 861 | tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib" |
ed9d6ff9 | 862 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
863 | if test x$enable_threads = x; then |
864 | enable_threads=$have_pthread_h | |
865 | fi | |
866 | case x${enable_threads} in | |
867 | xyes | xdce) | |
868 | tmake_file="${tmake_file} pa/t-dce-thr" | |
869 | ;; | |
870 | esac | |
871 | install_headers_dir=install-headers-cpio | |
872 | use_collect2=yes | |
873 | ;; | |
874 | hppa*64*-*-hpux11*) | |
34f4f3a5 | 875 | xm_defines=POSIX |
38010927 | 876 | 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" |
61ed06c3 | 877 | float_format=i128 |
eab854f6 | 878 | tmake_file="pa/t-pa64 pa/t-pa-hpux" |
ed9d6ff9 | 879 | xmake_file="pa/x-ada" |
c81460e4 | 880 | target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)" |
61ed06c3 | 881 | |
61ed06c3 HPN |
882 | # if [ x$enable_threads = x ]; then |
883 | # enable_threads=$have_pthread_h | |
884 | # fi | |
885 | # if [ x$enable_threads = xyes ]; then | |
886 | # thread_file='dce' | |
887 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
888 | # fi | |
889 | install_headers_dir=install-headers-cpio | |
890 | use_collect2=yes | |
891 | ;; | |
892 | hppa1.1-*-hpux11* | hppa2*-*-hpux11*) | |
893 | target_cpu_default="MASK_PA_11" | |
894 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" | |
895 | float_format=i128 | |
34f4f3a5 | 896 | xm_defines=POSIX |
e4761274 | 897 | tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib" |
ed9d6ff9 | 898 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
899 | # if test x$enable_threads = x; then |
900 | # enable_threads=$have_pthread_h | |
901 | # fi | |
902 | # if test x$enable_threads = xyes; then | |
903 | # thread_file='dce' | |
904 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
905 | # fi | |
906 | install_headers_dir=install-headers-cpio | |
907 | use_collect2=yes | |
908 | ;; | |
909 | hppa1.0-*-hpux11*) | |
910 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" | |
911 | float_format=i128 | |
34f4f3a5 | 912 | xm_defines=POSIX |
e4761274 | 913 | tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib" |
ed9d6ff9 | 914 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
915 | # if test x$enable_threads = x; then |
916 | # enable_threads=$have_pthread_h | |
917 | # fi | |
918 | # if test x$enable_threads = xyes; then | |
919 | # thread_file='dce' | |
920 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
921 | # fi | |
922 | install_headers_dir=install-headers-cpio | |
923 | use_collect2=yes | |
924 | ;; | |
925 | hppa1.1-*-hpux* | hppa2*-*-hpux*) | |
926 | target_cpu_default="MASK_PA_11" | |
927 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" | |
34f4f3a5 | 928 | xm_defines=POSIX |
14455c64 | 929 | tmake_file=pa/t-pa-hpux |
61ed06c3 HPN |
930 | install_headers_dir=install-headers-cpio |
931 | use_collect2=yes | |
932 | ;; | |
933 | hppa1.0-*-hpux*) | |
934 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" | |
34f4f3a5 | 935 | xm_defines=POSIX |
14455c64 | 936 | tmake_file=pa/t-pa-hpux |
61ed06c3 HPN |
937 | install_headers_dir=install-headers-cpio |
938 | use_collect2=yes | |
939 | ;; | |
940 | hppa1.1-*-hiux* | hppa2*-*-hiux*) | |
941 | target_cpu_default="MASK_PA_11" | |
942 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" | |
34f4f3a5 | 943 | xm_defines=POSIX |
14455c64 | 944 | tmake_file=pa/t-pa-hpux |
61ed06c3 HPN |
945 | install_headers_dir=install-headers-cpio |
946 | use_collect2=yes | |
947 | ;; | |
948 | hppa1.0-*-hiux*) | |
949 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" | |
34f4f3a5 | 950 | xm_defines=POSIX |
14455c64 | 951 | tmake_file=pa/t-pa-hpux |
61ed06c3 HPN |
952 | install_headers_dir=install-headers-cpio |
953 | use_collect2=yes | |
954 | ;; | |
955 | hppa*-*-lites*) | |
c40409ce | 956 | tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h" |
61ed06c3 | 957 | target_cpu_default="MASK_PA_11" |
14455c64 | 958 | tmake_file="pa/t-bsd pa/t-pa" |
ed9d6ff9 | 959 | xmake_file="pa/x-ada" |
61ed06c3 HPN |
960 | use_collect2=yes |
961 | ;; | |
962 | hppa*-*-mpeix*) | |
963 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h" | |
5dd8a9b1 | 964 | tmake_file=pa/t-mpeix |
0e5a4ad8 | 965 | echo "You must use gas. Assuming it is already installed." |
c21a2372 | 966 | gas=yes |
61ed06c3 | 967 | install_headers_dir=install-headers-tar |
0e5a4ad8 EC |
968 | use_collect2=yes |
969 | ;; | |
61ed06c3 | 970 | i370-*-opened*) # IBM 360/370/390 Architecture |
34f4f3a5 | 971 | xm_defines='POSIX FATAL_EXIT_CODE=12' |
61ed06c3 | 972 | tm_file=i370/oe.h |
14455c64 | 973 | tmake_file="i370/t-oe i370/t-i370" |
51fabca5 NB |
974 | c_target_objs="i370-c.o" |
975 | cxx_target_objs="i370-c.o" | |
61ed06c3 HPN |
976 | ;; |
977 | i370-*-mvs*) | |
34f4f3a5 | 978 | xm_defines='POSIX FATAL_EXIT_CODE=12' |
61ed06c3 | 979 | tm_file=i370/mvs.h |
51fabca5 NB |
980 | tmake_file="i370/t-i370" |
981 | c_target_objs="i370-c.o" | |
982 | cxx_target_objs="i370-c.o" | |
61ed06c3 HPN |
983 | ;; |
984 | i370-*-linux*) | |
c40409ce | 985 | tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h ${tm_file}" |
7b3a4df5 | 986 | tmake_file="t-slibgcc-elf-ver t-linux" |
61ed06c3 | 987 | # broken_install=yes |
275b60d6 | 988 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
61ed06c3 HPN |
989 | # extra_parts="crtbegin.o crtend.o" |
990 | gnu_ld=yes | |
991 | gas=yes | |
992 | elf=yes | |
993 | if test x$enable_threads = xyes; then | |
994 | thread_file='posix' | |
995 | fi | |
996 | ;; | |
997 | i[34567]86-*-elf*) | |
34f4f3a5 | 998 | xm_defines=POSIX |
39ed301b | 999 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h" |
14455c64 | 1000 | tmake_file="i386/t-i386elf t-svr4" |
61ed06c3 | 1001 | ;; |
61ed06c3 | 1002 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 |
34f4f3a5 | 1003 | xm_defines="POSIX SMALL_ARG_MAX" |
61ed06c3 HPN |
1004 | if test x$stabs = xyes -a x$gas = xyes |
1005 | then | |
1006 | tm_file=i386/sysv4gdb.h | |
1007 | else | |
3d05b15f | 1008 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h" |
61ed06c3 HPN |
1009 | fi |
1010 | extra_parts="crtbegin.o crtend.o" | |
1011 | tmake_file=i386/t-crtpic | |
1012 | ;; | |
61ed06c3 | 1013 | i[34567]86-*-netware) # Intel 80386's running netware |
39ed301b | 1014 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h" |
61ed06c3 HPN |
1015 | tmake_file=i386/t-netware |
1016 | ;; | |
61ed06c3 | 1017 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) |
70305f2b RH |
1018 | if test x$gas = xyes |
1019 | then | |
1020 | tm_file="${tm_file} usegas.h" | |
1021 | fi | |
34f4f3a5 | 1022 | xm_defines="POSIX SMALL_ARG_MAX" |
39ed301b | 1023 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h" |
61ed06c3 HPN |
1024 | tmake_file=t-svr4 |
1025 | extra_parts="crtbegin.o crtend.o" | |
1026 | install_headers_dir=install-headers-cpio | |
1027 | ;; | |
c7bdf0a6 ZW |
1028 | i[34567]86-sequent-sysv*) # would otherwise be caught by i?86-*-sysv* |
1029 | echo "*** Configuration $machine not supported" 1>&2 | |
1030 | exit 1 | |
61ed06c3 HPN |
1031 | ;; |
1032 | i[34567]86-wrs-vxworks*) | |
3d05b15f | 1033 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/vxi386.h" |
61ed06c3 HPN |
1034 | thread_file='vxworks' |
1035 | ;; | |
1036 | i[34567]86-*-aout*) | |
39ed301b | 1037 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h" |
61ed06c3 HPN |
1038 | ;; |
1039 | i[34567]86-*-beoself* | i[34567]86-*-beos*) | |
34f4f3a5 | 1040 | xm_defines=POSIX |
61ed06c3 | 1041 | tmake_file='i386/t-beos i386/t-crtpic' |
39ed301b | 1042 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h" |
61ed06c3 HPN |
1043 | extra_parts='crtbegin.o crtend.o' |
1044 | ;; | |
c7bdf0a6 | 1045 | i[34567]86-*-freebsd2 | i[34567]86-*-freebsd2.* | i[34567]86-*-freebsd*aout*) |
39ed301b | 1046 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h" |
61ed06c3 HPN |
1047 | tmake_file=t-freebsd |
1048 | ;; | |
1049 | i[34567]86-*-freebsd*) | |
39ed301b | 1050 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h" |
e564e618 DB |
1051 | ;; |
1052 | x86_64-*-freebsd*) | |
39ed301b | 1053 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h" |
61ed06c3 | 1054 | ;; |
6ea0279f | 1055 | i[34567]86-*-netbsdelf*) |
39ed301b | 1056 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h" |
6ea0279f MG |
1057 | float_format=i386 |
1058 | ;; | |
61ed06c3 | 1059 | i[34567]86-*-netbsd*) |
39ed301b | 1060 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h netbsd.h netbsd-aout.h i386/netbsd.h" |
61ed06c3 | 1061 | tmake_file=t-netbsd |
5721cd84 | 1062 | use_collect2=yes |
61ed06c3 | 1063 | ;; |
7c884404 | 1064 | x86_64-*-netbsd*) |
39ed301b | 1065 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h" |
7c884404 JT |
1066 | float_format=i386 |
1067 | ;; | |
61ed06c3 | 1068 | i[34567]86-*-openbsd*) |
39ed301b | 1069 | tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h openbsd-oldgas.h openbsd.h ${tm_file}" |
f1cf4606 ME |
1070 | # needed to unconfuse gdb |
1071 | tmake_file="t-libc-ok t-openbsd i386/t-openbsd" | |
61ed06c3 HPN |
1072 | # we need collect2 until our bug is fixed... |
1073 | use_collect2=yes | |
1074 | ;; | |
1075 | i[34567]86-*-coff*) | |
39ed301b | 1076 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h" |
61ed06c3 | 1077 | ;; |
c7bdf0a6 ZW |
1078 | i[34567]86-*-linux*oldld*) # would otherwise be caught by i?86-*-linux* |
1079 | echo "*** Configuration $machine not supported" 1>&2 | |
1080 | exit 1 | |
61ed06c3 HPN |
1081 | ;; |
1082 | i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux | |
1083 | # with a.out format | |
61ed06c3 | 1084 | tmake_file="t-linux-aout i386/t-crtstuff" |
39ed301b | 1085 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h" |
61ed06c3 HPN |
1086 | gnu_ld=yes |
1087 | float_format=i386 | |
1088 | ;; | |
1089 | i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux | |
1090 | # with ELF format using the | |
1091 | # GNU/Linux C library 5 | |
39ed301b | 1092 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h" |
7b3a4df5 | 1093 | tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 i386/t-crtstuff" |
61ed06c3 HPN |
1094 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
1095 | gnu_ld=yes | |
1096 | float_format=i386 | |
1097 | if test x$enable_threads = xyes; then | |
1098 | thread_file='single' | |
1099 | fi | |
1100 | ;; | |
1101 | i[34567]86-*-linux*) # Intel 80386's running GNU/Linux | |
1102 | # with ELF format using glibc 2 | |
1103 | # aka GNU/Linux C library 6 | |
39ed301b | 1104 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h" |
7b3a4df5 | 1105 | tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff" |
275b60d6 | 1106 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
61ed06c3 HPN |
1107 | gnu_ld=yes |
1108 | float_format=i386 | |
1109 | if test x$enable_threads = xyes; then | |
1110 | thread_file='posix' | |
1111 | fi | |
1112 | ;; | |
14f73b5a | 1113 | x86_64-*-linux*) |
39ed301b | 1114 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \ |
32fb7c9d | 1115 | i386/x86-64.h i386/linux64.h" |
56547299 | 1116 | tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff i386/t-linux64" |
275b60d6 | 1117 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
14f73b5a JH |
1118 | gnu_ld=yes |
1119 | float_format=i386 | |
1120 | if test x$enable_threads = xyes; then | |
1121 | thread_file='posix' | |
1122 | fi | |
1123 | ;; | |
61ed06c3 HPN |
1124 | i[34567]86-*-gnu*) |
1125 | float_format=i386 | |
1126 | ;; | |
1127 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
1128 | echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead." | |
1129 | exit 1 | |
1130 | ;; | |
1131 | i[34567]86-pc-msdosdjgpp*) | |
1132 | xm_file=i386/xm-djgpp.h | |
39ed301b | 1133 | tm_file="dbxcoff.h ${tm_file} i386/djgpp.h" |
5dd8a9b1 | 1134 | tmake_file=i386/t-djgpp |
61ed06c3 HPN |
1135 | gnu_ld=yes |
1136 | gas=yes | |
1137 | exeext=.exe | |
1138 | float_format=none | |
1139 | case $host in *pc-msdosdjgpp*) | |
1140 | target_alias=djgpp | |
1141 | ;; | |
1142 | esac | |
1143 | ;; | |
1144 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) | |
39ed301b | 1145 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h i386/moss.h" |
61ed06c3 HPN |
1146 | tmake_file=t-libc-ok |
1147 | gnu_ld=yes | |
1148 | gas=yes | |
1149 | ;; | |
1150 | i[34567]86-*-lynxos*) | |
1151 | if test x$gas = xyes | |
1152 | then | |
39ed301b | 1153 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx.h i386/lynx.h" |
61ed06c3 | 1154 | else |
39ed301b | 1155 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h lynx-ng.h i386/lynx-ng.h" |
61ed06c3 | 1156 | fi |
61ed06c3 HPN |
1157 | ;; |
1158 | i[34567]86-*-mach*) | |
39ed301b | 1159 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/mach.h" |
61ed06c3 HPN |
1160 | # tmake_file=t-libc-ok |
1161 | use_collect2=yes | |
1162 | ;; | |
c7bdf0a6 ZW |
1163 | i[34567]86-go32-rtems* | i[34567]86-*-rtemscoff*) |
1164 | # would otherwise be caught by i?86-*-rtems* | |
1165 | echo "*** Configuration $machine not supported" 1>&2 | |
1166 | exit 1 | |
61ed06c3 | 1167 | ;; |
c7bdf0a6 | 1168 | i[34567]86-*-rtems*) |
f22b4bc4 | 1169 | xm_defines=POSIX |
39ed301b | 1170 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h" |
61ed06c3 HPN |
1171 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
1172 | tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems" | |
bc98ef7f JS |
1173 | if test x$enable_threads = xyes; then |
1174 | thread_file='rtems' | |
1175 | fi | |
61ed06c3 HPN |
1176 | ;; |
1177 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 | |
34f4f3a5 | 1178 | xm_defines=POSIX |
61ed06c3 | 1179 | install_headers_dir=install-headers-cpio |
39ed301b | 1180 | tm_file="${tm_file} i386/unix.h i386/att.h i386/sco5.h" |
61ed06c3 HPN |
1181 | if test x$gas = xyes |
1182 | then | |
70305f2b | 1183 | tm_file="usegas.h ${tm_file}" |
61ed06c3 HPN |
1184 | tmake_file=i386/t-sco5gas |
1185 | else | |
1186 | tmake_file=i386/t-sco5 | |
1187 | fi | |
61ed06c3 HPN |
1188 | extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o" |
1189 | ;; | |
61ed06c3 | 1190 | i[34567]86-*-solaris2*) |
34f4f3a5 | 1191 | xm_defines="POSIX SMALL_ARG_MAX" |
8433a25e | 1192 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h" |
14455c64 | 1193 | tmake_file="i386/t-sol2 t-svr4" |
7b3a4df5 RH |
1194 | if test x$gnu_ld = xyes; then |
1195 | tmake_file="$tmake_file t-slibgcc-elf-ver" | |
1196 | else | |
1197 | tmake_file="$tmake_file t-slibgcc-sld" | |
1198 | fi | |
61ed06c3 | 1199 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
61ed06c3 HPN |
1200 | if test x${enable_threads} = x; then |
1201 | enable_threads=$have_pthread_h | |
1202 | if test x${enable_threads} = x; then | |
1203 | enable_threads=$have_thread_h | |
1204 | fi | |
1205 | fi | |
1206 | if test x${enable_threads} = xyes; then | |
1207 | if test x${have_pthread_h} = xyes; then | |
1208 | thread_file='posix' | |
1209 | else | |
1210 | thread_file='solaris' | |
1211 | fi | |
1212 | fi | |
1213 | ;; | |
23a535c4 | 1214 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 |
34f4f3a5 | 1215 | xm_defines=POSIX |
39ed301b | 1216 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h" |
61ed06c3 HPN |
1217 | if test x$stabs = xyes |
1218 | then | |
1219 | tm_file="${tm_file} dbx.h" | |
1220 | fi | |
14455c64 | 1221 | tmake_file="i386/t-crtpic t-svr4" |
61ed06c3 HPN |
1222 | extra_parts="crtbegin.o crtend.o" |
1223 | if test x$enable_threads = xyes; then | |
1224 | thread_file='posix' | |
1225 | fi | |
1226 | ;; | |
1227 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 | |
34f4f3a5 | 1228 | xm_defines="POSIX SMALL_ARG_MAX" |
3d05b15f | 1229 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h" |
61ed06c3 HPN |
1230 | if test x$stabs = xyes |
1231 | then | |
1232 | tm_file="${tm_file} dbx.h" | |
1233 | fi | |
14455c64 | 1234 | tmake_file="i386/t-crtpic t-svr4" |
61ed06c3 HPN |
1235 | extra_parts="crtbegin.o crtend.o" |
1236 | ;; | |
1237 | i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit | |
34f4f3a5 | 1238 | xm_defines=POSIX |
39ed301b | 1239 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h i386/udk.h" |
14455c64 | 1240 | tmake_file="i386/t-crtpic i386/t-udk t-svr4" |
61ed06c3 HPN |
1241 | extra_parts="crtbegin.o crtend.o" |
1242 | install_headers_dir=install-headers-cpio | |
1243 | ;; | |
61ed06c3 | 1244 | i[34567]86-*-sysv*) # Intel 80386's running system V |
34f4f3a5 | 1245 | xm_defines=POSIX |
61ed06c3 HPN |
1246 | if test x$gas = xyes |
1247 | then | |
1248 | if test x$stabs = xyes | |
1249 | then | |
39ed301b | 1250 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h i386/svr3dbx.h" |
61ed06c3 | 1251 | tmake_file=i386/t-svr3dbx |
c7bdf0a6 | 1252 | extra_parts="svr3.ifile svr3z.ifile" |
61ed06c3 | 1253 | else |
39ed301b | 1254 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/svr3gas.h" |
61ed06c3 HPN |
1255 | extra_parts="crtbegin.o crtend.o" |
1256 | tmake_file=i386/t-crtstuff | |
1257 | fi | |
1258 | else | |
39ed301b | 1259 | tm_file="${tm_file} svr3.h i386/unix.h i386/att.h i386/sysv3.h" |
61ed06c3 HPN |
1260 | extra_parts="crtbegin.o crtend.o" |
1261 | tmake_file=i386/t-crtstuff | |
1262 | fi | |
1263 | tmake_file="$tmake_file i386/t-crtpic" | |
1264 | ;; | |
1265 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
39ed301b DB |
1266 | xm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/xm-vsta.h" |
1267 | tm_file="${tm_file} i386/vsta.h" | |
61ed06c3 HPN |
1268 | ;; |
1269 | i[34567]86-*-win32) | |
b19a539e | 1270 | xm_defines=POSIX |
4dc0535b | 1271 | xm_file=i386/xm-cygwin.h |
60a8ab96 | 1272 | float_format=i386 |
61ed06c3 | 1273 | tmake_file=i386/t-cygwin |
39ed301b | 1274 | tm_file="${tm_file} i386/win32.h" |
61ed06c3 HPN |
1275 | extra_objs=winnt.o |
1276 | if test x$enable_threads = xyes; then | |
1277 | thread_file='win32' | |
1278 | fi | |
1279 | exeext=.exe | |
1280 | ;; | |
1281 | i[34567]86-*-pe | i[34567]86-*-cygwin*) | |
b19a539e | 1282 | xm_defines=POSIX |
4dc0535b | 1283 | xm_file=i386/xm-cygwin.h |
60a8ab96 | 1284 | float_format=i386 |
61ed06c3 HPN |
1285 | tmake_file=i386/t-cygwin |
1286 | tm_file=i386/cygwin.h | |
61ed06c3 HPN |
1287 | extra_objs=winnt.o |
1288 | if test x$enable_threads = xyes; then | |
1289 | thread_file='win32' | |
1290 | fi | |
1291 | exeext=.exe | |
1292 | ;; | |
1293 | i[34567]86-*-mingw32*) | |
1294 | tm_file=i386/mingw32.h | |
60a8ab96 | 1295 | float_format=i386 |
34f4f3a5 | 1296 | xm_defines=POSIX |
4dc0535b | 1297 | xm_file=i386/xm-mingw32.h |
61ed06c3 HPN |
1298 | tmake_file="i386/t-cygwin i386/t-mingw32" |
1299 | extra_objs=winnt.o | |
61ed06c3 HPN |
1300 | if test x$enable_threads = xyes; then |
1301 | thread_file='win32' | |
1302 | fi | |
1303 | exeext=.exe | |
1304 | case $machine in | |
09eaf5a5 | 1305 | *mingw32crt*) |
61ed06c3 HPN |
1306 | tm_file="${tm_file} i386/crtdll.h" |
1307 | ;; | |
09eaf5a5 DS |
1308 | *minwg32msv* | *mingw32*) |
1309 | ;; | |
61ed06c3 HPN |
1310 | esac |
1311 | ;; | |
1312 | i[34567]86-*-uwin*) | |
39ed301b | 1313 | tm_file="i386/cygwin.h i386/uwin.h" |
61ed06c3 HPN |
1314 | tmake_file="i386/t-cygwin i386/t-uwin" |
1315 | extra_objs=winnt.o | |
61ed06c3 HPN |
1316 | if test x$enable_threads = xyes; then |
1317 | thread_file='win32' | |
1318 | fi | |
1319 | exeext=.exe | |
1320 | ;; | |
04cec1a7 | 1321 | i[34567]86-*-interix3*) |
39ed301b | 1322 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h i386/i386-interix3.h interix.h interix3.h" |
5dd8a9b1 | 1323 | xm_file="i386/xm-i386-interix.h" |
04cec1a7 | 1324 | xm_defines=POSIX |
5dd8a9b1 | 1325 | tmake_file="t-interix i386/t-interix" |
04cec1a7 | 1326 | extra_objs=interix.o |
5dd8a9b1 | 1327 | xmake_file="x-interix" |
04cec1a7 DR |
1328 | if test x$enable_threads = xyes ; then |
1329 | thread_file='posix' | |
1330 | fi | |
1331 | if test x$stabs = xyes ; then | |
1332 | tm_file="${tm_file} dbxcoff.h" | |
1333 | fi | |
1334 | ;; | |
61ed06c3 | 1335 | i[34567]86-*-interix*) |
39ed301b | 1336 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h" |
5dd8a9b1 | 1337 | xm_file="i386/xm-i386-interix.h" |
34f4f3a5 | 1338 | xm_defines=POSIX |
14455c64 | 1339 | tmake_file="t-interix i386/t-interix" |
61ed06c3 | 1340 | extra_objs=interix.o |
61ed06c3 HPN |
1341 | if test x$enable_threads = xyes ; then |
1342 | thread_file='posix' | |
1343 | fi | |
1344 | if test x$stabs = xyes ; then | |
1345 | tm_file="${tm_file} dbxcoff.h" | |
1346 | fi | |
1347 | ;; | |
61ed06c3 HPN |
1348 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) |
1349 | tm_file="${tm_file} i960/vx960.h" | |
1350 | tmake_file=i960/t-vxworks960 | |
1351 | use_collect2=yes | |
1352 | thread_file='vxworks' | |
43fabf7d JW |
1353 | c_target_objs="i960-c.o" |
1354 | cxx_target_objs="i960-c.o" | |
61ed06c3 HPN |
1355 | ;; |
1356 | i960-wrs-vxworks5* | i960-wrs-vxworks) | |
1357 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" | |
1358 | tmake_file=i960/t-vxworks960 | |
1359 | use_collect2=yes | |
1360 | thread_file='vxworks' | |
43fabf7d JW |
1361 | c_target_objs="i960-c.o" |
1362 | cxx_target_objs="i960-c.o" | |
61ed06c3 HPN |
1363 | ;; |
1364 | i960-wrs-vxworks*) | |
1365 | tm_file="${tm_file} i960/vx960.h" | |
1366 | tmake_file=i960/t-vxworks960 | |
1367 | use_collect2=yes | |
1368 | thread_file='vxworks' | |
43fabf7d JW |
1369 | c_target_objs="i960-c.o" |
1370 | cxx_target_objs="i960-c.o" | |
61ed06c3 HPN |
1371 | ;; |
1372 | i960-*-coff*) | |
1373 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
1374 | tmake_file=i960/t-960bare | |
43fabf7d JW |
1375 | c_target_objs="i960-c.o" |
1376 | cxx_target_objs="i960-c.o" | |
61ed06c3 HPN |
1377 | ;; |
1378 | i960-*-rtems) | |
f22b4bc4 | 1379 | xm_defines=POSIX |
61ed06c3 | 1380 | tmake_file="i960/t-960bare t-rtems" |
f22b4bc4 | 1381 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h" |
bc98ef7f JS |
1382 | if test x$enable_threads = xyes; then |
1383 | thread_file='rtems' | |
1384 | fi | |
43fabf7d JW |
1385 | c_target_objs="i960-c.o" |
1386 | cxx_target_objs="i960-c.o" | |
61ed06c3 HPN |
1387 | ;; |
1388 | i960-*-*) # Default i960 environment. | |
1389 | use_collect2=yes | |
5f37d07c | 1390 | tmake_file=i960/t-960bare |
43fabf7d JW |
1391 | c_target_objs="i960-c.o" |
1392 | cxx_target_objs="i960-c.o" | |
61ed06c3 | 1393 | ;; |
c177db4b | 1394 | ia64*-*-aix*) |
c40409ce | 1395 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/aix.h" |
c177db4b TW |
1396 | tmake_file="ia64/t-ia64 ia64/t-aix" |
1397 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" | |
1398 | ;; | |
61ed06c3 | 1399 | ia64*-*-elf*) |
c40409ce | 1400 | tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/elf.h" |
61ed06c3 HPN |
1401 | tmake_file="ia64/t-ia64" |
1402 | target_cpu_default="0" | |
1403 | if test x$gas = xyes | |
1404 | then | |
1405 | target_cpu_default="${target_cpu_default}|MASK_GNU_AS" | |
1406 | fi | |
1407 | if test x$gnu_ld = xyes | |
1408 | then | |
1409 | target_cpu_default="${target_cpu_default}|MASK_GNU_LD" | |
1410 | fi | |
1411 | float_format=i386 | |
1412 | ;; | |
243a7070 | 1413 | ia64*-*-freebsd*) |
fee42cc1 | 1414 | tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h" |
243a7070 DB |
1415 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" |
1416 | tmake_file="${tmake_file} ia64/t-ia64" | |
1417 | float_format=i386 | |
1418 | ;; | |
61ed06c3 | 1419 | ia64*-*-linux*) |
c40409ce | 1420 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h" |
7b3a4df5 | 1421 | tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc" |
61ed06c3 HPN |
1422 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" |
1423 | if test x$enable_threads = xyes; then | |
1424 | thread_file='posix' | |
1425 | fi | |
1426 | float_format=i386 | |
1427 | ;; | |
7e5b9908 | 1428 | ia64*-*-hpux*) |
c40409ce | 1429 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h" |
23c108af | 1430 | tmake_file="ia64/t-ia64 ia64/t-hpux" |
7e5b9908 SE |
1431 | target_cpu_default="MASK_GNU_AS" |
1432 | if test x$enable_threads = xyes; then | |
1433 | thread_file='posix' | |
1434 | fi | |
1435 | float_format=i386 | |
1436 | ;; | |
2f9021d3 DC |
1437 | ip2k-*-elf) |
1438 | ;; | |
61ed06c3 | 1439 | m32r-*-elf*) |
c40409ce | 1440 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
61ed06c3 HPN |
1441 | extra_parts="crtinit.o crtfini.o" |
1442 | ;; | |
1443 | # m68hc11 and m68hc12 share the same machine description. | |
1444 | m68hc11-*-*|m6811-*-*) | |
c40409ce | 1445 | tm_file="dbxelf.h elfos.h m68hc11/m68hc11.h" |
61ed06c3 HPN |
1446 | tm_p_file="m68hc11/m68hc11-protos.h" |
1447 | md_file="m68hc11/m68hc11.md" | |
1448 | out_file="m68hc11/m68hc11.c" | |
1449 | tmake_file="m68hc11/t-m68hc11-gas" | |
1450 | ;; | |
1451 | m68hc12-*-*|m6812-*-*) | |
c40409ce | 1452 | tm_file="m68hc11/m68hc12.h dbxelf.h elfos.h m68hc11/m68hc11.h" |
61ed06c3 | 1453 | tm_p_file="m68hc11/m68hc11-protos.h" |
61ed06c3 HPN |
1454 | md_file="m68hc11/m68hc11.md" |
1455 | out_file="m68hc11/m68hc11.c" | |
1456 | tmake_file="m68hc11/t-m68hc11-gas" | |
1457 | ;; | |
61ed06c3 HPN |
1458 | m68000-hp-bsd*) # HP 9000/200 running BSD |
1459 | tm_file=m68k/hp2bsd.h | |
61ed06c3 | 1460 | use_collect2=yes |
61ed06c3 HPN |
1461 | ;; |
1462 | m68000-hp-hpux*) # HP 9000 series 300 | |
34f4f3a5 | 1463 | xm_defines=POSIX |
61ed06c3 HPN |
1464 | if test x$gas = xyes |
1465 | then | |
61ed06c3 HPN |
1466 | tm_file=m68k/hp310g.h |
1467 | else | |
61ed06c3 HPN |
1468 | tm_file=m68k/hp310.h |
1469 | fi | |
14455c64 | 1470 | tmake_file=m68k/t-hp320 |
61ed06c3 HPN |
1471 | install_headers_dir=install-headers-cpio |
1472 | use_collect2=yes | |
61ed06c3 HPN |
1473 | ;; |
1474 | m68000-sun-sunos3*) | |
1475 | tm_file=m68k/sun2.h | |
1476 | use_collect2=yes | |
61ed06c3 HPN |
1477 | ;; |
1478 | m68000-sun-sunos4*) | |
1479 | tm_file=m68k/sun2o4.h | |
1480 | use_collect2=yes | |
61ed06c3 HPN |
1481 | ;; |
1482 | m68000-att-sysv*) | |
34f4f3a5 | 1483 | xm_defines=POSIX |
61ed06c3 HPN |
1484 | if test x$gas = xyes |
1485 | then | |
1486 | tm_file=m68k/3b1g.h | |
1487 | else | |
1488 | tm_file=m68k/3b1.h | |
1489 | fi | |
1490 | use_collect2=yes | |
61ed06c3 | 1491 | ;; |
61ed06c3 HPN |
1492 | m68k-atari-sysv4*) # Atari variant of V.4. |
1493 | tm_file=m68k/atari.h | |
34f4f3a5 | 1494 | xm_defines=POSIX |
61ed06c3 HPN |
1495 | tmake_file=t-svr4 |
1496 | extra_parts="crtbegin.o crtend.o" | |
61ed06c3 HPN |
1497 | float_format=m68k |
1498 | ;; | |
c7bdf0a6 ZW |
1499 | m68k-apollo-sysv* | m68k-bull-sysv*) |
1500 | # can otherwise be caught by m68k-*-sysv4* | |
1501 | echo "*** Configuration $machine not supported" 1>&2 | |
1502 | exit 1 | |
1503 | ;; | |
61ed06c3 HPN |
1504 | m68k-motorola-sysv*) |
1505 | tm_file=m68k/mot3300.h | |
34f4f3a5 | 1506 | xm_defines=POSIX |
61ed06c3 HPN |
1507 | if test x$gas = xyes |
1508 | then | |
61ed06c3 HPN |
1509 | if test x$gnu_ld = xyes |
1510 | then | |
1511 | tmake_file=m68k/t-mot3300-gald | |
1512 | else | |
1513 | tmake_file=m68k/t-mot3300-gas | |
1514 | use_collect2=yes | |
1515 | fi | |
1516 | else | |
61ed06c3 HPN |
1517 | if test x$gnu_ld = xyes |
1518 | then | |
1519 | tmake_file=m68k/t-mot3300-gld | |
1520 | else | |
1521 | tmake_file=m68k/t-mot3300 | |
1522 | use_collect2=yes | |
1523 | fi | |
1524 | fi | |
1525 | gdb_needs_out_file_path=yes | |
1526 | extra_parts="crt0.o mcrt0.o" | |
61ed06c3 HPN |
1527 | float_format=m68k |
1528 | ;; | |
1529 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
1530 | tm_file=m68k/tower-as.h | |
34f4f3a5 | 1531 | xm_defines=POSIX |
61ed06c3 | 1532 | extra_parts="crtbegin.o crtend.o" |
61ed06c3 HPN |
1533 | ;; |
1534 | m68k-plexus-sysv*) | |
1535 | tm_file=m68k/plexus.h | |
34f4f3a5 | 1536 | xm_defines=POSIX |
61ed06c3 | 1537 | use_collect2=yes |
61ed06c3 HPN |
1538 | ;; |
1539 | m68k-tti-*) | |
1540 | tm_file=m68k/pbb.h | |
34f4f3a5 | 1541 | xm_defines=POSIX |
61ed06c3 HPN |
1542 | ;; |
1543 | m68k-crds-unos*) | |
34f4f3a5 | 1544 | xm_defines=POSIX |
61ed06c3 HPN |
1545 | tm_file=m68k/crds.h |
1546 | use_collect2=yes | |
61ed06c3 HPN |
1547 | ;; |
1548 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
1549 | tm_file=m68k/amix.h | |
34f4f3a5 | 1550 | xm_defines=POSIX |
61ed06c3 HPN |
1551 | tmake_file=t-svr4 |
1552 | extra_parts="crtbegin.o crtend.o" | |
61ed06c3 HPN |
1553 | float_format=m68k |
1554 | ;; | |
1555 | m68k-ccur-rtu) | |
1556 | tm_file=m68k/ccur-GAS.h | |
61ed06c3 HPN |
1557 | use_collect2=yes |
1558 | float_format=m68k | |
1559 | ;; | |
1560 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
1561 | tm_file=m68k/hp3bsd44.h | |
61ed06c3 | 1562 | use_collect2=yes |
61ed06c3 HPN |
1563 | float_format=m68k |
1564 | ;; | |
1565 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
1566 | tm_file=m68k/hp3bsd.h | |
1567 | use_collect2=yes | |
61ed06c3 HPN |
1568 | float_format=m68k |
1569 | ;; | |
61ed06c3 | 1570 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. |
34f4f3a5 | 1571 | xm_defines=POSIX |
61ed06c3 HPN |
1572 | if test x$gas = xyes |
1573 | then | |
1574 | xmake_file=m68k/x-hp320g | |
1575 | tm_file=m68k/hp320g.h | |
1576 | else | |
1577 | xmake_file=m68k/x-hp320 | |
1578 | tm_file=m68k/hpux7.h | |
1579 | fi | |
1580 | install_headers_dir=install-headers-cpio | |
1581 | use_collect2=yes | |
61ed06c3 HPN |
1582 | float_format=m68k |
1583 | ;; | |
1584 | m68k-hp-hpux*) # HP 9000 series 300 | |
34f4f3a5 | 1585 | xm_defines=POSIX |
61ed06c3 HPN |
1586 | if test x$gas = xyes |
1587 | then | |
1588 | xmake_file=m68k/x-hp320g | |
1589 | tm_file=m68k/hp320g.h | |
1590 | else | |
1591 | xmake_file=m68k/x-hp320 | |
1592 | tm_file=m68k/hp320.h | |
1593 | fi | |
1594 | install_headers_dir=install-headers-cpio | |
1595 | use_collect2=yes | |
61ed06c3 HPN |
1596 | float_format=m68k |
1597 | ;; | |
1598 | m68k-sun-mach*) | |
1599 | tm_file=m68k/sun3mach.h | |
1600 | use_collect2=yes | |
61ed06c3 HPN |
1601 | float_format=m68k |
1602 | ;; | |
61ed06c3 HPN |
1603 | m68k-sun-sunos3*) |
1604 | if test x$with_fp = xno | |
1605 | then | |
1606 | tm_file=m68k/sun3n3.h | |
1607 | else | |
1608 | tm_file=m68k/sun3o3.h | |
1609 | float_format=m68k | |
1610 | fi | |
1611 | use_collect2=yes | |
61ed06c3 HPN |
1612 | ;; |
1613 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
1614 | if test x$with_fp = xno | |
1615 | then | |
1616 | tm_file=m68k/sun3n.h | |
1617 | else | |
1618 | tm_file=m68k/sun3.h | |
1619 | float_format=m68k | |
1620 | fi | |
1621 | use_collect2=yes | |
61ed06c3 HPN |
1622 | ;; |
1623 | m68k-wrs-vxworks*) | |
1624 | tm_file=m68k/vxm68k.h | |
1625 | tmake_file=m68k/t-vxworks68 | |
61ed06c3 HPN |
1626 | thread_file='vxworks' |
1627 | float_format=m68k | |
1628 | ;; | |
1629 | m68k-*-aout*) | |
1630 | tmake_file=m68k/t-m68kbare | |
1631 | tm_file="m68k/m68k-aout.h libgloss.h" | |
61ed06c3 HPN |
1632 | float_format=m68k |
1633 | ;; | |
1634 | m68k-*-coff*) | |
1635 | tmake_file=m68k/t-m68kbare | |
1636 | tm_file="m68k/m68k-coff.h dbx.h" | |
61ed06c3 HPN |
1637 | float_format=m68k |
1638 | ;; | |
1639 | m68020-*-elf* | m68k-*-elf*) | |
91171315 | 1640 | tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h" |
34f4f3a5 | 1641 | xm_defines=POSIX |
61ed06c3 | 1642 | tmake_file=m68k/t-m68kelf |
bb8602be | 1643 | extra_parts="crtbegin.o crtend.o" |
61ed06c3 | 1644 | ;; |
2fd95d71 JT |
1645 | m68010-*-netbsdelf* | m68k*-*-netbsdelf*) |
1646 | tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h" | |
1647 | case $machine in | |
1648 | m68010*) | |
1649 | target_cpu_default="0" | |
1650 | ;; | |
1651 | *) | |
1652 | target_cpu_default="MASK_68020|MASK_68881|MASK_BITFIELD" | |
1653 | ;; | |
1654 | esac | |
1655 | float_format=m68k | |
1656 | ;; | |
61ed06c3 HPN |
1657 | m68k*-*-netbsd*) |
1658 | tm_file=m68k/netbsd.h | |
1659 | tmake_file=t-netbsd | |
1660 | float_format=m68k | |
5721cd84 | 1661 | use_collect2=yes |
61ed06c3 HPN |
1662 | ;; |
1663 | m68k*-*-openbsd*) | |
f1cf4606 ME |
1664 | # needed to unconfuse gdb |
1665 | tmake_file="t-libc-ok t-openbsd m68k/t-openbsd" | |
61ed06c3 HPN |
1666 | float_format=m68k |
1667 | # we need collect2 until our bug is fixed... | |
1668 | use_collect2=yes | |
1669 | ;; | |
61ed06c3 HPN |
1670 | m68k-*-sysv4*) # Motorola m68k's running system V.4 |
1671 | tm_file=m68k/m68kv4.h | |
34f4f3a5 | 1672 | xm_defines=POSIX |
61ed06c3 HPN |
1673 | tmake_file=t-svr4 |
1674 | extra_parts="crtbegin.o crtend.o" | |
61ed06c3 HPN |
1675 | float_format=m68k |
1676 | ;; | |
1677 | m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux | |
1678 | # with a.out format | |
61ed06c3 HPN |
1679 | tm_file=m68k/linux-aout.h |
1680 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
61ed06c3 HPN |
1681 | float_format=m68k |
1682 | gnu_ld=yes | |
1683 | ;; | |
1684 | m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux | |
1685 | # with ELF format using the | |
1686 | # GNU/Linux C library 5 | |
61ed06c3 | 1687 | tm_file=m68k/linux.h |
7b3a4df5 | 1688 | tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 m68k/t-linux" |
61ed06c3 | 1689 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
61ed06c3 HPN |
1690 | float_format=m68k |
1691 | gnu_ld=yes | |
1692 | ;; | |
1693 | m68k-*-linux*) # Motorola m68k's running GNU/Linux | |
1694 | # with ELF format using glibc 2 | |
1695 | # aka the GNU/Linux C library 6. | |
61ed06c3 | 1696 | tm_file=m68k/linux.h |
7b3a4df5 | 1697 | tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux" |
61ed06c3 | 1698 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
61ed06c3 HPN |
1699 | float_format=m68k |
1700 | gnu_ld=yes | |
1701 | if test x$enable_threads = xyes; then | |
1702 | thread_file='posix' | |
1703 | fi | |
1704 | ;; | |
1705 | m68k-*-psos*) | |
1706 | tmake_file=m68k/t-m68kbare | |
1707 | tm_file=m68k/m68k-psos.h | |
61ed06c3 HPN |
1708 | float_format=m68k |
1709 | ;; | |
c7bdf0a6 ZW |
1710 | m68k-*-rtemscoff*) # would otherwise be caught by m68k-*-rtems* |
1711 | echo "*** Configuration $machine not supported" 1>&2 | |
1712 | exit 1 | |
61ed06c3 | 1713 | ;; |
c7bdf0a6 | 1714 | m68k-*-rtems*) |
f22b4bc4 | 1715 | xm_defines=POSIX |
61ed06c3 | 1716 | tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff" |
f22b4bc4 | 1717 | tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h" |
61ed06c3 | 1718 | float_format=m68k |
bb8602be | 1719 | extra_parts="crtbegin.o crtend.o" |
bc98ef7f JS |
1720 | if test x$enable_threads = xyes; then |
1721 | thread_file='rtems' | |
1722 | fi | |
61ed06c3 | 1723 | ;; |
61ed06c3 | 1724 | m88k-*-aout*) |
34f4f3a5 | 1725 | xm_defines=POSIX |
61ed06c3 HPN |
1726 | tm_file=m88k/m88k-aout.h |
1727 | ;; | |
61ed06c3 HPN |
1728 | m88k-*-openbsd*) |
1729 | tmake_file="${tmake_file} m88k/t-luna-gas" | |
1730 | tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}" | |
61ed06c3 | 1731 | ;; |
61ed06c3 | 1732 | m88k-*-sysv4*) |
34f4f3a5 | 1733 | xm_defines=POSIX |
c40409ce | 1734 | tm_file="dbxelf.h elfos.h svr4.h m88k/sysv4.h" |
61ed06c3 | 1735 | extra_parts="crtbegin.o crtend.o" |
61ed06c3 HPN |
1736 | tmake_file=m88k/t-sysv4 |
1737 | ;; | |
1738 | mcore-*-elf) | |
c40409ce | 1739 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h" |
61ed06c3 HPN |
1740 | tmake_file=mcore/t-mcore |
1741 | ;; | |
1742 | mcore-*-pe*) | |
1743 | tm_file=mcore/mcore-pe.h | |
1744 | tmake_file=mcore/t-mcore-pe | |
1745 | ;; | |
1746 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 | |
1747 | if test "x$gnu_ld" = xyes | |
1748 | then | |
1749 | tm_file="mips/iris6.h mips/iris6gld.h" | |
1750 | else | |
1751 | tm_file=mips/iris6.h | |
1752 | fi | |
14455c64 | 1753 | tmake_file="mips/t-iris mips/t-iris6" |
34f4f3a5 | 1754 | xm_defines=POSIX |
61ed06c3 HPN |
1755 | # if test x$enable_threads = xyes; then |
1756 | # thread_file='irix' | |
1757 | # fi | |
1758 | ;; | |
1759 | mips-wrs-vxworks) | |
1760 | tm_file="mips/elf.h mips/vxworks.h" | |
1761 | tmake_file=mips/t-ecoff | |
1762 | gas=yes | |
1763 | gnu_ld=yes | |
1764 | extra_parts="crtbegin.o crtend.o" | |
1765 | thread_file='vxworks' | |
1766 | ;; | |
1767 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 | |
1768 | tm_file="mips/iris6.h mips/cross64.h" | |
34f4f3a5 | 1769 | xm_defines=POSIX |
84c041a1 | 1770 | xm_file=mips/xm-iris5.h |
14455c64 | 1771 | tmake_file="mips/t-iris mips/t-cross64" |
61ed06c3 HPN |
1772 | # See comment in mips/iris[56].h files. |
1773 | use_collect2=yes | |
1774 | # if test x$enable_threads = xyes; then | |
1775 | # thread_file='irix' | |
1776 | # fi | |
1777 | ;; | |
1778 | mips-sni-sysv4) | |
1779 | if test x$gas = xyes | |
1780 | then | |
1781 | if test x$stabs = xyes | |
1782 | then | |
1783 | tm_file=mips/iris5gdb.h | |
1784 | else | |
1785 | tm_file="mips/sni-svr4.h mips/sni-gas.h" | |
1786 | fi | |
1787 | else | |
1788 | tm_file=mips/sni-svr4.h | |
1789 | fi | |
34f4f3a5 | 1790 | xm_defines=POSIX |
61ed06c3 HPN |
1791 | if test x$gnu_ld != xyes |
1792 | then | |
1793 | use_collect2=yes | |
1794 | fi | |
1795 | ;; | |
1796 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
1797 | if test x$gas = xyes | |
1798 | then | |
1799 | tm_file="mips/iris5.h mips/iris5gas.h" | |
1800 | if test x$stabs = xyes | |
1801 | then | |
1802 | tm_file="${tm_file} dbx.h" | |
1803 | fi | |
1804 | else | |
1805 | tm_file=mips/iris5.h | |
1806 | fi | |
14455c64 | 1807 | tmake_file=mips/t-iris |
34f4f3a5 | 1808 | xm_defines=POSIX |
84c041a1 | 1809 | xm_file=mips/xm-iris5.h |
61ed06c3 | 1810 | # mips-tfile doesn't work yet |
61ed06c3 HPN |
1811 | # See comment in mips/iris5.h file. |
1812 | use_collect2=yes | |
1813 | # if test x$enable_threads = xyes; then | |
1814 | # thread_file='irix' | |
1815 | # fi | |
1816 | ;; | |
c7bdf0a6 ZW |
1817 | mips-sgi-*) # would otherwise be caught by mips-*-elf* |
1818 | echo "*** Configuration $machine not supported" 1>&2 | |
1819 | exit 1 | |
61ed06c3 | 1820 | ;; |
f982f805 JT |
1821 | mips*-*-netbsd*) # NetBSD/mips, either endian. |
1822 | tm_file="elfos.h mips/netbsd.h" | |
cd24b8a4 | 1823 | tmake_file="${tmake_file} mips/t-netbsd" |
61ed06c3 HPN |
1824 | ;; |
1825 | mips*-*-linux*) # Linux MIPS, either endian. | |
c40409ce | 1826 | tm_file="dbxelf.h elfos.h svr4.h linux.h mips/linux.h" |
61ed06c3 | 1827 | case $machine in |
009da785 EC |
1828 | mipsisa32*-*) |
1829 | tm_file="$tm_file mips/isa32-linux.h" | |
1830 | target_cpu_default="MASK_SOFT_FLOAT" | |
1831 | ;; | |
1832 | esac | |
5f083b72 | 1833 | tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux" |
275b60d6 | 1834 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
61ed06c3 HPN |
1835 | gnu_ld=yes |
1836 | gas=yes | |
1837 | if test x$enable_threads = xyes; then | |
1838 | thread_file='posix' | |
1839 | fi | |
1840 | ;; | |
1841 | mips*el-*-openbsd*) # mips little endian | |
1842 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
1843 | ;; | |
1844 | mips*-*-openbsd*) # mips big endian | |
1845 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
1846 | tm_file="mips/openbsd-be.h ${tm_file}" | |
1847 | ;; | |
74826b0f | 1848 | mips-*-ecoff* | mipsel-*-ecoff*) |
61ed06c3 HPN |
1849 | tm_file="gofast.h mips/ecoff.h" |
1850 | if test x$stabs = xyes; then | |
1851 | tm_file="${tm_file} dbx.h" | |
1852 | fi | |
1853 | tmake_file=mips/t-ecoff | |
1854 | ;; | |
74826b0f | 1855 | mipsisa32-*-elf* | mipsisa32el-*-elf*) |
0e5a4ad8 EC |
1856 | tm_file="mips/isa3264.h mips/abi64.h" |
1857 | tmake_file=mips/t-isa3264 | |
3054eeed | 1858 | target_cpu_default="MASK_SOFT_FLOAT" |
0e5a4ad8 | 1859 | ;; |
5c44e275 CD |
1860 | mipsisa64-*-elf* | mipsisa64el-*-elf*) |
1861 | tm_file="mips/isa3264.h mips/abi64.h" | |
1862 | tmake_file=mips/t-isa3264 | |
1863 | target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS" | |
1864 | tm_defines="MIPS_ISA_DEFAULT=64" | |
1865 | ;; | |
74826b0f | 1866 | mips-*-elf* | mipsel-*-elf*) |
61ed06c3 HPN |
1867 | tm_file="mips/elf.h" |
1868 | tmake_file=mips/t-elf | |
1869 | ;; | |
74826b0f | 1870 | mips64-*-elf* | mips64el-*-elf*) |
61ed06c3 HPN |
1871 | tm_file="mips/elf64.h" |
1872 | tmake_file=mips/t-elf | |
1873 | ;; | |
74826b0f | 1874 | mips64orion-*-elf* | mips64orionel-*-elf*) |
61ed06c3 HPN |
1875 | tm_file="mips/elforion.h mips/elf64.h" |
1876 | tmake_file=mips/t-elf | |
1877 | ;; | |
1878 | mips64orion-*-rtems*) | |
f22b4bc4 JS |
1879 | xm_defines=POSIX |
1880 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h rtems.h" | |
61ed06c3 | 1881 | tmake_file="mips/t-elf t-rtems" |
bc98ef7f JS |
1882 | if test x$enable_threads = xyes; then |
1883 | thread_file='rtems' | |
1884 | fi | |
1885 | ;; | |
1886 | mips*-*-rtems*) | |
f22b4bc4 JS |
1887 | xm_defines=POSIX |
1888 | tm_file="mips/elf.h mips/rtems.h rtems.h" | |
bc98ef7f JS |
1889 | tmake_file="mips/t-elf t-rtems" |
1890 | if test x$enable_threads = xyes; then | |
1891 | thread_file='rtems' | |
1892 | fi | |
61ed06c3 | 1893 | ;; |
74826b0f | 1894 | mipstx39-*-elf* | mipstx39el-*-elf*) |
61ed06c3 HPN |
1895 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h" |
1896 | tmake_file=mips/t-r3900 | |
1897 | ;; | |
bcf684c7 HPN |
1898 | mmix-knuth-mmixware) |
1899 | ;; | |
61ed06c3 HPN |
1900 | mn10200-*-*) |
1901 | float_format=i32 | |
c40409ce | 1902 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
61ed06c3 HPN |
1903 | if test x$stabs = xyes |
1904 | then | |
1905 | tm_file="${tm_file} dbx.h" | |
1906 | fi | |
1907 | use_collect2=no | |
1908 | ;; | |
1909 | mn10300-*-*) | |
c40409ce | 1910 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
61ed06c3 HPN |
1911 | if test x$stabs = xyes |
1912 | then | |
1913 | tm_file="${tm_file} dbx.h" | |
1914 | fi | |
1915 | use_collect2=no | |
1916 | ;; | |
69474c3c JT |
1917 | ns32k-*-netbsdelf*) |
1918 | echo "GCC does not yet support the ${machine} target"; exit 1 | |
1919 | ;; | |
61ed06c3 | 1920 | ns32k-*-netbsd*) |
c8eb9785 | 1921 | tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h" |
61ed06c3 HPN |
1922 | # On NetBSD, the headers are already okay, except for math.h. |
1923 | tmake_file=t-netbsd | |
5721cd84 | 1924 | use_collect2=yes |
61ed06c3 HPN |
1925 | ;; |
1926 | pdp11-*-bsd) | |
1927 | tm_file="${tm_file} pdp11/2bsd.h" | |
1928 | ;; | |
1929 | pdp11-*-*) | |
1930 | ;; | |
1931 | avr-*-*) | |
1932 | ;; | |
1933 | ns32k-*-openbsd*) | |
1934 | # Nothing special | |
1935 | ;; | |
61ed06c3 HPN |
1936 | romp-*-openbsd*) |
1937 | # Nothing special | |
1938 | ;; | |
1939 | powerpc-*-openbsd*) | |
e1b71de9 | 1940 | tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd" |
ba1e6c0b | 1941 | extra_headers= |
61ed06c3 | 1942 | ;; |
2bfcf297 | 1943 | powerpc64-*-linux*) |
c40409ce | 1944 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux64.h" |
2bfcf297 | 1945 | out_file=rs6000/rs6000.c |
2a78758b | 1946 | tmake_file="rs6000/t-rs6000 t-slibgcc-elf-ver t-linux rs6000/t-linux64" |
2bfcf297 | 1947 | ;; |
ddb28441 RM |
1948 | powerpc64-*-gnu*) |
1949 | tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux64.h rs6000/gnu.h" | |
1950 | out_file=rs6000/rs6000.c | |
2a78758b | 1951 | tmake_file="rs6000/t-rs6000 t-slibgcc-elf-ver t-gnu rs6000/t-linux64" |
ddb28441 | 1952 | ;; |
61ed06c3 | 1953 | powerpc-*-beos*) |
2bfcf297 | 1954 | tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h" |
34f4f3a5 | 1955 | xm_defines=POSIX |
61ed06c3 | 1956 | tmake_file=rs6000/t-beos |
ba1e6c0b | 1957 | extra_headers= |
61ed06c3 | 1958 | ;; |
18922061 | 1959 | powerpc-*-darwin*) |
ee890fe2 SS |
1960 | tm_file="${tm_file} darwin.h rs6000/darwin.h" |
1961 | tm_p_file="${tm_p_file} darwin-protos.h" | |
1962 | tmake_file=rs6000/t-darwin | |
ee890fe2 | 1963 | extra_objs="darwin.o" |
aaab35ae | 1964 | config_gtfiles="${config_gtfiles} \$(srcdir)/config/darwin.c" |
0168a849 SS |
1965 | c_target_objs="darwin-c.o" |
1966 | cxx_target_objs="darwin-c.o" | |
ee890fe2 SS |
1967 | # Darwin linker does collect2 functionality |
1968 | use_collect2=no | |
5fb4cf24 | 1969 | extra_headers=altivec.h |
18922061 | 1970 | ;; |
b91da81f | 1971 | powerpc*-*-freebsd*) |
c40409ce | 1972 | tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h" |
b91da81f DB |
1973 | xm_file=rs6000/xm-sysv4.h |
1974 | out_file=rs6000/rs6000.c | |
f3465a44 | 1975 | tmake_file="rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" |
b91da81f | 1976 | ;; |
61ed06c3 | 1977 | powerpc-*-sysv*) |
c40409ce | 1978 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h" |
34f4f3a5 | 1979 | xm_defines=POSIX |
61ed06c3 | 1980 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
61ed06c3 | 1981 | ;; |
edf1b3f3 | 1982 | powerpc-*-netbsd*) |
c40409ce | 1983 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h" |
edf1b3f3 | 1984 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
edf1b3f3 | 1985 | ;; |
8da6d80e | 1986 | powerpc-*-chorusos*) |
34f4f3a5 | 1987 | xm_defines=POSIX |
c40409ce | 1988 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h" |
8da6d80e | 1989 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
8da6d80e CC |
1990 | case x${enable_threads} in |
1991 | xyes | xpthreads | xposix) | |
1992 | thread_file='posix' | |
1993 | ;; | |
1994 | esac | |
1995 | ;; | |
61ed06c3 | 1996 | powerpc-*-eabiaix*) |
34f4f3a5 | 1997 | xm_defines=POSIX |
c40409ce | 1998 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h" |
61ed06c3 | 1999 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 | 2000 | ;; |
cf6ede82 AH |
2001 | powerpc-*-eabisimaltivec*) |
2002 | xm_defines=POSIX | |
2003 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h rs6000/eabialtivec.h" | |
3b7d0e98 | 2004 | tmake_file="rs6000/t-ppcendian rs6000/t-ppccomm" |
cf6ede82 | 2005 | ;; |
61ed06c3 | 2006 | powerpc-*-eabisim*) |
34f4f3a5 | 2007 | xm_defines=POSIX |
c40409ce | 2008 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h" |
61ed06c3 | 2009 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 HPN |
2010 | ;; |
2011 | powerpc-*-elf*) | |
34f4f3a5 | 2012 | xm_defines=POSIX |
c40409ce | 2013 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h" |
61ed06c3 | 2014 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 | 2015 | ;; |
10baca6b AH |
2016 | powerpc-*-eabialtivec*) |
2017 | xm_defines=POSIX | |
2018 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h" | |
3b7d0e98 | 2019 | tmake_file="rs6000/t-ppcendian rs6000/t-ppccomm" |
10baca6b | 2020 | ;; |
61ed06c3 | 2021 | powerpc-*-eabi*) |
34f4f3a5 | 2022 | xm_defines=POSIX |
c40409ce | 2023 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h" |
61ed06c3 | 2024 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 HPN |
2025 | ;; |
2026 | powerpc-*-rtems*) | |
34f4f3a5 | 2027 | xm_defines=POSIX |
f22b4bc4 | 2028 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h" |
61ed06c3 | 2029 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" |
bc98ef7f JS |
2030 | if test x$enable_threads = xyes; then |
2031 | thread_file='rtems' | |
2032 | fi | |
61ed06c3 HPN |
2033 | ;; |
2034 | powerpc-*-linux*libc1) | |
c40409ce | 2035 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h" |
61ed06c3 | 2036 | out_file=rs6000/rs6000.c |
7b3a4df5 | 2037 | tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux t-linux-gnulibc1 rs6000/t-ppccomm" |
61ed06c3 HPN |
2038 | if test x$enable_threads = xyes; then |
2039 | thread_file='posix' | |
2040 | fi | |
2041 | ;; | |
10baca6b AH |
2042 | powerpc-*-linux-gnualtivec*) |
2043 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h" | |
2044 | out_file=rs6000/rs6000.c | |
2045 | tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm" | |
10baca6b AH |
2046 | if test x$enable_threads = xyes; then |
2047 | thread_file='posix' | |
2048 | fi | |
2049 | ;; | |
61ed06c3 | 2050 | powerpc-*-linux*) |
c40409ce | 2051 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h" |
61ed06c3 | 2052 | out_file=rs6000/rs6000.c |
7b3a4df5 | 2053 | tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm" |
61ed06c3 HPN |
2054 | if test x$enable_threads = xyes; then |
2055 | thread_file='posix' | |
2056 | fi | |
2057 | ;; | |
ddb28441 RM |
2058 | powerpc-*-gnu-gnualtivec*) |
2059 | tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h" | |
2060 | out_file=rs6000/rs6000.c | |
2061 | tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm" | |
2062 | if test x$enable_threads = xyes; then | |
2063 | thread_file='posix' | |
2064 | fi | |
2065 | ;; | |
2066 | powerpc-*-gnu*) | |
2067 | tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/gnu.h" | |
2068 | out_file=rs6000/rs6000.c | |
2069 | tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-gnu rs6000/t-ppccomm" | |
2070 | if test x$enable_threads = xyes; then | |
2071 | thread_file='posix' | |
2072 | fi | |
2073 | ;; | |
61ed06c3 | 2074 | powerpc-wrs-vxworks*) |
34f4f3a5 | 2075 | xm_defines=POSIX |
c40409ce | 2076 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/vxppc.h" |
61ed06c3 | 2077 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 HPN |
2078 | thread_file='vxworks' |
2079 | ;; | |
bce0deb2 MM |
2080 | powerpc-wrs-windiss*) |
2081 | xm_defines=POSIX | |
2082 | tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h" | |
2083 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2084 | thread_file="" | |
2085 | ;; | |
61ed06c3 | 2086 | powerpcle-wrs-vxworks*) |
34f4f3a5 | 2087 | xm_defines=POSIX |
c40409ce | 2088 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h" |
61ed06c3 | 2089 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 HPN |
2090 | thread_file='vxworks' |
2091 | ;; | |
2092 | powerpcle-*-sysv*) | |
c40409ce | 2093 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h" |
34f4f3a5 | 2094 | xm_defines=POSIX |
61ed06c3 | 2095 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
61ed06c3 HPN |
2096 | ;; |
2097 | powerpcle-*-elf*) | |
34f4f3a5 | 2098 | xm_defines=POSIX |
c40409ce | 2099 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h" |
61ed06c3 | 2100 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 HPN |
2101 | ;; |
2102 | powerpcle-*-eabisim*) | |
34f4f3a5 | 2103 | xm_defines=POSIX |
c40409ce | 2104 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h" |
61ed06c3 | 2105 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 HPN |
2106 | ;; |
2107 | powerpcle-*-eabi*) | |
34f4f3a5 | 2108 | xm_defines=POSIX |
c40409ce | 2109 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h" |
61ed06c3 | 2110 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 | 2111 | ;; |
61ed06c3 | 2112 | rs6000-ibm-aix3.[01]*) |
34f4f3a5 | 2113 | xm_defines=POSIX |
2bfcf297 | 2114 | tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h rs6000/xcoff.h" |
61ed06c3 HPN |
2115 | float_format=none |
2116 | use_collect2=yes | |
2117 | ;; | |
2118 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
34f4f3a5 | 2119 | xm_defines=POSIX |
2bfcf297 | 2120 | tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h rs6000/xcoff.h" |
db009825 | 2121 | tmake_file=rs6000/t-newas |
61ed06c3 HPN |
2122 | float_format=none |
2123 | use_collect2=yes | |
ba1e6c0b | 2124 | extra_headers= |
61ed06c3 HPN |
2125 | ;; |
2126 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) | |
34f4f3a5 | 2127 | xm_defines=POSIX |
2bfcf297 | 2128 | tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h" |
db009825 | 2129 | tmake_file=rs6000/t-newas |
61ed06c3 HPN |
2130 | float_format=none |
2131 | use_collect2=yes | |
ba1e6c0b | 2132 | extra_headers= |
61ed06c3 HPN |
2133 | ;; |
2134 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) | |
34f4f3a5 | 2135 | xm_defines=POSIX |
2bfcf297 | 2136 | tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h" |
61ed06c3 | 2137 | tmake_file=rs6000/t-aix43 |
61ed06c3 HPN |
2138 | float_format=none |
2139 | use_collect2=yes | |
2140 | thread_file='aix' | |
ba1e6c0b | 2141 | extra_headers= |
61ed06c3 HPN |
2142 | ;; |
2143 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
34f4f3a5 | 2144 | xm_defines=POSIX |
2bfcf297 | 2145 | tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h" |
61ed06c3 | 2146 | tmake_file=rs6000/t-aix43 |
61ed06c3 HPN |
2147 | float_format=none |
2148 | use_collect2=yes | |
2149 | thread_file='aix' | |
ba1e6c0b | 2150 | extra_headers= |
61ed06c3 HPN |
2151 | ;; |
2152 | rs6000-ibm-aix*) | |
34f4f3a5 | 2153 | xm_defines=POSIX |
2bfcf297 | 2154 | tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h" |
61ed06c3 HPN |
2155 | float_format=none |
2156 | use_collect2=yes | |
2157 | ;; | |
2158 | rs6000-bull-bosx) | |
34f4f3a5 | 2159 | xm_defines=POSIX |
2bfcf297 | 2160 | tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h" |
61ed06c3 HPN |
2161 | float_format=none |
2162 | use_collect2=yes | |
2163 | ;; | |
2164 | rs6000-*-mach*) | |
32fb7c9d | 2165 | tm_file="${tm_file} rs6000/mach.h" |
34f4f3a5 | 2166 | xm_defines=POSIX |
61ed06c3 HPN |
2167 | use_collect2=yes |
2168 | ;; | |
2169 | rs6000-*-lynxos*) | |
b91da81f | 2170 | tm_file="lynx.h rs6000/lynx.h" |
61ed06c3 | 2171 | tmake_file=rs6000/t-rs6000 |
61ed06c3 HPN |
2172 | use_collect2=yes |
2173 | ;; | |
0e5a4ad8 | 2174 | s390-*-linux*) |
c40409ce | 2175 | tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h" |
050e4ca2 | 2176 | tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux" |
275b60d6 | 2177 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" |
9628a767 HP |
2178 | if test x$enable_threads = xyes; then |
2179 | thread_file='posix' | |
2180 | fi | |
2181 | ;; | |
0e5a4ad8 | 2182 | s390x-*-linux*) |
58d10f89 | 2183 | tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h" |
70eeb10b UW |
2184 | tm_p_file=s390/s390-protos.h |
2185 | md_file=s390/s390.md | |
1c0ca89d | 2186 | extra_modes=s390/s390-modes.def |
70eeb10b | 2187 | out_file=s390/s390.c |
e8487c04 | 2188 | tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux s390/t-linux64" |
275b60d6 | 2189 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" |
9628a767 HP |
2190 | if test x$enable_threads = xyes; then |
2191 | thread_file='posix' | |
2192 | fi | |
2193 | ;; | |
8bc6e101 | 2194 | sh-*-elf* | sh[2346l]*-*-elf*) |
61ed06c3 | 2195 | tmake_file="sh/t-sh sh/t-elf" |
dbf87f32 R |
2196 | case $machine in |
2197 | shl* | sh64l*) | |
2198 | tm_file="sh/little.h ${tm_file}" | |
2199 | tmake_file="${tmake_file} sh/t-le" | |
2200 | ;; | |
2201 | esac | |
f1a58d92 | 2202 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h" |
61ed06c3 | 2203 | float_format=sh |
dbf87f32 R |
2204 | case $machine in |
2205 | sh64*) | |
2206 | tmake_file="${tmake_file} sh/t-sh64" | |
2207 | tm_file="${tm_file} sh/sh64.h" | |
2208 | extra_headers="shmedia.h ushmedia.h sshmedia.h" | |
2209 | # Not strictly necessary to check this, but a good idea anyway. | |
2210 | if test $machine = $target; then | |
2211 | target_requires_64bit_host_wide_int=yes | |
2212 | fi | |
2213 | ;; | |
8bc6e101 R |
2214 | sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;; |
2215 | sh4*) target_cpu_default="SELECT_SH4" ;; | |
2216 | sh3e*) target_cpu_default="SELECT_SH3E" ;; | |
2217 | sh3*) target_cpu_default="SELECT_SH3" ;; | |
2218 | sh2*) target_cpu_default="SELECT_SH2" ;; | |
2219 | esac | |
2220 | case $machine in | |
2221 | sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;; | |
dbf87f32 | 2222 | esac |
fa5322fa | 2223 | ;; |
61ed06c3 | 2224 | sh-*-rtemself*) |
f22b4bc4 | 2225 | xm_defines=POSIX |
61ed06c3 | 2226 | tmake_file="sh/t-sh sh/t-elf t-rtems" |
f1a58d92 | 2227 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h sh/rtemself.h rtems.h" |
61ed06c3 | 2228 | float_format=sh |
bc98ef7f JS |
2229 | if test x$enable_threads = xyes; then |
2230 | thread_file='rtems' | |
2231 | fi | |
61ed06c3 HPN |
2232 | ;; |
2233 | sh-*-rtems*) | |
f22b4bc4 | 2234 | xm_defines=POSIX |
61ed06c3 | 2235 | tmake_file="sh/t-sh t-rtems" |
f1a58d92 | 2236 | tm_file="${tm_file} sh/coff.h sh/rtems.h rtems.h" |
61ed06c3 | 2237 | float_format=sh |
bc98ef7f JS |
2238 | if test x$enable_threads = xyes; then |
2239 | thread_file='rtems' | |
2240 | fi | |
61ed06c3 | 2241 | ;; |
8bc6e101 R |
2242 | sh-*-linux* | sh[2346lbe]*-*-linux*) |
2243 | tmake_file="sh/t-sh sh/t-elf sh/t-linux" | |
2244 | case $machine in | |
2245 | sh*be-*-* | sh*eb-*-*) ;; | |
2246 | *) | |
2247 | tm_file="sh/little.h ${tm_file}" | |
2248 | tmake_file="${tmake_file} sh/t-le" | |
2249 | ;; | |
2250 | esac | |
2251 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h" | |
61ed06c3 HPN |
2252 | gas=yes gnu_ld=yes |
2253 | if test x$enable_threads = xyes; then | |
2254 | thread_file='posix' | |
2255 | fi | |
2256 | float_format=sh | |
8bc6e101 R |
2257 | case $machine in |
2258 | sh64*) | |
2259 | tmake_file="${tmake_file} sh/t-sh64" | |
2260 | tm_file="${tm_file} sh/sh64.h" | |
2261 | extra_headers="shmedia.h ushmedia.h sshmedia.h" | |
2262 | # Not strictly necessary to check this, but a good idea anyway. | |
2263 | if test $machine = $target; then | |
2264 | target_requires_64bit_host_wide_int=yes | |
2265 | fi | |
2266 | ;; | |
2267 | sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;; | |
2268 | sh4*) target_cpu_default="SELECT_SH4" ;; | |
2269 | sh3e[lb]e*) target_cpu_default="SELECT_SH3E" ;; | |
2270 | sh3e[lb]*) target_cpu_default="SELECT_SH3" ;; | |
2271 | sh3e*) target_cpu_default="SELECT_SH3E" ;; | |
2272 | sh3*) target_cpu_default="SELECT_SH3" ;; | |
2273 | sh2*) target_cpu_default="SELECT_SH2" ;; | |
2274 | esac | |
2275 | case $machine in | |
2276 | sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;; | |
2277 | esac | |
61ed06c3 | 2278 | ;; |
b655555e JT |
2279 | sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ |
2280 | sh64-*-netbsd* | sh64l*-*-netbsd*) | |
b4eb03fe JT |
2281 | tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h netbsd.h netbsd-elf.h sh/netbsd-elf.h" |
2282 | tmake_file="${tmake_file} sh/t-sh sh/t-elf" | |
2283 | case $machine in | |
2284 | sh*l*-*) | |
2285 | tm_file="sh/little.h ${tm_file}" | |
2286 | tmake_file="${tmake_file} sh/t-le" | |
2287 | ;; | |
2288 | *) | |
2289 | tmake_file="${tmake_file} sh/t-be" | |
2290 | ;; | |
2291 | esac | |
b655555e JT |
2292 | case $machine in |
2293 | sh5*-*) | |
2294 | # SHmedia, 32-bit ABI | |
2295 | target_cpu_default="SH5_BIT|SH4_BIT|SH3E_BIT" | |
3fa1b448 | 2296 | tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5" |
b655555e JT |
2297 | ;; |
2298 | sh64*-*) | |
2299 | # SHmedia, 64-bit ABI | |
2300 | target_cpu_default="SH5_BIT|SH4_BIT" | |
3fa1b448 | 2301 | tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5 sh/t-netbsd-sh5-64" |
b655555e JT |
2302 | ;; |
2303 | *) | |
2304 | # SH3, software floating point | |
2305 | target_cpu_default="SH1_BIT|SH2_BIT|SH3_BIT" | |
2306 | tmake_file="${tmake_file} sh/t-netbsd" | |
2307 | ;; | |
2308 | esac | |
b4eb03fe JT |
2309 | float_format=sh |
2310 | ;; | |
61ed06c3 | 2311 | sh-*-*) |
f1a58d92 | 2312 | tm_file="${tm_file} sh/coff.h" |
61ed06c3 HPN |
2313 | float_format=sh |
2314 | ;; | |
2315 | sparc-tti-*) | |
0f658c83 | 2316 | tm_file="${tm_file} sparc/pbd.h" |
34f4f3a5 | 2317 | xm_defines=POSIX |
61ed06c3 | 2318 | ;; |
e428b937 | 2319 | sparc64-wrs-vxworks*) |
8433a25e | 2320 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/biarch64.h gofast.h sparc/vxsparc64.h" |
2d69e3cb | 2321 | tmake_file="sparc/t-vxsparc64 sparc/t-crtfm" |
e428b937 RK |
2322 | use_collect2=yes |
2323 | ;; | |
61ed06c3 | 2324 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) |
0f658c83 | 2325 | tm_file="${tm_file} aoutos.h sparc/aout.h gofast.h sparc/vxsparc.h" |
61ed06c3 HPN |
2326 | tmake_file=sparc/t-vxsparc |
2327 | use_collect2=yes | |
2328 | thread_file='vxworks' | |
2329 | ;; | |
2330 | sparc-*-aout*) | |
2331 | tmake_file=sparc/t-sparcbare | |
0f658c83 | 2332 | tm_file="sparc/sparc.h aoutos.h sparc/aout.h libgloss.h" |
61ed06c3 | 2333 | ;; |
69474c3c | 2334 | sparc-*-netbsdelf*) |
4cb7482c | 2335 | tm_file="${tm_file} elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h" |
69474c3c | 2336 | ;; |
61ed06c3 | 2337 | sparc-*-netbsd*) |
f982f805 | 2338 | tm_file="${tm_file} sparc/aout.h netbsd.h netbsd-aout.h sparc/netbsd.h" |
61ed06c3 | 2339 | tmake_file=t-netbsd |
5721cd84 | 2340 | use_collect2=yes |
61ed06c3 HPN |
2341 | ;; |
2342 | sparc-*-openbsd*) | |
0f7a7be7 | 2343 | tm_file="sparc/sparc.h ${tm_file}" |
f1cf4606 ME |
2344 | # needed to unconfuse gdb |
2345 | tmake_file="t-libc-ok t-openbsd sparc/t-openbsd" | |
61ed06c3 HPN |
2346 | # we need collect2 until our bug is fixed... |
2347 | use_collect2=yes | |
2348 | ;; | |
91f0fcee ME |
2349 | sparc64-*-openbsd*) |
2350 | tm_file="sparc/openbsd1-64.h sparc/sparc.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sp64-elf.h openbsd.h sparc/openbsd64.h" | |
2351 | xm_file=sparc/xm-sp64.h | |
2352 | gas=yes gnu_ld=yes | |
2353 | with_cpu=ultrasparc | |
2354 | float_format=i128 | |
2355 | ;; | |
61ed06c3 | 2356 | sparc-*-bsd*) |
910e231e | 2357 | tm_file="${tm_file} sparc/bsd.h" |
61ed06c3 | 2358 | ;; |
8da6d80e | 2359 | sparc-*-chorusos*) |
8433a25e | 2360 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h chorus.h" |
2d69e3cb | 2361 | tmake_file="sparc/t-chorus-elf sparc/t-crtfm" |
8da6d80e CC |
2362 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
2363 | float_format=i64 | |
2364 | case x${enable_threads} in | |
2365 | xyes | xpthreads | xposix) | |
2366 | thread_file='posix' | |
2367 | ;; | |
2368 | esac | |
2369 | ;; | |
61ed06c3 | 2370 | sparc-*-elf*) |
8433a25e | 2371 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h" |
a261e0cc | 2372 | tmake_file="sparc/t-elf sparc/t-crtfm" |
61ed06c3 HPN |
2373 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
2374 | #float_format=i128 | |
2375 | float_format=i64 | |
2376 | ;; | |
2377 | sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out | |
0f7a7be7 | 2378 | tm_file="aoutos.h sparc/sparc.h sparc/aout.h sparc/linux-aout.h" |
61ed06c3 HPN |
2379 | gnu_ld=yes |
2380 | ;; | |
2381 | sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5 | |
c40409ce | 2382 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h" |
a261e0cc | 2383 | tmake_file="t-slibgcc-elf-ver t-linux t-linux-gnulibc1 sparc/t-crtfm" |
61ed06c3 HPN |
2384 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
2385 | gnu_ld=yes | |
2386 | float_format=sparc | |
2387 | ;; | |
2388 | sparc-*-linux*) # Sparc's running GNU/Linux, libc6 | |
c40409ce | 2389 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h" |
a261e0cc | 2390 | tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm" |
275b60d6 | 2391 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
61ed06c3 HPN |
2392 | gnu_ld=yes |
2393 | if test x$enable_threads = xyes; then | |
2394 | thread_file='posix' | |
2395 | fi | |
2396 | float_format=sparc | |
2397 | ;; | |
2398 | sparc-*-lynxos*) | |
2399 | if test x$gas = xyes | |
2400 | then | |
0f7a7be7 | 2401 | tm_file="${tm_file} lynx.h sparc/aout.h sparc/lynx.h" |
61ed06c3 | 2402 | else |
0f7a7be7 | 2403 | tm_file="${tm_file} lynx-ng.h sparc/aout.h sparc/lynx-ng.h" |
61ed06c3 | 2404 | fi |
61ed06c3 | 2405 | tmake_file=sparc/t-sunos41 |
61ed06c3 | 2406 | ;; |
c7bdf0a6 ZW |
2407 | sparc-*-rtemsaout*) # would otherwise be caught by sparc-*-rtems* |
2408 | echo "*** Configuration $machine not supported" 1>&2 | |
2409 | exit 1 | |
61ed06c3 | 2410 | ;; |
c7bdf0a6 | 2411 | sparc-*-rtems*) |
f22b4bc4 | 2412 | xm_defines=POSIX |
8433a25e | 2413 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h" |
2d69e3cb | 2414 | tmake_file="sparc/t-elf sparc/t-crtfm t-rtems" |
61ed06c3 HPN |
2415 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
2416 | #float_format=i128 | |
2417 | float_format=i64 | |
bc98ef7f JS |
2418 | if test x$enable_threads = xyes; then |
2419 | thread_file='rtems' | |
2420 | fi | |
61ed06c3 | 2421 | ;; |
8947df0c | 2422 | sparc64-*-solaris2* | sparcv9-*-solaris2*) |
8433a25e | 2423 | tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h" |
3fc602a0 RH |
2424 | if test x$gnu_ld = xyes; then |
2425 | tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h" | |
61ed06c3 | 2426 | fi |
f0871dfe RH |
2427 | if test x$gas = xyes; then |
2428 | tm_file="${tm_file} sparc/sol2-gas-bi.h" | |
2429 | fi | |
34f4f3a5 | 2430 | xm_defines=POSIX |
a261e0cc | 2431 | tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm" |
61ed06c3 | 2432 | if test x$gnu_ld = xyes; then |
7b3a4df5 | 2433 | tmake_file="$tmake_file t-slibgcc-elf-ver" |
61ed06c3 | 2434 | else |
7b3a4df5 | 2435 | tmake_file="$tmake_file t-slibgcc-sld" |
61ed06c3 | 2436 | fi |
61ed06c3 | 2437 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" |
0a295052 | 2438 | float_format=i128 |
61ed06c3 HPN |
2439 | if test x${enable_threads} = x ; then |
2440 | enable_threads=$have_pthread_h | |
2441 | if test x${enable_threads} = x ; then | |
2442 | enable_threads=$have_thread_h | |
2443 | fi | |
2444 | fi | |
2445 | if test x${enable_threads} = xyes ; then | |
2446 | if test x${have_pthread_h} = xyes ; then | |
2447 | thread_file='posix' | |
2448 | else | |
2449 | thread_file='solaris' | |
2450 | fi | |
2451 | fi | |
2452 | ;; | |
2453 | sparc-hal-solaris2*) | |
34f4f3a5 | 2454 | xm_defines=POSIX |
8433a25e | 2455 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/hal.h" |
a261e0cc | 2456 | tmake_file="sparc/t-halos sparc/t-sol2 sparc/t-crtfm" |
61ed06c3 | 2457 | if test x$gnu_ld = xyes; then |
7a31a340 | 2458 | tm_file="${tm_file} sparc/sol2-gld.h" |
7b3a4df5 | 2459 | tmake_file="$tmake_file t-slibgcc-elf-ver" |
61ed06c3 | 2460 | else |
7b3a4df5 | 2461 | tmake_file="$tmake_file t-slibgcc-sld" |
61ed06c3 | 2462 | fi |
61ed06c3 | 2463 | extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o" |
0a295052 | 2464 | float_format=i128 |
61ed06c3 HPN |
2465 | thread_file='solaris' |
2466 | ;; | |
8947df0c | 2467 | sparc-*-solaris2*) |
8433a25e | 2468 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h" |
3fc602a0 RH |
2469 | if test x$gnu_ld = xyes; then |
2470 | tm_file="${tm_file} sparc/sol2-gld.h" | |
61ed06c3 | 2471 | fi |
a261e0cc | 2472 | tmake_file="sparc/t-sol2 sparc/t-crtfm" |
61ed06c3 | 2473 | if test x$gnu_ld = xyes; then |
7b3a4df5 | 2474 | tmake_file="$tmake_file t-slibgcc-elf-ver" |
61ed06c3 | 2475 | else |
7b3a4df5 | 2476 | tmake_file="$tmake_file t-slibgcc-sld" |
61ed06c3 | 2477 | fi |
7112135f | 2478 | case $machine in |
8947df0c RH |
2479 | *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) |
2480 | if test x$gnu_ld = xno; then | |
2481 | tm_file="${tm_file} sparc/sol26-sld.h" | |
2482 | fi | |
2483 | ;; | |
2484 | *-*-solaris2.[789]) | |
3fc602a0 RH |
2485 | tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h" |
2486 | if test x$gnu_ld = xyes; then | |
2487 | tm_file="${tm_file} sparc/sol2-gld-bi.h" | |
7112135f | 2488 | fi |
f0871dfe RH |
2489 | if test x$gas = xyes; then |
2490 | tm_file="${tm_file} sparc/sol2-gas-bi.h" | |
2491 | fi | |
7112135f AO |
2492 | tmake_file="$tmake_file sparc/t-sol2-64" |
2493 | ;; | |
2494 | esac | |
3fc602a0 RH |
2495 | xm_defines=POSIX |
2496 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
0a295052 | 2497 | float_format=i128 |
61ed06c3 HPN |
2498 | if test x${enable_threads} = x; then |
2499 | enable_threads=$have_pthread_h | |
2500 | if test x${enable_threads} = x; then | |
2501 | enable_threads=$have_thread_h | |
2502 | fi | |
2503 | fi | |
2504 | if test x${enable_threads} = xyes; then | |
2505 | if test x${have_pthread_h} = xyes; then | |
2506 | thread_file='posix' | |
2507 | else | |
2508 | thread_file='solaris' | |
2509 | fi | |
2510 | fi | |
2511 | ;; | |
2512 | sparc-*-sunos4.0*) | |
0f7a7be7 | 2513 | tm_file="${tm_file} sparc/aout.h sparc/sunos4.h" |
61ed06c3 HPN |
2514 | use_collect2=yes |
2515 | ;; | |
2516 | sparc-*-sunos4*) | |
0f7a7be7 | 2517 | tm_file="${tm_file} sparc/aout.h sparc/sunos4.h" |
61ed06c3 HPN |
2518 | tmake_file=sparc/t-sunos41 |
2519 | use_collect2=yes | |
2520 | if test x$gas = xyes; then | |
2521 | tm_file="${tm_file} sparc/sun4gas.h" | |
2522 | fi | |
2523 | ;; | |
2524 | sparc-*-sunos3*) | |
0f7a7be7 | 2525 | tm_file="${tm_file} sparc/aout.h sparc/sun4o3.h" |
61ed06c3 HPN |
2526 | use_collect2=yes |
2527 | ;; | |
2528 | sparc-*-sysv4*) | |
c40409ce | 2529 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h" |
34f4f3a5 | 2530 | xm_defines=POSIX |
61ed06c3 | 2531 | tmake_file=t-svr4 |
61ed06c3 HPN |
2532 | extra_parts="crtbegin.o crtend.o" |
2533 | ;; | |
2534 | sparc-*-vxsim*) | |
34f4f3a5 | 2535 | xm_defines=POSIX |
c40409ce | 2536 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/vxsim.h" |
61ed06c3 | 2537 | tmake_file=sparc/t-vxsparc |
61ed06c3 HPN |
2538 | ;; |
2539 | sparclet-*-aout*) | |
0f658c83 | 2540 | tm_file="${tm_file} aoutos.h sparc/aout.h sparc/splet.h libgloss.h" |
61ed06c3 HPN |
2541 | tmake_file=sparc/t-splet |
2542 | ;; | |
2543 | sparclite-*-coff*) | |
0f658c83 | 2544 | tm_file="${tm_file} gofast.h sparc/lite.h svr3.h sparc/litecoff.h dbxcoff.h libgloss.h" |
61ed06c3 HPN |
2545 | tmake_file=sparc/t-sparclite |
2546 | ;; | |
2547 | sparclite-*-aout*) | |
0f7a7be7 | 2548 | tm_file="${tm_file} gofast.h sparc/aout.h sparc/lite.h aoutos.h libgloss.h" |
61ed06c3 HPN |
2549 | tmake_file=sparc/t-sparclite |
2550 | ;; | |
2551 | sparclite-*-elf*) | |
8433a25e | 2552 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h gofast.h sparc/liteelf.h" |
2d69e3cb | 2553 | tmake_file="sparc/t-sparclite sparc/t-crtfm" |
61ed06c3 HPN |
2554 | extra_parts="crtbegin.o crtend.o" |
2555 | ;; | |
2556 | sparc86x-*-aout*) | |
0f7a7be7 | 2557 | tm_file="${tm_file} gofast.h sparc/aout.h sparc/sp86x-aout.h aoutos.h libgloss.h" |
61ed06c3 HPN |
2558 | tmake_file=sparc/t-sp86x |
2559 | ;; | |
0e5a4ad8 | 2560 | sparc86x-*-elf*) |
8433a25e | 2561 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h gofast.h sparc/sp86x-elf.h" |
2d69e3cb | 2562 | tmake_file="sparc/t-sp86x sparc/t-crtfm" |
61ed06c3 HPN |
2563 | extra_parts="crtbegin.o crtend.o" |
2564 | ;; | |
2565 | sparc64-*-aout*) | |
0f7a7be7 | 2566 | tm_file="sparc/sparc.h aoutos.h sparc/aout.h sparc/sp64-aout.h" |
61ed06c3 HPN |
2567 | ;; |
2568 | sparc64-*-elf*) | |
8433a25e | 2569 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sp64-elf.h" |
2d69e3cb | 2570 | tmake_file="${tmake_file} sparc/t-crtfm" |
61ed06c3 HPN |
2571 | extra_parts="crtbegin.o crtend.o" |
2572 | ;; | |
c7240cbd DB |
2573 | sparc64-*-freebsd*|ultrasparc-*-freebsd*) |
2574 | tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h" | |
2d69e3cb | 2575 | tmake_file="${tmake_file} sparc/t-crtfm" |
c7240cbd DB |
2576 | xmake_file=none |
2577 | case "x$with_cpu" in | |
e0054185 | 2578 | xultrasparc) ;; |
c7240cbd DB |
2579 | x) with_cpu=ultrasparc ;; |
2580 | *) echo "$with_cpu not supported for freebsd target"; exit 1 ;; | |
2581 | esac | |
2582 | ;; | |
61ed06c3 | 2583 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux |
19fe522a | 2584 | tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm" |
86f808dc | 2585 | tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h" |
275b60d6 | 2586 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" |
61ed06c3 HPN |
2587 | gnu_ld=yes |
2588 | if test x$enable_threads = xyes; then | |
2589 | thread_file='posix' | |
2590 | fi | |
2591 | float_format=sparc | |
2592 | ;; | |
4cb7482c MG |
2593 | sparc64-*-netbsd*) |
2594 | tmake_file="${tmake_file} sparc/t-netbsd64" | |
2595 | tm_file="sparc/biarch64.h ${tm_file}" | |
2596 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h" | |
2597 | float_format=sparc | |
2598 | ;; | |
d19fb8e3 | 2599 | strongarm-*-elf*) |
c40409ce | 2600 | tm_file="arm/strongarm-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h" |
d19fb8e3 NC |
2601 | tmake_file=arm/t-strongarm-elf |
2602 | out_file=arm/arm.c | |
d19fb8e3 | 2603 | md_file=arm/arm.md |
1c0ca89d | 2604 | extra_modes=arm/arm-modes.def |
d19fb8e3 NC |
2605 | ;; |
2606 | strongarm-*-coff*) | |
f910b1bb | 2607 | tm_file="arm/semi.h arm/aout.h arm/coff.h arm/strongarm-coff.h arm/arm.h" |
d19fb8e3 NC |
2608 | tmake_file=arm/t-strongarm-coff |
2609 | out_file=arm/arm.c | |
d19fb8e3 | 2610 | md_file=arm/arm.md |
1c0ca89d | 2611 | extra_modes=arm/arm-modes.def |
d19fb8e3 NC |
2612 | ;; |
2613 | strongarm-*-pe) | |
f910b1bb | 2614 | tm_file="arm/semi.h arm/aout.h arm/coff.h arm/strongarm-coff.h arm/arm.h arm/pe.h arm/strongarm-pe.h" |
d19fb8e3 NC |
2615 | tmake_file=arm/t-strongarm-pe |
2616 | out_file=arm/arm.c | |
d19fb8e3 | 2617 | md_file=arm/arm.md |
1c0ca89d | 2618 | extra_modes=arm/arm-modes.def |
d19fb8e3 NC |
2619 | extra_objs=pe.o |
2620 | ;; | |
61ed06c3 HPN |
2621 | thumb*-*-*) |
2622 | { echo "config.gcc: error: | |
9e8fc4b8 | 2623 | *** The Thumb targets have been deprecated. The equivalent |
cfd1c7ea | 2624 | *** ARM based toolchain can now generate Thumb instructions |
61ed06c3 HPN |
2625 | *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; } |
2626 | ;; | |
2627 | v850-*-rtems*) | |
f22b4bc4 JS |
2628 | xm_defines=POSIX |
2629 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file} v850/v850.h v850/rtems.h rtems.h" | |
61ed06c3 HPN |
2630 | tmake_file="v850/t-v850 t-rtems" |
2631 | if test x$stabs = xyes | |
2632 | then | |
2633 | tm_file="${tm_file} dbx.h" | |
2634 | fi | |
2635 | use_collect2=no | |
c3edd394 NC |
2636 | c_target_objs="v850-c.o" |
2637 | cxx_target_objs="v850-c.o" | |
61ed06c3 HPN |
2638 | ;; |
2639 | v850-*-*) | |
2640 | target_cpu_default="TARGET_CPU_generic" | |
c40409ce | 2641 | tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" |
61ed06c3 HPN |
2642 | tmake_file=v850/t-v850 |
2643 | if test x$stabs = xyes | |
2644 | then | |
2645 | tm_file="${tm_file} dbx.h" | |
2646 | fi | |
2647 | use_collect2=no | |
c3edd394 NC |
2648 | c_target_objs="v850-c.o" |
2649 | cxx_target_objs="v850-c.o" | |
61ed06c3 | 2650 | ;; |
8aeea6e6 | 2651 | vax-*-bsd*) # VAXen running BSD |
169274cd | 2652 | tm_file="${tm_file} vax/bsd.h" |
61ed06c3 HPN |
2653 | use_collect2=yes |
2654 | float_format=vax | |
2655 | ;; | |
8aeea6e6 | 2656 | vax-*-sysv*) # VAXen running system V |
61ed06c3 | 2657 | tm_file="${tm_file} vax/vaxv.h" |
34f4f3a5 | 2658 | xm_defines=POSIX |
61ed06c3 HPN |
2659 | float_format=vax |
2660 | ;; | |
69474c3c JT |
2661 | vax-*-netbsdelf*) |
2662 | echo "GCC does not yet support the ${machine} target"; exit 1 | |
2663 | ;; | |
61ed06c3 | 2664 | vax-*-netbsd*) |
f982f805 | 2665 | tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h" |
61ed06c3 HPN |
2666 | tmake_file=t-netbsd |
2667 | float_format=vax | |
5721cd84 | 2668 | use_collect2=yes |
61ed06c3 HPN |
2669 | ;; |
2670 | vax-*-openbsd*) | |
61ed06c3 | 2671 | tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}" |
61ed06c3 HPN |
2672 | float_format=vax |
2673 | use_collect2=yes | |
2674 | ;; | |
8aeea6e6 | 2675 | vax-*-ultrix*) # VAXen running ultrix |
61ed06c3 HPN |
2676 | tm_file="${tm_file} vax/ultrix.h" |
2677 | float_format=vax | |
2678 | ;; | |
8aeea6e6 | 2679 | vax-*-vms*) # VAXen running VMS |
61ed06c3 HPN |
2680 | xm_file=vax/xm-vms.h |
2681 | tm_file=vax/vms.h | |
2682 | float_format=vax | |
2683 | ;; | |
8aeea6e6 | 2684 | vax-*-*) # VAX default entry |
61ed06c3 HPN |
2685 | float_format=vax |
2686 | ;; | |
d19fb8e3 | 2687 | xscale-*-elf) |
c40409ce | 2688 | tm_file="arm/xscale-elf.h dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h" |
d19fb8e3 NC |
2689 | tmake_file=arm/t-xscale-elf |
2690 | out_file=arm/arm.c | |
d19fb8e3 | 2691 | md_file=arm/arm.md |
1c0ca89d | 2692 | extra_modes=arm/arm-modes.def |
d19fb8e3 NC |
2693 | ;; |
2694 | xscale-*-coff) | |
578316b9 | 2695 | tm_file="arm/semi.h arm/aout.h arm/coff.h arm/xscale-coff.h arm/arm.h" |
d19fb8e3 NC |
2696 | tmake_file=arm/t-xscale-coff |
2697 | out_file=arm/arm.c | |
d19fb8e3 | 2698 | md_file=arm/arm.md |
1c0ca89d | 2699 | extra_modes=arm/arm-modes.def |
d19fb8e3 | 2700 | ;; |
14d269bb GK |
2701 | xstormy16-*-elf) |
2702 | # For historical reasons, the target files omit the 'x'. | |
c40409ce | 2703 | tm_file="dbxelf.h elfos.h svr4.h stormy16/stormy16.h" |
14d269bb GK |
2704 | tm_p_file=stormy16/stormy16-protos.h |
2705 | md_file=stormy16/stormy16.md | |
2706 | out_file=stormy16/stormy16.c | |
2707 | tmake_file="stormy16/t-stormy16" | |
2708 | extra_parts="crtbegin.o crtend.o" | |
2709 | ;; | |
03984308 BW |
2710 | xtensa-*-elf*) |
2711 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h" | |
2712 | with_newlib=yes | |
2713 | tmake_file=xtensa/t-xtensa | |
2714 | extra_parts="crtbegin.o crtend.o" | |
2715 | fixincludes=Makefile.in # newlib headers should be OK | |
2716 | ;; | |
2717 | xtensa-*-linux*) | |
2718 | tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h" | |
2719 | tmake_file="t-linux xtensa/t-xtensa" | |
2720 | extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" | |
2721 | gas=yes gnu_ld=yes | |
2722 | if test x$enable_threads = xyes; then | |
2723 | thread_file='posix' | |
2724 | fi | |
2725 | ;; | |
61ed06c3 | 2726 | *) |
c7bdf0a6 | 2727 | echo "*** Configuration $machine not supported" 1>&2 |
61ed06c3 HPN |
2728 | exit 1 |
2729 | ;; | |
2730 | esac | |
2731 | ||
2732 | case $machine in | |
61ed06c3 HPN |
2733 | *-*-sysv*) |
2734 | install_headers_dir=install-headers-cpio | |
2735 | ;; | |
2736 | esac | |
2737 | ||
2738 | # Distinguish i[34567]86 | |
2739 | # Also, do not run mips-tfile on MIPS if using gas. | |
2740 | # Process --with-cpu= for PowerPC/rs6000 | |
2741 | target_cpu_default2= | |
2742 | case $machine in | |
2743 | i486-*-*) | |
e10e23ee | 2744 | target_cpu_default2=TARGET_CPU_DEFAULT_i486 |
61ed06c3 HPN |
2745 | ;; |
2746 | i586-*-*) | |
2747 | case $target_alias in | |
e10e23ee JH |
2748 | k6_2-*) |
2749 | target_cpu_default2=TARGET_CPU_DEFAULT_k6_2 | |
2750 | ;; | |
2751 | k6_3-*) | |
2752 | target_cpu_default2=TARGET_CPU_DEFAULT_k6_3 | |
2753 | ;; | |
61ed06c3 | 2754 | k6-*) |
e10e23ee JH |
2755 | target_cpu_default2=TARGET_CPU_DEFAULT_k6 |
2756 | ;; | |
2757 | pentium_mmx-*) | |
2758 | target_cpu_default2=TARGET_CPU_DEFAULT_pentium_mmx | |
61ed06c3 HPN |
2759 | ;; |
2760 | *) | |
e10e23ee | 2761 | target_cpu_default2=TARGET_CPU_DEFAULT_pentium |
61ed06c3 HPN |
2762 | ;; |
2763 | esac | |
2764 | ;; | |
2765 | i686-*-* | i786-*-*) | |
4ed47bea | 2766 | case $target_alias in |
e10e23ee JH |
2767 | athlon_xp-*|athlon_mp-*|athlon_4-*) |
2768 | target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse | |
2769 | ;; | |
2770 | athlon_tbird-*|athlon-*) | |
2771 | target_cpu_default2=TARGET_CPU_DEFAULT_athlon | |
2772 | ;; | |
2773 | pentium2-*) | |
2774 | target_cpu_default2=TARGET_CPU_DEFAULT_pentium2 | |
2775 | ;; | |
2776 | pentium3-*) | |
2777 | target_cpu_default2=TARGET_CPU_DEFAULT_pentium3 | |
2778 | ;; | |
2779 | pentium4-*) | |
2780 | target_cpu_default2=TARGET_CPU_DEFAULT_pentium4 | |
4ed47bea JM |
2781 | ;; |
2782 | *) | |
e10e23ee | 2783 | target_cpu_default2=TARGET_CPU_DEFAULT_pentiumpro |
4ed47bea JM |
2784 | ;; |
2785 | esac | |
61ed06c3 | 2786 | ;; |
e10e23ee JH |
2787 | x86_64-*-*) |
2788 | # We should have hammer chip here, but it does not exist yet and | |
2789 | # thus it is not supported. Athlon_SSE is probably equivalent feature | |
2790 | # wise to hammer from our point of view except for 64bit mode. | |
2791 | target_cpu_default2=TARGET_CPU_DEFAULT_athlon_sse | |
2792 | ;; | |
61ed06c3 HPN |
2793 | alpha*-*-*) |
2794 | case $machine in | |
2795 | alphaev6[78]*) | |
2796 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX" | |
2797 | ;; | |
2798 | alphaev6*) | |
2799 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX" | |
2800 | ;; | |
2801 | alphapca56*) | |
2802 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" | |
2803 | ;; | |
2804 | alphaev56*) | |
2805 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" | |
2806 | ;; | |
2807 | alphaev5*) | |
2808 | target_cpu_default2="MASK_CPU_EV5" | |
2809 | ;; | |
2810 | esac | |
0e5a4ad8 | 2811 | |
61ed06c3 HPN |
2812 | if test x$gas = xyes |
2813 | then | |
2814 | if test "$target_cpu_default2" = "" | |
2815 | then | |
2816 | target_cpu_default2="MASK_GAS" | |
2817 | else | |
2818 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
2819 | fi | |
2820 | fi | |
2821 | ;; | |
2822 | arm*-*-*) | |
2823 | case "x$with_cpu" in | |
2824 | x) | |
2825 | # The most generic | |
2826 | target_cpu_default2="TARGET_CPU_generic" | |
2827 | ;; | |
2828 | ||
2829 | # Distinguish cores, and major variants | |
2830 | # arm7m doesn't exist, but D & I don't affect code | |
70f24e49 NC |
2831 | xarm[236789] | xarm250 | xarm[67][01]0 \ |
2832 | | xarm7m | xarm7dm | xarm7dmi | xarm[79]tdmi \ | |
61ed06c3 | 2833 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ |
d19fb8e3 | 2834 | | xxscale \ |
61ed06c3 HPN |
2835 | | xstrongarm | xstrongarm110 | xstrongarm1100) |
2836 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
2837 | ;; | |
2838 | ||
2839 | xyes | xno) | |
2840 | echo "--with-cpu must be passed a value" 1>&2 | |
2841 | exit 1 | |
2842 | ;; | |
2843 | ||
2844 | *) | |
2845 | if test x$pass2done = xyes | |
2846 | then | |
2847 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
2848 | exit 1 | |
2849 | fi | |
2850 | ;; | |
2851 | esac | |
2852 | ;; | |
2853 | ||
c21a2372 AM |
2854 | hppa*-*-* | parisc*-*-*) |
2855 | if test x$gas = xyes | |
2856 | then | |
2857 | target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY" | |
2858 | fi | |
806bf413 | 2859 | case $machine in |
d5355cb2 JDA |
2860 | hppa1* | parisc1*) |
2861 | tm_defines="TARGET_SCHED_DEFAULT=\\\"7100LC\\\"" | |
806bf413 JDA |
2862 | ;; |
2863 | esac | |
c21a2372 | 2864 | ;; |
74826b0f EC |
2865 | mips*-*-*) |
2866 | case $machine in | |
2867 | mips*-*-ecoff* | mips*-*-elf*) | |
2868 | if test x$gas = xyes | |
2869 | then | |
2870 | if test x$gnu_ld = xyes | |
2871 | then | |
2872 | target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR" | |
2873 | else | |
2874 | target_cpu_default2="MASK_GAS" | |
2875 | fi | |
2876 | fi | |
2877 | ;; | |
2878 | mips*-*-*) | |
2879 | if test x$gas = xyes | |
61ed06c3 | 2880 | then |
61ed06c3 HPN |
2881 | target_cpu_default2="MASK_GAS" |
2882 | fi | |
74826b0f EC |
2883 | ;; |
2884 | esac | |
2885 | case $machine in | |
2886 | mips*el-*-*) | |
2887 | tm_file="mips/little.h ${tm_file}" | |
2888 | ;; | |
2889 | esac | |
61ed06c3 HPN |
2890 | ;; |
2891 | powerpc*-*-* | rs6000-*-*) | |
480f7f3a AH |
2892 | if test x$enable_altivec = xyes |
2893 | then | |
5e505bc9 | 2894 | tm_file="$tm_file rs6000/altivec-defs.h" |
480f7f3a | 2895 | fi |
61ed06c3 HPN |
2896 | case "x$with_cpu" in |
2897 | x) | |
2898 | ;; | |
2899 | ||
94f1d97c DJ |
2900 | xcommon | xpower | xpower2 | xpower3 | xpowerpc | xpowerpc64 \ |
2901 | | xrios | xrios1 | xrios2 | xrsc | xrsc1 | xrs64a \ | |
2902 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 | x630 \ | |
2903 | | x740 | x750 | x7400 | x7450 | x505) | |
ff25793c | 2904 | target_cpu_default2="\\\"$with_cpu\\\"" |
61ed06c3 HPN |
2905 | ;; |
2906 | ||
94f1d97c | 2907 | x401 | x403 | x405 | xec603e | x801 | x821 | x823 | x860) |
c19083d8 | 2908 | target_cpu_default2="\\\"$with_cpu\\\"" |
c19083d8 DD |
2909 | ;; |
2910 | ||
61ed06c3 HPN |
2911 | xyes | xno) |
2912 | echo "--with-cpu must be passed a value" 1>&2 | |
2913 | exit 1 | |
2914 | ;; | |
2915 | ||
2916 | *) | |
2917 | if test x$pass2done = xyes | |
2918 | then | |
2919 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
2920 | exit 1 | |
2921 | fi | |
2922 | ;; | |
2923 | esac | |
a6e2e53e GK |
2924 | c_target_objs="${c_target_objs} rs6000-c.o" |
2925 | cxx_target_objs="${cxx_target_objs} rs6000-c.o" | |
2926 | tmake_file="${tmake_file} rs6000/t-rs6000-c-rule" | |
61ed06c3 HPN |
2927 | ;; |
2928 | sparc*-*-*) | |
2929 | case ".$with_cpu" in | |
2930 | .) | |
2931 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
2932 | ;; | |
2933 | .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9) | |
2934 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
2935 | ;; | |
2936 | *) | |
2937 | if test x$pass2done = xyes | |
2938 | then | |
2939 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
2940 | exit 1 | |
2941 | fi | |
2942 | ;; | |
2943 | esac | |
2944 | ;; | |
2945 | esac | |
2946 | ||
2947 | if test "$target_cpu_default2" != "" | |
2948 | then | |
2949 | if test "$target_cpu_default" != "" | |
2950 | then | |
2951 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
2952 | else | |
2953 | target_cpu_default=$target_cpu_default2 | |
2954 | fi | |
2955 | fi | |
2956 | ||
61ed06c3 HPN |
2957 | # Save data on machine being used to compile GCC in build_xm_file. |
2958 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
2959 | if test x$pass1done = x | |
2960 | then | |
4dc0535b ZW |
2961 | if test x$xm_file != x |
2962 | then build_xm_file=$xm_file | |
61ed06c3 HPN |
2963 | fi |
2964 | build_xm_defines=$xm_defines | |
2965 | build_install_headers_dir=$install_headers_dir | |
2966 | build_exeext=$exeext | |
2967 | pass1done=yes | |
2968 | else | |
2969 | if test x$pass2done = x | |
2970 | then | |
4dc0535b ZW |
2971 | if test x$xm_file != x |
2972 | then host_xm_file=$xm_file | |
61ed06c3 HPN |
2973 | fi |
2974 | host_xm_defines=$xm_defines | |
61ed06c3 HPN |
2975 | host_xmake_file="$xmake_file" |
2976 | host_truncate_target=$truncate_target | |
2977 | host_extra_gcc_objs=$extra_gcc_objs | |
2978 | host_extra_objs=$extra_host_objs | |
2979 | host_exeext=$exeext | |
2980 | pass2done=yes | |
2981 | fi | |
2982 | fi |