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