Install gcc-4.4.0-tdm-1-core-2.tar.gz
[msysgit.git] / mingw / man / man1 / g++.1
blob13bc76ccf6a13431b4530bd28cd0add1a3c5c1d2
1 .\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05)
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sh \" Subsection heading
6 .br
7 .if t .Sp
8 .ne 5
9 .PP
10 \fB\\$1\fR
11 .PP
13 .de Sp \" Vertical space (when we can't use .PP)
14 .if t .sp .5v
15 .if n .sp
17 .de Vb \" Begin verbatim text
18 .ft CW
19 .nf
20 .ne \\$1
22 .de Ve \" End verbatim text
23 .ft R
24 .fi
26 .\" Set up some character translations and predefined strings.  \*(-- will
27 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28 .\" double quote, and \*(R" will give a right double quote.  \*(C+ will
29 .\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
30 .\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
31 .\" nothing in troff, for use with C<>.
32 .tr \(*W-
33 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34 .ie n \{\
35 .    ds -- \(*W-
36 .    ds PI pi
37 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
39 .    ds L" ""
40 .    ds R" ""
41 .    ds C` ""
42 .    ds C' ""
43 'br\}
44 .el\{\
45 .    ds -- \|\(em\|
46 .    ds PI \(*p
47 .    ds L" ``
48 .    ds R" ''
49 'br\}
50 .\"
51 .\" Escape single quotes in literal strings from groff's Unicode transform.
52 .ie \n(.g .ds Aq \(aq
53 .el       .ds Aq '
54 .\"
55 .\" If the F register is turned on, we'll generate index entries on stderr for
56 .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
57 .\" entries marked with X<> in POD.  Of course, you'll have to process the
58 .\" output yourself in some meaningful fashion.
59 .ie \nF \{\
60 .    de IX
61 .    tm Index:\\$1\t\\n%\t"\\$2"
63 .    nr % 0
64 .    rr F
65 .\}
66 .el \{\
67 .    de IX
69 .\}
70 .\"
71 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
72 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
73 .    \" fudge factors for nroff and troff
74 .if n \{\
75 .    ds #H 0
76 .    ds #V .8m
77 .    ds #F .3m
78 .    ds #[ \f1
79 .    ds #] \fP
80 .\}
81 .if t \{\
82 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
83 .    ds #V .6m
84 .    ds #F 0
85 .    ds #[ \&
86 .    ds #] \&
87 .\}
88 .    \" simple accents for nroff and troff
89 .if n \{\
90 .    ds ' \&
91 .    ds ` \&
92 .    ds ^ \&
93 .    ds , \&
94 .    ds ~ ~
95 .    ds /
96 .\}
97 .if t \{\
98 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
99 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
100 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
101 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
102 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
103 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
105 .    \" troff and (daisy-wheel) nroff accents
106 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
107 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
108 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
109 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
110 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
111 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
112 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
113 .ds ae a\h'-(\w'a'u*4/10)'e
114 .ds Ae A\h'-(\w'A'u*4/10)'E
115 .    \" corrections for vroff
116 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
117 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
118 .    \" for low resolution devices (crt and lpr)
119 .if \n(.H>23 .if \n(.V>19 \
121 .    ds : e
122 .    ds 8 ss
123 .    ds o a
124 .    ds d- d\h'-1'\(ga
125 .    ds D- D\h'-1'\(hy
126 .    ds th \o'bp'
127 .    ds Th \o'LP'
128 .    ds ae ae
129 .    ds Ae AE
131 .rm #[ #] #H #V #F C
132 .\" ========================================================================
134 .IX Title "GCC 1"
135 .TH GCC 1 "2009-01-24" "gcc-4.3.3" "GNU"
136 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
137 .\" way too many mistakes in technical documents.
138 .if n .ad l
140 .SH "NAME"
141 gcc \- GNU project C and C++ compiler
142 .SH "SYNOPSIS"
143 .IX Header "SYNOPSIS"
144 gcc [\fB\-c\fR|\fB\-S\fR|\fB\-E\fR] [\fB\-std=\fR\fIstandard\fR]
145     [\fB\-g\fR] [\fB\-pg\fR] [\fB\-O\fR\fIlevel\fR]
146     [\fB\-W\fR\fIwarn\fR...] [\fB\-pedantic\fR]
147     [\fB\-I\fR\fIdir\fR...] [\fB\-L\fR\fIdir\fR...]
148     [\fB\-D\fR\fImacro\fR[=\fIdefn\fR]...] [\fB\-U\fR\fImacro\fR]
149     [\fB\-f\fR\fIoption\fR...] [\fB\-m\fR\fImachine-option\fR...]
150     [\fB\-o\fR \fIoutfile\fR] [@\fIfile\fR] \fIinfile\fR...
152 Only the most useful options are listed here; see below for the
153 remainder.  \fBg++\fR accepts mostly the same options as \fBgcc\fR.
154 .SH "DESCRIPTION"
155 .IX Header "DESCRIPTION"
156 When you invoke \s-1GCC\s0, it normally does preprocessing, compilation,
157 assembly and linking.  The \*(L"overall options\*(R" allow you to stop this
158 process at an intermediate stage.  For example, the \fB\-c\fR option
159 says not to run the linker.  Then the output consists of object files
160 output by the assembler.
162 Other options are passed on to one stage of processing.  Some options
163 control the preprocessor and others the compiler itself.  Yet other
164 options control the assembler and linker; most of these are not
165 documented here, since you rarely need to use any of them.
167 Most of the command line options that you can use with \s-1GCC\s0 are useful
168 for C programs; when an option is only useful with another language
169 (usually \*(C+), the explanation says so explicitly.  If the description
170 for a particular option does not mention a source language, you can use
171 that option with all supported languages.
173 The \fBgcc\fR program accepts options and file names as operands.  Many
174 options have multi-letter names; therefore multiple single-letter options
175 may \fInot\fR be grouped: \fB\-dr\fR is very different from \fB\-d\ \-r\fR.
177 You can mix options and other arguments.  For the most part, the order
178 you use doesn't matter.  Order does matter when you use several
179 options of the same kind; for example, if you specify \fB\-L\fR more
180 than once, the directories are searched in the order specified.  Also,
181 the placement of the \fB\-l\fR option is significant.
183 Many options have long names starting with \fB\-f\fR or with
184 \&\fB\-W\fR\-\-\-for example,
185 \&\fB\-fmove\-loop\-invariants\fR, \fB\-Wformat\fR and so on.  Most of
186 these have both positive and negative forms; the negative form of
187 \&\fB\-ffoo\fR would be \fB\-fno\-foo\fR.  This manual documents
188 only one of these two forms, whichever one is not the default.
189 .SH "OPTIONS"
190 .IX Header "OPTIONS"
191 .Sh "Option Summary"
192 .IX Subsection "Option Summary"
193 Here is a summary of all the options, grouped by type.  Explanations are
194 in the following sections.
195 .IP "\fIOverall Options\fR" 4
196 .IX Item "Overall Options"
197 \&\fB\-c  \-S  \-E  \-o\fR \fIfile\fR  \fB\-combine  \-pipe  \-pass\-exit\-codes  
198 \&\-x\fR \fIlanguage\fR  \fB\-v  \-###  \-\-help\fR[\fB=\fR\fIclass\fR]  \fB\-\-target\-help  
199 \&\-\-version @\fR\fIfile\fR
200 .IP "\fIC Language Options\fR" 4
201 .IX Item "C Language Options"
202 \&\fB\-ansi  \-std=\fR\fIstandard\fR  \fB\-fgnu89\-inline 
203 \&\-aux\-info\fR \fIfilename\fR 
204 \&\fB\-fno\-asm  \-fno\-builtin  \-fno\-builtin\-\fR\fIfunction\fR 
205 \&\fB\-fhosted  \-ffreestanding \-fopenmp \-fms\-extensions 
206 \&\-trigraphs  \-no\-integrated\-cpp  \-traditional  \-traditional\-cpp 
207 \&\-fallow\-single\-precision  \-fcond\-mismatch \-flax\-vector\-conversions 
208 \&\-fsigned\-bitfields  \-fsigned\-char 
209 \&\-funsigned\-bitfields  \-funsigned\-char\fR
210 .IP "\fI\*(C+ Language Options\fR" 4
211 .IX Item " Language Options"
212 \&\fB\-fabi\-version=\fR\fIn\fR  \fB\-fno\-access\-control  \-fcheck\-new 
213 \&\-fconserve\-space  \-ffriend\-injection 
214 \&\-fno\-elide\-constructors 
215 \&\-fno\-enforce\-eh\-specs 
216 \&\-ffor\-scope  \-fno\-for\-scope  \-fno\-gnu\-keywords 
217 \&\-fno\-implicit\-templates 
218 \&\-fno\-implicit\-inline\-templates 
219 \&\-fno\-implement\-inlines  \-fms\-extensions 
220 \&\-fno\-nonansi\-builtins  \-fno\-operator\-names 
221 \&\-fno\-optional\-diags  \-fpermissive 
222 \&\-frepo  \-fno\-rtti  \-fstats  \-ftemplate\-depth\-\fR\fIn\fR 
223 \&\fB\-fno\-threadsafe\-statics \-fuse\-cxa\-atexit  \-fno\-weak  \-nostdinc++ 
224 \&\-fno\-default\-inline  \-fvisibility\-inlines\-hidden 
225 \&\-fvisibility\-ms\-compat 
226 \&\-Wabi  \-Wctor\-dtor\-privacy 
227 \&\-Wnon\-virtual\-dtor  \-Wreorder 
228 \&\-Weffc++  \-Wno\-deprecated  \-Wstrict\-null\-sentinel 
229 \&\-Wno\-non\-template\-friend  \-Wold\-style\-cast 
230 \&\-Woverloaded\-virtual  \-Wno\-pmf\-conversions 
231 \&\-Wsign\-promo\fR
232 .IP "\fIObjective-C and Objective\-\*(C+ Language Options\fR" 4
233 .IX Item "Objective-C and Objective- Language Options"
234 \&\fB\-fconstant\-string\-class=\fR\fIclass-name\fR 
235 \&\fB\-fgnu\-runtime  \-fnext\-runtime 
236 \&\-fno\-nil\-receivers 
237 \&\-fobjc\-call\-cxx\-cdtors 
238 \&\-fobjc\-direct\-dispatch 
239 \&\-fobjc\-exceptions 
240 \&\-fobjc\-gc 
241 \&\-freplace\-objc\-classes 
242 \&\-fzero\-link 
243 \&\-gen\-decls 
244 \&\-Wassign\-intercept 
245 \&\-Wno\-protocol  \-Wselector 
246 \&\-Wstrict\-selector\-match 
247 \&\-Wundeclared\-selector\fR
248 .IP "\fILanguage Independent Options\fR" 4
249 .IX Item "Language Independent Options"
250 \&\fB\-fmessage\-length=\fR\fIn\fR  
251 \&\fB\-fdiagnostics\-show\-location=\fR[\fBonce\fR|\fBevery-line\fR]  
252 \&\fB\-fdiagnostics\-show\-option\fR
253 .IP "\fIWarning Options\fR" 4
254 .IX Item "Warning Options"
255 \&\fB\-fsyntax\-only  \-pedantic  \-pedantic\-errors 
256 \&\-w  \-Wextra  \-Wall  \-Waddress  \-Waggregate\-return  \-Warray\-bounds 
257 \&\-Wno\-attributes \-Wc++\-compat \-Wc++0x\-compat \-Wcast\-align  \-Wcast\-qual  
258 \&\-Wchar\-subscripts \-Wclobbered  \-Wcomment 
259 \&\-Wconversion  \-Wcoverage\-mismatch  \-Wno\-deprecated\-declarations 
260 \&\-Wdisabled\-optimization  \-Wno\-div\-by\-zero  
261 \&\-Wempty\-body  \-Wno\-endif\-labels 
262 \&\-Werror  \-Werror=* 
263 \&\-Wfatal\-errors  \-Wfloat\-equal  \-Wformat  \-Wformat=2 
264 \&\-Wno\-format\-extra\-args \-Wformat\-nonliteral 
265 \&\-Wformat\-security  \-Wformat\-y2k \-Wignored\-qualifiers 
266 \&\-Wimplicit  \-Wimplicit\-function\-declaration  \-Wimplicit\-int 
267 \&\-Wimport  \-Wno\-import  \-Winit\-self  \-Winline 
268 \&\-Wno\-int\-to\-pointer\-cast \-Wno\-invalid\-offsetof 
269 \&\-Winvalid\-pch \-Wlarger\-than\-\fR\fIlen\fR  \fB\-Wunsafe\-loop\-optimizations 
270 \&\-Wlogical\-op \-Wlong\-long 
271 \&\-Wmain  \-Wmissing\-braces  \-Wmissing\-field\-initializers 
272 \&\-Wmissing\-format\-attribute  \-Wmissing\-include\-dirs 
273 \&\-Wmissing\-noreturn 
274 \&\-Wno\-multichar  \-Wnonnull  \-Wno\-overflow 
275 \&\-Woverlength\-strings  \-Wpacked  \-Wpadded 
276 \&\-Wparentheses  \-Wpointer\-arith  \-Wno\-pointer\-to\-int\-cast 
277 \&\-Wredundant\-decls 
278 \&\-Wreturn\-type  \-Wsequence\-point  \-Wshadow 
279 \&\-Wsign\-compare  \-Wsign\-conversion  \-Wstack\-protector 
280 \&\-Wstrict\-aliasing \-Wstrict\-aliasing=n 
281 \&\-Wstrict\-overflow \-Wstrict\-overflow=\fR\fIn\fR 
282 \&\fB\-Wswitch  \-Wswitch\-default  \-Wswitch\-enum 
283 \&\-Wsystem\-headers  \-Wtrigraphs  \-Wtype\-limits  \-Wundef  \-Wuninitialized 
284 \&\-Wunknown\-pragmas  \-Wno\-pragmas \-Wunreachable\-code 
285 \&\-Wunused  \-Wunused\-function  \-Wunused\-label  \-Wunused\-parameter 
286 \&\-Wunused\-value  \-Wunused\-variable 
287 \&\-Wvariadic\-macros \-Wvla 
288 \&\-Wvolatile\-register\-var  \-Wwrite\-strings\fR
289 .IP "\fIC and Objective-C-only Warning Options\fR" 4
290 .IX Item "C and Objective-C-only Warning Options"
291 \&\fB\-Wbad\-function\-cast  \-Wmissing\-declarations 
292 \&\-Wmissing\-parameter\-type  \-Wmissing\-prototypes  \-Wnested\-externs 
293 \&\-Wold\-style\-declaration  \-Wold\-style\-definition 
294 \&\-Wstrict\-prototypes  \-Wtraditional  \-Wtraditional\-conversion 
295 \&\-Wdeclaration\-after\-statement \-Wpointer\-sign\fR
296 .IP "\fIDebugging Options\fR" 4
297 .IX Item "Debugging Options"
298 \&\fB\-d\fR\fIletters\fR  \fB\-dumpspecs  \-dumpmachine  \-dumpversion 
299 \&\-fdbg\-cnt\-list \-fdbg\-cnt=\fR\fIcounter-value-list\fR 
300 \&\fB\-fdump\-noaddr \-fdump\-unnumbered  \-fdump\-translation\-unit\fR[\fB\-\fR\fIn\fR] 
301 \&\fB\-fdump\-class\-hierarchy\fR[\fB\-\fR\fIn\fR] 
302 \&\fB\-fdump\-ipa\-all \-fdump\-ipa\-cgraph \-fdump\-ipa\-inline 
303 \&\-fdump\-tree\-all 
304 \&\-fdump\-tree\-original\fR[\fB\-\fR\fIn\fR]  
305 \&\fB\-fdump\-tree\-optimized\fR[\fB\-\fR\fIn\fR] 
306 \&\fB\-fdump\-tree\-cfg \-fdump\-tree\-vcg \-fdump\-tree\-alias 
307 \&\-fdump\-tree\-ch 
308 \&\-fdump\-tree\-ssa\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-pre\fR[\fB\-\fR\fIn\fR] 
309 \&\fB\-fdump\-tree\-ccp\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-dce\fR[\fB\-\fR\fIn\fR] 
310 \&\fB\-fdump\-tree\-gimple\fR[\fB\-raw\fR] \fB\-fdump\-tree\-mudflap\fR[\fB\-\fR\fIn\fR] 
311 \&\fB\-fdump\-tree\-dom\fR[\fB\-\fR\fIn\fR] 
312 \&\fB\-fdump\-tree\-dse\fR[\fB\-\fR\fIn\fR] 
313 \&\fB\-fdump\-tree\-phiopt\fR[\fB\-\fR\fIn\fR] 
314 \&\fB\-fdump\-tree\-forwprop\fR[\fB\-\fR\fIn\fR] 
315 \&\fB\-fdump\-tree\-copyrename\fR[\fB\-\fR\fIn\fR] 
316 \&\fB\-fdump\-tree\-nrv \-fdump\-tree\-vect 
317 \&\-fdump\-tree\-sink 
318 \&\-fdump\-tree\-sra\fR[\fB\-\fR\fIn\fR] 
319 \&\fB\-fdump\-tree\-salias 
320 \&\-fdump\-tree\-fre\fR[\fB\-\fR\fIn\fR] 
321 \&\fB\-fdump\-tree\-vrp\fR[\fB\-\fR\fIn\fR] 
322 \&\fB\-ftree\-vectorizer\-verbose=\fR\fIn\fR 
323 \&\fB\-fdump\-tree\-storeccp\fR[\fB\-\fR\fIn\fR] 
324 \&\fB\-feliminate\-dwarf2\-dups \-feliminate\-unused\-debug\-types 
325 \&\-feliminate\-unused\-debug\-symbols \-femit\-class\-debug\-always 
326 \&\-fmem\-report \-fpre\-ipa\-mem\-report \-fpost\-ipa\-mem\-report \-fprofile\-arcs 
327 \&\-frandom\-seed=\fR\fIstring\fR \fB\-fsched\-verbose=\fR\fIn\fR 
328 \&\fB\-ftest\-coverage  \-ftime\-report \-fvar\-tracking 
329 \&\-g  \-g\fR\fIlevel\fR  \fB\-gcoff \-gdwarf\-2 
330 \&\-ggdb  \-gstabs  \-gstabs+  \-gvms  \-gxcoff  \-gxcoff+ 
331 \&\-fno\-merge\-debug\-strings \-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR 
332 \&\fB\-femit\-struct\-debug\-baseonly \-femit\-struct\-debug\-reduced 
333 \&\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR] 
334 \&\fB\-p  \-pg  \-print\-file\-name=\fR\fIlibrary\fR  \fB\-print\-libgcc\-file\-name 
335 \&\-print\-multi\-directory  \-print\-multi\-lib 
336 \&\-print\-prog\-name=\fR\fIprogram\fR  \fB\-print\-search\-dirs  \-Q 
337 \&\-print\-sysroot\-headers\-suffix 
338 \&\-save\-temps  \-time\fR
339 .IP "\fIOptimization Options\fR" 4
340 .IX Item "Optimization Options"
341 \&\fB\-falign\-functions[=\fR\fIn\fR\fB] \-falign\-jumps[=\fR\fIn\fR\fB] 
342 \&\-falign\-labels[=\fR\fIn\fR\fB] \-falign\-loops[=\fR\fIn\fR\fB] \-fassociative\-math 
343 \&\-fauto\-inc\-dec \-fbranch\-probabilities \-fbranch\-target\-load\-optimize 
344 \&\-fbranch\-target\-load\-optimize2 \-fbtr\-bb\-exclusive \-fcaller\-saves 
345 \&\-fcheck\-data\-deps \-fcprop\-registers \-fcrossjumping \-fcse\-follow\-jumps 
346 \&\-fcse\-skip\-blocks \-fcx\-limited\-range \-fdata\-sections \-fdce \-fdce 
347 \&\-fdelayed\-branch \-fdelete\-null\-pointer\-checks \-fdse \-fdse 
348 \&\-fearly\-inlining \-fexpensive\-optimizations \-ffast\-math 
349 \&\-ffinite\-math\-only \-ffloat\-store \-fforward\-propagate 
350 \&\-ffunction\-sections \-fgcse \-fgcse\-after\-reload \-fgcse\-las \-fgcse\-lm 
351 \&\-fgcse\-sm \-fif\-conversion \-fif\-conversion2 \-finline\-functions 
352 \&\-finline\-functions\-called\-once \-finline\-limit=\fR\fIn\fR 
353 \&\fB\-finline\-small\-functions \-fipa\-cp \-fipa\-matrix\-reorg \-fipa\-pta  
354 \&\-fipa\-pure\-const \-fipa\-reference \-fipa\-struct\-reorg 
355 \&\-fipa\-type\-escape \-fivopts \-fkeep\-inline\-functions \-fkeep\-static\-consts 
356 \&\-fmerge\-all\-constants \-fmerge\-constants \-fmodulo\-sched 
357 \&\-fmodulo\-sched\-allow\-regmoves \-fmove\-loop\-invariants \-fmudflap 
358 \&\-fmudflapir \-fmudflapth \-fno\-branch\-count\-reg \-fno\-default\-inline 
359 \&\-fno\-defer\-pop \-fno\-function\-cse \-fno\-guess\-branch\-probability 
360 \&\-fno\-inline \-fno\-math\-errno \-fno\-peephole \-fno\-peephole2 
361 \&\-fno\-sched\-interblock \-fno\-sched\-spec \-fno\-signed\-zeros 
362 \&\-fno\-toplevel\-reorder \-fno\-trapping\-math \-fno\-zero\-initialized\-in\-bss 
363 \&\-fomit\-frame\-pointer \-foptimize\-register\-move \-foptimize\-sibling\-calls 
364 \&\-fpeel\-loops \-fpredictive\-commoning \-fprefetch\-loop\-arrays 
365 \&\-fprofile\-generate \-fprofile\-use \-fprofile\-values \-freciprocal\-math 
366 \&\-fregmove \-frename\-registers \-freorder\-blocks 
367 \&\-freorder\-blocks\-and\-partition \-freorder\-functions 
368 \&\-frerun\-cse\-after\-loop \-freschedule\-modulo\-scheduled\-loops 
369 \&\-frounding\-math \-frtl\-abstract\-sequences \-fsched2\-use\-superblocks 
370 \&\-fsched2\-use\-traces \-fsched\-spec\-load \-fsched\-spec\-load\-dangerous 
371 \&\-fsched\-stalled\-insns\-dep[=\fR\fIn\fR\fB] \-fsched\-stalled\-insns[=\fR\fIn\fR\fB] 
372 \&\-fschedule\-insns \-fschedule\-insns2 \-fsection\-anchors \-fsee 
373 \&\-fsignaling\-nans \-fsingle\-precision\-constant \-fsplit\-ivs\-in\-unroller 
374 \&\-fsplit\-wide\-types \-fstack\-protector \-fstack\-protector\-all 
375 \&\-fstrict\-aliasing \-fstrict\-overflow \-fthread\-jumps \-ftracer \-ftree\-ccp 
376 \&\-ftree\-ch \-ftree\-copy\-prop \-ftree\-copyrename \-ftree\-dce 
377 \&\-ftree\-dominator\-opts \-ftree\-dse \-ftree\-fre \-ftree\-loop\-im 
378 \&\-ftree\-loop\-ivcanon \-ftree\-loop\-linear \-ftree\-loop\-optimize 
379 \&\-ftree\-parallelize\-loops=\fR\fIn\fR \fB\-ftree\-pre \-ftree\-reassoc \-ftree\-salias 
380 \&\-ftree\-sink \-ftree\-sra \-ftree\-store\-ccp \-ftree\-ter 
381 \&\-ftree\-vect\-loop\-version \-ftree\-vectorize \-ftree\-vrp \-funit\-at\-a\-time 
382 \&\-funroll\-all\-loops \-funroll\-loops \-funsafe\-loop\-optimizations 
383 \&\-funsafe\-math\-optimizations \-funswitch\-loops 
384 \&\-fvariable\-expansion\-in\-unroller \-fvect\-cost\-model \-fvpt \-fweb 
385 \&\-fwhole\-program 
386 \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
387 \&\fB\-O  \-O0  \-O1  \-O2  \-O3  \-Os\fR
388 .IP "\fIPreprocessor Options\fR" 4
389 .IX Item "Preprocessor Options"
390 \&\fB\-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR 
391 \&\fB\-A\-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR] 
392 \&\fB\-C  \-dD  \-dI  \-dM  \-dN 
393 \&\-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]  \fB\-E  \-H 
394 \&\-idirafter\fR \fIdir\fR 
395 \&\fB\-include\fR \fIfile\fR  \fB\-imacros\fR \fIfile\fR 
396 \&\fB\-iprefix\fR \fIfile\fR  \fB\-iwithprefix\fR \fIdir\fR 
397 \&\fB\-iwithprefixbefore\fR \fIdir\fR  \fB\-isystem\fR \fIdir\fR 
398 \&\fB\-imultilib\fR \fIdir\fR \fB\-isysroot\fR \fIdir\fR 
399 \&\fB\-M  \-MM  \-MF  \-MG  \-MP  \-MQ  \-MT  \-nostdinc  
400 \&\-P  \-fworking\-directory  \-remap 
401 \&\-trigraphs  \-undef  \-U\fR\fImacro\fR  \fB\-Wp,\fR\fIoption\fR 
402 \&\fB\-Xpreprocessor\fR \fIoption\fR
403 .IP "\fIAssembler Option\fR" 4
404 .IX Item "Assembler Option"
405 \&\fB\-Wa,\fR\fIoption\fR  \fB\-Xassembler\fR \fIoption\fR
406 .IP "\fILinker Options\fR" 4
407 .IX Item "Linker Options"
408 \&\fIobject-file-name\fR  \fB\-l\fR\fIlibrary\fR 
409 \&\fB\-nostartfiles  \-nodefaultlibs  \-nostdlib \-pie \-rdynamic 
410 \&\-s  \-static  \-static\-libgcc  \-shared  \-shared\-libgcc  \-symbolic 
411 \&\-Wl,\fR\fIoption\fR  \fB\-Xlinker\fR \fIoption\fR 
412 \&\fB\-u\fR \fIsymbol\fR
413 .IP "\fIDirectory Options\fR" 4
414 .IX Item "Directory Options"
415 \&\fB\-B\fR\fIprefix\fR  \fB\-I\fR\fIdir\fR  \fB\-iquote\fR\fIdir\fR  \fB\-L\fR\fIdir\fR
416 \&\fB\-specs=\fR\fIfile\fR  \fB\-I\- \-\-sysroot=\fR\fIdir\fR
417 .IP "\fITarget Options\fR" 4
418 .IX Item "Target Options"
419 \&\fB\-V\fR \fIversion\fR  \fB\-b\fR \fImachine\fR
420 .IP "\fIMachine Dependent Options\fR" 4
421 .IX Item "Machine Dependent Options"
422 \&\fI\s-1ARC\s0 Options\fR
423 \&\fB\-EB  \-EL 
424 \&\-mmangle\-cpu  \-mcpu=\fR\fIcpu\fR  \fB\-mtext=\fR\fItext-section\fR 
425 \&\fB\-mdata=\fR\fIdata-section\fR  \fB\-mrodata=\fR\fIreadonly-data-section\fR
427 \&\fI\s-1ARM\s0 Options\fR
428 \&\fB\-mapcs\-frame  \-mno\-apcs\-frame 
429 \&\-mabi=\fR\fIname\fR 
430 \&\fB\-mapcs\-stack\-check  \-mno\-apcs\-stack\-check 
431 \&\-mapcs\-float  \-mno\-apcs\-float 
432 \&\-mapcs\-reentrant  \-mno\-apcs\-reentrant 
433 \&\-msched\-prolog  \-mno\-sched\-prolog 
434 \&\-mlittle\-endian  \-mbig\-endian  \-mwords\-little\-endian 
435 \&\-mfloat\-abi=\fR\fIname\fR  \fB\-msoft\-float  \-mhard\-float  \-mfpe 
436 \&\-mthumb\-interwork  \-mno\-thumb\-interwork 
437 \&\-mcpu=\fR\fIname\fR  \fB\-march=\fR\fIname\fR  \fB\-mfpu=\fR\fIname\fR  
438 \&\fB\-mstructure\-size\-boundary=\fR\fIn\fR 
439 \&\fB\-mabort\-on\-noreturn 
440 \&\-mlong\-calls  \-mno\-long\-calls 
441 \&\-msingle\-pic\-base  \-mno\-single\-pic\-base 
442 \&\-mpic\-register=\fR\fIreg\fR 
443 \&\fB\-mnop\-fun\-dllimport 
444 \&\-mcirrus\-fix\-invalid\-insns \-mno\-cirrus\-fix\-invalid\-insns 
445 \&\-mpoke\-function\-name 
446 \&\-mthumb  \-marm 
447 \&\-mtpcs\-frame  \-mtpcs\-leaf\-frame 
448 \&\-mcaller\-super\-interworking  \-mcallee\-super\-interworking 
449 \&\-mtp=\fR\fIname\fR
451 \&\fI\s-1AVR\s0 Options\fR
452 \&\fB\-mmcu=\fR\fImcu\fR  \fB\-msize  \-minit\-stack=\fR\fIn\fR  \fB\-mno\-interrupts 
453 \&\-mcall\-prologues  \-mno\-tablejump  \-mtiny\-stack  \-mint8\fR
455 \&\fIBlackfin Options\fR
456 \&\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR] 
457 \&\fB\-msim \-momit\-leaf\-frame\-pointer  \-mno\-omit\-leaf\-frame\-pointer 
458 \&\-mspecld\-anomaly  \-mno\-specld\-anomaly  \-mcsync\-anomaly  \-mno\-csync\-anomaly 
459 \&\-mlow\-64k \-mno\-low64k  \-mstack\-check\-l1  \-mid\-shared\-library 
460 \&\-mno\-id\-shared\-library  \-mshared\-library\-id=\fR\fIn\fR 
461 \&\fB\-mleaf\-id\-shared\-library  \-mno\-leaf\-id\-shared\-library 
462 \&\-msep\-data  \-mno\-sep\-data  \-mlong\-calls  \-mno\-long\-calls 
463 \&\-mfast\-fp \-minline\-plt\fR
465 \&\fI\s-1CRIS\s0 Options\fR
466 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-march=\fR\fIcpu\fR  \fB\-mtune=\fR\fIcpu\fR 
467 \&\fB\-mmax\-stack\-frame=\fR\fIn\fR  \fB\-melinux\-stacksize=\fR\fIn\fR 
468 \&\fB\-metrax4  \-metrax100  \-mpdebug  \-mcc\-init  \-mno\-side\-effects 
469 \&\-mstack\-align  \-mdata\-align  \-mconst\-align 
470 \&\-m32\-bit  \-m16\-bit  \-m8\-bit  \-mno\-prologue\-epilogue  \-mno\-gotplt 
471 \&\-melf  \-maout  \-melinux  \-mlinux  \-sim  \-sim2 
472 \&\-mmul\-bug\-workaround  \-mno\-mul\-bug\-workaround\fR
474 \&\fI\s-1CRX\s0 Options\fR
475 \&\fB\-mmac \-mpush\-args\fR
477 \&\fIDarwin Options\fR
478 \&\fB\-all_load  \-allowable_client  \-arch  \-arch_errors_fatal 
479 \&\-arch_only  \-bind_at_load  \-bundle  \-bundle_loader 
480 \&\-client_name  \-compatibility_version  \-current_version 
481 \&\-dead_strip 
482 \&\-dependency\-file  \-dylib_file  \-dylinker_install_name 
483 \&\-dynamic  \-dynamiclib  \-exported_symbols_list 
484 \&\-filelist  \-flat_namespace  \-force_cpusubtype_ALL 
485 \&\-force_flat_namespace  \-headerpad_max_install_names 
486 \&\-iframework 
487 \&\-image_base  \-init  \-install_name  \-keep_private_externs 
488 \&\-multi_module  \-multiply_defined  \-multiply_defined_unused 
489 \&\-noall_load   \-no_dead_strip_inits_and_terms 
490 \&\-nofixprebinding \-nomultidefs  \-noprebind  \-noseglinkedit 
491 \&\-pagezero_size  \-prebind  \-prebind_all_twolevel_modules 
492 \&\-private_bundle  \-read_only_relocs  \-sectalign 
493 \&\-sectobjectsymbols  \-whyload  \-seg1addr 
494 \&\-sectcreate  \-sectobjectsymbols  \-sectorder 
495 \&\-segaddr \-segs_read_only_addr \-segs_read_write_addr 
496 \&\-seg_addr_table  \-seg_addr_table_filename  \-seglinkedit 
497 \&\-segprot  \-segs_read_only_addr  \-segs_read_write_addr 
498 \&\-single_module  \-static  \-sub_library  \-sub_umbrella 
499 \&\-twolevel_namespace  \-umbrella  \-undefined 
500 \&\-unexported_symbols_list  \-weak_reference_mismatches 
501 \&\-whatsloaded \-F \-gused \-gfull \-mmacosx\-version\-min=\fR\fIversion\fR 
502 \&\fB\-mkernel \-mone\-byte\-bool\fR
504 \&\fI\s-1DEC\s0 Alpha Options\fR
505 \&\fB\-mno\-fp\-regs  \-msoft\-float  \-malpha\-as  \-mgas 
506 \&\-mieee  \-mieee\-with\-inexact  \-mieee\-conformant 
507 \&\-mfp\-trap\-mode=\fR\fImode\fR  \fB\-mfp\-rounding\-mode=\fR\fImode\fR 
508 \&\fB\-mtrap\-precision=\fR\fImode\fR  \fB\-mbuild\-constants 
509 \&\-mcpu=\fR\fIcpu-type\fR  \fB\-mtune=\fR\fIcpu-type\fR 
510 \&\fB\-mbwx  \-mmax  \-mfix  \-mcix 
511 \&\-mfloat\-vax  \-mfloat\-ieee 
512 \&\-mexplicit\-relocs  \-msmall\-data  \-mlarge\-data 
513 \&\-msmall\-text  \-mlarge\-text 
514 \&\-mmemory\-latency=\fR\fItime\fR
516 \&\fI\s-1DEC\s0 Alpha/VMS Options\fR
517 \&\fB\-mvms\-return\-codes\fR
519 \&\fI\s-1FRV\s0 Options\fR
520 \&\fB\-mgpr\-32  \-mgpr\-64  \-mfpr\-32  \-mfpr\-64 
521 \&\-mhard\-float  \-msoft\-float 
522 \&\-malloc\-cc  \-mfixed\-cc  \-mdword  \-mno\-dword 
523 \&\-mdouble  \-mno\-double 
524 \&\-mmedia  \-mno\-media  \-mmuladd  \-mno\-muladd 
525 \&\-mfdpic  \-minline\-plt \-mgprel\-ro  \-multilib\-library\-pic 
526 \&\-mlinked\-fp  \-mlong\-calls  \-malign\-labels 
527 \&\-mlibrary\-pic  \-macc\-4  \-macc\-8 
528 \&\-mpack  \-mno\-pack  \-mno\-eflags  \-mcond\-move  \-mno\-cond\-move 
529 \&\-moptimize\-membar \-mno\-optimize\-membar 
530 \&\-mscc  \-mno\-scc  \-mcond\-exec  \-mno\-cond\-exec 
531 \&\-mvliw\-branch  \-mno\-vliw\-branch 
532 \&\-mmulti\-cond\-exec  \-mno\-multi\-cond\-exec  \-mnested\-cond\-exec 
533 \&\-mno\-nested\-cond\-exec  \-mtomcat\-stats 
534 \&\-mTLS \-mtls 
535 \&\-mcpu=\fR\fIcpu\fR
537 \&\fIGNU/Linux Options\fR
538 \&\fB\-muclibc\fR
540 \&\fIH8/300 Options\fR
541 \&\fB\-mrelax  \-mh  \-ms  \-mn  \-mint32  \-malign\-300\fR
543 \&\fI\s-1HPPA\s0 Options\fR
544 \&\fB\-march=\fR\fIarchitecture-type\fR 
545 \&\fB\-mbig\-switch  \-mdisable\-fpregs  \-mdisable\-indexing 
546 \&\-mfast\-indirect\-calls  \-mgas  \-mgnu\-ld   \-mhp\-ld 
547 \&\-mfixed\-range=\fR\fIregister-range\fR 
548 \&\fB\-mjump\-in\-delay \-mlinker\-opt \-mlong\-calls 
549 \&\-mlong\-load\-store  \-mno\-big\-switch  \-mno\-disable\-fpregs 
550 \&\-mno\-disable\-indexing  \-mno\-fast\-indirect\-calls  \-mno\-gas 
551 \&\-mno\-jump\-in\-delay  \-mno\-long\-load\-store 
552 \&\-mno\-portable\-runtime  \-mno\-soft\-float 
553 \&\-mno\-space\-regs  \-msoft\-float  \-mpa\-risc\-1\-0 
554 \&\-mpa\-risc\-1\-1  \-mpa\-risc\-2\-0  \-mportable\-runtime 
555 \&\-mschedule=\fR\fIcpu-type\fR  \fB\-mspace\-regs  \-msio  \-mwsio 
556 \&\-munix=\fR\fIunix-std\fR  \fB\-nolibdld  \-static  \-threads\fR
558 \&\fIi386 and x86\-64 Options\fR
559 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
560 \&\fB\-mfpmath=\fR\fIunit\fR 
561 \&\fB\-masm=\fR\fIdialect\fR  \fB\-mno\-fancy\-math\-387 
562 \&\-mno\-fp\-ret\-in\-387  \-msoft\-float 
563 \&\-mno\-wide\-multiply  \-mrtd  \-malign\-double 
564 \&\-mpreferred\-stack\-boundary=\fR\fInum\fR \fB\-mcld \-mcx16 \-msahf \-mrecip 
565 \&\-mmmx  \-msse  \-msse2 \-msse3 \-mssse3 \-msse4.1 \-msse4.2 \-msse4 
566 \&\-msse4a \-m3dnow \-mpopcnt \-mabm \-msse5 
567 \&\-mthreads  \-mno\-align\-stringops  \-minline\-all\-stringops 
568 \&\-mpush\-args  \-maccumulate\-outgoing\-args  \-m128bit\-long\-double 
569 \&\-m96bit\-long\-double  \-mregparm=\fR\fInum\fR  \fB\-msseregparm 
570 \&\-mveclibabi=\fR\fItype\fR \fB\-mpc32 \-mpc64 \-mpc80 \-mstackrealign 
571 \&\-momit\-leaf\-frame\-pointer  \-mno\-red\-zone \-mno\-tls\-direct\-seg\-refs 
572 \&\-mcmodel=\fR\fIcode-model\fR 
573 \&\fB\-m32  \-m64 \-mlarge\-data\-threshold=\fR\fInum\fR 
574 \&\fB\-mfused\-madd \-mno\-fused\-madd\fR
576 \&\fI\s-1IA\-64\s0 Options\fR
577 \&\fB\-mbig\-endian  \-mlittle\-endian  \-mgnu\-as  \-mgnu\-ld  \-mno\-pic 
578 \&\-mvolatile\-asm\-stop  \-mregister\-names  \-mno\-sdata 
579 \&\-mconstant\-gp  \-mauto\-pic  \-minline\-float\-divide\-min\-latency 
580 \&\-minline\-float\-divide\-max\-throughput 
581 \&\-minline\-int\-divide\-min\-latency 
582 \&\-minline\-int\-divide\-max\-throughput  
583 \&\-minline\-sqrt\-min\-latency \-minline\-sqrt\-max\-throughput 
584 \&\-mno\-dwarf2\-asm \-mearly\-stop\-bits 
585 \&\-mfixed\-range=\fR\fIregister-range\fR \fB\-mtls\-size=\fR\fItls-size\fR 
586 \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-mt \-pthread \-milp32 \-mlp64 
587 \&\-mno\-sched\-br\-data\-spec \-msched\-ar\-data\-spec \-mno\-sched\-control\-spec 
588 \&\-msched\-br\-in\-data\-spec \-msched\-ar\-in\-data\-spec \-msched\-in\-control\-spec 
589 \&\-msched\-ldc \-mno\-sched\-control\-ldc \-mno\-sched\-spec\-verbose 
590 \&\-mno\-sched\-prefer\-non\-data\-spec\-insns 
591 \&\-mno\-sched\-prefer\-non\-control\-spec\-insns 
592 \&\-mno\-sched\-count\-spec\-in\-critical\-path\fR
594 \&\fIM32R/D Options\fR
595 \&\fB\-m32r2 \-m32rx \-m32r 
596 \&\-mdebug 
597 \&\-malign\-loops \-mno\-align\-loops 
598 \&\-missue\-rate=\fR\fInumber\fR 
599 \&\fB\-mbranch\-cost=\fR\fInumber\fR 
600 \&\fB\-mmodel=\fR\fIcode-size-model-type\fR 
601 \&\fB\-msdata=\fR\fIsdata-type\fR 
602 \&\fB\-mno\-flush\-func \-mflush\-func=\fR\fIname\fR 
603 \&\fB\-mno\-flush\-trap \-mflush\-trap=\fR\fInumber\fR 
604 \&\fB\-G\fR \fInum\fR
606 \&\fIM32C Options\fR
607 \&\fB\-mcpu=\fR\fIcpu\fR \fB\-msim \-memregs=\fR\fInumber\fR
609 \&\fIM680x0 Options\fR
610 \&\fB\-march=\fR\fIarch\fR  \fB\-mcpu=\fR\fIcpu\fR  \fB\-mtune=\fR\fItune\fR
611 \&\fB\-m68000  \-m68020  \-m68020\-40  \-m68020\-60  \-m68030  \-m68040 
612 \&\-m68060  \-mcpu32  \-m5200  \-m5206e  \-m528x  \-m5307  \-m5407 
613 \&\-mcfv4e  \-mbitfield  \-mno\-bitfield  \-mc68000  \-mc68020 
614 \&\-mnobitfield  \-mrtd  \-mno\-rtd  \-mdiv  \-mno\-div  \-mshort 
615 \&\-mno\-short  \-mhard\-float  \-m68881  \-msoft\-float  \-mpcrel 
616 \&\-malign\-int  \-mstrict\-align  \-msep\-data  \-mno\-sep\-data 
617 \&\-mshared\-library\-id=n  \-mid\-shared\-library  \-mno\-id\-shared\-library\fR
619 \&\fIM68hc1x Options\fR
620 \&\fB\-m6811  \-m6812  \-m68hc11  \-m68hc12   \-m68hcs12 
621 \&\-mauto\-incdec  \-minmax  \-mlong\-calls  \-mshort 
622 \&\-msoft\-reg\-count=\fR\fIcount\fR
624 \&\fIMCore Options\fR
625 \&\fB\-mhardlit  \-mno\-hardlit  \-mdiv  \-mno\-div  \-mrelax\-immediates 
626 \&\-mno\-relax\-immediates  \-mwide\-bitfields  \-mno\-wide\-bitfields 
627 \&\-m4byte\-functions  \-mno\-4byte\-functions  \-mcallgraph\-data 
628 \&\-mno\-callgraph\-data  \-mslow\-bytes  \-mno\-slow\-bytes  \-mno\-lsim 
629 \&\-mlittle\-endian  \-mbig\-endian  \-m210  \-m340  \-mstack\-increment\fR
631 \&\fI\s-1MIPS\s0 Options\fR
632 \&\fB\-EL  \-EB  \-march=\fR\fIarch\fR  \fB\-mtune=\fR\fIarch\fR 
633 \&\fB\-mips1  \-mips2  \-mips3  \-mips4  \-mips32  \-mips32r2  \-mips64 
634 \&\-mips16  \-mno\-mips16  \-mflip\-mips16 
635 \&\-minterlink\-mips16  \-mno\-interlink\-mips16 
636 \&\-mabi=\fR\fIabi\fR  \fB\-mabicalls  \-mno\-abicalls 
637 \&\-mshared  \-mno\-shared  \-mxgot  \-mno\-xgot  \-mgp32  \-mgp64 
638 \&\-mfp32  \-mfp64  \-mhard\-float  \-msoft\-float 
639 \&\-msingle\-float  \-mdouble\-float  \-mdsp  \-mno\-dsp  \-mdspr2  \-mno\-dspr2 
640 \&\-msmartmips  \-mno\-smartmips 
641 \&\-mpaired\-single  \-mno\-paired\-single  \-mdmx  \-mno\-mdmx 
642 \&\-mips3d  \-mno\-mips3d  \-mmt  \-mno\-mt  \-mllsc  \-mno\-llsc 
643 \&\-mlong64  \-mlong32  \-msym32  \-mno\-sym32 
644 \&\-G\fR\fInum\fR  \fB\-mlocal\-sdata  \-mno\-local\-sdata 
645 \&\-mextern\-sdata  \-mno\-extern\-sdata  \-mgpopt  \-mno\-gopt 
646 \&\-membedded\-data  \-mno\-embedded\-data 
647 \&\-muninit\-const\-in\-rodata  \-mno\-uninit\-const\-in\-rodata 
648 \&\-mcode\-readable=\fR\fIsetting\fR 
649 \&\fB\-msplit\-addresses  \-mno\-split\-addresses 
650 \&\-mexplicit\-relocs  \-mno\-explicit\-relocs 
651 \&\-mcheck\-zero\-division  \-mno\-check\-zero\-division 
652 \&\-mdivide\-traps  \-mdivide\-breaks 
653 \&\-mmemcpy  \-mno\-memcpy  \-mlong\-calls  \-mno\-long\-calls 
654 \&\-mmad  \-mno\-mad  \-mfused\-madd  \-mno\-fused\-madd  \-nocpp 
655 \&\-mfix\-r4000  \-mno\-fix\-r4000  \-mfix\-r4400  \-mno\-fix\-r4400 
656 \&\-mfix\-vr4120  \-mno\-fix\-vr4120  \-mfix\-vr4130  \-mno\-fix\-vr4130 
657 \&\-mfix\-sb1  \-mno\-fix\-sb1 
658 \&\-mflush\-func=\fR\fIfunc\fR  \fB\-mno\-flush\-func 
659 \&\-mbranch\-cost=\fR\fInum\fR  \fB\-mbranch\-likely  \-mno\-branch\-likely 
660 \&\-mfp\-exceptions \-mno\-fp\-exceptions 
661 \&\-mvr4130\-align \-mno\-vr4130\-align\fR
663 \&\fI\s-1MMIX\s0 Options\fR
664 \&\fB\-mlibfuncs  \-mno\-libfuncs  \-mepsilon  \-mno\-epsilon  \-mabi=gnu 
665 \&\-mabi=mmixware  \-mzero\-extend  \-mknuthdiv  \-mtoplevel\-symbols 
666 \&\-melf  \-mbranch\-predict  \-mno\-branch\-predict  \-mbase\-addresses 
667 \&\-mno\-base\-addresses  \-msingle\-exit  \-mno\-single\-exit\fR
669 \&\fI\s-1MN10300\s0 Options\fR
670 \&\fB\-mmult\-bug  \-mno\-mult\-bug 
671 \&\-mam33  \-mno\-am33 
672 \&\-mam33\-2  \-mno\-am33\-2 
673 \&\-mreturn\-pointer\-on\-d0 
674 \&\-mno\-crt0  \-mrelax\fR
676 \&\fI\s-1MT\s0 Options\fR
677 \&\fB\-mno\-crt0 \-mbacc \-msim 
678 \&\-march=\fR\fIcpu-type\fR\fB \fR
680 \&\fI\s-1PDP\-11\s0 Options\fR
681 \&\fB\-mfpu  \-msoft\-float  \-mac0  \-mno\-ac0  \-m40  \-m45  \-m10 
682 \&\-mbcopy  \-mbcopy\-builtin  \-mint32  \-mno\-int16 
683 \&\-mint16  \-mno\-int32  \-mfloat32  \-mno\-float64 
684 \&\-mfloat64  \-mno\-float32  \-mabshi  \-mno\-abshi 
685 \&\-mbranch\-expensive  \-mbranch\-cheap 
686 \&\-msplit  \-mno\-split  \-munix\-asm  \-mdec\-asm\fR
688 \&\fIPowerPC Options\fR
689 See \s-1RS/6000\s0 and PowerPC Options.
691 \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
692 \&\fB\-mcpu=\fR\fIcpu-type\fR 
693 \&\fB\-mtune=\fR\fIcpu-type\fR 
694 \&\fB\-mpower  \-mno\-power  \-mpower2  \-mno\-power2 
695 \&\-mpowerpc  \-mpowerpc64  \-mno\-powerpc 
696 \&\-maltivec  \-mno\-altivec 
697 \&\-mpowerpc\-gpopt  \-mno\-powerpc\-gpopt 
698 \&\-mpowerpc\-gfxopt  \-mno\-powerpc\-gfxopt 
699 \&\-mmfcrf  \-mno\-mfcrf  \-mpopcntb  \-mno\-popcntb  \-mfprnd  \-mno\-fprnd 
700 \&\-mcmpb \-mno\-cmpb \-mmfpgpr \-mno\-mfpgpr \-mhard\-dfp \-mno\-hard\-dfp 
701 \&\-mnew\-mnemonics  \-mold\-mnemonics 
702 \&\-mfull\-toc   \-mminimal\-toc  \-mno\-fp\-in\-toc  \-mno\-sum\-in\-toc 
703 \&\-m64  \-m32  \-mxl\-compat  \-mno\-xl\-compat  \-mpe 
704 \&\-malign\-power  \-malign\-natural 
705 \&\-msoft\-float  \-mhard\-float  \-mmultiple  \-mno\-multiple 
706 \&\-mstring  \-mno\-string  \-mupdate  \-mno\-update 
707 \&\-mfused\-madd  \-mno\-fused\-madd  \-mbit\-align  \-mno\-bit\-align 
708 \&\-mstrict\-align  \-mno\-strict\-align  \-mrelocatable 
709 \&\-mno\-relocatable  \-mrelocatable\-lib  \-mno\-relocatable\-lib 
710 \&\-mtoc  \-mno\-toc  \-mlittle  \-mlittle\-endian  \-mbig  \-mbig\-endian 
711 \&\-mdynamic\-no\-pic  \-maltivec  \-mswdiv 
712 \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR 
713 \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR 
714 \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR 
715 \&\fB\-mcall\-sysv  \-mcall\-netbsd 
716 \&\-maix\-struct\-return  \-msvr4\-struct\-return 
717 \&\-mabi=\fR\fIabi-type\fR \fB\-msecure\-plt \-mbss\-plt 
718 \&\-misel \-mno\-isel 
719 \&\-misel=yes  \-misel=no 
720 \&\-mspe \-mno\-spe 
721 \&\-mspe=yes  \-mspe=no 
722 \&\-mpaired 
723 \&\-mvrsave \-mno\-vrsave 
724 \&\-mmulhw \-mno\-mulhw 
725 \&\-mdlmzb \-mno\-dlmzb 
726 \&\-mfloat\-gprs=yes  \-mfloat\-gprs=no \-mfloat\-gprs=single \-mfloat\-gprs=double 
727 \&\-mprototype  \-mno\-prototype 
728 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb  \-msdata 
729 \&\-msdata=\fR\fIopt\fR  \fB\-mvxworks  \-mwindiss  \-G\fR \fInum\fR  \fB\-pthread\fR
731 \&\fIS/390 and zSeries Options\fR
732 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
733 \&\fB\-mhard\-float  \-msoft\-float  \-mhard\-dfp \-mno\-hard\-dfp 
734 \&\-mlong\-double\-64 \-mlong\-double\-128 
735 \&\-mbackchain  \-mno\-backchain \-mpacked\-stack  \-mno\-packed\-stack 
736 \&\-msmall\-exec  \-mno\-small\-exec  \-mmvcle \-mno\-mvcle 
737 \&\-m64  \-m31  \-mdebug  \-mno\-debug  \-mesa  \-mzarch 
738 \&\-mtpf\-trace \-mno\-tpf\-trace  \-mfused\-madd  \-mno\-fused\-madd 
739 \&\-mwarn\-framesize  \-mwarn\-dynamicstack  \-mstack\-size \-mstack\-guard\fR
741 \&\fIScore Options\fR
742 \&\fB\-meb \-mel 
743 \&\-mnhwloop 
744 \&\-muls 
745 \&\-mmac 
746 \&\-mscore5 \-mscore5u \-mscore7 \-mscore7d\fR
748 \&\fI\s-1SH\s0 Options\fR
749 \&\fB\-m1  \-m2  \-m2e  \-m3  \-m3e 
750 \&\-m4\-nofpu  \-m4\-single\-only  \-m4\-single  \-m4 
751 \&\-m4a\-nofpu \-m4a\-single\-only \-m4a\-single \-m4a \-m4al 
752 \&\-m5\-64media  \-m5\-64media\-nofpu 
753 \&\-m5\-32media  \-m5\-32media\-nofpu 
754 \&\-m5\-compact  \-m5\-compact\-nofpu 
755 \&\-mb  \-ml  \-mdalign  \-mrelax 
756 \&\-mbigtable  \-mfmovd  \-mhitachi \-mrenesas \-mno\-renesas \-mnomacsave 
757 \&\-mieee  \-misize  \-minline\-ic_invalidate \-mpadstruct  \-mspace 
758 \&\-mprefergot  \-musermode \-multcost=\fR\fInumber\fR \fB\-mdiv=\fR\fIstrategy\fR 
759 \&\fB\-mdivsi3_libfunc=\fR\fIname\fR  
760 \&\fB\-madjust\-unroll \-mindexed\-addressing \-mgettrcost=\fR\fInumber\fR \fB\-mpt\-fixed 
761  \-minvalid\-symbols\fR
763 \&\fI\s-1SPARC\s0 Options\fR
764 \&\fB\-mcpu=\fR\fIcpu-type\fR 
765 \&\fB\-mtune=\fR\fIcpu-type\fR 
766 \&\fB\-mcmodel=\fR\fIcode-model\fR 
767 \&\fB\-m32  \-m64  \-mapp\-regs  \-mno\-app\-regs 
768 \&\-mfaster\-structs  \-mno\-faster\-structs 
769 \&\-mfpu  \-mno\-fpu  \-mhard\-float  \-msoft\-float 
770 \&\-mhard\-quad\-float  \-msoft\-quad\-float 
771 \&\-mimpure\-text  \-mno\-impure\-text  \-mlittle\-endian 
772 \&\-mstack\-bias  \-mno\-stack\-bias 
773 \&\-munaligned\-doubles  \-mno\-unaligned\-doubles 
774 \&\-mv8plus  \-mno\-v8plus  \-mvis  \-mno\-vis
775 \&\-threads \-pthreads \-pthread\fR
777 \&\fI\s-1SPU\s0 Options\fR
778 \&\fB\-mwarn\-reloc \-merror\-reloc 
779 \&\-msafe\-dma \-munsafe\-dma 
780 \&\-mbranch\-hints 
781 \&\-msmall\-mem \-mlarge\-mem \-mstdmain 
782 \&\-mfixed\-range=\fR\fIregister-range\fR
784 \&\fISystem V Options\fR
785 \&\fB\-Qy  \-Qn  \-YP,\fR\fIpaths\fR  \fB\-Ym,\fR\fIdir\fR
787 \&\fIV850 Options\fR
788 \&\fB\-mlong\-calls  \-mno\-long\-calls  \-mep  \-mno\-ep 
789 \&\-mprolog\-function  \-mno\-prolog\-function  \-mspace 
790 \&\-mtda=\fR\fIn\fR  \fB\-msda=\fR\fIn\fR  \fB\-mzda=\fR\fIn\fR 
791 \&\fB\-mapp\-regs  \-mno\-app\-regs 
792 \&\-mdisable\-callt  \-mno\-disable\-callt 
793 \&\-mv850e1 
794 \&\-mv850e 
795 \&\-mv850  \-mbig\-switch\fR
797 \&\fI\s-1VAX\s0 Options\fR
798 \&\fB\-mg  \-mgnu  \-munix\fR
800 \&\fIVxWorks Options\fR
801 \&\fB\-mrtp  \-non\-static  \-Bstatic  \-Bdynamic 
802 \&\-Xbind\-lazy  \-Xbind\-now\fR
804 \&\fIx86\-64 Options\fR
805 See i386 and x86\-64 Options.
807 \&\fIXstormy16 Options\fR
808 \&\fB\-msim\fR
810 \&\fIXtensa Options\fR
811 \&\fB\-mconst16 \-mno\-const16 
812 \&\-mfused\-madd  \-mno\-fused\-madd 
813 \&\-mtext\-section\-literals  \-mno\-text\-section\-literals 
814 \&\-mtarget\-align  \-mno\-target\-align 
815 \&\-mlongcalls  \-mno\-longcalls\fR
817 \&\fIzSeries Options\fR
818 See S/390 and zSeries Options.
819 .IP "\fICode Generation Options\fR" 4
820 .IX Item "Code Generation Options"
821 \&\fB\-fcall\-saved\-\fR\fIreg\fR  \fB\-fcall\-used\-\fR\fIreg\fR 
822 \&\fB\-ffixed\-\fR\fIreg\fR  \fB\-fexceptions 
823 \&\-fnon\-call\-exceptions  \-funwind\-tables 
824 \&\-fasynchronous\-unwind\-tables 
825 \&\-finhibit\-size\-directive  \-finstrument\-functions 
826 \&\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,... 
827 \&\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,... 
828 \&\-fno\-common  \-fno\-ident 
829 \&\-fpcc\-struct\-return  \-fpic  \-fPIC \-fpie \-fPIE 
830 \&\-fno\-jump\-tables 
831 \&\-frecord\-gcc\-switches 
832 \&\-freg\-struct\-return  \-fshort\-enums 
833 \&\-fshort\-double  \-fshort\-wchar 
834 \&\-fverbose\-asm  \-fpack\-struct[=\fR\fIn\fR\fB]  \-fstack\-check 
835 \&\-fstack\-limit\-register=\fR\fIreg\fR  \fB\-fstack\-limit\-symbol=\fR\fIsym\fR 
836 \&\fB\-fno\-stack\-limit  \-fargument\-alias  \-fargument\-noalias 
837 \&\-fargument\-noalias\-global  \-fargument\-noalias\-anything 
838 \&\-fleading\-underscore  \-ftls\-model=\fR\fImodel\fR 
839 \&\fB\-ftrapv  \-fwrapv  \-fbounds\-check 
840 \&\-fvisibility\fR
841 .Sh "Options Controlling the Kind of Output"
842 .IX Subsection "Options Controlling the Kind of Output"
843 Compilation can involve up to four stages: preprocessing, compilation
844 proper, assembly and linking, always in that order.  \s-1GCC\s0 is capable of
845 preprocessing and compiling several files either into several
846 assembler input files, or into one assembler input file; then each
847 assembler input file produces an object file, and linking combines all
848 the object files (those newly compiled, and those specified as input)
849 into an executable file.
851 For any given input file, the file name suffix determines what kind of
852 compilation is done:
853 .IP "\fIfile\fR\fB.c\fR" 4
854 .IX Item "file.c"
855 C source code which must be preprocessed.
856 .IP "\fIfile\fR\fB.i\fR" 4
857 .IX Item "file.i"
858 C source code which should not be preprocessed.
859 .IP "\fIfile\fR\fB.ii\fR" 4
860 .IX Item "file.ii"
861 \&\*(C+ source code which should not be preprocessed.
862 .IP "\fIfile\fR\fB.m\fR" 4
863 .IX Item "file.m"
864 Objective-C source code.  Note that you must link with the \fIlibobjc\fR
865 library to make an Objective-C program work.
866 .IP "\fIfile\fR\fB.mi\fR" 4
867 .IX Item "file.mi"
868 Objective-C source code which should not be preprocessed.
869 .IP "\fIfile\fR\fB.mm\fR" 4
870 .IX Item "file.mm"
871 .PD 0
872 .IP "\fIfile\fR\fB.M\fR" 4
873 .IX Item "file.M"
875 Objective\-\*(C+ source code.  Note that you must link with the \fIlibobjc\fR
876 library to make an Objective\-\*(C+ program work.  Note that \fB.M\fR refers
877 to a literal capital M.
878 .IP "\fIfile\fR\fB.mii\fR" 4
879 .IX Item "file.mii"
880 Objective\-\*(C+ source code which should not be preprocessed.
881 .IP "\fIfile\fR\fB.h\fR" 4
882 .IX Item "file.h"
883 C, \*(C+, Objective-C or Objective\-\*(C+ header file to be turned into a
884 precompiled header.
885 .IP "\fIfile\fR\fB.cc\fR" 4
886 .IX Item "file.cc"
887 .PD 0
888 .IP "\fIfile\fR\fB.cp\fR" 4
889 .IX Item "file.cp"
890 .IP "\fIfile\fR\fB.cxx\fR" 4
891 .IX Item "file.cxx"
892 .IP "\fIfile\fR\fB.cpp\fR" 4
893 .IX Item "file.cpp"
894 .IP "\fIfile\fR\fB.CPP\fR" 4
895 .IX Item "file.CPP"
896 .IP "\fIfile\fR\fB.c++\fR" 4
897 .IX Item "file.c++"
898 .IP "\fIfile\fR\fB.C\fR" 4
899 .IX Item "file.C"
901 \&\*(C+ source code which must be preprocessed.  Note that in \fB.cxx\fR,
902 the last two letters must both be literally \fBx\fR.  Likewise,
903 \&\fB.C\fR refers to a literal capital C.
904 .IP "\fIfile\fR\fB.mm\fR" 4
905 .IX Item "file.mm"
906 .PD 0
907 .IP "\fIfile\fR\fB.M\fR" 4
908 .IX Item "file.M"
910 Objective\-\*(C+ source code which must be preprocessed.
911 .IP "\fIfile\fR\fB.mii\fR" 4
912 .IX Item "file.mii"
913 Objective\-\*(C+ source code which should not be preprocessed.
914 .IP "\fIfile\fR\fB.hh\fR" 4
915 .IX Item "file.hh"
916 .PD 0
917 .IP "\fIfile\fR\fB.H\fR" 4
918 .IX Item "file.H"
919 .IP "\fIfile\fR\fB.hp\fR" 4
920 .IX Item "file.hp"
921 .IP "\fIfile\fR\fB.hxx\fR" 4
922 .IX Item "file.hxx"
923 .IP "\fIfile\fR\fB.hpp\fR" 4
924 .IX Item "file.hpp"
925 .IP "\fIfile\fR\fB.HPP\fR" 4
926 .IX Item "file.HPP"
927 .IP "\fIfile\fR\fB.h++\fR" 4
928 .IX Item "file.h++"
929 .IP "\fIfile\fR\fB.tcc\fR" 4
930 .IX Item "file.tcc"
932 \&\*(C+ header file to be turned into a precompiled header.
933 .IP "\fIfile\fR\fB.f\fR" 4
934 .IX Item "file.f"
935 .PD 0
936 .IP "\fIfile\fR\fB.for\fR" 4
937 .IX Item "file.for"
938 .IP "\fIfile\fR\fB.FOR\fR" 4
939 .IX Item "file.FOR"
941 Fixed form Fortran source code which should not be preprocessed.
942 .IP "\fIfile\fR\fB.F\fR" 4
943 .IX Item "file.F"
944 .PD 0
945 .IP "\fIfile\fR\fB.fpp\fR" 4
946 .IX Item "file.fpp"
947 .IP "\fIfile\fR\fB.FPP\fR" 4
948 .IX Item "file.FPP"
950 Fixed form Fortran source code which must be preprocessed (with the traditional
951 preprocessor).
952 .IP "\fIfile\fR\fB.f90\fR" 4
953 .IX Item "file.f90"
954 .PD 0
955 .IP "\fIfile\fR\fB.f95\fR" 4
956 .IX Item "file.f95"
958 Free form Fortran source code which should not be preprocessed.
959 .IP "\fIfile\fR\fB.F90\fR" 4
960 .IX Item "file.F90"
961 .PD 0
962 .IP "\fIfile\fR\fB.F95\fR" 4
963 .IX Item "file.F95"
965 Free form Fortran source code which must be preprocessed (with the
966 traditional preprocessor).
967 .IP "\fIfile\fR\fB.ads\fR" 4
968 .IX Item "file.ads"
969 Ada source code file which contains a library unit declaration (a
970 declaration of a package, subprogram, or generic, or a generic
971 instantiation), or a library unit renaming declaration (a package,
972 generic, or subprogram renaming declaration).  Such files are also
973 called \fIspecs\fR.
974 .IP "\fIfile\fR\fB.adb\fR" 4
975 .IX Item "file.adb"
976 Ada source code file containing a library unit body (a subprogram or
977 package body).  Such files are also called \fIbodies\fR.
978 .IP "\fIfile\fR\fB.s\fR" 4
979 .IX Item "file.s"
980 Assembler code.
981 .IP "\fIfile\fR\fB.S\fR" 4
982 .IX Item "file.S"
983 .PD 0
984 .IP "\fIfile\fR\fB.sx\fR" 4
985 .IX Item "file.sx"
987 Assembler code which must be preprocessed.
988 .IP "\fIother\fR" 4
989 .IX Item "other"
990 An object file to be fed straight into linking.
991 Any file name with no recognized suffix is treated this way.
993 You can specify the input language explicitly with the \fB\-x\fR option:
994 .IP "\fB\-x\fR \fIlanguage\fR" 4
995 .IX Item "-x language"
996 Specify explicitly the \fIlanguage\fR for the following input files
997 (rather than letting the compiler choose a default based on the file
998 name suffix).  This option applies to all following input files until
999 the next \fB\-x\fR option.  Possible values for \fIlanguage\fR are:
1001 .Vb 9
1002 \&        c  c\-header  c\-cpp\-output
1003 \&        c++  c++\-header  c++\-cpp\-output
1004 \&        objective\-c  objective\-c\-header  objective\-c\-cpp\-output
1005 \&        objective\-c++ objective\-c++\-header objective\-c++\-cpp\-output
1006 \&        assembler  assembler\-with\-cpp
1007 \&        ada
1008 \&        f95  f95\-cpp\-input
1009 \&        java
1010 \&        treelang
1012 .IP "\fB\-x none\fR" 4
1013 .IX Item "-x none"
1014 Turn off any specification of a language, so that subsequent files are
1015 handled according to their file name suffixes (as they are if \fB\-x\fR
1016 has not been used at all).
1017 .IP "\fB\-pass\-exit\-codes\fR" 4
1018 .IX Item "-pass-exit-codes"
1019 Normally the \fBgcc\fR program will exit with the code of 1 if any
1020 phase of the compiler returns a non-success return code.  If you specify
1021 \&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program will instead return with
1022 numerically highest error produced by any phase that returned an error
1023 indication.  The C, \*(C+, and Fortran frontends return 4, if an internal
1024 compiler error is encountered.
1026 If you only want some of the stages of compilation, you can use
1027 \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
1028 one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
1029 \&\fBgcc\fR is to stop.  Note that some combinations (for example,
1030 \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
1031 .IP "\fB\-c\fR" 4
1032 .IX Item "-c"
1033 Compile or assemble the source files, but do not link.  The linking
1034 stage simply is not done.  The ultimate output is in the form of an
1035 object file for each source file.
1037 By default, the object file name for a source file is made by replacing
1038 the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
1040 Unrecognized input files, not requiring compilation or assembly, are
1041 ignored.
1042 .IP "\fB\-S\fR" 4
1043 .IX Item "-S"
1044 Stop after the stage of compilation proper; do not assemble.  The output
1045 is in the form of an assembler code file for each non-assembler input
1046 file specified.
1048 By default, the assembler file name for a source file is made by
1049 replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
1051 Input files that don't require compilation are ignored.
1052 .IP "\fB\-E\fR" 4
1053 .IX Item "-E"
1054 Stop after the preprocessing stage; do not run the compiler proper.  The
1055 output is in the form of preprocessed source code, which is sent to the
1056 standard output.
1058 Input files which don't require preprocessing are ignored.
1059 .IP "\fB\-o\fR \fIfile\fR" 4
1060 .IX Item "-o file"
1061 Place output in file \fIfile\fR.  This applies regardless to whatever
1062 sort of output is being produced, whether it be an executable file,
1063 an object file, an assembler file or preprocessed C code.
1065 If \fB\-o\fR is not specified, the default is to put an executable
1066 file in \fIa.out\fR, the object file for
1067 \&\fI\fIsource\fI.\fIsuffix\fI\fR in \fI\fIsource\fI.o\fR, its
1068 assembler file in \fI\fIsource\fI.s\fR, a precompiled header file in
1069 \&\fI\fIsource\fI.\fIsuffix\fI.gch\fR, and all preprocessed C source on
1070 standard output.
1071 .IP "\fB\-v\fR" 4
1072 .IX Item "-v"
1073 Print (on standard error output) the commands executed to run the stages
1074 of compilation.  Also print the version number of the compiler driver
1075 program and of the preprocessor and the compiler proper.
1076 .IP "\fB\-###\fR" 4
1077 .IX Item "-###"
1078 Like \fB\-v\fR except the commands are not executed and all command
1079 arguments are quoted.  This is useful for shell scripts to capture the
1080 driver-generated command lines.
1081 .IP "\fB\-pipe\fR" 4
1082 .IX Item "-pipe"
1083 Use pipes rather than temporary files for communication between the
1084 various stages of compilation.  This fails to work on some systems where
1085 the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
1086 no trouble.
1087 .IP "\fB\-combine\fR" 4
1088 .IX Item "-combine"
1089 If you are compiling multiple source files, this option tells the driver
1090 to pass all the source files to the compiler at once (for those
1091 languages for which the compiler can handle this).  This will allow
1092 intermodule analysis (\s-1IMA\s0) to be performed by the compiler.  Currently the only
1093 language for which this is supported is C.  If you pass source files for
1094 multiple languages to the driver, using this option, the driver will invoke
1095 the compiler(s) that support \s-1IMA\s0 once each, passing each compiler all the
1096 source files appropriate for it.  For those languages that do not support
1097 \&\s-1IMA\s0 this option will be ignored, and the compiler will be invoked once for
1098 each source file in that language.  If you use this option in conjunction
1099 with \fB\-save\-temps\fR, the compiler will generate multiple
1100 pre-processed files
1101 (one for each source file), but only one (combined) \fI.o\fR or
1102 \&\fI.s\fR file.
1103 .IP "\fB\-\-help\fR" 4
1104 .IX Item "--help"
1105 Print (on the standard output) a description of the command line options
1106 understood by \fBgcc\fR.  If the \fB\-v\fR option is also specified
1107 then \fB\-\-help\fR will also be passed on to the various processes
1108 invoked by \fBgcc\fR, so that they can display the command line options
1109 they accept.  If the \fB\-Wextra\fR option has also been specified
1110 (prior to the \fB\-\-help\fR option), then command line options which
1111 have no documentation associated with them will also be displayed.
1112 .IP "\fB\-\-target\-help\fR" 4
1113 .IX Item "--target-help"
1114 Print (on the standard output) a description of target-specific command
1115 line options for each tool.  For some targets extra target-specific
1116 information may also be printed.
1117 .IP "\fB\-\-help=\fR\fIclass\fR[\fB,\fR\fIqualifier\fR]" 4
1118 .IX Item "--help=class[,qualifier]"
1119 Print (on the standard output) a description of the command line
1120 options understood by the compiler that fit into a specific class.
1121 The class can be one of \fBoptimizers\fR, \fBwarnings\fR, \fBtarget\fR,
1122 \&\fBparams\fR, or \fIlanguage\fR:
1123 .RS 4
1124 .IP "\fBoptimizers\fR" 4
1125 .IX Item "optimizers"
1126 This will display all of the optimization options supported by the
1127 compiler.
1128 .IP "\fBwarnings\fR" 4
1129 .IX Item "warnings"
1130 This will display all of the options controlling warning messages
1131 produced by the compiler.
1132 .IP "\fBtarget\fR" 4
1133 .IX Item "target"
1134 This will display target-specific options.  Unlike the
1135 \&\fB\-\-target\-help\fR option however, target-specific options of the
1136 linker and assembler will not be displayed.  This is because those
1137 tools do not currently support the extended \fB\-\-help=\fR syntax.
1138 .IP "\fBparams\fR" 4
1139 .IX Item "params"
1140 This will display the values recognized by the \fB\-\-param\fR
1141 option.
1142 .IP "\fIlanguage\fR" 4
1143 .IX Item "language"
1144 This will display the options supported for \fIlanguage\fR, where 
1145 \&\fIlanguage\fR is the name of one of the languages supported in this 
1146 version of \s-1GCC\s0.
1147 .IP "\fBcommon\fR" 4
1148 .IX Item "common"
1149 This will display the options that are common to all languages.
1151 .RS 4
1153 It is possible to further refine the output of the \fB\-\-help=\fR
1154 option by adding a comma separated list of qualifiers after the
1155 class.  These can be any from the following list:
1156 .IP "\fBundocumented\fR" 4
1157 .IX Item "undocumented"
1158 Display only those options which are undocumented.
1159 .IP "\fBjoined\fR" 4
1160 .IX Item "joined"
1161 Display options which take an argument that appears after an equal
1162 sign in the same continuous piece of text, such as:
1163 \&\fB\-\-help=target\fR.
1164 .IP "\fBseparate\fR" 4
1165 .IX Item "separate"
1166 Display options which take an argument that appears as a separate word
1167 following the original option, such as: \fB\-o output-file\fR.
1169 .RS 4
1171 Thus for example to display all the undocumented target-specific
1172 switches supported by the compiler the following can be used:
1174 .Vb 1
1175 \&        \-\-help=target,undocumented
1178 The sense of a qualifier can be inverted by prefixing it with the
1179 \&\fI^\fR character, so for example to display all binary warning
1180 options (i.e., ones that are either on or off and that do not take an
1181 argument), which have a description the following can be used:
1183 .Vb 1
1184 \&        \-\-help=warnings,^joined,^undocumented
1187 A class can also be used as a qualifier, although this usually
1188 restricts the output by so much that there is nothing to display.  One
1189 case where it does work however is when one of the classes is
1190 \&\fItarget\fR.  So for example to display all the target-specific
1191 optimization options the following can be used:
1193 .Vb 1
1194 \&        \-\-help=target,optimizers
1197 The \fB\-\-help=\fR option can be repeated on the command line.  Each
1198 successive use will display its requested class of options, skipping
1199 those that have already been displayed.
1201 If the \fB\-Q\fR option appears on the command line before the
1202 \&\fB\-\-help=\fR option, then the descriptive text displayed by
1203 \&\fB\-\-help=\fR is changed.  Instead of describing the displayed
1204 options, an indication is given as to whether the option is enabled,
1205 disabled or set to a specific value (assuming that the compiler
1206 knows this at the point where the \fB\-\-help=\fR option is used).
1208 Here is a truncated example from the \s-1ARM\s0 port of \fBgcc\fR:
1210 .Vb 5
1211 \&          % gcc \-Q \-mabi=2 \-\-help=target \-c
1212 \&          The following options are target specific:
1213 \&          \-mabi=                                2
1214 \&          \-mabort\-on\-noreturn                   [disabled]
1215 \&          \-mapcs                                [disabled]
1218 The output is sensitive to the effects of previous command line
1219 options, so for example it is possible to find out which optimizations
1220 are enabled at \fB\-O2\fR by using:
1222 .Vb 1
1223 \&        \-O2 \-\-help=optimizers
1226 Alternatively you can discover which binary optimizations are enabled
1227 by \fB\-O3\fR by using:
1229 .Vb 3
1230 \&        gcc \-c \-Q \-O3 \-\-help=optimizers > /tmp/O3\-opts
1231 \&        gcc \-c \-Q \-O2 \-\-help=optimizers > /tmp/O2\-opts
1232 \&        diff /tmp/O2\-opts /tmp/O3\-opts | grep enabled
1235 .IP "\fB\-\-version\fR" 4
1236 .IX Item "--version"
1237 Display the version number and copyrights of the invoked \s-1GCC\s0.
1238 .IP "\fB@\fR\fIfile\fR" 4
1239 .IX Item "@file"
1240 Read command-line options from \fIfile\fR.  The options read are
1241 inserted in place of the original @\fIfile\fR option.  If \fIfile\fR
1242 does not exist, or cannot be read, then the option will be treated
1243 literally, and not removed.
1245 Options in \fIfile\fR are separated by whitespace.  A whitespace
1246 character may be included in an option by surrounding the entire
1247 option in either single or double quotes.  Any character (including a
1248 backslash) may be included by prefixing the character to be included
1249 with a backslash.  The \fIfile\fR may itself contain additional
1250 @\fIfile\fR options; any such options will be processed recursively.
1251 .Sh "Compiling \*(C+ Programs"
1252 .IX Subsection "Compiling  Programs"
1253 \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
1254 \&\fB.cc\fR, \fB.cpp\fR, \fB.CPP\fR, \fB.c++\fR, \fB.cp\fR, or
1255 \&\fB.cxx\fR; \*(C+ header files often use \fB.hh\fR, \fB.hpp\fR,
1256 \&\fB.H\fR, or (for shared template code) \fB.tcc\fR; and
1257 preprocessed \*(C+ files use the suffix \fB.ii\fR.  \s-1GCC\s0 recognizes
1258 files with these names and compiles them as \*(C+ programs even if you
1259 call the compiler the same way as for compiling C programs (usually
1260 with the name \fBgcc\fR).
1262 However, the use of \fBgcc\fR does not add the \*(C+ library.
1263 \&\fBg++\fR is a program that calls \s-1GCC\s0 and treats \fB.c\fR,
1264 \&\fB.h\fR and \fB.i\fR files as \*(C+ source files instead of C source
1265 files unless \fB\-x\fR is used, and automatically specifies linking
1266 against the \*(C+ library.  This program is also useful when
1267 precompiling a C header file with a \fB.h\fR extension for use in \*(C+
1268 compilations.  On many systems, \fBg++\fR is also installed with
1269 the name \fBc++\fR.
1271 When you compile \*(C+ programs, you may specify many of the same
1272 command-line options that you use for compiling programs in any
1273 language; or command-line options meaningful for C and related
1274 languages; or options that are meaningful only for \*(C+ programs.
1275 .Sh "Options Controlling C Dialect"
1276 .IX Subsection "Options Controlling C Dialect"
1277 The following options control the dialect of C (or languages derived
1278 from C, such as \*(C+, Objective-C and Objective\-\*(C+) that the compiler
1279 accepts:
1280 .IP "\fB\-ansi\fR" 4
1281 .IX Item "-ansi"
1282 In C mode, this is equivalent to \fB\-std=c89\fR. In \*(C+ mode, it is
1283 equivalent to \fB\-std=c++98\fR.
1285 This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO\s0
1286 C90 (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
1287 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
1288 predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
1289 type of system you are using.  It also enables the undesirable and
1290 rarely used \s-1ISO\s0 trigraph feature.  For the C compiler,
1291 it disables recognition of \*(C+ style \fB//\fR comments as well as
1292 the \f(CW\*(C`inline\*(C'\fR keyword.
1294 The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
1295 \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
1296 \&\fB\-ansi\fR.  You would not want to use them in an \s-1ISO\s0 C program, of
1297 course, but it is useful to put them in header files that might be included
1298 in compilations done with \fB\-ansi\fR.  Alternate predefined macros
1299 such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
1300 without \fB\-ansi\fR.
1302 The \fB\-ansi\fR option does not cause non-ISO programs to be
1303 rejected gratuitously.  For that, \fB\-pedantic\fR is required in
1304 addition to \fB\-ansi\fR.
1306 The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
1307 option is used.  Some header files may notice this macro and refrain
1308 from declaring certain functions or defining certain macros that the
1309 \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
1310 programs that might use these names for other things.
1312 Functions that would normally be built in but do not have semantics
1313 defined by \s-1ISO\s0 C (such as \f(CW\*(C`alloca\*(C'\fR and \f(CW\*(C`ffs\*(C'\fR) are not built-in
1314 functions when \fB\-ansi\fR is used.
1315 .IP "\fB\-std=\fR" 4
1316 .IX Item "-std="
1317 Determine the language standard.   This option
1318 is currently only supported when compiling C or \*(C+.
1320 The compiler can accept several base standards, such as \fBc89\fR or
1321 \&\fBc++98\fR, and \s-1GNU\s0 dialects of those standards, such as
1322 \&\fBgnu89\fR or \fBgnu++98\fR.  By specifing a base standard, the
1323 compiler will accept all programs following that standard and those
1324 using \s-1GNU\s0 extensions that do not contradict it.  For example,
1325 \&\fB\-std=c89\fR turns off certain features of \s-1GCC\s0 that are
1326 incompatible with \s-1ISO\s0 C90, such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR
1327 keywords, but not other \s-1GNU\s0 extensions that do not have a meaning in
1328 \&\s-1ISO\s0 C90, such as omitting the middle term of a \f(CW\*(C`?:\*(C'\fR
1329 expression. On the other hand, by specifing a \s-1GNU\s0 dialect of a
1330 standard, all features the compiler support are enabled, even when
1331 those features change the meaning of the base standard and some
1332 strict-conforming programs may be rejected.  The particular standard
1333 is used by \fB\-pedantic\fR to identify which features are \s-1GNU\s0
1334 extensions given that version of the standard. For example
1335 \&\fB\-std=gnu89 \-pedantic\fR would warn about \*(C+ style \fB//\fR
1336 comments, while \fB\-std=gnu99 \-pedantic\fR would not.
1338 A value for this option must be provided; possible values are
1339 .RS 4
1340 .IP "\fBc89\fR" 4
1341 .IX Item "c89"
1342 .PD 0
1343 .IP "\fBiso9899:1990\fR" 4
1344 .IX Item "iso9899:1990"
1346 Support all \s-1ISO\s0 C90 programs (certain \s-1GNU\s0 extensions that conflict
1347 with \s-1ISO\s0 C90 are disabled). Same as \fB\-ansi\fR for C code.
1348 .IP "\fBiso9899:199409\fR" 4
1349 .IX Item "iso9899:199409"
1350 \&\s-1ISO\s0 C90 as modified in amendment 1.
1351 .IP "\fBc99\fR" 4
1352 .IX Item "c99"
1353 .PD 0
1354 .IP "\fBc9x\fR" 4
1355 .IX Item "c9x"
1356 .IP "\fBiso9899:1999\fR" 4
1357 .IX Item "iso9899:1999"
1358 .IP "\fBiso9899:199x\fR" 4
1359 .IX Item "iso9899:199x"
1361 \&\s-1ISO\s0 C99.  Note that this standard is not yet fully supported; see
1362 <\fBhttp://gcc.gnu.org/gcc\-4.3/c99status.html\fR> for more information.  The
1363 names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
1364 .IP "\fBgnu89\fR" 4
1365 .IX Item "gnu89"
1366 \&\s-1GNU\s0 dialect of \s-1ISO\s0 C90 (including some C99 features). This
1367 is the default for C code.
1368 .IP "\fBgnu99\fR" 4
1369 .IX Item "gnu99"
1370 .PD 0
1371 .IP "\fBgnu9x\fR" 4
1372 .IX Item "gnu9x"
1374 \&\s-1GNU\s0 dialect of \s-1ISO\s0 C99.  When \s-1ISO\s0 C99 is fully implemented in \s-1GCC\s0,
1375 this will become the default.  The name \fBgnu9x\fR is deprecated.
1376 .IP "\fBc++98\fR" 4
1377 .IX Item "c++98"
1378 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments. Same as \fB\-ansi\fR for
1379 \&\*(C+ code.
1380 .IP "\fBgnu++98\fR" 4
1381 .IX Item "gnu++98"
1382 \&\s-1GNU\s0 dialect of \fB\-std=c++98\fR.  This is the default for
1383 \&\*(C+ code.
1384 .IP "\fBc++0x\fR" 4
1385 .IX Item "c++0x"
1386 The working draft of the upcoming \s-1ISO\s0 \*(C+0x standard. This option
1387 enables experimental features that are likely to be included in
1388 \&\*(C+0x. The working draft is constantly changing, and any feature that is
1389 enabled by this flag may be removed from future versions of \s-1GCC\s0 if it is
1390 not part of the \*(C+0x standard.
1391 .IP "\fBgnu++0x\fR" 4
1392 .IX Item "gnu++0x"
1393 \&\s-1GNU\s0 dialect of \fB\-std=c++0x\fR. This option enables
1394 experimental features that may be removed in future versions of \s-1GCC\s0.
1396 .RS 4
1398 .IP "\fB\-fgnu89\-inline\fR" 4
1399 .IX Item "-fgnu89-inline"
1400 The option \fB\-fgnu89\-inline\fR tells \s-1GCC\s0 to use the traditional
1401 \&\s-1GNU\s0 semantics for \f(CW\*(C`inline\*(C'\fR functions when in C99 mode.
1402   This option
1403 is accepted and ignored by \s-1GCC\s0 versions 4.1.3 up to but not including
1404 4.3.  In \s-1GCC\s0 versions 4.3 and later it changes the behavior of \s-1GCC\s0 in
1405 C99 mode.  Using this option is roughly equivalent to adding the
1406 \&\f(CW\*(C`gnu_inline\*(C'\fR function attribute to all inline functions.
1408 The option \fB\-fno\-gnu89\-inline\fR explicitly tells \s-1GCC\s0 to use the
1409 C99 semantics for \f(CW\*(C`inline\*(C'\fR when in C99 or gnu99 mode (i.e., it
1410 specifies the default behavior).  This option was first supported in
1411 \&\s-1GCC\s0 4.3.  This option is not supported in C89 or gnu89 mode.
1413 The preprocessor macros \f(CW\*(C`_\|_GNUC_GNU_INLINE_\|_\*(C'\fR and
1414 \&\f(CW\*(C`_\|_GNUC_STDC_INLINE_\|_\*(C'\fR may be used to check which semantics are
1415 in effect for \f(CW\*(C`inline\*(C'\fR functions.
1416 .IP "\fB\-aux\-info\fR \fIfilename\fR" 4
1417 .IX Item "-aux-info filename"
1418 Output to the given filename prototyped declarations for all functions
1419 declared and/or defined in a translation unit, including those in header
1420 files.  This option is silently ignored in any language other than C.
1422 Besides declarations, the file indicates, in comments, the origin of
1423 each declaration (source file and line), whether the declaration was
1424 implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
1425 \&\fBO\fR for old, respectively, in the first character after the line
1426 number and the colon), and whether it came from a declaration or a
1427 definition (\fBC\fR or \fBF\fR, respectively, in the following
1428 character).  In the case of function definitions, a K&R\-style list of
1429 arguments followed by their declarations is also provided, inside
1430 comments, after the declaration.
1431 .IP "\fB\-fno\-asm\fR" 4
1432 .IX Item "-fno-asm"
1433 Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
1434 keyword, so that code can use these words as identifiers.  You can use
1435 the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
1436 instead.  \fB\-ansi\fR implies \fB\-fno\-asm\fR.
1438 In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
1439 \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords.  You may want to
1440 use the \fB\-fno\-gnu\-keywords\fR flag instead, which has the same
1441 effect.  In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
1442 switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
1443 \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO\s0 C99.
1444 .IP "\fB\-fno\-builtin\fR" 4
1445 .IX Item "-fno-builtin"
1446 .PD 0
1447 .IP "\fB\-fno\-builtin\-\fR\fIfunction\fR" 4
1448 .IX Item "-fno-builtin-function"
1450 Don't recognize built-in functions that do not begin with
1451 \&\fB_\|_builtin_\fR as prefix.
1453 \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
1454 more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
1455 instructions that adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
1456 may become inline copy loops.  The resulting code is often both smaller
1457 and faster, but since the function calls no longer appear as such, you
1458 cannot set a breakpoint on those calls, nor can you change the behavior
1459 of the functions by linking with a different library.  In addition,
1460 when a function is recognized as a built-in function, \s-1GCC\s0 may use
1461 information about that function to warn about problems with calls to
1462 that function, or to generate more efficient code, even if the
1463 resulting code still contains calls to that function.  For example,
1464 warnings are given with \fB\-Wformat\fR for bad calls to
1465 \&\f(CW\*(C`printf\*(C'\fR, when \f(CW\*(C`printf\*(C'\fR is built in, and \f(CW\*(C`strlen\*(C'\fR is
1466 known not to modify global memory.
1468 With the \fB\-fno\-builtin\-\fR\fIfunction\fR option
1469 only the built-in function \fIfunction\fR is
1470 disabled.  \fIfunction\fR must not begin with \fB_\|_builtin_\fR.  If a
1471 function is named this is not built-in in this version of \s-1GCC\s0, this
1472 option is ignored.  There is no corresponding
1473 \&\fB\-fbuiltin\-\fR\fIfunction\fR option; if you wish to enable
1474 built-in functions selectively when using \fB\-fno\-builtin\fR or
1475 \&\fB\-ffreestanding\fR, you may define macros such as:
1477 .Vb 2
1478 \&        #define abs(n)          _\|_builtin_abs ((n))
1479 \&        #define strcpy(d, s)    _\|_builtin_strcpy ((d), (s))
1481 .IP "\fB\-fhosted\fR" 4
1482 .IX Item "-fhosted"
1483 Assert that compilation takes place in a hosted environment.  This implies
1484 \&\fB\-fbuiltin\fR.  A hosted environment is one in which the
1485 entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
1486 type of \f(CW\*(C`int\*(C'\fR.  Examples are nearly everything except a kernel.
1487 This is equivalent to \fB\-fno\-freestanding\fR.
1488 .IP "\fB\-ffreestanding\fR" 4
1489 .IX Item "-ffreestanding"
1490 Assert that compilation takes place in a freestanding environment.  This
1491 implies \fB\-fno\-builtin\fR.  A freestanding environment
1492 is one in which the standard library may not exist, and program startup may
1493 not necessarily be at \f(CW\*(C`main\*(C'\fR.  The most obvious example is an \s-1OS\s0 kernel.
1494 This is equivalent to \fB\-fno\-hosted\fR.
1495 .IP "\fB\-fopenmp\fR" 4
1496 .IX Item "-fopenmp"
1497 Enable handling of OpenMP directives \f(CW\*(C`#pragma omp\*(C'\fR in C/\*(C+ and
1498 \&\f(CW\*(C`!$omp\*(C'\fR in Fortran.  When \fB\-fopenmp\fR is specified, the
1499 compiler generates parallel code according to the OpenMP Application
1500 Program Interface v2.5 <\fBhttp://www.openmp.org/\fR>.  This option
1501 implies \fB\-pthread\fR, and thus is only supported on targets that
1502 have support for \fB\-pthread\fR.
1503 .IP "\fB\-fms\-extensions\fR" 4
1504 .IX Item "-fms-extensions"
1505 Accept some non-standard constructs used in Microsoft header files.
1507 Some cases of unnamed fields in structures and unions are only
1508 accepted with this option.
1509 .IP "\fB\-trigraphs\fR" 4
1510 .IX Item "-trigraphs"
1511 Support \s-1ISO\s0 C trigraphs.  The \fB\-ansi\fR option (and \fB\-std\fR
1512 options for strict \s-1ISO\s0 C conformance) implies \fB\-trigraphs\fR.
1513 .IP "\fB\-no\-integrated\-cpp\fR" 4
1514 .IX Item "-no-integrated-cpp"
1515 Performs a compilation in two passes: preprocessing and compiling.  This
1516 option allows a user supplied \*(L"cc1\*(R", \*(L"cc1plus\*(R", or \*(L"cc1obj\*(R" via the
1517 \&\fB\-B\fR option.  The user supplied compilation step can then add in
1518 an additional preprocessing step after normal preprocessing but before
1519 compiling.  The default is to use the integrated cpp (internal cpp)
1521 The semantics of this option will change if \*(L"cc1\*(R", \*(L"cc1plus\*(R", and
1522 \&\*(L"cc1obj\*(R" are merged.
1523 .IP "\fB\-traditional\fR" 4
1524 .IX Item "-traditional"
1525 .PD 0
1526 .IP "\fB\-traditional\-cpp\fR" 4
1527 .IX Item "-traditional-cpp"
1529 Formerly, these options caused \s-1GCC\s0 to attempt to emulate a pre-standard
1530 C compiler.  They are now only supported with the \fB\-E\fR switch.
1531 The preprocessor continues to support a pre-standard mode.  See the \s-1GNU\s0
1532 \&\s-1CPP\s0 manual for details.
1533 .IP "\fB\-fcond\-mismatch\fR" 4
1534 .IX Item "-fcond-mismatch"
1535 Allow conditional expressions with mismatched types in the second and
1536 third arguments.  The value of such an expression is void.  This option
1537 is not supported for \*(C+.
1538 .IP "\fB\-flax\-vector\-conversions\fR" 4
1539 .IX Item "-flax-vector-conversions"
1540 Allow implicit conversions between vectors with differing numbers of
1541 elements and/or incompatible element types.  This option should not be
1542 used for new code.
1543 .IP "\fB\-funsigned\-char\fR" 4
1544 .IX Item "-funsigned-char"
1545 Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
1547 Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
1548 be.  It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
1549 \&\f(CW\*(C`signed char\*(C'\fR by default.
1551 Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
1552 \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
1553 But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
1554 expect it to be signed, or expect it to be unsigned, depending on the
1555 machines they were written for.  This option, and its inverse, let you
1556 make such a program work with the opposite default.
1558 The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
1559 \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
1560 is always just like one of those two.
1561 .IP "\fB\-fsigned\-char\fR" 4
1562 .IX Item "-fsigned-char"
1563 Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
1565 Note that this is equivalent to \fB\-fno\-unsigned\-char\fR, which is
1566 the negative form of \fB\-funsigned\-char\fR.  Likewise, the option
1567 \&\fB\-fno\-signed\-char\fR is equivalent to \fB\-funsigned\-char\fR.
1568 .IP "\fB\-fsigned\-bitfields\fR" 4
1569 .IX Item "-fsigned-bitfields"
1570 .PD 0
1571 .IP "\fB\-funsigned\-bitfields\fR" 4
1572 .IX Item "-funsigned-bitfields"
1573 .IP "\fB\-fno\-signed\-bitfields\fR" 4
1574 .IX Item "-fno-signed-bitfields"
1575 .IP "\fB\-fno\-unsigned\-bitfields\fR" 4
1576 .IX Item "-fno-unsigned-bitfields"
1578 These options control whether a bit-field is signed or unsigned, when the
1579 declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR.  By
1580 default, such a bit-field is signed, because this is consistent: the
1581 basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
1582 .Sh "Options Controlling \*(C+ Dialect"
1583 .IX Subsection "Options Controlling  Dialect"
1584 This section describes the command-line options that are only meaningful
1585 for \*(C+ programs; but you can also use most of the \s-1GNU\s0 compiler options
1586 regardless of what language your program is in.  For example, you
1587 might compile a file \f(CW\*(C`firstClass.C\*(C'\fR like this:
1589 .Vb 1
1590 \&        g++ \-g \-frepo \-O \-c firstClass.C
1593 In this example, only \fB\-frepo\fR is an option meant
1594 only for \*(C+ programs; you can use the other options with any
1595 language supported by \s-1GCC\s0.
1597 Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
1598 .IP "\fB\-fabi\-version=\fR\fIn\fR" 4
1599 .IX Item "-fabi-version=n"
1600 Use version \fIn\fR of the \*(C+ \s-1ABI\s0.  Version 2 is the version of the
1601 \&\*(C+ \s-1ABI\s0 that first appeared in G++ 3.4.  Version 1 is the version of
1602 the \*(C+ \s-1ABI\s0 that first appeared in G++ 3.2.  Version 0 will always be
1603 the version that conforms most closely to the \*(C+ \s-1ABI\s0 specification.
1604 Therefore, the \s-1ABI\s0 obtained using version 0 will change as \s-1ABI\s0 bugs
1605 are fixed.
1607 The default is version 2.
1608 .IP "\fB\-fno\-access\-control\fR" 4
1609 .IX Item "-fno-access-control"
1610 Turn off all access checking.  This switch is mainly useful for working
1611 around bugs in the access control code.
1612 .IP "\fB\-fcheck\-new\fR" 4
1613 .IX Item "-fcheck-new"
1614 Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
1615 before attempting to modify the storage allocated.  This check is
1616 normally unnecessary because the \*(C+ standard specifies that
1617 \&\f(CW\*(C`operator new\*(C'\fR will only return \f(CW0\fR if it is declared
1618 \&\fB\f(BIthrow()\fB\fR, in which case the compiler will always check the
1619 return value even without this option.  In all other cases, when
1620 \&\f(CW\*(C`operator new\*(C'\fR has a non-empty exception specification, memory
1621 exhaustion is signalled by throwing \f(CW\*(C`std::bad_alloc\*(C'\fR.  See also
1622 \&\fBnew (nothrow)\fR.
1623 .IP "\fB\-fconserve\-space\fR" 4
1624 .IX Item "-fconserve-space"
1625 Put uninitialized or runtime-initialized global variables into the
1626 common segment, as C does.  This saves space in the executable at the
1627 cost of not diagnosing duplicate definitions.  If you compile with this
1628 flag and your program mysteriously crashes after \f(CW\*(C`main()\*(C'\fR has
1629 completed, you may have an object that is being destroyed twice because
1630 two definitions were merged.
1632 This option is no longer useful on most targets, now that support has
1633 been added for putting variables into \s-1BSS\s0 without making them common.
1634 .IP "\fB\-ffriend\-injection\fR" 4
1635 .IX Item "-ffriend-injection"
1636 Inject friend functions into the enclosing namespace, so that they are
1637 visible outside the scope of the class in which they are declared.
1638 Friend functions were documented to work this way in the old Annotated
1639 \&\*(C+ Reference Manual, and versions of G++ before 4.1 always worked
1640 that way.  However, in \s-1ISO\s0 \*(C+ a friend function which is not declared
1641 in an enclosing scope can only be found using argument dependent
1642 lookup.  This option causes friends to be injected as they were in
1643 earlier releases.
1645 This option is for compatibility, and may be removed in a future
1646 release of G++.
1647 .IP "\fB\-fno\-elide\-constructors\fR" 4
1648 .IX Item "-fno-elide-constructors"
1649 The \*(C+ standard allows an implementation to omit creating a temporary
1650 which is only used to initialize another object of the same type.
1651 Specifying this option disables that optimization, and forces G++ to
1652 call the copy constructor in all cases.
1653 .IP "\fB\-fno\-enforce\-eh\-specs\fR" 4
1654 .IX Item "-fno-enforce-eh-specs"
1655 Don't generate code to check for violation of exception specifications
1656 at runtime.  This option violates the \*(C+ standard, but may be useful
1657 for reducing code size in production builds, much like defining
1658 \&\fB\s-1NDEBUG\s0\fR.  This does not give user code permission to throw
1659 exceptions in violation of the exception specifications; the compiler
1660 will still optimize based on the specifications, so throwing an
1661 unexpected exception will result in undefined behavior.
1662 .IP "\fB\-ffor\-scope\fR" 4
1663 .IX Item "-ffor-scope"
1664 .PD 0
1665 .IP "\fB\-fno\-for\-scope\fR" 4
1666 .IX Item "-fno-for-scope"
1668 If \fB\-ffor\-scope\fR is specified, the scope of variables declared in
1669 a \fIfor-init-statement\fR is limited to the \fBfor\fR loop itself,
1670 as specified by the \*(C+ standard.
1671 If \fB\-fno\-for\-scope\fR is specified, the scope of variables declared in
1672 a \fIfor-init-statement\fR extends to the end of the enclosing scope,
1673 as was the case in old versions of G++, and other (traditional)
1674 implementations of \*(C+.
1676 The default if neither flag is given to follow the standard,
1677 but to allow and give a warning for old-style code that would
1678 otherwise be invalid, or have different behavior.
1679 .IP "\fB\-fno\-gnu\-keywords\fR" 4
1680 .IX Item "-fno-gnu-keywords"
1681 Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
1682 word as an identifier.  You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
1683 \&\fB\-ansi\fR implies \fB\-fno\-gnu\-keywords\fR.
1684 .IP "\fB\-fno\-implicit\-templates\fR" 4
1685 .IX Item "-fno-implicit-templates"
1686 Never emit code for non-inline templates which are instantiated
1687 implicitly (i.e. by use); only emit code for explicit instantiations.
1688 .IP "\fB\-fno\-implicit\-inline\-templates\fR" 4
1689 .IX Item "-fno-implicit-inline-templates"
1690 Don't emit code for implicit instantiations of inline templates, either.
1691 The default is to handle inlines differently so that compiles with and
1692 without optimization will need the same set of explicit instantiations.
1693 .IP "\fB\-fno\-implement\-inlines\fR" 4
1694 .IX Item "-fno-implement-inlines"
1695 To save space, do not emit out-of-line copies of inline functions
1696 controlled by \fB#pragma implementation\fR.  This will cause linker
1697 errors if these functions are not inlined everywhere they are called.
1698 .IP "\fB\-fms\-extensions\fR" 4
1699 .IX Item "-fms-extensions"
1700 Disable pedantic warnings about constructs used in \s-1MFC\s0, such as implicit
1701 int and getting a pointer to member function via non-standard syntax.
1702 .IP "\fB\-fno\-nonansi\-builtins\fR" 4
1703 .IX Item "-fno-nonansi-builtins"
1704 Disable built-in declarations of functions that are not mandated by
1705 \&\s-1ANSI/ISO\s0 C.  These include \f(CW\*(C`ffs\*(C'\fR, \f(CW\*(C`alloca\*(C'\fR, \f(CW\*(C`_exit\*(C'\fR,
1706 \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
1707 .IP "\fB\-fno\-operator\-names\fR" 4
1708 .IX Item "-fno-operator-names"
1709 Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
1710 \&\f(CW\*(C`bitor\*(C'\fR, \f(CW\*(C`compl\*(C'\fR, \f(CW\*(C`not\*(C'\fR, \f(CW\*(C`or\*(C'\fR and \f(CW\*(C`xor\*(C'\fR as
1711 synonyms as keywords.
1712 .IP "\fB\-fno\-optional\-diags\fR" 4
1713 .IX Item "-fno-optional-diags"
1714 Disable diagnostics that the standard says a compiler does not need to
1715 issue.  Currently, the only such diagnostic issued by G++ is the one for
1716 a name having multiple meanings within a class.
1717 .IP "\fB\-fpermissive\fR" 4
1718 .IX Item "-fpermissive"
1719 Downgrade some diagnostics about nonconformant code from errors to
1720 warnings.  Thus, using \fB\-fpermissive\fR will allow some
1721 nonconforming code to compile.
1722 .IP "\fB\-frepo\fR" 4
1723 .IX Item "-frepo"
1724 Enable automatic template instantiation at link time.  This option also
1725 implies \fB\-fno\-implicit\-templates\fR.
1726 .IP "\fB\-fno\-rtti\fR" 4
1727 .IX Item "-fno-rtti"
1728 Disable generation of information about every class with virtual
1729 functions for use by the \*(C+ runtime type identification features
1730 (\fBdynamic_cast\fR and \fBtypeid\fR).  If you don't use those parts
1731 of the language, you can save some space by using this flag.  Note that
1732 exception handling uses the same information, but it will generate it as
1733 needed. The \fBdynamic_cast\fR operator can still be used for casts that
1734 do not require runtime type information, i.e. casts to \f(CW\*(C`void *\*(C'\fR or to
1735 unambiguous base classes.
1736 .IP "\fB\-fstats\fR" 4
1737 .IX Item "-fstats"
1738 Emit statistics about front-end processing at the end of the compilation.
1739 This information is generally only useful to the G++ development team.
1740 .IP "\fB\-ftemplate\-depth\-\fR\fIn\fR" 4
1741 .IX Item "-ftemplate-depth-n"
1742 Set the maximum instantiation depth for template classes to \fIn\fR.
1743 A limit on the template instantiation depth is needed to detect
1744 endless recursions during template class instantiation.  \s-1ANSI/ISO\s0 \*(C+
1745 conforming programs must not rely on a maximum depth greater than 17.
1746 .IP "\fB\-fno\-threadsafe\-statics\fR" 4
1747 .IX Item "-fno-threadsafe-statics"
1748 Do not emit the extra code to use the routines specified in the \*(C+
1749 \&\s-1ABI\s0 for thread-safe initialization of local statics.  You can use this
1750 option to reduce code size slightly in code that doesn't need to be
1751 thread-safe.
1752 .IP "\fB\-fuse\-cxa\-atexit\fR" 4
1753 .IX Item "-fuse-cxa-atexit"
1754 Register destructors for objects with static storage duration with the
1755 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
1756 This option is required for fully standards-compliant handling of static
1757 destructors, but will only work if your C library supports
1758 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
1759 .IP "\fB\-fno\-use\-cxa\-get\-exception\-ptr\fR" 4
1760 .IX Item "-fno-use-cxa-get-exception-ptr"
1761 Don't use the \f(CW\*(C`_\|_cxa_get_exception_ptr\*(C'\fR runtime routine.  This
1762 will cause \f(CW\*(C`std::uncaught_exception\*(C'\fR to be incorrect, but is necessary
1763 if the runtime routine is not available.
1764 .IP "\fB\-fvisibility\-inlines\-hidden\fR" 4
1765 .IX Item "-fvisibility-inlines-hidden"
1766 This switch declares that the user does not attempt to compare
1767 pointers to inline methods where the addresses of the two functions
1768 were taken in different shared objects.
1770 The effect of this is that \s-1GCC\s0 may, effectively, mark inline methods with
1771 \&\f(CW\*(C`_\|_attribute_\|_ ((visibility ("hidden")))\*(C'\fR so that they do not
1772 appear in the export table of a \s-1DSO\s0 and do not require a \s-1PLT\s0 indirection
1773 when used within the \s-1DSO\s0.  Enabling this option can have a dramatic effect
1774 on load and link times of a \s-1DSO\s0 as it massively reduces the size of the
1775 dynamic export table when the library makes heavy use of templates.
1777 The behavior of this switch is not quite the same as marking the
1778 methods as hidden directly, because it does not affect static variables
1779 local to the function or cause the compiler to deduce that
1780 the function is defined in only one shared object.
1782 You may mark a method as having a visibility explicitly to negate the
1783 effect of the switch for that method.  For example, if you do want to
1784 compare pointers to a particular inline method, you might mark it as
1785 having default visibility.  Marking the enclosing class with explicit
1786 visibility will have no effect.
1788 Explicitly instantiated inline methods are unaffected by this option
1789 as their linkage might otherwise cross a shared library boundary.
1790 .IP "\fB\-fvisibility\-ms\-compat\fR" 4
1791 .IX Item "-fvisibility-ms-compat"
1792 This flag attempts to use visibility settings to make \s-1GCC\s0's \*(C+
1793 linkage model compatible with that of Microsoft Visual Studio.
1795 The flag makes these changes to \s-1GCC\s0's linkage model:
1796 .RS 4
1797 .IP "1." 4
1798 It sets the default visibility to \f(CW\*(C`hidden\*(C'\fR, like
1799 \&\fB\-fvisibility=hidden\fR.
1800 .IP "2." 4
1801 Types, but not their members, are not hidden by default.
1802 .IP "3." 4
1803 The One Definition Rule is relaxed for types without explicit
1804 visibility specifications which are defined in more than one different
1805 shared object: those declarations are permitted if they would have
1806 been permitted when this option was not used.
1808 .RS 4
1810 In new code it is better to use \fB\-fvisibility=hidden\fR and
1811 export those classes which are intended to be externally visible.
1812 Unfortunately it is possible for code to rely, perhaps accidentally,
1813 on the Visual Studio behavior.
1815 Among the consequences of these changes are that static data members
1816 of the same type with the same name but defined in different shared
1817 objects will be different, so changing one will not change the other;
1818 and that pointers to function members defined in different shared
1819 objects may not compare equal.  When this flag is given, it is a
1820 violation of the \s-1ODR\s0 to define types with the same name differently.
1822 .IP "\fB\-fno\-weak\fR" 4
1823 .IX Item "-fno-weak"
1824 Do not use weak symbol support, even if it is provided by the linker.
1825 By default, G++ will use weak symbols if they are available.  This
1826 option exists only for testing, and should not be used by end-users;
1827 it will result in inferior code and has no benefits.  This option may
1828 be removed in a future release of G++.
1829 .IP "\fB\-nostdinc++\fR" 4
1830 .IX Item "-nostdinc++"
1831 Do not search for header files in the standard directories specific to
1832 \&\*(C+, but do still search the other standard directories.  (This option
1833 is used when building the \*(C+ library.)
1835 In addition, these optimization, warning, and code generation options
1836 have meanings only for \*(C+ programs:
1837 .IP "\fB\-fno\-default\-inline\fR" 4
1838 .IX Item "-fno-default-inline"
1839 Do not assume \fBinline\fR for functions defined inside a class scope.
1840   Note that these
1841 functions will have linkage like inline functions; they just won't be
1842 inlined by default.
1843 .IP "\fB\-Wabi\fR (\*(C+ and Objective\-\*(C+ only)" 4
1844 .IX Item "-Wabi ( and Objective- only)"
1845 Warn when G++ generates code that is probably not compatible with the
1846 vendor-neutral \*(C+ \s-1ABI\s0.  Although an effort has been made to warn about
1847 all such cases, there are probably some cases that are not warned about,
1848 even though G++ is generating incompatible code.  There may also be
1849 cases where warnings are emitted even though the code that is generated
1850 will be compatible.
1852 You should rewrite your code to avoid these warnings if you are
1853 concerned about the fact that code generated by G++ may not be binary
1854 compatible with code generated by other compilers.
1856 The known incompatibilities at this point include:
1857 .RS 4
1858 .IP "\(bu" 4
1859 Incorrect handling of tail-padding for bit-fields.  G++ may attempt to
1860 pack data into the same byte as a base class.  For example:
1862 .Vb 2
1863 \&        struct A { virtual void f(); int f1 : 1; };
1864 \&        struct B : public A { int f2 : 1; };
1867 In this case, G++ will place \f(CW\*(C`B::f2\*(C'\fR into the same byte
1868 as\f(CW\*(C`A::f1\*(C'\fR; other compilers will not.  You can avoid this problem
1869 by explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of the
1870 byte size on your platform; that will cause G++ and other compilers to
1871 layout \f(CW\*(C`B\*(C'\fR identically.
1872 .IP "\(bu" 4
1873 Incorrect handling of tail-padding for virtual bases.  G++ does not use
1874 tail padding when laying out virtual bases.  For example:
1876 .Vb 3
1877 \&        struct A { virtual void f(); char c1; };
1878 \&        struct B { B(); char c2; };
1879 \&        struct C : public A, public virtual B {};
1882 In this case, G++ will not place \f(CW\*(C`B\*(C'\fR into the tail-padding for
1883 \&\f(CW\*(C`A\*(C'\fR; other compilers will.  You can avoid this problem by
1884 explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of its
1885 alignment (ignoring virtual base classes); that will cause G++ and other
1886 compilers to layout \f(CW\*(C`C\*(C'\fR identically.
1887 .IP "\(bu" 4
1888 Incorrect handling of bit-fields with declared widths greater than that
1889 of their underlying types, when the bit-fields appear in a union.  For
1890 example:
1892 .Vb 1
1893 \&        union U { int i : 4096; };
1896 Assuming that an \f(CW\*(C`int\*(C'\fR does not have 4096 bits, G++ will make the
1897 union too small by the number of bits in an \f(CW\*(C`int\*(C'\fR.
1898 .IP "\(bu" 4
1899 Empty classes can be placed at incorrect offsets.  For example:
1901 .Vb 1
1902 \&        struct A {};
1903 \&        
1904 \&        struct B {
1905 \&          A a;
1906 \&          virtual void f ();
1907 \&        };
1908 \&        
1909 \&        struct C : public B, public A {};
1912 G++ will place the \f(CW\*(C`A\*(C'\fR base class of \f(CW\*(C`C\*(C'\fR at a nonzero offset;
1913 it should be placed at offset zero.  G++ mistakenly believes that the
1914 \&\f(CW\*(C`A\*(C'\fR data member of \f(CW\*(C`B\*(C'\fR is already at offset zero.
1915 .IP "\(bu" 4
1916 Names of template functions whose types involve \f(CW\*(C`typename\*(C'\fR or
1917 template template parameters can be mangled incorrectly.
1919 .Vb 2
1920 \&        template <typename Q>
1921 \&        void f(typename Q::X) {}
1922 \&        
1923 \&        template <template <typename> class Q>
1924 \&        void f(typename Q<int>::X) {}
1927 Instantiations of these templates may be mangled incorrectly.
1929 .RS 4
1931 .IP "\fB\-Wctor\-dtor\-privacy\fR (\*(C+ and Objective\-\*(C+ only)" 4
1932 .IX Item "-Wctor-dtor-privacy ( and Objective- only)"
1933 Warn when a class seems unusable because all the constructors or
1934 destructors in that class are private, and it has neither friends nor
1935 public static member functions.
1936 .IP "\fB\-Wnon\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
1937 .IX Item "-Wnon-virtual-dtor ( and Objective- only)"
1938 Warn when a class has virtual functions and accessible non-virtual
1939 destructor, in which case it would be possible but unsafe to delete
1940 an instance of a derived class through a pointer to the base class.
1941 This warning is also enabled if \-Weffc++ is specified.
1942 .IP "\fB\-Wreorder\fR (\*(C+ and Objective\-\*(C+ only)" 4
1943 .IX Item "-Wreorder ( and Objective- only)"
1944 Warn when the order of member initializers given in the code does not
1945 match the order in which they must be executed.  For instance:
1947 .Vb 5
1948 \&        struct A {
1949 \&          int i;
1950 \&          int j;
1951 \&          A(): j (0), i (1) { }
1952 \&        };
1955 The compiler will rearrange the member initializers for \fBi\fR
1956 and \fBj\fR to match the declaration order of the members, emitting
1957 a warning to that effect.  This warning is enabled by \fB\-Wall\fR.
1959 The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
1960 .IP "\fB\-Weffc++\fR (\*(C+ and Objective\-\*(C+ only)" 4
1961 .IX Item "-Weffc++ ( and Objective- only)"
1962 Warn about violations of the following style guidelines from Scott Meyers'
1963 \&\fIEffective \*(C+\fR book:
1964 .RS 4
1965 .IP "\(bu" 4
1966 Item 11:  Define a copy constructor and an assignment operator for classes
1967 with dynamically allocated memory.
1968 .IP "\(bu" 4
1969 Item 12:  Prefer initialization to assignment in constructors.
1970 .IP "\(bu" 4
1971 Item 14:  Make destructors virtual in base classes.
1972 .IP "\(bu" 4
1973 Item 15:  Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW*this\fR.
1974 .IP "\(bu" 4
1975 Item 23:  Don't try to return a reference when you must return an object.
1977 .RS 4
1979 Also warn about violations of the following style guidelines from
1980 Scott Meyers' \fIMore Effective \*(C+\fR book:
1981 .IP "\(bu" 4
1982 Item 6:  Distinguish between prefix and postfix forms of increment and
1983 decrement operators.
1984 .IP "\(bu" 4
1985 Item 7:  Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
1987 .RS 4
1989 When selecting this option, be aware that the standard library
1990 headers do not obey all of these guidelines; use \fBgrep \-v\fR
1991 to filter out those warnings.
1993 .IP "\fB\-Wno\-deprecated\fR (\*(C+ and Objective\-\*(C+ only)" 4
1994 .IX Item "-Wno-deprecated ( and Objective- only)"
1995 Do not warn about usage of deprecated features.
1996 .IP "\fB\-Wstrict\-null\-sentinel\fR (\*(C+ and Objective\-\*(C+ only)" 4
1997 .IX Item "-Wstrict-null-sentinel ( and Objective- only)"
1998 Warn also about the use of an uncasted \f(CW\*(C`NULL\*(C'\fR as sentinel.  When
1999 compiling only with \s-1GCC\s0 this is a valid sentinel, as \f(CW\*(C`NULL\*(C'\fR is defined
2000 to \f(CW\*(C`_\|_null\*(C'\fR.  Although it is a null pointer constant not a null pointer,
2001 it is guaranteed to of the same size as a pointer.  But this use is
2002 not portable across different compilers.
2003 .IP "\fB\-Wno\-non\-template\-friend\fR (\*(C+ and Objective\-\*(C+ only)" 4
2004 .IX Item "-Wno-non-template-friend ( and Objective- only)"
2005 Disable warnings when non-templatized friend functions are declared
2006 within a template.  Since the advent of explicit template specification
2007 support in G++, if the name of the friend is an unqualified-id (i.e.,
2008 \&\fBfriend foo(int)\fR), the \*(C+ language specification demands that the
2009 friend declare or define an ordinary, nontemplate function.  (Section
2010 14.5.3).  Before G++ implemented explicit specification, unqualified-ids
2011 could be interpreted as a particular specialization of a templatized
2012 function.  Because this non-conforming behavior is no longer the default
2013 behavior for G++, \fB\-Wnon\-template\-friend\fR allows the compiler to
2014 check existing code for potential trouble spots and is on by default.
2015 This new compiler behavior can be turned off with
2016 \&\fB\-Wno\-non\-template\-friend\fR which keeps the conformant compiler code
2017 but disables the helpful warning.
2018 .IP "\fB\-Wold\-style\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
2019 .IX Item "-Wold-style-cast ( and Objective- only)"
2020 Warn if an old-style (C\-style) cast to a non-void type is used within
2021 a \*(C+ program.  The new-style casts (\fBdynamic_cast\fR,
2022 \&\fBstatic_cast\fR, \fBreinterpret_cast\fR, and \fBconst_cast\fR) are
2023 less vulnerable to unintended effects and much easier to search for.
2024 .IP "\fB\-Woverloaded\-virtual\fR (\*(C+ and Objective\-\*(C+ only)" 4
2025 .IX Item "-Woverloaded-virtual ( and Objective- only)"
2026 Warn when a function declaration hides virtual functions from a
2027 base class.  For example, in:
2029 .Vb 3
2030 \&        struct A {
2031 \&          virtual void f();
2032 \&        };
2033 \&        
2034 \&        struct B: public A {
2035 \&          void f(int);
2036 \&        };
2039 the \f(CW\*(C`A\*(C'\fR class version of \f(CW\*(C`f\*(C'\fR is hidden in \f(CW\*(C`B\*(C'\fR, and code
2040 like:
2042 .Vb 2
2043 \&        B* b;
2044 \&        b\->f();
2047 will fail to compile.
2048 .IP "\fB\-Wno\-pmf\-conversions\fR (\*(C+ and Objective\-\*(C+ only)" 4
2049 .IX Item "-Wno-pmf-conversions ( and Objective- only)"
2050 Disable the diagnostic for converting a bound pointer to member function
2051 to a plain pointer.
2052 .IP "\fB\-Wsign\-promo\fR (\*(C+ and Objective\-\*(C+ only)" 4
2053 .IX Item "-Wsign-promo ( and Objective- only)"
2054 Warn when overload resolution chooses a promotion from unsigned or
2055 enumerated type to a signed type, over a conversion to an unsigned type of
2056 the same size.  Previous versions of G++ would try to preserve
2057 unsignedness, but the standard mandates the current behavior.
2059 .Vb 4
2060 \&        struct A {
2061 \&          operator int ();
2062 \&          A& operator = (int);
2063 \&        };
2064 \&        
2065 \&        main ()
2066 \&        {
2067 \&          A a,b;
2068 \&          a = b;
2069 \&        }
2072 In this example, G++ will synthesize a default \fBA& operator =
2073 (const A&);\fR, while cfront will use the user-defined \fBoperator =\fR.
2074 .Sh "Options Controlling Objective-C and Objective\-\*(C+ Dialects"
2075 .IX Subsection "Options Controlling Objective-C and Objective- Dialects"
2076 (\s-1NOTE:\s0 This manual does not describe the Objective-C and Objective\-\*(C+
2077 languages themselves.  See
2079 This section describes the command-line options that are only meaningful
2080 for Objective-C and Objective\-\*(C+ programs, but you can also use most of
2081 the language-independent \s-1GNU\s0 compiler options.
2082 For example, you might compile a file \f(CW\*(C`some_class.m\*(C'\fR like this:
2084 .Vb 1
2085 \&        gcc \-g \-fgnu\-runtime \-O \-c some_class.m
2088 In this example, \fB\-fgnu\-runtime\fR is an option meant only for
2089 Objective-C and Objective\-\*(C+ programs; you can use the other options with
2090 any language supported by \s-1GCC\s0.
2092 Note that since Objective-C is an extension of the C language, Objective-C
2093 compilations may also use options specific to the C front-end (e.g.,
2094 \&\fB\-Wtraditional\fR).  Similarly, Objective\-\*(C+ compilations may use
2095 \&\*(C+\-specific options (e.g., \fB\-Wabi\fR).
2097 Here is a list of options that are \fIonly\fR for compiling Objective-C
2098 and Objective\-\*(C+ programs:
2099 .IP "\fB\-fconstant\-string\-class=\fR\fIclass-name\fR" 4
2100 .IX Item "-fconstant-string-class=class-name"
2101 Use \fIclass-name\fR as the name of the class to instantiate for each
2102 literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR.  The default
2103 class name is \f(CW\*(C`NXConstantString\*(C'\fR if the \s-1GNU\s0 runtime is being used, and
2104 \&\f(CW\*(C`NSConstantString\*(C'\fR if the NeXT runtime is being used (see below).  The
2105 \&\fB\-fconstant\-cfstrings\fR option, if also present, will override the
2106 \&\fB\-fconstant\-string\-class\fR setting and cause \f(CW\*(C`@"..."\*(C'\fR literals
2107 to be laid out as constant CoreFoundation strings.
2108 .IP "\fB\-fgnu\-runtime\fR" 4
2109 .IX Item "-fgnu-runtime"
2110 Generate object code compatible with the standard \s-1GNU\s0 Objective-C
2111 runtime.  This is the default for most types of systems.
2112 .IP "\fB\-fnext\-runtime\fR" 4
2113 .IX Item "-fnext-runtime"
2114 Generate output compatible with the NeXT runtime.  This is the default
2115 for NeXT-based systems, including Darwin and Mac \s-1OS\s0 X.  The macro
2116 \&\f(CW\*(C`_\|_NEXT_RUNTIME_\|_\*(C'\fR is predefined if (and only if) this option is
2117 used.
2118 .IP "\fB\-fno\-nil\-receivers\fR" 4
2119 .IX Item "-fno-nil-receivers"
2120 Assume that all Objective-C message dispatches (e.g.,
2121 \&\f(CW\*(C`[receiver message:arg]\*(C'\fR) in this translation unit ensure that the receiver
2122 is not \f(CW\*(C`nil\*(C'\fR.  This allows for more efficient entry points in the runtime
2123 to be used.  Currently, this option is only available in conjunction with
2124 the NeXT runtime on Mac \s-1OS\s0 X 10.3 and later.
2125 .IP "\fB\-fobjc\-call\-cxx\-cdtors\fR" 4
2126 .IX Item "-fobjc-call-cxx-cdtors"
2127 For each Objective-C class, check if any of its instance variables is a
2128 \&\*(C+ object with a non-trivial default constructor.  If so, synthesize a
2129 special \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR instance method that will run
2130 non-trivial default constructors on any such instance variables, in order,
2131 and then return \f(CW\*(C`self\*(C'\fR.  Similarly, check if any instance variable
2132 is a \*(C+ object with a non-trivial destructor, and if so, synthesize a
2133 special \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR method that will run
2134 all such default destructors, in reverse order.
2136 The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and/or \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods
2137 thusly generated will only operate on instance variables declared in the
2138 current Objective-C class, and not those inherited from superclasses.  It
2139 is the responsibility of the Objective-C runtime to invoke all such methods
2140 in an object's inheritance hierarchy.  The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR methods
2141 will be invoked by the runtime immediately after a new object
2142 instance is allocated; the \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods will
2143 be invoked immediately before the runtime deallocates an object instance.
2145 As of this writing, only the NeXT runtime on Mac \s-1OS\s0 X 10.4 and later has
2146 support for invoking the \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and
2147 \&\f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods.
2148 .IP "\fB\-fobjc\-direct\-dispatch\fR" 4
2149 .IX Item "-fobjc-direct-dispatch"
2150 Allow fast jumps to the message dispatcher.  On Darwin this is
2151 accomplished via the comm page.
2152 .IP "\fB\-fobjc\-exceptions\fR" 4
2153 .IX Item "-fobjc-exceptions"
2154 Enable syntactic support for structured exception handling in Objective-C,
2155 similar to what is offered by \*(C+ and Java.  This option is
2156 unavailable in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.2 and
2157 earlier.
2159 .Vb 10
2160 \&          @try {
2161 \&            ...
2162 \&               @throw expr;
2163 \&            ...
2164 \&          }
2165 \&          @catch (AnObjCClass *exc) {
2166 \&            ...
2167 \&              @throw expr;
2168 \&            ...
2169 \&              @throw;
2170 \&            ...
2171 \&          }
2172 \&          @catch (AnotherClass *exc) {
2173 \&            ...
2174 \&          }
2175 \&          @catch (id allOthers) {
2176 \&            ...
2177 \&          }
2178 \&          @finally {
2179 \&            ...
2180 \&              @throw expr;
2181 \&            ...
2182 \&          }
2185 The \f(CW@throw\fR statement may appear anywhere in an Objective-C or
2186 Objective\-\*(C+ program; when used inside of a \f(CW@catch\fR block, the
2187 \&\f(CW@throw\fR may appear without an argument (as shown above), in which case
2188 the object caught by the \f(CW@catch\fR will be rethrown.
2190 Note that only (pointers to) Objective-C objects may be thrown and
2191 caught using this scheme.  When an object is thrown, it will be caught
2192 by the nearest \f(CW@catch\fR clause capable of handling objects of that type,
2193 analogously to how \f(CW\*(C`catch\*(C'\fR blocks work in \*(C+ and Java.  A
2194 \&\f(CW\*(C`@catch(id ...)\*(C'\fR clause (as shown above) may also be provided to catch
2195 any and all Objective-C exceptions not caught by previous \f(CW@catch\fR
2196 clauses (if any).
2198 The \f(CW@finally\fR clause, if present, will be executed upon exit from the
2199 immediately preceding \f(CW\*(C`@try ... @catch\*(C'\fR section.  This will happen
2200 regardless of whether any exceptions are thrown, caught or rethrown
2201 inside the \f(CW\*(C`@try ... @catch\*(C'\fR section, analogously to the behavior
2202 of the \f(CW\*(C`finally\*(C'\fR clause in Java.
2204 There are several caveats to using the new exception mechanism:
2205 .RS 4
2206 .IP "\(bu" 4
2207 Although currently designed to be binary compatible with \f(CW\*(C`NS_HANDLER\*(C'\fR\-style
2208 idioms provided by the \f(CW\*(C`NSException\*(C'\fR class, the new
2209 exceptions can only be used on Mac \s-1OS\s0 X 10.3 (Panther) and later
2210 systems, due to additional functionality needed in the (NeXT) Objective-C
2211 runtime.
2212 .IP "\(bu" 4
2213 As mentioned above, the new exceptions do not support handling
2214 types other than Objective-C objects.   Furthermore, when used from
2215 Objective\-\*(C+, the Objective-C exception model does not interoperate with \*(C+
2216 exceptions at this time.  This means you cannot \f(CW@throw\fR an exception
2217 from Objective-C and \f(CW\*(C`catch\*(C'\fR it in \*(C+, or vice versa
2218 (i.e., \f(CW\*(C`throw ... @catch\*(C'\fR).
2220 .RS 4
2222 The \fB\-fobjc\-exceptions\fR switch also enables the use of synchronization
2223 blocks for thread-safe execution:
2225 .Vb 3
2226 \&          @synchronized (ObjCClass *guard) {
2227 \&            ...
2228 \&          }
2231 Upon entering the \f(CW@synchronized\fR block, a thread of execution shall
2232 first check whether a lock has been placed on the corresponding \f(CW\*(C`guard\*(C'\fR
2233 object by another thread.  If it has, the current thread shall wait until
2234 the other thread relinquishes its lock.  Once \f(CW\*(C`guard\*(C'\fR becomes available,
2235 the current thread will place its own lock on it, execute the code contained in
2236 the \f(CW@synchronized\fR block, and finally relinquish the lock (thereby
2237 making \f(CW\*(C`guard\*(C'\fR available to other threads).
2239 Unlike Java, Objective-C does not allow for entire methods to be marked
2240 \&\f(CW@synchronized\fR.  Note that throwing exceptions out of
2241 \&\f(CW@synchronized\fR blocks is allowed, and will cause the guarding object
2242 to be unlocked properly.
2244 .IP "\fB\-fobjc\-gc\fR" 4
2245 .IX Item "-fobjc-gc"
2246 Enable garbage collection (\s-1GC\s0) in Objective-C and Objective\-\*(C+ programs.
2247 .IP "\fB\-freplace\-objc\-classes\fR" 4
2248 .IX Item "-freplace-objc-classes"
2249 Emit a special marker instructing \fB\f(BIld\fB\|(1)\fR not to statically link in
2250 the resulting object file, and allow \fB\f(BIdyld\fB\|(1)\fR to load it in at
2251 run time instead.  This is used in conjunction with the Fix-and-Continue
2252 debugging mode, where the object file in question may be recompiled and
2253 dynamically reloaded in the course of program execution, without the need
2254 to restart the program itself.  Currently, Fix-and-Continue functionality
2255 is only available in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.3
2256 and later.
2257 .IP "\fB\-fzero\-link\fR" 4
2258 .IX Item "-fzero-link"
2259 When compiling for the NeXT runtime, the compiler ordinarily replaces calls
2260 to \f(CW\*(C`objc_getClass("...")\*(C'\fR (when the name of the class is known at
2261 compile time) with static class references that get initialized at load time,
2262 which improves run-time performance.  Specifying the \fB\-fzero\-link\fR flag
2263 suppresses this behavior and causes calls to \f(CW\*(C`objc_getClass("...")\*(C'\fR
2264 to be retained.  This is useful in Zero-Link debugging mode, since it allows
2265 for individual class implementations to be modified during program execution.
2266 .IP "\fB\-gen\-decls\fR" 4
2267 .IX Item "-gen-decls"
2268 Dump interface declarations for all classes seen in the source file to a
2269 file named \fI\fIsourcename\fI.decl\fR.
2270 .IP "\fB\-Wassign\-intercept\fR (Objective-C and Objective\-\*(C+ only)" 4
2271 .IX Item "-Wassign-intercept (Objective-C and Objective- only)"
2272 Warn whenever an Objective-C assignment is being intercepted by the
2273 garbage collector.
2274 .IP "\fB\-Wno\-protocol\fR (Objective-C and Objective\-\*(C+ only)" 4
2275 .IX Item "-Wno-protocol (Objective-C and Objective- only)"
2276 If a class is declared to implement a protocol, a warning is issued for
2277 every method in the protocol that is not implemented by the class.  The
2278 default behavior is to issue a warning for every method not explicitly
2279 implemented in the class, even if a method implementation is inherited
2280 from the superclass.  If you use the \fB\-Wno\-protocol\fR option, then
2281 methods inherited from the superclass are considered to be implemented,
2282 and no warning is issued for them.
2283 .IP "\fB\-Wselector\fR (Objective-C and Objective\-\*(C+ only)" 4
2284 .IX Item "-Wselector (Objective-C and Objective- only)"
2285 Warn if multiple methods of different types for the same selector are
2286 found during compilation.  The check is performed on the list of methods
2287 in the final stage of compilation.  Additionally, a check is performed
2288 for each selector appearing in a \f(CW\*(C`@selector(...)\*(C'\fR
2289 expression, and a corresponding method for that selector has been found
2290 during compilation.  Because these checks scan the method table only at
2291 the end of compilation, these warnings are not produced if the final
2292 stage of compilation is not reached, for example because an error is
2293 found during compilation, or because the \fB\-fsyntax\-only\fR option is
2294 being used.
2295 .IP "\fB\-Wstrict\-selector\-match\fR (Objective-C and Objective\-\*(C+ only)" 4
2296 .IX Item "-Wstrict-selector-match (Objective-C and Objective- only)"
2297 Warn if multiple methods with differing argument and/or return types are
2298 found for a given selector when attempting to send a message using this
2299 selector to a receiver of type \f(CW\*(C`id\*(C'\fR or \f(CW\*(C`Class\*(C'\fR.  When this flag
2300 is off (which is the default behavior), the compiler will omit such warnings
2301 if any differences found are confined to types which share the same size
2302 and alignment.
2303 .IP "\fB\-Wundeclared\-selector\fR (Objective-C and Objective\-\*(C+ only)" 4
2304 .IX Item "-Wundeclared-selector (Objective-C and Objective- only)"
2305 Warn if a \f(CW\*(C`@selector(...)\*(C'\fR expression referring to an
2306 undeclared selector is found.  A selector is considered undeclared if no
2307 method with that name has been declared before the
2308 \&\f(CW\*(C`@selector(...)\*(C'\fR expression, either explicitly in an
2309 \&\f(CW@interface\fR or \f(CW@protocol\fR declaration, or implicitly in
2310 an \f(CW@implementation\fR section.  This option always performs its
2311 checks as soon as a \f(CW\*(C`@selector(...)\*(C'\fR expression is found,
2312 while \fB\-Wselector\fR only performs its checks in the final stage of
2313 compilation.  This also enforces the coding style convention
2314 that methods and selectors must be declared before being used.
2315 .IP "\fB\-print\-objc\-runtime\-info\fR" 4
2316 .IX Item "-print-objc-runtime-info"
2317 Generate C header describing the largest structure that is passed by
2318 value, if any.
2319 .Sh "Options to Control Diagnostic Messages Formatting"
2320 .IX Subsection "Options to Control Diagnostic Messages Formatting"
2321 Traditionally, diagnostic messages have been formatted irrespective of
2322 the output device's aspect (e.g. its width, ...).  The options described
2323 below can be used to control the diagnostic messages formatting
2324 algorithm, e.g. how many characters per line, how often source location
2325 information should be reported.  Right now, only the \*(C+ front end can
2326 honor these options.  However it is expected, in the near future, that
2327 the remaining front ends would be able to digest them correctly.
2328 .IP "\fB\-fmessage\-length=\fR\fIn\fR" 4
2329 .IX Item "-fmessage-length=n"
2330 Try to format error messages so that they fit on lines of about \fIn\fR
2331 characters.  The default is 72 characters for \fBg++\fR and 0 for the rest of
2332 the front ends supported by \s-1GCC\s0.  If \fIn\fR is zero, then no
2333 line-wrapping will be done; each error message will appear on a single
2334 line.
2335 .IP "\fB\-fdiagnostics\-show\-location=once\fR" 4
2336 .IX Item "-fdiagnostics-show-location=once"
2337 Only meaningful in line-wrapping mode.  Instructs the diagnostic messages
2338 reporter to emit \fIonce\fR source location information; that is, in
2339 case the message is too long to fit on a single physical line and has to
2340 be wrapped, the source location won't be emitted (as prefix) again,
2341 over and over, in subsequent continuation lines.  This is the default
2342 behavior.
2343 .IP "\fB\-fdiagnostics\-show\-location=every\-line\fR" 4
2344 .IX Item "-fdiagnostics-show-location=every-line"
2345 Only meaningful in line-wrapping mode.  Instructs the diagnostic
2346 messages reporter to emit the same source location information (as
2347 prefix) for physical lines that result from the process of breaking
2348 a message which is too long to fit on a single line.
2349 .IP "\fB\-fdiagnostics\-show\-option\fR" 4
2350 .IX Item "-fdiagnostics-show-option"
2351 This option instructs the diagnostic machinery to add text to each
2352 diagnostic emitted, which indicates which command line option directly
2353 controls that diagnostic, when such an option is known to the
2354 diagnostic machinery.
2355 .IP "\fB\-Wcoverage\-mismatch\fR" 4
2356 .IX Item "-Wcoverage-mismatch"
2357 Warn if feedback profiles do not match when using the
2358 \&\fB\-fprofile\-use\fR option.
2359 If a source file was changed between \fB\-fprofile\-gen\fR and
2360 \&\fB\-fprofile\-use\fR, the files with the profile feedback can fail
2361 to match the source file and \s-1GCC\s0 can not use the profile feedback
2362 information.  By default, \s-1GCC\s0 emits an error message in this case.
2363 The option \fB\-Wcoverage\-mismatch\fR emits a warning instead of an
2364 error.  \s-1GCC\s0 does not use appropriate feedback profiles, so using this
2365 option can result in poorly optimized code.  This option is useful
2366 only in the case of very minor changes such as bug fixes to an
2367 existing code-base.
2368 .Sh "Options to Request or Suppress Warnings"
2369 .IX Subsection "Options to Request or Suppress Warnings"
2370 Warnings are diagnostic messages that report constructions which
2371 are not inherently erroneous but which are risky or suggest there
2372 may have been an error.
2374 The following language-independent options do not enable specific
2375 warnings but control the kinds of diagnostics produced by \s-1GCC\s0.
2376 .IP "\fB\-fsyntax\-only\fR" 4
2377 .IX Item "-fsyntax-only"
2378 Check the code for syntax errors, but don't do anything beyond that.
2379 .IP "\fB\-w\fR" 4
2380 .IX Item "-w"
2381 Inhibit all warning messages.
2382 .IP "\fB\-Werror\fR" 4
2383 .IX Item "-Werror"
2384 Make all warnings into errors.
2385 .IP "\fB\-Werror=\fR" 4
2386 .IX Item "-Werror="
2387 Make the specified warning into an error.  The specifier for a warning
2388 is appended, for example \fB\-Werror=switch\fR turns the warnings
2389 controlled by \fB\-Wswitch\fR into errors.  This switch takes a
2390 negative form, to be used to negate \fB\-Werror\fR for specific
2391 warnings, for example \fB\-Wno\-error=switch\fR makes
2392 \&\fB\-Wswitch\fR warnings not be errors, even when \fB\-Werror\fR
2393 is in effect.  You can use the \fB\-fdiagnostics\-show\-option\fR
2394 option to have each controllable warning amended with the option which
2395 controls it, to determine what to use with this option.
2397 Note that specifying \fB\-Werror=\fR\fIfoo\fR automatically implies
2398 \&\fB\-W\fR\fIfoo\fR.  However, \fB\-Wno\-error=\fR\fIfoo\fR does not
2399 imply anything.
2400 .IP "\fB\-Wfatal\-errors\fR" 4
2401 .IX Item "-Wfatal-errors"
2402 This option causes the compiler to abort compilation on the first error
2403 occurred rather than trying to keep going and printing further error
2404 messages.
2406 You can request many specific warnings with options beginning
2407 \&\fB\-W\fR, for example \fB\-Wimplicit\fR to request warnings on
2408 implicit declarations.  Each of these specific warning options also
2409 has a negative form beginning \fB\-Wno\-\fR to turn off warnings; for
2410 example, \fB\-Wno\-implicit\fR.  This manual lists only one of the
2411 two forms, whichever is not the default.  For further,
2412 language-specific options also refer to \fB\*(C+ Dialect Options\fR and
2413 \&\fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
2414 .IP "\fB\-pedantic\fR" 4
2415 .IX Item "-pedantic"
2416 Issue all the warnings demanded by strict \s-1ISO\s0 C and \s-1ISO\s0 \*(C+;
2417 reject all programs that use forbidden extensions, and some other
2418 programs that do not follow \s-1ISO\s0 C and \s-1ISO\s0 \*(C+.  For \s-1ISO\s0 C, follows the
2419 version of the \s-1ISO\s0 C standard specified by any \fB\-std\fR option used.
2421 Valid \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ programs should compile properly with or without
2422 this option (though a rare few will require \fB\-ansi\fR or a
2423 \&\fB\-std\fR option specifying the required version of \s-1ISO\s0 C).  However,
2424 without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
2425 features are supported as well.  With this option, they are rejected.
2427 \&\fB\-pedantic\fR does not cause warning messages for use of the
2428 alternate keywords whose names begin and end with \fB_\|_\fR.  Pedantic
2429 warnings are also disabled in the expression that follows
2430 \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.  However, only system header files should use
2431 these escape routes; application programs should avoid them.
2433 Some users try to use \fB\-pedantic\fR to check programs for strict \s-1ISO\s0
2434 C conformance.  They soon find that it does not do quite what they want:
2435 it finds some non-ISO practices, but not all\-\-\-only those for which
2436 \&\s-1ISO\s0 C \fIrequires\fR a diagnostic, and some others for which
2437 diagnostics have been added.
2439 A feature to report any failure to conform to \s-1ISO\s0 C might be useful in
2440 some instances, but would require considerable additional work and would
2441 be quite different from \fB\-pedantic\fR.  We don't have plans to
2442 support such a feature in the near future.
2444 Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
2445 extended dialect of C, such as \fBgnu89\fR or \fBgnu99\fR, there is a
2446 corresponding \fIbase standard\fR, the version of \s-1ISO\s0 C on which the \s-1GNU\s0
2447 extended dialect is based.  Warnings from \fB\-pedantic\fR are given
2448 where they are required by the base standard.  (It would not make sense
2449 for such warnings to be given only for features not in the specified \s-1GNU\s0
2450 C dialect, since by definition the \s-1GNU\s0 dialects of C include all
2451 features the compiler supports with the given option, and there would be
2452 nothing to warn about.)
2453 .IP "\fB\-pedantic\-errors\fR" 4
2454 .IX Item "-pedantic-errors"
2455 Like \fB\-pedantic\fR, except that errors are produced rather than
2456 warnings.
2457 .IP "\fB\-Wall\fR" 4
2458 .IX Item "-Wall"
2459 This enables all the warnings about constructions that some users
2460 consider questionable, and that are easy to avoid (or modify to
2461 prevent the warning), even in conjunction with macros.  This also
2462 enables some language-specific warnings described in \fB\*(C+ Dialect
2463 Options\fR and \fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
2465 \&\fB\-Wall\fR turns on the following warning flags:
2467 \&\fB\-Waddress   
2468 \&\-Warray\-bounds\fR (only with\fB \fR\fB\-O2\fR)  
2469 \&\fB\-Wc++0x\-compat  
2470 \&\-Wchar\-subscripts  
2471 \&\-Wimplicit\-int  
2472 \&\-Wimplicit\-function\-declaration  
2473 \&\-Wcomment  
2474 \&\-Wformat   
2475 \&\-Wmain\fR (only for C/ObjC and unless\fB \fR\fB\-ffreestanding\fR)  
2476 \&\fB\-Wmissing\-braces  
2477 \&\-Wnonnull  
2478 \&\-Wparentheses  
2479 \&\-Wpointer\-sign  
2480 \&\-Wreorder   
2481 \&\-Wreturn\-type  
2482 \&\-Wsequence\-point  
2483 \&\-Wsign\-compare\fR (only in \*(C+)  
2484 \&\fB\-Wstrict\-aliasing  
2485 \&\-Wstrict\-overflow=1  
2486 \&\-Wswitch  
2487 \&\-Wtrigraphs  
2488 \&\-Wuninitialized\fR (only with\fB \fR\fB\-O1\fR\fB \fRand above)  
2489 \&\fB\-Wunknown\-pragmas  
2490 \&\-Wunused\-function  
2491 \&\-Wunused\-label     
2492 \&\-Wunused\-value     
2493 \&\-Wunused\-variable\fR
2495 Note that some warning flags are not implied by \fB\-Wall\fR.  Some of
2496 them warn about constructions that users generally do not consider
2497 questionable, but which occasionally you might wish to check for;
2498 others warn about constructions that are necessary or hard to avoid in
2499 some cases, and there is no simple way to modify the code to suppress
2500 the warning. Some of them are enabled by \fB\-Wextra\fR but many of
2501 them must be enabled individually.
2502 .IP "\fB\-Wextra\fR" 4
2503 .IX Item "-Wextra"
2504 This enables some extra warning flags that are not enabled by
2505 \&\fB\-Wall\fR. (This option used to be called \fB\-W\fR.  The older
2506 name is still supported, but the newer name is more descriptive.)
2508 \&\fB\-Wclobbered  
2509 \&\-Wempty\-body  
2510 \&\-Wignored\-qualifiers 
2511 \&\-Wmissing\-field\-initializers  
2512 \&\-Wmissing\-parameter\-type\fR (C only)  
2513 \&\fB\-Wold\-style\-declaration\fR (C only)  
2514 \&\fB\-Woverride\-init  
2515 \&\-Wsign\-compare  
2516 \&\-Wtype\-limits  
2517 \&\-Wuninitialized\fR (only with\fB \fR\fB\-O1\fR\fB \fRand above)  
2518 \&\fB\-Wunused\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR)  \fB \fR
2520 The option \fB\-Wextra\fR also prints warning messages for the
2521 following cases:
2522 .RS 4
2523 .IP "\(bu" 4
2524 A pointer is compared against integer zero with \fB<\fR, \fB<=\fR,
2525 \&\fB>\fR, or \fB>=\fR.
2526 .IP "\(bu" 4
2527 (\*(C+ only) An enumerator and a non-enumerator both appear in a
2528 conditional expression.
2529 .IP "\(bu" 4
2530 (\*(C+ only) A non-static reference or non-static \fBconst\fR member
2531 appears in a class without constructors.
2532 .IP "\(bu" 4
2533 (\*(C+ only) Ambiguous virtual bases.
2534 .IP "\(bu" 4
2535 (\*(C+ only) Subscripting an array which has been declared \fBregister\fR.
2536 .IP "\(bu" 4
2537 (\*(C+ only) Taking the address of a variable which has been declared
2538 \&\fBregister\fR.
2539 .IP "\(bu" 4
2540 (\*(C+ only) A base class is not initialized in a derived class' copy
2541 constructor.
2543 .RS 4
2545 .IP "\fB\-Wno\-import\fR" 4
2546 .IX Item "-Wno-import"
2547 Inhibit warning messages about the use of \fB#import\fR.
2548 .IP "\fB\-Wchar\-subscripts\fR" 4
2549 .IX Item "-Wchar-subscripts"
2550 Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR.  This is a common cause
2551 of error, as programmers often forget that this type is signed on some
2552 machines.
2553 This warning is enabled by \fB\-Wall\fR.
2554 .IP "\fB\-Wcomment\fR" 4
2555 .IX Item "-Wcomment"
2556 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
2557 comment, or whenever a Backslash-Newline appears in a \fB//\fR comment.
2558 This warning is enabled by \fB\-Wall\fR.
2559 .IP "\fB\-Wformat\fR" 4
2560 .IX Item "-Wformat"
2561 Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
2562 the arguments supplied have types appropriate to the format string
2563 specified, and that the conversions specified in the format string make
2564 sense.  This includes standard functions, and others specified by format
2565 attributes, in the \f(CW\*(C`printf\*(C'\fR,
2566 \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
2567 not in the C standard) families (or other target-specific families).
2568 Which functions are checked without format attributes having been
2569 specified depends on the standard version selected, and such checks of
2570 functions without the attribute specified are disabled by
2571 \&\fB\-ffreestanding\fR or \fB\-fno\-builtin\fR.
2573 The formats are checked against the format features supported by \s-1GNU\s0
2574 libc version 2.2.  These include all \s-1ISO\s0 C90 and C99 features, as well
2575 as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
2576 extensions.  Other library implementations may not support all these
2577 features; \s-1GCC\s0 does not support warning about features that go beyond a
2578 particular library's limitations.  However, if \fB\-pedantic\fR is used
2579 with \fB\-Wformat\fR, warnings will be given about format features not
2580 in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
2581 since those are not in any version of the C standard).
2583 Since \fB\-Wformat\fR also checks for null format arguments for
2584 several functions, \fB\-Wformat\fR also implies \fB\-Wnonnull\fR.
2586 \&\fB\-Wformat\fR is included in \fB\-Wall\fR.  For more control over some
2587 aspects of format checking, the options \fB\-Wformat\-y2k\fR,
2588 \&\fB\-Wno\-format\-extra\-args\fR, \fB\-Wno\-format\-zero\-length\fR,
2589 \&\fB\-Wformat\-nonliteral\fR, \fB\-Wformat\-security\fR, and
2590 \&\fB\-Wformat=2\fR are available, but are not included in \fB\-Wall\fR.
2591 .IP "\fB\-Wformat\-y2k\fR" 4
2592 .IX Item "-Wformat-y2k"
2593 If \fB\-Wformat\fR is specified, also warn about \f(CW\*(C`strftime\*(C'\fR
2594 formats which may yield only a two-digit year.
2595 .IP "\fB\-Wno\-format\-extra\-args\fR" 4
2596 .IX Item "-Wno-format-extra-args"
2597 If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
2598 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function.  The C standard specifies
2599 that such arguments are ignored.
2601 Where the unused arguments lie between used arguments that are
2602 specified with \fB$\fR operand number specifications, normally
2603 warnings are still given, since the implementation could not know what
2604 type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments.  However,
2605 in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option will suppress the
2606 warning if the unused arguments are all pointers, since the Single
2607 Unix Specification says that such unused arguments are allowed.
2608 .IP "\fB\-Wno\-format\-zero\-length\fR (C and Objective-C only)" 4
2609 .IX Item "-Wno-format-zero-length (C and Objective-C only)"
2610 If \fB\-Wformat\fR is specified, do not warn about zero-length formats.
2611 The C standard specifies that zero-length formats are allowed.
2612 .IP "\fB\-Wformat\-nonliteral\fR" 4
2613 .IX Item "-Wformat-nonliteral"
2614 If \fB\-Wformat\fR is specified, also warn if the format string is not a
2615 string literal and so cannot be checked, unless the format function
2616 takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
2617 .IP "\fB\-Wformat\-security\fR" 4
2618 .IX Item "-Wformat-security"
2619 If \fB\-Wformat\fR is specified, also warn about uses of format
2620 functions that represent possible security problems.  At present, this
2621 warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
2622 format string is not a string literal and there are no format arguments,
2623 as in \f(CW\*(C`printf (foo);\*(C'\fR.  This may be a security hole if the format
2624 string came from untrusted input and contains \fB\f(CB%n\fB\fR.  (This is
2625 currently a subset of what \fB\-Wformat\-nonliteral\fR warns about, but
2626 in future warnings may be added to \fB\-Wformat\-security\fR that are not
2627 included in \fB\-Wformat\-nonliteral\fR.)
2628 .IP "\fB\-Wformat=2\fR" 4
2629 .IX Item "-Wformat=2"
2630 Enable \fB\-Wformat\fR plus format checks not included in
2631 \&\fB\-Wformat\fR.  Currently equivalent to \fB\-Wformat
2632 \&\-Wformat\-nonliteral \-Wformat\-security \-Wformat\-y2k\fR.
2633 .IP "\fB\-Wnonnull\fR (C and Objective-C only)" 4
2634 .IX Item "-Wnonnull (C and Objective-C only)"
2635 Warn about passing a null pointer for arguments marked as
2636 requiring a non-null value by the \f(CW\*(C`nonnull\*(C'\fR function attribute.
2638 \&\fB\-Wnonnull\fR is included in \fB\-Wall\fR and \fB\-Wformat\fR.  It
2639 can be disabled with the \fB\-Wno\-nonnull\fR option.
2640 .IP "\fB\-Winit\-self\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
2641 .IX Item "-Winit-self (C, , Objective-C and Objective- only)"
2642 Warn about uninitialized variables which are initialized with themselves.
2643 Note this option can only be used with the \fB\-Wuninitialized\fR option,
2644 which in turn only works with \fB\-O1\fR and above.
2646 For example, \s-1GCC\s0 will warn about \f(CW\*(C`i\*(C'\fR being uninitialized in the
2647 following snippet only when \fB\-Winit\-self\fR has been specified:
2649 .Vb 5
2650 \&        int f()
2651 \&        {
2652 \&          int i = i;
2653 \&          return i;
2654 \&        }
2656 .IP "\fB\-Wimplicit\-int\fR (C and Objective-C only)" 4
2657 .IX Item "-Wimplicit-int (C and Objective-C only)"
2658 Warn when a declaration does not specify a type.
2659 This warning is enabled by \fB\-Wall\fR.
2660 .IP "\fB\-Wimplicit\-function\-declaration\fR (C and Objective-C only)" 4
2661 .IX Item "-Wimplicit-function-declaration (C and Objective-C only)"
2662 Give a warning whenever a function is used before being declared. In
2663 C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this warning is
2664 enabled by default and it is made into an error by
2665 \&\fB\-pedantic\-errors\fR. This warning is also enabled by
2666 \&\fB\-Wall\fR.
2667 .IP "\fB\-Wimplicit\fR" 4
2668 .IX Item "-Wimplicit"
2669 Same as \fB\-Wimplicit\-int\fR and \fB\-Wimplicit\-function\-declaration\fR.
2670 This warning is enabled by \fB\-Wall\fR.
2671 .IP "\fB\-Wignored\-qualifiers\fR (C and \*(C+ only)" 4
2672 .IX Item "-Wignored-qualifiers (C and  only)"
2673 Warn if the return type of a function has a type qualifier
2674 such as \f(CW\*(C`const\*(C'\fR.  For \s-1ISO\s0 C such a type qualifier has no effect,
2675 since the value returned by a function is not an lvalue.
2676 For \*(C+, the warning is only emitted for scalar types or \f(CW\*(C`void\*(C'\fR.
2677 \&\s-1ISO\s0 C prohibits qualified \f(CW\*(C`void\*(C'\fR return types on function
2678 definitions, so such return types always receive a warning
2679 even without this option.
2681 This warning is also enabled by \fB\-Wextra\fR.
2682 .IP "\fB\-Wmain\fR" 4
2683 .IX Item "-Wmain"
2684 Warn if the type of \fBmain\fR is suspicious.  \fBmain\fR should be a
2685 function with external linkage, returning int, taking either zero
2686 arguments, two, or three arguments of appropriate types.
2687 This warning is enabled by \fB\-Wall\fR.
2688 .IP "\fB\-Wmissing\-braces\fR" 4
2689 .IX Item "-Wmissing-braces"
2690 Warn if an aggregate or union initializer is not fully bracketed.  In
2691 the following example, the initializer for \fBa\fR is not fully
2692 bracketed, but that for \fBb\fR is fully bracketed.
2694 .Vb 2
2695 \&        int a[2][2] = { 0, 1, 2, 3 };
2696 \&        int b[2][2] = { { 0, 1 }, { 2, 3 } };
2699 This warning is enabled by \fB\-Wall\fR.
2700 .IP "\fB\-Wmissing\-include\-dirs\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
2701 .IX Item "-Wmissing-include-dirs (C, , Objective-C and Objective- only)"
2702 Warn if a user-supplied include directory does not exist.
2703 .IP "\fB\-Wparentheses\fR" 4
2704 .IX Item "-Wparentheses"
2705 Warn if parentheses are omitted in certain contexts, such
2706 as when there is an assignment in a context where a truth value
2707 is expected, or when operators are nested whose precedence people
2708 often get confused about.
2710 Also warn if a comparison like \fBx<=y<=z\fR appears; this is
2711 equivalent to \fB(x<=y ? 1 : 0) <= z\fR, which is a different
2712 interpretation from that of ordinary mathematical notation.
2714 Also warn about constructions where there may be confusion to which
2715 \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs.  Here is an example of
2716 such a case:
2718 .Vb 7
2719 \&        {
2720 \&          if (a)
2721 \&            if (b)
2722 \&              foo ();
2723 \&          else
2724 \&            bar ();
2725 \&        }
2728 In C/\*(C+, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible
2729 \&\f(CW\*(C`if\*(C'\fR statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR.  This is
2730 often not what the programmer expected, as illustrated in the above
2731 example by indentation the programmer chose.  When there is the
2732 potential for this confusion, \s-1GCC\s0 will issue a warning when this flag
2733 is specified.  To eliminate the warning, add explicit braces around
2734 the innermost \f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR
2735 could belong to the enclosing \f(CW\*(C`if\*(C'\fR.  The resulting code would
2736 look like this:
2738 .Vb 9
2739 \&        {
2740 \&          if (a)
2741 \&            {
2742 \&              if (b)
2743 \&                foo ();
2744 \&              else
2745 \&                bar ();
2746 \&            }
2747 \&        }
2750 This warning is enabled by \fB\-Wall\fR.
2751 .IP "\fB\-Wsequence\-point\fR" 4
2752 .IX Item "-Wsequence-point"
2753 Warn about code that may have undefined semantics because of violations
2754 of sequence point rules in the C and \*(C+ standards.
2756 The C and \*(C+ standards defines the order in which expressions in a C/\*(C+
2757 program are evaluated in terms of \fIsequence points\fR, which represent
2758 a partial ordering between the execution of parts of the program: those
2759 executed before the sequence point, and those executed after it.  These
2760 occur after the evaluation of a full expression (one which is not part
2761 of a larger expression), after the evaluation of the first operand of a
2762 \&\f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, \f(CW\*(C`? :\*(C'\fR or \f(CW\*(C`,\*(C'\fR (comma) operator, before a
2763 function is called (but after the evaluation of its arguments and the
2764 expression denoting the called function), and in certain other places.
2765 Other than as expressed by the sequence point rules, the order of
2766 evaluation of subexpressions of an expression is not specified.  All
2767 these rules describe only a partial order rather than a total order,
2768 since, for example, if two functions are called within one expression
2769 with no sequence point between them, the order in which the functions
2770 are called is not specified.  However, the standards committee have
2771 ruled that function calls do not overlap.
2773 It is not specified when between sequence points modifications to the
2774 values of objects take effect.  Programs whose behavior depends on this
2775 have undefined behavior; the C and \*(C+ standards specify that \*(L"Between
2776 the previous and next sequence point an object shall have its stored
2777 value modified at most once by the evaluation of an expression.
2778 Furthermore, the prior value shall be read only to determine the value
2779 to be stored.\*(R".  If a program breaks these rules, the results on any
2780 particular implementation are entirely unpredictable.
2782 Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
2783 = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR.  Some more complicated cases are not
2784 diagnosed by this option, and it may give an occasional false positive
2785 result, but in general it has been found fairly effective at detecting
2786 this sort of problem in programs.
2788 The standard is worded confusingly, therefore there is some debate
2789 over the precise meaning of the sequence point rules in subtle cases.
2790 Links to discussions of the problem, including proposed formal
2791 definitions, may be found on the \s-1GCC\s0 readings page, at
2792 <\fBhttp://gcc.gnu.org/readings.html\fR>.
2794 This warning is enabled by \fB\-Wall\fR for C and \*(C+.
2795 .IP "\fB\-Wreturn\-type\fR" 4
2796 .IX Item "-Wreturn-type"
2797 Warn whenever a function is defined with a return-type that defaults
2798 to \f(CW\*(C`int\*(C'\fR.  Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
2799 return-value in a function whose return-type is not \f(CW\*(C`void\*(C'\fR
2800 (falling off the end of the function body is considered returning
2801 without a value), and about a \f(CW\*(C`return\*(C'\fR statement with a
2802 expression in a function whose return-type is \f(CW\*(C`void\*(C'\fR.
2804 For \*(C+, a function without return type always produces a diagnostic
2805 message, even when \fB\-Wno\-return\-type\fR is specified.  The only
2806 exceptions are \fBmain\fR and functions defined in system headers.
2808 This warning is enabled by \fB\-Wall\fR.
2809 .IP "\fB\-Wswitch\fR" 4
2810 .IX Item "-Wswitch"
2811 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
2812 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
2813 enumeration.  (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
2814 warning.)  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2815 provoke warnings when this option is used.
2816 This warning is enabled by \fB\-Wall\fR.
2817 .IP "\fB\-Wswitch\-default\fR" 4
2818 .IX Item "-Wswitch-default"
2819 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement does not have a \f(CW\*(C`default\*(C'\fR
2820 case.
2821 .IP "\fB\-Wswitch\-enum\fR" 4
2822 .IX Item "-Wswitch-enum"
2823 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
2824 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
2825 enumeration.  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2826 provoke warnings when this option is used.
2827 .IP "\fB\-Wtrigraphs\fR" 4
2828 .IX Item "-Wtrigraphs"
2829 Warn if any trigraphs are encountered that might change the meaning of
2830 the program (trigraphs within comments are not warned about).
2831 This warning is enabled by \fB\-Wall\fR.
2832 .IP "\fB\-Wunused\-function\fR" 4
2833 .IX Item "-Wunused-function"
2834 Warn whenever a static function is declared but not defined or a
2835 non-inline static function is unused.
2836 This warning is enabled by \fB\-Wall\fR.
2837 .IP "\fB\-Wunused\-label\fR" 4
2838 .IX Item "-Wunused-label"
2839 Warn whenever a label is declared but not used.
2840 This warning is enabled by \fB\-Wall\fR.
2842 To suppress this warning use the \fBunused\fR attribute.
2843 .IP "\fB\-Wunused\-parameter\fR" 4
2844 .IX Item "-Wunused-parameter"
2845 Warn whenever a function parameter is unused aside from its declaration.
2847 To suppress this warning use the \fBunused\fR attribute.
2848 .IP "\fB\-Wunused\-variable\fR" 4
2849 .IX Item "-Wunused-variable"
2850 Warn whenever a local variable or non-constant static variable is unused
2851 aside from its declaration.
2852 This warning is enabled by \fB\-Wall\fR.
2854 To suppress this warning use the \fBunused\fR attribute.
2855 .IP "\fB\-Wunused\-value\fR" 4
2856 .IX Item "-Wunused-value"
2857 Warn whenever a statement computes a result that is explicitly not
2858 used. To suppress this warning cast the unused expression to
2859 \&\fBvoid\fR. This includes an expression-statement or the left-hand
2860 side of a comma expression that contains no side effects. For example,
2861 an expression such as \fBx[i,j]\fR will cause a warning, while
2862 \&\fBx[(void)i,j]\fR will not.
2864 This warning is enabled by \fB\-Wall\fR.
2865 .IP "\fB\-Wunused\fR" 4
2866 .IX Item "-Wunused"
2867 All the above \fB\-Wunused\fR options combined.
2869 In order to get a warning about an unused function parameter, you must
2870 either specify \fB\-Wextra \-Wunused\fR (note that \fB\-Wall\fR implies
2871 \&\fB\-Wunused\fR), or separately specify \fB\-Wunused\-parameter\fR.
2872 .IP "\fB\-Wuninitialized\fR" 4
2873 .IX Item "-Wuninitialized"
2874 Warn if an automatic variable is used without first being initialized or
2875 if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call.
2877 These warnings are possible only in optimizing compilation,
2878 because they require data flow information that is computed only
2879 when optimizing.  If you do not specify \fB\-O\fR, you will not get
2880 these warnings. Instead, \s-1GCC\s0 will issue a warning about \fB\-Wuninitialized\fR
2881 requiring \fB\-O\fR.
2883 If you want to warn about code which uses the uninitialized value of the
2884 variable in its own initializer, use the \fB\-Winit\-self\fR option.
2886 These warnings occur for individual uninitialized or clobbered
2887 elements of structure, union or array variables as well as for
2888 variables which are uninitialized or clobbered as a whole.  They do
2889 not occur for variables or elements declared \f(CW\*(C`volatile\*(C'\fR.  Because
2890 these warnings depend on optimization, the exact variables or elements
2891 for which there are warnings will depend on the precise optimization
2892 options and version of \s-1GCC\s0 used.
2894 Note that there may be no warning about a variable that is used only
2895 to compute a value that itself is never used, because such
2896 computations may be deleted by data flow analysis before the warnings
2897 are printed.
2899 These warnings are made optional because \s-1GCC\s0 is not smart
2900 enough to see all the reasons why the code might be correct
2901 despite appearing to have an error.  Here is one example of how
2902 this can happen:
2904 .Vb 12
2905 \&        {
2906 \&          int x;
2907 \&          switch (y)
2908 \&            {
2909 \&            case 1: x = 1;
2910 \&              break;
2911 \&            case 2: x = 4;
2912 \&              break;
2913 \&            case 3: x = 5;
2914 \&            }
2915 \&          foo (x);
2916 \&        }
2919 If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
2920 always initialized, but \s-1GCC\s0 doesn't know this.  Here is
2921 another common case:
2923 .Vb 6
2924 \&        {
2925 \&          int save_y;
2926 \&          if (change_y) save_y = y, y = new_y;
2927 \&          ...
2928 \&          if (change_y) y = save_y;
2929 \&        }
2932 This has no bug because \f(CW\*(C`save_y\*(C'\fR is used only if it is set.
2934 This option also warns when a non-volatile automatic variable might be
2935 changed by a call to \f(CW\*(C`longjmp\*(C'\fR.  These warnings as well are possible
2936 only in optimizing compilation.
2938 The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR.  It cannot know
2939 where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
2940 call it at any point in the code.  As a result, you may get a warning
2941 even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
2942 in fact be called at the place which would cause a problem.
2944 Some spurious warnings can be avoided if you declare all the functions
2945 you use that never return as \f(CW\*(C`noreturn\*(C'\fR.
2947 This warning is enabled by \fB\-Wall\fR or \fB\-Wextra\fR in
2948 optimizing compilations (\fB\-O1\fR and above).
2949 .IP "\fB\-Wunknown\-pragmas\fR" 4
2950 .IX Item "-Wunknown-pragmas"
2951 Warn when a #pragma directive is encountered which is not understood by
2952 \&\s-1GCC\s0.  If this command line option is used, warnings will even be issued
2953 for unknown pragmas in system header files.  This is not the case if
2954 the warnings were only enabled by the \fB\-Wall\fR command line option.
2955 .IP "\fB\-Wno\-pragmas\fR" 4
2956 .IX Item "-Wno-pragmas"
2957 Do not warn about misuses of pragmas, such as incorrect parameters,
2958 invalid syntax, or conflicts between pragmas.  See also
2959 \&\fB\-Wunknown\-pragmas\fR.
2960 .IP "\fB\-Wstrict\-aliasing\fR" 4
2961 .IX Item "-Wstrict-aliasing"
2962 This option is only active when \fB\-fstrict\-aliasing\fR is active.
2963 It warns about code which might break the strict aliasing rules that the
2964 compiler is using for optimization.  The warning does not catch all
2965 cases, but does attempt to catch the more common pitfalls.  It is
2966 included in \fB\-Wall\fR.
2967 It is equivalent to \fB\-Wstrict\-aliasing=3\fR
2968 .IP "\fB\-Wstrict\-aliasing=n\fR" 4
2969 .IX Item "-Wstrict-aliasing=n"
2970 This option is only active when \fB\-fstrict\-aliasing\fR is active.
2971 It warns about code which might break the strict aliasing rules that the
2972 compiler is using for optimization.
2973 Higher levels correspond to higher accuracy (fewer false positives).
2974 Higher levels also correspond to more effort, similar to the way \-O works.
2975 \&\fB\-Wstrict\-aliasing\fR is equivalent to \fB\-Wstrict\-aliasing=n\fR,
2976 with n=3.
2978 Level 1: Most aggressive, quick, least accurate.
2979 Possibly useful when higher levels
2980 do not warn but \-fstrict\-aliasing still breaks the code, as it has very few 
2981 false negatives.  However, it has many false positives.
2982 Warns for all pointer conversions between possibly incompatible types, 
2983 even if never dereferenced.  Runs in the frontend only.
2985 Level 2: Aggressive, quick, not too precise.
2986 May still have many false positives (not as many as level 1 though),
2987 and few false negatives (but possibly more than level 1).
2988 Unlike level 1, it only warns when an address is taken.  Warns about
2989 incomplete types.  Runs in the frontend only.
2991 Level 3 (default for \fB\-Wstrict\-aliasing\fR): 
2992 Should have very few false positives and few false 
2993 negatives.  Slightly slower than levels 1 or 2 when optimization is enabled.
2994 Takes care of the common punn+dereference pattern in the frontend:
2995 \&\f(CW\*(C`*(int*)&some_float\*(C'\fR.
2996 If optimization is enabled, it also runs in the backend, where it deals 
2997 with multiple statement cases using flow-sensitive points-to information.
2998 Only warns when the converted pointer is dereferenced.
2999 Does not warn about incomplete types.
3000 .IP "\fB\-Wstrict\-overflow\fR" 4
3001 .IX Item "-Wstrict-overflow"
3002 .PD 0
3003 .IP "\fB\-Wstrict\-overflow=\fR\fIn\fR" 4
3004 .IX Item "-Wstrict-overflow=n"
3006 This option is only active when \fB\-fstrict\-overflow\fR is active.
3007 It warns about cases where the compiler optimizes based on the
3008 assumption that signed overflow does not occur.  Note that it does not
3009 warn about all cases where the code might overflow: it only warns
3010 about cases where the compiler implements some optimization.  Thus
3011 this warning depends on the optimization level.
3013 An optimization which assumes that signed overflow does not occur is
3014 perfectly safe if the values of the variables involved are such that
3015 overflow never does, in fact, occur.  Therefore this warning can
3016 easily give a false positive: a warning about code which is not
3017 actually a problem.  To help focus on important issues, several
3018 warning levels are defined.  No warnings are issued for the use of
3019 undefined signed overflow when estimating how many iterations a loop
3020 will require, in particular when determining whether a loop will be
3021 executed at all.
3022 .RS 4
3023 .IP "\fB\-Wstrict\-overflow=1\fR" 4
3024 .IX Item "-Wstrict-overflow=1"
3025 Warn about cases which are both questionable and easy to avoid.  For
3026 example: \f(CW\*(C`x + 1 > x\*(C'\fR; with \fB\-fstrict\-overflow\fR, the
3027 compiler will simplify this to \f(CW1\fR.  This level of
3028 \&\fB\-Wstrict\-overflow\fR is enabled by \fB\-Wall\fR; higher levels
3029 are not, and must be explicitly requested.
3030 .IP "\fB\-Wstrict\-overflow=2\fR" 4
3031 .IX Item "-Wstrict-overflow=2"
3032 Also warn about other cases where a comparison is simplified to a
3033 constant.  For example: \f(CW\*(C`abs (x) >= 0\*(C'\fR.  This can only be
3034 simplified when \fB\-fstrict\-overflow\fR is in effect, because
3035 \&\f(CW\*(C`abs (INT_MIN)\*(C'\fR overflows to \f(CW\*(C`INT_MIN\*(C'\fR, which is less than
3036 zero.  \fB\-Wstrict\-overflow\fR (with no level) is the same as
3037 \&\fB\-Wstrict\-overflow=2\fR.
3038 .IP "\fB\-Wstrict\-overflow=3\fR" 4
3039 .IX Item "-Wstrict-overflow=3"
3040 Also warn about other cases where a comparison is simplified.  For
3041 example: \f(CW\*(C`x + 1 > 1\*(C'\fR will be simplified to \f(CW\*(C`x > 0\*(C'\fR.
3042 .IP "\fB\-Wstrict\-overflow=4\fR" 4
3043 .IX Item "-Wstrict-overflow=4"
3044 Also warn about other simplifications not covered by the above cases.
3045 For example: \f(CW\*(C`(x * 10) / 5\*(C'\fR will be simplified to \f(CW\*(C`x * 2\*(C'\fR.
3046 .IP "\fB\-Wstrict\-overflow=5\fR" 4
3047 .IX Item "-Wstrict-overflow=5"
3048 Also warn about cases where the compiler reduces the magnitude of a
3049 constant involved in a comparison.  For example: \f(CW\*(C`x + 2 > y\*(C'\fR will
3050 be simplified to \f(CW\*(C`x + 1 >= y\*(C'\fR.  This is reported only at the
3051 highest warning level because this simplification applies to many
3052 comparisons, so this warning level will give a very large number of
3053 false positives.
3055 .RS 4
3057 .IP "\fB\-Warray\-bounds\fR" 4
3058 .IX Item "-Warray-bounds"
3059 This option is only active when \fB\-ftree\-vrp\fR is active
3060 (default for \-O2 and above). It warns about subscripts to arrays
3061 that are always out of bounds. This warning is enabled by \fB\-Wall\fR.
3062 .IP "\fB\-Wno\-div\-by\-zero\fR" 4
3063 .IX Item "-Wno-div-by-zero"
3064 Do not warn about compile-time integer division by zero.  Floating point
3065 division by zero is not warned about, as it can be a legitimate way of
3066 obtaining infinities and NaNs.
3067 .IP "\fB\-Wsystem\-headers\fR" 4
3068 .IX Item "-Wsystem-headers"
3069 Print warning messages for constructs found in system header files.
3070 Warnings from system headers are normally suppressed, on the assumption
3071 that they usually do not indicate real problems and would only make the
3072 compiler output harder to read.  Using this command line option tells
3073 \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
3074 code.  However, note that using \fB\-Wall\fR in conjunction with this
3075 option will \fInot\fR warn about unknown pragmas in system
3076 headers\-\-\-for that, \fB\-Wunknown\-pragmas\fR must also be used.
3077 .IP "\fB\-Wfloat\-equal\fR" 4
3078 .IX Item "-Wfloat-equal"
3079 Warn if floating point values are used in equality comparisons.
3081 The idea behind this is that sometimes it is convenient (for the
3082 programmer) to consider floating-point values as approximations to
3083 infinitely precise real numbers.  If you are doing this, then you need
3084 to compute (by analyzing the code, or in some other way) the maximum or
3085 likely maximum error that the computation introduces, and allow for it
3086 when performing comparisons (and when producing output, but that's a
3087 different problem).  In particular, instead of testing for equality, you
3088 would check to see whether the two values have ranges that overlap; and
3089 this is done with the relational operators, so equality comparisons are
3090 probably mistaken.
3091 .IP "\fB\-Wtraditional\fR (C and Objective-C only)" 4
3092 .IX Item "-Wtraditional (C and Objective-C only)"
3093 Warn about certain constructs that behave differently in traditional and
3094 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
3095 equivalent, and/or problematic constructs which should be avoided.
3096 .RS 4
3097 .IP "\(bu" 4
3098 Macro parameters that appear within string literals in the macro body.
3099 In traditional C macro replacement takes place within string literals,
3100 but does not in \s-1ISO\s0 C.
3101 .IP "\(bu" 4
3102 In traditional C, some preprocessor directives did not exist.
3103 Traditional preprocessors would only consider a line to be a directive
3104 if the \fB#\fR appeared in column 1 on the line.  Therefore
3105 \&\fB\-Wtraditional\fR warns about directives that traditional C
3106 understands but would ignore because the \fB#\fR does not appear as the
3107 first character on the line.  It also suggests you hide directives like
3108 \&\fB#pragma\fR not understood by traditional C by indenting them.  Some
3109 traditional implementations would not recognize \fB#elif\fR, so it
3110 suggests avoiding it altogether.
3111 .IP "\(bu" 4
3112 A function-like macro that appears without arguments.
3113 .IP "\(bu" 4
3114 The unary plus operator.
3115 .IP "\(bu" 4
3116 The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating point
3117 constant suffixes.  (Traditional C does support the \fBL\fR suffix on integer
3118 constants.)  Note, these suffixes appear in macros defined in the system
3119 headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
3120 Use of these macros in user code might normally lead to spurious
3121 warnings, however \s-1GCC\s0's integrated preprocessor has enough context to
3122 avoid warning in these cases.
3123 .IP "\(bu" 4
3124 A function declared external in one block and then used after the end of
3125 the block.
3126 .IP "\(bu" 4
3127 A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
3128 .IP "\(bu" 4
3129 A non\-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
3130 This construct is not accepted by some traditional C compilers.
3131 .IP "\(bu" 4
3132 The \s-1ISO\s0 type of an integer constant has a different width or
3133 signedness from its traditional type.  This warning is only issued if
3134 the base of the constant is ten.  I.e. hexadecimal or octal values, which
3135 typically represent bit patterns, are not warned about.
3136 .IP "\(bu" 4
3137 Usage of \s-1ISO\s0 string concatenation is detected.
3138 .IP "\(bu" 4
3139 Initialization of automatic aggregates.
3140 .IP "\(bu" 4
3141 Identifier conflicts with labels.  Traditional C lacks a separate
3142 namespace for labels.
3143 .IP "\(bu" 4
3144 Initialization of unions.  If the initializer is zero, the warning is
3145 omitted.  This is done under the assumption that the zero initializer in
3146 user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
3147 initializer warnings and relies on default initialization to zero in the
3148 traditional C case.
3149 .IP "\(bu" 4
3150 Conversions by prototypes between fixed/floating point values and vice
3151 versa.  The absence of these prototypes when compiling with traditional
3152 C would cause serious problems.  This is a subset of the possible
3153 conversion warnings, for the full set use \fB\-Wtraditional\-conversion\fR.
3154 .IP "\(bu" 4
3155 Use of \s-1ISO\s0 C style function definitions.  This warning intentionally is
3156 \&\fInot\fR issued for prototype declarations or variadic functions
3157 because these \s-1ISO\s0 C features will appear in your code when using
3158 libiberty's traditional C compatibility macros, \f(CW\*(C`PARAMS\*(C'\fR and
3159 \&\f(CW\*(C`VPARAMS\*(C'\fR.  This warning is also bypassed for nested functions
3160 because that feature is already a \s-1GCC\s0 extension and thus not relevant to
3161 traditional C compatibility.
3163 .RS 4
3165 .IP "\fB\-Wtraditional\-conversion\fR (C and Objective-C only)" 4
3166 .IX Item "-Wtraditional-conversion (C and Objective-C only)"
3167 Warn if a prototype causes a type conversion that is different from what
3168 would happen to the same argument in the absence of a prototype.  This
3169 includes conversions of fixed point to floating and vice versa, and
3170 conversions changing the width or signedness of a fixed point argument
3171 except when the same as the default promotion.
3172 .IP "\fB\-Wdeclaration\-after\-statement\fR (C and Objective-C only)" 4
3173 .IX Item "-Wdeclaration-after-statement (C and Objective-C only)"
3174 Warn when a declaration is found after a statement in a block.  This
3175 construct, known from \*(C+, was introduced with \s-1ISO\s0 C99 and is by default
3176 allowed in \s-1GCC\s0.  It is not supported by \s-1ISO\s0 C90 and was not supported by
3177 \&\s-1GCC\s0 versions before \s-1GCC\s0 3.0.
3178 .IP "\fB\-Wundef\fR" 4
3179 .IX Item "-Wundef"
3180 Warn if an undefined identifier is evaluated in an \fB#if\fR directive.
3181 .IP "\fB\-Wno\-endif\-labels\fR" 4
3182 .IX Item "-Wno-endif-labels"
3183 Do not warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
3184 .IP "\fB\-Wshadow\fR" 4
3185 .IX Item "-Wshadow"
3186 Warn whenever a local variable shadows another local variable, parameter or
3187 global variable or whenever a built-in function is shadowed.
3188 .IP "\fB\-Wlarger\-than\-\fR\fIlen\fR" 4
3189 .IX Item "-Wlarger-than-len"
3190 Warn whenever an object of larger than \fIlen\fR bytes is defined.
3191 .IP "\fB\-Wunsafe\-loop\-optimizations\fR" 4
3192 .IX Item "-Wunsafe-loop-optimizations"
3193 Warn if the loop cannot be optimized because the compiler could not
3194 assume anything on the bounds of the loop indices.  With
3195 \&\fB\-funsafe\-loop\-optimizations\fR warn if the compiler made
3196 such assumptions.
3197 .IP "\fB\-Wpointer\-arith\fR" 4
3198 .IX Item "-Wpointer-arith"
3199 Warn about anything that depends on the \*(L"size of\*(R" a function type or
3200 of \f(CW\*(C`void\*(C'\fR.  \s-1GNU\s0 C assigns these types a size of 1, for
3201 convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
3202 to functions.  In \*(C+, warn also when an arithmetic operation involves
3203 \&\f(CW\*(C`NULL\*(C'\fR.  This warning is also enabled by \fB\-pedantic\fR.
3204 .IP "\fB\-Wtype\-limits\fR" 4
3205 .IX Item "-Wtype-limits"
3206 Warn if a comparison is always true or always false due to the limited
3207 range of the data type, but do not warn for constant expressions.  For
3208 example, warn if an unsigned variable is compared against zero with
3209 \&\fB<\fR or \fB>=\fR.  This warning is also enabled by
3210 \&\fB\-Wextra\fR.
3211 .IP "\fB\-Wbad\-function\-cast\fR (C and Objective-C only)" 4
3212 .IX Item "-Wbad-function-cast (C and Objective-C only)"
3213 Warn whenever a function call is cast to a non-matching type.
3214 For example, warn if \f(CW\*(C`int malloc()\*(C'\fR is cast to \f(CW\*(C`anything *\*(C'\fR.
3215 .IP "\fB\-Wc++\-compat\fR (C and Objective-C only)" 4
3216 .IX Item "-Wc++-compat (C and Objective-C only)"
3217 Warn about \s-1ISO\s0 C constructs that are outside of the common subset of
3218 \&\s-1ISO\s0 C and \s-1ISO\s0 \*(C+, e.g. request for implicit conversion from
3219 \&\f(CW\*(C`void *\*(C'\fR to a pointer to non\-\f(CW\*(C`void\*(C'\fR type.
3220 .IP "\fB\-Wc++0x\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
3221 .IX Item "-Wc++0x-compat ( and Objective- only)"
3222 Warn about \*(C+ constructs whose meaning differs between \s-1ISO\s0 \*(C+ 1998 and
3223 \&\s-1ISO\s0 \*(C+ 200x, e.g., identifiers in \s-1ISO\s0 \*(C+ 1998 that will become keywords
3224 in \s-1ISO\s0 \*(C+ 200x.  This warning is enabled by \fB\-Wall\fR.
3225 .IP "\fB\-Wcast\-qual\fR" 4
3226 .IX Item "-Wcast-qual"
3227 Warn whenever a pointer is cast so as to remove a type qualifier from
3228 the target type.  For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
3229 to an ordinary \f(CW\*(C`char *\*(C'\fR.
3230 .IP "\fB\-Wcast\-align\fR" 4
3231 .IX Item "-Wcast-align"
3232 Warn whenever a pointer is cast such that the required alignment of the
3233 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
3234 an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
3235 two\- or four-byte boundaries.
3236 .IP "\fB\-Wwrite\-strings\fR" 4
3237 .IX Item "-Wwrite-strings"
3238 When compiling C, give string constants the type \f(CW\*(C`const
3239 char[\f(CIlength\f(CW]\*(C'\fR so that
3240 copying the address of one into a non\-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR
3241 pointer will get a warning; when compiling \*(C+, warn about the
3242 deprecated conversion from string literals to \f(CW\*(C`char *\*(C'\fR.  This
3243 warning, by default, is enabled for \*(C+ programs.
3244 These warnings will help you find at
3245 compile time code that can try to write into a string constant, but
3246 only if you have been very careful about using \f(CW\*(C`const\*(C'\fR in
3247 declarations and prototypes.  Otherwise, it will just be a nuisance;
3248 this is why we did not make \fB\-Wall\fR request these warnings.
3249 .IP "\fB\-Wclobbered\fR" 4
3250 .IX Item "-Wclobbered"
3251 Warn for variables that might be changed by \fBlongjmp\fR or
3252 \&\fBvfork\fR.  This warning is also enabled by \fB\-Wextra\fR.
3253 .IP "\fB\-Wconversion\fR" 4
3254 .IX Item "-Wconversion"
3255 Warn for implicit conversions that may alter a value. This includes
3256 conversions between real and integer, like \f(CW\*(C`abs (x)\*(C'\fR when
3257 \&\f(CW\*(C`x\*(C'\fR is \f(CW\*(C`double\*(C'\fR; conversions between signed and unsigned,
3258 like \f(CW\*(C`unsigned ui = \-1\*(C'\fR; and conversions to smaller types, like
3259 \&\f(CW\*(C`sqrtf (M_PI)\*(C'\fR. Do not warn for explicit casts like \f(CW\*(C`abs
3260 ((int) x)\*(C'\fR and \f(CW\*(C`ui = (unsigned) \-1\*(C'\fR, or if the value is not
3261 changed by the conversion like in \f(CW\*(C`abs (2.0)\*(C'\fR.  Warnings about
3262 conversions between signed and unsigned integers can be disabled by
3263 using \fB\-Wno\-sign\-conversion\fR.
3265 For \*(C+, also warn for conversions between \f(CW\*(C`NULL\*(C'\fR and non-pointer
3266 types; confusing overload resolution for user-defined conversions; and
3267 conversions that will never use a type conversion operator:
3268 conversions to \f(CW\*(C`void\*(C'\fR, the same type, a base class or a reference
3269 to them. Warnings about conversions between signed and unsigned
3270 integers are disabled by default in \*(C+ unless
3271 \&\fB\-Wsign\-conversion\fR is explicitly enabled.
3272 .IP "\fB\-Wempty\-body\fR" 4
3273 .IX Item "-Wempty-body"
3274 Warn if an empty body occurs in an \fBif\fR, \fBelse\fR or \fBdo
3275 while\fR statement.  Additionally, in \*(C+, warn when an empty body occurs
3276 in a \fBwhile\fR or \fBfor\fR statement with no whitespacing before
3277 the semicolon.  This warning is also enabled by \fB\-Wextra\fR.
3278 .IP "\fB\-Wsign\-compare\fR" 4
3279 .IX Item "-Wsign-compare"
3280 Warn when a comparison between signed and unsigned values could produce
3281 an incorrect result when the signed value is converted to unsigned.
3282 This warning is also enabled by \fB\-Wextra\fR; to get the other warnings
3283 of \fB\-Wextra\fR without this warning, use \fB\-Wextra \-Wno\-sign\-compare\fR.
3284 .IP "\fB\-Wsign\-conversion\fR" 4
3285 .IX Item "-Wsign-conversion"
3286 Warn for implicit conversions that may change the sign of an integer
3287 value, like assigning a signed integer expression to an unsigned
3288 integer variable. An explicit cast silences the warning. In C, this
3289 option is enabled also by \fB\-Wconversion\fR.
3290 .IP "\fB\-Waddress\fR" 4
3291 .IX Item "-Waddress"
3292 Warn about suspicious uses of memory addresses. These include using
3293 the address of a function in a conditional expression, such as
3294 \&\f(CW\*(C`void func(void); if (func)\*(C'\fR, and comparisons against the memory
3295 address of a string literal, such as \f(CW\*(C`if (x == "abc")\*(C'\fR.  Such
3296 uses typically indicate a programmer error: the address of a function
3297 always evaluates to true, so their use in a conditional usually
3298 indicate that the programmer forgot the parentheses in a function
3299 call; and comparisons against string literals result in unspecified
3300 behavior and are not portable in C, so they usually indicate that the
3301 programmer intended to use \f(CW\*(C`strcmp\*(C'\fR.  This warning is enabled by
3302 \&\fB\-Wall\fR.
3303 .IP "\fB\-Wlogical\-op\fR" 4
3304 .IX Item "-Wlogical-op"
3305 Warn about suspicious uses of logical operators in expressions.
3306 This includes using logical operators in contexts where a
3307 bit-wise operator is likely to be expected.
3308 .IP "\fB\-Waggregate\-return\fR" 4
3309 .IX Item "-Waggregate-return"
3310 Warn if any functions that return structures or unions are defined or
3311 called.  (In languages where you can return an array, this also elicits
3312 a warning.)
3313 .IP "\fB\-Wno\-attributes\fR" 4
3314 .IX Item "-Wno-attributes"
3315 Do not warn if an unexpected \f(CW\*(C`_\|_attribute_\|_\*(C'\fR is used, such as
3316 unrecognized attributes, function attributes applied to variables,
3317 etc.  This will not stop errors for incorrect use of supported
3318 attributes.
3319 .IP "\fB\-Wstrict\-prototypes\fR (C and Objective-C only)" 4
3320 .IX Item "-Wstrict-prototypes (C and Objective-C only)"
3321 Warn if a function is declared or defined without specifying the
3322 argument types.  (An old-style function definition is permitted without
3323 a warning if preceded by a declaration which specifies the argument
3324 types.)
3325 .IP "\fB\-Wold\-style\-declaration\fR (C and Objective-C only)" 4
3326 .IX Item "-Wold-style-declaration (C and Objective-C only)"
3327 Warn for obsolescent usages, according to the C Standard, in a
3328 declaration. For example, warn if storage-class specifiers like
3329 \&\f(CW\*(C`static\*(C'\fR are not the first things in a declaration.  This warning
3330 is also enabled by \fB\-Wextra\fR.
3331 .IP "\fB\-Wold\-style\-definition\fR (C and Objective-C only)" 4
3332 .IX Item "-Wold-style-definition (C and Objective-C only)"
3333 Warn if an old-style function definition is used.  A warning is given
3334 even if there is a previous prototype.
3335 .IP "\fB\-Wmissing\-parameter\-type\fR (C and Objective-C only)" 4
3336 .IX Item "-Wmissing-parameter-type (C and Objective-C only)"
3337 A function parameter is declared without a type specifier in K&R\-style
3338 functions:
3340 .Vb 1
3341 \&        void foo(bar) { }
3344 This warning is also enabled by \fB\-Wextra\fR.
3345 .IP "\fB\-Wmissing\-prototypes\fR (C and Objective-C only)" 4
3346 .IX Item "-Wmissing-prototypes (C and Objective-C only)"
3347 Warn if a global function is defined without a previous prototype
3348 declaration.  This warning is issued even if the definition itself
3349 provides a prototype.  The aim is to detect global functions that fail
3350 to be declared in header files.
3351 .IP "\fB\-Wmissing\-declarations\fR" 4
3352 .IX Item "-Wmissing-declarations"
3353 Warn if a global function is defined without a previous declaration.
3354 Do so even if the definition itself provides a prototype.
3355 Use this option to detect global functions that are not declared in
3356 header files.  In \*(C+, no warnings are issued for function templates,
3357 or for inline functions, or for functions in anonymous namespaces.
3358 .IP "\fB\-Wmissing\-field\-initializers\fR" 4
3359 .IX Item "-Wmissing-field-initializers"
3360 Warn if a structure's initializer has some fields missing.  For
3361 example, the following code would cause such a warning, because
3362 \&\f(CW\*(C`x.h\*(C'\fR is implicitly zero:
3364 .Vb 2
3365 \&        struct s { int f, g, h; };
3366 \&        struct s x = { 3, 4 };
3369 This option does not warn about designated initializers, so the following
3370 modification would not trigger a warning:
3372 .Vb 2
3373 \&        struct s { int f, g, h; };
3374 \&        struct s x = { .f = 3, .g = 4 };
3377 This warning is included in \fB\-Wextra\fR.  To get other \fB\-Wextra\fR
3378 warnings without this one, use \fB\-Wextra \-Wno\-missing\-field\-initializers\fR.
3379 .IP "\fB\-Wmissing\-noreturn\fR" 4
3380 .IX Item "-Wmissing-noreturn"
3381 Warn about functions which might be candidates for attribute \f(CW\*(C`noreturn\*(C'\fR.
3382 Note these are only possible candidates, not absolute ones.  Care should
3383 be taken to manually verify functions actually do not ever return before
3384 adding the \f(CW\*(C`noreturn\*(C'\fR attribute, otherwise subtle code generation
3385 bugs could be introduced.  You will not get a warning for \f(CW\*(C`main\*(C'\fR in
3386 hosted C environments.
3387 .IP "\fB\-Wmissing\-format\-attribute\fR" 4
3388 .IX Item "-Wmissing-format-attribute"
3389 Warn about function pointers which might be candidates for \f(CW\*(C`format\*(C'\fR
3390 attributes.  Note these are only possible candidates, not absolute ones.
3391 \&\s-1GCC\s0 will guess that function pointers with \f(CW\*(C`format\*(C'\fR attributes that
3392 are used in assignment, initialization, parameter passing or return
3393 statements should have a corresponding \f(CW\*(C`format\*(C'\fR attribute in the
3394 resulting type.  I.e. the left-hand side of the assignment or
3395 initialization, the type of the parameter variable, or the return type
3396 of the containing function respectively should also have a \f(CW\*(C`format\*(C'\fR
3397 attribute to avoid the warning.
3399 \&\s-1GCC\s0 will also warn about function definitions which might be
3400 candidates for \f(CW\*(C`format\*(C'\fR attributes.  Again, these are only
3401 possible candidates.  \s-1GCC\s0 will guess that \f(CW\*(C`format\*(C'\fR attributes
3402 might be appropriate for any function that calls a function like
3403 \&\f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
3404 case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
3405 appropriate may not be detected.
3406 .IP "\fB\-Wno\-multichar\fR" 4
3407 .IX Item "-Wno-multichar"
3408 Do not warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.
3409 Usually they indicate a typo in the user's code, as they have
3410 implementation-defined values, and should not be used in portable code.
3411 .IP "\fB\-Wnormalized=<none|id|nfc|nfkc>\fR" 4
3412 .IX Item "-Wnormalized=<none|id|nfc|nfkc>"
3413 In \s-1ISO\s0 C and \s-1ISO\s0 \*(C+, two identifiers are different if they are
3414 different sequences of characters.  However, sometimes when characters
3415 outside the basic \s-1ASCII\s0 character set are used, you can have two
3416 different character sequences that look the same.  To avoid confusion,
3417 the \s-1ISO\s0 10646 standard sets out some \fInormalization rules\fR which
3418 when applied ensure that two sequences that look the same are turned into
3419 the same sequence.  \s-1GCC\s0 can warn you if you are using identifiers which
3420 have not been normalized; this option controls that warning.
3422 There are four levels of warning that \s-1GCC\s0 supports.  The default is
3423 \&\fB\-Wnormalized=nfc\fR, which warns about any identifier which is
3424 not in the \s-1ISO\s0 10646 \*(L"C\*(R" normalized form, \fI\s-1NFC\s0\fR.  \s-1NFC\s0 is the
3425 recommended form for most uses.
3427 Unfortunately, there are some characters which \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ allow
3428 in identifiers that when turned into \s-1NFC\s0 aren't allowable as
3429 identifiers.  That is, there's no way to use these symbols in portable
3430 \&\s-1ISO\s0 C or \*(C+ and have all your identifiers in \s-1NFC\s0.
3431 \&\fB\-Wnormalized=id\fR suppresses the warning for these characters.
3432 It is hoped that future versions of the standards involved will correct
3433 this, which is why this option is not the default.
3435 You can switch the warning off for all characters by writing
3436 \&\fB\-Wnormalized=none\fR.  You would only want to do this if you
3437 were using some other normalization scheme (like \*(L"D\*(R"), because
3438 otherwise you can easily create bugs that are literally impossible to see.
3440 Some characters in \s-1ISO\s0 10646 have distinct meanings but look identical
3441 in some fonts or display methodologies, especially once formatting has
3442 been applied.  For instance \f(CW\*(C`\eu207F\*(C'\fR, \*(L"\s-1SUPERSCRIPT\s0 \s-1LATIN\s0 \s-1SMALL\s0
3443 \&\s-1LETTER\s0 N\*(R", will display just like a regular \f(CW\*(C`n\*(C'\fR which has been
3444 placed in a superscript.  \s-1ISO\s0 10646 defines the \fI\s-1NFKC\s0\fR
3445 normalization scheme to convert all these into a standard form as
3446 well, and \s-1GCC\s0 will warn if your code is not in \s-1NFKC\s0 if you use
3447 \&\fB\-Wnormalized=nfkc\fR.  This warning is comparable to warning
3448 about every identifier that contains the letter O because it might be
3449 confused with the digit 0, and so is not the default, but may be
3450 useful as a local coding convention if the programming environment is
3451 unable to be fixed to display these characters distinctly.
3452 .IP "\fB\-Wno\-deprecated\-declarations\fR" 4
3453 .IX Item "-Wno-deprecated-declarations"
3454 Do not warn about uses of functions,
3455 variables, and types marked as deprecated by using the \f(CW\*(C`deprecated\*(C'\fR
3456 attribute.
3457 .IP "\fB\-Wno\-overflow\fR" 4
3458 .IX Item "-Wno-overflow"
3459 Do not warn about compile-time overflow in constant expressions.
3460 .IP "\fB\-Woverride\-init\fR (C and Objective-C only)" 4
3461 .IX Item "-Woverride-init (C and Objective-C only)"
3462 Warn if an initialized field without side effects is overridden when
3463 using designated initializers.
3465 This warning is included in \fB\-Wextra\fR.  To get other
3466 \&\fB\-Wextra\fR warnings without this one, use \fB\-Wextra
3467 \&\-Wno\-override\-init\fR.
3468 .IP "\fB\-Wpacked\fR" 4
3469 .IX Item "-Wpacked"
3470 Warn if a structure is given the packed attribute, but the packed
3471 attribute has no effect on the layout or size of the structure.
3472 Such structures may be mis-aligned for little benefit.  For
3473 instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
3474 will be misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
3475 have the packed attribute:
3477 .Vb 8
3478 \&        struct foo {
3479 \&          int x;
3480 \&          char a, b, c, d;
3481 \&        } _\|_attribute_\|_((packed));
3482 \&        struct bar {
3483 \&          char z;
3484 \&          struct foo f;
3485 \&        };
3487 .IP "\fB\-Wpadded\fR" 4
3488 .IX Item "-Wpadded"
3489 Warn if padding is included in a structure, either to align an element
3490 of the structure or to align the whole structure.  Sometimes when this
3491 happens it is possible to rearrange the fields of the structure to
3492 reduce the padding and so make the structure smaller.
3493 .IP "\fB\-Wredundant\-decls\fR" 4
3494 .IX Item "-Wredundant-decls"
3495 Warn if anything is declared more than once in the same scope, even in
3496 cases where multiple declaration is valid and changes nothing.
3497 .IP "\fB\-Wnested\-externs\fR (C and Objective-C only)" 4
3498 .IX Item "-Wnested-externs (C and Objective-C only)"
3499 Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
3500 .IP "\fB\-Wunreachable\-code\fR" 4
3501 .IX Item "-Wunreachable-code"
3502 Warn if the compiler detects that code will never be executed.
3504 This option is intended to warn when the compiler detects that at
3505 least a whole line of source code will never be executed, because
3506 some condition is never satisfied or because it is after a
3507 procedure that never returns.
3509 It is possible for this option to produce a warning even though there
3510 are circumstances under which part of the affected line can be executed,
3511 so care should be taken when removing apparently-unreachable code.
3513 For instance, when a function is inlined, a warning may mean that the
3514 line is unreachable in only one inlined copy of the function.
3516 This option is not made part of \fB\-Wall\fR because in a debugging
3517 version of a program there is often substantial code which checks
3518 correct functioning of the program and is, hopefully, unreachable
3519 because the program does work.  Another common use of unreachable
3520 code is to provide behavior which is selectable at compile-time.
3521 .IP "\fB\-Winline\fR" 4
3522 .IX Item "-Winline"
3523 Warn if a function can not be inlined and it was declared as inline.
3524 Even with this option, the compiler will not warn about failures to
3525 inline functions declared in system headers.
3527 The compiler uses a variety of heuristics to determine whether or not
3528 to inline a function.  For example, the compiler takes into account
3529 the size of the function being inlined and the amount of inlining
3530 that has already been done in the current function.  Therefore,
3531 seemingly insignificant changes in the source program can cause the
3532 warnings produced by \fB\-Winline\fR to appear or disappear.
3533 .IP "\fB\-Wno\-invalid\-offsetof\fR (\*(C+ and Objective\-\*(C+ only)" 4
3534 .IX Item "-Wno-invalid-offsetof ( and Objective- only)"
3535 Suppress warnings from applying the \fBoffsetof\fR macro to a non-POD
3536 type.  According to the 1998 \s-1ISO\s0 \*(C+ standard, applying \fBoffsetof\fR
3537 to a non-POD type is undefined.  In existing \*(C+ implementations,
3538 however, \fBoffsetof\fR typically gives meaningful results even when
3539 applied to certain kinds of non-POD types. (Such as a simple
3540 \&\fBstruct\fR that fails to be a \s-1POD\s0 type only by virtue of having a
3541 constructor.)  This flag is for users who are aware that they are
3542 writing nonportable code and who have deliberately chosen to ignore the
3543 warning about it.
3545 The restrictions on \fBoffsetof\fR may be relaxed in a future version
3546 of the \*(C+ standard.
3547 .IP "\fB\-Wno\-int\-to\-pointer\-cast\fR (C and Objective-C only)" 4
3548 .IX Item "-Wno-int-to-pointer-cast (C and Objective-C only)"
3549 Suppress warnings from casts to pointer type of an integer of a
3550 different size.
3551 .IP "\fB\-Wno\-pointer\-to\-int\-cast\fR (C and Objective-C only)" 4
3552 .IX Item "-Wno-pointer-to-int-cast (C and Objective-C only)"
3553 Suppress warnings from casts from a pointer to an integer type of a
3554 different size.
3555 .IP "\fB\-Winvalid\-pch\fR" 4
3556 .IX Item "-Winvalid-pch"
3557 Warn if a precompiled header is found in
3558 the search path but can't be used.
3559 .IP "\fB\-Wlong\-long\fR" 4
3560 .IX Item "-Wlong-long"
3561 Warn if \fBlong long\fR type is used.  This is default.  To inhibit
3562 the warning messages, use \fB\-Wno\-long\-long\fR.  Flags
3563 \&\fB\-Wlong\-long\fR and \fB\-Wno\-long\-long\fR are taken into account
3564 only when \fB\-pedantic\fR flag is used.
3565 .IP "\fB\-Wvariadic\-macros\fR" 4
3566 .IX Item "-Wvariadic-macros"
3567 Warn if variadic macros are used in pedantic \s-1ISO\s0 C90 mode, or the \s-1GNU\s0
3568 alternate syntax when in pedantic \s-1ISO\s0 C99 mode.  This is default.
3569 To inhibit the warning messages, use \fB\-Wno\-variadic\-macros\fR.
3570 .IP "\fB\-Wvla\fR" 4
3571 .IX Item "-Wvla"
3572 Warn if variable length array is used in the code.
3573 \&\fB\-Wno\-vla\fR will prevent the \fB\-pedantic\fR warning of
3574 the variable length array.
3575 .IP "\fB\-Wvolatile\-register\-var\fR" 4
3576 .IX Item "-Wvolatile-register-var"
3577 Warn if a register variable is declared volatile.  The volatile
3578 modifier does not inhibit all optimizations that may eliminate reads
3579 and/or writes to register variables.
3580 .IP "\fB\-Wdisabled\-optimization\fR" 4
3581 .IX Item "-Wdisabled-optimization"
3582 Warn if a requested optimization pass is disabled.  This warning does
3583 not generally indicate that there is anything wrong with your code; it
3584 merely indicates that \s-1GCC\s0's optimizers were unable to handle the code
3585 effectively.  Often, the problem is that your code is too big or too
3586 complex; \s-1GCC\s0 will refuse to optimize programs when the optimization
3587 itself is likely to take inordinate amounts of time.
3588 .IP "\fB\-Wpointer\-sign\fR (C and Objective-C only)" 4
3589 .IX Item "-Wpointer-sign (C and Objective-C only)"
3590 Warn for pointer argument passing or assignment with different signedness.
3591 This option is only supported for C and Objective-C.  It is implied by
3592 \&\fB\-Wall\fR and by \fB\-pedantic\fR, which can be disabled with
3593 \&\fB\-Wno\-pointer\-sign\fR.
3594 .IP "\fB\-Wstack\-protector\fR" 4
3595 .IX Item "-Wstack-protector"
3596 This option is only active when \fB\-fstack\-protector\fR is active.  It
3597 warns about functions that will not be protected against stack smashing.
3598 .IP "\fB\-Woverlength\-strings\fR" 4
3599 .IX Item "-Woverlength-strings"
3600 Warn about string constants which are longer than the \*(L"minimum
3601 maximum\*(R" length specified in the C standard.  Modern compilers
3602 generally allow string constants which are much longer than the
3603 standard's minimum limit, but very portable programs should avoid
3604 using longer strings.
3606 The limit applies \fIafter\fR string constant concatenation, and does
3607 not count the trailing \s-1NUL\s0.  In C89, the limit was 509 characters; in
3608 C99, it was raised to 4095.  \*(C+98 does not specify a normative
3609 minimum maximum, so we do not diagnose overlength strings in \*(C+.
3611 This option is implied by \fB\-pedantic\fR, and can be disabled with
3612 \&\fB\-Wno\-overlength\-strings\fR.
3613 .Sh "Options for Debugging Your Program or \s-1GCC\s0"
3614 .IX Subsection "Options for Debugging Your Program or GCC"
3615 \&\s-1GCC\s0 has various special options that are used for debugging
3616 either your program or \s-1GCC:\s0
3617 .IP "\fB\-g\fR" 4
3618 .IX Item "-g"
3619 Produce debugging information in the operating system's native format
3620 (stabs, \s-1COFF\s0, \s-1XCOFF\s0, or \s-1DWARF\s0 2).  \s-1GDB\s0 can work with this debugging
3621 information.
3623 On most systems that use stabs format, \fB\-g\fR enables use of extra
3624 debugging information that only \s-1GDB\s0 can use; this extra information
3625 makes debugging work better in \s-1GDB\s0 but will probably make other debuggers
3626 crash or
3627 refuse to read the program.  If you want to control for certain whether
3628 to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
3629 \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, or \fB\-gvms\fR (see below).
3631 \&\s-1GCC\s0 allows you to use \fB\-g\fR with
3632 \&\fB\-O\fR.  The shortcuts taken by optimized code may occasionally
3633 produce surprising results: some variables you declared may not exist
3634 at all; flow of control may briefly move where you did not expect it;
3635 some statements may not be executed because they compute constant
3636 results or their values were already at hand; some statements may
3637 execute in different places because they were moved out of loops.
3639 Nevertheless it proves possible to debug optimized output.  This makes
3640 it reasonable to use the optimizer for programs that might have bugs.
3642 The following options are useful when \s-1GCC\s0 is generated with the
3643 capability for more than one debugging format.
3644 .IP "\fB\-ggdb\fR" 4
3645 .IX Item "-ggdb"
3646 Produce debugging information for use by \s-1GDB\s0.  This means to use the
3647 most expressive format available (\s-1DWARF\s0 2, stabs, or the native format
3648 if neither of those are supported), including \s-1GDB\s0 extensions if at all
3649 possible.
3650 .IP "\fB\-gstabs\fR" 4
3651 .IX Item "-gstabs"
3652 Produce debugging information in stabs format (if that is supported),
3653 without \s-1GDB\s0 extensions.  This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
3654 systems.  On \s-1MIPS\s0, Alpha and System V Release 4 systems this option
3655 produces stabs debugging output which is not understood by \s-1DBX\s0 or \s-1SDB\s0.
3656 On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
3657 .IP "\fB\-feliminate\-unused\-debug\-symbols\fR" 4
3658 .IX Item "-feliminate-unused-debug-symbols"
3659 Produce debugging information in stabs format (if that is supported),
3660 for only symbols that are actually used.
3661 .IP "\fB\-femit\-class\-debug\-always\fR" 4
3662 .IX Item "-femit-class-debug-always"
3663 Instead of emitting debugging information for a \*(C+ class in only one
3664 object file, emit it in all object files using the class.  This option
3665 should be used only with debuggers that are unable to handle the way \s-1GCC\s0
3666 normally emits debugging information for classes because using this
3667 option will increase the size of debugging information by as much as a
3668 factor of two.
3669 .IP "\fB\-gstabs+\fR" 4
3670 .IX Item "-gstabs+"
3671 Produce debugging information in stabs format (if that is supported),
3672 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
3673 use of these extensions is likely to make other debuggers crash or
3674 refuse to read the program.
3675 .IP "\fB\-gcoff\fR" 4
3676 .IX Item "-gcoff"
3677 Produce debugging information in \s-1COFF\s0 format (if that is supported).
3678 This is the format used by \s-1SDB\s0 on most System V systems prior to
3679 System V Release 4.
3680 .IP "\fB\-gxcoff\fR" 4
3681 .IX Item "-gxcoff"
3682 Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
3683 This is the format used by the \s-1DBX\s0 debugger on \s-1IBM\s0 \s-1RS/6000\s0 systems.
3684 .IP "\fB\-gxcoff+\fR" 4
3685 .IX Item "-gxcoff+"
3686 Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
3687 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
3688 use of these extensions is likely to make other debuggers crash or
3689 refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
3690 assembler (\s-1GAS\s0) to fail with an error.
3691 .IP "\fB\-gdwarf\-2\fR" 4
3692 .IX Item "-gdwarf-2"
3693 Produce debugging information in \s-1DWARF\s0 version 2 format (if that is
3694 supported).  This is the format used by \s-1DBX\s0 on \s-1IRIX\s0 6.  With this
3695 option, \s-1GCC\s0 uses features of \s-1DWARF\s0 version 3 when they are useful;
3696 version 3 is upward compatible with version 2, but may still cause
3697 problems for older debuggers.
3698 .IP "\fB\-gvms\fR" 4
3699 .IX Item "-gvms"
3700 Produce debugging information in \s-1VMS\s0 debug format (if that is
3701 supported).  This is the format used by \s-1DEBUG\s0 on \s-1VMS\s0 systems.
3702 .IP "\fB\-g\fR\fIlevel\fR" 4
3703 .IX Item "-glevel"
3704 .PD 0
3705 .IP "\fB\-ggdb\fR\fIlevel\fR" 4
3706 .IX Item "-ggdblevel"
3707 .IP "\fB\-gstabs\fR\fIlevel\fR" 4
3708 .IX Item "-gstabslevel"
3709 .IP "\fB\-gcoff\fR\fIlevel\fR" 4
3710 .IX Item "-gcofflevel"
3711 .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
3712 .IX Item "-gxcofflevel"
3713 .IP "\fB\-gvms\fR\fIlevel\fR" 4
3714 .IX Item "-gvmslevel"
3716 Request debugging information and also use \fIlevel\fR to specify how
3717 much information.  The default level is 2.
3719 Level 0 produces no debug information at all.  Thus, \fB\-g0\fR negates
3720 \&\fB\-g\fR.
3722 Level 1 produces minimal information, enough for making backtraces in
3723 parts of the program that you don't plan to debug.  This includes
3724 descriptions of functions and external variables, but no information
3725 about local variables and no line numbers.
3727 Level 3 includes extra information, such as all the macro definitions
3728 present in the program.  Some debuggers support macro expansion when
3729 you use \fB\-g3\fR.
3731 \&\fB\-gdwarf\-2\fR does not accept a concatenated debug level, because
3732 \&\s-1GCC\s0 used to support an option \fB\-gdwarf\fR that meant to generate
3733 debug information in version 1 of the \s-1DWARF\s0 format (which is very
3734 different from version 2), and it would have been too confusing.  That
3735 debug format is long obsolete, but the option cannot be changed now.
3736 Instead use an additional \fB\-g\fR\fIlevel\fR option to change the
3737 debug level for \s-1DWARF2\s0.
3738 .IP "\fB\-feliminate\-dwarf2\-dups\fR" 4
3739 .IX Item "-feliminate-dwarf2-dups"
3740 Compress \s-1DWARF2\s0 debugging information by eliminating duplicated
3741 information about each symbol.  This option only makes sense when
3742 generating \s-1DWARF2\s0 debugging information with \fB\-gdwarf\-2\fR.
3743 .IP "\fB\-femit\-struct\-debug\-baseonly\fR" 4
3744 .IX Item "-femit-struct-debug-baseonly"
3745 Emit debug information for struct-like types
3746 only when the base name of the compilation source file
3747 matches the base name of file in which the struct was defined.
3749 This option substantially reduces the size of debugging information,
3750 but at significant potential loss in type information to the debugger.
3751 See \fB\-femit\-struct\-debug\-reduced\fR for a less aggressive option.
3752 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
3754 This option works only with \s-1DWARF\s0 2.
3755 .IP "\fB\-femit\-struct\-debug\-reduced\fR" 4
3756 .IX Item "-femit-struct-debug-reduced"
3757 Emit debug information for struct-like types
3758 only when the base name of the compilation source file
3759 matches the base name of file in which the type was defined,
3760 unless the struct is a template or defined in a system header.
3762 This option significantly reduces the size of debugging information,
3763 with some potential loss in type information to the debugger.
3764 See \fB\-femit\-struct\-debug\-baseonly\fR for a more aggressive option.
3765 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
3767 This option works only with \s-1DWARF\s0 2.
3768 .IP "\fB\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR]" 4
3769 .IX Item "-femit-struct-debug-detailed[=spec-list]"
3770 Specify the struct-like types
3771 for which the compiler will generate debug information.
3772 The intent is to reduce duplicate struct debug information
3773 between different object files within the same program.
3775 This option is a detailed version of
3776 \&\fB\-femit\-struct\-debug\-reduced\fR and \fB\-femit\-struct\-debug\-baseonly\fR,
3777 which will serve for most needs.
3779 A specification has the syntax
3780 [\fBdir:\fR|\fBind:\fR][\fBord:\fR|\fBgen:\fR](\fBany\fR|\fBsys\fR|\fBbase\fR|\fBnone\fR)
3782 The optional first word limits the specification to
3783 structs that are used directly (\fBdir:\fR) or used indirectly (\fBind:\fR).
3784 A struct type is used directly when it is the type of a variable, member.
3785 Indirect uses arise through pointers to structs.
3786 That is, when use of an incomplete struct would be legal, the use is indirect.
3787 An example is
3788 \&\fBstruct one direct; struct two * indirect;\fR.
3790 The optional second word limits the specification to
3791 ordinary structs (\fBord:\fR) or generic structs (\fBgen:\fR).
3792 Generic structs are a bit complicated to explain.
3793 For \*(C+, these are non-explicit specializations of template classes,
3794 or non-template classes within the above.
3795 Other programming languages have generics,
3796 but \fB\-femit\-struct\-debug\-detailed\fR does not yet implement them.
3798 The third word specifies the source files for those
3799 structs for which the compiler will emit debug information.
3800 The values \fBnone\fR and \fBany\fR have the normal meaning.
3801 The value \fBbase\fR means that
3802 the base of name of the file in which the type declaration appears
3803 must match the base of the name of the main compilation file.
3804 In practice, this means that
3805 types declared in \fIfoo.c\fR and \fIfoo.h\fR will have debug information,
3806 but types declared in other header will not.
3807 The value \fBsys\fR means those types satisfying \fBbase\fR
3808 or declared in system or compiler headers.
3810 You may need to experiment to determine the best settings for your application.
3812 The default is \fB\-femit\-struct\-debug\-detailed=all\fR.
3814 This option works only with \s-1DWARF\s0 2.
3815 .IP "\fB\-fno\-merge\-debug\-strings\fR" 4
3816 .IX Item "-fno-merge-debug-strings"
3817 Direct the linker to merge together strings which are identical in
3818 different object files.  This is not supported by all assemblers or
3819 linker.  This decreases the size of the debug information in the
3820 output file at the cost of increasing link processing time.  This is
3821 on by default.
3822 .IP "\fB\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
3823 .IX Item "-fdebug-prefix-map=old=new"
3824 When compiling files in directory \fI\fIold\fI\fR, record debugging
3825 information describing them as in \fI\fInew\fI\fR instead.
3826 .IP "\fB\-p\fR" 4
3827 .IX Item "-p"
3828 Generate extra code to write profile information suitable for the
3829 analysis program \fBprof\fR.  You must use this option when compiling
3830 the source files you want data about, and you must also use it when
3831 linking.
3832 .IP "\fB\-pg\fR" 4
3833 .IX Item "-pg"
3834 Generate extra code to write profile information suitable for the
3835 analysis program \fBgprof\fR.  You must use this option when compiling
3836 the source files you want data about, and you must also use it when
3837 linking.
3838 .IP "\fB\-Q\fR" 4
3839 .IX Item "-Q"
3840 Makes the compiler print out each function name as it is compiled, and
3841 print some statistics about each pass when it finishes.
3842 .IP "\fB\-ftime\-report\fR" 4
3843 .IX Item "-ftime-report"
3844 Makes the compiler print some statistics about the time consumed by each
3845 pass when it finishes.
3846 .IP "\fB\-fmem\-report\fR" 4
3847 .IX Item "-fmem-report"
3848 Makes the compiler print some statistics about permanent memory
3849 allocation when it finishes.
3850 .IP "\fB\-fpre\-ipa\-mem\-report\fR" 4
3851 .IX Item "-fpre-ipa-mem-report"
3852 .PD 0
3853 .IP "\fB\-fpost\-ipa\-mem\-report\fR" 4
3854 .IX Item "-fpost-ipa-mem-report"
3856 Makes the compiler print some statistics about permanent memory
3857 allocation before or after interprocedural optimization.
3858 .IP "\fB\-fprofile\-arcs\fR" 4
3859 .IX Item "-fprofile-arcs"
3860 Add code so that program flow \fIarcs\fR are instrumented.  During
3861 execution the program records how many times each branch and call is
3862 executed and how many times it is taken or returns.  When the compiled
3863 program exits it saves this data to a file called
3864 \&\fI\fIauxname\fI.gcda\fR for each source file.  The data may be used for
3865 profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
3866 test coverage analysis (\fB\-ftest\-coverage\fR).  Each object file's
3867 \&\fIauxname\fR is generated from the name of the output file, if
3868 explicitly specified and it is not the final executable, otherwise it is
3869 the basename of the source file.  In both cases any suffix is removed
3870 (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
3871 \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
3872 .IP "\fB\-\-coverage\fR" 4
3873 .IX Item "--coverage"
3874 This option is used to compile and link code instrumented for coverage
3875 analysis.  The option is a synonym for \fB\-fprofile\-arcs\fR
3876 \&\fB\-ftest\-coverage\fR (when compiling) and \fB\-lgcov\fR (when
3877 linking).  See the documentation for those options for more details.
3878 .RS 4
3879 .IP "\(bu" 4
3880 Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
3881 and code generation options.  For test coverage analysis, use the
3882 additional \fB\-ftest\-coverage\fR option.  You do not need to profile
3883 every source file in a program.
3884 .IP "\(bu" 4
3885 Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
3886 (the latter implies the former).
3887 .IP "\(bu" 4
3888 Run the program on a representative workload to generate the arc profile
3889 information.  This may be repeated any number of times.  You can run
3890 concurrent instances of your program, and provided that the file system
3891 supports locking, the data files will be correctly updated.  Also
3892 \&\f(CW\*(C`fork\*(C'\fR calls are detected and correctly handled (double counting
3893 will not happen).
3894 .IP "\(bu" 4
3895 For profile-directed optimizations, compile the source files again with
3896 the same optimization and code generation options plus
3897 \&\fB\-fbranch\-probabilities\fR.
3898 .IP "\(bu" 4
3899 For test coverage analysis, use \fBgcov\fR to produce human readable
3900 information from the \fI.gcno\fR and \fI.gcda\fR files.  Refer to the
3901 \&\fBgcov\fR documentation for further information.
3903 .RS 4
3905 With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
3906 creates a program flow graph, then finds a spanning tree for the graph.
3907 Only arcs that are not on the spanning tree have to be instrumented: the
3908 compiler adds code to count the number of times that these arcs are
3909 executed.  When an arc is the only exit or only entrance to a block, the
3910 instrumentation code can be added to the block; otherwise, a new basic
3911 block must be created to hold the instrumentation code.
3913 .IP "\fB\-ftest\-coverage\fR" 4
3914 .IX Item "-ftest-coverage"
3915 Produce a notes file that the \fBgcov\fR code-coverage utility can use to
3916 show program coverage.  Each source file's note file is called
3917 \&\fI\fIauxname\fI.gcno\fR.  Refer to the \fB\-fprofile\-arcs\fR option
3918 above for a description of \fIauxname\fR and instructions on how to
3919 generate test coverage data.  Coverage data will match the source files
3920 more closely, if you do not optimize.
3921 .IP "\fB\-fdbg\-cnt\-list\fR" 4
3922 .IX Item "-fdbg-cnt-list"
3923 Print the name and the counter upperbound for all debug counters.
3924 .IP "\fB\-fdbg\-cnt=\fR\fIcounter-value-list\fR" 4
3925 .IX Item "-fdbg-cnt=counter-value-list"
3926 Set the internal debug counter upperbound. \fIcounter-value-list\fR 
3927 is a comma-separated list of \fIname\fR:\fIvalue\fR pairs
3928 which sets the upperbound of each debug counter \fIname\fR to \fIvalue\fR.
3929 All debug counters have the initial upperbound of \fI\s-1UINT_MAX\s0\fR,
3930 thus \fIdbg_cnt()\fR returns true always unless the upperbound is set by this option.
3931 e.g. With \-fdbg\-cnt=dce:10,tail_call:0
3932 dbg_cnt(dce) will return true only for first 10 invocations
3933 and dbg_cnt(tail_call) will return false always.
3934 .IP "\fB\-d\fR\fIletters\fR" 4
3935 .IX Item "-dletters"
3936 .PD 0
3937 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
3938 .IX Item "-fdump-rtl-pass"
3940 Says to make debugging dumps during compilation at times specified by
3941 \&\fIletters\fR.    This is used for debugging the RTL-based passes of the
3942 compiler.  The file names for most of the dumps are made by appending a
3943 pass number and a word to the \fIdumpname\fR.  \fIdumpname\fR is generated
3944 from the name of the output file, if explicitly specified and it is not
3945 an executable, otherwise it is the basename of the source file. These
3946 switches may have different effects when \fB\-E\fR is used for
3947 preprocessing.
3949 Most debug dumps can be enabled either passing a letter to the \fB\-d\fR
3950 option, or with a long \fB\-fdump\-rtl\fR switch; here are the possible
3951 letters for use in \fIletters\fR and \fIpass\fR, and their meanings:
3952 .RS 4
3953 .IP "\fB\-dA\fR" 4
3954 .IX Item "-dA"
3955 Annotate the assembler output with miscellaneous debugging information.
3956 .IP "\fB\-dB\fR" 4
3957 .IX Item "-dB"
3958 .PD 0
3959 .IP "\fB\-fdump\-rtl\-bbro\fR" 4
3960 .IX Item "-fdump-rtl-bbro"
3962 Dump after block reordering, to \fI\fIfile\fI.148r.bbro\fR.
3963 .IP "\fB\-dc\fR" 4
3964 .IX Item "-dc"
3965 .PD 0
3966 .IP "\fB\-fdump\-rtl\-combine\fR" 4
3967 .IX Item "-fdump-rtl-combine"
3969 Dump after the \s-1RTL\s0 instruction combination pass, to the file
3970 \&\fI\fIfile\fI.129r.combine\fR.
3971 .IP "\fB\-dC\fR" 4
3972 .IX Item "-dC"
3973 .PD 0
3974 .IP "\fB\-fdump\-rtl\-ce1\fR" 4
3975 .IX Item "-fdump-rtl-ce1"
3976 .IP "\fB\-fdump\-rtl\-ce2\fR" 4
3977 .IX Item "-fdump-rtl-ce2"
3979 \&\fB\-dC\fR and \fB\-fdump\-rtl\-ce1\fR enable dumping after the
3980 first if conversion, to the file \fI\fIfile\fI.117r.ce1\fR.  \fB\-dC\fR
3981 and \fB\-fdump\-rtl\-ce2\fR enable dumping after the second if
3982 conversion, to the file \fI\fIfile\fI.130r.ce2\fR.
3983 .IP "\fB\-dd\fR" 4
3984 .IX Item "-dd"
3985 .PD 0
3986 .IP "\fB\-fdump\-rtl\-btl\fR" 4
3987 .IX Item "-fdump-rtl-btl"
3988 .IP "\fB\-fdump\-rtl\-dbr\fR" 4
3989 .IX Item "-fdump-rtl-dbr"
3991 \&\fB\-dd\fR and \fB\-fdump\-rtl\-btl\fR enable dumping after branch
3992 target load optimization, to \fI\fIfile\fI.31.btl\fR.  \fB\-dd\fR
3993 and \fB\-fdump\-rtl\-dbr\fR enable dumping after delayed branch
3994 scheduling, to \fI\fIfile\fI.36.dbr\fR.
3995 .IP "\fB\-dD\fR" 4
3996 .IX Item "-dD"
3997 Dump all macro definitions, at the end of preprocessing, in addition to
3998 normal output.
3999 .IP "\fB\-dE\fR" 4
4000 .IX Item "-dE"
4001 .PD 0
4002 .IP "\fB\-fdump\-rtl\-ce3\fR" 4
4003 .IX Item "-fdump-rtl-ce3"
4005 Dump after the third if conversion, to \fI\fIfile\fI.146r.ce3\fR.
4006 .IP "\fB\-df\fR" 4
4007 .IX Item "-df"
4008 .PD 0
4009 .IP "\fB\-fdump\-rtl\-cfg\fR" 4
4010 .IX Item "-fdump-rtl-cfg"
4011 .IP "\fB\-fdump\-rtl\-life\fR" 4
4012 .IX Item "-fdump-rtl-life"
4014 \&\fB\-df\fR and \fB\-fdump\-rtl\-cfg\fR enable dumping after control
4015 and data flow analysis, to \fI\fIfile\fI.116r.cfg\fR.  \fB\-df\fR
4016 and \fB\-fdump\-rtl\-cfg\fR enable dumping dump after life analysis,
4017 to \fI\fIfile\fI.128r.life1\fR and \fI\fIfile\fI.135r.life2\fR.
4018 .IP "\fB\-dg\fR" 4
4019 .IX Item "-dg"
4020 .PD 0
4021 .IP "\fB\-fdump\-rtl\-greg\fR" 4
4022 .IX Item "-fdump-rtl-greg"
4024 Dump after global register allocation, to \fI\fIfile\fI.139r.greg\fR.
4025 .IP "\fB\-dG\fR" 4
4026 .IX Item "-dG"
4027 .PD 0
4028 .IP "\fB\-fdump\-rtl\-gcse\fR" 4
4029 .IX Item "-fdump-rtl-gcse"
4030 .IP "\fB\-fdump\-rtl\-bypass\fR" 4
4031 .IX Item "-fdump-rtl-bypass"
4033 \&\fB\-dG\fR and \fB\-fdump\-rtl\-gcse\fR enable dumping after \s-1GCSE\s0, to
4034 \&\fI\fIfile\fI.114r.gcse\fR.  \fB\-dG\fR and \fB\-fdump\-rtl\-bypass\fR
4035 enable dumping after jump bypassing and control flow optimizations, to
4036 \&\fI\fIfile\fI.115r.bypass\fR.
4037 .IP "\fB\-dh\fR" 4
4038 .IX Item "-dh"
4039 .PD 0
4040 .IP "\fB\-fdump\-rtl\-eh\fR" 4
4041 .IX Item "-fdump-rtl-eh"
4043 Dump after finalization of \s-1EH\s0 handling code, to \fI\fIfile\fI.02.eh\fR.
4044 .IP "\fB\-di\fR" 4
4045 .IX Item "-di"
4046 .PD 0
4047 .IP "\fB\-fdump\-rtl\-sibling\fR" 4
4048 .IX Item "-fdump-rtl-sibling"
4050 Dump after sibling call optimizations, to \fI\fIfile\fI.106r.sibling\fR.
4051 .IP "\fB\-dj\fR" 4
4052 .IX Item "-dj"
4053 .PD 0
4054 .IP "\fB\-fdump\-rtl\-jump\fR" 4
4055 .IX Item "-fdump-rtl-jump"
4057 Dump after the first jump optimization, to \fI\fIfile\fI.112r.jump\fR.
4058 .IP "\fB\-dk\fR" 4
4059 .IX Item "-dk"
4060 .PD 0
4061 .IP "\fB\-fdump\-rtl\-stack\fR" 4
4062 .IX Item "-fdump-rtl-stack"
4064 Dump after conversion from \s-1GCC\s0's \*(L"flat register file\*(R" registers to the
4065 x87's stack-like registers, to \fI\fIfile\fI.152r.stack\fR.
4066 .IP "\fB\-dl\fR" 4
4067 .IX Item "-dl"
4068 .PD 0
4069 .IP "\fB\-fdump\-rtl\-lreg\fR" 4
4070 .IX Item "-fdump-rtl-lreg"
4072 Dump after local register allocation, to \fI\fIfile\fI.138r.lreg\fR.
4073 .IP "\fB\-dL\fR" 4
4074 .IX Item "-dL"
4075 .PD 0
4076 .IP "\fB\-fdump\-rtl\-loop2\fR" 4
4077 .IX Item "-fdump-rtl-loop2"
4079 \&\fB\-dL\fR and \fB\-fdump\-rtl\-loop2\fR enable dumping after the
4080 loop optimization pass, to \fI\fIfile\fI.119r.loop2\fR,
4081 \&\fI\fIfile\fI.120r.loop2_init\fR,
4082 \&\fI\fIfile\fI.121r.loop2_invariant\fR, and
4083 \&\fI\fIfile\fI.125r.loop2_done\fR.
4084 .IP "\fB\-dm\fR" 4
4085 .IX Item "-dm"
4086 .PD 0
4087 .IP "\fB\-fdump\-rtl\-sms\fR" 4
4088 .IX Item "-fdump-rtl-sms"
4090 Dump after modulo scheduling, to \fI\fIfile\fI.136r.sms\fR.
4091 .IP "\fB\-dM\fR" 4
4092 .IX Item "-dM"
4093 .PD 0
4094 .IP "\fB\-fdump\-rtl\-mach\fR" 4
4095 .IX Item "-fdump-rtl-mach"
4097 Dump after performing the machine dependent reorganization pass, to
4098 \&\fI\fIfile\fI.155r.mach\fR if that pass exists.
4099 .IP "\fB\-dn\fR" 4
4100 .IX Item "-dn"
4101 .PD 0
4102 .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
4103 .IX Item "-fdump-rtl-rnreg"
4105 Dump after register renumbering, to \fI\fIfile\fI.147r.rnreg\fR.
4106 .IP "\fB\-dN\fR" 4
4107 .IX Item "-dN"
4108 .PD 0
4109 .IP "\fB\-fdump\-rtl\-regmove\fR" 4
4110 .IX Item "-fdump-rtl-regmove"
4112 Dump after the register move pass, to \fI\fIfile\fI.132r.regmove\fR.
4113 .IP "\fB\-do\fR" 4
4114 .IX Item "-do"
4115 .PD 0
4116 .IP "\fB\-fdump\-rtl\-postreload\fR" 4
4117 .IX Item "-fdump-rtl-postreload"
4119 Dump after post-reload optimizations, to \fI\fIfile\fI.24.postreload\fR.
4120 .IP "\fB\-dr\fR" 4
4121 .IX Item "-dr"
4122 .PD 0
4123 .IP "\fB\-fdump\-rtl\-expand\fR" 4
4124 .IX Item "-fdump-rtl-expand"
4126 Dump after \s-1RTL\s0 generation, to \fI\fIfile\fI.104r.expand\fR.
4127 .IP "\fB\-dR\fR" 4
4128 .IX Item "-dR"
4129 .PD 0
4130 .IP "\fB\-fdump\-rtl\-sched2\fR" 4
4131 .IX Item "-fdump-rtl-sched2"
4133 Dump after the second scheduling pass, to \fI\fIfile\fI.149r.sched2\fR.
4134 .IP "\fB\-ds\fR" 4
4135 .IX Item "-ds"
4136 .PD 0
4137 .IP "\fB\-fdump\-rtl\-cse\fR" 4
4138 .IX Item "-fdump-rtl-cse"
4140 Dump after \s-1CSE\s0 (including the jump optimization that sometimes follows
4141 \&\s-1CSE\s0), to \fI\fIfile\fI.113r.cse\fR.
4142 .IP "\fB\-dS\fR" 4
4143 .IX Item "-dS"
4144 .PD 0
4145 .IP "\fB\-fdump\-rtl\-sched1\fR" 4
4146 .IX Item "-fdump-rtl-sched1"
4148 Dump after the first scheduling pass, to \fI\fIfile\fI.136r.sched1\fR.
4149 .IP "\fB\-dt\fR" 4
4150 .IX Item "-dt"
4151 .PD 0
4152 .IP "\fB\-fdump\-rtl\-cse2\fR" 4
4153 .IX Item "-fdump-rtl-cse2"
4155 Dump after the second \s-1CSE\s0 pass (including the jump optimization that
4156 sometimes follows \s-1CSE\s0), to \fI\fIfile\fI.127r.cse2\fR.
4157 .IP "\fB\-dT\fR" 4
4158 .IX Item "-dT"
4159 .PD 0
4160 .IP "\fB\-fdump\-rtl\-tracer\fR" 4
4161 .IX Item "-fdump-rtl-tracer"
4163 Dump after running tracer, to \fI\fIfile\fI.118r.tracer\fR.
4164 .IP "\fB\-dV\fR" 4
4165 .IX Item "-dV"
4166 .PD 0
4167 .IP "\fB\-fdump\-rtl\-vpt\fR" 4
4168 .IX Item "-fdump-rtl-vpt"
4169 .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
4170 .IX Item "-fdump-rtl-vartrack"
4172 \&\fB\-dV\fR and \fB\-fdump\-rtl\-vpt\fR enable dumping after the value
4173 profile transformations, to \fI\fIfile\fI.10.vpt\fR.  \fB\-dV\fR
4174 and \fB\-fdump\-rtl\-vartrack\fR enable dumping after variable tracking,
4175 to \fI\fIfile\fI.154r.vartrack\fR.
4176 .IP "\fB\-dw\fR" 4
4177 .IX Item "-dw"
4178 .PD 0
4179 .IP "\fB\-fdump\-rtl\-flow2\fR" 4
4180 .IX Item "-fdump-rtl-flow2"
4182 Dump after the second flow pass, to \fI\fIfile\fI.142r.flow2\fR.
4183 .IP "\fB\-dz\fR" 4
4184 .IX Item "-dz"
4185 .PD 0
4186 .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
4187 .IX Item "-fdump-rtl-peephole2"
4189 Dump after the peephole pass, to \fI\fIfile\fI.145r.peephole2\fR.
4190 .IP "\fB\-dZ\fR" 4
4191 .IX Item "-dZ"
4192 .PD 0
4193 .IP "\fB\-fdump\-rtl\-web\fR" 4
4194 .IX Item "-fdump-rtl-web"
4196 Dump after live range splitting, to \fI\fIfile\fI.126r.web\fR.
4197 .IP "\fB\-da\fR" 4
4198 .IX Item "-da"
4199 .PD 0
4200 .IP "\fB\-fdump\-rtl\-all\fR" 4
4201 .IX Item "-fdump-rtl-all"
4203 Produce all the dumps listed above.
4204 .IP "\fB\-dH\fR" 4
4205 .IX Item "-dH"
4206 Produce a core dump whenever an error occurs.
4207 .IP "\fB\-dm\fR" 4
4208 .IX Item "-dm"
4209 Print statistics on memory usage, at the end of the run, to
4210 standard error.
4211 .IP "\fB\-dp\fR" 4
4212 .IX Item "-dp"
4213 Annotate the assembler output with a comment indicating which
4214 pattern and alternative was used.  The length of each instruction is
4215 also printed.
4216 .IP "\fB\-dP\fR" 4
4217 .IX Item "-dP"
4218 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
4219 Also turns on \fB\-dp\fR annotation.
4220 .IP "\fB\-dv\fR" 4
4221 .IX Item "-dv"
4222 For each of the other indicated dump files (either with \fB\-d\fR or
4223 \&\fB\-fdump\-rtl\-\fR\fIpass\fR), dump a representation of the control flow
4224 graph suitable for viewing with \s-1VCG\s0 to \fI\fIfile\fI.\fIpass\fI.vcg\fR.
4225 .IP "\fB\-dx\fR" 4
4226 .IX Item "-dx"
4227 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
4228 with \fBr\fR (\fB\-fdump\-rtl\-expand\fR).
4229 .IP "\fB\-dy\fR" 4
4230 .IX Item "-dy"
4231 Dump debugging information during parsing, to standard error.
4233 .RS 4
4235 .IP "\fB\-fdump\-noaddr\fR" 4
4236 .IX Item "-fdump-noaddr"
4237 When doing debugging dumps (see \fB\-d\fR option above), suppress
4238 address output.  This makes it more feasible to use diff on debugging
4239 dumps for compiler invocations with different compiler binaries and/or
4240 different text / bss / data / heap / stack / dso start locations.
4241 .IP "\fB\-fdump\-unnumbered\fR" 4
4242 .IX Item "-fdump-unnumbered"
4243 When doing debugging dumps (see \fB\-d\fR option above), suppress instruction
4244 numbers and address output.  This makes it more feasible to
4245 use diff on debugging dumps for compiler invocations with different
4246 options, in particular with and without \fB\-g\fR.
4247 .IP "\fB\-fdump\-translation\-unit\fR (\*(C+ only)" 4
4248 .IX Item "-fdump-translation-unit ( only)"
4249 .PD 0
4250 .IP "\fB\-fdump\-translation\-unit\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
4251 .IX Item "-fdump-translation-unit-options ( only)"
4253 Dump a representation of the tree structure for the entire translation
4254 unit to a file.  The file name is made by appending \fI.tu\fR to the
4255 source file name.  If the \fB\-\fR\fIoptions\fR form is used, \fIoptions\fR
4256 controls the details of the dump as described for the
4257 \&\fB\-fdump\-tree\fR options.
4258 .IP "\fB\-fdump\-class\-hierarchy\fR (\*(C+ only)" 4
4259 .IX Item "-fdump-class-hierarchy ( only)"
4260 .PD 0
4261 .IP "\fB\-fdump\-class\-hierarchy\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
4262 .IX Item "-fdump-class-hierarchy-options ( only)"
4264 Dump a representation of each class's hierarchy and virtual function
4265 table layout to a file.  The file name is made by appending \fI.class\fR
4266 to the source file name.  If the \fB\-\fR\fIoptions\fR form is used,
4267 \&\fIoptions\fR controls the details of the dump as described for the
4268 \&\fB\-fdump\-tree\fR options.
4269 .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
4270 .IX Item "-fdump-ipa-switch"
4271 Control the dumping at various stages of inter-procedural analysis
4272 language tree to a file.  The file name is generated by appending a switch
4273 specific suffix to the source file name.  The following dumps are possible:
4274 .RS 4
4275 .IP "\fBall\fR" 4
4276 .IX Item "all"
4277 Enables all inter-procedural analysis dumps.
4278 .IP "\fBcgraph\fR" 4
4279 .IX Item "cgraph"
4280 Dumps information about call-graph optimization, unused function removal,
4281 and inlining decisions.
4282 .IP "\fBinline\fR" 4
4283 .IX Item "inline"
4284 Dump after function inlining.
4286 .RS 4
4288 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR" 4
4289 .IX Item "-fdump-tree-switch"
4290 .PD 0
4291 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
4292 .IX Item "-fdump-tree-switch-options"
4294 Control the dumping at various stages of processing the intermediate
4295 language tree to a file.  The file name is generated by appending a switch
4296 specific suffix to the source file name.  If the \fB\-\fR\fIoptions\fR
4297 form is used, \fIoptions\fR is a list of \fB\-\fR separated options that
4298 control the details of the dump.  Not all options are applicable to all
4299 dumps, those which are not meaningful will be ignored.  The following
4300 options are available
4301 .RS 4
4302 .IP "\fBaddress\fR" 4
4303 .IX Item "address"
4304 Print the address of each node.  Usually this is not meaningful as it
4305 changes according to the environment and source file.  Its primary use
4306 is for tying up a dump file with a debug environment.
4307 .IP "\fBslim\fR" 4
4308 .IX Item "slim"
4309 Inhibit dumping of members of a scope or body of a function merely
4310 because that scope has been reached.  Only dump such items when they
4311 are directly reachable by some other path.  When dumping pretty-printed
4312 trees, this option inhibits dumping the bodies of control structures.
4313 .IP "\fBraw\fR" 4
4314 .IX Item "raw"
4315 Print a raw representation of the tree.  By default, trees are
4316 pretty-printed into a C\-like representation.
4317 .IP "\fBdetails\fR" 4
4318 .IX Item "details"
4319 Enable more detailed dumps (not honored by every dump option).
4320 .IP "\fBstats\fR" 4
4321 .IX Item "stats"
4322 Enable dumping various statistics about the pass (not honored by every dump
4323 option).
4324 .IP "\fBblocks\fR" 4
4325 .IX Item "blocks"
4326 Enable showing basic block boundaries (disabled in raw dumps).
4327 .IP "\fBvops\fR" 4
4328 .IX Item "vops"
4329 Enable showing virtual operands for every statement.
4330 .IP "\fBlineno\fR" 4
4331 .IX Item "lineno"
4332 Enable showing line numbers for statements.
4333 .IP "\fBuid\fR" 4
4334 .IX Item "uid"
4335 Enable showing the unique \s-1ID\s0 (\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
4336 .IP "\fBall\fR" 4
4337 .IX Item "all"
4338 Turn on all options, except \fBraw\fR, \fBslim\fR and \fBlineno\fR.
4340 .RS 4
4342 The following tree dumps are possible:
4343 .IP "\fBoriginal\fR" 4
4344 .IX Item "original"
4345 Dump before any tree based optimization, to \fI\fIfile\fI.original\fR.
4346 .IP "\fBoptimized\fR" 4
4347 .IX Item "optimized"
4348 Dump after all tree based optimization, to \fI\fIfile\fI.optimized\fR.
4349 .IP "\fBgimple\fR" 4
4350 .IX Item "gimple"
4351 Dump each function before and after the gimplification pass to a file.  The
4352 file name is made by appending \fI.gimple\fR to the source file name.
4353 .IP "\fBcfg\fR" 4
4354 .IX Item "cfg"
4355 Dump the control flow graph of each function to a file.  The file name is
4356 made by appending \fI.cfg\fR to the source file name.
4357 .IP "\fBvcg\fR" 4
4358 .IX Item "vcg"
4359 Dump the control flow graph of each function to a file in \s-1VCG\s0 format.  The
4360 file name is made by appending \fI.vcg\fR to the source file name.  Note
4361 that if the file contains more than one function, the generated file cannot
4362 be used directly by \s-1VCG\s0.  You will need to cut and paste each function's
4363 graph into its own separate file first.
4364 .IP "\fBch\fR" 4
4365 .IX Item "ch"
4366 Dump each function after copying loop headers.  The file name is made by
4367 appending \fI.ch\fR to the source file name.
4368 .IP "\fBssa\fR" 4
4369 .IX Item "ssa"
4370 Dump \s-1SSA\s0 related information to a file.  The file name is made by appending
4371 \&\fI.ssa\fR to the source file name.
4372 .IP "\fBsalias\fR" 4
4373 .IX Item "salias"
4374 Dump structure aliasing variable information to a file.  This file name
4375 is made by appending \fI.salias\fR to the source file name.
4376 .IP "\fBalias\fR" 4
4377 .IX Item "alias"
4378 Dump aliasing information for each function.  The file name is made by
4379 appending \fI.alias\fR to the source file name.
4380 .IP "\fBccp\fR" 4
4381 .IX Item "ccp"
4382 Dump each function after \s-1CCP\s0.  The file name is made by appending
4383 \&\fI.ccp\fR to the source file name.
4384 .IP "\fBstoreccp\fR" 4
4385 .IX Item "storeccp"
4386 Dump each function after STORE-CCP.  The file name is made by appending
4387 \&\fI.storeccp\fR to the source file name.
4388 .IP "\fBpre\fR" 4
4389 .IX Item "pre"
4390 Dump trees after partial redundancy elimination.  The file name is made
4391 by appending \fI.pre\fR to the source file name.
4392 .IP "\fBfre\fR" 4
4393 .IX Item "fre"
4394 Dump trees after full redundancy elimination.  The file name is made
4395 by appending \fI.fre\fR to the source file name.
4396 .IP "\fBcopyprop\fR" 4
4397 .IX Item "copyprop"
4398 Dump trees after copy propagation.  The file name is made
4399 by appending \fI.copyprop\fR to the source file name.
4400 .IP "\fBstore_copyprop\fR" 4
4401 .IX Item "store_copyprop"
4402 Dump trees after store copy-propagation.  The file name is made
4403 by appending \fI.store_copyprop\fR to the source file name.
4404 .IP "\fBdce\fR" 4
4405 .IX Item "dce"
4406 Dump each function after dead code elimination.  The file name is made by
4407 appending \fI.dce\fR to the source file name.
4408 .IP "\fBmudflap\fR" 4
4409 .IX Item "mudflap"
4410 Dump each function after adding mudflap instrumentation.  The file name is
4411 made by appending \fI.mudflap\fR to the source file name.
4412 .IP "\fBsra\fR" 4
4413 .IX Item "sra"
4414 Dump each function after performing scalar replacement of aggregates.  The
4415 file name is made by appending \fI.sra\fR to the source file name.
4416 .IP "\fBsink\fR" 4
4417 .IX Item "sink"
4418 Dump each function after performing code sinking.  The file name is made
4419 by appending \fI.sink\fR to the source file name.
4420 .IP "\fBdom\fR" 4
4421 .IX Item "dom"
4422 Dump each function after applying dominator tree optimizations.  The file
4423 name is made by appending \fI.dom\fR to the source file name.
4424 .IP "\fBdse\fR" 4
4425 .IX Item "dse"
4426 Dump each function after applying dead store elimination.  The file
4427 name is made by appending \fI.dse\fR to the source file name.
4428 .IP "\fBphiopt\fR" 4
4429 .IX Item "phiopt"
4430 Dump each function after optimizing \s-1PHI\s0 nodes into straightline code.  The file
4431 name is made by appending \fI.phiopt\fR to the source file name.
4432 .IP "\fBforwprop\fR" 4
4433 .IX Item "forwprop"
4434 Dump each function after forward propagating single use variables.  The file
4435 name is made by appending \fI.forwprop\fR to the source file name.
4436 .IP "\fBcopyrename\fR" 4
4437 .IX Item "copyrename"
4438 Dump each function after applying the copy rename optimization.  The file
4439 name is made by appending \fI.copyrename\fR to the source file name.
4440 .IP "\fBnrv\fR" 4
4441 .IX Item "nrv"
4442 Dump each function after applying the named return value optimization on
4443 generic trees.  The file name is made by appending \fI.nrv\fR to the source
4444 file name.
4445 .IP "\fBvect\fR" 4
4446 .IX Item "vect"
4447 Dump each function after applying vectorization of loops.  The file name is
4448 made by appending \fI.vect\fR to the source file name.
4449 .IP "\fBvrp\fR" 4
4450 .IX Item "vrp"
4451 Dump each function after Value Range Propagation (\s-1VRP\s0).  The file name
4452 is made by appending \fI.vrp\fR to the source file name.
4453 .IP "\fBall\fR" 4
4454 .IX Item "all"
4455 Enable all the available tree dumps with the flags provided in this option.
4457 .RS 4
4459 .IP "\fB\-ftree\-vectorizer\-verbose=\fR\fIn\fR" 4
4460 .IX Item "-ftree-vectorizer-verbose=n"
4461 This option controls the amount of debugging output the vectorizer prints.
4462 This information is written to standard error, unless
4463 \&\fB\-fdump\-tree\-all\fR or \fB\-fdump\-tree\-vect\fR is specified,
4464 in which case it is output to the usual dump listing file, \fI.vect\fR.
4465 For \fIn\fR=0 no diagnostic information is reported.
4466 If \fIn\fR=1 the vectorizer reports each loop that got vectorized,
4467 and the total number of loops that got vectorized.
4468 If \fIn\fR=2 the vectorizer also reports non-vectorized loops that passed
4469 the first analysis phase (vect_analyze_loop_form) \- i.e. countable,
4470 inner-most, single-bb, single\-entry/exit loops.  This is the same verbosity
4471 level that \fB\-fdump\-tree\-vect\-stats\fR uses.
4472 Higher verbosity levels mean either more information dumped for each
4473 reported loop, or same amount of information reported for more loops:
4474 If \fIn\fR=3, alignment related information is added to the reports.
4475 If \fIn\fR=4, data-references related information (e.g. memory dependences,
4476 memory access-patterns) is added to the reports.
4477 If \fIn\fR=5, the vectorizer reports also non-vectorized inner-most loops
4478 that did not pass the first analysis phase (i.e., may not be countable, or
4479 may have complicated control-flow).
4480 If \fIn\fR=6, the vectorizer reports also non-vectorized nested loops.
4481 For \fIn\fR=7, all the information the vectorizer generates during its
4482 analysis and transformation is reported.  This is the same verbosity level
4483 that \fB\-fdump\-tree\-vect\-details\fR uses.
4484 .IP "\fB\-frandom\-seed=\fR\fIstring\fR" 4
4485 .IX Item "-frandom-seed=string"
4486 This option provides a seed that \s-1GCC\s0 uses when it would otherwise use
4487 random numbers.  It is used to generate certain symbol names
4488 that have to be different in every compiled file.  It is also used to
4489 place unique stamps in coverage data files and the object files that
4490 produce them.  You can use the \fB\-frandom\-seed\fR option to produce
4491 reproducibly identical object files.
4493 The \fIstring\fR should be different for every file you compile.
4494 .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
4495 .IX Item "-fsched-verbose=n"
4496 On targets that use instruction scheduling, this option controls the
4497 amount of debugging output the scheduler prints.  This information is
4498 written to standard error, unless \fB\-dS\fR or \fB\-dR\fR is
4499 specified, in which case it is output to the usual dump
4500 listing file, \fI.sched\fR or \fI.sched2\fR respectively.  However
4501 for \fIn\fR greater than nine, the output is always printed to standard
4502 error.
4504 For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
4505 same information as \fB\-dRS\fR.  For \fIn\fR greater than one, it
4506 also output basic block probabilities, detailed ready list information
4507 and unit/insn info.  For \fIn\fR greater than two, it includes \s-1RTL\s0
4508 at abort point, control-flow and regions info.  And for \fIn\fR over
4509 four, \fB\-fsched\-verbose\fR also includes dependence info.
4510 .IP "\fB\-save\-temps\fR" 4
4511 .IX Item "-save-temps"
4512 Store the usual \*(L"temporary\*(R" intermediate files permanently; place them
4513 in the current directory and name them based on the source file.  Thus,
4514 compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR would produce files
4515 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
4516 preprocessed \fIfoo.i\fR output file even though the compiler now
4517 normally uses an integrated preprocessor.
4519 When used in combination with the \fB\-x\fR command line option,
4520 \&\fB\-save\-temps\fR is sensible enough to avoid over writing an
4521 input source file with the same extension as an intermediate file.
4522 The corresponding intermediate file may be obtained by renaming the
4523 source file before using \fB\-save\-temps\fR.
4524 .IP "\fB\-time\fR" 4
4525 .IX Item "-time"
4526 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
4527 sequence.  For C source files, this is the compiler proper and assembler
4528 (plus the linker if linking is done).  The output looks like this:
4530 .Vb 2
4531 \&        # cc1 0.12 0.01
4532 \&        # as 0.00 0.01
4535 The first number on each line is the \*(L"user time\*(R", that is time spent
4536 executing the program itself.  The second number is \*(L"system time\*(R",
4537 time spent executing operating system routines on behalf of the program.
4538 Both numbers are in seconds.
4539 .IP "\fB\-fvar\-tracking\fR" 4
4540 .IX Item "-fvar-tracking"
4541 Run variable tracking pass.  It computes where variables are stored at each
4542 position in code.  Better debugging information is then generated
4543 (if the debugging information format supports this information).
4545 It is enabled by default when compiling with optimization (\fB\-Os\fR,
4546 \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
4547 the debug info format supports it.
4548 .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
4549 .IX Item "-print-file-name=library"
4550 Print the full absolute name of the library file \fIlibrary\fR that
4551 would be used when linking\-\-\-and don't do anything else.  With this
4552 option, \s-1GCC\s0 does not compile or link anything; it just prints the
4553 file name.
4554 .IP "\fB\-print\-multi\-directory\fR" 4
4555 .IX Item "-print-multi-directory"
4556 Print the directory name corresponding to the multilib selected by any
4557 other switches present in the command line.  This directory is supposed
4558 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
4559 .IP "\fB\-print\-multi\-lib\fR" 4
4560 .IX Item "-print-multi-lib"
4561 Print the mapping from multilib directory names to compiler switches
4562 that enable them.  The directory name is separated from the switches by
4563 \&\fB;\fR, and each switch starts with an \fB@} instead of the
4564 \&\f(CB@samp\fB{\-\fR, without spaces between multiple switches.  This is supposed to
4565 ease shell-processing.
4566 .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
4567 .IX Item "-print-prog-name=program"
4568 Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
4569 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
4570 .IX Item "-print-libgcc-file-name"
4571 Same as \fB\-print\-file\-name=libgcc.a\fR.
4573 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
4574 but you do want to link with \fIlibgcc.a\fR.  You can do
4576 .Vb 1
4577 \&        gcc \-nostdlib <files>... \`gcc \-print\-libgcc\-file\-name\`
4579 .IP "\fB\-print\-search\-dirs\fR" 4
4580 .IX Item "-print-search-dirs"
4581 Print the name of the configured installation directory and a list of
4582 program and library directories \fBgcc\fR will search\-\-\-and don't do anything else.
4584 This is useful when \fBgcc\fR prints the error message
4585 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
4586 To resolve this you either need to put \fIcpp0\fR and the other compiler
4587 components where \fBgcc\fR expects to find them, or you can set the environment
4588 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
4589 Don't forget the trailing \fB/\fR.
4590 .IP "\fB\-print\-sysroot\-headers\-suffix\fR" 4
4591 .IX Item "-print-sysroot-headers-suffix"
4592 Print the suffix added to the target sysroot when searching for
4593 headers, or give an error if the compiler is not configured with such
4594 a suffix\-\-\-and don't do anything else.
4595 .IP "\fB\-dumpmachine\fR" 4
4596 .IX Item "-dumpmachine"
4597 Print the compiler's target machine (for example,
4598 \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
4599 .IP "\fB\-dumpversion\fR" 4
4600 .IX Item "-dumpversion"
4601 Print the compiler version (for example, \fB3.0\fR)\-\-\-and don't do
4602 anything else.
4603 .IP "\fB\-dumpspecs\fR" 4
4604 .IX Item "-dumpspecs"
4605 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
4606 is used when \s-1GCC\s0 itself is being built.)
4607 .IP "\fB\-feliminate\-unused\-debug\-types\fR" 4
4608 .IX Item "-feliminate-unused-debug-types"
4609 Normally, when producing \s-1DWARF2\s0 output, \s-1GCC\s0 will emit debugging
4610 information for all types declared in a compilation
4611 unit, regardless of whether or not they are actually used
4612 in that compilation unit.  Sometimes this is useful, such as
4613 if, in the debugger, you want to cast a value to a type that is
4614 not actually used in your program (but is declared).  More often,
4615 however, this results in a significant amount of wasted space.
4616 With this option, \s-1GCC\s0 will avoid producing debug symbol output
4617 for types that are nowhere used in the source file being compiled.
4618 .Sh "Options That Control Optimization"
4619 .IX Subsection "Options That Control Optimization"
4620 These options control various sorts of optimizations.
4622 Without any optimization option, the compiler's goal is to reduce the
4623 cost of compilation and to make debugging produce the expected
4624 results.  Statements are independent: if you stop the program with a
4625 breakpoint between statements, you can then assign a new value to any
4626 variable or change the program counter to any other statement in the
4627 function and get exactly the results you would expect from the source
4628 code.
4630 Turning on optimization flags makes the compiler attempt to improve
4631 the performance and/or code size at the expense of compilation time
4632 and possibly the ability to debug the program.
4634 The compiler performs optimization based on the knowledge it has of
4635 the program.  Optimization levels \fB\-O\fR and above, in
4636 particular, enable \fIunit-at-a-time\fR mode, which allows the
4637 compiler to consider information gained from later functions in
4638 the file when compiling a function.  Compiling multiple files at
4639 once to a single output file in \fIunit-at-a-time\fR mode allows
4640 the compiler to use information gained from all of the files when
4641 compiling each of them.
4643 Not all optimizations are controlled directly by a flag.  Only
4644 optimizations that have a flag are listed.
4645 .IP "\fB\-O\fR" 4
4646 .IX Item "-O"
4647 .PD 0
4648 .IP "\fB\-O1\fR" 4
4649 .IX Item "-O1"
4651 Optimize.  Optimizing compilation takes somewhat more time, and a lot
4652 more memory for a large function.
4654 With \fB\-O\fR, the compiler tries to reduce code size and execution
4655 time, without performing any optimizations that take a great deal of
4656 compilation time.
4658 \&\fB\-O\fR turns on the following optimization flags:
4660 \&\fB\-fauto\-inc\-dec 
4661 \&\-fcprop\-registers 
4662 \&\-fdce 
4663 \&\-fdefer\-pop 
4664 \&\-fdelayed\-branch 
4665 \&\-fdse 
4666 \&\-fguess\-branch\-probability 
4667 \&\-fif\-conversion2 
4668 \&\-fif\-conversion 
4669 \&\-finline\-small\-functions 
4670 \&\-fipa\-pure\-const 
4671 \&\-fipa\-reference 
4672 \&\-fmerge\-constants
4673 \&\-fsplit\-wide\-types 
4674 \&\-ftree\-ccp 
4675 \&\-ftree\-ch 
4676 \&\-ftree\-copyrename 
4677 \&\-ftree\-dce 
4678 \&\-ftree\-dominator\-opts 
4679 \&\-ftree\-dse 
4680 \&\-ftree\-fre 
4681 \&\-ftree\-sra 
4682 \&\-ftree\-ter 
4683 \&\-funit\-at\-a\-time\fR
4685 \&\fB\-O\fR also turns on \fB\-fomit\-frame\-pointer\fR on machines
4686 where doing so does not interfere with debugging.
4687 .IP "\fB\-O2\fR" 4
4688 .IX Item "-O2"
4689 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
4690 that do not involve a space-speed tradeoff.  The compiler does not
4691 perform loop unrolling or function inlining when you specify \fB\-O2\fR.
4692 As compared to \fB\-O\fR, this option increases both compilation time
4693 and the performance of the generated code.
4695 \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR.  It
4696 also turns on the following optimization flags:
4697 \&\fB\-fthread\-jumps 
4698 \&\-falign\-functions  \-falign\-jumps 
4699 \&\-falign\-loops  \-falign\-labels 
4700 \&\-fcaller\-saves 
4701 \&\-fcrossjumping 
4702 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks 
4703 \&\-fdelete\-null\-pointer\-checks 
4704 \&\-fexpensive\-optimizations 
4705 \&\-fgcse  \-fgcse\-lm  
4706 \&\-foptimize\-sibling\-calls 
4707 \&\-fpeephole2 
4708 \&\-fregmove 
4709 \&\-freorder\-blocks  \-freorder\-functions 
4710 \&\-frerun\-cse\-after\-loop  
4711 \&\-fsched\-interblock  \-fsched\-spec 
4712 \&\-fschedule\-insns  \-fschedule\-insns2 
4713 \&\-fstrict\-aliasing \-fstrict\-overflow 
4714 \&\-ftree\-pre 
4715 \&\-ftree\-vrp\fR
4717 Please note the warning under \fB\-fgcse\fR about
4718 invoking \fB\-O2\fR on programs that use computed gotos.
4719 .IP "\fB\-O3\fR" 4
4720 .IX Item "-O3"
4721 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified by
4722 \&\fB\-O2\fR and also turns on the \fB\-finline\-functions\fR,
4723 \&\fB\-funswitch\-loops\fR, \fB\-fpredictive\-commoning\fR,
4724 \&\fB\-fgcse\-after\-reload\fR and \fB\-ftree\-vectorize\fR
4725 options.
4726 .IP "\fB\-O0\fR" 4
4727 .IX Item "-O0"
4728 Reduce compilation time and make debugging produce the expected
4729 results.  This is the default.
4730 .IP "\fB\-Os\fR" 4
4731 .IX Item "-Os"
4732 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
4733 do not typically increase code size.  It also performs further
4734 optimizations designed to reduce code size.
4736 \&\fB\-Os\fR disables the following optimization flags:
4737 \&\fB\-falign\-functions  \-falign\-jumps  \-falign\-loops 
4738 \&\-falign\-labels  \-freorder\-blocks  \-freorder\-blocks\-and\-partition 
4739 \&\-fprefetch\-loop\-arrays  \-ftree\-vect\-loop\-version\fR
4741 If you use multiple \fB\-O\fR options, with or without level numbers,
4742 the last such option is the one that is effective.
4744 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
4745 flags.  Most flags have both positive and negative forms; the negative
4746 form of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table
4747 below, only one of the forms is listed\-\-\-the one you typically will
4748 use.  You can figure out the other form by either removing \fBno\-\fR
4749 or adding it.
4751 The following options control specific optimizations.  They are either
4752 activated by \fB\-O\fR options or are related to ones that are.  You
4753 can use the following flags in the rare cases when \*(L"fine-tuning\*(R" of
4754 optimizations to be performed is desired.
4755 .IP "\fB\-fno\-default\-inline\fR" 4
4756 .IX Item "-fno-default-inline"
4757 Do not make member functions inline by default merely because they are
4758 defined inside the class scope (\*(C+ only).  Otherwise, when you specify
4759 \&\fB\-O\fR, member functions defined inside class scope are compiled
4760 inline by default; i.e., you don't need to add \fBinline\fR in front of
4761 the member function name.
4762 .IP "\fB\-fno\-defer\-pop\fR" 4
4763 .IX Item "-fno-defer-pop"
4764 Always pop the arguments to each function call as soon as that function
4765 returns.  For machines which must pop arguments after a function call,
4766 the compiler normally lets arguments accumulate on the stack for several
4767 function calls and pops them all at once.
4769 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4770 .IP "\fB\-fforward\-propagate\fR" 4
4771 .IX Item "-fforward-propagate"
4772 Perform a forward propagation pass on \s-1RTL\s0.  The pass tries to combine two
4773 instructions and checks if the result can be simplified.  If loop unrolling
4774 is active, two passes are performed and the second is scheduled after
4775 loop unrolling.
4777 This option is enabled by default at optimization levels \fB\-O2\fR,
4778 \&\fB\-O3\fR, \fB\-Os\fR.
4779 .IP "\fB\-fomit\-frame\-pointer\fR" 4
4780 .IX Item "-fomit-frame-pointer"
4781 Don't keep the frame pointer in a register for functions that
4782 don't need one.  This avoids the instructions to save, set up and
4783 restore frame pointers; it also makes an extra register available
4784 in many functions.  \fBIt also makes debugging impossible on
4785 some machines.\fR
4787 On some machines, such as the \s-1VAX\s0, this flag has no effect, because
4788 the standard calling sequence automatically handles the frame pointer
4789 and nothing is saved by pretending it doesn't exist.  The
4790 machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
4791 whether a target machine supports this flag.
4793 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4794 .IP "\fB\-foptimize\-sibling\-calls\fR" 4
4795 .IX Item "-foptimize-sibling-calls"
4796 Optimize sibling and tail recursive calls.
4798 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4799 .IP "\fB\-fno\-inline\fR" 4
4800 .IX Item "-fno-inline"
4801 Don't pay attention to the \f(CW\*(C`inline\*(C'\fR keyword.  Normally this option
4802 is used to keep the compiler from expanding any functions inline.
4803 Note that if you are not optimizing, no functions can be expanded inline.
4804 .IP "\fB\-finline\-small\-functions\fR" 4
4805 .IX Item "-finline-small-functions"
4806 Integrate functions into their callers when their body is smaller than expected
4807 function call code (so overall size of program gets smaller).  The compiler
4808 heuristically decides which functions are simple enough to be worth integrating
4809 in this way.
4811 Enabled at level \fB\-O2\fR.
4812 .IP "\fB\-finline\-functions\fR" 4
4813 .IX Item "-finline-functions"
4814 Integrate all simple functions into their callers.  The compiler
4815 heuristically decides which functions are simple enough to be worth
4816 integrating in this way.
4818 If all calls to a given function are integrated, and the function is
4819 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
4820 assembler code in its own right.
4822 Enabled at level \fB\-O3\fR.
4823 .IP "\fB\-finline\-functions\-called\-once\fR" 4
4824 .IX Item "-finline-functions-called-once"
4825 Consider all \f(CW\*(C`static\*(C'\fR functions called once for inlining into their
4826 caller even if they are not marked \f(CW\*(C`inline\*(C'\fR.  If a call to a given
4827 function is integrated, then the function is not output as assembler code
4828 in its own right.
4830 Enabled if \fB\-funit\-at\-a\-time\fR is enabled.
4831 .IP "\fB\-fearly\-inlining\fR" 4
4832 .IX Item "-fearly-inlining"
4833 Inline functions marked by \f(CW\*(C`always_inline\*(C'\fR and functions whose body seems
4834 smaller than the function call overhead early before doing
4835 \&\fB\-fprofile\-generate\fR instrumentation and real inlining pass.  Doing so
4836 makes profiling significantly cheaper and usually inlining faster on programs
4837 having large chains of nested wrapper functions.
4839 Enabled by default.
4840 .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
4841 .IX Item "-finline-limit=n"
4842 By default, \s-1GCC\s0 limits the size of functions that can be inlined.  This flag
4843 allows coarse control of this limit.  \fIn\fR is the size of functions that
4844 can be inlined in number of pseudo instructions.
4846 Inlining is actually controlled by a number of parameters, which may be
4847 specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
4848 The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
4849 as follows:
4850 .RS 4
4851 .IP "\fBmax-inline-insns-single\fR" 4
4852 .IX Item "max-inline-insns-single"
4853 .Vb 1
4854 \& is set to I<n>/2.
4856 .IP "\fBmax-inline-insns-auto\fR" 4
4857 .IX Item "max-inline-insns-auto"
4858 .Vb 1
4859 \& is set to I<n>/2.
4862 .RS 4
4864 See below for a documentation of the individual
4865 parameters controlling inlining and for the defaults of these parameters.
4867 \&\fINote:\fR there may be no value to \fB\-finline\-limit\fR that results
4868 in default behavior.
4870 \&\fINote:\fR pseudo instruction represents, in this particular context, an
4871 abstract measurement of function's size.  In no way does it represent a count
4872 of assembly instructions and as such its exact meaning might change from one
4873 release to an another.
4875 .IP "\fB\-fkeep\-inline\-functions\fR" 4
4876 .IX Item "-fkeep-inline-functions"
4877 In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
4878 into the object file, even if the function has been inlined into all
4879 of its callers.  This switch does not affect functions using the
4880 \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU\s0 C89.  In \*(C+, emit any and all
4881 inline functions into the object file.
4882 .IP "\fB\-fkeep\-static\-consts\fR" 4
4883 .IX Item "-fkeep-static-consts"
4884 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
4885 on, even if the variables aren't referenced.
4887 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
4888 check if the variable was referenced, regardless of whether or not
4889 optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
4890 .IP "\fB\-fmerge\-constants\fR" 4
4891 .IX Item "-fmerge-constants"
4892 Attempt to merge identical constants (string constants and floating point
4893 constants) across compilation units.
4895 This option is the default for optimized compilation if the assembler and
4896 linker support it.  Use \fB\-fno\-merge\-constants\fR to inhibit this
4897 behavior.
4899 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4900 .IP "\fB\-fmerge\-all\-constants\fR" 4
4901 .IX Item "-fmerge-all-constants"
4902 Attempt to merge identical constants and identical variables.
4904 This option implies \fB\-fmerge\-constants\fR.  In addition to
4905 \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
4906 arrays or initialized constant variables with integral or floating point
4907 types.  Languages like C or \*(C+ require each non-automatic variable to
4908 have distinct location, so using this option will result in non-conforming
4909 behavior.
4910 .IP "\fB\-fmodulo\-sched\fR" 4
4911 .IX Item "-fmodulo-sched"
4912 Perform swing modulo scheduling immediately before the first scheduling
4913 pass.  This pass looks at innermost loops and reorders their
4914 instructions by overlapping different iterations.
4915 .IP "\fB\-fmodulo\-sched\-allow\-regmoves\fR" 4
4916 .IX Item "-fmodulo-sched-allow-regmoves"
4917 Perform more aggressive \s-1SMS\s0 based modulo scheduling with register moves
4918 allowed.  By setting this flag certain anti-dependences edges will be
4919 deleted which will trigger the generation of reg-moves based on the
4920 life-range analysis.  This option is effective only with
4921 \&\fB\-fmodulo\-sched\fR enabled.
4922 .IP "\fB\-fno\-branch\-count\-reg\fR" 4
4923 .IX Item "-fno-branch-count-reg"
4924 Do not use \*(L"decrement and branch\*(R" instructions on a count register,
4925 but instead generate a sequence of instructions that decrement a
4926 register, compare it against zero, then branch based upon the result.
4927 This option is only meaningful on architectures that support such
4928 instructions, which include x86, PowerPC, \s-1IA\-64\s0 and S/390.
4930 The default is \fB\-fbranch\-count\-reg\fR.
4931 .IP "\fB\-fno\-function\-cse\fR" 4
4932 .IX Item "-fno-function-cse"
4933 Do not put function addresses in registers; make each instruction that
4934 calls a constant function contain the function's address explicitly.
4936 This option results in less efficient code, but some strange hacks
4937 that alter the assembler output may be confused by the optimizations
4938 performed when this option is not used.
4940 The default is \fB\-ffunction\-cse\fR
4941 .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
4942 .IX Item "-fno-zero-initialized-in-bss"
4943 If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
4944 are initialized to zero into \s-1BSS\s0.  This can save space in the resulting
4945 code.
4947 This option turns off this behavior because some programs explicitly
4948 rely on variables going to the data section.  E.g., so that the
4949 resulting executable can find the beginning of that section and/or make
4950 assumptions based on that.
4952 The default is \fB\-fzero\-initialized\-in\-bss\fR.
4953 .IP "\fB\-fmudflap \-fmudflapth \-fmudflapir\fR" 4
4954 .IX Item "-fmudflap -fmudflapth -fmudflapir"
4955 For front-ends that support it (C and \*(C+), instrument all risky
4956 pointer/array dereferencing operations, some standard library
4957 string/heap functions, and some other associated constructs with
4958 range/validity tests.  Modules so instrumented should be immune to
4959 buffer overflows, invalid heap use, and some other classes of C/\*(C+
4960 programming errors.  The instrumentation relies on a separate runtime
4961 library (\fIlibmudflap\fR), which will be linked into a program if
4962 \&\fB\-fmudflap\fR is given at link time.  Run-time behavior of the
4963 instrumented program is controlled by the \fB\s-1MUDFLAP_OPTIONS\s0\fR
4964 environment variable.  See \f(CW\*(C`env MUDFLAP_OPTIONS=\-help a.out\*(C'\fR
4965 for its options.
4967 Use \fB\-fmudflapth\fR instead of \fB\-fmudflap\fR to compile and to
4968 link if your program is multi-threaded.  Use \fB\-fmudflapir\fR, in
4969 addition to \fB\-fmudflap\fR or \fB\-fmudflapth\fR, if
4970 instrumentation should ignore pointer reads.  This produces less
4971 instrumentation (and therefore faster execution) and still provides
4972 some protection against outright memory corrupting writes, but allows
4973 erroneously read data to propagate within a program.
4974 .IP "\fB\-fthread\-jumps\fR" 4
4975 .IX Item "-fthread-jumps"
4976 Perform optimizations where we check to see if a jump branches to a
4977 location where another comparison subsumed by the first is found.  If
4978 so, the first branch is redirected to either the destination of the
4979 second branch or a point immediately following it, depending on whether
4980 the condition is known to be true or false.
4982 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4983 .IP "\fB\-fsplit\-wide\-types\fR" 4
4984 .IX Item "-fsplit-wide-types"
4985 When using a type that occupies multiple registers, such as \f(CW\*(C`long
4986 long\*(C'\fR on a 32\-bit system, split the registers apart and allocate them
4987 independently.  This normally generates better code for those types,
4988 but may make debugging more difficult.
4990 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR,
4991 \&\fB\-Os\fR.
4992 .IP "\fB\-fcse\-follow\-jumps\fR" 4
4993 .IX Item "-fcse-follow-jumps"
4994 In common subexpression elimination (\s-1CSE\s0), scan through jump instructions
4995 when the target of the jump is not reached by any other path.  For
4996 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
4997 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 will follow the jump when the condition
4998 tested is false.
5000 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5001 .IP "\fB\-fcse\-skip\-blocks\fR" 4
5002 .IX Item "-fcse-skip-blocks"
5003 This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
5004 follow jumps which conditionally skip over blocks.  When \s-1CSE\s0
5005 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
5006 \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
5007 body of the \f(CW\*(C`if\*(C'\fR.
5009 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5010 .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
5011 .IX Item "-frerun-cse-after-loop"
5012 Re-run common subexpression elimination after loop optimizations has been
5013 performed.
5015 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5016 .IP "\fB\-fgcse\fR" 4
5017 .IX Item "-fgcse"
5018 Perform a global common subexpression elimination pass.
5019 This pass also performs global constant and copy propagation.
5021 \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
5022 extension, you may get better runtime performance if you disable
5023 the global common subexpression elimination pass by adding
5024 \&\fB\-fno\-gcse\fR to the command line.
5026 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5027 .IP "\fB\-fgcse\-lm\fR" 4
5028 .IX Item "-fgcse-lm"
5029 When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination will
5030 attempt to move loads which are only killed by stores into themselves.  This
5031 allows a loop containing a load/store sequence to be changed to a load outside
5032 the loop, and a copy/store within the loop.
5034 Enabled by default when gcse is enabled.
5035 .IP "\fB\-fgcse\-sm\fR" 4
5036 .IX Item "-fgcse-sm"
5037 When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
5038 global common subexpression elimination.  This pass will attempt to move
5039 stores out of loops.  When used in conjunction with \fB\-fgcse\-lm\fR,
5040 loops containing a load/store sequence can be changed to a load before
5041 the loop and a store after the loop.
5043 Not enabled at any optimization level.
5044 .IP "\fB\-fgcse\-las\fR" 4
5045 .IX Item "-fgcse-las"
5046 When \fB\-fgcse\-las\fR is enabled, the global common subexpression
5047 elimination pass eliminates redundant loads that come after stores to the
5048 same memory location (both partial and full redundancies).
5050 Not enabled at any optimization level.
5051 .IP "\fB\-fgcse\-after\-reload\fR" 4
5052 .IX Item "-fgcse-after-reload"
5053 When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
5054 pass is performed after reload.  The purpose of this pass is to cleanup
5055 redundant spilling.
5056 .IP "\fB\-funsafe\-loop\-optimizations\fR" 4
5057 .IX Item "-funsafe-loop-optimizations"
5058 If given, the loop optimizer will assume that loop indices do not
5059 overflow, and that the loops with nontrivial exit condition are not
5060 infinite.  This enables a wider range of loop optimizations even if
5061 the loop optimizer itself cannot prove that these assumptions are valid.
5062 Using \fB\-Wunsafe\-loop\-optimizations\fR, the compiler will warn you
5063 if it finds this kind of loop.
5064 .IP "\fB\-fcrossjumping\fR" 4
5065 .IX Item "-fcrossjumping"
5066 Perform cross-jumping transformation.  This transformation unifies equivalent code and save code size.  The
5067 resulting code may or may not perform better than without cross-jumping.
5069 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5070 .IP "\fB\-fauto\-inc\-dec\fR" 4
5071 .IX Item "-fauto-inc-dec"
5072 Combine increments or decrements of addresses with memory accesses.
5073 This pass is always skipped on architectures that do not have
5074 instructions to support this.  Enabled by default at \fB\-O\fR and
5075 higher on architectures that support this.
5076 .IP "\fB\-fdce\fR" 4
5077 .IX Item "-fdce"
5078 Perform dead code elimination (\s-1DCE\s0) on \s-1RTL\s0.
5079 Enabled by default at \fB\-O\fR and higher.
5080 .IP "\fB\-fdse\fR" 4
5081 .IX Item "-fdse"
5082 Perform dead store elimination (\s-1DSE\s0) on \s-1RTL\s0.
5083 Enabled by default at \fB\-O\fR and higher.
5084 .IP "\fB\-fif\-conversion\fR" 4
5085 .IX Item "-fif-conversion"
5086 Attempt to transform conditional jumps into branch-less equivalents.  This
5087 include use of conditional moves, min, max, set flags and abs instructions, and
5088 some tricks doable by standard arithmetics.  The use of conditional execution
5089 on chips where it is available is controlled by \f(CW\*(C`if\-conversion2\*(C'\fR.
5091 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5092 .IP "\fB\-fif\-conversion2\fR" 4
5093 .IX Item "-fif-conversion2"
5094 Use conditional execution (where available) to transform conditional jumps into
5095 branch-less equivalents.
5097 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5098 .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
5099 .IX Item "-fdelete-null-pointer-checks"
5100 Use global dataflow analysis to identify and eliminate useless checks
5101 for null pointers.  The compiler assumes that dereferencing a null
5102 pointer would have halted the program.  If a pointer is checked after
5103 it has already been dereferenced, it cannot be null.
5105 In some environments, this assumption is not true, and programs can
5106 safely dereference null pointers.  Use
5107 \&\fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
5108 for programs which depend on that behavior.
5110 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5111 .IP "\fB\-fexpensive\-optimizations\fR" 4
5112 .IX Item "-fexpensive-optimizations"
5113 Perform a number of minor optimizations that are relatively expensive.
5115 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5116 .IP "\fB\-foptimize\-register\-move\fR" 4
5117 .IX Item "-foptimize-register-move"
5118 .PD 0
5119 .IP "\fB\-fregmove\fR" 4
5120 .IX Item "-fregmove"
5122 Attempt to reassign register numbers in move instructions and as
5123 operands of other simple instructions in order to maximize the amount of
5124 register tying.  This is especially helpful on machines with two-operand
5125 instructions.
5127 Note \fB\-fregmove\fR and \fB\-foptimize\-register\-move\fR are the same
5128 optimization.
5130 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5131 .IP "\fB\-fdelayed\-branch\fR" 4
5132 .IX Item "-fdelayed-branch"
5133 If supported for the target machine, attempt to reorder instructions
5134 to exploit instruction slots available after delayed branch
5135 instructions.
5137 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5138 .IP "\fB\-fschedule\-insns\fR" 4
5139 .IX Item "-fschedule-insns"
5140 If supported for the target machine, attempt to reorder instructions to
5141 eliminate execution stalls due to required data being unavailable.  This
5142 helps machines that have slow floating point or memory load instructions
5143 by allowing other instructions to be issued until the result of the load
5144 or floating point instruction is required.
5146 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5147 .IP "\fB\-fschedule\-insns2\fR" 4
5148 .IX Item "-fschedule-insns2"
5149 Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
5150 instruction scheduling after register allocation has been done.  This is
5151 especially useful on machines with a relatively small number of
5152 registers and where memory load instructions take more than one cycle.
5154 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5155 .IP "\fB\-fno\-sched\-interblock\fR" 4
5156 .IX Item "-fno-sched-interblock"
5157 Don't schedule instructions across basic blocks.  This is normally
5158 enabled by default when scheduling before register allocation, i.e.
5159 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5160 .IP "\fB\-fno\-sched\-spec\fR" 4
5161 .IX Item "-fno-sched-spec"
5162 Don't allow speculative motion of non-load instructions.  This is normally
5163 enabled by default when scheduling before register allocation, i.e.
5164 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5165 .IP "\fB\-fsched\-spec\-load\fR" 4
5166 .IX Item "-fsched-spec-load"
5167 Allow speculative motion of some load instructions.  This only makes
5168 sense when scheduling before register allocation, i.e. with
5169 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5170 .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
5171 .IX Item "-fsched-spec-load-dangerous"
5172 Allow speculative motion of more load instructions.  This only makes
5173 sense when scheduling before register allocation, i.e. with
5174 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5175 .IP "\fB\-fsched\-stalled\-insns\fR" 4
5176 .IX Item "-fsched-stalled-insns"
5177 .PD 0
5178 .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
5179 .IX Item "-fsched-stalled-insns=n"
5181 Define how many insns (if any) can be moved prematurely from the queue
5182 of stalled insns into the ready list, during the second scheduling pass.
5183 \&\fB\-fno\-sched\-stalled\-insns\fR means that no insns will be moved
5184 prematurely, \fB\-fsched\-stalled\-insns=0\fR means there is no limit
5185 on how many queued insns can be moved prematurely.
5186 \&\fB\-fsched\-stalled\-insns\fR without a value is equivalent to
5187 \&\fB\-fsched\-stalled\-insns=1\fR.
5188 .IP "\fB\-fsched\-stalled\-insns\-dep\fR" 4
5189 .IX Item "-fsched-stalled-insns-dep"
5190 .PD 0
5191 .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
5192 .IX Item "-fsched-stalled-insns-dep=n"
5194 Define how many insn groups (cycles) will be examined for a dependency
5195 on a stalled insn that is candidate for premature removal from the queue
5196 of stalled insns.  This has an effect only during the second scheduling pass,
5197 and only if \fB\-fsched\-stalled\-insns\fR is used.
5198 \&\fB\-fno\-sched\-stalled\-insns\-dep\fR is equivalent to
5199 \&\fB\-fsched\-stalled\-insns\-dep=0\fR.
5200 \&\fB\-fsched\-stalled\-insns\-dep\fR without a value is equivalent to
5201 \&\fB\-fsched\-stalled\-insns\-dep=1\fR.
5202 .IP "\fB\-fsched2\-use\-superblocks\fR" 4
5203 .IX Item "-fsched2-use-superblocks"
5204 When scheduling after register allocation, do use superblock scheduling
5205 algorithm.  Superblock scheduling allows motion across basic block boundaries
5206 resulting on faster schedules.  This option is experimental, as not all machine
5207 descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
5208 results from the algorithm.
5210 This only makes sense when scheduling after register allocation, i.e. with
5211 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
5212 .IP "\fB\-fsched2\-use\-traces\fR" 4
5213 .IX Item "-fsched2-use-traces"
5214 Use \fB\-fsched2\-use\-superblocks\fR algorithm when scheduling after register
5215 allocation and additionally perform code duplication in order to increase the
5216 size of superblocks using tracer pass.  See \fB\-ftracer\fR for details on
5217 trace formation.
5219 This mode should produce faster but significantly longer programs.  Also
5220 without \fB\-fbranch\-probabilities\fR the traces constructed may not
5221 match the reality and hurt the performance.  This only makes
5222 sense when scheduling after register allocation, i.e. with
5223 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
5224 .IP "\fB\-fsee\fR" 4
5225 .IX Item "-fsee"
5226 Eliminate redundant sign extension instructions and move the non-redundant
5227 ones to optimal placement using lazy code motion (\s-1LCM\s0).
5228 .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
5229 .IX Item "-freschedule-modulo-scheduled-loops"
5230 The modulo scheduling comes before the traditional scheduling, if a loop
5231 was modulo scheduled we may want to prevent the later scheduling passes
5232 from changing its schedule, we use this option to control that.
5233 .IP "\fB\-fcaller\-saves\fR" 4
5234 .IX Item "-fcaller-saves"
5235 Enable values to be allocated in registers that will be clobbered by
5236 function calls, by emitting extra instructions to save and restore the
5237 registers around such calls.  Such allocation is done only when it
5238 seems to result in better code than would otherwise be produced.
5240 This option is always enabled by default on certain machines, usually
5241 those which have no call-preserved registers to use instead.
5243 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5244 .IP "\fB\-ftree\-reassoc\fR" 4
5245 .IX Item "-ftree-reassoc"
5246 Perform reassociation on trees.  This flag is enabled by default
5247 at \fB\-O\fR and higher.
5248 .IP "\fB\-ftree\-pre\fR" 4
5249 .IX Item "-ftree-pre"
5250 Perform partial redundancy elimination (\s-1PRE\s0) on trees.  This flag is
5251 enabled by default at \fB\-O2\fR and \fB\-O3\fR.
5252 .IP "\fB\-ftree\-fre\fR" 4
5253 .IX Item "-ftree-fre"
5254 Perform full redundancy elimination (\s-1FRE\s0) on trees.  The difference
5255 between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
5256 that are computed on all paths leading to the redundant computation.
5257 This analysis is faster than \s-1PRE\s0, though it exposes fewer redundancies.
5258 This flag is enabled by default at \fB\-O\fR and higher.
5259 .IP "\fB\-ftree\-copy\-prop\fR" 4
5260 .IX Item "-ftree-copy-prop"
5261 Perform copy propagation on trees.  This pass eliminates unnecessary
5262 copy operations.  This flag is enabled by default at \fB\-O\fR and
5263 higher.
5264 .IP "\fB\-ftree\-salias\fR" 4
5265 .IX Item "-ftree-salias"
5266 Perform structural alias analysis on trees.  This flag
5267 is enabled by default at \fB\-O\fR and higher.
5268 .IP "\fB\-fipa\-pure\-const\fR" 4
5269 .IX Item "-fipa-pure-const"
5270 Discover which functions are pure or constant.
5271 Enabled by default at \fB\-O\fR and higher.
5272 .IP "\fB\-fipa\-reference\fR" 4
5273 .IX Item "-fipa-reference"
5274 Discover which static variables do not escape cannot escape the
5275 compilation unit.
5276 Enabled by default at \fB\-O\fR and higher.
5277 .IP "\fB\-fipa\-struct\-reorg\fR" 4
5278 .IX Item "-fipa-struct-reorg"
5279 Perform structure reorganization optimization, that change C\-like structures 
5280 layout in order to better utilize spatial locality.  This transformation is 
5281 affective for programs containing arrays of structures.  Available in two 
5282 compilation modes: profile-based (enabled with \fB\-fprofile\-generate\fR)
5283 or static (which uses built-in heuristics).  Require \fB\-fipa\-type\-escape\fR
5284 to provide the safety of this transformation.  It works only in whole program
5285 mode, so it requires \fB\-fwhole\-program\fR and \fB\-combine\fR to be
5286 enabled.  Structures considered \fBcold\fR by this transformation are not
5287 affected (see \fB\-\-param struct\-reorg\-cold\-struct\-ratio=\fR\fIvalue\fR).
5289 With this flag, the program debug info reflects a new structure layout.
5290 .IP "\fB\-fipa\-pta\fR" 4
5291 .IX Item "-fipa-pta"
5292 Perform interprocedural pointer analysis.
5293 .IP "\fB\-fipa\-cp\fR" 4
5294 .IX Item "-fipa-cp"
5295 Perform interprocedural constant propagation.
5296 This optimization analyzes the program to determine when values passed
5297 to functions are constants and then optimizes accordingly.  
5298 This optimization can substantially increase performance
5299 if the application has constants passed to functions, but
5300 because this optimization can create multiple copies of functions,
5301 it may significantly increase code size.
5302 .IP "\fB\-fipa\-matrix\-reorg\fR" 4
5303 .IX Item "-fipa-matrix-reorg"
5304 Perform matrix flattening and transposing.
5305 Matrix flattening tries to replace a m\-dimensional matrix 
5306 with its equivalent n\-dimensional matrix, where n < m.
5307 This reduces the level of indirection needed for accessing the elements
5308 of the matrix. The second optimization is matrix transposing that
5309 attemps to change the order of the matrix's dimensions in order to 
5310 improve cache locality.
5311 Both optimizations need fwhole-program flag. 
5312 Transposing is enabled only if profiling information is avaliable.
5313 .IP "\fB\-ftree\-sink\fR" 4
5314 .IX Item "-ftree-sink"
5315 Perform forward store motion  on trees.  This flag is
5316 enabled by default at \fB\-O\fR and higher.
5317 .IP "\fB\-ftree\-ccp\fR" 4
5318 .IX Item "-ftree-ccp"
5319 Perform sparse conditional constant propagation (\s-1CCP\s0) on trees.  This
5320 pass only operates on local scalar variables and is enabled by default
5321 at \fB\-O\fR and higher.
5322 .IP "\fB\-ftree\-store\-ccp\fR" 4
5323 .IX Item "-ftree-store-ccp"
5324 Perform sparse conditional constant propagation (\s-1CCP\s0) on trees.  This
5325 pass operates on both local scalar variables and memory stores and
5326 loads (global variables, structures, arrays, etc).  This flag is
5327 enabled by default at \fB\-O2\fR and higher.
5328 .IP "\fB\-ftree\-dce\fR" 4
5329 .IX Item "-ftree-dce"
5330 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
5331 default at \fB\-O\fR and higher.
5332 .IP "\fB\-ftree\-dominator\-opts\fR" 4
5333 .IX Item "-ftree-dominator-opts"
5334 Perform a variety of simple scalar cleanups (constant/copy
5335 propagation, redundancy elimination, range propagation and expression
5336 simplification) based on a dominator tree traversal.  This also
5337 performs jump threading (to reduce jumps to jumps). This flag is
5338 enabled by default at \fB\-O\fR and higher.
5339 .IP "\fB\-ftree\-dse\fR" 4
5340 .IX Item "-ftree-dse"
5341 Perform dead store elimination (\s-1DSE\s0) on trees.  A dead store is a store into
5342 a memory location which will later be overwritten by another store without
5343 any intervening loads.  In this case the earlier store can be deleted.  This
5344 flag is enabled by default at \fB\-O\fR and higher.
5345 .IP "\fB\-ftree\-ch\fR" 4
5346 .IX Item "-ftree-ch"
5347 Perform loop header copying on trees.  This is beneficial since it increases
5348 effectiveness of code motion optimizations.  It also saves one jump.  This flag
5349 is enabled by default at \fB\-O\fR and higher.  It is not enabled
5350 for \fB\-Os\fR, since it usually increases code size.
5351 .IP "\fB\-ftree\-loop\-optimize\fR" 4
5352 .IX Item "-ftree-loop-optimize"
5353 Perform loop optimizations on trees.  This flag is enabled by default
5354 at \fB\-O\fR and higher.
5355 .IP "\fB\-ftree\-loop\-linear\fR" 4
5356 .IX Item "-ftree-loop-linear"
5357 Perform linear loop transformations on tree.  This flag can improve cache
5358 performance and allow further loop optimizations to take place.
5359 .IP "\fB\-fcheck\-data\-deps\fR" 4
5360 .IX Item "-fcheck-data-deps"
5361 Compare the results of several data dependence analyzers.  This option
5362 is used for debugging the data dependence analyzers.
5363 .IP "\fB\-ftree\-loop\-im\fR" 4
5364 .IX Item "-ftree-loop-im"
5365 Perform loop invariant motion on trees.  This pass moves only invariants that
5366 would be hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
5367 nontrivial sequences of insns).  With \fB\-funswitch\-loops\fR it also moves
5368 operands of conditions that are invariant out of the loop, so that we can use
5369 just trivial invariantness analysis in loop unswitching.  The pass also includes
5370 store motion.
5371 .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
5372 .IX Item "-ftree-loop-ivcanon"
5373 Create a canonical counter for number of iterations in the loop for that
5374 determining number of iterations requires complicated analysis.  Later
5375 optimizations then may determine the number easily.  Useful especially
5376 in connection with unrolling.
5377 .IP "\fB\-fivopts\fR" 4
5378 .IX Item "-fivopts"
5379 Perform induction variable optimizations (strength reduction, induction
5380 variable merging and induction variable elimination) on trees.
5381 .IP "\fB\-ftree\-parallelize\-loops=n\fR" 4
5382 .IX Item "-ftree-parallelize-loops=n"
5383 Parallelize loops, i.e., split their iteration space to run in n threads.
5384 This is only possible for loops whose iterations are independent
5385 and can be arbitrarily reordered.  The optimization is only
5386 profitable on multiprocessor machines, for loops that are CPU-intensive,
5387 rather than constrained e.g. by memory bandwidth.  This option
5388 implies \fB\-pthread\fR, and thus is only supported on targets
5389 that have support for \fB\-pthread\fR.
5390 .IP "\fB\-ftree\-sra\fR" 4
5391 .IX Item "-ftree-sra"
5392 Perform scalar replacement of aggregates.  This pass replaces structure
5393 references with scalars to prevent committing structures to memory too
5394 early.  This flag is enabled by default at \fB\-O\fR and higher.
5395 .IP "\fB\-ftree\-copyrename\fR" 4
5396 .IX Item "-ftree-copyrename"
5397 Perform copy renaming on trees.  This pass attempts to rename compiler
5398 temporaries to other variables at copy locations, usually resulting in
5399 variable names which more closely resemble the original variables.  This flag
5400 is enabled by default at \fB\-O\fR and higher.
5401 .IP "\fB\-ftree\-ter\fR" 4
5402 .IX Item "-ftree-ter"
5403 Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase.  Single
5404 use/single def temporaries are replaced at their use location with their
5405 defining expression.  This results in non-GIMPLE code, but gives the expanders
5406 much more complex trees to work on resulting in better \s-1RTL\s0 generation.  This is
5407 enabled by default at \fB\-O\fR and higher.
5408 .IP "\fB\-ftree\-vectorize\fR" 4
5409 .IX Item "-ftree-vectorize"
5410 Perform loop vectorization on trees. This flag is enabled by default at
5411 \&\fB\-O3\fR.
5412 .IP "\fB\-ftree\-vect\-loop\-version\fR" 4
5413 .IX Item "-ftree-vect-loop-version"
5414 Perform loop versioning when doing loop vectorization on trees.  When a loop
5415 appears to be vectorizable except that data alignment or data dependence cannot
5416 be determined at compile time then vectorized and non-vectorized versions of
5417 the loop are generated along with runtime checks for alignment or dependence
5418 to control which version is executed.  This option is enabled by default
5419 except at level \fB\-Os\fR where it is disabled.
5420 .IP "\fB\-fvect\-cost\-model\fR" 4
5421 .IX Item "-fvect-cost-model"
5422 Enable cost model for vectorization.
5423 .IP "\fB\-ftree\-vrp\fR" 4
5424 .IX Item "-ftree-vrp"
5425 Perform Value Range Propagation on trees.  This is similar to the
5426 constant propagation pass, but instead of values, ranges of values are
5427 propagated.  This allows the optimizers to remove unnecessary range
5428 checks like array bound checks and null pointer checks.  This is
5429 enabled by default at \fB\-O2\fR and higher.  Null pointer check
5430 elimination is only done if \fB\-fdelete\-null\-pointer\-checks\fR is
5431 enabled.
5432 .IP "\fB\-ftracer\fR" 4
5433 .IX Item "-ftracer"
5434 Perform tail duplication to enlarge superblock size.  This transformation
5435 simplifies the control flow of the function allowing other optimizations to do
5436 better job.
5437 .IP "\fB\-funroll\-loops\fR" 4
5438 .IX Item "-funroll-loops"
5439 Unroll loops whose number of iterations can be determined at compile
5440 time or upon entry to the loop.  \fB\-funroll\-loops\fR implies
5441 \&\fB\-frerun\-cse\-after\-loop\fR.  This option makes code larger,
5442 and may or may not make it run faster.
5443 .IP "\fB\-funroll\-all\-loops\fR" 4
5444 .IX Item "-funroll-all-loops"
5445 Unroll all loops, even if their number of iterations is uncertain when
5446 the loop is entered.  This usually makes programs run more slowly.
5447 \&\fB\-funroll\-all\-loops\fR implies the same options as
5448 \&\fB\-funroll\-loops\fR,
5449 .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
5450 .IX Item "-fsplit-ivs-in-unroller"
5451 Enables expressing of values of induction variables in later iterations
5452 of the unrolled loop using the value in the first iteration.  This breaks
5453 long dependency chains, thus improving efficiency of the scheduling passes.
5455 Combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
5456 same effect.  However in cases the loop body is more complicated than
5457 a single basic block, this is not reliable.  It also does not work at all
5458 on some of the architectures due to restrictions in the \s-1CSE\s0 pass.
5460 This optimization is enabled by default.
5461 .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
5462 .IX Item "-fvariable-expansion-in-unroller"
5463 With this option, the compiler will create multiple copies of some
5464 local variables when unrolling a loop which can result in superior code.
5465 .IP "\fB\-fpredictive\-commoning\fR" 4
5466 .IX Item "-fpredictive-commoning"
5467 Perform predictive commoning optimization, i.e., reusing computations
5468 (especially memory loads and stores) performed in previous
5469 iterations of loops.
5471 This option is enabled at level \fB\-O3\fR.
5472 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
5473 .IX Item "-fprefetch-loop-arrays"
5474 If supported by the target machine, generate instructions to prefetch
5475 memory to improve the performance of loops that access large arrays.
5477 This option may generate better or worse code; results are highly
5478 dependent on the structure of loops within the source code.
5480 Disabled at level \fB\-Os\fR.
5481 .IP "\fB\-fno\-peephole\fR" 4
5482 .IX Item "-fno-peephole"
5483 .PD 0
5484 .IP "\fB\-fno\-peephole2\fR" 4
5485 .IX Item "-fno-peephole2"
5487 Disable any machine-specific peephole optimizations.  The difference
5488 between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
5489 are implemented in the compiler; some targets use one, some use the
5490 other, a few use both.
5492 \&\fB\-fpeephole\fR is enabled by default.
5493 \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5494 .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
5495 .IX Item "-fno-guess-branch-probability"
5496 Do not guess branch probabilities using heuristics.
5498 \&\s-1GCC\s0 will use heuristics to guess branch probabilities if they are
5499 not provided by profiling feedback (\fB\-fprofile\-arcs\fR).  These
5500 heuristics are based on the control flow graph.  If some branch probabilities
5501 are specified by \fB_\|_builtin_expect\fR, then the heuristics will be
5502 used to guess branch probabilities for the rest of the control flow graph,
5503 taking the \fB_\|_builtin_expect\fR info into account.  The interactions
5504 between the heuristics and \fB_\|_builtin_expect\fR can be complex, and in
5505 some cases, it may be useful to disable the heuristics so that the effects
5506 of \fB_\|_builtin_expect\fR are easier to understand.
5508 The default is \fB\-fguess\-branch\-probability\fR at levels
5509 \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5510 .IP "\fB\-freorder\-blocks\fR" 4
5511 .IX Item "-freorder-blocks"
5512 Reorder basic blocks in the compiled function in order to reduce number of
5513 taken branches and improve code locality.
5515 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
5516 .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
5517 .IX Item "-freorder-blocks-and-partition"
5518 In addition to reordering basic blocks in the compiled function, in order
5519 to reduce number of taken branches, partitions hot and cold basic blocks
5520 into separate sections of the assembly and .o files, to improve
5521 paging and cache locality performance.
5523 This optimization is automatically turned off in the presence of
5524 exception handling, for linkonce sections, for functions with a user-defined
5525 section attribute and on any architecture that does not support named
5526 sections.
5527 .IP "\fB\-freorder\-functions\fR" 4
5528 .IX Item "-freorder-functions"
5529 Reorder functions in the object file in order to
5530 improve code locality.  This is implemented by using special
5531 subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
5532 \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions.  Reordering is done by
5533 the linker so object file format must support named sections and linker must
5534 place them in a reasonable way.
5536 Also profile feedback must be available in to make this option effective.  See
5537 \&\fB\-fprofile\-arcs\fR for details.
5539 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5540 .IP "\fB\-fstrict\-aliasing\fR" 4
5541 .IX Item "-fstrict-aliasing"
5542 Allows the compiler to assume the strictest aliasing rules applicable to
5543 the language being compiled.  For C (and \*(C+), this activates
5544 optimizations based on the type of expressions.  In particular, an
5545 object of one type is assumed never to reside at the same address as an
5546 object of a different type, unless the types are almost the same.  For
5547 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
5548 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
5549 type.
5551 Pay special attention to code like this:
5553 .Vb 4
5554 \&        union a_union {
5555 \&          int i;
5556 \&          double d;
5557 \&        };
5558 \&        
5559 \&        int f() {
5560 \&          a_union t;
5561 \&          t.d = 3.0;
5562 \&          return t.i;
5563 \&        }
5566 The practice of reading from a different union member than the one most
5567 recently written to (called \*(L"type-punning\*(R") is common.  Even with
5568 \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
5569 is accessed through the union type.  So, the code above will work as
5570 expected.    However, this code might not:
5572 .Vb 7
5573 \&        int f() {
5574 \&          a_union t;
5575 \&          int* ip;
5576 \&          t.d = 3.0;
5577 \&          ip = &t.i;
5578 \&          return *ip;
5579 \&        }
5582 Similarly, access by taking the address, casting the resulting pointer
5583 and dereferencing the result has undefined behavior, even if the cast
5584 uses a union type, e.g.:
5586 .Vb 4
5587 \&        int f() {
5588 \&          double d = 3.0;
5589 \&          return ((union a_union *) &d)\->i;
5590 \&        }
5593 The \fB\-fstrict\-aliasing\fR option is enabled at levels
5594 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5595 .IP "\fB\-fstrict\-overflow\fR" 4
5596 .IX Item "-fstrict-overflow"
5597 Allow the compiler to assume strict signed overflow rules, depending
5598 on the language being compiled.  For C (and \*(C+) this means that
5599 overflow when doing arithmetic with signed numbers is undefined, which
5600 means that the compiler may assume that it will not happen.  This
5601 permits various optimizations.  For example, the compiler will assume
5602 that an expression like \f(CW\*(C`i + 10 > i\*(C'\fR will always be true for
5603 signed \f(CW\*(C`i\*(C'\fR.  This assumption is only valid if signed overflow is
5604 undefined, as the expression is false if \f(CW\*(C`i + 10\*(C'\fR overflows when
5605 using twos complement arithmetic.  When this option is in effect any
5606 attempt to determine whether an operation on signed numbers will
5607 overflow must be written carefully to not actually involve overflow.
5609 This option also allows the compiler to assume strict pointer
5610 semantics: given a pointer to an object, if adding an offset to that
5611 pointer does not produce a pointer to the same object, the addition is
5612 undefined.  This permits the compiler to conclude that \f(CW\*(C`p + u >
5613 p\*(C'\fR is always true for a pointer \f(CW\*(C`p\*(C'\fR and unsigned integer
5614 \&\f(CW\*(C`u\*(C'\fR.  This assumption is only valid because pointer wraparound is
5615 undefined, as the expression is false if \f(CW\*(C`p + u\*(C'\fR overflows using
5616 twos complement arithmetic.
5618 See also the \fB\-fwrapv\fR option.  Using \fB\-fwrapv\fR means
5619 that integer signed overflow is fully defined: it wraps.  When
5620 \&\fB\-fwrapv\fR is used, there is no difference between
5621 \&\fB\-fstrict\-overflow\fR and \fB\-fno\-strict\-overflow\fR for
5622 integers.  With \fB\-fwrapv\fR certain types of overflow are
5623 permitted.  For example, if the compiler gets an overflow when doing
5624 arithmetic on constants, the overflowed value can still be used with
5625 \&\fB\-fwrapv\fR, but not otherwise.
5627 The \fB\-fstrict\-overflow\fR option is enabled at levels
5628 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5629 .IP "\fB\-falign\-functions\fR" 4
5630 .IX Item "-falign-functions"
5631 .PD 0
5632 .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
5633 .IX Item "-falign-functions=n"
5635 Align the start of functions to the next power-of-two greater than
5636 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
5637 \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
5638 boundary, but \fB\-falign\-functions=24\fR would align to the next
5639 32\-byte boundary only if this can be done by skipping 23 bytes or less.
5641 \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
5642 equivalent and mean that functions will not be aligned.
5644 Some assemblers only support this flag when \fIn\fR is a power of two;
5645 in that case, it is rounded up.
5647 If \fIn\fR is not specified or is zero, use a machine-dependent default.
5649 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
5650 .IP "\fB\-falign\-labels\fR" 4
5651 .IX Item "-falign-labels"
5652 .PD 0
5653 .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
5654 .IX Item "-falign-labels=n"
5656 Align all branch targets to a power-of-two boundary, skipping up to
5657 \&\fIn\fR bytes like \fB\-falign\-functions\fR.  This option can easily
5658 make code slower, because it must insert dummy operations for when the
5659 branch target is reached in the usual flow of the code.
5661 \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
5662 equivalent and mean that labels will not be aligned.
5664 If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
5665 are greater than this value, then their values are used instead.
5667 If \fIn\fR is not specified or is zero, use a machine-dependent default
5668 which is very likely to be \fB1\fR, meaning no alignment.
5670 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
5671 .IP "\fB\-falign\-loops\fR" 4
5672 .IX Item "-falign-loops"
5673 .PD 0
5674 .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
5675 .IX Item "-falign-loops=n"
5677 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
5678 like \fB\-falign\-functions\fR.  The hope is that the loop will be
5679 executed many times, which will make up for any execution of the dummy
5680 operations.
5682 \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
5683 equivalent and mean that loops will not be aligned.
5685 If \fIn\fR is not specified or is zero, use a machine-dependent default.
5687 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
5688 .IP "\fB\-falign\-jumps\fR" 4
5689 .IX Item "-falign-jumps"
5690 .PD 0
5691 .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
5692 .IX Item "-falign-jumps=n"
5694 Align branch targets to a power-of-two boundary, for branch targets
5695 where the targets can only be reached by jumping, skipping up to \fIn\fR
5696 bytes like \fB\-falign\-functions\fR.  In this case, no dummy operations
5697 need be executed.
5699 \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
5700 equivalent and mean that loops will not be aligned.
5702 If \fIn\fR is not specified or is zero, use a machine-dependent default.
5704 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
5705 .IP "\fB\-funit\-at\-a\-time\fR" 4
5706 .IX Item "-funit-at-a-time"
5707 Parse the whole compilation unit before starting to produce code.
5708 This allows some extra optimizations to take place but consumes
5709 more memory (in general).  There are some compatibility issues
5710 with \fIunit-at-a-time\fR mode:
5711 .RS 4
5712 .IP "\(bu" 4
5713 enabling \fIunit-at-a-time\fR mode may change the order
5714 in which functions, variables, and top-level \f(CW\*(C`asm\*(C'\fR statements
5715 are emitted, and will likely break code relying on some particular
5716 ordering.  The majority of such top-level \f(CW\*(C`asm\*(C'\fR statements,
5717 though, can be replaced by \f(CW\*(C`section\*(C'\fR attributes.  The
5718 \&\fBfno-toplevel-reorder\fR option may be used to keep the ordering
5719 used in the input file, at the cost of some optimizations.
5720 .IP "\(bu" 4
5721 \&\fIunit-at-a-time\fR mode removes unreferenced static variables
5722 and functions.  This may result in undefined references
5723 when an \f(CW\*(C`asm\*(C'\fR statement refers directly to variables or functions
5724 that are otherwise unused.  In that case either the variable/function
5725 shall be listed as an operand of the \f(CW\*(C`asm\*(C'\fR statement operand or,
5726 in the case of top-level \f(CW\*(C`asm\*(C'\fR statements the attribute \f(CW\*(C`used\*(C'\fR
5727 shall be used on the declaration.
5728 .IP "\(bu" 4
5729 Static functions now can use non-standard passing conventions that
5730 may break \f(CW\*(C`asm\*(C'\fR statements calling functions directly.  Again,
5731 attribute \f(CW\*(C`used\*(C'\fR will prevent this behavior.
5733 .RS 4
5735 As a temporary workaround, \fB\-fno\-unit\-at\-a\-time\fR can be used,
5736 but this scheme may not be supported by future releases of \s-1GCC\s0.
5738 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5740 .IP "\fB\-fno\-toplevel\-reorder\fR" 4
5741 .IX Item "-fno-toplevel-reorder"
5742 Do not reorder top-level functions, variables, and \f(CW\*(C`asm\*(C'\fR
5743 statements.  Output them in the same order that they appear in the
5744 input file.  When this option is used, unreferenced static variables
5745 will not be removed.  This option is intended to support existing code
5746 which relies on a particular ordering.  For new code, it is better to
5747 use attributes.
5748 .IP "\fB\-fweb\fR" 4
5749 .IX Item "-fweb"
5750 Constructs webs as commonly used for register allocation purposes and assign
5751 each web individual pseudo register.  This allows the register allocation pass
5752 to operate on pseudos directly, but also strengthens several other optimization
5753 passes, such as \s-1CSE\s0, loop optimizer and trivial dead code remover.  It can,
5754 however, make debugging impossible, since variables will no longer stay in a
5755 \&\*(L"home register\*(R".
5757 Enabled by default with \fB\-funroll\-loops\fR.
5758 .IP "\fB\-fwhole\-program\fR" 4
5759 .IX Item "-fwhole-program"
5760 Assume that the current compilation unit represents whole program being
5761 compiled.  All public functions and variables with the exception of \f(CW\*(C`main\*(C'\fR
5762 and those merged by attribute \f(CW\*(C`externally_visible\*(C'\fR become static functions
5763 and in a affect gets more aggressively optimized by interprocedural optimizers.
5764 While this option is equivalent to proper use of \f(CW\*(C`static\*(C'\fR keyword for
5765 programs consisting of single file, in combination with option
5766 \&\fB\-\-combine\fR this flag can be used to compile most of smaller scale C
5767 programs since the functions and variables become local for the whole combined
5768 compilation unit, not for the single source file itself.
5770 This option is not supported for Fortran programs.
5771 .IP "\fB\-fcprop\-registers\fR" 4
5772 .IX Item "-fcprop-registers"
5773 After register allocation and post-register allocation instruction splitting,
5774 we perform a copy-propagation pass to try to reduce scheduling dependencies
5775 and occasionally eliminate the copy.
5777 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5778 .IP "\fB\-fprofile\-generate\fR" 4
5779 .IX Item "-fprofile-generate"
5780 Enable options usually used for instrumenting application to produce
5781 profile useful for later recompilation with profile feedback based
5782 optimization.  You must use \fB\-fprofile\-generate\fR both when
5783 compiling and when linking your program.
5785 The following options are enabled: \f(CW\*(C`\-fprofile\-arcs\*(C'\fR, \f(CW\*(C`\-fprofile\-values\*(C'\fR, \f(CW\*(C`\-fvpt\*(C'\fR.
5786 .IP "\fB\-fprofile\-use\fR" 4
5787 .IX Item "-fprofile-use"
5788 Enable profile feedback directed optimizations, and optimizations
5789 generally profitable only with profile feedback available.
5791 The following options are enabled: \f(CW\*(C`\-fbranch\-probabilities\*(C'\fR, \f(CW\*(C`\-fvpt\*(C'\fR,
5792 \&\f(CW\*(C`\-funroll\-loops\*(C'\fR, \f(CW\*(C`\-fpeel\-loops\*(C'\fR, \f(CW\*(C`\-ftracer\*(C'\fR
5794 By default, \s-1GCC\s0 emits an error message if the feedback profiles do not
5795 match the source code.  This error can be turned into a warning by using
5796 \&\fB\-Wcoverage\-mismatch\fR.  Note this may result in poorly optimized
5797 code.
5799 The following options control compiler behavior regarding floating
5800 point arithmetic.  These options trade off between speed and
5801 correctness.  All must be specifically enabled.
5802 .IP "\fB\-ffloat\-store\fR" 4
5803 .IX Item "-ffloat-store"
5804 Do not store floating point variables in registers, and inhibit other
5805 options that might change whether a floating point value is taken from a
5806 register or memory.
5808 This option prevents undesirable excess precision on machines such as
5809 the 68000 where the floating registers (of the 68881) keep more
5810 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
5811 x86 architecture.  For most programs, the excess precision does only
5812 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
5813 point.  Use \fB\-ffloat\-store\fR for such programs, after modifying
5814 them to store all pertinent intermediate computations into variables.
5815 .IP "\fB\-ffast\-math\fR" 4
5816 .IX Item "-ffast-math"
5817 Sets \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR,
5818 \&\fB\-ffinite\-math\-only\fR, \fB\-fno\-rounding\-math\fR,
5819 \&\fB\-fno\-signaling\-nans\fR and \fB\-fcx\-limited\-range\fR.
5821 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
5823 This option is not turned on by any \fB\-O\fR option since
5824 it can result in incorrect output for programs which depend on
5825 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
5826 math functions. It may, however, yield faster code for programs
5827 that do not require the guarantees of these specifications.
5828 .IP "\fB\-fno\-math\-errno\fR" 4
5829 .IX Item "-fno-math-errno"
5830 Do not set \s-1ERRNO\s0 after calling math functions that are executed
5831 with a single instruction, e.g., sqrt.  A program that relies on
5832 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
5833 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
5835 This option is not turned on by any \fB\-O\fR option since
5836 it can result in incorrect output for programs which depend on
5837 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
5838 math functions. It may, however, yield faster code for programs
5839 that do not require the guarantees of these specifications.
5841 The default is \fB\-fmath\-errno\fR.
5843 On Darwin systems, the math library never sets \f(CW\*(C`errno\*(C'\fR.  There is
5844 therefore no reason for the compiler to consider the possibility that
5845 it might, and \fB\-fno\-math\-errno\fR is the default.
5846 .IP "\fB\-funsafe\-math\-optimizations\fR" 4
5847 .IX Item "-funsafe-math-optimizations"
5848 Allow optimizations for floating-point arithmetic that (a) assume
5849 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
5850 \&\s-1ANSI\s0 standards.  When used at link-time, it may include libraries
5851 or startup files that change the default \s-1FPU\s0 control word or other
5852 similar optimizations.
5854 This option is not turned on by any \fB\-O\fR option since
5855 it can result in incorrect output for programs which depend on
5856 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
5857 math functions. It may, however, yield faster code for programs
5858 that do not require the guarantees of these specifications.
5859 Enables \fB\-fno\-signed\-zeros\fR, \fB\-fno\-trapping\-math\fR,
5860 \&\fB\-fassociative\-math\fR and \fB\-freciprocal\-math\fR.
5862 The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
5863 .IP "\fB\-fassociative\-math\fR" 4
5864 .IX Item "-fassociative-math"
5865 Allow re-association of operands in series of floating-point operations.
5866 This violates the \s-1ISO\s0 C and \*(C+ language standard by possibly changing
5867 computation result.  \s-1NOTE:\s0 re-ordering may change the sign of zero as
5868 well as ignore NaNs and inhibit or create underflow or overflow (and
5869 thus cannot be used on a code which relies on rounding behavior like
5870 \&\f(CW\*(C`(x + 2**52) \- 2**52)\*(C'\fR.  May also reorder floating-point comparisons
5871 and thus may not be used when ordered comparisons are required.
5872 This option requires that both \fB\-fno\-signed\-zeros\fR and
5873 \&\fB\-fno\-trapping\-math\fR be in effect.  Moreover, it doesn't make
5874 much sense with \fB\-frounding\-math\fR.
5876 The default is \fB\-fno\-associative\-math\fR.
5877 .IP "\fB\-freciprocal\-math\fR" 4
5878 .IX Item "-freciprocal-math"
5879 Allow the reciprocal of a value to be used instead of dividing by
5880 the value if this enables optimizations.  For example \f(CW\*(C`x / y\*(C'\fR
5881 can be replaced with \f(CW\*(C`x * (1/y)\*(C'\fR which is useful if \f(CW\*(C`(1/y)\*(C'\fR
5882 is subject to common subexpression elimination.  Note that this loses
5883 precision and increases the number of flops operating on the value.
5885 The default is \fB\-fno\-reciprocal\-math\fR.
5886 .IP "\fB\-ffinite\-math\-only\fR" 4
5887 .IX Item "-ffinite-math-only"
5888 Allow optimizations for floating-point arithmetic that assume
5889 that arguments and results are not NaNs or +\-Infs.
5891 This option is not turned on by any \fB\-O\fR option since
5892 it can result in incorrect output for programs which depend on
5893 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
5894 math functions. It may, however, yield faster code for programs
5895 that do not require the guarantees of these specifications.
5897 The default is \fB\-fno\-finite\-math\-only\fR.
5898 .IP "\fB\-fno\-signed\-zeros\fR" 4
5899 .IX Item "-fno-signed-zeros"
5900 Allow optimizations for floating point arithmetic that ignore the
5901 signedness of zero.  \s-1IEEE\s0 arithmetic specifies the behavior of
5902 distinct +0.0 and \-0.0 values, which then prohibits simplification
5903 of expressions such as x+0.0 or 0.0*x (even with \fB\-ffinite\-math\-only\fR).
5904 This option implies that the sign of a zero result isn't significant.
5906 The default is \fB\-fsigned\-zeros\fR.
5907 .IP "\fB\-fno\-trapping\-math\fR" 4
5908 .IX Item "-fno-trapping-math"
5909 Compile code assuming that floating-point operations cannot generate
5910 user-visible traps.  These traps include division by zero, overflow,
5911 underflow, inexact result and invalid operation.  This option requires
5912 that \fB\-fno\-signaling\-nans\fR be in effect.  Setting this option may
5913 allow faster code if one relies on \*(L"non-stop\*(R" \s-1IEEE\s0 arithmetic, for example.
5915 This option should never be turned on by any \fB\-O\fR option since
5916 it can result in incorrect output for programs which depend on
5917 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
5918 math functions.
5920 The default is \fB\-ftrapping\-math\fR.
5921 .IP "\fB\-frounding\-math\fR" 4
5922 .IX Item "-frounding-math"
5923 Disable transformations and optimizations that assume default floating
5924 point rounding behavior.  This is round-to-zero for all floating point
5925 to integer conversions, and round-to-nearest for all other arithmetic
5926 truncations.  This option should be specified for programs that change
5927 the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
5928 non-default rounding mode.  This option disables constant folding of
5929 floating point expressions at compile-time (which may be affected by
5930 rounding mode) and arithmetic transformations that are unsafe in the
5931 presence of sign-dependent rounding modes.
5933 The default is \fB\-fno\-rounding\-math\fR.
5935 This option is experimental and does not currently guarantee to
5936 disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
5937 Future versions of \s-1GCC\s0 may provide finer control of this setting
5938 using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma.  This command line option
5939 will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
5940 .IP "\fB\-frtl\-abstract\-sequences\fR" 4
5941 .IX Item "-frtl-abstract-sequences"
5942 It is a size optimization method. This option is to find identical
5943 sequences of code, which can be turned into pseudo-procedures  and
5944 then  replace  all  occurrences with  calls to  the  newly created
5945 subroutine. It is kind of an opposite of \fB\-finline\-functions\fR.
5946 This optimization runs at \s-1RTL\s0 level.
5947 .IP "\fB\-fsignaling\-nans\fR" 4
5948 .IX Item "-fsignaling-nans"
5949 Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
5950 traps during floating-point operations.  Setting this option disables
5951 optimizations that may change the number of exceptions visible with
5952 signaling NaNs.  This option implies \fB\-ftrapping\-math\fR.
5954 This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
5955 be defined.
5957 The default is \fB\-fno\-signaling\-nans\fR.
5959 This option is experimental and does not currently guarantee to
5960 disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
5961 .IP "\fB\-fsingle\-precision\-constant\fR" 4
5962 .IX Item "-fsingle-precision-constant"
5963 Treat floating point constant as single precision constant instead of
5964 implicitly converting it to double precision constant.
5965 .IP "\fB\-fcx\-limited\-range\fR" 4
5966 .IX Item "-fcx-limited-range"
5967 When enabled, this option states that a range reduction step is not
5968 needed when performing complex division.  The default is
5969 \&\fB\-fno\-cx\-limited\-range\fR, but is enabled by \fB\-ffast\-math\fR.
5971 This option controls the default setting of the \s-1ISO\s0 C99
5972 \&\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma.  Nevertheless, the option applies to
5973 all languages.
5975 The following options control optimizations that may improve
5976 performance, but are not enabled by any \fB\-O\fR options.  This
5977 section includes experimental options that may produce broken code.
5978 .IP "\fB\-fbranch\-probabilities\fR" 4
5979 .IX Item "-fbranch-probabilities"
5980 After running a program compiled with \fB\-fprofile\-arcs\fR, you can compile it a second time using
5981 \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
5982 the number of times each branch was taken.  When the program
5983 compiled with \fB\-fprofile\-arcs\fR exits it saves arc execution
5984 counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
5985 file.  The information in this data file is very dependent on the
5986 structure of the generated code, so you must use the same source code
5987 and the same optimization options for both compilations.
5989 With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
5990 \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
5991 These can be used to improve optimization.  Currently, they are only
5992 used in one place: in \fIreorg.c\fR, instead of guessing which path a
5993 branch is mostly to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
5994 exactly determine which path is taken more often.
5995 .IP "\fB\-fprofile\-values\fR" 4
5996 .IX Item "-fprofile-values"
5997 If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
5998 data about values of expressions in the program is gathered.
6000 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
6001 from profiling values of expressions and adds \fB\s-1REG_VALUE_PROFILE\s0\fR
6002 notes to instructions for their later usage in optimizations.
6004 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
6005 .IP "\fB\-fvpt\fR" 4
6006 .IX Item "-fvpt"
6007 If combined with \fB\-fprofile\-arcs\fR, it instructs the compiler to add
6008 a code to gather information about values of expressions.
6010 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
6011 and actually performs the optimizations based on them.
6012 Currently the optimizations include specialization of division operation
6013 using the knowledge about the value of the denominator.
6014 .IP "\fB\-frename\-registers\fR" 4
6015 .IX Item "-frename-registers"
6016 Attempt to avoid false dependencies in scheduled code by making use
6017 of registers left over after register allocation.  This optimization
6018 will most benefit processors with lots of registers.  Depending on the
6019 debug information format adopted by the target, however, it can
6020 make debugging impossible, since variables will no longer stay in
6021 a \*(L"home register\*(R".
6023 Enabled by default with \fB\-funroll\-loops\fR.
6024 .IP "\fB\-ftracer\fR" 4
6025 .IX Item "-ftracer"
6026 Perform tail duplication to enlarge superblock size.  This transformation
6027 simplifies the control flow of the function allowing other optimizations to do
6028 better job.
6030 Enabled with \fB\-fprofile\-use\fR.
6031 .IP "\fB\-funroll\-loops\fR" 4
6032 .IX Item "-funroll-loops"
6033 Unroll loops whose number of iterations can be determined at compile time or
6034 upon entry to the loop.  \fB\-funroll\-loops\fR implies
6035 \&\fB\-frerun\-cse\-after\-loop\fR, \fB\-fweb\fR and \fB\-frename\-registers\fR.
6036 It also turns on complete loop peeling (i.e. complete removal of loops with
6037 small constant number of iterations).  This option makes code larger, and may
6038 or may not make it run faster.
6040 Enabled with \fB\-fprofile\-use\fR.
6041 .IP "\fB\-funroll\-all\-loops\fR" 4
6042 .IX Item "-funroll-all-loops"
6043 Unroll all loops, even if their number of iterations is uncertain when
6044 the loop is entered.  This usually makes programs run more slowly.
6045 \&\fB\-funroll\-all\-loops\fR implies the same options as
6046 \&\fB\-funroll\-loops\fR.
6047 .IP "\fB\-fpeel\-loops\fR" 4
6048 .IX Item "-fpeel-loops"
6049 Peels the loops for that there is enough information that they do not
6050 roll much (from profile feedback).  It also turns on complete loop peeling
6051 (i.e. complete removal of loops with small constant number of iterations).
6053 Enabled with \fB\-fprofile\-use\fR.
6054 .IP "\fB\-fmove\-loop\-invariants\fR" 4
6055 .IX Item "-fmove-loop-invariants"
6056 Enables the loop invariant motion pass in the \s-1RTL\s0 loop optimizer.  Enabled
6057 at level \fB\-O1\fR
6058 .IP "\fB\-funswitch\-loops\fR" 4
6059 .IX Item "-funswitch-loops"
6060 Move branches with loop invariant conditions out of the loop, with duplicates
6061 of the loop on both branches (modified according to result of the condition).
6062 .IP "\fB\-ffunction\-sections\fR" 4
6063 .IX Item "-ffunction-sections"
6064 .PD 0
6065 .IP "\fB\-fdata\-sections\fR" 4
6066 .IX Item "-fdata-sections"
6068 Place each function or data item into its own section in the output
6069 file if the target supports arbitrary sections.  The name of the
6070 function or the name of the data item determines the section's name
6071 in the output file.
6073 Use these options on systems where the linker can perform optimizations
6074 to improve locality of reference in the instruction space.  Most systems
6075 using the \s-1ELF\s0 object format and \s-1SPARC\s0 processors running Solaris 2 have
6076 linkers with such optimizations.  \s-1AIX\s0 may have these optimizations in
6077 the future.
6079 Only use these options when there are significant benefits from doing
6080 so.  When you specify these options, the assembler and linker will
6081 create larger object and executable files and will also be slower.
6082 You will not be able to use \f(CW\*(C`gprof\*(C'\fR on all systems if you
6083 specify this option and you may have problems with debugging if
6084 you specify both this option and \fB\-g\fR.
6085 .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
6086 .IX Item "-fbranch-target-load-optimize"
6087 Perform branch target register load optimization before prologue / epilogue
6088 threading.
6089 The use of target registers can typically be exposed only during reload,
6090 thus hoisting loads out of loops and doing inter-block scheduling needs
6091 a separate optimization pass.
6092 .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
6093 .IX Item "-fbranch-target-load-optimize2"
6094 Perform branch target register load optimization after prologue / epilogue
6095 threading.
6096 .IP "\fB\-fbtr\-bb\-exclusive\fR" 4
6097 .IX Item "-fbtr-bb-exclusive"
6098 When performing branch target register load optimization, don't reuse
6099 branch target registers in within any basic block.
6100 .IP "\fB\-fstack\-protector\fR" 4
6101 .IX Item "-fstack-protector"
6102 Emit extra code to check for buffer overflows, such as stack smashing
6103 attacks.  This is done by adding a guard variable to functions with
6104 vulnerable objects.  This includes functions that call alloca, and
6105 functions with buffers larger than 8 bytes.  The guards are initialized
6106 when a function is entered and then checked when the function exits.
6107 If a guard check fails, an error message is printed and the program exits.
6108 .IP "\fB\-fstack\-protector\-all\fR" 4
6109 .IX Item "-fstack-protector-all"
6110 Like \fB\-fstack\-protector\fR except that all functions are protected.
6111 .IP "\fB\-fsection\-anchors\fR" 4
6112 .IX Item "-fsection-anchors"
6113 Try to reduce the number of symbolic address calculations by using
6114 shared \*(L"anchor\*(R" symbols to address nearby objects.  This transformation
6115 can help to reduce the number of \s-1GOT\s0 entries and \s-1GOT\s0 accesses on some
6116 targets.
6118 For example, the implementation of the following function \f(CW\*(C`foo\*(C'\fR:
6120 .Vb 2
6121 \&        static int a, b, c;
6122 \&        int foo (void) { return a + b + c; }
6125 would usually calculate the addresses of all three variables, but if you
6126 compile it with \fB\-fsection\-anchors\fR, it will access the variables
6127 from a common anchor point instead.  The effect is similar to the
6128 following pseudocode (which isn't valid C):
6130 .Vb 5
6131 \&        int foo (void)
6132 \&        {
6133 \&          register int *xr = &x;
6134 \&          return xr[&a \- &x] + xr[&b \- &x] + xr[&c \- &x];
6135 \&        }
6138 Not all targets support this option.
6139 .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
6140 .IX Item "--param name=value"
6141 In some places, \s-1GCC\s0 uses various constants to control the amount of
6142 optimization that is done.  For example, \s-1GCC\s0 will not inline functions
6143 that contain more that a certain number of instructions.  You can
6144 control some of these constants on the command-line using the
6145 \&\fB\-\-param\fR option.
6147 The names of specific parameters, and the meaning of the values, are
6148 tied to the internals of the compiler, and are subject to change
6149 without notice in future releases.
6151 In each case, the \fIvalue\fR is an integer.  The allowable choices for
6152 \&\fIname\fR are given in the following table:
6153 .RS 4
6154 .IP "\fBsalias-max-implicit-fields\fR" 4
6155 .IX Item "salias-max-implicit-fields"
6156 The maximum number of fields in a variable without direct
6157 structure accesses for which structure aliasing will consider trying
6158 to track each field.  The default is 5
6159 .IP "\fBsalias-max-array-elements\fR" 4
6160 .IX Item "salias-max-array-elements"
6161 The maximum number of elements an array can have and its elements
6162 still be tracked individually by structure aliasing. The default is 4
6163 .IP "\fBsra-max-structure-size\fR" 4
6164 .IX Item "sra-max-structure-size"
6165 The maximum structure size, in bytes, at which the scalar replacement
6166 of aggregates (\s-1SRA\s0) optimization will perform block copies.  The
6167 default value, 0, implies that \s-1GCC\s0 will select the most appropriate
6168 size itself.
6169 .IP "\fBsra-field-structure-ratio\fR" 4
6170 .IX Item "sra-field-structure-ratio"
6171 The threshold ratio (as a percentage) between instantiated fields and
6172 the complete structure size.  We say that if the ratio of the number
6173 of bytes in instantiated fields to the number of bytes in the complete
6174 structure exceeds this parameter, then block copies are not used.  The
6175 default is 75.
6176 .IP "\fBstruct-reorg-cold-struct-ratio\fR" 4
6177 .IX Item "struct-reorg-cold-struct-ratio"
6178 The threshold ratio (as a percentage) between a structure frequency
6179 and the frequency of the hottest structure in the program.  This parameter
6180 is used by struct-reorg optimization enabled by \fB\-fipa\-struct\-reorg\fR.
6181 We say that if the ratio of a structure frequency, calculated by profiling, 
6182 to the hottest structure frequency in the program is less than this 
6183 parameter, then structure reorganization is not applied to this structure.
6184 The default is 10.
6185 .IP "\fBmax-crossjump-edges\fR" 4
6186 .IX Item "max-crossjump-edges"
6187 The maximum number of incoming edges to consider for crossjumping.
6188 The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
6189 the number of edges incoming to each block.  Increasing values mean
6190 more aggressive optimization, making the compile time increase with
6191 probably small improvement in executable size.
6192 .IP "\fBmin-crossjump-insns\fR" 4
6193 .IX Item "min-crossjump-insns"
6194 The minimum number of instructions which must be matched at the end
6195 of two blocks before crossjumping will be performed on them.  This
6196 value is ignored in the case where all instructions in the block being
6197 crossjumped from are matched.  The default value is 5.
6198 .IP "\fBmax-grow-copy-bb-insns\fR" 4
6199 .IX Item "max-grow-copy-bb-insns"
6200 The maximum code size expansion factor when copying basic blocks
6201 instead of jumping.  The expansion is relative to a jump instruction.
6202 The default value is 8.
6203 .IP "\fBmax-goto-duplication-insns\fR" 4
6204 .IX Item "max-goto-duplication-insns"
6205 The maximum number of instructions to duplicate to a block that jumps
6206 to a computed goto.  To avoid O(N^2) behavior in a number of
6207 passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
6208 and unfactors them as late as possible.  Only computed jumps at the
6209 end of a basic blocks with no more than max-goto-duplication-insns are
6210 unfactored.  The default value is 8.
6211 .IP "\fBmax-delay-slot-insn-search\fR" 4
6212 .IX Item "max-delay-slot-insn-search"
6213 The maximum number of instructions to consider when looking for an
6214 instruction to fill a delay slot.  If more than this arbitrary number of
6215 instructions is searched, the time savings from filling the delay slot
6216 will be minimal so stop searching.  Increasing values mean more
6217 aggressive optimization, making the compile time increase with probably
6218 small improvement in executable run time.
6219 .IP "\fBmax-delay-slot-live-search\fR" 4
6220 .IX Item "max-delay-slot-live-search"
6221 When trying to fill delay slots, the maximum number of instructions to
6222 consider when searching for a block with valid live register
6223 information.  Increasing this arbitrarily chosen value means more
6224 aggressive optimization, increasing the compile time.  This parameter
6225 should be removed when the delay slot code is rewritten to maintain the
6226 control-flow graph.
6227 .IP "\fBmax-gcse-memory\fR" 4
6228 .IX Item "max-gcse-memory"
6229 The approximate maximum amount of memory that will be allocated in
6230 order to perform the global common subexpression elimination
6231 optimization.  If more memory than specified is required, the
6232 optimization will not be done.
6233 .IP "\fBmax-gcse-passes\fR" 4
6234 .IX Item "max-gcse-passes"
6235 The maximum number of passes of \s-1GCSE\s0 to run.  The default is 1.
6236 .IP "\fBmax-pending-list-length\fR" 4
6237 .IX Item "max-pending-list-length"
6238 The maximum number of pending dependencies scheduling will allow
6239 before flushing the current state and starting over.  Large functions
6240 with few branches or calls can create excessively large lists which
6241 needlessly consume memory and resources.
6242 .IP "\fBmax-inline-insns-single\fR" 4
6243 .IX Item "max-inline-insns-single"
6244 Several parameters control the tree inliner used in gcc.
6245 This number sets the maximum number of instructions (counted in \s-1GCC\s0's
6246 internal representation) in a single function that the tree inliner
6247 will consider for inlining.  This only affects functions declared
6248 inline and methods implemented in a class declaration (\*(C+).
6249 The default value is 450.
6250 .IP "\fBmax-inline-insns-auto\fR" 4
6251 .IX Item "max-inline-insns-auto"
6252 When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
6253 a lot of functions that would otherwise not be considered for inlining
6254 by the compiler will be investigated.  To those functions, a different
6255 (more restrictive) limit compared to functions declared inline can
6256 be applied.
6257 The default value is 90.
6258 .IP "\fBlarge-function-insns\fR" 4
6259 .IX Item "large-function-insns"
6260 The limit specifying really large functions.  For functions larger than this
6261 limit after inlining inlining is constrained by
6262 \&\fB\-\-param large-function-growth\fR.  This parameter is useful primarily
6263 to avoid extreme compilation time caused by non-linear algorithms used by the
6264 backend.
6265 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
6266 The default value is 2700.
6267 .IP "\fBlarge-function-growth\fR" 4
6268 .IX Item "large-function-growth"
6269 Specifies maximal growth of large function caused by inlining in percents.
6270 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
6271 The default value is 100 which limits large function growth to 2.0 times
6272 the original size.
6273 .IP "\fBlarge-unit-insns\fR" 4
6274 .IX Item "large-unit-insns"
6275 The limit specifying large translation unit.  Growth caused by inlining of
6276 units larger than this limit is limited by \fB\-\-param inline-unit-growth\fR.
6277 For small units this might be too tight (consider unit consisting of function A
6278 that is inline and B that just calls A three time.  If B is small relative to
6279 A, the growth of unit is 300\e% and yet such inlining is very sane.  For very
6280 large units consisting of small inlineable functions however the overall unit
6281 growth limit is needed to avoid exponential explosion of code size.  Thus for
6282 smaller units, the size is increased to \fB\-\-param large-unit-insns\fR
6283 before applying \fB\-\-param inline-unit-growth\fR.  The default is 10000
6284 .IP "\fBinline-unit-growth\fR" 4
6285 .IX Item "inline-unit-growth"
6286 Specifies maximal overall growth of the compilation unit caused by inlining.
6287 This parameter is ignored when \fB\-funit\-at\-a\-time\fR is not used.
6288 The default value is 30 which limits unit growth to 1.3 times the original
6289 size.
6290 .IP "\fBlarge-stack-frame\fR" 4
6291 .IX Item "large-stack-frame"
6292 The limit specifying large stack frames.  While inlining the algorithm is trying
6293 to not grow past this limit too much.  Default value is 256 bytes.
6294 .IP "\fBlarge-stack-frame-growth\fR" 4
6295 .IX Item "large-stack-frame-growth"
6296 Specifies maximal growth of large stack frames caused by inlining in percents.
6297 The default value is 1000 which limits large stack frame growth to 11 times
6298 the original size.
6299 .IP "\fBmax-inline-insns-recursive\fR" 4
6300 .IX Item "max-inline-insns-recursive"
6301 .PD 0
6302 .IP "\fBmax-inline-insns-recursive-auto\fR" 4
6303 .IX Item "max-inline-insns-recursive-auto"
6305 Specifies maximum number of instructions out-of-line copy of self recursive inline
6306 function can grow into by performing recursive inlining.
6308 For functions declared inline \fB\-\-param max-inline-insns-recursive\fR is
6309 taken into account.  For function not declared inline, recursive inlining
6310 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
6311 enabled and \fB\-\-param max-inline-insns-recursive-auto\fR is used.  The
6312 default value is 450.
6313 .IP "\fBmax-inline-recursive-depth\fR" 4
6314 .IX Item "max-inline-recursive-depth"
6315 .PD 0
6316 .IP "\fBmax-inline-recursive-depth-auto\fR" 4
6317 .IX Item "max-inline-recursive-depth-auto"
6319 Specifies maximum recursion depth used by the recursive inlining.
6321 For functions declared inline \fB\-\-param max-inline-recursive-depth\fR is
6322 taken into account.  For function not declared inline, recursive inlining
6323 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
6324 enabled and \fB\-\-param max-inline-recursive-depth-auto\fR is used.  The
6325 default value is 8.
6326 .IP "\fBmin-inline-recursive-probability\fR" 4
6327 .IX Item "min-inline-recursive-probability"
6328 Recursive inlining is profitable only for function having deep recursion
6329 in average and can hurt for function having little recursion depth by
6330 increasing the prologue size or complexity of function body to other
6331 optimizers.
6333 When profile feedback is available (see \fB\-fprofile\-generate\fR) the actual
6334 recursion depth can be guessed from probability that function will recurse via
6335 given call expression.  This parameter limits inlining only to call expression
6336 whose probability exceeds given threshold (in percents).  The default value is
6338 .IP "\fBinline-call-cost\fR" 4
6339 .IX Item "inline-call-cost"
6340 Specify cost of call instruction relative to simple arithmetics operations
6341 (having cost of 1).  Increasing this cost disqualifies inlining of non-leaf
6342 functions and at the same time increases size of leaf function that is believed to
6343 reduce function size by being inlined.  In effect it increases amount of
6344 inlining for code having large abstraction penalty (many functions that just
6345 pass the arguments to other functions) and decrease inlining for code with low
6346 abstraction penalty.  The default value is 12.
6347 .IP "\fBmin-vect-loop-bound\fR" 4
6348 .IX Item "min-vect-loop-bound"
6349 The minimum number of iterations under which a loop will not get vectorized
6350 when \fB\-ftree\-vectorize\fR is used.  The number of iterations after
6351 vectorization needs to be greater than the value specified by this option
6352 to allow vectorization.  The default value is 0.
6353 .IP "\fBmax-unrolled-insns\fR" 4
6354 .IX Item "max-unrolled-insns"
6355 The maximum number of instructions that a loop should have if that loop
6356 is unrolled, and if the loop is unrolled, it determines how many times
6357 the loop code is unrolled.
6358 .IP "\fBmax-average-unrolled-insns\fR" 4
6359 .IX Item "max-average-unrolled-insns"
6360 The maximum number of instructions biased by probabilities of their execution
6361 that a loop should have if that loop is unrolled, and if the loop is unrolled,
6362 it determines how many times the loop code is unrolled.
6363 .IP "\fBmax-unroll-times\fR" 4
6364 .IX Item "max-unroll-times"
6365 The maximum number of unrollings of a single loop.
6366 .IP "\fBmax-peeled-insns\fR" 4
6367 .IX Item "max-peeled-insns"
6368 The maximum number of instructions that a loop should have if that loop
6369 is peeled, and if the loop is peeled, it determines how many times
6370 the loop code is peeled.
6371 .IP "\fBmax-peel-times\fR" 4
6372 .IX Item "max-peel-times"
6373 The maximum number of peelings of a single loop.
6374 .IP "\fBmax-completely-peeled-insns\fR" 4
6375 .IX Item "max-completely-peeled-insns"
6376 The maximum number of insns of a completely peeled loop.
6377 .IP "\fBmax-completely-peel-times\fR" 4
6378 .IX Item "max-completely-peel-times"
6379 The maximum number of iterations of a loop to be suitable for complete peeling.
6380 .IP "\fBmax-unswitch-insns\fR" 4
6381 .IX Item "max-unswitch-insns"
6382 The maximum number of insns of an unswitched loop.
6383 .IP "\fBmax-unswitch-level\fR" 4
6384 .IX Item "max-unswitch-level"
6385 The maximum number of branches unswitched in a single loop.
6386 .IP "\fBlim-expensive\fR" 4
6387 .IX Item "lim-expensive"
6388 The minimum cost of an expensive expression in the loop invariant motion.
6389 .IP "\fBiv-consider-all-candidates-bound\fR" 4
6390 .IX Item "iv-consider-all-candidates-bound"
6391 Bound on number of candidates for induction variables below that
6392 all candidates are considered for each use in induction variable
6393 optimizations.  Only the most relevant candidates are considered
6394 if there are more candidates, to avoid quadratic time complexity.
6395 .IP "\fBiv-max-considered-uses\fR" 4
6396 .IX Item "iv-max-considered-uses"
6397 The induction variable optimizations give up on loops that contain more
6398 induction variable uses.
6399 .IP "\fBiv-always-prune-cand-set-bound\fR" 4
6400 .IX Item "iv-always-prune-cand-set-bound"
6401 If number of candidates in the set is smaller than this value,
6402 we always try to remove unnecessary ivs from the set during its
6403 optimization when a new iv is added to the set.
6404 .IP "\fBscev-max-expr-size\fR" 4
6405 .IX Item "scev-max-expr-size"
6406 Bound on size of expressions used in the scalar evolutions analyzer.
6407 Large expressions slow the analyzer.
6408 .IP "\fBomega-max-vars\fR" 4
6409 .IX Item "omega-max-vars"
6410 The maximum number of variables in an Omega constraint system.
6411 The default value is 128.
6412 .IP "\fBomega-max-geqs\fR" 4
6413 .IX Item "omega-max-geqs"
6414 The maximum number of inequalities in an Omega constraint system.
6415 The default value is 256.
6416 .IP "\fBomega-max-eqs\fR" 4
6417 .IX Item "omega-max-eqs"
6418 The maximum number of equalities in an Omega constraint system.
6419 The default value is 128.
6420 .IP "\fBomega-max-wild-cards\fR" 4
6421 .IX Item "omega-max-wild-cards"
6422 The maximum number of wildcard variables that the Omega solver will
6423 be able to insert.  The default value is 18.
6424 .IP "\fBomega-hash-table-size\fR" 4
6425 .IX Item "omega-hash-table-size"
6426 The size of the hash table in the Omega solver.  The default value is
6427 550.
6428 .IP "\fBomega-max-keys\fR" 4
6429 .IX Item "omega-max-keys"
6430 The maximal number of keys used by the Omega solver.  The default
6431 value is 500.
6432 .IP "\fBomega-eliminate-redundant-constraints\fR" 4
6433 .IX Item "omega-eliminate-redundant-constraints"
6434 When set to 1, use expensive methods to eliminate all redundant
6435 constraints.  The default value is 0.
6436 .IP "\fBvect-max-version-for-alignment-checks\fR" 4
6437 .IX Item "vect-max-version-for-alignment-checks"
6438 The maximum number of runtime checks that can be performed when
6439 doing loop versioning for alignment in the vectorizer.  See option
6440 ftree-vect-loop-version for more information.
6441 .IP "\fBvect-max-version-for-alias-checks\fR" 4
6442 .IX Item "vect-max-version-for-alias-checks"
6443 The maximum number of runtime checks that can be performed when
6444 doing loop versioning for alias in the vectorizer.  See option
6445 ftree-vect-loop-version for more information.
6446 .IP "\fBmax-iterations-to-track\fR" 4
6447 .IX Item "max-iterations-to-track"
6448 The maximum number of iterations of a loop the brute force algorithm
6449 for analysis of # of iterations of the loop tries to evaluate.
6450 .IP "\fBhot-bb-count-fraction\fR" 4
6451 .IX Item "hot-bb-count-fraction"
6452 Select fraction of the maximal count of repetitions of basic block in program
6453 given basic block needs to have to be considered hot.
6454 .IP "\fBhot-bb-frequency-fraction\fR" 4
6455 .IX Item "hot-bb-frequency-fraction"
6456 Select fraction of the maximal frequency of executions of basic block in
6457 function given basic block needs to have to be considered hot
6458 .IP "\fBmax-predicted-iterations\fR" 4
6459 .IX Item "max-predicted-iterations"
6460 The maximum number of loop iterations we predict statically.  This is useful
6461 in cases where function contain single loop with known bound and other loop
6462 with unknown.  We predict the known number of iterations correctly, while
6463 the unknown number of iterations average to roughly 10.  This means that the
6464 loop without bounds would appear artificially cold relative to the other one.
6465 .IP "\fBalign-threshold\fR" 4
6466 .IX Item "align-threshold"
6467 Select fraction of the maximal frequency of executions of basic block in
6468 function given basic block will get aligned.
6469 .IP "\fBalign-loop-iterations\fR" 4
6470 .IX Item "align-loop-iterations"
6471 A loop expected to iterate at lest the selected number of iterations will get
6472 aligned.
6473 .IP "\fBtracer-dynamic-coverage\fR" 4
6474 .IX Item "tracer-dynamic-coverage"
6475 .PD 0
6476 .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
6477 .IX Item "tracer-dynamic-coverage-feedback"
6479 This value is used to limit superblock formation once the given percentage of
6480 executed instructions is covered.  This limits unnecessary code size
6481 expansion.
6483 The \fBtracer-dynamic-coverage-feedback\fR is used only when profile
6484 feedback is available.  The real profiles (as opposed to statically estimated
6485 ones) are much less balanced allowing the threshold to be larger value.
6486 .IP "\fBtracer-max-code-growth\fR" 4
6487 .IX Item "tracer-max-code-growth"
6488 Stop tail duplication once code growth has reached given percentage.  This is
6489 rather hokey argument, as most of the duplicates will be eliminated later in
6490 cross jumping, so it may be set to much higher values than is the desired code
6491 growth.
6492 .IP "\fBtracer-min-branch-ratio\fR" 4
6493 .IX Item "tracer-min-branch-ratio"
6494 Stop reverse growth when the reverse probability of best edge is less than this
6495 threshold (in percent).
6496 .IP "\fBtracer-min-branch-ratio\fR" 4
6497 .IX Item "tracer-min-branch-ratio"
6498 .PD 0
6499 .IP "\fBtracer-min-branch-ratio-feedback\fR" 4
6500 .IX Item "tracer-min-branch-ratio-feedback"
6502 Stop forward growth if the best edge do have probability lower than this
6503 threshold.
6505 Similarly to \fBtracer-dynamic-coverage\fR two values are present, one for
6506 compilation for profile feedback and one for compilation without.  The value
6507 for compilation with profile feedback needs to be more conservative (higher) in
6508 order to make tracer effective.
6509 .IP "\fBmax-cse-path-length\fR" 4
6510 .IX Item "max-cse-path-length"
6511 Maximum number of basic blocks on path that cse considers.  The default is 10.
6512 .IP "\fBmax-cse-insns\fR" 4
6513 .IX Item "max-cse-insns"
6514 The maximum instructions \s-1CSE\s0 process before flushing. The default is 1000.
6515 .IP "\fBmax-aliased-vops\fR" 4
6516 .IX Item "max-aliased-vops"
6517 Maximum number of virtual operands per function allowed to represent
6518 aliases before triggering the alias partitioning heuristic.  Alias
6519 partitioning reduces compile times and memory consumption needed for
6520 aliasing at the expense of precision loss in alias information.  The
6521 default value for this parameter is 100 for \-O1, 500 for \-O2 and 1000
6522 for \-O3.
6524 Notice that if a function contains more memory statements than the
6525 value of this parameter, it is not really possible to achieve this
6526 reduction.  In this case, the compiler will use the number of memory
6527 statements as the value for \fBmax-aliased-vops\fR.
6528 .IP "\fBavg-aliased-vops\fR" 4
6529 .IX Item "avg-aliased-vops"
6530 Average number of virtual operands per statement allowed to represent
6531 aliases before triggering the alias partitioning heuristic.  This
6532 works in conjunction with \fBmax-aliased-vops\fR.  If a function
6533 contains more than \fBmax-aliased-vops\fR virtual operators, then
6534 memory symbols will be grouped into memory partitions until either the
6535 total number of virtual operators is below \fBmax-aliased-vops\fR
6536 or the average number of virtual operators per memory statement is
6537 below \fBavg-aliased-vops\fR.  The default value for this parameter
6538 is 1 for \-O1 and \-O2, and 3 for \-O3.
6539 .IP "\fBggc-min-expand\fR" 4
6540 .IX Item "ggc-min-expand"
6541 \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation.  This
6542 parameter specifies the minimum percentage by which the garbage
6543 collector's heap should be allowed to expand between collections.
6544 Tuning this may improve compilation speed; it has no effect on code
6545 generation.
6547 The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
6548 \&\s-1RAM\s0 >= 1GB.  If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\s0\*(R" is
6549 the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR.  If
6550 \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
6551 bound of 30% is used.  Setting this parameter and
6552 \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
6553 every opportunity.  This is extremely slow, but can be useful for
6554 debugging.
6555 .IP "\fBggc-min-heapsize\fR" 4
6556 .IX Item "ggc-min-heapsize"
6557 Minimum size of the garbage collector's heap before it begins bothering
6558 to collect garbage.  The first collection occurs after the heap expands
6559 by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR.  Again,
6560 tuning this may improve compilation speed, and has no effect on code
6561 generation.
6563 The default is the smaller of \s-1RAM/8\s0, \s-1RLIMIT_RSS\s0, or a limit which
6564 tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
6565 with a lower bound of 4096 (four megabytes) and an upper bound of
6566 131072 (128 megabytes).  If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
6567 particular platform, the lower bound is used.  Setting this parameter
6568 very large effectively disables garbage collection.  Setting this
6569 parameter and \fBggc-min-expand\fR to zero causes a full collection
6570 to occur at every opportunity.
6571 .IP "\fBmax-reload-search-insns\fR" 4
6572 .IX Item "max-reload-search-insns"
6573 The maximum number of instruction reload should look backward for equivalent
6574 register.  Increasing values mean more aggressive optimization, making the
6575 compile time increase with probably slightly better performance.  The default
6576 value is 100.
6577 .IP "\fBmax-cselib-memory-locations\fR" 4
6578 .IX Item "max-cselib-memory-locations"
6579 The maximum number of memory locations cselib should take into account.
6580 Increasing values mean more aggressive optimization, making the compile time
6581 increase with probably slightly better performance.  The default value is 500.
6582 .IP "\fBmax-flow-memory-locations\fR" 4
6583 .IX Item "max-flow-memory-locations"
6584 Similar as \fBmax-cselib-memory-locations\fR but for dataflow liveness.
6585 The default value is 100.
6586 .IP "\fBreorder-blocks-duplicate\fR" 4
6587 .IX Item "reorder-blocks-duplicate"
6588 .PD 0
6589 .IP "\fBreorder-blocks-duplicate-feedback\fR" 4
6590 .IX Item "reorder-blocks-duplicate-feedback"
6592 Used by basic block reordering pass to decide whether to use unconditional
6593 branch or duplicate the code on its destination.  Code is duplicated when its
6594 estimated size is smaller than this value multiplied by the estimated size of
6595 unconditional jump in the hot spots of the program.
6597 The \fBreorder-block-duplicate-feedback\fR is used only when profile
6598 feedback is available and may be set to higher values than
6599 \&\fBreorder-block-duplicate\fR since information about the hot spots is more
6600 accurate.
6601 .IP "\fBmax-sched-ready-insns\fR" 4
6602 .IX Item "max-sched-ready-insns"
6603 The maximum number of instructions ready to be issued the scheduler should
6604 consider at any given time during the first scheduling pass.  Increasing
6605 values mean more thorough searches, making the compilation time increase
6606 with probably little benefit.  The default value is 100.
6607 .IP "\fBmax-sched-region-blocks\fR" 4
6608 .IX Item "max-sched-region-blocks"
6609 The maximum number of blocks in a region to be considered for
6610 interblock scheduling.  The default value is 10.
6611 .IP "\fBmax-sched-region-insns\fR" 4
6612 .IX Item "max-sched-region-insns"
6613 The maximum number of insns in a region to be considered for
6614 interblock scheduling.  The default value is 100.
6615 .IP "\fBmin-spec-prob\fR" 4
6616 .IX Item "min-spec-prob"
6617 The minimum probability (in percents) of reaching a source block
6618 for interblock speculative scheduling.  The default value is 40.
6619 .IP "\fBmax-sched-extend-regions-iters\fR" 4
6620 .IX Item "max-sched-extend-regions-iters"
6621 The maximum number of iterations through \s-1CFG\s0 to extend regions.
6622 0 \- disable region extension,
6623 N \- do at most N iterations.
6624 The default value is 0.
6625 .IP "\fBmax-sched-insn-conflict-delay\fR" 4
6626 .IX Item "max-sched-insn-conflict-delay"
6627 The maximum conflict delay for an insn to be considered for speculative motion.
6628 The default value is 3.
6629 .IP "\fBsched-spec-prob-cutoff\fR" 4
6630 .IX Item "sched-spec-prob-cutoff"
6631 The minimal probability of speculation success (in percents), so that
6632 speculative insn will be scheduled.
6633 The default value is 40.
6634 .IP "\fBmax-last-value-rtl\fR" 4
6635 .IX Item "max-last-value-rtl"
6636 The maximum size measured as number of RTLs that can be recorded in an expression
6637 in combiner for a pseudo register as last known value of that register.  The default
6638 is 10000.
6639 .IP "\fBinteger-share-limit\fR" 4
6640 .IX Item "integer-share-limit"
6641 Small integer constants can use a shared data structure, reducing the
6642 compiler's memory usage and increasing its speed.  This sets the maximum
6643 value of a shared integer constant.  The default value is 256.
6644 .IP "\fBmin-virtual-mappings\fR" 4
6645 .IX Item "min-virtual-mappings"
6646 Specifies the minimum number of virtual mappings in the incremental
6647 \&\s-1SSA\s0 updater that should be registered to trigger the virtual mappings
6648 heuristic defined by virtual-mappings-ratio.  The default value is
6649 100.
6650 .IP "\fBvirtual-mappings-ratio\fR" 4
6651 .IX Item "virtual-mappings-ratio"
6652 If the number of virtual mappings is virtual-mappings-ratio bigger
6653 than the number of virtual symbols to be updated, then the incremental
6654 \&\s-1SSA\s0 updater switches to a full update for those symbols.  The default
6655 ratio is 3.
6656 .IP "\fBssp-buffer-size\fR" 4
6657 .IX Item "ssp-buffer-size"
6658 The minimum size of buffers (i.e. arrays) that will receive stack smashing
6659 protection when \fB\-fstack\-protection\fR is used.
6660 .IP "\fBmax-jump-thread-duplication-stmts\fR" 4
6661 .IX Item "max-jump-thread-duplication-stmts"
6662 Maximum number of statements allowed in a block that needs to be
6663 duplicated when threading jumps.
6664 .IP "\fBmax-fields-for-field-sensitive\fR" 4
6665 .IX Item "max-fields-for-field-sensitive"
6666 Maximum number of fields in a structure we will treat in
6667 a field sensitive manner during pointer analysis.  The default is zero
6668 for \-O0, and \-O1 and 100 for \-Os, \-O2, and \-O3.
6669 .IP "\fBprefetch-latency\fR" 4
6670 .IX Item "prefetch-latency"
6671 Estimate on average number of instructions that are executed before
6672 prefetch finishes.  The distance we prefetch ahead is proportional
6673 to this constant.  Increasing this number may also lead to less
6674 streams being prefetched (see \fBsimultaneous-prefetches\fR).
6675 .IP "\fBsimultaneous-prefetches\fR" 4
6676 .IX Item "simultaneous-prefetches"
6677 Maximum number of prefetches that can run at the same time.
6678 .IP "\fBl1\-cache\-line\-size\fR" 4
6679 .IX Item "l1-cache-line-size"
6680 The size of cache line in L1 cache, in bytes.
6681 .IP "\fBl1\-cache\-size\fR" 4
6682 .IX Item "l1-cache-size"
6683 The size of L1 cache, in kilobytes.
6684 .IP "\fBl2\-cache\-size\fR" 4
6685 .IX Item "l2-cache-size"
6686 The size of L2 cache, in kilobytes.
6687 .IP "\fBuse-canonical-types\fR" 4
6688 .IX Item "use-canonical-types"
6689 Whether the compiler should use the \*(L"canonical\*(R" type system.  By
6690 default, this should always be 1, which uses a more efficient internal
6691 mechanism for comparing types in \*(C+ and Objective\-\*(C+.  However, if
6692 bugs in the canonical type system are causing compilation failures,
6693 set this value to 0 to disable canonical types.
6694 .IP "\fBmax-partial-antic-length\fR" 4
6695 .IX Item "max-partial-antic-length"
6696 Maximum length of the partial antic set computed during the tree
6697 partial redundancy elimination optimization (\fB\-ftree\-pre\fR) when
6698 optimizing at \fB\-O3\fR and above.  For some sorts of source code
6699 the enhanced partial redundancy elimination optimization can run away,
6700 consuming all of the memory available on the host machine.  This
6701 parameter sets a limit on the length of the sets that are computed,
6702 which prevents the runaway behaviour.  Setting a value of 0 for
6703 this paramter will allow an unlimited set length.
6704 .IP "\fBsccvn-max-scc-size\fR" 4
6705 .IX Item "sccvn-max-scc-size"
6706 Maximum size of a strongly connected component (\s-1SCC\s0) during \s-1SCCVN\s0
6707 processing.  If this limit is hit, \s-1SCCVN\s0 processing for the whole
6708 function will not be done and optimizations depending on it will
6709 be disabled.  The default maximum \s-1SCC\s0 size is 10000.
6711 .RS 4
6713 .Sh "Options Controlling the Preprocessor"
6714 .IX Subsection "Options Controlling the Preprocessor"
6715 These options control the C preprocessor, which is run on each C source
6716 file before actual compilation.
6718 If you use the \fB\-E\fR option, nothing is done except preprocessing.
6719 Some of these options make sense only together with \fB\-E\fR because
6720 they cause the preprocessor output to be unsuitable for actual
6721 compilation.
6723 .RS 4
6724 You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
6725 and pass \fIoption\fR directly through to the preprocessor.  If
6726 \&\fIoption\fR contains commas, it is split into multiple options at the
6727 commas.  However, many options are modified, translated or interpreted
6728 by the compiler driver before being passed to the preprocessor, and
6729 \&\fB\-Wp\fR forcibly bypasses this phase.  The preprocessor's direct
6730 interface is undocumented and subject to change, so whenever possible
6731 you should avoid using \fB\-Wp\fR and let the driver handle the
6732 options instead.
6734 \&\fB\-Xpreprocessor\fR \fIoption\fR
6736 Pass \fIoption\fR as an option to the preprocessor.  You can use this to
6737 supply system-specific preprocessor options which \s-1GCC\s0 does not know how to
6738 recognize.
6740 If you want to pass an option that takes an argument, you must use
6741 \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
6743 .IP "\fB\-D\fR \fIname\fR" 4
6744 .IX Item "-D name"
6745 Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
6746 .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
6747 .IX Item "-D name=definition"
6748 The contents of \fIdefinition\fR are tokenized and processed as if
6749 they appeared during translation phase three in a \fB#define\fR
6750 directive.  In particular, the definition will be truncated by
6751 embedded newline characters.
6753 If you are invoking the preprocessor from a shell or shell-like
6754 program you may need to use the shell's quoting syntax to protect
6755 characters such as spaces that have a meaning in the shell syntax.
6757 If you wish to define a function-like macro on the command line, write
6758 its argument list with surrounding parentheses before the equals sign
6759 (if any).  Parentheses are meaningful to most shells, so you will need
6760 to quote the option.  With \fBsh\fR and \fBcsh\fR,
6761 \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
6763 \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
6764 are given on the command line.  All \fB\-imacros\fR \fIfile\fR and
6765 \&\fB\-include\fR \fIfile\fR options are processed after all
6766 \&\fB\-D\fR and \fB\-U\fR options.
6767 .IP "\fB\-U\fR \fIname\fR" 4
6768 .IX Item "-U name"
6769 Cancel any previous definition of \fIname\fR, either built in or
6770 provided with a \fB\-D\fR option.
6771 .IP "\fB\-undef\fR" 4
6772 .IX Item "-undef"
6773 Do not predefine any system-specific or GCC-specific macros.  The
6774 standard predefined macros remain defined.
6775 .IP "\fB\-I\fR \fIdir\fR" 4
6776 .IX Item "-I dir"
6777 Add the directory \fIdir\fR to the list of directories to be searched
6778 for header files.
6779 Directories named by \fB\-I\fR are searched before the standard
6780 system include directories.  If the directory \fIdir\fR is a standard
6781 system include directory, the option is ignored to ensure that the
6782 default search order for system directories and the special treatment
6783 of system headers are not defeated
6785 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
6786 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
6787 .IP "\fB\-o\fR \fIfile\fR" 4
6788 .IX Item "-o file"
6789 Write output to \fIfile\fR.  This is the same as specifying \fIfile\fR
6790 as the second non-option argument to \fBcpp\fR.  \fBgcc\fR has a
6791 different interpretation of a second non-option argument, so you must
6792 use \fB\-o\fR to specify the output file.
6793 .IP "\fB\-Wall\fR" 4
6794 .IX Item "-Wall"
6795 Turns on all optional warnings which are desirable for normal code.
6796 At present this is \fB\-Wcomment\fR, \fB\-Wtrigraphs\fR,
6797 \&\fB\-Wmultichar\fR and a warning about integer promotion causing a
6798 change of sign in \f(CW\*(C`#if\*(C'\fR expressions.  Note that many of the
6799 preprocessor's warnings are on by default and have no options to
6800 control them.
6801 .IP "\fB\-Wcomment\fR" 4
6802 .IX Item "-Wcomment"
6803 .PD 0
6804 .IP "\fB\-Wcomments\fR" 4
6805 .IX Item "-Wcomments"
6807 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
6808 comment, or whenever a backslash-newline appears in a \fB//\fR comment.
6809 (Both forms have the same effect.)
6810 .IP "\fB\-Wtrigraphs\fR" 4
6811 .IX Item "-Wtrigraphs"
6812 Most trigraphs in comments cannot affect the meaning of the program.
6813 However, a trigraph that would form an escaped newline (\fB??/\fR at
6814 the end of a line) can, by changing where the comment begins or ends.
6815 Therefore, only trigraphs that would form escaped newlines produce
6816 warnings inside a comment.
6818 This option is implied by \fB\-Wall\fR.  If \fB\-Wall\fR is not
6819 given, this option is still enabled unless trigraphs are enabled.  To
6820 get trigraph conversion without warnings, but get the other
6821 \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
6822 .IP "\fB\-Wtraditional\fR" 4
6823 .IX Item "-Wtraditional"
6824 Warn about certain constructs that behave differently in traditional and
6825 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
6826 equivalent, and problematic constructs which should be avoided.
6827 .IP "\fB\-Wimport\fR" 4
6828 .IX Item "-Wimport"
6829 Warn the first time \fB#import\fR is used.
6830 .IP "\fB\-Wundef\fR" 4
6831 .IX Item "-Wundef"
6832 Warn whenever an identifier which is not a macro is encountered in an
6833 \&\fB#if\fR directive, outside of \fBdefined\fR.  Such identifiers are
6834 replaced with zero.
6835 .IP "\fB\-Wunused\-macros\fR" 4
6836 .IX Item "-Wunused-macros"
6837 Warn about macros defined in the main file that are unused.  A macro
6838 is \fIused\fR if it is expanded or tested for existence at least once.
6839 The preprocessor will also warn if the macro has not been used at the
6840 time it is redefined or undefined.
6842 Built-in macros, macros defined on the command line, and macros
6843 defined in include files are not warned about.
6845 \&\fINote:\fR If a macro is actually used, but only used in skipped
6846 conditional blocks, then \s-1CPP\s0 will report it as unused.  To avoid the
6847 warning in such a case, you might improve the scope of the macro's
6848 definition by, for example, moving it into the first skipped block.
6849 Alternatively, you could provide a dummy use with something like:
6851 .Vb 2
6852 \&        #if defined the_macro_causing_the_warning
6853 \&        #endif
6855 .IP "\fB\-Wendif\-labels\fR" 4
6856 .IX Item "-Wendif-labels"
6857 Warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
6858 This usually happens in code of the form
6860 .Vb 5
6861 \&        #if FOO
6862 \&        ...
6863 \&        #else FOO
6864 \&        ...
6865 \&        #endif FOO
6868 The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments, but often are not
6869 in older programs.  This warning is on by default.
6870 .IP "\fB\-Werror\fR" 4
6871 .IX Item "-Werror"
6872 Make all warnings into hard errors.  Source code which triggers warnings
6873 will be rejected.
6874 .IP "\fB\-Wsystem\-headers\fR" 4
6875 .IX Item "-Wsystem-headers"
6876 Issue warnings for code in system headers.  These are normally unhelpful
6877 in finding bugs in your own code, therefore suppressed.  If you are
6878 responsible for the system library, you may want to see them.
6879 .IP "\fB\-w\fR" 4
6880 .IX Item "-w"
6881 Suppress all warnings, including those which \s-1GNU\s0 \s-1CPP\s0 issues by default.
6882 .IP "\fB\-pedantic\fR" 4
6883 .IX Item "-pedantic"
6884 Issue all the mandatory diagnostics listed in the C standard.  Some of
6885 them are left out by default, since they trigger frequently on harmless
6886 code.
6887 .IP "\fB\-pedantic\-errors\fR" 4
6888 .IX Item "-pedantic-errors"
6889 Issue all the mandatory diagnostics, and make all mandatory diagnostics
6890 into errors.  This includes mandatory diagnostics that \s-1GCC\s0 issues
6891 without \fB\-pedantic\fR but treats as warnings.
6892 .IP "\fB\-M\fR" 4
6893 .IX Item "-M"
6894 Instead of outputting the result of preprocessing, output a rule
6895 suitable for \fBmake\fR describing the dependencies of the main
6896 source file.  The preprocessor outputs one \fBmake\fR rule containing
6897 the object file name for that source file, a colon, and the names of all
6898 the included files, including those coming from \fB\-include\fR or
6899 \&\fB\-imacros\fR command line options.
6901 Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
6902 object file name consists of the name of the source file with any
6903 suffix replaced with object file suffix and with any leading directory
6904 parts removed.  If there are many included files then the rule is
6905 split into several lines using \fB\e\fR\-newline.  The rule has no
6906 commands.
6908 This option does not suppress the preprocessor's debug output, such as
6909 \&\fB\-dM\fR.  To avoid mixing such debug output with the dependency
6910 rules you should explicitly specify the dependency output file with
6911 \&\fB\-MF\fR, or use an environment variable like
6912 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR.  Debug output
6913 will still be sent to the regular output stream as normal.
6915 Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
6916 warnings with an implicit \fB\-w\fR.
6917 .IP "\fB\-MM\fR" 4
6918 .IX Item "-MM"
6919 Like \fB\-M\fR but do not mention header files that are found in
6920 system header directories, nor header files that are included,
6921 directly or indirectly, from such a header.
6923 This implies that the choice of angle brackets or double quotes in an
6924 \&\fB#include\fR directive does not in itself determine whether that
6925 header will appear in \fB\-MM\fR dependency output.  This is a
6926 slight change in semantics from \s-1GCC\s0 versions 3.0 and earlier.
6927 .IP "\fB\-MF\fR \fIfile\fR" 4
6928 .IX Item "-MF file"
6929 When used with \fB\-M\fR or \fB\-MM\fR, specifies a
6930 file to write the dependencies to.  If no \fB\-MF\fR switch is given
6931 the preprocessor sends the rules to the same place it would have sent
6932 preprocessed output.
6934 When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
6935 \&\fB\-MF\fR overrides the default dependency output file.
6936 .IP "\fB\-MG\fR" 4
6937 .IX Item "-MG"
6938 In conjunction with an option such as \fB\-M\fR requesting
6939 dependency generation, \fB\-MG\fR assumes missing header files are
6940 generated files and adds them to the dependency list without raising
6941 an error.  The dependency filename is taken directly from the
6942 \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path.  \fB\-MG\fR
6943 also suppresses preprocessed output, as a missing header file renders
6944 this useless.
6946 This feature is used in automatic updating of makefiles.
6947 .IP "\fB\-MP\fR" 4
6948 .IX Item "-MP"
6949 This option instructs \s-1CPP\s0 to add a phony target for each dependency
6950 other than the main file, causing each to depend on nothing.  These
6951 dummy rules work around errors \fBmake\fR gives if you remove header
6952 files without updating the \fIMakefile\fR to match.
6954 This is typical output:
6956 .Vb 1
6957 \&        test.o: test.c test.h
6958 \&        
6959 \&        test.h:
6961 .IP "\fB\-MT\fR \fItarget\fR" 4
6962 .IX Item "-MT target"
6963 Change the target of the rule emitted by dependency generation.  By
6964 default \s-1CPP\s0 takes the name of the main input file, deletes any
6965 directory components and any file suffix such as \fB.c\fR, and
6966 appends the platform's usual object suffix.  The result is the target.
6968 An \fB\-MT\fR option will set the target to be exactly the string you
6969 specify.  If you want multiple targets, you can specify them as a single
6970 argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
6972 For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
6974 .Vb 1
6975 \&        $(objpfx)foo.o: foo.c
6977 .IP "\fB\-MQ\fR \fItarget\fR" 4
6978 .IX Item "-MQ target"
6979 Same as \fB\-MT\fR, but it quotes any characters which are special to
6980 Make.  \fB\-MQ\ '$(objpfx)foo.o'\fR gives
6982 .Vb 1
6983 \&        $$(objpfx)foo.o: foo.c
6986 The default target is automatically quoted, as if it were given with
6987 \&\fB\-MQ\fR.
6988 .IP "\fB\-MD\fR" 4
6989 .IX Item "-MD"
6990 \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
6991 \&\fB\-E\fR is not implied.  The driver determines \fIfile\fR based on
6992 whether an \fB\-o\fR option is given.  If it is, the driver uses its
6993 argument but with a suffix of \fI.d\fR, otherwise it takes the name
6994 of the input file, removes any directory components and suffix, and
6995 applies a \fI.d\fR suffix.
6997 If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
6998 \&\fB\-o\fR switch is understood to specify the dependency output file, but if used without \fB\-E\fR, each \fB\-o\fR
6999 is understood to specify a target object file.
7001 Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
7002 a dependency output file as a side-effect of the compilation process.
7003 .IP "\fB\-MMD\fR" 4
7004 .IX Item "-MMD"
7005 Like \fB\-MD\fR except mention only user header files, not system
7006 header files.
7007 .IP "\fB\-fpch\-deps\fR" 4
7008 .IX Item "-fpch-deps"
7009 When using precompiled headers, this flag
7010 will cause the dependency-output flags to also list the files from the
7011 precompiled header's dependencies.  If not specified only the
7012 precompiled header would be listed and not the files that were used to
7013 create it because those files are not consulted when a precompiled
7014 header is used.
7015 .IP "\fB\-fpch\-preprocess\fR" 4
7016 .IX Item "-fpch-preprocess"
7017 This option allows use of a precompiled header together with \fB\-E\fR.  It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
7018 \&\f(CW\*(C`#pragma GCC pch_preprocess "<filename>"\*(C'\fR in the output to mark
7019 the place where the precompiled header was found, and its filename.  When
7020 \&\fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR and
7021 loads the \s-1PCH\s0.
7023 This option is off by default, because the resulting preprocessed output
7024 is only really suitable as input to \s-1GCC\s0.  It is switched on by
7025 \&\fB\-save\-temps\fR.
7027 You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
7028 safe to edit the filename if the \s-1PCH\s0 file is available in a different
7029 location.  The filename may be absolute or it may be relative to \s-1GCC\s0's
7030 current directory.
7031 .IP "\fB\-x c\fR" 4
7032 .IX Item "-x c"
7033 .PD 0
7034 .IP "\fB\-x c++\fR" 4
7035 .IX Item "-x c++"
7036 .IP "\fB\-x objective-c\fR" 4
7037 .IX Item "-x objective-c"
7038 .IP "\fB\-x assembler-with-cpp\fR" 4
7039 .IX Item "-x assembler-with-cpp"
7041 Specify the source language: C, \*(C+, Objective-C, or assembly.  This has
7042 nothing to do with standards conformance or extensions; it merely
7043 selects which base syntax to expect.  If you give none of these options,
7044 cpp will deduce the language from the extension of the source file:
7045 \&\fB.c\fR, \fB.cc\fR, \fB.m\fR, or \fB.S\fR.  Some other common
7046 extensions for \*(C+ and assembly are also recognized.  If cpp does not
7047 recognize the extension, it will treat the file as C; this is the most
7048 generic mode.
7050 \&\fINote:\fR Previous versions of cpp accepted a \fB\-lang\fR option
7051 which selected both the language and the standards conformance level.
7052 This option has been removed, because it conflicts with the \fB\-l\fR
7053 option.
7054 .IP "\fB\-std=\fR\fIstandard\fR" 4
7055 .IX Item "-std=standard"
7056 .PD 0
7057 .IP "\fB\-ansi\fR" 4
7058 .IX Item "-ansi"
7060 Specify the standard to which the code should conform.  Currently \s-1CPP\s0
7061 knows about C and \*(C+ standards; others may be added in the future.
7063 \&\fIstandard\fR
7064 may be one of:
7065 .RS 4
7066 .ie n .IP """iso9899:1990""" 4
7067 .el .IP "\f(CWiso9899:1990\fR" 4
7068 .IX Item "iso9899:1990"
7069 .PD 0
7070 .ie n .IP """c89""" 4
7071 .el .IP "\f(CWc89\fR" 4
7072 .IX Item "c89"
7074 The \s-1ISO\s0 C standard from 1990.  \fBc89\fR is the customary shorthand for
7075 this version of the standard.
7077 The \fB\-ansi\fR option is equivalent to \fB\-std=c89\fR.
7078 .ie n .IP """iso9899:199409""" 4
7079 .el .IP "\f(CWiso9899:199409\fR" 4
7080 .IX Item "iso9899:199409"
7081 The 1990 C standard, as amended in 1994.
7082 .ie n .IP """iso9899:1999""" 4
7083 .el .IP "\f(CWiso9899:1999\fR" 4
7084 .IX Item "iso9899:1999"
7085 .PD 0
7086 .ie n .IP """c99""" 4
7087 .el .IP "\f(CWc99\fR" 4
7088 .IX Item "c99"
7089 .ie n .IP """iso9899:199x""" 4
7090 .el .IP "\f(CWiso9899:199x\fR" 4
7091 .IX Item "iso9899:199x"
7092 .ie n .IP """c9x""" 4
7093 .el .IP "\f(CWc9x\fR" 4
7094 .IX Item "c9x"
7096 The revised \s-1ISO\s0 C standard, published in December 1999.  Before
7097 publication, this was known as C9X.
7098 .ie n .IP """gnu89""" 4
7099 .el .IP "\f(CWgnu89\fR" 4
7100 .IX Item "gnu89"
7101 The 1990 C standard plus \s-1GNU\s0 extensions.  This is the default.
7102 .ie n .IP """gnu99""" 4
7103 .el .IP "\f(CWgnu99\fR" 4
7104 .IX Item "gnu99"
7105 .PD 0
7106 .ie n .IP """gnu9x""" 4
7107 .el .IP "\f(CWgnu9x\fR" 4
7108 .IX Item "gnu9x"
7110 The 1999 C standard plus \s-1GNU\s0 extensions.
7111 .ie n .IP """c++98""" 4
7112 .el .IP "\f(CWc++98\fR" 4
7113 .IX Item "c++98"
7114 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
7115 .ie n .IP """gnu++98""" 4
7116 .el .IP "\f(CWgnu++98\fR" 4
7117 .IX Item "gnu++98"
7118 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
7119 default for \*(C+ code.
7121 .RS 4
7123 .IP "\fB\-I\-\fR" 4
7124 .IX Item "-I-"
7125 Split the include path.  Any directories specified with \fB\-I\fR
7126 options before \fB\-I\-\fR are searched only for headers requested with
7127 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
7128 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR.  If additional directories are
7129 specified with \fB\-I\fR options after the \fB\-I\-\fR, those
7130 directories are searched for all \fB#include\fR directives.
7132 In addition, \fB\-I\-\fR inhibits the use of the directory of the current
7133 file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
7134 This option has been deprecated.
7135 .IP "\fB\-nostdinc\fR" 4
7136 .IX Item "-nostdinc"
7137 Do not search the standard system directories for header files.
7138 Only the directories you have specified with \fB\-I\fR options
7139 (and the directory of the current file, if appropriate) are searched.
7140 .IP "\fB\-nostdinc++\fR" 4
7141 .IX Item "-nostdinc++"
7142 Do not search for header files in the \*(C+\-specific standard directories,
7143 but do still search the other standard directories.  (This option is
7144 used when building the \*(C+ library.)
7145 .IP "\fB\-include\fR \fIfile\fR" 4
7146 .IX Item "-include file"
7147 Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
7148 line of the primary source file.  However, the first directory searched
7149 for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
7150 the directory containing the main source file.  If not found there, it
7151 is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
7152 chain as normal.
7154 If multiple \fB\-include\fR options are given, the files are included
7155 in the order they appear on the command line.
7156 .IP "\fB\-imacros\fR \fIfile\fR" 4
7157 .IX Item "-imacros file"
7158 Exactly like \fB\-include\fR, except that any output produced by
7159 scanning \fIfile\fR is thrown away.  Macros it defines remain defined.
7160 This allows you to acquire all the macros from a header without also
7161 processing its declarations.
7163 All files specified by \fB\-imacros\fR are processed before all files
7164 specified by \fB\-include\fR.
7165 .IP "\fB\-idirafter\fR \fIdir\fR" 4
7166 .IX Item "-idirafter dir"
7167 Search \fIdir\fR for header files, but do it \fIafter\fR all
7168 directories specified with \fB\-I\fR and the standard system directories
7169 have been exhausted.  \fIdir\fR is treated as a system include directory.
7170 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
7171 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
7172 .IP "\fB\-iprefix\fR \fIprefix\fR" 4
7173 .IX Item "-iprefix prefix"
7174 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
7175 options.  If the prefix represents a directory, you should include the
7176 final \fB/\fR.
7177 .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
7178 .IX Item "-iwithprefix dir"
7179 .PD 0
7180 .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
7181 .IX Item "-iwithprefixbefore dir"
7183 Append \fIdir\fR to the prefix specified previously with
7184 \&\fB\-iprefix\fR, and add the resulting directory to the include search
7185 path.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
7186 would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
7187 .IP "\fB\-isysroot\fR \fIdir\fR" 4
7188 .IX Item "-isysroot dir"
7189 This option is like the \fB\-\-sysroot\fR option, but applies only to
7190 header files.  See the \fB\-\-sysroot\fR option for more information.
7191 .IP "\fB\-imultilib\fR \fIdir\fR" 4
7192 .IX Item "-imultilib dir"
7193 Use \fIdir\fR as a subdirectory of the directory containing
7194 target-specific \*(C+ headers.
7195 .IP "\fB\-isystem\fR \fIdir\fR" 4
7196 .IX Item "-isystem dir"
7197 Search \fIdir\fR for header files, after all directories specified by
7198 \&\fB\-I\fR but before the standard system directories.  Mark it
7199 as a system directory, so that it gets the same special treatment as
7200 is applied to the standard system directories.
7201 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
7202 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
7203 .IP "\fB\-iquote\fR \fIdir\fR" 4
7204 .IX Item "-iquote dir"
7205 Search \fIdir\fR only for header files requested with
7206 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
7207 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR, before all directories specified by
7208 \&\fB\-I\fR and before the standard system directories.
7209 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
7210 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
7211 .IP "\fB\-fdirectives\-only\fR" 4
7212 .IX Item "-fdirectives-only"
7213 When preprocessing, handle directives, but do not expand macros.
7215 The option's behavior depends on the \fB\-E\fR and \fB\-fpreprocessed\fR
7216 options.
7218 With \fB\-E\fR, preprocessing is limited to the handling of directives
7219 such as \f(CW\*(C`#define\*(C'\fR, \f(CW\*(C`#ifdef\*(C'\fR, and \f(CW\*(C`#error\*(C'\fR.  Other
7220 preprocessor operations, such as macro expansion and trigraph
7221 conversion are not performed.  In addition, the \fB\-dD\fR option is
7222 implicitly enabled.
7224 With \fB\-fpreprocessed\fR, predefinition of command line and most
7225 builtin macros is disabled.  Macros such as \f(CW\*(C`_\|_LINE_\|_\*(C'\fR, which are
7226 contextually dependent, are handled normally.  This enables compilation of
7227 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
7229 With both \fB\-E\fR and \fB\-fpreprocessed\fR, the rules for
7230 \&\fB\-fpreprocessed\fR take precedence.  This enables full preprocessing of
7231 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
7232 .IP "\fB\-fdollars\-in\-identifiers\fR" 4
7233 .IX Item "-fdollars-in-identifiers"
7234 Accept \fB$\fR in identifiers.
7235 .IP "\fB\-fextended\-identifiers\fR" 4
7236 .IX Item "-fextended-identifiers"
7237 Accept universal character names in identifiers.  This option is
7238 experimental; in a future version of \s-1GCC\s0, it will be enabled by
7239 default for C99 and \*(C+.
7240 .IP "\fB\-fpreprocessed\fR" 4
7241 .IX Item "-fpreprocessed"
7242 Indicate to the preprocessor that the input file has already been
7243 preprocessed.  This suppresses things like macro expansion, trigraph
7244 conversion, escaped newline splicing, and processing of most directives.
7245 The preprocessor still recognizes and removes comments, so that you can
7246 pass a file preprocessed with \fB\-C\fR to the compiler without
7247 problems.  In this mode the integrated preprocessor is little more than
7248 a tokenizer for the front ends.
7250 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
7251 extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are the
7252 extensions that \s-1GCC\s0 uses for preprocessed files created by
7253 \&\fB\-save\-temps\fR.
7254 .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
7255 .IX Item "-ftabstop=width"
7256 Set the distance between tab stops.  This helps the preprocessor report
7257 correct column numbers in warnings or errors, even if tabs appear on the
7258 line.  If the value is less than 1 or greater than 100, the option is
7259 ignored.  The default is 8.
7260 .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
7261 .IX Item "-fexec-charset=charset"
7262 Set the execution character set, used for string and character
7263 constants.  The default is \s-1UTF\-8\s0.  \fIcharset\fR can be any encoding
7264 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
7265 .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
7266 .IX Item "-fwide-exec-charset=charset"
7267 Set the wide execution character set, used for wide string and
7268 character constants.  The default is \s-1UTF\-32\s0 or \s-1UTF\-16\s0, whichever
7269 corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR.  As with
7270 \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
7271 by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
7272 problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
7273 .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
7274 .IX Item "-finput-charset=charset"
7275 Set the input character set, used for translation from the character
7276 set of the input file to the source character set used by \s-1GCC\s0.  If the
7277 locale does not specify, or \s-1GCC\s0 cannot get this information from the
7278 locale, the default is \s-1UTF\-8\s0.  This can be overridden by either the locale
7279 or this command line option.  Currently the command line option takes
7280 precedence if there's a conflict.  \fIcharset\fR can be any encoding
7281 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
7282 .IP "\fB\-fworking\-directory\fR" 4
7283 .IX Item "-fworking-directory"
7284 Enable generation of linemarkers in the preprocessor output that will
7285 let the compiler know the current working directory at the time of
7286 preprocessing.  When this option is enabled, the preprocessor will
7287 emit, after the initial linemarker, a second linemarker with the
7288 current working directory followed by two slashes.  \s-1GCC\s0 will use this
7289 directory, when it's present in the preprocessed input, as the
7290 directory emitted as the current working directory in some debugging
7291 information formats.  This option is implicitly enabled if debugging
7292 information is enabled, but this can be inhibited with the negated
7293 form \fB\-fno\-working\-directory\fR.  If the \fB\-P\fR flag is
7294 present in the command line, this option has no effect, since no
7295 \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
7296 .IP "\fB\-fno\-show\-column\fR" 4
7297 .IX Item "-fno-show-column"
7298 Do not print column numbers in diagnostics.  This may be necessary if
7299 diagnostics are being scanned by a program that does not understand the
7300 column numbers, such as \fBdejagnu\fR.
7301 .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
7302 .IX Item "-A predicate=answer"
7303 Make an assertion with the predicate \fIpredicate\fR and answer
7304 \&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR
7305 \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
7306 it does not use shell special characters.
7307 .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
7308 .IX Item "-A -predicate=answer"
7309 Cancel an assertion with the predicate \fIpredicate\fR and answer
7310 \&\fIanswer\fR.
7311 .IP "\fB\-dCHARS\fR" 4
7312 .IX Item "-dCHARS"
7313 \&\fI\s-1CHARS\s0\fR is a sequence of one or more of the following characters,
7314 and must not be preceded by a space.  Other characters are interpreted
7315 by the compiler proper, or reserved for future versions of \s-1GCC\s0, and so
7316 are silently ignored.  If you specify characters whose behavior
7317 conflicts, the result is undefined.
7318 .RS 4
7319 .IP "\fBM\fR" 4
7320 .IX Item "M"
7321 Instead of the normal output, generate a list of \fB#define\fR
7322 directives for all the macros defined during the execution of the
7323 preprocessor, including predefined macros.  This gives you a way of
7324 finding out what is predefined in your version of the preprocessor.
7325 Assuming you have no file \fIfoo.h\fR, the command
7327 .Vb 1
7328 \&        touch foo.h; cpp \-dM foo.h
7331 will show all the predefined macros.
7333 If you use \fB\-dM\fR without the \fB\-E\fR option, \fB\-dM\fR is
7334 interpreted as a synonym for \fB\-fdump\-rtl\-mach\fR.
7335 .IP "\fBD\fR" 4
7336 .IX Item "D"
7337 Like \fBM\fR except in two respects: it does \fInot\fR include the
7338 predefined macros, and it outputs \fIboth\fR the \fB#define\fR
7339 directives and the result of preprocessing.  Both kinds of output go to
7340 the standard output file.
7341 .IP "\fBN\fR" 4
7342 .IX Item "N"
7343 Like \fBD\fR, but emit only the macro names, not their expansions.
7344 .IP "\fBI\fR" 4
7345 .IX Item "I"
7346 Output \fB#include\fR directives in addition to the result of
7347 preprocessing.
7349 .RS 4
7351 .IP "\fB\-P\fR" 4
7352 .IX Item "-P"
7353 Inhibit generation of linemarkers in the output from the preprocessor.
7354 This might be useful when running the preprocessor on something that is
7355 not C code, and will be sent to a program which might be confused by the
7356 linemarkers.
7357 .IP "\fB\-C\fR" 4
7358 .IX Item "-C"
7359 Do not discard comments.  All comments are passed through to the output
7360 file, except for comments in processed directives, which are deleted
7361 along with the directive.
7363 You should be prepared for side effects when using \fB\-C\fR; it
7364 causes the preprocessor to treat comments as tokens in their own right.
7365 For example, comments appearing at the start of what would be a
7366 directive line have the effect of turning that line into an ordinary
7367 source line, since the first token on the line is no longer a \fB#\fR.
7368 .IP "\fB\-CC\fR" 4
7369 .IX Item "-CC"
7370 Do not discard comments, including during macro expansion.  This is
7371 like \fB\-C\fR, except that comments contained within macros are
7372 also passed through to the output file where the macro is expanded.
7374 In addition to the side-effects of the \fB\-C\fR option, the
7375 \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
7376 to be converted to C\-style comments.  This is to prevent later use
7377 of that macro from inadvertently commenting out the remainder of
7378 the source line.
7380 The \fB\-CC\fR option is generally used to support lint comments.
7381 .IP "\fB\-traditional\-cpp\fR" 4
7382 .IX Item "-traditional-cpp"
7383 Try to imitate the behavior of old-fashioned C preprocessors, as
7384 opposed to \s-1ISO\s0 C preprocessors.
7385 .IP "\fB\-trigraphs\fR" 4
7386 .IX Item "-trigraphs"
7387 Process trigraph sequences.
7388 These are three-character sequences, all starting with \fB??\fR, that
7389 are defined by \s-1ISO\s0 C to stand for single characters.  For example,
7390 \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
7391 constant for a newline.  By default, \s-1GCC\s0 ignores trigraphs, but in
7392 standard-conforming modes it converts them.  See the \fB\-std\fR and
7393 \&\fB\-ansi\fR options.
7395 The nine trigraphs and their replacements are
7397 .Vb 2
7398 \&        Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??\*(Aq  ??!  ??\-
7399 \&        Replacement:      [    ]    {    }    #    \e    ^    |    ~
7401 .IP "\fB\-remap\fR" 4
7402 .IX Item "-remap"
7403 Enable special code to work around file systems which only permit very
7404 short file names, such as MS-DOS.
7405 .IP "\fB\-\-help\fR" 4
7406 .IX Item "--help"
7407 .PD 0
7408 .IP "\fB\-\-target\-help\fR" 4
7409 .IX Item "--target-help"
7411 Print text describing all the command line options instead of
7412 preprocessing anything.
7413 .IP "\fB\-v\fR" 4
7414 .IX Item "-v"
7415 Verbose mode.  Print out \s-1GNU\s0 \s-1CPP\s0's version number at the beginning of
7416 execution, and report the final form of the include path.
7417 .IP "\fB\-H\fR" 4
7418 .IX Item "-H"
7419 Print the name of each header file used, in addition to other normal
7420 activities.  Each name is indented to show how deep in the
7421 \&\fB#include\fR stack it is.  Precompiled header files are also
7422 printed, even if they are found to be invalid; an invalid precompiled
7423 header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
7424 .IP "\fB\-version\fR" 4
7425 .IX Item "-version"
7426 .PD 0
7427 .IP "\fB\-\-version\fR" 4
7428 .IX Item "--version"
7430 Print out \s-1GNU\s0 \s-1CPP\s0's version number.  With one dash, proceed to
7431 preprocess as normal.  With two dashes, exit immediately.
7432 .Sh "Passing Options to the Assembler"
7433 .IX Subsection "Passing Options to the Assembler"
7434 You can pass options to the assembler.
7435 .IP "\fB\-Wa,\fR\fIoption\fR" 4
7436 .IX Item "-Wa,option"
7437 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
7438 contains commas, it is split into multiple options at the commas.
7439 .IP "\fB\-Xassembler\fR \fIoption\fR" 4
7440 .IX Item "-Xassembler option"
7441 Pass \fIoption\fR as an option to the assembler.  You can use this to
7442 supply system-specific assembler options which \s-1GCC\s0 does not know how to
7443 recognize.
7445 If you want to pass an option that takes an argument, you must use
7446 \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
7447 .Sh "Options for Linking"
7448 .IX Subsection "Options for Linking"
7449 These options come into play when the compiler links object files into
7450 an executable output file.  They are meaningless if the compiler is
7451 not doing a link step.
7452 .IP "\fIobject-file-name\fR" 4
7453 .IX Item "object-file-name"
7454 A file name that does not end in a special recognized suffix is
7455 considered to name an object file or library.  (Object files are
7456 distinguished from libraries by the linker according to the file
7457 contents.)  If linking is done, these object files are used as input
7458 to the linker.
7459 .IP "\fB\-c\fR" 4
7460 .IX Item "-c"
7461 .PD 0
7462 .IP "\fB\-S\fR" 4
7463 .IX Item "-S"
7464 .IP "\fB\-E\fR" 4
7465 .IX Item "-E"
7467 If any of these options is used, then the linker is not run, and
7468 object file names should not be used as arguments.
7469 .IP "\fB\-l\fR\fIlibrary\fR" 4
7470 .IX Item "-llibrary"
7471 .PD 0
7472 .IP "\fB\-l\fR \fIlibrary\fR" 4
7473 .IX Item "-l library"
7475 Search the library named \fIlibrary\fR when linking.  (The second
7476 alternative with the library as a separate argument is only for
7477 \&\s-1POSIX\s0 compliance and is not recommended.)
7479 It makes a difference where in the command you write this option; the
7480 linker searches and processes libraries and object files in the order they
7481 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
7482 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
7483 to functions in \fBz\fR, those functions may not be loaded.
7485 The linker searches a standard list of directories for the library,
7486 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
7487 then uses this file as if it had been specified precisely by name.
7489 The directories searched include several standard system directories
7490 plus any that you specify with \fB\-L\fR.
7492 Normally the files found this way are library files\-\-\-archive files
7493 whose members are object files.  The linker handles an archive file by
7494 scanning through it for members which define symbols that have so far
7495 been referenced but not defined.  But if the file that is found is an
7496 ordinary object file, it is linked in the usual fashion.  The only
7497 difference between using an \fB\-l\fR option and specifying a file name
7498 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
7499 and searches several directories.
7500 .IP "\fB\-lobjc\fR" 4
7501 .IX Item "-lobjc"
7502 You need this special case of the \fB\-l\fR option in order to
7503 link an Objective-C or Objective\-\*(C+ program.
7504 .IP "\fB\-nostartfiles\fR" 4
7505 .IX Item "-nostartfiles"
7506 Do not use the standard system startup files when linking.
7507 The standard system libraries are used normally, unless \fB\-nostdlib\fR
7508 or \fB\-nodefaultlibs\fR is used.
7509 .IP "\fB\-nodefaultlibs\fR" 4
7510 .IX Item "-nodefaultlibs"
7511 Do not use the standard system libraries when linking.
7512 Only the libraries you specify will be passed to the linker.
7513 The standard startup files are used normally, unless \fB\-nostartfiles\fR
7514 is used.  The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
7515 \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
7516 These entries are usually resolved by entries in
7517 libc.  These entry points should be supplied through some other
7518 mechanism when this option is specified.
7519 .IP "\fB\-nostdlib\fR" 4
7520 .IX Item "-nostdlib"
7521 Do not use the standard system startup files or libraries when linking.
7522 No startup files and only the libraries you specify will be passed to
7523 the linker.  The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
7524 \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
7525 These entries are usually resolved by entries in
7526 libc.  These entry points should be supplied through some other
7527 mechanism when this option is specified.
7529 One of the standard libraries bypassed by \fB\-nostdlib\fR and
7530 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
7531 that \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
7532 needs for some languages.
7534 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
7535 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
7536 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
7537 This ensures that you have no unresolved references to internal \s-1GCC\s0
7538 library subroutines.  (For example, \fB_\|_main\fR, used to ensure \*(C+
7539 constructors will be called.)
7540 .IP "\fB\-pie\fR" 4
7541 .IX Item "-pie"
7542 Produce a position independent executable on targets which support it.
7543 For predictable results, you must also specify the same set of options
7544 that were used to generate code (\fB\-fpie\fR, \fB\-fPIE\fR,
7545 or model suboptions) when you specify this option.
7546 .IP "\fB\-rdynamic\fR" 4
7547 .IX Item "-rdynamic"
7548 Pass the flag \fB\-export\-dynamic\fR to the \s-1ELF\s0 linker, on targets
7549 that support it. This instructs the linker to add all symbols, not
7550 only used ones, to the dynamic symbol table. This option is needed
7551 for some uses of \f(CW\*(C`dlopen\*(C'\fR or to allow obtaining backtraces
7552 from within a program.
7553 .IP "\fB\-s\fR" 4
7554 .IX Item "-s"
7555 Remove all symbol table and relocation information from the executable.
7556 .IP "\fB\-static\fR" 4
7557 .IX Item "-static"
7558 On systems that support dynamic linking, this prevents linking with the shared
7559 libraries.  On other systems, this option has no effect.
7560 .IP "\fB\-shared\fR" 4
7561 .IX Item "-shared"
7562 Produce a shared object which can then be linked with other objects to
7563 form an executable.  Not all systems support this option.  For predictable
7564 results, you must also specify the same set of options that were used to
7565 generate code (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions)
7566 when you specify this option.[1]
7567 .IP "\fB\-shared\-libgcc\fR" 4
7568 .IX Item "-shared-libgcc"
7569 .PD 0
7570 .IP "\fB\-static\-libgcc\fR" 4
7571 .IX Item "-static-libgcc"
7573 On systems that provide \fIlibgcc\fR as a shared library, these options
7574 force the use of either the shared or static version respectively.
7575 If no shared version of \fIlibgcc\fR was built when the compiler was
7576 configured, these options have no effect.
7578 There are several situations in which an application should use the
7579 shared \fIlibgcc\fR instead of the static version.  The most common
7580 of these is when the application wishes to throw and catch exceptions
7581 across different shared libraries.  In that case, each of the libraries
7582 as well as the application itself should use the shared \fIlibgcc\fR.
7584 Therefore, the G++ and \s-1GCJ\s0 drivers automatically add
7585 \&\fB\-shared\-libgcc\fR whenever you build a shared library or a main
7586 executable, because \*(C+ and Java programs typically use exceptions, so
7587 this is the right thing to do.
7589 If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
7590 find that they will not always be linked with the shared \fIlibgcc\fR.
7591 If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
7592 or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
7593 it will link the shared version of \fIlibgcc\fR into shared libraries
7594 by default.  Otherwise, it will take advantage of the linker and optimize
7595 away the linking with the shared version of \fIlibgcc\fR, linking with
7596 the static version of libgcc by default.  This allows exceptions to
7597 propagate through such shared libraries, without incurring relocation
7598 costs at library load time.
7600 However, if a library or main executable is supposed to throw or catch
7601 exceptions, you must link it using the G++ or \s-1GCJ\s0 driver, as appropriate
7602 for the languages used in the program, or using the option
7603 \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
7604 \&\fIlibgcc\fR.
7605 .IP "\fB\-symbolic\fR" 4
7606 .IX Item "-symbolic"
7607 Bind references to global symbols when building a shared object.  Warn
7608 about any unresolved references (unless overridden by the link editor
7609 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
7610 this option.
7611 .IP "\fB\-Xlinker\fR \fIoption\fR" 4
7612 .IX Item "-Xlinker option"
7613 Pass \fIoption\fR as an option to the linker.  You can use this to
7614 supply system-specific linker options which \s-1GCC\s0 does not know how to
7615 recognize.
7617 If you want to pass an option that takes an argument, you must use
7618 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
7619 For example, to pass \fB\-assert definitions\fR, you must write
7620 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
7621 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
7622 string as a single argument, which is not what the linker expects.
7623 .IP "\fB\-Wl,\fR\fIoption\fR" 4
7624 .IX Item "-Wl,option"
7625 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
7626 commas, it is split into multiple options at the commas.
7627 .IP "\fB\-u\fR \fIsymbol\fR" 4
7628 .IX Item "-u symbol"
7629 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
7630 library modules to define it.  You can use \fB\-u\fR multiple times with
7631 different symbols to force loading of additional library modules.
7632 .Sh "Options for Directory Search"
7633 .IX Subsection "Options for Directory Search"
7634 These options specify directories to search for header files, for
7635 libraries and for parts of the compiler:
7636 .IP "\fB\-I\fR\fIdir\fR" 4
7637 .IX Item "-Idir"
7638 Add the directory \fIdir\fR to the head of the list of directories to be
7639 searched for header files.  This can be used to override a system header
7640 file, substituting your own version, since these directories are
7641 searched before the system header file directories.  However, you should
7642 not use this option to add directories that contain vendor-supplied
7643 system header files (use \fB\-isystem\fR for that).  If you use more than
7644 one \fB\-I\fR option, the directories are scanned in left-to-right
7645 order; the standard system directories come after.
7647 If a standard system include directory, or a directory specified with
7648 \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
7649 option will be ignored.  The directory will still be searched but as a
7650 system directory at its normal position in the system include chain.
7651 This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
7652 the ordering for the include_next directive are not inadvertently changed.
7653 If you really need to change the search order for system directories,
7654 use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
7655 .IP "\fB\-iquote\fR\fIdir\fR" 4
7656 .IX Item "-iquotedir"
7657 Add the directory \fIdir\fR to the head of the list of directories to
7658 be searched for header files only for the case of \fB#include
7659 "\fR\fIfile\fR\fB"\fR; they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR,
7660 otherwise just like \fB\-I\fR.
7661 .IP "\fB\-L\fR\fIdir\fR" 4
7662 .IX Item "-Ldir"
7663 Add directory \fIdir\fR to the list of directories to be searched
7664 for \fB\-l\fR.
7665 .IP "\fB\-B\fR\fIprefix\fR" 4
7666 .IX Item "-Bprefix"
7667 This option specifies where to find the executables, libraries,
7668 include files, and data files of the compiler itself.
7670 The compiler driver program runs one or more of the subprograms
7671 \&\fIcpp\fR, \fIcc1\fR, \fIas\fR and \fIld\fR.  It tries
7672 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
7673 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR.
7675 For each subprogram to be run, the compiler driver first tries the
7676 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
7677 was not specified, the driver tries two standard prefixes, which are
7678 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR.  If neither of
7679 those results in a file name that is found, the unmodified program
7680 name is searched for using the directories specified in your
7681 \&\fB\s-1PATH\s0\fR environment variable.
7683 The compiler will check to see if the path provided by the \fB\-B\fR
7684 refers to a directory, and if necessary it will add a directory
7685 separator character at the end of the path.
7687 \&\fB\-B\fR prefixes that effectively specify directory names also apply
7688 to libraries in the linker, because the compiler translates these
7689 options into \fB\-L\fR options for the linker.  They also apply to
7690 includes files in the preprocessor, because the compiler translates these
7691 options into \fB\-isystem\fR options for the preprocessor.  In this case,
7692 the compiler appends \fBinclude\fR to the prefix.
7694 The run-time support file \fIlibgcc.a\fR can also be searched for using
7695 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
7696 standard prefixes above are tried, and that is all.  The file is left
7697 out of the link if it is not found by those means.
7699 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
7700 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.
7702 As a special kludge, if the path provided by \fB\-B\fR is
7703 \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
7704 9, then it will be replaced by \fI[dir/]include\fR.  This is to help
7705 with boot-strapping the compiler.
7706 .IP "\fB\-specs=\fR\fIfile\fR" 4
7707 .IX Item "-specs=file"
7708 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
7709 file, in order to override the defaults that the \fIgcc\fR driver
7710 program uses when determining what switches to pass to \fIcc1\fR,
7711 \&\fIcc1plus\fR, \fIas\fR, \fIld\fR, etc.  More than one
7712 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
7713 are processed in order, from left to right.
7714 .IP "\fB\-\-sysroot=\fR\fIdir\fR" 4
7715 .IX Item "--sysroot=dir"
7716 Use \fIdir\fR as the logical root directory for headers and libraries.
7717 For example, if the compiler would normally search for headers in
7718 \&\fI/usr/include\fR and libraries in \fI/usr/lib\fR, it will instead
7719 search \fI\fIdir\fI/usr/include\fR and \fI\fIdir\fI/usr/lib\fR.
7721 If you use both this option and the \fB\-isysroot\fR option, then
7722 the \fB\-\-sysroot\fR option will apply to libraries, but the
7723 \&\fB\-isysroot\fR option will apply to header files.
7725 The \s-1GNU\s0 linker (beginning with version 2.16) has the necessary support
7726 for this option.  If your linker does not support this option, the
7727 header file aspect of \fB\-\-sysroot\fR will still work, but the
7728 library aspect will not.
7729 .IP "\fB\-I\-\fR" 4
7730 .IX Item "-I-"
7731 This option has been deprecated.  Please use \fB\-iquote\fR instead for
7732 \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR.
7733 Any directories you specify with \fB\-I\fR options before the \fB\-I\-\fR
7734 option are searched only for the case of \fB#include "\fR\fIfile\fR\fB"\fR;
7735 they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR.
7737 If additional directories are specified with \fB\-I\fR options after
7738 the \fB\-I\-\fR, these directories are searched for all \fB#include\fR
7739 directives.  (Ordinarily \fIall\fR \fB\-I\fR directories are used
7740 this way.)
7742 In addition, the \fB\-I\-\fR option inhibits the use of the current
7743 directory (where the current input file came from) as the first search
7744 directory for \fB#include "\fR\fIfile\fR\fB"\fR.  There is no way to
7745 override this effect of \fB\-I\-\fR.  With \fB\-I.\fR you can specify
7746 searching the directory which was current when the compiler was
7747 invoked.  That is not exactly the same as what the preprocessor does
7748 by default, but it is often satisfactory.
7750 \&\fB\-I\-\fR does not inhibit the use of the standard system directories
7751 for header files.  Thus, \fB\-I\-\fR and \fB\-nostdinc\fR are
7752 independent.
7753 .Sh "Specifying Target Machine and Compiler Version"
7754 .IX Subsection "Specifying Target Machine and Compiler Version"
7755 The usual way to run \s-1GCC\s0 is to run the executable called \fIgcc\fR, or
7756 \&\fI<machine>\-gcc\fR when cross-compiling, or
7757 \&\fI<machine>\-gcc\-<version>\fR to run a version other than the one that
7758 was installed last.  Sometimes this is inconvenient, so \s-1GCC\s0 provides
7759 options that will switch to another cross-compiler or version.
7760 .IP "\fB\-b\fR \fImachine\fR" 4
7761 .IX Item "-b machine"
7762 The argument \fImachine\fR specifies the target machine for compilation.
7764 The value to use for \fImachine\fR is the same as was specified as the
7765 machine type when configuring \s-1GCC\s0 as a cross-compiler.  For
7766 example, if a cross-compiler was configured with \fBconfigure
7767 arm-elf\fR, meaning to compile for an arm processor with elf binaries,
7768 then you would specify \fB\-b arm-elf\fR to run that cross compiler.
7769 Because there are other options beginning with \fB\-b\fR, the
7770 configuration must contain a hyphen.
7771 .IP "\fB\-V\fR \fIversion\fR" 4
7772 .IX Item "-V version"
7773 The argument \fIversion\fR specifies which version of \s-1GCC\s0 to run.
7774 This is useful when multiple versions are installed.  For example,
7775 \&\fIversion\fR might be \fB4.0\fR, meaning to run \s-1GCC\s0 version 4.0.
7777 The \fB\-V\fR and \fB\-b\fR options work by running the
7778 \&\fI<machine>\-gcc\-<version>\fR executable, so there's no real reason to
7779 use them if you can just run that directly.
7780 .Sh "Hardware Models and Configurations"
7781 .IX Subsection "Hardware Models and Configurations"
7782 Earlier we discussed the standard option \fB\-b\fR which chooses among
7783 different installed compilers for completely different target
7784 machines, such as \s-1VAX\s0 vs. 68000 vs. 80386.
7786 In addition, each of these target machine types can have its own
7787 special options, starting with \fB\-m\fR, to choose among various
7788 hardware models or configurations\-\-\-for example, 68010 vs 68020,
7789 floating coprocessor or none.  A single installed version of the
7790 compiler can compile for any model or configuration, according to the
7791 options specified.
7793 Some configurations of the compiler also support additional special
7794 options, usually for compatibility with other compilers on the same
7795 platform.
7797 \fI\s-1ARC\s0 Options\fR
7798 .IX Subsection "ARC Options"
7800 These options are defined for \s-1ARC\s0 implementations:
7801 .IP "\fB\-EL\fR" 4
7802 .IX Item "-EL"
7803 Compile code for little endian mode.  This is the default.
7804 .IP "\fB\-EB\fR" 4
7805 .IX Item "-EB"
7806 Compile code for big endian mode.
7807 .IP "\fB\-mmangle\-cpu\fR" 4
7808 .IX Item "-mmangle-cpu"
7809 Prepend the name of the cpu to all public symbol names.
7810 In multiple-processor systems, there are many \s-1ARC\s0 variants with different
7811 instruction and register set characteristics.  This flag prevents code
7812 compiled for one cpu to be linked with code compiled for another.
7813 No facility exists for handling variants that are \*(L"almost identical\*(R".
7814 This is an all or nothing option.
7815 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
7816 .IX Item "-mcpu=cpu"
7817 Compile code for \s-1ARC\s0 variant \fIcpu\fR.
7818 Which variants are supported depend on the configuration.
7819 All variants support \fB\-mcpu=base\fR, this is the default.
7820 .IP "\fB\-mtext=\fR\fItext-section\fR" 4
7821 .IX Item "-mtext=text-section"
7822 .PD 0
7823 .IP "\fB\-mdata=\fR\fIdata-section\fR" 4
7824 .IX Item "-mdata=data-section"
7825 .IP "\fB\-mrodata=\fR\fIreadonly-data-section\fR" 4
7826 .IX Item "-mrodata=readonly-data-section"
7828 Put functions, data, and readonly data in \fItext-section\fR,
7829 \&\fIdata-section\fR, and \fIreadonly-data-section\fR respectively
7830 by default.  This can be overridden with the \f(CW\*(C`section\*(C'\fR attribute.
7832 \fI\s-1ARM\s0 Options\fR
7833 .IX Subsection "ARM Options"
7835 These \fB\-m\fR options are defined for Advanced \s-1RISC\s0 Machines (\s-1ARM\s0)
7836 architectures:
7837 .IP "\fB\-mabi=\fR\fIname\fR" 4
7838 .IX Item "-mabi=name"
7839 Generate code for the specified \s-1ABI\s0.  Permissible values are: \fBapcs-gnu\fR,
7840 \&\fBatpcs\fR, \fBaapcs\fR, \fBaapcs-linux\fR and \fBiwmmxt\fR.
7841 .IP "\fB\-mapcs\-frame\fR" 4
7842 .IX Item "-mapcs-frame"
7843 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
7844 Standard for all functions, even if this is not strictly necessary for
7845 correct execution of the code.  Specifying \fB\-fomit\-frame\-pointer\fR
7846 with this option will cause the stack frames not to be generated for
7847 leaf functions.  The default is \fB\-mno\-apcs\-frame\fR.
7848 .IP "\fB\-mapcs\fR" 4
7849 .IX Item "-mapcs"
7850 This is a synonym for \fB\-mapcs\-frame\fR.
7851 .IP "\fB\-mthumb\-interwork\fR" 4
7852 .IX Item "-mthumb-interwork"
7853 Generate code which supports calling between the \s-1ARM\s0 and Thumb
7854 instruction sets.  Without this option the two instruction sets cannot
7855 be reliably used inside one program.  The default is
7856 \&\fB\-mno\-thumb\-interwork\fR, since slightly larger code is generated
7857 when \fB\-mthumb\-interwork\fR is specified.
7858 .IP "\fB\-mno\-sched\-prolog\fR" 4
7859 .IX Item "-mno-sched-prolog"
7860 Prevent the reordering of instructions in the function prolog, or the
7861 merging of those instruction with the instructions in the function's
7862 body.  This means that all functions will start with a recognizable set
7863 of instructions (or in fact one of a choice from a small set of
7864 different function prologues), and this information can be used to
7865 locate the start if functions inside an executable piece of code.  The
7866 default is \fB\-msched\-prolog\fR.
7867 .IP "\fB\-mhard\-float\fR" 4
7868 .IX Item "-mhard-float"
7869 Generate output containing floating point instructions.  This is the
7870 default.
7871 .IP "\fB\-msoft\-float\fR" 4
7872 .IX Item "-msoft-float"
7873 Generate output containing library calls for floating point.
7874 \&\fBWarning:\fR the requisite libraries are not available for all \s-1ARM\s0
7875 targets.  Normally the facilities of the machine's usual C compiler are
7876 used, but this cannot be done directly in cross-compilation.  You must make
7877 your own arrangements to provide suitable library functions for
7878 cross-compilation.
7880 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
7881 therefore, it is only useful if you compile \fIall\fR of a program with
7882 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
7883 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
7884 this to work.
7885 .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
7886 .IX Item "-mfloat-abi=name"
7887 Specifies which \s-1ABI\s0 to use for floating point values.  Permissible values
7888 are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
7890 \&\fBsoft\fR and \fBhard\fR are equivalent to \fB\-msoft\-float\fR
7891 and \fB\-mhard\-float\fR respectively.  \fBsoftfp\fR allows the generation
7892 of floating point instructions, but still uses the soft-float calling
7893 conventions.
7894 .IP "\fB\-mlittle\-endian\fR" 4
7895 .IX Item "-mlittle-endian"
7896 Generate code for a processor running in little-endian mode.  This is
7897 the default for all standard configurations.
7898 .IP "\fB\-mbig\-endian\fR" 4
7899 .IX Item "-mbig-endian"
7900 Generate code for a processor running in big-endian mode; the default is
7901 to compile code for a little-endian processor.
7902 .IP "\fB\-mwords\-little\-endian\fR" 4
7903 .IX Item "-mwords-little-endian"
7904 This option only applies when generating code for big-endian processors.
7905 Generate code for a little-endian word order but a big-endian byte
7906 order.  That is, a byte order of the form \fB32107654\fR.  Note: this
7907 option should only be used if you require compatibility with code for
7908 big-endian \s-1ARM\s0 processors generated by versions of the compiler prior to
7909 2.8.
7910 .IP "\fB\-mcpu=\fR\fIname\fR" 4
7911 .IX Item "-mcpu=name"
7912 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
7913 to determine what kind of instructions it can emit when generating
7914 assembly code.  Permissible names are: \fBarm2\fR, \fBarm250\fR,
7915 \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
7916 \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
7917 \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
7918 \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
7919 \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR,
7920 \&\fBarm8\fR, \fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
7921 \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
7922 \&\fBarm920t\fR, \fBarm922t\fR, \fBarm946e\-s\fR, \fBarm966e\-s\fR,
7923 \&\fBarm968e\-s\fR, \fBarm926ej\-s\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
7924 \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ej\-s\fR,
7925 \&\fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
7926 \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
7927 \&\fBarm1156t2\-s\fR, \fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR,
7928 \&\fBcortex\-a8\fR, \fBcortex\-r4\fR, \fBcortex\-m3\fR,
7929 \&\fBxscale\fR, \fBiwmmxt\fR, \fBep9312\fR.
7930 .IP "\fB\-mtune=\fR\fIname\fR" 4
7931 .IX Item "-mtune=name"
7932 This option is very similar to the \fB\-mcpu=\fR option, except that
7933 instead of specifying the actual target processor type, and hence
7934 restricting which instructions can be used, it specifies that \s-1GCC\s0 should
7935 tune the performance of the code as if the target were of the type
7936 specified in this option, but still choosing the instructions that it
7937 will generate based on the cpu specified by a \fB\-mcpu=\fR option.
7938 For some \s-1ARM\s0 implementations better performance can be obtained by using
7939 this option.
7940 .IP "\fB\-march=\fR\fIname\fR" 4
7941 .IX Item "-march=name"
7942 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
7943 name to determine what kind of instructions it can emit when generating
7944 assembly code.  This option can be used in conjunction with or instead
7945 of the \fB\-mcpu=\fR option.  Permissible names are: \fBarmv2\fR,
7946 \&\fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR, \fBarmv4\fR, \fBarmv4t\fR,
7947 \&\fBarmv5\fR, \fBarmv5t\fR, \fBarmv5te\fR, \fBarmv6\fR, \fBarmv6j\fR,
7948 \&\fBarmv6t2\fR, \fBarmv6z\fR, \fBarmv6zk\fR, \fBarmv7\fR, \fBarmv7\-a\fR,
7949 \&\fBarmv7\-r\fR, \fBarmv7\-m\fR, \fBiwmmxt\fR, \fBep9312\fR.
7950 .IP "\fB\-mfpu=\fR\fIname\fR" 4
7951 .IX Item "-mfpu=name"
7952 .PD 0
7953 .IP "\fB\-mfpe=\fR\fInumber\fR" 4
7954 .IX Item "-mfpe=number"
7955 .IP "\fB\-mfp=\fR\fInumber\fR" 4
7956 .IX Item "-mfp=number"
7958 This specifies what floating point hardware (or hardware emulation) is
7959 available on the target.  Permissible names are: \fBfpa\fR, \fBfpe2\fR,
7960 \&\fBfpe3\fR, \fBmaverick\fR, \fBvfp\fR.  \fB\-mfp\fR and \fB\-mfpe\fR
7961 are synonyms for \fB\-mfpu\fR=\fBfpe\fR\fInumber\fR, for compatibility
7962 with older versions of \s-1GCC\s0.
7964 If \fB\-msoft\-float\fR is specified this specifies the format of
7965 floating point values.
7966 .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
7967 .IX Item "-mstructure-size-boundary=n"
7968 The size of all structures and unions will be rounded up to a multiple
7969 of the number of bits set by this option.  Permissible values are 8, 32
7970 and 64.  The default value varies for different toolchains.  For the \s-1COFF\s0
7971 targeted toolchain the default value is 8.  A value of 64 is only allowed
7972 if the underlying \s-1ABI\s0 supports it.
7974 Specifying the larger number can produce faster, more efficient code, but
7975 can also increase the size of the program.  Different values are potentially
7976 incompatible.  Code compiled with one value cannot necessarily expect to
7977 work with code or libraries compiled with another value, if they exchange
7978 information using structures or unions.
7979 .IP "\fB\-mabort\-on\-noreturn\fR" 4
7980 .IX Item "-mabort-on-noreturn"
7981 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
7982 \&\f(CW\*(C`noreturn\*(C'\fR function.  It will be executed if the function tries to
7983 return.
7984 .IP "\fB\-mlong\-calls\fR" 4
7985 .IX Item "-mlong-calls"
7986 .PD 0
7987 .IP "\fB\-mno\-long\-calls\fR" 4
7988 .IX Item "-mno-long-calls"
7990 Tells the compiler to perform function calls by first loading the
7991 address of the function into a register and then performing a subroutine
7992 call on this register.  This switch is needed if the target function
7993 will lie outside of the 64 megabyte addressing range of the offset based
7994 version of subroutine call instruction.
7996 Even if this switch is enabled, not all function calls will be turned
7997 into long calls.  The heuristic is that static functions, functions
7998 which have the \fBshort-call\fR attribute, functions that are inside
7999 the scope of a \fB#pragma no_long_calls\fR directive and functions whose
8000 definitions have already been compiled within the current compilation
8001 unit, will not be turned into long calls.  The exception to this rule is
8002 that weak function definitions, functions with the \fBlong-call\fR
8003 attribute or the \fBsection\fR attribute, and functions that are within
8004 the scope of a \fB#pragma long_calls\fR directive, will always be
8005 turned into long calls.
8007 This feature is not enabled by default.  Specifying
8008 \&\fB\-mno\-long\-calls\fR will restore the default behavior, as will
8009 placing the function calls within the scope of a \fB#pragma
8010 long_calls_off\fR directive.  Note these switches have no effect on how
8011 the compiler generates code to handle function calls via function
8012 pointers.
8013 .IP "\fB\-mnop\-fun\-dllimport\fR" 4
8014 .IX Item "-mnop-fun-dllimport"
8015 Disable support for the \f(CW\*(C`dllimport\*(C'\fR attribute.
8016 .IP "\fB\-msingle\-pic\-base\fR" 4
8017 .IX Item "-msingle-pic-base"
8018 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
8019 loading it in the prologue for each function.  The run-time system is
8020 responsible for initializing this register with an appropriate value
8021 before execution begins.
8022 .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
8023 .IX Item "-mpic-register=reg"
8024 Specify the register to be used for \s-1PIC\s0 addressing.  The default is R10
8025 unless stack-checking is enabled, when R9 is used.
8026 .IP "\fB\-mcirrus\-fix\-invalid\-insns\fR" 4
8027 .IX Item "-mcirrus-fix-invalid-insns"
8028 Insert NOPs into the instruction stream to in order to work around
8029 problems with invalid Maverick instruction combinations.  This option
8030 is only valid if the \fB\-mcpu=ep9312\fR option has been used to
8031 enable generation of instructions for the Cirrus Maverick floating
8032 point co-processor.  This option is not enabled by default, since the
8033 problem is only present in older Maverick implementations.  The default
8034 can be re-enabled by use of the \fB\-mno\-cirrus\-fix\-invalid\-insns\fR
8035 switch.
8036 .IP "\fB\-mpoke\-function\-name\fR" 4
8037 .IX Item "-mpoke-function-name"
8038 Write the name of each function into the text section, directly
8039 preceding the function prologue.  The generated code is similar to this:
8041 .Vb 9
8042 \&             t0
8043 \&                 .ascii "arm_poke_function_name", 0
8044 \&                 .align
8045 \&             t1
8046 \&                 .word 0xff000000 + (t1 \- t0)
8047 \&             arm_poke_function_name
8048 \&                 mov     ip, sp
8049 \&                 stmfd   sp!, {fp, ip, lr, pc}
8050 \&                 sub     fp, ip, #4
8053 When performing a stack backtrace, code can inspect the value of
8054 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
8055 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
8056 there is a function name embedded immediately preceding this location
8057 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
8058 .IP "\fB\-mthumb\fR" 4
8059 .IX Item "-mthumb"
8060 Generate code for the Thumb instruction set.  The default is to
8061 use the 32\-bit \s-1ARM\s0 instruction set.
8062 This option automatically enables either 16\-bit Thumb\-1 or
8063 mixed 16/32\-bit Thumb\-2 instructions based on the \fB\-mcpu=\fR\fIname\fR
8064 and \fB\-march=\fR\fIname\fR options.
8065 .IP "\fB\-mtpcs\-frame\fR" 4
8066 .IX Item "-mtpcs-frame"
8067 Generate a stack frame that is compliant with the Thumb Procedure Call
8068 Standard for all non-leaf functions.  (A leaf function is one that does
8069 not call any other functions.)  The default is \fB\-mno\-tpcs\-frame\fR.
8070 .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
8071 .IX Item "-mtpcs-leaf-frame"
8072 Generate a stack frame that is compliant with the Thumb Procedure Call
8073 Standard for all leaf functions.  (A leaf function is one that does
8074 not call any other functions.)  The default is \fB\-mno\-apcs\-leaf\-frame\fR.
8075 .IP "\fB\-mcallee\-super\-interworking\fR" 4
8076 .IX Item "-mcallee-super-interworking"
8077 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
8078 instruction set header which switches to Thumb mode before executing the
8079 rest of the function.  This allows these functions to be called from
8080 non-interworking code.
8081 .IP "\fB\-mcaller\-super\-interworking\fR" 4
8082 .IX Item "-mcaller-super-interworking"
8083 Allows calls via function pointers (including virtual functions) to
8084 execute correctly regardless of whether the target code has been
8085 compiled for interworking or not.  There is a small overhead in the cost
8086 of executing a function pointer if this option is enabled.
8087 .IP "\fB\-mtp=\fR\fIname\fR" 4
8088 .IX Item "-mtp=name"
8089 Specify the access model for the thread local storage pointer.  The valid
8090 models are \fBsoft\fR, which generates calls to \f(CW\*(C`_\|_aeabi_read_tp\*(C'\fR,
8091 \&\fBcp15\fR, which fetches the thread pointer from \f(CW\*(C`cp15\*(C'\fR directly
8092 (supported in the arm6k architecture), and \fBauto\fR, which uses the
8093 best available method for the selected processor.  The default setting is
8094 \&\fBauto\fR.
8096 \fI\s-1AVR\s0 Options\fR
8097 .IX Subsection "AVR Options"
8099 These options are defined for \s-1AVR\s0 implementations:
8100 .IP "\fB\-mmcu=\fR\fImcu\fR" 4
8101 .IX Item "-mmcu=mcu"
8102 Specify \s-1ATMEL\s0 \s-1AVR\s0 instruction set or \s-1MCU\s0 type.
8104 Instruction set avr1 is for the minimal \s-1AVR\s0 core, not supported by the C
8105 compiler, only for assembler programs (\s-1MCU\s0 types: at90s1200, attiny10,
8106 attiny11, attiny12, attiny15, attiny28).
8108 Instruction set avr2 (default) is for the classic \s-1AVR\s0 core with up to
8109 8K program memory space (\s-1MCU\s0 types: at90s2313, at90s2323, attiny22,
8110 at90s2333, at90s2343, at90s4414, at90s4433, at90s4434, at90s8515,
8111 at90c8534, at90s8535).
8113 Instruction set avr3 is for the classic \s-1AVR\s0 core with up to 128K program
8114 memory space (\s-1MCU\s0 types: atmega103, atmega603, at43usb320, at76c711).
8116 Instruction set avr4 is for the enhanced \s-1AVR\s0 core with up to 8K program
8117 memory space (\s-1MCU\s0 types: atmega8, atmega83, atmega85).
8119 Instruction set avr5 is for the enhanced \s-1AVR\s0 core with up to 128K program
8120 memory space (\s-1MCU\s0 types: atmega16, atmega161, atmega163, atmega32, atmega323,
8121 atmega64, atmega128, at43usb355, at94k).
8122 .IP "\fB\-msize\fR" 4
8123 .IX Item "-msize"
8124 Output instruction sizes to the asm file.
8125 .IP "\fB\-minit\-stack=\fR\fIN\fR" 4
8126 .IX Item "-minit-stack=N"
8127 Specify the initial stack address, which may be a symbol or numeric value,
8128 \&\fB_\|_stack\fR is the default.
8129 .IP "\fB\-mno\-interrupts\fR" 4
8130 .IX Item "-mno-interrupts"
8131 Generated code is not compatible with hardware interrupts.
8132 Code size will be smaller.
8133 .IP "\fB\-mcall\-prologues\fR" 4
8134 .IX Item "-mcall-prologues"
8135 Functions prologues/epilogues expanded as call to appropriate
8136 subroutines.  Code size will be smaller.
8137 .IP "\fB\-mno\-tablejump\fR" 4
8138 .IX Item "-mno-tablejump"
8139 Do not generate tablejump insns which sometimes increase code size.
8140 .IP "\fB\-mtiny\-stack\fR" 4
8141 .IX Item "-mtiny-stack"
8142 Change only the low 8 bits of the stack pointer.
8143 .IP "\fB\-mint8\fR" 4
8144 .IX Item "-mint8"
8145 Assume int to be 8 bit integer.  This affects the sizes of all types: A
8146 char will be 1 byte, an int will be 1 byte, an long will be 2 bytes
8147 and long long will be 4 bytes.  Please note that this option does not
8148 comply to the C standards, but it will provide you with smaller code
8149 size.
8151 \fIBlackfin Options\fR
8152 .IX Subsection "Blackfin Options"
8153 .IP "\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR]" 4
8154 .IX Item "-mcpu=cpu[-sirevision]"
8155 Specifies the name of the target Blackfin processor.  Currently, \fIcpu\fR
8156 can be one of \fBbf522\fR, \fBbf523\fR, \fBbf524\fR,
8157 \&\fBbf525\fR, \fBbf526\fR, \fBbf527\fR,
8158 \&\fBbf531\fR, \fBbf532\fR, \fBbf533\fR, \fBbf534\fR,
8159 \&\fBbf536\fR, \fBbf537\fR, \fBbf538\fR, \fBbf539\fR,
8160 \&\fBbf542\fR, \fBbf544\fR, \fBbf547\fR, \fBbf548\fR, \fBbf549\fR,
8161 \&\fBbf561\fR.
8162 The optional \fIsirevision\fR specifies the silicon revision of the target
8163 Blackfin processor.  Any workarounds available for the targeted silicon revision
8164 will be enabled.  If \fIsirevision\fR is \fBnone\fR, no workarounds are enabled.
8165 If \fIsirevision\fR is \fBany\fR, all workarounds for the targeted processor
8166 will be enabled.  The \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR macro is defined to two
8167 hexadecimal digits representing the major and minor numbers in the silicon
8168 revision.  If \fIsirevision\fR is \fBnone\fR, the \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR
8169 is not defined.  If \fIsirevision\fR is \fBany\fR, the
8170 \&\f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR is defined to be \f(CW0xffff\fR.
8171 If this optional \fIsirevision\fR is not used, \s-1GCC\s0 assumes the latest known
8172 silicon revision of the targeted Blackfin processor.
8174 Support for \fBbf561\fR is incomplete.  For \fBbf561\fR,
8175 Only the processor macro is defined.
8176 Without this option, \fBbf532\fR is used as the processor by default.
8177 The corresponding predefined processor macros for \fIcpu\fR is to
8178 be defined.  And for \fBbfin-elf\fR toolchain, this causes the hardware \s-1BSP\s0
8179 provided by libgloss to be linked in if \fB\-msim\fR is not given.
8180 .IP "\fB\-msim\fR" 4
8181 .IX Item "-msim"
8182 Specifies that the program will be run on the simulator.  This causes
8183 the simulator \s-1BSP\s0 provided by libgloss to be linked in.  This option
8184 has effect only for \fBbfin-elf\fR toolchain.
8185 Certain other options, such as \fB\-mid\-shared\-library\fR and
8186 \&\fB\-mfdpic\fR, imply \fB\-msim\fR.
8187 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
8188 .IX Item "-momit-leaf-frame-pointer"
8189 Don't keep the frame pointer in a register for leaf functions.  This
8190 avoids the instructions to save, set up and restore frame pointers and
8191 makes an extra register available in leaf functions.  The option
8192 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions
8193 which might make debugging harder.
8194 .IP "\fB\-mspecld\-anomaly\fR" 4
8195 .IX Item "-mspecld-anomaly"
8196 When enabled, the compiler will ensure that the generated code does not
8197 contain speculative loads after jump instructions. If this option is used,
8198 \&\f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_LOADS\*(C'\fR is defined.
8199 .IP "\fB\-mno\-specld\-anomaly\fR" 4
8200 .IX Item "-mno-specld-anomaly"
8201 Don't generate extra code to prevent speculative loads from occurring.
8202 .IP "\fB\-mcsync\-anomaly\fR" 4
8203 .IX Item "-mcsync-anomaly"
8204 When enabled, the compiler will ensure that the generated code does not
8205 contain \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions too soon after conditional branches.
8206 If this option is used, \f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_SYNCS\*(C'\fR is defined.
8207 .IP "\fB\-mno\-csync\-anomaly\fR" 4
8208 .IX Item "-mno-csync-anomaly"
8209 Don't generate extra code to prevent \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions from
8210 occurring too soon after a conditional branch.
8211 .IP "\fB\-mlow\-64k\fR" 4
8212 .IX Item "-mlow-64k"
8213 When enabled, the compiler is free to take advantage of the knowledge that
8214 the entire program fits into the low 64k of memory.
8215 .IP "\fB\-mno\-low\-64k\fR" 4
8216 .IX Item "-mno-low-64k"
8217 Assume that the program is arbitrarily large.  This is the default.
8218 .IP "\fB\-mstack\-check\-l1\fR" 4
8219 .IX Item "-mstack-check-l1"
8220 Do stack checking using information placed into L1 scratchpad memory by the
8221 uClinux kernel.
8222 .IP "\fB\-mid\-shared\-library\fR" 4
8223 .IX Item "-mid-shared-library"
8224 Generate code that supports shared libraries via the library \s-1ID\s0 method.
8225 This allows for execute in place and shared libraries in an environment
8226 without virtual memory management.  This option implies \fB\-fPIC\fR.
8227 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
8228 .IP "\fB\-mno\-id\-shared\-library\fR" 4
8229 .IX Item "-mno-id-shared-library"
8230 Generate code that doesn't assume \s-1ID\s0 based shared libraries are being used.
8231 This is the default.
8232 .IP "\fB\-mleaf\-id\-shared\-library\fR" 4
8233 .IX Item "-mleaf-id-shared-library"
8234 Generate code that supports shared libraries via the library \s-1ID\s0 method,
8235 but assumes that this library or executable won't link against any other
8236 \&\s-1ID\s0 shared libraries.  That allows the compiler to use faster code for jumps
8237 and calls.
8238 .IP "\fB\-mno\-leaf\-id\-shared\-library\fR" 4
8239 .IX Item "-mno-leaf-id-shared-library"
8240 Do not assume that the code being compiled won't link against any \s-1ID\s0 shared
8241 libraries.  Slower code will be generated for jump and call insns.
8242 .IP "\fB\-mshared\-library\-id=n\fR" 4
8243 .IX Item "-mshared-library-id=n"
8244 Specified the identification number of the \s-1ID\s0 based shared library being
8245 compiled.  Specifying a value of 0 will generate more compact code, specifying
8246 other values will force the allocation of that number to the current
8247 library but is no more space or time efficient than omitting this option.
8248 .IP "\fB\-msep\-data\fR" 4
8249 .IX Item "-msep-data"
8250 Generate code that allows the data segment to be located in a different
8251 area of memory from the text segment.  This allows for execute in place in
8252 an environment without virtual memory management by eliminating relocations
8253 against the text section.
8254 .IP "\fB\-mno\-sep\-data\fR" 4
8255 .IX Item "-mno-sep-data"
8256 Generate code that assumes that the data segment follows the text segment.
8257 This is the default.
8258 .IP "\fB\-mlong\-calls\fR" 4
8259 .IX Item "-mlong-calls"
8260 .PD 0
8261 .IP "\fB\-mno\-long\-calls\fR" 4
8262 .IX Item "-mno-long-calls"
8264 Tells the compiler to perform function calls by first loading the
8265 address of the function into a register and then performing a subroutine
8266 call on this register.  This switch is needed if the target function
8267 will lie outside of the 24 bit addressing range of the offset based
8268 version of subroutine call instruction.
8270 This feature is not enabled by default.  Specifying
8271 \&\fB\-mno\-long\-calls\fR will restore the default behavior.  Note these
8272 switches have no effect on how the compiler generates code to handle
8273 function calls via function pointers.
8274 .IP "\fB\-mfast\-fp\fR" 4
8275 .IX Item "-mfast-fp"
8276 Link with the fast floating-point library. This library relaxes some of
8277 the \s-1IEEE\s0 floating-point standard's rules for checking inputs against
8278 Not-a-Number (\s-1NAN\s0), in the interest of performance.
8279 .IP "\fB\-minline\-plt\fR" 4
8280 .IX Item "-minline-plt"
8281 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
8282 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
8284 \fI\s-1CRIS\s0 Options\fR
8285 .IX Subsection "CRIS Options"
8287 These options are defined specifically for the \s-1CRIS\s0 ports.
8288 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
8289 .IX Item "-march=architecture-type"
8290 .PD 0
8291 .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
8292 .IX Item "-mcpu=architecture-type"
8294 Generate code for the specified architecture.  The choices for
8295 \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
8296 respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX\s0.
8297 Default is \fBv0\fR except for cris-axis-linux-gnu, where the default is
8298 \&\fBv10\fR.
8299 .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
8300 .IX Item "-mtune=architecture-type"
8301 Tune to \fIarchitecture-type\fR everything applicable about the generated
8302 code, except for the \s-1ABI\s0 and the set of available instructions.  The
8303 choices for \fIarchitecture-type\fR are the same as for
8304 \&\fB\-march=\fR\fIarchitecture-type\fR.
8305 .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
8306 .IX Item "-mmax-stack-frame=n"
8307 Warn when the stack frame of a function exceeds \fIn\fR bytes.
8308 .IP "\fB\-melinux\-stacksize=\fR\fIn\fR" 4
8309 .IX Item "-melinux-stacksize=n"
8310 Only available with the \fBcris-axis-aout\fR target.  Arranges for
8311 indications in the program to the kernel loader that the stack of the
8312 program should be set to \fIn\fR bytes.
8313 .IP "\fB\-metrax4\fR" 4
8314 .IX Item "-metrax4"
8315 .PD 0
8316 .IP "\fB\-metrax100\fR" 4
8317 .IX Item "-metrax100"
8319 The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
8320 \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
8321 .IP "\fB\-mmul\-bug\-workaround\fR" 4
8322 .IX Item "-mmul-bug-workaround"
8323 .PD 0
8324 .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
8325 .IX Item "-mno-mul-bug-workaround"
8327 Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
8328 models where it applies.  This option is active by default.
8329 .IP "\fB\-mpdebug\fR" 4
8330 .IX Item "-mpdebug"
8331 Enable CRIS-specific verbose debug-related information in the assembly
8332 code.  This option also has the effect to turn off the \fB#NO_APP\fR
8333 formatted-code indicator to the assembler at the beginning of the
8334 assembly file.
8335 .IP "\fB\-mcc\-init\fR" 4
8336 .IX Item "-mcc-init"
8337 Do not use condition-code results from previous instruction; always emit
8338 compare and test instructions before use of condition codes.
8339 .IP "\fB\-mno\-side\-effects\fR" 4
8340 .IX Item "-mno-side-effects"
8341 Do not emit instructions with side-effects in addressing modes other than
8342 post-increment.
8343 .IP "\fB\-mstack\-align\fR" 4
8344 .IX Item "-mstack-align"
8345 .PD 0
8346 .IP "\fB\-mno\-stack\-align\fR" 4
8347 .IX Item "-mno-stack-align"
8348 .IP "\fB\-mdata\-align\fR" 4
8349 .IX Item "-mdata-align"
8350 .IP "\fB\-mno\-data\-align\fR" 4
8351 .IX Item "-mno-data-align"
8352 .IP "\fB\-mconst\-align\fR" 4
8353 .IX Item "-mconst-align"
8354 .IP "\fB\-mno\-const\-align\fR" 4
8355 .IX Item "-mno-const-align"
8357 These options (no-options) arranges (eliminate arrangements) for the
8358 stack-frame, individual data and constants to be aligned for the maximum
8359 single data access size for the chosen \s-1CPU\s0 model.  The default is to
8360 arrange for 32\-bit alignment.  \s-1ABI\s0 details such as structure layout are
8361 not affected by these options.
8362 .IP "\fB\-m32\-bit\fR" 4
8363 .IX Item "-m32-bit"
8364 .PD 0
8365 .IP "\fB\-m16\-bit\fR" 4
8366 .IX Item "-m16-bit"
8367 .IP "\fB\-m8\-bit\fR" 4
8368 .IX Item "-m8-bit"
8370 Similar to the stack\- data\- and const-align options above, these options
8371 arrange for stack-frame, writable data and constants to all be 32\-bit,
8372 16\-bit or 8\-bit aligned.  The default is 32\-bit alignment.
8373 .IP "\fB\-mno\-prologue\-epilogue\fR" 4
8374 .IX Item "-mno-prologue-epilogue"
8375 .PD 0
8376 .IP "\fB\-mprologue\-epilogue\fR" 4
8377 .IX Item "-mprologue-epilogue"
8379 With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
8380 epilogue that sets up the stack-frame are omitted and no return
8381 instructions or return sequences are generated in the code.  Use this
8382 option only together with visual inspection of the compiled code: no
8383 warnings or errors are generated when call-saved registers must be saved,
8384 or storage for local variable needs to be allocated.
8385 .IP "\fB\-mno\-gotplt\fR" 4
8386 .IX Item "-mno-gotplt"
8387 .PD 0
8388 .IP "\fB\-mgotplt\fR" 4
8389 .IX Item "-mgotplt"
8391 With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
8392 instruction sequences that load addresses for functions from the \s-1PLT\s0 part
8393 of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
8394 \&\s-1PLT\s0.  The default is \fB\-mgotplt\fR.
8395 .IP "\fB\-maout\fR" 4
8396 .IX Item "-maout"
8397 Legacy no-op option only recognized with the cris-axis-aout target.
8398 .IP "\fB\-melf\fR" 4
8399 .IX Item "-melf"
8400 Legacy no-op option only recognized with the cris-axis-elf and
8401 cris-axis-linux-gnu targets.
8402 .IP "\fB\-melinux\fR" 4
8403 .IX Item "-melinux"
8404 Only recognized with the cris-axis-aout target, where it selects a
8405 GNU/linux\-like multilib, include files and instruction set for
8406 \&\fB\-march=v8\fR.
8407 .IP "\fB\-mlinux\fR" 4
8408 .IX Item "-mlinux"
8409 Legacy no-op option only recognized with the cris-axis-linux-gnu target.
8410 .IP "\fB\-sim\fR" 4
8411 .IX Item "-sim"
8412 This option, recognized for the cris-axis-aout and cris-axis-elf arranges
8413 to link with input-output functions from a simulator library.  Code,
8414 initialized data and zero-initialized data are allocated consecutively.
8415 .IP "\fB\-sim2\fR" 4
8416 .IX Item "-sim2"
8417 Like \fB\-sim\fR, but pass linker options to locate initialized data at
8418 0x40000000 and zero-initialized data at 0x80000000.
8420 \fI\s-1CRX\s0 Options\fR
8421 .IX Subsection "CRX Options"
8423 These options are defined specifically for the \s-1CRX\s0 ports.
8424 .IP "\fB\-mmac\fR" 4
8425 .IX Item "-mmac"
8426 Enable the use of multiply-accumulate instructions. Disabled by default.
8427 .IP "\fB\-mpush\-args\fR" 4
8428 .IX Item "-mpush-args"
8429 Push instructions will be used to pass outgoing arguments when functions
8430 are called. Enabled by default.
8432 \fIDarwin Options\fR
8433 .IX Subsection "Darwin Options"
8435 These options are defined for all architectures running the Darwin operating
8436 system.
8438 \&\s-1FSF\s0 \s-1GCC\s0 on Darwin does not create \*(L"fat\*(R" object files; it will create
8439 an object file for the single architecture that it was built to
8440 target.  Apple's \s-1GCC\s0 on Darwin does create \*(L"fat\*(R" files if multiple
8441 \&\fB\-arch\fR options are used; it does so by running the compiler or
8442 linker multiple times and joining the results together with
8443 \&\fIlipo\fR.
8445 The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
8446 \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
8447 that \s-1GCC\s0 is targetting, like \fB\-mcpu\fR or \fB\-march\fR.  The
8448 \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
8450 The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
8451 mismatch.  The assembler, \fIas\fR, will only permit instructions to
8452 be used that are valid for the subtype of the file it is generating,
8453 so you cannot put 64\-bit instructions in an \fBppc750\fR object file.
8454 The linker for shared libraries, \fI/usr/bin/libtool\fR, will fail
8455 and print an error if asked to create a shared library with a less
8456 restrictive subtype than its input files (for instance, trying to put
8457 a \fBppc970\fR object file in a \fBppc7400\fR library).  The linker
8458 for executables, \fIld\fR, will quietly give the executable the most
8459 restrictive subtype of any of its input files.
8460 .IP "\fB\-F\fR\fIdir\fR" 4
8461 .IX Item "-Fdir"
8462 Add the framework directory \fIdir\fR to the head of the list of
8463 directories to be searched for header files.  These directories are
8464 interleaved with those specified by \fB\-I\fR options and are
8465 scanned in a left-to-right order.
8467 A framework directory is a directory with frameworks in it.  A
8468 framework is a directory with a \fB\*(L"Headers\*(R"\fR and/or
8469 \&\fB\*(L"PrivateHeaders\*(R"\fR directory contained directly in it that ends
8470 in \fB\*(L".framework\*(R"\fR.  The name of a framework is the name of this
8471 directory excluding the \fB\*(L".framework\*(R"\fR.  Headers associated with
8472 the framework are found in one of those two directories, with
8473 \&\fB\*(L"Headers\*(R"\fR being searched first.  A subframework is a framework
8474 directory that is in a framework's \fB\*(L"Frameworks\*(R"\fR directory.
8475 Includes of subframework headers can only appear in a header of a
8476 framework that contains the subframework, or in a sibling subframework
8477 header.  Two subframeworks are siblings if they occur in the same
8478 framework.  A subframework should not have the same name as a
8479 framework, a warning will be issued if this is violated.  Currently a
8480 subframework cannot have subframeworks, in the future, the mechanism
8481 may be extended to support this.  The standard frameworks can be found
8482 in \fB\*(L"/System/Library/Frameworks\*(R"\fR and
8483 \&\fB\*(L"/Library/Frameworks\*(R"\fR.  An example include looks like
8484 \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fBFramework\fR denotes
8485 the name of the framework and header.h is found in the
8486 \&\fB\*(L"PrivateHeaders\*(R"\fR or \fB\*(L"Headers\*(R"\fR directory.
8487 .IP "\fB\-iframework\fR\fIdir\fR" 4
8488 .IX Item "-iframeworkdir"
8489 Like \fB\-F\fR except the directory is a treated as a system
8490 directory.  The main difference between this \fB\-iframework\fR and
8491 \&\fB\-F\fR is that with \fB\-iframework\fR the compiler does not
8492 warn about constructs contained within header files found via
8493 \&\fIdir\fR.  This option is valid only for the C family of languages.
8494 .IP "\fB\-gused\fR" 4
8495 .IX Item "-gused"
8496 Emit debugging information for symbols that are used.  For \s-1STABS\s0
8497 debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
8498 This is by default \s-1ON\s0.
8499 .IP "\fB\-gfull\fR" 4
8500 .IX Item "-gfull"
8501 Emit debugging information for all symbols and types.
8502 .IP "\fB\-mmacosx\-version\-min=\fR\fIversion\fR" 4
8503 .IX Item "-mmacosx-version-min=version"
8504 The earliest version of MacOS X that this executable will run on
8505 is \fIversion\fR.  Typical values of \fIversion\fR include \f(CW10.1\fR,
8506 \&\f(CW10.2\fR, and \f(CW10.3.9\fR.
8508 If the compiler was built to use the system's headers by default,
8509 then the default for this option is the system version on which the
8510 compiler is running, otherwise the default is to make choices which
8511 are compatible with as many systems and code bases as possible.
8512 .IP "\fB\-mkernel\fR" 4
8513 .IX Item "-mkernel"
8514 Enable kernel development mode.  The \fB\-mkernel\fR option sets
8515 \&\fB\-static\fR, \fB\-fno\-common\fR, \fB\-fno\-cxa\-atexit\fR,
8516 \&\fB\-fno\-exceptions\fR, \fB\-fno\-non\-call\-exceptions\fR,
8517 \&\fB\-fapple\-kext\fR, \fB\-fno\-weak\fR and \fB\-fno\-rtti\fR where
8518 applicable.  This mode also sets \fB\-mno\-altivec\fR,
8519 \&\fB\-msoft\-float\fR, \fB\-fno\-builtin\fR and
8520 \&\fB\-mlong\-branch\fR for PowerPC targets.
8521 .IP "\fB\-mone\-byte\-bool\fR" 4
8522 .IX Item "-mone-byte-bool"
8523 Override the defaults for \fBbool\fR so that \fBsizeof(bool)==1\fR.
8524 By default \fBsizeof(bool)\fR is \fB4\fR when compiling for
8525 Darwin/PowerPC and \fB1\fR when compiling for Darwin/x86, so this
8526 option has no effect on x86.
8528 \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
8529 to generate code that is not binary compatible with code generated
8530 without that switch.  Using this switch may require recompiling all
8531 other modules in a program, including system libraries.  Use this
8532 switch to conform to a non-default data model.
8533 .IP "\fB\-mfix\-and\-continue\fR" 4
8534 .IX Item "-mfix-and-continue"
8535 .PD 0
8536 .IP "\fB\-ffix\-and\-continue\fR" 4
8537 .IX Item "-ffix-and-continue"
8538 .IP "\fB\-findirect\-data\fR" 4
8539 .IX Item "-findirect-data"
8541 Generate code suitable for fast turn around development.  Needed to
8542 enable gdb to dynamically load \f(CW\*(C`.o\*(C'\fR files into already running
8543 programs.  \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
8544 are provided for backwards compatibility.
8545 .IP "\fB\-all_load\fR" 4
8546 .IX Item "-all_load"
8547 Loads all members of static archive libraries.
8548 See man \fIld\fR\|(1) for more information.
8549 .IP "\fB\-arch_errors_fatal\fR" 4
8550 .IX Item "-arch_errors_fatal"
8551 Cause the errors having to do with files that have the wrong architecture
8552 to be fatal.
8553 .IP "\fB\-bind_at_load\fR" 4
8554 .IX Item "-bind_at_load"
8555 Causes the output file to be marked such that the dynamic linker will
8556 bind all undefined references when the file is loaded or launched.
8557 .IP "\fB\-bundle\fR" 4
8558 .IX Item "-bundle"
8559 Produce a Mach-o bundle format file.
8560 See man \fIld\fR\|(1) for more information.
8561 .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
8562 .IX Item "-bundle_loader executable"
8563 This option specifies the \fIexecutable\fR that will be loading the build
8564 output file being linked.  See man \fIld\fR\|(1) for more information.
8565 .IP "\fB\-dynamiclib\fR" 4
8566 .IX Item "-dynamiclib"
8567 When passed this option, \s-1GCC\s0 will produce a dynamic library instead of
8568 an executable when linking, using the Darwin \fIlibtool\fR command.
8569 .IP "\fB\-force_cpusubtype_ALL\fR" 4
8570 .IX Item "-force_cpusubtype_ALL"
8571 This causes \s-1GCC\s0's output file to have the \fI\s-1ALL\s0\fR subtype, instead of
8572 one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
8573 .IP "\fB\-allowable_client\fR  \fIclient_name\fR" 4
8574 .IX Item "-allowable_client  client_name"
8575 .PD 0
8576 .IP "\fB\-client_name\fR" 4
8577 .IX Item "-client_name"
8578 .IP "\fB\-compatibility_version\fR" 4
8579 .IX Item "-compatibility_version"
8580 .IP "\fB\-current_version\fR" 4
8581 .IX Item "-current_version"
8582 .IP "\fB\-dead_strip\fR" 4
8583 .IX Item "-dead_strip"
8584 .IP "\fB\-dependency\-file\fR" 4
8585 .IX Item "-dependency-file"
8586 .IP "\fB\-dylib_file\fR" 4
8587 .IX Item "-dylib_file"
8588 .IP "\fB\-dylinker_install_name\fR" 4
8589 .IX Item "-dylinker_install_name"
8590 .IP "\fB\-dynamic\fR" 4
8591 .IX Item "-dynamic"
8592 .IP "\fB\-exported_symbols_list\fR" 4
8593 .IX Item "-exported_symbols_list"
8594 .IP "\fB\-filelist\fR" 4
8595 .IX Item "-filelist"
8596 .IP "\fB\-flat_namespace\fR" 4
8597 .IX Item "-flat_namespace"
8598 .IP "\fB\-force_flat_namespace\fR" 4
8599 .IX Item "-force_flat_namespace"
8600 .IP "\fB\-headerpad_max_install_names\fR" 4
8601 .IX Item "-headerpad_max_install_names"
8602 .IP "\fB\-image_base\fR" 4
8603 .IX Item "-image_base"
8604 .IP "\fB\-init\fR" 4
8605 .IX Item "-init"
8606 .IP "\fB\-install_name\fR" 4
8607 .IX Item "-install_name"
8608 .IP "\fB\-keep_private_externs\fR" 4
8609 .IX Item "-keep_private_externs"
8610 .IP "\fB\-multi_module\fR" 4
8611 .IX Item "-multi_module"
8612 .IP "\fB\-multiply_defined\fR" 4
8613 .IX Item "-multiply_defined"
8614 .IP "\fB\-multiply_defined_unused\fR" 4
8615 .IX Item "-multiply_defined_unused"
8616 .IP "\fB\-noall_load\fR" 4
8617 .IX Item "-noall_load"
8618 .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
8619 .IX Item "-no_dead_strip_inits_and_terms"
8620 .IP "\fB\-nofixprebinding\fR" 4
8621 .IX Item "-nofixprebinding"
8622 .IP "\fB\-nomultidefs\fR" 4
8623 .IX Item "-nomultidefs"
8624 .IP "\fB\-noprebind\fR" 4
8625 .IX Item "-noprebind"
8626 .IP "\fB\-noseglinkedit\fR" 4
8627 .IX Item "-noseglinkedit"
8628 .IP "\fB\-pagezero_size\fR" 4
8629 .IX Item "-pagezero_size"
8630 .IP "\fB\-prebind\fR" 4
8631 .IX Item "-prebind"
8632 .IP "\fB\-prebind_all_twolevel_modules\fR" 4
8633 .IX Item "-prebind_all_twolevel_modules"
8634 .IP "\fB\-private_bundle\fR" 4
8635 .IX Item "-private_bundle"
8636 .IP "\fB\-read_only_relocs\fR" 4
8637 .IX Item "-read_only_relocs"
8638 .IP "\fB\-sectalign\fR" 4
8639 .IX Item "-sectalign"
8640 .IP "\fB\-sectobjectsymbols\fR" 4
8641 .IX Item "-sectobjectsymbols"
8642 .IP "\fB\-whyload\fR" 4
8643 .IX Item "-whyload"
8644 .IP "\fB\-seg1addr\fR" 4
8645 .IX Item "-seg1addr"
8646 .IP "\fB\-sectcreate\fR" 4
8647 .IX Item "-sectcreate"
8648 .IP "\fB\-sectobjectsymbols\fR" 4
8649 .IX Item "-sectobjectsymbols"
8650 .IP "\fB\-sectorder\fR" 4
8651 .IX Item "-sectorder"
8652 .IP "\fB\-segaddr\fR" 4
8653 .IX Item "-segaddr"
8654 .IP "\fB\-segs_read_only_addr\fR" 4
8655 .IX Item "-segs_read_only_addr"
8656 .IP "\fB\-segs_read_write_addr\fR" 4
8657 .IX Item "-segs_read_write_addr"
8658 .IP "\fB\-seg_addr_table\fR" 4
8659 .IX Item "-seg_addr_table"
8660 .IP "\fB\-seg_addr_table_filename\fR" 4
8661 .IX Item "-seg_addr_table_filename"
8662 .IP "\fB\-seglinkedit\fR" 4
8663 .IX Item "-seglinkedit"
8664 .IP "\fB\-segprot\fR" 4
8665 .IX Item "-segprot"
8666 .IP "\fB\-segs_read_only_addr\fR" 4
8667 .IX Item "-segs_read_only_addr"
8668 .IP "\fB\-segs_read_write_addr\fR" 4
8669 .IX Item "-segs_read_write_addr"
8670 .IP "\fB\-single_module\fR" 4
8671 .IX Item "-single_module"
8672 .IP "\fB\-static\fR" 4
8673 .IX Item "-static"
8674 .IP "\fB\-sub_library\fR" 4
8675 .IX Item "-sub_library"
8676 .IP "\fB\-sub_umbrella\fR" 4
8677 .IX Item "-sub_umbrella"
8678 .IP "\fB\-twolevel_namespace\fR" 4
8679 .IX Item "-twolevel_namespace"
8680 .IP "\fB\-umbrella\fR" 4
8681 .IX Item "-umbrella"
8682 .IP "\fB\-undefined\fR" 4
8683 .IX Item "-undefined"
8684 .IP "\fB\-unexported_symbols_list\fR" 4
8685 .IX Item "-unexported_symbols_list"
8686 .IP "\fB\-weak_reference_mismatches\fR" 4
8687 .IX Item "-weak_reference_mismatches"
8688 .IP "\fB\-whatsloaded\fR" 4
8689 .IX Item "-whatsloaded"
8691 These options are passed to the Darwin linker.  The Darwin linker man page
8692 describes them in detail.
8694 \fI\s-1DEC\s0 Alpha Options\fR
8695 .IX Subsection "DEC Alpha Options"
8697 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
8698 .IP "\fB\-mno\-soft\-float\fR" 4
8699 .IX Item "-mno-soft-float"
8700 .PD 0
8701 .IP "\fB\-msoft\-float\fR" 4
8702 .IX Item "-msoft-float"
8704 Use (do not use) the hardware floating-point instructions for
8705 floating-point operations.  When \fB\-msoft\-float\fR is specified,
8706 functions in \fIlibgcc.a\fR will be used to perform floating-point
8707 operations.  Unless they are replaced by routines that emulate the
8708 floating-point operations, or compiled in such a way as to call such
8709 emulations routines, these routines will issue floating-point
8710 operations.   If you are compiling for an Alpha without floating-point
8711 operations, you must ensure that the library is built so as not to call
8712 them.
8714 Note that Alpha implementations without floating-point operations are
8715 required to have floating-point registers.
8716 .IP "\fB\-mfp\-reg\fR" 4
8717 .IX Item "-mfp-reg"
8718 .PD 0
8719 .IP "\fB\-mno\-fp\-regs\fR" 4
8720 .IX Item "-mno-fp-regs"
8722 Generate code that uses (does not use) the floating-point register set.
8723 \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR.  If the floating-point
8724 register set is not used, floating point operands are passed in integer
8725 registers as if they were integers and floating-point results are passed
8726 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence,
8727 so any function with a floating-point argument or return value called by code
8728 compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
8729 option.
8731 A typical use of this option is building a kernel that does not use,
8732 and hence need not save and restore, any floating-point registers.
8733 .IP "\fB\-mieee\fR" 4
8734 .IX Item "-mieee"
8735 The Alpha architecture implements floating-point hardware optimized for
8736 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating
8737 point standard.  However, for full compliance, software assistance is
8738 required.  This option generates code fully \s-1IEEE\s0 compliant code
8739 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
8740 If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
8741 defined during compilation.  The resulting code is less efficient but is
8742 able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
8743 values such as not-a-number and plus/minus infinity.  Other Alpha
8744 compilers call this option \fB\-ieee_with_no_inexact\fR.
8745 .IP "\fB\-mieee\-with\-inexact\fR" 4
8746 .IX Item "-mieee-with-inexact"
8747 This is like \fB\-mieee\fR except the generated code also maintains
8748 the \s-1IEEE\s0 \fIinexact-flag\fR.  Turning on this option causes the
8749 generated code to implement fully-compliant \s-1IEEE\s0 math.  In addition to
8750 \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
8751 macro.  On some Alpha implementations the resulting code may execute
8752 significantly slower than the code generated by default.  Since there is
8753 very little code that depends on the \fIinexact-flag\fR, you should
8754 normally not specify this option.  Other Alpha compilers call this
8755 option \fB\-ieee_with_inexact\fR.
8756 .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
8757 .IX Item "-mfp-trap-mode=trap-mode"
8758 This option controls what floating-point related traps are enabled.
8759 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
8760 The trap mode can be set to one of four values:
8761 .RS 4
8762 .IP "\fBn\fR" 4
8763 .IX Item "n"
8764 This is the default (normal) setting.  The only traps that are enabled
8765 are the ones that cannot be disabled in software (e.g., division by zero
8766 trap).
8767 .IP "\fBu\fR" 4
8768 .IX Item "u"
8769 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
8770 as well.
8771 .IP "\fBsu\fR" 4
8772 .IX Item "su"
8773 Like \fBu\fR, but the instructions are marked to be safe for software
8774 completion (see Alpha architecture manual for details).
8775 .IP "\fBsui\fR" 4
8776 .IX Item "sui"
8777 Like \fBsu\fR, but inexact traps are enabled as well.
8779 .RS 4
8781 .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
8782 .IX Item "-mfp-rounding-mode=rounding-mode"
8783 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
8784 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
8786 .RS 4
8787 .IP "\fBn\fR" 4
8788 .IX Item "n"
8789 Normal \s-1IEEE\s0 rounding mode.  Floating point numbers are rounded towards
8790 the nearest machine number or towards the even machine number in case
8791 of a tie.
8792 .IP "\fBm\fR" 4
8793 .IX Item "m"
8794 Round towards minus infinity.
8795 .IP "\fBc\fR" 4
8796 .IX Item "c"
8797 Chopped rounding mode.  Floating point numbers are rounded towards zero.
8798 .IP "\fBd\fR" 4
8799 .IX Item "d"
8800 Dynamic rounding mode.  A field in the floating point control register
8801 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
8802 rounding mode in effect.  The C library initializes this register for
8803 rounding towards plus infinity.  Thus, unless your program modifies the
8804 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
8806 .RS 4
8808 .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
8809 .IX Item "-mtrap-precision=trap-precision"
8810 In the Alpha architecture, floating point traps are imprecise.  This
8811 means without software assistance it is impossible to recover from a
8812 floating trap and program execution normally needs to be terminated.
8813 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
8814 in determining the exact location that caused a floating point trap.
8815 Depending on the requirements of an application, different levels of
8816 precisions can be selected:
8817 .RS 4
8818 .IP "\fBp\fR" 4
8819 .IX Item "p"
8820 Program precision.  This option is the default and means a trap handler
8821 can only identify which program caused a floating point exception.
8822 .IP "\fBf\fR" 4
8823 .IX Item "f"
8824 Function precision.  The trap handler can determine the function that
8825 caused a floating point exception.
8826 .IP "\fBi\fR" 4
8827 .IX Item "i"
8828 Instruction precision.  The trap handler can determine the exact
8829 instruction that caused a floating point exception.
8831 .RS 4
8833 Other Alpha compilers provide the equivalent options called
8834 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
8836 .IP "\fB\-mieee\-conformant\fR" 4
8837 .IX Item "-mieee-conformant"
8838 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
8839 use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
8840 \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR.  Its only effect
8841 is to emit the line \fB.eflag 48\fR in the function prologue of the
8842 generated assembly file.  Under \s-1DEC\s0 Unix, this has the effect that
8843 IEEE-conformant math library routines will be linked in.
8844 .IP "\fB\-mbuild\-constants\fR" 4
8845 .IX Item "-mbuild-constants"
8846 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
8847 see if it can construct it from smaller constants in two or three
8848 instructions.  If it cannot, it will output the constant as a literal and
8849 generate code to load it from the data segment at runtime.
8851 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
8852 using code, even if it takes more instructions (the maximum is six).
8854 You would typically use this option to build a shared library dynamic
8855 loader.  Itself a shared library, it must relocate itself in memory
8856 before it can find the variables and constants in its own data segment.
8857 .IP "\fB\-malpha\-as\fR" 4
8858 .IX Item "-malpha-as"
8859 .PD 0
8860 .IP "\fB\-mgas\fR" 4
8861 .IX Item "-mgas"
8863 Select whether to generate code to be assembled by the vendor-supplied
8864 assembler (\fB\-malpha\-as\fR) or by the \s-1GNU\s0 assembler \fB\-mgas\fR.
8865 .IP "\fB\-mbwx\fR" 4
8866 .IX Item "-mbwx"
8867 .PD 0
8868 .IP "\fB\-mno\-bwx\fR" 4
8869 .IX Item "-mno-bwx"
8870 .IP "\fB\-mcix\fR" 4
8871 .IX Item "-mcix"
8872 .IP "\fB\-mno\-cix\fR" 4
8873 .IX Item "-mno-cix"
8874 .IP "\fB\-mfix\fR" 4
8875 .IX Item "-mfix"
8876 .IP "\fB\-mno\-fix\fR" 4
8877 .IX Item "-mno-fix"
8878 .IP "\fB\-mmax\fR" 4
8879 .IX Item "-mmax"
8880 .IP "\fB\-mno\-max\fR" 4
8881 .IX Item "-mno-max"
8883 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX\s0,
8884 \&\s-1CIX\s0, \s-1FIX\s0 and \s-1MAX\s0 instruction sets.  The default is to use the instruction
8885 sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
8886 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none was specified.
8887 .IP "\fB\-mfloat\-vax\fR" 4
8888 .IX Item "-mfloat-vax"
8889 .PD 0
8890 .IP "\fB\-mfloat\-ieee\fR" 4
8891 .IX Item "-mfloat-ieee"
8893 Generate code that uses (does not use) \s-1VAX\s0 F and G floating point
8894 arithmetic instead of \s-1IEEE\s0 single and double precision.
8895 .IP "\fB\-mexplicit\-relocs\fR" 4
8896 .IX Item "-mexplicit-relocs"
8897 .PD 0
8898 .IP "\fB\-mno\-explicit\-relocs\fR" 4
8899 .IX Item "-mno-explicit-relocs"
8901 Older Alpha assemblers provided no way to generate symbol relocations
8902 except via assembler macros.  Use of these macros does not allow
8903 optimal instruction scheduling.  \s-1GNU\s0 binutils as of version 2.12
8904 supports a new syntax that allows the compiler to explicitly mark
8905 which relocations should apply to which instructions.  This option
8906 is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
8907 the assembler when it is built and sets the default accordingly.
8908 .IP "\fB\-msmall\-data\fR" 4
8909 .IX Item "-msmall-data"
8910 .PD 0
8911 .IP "\fB\-mlarge\-data\fR" 4
8912 .IX Item "-mlarge-data"
8914 When \fB\-mexplicit\-relocs\fR is in effect, static data is
8915 accessed via \fIgp-relative\fR relocations.  When \fB\-msmall\-data\fR
8916 is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
8917 (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
8918 16\-bit relocations off of the \f(CW$gp\fR register.  This limits the
8919 size of the small data area to 64KB, but allows the variables to be
8920 directly accessed via a single instruction.
8922 The default is \fB\-mlarge\-data\fR.  With this option the data area
8923 is limited to just below 2GB.  Programs that require more than 2GB of
8924 data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
8925 heap instead of in the program's data segment.
8927 When generating code for shared libraries, \fB\-fpic\fR implies
8928 \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
8929 .IP "\fB\-msmall\-text\fR" 4
8930 .IX Item "-msmall-text"
8931 .PD 0
8932 .IP "\fB\-mlarge\-text\fR" 4
8933 .IX Item "-mlarge-text"
8935 When \fB\-msmall\-text\fR is used, the compiler assumes that the
8936 code of the entire program (or shared library) fits in 4MB, and is
8937 thus reachable with a branch instruction.  When \fB\-msmall\-data\fR
8938 is used, the compiler can assume that all local symbols share the
8939 same \f(CW$gp\fR value, and thus reduce the number of instructions
8940 required for a function call from 4 to 1.
8942 The default is \fB\-mlarge\-text\fR.
8943 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
8944 .IX Item "-mcpu=cpu_type"
8945 Set the instruction set and instruction scheduling parameters for
8946 machine type \fIcpu_type\fR.  You can specify either the \fB\s-1EV\s0\fR
8947 style name or the corresponding chip number.  \s-1GCC\s0 supports scheduling
8948 parameters for the \s-1EV4\s0, \s-1EV5\s0 and \s-1EV6\s0 family of processors and will
8949 choose the default values for the instruction set from the processor
8950 you specify.  If you do not specify a processor type, \s-1GCC\s0 will default
8951 to the processor on which the compiler was built.
8953 Supported values for \fIcpu_type\fR are
8954 .RS 4
8955 .IP "\fBev4\fR" 4
8956 .IX Item "ev4"
8957 .PD 0
8958 .IP "\fBev45\fR" 4
8959 .IX Item "ev45"
8960 .IP "\fB21064\fR" 4
8961 .IX Item "21064"
8963 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
8964 .IP "\fBev5\fR" 4
8965 .IX Item "ev5"
8966 .PD 0
8967 .IP "\fB21164\fR" 4
8968 .IX Item "21164"
8970 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
8971 .IP "\fBev56\fR" 4
8972 .IX Item "ev56"
8973 .PD 0
8974 .IP "\fB21164a\fR" 4
8975 .IX Item "21164a"
8977 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
8978 .IP "\fBpca56\fR" 4
8979 .IX Item "pca56"
8980 .PD 0
8981 .IP "\fB21164pc\fR" 4
8982 .IX Item "21164pc"
8983 .IP "\fB21164PC\fR" 4
8984 .IX Item "21164PC"
8986 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
8987 .IP "\fBev6\fR" 4
8988 .IX Item "ev6"
8989 .PD 0
8990 .IP "\fB21264\fR" 4
8991 .IX Item "21264"
8993 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
8994 .IP "\fBev67\fR" 4
8995 .IX Item "ev67"
8996 .PD 0
8997 .IP "\fB21264a\fR" 4
8998 .IX Item "21264a"
9000 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1CIX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
9002 .RS 4
9004 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
9005 .IX Item "-mtune=cpu_type"
9006 Set only the instruction scheduling parameters for machine type
9007 \&\fIcpu_type\fR.  The instruction set is not changed.
9008 .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
9009 .IX Item "-mmemory-latency=time"
9010 Sets the latency the scheduler should assume for typical memory
9011 references as seen by the application.  This number is highly
9012 dependent on the memory access patterns used by the application
9013 and the size of the external cache on the machine.
9015 Valid options for \fItime\fR are
9016 .RS 4
9017 .IP "\fInumber\fR" 4
9018 .IX Item "number"
9019 A decimal number representing clock cycles.
9020 .IP "\fBL1\fR" 4
9021 .IX Item "L1"
9022 .PD 0
9023 .IP "\fBL2\fR" 4
9024 .IX Item "L2"
9025 .IP "\fBL3\fR" 4
9026 .IX Item "L3"
9027 .IP "\fBmain\fR" 4
9028 .IX Item "main"
9030 The compiler contains estimates of the number of clock cycles for
9031 \&\*(L"typical\*(R" \s-1EV4\s0 & \s-1EV5\s0 hardware for the Level 1, 2 & 3 caches
9032 (also called Dcache, Scache, and Bcache), as well as to main memory.
9033 Note that L3 is only valid for \s-1EV5\s0.
9035 .RS 4
9038 \fI\s-1DEC\s0 Alpha/VMS Options\fR
9039 .IX Subsection "DEC Alpha/VMS Options"
9041 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha/VMS implementations:
9042 .IP "\fB\-mvms\-return\-codes\fR" 4
9043 .IX Item "-mvms-return-codes"
9044 Return \s-1VMS\s0 condition codes from main.  The default is to return \s-1POSIX\s0
9045 style condition (e.g. error) codes.
9047 \fI\s-1FRV\s0 Options\fR
9048 .IX Subsection "FRV Options"
9049 .IP "\fB\-mgpr\-32\fR" 4
9050 .IX Item "-mgpr-32"
9051 Only use the first 32 general purpose registers.
9052 .IP "\fB\-mgpr\-64\fR" 4
9053 .IX Item "-mgpr-64"
9054 Use all 64 general purpose registers.
9055 .IP "\fB\-mfpr\-32\fR" 4
9056 .IX Item "-mfpr-32"
9057 Use only the first 32 floating point registers.
9058 .IP "\fB\-mfpr\-64\fR" 4
9059 .IX Item "-mfpr-64"
9060 Use all 64 floating point registers
9061 .IP "\fB\-mhard\-float\fR" 4
9062 .IX Item "-mhard-float"
9063 Use hardware instructions for floating point operations.
9064 .IP "\fB\-msoft\-float\fR" 4
9065 .IX Item "-msoft-float"
9066 Use library routines for floating point operations.
9067 .IP "\fB\-malloc\-cc\fR" 4
9068 .IX Item "-malloc-cc"
9069 Dynamically allocate condition code registers.
9070 .IP "\fB\-mfixed\-cc\fR" 4
9071 .IX Item "-mfixed-cc"
9072 Do not try to dynamically allocate condition code registers, only
9073 use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
9074 .IP "\fB\-mdword\fR" 4
9075 .IX Item "-mdword"
9076 Change \s-1ABI\s0 to use double word insns.
9077 .IP "\fB\-mno\-dword\fR" 4
9078 .IX Item "-mno-dword"
9079 Do not use double word instructions.
9080 .IP "\fB\-mdouble\fR" 4
9081 .IX Item "-mdouble"
9082 Use floating point double instructions.
9083 .IP "\fB\-mno\-double\fR" 4
9084 .IX Item "-mno-double"
9085 Do not use floating point double instructions.
9086 .IP "\fB\-mmedia\fR" 4
9087 .IX Item "-mmedia"
9088 Use media instructions.
9089 .IP "\fB\-mno\-media\fR" 4
9090 .IX Item "-mno-media"
9091 Do not use media instructions.
9092 .IP "\fB\-mmuladd\fR" 4
9093 .IX Item "-mmuladd"
9094 Use multiply and add/subtract instructions.
9095 .IP "\fB\-mno\-muladd\fR" 4
9096 .IX Item "-mno-muladd"
9097 Do not use multiply and add/subtract instructions.
9098 .IP "\fB\-mfdpic\fR" 4
9099 .IX Item "-mfdpic"
9100 Select the \s-1FDPIC\s0 \s-1ABI\s0, that uses function descriptors to represent
9101 pointers to functions.  Without any PIC/PIE\-related options, it
9102 implies \fB\-fPIE\fR.  With \fB\-fpic\fR or \fB\-fpie\fR, it
9103 assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
9104 \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
9105 are computed with 32 bits.
9106 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
9107 .IP "\fB\-minline\-plt\fR" 4
9108 .IX Item "-minline-plt"
9109 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
9110 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
9111 It's enabled by default if optimizing for speed and compiling for
9112 shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
9113 optimization option such as \fB\-O3\fR or above is present in the
9114 command line.
9115 .IP "\fB\-mTLS\fR" 4
9116 .IX Item "-mTLS"
9117 Assume a large \s-1TLS\s0 segment when generating thread-local code.
9118 .IP "\fB\-mtls\fR" 4
9119 .IX Item "-mtls"
9120 Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
9121 .IP "\fB\-mgprel\-ro\fR" 4
9122 .IX Item "-mgprel-ro"
9123 Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC\s0 \s-1ABI\s0 for data
9124 that is known to be in read-only sections.  It's enabled by default,
9125 except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
9126 make the global offset table smaller, it trades 1 instruction for 4.
9127 With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
9128 one of which may be shared by multiple symbols, and it avoids the need
9129 for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
9130 win.  If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
9131 .IP "\fB\-multilib\-library\-pic\fR" 4
9132 .IX Item "-multilib-library-pic"
9133 Link with the (library, not \s-1FD\s0) pic libraries.  It's implied by
9134 \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
9135 \&\fB\-fpic\fR without \fB\-mfdpic\fR.  You should never have to use
9136 it explicitly.
9137 .IP "\fB\-mlinked\-fp\fR" 4
9138 .IX Item "-mlinked-fp"
9139 Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
9140 a stack frame is allocated.  This option is enabled by default and can
9141 be disabled with \fB\-mno\-linked\-fp\fR.
9142 .IP "\fB\-mlong\-calls\fR" 4
9143 .IX Item "-mlong-calls"
9144 Use indirect addressing to call functions outside the current
9145 compilation unit.  This allows the functions to be placed anywhere
9146 within the 32\-bit address space.
9147 .IP "\fB\-malign\-labels\fR" 4
9148 .IX Item "-malign-labels"
9149 Try to align labels to an 8\-byte boundary by inserting nops into the
9150 previous packet.  This option only has an effect when \s-1VLIW\s0 packing
9151 is enabled.  It doesn't create new packets; it merely adds nops to
9152 existing ones.
9153 .IP "\fB\-mlibrary\-pic\fR" 4
9154 .IX Item "-mlibrary-pic"
9155 Generate position-independent \s-1EABI\s0 code.
9156 .IP "\fB\-macc\-4\fR" 4
9157 .IX Item "-macc-4"
9158 Use only the first four media accumulator registers.
9159 .IP "\fB\-macc\-8\fR" 4
9160 .IX Item "-macc-8"
9161 Use all eight media accumulator registers.
9162 .IP "\fB\-mpack\fR" 4
9163 .IX Item "-mpack"
9164 Pack \s-1VLIW\s0 instructions.
9165 .IP "\fB\-mno\-pack\fR" 4
9166 .IX Item "-mno-pack"
9167 Do not pack \s-1VLIW\s0 instructions.
9168 .IP "\fB\-mno\-eflags\fR" 4
9169 .IX Item "-mno-eflags"
9170 Do not mark \s-1ABI\s0 switches in e_flags.
9171 .IP "\fB\-mcond\-move\fR" 4
9172 .IX Item "-mcond-move"
9173 Enable the use of conditional-move instructions (default).
9175 This switch is mainly for debugging the compiler and will likely be removed
9176 in a future version.
9177 .IP "\fB\-mno\-cond\-move\fR" 4
9178 .IX Item "-mno-cond-move"
9179 Disable the use of conditional-move instructions.
9181 This switch is mainly for debugging the compiler and will likely be removed
9182 in a future version.
9183 .IP "\fB\-mscc\fR" 4
9184 .IX Item "-mscc"
9185 Enable the use of conditional set instructions (default).
9187 This switch is mainly for debugging the compiler and will likely be removed
9188 in a future version.
9189 .IP "\fB\-mno\-scc\fR" 4
9190 .IX Item "-mno-scc"
9191 Disable the use of conditional set instructions.
9193 This switch is mainly for debugging the compiler and will likely be removed
9194 in a future version.
9195 .IP "\fB\-mcond\-exec\fR" 4
9196 .IX Item "-mcond-exec"
9197 Enable the use of conditional execution (default).
9199 This switch is mainly for debugging the compiler and will likely be removed
9200 in a future version.
9201 .IP "\fB\-mno\-cond\-exec\fR" 4
9202 .IX Item "-mno-cond-exec"
9203 Disable the use of conditional execution.
9205 This switch is mainly for debugging the compiler and will likely be removed
9206 in a future version.
9207 .IP "\fB\-mvliw\-branch\fR" 4
9208 .IX Item "-mvliw-branch"
9209 Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
9211 This switch is mainly for debugging the compiler and will likely be removed
9212 in a future version.
9213 .IP "\fB\-mno\-vliw\-branch\fR" 4
9214 .IX Item "-mno-vliw-branch"
9215 Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
9217 This switch is mainly for debugging the compiler and will likely be removed
9218 in a future version.
9219 .IP "\fB\-mmulti\-cond\-exec\fR" 4
9220 .IX Item "-mmulti-cond-exec"
9221 Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
9222 (default).
9224 This switch is mainly for debugging the compiler and will likely be removed
9225 in a future version.
9226 .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
9227 .IX Item "-mno-multi-cond-exec"
9228 Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
9230 This switch is mainly for debugging the compiler and will likely be removed
9231 in a future version.
9232 .IP "\fB\-mnested\-cond\-exec\fR" 4
9233 .IX Item "-mnested-cond-exec"
9234 Enable nested conditional execution optimizations (default).
9236 This switch is mainly for debugging the compiler and will likely be removed
9237 in a future version.
9238 .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
9239 .IX Item "-mno-nested-cond-exec"
9240 Disable nested conditional execution optimizations.
9242 This switch is mainly for debugging the compiler and will likely be removed
9243 in a future version.
9244 .IP "\fB\-moptimize\-membar\fR" 4
9245 .IX Item "-moptimize-membar"
9246 This switch removes redundant \f(CW\*(C`membar\*(C'\fR instructions from the
9247 compiler generated code.  It is enabled by default.
9248 .IP "\fB\-mno\-optimize\-membar\fR" 4
9249 .IX Item "-mno-optimize-membar"
9250 This switch disables the automatic removal of redundant \f(CW\*(C`membar\*(C'\fR
9251 instructions from the generated code.
9252 .IP "\fB\-mtomcat\-stats\fR" 4
9253 .IX Item "-mtomcat-stats"
9254 Cause gas to print out tomcat statistics.
9255 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
9256 .IX Item "-mcpu=cpu"
9257 Select the processor type for which to generate code.  Possible values are
9258 \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
9259 \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
9261 \fIGNU/Linux Options\fR
9262 .IX Subsection "GNU/Linux Options"
9264 These \fB\-m\fR options are defined for GNU/Linux targets:
9265 .IP "\fB\-mglibc\fR" 4
9266 .IX Item "-mglibc"
9267 Use the \s-1GNU\s0 C library instead of uClibc.  This is the default except
9268 on \fB*\-*\-linux\-*uclibc*\fR targets.
9269 .IP "\fB\-muclibc\fR" 4
9270 .IX Item "-muclibc"
9271 Use uClibc instead of the \s-1GNU\s0 C library.  This is the default on
9272 \&\fB*\-*\-linux\-*uclibc*\fR targets.
9274 \fIH8/300 Options\fR
9275 .IX Subsection "H8/300 Options"
9277 These \fB\-m\fR options are defined for the H8/300 implementations:
9278 .IP "\fB\-mrelax\fR" 4
9279 .IX Item "-mrelax"
9280 Shorten some address references at link time, when possible; uses the
9281 linker option \fB\-relax\fR.
9282 .IP "\fB\-mh\fR" 4
9283 .IX Item "-mh"
9284 Generate code for the H8/300H.
9285 .IP "\fB\-ms\fR" 4
9286 .IX Item "-ms"
9287 Generate code for the H8S.
9288 .IP "\fB\-mn\fR" 4
9289 .IX Item "-mn"
9290 Generate code for the H8S and H8/300H in the normal mode.  This switch
9291 must be used either with \fB\-mh\fR or \fB\-ms\fR.
9292 .IP "\fB\-ms2600\fR" 4
9293 .IX Item "-ms2600"
9294 Generate code for the H8S/2600.  This switch must be used with \fB\-ms\fR.
9295 .IP "\fB\-mint32\fR" 4
9296 .IX Item "-mint32"
9297 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
9298 .IP "\fB\-malign\-300\fR" 4
9299 .IX Item "-malign-300"
9300 On the H8/300H and H8S, use the same alignment rules as for the H8/300.
9301 The default for the H8/300H and H8S is to align longs and floats on 4
9302 byte boundaries.
9303 \&\fB\-malign\-300\fR causes them to be aligned on 2 byte boundaries.
9304 This option has no effect on the H8/300.
9306 \fI\s-1HPPA\s0 Options\fR
9307 .IX Subsection "HPPA Options"
9309 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
9310 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
9311 .IX Item "-march=architecture-type"
9312 Generate code for the specified architecture.  The choices for
9313 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA\s0 1.0, \fB1.1\fR for \s-1PA\s0
9314 1.1, and \fB2.0\fR for \s-1PA\s0 2.0 processors.  Refer to
9315 \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
9316 architecture option for your machine.  Code compiled for lower numbered
9317 architectures will run on higher numbered architectures, but not the
9318 other way around.
9319 .IP "\fB\-mpa\-risc\-1\-0\fR" 4
9320 .IX Item "-mpa-risc-1-0"
9321 .PD 0
9322 .IP "\fB\-mpa\-risc\-1\-1\fR" 4
9323 .IX Item "-mpa-risc-1-1"
9324 .IP "\fB\-mpa\-risc\-2\-0\fR" 4
9325 .IX Item "-mpa-risc-2-0"
9327 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
9328 .IP "\fB\-mbig\-switch\fR" 4
9329 .IX Item "-mbig-switch"
9330 Generate code suitable for big switch tables.  Use this option only if
9331 the assembler/linker complain about out of range branches within a switch
9332 table.
9333 .IP "\fB\-mjump\-in\-delay\fR" 4
9334 .IX Item "-mjump-in-delay"
9335 Fill delay slots of function calls with unconditional jump instructions
9336 by modifying the return pointer for the function call to be the target
9337 of the conditional jump.
9338 .IP "\fB\-mdisable\-fpregs\fR" 4
9339 .IX Item "-mdisable-fpregs"
9340 Prevent floating point registers from being used in any manner.  This is
9341 necessary for compiling kernels which perform lazy context switching of
9342 floating point registers.  If you use this option and attempt to perform
9343 floating point operations, the compiler will abort.
9344 .IP "\fB\-mdisable\-indexing\fR" 4
9345 .IX Item "-mdisable-indexing"
9346 Prevent the compiler from using indexing address modes.  This avoids some
9347 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH\s0.
9348 .IP "\fB\-mno\-space\-regs\fR" 4
9349 .IX Item "-mno-space-regs"
9350 Generate code that assumes the target has no space registers.  This allows
9351 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
9353 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
9354 .IP "\fB\-mfast\-indirect\-calls\fR" 4
9355 .IX Item "-mfast-indirect-calls"
9356 Generate code that assumes calls never cross space boundaries.  This
9357 allows \s-1GCC\s0 to emit code which performs faster indirect calls.
9359 This option will not work in the presence of shared libraries or nested
9360 functions.
9361 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
9362 .IX Item "-mfixed-range=register-range"
9363 Generate code treating the given register range as fixed registers.
9364 A fixed register is one that the register allocator can not use.  This is
9365 useful when compiling kernel code.  A register range is specified as
9366 two registers separated by a dash.  Multiple register ranges can be
9367 specified separated by a comma.
9368 .IP "\fB\-mlong\-load\-store\fR" 4
9369 .IX Item "-mlong-load-store"
9370 Generate 3\-instruction load and store sequences as sometimes required by
9371 the HP-UX 10 linker.  This is equivalent to the \fB+k\fR option to
9372 the \s-1HP\s0 compilers.
9373 .IP "\fB\-mportable\-runtime\fR" 4
9374 .IX Item "-mportable-runtime"
9375 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
9376 .IP "\fB\-mgas\fR" 4
9377 .IX Item "-mgas"
9378 Enable the use of assembler directives only \s-1GAS\s0 understands.
9379 .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
9380 .IX Item "-mschedule=cpu-type"
9381 Schedule code according to the constraints for the machine type
9382 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
9383 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR.  Refer
9384 to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
9385 proper scheduling option for your machine.  The default scheduling is
9386 \&\fB8000\fR.
9387 .IP "\fB\-mlinker\-opt\fR" 4
9388 .IX Item "-mlinker-opt"
9389 Enable the optimization pass in the HP-UX linker.  Note this makes symbolic
9390 debugging impossible.  It also triggers a bug in the HP-UX 8 and HP-UX 9
9391 linkers in which they give bogus error messages when linking some programs.
9392 .IP "\fB\-msoft\-float\fR" 4
9393 .IX Item "-msoft-float"
9394 Generate output containing library calls for floating point.
9395 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
9396 targets.  Normally the facilities of the machine's usual C compiler are
9397 used, but this cannot be done directly in cross-compilation.  You must make
9398 your own arrangements to provide suitable library functions for
9399 cross-compilation.  The embedded target \fBhppa1.1\-*\-pro\fR
9400 does provide software floating point support.
9402 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
9403 therefore, it is only useful if you compile \fIall\fR of a program with
9404 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
9405 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
9406 this to work.
9407 .IP "\fB\-msio\fR" 4
9408 .IX Item "-msio"
9409 Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO\s0.  The default is
9410 \&\fB\-mwsio\fR.  This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
9411 \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO\s0.  These
9412 options are available under HP-UX and HI-UX.
9413 .IP "\fB\-mgnu\-ld\fR" 4
9414 .IX Item "-mgnu-ld"
9415 Use \s-1GNU\s0 ld specific options.  This passes \fB\-shared\fR to ld when
9416 building a shared library.  It is the default when \s-1GCC\s0 is configured,
9417 explicitly or implicitly, with the \s-1GNU\s0 linker.  This option does not
9418 have any affect on which ld is called, it only changes what parameters
9419 are passed to that ld.  The ld that is called is determined by the
9420 \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
9421 finally by the user's \fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed
9422 using \fBwhich `gcc \-print\-prog\-name=ld`\fR.  This option is only available
9423 on the 64 bit HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
9424 .IP "\fB\-mhp\-ld\fR" 4
9425 .IX Item "-mhp-ld"
9426 Use \s-1HP\s0 ld specific options.  This passes \fB\-b\fR to ld when building
9427 a shared library and passes \fB+Accept TypeMismatch\fR to ld on all
9428 links.  It is the default when \s-1GCC\s0 is configured, explicitly or
9429 implicitly, with the \s-1HP\s0 linker.  This option does not have any affect on
9430 which ld is called, it only changes what parameters are passed to that
9431 ld.  The ld that is called is determined by the \fB\-\-with\-ld\fR
9432 configure option, \s-1GCC\s0's program search path, and finally by the user's
9433 \&\fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed using \fBwhich
9434 `gcc \-print\-prog\-name=ld`\fR.  This option is only available on the 64 bit
9435 HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
9436 .IP "\fB\-mlong\-calls\fR" 4
9437 .IX Item "-mlong-calls"
9438 Generate code that uses long call sequences.  This ensures that a call
9439 is always able to reach linker generated stubs.  The default is to generate
9440 long calls only when the distance from the call site to the beginning
9441 of the function or translation unit, as the case may be, exceeds a
9442 predefined limit set by the branch type being used.  The limits for
9443 normal calls are 7,600,000 and 240,000 bytes, respectively for the
9444 \&\s-1PA\s0 2.0 and \s-1PA\s0 1.X architectures.  Sibcalls are always limited at
9445 240,000 bytes.
9447 Distances are measured from the beginning of functions when using the
9448 \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
9449 and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
9450 the \s-1SOM\s0 linker.
9452 It is normally not desirable to use this option as it will degrade
9453 performance.  However, it may be useful in large applications,
9454 particularly when partial linking is used to build the application.
9456 The types of long calls used depends on the capabilities of the
9457 assembler and linker, and the type of code being generated.  The
9458 impact on systems that support long absolute calls, and long pic
9459 symbol-difference or pc-relative calls should be relatively small.
9460 However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
9461 and it is quite long.
9462 .IP "\fB\-munix=\fR\fIunix-std\fR" 4
9463 .IX Item "-munix=unix-std"
9464 Generate compiler predefines and select a startfile for the specified
9465 \&\s-1UNIX\s0 standard.  The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
9466 and \fB98\fR.  \fB93\fR is supported on all HP-UX versions.  \fB95\fR
9467 is available on HP-UX 10.10 and later.  \fB98\fR is available on HP-UX
9468 11.11 and later.  The default values are \fB93\fR for HP-UX 10.00,
9469 \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
9470 and later.
9472 \&\fB\-munix=93\fR provides the same predefines as \s-1GCC\s0 3.3 and 3.4.
9473 \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
9474 and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
9475 \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
9476 \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
9477 \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
9479 It is \fIimportant\fR to note that this option changes the interfaces
9480 for various library routines.  It also affects the operational behavior
9481 of the C library.  Thus, \fIextreme\fR care is needed in using this
9482 option.
9484 Library code that is intended to operate with more than one \s-1UNIX\s0
9485 standard must test, set and restore the variable \fI_\|_xpg4_extended_mask\fR
9486 as appropriate.  Most \s-1GNU\s0 software doesn't provide this capability.
9487 .IP "\fB\-nolibdld\fR" 4
9488 .IX Item "-nolibdld"
9489 Suppress the generation of link options to search libdld.sl when the
9490 \&\fB\-static\fR option is specified on HP-UX 10 and later.
9491 .IP "\fB\-static\fR" 4
9492 .IX Item "-static"
9493 The HP-UX implementation of setlocale in libc has a dependency on
9494 libdld.sl.  There isn't an archive version of libdld.sl.  Thus,
9495 when the \fB\-static\fR option is specified, special link options
9496 are needed to resolve this dependency.
9498 On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
9499 link with libdld.sl when the \fB\-static\fR option is specified.
9500 This causes the resulting binary to be dynamic.  On the 64\-bit port,
9501 the linkers generate dynamic binaries by default in any case.  The
9502 \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
9503 adding these link options.
9504 .IP "\fB\-threads\fR" 4
9505 .IX Item "-threads"
9506 Add support for multithreading with the \fIdce thread\fR library
9507 under HP-UX.  This option sets flags for both the preprocessor and
9508 linker.
9510 \fIIntel 386 and \s-1AMD\s0 x86\-64 Options\fR
9511 .IX Subsection "Intel 386 and AMD x86-64 Options"
9513 These \fB\-m\fR options are defined for the i386 and x86\-64 family of
9514 computers:
9515 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
9516 .IX Item "-mtune=cpu-type"
9517 Tune to \fIcpu-type\fR everything applicable about the generated code, except
9518 for the \s-1ABI\s0 and the set of available instructions.  The choices for
9519 \&\fIcpu-type\fR are:
9520 .RS 4
9521 .IP "\fIgeneric\fR" 4
9522 .IX Item "generic"
9523 Produce code optimized for the most common \s-1IA32/AMD64/EM64T\s0 processors.
9524 If you know the \s-1CPU\s0 on which your code will run, then you should use
9525 the corresponding \fB\-mtune\fR option instead of
9526 \&\fB\-mtune=generic\fR.  But, if you do not know exactly what \s-1CPU\s0 users
9527 of your application will have, then you should use this option.
9529 As new processors are deployed in the marketplace, the behavior of this
9530 option will change.  Therefore, if you upgrade to a newer version of
9531 \&\s-1GCC\s0, the code generated option will change to reflect the processors
9532 that were most common when that version of \s-1GCC\s0 was released.
9534 There is no \fB\-march=generic\fR option because \fB\-march\fR
9535 indicates the instruction set the compiler can use, and there is no
9536 generic instruction set applicable to all processors.  In contrast,
9537 \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
9538 processors) for which the code is optimized.
9539 .IP "\fInative\fR" 4
9540 .IX Item "native"
9541 This selects the \s-1CPU\s0 to tune for at compilation time by determining
9542 the processor type of the compiling machine.  Using \fB\-mtune=native\fR
9543 will produce code optimized for the local machine under the constraints
9544 of the selected instruction set.  Using \fB\-march=native\fR will
9545 enable all instruction subsets supported by the local machine (hence
9546 the result might not run on different machines).
9547 .IP "\fIi386\fR" 4
9548 .IX Item "i386"
9549 Original Intel's i386 \s-1CPU\s0.
9550 .IP "\fIi486\fR" 4
9551 .IX Item "i486"
9552 Intel's i486 \s-1CPU\s0.  (No scheduling is implemented for this chip.)
9553 .IP "\fIi586, pentium\fR" 4
9554 .IX Item "i586, pentium"
9555 Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
9556 .IP "\fIpentium-mmx\fR" 4
9557 .IX Item "pentium-mmx"
9558 Intel PentiumMMX \s-1CPU\s0 based on Pentium core with \s-1MMX\s0 instruction set support.
9559 .IP "\fIpentiumpro\fR" 4
9560 .IX Item "pentiumpro"
9561 Intel PentiumPro \s-1CPU\s0.
9562 .IP "\fIi686\fR" 4
9563 .IX Item "i686"
9564 Same as \f(CW\*(C`generic\*(C'\fR, but when used as \f(CW\*(C`march\*(C'\fR option, PentiumPro
9565 instruction set will be used, so the code will run on all i686 family chips.
9566 .IP "\fIpentium2\fR" 4
9567 .IX Item "pentium2"
9568 Intel Pentium2 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 instruction set support.
9569 .IP "\fIpentium3, pentium3m\fR" 4
9570 .IX Item "pentium3, pentium3m"
9571 Intel Pentium3 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 and \s-1SSE\s0 instruction set
9572 support.
9573 .IP "\fIpentium-m\fR" 4
9574 .IX Item "pentium-m"
9575 Low power version of Intel Pentium3 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set
9576 support.  Used by Centrino notebooks.
9577 .IP "\fIpentium4, pentium4m\fR" 4
9578 .IX Item "pentium4, pentium4m"
9579 Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set support.
9580 .IP "\fIprescott\fR" 4
9581 .IX Item "prescott"
9582 Improved version of Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0 and \s-1SSE3\s0 instruction
9583 set support.
9584 .IP "\fInocona\fR" 4
9585 .IX Item "nocona"
9586 Improved version of Intel Pentium4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0,
9587 \&\s-1SSE2\s0 and \s-1SSE3\s0 instruction set support.
9588 .IP "\fIcore2\fR" 4
9589 .IX Item "core2"
9590 Intel Core2 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0 and \s-1SSSE3\s0
9591 instruction set support.
9592 .IP "\fIk6\fR" 4
9593 .IX Item "k6"
9594 \&\s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 instruction set support.
9595 .IP "\fIk6\-2, k6\-3\fR" 4
9596 .IX Item "k6-2, k6-3"
9597 Improved versions of \s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.
9598 .IP "\fIathlon, athlon-tbird\fR" 4
9599 .IX Item "athlon, athlon-tbird"
9600 \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and \s-1SSE\s0 prefetch instructions
9601 support.
9602 .IP "\fIathlon\-4, athlon-xp, athlon-mp\fR" 4
9603 .IX Item "athlon-4, athlon-xp, athlon-mp"
9604 Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and full \s-1SSE\s0
9605 instruction set support.
9606 .IP "\fIk8, opteron, athlon64, athlon-fx\fR" 4
9607 .IX Item "k8, opteron, athlon64, athlon-fx"
9608 \&\s-1AMD\s0 K8 core based CPUs with x86\-64 instruction set support.  (This supersets
9609 \&\s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, 3dNOW!, enhanced 3dNOW! and 64\-bit instruction set extensions.)
9610 .IP "\fIk8\-sse3, opteron\-sse3, athlon64\-sse3\fR" 4
9611 .IX Item "k8-sse3, opteron-sse3, athlon64-sse3"
9612 Improved versions of k8, opteron and athlon64 with \s-1SSE3\s0 instruction set support.
9613 .IP "\fIamdfam10, barcelona\fR" 4
9614 .IX Item "amdfam10, barcelona"
9615 \&\s-1AMD\s0 Family 10h core based CPUs with x86\-64 instruction set support.  (This
9616 supersets \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSE4A\s0, 3dNOW!, enhanced 3dNOW!, \s-1ABM\s0 and 64\-bit
9617 instruction set extensions.)
9618 .IP "\fIwinchip\-c6\fR" 4
9619 .IX Item "winchip-c6"
9620 \&\s-1IDT\s0 Winchip C6 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 instruction
9621 set support.
9622 .IP "\fIwinchip2\fR" 4
9623 .IX Item "winchip2"
9624 \&\s-1IDT\s0 Winchip2 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 and 3dNOW!
9625 instruction set support.
9626 .IP "\fIc3\fR" 4
9627 .IX Item "c3"
9628 Via C3 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.  (No scheduling is
9629 implemented for this chip.)
9630 .IP "\fIc3\-2\fR" 4
9631 .IX Item "c3-2"
9632 Via C3\-2 \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.  (No scheduling is
9633 implemented for this chip.)
9634 .IP "\fIgeode\fR" 4
9635 .IX Item "geode"
9636 Embedded \s-1AMD\s0 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.
9638 .RS 4
9640 While picking a specific \fIcpu-type\fR will schedule things appropriately
9641 for that particular chip, the compiler will not generate any code that
9642 does not run on the i386 without the \fB\-march=\fR\fIcpu-type\fR option
9643 being used.
9645 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
9646 .IX Item "-march=cpu-type"
9647 Generate instructions for the machine type \fIcpu-type\fR.  The choices
9648 for \fIcpu-type\fR are the same as for \fB\-mtune\fR.  Moreover,
9649 specifying \fB\-march=\fR\fIcpu-type\fR implies \fB\-mtune=\fR\fIcpu-type\fR.
9650 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
9651 .IX Item "-mcpu=cpu-type"
9652 A deprecated synonym for \fB\-mtune\fR.
9653 .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
9654 .IX Item "-mfpmath=unit"
9655 Generate floating point arithmetics for selected unit \fIunit\fR.  The choices
9656 for \fIunit\fR are:
9657 .RS 4
9658 .IP "\fB387\fR" 4
9659 .IX Item "387"
9660 Use the standard 387 floating point coprocessor present majority of chips and
9661 emulated otherwise.  Code compiled with this option will run almost everywhere.
9662 The temporary results are computed in 80bit precision instead of precision
9663 specified by the type resulting in slightly different results compared to most
9664 of other chips.  See \fB\-ffloat\-store\fR for more detailed description.
9666 This is the default choice for i386 compiler.
9667 .IP "\fBsse\fR" 4
9668 .IX Item "sse"
9669 Use scalar floating point instructions present in the \s-1SSE\s0 instruction set.
9670 This instruction set is supported by Pentium3 and newer chips, in the \s-1AMD\s0 line
9671 by Athlon\-4, Athlon-xp and Athlon-mp chips.  The earlier version of \s-1SSE\s0
9672 instruction set supports only single precision arithmetics, thus the double and
9673 extended precision arithmetics is still done using 387.  Later version, present
9674 only in Pentium4 and the future \s-1AMD\s0 x86\-64 chips supports double precision
9675 arithmetics too.
9677 For the i386 compiler, you need to use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
9678 or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
9679 effective.  For the x86\-64 compiler, these extensions are enabled by default.
9681 The resulting code should be considerably faster in the majority of cases and avoid
9682 the numerical instability problems of 387 code, but may break some existing
9683 code that expects temporaries to be 80bit.
9685 This is the default choice for the x86\-64 compiler.
9686 .IP "\fBsse,387\fR" 4
9687 .IX Item "sse,387"
9688 Attempt to utilize both instruction sets at once.  This effectively double the
9689 amount of available registers and on chips with separate execution units for
9690 387 and \s-1SSE\s0 the execution resources too.  Use this option with care, as it is
9691 still experimental, because the \s-1GCC\s0 register allocator does not model separate
9692 functional units well resulting in instable performance.
9694 .RS 4
9696 .IP "\fB\-masm=\fR\fIdialect\fR" 4
9697 .IX Item "-masm=dialect"
9698 Output asm instructions using selected \fIdialect\fR.  Supported
9699 choices are \fBintel\fR or \fBatt\fR (the default one).  Darwin does
9700 not support \fBintel\fR.
9701 .IP "\fB\-mieee\-fp\fR" 4
9702 .IX Item "-mieee-fp"
9703 .PD 0
9704 .IP "\fB\-mno\-ieee\-fp\fR" 4
9705 .IX Item "-mno-ieee-fp"
9707 Control whether or not the compiler uses \s-1IEEE\s0 floating point
9708 comparisons.  These handle correctly the case where the result of a
9709 comparison is unordered.
9710 .IP "\fB\-msoft\-float\fR" 4
9711 .IX Item "-msoft-float"
9712 Generate output containing library calls for floating point.
9713 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
9714 Normally the facilities of the machine's usual C compiler are used, but
9715 this can't be done directly in cross-compilation.  You must make your
9716 own arrangements to provide suitable library functions for
9717 cross-compilation.
9719 On machines where a function returns floating point results in the 80387
9720 register stack, some floating point opcodes may be emitted even if
9721 \&\fB\-msoft\-float\fR is used.
9722 .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
9723 .IX Item "-mno-fp-ret-in-387"
9724 Do not use the \s-1FPU\s0 registers for return values of functions.
9726 The usual calling convention has functions return values of types
9727 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
9728 is no \s-1FPU\s0.  The idea is that the operating system should emulate
9729 an \s-1FPU\s0.
9731 The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
9732 in ordinary \s-1CPU\s0 registers instead.
9733 .IP "\fB\-mno\-fancy\-math\-387\fR" 4
9734 .IX Item "-mno-fancy-math-387"
9735 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
9736 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
9737 generating those instructions.  This option is the default on FreeBSD,
9738 OpenBSD and NetBSD.  This option is overridden when \fB\-march\fR
9739 indicates that the target cpu will always have an \s-1FPU\s0 and so the
9740 instruction will not need emulation.  As of revision 2.6.1, these
9741 instructions are not generated unless you also use the
9742 \&\fB\-funsafe\-math\-optimizations\fR switch.
9743 .IP "\fB\-malign\-double\fR" 4
9744 .IX Item "-malign-double"
9745 .PD 0
9746 .IP "\fB\-mno\-align\-double\fR" 4
9747 .IX Item "-mno-align-double"
9749 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
9750 \&\f(CW\*(C`long long\*(C'\fR variables on a two word boundary or a one word
9751 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two word boundary will
9752 produce code that runs somewhat faster on a \fBPentium\fR at the
9753 expense of more memory.
9755 On x86\-64, \fB\-malign\-double\fR is enabled by default.
9757 \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
9758 structures containing the above types will be aligned differently than
9759 the published application binary interface specifications for the 386
9760 and will not be binary compatible with structures in code compiled
9761 without that switch.
9762 .IP "\fB\-m96bit\-long\-double\fR" 4
9763 .IX Item "-m96bit-long-double"
9764 .PD 0
9765 .IP "\fB\-m128bit\-long\-double\fR" 4
9766 .IX Item "-m128bit-long-double"
9768 These switches control the size of \f(CW\*(C`long double\*(C'\fR type.  The i386
9769 application binary interface specifies the size to be 96 bits,
9770 so \fB\-m96bit\-long\-double\fR is the default in 32 bit mode.
9772 Modern architectures (Pentium and newer) would prefer \f(CW\*(C`long double\*(C'\fR
9773 to be aligned to an 8 or 16 byte boundary.  In arrays or structures
9774 conforming to the \s-1ABI\s0, this would not be possible.  So specifying a
9775 \&\fB\-m128bit\-long\-double\fR will align \f(CW\*(C`long double\*(C'\fR
9776 to a 16 byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
9777 32 bit zero.
9779 In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
9780 its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is to be aligned on 16 byte boundary.
9782 Notice that neither of these options enable any extra precision over the x87
9783 standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
9785 \&\fBWarning:\fR if you override the default value for your target \s-1ABI\s0, the
9786 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables will change
9787 their size as well as function calling convention for function taking
9788 \&\f(CW\*(C`long double\*(C'\fR will be modified.  Hence they will not be binary
9789 compatible with arrays or structures in code compiled without that switch.
9790 .IP "\fB\-mmlarge\-data\-threshold=\fR\fInumber\fR" 4
9791 .IX Item "-mmlarge-data-threshold=number"
9792 When \fB\-mcmodel=medium\fR is specified, the data greater than
9793 \&\fIthreshold\fR are placed in large data section.  This value must be the
9794 same across all object linked into the binary and defaults to 65535.
9795 .IP "\fB\-mrtd\fR" 4
9796 .IX Item "-mrtd"
9797 Use a different function-calling convention, in which functions that
9798 take a fixed number of arguments return with the \f(CW\*(C`ret\*(C'\fR \fInum\fR
9799 instruction, which pops their arguments while returning.  This saves one
9800 instruction in the caller since there is no need to pop the arguments
9801 there.
9803 You can specify that an individual function is called with this calling
9804 sequence with the function attribute \fBstdcall\fR.  You can also
9805 override the \fB\-mrtd\fR option by using the function attribute
9806 \&\fBcdecl\fR.
9808 \&\fBWarning:\fR this calling convention is incompatible with the one
9809 normally used on Unix, so you cannot use it if you need to call
9810 libraries compiled with the Unix compiler.
9812 Also, you must provide function prototypes for all functions that
9813 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
9814 otherwise incorrect code will be generated for calls to those
9815 functions.
9817 In addition, seriously incorrect code will result if you call a
9818 function with too many arguments.  (Normally, extra arguments are
9819 harmlessly ignored.)
9820 .IP "\fB\-mregparm=\fR\fInum\fR" 4
9821 .IX Item "-mregparm=num"
9822 Control how many registers are used to pass integer arguments.  By
9823 default, no registers are used to pass arguments, and at most 3
9824 registers can be used.  You can control this behavior for a specific
9825 function by using the function attribute \fBregparm\fR.
9827 \&\fBWarning:\fR if you use this switch, and
9828 \&\fInum\fR is nonzero, then you must build all modules with the same
9829 value, including any libraries.  This includes the system libraries and
9830 startup modules.
9831 .IP "\fB\-msseregparm\fR" 4
9832 .IX Item "-msseregparm"
9833 Use \s-1SSE\s0 register passing conventions for float and double arguments
9834 and return values.  You can control this behavior for a specific
9835 function by using the function attribute \fBsseregparm\fR.
9837 \&\fBWarning:\fR if you use this switch then you must build all
9838 modules with the same value, including any libraries.  This includes
9839 the system libraries and startup modules.
9840 .IP "\fB\-mpc32\fR" 4
9841 .IX Item "-mpc32"
9842 .PD 0
9843 .IP "\fB\-mpc64\fR" 4
9844 .IX Item "-mpc64"
9845 .IP "\fB\-mpc80\fR" 4
9846 .IX Item "-mpc80"
9848 Set 80387 floating-point precision to 32, 64 or 80 bits.  When \fB\-mpc32\fR
9849 is specified, the significands of results of floating-point operations are
9850 rounded to 24 bits (single precision); \fB\-mpc64\fR rounds the the
9851 significands of results of floating-point operations to 53 bits (double
9852 precision) and \fB\-mpc80\fR rounds the significands of results of
9853 floating-point operations to 64 bits (extended double precision), which is
9854 the default.  When this option is used, floating-point operations in higher
9855 precisions are not available to the programmer without setting the \s-1FPU\s0
9856 control word explicitly.
9858 Setting the rounding of floating-point operations to less than the default
9859 80 bits can speed some programs by 2% or more.  Note that some mathematical
9860 libraries assume that extended precision (80 bit) floating-point operations
9861 are enabled by default; routines in such libraries could suffer significant
9862 loss of accuracy, typically through so-called \*(L"catastrophic cancellation\*(R",
9863 when this option is used to set the precision to less than extended precision.
9864 .IP "\fB\-mstackrealign\fR" 4
9865 .IX Item "-mstackrealign"
9866 Realign the stack at entry.  On the Intel x86, the
9867 \&\fB\-mstackrealign\fR option will generate an alternate prologue and
9868 epilogue that realigns the runtime stack.  This supports mixing legacy
9869 codes that keep a 4\-byte aligned stack with modern codes that keep a
9870 16\-byte stack for \s-1SSE\s0 compatibility.  The alternate prologue and
9871 epilogue are slower and bigger than the regular ones, and the
9872 alternate prologue requires an extra scratch register; this lowers the
9873 number of registers available if used in conjunction with the
9874 \&\f(CW\*(C`regparm\*(C'\fR attribute.  The \fB\-mstackrealign\fR option is
9875 incompatible with the nested function prologue; this is considered a
9876 hard error.  See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
9877 applicable to individual functions.
9878 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
9879 .IX Item "-mpreferred-stack-boundary=num"
9880 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
9881 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
9882 the default is 4 (16 bytes or 128 bits).
9884 On Pentium and PentiumPro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
9885 should be aligned to an 8 byte boundary (see \fB\-malign\-double\fR) or
9886 suffer significant run time performance penalties.  On Pentium \s-1III\s0, the
9887 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR may not work
9888 properly if it is not 16 byte aligned.
9890 To ensure proper alignment of this values on the stack, the stack boundary
9891 must be as aligned as that required by any value stored on the stack.
9892 Further, every function must be generated such that it keeps the stack
9893 aligned.  Thus calling a function compiled with a higher preferred
9894 stack boundary from a function compiled with a lower preferred stack
9895 boundary will most likely misalign the stack.  It is recommended that
9896 libraries that use callbacks always use the default setting.
9898 This extra alignment does consume extra stack space, and generally
9899 increases code size.  Code that is sensitive to stack space usage, such
9900 as embedded systems and operating system kernels, may want to reduce the
9901 preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
9902 .IP "\fB\-mmmx\fR" 4
9903 .IX Item "-mmmx"
9904 .PD 0
9905 .IP "\fB\-mno\-mmx\fR" 4
9906 .IX Item "-mno-mmx"
9907 .IP "\fB\-msse\fR" 4
9908 .IX Item "-msse"
9909 .IP "\fB\-mno\-sse\fR" 4
9910 .IX Item "-mno-sse"
9911 .IP "\fB\-msse2\fR" 4
9912 .IX Item "-msse2"
9913 .IP "\fB\-mno\-sse2\fR" 4
9914 .IX Item "-mno-sse2"
9915 .IP "\fB\-msse3\fR" 4
9916 .IX Item "-msse3"
9917 .IP "\fB\-mno\-sse3\fR" 4
9918 .IX Item "-mno-sse3"
9919 .IP "\fB\-mssse3\fR" 4
9920 .IX Item "-mssse3"
9921 .IP "\fB\-mno\-ssse3\fR" 4
9922 .IX Item "-mno-ssse3"
9923 .IP "\fB\-msse4.1\fR" 4
9924 .IX Item "-msse4.1"
9925 .IP "\fB\-mno\-sse4.1\fR" 4
9926 .IX Item "-mno-sse4.1"
9927 .IP "\fB\-msse4.2\fR" 4
9928 .IX Item "-msse4.2"
9929 .IP "\fB\-mno\-sse4.2\fR" 4
9930 .IX Item "-mno-sse4.2"
9931 .IP "\fB\-msse4\fR" 4
9932 .IX Item "-msse4"
9933 .IP "\fB\-mno\-sse4\fR" 4
9934 .IX Item "-mno-sse4"
9935 .IP "\fB\-msse4a\fR" 4
9936 .IX Item "-msse4a"
9937 .IP "\fB\-mno\-sse4a\fR" 4
9938 .IX Item "-mno-sse4a"
9939 .IP "\fB\-msse5\fR" 4
9940 .IX Item "-msse5"
9941 .IP "\fB\-mno\-sse5\fR" 4
9942 .IX Item "-mno-sse5"
9943 .IP "\fB\-m3dnow\fR" 4
9944 .IX Item "-m3dnow"
9945 .IP "\fB\-mno\-3dnow\fR" 4
9946 .IX Item "-mno-3dnow"
9947 .IP "\fB\-mpopcnt\fR" 4
9948 .IX Item "-mpopcnt"
9949 .IP "\fB\-mno\-popcnt\fR" 4
9950 .IX Item "-mno-popcnt"
9951 .IP "\fB\-mabm\fR" 4
9952 .IX Item "-mabm"
9953 .IP "\fB\-mno\-abm\fR" 4
9954 .IX Item "-mno-abm"
9956 These switches enable or disable the use of instructions in the \s-1MMX\s0,
9957 \&\s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSSE3\s0, \s-1SSE4\s0.1, \s-1SSE4A\s0, \s-1SSE5\s0, \s-1ABM\s0 or 3DNow! extended
9958 instruction sets.
9959 These extensions are also available as built-in functions: see
9960 \&\fBX86 Built-in Functions\fR, for details of the functions enabled and
9961 disabled by these switches.
9963 To have \s-1SSE/SSE2\s0 instructions generated automatically from floating-point
9964 code (as opposed to 387 instructions), see \fB\-mfpmath=sse\fR.
9966 These options will enable \s-1GCC\s0 to use these extended instructions in
9967 generated code, even without \fB\-mfpmath=sse\fR.  Applications which
9968 perform runtime \s-1CPU\s0 detection must compile separate files for each
9969 supported architecture, using the appropriate flags.  In particular,
9970 the file containing the \s-1CPU\s0 detection code should be compiled without
9971 these options.
9972 .IP "\fB\-mcld\fR" 4
9973 .IX Item "-mcld"
9974 This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`cld\*(C'\fR instruction in the prologue
9975 of functions that use string instructions.  String instructions depend on
9976 the \s-1DF\s0 flag to select between autoincrement or autodecrement mode.  While the
9977 \&\s-1ABI\s0 specifies the \s-1DF\s0 flag to be cleared on function entry, some operating
9978 systems violate this specification by not clearing the \s-1DF\s0 flag in their
9979 exception dispatchers.  The exception handler can be invoked with the \s-1DF\s0 flag
9980 set which leads to wrong direction mode, when string instructions are used.
9981 This option can be enabled by default on 32\-bit x86 targets by configuring
9982 \&\s-1GCC\s0 with the \fB\-\-enable\-cld\fR configure option.  Generation of \f(CW\*(C`cld\*(C'\fR
9983 instructions can be suppressed with the \fB\-mno\-cld\fR compiler option
9984 in this case.
9985 .IP "\fB\-mcx16\fR" 4
9986 .IX Item "-mcx16"
9987 This option will enable \s-1GCC\s0 to use \s-1CMPXCHG16B\s0 instruction in generated code.
9988 \&\s-1CMPXCHG16B\s0 allows for atomic operations on 128\-bit double quadword (or oword)
9989 data types.  This is useful for high resolution counters that could be updated
9990 by multiple processors (or cores).  This instruction is generated as part of
9991 atomic built-in functions: see \fBAtomic Builtins\fR for details.
9992 .IP "\fB\-msahf\fR" 4
9993 .IX Item "-msahf"
9994 This option will enable \s-1GCC\s0 to use \s-1SAHF\s0 instruction in generated 64\-bit code.
9995 Early Intel CPUs with Intel 64 lacked \s-1LAHF\s0 and \s-1SAHF\s0 instructions supported
9996 by \s-1AMD64\s0 until introduction of Pentium 4 G1 step in December 2005.  \s-1LAHF\s0 and
9997 \&\s-1SAHF\s0 are load and store instructions, respectively, for certain status flags.
9998 In 64\-bit mode, \s-1SAHF\s0 instruction is used to optimize \f(CW\*(C`fmod\*(C'\fR, \f(CW\*(C`drem\*(C'\fR
9999 or \f(CW\*(C`remainder\*(C'\fR built-in functions: see \fBOther Builtins\fR for details.
10000 .IP "\fB\-mrecip\fR" 4
10001 .IX Item "-mrecip"
10002 This option will enable \s-1GCC\s0 to use \s-1RCPSS\s0 and \s-1RSQRTSS\s0 instructions (and their
10003 vectorized variants \s-1RCPPS\s0 and \s-1RSQRTPS\s0) with an additional Newton-Rhapson step
10004 to increase precision instead of \s-1DIVSS\s0 and \s-1SQRTSS\s0 (and their vectorized
10005 variants) for single precision floating point arguments.  These instructions
10006 are generated only when \fB\-funsafe\-math\-optimizations\fR is enabled
10007 together with \fB\-finite\-math\-only\fR and \fB\-fno\-trapping\-math\fR.
10008 Note that while the throughput of the sequence is higher than the throughput
10009 of the non-reciprocal instruction, the precision of the sequence can be
10010 decreased by up to 2 ulp (i.e. the inverse of 1.0 equals 0.99999994).
10011 .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
10012 .IX Item "-mveclibabi=type"
10013 Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
10014 external library.  Supported types are \f(CW\*(C`acml\*(C'\fR for the \s-1AMD\s0
10015 math core library style of interfacing.  \s-1GCC\s0 will currently emit
10016 calls to \f(CW\*(C`_\|_vrd2_sin\*(C'\fR, \f(CW\*(C`_\|_vrd2_cos\*(C'\fR, \f(CW\*(C`_\|_vrd2_exp\*(C'\fR,
10017 \&\f(CW\*(C`_\|_vrd2_log\*(C'\fR, \f(CW\*(C`_\|_vrd2_log2\*(C'\fR, \f(CW\*(C`_\|_vrd2_log10\*(C'\fR,
10018 \&\f(CW\*(C`_\|_vrs4_sinf\*(C'\fR, \f(CW\*(C`_\|_vrs4_cosf\*(C'\fR, \f(CW\*(C`_\|_vrs4_expf\*(C'\fR,
10019 \&\f(CW\*(C`_\|_vrs4_logf\*(C'\fR, \f(CW\*(C`_\|_vrs4_log2f\*(C'\fR, \f(CW\*(C`_\|_vrs4_log10f\*(C'\fR
10020 and \f(CW\*(C`_\|_vrs4_powf\*(C'\fR when using this type and \fB\-ftree\-vectorize\fR
10021 is enabled.  A \s-1ACML\s0 \s-1ABI\s0 compatible library will have to be specified
10022 at link time.
10023 .IP "\fB\-mpush\-args\fR" 4
10024 .IX Item "-mpush-args"
10025 .PD 0
10026 .IP "\fB\-mno\-push\-args\fR" 4
10027 .IX Item "-mno-push-args"
10029 Use \s-1PUSH\s0 operations to store outgoing parameters.  This method is shorter
10030 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
10031 by default.  In some cases disabling it may improve performance because of
10032 improved scheduling and reduced dependencies.
10033 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
10034 .IX Item "-maccumulate-outgoing-args"
10035 If enabled, the maximum amount of space required for outgoing arguments will be
10036 computed in the function prologue.  This is faster on most modern CPUs
10037 because of reduced dependencies, improved scheduling and reduced stack usage
10038 when preferred stack boundary is not equal to 2.  The drawback is a notable
10039 increase in code size.  This switch implies \fB\-mno\-push\-args\fR.
10040 .IP "\fB\-mthreads\fR" 4
10041 .IX Item "-mthreads"
10042 Support thread-safe exception handling on \fBMingw32\fR.  Code that relies
10043 on thread-safe exception handling must compile and link all code with the
10044 \&\fB\-mthreads\fR option.  When compiling, \fB\-mthreads\fR defines
10045 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
10046 \&\fB\-lmingwthrd\fR which cleans up per thread exception handling data.
10047 .IP "\fB\-mno\-align\-stringops\fR" 4
10048 .IX Item "-mno-align-stringops"
10049 Do not align destination of inlined string operations.  This switch reduces
10050 code size and improves performance in case the destination is already aligned,
10051 but \s-1GCC\s0 doesn't know about it.
10052 .IP "\fB\-minline\-all\-stringops\fR" 4
10053 .IX Item "-minline-all-stringops"
10054 By default \s-1GCC\s0 inlines string operations only when destination is known to be
10055 aligned at least to 4 byte boundary.  This enables more inlining, increase code
10056 size, but may improve performance of code that depends on fast memcpy, strlen
10057 and memset for short lengths.
10058 .IP "\fB\-minline\-stringops\-dynamically\fR" 4
10059 .IX Item "-minline-stringops-dynamically"
10060 For string operation of unknown size, inline runtime checks so for small
10061 blocks inline code is used, while for large blocks library call is used.
10062 .IP "\fB\-mstringop\-strategy=\fR\fIalg\fR" 4
10063 .IX Item "-mstringop-strategy=alg"
10064 Overwrite internal decision heuristic about particular algorithm to inline
10065 string operation with.  The allowed values are \f(CW\*(C`rep_byte\*(C'\fR,
10066 \&\f(CW\*(C`rep_4byte\*(C'\fR, \f(CW\*(C`rep_8byte\*(C'\fR for expanding using i386 \f(CW\*(C`rep\*(C'\fR prefix
10067 of specified size, \f(CW\*(C`byte_loop\*(C'\fR, \f(CW\*(C`loop\*(C'\fR, \f(CW\*(C`unrolled_loop\*(C'\fR for
10068 expanding inline loop, \f(CW\*(C`libcall\*(C'\fR for always expanding library call.
10069 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
10070 .IX Item "-momit-leaf-frame-pointer"
10071 Don't keep the frame pointer in a register for leaf functions.  This
10072 avoids the instructions to save, set up and restore frame pointers and
10073 makes an extra register available in leaf functions.  The option
10074 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions
10075 which might make debugging harder.
10076 .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
10077 .IX Item "-mtls-direct-seg-refs"
10078 .PD 0
10079 .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
10080 .IX Item "-mno-tls-direct-seg-refs"
10082 Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
10083 \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
10084 or whether the thread base pointer must be added.  Whether or not this
10085 is legal depends on the operating system, and whether it maps the
10086 segment to cover the entire \s-1TLS\s0 area.
10088 For systems that use \s-1GNU\s0 libc, the default is on.
10089 .IP "\fB\-mfused\-madd\fR" 4
10090 .IX Item "-mfused-madd"
10091 .PD 0
10092 .IP "\fB\-mno\-fused\-madd\fR" 4
10093 .IX Item "-mno-fused-madd"
10095 Enable automatic generation of fused floating point multiply-add instructions
10096 if the \s-1ISA\s0 supports such instructions.  The \-mfused\-madd option is on by
10097 default.  The fused multiply-add instructions have a different
10098 rounding behavior compared to executing a multiply followed by an add.
10100 These \fB\-m\fR switches are supported in addition to the above
10101 on \s-1AMD\s0 x86\-64 processors in 64\-bit environments.
10102 .IP "\fB\-m32\fR" 4
10103 .IX Item "-m32"
10104 .PD 0
10105 .IP "\fB\-m64\fR" 4
10106 .IX Item "-m64"
10108 Generate code for a 32\-bit or 64\-bit environment.
10109 The 32\-bit environment sets int, long and pointer to 32 bits and
10110 generates code that runs on any i386 system.
10111 The 64\-bit environment sets int to 32 bits and long and pointer
10112 to 64 bits and generates code for \s-1AMD\s0's x86\-64 architecture. For
10113 darwin only the \-m64 option turns off the \fB\-fno\-pic\fR and
10114 \&\fB\-mdynamic\-no\-pic\fR options.
10115 .IP "\fB\-mno\-red\-zone\fR" 4
10116 .IX Item "-mno-red-zone"
10117 Do not use a so called red zone for x86\-64 code.  The red zone is mandated
10118 by the x86\-64 \s-1ABI\s0, it is a 128\-byte area beyond the location of the
10119 stack pointer that will not be modified by signal or interrupt handlers
10120 and therefore can be used for temporary data without adjusting the stack
10121 pointer.  The flag \fB\-mno\-red\-zone\fR disables this red zone.
10122 .IP "\fB\-mcmodel=small\fR" 4
10123 .IX Item "-mcmodel=small"
10124 Generate code for the small code model: the program and its symbols must
10125 be linked in the lower 2 \s-1GB\s0 of the address space.  Pointers are 64 bits.
10126 Programs can be statically or dynamically linked.  This is the default
10127 code model.
10128 .IP "\fB\-mcmodel=kernel\fR" 4
10129 .IX Item "-mcmodel=kernel"
10130 Generate code for the kernel code model.  The kernel runs in the
10131 negative 2 \s-1GB\s0 of the address space.
10132 This model has to be used for Linux kernel code.
10133 .IP "\fB\-mcmodel=medium\fR" 4
10134 .IX Item "-mcmodel=medium"
10135 Generate code for the medium model: The program is linked in the lower 2
10136 \&\s-1GB\s0 of the address space but symbols can be located anywhere in the
10137 address space.  Programs can be statically or dynamically linked, but
10138 building of shared libraries are not supported with the medium model.
10139 .IP "\fB\-mcmodel=large\fR" 4
10140 .IX Item "-mcmodel=large"
10141 Generate code for the large model: This model makes no assumptions
10142 about addresses and sizes of sections.
10144 \fI\s-1IA\-64\s0 Options\fR
10145 .IX Subsection "IA-64 Options"
10147 These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
10148 .IP "\fB\-mbig\-endian\fR" 4
10149 .IX Item "-mbig-endian"
10150 Generate code for a big endian target.  This is the default for HP-UX.
10151 .IP "\fB\-mlittle\-endian\fR" 4
10152 .IX Item "-mlittle-endian"
10153 Generate code for a little endian target.  This is the default for \s-1AIX5\s0
10154 and GNU/Linux.
10155 .IP "\fB\-mgnu\-as\fR" 4
10156 .IX Item "-mgnu-as"
10157 .PD 0
10158 .IP "\fB\-mno\-gnu\-as\fR" 4
10159 .IX Item "-mno-gnu-as"
10161 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
10162 .IP "\fB\-mgnu\-ld\fR" 4
10163 .IX Item "-mgnu-ld"
10164 .PD 0
10165 .IP "\fB\-mno\-gnu\-ld\fR" 4
10166 .IX Item "-mno-gnu-ld"
10168 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
10169 .IP "\fB\-mno\-pic\fR" 4
10170 .IX Item "-mno-pic"
10171 Generate code that does not use a global pointer register.  The result
10172 is not position independent code, and violates the \s-1IA\-64\s0 \s-1ABI\s0.
10173 .IP "\fB\-mvolatile\-asm\-stop\fR" 4
10174 .IX Item "-mvolatile-asm-stop"
10175 .PD 0
10176 .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
10177 .IX Item "-mno-volatile-asm-stop"
10179 Generate (or don't) a stop bit immediately before and after volatile asm
10180 statements.
10181 .IP "\fB\-mregister\-names\fR" 4
10182 .IX Item "-mregister-names"
10183 .PD 0
10184 .IP "\fB\-mno\-register\-names\fR" 4
10185 .IX Item "-mno-register-names"
10187 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
10188 the stacked registers.  This may make assembler output more readable.
10189 .IP "\fB\-mno\-sdata\fR" 4
10190 .IX Item "-mno-sdata"
10191 .PD 0
10192 .IP "\fB\-msdata\fR" 4
10193 .IX Item "-msdata"
10195 Disable (or enable) optimizations that use the small data section.  This may
10196 be useful for working around optimizer bugs.
10197 .IP "\fB\-mconstant\-gp\fR" 4
10198 .IX Item "-mconstant-gp"
10199 Generate code that uses a single constant global pointer value.  This is
10200 useful when compiling kernel code.
10201 .IP "\fB\-mauto\-pic\fR" 4
10202 .IX Item "-mauto-pic"
10203 Generate code that is self-relocatable.  This implies \fB\-mconstant\-gp\fR.
10204 This is useful when compiling firmware code.
10205 .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
10206 .IX Item "-minline-float-divide-min-latency"
10207 Generate code for inline divides of floating point values
10208 using the minimum latency algorithm.
10209 .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
10210 .IX Item "-minline-float-divide-max-throughput"
10211 Generate code for inline divides of floating point values
10212 using the maximum throughput algorithm.
10213 .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
10214 .IX Item "-minline-int-divide-min-latency"
10215 Generate code for inline divides of integer values
10216 using the minimum latency algorithm.
10217 .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
10218 .IX Item "-minline-int-divide-max-throughput"
10219 Generate code for inline divides of integer values
10220 using the maximum throughput algorithm.
10221 .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
10222 .IX Item "-minline-sqrt-min-latency"
10223 Generate code for inline square roots
10224 using the minimum latency algorithm.
10225 .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
10226 .IX Item "-minline-sqrt-max-throughput"
10227 Generate code for inline square roots
10228 using the maximum throughput algorithm.
10229 .IP "\fB\-mno\-dwarf2\-asm\fR" 4
10230 .IX Item "-mno-dwarf2-asm"
10231 .PD 0
10232 .IP "\fB\-mdwarf2\-asm\fR" 4
10233 .IX Item "-mdwarf2-asm"
10235 Don't (or do) generate assembler code for the \s-1DWARF2\s0 line number debugging
10236 info.  This may be useful when not using the \s-1GNU\s0 assembler.
10237 .IP "\fB\-mearly\-stop\-bits\fR" 4
10238 .IX Item "-mearly-stop-bits"
10239 .PD 0
10240 .IP "\fB\-mno\-early\-stop\-bits\fR" 4
10241 .IX Item "-mno-early-stop-bits"
10243 Allow stop bits to be placed earlier than immediately preceding the
10244 instruction that triggered the stop bit.  This can improve instruction
10245 scheduling, but does not always do so.
10246 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
10247 .IX Item "-mfixed-range=register-range"
10248 Generate code treating the given register range as fixed registers.
10249 A fixed register is one that the register allocator can not use.  This is
10250 useful when compiling kernel code.  A register range is specified as
10251 two registers separated by a dash.  Multiple register ranges can be
10252 specified separated by a comma.
10253 .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
10254 .IX Item "-mtls-size=tls-size"
10255 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 14, 22, and
10257 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
10258 .IX Item "-mtune=cpu-type"
10259 Tune the instruction scheduling for a particular \s-1CPU\s0, Valid values are
10260 itanium, itanium1, merced, itanium2, and mckinley.
10261 .IP "\fB\-mt\fR" 4
10262 .IX Item "-mt"
10263 .PD 0
10264 .IP "\fB\-pthread\fR" 4
10265 .IX Item "-pthread"
10267 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
10268 option sets flags for both the preprocessor and linker.  It does
10269 not affect the thread safety of object code produced by the compiler or
10270 that of libraries supplied with it.  These are HP-UX specific flags.
10271 .IP "\fB\-milp32\fR" 4
10272 .IX Item "-milp32"
10273 .PD 0
10274 .IP "\fB\-mlp64\fR" 4
10275 .IX Item "-mlp64"
10277 Generate code for a 32\-bit or 64\-bit environment.
10278 The 32\-bit environment sets int, long and pointer to 32 bits.
10279 The 64\-bit environment sets int to 32 bits and long and pointer
10280 to 64 bits.  These are HP-UX specific flags.
10281 .IP "\fB\-mno\-sched\-br\-data\-spec\fR" 4
10282 .IX Item "-mno-sched-br-data-spec"
10283 .PD 0
10284 .IP "\fB\-msched\-br\-data\-spec\fR" 4
10285 .IX Item "-msched-br-data-spec"
10287 (Dis/En)able data speculative scheduling before reload.
10288 This will result in generation of the ld.a instructions and
10289 the corresponding check instructions (ld.c / chk.a).
10290 The default is 'disable'.
10291 .IP "\fB\-msched\-ar\-data\-spec\fR" 4
10292 .IX Item "-msched-ar-data-spec"
10293 .PD 0
10294 .IP "\fB\-mno\-sched\-ar\-data\-spec\fR" 4
10295 .IX Item "-mno-sched-ar-data-spec"
10297 (En/Dis)able data speculative scheduling after reload.
10298 This will result in generation of the ld.a instructions and
10299 the corresponding check instructions (ld.c / chk.a).
10300 The default is 'enable'.
10301 .IP "\fB\-mno\-sched\-control\-spec\fR" 4
10302 .IX Item "-mno-sched-control-spec"
10303 .PD 0
10304 .IP "\fB\-msched\-control\-spec\fR" 4
10305 .IX Item "-msched-control-spec"
10307 (Dis/En)able control speculative scheduling.  This feature is
10308 available only during region scheduling (i.e. before reload).
10309 This will result in generation of the ld.s instructions and
10310 the corresponding check instructions chk.s .
10311 The default is 'disable'.
10312 .IP "\fB\-msched\-br\-in\-data\-spec\fR" 4
10313 .IX Item "-msched-br-in-data-spec"
10314 .PD 0
10315 .IP "\fB\-mno\-sched\-br\-in\-data\-spec\fR" 4
10316 .IX Item "-mno-sched-br-in-data-spec"
10318 (En/Dis)able speculative scheduling of the instructions that
10319 are dependent on the data speculative loads before reload.
10320 This is effective only with \fB\-msched\-br\-data\-spec\fR enabled.
10321 The default is 'enable'.
10322 .IP "\fB\-msched\-ar\-in\-data\-spec\fR" 4
10323 .IX Item "-msched-ar-in-data-spec"
10324 .PD 0
10325 .IP "\fB\-mno\-sched\-ar\-in\-data\-spec\fR" 4
10326 .IX Item "-mno-sched-ar-in-data-spec"
10328 (En/Dis)able speculative scheduling of the instructions that
10329 are dependent on the data speculative loads after reload.
10330 This is effective only with \fB\-msched\-ar\-data\-spec\fR enabled.
10331 The default is 'enable'.
10332 .IP "\fB\-msched\-in\-control\-spec\fR" 4
10333 .IX Item "-msched-in-control-spec"
10334 .PD 0
10335 .IP "\fB\-mno\-sched\-in\-control\-spec\fR" 4
10336 .IX Item "-mno-sched-in-control-spec"
10338 (En/Dis)able speculative scheduling of the instructions that
10339 are dependent on the control speculative loads.
10340 This is effective only with \fB\-msched\-control\-spec\fR enabled.
10341 The default is 'enable'.
10342 .IP "\fB\-msched\-ldc\fR" 4
10343 .IX Item "-msched-ldc"
10344 .PD 0
10345 .IP "\fB\-mno\-sched\-ldc\fR" 4
10346 .IX Item "-mno-sched-ldc"
10348 (En/Dis)able use of simple data speculation checks ld.c .
10349 If disabled, only chk.a instructions will be emitted to check
10350 data speculative loads.
10351 The default is 'enable'.
10352 .IP "\fB\-mno\-sched\-control\-ldc\fR" 4
10353 .IX Item "-mno-sched-control-ldc"
10354 .PD 0
10355 .IP "\fB\-msched\-control\-ldc\fR" 4
10356 .IX Item "-msched-control-ldc"
10358 (Dis/En)able use of ld.c instructions to check control speculative loads.
10359 If enabled, in case of control speculative load with no speculatively
10360 scheduled dependent instructions this load will be emitted as ld.sa and
10361 ld.c will be used to check it.
10362 The default is 'disable'.
10363 .IP "\fB\-mno\-sched\-spec\-verbose\fR" 4
10364 .IX Item "-mno-sched-spec-verbose"
10365 .PD 0
10366 .IP "\fB\-msched\-spec\-verbose\fR" 4
10367 .IX Item "-msched-spec-verbose"
10369 (Dis/En)able printing of the information about speculative motions.
10370 .IP "\fB\-mno\-sched\-prefer\-non\-data\-spec\-insns\fR" 4
10371 .IX Item "-mno-sched-prefer-non-data-spec-insns"
10372 .PD 0
10373 .IP "\fB\-msched\-prefer\-non\-data\-spec\-insns\fR" 4
10374 .IX Item "-msched-prefer-non-data-spec-insns"
10376 If enabled, data speculative instructions will be chosen for schedule
10377 only if there are no other choices at the moment.  This will make
10378 the use of the data speculation much more conservative.
10379 The default is 'disable'.
10380 .IP "\fB\-mno\-sched\-prefer\-non\-control\-spec\-insns\fR" 4
10381 .IX Item "-mno-sched-prefer-non-control-spec-insns"
10382 .PD 0
10383 .IP "\fB\-msched\-prefer\-non\-control\-spec\-insns\fR" 4
10384 .IX Item "-msched-prefer-non-control-spec-insns"
10386 If enabled, control speculative instructions will be chosen for schedule
10387 only if there are no other choices at the moment.  This will make
10388 the use of the control speculation much more conservative.
10389 The default is 'disable'.
10390 .IP "\fB\-mno\-sched\-count\-spec\-in\-critical\-path\fR" 4
10391 .IX Item "-mno-sched-count-spec-in-critical-path"
10392 .PD 0
10393 .IP "\fB\-msched\-count\-spec\-in\-critical\-path\fR" 4
10394 .IX Item "-msched-count-spec-in-critical-path"
10396 If enabled, speculative dependencies will be considered during
10397 computation of the instructions priorities.  This will make the use of the
10398 speculation a bit more conservative.
10399 The default is 'disable'.
10401 \fIM32C Options\fR
10402 .IX Subsection "M32C Options"
10403 .IP "\fB\-mcpu=\fR\fIname\fR" 4
10404 .IX Item "-mcpu=name"
10405 Select the \s-1CPU\s0 for which code is generated.  \fIname\fR may be one of
10406 \&\fBr8c\fR for the R8C/Tiny series, \fBm16c\fR for the M16C (up to
10407 /60) series, \fBm32cm\fR for the M16C/80 series, or \fBm32c\fR for
10408 the M32C/80 series.
10409 .IP "\fB\-msim\fR" 4
10410 .IX Item "-msim"
10411 Specifies that the program will be run on the simulator.  This causes
10412 an alternate runtime library to be linked in which supports, for
10413 example, file I/O.  You must not use this option when generating
10414 programs that will run on real hardware; you must provide your own
10415 runtime library for whatever I/O functions are needed.
10416 .IP "\fB\-memregs=\fR\fInumber\fR" 4
10417 .IX Item "-memregs=number"
10418 Specifies the number of memory-based pseudo-registers \s-1GCC\s0 will use
10419 during code generation.  These pseudo-registers will be used like real
10420 registers, so there is a tradeoff between \s-1GCC\s0's ability to fit the
10421 code into available registers, and the performance penalty of using
10422 memory instead of registers.  Note that all modules in a program must
10423 be compiled with the same value for this option.  Because of that, you
10424 must not use this option with the default runtime libraries gcc
10425 builds.
10427 \fIM32R/D Options\fR
10428 .IX Subsection "M32R/D Options"
10430 These \fB\-m\fR options are defined for Renesas M32R/D architectures:
10431 .IP "\fB\-m32r2\fR" 4
10432 .IX Item "-m32r2"
10433 Generate code for the M32R/2.
10434 .IP "\fB\-m32rx\fR" 4
10435 .IX Item "-m32rx"
10436 Generate code for the M32R/X.
10437 .IP "\fB\-m32r\fR" 4
10438 .IX Item "-m32r"
10439 Generate code for the M32R.  This is the default.
10440 .IP "\fB\-mmodel=small\fR" 4
10441 .IX Item "-mmodel=small"
10442 Assume all objects live in the lower 16MB of memory (so that their addresses
10443 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
10444 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
10445 This is the default.
10447 The addressability of a particular object can be set with the
10448 \&\f(CW\*(C`model\*(C'\fR attribute.
10449 .IP "\fB\-mmodel=medium\fR" 4
10450 .IX Item "-mmodel=medium"
10451 Assume objects may be anywhere in the 32\-bit address space (the compiler
10452 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
10453 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
10454 .IP "\fB\-mmodel=large\fR" 4
10455 .IX Item "-mmodel=large"
10456 Assume objects may be anywhere in the 32\-bit address space (the compiler
10457 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
10458 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
10459 (the compiler will generate the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
10460 instruction sequence).
10461 .IP "\fB\-msdata=none\fR" 4
10462 .IX Item "-msdata=none"
10463 Disable use of the small data area.  Variables will be put into
10464 one of \fB.data\fR, \fBbss\fR, or \fB.rodata\fR (unless the
10465 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
10466 This is the default.
10468 The small data area consists of sections \fB.sdata\fR and \fB.sbss\fR.
10469 Objects may be explicitly put in the small data area with the
10470 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
10471 .IP "\fB\-msdata=sdata\fR" 4
10472 .IX Item "-msdata=sdata"
10473 Put small global and static data in the small data area, but do not
10474 generate special code to reference them.
10475 .IP "\fB\-msdata=use\fR" 4
10476 .IX Item "-msdata=use"
10477 Put small global and static data in the small data area, and generate
10478 special instructions to reference them.
10479 .IP "\fB\-G\fR \fInum\fR" 4
10480 .IX Item "-G num"
10481 Put global and static objects less than or equal to \fInum\fR bytes
10482 into the small data or bss sections instead of the normal data or bss
10483 sections.  The default value of \fInum\fR is 8.
10484 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
10485 for this option to have any effect.
10487 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
10488 Compiling with different values of \fInum\fR may or may not work; if it
10489 doesn't the linker will give an error message\-\-\-incorrect code will not be
10490 generated.
10491 .IP "\fB\-mdebug\fR" 4
10492 .IX Item "-mdebug"
10493 Makes the M32R specific code in the compiler display some statistics
10494 that might help in debugging programs.
10495 .IP "\fB\-malign\-loops\fR" 4
10496 .IX Item "-malign-loops"
10497 Align all loops to a 32\-byte boundary.
10498 .IP "\fB\-mno\-align\-loops\fR" 4
10499 .IX Item "-mno-align-loops"
10500 Do not enforce a 32\-byte alignment for loops.  This is the default.
10501 .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
10502 .IX Item "-missue-rate=number"
10503 Issue \fInumber\fR instructions per cycle.  \fInumber\fR can only be 1
10504 or 2.
10505 .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
10506 .IX Item "-mbranch-cost=number"
10507 \&\fInumber\fR can only be 1 or 2.  If it is 1 then branches will be
10508 preferred over conditional code, if it is 2, then the opposite will
10509 apply.
10510 .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
10511 .IX Item "-mflush-trap=number"
10512 Specifies the trap number to use to flush the cache.  The default is
10513 12.  Valid numbers are between 0 and 15 inclusive.
10514 .IP "\fB\-mno\-flush\-trap\fR" 4
10515 .IX Item "-mno-flush-trap"
10516 Specifies that the cache cannot be flushed by using a trap.
10517 .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
10518 .IX Item "-mflush-func=name"
10519 Specifies the name of the operating system function to call to flush
10520 the cache.  The default is \fI_flush_cache\fR, but a function call
10521 will only be used if a trap is not available.
10522 .IP "\fB\-mno\-flush\-func\fR" 4
10523 .IX Item "-mno-flush-func"
10524 Indicates that there is no \s-1OS\s0 function for flushing the cache.
10526 \fIM680x0 Options\fR
10527 .IX Subsection "M680x0 Options"
10529 These are the \fB\-m\fR options defined for M680x0 and ColdFire processors.
10530 The default settings depend on which architecture was selected when
10531 the compiler was configured; the defaults for the most common choices
10532 are given below.
10533 .IP "\fB\-march=\fR\fIarch\fR" 4
10534 .IX Item "-march=arch"
10535 Generate code for a specific M680x0 or ColdFire instruction set
10536 architecture.  Permissible values of \fIarch\fR for M680x0
10537 architectures are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
10538 \&\fB68030\fR, \fB68040\fR, \fB68060\fR and \fBcpu32\fR.  ColdFire
10539 architectures are selected according to Freescale's \s-1ISA\s0 classification
10540 and the permissible values are: \fBisaa\fR, \fBisaaplus\fR,
10541 \&\fBisab\fR and \fBisac\fR.
10543 gcc defines a macro \fB_\|_mcf\fR\fIarch\fR\fB_\|_\fR whenever it is generating
10544 code for a ColdFire target.  The \fIarch\fR in this macro is one of the
10545 \&\fB\-march\fR arguments given above.
10547 When used together, \fB\-march\fR and \fB\-mtune\fR select code
10548 that runs on a family of similar processors but that is optimized
10549 for a particular microarchitecture.
10550 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
10551 .IX Item "-mcpu=cpu"
10552 Generate code for a specific M680x0 or ColdFire processor.
10553 The M680x0 \fIcpu\fRs are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
10554 \&\fB68030\fR, \fB68040\fR, \fB68060\fR, \fB68302\fR, \fB68332\fR
10555 and \fBcpu32\fR.  The ColdFire \fIcpu\fRs are given by the table
10556 below, which also classifies the CPUs into families:
10557 .RS 4
10558 .IP "Family : \fB\-mcpu\fR arguments" 4
10559 .IX Item "Family : -mcpu arguments"
10560 .PD 0
10561 .IP "\fB51qe\fR : \fB51qe\fR" 4
10562 .IX Item "51qe : 51qe"
10563 .IP "\fB5206\fR : \fB5202\fR \fB5204\fR \fB5206\fR" 4
10564 .IX Item "5206 : 5202 5204 5206"
10565 .IP "\fB5206e\fR : \fB5206e\fR" 4
10566 .IX Item "5206e : 5206e"
10567 .IP "\fB5208\fR : \fB5207\fR \fB5208\fR" 4
10568 .IX Item "5208 : 5207 5208"
10569 .IP "\fB5211a\fR : \fB5210a\fR \fB5211a\fR" 4
10570 .IX Item "5211a : 5210a 5211a"
10571 .IP "\fB5213\fR : \fB5211\fR \fB5212\fR \fB5213\fR" 4
10572 .IX Item "5213 : 5211 5212 5213"
10573 .IP "\fB5216\fR : \fB5214\fR \fB5216\fR" 4
10574 .IX Item "5216 : 5214 5216"
10575 .IP "\fB52235\fR : \fB52230\fR \fB52231\fR \fB52232\fR \fB52233\fR \fB52234\fR \fB52235\fR" 4
10576 .IX Item "52235 : 52230 52231 52232 52233 52234 52235"
10577 .IP "\fB5225\fR : \fB5224\fR \fB5225\fR" 4
10578 .IX Item "5225 : 5224 5225"
10579 .IP "\fB5235\fR : \fB5232\fR \fB5233\fR \fB5234\fR \fB5235\fR \fB523x\fR" 4
10580 .IX Item "5235 : 5232 5233 5234 5235 523x"
10581 .IP "\fB5249\fR : \fB5249\fR" 4
10582 .IX Item "5249 : 5249"
10583 .IP "\fB5250\fR : \fB5250\fR" 4
10584 .IX Item "5250 : 5250"
10585 .IP "\fB5271\fR : \fB5270\fR \fB5271\fR" 4
10586 .IX Item "5271 : 5270 5271"
10587 .IP "\fB5272\fR : \fB5272\fR" 4
10588 .IX Item "5272 : 5272"
10589 .IP "\fB5275\fR : \fB5274\fR \fB5275\fR" 4
10590 .IX Item "5275 : 5274 5275"
10591 .IP "\fB5282\fR : \fB5280\fR \fB5281\fR \fB5282\fR \fB528x\fR" 4
10592 .IX Item "5282 : 5280 5281 5282 528x"
10593 .IP "\fB5307\fR : \fB5307\fR" 4
10594 .IX Item "5307 : 5307"
10595 .IP "\fB5329\fR : \fB5327\fR \fB5328\fR \fB5329\fR \fB532x\fR" 4
10596 .IX Item "5329 : 5327 5328 5329 532x"
10597 .IP "\fB5373\fR : \fB5372\fR \fB5373\fR \fB537x\fR" 4
10598 .IX Item "5373 : 5372 5373 537x"
10599 .IP "\fB5407\fR : \fB5407\fR" 4
10600 .IX Item "5407 : 5407"
10601 .IP "\fB5475\fR : \fB5470\fR \fB5471\fR \fB5472\fR \fB5473\fR \fB5474\fR \fB5475\fR \fB547x\fR \fB5480\fR \fB5481\fR \fB5482\fR \fB5483\fR \fB5484\fR \fB5485\fR" 4
10602 .IX Item "5475 : 5470 5471 5472 5473 5474 5475 547x 5480 5481 5482 5483 5484 5485"
10604 .RS 4
10607 \&\fB\-mcpu=\fR\fIcpu\fR overrides \fB\-march=\fR\fIarch\fR if
10608 \&\fIarch\fR is compatible with \fIcpu\fR.  Other combinations of
10609 \&\fB\-mcpu\fR and \fB\-march\fR are rejected.
10611 gcc defines the macro \fB_\|_mcf_cpu_\fR\fIcpu\fR when ColdFire target
10612 \&\fIcpu\fR is selected.  It also defines \fB_\|_mcf_family_\fR\fIfamily\fR,
10613 where the value of \fIfamily\fR is given by the table above.
10615 .IP "\fB\-mtune=\fR\fItune\fR" 4
10616 .IX Item "-mtune=tune"
10617 Tune the code for a particular microarchitecture, within the
10618 constraints set by \fB\-march\fR and \fB\-mcpu\fR.
10619 The M680x0 microarchitectures are: \fB68000\fR, \fB68010\fR,
10620 \&\fB68020\fR, \fB68030\fR, \fB68040\fR, \fB68060\fR
10621 and \fBcpu32\fR.  The ColdFire microarchitectures
10622 are: \fBcfv1\fR, \fBcfv2\fR, \fBcfv3\fR, \fBcfv4\fR and \fBcfv4e\fR.
10624 You can also use \fB\-mtune=68020\-40\fR for code that needs
10625 to run relatively well on 68020, 68030 and 68040 targets.
10626 \&\fB\-mtune=68020\-60\fR is similar but includes 68060 targets
10627 as well.  These two options select the same tuning decisions as
10628 \&\fB\-m68020\-40\fR and \fB\-m68020\-60\fR respectively.
10630 gcc defines the macros \fB_\|_mc\fR\fIarch\fR and \fB_\|_mc\fR\fIarch\fR\fB_\|_\fR
10631 when tuning for 680x0 architecture \fIarch\fR.  It also defines
10632 \&\fBmc\fR\fIarch\fR unless either \fB\-ansi\fR or a non-GNU \fB\-std\fR
10633 option is used.  If gcc is tuning for a range of architectures,
10634 as selected by \fB\-mtune=68020\-40\fR or \fB\-mtune=68020\-60\fR,
10635 it defines the macros for every architecture in the range.
10637 gcc also defines the macro \fB_\|_m\fR\fIuarch\fR\fB_\|_\fR when tuning for
10638 ColdFire microarchitecture \fIuarch\fR, where \fIuarch\fR is one
10639 of the arguments given above.
10640 .IP "\fB\-m68000\fR" 4
10641 .IX Item "-m68000"
10642 .PD 0
10643 .IP "\fB\-mc68000\fR" 4
10644 .IX Item "-mc68000"
10646 Generate output for a 68000.  This is the default
10647 when the compiler is configured for 68000\-based systems.
10648 It is equivalent to \fB\-march=68000\fR.
10650 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
10651 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
10652 .IP "\fB\-m68010\fR" 4
10653 .IX Item "-m68010"
10654 Generate output for a 68010.  This is the default
10655 when the compiler is configured for 68010\-based systems.
10656 It is equivalent to \fB\-march=68010\fR.
10657 .IP "\fB\-m68020\fR" 4
10658 .IX Item "-m68020"
10659 .PD 0
10660 .IP "\fB\-mc68020\fR" 4
10661 .IX Item "-mc68020"
10663 Generate output for a 68020.  This is the default
10664 when the compiler is configured for 68020\-based systems.
10665 It is equivalent to \fB\-march=68020\fR.
10666 .IP "\fB\-m68030\fR" 4
10667 .IX Item "-m68030"
10668 Generate output for a 68030.  This is the default when the compiler is
10669 configured for 68030\-based systems.  It is equivalent to
10670 \&\fB\-march=68030\fR.
10671 .IP "\fB\-m68040\fR" 4
10672 .IX Item "-m68040"
10673 Generate output for a 68040.  This is the default when the compiler is
10674 configured for 68040\-based systems.  It is equivalent to
10675 \&\fB\-march=68040\fR.
10677 This option inhibits the use of 68881/68882 instructions that have to be
10678 emulated by software on the 68040.  Use this option if your 68040 does not
10679 have code to emulate those instructions.
10680 .IP "\fB\-m68060\fR" 4
10681 .IX Item "-m68060"
10682 Generate output for a 68060.  This is the default when the compiler is
10683 configured for 68060\-based systems.  It is equivalent to
10684 \&\fB\-march=68060\fR.
10686 This option inhibits the use of 68020 and 68881/68882 instructions that
10687 have to be emulated by software on the 68060.  Use this option if your 68060
10688 does not have code to emulate those instructions.
10689 .IP "\fB\-mcpu32\fR" 4
10690 .IX Item "-mcpu32"
10691 Generate output for a \s-1CPU32\s0.  This is the default
10692 when the compiler is configured for CPU32\-based systems.
10693 It is equivalent to \fB\-march=cpu32\fR.
10695 Use this option for microcontrollers with a
10696 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
10697 68336, 68340, 68341, 68349 and 68360.
10698 .IP "\fB\-m5200\fR" 4
10699 .IX Item "-m5200"
10700 Generate output for a 520X ColdFire \s-1CPU\s0.  This is the default
10701 when the compiler is configured for 520X\-based systems.
10702 It is equivalent to \fB\-mcpu=5206\fR, and is now deprecated
10703 in favor of that option.
10705 Use this option for microcontroller with a 5200 core, including
10706 the \s-1MCF5202\s0, \s-1MCF5203\s0, \s-1MCF5204\s0 and \s-1MCF5206\s0.
10707 .IP "\fB\-m5206e\fR" 4
10708 .IX Item "-m5206e"
10709 Generate output for a 5206e ColdFire \s-1CPU\s0.  The option is now
10710 deprecated in favor of the equivalent \fB\-mcpu=5206e\fR.
10711 .IP "\fB\-m528x\fR" 4
10712 .IX Item "-m528x"
10713 Generate output for a member of the ColdFire 528X family.
10714 The option is now deprecated in favor of the equivalent
10715 \&\fB\-mcpu=528x\fR.
10716 .IP "\fB\-m5307\fR" 4
10717 .IX Item "-m5307"
10718 Generate output for a ColdFire 5307 \s-1CPU\s0.  The option is now deprecated
10719 in favor of the equivalent \fB\-mcpu=5307\fR.
10720 .IP "\fB\-m5407\fR" 4
10721 .IX Item "-m5407"
10722 Generate output for a ColdFire 5407 \s-1CPU\s0.  The option is now deprecated
10723 in favor of the equivalent \fB\-mcpu=5407\fR.
10724 .IP "\fB\-mcfv4e\fR" 4
10725 .IX Item "-mcfv4e"
10726 Generate output for a ColdFire V4e family \s-1CPU\s0 (e.g. 547x/548x).
10727 This includes use of hardware floating point instructions.
10728 The option is equivalent to \fB\-mcpu=547x\fR, and is now
10729 deprecated in favor of that option.
10730 .IP "\fB\-m68020\-40\fR" 4
10731 .IX Item "-m68020-40"
10732 Generate output for a 68040, without using any of the new instructions.
10733 This results in code which can run relatively efficiently on either a
10734 68020/68881 or a 68030 or a 68040.  The generated code does use the
10735 68881 instructions that are emulated on the 68040.
10737 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-40\fR.
10738 .IP "\fB\-m68020\-60\fR" 4
10739 .IX Item "-m68020-60"
10740 Generate output for a 68060, without using any of the new instructions.
10741 This results in code which can run relatively efficiently on either a
10742 68020/68881 or a 68030 or a 68040.  The generated code does use the
10743 68881 instructions that are emulated on the 68060.
10745 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-60\fR.
10746 .IP "\fB\-mhard\-float\fR" 4
10747 .IX Item "-mhard-float"
10748 .PD 0
10749 .IP "\fB\-m68881\fR" 4
10750 .IX Item "-m68881"
10752 Generate floating-point instructions.  This is the default for 68020
10753 and above, and for ColdFire devices that have an \s-1FPU\s0.  It defines the
10754 macro \fB_\|_HAVE_68881_\|_\fR on M680x0 targets and \fB_\|_mcffpu_\|_\fR
10755 on ColdFire targets.
10756 .IP "\fB\-msoft\-float\fR" 4
10757 .IX Item "-msoft-float"
10758 Do not generate floating-point instructions; use library calls instead.
10759 This is the default for 68000, 68010, and 68832 targets.  It is also
10760 the default for ColdFire devices that have no \s-1FPU\s0.
10761 .IP "\fB\-mdiv\fR" 4
10762 .IX Item "-mdiv"
10763 .PD 0
10764 .IP "\fB\-mno\-div\fR" 4
10765 .IX Item "-mno-div"
10767 Generate (do not generate) ColdFire hardware divide and remainder
10768 instructions.  If \fB\-march\fR is used without \fB\-mcpu\fR,
10769 the default is \*(L"on\*(R" for ColdFire architectures and \*(L"off\*(R" for M680x0
10770 architectures.  Otherwise, the default is taken from the target \s-1CPU\s0
10771 (either the default \s-1CPU\s0, or the one specified by \fB\-mcpu\fR).  For
10772 example, the default is \*(L"off\*(R" for \fB\-mcpu=5206\fR and \*(L"on\*(R" for
10773 \&\fB\-mcpu=5206e\fR.
10775 gcc defines the macro \fB_\|_mcfhwdiv_\|_\fR when this option is enabled.
10776 .IP "\fB\-mshort\fR" 4
10777 .IX Item "-mshort"
10778 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
10779 Additionally, parameters passed on the stack are also aligned to a
10780 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
10781 .IP "\fB\-mno\-short\fR" 4
10782 .IX Item "-mno-short"
10783 Do not consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide.  This is the default.
10784 .IP "\fB\-mnobitfield\fR" 4
10785 .IX Item "-mnobitfield"
10786 .PD 0
10787 .IP "\fB\-mno\-bitfield\fR" 4
10788 .IX Item "-mno-bitfield"
10790 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
10791 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
10792 .IP "\fB\-mbitfield\fR" 4
10793 .IX Item "-mbitfield"
10794 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
10795 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
10796 designed for a 68020.
10797 .IP "\fB\-mrtd\fR" 4
10798 .IX Item "-mrtd"
10799 Use a different function-calling convention, in which functions
10800 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
10801 instruction, which pops their arguments while returning.  This
10802 saves one instruction in the caller since there is no need to pop
10803 the arguments there.
10805 This calling convention is incompatible with the one normally
10806 used on Unix, so you cannot use it if you need to call libraries
10807 compiled with the Unix compiler.
10809 Also, you must provide function prototypes for all functions that
10810 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
10811 otherwise incorrect code will be generated for calls to those
10812 functions.
10814 In addition, seriously incorrect code will result if you call a
10815 function with too many arguments.  (Normally, extra arguments are
10816 harmlessly ignored.)
10818 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
10819 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
10820 .IP "\fB\-mno\-rtd\fR" 4
10821 .IX Item "-mno-rtd"
10822 Do not use the calling conventions selected by \fB\-mrtd\fR.
10823 This is the default.
10824 .IP "\fB\-malign\-int\fR" 4
10825 .IX Item "-malign-int"
10826 .PD 0
10827 .IP "\fB\-mno\-align\-int\fR" 4
10828 .IX Item "-mno-align-int"
10830 Control whether \s-1GCC\s0 aligns \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`long long\*(C'\fR,
10831 \&\f(CW\*(C`float\*(C'\fR, \f(CW\*(C`double\*(C'\fR, and \f(CW\*(C`long double\*(C'\fR variables on a 32\-bit
10832 boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
10833 Aligning variables on 32\-bit boundaries produces code that runs somewhat
10834 faster on processors with 32\-bit busses at the expense of more memory.
10836 \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0 will
10837 align structures containing the above types  differently than
10838 most published application binary interface specifications for the m68k.
10839 .IP "\fB\-mpcrel\fR" 4
10840 .IX Item "-mpcrel"
10841 Use the pc-relative addressing mode of the 68000 directly, instead of
10842 using a global offset table.  At present, this option implies \fB\-fpic\fR,
10843 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
10844 not presently supported with \fB\-mpcrel\fR, though this could be supported for
10845 68020 and higher processors.
10846 .IP "\fB\-mno\-strict\-align\fR" 4
10847 .IX Item "-mno-strict-align"
10848 .PD 0
10849 .IP "\fB\-mstrict\-align\fR" 4
10850 .IX Item "-mstrict-align"
10852 Do not (do) assume that unaligned memory references will be handled by
10853 the system.
10854 .IP "\fB\-msep\-data\fR" 4
10855 .IX Item "-msep-data"
10856 Generate code that allows the data segment to be located in a different
10857 area of memory from the text segment.  This allows for execute in place in
10858 an environment without virtual memory management.  This option implies
10859 \&\fB\-fPIC\fR.
10860 .IP "\fB\-mno\-sep\-data\fR" 4
10861 .IX Item "-mno-sep-data"
10862 Generate code that assumes that the data segment follows the text segment.
10863 This is the default.
10864 .IP "\fB\-mid\-shared\-library\fR" 4
10865 .IX Item "-mid-shared-library"
10866 Generate code that supports shared libraries via the library \s-1ID\s0 method.
10867 This allows for execute in place and shared libraries in an environment
10868 without virtual memory management.  This option implies \fB\-fPIC\fR.
10869 .IP "\fB\-mno\-id\-shared\-library\fR" 4
10870 .IX Item "-mno-id-shared-library"
10871 Generate code that doesn't assume \s-1ID\s0 based shared libraries are being used.
10872 This is the default.
10873 .IP "\fB\-mshared\-library\-id=n\fR" 4
10874 .IX Item "-mshared-library-id=n"
10875 Specified the identification number of the \s-1ID\s0 based shared library being
10876 compiled.  Specifying a value of 0 will generate more compact code, specifying
10877 other values will force the allocation of that number to the current
10878 library but is no more space or time efficient than omitting this option.
10880 \fIM68hc1x Options\fR
10881 .IX Subsection "M68hc1x Options"
10883 These are the \fB\-m\fR options defined for the 68hc11 and 68hc12
10884 microcontrollers.  The default values for these options depends on
10885 which style of microcontroller was selected when the compiler was configured;
10886 the defaults for the most common choices are given below.
10887 .IP "\fB\-m6811\fR" 4
10888 .IX Item "-m6811"
10889 .PD 0
10890 .IP "\fB\-m68hc11\fR" 4
10891 .IX Item "-m68hc11"
10893 Generate output for a 68HC11.  This is the default
10894 when the compiler is configured for 68HC11\-based systems.
10895 .IP "\fB\-m6812\fR" 4
10896 .IX Item "-m6812"
10897 .PD 0
10898 .IP "\fB\-m68hc12\fR" 4
10899 .IX Item "-m68hc12"
10901 Generate output for a 68HC12.  This is the default
10902 when the compiler is configured for 68HC12\-based systems.
10903 .IP "\fB\-m68S12\fR" 4
10904 .IX Item "-m68S12"
10905 .PD 0
10906 .IP "\fB\-m68hcs12\fR" 4
10907 .IX Item "-m68hcs12"
10909 Generate output for a 68HCS12.
10910 .IP "\fB\-mauto\-incdec\fR" 4
10911 .IX Item "-mauto-incdec"
10912 Enable the use of 68HC12 pre and post auto-increment and auto-decrement
10913 addressing modes.
10914 .IP "\fB\-minmax\fR" 4
10915 .IX Item "-minmax"
10916 .PD 0
10917 .IP "\fB\-nominmax\fR" 4
10918 .IX Item "-nominmax"
10920 Enable the use of 68HC12 min and max instructions.
10921 .IP "\fB\-mlong\-calls\fR" 4
10922 .IX Item "-mlong-calls"
10923 .PD 0
10924 .IP "\fB\-mno\-long\-calls\fR" 4
10925 .IX Item "-mno-long-calls"
10927 Treat all calls as being far away (near).  If calls are assumed to be
10928 far away, the compiler will use the \f(CW\*(C`call\*(C'\fR instruction to
10929 call a function and the \f(CW\*(C`rtc\*(C'\fR instruction for returning.
10930 .IP "\fB\-mshort\fR" 4
10931 .IX Item "-mshort"
10932 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
10933 .IP "\fB\-msoft\-reg\-count=\fR\fIcount\fR" 4
10934 .IX Item "-msoft-reg-count=count"
10935 Specify the number of pseudo-soft registers which are used for the
10936 code generation.  The maximum number is 32.  Using more pseudo-soft
10937 register may or may not result in better code depending on the program.
10938 The default is 4 for 68HC11 and 2 for 68HC12.
10940 \fIMCore Options\fR
10941 .IX Subsection "MCore Options"
10943 These are the \fB\-m\fR options defined for the Motorola M*Core
10944 processors.
10945 .IP "\fB\-mhardlit\fR" 4
10946 .IX Item "-mhardlit"
10947 .PD 0
10948 .IP "\fB\-mno\-hardlit\fR" 4
10949 .IX Item "-mno-hardlit"
10951 Inline constants into the code stream if it can be done in two
10952 instructions or less.
10953 .IP "\fB\-mdiv\fR" 4
10954 .IX Item "-mdiv"
10955 .PD 0
10956 .IP "\fB\-mno\-div\fR" 4
10957 .IX Item "-mno-div"
10959 Use the divide instruction.  (Enabled by default).
10960 .IP "\fB\-mrelax\-immediate\fR" 4
10961 .IX Item "-mrelax-immediate"
10962 .PD 0
10963 .IP "\fB\-mno\-relax\-immediate\fR" 4
10964 .IX Item "-mno-relax-immediate"
10966 Allow arbitrary sized immediates in bit operations.
10967 .IP "\fB\-mwide\-bitfields\fR" 4
10968 .IX Item "-mwide-bitfields"
10969 .PD 0
10970 .IP "\fB\-mno\-wide\-bitfields\fR" 4
10971 .IX Item "-mno-wide-bitfields"
10973 Always treat bit-fields as int-sized.
10974 .IP "\fB\-m4byte\-functions\fR" 4
10975 .IX Item "-m4byte-functions"
10976 .PD 0
10977 .IP "\fB\-mno\-4byte\-functions\fR" 4
10978 .IX Item "-mno-4byte-functions"
10980 Force all functions to be aligned to a four byte boundary.
10981 .IP "\fB\-mcallgraph\-data\fR" 4
10982 .IX Item "-mcallgraph-data"
10983 .PD 0
10984 .IP "\fB\-mno\-callgraph\-data\fR" 4
10985 .IX Item "-mno-callgraph-data"
10987 Emit callgraph information.
10988 .IP "\fB\-mslow\-bytes\fR" 4
10989 .IX Item "-mslow-bytes"
10990 .PD 0
10991 .IP "\fB\-mno\-slow\-bytes\fR" 4
10992 .IX Item "-mno-slow-bytes"
10994 Prefer word access when reading byte quantities.
10995 .IP "\fB\-mlittle\-endian\fR" 4
10996 .IX Item "-mlittle-endian"
10997 .PD 0
10998 .IP "\fB\-mbig\-endian\fR" 4
10999 .IX Item "-mbig-endian"
11001 Generate code for a little endian target.
11002 .IP "\fB\-m210\fR" 4
11003 .IX Item "-m210"
11004 .PD 0
11005 .IP "\fB\-m340\fR" 4
11006 .IX Item "-m340"
11008 Generate code for the 210 processor.
11010 \fI\s-1MIPS\s0 Options\fR
11011 .IX Subsection "MIPS Options"
11012 .IP "\fB\-EB\fR" 4
11013 .IX Item "-EB"
11014 Generate big-endian code.
11015 .IP "\fB\-EL\fR" 4
11016 .IX Item "-EL"
11017 Generate little-endian code.  This is the default for \fBmips*el\-*\-*\fR
11018 configurations.
11019 .IP "\fB\-march=\fR\fIarch\fR" 4
11020 .IX Item "-march=arch"
11021 Generate code that will run on \fIarch\fR, which can be the name of a
11022 generic \s-1MIPS\s0 \s-1ISA\s0, or the name of a particular processor.
11023 The \s-1ISA\s0 names are:
11024 \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
11025 \&\fBmips32\fR, \fBmips32r2\fR, and \fBmips64\fR.
11026 The processor names are:
11027 \&\fB4kc\fR, \fB4km\fR, \fB4kp\fR, \fB4ksc\fR,
11028 \&\fB4kec\fR, \fB4kem\fR, \fB4kep\fR, \fB4ksd\fR,
11029 \&\fB5kc\fR, \fB5kf\fR,
11030 \&\fB20kc\fR,
11031 \&\fB24kc\fR, \fB24kf2_1\fR, \fB24kf1_1\fR,
11032 \&\fB24kec\fR, \fB24kef2_1\fR, \fB24kef1_1\fR,
11033 \&\fB34kc\fR, \fB34kf2_1\fR, \fB34kf1_1\fR,
11034 \&\fB74kc\fR, \fB74kf2_1\fR, \fB74kf1_1\fR, \fB74kf3_2\fR,
11035 \&\fBm4k\fR,
11036 \&\fBorion\fR,
11037 \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
11038 \&\fBr4600\fR, \fBr4650\fR, \fBr6000\fR, \fBr8000\fR,
11039 \&\fBrm7000\fR, \fBrm9000\fR,
11040 \&\fBsb1\fR,
11041 \&\fBsr71000\fR,
11042 \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
11043 \&\fBvr5000\fR, \fBvr5400\fR and \fBvr5500\fR.
11044 The special value \fBfrom-abi\fR selects the
11045 most compatible architecture for the selected \s-1ABI\s0 (that is,
11046 \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
11048 In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
11049 (for example, \fB\-march=r2k\fR).  Prefixes are optional, and
11050 \&\fBvr\fR may be written \fBr\fR.
11052 Names of the form \fIn\fR\fBf2_1\fR refer to processors with
11053 FPUs clocked at half the rate of the core, names of the form
11054 \&\fIn\fR\fBf1_1\fR refer to processors with FPUs clocked at the same
11055 rate as the core, and names of the form \fIn\fR\fBf3_2\fR refer to
11056 processors with FPUs clocked a ratio of 3:2 with respect to the core.
11057 For compatibility reasons, \fIn\fR\fBf\fR is accepted as a synonym
11058 for \fIn\fR\fBf2_1\fR while \fIn\fR\fBx\fR and \fIb\fR\fBfx\fR are
11059 accepted as synonyms for \fIn\fR\fBf1_1\fR.
11061 \&\s-1GCC\s0 defines two macros based on the value of this option.  The first
11062 is \fB_MIPS_ARCH\fR, which gives the name of target architecture, as
11063 a string.  The second has the form \fB_MIPS_ARCH_\fR\fIfoo\fR,
11064 where \fIfoo\fR is the capitalized value of \fB_MIPS_ARCH\fR.
11065 For example, \fB\-march=r2000\fR will set \fB_MIPS_ARCH\fR
11066 to \fB\*(L"r2000\*(R"\fR and define the macro \fB_MIPS_ARCH_R2000\fR.
11068 Note that the \fB_MIPS_ARCH\fR macro uses the processor names given
11069 above.  In other words, it will have the full prefix and will not
11070 abbreviate \fB000\fR as \fBk\fR.  In the case of \fBfrom-abi\fR,
11071 the macro names the resolved architecture (either \fB\*(L"mips1\*(R"\fR or
11072 \&\fB\*(L"mips3\*(R"\fR).  It names the default architecture when no
11073 \&\fB\-march\fR option is given.
11074 .IP "\fB\-mtune=\fR\fIarch\fR" 4
11075 .IX Item "-mtune=arch"
11076 Optimize for \fIarch\fR.  Among other things, this option controls
11077 the way instructions are scheduled, and the perceived cost of arithmetic
11078 operations.  The list of \fIarch\fR values is the same as for
11079 \&\fB\-march\fR.
11081 When this option is not used, \s-1GCC\s0 will optimize for the processor
11082 specified by \fB\-march\fR.  By using \fB\-march\fR and
11083 \&\fB\-mtune\fR together, it is possible to generate code that will
11084 run on a family of processors, but optimize the code for one
11085 particular member of that family.
11087 \&\fB\-mtune\fR defines the macros \fB_MIPS_TUNE\fR and
11088 \&\fB_MIPS_TUNE_\fR\fIfoo\fR, which work in the same way as the
11089 \&\fB\-march\fR ones described above.
11090 .IP "\fB\-mips1\fR" 4
11091 .IX Item "-mips1"
11092 Equivalent to \fB\-march=mips1\fR.
11093 .IP "\fB\-mips2\fR" 4
11094 .IX Item "-mips2"
11095 Equivalent to \fB\-march=mips2\fR.
11096 .IP "\fB\-mips3\fR" 4
11097 .IX Item "-mips3"
11098 Equivalent to \fB\-march=mips3\fR.
11099 .IP "\fB\-mips4\fR" 4
11100 .IX Item "-mips4"
11101 Equivalent to \fB\-march=mips4\fR.
11102 .IP "\fB\-mips32\fR" 4
11103 .IX Item "-mips32"
11104 Equivalent to \fB\-march=mips32\fR.
11105 .IP "\fB\-mips32r2\fR" 4
11106 .IX Item "-mips32r2"
11107 Equivalent to \fB\-march=mips32r2\fR.
11108 .IP "\fB\-mips64\fR" 4
11109 .IX Item "-mips64"
11110 Equivalent to \fB\-march=mips64\fR.
11111 .IP "\fB\-mips16\fR" 4
11112 .IX Item "-mips16"
11113 .PD 0
11114 .IP "\fB\-mno\-mips16\fR" 4
11115 .IX Item "-mno-mips16"
11117 Generate (do not generate) \s-1MIPS16\s0 code.  If \s-1GCC\s0 is targetting a
11118 \&\s-1MIPS32\s0 or \s-1MIPS64\s0 architecture, it will make use of the MIPS16e \s-1ASE\s0.
11120 \&\s-1MIPS16\s0 code generation can also be controlled on a per-function basis
11121 by means of \f(CW\*(C`mips16\*(C'\fR and \f(CW\*(C`nomips16\*(C'\fR attributes.
11122 .IP "\fB\-mflip\-mips16\fR" 4
11123 .IX Item "-mflip-mips16"
11124 Generate \s-1MIPS16\s0 code on alternating functions.  This option is provided
11125 for regression testing of mixed MIPS16/non\-MIPS16 code generation, and is
11126 not intended for ordinary use in compiling user code.
11127 .IP "\fB\-minterlink\-mips16\fR" 4
11128 .IX Item "-minterlink-mips16"
11129 .PD 0
11130 .IP "\fB\-mno\-interlink\-mips16\fR" 4
11131 .IX Item "-mno-interlink-mips16"
11133 Require (do not require) that non\-MIPS16 code be link-compatible with
11134 \&\s-1MIPS16\s0 code.
11136 For example, non\-MIPS16 code cannot jump directly to \s-1MIPS16\s0 code;
11137 it must either use a call or an indirect jump.  \fB\-minterlink\-mips16\fR
11138 therefore disables direct jumps unless \s-1GCC\s0 knows that the target of the
11139 jump is not \s-1MIPS16\s0.
11140 .IP "\fB\-mabi=32\fR" 4
11141 .IX Item "-mabi=32"
11142 .PD 0
11143 .IP "\fB\-mabi=o64\fR" 4
11144 .IX Item "-mabi=o64"
11145 .IP "\fB\-mabi=n32\fR" 4
11146 .IX Item "-mabi=n32"
11147 .IP "\fB\-mabi=64\fR" 4
11148 .IX Item "-mabi=64"
11149 .IP "\fB\-mabi=eabi\fR" 4
11150 .IX Item "-mabi=eabi"
11152 Generate code for the given \s-1ABI\s0.
11154 Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant.  \s-1GCC\s0 normally
11155 generates 64\-bit code when you select a 64\-bit architecture, but you
11156 can use \fB\-mgp32\fR to get 32\-bit code instead.
11158 For information about the O64 \s-1ABI\s0, see
11159 <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
11161 \&\s-1GCC\s0 supports a variant of the o32 \s-1ABI\s0 in which floating-point registers
11162 are 64 rather than 32 bits wide.  You can select this combination with
11163 \&\fB\-mabi=32\fR \fB\-mfp64\fR.  This \s-1ABI\s0 relies on the \fBmthc1\fR
11164 and \fBmfhc1\fR instructions and is therefore only supported for
11165 \&\s-1MIPS32R2\s0 processors.
11167 The register assignments for arguments and return values remain the
11168 same, but each scalar value is passed in a single 64\-bit register
11169 rather than a pair of 32\-bit registers.  For example, scalar
11170 floating-point values are returned in \fB\f(CB$f0\fB\fR only, not a
11171 \&\fB\f(CB$f0\fB\fR/\fB\f(CB$f1\fB\fR pair.  The set of call-saved registers also
11172 remains the same, but all 64 bits are saved.
11173 .IP "\fB\-mabicalls\fR" 4
11174 .IX Item "-mabicalls"
11175 .PD 0
11176 .IP "\fB\-mno\-abicalls\fR" 4
11177 .IX Item "-mno-abicalls"
11179 Generate (do not generate) code that is suitable for SVR4\-style
11180 dynamic objects.  \fB\-mabicalls\fR is the default for SVR4\-based
11181 systems.
11182 .IP "\fB\-mshared\fR" 4
11183 .IX Item "-mshared"
11184 .PD 0
11185 .IP "\fB\-mno\-shared\fR" 4
11186 .IX Item "-mno-shared"
11188 Generate (do not generate) code that is fully position-independent,
11189 and that can therefore be linked into shared libraries.  This option
11190 only affects \fB\-mabicalls\fR.
11192 All \fB\-mabicalls\fR code has traditionally been position-independent,
11193 regardless of options like \fB\-fPIC\fR and \fB\-fpic\fR.  However,
11194 as an extension, the \s-1GNU\s0 toolchain allows executables to use absolute
11195 accesses for locally-binding symbols.  It can also use shorter \s-1GP\s0
11196 initialization sequences and generate direct calls to locally-defined
11197 functions.  This mode is selected by \fB\-mno\-shared\fR.
11199 \&\fB\-mno\-shared\fR depends on binutils 2.16 or higher and generates
11200 objects that can only be linked by the \s-1GNU\s0 linker.  However, the option
11201 does not affect the \s-1ABI\s0 of the final executable; it only affects the \s-1ABI\s0
11202 of relocatable objects.  Using \fB\-mno\-shared\fR will generally make
11203 executables both smaller and quicker.
11205 \&\fB\-mshared\fR is the default.
11206 .IP "\fB\-mxgot\fR" 4
11207 .IX Item "-mxgot"
11208 .PD 0
11209 .IP "\fB\-mno\-xgot\fR" 4
11210 .IX Item "-mno-xgot"
11212 Lift (do not lift) the usual restrictions on the size of the global
11213 offset table.
11215 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
11216 While this is relatively efficient, it will only work if the \s-1GOT\s0
11217 is smaller than about 64k.  Anything larger will cause the linker
11218 to report an error such as:
11220 .Vb 1
11221 \&        relocation truncated to fit: R_MIPS_GOT16 foobar
11224 If this happens, you should recompile your code with \fB\-mxgot\fR.
11225 It should then work with very large GOTs, although it will also be
11226 less efficient, since it will take three instructions to fetch the
11227 value of a global symbol.
11229 Note that some linkers can create multiple GOTs.  If you have such a
11230 linker, you should only need to use \fB\-mxgot\fR when a single object
11231 file accesses more than 64k's worth of \s-1GOT\s0 entries.  Very few do.
11233 These options have no effect unless \s-1GCC\s0 is generating position
11234 independent code.
11235 .IP "\fB\-mgp32\fR" 4
11236 .IX Item "-mgp32"
11237 Assume that general-purpose registers are 32 bits wide.
11238 .IP "\fB\-mgp64\fR" 4
11239 .IX Item "-mgp64"
11240 Assume that general-purpose registers are 64 bits wide.
11241 .IP "\fB\-mfp32\fR" 4
11242 .IX Item "-mfp32"
11243 Assume that floating-point registers are 32 bits wide.
11244 .IP "\fB\-mfp64\fR" 4
11245 .IX Item "-mfp64"
11246 Assume that floating-point registers are 64 bits wide.
11247 .IP "\fB\-mhard\-float\fR" 4
11248 .IX Item "-mhard-float"
11249 Use floating-point coprocessor instructions.
11250 .IP "\fB\-msoft\-float\fR" 4
11251 .IX Item "-msoft-float"
11252 Do not use floating-point coprocessor instructions.  Implement
11253 floating-point calculations using library calls instead.
11254 .IP "\fB\-msingle\-float\fR" 4
11255 .IX Item "-msingle-float"
11256 Assume that the floating-point coprocessor only supports single-precision
11257 operations.
11258 .IP "\fB\-mdouble\-float\fR" 4
11259 .IX Item "-mdouble-float"
11260 Assume that the floating-point coprocessor supports double-precision
11261 operations.  This is the default.
11262 .IP "\fB\-mllsc\fR" 4
11263 .IX Item "-mllsc"
11264 .PD 0
11265 .IP "\fB\-mno\-llsc\fR" 4
11266 .IX Item "-mno-llsc"
11268 Use (do not use) \fBll\fR, \fBsc\fR, and \fBsync\fR instructions to
11269 implement atomic memory built-in functions.  When neither option is
11270 specified, \s-1GCC\s0 will use the instructions if the target architecture
11271 supports them.
11273 \&\fB\-mllsc\fR is useful if the runtime environment can emulate the
11274 instructions and \fB\-mno\-llsc\fR can be useful when compiling for
11275 nonstandard ISAs.  You can make either option the default by
11276 configuring \s-1GCC\s0 with \fB\-\-with\-llsc\fR and \fB\-\-without\-llsc\fR
11277 respectively.  \fB\-\-with\-llsc\fR is the default for some
11278 configurations; see the installation documentation for details.
11279 .IP "\fB\-mdsp\fR" 4
11280 .IX Item "-mdsp"
11281 .PD 0
11282 .IP "\fB\-mno\-dsp\fR" 4
11283 .IX Item "-mno-dsp"
11285 Use (do not use) revision 1 of the \s-1MIPS\s0 \s-1DSP\s0 \s-1ASE\s0.
11286   This option defines the
11287 preprocessor macro \fB_\|_mips_dsp\fR.  It also defines
11288 \&\fB_\|_mips_dsp_rev\fR to 1.
11289 .IP "\fB\-mdspr2\fR" 4
11290 .IX Item "-mdspr2"
11291 .PD 0
11292 .IP "\fB\-mno\-dspr2\fR" 4
11293 .IX Item "-mno-dspr2"
11295 Use (do not use) revision 2 of the \s-1MIPS\s0 \s-1DSP\s0 \s-1ASE\s0.
11296   This option defines the
11297 preprocessor macros \fB_\|_mips_dsp\fR and \fB_\|_mips_dspr2\fR.
11298 It also defines \fB_\|_mips_dsp_rev\fR to 2.
11299 .IP "\fB\-msmartmips\fR" 4
11300 .IX Item "-msmartmips"
11301 .PD 0
11302 .IP "\fB\-mno\-smartmips\fR" 4
11303 .IX Item "-mno-smartmips"
11305 Use (do not use) the \s-1MIPS\s0 SmartMIPS \s-1ASE\s0.
11306 .IP "\fB\-mpaired\-single\fR" 4
11307 .IX Item "-mpaired-single"
11308 .PD 0
11309 .IP "\fB\-mno\-paired\-single\fR" 4
11310 .IX Item "-mno-paired-single"
11312 Use (do not use) paired-single floating-point instructions.
11313   This option requires
11314 hardware floating-point support to be enabled.
11315 .IP "\fB\-mdmx\fR" 4
11316 .IX Item "-mdmx"
11317 .PD 0
11318 .IP "\fB\-mno\-mdmx\fR" 4
11319 .IX Item "-mno-mdmx"
11321 Use (do not use) \s-1MIPS\s0 Digital Media Extension instructions.
11322 This option can only be used when generating 64\-bit code and requires
11323 hardware floating-point support to be enabled.
11324 .IP "\fB\-mips3d\fR" 4
11325 .IX Item "-mips3d"
11326 .PD 0
11327 .IP "\fB\-mno\-mips3d\fR" 4
11328 .IX Item "-mno-mips3d"
11330 Use (do not use) the \s-1MIPS\-3D\s0 \s-1ASE\s0.  
11331 The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
11332 .IP "\fB\-mmt\fR" 4
11333 .IX Item "-mmt"
11334 .PD 0
11335 .IP "\fB\-mno\-mt\fR" 4
11336 .IX Item "-mno-mt"
11338 Use (do not use) \s-1MT\s0 Multithreading instructions.
11339 .IP "\fB\-mlong64\fR" 4
11340 .IX Item "-mlong64"
11341 Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See \fB\-mlong32\fR for
11342 an explanation of the default and the way that the pointer size is
11343 determined.
11344 .IP "\fB\-mlong32\fR" 4
11345 .IX Item "-mlong32"
11346 Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
11348 The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
11349 the \s-1ABI\s0.  All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs.  The n64 \s-1ABI\s0
11350 uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
11351 32\-bit \f(CW\*(C`long\*(C'\fRs.  Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
11352 or the same size as integer registers, whichever is smaller.
11353 .IP "\fB\-msym32\fR" 4
11354 .IX Item "-msym32"
11355 .PD 0
11356 .IP "\fB\-mno\-sym32\fR" 4
11357 .IX Item "-mno-sym32"
11359 Assume (do not assume) that all symbols have 32\-bit values, regardless
11360 of the selected \s-1ABI\s0.  This option is useful in combination with
11361 \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
11362 to generate shorter and faster references to symbolic addresses.
11363 .IP "\fB\-G\fR \fInum\fR" 4
11364 .IX Item "-G num"
11365 Put definitions of externally-visible data in a small data section
11366 if that data is no bigger than \fInum\fR bytes.  \s-1GCC\s0 can then access
11367 the data more efficiently; see \fB\-mgpopt\fR for details.
11369 The default \fB\-G\fR option depends on the configuration.
11370 .IP "\fB\-mlocal\-sdata\fR" 4
11371 .IX Item "-mlocal-sdata"
11372 .PD 0
11373 .IP "\fB\-mno\-local\-sdata\fR" 4
11374 .IX Item "-mno-local-sdata"
11376 Extend (do not extend) the \fB\-G\fR behavior to local data too,
11377 such as to static variables in C.  \fB\-mlocal\-sdata\fR is the
11378 default for all configurations.
11380 If the linker complains that an application is using too much small data,
11381 you might want to try rebuilding the less performance-critical parts with
11382 \&\fB\-mno\-local\-sdata\fR.  You might also want to build large
11383 libraries with \fB\-mno\-local\-sdata\fR, so that the libraries leave
11384 more room for the main program.
11385 .IP "\fB\-mextern\-sdata\fR" 4
11386 .IX Item "-mextern-sdata"
11387 .PD 0
11388 .IP "\fB\-mno\-extern\-sdata\fR" 4
11389 .IX Item "-mno-extern-sdata"
11391 Assume (do not assume) that externally-defined data will be in
11392 a small data section if that data is within the \fB\-G\fR limit.
11393 \&\fB\-mextern\-sdata\fR is the default for all configurations.
11395 If you compile a module \fIMod\fR with \fB\-mextern\-sdata\fR \fB\-G\fR
11396 \&\fInum\fR \fB\-mgpopt\fR, and \fIMod\fR references a variable \fIVar\fR
11397 that is no bigger than \fInum\fR bytes, you must make sure that \fIVar\fR
11398 is placed in a small data section.  If \fIVar\fR is defined by another
11399 module, you must either compile that module with a high-enough
11400 \&\fB\-G\fR setting or attach a \f(CW\*(C`section\*(C'\fR attribute to \fIVar\fR's
11401 definition.  If \fIVar\fR is common, you must link the application
11402 with a high-enough \fB\-G\fR setting.
11404 The easiest way of satisfying these restrictions is to compile
11405 and link every module with the same \fB\-G\fR option.  However,
11406 you may wish to build a library that supports several different
11407 small data limits.  You can do this by compiling the library with
11408 the highest supported \fB\-G\fR setting and additionally using
11409 \&\fB\-mno\-extern\-sdata\fR to stop the library from making assumptions
11410 about externally-defined data.
11411 .IP "\fB\-mgpopt\fR" 4
11412 .IX Item "-mgpopt"
11413 .PD 0
11414 .IP "\fB\-mno\-gpopt\fR" 4
11415 .IX Item "-mno-gpopt"
11417 Use (do not use) GP-relative accesses for symbols that are known to be
11418 in a small data section; see \fB\-G\fR, \fB\-mlocal\-sdata\fR and
11419 \&\fB\-mextern\-sdata\fR.  \fB\-mgpopt\fR is the default for all
11420 configurations.
11422 \&\fB\-mno\-gpopt\fR is useful for cases where the \f(CW$gp\fR register
11423 might not hold the value of \f(CW\*(C`_gp\*(C'\fR.  For example, if the code is
11424 part of a library that might be used in a boot monitor, programs that
11425 call boot monitor routines will pass an unknown value in \f(CW$gp\fR.
11426 (In such situations, the boot monitor itself would usually be compiled
11427 with \fB\-G0\fR.)
11429 \&\fB\-mno\-gpopt\fR implies \fB\-mno\-local\-sdata\fR and
11430 \&\fB\-mno\-extern\-sdata\fR.
11431 .IP "\fB\-membedded\-data\fR" 4
11432 .IX Item "-membedded-data"
11433 .PD 0
11434 .IP "\fB\-mno\-embedded\-data\fR" 4
11435 .IX Item "-mno-embedded-data"
11437 Allocate variables to the read-only data section first if possible, then
11438 next in the small data section if possible, otherwise in data.  This gives
11439 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
11440 when executing, and thus may be preferred for some embedded systems.
11441 .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
11442 .IX Item "-muninit-const-in-rodata"
11443 .PD 0
11444 .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
11445 .IX Item "-mno-uninit-const-in-rodata"
11447 Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
11448 This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
11449 .IP "\fB\-mcode\-readable=\fR\fIsetting\fR" 4
11450 .IX Item "-mcode-readable=setting"
11451 Specify whether \s-1GCC\s0 may generate code that reads from executable sections.
11452 There are three possible settings:
11453 .RS 4
11454 .IP "\fB\-mcode\-readable=yes\fR" 4
11455 .IX Item "-mcode-readable=yes"
11456 Instructions may freely access executable sections.  This is the
11457 default setting.
11458 .IP "\fB\-mcode\-readable=pcrel\fR" 4
11459 .IX Item "-mcode-readable=pcrel"
11460 \&\s-1MIPS16\s0 PC-relative load instructions can access executable sections,
11461 but other instructions must not do so.  This option is useful on 4KSc
11462 and 4KSd processors when the code TLBs have the Read Inhibit bit set.
11463 It is also useful on processors that can be configured to have a dual
11464 instruction/data \s-1SRAM\s0 interface and that, like the M4K, automatically
11465 redirect PC-relative loads to the instruction \s-1RAM\s0.
11466 .IP "\fB\-mcode\-readable=no\fR" 4
11467 .IX Item "-mcode-readable=no"
11468 Instructions must not access executable sections.  This option can be
11469 useful on targets that are configured to have a dual instruction/data
11470 \&\s-1SRAM\s0 interface but that (unlike the M4K) do not automatically redirect
11471 PC-relative loads to the instruction \s-1RAM\s0.
11473 .RS 4
11475 .IP "\fB\-msplit\-addresses\fR" 4
11476 .IX Item "-msplit-addresses"
11477 .PD 0
11478 .IP "\fB\-mno\-split\-addresses\fR" 4
11479 .IX Item "-mno-split-addresses"
11481 Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
11482 relocation operators.  This option has been superseded by
11483 \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
11484 .IP "\fB\-mexplicit\-relocs\fR" 4
11485 .IX Item "-mexplicit-relocs"
11486 .PD 0
11487 .IP "\fB\-mno\-explicit\-relocs\fR" 4
11488 .IX Item "-mno-explicit-relocs"
11490 Use (do not use) assembler relocation operators when dealing with symbolic
11491 addresses.  The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
11492 is to use assembler macros instead.
11494 \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
11495 to use an assembler that supports relocation operators.
11496 .IP "\fB\-mcheck\-zero\-division\fR" 4
11497 .IX Item "-mcheck-zero-division"
11498 .PD 0
11499 .IP "\fB\-mno\-check\-zero\-division\fR" 4
11500 .IX Item "-mno-check-zero-division"
11502 Trap (do not trap) on integer division by zero.
11504 The default is \fB\-mcheck\-zero\-division\fR.
11505 .IP "\fB\-mdivide\-traps\fR" 4
11506 .IX Item "-mdivide-traps"
11507 .PD 0
11508 .IP "\fB\-mdivide\-breaks\fR" 4
11509 .IX Item "-mdivide-breaks"
11511 \&\s-1MIPS\s0 systems check for division by zero by generating either a
11512 conditional trap or a break instruction.  Using traps results in
11513 smaller code, but is only supported on \s-1MIPS\s0 \s-1II\s0 and later.  Also, some
11514 versions of the Linux kernel have a bug that prevents trap from
11515 generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR).  Use \fB\-mdivide\-traps\fR to
11516 allow conditional traps on architectures that support them and
11517 \&\fB\-mdivide\-breaks\fR to force the use of breaks.
11519 The default is usually \fB\-mdivide\-traps\fR, but this can be
11520 overridden at configure time using \fB\-\-with\-divide=breaks\fR.
11521 Divide-by-zero checks can be completely disabled using
11522 \&\fB\-mno\-check\-zero\-division\fR.
11523 .IP "\fB\-mmemcpy\fR" 4
11524 .IX Item "-mmemcpy"
11525 .PD 0
11526 .IP "\fB\-mno\-memcpy\fR" 4
11527 .IX Item "-mno-memcpy"
11529 Force (do not force) the use of \f(CW\*(C`memcpy()\*(C'\fR for non-trivial block
11530 moves.  The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
11531 most constant-sized copies.
11532 .IP "\fB\-mlong\-calls\fR" 4
11533 .IX Item "-mlong-calls"
11534 .PD 0
11535 .IP "\fB\-mno\-long\-calls\fR" 4
11536 .IX Item "-mno-long-calls"
11538 Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction.  Calling
11539 functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
11540 and callee to be in the same 256 megabyte segment.
11542 This option has no effect on abicalls code.  The default is
11543 \&\fB\-mno\-long\-calls\fR.
11544 .IP "\fB\-mmad\fR" 4
11545 .IX Item "-mmad"
11546 .PD 0
11547 .IP "\fB\-mno\-mad\fR" 4
11548 .IX Item "-mno-mad"
11550 Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
11551 instructions, as provided by the R4650 \s-1ISA\s0.
11552 .IP "\fB\-mfused\-madd\fR" 4
11553 .IX Item "-mfused-madd"
11554 .PD 0
11555 .IP "\fB\-mno\-fused\-madd\fR" 4
11556 .IX Item "-mno-fused-madd"
11558 Enable (disable) use of the floating point multiply-accumulate
11559 instructions, when they are available.  The default is
11560 \&\fB\-mfused\-madd\fR.
11562 When multiply-accumulate instructions are used, the intermediate
11563 product is calculated to infinite precision and is not subject to
11564 the \s-1FCSR\s0 Flush to Zero bit.  This may be undesirable in some
11565 circumstances.
11566 .IP "\fB\-nocpp\fR" 4
11567 .IX Item "-nocpp"
11568 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
11569 assembler files (with a \fB.s\fR suffix) when assembling them.
11570 .IP "\fB\-mfix\-r4000\fR" 4
11571 .IX Item "-mfix-r4000"
11572 .PD 0
11573 .IP "\fB\-mno\-fix\-r4000\fR" 4
11574 .IX Item "-mno-fix-r4000"
11576 Work around certain R4000 \s-1CPU\s0 errata:
11577 .RS 4
11578 .IP "\-" 4
11579 A double-word or a variable shift may give an incorrect result if executed
11580 immediately after starting an integer division.
11581 .IP "\-" 4
11582 A double-word or a variable shift may give an incorrect result if executed
11583 while an integer multiplication is in progress.
11584 .IP "\-" 4
11585 An integer division may give an incorrect result if started in a delay slot
11586 of a taken branch or a jump.
11588 .RS 4
11590 .IP "\fB\-mfix\-r4400\fR" 4
11591 .IX Item "-mfix-r4400"
11592 .PD 0
11593 .IP "\fB\-mno\-fix\-r4400\fR" 4
11594 .IX Item "-mno-fix-r4400"
11596 Work around certain R4400 \s-1CPU\s0 errata:
11597 .RS 4
11598 .IP "\-" 4
11599 A double-word or a variable shift may give an incorrect result if executed
11600 immediately after starting an integer division.
11602 .RS 4
11604 .IP "\fB\-mfix\-vr4120\fR" 4
11605 .IX Item "-mfix-vr4120"
11606 .PD 0
11607 .IP "\fB\-mno\-fix\-vr4120\fR" 4
11608 .IX Item "-mno-fix-vr4120"
11610 Work around certain \s-1VR4120\s0 errata:
11611 .RS 4
11612 .IP "\-" 4
11613 \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
11614 .IP "\-" 4
11615 \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
11616 of the operands is negative.
11618 .RS 4
11620 The workarounds for the division errata rely on special functions in
11621 \&\fIlibgcc.a\fR.  At present, these functions are only provided by
11622 the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
11624 Other \s-1VR4120\s0 errata require a nop to be inserted between certain pairs of
11625 instructions.  These errata are handled by the assembler, not by \s-1GCC\s0 itself.
11627 .IP "\fB\-mfix\-vr4130\fR" 4
11628 .IX Item "-mfix-vr4130"
11629 Work around the \s-1VR4130\s0 \f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata.  The
11630 workarounds are implemented by the assembler rather than by \s-1GCC\s0,
11631 although \s-1GCC\s0 will avoid using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
11632 \&\s-1VR4130\s0 \f(CW\*(C`macc\*(C'\fR, \f(CW\*(C`macchi\*(C'\fR, \f(CW\*(C`dmacc\*(C'\fR and \f(CW\*(C`dmacchi\*(C'\fR
11633 instructions are available instead.
11634 .IP "\fB\-mfix\-sb1\fR" 4
11635 .IX Item "-mfix-sb1"
11636 .PD 0
11637 .IP "\fB\-mno\-fix\-sb1\fR" 4
11638 .IX Item "-mno-fix-sb1"
11640 Work around certain \s-1SB\-1\s0 \s-1CPU\s0 core errata.
11641 (This flag currently works around the \s-1SB\-1\s0 revision 2
11642 \&\*(L"F1\*(R" and \*(L"F2\*(R" floating point errata.)
11643 .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
11644 .IX Item "-mflush-func=func"
11645 .PD 0
11646 .IP "\fB\-mno\-flush\-func\fR" 4
11647 .IX Item "-mno-flush-func"
11649 Specifies the function to call to flush the I and D caches, or to not
11650 call any such function.  If called, the function must take the same
11651 arguments as the common \f(CW\*(C`_flush_func()\*(C'\fR, that is, the address of the
11652 memory range for which the cache is being flushed, the size of the
11653 memory range, and the number 3 (to flush both caches).  The default
11654 depends on the target \s-1GCC\s0 was configured for, but commonly is either
11655 \&\fB_flush_func\fR or \fB_\|_cpu_flush\fR.
11656 .IP "\fBmbranch\-cost=\fR\fInum\fR" 4
11657 .IX Item "mbranch-cost=num"
11658 Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
11659 This cost is only a heuristic and is not guaranteed to produce
11660 consistent results across releases.  A zero cost redundantly selects
11661 the default, which is based on the \fB\-mtune\fR setting.
11662 .IP "\fB\-mbranch\-likely\fR" 4
11663 .IX Item "-mbranch-likely"
11664 .PD 0
11665 .IP "\fB\-mno\-branch\-likely\fR" 4
11666 .IX Item "-mno-branch-likely"
11668 Enable or disable use of Branch Likely instructions, regardless of the
11669 default for the selected architecture.  By default, Branch Likely
11670 instructions may be generated if they are supported by the selected
11671 architecture.  An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
11672 and processors which implement those architectures; for those, Branch
11673 Likely instructions will not be generated by default because the \s-1MIPS32\s0
11674 and \s-1MIPS64\s0 architectures specifically deprecate their use.
11675 .IP "\fB\-mfp\-exceptions\fR" 4
11676 .IX Item "-mfp-exceptions"
11677 .PD 0
11678 .IP "\fB\-mno\-fp\-exceptions\fR" 4
11679 .IX Item "-mno-fp-exceptions"
11681 Specifies whether \s-1FP\s0 exceptions are enabled.  This affects how we schedule
11682 \&\s-1FP\s0 instructions for some processors.  The default is that \s-1FP\s0 exceptions are
11683 enabled.
11685 For instance, on the \s-1SB\-1\s0, if \s-1FP\s0 exceptions are disabled, and we are emitting
11686 64\-bit code, then we can use both \s-1FP\s0 pipes.  Otherwise, we can only use one
11687 \&\s-1FP\s0 pipe.
11688 .IP "\fB\-mvr4130\-align\fR" 4
11689 .IX Item "-mvr4130-align"
11690 .PD 0
11691 .IP "\fB\-mno\-vr4130\-align\fR" 4
11692 .IX Item "-mno-vr4130-align"
11694 The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
11695 instructions together if the first one is 8\-byte aligned.  When this
11696 option is enabled, \s-1GCC\s0 will align pairs of instructions that it
11697 thinks should execute in parallel.
11699 This option only has an effect when optimizing for the \s-1VR4130\s0.
11700 It normally makes code faster, but at the expense of making it bigger.
11701 It is enabled by default at optimization level \fB\-O3\fR.
11703 \fI\s-1MMIX\s0 Options\fR
11704 .IX Subsection "MMIX Options"
11706 These options are defined for the \s-1MMIX:\s0
11707 .IP "\fB\-mlibfuncs\fR" 4
11708 .IX Item "-mlibfuncs"
11709 .PD 0
11710 .IP "\fB\-mno\-libfuncs\fR" 4
11711 .IX Item "-mno-libfuncs"
11713 Specify that intrinsic library functions are being compiled, passing all
11714 values in registers, no matter the size.
11715 .IP "\fB\-mepsilon\fR" 4
11716 .IX Item "-mepsilon"
11717 .PD 0
11718 .IP "\fB\-mno\-epsilon\fR" 4
11719 .IX Item "-mno-epsilon"
11721 Generate floating-point comparison instructions that compare with respect
11722 to the \f(CW\*(C`rE\*(C'\fR epsilon register.
11723 .IP "\fB\-mabi=mmixware\fR" 4
11724 .IX Item "-mabi=mmixware"
11725 .PD 0
11726 .IP "\fB\-mabi=gnu\fR" 4
11727 .IX Item "-mabi=gnu"
11729 Generate code that passes function parameters and return values that (in
11730 the called function) are seen as registers \f(CW$0\fR and up, as opposed to
11731 the \s-1GNU\s0 \s-1ABI\s0 which uses global registers \f(CW$231\fR and up.
11732 .IP "\fB\-mzero\-extend\fR" 4
11733 .IX Item "-mzero-extend"
11734 .PD 0
11735 .IP "\fB\-mno\-zero\-extend\fR" 4
11736 .IX Item "-mno-zero-extend"
11738 When reading data from memory in sizes shorter than 64 bits, use (do not
11739 use) zero-extending load instructions by default, rather than
11740 sign-extending ones.
11741 .IP "\fB\-mknuthdiv\fR" 4
11742 .IX Item "-mknuthdiv"
11743 .PD 0
11744 .IP "\fB\-mno\-knuthdiv\fR" 4
11745 .IX Item "-mno-knuthdiv"
11747 Make the result of a division yielding a remainder have the same sign as
11748 the divisor.  With the default, \fB\-mno\-knuthdiv\fR, the sign of the
11749 remainder follows the sign of the dividend.  Both methods are
11750 arithmetically valid, the latter being almost exclusively used.
11751 .IP "\fB\-mtoplevel\-symbols\fR" 4
11752 .IX Item "-mtoplevel-symbols"
11753 .PD 0
11754 .IP "\fB\-mno\-toplevel\-symbols\fR" 4
11755 .IX Item "-mno-toplevel-symbols"
11757 Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
11758 code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
11759 .IP "\fB\-melf\fR" 4
11760 .IX Item "-melf"
11761 Generate an executable in the \s-1ELF\s0 format, rather than the default
11762 \&\fBmmo\fR format used by the \fBmmix\fR simulator.
11763 .IP "\fB\-mbranch\-predict\fR" 4
11764 .IX Item "-mbranch-predict"
11765 .PD 0
11766 .IP "\fB\-mno\-branch\-predict\fR" 4
11767 .IX Item "-mno-branch-predict"
11769 Use (do not use) the probable-branch instructions, when static branch
11770 prediction indicates a probable branch.
11771 .IP "\fB\-mbase\-addresses\fR" 4
11772 .IX Item "-mbase-addresses"
11773 .PD 0
11774 .IP "\fB\-mno\-base\-addresses\fR" 4
11775 .IX Item "-mno-base-addresses"
11777 Generate (do not generate) code that uses \fIbase addresses\fR.  Using a
11778 base address automatically generates a request (handled by the assembler
11779 and the linker) for a constant to be set up in a global register.  The
11780 register is used for one or more base address requests within the range 0
11781 to 255 from the value held in the register.  The generally leads to short
11782 and fast code, but the number of different data items that can be
11783 addressed is limited.  This means that a program that uses lots of static
11784 data may require \fB\-mno\-base\-addresses\fR.
11785 .IP "\fB\-msingle\-exit\fR" 4
11786 .IX Item "-msingle-exit"
11787 .PD 0
11788 .IP "\fB\-mno\-single\-exit\fR" 4
11789 .IX Item "-mno-single-exit"
11791 Force (do not force) generated code to have a single exit point in each
11792 function.
11794 \fI\s-1MN10300\s0 Options\fR
11795 .IX Subsection "MN10300 Options"
11797 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
11798 .IP "\fB\-mmult\-bug\fR" 4
11799 .IX Item "-mmult-bug"
11800 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
11801 processors.  This is the default.
11802 .IP "\fB\-mno\-mult\-bug\fR" 4
11803 .IX Item "-mno-mult-bug"
11804 Do not generate code to avoid bugs in the multiply instructions for the
11805 \&\s-1MN10300\s0 processors.
11806 .IP "\fB\-mam33\fR" 4
11807 .IX Item "-mam33"
11808 Generate code which uses features specific to the \s-1AM33\s0 processor.
11809 .IP "\fB\-mno\-am33\fR" 4
11810 .IX Item "-mno-am33"
11811 Do not generate code which uses features specific to the \s-1AM33\s0 processor.  This
11812 is the default.
11813 .IP "\fB\-mreturn\-pointer\-on\-d0\fR" 4
11814 .IX Item "-mreturn-pointer-on-d0"
11815 When generating a function which returns a pointer, return the pointer
11816 in both \f(CW\*(C`a0\*(C'\fR and \f(CW\*(C`d0\*(C'\fR.  Otherwise, the pointer is returned
11817 only in a0, and attempts to call such functions without a prototype
11818 would result in errors.  Note that this option is on by default; use
11819 \&\fB\-mno\-return\-pointer\-on\-d0\fR to disable it.
11820 .IP "\fB\-mno\-crt0\fR" 4
11821 .IX Item "-mno-crt0"
11822 Do not link in the C run-time initialization object file.
11823 .IP "\fB\-mrelax\fR" 4
11824 .IX Item "-mrelax"
11825 Indicate to the linker that it should perform a relaxation optimization pass
11826 to shorten branches, calls and absolute memory addresses.  This option only
11827 has an effect when used on the command line for the final link step.
11829 This option makes symbolic debugging impossible.
11831 \fI\s-1MT\s0 Options\fR
11832 .IX Subsection "MT Options"
11834 These \fB\-m\fR options are defined for Morpho \s-1MT\s0 architectures:
11835 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
11836 .IX Item "-march=cpu-type"
11837 Generate code that will run on \fIcpu-type\fR, which is the name of a system
11838 representing a certain processor type.  Possible values for
11839 \&\fIcpu-type\fR are \fBms1\-64\-001\fR, \fBms1\-16\-002\fR,
11840 \&\fBms1\-16\-003\fR and \fBms2\fR.
11842 When this option is not used, the default is \fB\-march=ms1\-16\-002\fR.
11843 .IP "\fB\-mbacc\fR" 4
11844 .IX Item "-mbacc"
11845 Use byte loads and stores when generating code.
11846 .IP "\fB\-mno\-bacc\fR" 4
11847 .IX Item "-mno-bacc"
11848 Do not use byte loads and stores when generating code.
11849 .IP "\fB\-msim\fR" 4
11850 .IX Item "-msim"
11851 Use simulator runtime
11852 .IP "\fB\-mno\-crt0\fR" 4
11853 .IX Item "-mno-crt0"
11854 Do not link in the C run-time initialization object file
11855 \&\fIcrti.o\fR.  Other run-time initialization and termination files
11856 such as \fIstartup.o\fR and \fIexit.o\fR are still included on the
11857 linker command line.
11859 \fI\s-1PDP\-11\s0 Options\fR
11860 .IX Subsection "PDP-11 Options"
11862 These options are defined for the \s-1PDP\-11:\s0
11863 .IP "\fB\-mfpu\fR" 4
11864 .IX Item "-mfpu"
11865 Use hardware \s-1FPP\s0 floating point.  This is the default.  (\s-1FIS\s0 floating
11866 point on the \s-1PDP\-11/40\s0 is not supported.)
11867 .IP "\fB\-msoft\-float\fR" 4
11868 .IX Item "-msoft-float"
11869 Do not use hardware floating point.
11870 .IP "\fB\-mac0\fR" 4
11871 .IX Item "-mac0"
11872 Return floating-point results in ac0 (fr0 in Unix assembler syntax).
11873 .IP "\fB\-mno\-ac0\fR" 4
11874 .IX Item "-mno-ac0"
11875 Return floating-point results in memory.  This is the default.
11876 .IP "\fB\-m40\fR" 4
11877 .IX Item "-m40"
11878 Generate code for a \s-1PDP\-11/40\s0.
11879 .IP "\fB\-m45\fR" 4
11880 .IX Item "-m45"
11881 Generate code for a \s-1PDP\-11/45\s0.  This is the default.
11882 .IP "\fB\-m10\fR" 4
11883 .IX Item "-m10"
11884 Generate code for a \s-1PDP\-11/10\s0.
11885 .IP "\fB\-mbcopy\-builtin\fR" 4
11886 .IX Item "-mbcopy-builtin"
11887 Use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.  This is the
11888 default.
11889 .IP "\fB\-mbcopy\fR" 4
11890 .IX Item "-mbcopy"
11891 Do not use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.
11892 .IP "\fB\-mint16\fR" 4
11893 .IX Item "-mint16"
11894 .PD 0
11895 .IP "\fB\-mno\-int32\fR" 4
11896 .IX Item "-mno-int32"
11898 Use 16\-bit \f(CW\*(C`int\*(C'\fR.  This is the default.
11899 .IP "\fB\-mint32\fR" 4
11900 .IX Item "-mint32"
11901 .PD 0
11902 .IP "\fB\-mno\-int16\fR" 4
11903 .IX Item "-mno-int16"
11905 Use 32\-bit \f(CW\*(C`int\*(C'\fR.
11906 .IP "\fB\-mfloat64\fR" 4
11907 .IX Item "-mfloat64"
11908 .PD 0
11909 .IP "\fB\-mno\-float32\fR" 4
11910 .IX Item "-mno-float32"
11912 Use 64\-bit \f(CW\*(C`float\*(C'\fR.  This is the default.
11913 .IP "\fB\-mfloat32\fR" 4
11914 .IX Item "-mfloat32"
11915 .PD 0
11916 .IP "\fB\-mno\-float64\fR" 4
11917 .IX Item "-mno-float64"
11919 Use 32\-bit \f(CW\*(C`float\*(C'\fR.
11920 .IP "\fB\-mabshi\fR" 4
11921 .IX Item "-mabshi"
11922 Use \f(CW\*(C`abshi2\*(C'\fR pattern.  This is the default.
11923 .IP "\fB\-mno\-abshi\fR" 4
11924 .IX Item "-mno-abshi"
11925 Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
11926 .IP "\fB\-mbranch\-expensive\fR" 4
11927 .IX Item "-mbranch-expensive"
11928 Pretend that branches are expensive.  This is for experimenting with
11929 code generation only.
11930 .IP "\fB\-mbranch\-cheap\fR" 4
11931 .IX Item "-mbranch-cheap"
11932 Do not pretend that branches are expensive.  This is the default.
11933 .IP "\fB\-msplit\fR" 4
11934 .IX Item "-msplit"
11935 Generate code for a system with split I&D.
11936 .IP "\fB\-mno\-split\fR" 4
11937 .IX Item "-mno-split"
11938 Generate code for a system without split I&D.  This is the default.
11939 .IP "\fB\-munix\-asm\fR" 4
11940 .IX Item "-munix-asm"
11941 Use Unix assembler syntax.  This is the default when configured for
11942 \&\fBpdp11\-*\-bsd\fR.
11943 .IP "\fB\-mdec\-asm\fR" 4
11944 .IX Item "-mdec-asm"
11945 Use \s-1DEC\s0 assembler syntax.  This is the default when configured for any
11946 \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
11948 \fIPowerPC Options\fR
11949 .IX Subsection "PowerPC Options"
11951 These are listed under
11953 \fI\s-1IBM\s0 \s-1RS/6000\s0 and PowerPC Options\fR
11954 .IX Subsection "IBM RS/6000 and PowerPC Options"
11956 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RS/6000\s0 and PowerPC:
11957 .IP "\fB\-mpower\fR" 4
11958 .IX Item "-mpower"
11959 .PD 0
11960 .IP "\fB\-mno\-power\fR" 4
11961 .IX Item "-mno-power"
11962 .IP "\fB\-mpower2\fR" 4
11963 .IX Item "-mpower2"
11964 .IP "\fB\-mno\-power2\fR" 4
11965 .IX Item "-mno-power2"
11966 .IP "\fB\-mpowerpc\fR" 4
11967 .IX Item "-mpowerpc"
11968 .IP "\fB\-mno\-powerpc\fR" 4
11969 .IX Item "-mno-powerpc"
11970 .IP "\fB\-mpowerpc\-gpopt\fR" 4
11971 .IX Item "-mpowerpc-gpopt"
11972 .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
11973 .IX Item "-mno-powerpc-gpopt"
11974 .IP "\fB\-mpowerpc\-gfxopt\fR" 4
11975 .IX Item "-mpowerpc-gfxopt"
11976 .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
11977 .IX Item "-mno-powerpc-gfxopt"
11978 .IP "\fB\-mpowerpc64\fR" 4
11979 .IX Item "-mpowerpc64"
11980 .IP "\fB\-mno\-powerpc64\fR" 4
11981 .IX Item "-mno-powerpc64"
11982 .IP "\fB\-mmfcrf\fR" 4
11983 .IX Item "-mmfcrf"
11984 .IP "\fB\-mno\-mfcrf\fR" 4
11985 .IX Item "-mno-mfcrf"
11986 .IP "\fB\-mpopcntb\fR" 4
11987 .IX Item "-mpopcntb"
11988 .IP "\fB\-mno\-popcntb\fR" 4
11989 .IX Item "-mno-popcntb"
11990 .IP "\fB\-mfprnd\fR" 4
11991 .IX Item "-mfprnd"
11992 .IP "\fB\-mno\-fprnd\fR" 4
11993 .IX Item "-mno-fprnd"
11994 .IP "\fB\-mcmpb\fR" 4
11995 .IX Item "-mcmpb"
11996 .IP "\fB\-mno\-cmpb\fR" 4
11997 .IX Item "-mno-cmpb"
11998 .IP "\fB\-mmfpgpr\fR" 4
11999 .IX Item "-mmfpgpr"
12000 .IP "\fB\-mno\-mfpgpr\fR" 4
12001 .IX Item "-mno-mfpgpr"
12002 .IP "\fB\-mhard\-dfp\fR" 4
12003 .IX Item "-mhard-dfp"
12004 .IP "\fB\-mno\-hard\-dfp\fR" 4
12005 .IX Item "-mno-hard-dfp"
12007 \&\s-1GCC\s0 supports two related instruction set architectures for the
12008 \&\s-1RS/6000\s0 and PowerPC.  The \fI\s-1POWER\s0\fR instruction set are those
12009 instructions supported by the \fBrios\fR chip set used in the original
12010 \&\s-1RS/6000\s0 systems and the \fIPowerPC\fR instruction set is the
12011 architecture of the Freescale MPC5xx, MPC6xx, MPC8xx microprocessors, and
12012 the \s-1IBM\s0 4xx, 6xx, and follow-on microprocessors.
12014 Neither architecture is a subset of the other.  However there is a
12015 large common subset of instructions supported by both.  An \s-1MQ\s0
12016 register is included in processors supporting the \s-1POWER\s0 architecture.
12018 You use these options to specify which instructions are available on the
12019 processor you are using.  The default value of these options is
12020 determined when configuring \s-1GCC\s0.  Specifying the
12021 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
12022 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
12023 rather than the options listed above.
12025 The \fB\-mpower\fR option allows \s-1GCC\s0 to generate instructions that
12026 are found only in the \s-1POWER\s0 architecture and to use the \s-1MQ\s0 register.
12027 Specifying \fB\-mpower2\fR implies \fB\-power\fR and also allows \s-1GCC\s0
12028 to generate instructions that are present in the \s-1POWER2\s0 architecture but
12029 not the original \s-1POWER\s0 architecture.
12031 The \fB\-mpowerpc\fR option allows \s-1GCC\s0 to generate instructions that
12032 are found only in the 32\-bit subset of the PowerPC architecture.
12033 Specifying \fB\-mpowerpc\-gpopt\fR implies \fB\-mpowerpc\fR and also allows
12034 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
12035 General Purpose group, including floating-point square root.  Specifying
12036 \&\fB\-mpowerpc\-gfxopt\fR implies \fB\-mpowerpc\fR and also allows \s-1GCC\s0 to
12037 use the optional PowerPC architecture instructions in the Graphics
12038 group, including floating-point select.
12040 The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
12041 condition register field instruction implemented on the \s-1POWER4\s0
12042 processor and other processors that support the PowerPC V2.01
12043 architecture.
12044 The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
12045 double precision \s-1FP\s0 reciprocal estimate instruction implemented on the
12046 \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
12047 architecture.
12048 The \fB\-mfprnd\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 round to
12049 integer instructions implemented on the \s-1POWER5+\s0 processor and other
12050 processors that support the PowerPC V2.03 architecture.
12051 The \fB\-mcmpb\fR option allows \s-1GCC\s0 to generate the compare bytes
12052 instruction implemented on the \s-1POWER6\s0 processor and other processors
12053 that support the PowerPC V2.05 architecture.
12054 The \fB\-mmfpgpr\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 move to/from
12055 general purpose register instructions implemented on the \s-1POWER6X\s0
12056 processor and other processors that support the extended PowerPC V2.05
12057 architecture.
12058 The \fB\-mhard\-dfp\fR option allows \s-1GCC\s0 to generate the decimal floating
12059 point instructions implemented on some \s-1POWER\s0 processors.
12061 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
12062 64\-bit instructions that are found in the full PowerPC64 architecture
12063 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
12064 \&\fB\-mno\-powerpc64\fR.
12066 If you specify both \fB\-mno\-power\fR and \fB\-mno\-powerpc\fR, \s-1GCC\s0
12067 will use only the instructions in the common subset of both
12068 architectures plus some special \s-1AIX\s0 common-mode calls, and will not use
12069 the \s-1MQ\s0 register.  Specifying both \fB\-mpower\fR and \fB\-mpowerpc\fR
12070 permits \s-1GCC\s0 to use any instruction from either architecture and to
12071 allow use of the \s-1MQ\s0 register; specify this for the Motorola \s-1MPC601\s0.
12072 .IP "\fB\-mnew\-mnemonics\fR" 4
12073 .IX Item "-mnew-mnemonics"
12074 .PD 0
12075 .IP "\fB\-mold\-mnemonics\fR" 4
12076 .IX Item "-mold-mnemonics"
12078 Select which mnemonics to use in the generated assembler code.  With
12079 \&\fB\-mnew\-mnemonics\fR, \s-1GCC\s0 uses the assembler mnemonics defined for
12080 the PowerPC architecture.  With \fB\-mold\-mnemonics\fR it uses the
12081 assembler mnemonics defined for the \s-1POWER\s0 architecture.  Instructions
12082 defined in only one architecture have only one mnemonic; \s-1GCC\s0 uses that
12083 mnemonic irrespective of which of these options is specified.
12085 \&\s-1GCC\s0 defaults to the mnemonics appropriate for the architecture in
12086 use.  Specifying \fB\-mcpu=\fR\fIcpu_type\fR sometimes overrides the
12087 value of these option.  Unless you are building a cross-compiler, you
12088 should normally not specify either \fB\-mnew\-mnemonics\fR or
12089 \&\fB\-mold\-mnemonics\fR, but should instead accept the default.
12090 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
12091 .IX Item "-mcpu=cpu_type"
12092 Set architecture type, register usage, choice of mnemonics, and
12093 instruction scheduling parameters for machine type \fIcpu_type\fR.
12094 Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
12095 \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB505\fR,
12096 \&\fB601\fR, \fB602\fR, \fB603\fR, \fB603e\fR, \fB604\fR,
12097 \&\fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR, \fB7400\fR,
12098 \&\fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
12099 \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBec603e\fR, \fBG3\fR,
12100 \&\fBG4\fR, \fBG5\fR, \fBpower\fR, \fBpower2\fR, \fBpower3\fR,
12101 \&\fBpower4\fR, \fBpower5\fR, \fBpower5+\fR, \fBpower6\fR,
12102 \&\fBpower6x\fR, \fBcommon\fR, \fBpowerpc\fR, \fBpowerpc64\fR,
12103 \&\fBrios\fR, \fBrios1\fR, \fBrios2\fR, \fBrsc\fR, and \fBrs64\fR.
12105 \&\fB\-mcpu=common\fR selects a completely generic processor.  Code
12106 generated under this option will run on any \s-1POWER\s0 or PowerPC processor.
12107 \&\s-1GCC\s0 will use only the instructions in the common subset of both
12108 architectures, and will not use the \s-1MQ\s0 register.  \s-1GCC\s0 assumes a generic
12109 processor model for scheduling purposes.
12111 \&\fB\-mcpu=power\fR, \fB\-mcpu=power2\fR, \fB\-mcpu=powerpc\fR, and
12112 \&\fB\-mcpu=powerpc64\fR specify generic \s-1POWER\s0, \s-1POWER2\s0, pure 32\-bit
12113 PowerPC (i.e., not \s-1MPC601\s0), and 64\-bit PowerPC architecture machine
12114 types, with an appropriate, generic processor model assumed for
12115 scheduling purposes.
12117 The other options specify a specific processor.  Code generated under
12118 those options will run best on that processor, and may not run at all on
12119 others.
12121 The \fB\-mcpu\fR options automatically enable or disable the
12122 following options:
12124 \&\fB\-maltivec  \-mfprnd  \-mhard\-float  \-mmfcrf  \-mmultiple 
12125 \&\-mnew\-mnemonics  \-mpopcntb  \-mpower  \-mpower2  \-mpowerpc64 
12126 \&\-mpowerpc\-gpopt  \-mpowerpc\-gfxopt  \-mstring  \-mmulhw  \-mdlmzb  \-mmfpgpr\fR
12128 The particular options set for any particular \s-1CPU\s0 will vary between
12129 compiler versions, depending on what setting seems to produce optimal
12130 code for that \s-1CPU\s0; it doesn't necessarily reflect the actual hardware's
12131 capabilities.  If you wish to set an individual option to a particular
12132 value, you may specify it after the \fB\-mcpu\fR option, like
12133 \&\fB\-mcpu=970 \-mno\-altivec\fR.
12135 On \s-1AIX\s0, the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
12136 not enabled or disabled by the \fB\-mcpu\fR option at present because
12137 \&\s-1AIX\s0 does not have full support for these options.  You may still
12138 enable or disable them individually if you're sure it'll work in your
12139 environment.
12140 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
12141 .IX Item "-mtune=cpu_type"
12142 Set the instruction scheduling parameters for machine type
12143 \&\fIcpu_type\fR, but do not set the architecture type, register usage, or
12144 choice of mnemonics, as \fB\-mcpu=\fR\fIcpu_type\fR would.  The same
12145 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
12146 \&\fB\-mcpu\fR.  If both are specified, the code generated will use the
12147 architecture, registers, and mnemonics set by \fB\-mcpu\fR, but the
12148 scheduling parameters set by \fB\-mtune\fR.
12149 .IP "\fB\-mswdiv\fR" 4
12150 .IX Item "-mswdiv"
12151 .PD 0
12152 .IP "\fB\-mno\-swdiv\fR" 4
12153 .IX Item "-mno-swdiv"
12155 Generate code to compute division as reciprocal estimate and iterative
12156 refinement, creating opportunities for increased throughput.  This
12157 feature requires: optional PowerPC Graphics instruction set for single
12158 precision and \s-1FRE\s0 instruction for double precision, assuming divides
12159 cannot generate user-visible traps, and the domain values not include
12160 Infinities, denormals or zero denominator.
12161 .IP "\fB\-maltivec\fR" 4
12162 .IX Item "-maltivec"
12163 .PD 0
12164 .IP "\fB\-mno\-altivec\fR" 4
12165 .IX Item "-mno-altivec"
12167 Generate code that uses (does not use) AltiVec instructions, and also
12168 enable the use of built-in functions that allow more direct access to
12169 the AltiVec instruction set.  You may also need to set
12170 \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
12171 enhancements.
12172 .IP "\fB\-mvrsave\fR" 4
12173 .IX Item "-mvrsave"
12174 .PD 0
12175 .IP "\fB\-mno\-vrsave\fR" 4
12176 .IX Item "-mno-vrsave"
12178 Generate \s-1VRSAVE\s0 instructions when generating AltiVec code.
12179 .IP "\fB\-msecure\-plt\fR" 4
12180 .IX Item "-msecure-plt"
12181 Generate code that allows ld and ld.so to build executables and shared
12182 libraries with non-exec .plt and .got sections.  This is a PowerPC
12183 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
12184 .IP "\fB\-mbss\-plt\fR" 4
12185 .IX Item "-mbss-plt"
12186 Generate code that uses a \s-1BSS\s0 .plt section that ld.so fills in, and
12187 requires .plt and .got sections that are both writable and executable.
12188 This is a PowerPC 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
12189 .IP "\fB\-misel\fR" 4
12190 .IX Item "-misel"
12191 .PD 0
12192 .IP "\fB\-mno\-isel\fR" 4
12193 .IX Item "-mno-isel"
12195 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
12196 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
12197 .IX Item "-misel=yes/no"
12198 This switch has been deprecated.  Use \fB\-misel\fR and
12199 \&\fB\-mno\-isel\fR instead.
12200 .IP "\fB\-mspe\fR" 4
12201 .IX Item "-mspe"
12202 .PD 0
12203 .IP "\fB\-mno\-spe\fR" 4
12204 .IX Item "-mno-spe"
12206 This switch enables or disables the generation of \s-1SPE\s0 simd
12207 instructions.
12208 .IP "\fB\-mpaired\fR" 4
12209 .IX Item "-mpaired"
12210 .PD 0
12211 .IP "\fB\-mno\-paired\fR" 4
12212 .IX Item "-mno-paired"
12214 This switch enables or disables the generation of \s-1PAIRED\s0 simd
12215 instructions.
12216 .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
12217 .IX Item "-mspe=yes/no"
12218 This option has been deprecated.  Use \fB\-mspe\fR and
12219 \&\fB\-mno\-spe\fR instead.
12220 .IP "\fB\-mfloat\-gprs=\fR\fIyes/single/double/no\fR" 4
12221 .IX Item "-mfloat-gprs=yes/single/double/no"
12222 .PD 0
12223 .IP "\fB\-mfloat\-gprs\fR" 4
12224 .IX Item "-mfloat-gprs"
12226 This switch enables or disables the generation of floating point
12227 operations on the general purpose registers for architectures that
12228 support it.
12230 The argument \fIyes\fR or \fIsingle\fR enables the use of
12231 single-precision floating point operations.
12233 The argument \fIdouble\fR enables the use of single and
12234 double-precision floating point operations.
12236 The argument \fIno\fR disables floating point operations on the
12237 general purpose registers.
12239 This option is currently only available on the MPC854x.
12240 .IP "\fB\-m32\fR" 4
12241 .IX Item "-m32"
12242 .PD 0
12243 .IP "\fB\-m64\fR" 4
12244 .IX Item "-m64"
12246 Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
12247 targets (including GNU/Linux).  The 32\-bit environment sets int, long
12248 and pointer to 32 bits and generates code that runs on any PowerPC
12249 variant.  The 64\-bit environment sets int to 32 bits and long and
12250 pointer to 64 bits, and generates code for PowerPC64, as for
12251 \&\fB\-mpowerpc64\fR.
12252 .IP "\fB\-mfull\-toc\fR" 4
12253 .IX Item "-mfull-toc"
12254 .PD 0
12255 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
12256 .IX Item "-mno-fp-in-toc"
12257 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
12258 .IX Item "-mno-sum-in-toc"
12259 .IP "\fB\-mminimal\-toc\fR" 4
12260 .IX Item "-mminimal-toc"
12262 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
12263 every executable file.  The \fB\-mfull\-toc\fR option is selected by
12264 default.  In that case, \s-1GCC\s0 will allocate at least one \s-1TOC\s0 entry for
12265 each unique non-automatic variable reference in your program.  \s-1GCC\s0
12266 will also place floating-point constants in the \s-1TOC\s0.  However, only
12267 16,384 entries are available in the \s-1TOC\s0.
12269 If you receive a linker error message that saying you have overflowed
12270 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
12271 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
12272 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
12273 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
12274 generate code to calculate the sum of an address and a constant at
12275 run-time instead of putting that sum into the \s-1TOC\s0.  You may specify one
12276 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
12277 slower and larger code at the expense of conserving \s-1TOC\s0 space.
12279 If you still run out of space in the \s-1TOC\s0 even when you specify both of
12280 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
12281 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
12282 option, \s-1GCC\s0 will produce code that is slower and larger but which
12283 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
12284 only on files that contain less frequently executed code.
12285 .IP "\fB\-maix64\fR" 4
12286 .IX Item "-maix64"
12287 .PD 0
12288 .IP "\fB\-maix32\fR" 4
12289 .IX Item "-maix32"
12291 Enable 64\-bit \s-1AIX\s0 \s-1ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
12292 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
12293 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR and
12294 \&\fB\-mpowerpc\fR, while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
12295 implies \fB\-mno\-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
12296 .IP "\fB\-mxl\-compat\fR" 4
12297 .IX Item "-mxl-compat"
12298 .PD 0
12299 .IP "\fB\-mno\-xl\-compat\fR" 4
12300 .IX Item "-mno-xl-compat"
12302 Produce code that conforms more closely to \s-1IBM\s0 \s-1XL\s0 compiler semantics
12303 when using AIX-compatible \s-1ABI\s0.  Pass floating-point arguments to
12304 prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
12305 in addition to argument FPRs.  Do not assume that most significant
12306 double in 128\-bit long double value is properly rounded when comparing
12307 values and converting to double.  Use \s-1XL\s0 symbol names for long double
12308 support routines.
12310 The \s-1AIX\s0 calling convention was extended but not initially documented to
12311 handle an obscure K&R C case of calling a function that takes the
12312 address of its arguments with fewer arguments than declared.  \s-1IBM\s0 \s-1XL\s0
12313 compilers access floating point arguments which do not fit in the
12314 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
12315 optimization.  Because always storing floating-point arguments on the
12316 stack is inefficient and rarely needed, this option is not enabled by
12317 default and only is necessary when calling subroutines compiled by \s-1IBM\s0
12318 \&\s-1XL\s0 compilers without optimization.
12319 .IP "\fB\-mpe\fR" 4
12320 .IX Item "-mpe"
12321 Support \fI\s-1IBM\s0 \s-1RS/6000\s0 \s-1SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
12322 application written to use message passing with special startup code to
12323 enable the application to run.  The system must have \s-1PE\s0 installed in the
12324 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
12325 must be overridden with the \fB\-specs=\fR option to specify the
12326 appropriate directory location.  The Parallel Environment does not
12327 support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
12328 option are incompatible.
12329 .IP "\fB\-malign\-natural\fR" 4
12330 .IX Item "-malign-natural"
12331 .PD 0
12332 .IP "\fB\-malign\-power\fR" 4
12333 .IX Item "-malign-power"
12335 On \s-1AIX\s0, 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
12336 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
12337 types, such as floating-point doubles, on their natural size-based boundary.
12338 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
12339 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI\s0.
12341 On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
12342 is not supported.
12343 .IP "\fB\-msoft\-float\fR" 4
12344 .IX Item "-msoft-float"
12345 .PD 0
12346 .IP "\fB\-mhard\-float\fR" 4
12347 .IX Item "-mhard-float"
12349 Generate code that does not use (uses) the floating-point register set.
12350 Software floating point emulation is provided if you use the
12351 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
12352 .IP "\fB\-mmultiple\fR" 4
12353 .IX Item "-mmultiple"
12354 .PD 0
12355 .IP "\fB\-mno\-multiple\fR" 4
12356 .IX Item "-mno-multiple"
12358 Generate code that uses (does not use) the load multiple word
12359 instructions and the store multiple word instructions.  These
12360 instructions are generated by default on \s-1POWER\s0 systems, and not
12361 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little
12362 endian PowerPC systems, since those instructions do not work when the
12363 processor is in little endian mode.  The exceptions are \s-1PPC740\s0 and
12364 \&\s-1PPC750\s0 which permit the instructions usage in little endian mode.
12365 .IP "\fB\-mstring\fR" 4
12366 .IX Item "-mstring"
12367 .PD 0
12368 .IP "\fB\-mno\-string\fR" 4
12369 .IX Item "-mno-string"
12371 Generate code that uses (does not use) the load string instructions
12372 and the store string word instructions to save multiple registers and
12373 do small block moves.  These instructions are generated by default on
12374 \&\s-1POWER\s0 systems, and not generated on PowerPC systems.  Do not use
12375 \&\fB\-mstring\fR on little endian PowerPC systems, since those
12376 instructions do not work when the processor is in little endian mode.
12377 The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit the instructions
12378 usage in little endian mode.
12379 .IP "\fB\-mupdate\fR" 4
12380 .IX Item "-mupdate"
12381 .PD 0
12382 .IP "\fB\-mno\-update\fR" 4
12383 .IX Item "-mno-update"
12385 Generate code that uses (does not use) the load or store instructions
12386 that update the base register to the address of the calculated memory
12387 location.  These instructions are generated by default.  If you use
12388 \&\fB\-mno\-update\fR, there is a small window between the time that the
12389 stack pointer is updated and the address of the previous frame is
12390 stored, which means code that walks the stack frame across interrupts or
12391 signals may get corrupted data.
12392 .IP "\fB\-mfused\-madd\fR" 4
12393 .IX Item "-mfused-madd"
12394 .PD 0
12395 .IP "\fB\-mno\-fused\-madd\fR" 4
12396 .IX Item "-mno-fused-madd"
12398 Generate code that uses (does not use) the floating point multiply and
12399 accumulate instructions.  These instructions are generated by default if
12400 hardware floating is used.
12401 .IP "\fB\-mmulhw\fR" 4
12402 .IX Item "-mmulhw"
12403 .PD 0
12404 .IP "\fB\-mno\-mulhw\fR" 4
12405 .IX Item "-mno-mulhw"
12407 Generate code that uses (does not use) the half-word multiply and
12408 multiply-accumulate instructions on the \s-1IBM\s0 405 and 440 processors.
12409 These instructions are generated by default when targetting those
12410 processors.
12411 .IP "\fB\-mdlmzb\fR" 4
12412 .IX Item "-mdlmzb"
12413 .PD 0
12414 .IP "\fB\-mno\-dlmzb\fR" 4
12415 .IX Item "-mno-dlmzb"
12417 Generate code that uses (does not use) the string-search \fBdlmzb\fR
12418 instruction on the \s-1IBM\s0 405 and 440 processors.  This instruction is
12419 generated by default when targetting those processors.
12420 .IP "\fB\-mno\-bit\-align\fR" 4
12421 .IX Item "-mno-bit-align"
12422 .PD 0
12423 .IP "\fB\-mbit\-align\fR" 4
12424 .IX Item "-mbit-align"
12426 On System V.4 and embedded PowerPC systems do not (do) force structures
12427 and unions that contain bit-fields to be aligned to the base type of the
12428 bit-field.
12430 For example, by default a structure containing nothing but 8
12431 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 would be aligned to a 4 byte
12432 boundary and have a size of 4 bytes.  By using \fB\-mno\-bit\-align\fR,
12433 the structure would be aligned to a 1 byte boundary and be one byte in
12434 size.
12435 .IP "\fB\-mno\-strict\-align\fR" 4
12436 .IX Item "-mno-strict-align"
12437 .PD 0
12438 .IP "\fB\-mstrict\-align\fR" 4
12439 .IX Item "-mstrict-align"
12441 On System V.4 and embedded PowerPC systems do not (do) assume that
12442 unaligned memory references will be handled by the system.
12443 .IP "\fB\-mrelocatable\fR" 4
12444 .IX Item "-mrelocatable"
12445 .PD 0
12446 .IP "\fB\-mno\-relocatable\fR" 4
12447 .IX Item "-mno-relocatable"
12449 On embedded PowerPC systems generate code that allows (does not allow)
12450 the program to be relocated to a different address at runtime.  If you
12451 use \fB\-mrelocatable\fR on any module, all objects linked together must
12452 be compiled with \fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
12453 .IP "\fB\-mrelocatable\-lib\fR" 4
12454 .IX Item "-mrelocatable-lib"
12455 .PD 0
12456 .IP "\fB\-mno\-relocatable\-lib\fR" 4
12457 .IX Item "-mno-relocatable-lib"
12459 On embedded PowerPC systems generate code that allows (does not allow)
12460 the program to be relocated to a different address at runtime.  Modules
12461 compiled with \fB\-mrelocatable\-lib\fR can be linked with either modules
12462 compiled without \fB\-mrelocatable\fR and \fB\-mrelocatable\-lib\fR or
12463 with modules compiled with the \fB\-mrelocatable\fR options.
12464 .IP "\fB\-mno\-toc\fR" 4
12465 .IX Item "-mno-toc"
12466 .PD 0
12467 .IP "\fB\-mtoc\fR" 4
12468 .IX Item "-mtoc"
12470 On System V.4 and embedded PowerPC systems do not (do) assume that
12471 register 2 contains a pointer to a global area pointing to the addresses
12472 used in the program.
12473 .IP "\fB\-mlittle\fR" 4
12474 .IX Item "-mlittle"
12475 .PD 0
12476 .IP "\fB\-mlittle\-endian\fR" 4
12477 .IX Item "-mlittle-endian"
12479 On System V.4 and embedded PowerPC systems compile code for the
12480 processor in little endian mode.  The \fB\-mlittle\-endian\fR option is
12481 the same as \fB\-mlittle\fR.
12482 .IP "\fB\-mbig\fR" 4
12483 .IX Item "-mbig"
12484 .PD 0
12485 .IP "\fB\-mbig\-endian\fR" 4
12486 .IX Item "-mbig-endian"
12488 On System V.4 and embedded PowerPC systems compile code for the
12489 processor in big endian mode.  The \fB\-mbig\-endian\fR option is
12490 the same as \fB\-mbig\fR.
12491 .IP "\fB\-mdynamic\-no\-pic\fR" 4
12492 .IX Item "-mdynamic-no-pic"
12493 On Darwin and Mac \s-1OS\s0 X systems, compile code so that it is not
12494 relocatable, but that its external references are relocatable.  The
12495 resulting code is suitable for applications, but not shared
12496 libraries.
12497 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
12498 .IX Item "-mprioritize-restricted-insns=priority"
12499 This option controls the priority that is assigned to
12500 dispatch-slot restricted instructions during the second scheduling
12501 pass.  The argument \fIpriority\fR takes the value \fI0/1/2\fR to assign
12502 \&\fIno/highest/second\-highest\fR priority to dispatch slot restricted
12503 instructions.
12504 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
12505 .IX Item "-msched-costly-dep=dependence_type"
12506 This option controls which dependences are considered costly
12507 by the target during instruction scheduling.  The argument
12508 \&\fIdependence_type\fR takes one of the following values:
12509 \&\fIno\fR: no dependence is costly,
12510 \&\fIall\fR: all dependences are costly,
12511 \&\fItrue_store_to_load\fR: a true dependence from store to load is costly,
12512 \&\fIstore_to_load\fR: any dependence from store to load is costly,
12513 \&\fInumber\fR: any dependence which latency >= \fInumber\fR is costly.
12514 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
12515 .IX Item "-minsert-sched-nops=scheme"
12516 This option controls which nop insertion scheme will be used during
12517 the second scheduling pass.  The argument \fIscheme\fR takes one of the
12518 following values:
12519 \&\fIno\fR: Don't insert nops.
12520 \&\fIpad\fR: Pad with nops any dispatch group which has vacant issue slots,
12521 according to the scheduler's grouping.
12522 \&\fIregroup_exact\fR: Insert nops to force costly dependent insns into
12523 separate groups.  Insert exactly as many nops as needed to force an insn
12524 to a new group, according to the estimated processor grouping.
12525 \&\fInumber\fR: Insert nops to force costly dependent insns into
12526 separate groups.  Insert \fInumber\fR nops to force an insn to a new group.
12527 .IP "\fB\-mcall\-sysv\fR" 4
12528 .IX Item "-mcall-sysv"
12529 On System V.4 and embedded PowerPC systems compile code using calling
12530 conventions that adheres to the March 1995 draft of the System V
12531 Application Binary Interface, PowerPC processor supplement.  This is the
12532 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
12533 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
12534 .IX Item "-mcall-sysv-eabi"
12535 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
12536 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
12537 .IX Item "-mcall-sysv-noeabi"
12538 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
12539 .IP "\fB\-mcall\-solaris\fR" 4
12540 .IX Item "-mcall-solaris"
12541 On System V.4 and embedded PowerPC systems compile code for the Solaris
12542 operating system.
12543 .IP "\fB\-mcall\-linux\fR" 4
12544 .IX Item "-mcall-linux"
12545 On System V.4 and embedded PowerPC systems compile code for the
12546 Linux-based \s-1GNU\s0 system.
12547 .IP "\fB\-mcall\-gnu\fR" 4
12548 .IX Item "-mcall-gnu"
12549 On System V.4 and embedded PowerPC systems compile code for the
12550 Hurd-based \s-1GNU\s0 system.
12551 .IP "\fB\-mcall\-netbsd\fR" 4
12552 .IX Item "-mcall-netbsd"
12553 On System V.4 and embedded PowerPC systems compile code for the
12554 NetBSD operating system.
12555 .IP "\fB\-maix\-struct\-return\fR" 4
12556 .IX Item "-maix-struct-return"
12557 Return all structures in memory (as specified by the \s-1AIX\s0 \s-1ABI\s0).
12558 .IP "\fB\-msvr4\-struct\-return\fR" 4
12559 .IX Item "-msvr4-struct-return"
12560 Return structures smaller than 8 bytes in registers (as specified by the
12561 \&\s-1SVR4\s0 \s-1ABI\s0).
12562 .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
12563 .IX Item "-mabi=abi-type"
12564 Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
12565 Valid values are \fIaltivec\fR, \fIno-altivec\fR, \fIspe\fR,
12566 \&\fIno-spe\fR, \fIibmlongdouble\fR, \fIieeelongdouble\fR.
12567 .IP "\fB\-mabi=spe\fR" 4
12568 .IX Item "-mabi=spe"
12569 Extend the current \s-1ABI\s0 with \s-1SPE\s0 \s-1ABI\s0 extensions.  This does not change
12570 the default \s-1ABI\s0, instead it adds the \s-1SPE\s0 \s-1ABI\s0 extensions to the current
12571 \&\s-1ABI\s0.
12572 .IP "\fB\-mabi=no\-spe\fR" 4
12573 .IX Item "-mabi=no-spe"
12574 Disable Booke \s-1SPE\s0 \s-1ABI\s0 extensions for the current \s-1ABI\s0.
12575 .IP "\fB\-mabi=ibmlongdouble\fR" 4
12576 .IX Item "-mabi=ibmlongdouble"
12577 Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended precision long double.
12578 This is a PowerPC 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
12579 .IP "\fB\-mabi=ieeelongdouble\fR" 4
12580 .IX Item "-mabi=ieeelongdouble"
12581 Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended precision long double.
12582 This is a PowerPC 32\-bit Linux \s-1ABI\s0 option.
12583 .IP "\fB\-mprototype\fR" 4
12584 .IX Item "-mprototype"
12585 .PD 0
12586 .IP "\fB\-mno\-prototype\fR" 4
12587 .IX Item "-mno-prototype"
12589 On System V.4 and embedded PowerPC systems assume that all calls to
12590 variable argument functions are properly prototyped.  Otherwise, the
12591 compiler must insert an instruction before every non prototyped call to
12592 set or clear bit 6 of the condition code register (\fI\s-1CR\s0\fR) to
12593 indicate whether floating point values were passed in the floating point
12594 registers in case the function takes a variable arguments.  With
12595 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
12596 will set or clear the bit.
12597 .IP "\fB\-msim\fR" 4
12598 .IX Item "-msim"
12599 On embedded PowerPC systems, assume that the startup module is called
12600 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
12601 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR
12602 configurations.
12603 .IP "\fB\-mmvme\fR" 4
12604 .IX Item "-mmvme"
12605 On embedded PowerPC systems, assume that the startup module is called
12606 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
12607 \&\fIlibc.a\fR.
12608 .IP "\fB\-mads\fR" 4
12609 .IX Item "-mads"
12610 On embedded PowerPC systems, assume that the startup module is called
12611 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
12612 \&\fIlibc.a\fR.
12613 .IP "\fB\-myellowknife\fR" 4
12614 .IX Item "-myellowknife"
12615 On embedded PowerPC systems, assume that the startup module is called
12616 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
12617 \&\fIlibc.a\fR.
12618 .IP "\fB\-mvxworks\fR" 4
12619 .IX Item "-mvxworks"
12620 On System V.4 and embedded PowerPC systems, specify that you are
12621 compiling for a VxWorks system.
12622 .IP "\fB\-mwindiss\fR" 4
12623 .IX Item "-mwindiss"
12624 Specify that you are compiling for the WindISS simulation environment.
12625 .IP "\fB\-memb\fR" 4
12626 .IX Item "-memb"
12627 On embedded PowerPC systems, set the \fI\s-1PPC_EMB\s0\fR bit in the \s-1ELF\s0 flags
12628 header to indicate that \fBeabi\fR extended relocations are used.
12629 .IP "\fB\-meabi\fR" 4
12630 .IX Item "-meabi"
12631 .PD 0
12632 .IP "\fB\-mno\-eabi\fR" 4
12633 .IX Item "-mno-eabi"
12635 On System V.4 and embedded PowerPC systems do (do not) adhere to the
12636 Embedded Applications Binary Interface (eabi) which is a set of
12637 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
12638 means that the stack is aligned to an 8 byte boundary, a function
12639 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called to from \f(CW\*(C`main\*(C'\fR to set up the eabi
12640 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
12641 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
12642 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16 byte boundary,
12643 do not call an initialization function from \f(CW\*(C`main\*(C'\fR, and the
12644 \&\fB\-msdata\fR option will only use \f(CW\*(C`r13\*(C'\fR to point to a single
12645 small data area.  The \fB\-meabi\fR option is on by default if you
12646 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
12647 .IP "\fB\-msdata=eabi\fR" 4
12648 .IX Item "-msdata=eabi"
12649 On System V.4 and embedded PowerPC systems, put small initialized
12650 \&\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata2\fR section, which
12651 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
12652 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata\fR section,
12653 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
12654 global and static data in the \fB.sbss\fR section, which is adjacent to
12655 the \fB.sdata\fR section.  The \fB\-msdata=eabi\fR option is
12656 incompatible with the \fB\-mrelocatable\fR option.  The
12657 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
12658 .IP "\fB\-msdata=sysv\fR" 4
12659 .IX Item "-msdata=sysv"
12660 On System V.4 and embedded PowerPC systems, put small global and static
12661 data in the \fB.sdata\fR section, which is pointed to by register
12662 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
12663 \&\fB.sbss\fR section, which is adjacent to the \fB.sdata\fR section.
12664 The \fB\-msdata=sysv\fR option is incompatible with the
12665 \&\fB\-mrelocatable\fR option.
12666 .IP "\fB\-msdata=default\fR" 4
12667 .IX Item "-msdata=default"
12668 .PD 0
12669 .IP "\fB\-msdata\fR" 4
12670 .IX Item "-msdata"
12672 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
12673 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
12674 same as \fB\-msdata=sysv\fR.
12675 .IP "\fB\-msdata\-data\fR" 4
12676 .IX Item "-msdata-data"
12677 On System V.4 and embedded PowerPC systems, put small global
12678 data in the \fB.sdata\fR section.  Put small uninitialized global
12679 data in the \fB.sbss\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
12680 to address small data however.  This is the default behavior unless
12681 other \fB\-msdata\fR options are used.
12682 .IP "\fB\-msdata=none\fR" 4
12683 .IX Item "-msdata=none"
12684 .PD 0
12685 .IP "\fB\-mno\-sdata\fR" 4
12686 .IX Item "-mno-sdata"
12688 On embedded PowerPC systems, put all initialized global and static data
12689 in the \fB.data\fR section, and all uninitialized data in the
12690 \&\fB.bss\fR section.
12691 .IP "\fB\-G\fR \fInum\fR" 4
12692 .IX Item "-G num"
12693 On embedded PowerPC systems, put global and static items less than or
12694 equal to \fInum\fR bytes into the small data or bss sections instead of
12695 the normal data or bss section.  By default, \fInum\fR is 8.  The
12696 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
12697 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
12698 .IP "\fB\-mregnames\fR" 4
12699 .IX Item "-mregnames"
12700 .PD 0
12701 .IP "\fB\-mno\-regnames\fR" 4
12702 .IX Item "-mno-regnames"
12704 On System V.4 and embedded PowerPC systems do (do not) emit register
12705 names in the assembly language output using symbolic forms.
12706 .IP "\fB\-mlongcall\fR" 4
12707 .IX Item "-mlongcall"
12708 .PD 0
12709 .IP "\fB\-mno\-longcall\fR" 4
12710 .IX Item "-mno-longcall"
12712 By default assume that all calls are far away so that a longer more
12713 expensive calling sequence is required.  This is required for calls
12714 further than 32 megabytes (33,554,432 bytes) from the current location.
12715 A short call will be generated if the compiler knows
12716 the call cannot be that far away.  This setting can be overridden by
12717 the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
12718 longcall(0)\*(C'\fR.
12720 Some linkers are capable of detecting out-of-range calls and generating
12721 glue code on the fly.  On these systems, long calls are unnecessary and
12722 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
12723 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
12724 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
12726 On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR will generate \*(L"jbsr
12727 callee, L42\*(R", plus a \*(L"branch island\*(R" (glue code).  The two target
12728 addresses represent the callee and the \*(L"branch island\*(R".  The
12729 Darwin/PPC linker will prefer the first address and generate a \*(L"bl
12730 callee\*(R" if the \s-1PPC\s0 \*(L"bl\*(R" instruction will reach the callee directly;
12731 otherwise, the linker will generate \*(L"bl L42\*(R" to call the \*(L"branch
12732 island\*(R".  The \*(L"branch island\*(R" is appended to the body of the
12733 calling function; it computes the full 32\-bit address of the callee
12734 and jumps to it.
12736 On Mach-O (Darwin) systems, this option directs the compiler emit to
12737 the glue for every direct call, and the Darwin linker decides whether
12738 to use or discard it.
12740 In the future, we may cause \s-1GCC\s0 to ignore all longcall specifications
12741 when the linker is known to generate glue.
12742 .IP "\fB\-pthread\fR" 4
12743 .IX Item "-pthread"
12744 Adds support for multithreading with the \fIpthreads\fR library.
12745 This option sets flags for both the preprocessor and linker.
12747 \fIS/390 and zSeries Options\fR
12748 .IX Subsection "S/390 and zSeries Options"
12750 These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
12751 .IP "\fB\-mhard\-float\fR" 4
12752 .IX Item "-mhard-float"
12753 .PD 0
12754 .IP "\fB\-msoft\-float\fR" 4
12755 .IX Item "-msoft-float"
12757 Use (do not use) the hardware floating-point instructions and registers
12758 for floating-point operations.  When \fB\-msoft\-float\fR is specified,
12759 functions in \fIlibgcc.a\fR will be used to perform floating-point
12760 operations.  When \fB\-mhard\-float\fR is specified, the compiler
12761 generates \s-1IEEE\s0 floating-point instructions.  This is the default.
12762 .IP "\fB\-mhard\-dfp\fR" 4
12763 .IX Item "-mhard-dfp"
12764 .PD 0
12765 .IP "\fB\-mno\-hard\-dfp\fR" 4
12766 .IX Item "-mno-hard-dfp"
12768 Use (do not use) the hardware decimal-floating-point instructions for
12769 decimal-floating-point operations.  When \fB\-mno\-hard\-dfp\fR is
12770 specified, functions in \fIlibgcc.a\fR will be used to perform
12771 decimal-floating-point operations.  When \fB\-mhard\-dfp\fR is
12772 specified, the compiler generates decimal-floating-point hardware
12773 instructions.  This is the default for \fB\-march=z9\-ec\fR or higher.
12774 .IP "\fB\-mlong\-double\-64\fR" 4
12775 .IX Item "-mlong-double-64"
12776 .PD 0
12777 .IP "\fB\-mlong\-double\-128\fR" 4
12778 .IX Item "-mlong-double-128"
12780 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
12781 of 64bit makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
12782 type. This is the default.
12783 .IP "\fB\-mbackchain\fR" 4
12784 .IX Item "-mbackchain"
12785 .PD 0
12786 .IP "\fB\-mno\-backchain\fR" 4
12787 .IX Item "-mno-backchain"
12789 Store (do not store) the address of the caller's frame as backchain pointer
12790 into the callee's stack frame.
12791 A backchain may be needed to allow debugging using tools that do not understand
12792 \&\s-1DWARF\-2\s0 call frame information.
12793 When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
12794 at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
12795 the backchain is placed into the topmost word of the 96/160 byte register
12796 save area.
12798 In general, code compiled with \fB\-mbackchain\fR is call-compatible with
12799 code compiled with \fB\-mmo\-backchain\fR; however, use of the backchain
12800 for debugging purposes usually requires that the whole binary is built with
12801 \&\fB\-mbackchain\fR.  Note that the combination of \fB\-mbackchain\fR,
12802 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
12803 to build a linux kernel use \fB\-msoft\-float\fR.
12805 The default is to not maintain the backchain.
12806 .IP "\fB\-mpacked\-stack\fR" 4
12807 .IX Item "-mpacked-stack"
12808 .PD 0
12809 .IP "\fB\-mno\-packed\-stack\fR" 4
12810 .IX Item "-mno-packed-stack"
12812 Use (do not use) the packed stack layout.  When \fB\-mno\-packed\-stack\fR is
12813 specified, the compiler uses the all fields of the 96/160 byte register save
12814 area only for their default purpose; unused fields still take up stack space.
12815 When \fB\-mpacked\-stack\fR is specified, register save slots are densely
12816 packed at the top of the register save area; unused space is reused for other
12817 purposes, allowing for more efficient use of the available stack space.
12818 However, when \fB\-mbackchain\fR is also in effect, the topmost word of
12819 the save area is always used to store the backchain, and the return address
12820 register is always saved two words below the backchain.
12822 As long as the stack frame backchain is not used, code generated with
12823 \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
12824 \&\fB\-mno\-packed\-stack\fR.  Note that some non-FSF releases of \s-1GCC\s0 2.95 for
12825 S/390 or zSeries generated code that uses the stack frame backchain at run
12826 time, not just for debugging purposes.  Such code is not call-compatible
12827 with code compiled with \fB\-mpacked\-stack\fR.  Also, note that the
12828 combination of \fB\-mbackchain\fR,
12829 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
12830 to build a linux kernel use \fB\-msoft\-float\fR.
12832 The default is to not use the packed stack layout.
12833 .IP "\fB\-msmall\-exec\fR" 4
12834 .IX Item "-msmall-exec"
12835 .PD 0
12836 .IP "\fB\-mno\-small\-exec\fR" 4
12837 .IX Item "-mno-small-exec"
12839 Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
12840 to do subroutine calls.
12841 This only works reliably if the total executable size does not
12842 exceed 64k.  The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
12843 which does not have this limitation.
12844 .IP "\fB\-m64\fR" 4
12845 .IX Item "-m64"
12846 .PD 0
12847 .IP "\fB\-m31\fR" 4
12848 .IX Item "-m31"
12850 When \fB\-m31\fR is specified, generate code compliant to the
12851 GNU/Linux for S/390 \s-1ABI\s0.  When \fB\-m64\fR is specified, generate
12852 code compliant to the GNU/Linux for zSeries \s-1ABI\s0.  This allows \s-1GCC\s0 in
12853 particular to generate 64\-bit instructions.  For the \fBs390\fR
12854 targets, the default is \fB\-m31\fR, while the \fBs390x\fR
12855 targets default to \fB\-m64\fR.
12856 .IP "\fB\-mzarch\fR" 4
12857 .IX Item "-mzarch"
12858 .PD 0
12859 .IP "\fB\-mesa\fR" 4
12860 .IX Item "-mesa"
12862 When \fB\-mzarch\fR is specified, generate code using the
12863 instructions available on z/Architecture.
12864 When \fB\-mesa\fR is specified, generate code using the
12865 instructions available on \s-1ESA/390\s0.  Note that \fB\-mesa\fR is
12866 not possible with \fB\-m64\fR.
12867 When generating code compliant to the GNU/Linux for S/390 \s-1ABI\s0,
12868 the default is \fB\-mesa\fR.  When generating code compliant
12869 to the GNU/Linux for zSeries \s-1ABI\s0, the default is \fB\-mzarch\fR.
12870 .IP "\fB\-mmvcle\fR" 4
12871 .IX Item "-mmvcle"
12872 .PD 0
12873 .IP "\fB\-mno\-mvcle\fR" 4
12874 .IX Item "-mno-mvcle"
12876 Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
12877 to perform block moves.  When \fB\-mno\-mvcle\fR is specified,
12878 use a \f(CW\*(C`mvc\*(C'\fR loop instead.  This is the default unless optimizing for
12879 size.
12880 .IP "\fB\-mdebug\fR" 4
12881 .IX Item "-mdebug"
12882 .PD 0
12883 .IP "\fB\-mno\-debug\fR" 4
12884 .IX Item "-mno-debug"
12886 Print (or do not print) additional debug information when compiling.
12887 The default is to not print debug information.
12888 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
12889 .IX Item "-march=cpu-type"
12890 Generate code that will run on \fIcpu-type\fR, which is the name of a system
12891 representing a certain processor type.  Possible values for
12892 \&\fIcpu-type\fR are \fBg5\fR, \fBg6\fR, \fBz900\fR, \fBz990\fR,
12893 \&\fBz9\-109\fR and \fBz9\-ec\fR.
12894 When generating code using the instructions available on z/Architecture,
12895 the default is \fB\-march=z900\fR.  Otherwise, the default is
12896 \&\fB\-march=g5\fR.
12897 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
12898 .IX Item "-mtune=cpu-type"
12899 Tune to \fIcpu-type\fR everything applicable about the generated code,
12900 except for the \s-1ABI\s0 and the set of available instructions.
12901 The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
12902 The default is the value used for \fB\-march\fR.
12903 .IP "\fB\-mtpf\-trace\fR" 4
12904 .IX Item "-mtpf-trace"
12905 .PD 0
12906 .IP "\fB\-mno\-tpf\-trace\fR" 4
12907 .IX Item "-mno-tpf-trace"
12909 Generate code that adds (does not add) in \s-1TPF\s0 \s-1OS\s0 specific branches to trace
12910 routines in the operating system.  This option is off by default, even
12911 when compiling for the \s-1TPF\s0 \s-1OS\s0.
12912 .IP "\fB\-mfused\-madd\fR" 4
12913 .IX Item "-mfused-madd"
12914 .PD 0
12915 .IP "\fB\-mno\-fused\-madd\fR" 4
12916 .IX Item "-mno-fused-madd"
12918 Generate code that uses (does not use) the floating point multiply and
12919 accumulate instructions.  These instructions are generated by default if
12920 hardware floating point is used.
12921 .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
12922 .IX Item "-mwarn-framesize=framesize"
12923 Emit a warning if the current function exceeds the given frame size.  Because
12924 this is a compile time check it doesn't need to be a real problem when the program
12925 runs.  It is intended to identify functions which most probably cause
12926 a stack overflow.  It is useful to be used in an environment with limited stack
12927 size e.g. the linux kernel.
12928 .IP "\fB\-mwarn\-dynamicstack\fR" 4
12929 .IX Item "-mwarn-dynamicstack"
12930 Emit a warning if the function calls alloca or uses dynamically
12931 sized arrays.  This is generally a bad idea with a limited stack size.
12932 .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
12933 .IX Item "-mstack-guard=stack-guard"
12934 .PD 0
12935 .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
12936 .IX Item "-mstack-size=stack-size"
12938 If these options are provided the s390 back end emits additional instructions in
12939 the function prologue which trigger a trap if the stack size is \fIstack-guard\fR
12940 bytes above the \fIstack-size\fR (remember that the stack on s390 grows downward).
12941 If the \fIstack-guard\fR option is omitted the smallest power of 2 larger than
12942 the frame size of the compiled function is chosen.
12943 These options are intended to be used to help debugging stack overflow problems.
12944 The additionally emitted code causes only little overhead and hence can also be
12945 used in production like systems without greater performance degradation.  The given
12946 values have to be exact powers of 2 and \fIstack-size\fR has to be greater than
12947 \&\fIstack-guard\fR without exceeding 64k.
12948 In order to be efficient the extra code makes the assumption that the stack starts
12949 at an address aligned to the value given by \fIstack-size\fR.
12950 The \fIstack-guard\fR option can only be used in conjunction with \fIstack-size\fR.
12952 \fIScore Options\fR
12953 .IX Subsection "Score Options"
12955 These options are defined for Score implementations:
12956 .IP "\fB\-meb\fR" 4
12957 .IX Item "-meb"
12958 Compile code for big endian mode.  This is the default.
12959 .IP "\fB\-mel\fR" 4
12960 .IX Item "-mel"
12961 Compile code for little endian mode.
12962 .IP "\fB\-mnhwloop\fR" 4
12963 .IX Item "-mnhwloop"
12964 Disable generate bcnz instruction.
12965 .IP "\fB\-muls\fR" 4
12966 .IX Item "-muls"
12967 Enable generate unaligned load and store instruction.
12968 .IP "\fB\-mmac\fR" 4
12969 .IX Item "-mmac"
12970 Enable the use of multiply-accumulate instructions. Disabled by default.
12971 .IP "\fB\-mscore5\fR" 4
12972 .IX Item "-mscore5"
12973 Specify the \s-1SCORE5\s0 as the target architecture.
12974 .IP "\fB\-mscore5u\fR" 4
12975 .IX Item "-mscore5u"
12976 Specify the \s-1SCORE5U\s0 of the target architecture.
12977 .IP "\fB\-mscore7\fR" 4
12978 .IX Item "-mscore7"
12979 Specify the \s-1SCORE7\s0 as the target architecture. This is the default.
12980 .IP "\fB\-mscore7d\fR" 4
12981 .IX Item "-mscore7d"
12982 Specify the \s-1SCORE7D\s0 as the target architecture.
12984 \fI\s-1SH\s0 Options\fR
12985 .IX Subsection "SH Options"
12987 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
12988 .IP "\fB\-m1\fR" 4
12989 .IX Item "-m1"
12990 Generate code for the \s-1SH1\s0.
12991 .IP "\fB\-m2\fR" 4
12992 .IX Item "-m2"
12993 Generate code for the \s-1SH2\s0.
12994 .IP "\fB\-m2e\fR" 4
12995 .IX Item "-m2e"
12996 Generate code for the SH2e.
12997 .IP "\fB\-m3\fR" 4
12998 .IX Item "-m3"
12999 Generate code for the \s-1SH3\s0.
13000 .IP "\fB\-m3e\fR" 4
13001 .IX Item "-m3e"
13002 Generate code for the SH3e.
13003 .IP "\fB\-m4\-nofpu\fR" 4
13004 .IX Item "-m4-nofpu"
13005 Generate code for the \s-1SH4\s0 without a floating-point unit.
13006 .IP "\fB\-m4\-single\-only\fR" 4
13007 .IX Item "-m4-single-only"
13008 Generate code for the \s-1SH4\s0 with a floating-point unit that only
13009 supports single-precision arithmetic.
13010 .IP "\fB\-m4\-single\fR" 4
13011 .IX Item "-m4-single"
13012 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
13013 single-precision mode by default.
13014 .IP "\fB\-m4\fR" 4
13015 .IX Item "-m4"
13016 Generate code for the \s-1SH4\s0.
13017 .IP "\fB\-m4a\-nofpu\fR" 4
13018 .IX Item "-m4a-nofpu"
13019 Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
13020 floating-point unit is not used.
13021 .IP "\fB\-m4a\-single\-only\fR" 4
13022 .IX Item "-m4a-single-only"
13023 Generate code for the SH4a, in such a way that no double-precision
13024 floating point operations are used.
13025 .IP "\fB\-m4a\-single\fR" 4
13026 .IX Item "-m4a-single"
13027 Generate code for the SH4a assuming the floating-point unit is in
13028 single-precision mode by default.
13029 .IP "\fB\-m4a\fR" 4
13030 .IX Item "-m4a"
13031 Generate code for the SH4a.
13032 .IP "\fB\-m4al\fR" 4
13033 .IX Item "-m4al"
13034 Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
13035 \&\fB\-dsp\fR to the assembler.  \s-1GCC\s0 doesn't generate any \s-1DSP\s0
13036 instructions at the moment.
13037 .IP "\fB\-mb\fR" 4
13038 .IX Item "-mb"
13039 Compile code for the processor in big endian mode.
13040 .IP "\fB\-ml\fR" 4
13041 .IX Item "-ml"
13042 Compile code for the processor in little endian mode.
13043 .IP "\fB\-mdalign\fR" 4
13044 .IX Item "-mdalign"
13045 Align doubles at 64\-bit boundaries.  Note that this changes the calling
13046 conventions, and thus some functions from the standard C library will
13047 not work unless you recompile it first with \fB\-mdalign\fR.
13048 .IP "\fB\-mrelax\fR" 4
13049 .IX Item "-mrelax"
13050 Shorten some address references at link time, when possible; uses the
13051 linker option \fB\-relax\fR.
13052 .IP "\fB\-mbigtable\fR" 4
13053 .IX Item "-mbigtable"
13054 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
13055 16\-bit offsets.
13056 .IP "\fB\-mfmovd\fR" 4
13057 .IX Item "-mfmovd"
13058 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.
13059 .IP "\fB\-mhitachi\fR" 4
13060 .IX Item "-mhitachi"
13061 Comply with the calling conventions defined by Renesas.
13062 .IP "\fB\-mrenesas\fR" 4
13063 .IX Item "-mrenesas"
13064 Comply with the calling conventions defined by Renesas.
13065 .IP "\fB\-mno\-renesas\fR" 4
13066 .IX Item "-mno-renesas"
13067 Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
13068 conventions were available.  This option is the default for all
13069 targets of the \s-1SH\s0 toolchain except for \fBsh-symbianelf\fR.
13070 .IP "\fB\-mnomacsave\fR" 4
13071 .IX Item "-mnomacsave"
13072 Mark the \f(CW\*(C`MAC\*(C'\fR register as call-clobbered, even if
13073 \&\fB\-mhitachi\fR is given.
13074 .IP "\fB\-mieee\fR" 4
13075 .IX Item "-mieee"
13076 Increase IEEE-compliance of floating-point code.
13077 At the moment, this is equivalent to \fB\-fno\-finite\-math\-only\fR.
13078 When generating 16 bit \s-1SH\s0 opcodes, getting IEEE-conforming results for
13079 comparisons of NANs / infinities incurs extra overhead in every
13080 floating point comparison, therefore the default is set to
13081 \&\fB\-ffinite\-math\-only\fR.
13082 .IP "\fB\-minline\-ic_invalidate\fR" 4
13083 .IX Item "-minline-ic_invalidate"
13084 Inline code to invalidate instruction cache entries after setting up
13085 nested function trampolines.
13086 This option has no effect if \-musermode is in effect and the selected
13087 code generation option (e.g. \-m4) does not allow the use of the icbi
13088 instruction.
13089 If the selected code generation option does not allow the use of the icbi
13090 instruction, and \-musermode is not in effect, the inlined code will
13091 manipulate the instruction cache address array directly with an associative
13092 write.  This not only requires privileged mode, but it will also
13093 fail if the cache line had been mapped via the \s-1TLB\s0 and has become unmapped.
13094 .IP "\fB\-misize\fR" 4
13095 .IX Item "-misize"
13096 Dump instruction size and location in the assembly code.
13097 .IP "\fB\-mpadstruct\fR" 4
13098 .IX Item "-mpadstruct"
13099 This option is deprecated.  It pads structures to multiple of 4 bytes,
13100 which is incompatible with the \s-1SH\s0 \s-1ABI\s0.
13101 .IP "\fB\-mspace\fR" 4
13102 .IX Item "-mspace"
13103 Optimize for space instead of speed.  Implied by \fB\-Os\fR.
13104 .IP "\fB\-mprefergot\fR" 4
13105 .IX Item "-mprefergot"
13106 When generating position-independent code, emit function calls using
13107 the Global Offset Table instead of the Procedure Linkage Table.
13108 .IP "\fB\-musermode\fR" 4
13109 .IX Item "-musermode"
13110 Don't generate privileged mode only code; implies \-mno\-inline\-ic_invalidate
13111 if the inlined code would not work in user mode.
13112 This is the default when the target is \f(CW\*(C`sh\-*\-linux*\*(C'\fR.
13113 .IP "\fB\-multcost=\fR\fInumber\fR" 4
13114 .IX Item "-multcost=number"
13115 Set the cost to assume for a multiply insn.
13116 .IP "\fB\-mdiv=\fR\fIstrategy\fR" 4
13117 .IX Item "-mdiv=strategy"
13118 Set the division strategy to use for SHmedia code.  \fIstrategy\fR must be
13119 one of: call, call2, fp, inv, inv:minlat, inv20u, inv20l, inv:call,
13120 inv:call2, inv:fp .
13121 \&\*(L"fp\*(R" performs the operation in floating point.  This has a very high latency,
13122 but needs only a few instructions, so it might be a good choice if
13123 your code has enough easily exploitable \s-1ILP\s0 to allow the compiler to
13124 schedule the floating point instructions together with other instructions.
13125 Division by zero causes a floating point exception.
13126 \&\*(L"inv\*(R" uses integer operations to calculate the inverse of the divisor,
13127 and then multiplies the dividend with the inverse.  This strategy allows
13128 cse and hoisting of the inverse calculation.  Division by zero calculates
13129 an unspecified result, but does not trap.
13130 \&\*(L"inv:minlat\*(R" is a variant of \*(L"inv\*(R" where if no cse / hoisting opportunities
13131 have been found, or if the entire operation has been hoisted to the same
13132 place, the last stages of the inverse calculation are intertwined with the
13133 final multiply to reduce the overall latency, at the expense of using a few
13134 more instructions, and thus offering fewer scheduling opportunities with
13135 other code.
13136 \&\*(L"call\*(R" calls a library function that usually implements the inv:minlat
13137 strategy.
13138 This gives high code density for m5\-*media\-nofpu compilations.
13139 \&\*(L"call2\*(R" uses a different entry point of the same library function, where it
13140 assumes that a pointer to a lookup table has already been set up, which
13141 exposes the pointer load to cse / code hoisting optimizations.
13142 \&\*(L"inv:call\*(R", \*(L"inv:call2\*(R" and \*(L"inv:fp\*(R" all use the \*(L"inv\*(R" algorithm for initial
13143 code generation, but if the code stays unoptimized, revert to the \*(L"call\*(R",
13144 \&\*(L"call2\*(R", or \*(L"fp\*(R" strategies, respectively.  Note that the
13145 potentially-trapping side effect of division by zero is carried by a
13146 separate instruction, so it is possible that all the integer instructions
13147 are hoisted out, but the marker for the side effect stays where it is.
13148 A recombination to fp operations or a call is not possible in that case.
13149 \&\*(L"inv20u\*(R" and \*(L"inv20l\*(R" are variants of the \*(L"inv:minlat\*(R" strategy.  In the case
13150 that the inverse calculation was nor separated from the multiply, they speed
13151 up division where the dividend fits into 20 bits (plus sign where applicable),
13152 by inserting a test to skip a number of operations in this case; this test
13153 slows down the case of larger dividends.  inv20u assumes the case of a such
13154 a small dividend to be unlikely, and inv20l assumes it to be likely.
13155 .IP "\fB\-mdivsi3_libfunc=\fR\fIname\fR" 4
13156 .IX Item "-mdivsi3_libfunc=name"
13157 Set the name of the library function used for 32 bit signed division to
13158 \&\fIname\fR.  This only affect the name used in the call and inv:call
13159 division strategies, and the compiler will still expect the same
13160 sets of input/output/clobbered registers as if this option was not present.
13161 .IP "\fB\-madjust\-unroll\fR" 4
13162 .IX Item "-madjust-unroll"
13163 Throttle unrolling to avoid thrashing target registers.
13164 This option only has an effect if the gcc code base supports the
13165 \&\s-1TARGET_ADJUST_UNROLL_MAX\s0 target hook.
13166 .IP "\fB\-mindexed\-addressing\fR" 4
13167 .IX Item "-mindexed-addressing"
13168 Enable the use of the indexed addressing mode for SHmedia32/SHcompact.
13169 This is only safe if the hardware and/or \s-1OS\s0 implement 32 bit wrap-around
13170 semantics for the indexed addressing mode.  The architecture allows the
13171 implementation of processors with 64 bit \s-1MMU\s0, which the \s-1OS\s0 could use to
13172 get 32 bit addressing, but since no current hardware implementation supports
13173 this or any other way to make the indexed addressing mode safe to use in
13174 the 32 bit \s-1ABI\s0, the default is \-mno\-indexed\-addressing.
13175 .IP "\fB\-mgettrcost=\fR\fInumber\fR" 4
13176 .IX Item "-mgettrcost=number"
13177 Set the cost assumed for the gettr instruction to \fInumber\fR.
13178 The default is 2 if \fB\-mpt\-fixed\fR is in effect, 100 otherwise.
13179 .IP "\fB\-mpt\-fixed\fR" 4
13180 .IX Item "-mpt-fixed"
13181 Assume pt* instructions won't trap.  This will generally generate better
13182 scheduled code, but is unsafe on current hardware.  The current architecture
13183 definition says that ptabs and ptrel trap when the target anded with 3 is 3.
13184 This has the unintentional effect of making it unsafe to schedule ptabs /
13185 ptrel before a branch, or hoist it out of a loop.  For example,
13186 _\|_do_global_ctors, a part of libgcc that runs constructors at program
13187 startup, calls functions in a list which is delimited by \-1.  With the
13188 \&\-mpt\-fixed option, the ptabs will be done before testing against \-1.
13189 That means that all the constructors will be run a bit quicker, but when
13190 the loop comes to the end of the list, the program crashes because ptabs
13191 loads \-1 into a target register.  Since this option is unsafe for any
13192 hardware implementing the current architecture specification, the default
13193 is \-mno\-pt\-fixed.  Unless the user specifies a specific cost with
13194 \&\fB\-mgettrcost\fR, \-mno\-pt\-fixed also implies \fB\-mgettrcost=100\fR;
13195 this deters register allocation using target registers for storing
13196 ordinary integers.
13197 .IP "\fB\-minvalid\-symbols\fR" 4
13198 .IX Item "-minvalid-symbols"
13199 Assume symbols might be invalid.  Ordinary function symbols generated by
13200 the compiler will always be valid to load with movi/shori/ptabs or
13201 movi/shori/ptrel, but with assembler and/or linker tricks it is possible
13202 to generate symbols that will cause ptabs / ptrel to trap.
13203 This option is only meaningful when \fB\-mno\-pt\-fixed\fR is in effect.
13204 It will then prevent cross-basic-block cse, hoisting and most scheduling
13205 of symbol loads.  The default is \fB\-mno\-invalid\-symbols\fR.
13207 \fI\s-1SPARC\s0 Options\fR
13208 .IX Subsection "SPARC Options"
13210 These \fB\-m\fR options are supported on the \s-1SPARC:\s0
13211 .IP "\fB\-mno\-app\-regs\fR" 4
13212 .IX Item "-mno-app-regs"
13213 .PD 0
13214 .IP "\fB\-mapp\-regs\fR" 4
13215 .IX Item "-mapp-regs"
13217 Specify \fB\-mapp\-regs\fR to generate output using the global registers
13218 2 through 4, which the \s-1SPARC\s0 \s-1SVR4\s0 \s-1ABI\s0 reserves for applications.  This
13219 is the default.
13221 To be fully \s-1SVR4\s0 \s-1ABI\s0 compliant at the cost of some performance loss,
13222 specify \fB\-mno\-app\-regs\fR.  You should compile libraries and system
13223 software with this option.
13224 .IP "\fB\-mfpu\fR" 4
13225 .IX Item "-mfpu"
13226 .PD 0
13227 .IP "\fB\-mhard\-float\fR" 4
13228 .IX Item "-mhard-float"
13230 Generate output containing floating point instructions.  This is the
13231 default.
13232 .IP "\fB\-mno\-fpu\fR" 4
13233 .IX Item "-mno-fpu"
13234 .PD 0
13235 .IP "\fB\-msoft\-float\fR" 4
13236 .IX Item "-msoft-float"
13238 Generate output containing library calls for floating point.
13239 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
13240 targets.  Normally the facilities of the machine's usual C compiler are
13241 used, but this cannot be done directly in cross-compilation.  You must make
13242 your own arrangements to provide suitable library functions for
13243 cross-compilation.  The embedded targets \fBsparc\-*\-aout\fR and
13244 \&\fBsparclite\-*\-*\fR do provide software floating point support.
13246 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
13247 therefore, it is only useful if you compile \fIall\fR of a program with
13248 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
13249 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
13250 this to work.
13251 .IP "\fB\-mhard\-quad\-float\fR" 4
13252 .IX Item "-mhard-quad-float"
13253 Generate output containing quad-word (long double) floating point
13254 instructions.
13255 .IP "\fB\-msoft\-quad\-float\fR" 4
13256 .IX Item "-msoft-quad-float"
13257 Generate output containing library calls for quad-word (long double)
13258 floating point instructions.  The functions called are those specified
13259 in the \s-1SPARC\s0 \s-1ABI\s0.  This is the default.
13261 As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
13262 support for the quad-word floating point instructions.  They all invoke
13263 a trap handler for one of these instructions, and then the trap handler
13264 emulates the effect of the instruction.  Because of the trap handler overhead,
13265 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
13266 \&\fB\-msoft\-quad\-float\fR option is the default.
13267 .IP "\fB\-mno\-unaligned\-doubles\fR" 4
13268 .IX Item "-mno-unaligned-doubles"
13269 .PD 0
13270 .IP "\fB\-munaligned\-doubles\fR" 4
13271 .IX Item "-munaligned-doubles"
13273 Assume that doubles have 8 byte alignment.  This is the default.
13275 With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8 byte
13276 alignment only if they are contained in another type, or if they have an
13277 absolute address.  Otherwise, it assumes they have 4 byte alignment.
13278 Specifying this option avoids some rare compatibility problems with code
13279 generated by other compilers.  It is not the default because it results
13280 in a performance loss, especially for floating point code.
13281 .IP "\fB\-mno\-faster\-structs\fR" 4
13282 .IX Item "-mno-faster-structs"
13283 .PD 0
13284 .IP "\fB\-mfaster\-structs\fR" 4
13285 .IX Item "-mfaster-structs"
13287 With \fB\-mfaster\-structs\fR, the compiler assumes that structures
13288 should have 8 byte alignment.  This enables the use of pairs of
13289 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
13290 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
13291 However, the use of this changed alignment directly violates the \s-1SPARC\s0
13292 \&\s-1ABI\s0.  Thus, it's intended only for use on targets where the developer
13293 acknowledges that their resulting code will not be directly in line with
13294 the rules of the \s-1ABI\s0.
13295 .IP "\fB\-mimpure\-text\fR" 4
13296 .IX Item "-mimpure-text"
13297 \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
13298 the compiler to not pass \fB\-z text\fR to the linker when linking a
13299 shared object.  Using this option, you can link position-dependent
13300 code into a shared object.
13302 \&\fB\-mimpure\-text\fR suppresses the \*(L"relocations remain against
13303 allocatable but non-writable sections\*(R" linker error message.
13304 However, the necessary relocations will trigger copy-on-write, and the
13305 shared object is not actually shared across processes.  Instead of
13306 using \fB\-mimpure\-text\fR, you should compile all source code with
13307 \&\fB\-fpic\fR or \fB\-fPIC\fR.
13309 This option is only available on SunOS and Solaris.
13310 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
13311 .IX Item "-mcpu=cpu_type"
13312 Set the instruction set, register set, and instruction scheduling parameters
13313 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
13314 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBsparclite\fR,
13315 \&\fBf930\fR, \fBf934\fR, \fBhypersparc\fR, \fBsparclite86x\fR,
13316 \&\fBsparclet\fR, \fBtsc701\fR, \fBv9\fR, \fBultrasparc\fR,
13317 \&\fBultrasparc3\fR, \fBniagara\fR and \fBniagara2\fR.
13319 Default instruction scheduling parameters are used for values that select
13320 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
13321 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
13323 Here is a list of each supported architecture and their supported
13324 implementations.
13326 .Vb 5
13327 \&            v7:             cypress
13328 \&            v8:             supersparc, hypersparc
13329 \&            sparclite:      f930, f934, sparclite86x
13330 \&            sparclet:       tsc701
13331 \&            v9:             ultrasparc, ultrasparc3, niagara, niagara2
13334 By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
13335 variant of the \s-1SPARC\s0 architecture.  With \fB\-mcpu=cypress\fR, the compiler
13336 additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
13337 SPARCStation/SPARCServer 3xx series.  This is also appropriate for the older
13338 SPARCStation 1, 2, \s-1IPX\s0 etc.
13340 With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
13341 architecture.  The only difference from V7 code is that the compiler emits
13342 the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
13343 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=supersparc\fR, the compiler additionally
13344 optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
13345 2000 series.
13347 With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
13348 the \s-1SPARC\s0 architecture.  This adds the integer multiply, integer divide step
13349 and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7\s0.
13350 With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
13351 Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU\s0.  With
13352 \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
13353 \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU\s0.
13355 With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
13356 the \s-1SPARC\s0 architecture.  This adds the integer multiply, multiply/accumulate,
13357 integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
13358 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=tsc701\fR, the compiler additionally
13359 optimizes it for the \s-1TEMIC\s0 SPARClet chip.
13361 With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
13362 architecture.  This adds 64\-bit integer and floating-point move instructions,
13363 3 additional floating-point condition code registers and conditional move
13364 instructions.  With \fB\-mcpu=ultrasparc\fR, the compiler additionally
13365 optimizes it for the Sun UltraSPARC I/II/IIi chips.  With
13366 \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
13367 Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+ chips.  With
13368 \&\fB\-mcpu=niagara\fR, the compiler additionally optimizes it for
13369 Sun UltraSPARC T1 chips.  With \fB\-mcpu=niagara2\fR, the compiler
13370 additionally optimizes it for Sun UltraSPARC T2 chips.
13371 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
13372 .IX Item "-mtune=cpu_type"
13373 Set the instruction scheduling parameters for machine type
13374 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
13375 option \fB\-mcpu=\fR\fIcpu_type\fR would.
13377 The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
13378 \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
13379 that select a particular cpu implementation.  Those are \fBcypress\fR,
13380 \&\fBsupersparc\fR, \fBhypersparc\fR, \fBf930\fR, \fBf934\fR,
13381 \&\fBsparclite86x\fR, \fBtsc701\fR, \fBultrasparc\fR,
13382 \&\fBultrasparc3\fR, \fBniagara\fR, and \fBniagara2\fR.
13383 .IP "\fB\-mv8plus\fR" 4
13384 .IX Item "-mv8plus"
13385 .PD 0
13386 .IP "\fB\-mno\-v8plus\fR" 4
13387 .IX Item "-mno-v8plus"
13389 With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+\s0 \s-1ABI\s0.  The
13390 difference from the V8 \s-1ABI\s0 is that the global and out registers are
13391 considered 64\-bit wide.  This is enabled by default on Solaris in 32\-bit
13392 mode for all \s-1SPARC\-V9\s0 processors.
13393 .IP "\fB\-mvis\fR" 4
13394 .IX Item "-mvis"
13395 .PD 0
13396 .IP "\fB\-mno\-vis\fR" 4
13397 .IX Item "-mno-vis"
13399 With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
13400 Visual Instruction Set extensions.  The default is \fB\-mno\-vis\fR.
13402 These \fB\-m\fR options are supported in addition to the above
13403 on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
13404 .IP "\fB\-mlittle\-endian\fR" 4
13405 .IX Item "-mlittle-endian"
13406 Generate code for a processor running in little-endian mode.  It is only
13407 available for a few configurations and most notably not on Solaris and Linux.
13408 .IP "\fB\-m32\fR" 4
13409 .IX Item "-m32"
13410 .PD 0
13411 .IP "\fB\-m64\fR" 4
13412 .IX Item "-m64"
13414 Generate code for a 32\-bit or 64\-bit environment.
13415 The 32\-bit environment sets int, long and pointer to 32 bits.
13416 The 64\-bit environment sets int to 32 bits and long and pointer
13417 to 64 bits.
13418 .IP "\fB\-mcmodel=medlow\fR" 4
13419 .IX Item "-mcmodel=medlow"
13420 Generate code for the Medium/Low code model: 64\-bit addresses, programs
13421 must be linked in the low 32 bits of memory.  Programs can be statically
13422 or dynamically linked.
13423 .IP "\fB\-mcmodel=medmid\fR" 4
13424 .IX Item "-mcmodel=medmid"
13425 Generate code for the Medium/Middle code model: 64\-bit addresses, programs
13426 must be linked in the low 44 bits of memory, the text and data segments must
13427 be less than 2GB in size and the data segment must be located within 2GB of
13428 the text segment.
13429 .IP "\fB\-mcmodel=medany\fR" 4
13430 .IX Item "-mcmodel=medany"
13431 Generate code for the Medium/Anywhere code model: 64\-bit addresses, programs
13432 may be linked anywhere in memory, the text and data segments must be less
13433 than 2GB in size and the data segment must be located within 2GB of the
13434 text segment.
13435 .IP "\fB\-mcmodel=embmedany\fR" 4
13436 .IX Item "-mcmodel=embmedany"
13437 Generate code for the Medium/Anywhere code model for embedded systems:
13438 64\-bit addresses, the text and data segments must be less than 2GB in
13439 size, both starting anywhere in memory (determined at link time).  The
13440 global register \f(CW%g4\fR points to the base of the data segment.  Programs
13441 are statically linked and \s-1PIC\s0 is not supported.
13442 .IP "\fB\-mstack\-bias\fR" 4
13443 .IX Item "-mstack-bias"
13444 .PD 0
13445 .IP "\fB\-mno\-stack\-bias\fR" 4
13446 .IX Item "-mno-stack-bias"
13448 With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
13449 frame pointer if present, are offset by \-2047 which must be added back
13450 when making stack frame references.  This is the default in 64\-bit mode.
13451 Otherwise, assume no such offset is present.
13453 These switches are supported in addition to the above on Solaris:
13454 .IP "\fB\-threads\fR" 4
13455 .IX Item "-threads"
13456 Add support for multithreading using the Solaris threads library.  This
13457 option sets flags for both the preprocessor and linker.  This option does
13458 not affect the thread safety of object code produced by the compiler or
13459 that of libraries supplied with it.
13460 .IP "\fB\-pthreads\fR" 4
13461 .IX Item "-pthreads"
13462 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
13463 option sets flags for both the preprocessor and linker.  This option does
13464 not affect the thread safety of object code produced  by the compiler or
13465 that of libraries supplied with it.
13466 .IP "\fB\-pthread\fR" 4
13467 .IX Item "-pthread"
13468 This is a synonym for \fB\-pthreads\fR.
13470 \fI\s-1SPU\s0 Options\fR
13471 .IX Subsection "SPU Options"
13473 These \fB\-m\fR options are supported on the \s-1SPU:\s0
13474 .IP "\fB\-mwarn\-reloc\fR" 4
13475 .IX Item "-mwarn-reloc"
13476 .PD 0
13477 .IP "\fB\-merror\-reloc\fR" 4
13478 .IX Item "-merror-reloc"
13480 The loader for \s-1SPU\s0 does not handle dynamic relocations.  By default, \s-1GCC\s0
13481 will give an error when it generates code that requires a dynamic
13482 relocation.  \fB\-mno\-error\-reloc\fR disables the error,
13483 \&\fB\-mwarn\-reloc\fR will generate a warning instead.
13484 .IP "\fB\-msafe\-dma\fR" 4
13485 .IX Item "-msafe-dma"
13486 .PD 0
13487 .IP "\fB\-munsafe\-dma\fR" 4
13488 .IX Item "-munsafe-dma"
13490 Instructions which initiate or test completion of \s-1DMA\s0 must not be
13491 reordered with respect to loads and stores of the memory which is being
13492 accessed.  Users typically address this problem using the volatile
13493 keyword, but that can lead to inefficient code in places where the
13494 memory is known to not change.  Rather than mark the memory as volatile
13495 we treat the \s-1DMA\s0 instructions as potentially effecting all memory.  With
13496 \&\fB\-munsafe\-dma\fR users must use the volatile keyword to protect
13497 memory accesses.
13498 .IP "\fB\-mbranch\-hints\fR" 4
13499 .IX Item "-mbranch-hints"
13500 By default, \s-1GCC\s0 will generate a branch hint instruction to avoid
13501 pipeline stalls for always taken or probably taken branches.  A hint
13502 will not be generated closer than 8 instructions away from its branch.
13503 There is little reason to disable them, except for debugging purposes,
13504 or to make an object a little bit smaller.
13505 .IP "\fB\-msmall\-mem\fR" 4
13506 .IX Item "-msmall-mem"
13507 .PD 0
13508 .IP "\fB\-mlarge\-mem\fR" 4
13509 .IX Item "-mlarge-mem"
13511 By default, \s-1GCC\s0 generates code assuming that addresses are never larger
13512 than 18 bits.  With \fB\-mlarge\-mem\fR code is generated that assumes
13513 a full 32 bit address.
13514 .IP "\fB\-mstdmain\fR" 4
13515 .IX Item "-mstdmain"
13516 By default, \s-1GCC\s0 links against startup code that assumes the SPU-style
13517 main function interface (which has an unconventional parameter list).
13518 With \fB\-mstdmain\fR, \s-1GCC\s0 will link your program against startup
13519 code that assumes a C99\-style interface to \f(CW\*(C`main\*(C'\fR, including a
13520 local copy of \f(CW\*(C`argv\*(C'\fR strings.
13521 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
13522 .IX Item "-mfixed-range=register-range"
13523 Generate code treating the given register range as fixed registers.
13524 A fixed register is one that the register allocator can not use.  This is
13525 useful when compiling kernel code.  A register range is specified as
13526 two registers separated by a dash.  Multiple register ranges can be
13527 specified separated by a comma.
13528 .IP "\fB\-mdual\-nops\fR" 4
13529 .IX Item "-mdual-nops"
13530 .PD 0
13531 .IP "\fB\-mdual\-nops=\fR\fIn\fR" 4
13532 .IX Item "-mdual-nops=n"
13534 By default, \s-1GCC\s0 will insert nops to increase dual issue when it expects
13535 it to increase performance.  \fIn\fR can be a value from 0 to 10.  A
13536 smaller \fIn\fR will insert fewer nops.  10 is the default, 0 is the
13537 same as \fB\-mno\-dual\-nops\fR.  Disabled with \fB\-Os\fR.
13538 .IP "\fB\-mhint\-max\-nops=\fR\fIn\fR" 4
13539 .IX Item "-mhint-max-nops=n"
13540 Maximum number of nops to insert for a branch hint.  A branch hint must
13541 be at least 8 instructions away from the branch it is effecting.  \s-1GCC\s0
13542 will insert up to \fIn\fR nops to enforce this, otherwise it will not
13543 generate the branch hint.
13544 .IP "\fB\-mhint\-max\-distance=\fR\fIn\fR" 4
13545 .IX Item "-mhint-max-distance=n"
13546 The encoding of the branch hint instruction limits the hint to be within
13547 256 instructions of the branch it is effecting.  By default, \s-1GCC\s0 makes
13548 sure it is within 125.
13549 .IP "\fB\-msafe\-hints\fR" 4
13550 .IX Item "-msafe-hints"
13551 Work around a hardware bug which causes the \s-1SPU\s0 to stall indefinitely.
13552 By default, \s-1GCC\s0 will insert the \f(CW\*(C`hbrp\*(C'\fR instruction to make sure
13553 this stall won't happen.
13555 \fIOptions for System V\fR
13556 .IX Subsection "Options for System V"
13558 These additional options are available on System V Release 4 for
13559 compatibility with other compilers on those systems:
13560 .IP "\fB\-G\fR" 4
13561 .IX Item "-G"
13562 Create a shared object.
13563 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
13564 .IP "\fB\-Qy\fR" 4
13565 .IX Item "-Qy"
13566 Identify the versions of each tool used by the compiler, in a
13567 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
13568 .IP "\fB\-Qn\fR" 4
13569 .IX Item "-Qn"
13570 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
13571 the default).
13572 .IP "\fB\-YP,\fR\fIdirs\fR" 4
13573 .IX Item "-YP,dirs"
13574 Search the directories \fIdirs\fR, and no others, for libraries
13575 specified with \fB\-l\fR.
13576 .IP "\fB\-Ym,\fR\fIdir\fR" 4
13577 .IX Item "-Ym,dir"
13578 Look in the directory \fIdir\fR to find the M4 preprocessor.
13579 The assembler uses this option.
13581 \fIV850 Options\fR
13582 .IX Subsection "V850 Options"
13584 These \fB\-m\fR options are defined for V850 implementations:
13585 .IP "\fB\-mlong\-calls\fR" 4
13586 .IX Item "-mlong-calls"
13587 .PD 0
13588 .IP "\fB\-mno\-long\-calls\fR" 4
13589 .IX Item "-mno-long-calls"
13591 Treat all calls as being far away (near).  If calls are assumed to be
13592 far away, the compiler will always load the functions address up into a
13593 register, and call indirect through the pointer.
13594 .IP "\fB\-mno\-ep\fR" 4
13595 .IX Item "-mno-ep"
13596 .PD 0
13597 .IP "\fB\-mep\fR" 4
13598 .IX Item "-mep"
13600 Do not optimize (do optimize) basic blocks that use the same index
13601 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
13602 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
13603 option is on by default if you optimize.
13604 .IP "\fB\-mno\-prolog\-function\fR" 4
13605 .IX Item "-mno-prolog-function"
13606 .PD 0
13607 .IP "\fB\-mprolog\-function\fR" 4
13608 .IX Item "-mprolog-function"
13610 Do not use (do use) external functions to save and restore registers
13611 at the prologue and epilogue of a function.  The external functions
13612 are slower, but use less code space if more than one function saves
13613 the same number of registers.  The \fB\-mprolog\-function\fR option
13614 is on by default if you optimize.
13615 .IP "\fB\-mspace\fR" 4
13616 .IX Item "-mspace"
13617 Try to make the code as small as possible.  At present, this just turns
13618 on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
13619 .IP "\fB\-mtda=\fR\fIn\fR" 4
13620 .IX Item "-mtda=n"
13621 Put static or global variables whose size is \fIn\fR bytes or less into
13622 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
13623 area can hold up to 256 bytes in total (128 bytes for byte references).
13624 .IP "\fB\-msda=\fR\fIn\fR" 4
13625 .IX Item "-msda=n"
13626 Put static or global variables whose size is \fIn\fR bytes or less into
13627 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
13628 area can hold up to 64 kilobytes.
13629 .IP "\fB\-mzda=\fR\fIn\fR" 4
13630 .IX Item "-mzda=n"
13631 Put static or global variables whose size is \fIn\fR bytes or less into
13632 the first 32 kilobytes of memory.
13633 .IP "\fB\-mv850\fR" 4
13634 .IX Item "-mv850"
13635 Specify that the target processor is the V850.
13636 .IP "\fB\-mbig\-switch\fR" 4
13637 .IX Item "-mbig-switch"
13638 Generate code suitable for big switch tables.  Use this option only if
13639 the assembler/linker complain about out of range branches within a switch
13640 table.
13641 .IP "\fB\-mapp\-regs\fR" 4
13642 .IX Item "-mapp-regs"
13643 This option will cause r2 and r5 to be used in the code generated by
13644 the compiler.  This setting is the default.
13645 .IP "\fB\-mno\-app\-regs\fR" 4
13646 .IX Item "-mno-app-regs"
13647 This option will cause r2 and r5 to be treated as fixed registers.
13648 .IP "\fB\-mv850e1\fR" 4
13649 .IX Item "-mv850e1"
13650 Specify that the target processor is the V850E1.  The preprocessor
13651 constants \fB_\|_v850e1_\|_\fR and \fB_\|_v850e_\|_\fR will be defined if
13652 this option is used.
13653 .IP "\fB\-mv850e\fR" 4
13654 .IX Item "-mv850e"
13655 Specify that the target processor is the V850E.  The preprocessor
13656 constant \fB_\|_v850e_\|_\fR will be defined if this option is used.
13658 If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
13659 are defined then a default target processor will be chosen and the
13660 relevant \fB_\|_v850*_\|_\fR preprocessor constant will be defined.
13662 The preprocessor constants \fB_\|_v850\fR and \fB_\|_v851_\|_\fR are always
13663 defined, regardless of which processor variant is the target.
13664 .IP "\fB\-mdisable\-callt\fR" 4
13665 .IX Item "-mdisable-callt"
13666 This option will suppress generation of the \s-1CALLT\s0 instruction for the
13667 v850e and v850e1 flavors of the v850 architecture.  The default is
13668 \&\fB\-mno\-disable\-callt\fR which allows the \s-1CALLT\s0 instruction to be used.
13670 \fI\s-1VAX\s0 Options\fR
13671 .IX Subsection "VAX Options"
13673 These \fB\-m\fR options are defined for the \s-1VAX:\s0
13674 .IP "\fB\-munix\fR" 4
13675 .IX Item "-munix"
13676 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
13677 that the Unix assembler for the \s-1VAX\s0 cannot handle across long
13678 ranges.
13679 .IP "\fB\-mgnu\fR" 4
13680 .IX Item "-mgnu"
13681 Do output those jump instructions, on the assumption that you
13682 will assemble with the \s-1GNU\s0 assembler.
13683 .IP "\fB\-mg\fR" 4
13684 .IX Item "-mg"
13685 Output code for g\-format floating point numbers instead of d\-format.
13687 \fIVxWorks Options\fR
13688 .IX Subsection "VxWorks Options"
13690 The options in this section are defined for all VxWorks targets.
13691 Options specific to the target hardware are listed with the other
13692 options for that target.
13693 .IP "\fB\-mrtp\fR" 4
13694 .IX Item "-mrtp"
13695 \&\s-1GCC\s0 can generate code for both VxWorks kernels and real time processes
13696 (RTPs).  This option switches from the former to the latter.  It also
13697 defines the preprocessor macro \f(CW\*(C`_\|_RTP_\|_\*(C'\fR.
13698 .IP "\fB\-non\-static\fR" 4
13699 .IX Item "-non-static"
13700 Link an \s-1RTP\s0 executable against shared libraries rather than static
13701 libraries.  The options \fB\-static\fR and \fB\-shared\fR can
13702 also be used for RTPs; \fB\-static\fR
13703 is the default.
13704 .IP "\fB\-Bstatic\fR" 4
13705 .IX Item "-Bstatic"
13706 .PD 0
13707 .IP "\fB\-Bdynamic\fR" 4
13708 .IX Item "-Bdynamic"
13710 These options are passed down to the linker.  They are defined for
13711 compatibility with Diab.
13712 .IP "\fB\-Xbind\-lazy\fR" 4
13713 .IX Item "-Xbind-lazy"
13714 Enable lazy binding of function calls.  This option is equivalent to
13715 \&\fB\-Wl,\-z,now\fR and is defined for compatibility with Diab.
13716 .IP "\fB\-Xbind\-now\fR" 4
13717 .IX Item "-Xbind-now"
13718 Disable lazy binding of function calls.  This option is the default and
13719 is defined for compatibility with Diab.
13721 \fIx86\-64 Options\fR
13722 .IX Subsection "x86-64 Options"
13724 These are listed under
13726 \fIXstormy16 Options\fR
13727 .IX Subsection "Xstormy16 Options"
13729 These options are defined for Xstormy16:
13730 .IP "\fB\-msim\fR" 4
13731 .IX Item "-msim"
13732 Choose startup files and linker script suitable for the simulator.
13734 \fIXtensa Options\fR
13735 .IX Subsection "Xtensa Options"
13737 These options are supported for Xtensa targets:
13738 .IP "\fB\-mconst16\fR" 4
13739 .IX Item "-mconst16"
13740 .PD 0
13741 .IP "\fB\-mno\-const16\fR" 4
13742 .IX Item "-mno-const16"
13744 Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
13745 constant values.  The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
13746 standard option from Tensilica.  When enabled, \f(CW\*(C`CONST16\*(C'\fR
13747 instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
13748 instructions.  The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
13749 the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
13750 .IP "\fB\-mfused\-madd\fR" 4
13751 .IX Item "-mfused-madd"
13752 .PD 0
13753 .IP "\fB\-mno\-fused\-madd\fR" 4
13754 .IX Item "-mno-fused-madd"
13756 Enable or disable use of fused multiply/add and multiply/subtract
13757 instructions in the floating-point option.  This has no effect if the
13758 floating-point option is not also enabled.  Disabling fused multiply/add
13759 and multiply/subtract instructions forces the compiler to use separate
13760 instructions for the multiply and add/subtract operations.  This may be
13761 desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
13762 required: the fused multiply add/subtract instructions do not round the
13763 intermediate result, thereby producing results with \fImore\fR bits of
13764 precision than specified by the \s-1IEEE\s0 standard.  Disabling fused multiply
13765 add/subtract instructions also ensures that the program output is not
13766 sensitive to the compiler's ability to combine multiply and add/subtract
13767 operations.
13768 .IP "\fB\-mtext\-section\-literals\fR" 4
13769 .IX Item "-mtext-section-literals"
13770 .PD 0
13771 .IP "\fB\-mno\-text\-section\-literals\fR" 4
13772 .IX Item "-mno-text-section-literals"
13774 Control the treatment of literal pools.  The default is
13775 \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
13776 section in the output file.  This allows the literal pool to be placed
13777 in a data \s-1RAM/ROM\s0, and it also allows the linker to combine literal
13778 pools from separate object files to remove redundant literals and
13779 improve code size.  With \fB\-mtext\-section\-literals\fR, the literals
13780 are interspersed in the text section in order to keep them as close as
13781 possible to their references.  This may be necessary for large assembly
13782 files.
13783 .IP "\fB\-mtarget\-align\fR" 4
13784 .IX Item "-mtarget-align"
13785 .PD 0
13786 .IP "\fB\-mno\-target\-align\fR" 4
13787 .IX Item "-mno-target-align"
13789 When this option is enabled, \s-1GCC\s0 instructs the assembler to
13790 automatically align instructions to reduce branch penalties at the
13791 expense of some code density.  The assembler attempts to widen density
13792 instructions to align branch targets and the instructions following call
13793 instructions.  If there are not enough preceding safe density
13794 instructions to align a target, no widening will be performed.  The
13795 default is \fB\-mtarget\-align\fR.  These options do not affect the
13796 treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
13797 assembler will always align, either by widening density instructions or
13798 by inserting no-op instructions.
13799 .IP "\fB\-mlongcalls\fR" 4
13800 .IX Item "-mlongcalls"
13801 .PD 0
13802 .IP "\fB\-mno\-longcalls\fR" 4
13803 .IX Item "-mno-longcalls"
13805 When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
13806 direct calls to indirect calls unless it can determine that the target
13807 of a direct call is in the range allowed by the call instruction.  This
13808 translation typically occurs for calls to functions in other source
13809 files.  Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
13810 instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
13811 The default is \fB\-mno\-longcalls\fR.  This option should be used in
13812 programs where the call target can potentially be out of range.  This
13813 option is implemented in the assembler, not the compiler, so the
13814 assembly code generated by \s-1GCC\s0 will still show direct call
13815 instructions\-\-\-look at the disassembled object code to see the actual
13816 instructions.  Note that the assembler will use an indirect call for
13817 every cross-file call, not just those that really will be out of range.
13819 \fIzSeries Options\fR
13820 .IX Subsection "zSeries Options"
13822 These are listed under
13823 .Sh "Options for Code Generation Conventions"
13824 .IX Subsection "Options for Code Generation Conventions"
13825 These machine-independent options control the interface conventions
13826 used in code generation.
13828 Most of them have both positive and negative forms; the negative form
13829 of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table below, only
13830 one of the forms is listed\-\-\-the one which is not the default.  You
13831 can figure out the other form by either removing \fBno\-\fR or adding
13833 .IP "\fB\-fbounds\-check\fR" 4
13834 .IX Item "-fbounds-check"
13835 For front-ends that support it, generate additional code to check that
13836 indices used to access arrays are within the declared range.  This is
13837 currently only supported by the Java and Fortran front-ends, where
13838 this option defaults to true and false respectively.
13839 .IP "\fB\-ftrapv\fR" 4
13840 .IX Item "-ftrapv"
13841 This option generates traps for signed overflow on addition, subtraction,
13842 multiplication operations.
13843 .IP "\fB\-fwrapv\fR" 4
13844 .IX Item "-fwrapv"
13845 This option instructs the compiler to assume that signed arithmetic
13846 overflow of addition, subtraction and multiplication wraps around
13847 using twos-complement representation.  This flag enables some optimizations
13848 and disables others.  This option is enabled by default for the Java
13849 front-end, as required by the Java language specification.
13850 .IP "\fB\-fexceptions\fR" 4
13851 .IX Item "-fexceptions"
13852 Enable exception handling.  Generates extra code needed to propagate
13853 exceptions.  For some targets, this implies \s-1GCC\s0 will generate frame
13854 unwind information for all functions, which can produce significant data
13855 size overhead, although it does not affect execution.  If you do not
13856 specify this option, \s-1GCC\s0 will enable it by default for languages like
13857 \&\*(C+ which normally require exception handling, and disable it for
13858 languages like C that do not normally require it.  However, you may need
13859 to enable this option when compiling C code that needs to interoperate
13860 properly with exception handlers written in \*(C+.  You may also wish to
13861 disable this option if you are compiling older \*(C+ programs that don't
13862 use exception handling.
13863 .IP "\fB\-fnon\-call\-exceptions\fR" 4
13864 .IX Item "-fnon-call-exceptions"
13865 Generate code that allows trapping instructions to throw exceptions.
13866 Note that this requires platform-specific runtime support that does
13867 not exist everywhere.  Moreover, it only allows \fItrapping\fR
13868 instructions to throw exceptions, i.e. memory references or floating
13869 point instructions.  It does not allow exceptions to be thrown from
13870 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
13871 .IP "\fB\-funwind\-tables\fR" 4
13872 .IX Item "-funwind-tables"
13873 Similar to \fB\-fexceptions\fR, except that it will just generate any needed
13874 static data, but will not affect the generated code in any other way.
13875 You will normally not enable this option; instead, a language processor
13876 that needs this handling would enable it on your behalf.
13877 .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
13878 .IX Item "-fasynchronous-unwind-tables"
13879 Generate unwind table in dwarf2 format, if supported by target machine.  The
13880 table is exact at each instruction boundary, so it can be used for stack
13881 unwinding from asynchronous events (such as debugger or garbage collector).
13882 .IP "\fB\-fpcc\-struct\-return\fR" 4
13883 .IX Item "-fpcc-struct-return"
13884 Return \*(L"short\*(R" \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
13885 longer ones, rather than in registers.  This convention is less
13886 efficient, but it has the advantage of allowing intercallability between
13887 GCC-compiled files and files compiled with other compilers, particularly
13888 the Portable C Compiler (pcc).
13890 The precise convention for returning structures in memory depends
13891 on the target configuration macros.
13893 Short structures and unions are those whose size and alignment match
13894 that of some integer type.
13896 \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
13897 switch is not binary compatible with code compiled with the
13898 \&\fB\-freg\-struct\-return\fR switch.
13899 Use it to conform to a non-default application binary interface.
13900 .IP "\fB\-freg\-struct\-return\fR" 4
13901 .IX Item "-freg-struct-return"
13902 Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
13903 This is more efficient for small structures than
13904 \&\fB\-fpcc\-struct\-return\fR.
13906 If you specify neither \fB\-fpcc\-struct\-return\fR nor
13907 \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
13908 standard for the target.  If there is no standard convention, \s-1GCC\s0
13909 defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
13910 the principal compiler.  In those cases, we can choose the standard, and
13911 we chose the more efficient register return alternative.
13913 \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
13914 switch is not binary compatible with code compiled with the
13915 \&\fB\-fpcc\-struct\-return\fR switch.
13916 Use it to conform to a non-default application binary interface.
13917 .IP "\fB\-fshort\-enums\fR" 4
13918 .IX Item "-fshort-enums"
13919 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
13920 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
13921 will be equivalent to the smallest integer type which has enough room.
13923 \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
13924 code that is not binary compatible with code generated without that switch.
13925 Use it to conform to a non-default application binary interface.
13926 .IP "\fB\-fshort\-double\fR" 4
13927 .IX Item "-fshort-double"
13928 Use the same size for \f(CW\*(C`double\*(C'\fR as for \f(CW\*(C`float\*(C'\fR.
13930 \&\fBWarning:\fR the \fB\-fshort\-double\fR switch causes \s-1GCC\s0 to generate
13931 code that is not binary compatible with code generated without that switch.
13932 Use it to conform to a non-default application binary interface.
13933 .IP "\fB\-fshort\-wchar\fR" 4
13934 .IX Item "-fshort-wchar"
13935 Override the underlying type for \fBwchar_t\fR to be \fBshort
13936 unsigned int\fR instead of the default for the target.  This option is
13937 useful for building programs to run under \s-1WINE\s0.
13939 \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
13940 code that is not binary compatible with code generated without that switch.
13941 Use it to conform to a non-default application binary interface.
13942 .IP "\fB\-fno\-common\fR" 4
13943 .IX Item "-fno-common"
13944 In C, allocate even uninitialized global variables in the data section of the
13945 object file, rather than generating them as common blocks.  This has the
13946 effect that if the same variable is declared (without \f(CW\*(C`extern\*(C'\fR) in
13947 two different compilations, you will get an error when you link them.
13948 The only reason this might be useful is if you wish to verify that the
13949 program will work on other systems which always work this way.
13950 .IP "\fB\-fno\-ident\fR" 4
13951 .IX Item "-fno-ident"
13952 Ignore the \fB#ident\fR directive.
13953 .IP "\fB\-finhibit\-size\-directive\fR" 4
13954 .IX Item "-finhibit-size-directive"
13955 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
13956 would cause trouble if the function is split in the middle, and the
13957 two halves are placed at locations far apart in memory.  This option is
13958 used when compiling \fIcrtstuff.c\fR; you should not need to use it
13959 for anything else.
13960 .IP "\fB\-fverbose\-asm\fR" 4
13961 .IX Item "-fverbose-asm"
13962 Put extra commentary information in the generated assembly code to
13963 make it more readable.  This option is generally only of use to those
13964 who actually need to read the generated assembly code (perhaps while
13965 debugging the compiler itself).
13967 \&\fB\-fno\-verbose\-asm\fR, the default, causes the
13968 extra information to be omitted and is useful when comparing two assembler
13969 files.
13970 .IP "\fB\-frecord\-gcc\-switches\fR" 4
13971 .IX Item "-frecord-gcc-switches"
13972 This switch causes the command line that was used to invoke the
13973 compiler to be recorded into the object file that is being created.
13974 This switch is only implemented on some targets and the exact format
13975 of the recording is target and binary file format dependent, but it
13976 usually takes the form of a section containing \s-1ASCII\s0 text.  This
13977 switch is related to the \fB\-fverbose\-asm\fR switch, but that
13978 switch only records information in the assembler output file as
13979 comments, so it never reaches the object file.
13980 .IP "\fB\-fpic\fR" 4
13981 .IX Item "-fpic"
13982 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
13983 library, if supported for the target machine.  Such code accesses all
13984 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
13985 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
13986 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
13987 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
13988 maximum size, you get an error message from the linker indicating that
13989 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
13990 instead.  (These maximums are 8k on the \s-1SPARC\s0 and 32k
13991 on the m68k and \s-1RS/6000\s0.  The 386 has no such limit.)
13993 Position-independent code requires special support, and therefore works
13994 only on certain machines.  For the 386, \s-1GCC\s0 supports \s-1PIC\s0 for System V
13995 but not for the Sun 386i.  Code generated for the \s-1IBM\s0 \s-1RS/6000\s0 is always
13996 position-independent.
13998 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
13999 are defined to 1.
14000 .IP "\fB\-fPIC\fR" 4
14001 .IX Item "-fPIC"
14002 If supported for the target machine, emit position-independent code,
14003 suitable for dynamic linking and avoiding any limit on the size of the
14004 global offset table.  This option makes a difference on the m68k,
14005 PowerPC and \s-1SPARC\s0.
14007 Position-independent code requires special support, and therefore works
14008 only on certain machines.
14010 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
14011 are defined to 2.
14012 .IP "\fB\-fpie\fR" 4
14013 .IX Item "-fpie"
14014 .PD 0
14015 .IP "\fB\-fPIE\fR" 4
14016 .IX Item "-fPIE"
14018 These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
14019 generated position independent code can be only linked into executables.
14020 Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option will be
14021 used during linking.
14023 \&\fB\-fpie\fR and \fB\-fPIE\fR both define the macros
14024 \&\f(CW\*(C`_\|_pie_\|_\*(C'\fR and \f(CW\*(C`_\|_PIE_\|_\*(C'\fR.  The macros have the value 1
14025 for \fB\-fpie\fR and 2 for \fB\-fPIE\fR.
14026 .IP "\fB\-fno\-jump\-tables\fR" 4
14027 .IX Item "-fno-jump-tables"
14028 Do not use jump tables for switch statements even where it would be
14029 more efficient than other code generation strategies.  This option is
14030 of use in conjunction with \fB\-fpic\fR or \fB\-fPIC\fR for
14031 building code which forms part of a dynamic linker and cannot
14032 reference the address of a jump table.  On some targets, jump tables
14033 do not require a \s-1GOT\s0 and this option is not needed.
14034 .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
14035 .IX Item "-ffixed-reg"
14036 Treat the register named \fIreg\fR as a fixed register; generated code
14037 should never refer to it (except perhaps as a stack pointer, frame
14038 pointer or in some other fixed role).
14040 \&\fIreg\fR must be the name of a register.  The register names accepted
14041 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
14042 macro in the machine description macro file.
14044 This flag does not have a negative form, because it specifies a
14045 three-way choice.
14046 .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
14047 .IX Item "-fcall-used-reg"
14048 Treat the register named \fIreg\fR as an allocable register that is
14049 clobbered by function calls.  It may be allocated for temporaries or
14050 variables that do not live across a call.  Functions compiled this way
14051 will not save and restore the register \fIreg\fR.
14053 It is an error to used this flag with the frame pointer or stack pointer.
14054 Use of this flag for other registers that have fixed pervasive roles in
14055 the machine's execution model will produce disastrous results.
14057 This flag does not have a negative form, because it specifies a
14058 three-way choice.
14059 .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
14060 .IX Item "-fcall-saved-reg"
14061 Treat the register named \fIreg\fR as an allocable register saved by
14062 functions.  It may be allocated even for temporaries or variables that
14063 live across a call.  Functions compiled this way will save and restore
14064 the register \fIreg\fR if they use it.
14066 It is an error to used this flag with the frame pointer or stack pointer.
14067 Use of this flag for other registers that have fixed pervasive roles in
14068 the machine's execution model will produce disastrous results.
14070 A different sort of disaster will result from the use of this flag for
14071 a register in which function values may be returned.
14073 This flag does not have a negative form, because it specifies a
14074 three-way choice.
14075 .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
14076 .IX Item "-fpack-struct[=n]"
14077 Without a value specified, pack all structure members together without
14078 holes.  When a value is specified (which must be a small power of two), pack
14079 structure members according to this value, representing the maximum
14080 alignment (that is, objects with default alignment requirements larger than
14081 this will be output potentially unaligned at the next fitting location.
14083 \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
14084 code that is not binary compatible with code generated without that switch.
14085 Additionally, it makes the code suboptimal.
14086 Use it to conform to a non-default application binary interface.
14087 .IP "\fB\-finstrument\-functions\fR" 4
14088 .IX Item "-finstrument-functions"
14089 Generate instrumentation calls for entry and exit to functions.  Just
14090 after function entry and just before function exit, the following
14091 profiling functions will be called with the address of the current
14092 function and its call site.  (On some platforms,
14093 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
14094 function, so the call site information may not be available to the
14095 profiling functions otherwise.)
14097 .Vb 4
14098 \&        void _\|_cyg_profile_func_enter (void *this_fn,
14099 \&                                       void *call_site);
14100 \&        void _\|_cyg_profile_func_exit  (void *this_fn,
14101 \&                                       void *call_site);
14104 The first argument is the address of the start of the current function,
14105 which may be looked up exactly in the symbol table.
14107 This instrumentation is also done for functions expanded inline in other
14108 functions.  The profiling calls will indicate where, conceptually, the
14109 inline function is entered and exited.  This means that addressable
14110 versions of such functions must be available.  If all your uses of a
14111 function are expanded inline, this may mean an additional expansion of
14112 code size.  If you use \fBextern inline\fR in your C code, an
14113 addressable version of such functions must be provided.  (This is
14114 normally the case anyways, but if you get lucky and the optimizer always
14115 expands the functions inline, you might have gotten away without
14116 providing static copies.)
14118 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
14119 which case this instrumentation will not be done.  This can be used, for
14120 example, for the profiling functions listed above, high-priority
14121 interrupt routines, and any functions from which the profiling functions
14122 cannot safely be called (perhaps signal handlers, if the profiling
14123 routines generate output or allocate memory).
14124 .IP "\fB\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR" 4
14125 .IX Item "-finstrument-functions-exclude-file-list=file,file,..."
14126 Set the list of functions that are excluded from instrumentation (see
14127 the description of \f(CW\*(C`\-finstrument\-functions\*(C'\fR).  If the file that
14128 contains a function definition matches with one of \fIfile\fR, then
14129 that function is not instrumented.  The match is done on substrings:
14130 if the \fIfile\fR parameter is a substring of the file name, it is
14131 considered to be a match.
14133 For example,
14134 \&\f(CW\*(C`\-finstrument\-functions\-exclude\-file\-list=/bits/stl,include/sys\*(C'\fR
14135 will exclude any inline function defined in files whose pathnames
14136 contain \f(CW\*(C`/bits/stl\*(C'\fR or \f(CW\*(C`include/sys\*(C'\fR.
14138 If, for some reason, you want to include letter \f(CW\*(Aq,\*(Aq\fR in one of
14139 \&\fIsym\fR, write \f(CW\*(Aq,\*(Aq\fR. For example,
14140 \&\f(CW\*(C`\-finstrument\-functions\-exclude\-file\-list=\*(Aq,,tmp\*(Aq\*(C'\fR
14141 (note the single quote surrounding the option).
14142 .IP "\fB\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,...\fR" 4
14143 .IX Item "-finstrument-functions-exclude-function-list=sym,sym,..."
14144 This is similar to \f(CW\*(C`\-finstrument\-functions\-exclude\-file\-list\*(C'\fR,
14145 but this option sets the list of function names to be excluded from
14146 instrumentation.  The function name to be matched is its user-visible
14147 name, such as \f(CW\*(C`vector<int> blah(const vector<int> &)\*(C'\fR, not the
14148 internal mangled name (e.g., \f(CW\*(C`_Z4blahRSt6vectorIiSaIiEE\*(C'\fR).  The
14149 match is done on substrings: if the \fIsym\fR parameter is a substring
14150 of the function name, it is considered to be a match.
14151 .IP "\fB\-fstack\-check\fR" 4
14152 .IX Item "-fstack-check"
14153 Generate code to verify that you do not go beyond the boundary of the
14154 stack.  You should specify this flag if you are running in an
14155 environment with multiple threads, but only rarely need to specify it in
14156 a single-threaded environment since stack overflow is automatically
14157 detected on nearly all systems if there is only one stack.
14159 Note that this switch does not actually cause checking to be done; the
14160 operating system must do that.  The switch causes generation of code
14161 to ensure that the operating system sees the stack being extended.
14162 .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
14163 .IX Item "-fstack-limit-register=reg"
14164 .PD 0
14165 .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
14166 .IX Item "-fstack-limit-symbol=sym"
14167 .IP "\fB\-fno\-stack\-limit\fR" 4
14168 .IX Item "-fno-stack-limit"
14170 Generate code to ensure that the stack does not grow beyond a certain value,
14171 either the value of a register or the address of a symbol.  If the stack
14172 would grow beyond the value, a signal is raised.  For most targets,
14173 the signal is raised before the stack overruns the boundary, so
14174 it is possible to catch the signal without taking special precautions.
14176 For instance, if the stack starts at absolute address \fB0x80000000\fR
14177 and grows downwards, you can use the flags
14178 \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
14179 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
14180 of 128KB.  Note that this may only work with the \s-1GNU\s0 linker.
14181 .IP "\fB\-fargument\-alias\fR" 4
14182 .IX Item "-fargument-alias"
14183 .PD 0
14184 .IP "\fB\-fargument\-noalias\fR" 4
14185 .IX Item "-fargument-noalias"
14186 .IP "\fB\-fargument\-noalias\-global\fR" 4
14187 .IX Item "-fargument-noalias-global"
14188 .IP "\fB\-fargument\-noalias\-anything\fR" 4
14189 .IX Item "-fargument-noalias-anything"
14191 Specify the possible relationships among parameters and between
14192 parameters and global data.
14194 \&\fB\-fargument\-alias\fR specifies that arguments (parameters) may
14195 alias each other and may alias global storage.\fB\-fargument\-noalias\fR specifies that arguments do not alias
14196 each other, but may alias global storage.\fB\-fargument\-noalias\-global\fR specifies that arguments do not
14197 alias each other and do not alias global storage.
14198 \&\fB\-fargument\-noalias\-anything\fR specifies that arguments do not
14199 alias any other storage.
14201 Each language will automatically use whatever option is required by
14202 the language standard.  You should not need to use these options yourself.
14203 .IP "\fB\-fleading\-underscore\fR" 4
14204 .IX Item "-fleading-underscore"
14205 This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
14206 change the way C symbols are represented in the object file.  One use
14207 is to help link with legacy assembly code.
14209 \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
14210 generate code that is not binary compatible with code generated without that
14211 switch.  Use it to conform to a non-default application binary interface.
14212 Not all targets provide complete support for this switch.
14213 .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
14214 .IX Item "-ftls-model=model"
14215 Alter the thread-local storage model to be used.
14216 The \fImodel\fR argument should be one of \f(CW\*(C`global\-dynamic\*(C'\fR,
14217 \&\f(CW\*(C`local\-dynamic\*(C'\fR, \f(CW\*(C`initial\-exec\*(C'\fR or \f(CW\*(C`local\-exec\*(C'\fR.
14219 The default without \fB\-fpic\fR is \f(CW\*(C`initial\-exec\*(C'\fR; with
14220 \&\fB\-fpic\fR the default is \f(CW\*(C`global\-dynamic\*(C'\fR.
14221 .IP "\fB\-fvisibility=\fR\fIdefault|internal|hidden|protected\fR" 4
14222 .IX Item "-fvisibility=default|internal|hidden|protected"
14223 Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
14224 symbols will be marked with this unless overridden within the code.
14225 Using this feature can very substantially improve linking and
14226 load times of shared object libraries, produce more optimized
14227 code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
14228 It is \fBstrongly\fR recommended that you use this in any shared objects
14229 you distribute.
14231 Despite the nomenclature, \f(CW\*(C`default\*(C'\fR always means public ie;
14232 available to be linked against from outside the shared object.
14233 \&\f(CW\*(C`protected\*(C'\fR and \f(CW\*(C`internal\*(C'\fR are pretty useless in real-world
14234 usage so the only other commonly used option will be \f(CW\*(C`hidden\*(C'\fR.
14235 The default if \fB\-fvisibility\fR isn't specified is
14236 \&\f(CW\*(C`default\*(C'\fR, i.e., make every
14237 symbol public\-\-\-this causes the same behavior as previous versions of
14238 \&\s-1GCC\s0.
14240 A good explanation of the benefits offered by ensuring \s-1ELF\s0
14241 symbols have the correct visibility is given by \*(L"How To Write
14242 Shared Libraries\*(R" by Ulrich Drepper (which can be found at
14243 <\fBhttp://people.redhat.com/~drepper/\fR>)\-\-\-however a superior
14244 solution made possible by this option to marking things hidden when
14245 the default is public is to make the default hidden and mark things
14246 public.  This is the norm with \s-1DLL\s0's on Windows and with \fB\-fvisibility=hidden\fR
14247 and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
14248 \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
14249 identical syntax.  This is a great boon to those working with
14250 cross-platform projects.
14252 For those adding visibility support to existing code, you may find
14253 \&\fB#pragma \s-1GCC\s0 visibility\fR of use.  This works by you enclosing
14254 the declarations you wish to set visibility for with (for example)
14255 \&\fB#pragma \s-1GCC\s0 visibility push(hidden)\fR and
14256 \&\fB#pragma \s-1GCC\s0 visibility pop\fR.
14257 Bear in mind that symbol visibility should be viewed \fBas
14258 part of the \s-1API\s0 interface contract\fR and thus all new code should
14259 always specify visibility when it is not the default ie; declarations
14260 only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
14261 as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
14262 abundantly clear also aids readability and self-documentation of the code.
14263 Note that due to \s-1ISO\s0 \*(C+ specification requirements, operator new and
14264 operator delete must always be of default visibility.
14266 Be aware that headers from outside your project, in particular system
14267 headers and headers from any other library you use, may not be
14268 expecting to be compiled with visibility other than the default.  You
14269 may need to explicitly say \fB#pragma \s-1GCC\s0 visibility push(default)\fR
14270 before including any such headers.
14272 \&\fBextern\fR declarations are not affected by \fB\-fvisibility\fR, so
14273 a lot of code can be recompiled with \fB\-fvisibility=hidden\fR with
14274 no modifications.  However, this means that calls to \fBextern\fR
14275 functions with no explicit visibility will use the \s-1PLT\s0, so it is more
14276 effective to use \fB_\|_attribute ((visibility))\fR and/or
14277 \&\fB#pragma \s-1GCC\s0 visibility\fR to tell the compiler which \fBextern\fR
14278 declarations should be treated as hidden.
14280 Note that \fB\-fvisibility\fR does affect \*(C+ vague linkage
14281 entities. This means that, for instance, an exception class that will
14282 be thrown between DSOs must be explicitly marked with default
14283 visibility so that the \fBtype_info\fR nodes will be unified between
14284 the DSOs.
14286 An overview of these techniques, their benefits and how to use them
14287 is at <\fBhttp://gcc.gnu.org/wiki/Visibility\fR>.
14288 .SH "ENVIRONMENT"
14289 .IX Header "ENVIRONMENT"
14290 This section describes several environment variables that affect how \s-1GCC\s0
14291 operates.  Some of them work by specifying directories or prefixes to use
14292 when searching for various kinds of files.  Some are used to specify other
14293 aspects of the compilation environment.
14295 Note that you can also specify places to search using options such as
14296 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
14297 take precedence over places specified using environment variables, which
14298 in turn take precedence over those specified by the configuration of \s-1GCC\s0.
14299 .IP "\fB\s-1LANG\s0\fR" 4
14300 .IX Item "LANG"
14301 .PD 0
14302 .IP "\fB\s-1LC_CTYPE\s0\fR" 4
14303 .IX Item "LC_CTYPE"
14304 .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
14305 .IX Item "LC_MESSAGES"
14306 .IP "\fB\s-1LC_ALL\s0\fR" 4
14307 .IX Item "LC_ALL"
14309 These environment variables control the way that \s-1GCC\s0 uses
14310 localization information that allow \s-1GCC\s0 to work with different
14311 national conventions.  \s-1GCC\s0 inspects the locale categories
14312 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
14313 so.  These locale categories can be set to any value supported by your
14314 installation.  A typical value is \fBen_GB.UTF\-8\fR for English in the United
14315 Kingdom encoded in \s-1UTF\-8\s0.
14317 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
14318 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
14319 a string; this is needed for some multibyte encodings that contain quote
14320 and escape characters that would otherwise be interpreted as a string
14321 end or escape.
14323 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
14324 use in diagnostic messages.
14326 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
14327 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
14328 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
14329 environment variable.  If none of these variables are set, \s-1GCC\s0
14330 defaults to traditional C English behavior.
14331 .IP "\fB\s-1TMPDIR\s0\fR" 4
14332 .IX Item "TMPDIR"
14333 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
14334 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
14335 compilation which is to be used as input to the next stage: for example,
14336 the output of the preprocessor, which is the input to the compiler
14337 proper.
14338 .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
14339 .IX Item "GCC_EXEC_PREFIX"
14340 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
14341 names of the subprograms executed by the compiler.  No slash is added
14342 when this prefix is combined with the name of a subprogram, but you can
14343 specify a prefix that ends with a slash if you wish.
14345 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 will attempt to figure out
14346 an appropriate prefix to use based on the pathname it was invoked with.
14348 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
14349 tries looking in the usual places for the subprogram.
14351 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
14352 \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the prefix to
14353 the installed compiler. In many cases \fIprefix\fR is the value
14354 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
14356 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
14358 This prefix is also used for finding files such as \fIcrt0.o\fR that are
14359 used for linking.
14361 In addition, the prefix is used in an unusual way in finding the
14362 directories to search for header files.  For each of the standard
14363 directories whose name normally begins with \fB/usr/local/lib/gcc\fR
14364 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
14365 replacing that beginning with the specified prefix to produce an
14366 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 will search
14367 \&\fIfoo/bar\fR where it would normally search \fI/usr/local/lib/bar\fR.
14368 These alternate directories are searched first; the standard directories
14369 come next. If a standard directory begins with the configured
14370 \&\fIprefix\fR then the value of \fIprefix\fR is replaced by
14371 \&\fB\s-1GCC_EXEC_PREFIX\s0\fR when looking for header files.
14372 .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
14373 .IX Item "COMPILER_PATH"
14374 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
14375 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
14376 specified when searching for subprograms, if it can't find the
14377 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
14378 .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
14379 .IX Item "LIBRARY_PATH"
14380 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
14381 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
14382 \&\s-1GCC\s0 tries the directories thus specified when searching for special
14383 linker files, if it can't find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
14384 using \s-1GCC\s0 also uses these directories when searching for ordinary
14385 libraries for the \fB\-l\fR option (but directories specified with
14386 \&\fB\-L\fR come first).
14387 .IP "\fB\s-1LANG\s0\fR" 4
14388 .IX Item "LANG"
14389 This variable is used to pass locale information to the compiler.  One way in
14390 which this information is used is to determine the character set to be used
14391 when character literals, string literals and comments are parsed in C and \*(C+.
14392 When the compiler is configured to allow multibyte characters,
14393 the following values for \fB\s-1LANG\s0\fR are recognized:
14394 .RS 4
14395 .IP "\fBC\-JIS\fR" 4
14396 .IX Item "C-JIS"
14397 Recognize \s-1JIS\s0 characters.
14398 .IP "\fBC\-SJIS\fR" 4
14399 .IX Item "C-SJIS"
14400 Recognize \s-1SJIS\s0 characters.
14401 .IP "\fBC\-EUCJP\fR" 4
14402 .IX Item "C-EUCJP"
14403 Recognize \s-1EUCJP\s0 characters.
14405 .RS 4
14407 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
14408 compiler will use mblen and mbtowc as defined by the default locale to
14409 recognize and translate multibyte characters.
14412 Some additional environments variables affect the behavior of the
14413 preprocessor.
14414 .IP "\fB\s-1CPATH\s0\fR" 4
14415 .IX Item "CPATH"
14416 .PD 0
14417 .IP "\fBC_INCLUDE_PATH\fR" 4
14418 .IX Item "C_INCLUDE_PATH"
14419 .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
14420 .IX Item "CPLUS_INCLUDE_PATH"
14421 .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
14422 .IX Item "OBJC_INCLUDE_PATH"
14424 Each variable's value is a list of directories separated by a special
14425 character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
14426 The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
14427 determined at \s-1GCC\s0 build time.  For Microsoft Windows-based targets it is a
14428 semicolon, and for almost all other targets it is a colon.
14430 \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
14431 specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
14432 options on the command line.  This environment variable is used
14433 regardless of which language is being preprocessed.
14435 The remaining environment variables apply only when preprocessing the
14436 particular language indicated.  Each specifies a list of directories
14437 to be searched as if specified with \fB\-isystem\fR, but after any
14438 paths given with \fB\-isystem\fR options on the command line.
14440 In all these variables, an empty element instructs the compiler to
14441 search its current working directory.  Empty elements can appear at the
14442 beginning or end of a path.  For instance, if the value of
14443 \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
14444 effect as \fB\-I.\ \-I/special/include\fR.
14445 .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
14446 .IX Item "DEPENDENCIES_OUTPUT"
14447 If this variable is set, its value specifies how to output
14448 dependencies for Make based on the non-system header files processed
14449 by the compiler.  System header files are ignored in the dependency
14450 output.
14452 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
14453 which case the Make rules are written to that file, guessing the target
14454 name from the source file name.  Or the value can have the form
14455 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
14456 file \fIfile\fR using \fItarget\fR as the target name.
14458 In other words, this environment variable is equivalent to combining
14459 the options \fB\-MM\fR and \fB\-MF\fR,
14460 with an optional \fB\-MT\fR switch too.
14461 .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
14462 .IX Item "SUNPRO_DEPENDENCIES"
14463 This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
14464 except that system header files are not ignored, so it implies
14465 \&\fB\-M\fR rather than \fB\-MM\fR.  However, the dependence on the
14466 main input file is omitted.
14467 .SH "BUGS"
14468 .IX Header "BUGS"
14469 For instructions on reporting bugs, see
14470 <\fBhttp://gcc.gnu.org/bugs.html\fR>.
14471 .SH "FOOTNOTES"
14472 .IX Header "FOOTNOTES"
14473 .IP "1." 4
14474 On some systems, \fBgcc \-shared\fR
14475 needs to build supplementary stub code for constructors to work.  On
14476 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
14477 libraries to link against.  Failing to supply the correct flags may lead
14478 to subtle defects.  Supplying them in cases where they are not necessary
14479 is innocuous.
14480 .SH "SEE ALSO"
14481 .IX Header "SEE ALSO"
14482 \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7),
14483 \&\fIcpp\fR\|(1), \fIgcov\fR\|(1), \fIas\fR\|(1), \fIld\fR\|(1), \fIgdb\fR\|(1), \fIadb\fR\|(1), \fIdbx\fR\|(1), \fIsdb\fR\|(1)
14484 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
14485 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
14486 .SH "AUTHOR"
14487 .IX Header "AUTHOR"
14488 See the Info entry for \fBgcc\fR, or
14489 <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
14490 for contributors to \s-1GCC\s0.
14491 .SH "COPYRIGHT"
14492 .IX Header "COPYRIGHT"
14493 Copyright (c) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
14494 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
14495 Free Software Foundation, Inc.
14497 Permission is granted to copy, distribute and/or modify this document
14498 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.2 or
14499 any later version published by the Free Software Foundation; with the
14500 Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
14501 Free Software\*(R", the Front-Cover texts being (a) (see below), and with
14502 the Back-Cover Texts being (b) (see below).  A copy of the license is
14503 included in the \fIgfdl\fR\|(7) man page.
14505 (a) The \s-1FSF\s0's Front-Cover Text is:
14507 .Vb 1
14508 \&     A GNU Manual
14511 (b) The \s-1FSF\s0's Back-Cover Text is:
14513 .Vb 3
14514 \&     You have freedom to copy and modify this GNU Manual, like GNU
14515 \&     software.  Copies published by the Free Software Foundation raise
14516 \&     funds for GNU development.
14518 .SH "POD ERRORS"
14519 .IX Header "POD ERRORS"
14520 Hey! \fBThe above document had some coding errors, which are explained below:\fR
14521 .IP "Around line 8200:" 4
14522 .IX Item "Around line 8200:"
14523 You can't have =items (as at line 8213) unless the first thing after the =over is an =item