annotate gcc/config/riscv/riscv.opt @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ; Options for the RISC-V port of the compiler
kono
parents:
diff changeset
2 ;
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
3 ; Copyright (C) 2011-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
4 ;
kono
parents:
diff changeset
5 ; This file is part of GCC.
kono
parents:
diff changeset
6 ;
kono
parents:
diff changeset
7 ; GCC is free software; you can redistribute it and/or modify it under
kono
parents:
diff changeset
8 ; the terms of the GNU General Public License as published by the Free
kono
parents:
diff changeset
9 ; Software Foundation; either version 3, or (at your option) any later
kono
parents:
diff changeset
10 ; version.
kono
parents:
diff changeset
11 ;
kono
parents:
diff changeset
12 ; GCC is distributed in the hope that it will be useful, but WITHOUT
kono
parents:
diff changeset
13 ; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
kono
parents:
diff changeset
14 ; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
kono
parents:
diff changeset
15 ; License for more details.
kono
parents:
diff changeset
16 ;
kono
parents:
diff changeset
17 ; You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
18 ; along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
19 ; <http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 HeaderInclude
kono
parents:
diff changeset
22 config/riscv/riscv-opts.h
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 mbranch-cost=
kono
parents:
diff changeset
25 Target RejectNegative Joined UInteger Var(riscv_branch_cost)
kono
parents:
diff changeset
26 -mbranch-cost=N Set the cost of branches to roughly N instructions.
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 mplt
kono
parents:
diff changeset
29 Target Report Var(TARGET_PLT) Init(1)
kono
parents:
diff changeset
30 When generating -fpic code, allow the use of PLTs. Ignored for fno-pic.
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 mabi=
kono
parents:
diff changeset
33 Target Report RejectNegative Joined Enum(abi_type) Var(riscv_abi) Init(ABI_ILP32)
kono
parents:
diff changeset
34 Specify integer and floating-point calling convention.
kono
parents:
diff changeset
35
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
36 mpreferred-stack-boundary=
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
37 Target RejectNegative Joined UInteger Var(riscv_preferred_stack_boundary_arg)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
38 Attempt to keep stack aligned to this power of 2.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
39
111
kono
parents:
diff changeset
40 Enum
kono
parents:
diff changeset
41 Name(abi_type) Type(enum riscv_abi_type)
kono
parents:
diff changeset
42 Supported ABIs (for use with the -mabi= option):
kono
parents:
diff changeset
43
kono
parents:
diff changeset
44 EnumValue
kono
parents:
diff changeset
45 Enum(abi_type) String(ilp32) Value(ABI_ILP32)
kono
parents:
diff changeset
46
kono
parents:
diff changeset
47 EnumValue
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
48 Enum(abi_type) String(ilp32e) Value(ABI_ILP32E)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
49
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
50 EnumValue
111
kono
parents:
diff changeset
51 Enum(abi_type) String(ilp32f) Value(ABI_ILP32F)
kono
parents:
diff changeset
52
kono
parents:
diff changeset
53 EnumValue
kono
parents:
diff changeset
54 Enum(abi_type) String(ilp32d) Value(ABI_ILP32D)
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56 EnumValue
kono
parents:
diff changeset
57 Enum(abi_type) String(lp64) Value(ABI_LP64)
kono
parents:
diff changeset
58
kono
parents:
diff changeset
59 EnumValue
kono
parents:
diff changeset
60 Enum(abi_type) String(lp64f) Value(ABI_LP64F)
kono
parents:
diff changeset
61
kono
parents:
diff changeset
62 EnumValue
kono
parents:
diff changeset
63 Enum(abi_type) String(lp64d) Value(ABI_LP64D)
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65 mfdiv
kono
parents:
diff changeset
66 Target Report Mask(FDIV)
kono
parents:
diff changeset
67 Use hardware floating-point divide and square root instructions.
kono
parents:
diff changeset
68
kono
parents:
diff changeset
69 mdiv
kono
parents:
diff changeset
70 Target Report Mask(DIV)
kono
parents:
diff changeset
71 Use hardware instructions for integer division.
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 march=
kono
parents:
diff changeset
74 Target Report RejectNegative Joined
kono
parents:
diff changeset
75 -march= Generate code for given RISC-V ISA (e.g. RV64IM). ISA strings must be
kono
parents:
diff changeset
76 lower-case.
kono
parents:
diff changeset
77
kono
parents:
diff changeset
78 mtune=
kono
parents:
diff changeset
79 Target RejectNegative Joined Var(riscv_tune_string)
kono
parents:
diff changeset
80 -mtune=PROCESSOR Optimize the output for PROCESSOR.
kono
parents:
diff changeset
81
kono
parents:
diff changeset
82 msmall-data-limit=
kono
parents:
diff changeset
83 Target Joined Separate UInteger Var(g_switch_value) Init(8)
kono
parents:
diff changeset
84 -msmall-data-limit=N Put global and static data smaller than <number> bytes into a special section (on some targets).
kono
parents:
diff changeset
85
kono
parents:
diff changeset
86 msave-restore
kono
parents:
diff changeset
87 Target Report Mask(SAVE_RESTORE)
kono
parents:
diff changeset
88 Use smaller but slower prologue and epilogue code.
kono
parents:
diff changeset
89
kono
parents:
diff changeset
90 mcmodel=
kono
parents:
diff changeset
91 Target Report RejectNegative Joined Enum(code_model) Var(riscv_cmodel) Init(TARGET_DEFAULT_CMODEL)
kono
parents:
diff changeset
92 Specify the code model.
kono
parents:
diff changeset
93
kono
parents:
diff changeset
94 mstrict-align
kono
parents:
diff changeset
95 Target Report Mask(STRICT_ALIGN) Save
kono
parents:
diff changeset
96 Do not generate unaligned memory accesses.
kono
parents:
diff changeset
97
kono
parents:
diff changeset
98 Enum
kono
parents:
diff changeset
99 Name(code_model) Type(enum riscv_code_model)
kono
parents:
diff changeset
100 Known code models (for use with the -mcmodel= option):
kono
parents:
diff changeset
101
kono
parents:
diff changeset
102 EnumValue
kono
parents:
diff changeset
103 Enum(code_model) String(medlow) Value(CM_MEDLOW)
kono
parents:
diff changeset
104
kono
parents:
diff changeset
105 EnumValue
kono
parents:
diff changeset
106 Enum(code_model) String(medany) Value(CM_MEDANY)
kono
parents:
diff changeset
107
kono
parents:
diff changeset
108 mexplicit-relocs
kono
parents:
diff changeset
109 Target Report Mask(EXPLICIT_RELOCS)
kono
parents:
diff changeset
110 Use %reloc() operators, rather than assembly macros, to load addresses.
kono
parents:
diff changeset
111
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
112 mrelax
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
113 Target Bool Var(riscv_mrelax) Init(1)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
114 Take advantage of linker relaxations to reduce the number of instructions
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
115 required to materialize symbol addresses.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
116
111
kono
parents:
diff changeset
117 Mask(64BIT)
kono
parents:
diff changeset
118
kono
parents:
diff changeset
119 Mask(MUL)
kono
parents:
diff changeset
120
kono
parents:
diff changeset
121 Mask(ATOMIC)
kono
parents:
diff changeset
122
kono
parents:
diff changeset
123 Mask(HARD_FLOAT)
kono
parents:
diff changeset
124
kono
parents:
diff changeset
125 Mask(DOUBLE_FLOAT)
kono
parents:
diff changeset
126
kono
parents:
diff changeset
127 Mask(RVC)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
128
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
129 Mask(RVE)