Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / config / mips / mips.opt
blob3a19d0af160e928ae6a8fc52d1e29c7e6b0c2c44
1 ; Options for the MIPS port of the compiler
3 ; Copyright (C) 2005, 2007 Free Software Foundation, Inc.
5 ; This file is part of GCC.
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.
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 mabi=
22 Target RejectNegative Joined
23 -mabi=ABI       Generate code that conforms to the given ABI
25 mabicalls
26 Target Report Mask(ABICALLS)
27 Generate code that can be used in SVR4-style dynamic objects
29 mad
30 Target Report Var(TARGET_MAD)
31 Use PMC-style 'mad' instructions
33 march=
34 Target RejectNegative Joined Var(mips_arch_string)
35 -march=ISA      Generate code for the given ISA
37 mbranch-cost=
38 Target RejectNegative Joined UInteger Var(mips_branch_cost)
39 -mbranch-cost=COST      Set the cost of branches to roughly COST instructions
41 mbranch-likely
42 Target Report Mask(BRANCHLIKELY)
43 Use Branch Likely instructions, overriding the architecture default
45 mflip-mips16
46 Target Report Var(TARGET_FLIP_MIPS16)
47 Switch on/off MIPS16 ASE on alternating functions for compiler testing
49 mcheck-zero-division
50 Target Report Mask(CHECK_ZERO_DIV)
51 Trap on integer divide by zero
53 mcode-readable=
54 Target RejectNegative Joined
55 -mcode-readable=SETTING Specify when instructions are allowed to access code
57 mdivide-breaks
58 Target Report RejectNegative Mask(DIVIDE_BREAKS)
59 Use branch-and-break sequences to check for integer divide by zero
61 mdivide-traps
62 Target Report RejectNegative InverseMask(DIVIDE_BREAKS, DIVIDE_TRAPS)
63 Use trap instructions to check for integer divide by zero
65 mdmx
66 Target Report RejectNegative Var(TARGET_MDMX)
67 Allow the use of MDMX instructions
69 mdouble-float
70 Target Report RejectNegative InverseMask(SINGLE_FLOAT, DOUBLE_FLOAT)
71 Allow hardware floating-point instructions to cover both 32-bit and 64-bit operations
73 mdsp
74 Target Report Mask(DSP)
75 Use MIPS-DSP instructions
77 mdspr2
78 Target Report Mask(DSPR2)
79 Use MIPS-DSP REV 2 instructions
81 mdebug
82 Target Var(TARGET_DEBUG_MODE) Undocumented
84 mdebugd
85 Target Var(TARGET_DEBUG_D_MODE) Undocumented
87 meb
88 Target Report RejectNegative Mask(BIG_ENDIAN)
89 Use big-endian byte order
91 mel
92 Target Report RejectNegative InverseMask(BIG_ENDIAN, LITTLE_ENDIAN)
93 Use little-endian byte order
95 membedded-data
96 Target Report Var(TARGET_EMBEDDED_DATA)
97 Use ROM instead of RAM
99 mexplicit-relocs
100 Target Report Mask(EXPLICIT_RELOCS)
101 Use NewABI-style %reloc() assembly operators
103 mextern-sdata
104 Target Report Var(TARGET_EXTERN_SDATA) Init(1)
105 Use -G for data that is not defined by the current object
107 mfix-r4000
108 Target Report Mask(FIX_R4000)
109 Work around certain R4000 errata
111 mfix-r4400
112 Target Report Mask(FIX_R4400)
113 Work around certain R4400 errata
115 mfix-sb1
116 Target Report Var(TARGET_FIX_SB1)
117 Work around errata for early SB-1 revision 2 cores
119 mfix-vr4120
120 Target Report Var(TARGET_FIX_VR4120)
121 Work around certain VR4120 errata
123 mfix-vr4130
124 Target Report Var(TARGET_FIX_VR4130)
125 Work around VR4130 mflo/mfhi errata
127 mfix4300
128 Target Report Var(TARGET_4300_MUL_FIX)
129 Work around an early 4300 hardware bug
131 mfp-exceptions
132 Target Report Mask(FP_EXCEPTIONS)
133 FP exceptions are enabled
135 mfp32
136 Target Report RejectNegative InverseMask(FLOAT64)
137 Use 32-bit floating-point registers
139 mfp64
140 Target Report RejectNegative Mask(FLOAT64)
141 Use 64-bit floating-point registers
143 mflush-func=
144 Target RejectNegative Joined Var(mips_cache_flush_func) Init(CACHE_FLUSH_FUNC)
145 -mflush-func=FUNC       Use FUNC to flush the cache before calling stack trampolines
147 mfused-madd
148 Target Report Mask(FUSED_MADD)
149 Generate floating-point multiply-add instructions
151 mgp32
152 Target Report RejectNegative InverseMask(64BIT)
153 Use 32-bit general registers
155 mgp64
156 Target Report RejectNegative Mask(64BIT)
157 Use 64-bit general registers
159 mgpopt
160 Target Report Var(TARGET_GPOPT) Init(1)
161 Use GP-relative addressing to access small data
163 mhard-float
164 Target Report RejectNegative InverseMask(SOFT_FLOAT_ABI, HARD_FLOAT_ABI)
165 Allow the use of hardware floating-point ABI and instructions
167 minterlink-mips16
168 Target Report Var(TARGET_INTERLINK_MIPS16) Init(0)
169 Generate code that can be safely linked with MIPS16 code.
171 mips
172 Target RejectNegative Joined
173 -mipsN  Generate code for ISA level N
175 mips16
176 Target Report RejectNegative Mask(MIPS16)
177 Generate MIPS16 code
179 mips3d
180 Target Report RejectNegative Mask(MIPS3D)
181 Use MIPS-3D instructions
183 mllsc
184 Target Report Mask(LLSC)
185 Use ll, sc and sync instructions
187 mlocal-sdata
188 Target Report Var(TARGET_LOCAL_SDATA) Init(1)
189 Use -G for object-local data
191 mlong-calls
192 Target Report Var(TARGET_LONG_CALLS)
193 Use indirect calls
195 mlong32
196 Target Report RejectNegative InverseMask(LONG64, LONG32)
197 Use a 32-bit long type
199 mlong64
200 Target Report RejectNegative Mask(LONG64)
201 Use a 64-bit long type
203 mmemcpy
204 Target Report Mask(MEMCPY)
205 Don't optimize block moves
207 mmips-tfile
208 Target
209 Use the mips-tfile postpass
212 Target Report Var(TARGET_MT)
213 Allow the use of MT instructions
215 mno-flush-func
216 Target RejectNegative
217 Do not use a cache-flushing function before calling stack trampolines
219 mno-mdmx
220 Target Report RejectNegative InverseVar(MDMX)
221 Do not use MDMX instructions
223 mno-mips16
224 Target Report RejectNegative InverseMask(MIPS16)
225 Generate normal-mode code
227 mno-mips3d
228 Target Report RejectNegative InverseMask(MIPS3D)
229 Do not use MIPS-3D instructions
231 mpaired-single
232 Target Report Mask(PAIRED_SINGLE_FLOAT)
233 Use paired-single floating-point instructions
235 mshared
236 Target Report Var(TARGET_SHARED) Init(1)
237 When generating -mabicalls code, make the code suitable for use in shared libraries
239 msingle-float
240 Target Report RejectNegative Mask(SINGLE_FLOAT)
241 Restrict the use of hardware floating-point instructions to 32-bit operations
243 msmartmips
244 Target Report RejectNegative Mask(SMARTMIPS)
245 Use SmartMIPS instructions
247 msoft-float
248 Target Report RejectNegative Mask(SOFT_FLOAT_ABI)
249 Prevent the use of all hardware floating-point instructions
251 msplit-addresses
252 Target Report Mask(SPLIT_ADDRESSES)
253 Optimize lui/addiu address loads
255 msym32
256 Target Report Var(TARGET_SYM32)
257 Assume all symbols have 32-bit values
259 mtune=
260 Target RejectNegative Joined Var(mips_tune_string)
261 -mtune=PROCESSOR        Optimize the output for PROCESSOR
263 muninit-const-in-rodata
264 Target Report Var(TARGET_UNINIT_CONST_IN_RODATA)
265 Put uninitialized constants in ROM (needs -membedded-data)
267 mvr4130-align
268 Target Report Mask(VR4130_ALIGN)
269 Perform VR4130-specific alignment optimizations
271 mxgot
272 Target Report Var(TARGET_XGOT)
273 Lift restrictions on GOT size