]>
Commit | Line | Data |
---|---|---|
a9341855 | 1 | ; Options for the SPARC port of the compiler |
2 | ; | |
fbd26352 | 3 | ; Copyright (C) 2005-2019 Free Software Foundation, Inc. |
a9341855 | 4 | ; |
5 | ; This file is part of GCC. | |
6 | ; | |
7 | ; GCC is free software; you can redistribute it and/or modify it under | |
8 | ; the terms of the GNU General Public License as published by the Free | |
038d1e19 | 9 | ; Software Foundation; either version 3, or (at your option) any later |
a9341855 | 10 | ; version. |
11 | ; | |
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. | |
16 | ; | |
17 | ; You should have received a copy of the GNU General Public License | |
038d1e19 | 18 | ; along with GCC; see the file COPYING3. If not see |
19 | ; <http://www.gnu.org/licenses/>. | |
a9341855 | 20 | |
a2eed601 | 21 | HeaderInclude |
22 | config/sparc/sparc-opts.h | |
23 | ||
5bd71bb8 | 24 | ;; Debug flags |
25 | TargetVariable | |
26 | unsigned int sparc_debug | |
27 | ||
a9341855 | 28 | mfpu |
29 | Target Report Mask(FPU) | |
8fb42bbc | 30 | Use hardware FP. |
a9341855 | 31 | |
32 | mhard-float | |
367d727c | 33 | Target RejectNegative Mask(FPU) |
8fb42bbc | 34 | Use hardware FP. |
a9341855 | 35 | |
36 | msoft-float | |
37 | Target RejectNegative InverseMask(FPU) | |
8fb42bbc | 38 | Do not use hardware FP. |
a9341855 | 39 | |
47529489 | 40 | mflat |
41 | Target Report Mask(FLAT) | |
8fb42bbc | 42 | Use flat register window model. |
47529489 | 43 | |
a9341855 | 44 | munaligned-doubles |
45 | Target Report Mask(UNALIGNED_DOUBLES) | |
8fb42bbc | 46 | Assume possible double misalignment. |
a9341855 | 47 | |
a9341855 | 48 | mapp-regs |
49 | Target Report Mask(APP_REGS) | |
8fb42bbc | 50 | Use ABI reserved registers. |
a9341855 | 51 | |
52 | mhard-quad-float | |
53 | Target Report RejectNegative Mask(HARD_QUAD) | |
8fb42bbc | 54 | Use hardware quad FP instructions. |
a9341855 | 55 | |
56 | msoft-quad-float | |
57 | Target Report RejectNegative InverseMask(HARD_QUAD) | |
8fb42bbc | 58 | Do not use hardware quad fp instructions. |
a9341855 | 59 | |
f04a998d | 60 | mlra |
61 | Target Report Mask(LRA) | |
62 | Enable Local Register Allocation. | |
63 | ||
a9341855 | 64 | mv8plus |
65 | Target Report Mask(V8PLUS) | |
8fb42bbc | 66 | Compile for V8+ ABI. |
a9341855 | 67 | |
68 | mvis | |
69 | Target Report Mask(VIS) | |
8fb42bbc | 70 | Use UltraSPARC Visual Instruction Set version 1.0 extensions. |
95c09f2c | 71 | |
72 | mvis2 | |
73 | Target Report Mask(VIS2) | |
8fb42bbc | 74 | Use UltraSPARC Visual Instruction Set version 2.0 extensions. |
a9341855 | 75 | |
33e7b55c | 76 | mvis3 |
77 | Target Report Mask(VIS3) | |
8fb42bbc | 78 | Use UltraSPARC Visual Instruction Set version 3.0 extensions. |
33e7b55c | 79 | |
7e1786b2 | 80 | mvis4 |
81 | Target Report Mask(VIS4) | |
82 | Use UltraSPARC Visual Instruction Set version 4.0 extensions. | |
83 | ||
95f09db7 | 84 | mvis4b |
85 | Target Report Mask(VIS4B) | |
86 | Use additional VIS instructions introduced in OSA2017. | |
87 | ||
6c940e8d | 88 | mcbcond |
89 | Target Report Mask(CBCOND) | |
8fb42bbc | 90 | Use UltraSPARC Compare-and-Branch extensions. |
6c940e8d | 91 | |
0468cf8f | 92 | mfmaf |
93 | Target Report Mask(FMAF) | |
8fb42bbc | 94 | Use UltraSPARC Fused Multiply-Add extensions. |
0468cf8f | 95 | |
bffd8089 | 96 | mfsmuld |
97 | Target Report Mask(FSMULD) | |
98 | Use Floating-point Multiply Single to Double (FsMULd) instruction. | |
99 | ||
80c0ee75 | 100 | mpopc |
101 | Target Report Mask(POPC) | |
8fb42bbc | 102 | Use UltraSPARC Population-Count instruction. |
80c0ee75 | 103 | |
94ec1a50 | 104 | msubxc |
105 | Target Report Mask(SUBXC) | |
106 | Use UltraSPARC Subtract-Extended-with-Carry instruction. | |
107 | ||
a9341855 | 108 | mptr64 |
109 | Target Report RejectNegative Mask(PTR64) | |
8fb42bbc | 110 | Pointers are 64-bit. |
a9341855 | 111 | |
112 | mptr32 | |
113 | Target Report RejectNegative InverseMask(PTR64) | |
8fb42bbc | 114 | Pointers are 32-bit. |
a9341855 | 115 | |
116 | m64 | |
117 | Target Report RejectNegative Mask(64BIT) | |
8fb42bbc | 118 | Use 64-bit ABI. |
a9341855 | 119 | |
120 | m32 | |
121 | Target Report RejectNegative InverseMask(64BIT) | |
8fb42bbc | 122 | Use 32-bit ABI. |
a9341855 | 123 | |
124 | mstack-bias | |
125 | Target Report Mask(STACK_BIAS) | |
8fb42bbc | 126 | Use stack bias. |
a9341855 | 127 | |
128 | mfaster-structs | |
129 | Target Report Mask(FASTER_STRUCTS) | |
8fb42bbc | 130 | Use structs on stronger alignment for double-word copies. |
a9341855 | 131 | |
132 | mrelax | |
133 | Target | |
8fb42bbc | 134 | Optimize tail call instructions in assembler and linker. |
a9341855 | 135 | |
51494e08 | 136 | muser-mode |
a89e7400 | 137 | Target Report InverseMask(SV_MODE) |
8fb42bbc | 138 | Do not generate code that can only run in supervisor mode (default). |
51494e08 | 139 | |
a9341855 | 140 | mcpu= |
477d403f | 141 | Target RejectNegative Joined Var(sparc_cpu_and_features) Enum(sparc_processor_type) Init(PROCESSOR_V7) |
8fb42bbc | 142 | Use features of and schedule code for given CPU. |
a9341855 | 143 | |
144 | mtune= | |
477d403f | 145 | Target RejectNegative Joined Var(sparc_cpu) Enum(sparc_processor_type) Init(PROCESSOR_V7) |
8fb42bbc | 146 | Schedule code for given CPU. |
a9341855 | 147 | |
a2eed601 | 148 | Enum |
149 | Name(sparc_processor_type) Type(enum processor_type) | |
150 | ||
76fd9e61 | 151 | EnumValue |
152 | Enum(sparc_processor_type) String(native) Value(PROCESSOR_NATIVE) DriverOnly | |
153 | ||
a2eed601 | 154 | EnumValue |
155 | Enum(sparc_processor_type) String(v7) Value(PROCESSOR_V7) | |
156 | ||
157 | EnumValue | |
158 | Enum(sparc_processor_type) String(cypress) Value(PROCESSOR_CYPRESS) | |
159 | ||
160 | EnumValue | |
161 | Enum(sparc_processor_type) String(v8) Value(PROCESSOR_V8) | |
162 | ||
163 | EnumValue | |
164 | Enum(sparc_processor_type) String(supersparc) Value(PROCESSOR_SUPERSPARC) | |
165 | ||
166 | EnumValue | |
167 | Enum(sparc_processor_type) String(hypersparc) Value(PROCESSOR_HYPERSPARC) | |
168 | ||
169 | EnumValue | |
170 | Enum(sparc_processor_type) String(leon) Value(PROCESSOR_LEON) | |
171 | ||
191a0bb7 | 172 | EnumValue |
173 | Enum(sparc_processor_type) String(leon3) Value(PROCESSOR_LEON3) | |
174 | ||
14091821 | 175 | EnumValue |
176 | Enum(sparc_processor_type) String(leon3v7) Value(PROCESSOR_LEON3V7) | |
177 | ||
a2eed601 | 178 | EnumValue |
179 | Enum(sparc_processor_type) String(sparclite) Value(PROCESSOR_SPARCLITE) | |
180 | ||
181 | EnumValue | |
182 | Enum(sparc_processor_type) String(f930) Value(PROCESSOR_F930) | |
183 | ||
184 | EnumValue | |
185 | Enum(sparc_processor_type) String(f934) Value(PROCESSOR_F934) | |
186 | ||
187 | EnumValue | |
188 | Enum(sparc_processor_type) String(sparclite86x) Value(PROCESSOR_SPARCLITE86X) | |
189 | ||
190 | EnumValue | |
191 | Enum(sparc_processor_type) String(sparclet) Value(PROCESSOR_SPARCLET) | |
192 | ||
193 | EnumValue | |
194 | Enum(sparc_processor_type) String(tsc701) Value(PROCESSOR_TSC701) | |
195 | ||
196 | EnumValue | |
197 | Enum(sparc_processor_type) String(v9) Value(PROCESSOR_V9) | |
198 | ||
199 | EnumValue | |
200 | Enum(sparc_processor_type) String(ultrasparc) Value(PROCESSOR_ULTRASPARC) | |
201 | ||
202 | EnumValue | |
203 | Enum(sparc_processor_type) String(ultrasparc3) Value(PROCESSOR_ULTRASPARC3) | |
204 | ||
205 | EnumValue | |
206 | Enum(sparc_processor_type) String(niagara) Value(PROCESSOR_NIAGARA) | |
207 | ||
208 | EnumValue | |
209 | Enum(sparc_processor_type) String(niagara2) Value(PROCESSOR_NIAGARA2) | |
210 | ||
3407e51d | 211 | EnumValue |
212 | Enum(sparc_processor_type) String(niagara3) Value(PROCESSOR_NIAGARA3) | |
213 | ||
214 | EnumValue | |
215 | Enum(sparc_processor_type) String(niagara4) Value(PROCESSOR_NIAGARA4) | |
216 | ||
7e1786b2 | 217 | EnumValue |
218 | Enum(sparc_processor_type) String(niagara7) Value(PROCESSOR_NIAGARA7) | |
219 | ||
95f09db7 | 220 | EnumValue |
221 | Enum(sparc_processor_type) String(m8) Value(PROCESSOR_M8) | |
222 | ||
a9341855 | 223 | mcmodel= |
0fe44c73 | 224 | Target RejectNegative Joined Var(sparc_cmodel_string) |
8fb42bbc | 225 | Use given SPARC-V9 code model. |
a9341855 | 226 | |
5bd71bb8 | 227 | mdebug= |
228 | Target RejectNegative Joined Var(sparc_debug_string) | |
8fb42bbc | 229 | Enable debug output. |
5bd71bb8 | 230 | |
d8c09ceb | 231 | mstd-struct-return |
fee0b56c | 232 | Target Report Var(sparc_std_struct_return) |
d8c09ceb | 233 | Enable strict 32-bit psABI struct return checking. |
a9341855 | 234 | |
fcbe1722 | 235 | mfix-at697f |
236 | Target Report RejectNegative Var(sparc_fix_at697f) | |
237 | Enable workaround for single erratum of AT697F processor | |
dfdcfaa6 | 238 | (corresponding to erratum #13 of AT697E processor). |
fcbe1722 | 239 | |
d6a0a4b0 | 240 | mfix-ut699 |
241 | Target Report RejectNegative Var(sparc_fix_ut699) | |
8fb42bbc | 242 | Enable workarounds for the errata of the UT699 processor. |
d6a0a4b0 | 243 | |
182f0ecc | 244 | mfix-ut700 |
245 | Target Report RejectNegative Var(sparc_fix_ut700) | |
246 | Enable workarounds for the errata of the UT699E/UT700 processor. | |
247 | ||
248 | mfix-gr712rc | |
249 | Target Report RejectNegative Var(sparc_fix_gr712rc) | |
250 | Enable workarounds for the errata of the GR712RC processor. | |
251 | ||
252 | ;; Enable workaround for back-to-back store errata | |
253 | TargetVariable | |
254 | unsigned int sparc_fix_b2bst | |
255 | ||
32bf744c | 256 | ;; Enable workaround for GRLIB-TN-0013 errata |
257 | TargetVariable | |
258 | unsigned int sparc_fix_lost_divsqrt | |
259 | ||
a9341855 | 260 | Mask(LONG_DOUBLE_128) |
261 | ;; Use 128-bit long double | |
262 | ||
cbd3655d | 263 | Mask(LEON) |
264 | ;; Generate code for LEON | |
265 | ||
266 | Mask(LEON3) | |
267 | ;; Generate code for LEON3 | |
268 | ||
a9341855 | 269 | Mask(SPARCLITE) |
270 | ;; Generate code for SPARClite | |
271 | ||
272 | Mask(SPARCLET) | |
273 | ;; Generate code for SPARClet | |
274 | ||
275 | Mask(V8) | |
276 | ;; Generate code for SPARC-V8 | |
277 | ||
278 | Mask(V9) | |
279 | ;; Generate code for SPARC-V9 | |
280 | ||
281 | Mask(DEPRECATED_V8_INSNS) | |
282 | ;; Generate code that uses the V8 instructions deprecated | |
283 | ;; in the V9 architecture. | |
300d9dac | 284 | |
285 | mmemory-model= | |
286 | Target RejectNegative Joined Var(sparc_memory_model) Enum(sparc_memory_model) Init(SMM_DEFAULT) | |
287 | Specify the memory model in effect for the program. | |
288 | ||
289 | Enum | |
290 | Name(sparc_memory_model) Type(enum sparc_memory_model_type) | |
291 | ||
292 | EnumValue | |
293 | Enum(sparc_memory_model) String(default) Value(SMM_DEFAULT) | |
294 | ||
295 | EnumValue | |
296 | Enum(sparc_memory_model) String(rmo) Value(SMM_RMO) | |
297 | ||
298 | EnumValue | |
299 | Enum(sparc_memory_model) String(pso) Value(SMM_PSO) | |
300 | ||
301 | EnumValue | |
302 | Enum(sparc_memory_model) String(tso) Value(SMM_TSO) | |
303 | ||
304 | EnumValue | |
305 | Enum(sparc_memory_model) String(sc) Value(SMM_SC) |