OSDN Git Service

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