]>
Commit | Line | Data |
---|---|---|
973f8bf3 | 1 | # GCC target-specific configuration file. |
99c77e32 | 2 | # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
af8e12d0 | 3 | # 2008, 2009, 2010, 2011, 2012 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 | |
8c4c00c1 | 9 | #Software Foundation; either version 3, or (at your option) any later |
f12b58b3 | 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 | |
8c4c00c1 | 18 | #along with GCC; see the file COPYING3. If not see |
19 | #<http://www.gnu.org/licenses/>. | |
bb607926 | 20 | |
973f8bf3 | 21 | # This is the GCC target-specific configuration file |
22 | # where a configuration type is mapped to different system-specific | |
23 | # definitions and files. This is invoked by the autoconf-generated | |
24 | # configure script. Putting it in a separate shell file lets us skip | |
25 | # running autoconf when modifying target-specific information. | |
bb607926 | 26 | |
894a47b4 | 27 | # When you change the cases in the OS or target switches, consider |
28 | # updating ../libgcc/config.host also. | |
29 | ||
09c6646e | 30 | # This file switches on the shell variable ${target}, and also uses the |
bb607926 | 31 | # following shell variables: |
32 | # | |
33 | # with_* Various variables as set by configure. | |
34 | # | |
334c8279 | 35 | # enable_threads Either the name, yes or no depending on whether |
bb607926 | 36 | # threads support was requested. |
37 | # | |
bc5ae993 | 38 | # default_use_cxa_atexit |
430e8f92 | 39 | # The default value for the $enable___cxa_atexit |
40 | # variable. enable___cxa_atexit needs to be set to | |
41 | # "yes" for the correct operation of C++ destructors | |
42 | # but it relies upon the presence of a non-standard C | |
43 | # library function called __cxa_atexit. | |
44 | # Since not all C libraries provide __cxa_atexit the | |
45 | # default value of $default_use_cxa_atexit is set to | |
46 | # "no" except for targets which are known to be OK. | |
bc5ae993 | 47 | # |
1c6e0788 | 48 | # default_gnu_indirect_function |
49 | # The default value for the $enable_gnu_indirect_function | |
50 | # variable. enable_gnu_indirect_function relies | |
51 | # upon the presence of a non-standard gnu ifunc support | |
52 | # in the assembler, linker and dynamic linker. | |
53 | # Since not all libraries provide the dynamic linking | |
54 | # support, the default value of | |
55 | # $default_gnu_indirect_function is set to | |
56 | # "no" except for targets which are known to be OK. | |
57 | # | |
bb607926 | 58 | # gas_flag Either yes or no depending on whether GNU as was |
59 | # requested. | |
60 | # | |
61 | # gnu_ld_flag Either yes or no depending on whether GNU ld was | |
62 | # requested. | |
63 | ||
64 | # This file sets the following shell variables for use by the | |
65 | # autoconf-generated configure script: | |
66 | # | |
09c6646e | 67 | # cpu_type The name of the cpu, if different from the first |
68 | # chunk of the canonical target name. | |
bb607926 | 69 | # |
8d4f8d46 | 70 | # tm_defines List of target macros to define for all compilations. |
71 | # | |
bb607926 | 72 | # tm_file A list of target macro files, if different from |
277773bd | 73 | # "$cpu_type/$cpu_type.h". Usually it's constructed |
74 | # per target in a way like this: | |
91276c47 | 75 | # tm_file="${tm_file} dbxelf.h elfos.h ${cpu_type.h}/elf.h" |
277773bd | 76 | # Note that the preferred order is: |
77 | # - specific target header "${cpu_type}/${cpu_type.h}" | |
04d9b51b | 78 | # - generic headers like dbxelf.h elfos.h, etc. |
277773bd | 79 | # - specializing target headers like ${cpu_type.h}/elf.h |
80 | # This helps to keep OS specific stuff out of the CPU | |
81 | # defining header ${cpu_type}/${cpu_type.h}. | |
bb607926 | 82 | # |
b4b98cc1 | 83 | # It is possible to include automatically-generated |
84 | # build-directory files by prefixing them with "./". | |
85 | # All other files should relative to $srcdir/config. | |
86 | # | |
bb607926 | 87 | # tm_p_file Location of file with declarations for functions |
88 | # in $out_file. | |
89 | # | |
90 | # out_file The name of the machine description C support | |
91 | # file, if different from "$cpu_type/$cpu_type.c". | |
92 | # | |
3e87b980 | 93 | # common_out_file The name of the source file for code shared between |
94 | # the compiler proper and the driver. | |
95 | # | |
bb607926 | 96 | # md_file The name of the machine-description file, if |
97 | # different from "$cpu_type/$cpu_type.md". | |
98 | # | |
99 | # tmake_file A list of machine-description-specific | |
100 | # makefile-fragments, if different from | |
101 | # "$cpu_type/t-$cpu_type". | |
102 | # | |
b5ccaa7b | 103 | # extra_modes The name of the file containing a list of extra |
104 | # machine modes, if necessary and different from | |
105 | # "$cpu_type/$cpu_type-modes.def". | |
106 | # | |
bb607926 | 107 | # extra_objs List of extra objects that should be linked into |
108 | # the compiler proper (cc1, cc1obj, cc1plus) | |
109 | # depending on target. | |
110 | # | |
69eb04f7 | 111 | # extra_gcc_objs List of extra objects that should be linked into |
112 | # the compiler driver (gcc) depending on target. | |
113 | # | |
bb607926 | 114 | # extra_headers List of used header files from the directory |
b965afcd | 115 | # config/${cpu_type}. |
bb607926 | 116 | # |
ac0366be | 117 | # user_headers_inc_next_pre |
118 | # List of header file names of internal gcc header | |
119 | # files, which should be prefixed by an include_next. | |
120 | # user_headers_inc_next_post | |
121 | # List of header file names of internal gcc header | |
122 | # files, which should be postfixed by an include_next. | |
50388ca3 | 123 | # use_gcc_tgmath If set, add tgmath.h to the list of used header |
124 | # files. | |
125 | # | |
f3449a3c | 126 | # use_gcc_stdint If "wrap", install a version of stdint.h that |
127 | # wraps the system's copy for hosted compilations; | |
128 | # if "provide", provide a version of systems without | |
129 | # such a system header; otherwise "none", do not | |
130 | # provide such a header at all. | |
131 | # | |
7151decb | 132 | # extra_programs List of extra executables compiled for this target |
133 | # machine, used when linking. | |
bb607926 | 134 | # |
ff05e09e | 135 | # extra_options List of target-dependent .opt files. |
136 | # | |
424da949 | 137 | # c_target_objs List of extra target-dependent objects that be |
8daa9e98 | 138 | # linked into the C compiler only. |
582b17a6 | 139 | # |
424da949 | 140 | # cxx_target_objs List of extra target-dependent objects that be |
8daa9e98 | 141 | # linked into the C++ compiler only. |
582b17a6 | 142 | # |
32006f36 | 143 | # fortran_target_objs List of extra target-dependent objects that be |
144 | # linked into the fortran compiler only. | |
145 | # | |
eb1bd38b | 146 | # target_gtfiles List of extra source files with type information. |
147 | # | |
bb607926 | 148 | # xm_defines List of macros to define when compiling for the |
149 | # target machine. | |
150 | # | |
151 | # xm_file List of files to include when compiling for the | |
152 | # target machine. | |
153 | # | |
154 | # use_collect2 Set to yes or no, depending on whether collect2 | |
155 | # will be used. | |
156 | # | |
157 | # target_cpu_default Set to override the default target model. | |
158 | # | |
bb607926 | 159 | # gdb_needs_out_file_path |
160 | # Set to yes if gdb needs a dir command with | |
161 | # `dirname $out_file`. | |
162 | # | |
bb607926 | 163 | # thread_file Set to control which thread package to use. |
164 | # | |
165 | # gas Set to yes or no depending on whether the target | |
166 | # system normally uses GNU as. | |
805e22b2 | 167 | # |
168 | # need_64bit_hwint Set to yes if HOST_WIDE_INT must be 64 bits wide | |
f824d860 | 169 | # for this target. This is true if this target |
170 | # supports "long" or "wchar_t" wider than 32 bits, | |
171 | # or BITS_PER_WORD is wider than 32 bits. | |
bbb5db40 | 172 | # The setting made here must match the one made in |
173 | # other locations such as libcpp/configure.ac | |
7dd97ab6 | 174 | # |
175 | # configure_default_options | |
176 | # Set to an initializer for configure_default_options | |
177 | # in configargs.h, based on --with-cpu et cetera. | |
638454a1 | 178 | # |
179 | # native_system_header_dir | |
180 | # Where system header files are found for this | |
181 | # target. This defaults to /usr/include. If | |
182 | # the --with-sysroot configure option or the | |
183 | # --sysroot command line option is used this | |
184 | # will be relative to the sysroot. | |
4eb5a747 | 185 | # target_type_format_char |
186 | # The default character to be used for formatting | |
187 | # the attribute in a | |
188 | # .type symbol_name, ${t_t_f_c}<property> | |
189 | # directive. | |
bb607926 | 190 | |
191 | # The following variables are used in each case-construct to build up the | |
192 | # outgoing variables: | |
193 | # | |
bb607926 | 194 | # gnu_ld Set to yes or no depending on whether the target |
195 | # system normally uses GNU ld. | |
c94b1d0e | 196 | # |
197 | # target_has_targetcm Set to yes or no depending on whether the target | |
198 | # has its own definition of targetcm. | |
3e87b980 | 199 | # |
200 | # target_has_targetm_common Set to yes or no depending on whether the | |
201 | # target has its own definition of targetm_common. | |
bb607926 | 202 | |
203 | out_file= | |
3e87b980 | 204 | common_out_file= |
bb607926 | 205 | tmake_file= |
206 | extra_headers= | |
ac0366be | 207 | user_headers_inc_next_pre= |
208 | user_headers_inc_next_post= | |
50388ca3 | 209 | use_gcc_tgmath=yes |
f3449a3c | 210 | use_gcc_stdint=none |
bb607926 | 211 | extra_programs= |
212 | extra_objs= | |
bb607926 | 213 | extra_gcc_objs= |
ff05e09e | 214 | extra_options= |
8daa9e98 | 215 | c_target_objs= |
216 | cxx_target_objs= | |
32006f36 | 217 | fortran_target_objs= |
c94b1d0e | 218 | target_has_targetcm=no |
218e3e4e | 219 | target_has_targetm_common=yes |
8d4f8d46 | 220 | tm_defines= |
bb607926 | 221 | xm_defines= |
bb607926 | 222 | # Set this to force installation and use of collect2. |
223 | use_collect2= | |
224 | # Set this to override the default target model. | |
225 | target_cpu_default= | |
bb607926 | 226 | # Set this if gdb needs a dir command with `dirname $out_file` |
227 | gdb_needs_out_file_path= | |
bb607926 | 228 | # Set this to control which thread package will be used. |
229 | thread_file= | |
230 | # Reinitialize these from the flag values every loop pass, since some | |
231 | # configure entries modify them. | |
232 | gas="$gas_flag" | |
233 | gnu_ld="$gnu_ld_flag" | |
bc5ae993 | 234 | default_use_cxa_atexit=no |
1c6e0788 | 235 | default_gnu_indirect_function=no |
22ac052b | 236 | target_gtfiles= |
805e22b2 | 237 | need_64bit_hwint= |
ed2b8f56 | 238 | need_64bit_isa= |
638454a1 | 239 | native_system_header_dir=/usr/include |
4eb5a747 | 240 | target_type_format_char='@' |
bb607926 | 241 | |
b696fe80 | 242 | # Don't carry these over build->host->target. Please. |
243 | xm_file= | |
244 | md_file= | |
245 | ||
c2527f80 | 246 | # Obsolete configurations. |
a7359760 | 247 | case ${target} in |
8f50e6ed | 248 | # Avoid special cases that are not obsolete |
249 | arm*-*-*eabi* \ | |
250 | ) | |
251 | ;; | |
126b6848 | 252 | arm*-*-ecos-elf \ |
8f50e6ed | 253 | | arm*-*-elf \ |
254 | | arm*-*-freebsd* \ | |
255 | | arm*-*-linux* \ | |
256 | | arm*-*-rtems* \ | |
257 | | arm*-*-uclinux* \ | |
258 | | arm*-wince-pe* \ | |
269a3896 | 259 | | score-* \ |
a7359760 | 260 | ) |
261 | if test "x$enable_obsolete" != xyes; then | |
262 | echo "*** Configuration ${target} is obsolete." >&2 | |
263 | echo "*** Specify --enable-obsolete to build it anyway." >&2 | |
264 | echo "*** Support will be REMOVED in the next major release of GCC," >&2 | |
265 | echo "*** unless a maintainer comes forward." >&2 | |
266 | exit 1 | |
267 | fi;; | |
268 | esac | |
c2527f80 | 269 | |
ece7f381 | 270 | # Unsupported targets list. Do not put an entry in this list unless |
271 | # it would otherwise be caught by a more permissive pattern. The list | |
272 | # should be in alphabetical order. | |
09c6646e | 273 | case ${target} in |
6af9f7ea | 274 | i[34567]86-go32-* \ |
ece7f381 | 275 | | i[34567]86-*-go32* \ |
17b3d2a8 | 276 | | m68k-*-uclinuxoldabi* \ |
ece7f381 | 277 | | mips64orion*-*-rtems* \ |
f2397fc4 | 278 | | pdp11-*-bsd \ |
ece7f381 | 279 | | sparc-hal-solaris2* \ |
280 | | thumb-*-* \ | |
ea722d26 | 281 | | *-*-freebsd[12] | *-*-freebsd[12].* \ |
282 | | *-*-freebsd*aout* \ | |
6af9f7ea | 283 | | *-*-linux*aout* \ |
ece7f381 | 284 | | *-*-linux*coff* \ |
6af9f7ea | 285 | | *-*-linux*libc1* \ |
ece7f381 | 286 | | *-*-linux*oldld* \ |
287 | | *-*-rtemsaout* \ | |
288 | | *-*-rtemscoff* \ | |
e8287058 | 289 | | *-*-solaris2 \ |
264a5d11 | 290 | | *-*-solaris2.[0-8] \ |
291 | | *-*-solaris2.[0-8].* \ | |
292 | | *-*-sysv* \ | |
3598ba3d | 293 | | vax-*-vms* \ |
ece7f381 | 294 | ) |
09c6646e | 295 | echo "*** Configuration ${target} not supported" 1>&2 |
ece7f381 | 296 | exit 1 |
297 | ;; | |
298 | esac | |
299 | ||
bb607926 | 300 | # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be |
83287f80 | 301 | # updated in each machine entry. Also set default extra_headers for some |
302 | # machines. | |
bb607926 | 303 | tm_p_file= |
09c6646e | 304 | cpu_type=`echo ${target} | sed 's/-.*$//'` |
cc5ffbb8 | 305 | cpu_is_64bit= |
09c6646e | 306 | case ${target} in |
85c84d5c | 307 | m32c*-*-*) |
308 | cpu_type=m32c | |
309 | tmake_file=m32c/t-m32c | |
393a753d | 310 | target_has_targetm_common=no |
85c84d5c | 311 | ;; |
bb607926 | 312 | alpha*-*-*) |
313 | cpu_type=alpha | |
805e22b2 | 314 | need_64bit_hwint=yes |
d1e5a65f | 315 | extra_options="${extra_options} g.opt" |
bb607926 | 316 | ;; |
1acdfc69 | 317 | am33_2.0-*-linux*) |
318 | cpu_type=mn10300 | |
319 | ;; | |
6e421549 | 320 | arm*-*-*) |
321 | cpu_type=arm | |
d98a3884 | 322 | extra_headers="mmintrin.h arm_neon.h" |
4eb5a747 | 323 | target_type_format_char='%' |
baa1a726 | 324 | c_target_objs="arm-c.o" |
325 | cxx_target_objs="arm-c.o" | |
9a4818f1 | 326 | extra_options="${extra_options} arm/arm-tables.opt" |
6e421549 | 327 | ;; |
33169f97 | 328 | avr-*-*) |
329 | cpu_type=avr | |
330 | c_target_objs="avr-c.o" | |
331 | cxx_target_objs="avr-c.o" | |
c1535dd2 | 332 | extra_options="${extra_options} avr/avr-tables.opt" |
33169f97 | 333 | ;; |
9e6a0967 | 334 | bfin*-*) |
335 | cpu_type=bfin | |
336 | ;; | |
9b9e3455 | 337 | crisv32-*) |
338 | cpu_type=cris | |
339 | ;; | |
de6e318c | 340 | frv*) cpu_type=frv |
d1e5a65f | 341 | extra_options="${extra_options} g.opt" |
de6e318c | 342 | ;; |
be52b6d8 | 343 | moxie*) cpu_type=moxie |
218e3e4e | 344 | target_has_targetm_common=no |
be52b6d8 | 345 | ;; |
278e2fd1 | 346 | fido-*-*) |
347 | cpu_type=m68k | |
348 | extra_headers=math-68881.h | |
d078aadd | 349 | extra_options="${extra_options} m68k/m68k-tables.opt" |
278e2fd1 | 350 | ;; |
bb607926 | 351 | i[34567]86-*-*) |
352 | cpu_type=i386 | |
46f8e3b0 | 353 | c_target_objs="i386-c.o" |
354 | cxx_target_objs="i386-c.o" | |
6b4db1bd | 355 | need_64bit_hwint=yes |
bca226ea | 356 | extra_options="${extra_options} fused-madd.opt" |
daf03e2f | 357 | extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h |
f25d51c3 | 358 | pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h |
2f212aae | 359 | nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h |
18525343 | 360 | immintrin.h x86intrin.h avxintrin.h xopintrin.h |
87c62cba | 361 | ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h |
2339767f | 362 | lzcntintrin.h bmiintrin.h bmi2intrin.h tbmintrin.h |
bce88dc2 | 363 | avx2intrin.h fmaintrin.h f16cintrin.h rtmintrin.h |
364 | xtestintrin.h" | |
bb607926 | 365 | ;; |
5c66405b | 366 | x86_64-*-*) |
367 | cpu_type=i386 | |
46f8e3b0 | 368 | c_target_objs="i386-c.o" |
369 | cxx_target_objs="i386-c.o" | |
bca226ea | 370 | extra_options="${extra_options} fused-madd.opt" |
daf03e2f | 371 | extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h |
f25d51c3 | 372 | pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h |
2f212aae | 373 | nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h |
18525343 | 374 | immintrin.h x86intrin.h avxintrin.h xopintrin.h |
87c62cba | 375 | ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h |
2339767f | 376 | lzcntintrin.h bmiintrin.h tbmintrin.h bmi2intrin.h |
bce88dc2 | 377 | avx2intrin.h fmaintrin.h f16cintrin.h rtmintrin.h |
378 | xtestintrin.h" | |
805e22b2 | 379 | need_64bit_hwint=yes |
5c66405b | 380 | ;; |
b965afcd | 381 | ia64-*-*) |
382 | extra_headers=ia64intrin.h | |
805e22b2 | 383 | need_64bit_hwint=yes |
dd7870fa | 384 | extra_options="${extra_options} g.opt fused-madd.opt" |
b965afcd | 385 | ;; |
6af9f7ea | 386 | hppa*-*-*) |
bb607926 | 387 | cpu_type=pa |
388 | ;; | |
d1e5a65f | 389 | lm32*) |
390 | extra_options="${extra_options} g.opt" | |
391 | ;; | |
467dc9aa | 392 | m32r*-*-*) |
393 | cpu_type=m32r | |
d1e5a65f | 394 | extra_options="${extra_options} g.opt" |
467dc9aa | 395 | ;; |
83287f80 | 396 | m68k-*-*) |
397 | extra_headers=math-68881.h | |
d078aadd | 398 | extra_options="${extra_options} m68k/m68k-tables.opt" |
bb607926 | 399 | ;; |
d34b0d1e | 400 | microblaze*-*-*) |
401 | cpu_type=microblaze | |
402 | extra_options="${extra_options} g.opt" | |
403 | ;; | |
bb607926 | 404 | mips*-*-*) |
405 | cpu_type=mips | |
805e22b2 | 406 | need_64bit_hwint=yes |
9636921b | 407 | extra_headers="loongson.h" |
64bd95e1 | 408 | extra_options="${extra_options} g.opt mips/mips-tables.opt" |
bb607926 | 409 | ;; |
8372e9ea | 410 | picochip-*-*) |
411 | cpu_type=picochip | |
412 | ;; | |
bb607926 | 413 | powerpc*-*-*) |
414 | cpu_type=rs6000 | |
c22e07a3 | 415 | extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h" |
805e22b2 | 416 | need_64bit_hwint=yes |
cc5ffbb8 | 417 | case x$with_cpu in |
20d6e0e0 | 418 | xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[34567]|xpower6x|xrs64a|xcell|xa2|xe500mc64) |
cc5ffbb8 | 419 | cpu_is_64bit=yes |
420 | ;; | |
421 | esac | |
d41a5879 | 422 | extra_options="${extra_options} g.opt fused-madd.opt rs6000/rs6000-tables.opt" |
805e22b2 | 423 | ;; |
424 | rs6000*-*-*) | |
425 | need_64bit_hwint=yes | |
d41a5879 | 426 | extra_options="${extra_options} g.opt fused-madd.opt rs6000/rs6000-tables.opt" |
805e22b2 | 427 | ;; |
3dbfe3e4 | 428 | score*-*-*) |
429 | cpu_type=score | |
d1e5a65f | 430 | extra_options="${extra_options} g.opt" |
3dbfe3e4 | 431 | ;; |
bb607926 | 432 | sparc*-*-*) |
433 | cpu_type=sparc | |
9e64c9a4 | 434 | c_target_objs="sparc-c.o" |
435 | cxx_target_objs="sparc-c.o" | |
6b27013f | 436 | extra_headers="visintrin.h" |
1168681b | 437 | need_64bit_hwint=yes |
bb607926 | 438 | ;; |
644459d0 | 439 | spu*-*-*) |
440 | cpu_type=spu | |
441 | need_64bit_hwint=yes | |
442 | ;; | |
805e22b2 | 443 | s390*-*-*) |
37d32fbf | 444 | cpu_type=s390 |
805e22b2 | 445 | need_64bit_hwint=yes |
81470015 | 446 | extra_options="${extra_options} fused-madd.opt" |
805e22b2 | 447 | ;; |
4ee34c70 | 448 | # Note the 'l'; we need to be able to match e.g. "shle" or "shl". |
fc7383ad | 449 | sh[123456789lbe]*-*-* | sh-*-*) |
87e19636 | 450 | cpu_type=sh |
805e22b2 | 451 | need_64bit_hwint=yes |
87e19636 | 452 | ;; |
c5b0bf72 | 453 | v850*-*-*) |
454 | cpu_type=v850 | |
455 | ;; | |
5aa04b01 | 456 | tic6x-*-*) |
457 | cpu_type=c6x | |
458 | extra_headers="c6x_intrinsics.h" | |
459 | extra_options="${extra_options} c6x/c6x-tables.opt" | |
460 | ;; | |
041cf413 | 461 | xtensa*-*-*) |
462 | extra_options="${extra_options} fused-madd.opt" | |
463 | ;; | |
7ce78e23 | 464 | tilegx*-*-*) |
465 | cpu_type=tilegx | |
466 | need_64bit_hwint=yes | |
467 | ;; | |
468 | tilepro-*-*) | |
469 | cpu_type=tilepro | |
470 | need_64bit_hwint=yes | |
471 | ;; | |
bb607926 | 472 | esac |
473 | ||
474 | tm_file=${cpu_type}/${cpu_type}.h | |
20ffb0b1 | 475 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h |
bb607926 | 476 | then |
20ffb0b1 | 477 | tm_p_file=${cpu_type}/${cpu_type}-protos.h |
478 | fi | |
b5ccaa7b | 479 | extra_modes= |
480 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def | |
481 | then | |
482 | extra_modes=${cpu_type}/${cpu_type}-modes.def | |
483 | fi | |
ff05e09e | 484 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}.opt |
485 | then | |
486 | extra_options="${extra_options} ${cpu_type}/${cpu_type}.opt" | |
487 | fi | |
a8456aba | 488 | |
09c6646e | 489 | case ${target} in |
144c3e90 | 490 | i[34567]86-*-*) |
43da04c5 | 491 | if test "x$enable_cld" = xyes; then |
144c3e90 | 492 | tm_defines="${tm_defines} USE_IX86_CLD=1" |
493 | fi | |
fc00a76a | 494 | if test "x$enable_frame_pointer" = xyes; then |
495 | tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1" | |
496 | fi | |
912f2b18 | 497 | tm_file="vxworks-dummy.h ${tm_file}" |
144c3e90 | 498 | ;; |
a8456aba | 499 | x86_64-*-*) |
500 | tm_file="i386/biarch64.h ${tm_file}" | |
43da04c5 | 501 | if test "x$enable_cld" = xyes; then |
144c3e90 | 502 | tm_defines="${tm_defines} USE_IX86_CLD=1" |
503 | fi | |
fc00a76a | 504 | if test "x$enable_frame_pointer" = xyes; then |
505 | tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1" | |
506 | fi | |
912f2b18 | 507 | tm_file="vxworks-dummy.h ${tm_file}" |
a8456aba | 508 | ;; |
509 | esac | |
510 | ||
bb607926 | 511 | # On a.out targets, we need to use collect2. |
09c6646e | 512 | case ${target} in |
bb607926 | 513 | *-*-*aout*) |
514 | use_collect2=yes | |
515 | ;; | |
582b17a6 | 516 | esac |
bb607926 | 517 | |
3d0ed9e7 | 518 | # Common C libraries. |
519 | tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3" | |
520 | ||
805e22b2 | 521 | # Common parts for widely ported systems. |
09c6646e | 522 | case ${target} in |
1025d5b9 | 523 | *-*-darwin*) |
e2e89254 | 524 | tmake_file="t-darwin ${cpu_type}/t-darwin" |
650c26dc | 525 | tm_file="${tm_file} darwin.h" |
526 | case ${target} in | |
9166f36a | 527 | *-*-darwin9*) |
650c26dc | 528 | tm_file="${tm_file} darwin9.h" |
529 | ;; | |
9166f36a | 530 | *-*-darwin[12][0-9]*) |
531 | tm_file="${tm_file} darwin9.h darwin10.h" | |
532 | ;; | |
650c26dc | 533 | esac |
534 | tm_file="${tm_file} ${cpu_type}/darwin.h" | |
1025d5b9 | 535 | tm_p_file="${tm_p_file} darwin-protos.h" |
1025d5b9 | 536 | target_gtfiles="\$(srcdir)/config/darwin.c" |
0c44645a | 537 | extra_options="${extra_options} darwin.opt" |
46f8e3b0 | 538 | c_target_objs="${c_target_objs} darwin-c.o" |
539 | cxx_target_objs="${cxx_target_objs} darwin-c.o" | |
32006f36 | 540 | fortran_target_objs="darwin-f.o" |
c94b1d0e | 541 | target_has_targetcm=yes |
1025d5b9 | 542 | extra_objs="darwin.o" |
a9540fb6 | 543 | extra_gcc_objs="darwin-driver.o" |
3da996b9 | 544 | default_use_cxa_atexit=yes |
ef87fe4c | 545 | use_gcc_stdint=wrap |
1025d5b9 | 546 | case ${enable_threads} in |
547 | "" | yes | posix) thread_file='posix' ;; | |
548 | esac | |
549 | ;; | |
1025d5b9 | 550 | *-*-freebsd*) |
551 | # This is the generic ELF configuration of FreeBSD. Later | |
552 | # machine-specific sections may refine and add to this | |
553 | # configuration. | |
554 | # | |
555 | # Due to tm_file entry ordering issues that vary between cpu | |
556 | # architectures, we only define fbsd_tm_file to allow the | |
557 | # machine-specific section to dictate the final order of all | |
558 | # entries of tm_file with the minor exception that components | |
559 | # of the tm_file set here will always be of the form: | |
560 | # | |
561 | # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h | |
562 | # | |
563 | # The machine-specific section should not tamper with this | |
564 | # ordering but may order all other entries of tm_file as it | |
565 | # pleases around the provided core setting. | |
566 | gas=yes | |
567 | gnu_ld=yes | |
cfb5f9aa | 568 | fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\..*//g'` |
569 | tm_defines="${tm_defines} FBSD_MAJOR=${fbsd_major}" | |
4dc4ff49 | 570 | tmake_file="t-slibgcc" |
1025d5b9 | 571 | case ${enable_threads} in |
572 | no) | |
573 | fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h" | |
574 | ;; | |
5614d3f5 | 575 | "" | yes | posix) |
1025d5b9 | 576 | thread_file='posix' |
1025d5b9 | 577 | ;; |
3ebc7dec | 578 | *) |
1025d5b9 | 579 | echo 'Unknown thread configuration for FreeBSD' |
580 | exit 1 | |
581 | ;; | |
582 | esac | |
c4c8f6ce | 583 | fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h freebsd-stdint.h" |
13c30464 | 584 | extra_options="$extra_options rpath.opt freebsd.opt" |
d52a86c7 | 585 | case ${target} in |
586 | *-*-freebsd[345].*) | |
587 | :;; | |
588 | *) | |
589 | default_use_cxa_atexit=yes;; | |
590 | esac | |
591 | # need_64bit_hwint=yes # system compiler has this for all arch! | |
c4c8f6ce | 592 | use_gcc_stdint=wrap |
1025d5b9 | 593 | ;; |
3bef4012 | 594 | *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu) |
55d8cecf | 595 | extra_options="$extra_options gnu-user.opt" |
338f7557 | 596 | gas=yes |
597 | gnu_ld=yes | |
598 | case ${enable_threads} in | |
599 | "" | yes | posix) thread_file='posix' ;; | |
600 | esac | |
4dc4ff49 | 601 | tmake_file="t-slibgcc" |
72a65e81 | 602 | case $target in |
3bef4012 | 603 | *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-kopensolaris*-gnu) |
72a65e81 | 604 | :;; |
605 | *-*-gnu*) | |
638454a1 | 606 | native_system_header_dir=/include |
607 | ;; | |
72a65e81 | 608 | esac |
66fd9df9 | 609 | # glibc / uclibc / bionic switch. |
610 | # uclibc and bionic aren't usable for GNU/Hurd and neither for GNU/k*BSD. | |
72a65e81 | 611 | case $target in |
612 | *linux*) | |
613 | extra_options="$extra_options linux.opt";; | |
72a65e81 | 614 | esac |
66fd9df9 | 615 | case $target in |
616 | *-*-*android*) | |
617 | tm_defines="$tm_defines DEFAULT_LIBC=LIBC_BIONIC" | |
618 | ;; | |
ee085235 | 619 | *-*-*uclibc*) |
66fd9df9 | 620 | tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC" |
c490c13b | 621 | ;; |
622 | *) | |
66fd9df9 | 623 | tm_defines="$tm_defines DEFAULT_LIBC=LIBC_GLIBC" |
ee085235 | 624 | ;; |
625 | esac | |
66fd9df9 | 626 | # Assume that glibc or uClibc or Bionic are being used and so __cxa_atexit |
627 | # is provided. | |
430e8f92 | 628 | default_use_cxa_atexit=yes |
50388ca3 | 629 | use_gcc_tgmath=no |
f3449a3c | 630 | use_gcc_stdint=wrap |
f1b7ead9 | 631 | # Add Android userspace support to Linux targets. |
632 | case $target in | |
633 | *linux*) | |
634 | tm_file="$tm_file linux-android.h" | |
635 | extra_options="$extra_options linux-android.opt" | |
636 | ;; | |
637 | esac | |
638 | # Enable compilation for Android by default for *android* targets. | |
639 | case $target in | |
640 | *-*-*android*) | |
641 | tm_defines="$tm_defines ANDROID_DEFAULT=1" | |
642 | ;; | |
643 | *) | |
644 | tm_defines="$tm_defines ANDROID_DEFAULT=0" | |
645 | ;; | |
646 | esac | |
338f7557 | 647 | ;; |
4ace673e | 648 | *-*-netbsd*) |
4dc4ff49 | 649 | tmake_file="t-slibgcc" |
338f7557 | 650 | gas=yes |
651 | gnu_ld=yes | |
b7ac288f | 652 | |
338f7557 | 653 | # NetBSD 2.0 and later get POSIX threads enabled by default. |
654 | # Allow them to be explicitly enabled on any other version. | |
655 | case ${enable_threads} in | |
656 | "") | |
657 | case ${target} in | |
658 | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) | |
659 | thread_file='posix' | |
660 | tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS" | |
661 | ;; | |
662 | esac | |
663 | ;; | |
664 | yes | posix) | |
665 | thread_file='posix' | |
666 | tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS" | |
667 | ;; | |
668 | esac | |
9a33b00e | 669 | |
338f7557 | 670 | # NetBSD 2.0 and later provide __cxa_atexit(), which we use by |
671 | # default (unless overridden by --disable-__cxa_atexit). | |
672 | case ${target} in | |
673 | *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) | |
674 | default_use_cxa_atexit=yes | |
675 | ;; | |
676 | esac | |
677 | ;; | |
1025d5b9 | 678 | *-*-openbsd*) |
4dc4ff49 | 679 | tmake_file="t-openbsd" |
338f7557 | 680 | case ${enable_threads} in |
1025d5b9 | 681 | yes) |
338f7557 | 682 | thread_file='posix' |
338f7557 | 683 | ;; |
684 | esac | |
d3ad7bb1 | 685 | case ${target} in |
686 | *-*-openbsd2.*|*-*-openbsd3.[012]) | |
687 | tm_defines="${tm_defines} HAS_LIBC_R=1" ;; | |
688 | esac | |
338f7557 | 689 | ;; |
2fcfea2a | 690 | *-*-rtems*) |
691 | case ${enable_threads} in | |
692 | yes) thread_file='rtems' ;; | |
693 | esac | |
d6959f51 | 694 | extra_options="${extra_options} rtems.opt" |
f3449a3c | 695 | use_gcc_stdint=wrap |
696 | ;; | |
697 | *-*-uclinux*) | |
55d8cecf | 698 | extra_options="$extra_options gnu-user.opt" |
f3449a3c | 699 | use_gcc_stdint=wrap |
d9993a19 | 700 | tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC SINGLE_LIBC" |
2fcfea2a | 701 | ;; |
0c7243ae | 702 | *-*-solaris2*) |
c2e7ebeb | 703 | # i?86-*-solaris2* needs to insert headers between cpu default and |
704 | # Solaris 2 specific ones. | |
705 | sol2_tm_file="dbxelf.h elfos.h ${cpu_type}/sysv4.h sol2.h ${cpu_type}/sol2.h" | |
706 | case ${target} in | |
707 | *-*-solaris2.1[0-9]*) | |
708 | sol2_tm_file="${sol2_tm_file} sol2-10.h" | |
709 | use_gcc_stdint=wrap | |
710 | ;; | |
711 | *) | |
712 | use_gcc_stdint=provide | |
713 | ;; | |
714 | esac | |
715 | if test x$gnu_ld = xyes; then | |
716 | tm_file="usegld.h ${tm_file}" | |
717 | fi | |
718 | if test x$gas = xyes; then | |
719 | tm_file="usegas.h ${tm_file}" | |
720 | fi | |
721 | tm_p_file="${tm_p_file} sol2-protos.h" | |
a997b0d8 | 722 | tmake_file="${tmake_file} t-sol2 t-slibgcc" |
c2e7ebeb | 723 | c_target_objs="${c_target_objs} sol2-c.o" |
16a1895e | 724 | cxx_target_objs="${cxx_target_objs} sol2-c.o sol2-cxx.o" |
725 | extra_objs="sol2.o sol2-stubs.o" | |
0c7243ae | 726 | extra_options="${extra_options} sol2.opt" |
c2e7ebeb | 727 | case ${enable_threads}:${have_pthread_h}:${have_thread_h} in |
728 | "":yes:* | yes:yes:* ) | |
729 | thread_file=posix | |
730 | ;; | |
731 | esac | |
0c7243ae | 732 | ;; |
b0a47c39 | 733 | *-*-*vms*) |
734 | extra_options="${extra_options} vms/vms.opt" | |
735 | xmake_file=vms/x-vms | |
a997b0d8 | 736 | tmake_file="vms/t-vms t-slibgcc" |
ded97e77 | 737 | extra_objs="vms.o" |
738 | target_gtfiles="$target_gtfiles \$(srcdir)/config/vms/vms.c" | |
739 | tm_p_file="${tm_p_file} vms/vms-protos.h" | |
8f852c44 | 740 | xm_file="vms/xm-vms.h" |
09ddc95a | 741 | c_target_objs="vms-c.o" |
742 | cxx_target_objs="vms-c.o" | |
e55b581d | 743 | use_gcc_stdint=provide |
744 | tm_file="${tm_file} vms/vms-stdint.h" | |
b0a47c39 | 745 | if test x$gnu_ld != xyes; then |
746 | # Build wrappers for native case. | |
747 | extra_programs="ld\$(exeext) ar\$(exeext)" | |
748 | tmake_file="$tmake_file vms/t-vmsnative" | |
749 | fi | |
750 | ;; | |
805e22b2 | 751 | *-*-vxworks*) |
338f7557 | 752 | tmake_file=t-vxworks |
e6eccdb3 | 753 | xm_defines=POSIX |
754 | extra_options="${extra_options} vxworks.opt" | |
6c181a06 | 755 | extra_objs=vxworks.o |
d9799238 | 756 | case ${enable_threads} in |
757 | no) ;; | |
758 | "" | yes | vxworks) thread_file='vxworks' ;; | |
759 | *) echo 'Unknown thread configuration for VxWorks'; exit 1 ;; | |
760 | esac | |
338f7557 | 761 | ;; |
430e8f92 | 762 | *-*-elf) |
763 | # Assume that newlib is being used and so __cxa_atexit is provided. | |
764 | default_use_cxa_atexit=yes | |
f3449a3c | 765 | use_gcc_stdint=wrap |
430e8f92 | 766 | ;; |
bb607926 | 767 | esac |
768 | ||
09c6646e | 769 | case ${target} in |
bb607926 | 770 | alpha*-*-linux*) |
f3449a3c | 771 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h glibc-stdint.h" |
0b803a91 | 772 | extra_options="${extra_options} alpha/elf.opt" |
bb607926 | 773 | ;; |
774 | alpha*-*-freebsd*) | |
1307f5d6 | 775 | tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h" |
0b803a91 | 776 | extra_options="${extra_options} alpha/elf.opt" |
bb607926 | 777 | ;; |
778 | alpha*-*-netbsd*) | |
4ace673e | 779 | tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h" |
0b803a91 | 780 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt \ |
781 | alpha/elf.opt" | |
bb607926 | 782 | ;; |
bb607926 | 783 | alpha*-*-openbsd*) |
8e6600a1 | 784 | tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT" |
785 | tm_file="alpha/alpha.h alpha/elf.h openbsd.h openbsd-stdint.h alpha/openbsd.h openbsd-libpthread.h" | |
0b803a91 | 786 | extra_options="${extra_options} openbsd.opt alpha/elf.opt" |
bb607926 | 787 | # default x-alpha is only appropriate for dec-osf. |
bb607926 | 788 | ;; |
73777e7b | 789 | alpha*-dec-*vms*) |
2936855c | 790 | tm_file="${tm_file} vms/vms.h alpha/vms.h" |
4dc4ff49 | 791 | tmake_file="${tmake_file} alpha/t-vms" |
bb607926 | 792 | ;; |
d9799238 | 793 | arm-wrs-vxworks) |
ab39d1bf | 794 | tm_file="elfos.h arm/elf.h arm/aout.h ${tm_file} vx-common.h vxworks.h arm/vxworks.h" |
8afdaa80 | 795 | extra_options="${extra_options} arm/vxworks.opt" |
06469f9e | 796 | tmake_file="${tmake_file} arm/t-arm arm/t-vxworks" |
d9799238 | 797 | ;; |
6af9f7ea | 798 | arm*-*-freebsd*) |
66f02fd0 | 799 | tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h" |
06469f9e | 800 | tmake_file="${tmake_file} arm/t-arm arm/t-strongarm-elf" |
66f02fd0 | 801 | ;; |
f470dade | 802 | arm*-*-netbsdelf*) |
2b6c0e61 | 803 | tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h arm/arm.h arm/netbsd-elf.h" |
f466b0a0 | 804 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
4dc4ff49 | 805 | tmake_file="${tmake_file} arm/t-arm" |
f470dade | 806 | ;; |
c806acc4 | 807 | arm*-*-linux*) # ARM GNU/Linux with ELF |
deb14f24 | 808 | tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" |
fcc91c04 | 809 | case $target in |
736a63d4 | 810 | arm*b-*-linux*) |
fcc91c04 | 811 | tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" |
812 | ;; | |
813 | esac | |
4dc4ff49 | 814 | tmake_file="${tmake_file} arm/t-arm" |
6783d878 | 815 | case ${target} in |
ee085235 | 816 | arm*-*-linux-*eabi) |
6783d878 | 817 | tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h" |
a88cbac9 | 818 | tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi" |
4e38d150 | 819 | # Define multilib configuration for arm-linux-androideabi. |
820 | case ${target} in | |
821 | *-androideabi) | |
822 | tmake_file="$tmake_file arm/t-linux-androideabi" | |
823 | ;; | |
824 | esac | |
3ebc7dec | 825 | # The BPABI long long divmod functions return a 128-bit value in |
6783d878 | 826 | # registers r0-r3. Correctly modeling that requires the use of |
827 | # TImode. | |
828 | need_64bit_hwint=yes | |
829 | # The EABI requires the use of __cxa_atexit. | |
830 | default_use_cxa_atexit=yes | |
831 | ;; | |
832 | *) | |
833 | tmake_file="$tmake_file arm/t-linux" | |
834 | ;; | |
835 | esac | |
bb10d7b5 | 836 | with_tls=${with_tls:-gnu} |
6783d878 | 837 | tm_file="$tm_file arm/aout.h arm/arm.h" |
bb607926 | 838 | ;; |
839 | arm*-*-uclinux*) # ARM ucLinux | |
f3449a3c | 840 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/uclinux-elf.h glibc-stdint.h" |
06469f9e | 841 | tmake_file="arm/t-arm arm/t-arm-elf" |
1ad38120 | 842 | case ${target} in |
82d31c10 | 843 | arm*-*-uclinux*eabi) |
1ad38120 | 844 | tm_file="$tm_file arm/bpabi.h arm/uclinux-eabi.h" |
a88cbac9 | 845 | tmake_file="$tmake_file arm/t-bpabi" |
1ad38120 | 846 | # The BPABI long long divmod functions return a 128-bit value in |
847 | # registers r0-r3. Correctly modeling that requires the use of | |
848 | # TImode. | |
849 | need_64bit_hwint=yes | |
850 | # The EABI requires the use of __cxa_atexit. | |
851 | default_use_cxa_atexit=yes | |
852 | esac | |
853 | tm_file="$tm_file arm/aout.h arm/arm.h" | |
bb607926 | 854 | ;; |
bb607926 | 855 | arm*-*-ecos-elf) |
f3449a3c | 856 | tm_file="dbxelf.h elfos.h newlib-stdint.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h" |
0b77e279 | 857 | tmake_file="arm/t-arm arm/t-arm-elf" |
582b17a6 | 858 | ;; |
1ecdfe84 | 859 | arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*) |
3ebc7dec | 860 | # The BPABI long long divmod functions return a 128-bit value in |
30e9913f | 861 | # registers r0-r3. Correctly modeling that requires the use of |
862 | # TImode. | |
863 | need_64bit_hwint=yes | |
a6b58380 | 864 | default_use_cxa_atexit=yes |
30e9913f | 865 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h" |
2219ac9e | 866 | tmake_file="arm/t-arm arm/t-arm-elf" |
30e9913f | 867 | case ${target} in |
35da3667 | 868 | arm*-*-eabi*) |
f1b7ead9 | 869 | tm_file="$tm_file newlib-stdint.h" |
a88cbac9 | 870 | tmake_file="${tmake_file} arm/t-bpabi" |
f3449a3c | 871 | use_gcc_stdint=wrap |
35da3667 | 872 | ;; |
1ecdfe84 | 873 | arm*-*-rtemseabi*) |
874 | tm_file="${tm_file} rtems.h arm/rtems-eabi.h newlib-stdint.h" | |
875 | tmake_file="${tmake_file} arm/t-bpabi t-rtems arm/t-rtems-eabi" | |
876 | ;; | |
30e9913f | 877 | arm*-*-symbianelf*) |
878 | tm_file="${tm_file} arm/symbian.h" | |
35da3667 | 879 | # We do not include t-bpabi for Symbian OS because the system |
880 | # provides its own implementation of the BPABI functions. | |
67de96d2 | 881 | tmake_file="${tmake_file} arm/t-symbian" |
30e9913f | 882 | ;; |
883 | esac | |
884 | tm_file="${tm_file} arm/aout.h arm/arm.h" | |
ccf155b5 | 885 | ;; |
214507b9 | 886 | arm*-*-rtems*) |
f3449a3c | 887 | 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 newlib-stdint.h" |
c6dce142 | 888 | tmake_file="arm/t-arm arm/t-arm-elf t-rtems arm/t-rtems" |
214507b9 | 889 | ;; |
6af9f7ea | 890 | arm*-*-elf) |
f3449a3c | 891 | tm_file="dbxelf.h elfos.h newlib-stdint.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h" |
06469f9e | 892 | tmake_file="arm/t-arm arm/t-arm-elf" |
bb607926 | 893 | ;; |
ebde2335 | 894 | arm*-wince-pe*) |
0ac7fc08 | 895 | tm_file="arm/semi.h arm/aout.h arm/arm.h arm/coff.h dbxcoff.h arm/pe.h arm/wince-pe.h" |
06469f9e | 896 | tmake_file="arm/t-arm arm/t-wince-pe" |
81f6de2f | 897 | extra_options="${extra_options} arm/pe.opt" |
ebde2335 | 898 | extra_objs="pe.o" |
899 | ;; | |
1598c1ed | 900 | avr-*-rtems*) |
b32bc361 | 901 | tm_file="elfos.h avr/elf.h avr/avr.h avr/multilib.h dbxelf.h avr/rtems.h rtems.h newlib-stdint.h" |
902 | tmake_file="avr/t-avr avr/t-multilib t-rtems avr/t-rtems" | |
795cff42 | 903 | extra_gcc_objs="driver-avr.o avr-devices.o" |
47fe598e | 904 | extra_objs="avr-devices.o avr-log.o" |
1598c1ed | 905 | ;; |
bb607926 | 906 | avr-*-*) |
b32bc361 | 907 | tm_file="elfos.h avr/elf.h avr/avr.h avr/multilib.h dbxelf.h newlib-stdint.h" |
908 | tmake_file="avr/t-avr avr/t-multilib" | |
f3449a3c | 909 | use_gcc_stdint=wrap |
795cff42 | 910 | extra_gcc_objs="driver-avr.o avr-devices.o" |
47fe598e | 911 | extra_objs="avr-devices.o avr-log.o" |
bb607926 | 912 | ;; |
9e6a0967 | 913 | bfin*-elf*) |
f3449a3c | 914 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h" |
e0cbe6c1 | 915 | tmake_file=bfin/t-bfin-elf |
916 | use_collect2=no | |
917 | ;; | |
43be3be8 | 918 | bfin*-uclinux*) |
deb14f24 | 919 | tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h gnu-user.h linux.h glibc-stdint.h bfin/uclinux.h" |
e0cbe6c1 | 920 | tmake_file=bfin/t-bfin-uclinux |
e0cbe6c1 | 921 | use_collect2=no |
922 | ;; | |
bce94ab5 | 923 | bfin*-linux-uclibc*) |
deb14f24 | 924 | tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h gnu-user.h linux.h glibc-stdint.h bfin/linux.h ./linux-sysroot-suffix.h" |
a997b0d8 | 925 | tmake_file="bfin/t-bfin-linux t-slibgcc" |
e0cbe6c1 | 926 | use_collect2=no |
927 | ;; | |
4a7fad64 | 928 | bfin*-rtems*) |
b4cebe6e | 929 | tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/rtems.h rtems.h newlib-stdint.h" |
9213d2eb | 930 | tmake_file="t-rtems bfin/t-rtems" |
e0cbe6c1 | 931 | ;; |
9e6a0967 | 932 | bfin*-*) |
f3449a3c | 933 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h" |
e0cbe6c1 | 934 | use_collect2=no |
f3449a3c | 935 | use_gcc_stdint=wrap |
e0cbe6c1 | 936 | ;; |
b9fdd12b | 937 | cr16-*-elf) |
938 | tm_file="elfos.h ${tm_file}" | |
939 | tmake_file="${tmake_file} cr16/t-cr16 " | |
940 | use_collect2=no | |
941 | ;; | |
9b9e3455 | 942 | crisv32-*-elf | crisv32-*-none) |
f3449a3c | 943 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
9b9e3455 | 944 | tmake_file="cris/t-cris" |
945 | target_cpu_default=32 | |
946 | gas=yes | |
947 | extra_options="${extra_options} cris/elf.opt" | |
f3449a3c | 948 | use_gcc_stdint=wrap |
9b9e3455 | 949 | ;; |
e03f789f | 950 | cris-*-elf | cris-*-none) |
f3449a3c | 951 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
e03f789f | 952 | tmake_file="cris/t-cris cris/t-elfmulti" |
953 | gas=yes | |
c419af1d | 954 | extra_options="${extra_options} cris/elf.opt" |
f3449a3c | 955 | use_gcc_stdint=wrap |
e03f789f | 956 | ;; |
9b9e3455 | 957 | crisv32-*-linux* | cris-*-linux*) |
deb14f24 | 958 | tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h glibc-stdint.h cris/linux.h" |
1afa774a | 959 | # We need to avoid using t-linux, so override default tmake_file |
a997b0d8 | 960 | tmake_file="cris/t-cris cris/t-linux t-slibgcc" |
c419af1d | 961 | extra_options="${extra_options} cris/linux.opt" |
9b9e3455 | 962 | case $target in |
963 | cris-*-*) | |
964 | target_cpu_default=10 | |
965 | ;; | |
966 | crisv32-*-*) | |
967 | target_cpu_default=32 | |
968 | ;; | |
969 | esac | |
e03f789f | 970 | ;; |
d19f5793 | 971 | epiphany-*-elf ) |
972 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" | |
973 | tmake_file="epiphany/t-epiphany" | |
974 | extra_options="${extra_options} fused-madd.opt" | |
975 | extra_objs="$extra_objs mode-switch-use.o resolve-sw-modes.o" | |
976 | tm_defines="${tm_defines} EPIPHANY_STACK_OFFSET=${with_stack_offset:-8}" | |
977 | extra_headers="epiphany_intrinsics.h" | |
978 | ;; | |
bb607926 | 979 | fr30-*-elf) |
ecf20f53 | 980 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
bb607926 | 981 | ;; |
efb6037d | 982 | frv-*-elf) |
b1319ddf | 983 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
efb6037d | 984 | tmake_file=frv/t-frv |
985 | ;; | |
3e7f6cce | 986 | frv-*-*linux*) |
b1319ddf | 987 | tm_file="dbxelf.h elfos.h ${tm_file} \ |
deb14f24 | 988 | gnu-user.h linux.h glibc-stdint.h frv/linux.h" |
1afa774a | 989 | tmake_file="${tmake_file} frv/t-frv frv/t-linux" |
3e7f6cce | 990 | ;; |
be52b6d8 | 991 | moxie-*-elf) |
992 | gas=yes | |
993 | gnu_ld=yes | |
01a092a9 | 994 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
84600db5 | 995 | tmake_file="${tmake_file} moxie/t-moxie" |
be52b6d8 | 996 | ;; |
447e8aaa | 997 | moxie-*-uclinux*) |
998 | gas=yes | |
999 | gnu_ld=yes | |
deb14f24 | 1000 | tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h glibc-stdint.h moxie/uclinux.h" |
84600db5 | 1001 | tmake_file="${tmake_file} moxie/t-moxie" |
447e8aaa | 1002 | ;; |
c4fa0b2a | 1003 | moxie-*-rtems*) |
84600db5 | 1004 | tmake_file="${tmake_file} moxie/t-moxie t-rtems" |
c4fa0b2a | 1005 | tm_file="moxie/moxie.h dbxelf.h elfos.h moxie/rtems.h rtems.h newlib-stdint.h" |
1006 | ;; | |
02fe7cca | 1007 | h8300-*-rtems*) |
237490bf | 1008 | tmake_file="h8300/t-h8300 t-rtems h8300/t-rtems" |
f3449a3c | 1009 | tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h h8300/rtems.h rtems.h newlib-stdint.h" |
02fe7cca | 1010 | ;; |
15b65932 | 1011 | h8300-*-elf*) |
237490bf | 1012 | tmake_file="h8300/t-h8300" |
f3449a3c | 1013 | tm_file="h8300/h8300.h dbxelf.h elfos.h newlib-stdint.h h8300/elf.h" |
15b65932 | 1014 | ;; |
6af9f7ea | 1015 | hppa*64*-*-linux*) |
8ab32933 | 1016 | target_cpu_default="MASK_PA_11|MASK_PA_20" |
deb14f24 | 1017 | tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h gnu-user.h linux.h \ |
f3449a3c | 1018 | glibc-stdint.h pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h \ |
1019 | pa/pa64-linux.h" | |
6630177d | 1020 | gas=yes gnu_ld=yes |
805e22b2 | 1021 | need_64bit_hwint=yes |
6630177d | 1022 | ;; |
6af9f7ea | 1023 | hppa*-*-linux*) |
8ab32933 | 1024 | target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS" |
deb14f24 | 1025 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h pa/pa-linux.h \ |
6630177d | 1026 | pa/pa32-regs.h pa/pa32-linux.h" |
bb607926 | 1027 | ;; |
0ac7fc08 | 1028 | # port not yet contributed. |
1029 | #hppa*-*-openbsd*) | |
8ab32933 | 1030 | # target_cpu_default="MASK_PA_11" |
0ac7fc08 | 1031 | # ;; |
8ab32933 | 1032 | hppa[12]*-*-hpux10*) |
1033 | case ${target} in | |
1034 | hppa1.1-*-* | hppa2*-*-*) | |
1035 | target_cpu_default="MASK_PA_11" | |
1036 | ;; | |
1037 | esac | |
1038 | tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \ | |
1039 | pa/pa-hpux.h pa/pa-hpux10.h" | |
4d15365c | 1040 | extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux10.opt" |
8ab32933 | 1041 | case ${target} in |
1042 | *-*-hpux10.[1-9]*) | |
1043 | tm_file="${tm_file} pa/pa-hpux1010.h" | |
bd57250e | 1044 | extra_options="${extra_options} pa/pa-hpux1010.opt" |
8ab32933 | 1045 | ;; |
bb607926 | 1046 | esac |
c0045c9e | 1047 | use_gcc_stdint=provide |
1048 | tm_file="${tm_file} hpux-stdint.h" | |
4dc4ff49 | 1049 | tmake_file="t-slibgcc" |
334c8279 | 1050 | case ${enable_threads} in |
1051 | "") | |
1052 | if test x$have_pthread_h = xyes ; then | |
1053 | tmake_file="${tmake_file} pa/t-dce-thr" | |
1054 | fi | |
1055 | ;; | |
1056 | yes | dce) | |
1057 | tmake_file="${tmake_file} pa/t-dce-thr" | |
1058 | ;; | |
bb607926 | 1059 | esac |
bb607926 | 1060 | use_collect2=yes |
8ad01423 | 1061 | gas=yes |
13b99879 | 1062 | if test "x$with_dwarf2" != x; then |
16b36e36 | 1063 | echo "Warning: dwarf2 debug format is not supported for this target, --with-dwarf2 ignored" 1>&2 |
13b99879 | 1064 | dwarf2=no |
1065 | fi | |
bb607926 | 1066 | ;; |
1067 | hppa*64*-*-hpux11*) | |
8ab32933 | 1068 | target_cpu_default="MASK_PA_11|MASK_PA_20" |
cacee710 | 1069 | if test x$gnu_ld = xyes |
1070 | then | |
8ab32933 | 1071 | target_cpu_default="${target_cpu_default}|MASK_GNU_LD" |
cacee710 | 1072 | fi |
8ad01423 | 1073 | tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \ |
1074 | pa/pa64-regs.h pa/pa-hpux.h pa/pa-hpux1010.h \ | |
1075 | pa/pa-hpux11.h" | |
8ab32933 | 1076 | case ${target} in |
637c9296 | 1077 | *-*-hpux11.[12]*) |
8ab32933 | 1078 | tm_file="${tm_file} pa/pa-hpux1111.h pa/pa-64.h pa/pa64-hpux.h" |
bd57250e | 1079 | extra_options="${extra_options} pa/pa-hpux1111.opt" |
8ab32933 | 1080 | ;; |
637c9296 | 1081 | *-*-hpux11.[3-9]*) |
1082 | tm_file="${tm_file} pa/pa-hpux1131.h pa/pa-64.h pa/pa64-hpux.h" | |
1083 | extra_options="${extra_options} pa/pa-hpux1131.opt" | |
1084 | ;; | |
8ab32933 | 1085 | *) |
1086 | tm_file="${tm_file} pa/pa-64.h pa/pa64-hpux.h" | |
1087 | ;; | |
1088 | esac | |
bd57250e | 1089 | extra_options="${extra_options} pa/pa-hpux.opt \ |
593c1adb | 1090 | pa/pa-hpux1010.opt pa/pa64-hpux.opt hpux11.opt" |
805e22b2 | 1091 | need_64bit_hwint=yes |
4dc4ff49 | 1092 | tmake_file="t-slibgcc" |
120a2fed | 1093 | case x${enable_threads} in |
4699015f | 1094 | x | xyes | xposix ) |
3ebc7dec | 1095 | thread_file=posix |
120a2fed | 1096 | ;; |
1097 | esac | |
8ad01423 | 1098 | gas=yes |
43cb9222 | 1099 | case ${target} in |
1100 | *-*-hpux11.[01]*) | |
1101 | use_gcc_stdint=provide | |
1102 | tm_file="${tm_file} hpux-stdint.h" | |
1103 | ;; | |
1104 | *-*-hpux11.[23]*) | |
1105 | use_gcc_stdint=wrap | |
1106 | tm_file="${tm_file} hpux-stdint.h" | |
1107 | ;; | |
1108 | esac | |
bb607926 | 1109 | ;; |
8ab32933 | 1110 | hppa[12]*-*-hpux11*) |
1111 | case ${target} in | |
1112 | hppa1.1-*-* | hppa2*-*-*) | |
1113 | target_cpu_default="MASK_PA_11" | |
1114 | ;; | |
1115 | esac | |
1116 | tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \ | |
bd57250e | 1117 | pa/pa-hpux.h pa/pa-hpux1010.h pa/pa-hpux11.h" |
593c1adb | 1118 | extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux1010.opt \ |
1119 | hpux11.opt" | |
8ab32933 | 1120 | case ${target} in |
637c9296 | 1121 | *-*-hpux11.[12]*) |
8ab32933 | 1122 | tm_file="${tm_file} pa/pa-hpux1111.h" |
bd57250e | 1123 | extra_options="${extra_options} pa/pa-hpux1111.opt" |
120a2fed | 1124 | ;; |
637c9296 | 1125 | *-*-hpux11.[3-9]*) |
1126 | tm_file="${tm_file} pa/pa-hpux1131.h" | |
1127 | extra_options="${extra_options} pa/pa-hpux1131.opt" | |
1128 | ;; | |
120a2fed | 1129 | esac |
4dc4ff49 | 1130 | tmake_file="t-slibgcc" |
120a2fed | 1131 | case x${enable_threads} in |
4699015f | 1132 | x | xyes | xposix ) |
3ebc7dec | 1133 | thread_file=posix |
120a2fed | 1134 | ;; |
1135 | esac | |
bb607926 | 1136 | use_collect2=yes |
8ad01423 | 1137 | gas=yes |
43cb9222 | 1138 | case ${target} in |
1139 | *-*-hpux11.[01]*) | |
1140 | use_gcc_stdint=provide | |
1141 | tm_file="${tm_file} hpux-stdint.h" | |
1142 | ;; | |
1143 | *-*-hpux11.[23]*) | |
1144 | use_gcc_stdint=wrap | |
1145 | tm_file="${tm_file} hpux-stdint.h" | |
1146 | ;; | |
1147 | esac | |
13b99879 | 1148 | if test "x$with_dwarf2" != x; then |
16b36e36 | 1149 | echo "Warning: dwarf2 debug format is not supported for this target, --with-dwarf2 ignored" 1>&2 |
13b99879 | 1150 | dwarf2=no |
1151 | fi | |
bb607926 | 1152 | ;; |
ffd05090 | 1153 | i[34567]86-*-darwin*) |
ed2b8f56 | 1154 | need_64bit_isa=yes |
ffa7199b | 1155 | # Baseline choice for a machine that allows m64 support. |
1156 | with_cpu=${with_cpu:-core2} | |
a997b0d8 | 1157 | tmake_file="${tmake_file} t-slibgcc" |
ffd05090 | 1158 | ;; |
4a839b30 | 1159 | x86_64-*-darwin*) |
ffa7199b | 1160 | with_cpu=${with_cpu:-core2} |
a997b0d8 | 1161 | tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc" |
4a839b30 | 1162 | tm_file="${tm_file} ${cpu_type}/darwin64.h" |
1163 | ;; | |
bb607926 | 1164 | i[34567]86-*-elf*) |
f3449a3c | 1165 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h" |
bc831fe3 | 1166 | ;; |
1167 | x86_64-*-elf*) | |
f3449a3c | 1168 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h" |
bb607926 | 1169 | ;; |
bb607926 | 1170 | i[34567]86-*-freebsd*) |
d2307a72 | 1171 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h" |
a8456aba | 1172 | ;; |
1173 | x86_64-*-freebsd*) | |
d2307a72 | 1174 | 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 | 1175 | ;; |
f406b863 | 1176 | i[34567]86-*-netbsdelf*) |
d2307a72 | 1177 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h" |
f466b0a0 | 1178 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
f406b863 | 1179 | ;; |
8bc47d57 | 1180 | x86_64-*-netbsd*) |
d2307a72 | 1181 | 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" |
f466b0a0 | 1182 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
8bc47d57 | 1183 | ;; |
d3ad7bb1 | 1184 | i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) |
0ac7fc08 | 1185 | 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" |
1a0fb050 | 1186 | extra_options="${extra_options} openbsd.opt" |
c7be79ca | 1187 | # needed to unconfuse gdb |
237490bf | 1188 | tmake_file="${tmake_file} t-openbsd i386/t-openbsd" |
bb607926 | 1189 | # we need collect2 until our bug is fixed... |
1190 | use_collect2=yes | |
1191 | ;; | |
d3ad7bb1 | 1192 | i[34567]86-*-openbsd*) |
bcc9ac22 | 1193 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h" |
8e6600a1 | 1194 | tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/openbsdelf.h" |
1a0fb050 | 1195 | extra_options="${extra_options} openbsd.opt" |
d3ad7bb1 | 1196 | gas=yes |
1197 | gnu_ld=yes | |
d3ad7bb1 | 1198 | ;; |
3bef4012 | 1199 | i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu) |
6396cc37 | 1200 | # Intel 80386's running GNU/* |
bb607926 | 1201 | # with ELF format using glibc 2 |
6ee152ce | 1202 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h" |
6396cc37 | 1203 | case ${target} in |
54bb64fb | 1204 | i[34567]86-*-linux*) |
6ee152ce | 1205 | tm_file="${tm_file} linux.h" |
1c6e0788 | 1206 | # Assume modern glibc |
1207 | default_gnu_indirect_function=yes | |
54bb64fb | 1208 | if test x$enable_targets = xall; then |
059631af | 1209 | tm_file="${tm_file} i386/x86-64.h i386/gnu-user64.h i386/linux64.h" |
54bb64fb | 1210 | tm_defines="${tm_defines} TARGET_BI_ARCH=1" |
b3fd46a0 | 1211 | tmake_file="${tmake_file} i386/t-linux64" |
596b2ba3 | 1212 | x86_multilibs="${with_multilib_list}" |
1213 | if test "$x86_multilibs" = "default"; then | |
1214 | x86_multilibs="m64,m32" | |
1215 | fi | |
1216 | x86_multilibs=`echo $x86_multilibs | sed -e 's/,/ /g'` | |
1217 | for x86_multilib in ${x86_multilibs}; do | |
1218 | case ${x86_multilib} in | |
1219 | m32 | m64 | mx32) | |
1220 | TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${x86_multilib}" | |
1221 | ;; | |
1222 | *) | |
1223 | echo "--with-multilib-list=${x86_with_multilib} not supported." | |
1224 | exit 1 | |
1225 | esac | |
1226 | done | |
1227 | TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'` | |
ed2b8f56 | 1228 | need_64bit_isa=yes |
54bb64fb | 1229 | case X"${with_cpu}" in |
8991ae0a | 1230 | Xgeneric|Xatom|Xcore2|Xcorei7|Xcorei7-avx|Xnocona|Xx86-64|Xbdver2|Xbdver1|Xbtver1|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) |
54bb64fb | 1231 | ;; |
1232 | X) | |
f067c6b7 | 1233 | if test x$with_cpu_64 = x; then |
1234 | with_cpu_64=generic | |
1235 | fi | |
54bb64fb | 1236 | ;; |
1237 | *) | |
1238 | echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 | |
8991ae0a | 1239 | echo "generic atom core2 corei7 corei7-avx nocona x86-64 bdver2 bdver1 btver1 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 |
54bb64fb | 1240 | exit 1 |
1241 | ;; | |
1242 | esac | |
1243 | else | |
059631af | 1244 | tm_file="${tm_file} i386/gnu-user.h i386/linux.h" |
54bb64fb | 1245 | fi |
1246 | ;; | |
2c6c4996 | 1247 | i[34567]86-*-knetbsd*-gnu) |
1248 | tm_file="${tm_file} i386/gnu-user.h knetbsd-gnu.h i386/knetbsd-gnu.h" | |
1249 | ;; | |
1250 | i[34567]86-*-kfreebsd*-gnu) | |
1251 | tm_file="${tm_file} i386/gnu-user.h kfreebsd-gnu.h i386/kfreebsd-gnu.h" | |
1252 | ;; | |
1253 | i[34567]86-*-kopensolaris*-gnu) | |
1254 | tm_file="${tm_file} i386/gnu-user.h kopensolaris-gnu.h i386/kopensolaris-gnu.h" | |
1255 | ;; | |
1256 | i[34567]86-*-gnu*) | |
1257 | tm_file="$tm_file i386/gnu-user.h gnu.h i386/gnu.h" | |
1258 | ;; | |
6396cc37 | 1259 | esac |
bb607926 | 1260 | ;; |
28a6c5e3 | 1261 | x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu) |
6ee152ce | 1262 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h \ |
1263 | i386/x86-64.h i386/gnu-user64.h" | |
28a6c5e3 | 1264 | case ${target} in |
1c6e0788 | 1265 | x86_64-*-linux*) |
2c6c4996 | 1266 | tm_file="${tm_file} linux.h i386/linux64.h" |
1267 | # Assume modern glibc | |
1268 | default_gnu_indirect_function=yes | |
1269 | ;; | |
1270 | x86_64-*-kfreebsd*-gnu) | |
1271 | tm_file="${tm_file} kfreebsd-gnu.h i386/kfreebsd-gnu64.h" | |
1272 | ;; | |
1273 | x86_64-*-knetbsd*-gnu) | |
1274 | tm_file="${tm_file} knetbsd-gnu.h" | |
1275 | ;; | |
28a6c5e3 | 1276 | esac |
237490bf | 1277 | tmake_file="${tmake_file} i386/t-linux64" |
596b2ba3 | 1278 | x86_multilibs="${with_multilib_list}" |
1279 | if test "$x86_multilibs" = "default"; then | |
1280 | x86_multilibs="m64,m32" | |
1281 | fi | |
1282 | x86_multilibs=`echo $x86_multilibs | sed -e 's/,/ /g'` | |
1283 | for x86_multilib in ${x86_multilibs}; do | |
1284 | case ${x86_multilib} in | |
1285 | m32 | m64 | mx32) | |
1286 | TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${x86_multilib}" | |
1287 | ;; | |
1288 | *) | |
1289 | echo "--with-multilib-list=${x86_with_multilib} not supported." | |
1290 | exit 1 | |
1291 | esac | |
1292 | done | |
1293 | TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'` | |
5c66405b | 1294 | ;; |
bb607926 | 1295 | i[34567]86-pc-msdosdjgpp*) |
1296 | xm_file=i386/xm-djgpp.h | |
8c35683d | 1297 | tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h i386/djgpp-stdint.h" |
638454a1 | 1298 | native_system_header_dir=/dev/env/DJDIR/include |
0c44645a | 1299 | extra_options="${extra_options} i386/djgpp.opt" |
bb607926 | 1300 | gnu_ld=yes |
1301 | gas=yes | |
a47075bb | 1302 | use_gcc_stdint=wrap |
bb607926 | 1303 | ;; |
bb607926 | 1304 | i[34567]86-*-lynxos*) |
d895dbf9 | 1305 | xm_defines=POSIX |
1306 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/lynx.h lynx.h" | |
237490bf | 1307 | tmake_file="${tmake_file} t-lynx" |
0c44645a | 1308 | extra_options="${extra_options} lynx.opt" |
d895dbf9 | 1309 | thread_file=lynx |
1310 | gnu_ld=yes | |
1311 | gas=yes | |
bb607926 | 1312 | ;; |
b1aac5f5 | 1313 | i[34567]86-*-nto-qnx*) |
2b90ba90 | 1314 | tm_file="${tm_file} i386/att.h dbxelf.h tm-dwarf2.h elfos.h i386/unix.h i386/nto.h" |
9453823e | 1315 | extra_options="${extra_options} i386/nto.opt" |
b1aac5f5 | 1316 | gnu_ld=yes |
1317 | gas=yes | |
1318 | ;; | |
41e38a87 | 1319 | i[34567]86-*-rtems*) |
f3449a3c | 1320 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h newlib-stdint.h" |
63abf89e | 1321 | tmake_file="${tmake_file} i386/t-rtems t-rtems" |
bb607926 | 1322 | ;; |
14f27bc6 | 1323 | i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
c2e7ebeb | 1324 | tm_file="${tm_file} i386/unix.h i386/att.h ${sol2_tm_file}" |
6f5b6a64 | 1325 | # Set default arch_32 to pentium4, tune_32 to generic like the other |
1326 | # i386 targets, although config.guess defaults to i386-pc-solaris2*. | |
05157f42 | 1327 | case ${target} in |
264a5d11 | 1328 | *-*-solaris2.9*) |
1329 | # Solaris 9/x86 cannot execute SSE/SSE2 instructions by default. | |
949e49d0 | 1330 | with_arch_32=${with_arch_32:-pentiumpro} |
05157f42 | 1331 | ;; |
1332 | *) | |
1333 | with_arch_32=${with_arch_32:-pentium4} | |
1334 | ;; | |
1335 | esac | |
be67f556 | 1336 | with_tune_32=${with_tune_32:-generic} |
8fde03ba | 1337 | case ${target} in |
517cabaa | 1338 | *-*-solaris2.1[0-9]*) |
c2e7ebeb | 1339 | tm_file="${tm_file} i386/x86-64.h i386/sol2-bi.h sol2-bi.h" |
27559c4e | 1340 | tm_defines="${tm_defines} TARGET_BI_ARCH=1" |
c2e7ebeb | 1341 | tmake_file="$tmake_file i386/t-sol2-64" |
ed2b8f56 | 1342 | need_64bit_isa=yes |
a2e127ea | 1343 | case X"${with_cpu}" in |
8991ae0a | 1344 | Xgeneric|Xatom|Xcore2|Xcorei7|Xcorei7-avx|Xnocona|Xx86-64|Xbdver2|Xbdver1|Xbtver1|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) |
a2e127ea | 1345 | ;; |
1346 | X) | |
f067c6b7 | 1347 | if test x$with_cpu_64 = x; then |
1348 | with_cpu_64=generic | |
1349 | fi | |
a2e127ea | 1350 | ;; |
1351 | *) | |
1352 | echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 | |
8991ae0a | 1353 | echo "generic atom core2 corei7 corei7-avx nocona x86-64 bdver2 bdver1 btver1 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 |
a2e127ea | 1354 | exit 1 |
1355 | ;; | |
1356 | esac | |
27559c4e | 1357 | ;; |
334c8279 | 1358 | esac |
bb607926 | 1359 | ;; |
2adf99fa | 1360 | i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae) |
2b90ba90 | 1361 | tm_file="${tm_file} i386/unix.h i386/att.h elfos.h vx-common.h" |
2adf99fa | 1362 | case ${target} in |
1363 | *-vxworksae*) | |
c77a1c92 | 1364 | tm_file="${tm_file} vxworksae.h i386/vx-common.h i386/vxworksae.h" |
2adf99fa | 1365 | tmake_file="${tmake_file} i386/t-vxworks i386/t-vxworksae" |
1366 | ;; | |
1367 | *) | |
c77a1c92 | 1368 | tm_file="${tm_file} vxworks.h i386/vx-common.h i386/vxworks.h" |
2adf99fa | 1369 | tmake_file="${tmake_file} i386/t-vxworks" |
1370 | ;; | |
1371 | esac | |
d9799238 | 1372 | ;; |
17b3d2a8 | 1373 | i[34567]86-*-cygwin*) |
615180dd | 1374 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h i386/cygwin-stdint.h" |
e1688c3e | 1375 | xm_file=i386/xm-cygwin.h |
4dc4ff49 | 1376 | tmake_file="${tmake_file} i386/t-cygming t-slibgcc" |
62b4d90e | 1377 | target_gtfiles="\$(srcdir)/config/i386/winnt.c" |
0c44645a | 1378 | extra_options="${extra_options} i386/cygming.opt" |
6c1e551f | 1379 | extra_objs="winnt.o winnt-stubs.o" |
2637551a | 1380 | c_target_objs="${c_target_objs} msformat-c.o" |
1381 | cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" | |
bb607926 | 1382 | if test x$enable_threads = xyes; then |
8728e49b | 1383 | thread_file='posix' |
bb607926 | 1384 | fi |
615180dd | 1385 | use_gcc_stdint=wrap |
bb607926 | 1386 | ;; |
c8c521bb | 1387 | i[34567]86-*-mingw* | x86_64-*-mingw*) |
b550f036 | 1388 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h" |
e1688c3e | 1389 | xm_file=i386/xm-mingw32.h |
a4f7c8f7 | 1390 | case ${target} in |
1391 | x86_64-*-* | *-w64-*) | |
ed2b8f56 | 1392 | need_64bit_isa=yes |
a4f7c8f7 | 1393 | ;; |
1394 | *) | |
1395 | ;; | |
1396 | esac | |
b550f036 | 1397 | if test x$enable_threads = xposix ; then |
1398 | tm_file="${tm_file} i386/mingw-pthread.h" | |
1399 | fi | |
1400 | tm_file="${tm_file} i386/mingw32.h" | |
72f432d4 | 1401 | # This makes the logic if mingw's or the w64 feature set has to be used |
1402 | case ${target} in | |
1403 | *-w64-*) | |
ac0366be | 1404 | user_headers_inc_next_post="${user_headers_inc_next_post} float.h" |
1405 | user_headers_inc_next_pre="${user_headers_inc_next_pre} stddef.h stdarg.h" | |
72f432d4 | 1406 | tm_file="${tm_file} i386/mingw-w64.h" |
a4f7c8f7 | 1407 | if test x$enable_targets = xall; then |
1408 | tm_defines="${tm_defines} TARGET_BI_ARCH=1" | |
1409 | case X"${with_cpu}" in | |
8991ae0a | 1410 | Xgeneric|Xatom|Xcore2|Xcorei7|Xcorei7-avx|Xnocona|Xx86-64|Xbdver2|Xbdver1|Xbtver1|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx|Xathlon64-sse3|Xk8-sse3|Xopteron-sse3) |
a4f7c8f7 | 1411 | ;; |
1412 | X) | |
1413 | if test x$with_cpu_64 = x; then | |
1414 | with_cpu_64=generic | |
1415 | fi | |
1416 | ;; | |
1417 | *) | |
1418 | echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 | |
8991ae0a | 1419 | echo "generic atom core2 corei7 Xcorei7-avx nocona x86-64 bdver2 bdver1 btver1 amdfam10 barcelona k8 opteron athlon64 athlon-fx athlon64-sse3 k8-sse3 opteron-sse3" 1>&2 |
a4f7c8f7 | 1420 | exit 1 |
1421 | ;; | |
1422 | esac | |
1423 | fi | |
72f432d4 | 1424 | ;; |
1425 | *) | |
72f432d4 | 1426 | ;; |
1427 | esac | |
1428 | tm_file="${tm_file} i386/mingw-stdint.h" | |
a997b0d8 | 1429 | tmake_file="${tmake_file} i386/t-cygming t-slibgcc" |
0767c2a8 | 1430 | case ${target} in |
aca9e986 | 1431 | x86_64-w64-*) |
0767c2a8 | 1432 | tmake_file="${tmake_file} i386/t-mingw-w64" |
1433 | ;; | |
aca9e986 | 1434 | i[34567]86-w64-*) |
1435 | tmake_file="${tmake_file} i386/t-mingw-w32" | |
1436 | ;; | |
0767c2a8 | 1437 | esac |
638454a1 | 1438 | native_system_header_dir=/mingw/include |
62b4d90e | 1439 | target_gtfiles="\$(srcdir)/config/i386/winnt.c" |
78e16ab5 | 1440 | extra_options="${extra_options} i386/cygming.opt i386/mingw.opt" |
72f432d4 | 1441 | case ${target} in |
1442 | *-w64-*) | |
1443 | extra_options="${extra_options} i386/mingw-w64.opt" | |
1444 | ;; | |
1445 | *) | |
1446 | ;; | |
1447 | esac | |
6c1e551f | 1448 | extra_objs="winnt.o winnt-stubs.o" |
46f8e3b0 | 1449 | c_target_objs="${c_target_objs} msformat-c.o" |
1450 | cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" | |
d91ef9b0 | 1451 | default_use_cxa_atexit=yes |
8953973a | 1452 | use_gcc_stdint=wrap |
c89ba7eb | 1453 | case ${enable_threads} in |
4dc4ff49 | 1454 | "" | yes | win32) |
1455 | thread_file='win32' | |
b550f036 | 1456 | ;; |
1457 | posix) | |
1458 | thread_file='posix' | |
b550f036 | 1459 | ;; |
c89ba7eb | 1460 | esac |
c8c521bb | 1461 | case ${target} in |
1462 | *mingw32crt*) | |
1463 | tm_file="${tm_file} i386/crtdll.h" | |
1464 | ;; | |
1465 | *mingw32msv* | *mingw*) | |
170a37e8 | 1466 | ;; |
bb607926 | 1467 | esac |
1468 | ;; | |
af8e12d0 | 1469 | i[34567]86-*-interix[3-9]*) |
1470 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h" | |
46f8e3b0 | 1471 | tmake_file="${tmake_file} i386/t-interix" |
af8e12d0 | 1472 | extra_options="${extra_options} rpath.opt i386/interix.opt" |
1473 | extra_objs="winnt.o winnt-stubs.o" | |
62b4d90e | 1474 | target_gtfiles="\$(srcdir)/config/i386/winnt.c" |
49d31318 | 1475 | if test x$enable_threads = xyes ; then |
1476 | thread_file='posix' | |
1477 | fi | |
1478 | if test x$stabs = xyes ; then | |
1479 | tm_file="${tm_file} dbxcoff.h" | |
1480 | fi | |
1481 | ;; | |
bb607926 | 1482 | ia64*-*-elf*) |
f3449a3c | 1483 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h ia64/sysv4.h ia64/elf.h" |
bb607926 | 1484 | tmake_file="ia64/t-ia64" |
1485 | target_cpu_default="0" | |
1486 | if test x$gas = xyes | |
1487 | then | |
1488 | target_cpu_default="${target_cpu_default}|MASK_GNU_AS" | |
1489 | fi | |
1490 | if test x$gnu_ld = xyes | |
1491 | then | |
1492 | target_cpu_default="${target_cpu_default}|MASK_GNU_LD" | |
1493 | fi | |
bb607926 | 1494 | ;; |
49b2e77d | 1495 | ia64*-*-freebsd*) |
0670e09b | 1496 | tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h" |
49b2e77d | 1497 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" |
1498 | tmake_file="${tmake_file} ia64/t-ia64" | |
49b2e77d | 1499 | ;; |
bb607926 | 1500 | ia64*-*-linux*) |
deb14f24 | 1501 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ia64/sysv4.h ia64/linux.h" |
a997b0d8 | 1502 | tmake_file="${tmake_file} ia64/t-ia64 t-libunwind" |
bb607926 | 1503 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" |
bb607926 | 1504 | ;; |
d838d791 | 1505 | ia64*-*-hpux*) |
73f49bc2 | 1506 | tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/hpux.h" |
a997b0d8 | 1507 | tmake_file="ia64/t-ia64 ia64/t-hpux t-slibgcc" |
d838d791 | 1508 | target_cpu_default="MASK_GNU_AS" |
120a2fed | 1509 | case x$enable_threads in |
c5e978ad | 1510 | x | xyes | xposix ) |
120a2fed | 1511 | thread_file=posix |
1512 | ;; | |
1513 | esac | |
297cec9a | 1514 | use_collect2=no |
23ebf0fe | 1515 | c_target_objs="ia64-c.o" |
1516 | cxx_target_objs="ia64-c.o" | |
593c1adb | 1517 | extra_options="${extra_options} ia64/ilp32.opt hpux11.opt" |
43cb9222 | 1518 | use_gcc_stdint=wrap |
1519 | tm_file="${tm_file} hpux-stdint.h" | |
637c9296 | 1520 | case ${target} in |
1521 | *-*-hpux11.3*) | |
1522 | tm_file="${tm_file} ia64/hpux-unix2003.h" | |
1523 | ;; | |
1524 | esac | |
d838d791 | 1525 | ;; |
9b9a2528 | 1526 | ia64-hp-*vms*) |
8f852c44 | 1527 | tm_file="${tm_file} elfos.h ia64/sysv4.h vms/vms.h ia64/vms.h" |
1528 | tmake_file="${tmake_file} ia64/t-ia64" | |
9b9a2528 | 1529 | target_cpu_default="0" |
1530 | if test x$gas = xyes | |
1531 | then | |
1532 | target_cpu_default="${target_cpu_default}|MASK_GNU_AS" | |
1533 | fi | |
b0a47c39 | 1534 | extra_options="${extra_options} ia64/vms.opt" |
9b9a2528 | 1535 | ;; |
54f12d76 | 1536 | iq2000*-*-elf*) |
773dfb93 | 1537 | tm_file="elfos.h newlib-stdint.h iq2000/iq2000.h" |
54f12d76 | 1538 | out_file=iq2000/iq2000.c |
54f12d76 | 1539 | md_file=iq2000/iq2000.md |
1540 | ;; | |
f6fe91e8 | 1541 | lm32-*-elf*) |
1542 | tm_file="dbxelf.h elfos.h ${tm_file}" | |
84600db5 | 1543 | tmake_file="${tmake_file} lm32/t-lm32" |
f6fe91e8 | 1544 | ;; |
431df6da | 1545 | lm32-*-rtems*) |
b4cebe6e | 1546 | tm_file="dbxelf.h elfos.h ${tm_file} lm32/rtems.h rtems.h newlib-stdint.h" |
84600db5 | 1547 | tmake_file="${tmake_file} lm32/t-lm32" |
431df6da | 1548 | tmake_file="${tmake_file} t-rtems" |
72f8e79f | 1549 | tmake_file="${tmake_file} lm32/t-rtems" |
431df6da | 1550 | ;; |
f6fe91e8 | 1551 | lm32-*-uclinux*) |
deb14f24 | 1552 | tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h lm32/uclinux-elf.h" |
84600db5 | 1553 | tmake_file="${tmake_file} lm32/t-lm32" |
f6fe91e8 | 1554 | ;; |
bb607926 | 1555 | m32r-*-elf*) |
c876b1f0 | 1556 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
19cd32af | 1557 | ;; |
467dc9aa | 1558 | m32rle-*-elf*) |
c876b1f0 | 1559 | tm_file="dbxelf.h elfos.h newlib-stdint.h m32r/little.h ${tm_file}" |
467dc9aa | 1560 | ;; |
e4c85211 | 1561 | m32r-*-rtems*) |
c876b1f0 | 1562 | tm_file="dbxelf.h elfos.h ${tm_file} m32r/rtems.h rtems.h newlib-stdint.h" |
e4c85211 | 1563 | tmake_file="m32r/t-m32r t-rtems" |
e4c85211 | 1564 | ;; |
467dc9aa | 1565 | m32r-*-linux*) |
deb14f24 | 1566 | tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} m32r/linux.h" |
1afa774a | 1567 | # We override the tmake_file for linux -- why? |
a997b0d8 | 1568 | tmake_file="m32r/t-linux t-slibgcc" |
467dc9aa | 1569 | gnu_ld=yes |
467dc9aa | 1570 | if test x$enable_threads = xyes; then |
1571 | thread_file='posix' | |
1572 | fi | |
1573 | ;; | |
1574 | m32rle-*-linux*) | |
deb14f24 | 1575 | tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h m32r/little.h ${tm_file} m32r/linux.h" |
1afa774a | 1576 | # We override the tmake_file for linux -- why? |
a997b0d8 | 1577 | tmake_file="m32r/t-linux t-slibgcc" |
467dc9aa | 1578 | gnu_ld=yes |
467dc9aa | 1579 | if test x$enable_threads = xyes; then |
1580 | thread_file='posix' | |
1581 | fi | |
1582 | ;; | |
6af9f7ea | 1583 | m68k-*-elf* | fido-*-elf*) |
278e2fd1 | 1584 | case ${target} in |
1585 | fido-*-elf*) | |
1586 | # Check that $with_cpu makes sense. | |
1587 | case $with_cpu in | |
1588 | "" | "fidoa") | |
1589 | ;; | |
1590 | *) | |
1591 | echo "Cannot accept --with-cpu=$with_cpu" | |
1592 | exit 1 | |
1593 | ;; | |
1594 | esac | |
1595 | with_cpu=fidoa | |
1596 | ;; | |
1597 | *) | |
1598 | default_m68k_cpu=68020 | |
1599 | default_cf_cpu=5206 | |
1600 | ;; | |
1601 | esac | |
f3449a3c | 1602 | tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h newlib-stdint.h m68k/m68kemb.h m68k/m68020-elf.h" |
99570287 | 1603 | tm_defines="${tm_defines} MOTOROLA=1" |
278e2fd1 | 1604 | tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-m68kelf" |
1605 | # Add multilibs for targets other than fido. | |
1606 | case ${target} in | |
1607 | fido-*-elf*) | |
1608 | ;; | |
1609 | *) | |
1610 | tmake_file="$tmake_file m68k/t-mlibs" | |
1611 | ;; | |
1612 | esac | |
bb607926 | 1613 | ;; |
6af9f7ea | 1614 | m68k*-*-netbsdelf*) |
f84195ec | 1615 | default_m68k_cpu=68020 |
558b196a | 1616 | default_cf_cpu=5475 |
124c3198 | 1617 | tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h" |
f466b0a0 | 1618 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
99570287 | 1619 | tm_defines="${tm_defines} MOTOROLA=1" |
124c3198 | 1620 | ;; |
984408e9 | 1621 | m68k*-*-openbsd*) |
f84195ec | 1622 | default_m68k_cpu=68020 |
558b196a | 1623 | default_cf_cpu=5475 |
984408e9 | 1624 | # needed to unconfuse gdb |
f84195ec | 1625 | tm_defines="${tm_defines} OBSD_OLD_GAS" |
8e6600a1 | 1626 | tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h m68k/openbsd.h" |
1a0fb050 | 1627 | extra_options="${extra_options} openbsd.opt" |
237490bf | 1628 | tmake_file="t-openbsd m68k/t-openbsd" |
984408e9 | 1629 | # we need collect2 until our bug is fixed... |
1630 | use_collect2=yes | |
1631 | ;; | |
8bc67792 | 1632 | m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux |
1633 | # with uClibc, using the new GNU/Linux-style | |
1634 | # ABI. | |
f84195ec | 1635 | default_m68k_cpu=68020 |
558b196a | 1636 | default_cf_cpu=5206 |
deb14f24 | 1637 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h flat.h m68k/linux.h m68k/uclinux.h ./sysroot-suffix.h" |
99c2a9e3 | 1638 | extra_options="${extra_options} m68k/uclinux.opt" |
d9993a19 | 1639 | tm_defines="${tm_defines} MOTOROLA=1" |
558b196a | 1640 | tmake_file="m68k/t-floatlib m68k/t-uclinux m68k/t-mlibs" |
13285dde | 1641 | ;; |
237490bf | 1642 | m68k-*-linux*) # Motorola m68k's running GNU/Linux |
bb607926 | 1643 | # with ELF format using glibc 2 |
1644 | # aka the GNU/Linux C library 6. | |
f84195ec | 1645 | default_m68k_cpu=68020 |
558b196a | 1646 | default_cf_cpu=5475 |
27f1c610 | 1647 | with_arch=${with_arch:-m68k} |
deb14f24 | 1648 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h m68k/linux.h ./sysroot-suffix.h" |
fbdd0521 | 1649 | extra_options="${extra_options} m68k/ieee.opt" |
99570287 | 1650 | tm_defines="${tm_defines} MOTOROLA=1" |
27f1c610 | 1651 | tmake_file="${tmake_file} m68k/t-floatlib m68k/t-linux m68k/t-mlibs" |
bb607926 | 1652 | ;; |
41e38a87 | 1653 | m68k-*-rtems*) |
f84195ec | 1654 | default_m68k_cpu=68020 |
558b196a | 1655 | default_cf_cpu=5206 |
1656 | tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-crtstuff t-rtems m68k/t-rtems m68k/t-mlibs" | |
f3449a3c | 1657 | tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h newlib-stdint.h" |
99570287 | 1658 | tm_defines="${tm_defines} MOTOROLA=1" |
bb607926 | 1659 | ;; |
bb607926 | 1660 | mcore-*-elf) |
7916fcc3 | 1661 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file} mcore/mcore-elf.h" |
bb607926 | 1662 | tmake_file=mcore/t-mcore |
58a8c75f | 1663 | inhibit_libc=true |
bb607926 | 1664 | ;; |
46222c18 | 1665 | mep-*-*) |
9ddc64c8 | 1666 | tm_file="dbxelf.h elfos.h ${tm_file}" |
46222c18 | 1667 | tmake_file=mep/t-mep |
46222c18 | 1668 | c_target_objs="mep-pragma.o" |
1669 | cxx_target_objs="mep-pragma.o" | |
1670 | if test -d "${srcdir}/../newlib/libc/include" && | |
1671 | test "x$with_headers" = x; then | |
1672 | with_headers=yes | |
1673 | fi | |
1674 | use_gcc_stdint=wrap | |
1675 | ;; | |
d34b0d1e | 1676 | microblaze*-linux*) |
deb14f24 | 1677 | tm_file="${tm_file} dbxelf.h gnu-user.h linux.h microblaze/linux.h" |
d34b0d1e | 1678 | c_target_objs="${c_target_objs} microblaze-c.o" |
1679 | cxx_target_objs="${cxx_target_objs} microblaze-c.o" | |
d34b0d1e | 1680 | ;; |
1681 | microblaze*-*-*) | |
1682 | tm_file="${tm_file} dbxelf.h" | |
1683 | c_target_objs="${c_target_objs} microblaze-c.o" | |
1684 | cxx_target_objs="${cxx_target_objs} microblaze-c.o" | |
1685 | tmake_file="${tmake_file} microblaze/t-microblaze" | |
1686 | ;; | |
4ace673e | 1687 | mips*-*-netbsd*) # NetBSD/mips, either endian. |
b93bf04a | 1688 | target_cpu_default="MASK_ABICALLS" |
0ac7fc08 | 1689 | tm_file="elfos.h ${tm_file} mips/elf.h netbsd.h netbsd-elf.h mips/netbsd.h" |
f466b0a0 | 1690 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
bb607926 | 1691 | ;; |
606c99b0 | 1692 | mips64*-*-linux* | mipsisa64*-*-linux*) |
1f796f40 | 1693 | tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/gnu-user64.h mips/linux64.h" |
9213d2eb | 1694 | tmake_file="${tmake_file} mips/t-linux64" |
42102a26 | 1695 | tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_N32" |
69f36814 | 1696 | case ${target} in |
1697 | mips64el-st-linux-gnu) | |
1698 | tm_file="${tm_file} mips/st.h" | |
1699 | tmake_file="${tmake_file} mips/t-st" | |
1700 | ;; | |
fc84efeb | 1701 | mips64octeon*-*-linux*) |
1702 | tm_defines="${tm_defines} MIPS_CPU_STRING_DEFAULT=\\\"octeon\\\"" | |
1703 | target_cpu_default=MASK_SOFT_FLOAT_ABI | |
1704 | ;; | |
606c99b0 | 1705 | mipsisa64r2*-*-linux*) |
1706 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65" | |
1707 | ;; | |
69f36814 | 1708 | esac |
d0faeb9d | 1709 | gnu_ld=yes |
1710 | gas=yes | |
bc4c18f7 | 1711 | test x$with_llsc != x || with_llsc=yes |
d0faeb9d | 1712 | ;; |
bb607926 | 1713 | mips*-*-linux*) # Linux MIPS, either endian. |
1f796f40 | 1714 | tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h" |
b167b87f | 1715 | if test x$enable_targets = xall; then |
17c6be22 | 1716 | tm_file="${tm_file} mips/gnu-user64.h mips/linux64.h" |
b167b87f | 1717 | tmake_file="${tmake_file} mips/t-linux64" |
b167b87f | 1718 | fi |
09c6646e | 1719 | case ${target} in |
487874ac | 1720 | mipsisa32r2*) |
1721 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33" | |
613a38b0 | 1722 | ;; |
487874ac | 1723 | mipsisa32*) |
1724 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32" | |
613a38b0 | 1725 | esac |
bc4c18f7 | 1726 | test x$with_llsc != x || with_llsc=yes |
bb607926 | 1727 | ;; |
5aeba334 | 1728 | mips*-sde-elf*) |
f3449a3c | 1729 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/sde.h" |
9213d2eb | 1730 | tmake_file="mips/t-sde" |
0b1d266f | 1731 | extra_options="${extra_options} mips/sde.opt" |
68c9bc25 | 1732 | case "${with_newlib}" in |
1733 | yes) | |
1734 | # newlib / libgloss. | |
1735 | ;; | |
1736 | *) | |
1737 | # MIPS toolkit libraries. | |
1738 | tm_file="$tm_file mips/sdemtk.h" | |
1739 | tmake_file="$tmake_file mips/t-sdemtk" | |
68c9bc25 | 1740 | case ${enable_threads} in |
1741 | "" | yes | mipssde) | |
1742 | thread_file='mipssde' | |
1743 | ;; | |
1744 | esac | |
1745 | ;; | |
1746 | esac | |
5aeba334 | 1747 | case ${target} in |
1748 | mipsisa32r2*) | |
1749 | tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32" | |
1750 | ;; | |
1751 | mipsisa32*) | |
1752 | tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_32" | |
1753 | ;; | |
77a32a8e | 1754 | mipsisa64r2*) |
1755 | tm_defines="MIPS_ISA_DEFAULT=65 MIPS_ABI_DEFAULT=ABI_N32" | |
1756 | ;; | |
5aeba334 | 1757 | mipsisa64*) |
1758 | tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_N32" | |
1759 | ;; | |
1760 | esac | |
1761 | ;; | |
7583e786 | 1762 | mipsisa32-*-elf* | mipsisa32el-*-elf* | \ |
1763 | mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \ | |
77a32a8e | 1764 | mipsisa64-*-elf* | mipsisa64el-*-elf* | \ |
1765 | mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*) | |
f3449a3c | 1766 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" |
9213d2eb | 1767 | tmake_file="mips/t-isa3264" |
7583e786 | 1768 | case ${target} in |
1769 | mipsisa32r2*) | |
1770 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33" | |
1771 | ;; | |
1772 | mipsisa32*) | |
1773 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32" | |
1774 | ;; | |
77a32a8e | 1775 | mipsisa64r2*) |
1776 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65" | |
1777 | ;; | |
7583e786 | 1778 | mipsisa64*) |
1779 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64" | |
1780 | ;; | |
1781 | esac | |
1782 | case ${target} in | |
1783 | mipsisa32*-*-elfoabi*) | |
1784 | tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_32" | |
1785 | tm_file="${tm_file} mips/elfoabi.h" | |
1786 | ;; | |
1787 | mipsisa64*-*-elfoabi*) | |
1788 | tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_O64" | |
1789 | tm_file="${tm_file} mips/elfoabi.h" | |
1790 | ;; | |
1791 | *-*-elf*) | |
1792 | tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI" | |
1793 | ;; | |
1794 | esac | |
5381547d | 1795 | ;; |
2857c21b | 1796 | mipsisa64sr71k-*-elf*) |
f3449a3c | 1797 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" |
2857c21b | 1798 | tmake_file=mips/t-sr71k |
b93bf04a | 1799 | target_cpu_default="MASK_64BIT|MASK_FLOAT64" |
515fdcc2 | 1800 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI" |
2857c21b | 1801 | ;; |
19c56034 | 1802 | mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*) |
f3449a3c | 1803 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" |
9213d2eb | 1804 | tmake_file="mips/t-elf mips/t-sb1" |
b93bf04a | 1805 | target_cpu_default="MASK_64BIT|MASK_FLOAT64" |
515fdcc2 | 1806 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64" |
19c56034 | 1807 | ;; |
f4deb416 | 1808 | mips-*-elf* | mipsel-*-elf*) |
f3449a3c | 1809 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" |
9213d2eb | 1810 | tmake_file="mips/t-elf" |
bb607926 | 1811 | ;; |
f4deb416 | 1812 | mips64-*-elf* | mips64el-*-elf*) |
f3449a3c | 1813 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" |
9213d2eb | 1814 | tmake_file="mips/t-elf" |
b93bf04a | 1815 | target_cpu_default="MASK_64BIT|MASK_FLOAT64" |
515fdcc2 | 1816 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64" |
bb607926 | 1817 | ;; |
2857c21b | 1818 | mips64vr-*-elf* | mips64vrel-*-elf*) |
f3449a3c | 1819 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/vr.h mips/elf.h" |
2857c21b | 1820 | tmake_file=mips/t-vr |
9d463647 | 1821 | tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI" |
2857c21b | 1822 | ;; |
f4deb416 | 1823 | mips64orion-*-elf* | mips64orionel-*-elf*) |
f3449a3c | 1824 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elforion.h mips/elf.h" |
9213d2eb | 1825 | tmake_file="mips/t-elf" |
b93bf04a | 1826 | target_cpu_default="MASK_64BIT|MASK_FLOAT64" |
515fdcc2 | 1827 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64" |
bb607926 | 1828 | ;; |
742d48c2 | 1829 | mips*-*-rtems*) |
f3449a3c | 1830 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/rtems.h rtems.h" |
9213d2eb | 1831 | tmake_file="mips/t-elf t-rtems mips/t-rtems" |
bb607926 | 1832 | ;; |
d9799238 | 1833 | mips-wrs-vxworks) |
e49cee06 | 1834 | tm_file="elfos.h ${tm_file} mips/elf.h vx-common.h vxworks.h mips/vxworks.h" |
d9799238 | 1835 | tmake_file="${tmake_file} mips/t-vxworks" |
d9799238 | 1836 | ;; |
f4deb416 | 1837 | mipstx39-*-elf* | mipstx39el-*-elf*) |
f3449a3c | 1838 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/r3900.h mips/elf.h" |
9213d2eb | 1839 | tmake_file="mips/t-r3900" |
bb607926 | 1840 | ;; |
68cbb7e3 | 1841 | mmix-knuth-mmixware) |
f3449a3c | 1842 | tm_file="${tm_file} newlib-stdint.h" |
805e22b2 | 1843 | need_64bit_hwint=yes |
f3449a3c | 1844 | use_gcc_stdint=wrap |
68cbb7e3 | 1845 | ;; |
bb607926 | 1846 | mn10300-*-*) |
05381348 | 1847 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
bb607926 | 1848 | if test x$stabs = xyes |
1849 | then | |
1850 | tm_file="${tm_file} dbx.h" | |
1851 | fi | |
1852 | use_collect2=no | |
f3449a3c | 1853 | use_gcc_stdint=wrap |
bb607926 | 1854 | ;; |
bb607926 | 1855 | pdp11-*-*) |
f3449a3c | 1856 | tm_file="${tm_file} newlib-stdint.h" |
1857 | use_gcc_stdint=wrap | |
bb607926 | 1858 | ;; |
8372e9ea | 1859 | picochip-*) |
f3449a3c | 1860 | tm_file="${tm_file} newlib-stdint.h" |
1861 | use_gcc_stdint=wrap | |
2bd3350b | 1862 | tmake_file="picochip/t-picochip t-pnt16-warn" |
8372e9ea | 1863 | ;; |
0ac7fc08 | 1864 | # port not yet contributed |
1865 | #powerpc-*-openbsd*) | |
a23b9c51 | 1866 | # tmake_file="${tmake_file} rs6000/t-fprules" |
0ac7fc08 | 1867 | # extra_headers= |
1868 | # ;; | |
17ac16a1 | 1869 | powerpc-*-darwin*) |
16ac04e7 | 1870 | extra_options="${extra_options} rs6000/darwin.opt" |
8949381a | 1871 | case ${target} in |
9b1f316f | 1872 | *-darwin1[0-9]* | *-darwin[8-9]*) |
3ebc7dec | 1873 | tmake_file="${tmake_file} rs6000/t-darwin8" |
9b1f316f | 1874 | tm_file="${tm_file} rs6000/darwin8.h" |
1875 | ;; | |
1876 | *-darwin7*) | |
1877 | tm_file="${tm_file} rs6000/darwin7.h" | |
1878 | ;; | |
1879 | *-darwin[0-6]*) | |
1880 | ;; | |
8949381a | 1881 | esac |
a997b0d8 | 1882 | tmake_file="${tmake_file} t-slibgcc" |
25b7153e | 1883 | extra_headers=altivec.h |
17ac16a1 | 1884 | ;; |
84eba009 | 1885 | powerpc64-*-darwin*) |
84eba009 | 1886 | extra_options="${extra_options} ${cpu_type}/darwin.opt" |
a997b0d8 | 1887 | tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc" |
191bb103 | 1888 | tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h" |
84eba009 | 1889 | extra_headers=altivec.h |
1890 | ;; | |
2ac000bb | 1891 | powerpc*-*-freebsd*) |
1892 | tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h" | |
16ac04e7 | 1893 | extra_options="${extra_options} rs6000/sysv4.opt" |
2ac000bb | 1894 | tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" |
1895 | case ${host} in | |
1896 | powerpc64*) | |
1897 | tm_file="${tm_file} rs6000/default64.h rs6000/freebsd64.h" | |
1898 | tmake_file="${tmake_file} rs6000/t-freebsd64" | |
1899 | extra_options="${extra_options} rs6000/linux64.opt" | |
1900 | ;; | |
1901 | *) | |
1902 | tm_file="${tm_file} rs6000/freebsd.h" | |
1903 | ;; | |
1904 | esac | |
327811ee | 1905 | ;; |
93006578 | 1906 | powerpc-*-netbsd*) |
5eeaefac | 1907 | tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h" |
f466b0a0 | 1908 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
5eeaefac | 1909 | tmake_file="${tmake_file} rs6000/t-netbsd" |
16ac04e7 | 1910 | extra_options="${extra_options} rs6000/sysv4.opt" |
93006578 | 1911 | ;; |
6f0a80d3 | 1912 | powerpc-*-eabispe*) |
de784bee | 1913 | tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabispe.h" |
16ac04e7 | 1914 | extra_options="${extra_options} rs6000/sysv4.opt" |
79bbdafd | 1915 | tmake_file="rs6000/t-spe rs6000/t-ppccomm" |
f3449a3c | 1916 | use_gcc_stdint=wrap |
6f0a80d3 | 1917 | ;; |
bbf524e7 | 1918 | powerpc-*-eabisimaltivec*) |
de784bee | 1919 | tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h rs6000/eabialtivec.h" |
16ac04e7 | 1920 | extra_options="${extra_options} rs6000/sysv4.opt" |
a23b9c51 | 1921 | tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm" |
f3449a3c | 1922 | use_gcc_stdint=wrap |
bbf524e7 | 1923 | ;; |
bb607926 | 1924 | powerpc-*-eabisim*) |
de784bee | 1925 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h" |
16ac04e7 | 1926 | extra_options="${extra_options} rs6000/sysv4.opt" |
a23b9c51 | 1927 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
f3449a3c | 1928 | use_gcc_stdint=wrap |
bb607926 | 1929 | ;; |
1930 | powerpc-*-elf*) | |
de784bee | 1931 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h" |
16ac04e7 | 1932 | extra_options="${extra_options} rs6000/sysv4.opt" |
a23b9c51 | 1933 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
bb607926 | 1934 | ;; |
553c09a8 | 1935 | powerpc-*-eabialtivec*) |
de784bee | 1936 | tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabialtivec.h" |
16ac04e7 | 1937 | extra_options="${extra_options} rs6000/sysv4.opt" |
a23b9c51 | 1938 | tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm" |
f3449a3c | 1939 | use_gcc_stdint=wrap |
553c09a8 | 1940 | ;; |
3f5debcf | 1941 | powerpc-xilinx-eabi*) |
de784bee | 1942 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/singlefp.h rs6000/xfpu.h rs6000/xilinx.h" |
8119d935 | 1943 | extra_options="${extra_options} rs6000/sysv4.opt rs6000/xilinx.opt" |
a23b9c51 | 1944 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm rs6000/t-xilinx" |
f3449a3c | 1945 | use_gcc_stdint=wrap |
3f5debcf | 1946 | ;; |
bb607926 | 1947 | powerpc-*-eabi*) |
de784bee | 1948 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h" |
16ac04e7 | 1949 | extra_options="${extra_options} rs6000/sysv4.opt" |
a23b9c51 | 1950 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
f3449a3c | 1951 | use_gcc_stdint=wrap |
bb607926 | 1952 | ;; |
1953 | powerpc-*-rtems*) | |
de784bee | 1954 | tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/rtems.h rtems.h" |
16ac04e7 | 1955 | extra_options="${extra_options} rs6000/sysv4.opt" |
a23b9c51 | 1956 | tmake_file="rs6000/t-fprules rs6000/t-rtems t-rtems rs6000/t-ppccomm" |
bb607926 | 1957 | ;; |
4e5e2802 | 1958 | powerpc-*-linux* | powerpc64-*-linux*) |
de784bee | 1959 | tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h rs6000/sysv4.h" |
16ac04e7 | 1960 | extra_options="${extra_options} rs6000/sysv4.opt" |
17aa03f5 | 1961 | tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" |
8d40ea45 | 1962 | maybe_biarch=yes |
1963 | case ${target} in | |
4e5e2802 | 1964 | powerpc64-*-linux*spe* | powerpc64-*-linux*paired*) |
1965 | echo "*** Configuration ${target} not supported" 1>&2 | |
1966 | exit 1 | |
1967 | ;; | |
8d40ea45 | 1968 | powerpc-*-linux*spe* | powerpc-*-linux*paired*) |
4e5e2802 | 1969 | maybe_biarch= |
1970 | ;; | |
1971 | powerpc64-*-linux*) | |
1972 | test x$with_cpu != x || cpu_is_64bit=yes | |
50ec89c7 | 1973 | maybe_biarch=always |
4e5e2802 | 1974 | ;; |
8d40ea45 | 1975 | esac |
1976 | case ${maybe_biarch}:${enable_targets}:${cpu_is_64bit} in | |
50ec89c7 | 1977 | always:* | yes:*powerpc64* | yes:all:* | yes:*:yes) |
cc5ffbb8 | 1978 | if test x$cpu_is_64bit = xyes; then |
1979 | tm_file="${tm_file} rs6000/default64.h" | |
1980 | fi | |
f3449a3c | 1981 | tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h glibc-stdint.h" |
cc5ffbb8 | 1982 | tmake_file="$tmake_file rs6000/t-linux64" |
e168332d | 1983 | extra_options="${extra_options} rs6000/linux64.opt" |
cc5ffbb8 | 1984 | ;; |
1985 | *) | |
f3449a3c | 1986 | tm_file="${tm_file} rs6000/linux.h glibc-stdint.h" |
cc5ffbb8 | 1987 | ;; |
1988 | esac | |
8d40ea45 | 1989 | case ${target} in |
fef79628 | 1990 | powerpc*-*-linux*ppc476*) |
1991 | tm_file="${tm_file} rs6000/476.h" | |
1992 | extra_options="${extra_options} rs6000/476.opt" ;; | |
8d40ea45 | 1993 | powerpc*-*-linux*altivec*) |
1994 | tm_file="${tm_file} rs6000/linuxaltivec.h" ;; | |
1995 | powerpc*-*-linux*spe*) | |
1996 | tm_file="${tm_file} rs6000/linuxspe.h rs6000/e500.h" ;; | |
1997 | powerpc*-*-linux*paired*) | |
1998 | tm_file="${tm_file} rs6000/750cl.h" ;; | |
1999 | esac | |
197f58fa | 2000 | if test x${enable_secureplt} = xyes; then |
2001 | tm_file="rs6000/secureplt.h ${tm_file}" | |
2002 | fi | |
bb607926 | 2003 | ;; |
e6eccdb3 | 2004 | powerpc-wrs-vxworks|powerpc-wrs-vxworksae) |
de784bee | 2005 | tm_file="${tm_file} elfos.h freebsd-spec.h rs6000/sysv4.h" |
a23b9c51 | 2006 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks" |
16ac04e7 | 2007 | extra_options="${extra_options} rs6000/sysv4.opt" |
805e22b2 | 2008 | extra_headers=ppc-asm.h |
e6eccdb3 | 2009 | case ${target} in |
2010 | *-vxworksae*) | |
a19f368c | 2011 | tm_file="${tm_file} vx-common.h vxworksae.h rs6000/vxworks.h rs6000/e500.h" |
e6eccdb3 | 2012 | tmake_file="${tmake_file} rs6000/t-vxworksae" |
2013 | ;; | |
2014 | *-vxworks*) | |
7c69b636 | 2015 | tm_file="${tm_file} vx-common.h vxworks.h rs6000/vxworks.h rs6000/e500.h" |
e6eccdb3 | 2016 | ;; |
2017 | esac | |
805e22b2 | 2018 | ;; |
d895dbf9 | 2019 | powerpc-*-lynxos*) |
2020 | xm_defines=POSIX | |
2021 | tm_file="${tm_file} dbxelf.h elfos.h rs6000/sysv4.h rs6000/lynx.h lynx.h" | |
2022 | tmake_file="t-lynx rs6000/t-lynx" | |
16ac04e7 | 2023 | extra_options="${extra_options} rs6000/sysv4.opt lynx.opt" |
d895dbf9 | 2024 | thread_file=lynx |
2025 | gnu_ld=yes | |
2026 | gas=yes | |
2027 | ;; | |
bb607926 | 2028 | powerpcle-*-elf*) |
de784bee | 2029 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h" |
a23b9c51 | 2030 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
16ac04e7 | 2031 | extra_options="${extra_options} rs6000/sysv4.opt" |
bb607926 | 2032 | ;; |
2033 | powerpcle-*-eabisim*) | |
de784bee | 2034 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h" |
a23b9c51 | 2035 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
16ac04e7 | 2036 | extra_options="${extra_options} rs6000/sysv4.opt" |
f3449a3c | 2037 | use_gcc_stdint=wrap |
bb607926 | 2038 | ;; |
2039 | powerpcle-*-eabi*) | |
de784bee | 2040 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h" |
a23b9c51 | 2041 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
16ac04e7 | 2042 | extra_options="${extra_options} rs6000/sysv4.opt" |
f3449a3c | 2043 | use_gcc_stdint=wrap |
bb607926 | 2044 | ;; |
bb607926 | 2045 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
b5e8a0bc | 2046 | tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h rs6000/aix-stdint.h" |
a997b0d8 | 2047 | tmake_file="rs6000/t-aix43 t-slibgcc" |
a8bb341c | 2048 | extra_options="${extra_options} rs6000/aix64.opt" |
bb607926 | 2049 | use_collect2=yes |
2050 | thread_file='aix' | |
b5e8a0bc | 2051 | use_gcc_stdint=provide |
83287f80 | 2052 | extra_headers= |
bb607926 | 2053 | ;; |
b1974978 | 2054 | rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*) |
b5e8a0bc | 2055 | tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h rs6000/aix-stdint.h" |
a8bb341c | 2056 | extra_options="${extra_options} rs6000/aix64.opt" |
a997b0d8 | 2057 | tmake_file="rs6000/t-aix43 t-slibgcc" |
bb607926 | 2058 | use_collect2=yes |
2059 | thread_file='aix' | |
b5e8a0bc | 2060 | use_gcc_stdint=wrap |
83287f80 | 2061 | extra_headers= |
bb607926 | 2062 | ;; |
d4115f8c | 2063 | rs6000-ibm-aix5.2.* | powerpc-ibm-aix5.2.*) |
b5e8a0bc | 2064 | tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h rs6000/aix-stdint.h" |
a997b0d8 | 2065 | tmake_file="rs6000/t-aix52 t-slibgcc" |
a8bb341c | 2066 | extra_options="${extra_options} rs6000/aix64.opt" |
b1974978 | 2067 | use_collect2=yes |
2068 | thread_file='aix' | |
b5e8a0bc | 2069 | use_gcc_stdint=wrap |
b1974978 | 2070 | extra_headers= |
2071 | ;; | |
0cc77516 | 2072 | rs6000-ibm-aix5.3.* | powerpc-ibm-aix5.3.*) |
b5e8a0bc | 2073 | tm_file="${tm_file} rs6000/aix.h rs6000/aix53.h rs6000/xcoff.h rs6000/aix-stdint.h" |
a997b0d8 | 2074 | tmake_file="rs6000/t-aix52 t-slibgcc" |
d4115f8c | 2075 | extra_options="${extra_options} rs6000/aix64.opt" |
2076 | use_collect2=yes | |
2077 | thread_file='aix' | |
b5e8a0bc | 2078 | use_gcc_stdint=wrap |
4b39bf76 | 2079 | extra_headers=altivec.h |
d4115f8c | 2080 | ;; |
0cc77516 | 2081 | rs6000-ibm-aix[6789].* | powerpc-ibm-aix[6789].*) |
b5e8a0bc | 2082 | tm_file="${tm_file} rs6000/aix.h rs6000/aix61.h rs6000/xcoff.h rs6000/aix-stdint.h" |
a997b0d8 | 2083 | tmake_file="rs6000/t-aix52 t-slibgcc" |
0cc77516 | 2084 | extra_options="${extra_options} rs6000/aix64.opt" |
2085 | use_collect2=yes | |
2086 | thread_file='aix' | |
b5e8a0bc | 2087 | use_gcc_stdint=wrap |
0cc77516 | 2088 | extra_headers=altivec.h |
2089 | ;; | |
78e515f7 | 2090 | rl78-*-elf*) |
2091 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" | |
2092 | target_has_targetm_common=no | |
2093 | c_target_objs="rl78-c.o" | |
2094 | cxx_target_objs="rl78-c.o" | |
2095 | tmake_file="${tmake_file} rl78/t-rl78" | |
2096 | ;; | |
24833e1a | 2097 | rx-*-elf*) |
3be74046 | 2098 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
24833e1a | 2099 | tmake_file="${tmake_file} rx/t-rx" |
2100 | ;; | |
582b17a6 | 2101 | s390-*-linux*) |
deb14f24 | 2102 | tm_file="s390/s390.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h s390/linux.h" |
5cd72ba2 | 2103 | if test x$enable_targets = xall; then |
2104 | tmake_file="${tmake_file} s390/t-linux64" | |
2105 | fi | |
346e8a0c | 2106 | ;; |
582b17a6 | 2107 | s390x-*-linux*) |
deb14f24 | 2108 | tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h s390/linux.h" |
48de175f | 2109 | tm_p_file=s390/s390-protos.h |
2110 | md_file=s390/s390.md | |
b5ccaa7b | 2111 | extra_modes=s390/s390-modes.def |
48de175f | 2112 | out_file=s390/s390.c |
e38fe738 | 2113 | tmake_file="${tmake_file} s390/t-linux64" |
346e8a0c | 2114 | ;; |
7c1f201b | 2115 | s390x-ibm-tpf*) |
7966af2d | 2116 | tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h s390/tpf.h" |
9f88bc9d | 2117 | tm_p_file=s390/s390-protos.h |
2118 | md_file=s390/s390.md | |
2119 | extra_modes=s390/s390-modes.def | |
2120 | out_file=s390/s390.c | |
9f88bc9d | 2121 | thread_file='tpf' |
2122 | extra_options="${extra_options} s390/tpf.opt" | |
7c1f201b | 2123 | ;; |
3dbfe3e4 | 2124 | score-*-elf) |
b8e22756 | 2125 | gas=yes |
2126 | gnu_ld=yes | |
f3449a3c | 2127 | tm_file="dbxelf.h elfos.h score/elf.h score/score.h newlib-stdint.h" |
3dbfe3e4 | 2128 | ;; |
6af9f7ea | 2129 | sh-*-elf* | sh[12346l]*-*-elf* | \ |
ccf1c0f1 | 2130 | sh-*-linux* | sh[2346lbe]*-*-linux* | \ |
07168dd9 | 2131 | sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ |
237490bf | 2132 | sh64-*-netbsd* | sh64l*-*-netbsd*) |
07168dd9 | 2133 | tmake_file="${tmake_file} sh/t-sh sh/t-elf" |
2134 | if test x${with_endian} = x; then | |
2135 | case ${target} in | |
2136 | sh[1234]*be-*-* | sh[1234]*eb-*-*) with_endian=big ;; | |
2137 | shbe-*-* | sheb-*-*) with_endian=big,little ;; | |
2138 | sh[1234]l* | sh[34]*-*-linux*) with_endian=little ;; | |
2139 | shl* | sh64l* | sh*-*-linux* | \ | |
2140 | sh5l* | sh-superh-elf) with_endian=little,big ;; | |
2141 | sh[1234]*-*-*) with_endian=big ;; | |
2142 | *) with_endian=big,little ;; | |
2143 | esac | |
2144 | fi | |
f555bf81 | 2145 | # TM_ENDIAN_CONFIG is used by t-sh to determine multilibs. |
2146 | # First word : the default endian. | |
2147 | # Second word: the secondary endian (optional). | |
07168dd9 | 2148 | case ${with_endian} in |
f555bf81 | 2149 | big) TM_ENDIAN_CONFIG=mb ;; |
2150 | little) TM_ENDIAN_CONFIG=ml ;; | |
2151 | big,little) TM_ENDIAN_CONFIG="mb ml" ;; | |
2152 | little,big) TM_ENDIAN_CONFIG="ml mb" ;; | |
07168dd9 | 2153 | *) echo "with_endian=${with_endian} not supported."; exit 1 ;; |
2154 | esac | |
2155 | case ${with_endian} in | |
2156 | little*) tm_file="sh/little.h ${tm_file}" ;; | |
2157 | esac | |
9bc320a5 | 2158 | tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h" |
09c6646e | 2159 | case ${target} in |
07168dd9 | 2160 | sh*-*-linux*) tmake_file="${tmake_file} sh/t-linux" |
deb14f24 | 2161 | tm_file="${tm_file} gnu-user.h linux.h glibc-stdint.h sh/linux.h" ;; |
f466b0a0 | 2162 | sh*-*-netbsd*) |
2163 | tm_file="${tm_file} netbsd.h netbsd-elf.h sh/netbsd-elf.h" | |
2164 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" | |
2165 | ||
2166 | ;; | |
cfcf8539 | 2167 | sh*-superh-elf) if test x$with_libgloss != xno; then |
2168 | with_libgloss=yes | |
2169 | tm_file="${tm_file} sh/newlib.h" | |
2170 | fi | |
0e6b6360 | 2171 | tm_file="${tm_file} sh/embed-elf.h" |
cfcf8539 | 2172 | tm_file="${tm_file} sh/superh.h" |
cfcf8539 | 2173 | extra_options="${extra_options} sh/superh.opt" ;; |
65a1f1e9 | 2174 | *) if test x$with_newlib = xyes \ |
2175 | && test x$with_libgloss = xyes; then | |
2176 | tm_file="${tm_file} sh/newlib.h" | |
2177 | fi | |
2178 | tm_file="${tm_file} sh/embed-elf.h" ;; | |
07168dd9 | 2179 | esac |
2180 | case ${target} in | |
2181 | sh5*-*-netbsd*) | |
2182 | # SHmedia, 32-bit ABI | |
4dc4ff49 | 2183 | tmake_file="${tmake_file} sh/t-sh64" |
07168dd9 | 2184 | ;; |
2185 | sh64*-netbsd*) | |
2186 | # SHmedia, 64-bit ABI | |
4dc4ff49 | 2187 | tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5-64" |
07168dd9 | 2188 | ;; |
2189 | *-*-netbsd) | |
07168dd9 | 2190 | ;; |
2191 | sh64*-*-linux*) | |
237490bf | 2192 | tmake_file="${tmake_file} sh/t-sh64" |
07168dd9 | 2193 | tm_file="${tm_file} sh/sh64.h" |
2194 | extra_headers="shmedia.h ushmedia.h sshmedia.h" | |
2195 | ;; | |
febf5bcd | 2196 | sh64*) |
2197 | tmake_file="${tmake_file} sh/t-sh64" | |
2198 | tm_file="${tm_file} sh/sh64.h" | |
50147a3f | 2199 | if test x$with_newlib = xyes; then |
2200 | tm_file="${tm_file} newlib-stdint.h" | |
2201 | fi | |
febf5bcd | 2202 | extra_headers="shmedia.h ushmedia.h sshmedia.h" |
febf5bcd | 2203 | ;; |
f3449a3c | 2204 | *-*-elf*) |
2205 | tm_file="${tm_file} newlib-stdint.h" | |
2206 | ;; | |
493914a8 | 2207 | esac |
07168dd9 | 2208 | # sed el/eb endian suffixes away to avoid confusion with sh[23]e |
2209 | case `echo ${target} | sed 's/e[lb]-/-/'` in | |
2210 | sh64*-*-netbsd*) sh_cpu_target=sh5-64media ;; | |
2211 | sh64* | sh5*-*-netbsd*) sh_cpu_target=sh5-32media ;; | |
9435e831 | 2212 | sh4a_single_only*) sh_cpu_target=sh4a-single-only ;; |
2213 | sh4a_single*) sh_cpu_target=sh4a-single ;; | |
2214 | sh4a_nofpu*) sh_cpu_target=sh4a-nofpu ;; | |
2215 | sh4al) sh_cpu_target=sh4al ;; | |
2216 | sh4a*) sh_cpu_target=sh4a ;; | |
07168dd9 | 2217 | sh4_single_only*) sh_cpu_target=sh4-single-only ;; |
2218 | sh4_single*) sh_cpu_target=sh4-single ;; | |
2219 | sh4_nofpu*) sh_cpu_target=sh4-nofpu ;; | |
2220 | sh4* | sh-superh-*) sh_cpu_target=sh4 ;; | |
2221 | sh3e*) sh_cpu_target=sh3e ;; | |
2222 | sh*-*-netbsd* | sh3*) sh_cpu_target=sh3 ;; | |
7105fb72 | 2223 | sh2a_single_only*) sh_cpu_target=sh2a-single-only ;; |
2224 | sh2a_single*) sh_cpu_target=sh2a-single ;; | |
2225 | sh2a_nofpu*) sh_cpu_target=sh2a-nofpu ;; | |
2226 | sh2a*) sh_cpu_target=sh2a ;; | |
07168dd9 | 2227 | sh2e*) sh_cpu_target=sh2e ;; |
2228 | sh2*) sh_cpu_target=sh2 ;; | |
2229 | *) sh_cpu_target=sh1 ;; | |
aa76b2b5 | 2230 | esac |
65a1f1e9 | 2231 | # did the user say --without-fp ? |
2232 | if test x$with_fp = xno; then | |
2233 | case ${sh_cpu_target} in | |
2234 | sh5-*media) sh_cpu_target=${sh_cpu_target}-nofpu ;; | |
2235 | sh4al | sh1) ;; | |
2236 | sh4a* ) sh_cpu_target=sh4a-nofpu ;; | |
2237 | sh4*) sh_cpu_target=sh4-nofpu ;; | |
2238 | sh3*) sh_cpu_target=sh3 ;; | |
2239 | sh2a*) sh_cpu_target=sh2a-nofpu ;; | |
2240 | sh2*) sh_cpu_target=sh2 ;; | |
2241 | *) echo --without-fp not available for $target: ignored | |
2242 | esac | |
2243 | tm_defines="$tm_defines STRICT_NOFPU=1" | |
2244 | fi | |
07168dd9 | 2245 | sh_cpu_default="`echo $with_cpu|sed s/^m/sh/|tr A-Z_ a-z-`" |
2246 | case $sh_cpu_default in | |
2247 | sh5-64media-nofpu | sh5-64media | \ | |
2248 | sh5-32media-nofpu | sh5-32media | sh5-compact-nofpu | sh5-compact | \ | |
7105fb72 | 2249 | sh2a-single-only | sh2a-single | sh2a-nofpu | sh2a | \ |
9435e831 | 2250 | sh4a-single-only | sh4a-single | sh4a-nofpu | sh4a | sh4al | \ |
99b0f6d9 | 2251 | sh4-single-only | sh4-single | sh4-nofpu | sh4 | sh4-300 | \ |
eb4e5153 | 2252 | sh3e | sh3 | sh2e | sh2 | sh1) ;; |
07168dd9 | 2253 | "") sh_cpu_default=${sh_cpu_target} ;; |
2254 | *) echo "with_cpu=$with_cpu not supported"; exit 1 ;; | |
febf5bcd | 2255 | esac |
07168dd9 | 2256 | sh_multilibs=${with_multilib_list} |
f555bf81 | 2257 | if test "$sh_multilibs" = "default" ; then |
07168dd9 | 2258 | case ${target} in |
65a1f1e9 | 2259 | sh64-superh-linux* | \ |
07168dd9 | 2260 | sh[1234]*) sh_multilibs=${sh_cpu_target} ;; |
2261 | sh64* | sh5*) sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;; | |
2262 | sh-superh-*) sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;; | |
2263 | sh*-*-linux*) sh_multilibs=m1,m3e,m4 ;; | |
2264 | sh*-*-netbsd*) sh_multilibs=m3,m3e,m4 ;; | |
7105fb72 | 2265 | *) sh_multilibs=m1,m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single ;; |
07168dd9 | 2266 | esac |
65a1f1e9 | 2267 | if test x$with_fp = xno; then |
2268 | sh_multilibs="`echo $sh_multilibs|sed -e s/m4/sh4-nofpu/ -e s/,m4-[^,]*//g -e s/,m[23]e// -e s/m2a,m2a-single/m2a-nofpu/ -e s/m5-..m....,//g`" | |
2269 | fi | |
07168dd9 | 2270 | fi |
3a6994f8 | 2271 | target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_` |
07168dd9 | 2272 | tm_defines=${tm_defines}' SH_MULTILIB_CPU_DEFAULT=\"'`echo $sh_cpu_default|sed s/sh/m/`'\"' |
f555bf81 | 2273 | tm_defines="$tm_defines SUPPORT_`echo $sh_cpu_default | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1" |
b56481ad | 2274 | sh_multilibs=`echo $sh_multilibs | sed -e 's/,/ /g' -e 's/^[Ss][Hh]/m/' -e 's/ [Ss][Hh]/ m/g' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz-` |
07168dd9 | 2275 | for sh_multilib in ${sh_multilibs}; do |
2276 | case ${sh_multilib} in | |
f555bf81 | 2277 | m1 | m2 | m2e | m3 | m3e | \ |
2278 | m4 | m4-single | m4-single-only | m4-nofpu | m4-300 |\ | |
2279 | m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al | \ | |
2280 | m2a | m2a-single | m2a-single-only | m2a-nofpu | \ | |
2281 | m5-64media | m5-64media-nofpu | \ | |
2282 | m5-32media | m5-32media-nofpu | \ | |
2283 | m5-compact | m5-compact-nofpu) | |
2284 | # TM_MULTILIB_CONFIG is used by t-sh for the non-endian multilib definition | |
2285 | # It is passed to MULTIILIB_OPTIONS verbatim. | |
2286 | TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG}/${sh_multilib}" | |
2287 | tm_defines="$tm_defines SUPPORT_`echo $sh_multilib | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1" | |
07168dd9 | 2288 | ;; |
f555bf81 | 2289 | \!*) # TM_MULTILIB_EXCEPTIONS_CONFIG is used by t-sh |
2290 | # It is passed the MULTILIB_EXCEPTIONS verbatim. | |
2291 | TM_MULTILIB_EXCEPTIONS_CONFIG="${TM_MULTILIB_EXCEPTIONS_CONFIG} `echo $sh_multilib | sed 's/^!//'`" ;; | |
07168dd9 | 2292 | *) |
2293 | echo "with_multilib_list=${sh_multilib} not supported." | |
2294 | exit 1 | |
2295 | ;; | |
2296 | esac | |
2297 | done | |
f555bf81 | 2298 | TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's:^/::'` |
3a6994f8 | 2299 | if test x${enable_incomplete_targets} = xyes ; then |
156fac8b | 2300 | tm_defines="$tm_defines SUPPORT_SH1=1 SUPPORT_SH2E=1 SUPPORT_SH4=1 SUPPORT_SH4_SINGLE=1 SUPPORT_SH2A=1 SUPPORT_SH2A_SINGLE=1 SUPPORT_SH5_32MEDIA=1 SUPPORT_SH5_32MEDIA_NOFPU=1 SUPPORT_SH5_64MEDIA=1 SUPPORT_SH5_64MEDIA_NOFPU=1" |
07168dd9 | 2301 | fi |
fa22494c | 2302 | tm_file="$tm_file ./sysroot-suffix.h" |
2303 | tmake_file="$tmake_file t-sysroot-suffix" | |
87e19636 | 2304 | ;; |
26f6dfe2 | 2305 | sh-*-rtems*) |
237490bf | 2306 | tmake_file="sh/t-sh t-rtems sh/t-rtems" |
9bc320a5 | 2307 | tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h newlib-stdint.h" |
26f6dfe2 | 2308 | ;; |
d9799238 | 2309 | sh-wrs-vxworks) |
237490bf | 2310 | tmake_file="$tmake_file sh/t-sh sh/t-vxworks" |
9bc320a5 | 2311 | tm_file="${tm_file} elfos.h sh/elf.h sh/embed-elf.h vx-common.h vxworks.h sh/vxworks.h" |
d9799238 | 2312 | ;; |
bb607926 | 2313 | sparc-*-elf*) |
1bb0ad55 | 2314 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp-elf.h" |
b0168e11 | 2315 | case ${target} in |
2316 | *-leon-*) | |
9e64c9a4 | 2317 | tmake_file="sparc/t-sparc sparc/t-leon" |
b0168e11 | 2318 | ;; |
2319 | *-leon[3-9]*) | |
9e64c9a4 | 2320 | tmake_file="sparc/t-sparc sparc/t-leon3" |
b0168e11 | 2321 | ;; |
2322 | *) | |
9e64c9a4 | 2323 | tmake_file="sparc/t-sparc sparc/t-elf" |
b0168e11 | 2324 | ;; |
2325 | esac | |
bb607926 | 2326 | ;; |
a711a067 | 2327 | sparc-*-rtems*) |
1bb0ad55 | 2328 | tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h" |
9e64c9a4 | 2329 | tmake_file="sparc/t-sparc sparc/t-elf t-rtems" |
a711a067 | 2330 | ;; |
2331 | sparc-*-linux*) | |
8da0577c | 2332 | tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/tso.h" |
a9341855 | 2333 | extra_options="${extra_options} sparc/long-double-switch.opt" |
b0168e11 | 2334 | case ${target} in |
2335 | *-leon-*) | |
9e64c9a4 | 2336 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-leon" |
b0168e11 | 2337 | ;; |
2338 | *-leon[3-9]*) | |
9e64c9a4 | 2339 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-leon3" |
b0168e11 | 2340 | ;; |
2341 | *) | |
a997b0d8 | 2342 | tmake_file="${tmake_file} sparc/t-sparc" |
b0168e11 | 2343 | ;; |
2344 | esac | |
1168681b | 2345 | if test x$enable_targets = xall; then |
2346 | tm_file="sparc/biarch64.h ${tm_file} sparc/linux64.h" | |
64c6f17e | 2347 | tmake_file="${tmake_file} sparc/t-linux64" |
1168681b | 2348 | else |
2349 | tm_file="${tm_file} sparc/linux.h" | |
1168681b | 2350 | fi |
bb607926 | 2351 | ;; |
a711a067 | 2352 | sparc-*-netbsdelf*) |
1bb0ad55 | 2353 | tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h" |
f466b0a0 | 2354 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
a711a067 | 2355 | extra_options="${extra_options} sparc/long-double-switch.opt" |
9e64c9a4 | 2356 | tmake_file="${tmake_file} sparc/t-sparc" |
9afa4711 | 2357 | ;; |
8acfe9c6 | 2358 | sparc*-*-solaris2*) |
8da0577c | 2359 | tm_file="sparc/biarch64.h ${tm_file} ${sol2_tm_file} sol2-bi.h sparc/tso.h" |
8fde03ba | 2360 | case ${target} in |
8acfe9c6 | 2361 | sparc64-*-* | sparcv9-*-*) |
ea457188 | 2362 | tm_file="sparc/default-64.h ${tm_file}" |
f3449a3c | 2363 | ;; |
8acfe9c6 | 2364 | *) |
2365 | test x$with_cpu != x || with_cpu=v9 | |
517cabaa | 2366 | ;; |
8fde03ba | 2367 | esac |
9e64c9a4 | 2368 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-sol2-64" |
bb607926 | 2369 | ;; |
723e1902 | 2370 | sparc-wrs-vxworks) |
1bb0ad55 | 2371 | tm_file="${tm_file} elfos.h sparc/sysv4.h vx-common.h vxworks.h sparc/vxworks.h" |
9e64c9a4 | 2372 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-vxworks" |
723e1902 | 2373 | ;; |
bb607926 | 2374 | sparc64-*-elf*) |
1bb0ad55 | 2375 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h" |
7abb12da | 2376 | extra_options="${extra_options}" |
9e64c9a4 | 2377 | tmake_file="${tmake_file} sparc/t-sparc" |
bb607926 | 2378 | ;; |
a711a067 | 2379 | sparc64-*-rtems*) |
1bb0ad55 | 2380 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h sparc/rtemself.h rtems.h" |
7abb12da | 2381 | extra_options="${extra_options}" |
9e64c9a4 | 2382 | tmake_file="${tmake_file} sparc/t-sparc t-rtems" |
a711a067 | 2383 | ;; |
2384 | sparc64-*-linux*) | |
8da0577c | 2385 | tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/default-64.h sparc/linux64.h sparc/tso.h" |
a711a067 | 2386 | extra_options="${extra_options} sparc/long-double-switch.opt" |
a997b0d8 | 2387 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-linux64" |
a711a067 | 2388 | ;; |
cf481f89 | 2389 | sparc64-*-freebsd*|ultrasparc-*-freebsd*) |
2390 | tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h" | |
a9341855 | 2391 | extra_options="${extra_options} sparc/long-double-switch.opt" |
cf481f89 | 2392 | case "x$with_cpu" in |
68345096 | 2393 | xultrasparc) ;; |
cf481f89 | 2394 | x) with_cpu=ultrasparc ;; |
2395 | *) echo "$with_cpu not supported for freebsd target"; exit 1 ;; | |
2396 | esac | |
9e64c9a4 | 2397 | tmake_file="${tmake_file} sparc/t-sparc" |
cf481f89 | 2398 | ;; |
1897a3df | 2399 | sparc64-*-netbsd*) |
1897a3df | 2400 | tm_file="sparc/biarch64.h ${tm_file}" |
1bb0ad55 | 2401 | tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h" |
f466b0a0 | 2402 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
a9341855 | 2403 | extra_options="${extra_options} sparc/long-double-switch.opt" |
9e64c9a4 | 2404 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-netbsd64" |
1897a3df | 2405 | ;; |
a711a067 | 2406 | sparc64-*-openbsd*) |
1bb0ad55 | 2407 | tm_file="sparc/openbsd1-64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp64-elf.h" |
a711a067 | 2408 | tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h sparc/openbsd64.h" |
1a0fb050 | 2409 | extra_options="${extra_options} openbsd.opt" |
7abb12da | 2410 | extra_options="${extra_options}" |
a711a067 | 2411 | gas=yes gnu_ld=yes |
2412 | with_cpu=ultrasparc | |
9e64c9a4 | 2413 | tmake_file="${tmake_file} sparc/t-sparc" |
a711a067 | 2414 | ;; |
644459d0 | 2415 | spu-*-elf*) |
f3449a3c | 2416 | tm_file="dbxelf.h elfos.h spu/spu-elf.h spu/spu.h newlib-stdint.h" |
644459d0 | 2417 | tmake_file="spu/t-spu-elf" |
638454a1 | 2418 | native_system_header_dir=/include |
6cf5579e | 2419 | extra_headers="spu_intrinsics.h spu_internals.h vmx2spu.h spu_mfcio.h vec_types.h spu_cache.h" |
644459d0 | 2420 | extra_modes=spu/spu-modes.def |
2421 | c_target_objs="${c_target_objs} spu-c.o" | |
2422 | cxx_target_objs="${cxx_target_objs} spu-c.o" | |
2423 | ;; | |
5aa04b01 | 2424 | tic6x-*-elf) |
2425 | tm_file="elfos.h ${tm_file} c6x/elf-common.h c6x/elf.h" | |
2426 | tm_file="${tm_file} dbxelf.h tm-dwarf2.h newlib-stdint.h" | |
5aa04b01 | 2427 | tmake_file="c6x/t-c6x c6x/t-c6x-elf" |
5aa04b01 | 2428 | use_collect2=no |
2429 | ;; | |
2430 | tic6x-*-uclinux) | |
2431 | tm_file="elfos.h ${tm_file} gnu-user.h linux.h c6x/elf-common.h c6x/uclinux-elf.h" | |
2432 | tm_file="${tm_file} dbxelf.h tm-dwarf2.h glibc-stdint.h" | |
2433 | tm_file="${tm_file} ./sysroot-suffix.h" | |
a997b0d8 | 2434 | tmake_file="t-sysroot-suffix t-slibgcc" |
5aa04b01 | 2435 | tmake_file="${tmake_file} c6x/t-c6x c6x/t-c6x-elf c6x/t-c6x-uclinux" |
5aa04b01 | 2436 | use_collect2=no |
2437 | ;; | |
7ce78e23 | 2438 | tilegx-*-linux*) |
2439 | tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h tilegx/linux.h ${tm_file}" | |
2440 | tmake_file="${tmake_file} tilegx/t-tilegx" | |
2441 | extra_objs="mul-tables.o" | |
2442 | c_target_objs="tilegx-c.o" | |
2443 | cxx_target_objs="tilegx-c.o" | |
2444 | ;; | |
2445 | tilepro-*-linux*) | |
2446 | tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h tilepro/linux.h ${tm_file}" | |
2447 | tmake_file="${tmake_file} tilepro/t-tilepro" | |
2448 | extra_objs="mul-tables.o" | |
2449 | c_target_objs="tilepro-c.o" | |
2450 | cxx_target_objs="tilepro-c.o" | |
2451 | ;; | |
f5ec6516 | 2452 | v850*-*-*) |
2453 | case ${target} in | |
2454 | v850e2v3-*-*) | |
2455 | target_cpu_default="TARGET_CPU_v850e2v3" | |
2456 | ;; | |
2457 | v850e2-*-*) | |
2458 | target_cpu_default="TARGET_CPU_v850e2" | |
2459 | ;; | |
2460 | v850e1-*-* | v850es-*-*) | |
2461 | target_cpu_default="TARGET_CPU_v850e1" | |
2462 | ;; | |
2463 | v850e-*-*) | |
2464 | target_cpu_default="TARGET_CPU_v850e" | |
2465 | ;; | |
2466 | v850-*-*) | |
2467 | target_cpu_default="TARGET_CPU_generic" | |
2468 | ;; | |
2469 | esac | |
156edce8 | 2470 | tm_file="dbxelf.h elfos.h newlib-stdint.h v850/v850.h" |
5dd3389c | 2471 | if test x$stabs = xyes |
2472 | then | |
2473 | tm_file="${tm_file} dbx.h" | |
2474 | fi | |
2475 | use_collect2=no | |
2476 | c_target_objs="v850-c.o" | |
2477 | cxx_target_objs="v850-c.o" | |
f3449a3c | 2478 | use_gcc_stdint=wrap |
5dd3389c | 2479 | ;; |
6718899e | 2480 | vax-*-linux*) |
deb14f24 | 2481 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h vax/elf.h vax/linux.h" |
6b9d66b3 | 2482 | extra_options="${extra_options} vax/elf.opt" |
6718899e | 2483 | ;; |
f470dade | 2484 | vax-*-netbsdelf*) |
83accbc0 | 2485 | tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h" |
6b9d66b3 | 2486 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt vax/elf.opt" |
f470dade | 2487 | ;; |
bb607926 | 2488 | vax-*-openbsd*) |
8e6600a1 | 2489 | tm_file="vax/vax.h vax/openbsd1.h openbsd.h openbsd-stdint.h openbsd-pthread.h vax/openbsd.h" |
1a0fb050 | 2490 | extra_options="${extra_options} openbsd.opt" |
bb607926 | 2491 | use_collect2=yes |
2492 | ;; | |
9b954fed | 2493 | xstormy16-*-elf) |
2494 | # For historical reasons, the target files omit the 'x'. | |
2487a409 | 2495 | tm_file="dbxelf.h elfos.h newlib-stdint.h stormy16/stormy16.h" |
9b954fed | 2496 | tm_p_file=stormy16/stormy16-protos.h |
2497 | md_file=stormy16/stormy16.md | |
2498 | out_file=stormy16/stormy16.c | |
840f1481 | 2499 | extra_options=stormy16/stormy16.opt |
9b954fed | 2500 | tmake_file="stormy16/t-stormy16" |
9b954fed | 2501 | ;; |
a76109da | 2502 | xtensa*-*-elf*) |
be47c99e | 2503 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h xtensa/elf.h" |
b0a67e36 | 2504 | extra_options="${extra_options} xtensa/elf.opt" |
f6b7ba2b | 2505 | ;; |
a76109da | 2506 | xtensa*-*-linux*) |
deb14f24 | 2507 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h xtensa/linux.h" |
237490bf | 2508 | tmake_file="${tmake_file} xtensa/t-xtensa" |
f6b7ba2b | 2509 | ;; |
1acdfc69 | 2510 | am33_2.0-*-linux*) |
deb14f24 | 2511 | tm_file="mn10300/mn10300.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h mn10300/linux.h" |
1acdfc69 | 2512 | gas=yes gnu_ld=yes |
1acdfc69 | 2513 | use_collect2=no |
2514 | ;; | |
a41d0b5e | 2515 | m32c-*-rtems*) |
3a0201c8 | 2516 | tm_file="dbxelf.h elfos.h ${tm_file} m32c/rtems.h rtems.h newlib-stdint.h" |
a41d0b5e | 2517 | tmake_file="${tmake_file} t-rtems" |
2518 | c_target_objs="m32c-pragma.o" | |
2519 | cxx_target_objs="m32c-pragma.o" | |
2520 | ;; | |
85c84d5c | 2521 | m32c-*-elf*) |
3a0201c8 | 2522 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
85c84d5c | 2523 | c_target_objs="m32c-pragma.o" |
2524 | cxx_target_objs="m32c-pragma.o" | |
85c84d5c | 2525 | ;; |
bb607926 | 2526 | *) |
09c6646e | 2527 | echo "*** Configuration ${target} not supported" 1>&2 |
bb607926 | 2528 | exit 1 |
2529 | ;; | |
2530 | esac | |
2531 | ||
561866ed | 2532 | case ${target} in |
561866ed | 2533 | i[34567]86-*-linux* | x86_64-*-linux*) |
46f8e3b0 | 2534 | tmake_file="${tmake_file} i386/t-pmm_malloc i386/t-i386" |
561866ed | 2535 | ;; |
2536 | i[34567]86-*-* | x86_64-*-*) | |
46f8e3b0 | 2537 | tmake_file="${tmake_file} i386/t-gmm_malloc i386/t-i386" |
561866ed | 2538 | ;; |
cf61fe8d | 2539 | powerpc*-*-* | rs6000-*-*) |
2540 | tm_file="${tm_file} rs6000/option-defaults.h" | |
561866ed | 2541 | esac |
2542 | ||
c94b1d0e | 2543 | if [ "$target_has_targetcm" = "no" ]; then |
2544 | c_target_objs="$c_target_objs default-c.o" | |
2545 | cxx_target_objs="$cxx_target_objs default-c.o" | |
2546 | fi | |
2547 | ||
3e87b980 | 2548 | if [ "$common_out_file" = "" ]; then |
2549 | if [ "$target_has_targetm_common" = "yes" ]; then | |
2550 | common_out_file="$cpu_type/$cpu_type-common.c" | |
2551 | else | |
2552 | common_out_file="default-common.c" | |
2553 | fi | |
2554 | fi | |
2555 | ||
3864b642 | 2556 | # Support for --with-cpu and related options (and a few unrelated options, |
973f8bf3 | 2557 | # too). |
370a1d10 | 2558 | case ${with_cpu} in |
2559 | yes | no) | |
2560 | echo "--with-cpu must be passed a value" 1>&2 | |
2561 | exit 1 | |
2562 | ;; | |
2563 | esac | |
f0b281fe | 2564 | |
1f64ad21 | 2565 | # Set arch and cpu from ${target} and ${target_noncanonical}. Set cpu |
2566 | # to generic if there is no processor scheduler model for the target. | |
2567 | arch= | |
2568 | cpu= | |
05b38372 | 2569 | arch_without_sse2=no |
ed2b8f56 | 2570 | arch_without_64bit=no |
1f64ad21 | 2571 | case ${target} in |
0be8ff0a | 2572 | i386-*-freebsd*) |
2573 | if test $fbsd_major -ge 6; then | |
2574 | arch=i486 | |
2575 | else | |
2576 | arch=i386 | |
2577 | fi | |
2578 | cpu=generic | |
2579 | arch_without_sse2=yes | |
2580 | arch_without_64bit=yes | |
2581 | ;; | |
1f64ad21 | 2582 | i386-*-*) |
2583 | arch=i386 | |
2584 | cpu=i386 | |
05b38372 | 2585 | arch_without_sse2=yes |
ed2b8f56 | 2586 | arch_without_64bit=yes |
1f64ad21 | 2587 | ;; |
2588 | i486-*-*) | |
2589 | arch=i486 | |
2590 | cpu=i486 | |
05b38372 | 2591 | arch_without_sse2=yes |
ed2b8f56 | 2592 | arch_without_64bit=yes |
1f64ad21 | 2593 | ;; |
2594 | i586-*-*) | |
05b38372 | 2595 | arch_without_sse2=yes |
ed2b8f56 | 2596 | arch_without_64bit=yes |
1f64ad21 | 2597 | case ${target_noncanonical} in |
2598 | k6_2-*) | |
2599 | arch=k6-2 | |
2600 | cpu=k6-2 | |
2601 | ;; | |
2602 | k6_3-*) | |
2603 | arch=k6-3 | |
2604 | cpu=k6-3 | |
2605 | ;; | |
2606 | k6-*) | |
2607 | arch=k6 | |
2608 | cpu=k6 | |
2609 | ;; | |
2610 | pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*) | |
2611 | arch=pentium-mmx | |
2612 | cpu=pentium-mmx | |
2613 | ;; | |
2614 | *) | |
2615 | arch=pentium | |
2616 | cpu=pentium | |
2617 | ;; | |
2618 | esac | |
2619 | ;; | |
2620 | i686-*-* | i786-*-*) | |
2621 | case ${target_noncanonical} in | |
8991ae0a | 2622 | bdver2-*) |
2623 | arch=bdver2 | |
2624 | cpu=bdver2 | |
2625 | ;; | |
6fc76bb0 | 2626 | bdver1-*) |
2627 | arch=bdver1 | |
2628 | cpu=bdver1 | |
2629 | ;; | |
a97faf6b | 2630 | btver1-*) |
2631 | arch=btver1 | |
2632 | cpu=btver1 | |
2633 | ;; | |
1f64ad21 | 2634 | amdfam10-*|barcelona-*) |
2635 | arch=amdfam10 | |
2636 | cpu=amdfam10 | |
2637 | ;; | |
2638 | k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) | |
2639 | arch=k8-sse3 | |
2640 | cpu=k8-sse3 | |
2641 | ;; | |
2642 | k8-*|opteron-*|athlon64-*|athlon_fx-*) | |
2643 | arch=k8 | |
2644 | cpu=k8 | |
2645 | ;; | |
2646 | athlon_xp-*|athlon_mp-*|athlon_4-*) | |
2647 | arch=athlon-4 | |
2648 | cpu=athlon-4 | |
05b38372 | 2649 | arch_without_sse2=yes |
ed2b8f56 | 2650 | arch_without_64bit=yes |
1f64ad21 | 2651 | ;; |
2652 | athlon_tbird-*|athlon-*) | |
2653 | arch=athlon | |
2654 | cpu=athlon | |
05b38372 | 2655 | arch_without_sse2=yes |
1f64ad21 | 2656 | ;; |
2657 | geode-*) | |
2658 | arch=geode | |
2659 | cpu=geode | |
05b38372 | 2660 | arch_without_sse2=yes |
1f64ad21 | 2661 | ;; |
2662 | pentium2-*) | |
2663 | arch=pentium2 | |
2664 | cpu=pentium2 | |
05b38372 | 2665 | arch_without_sse2=yes |
1f64ad21 | 2666 | ;; |
2667 | pentium3-*|pentium3m-*) | |
2668 | arch=pentium3 | |
2669 | cpu=pentium3 | |
05b38372 | 2670 | arch_without_sse2=yes |
1f64ad21 | 2671 | ;; |
2672 | pentium4-*|pentium4m-*) | |
2673 | arch=pentium4 | |
2674 | cpu=pentium4 | |
2675 | ;; | |
2676 | prescott-*) | |
2677 | arch=prescott | |
2678 | cpu=prescott | |
2679 | ;; | |
2680 | nocona-*) | |
2681 | arch=nocona | |
2682 | cpu=nocona | |
2683 | ;; | |
2684 | atom-*) | |
2685 | arch=atom | |
2686 | cpu=atom | |
2687 | ;; | |
2688 | core2-*) | |
2689 | arch=core2 | |
2690 | cpu=core2 | |
2691 | ;; | |
b0298715 | 2692 | corei7-*) |
2693 | arch=corei7 | |
2694 | cpu=corei7 | |
2695 | ;; | |
e4168d53 | 2696 | corei7_avx-*) |
2697 | arch=corei7-avx | |
2698 | cpu=corei7-avx | |
2699 | ;; | |
1f64ad21 | 2700 | pentium_m-*) |
2701 | arch=pentium-m | |
2702 | cpu=pentium-m | |
2703 | ;; | |
2704 | pentiumpro-*) | |
2705 | arch=pentiumpro | |
2706 | cpu=pentiumpro | |
05b38372 | 2707 | arch_without_sse2=yes |
1f64ad21 | 2708 | ;; |
2709 | *) | |
2710 | arch=pentiumpro | |
2711 | cpu=generic | |
05b38372 | 2712 | arch_without_sse2=yes |
ed2b8f56 | 2713 | arch_without_64bit=yes |
1f64ad21 | 2714 | ;; |
2715 | esac | |
2716 | ;; | |
2717 | x86_64-*-*) | |
2718 | case ${target_noncanonical} in | |
8991ae0a | 2719 | bdver2-*) |
2720 | arch=bdver2 | |
2721 | cpu=bdver2 | |
2722 | ;; | |
6fc76bb0 | 2723 | bdver1-*) |
2724 | arch=bdver1 | |
2725 | cpu=bdver1 | |
2726 | ;; | |
a97faf6b | 2727 | btver1-*) |
2728 | arch=btver1 | |
2729 | cpu=btver1 | |
2730 | ;; | |
1f64ad21 | 2731 | amdfam10-*|barcelona-*) |
2732 | arch=amdfam10 | |
2733 | cpu=amdfam10 | |
2734 | ;; | |
2735 | k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) | |
2736 | arch=k8-sse3 | |
2737 | cpu=k8-sse3 | |
2738 | ;; | |
2739 | k8-*|opteron-*|athlon_64-*) | |
2740 | arch=k8 | |
2741 | cpu=k8 | |
2742 | ;; | |
2743 | nocona-*) | |
2744 | arch=nocona | |
2745 | cpu=nocona | |
2746 | ;; | |
2747 | atom-*) | |
2748 | arch=atom | |
2749 | cpu=atom | |
2750 | ;; | |
2751 | core2-*) | |
2752 | arch=core2 | |
2753 | cpu=core2 | |
2754 | ;; | |
b0298715 | 2755 | corei7-*) |
2756 | arch=corei7 | |
2757 | cpu=corei7 | |
2758 | ;; | |
1f64ad21 | 2759 | *) |
2760 | arch=x86-64 | |
2761 | cpu=generic | |
2762 | ;; | |
2763 | esac | |
2764 | ;; | |
2765 | esac | |
2766 | ||
370a1d10 | 2767 | # If there is no $with_cpu option, try to infer one from ${target}. |
2768 | # This block sets nothing except for with_cpu. | |
2769 | if test x$with_cpu = x ; then | |
2770 | case ${target} in | |
1f64ad21 | 2771 | i[34567]86-*-*|x86_64-*-*) |
2772 | with_cpu=$cpu | |
370a1d10 | 2773 | ;; |
2774 | alphaev6[78]*-*-*) | |
2775 | with_cpu=ev67 | |
2776 | ;; | |
2777 | alphaev6*-*-*) | |
2778 | with_cpu=ev6 | |
2779 | ;; | |
2780 | alphapca56*-*-*) | |
2781 | with_cpu=pca56 | |
2782 | ;; | |
2783 | alphaev56*-*-*) | |
2784 | with_cpu=ev56 | |
2785 | ;; | |
2786 | alphaev5*-*-*) | |
2787 | with_cpu=ev5 | |
2788 | ;; | |
de6e318c | 2789 | frv-*-*linux* | frv400-*-*linux*) |
3e7f6cce | 2790 | with_cpu=fr400 |
2791 | ;; | |
de6e318c | 2792 | frv550-*-*linux*) |
2793 | with_cpu=fr550 | |
2794 | ;; | |
f84195ec | 2795 | m68k*-*-*) |
558b196a | 2796 | case "$with_arch" in |
2797 | "cf") | |
2798 | with_cpu=${default_cf_cpu} | |
2799 | ;; | |
2800 | "" | "m68k") | |
2801 | with_cpu=m${default_m68k_cpu} | |
2802 | ;; | |
2803 | esac | |
f84195ec | 2804 | ;; |
223f6dbc | 2805 | mips*-*-vxworks) |
2806 | with_arch=mips2 | |
2807 | ;; | |
b0168e11 | 2808 | sparc-leon*-*) |
2809 | with_cpu=v8; | |
2810 | ;; | |
370a1d10 | 2811 | sparc*-*-*) |
2812 | with_cpu="`echo ${target} | sed 's/-.*$//'`" | |
370a1d10 | 2813 | ;; |
2814 | esac | |
f067c6b7 | 2815 | |
2816 | # Avoid overriding --with-cpu-32 and --with-cpu-64 values. | |
2817 | case ${target} in | |
2818 | i[34567]86-*-*|x86_64-*-*) | |
1f64ad21 | 2819 | if test x$with_cpu_32 != x || test x$with_cpu_64 != x; then |
2820 | if test x$with_cpu_32 = x; then | |
2821 | with_cpu_32=$with_cpu | |
2822 | fi | |
2823 | if test x$with_cpu_64 = x; then | |
2824 | with_cpu_64=$with_cpu | |
2825 | fi | |
2826 | with_cpu= | |
2827 | fi | |
2828 | ;; | |
2829 | esac | |
2830 | fi | |
2831 | ||
2832 | # Support for --with-arch and related options (and a few unrelated options, | |
2833 | # too). | |
2834 | case ${with_arch} in | |
2835 | yes | no) | |
2836 | echo "--with-arch must be passed a value" 1>&2 | |
2837 | exit 1 | |
2838 | ;; | |
2839 | esac | |
2840 | ||
2841 | # If there is no $with_arch option, try to infer one from ${target}. | |
2842 | # This block sets nothing except for with_arch. | |
2843 | if test x$with_arch = x ; then | |
2844 | case ${target} in | |
ffcf29bf | 2845 | i[34567]86-*-darwin*|x86_64-*-darwin*) |
2846 | # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT | |
2847 | # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h. | |
2848 | ;; | |
2d2e1f85 | 2849 | i[34567]86-*-*) |
05b38372 | 2850 | # --with-fpmath sets the default ISA to SSE2, which is the same |
2851 | # ISA supported by Pentium 4. | |
2852 | if test x$with_fpmath = x || test $arch_without_sse2 = no; then | |
2853 | with_arch=$arch | |
2854 | else | |
2855 | with_arch=pentium4 | |
2d2e1f85 | 2856 | fi |
2857 | ;; | |
2858 | x86_64-*-*) | |
1f64ad21 | 2859 | with_arch=$arch |
2860 | ;; | |
2861 | esac | |
2862 | ||
2863 | # Avoid overriding --with-arch-32 and --with-arch-64 values. | |
2864 | case ${target} in | |
ffcf29bf | 2865 | i[34567]86-*-darwin*|x86_64-*-darwin*) |
2866 | # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT | |
2867 | # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h. | |
2868 | ;; | |
1f64ad21 | 2869 | i[34567]86-*-*|x86_64-*-*) |
2870 | if test x$with_arch_32 != x || test x$with_arch_64 != x; then | |
2871 | if test x$with_arch_32 = x; then | |
525b174b | 2872 | with_arch_32=$with_arch |
1f64ad21 | 2873 | fi |
2874 | if test x$with_arch_64 = x; then | |
ed2b8f56 | 2875 | if test $arch_without_64bit = yes; then |
2876 | # Set the default 64bit arch to x86-64 if the default arch | |
2877 | # doesn't support 64bit. | |
2878 | with_arch_64=x86-64 | |
2879 | else | |
525b174b | 2880 | with_arch_64=$with_arch |
ed2b8f56 | 2881 | fi |
1f64ad21 | 2882 | fi |
2883 | with_arch= | |
ed2b8f56 | 2884 | elif test $arch_without_64bit$need_64bit_isa = yesyes; then |
2885 | # Set the default 64bit arch to x86-64 if the default arch | |
2886 | # doesn't support 64bit and we need 64bit ISA. | |
525b174b | 2887 | with_arch_32=$with_arch |
ed2b8f56 | 2888 | with_arch_64=x86-64 |
2889 | with_arch= | |
f067c6b7 | 2890 | fi |
2891 | ;; | |
2892 | esac | |
370a1d10 | 2893 | fi |
f0b281fe | 2894 | |
2d2e1f85 | 2895 | # Support --with-fpmath. |
2896 | if test x$with_fpmath != x; then | |
2897 | case ${target} in | |
2898 | i[34567]86-*-* | x86_64-*-*) | |
2899 | case ${with_fpmath} in | |
e69704a5 | 2900 | avx) |
2901 | tm_file="${tm_file} i386/avxmath.h" | |
2902 | ;; | |
2d2e1f85 | 2903 | sse) |
2904 | tm_file="${tm_file} i386/ssemath.h" | |
2905 | ;; | |
2906 | *) | |
2907 | echo "Invalid --with-fpmath=$with_fpmath" 1>&2 | |
2908 | exit 1 | |
2909 | ;; | |
2910 | esac | |
2911 | ;; | |
2912 | *) | |
2913 | echo "--with-fpmath isn't supported for $target." 1>&2 | |
2914 | exit 1 | |
2915 | ;; | |
2916 | esac | |
2917 | fi | |
2918 | ||
0a76a4fd | 2919 | # Similarly for --with-schedule. |
2920 | if test x$with_schedule = x; then | |
2921 | case ${target} in | |
6af9f7ea | 2922 | hppa1*) |
0a76a4fd | 2923 | # Override default PA8000 scheduling model. |
2924 | with_schedule=7100LC | |
2925 | ;; | |
2926 | esac | |
2927 | fi | |
f0b281fe | 2928 | |
0a76a4fd | 2929 | # Validate and mark as valid any --with options supported |
2930 | # by this target. In order to use a particular --with option | |
2931 | # you must list it in supported_defaults; validating the value | |
2932 | # is optional. This case statement should set nothing besides | |
2933 | # supported_defaults. | |
7dd97ab6 | 2934 | |
0a76a4fd | 2935 | supported_defaults= |
2936 | case "${target}" in | |
f0b281fe | 2937 | alpha*-*-*) |
7dd97ab6 | 2938 | supported_defaults="cpu tune" |
2939 | for which in cpu tune; do | |
2940 | eval "val=\$with_$which" | |
8d520382 | 2941 | case "$val" in |
2942 | "" \ | |
2943 | | ev4 | ev45 | 21064 | ev5 | 21164 | ev56 | 21164a \ | |
2944 | | pca56 | 21164PC | 21164pc | ev6 | 21264 | ev67 \ | |
2945 | | 21264a) | |
7dd97ab6 | 2946 | ;; |
2947 | *) | |
2948 | echo "Unknown CPU used in --with-$which=$val" 1>&2 | |
2949 | exit 1 | |
2950 | ;; | |
2951 | esac | |
2952 | done | |
2953 | ;; | |
2954 | ||
2955 | arm*-*-*) | |
bb10d7b5 | 2956 | supported_defaults="arch cpu float tune fpu abi mode tls" |
7dd97ab6 | 2957 | for which in cpu tune; do |
70ac928b | 2958 | # See if it matches any of the entries in arm-cores.def |
7dd97ab6 | 2959 | eval "val=\$with_$which" |
1cfd705e | 2960 | if [ x"$val" = x ] \ |
61b58075 | 2961 | || grep "^ARM_CORE(\"$val\"," \ |
1cfd705e | 2962 | ${srcdir}/config/arm/arm-cores.def \ |
2963 | > /dev/null; then | |
2964 | # Ok | |
61b58075 | 2965 | new_val=`grep "^ARM_CORE(\"$val\"," \ |
2966 | ${srcdir}/config/arm/arm-cores.def | \ | |
2967 | sed -e 's/^[^,]*,[ ]*//' | \ | |
2968 | sed -e 's/,.*$//'` | |
346bfe2d | 2969 | eval "target_${which}_cname=$new_val" |
61b58075 | 2970 | echo "For $val real value is $new_val" |
1cfd705e | 2971 | true |
2972 | else | |
2973 | echo "Unknown CPU used in --with-$which=$val" 1>&2 | |
2974 | exit 1 | |
70ac928b | 2975 | fi |
7dd97ab6 | 2976 | done |
2977 | ||
8d520382 | 2978 | case "$with_arch" in |
2979 | "" \ | |
a2cd141b | 2980 | | armv[23456] | armv2a | armv3m | armv4t | armv5t \ |
b77c60b7 | 2981 | | armv5te | armv6j |armv6k | armv6z | armv6zk | armv6-m \ |
2982 | | armv7 | armv7-a | armv7-r | armv7-m \ | |
6b4d6063 | 2983 | | iwmmxt | ep9312) |
f0b281fe | 2984 | # OK |
bb678e49 | 2985 | ;; |
2986 | *) | |
7dd97ab6 | 2987 | echo "Unknown arch used in --with-arch=$with_arch" 1>&2 |
f0b281fe | 2988 | exit 1 |
3864b642 | 2989 | ;; |
2990 | esac | |
f0b281fe | 2991 | |
8d520382 | 2992 | case "$with_float" in |
2993 | "" \ | |
a2cd141b | 2994 | | soft | hard | softfp) |
f0b281fe | 2995 | # OK |
3864b642 | 2996 | ;; |
f0b281fe | 2997 | *) |
7dd97ab6 | 2998 | echo "Unknown floating point type used in --with-float=$with_float" 1>&2 |
f0b281fe | 2999 | exit 1 |
3864b642 | 3000 | ;; |
3001 | esac | |
7dd97ab6 | 3002 | |
a2cd141b | 3003 | case "$with_fpu" in |
3004 | "" \ | |
8f50e6ed | 3005 | | vfp | vfp3 | vfpv3 \ |
414f0dcb | 3006 | | vfpv3-fp16 | vfpv3-d16 | vfpv3-d16-fp16 | vfpv3xd \ |
3007 | | vfpv3xd-fp16 | neon | neon-fp16 | vfpv4 | vfpv4-d16 \ | |
3008 | | fpv4-sp-d16 | neon-vfpv4) | |
a2cd141b | 3009 | # OK |
3010 | ;; | |
8f50e6ed | 3011 | fpa | fpe2 | fpe3 | maverick) |
3012 | if test "x$enable_obsolete" != xyes; then | |
3013 | echo "*** Configuration option --with-fpu=${with_fpu} is obsolete." >&2 | |
3014 | echo "*** Specify --enable-obsolete to build it anyway." >&2 | |
3015 | echo "*** Support will be REMOVED in the next major release of GCC." >&2 | |
3016 | exit 1 | |
3017 | fi | |
3018 | ;; | |
a2cd141b | 3019 | *) |
f9273c43 | 3020 | echo "Unknown fpu used in --with-fpu=$with_fpu" 2>&1 |
3021 | exit 1 | |
3022 | ;; | |
3023 | esac | |
3024 | ||
3025 | case "$with_abi" in | |
3026 | "" \ | |
6cac4dc0 | 3027 | | apcs-gnu | atpcs | aapcs | iwmmxt | aapcs-linux ) |
f9273c43 | 3028 | #OK |
3029 | ;; | |
3030 | *) | |
3031 | echo "Unknown ABI used in --with-abi=$with_abi" | |
a2cd141b | 3032 | exit 1 |
3033 | ;; | |
3034 | esac | |
3035 | ||
086571a4 | 3036 | case "$with_mode" in |
3037 | "" \ | |
3038 | | arm | thumb ) | |
3039 | #OK | |
3040 | ;; | |
3041 | *) | |
3042 | echo "Unknown mode used in --with-mode=$with_mode" | |
3043 | exit 1 | |
3044 | ;; | |
3045 | esac | |
3046 | ||
bb10d7b5 | 3047 | case "$with_tls" in |
3048 | "" \ | |
3049 | | gnu | gnu2) | |
3050 | # OK | |
3051 | ;; | |
3052 | *) | |
3053 | echo "Unknown TLS method used in --with-tls=$with_tls" 1>&2 | |
3054 | exit 1 | |
3055 | ;; | |
3056 | esac | |
3057 | ||
7dd97ab6 | 3058 | if test "x$with_arch" != x && test "x$with_cpu" != x; then |
f9273c43 | 3059 | echo "Warning: --with-arch overrides --with-cpu=$with_cpu" 1>&2 |
7dd97ab6 | 3060 | fi |
3864b642 | 3061 | ;; |
3864b642 | 3062 | |
3e7f6cce | 3063 | fr*-*-*linux*) |
3064 | supported_defaults=cpu | |
3065 | case "$with_cpu" in | |
3066 | fr400) ;; | |
de6e318c | 3067 | fr550) ;; |
3e7f6cce | 3068 | *) |
3069 | echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2 | |
3070 | exit 1 | |
3071 | ;; | |
3072 | esac | |
3073 | ;; | |
3074 | ||
6af9f7ea | 3075 | fido-*-* | m68k*-*-*) |
558b196a | 3076 | supported_defaults="arch cpu" |
3077 | case "$with_arch" in | |
3078 | "" | "m68k"| "cf") | |
3079 | m68k_arch_family="$with_arch" | |
3080 | ;; | |
3081 | *) | |
3082 | echo "Invalid --with-arch=$with_arch" 1>&2 | |
3083 | exit 1 | |
3084 | ;; | |
3085 | esac | |
f84195ec | 3086 | |
3087 | # We always have a $with_cpu setting here. | |
8e80b452 | 3088 | case "$with_cpu" in |
8aed3cb3 | 3089 | "m68000" | "m68010" | "m68020" | "m68030" | "m68040" | "m68060") |
3090 | m68k_cpu_ident=$with_cpu | |
3091 | ;; | |
3092 | "m68020-40") | |
3093 | m68k_cpu_ident=m68020 | |
3094 | tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_40" | |
3095 | ;; | |
3096 | "m68020-60") | |
3097 | m68k_cpu_ident=m68020 | |
3098 | tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_60" | |
8e80b452 | 3099 | ;; |
3100 | *) | |
8aed3cb3 | 3101 | # We need the C identifier rather than the string. |
3102 | m68k_cpu_ident=`awk -v arg="\"$with_cpu\"" \ | |
3103 | 'BEGIN { FS="[ \t]*[,()][ \t]*" }; \ | |
3104 | $1 == "M68K_DEVICE" && $2 == arg { print $3 }' \ | |
3105 | ${srcdir}/config/m68k/m68k-devices.def` | |
3106 | if [ x"$m68k_cpu_ident" = x ] ; then | |
3107 | echo "Unknown CPU used in --with-cpu=$with_cpu" 1>&2 | |
3108 | exit 1 | |
3109 | fi | |
3110 | with_cpu="mcpu=$with_cpu" | |
8e80b452 | 3111 | ;; |
3112 | esac | |
3113 | ;; | |
3114 | ||
6af9f7ea | 3115 | hppa*-*-*) |
7dd97ab6 | 3116 | supported_defaults="arch schedule" |
3117 | ||
8d520382 | 3118 | case "$with_arch" in |
3119 | "" | 1.0 | 1.1 | 2.0) | |
7dd97ab6 | 3120 | # OK |
3121 | ;; | |
3122 | *) | |
3123 | echo "Unknown architecture used in --with-arch=$with_arch" 1>&2 | |
3124 | exit 1 | |
3125 | ;; | |
3126 | esac | |
3127 | ||
8d520382 | 3128 | case "$with_schedule" in |
3129 | "" | 700 | 7100 | 7100LC | 7200 | 7300 | 8000) | |
f0b281fe | 3130 | # OK |
3131 | ;; | |
3132 | *) | |
3133 | echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2 | |
3134 | exit 1 | |
3135 | ;; | |
3136 | esac | |
3864b642 | 3137 | ;; |
3864b642 | 3138 | |
f0b281fe | 3139 | i[34567]86-*-* | x86_64-*-*) |
f067c6b7 | 3140 | supported_defaults="arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64" |
3141 | for which in arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64; do | |
7dd97ab6 | 3142 | eval "val=\$with_$which" |
e83e5390 | 3143 | case ${val} in |
9db3d688 | 3144 | i386 | i486 \ |
e83e5390 | 3145 | | i586 | pentium | pentium-mmx | winchip-c6 | winchip2 \ |
3146 | | c3 | c3-2 | i686 | pentiumpro | pentium2 | pentium3 \ | |
3147 | | pentium4 | k6 | k6-2 | k6-3 | athlon | athlon-tbird \ | |
3451fffd | 3148 | | athlon-4 | athlon-xp | athlon-mp | geode \ |
9db3d688 | 3149 | | prescott | pentium-m | pentium4m | pentium3m) |
3150 | case "${target}" in | |
3151 | x86_64-*-*) | |
f067c6b7 | 3152 | case "x$which" in |
3153 | *_32) | |
3154 | ;; | |
3155 | *) | |
3156 | echo "CPU given in --with-$which=$val doesn't support 64bit mode." 1>&2 | |
3157 | exit 1 | |
3158 | ;; | |
3159 | esac | |
9db3d688 | 3160 | ;; |
3161 | esac | |
3162 | # OK | |
3163 | ;; | |
414f0dcb | 3164 | "" | x86-64 | generic | native \ |
3165 | | k8 | k8-sse3 | athlon64 | athlon64-sse3 | opteron \ | |
8991ae0a | 3166 | | opteron-sse3 | athlon-fx | bdver2 | bdver1 | btver1 \ |
3167 | | amdfam10 | barcelona | nocona | core2 | corei7 \ | |
d5301cf2 | 3168 | | corei7-avx | core-avx-i | core-avx2 | atom) |
7dd97ab6 | 3169 | # OK |
3170 | ;; | |
3171 | *) | |
3172 | echo "Unknown CPU given in --with-$which=$val." 1>&2 | |
3173 | exit 1 | |
3174 | ;; | |
3175 | esac | |
3176 | done | |
3177 | ;; | |
3178 | ||
3179 | mips*-*-*) | |
1af9587c | 3180 | supported_defaults="abi arch arch_32 arch_64 float tune tune_32 tune_64 divide llsc mips-plt synci" |
7dd97ab6 | 3181 | |
e83e5390 | 3182 | case ${with_float} in |
3183 | "" | soft | hard) | |
f0b281fe | 3184 | # OK |
3185 | ;; | |
3186 | *) | |
7dd97ab6 | 3187 | echo "Unknown floating point type used in --with-float=$with_float" 1>&2 |
f0b281fe | 3188 | exit 1 |
3189 | ;; | |
3190 | esac | |
3864b642 | 3191 | |
e83e5390 | 3192 | case ${with_abi} in |
3193 | "" | 32 | o64 | n32 | 64 | eabi) | |
f0b281fe | 3194 | # OK |
3195 | ;; | |
3196 | *) | |
7dd97ab6 | 3197 | echo "Unknown ABI used in --with-abi=$with_abi" 1>&2 |
f0b281fe | 3198 | exit 1 |
3199 | ;; | |
3200 | esac | |
f9262d1e | 3201 | |
3202 | case ${with_divide} in | |
3203 | "" | breaks | traps) | |
3204 | # OK | |
3205 | ;; | |
3206 | *) | |
3207 | echo "Unknown division check type use in --with-divide=$with_divide" 1>&2 | |
3208 | exit 1 | |
bc4c18f7 | 3209 | ;; |
3210 | esac | |
3211 | ||
3212 | case ${with_llsc} in | |
3213 | yes) | |
3214 | with_llsc=llsc | |
3215 | ;; | |
3216 | no) | |
3217 | with_llsc="no-llsc" | |
3218 | ;; | |
3219 | "") | |
3220 | # OK | |
3221 | ;; | |
3222 | *) | |
3223 | echo "Unknown llsc type used in --with-llsc" 1>&2 | |
3224 | exit 1 | |
3225 | ;; | |
f9262d1e | 3226 | esac |
4a909f69 | 3227 | |
3228 | case ${with_mips_plt} in | |
3229 | yes) | |
3230 | with_mips_plt=plt | |
3231 | ;; | |
3232 | no) | |
3233 | with_mips_plt=no-plt | |
3234 | ;; | |
3235 | "") | |
3236 | ;; | |
3237 | *) | |
3238 | echo "Unknown --with-mips-plt argument: $with_mips_plt" 1>&2 | |
3239 | exit 1 | |
3240 | ;; | |
3241 | esac | |
1af9587c | 3242 | |
3243 | case ${with_synci} in | |
3244 | yes) | |
3245 | with_synci=synci | |
3246 | ;; | |
3247 | "" | no) | |
3248 | # No is the default. | |
3249 | with_synci=no-synci | |
3250 | ;; | |
3251 | *) | |
3252 | echo "Unknown synci type used in --with-synci" 1>&2 | |
3253 | exit 1 | |
3254 | ;; | |
3255 | esac | |
3864b642 | 3256 | ;; |
3864b642 | 3257 | |
7dd97ab6 | 3258 | powerpc*-*-* | rs6000-*-*) |
cf61fe8d | 3259 | supported_defaults="cpu cpu_32 cpu_64 float tune tune_32 tune_64" |
7dd97ab6 | 3260 | |
cf61fe8d | 3261 | for which in cpu cpu_32 cpu_64 tune tune_32 tune_64; do |
7dd97ab6 | 3262 | eval "val=\$with_$which" |
e83e5390 | 3263 | case ${val} in |
83ae44d6 | 3264 | default32 | default64) |
cf61fe8d | 3265 | case $which in |
3266 | cpu | tune) | |
3267 | ;; | |
3268 | *) | |
3269 | echo "$val only valid for --with-cpu and --with-tune." 1>&2 | |
3270 | exit 1 | |
3271 | ;; | |
3272 | esac | |
83ae44d6 | 3273 | with_which="with_$which" |
3274 | eval $with_which= | |
3275 | ;; | |
e2fcf81b | 3276 | 405cr) |
3277 | tm_defines="${tm_defines} CONFIG_PPC405CR" | |
3278 | eval "with_$which=405" | |
3279 | ;; | |
83ae44d6 | 3280 | "" | common \ |
94f7a54b | 3281 | | power | power[234567] | power6x | powerpc | powerpc64 \ |
e83e5390 | 3282 | | rios | rios1 | rios2 | rsc | rsc1 | rs64a \ |
257bc844 | 3283 | | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \ |
ed08558a | 3284 | | 476 | 476fp | 505 | 601 | 602 | 603 | 603e | ec603e \ |
3285 | | 604 | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \ | |
81a88188 | 3286 | | a2 | e300c[23] | 854[08] | e500mc | e500mc64 | titan\ |
2b3ae3ef | 3287 | | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5 | cell) |
7dd97ab6 | 3288 | # OK |
3289 | ;; | |
3290 | *) | |
3291 | echo "Unknown cpu used in --with-$which=$val." 1>&2 | |
3292 | exit 1 | |
3293 | ;; | |
3294 | esac | |
3295 | done | |
3296 | ;; | |
3297 | ||
b8c0043c | 3298 | s390*-*-*) |
3299 | supported_defaults="arch mode tune" | |
3300 | ||
3301 | for which in arch tune; do | |
3302 | eval "val=\$with_$which" | |
e83e5390 | 3303 | case ${val} in |
33d033da | 3304 | "" | g5 | g6 | z900 | z990 | z9-109 | z9-ec | z10 | z196) |
b8c0043c | 3305 | # OK |
3306 | ;; | |
3307 | *) | |
3308 | echo "Unknown cpu used in --with-$which=$val." 1>&2 | |
3309 | exit 1 | |
3310 | ;; | |
3311 | esac | |
3312 | done | |
3313 | ||
e83e5390 | 3314 | case ${with_mode} in |
3315 | "" | esa | zarch) | |
b8c0043c | 3316 | # OK |
3317 | ;; | |
3318 | *) | |
3319 | echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2 | |
3320 | exit 1 | |
3321 | ;; | |
3322 | esac | |
3323 | ;; | |
3324 | ||
07168dd9 | 3325 | sh[123456ble]-*-* | sh-*-*) |
3326 | supported_defaults="cpu" | |
3a6994f8 | 3327 | case "`echo $with_cpu | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz- | sed s/sh/m/`" in |
07168dd9 | 3328 | "" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu ) |
3329 | # OK | |
3330 | ;; | |
7105fb72 | 3331 | m2a | m2a-single | m2a-single-only | m2a-nofpu) |
3332 | ;; | |
9435e831 | 3333 | m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al) |
3334 | ;; | |
07168dd9 | 3335 | *) |
3336 | echo "Unknown CPU used in --with-cpu=$with_cpu, known values:" 1>&2 | |
3337 | echo "m1 m2 m2e m3 m3e m4 m4-single m4-single-only m4-nofpu" 1>&2 | |
9435e831 | 3338 | echo "m4a m4a-single m4a-single-only m4a-nofpu m4al" 1>&2 |
7105fb72 | 3339 | echo "m2a m2a-single m2a-single-only m2a-nofpu" 1>&2 |
07168dd9 | 3340 | exit 1 |
3341 | ;; | |
3342 | esac | |
3343 | ;; | |
f0b281fe | 3344 | sparc*-*-*) |
7dd97ab6 | 3345 | supported_defaults="cpu float tune" |
3346 | ||
3347 | for which in cpu tune; do | |
3348 | eval "val=\$with_$which" | |
e83e5390 | 3349 | case ${val} in |
b0168e11 | 3350 | "" | sparc | sparcv9 | sparc64 \ |
3351 | | v7 | cypress \ | |
3352 | | v8 | supersparc | hypersparc | leon \ | |
3353 | | sparclite | f930 | f934 | sparclite86x \ | |
3354 | | sparclet | tsc701 \ | |
b18dbf25 | 3355 | | v9 | ultrasparc | ultrasparc3 | niagara | niagara2 \ |
3356 | | niagara3 | niagara4) | |
7dd97ab6 | 3357 | # OK |
3358 | ;; | |
3359 | *) | |
3360 | echo "Unknown cpu used in --with-$which=$val" 1>&2 | |
3361 | exit 1 | |
3362 | ;; | |
3363 | esac | |
3364 | done | |
3864b642 | 3365 | |
e83e5390 | 3366 | case ${with_float} in |
3367 | "" | soft | hard) | |
f0b281fe | 3368 | # OK |
3369 | ;; | |
3370 | *) | |
7dd97ab6 | 3371 | echo "Unknown floating point type used in --with-float=$with_float" 1>&2 |
f0b281fe | 3372 | exit 1 |
3373 | ;; | |
3374 | esac | |
3864b642 | 3375 | ;; |
3864b642 | 3376 | |
5474166e | 3377 | spu-*-*) |
3378 | supported_defaults="arch tune" | |
3379 | ||
3380 | for which in arch tune; do | |
3381 | eval "val=\$with_$which" | |
3382 | case ${val} in | |
3383 | "" | cell | celledp) | |
3384 | # OK | |
3385 | ;; | |
3386 | *) | |
3387 | echo "Unknown cpu used in --with-$which=$val." 1>&2 | |
3388 | exit 1 | |
3389 | ;; | |
3390 | esac | |
3391 | done | |
3392 | ;; | |
3393 | ||
5aa04b01 | 3394 | tic6x-*-*) |
3395 | supported_defaults="arch" | |
3396 | ||
3397 | case ${with_arch} in | |
3398 | "" | c62x | c64x | c64x+ | c67x | c67x+ | c674x) | |
3399 | # OK | |
3400 | ;; | |
3401 | *) | |
3402 | echo "Unknown arch used in --with-arch=$with_arch." 1>&2 | |
3403 | exit 1 | |
3404 | ;; | |
3405 | esac | |
3406 | ;; | |
3407 | ||
f0b281fe | 3408 | v850*-*-*) |
7dd97ab6 | 3409 | supported_defaults=cpu |
e83e5390 | 3410 | case ${with_cpu} in |
f5ec6516 | 3411 | "" | v850e | v850e1 | v850e2 | v850es | v850e2v3) |
f0b281fe | 3412 | # OK |
3413 | ;; | |
3414 | *) | |
3415 | echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2 | |
3416 | exit 1 | |
3417 | ;; | |
3418 | esac | |
3864b642 | 3419 | ;; |
0a76a4fd | 3420 | esac |
3864b642 | 3421 | |
0a76a4fd | 3422 | # Set some miscellaneous flags for particular targets. |
3423 | target_cpu_default2= | |
3424 | case ${target} in | |
f0b281fe | 3425 | arm*-*-*) |
346bfe2d | 3426 | if test x$target_cpu_cname = x |
3427 | then | |
3428 | target_cpu_default2=TARGET_CPU_generic | |
3429 | else | |
3430 | target_cpu_default2=TARGET_CPU_$target_cpu_cname | |
3431 | fi | |
f0b281fe | 3432 | ;; |
582b17a6 | 3433 | |
6af9f7ea | 3434 | hppa*-*-*) |
8ab32933 | 3435 | target_cpu_default2="MASK_BIG_SWITCH" |
f0b281fe | 3436 | if test x$gas = xyes |
bb607926 | 3437 | then |
8ab32933 | 3438 | target_cpu_default2="${target_cpu_default2}|MASK_GAS|MASK_JUMP_IN_DELAY" |
f0b281fe | 3439 | fi |
3864b642 | 3440 | ;; |
3864b642 | 3441 | |
6af9f7ea | 3442 | fido*-*-* | m68k*-*-*) |
8aed3cb3 | 3443 | target_cpu_default2=$m68k_cpu_ident |
d078aadd | 3444 | tmake_file="m68k/t-opts $tmake_file" |
558b196a | 3445 | if [ x"$m68k_arch_family" != x ]; then |
3446 | tmake_file="m68k/t-$m68k_arch_family $tmake_file" | |
3447 | fi | |
8aed3cb3 | 3448 | ;; |
3449 | ||
b3fd46a0 | 3450 | i[34567]86-*-darwin* | x86_64-*-darwin*) |
b3fd46a0 | 3451 | ;; |
8a84c748 | 3452 | i[34567]86-*-linux* | x86_64-*-linux* | \ |
3453 | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \ | |
3454 | i[34567]86-*-gnu*) | |
b3fd46a0 | 3455 | ;; |
14f27bc6 | 3456 | i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
20be3c56 | 3457 | ;; |
f7ef49da | 3458 | i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*) |
6471e33b | 3459 | ;; |
278afeb5 | 3460 | i[34567]86-*-freebsd* | x86_64-*-freebsd*) |
278afeb5 | 3461 | ;; |
8b21beb2 | 3462 | ia64*-*-linux*) |
8b21beb2 | 3463 | ;; |
b3fd46a0 | 3464 | |
f0b281fe | 3465 | mips*-*-*) |
b93bf04a | 3466 | if test x$gnu_ld = xyes |
3467 | then | |
dfae4483 | 3468 | target_cpu_default2="MASK_SPLIT_ADDRESSES" |
b93bf04a | 3469 | fi |
09c6646e | 3470 | case ${target} in |
f0b281fe | 3471 | mips*el-*-*) |
3472 | tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines" | |
3473 | ;; | |
3474 | esac | |
1d88eb71 | 3475 | tmake_file="mips/t-mips $tmake_file" |
f4deb416 | 3476 | ;; |
f0b281fe | 3477 | |
3478 | powerpc*-*-* | rs6000-*-*) | |
7dd97ab6 | 3479 | # FIXME: The PowerPC port uses the value set at compile time, |
3480 | # although it's only cosmetic. | |
f0b281fe | 3481 | if test "x$with_cpu" != x |
bb607926 | 3482 | then |
f0b281fe | 3483 | target_cpu_default2="\\\"$with_cpu\\\"" |
bb607926 | 3484 | fi |
f0b281fe | 3485 | out_file=rs6000/rs6000.c |
3486 | c_target_objs="${c_target_objs} rs6000-c.o" | |
3487 | cxx_target_objs="${cxx_target_objs} rs6000-c.o" | |
3488 | tmake_file="rs6000/t-rs6000 ${tmake_file}" | |
63f9fa57 | 3489 | |
3490 | if test x$enable_e500_double = xyes | |
3491 | then | |
3492 | tm_file="$tm_file rs6000/e500-double.h" | |
3493 | fi | |
f4deb416 | 3494 | ;; |
3864b642 | 3495 | |
57d5535b | 3496 | sh[123456ble]*-*-* | sh-*-*) |
3497 | c_target_objs="${c_target_objs} sh-c.o" | |
3498 | cxx_target_objs="${cxx_target_objs} sh-c.o" | |
3499 | ;; | |
3500 | ||
b0168e11 | 3501 | sparc-leon*-*) |
3502 | if test x$with_tune = x ; then | |
3503 | with_tune=leon; | |
3504 | fi | |
3505 | ||
3506 | # The SPARC port checks this value at compile-time. | |
3507 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
3508 | ;; | |
3509 | ||
f0b281fe | 3510 | sparc*-*-*) |
7dd97ab6 | 3511 | # Some standard aliases. |
3512 | case x$with_cpu in | |
3513 | xsparc) | |
3514 | with_cpu=v7 | |
3515 | ;; | |
7dd97ab6 | 3516 | xsparcv9 | xsparc64) |
3517 | with_cpu=v9 | |
3518 | ;; | |
3519 | esac | |
3520 | ||
3ce7ff97 | 3521 | # The SPARC port checks this value at compile-time. |
3864b642 | 3522 | target_cpu_default2="TARGET_CPU_$with_cpu" |
3523 | ;; | |
b0168e11 | 3524 | |
f0b281fe | 3525 | v850*-*-*) |
3526 | case "x$with_cpu" in | |
3527 | x) | |
3528 | ;; | |
f5ec6516 | 3529 | xv850e | xv850e1 | xv850e2 | xv850e2v3) |
f0b281fe | 3530 | target_cpu_default2="TARGET_CPU_$with_cpu" |
3531 | ;; | |
f5ec6516 | 3532 | xv850es) |
3533 | target_cpu_default2="TARGET_CPU_v850e1" | |
3534 | ;; | |
f0b281fe | 3535 | esac |
3536 | ;; | |
0a76a4fd | 3537 | esac |
bb607926 | 3538 | |
0a76a4fd | 3539 | t= |
bb10d7b5 | 3540 | all_defaults="abi cpu cpu_32 cpu_64 arch arch_32 arch_64 tune tune_32 tune_64 schedule float mode fpu divide llsc mips-plt synci tls" |
0a76a4fd | 3541 | for option in $all_defaults |
3542 | do | |
4a909f69 | 3543 | eval "val=\$with_"`echo $option | sed s/-/_/g` |
0a76a4fd | 3544 | if test -n "$val"; then |
3545 | case " $supported_defaults " in | |
3546 | *" $option "*) | |
3547 | ;; | |
3548 | *) | |
3549 | echo "This target does not support --with-$option." 2>&1 | |
fc3e831e | 3550 | echo "Valid --with options are: $supported_defaults" 2>&1 |
0a76a4fd | 3551 | exit 1 |
3552 | ;; | |
3553 | esac | |
7dd97ab6 | 3554 | |
0a76a4fd | 3555 | if test "x$t" = x |
3556 | then | |
3557 | t="{ \"$option\", \"$val\" }" | |
3558 | else | |
3559 | t="${t}, { \"$option\", \"$val\" }" | |
7dd97ab6 | 3560 | fi |
7dd97ab6 | 3561 | fi |
0a76a4fd | 3562 | done |
7dd97ab6 | 3563 | |
0a76a4fd | 3564 | if test "x$t" = x |
3565 | then | |
3566 | configure_default_options="{ { NULL, NULL} }" | |
3567 | else | |
3568 | configure_default_options="{ ${t} }" | |
3569 | fi | |
3570 | ||
3571 | if test "$target_cpu_default2" != "" | |
3572 | then | |
3573 | if test "$target_cpu_default" != "" | |
bb607926 | 3574 | then |
0a76a4fd | 3575 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" |
3576 | else | |
3577 | target_cpu_default=$target_cpu_default2 | |
bb607926 | 3578 | fi |
0a76a4fd | 3579 | fi |