]>
Commit | Line | Data |
---|---|---|
fe609b0f EB |
1 | ; Options for the SPARC port of the compiler |
2 | ; | |
818ab71a | 3 | ; Copyright (C) 2005-2016 Free Software Foundation, Inc. |
fe609b0f EB |
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 | |
2f83c7d6 | 9 | ; Software Foundation; either version 3, or (at your option) any later |
fe609b0f EB |
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 | |
2f83c7d6 NC |
18 | ; along with GCC; see the file COPYING3. If not see |
19 | ; <http://www.gnu.org/licenses/>. | |
fe609b0f | 20 | |
aa53e58b JM |
21 | HeaderInclude |
22 | config/sparc/sparc-opts.h | |
23 | ||
a0bd60d1 DM |
24 | ;; Debug flags |
25 | TargetVariable | |
26 | unsigned int sparc_debug | |
27 | ||
fe609b0f EB |
28 | mfpu |
29 | Target Report Mask(FPU) | |
a7b2e184 | 30 | Use hardware FP. |
fe609b0f EB |
31 | |
32 | mhard-float | |
719e1e80 | 33 | Target RejectNegative Mask(FPU) |
a7b2e184 | 34 | Use hardware FP. |
fe609b0f EB |
35 | |
36 | msoft-float | |
37 | Target RejectNegative InverseMask(FPU) | |
a7b2e184 | 38 | Do not use hardware FP. |
fe609b0f | 39 | |
b11b0904 EB |
40 | mflat |
41 | Target Report Mask(FLAT) | |
a7b2e184 | 42 | Use flat register window model. |
b11b0904 | 43 | |
fe609b0f EB |
44 | munaligned-doubles |
45 | Target Report Mask(UNALIGNED_DOUBLES) | |
a7b2e184 | 46 | Assume possible double misalignment. |
fe609b0f | 47 | |
fe609b0f EB |
48 | mapp-regs |
49 | Target Report Mask(APP_REGS) | |
a7b2e184 | 50 | Use ABI reserved registers. |
fe609b0f EB |
51 | |
52 | mhard-quad-float | |
53 | Target Report RejectNegative Mask(HARD_QUAD) | |
a7b2e184 | 54 | Use hardware quad FP instructions. |
fe609b0f EB |
55 | |
56 | msoft-quad-float | |
57 | Target Report RejectNegative InverseMask(HARD_QUAD) | |
a7b2e184 | 58 | Do not use hardware quad fp instructions. |
fe609b0f EB |
59 | |
60 | mv8plus | |
61 | Target Report Mask(V8PLUS) | |
a7b2e184 | 62 | Compile for V8+ ABI. |
fe609b0f EB |
63 | |
64 | mvis | |
65 | Target Report Mask(VIS) | |
a7b2e184 | 66 | Use UltraSPARC Visual Instruction Set version 1.0 extensions. |
c4728c6b DM |
67 | |
68 | mvis2 | |
69 | Target Report Mask(VIS2) | |
a7b2e184 | 70 | Use UltraSPARC Visual Instruction Set version 2.0 extensions. |
fe609b0f | 71 | |
96d7b15f DM |
72 | mvis3 |
73 | Target Report Mask(VIS3) | |
a7b2e184 | 74 | Use UltraSPARC Visual Instruction Set version 3.0 extensions. |
96d7b15f | 75 | |
690f24b7 JM |
76 | mvis4 |
77 | Target Report Mask(VIS4) | |
78 | Use UltraSPARC Visual Instruction Set version 4.0 extensions. | |
79 | ||
8b98b5fd DM |
80 | mcbcond |
81 | Target Report Mask(CBCOND) | |
a7b2e184 | 82 | Use UltraSPARC Compare-and-Branch extensions. |
8b98b5fd | 83 | |
e8b141b5 DM |
84 | mfmaf |
85 | Target Report Mask(FMAF) | |
a7b2e184 | 86 | Use UltraSPARC Fused Multiply-Add extensions. |
e8b141b5 | 87 | |
dc78280f DM |
88 | mpopc |
89 | Target Report Mask(POPC) | |
a7b2e184 | 90 | Use UltraSPARC Population-Count instruction. |
dc78280f | 91 | |
ff7e7ee0 EB |
92 | msubxc |
93 | Target Report Mask(SUBXC) | |
94 | Use UltraSPARC Subtract-Extended-with-Carry instruction. | |
95 | ||
fe609b0f EB |
96 | mptr64 |
97 | Target Report RejectNegative Mask(PTR64) | |
a7b2e184 | 98 | Pointers are 64-bit. |
fe609b0f EB |
99 | |
100 | mptr32 | |
101 | Target Report RejectNegative InverseMask(PTR64) | |
a7b2e184 | 102 | Pointers are 32-bit. |
fe609b0f EB |
103 | |
104 | m64 | |
105 | Target Report RejectNegative Mask(64BIT) | |
a7b2e184 | 106 | Use 64-bit ABI. |
fe609b0f EB |
107 | |
108 | m32 | |
109 | Target Report RejectNegative InverseMask(64BIT) | |
a7b2e184 | 110 | Use 32-bit ABI. |
fe609b0f EB |
111 | |
112 | mstack-bias | |
113 | Target Report Mask(STACK_BIAS) | |
a7b2e184 | 114 | Use stack bias. |
fe609b0f EB |
115 | |
116 | mfaster-structs | |
117 | Target Report Mask(FASTER_STRUCTS) | |
a7b2e184 | 118 | Use structs on stronger alignment for double-word copies. |
fe609b0f EB |
119 | |
120 | mrelax | |
121 | Target | |
a7b2e184 | 122 | Optimize tail call instructions in assembler and linker. |
fe609b0f | 123 | |
ba21a04a | 124 | muser-mode |
a01a33a2 | 125 | Target Report InverseMask(SV_MODE) |
a7b2e184 | 126 | Do not generate code that can only run in supervisor mode (default). |
ba21a04a | 127 | |
fe609b0f | 128 | mcpu= |
023592aa | 129 | Target RejectNegative Joined Var(sparc_cpu_and_features) Enum(sparc_processor_type) Init(PROCESSOR_V7) |
a7b2e184 | 130 | Use features of and schedule code for given CPU. |
fe609b0f EB |
131 | |
132 | mtune= | |
023592aa | 133 | Target RejectNegative Joined Var(sparc_cpu) Enum(sparc_processor_type) Init(PROCESSOR_V7) |
a7b2e184 | 134 | Schedule code for given CPU. |
fe609b0f | 135 | |
aa53e58b JM |
136 | Enum |
137 | Name(sparc_processor_type) Type(enum processor_type) | |
138 | ||
e3b3fa45 RO |
139 | EnumValue |
140 | Enum(sparc_processor_type) String(native) Value(PROCESSOR_NATIVE) DriverOnly | |
141 | ||
aa53e58b JM |
142 | EnumValue |
143 | Enum(sparc_processor_type) String(v7) Value(PROCESSOR_V7) | |
144 | ||
145 | EnumValue | |
146 | Enum(sparc_processor_type) String(cypress) Value(PROCESSOR_CYPRESS) | |
147 | ||
148 | EnumValue | |
149 | Enum(sparc_processor_type) String(v8) Value(PROCESSOR_V8) | |
150 | ||
151 | EnumValue | |
152 | Enum(sparc_processor_type) String(supersparc) Value(PROCESSOR_SUPERSPARC) | |
153 | ||
154 | EnumValue | |
155 | Enum(sparc_processor_type) String(hypersparc) Value(PROCESSOR_HYPERSPARC) | |
156 | ||
157 | EnumValue | |
158 | Enum(sparc_processor_type) String(leon) Value(PROCESSOR_LEON) | |
159 | ||
38ae58ca EB |
160 | EnumValue |
161 | Enum(sparc_processor_type) String(leon3) Value(PROCESSOR_LEON3) | |
162 | ||
d81230b5 DH |
163 | EnumValue |
164 | Enum(sparc_processor_type) String(leon3v7) Value(PROCESSOR_LEON3V7) | |
165 | ||
aa53e58b JM |
166 | EnumValue |
167 | Enum(sparc_processor_type) String(sparclite) Value(PROCESSOR_SPARCLITE) | |
168 | ||
169 | EnumValue | |
170 | Enum(sparc_processor_type) String(f930) Value(PROCESSOR_F930) | |
171 | ||
172 | EnumValue | |
173 | Enum(sparc_processor_type) String(f934) Value(PROCESSOR_F934) | |
174 | ||
175 | EnumValue | |
176 | Enum(sparc_processor_type) String(sparclite86x) Value(PROCESSOR_SPARCLITE86X) | |
177 | ||
178 | EnumValue | |
179 | Enum(sparc_processor_type) String(sparclet) Value(PROCESSOR_SPARCLET) | |
180 | ||
181 | EnumValue | |
182 | Enum(sparc_processor_type) String(tsc701) Value(PROCESSOR_TSC701) | |
183 | ||
184 | EnumValue | |
185 | Enum(sparc_processor_type) String(v9) Value(PROCESSOR_V9) | |
186 | ||
187 | EnumValue | |
188 | Enum(sparc_processor_type) String(ultrasparc) Value(PROCESSOR_ULTRASPARC) | |
189 | ||
190 | EnumValue | |
191 | Enum(sparc_processor_type) String(ultrasparc3) Value(PROCESSOR_ULTRASPARC3) | |
192 | ||
193 | EnumValue | |
194 | Enum(sparc_processor_type) String(niagara) Value(PROCESSOR_NIAGARA) | |
195 | ||
196 | EnumValue | |
197 | Enum(sparc_processor_type) String(niagara2) Value(PROCESSOR_NIAGARA2) | |
198 | ||
3e64c239 DM |
199 | EnumValue |
200 | Enum(sparc_processor_type) String(niagara3) Value(PROCESSOR_NIAGARA3) | |
201 | ||
202 | EnumValue | |
203 | Enum(sparc_processor_type) String(niagara4) Value(PROCESSOR_NIAGARA4) | |
204 | ||
690f24b7 JM |
205 | EnumValue |
206 | Enum(sparc_processor_type) String(niagara7) Value(PROCESSOR_NIAGARA7) | |
207 | ||
fe609b0f | 208 | mcmodel= |
55bea00a | 209 | Target RejectNegative Joined Var(sparc_cmodel_string) |
a7b2e184 | 210 | Use given SPARC-V9 code model. |
fe609b0f | 211 | |
a0bd60d1 DM |
212 | mdebug= |
213 | Target RejectNegative Joined Var(sparc_debug_string) | |
a7b2e184 | 214 | Enable debug output. |
a0bd60d1 | 215 | |
2225b57c | 216 | mstd-struct-return |
9250444b | 217 | Target Report Var(sparc_std_struct_return) |
2225b57c | 218 | Enable strict 32-bit psABI struct return checking. |
fe609b0f | 219 | |
c49c4c85 EB |
220 | mfix-at697f |
221 | Target Report RejectNegative Var(sparc_fix_at697f) | |
222 | Enable workaround for single erratum of AT697F processor | |
cad669df | 223 | (corresponding to erratum #13 of AT697E processor). |
c49c4c85 | 224 | |
5c3eacbb EB |
225 | mfix-ut699 |
226 | Target Report RejectNegative Var(sparc_fix_ut699) | |
a7b2e184 | 227 | Enable workarounds for the errata of the UT699 processor. |
5c3eacbb | 228 | |
fe609b0f EB |
229 | Mask(LONG_DOUBLE_128) |
230 | ;; Use 128-bit long double | |
231 | ||
1f65ae7a EB |
232 | Mask(LEON) |
233 | ;; Generate code for LEON | |
234 | ||
235 | Mask(LEON3) | |
236 | ;; Generate code for LEON3 | |
237 | ||
fe609b0f EB |
238 | Mask(SPARCLITE) |
239 | ;; Generate code for SPARClite | |
240 | ||
241 | Mask(SPARCLET) | |
242 | ;; Generate code for SPARClet | |
243 | ||
244 | Mask(V8) | |
245 | ;; Generate code for SPARC-V8 | |
246 | ||
247 | Mask(V9) | |
248 | ;; Generate code for SPARC-V9 | |
249 | ||
250 | Mask(DEPRECATED_V8_INSNS) | |
251 | ;; Generate code that uses the V8 instructions deprecated | |
252 | ;; in the V9 architecture. | |
2e65f38f RH |
253 | |
254 | mmemory-model= | |
255 | Target RejectNegative Joined Var(sparc_memory_model) Enum(sparc_memory_model) Init(SMM_DEFAULT) | |
256 | Specify the memory model in effect for the program. | |
257 | ||
258 | Enum | |
259 | Name(sparc_memory_model) Type(enum sparc_memory_model_type) | |
260 | ||
261 | EnumValue | |
262 | Enum(sparc_memory_model) String(default) Value(SMM_DEFAULT) | |
263 | ||
264 | EnumValue | |
265 | Enum(sparc_memory_model) String(rmo) Value(SMM_RMO) | |
266 | ||
267 | EnumValue | |
268 | Enum(sparc_memory_model) String(pso) Value(SMM_PSO) | |
269 | ||
270 | EnumValue | |
271 | Enum(sparc_memory_model) String(tso) Value(SMM_TSO) | |
272 | ||
273 | EnumValue | |
274 | Enum(sparc_memory_model) String(sc) Value(SMM_SC) |