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