OSDN Git Service

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