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