]>
Commit | Line | Data |
---|---|---|
a89ea0df | 1 | # GCC target-specific configuration file. |
cbe34bb5 | 2 | # Copyright (C) 1997-2017 Free Software Foundation, Inc. |
61ed06c3 | 3 | |
1322177d | 4 | #This file is part of GCC. |
61ed06c3 | 5 | |
1322177d LB |
6 | #GCC is free software; you can redistribute it and/or modify it under |
7 | #the terms of the GNU General Public License as published by the Free | |
9dcd6f09 | 8 | #Software Foundation; either version 3, or (at your option) any later |
1322177d | 9 | #version. |
61ed06c3 | 10 | |
1322177d LB |
11 | #GCC is distributed in the hope that it will be useful, but WITHOUT |
12 | #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 | #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 | #for more details. | |
61ed06c3 HPN |
15 | |
16 | #You should have received a copy of the GNU General Public License | |
9dcd6f09 NC |
17 | #along with GCC; see the file COPYING3. If not see |
18 | #<http://www.gnu.org/licenses/>. | |
61ed06c3 | 19 | |
a89ea0df NN |
20 | # This is the GCC target-specific configuration file |
21 | # where a configuration type is mapped to different system-specific | |
22 | # definitions and files. This is invoked by the autoconf-generated | |
23 | # configure script. Putting it in a separate shell file lets us skip | |
24 | # running autoconf when modifying target-specific information. | |
61ed06c3 | 25 | |
fa958513 DJ |
26 | # When you change the cases in the OS or target switches, consider |
27 | # updating ../libgcc/config.host also. | |
28 | ||
b01bc573 | 29 | # This file switches on the shell variable ${target}, and also uses the |
61ed06c3 HPN |
30 | # following shell variables: |
31 | # | |
32 | # with_* Various variables as set by configure. | |
33 | # | |
615be2cf | 34 | # enable_threads Either the name, yes or no depending on whether |
61ed06c3 HPN |
35 | # threads support was requested. |
36 | # | |
2121a768 | 37 | # default_use_cxa_atexit |
c5dde55b NC |
38 | # The default value for the $enable___cxa_atexit |
39 | # variable. enable___cxa_atexit needs to be set to | |
40 | # "yes" for the correct operation of C++ destructors | |
41 | # but it relies upon the presence of a non-standard C | |
42 | # library function called __cxa_atexit. | |
43 | # Since not all C libraries provide __cxa_atexit the | |
44 | # default value of $default_use_cxa_atexit is set to | |
45 | # "no" except for targets which are known to be OK. | |
2121a768 | 46 | # |
f6c5fbfd NS |
47 | # default_gnu_indirect_function |
48 | # The default value for the $enable_gnu_indirect_function | |
49 | # variable. enable_gnu_indirect_function relies | |
50 | # upon the presence of a non-standard gnu ifunc support | |
51 | # in the assembler, linker and dynamic linker. | |
52 | # Since not all libraries provide the dynamic linking | |
53 | # support, the default value of | |
54 | # $default_gnu_indirect_function is set to | |
55 | # "no" except for targets which are known to be OK. | |
56 | # | |
61ed06c3 HPN |
57 | # gas_flag Either yes or no depending on whether GNU as was |
58 | # requested. | |
59 | # | |
60 | # gnu_ld_flag Either yes or no depending on whether GNU ld was | |
61 | # requested. | |
62 | ||
63 | # This file sets the following shell variables for use by the | |
64 | # autoconf-generated configure script: | |
65 | # | |
b01bc573 NN |
66 | # cpu_type The name of the cpu, if different from the first |
67 | # chunk of the canonical target name. | |
61ed06c3 | 68 | # |
d5355cb2 JDA |
69 | # tm_defines List of target macros to define for all compilations. |
70 | # | |
61ed06c3 | 71 | # tm_file A list of target macro files, if different from |
32fb7c9d FS |
72 | # "$cpu_type/$cpu_type.h". Usually it's constructed |
73 | # per target in a way like this: | |
57809813 | 74 | # tm_file="${tm_file} dbxelf.h elfos.h ${cpu_type.h}/elf.h" |
32fb7c9d FS |
75 | # Note that the preferred order is: |
76 | # - specific target header "${cpu_type}/${cpu_type.h}" | |
a4a4b1d3 | 77 | # - generic headers like dbxelf.h elfos.h, etc. |
32fb7c9d FS |
78 | # - specializing target headers like ${cpu_type.h}/elf.h |
79 | # This helps to keep OS specific stuff out of the CPU | |
80 | # defining header ${cpu_type}/${cpu_type.h}. | |
61ed06c3 | 81 | # |
9c63c208 SL |
82 | # It is possible to include automatically-generated |
83 | # build-directory files by prefixing them with "./". | |
84 | # All other files should relative to $srcdir/config. | |
85 | # | |
61ed06c3 HPN |
86 | # tm_p_file Location of file with declarations for functions |
87 | # in $out_file. | |
88 | # | |
89 | # out_file The name of the machine description C support | |
90 | # file, if different from "$cpu_type/$cpu_type.c". | |
91 | # | |
c49a6962 JM |
92 | # common_out_file The name of the source file for code shared between |
93 | # the compiler proper and the driver. | |
94 | # | |
61ed06c3 HPN |
95 | # md_file The name of the machine-description file, if |
96 | # different from "$cpu_type/$cpu_type.md". | |
97 | # | |
98 | # tmake_file A list of machine-description-specific | |
99 | # makefile-fragments, if different from | |
100 | # "$cpu_type/t-$cpu_type". | |
101 | # | |
1c0ca89d ZW |
102 | # extra_modes The name of the file containing a list of extra |
103 | # machine modes, if necessary and different from | |
104 | # "$cpu_type/$cpu_type-modes.def". | |
105 | # | |
61ed06c3 HPN |
106 | # extra_objs List of extra objects that should be linked into |
107 | # the compiler proper (cc1, cc1obj, cc1plus) | |
108 | # depending on target. | |
109 | # | |
30500d84 KC |
110 | # extra_gcc_objs List of extra objects that should be linked into |
111 | # the compiler driver (gcc) depending on target. | |
112 | # | |
61ed06c3 | 113 | # extra_headers List of used header files from the directory |
817e13c4 | 114 | # config/${cpu_type}. |
61ed06c3 | 115 | # |
9b91e436 KT |
116 | # user_headers_inc_next_pre |
117 | # List of header file names of internal gcc header | |
118 | # files, which should be prefixed by an include_next. | |
119 | # user_headers_inc_next_post | |
120 | # List of header file names of internal gcc header | |
121 | # files, which should be postfixed by an include_next. | |
1617e5ee GK |
122 | # use_gcc_tgmath If set, add tgmath.h to the list of used header |
123 | # files. | |
124 | # | |
207bf79d JM |
125 | # use_gcc_stdint If "wrap", install a version of stdint.h that |
126 | # wraps the system's copy for hosted compilations; | |
127 | # if "provide", provide a version of systems without | |
128 | # such a system header; otherwise "none", do not | |
129 | # provide such a header at all. | |
130 | # | |
d82c57a8 RO |
131 | # extra_programs List of extra executables compiled for this target |
132 | # machine, used when linking. | |
61ed06c3 | 133 | # |
75685792 RS |
134 | # extra_options List of target-dependent .opt files. |
135 | # | |
ff7cc307 | 136 | # c_target_objs List of extra target-dependent objects that be |
aac69a49 | 137 | # linked into the C compiler only. |
0e5a4ad8 | 138 | # |
ff7cc307 | 139 | # cxx_target_objs List of extra target-dependent objects that be |
aac69a49 | 140 | # linked into the C++ compiler only. |
0e5a4ad8 | 141 | # |
c776a6d0 DF |
142 | # fortran_target_objs List of extra target-dependent objects that be |
143 | # linked into the fortran compiler only. | |
144 | # | |
ef69da62 SS |
145 | # target_gtfiles List of extra source files with type information. |
146 | # | |
61ed06c3 HPN |
147 | # xm_defines List of macros to define when compiling for the |
148 | # target machine. | |
149 | # | |
150 | # xm_file List of files to include when compiling for the | |
151 | # target machine. | |
152 | # | |
153 | # use_collect2 Set to yes or no, depending on whether collect2 | |
154 | # will be used. | |
155 | # | |
156 | # target_cpu_default Set to override the default target model. | |
157 | # | |
61ed06c3 HPN |
158 | # gdb_needs_out_file_path |
159 | # Set to yes if gdb needs a dir command with | |
160 | # `dirname $out_file`. | |
161 | # | |
61ed06c3 HPN |
162 | # thread_file Set to control which thread package to use. |
163 | # | |
164 | # gas Set to yes or no depending on whether the target | |
165 | # system normally uses GNU as. | |
4977bab6 | 166 | # |
7816bea0 DJ |
167 | # configure_default_options |
168 | # Set to an initializer for configure_default_options | |
169 | # in configargs.h, based on --with-cpu et cetera. | |
08b2bad2 SB |
170 | # |
171 | # native_system_header_dir | |
172 | # Where system header files are found for this | |
173 | # target. This defaults to /usr/include. If | |
174 | # the --with-sysroot configure option or the | |
175 | # --sysroot command line option is used this | |
176 | # will be relative to the sysroot. | |
5ab22850 RR |
177 | # target_type_format_char |
178 | # The default character to be used for formatting | |
179 | # the attribute in a | |
180 | # .type symbol_name, ${t_t_f_c}<property> | |
181 | # directive. | |
61ed06c3 HPN |
182 | |
183 | # The following variables are used in each case-construct to build up the | |
184 | # outgoing variables: | |
185 | # | |
61ed06c3 HPN |
186 | # gnu_ld Set to yes or no depending on whether the target |
187 | # system normally uses GNU ld. | |
acce4e77 JM |
188 | # |
189 | # target_has_targetcm Set to yes or no depending on whether the target | |
190 | # has its own definition of targetcm. | |
c49a6962 JM |
191 | # |
192 | # target_has_targetm_common Set to yes or no depending on whether the | |
193 | # target has its own definition of targetm_common. | |
61ed06c3 HPN |
194 | |
195 | out_file= | |
c49a6962 | 196 | common_out_file= |
61ed06c3 HPN |
197 | tmake_file= |
198 | extra_headers= | |
9b91e436 KT |
199 | user_headers_inc_next_pre= |
200 | user_headers_inc_next_post= | |
1617e5ee | 201 | use_gcc_tgmath=yes |
207bf79d | 202 | use_gcc_stdint=none |
61ed06c3 HPN |
203 | extra_programs= |
204 | extra_objs= | |
61ed06c3 | 205 | extra_gcc_objs= |
75685792 | 206 | extra_options= |
aac69a49 NC |
207 | c_target_objs= |
208 | cxx_target_objs= | |
c776a6d0 | 209 | fortran_target_objs= |
acce4e77 | 210 | target_has_targetcm=no |
677f3fa8 | 211 | target_has_targetm_common=yes |
d5355cb2 | 212 | tm_defines= |
61ed06c3 | 213 | xm_defines= |
61ed06c3 HPN |
214 | # Set this to force installation and use of collect2. |
215 | use_collect2= | |
216 | # Set this to override the default target model. | |
217 | target_cpu_default= | |
61ed06c3 HPN |
218 | # Set this if gdb needs a dir command with `dirname $out_file` |
219 | gdb_needs_out_file_path= | |
61ed06c3 HPN |
220 | # Set this to control which thread package will be used. |
221 | thread_file= | |
222 | # Reinitialize these from the flag values every loop pass, since some | |
223 | # configure entries modify them. | |
224 | gas="$gas_flag" | |
225 | gnu_ld="$gnu_ld_flag" | |
2121a768 | 226 | default_use_cxa_atexit=no |
f6c5fbfd | 227 | default_gnu_indirect_function=no |
6ab185d6 | 228 | target_gtfiles= |
c6b9174f | 229 | need_64bit_isa= |
08b2bad2 | 230 | native_system_header_dir=/usr/include |
5ab22850 | 231 | target_type_format_char='@' |
61ed06c3 | 232 | |
6a38414a NN |
233 | # Don't carry these over build->host->target. Please. |
234 | xm_file= | |
235 | md_file= | |
236 | ||
9340544b | 237 | # Obsolete configurations. |
32243d46 | 238 | case ${target} in |
0609abda | 239 | nothing \ |
32243d46 JM |
240 | ) |
241 | if test "x$enable_obsolete" != xyes; then | |
242 | echo "*** Configuration ${target} is obsolete." >&2 | |
243 | echo "*** Specify --enable-obsolete to build it anyway." >&2 | |
244 | echo "*** Support will be REMOVED in the next major release of GCC," >&2 | |
245 | echo "*** unless a maintainer comes forward." >&2 | |
246 | exit 1 | |
247 | fi;; | |
248 | esac | |
9340544b | 249 | |
7c942e17 ZW |
250 | # Unsupported targets list. Do not put an entry in this list unless |
251 | # it would otherwise be caught by a more permissive pattern. The list | |
252 | # should be in alphabetical order. | |
b01bc573 | 253 | case ${target} in |
c4cc7bc1 RE |
254 | # Avoid special cases that are not obsolete |
255 | arm*-*-*eabi* \ | |
256 | ) | |
257 | ;; | |
258 | arm*-wince-pe* \ | |
259 | | arm*-*-ecos-elf \ | |
260 | | arm*-*-elf \ | |
c4cc7bc1 | 261 | | arm*-*-linux* \ |
c4cc7bc1 RE |
262 | | arm*-*-uclinux* \ |
263 | | i[34567]86-go32-* \ | |
7c942e17 | 264 | | i[34567]86-*-go32* \ |
ebb9f8b0 | 265 | | m68k-*-uclinuxoldabi* \ |
7c942e17 | 266 | | mips64orion*-*-rtems* \ |
52c0e446 | 267 | | pdp11-*-bsd \ |
7c942e17 ZW |
268 | | sparc-hal-solaris2* \ |
269 | | thumb-*-* \ | |
0db8fa89 GP |
270 | | *-*-freebsd[12] | *-*-freebsd[12].* \ |
271 | | *-*-freebsd*aout* \ | |
cd985f66 | 272 | | *-*-linux*aout* \ |
7c942e17 | 273 | | *-*-linux*coff* \ |
cd985f66 | 274 | | *-*-linux*libc1* \ |
7c942e17 ZW |
275 | | *-*-linux*oldld* \ |
276 | | *-*-rtemsaout* \ | |
277 | | *-*-rtemscoff* \ | |
1500b428 | 278 | | *-*-solaris2 \ |
d9f069ab RO |
279 | | *-*-solaris2.[0-9] \ |
280 | | *-*-solaris2.[0-9].* \ | |
7888f266 | 281 | | *-*-sysv* \ |
9ab346a1 | 282 | | vax-*-vms* \ |
7c942e17 | 283 | ) |
b01bc573 | 284 | echo "*** Configuration ${target} not supported" 1>&2 |
7c942e17 ZW |
285 | exit 1 |
286 | ;; | |
287 | esac | |
288 | ||
61ed06c3 | 289 | # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be |
ba1e6c0b JM |
290 | # updated in each machine entry. Also set default extra_headers for some |
291 | # machines. | |
61ed06c3 | 292 | tm_p_file= |
b01bc573 | 293 | cpu_type=`echo ${target} | sed 's/-.*$//'` |
a8e04fe6 | 294 | cpu_is_64bit= |
b01bc573 | 295 | case ${target} in |
38b2d076 DD |
296 | m32c*-*-*) |
297 | cpu_type=m32c | |
298 | tmake_file=m32c/t-m32c | |
41dfca87 | 299 | target_has_targetm_common=no |
38b2d076 | 300 | ;; |
24034425 IB |
301 | aarch64*-*-*) |
302 | cpu_type=aarch64 | |
d7f33f07 | 303 | extra_headers="arm_fp16.h arm_neon.h arm_acle.h" |
e4ea20c8 KT |
304 | c_target_objs="aarch64-c.o" |
305 | cxx_target_objs="aarch64-c.o" | |
fde9b31b | 306 | extra_objs="aarch64-builtins.o aarch-common.o cortex-a57-fma-steering.o" |
3c03d39d | 307 | target_gtfiles="\$(srcdir)/config/aarch64/aarch64-builtins.c" |
24034425 IB |
308 | target_has_targetm_common=yes |
309 | ;; | |
61ed06c3 HPN |
310 | alpha*-*-*) |
311 | cpu_type=alpha | |
34251c0e | 312 | extra_options="${extra_options} g.opt" |
61ed06c3 | 313 | ;; |
2beef00e AO |
314 | am33_2.0-*-linux*) |
315 | cpu_type=mn10300 | |
316 | ;; | |
53426f6c JR |
317 | arc*-*-*) |
318 | cpu_type=arc | |
cf07c3de CZ |
319 | c_target_objs="arc-c.o" |
320 | cxx_target_objs="arc-c.o" | |
9f532472 | 321 | extra_options="${extra_options} arc/arc-tables.opt g.opt" |
fad92291 | 322 | extra_headers="arc-simd.h" |
53426f6c | 323 | ;; |
150b72ed DJ |
324 | arm*-*-*) |
325 | cpu_type=arm | |
33857df2 | 326 | extra_objs="arm-builtins.o aarch-common.o" |
de7b5723 | 327 | extra_headers="mmintrin.h arm_neon.h arm_acle.h arm_fp16.h arm_cmse.h" |
5ab22850 | 328 | target_type_format_char='%' |
b76c3c4b PB |
329 | c_target_objs="arm-c.o" |
330 | cxx_target_objs="arm-c.o" | |
ad7be009 | 331 | extra_options="${extra_options} arm/arm-tables.opt" |
33857df2 | 332 | target_gtfiles="\$(srcdir)/config/arm/arm-builtins.c" |
150b72ed | 333 | ;; |
17fad361 AH |
334 | avr-*-*) |
335 | cpu_type=avr | |
336 | c_target_objs="avr-c.o" | |
337 | cxx_target_objs="avr-c.o" | |
338 | ;; | |
0d4a78eb BS |
339 | bfin*-*) |
340 | cpu_type=bfin | |
341 | ;; | |
99c5227a HPN |
342 | crisv32-*) |
343 | cpu_type=cris | |
344 | ;; | |
faf9ab98 | 345 | frv*) cpu_type=frv |
34251c0e | 346 | extra_options="${extra_options} g.opt" |
faf9ab98 | 347 | ;; |
fef939d6 JB |
348 | ft32*) cpu_type=ft32 |
349 | target_has_targetm_common=no | |
350 | ;; | |
cceb575c | 351 | moxie*) cpu_type=moxie |
677f3fa8 | 352 | target_has_targetm_common=no |
cceb575c | 353 | ;; |
7d33c31d KH |
354 | fido-*-*) |
355 | cpu_type=m68k | |
356 | extra_headers=math-68881.h | |
47c94d21 | 357 | extra_options="${extra_options} m68k/m68k-tables.opt" |
7d33c31d | 358 | ;; |
61ed06c3 HPN |
359 | i[34567]86-*-*) |
360 | cpu_type=i386 | |
ab442df7 MM |
361 | c_target_objs="i386-c.o" |
362 | cxx_target_objs="i386-c.o" | |
d48e78d6 | 363 | extra_options="${extra_options} fused-madd.opt" |
b3172cab | 364 | extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h |
3b8dd071 | 365 | pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h |
cbf2e4d4 | 366 | nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h |
43a8b705 | 367 | immintrin.h x86intrin.h avxintrin.h xopintrin.h |
7fccdfcf | 368 | ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h |
82feeb8d | 369 | lzcntintrin.h bmiintrin.h bmi2intrin.h tbmintrin.h |
756c5857 AI |
370 | avx2intrin.h avx512fintrin.h fmaintrin.h f16cintrin.h |
371 | rtmintrin.h xtestintrin.h rdseedintrin.h prfchwintrin.h | |
372 | adxintrin.h fxsrintrin.h xsaveintrin.h xsaveoptintrin.h | |
c1618f82 | 373 | avx512cdintrin.h avx512erintrin.h avx512pfintrin.h |
9cdea277 | 374 | shaintrin.h clflushoptintrin.h xsavecintrin.h |
936c0fe4 | 375 | xsavesintrin.h avx512dqintrin.h avx512bwintrin.h |
4190ea38 | 376 | avx512vlintrin.h avx512vlbwintrin.h avx512vldqintrin.h |
3dcc8af5 | 377 | avx512ifmaintrin.h avx512ifmavlintrin.h avx512vbmiintrin.h |
5fbb13a7 | 378 | avx512vbmivlintrin.h avx5124fmapsintrin.h avx5124vnniwintrin.h |
79fc8ffe | 379 | avx512vpopcntdqintrin.h clwbintrin.h mwaitxintrin.h |
73e32c47 | 380 | clzerointrin.h pkuintrin.h sgxintrin.h" |
61ed06c3 | 381 | ;; |
14f73b5a JH |
382 | x86_64-*-*) |
383 | cpu_type=i386 | |
ab442df7 MM |
384 | c_target_objs="i386-c.o" |
385 | cxx_target_objs="i386-c.o" | |
d48e78d6 | 386 | extra_options="${extra_options} fused-madd.opt" |
b3172cab | 387 | extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h |
3b8dd071 | 388 | pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h |
cbf2e4d4 | 389 | nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h |
43a8b705 | 390 | immintrin.h x86intrin.h avxintrin.h xopintrin.h |
7fccdfcf | 391 | ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h |
82feeb8d | 392 | lzcntintrin.h bmiintrin.h tbmintrin.h bmi2intrin.h |
756c5857 AI |
393 | avx2intrin.h avx512fintrin.h fmaintrin.h f16cintrin.h |
394 | rtmintrin.h xtestintrin.h rdseedintrin.h prfchwintrin.h | |
395 | adxintrin.h fxsrintrin.h xsaveintrin.h xsaveoptintrin.h | |
c1618f82 | 396 | avx512cdintrin.h avx512erintrin.h avx512pfintrin.h |
9cdea277 | 397 | shaintrin.h clflushoptintrin.h xsavecintrin.h |
936c0fe4 | 398 | xsavesintrin.h avx512dqintrin.h avx512bwintrin.h |
4190ea38 | 399 | avx512vlintrin.h avx512vlbwintrin.h avx512vldqintrin.h |
3dcc8af5 | 400 | avx512ifmaintrin.h avx512ifmavlintrin.h avx512vbmiintrin.h |
5fbb13a7 | 401 | avx512vbmivlintrin.h avx5124fmapsintrin.h avx5124vnniwintrin.h |
79fc8ffe | 402 | avx512vpopcntdqintrin.h clwbintrin.h mwaitxintrin.h |
73e32c47 | 403 | clzerointrin.h pkuintrin.h sgxintrin.h" |
14f73b5a | 404 | ;; |
817e13c4 JM |
405 | ia64-*-*) |
406 | extra_headers=ia64intrin.h | |
f19f1e5e | 407 | extra_options="${extra_options} g.opt fused-madd.opt" |
817e13c4 | 408 | ;; |
cd985f66 | 409 | hppa*-*-*) |
61ed06c3 HPN |
410 | cpu_type=pa |
411 | ;; | |
34251c0e JM |
412 | lm32*) |
413 | extra_options="${extra_options} g.opt" | |
414 | ;; | |
ad126521 KI |
415 | m32r*-*-*) |
416 | cpu_type=m32r | |
34251c0e | 417 | extra_options="${extra_options} g.opt" |
ad126521 | 418 | ;; |
ba1e6c0b JM |
419 | m68k-*-*) |
420 | extra_headers=math-68881.h | |
47c94d21 | 421 | extra_options="${extra_options} m68k/m68k-tables.opt" |
61ed06c3 | 422 | ;; |
80920132 ME |
423 | microblaze*-*-*) |
424 | cpu_type=microblaze | |
425 | extra_options="${extra_options} g.opt" | |
426 | ;; | |
61ed06c3 HPN |
427 | mips*-*-*) |
428 | cpu_type=mips | |
6cf538da | 429 | extra_headers="loongson.h msa.h" |
d41c8b4c | 430 | extra_objs="frame-header-opt.o" |
e5aac417 | 431 | extra_options="${extra_options} g.opt fused-madd.opt mips/mips-tables.opt" |
61ed06c3 | 432 | ;; |
9304f876 CJW |
433 | nds32*) |
434 | cpu_type=nds32 | |
435 | extra_headers="nds32_intrinsic.h" | |
c0c935b5 | 436 | extra_objs="nds32-cost.o nds32-intrinsic.o nds32-isr.o nds32-md-auxiliary.o nds32-pipelines-auxiliary.o nds32-predicates.o nds32-memory-manipulation.o nds32-fp-as-gp.o" |
9304f876 | 437 | ;; |
e430824f CLT |
438 | nios2-*-*) |
439 | cpu_type=nios2 | |
440 | extra_options="${extra_options} g.opt" | |
00020dda | 441 | ;; |
738f2522 BS |
442 | nvptx-*-*) |
443 | cpu_type=nvptx | |
444 | ;; | |
83349046 SB |
445 | powerpc*-*-*spe*) |
446 | cpu_type=powerpcspe | |
447 | extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h htmintrin.h htmxlintrin.h" | |
448 | case x$with_cpu in | |
449 | xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[3456789]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|xe6500) | |
450 | cpu_is_64bit=yes | |
451 | ;; | |
452 | esac | |
453 | extra_options="${extra_options} g.opt fused-madd.opt powerpcspe/powerpcspe-tables.opt" | |
454 | ;; | |
61ed06c3 HPN |
455 | powerpc*-*-*) |
456 | cpu_type=rs6000 | |
0dc6645f | 457 | extra_objs="rs6000-string.o rs6000-p8swap.o" |
b76f1550 | 458 | extra_headers="ppc-asm.h altivec.h htmintrin.h htmxlintrin.h" |
a85492f3 | 459 | extra_headers="${extra_headers} bmi2intrin.h bmiintrin.h" |
20253250 | 460 | extra_headers="${extra_headers} xmmintrin.h mm_malloc.h" |
a85492f3 | 461 | extra_headers="${extra_headers} mmintrin.h x86intrin.h" |
b76f1550 | 462 | extra_headers="${extra_headers} ppu_intrinsics.h spu2vmx.h vec_types.h si2vmx.h" |
4768200a | 463 | extra_headers="${extra_headers} paired.h" |
a8e04fe6 | 464 | case x$with_cpu in |
1840c953 | 465 | xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[3456789]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|xe6500) |
a8e04fe6 AM |
466 | cpu_is_64bit=yes |
467 | ;; | |
468 | esac | |
f10d3ac9 | 469 | extra_options="${extra_options} g.opt fused-madd.opt rs6000/rs6000-tables.opt" |
4977bab6 | 470 | ;; |
09cae750 PD |
471 | riscv*) |
472 | cpu_type=riscv | |
473 | extra_objs="riscv-builtins.o riscv-c.o" | |
474 | ;; | |
4977bab6 | 475 | rs6000*-*-*) |
f10d3ac9 | 476 | extra_options="${extra_options} g.opt fused-madd.opt rs6000/rs6000-tables.opt" |
0dc6645f | 477 | extra_objs="rs6000-string.o rs6000-p8swap.o" |
4977bab6 | 478 | ;; |
61ed06c3 HPN |
479 | sparc*-*-*) |
480 | cpu_type=sparc | |
8d12174d DM |
481 | c_target_objs="sparc-c.o" |
482 | cxx_target_objs="sparc-c.o" | |
e7f799ce | 483 | extra_headers="visintrin.h" |
61ed06c3 | 484 | ;; |
85d9c13c TS |
485 | spu*-*-*) |
486 | cpu_type=spu | |
85d9c13c | 487 | ;; |
4977bab6 | 488 | s390*-*-*) |
6cecb0aa | 489 | cpu_type=s390 |
d7ecb504 | 490 | extra_options="${extra_options} fused-madd.opt" |
3af82a61 | 491 | extra_headers="s390intrin.h htmintrin.h htmxlintrin.h vecintrin.h" |
4977bab6 | 492 | ;; |
b4eb03fe | 493 | # Note the 'l'; we need to be able to match e.g. "shle" or "shl". |
a1fcb9a1 | 494 | sh[123456789lbe]*-*-* | sh-*-*) |
fa5322fa | 495 | cpu_type=sh |
159b4b2f | 496 | extra_options="${extra_options} fused-madd.opt" |
ac973375 | 497 | extra_objs="${extra_objs} sh_treg_combine.o sh-mem.o sh_optimize_sett_clrt.o" |
fa5322fa | 498 | ;; |
fd4df33d NC |
499 | v850*-*-*) |
500 | cpu_type=v850 | |
501 | ;; | |
bcead286 BS |
502 | tic6x-*-*) |
503 | cpu_type=c6x | |
504 | extra_headers="c6x_intrinsics.h" | |
505 | extra_options="${extra_options} c6x/c6x-tables.opt" | |
506 | ;; | |
47c21725 RH |
507 | xtensa*-*-*) |
508 | extra_options="${extra_options} fused-madd.opt" | |
509 | ;; | |
dd552284 WL |
510 | tilegx*-*-*) |
511 | cpu_type=tilegx | |
dd552284 | 512 | ;; |
341c653c | 513 | tilepro*-*-*) |
dd552284 | 514 | cpu_type=tilepro |
dd552284 | 515 | ;; |
61ed06c3 HPN |
516 | esac |
517 | ||
518 | tm_file=${cpu_type}/${cpu_type}.h | |
b6d7afec | 519 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h |
61ed06c3 | 520 | then |
b6d7afec ZW |
521 | tm_p_file=${cpu_type}/${cpu_type}-protos.h |
522 | fi | |
1c0ca89d ZW |
523 | extra_modes= |
524 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def | |
525 | then | |
526 | extra_modes=${cpu_type}/${cpu_type}-modes.def | |
527 | fi | |
75685792 RS |
528 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}.opt |
529 | then | |
530 | extra_options="${extra_options} ${cpu_type}/${cpu_type}.opt" | |
531 | fi | |
e564e618 | 532 | |
b01bc573 | 533 | case ${target} in |
17a819cb | 534 | aarch64*-*-*) |
c451f4d6 | 535 | tm_p_file="${tm_p_file} arm/aarch-common-protos.h" |
17a819cb YZ |
536 | case ${with_abi} in |
537 | "") | |
538 | if test "x$with_multilib_list" = xilp32; then | |
539 | tm_file="aarch64/biarchilp32.h ${tm_file}" | |
540 | else | |
541 | tm_file="aarch64/biarchlp64.h ${tm_file}" | |
542 | fi | |
543 | ;; | |
544 | ilp32) | |
545 | tm_file="aarch64/biarchilp32.h ${tm_file}" | |
546 | ;; | |
547 | lp64) | |
548 | tm_file="aarch64/biarchlp64.h ${tm_file}" | |
549 | ;; | |
550 | *) | |
551 | echo "Unknown ABI used in --with-abi=$with_abi" | |
552 | exit 1 | |
553 | esac | |
554 | ;; | |
922e3e33 | 555 | i[34567]86-*-*) |
0465e49e L |
556 | if test "x$with_abi" != x; then |
557 | echo "This target does not support --with-abi." | |
558 | exit 1 | |
559 | fi | |
0e462a95 | 560 | if test "x$enable_cld" = xyes; then |
922e3e33 UB |
561 | tm_defines="${tm_defines} USE_IX86_CLD=1" |
562 | fi | |
d79389af L |
563 | if test "x$enable_frame_pointer" = xyes; then |
564 | tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1" | |
565 | fi | |
bf016de8 | 566 | tm_file="vxworks-dummy.h ${tm_file}" |
922e3e33 | 567 | ;; |
e564e618 | 568 | x86_64-*-*) |
0465e49e L |
569 | case ${with_abi} in |
570 | "") | |
571 | if test "x$with_multilib_list" = xmx32; then | |
572 | tm_file="i386/biarchx32.h ${tm_file}" | |
573 | else | |
574 | tm_file="i386/biarch64.h ${tm_file}" | |
575 | fi | |
576 | ;; | |
577 | 64 | m64) | |
578 | tm_file="i386/biarch64.h ${tm_file}" | |
579 | ;; | |
580 | x32 | mx32) | |
581 | tm_file="i386/biarchx32.h ${tm_file}" | |
582 | ;; | |
583 | *) | |
584 | echo "Unknown ABI used in --with-abi=$with_abi" | |
585 | exit 1 | |
586 | esac | |
0e462a95 | 587 | if test "x$enable_cld" = xyes; then |
922e3e33 UB |
588 | tm_defines="${tm_defines} USE_IX86_CLD=1" |
589 | fi | |
d79389af L |
590 | if test "x$enable_frame_pointer" = xyes; then |
591 | tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1" | |
592 | fi | |
bf016de8 | 593 | tm_file="vxworks-dummy.h ${tm_file}" |
e564e618 | 594 | ;; |
c3f35647 | 595 | arm*-*-*) |
bdb0828f | 596 | tm_p_file="arm/arm-flags.h ${tm_p_file} arm/aarch-common-protos.h" |
c3f35647 SN |
597 | tm_file="vxworks-dummy.h ${tm_file}" |
598 | ;; | |
599 | mips*-*-* | sh*-*-* | sparc*-*-*) | |
1bfa5973 JJ |
600 | tm_file="vxworks-dummy.h ${tm_file}" |
601 | ;; | |
e564e618 DB |
602 | esac |
603 | ||
61ed06c3 | 604 | # On a.out targets, we need to use collect2. |
b01bc573 | 605 | case ${target} in |
61ed06c3 HPN |
606 | *-*-*aout*) |
607 | use_collect2=yes | |
608 | ;; | |
0e5a4ad8 | 609 | esac |
61ed06c3 | 610 | |
2c8f43e6 | 611 | # Common C libraries. |
755658a5 | 612 | tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4" |
2c8f43e6 | 613 | |
646bdeab L |
614 | # 32-bit x86 processors supported by --with-arch=. Each processor |
615 | # MUST be separated by exactly one space. | |
616 | x86_archs="athlon athlon-4 athlon-fx athlon-mp athlon-tbird \ | |
617 | athlon-xp k6 k6-2 k6-3 geode c3 c3-2 winchip-c6 winchip2 i386 i486 \ | |
618 | i586 i686 pentium pentium-m pentium-mmx pentium2 pentium3 pentium3m \ | |
2d6b2e28 | 619 | pentium4 pentium4m pentiumpro prescott lakemont" |
646bdeab L |
620 | |
621 | # 64-bit x86 processors supported by --with-arch=. Each processor | |
622 | # MUST be separated by exactly one space. | |
623 | x86_64_archs="amdfam10 athlon64 athlon64-sse3 barcelona bdver1 bdver2 \ | |
9ce29eb0 | 624 | bdver3 bdver4 znver1 btver1 btver2 k8 k8-sse3 opteron opteron-sse3 nocona \ |
646bdeab | 625 | core2 corei7 corei7-avx core-avx-i core-avx2 atom slm nehalem westmere \ |
cace2309 | 626 | sandybridge ivybridge haswell broadwell bonnell silvermont knl knm \ |
06caf59d | 627 | skylake-avx512 x86-64 native" |
646bdeab L |
628 | |
629 | # Additional x86 processors supported by --with-cpu=. Each processor | |
630 | # MUST be separated by exactly one space. | |
631 | x86_cpus="generic intel" | |
632 | ||
4977bab6 | 633 | # Common parts for widely ported systems. |
b01bc573 | 634 | case ${target} in |
4d6d5bb2 | 635 | *-*-darwin*) |
c3a9a336 | 636 | tmake_file="t-darwin ${cpu_type}/t-darwin" |
80c85ca2 MS |
637 | tm_file="${tm_file} darwin.h" |
638 | case ${target} in | |
c9c80434 | 639 | *-*-darwin9*) |
80c85ca2 MS |
640 | tm_file="${tm_file} darwin9.h" |
641 | ;; | |
0674c9de | 642 | *-*-darwin[1][01]*) |
c9c80434 JH |
643 | tm_file="${tm_file} darwin9.h darwin10.h" |
644 | ;; | |
0674c9de JH |
645 | *-*-darwin[1][2-9]* | *-*-darwin[2][0-9]*) |
646 | tm_file="${tm_file} darwin9.h darwin10.h darwin12.h" | |
647 | ;; | |
80c85ca2 MS |
648 | esac |
649 | tm_file="${tm_file} ${cpu_type}/darwin.h" | |
4d6d5bb2 | 650 | tm_p_file="${tm_p_file} darwin-protos.h" |
4d6d5bb2 | 651 | target_gtfiles="\$(srcdir)/config/darwin.c" |
6ac49599 | 652 | extra_options="${extra_options} darwin.opt" |
ab442df7 MM |
653 | c_target_objs="${c_target_objs} darwin-c.o" |
654 | cxx_target_objs="${cxx_target_objs} darwin-c.o" | |
c776a6d0 | 655 | fortran_target_objs="darwin-f.o" |
acce4e77 | 656 | target_has_targetcm=yes |
c73200ca | 657 | extra_objs="${extra_objs} darwin.o" |
e46b55d0 | 658 | extra_gcc_objs="darwin-driver.o" |
747b9f55 | 659 | default_use_cxa_atexit=yes |
428ddbf0 | 660 | use_gcc_stdint=wrap |
4d6d5bb2 NN |
661 | case ${enable_threads} in |
662 | "" | yes | posix) thread_file='posix' ;; | |
663 | esac | |
664 | ;; | |
dbed5a9b JM |
665 | *-*-dragonfly*) |
666 | gas=yes | |
667 | gnu_ld=yes | |
668 | tmake_file="t-slibgcc" | |
669 | case ${enable_threads} in | |
670 | "" | yes | posix) | |
671 | thread_file='posix' | |
672 | ;; | |
673 | no | single) | |
674 | # Let these non-posix thread selections fall through if requested | |
675 | ;; | |
676 | *) | |
677 | echo 'Unknown thread configuration for DragonFly BSD' | |
678 | exit 1 | |
679 | ;; | |
680 | esac | |
681 | extra_options="$extra_options rpath.opt dragonfly.opt" | |
682 | default_use_cxa_atexit=yes | |
683 | use_gcc_stdint=wrap | |
684 | ;; | |
4d6d5bb2 NN |
685 | *-*-freebsd*) |
686 | # This is the generic ELF configuration of FreeBSD. Later | |
687 | # machine-specific sections may refine and add to this | |
688 | # configuration. | |
689 | # | |
690 | # Due to tm_file entry ordering issues that vary between cpu | |
691 | # architectures, we only define fbsd_tm_file to allow the | |
692 | # machine-specific section to dictate the final order of all | |
693 | # entries of tm_file with the minor exception that components | |
694 | # of the tm_file set here will always be of the form: | |
695 | # | |
696 | # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h | |
697 | # | |
698 | # The machine-specific section should not tamper with this | |
699 | # ordering but may order all other entries of tm_file as it | |
700 | # pleases around the provided core setting. | |
701 | gas=yes | |
702 | gnu_ld=yes | |
b2449d40 | 703 | fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\..*//g'` |
faabf788 AT |
704 | if test "$fbsd_major" = ""; then |
705 | echo "Specify the major version number of the targeted FreeBSD release" | |
706 | echo "like this: --target=amd64-unknown-freebsd10.1" | |
707 | exit 1 | |
708 | fi | |
b2449d40 | 709 | tm_defines="${tm_defines} FBSD_MAJOR=${fbsd_major}" |
f9989b51 | 710 | tmake_file="t-slibgcc" |
4d6d5bb2 NN |
711 | case ${enable_threads} in |
712 | no) | |
713 | fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h" | |
714 | ;; | |
769e49eb | 715 | "" | yes | posix) |
4d6d5bb2 | 716 | thread_file='posix' |
4d6d5bb2 | 717 | ;; |
f7288899 | 718 | *) |
4d6d5bb2 NN |
719 | echo 'Unknown thread configuration for FreeBSD' |
720 | exit 1 | |
721 | ;; | |
722 | esac | |
5ac69a80 | 723 | fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h freebsd-stdint.h" |
baf3ead6 | 724 | extra_options="$extra_options rpath.opt freebsd.opt" |
8a47c6c4 LR |
725 | case ${target} in |
726 | *-*-freebsd[345].*) | |
727 | :;; | |
728 | *) | |
729 | default_use_cxa_atexit=yes;; | |
730 | esac | |
5ac69a80 | 731 | use_gcc_stdint=wrap |
4d6d5bb2 | 732 | ;; |
491b3c5f JC |
733 | *-*-fuchsia*) |
734 | native_system_header_dir=/include | |
735 | ;; | |
8466af06 | 736 | *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu) |
b8e7038e | 737 | extra_options="$extra_options gnu-user.opt" |
e3029773 NN |
738 | gas=yes |
739 | gnu_ld=yes | |
740 | case ${enable_threads} in | |
741 | "" | yes | posix) thread_file='posix' ;; | |
742 | esac | |
f9989b51 | 743 | tmake_file="t-slibgcc" |
3328a3b7 | 744 | case $target in |
8466af06 | 745 | *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-kopensolaris*-gnu) |
3328a3b7 TS |
746 | :;; |
747 | *-*-gnu*) | |
08b2bad2 SB |
748 | native_system_header_dir=/include |
749 | ;; | |
3328a3b7 | 750 | esac |
5fa747a7 | 751 | # Linux C libraries selection switch: glibc / uclibc / bionic. |
74c70253 | 752 | # uclibc and bionic aren't usable for GNU/Hurd and neither for GNU/k*BSD. |
3328a3b7 TS |
753 | case $target in |
754 | *linux*) | |
5fa747a7 MK |
755 | tm_p_file="${tm_p_file} linux-protos.h" |
756 | tmake_file="${tmake_file} t-linux" | |
757 | extra_objs="${extra_objs} linux.o" | |
758 | extra_options="${extra_options} linux.opt" | |
759 | ;; | |
3328a3b7 | 760 | esac |
74c70253 MK |
761 | case $target in |
762 | *-*-*android*) | |
763 | tm_defines="$tm_defines DEFAULT_LIBC=LIBC_BIONIC" | |
764 | ;; | |
464aea98 | 765 | *-*-*uclibc*) |
74c70253 | 766 | tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC" |
7bd85ce0 | 767 | ;; |
755658a5 GR |
768 | *-*-*musl*) |
769 | tm_defines="$tm_defines DEFAULT_LIBC=LIBC_MUSL" | |
770 | ;; | |
7bd85ce0 | 771 | *) |
74c70253 | 772 | tm_defines="$tm_defines DEFAULT_LIBC=LIBC_GLIBC" |
464aea98 JM |
773 | ;; |
774 | esac | |
74c70253 MK |
775 | # Assume that glibc or uClibc or Bionic are being used and so __cxa_atexit |
776 | # is provided. | |
c5dde55b | 777 | default_use_cxa_atexit=yes |
1617e5ee | 778 | use_gcc_tgmath=no |
207bf79d | 779 | use_gcc_stdint=wrap |
51b9db92 MK |
780 | # Enable compilation for Android by default for *android* targets. |
781 | case $target in | |
782 | *-*-*android*) | |
783 | tm_defines="$tm_defines ANDROID_DEFAULT=1" | |
784 | ;; | |
785 | *) | |
786 | tm_defines="$tm_defines ANDROID_DEFAULT=0" | |
787 | ;; | |
788 | esac | |
1efcb8c6 JM |
789 | c_target_objs="${c_target_objs} glibc-c.o" |
790 | cxx_target_objs="${cxx_target_objs} glibc-c.o" | |
791 | tmake_file="${tmake_file} t-glibc" | |
792 | target_has_targetcm=yes | |
e3029773 | 793 | ;; |
f982f805 | 794 | *-*-netbsd*) |
b460e64d KW |
795 | tm_p_file="${tm_p_file} netbsd-protos.h" |
796 | tmake_file="t-netbsd t-slibgcc" | |
797 | extra_objs="${extra_objs} netbsd.o" | |
e3029773 NN |
798 | gas=yes |
799 | gnu_ld=yes | |
0333b8d0 | 800 | use_gcc_stdint=wrap |
e3029773 | 801 | case ${enable_threads} in |
b48cd47e | 802 | "" | yes | posix) thread_file='posix' ;; |
e3029773 | 803 | esac |
b74103ef | 804 | default_use_cxa_atexit=yes |
e3029773 | 805 | ;; |
4d6d5bb2 | 806 | *-*-openbsd*) |
f9989b51 | 807 | tmake_file="t-openbsd" |
e3029773 | 808 | case ${enable_threads} in |
4d6d5bb2 | 809 | yes) |
e3029773 | 810 | thread_file='posix' |
e3029773 NN |
811 | ;; |
812 | esac | |
af9e6b74 MK |
813 | case ${target} in |
814 | *-*-openbsd4.[3-9]|*-*-openbsd[5-9]*) | |
815 | default_use_cxa_atexit=yes | |
816 | ;; | |
817 | esac | |
e3029773 | 818 | ;; |
bfdd80d4 JS |
819 | *-*-phoenix*) |
820 | gas=yes | |
821 | gnu_ld=yes | |
822 | default_use_cxa_atexit=yes | |
823 | ;; | |
8179b3c8 NN |
824 | *-*-rtems*) |
825 | case ${enable_threads} in | |
776c9a0d SH |
826 | "" | yes | rtems) thread_file='rtems' ;; |
827 | posix) thread_file='posix' ;; | |
828 | no) ;; | |
829 | *) | |
830 | echo 'Unknown thread configuration for RTEMS' | |
831 | exit 1 | |
832 | ;; | |
8179b3c8 | 833 | esac |
aefe4056 | 834 | tmake_file="${tmake_file} t-rtems" |
cd33a412 | 835 | extra_options="${extra_options} rtems.opt" |
228c1313 | 836 | default_use_cxa_atexit=yes |
207bf79d JM |
837 | use_gcc_stdint=wrap |
838 | ;; | |
839 | *-*-uclinux*) | |
b8e7038e | 840 | extra_options="$extra_options gnu-user.opt" |
207bf79d | 841 | use_gcc_stdint=wrap |
09955a32 WB |
842 | case ${enable_threads} in |
843 | "" | yes | posix) thread_file='posix' ;; | |
844 | esac | |
b5a54c03 | 845 | tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC SINGLE_LIBC" |
8179b3c8 | 846 | ;; |
5a579c3b LE |
847 | *-*-rdos*) |
848 | use_gcc_stdint=wrap | |
849 | ;; | |
c28aa982 | 850 | *-*-solaris2*) |
7ecfa34f RO |
851 | # i?86-*-solaris2* needs to insert headers between cpu default and |
852 | # Solaris 2 specific ones. | |
2cf03b11 RO |
853 | sol2_tm_file_head="dbxelf.h elfos.h ${cpu_type}/sysv4.h" |
854 | sol2_tm_file_tail="${cpu_type}/sol2.h sol2.h" | |
855 | sol2_tm_file="${sol2_tm_file_head} ${sol2_tm_file_tail}" | |
29424c7b RO |
856 | case ${target} in |
857 | *-*-solaris2.1[2-9]*) | |
858 | # __cxa_atexit was introduced in Solaris 12. | |
859 | default_use_cxa_atexit=yes | |
860 | ;; | |
861 | esac | |
d9f069ab | 862 | use_gcc_stdint=wrap |
7ecfa34f RO |
863 | if test x$gnu_ld = xyes; then |
864 | tm_file="usegld.h ${tm_file}" | |
865 | fi | |
866 | if test x$gas = xyes; then | |
867 | tm_file="usegas.h ${tm_file}" | |
868 | fi | |
869 | tm_p_file="${tm_p_file} sol2-protos.h" | |
b040f2be | 870 | tmake_file="${tmake_file} t-sol2 t-slibgcc" |
7ecfa34f | 871 | c_target_objs="${c_target_objs} sol2-c.o" |
5b880ea6 RO |
872 | cxx_target_objs="${cxx_target_objs} sol2-c.o sol2-cxx.o" |
873 | extra_objs="sol2.o sol2-stubs.o" | |
c28aa982 | 874 | extra_options="${extra_options} sol2.opt" |
7ecfa34f RO |
875 | case ${enable_threads}:${have_pthread_h}:${have_thread_h} in |
876 | "":yes:* | yes:yes:* ) | |
877 | thread_file=posix | |
878 | ;; | |
879 | esac | |
c28aa982 | 880 | ;; |
18a24fed TG |
881 | *-*-*vms*) |
882 | extra_options="${extra_options} vms/vms.opt" | |
883 | xmake_file=vms/x-vms | |
b040f2be | 884 | tmake_file="vms/t-vms t-slibgcc" |
db8b22ef TG |
885 | extra_objs="vms.o" |
886 | target_gtfiles="$target_gtfiles \$(srcdir)/config/vms/vms.c" | |
887 | tm_p_file="${tm_p_file} vms/vms-protos.h" | |
d8aba32a | 888 | xm_file="vms/xm-vms.h" |
c750e768 TG |
889 | c_target_objs="vms-c.o" |
890 | cxx_target_objs="vms-c.o" | |
c531f06a | 891 | fortran_target_objs="vms-f.o" |
20bfad56 TG |
892 | use_gcc_stdint=provide |
893 | tm_file="${tm_file} vms/vms-stdint.h" | |
18a24fed TG |
894 | if test x$gnu_ld != xyes; then |
895 | # Build wrappers for native case. | |
896 | extra_programs="ld\$(exeext) ar\$(exeext)" | |
897 | tmake_file="$tmake_file vms/t-vmsnative" | |
898 | fi | |
899 | ;; | |
4977bab6 | 900 | *-*-vxworks*) |
e3029773 | 901 | tmake_file=t-vxworks |
2eab15c9 PE |
902 | xm_defines=POSIX |
903 | extra_options="${extra_options} vxworks.opt" | |
6994430a | 904 | extra_objs="$extra_objs vxworks.o" |
a476498c DR |
905 | use_gcc_stdint=provide |
906 | tm_file="${tm_file} vxworks-stdint.h" | |
55047c9d PE |
907 | case ${enable_threads} in |
908 | no) ;; | |
909 | "" | yes | vxworks) thread_file='vxworks' ;; | |
910 | *) echo 'Unknown thread configuration for VxWorks'; exit 1 ;; | |
911 | esac | |
b269e899 JL |
912 | case $target in |
913 | *-*-vxworks7*) | |
914 | tm_defines="$tm_defines TARGET_VXWORKS7=1" | |
915 | ;; | |
916 | esac | |
e3029773 | 917 | ;; |
53426f6c | 918 | *-*-elf|arc*-*-elf*) |
c5dde55b NC |
919 | # Assume that newlib is being used and so __cxa_atexit is provided. |
920 | default_use_cxa_atexit=yes | |
207bf79d | 921 | use_gcc_stdint=wrap |
c5dde55b | 922 | ;; |
61ed06c3 HPN |
923 | esac |
924 | ||
b01bc573 | 925 | case ${target} in |
491b3c5f | 926 | aarch64*-*-elf | aarch64*-*-fuchsia* | aarch64*-*-rtems*) |
24034425 IB |
927 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h" |
928 | tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-elf-raw.h" | |
929 | tmake_file="${tmake_file} aarch64/t-aarch64" | |
11779999 JS |
930 | case $target in |
931 | aarch64-*-elf*) | |
932 | use_gcc_stdint=wrap | |
933 | ;; | |
491b3c5f JC |
934 | aarch64-*-fuchsia*) |
935 | tm_file="${tm_file} fuchsia.h" | |
936 | ;; | |
11779999 JS |
937 | aarch64-*-rtems*) |
938 | tm_file="${tm_file} rtems.h aarch64/rtems.h" | |
939 | ;; | |
940 | esac | |
24034425 IB |
941 | case $target in |
942 | aarch64_be-*) | |
943 | tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" | |
944 | ;; | |
945 | esac | |
17a819cb YZ |
946 | aarch64_multilibs="${with_multilib_list}" |
947 | if test "$aarch64_multilibs" = "default"; then | |
948 | aarch64_multilibs="lp64,ilp32" | |
949 | fi | |
950 | aarch64_multilibs=`echo $aarch64_multilibs | sed -e 's/,/ /g'` | |
951 | for aarch64_multilib in ${aarch64_multilibs}; do | |
952 | case ${aarch64_multilib} in | |
953 | ilp32 | lp64 ) | |
954 | TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${aarch64_multilib}" | |
955 | ;; | |
956 | *) | |
957 | echo "--with-multilib-list=${aarch64_multilib} not supported." | |
958 | exit 1 | |
959 | esac | |
960 | done | |
961 | TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'` | |
24034425 | 962 | ;; |
b20e7532 AT |
963 | aarch64*-*-freebsd*) |
964 | tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file}" | |
965 | tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-freebsd.h" | |
966 | tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aarch64-freebsd" | |
967 | ;; | |
24034425 IB |
968 | aarch64*-*-linux*) |
969 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h" | |
970 | tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-linux.h" | |
971 | tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aarch64-linux" | |
972 | case $target in | |
973 | aarch64_be-*) | |
974 | tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" | |
975 | ;; | |
976 | esac | |
17a819cb YZ |
977 | aarch64_multilibs="${with_multilib_list}" |
978 | if test "$aarch64_multilibs" = "default"; then | |
979 | # TODO: turn on ILP32 multilib build after its support is mature. | |
980 | # aarch64_multilibs="lp64,ilp32" | |
981 | aarch64_multilibs="lp64" | |
982 | fi | |
983 | aarch64_multilibs=`echo $aarch64_multilibs | sed -e 's/,/ /g'` | |
984 | for aarch64_multilib in ${aarch64_multilibs}; do | |
985 | case ${aarch64_multilib} in | |
986 | ilp32 | lp64 ) | |
987 | TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${aarch64_multilib}" | |
988 | ;; | |
989 | *) | |
990 | echo "--with-multilib-list=${aarch64_multilib} not supported." | |
991 | exit 1 | |
992 | esac | |
993 | done | |
994 | TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'` | |
24034425 | 995 | ;; |
61ed06c3 | 996 | alpha*-*-linux*) |
8f27fc6b | 997 | tm_file="elfos.h ${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h glibc-stdint.h" |
a32fc216 | 998 | tmake_file="${tmake_file} alpha/t-linux alpha/t-alpha" |
183c38a4 | 999 | extra_options="${extra_options} alpha/elf.opt" |
61ed06c3 HPN |
1000 | ;; |
1001 | alpha*-*-freebsd*) | |
8f27fc6b | 1002 | tm_file="elfos.h ${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h" |
a32fc216 | 1003 | tmake_file="${tmake_file} alpha/t-alpha" |
183c38a4 | 1004 | extra_options="${extra_options} alpha/elf.opt" |
61ed06c3 HPN |
1005 | ;; |
1006 | alpha*-*-netbsd*) | |
8f27fc6b | 1007 | tm_file="elfos.h ${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h" |
a32fc216 | 1008 | tmake_file="${tmake_file} alpha/t-alpha" |
183c38a4 JM |
1009 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt \ |
1010 | alpha/elf.opt" | |
61ed06c3 | 1011 | ;; |
61ed06c3 | 1012 | alpha*-*-openbsd*) |
aa58f943 | 1013 | tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT" |
8f27fc6b | 1014 | tm_file="elfos.h alpha/alpha.h alpha/elf.h openbsd.h openbsd-stdint.h alpha/openbsd.h openbsd-libpthread.h" |
a32fc216 | 1015 | tmake_file="${tmake_file} alpha/t-alpha" |
183c38a4 | 1016 | extra_options="${extra_options} openbsd.opt alpha/elf.opt" |
61ed06c3 | 1017 | # default x-alpha is only appropriate for dec-osf. |
61ed06c3 | 1018 | ;; |
ef057c45 | 1019 | alpha*-dec-*vms*) |
ba89fcb6 | 1020 | tm_file="${tm_file} vms/vms.h alpha/vms.h" |
a32fc216 | 1021 | tmake_file="${tmake_file} alpha/t-vms alpha/t-alpha" |
61ed06c3 | 1022 | ;; |
53426f6c | 1023 | arc*-*-elf*) |
fad92291 | 1024 | tm_file="arc/arc-arch.h dbxelf.h elfos.h newlib-stdint.h arc/elf.h ${tm_file}" |
f9ccf899 CZ |
1025 | tmake_file="arc/t-multilib arc/t-arc" |
1026 | extra_gcc_objs="driver-arc.o" | |
1027 | if test "x$with_cpu" != x; then | |
1028 | tm_defines="${tm_defines} TARGET_CPU_BUILD=PROCESSOR_$with_cpu" | |
1029 | fi | |
53426f6c JR |
1030 | if test x${with_endian} = x; then |
1031 | case ${target} in | |
1032 | arc*be-*-* | arc*eb-*-*) with_endian=big ;; | |
1033 | *) with_endian=little ;; | |
1034 | esac | |
1035 | fi | |
1036 | case ${with_endian} in | |
1037 | big|little) ;; | |
1038 | *) echo "with_endian=${with_endian} not supported."; exit 1 ;; | |
1039 | esac | |
1040 | case ${with_endian} in | |
fad92291 | 1041 | big*) tm_file="arc/big.h ${tm_file}" |
53426f6c JR |
1042 | esac |
1043 | ;; | |
b1938888 | 1044 | arc*-*-linux*) |
fad92291 CZ |
1045 | tm_file="arc/arc-arch.h dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h arc/linux.h ${tm_file}" |
1046 | tmake_file="${tmake_file} arc/t-arc" | |
f9ccf899 CZ |
1047 | extra_gcc_objs="driver-arc.o" |
1048 | if test "x$with_cpu" != x; then | |
1049 | tm_defines="${tm_defines} TARGET_CPU_BUILD=PROCESSOR_$with_cpu" | |
1050 | fi | |
53426f6c JR |
1051 | if test x${with_endian} = x; then |
1052 | case ${target} in | |
1053 | arc*be-*-* | arc*eb-*-*) with_endian=big ;; | |
1054 | *) with_endian=little ;; | |
1055 | esac | |
1056 | fi | |
1057 | case ${with_endian} in | |
1058 | big|little) ;; | |
1059 | *) echo "with_endian=${with_endian} not supported."; exit 1 ;; | |
1060 | esac | |
1061 | case ${with_endian} in | |
fad92291 | 1062 | big*) tm_file="arc/big.h ${tm_file}" |
53426f6c JR |
1063 | esac |
1064 | ;; | |
0b458d2b | 1065 | arm-wrs-vxworks|arm-wrs-vxworks7) |
59793c51 | 1066 | extra_options="${extra_options} arm/vxworks.opt" |
2f71a20a | 1067 | tmake_file="${tmake_file} arm/t-arm arm/t-vxworks" |
0b458d2b JL |
1068 | case $target in |
1069 | *-vxworks7) | |
1070 | # VxWorks7 on ARM adheres to the ARM Base Platform ABI | |
1071 | tmake_file="${tmake_file} arm/t-bpabi" | |
1072 | tm_file="arm/bpabi.h ${tm_file}" | |
1073 | # The BPABI long long divmod functions return a 128-bit value in | |
1074 | # registers r0-r3. | |
1075 | need_64bit_hwint=yes | |
1076 | default_use_cxa_atexit=yes | |
1077 | ;; | |
1078 | *) ;; | |
1079 | esac | |
1080 | tm_file="elfos.h arm/elf.h arm/aout.h ${tm_file} vx-common.h vxworks.h arm/vxworks.h" | |
1081 | target_cpu_cname="arm8" | |
55047c9d | 1082 | ;; |
82a19768 AT |
1083 | arm*-*-freebsd*) # ARM FreeBSD EABI |
1084 | tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h" | |
1085 | case $target in | |
1086 | arm*b-*-freebsd*) | |
1087 | tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" | |
1088 | ;; | |
1089 | esac | |
1090 | tmake_file="${tmake_file} arm/t-arm arm/t-bpabi" | |
1091 | tm_file="${tm_file} arm/bpabi.h arm/freebsd.h arm/aout.h arm/arm.h" | |
1092 | case $target in | |
1093 | armv6*-*-freebsd*) | |
b5e204dc | 1094 | target_cpu_cname="arm1176jzf-s" |
82a19768 | 1095 | tm_defines="${tm_defines} TARGET_FREEBSD_ARMv6=1" |
c8743fc5 AT |
1096 | if test $fbsd_major -ge 11; then |
1097 | tm_defines="${tm_defines} TARGET_FREEBSD_ARM_HARD_FLOAT=1" | |
1098 | fi | |
82a19768 | 1099 | ;; |
d3d3f1af RE |
1100 | *) |
1101 | target_cpu_cname="arm9" | |
1102 | ;; | |
82a19768 AT |
1103 | esac |
1104 | with_tls=${with_tls:-gnu} | |
1105 | ;; | |
69474c3c | 1106 | arm*-*-netbsdelf*) |
1bfa5973 | 1107 | tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h ${tm_file} arm/netbsd-elf.h" |
a4714d14 | 1108 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
f9989b51 | 1109 | tmake_file="${tmake_file} arm/t-arm" |
d3d3f1af | 1110 | target_cpu_cname="arm6" |
69474c3c | 1111 | ;; |
9945a876 | 1112 | arm*-*-linux-*) # ARM GNU/Linux with ELF |
8e38461c | 1113 | 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" |
5fa747a7 | 1114 | extra_options="${extra_options} linux-android.opt" |
d3a9662c | 1115 | case $target in |
e3ed9d60 | 1116 | arm*b-*-linux*) |
c4cc7bc1 RE |
1117 | tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" |
1118 | ;; | |
d3a9662c | 1119 | esac |
f423a9e4 | 1120 | tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi" |
4e4fa3c5 | 1121 | tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h arm/aout.h vxworks-dummy.h arm/arm.h" |
d3d3f1af | 1122 | target_cpu_cname="arm10tdmi" |
c4cc7bc1 | 1123 | # Define multilib configuration for arm-linux-androideabi. |
077fc835 | 1124 | case ${target} in |
c4cc7bc1 RE |
1125 | *-androideabi) |
1126 | tmake_file="$tmake_file arm/t-linux-androideabi" | |
077fc835 KH |
1127 | ;; |
1128 | esac | |
c4cc7bc1 RE |
1129 | # The EABI requires the use of __cxa_atexit. |
1130 | default_use_cxa_atexit=yes | |
7cf13d1f | 1131 | with_tls=${with_tls:-gnu} |
61ed06c3 | 1132 | ;; |
c4cc7bc1 | 1133 | arm*-*-uclinux*eabi*) # ARM ucLinux |
207bf79d | 1134 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/uclinux-elf.h glibc-stdint.h" |
aefe4056 | 1135 | tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf arm/t-bpabi" |
1bfa5973 | 1136 | tm_file="$tm_file arm/bpabi.h arm/uclinux-eabi.h arm/aout.h vxworks-dummy.h arm/arm.h" |
d3d3f1af | 1137 | target_cpu_cname="arm7tdmi" |
c4cc7bc1 RE |
1138 | # The EABI requires the use of __cxa_atexit. |
1139 | default_use_cxa_atexit=yes | |
0e5a4ad8 | 1140 | ;; |
bfdd80d4 JS |
1141 | arm*-*-phoenix*) |
1142 | tm_file="elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h" | |
1143 | tm_file="${tm_file} newlib-stdint.h phoenix.h" | |
1144 | tm_file="${tm_file} arm/aout.h arm/arm.h" | |
1145 | tmake_file="${tmake_file} arm/t-arm arm/t-bpabi arm/t-phoenix" | |
d3d3f1af | 1146 | target_cpu_cname="arm7tdmi" |
bfdd80d4 | 1147 | ;; |
491b3c5f | 1148 | arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems* | arm*-*-fuchsia*) |
ac8d93a7 SL |
1149 | case ${target} in |
1150 | arm*eb-*-eabi*) | |
1151 | tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" | |
1152 | esac | |
e6fc6c9b | 1153 | default_use_cxa_atexit=yes |
b3f8d95d | 1154 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h" |
aefe4056 | 1155 | tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf" |
d3d3f1af | 1156 | target_cpu_cname="arm7tdmi" |
b3f8d95d | 1157 | case ${target} in |
f9a02408 | 1158 | arm*-*-eabi*) |
51b9db92 | 1159 | tm_file="$tm_file newlib-stdint.h" |
e04d8a63 | 1160 | tmake_file="${tmake_file} arm/t-bpabi" |
207bf79d | 1161 | use_gcc_stdint=wrap |
f9a02408 | 1162 | ;; |
491b3c5f JC |
1163 | arm*-*-fuchsia*) |
1164 | tm_file="${tm_file} fuchsia.h arm/fuchsia-elf.h glibc-stdint.h" | |
be5c4e06 | 1165 | tmake_file="${tmake_file} arm/t-bpabi arm/t-fuchsia" |
bf35d17a | 1166 | target_cpu_cname="generic-armv7-a" |
491b3c5f | 1167 | ;; |
05242957 | 1168 | arm*-*-rtems*) |
5be0a29b SH |
1169 | tm_file="${tm_file} rtems.h arm/rtems.h newlib-stdint.h" |
1170 | tmake_file="${tmake_file} arm/t-bpabi arm/t-rtems" | |
e36c5271 | 1171 | ;; |
b3f8d95d MM |
1172 | arm*-*-symbianelf*) |
1173 | tm_file="${tm_file} arm/symbian.h" | |
f9a02408 MM |
1174 | # We do not include t-bpabi for Symbian OS because the system |
1175 | # provides its own implementation of the BPABI functions. | |
c0354bf4 | 1176 | tmake_file="${tmake_file} arm/t-symbian" |
d3d3f1af | 1177 | target_cpu_cname="arm10tdmi" |
b3f8d95d MM |
1178 | ;; |
1179 | esac | |
1bfa5973 | 1180 | tm_file="${tm_file} arm/aout.h vxworks-dummy.h arm/arm.h" |
336bd6ac | 1181 | ;; |
61ed06c3 | 1182 | avr-*-*) |
4a2caf6c | 1183 | tm_file="elfos.h avr/elf.h avr/avr-arch.h avr/avr.h avr/specs.h dbxelf.h avr/avr-stdint.h" |
b588ae30 GJL |
1184 | if test x${with_avrlibc} != xno; then |
1185 | tm_file="${tm_file} ${cpu_type}/avrlibc.h" | |
1186 | tm_defines="${tm_defines} WITH_AVRLIBC" | |
1187 | fi | |
4de80584 | 1188 | tmake_file="${tmake_file} avr/t-avr avr/t-multilib" |
207bf79d | 1189 | use_gcc_stdint=wrap |
4a2caf6c | 1190 | extra_gcc_objs="driver-avr.o avr-devices.o" |
6c7dfafe | 1191 | extra_objs="avr-devices.o avr-log.o" |
61ed06c3 | 1192 | ;; |
0d4a78eb | 1193 | bfin*-elf*) |
207bf79d | 1194 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h" |
6bad46f7 JZ |
1195 | tmake_file=bfin/t-bfin-elf |
1196 | use_collect2=no | |
1197 | ;; | |
1f4174d4 | 1198 | bfin*-uclinux*) |
8e38461c | 1199 | tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h gnu-user.h linux.h glibc-stdint.h bfin/uclinux.h" |
6bad46f7 | 1200 | tmake_file=bfin/t-bfin-uclinux |
6bad46f7 JZ |
1201 | use_collect2=no |
1202 | ;; | |
344189f9 | 1203 | bfin*-linux-uclibc*) |
8e38461c | 1204 | 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" |
e08cf345 | 1205 | tmake_file="${tmake_file} bfin/t-bfin-linux" |
6bad46f7 JZ |
1206 | use_collect2=no |
1207 | ;; | |
152167d5 | 1208 | bfin*-rtems*) |
1ddc8057 | 1209 | tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/rtems.h rtems.h newlib-stdint.h" |
aefe4056 | 1210 | tmake_file="${tmake_file} bfin/t-rtems" |
6bad46f7 | 1211 | ;; |
0d4a78eb | 1212 | bfin*-*) |
207bf79d | 1213 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h" |
6bad46f7 | 1214 | use_collect2=no |
207bf79d | 1215 | use_gcc_stdint=wrap |
6bad46f7 | 1216 | ;; |
b25364a0 | 1217 | cr16-*-elf) |
db48a9e3 | 1218 | tm_file="elfos.h ${tm_file} newlib-stdint.h" |
b25364a0 S |
1219 | tmake_file="${tmake_file} cr16/t-cr16 " |
1220 | use_collect2=no | |
1221 | ;; | |
99c5227a | 1222 | crisv32-*-elf | crisv32-*-none) |
207bf79d | 1223 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
99c5227a HPN |
1224 | tmake_file="cris/t-cris" |
1225 | target_cpu_default=32 | |
1226 | gas=yes | |
1227 | extra_options="${extra_options} cris/elf.opt" | |
207bf79d | 1228 | use_gcc_stdint=wrap |
99c5227a | 1229 | ;; |
0b85d816 | 1230 | cris-*-elf | cris-*-none) |
207bf79d | 1231 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
0b85d816 HPN |
1232 | tmake_file="cris/t-cris cris/t-elfmulti" |
1233 | gas=yes | |
2a186d97 | 1234 | extra_options="${extra_options} cris/elf.opt" |
207bf79d | 1235 | use_gcc_stdint=wrap |
0b85d816 | 1236 | ;; |
99c5227a | 1237 | crisv32-*-linux* | cris-*-linux*) |
8e38461c | 1238 | tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h glibc-stdint.h cris/linux.h" |
3a213afb | 1239 | tmake_file="${tmake_file} cris/t-cris cris/t-linux" |
2a186d97 | 1240 | extra_options="${extra_options} cris/linux.opt" |
99c5227a HPN |
1241 | case $target in |
1242 | cris-*-*) | |
1243 | target_cpu_default=10 | |
1244 | ;; | |
1245 | crisv32-*-*) | |
1246 | target_cpu_default=32 | |
1247 | ;; | |
1248 | esac | |
0b85d816 | 1249 | ;; |
feeeff5c JR |
1250 | epiphany-*-elf ) |
1251 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" | |
1252 | tmake_file="epiphany/t-epiphany" | |
1253 | extra_options="${extra_options} fused-madd.opt" | |
1254 | extra_objs="$extra_objs mode-switch-use.o resolve-sw-modes.o" | |
1255 | tm_defines="${tm_defines} EPIPHANY_STACK_OFFSET=${with_stack_offset:-8}" | |
1256 | extra_headers="epiphany_intrinsics.h" | |
1257 | ;; | |
61ed06c3 | 1258 | fr30-*-elf) |
35766c1d | 1259 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
61ed06c3 | 1260 | ;; |
36a05131 | 1261 | frv-*-elf) |
a3724010 | 1262 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
36a05131 BS |
1263 | tmake_file=frv/t-frv |
1264 | ;; | |
34208acf | 1265 | frv-*-*linux*) |
a3724010 | 1266 | tm_file="dbxelf.h elfos.h ${tm_file} \ |
8e38461c | 1267 | gnu-user.h linux.h glibc-stdint.h frv/linux.h" |
65d151a7 | 1268 | tmake_file="${tmake_file} frv/t-frv frv/t-linux" |
34208acf | 1269 | ;; |
fef939d6 JB |
1270 | ft32-*-elf) |
1271 | gas=yes | |
1272 | gnu_ld=yes | |
1273 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" | |
1274 | tmake_file="${tmake_file} ft32/t-ft32" | |
1275 | ;; | |
cceb575c AG |
1276 | moxie-*-elf) |
1277 | gas=yes | |
1278 | gnu_ld=yes | |
804a304d | 1279 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
aca0b0b3 | 1280 | tmake_file="${tmake_file} moxie/t-moxie" |
cceb575c | 1281 | ;; |
23865616 AG |
1282 | moxie-*-uclinux*) |
1283 | gas=yes | |
1284 | gnu_ld=yes | |
8e38461c | 1285 | tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h glibc-stdint.h moxie/uclinux.h" |
aca0b0b3 | 1286 | tmake_file="${tmake_file} moxie/t-moxie" |
23865616 | 1287 | ;; |
1242723c | 1288 | moxie-*-rtems*) |
aefe4056 | 1289 | tmake_file="${tmake_file} moxie/t-moxie" |
1242723c AG |
1290 | tm_file="moxie/moxie.h dbxelf.h elfos.h moxie/rtems.h rtems.h newlib-stdint.h" |
1291 | ;; | |
17522262 AG |
1292 | moxie-*-moxiebox*) |
1293 | gas=yes | |
1294 | gnu_ld=yes | |
1295 | tm_file="${tm_file} dbxelf.h elfos.h moxie/moxiebox.h newlib-stdint.h" | |
1296 | tmake_file="${tmake_file} moxie/t-moxiebox" | |
1297 | ;; | |
9f5b774b | 1298 | h8300-*-elf*) |
5f73c6cc | 1299 | tmake_file="h8300/t-h8300" |
207bf79d | 1300 | tm_file="h8300/h8300.h dbxelf.h elfos.h newlib-stdint.h h8300/elf.h" |
9f5b774b | 1301 | ;; |
2f6bd6eb YS |
1302 | h8300-*-linux*) |
1303 | tmake_file="${tmake_file} h8300/t-h8300 h8300/t-linux" | |
1304 | tm_file="h8300/h8300.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h h8300/linux.h" | |
1305 | ;; | |
cd985f66 | 1306 | hppa*64*-*-linux*) |
d711cf67 | 1307 | target_cpu_default="MASK_PA_11|MASK_PA_20" |
8e38461c | 1308 | tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h gnu-user.h linux.h \ |
207bf79d JM |
1309 | glibc-stdint.h pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h \ |
1310 | pa/pa64-linux.h" | |
c21a2372 AM |
1311 | gas=yes gnu_ld=yes |
1312 | ;; | |
cd985f66 | 1313 | hppa*-*-linux*) |
d711cf67 | 1314 | target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS" |
8e38461c | 1315 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h pa/pa-linux.h \ |
c21a2372 | 1316 | pa/pa32-regs.h pa/pa32-linux.h" |
26841e45 | 1317 | tmake_file="${tmake_file} pa/t-linux" |
61ed06c3 | 1318 | ;; |
17f293b0 MK |
1319 | hppa*-*-openbsd*) |
1320 | target_cpu_default="MASK_PA_11" | |
1321 | tm_file="${tm_file} dbxelf.h elfos.h openbsd.h openbsd-stdint.h openbsd-libpthread.h \ | |
1322 | pa/pa-openbsd.h pa/pa32-regs.h pa/pa32-openbsd.h" | |
17f293b0 MK |
1323 | extra_options="${extra_options} openbsd.opt" |
1324 | gas=yes | |
1325 | gnu_ld=yes | |
1326 | ;; | |
d711cf67 JDA |
1327 | hppa[12]*-*-hpux10*) |
1328 | case ${target} in | |
1329 | hppa1.1-*-* | hppa2*-*-*) | |
1330 | target_cpu_default="MASK_PA_11" | |
1331 | ;; | |
1332 | esac | |
1333 | tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \ | |
1334 | pa/pa-hpux.h pa/pa-hpux10.h" | |
b24d1acf | 1335 | extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux10.opt" |
d711cf67 JDA |
1336 | case ${target} in |
1337 | *-*-hpux10.[1-9]*) | |
1338 | tm_file="${tm_file} pa/pa-hpux1010.h" | |
66617831 | 1339 | extra_options="${extra_options} pa/pa-hpux1010.opt" |
d711cf67 | 1340 | ;; |
61ed06c3 | 1341 | esac |
be3e4ef6 JDA |
1342 | use_gcc_stdint=provide |
1343 | tm_file="${tm_file} hpux-stdint.h" | |
f9989b51 | 1344 | tmake_file="t-slibgcc" |
615be2cf NN |
1345 | case ${enable_threads} in |
1346 | "") | |
1347 | if test x$have_pthread_h = xyes ; then | |
1348 | tmake_file="${tmake_file} pa/t-dce-thr" | |
1349 | fi | |
1350 | ;; | |
1351 | yes | dce) | |
1352 | tmake_file="${tmake_file} pa/t-dce-thr" | |
1353 | ;; | |
61ed06c3 | 1354 | esac |
61ed06c3 | 1355 | use_collect2=yes |
543b6009 | 1356 | gas=yes |
a65264ae | 1357 | if test "x$with_dwarf2" != x; then |
5cdb5d59 | 1358 | echo "Warning: dwarf2 debug format is not supported for this target, --with-dwarf2 ignored" 1>&2 |
a65264ae JDA |
1359 | dwarf2=no |
1360 | fi | |
61ed06c3 HPN |
1361 | ;; |
1362 | hppa*64*-*-hpux11*) | |
d711cf67 | 1363 | target_cpu_default="MASK_PA_11|MASK_PA_20" |
7b79fe71 JDA |
1364 | if test x$gnu_ld = xyes |
1365 | then | |
d711cf67 | 1366 | target_cpu_default="${target_cpu_default}|MASK_GNU_LD" |
7b79fe71 | 1367 | fi |
543b6009 SE |
1368 | tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \ |
1369 | pa/pa64-regs.h pa/pa-hpux.h pa/pa-hpux1010.h \ | |
1370 | pa/pa-hpux11.h" | |
d711cf67 | 1371 | case ${target} in |
fc4538e4 | 1372 | *-*-hpux11.[12]*) |
d711cf67 | 1373 | tm_file="${tm_file} pa/pa-hpux1111.h pa/pa-64.h pa/pa64-hpux.h" |
66617831 | 1374 | extra_options="${extra_options} pa/pa-hpux1111.opt" |
d711cf67 | 1375 | ;; |
fc4538e4 SE |
1376 | *-*-hpux11.[3-9]*) |
1377 | tm_file="${tm_file} pa/pa-hpux1131.h pa/pa-64.h pa/pa64-hpux.h" | |
1378 | extra_options="${extra_options} pa/pa-hpux1131.opt" | |
1379 | ;; | |
d711cf67 JDA |
1380 | *) |
1381 | tm_file="${tm_file} pa/pa-64.h pa/pa64-hpux.h" | |
1382 | ;; | |
1383 | esac | |
66617831 | 1384 | extra_options="${extra_options} pa/pa-hpux.opt \ |
e543b94c | 1385 | pa/pa-hpux1010.opt pa/pa64-hpux.opt hpux11.opt" |
f9989b51 | 1386 | tmake_file="t-slibgcc" |
7e2055ec | 1387 | case x${enable_threads} in |
27ca3a61 | 1388 | x | xyes | xposix ) |
f7288899 | 1389 | thread_file=posix |
7e2055ec ZW |
1390 | ;; |
1391 | esac | |
543b6009 | 1392 | gas=yes |
9a17c91d SE |
1393 | case ${target} in |
1394 | *-*-hpux11.[01]*) | |
1395 | use_gcc_stdint=provide | |
1396 | tm_file="${tm_file} hpux-stdint.h" | |
1397 | ;; | |
1398 | *-*-hpux11.[23]*) | |
1399 | use_gcc_stdint=wrap | |
1400 | tm_file="${tm_file} hpux-stdint.h" | |
1401 | ;; | |
1402 | esac | |
61ed06c3 | 1403 | ;; |
d711cf67 JDA |
1404 | hppa[12]*-*-hpux11*) |
1405 | case ${target} in | |
1406 | hppa1.1-*-* | hppa2*-*-*) | |
1407 | target_cpu_default="MASK_PA_11" | |
1408 | ;; | |
1409 | esac | |
1410 | tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \ | |
66617831 | 1411 | pa/pa-hpux.h pa/pa-hpux1010.h pa/pa-hpux11.h" |
e543b94c JM |
1412 | extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux1010.opt \ |
1413 | hpux11.opt" | |
d711cf67 | 1414 | case ${target} in |
fc4538e4 | 1415 | *-*-hpux11.[12]*) |
d711cf67 | 1416 | tm_file="${tm_file} pa/pa-hpux1111.h" |
66617831 | 1417 | extra_options="${extra_options} pa/pa-hpux1111.opt" |
7e2055ec | 1418 | ;; |
fc4538e4 SE |
1419 | *-*-hpux11.[3-9]*) |
1420 | tm_file="${tm_file} pa/pa-hpux1131.h" | |
1421 | extra_options="${extra_options} pa/pa-hpux1131.opt" | |
1422 | ;; | |
7e2055ec | 1423 | esac |
f9989b51 | 1424 | tmake_file="t-slibgcc" |
7e2055ec | 1425 | case x${enable_threads} in |
27ca3a61 | 1426 | x | xyes | xposix ) |
f7288899 | 1427 | thread_file=posix |
7e2055ec ZW |
1428 | ;; |
1429 | esac | |
61ed06c3 | 1430 | use_collect2=yes |
543b6009 | 1431 | gas=yes |
9a17c91d SE |
1432 | case ${target} in |
1433 | *-*-hpux11.[01]*) | |
1434 | use_gcc_stdint=provide | |
1435 | tm_file="${tm_file} hpux-stdint.h" | |
1436 | ;; | |
1437 | *-*-hpux11.[23]*) | |
1438 | use_gcc_stdint=wrap | |
1439 | tm_file="${tm_file} hpux-stdint.h" | |
1440 | ;; | |
1441 | esac | |
a65264ae | 1442 | if test "x$with_dwarf2" != x; then |
5cdb5d59 | 1443 | echo "Warning: dwarf2 debug format is not supported for this target, --with-dwarf2 ignored" 1>&2 |
a65264ae JDA |
1444 | dwarf2=no |
1445 | fi | |
61ed06c3 | 1446 | ;; |
b069de3b | 1447 | i[34567]86-*-darwin*) |
c6b9174f | 1448 | need_64bit_isa=yes |
c0aefbbe IS |
1449 | # Baseline choice for a machine that allows m64 support. |
1450 | with_cpu=${with_cpu:-core2} | |
b040f2be | 1451 | tmake_file="${tmake_file} t-slibgcc" |
b069de3b | 1452 | ;; |
9519e677 | 1453 | x86_64-*-darwin*) |
c0aefbbe | 1454 | with_cpu=${with_cpu:-core2} |
b040f2be | 1455 | tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc" |
9519e677 EC |
1456 | tm_file="${tm_file} ${cpu_type}/darwin64.h" |
1457 | ;; | |
d9063947 L |
1458 | i[34567]86-*-elfiamcu) |
1459 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/iamcu.h" | |
1460 | ;; | |
61ed06c3 | 1461 | i[34567]86-*-elf*) |
207bf79d | 1462 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h" |
a10dc289 HK |
1463 | ;; |
1464 | x86_64-*-elf*) | |
207bf79d | 1465 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h" |
61ed06c3 | 1466 | ;; |
d6944908 | 1467 | x86_64-*-rtems*) |
d445d739 | 1468 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h i386/rtemself.h" |
d6944908 | 1469 | ;; |
5a579c3b LE |
1470 | i[34567]86-*-rdos*) |
1471 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/rdos.h" | |
1472 | ;; | |
1473 | x86_64-*-rdos*) | |
1474 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h i386/rdos.h i386/rdos64.h" | |
1475 | tmake_file="i386/t-i386elf t-svr4" | |
1476 | ;; | |
dbed5a9b JM |
1477 | i[34567]86-*-dragonfly*) |
1478 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h dragonfly.h dragonfly-stdint.h i386/dragonfly.h" | |
1479 | tmake_file="${tmake_file} i386/t-crtstuff" | |
1480 | ;; | |
1481 | x86_64-*-dragonfly*) | |
1482 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h dragonfly.h dragonfly-stdint.h i386/x86-64.h i386/dragonfly.h" | |
1483 | tmake_file="${tmake_file} i386/t-crtstuff" | |
1484 | ;; | |
61ed06c3 | 1485 | i[34567]86-*-freebsd*) |
39ed301b | 1486 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h" |
e564e618 DB |
1487 | ;; |
1488 | x86_64-*-freebsd*) | |
39ed301b | 1489 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h" |
61ed06c3 | 1490 | ;; |
6ea0279f | 1491 | i[34567]86-*-netbsdelf*) |
82e435c3 | 1492 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-stdint.h netbsd-elf.h i386/netbsd-elf.h" |
a4714d14 | 1493 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
6ea0279f | 1494 | ;; |
7c884404 | 1495 | x86_64-*-netbsd*) |
82e435c3 | 1496 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-stdint.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h" |
a4714d14 | 1497 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
7c884404 | 1498 | ;; |
378b66d4 | 1499 | i[34567]86-*-openbsd*) |
75a3bd9d | 1500 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h" |
aa58f943 | 1501 | tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/openbsdelf.h" |
5369e2d4 | 1502 | extra_options="${extra_options} openbsd.opt" |
378b66d4 ME |
1503 | gas=yes |
1504 | gnu_ld=yes | |
378b66d4 | 1505 | ;; |
613061fd MK |
1506 | x86_64-*-openbsd*) |
1507 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h" | |
1508 | tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/x86-64.h i386/openbsdelf.h" | |
1509 | extra_options="${extra_options} openbsd.opt" | |
1510 | gas=yes | |
1511 | gnu_ld=yes | |
1512 | ;; | |
8466af06 | 1513 | i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu) |
cfafe973 | 1514 | # Intel 80386's running GNU/* |
61ed06c3 | 1515 | # with ELF format using glibc 2 |
6c0170ea | 1516 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h" |
cfafe973 | 1517 | case ${target} in |
0f45f0f5 | 1518 | i[34567]86-*-linux*) |
5fa747a7 MK |
1519 | tm_file="${tm_file} linux.h linux-android.h" |
1520 | extra_options="${extra_options} linux-android.opt" | |
0f45f0f5 | 1521 | if test x$enable_targets = xall; then |
6acc8a3c | 1522 | tm_file="${tm_file} i386/x86-64.h i386/gnu-user-common.h i386/gnu-user64.h i386/linux-common.h i386/linux64.h" |
0f45f0f5 | 1523 | tm_defines="${tm_defines} TARGET_BI_ARCH=1" |
ff473280 | 1524 | tmake_file="${tmake_file} i386/t-linux64" |
f0ea7581 L |
1525 | x86_multilibs="${with_multilib_list}" |
1526 | if test "$x86_multilibs" = "default"; then | |
1527 | x86_multilibs="m64,m32" | |
1528 | fi | |
1529 | x86_multilibs=`echo $x86_multilibs | sed -e 's/,/ /g'` | |
1530 | for x86_multilib in ${x86_multilibs}; do | |
1531 | case ${x86_multilib} in | |
1532 | m32 | m64 | mx32) | |
1533 | TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${x86_multilib}" | |
1534 | ;; | |
1535 | *) | |
1536 | echo "--with-multilib-list=${x86_with_multilib} not supported." | |
1537 | exit 1 | |
1538 | esac | |
1539 | done | |
1540 | TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'` | |
c6b9174f | 1541 | need_64bit_isa=yes |
646bdeab | 1542 | if test x$with_cpu = x; then |
8981c15b JM |
1543 | if test x$with_cpu_64 = x; then |
1544 | with_cpu_64=generic | |
1545 | fi | |
646bdeab L |
1546 | else |
1547 | case " $x86_cpus $x86_archs $x86_64_archs " in | |
1548 | *" $with_cpu "*) | |
1549 | ;; | |
1550 | *) | |
1551 | echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 | |
1552 | echo "$x86_cpus $x86_archs $x86_64_archs " 1>&2 | |
1553 | exit 1 | |
1554 | ;; | |
1555 | esac | |
1556 | fi | |
0f45f0f5 | 1557 | else |
6acc8a3c | 1558 | tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h i386/linux-common.h i386/linux.h" |
0f45f0f5 JM |
1559 | fi |
1560 | ;; | |
63708bf5 | 1561 | i[34567]86-*-kfreebsd*-gnu) |
70a69509 | 1562 | tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h kfreebsd-gnu.h i386/kfreebsd-gnu.h" |
63708bf5 UB |
1563 | ;; |
1564 | i[34567]86-*-kopensolaris*-gnu) | |
70a69509 | 1565 | tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h kopensolaris-gnu.h i386/kopensolaris-gnu.h" |
63708bf5 UB |
1566 | ;; |
1567 | i[34567]86-*-gnu*) | |
70a69509 | 1568 | tm_file="$tm_file i386/gnu-user-common.h i386/gnu-user.h gnu.h i386/gnu.h" |
63708bf5 | 1569 | ;; |
cfafe973 | 1570 | esac |
61ed06c3 | 1571 | ;; |
8466af06 | 1572 | x86_64-*-linux* | x86_64-*-kfreebsd*-gnu) |
6c0170ea | 1573 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h \ |
70a69509 | 1574 | i386/x86-64.h i386/gnu-user-common.h i386/gnu-user64.h" |
44379973 | 1575 | case ${target} in |
f6c5fbfd | 1576 | x86_64-*-linux*) |
5fa747a7 MK |
1577 | tm_file="${tm_file} linux.h linux-android.h i386/linux-common.h i386/linux64.h" |
1578 | extra_options="${extra_options} linux-android.opt" | |
63708bf5 UB |
1579 | ;; |
1580 | x86_64-*-kfreebsd*-gnu) | |
1581 | tm_file="${tm_file} kfreebsd-gnu.h i386/kfreebsd-gnu64.h" | |
1582 | ;; | |
44379973 | 1583 | esac |
5f73c6cc | 1584 | tmake_file="${tmake_file} i386/t-linux64" |
f0ea7581 L |
1585 | x86_multilibs="${with_multilib_list}" |
1586 | if test "$x86_multilibs" = "default"; then | |
9287b168 L |
1587 | case ${with_abi} in |
1588 | x32 | mx32) | |
1589 | x86_multilibs="mx32" | |
1590 | ;; | |
1591 | *) | |
1592 | x86_multilibs="m64,m32" | |
1593 | ;; | |
1594 | esac | |
f0ea7581 L |
1595 | fi |
1596 | x86_multilibs=`echo $x86_multilibs | sed -e 's/,/ /g'` | |
1597 | for x86_multilib in ${x86_multilibs}; do | |
1598 | case ${x86_multilib} in | |
1599 | m32 | m64 | mx32) | |
1600 | TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${x86_multilib}" | |
1601 | ;; | |
1602 | *) | |
1603 | echo "--with-multilib-list=${x86_with_multilib} not supported." | |
1604 | exit 1 | |
1605 | esac | |
1606 | done | |
1607 | TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'` | |
14f73b5a | 1608 | ;; |
61ed06c3 HPN |
1609 | i[34567]86-pc-msdosdjgpp*) |
1610 | xm_file=i386/xm-djgpp.h | |
27f98305 | 1611 | tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h i386/djgpp-stdint.h" |
08b2bad2 | 1612 | native_system_header_dir=/dev/env/DJDIR/include |
6ac49599 | 1613 | extra_options="${extra_options} i386/djgpp.opt" |
61ed06c3 HPN |
1614 | gnu_ld=yes |
1615 | gas=yes | |
3e3877f8 | 1616 | use_gcc_stdint=wrap |
61ed06c3 | 1617 | ;; |
61ed06c3 | 1618 | i[34567]86-*-lynxos*) |
4f587cb0 AN |
1619 | xm_defines=POSIX |
1620 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/lynx.h lynx.h" | |
5f73c6cc | 1621 | tmake_file="${tmake_file} t-lynx" |
6ac49599 | 1622 | extra_options="${extra_options} lynx.opt" |
4f587cb0 AN |
1623 | thread_file=lynx |
1624 | gnu_ld=yes | |
1625 | gas=yes | |
61ed06c3 | 1626 | ;; |
f2feed2c | 1627 | i[34567]86-*-nto-qnx*) |
7f260570 | 1628 | tm_file="${tm_file} i386/att.h dbxelf.h tm-dwarf2.h elfos.h i386/unix.h i386/nto.h" |
fc523387 | 1629 | extra_options="${extra_options} i386/nto.opt" |
f2feed2c GP |
1630 | gnu_ld=yes |
1631 | gas=yes | |
1632 | ;; | |
c7bdf0a6 | 1633 | i[34567]86-*-rtems*) |
207bf79d | 1634 | 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" |
aefe4056 | 1635 | tmake_file="${tmake_file} i386/t-rtems" |
61ed06c3 | 1636 | ;; |
fbdd5d87 | 1637 | i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
9d151aff RO |
1638 | # Set default arch_32 to pentium4, tune_32 to generic like the other |
1639 | # i386 targets, although config.guess defaults to i386-pc-solaris2*. | |
d9f069ab | 1640 | with_arch_32=${with_arch_32:-pentium4} |
9af27220 | 1641 | with_tune_32=${with_tune_32:-generic} |
2cf03b11 | 1642 | tm_file="${tm_file} i386/unix.h i386/att.h ${sol2_tm_file_head} i386/x86-64.h ${sol2_tm_file_tail}" |
d9f069ab | 1643 | tm_defines="${tm_defines} TARGET_BI_ARCH=1" |
2cf03b11 | 1644 | tmake_file="$tmake_file i386/t-sol2" |
d9f069ab RO |
1645 | need_64bit_isa=yes |
1646 | if test x$with_cpu = x; then | |
1647 | if test x$with_cpu_64 = x; then | |
1648 | with_cpu_64=generic | |
646bdeab | 1649 | fi |
d9f069ab RO |
1650 | else |
1651 | case " $x86_cpus $x86_archs $x86_64_archs " in | |
1652 | *" $with_cpu "*) | |
1653 | ;; | |
1654 | *) | |
1655 | echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 | |
1656 | echo "$x86_cpus $x86_archs $x86_64_archs" 1>&2 | |
1657 | exit 1 | |
1658 | ;; | |
1659 | esac | |
1660 | fi | |
61ed06c3 | 1661 | ;; |
50567938 JL |
1662 | i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae|i[4567]86-wrs-vxworks7|x86_64-wrs-vxworks7) |
1663 | tm_file="${tm_file} i386/unix.h i386/att.h elfos.h" | |
1664 | case ${target} in | |
1665 | x86_64-*) | |
1666 | need_64bit_isa=yes | |
1667 | tm_file="${tm_file} i386/x86-64.h" | |
1668 | ;; | |
1669 | esac | |
1670 | tm_file="${tm_file} vx-common.h" | |
d442d7d9 PE |
1671 | case ${target} in |
1672 | *-vxworksae*) | |
4ce351de | 1673 | tm_file="${tm_file} vxworksae.h i386/vxworks.h i386/vxworksae.h" |
d442d7d9 PE |
1674 | tmake_file="${tmake_file} i386/t-vxworks i386/t-vxworksae" |
1675 | ;; | |
1676 | *) | |
4ce351de | 1677 | tm_file="${tm_file} vxworks.h i386/vxworks.h" |
d442d7d9 PE |
1678 | tmake_file="${tmake_file} i386/t-vxworks" |
1679 | ;; | |
1680 | esac | |
55047c9d | 1681 | ;; |
ebb9f8b0 | 1682 | i[34567]86-*-cygwin*) |
bb2aaded | 1683 | 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" |
4dc0535b | 1684 | xm_file=i386/xm-cygwin.h |
f9989b51 | 1685 | tmake_file="${tmake_file} i386/t-cygming t-slibgcc" |
90aa6719 | 1686 | target_gtfiles="\$(srcdir)/config/i386/winnt.c" |
301f4402 | 1687 | extra_options="${extra_options} i386/cygming.opt i386/cygwin.opt" |
43d9ad1d | 1688 | extra_objs="winnt.o winnt-stubs.o" |
3edeb30d DK |
1689 | c_target_objs="${c_target_objs} msformat-c.o" |
1690 | cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" | |
61ed06c3 | 1691 | if test x$enable_threads = xyes; then |
70e5e841 | 1692 | thread_file='posix' |
61ed06c3 | 1693 | fi |
301f4402 | 1694 | default_use_cxa_atexit=yes |
bb2aaded | 1695 | use_gcc_stdint=wrap |
61ed06c3 | 1696 | ;; |
b802ae5c KT |
1697 | x86_64-*-cygwin*) |
1698 | need_64bit_isa=yes | |
1699 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h i386/cygwin-w64.h i386/cygwin-stdint.h" | |
1700 | xm_file=i386/xm-cygwin.h | |
1701 | tmake_file="${tmake_file} i386/t-cygming t-slibgcc i386/t-cygwin-w64" | |
1702 | target_gtfiles="\$(srcdir)/config/i386/winnt.c" | |
301f4402 | 1703 | extra_options="${extra_options} i386/cygming.opt i386/cygwin.opt" |
b802ae5c KT |
1704 | extra_objs="winnt.o winnt-stubs.o" |
1705 | c_target_objs="${c_target_objs} msformat-c.o" | |
1706 | cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" | |
1707 | if test x$enable_threads = xyes; then | |
1708 | thread_file='posix' | |
1709 | fi | |
301f4402 | 1710 | default_use_cxa_atexit=yes |
b802ae5c KT |
1711 | use_gcc_stdint=wrap |
1712 | tm_defines="${tm_defines} TARGET_CYGWIN64=1" | |
1713 | ;; | |
e8930cc1 | 1714 | i[34567]86-*-mingw* | x86_64-*-mingw*) |
c04bdac0 | 1715 | tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h" |
4dc0535b | 1716 | xm_file=i386/xm-mingw32.h |
88b0e79e JC |
1717 | c_target_objs="${c_target_objs} winnt-c.o" |
1718 | cxx_target_objs="${cxx_target_objs} winnt-c.o" | |
1719 | target_has_targetcm="yes" | |
933608b7 KT |
1720 | case ${target} in |
1721 | x86_64-*-* | *-w64-*) | |
c6b9174f | 1722 | need_64bit_isa=yes |
933608b7 KT |
1723 | ;; |
1724 | *) | |
1725 | ;; | |
1726 | esac | |
c04bdac0 KT |
1727 | if test x$enable_threads = xposix ; then |
1728 | tm_file="${tm_file} i386/mingw-pthread.h" | |
1729 | fi | |
1730 | tm_file="${tm_file} i386/mingw32.h" | |
35091630 KT |
1731 | # This makes the logic if mingw's or the w64 feature set has to be used |
1732 | case ${target} in | |
1733 | *-w64-*) | |
9b91e436 KT |
1734 | user_headers_inc_next_post="${user_headers_inc_next_post} float.h" |
1735 | user_headers_inc_next_pre="${user_headers_inc_next_pre} stddef.h stdarg.h" | |
35091630 | 1736 | tm_file="${tm_file} i386/mingw-w64.h" |
933608b7 KT |
1737 | if test x$enable_targets = xall; then |
1738 | tm_defines="${tm_defines} TARGET_BI_ARCH=1" | |
646bdeab | 1739 | if test x$with_cpu = x; then |
933608b7 KT |
1740 | if test x$with_cpu_64 = x; then |
1741 | with_cpu_64=generic | |
1742 | fi | |
646bdeab L |
1743 | else |
1744 | case " $x86_cpus $x86_archs $x86_64_archs " in | |
1745 | *" $with_cpu "*) | |
1746 | ;; | |
1747 | *) | |
1748 | echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2 | |
1749 | echo "$x86_cpus $x86_archs $x86_64_archs" 1>&2 | |
1750 | exit 1 | |
1751 | ;; | |
1752 | esac | |
1753 | fi | |
933608b7 | 1754 | fi |
35091630 KT |
1755 | ;; |
1756 | *) | |
35091630 KT |
1757 | ;; |
1758 | esac | |
1759 | tm_file="${tm_file} i386/mingw-stdint.h" | |
88b0e79e | 1760 | tmake_file="${tmake_file} t-winnt i386/t-cygming t-slibgcc" |
8370a62a | 1761 | case ${target} in |
917ed773 | 1762 | x86_64-w64-*) |
8370a62a KT |
1763 | tmake_file="${tmake_file} i386/t-mingw-w64" |
1764 | ;; | |
917ed773 KT |
1765 | i[34567]86-w64-*) |
1766 | tmake_file="${tmake_file} i386/t-mingw-w32" | |
1767 | ;; | |
8370a62a | 1768 | esac |
08b2bad2 | 1769 | native_system_header_dir=/mingw/include |
90aa6719 | 1770 | target_gtfiles="\$(srcdir)/config/i386/winnt.c" |
94564826 | 1771 | extra_options="${extra_options} i386/cygming.opt i386/mingw.opt" |
35091630 KT |
1772 | case ${target} in |
1773 | *-w64-*) | |
1774 | extra_options="${extra_options} i386/mingw-w64.opt" | |
1775 | ;; | |
1776 | *) | |
1777 | ;; | |
1778 | esac | |
43d9ad1d | 1779 | extra_objs="winnt.o winnt-stubs.o" |
ab442df7 MM |
1780 | c_target_objs="${c_target_objs} msformat-c.o" |
1781 | cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" | |
b993039f EB |
1782 | gas=yes |
1783 | gnu_ld=yes | |
97388150 | 1784 | default_use_cxa_atexit=yes |
7d253f6e | 1785 | use_gcc_stdint=wrap |
50c0d3fd | 1786 | case ${enable_threads} in |
f9989b51 RO |
1787 | "" | yes | win32) |
1788 | thread_file='win32' | |
c04bdac0 KT |
1789 | ;; |
1790 | posix) | |
1791 | thread_file='posix' | |
c04bdac0 | 1792 | ;; |
50c0d3fd | 1793 | esac |
e8930cc1 KT |
1794 | case ${target} in |
1795 | *mingw32crt*) | |
1796 | tm_file="${tm_file} i386/crtdll.h" | |
1797 | ;; | |
1798 | *mingw32msv* | *mingw*) | |
09eaf5a5 | 1799 | ;; |
61ed06c3 HPN |
1800 | esac |
1801 | ;; | |
491b3c5f JC |
1802 | x86_64-*-fuchsia*) |
1803 | tmake_file="${tmake_file} i386/t-x86_64-elf" | |
1804 | tm_file="${tm_file} i386/unix.h i386/att.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h fuchsia.h" | |
1805 | ;; | |
61ed06c3 | 1806 | ia64*-*-elf*) |
207bf79d | 1807 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h ia64/sysv4.h ia64/elf.h" |
61ed06c3 HPN |
1808 | tmake_file="ia64/t-ia64" |
1809 | target_cpu_default="0" | |
1810 | if test x$gas = xyes | |
1811 | then | |
1812 | target_cpu_default="${target_cpu_default}|MASK_GNU_AS" | |
1813 | fi | |
1814 | if test x$gnu_ld = xyes | |
1815 | then | |
1816 | target_cpu_default="${target_cpu_default}|MASK_GNU_LD" | |
1817 | fi | |
61ed06c3 | 1818 | ;; |
243a7070 | 1819 | ia64*-*-freebsd*) |
fee42cc1 | 1820 | tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h" |
243a7070 DB |
1821 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" |
1822 | tmake_file="${tmake_file} ia64/t-ia64" | |
243a7070 | 1823 | ;; |
61ed06c3 | 1824 | ia64*-*-linux*) |
8e38461c | 1825 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ia64/sysv4.h ia64/linux.h" |
a9011c94 | 1826 | tmake_file="${tmake_file} ia64/t-ia64 ia64/t-linux t-libunwind" |
61ed06c3 | 1827 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" |
61ed06c3 | 1828 | ;; |
7e5b9908 | 1829 | ia64*-*-hpux*) |
2337b6b7 | 1830 | tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/hpux.h" |
b040f2be | 1831 | tmake_file="ia64/t-ia64 ia64/t-hpux t-slibgcc" |
7e5b9908 | 1832 | target_cpu_default="MASK_GNU_AS" |
7e2055ec | 1833 | case x$enable_threads in |
79e8b6c0 | 1834 | x | xyes | xposix ) |
7e2055ec ZW |
1835 | thread_file=posix |
1836 | ;; | |
1837 | esac | |
cad61762 | 1838 | use_collect2=no |
34c1864f SE |
1839 | c_target_objs="ia64-c.o" |
1840 | cxx_target_objs="ia64-c.o" | |
e543b94c | 1841 | extra_options="${extra_options} ia64/ilp32.opt hpux11.opt" |
9a17c91d SE |
1842 | use_gcc_stdint=wrap |
1843 | tm_file="${tm_file} hpux-stdint.h" | |
fc4538e4 SE |
1844 | case ${target} in |
1845 | *-*-hpux11.3*) | |
1846 | tm_file="${tm_file} ia64/hpux-unix2003.h" | |
1847 | ;; | |
1848 | esac | |
7e5b9908 | 1849 | ;; |
a9a25daa | 1850 | ia64-hp-*vms*) |
d8aba32a TG |
1851 | tm_file="${tm_file} elfos.h ia64/sysv4.h vms/vms.h ia64/vms.h" |
1852 | tmake_file="${tmake_file} ia64/t-ia64" | |
a9a25daa DR |
1853 | target_cpu_default="0" |
1854 | if test x$gas = xyes | |
1855 | then | |
1856 | target_cpu_default="${target_cpu_default}|MASK_GNU_AS" | |
1857 | fi | |
18a24fed | 1858 | extra_options="${extra_options} ia64/vms.opt" |
a9a25daa | 1859 | ;; |
6b3d1e47 | 1860 | iq2000*-*-elf*) |
248a9e94 | 1861 | tm_file="elfos.h newlib-stdint.h iq2000/iq2000.h" |
6b3d1e47 | 1862 | out_file=iq2000/iq2000.c |
6b3d1e47 SC |
1863 | md_file=iq2000/iq2000.md |
1864 | ;; | |
aa4945c1 | 1865 | lm32-*-elf*) |
7c9bb341 | 1866 | tm_file="dbxelf.h elfos.h ${tm_file} newlib-stdint.h" |
aca0b0b3 | 1867 | tmake_file="${tmake_file} lm32/t-lm32" |
aa4945c1 | 1868 | ;; |
d7856dc7 | 1869 | lm32-*-rtems*) |
1ddc8057 | 1870 | tm_file="dbxelf.h elfos.h ${tm_file} lm32/rtems.h rtems.h newlib-stdint.h" |
aca0b0b3 | 1871 | tmake_file="${tmake_file} lm32/t-lm32" |
4ce7e3a9 | 1872 | tmake_file="${tmake_file} lm32/t-rtems" |
d7856dc7 | 1873 | ;; |
aa4945c1 | 1874 | lm32-*-uclinux*) |
8e38461c | 1875 | tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h lm32/uclinux-elf.h" |
aca0b0b3 | 1876 | tmake_file="${tmake_file} lm32/t-lm32" |
aa4945c1 | 1877 | ;; |
61ed06c3 | 1878 | m32r-*-elf*) |
cfe5b8ea | 1879 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
37ec8b7a | 1880 | ;; |
ad126521 | 1881 | m32rle-*-elf*) |
cfe5b8ea | 1882 | tm_file="dbxelf.h elfos.h newlib-stdint.h m32r/little.h ${tm_file}" |
ad126521 KI |
1883 | ;; |
1884 | m32r-*-linux*) | |
8e38461c | 1885 | tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} m32r/linux.h" |
133b1a8e | 1886 | tmake_file="${tmake_file} m32r/t-linux t-slibgcc" |
ad126521 | 1887 | gnu_ld=yes |
ad126521 KI |
1888 | if test x$enable_threads = xyes; then |
1889 | thread_file='posix' | |
1890 | fi | |
1891 | ;; | |
1892 | m32rle-*-linux*) | |
8e38461c | 1893 | tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h m32r/little.h ${tm_file} m32r/linux.h" |
133b1a8e | 1894 | tmake_file="${tmake_file} m32r/t-linux t-slibgcc" |
ad126521 | 1895 | gnu_ld=yes |
ad126521 KI |
1896 | if test x$enable_threads = xyes; then |
1897 | thread_file='posix' | |
1898 | fi | |
1899 | ;; | |
cd985f66 | 1900 | m68k-*-elf* | fido-*-elf*) |
7d33c31d KH |
1901 | case ${target} in |
1902 | fido-*-elf*) | |
1903 | # Check that $with_cpu makes sense. | |
1904 | case $with_cpu in | |
1905 | "" | "fidoa") | |
1906 | ;; | |
1907 | *) | |
1908 | echo "Cannot accept --with-cpu=$with_cpu" | |
1909 | exit 1 | |
1910 | ;; | |
1911 | esac | |
1912 | with_cpu=fidoa | |
1913 | ;; | |
1914 | *) | |
1915 | default_m68k_cpu=68020 | |
1916 | default_cf_cpu=5206 | |
1917 | ;; | |
1918 | esac | |
207bf79d | 1919 | 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" |
cf909b0d | 1920 | tm_defines="${tm_defines} MOTOROLA=1" |
7d33c31d KH |
1921 | tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-m68kelf" |
1922 | # Add multilibs for targets other than fido. | |
1923 | case ${target} in | |
1924 | fido-*-elf*) | |
1925 | ;; | |
1926 | *) | |
1927 | tmake_file="$tmake_file m68k/t-mlibs" | |
1928 | ;; | |
1929 | esac | |
61ed06c3 | 1930 | ;; |
cd985f66 | 1931 | m68k*-*-netbsdelf*) |
59fbf3cb | 1932 | default_m68k_cpu=68020 |
10e96df4 | 1933 | default_cf_cpu=5475 |
2fd95d71 | 1934 | tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h" |
a4714d14 | 1935 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
cf909b0d | 1936 | tm_defines="${tm_defines} MOTOROLA=1" |
2fd95d71 | 1937 | ;; |
7ea98c5a | 1938 | m68k*-*-openbsd*) |
59fbf3cb | 1939 | default_m68k_cpu=68020 |
10e96df4 | 1940 | default_cf_cpu=5475 |
7ea98c5a | 1941 | # needed to unconfuse gdb |
59fbf3cb | 1942 | tm_defines="${tm_defines} OBSD_OLD_GAS" |
aa58f943 | 1943 | tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h m68k/openbsd.h" |
5369e2d4 | 1944 | extra_options="${extra_options} openbsd.opt" |
5f73c6cc | 1945 | tmake_file="t-openbsd m68k/t-openbsd" |
7ea98c5a GN |
1946 | # we need collect2 until our bug is fixed... |
1947 | use_collect2=yes | |
1948 | ;; | |
4529dbf1 RS |
1949 | m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux |
1950 | # with uClibc, using the new GNU/Linux-style | |
1951 | # ABI. | |
59fbf3cb | 1952 | default_m68k_cpu=68020 |
10e96df4 | 1953 | default_cf_cpu=5206 |
8e38461c | 1954 | 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" |
4254bbfe | 1955 | extra_options="${extra_options} m68k/uclinux.opt" |
b5a54c03 | 1956 | tm_defines="${tm_defines} MOTOROLA=1" |
10e96df4 | 1957 | tmake_file="m68k/t-floatlib m68k/t-uclinux m68k/t-mlibs" |
ba591f5a | 1958 | ;; |
5f73c6cc | 1959 | m68k-*-linux*) # Motorola m68k's running GNU/Linux |
61ed06c3 HPN |
1960 | # with ELF format using glibc 2 |
1961 | # aka the GNU/Linux C library 6. | |
59fbf3cb | 1962 | default_m68k_cpu=68020 |
10e96df4 | 1963 | default_cf_cpu=5475 |
368b55f6 | 1964 | with_arch=${with_arch:-m68k} |
8e38461c | 1965 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h m68k/linux.h ./sysroot-suffix.h" |
4af06170 | 1966 | extra_options="${extra_options} m68k/ieee.opt" |
cf909b0d | 1967 | tm_defines="${tm_defines} MOTOROLA=1" |
368b55f6 | 1968 | tmake_file="${tmake_file} m68k/t-floatlib m68k/t-linux m68k/t-mlibs" |
61ed06c3 | 1969 | ;; |
c7bdf0a6 | 1970 | m68k-*-rtems*) |
59fbf3cb | 1971 | default_m68k_cpu=68020 |
10e96df4 | 1972 | default_cf_cpu=5206 |
aefe4056 | 1973 | tmake_file="${tmake_file} m68k/t-floatlib m68k/t-m68kbare m68k/t-crtstuff m68k/t-rtems m68k/t-mlibs" |
207bf79d | 1974 | 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" |
cf909b0d | 1975 | tm_defines="${tm_defines} MOTOROLA=1" |
61ed06c3 | 1976 | ;; |
61ed06c3 | 1977 | mcore-*-elf) |
ed38428f | 1978 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file} mcore/mcore-elf.h" |
61ed06c3 | 1979 | tmake_file=mcore/t-mcore |
a929bc28 | 1980 | inhibit_libc=true |
61ed06c3 | 1981 | ;; |
80920132 | 1982 | microblaze*-linux*) |
76ef61fb EI |
1983 | case $target in |
1984 | microblazeel-*) | |
1985 | tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=0" | |
1986 | ;; | |
1987 | microblaze-*) | |
1988 | tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=4321" | |
1989 | ;; | |
1990 | esac | |
8e38461c | 1991 | tm_file="${tm_file} dbxelf.h gnu-user.h linux.h microblaze/linux.h" |
fbf0cf90 | 1992 | tm_file="${tm_file} glibc-stdint.h" |
80920132 ME |
1993 | c_target_objs="${c_target_objs} microblaze-c.o" |
1994 | cxx_target_objs="${cxx_target_objs} microblaze-c.o" | |
fbf0cf90 | 1995 | tmake_file="${tmake_file} microblaze/t-microblaze" |
76ef61fb | 1996 | tmake_file="${tmake_file} microblaze/t-microblaze-linux" |
80920132 | 1997 | ;; |
479f4358 | 1998 | microblaze*-*-rtems*) |
c6adc8b3 RC |
1999 | case $target in |
2000 | microblazeel-*) | |
2001 | tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=0" | |
2002 | ;; | |
2003 | microblaze-*) | |
2004 | tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=4321" | |
2005 | ;; | |
2006 | esac | |
479f4358 RC |
2007 | tm_file="${tm_file} dbxelf.h" |
2008 | tm_file="${tm_file} microblaze/rtems.h rtems.h newlib-stdint.h" | |
2009 | c_target_objs="${c_target_objs} microblaze-c.o" | |
2010 | cxx_target_objs="${cxx_target_objs} microblaze-c.o" | |
2011 | tmake_file="${tmake_file} microblaze/t-microblaze" | |
aefe4056 | 2012 | tmake_file="${tmake_file} microblaze/t-rtems" |
479f4358 | 2013 | ;; |
6f14eef2 | 2014 | microblaze*-*-elf) |
76ef61fb EI |
2015 | case $target in |
2016 | microblazeel-*) | |
2017 | tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=0" | |
2018 | ;; | |
2019 | microblaze-*) | |
2020 | tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=4321" | |
2021 | ;; | |
2022 | esac | |
6f14eef2 | 2023 | tm_file="${tm_file} dbxelf.h newlib-stdint.h" |
80920132 ME |
2024 | c_target_objs="${c_target_objs} microblaze-c.o" |
2025 | cxx_target_objs="${cxx_target_objs} microblaze-c.o" | |
6f14eef2 | 2026 | tmake_file="${tmake_file} microblaze/t-microblaze" |
80920132 | 2027 | ;; |
09cae750 PD |
2028 | riscv*-*-linux*) |
2029 | tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} riscv/linux.h" | |
2030 | case "x${enable_multilib}" in | |
2031 | xno) ;; | |
2032 | xyes) tmake_file="${tmake_file} riscv/t-linux-multilib" ;; | |
2033 | *) echo "Unknown value for enable_multilib"; exit 1 | |
2034 | esac | |
2035 | tmake_file="${tmake_file} riscv/t-riscv riscv/t-linux" | |
2036 | gnu_ld=yes | |
2037 | gas=yes | |
2038 | # Force .init_array support. The configure script cannot always | |
2039 | # automatically detect that GAS supports it, yet we require it. | |
2040 | gcc_cv_initfini_array=yes | |
2041 | ;; | |
1f9e09b5 | 2042 | riscv*-*-elf* | riscv*-*-rtems*) |
09cae750 PD |
2043 | tm_file="elfos.h newlib-stdint.h ${tm_file} riscv/elf.h" |
2044 | case "x${enable_multilib}" in | |
2045 | xno) ;; | |
2046 | xyes) tmake_file="${tmake_file} riscv/t-elf-multilib" ;; | |
2047 | *) echo "Unknown value for enable_multilib"; exit 1 | |
2048 | esac | |
2049 | tmake_file="${tmake_file} riscv/t-riscv" | |
2050 | gnu_ld=yes | |
2051 | gas=yes | |
2052 | # Force .init_array support. The configure script cannot always | |
2053 | # automatically detect that GAS supports it, yet we require it. | |
2054 | gcc_cv_initfini_array=yes | |
1f9e09b5 SH |
2055 | case ${target} in |
2056 | riscv*-*-rtems*) | |
2057 | tm_file="${tm_file} rtems.h riscv/rtems.h" | |
2058 | ;; | |
2059 | esac | |
09cae750 | 2060 | ;; |
f982f805 | 2061 | mips*-*-netbsd*) # NetBSD/mips, either endian. |
5811cb27 | 2062 | target_cpu_default="MASK_ABICALLS" |
ca11c37c | 2063 | tm_file="elfos.h ${tm_file} mips/elf.h netbsd.h netbsd-elf.h mips/netbsd.h" |
a4714d14 | 2064 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
61ed06c3 | 2065 | ;; |
58c9330b MF |
2066 | mips*-img-linux*) |
2067 | tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h mips/linux-common.h mips/mti-linux.h" | |
2068 | extra_options="${extra_options} linux-android.opt" | |
2069 | tmake_file="${tmake_file} mips/t-img-linux" | |
2070 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=37 MIPS_ABI_DEFAULT=ABI_32" | |
38e9658c MF |
2071 | with_arch_32="mips32r6" |
2072 | with_arch_64="mips64r6" | |
58c9330b MF |
2073 | gnu_ld=yes |
2074 | gas=yes | |
2075 | ;; | |
965c1798 | 2076 | mips*-mti-linux*) |
9a7451a5 | 2077 | tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h mips/linux-common.h mips/mti-linux.h" |
ed9cbf7c | 2078 | extra_options="${extra_options} linux-android.opt" |
965c1798 SE |
2079 | tmake_file="${tmake_file} mips/t-mti-linux" |
2080 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32" | |
38e9658c MF |
2081 | with_arch_32="mips32r2" |
2082 | with_arch_64="mips64r2" | |
965c1798 SE |
2083 | gnu_ld=yes |
2084 | gas=yes | |
965c1798 | 2085 | ;; |
77893d0b | 2086 | mips*-*-linux*) # Linux MIPS, either endian. |
9a7451a5 | 2087 | tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h mips/linux-common.h" |
ed9cbf7c | 2088 | extra_options="${extra_options} linux-android.opt" |
900e3ae5 | 2089 | case ${target} in |
82f84ecb MF |
2090 | mipsisa32r6*) |
2091 | default_mips_arch=mips32r6 | |
2092 | ;; | |
77893d0b | 2093 | mipsisa32r2*) |
8cfebf86 | 2094 | default_mips_arch=mips32r2 |
77893d0b SE |
2095 | ;; |
2096 | mipsisa32*) | |
8cfebf86 | 2097 | default_mips_arch=mips32 |
77893d0b | 2098 | ;; |
900e3ae5 | 2099 | mips64el-st-linux-gnu) |
8cfebf86 | 2100 | default_mips_abi=n32 |
900e3ae5 DJ |
2101 | tm_file="${tm_file} mips/st.h" |
2102 | tmake_file="${tmake_file} mips/t-st" | |
77893d0b | 2103 | enable_mips_multilibs="yes" |
900e3ae5 | 2104 | ;; |
d97e6aca | 2105 | mips64octeon*-*-linux*) |
8cfebf86 | 2106 | default_mips_abi=n32 |
d97e6aca AN |
2107 | tm_defines="${tm_defines} MIPS_CPU_STRING_DEFAULT=\\\"octeon\\\"" |
2108 | target_cpu_default=MASK_SOFT_FLOAT_ABI | |
77893d0b | 2109 | enable_mips_multilibs="yes" |
d97e6aca | 2110 | ;; |
82f84ecb MF |
2111 | mipsisa64r6*-*-linux*) |
2112 | default_mips_abi=n32 | |
2113 | default_mips_arch=mips64r6 | |
2114 | enable_mips_multilibs="yes" | |
2115 | ;; | |
f2d6ca50 | 2116 | mipsisa64r2*-*-linux*) |
8cfebf86 SE |
2117 | default_mips_abi=n32 |
2118 | default_mips_arch=mips64r2 | |
77893d0b SE |
2119 | enable_mips_multilibs="yes" |
2120 | ;; | |
2121 | mips64*-*-linux* | mipsisa64*-*-linux*) | |
8cfebf86 | 2122 | default_mips_abi=n32 |
77893d0b | 2123 | enable_mips_multilibs="yes" |
f2d6ca50 | 2124 | ;; |
900e3ae5 | 2125 | esac |
bd5ab709 | 2126 | if test x$enable_targets = xall; then |
77893d0b SE |
2127 | enable_mips_multilibs="yes" |
2128 | fi | |
2129 | if test x$enable_mips_multilibs = xyes; then | |
bd5ab709 | 2130 | tmake_file="${tmake_file} mips/t-linux64" |
bd5ab709 | 2131 | fi |
61ed06c3 | 2132 | ;; |
992bcfac | 2133 | mips*-mti-elf*) |
a290fcda | 2134 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/n32-elf.h mips/sde.h mips/mti-elf.h" |
992bcfac SE |
2135 | tmake_file="mips/t-mti-elf" |
2136 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32" | |
38e9658c MF |
2137 | with_arch_32="mips32r2" |
2138 | with_arch_64="mips64r2" | |
992bcfac | 2139 | ;; |
58c9330b MF |
2140 | mips*-img-elf*) |
2141 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/n32-elf.h mips/sde.h mips/mti-elf.h" | |
2142 | tmake_file="mips/t-img-elf" | |
2143 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=37 MIPS_ABI_DEFAULT=ABI_32" | |
38e9658c MF |
2144 | with_arch_32="mips32r6" |
2145 | with_arch_64="mips64r6" | |
58c9330b | 2146 | ;; |
0ea339ea | 2147 | mips*-sde-elf*) |
a290fcda | 2148 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/n32-elf.h mips/sde.h" |
45b86625 | 2149 | tmake_file="mips/t-sde" |
d1583032 | 2150 | extra_options="${extra_options} mips/sde.opt" |
d9dced13 RS |
2151 | case "${with_newlib}" in |
2152 | yes) | |
2153 | # newlib / libgloss. | |
2154 | ;; | |
2155 | *) | |
2156 | # MIPS toolkit libraries. | |
2157 | tm_file="$tm_file mips/sdemtk.h" | |
2158 | tmake_file="$tmake_file mips/t-sdemtk" | |
d9dced13 RS |
2159 | case ${enable_threads} in |
2160 | "" | yes | mipssde) | |
2161 | thread_file='mipssde' | |
2162 | ;; | |
2163 | esac | |
2164 | ;; | |
2165 | esac | |
0ea339ea | 2166 | case ${target} in |
82f84ecb MF |
2167 | mipsisa32r6*) |
2168 | tm_defines="MIPS_ISA_DEFAULT=37 MIPS_ABI_DEFAULT=ABI_32" | |
2169 | ;; | |
0ea339ea NS |
2170 | mipsisa32r2*) |
2171 | tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32" | |
2172 | ;; | |
2173 | mipsisa32*) | |
2174 | tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_32" | |
2175 | ;; | |
82f84ecb MF |
2176 | mipsisa64r6*) |
2177 | tm_defines="MIPS_ISA_DEFAULT=69 MIPS_ABI_DEFAULT=ABI_N32" | |
2178 | ;; | |
0a4a51c7 AN |
2179 | mipsisa64r2*) |
2180 | tm_defines="MIPS_ISA_DEFAULT=65 MIPS_ABI_DEFAULT=ABI_N32" | |
2181 | ;; | |
0ea339ea NS |
2182 | mipsisa64*) |
2183 | tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_N32" | |
2184 | ;; | |
2185 | esac | |
2186 | ;; | |
e2c14f5d RS |
2187 | mipsisa32-*-elf* | mipsisa32el-*-elf* | \ |
2188 | mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \ | |
82f84ecb | 2189 | mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \ |
0a4a51c7 | 2190 | mipsisa64-*-elf* | mipsisa64el-*-elf* | \ |
82f84ecb MF |
2191 | mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \ |
2192 | mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*) | |
207bf79d | 2193 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" |
45b86625 | 2194 | tmake_file="mips/t-isa3264" |
e2c14f5d | 2195 | case ${target} in |
82f84ecb MF |
2196 | mipsisa32r6*) |
2197 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=37" | |
2198 | ;; | |
e2c14f5d RS |
2199 | mipsisa32r2*) |
2200 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33" | |
2201 | ;; | |
2202 | mipsisa32*) | |
2203 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32" | |
2204 | ;; | |
82f84ecb MF |
2205 | mipsisa64r6*) |
2206 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=69" | |
2207 | ;; | |
0a4a51c7 AN |
2208 | mipsisa64r2*) |
2209 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65" | |
2210 | ;; | |
e2c14f5d RS |
2211 | mipsisa64*) |
2212 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64" | |
2213 | ;; | |
2214 | esac | |
2215 | case ${target} in | |
2216 | mipsisa32*-*-elfoabi*) | |
2217 | tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_32" | |
2218 | tm_file="${tm_file} mips/elfoabi.h" | |
2219 | ;; | |
2220 | mipsisa64*-*-elfoabi*) | |
2221 | tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_O64" | |
2222 | tm_file="${tm_file} mips/elfoabi.h" | |
2223 | ;; | |
2224 | *-*-elf*) | |
2225 | tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI" | |
2226 | ;; | |
2227 | esac | |
5c44e275 | 2228 | ;; |
5ce6f47b | 2229 | mipsisa64sr71k-*-elf*) |
207bf79d | 2230 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" |
5ce6f47b | 2231 | tmake_file=mips/t-sr71k |
620b87b3 | 2232 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI" |
5ce6f47b | 2233 | ;; |
3d41dbb0 | 2234 | mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*) |
207bf79d | 2235 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" |
45b86625 | 2236 | tmake_file="mips/t-elf mips/t-sb1" |
620b87b3 | 2237 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64" |
3d41dbb0 | 2238 | ;; |
107eea2c | 2239 | mips-*-elf* | mipsel-*-elf* | mipsr5900-*-elf* | mipsr5900el-*-elf*) |
207bf79d | 2240 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" |
45b86625 | 2241 | tmake_file="mips/t-elf" |
61ed06c3 | 2242 | ;; |
107eea2c | 2243 | mips64r5900-*-elf* | mips64r5900el-*-elf*) |
a290fcda | 2244 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/n32-elf.h" |
107eea2c JU |
2245 | tmake_file="mips/t-elf" |
2246 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32" | |
2247 | ;; | |
74826b0f | 2248 | mips64-*-elf* | mips64el-*-elf*) |
207bf79d | 2249 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" |
45b86625 | 2250 | tmake_file="mips/t-elf" |
620b87b3 | 2251 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64" |
61ed06c3 | 2252 | ;; |
5ce6f47b | 2253 | mips64vr-*-elf* | mips64vrel-*-elf*) |
207bf79d | 2254 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/vr.h mips/elf.h" |
5ce6f47b | 2255 | tmake_file=mips/t-vr |
c4023c19 | 2256 | tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI" |
5ce6f47b | 2257 | ;; |
74826b0f | 2258 | mips64orion-*-elf* | mips64orionel-*-elf*) |
207bf79d | 2259 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elforion.h mips/elf.h" |
45b86625 | 2260 | tmake_file="mips/t-elf" |
620b87b3 | 2261 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64" |
61ed06c3 | 2262 | ;; |
bc98ef7f | 2263 | mips*-*-rtems*) |
207bf79d | 2264 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/rtems.h rtems.h" |
aefe4056 | 2265 | tmake_file="${tmake_file} mips/t-elf mips/t-rtems" |
61ed06c3 | 2266 | ;; |
55047c9d | 2267 | mips-wrs-vxworks) |
efa58006 | 2268 | tm_file="elfos.h ${tm_file} mips/elf.h vx-common.h vxworks.h mips/vxworks.h" |
55047c9d | 2269 | tmake_file="${tmake_file} mips/t-vxworks" |
55047c9d | 2270 | ;; |
74826b0f | 2271 | mipstx39-*-elf* | mipstx39el-*-elf*) |
207bf79d | 2272 | tm_file="elfos.h newlib-stdint.h ${tm_file} mips/r3900.h mips/elf.h" |
45b86625 | 2273 | tmake_file="mips/t-r3900" |
61ed06c3 | 2274 | ;; |
bcf684c7 | 2275 | mmix-knuth-mmixware) |
207bf79d | 2276 | tm_file="${tm_file} newlib-stdint.h" |
207bf79d | 2277 | use_gcc_stdint=wrap |
bcf684c7 | 2278 | ;; |
61ed06c3 | 2279 | mn10300-*-*) |
6b9b8b34 | 2280 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
61ed06c3 HPN |
2281 | if test x$stabs = xyes |
2282 | then | |
2283 | tm_file="${tm_file} dbx.h" | |
2284 | fi | |
2285 | use_collect2=no | |
207bf79d | 2286 | use_gcc_stdint=wrap |
61ed06c3 | 2287 | ;; |
f6a83b4a DD |
2288 | msp430*-*-*) |
2289 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" | |
2290 | c_target_objs="msp430-c.o" | |
2291 | cxx_target_objs="msp430-c.o" | |
f6a83b4a | 2292 | tmake_file="${tmake_file} msp430/t-msp430" |
04a9ae28 | 2293 | extra_gcc_objs="driver-msp430.o" |
f6a83b4a | 2294 | ;; |
9304f876 CJW |
2295 | nds32le-*-*) |
2296 | target_cpu_default="0" | |
2297 | tm_defines="${tm_defines}" | |
2298 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" | |
c0c935b5 | 2299 | tmake_file="nds32/t-nds32 nds32/t-mlibs" |
9304f876 CJW |
2300 | ;; |
2301 | nds32be-*-*) | |
2302 | target_cpu_default="0|MASK_BIG_ENDIAN" | |
2303 | tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" | |
2304 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" | |
c0c935b5 | 2305 | tmake_file="nds32/t-nds32 nds32/t-mlibs" |
9304f876 | 2306 | ;; |
e430824f CLT |
2307 | nios2-*-*) |
2308 | tm_file="elfos.h ${tm_file}" | |
2309 | tmake_file="${tmake_file} nios2/t-nios2" | |
2310 | case ${target} in | |
2311 | nios2-*-linux*) | |
2312 | tm_file="${tm_file} gnu-user.h linux.h glibc-stdint.h nios2/linux.h " | |
2313 | ;; | |
2314 | nios2-*-elf*) | |
2315 | tm_file="${tm_file} newlib-stdint.h nios2/elf.h" | |
2316 | extra_options="${extra_options} nios2/elf.opt" | |
2317 | ;; | |
00020dda SH |
2318 | nios2-*-rtems*) |
2319 | tm_file="${tm_file} newlib-stdint.h nios2/rtems.h rtems.h" | |
2320 | tmake_file="${tmake_file} t-rtems nios2/t-rtems" | |
2321 | ;; | |
e430824f CLT |
2322 | esac |
2323 | ;; | |
738f2522 BS |
2324 | nvptx-*) |
2325 | tm_file="${tm_file} newlib-stdint.h" | |
2326 | tmake_file="nvptx/t-nvptx" | |
1f83528e TS |
2327 | if test x$enable_as_accelerator = xyes; then |
2328 | extra_programs="${extra_programs} mkoffload\$(exeext)" | |
2329 | tm_file="${tm_file} nvptx/offload.h" | |
2330 | fi | |
738f2522 | 2331 | ;; |
61ed06c3 | 2332 | pdp11-*-*) |
207bf79d JM |
2333 | tm_file="${tm_file} newlib-stdint.h" |
2334 | use_gcc_stdint=wrap | |
61ed06c3 | 2335 | ;; |
ca11c37c ZW |
2336 | # port not yet contributed |
2337 | #powerpc-*-openbsd*) | |
569dc494 | 2338 | # tmake_file="${tmake_file} rs6000/t-fprules" |
ca11c37c ZW |
2339 | # extra_headers= |
2340 | # ;; | |
18922061 | 2341 | powerpc-*-darwin*) |
78f5898b | 2342 | extra_options="${extra_options} rs6000/darwin.opt" |
f0b81cbc | 2343 | case ${target} in |
ed5b9f96 | 2344 | *-darwin1[0-9]* | *-darwin[8-9]*) |
f7288899 | 2345 | tmake_file="${tmake_file} rs6000/t-darwin8" |
ed5b9f96 GK |
2346 | tm_file="${tm_file} rs6000/darwin8.h" |
2347 | ;; | |
2348 | *-darwin7*) | |
2349 | tm_file="${tm_file} rs6000/darwin7.h" | |
2350 | ;; | |
2351 | *-darwin[0-6]*) | |
2352 | ;; | |
f0b81cbc | 2353 | esac |
b040f2be | 2354 | tmake_file="${tmake_file} t-slibgcc" |
5fb4cf24 | 2355 | extra_headers=altivec.h |
18922061 | 2356 | ;; |
b8ec3cc8 | 2357 | powerpc64-*-darwin*) |
b8ec3cc8 | 2358 | extra_options="${extra_options} ${cpu_type}/darwin.opt" |
b040f2be | 2359 | tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc" |
9a2d05e0 | 2360 | tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h" |
b8ec3cc8 EC |
2361 | extra_headers=altivec.h |
2362 | ;; | |
a26f86dc AT |
2363 | powerpc*-*-freebsd*) |
2364 | tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h" | |
78f5898b | 2365 | extra_options="${extra_options} rs6000/sysv4.opt" |
a26f86dc | 2366 | tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" |
252a969e | 2367 | case ${target} in |
a26f86dc AT |
2368 | powerpc64*) |
2369 | tm_file="${tm_file} rs6000/default64.h rs6000/freebsd64.h" | |
2370 | tmake_file="${tmake_file} rs6000/t-freebsd64" | |
2371 | extra_options="${extra_options} rs6000/linux64.opt" | |
2372 | ;; | |
2373 | *) | |
2374 | tm_file="${tm_file} rs6000/freebsd.h" | |
2375 | ;; | |
2376 | esac | |
b91da81f | 2377 | ;; |
edf1b3f3 | 2378 | powerpc-*-netbsd*) |
a4967b8d | 2379 | tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h" |
a4714d14 | 2380 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
a4967b8d | 2381 | tmake_file="${tmake_file} rs6000/t-netbsd" |
78f5898b | 2382 | extra_options="${extra_options} rs6000/sysv4.opt" |
edf1b3f3 | 2383 | ;; |
518878e1 | 2384 | powerpc-*-eabispe*) |
83349046 SB |
2385 | tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h ${cpu_type}/sysv4.h ${cpu_type}/eabi.h ${cpu_type}/e500.h ${cpu_type}/eabispe.h" |
2386 | extra_options="${extra_options} ${cpu_type}/sysv4.opt" | |
2387 | tmake_file="${cpu_type}/t-spe ${cpu_type}/t-ppccomm" | |
207bf79d | 2388 | use_gcc_stdint=wrap |
518878e1 | 2389 | ;; |
cf6ede82 | 2390 | powerpc-*-eabisimaltivec*) |
c725f69c | 2391 | tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h rs6000/eabialtivec.h" |
78f5898b | 2392 | extra_options="${extra_options} rs6000/sysv4.opt" |
569dc494 | 2393 | tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm" |
207bf79d | 2394 | use_gcc_stdint=wrap |
cf6ede82 | 2395 | ;; |
61ed06c3 | 2396 | powerpc-*-eabisim*) |
c725f69c | 2397 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h" |
78f5898b | 2398 | extra_options="${extra_options} rs6000/sysv4.opt" |
569dc494 | 2399 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
207bf79d | 2400 | use_gcc_stdint=wrap |
61ed06c3 HPN |
2401 | ;; |
2402 | powerpc-*-elf*) | |
a1cd969e | 2403 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h" |
78f5898b | 2404 | extra_options="${extra_options} rs6000/sysv4.opt" |
569dc494 | 2405 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
61ed06c3 | 2406 | ;; |
10baca6b | 2407 | powerpc-*-eabialtivec*) |
c725f69c | 2408 | tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h" |
78f5898b | 2409 | extra_options="${extra_options} rs6000/sysv4.opt" |
569dc494 | 2410 | tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm" |
207bf79d | 2411 | use_gcc_stdint=wrap |
10baca6b | 2412 | ;; |
696e45ba | 2413 | powerpc-xilinx-eabi*) |
a1cd969e | 2414 | 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" |
a64a8e5a | 2415 | extra_options="${extra_options} rs6000/sysv4.opt rs6000/xilinx.opt" |
569dc494 | 2416 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm rs6000/t-xilinx" |
207bf79d | 2417 | use_gcc_stdint=wrap |
696e45ba | 2418 | ;; |
61ed06c3 | 2419 | powerpc-*-eabi*) |
c725f69c | 2420 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h" |
78f5898b | 2421 | extra_options="${extra_options} rs6000/sysv4.opt" |
569dc494 | 2422 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
207bf79d | 2423 | use_gcc_stdint=wrap |
61ed06c3 | 2424 | ;; |
83349046 SB |
2425 | powerpc-*-rtems*spe*) |
2426 | tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h powerpcspe/sysv4.h powerpcspe/eabi.h powerpcspe/e500.h powerpcspe/rtems.h rtems.h" | |
2427 | extra_options="${extra_options} powerpcspe/sysv4.opt" | |
2428 | tmake_file="${tmake_file} powerpcspe/t-fprules powerpcspe/t-rtems powerpcspe/t-ppccomm" | |
2429 | ;; | |
61ed06c3 | 2430 | powerpc-*-rtems*) |
16bab95a | 2431 | tm_file="rs6000/biarch64.h ${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/rtems.h rtems.h" |
17691698 | 2432 | extra_options="${extra_options} rs6000/sysv4.opt rs6000/linux64.opt" |
aefe4056 | 2433 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-rtems rs6000/t-ppccomm" |
61ed06c3 | 2434 | ;; |
83349046 SB |
2435 | powerpc*-*-linux*spe*) |
2436 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h freebsd-spec.h powerpcspe/sysv4.h" | |
2437 | extra_options="${extra_options} powerpcspe/sysv4.opt" | |
2438 | tmake_file="${tmake_file} powerpcspe/t-fprules powerpcspe/t-ppccomm" | |
2439 | extra_objs="$extra_objs powerpcspe-linux.o" | |
2440 | maybe_biarch= | |
2441 | tm_file="${tm_file} powerpcspe/linux.h glibc-stdint.h" | |
2442 | tmake_file="${tmake_file} powerpcspe/t-ppcos powerpcspe/t-linux" | |
2443 | tm_file="${tm_file} powerpcspe/linuxspe.h powerpcspe/e500.h" | |
83349046 | 2444 | ;; |
b9a7eb5d | 2445 | powerpc*-*-linux*) |
f0c5fd44 | 2446 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h freebsd-spec.h rs6000/sysv4.h" |
78f5898b | 2447 | extra_options="${extra_options} rs6000/sysv4.opt" |
864396ff | 2448 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm" |
9193fb05 | 2449 | extra_objs="$extra_objs rs6000-linux.o" |
b9a7eb5d AM |
2450 | case ${target} in |
2451 | powerpc*le-*-*) | |
93ed07e2 | 2452 | tm_file="${tm_file} rs6000/sysv4le.h" ;; |
b9a7eb5d | 2453 | esac |
864396ff AM |
2454 | case ${target}:${with_cpu} in |
2455 | powerpc64*: | powerpc64*:native) cpu_is_64bit=yes ;; | |
2456 | esac | |
2457 | maybe_biarch=${cpu_is_64bit} | |
2458 | case ${enable_targets} in | |
2459 | *powerpc64*) maybe_biarch=yes ;; | |
b9b1573b | 2460 | all) maybe_biarch=yes ;; |
864396ff | 2461 | esac |
457d1d00 | 2462 | case ${target} in |
b9a7eb5d | 2463 | powerpc64*-*-linux*spe* | powerpc64*-*-linux*paired*) |
864396ff | 2464 | echo "*** Configuration ${target} not supported" 1>&2 |
633dd061 AM |
2465 | exit 1 |
2466 | ;; | |
b9a7eb5d | 2467 | powerpc*-*-linux*spe* | powerpc*-*-linux*paired*) |
633dd061 AM |
2468 | maybe_biarch= |
2469 | ;; | |
457d1d00 | 2470 | esac |
864396ff AM |
2471 | case ${target}:${enable_targets}:${maybe_biarch} in |
2472 | powerpc64-* | powerpc-*:*:yes | *:*powerpc64-*:yes | *:all:yes \ | |
2473 | | powerpc64le*:*powerpcle* | powerpc64le*:*powerpc-* \ | |
2474 | | powerpcle-*:*powerpc64le*:yes) | |
a8e04fe6 AM |
2475 | if test x$cpu_is_64bit = xyes; then |
2476 | tm_file="${tm_file} rs6000/default64.h" | |
2477 | fi | |
207bf79d | 2478 | tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h glibc-stdint.h" |
a8e04fe6 | 2479 | tmake_file="$tmake_file rs6000/t-linux64" |
93ed07e2 AM |
2480 | case ${target} in |
2481 | powerpc*le-*-*) | |
2482 | tmake_file="$tmake_file rs6000/t-linux64le" | |
2483 | case ${enable_targets} in | |
2484 | all | *powerpc64-* | *powerpc-*) | |
2485 | tmake_file="$tmake_file rs6000/t-linux64lebe" ;; | |
2486 | esac ;; | |
2487 | *) | |
2488 | case ${enable_targets} in | |
2489 | all | *powerpc64le-* | *powerpcle-*) | |
2490 | tmake_file="$tmake_file rs6000/t-linux64bele" ;; | |
2491 | esac ;; | |
2492 | esac | |
f75aac9e | 2493 | extra_options="${extra_options} rs6000/linux64.opt" |
a8e04fe6 | 2494 | ;; |
864396ff AM |
2495 | powerpc64*) |
2496 | tm_file="${tm_file} rs6000/default64.h rs6000/linux64.h glibc-stdint.h" | |
2497 | extra_options="${extra_options} rs6000/linux64.opt" | |
2498 | tmake_file="${tmake_file} rs6000/t-linux" | |
2499 | ;; | |
a8e04fe6 | 2500 | *) |
207bf79d | 2501 | tm_file="${tm_file} rs6000/linux.h glibc-stdint.h" |
864396ff | 2502 | tmake_file="${tmake_file} rs6000/t-ppcos rs6000/t-linux" |
a8e04fe6 AM |
2503 | ;; |
2504 | esac | |
457d1d00 | 2505 | case ${target} in |
be26142a PB |
2506 | powerpc*-*-linux*ppc476*) |
2507 | tm_file="${tm_file} rs6000/476.h" | |
2508 | extra_options="${extra_options} rs6000/476.opt" ;; | |
457d1d00 AM |
2509 | powerpc*-*-linux*altivec*) |
2510 | tm_file="${tm_file} rs6000/linuxaltivec.h" ;; | |
2511 | powerpc*-*-linux*spe*) | |
4768200a | 2512 | tm_file="${tm_file} ${cpu_type}/linuxspe.h ${cpu_type}/e500.h" ;; |
457d1d00 AM |
2513 | powerpc*-*-linux*paired*) |
2514 | tm_file="${tm_file} rs6000/750cl.h" ;; | |
2515 | esac | |
0d6be0b1 GR |
2516 | case ${target} in |
2517 | *-linux*-musl*) | |
2518 | enable_secureplt=yes ;; | |
2519 | esac | |
7f970b70 AM |
2520 | if test x${enable_secureplt} = xyes; then |
2521 | tm_file="rs6000/secureplt.h ${tm_file}" | |
2522 | fi | |
61ed06c3 | 2523 | ;; |
4a40b308 | 2524 | powerpc-wrs-vxworks*spe) |
83349046 SB |
2525 | tm_file="${tm_file} elfos.h freebsd-spec.h powerpcspe/sysv4.h" |
2526 | tmake_file="${tmake_file} powerpcspe/t-fprules powerpcspe/t-ppccomm powerpcspe/t-vxworks" | |
2527 | extra_options="${extra_options} powerpcspe/sysv4.opt" | |
2528 | extra_headers=ppc-asm.h | |
2529 | tm_file="${tm_file} vx-common.h vxworks.h powerpcspe/vxworks.h powerpcspe/e500.h" | |
2530 | ;; | |
611e7036 | 2531 | powerpc-wrs-vxworks*) |
a1cd969e | 2532 | tm_file="${tm_file} elfos.h freebsd-spec.h rs6000/sysv4.h" |
569dc494 | 2533 | tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks" |
78f5898b | 2534 | extra_options="${extra_options} rs6000/sysv4.opt" |
4977bab6 | 2535 | extra_headers=ppc-asm.h |
2eab15c9 | 2536 | case ${target} in |
3a8fe7c6 | 2537 | *-vxworksmils*) |
c725f69c | 2538 | tm_file="${tm_file} vx-common.h vxworksae.h rs6000/vxworks.h rs6000/vxworksmils.h" |
3a8fe7c6 OH |
2539 | tmake_file="${tmake_file} rs6000/t-vxworksmils" |
2540 | ;; | |
2eab15c9 | 2541 | *-vxworksae*) |
c725f69c | 2542 | tm_file="${tm_file} vx-common.h vxworksae.h rs6000/vxworks.h rs6000/vxworksae.h" |
2eab15c9 PE |
2543 | tmake_file="${tmake_file} rs6000/t-vxworksae" |
2544 | ;; | |
2545 | *-vxworks*) | |
c725f69c | 2546 | tm_file="${tm_file} vx-common.h vxworks.h rs6000/vxworks.h" |
2eab15c9 PE |
2547 | ;; |
2548 | esac | |
4977bab6 | 2549 | ;; |
4f587cb0 AN |
2550 | powerpc-*-lynxos*) |
2551 | xm_defines=POSIX | |
2552 | tm_file="${tm_file} dbxelf.h elfos.h rs6000/sysv4.h rs6000/lynx.h lynx.h" | |
2553 | tmake_file="t-lynx rs6000/t-lynx" | |
78f5898b | 2554 | extra_options="${extra_options} rs6000/sysv4.opt lynx.opt" |
4f587cb0 AN |
2555 | thread_file=lynx |
2556 | gnu_ld=yes | |
2557 | gas=yes | |
2558 | ;; | |
61ed06c3 | 2559 | powerpcle-*-elf*) |
a1cd969e | 2560 | tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h" |
569dc494 | 2561 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
78f5898b | 2562 | extra_options="${extra_options} rs6000/sysv4.opt" |
61ed06c3 HPN |
2563 | ;; |
2564 | powerpcle-*-eabisim*) | |
c725f69c | 2565 | 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/eabisim.h" |
569dc494 | 2566 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
78f5898b | 2567 | extra_options="${extra_options} rs6000/sysv4.opt" |
207bf79d | 2568 | use_gcc_stdint=wrap |
61ed06c3 HPN |
2569 | ;; |
2570 | powerpcle-*-eabi*) | |
c725f69c | 2571 | 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" |
569dc494 | 2572 | tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" |
78f5898b | 2573 | extra_options="${extra_options} rs6000/sysv4.opt" |
207bf79d | 2574 | use_gcc_stdint=wrap |
61ed06c3 | 2575 | ;; |
61ed06c3 | 2576 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
557cc596 | 2577 | tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h rs6000/aix-stdint.h" |
b040f2be | 2578 | tmake_file="rs6000/t-aix43 t-slibgcc" |
432218ba | 2579 | extra_options="${extra_options} rs6000/aix64.opt" |
61ed06c3 HPN |
2580 | use_collect2=yes |
2581 | thread_file='aix' | |
557cc596 | 2582 | use_gcc_stdint=provide |
ba1e6c0b | 2583 | extra_headers= |
61ed06c3 | 2584 | ;; |
5f5d5417 | 2585 | rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*) |
557cc596 | 2586 | tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h rs6000/aix-stdint.h" |
432218ba | 2587 | extra_options="${extra_options} rs6000/aix64.opt" |
b040f2be | 2588 | tmake_file="rs6000/t-aix43 t-slibgcc" |
61ed06c3 HPN |
2589 | use_collect2=yes |
2590 | thread_file='aix' | |
557cc596 | 2591 | use_gcc_stdint=wrap |
ba1e6c0b | 2592 | extra_headers= |
61ed06c3 | 2593 | ;; |
ca94e524 | 2594 | rs6000-ibm-aix5.2.* | powerpc-ibm-aix5.2.*) |
557cc596 | 2595 | tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h rs6000/aix-stdint.h" |
b040f2be | 2596 | tmake_file="rs6000/t-aix52 t-slibgcc" |
432218ba | 2597 | extra_options="${extra_options} rs6000/aix64.opt" |
5f5d5417 DE |
2598 | use_collect2=yes |
2599 | thread_file='aix' | |
557cc596 | 2600 | use_gcc_stdint=wrap |
5f5d5417 DE |
2601 | extra_headers= |
2602 | ;; | |
ba6a1b78 | 2603 | rs6000-ibm-aix5.3.* | powerpc-ibm-aix5.3.*) |
557cc596 | 2604 | tm_file="${tm_file} rs6000/aix.h rs6000/aix53.h rs6000/xcoff.h rs6000/aix-stdint.h" |
b040f2be | 2605 | tmake_file="rs6000/t-aix52 t-slibgcc" |
ca94e524 DE |
2606 | extra_options="${extra_options} rs6000/aix64.opt" |
2607 | use_collect2=yes | |
2608 | thread_file='aix' | |
557cc596 | 2609 | use_gcc_stdint=wrap |
c4a79427 | 2610 | extra_headers=altivec.h |
ca94e524 | 2611 | ;; |
51fbbb92 | 2612 | rs6000-ibm-aix6.* | powerpc-ibm-aix6.*) |
557cc596 | 2613 | tm_file="${tm_file} rs6000/aix.h rs6000/aix61.h rs6000/xcoff.h rs6000/aix-stdint.h" |
b040f2be | 2614 | tmake_file="rs6000/t-aix52 t-slibgcc" |
ba6a1b78 DE |
2615 | extra_options="${extra_options} rs6000/aix64.opt" |
2616 | use_collect2=yes | |
2617 | thread_file='aix' | |
557cc596 | 2618 | use_gcc_stdint=wrap |
ba6a1b78 | 2619 | extra_headers=altivec.h |
b9584cb5 | 2620 | default_use_cxa_atexit=yes |
51fbbb92 DE |
2621 | ;; |
2622 | rs6000-ibm-aix[789].* | powerpc-ibm-aix[789].*) | |
2623 | tm_file="${tm_file} rs6000/aix.h rs6000/aix71.h rs6000/xcoff.h rs6000/aix-stdint.h" | |
2624 | tmake_file="rs6000/t-aix52 t-slibgcc" | |
2625 | extra_options="${extra_options} rs6000/aix64.opt" | |
2626 | use_collect2=yes | |
2627 | thread_file='aix' | |
2628 | use_gcc_stdint=wrap | |
2629 | extra_headers=altivec.h | |
b9584cb5 | 2630 | default_use_cxa_atexit=yes |
ba6a1b78 | 2631 | ;; |
85b8555e DD |
2632 | rl78-*-elf*) |
2633 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" | |
2634 | target_has_targetm_common=no | |
2635 | c_target_objs="rl78-c.o" | |
2636 | cxx_target_objs="rl78-c.o" | |
2637 | tmake_file="${tmake_file} rl78/t-rl78" | |
2638 | ;; | |
65a324b4 | 2639 | rx-*-elf*) |
80cf2e08 | 2640 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
65a324b4 NC |
2641 | tmake_file="${tmake_file} rx/t-rx" |
2642 | ;; | |
0e5a4ad8 | 2643 | s390-*-linux*) |
8e38461c | 2644 | tm_file="s390/s390.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h s390/linux.h" |
3af82a61 AK |
2645 | c_target_objs="${c_target_objs} s390-c.o" |
2646 | cxx_target_objs="${cxx_target_objs} s390-c.o" | |
f3054223 AL |
2647 | if test x$enable_targets = xall; then |
2648 | tmake_file="${tmake_file} s390/t-linux64" | |
2649 | fi | |
3af82a61 | 2650 | tmake_file="${tmake_file} s390/t-s390" |
9628a767 | 2651 | ;; |
0e5a4ad8 | 2652 | s390x-*-linux*) |
8e38461c | 2653 | tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h s390/linux.h" |
ed9cbf7c | 2654 | tm_p_file="linux-protos.h s390/s390-protos.h" |
3af82a61 AK |
2655 | c_target_objs="${c_target_objs} s390-c.o" |
2656 | cxx_target_objs="${cxx_target_objs} s390-c.o" | |
70eeb10b | 2657 | md_file=s390/s390.md |
1c0ca89d | 2658 | extra_modes=s390/s390-modes.def |
70eeb10b | 2659 | out_file=s390/s390.c |
3af82a61 | 2660 | tmake_file="${tmake_file} s390/t-linux64 s390/t-s390" |
9628a767 | 2661 | ;; |
24fe22c9 | 2662 | s390x-ibm-tpf*) |
3af82a61 AK |
2663 | tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h s390/tpf.h" |
2664 | tm_p_file=s390/s390-protos.h | |
2665 | c_target_objs="${c_target_objs} s390-c.o" | |
2666 | cxx_target_objs="${cxx_target_objs} s390-c.o" | |
2667 | md_file=s390/s390.md | |
2668 | extra_modes=s390/s390-modes.def | |
2669 | out_file=s390/s390.c | |
2670 | thread_file='tpf' | |
a8ba31f2 | 2671 | extra_options="${extra_options} s390/tpf.opt" |
3af82a61 | 2672 | tmake_file="${tmake_file} s390/t-s390" |
24fe22c9 | 2673 | ;; |
cd985f66 | 2674 | sh-*-elf* | sh[12346l]*-*-elf* | \ |
93fea8d3 | 2675 | sh-*-linux* | sh[2346lbe]*-*-linux* | \ |
bc6d9014 | 2676 | sh-*-netbsdelf* | shl*-*-netbsdelf*) |
da28a3b9 JR |
2677 | tmake_file="${tmake_file} sh/t-sh sh/t-elf" |
2678 | if test x${with_endian} = x; then | |
2679 | case ${target} in | |
2680 | sh[1234]*be-*-* | sh[1234]*eb-*-*) with_endian=big ;; | |
2681 | shbe-*-* | sheb-*-*) with_endian=big,little ;; | |
2682 | sh[1234]l* | sh[34]*-*-linux*) with_endian=little ;; | |
bc6d9014 OE |
2683 | shl* | sh*-*-linux* | \ |
2684 | sh-superh-elf) with_endian=little,big ;; | |
da28a3b9 JR |
2685 | sh[1234]*-*-*) with_endian=big ;; |
2686 | *) with_endian=big,little ;; | |
2687 | esac | |
2688 | fi | |
aca600aa AS |
2689 | # TM_ENDIAN_CONFIG is used by t-sh to determine multilibs. |
2690 | # First word : the default endian. | |
2691 | # Second word: the secondary endian (optional). | |
da28a3b9 | 2692 | case ${with_endian} in |
aca600aa AS |
2693 | big) TM_ENDIAN_CONFIG=mb ;; |
2694 | little) TM_ENDIAN_CONFIG=ml ;; | |
2695 | big,little) TM_ENDIAN_CONFIG="mb ml" ;; | |
2696 | little,big) TM_ENDIAN_CONFIG="ml mb" ;; | |
da28a3b9 JR |
2697 | *) echo "with_endian=${with_endian} not supported."; exit 1 ;; |
2698 | esac | |
2699 | case ${with_endian} in | |
2700 | little*) tm_file="sh/little.h ${tm_file}" ;; | |
2701 | esac | |
9e08f9e2 | 2702 | tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h" |
b01bc573 | 2703 | case ${target} in |
da28a3b9 | 2704 | sh*-*-linux*) tmake_file="${tmake_file} sh/t-linux" |
1e44e857 DJ |
2705 | if test x$enable_fdpic = xyes; then |
2706 | tm_defines="$tm_defines FDPIC_DEFAULT=1" | |
2707 | fi | |
8e38461c | 2708 | tm_file="${tm_file} gnu-user.h linux.h glibc-stdint.h sh/linux.h" ;; |
a4714d14 JM |
2709 | sh*-*-netbsd*) |
2710 | tm_file="${tm_file} netbsd.h netbsd-elf.h sh/netbsd-elf.h" | |
2711 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" | |
2712 | ||
2713 | ;; | |
c68e4eed CB |
2714 | sh*-superh-elf) if test x$with_libgloss != xno; then |
2715 | with_libgloss=yes | |
2716 | tm_file="${tm_file} sh/newlib.h" | |
2717 | fi | |
2d606e03 | 2718 | tm_file="${tm_file} sh/embed-elf.h" |
c68e4eed | 2719 | tm_file="${tm_file} sh/superh.h" |
c68e4eed | 2720 | extra_options="${extra_options} sh/superh.opt" ;; |
8c1aaf26 R |
2721 | *) if test x$with_newlib = xyes \ |
2722 | && test x$with_libgloss = xyes; then | |
2723 | tm_file="${tm_file} sh/newlib.h" | |
2724 | fi | |
2725 | tm_file="${tm_file} sh/embed-elf.h" ;; | |
da28a3b9 JR |
2726 | esac |
2727 | case ${target} in | |
da28a3b9 | 2728 | *-*-netbsd) |
da28a3b9 | 2729 | ;; |
207bf79d JM |
2730 | *-*-elf*) |
2731 | tm_file="${tm_file} newlib-stdint.h" | |
2732 | ;; | |
8bc6e101 | 2733 | esac |
da28a3b9 JR |
2734 | # sed el/eb endian suffixes away to avoid confusion with sh[23]e |
2735 | case `echo ${target} | sed 's/e[lb]-/-/'` in | |
312209c6 AO |
2736 | sh4a_single_only*) sh_cpu_target=sh4a-single-only ;; |
2737 | sh4a_single*) sh_cpu_target=sh4a-single ;; | |
2738 | sh4a_nofpu*) sh_cpu_target=sh4a-nofpu ;; | |
2739 | sh4al) sh_cpu_target=sh4al ;; | |
2740 | sh4a*) sh_cpu_target=sh4a ;; | |
da28a3b9 JR |
2741 | sh4_single_only*) sh_cpu_target=sh4-single-only ;; |
2742 | sh4_single*) sh_cpu_target=sh4-single ;; | |
2743 | sh4_nofpu*) sh_cpu_target=sh4-nofpu ;; | |
2744 | sh4* | sh-superh-*) sh_cpu_target=sh4 ;; | |
2745 | sh3e*) sh_cpu_target=sh3e ;; | |
2746 | sh*-*-netbsd* | sh3*) sh_cpu_target=sh3 ;; | |
157371cf AO |
2747 | sh2a_single_only*) sh_cpu_target=sh2a-single-only ;; |
2748 | sh2a_single*) sh_cpu_target=sh2a-single ;; | |
2749 | sh2a_nofpu*) sh_cpu_target=sh2a-nofpu ;; | |
2750 | sh2a*) sh_cpu_target=sh2a ;; | |
da28a3b9 JR |
2751 | sh2e*) sh_cpu_target=sh2e ;; |
2752 | sh2*) sh_cpu_target=sh2 ;; | |
2753 | *) sh_cpu_target=sh1 ;; | |
8f48afc1 | 2754 | esac |
8c1aaf26 R |
2755 | # did the user say --without-fp ? |
2756 | if test x$with_fp = xno; then | |
2757 | case ${sh_cpu_target} in | |
8c1aaf26 R |
2758 | sh4al | sh1) ;; |
2759 | sh4a* ) sh_cpu_target=sh4a-nofpu ;; | |
2760 | sh4*) sh_cpu_target=sh4-nofpu ;; | |
2761 | sh3*) sh_cpu_target=sh3 ;; | |
2762 | sh2a*) sh_cpu_target=sh2a-nofpu ;; | |
2763 | sh2*) sh_cpu_target=sh2 ;; | |
2764 | *) echo --without-fp not available for $target: ignored | |
2765 | esac | |
2766 | tm_defines="$tm_defines STRICT_NOFPU=1" | |
2767 | fi | |
da28a3b9 JR |
2768 | sh_cpu_default="`echo $with_cpu|sed s/^m/sh/|tr A-Z_ a-z-`" |
2769 | case $sh_cpu_default in | |
157371cf | 2770 | sh2a-single-only | sh2a-single | sh2a-nofpu | sh2a | \ |
312209c6 | 2771 | sh4a-single-only | sh4a-single | sh4a-nofpu | sh4a | sh4al | \ |
27a0ce7d | 2772 | sh4-single-only | sh4-single | sh4-nofpu | sh4 | sh4-300 | \ |
bf09b512 | 2773 | sh3e | sh3 | sh2e | sh2 | sh1) ;; |
da28a3b9 JR |
2774 | "") sh_cpu_default=${sh_cpu_target} ;; |
2775 | *) echo "with_cpu=$with_cpu not supported"; exit 1 ;; | |
dbf87f32 | 2776 | esac |
da28a3b9 | 2777 | sh_multilibs=${with_multilib_list} |
aca600aa | 2778 | if test "$sh_multilibs" = "default" ; then |
da28a3b9 JR |
2779 | case ${target} in |
2780 | sh[1234]*) sh_multilibs=${sh_cpu_target} ;; | |
da28a3b9 | 2781 | sh-superh-*) sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;; |
8f6d1c86 | 2782 | sh*-*-linux*) sh_multilibs=m1,m2,m2a,m3e,m4 ;; |
da28a3b9 | 2783 | sh*-*-netbsd*) sh_multilibs=m3,m3e,m4 ;; |
157371cf | 2784 | *) sh_multilibs=m1,m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single ;; |
da28a3b9 | 2785 | esac |
8c1aaf26 R |
2786 | if test x$with_fp = xno; then |
2787 | 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`" | |
2788 | fi | |
da28a3b9 | 2789 | fi |
25e651ca | 2790 | target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_` |
da28a3b9 | 2791 | tm_defines=${tm_defines}' SH_MULTILIB_CPU_DEFAULT=\"'`echo $sh_cpu_default|sed s/sh/m/`'\"' |
aca600aa | 2792 | tm_defines="$tm_defines SUPPORT_`echo $sh_cpu_default | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1" |
47e5ff44 | 2793 | sh_multilibs=`echo $sh_multilibs | sed -e 's/,/ /g' -e 's/^[Ss][Hh]/m/' -e 's/ [Ss][Hh]/ m/g' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz-` |
da28a3b9 JR |
2794 | for sh_multilib in ${sh_multilibs}; do |
2795 | case ${sh_multilib} in | |
aca600aa AS |
2796 | m1 | m2 | m2e | m3 | m3e | \ |
2797 | m4 | m4-single | m4-single-only | m4-nofpu | m4-300 |\ | |
2798 | m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al | \ | |
bc6d9014 | 2799 | m2a | m2a-single | m2a-single-only | m2a-nofpu) |
aca600aa AS |
2800 | # TM_MULTILIB_CONFIG is used by t-sh for the non-endian multilib definition |
2801 | # It is passed to MULTIILIB_OPTIONS verbatim. | |
2802 | TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG}/${sh_multilib}" | |
2803 | tm_defines="$tm_defines SUPPORT_`echo $sh_multilib | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1" | |
da28a3b9 | 2804 | ;; |
aca600aa AS |
2805 | \!*) # TM_MULTILIB_EXCEPTIONS_CONFIG is used by t-sh |
2806 | # It is passed the MULTILIB_EXCEPTIONS verbatim. | |
2807 | TM_MULTILIB_EXCEPTIONS_CONFIG="${TM_MULTILIB_EXCEPTIONS_CONFIG} `echo $sh_multilib | sed 's/^!//'`" ;; | |
da28a3b9 JR |
2808 | *) |
2809 | echo "with_multilib_list=${sh_multilib} not supported." | |
2810 | exit 1 | |
2811 | ;; | |
2812 | esac | |
2813 | done | |
aca600aa | 2814 | TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's:^/::'` |
25e651ca | 2815 | if test x${enable_incomplete_targets} = xyes ; then |
bc6d9014 | 2816 | tm_defines="$tm_defines SUPPORT_SH1=1 SUPPORT_SH2E=1 SUPPORT_SH4=1 SUPPORT_SH4_SINGLE=1 SUPPORT_SH2A=1 SUPPORT_SH2A_SINGLE=1" |
da28a3b9 | 2817 | fi |
44509946 AS |
2818 | tm_file="$tm_file ./sysroot-suffix.h" |
2819 | tmake_file="$tmake_file t-sysroot-suffix" | |
fa5322fa | 2820 | ;; |
314733e2 | 2821 | sh-*-rtems*) |
aefe4056 | 2822 | tmake_file="${tmake_file} sh/t-sh sh/t-rtems" |
9e08f9e2 | 2823 | tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h newlib-stdint.h" |
314733e2 | 2824 | ;; |
55047c9d | 2825 | sh-wrs-vxworks) |
5f73c6cc | 2826 | tmake_file="$tmake_file sh/t-sh sh/t-vxworks" |
9e08f9e2 | 2827 | tm_file="${tm_file} elfos.h sh/elf.h sh/embed-elf.h vx-common.h vxworks.h sh/vxworks.h" |
55047c9d | 2828 | ;; |
61ed06c3 | 2829 | sparc-*-elf*) |
ec047df4 | 2830 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp-elf.h" |
07981468 KE |
2831 | case ${target} in |
2832 | *-leon-*) | |
8d12174d | 2833 | tmake_file="sparc/t-sparc sparc/t-leon" |
07981468 KE |
2834 | ;; |
2835 | *-leon[3-9]*) | |
8d12174d | 2836 | tmake_file="sparc/t-sparc sparc/t-leon3" |
07981468 KE |
2837 | ;; |
2838 | *) | |
8d12174d | 2839 | tmake_file="sparc/t-sparc sparc/t-elf" |
07981468 KE |
2840 | ;; |
2841 | esac | |
61ed06c3 | 2842 | ;; |
ad234fc7 | 2843 | sparc-*-rtems*) |
ec047df4 | 2844 | tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h" |
9c281312 | 2845 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems" |
ad234fc7 EB |
2846 | ;; |
2847 | sparc-*-linux*) | |
6cc7fb90 | 2848 | tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/tso.h" |
fe609b0f | 2849 | extra_options="${extra_options} sparc/long-double-switch.opt" |
07981468 KE |
2850 | case ${target} in |
2851 | *-leon-*) | |
8d12174d | 2852 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-leon" |
07981468 KE |
2853 | ;; |
2854 | *-leon[3-9]*) | |
8d12174d | 2855 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-leon3" |
07981468 KE |
2856 | ;; |
2857 | *) | |
b040f2be | 2858 | tmake_file="${tmake_file} sparc/t-sparc" |
07981468 KE |
2859 | ;; |
2860 | esac | |
5f7ca34b DM |
2861 | if test x$enable_targets = xall; then |
2862 | tm_file="sparc/biarch64.h ${tm_file} sparc/linux64.h" | |
ccbdd3bc | 2863 | tmake_file="${tmake_file} sparc/t-linux64" |
5f7ca34b DM |
2864 | else |
2865 | tm_file="${tm_file} sparc/linux.h" | |
d3547cab | 2866 | tmake_file="${tmake_file} sparc/t-linux" |
5f7ca34b | 2867 | fi |
61ed06c3 | 2868 | ;; |
ad234fc7 | 2869 | sparc-*-netbsdelf*) |
ec047df4 | 2870 | tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h" |
a4714d14 | 2871 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
ad234fc7 | 2872 | extra_options="${extra_options} sparc/long-double-switch.opt" |
8d12174d | 2873 | tmake_file="${tmake_file} sparc/t-sparc" |
3943fe02 | 2874 | ;; |
2587aa3b | 2875 | sparc*-*-solaris2*) |
2cf03b11 | 2876 | tm_file="sparc/biarch64.h ${tm_file} ${sol2_tm_file} sparc/tso.h" |
18167442 | 2877 | case ${target} in |
2587aa3b | 2878 | sparc64-*-* | sparcv9-*-*) |
7c7dae65 | 2879 | tm_file="sparc/default64.h ${tm_file}" |
207bf79d | 2880 | ;; |
2587aa3b EB |
2881 | *) |
2882 | test x$with_cpu != x || with_cpu=v9 | |
ec23ed60 | 2883 | ;; |
18167442 | 2884 | esac |
2cf03b11 | 2885 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-sol2" |
61ed06c3 | 2886 | ;; |
1910440e | 2887 | sparc-wrs-vxworks) |
ec047df4 | 2888 | tm_file="${tm_file} elfos.h sparc/sysv4.h vx-common.h vxworks.h sparc/vxworks.h" |
8d12174d | 2889 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-vxworks" |
1910440e | 2890 | ;; |
61ed06c3 | 2891 | sparc64-*-elf*) |
ec047df4 | 2892 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h" |
ae5f5715 | 2893 | extra_options="${extra_options}" |
8d12174d | 2894 | tmake_file="${tmake_file} sparc/t-sparc" |
61ed06c3 | 2895 | ;; |
ad234fc7 | 2896 | sparc64-*-rtems*) |
ec047df4 | 2897 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h sparc/rtemself.h rtems.h" |
ae5f5715 | 2898 | extra_options="${extra_options}" |
aefe4056 | 2899 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems-64" |
ad234fc7 EB |
2900 | ;; |
2901 | sparc64-*-linux*) | |
7c7dae65 | 2902 | tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/default64.h sparc/linux64.h sparc/tso.h" |
ad234fc7 | 2903 | extra_options="${extra_options} sparc/long-double-switch.opt" |
b040f2be | 2904 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-linux64" |
ad234fc7 | 2905 | ;; |
c7240cbd DB |
2906 | sparc64-*-freebsd*|ultrasparc-*-freebsd*) |
2907 | tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h" | |
fe609b0f | 2908 | extra_options="${extra_options} sparc/long-double-switch.opt" |
c7240cbd | 2909 | case "x$with_cpu" in |
e0054185 | 2910 | xultrasparc) ;; |
c7240cbd DB |
2911 | x) with_cpu=ultrasparc ;; |
2912 | *) echo "$with_cpu not supported for freebsd target"; exit 1 ;; | |
2913 | esac | |
8d12174d | 2914 | tmake_file="${tmake_file} sparc/t-sparc" |
c7240cbd | 2915 | ;; |
4cb7482c | 2916 | sparc64-*-netbsd*) |
4cb7482c | 2917 | tm_file="sparc/biarch64.h ${tm_file}" |
ec047df4 | 2918 | tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h" |
a4714d14 | 2919 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
fe609b0f | 2920 | extra_options="${extra_options} sparc/long-double-switch.opt" |
8d12174d | 2921 | tmake_file="${tmake_file} sparc/t-sparc sparc/t-netbsd64" |
4cb7482c | 2922 | ;; |
ad234fc7 | 2923 | sparc64-*-openbsd*) |
ec047df4 | 2924 | tm_file="sparc/openbsd1-64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp64-elf.h" |
ad234fc7 | 2925 | tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h sparc/openbsd64.h" |
5369e2d4 | 2926 | extra_options="${extra_options} openbsd.opt" |
ae5f5715 | 2927 | extra_options="${extra_options}" |
ad234fc7 EB |
2928 | gas=yes gnu_ld=yes |
2929 | with_cpu=ultrasparc | |
8d12174d | 2930 | tmake_file="${tmake_file} sparc/t-sparc" |
ad234fc7 | 2931 | ;; |
85d9c13c | 2932 | spu-*-elf*) |
207bf79d | 2933 | tm_file="dbxelf.h elfos.h spu/spu-elf.h spu/spu.h newlib-stdint.h" |
85d9c13c | 2934 | tmake_file="spu/t-spu-elf" |
08b2bad2 | 2935 | native_system_header_dir=/include |
299456f3 | 2936 | extra_headers="spu_intrinsics.h spu_internals.h vmx2spu.h spu_mfcio.h vec_types.h spu_cache.h" |
85d9c13c TS |
2937 | extra_modes=spu/spu-modes.def |
2938 | c_target_objs="${c_target_objs} spu-c.o" | |
2939 | cxx_target_objs="${cxx_target_objs} spu-c.o" | |
2940 | ;; | |
bcead286 BS |
2941 | tic6x-*-elf) |
2942 | tm_file="elfos.h ${tm_file} c6x/elf-common.h c6x/elf.h" | |
2943 | tm_file="${tm_file} dbxelf.h tm-dwarf2.h newlib-stdint.h" | |
bcead286 | 2944 | tmake_file="c6x/t-c6x c6x/t-c6x-elf" |
bcead286 BS |
2945 | use_collect2=no |
2946 | ;; | |
2947 | tic6x-*-uclinux) | |
2948 | tm_file="elfos.h ${tm_file} gnu-user.h linux.h c6x/elf-common.h c6x/uclinux-elf.h" | |
2949 | tm_file="${tm_file} dbxelf.h tm-dwarf2.h glibc-stdint.h" | |
2950 | tm_file="${tm_file} ./sysroot-suffix.h" | |
b040f2be | 2951 | tmake_file="t-sysroot-suffix t-slibgcc" |
bcead286 | 2952 | tmake_file="${tmake_file} c6x/t-c6x c6x/t-c6x-elf c6x/t-c6x-uclinux" |
bcead286 BS |
2953 | use_collect2=no |
2954 | ;; | |
341c653c | 2955 | tilegx*-*-linux*) |
dd552284 WL |
2956 | tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h tilegx/linux.h ${tm_file}" |
2957 | tmake_file="${tmake_file} tilegx/t-tilegx" | |
92be22dc | 2958 | extra_objs="${extra_objs} mul-tables.o" |
1efcb8c6 JM |
2959 | c_target_objs="${c_target_objs} tilegx-c.o" |
2960 | cxx_target_objs="${cxx_target_objs} tilegx-c.o" | |
fd199491 | 2961 | extra_headers="feedback.h" |
341c653c WL |
2962 | case $target in |
2963 | tilegxbe-*) | |
2964 | tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" | |
2965 | ;; | |
2966 | esac | |
dd552284 | 2967 | ;; |
341c653c | 2968 | tilepro*-*-linux*) |
dd552284 WL |
2969 | tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h tilepro/linux.h ${tm_file}" |
2970 | tmake_file="${tmake_file} tilepro/t-tilepro" | |
92be22dc | 2971 | extra_objs="${extra_objs} mul-tables.o" |
1efcb8c6 JM |
2972 | c_target_objs="${c_target_objs} tilepro-c.o" |
2973 | cxx_target_objs="${cxx_target_objs} tilepro-c.o" | |
fd199491 | 2974 | extra_headers="feedback.h" |
dd552284 | 2975 | ;; |
cc5476cb RC |
2976 | v850-*-rtems*) |
2977 | target_cpu_default="TARGET_CPU_generic" | |
2978 | tm_file="dbxelf.h elfos.h v850/v850.h" | |
2979 | tm_file="${tm_file} rtems.h v850/rtems.h newlib-stdint.h" | |
2980 | tmake_file="${tmake_file} v850/t-v850" | |
aefe4056 | 2981 | tmake_file="${tmake_file} v850/t-rtems" |
cc5476cb RC |
2982 | use_collect2=no |
2983 | c_target_objs="v850-c.o" | |
2984 | cxx_target_objs="v850-c.o" | |
2985 | ;; | |
1dcad079 NC |
2986 | v850*-*-*) |
2987 | case ${target} in | |
dbdbd982 NC |
2988 | v850e3v5-*-*) |
2989 | target_cpu_default="TARGET_CPU_v850e3v5" | |
2990 | ;; | |
1dcad079 NC |
2991 | v850e2v3-*-*) |
2992 | target_cpu_default="TARGET_CPU_v850e2v3" | |
2993 | ;; | |
2994 | v850e2-*-*) | |
2995 | target_cpu_default="TARGET_CPU_v850e2" | |
2996 | ;; | |
2997 | v850e1-*-* | v850es-*-*) | |
2998 | target_cpu_default="TARGET_CPU_v850e1" | |
2999 | ;; | |
3000 | v850e-*-*) | |
3001 | target_cpu_default="TARGET_CPU_v850e" | |
3002 | ;; | |
3003 | v850-*-*) | |
3004 | target_cpu_default="TARGET_CPU_generic" | |
3005 | ;; | |
3006 | esac | |
fcbf5a00 | 3007 | tm_file="dbxelf.h elfos.h newlib-stdint.h v850/v850.h" |
b4378319 NC |
3008 | if test x$stabs = xyes |
3009 | then | |
3010 | tm_file="${tm_file} dbx.h" | |
3011 | fi | |
3012 | use_collect2=no | |
3013 | c_target_objs="v850-c.o" | |
3014 | cxx_target_objs="v850-c.o" | |
207bf79d | 3015 | use_gcc_stdint=wrap |
b4378319 | 3016 | ;; |
c4e75102 | 3017 | vax-*-linux*) |
8e38461c | 3018 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h vax/elf.h vax/linux.h" |
4ad70280 | 3019 | extra_options="${extra_options} vax/elf.opt" |
c4e75102 | 3020 | ;; |
69474c3c | 3021 | vax-*-netbsdelf*) |
ec20cffb | 3022 | tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h" |
4ad70280 | 3023 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt vax/elf.opt" |
69474c3c | 3024 | ;; |
61ed06c3 | 3025 | vax-*-openbsd*) |
a42014a3 | 3026 | tm_file="vax/vax.h vax/openbsd1.h openbsd.h openbsd-stdint.h openbsd-libpthread.h vax/openbsd.h" |
5369e2d4 | 3027 | extra_options="${extra_options} openbsd.opt" |
61ed06c3 HPN |
3028 | use_collect2=yes |
3029 | ;; | |
0969ec7d EB |
3030 | visium-*-elf*) |
3031 | tm_file="dbxelf.h elfos.h ${tm_file} visium/elf.h newlib-stdint.h" | |
3032 | tmake_file="visium/t-visium visium/t-crtstuff" | |
3033 | ;; | |
14d269bb GK |
3034 | xstormy16-*-elf) |
3035 | # For historical reasons, the target files omit the 'x'. | |
5519175f | 3036 | tm_file="dbxelf.h elfos.h newlib-stdint.h stormy16/stormy16.h" |
14d269bb GK |
3037 | tm_p_file=stormy16/stormy16-protos.h |
3038 | md_file=stormy16/stormy16.md | |
3039 | out_file=stormy16/stormy16.c | |
d45d2353 | 3040 | extra_options=stormy16/stormy16.opt |
14d269bb | 3041 | tmake_file="stormy16/t-stormy16" |
14d269bb | 3042 | ;; |
6d656178 | 3043 | xtensa*-*-elf*) |
416ea725 | 3044 | tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h xtensa/elf.h" |
4933ae74 | 3045 | extra_options="${extra_options} xtensa/elf.opt" |
03984308 | 3046 | ;; |
6d656178 | 3047 | xtensa*-*-linux*) |
8e38461c | 3048 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h xtensa/linux.h" |
5f73c6cc | 3049 | tmake_file="${tmake_file} xtensa/t-xtensa" |
03984308 | 3050 | ;; |
4a0a9457 MF |
3051 | xtensa*-*-uclinux*) |
3052 | tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h xtensa/uclinux.h" | |
3053 | tmake_file="${tmake_file} xtensa/t-xtensa" | |
3054 | extra_options="${extra_options} xtensa/uclinux.opt" | |
3055 | ;; | |
2beef00e | 3056 | am33_2.0-*-linux*) |
8e38461c | 3057 | tm_file="mn10300/mn10300.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h mn10300/linux.h" |
2beef00e | 3058 | gas=yes gnu_ld=yes |
2beef00e AO |
3059 | use_collect2=no |
3060 | ;; | |
7f05b779 | 3061 | m32c-*-rtems*) |
24b00560 | 3062 | tm_file="dbxelf.h elfos.h ${tm_file} m32c/rtems.h rtems.h newlib-stdint.h" |
7f05b779 JS |
3063 | c_target_objs="m32c-pragma.o" |
3064 | cxx_target_objs="m32c-pragma.o" | |
3065 | ;; | |
38b2d076 | 3066 | m32c-*-elf*) |
24b00560 | 3067 | tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" |
38b2d076 DD |
3068 | c_target_objs="m32c-pragma.o" |
3069 | cxx_target_objs="m32c-pragma.o" | |
38b2d076 | 3070 | ;; |
61ed06c3 | 3071 | *) |
b01bc573 | 3072 | echo "*** Configuration ${target} not supported" 1>&2 |
61ed06c3 HPN |
3073 | exit 1 |
3074 | ;; | |
3075 | esac | |
3076 | ||
f6bc51cb | 3077 | case ${target} in |
f6bc51cb | 3078 | i[34567]86-*-linux* | x86_64-*-linux*) |
ab442df7 | 3079 | tmake_file="${tmake_file} i386/t-pmm_malloc i386/t-i386" |
f6bc51cb L |
3080 | ;; |
3081 | i[34567]86-*-* | x86_64-*-*) | |
ab442df7 | 3082 | tmake_file="${tmake_file} i386/t-gmm_malloc i386/t-i386" |
f6bc51cb | 3083 | ;; |
c5f0fe67 | 3084 | powerpc*-*-* | rs6000-*-*) |
83349046 | 3085 | tm_file="${tm_file} ${cpu_type}/option-defaults.h" |
f6bc51cb L |
3086 | esac |
3087 | ||
ad669a1a SN |
3088 | # non-glibc systems |
3089 | case ${target} in | |
3090 | *-linux-musl*) | |
3091 | tmake_file="${tmake_file} t-musl" | |
3092 | ;; | |
3093 | *-linux-uclibc*) | |
3094 | tmake_file="${tmake_file} t-uclibc" | |
3095 | ;; | |
3096 | esac | |
3097 | ||
f25afa93 SE |
3098 | # Assume the existence of indirect function support and allow the use of the |
3099 | # resolver attribute. | |
3100 | case ${target} in | |
3101 | *-*-linux*android*|*-*-linux*uclibc*|*-*-linux*musl*) | |
3102 | ;; | |
3103 | *-*-linux*) | |
3104 | case ${target} in | |
2caf4109 | 3105 | aarch64*-* | i[34567]86-* | powerpc*-* | s390*-* | sparc*-* | x86_64-*) |
f25afa93 SE |
3106 | default_gnu_indirect_function=yes |
3107 | ;; | |
3108 | esac | |
3109 | ;; | |
3110 | esac | |
3111 | ||
87b6c18c IV |
3112 | # Build mkoffload tool |
3113 | case ${target} in | |
3114 | *-intelmic-* | *-intelmicemul-*) | |
3115 | tmake_file="${tmake_file} i386/t-intelmic" | |
41dbbb37 | 3116 | tm_file="${tm_file} i386/intelmic-offload.h" |
87b6c18c IV |
3117 | ;; |
3118 | esac | |
3119 | ||
acce4e77 JM |
3120 | if [ "$target_has_targetcm" = "no" ]; then |
3121 | c_target_objs="$c_target_objs default-c.o" | |
3122 | cxx_target_objs="$cxx_target_objs default-c.o" | |
3123 | fi | |
3124 | ||
c49a6962 JM |
3125 | if [ "$common_out_file" = "" ]; then |
3126 | if [ "$target_has_targetm_common" = "yes" ]; then | |
3127 | common_out_file="$cpu_type/$cpu_type-common.c" | |
3128 | else | |
3129 | common_out_file="default-common.c" | |
3130 | fi | |
3131 | fi | |
3132 | ||
73f09c99 | 3133 | # Support for --with-cpu and related options (and a few unrelated options, |
a89ea0df | 3134 | # too). |
35341073 NN |
3135 | case ${with_cpu} in |
3136 | yes | no) | |
3137 | echo "--with-cpu must be passed a value" 1>&2 | |
3138 | exit 1 | |
3139 | ;; | |
3140 | esac | |
83079d89 | 3141 | |
3fd77630 L |
3142 | # Set arch and cpu from ${target} and ${target_noncanonical}. Set cpu |
3143 | # to generic if there is no processor scheduler model for the target. | |
3144 | arch= | |
3145 | cpu= | |
4d16c0dc | 3146 | arch_without_sse2=no |
c6b9174f | 3147 | arch_without_64bit=no |
3fd77630 | 3148 | case ${target} in |
1c379b78 TC |
3149 | i386-*-freebsd*) |
3150 | if test $fbsd_major -ge 6; then | |
3151 | arch=i486 | |
3152 | else | |
3153 | arch=i386 | |
3154 | fi | |
3155 | cpu=generic | |
3156 | arch_without_sse2=yes | |
3157 | arch_without_64bit=yes | |
3158 | ;; | |
8a45a00e KW |
3159 | i386-*-netbsd*) |
3160 | arch=i486 | |
3161 | cpu=generic | |
3162 | arch_without_sse2=yes | |
3163 | arch_without_64bit=yes | |
3164 | ;; | |
3fd77630 L |
3165 | i386-*-*) |
3166 | arch=i386 | |
3167 | cpu=i386 | |
4d16c0dc | 3168 | arch_without_sse2=yes |
c6b9174f | 3169 | arch_without_64bit=yes |
3fd77630 L |
3170 | ;; |
3171 | i486-*-*) | |
3172 | arch=i486 | |
3173 | cpu=i486 | |
4d16c0dc | 3174 | arch_without_sse2=yes |
c6b9174f | 3175 | arch_without_64bit=yes |
3fd77630 L |
3176 | ;; |
3177 | i586-*-*) | |
4d16c0dc | 3178 | arch_without_sse2=yes |
c6b9174f | 3179 | arch_without_64bit=yes |
3fd77630 L |
3180 | case ${target_noncanonical} in |
3181 | k6_2-*) | |
3182 | arch=k6-2 | |
3183 | cpu=k6-2 | |
3184 | ;; | |
3185 | k6_3-*) | |
3186 | arch=k6-3 | |
3187 | cpu=k6-3 | |
3188 | ;; | |
3189 | k6-*) | |
3190 | arch=k6 | |
3191 | cpu=k6 | |
3192 | ;; | |
3193 | pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*) | |
3194 | arch=pentium-mmx | |
3195 | cpu=pentium-mmx | |
3196 | ;; | |
3197 | *) | |
3198 | arch=pentium | |
3199 | cpu=pentium | |
3200 | ;; | |
3201 | esac | |
3202 | ;; | |
3203 | i686-*-* | i786-*-*) | |
3204 | case ${target_noncanonical} in | |
9ce29eb0 VK |
3205 | znver1-*) |
3206 | arch=znver1 | |
3207 | cpu=znver1 | |
3208 | ;; | |
ed97ad47 GG |
3209 | bdver4-*) |
3210 | arch=bdver4 | |
3211 | cpu=bdver4 | |
3212 | ;; | |
eb2f2b44 GG |
3213 | bdver3-*) |
3214 | arch=bdver3 | |
3215 | cpu=bdver3 | |
3216 | ;; | |
4d652a18 HJ |
3217 | bdver2-*) |
3218 | arch=bdver2 | |
3219 | cpu=bdver2 | |
3220 | ;; | |
1133125e HJ |
3221 | bdver1-*) |
3222 | arch=bdver1 | |
3223 | cpu=bdver1 | |
3224 | ;; | |
14b52538 CF |
3225 | btver1-*) |
3226 | arch=btver1 | |
3227 | cpu=btver1 | |
3228 | ;; | |
e32bfc16 VK |
3229 | btver2-*) |
3230 | arch=btver2 | |
3231 | cpu=btver2 | |
3232 | ;; | |
3fd77630 L |
3233 | amdfam10-*|barcelona-*) |
3234 | arch=amdfam10 | |
3235 | cpu=amdfam10 | |
3236 | ;; | |
3237 | k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) | |
3238 | arch=k8-sse3 | |
3239 | cpu=k8-sse3 | |
3240 | ;; | |
3241 | k8-*|opteron-*|athlon64-*|athlon_fx-*) | |
3242 | arch=k8 | |
3243 | cpu=k8 | |
3244 | ;; | |
3245 | athlon_xp-*|athlon_mp-*|athlon_4-*) | |
3246 | arch=athlon-4 | |
3247 | cpu=athlon-4 | |
4d16c0dc | 3248 | arch_without_sse2=yes |
c6b9174f | 3249 | arch_without_64bit=yes |
3fd77630 L |
3250 | ;; |
3251 | athlon_tbird-*|athlon-*) | |
3252 | arch=athlon | |
3253 | cpu=athlon | |
4d16c0dc | 3254 | arch_without_sse2=yes |
3fd77630 L |
3255 | ;; |
3256 | geode-*) | |
3257 | arch=geode | |
3258 | cpu=geode | |
4d16c0dc | 3259 | arch_without_sse2=yes |
3fd77630 L |
3260 | ;; |
3261 | pentium2-*) | |
3262 | arch=pentium2 | |
3263 | cpu=pentium2 | |
4d16c0dc | 3264 | arch_without_sse2=yes |
3fd77630 L |
3265 | ;; |
3266 | pentium3-*|pentium3m-*) | |
3267 | arch=pentium3 | |
3268 | cpu=pentium3 | |
4d16c0dc | 3269 | arch_without_sse2=yes |
3fd77630 L |
3270 | ;; |
3271 | pentium4-*|pentium4m-*) | |
3272 | arch=pentium4 | |
3273 | cpu=pentium4 | |
3274 | ;; | |
3275 | prescott-*) | |
3276 | arch=prescott | |
3277 | cpu=prescott | |
3278 | ;; | |
3279 | nocona-*) | |
3280 | arch=nocona | |
3281 | cpu=nocona | |
3282 | ;; | |
3283 | atom-*) | |
3284 | arch=atom | |
3285 | cpu=atom | |
3286 | ;; | |
0b871ccf YR |
3287 | slm-*) |
3288 | arch=slm | |
3289 | cpu=slm | |
3290 | ;; | |
3fd77630 L |
3291 | core2-*) |
3292 | arch=core2 | |
3293 | cpu=core2 | |
3294 | ;; | |
1dbb04c9 L |
3295 | corei7-*) |
3296 | arch=corei7 | |
3297 | cpu=corei7 | |
3298 | ;; | |
35758e5b L |
3299 | corei7_avx-*) |
3300 | arch=corei7-avx | |
3301 | cpu=corei7-avx | |
3302 | ;; | |
3fd77630 L |
3303 | pentium_m-*) |
3304 | arch=pentium-m | |
3305 | cpu=pentium-m | |
3306 | ;; | |
3307 | pentiumpro-*) | |
3308 | arch=pentiumpro | |
3309 | cpu=pentiumpro | |
4d16c0dc | 3310 | arch_without_sse2=yes |
3fd77630 L |
3311 | ;; |
3312 | *) | |
3313 | arch=pentiumpro | |
3314 | cpu=generic | |
4d16c0dc | 3315 | arch_without_sse2=yes |
c6b9174f | 3316 | arch_without_64bit=yes |
3fd77630 L |
3317 | ;; |
3318 | esac | |
3319 | ;; | |
3320 | x86_64-*-*) | |
3321 | case ${target_noncanonical} in | |
9ce29eb0 VK |
3322 | znver1-*) |
3323 | arch=znver1 | |
3324 | cpu=znver1 | |
3325 | ;; | |
ed97ad47 GG |
3326 | bdver4-*) |
3327 | arch=bdver4 | |
3328 | cpu=bdver4 | |
3329 | ;; | |
eb2f2b44 GG |
3330 | bdver3-*) |
3331 | arch=bdver3 | |
3332 | cpu=bdver3 | |
3333 | ;; | |
4d652a18 HJ |
3334 | bdver2-*) |
3335 | arch=bdver2 | |
3336 | cpu=bdver2 | |
3337 | ;; | |
1133125e HJ |
3338 | bdver1-*) |
3339 | arch=bdver1 | |
3340 | cpu=bdver1 | |
3341 | ;; | |
14b52538 CF |
3342 | btver1-*) |
3343 | arch=btver1 | |
3344 | cpu=btver1 | |
3345 | ;; | |
e32bfc16 VK |
3346 | btver2-*) |
3347 | arch=btver2 | |
3348 | cpu=btver2 | |
3349 | ;; | |
3fd77630 L |
3350 | amdfam10-*|barcelona-*) |
3351 | arch=amdfam10 | |
3352 | cpu=amdfam10 | |
3353 | ;; | |
3354 | k8_sse3-*|opteron_sse3-*|athlon64_sse3-*) | |
3355 | arch=k8-sse3 | |
3356 | cpu=k8-sse3 | |
3357 | ;; | |
3358 | k8-*|opteron-*|athlon_64-*) | |
3359 | arch=k8 | |
3360 | cpu=k8 | |
3361 | ;; | |
3362 | nocona-*) | |
3363 | arch=nocona | |
3364 | cpu=nocona | |
3365 | ;; | |
3366 | atom-*) | |
3367 | arch=atom | |
3368 | cpu=atom | |
3369 | ;; | |
0b871ccf YR |
3370 | slm-*) |
3371 | arch=slm | |
3372 | cpu=slm | |
3373 | ;; | |
3fd77630 L |
3374 | core2-*) |
3375 | arch=core2 | |
3376 | cpu=core2 | |
3377 | ;; | |
1dbb04c9 L |
3378 | corei7-*) |
3379 | arch=corei7 | |
3380 | cpu=corei7 | |
3381 | ;; | |
3fd77630 L |
3382 | *) |
3383 | arch=x86-64 | |
3384 | cpu=generic | |
3385 | ;; | |
3386 | esac | |
3387 | ;; | |
3388 | esac | |
3389 | ||
35341073 NN |
3390 | # If there is no $with_cpu option, try to infer one from ${target}. |
3391 | # This block sets nothing except for with_cpu. | |
3392 | if test x$with_cpu = x ; then | |
3393 | case ${target} in | |
a0f4ee6e | 3394 | i[34567]86-*-elfiamcu) |
2d6b2e28 | 3395 | with_cpu=lakemont |
a0f4ee6e | 3396 | ;; |
3fd77630 L |
3397 | i[34567]86-*-*|x86_64-*-*) |
3398 | with_cpu=$cpu | |
35341073 NN |
3399 | ;; |
3400 | alphaev6[78]*-*-*) | |
3401 | with_cpu=ev67 | |
3402 | ;; | |
3403 | alphaev6*-*-*) | |
3404 | with_cpu=ev6 | |
3405 | ;; | |
3406 | alphapca56*-*-*) | |
3407 | with_cpu=pca56 | |
3408 | ;; | |
3409 | alphaev56*-*-*) | |
3410 | with_cpu=ev56 | |
3411 | ;; | |
3412 | alphaev5*-*-*) | |
3413 | with_cpu=ev5 | |
3414 | ;; | |
faf9ab98 | 3415 | frv-*-*linux* | frv400-*-*linux*) |
34208acf AO |
3416 | with_cpu=fr400 |
3417 | ;; | |
faf9ab98 AH |
3418 | frv550-*-*linux*) |
3419 | with_cpu=fr550 | |
3420 | ;; | |
59fbf3cb | 3421 | m68k*-*-*) |
10e96df4 NS |
3422 | case "$with_arch" in |
3423 | "cf") | |
3424 | with_cpu=${default_cf_cpu} | |
3425 | ;; | |
3426 | "" | "m68k") | |
3427 | with_cpu=m${default_m68k_cpu} | |
3428 | ;; | |
3429 | esac | |
59fbf3cb | 3430 | ;; |
a7c6c6d6 OH |
3431 | powerpc*-*-*spe*) |
3432 | if test x$enable_e500_double = xyes; then | |
3433 | with_cpu=8548 | |
3434 | else | |
3435 | with_cpu=8540 | |
3436 | fi | |
3437 | ;; | |
35341073 | 3438 | sparc*-*-*) |
1f65ae7a EB |
3439 | case ${target} in |
3440 | *-leon-*) | |
3441 | with_cpu=leon | |
3442 | ;; | |
3443 | *-leon[3-9]*) | |
3444 | with_cpu=leon3 | |
3445 | ;; | |
d81230b5 DH |
3446 | *-leon[3-9]v7*) |
3447 | with_cpu=leon3v7 | |
3448 | ;; | |
1f65ae7a EB |
3449 | *) |
3450 | with_cpu="`echo ${target} | sed 's/-.*$//'`" | |
3451 | ;; | |
3452 | esac | |
35341073 | 3453 | ;; |
175650bc OH |
3454 | visium-*-*) |
3455 | with_cpu=gr5 | |
3456 | ;; | |
35341073 | 3457 | esac |
8981c15b JM |
3458 | |
3459 | # Avoid overriding --with-cpu-32 and --with-cpu-64 values. | |
3460 | case ${target} in | |
3461 | i[34567]86-*-*|x86_64-*-*) | |
3fd77630 L |
3462 | if test x$with_cpu_32 != x || test x$with_cpu_64 != x; then |
3463 | if test x$with_cpu_32 = x; then | |
3464 | with_cpu_32=$with_cpu | |
3465 | fi | |
3466 | if test x$with_cpu_64 = x; then | |
3467 | with_cpu_64=$with_cpu | |
3468 | fi | |
3469 | with_cpu= | |
3470 | fi | |
3471 | ;; | |
3472 | esac | |
3473 | fi | |
3474 | ||
3475 | # Support for --with-arch and related options (and a few unrelated options, | |
3476 | # too). | |
3477 | case ${with_arch} in | |
3478 | yes | no) | |
3479 | echo "--with-arch must be passed a value" 1>&2 | |
3480 | exit 1 | |
3481 | ;; | |
3482 | esac | |
3483 | ||
3484 | # If there is no $with_arch option, try to infer one from ${target}. | |
3485 | # This block sets nothing except for with_arch. | |
3486 | if test x$with_arch = x ; then | |
3487 | case ${target} in | |
91ad7e13 L |
3488 | i[34567]86-*-darwin*|x86_64-*-darwin*) |
3489 | # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT | |
3490 | # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h. | |
3491 | ;; | |
a0f4ee6e | 3492 | i[34567]86-*-elfiamcu) |
2d6b2e28 | 3493 | with_arch=lakemont |
a0f4ee6e | 3494 | ;; |
a3af5e26 | 3495 | i[34567]86-*-*) |
4d16c0dc L |
3496 | # --with-fpmath sets the default ISA to SSE2, which is the same |
3497 | # ISA supported by Pentium 4. | |
3498 | if test x$with_fpmath = x || test $arch_without_sse2 = no; then | |
3499 | with_arch=$arch | |
3500 | else | |
3501 | with_arch=pentium4 | |
a3af5e26 L |
3502 | fi |
3503 | ;; | |
3504 | x86_64-*-*) | |
3fd77630 L |
3505 | with_arch=$arch |
3506 | ;; | |
74240413 RS |
3507 | mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*) |
3508 | with_arch=r5900 | |
3509 | ;; | |
3510 | mips*-*-vxworks) | |
3511 | with_arch=mips2 | |
3512 | ;; | |
3fd77630 L |
3513 | esac |
3514 | ||
3515 | # Avoid overriding --with-arch-32 and --with-arch-64 values. | |
3516 | case ${target} in | |
91ad7e13 L |
3517 | i[34567]86-*-darwin*|x86_64-*-darwin*) |
3518 | # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT | |
3519 | # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h. | |
3520 | ;; | |
3fd77630 L |
3521 | i[34567]86-*-*|x86_64-*-*) |
3522 | if test x$with_arch_32 != x || test x$with_arch_64 != x; then | |
3523 | if test x$with_arch_32 = x; then | |
55c4eeaa | 3524 | with_arch_32=$with_arch |
3fd77630 L |
3525 | fi |
3526 | if test x$with_arch_64 = x; then | |
c6b9174f L |
3527 | if test $arch_without_64bit = yes; then |
3528 | # Set the default 64bit arch to x86-64 if the default arch | |
3529 | # doesn't support 64bit. | |
3530 | with_arch_64=x86-64 | |
3531 | else | |
55c4eeaa | 3532 | with_arch_64=$with_arch |
c6b9174f | 3533 | fi |
3fd77630 L |
3534 | fi |
3535 | with_arch= | |
c6b9174f L |
3536 | elif test $arch_without_64bit$need_64bit_isa = yesyes; then |
3537 | # Set the default 64bit arch to x86-64 if the default arch | |
3538 | # doesn't support 64bit and we need 64bit ISA. | |
55c4eeaa | 3539 | with_arch_32=$with_arch |
c6b9174f L |
3540 | with_arch_64=x86-64 |
3541 | with_arch= | |
8981c15b JM |
3542 | fi |
3543 | ;; | |
3544 | esac | |
35341073 | 3545 | fi |
83079d89 | 3546 | |
74240413 RS |
3547 | # Infer a default setting for --with-float. |
3548 | if test x$with_float = x; then | |
3549 | case ${target} in | |
3550 | mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*) | |
3551 | # The R5900 doesn't support 64-bit float. 32-bit float doesn't | |
3552 | # comply with IEEE 754. | |
3553 | with_float=soft | |
3554 | ;; | |
3555 | esac | |
3556 | fi | |
3557 | ||
04dfc6df JU |
3558 | # Infer a default setting for --with-fpu. |
3559 | if test x$with_fpu = x; then | |
3560 | case ${target} in | |
3561 | mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*) | |
3562 | # The R5900 FPU only supports single precision. | |
3563 | with_fpu=single | |
3564 | ;; | |
3565 | esac | |
3566 | fi | |
3567 | ||
a3af5e26 L |
3568 | # Support --with-fpmath. |
3569 | if test x$with_fpmath != x; then | |
3570 | case ${target} in | |
3571 | i[34567]86-*-* | x86_64-*-*) | |
3572 | case ${with_fpmath} in | |
b71e5eba UB |
3573 | avx) |
3574 | tm_file="${tm_file} i386/avxmath.h" | |
3575 | ;; | |
a3af5e26 L |
3576 | sse) |
3577 | tm_file="${tm_file} i386/ssemath.h" | |
3578 | ;; | |
3579 | *) | |
3580 | echo "Invalid --with-fpmath=$with_fpmath" 1>&2 | |
3581 | exit 1 | |
3582 | ;; | |
3583 | esac | |
3584 | ;; | |
3585 | *) | |
3586 | echo "--with-fpmath isn't supported for $target." 1>&2 | |
3587 | exit 1 | |
3588 | ;; | |
3589 | esac | |
3590 | fi | |
3591 | ||
fe3e7450 AM |
3592 | # Similarly for --with-schedule. |
3593 | if test x$with_schedule = x; then | |
3594 | case ${target} in | |
cd985f66 | 3595 | hppa1*) |
fe3e7450 AM |
3596 | # Override default PA8000 scheduling model. |
3597 | with_schedule=7100LC | |
3598 | ;; | |
3599 | esac | |
3600 | fi | |
83079d89 | 3601 | |
74240413 RS |
3602 | # Infer a default setting for --with-llsc. |
3603 | if test x$with_llsc = x; then | |
3604 | case ${target} in | |
3605 | mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*) | |
3606 | # The R5900 doesn't support LL(D) and SC(D). | |
3607 | with_llsc=no | |
3608 | ;; | |
3609 | mips*-*-linux*) | |
3610 | # The kernel emulates LL and SC where necessary. | |
3611 | with_llsc=yes | |
3612 | ;; | |
3613 | esac | |
3614 | fi | |
3615 | ||
fe3e7450 AM |
3616 | # Validate and mark as valid any --with options supported |
3617 | # by this target. In order to use a particular --with option | |
3618 | # you must list it in supported_defaults; validating the value | |
3619 | # is optional. This case statement should set nothing besides | |
3620 | # supported_defaults. | |
7816bea0 | 3621 | |
fe3e7450 AM |
3622 | supported_defaults= |
3623 | case "${target}" in | |
24034425 | 3624 | aarch64*-*-*) |
17a819cb | 3625 | supported_defaults="abi cpu arch" |
24034425 IB |
3626 | for which in cpu arch; do |
3627 | ||
3628 | eval "val=\$with_$which" | |
3629 | base_val=`echo $val | sed -e 's/\+.*//'` | |
1140d42f | 3630 | ext_val=`echo $val | sed -e 's/[a-z0-9.-]\+//'` |
24034425 IB |
3631 | |
3632 | if [ $which = arch ]; then | |
3633 | def=aarch64-arches.def | |
3634 | pattern=AARCH64_ARCH | |
3635 | else | |
3636 | def=aarch64-cores.def | |
3637 | pattern=AARCH64_CORE | |
3638 | fi | |
3639 | ||
3640 | ext_mask=AARCH64_CPU_DEFAULT_FLAGS | |
3641 | ||
3642 | # Find the base CPU or ARCH id in aarch64-cores.def or | |
3643 | # aarch64-arches.def | |
3644 | if [ x"$base_val" = x ] \ | |
3645 | || grep "^$pattern(\"$base_val\"," \ | |
3646 | ${srcdir}/config/aarch64/$def \ | |
3647 | > /dev/null; then | |
3648 | ||
3649 | if [ $which = arch ]; then | |
3650 | base_id=`grep "^$pattern(\"$base_val\"," \ | |
3651 | ${srcdir}/config/aarch64/$def | \ | |
3652 | sed -e 's/^[^,]*,[ ]*//' | \ | |
3653 | sed -e 's/,.*$//'` | |
a3cd0246 KT |
3654 | # Extract the architecture flags from aarch64-arches.def |
3655 | ext_mask=`grep "^$pattern(\"$base_val\"," \ | |
3656 | ${srcdir}/config/aarch64/$def | \ | |
3657 | sed -e 's/)$//' | \ | |
3658 | sed -e 's/^.*,//'` | |
24034425 IB |
3659 | else |
3660 | base_id=`grep "^$pattern(\"$base_val\"," \ | |
3661 | ${srcdir}/config/aarch64/$def | \ | |
3662 | sed -e 's/^[^,]*,[ ]*//' | \ | |
3663 | sed -e 's/,.*$//'` | |
3664 | fi | |
3665 | ||
3666 | while [ x"$ext_val" != x ] | |
3667 | do | |
3668 | ext_val=`echo $ext_val | sed -e 's/\+//'` | |
3669 | ext=`echo $ext_val | sed -e 's/\+.*//'` | |
3670 | base_ext=`echo $ext | sed -e 's/^no//'` | |
3671 | ||
3672 | if [ x"$base_ext" = x ] \ | |
3673 | || grep "^AARCH64_OPT_EXTENSION(\"$base_ext\"," \ | |
3674 | ${srcdir}/config/aarch64/aarch64-option-extensions.def \ | |
3675 | > /dev/null; then | |
3676 | ||
04a99ebe | 3677 | ext_canon=`grep "^AARCH64_OPT_EXTENSION(\"$base_ext\"," \ |
24034425 IB |
3678 | ${srcdir}/config/aarch64/aarch64-option-extensions.def | \ |
3679 | sed -e 's/^[^,]*,[ ]*//' | \ | |
3680 | sed -e 's/,.*$//'` | |
04a99ebe | 3681 | ext_on=`grep "^AARCH64_OPT_EXTENSION(\"$base_ext\"," \ |
24034425 IB |
3682 | ${srcdir}/config/aarch64/aarch64-option-extensions.def | \ |
3683 | sed -e 's/^[^,]*,[ ]*[^,]*,[ ]*//' | \ | |
3684 | sed -e 's/,.*$//' | \ | |
3685 | sed -e 's/).*$//'` | |
04a99ebe JG |
3686 | ext_off=`grep "^AARCH64_OPT_EXTENSION(\"$base_ext\"," \ |
3687 | ${srcdir}/config/aarch64/aarch64-option-extensions.def | \ | |
3688 | sed -e 's/^[^,]*,[ ]*[^,]*,[ ]*[^,]*,[ ]*//' | \ | |
3689 | sed -e 's/,.*$//' | \ | |
3690 | sed -e 's/).*$//'` | |
3691 | ||
24034425 IB |
3692 | |
3693 | if [ $ext = $base_ext ]; then | |
3694 | # Adding extension | |
04a99ebe | 3695 | ext_mask="("$ext_mask") | ("$ext_on" | "$ext_canon")" |
24034425 IB |
3696 | else |
3697 | # Removing extension | |
04a99ebe | 3698 | ext_mask="("$ext_mask") & ~("$ext_off" | "$ext_canon")" |
24034425 IB |
3699 | fi |
3700 | ||
3701 | true | |
3702 | else | |
3703 | echo "Unknown extension used in --with-$which=$val" 1>&2 | |
3704 | exit 1 | |
3705 | fi | |
3706 | ext_val=`echo $ext_val | sed -e 's/[a-z0-9]\+//'` | |
3707 | done | |
3708 | ||
3709 | ext_mask="(("$ext_mask") << 6)" | |
3710 | if [ x"$base_id" != x ]; then | |
3711 | target_cpu_cname="TARGET_CPU_$base_id | $ext_mask" | |
3712 | fi | |
3713 | true | |
3714 | else | |
3715 | echo "Unknown $which used in --with-$which=$val" 1>&2 | |
3716 | exit 1 | |
3717 | fi | |
3718 | done | |
3719 | ;; | |
3720 | ||
83079d89 | 3721 | alpha*-*-*) |
7816bea0 DJ |
3722 | supported_defaults="cpu tune" |
3723 | for which in cpu tune; do | |
3724 | eval "val=\$with_$which" | |
b597bfd8 NN |
3725 | case "$val" in |
3726 | "" \ | |
3727 | | ev4 | ev45 | 21064 | ev5 | 21164 | ev56 | 21164a \ | |
3728 | | pca56 | 21164PC | 21164pc | ev6 | 21264 | ev67 \ | |
3729 | | 21264a) | |
7816bea0 DJ |
3730 | ;; |
3731 | *) | |
3732 | echo "Unknown CPU used in --with-$which=$val" 1>&2 | |
3733 | exit 1 | |
3734 | ;; | |
3735 | esac | |
3736 | done | |
3737 | ;; | |
3738 | ||
f9ccf899 | 3739 | arc*-*-*) |
53426f6c | 3740 | supported_defaults="cpu" |
f9ccf899 CZ |
3741 | |
3742 | if [ x"$with_cpu" = x ] \ | |
3743 | || grep "^ARC_CPU ($with_cpu," \ | |
3744 | ${srcdir}/config/arc/arc-cpus.def \ | |
3745 | > /dev/null; then | |
3746 | # Ok | |
3747 | true | |
3748 | else | |
3749 | echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2 | |
3750 | exit 1 | |
3751 | fi | |
53426f6c JR |
3752 | ;; |
3753 | ||
7816bea0 | 3754 | arm*-*-*) |
7cf13d1f | 3755 | supported_defaults="arch cpu float tune fpu abi mode tls" |
a92ffb3e RE |
3756 | for which in cpu tune arch; do |
3757 | # See if it matches a supported value | |
7816bea0 | 3758 | eval "val=\$with_$which" |
a92ffb3e RE |
3759 | if [ x"$val" != x ]; then |
3760 | cpu=`awk -f ${srcdir}/config/arm/parsecpu.awk \ | |
3761 | -v cmd="chk$which $val" \ | |
3762 | ${srcdir}/config/arm/arm-cpus.in` | |
3763 | if [ "$cpu" = "error" ]; then | |
3764 | echo "Unknown target in --with-$which=$val" 1>&2 | |
3765 | exit 1 | |
3766 | else | |
3767 | new_val=$cpu | |
3768 | eval "target_${which}_cname=$new_val" | |
3769 | echo "For $val real value is $new_val" | |
d3d3f1af | 3770 | fi |
2682e19f | 3771 | fi |
7816bea0 DJ |
3772 | done |
3773 | ||
b597bfd8 NN |
3774 | case "$with_float" in |
3775 | "" \ | |
9b66ebb1 | 3776 | | soft | hard | softfp) |
83079d89 | 3777 | # OK |
73f09c99 | 3778 | ;; |
83079d89 | 3779 | *) |
7816bea0 | 3780 | echo "Unknown floating point type used in --with-float=$with_float" 1>&2 |
83079d89 | 3781 | exit 1 |
73f09c99 DJ |
3782 | ;; |
3783 | esac | |
7816bea0 | 3784 | |
a92ffb3e RE |
3785 | # see if --with-fpu matches any of the supported FPUs |
3786 | if [ x"$with_fpu" != x ] ; then | |
3787 | fpu=`awk -f ${srcdir}/config/arm/parsecpu.awk \ | |
3788 | -v cmd="chkfpu $with_fpu" \ | |
3789 | ${srcdir}/config/arm/arm-cpus.in` | |
3790 | if [ "$fpu" = "error"] | |
3791 | then | |
3792 | echo "Unknown target in --with-$which=$val" 1>&2 | |
3793 | exit 1 | |
3794 | fi | |
14562eb9 | 3795 | fi |
5848830f PB |
3796 | |
3797 | case "$with_abi" in | |
3798 | "" \ | |
ebca2d91 | 3799 | | apcs-gnu | atpcs | aapcs | iwmmxt | aapcs-linux ) |
5848830f PB |
3800 | #OK |
3801 | ;; | |
3802 | *) | |
3803 | echo "Unknown ABI used in --with-abi=$with_abi" | |
9b66ebb1 PB |
3804 | exit 1 |
3805 | ;; | |
3806 | esac | |
3807 | ||
3cf94279 PB |
3808 | case "$with_mode" in |
3809 | "" \ | |
3810 | | arm | thumb ) | |
3811 | #OK | |
3812 | ;; | |
3813 | *) | |
3814 | echo "Unknown mode used in --with-mode=$with_mode" | |
3815 | exit 1 | |
3816 | ;; | |
3817 | esac | |
3818 | ||
7cf13d1f NS |
3819 | case "$with_tls" in |
3820 | "" \ | |
3821 | | gnu | gnu2) | |
3822 | # OK | |
3823 | ;; | |
3824 | *) | |
3825 | echo "Unknown TLS method used in --with-tls=$with_tls" 1>&2 | |
3826 | exit 1 | |
3827 | ;; | |
3828 | esac | |
3829 | ||
7816bea0 | 3830 | if test "x$with_arch" != x && test "x$with_cpu" != x; then |
0cdb761c JG |
3831 | echo "Switch \"--with-arch\" may not be used with switch \"--with-cpu\"" 1>&2 |
3832 | exit 1 | |
3833 | fi | |
3834 | ||
3835 | if test "x$with_cpu" != x && test "x$with_tune" != x; then | |
3836 | echo "Switch \"--with-tune\" may not be used with switch \"--with-cpu\"" 1>&2 | |
3837 | exit 1 | |
7816bea0 | 3838 | fi |
c9acb877 MGD |
3839 | |
3840 | # Add extra multilibs | |
3841 | if test "x$with_multilib_list" != x; then | |
3842 | arm_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'` | |
2f738ca5 TP |
3843 | if test "x${arm_multilibs}" != xdefault ; then |
3844 | for arm_multilib in ${arm_multilibs}; do | |
3845 | case ${arm_multilib} in | |
3846 | aprofile|rmprofile) | |
3847 | tmake_profile_file="arm/t-multilib" | |
3848 | ;; | |
3849 | *) | |
3850 | echo "Error: --with-multilib-list=${with_multilib_list} not supported." 1>&2 | |
3851 | exit 1 | |
3852 | ;; | |
3853 | esac | |
3854 | done | |
c2f46874 | 3855 | fi |
ec6be462 TP |
3856 | |
3857 | if test "x${tmake_profile_file}" != x ; then | |
3e0201f0 TP |
3858 | # arm/t-aprofile and arm/t-rmprofile are only |
3859 | # designed to work without any with-cpu, | |
3860 | # with-arch, with-mode, with-fpu or with-float | |
3861 | # options. | |
ec6be462 TP |
3862 | if test "x$with_arch" != x \ |
3863 | || test "x$with_cpu" != x \ | |
3864 | || test "x$with_float" != x \ | |
3865 | || test "x$with_fpu" != x \ | |
3866 | || test "x$with_mode" != x ; then | |
3867 | echo "Error: You cannot use any of --with-arch/cpu/fpu/float/mode with --with-multilib-list=${with_multilib_list}" 1>&2 | |
3868 | exit 1 | |
3869 | fi | |
93aa40fe RE |
3870 | # But pass the default value for float-abi |
3871 | # through to the multilib selector | |
3872 | with_float="soft" | |
ec6be462 | 3873 | tmake_file="${tmake_file} ${tmake_profile_file}" |
c2f46874 | 3874 | TM_MULTILIB_CONFIG="$with_multilib_list" |
ec6be462 | 3875 | fi |
c9acb877 | 3876 | fi |
a4af8a10 RE |
3877 | target_cpu_cname=${target_cpu_cname:-arm6} |
3878 | with_cpu=${with_cpu:-$target_cpu_cname} | |
73f09c99 | 3879 | ;; |
73f09c99 | 3880 | |
34208acf AO |
3881 | fr*-*-*linux*) |
3882 | supported_defaults=cpu | |
3883 | case "$with_cpu" in | |
3884 | fr400) ;; | |
faf9ab98 | 3885 | fr550) ;; |
34208acf AO |
3886 | *) |
3887 | echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2 | |
3888 | exit 1 | |
3889 | ;; | |
3890 | esac | |
3891 | ;; | |
3892 | ||
cd985f66 | 3893 | fido-*-* | m68k*-*-*) |
10e96df4 NS |
3894 | supported_defaults="arch cpu" |
3895 | case "$with_arch" in | |
3896 | "" | "m68k"| "cf") | |
3897 | m68k_arch_family="$with_arch" | |
3898 | ;; | |
3899 | *) | |
3900 | echo "Invalid --with-arch=$with_arch" 1>&2 | |
3901 | exit 1 | |
3902 | ;; | |
3903 | esac | |
59fbf3cb NS |
3904 | |
3905 | # We always have a $with_cpu setting here. | |
3704aae9 | 3906 | case "$with_cpu" in |
900ec02d JB |
3907 | "m68000" | "m68010" | "m68020" | "m68030" | "m68040" | "m68060") |
3908 | m68k_cpu_ident=$with_cpu | |
3909 | ;; | |
3910 | "m68020-40") | |
3911 | m68k_cpu_ident=m68020 | |
3912 | tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_40" | |
3913 | ;; | |
3914 | "m68020-60") | |
3915 | m68k_cpu_ident=m68020 | |
3916 | tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_60" | |
3704aae9 RZ |
3917 | ;; |
3918 | *) | |
900ec02d JB |
3919 | # We need the C identifier rather than the string. |
3920 | m68k_cpu_ident=`awk -v arg="\"$with_cpu\"" \ | |
3921 | 'BEGIN { FS="[ \t]*[,()][ \t]*" }; \ | |
3922 | $1 == "M68K_DEVICE" && $2 == arg { print $3 }' \ | |
3923 | ${srcdir}/config/m68k/m68k-devices.def` | |
3924 | if [ x"$m68k_cpu_ident" = x ] ; then | |
3925 | echo "Unknown CPU used in --with-cpu=$with_cpu" 1>&2 | |
3926 | exit 1 | |
3927 | fi | |
3928 | with_cpu="mcpu=$with_cpu" | |
3704aae9 RZ |
3929 | ;; |
3930 | esac | |
3931 | ;; | |
3932 | ||
cd985f66 | 3933 | hppa*-*-*) |
7816bea0 DJ |
3934 | supported_defaults="arch schedule" |
3935 | ||
b597bfd8 NN |
3936 | case "$with_arch" in |
3937 | "" | 1.0 | 1.1 | 2.0) | |
7816bea0 DJ |
3938 | # OK |
3939 | ;; | |
3940 | *) | |
3941 | echo "Unknown architecture used in --with-arch=$with_arch" 1>&2 | |
3942 | exit 1 | |
3943 | ;; | |
3944 | esac | |
3945 | ||
b597bfd8 NN |
3946 | case "$with_schedule" in |
3947 | "" | 700 | 7100 | 7100LC | 7200 | 7300 | 8000) | |
83079d89 DJ |
3948 | # OK |
3949 | ;; | |
3950 | *) | |
3951 | echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2 | |
3952 | exit 1 | |
3953 | ;; | |
3954 | esac | |
73f09c99 | 3955 | ;; |
73f09c99 | 3956 | |
83079d89 | 3957 | i[34567]86-*-* | x86_64-*-*) |
0465e49e | 3958 | supported_defaults="abi arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64" |
8981c15b | 3959 | for which in arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64; do |
7816bea0 | 3960 | eval "val=\$with_$which" |
646bdeab L |
3961 | case " $x86_archs " in |
3962 | *" ${val} "*) | |
d326eaf0 JH |
3963 | case "${target}" in |
3964 | x86_64-*-*) | |
8981c15b JM |
3965 | case "x$which" in |
3966 | *_32) | |
3967 | ;; | |
3968 | *) | |
3969 | echo "CPU given in --with-$which=$val doesn't support 64bit mode." 1>&2 | |
3970 | exit 1 | |
3971 | ;; | |
3972 | esac | |
d326eaf0 JH |
3973 | ;; |
3974 | esac | |
3975 | # OK | |
3976 | ;; | |
7816bea0 | 3977 | *) |
646bdeab L |
3978 | if test x${val} != x; then |
3979 | case " $x86_64_archs " in | |
3980 | *" ${val} "*) | |
3981 | # OK | |
3982 | ;; | |
3983 | *) | |
3984 | # Allow $x86_cpus --with-cpu=/--with-tune= | |
3985 | case "x$which" in | |
3986 | xcpu*|xtune*) | |
3987 | case " $x86_cpus " in | |
3988 | *" ${val} "*) | |
3989 | # OK | |
3990 | ;; | |
3991 | *) | |
3992 | echo "Unknown CPU given in --with-$which=$val." 1>&2 | |
3993 | exit 1 | |
3994 | ;; | |
3995 | esac | |
3996 | ;; | |
3997 | *) | |
3998 | echo "Unknown CPU given in --with-$which=$val." 1>&2 | |
3999 | exit 1 | |
4000 | ;; | |
4001 | esac | |
4002 | ;; | |
4003 | esac | |
4004 | fi | |
7816bea0 DJ |
4005 | ;; |
4006 | esac | |
4007 | done | |
4008 | ;; | |
4009 | ||
09cae750 PD |
4010 | riscv*-*-*) |
4011 | supported_defaults="abi arch tune" | |
4012 | ||
4013 | case "${target}" in | |
4014 | riscv32*) xlen=32 ;; | |
4015 | riscv64*) xlen=64 ;; | |
4016 | *) echo "Unsupported RISC-V target ${target}" 1>&2; exit 1 ;; | |
4017 | esac | |
4018 | ||
4019 | # Infer arch from --with-arch, --target, and --with-abi. | |
4020 | case "${with_arch}" in | |
4021 | rv32i* | rv32g* | rv64i* | rv64g*) | |
4022 | # OK. | |
4023 | ;; | |
4024 | "") | |
4025 | # Infer XLEN, but otherwise assume GC. | |
4026 | case "${with_abi}" in | |
4027 | ilp32 | ilp32f | ilp32d) with_arch="rv32gc" ;; | |
4028 | lp64 | lp64f | lp64d) with_arch="rv64gc" ;; | |
4029 | *) with_arch="rv${xlen}gc" ;; | |
4030 | esac | |
4031 | ;; | |
4032 | *) | |
4033 | echo "--with-arch=${with_arch} is not supported. The argument must begin with rv32i, rv32g, rv64i, or rv64g." 1>&2 | |
4034 | exit 1 | |
4035 | ;; | |
4036 | esac | |
4037 | ||
4038 | # Make sure --with-abi is valid. If it was not specified, | |
4039 | # pick a default based on the ISA, preferring soft-float | |
4040 | # unless the D extension is present. | |
4041 | case "${with_abi}" in | |
4042 | ilp32 | ilp32f | ilp32d | lp64 | lp64f | lp64d) | |
4043 | ;; | |
4044 | "") | |
4045 | case "${with_arch}" in | |
4046 | rv32*d* | rv32g*) with_abi=ilp32d ;; | |
4047 | rv32*) with_abi=ilp32 ;; | |
4048 | rv64*d* | rv64g*) with_abi=lp64d ;; | |
4049 | rv64*) with_abi=lp64 ;; | |
4050 | esac | |
4051 | ;; | |
4052 | *) | |
4053 | echo "--with-abi=${with_abi} is not supported" 1>&2 | |
4054 | exit 1 | |
4055 | ;; | |
4056 | esac | |
4057 | ||
4058 | # Make sure ABI and ISA are compatible. | |
4059 | case "${with_abi},${with_arch}" in | |
4060 | ilp32,rv32* \ | |
4061 | | ilp32f,rv32*f* | ilp32f,rv32g* \ | |
4062 | | ilp32d,rv32*d* | ilp32d,rv32g* \ | |
4063 | | lp64,rv64* \ | |
4064 | | lp64f,rv64*f* | lp64f,rv64g* \ | |
4065 | | lp64d,rv64*d* | lp64d,rv64g*) | |
4066 | ;; | |
4067 | *) | |
4068 | echo "--with-abi=${with_abi} is not supported for ISA ${with_arch}" 1>&2 | |
4069 | exit 1 | |
4070 | ;; | |
4071 | esac | |
4072 | ;; | |
4073 | ||
7816bea0 | 4074 | mips*-*-*) |
d821744c | 4075 | supported_defaults="abi arch arch_32 arch_64 float fpu nan fp_32 odd_spreg_32 tune tune_32 tune_64 divide llsc mips-plt synci lxc1-sxc1 madd4" |
7816bea0 | 4076 | |
16aa42c0 NN |
4077 | case ${with_float} in |
4078 | "" | soft | hard) | |
83079d89 DJ |
4079 | # OK |
4080 | ;; | |
4081 | *) | |
7816bea0 | 4082 | echo "Unknown floating point type used in --with-float=$with_float" 1>&2 |
83079d89 DJ |
4083 | exit 1 |
4084 | ;; | |
4085 | esac | |
73f09c99 | 4086 | |
04dfc6df JU |
4087 | case ${with_fpu} in |
4088 | "" | single | double) | |
4089 | # OK | |
4090 | ;; | |
4091 | *) | |
4092 | echo "Unknown fpu type used in --with-fpu=$with_fpu" 1>&2 | |
4093 | exit 1 | |
4094 | ;; | |
4095 | esac | |
4096 | ||
ff3f3951 MR |
4097 | case ${with_nan} in |
4098 | "" | 2008 | legacy) | |
4099 | # OK | |
4100 | ;; | |
4101 | *) | |
4102 | echo "Unknown NaN encoding used in --with-nan=$with_nan" 1>&2 | |
4103 | exit 1 | |
4104 | ;; | |
4105 | esac | |
4106 | ||
050af144 MF |
4107 | case ${with_fp_32} in |
4108 | "" | 32 | xx | 64) | |
4109 | # OK | |
4110 | ;; | |
4111 | *) | |
4112 | echo "Unknown FP mode used in --with-fp-32=$with_fp_32" 1>&2 | |
4113 | exit 1 | |
4114 | ;; | |
4115 | esac | |
4116 | ||
4117 | case ${with_odd_spreg_32} in | |
4118 | yes) | |
4119 | with_odd_spreg_32="odd-spreg" | |
4120 | ;; | |
4121 | no) | |
4122 | with_odd_spreg_32="no-odd-spreg" | |
4123 | ;; | |
4124 | "") | |
4125 | # OK | |
4126 | ;; | |
4127 | *) | |
4128 | echo "Unknown odd-spreg-32 type used in --with-odd-spreg-32=$with_odd_spreg_32" 1>&2 | |
4129 | exit 1 | |
4130 | ;; | |
4131 | esac | |
4132 | ||
16aa42c0 NN |
4133 | case ${with_abi} in |
4134 | "" | 32 | o64 | n32 | 64 | eabi) | |
83079d89 DJ |
4135 | # OK |
4136 | ;; | |
4137 | *) | |
7816bea0 | 4138 | echo "Unknown ABI used in --with-abi=$with_abi" 1>&2 |
83079d89 DJ |
4139 | exit 1 |
4140 | ;; | |
4141 | esac | |
9f0df97a DD |
4142 | |
4143 | case ${with_divide} in | |
4144 | "" | breaks | traps) | |
4145 | # OK | |
4146 | ;; | |
4147 | *) | |
4148 | echo "Unknown division check type use in --with-divide=$with_divide" 1>&2 | |
4149 | exit 1 | |
66471b47 DD |
4150 | ;; |
4151 | esac | |
4152 | ||
4153 | case ${with_llsc} in | |
4154 | yes) | |
4155 | with_llsc=llsc | |
4156 | ;; | |
4157 | no) | |
4158 | with_llsc="no-llsc" | |
4159 | ;; | |
4160 | "") | |
4161 | # OK | |
4162 | ;; | |
4163 | *) | |
4164 | echo "Unknown llsc type used in --with-llsc" 1>&2 | |
4165 | exit 1 | |
4166 | ;; | |
9f0df97a | 4167 | esac |
e21d5757 DJ |
4168 | |
4169 | case ${with_mips_plt} in | |
4170 | yes) | |
4171 | with_mips_plt=plt | |
4172 | ;; | |
4173 | no) | |
4174 | with_mips_plt=no-plt | |
4175 | ;; | |
4176 | "") | |
4177 | ;; | |
4178 | *) | |
4179 | echo "Unknown --with-mips-plt argument: $with_mips_plt" 1>&2 | |
4180 | exit 1 | |
4181 | ;; | |
4182 | esac | |
b96c5923 DD |
4183 | |
4184 | case ${with_synci} in | |
4185 | yes) | |
4186 | with_synci=synci | |
4187 | ;; | |
965c1798 | 4188 | no) |
b96c5923 DD |
4189 | with_synci=no-synci |
4190 | ;; | |
965c1798 SE |
4191 | "") |
4192 | ;; | |
b96c5923 DD |
4193 | *) |
4194 | echo "Unknown synci type used in --with-synci" 1>&2 | |
4195 | exit 1 | |
4196 | ;; | |
4197 | esac | |
ab6b44cb MF |
4198 | |
4199 | case ${with_lxc1_sxc1} in | |
4200 | yes) | |
4201 | with_lxc1_sxc1=lxc1-sxc1 | |
4202 | ;; | |
4203 | no) | |
4204 | with_lxc1_sxc1=no-lxc1-sxc1 | |
4205 | ;; | |
4206 | "") | |
4207 | ;; | |
4208 | *) | |
4209 | echo "Unknown lxc1-sxc1 type used in --with-lxc1-sxc1" 1>&2 | |
4210 | exit 1 | |
4211 | ;; | |
4212 | esac | |
d821744c MF |
4213 | |
4214 | case ${with_madd4} in | |
4215 | yes) | |
4216 | with_madd4=madd4 | |
4217 | ;; | |
4218 | no) | |
4219 | with_madd4=no-madd4 | |
4220 | ;; | |
4221 | "") | |
4222 | ;; | |
4223 | *) | |
4224 | echo "Unknown madd4 type used in --with-madd4" 1>&2 | |
4225 | exit 1 | |
4226 | ;; | |
4227 | esac | |
9304f876 CJW |
4228 | ;; |
4229 | ||
4230 | nds32*-*-*) | |
4231 | supported_defaults="arch nds32_lib" | |
4232 | ||
4233 | # process --with-arch | |
4234 | case "${with_arch}" in | |
4235 | "" | v2 | v3 | v3m) | |
4236 | # OK | |
4237 | ;; | |
4238 | *) | |
4239 | echo "Cannot accept --with-arch=$with_arch, available values are: v2 v3 v3m" 1>&2 | |
4240 | exit 1 | |
4241 | ;; | |
4242 | esac | |
4243 | ||
4244 | # process --with-nds32-lib | |
4245 | case "${with_nds32_lib}" in | |
4246 | "") | |
4247 | # the default library is newlib | |
4248 | with_nds32_lib=newlib | |
4249 | ;; | |
4250 | newlib) | |
4251 | # OK | |
4252 | ;; | |
4253 | mculib) | |
4254 | # OK | |
4255 | ;; | |
4256 | *) | |
4257 | echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2 | |
4258 | exit 1 | |
4259 | ;; | |
4260 | esac | |
73f09c99 | 4261 | ;; |
73f09c99 | 4262 | |
77c50d73 SL |
4263 | nios2*-*-*) |
4264 | supported_defaults="arch" | |
4265 | case "$with_arch" in | |
4266 | "" | r1 | r2) | |
4267 | # OK | |
4268 | ;; | |
4269 | *) | |
4270 | echo "Unknown arch used in --with-arch=$with_arch" 1>&2 | |
4271 | exit 1 | |
4272 | ;; | |
4273 | esac | |
4274 | ;; | |
4275 | ||
7816bea0 | 4276 | powerpc*-*-* | rs6000-*-*) |
5123acd2 | 4277 | supported_defaults="abi cpu cpu_32 cpu_64 float tune tune_32 tune_64 advance_toolchain" |
7816bea0 | 4278 | |
c5f0fe67 | 4279 | for which in cpu cpu_32 cpu_64 tune tune_32 tune_64; do |
7816bea0 | 4280 | eval "val=\$with_$which" |
16aa42c0 | 4281 | case ${val} in |
1ab1739c | 4282 | default32 | default64) |
c5f0fe67 JM |
4283 | case $which in |
4284 | cpu | tune) | |
4285 | ;; | |
4286 | *) | |
4287 | echo "$val only valid for --with-cpu and --with-tune." 1>&2 | |
4288 | exit 1 | |
4289 | ;; | |
4290 | esac | |
1ab1739c JJ |
4291 | with_which="with_$which" |
4292 | eval $with_which= | |
4293 | ;; | |
b0bfee6e DE |
4294 | 405cr) |
4295 | tm_defines="${tm_defines} CONFIG_PPC405CR" | |
4296 | eval "with_$which=405" | |
4297 | ;; | |
5bd93ff6 | 4298 | "" | common | native \ |
6fa3b207 SB |
4299 | | power[3456789] | power5+ | power6x \ |
4300 | | powerpc | powerpc64 | powerpc64le \ | |
4301 | | rs64 \ | |
4adf8008 | 4302 | | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \ |
47f67e51 PB |
4303 | | 476 | 476fp | 505 | 601 | 602 | 603 | 603e | ec603e \ |
4304 | | 604 | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \ | |
683ed19e EW |
4305 | | a2 | e300c[23] | 854[08] | e500mc | e500mc64 | e5500 | e6500 \ |
4306 | | titan | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5 | cell) | |
7816bea0 DJ |
4307 | # OK |
4308 | ;; | |
4309 | *) | |
4310 | echo "Unknown cpu used in --with-$which=$val." 1>&2 | |
4311 | exit 1 | |
4312 | ;; | |
4313 | esac | |
4314 | done | |
b54214fe UW |
4315 | |
4316 | case "$with_abi" in | |
4317 | "" | elfv1 | elfv2 ) | |
4318 | #OK | |
4319 | ;; | |
4320 | *) | |
4321 | echo "Unknown ABI used in --with-abi=$with_abi" | |
4322 | exit 1 | |
4323 | ;; | |
4324 | esac | |
5123acd2 MM |
4325 | |
4326 | if test "x$with_advance_toolchain" != x; then | |
4327 | if test -d "/opt/$with_advance_toolchain/." -a \ | |
4328 | -d "/opt/$with_advance_toolchain/bin/." -a \ | |
4329 | -d "/opt/$with_advance_toolchain/include/."; then | |
4330 | ||
4331 | tm_file="$tm_file ./advance-toolchain.h" | |
4332 | (at="/opt/$with_advance_toolchain" | |
4333 | echo "/* Use Advance Toolchain $at */" | |
4334 | echo | |
5123acd2 MM |
4335 | echo "#undef LINK_OS_EXTRA_SPEC32" |
4336 | echo "#define LINK_OS_EXTRA_SPEC32" \ | |
4337 | "\"%(link_os_new_dtags)" \ | |
4338 | "-rpath $prefix/lib -rpath $at/lib" \ | |
4339 | "-L $prefix/lib -L $at/lib\"" | |
4340 | echo | |
4341 | echo "#undef LINK_OS_EXTRA_SPEC64" | |
4342 | echo "#define LINK_OS_EXTRA_SPEC64" \ | |
4343 | "\"%(link_os_new_dtags)" \ | |
4344 | "-rpath $prefix/lib64 -rpath $at/lib64" \ | |
4345 | "-L $prefix/lib64 -L $at/lib64\"" | |
4346 | echo | |
4347 | echo "#undef LINK_OS_NEW_DTAGS_SPEC" | |
4348 | echo "#define LINK_OS_NEW_DTAGS_SPEC" \ | |
4349 | "\"--enable-new-dtags\"" | |
4350 | echo | |
4351 | echo "#undef DYNAMIC_LINKER_PREFIX" | |
4352 | echo "#define DYNAMIC_LINKER_PREFIX \"$at\"" | |
4353 | echo | |
4354 | echo "#undef MD_EXEC_PREFIX" | |
4355 | echo "#define MD_EXEC_PREFIX \"$at/bin/\"" | |
4356 | echo | |
4357 | echo "#undef MD_STARTFILE_PREFIX" | |
4358 | echo "#define MD_STARTFILE_PREFIX \"$at/lib/\"") \ | |
4359 | > advance-toolchain.h | |
4360 | else | |
4361 | echo "Unknown advance-toolchain $with_advance_toolchain" | |
4362 | exit 1 | |
4363 | fi | |
4364 | fi | |
7816bea0 DJ |
4365 | ;; |
4366 | ||
f13e0d4e UW |
4367 | s390*-*-*) |
4368 | supported_defaults="arch mode tune" | |
4369 | ||
4370 | for which in arch tune; do | |
4371 | eval "val=\$with_$which" | |
16aa42c0 | 4372 | case ${val} in |
2731a5b3 | 4373 | "" | native | g5 | g6 | z900 | z990 | z9-109 | z9-ec | z10 | z196 | zEC12 | z13 | z14 | arch3 | arch5 | arch6 | arch7 | arch8 | arch9 | arch10 | arch11 | arch12) |
f13e0d4e UW |
4374 | # OK |
4375 | ;; | |
4376 | *) | |
4377 | echo "Unknown cpu used in --with-$which=$val." 1>&2 | |
4378 | exit 1 | |
4379 | ;; | |
4380 | esac | |
4381 | done | |
4382 | ||
16aa42c0 NN |
4383 | case ${with_mode} in |
4384 | "" | esa | zarch) | |
f13e0d4e UW |
4385 | # OK |
4386 | ;; | |
4387 | *) | |
4388 | echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2 | |
4389 | exit 1 | |
4390 | ;; | |
4391 | esac | |
4392 | ;; | |
4393 | ||
5ba02681 | 4394 | sh[123456ble]*-*-* | sh-*-*) |
da28a3b9 | 4395 | supported_defaults="cpu" |
25e651ca | 4396 | case "`echo $with_cpu | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz- | sed s/sh/m/`" in |
da28a3b9 JR |
4397 | "" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu ) |
4398 | # OK | |
4399 | ;; | |
157371cf AO |
4400 | m2a | m2a-single | m2a-single-only | m2a-nofpu) |
4401 | ;; | |
312209c6 AO |
4402 | m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al) |
4403 | ;; | |
da28a3b9 JR |
4404 | *) |
4405 | echo "Unknown CPU used in --with-cpu=$with_cpu, known values:" 1>&2 | |
4406 | echo "m1 m2 m2e m3 m3e m4 m4-single m4-single-only m4-nofpu" 1>&2 | |
312209c6 | 4407 | echo "m4a m4a-single m4a-single-only m4a-nofpu m4al" 1>&2 |
157371cf | 4408 | echo "m2a m2a-single m2a-single-only m2a-nofpu" 1>&2 |
da28a3b9 JR |
4409 | exit 1 |
4410 | ;; | |
4411 | esac | |
4412 | ;; | |
83079d89 | 4413 | sparc*-*-*) |
31177ef2 | 4414 | supported_defaults="cpu cpu_32 cpu_64 float tune tune_32 tune_64" |
7816bea0 | 4415 | |
31177ef2 | 4416 | for which in cpu cpu_32 cpu_64 tune tune_32 tune_64; do |
7816bea0 | 4417 | eval "val=\$with_$which" |
16aa42c0 | 4418 | case ${val} in |
07981468 KE |
4419 | "" | sparc | sparcv9 | sparc64 \ |
4420 | | v7 | cypress \ | |
d81230b5 | 4421 | | v8 | supersparc | hypersparc | leon | leon3 | leon3v7 \ |
07981468 KE |
4422 | | sparclite | f930 | f934 | sparclite86x \ |
4423 | | sparclet | tsc701 \ | |
70847a48 | 4424 | | v9 | ultrasparc | ultrasparc3 | niagara | niagara2 \ |
bcc3c3f1 | 4425 | | niagara3 | niagara4 | niagara7 | m8) |
7816bea0 DJ |
4426 | # OK |
4427 | ;; | |
4428 | *) | |
4429 | echo "Unknown cpu used in --with-$which=$val" 1>&2 | |
4430 | exit 1 | |
4431 | ;; | |
4432 | esac | |
4433 | done | |
73f09c99 | 4434 | |
16aa42c0 NN |
4435 | case ${with_float} in |
4436 | "" | soft | hard) | |
83079d89 DJ |
4437 | # OK |
4438 | ;; | |
4439 | *) | |
7816bea0 | 4440 | echo "Unknown floating point type used in --with-float=$with_float" 1>&2 |
83079d89 DJ |
4441 | exit 1 |
4442 | ;; | |
4443 | esac | |
73f09c99 | 4444 | ;; |
73f09c99 | 4445 | |
39aeae85 SL |
4446 | spu-*-*) |
4447 | supported_defaults="arch tune" | |
4448 | ||
4449 | for which in arch tune; do | |
4450 | eval "val=\$with_$which" | |
4451 | case ${val} in | |
4452 | "" | cell | celledp) | |
4453 | # OK | |
4454 | ;; | |
4455 | *) | |
4456 | echo "Unknown cpu used in --with-$which=$val." 1>&2 | |
4457 | exit 1 | |
4458 | ;; | |
4459 | esac | |
4460 | done | |
4461 | ;; | |
4462 | ||
bcead286 BS |
4463 | tic6x-*-*) |
4464 | supported_defaults="arch" | |
4465 | ||
4466 | case ${with_arch} in | |
4467 | "" | c62x | c64x | c64x+ | c67x | c67x+ | c674x) | |
4468 | # OK | |
4469 | ;; | |
4470 | *) | |
4471 | echo "Unknown arch used in --with-arch=$with_arch." 1>&2 | |
4472 | exit 1 | |
4473 | ;; | |
4474 | esac | |
4475 | ;; | |
4476 | ||
83079d89 | 4477 | v850*-*-*) |
7816bea0 | 4478 | supported_defaults=cpu |
16aa42c0 | 4479 | case ${with_cpu} in |
dbdbd982 | 4480 | "" | v850e | v850e1 | v850e2 | v850es | v850e2v3 | v850e3v5) |
83079d89 DJ |
4481 | # OK |
4482 | ;; | |
4483 | *) | |
4484 | echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2 | |
4485 | exit 1 | |
4486 | ;; | |
4487 | esac | |
73f09c99 | 4488 | ;; |
175650bc OH |
4489 | visium-*-*) |
4490 | supported_defaults="cpu" | |
4491 | case $with_cpu in | |
4492 | "" | gr5 | gr6) | |
4493 | ;; | |
4494 | *) echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2 | |
4495 | exit 1 | |
4496 | ;; | |
4497 | esac | |
4498 | ;; | |
fe3e7450 | 4499 | esac |
73f09c99 | 4500 | |
fe3e7450 AM |
4501 | # Set some miscellaneous flags for particular targets. |
4502 | target_cpu_default2= | |
4503 | case ${target} in | |
24034425 | 4504 | aarch64*-*-*) |
a3cd0246 | 4505 | if test x"$target_cpu_cname" != x |
24034425 | 4506 | then |
24034425 IB |
4507 | target_cpu_default2=$target_cpu_cname |
4508 | fi | |
4509 | ;; | |
4510 | ||
83079d89 | 4511 | arm*-*-*) |
a4af8a10 | 4512 | if test x$with_cpu = x |
32078532 | 4513 | then |
a4af8a10 RE |
4514 | echo "Don't know the target cpu" 1>&2 |
4515 | exit 1 | |
32078532 | 4516 | else |
a4af8a10 | 4517 | target_cpu_default2="\\\"$with_cpu\\\"" |
32078532 | 4518 | fi |
83079d89 | 4519 | ;; |
0e5a4ad8 | 4520 | |
cd985f66 | 4521 | hppa*-*-*) |
83079d89 | 4522 | if test x$gas = xyes |
61ed06c3 | 4523 | then |
f4000c0b | 4524 | target_cpu_default2="MASK_GAS" |
83079d89 | 4525 | fi |
73f09c99 | 4526 | ;; |
73f09c99 | 4527 | |
cd985f66 | 4528 | fido*-*-* | m68k*-*-*) |
900ec02d | 4529 | target_cpu_default2=$m68k_cpu_ident |
47c94d21 | 4530 | tmake_file="m68k/t-opts $tmake_file" |
10e96df4 NS |
4531 | if [ x"$m68k_arch_family" != x ]; then |
4532 | tmake_file="m68k/t-$m68k_arch_family $tmake_file" | |
4533 | fi | |
900ec02d JB |
4534 | ;; |
4535 | ||
ff473280 | 4536 | i[34567]86-*-darwin* | x86_64-*-darwin*) |
ff473280 | 4537 | ;; |
e0cdc09f MK |
4538 | i[34567]86-*-linux* | x86_64-*-linux*) |
4539 | tmake_file="$tmake_file i386/t-linux" | |
4540 | ;; | |
4541 | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu) | |
4542 | tmake_file="$tmake_file i386/t-kfreebsd" | |
4543 | ;; | |
4544 | i[34567]86-*-gnu*) | |
4545 | tmake_file="$tmake_file i386/t-gnu" | |
ff473280 | 4546 | ;; |
3df6ff35 AP |
4547 | i[34567]86-*-msdosdjgpp*) |
4548 | tmake_file="${tmake_file} i386/t-djgpp" | |
4549 | ;; | |
fbdd5d87 | 4550 | i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
f128db92 | 4551 | ;; |
740f2bf3 KT |
4552 | i[34567]86-*-cygwin* | x86_64-*-cygwin*) |
4553 | ;; | |
4554 | i[34567]86-*-mingw* | x86_64-*-mingw*) | |
e997fb9c | 4555 | ;; |
dbed5a9b JM |
4556 | i[34567]86-*-dragonfly* | x86_64-*-dragonfly*) |
4557 | ;; | |
d78552bd | 4558 | i[34567]86-*-freebsd* | x86_64-*-freebsd*) |
d78552bd | 4559 | ;; |
c252db20 | 4560 | ia64*-*-linux*) |
c252db20 | 4561 | ;; |
ff473280 | 4562 | |
83079d89 | 4563 | mips*-*-*) |
5811cb27 RS |
4564 | if test x$gnu_ld = xyes |
4565 | then | |
21c425ee | 4566 | target_cpu_default2="MASK_SPLIT_ADDRESSES" |
5811cb27 | 4567 | fi |
b01bc573 | 4568 | case ${target} in |
83079d89 DJ |
4569 | mips*el-*-*) |
4570 | tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines" | |
4571 | ;; | |
4572 | esac | |
8cfebf86 SE |
4573 | if test x$with_arch != x; then |
4574 | default_mips_arch=$with_arch | |
4575 | fi | |
4576 | if test x$with_abi != x; then | |
4577 | default_mips_abi=$with_abi | |
4578 | fi | |
4579 | case ${default_mips_arch} in | |
4580 | mips1) tm_defines="$tm_defines MIPS_ISA_DEFAULT=1" ;; | |
4581 | mips2) tm_defines="$tm_defines MIPS_ISA_DEFAULT=2" ;; | |
4582 | mips3) tm_defines="$tm_defines MIPS_ISA_DEFAULT=3" ;; | |
4583 | mips4) tm_defines="$tm_defines MIPS_ISA_DEFAULT=4" ;; | |
4584 | mips32) tm_defines="$tm_defines MIPS_ISA_DEFAULT=32" ;; | |
4585 | mips32r2) tm_defines="$tm_defines MIPS_ISA_DEFAULT=33" ;; | |
82f84ecb | 4586 | mips32r6) tm_defines="$tm_defines MIPS_ISA_DEFAULT=37" ;; |
8cfebf86 SE |
4587 | mips64) tm_defines="$tm_defines MIPS_ISA_DEFAULT=64" ;; |
4588 | mips64r2) tm_defines="$tm_defines MIPS_ISA_DEFAULT=65" ;; | |
82f84ecb | 4589 | mips64r6) tm_defines="$tm_defines MIPS_ISA_DEFAULT=69" ;; |
8cfebf86 SE |
4590 | esac |
4591 | case ${default_mips_abi} in | |
4592 | 32) tm_defines="$tm_defines MIPS_ABI_DEFAULT=ABI_32" ;; | |
4593 | o64) tm_defines="$tm_defines MIPS_ABI_DEFAULT=ABI_O64" ;; | |
4594 | n32) tm_defines="$tm_defines MIPS_ABI_DEFAULT=ABI_N32" ;; | |
4595 | 64) tm_defines="$tm_defines MIPS_ABI_DEFAULT=ABI_64" ;; | |
4596 | eabi) tm_defines="$tm_defines MIPS_ABI_DEFAULT=ABI_EABI" ;; | |
4597 | esac | |
bd9c1f8f | 4598 | tmake_file="mips/t-mips $tmake_file" |
74826b0f | 4599 | ;; |
83079d89 DJ |
4600 | |
4601 | powerpc*-*-* | rs6000-*-*) | |
7816bea0 DJ |
4602 | # FIXME: The PowerPC port uses the value set at compile time, |
4603 | # although it's only cosmetic. | |
83079d89 | 4604 | if test "x$with_cpu" != x |
61ed06c3 | 4605 | then |
83079d89 | 4606 | target_cpu_default2="\\\"$with_cpu\\\"" |
61ed06c3 | 4607 | fi |
83349046 SB |
4608 | out_file="${cpu_type}/${cpu_type}.c" |
4609 | c_target_objs="${c_target_objs} ${cpu_type}-c.o" | |
4610 | cxx_target_objs="${cxx_target_objs} ${cpu_type}-c.o" | |
4611 | tmake_file="${cpu_type}/t-${cpu_type} ${tmake_file}" | |
74826b0f | 4612 | ;; |
73f09c99 | 4613 | |
a6ab9fc0 R |
4614 | sh[123456ble]*-*-* | sh-*-*) |
4615 | c_target_objs="${c_target_objs} sh-c.o" | |
4616 | cxx_target_objs="${cxx_target_objs} sh-c.o" | |
4617 | ;; | |
4618 | ||
83079d89 | 4619 | sparc*-*-*) |
7816bea0 DJ |
4620 | # Some standard aliases. |
4621 | case x$with_cpu in | |
4622 | xsparc) | |
4623 | with_cpu=v7 | |
4624 | ;; | |
7816bea0 DJ |
4625 | xsparcv9 | xsparc64) |
4626 | with_cpu=v9 | |
4627 | ;; | |
4628 | esac | |
4629 | ||
38ae58ca EB |
4630 | if test x$with_tune = x ; then |
4631 | case ${target} in | |
4632 | *-leon-*) | |
4633 | with_tune=leon | |
4634 | ;; | |
4635 | *-leon[3-9]*) | |
4636 | with_tune=leon3 | |
4637 | ;; | |
4638 | esac | |
4639 | fi | |
4640 | ||
a4d05547 | 4641 | # The SPARC port checks this value at compile-time. |
73f09c99 DJ |
4642 | target_cpu_default2="TARGET_CPU_$with_cpu" |
4643 | ;; | |
07981468 | 4644 | |
83079d89 DJ |
4645 | v850*-*-*) |
4646 | case "x$with_cpu" in | |
4647 | x) | |
4648 | ;; | |
dbdbd982 | 4649 | xv850e | xv850e1 | xv850e2 | xv850e2v3 | xv850e3v5) |
83079d89 DJ |
4650 | target_cpu_default2="TARGET_CPU_$with_cpu" |
4651 | ;; | |
1dcad079 NC |
4652 | xv850es) |
4653 | target_cpu_default2="TARGET_CPU_v850e1" | |
4654 | ;; | |
83079d89 DJ |
4655 | esac |
4656 | ;; | |
175650bc OH |
4657 | visium-*-*) |
4658 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
4659 | ;; | |
fe3e7450 | 4660 | esac |
61ed06c3 | 4661 | |
fe3e7450 | 4662 | t= |
d821744c | 4663 | all_defaults="abi cpu cpu_32 cpu_64 arch arch_32 arch_64 tune tune_32 tune_64 schedule float mode fpu nan fp_32 odd_spreg_32 divide llsc mips-plt synci tls lxc1-sxc1 madd4" |
fe3e7450 AM |
4664 | for option in $all_defaults |
4665 | do | |
e21d5757 | 4666 | eval "val=\$with_"`echo $option | sed s/-/_/g` |
fe3e7450 AM |
4667 | if test -n "$val"; then |
4668 | case " $supported_defaults " in | |
4669 | *" $option "*) | |
4670 | ;; | |
4671 | *) | |
4672 | echo "This target does not support --with-$option." 2>&1 | |
6e0eea31 | 4673 | echo "Valid --with options are: $supported_defaults" 2>&1 |
fe3e7450 AM |
4674 | exit 1 |
4675 | ;; | |
4676 | esac | |
7816bea0 | 4677 | |
fe3e7450 AM |
4678 | if test "x$t" = x |
4679 | then | |
4680 | t="{ \"$option\", \"$val\" }" | |
4681 | else | |
4682 | t="${t}, { \"$option\", \"$val\" }" | |
7816bea0 | 4683 | fi |
7816bea0 | 4684 | fi |
fe3e7450 | 4685 | done |
7816bea0 | 4686 | |
fe3e7450 AM |
4687 | if test "x$t" = x |
4688 | then | |
4689 | configure_default_options="{ { NULL, NULL} }" | |
4690 | else | |
4691 | configure_default_options="{ ${t} }" | |
4692 | fi | |
4693 | ||
4694 | if test "$target_cpu_default2" != "" | |
4695 | then | |
4696 | if test "$target_cpu_default" != "" | |
61ed06c3 | 4697 | then |
fe3e7450 AM |
4698 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" |
4699 | else | |
4700 | target_cpu_default=$target_cpu_default2 | |
61ed06c3 | 4701 | fi |
fe3e7450 | 4702 | fi |
87b6c18c IV |
4703 | |
4704 | case ${target} in | |
4705 | i[34567]86-*-* | x86_64-*-*) | |
4706 | if test x$enable_as_accelerator = xyes; then | |
4707 | extra_programs="mkoffload\$(exeext)" | |
4708 | fi | |
4709 | ;; | |
4710 | esac |