OSDN Git Service

4ce3c40c7c1848c5a68f4f1f9c4a34af4ac837a4
[pf3gnuchains/gcc-fork.git] / gcc / config / mips / mips.opt
1 ; Options for the MIPS port of the compiler
2 ;
3 ; Copyright (C) 2005, 2007, 2008, 2010, 2011 Free Software Foundation, Inc.
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
9 ; Software Foundation; either version 3, or (at your option) any later
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
18 ; along with GCC; see the file COPYING3.  If not see
19 ; <http://www.gnu.org/licenses/>.
20
21 EB
22 Driver
23
24 EL
25 Driver
26
27 mabi=
28 Target RejectNegative Joined
29 -mabi=ABI       Generate code that conforms to the given ABI
30
31 mabicalls
32 Target Report Mask(ABICALLS)
33 Generate code that can be used in SVR4-style dynamic objects
34
35 mad
36 Target Report Var(TARGET_MAD)
37 Use PMC-style 'mad' instructions
38
39 march=
40 Target RejectNegative Joined Var(mips_arch_string)
41 -march=ISA      Generate code for the given ISA
42
43 mbranch-cost=
44 Target RejectNegative Joined UInteger Var(mips_branch_cost)
45 -mbranch-cost=COST      Set the cost of branches to roughly COST instructions
46
47 mbranch-likely
48 Target Report Mask(BRANCHLIKELY)
49 Use Branch Likely instructions, overriding the architecture default
50
51 mflip-mips16
52 Target Report Var(TARGET_FLIP_MIPS16)
53 Switch on/off MIPS16 ASE on alternating functions for compiler testing
54
55 mcheck-zero-division
56 Target Report Mask(CHECK_ZERO_DIV)
57 Trap on integer divide by zero
58
59 mcode-readable=
60 Target RejectNegative Joined
61 -mcode-readable=SETTING Specify when instructions are allowed to access code
62
63 mdivide-breaks
64 Target Report RejectNegative Mask(DIVIDE_BREAKS)
65 Use branch-and-break sequences to check for integer divide by zero
66
67 mdivide-traps
68 Target Report RejectNegative InverseMask(DIVIDE_BREAKS, DIVIDE_TRAPS)
69 Use trap instructions to check for integer divide by zero
70
71 mdmx
72 Target Report RejectNegative Var(TARGET_MDMX)
73 Allow the use of MDMX instructions
74
75 mdouble-float
76 Target Report RejectNegative InverseMask(SINGLE_FLOAT, DOUBLE_FLOAT)
77 Allow hardware floating-point instructions to cover both 32-bit and 64-bit operations
78
79 mdsp
80 Target Report Mask(DSP)
81 Use MIPS-DSP instructions
82
83 mdspr2
84 Target Report Mask(DSPR2)
85 Use MIPS-DSP REV 2 instructions
86
87 mdebug
88 Target Var(TARGET_DEBUG_MODE) Undocumented
89
90 mdebugd
91 Target Var(TARGET_DEBUG_D_MODE) Undocumented
92
93 meb
94 Target Report RejectNegative Mask(BIG_ENDIAN)
95 Use big-endian byte order
96
97 mel
98 Target Report RejectNegative InverseMask(BIG_ENDIAN, LITTLE_ENDIAN)
99 Use little-endian byte order
100
101 membedded-data
102 Target Report Var(TARGET_EMBEDDED_DATA)
103 Use ROM instead of RAM
104
105 mexplicit-relocs
106 Target Report Mask(EXPLICIT_RELOCS)
107 Use NewABI-style %reloc() assembly operators
108
109 mextern-sdata
110 Target Report Var(TARGET_EXTERN_SDATA) Init(1)
111 Use -G for data that is not defined by the current object
112
113 mfix-24k
114 Target Report Var(TARGET_FIX_24K)
115 Work around certain 24K errata
116
117 mfix-r4000
118 Target Report Mask(FIX_R4000)
119 Work around certain R4000 errata
120
121 mfix-r4400
122 Target Report Mask(FIX_R4400)
123 Work around certain R4400 errata
124
125 mfix-r10000
126 Target Report Mask(FIX_R10000)
127 Work around certain R10000 errata
128
129 mfix-sb1
130 Target Report Var(TARGET_FIX_SB1)
131 Work around errata for early SB-1 revision 2 cores
132
133 mfix-vr4120
134 Target Report Var(TARGET_FIX_VR4120)
135 Work around certain VR4120 errata
136
137 mfix-vr4130
138 Target Report Var(TARGET_FIX_VR4130)
139 Work around VR4130 mflo/mfhi errata
140
141 mfix4300
142 Target Report Var(TARGET_4300_MUL_FIX)
143 Work around an early 4300 hardware bug
144
145 mfp-exceptions
146 Target Report Mask(FP_EXCEPTIONS)
147 FP exceptions are enabled
148
149 mfp32
150 Target Report RejectNegative InverseMask(FLOAT64)
151 Use 32-bit floating-point registers
152
153 mfp64
154 Target Report RejectNegative Mask(FLOAT64)
155 Use 64-bit floating-point registers
156
157 mflush-func=
158 Target RejectNegative Joined Var(mips_cache_flush_func) Init(CACHE_FLUSH_FUNC)
159 -mflush-func=FUNC       Use FUNC to flush the cache before calling stack trampolines
160
161 mfused-madd
162 Target Report Mask(FUSED_MADD)
163 Generate floating-point multiply-add instructions
164
165 mgp32
166 Target Report RejectNegative InverseMask(64BIT)
167 Use 32-bit general registers
168
169 mgp64
170 Target Report RejectNegative Mask(64BIT)
171 Use 64-bit general registers
172
173 mgpopt
174 Target Report Var(TARGET_GPOPT) Init(1)
175 Use GP-relative addressing to access small data
176
177 mplt
178 Target Report Var(TARGET_PLT)
179 When generating -mabicalls code, allow executables to use PLTs and copy relocations
180
181 mhard-float
182 Target Report RejectNegative InverseMask(SOFT_FLOAT_ABI, HARD_FLOAT_ABI)
183 Allow the use of hardware floating-point ABI and instructions
184
185 minterlink-mips16
186 Target Report Var(TARGET_INTERLINK_MIPS16) Init(0)
187 Generate code that can be safely linked with MIPS16 code.
188
189 mips
190 Target RejectNegative Joined
191 -mipsN  Generate code for ISA level N
192
193 mips16
194 Target Report RejectNegative Mask(MIPS16)
195 Generate MIPS16 code
196
197 mips3d
198 Target Report RejectNegative Mask(MIPS3D)
199 Use MIPS-3D instructions
200
201 mllsc
202 Target Report Mask(LLSC)
203 Use ll, sc and sync instructions
204
205 mlocal-sdata
206 Target Report Var(TARGET_LOCAL_SDATA) Init(1)
207 Use -G for object-local data
208
209 mlong-calls
210 Target Report Var(TARGET_LONG_CALLS)
211 Use indirect calls
212
213 mlong32
214 Target Report RejectNegative InverseMask(LONG64, LONG32)
215 Use a 32-bit long type
216
217 mlong64
218 Target Report RejectNegative Mask(LONG64)
219 Use a 64-bit long type
220
221 mmcount-ra-address
222 Target Report Var(TARGET_MCOUNT_RA_ADDRESS)
223 Pass the address of the ra save location to _mcount in $12
224
225 mmemcpy
226 Target Report Mask(MEMCPY)
227 Don't optimize block moves
228
229 mmips-tfile
230 Target
231 Use the mips-tfile postpass
232
233 mmt
234 Target Report Var(TARGET_MT)
235 Allow the use of MT instructions
236
237 mno-float
238 Target Report RejectNegative Var(TARGET_NO_FLOAT) Condition(TARGET_SUPPORTS_NO_FLOAT)
239 Prevent the use of all floating-point operations
240
241 mno-flush-func
242 Target RejectNegative
243 Do not use a cache-flushing function before calling stack trampolines
244
245 mno-mdmx
246 Target Report RejectNegative Var(TARGET_MDMX, 0)
247 Do not use MDMX instructions
248
249 mno-mips16
250 Target Report RejectNegative InverseMask(MIPS16)
251 Generate normal-mode code
252
253 mno-mips3d
254 Target Report RejectNegative InverseMask(MIPS3D)
255 Do not use MIPS-3D instructions
256
257 mpaired-single
258 Target Report Mask(PAIRED_SINGLE_FLOAT)
259 Use paired-single floating-point instructions
260
261 mr10k-cache-barrier=
262 Target Joined RejectNegative
263 -mr10k-cache-barrier=SETTING    Specify when r10k cache barriers should be inserted
264
265 mrelax-pic-calls
266 Target Report Mask(RELAX_PIC_CALLS)
267 Try to allow the linker to turn PIC calls into direct calls
268
269 mshared
270 Target Report Var(TARGET_SHARED) Init(1)
271 When generating -mabicalls code, make the code suitable for use in shared libraries
272
273 msingle-float
274 Target Report RejectNegative Mask(SINGLE_FLOAT)
275 Restrict the use of hardware floating-point instructions to 32-bit operations
276
277 msmartmips
278 Target Report Mask(SMARTMIPS)
279 Use SmartMIPS instructions
280
281 msoft-float
282 Target Report RejectNegative Mask(SOFT_FLOAT_ABI)
283 Prevent the use of all hardware floating-point instructions
284
285 msplit-addresses
286 Target Report Mask(SPLIT_ADDRESSES)
287 Optimize lui/addiu address loads
288
289 msym32
290 Target Report Var(TARGET_SYM32)
291 Assume all symbols have 32-bit values
292
293 msynci
294 Target Report Mask(SYNCI)
295 Use synci instruction to invalidate i-cache
296
297 mtune=
298 Target RejectNegative Joined Var(mips_tune_string)
299 -mtune=PROCESSOR        Optimize the output for PROCESSOR
300
301 muninit-const-in-rodata
302 Target Report Var(TARGET_UNINIT_CONST_IN_RODATA)
303 Put uninitialized constants in ROM (needs -membedded-data)
304
305 mvr4130-align
306 Target Report Mask(VR4130_ALIGN)
307 Perform VR4130-specific alignment optimizations
308
309 mxgot
310 Target Report Var(TARGET_XGOT)
311 Lift restrictions on GOT size
312
313 noasmopt
314 Driver