]>
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 | ;; | |
48914aa5 | 1891 | powerpc-*-freebsd*) |
7a6d1a72 | 1892 | tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h rs6000/freebsd.h" |
84600db5 | 1893 | tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" |
16ac04e7 | 1894 | extra_options="${extra_options} rs6000/sysv4.opt" |
327811ee | 1895 | ;; |
93006578 | 1896 | powerpc-*-netbsd*) |
5eeaefac | 1897 | tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h" |
f466b0a0 | 1898 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
5eeaefac | 1899 | tmake_file="${tmake_file} rs6000/t-netbsd" |
16ac04e7 | 1900 | extra_options="${extra_options} rs6000/sysv4.opt" |
93006578 | 1901 | ;; |
6f0a80d3 | 1902 | powerpc-*-eabispe*) |
de784bee | 1903 | 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 | 1904 | extra_options="${extra_options} rs6000/sysv4.opt" |
79bbdafd | 1905 | tmake_file="rs6000/t-spe rs6000/t-ppccomm" |
f3449a3c | 1906 | use_gcc_stdint=wrap |
6f0a80d3 | 1907 | ;; |
bbf524e7 | 1908 | powerpc-*-eabisimaltivec*) |
de784bee | 1909 | 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 | 1910 | extra_options="${extra_options} rs6000/sysv4.opt" |
a23b9c51 | 1911 | tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm" |
f3449a3c | 1912 | use_gcc_stdint=wrap |
bbf524e7 | 1913 | ;; |
bb607926 | 1914 | powerpc-*-eabisim*) |
de784bee | 1915 | 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 | 1916 | extra_options="${extra_options} rs6000/sysv4.opt" |
a23b9c51 | 1917 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
f3449a3c | 1918 | use_gcc_stdint=wrap |
bb607926 | 1919 | ;; |
1920 | powerpc-*-elf*) | |
de784bee | 1921 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h" |
16ac04e7 | 1922 | extra_options="${extra_options} rs6000/sysv4.opt" |
a23b9c51 | 1923 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
bb607926 | 1924 | ;; |
553c09a8 | 1925 | powerpc-*-eabialtivec*) |
de784bee | 1926 | 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 | 1927 | extra_options="${extra_options} rs6000/sysv4.opt" |
a23b9c51 | 1928 | tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm" |
f3449a3c | 1929 | use_gcc_stdint=wrap |
553c09a8 | 1930 | ;; |
3f5debcf | 1931 | powerpc-xilinx-eabi*) |
de784bee | 1932 | 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 | 1933 | extra_options="${extra_options} rs6000/sysv4.opt rs6000/xilinx.opt" |
a23b9c51 | 1934 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm rs6000/t-xilinx" |
f3449a3c | 1935 | use_gcc_stdint=wrap |
3f5debcf | 1936 | ;; |
bb607926 | 1937 | powerpc-*-eabi*) |
de784bee | 1938 | 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 | 1939 | extra_options="${extra_options} rs6000/sysv4.opt" |
a23b9c51 | 1940 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
f3449a3c | 1941 | use_gcc_stdint=wrap |
bb607926 | 1942 | ;; |
1943 | powerpc-*-rtems*) | |
de784bee | 1944 | 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 | 1945 | extra_options="${extra_options} rs6000/sysv4.opt" |
a23b9c51 | 1946 | tmake_file="rs6000/t-fprules rs6000/t-rtems t-rtems rs6000/t-ppccomm" |
bb607926 | 1947 | ;; |
4e5e2802 | 1948 | powerpc-*-linux* | powerpc64-*-linux*) |
de784bee | 1949 | tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h rs6000/sysv4.h" |
16ac04e7 | 1950 | extra_options="${extra_options} rs6000/sysv4.opt" |
17aa03f5 | 1951 | tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" |
8d40ea45 | 1952 | maybe_biarch=yes |
1953 | case ${target} in | |
4e5e2802 | 1954 | powerpc64-*-linux*spe* | powerpc64-*-linux*paired*) |
1955 | echo "*** Configuration ${target} not supported" 1>&2 | |
1956 | exit 1 | |
1957 | ;; | |
8d40ea45 | 1958 | powerpc-*-linux*spe* | powerpc-*-linux*paired*) |
4e5e2802 | 1959 | maybe_biarch= |
1960 | ;; | |
1961 | powerpc64-*-linux*) | |
1962 | test x$with_cpu != x || cpu_is_64bit=yes | |
50ec89c7 | 1963 | maybe_biarch=always |
4e5e2802 | 1964 | ;; |
8d40ea45 | 1965 | esac |
1966 | case ${maybe_biarch}:${enable_targets}:${cpu_is_64bit} in | |
50ec89c7 | 1967 | always:* | yes:*powerpc64* | yes:all:* | yes:*:yes) |
cc5ffbb8 | 1968 | if test x$cpu_is_64bit = xyes; then |
1969 | tm_file="${tm_file} rs6000/default64.h" | |
1970 | fi | |
f3449a3c | 1971 | tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h glibc-stdint.h" |
cc5ffbb8 | 1972 | tmake_file="$tmake_file rs6000/t-linux64" |
e168332d | 1973 | extra_options="${extra_options} rs6000/linux64.opt" |
cc5ffbb8 | 1974 | ;; |
1975 | *) | |
f3449a3c | 1976 | tm_file="${tm_file} rs6000/linux.h glibc-stdint.h" |
cc5ffbb8 | 1977 | ;; |
1978 | esac | |
8d40ea45 | 1979 | case ${target} in |
fef79628 | 1980 | powerpc*-*-linux*ppc476*) |
1981 | tm_file="${tm_file} rs6000/476.h" | |
1982 | extra_options="${extra_options} rs6000/476.opt" ;; | |
8d40ea45 | 1983 | powerpc*-*-linux*altivec*) |
1984 | tm_file="${tm_file} rs6000/linuxaltivec.h" ;; | |
1985 | powerpc*-*-linux*spe*) | |
1986 | tm_file="${tm_file} rs6000/linuxspe.h rs6000/e500.h" ;; | |
1987 | powerpc*-*-linux*paired*) | |
1988 | tm_file="${tm_file} rs6000/750cl.h" ;; | |
1989 | esac | |
197f58fa | 1990 | if test x${enable_secureplt} = xyes; then |
1991 | tm_file="rs6000/secureplt.h ${tm_file}" | |
1992 | fi | |
bb607926 | 1993 | ;; |
e6eccdb3 | 1994 | powerpc-wrs-vxworks|powerpc-wrs-vxworksae) |
de784bee | 1995 | tm_file="${tm_file} elfos.h freebsd-spec.h rs6000/sysv4.h" |
a23b9c51 | 1996 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks" |
16ac04e7 | 1997 | extra_options="${extra_options} rs6000/sysv4.opt" |
805e22b2 | 1998 | extra_headers=ppc-asm.h |
e6eccdb3 | 1999 | case ${target} in |
2000 | *-vxworksae*) | |
a19f368c | 2001 | tm_file="${tm_file} vx-common.h vxworksae.h rs6000/vxworks.h rs6000/e500.h" |
e6eccdb3 | 2002 | tmake_file="${tmake_file} rs6000/t-vxworksae" |
2003 | ;; | |
2004 | *-vxworks*) | |
7c69b636 | 2005 | tm_file="${tm_file} vx-common.h vxworks.h rs6000/vxworks.h rs6000/e500.h" |
e6eccdb3 | 2006 | ;; |
2007 | esac | |
805e22b2 | 2008 | ;; |
d895dbf9 | 2009 | powerpc-*-lynxos*) |
2010 | xm_defines=POSIX | |
2011 | tm_file="${tm_file} dbxelf.h elfos.h rs6000/sysv4.h rs6000/lynx.h lynx.h" | |
2012 | tmake_file="t-lynx rs6000/t-lynx" | |
16ac04e7 | 2013 | extra_options="${extra_options} rs6000/sysv4.opt lynx.opt" |
d895dbf9 | 2014 | thread_file=lynx |
2015 | gnu_ld=yes | |
2016 | gas=yes | |
2017 | ;; | |
bb607926 | 2018 | powerpcle-*-elf*) |
de784bee | 2019 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h" |
a23b9c51 | 2020 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
16ac04e7 | 2021 | extra_options="${extra_options} rs6000/sysv4.opt" |
bb607926 | 2022 | ;; |
2023 | powerpcle-*-eabisim*) | |
de784bee | 2024 | 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 | 2025 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
16ac04e7 | 2026 | extra_options="${extra_options} rs6000/sysv4.opt" |
f3449a3c | 2027 | use_gcc_stdint=wrap |
bb607926 | 2028 | ;; |
2029 | powerpcle-*-eabi*) | |
de784bee | 2030 | 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 | 2031 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
16ac04e7 | 2032 | extra_options="${extra_options} rs6000/sysv4.opt" |
f3449a3c | 2033 | use_gcc_stdint=wrap |
bb607926 | 2034 | ;; |
bb607926 | 2035 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
b5e8a0bc | 2036 | tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h rs6000/aix-stdint.h" |
a997b0d8 | 2037 | tmake_file="rs6000/t-aix43 t-slibgcc" |
a8bb341c | 2038 | extra_options="${extra_options} rs6000/aix64.opt" |
bb607926 | 2039 | use_collect2=yes |
2040 | thread_file='aix' | |
b5e8a0bc | 2041 | use_gcc_stdint=provide |
83287f80 | 2042 | extra_headers= |
bb607926 | 2043 | ;; |
b1974978 | 2044 | rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*) |
b5e8a0bc | 2045 | tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h rs6000/aix-stdint.h" |
a8bb341c | 2046 | extra_options="${extra_options} rs6000/aix64.opt" |
a997b0d8 | 2047 | tmake_file="rs6000/t-aix43 t-slibgcc" |
bb607926 | 2048 | use_collect2=yes |
2049 | thread_file='aix' | |
b5e8a0bc | 2050 | use_gcc_stdint=wrap |
83287f80 | 2051 | extra_headers= |
bb607926 | 2052 | ;; |
d4115f8c | 2053 | rs6000-ibm-aix5.2.* | powerpc-ibm-aix5.2.*) |
b5e8a0bc | 2054 | tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h rs6000/aix-stdint.h" |
a997b0d8 | 2055 | tmake_file="rs6000/t-aix52 t-slibgcc" |
a8bb341c | 2056 | extra_options="${extra_options} rs6000/aix64.opt" |
b1974978 | 2057 | use_collect2=yes |
2058 | thread_file='aix' | |
b5e8a0bc | 2059 | use_gcc_stdint=wrap |
b1974978 | 2060 | extra_headers= |
2061 | ;; | |
0cc77516 | 2062 | rs6000-ibm-aix5.3.* | powerpc-ibm-aix5.3.*) |
b5e8a0bc | 2063 | tm_file="${tm_file} rs6000/aix.h rs6000/aix53.h rs6000/xcoff.h rs6000/aix-stdint.h" |
a997b0d8 | 2064 | tmake_file="rs6000/t-aix52 t-slibgcc" |
d4115f8c | 2065 | extra_options="${extra_options} rs6000/aix64.opt" |
2066 | use_collect2=yes | |
2067 | thread_file='aix' | |
b5e8a0bc | 2068 | use_gcc_stdint=wrap |
4b39bf76 | 2069 | extra_headers=altivec.h |
d4115f8c | 2070 | ;; |
0cc77516 | 2071 | rs6000-ibm-aix[6789].* | powerpc-ibm-aix[6789].*) |
b5e8a0bc | 2072 | tm_file="${tm_file} rs6000/aix.h rs6000/aix61.h rs6000/xcoff.h rs6000/aix-stdint.h" |
a997b0d8 | 2073 | tmake_file="rs6000/t-aix52 t-slibgcc" |
0cc77516 | 2074 | extra_options="${extra_options} rs6000/aix64.opt" |
2075 | use_collect2=yes | |
2076 | thread_file='aix' | |
b5e8a0bc | 2077 | use_gcc_stdint=wrap |
0cc77516 | 2078 | extra_headers=altivec.h |
2079 | ;; | |
78e515f7 | 2080 | rl78-*-elf*) |
2081 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" | |
2082 | target_has_targetm_common=no | |
2083 | c_target_objs="rl78-c.o" | |
2084 | cxx_target_objs="rl78-c.o" | |
2085 | tmake_file="${tmake_file} rl78/t-rl78" | |
2086 | ;; | |
24833e1a | 2087 | rx-*-elf*) |
3be74046 | 2088 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
24833e1a | 2089 | tmake_file="${tmake_file} rx/t-rx" |
2090 | ;; | |
582b17a6 | 2091 | s390-*-linux*) |
deb14f24 | 2092 | tm_file="s390/s390.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h s390/linux.h" |
5cd72ba2 | 2093 | if test x$enable_targets = xall; then |
2094 | tmake_file="${tmake_file} s390/t-linux64" | |
2095 | fi | |
346e8a0c | 2096 | ;; |
582b17a6 | 2097 | s390x-*-linux*) |
deb14f24 | 2098 | tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h s390/linux.h" |
48de175f | 2099 | tm_p_file=s390/s390-protos.h |
2100 | md_file=s390/s390.md | |
b5ccaa7b | 2101 | extra_modes=s390/s390-modes.def |
48de175f | 2102 | out_file=s390/s390.c |
e38fe738 | 2103 | tmake_file="${tmake_file} s390/t-linux64" |
346e8a0c | 2104 | ;; |
7c1f201b | 2105 | s390x-ibm-tpf*) |
7966af2d | 2106 | tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h s390/tpf.h" |
9f88bc9d | 2107 | tm_p_file=s390/s390-protos.h |
2108 | md_file=s390/s390.md | |
2109 | extra_modes=s390/s390-modes.def | |
2110 | out_file=s390/s390.c | |
9f88bc9d | 2111 | thread_file='tpf' |
2112 | extra_options="${extra_options} s390/tpf.opt" | |
7c1f201b | 2113 | ;; |
3dbfe3e4 | 2114 | score-*-elf) |
b8e22756 | 2115 | gas=yes |
2116 | gnu_ld=yes | |
f3449a3c | 2117 | tm_file="dbxelf.h elfos.h score/elf.h score/score.h newlib-stdint.h" |
3dbfe3e4 | 2118 | ;; |
6af9f7ea | 2119 | sh-*-elf* | sh[12346l]*-*-elf* | \ |
ccf1c0f1 | 2120 | sh-*-linux* | sh[2346lbe]*-*-linux* | \ |
07168dd9 | 2121 | sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ |
237490bf | 2122 | sh64-*-netbsd* | sh64l*-*-netbsd*) |
07168dd9 | 2123 | tmake_file="${tmake_file} sh/t-sh sh/t-elf" |
2124 | if test x${with_endian} = x; then | |
2125 | case ${target} in | |
2126 | sh[1234]*be-*-* | sh[1234]*eb-*-*) with_endian=big ;; | |
2127 | shbe-*-* | sheb-*-*) with_endian=big,little ;; | |
2128 | sh[1234]l* | sh[34]*-*-linux*) with_endian=little ;; | |
2129 | shl* | sh64l* | sh*-*-linux* | \ | |
2130 | sh5l* | sh-superh-elf) with_endian=little,big ;; | |
2131 | sh[1234]*-*-*) with_endian=big ;; | |
2132 | *) with_endian=big,little ;; | |
2133 | esac | |
2134 | fi | |
f555bf81 | 2135 | # TM_ENDIAN_CONFIG is used by t-sh to determine multilibs. |
2136 | # First word : the default endian. | |
2137 | # Second word: the secondary endian (optional). | |
07168dd9 | 2138 | case ${with_endian} in |
f555bf81 | 2139 | big) TM_ENDIAN_CONFIG=mb ;; |
2140 | little) TM_ENDIAN_CONFIG=ml ;; | |
2141 | big,little) TM_ENDIAN_CONFIG="mb ml" ;; | |
2142 | little,big) TM_ENDIAN_CONFIG="ml mb" ;; | |
07168dd9 | 2143 | *) echo "with_endian=${with_endian} not supported."; exit 1 ;; |
2144 | esac | |
2145 | case ${with_endian} in | |
2146 | little*) tm_file="sh/little.h ${tm_file}" ;; | |
2147 | esac | |
9bc320a5 | 2148 | tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h" |
09c6646e | 2149 | case ${target} in |
07168dd9 | 2150 | sh*-*-linux*) tmake_file="${tmake_file} sh/t-linux" |
deb14f24 | 2151 | tm_file="${tm_file} gnu-user.h linux.h glibc-stdint.h sh/linux.h" ;; |
f466b0a0 | 2152 | sh*-*-netbsd*) |
2153 | tm_file="${tm_file} netbsd.h netbsd-elf.h sh/netbsd-elf.h" | |
2154 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" | |
2155 | ||
2156 | ;; | |
cfcf8539 | 2157 | sh*-superh-elf) if test x$with_libgloss != xno; then |
2158 | with_libgloss=yes | |
2159 | tm_file="${tm_file} sh/newlib.h" | |
2160 | fi | |
0e6b6360 | 2161 | tm_file="${tm_file} sh/embed-elf.h" |
cfcf8539 | 2162 | tm_file="${tm_file} sh/superh.h" |
cfcf8539 | 2163 | extra_options="${extra_options} sh/superh.opt" ;; |
65a1f1e9 | 2164 | *) if test x$with_newlib = xyes \ |
2165 | && test x$with_libgloss = xyes; then | |
2166 | tm_file="${tm_file} sh/newlib.h" | |
2167 | fi | |
2168 | tm_file="${tm_file} sh/embed-elf.h" ;; | |
07168dd9 | 2169 | esac |
2170 | case ${target} in | |
2171 | sh5*-*-netbsd*) | |
2172 | # SHmedia, 32-bit ABI | |
4dc4ff49 | 2173 | tmake_file="${tmake_file} sh/t-sh64" |
07168dd9 | 2174 | ;; |
2175 | sh64*-netbsd*) | |
2176 | # SHmedia, 64-bit ABI | |
4dc4ff49 | 2177 | tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5-64" |
07168dd9 | 2178 | ;; |
2179 | *-*-netbsd) | |
07168dd9 | 2180 | ;; |
2181 | sh64*-*-linux*) | |
237490bf | 2182 | tmake_file="${tmake_file} sh/t-sh64" |
07168dd9 | 2183 | tm_file="${tm_file} sh/sh64.h" |
2184 | extra_headers="shmedia.h ushmedia.h sshmedia.h" | |
2185 | ;; | |
febf5bcd | 2186 | sh64*) |
2187 | tmake_file="${tmake_file} sh/t-sh64" | |
2188 | tm_file="${tm_file} sh/sh64.h" | |
50147a3f | 2189 | if test x$with_newlib = xyes; then |
2190 | tm_file="${tm_file} newlib-stdint.h" | |
2191 | fi | |
febf5bcd | 2192 | extra_headers="shmedia.h ushmedia.h sshmedia.h" |
febf5bcd | 2193 | ;; |
f3449a3c | 2194 | *-*-elf*) |
2195 | tm_file="${tm_file} newlib-stdint.h" | |
2196 | ;; | |
493914a8 | 2197 | esac |
07168dd9 | 2198 | # sed el/eb endian suffixes away to avoid confusion with sh[23]e |
2199 | case `echo ${target} | sed 's/e[lb]-/-/'` in | |
2200 | sh64*-*-netbsd*) sh_cpu_target=sh5-64media ;; | |
2201 | sh64* | sh5*-*-netbsd*) sh_cpu_target=sh5-32media ;; | |
9435e831 | 2202 | sh4a_single_only*) sh_cpu_target=sh4a-single-only ;; |
2203 | sh4a_single*) sh_cpu_target=sh4a-single ;; | |
2204 | sh4a_nofpu*) sh_cpu_target=sh4a-nofpu ;; | |
2205 | sh4al) sh_cpu_target=sh4al ;; | |
2206 | sh4a*) sh_cpu_target=sh4a ;; | |
07168dd9 | 2207 | sh4_single_only*) sh_cpu_target=sh4-single-only ;; |
2208 | sh4_single*) sh_cpu_target=sh4-single ;; | |
2209 | sh4_nofpu*) sh_cpu_target=sh4-nofpu ;; | |
2210 | sh4* | sh-superh-*) sh_cpu_target=sh4 ;; | |
2211 | sh3e*) sh_cpu_target=sh3e ;; | |
2212 | sh*-*-netbsd* | sh3*) sh_cpu_target=sh3 ;; | |
7105fb72 | 2213 | sh2a_single_only*) sh_cpu_target=sh2a-single-only ;; |
2214 | sh2a_single*) sh_cpu_target=sh2a-single ;; | |
2215 | sh2a_nofpu*) sh_cpu_target=sh2a-nofpu ;; | |
2216 | sh2a*) sh_cpu_target=sh2a ;; | |
07168dd9 | 2217 | sh2e*) sh_cpu_target=sh2e ;; |
2218 | sh2*) sh_cpu_target=sh2 ;; | |
2219 | *) sh_cpu_target=sh1 ;; | |
aa76b2b5 | 2220 | esac |
65a1f1e9 | 2221 | # did the user say --without-fp ? |
2222 | if test x$with_fp = xno; then | |
2223 | case ${sh_cpu_target} in | |
2224 | sh5-*media) sh_cpu_target=${sh_cpu_target}-nofpu ;; | |
2225 | sh4al | sh1) ;; | |
2226 | sh4a* ) sh_cpu_target=sh4a-nofpu ;; | |
2227 | sh4*) sh_cpu_target=sh4-nofpu ;; | |
2228 | sh3*) sh_cpu_target=sh3 ;; | |
2229 | sh2a*) sh_cpu_target=sh2a-nofpu ;; | |
2230 | sh2*) sh_cpu_target=sh2 ;; | |
2231 | *) echo --without-fp not available for $target: ignored | |
2232 | esac | |
2233 | tm_defines="$tm_defines STRICT_NOFPU=1" | |
2234 | fi | |
07168dd9 | 2235 | sh_cpu_default="`echo $with_cpu|sed s/^m/sh/|tr A-Z_ a-z-`" |
2236 | case $sh_cpu_default in | |
2237 | sh5-64media-nofpu | sh5-64media | \ | |
2238 | sh5-32media-nofpu | sh5-32media | sh5-compact-nofpu | sh5-compact | \ | |
7105fb72 | 2239 | sh2a-single-only | sh2a-single | sh2a-nofpu | sh2a | \ |
9435e831 | 2240 | sh4a-single-only | sh4a-single | sh4a-nofpu | sh4a | sh4al | \ |
99b0f6d9 | 2241 | sh4-single-only | sh4-single | sh4-nofpu | sh4 | sh4-300 | \ |
eb4e5153 | 2242 | sh3e | sh3 | sh2e | sh2 | sh1) ;; |
07168dd9 | 2243 | "") sh_cpu_default=${sh_cpu_target} ;; |
2244 | *) echo "with_cpu=$with_cpu not supported"; exit 1 ;; | |
febf5bcd | 2245 | esac |
07168dd9 | 2246 | sh_multilibs=${with_multilib_list} |
f555bf81 | 2247 | if test "$sh_multilibs" = "default" ; then |
07168dd9 | 2248 | case ${target} in |
65a1f1e9 | 2249 | sh64-superh-linux* | \ |
07168dd9 | 2250 | sh[1234]*) sh_multilibs=${sh_cpu_target} ;; |
2251 | sh64* | sh5*) sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;; | |
2252 | sh-superh-*) sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;; | |
2253 | sh*-*-linux*) sh_multilibs=m1,m3e,m4 ;; | |
2254 | sh*-*-netbsd*) sh_multilibs=m3,m3e,m4 ;; | |
7105fb72 | 2255 | *) sh_multilibs=m1,m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single ;; |
07168dd9 | 2256 | esac |
65a1f1e9 | 2257 | if test x$with_fp = xno; then |
2258 | 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`" | |
2259 | fi | |
07168dd9 | 2260 | fi |
3a6994f8 | 2261 | target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_` |
07168dd9 | 2262 | tm_defines=${tm_defines}' SH_MULTILIB_CPU_DEFAULT=\"'`echo $sh_cpu_default|sed s/sh/m/`'\"' |
f555bf81 | 2263 | tm_defines="$tm_defines SUPPORT_`echo $sh_cpu_default | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1" |
b56481ad | 2264 | sh_multilibs=`echo $sh_multilibs | sed -e 's/,/ /g' -e 's/^[Ss][Hh]/m/' -e 's/ [Ss][Hh]/ m/g' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz-` |
07168dd9 | 2265 | for sh_multilib in ${sh_multilibs}; do |
2266 | case ${sh_multilib} in | |
f555bf81 | 2267 | m1 | m2 | m2e | m3 | m3e | \ |
2268 | m4 | m4-single | m4-single-only | m4-nofpu | m4-300 |\ | |
2269 | m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al | \ | |
2270 | m2a | m2a-single | m2a-single-only | m2a-nofpu | \ | |
2271 | m5-64media | m5-64media-nofpu | \ | |
2272 | m5-32media | m5-32media-nofpu | \ | |
2273 | m5-compact | m5-compact-nofpu) | |
2274 | # TM_MULTILIB_CONFIG is used by t-sh for the non-endian multilib definition | |
2275 | # It is passed to MULTIILIB_OPTIONS verbatim. | |
2276 | TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG}/${sh_multilib}" | |
2277 | tm_defines="$tm_defines SUPPORT_`echo $sh_multilib | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1" | |
07168dd9 | 2278 | ;; |
f555bf81 | 2279 | \!*) # TM_MULTILIB_EXCEPTIONS_CONFIG is used by t-sh |
2280 | # It is passed the MULTILIB_EXCEPTIONS verbatim. | |
2281 | TM_MULTILIB_EXCEPTIONS_CONFIG="${TM_MULTILIB_EXCEPTIONS_CONFIG} `echo $sh_multilib | sed 's/^!//'`" ;; | |
07168dd9 | 2282 | *) |
2283 | echo "with_multilib_list=${sh_multilib} not supported." | |
2284 | exit 1 | |
2285 | ;; | |
2286 | esac | |
2287 | done | |
f555bf81 | 2288 | TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's:^/::'` |
3a6994f8 | 2289 | if test x${enable_incomplete_targets} = xyes ; then |
156fac8b | 2290 | 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 | 2291 | fi |
fa22494c | 2292 | tm_file="$tm_file ./sysroot-suffix.h" |
2293 | tmake_file="$tmake_file t-sysroot-suffix" | |
87e19636 | 2294 | ;; |
26f6dfe2 | 2295 | sh-*-rtems*) |
237490bf | 2296 | tmake_file="sh/t-sh t-rtems sh/t-rtems" |
9bc320a5 | 2297 | tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h newlib-stdint.h" |
26f6dfe2 | 2298 | ;; |
d9799238 | 2299 | sh-wrs-vxworks) |
237490bf | 2300 | tmake_file="$tmake_file sh/t-sh sh/t-vxworks" |
9bc320a5 | 2301 | tm_file="${tm_file} elfos.h sh/elf.h sh/embed-elf.h vx-common.h vxworks.h sh/vxworks.h" |
d9799238 | 2302 | ;; |
bb607926 | 2303 | sparc-*-elf*) |
1bb0ad55 | 2304 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp-elf.h" |
b0168e11 | 2305 | case ${target} in |
2306 | *-leon-*) | |
9e64c9a4 | 2307 | tmake_file="sparc/t-sparc sparc/t-leon" |
b0168e11 | 2308 | ;; |
2309 | *-leon[3-9]*) | |
9e64c9a4 | 2310 | tmake_file="sparc/t-sparc sparc/t-leon3" |
b0168e11 | 2311 | ;; |
2312 | *) | |
9e64c9a4 | 2313 | tmake_file="sparc/t-sparc sparc/t-elf" |
b0168e11 | 2314 | ;; |
2315 | esac | |
bb607926 | 2316 | ;; |
a711a067 | 2317 | sparc-*-rtems*) |
1bb0ad55 | 2318 | tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h" |
9e64c9a4 | 2319 | tmake_file="sparc/t-sparc sparc/t-elf t-rtems" |
a711a067 | 2320 | ;; |
2321 | sparc-*-linux*) | |
8da0577c | 2322 | tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/tso.h" |
a9341855 | 2323 | extra_options="${extra_options} sparc/long-double-switch.opt" |
b0168e11 | 2324 | case ${target} in |
2325 | *-leon-*) | |
9e64c9a4 | 2326 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-leon" |
b0168e11 | 2327 | ;; |
2328 | *-leon[3-9]*) | |
9e64c9a4 | 2329 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-leon3" |
b0168e11 | 2330 | ;; |
2331 | *) | |
a997b0d8 | 2332 | tmake_file="${tmake_file} sparc/t-sparc" |
b0168e11 | 2333 | ;; |
2334 | esac | |
1168681b | 2335 | if test x$enable_targets = xall; then |
2336 | tm_file="sparc/biarch64.h ${tm_file} sparc/linux64.h" | |
64c6f17e | 2337 | tmake_file="${tmake_file} sparc/t-linux64" |
1168681b | 2338 | else |
2339 | tm_file="${tm_file} sparc/linux.h" | |
1168681b | 2340 | fi |
bb607926 | 2341 | ;; |
a711a067 | 2342 | sparc-*-netbsdelf*) |
1bb0ad55 | 2343 | tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h" |
f466b0a0 | 2344 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
a711a067 | 2345 | extra_options="${extra_options} sparc/long-double-switch.opt" |
9e64c9a4 | 2346 | tmake_file="${tmake_file} sparc/t-sparc" |
9afa4711 | 2347 | ;; |
8acfe9c6 | 2348 | sparc*-*-solaris2*) |
8da0577c | 2349 | tm_file="sparc/biarch64.h ${tm_file} ${sol2_tm_file} sol2-bi.h sparc/tso.h" |
8fde03ba | 2350 | case ${target} in |
8acfe9c6 | 2351 | sparc64-*-* | sparcv9-*-*) |
ea457188 | 2352 | tm_file="sparc/default-64.h ${tm_file}" |
f3449a3c | 2353 | ;; |
8acfe9c6 | 2354 | *) |
2355 | test x$with_cpu != x || with_cpu=v9 | |
517cabaa | 2356 | ;; |
8fde03ba | 2357 | esac |
9e64c9a4 | 2358 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-sol2-64" |
bb607926 | 2359 | ;; |
723e1902 | 2360 | sparc-wrs-vxworks) |
1bb0ad55 | 2361 | tm_file="${tm_file} elfos.h sparc/sysv4.h vx-common.h vxworks.h sparc/vxworks.h" |
9e64c9a4 | 2362 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-vxworks" |
723e1902 | 2363 | ;; |
bb607926 | 2364 | sparc64-*-elf*) |
1bb0ad55 | 2365 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h" |
7abb12da | 2366 | extra_options="${extra_options}" |
9e64c9a4 | 2367 | tmake_file="${tmake_file} sparc/t-sparc" |
bb607926 | 2368 | ;; |
a711a067 | 2369 | sparc64-*-rtems*) |
1bb0ad55 | 2370 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h sparc/rtemself.h rtems.h" |
7abb12da | 2371 | extra_options="${extra_options}" |
9e64c9a4 | 2372 | tmake_file="${tmake_file} sparc/t-sparc t-rtems" |
a711a067 | 2373 | ;; |
2374 | sparc64-*-linux*) | |
8da0577c | 2375 | 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 | 2376 | extra_options="${extra_options} sparc/long-double-switch.opt" |
a997b0d8 | 2377 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-linux64" |
a711a067 | 2378 | ;; |
cf481f89 | 2379 | sparc64-*-freebsd*|ultrasparc-*-freebsd*) |
2380 | tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h" | |
a9341855 | 2381 | extra_options="${extra_options} sparc/long-double-switch.opt" |
cf481f89 | 2382 | case "x$with_cpu" in |
68345096 | 2383 | xultrasparc) ;; |
cf481f89 | 2384 | x) with_cpu=ultrasparc ;; |
2385 | *) echo "$with_cpu not supported for freebsd target"; exit 1 ;; | |
2386 | esac | |
9e64c9a4 | 2387 | tmake_file="${tmake_file} sparc/t-sparc" |
cf481f89 | 2388 | ;; |
1897a3df | 2389 | sparc64-*-netbsd*) |
1897a3df | 2390 | tm_file="sparc/biarch64.h ${tm_file}" |
1bb0ad55 | 2391 | tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h" |
f466b0a0 | 2392 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
a9341855 | 2393 | extra_options="${extra_options} sparc/long-double-switch.opt" |
9e64c9a4 | 2394 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-netbsd64" |
1897a3df | 2395 | ;; |
a711a067 | 2396 | sparc64-*-openbsd*) |
1bb0ad55 | 2397 | tm_file="sparc/openbsd1-64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp64-elf.h" |
a711a067 | 2398 | tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h sparc/openbsd64.h" |
1a0fb050 | 2399 | extra_options="${extra_options} openbsd.opt" |
7abb12da | 2400 | extra_options="${extra_options}" |
a711a067 | 2401 | gas=yes gnu_ld=yes |
2402 | with_cpu=ultrasparc | |
9e64c9a4 | 2403 | tmake_file="${tmake_file} sparc/t-sparc" |
a711a067 | 2404 | ;; |
644459d0 | 2405 | spu-*-elf*) |
f3449a3c | 2406 | tm_file="dbxelf.h elfos.h spu/spu-elf.h spu/spu.h newlib-stdint.h" |
644459d0 | 2407 | tmake_file="spu/t-spu-elf" |
638454a1 | 2408 | native_system_header_dir=/include |
6cf5579e | 2409 | extra_headers="spu_intrinsics.h spu_internals.h vmx2spu.h spu_mfcio.h vec_types.h spu_cache.h" |
644459d0 | 2410 | extra_modes=spu/spu-modes.def |
2411 | c_target_objs="${c_target_objs} spu-c.o" | |
2412 | cxx_target_objs="${cxx_target_objs} spu-c.o" | |
2413 | ;; | |
5aa04b01 | 2414 | tic6x-*-elf) |
2415 | tm_file="elfos.h ${tm_file} c6x/elf-common.h c6x/elf.h" | |
2416 | tm_file="${tm_file} dbxelf.h tm-dwarf2.h newlib-stdint.h" | |
5aa04b01 | 2417 | tmake_file="c6x/t-c6x c6x/t-c6x-elf" |
5aa04b01 | 2418 | use_collect2=no |
2419 | ;; | |
2420 | tic6x-*-uclinux) | |
2421 | tm_file="elfos.h ${tm_file} gnu-user.h linux.h c6x/elf-common.h c6x/uclinux-elf.h" | |
2422 | tm_file="${tm_file} dbxelf.h tm-dwarf2.h glibc-stdint.h" | |
2423 | tm_file="${tm_file} ./sysroot-suffix.h" | |
a997b0d8 | 2424 | tmake_file="t-sysroot-suffix t-slibgcc" |
5aa04b01 | 2425 | tmake_file="${tmake_file} c6x/t-c6x c6x/t-c6x-elf c6x/t-c6x-uclinux" |
5aa04b01 | 2426 | use_collect2=no |
2427 | ;; | |
7ce78e23 | 2428 | tilegx-*-linux*) |
2429 | tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h tilegx/linux.h ${tm_file}" | |
2430 | tmake_file="${tmake_file} tilegx/t-tilegx" | |
2431 | extra_objs="mul-tables.o" | |
2432 | c_target_objs="tilegx-c.o" | |
2433 | cxx_target_objs="tilegx-c.o" | |
2434 | ;; | |
2435 | tilepro-*-linux*) | |
2436 | tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h tilepro/linux.h ${tm_file}" | |
2437 | tmake_file="${tmake_file} tilepro/t-tilepro" | |
2438 | extra_objs="mul-tables.o" | |
2439 | c_target_objs="tilepro-c.o" | |
2440 | cxx_target_objs="tilepro-c.o" | |
2441 | ;; | |
f5ec6516 | 2442 | v850*-*-*) |
2443 | case ${target} in | |
2444 | v850e2v3-*-*) | |
2445 | target_cpu_default="TARGET_CPU_v850e2v3" | |
2446 | ;; | |
2447 | v850e2-*-*) | |
2448 | target_cpu_default="TARGET_CPU_v850e2" | |
2449 | ;; | |
2450 | v850e1-*-* | v850es-*-*) | |
2451 | target_cpu_default="TARGET_CPU_v850e1" | |
2452 | ;; | |
2453 | v850e-*-*) | |
2454 | target_cpu_default="TARGET_CPU_v850e" | |
2455 | ;; | |
2456 | v850-*-*) | |
2457 | target_cpu_default="TARGET_CPU_generic" | |
2458 | ;; | |
2459 | esac | |
156edce8 | 2460 | tm_file="dbxelf.h elfos.h newlib-stdint.h v850/v850.h" |
5dd3389c | 2461 | if test x$stabs = xyes |
2462 | then | |
2463 | tm_file="${tm_file} dbx.h" | |
2464 | fi | |
2465 | use_collect2=no | |
2466 | c_target_objs="v850-c.o" | |
2467 | cxx_target_objs="v850-c.o" | |
f3449a3c | 2468 | use_gcc_stdint=wrap |
5dd3389c | 2469 | ;; |
6718899e | 2470 | vax-*-linux*) |
deb14f24 | 2471 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h vax/elf.h vax/linux.h" |
6b9d66b3 | 2472 | extra_options="${extra_options} vax/elf.opt" |
6718899e | 2473 | ;; |
f470dade | 2474 | vax-*-netbsdelf*) |
83accbc0 | 2475 | tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h" |
6b9d66b3 | 2476 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt vax/elf.opt" |
f470dade | 2477 | ;; |
bb607926 | 2478 | vax-*-openbsd*) |
8e6600a1 | 2479 | tm_file="vax/vax.h vax/openbsd1.h openbsd.h openbsd-stdint.h openbsd-pthread.h vax/openbsd.h" |
1a0fb050 | 2480 | extra_options="${extra_options} openbsd.opt" |
bb607926 | 2481 | use_collect2=yes |
2482 | ;; | |
9b954fed | 2483 | xstormy16-*-elf) |
2484 | # For historical reasons, the target files omit the 'x'. | |
2487a409 | 2485 | tm_file="dbxelf.h elfos.h newlib-stdint.h stormy16/stormy16.h" |
9b954fed | 2486 | tm_p_file=stormy16/stormy16-protos.h |
2487 | md_file=stormy16/stormy16.md | |
2488 | out_file=stormy16/stormy16.c | |
840f1481 | 2489 | extra_options=stormy16/stormy16.opt |
9b954fed | 2490 | tmake_file="stormy16/t-stormy16" |
9b954fed | 2491 | ;; |
a76109da | 2492 | xtensa*-*-elf*) |
be47c99e | 2493 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h xtensa/elf.h" |
b0a67e36 | 2494 | extra_options="${extra_options} xtensa/elf.opt" |
f6b7ba2b | 2495 | ;; |
a76109da | 2496 | xtensa*-*-linux*) |
deb14f24 | 2497 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h xtensa/linux.h" |
237490bf | 2498 | tmake_file="${tmake_file} xtensa/t-xtensa" |
f6b7ba2b | 2499 | ;; |
1acdfc69 | 2500 | am33_2.0-*-linux*) |
deb14f24 | 2501 | tm_file="mn10300/mn10300.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h mn10300/linux.h" |
1acdfc69 | 2502 | gas=yes gnu_ld=yes |
1acdfc69 | 2503 | use_collect2=no |
2504 | ;; | |
a41d0b5e | 2505 | m32c-*-rtems*) |
3a0201c8 | 2506 | tm_file="dbxelf.h elfos.h ${tm_file} m32c/rtems.h rtems.h newlib-stdint.h" |
a41d0b5e | 2507 | tmake_file="${tmake_file} t-rtems" |
2508 | c_target_objs="m32c-pragma.o" | |
2509 | cxx_target_objs="m32c-pragma.o" | |
2510 | ;; | |
85c84d5c | 2511 | m32c-*-elf*) |
3a0201c8 | 2512 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
85c84d5c | 2513 | c_target_objs="m32c-pragma.o" |
2514 | cxx_target_objs="m32c-pragma.o" | |
85c84d5c | 2515 | ;; |
bb607926 | 2516 | *) |
09c6646e | 2517 | echo "*** Configuration ${target} not supported" 1>&2 |
bb607926 | 2518 | exit 1 |
2519 | ;; | |
2520 | esac | |
2521 | ||
561866ed | 2522 | case ${target} in |
561866ed | 2523 | i[34567]86-*-linux* | x86_64-*-linux*) |
46f8e3b0 | 2524 | tmake_file="${tmake_file} i386/t-pmm_malloc i386/t-i386" |
561866ed | 2525 | ;; |
2526 | i[34567]86-*-* | x86_64-*-*) | |
46f8e3b0 | 2527 | tmake_file="${tmake_file} i386/t-gmm_malloc i386/t-i386" |
561866ed | 2528 | ;; |
cf61fe8d | 2529 | powerpc*-*-* | rs6000-*-*) |
2530 | tm_file="${tm_file} rs6000/option-defaults.h" | |
561866ed | 2531 | esac |
2532 | ||
c94b1d0e | 2533 | if [ "$target_has_targetcm" = "no" ]; then |
2534 | c_target_objs="$c_target_objs default-c.o" | |
2535 | cxx_target_objs="$cxx_target_objs default-c.o" | |
2536 | fi | |
2537 | ||
3e87b980 | 2538 | if [ "$common_out_file" = "" ]; then |
2539 | if [ "$target_has_targetm_common" = "yes" ]; then | |
2540 | common_out_file="$cpu_type/$cpu_type-common.c" | |
2541 | else | |
2542 | common_out_file="default-common.c" | |
2543 | fi | |
2544 | fi | |
2545 | ||
3864b642 | 2546 | # Support for --with-cpu and related options (and a few unrelated options, |
973f8bf3 | 2547 | # too). |
370a1d10 | 2548 | case ${with_cpu} in |
2549 | yes | no) | |
2550 | echo "--with-cpu must be passed a value" 1>&2 | |
2551 | exit 1 | |
2552 | ;; | |
2553 | esac | |
f0b281fe | 2554 | |
1f64ad21 | 2555 | # Set arch and cpu from ${target} and ${target_noncanonical}. Set cpu |
2556 | # to generic if there is no processor scheduler model for the target. | |
2557 | arch= | |
2558 | cpu= | |
05b38372 | 2559 | arch_without_sse2=no |
ed2b8f56 | 2560 | arch_without_64bit=no |
1f64ad21 | 2561 | case ${target} in |
0be8ff0a | 2562 | i386-*-freebsd*) |
2563 | if test $fbsd_major -ge 6; then | |
2564 | arch=i486 | |
2565 | else | |
2566 | arch=i386 | |
2567 | fi | |
2568 | cpu=generic | |
2569 | arch_without_sse2=yes | |
2570 | arch_without_64bit=yes | |
2571 | ;; | |
1f64ad21 | 2572 | i386-*-*) |
2573 | arch=i386 | |
2574 | cpu=i386 | |
05b38372 | 2575 | arch_without_sse2=yes |
ed2b8f56 | 2576 | arch_without_64bit=yes |
1f64ad21 | 2577 | ;; |
2578 | i486-*-*) | |
2579 | arch=i486 | |
2580 | cpu=i486 | |
05b38372 | 2581 | arch_without_sse2=yes |
ed2b8f56 | 2582 | arch_without_64bit=yes |
1f64ad21 | 2583 | ;; |
2584 | i586-*-*) | |
05b38372 | 2585 | arch_without_sse2=yes |
ed2b8f56 | 2586 | arch_without_64bit=yes |
1f64ad21 | 2587 | case ${target_noncanonical} in |
2588 | k6_2-*) | |
2589 | arch=k6-2 | |
2590 | cpu=k6-2 | |
2591 | ;; | |
2592 | k6_3-*) | |
2593 | arch=k6-3 | |
2594 | cpu=k6-3 | |
2595 | ;; | |
2596 | k6-*) | |
2597 | arch=k6 | |
2598 | cpu=k6 | |
2599 | ;; | |
2600 | pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*) | |
2601 | arch=pentium-mmx | |
2602 | cpu=pentium-mmx | |
2603 | ;; | |
2604 | *) | |
2605 | arch=pentium | |
2606 | cpu=pentium | |
2607 | ;; | |
2608 | esac | |
2609 | ;; | |
2610 | i686-*-* | i786-*-*) | |
2611 | case ${target_noncanonical} in | |
8991ae0a | 2612 | bdver2-*) |
2613 | arch=bdver2 | |
2614 | cpu=bdver2 | |
2615 | ;; | |
6fc76bb0 | 2616 | bdver1-*) |
2617 | arch=bdver1 | |
2618 | cpu=bdver1 | |
2619 | ;; | |
a97faf6b | 2620 | btver1-*) |
2621 | arch=btver1 | |
2622 | cpu=btver1 | |
2623 | ;; | |
1f64ad21 | 2624 | amdfam10-*|barcelona-*) |
2625 | arch=amdfam10 | |
2626 | cpu=amdfam10 | |
2627 | ;; | |
2628 | k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) | |
2629 | arch=k8-sse3 | |
2630 | cpu=k8-sse3 | |
2631 | ;; | |
2632 | k8-*|opteron-*|athlon64-*|athlon_fx-*) | |
2633 | arch=k8 | |
2634 | cpu=k8 | |
2635 | ;; | |
2636 | athlon_xp-*|athlon_mp-*|athlon_4-*) | |
2637 | arch=athlon-4 | |
2638 | cpu=athlon-4 | |
05b38372 | 2639 | arch_without_sse2=yes |
ed2b8f56 | 2640 | arch_without_64bit=yes |
1f64ad21 | 2641 | ;; |
2642 | athlon_tbird-*|athlon-*) | |
2643 | arch=athlon | |
2644 | cpu=athlon | |
05b38372 | 2645 | arch_without_sse2=yes |
1f64ad21 | 2646 | ;; |
2647 | geode-*) | |
2648 | arch=geode | |
2649 | cpu=geode | |
05b38372 | 2650 | arch_without_sse2=yes |
1f64ad21 | 2651 | ;; |
2652 | pentium2-*) | |
2653 | arch=pentium2 | |
2654 | cpu=pentium2 | |
05b38372 | 2655 | arch_without_sse2=yes |
1f64ad21 | 2656 | ;; |
2657 | pentium3-*|pentium3m-*) | |
2658 | arch=pentium3 | |
2659 | cpu=pentium3 | |
05b38372 | 2660 | arch_without_sse2=yes |
1f64ad21 | 2661 | ;; |
2662 | pentium4-*|pentium4m-*) | |
2663 | arch=pentium4 | |
2664 | cpu=pentium4 | |
2665 | ;; | |
2666 | prescott-*) | |
2667 | arch=prescott | |
2668 | cpu=prescott | |
2669 | ;; | |
2670 | nocona-*) | |
2671 | arch=nocona | |
2672 | cpu=nocona | |
2673 | ;; | |
2674 | atom-*) | |
2675 | arch=atom | |
2676 | cpu=atom | |
2677 | ;; | |
2678 | core2-*) | |
2679 | arch=core2 | |
2680 | cpu=core2 | |
2681 | ;; | |
b0298715 | 2682 | corei7-*) |
2683 | arch=corei7 | |
2684 | cpu=corei7 | |
2685 | ;; | |
e4168d53 | 2686 | corei7_avx-*) |
2687 | arch=corei7-avx | |
2688 | cpu=corei7-avx | |
2689 | ;; | |
1f64ad21 | 2690 | pentium_m-*) |
2691 | arch=pentium-m | |
2692 | cpu=pentium-m | |
2693 | ;; | |
2694 | pentiumpro-*) | |
2695 | arch=pentiumpro | |
2696 | cpu=pentiumpro | |
05b38372 | 2697 | arch_without_sse2=yes |
1f64ad21 | 2698 | ;; |
2699 | *) | |
2700 | arch=pentiumpro | |
2701 | cpu=generic | |
05b38372 | 2702 | arch_without_sse2=yes |
ed2b8f56 | 2703 | arch_without_64bit=yes |
1f64ad21 | 2704 | ;; |
2705 | esac | |
2706 | ;; | |
2707 | x86_64-*-*) | |
2708 | case ${target_noncanonical} in | |
8991ae0a | 2709 | bdver2-*) |
2710 | arch=bdver2 | |
2711 | cpu=bdver2 | |
2712 | ;; | |
6fc76bb0 | 2713 | bdver1-*) |
2714 | arch=bdver1 | |
2715 | cpu=bdver1 | |
2716 | ;; | |
a97faf6b | 2717 | btver1-*) |
2718 | arch=btver1 | |
2719 | cpu=btver1 | |
2720 | ;; | |
1f64ad21 | 2721 | amdfam10-*|barcelona-*) |
2722 | arch=amdfam10 | |
2723 | cpu=amdfam10 | |
2724 | ;; | |
2725 | k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) | |
2726 | arch=k8-sse3 | |
2727 | cpu=k8-sse3 | |
2728 | ;; | |
2729 | k8-*|opteron-*|athlon_64-*) | |
2730 | arch=k8 | |
2731 | cpu=k8 | |
2732 | ;; | |
2733 | nocona-*) | |
2734 | arch=nocona | |
2735 | cpu=nocona | |
2736 | ;; | |
2737 | atom-*) | |
2738 | arch=atom | |
2739 | cpu=atom | |
2740 | ;; | |
2741 | core2-*) | |
2742 | arch=core2 | |
2743 | cpu=core2 | |
2744 | ;; | |
b0298715 | 2745 | corei7-*) |
2746 | arch=corei7 | |
2747 | cpu=corei7 | |
2748 | ;; | |
1f64ad21 | 2749 | *) |
2750 | arch=x86-64 | |
2751 | cpu=generic | |
2752 | ;; | |
2753 | esac | |
2754 | ;; | |
2755 | esac | |
2756 | ||
370a1d10 | 2757 | # If there is no $with_cpu option, try to infer one from ${target}. |
2758 | # This block sets nothing except for with_cpu. | |
2759 | if test x$with_cpu = x ; then | |
2760 | case ${target} in | |
1f64ad21 | 2761 | i[34567]86-*-*|x86_64-*-*) |
2762 | with_cpu=$cpu | |
370a1d10 | 2763 | ;; |
2764 | alphaev6[78]*-*-*) | |
2765 | with_cpu=ev67 | |
2766 | ;; | |
2767 | alphaev6*-*-*) | |
2768 | with_cpu=ev6 | |
2769 | ;; | |
2770 | alphapca56*-*-*) | |
2771 | with_cpu=pca56 | |
2772 | ;; | |
2773 | alphaev56*-*-*) | |
2774 | with_cpu=ev56 | |
2775 | ;; | |
2776 | alphaev5*-*-*) | |
2777 | with_cpu=ev5 | |
2778 | ;; | |
de6e318c | 2779 | frv-*-*linux* | frv400-*-*linux*) |
3e7f6cce | 2780 | with_cpu=fr400 |
2781 | ;; | |
de6e318c | 2782 | frv550-*-*linux*) |
2783 | with_cpu=fr550 | |
2784 | ;; | |
f84195ec | 2785 | m68k*-*-*) |
558b196a | 2786 | case "$with_arch" in |
2787 | "cf") | |
2788 | with_cpu=${default_cf_cpu} | |
2789 | ;; | |
2790 | "" | "m68k") | |
2791 | with_cpu=m${default_m68k_cpu} | |
2792 | ;; | |
2793 | esac | |
f84195ec | 2794 | ;; |
223f6dbc | 2795 | mips*-*-vxworks) |
2796 | with_arch=mips2 | |
2797 | ;; | |
b0168e11 | 2798 | sparc-leon*-*) |
2799 | with_cpu=v8; | |
2800 | ;; | |
370a1d10 | 2801 | sparc*-*-*) |
2802 | with_cpu="`echo ${target} | sed 's/-.*$//'`" | |
370a1d10 | 2803 | ;; |
2804 | esac | |
f067c6b7 | 2805 | |
2806 | # Avoid overriding --with-cpu-32 and --with-cpu-64 values. | |
2807 | case ${target} in | |
2808 | i[34567]86-*-*|x86_64-*-*) | |
1f64ad21 | 2809 | if test x$with_cpu_32 != x || test x$with_cpu_64 != x; then |
2810 | if test x$with_cpu_32 = x; then | |
2811 | with_cpu_32=$with_cpu | |
2812 | fi | |
2813 | if test x$with_cpu_64 = x; then | |
2814 | with_cpu_64=$with_cpu | |
2815 | fi | |
2816 | with_cpu= | |
2817 | fi | |
2818 | ;; | |
2819 | esac | |
2820 | fi | |
2821 | ||
2822 | # Support for --with-arch and related options (and a few unrelated options, | |
2823 | # too). | |
2824 | case ${with_arch} in | |
2825 | yes | no) | |
2826 | echo "--with-arch must be passed a value" 1>&2 | |
2827 | exit 1 | |
2828 | ;; | |
2829 | esac | |
2830 | ||
2831 | # If there is no $with_arch option, try to infer one from ${target}. | |
2832 | # This block sets nothing except for with_arch. | |
2833 | if test x$with_arch = x ; then | |
2834 | case ${target} in | |
ffcf29bf | 2835 | i[34567]86-*-darwin*|x86_64-*-darwin*) |
2836 | # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT | |
2837 | # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h. | |
2838 | ;; | |
2d2e1f85 | 2839 | i[34567]86-*-*) |
05b38372 | 2840 | # --with-fpmath sets the default ISA to SSE2, which is the same |
2841 | # ISA supported by Pentium 4. | |
2842 | if test x$with_fpmath = x || test $arch_without_sse2 = no; then | |
2843 | with_arch=$arch | |
2844 | else | |
2845 | with_arch=pentium4 | |
2d2e1f85 | 2846 | fi |
2847 | ;; | |
2848 | x86_64-*-*) | |
1f64ad21 | 2849 | with_arch=$arch |
2850 | ;; | |
2851 | esac | |
2852 | ||
2853 | # Avoid overriding --with-arch-32 and --with-arch-64 values. | |
2854 | case ${target} in | |
ffcf29bf | 2855 | i[34567]86-*-darwin*|x86_64-*-darwin*) |
2856 | # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT | |
2857 | # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h. | |
2858 | ;; | |
1f64ad21 | 2859 | i[34567]86-*-*|x86_64-*-*) |
2860 | if test x$with_arch_32 != x || test x$with_arch_64 != x; then | |
2861 | if test x$with_arch_32 = x; then | |
525b174b | 2862 | with_arch_32=$with_arch |
1f64ad21 | 2863 | fi |
2864 | if test x$with_arch_64 = x; then | |
ed2b8f56 | 2865 | if test $arch_without_64bit = yes; then |
2866 | # Set the default 64bit arch to x86-64 if the default arch | |
2867 | # doesn't support 64bit. | |
2868 | with_arch_64=x86-64 | |
2869 | else | |
525b174b | 2870 | with_arch_64=$with_arch |
ed2b8f56 | 2871 | fi |
1f64ad21 | 2872 | fi |
2873 | with_arch= | |
ed2b8f56 | 2874 | elif test $arch_without_64bit$need_64bit_isa = yesyes; then |
2875 | # Set the default 64bit arch to x86-64 if the default arch | |
2876 | # doesn't support 64bit and we need 64bit ISA. | |
525b174b | 2877 | with_arch_32=$with_arch |
ed2b8f56 | 2878 | with_arch_64=x86-64 |
2879 | with_arch= | |
f067c6b7 | 2880 | fi |
2881 | ;; | |
2882 | esac | |
370a1d10 | 2883 | fi |
f0b281fe | 2884 | |
2d2e1f85 | 2885 | # Support --with-fpmath. |
2886 | if test x$with_fpmath != x; then | |
2887 | case ${target} in | |
2888 | i[34567]86-*-* | x86_64-*-*) | |
2889 | case ${with_fpmath} in | |
e69704a5 | 2890 | avx) |
2891 | tm_file="${tm_file} i386/avxmath.h" | |
2892 | ;; | |
2d2e1f85 | 2893 | sse) |
2894 | tm_file="${tm_file} i386/ssemath.h" | |
2895 | ;; | |
2896 | *) | |
2897 | echo "Invalid --with-fpmath=$with_fpmath" 1>&2 | |
2898 | exit 1 | |
2899 | ;; | |
2900 | esac | |
2901 | ;; | |
2902 | *) | |
2903 | echo "--with-fpmath isn't supported for $target." 1>&2 | |
2904 | exit 1 | |
2905 | ;; | |
2906 | esac | |
2907 | fi | |
2908 | ||
0a76a4fd | 2909 | # Similarly for --with-schedule. |
2910 | if test x$with_schedule = x; then | |
2911 | case ${target} in | |
6af9f7ea | 2912 | hppa1*) |
0a76a4fd | 2913 | # Override default PA8000 scheduling model. |
2914 | with_schedule=7100LC | |
2915 | ;; | |
2916 | esac | |
2917 | fi | |
f0b281fe | 2918 | |
0a76a4fd | 2919 | # Validate and mark as valid any --with options supported |
2920 | # by this target. In order to use a particular --with option | |
2921 | # you must list it in supported_defaults; validating the value | |
2922 | # is optional. This case statement should set nothing besides | |
2923 | # supported_defaults. | |
7dd97ab6 | 2924 | |
0a76a4fd | 2925 | supported_defaults= |
2926 | case "${target}" in | |
f0b281fe | 2927 | alpha*-*-*) |
7dd97ab6 | 2928 | supported_defaults="cpu tune" |
2929 | for which in cpu tune; do | |
2930 | eval "val=\$with_$which" | |
8d520382 | 2931 | case "$val" in |
2932 | "" \ | |
2933 | | ev4 | ev45 | 21064 | ev5 | 21164 | ev56 | 21164a \ | |
2934 | | pca56 | 21164PC | 21164pc | ev6 | 21264 | ev67 \ | |
2935 | | 21264a) | |
7dd97ab6 | 2936 | ;; |
2937 | *) | |
2938 | echo "Unknown CPU used in --with-$which=$val" 1>&2 | |
2939 | exit 1 | |
2940 | ;; | |
2941 | esac | |
2942 | done | |
2943 | ;; | |
2944 | ||
2945 | arm*-*-*) | |
bb10d7b5 | 2946 | supported_defaults="arch cpu float tune fpu abi mode tls" |
7dd97ab6 | 2947 | for which in cpu tune; do |
70ac928b | 2948 | # See if it matches any of the entries in arm-cores.def |
7dd97ab6 | 2949 | eval "val=\$with_$which" |
1cfd705e | 2950 | if [ x"$val" = x ] \ |
61b58075 | 2951 | || grep "^ARM_CORE(\"$val\"," \ |
1cfd705e | 2952 | ${srcdir}/config/arm/arm-cores.def \ |
2953 | > /dev/null; then | |
2954 | # Ok | |
61b58075 | 2955 | new_val=`grep "^ARM_CORE(\"$val\"," \ |
2956 | ${srcdir}/config/arm/arm-cores.def | \ | |
2957 | sed -e 's/^[^,]*,[ ]*//' | \ | |
2958 | sed -e 's/,.*$//'` | |
346bfe2d | 2959 | eval "target_${which}_cname=$new_val" |
61b58075 | 2960 | echo "For $val real value is $new_val" |
1cfd705e | 2961 | true |
2962 | else | |
2963 | echo "Unknown CPU used in --with-$which=$val" 1>&2 | |
2964 | exit 1 | |
70ac928b | 2965 | fi |
7dd97ab6 | 2966 | done |
2967 | ||
8d520382 | 2968 | case "$with_arch" in |
2969 | "" \ | |
a2cd141b | 2970 | | armv[23456] | armv2a | armv3m | armv4t | armv5t \ |
b77c60b7 | 2971 | | armv5te | armv6j |armv6k | armv6z | armv6zk | armv6-m \ |
2972 | | armv7 | armv7-a | armv7-r | armv7-m \ | |
6b4d6063 | 2973 | | iwmmxt | ep9312) |
f0b281fe | 2974 | # OK |
bb678e49 | 2975 | ;; |
2976 | *) | |
7dd97ab6 | 2977 | echo "Unknown arch used in --with-arch=$with_arch" 1>&2 |
f0b281fe | 2978 | exit 1 |
3864b642 | 2979 | ;; |
2980 | esac | |
f0b281fe | 2981 | |
8d520382 | 2982 | case "$with_float" in |
2983 | "" \ | |
a2cd141b | 2984 | | soft | hard | softfp) |
f0b281fe | 2985 | # OK |
3864b642 | 2986 | ;; |
f0b281fe | 2987 | *) |
7dd97ab6 | 2988 | echo "Unknown floating point type used in --with-float=$with_float" 1>&2 |
f0b281fe | 2989 | exit 1 |
3864b642 | 2990 | ;; |
2991 | esac | |
7dd97ab6 | 2992 | |
a2cd141b | 2993 | case "$with_fpu" in |
2994 | "" \ | |
8f50e6ed | 2995 | | vfp | vfp3 | vfpv3 \ |
414f0dcb | 2996 | | vfpv3-fp16 | vfpv3-d16 | vfpv3-d16-fp16 | vfpv3xd \ |
2997 | | vfpv3xd-fp16 | neon | neon-fp16 | vfpv4 | vfpv4-d16 \ | |
2998 | | fpv4-sp-d16 | neon-vfpv4) | |
a2cd141b | 2999 | # OK |
3000 | ;; | |
8f50e6ed | 3001 | fpa | fpe2 | fpe3 | maverick) |
3002 | if test "x$enable_obsolete" != xyes; then | |
3003 | echo "*** Configuration option --with-fpu=${with_fpu} is obsolete." >&2 | |
3004 | echo "*** Specify --enable-obsolete to build it anyway." >&2 | |
3005 | echo "*** Support will be REMOVED in the next major release of GCC." >&2 | |
3006 | exit 1 | |
3007 | fi | |
3008 | ;; | |
a2cd141b | 3009 | *) |
f9273c43 | 3010 | echo "Unknown fpu used in --with-fpu=$with_fpu" 2>&1 |
3011 | exit 1 | |
3012 | ;; | |
3013 | esac | |
3014 | ||
3015 | case "$with_abi" in | |
3016 | "" \ | |
6cac4dc0 | 3017 | | apcs-gnu | atpcs | aapcs | iwmmxt | aapcs-linux ) |
f9273c43 | 3018 | #OK |
3019 | ;; | |
3020 | *) | |
3021 | echo "Unknown ABI used in --with-abi=$with_abi" | |
a2cd141b | 3022 | exit 1 |
3023 | ;; | |
3024 | esac | |
3025 | ||
086571a4 | 3026 | case "$with_mode" in |
3027 | "" \ | |
3028 | | arm | thumb ) | |
3029 | #OK | |
3030 | ;; | |
3031 | *) | |
3032 | echo "Unknown mode used in --with-mode=$with_mode" | |
3033 | exit 1 | |
3034 | ;; | |
3035 | esac | |
3036 | ||
bb10d7b5 | 3037 | case "$with_tls" in |
3038 | "" \ | |
3039 | | gnu | gnu2) | |
3040 | # OK | |
3041 | ;; | |
3042 | *) | |
3043 | echo "Unknown TLS method used in --with-tls=$with_tls" 1>&2 | |
3044 | exit 1 | |
3045 | ;; | |
3046 | esac | |
3047 | ||
7dd97ab6 | 3048 | if test "x$with_arch" != x && test "x$with_cpu" != x; then |
f9273c43 | 3049 | echo "Warning: --with-arch overrides --with-cpu=$with_cpu" 1>&2 |
7dd97ab6 | 3050 | fi |
3864b642 | 3051 | ;; |
3864b642 | 3052 | |
3e7f6cce | 3053 | fr*-*-*linux*) |
3054 | supported_defaults=cpu | |
3055 | case "$with_cpu" in | |
3056 | fr400) ;; | |
de6e318c | 3057 | fr550) ;; |
3e7f6cce | 3058 | *) |
3059 | echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2 | |
3060 | exit 1 | |
3061 | ;; | |
3062 | esac | |
3063 | ;; | |
3064 | ||
6af9f7ea | 3065 | fido-*-* | m68k*-*-*) |
558b196a | 3066 | supported_defaults="arch cpu" |
3067 | case "$with_arch" in | |
3068 | "" | "m68k"| "cf") | |
3069 | m68k_arch_family="$with_arch" | |
3070 | ;; | |
3071 | *) | |
3072 | echo "Invalid --with-arch=$with_arch" 1>&2 | |
3073 | exit 1 | |
3074 | ;; | |
3075 | esac | |
f84195ec | 3076 | |
3077 | # We always have a $with_cpu setting here. | |
8e80b452 | 3078 | case "$with_cpu" in |
8aed3cb3 | 3079 | "m68000" | "m68010" | "m68020" | "m68030" | "m68040" | "m68060") |
3080 | m68k_cpu_ident=$with_cpu | |
3081 | ;; | |
3082 | "m68020-40") | |
3083 | m68k_cpu_ident=m68020 | |
3084 | tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_40" | |
3085 | ;; | |
3086 | "m68020-60") | |
3087 | m68k_cpu_ident=m68020 | |
3088 | tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_60" | |
8e80b452 | 3089 | ;; |
3090 | *) | |
8aed3cb3 | 3091 | # We need the C identifier rather than the string. |
3092 | m68k_cpu_ident=`awk -v arg="\"$with_cpu\"" \ | |
3093 | 'BEGIN { FS="[ \t]*[,()][ \t]*" }; \ | |
3094 | $1 == "M68K_DEVICE" && $2 == arg { print $3 }' \ | |
3095 | ${srcdir}/config/m68k/m68k-devices.def` | |
3096 | if [ x"$m68k_cpu_ident" = x ] ; then | |
3097 | echo "Unknown CPU used in --with-cpu=$with_cpu" 1>&2 | |
3098 | exit 1 | |
3099 | fi | |
3100 | with_cpu="mcpu=$with_cpu" | |
8e80b452 | 3101 | ;; |
3102 | esac | |
3103 | ;; | |
3104 | ||
6af9f7ea | 3105 | hppa*-*-*) |
7dd97ab6 | 3106 | supported_defaults="arch schedule" |
3107 | ||
8d520382 | 3108 | case "$with_arch" in |
3109 | "" | 1.0 | 1.1 | 2.0) | |
7dd97ab6 | 3110 | # OK |
3111 | ;; | |
3112 | *) | |
3113 | echo "Unknown architecture used in --with-arch=$with_arch" 1>&2 | |
3114 | exit 1 | |
3115 | ;; | |
3116 | esac | |
3117 | ||
8d520382 | 3118 | case "$with_schedule" in |
3119 | "" | 700 | 7100 | 7100LC | 7200 | 7300 | 8000) | |
f0b281fe | 3120 | # OK |
3121 | ;; | |
3122 | *) | |
3123 | echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2 | |
3124 | exit 1 | |
3125 | ;; | |
3126 | esac | |
3864b642 | 3127 | ;; |
3864b642 | 3128 | |
f0b281fe | 3129 | i[34567]86-*-* | x86_64-*-*) |
f067c6b7 | 3130 | supported_defaults="arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64" |
3131 | for which in arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64; do | |
7dd97ab6 | 3132 | eval "val=\$with_$which" |
e83e5390 | 3133 | case ${val} in |
9db3d688 | 3134 | i386 | i486 \ |
e83e5390 | 3135 | | i586 | pentium | pentium-mmx | winchip-c6 | winchip2 \ |
3136 | | c3 | c3-2 | i686 | pentiumpro | pentium2 | pentium3 \ | |
3137 | | pentium4 | k6 | k6-2 | k6-3 | athlon | athlon-tbird \ | |
3451fffd | 3138 | | athlon-4 | athlon-xp | athlon-mp | geode \ |
9db3d688 | 3139 | | prescott | pentium-m | pentium4m | pentium3m) |
3140 | case "${target}" in | |
3141 | x86_64-*-*) | |
f067c6b7 | 3142 | case "x$which" in |
3143 | *_32) | |
3144 | ;; | |
3145 | *) | |
3146 | echo "CPU given in --with-$which=$val doesn't support 64bit mode." 1>&2 | |
3147 | exit 1 | |
3148 | ;; | |
3149 | esac | |
9db3d688 | 3150 | ;; |
3151 | esac | |
3152 | # OK | |
3153 | ;; | |
414f0dcb | 3154 | "" | x86-64 | generic | native \ |
3155 | | k8 | k8-sse3 | athlon64 | athlon64-sse3 | opteron \ | |
8991ae0a | 3156 | | opteron-sse3 | athlon-fx | bdver2 | bdver1 | btver1 \ |
3157 | | amdfam10 | barcelona | nocona | core2 | corei7 \ | |
d5301cf2 | 3158 | | corei7-avx | core-avx-i | core-avx2 | atom) |
7dd97ab6 | 3159 | # OK |
3160 | ;; | |
3161 | *) | |
3162 | echo "Unknown CPU given in --with-$which=$val." 1>&2 | |
3163 | exit 1 | |
3164 | ;; | |
3165 | esac | |
3166 | done | |
3167 | ;; | |
3168 | ||
3169 | mips*-*-*) | |
1af9587c | 3170 | supported_defaults="abi arch arch_32 arch_64 float tune tune_32 tune_64 divide llsc mips-plt synci" |
7dd97ab6 | 3171 | |
e83e5390 | 3172 | case ${with_float} in |
3173 | "" | soft | hard) | |
f0b281fe | 3174 | # OK |
3175 | ;; | |
3176 | *) | |
7dd97ab6 | 3177 | echo "Unknown floating point type used in --with-float=$with_float" 1>&2 |
f0b281fe | 3178 | exit 1 |
3179 | ;; | |
3180 | esac | |
3864b642 | 3181 | |
e83e5390 | 3182 | case ${with_abi} in |
3183 | "" | 32 | o64 | n32 | 64 | eabi) | |
f0b281fe | 3184 | # OK |
3185 | ;; | |
3186 | *) | |
7dd97ab6 | 3187 | echo "Unknown ABI used in --with-abi=$with_abi" 1>&2 |
f0b281fe | 3188 | exit 1 |
3189 | ;; | |
3190 | esac | |
f9262d1e | 3191 | |
3192 | case ${with_divide} in | |
3193 | "" | breaks | traps) | |
3194 | # OK | |
3195 | ;; | |
3196 | *) | |
3197 | echo "Unknown division check type use in --with-divide=$with_divide" 1>&2 | |
3198 | exit 1 | |
bc4c18f7 | 3199 | ;; |
3200 | esac | |
3201 | ||
3202 | case ${with_llsc} in | |
3203 | yes) | |
3204 | with_llsc=llsc | |
3205 | ;; | |
3206 | no) | |
3207 | with_llsc="no-llsc" | |
3208 | ;; | |
3209 | "") | |
3210 | # OK | |
3211 | ;; | |
3212 | *) | |
3213 | echo "Unknown llsc type used in --with-llsc" 1>&2 | |
3214 | exit 1 | |
3215 | ;; | |
f9262d1e | 3216 | esac |
4a909f69 | 3217 | |
3218 | case ${with_mips_plt} in | |
3219 | yes) | |
3220 | with_mips_plt=plt | |
3221 | ;; | |
3222 | no) | |
3223 | with_mips_plt=no-plt | |
3224 | ;; | |
3225 | "") | |
3226 | ;; | |
3227 | *) | |
3228 | echo "Unknown --with-mips-plt argument: $with_mips_plt" 1>&2 | |
3229 | exit 1 | |
3230 | ;; | |
3231 | esac | |
1af9587c | 3232 | |
3233 | case ${with_synci} in | |
3234 | yes) | |
3235 | with_synci=synci | |
3236 | ;; | |
3237 | "" | no) | |
3238 | # No is the default. | |
3239 | with_synci=no-synci | |
3240 | ;; | |
3241 | *) | |
3242 | echo "Unknown synci type used in --with-synci" 1>&2 | |
3243 | exit 1 | |
3244 | ;; | |
3245 | esac | |
3864b642 | 3246 | ;; |
3864b642 | 3247 | |
7dd97ab6 | 3248 | powerpc*-*-* | rs6000-*-*) |
cf61fe8d | 3249 | supported_defaults="cpu cpu_32 cpu_64 float tune tune_32 tune_64" |
7dd97ab6 | 3250 | |
cf61fe8d | 3251 | for which in cpu cpu_32 cpu_64 tune tune_32 tune_64; do |
7dd97ab6 | 3252 | eval "val=\$with_$which" |
e83e5390 | 3253 | case ${val} in |
83ae44d6 | 3254 | default32 | default64) |
cf61fe8d | 3255 | case $which in |
3256 | cpu | tune) | |
3257 | ;; | |
3258 | *) | |
3259 | echo "$val only valid for --with-cpu and --with-tune." 1>&2 | |
3260 | exit 1 | |
3261 | ;; | |
3262 | esac | |
83ae44d6 | 3263 | with_which="with_$which" |
3264 | eval $with_which= | |
3265 | ;; | |
e2fcf81b | 3266 | 405cr) |
3267 | tm_defines="${tm_defines} CONFIG_PPC405CR" | |
3268 | eval "with_$which=405" | |
3269 | ;; | |
83ae44d6 | 3270 | "" | common \ |
94f7a54b | 3271 | | power | power[234567] | power6x | powerpc | powerpc64 \ |
e83e5390 | 3272 | | rios | rios1 | rios2 | rsc | rsc1 | rs64a \ |
257bc844 | 3273 | | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \ |
ed08558a | 3274 | | 476 | 476fp | 505 | 601 | 602 | 603 | 603e | ec603e \ |
3275 | | 604 | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \ | |
81a88188 | 3276 | | a2 | e300c[23] | 854[08] | e500mc | e500mc64 | titan\ |
2b3ae3ef | 3277 | | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5 | cell) |
7dd97ab6 | 3278 | # OK |
3279 | ;; | |
3280 | *) | |
3281 | echo "Unknown cpu used in --with-$which=$val." 1>&2 | |
3282 | exit 1 | |
3283 | ;; | |
3284 | esac | |
3285 | done | |
3286 | ;; | |
3287 | ||
b8c0043c | 3288 | s390*-*-*) |
3289 | supported_defaults="arch mode tune" | |
3290 | ||
3291 | for which in arch tune; do | |
3292 | eval "val=\$with_$which" | |
e83e5390 | 3293 | case ${val} in |
33d033da | 3294 | "" | g5 | g6 | z900 | z990 | z9-109 | z9-ec | z10 | z196) |
b8c0043c | 3295 | # OK |
3296 | ;; | |
3297 | *) | |
3298 | echo "Unknown cpu used in --with-$which=$val." 1>&2 | |
3299 | exit 1 | |
3300 | ;; | |
3301 | esac | |
3302 | done | |
3303 | ||
e83e5390 | 3304 | case ${with_mode} in |
3305 | "" | esa | zarch) | |
b8c0043c | 3306 | # OK |
3307 | ;; | |
3308 | *) | |
3309 | echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2 | |
3310 | exit 1 | |
3311 | ;; | |
3312 | esac | |
3313 | ;; | |
3314 | ||
07168dd9 | 3315 | sh[123456ble]-*-* | sh-*-*) |
3316 | supported_defaults="cpu" | |
3a6994f8 | 3317 | case "`echo $with_cpu | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz- | sed s/sh/m/`" in |
07168dd9 | 3318 | "" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu ) |
3319 | # OK | |
3320 | ;; | |
7105fb72 | 3321 | m2a | m2a-single | m2a-single-only | m2a-nofpu) |
3322 | ;; | |
9435e831 | 3323 | m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al) |
3324 | ;; | |
07168dd9 | 3325 | *) |
3326 | echo "Unknown CPU used in --with-cpu=$with_cpu, known values:" 1>&2 | |
3327 | echo "m1 m2 m2e m3 m3e m4 m4-single m4-single-only m4-nofpu" 1>&2 | |
9435e831 | 3328 | echo "m4a m4a-single m4a-single-only m4a-nofpu m4al" 1>&2 |
7105fb72 | 3329 | echo "m2a m2a-single m2a-single-only m2a-nofpu" 1>&2 |
07168dd9 | 3330 | exit 1 |
3331 | ;; | |
3332 | esac | |
3333 | ;; | |
f0b281fe | 3334 | sparc*-*-*) |
7dd97ab6 | 3335 | supported_defaults="cpu float tune" |
3336 | ||
3337 | for which in cpu tune; do | |
3338 | eval "val=\$with_$which" | |
e83e5390 | 3339 | case ${val} in |
b0168e11 | 3340 | "" | sparc | sparcv9 | sparc64 \ |
3341 | | v7 | cypress \ | |
3342 | | v8 | supersparc | hypersparc | leon \ | |
3343 | | sparclite | f930 | f934 | sparclite86x \ | |
3344 | | sparclet | tsc701 \ | |
b18dbf25 | 3345 | | v9 | ultrasparc | ultrasparc3 | niagara | niagara2 \ |
3346 | | niagara3 | niagara4) | |
7dd97ab6 | 3347 | # OK |
3348 | ;; | |
3349 | *) | |
3350 | echo "Unknown cpu used in --with-$which=$val" 1>&2 | |
3351 | exit 1 | |
3352 | ;; | |
3353 | esac | |
3354 | done | |
3864b642 | 3355 | |
e83e5390 | 3356 | case ${with_float} in |
3357 | "" | soft | hard) | |
f0b281fe | 3358 | # OK |
3359 | ;; | |
3360 | *) | |
7dd97ab6 | 3361 | echo "Unknown floating point type used in --with-float=$with_float" 1>&2 |
f0b281fe | 3362 | exit 1 |
3363 | ;; | |
3364 | esac | |
3864b642 | 3365 | ;; |
3864b642 | 3366 | |
5474166e | 3367 | spu-*-*) |
3368 | supported_defaults="arch tune" | |
3369 | ||
3370 | for which in arch tune; do | |
3371 | eval "val=\$with_$which" | |
3372 | case ${val} in | |
3373 | "" | cell | celledp) | |
3374 | # OK | |
3375 | ;; | |
3376 | *) | |
3377 | echo "Unknown cpu used in --with-$which=$val." 1>&2 | |
3378 | exit 1 | |
3379 | ;; | |
3380 | esac | |
3381 | done | |
3382 | ;; | |
3383 | ||
5aa04b01 | 3384 | tic6x-*-*) |
3385 | supported_defaults="arch" | |
3386 | ||
3387 | case ${with_arch} in | |
3388 | "" | c62x | c64x | c64x+ | c67x | c67x+ | c674x) | |
3389 | # OK | |
3390 | ;; | |
3391 | *) | |
3392 | echo "Unknown arch used in --with-arch=$with_arch." 1>&2 | |
3393 | exit 1 | |
3394 | ;; | |
3395 | esac | |
3396 | ;; | |
3397 | ||
f0b281fe | 3398 | v850*-*-*) |
7dd97ab6 | 3399 | supported_defaults=cpu |
e83e5390 | 3400 | case ${with_cpu} in |
f5ec6516 | 3401 | "" | v850e | v850e1 | v850e2 | v850es | v850e2v3) |
f0b281fe | 3402 | # OK |
3403 | ;; | |
3404 | *) | |
3405 | echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2 | |
3406 | exit 1 | |
3407 | ;; | |
3408 | esac | |
3864b642 | 3409 | ;; |
0a76a4fd | 3410 | esac |
3864b642 | 3411 | |
0a76a4fd | 3412 | # Set some miscellaneous flags for particular targets. |
3413 | target_cpu_default2= | |
3414 | case ${target} in | |
f0b281fe | 3415 | arm*-*-*) |
346bfe2d | 3416 | if test x$target_cpu_cname = x |
3417 | then | |
3418 | target_cpu_default2=TARGET_CPU_generic | |
3419 | else | |
3420 | target_cpu_default2=TARGET_CPU_$target_cpu_cname | |
3421 | fi | |
f0b281fe | 3422 | ;; |
582b17a6 | 3423 | |
6af9f7ea | 3424 | hppa*-*-*) |
8ab32933 | 3425 | target_cpu_default2="MASK_BIG_SWITCH" |
f0b281fe | 3426 | if test x$gas = xyes |
bb607926 | 3427 | then |
8ab32933 | 3428 | target_cpu_default2="${target_cpu_default2}|MASK_GAS|MASK_JUMP_IN_DELAY" |
f0b281fe | 3429 | fi |
3864b642 | 3430 | ;; |
3864b642 | 3431 | |
6af9f7ea | 3432 | fido*-*-* | m68k*-*-*) |
8aed3cb3 | 3433 | target_cpu_default2=$m68k_cpu_ident |
d078aadd | 3434 | tmake_file="m68k/t-opts $tmake_file" |
558b196a | 3435 | if [ x"$m68k_arch_family" != x ]; then |
3436 | tmake_file="m68k/t-$m68k_arch_family $tmake_file" | |
3437 | fi | |
8aed3cb3 | 3438 | ;; |
3439 | ||
b3fd46a0 | 3440 | i[34567]86-*-darwin* | x86_64-*-darwin*) |
b3fd46a0 | 3441 | ;; |
8a84c748 | 3442 | i[34567]86-*-linux* | x86_64-*-linux* | \ |
3443 | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \ | |
3444 | i[34567]86-*-gnu*) | |
b3fd46a0 | 3445 | ;; |
14f27bc6 | 3446 | i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
20be3c56 | 3447 | ;; |
f7ef49da | 3448 | i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*) |
6471e33b | 3449 | ;; |
278afeb5 | 3450 | i[34567]86-*-freebsd* | x86_64-*-freebsd*) |
278afeb5 | 3451 | ;; |
8b21beb2 | 3452 | ia64*-*-linux*) |
8b21beb2 | 3453 | ;; |
b3fd46a0 | 3454 | |
f0b281fe | 3455 | mips*-*-*) |
b93bf04a | 3456 | if test x$gnu_ld = xyes |
3457 | then | |
dfae4483 | 3458 | target_cpu_default2="MASK_SPLIT_ADDRESSES" |
b93bf04a | 3459 | fi |
09c6646e | 3460 | case ${target} in |
f0b281fe | 3461 | mips*el-*-*) |
3462 | tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines" | |
3463 | ;; | |
3464 | esac | |
1d88eb71 | 3465 | tmake_file="mips/t-mips $tmake_file" |
f4deb416 | 3466 | ;; |
f0b281fe | 3467 | |
3468 | powerpc*-*-* | rs6000-*-*) | |
7dd97ab6 | 3469 | # FIXME: The PowerPC port uses the value set at compile time, |
3470 | # although it's only cosmetic. | |
f0b281fe | 3471 | if test "x$with_cpu" != x |
bb607926 | 3472 | then |
f0b281fe | 3473 | target_cpu_default2="\\\"$with_cpu\\\"" |
bb607926 | 3474 | fi |
f0b281fe | 3475 | out_file=rs6000/rs6000.c |
3476 | c_target_objs="${c_target_objs} rs6000-c.o" | |
3477 | cxx_target_objs="${cxx_target_objs} rs6000-c.o" | |
3478 | tmake_file="rs6000/t-rs6000 ${tmake_file}" | |
63f9fa57 | 3479 | |
3480 | if test x$enable_e500_double = xyes | |
3481 | then | |
3482 | tm_file="$tm_file rs6000/e500-double.h" | |
3483 | fi | |
f4deb416 | 3484 | ;; |
3864b642 | 3485 | |
57d5535b | 3486 | sh[123456ble]*-*-* | sh-*-*) |
3487 | c_target_objs="${c_target_objs} sh-c.o" | |
3488 | cxx_target_objs="${cxx_target_objs} sh-c.o" | |
3489 | ;; | |
3490 | ||
b0168e11 | 3491 | sparc-leon*-*) |
3492 | if test x$with_tune = x ; then | |
3493 | with_tune=leon; | |
3494 | fi | |
3495 | ||
3496 | # The SPARC port checks this value at compile-time. | |
3497 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
3498 | ;; | |
3499 | ||
f0b281fe | 3500 | sparc*-*-*) |
7dd97ab6 | 3501 | # Some standard aliases. |
3502 | case x$with_cpu in | |
3503 | xsparc) | |
3504 | with_cpu=v7 | |
3505 | ;; | |
7dd97ab6 | 3506 | xsparcv9 | xsparc64) |
3507 | with_cpu=v9 | |
3508 | ;; | |
3509 | esac | |
3510 | ||
3ce7ff97 | 3511 | # The SPARC port checks this value at compile-time. |
3864b642 | 3512 | target_cpu_default2="TARGET_CPU_$with_cpu" |
3513 | ;; | |
b0168e11 | 3514 | |
f0b281fe | 3515 | v850*-*-*) |
3516 | case "x$with_cpu" in | |
3517 | x) | |
3518 | ;; | |
f5ec6516 | 3519 | xv850e | xv850e1 | xv850e2 | xv850e2v3) |
f0b281fe | 3520 | target_cpu_default2="TARGET_CPU_$with_cpu" |
3521 | ;; | |
f5ec6516 | 3522 | xv850es) |
3523 | target_cpu_default2="TARGET_CPU_v850e1" | |
3524 | ;; | |
f0b281fe | 3525 | esac |
3526 | ;; | |
0a76a4fd | 3527 | esac |
bb607926 | 3528 | |
0a76a4fd | 3529 | t= |
bb10d7b5 | 3530 | 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 | 3531 | for option in $all_defaults |
3532 | do | |
4a909f69 | 3533 | eval "val=\$with_"`echo $option | sed s/-/_/g` |
0a76a4fd | 3534 | if test -n "$val"; then |
3535 | case " $supported_defaults " in | |
3536 | *" $option "*) | |
3537 | ;; | |
3538 | *) | |
3539 | echo "This target does not support --with-$option." 2>&1 | |
fc3e831e | 3540 | echo "Valid --with options are: $supported_defaults" 2>&1 |
0a76a4fd | 3541 | exit 1 |
3542 | ;; | |
3543 | esac | |
7dd97ab6 | 3544 | |
0a76a4fd | 3545 | if test "x$t" = x |
3546 | then | |
3547 | t="{ \"$option\", \"$val\" }" | |
3548 | else | |
3549 | t="${t}, { \"$option\", \"$val\" }" | |
7dd97ab6 | 3550 | fi |
7dd97ab6 | 3551 | fi |
0a76a4fd | 3552 | done |
7dd97ab6 | 3553 | |
0a76a4fd | 3554 | if test "x$t" = x |
3555 | then | |
3556 | configure_default_options="{ { NULL, NULL} }" | |
3557 | else | |
3558 | configure_default_options="{ ${t} }" | |
3559 | fi | |
3560 | ||
3561 | if test "$target_cpu_default2" != "" | |
3562 | then | |
3563 | if test "$target_cpu_default" != "" | |
bb607926 | 3564 | then |
0a76a4fd | 3565 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" |
3566 | else | |
3567 | target_cpu_default=$target_cpu_default2 | |
bb607926 | 3568 | fi |
0a76a4fd | 3569 | fi |