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