[NDS32] Support Linux target for nds32.
[official-gcc.git] / gcc / config / nds32 / nds32.opt
blob871ae1e07ca84c6e991aae63eae71cccb3032686
1 ; Options of Andes NDS32 cpu for GNU compiler
2 ; Copyright (C) 2012-2018 Free Software Foundation, Inc.
3 ; Contributed by Andes Technology Corporation.
5 ; This file is part of GCC.
7 ; GCC is free software; you can redistribute it and/or modify it
8 ; under the terms of the GNU General Public License as published
9 ; by the Free Software Foundation; either version 3, or (at your
10 ; option) any later version.
12 ; GCC is distributed in the hope that it will be useful, but WITHOUT
13 ; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 ; or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
15 ; License for more details.
17 ; You should have received a copy of the GNU General Public License
18 ; along with GCC; see the file COPYING3.  If not see
19 ; <http://www.gnu.org/licenses/>.
21 HeaderInclude
22 config/nds32/nds32-opts.h
24 ; ---------------------------------------------------------------
25 ; The following options are designed for aliasing and compatibility options.
28 Target RejectNegative Alias(mbig-endian)
29 Generate code in big-endian mode.
32 Target RejectNegative Alias(mlittle-endian)
33 Generate code in little-endian mode.
35 mfp-as-gp
36 Target RejectNegative Alias(mforce-fp-as-gp)
37 Force performing fp-as-gp optimization.
39 mno-fp-as-gp
40 Target RejectNegative Alias(mforbid-fp-as-gp)
41 Forbid performing fp-as-gp optimization.
43 ; ---------------------------------------------------------------
45 mabi=
46 Target RejectNegative Joined Enum(abi_type) Var(nds32_abi) Init(TARGET_DEFAULT_ABI)
47 Specify which ABI type to generate code for: 2, 2fp+.
49 Enum
50 Name(abi_type) Type(enum abi_type)
51 Known ABIs (for use with the -mabi= option):
53 EnumValue
54 Enum(abi_type) String(2) Value(NDS32_ABI_V2)
56 EnumValue
57 Enum(abi_type) String(2fp+) Value(NDS32_ABI_V2_FP_PLUS)
59 mfloat-abi=soft
60 Target RejectNegative Alias(mabi=, 2)
61 Specify use soft floating point ABI which mean alias to -mabi=2.
63 mfloat-abi=hard
64 Target RejectNegative Alias(mabi=, 2fp+)
65 Specify use soft floating point ABI which mean alias to -mabi=2fp+.
67 ; ---------------------------------------------------------------
69 mreduced-regs
70 Target Report RejectNegative Negative(mfull-regs) Mask(REDUCED_REGS)
71 Use reduced-set registers for register allocation.
73 mfull-regs
74 Target Report RejectNegative Negative(mreduced-regs) InverseMask(REDUCED_REGS)
75 Use full-set registers for register allocation.
77 ; ---------------------------------------------------------------
79 malways-align
80 Target Mask(ALWAYS_ALIGN)
81 Always align function entry, jump target and return address.
83 malign-functions
84 Target Mask(ALIGN_FUNCTION)
85 Align function entry to 4 byte.
87 mbig-endian
88 Target Undocumented RejectNegative Negative(mlittle-endian) Mask(BIG_ENDIAN)
89 Generate code in big-endian mode.
91 mlittle-endian
92 Target Undocumented RejectNegative Negative(mbig-endian) InverseMask(BIG_ENDIAN)
93 Generate code in little-endian mode.
95 mforce-fp-as-gp
96 Target Undocumented Mask(FORCE_FP_AS_GP)
97 Prevent $fp being allocated during register allocation so that compiler is able to force performing fp-as-gp optimization.
99 mforbid-fp-as-gp
100 Target Undocumented Mask(FORBID_FP_AS_GP)
101 Forbid using $fp to access static and global variables.  This option strictly forbids fp-as-gp optimization regardless of '-mforce-fp-as-gp'.
103 mict-model=
104 Target Undocumented RejectNegative Joined Enum(nds32_ict_model_type) Var(nds32_ict_model) Init(ICT_MODEL_SMALL)
105 Specify the address generation strategy for ICT call's code model.
107 Enum
108 Name(nds32_ict_model_type) Type(enum nds32_ict_model_type)
109 Known cmodel types (for use with the -mict-model= option):
111 EnumValue
112 Enum(nds32_ict_model_type) String(small) Value(ICT_MODEL_SMALL)
114 EnumValue
115 Enum(nds32_ict_model_type) String(large) Value(ICT_MODEL_LARGE)
117 mcmov
118 Target Report Mask(CMOV)
119 Generate conditional move instructions.
121 mhw-abs
122 Target Report Mask(HW_ABS)
123 Generate hardware abs instructions.
125 mext-perf
126 Target Report Mask(EXT_PERF)
127 Generate performance extension instructions.
129 mext-perf2
130 Target Report Mask(EXT_PERF2)
131 Generate performance extension version 2 instructions.
133 mext-string
134 Target Report Mask(EXT_STRING)
135 Generate string extension instructions.
137 mext-dsp
138 Target Report Mask(EXT_DSP)
139 Generate DSP extension instructions.
141 mv3push
142 Target Report Mask(V3PUSH)
143 Generate v3 push25/pop25 instructions.
145 m16-bit
146 Target Report Mask(16_BIT)
147 Generate 16-bit instructions.
149 mrelax-hint
150 Target Report Mask(RELAX_HINT)
151 Insert relax hint for linker to do relaxation.
154 Target Report Mask(VH) Condition(!TARGET_LINUX_ABI)
155 Enable Virtual Hosting support.
157 misr-vector-size=
158 Target RejectNegative Joined UInteger Var(nds32_isr_vector_size) Init(NDS32_DEFAULT_ISR_VECTOR_SIZE)
159 Specify the size of each interrupt vector, which must be 4 or 16.
161 mcache-block-size=
162 Target RejectNegative Joined UInteger Var(nds32_cache_block_size) Init(NDS32_DEFAULT_CACHE_BLOCK_SIZE)
163 Specify the size of each cache block, which must be a power of 2 between 4 and 512.
165 march=
166 Target RejectNegative Joined Enum(nds32_arch_type) Var(nds32_arch_option) Init(ARCH_V3)
167 Specify the name of the target architecture.
169 Enum
170 Name(nds32_arch_type) Type(enum nds32_arch_type)
171 Known arch types (for use with the -march= option):
173 EnumValue
174 Enum(nds32_arch_type) String(v2) Value(ARCH_V2)
176 EnumValue
177 Enum(nds32_arch_type) String(v3) Value(ARCH_V3)
179 EnumValue
180 Enum(nds32_arch_type) String(v3m) Value(ARCH_V3M)
182 EnumValue
183 Enum(nds32_arch_type) String(v3f) Value(ARCH_V3F)
185 EnumValue
186 Enum(nds32_arch_type) String(v3s) Value(ARCH_V3S)
188 mcpu=
189 Target RejectNegative Joined Enum(nds32_cpu_type) Var(nds32_cpu_option) Init(CPU_N9)
190 Specify the cpu for pipeline model.
192 Enum
193 Name(nds32_cpu_type) Type(enum nds32_cpu_type)
194 Known cpu types (for use with the -mcpu= option):
196 EnumValue
197 Enum(nds32_cpu_type) String(n6) Value(CPU_N6)
199 EnumValue
200 Enum(nds32_cpu_type) String(n650) Value(CPU_N6)
202 EnumValue
203 Enum(nds32_cpu_type) String(n7) Value(CPU_N7)
205 EnumValue
206 Enum(nds32_cpu_type) String(n705) Value(CPU_N7)
208 EnumValue
209 Enum(nds32_cpu_type) String(n8) Value(CPU_N8)
211 EnumValue
212 Enum(nds32_cpu_type) String(n801) Value(CPU_N8)
214 EnumValue
215 Enum(nds32_cpu_type) String(sn8) Value(CPU_N8)
217 EnumValue
218 Enum(nds32_cpu_type) String(sn801) Value(CPU_N8)
220 EnumValue
221 Enum(nds32_cpu_type) String(s8) Value(CPU_N8)
223 EnumValue
224 Enum(nds32_cpu_type) String(s801) Value(CPU_N8)
226 EnumValue
227 Enum(nds32_cpu_type) String(e8) Value(CPU_E8)
229 EnumValue
230 Enum(nds32_cpu_type) String(e801) Value(CPU_E8)
232 EnumValue
233 Enum(nds32_cpu_type) String(n820) Value(CPU_E8)
235 EnumValue
236 Enum(nds32_cpu_type) String(s830) Value(CPU_E8)
238 EnumValue
239 Enum(nds32_cpu_type) String(e830) Value(CPU_E8)
241 EnumValue
242 Enum(nds32_cpu_type) String(n9) Value(CPU_N9)
244 EnumValue
245 Enum(nds32_cpu_type) String(n903) Value(CPU_N9)
247 EnumValue
248 Enum(nds32_cpu_type) String(n903a) Value(CPU_N9)
250 EnumValue
251 Enum(nds32_cpu_type) String(n968) Value(CPU_N9)
253 EnumValue
254 Enum(nds32_cpu_type) String(n968a) Value(CPU_N9)
256 EnumValue
257 Enum(nds32_cpu_type) String(n10) Value(CPU_N10)
259 EnumValue
260 Enum(nds32_cpu_type) String(n1033) Value(CPU_N10)
262 EnumValue
263 Enum(nds32_cpu_type) String(n1033a) Value(CPU_N10)
265 EnumValue
266 Enum(nds32_cpu_type) String(n1033-fpu) Value(CPU_N10)
268 EnumValue
269 Enum(nds32_cpu_type) String(n1033-spu) Value(CPU_N10)
271 EnumValue
272 Enum(nds32_cpu_type) String(n1068) Value(CPU_N10)
274 EnumValue
275 Enum(nds32_cpu_type) String(n1068a) Value(CPU_N10)
277 EnumValue
278 Enum(nds32_cpu_type) String(n1068-fpu) Value(CPU_N10)
280 EnumValue
281 Enum(nds32_cpu_type) String(n1068a-fpu) Value(CPU_N10)
283 EnumValue
284 Enum(nds32_cpu_type) String(n1068-spu) Value(CPU_N10)
286 EnumValue
287 Enum(nds32_cpu_type) String(n1068a-spu) Value(CPU_N10)
289 EnumValue
290 Enum(nds32_cpu_type) String(d10) Value(CPU_N10)
292 EnumValue
293 Enum(nds32_cpu_type) String(d1088) Value(CPU_N10)
295 EnumValue
296 Enum(nds32_cpu_type) String(d1088-fpu) Value(CPU_N10)
298 EnumValue
299 Enum(nds32_cpu_type) String(d1088-spu) Value(CPU_N10)
301 EnumValue
302 Enum(nds32_cpu_type) Undocumented String(graywolf) Value(CPU_GRAYWOLF)
304 EnumValue
305 Enum(nds32_cpu_type) String(n15) Value(CPU_GRAYWOLF)
307 EnumValue
308 Enum(nds32_cpu_type) String(d15) Value(CPU_GRAYWOLF)
310 EnumValue
311 Enum(nds32_cpu_type) String(n15s) Value(CPU_GRAYWOLF)
313 EnumValue
314 Enum(nds32_cpu_type) String(d15s) Value(CPU_GRAYWOLF)
316 EnumValue
317 Enum(nds32_cpu_type) String(n15f) Value(CPU_GRAYWOLF)
319 EnumValue
320 Enum(nds32_cpu_type) String(d15f) Value(CPU_GRAYWOLF)
322 EnumValue
323 Enum(nds32_cpu_type) String(n12) Value(CPU_N12)
325 EnumValue
326 Enum(nds32_cpu_type) String(n1213) Value(CPU_N12)
328 EnumValue
329 Enum(nds32_cpu_type) String(n1233) Value(CPU_N12)
331 EnumValue
332 Enum(nds32_cpu_type) String(n1233-fpu) Value(CPU_N12)
334 EnumValue
335 Enum(nds32_cpu_type) String(n1233-spu) Value(CPU_N12)
337 EnumValue
338 Enum(nds32_cpu_type) String(n13) Value(CPU_N13)
340 EnumValue
341 Enum(nds32_cpu_type) String(n1337) Value(CPU_N13)
343 EnumValue
344 Enum(nds32_cpu_type) String(n1337-fpu) Value(CPU_N13)
346 EnumValue
347 Enum(nds32_cpu_type) String(n1337-spu) Value(CPU_N13)
349 EnumValue
350 Enum(nds32_cpu_type) String(simple) Value(CPU_SIMPLE)
352 mconfig-fpu=
353 Target RejectNegative Joined Enum(float_reg_number) Var(nds32_fp_regnum) Init(TARGET_CONFIG_FPU_DEFAULT)
354 Specify a fpu configuration value from 0 to 7; 0-3 is as FPU spec says, and 4-7 is corresponding to 0-3.
356 Enum
357 Name(float_reg_number) Type(enum float_reg_number)
358 Known floating-point number of registers (for use with the -mconfig-fpu= option):
360 EnumValue
361 Enum(float_reg_number) String(0) Value(NDS32_CONFIG_FPU_0)
363 EnumValue
364 Enum(float_reg_number) String(1) Value(NDS32_CONFIG_FPU_1)
366 EnumValue
367 Enum(float_reg_number) String(2) Value(NDS32_CONFIG_FPU_2)
369 EnumValue
370 Enum(float_reg_number) String(3) Value(NDS32_CONFIG_FPU_3)
372 EnumValue
373 Enum(float_reg_number) String(4) Value(NDS32_CONFIG_FPU_4)
375 EnumValue
376 Enum(float_reg_number) String(5) Value(NDS32_CONFIG_FPU_5)
378 EnumValue
379 Enum(float_reg_number) String(6) Value(NDS32_CONFIG_FPU_6)
381 EnumValue
382 Enum(float_reg_number) String(7) Value(NDS32_CONFIG_FPU_7)
384 mconfig-mul=
385 Target RejectNegative Joined Enum(nds32_mul_type) Var(nds32_mul_config) Init(MUL_TYPE_FAST_1)
386 Specify configuration of instruction mul: fast1, fast2 or slow. The default is fast1.
388 Enum
389 Name(nds32_mul_type) Type(enum nds32_mul_type)
391 EnumValue
392 Enum(nds32_mul_type) String(fast) Value(MUL_TYPE_FAST_1)
394 EnumValue
395 Enum(nds32_mul_type) String(fast1) Value(MUL_TYPE_FAST_1)
397 EnumValue
398 Enum(nds32_mul_type) String(fast2) Value(MUL_TYPE_FAST_2)
400 EnumValue
401 Enum(nds32_mul_type) String(slow) Value(MUL_TYPE_SLOW)
403 mconfig-register-ports=
404 Target RejectNegative Joined Enum(nds32_register_ports) Var(nds32_register_ports_config) Init(REG_PORT_3R2W)
405 Specify how many read/write ports for n9/n10 cores.  The value should be 3r2w or 2r1w.
407 Enum
408 Name(nds32_register_ports) Type(enum nds32_register_ports)
410 EnumValue
411 Enum(nds32_register_ports) String(3r2w) Value(REG_PORT_3R2W)
413 EnumValue
414 Enum(nds32_register_ports) String(2r1w) Value(REG_PORT_2R1W)
416 mctor-dtor
417 Target Report
418 Enable constructor/destructor feature.
420 mrelax
421 Target Report
422 Guide linker to relax instructions.
424 mext-fpu-fma
425 Target Report Mask(EXT_FPU_FMA)
426 Generate floating-point multiply-accumulation instructions.
428 mext-fpu-sp
429 Target Report Mask(FPU_SINGLE)
430 Generate single-precision floating-point instructions.
432 mext-fpu-dp
433 Target Report Mask(FPU_DOUBLE)
434 Generate double-precision floating-point instructions.
436 mforce-no-ext-dsp
437 Target Undocumented Report Mask(FORCE_NO_EXT_DSP)
438 Force disable hardware loop, even use -mext-dsp.
440 mret-in-naked-func
441 Target Var(flag_ret_in_naked_func) Init(1)
442 Generate return instruction in naked function.
444 malways-save-lp
445 Target Var(flag_always_save_lp) Init(0)
446 Always save $lp in the stack.
448 munaligned-access
449 Target Report Var(flag_unaligned_access) Init(0)
450 Enable unaligned word and halfword accesses to packed data.
452 minline-asm-r15
453 Target Report Var(flag_inline_asm_r15) Init(0)
454 Allow use r15 for inline ASM.