Import gcc-4.4.1
[dragonfly.git] / contrib / gcc-4.4 / gcc / doc / g++.1
1 .\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.07)
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
12 ..
13 .de Sp \" Vertical space (when we can't use .PP)
14 .if t .sp .5v
15 .if n .sp
16 ..
17 .de Vb \" Begin verbatim text
18 .ft CW
19 .nf
20 .ne \\$1
21 ..
22 .de Ve \" End verbatim text
23 .ft R
24 .fi
25 ..
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"
62 ..
63 .    nr % 0
64 .    rr F
65 .\}
66 .el \{\
67 .    de IX
68 ..
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'
104 .\}
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 \
120 \{\
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
130 .\}
131 .rm #[ #] #H #V #F C
132 .\" ========================================================================
133 .\"
134 .IX Title "GCC 1"
135 .TH GCC 1 "2009-07-22" "gcc-4.4.1" "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
139 .nh
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...
151 .PP
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.
161 .PP
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.
166 .PP
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.
172 .PP
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\-dv\fR is very different from \fB\-d\ \-v\fR.
176 .PP
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.
182 .PP
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,...\fR]]  \fB\-\-target\-help  
199 \&\-\-version \-wrapper@\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++  \-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 \-Wno\-builtin\-macro\-redefined 
258 \&\-Wc++\-compat \-Wc++0x\-compat \-Wcast\-align  \-Wcast\-qual  
259 \&\-Wchar\-subscripts \-Wclobbered  \-Wcomment 
260 \&\-Wconversion  \-Wcoverage\-mismatch  \-Wno\-deprecated  
261 \&\-Wno\-deprecated\-declarations \-Wdisabled\-optimization  
262 \&\-Wno\-div\-by\-zero \-Wempty\-body  \-Wenum\-compare \-Wno\-endif\-labels 
263 \&\-Werror  \-Werror=* 
264 \&\-Wfatal\-errors  \-Wfloat\-equal  \-Wformat  \-Wformat=2 
265 \&\-Wno\-format\-contains\-nul \-Wno\-format\-extra\-args \-Wformat\-nonliteral 
266 \&\-Wformat\-security  \-Wformat\-y2k 
267 \&\-Wframe\-larger\-than=\fR\fIlen\fR \fB\-Wignored\-qualifiers 
268 \&\-Wimplicit  \-Wimplicit\-function\-declaration  \-Wimplicit\-int 
269 \&\-Winit\-self  \-Winline 
270 \&\-Wno\-int\-to\-pointer\-cast \-Wno\-invalid\-offsetof 
271 \&\-Winvalid\-pch \-Wlarger\-than=\fR\fIlen\fR  \fB\-Wunsafe\-loop\-optimizations 
272 \&\-Wlogical\-op \-Wlong\-long 
273 \&\-Wmain  \-Wmissing\-braces  \-Wmissing\-field\-initializers 
274 \&\-Wmissing\-format\-attribute  \-Wmissing\-include\-dirs 
275 \&\-Wmissing\-noreturn  \-Wno\-mudflap 
276 \&\-Wno\-multichar  \-Wnonnull  \-Wno\-overflow 
277 \&\-Woverlength\-strings  \-Wpacked  \-Wpacked\-bitfield\-compat  \-Wpadded 
278 \&\-Wparentheses  \-Wpedantic\-ms\-format \-Wno\-pedantic\-ms\-format 
279 \&\-Wpointer\-arith  \-Wno\-pointer\-to\-int\-cast 
280 \&\-Wredundant\-decls 
281 \&\-Wreturn\-type  \-Wsequence\-point  \-Wshadow 
282 \&\-Wsign\-compare  \-Wsign\-conversion  \-Wstack\-protector 
283 \&\-Wstrict\-aliasing \-Wstrict\-aliasing=n 
284 \&\-Wstrict\-overflow \-Wstrict\-overflow=\fR\fIn\fR 
285 \&\fB\-Wswitch  \-Wswitch\-default  \-Wswitch\-enum \-Wsync\-nand 
286 \&\-Wsystem\-headers  \-Wtrigraphs  \-Wtype\-limits  \-Wundef  \-Wuninitialized 
287 \&\-Wunknown\-pragmas  \-Wno\-pragmas \-Wunreachable\-code 
288 \&\-Wunused  \-Wunused\-function  \-Wunused\-label  \-Wunused\-parameter 
289 \&\-Wunused\-value  \-Wunused\-variable 
290 \&\-Wvariadic\-macros \-Wvla 
291 \&\-Wvolatile\-register\-var  \-Wwrite\-strings\fR
292 .IP "\fIC and Objective-C-only Warning Options\fR" 4
293 .IX Item "C and Objective-C-only Warning Options"
294 \&\fB\-Wbad\-function\-cast  \-Wmissing\-declarations 
295 \&\-Wmissing\-parameter\-type  \-Wmissing\-prototypes  \-Wnested\-externs 
296 \&\-Wold\-style\-declaration  \-Wold\-style\-definition 
297 \&\-Wstrict\-prototypes  \-Wtraditional  \-Wtraditional\-conversion 
298 \&\-Wdeclaration\-after\-statement \-Wpointer\-sign\fR
299 .IP "\fIDebugging Options\fR" 4
300 .IX Item "Debugging Options"
301 \&\fB\-d\fR\fIletters\fR  \fB\-dumpspecs  \-dumpmachine  \-dumpversion 
302 \&\-fdbg\-cnt\-list \-fdbg\-cnt=\fR\fIcounter-value-list\fR 
303 \&\fB\-fdump\-noaddr \-fdump\-unnumbered 
304 \&\-fdump\-translation\-unit\fR[\fB\-\fR\fIn\fR] 
305 \&\fB\-fdump\-class\-hierarchy\fR[\fB\-\fR\fIn\fR] 
306 \&\fB\-fdump\-ipa\-all \-fdump\-ipa\-cgraph \-fdump\-ipa\-inline 
307 \&\-fdump\-statistics 
308 \&\-fdump\-tree\-all 
309 \&\-fdump\-tree\-original\fR[\fB\-\fR\fIn\fR]  
310 \&\fB\-fdump\-tree\-optimized\fR[\fB\-\fR\fIn\fR] 
311 \&\fB\-fdump\-tree\-cfg \-fdump\-tree\-vcg \-fdump\-tree\-alias 
312 \&\-fdump\-tree\-ch 
313 \&\-fdump\-tree\-ssa\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-pre\fR[\fB\-\fR\fIn\fR] 
314 \&\fB\-fdump\-tree\-ccp\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-dce\fR[\fB\-\fR\fIn\fR] 
315 \&\fB\-fdump\-tree\-gimple\fR[\fB\-raw\fR] \fB\-fdump\-tree\-mudflap\fR[\fB\-\fR\fIn\fR] 
316 \&\fB\-fdump\-tree\-dom\fR[\fB\-\fR\fIn\fR] 
317 \&\fB\-fdump\-tree\-dse\fR[\fB\-\fR\fIn\fR] 
318 \&\fB\-fdump\-tree\-phiopt\fR[\fB\-\fR\fIn\fR] 
319 \&\fB\-fdump\-tree\-forwprop\fR[\fB\-\fR\fIn\fR] 
320 \&\fB\-fdump\-tree\-copyrename\fR[\fB\-\fR\fIn\fR] 
321 \&\fB\-fdump\-tree\-nrv \-fdump\-tree\-vect 
322 \&\-fdump\-tree\-sink 
323 \&\-fdump\-tree\-sra\fR[\fB\-\fR\fIn\fR] 
324 \&\fB\-fdump\-tree\-fre\fR[\fB\-\fR\fIn\fR] 
325 \&\fB\-fdump\-tree\-vrp\fR[\fB\-\fR\fIn\fR] 
326 \&\fB\-ftree\-vectorizer\-verbose=\fR\fIn\fR 
327 \&\fB\-fdump\-tree\-storeccp\fR[\fB\-\fR\fIn\fR] 
328 \&\fB\-feliminate\-dwarf2\-dups \-feliminate\-unused\-debug\-types 
329 \&\-feliminate\-unused\-debug\-symbols \-femit\-class\-debug\-always 
330 \&\-fmem\-report \-fpre\-ipa\-mem\-report \-fpost\-ipa\-mem\-report \-fprofile\-arcs 
331 \&\-frandom\-seed=\fR\fIstring\fR \fB\-fsched\-verbose=\fR\fIn\fR 
332 \&\fB\-fsel\-sched\-verbose \-fsel\-sched\-dump\-cfg \-fsel\-sched\-pipelining\-verbose 
333 \&\-ftest\-coverage  \-ftime\-report \-fvar\-tracking 
334 \&\-g  \-g\fR\fIlevel\fR  \fB\-gcoff \-gdwarf\-2 
335 \&\-ggdb  \-gstabs  \-gstabs+  \-gvms  \-gxcoff  \-gxcoff+ 
336 \&\-fno\-merge\-debug\-strings \-fno\-dwarf2\-cfi\-asm 
337 \&\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR 
338 \&\fB\-femit\-struct\-debug\-baseonly \-femit\-struct\-debug\-reduced 
339 \&\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR] 
340 \&\fB\-p  \-pg  \-print\-file\-name=\fR\fIlibrary\fR  \fB\-print\-libgcc\-file\-name 
341 \&\-print\-multi\-directory  \-print\-multi\-lib 
342 \&\-print\-prog\-name=\fR\fIprogram\fR  \fB\-print\-search\-dirs  \-Q 
343 \&\-print\-sysroot \-print\-sysroot\-headers\-suffix 
344 \&\-save\-temps  \-time\fR
345 .IP "\fIOptimization Options\fR" 4
346 .IX Item "Optimization Options"
347 \&\fB\-falign\-functions[=\fR\fIn\fR\fB] \-falign\-jumps[=\fR\fIn\fR\fB] 
348 \&\-falign\-labels[=\fR\fIn\fR\fB] \-falign\-loops[=\fR\fIn\fR\fB] \-fassociative\-math 
349 \&\-fauto\-inc\-dec \-fbranch\-probabilities \-fbranch\-target\-load\-optimize 
350 \&\-fbranch\-target\-load\-optimize2 \-fbtr\-bb\-exclusive \-fcaller\-saves 
351 \&\-fcheck\-data\-deps \-fconserve\-stack \-fcprop\-registers \-fcrossjumping 
352 \&\-fcse\-follow\-jumps \-fcse\-skip\-blocks \-fcx\-fortran\-rules \-fcx\-limited\-range 
353 \&\-fdata\-sections \-fdce \-fdce 
354 \&\-fdelayed\-branch \-fdelete\-null\-pointer\-checks \-fdse \-fdse 
355 \&\-fearly\-inlining \-fexpensive\-optimizations \-ffast\-math 
356 \&\-ffinite\-math\-only \-ffloat\-store \-fforward\-propagate 
357 \&\-ffunction\-sections \-fgcse \-fgcse\-after\-reload \-fgcse\-las \-fgcse\-lm 
358 \&\-fgcse\-sm \-fif\-conversion \-fif\-conversion2 \-findirect\-inlining 
359 \&\-finline\-functions \-finline\-functions\-called\-once \-finline\-limit=\fR\fIn\fR 
360 \&\fB\-finline\-small\-functions \-fipa\-cp \-fipa\-cp\-clone \-fipa\-matrix\-reorg \-fipa\-pta  
361 \&\-fipa\-pure\-const \-fipa\-reference \-fipa\-struct\-reorg 
362 \&\-fipa\-type\-escape \-fira\-algorithm=\fR\fIalgorithm\fR 
363 \&\fB\-fira\-region=\fR\fIregion\fR \fB\-fira\-coalesce \-fno\-ira\-share\-save\-slots 
364 \&\-fno\-ira\-share\-spill\-slots \-fira\-verbose=\fR\fIn\fR 
365 \&\fB\-fivopts \-fkeep\-inline\-functions \-fkeep\-static\-consts 
366 \&\-floop\-block \-floop\-interchange \-floop\-strip\-mine 
367 \&\-fmerge\-all\-constants \-fmerge\-constants \-fmodulo\-sched 
368 \&\-fmodulo\-sched\-allow\-regmoves \-fmove\-loop\-invariants \-fmudflap 
369 \&\-fmudflapir \-fmudflapth \-fno\-branch\-count\-reg \-fno\-default\-inline 
370 \&\-fno\-defer\-pop \-fno\-function\-cse \-fno\-guess\-branch\-probability 
371 \&\-fno\-inline \-fno\-math\-errno \-fno\-peephole \-fno\-peephole2 
372 \&\-fno\-sched\-interblock \-fno\-sched\-spec \-fno\-signed\-zeros 
373 \&\-fno\-toplevel\-reorder \-fno\-trapping\-math \-fno\-zero\-initialized\-in\-bss 
374 \&\-fomit\-frame\-pointer \-foptimize\-register\-move \-foptimize\-sibling\-calls 
375 \&\-fpeel\-loops \-fpredictive\-commoning \-fprefetch\-loop\-arrays 
376 \&\-fprofile\-correction \-fprofile\-dir=\fR\fIpath\fR \fB\-fprofile\-generate 
377 \&\-fprofile\-generate=\fR\fIpath\fR 
378 \&\fB\-fprofile\-use \-fprofile\-use=\fR\fIpath\fR \fB\-fprofile\-values 
379 \&\-freciprocal\-math \-fregmove \-frename\-registers \-freorder\-blocks 
380 \&\-freorder\-blocks\-and\-partition \-freorder\-functions 
381 \&\-frerun\-cse\-after\-loop \-freschedule\-modulo\-scheduled\-loops 
382 \&\-frounding\-math \-frtl\-abstract\-sequences \-fsched2\-use\-superblocks 
383 \&\-fsched2\-use\-traces \-fsched\-spec\-load \-fsched\-spec\-load\-dangerous 
384 \&\-fsched\-stalled\-insns\-dep[=\fR\fIn\fR\fB] \-fsched\-stalled\-insns[=\fR\fIn\fR\fB] 
385 \&\-fschedule\-insns \-fschedule\-insns2 \-fsection\-anchors \-fsee 
386 \&\-fselective\-scheduling \-fselective\-scheduling2 
387 \&\-fsel\-sched\-pipelining \-fsel\-sched\-pipelining\-outer\-loops 
388 \&\-fsignaling\-nans \-fsingle\-precision\-constant \-fsplit\-ivs\-in\-unroller 
389 \&\-fsplit\-wide\-types \-fstack\-protector \-fstack\-protector\-all 
390 \&\-fstrict\-aliasing \-fstrict\-overflow \-fthread\-jumps \-ftracer 
391 \&\-ftree\-builtin\-call\-dce \-ftree\-ccp \-ftree\-ch \-ftree\-copy\-prop 
392 \&\-ftree\-copyrename \-ftree\-dce 
393 \&\-ftree\-dominator\-opts \-ftree\-dse \-ftree\-fre \-ftree\-loop\-im 
394 \&\-ftree\-loop\-distribution 
395 \&\-ftree\-loop\-ivcanon \-ftree\-loop\-linear \-ftree\-loop\-optimize 
396 \&\-ftree\-parallelize\-loops=\fR\fIn\fR \fB\-ftree\-pre \-ftree\-reassoc 
397 \&\-ftree\-sink \-ftree\-sra \-ftree\-switch\-conversion 
398 \&\-ftree\-ter \-ftree\-vect\-loop\-version \-ftree\-vectorize \-ftree\-vrp 
399 \&\-funit\-at\-a\-time \-funroll\-all\-loops \-funroll\-loops 
400 \&\-funsafe\-loop\-optimizations \-funsafe\-math\-optimizations \-funswitch\-loops 
401 \&\-fvariable\-expansion\-in\-unroller \-fvect\-cost\-model \-fvpt \-fweb 
402 \&\-fwhole\-program 
403 \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
404 \&\fB\-O  \-O0  \-O1  \-O2  \-O3  \-Os\fR
405 .IP "\fIPreprocessor Options\fR" 4
406 .IX Item "Preprocessor Options"
407 \&\fB\-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR 
408 \&\fB\-A\-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR] 
409 \&\fB\-C  \-dD  \-dI  \-dM  \-dN 
410 \&\-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]  \fB\-E  \-H 
411 \&\-idirafter\fR \fIdir\fR 
412 \&\fB\-include\fR \fIfile\fR  \fB\-imacros\fR \fIfile\fR 
413 \&\fB\-iprefix\fR \fIfile\fR  \fB\-iwithprefix\fR \fIdir\fR 
414 \&\fB\-iwithprefixbefore\fR \fIdir\fR  \fB\-isystem\fR \fIdir\fR 
415 \&\fB\-imultilib\fR \fIdir\fR \fB\-isysroot\fR \fIdir\fR 
416 \&\fB\-M  \-MM  \-MF  \-MG  \-MP  \-MQ  \-MT  \-nostdinc  
417 \&\-P  \-fworking\-directory  \-remap 
418 \&\-trigraphs  \-undef  \-U\fR\fImacro\fR  \fB\-Wp,\fR\fIoption\fR 
419 \&\fB\-Xpreprocessor\fR \fIoption\fR
420 .IP "\fIAssembler Option\fR" 4
421 .IX Item "Assembler Option"
422 \&\fB\-Wa,\fR\fIoption\fR  \fB\-Xassembler\fR \fIoption\fR
423 .IP "\fILinker Options\fR" 4
424 .IX Item "Linker Options"
425 \&\fIobject-file-name\fR  \fB\-l\fR\fIlibrary\fR 
426 \&\fB\-nostartfiles  \-nodefaultlibs  \-nostdlib \-pie \-rdynamic 
427 \&\-s  \-static  \-static\-libgcc  \-shared  \-shared\-libgcc  \-symbolic 
428 \&\-T\fR \fIscript\fR  \fB\-Wl,\fR\fIoption\fR  \fB\-Xlinker\fR \fIoption\fR 
429 \&\fB\-u\fR \fIsymbol\fR
430 .IP "\fIDirectory Options\fR" 4
431 .IX Item "Directory Options"
432 \&\fB\-B\fR\fIprefix\fR  \fB\-I\fR\fIdir\fR  \fB\-iquote\fR\fIdir\fR  \fB\-L\fR\fIdir\fR
433 \&\fB\-specs=\fR\fIfile\fR  \fB\-I\- \-\-sysroot=\fR\fIdir\fR
434 .IP "\fITarget Options\fR" 4
435 .IX Item "Target Options"
436 \&\fB\-V\fR \fIversion\fR  \fB\-b\fR \fImachine\fR
437 .IP "\fIMachine Dependent Options\fR" 4
438 .IX Item "Machine Dependent Options"
439 \&\fI\s-1ARC\s0 Options\fR
440 \&\fB\-EB  \-EL 
441 \&\-mmangle\-cpu  \-mcpu=\fR\fIcpu\fR  \fB\-mtext=\fR\fItext-section\fR 
442 \&\fB\-mdata=\fR\fIdata-section\fR  \fB\-mrodata=\fR\fIreadonly-data-section\fR
443 .Sp
444 \&\fI\s-1ARM\s0 Options\fR
445 \&\fB\-mapcs\-frame  \-mno\-apcs\-frame 
446 \&\-mabi=\fR\fIname\fR 
447 \&\fB\-mapcs\-stack\-check  \-mno\-apcs\-stack\-check 
448 \&\-mapcs\-float  \-mno\-apcs\-float 
449 \&\-mapcs\-reentrant  \-mno\-apcs\-reentrant 
450 \&\-msched\-prolog  \-mno\-sched\-prolog 
451 \&\-mlittle\-endian  \-mbig\-endian  \-mwords\-little\-endian 
452 \&\-mfloat\-abi=\fR\fIname\fR  \fB\-msoft\-float  \-mhard\-float  \-mfpe 
453 \&\-mthumb\-interwork  \-mno\-thumb\-interwork 
454 \&\-mcpu=\fR\fIname\fR  \fB\-march=\fR\fIname\fR  \fB\-mfpu=\fR\fIname\fR  
455 \&\fB\-mstructure\-size\-boundary=\fR\fIn\fR 
456 \&\fB\-mabort\-on\-noreturn 
457 \&\-mlong\-calls  \-mno\-long\-calls 
458 \&\-msingle\-pic\-base  \-mno\-single\-pic\-base 
459 \&\-mpic\-register=\fR\fIreg\fR 
460 \&\fB\-mnop\-fun\-dllimport 
461 \&\-mcirrus\-fix\-invalid\-insns \-mno\-cirrus\-fix\-invalid\-insns 
462 \&\-mpoke\-function\-name 
463 \&\-mthumb  \-marm 
464 \&\-mtpcs\-frame  \-mtpcs\-leaf\-frame 
465 \&\-mcaller\-super\-interworking  \-mcallee\-super\-interworking 
466 \&\-mtp=\fR\fIname\fR 
467 \&\fB\-mword\-relocations 
468 \&\-mfix\-cortex\-m3\-ldrd\fR
469 .Sp
470 \&\fI\s-1AVR\s0 Options\fR
471 \&\fB\-mmcu=\fR\fImcu\fR  \fB\-msize  \-minit\-stack=\fR\fIn\fR  \fB\-mno\-interrupts 
472 \&\-mcall\-prologues  \-mno\-tablejump  \-mtiny\-stack  \-mint8\fR
473 .Sp
474 \&\fIBlackfin Options\fR
475 \&\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR] 
476 \&\fB\-msim \-momit\-leaf\-frame\-pointer  \-mno\-omit\-leaf\-frame\-pointer 
477 \&\-mspecld\-anomaly  \-mno\-specld\-anomaly  \-mcsync\-anomaly  \-mno\-csync\-anomaly 
478 \&\-mlow\-64k \-mno\-low64k  \-mstack\-check\-l1  \-mid\-shared\-library 
479 \&\-mno\-id\-shared\-library  \-mshared\-library\-id=\fR\fIn\fR 
480 \&\fB\-mleaf\-id\-shared\-library  \-mno\-leaf\-id\-shared\-library 
481 \&\-msep\-data  \-mno\-sep\-data  \-mlong\-calls  \-mno\-long\-calls 
482 \&\-mfast\-fp \-minline\-plt \-mmulticore  \-mcorea  \-mcoreb  \-msdram 
483 \&\-micplb\fR
484 .Sp
485 \&\fI\s-1CRIS\s0 Options\fR
486 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-march=\fR\fIcpu\fR  \fB\-mtune=\fR\fIcpu\fR 
487 \&\fB\-mmax\-stack\-frame=\fR\fIn\fR  \fB\-melinux\-stacksize=\fR\fIn\fR 
488 \&\fB\-metrax4  \-metrax100  \-mpdebug  \-mcc\-init  \-mno\-side\-effects 
489 \&\-mstack\-align  \-mdata\-align  \-mconst\-align 
490 \&\-m32\-bit  \-m16\-bit  \-m8\-bit  \-mno\-prologue\-epilogue  \-mno\-gotplt 
491 \&\-melf  \-maout  \-melinux  \-mlinux  \-sim  \-sim2 
492 \&\-mmul\-bug\-workaround  \-mno\-mul\-bug\-workaround\fR
493 .Sp
494 \&\fI\s-1CRX\s0 Options\fR
495 \&\fB\-mmac \-mpush\-args\fR
496 .Sp
497 \&\fIDarwin Options\fR
498 \&\fB\-all_load  \-allowable_client  \-arch  \-arch_errors_fatal 
499 \&\-arch_only  \-bind_at_load  \-bundle  \-bundle_loader 
500 \&\-client_name  \-compatibility_version  \-current_version 
501 \&\-dead_strip 
502 \&\-dependency\-file  \-dylib_file  \-dylinker_install_name 
503 \&\-dynamic  \-dynamiclib  \-exported_symbols_list 
504 \&\-filelist  \-flat_namespace  \-force_cpusubtype_ALL 
505 \&\-force_flat_namespace  \-headerpad_max_install_names 
506 \&\-iframework 
507 \&\-image_base  \-init  \-install_name  \-keep_private_externs 
508 \&\-multi_module  \-multiply_defined  \-multiply_defined_unused 
509 \&\-noall_load   \-no_dead_strip_inits_and_terms 
510 \&\-nofixprebinding \-nomultidefs  \-noprebind  \-noseglinkedit 
511 \&\-pagezero_size  \-prebind  \-prebind_all_twolevel_modules 
512 \&\-private_bundle  \-read_only_relocs  \-sectalign 
513 \&\-sectobjectsymbols  \-whyload  \-seg1addr 
514 \&\-sectcreate  \-sectobjectsymbols  \-sectorder 
515 \&\-segaddr \-segs_read_only_addr \-segs_read_write_addr 
516 \&\-seg_addr_table  \-seg_addr_table_filename  \-seglinkedit 
517 \&\-segprot  \-segs_read_only_addr  \-segs_read_write_addr 
518 \&\-single_module  \-static  \-sub_library  \-sub_umbrella 
519 \&\-twolevel_namespace  \-umbrella  \-undefined 
520 \&\-unexported_symbols_list  \-weak_reference_mismatches 
521 \&\-whatsloaded \-F \-gused \-gfull \-mmacosx\-version\-min=\fR\fIversion\fR 
522 \&\fB\-mkernel \-mone\-byte\-bool\fR
523 .Sp
524 \&\fI\s-1DEC\s0 Alpha Options\fR
525 \&\fB\-mno\-fp\-regs  \-msoft\-float  \-malpha\-as  \-mgas 
526 \&\-mieee  \-mieee\-with\-inexact  \-mieee\-conformant 
527 \&\-mfp\-trap\-mode=\fR\fImode\fR  \fB\-mfp\-rounding\-mode=\fR\fImode\fR 
528 \&\fB\-mtrap\-precision=\fR\fImode\fR  \fB\-mbuild\-constants 
529 \&\-mcpu=\fR\fIcpu-type\fR  \fB\-mtune=\fR\fIcpu-type\fR 
530 \&\fB\-mbwx  \-mmax  \-mfix  \-mcix 
531 \&\-mfloat\-vax  \-mfloat\-ieee 
532 \&\-mexplicit\-relocs  \-msmall\-data  \-mlarge\-data 
533 \&\-msmall\-text  \-mlarge\-text 
534 \&\-mmemory\-latency=\fR\fItime\fR
535 .Sp
536 \&\fI\s-1DEC\s0 Alpha/VMS Options\fR
537 \&\fB\-mvms\-return\-codes\fR
538 .Sp
539 \&\fI\s-1FR30\s0 Options\fR
540 \&\fB\-msmall\-model \-mno\-lsim\fR
541 .Sp
542 \&\fI\s-1FRV\s0 Options\fR
543 \&\fB\-mgpr\-32  \-mgpr\-64  \-mfpr\-32  \-mfpr\-64 
544 \&\-mhard\-float  \-msoft\-float 
545 \&\-malloc\-cc  \-mfixed\-cc  \-mdword  \-mno\-dword 
546 \&\-mdouble  \-mno\-double 
547 \&\-mmedia  \-mno\-media  \-mmuladd  \-mno\-muladd 
548 \&\-mfdpic  \-minline\-plt \-mgprel\-ro  \-multilib\-library\-pic 
549 \&\-mlinked\-fp  \-mlong\-calls  \-malign\-labels 
550 \&\-mlibrary\-pic  \-macc\-4  \-macc\-8 
551 \&\-mpack  \-mno\-pack  \-mno\-eflags  \-mcond\-move  \-mno\-cond\-move 
552 \&\-moptimize\-membar \-mno\-optimize\-membar 
553 \&\-mscc  \-mno\-scc  \-mcond\-exec  \-mno\-cond\-exec 
554 \&\-mvliw\-branch  \-mno\-vliw\-branch 
555 \&\-mmulti\-cond\-exec  \-mno\-multi\-cond\-exec  \-mnested\-cond\-exec 
556 \&\-mno\-nested\-cond\-exec  \-mtomcat\-stats 
557 \&\-mTLS \-mtls 
558 \&\-mcpu=\fR\fIcpu\fR
559 .Sp
560 \&\fIGNU/Linux Options\fR
561 \&\fB\-muclibc\fR
562 .Sp
563 \&\fIH8/300 Options\fR
564 \&\fB\-mrelax  \-mh  \-ms  \-mn  \-mint32  \-malign\-300\fR
565 .Sp
566 \&\fI\s-1HPPA\s0 Options\fR
567 \&\fB\-march=\fR\fIarchitecture-type\fR 
568 \&\fB\-mbig\-switch  \-mdisable\-fpregs  \-mdisable\-indexing 
569 \&\-mfast\-indirect\-calls  \-mgas  \-mgnu\-ld   \-mhp\-ld 
570 \&\-mfixed\-range=\fR\fIregister-range\fR 
571 \&\fB\-mjump\-in\-delay \-mlinker\-opt \-mlong\-calls 
572 \&\-mlong\-load\-store  \-mno\-big\-switch  \-mno\-disable\-fpregs 
573 \&\-mno\-disable\-indexing  \-mno\-fast\-indirect\-calls  \-mno\-gas 
574 \&\-mno\-jump\-in\-delay  \-mno\-long\-load\-store 
575 \&\-mno\-portable\-runtime  \-mno\-soft\-float 
576 \&\-mno\-space\-regs  \-msoft\-float  \-mpa\-risc\-1\-0 
577 \&\-mpa\-risc\-1\-1  \-mpa\-risc\-2\-0  \-mportable\-runtime 
578 \&\-mschedule=\fR\fIcpu-type\fR  \fB\-mspace\-regs  \-msio  \-mwsio 
579 \&\-munix=\fR\fIunix-std\fR  \fB\-nolibdld  \-static  \-threads\fR
580 .Sp
581 \&\fIi386 and x86\-64 Options\fR
582 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
583 \&\fB\-mfpmath=\fR\fIunit\fR 
584 \&\fB\-masm=\fR\fIdialect\fR  \fB\-mno\-fancy\-math\-387 
585 \&\-mno\-fp\-ret\-in\-387  \-msoft\-float 
586 \&\-mno\-wide\-multiply  \-mrtd  \-malign\-double 
587 \&\-mpreferred\-stack\-boundary=\fR\fInum\fR
588 \&\fB\-mincoming\-stack\-boundary=\fR\fInum\fR
589 \&\fB\-mcld \-mcx16 \-msahf \-mrecip 
590 \&\-mmmx  \-msse  \-msse2 \-msse3 \-mssse3 \-msse4.1 \-msse4.2 \-msse4 \-mavx 
591 \&\-maes \-mpclmul 
592 \&\-msse4a \-m3dnow \-mpopcnt \-mabm \-msse5 
593 \&\-mthreads  \-mno\-align\-stringops  \-minline\-all\-stringops 
594 \&\-minline\-stringops\-dynamically \-mstringop\-strategy=\fR\fIalg\fR 
595 \&\fB\-mpush\-args  \-maccumulate\-outgoing\-args  \-m128bit\-long\-double 
596 \&\-m96bit\-long\-double  \-mregparm=\fR\fInum\fR  \fB\-msseregparm 
597 \&\-mveclibabi=\fR\fItype\fR \fB\-mpc32 \-mpc64 \-mpc80 \-mstackrealign 
598 \&\-momit\-leaf\-frame\-pointer  \-mno\-red\-zone \-mno\-tls\-direct\-seg\-refs 
599 \&\-mcmodel=\fR\fIcode-model\fR 
600 \&\fB\-m32  \-m64 \-mlarge\-data\-threshold=\fR\fInum\fR 
601 \&\fB\-mfused\-madd \-mno\-fused\-madd \-msse2avx\fR
602 .Sp
603 \&\fI\s-1IA\-64\s0 Options\fR
604 \&\fB\-mbig\-endian  \-mlittle\-endian  \-mgnu\-as  \-mgnu\-ld  \-mno\-pic 
605 \&\-mvolatile\-asm\-stop  \-mregister\-names  \-mno\-sdata 
606 \&\-mconstant\-gp  \-mauto\-pic  \-minline\-float\-divide\-min\-latency 
607 \&\-minline\-float\-divide\-max\-throughput 
608 \&\-minline\-int\-divide\-min\-latency 
609 \&\-minline\-int\-divide\-max\-throughput  
610 \&\-minline\-sqrt\-min\-latency \-minline\-sqrt\-max\-throughput 
611 \&\-mno\-dwarf2\-asm \-mearly\-stop\-bits 
612 \&\-mfixed\-range=\fR\fIregister-range\fR \fB\-mtls\-size=\fR\fItls-size\fR 
613 \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-mt \-pthread \-milp32 \-mlp64 
614 \&\-mno\-sched\-br\-data\-spec \-msched\-ar\-data\-spec \-mno\-sched\-control\-spec 
615 \&\-msched\-br\-in\-data\-spec \-msched\-ar\-in\-data\-spec \-msched\-in\-control\-spec 
616 \&\-msched\-ldc \-mno\-sched\-control\-ldc \-mno\-sched\-spec\-verbose 
617 \&\-mno\-sched\-prefer\-non\-data\-spec\-insns 
618 \&\-mno\-sched\-prefer\-non\-control\-spec\-insns 
619 \&\-mno\-sched\-count\-spec\-in\-critical\-path\fR
620 .Sp
621 \&\fIM32R/D Options\fR
622 \&\fB\-m32r2 \-m32rx \-m32r 
623 \&\-mdebug 
624 \&\-malign\-loops \-mno\-align\-loops 
625 \&\-missue\-rate=\fR\fInumber\fR 
626 \&\fB\-mbranch\-cost=\fR\fInumber\fR 
627 \&\fB\-mmodel=\fR\fIcode-size-model-type\fR 
628 \&\fB\-msdata=\fR\fIsdata-type\fR 
629 \&\fB\-mno\-flush\-func \-mflush\-func=\fR\fIname\fR 
630 \&\fB\-mno\-flush\-trap \-mflush\-trap=\fR\fInumber\fR 
631 \&\fB\-G\fR \fInum\fR
632 .Sp
633 \&\fIM32C Options\fR
634 \&\fB\-mcpu=\fR\fIcpu\fR \fB\-msim \-memregs=\fR\fInumber\fR
635 .Sp
636 \&\fIM680x0 Options\fR
637 \&\fB\-march=\fR\fIarch\fR  \fB\-mcpu=\fR\fIcpu\fR  \fB\-mtune=\fR\fItune\fR
638 \&\fB\-m68000  \-m68020  \-m68020\-40  \-m68020\-60  \-m68030  \-m68040 
639 \&\-m68060  \-mcpu32  \-m5200  \-m5206e  \-m528x  \-m5307  \-m5407 
640 \&\-mcfv4e  \-mbitfield  \-mno\-bitfield  \-mc68000  \-mc68020 
641 \&\-mnobitfield  \-mrtd  \-mno\-rtd  \-mdiv  \-mno\-div  \-mshort 
642 \&\-mno\-short  \-mhard\-float  \-m68881  \-msoft\-float  \-mpcrel 
643 \&\-malign\-int  \-mstrict\-align  \-msep\-data  \-mno\-sep\-data 
644 \&\-mshared\-library\-id=n  \-mid\-shared\-library  \-mno\-id\-shared\-library 
645 \&\-mxgot \-mno\-xgot\fR
646 .Sp
647 \&\fIM68hc1x Options\fR
648 \&\fB\-m6811  \-m6812  \-m68hc11  \-m68hc12   \-m68hcs12 
649 \&\-mauto\-incdec  \-minmax  \-mlong\-calls  \-mshort 
650 \&\-msoft\-reg\-count=\fR\fIcount\fR
651 .Sp
652 \&\fIMCore Options\fR
653 \&\fB\-mhardlit  \-mno\-hardlit  \-mdiv  \-mno\-div  \-mrelax\-immediates 
654 \&\-mno\-relax\-immediates  \-mwide\-bitfields  \-mno\-wide\-bitfields 
655 \&\-m4byte\-functions  \-mno\-4byte\-functions  \-mcallgraph\-data 
656 \&\-mno\-callgraph\-data  \-mslow\-bytes  \-mno\-slow\-bytes  \-mno\-lsim 
657 \&\-mlittle\-endian  \-mbig\-endian  \-m210  \-m340  \-mstack\-increment\fR
658 .Sp
659 \&\fI\s-1MIPS\s0 Options\fR
660 \&\fB\-EL  \-EB  \-march=\fR\fIarch\fR  \fB\-mtune=\fR\fIarch\fR 
661 \&\fB\-mips1  \-mips2  \-mips3  \-mips4  \-mips32  \-mips32r2 
662 \&\-mips64  \-mips64r2 
663 \&\-mips16  \-mno\-mips16  \-mflip\-mips16 
664 \&\-minterlink\-mips16  \-mno\-interlink\-mips16 
665 \&\-mabi=\fR\fIabi\fR  \fB\-mabicalls  \-mno\-abicalls 
666 \&\-mshared  \-mno\-shared  \-mplt  \-mno\-plt  \-mxgot  \-mno\-xgot 
667 \&\-mgp32  \-mgp64  \-mfp32  \-mfp64  \-mhard\-float  \-msoft\-float 
668 \&\-msingle\-float  \-mdouble\-float  \-mdsp  \-mno\-dsp  \-mdspr2  \-mno\-dspr2 
669 \&\-mfpu=\fR\fIfpu-type\fR 
670 \&\fB\-msmartmips  \-mno\-smartmips 
671 \&\-mpaired\-single  \-mno\-paired\-single  \-mdmx  \-mno\-mdmx 
672 \&\-mips3d  \-mno\-mips3d  \-mmt  \-mno\-mt  \-mllsc  \-mno\-llsc 
673 \&\-mlong64  \-mlong32  \-msym32  \-mno\-sym32 
674 \&\-G\fR\fInum\fR  \fB\-mlocal\-sdata  \-mno\-local\-sdata 
675 \&\-mextern\-sdata  \-mno\-extern\-sdata  \-mgpopt  \-mno\-gopt 
676 \&\-membedded\-data  \-mno\-embedded\-data 
677 \&\-muninit\-const\-in\-rodata  \-mno\-uninit\-const\-in\-rodata 
678 \&\-mcode\-readable=\fR\fIsetting\fR 
679 \&\fB\-msplit\-addresses  \-mno\-split\-addresses 
680 \&\-mexplicit\-relocs  \-mno\-explicit\-relocs 
681 \&\-mcheck\-zero\-division  \-mno\-check\-zero\-division 
682 \&\-mdivide\-traps  \-mdivide\-breaks 
683 \&\-mmemcpy  \-mno\-memcpy  \-mlong\-calls  \-mno\-long\-calls 
684 \&\-mmad  \-mno\-mad  \-mfused\-madd  \-mno\-fused\-madd  \-nocpp 
685 \&\-mfix\-r4000  \-mno\-fix\-r4000  \-mfix\-r4400  \-mno\-fix\-r4400 
686 \&\-mfix\-r10000 \-mno\-fix\-r10000  \-mfix\-vr4120  \-mno\-fix\-vr4120 
687 \&\-mfix\-vr4130  \-mno\-fix\-vr4130  \-mfix\-sb1  \-mno\-fix\-sb1 
688 \&\-mflush\-func=\fR\fIfunc\fR  \fB\-mno\-flush\-func 
689 \&\-mbranch\-cost=\fR\fInum\fR  \fB\-mbranch\-likely  \-mno\-branch\-likely 
690 \&\-mfp\-exceptions \-mno\-fp\-exceptions 
691 \&\-mvr4130\-align \-mno\-vr4130\-align\fR
692 .Sp
693 \&\fI\s-1MMIX\s0 Options\fR
694 \&\fB\-mlibfuncs  \-mno\-libfuncs  \-mepsilon  \-mno\-epsilon  \-mabi=gnu 
695 \&\-mabi=mmixware  \-mzero\-extend  \-mknuthdiv  \-mtoplevel\-symbols 
696 \&\-melf  \-mbranch\-predict  \-mno\-branch\-predict  \-mbase\-addresses 
697 \&\-mno\-base\-addresses  \-msingle\-exit  \-mno\-single\-exit\fR
698 .Sp
699 \&\fI\s-1MN10300\s0 Options\fR
700 \&\fB\-mmult\-bug  \-mno\-mult\-bug 
701 \&\-mam33  \-mno\-am33 
702 \&\-mam33\-2  \-mno\-am33\-2 
703 \&\-mreturn\-pointer\-on\-d0 
704 \&\-mno\-crt0  \-mrelax\fR
705 .Sp
706 \&\fI\s-1PDP\-11\s0 Options\fR
707 \&\fB\-mfpu  \-msoft\-float  \-mac0  \-mno\-ac0  \-m40  \-m45  \-m10 
708 \&\-mbcopy  \-mbcopy\-builtin  \-mint32  \-mno\-int16 
709 \&\-mint16  \-mno\-int32  \-mfloat32  \-mno\-float64 
710 \&\-mfloat64  \-mno\-float32  \-mabshi  \-mno\-abshi 
711 \&\-mbranch\-expensive  \-mbranch\-cheap 
712 \&\-msplit  \-mno\-split  \-munix\-asm  \-mdec\-asm\fR
713 .Sp
714 \&\fIpicoChip Options\fR
715 \&\fB\-mae=\fR\fIae_type\fR \fB\-mvliw\-lookahead=\fR\fIN\fR
716 \&\fB\-msymbol\-as\-address \-mno\-inefficient\-warnings\fR
717 .Sp
718 \&\fIPowerPC Options\fR
719 See \s-1RS/6000\s0 and PowerPC Options.
720 .Sp
721 \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
722 \&\fB\-mcpu=\fR\fIcpu-type\fR 
723 \&\fB\-mtune=\fR\fIcpu-type\fR 
724 \&\fB\-mpower  \-mno\-power  \-mpower2  \-mno\-power2 
725 \&\-mpowerpc  \-mpowerpc64  \-mno\-powerpc 
726 \&\-maltivec  \-mno\-altivec 
727 \&\-mpowerpc\-gpopt  \-mno\-powerpc\-gpopt 
728 \&\-mpowerpc\-gfxopt  \-mno\-powerpc\-gfxopt 
729 \&\-mmfcrf  \-mno\-mfcrf  \-mpopcntb  \-mno\-popcntb  \-mfprnd  \-mno\-fprnd 
730 \&\-mcmpb \-mno\-cmpb \-mmfpgpr \-mno\-mfpgpr \-mhard\-dfp \-mno\-hard\-dfp 
731 \&\-mnew\-mnemonics  \-mold\-mnemonics 
732 \&\-mfull\-toc   \-mminimal\-toc  \-mno\-fp\-in\-toc  \-mno\-sum\-in\-toc 
733 \&\-m64  \-m32  \-mxl\-compat  \-mno\-xl\-compat  \-mpe 
734 \&\-malign\-power  \-malign\-natural 
735 \&\-msoft\-float  \-mhard\-float  \-mmultiple  \-mno\-multiple 
736 \&\-msingle\-float \-mdouble\-float \-msimple\-fpu 
737 \&\-mstring  \-mno\-string  \-mupdate  \-mno\-update 
738 \&\-mavoid\-indexed\-addresses  \-mno\-avoid\-indexed\-addresses 
739 \&\-mfused\-madd  \-mno\-fused\-madd  \-mbit\-align  \-mno\-bit\-align 
740 \&\-mstrict\-align  \-mno\-strict\-align  \-mrelocatable 
741 \&\-mno\-relocatable  \-mrelocatable\-lib  \-mno\-relocatable\-lib 
742 \&\-mtoc  \-mno\-toc  \-mlittle  \-mlittle\-endian  \-mbig  \-mbig\-endian 
743 \&\-mdynamic\-no\-pic  \-maltivec  \-mswdiv 
744 \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR 
745 \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR 
746 \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR 
747 \&\fB\-mcall\-sysv  \-mcall\-netbsd 
748 \&\-maix\-struct\-return  \-msvr4\-struct\-return 
749 \&\-mabi=\fR\fIabi-type\fR \fB\-msecure\-plt \-mbss\-plt 
750 \&\-misel \-mno\-isel 
751 \&\-misel=yes  \-misel=no 
752 \&\-mspe \-mno\-spe 
753 \&\-mspe=yes  \-mspe=no 
754 \&\-mpaired 
755 \&\-mgen\-cell\-microcode \-mwarn\-cell\-microcode 
756 \&\-mvrsave \-mno\-vrsave 
757 \&\-mmulhw \-mno\-mulhw 
758 \&\-mdlmzb \-mno\-dlmzb 
759 \&\-mfloat\-gprs=yes  \-mfloat\-gprs=no \-mfloat\-gprs=single \-mfloat\-gprs=double 
760 \&\-mprototype  \-mno\-prototype 
761 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb  \-msdata 
762 \&\-msdata=\fR\fIopt\fR  \fB\-mvxworks  \-G\fR \fInum\fR  \fB\-pthread\fR
763 .Sp
764 \&\fIS/390 and zSeries Options\fR
765 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
766 \&\fB\-mhard\-float  \-msoft\-float  \-mhard\-dfp \-mno\-hard\-dfp 
767 \&\-mlong\-double\-64 \-mlong\-double\-128 
768 \&\-mbackchain  \-mno\-backchain \-mpacked\-stack  \-mno\-packed\-stack 
769 \&\-msmall\-exec  \-mno\-small\-exec  \-mmvcle \-mno\-mvcle 
770 \&\-m64  \-m31  \-mdebug  \-mno\-debug  \-mesa  \-mzarch 
771 \&\-mtpf\-trace \-mno\-tpf\-trace  \-mfused\-madd  \-mno\-fused\-madd 
772 \&\-mwarn\-framesize  \-mwarn\-dynamicstack  \-mstack\-size \-mstack\-guard\fR
773 .Sp
774 \&\fIScore Options\fR
775 \&\fB\-meb \-mel 
776 \&\-mnhwloop 
777 \&\-muls 
778 \&\-mmac 
779 \&\-mscore5 \-mscore5u \-mscore7 \-mscore7d\fR
780 .Sp
781 \&\fI\s-1SH\s0 Options\fR
782 \&\fB\-m1  \-m2  \-m2e  \-m3  \-m3e 
783 \&\-m4\-nofpu  \-m4\-single\-only  \-m4\-single  \-m4 
784 \&\-m4a\-nofpu \-m4a\-single\-only \-m4a\-single \-m4a \-m4al 
785 \&\-m5\-64media  \-m5\-64media\-nofpu 
786 \&\-m5\-32media  \-m5\-32media\-nofpu 
787 \&\-m5\-compact  \-m5\-compact\-nofpu 
788 \&\-mb  \-ml  \-mdalign  \-mrelax 
789 \&\-mbigtable  \-mfmovd  \-mhitachi \-mrenesas \-mno\-renesas \-mnomacsave 
790 \&\-mieee  \-mbitops  \-misize  \-minline\-ic_invalidate \-mpadstruct  \-mspace 
791 \&\-mprefergot  \-musermode \-multcost=\fR\fInumber\fR \fB\-mdiv=\fR\fIstrategy\fR 
792 \&\fB\-mdivsi3_libfunc=\fR\fIname\fR \fB\-mfixed\-range=\fR\fIregister-range\fR 
793 \&\fB\-madjust\-unroll \-mindexed\-addressing \-mgettrcost=\fR\fInumber\fR \fB\-mpt\-fixed 
794 \&\-minvalid\-symbols\fR
795 .Sp
796 \&\fI\s-1SPARC\s0 Options\fR
797 \&\fB\-mcpu=\fR\fIcpu-type\fR 
798 \&\fB\-mtune=\fR\fIcpu-type\fR 
799 \&\fB\-mcmodel=\fR\fIcode-model\fR 
800 \&\fB\-m32  \-m64  \-mapp\-regs  \-mno\-app\-regs 
801 \&\-mfaster\-structs  \-mno\-faster\-structs 
802 \&\-mfpu  \-mno\-fpu  \-mhard\-float  \-msoft\-float 
803 \&\-mhard\-quad\-float  \-msoft\-quad\-float 
804 \&\-mimpure\-text  \-mno\-impure\-text  \-mlittle\-endian 
805 \&\-mstack\-bias  \-mno\-stack\-bias 
806 \&\-munaligned\-doubles  \-mno\-unaligned\-doubles 
807 \&\-mv8plus  \-mno\-v8plus  \-mvis  \-mno\-vis
808 \&\-threads \-pthreads \-pthread\fR
809 .Sp
810 \&\fI\s-1SPU\s0 Options\fR
811 \&\fB\-mwarn\-reloc \-merror\-reloc 
812 \&\-msafe\-dma \-munsafe\-dma 
813 \&\-mbranch\-hints 
814 \&\-msmall\-mem \-mlarge\-mem \-mstdmain 
815 \&\-mfixed\-range=\fR\fIregister-range\fR
816 .Sp
817 \&\fISystem V Options\fR
818 \&\fB\-Qy  \-Qn  \-YP,\fR\fIpaths\fR  \fB\-Ym,\fR\fIdir\fR
819 .Sp
820 \&\fIV850 Options\fR
821 \&\fB\-mlong\-calls  \-mno\-long\-calls  \-mep  \-mno\-ep 
822 \&\-mprolog\-function  \-mno\-prolog\-function  \-mspace 
823 \&\-mtda=\fR\fIn\fR  \fB\-msda=\fR\fIn\fR  \fB\-mzda=\fR\fIn\fR 
824 \&\fB\-mapp\-regs  \-mno\-app\-regs 
825 \&\-mdisable\-callt  \-mno\-disable\-callt 
826 \&\-mv850e1 
827 \&\-mv850e 
828 \&\-mv850  \-mbig\-switch\fR
829 .Sp
830 \&\fI\s-1VAX\s0 Options\fR
831 \&\fB\-mg  \-mgnu  \-munix\fR
832 .Sp
833 \&\fIVxWorks Options\fR
834 \&\fB\-mrtp  \-non\-static  \-Bstatic  \-Bdynamic 
835 \&\-Xbind\-lazy  \-Xbind\-now\fR
836 .Sp
837 \&\fIx86\-64 Options\fR
838 See i386 and x86\-64 Options.
839 .Sp
840 \&\fIi386 and x86\-64 Windows Options\fR
841 \&\fB\-mconsole \-mcygwin \-mno\-cygwin \-mdll
842 \&\-mnop\-fun\-dllimport \-mthread \-mwin32 \-mwindows\fR
843 .Sp
844 \&\fIXstormy16 Options\fR
845 \&\fB\-msim\fR
846 .Sp
847 \&\fIXtensa Options\fR
848 \&\fB\-mconst16 \-mno\-const16 
849 \&\-mfused\-madd  \-mno\-fused\-madd 
850 \&\-mserialize\-volatile  \-mno\-serialize\-volatile 
851 \&\-mtext\-section\-literals  \-mno\-text\-section\-literals 
852 \&\-mtarget\-align  \-mno\-target\-align 
853 \&\-mlongcalls  \-mno\-longcalls\fR
854 .Sp
855 \&\fIzSeries Options\fR
856 See S/390 and zSeries Options.
857 .IP "\fICode Generation Options\fR" 4
858 .IX Item "Code Generation Options"
859 \&\fB\-fcall\-saved\-\fR\fIreg\fR  \fB\-fcall\-used\-\fR\fIreg\fR 
860 \&\fB\-ffixed\-\fR\fIreg\fR  \fB\-fexceptions 
861 \&\-fnon\-call\-exceptions  \-funwind\-tables 
862 \&\-fasynchronous\-unwind\-tables 
863 \&\-finhibit\-size\-directive  \-finstrument\-functions 
864 \&\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,... 
865 \&\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,... 
866 \&\-fno\-common  \-fno\-ident 
867 \&\-fpcc\-struct\-return  \-fpic  \-fPIC \-fpie \-fPIE 
868 \&\-fno\-jump\-tables 
869 \&\-frecord\-gcc\-switches 
870 \&\-freg\-struct\-return  \-fshort\-enums 
871 \&\-fshort\-double  \-fshort\-wchar 
872 \&\-fverbose\-asm  \-fpack\-struct[=\fR\fIn\fR\fB]  \-fstack\-check 
873 \&\-fstack\-limit\-register=\fR\fIreg\fR  \fB\-fstack\-limit\-symbol=\fR\fIsym\fR 
874 \&\fB\-fno\-stack\-limit  \-fargument\-alias  \-fargument\-noalias 
875 \&\-fargument\-noalias\-global  \-fargument\-noalias\-anything 
876 \&\-fleading\-underscore  \-ftls\-model=\fR\fImodel\fR 
877 \&\fB\-ftrapv  \-fwrapv  \-fbounds\-check 
878 \&\-fvisibility\fR
879 .Sh "Options Controlling the Kind of Output"
880 .IX Subsection "Options Controlling the Kind of Output"
881 Compilation can involve up to four stages: preprocessing, compilation
882 proper, assembly and linking, always in that order.  \s-1GCC\s0 is capable of
883 preprocessing and compiling several files either into several
884 assembler input files, or into one assembler input file; then each
885 assembler input file produces an object file, and linking combines all
886 the object files (those newly compiled, and those specified as input)
887 into an executable file.
888 .PP
889 For any given input file, the file name suffix determines what kind of
890 compilation is done:
891 .IP "\fIfile\fR\fB.c\fR" 4
892 .IX Item "file.c"
893 C source code which must be preprocessed.
894 .IP "\fIfile\fR\fB.i\fR" 4
895 .IX Item "file.i"
896 C source code which should not be preprocessed.
897 .IP "\fIfile\fR\fB.ii\fR" 4
898 .IX Item "file.ii"
899 \&\*(C+ source code which should not be preprocessed.
900 .IP "\fIfile\fR\fB.m\fR" 4
901 .IX Item "file.m"
902 Objective-C source code.  Note that you must link with the \fIlibobjc\fR
903 library to make an Objective-C program work.
904 .IP "\fIfile\fR\fB.mi\fR" 4
905 .IX Item "file.mi"
906 Objective-C source code which should not be preprocessed.
907 .IP "\fIfile\fR\fB.mm\fR" 4
908 .IX Item "file.mm"
909 .PD 0
910 .IP "\fIfile\fR\fB.M\fR" 4
911 .IX Item "file.M"
912 .PD
913 Objective\-\*(C+ source code.  Note that you must link with the \fIlibobjc\fR
914 library to make an Objective\-\*(C+ program work.  Note that \fB.M\fR refers
915 to a literal capital M.
916 .IP "\fIfile\fR\fB.mii\fR" 4
917 .IX Item "file.mii"
918 Objective\-\*(C+ source code which should not be preprocessed.
919 .IP "\fIfile\fR\fB.h\fR" 4
920 .IX Item "file.h"
921 C, \*(C+, Objective-C or Objective\-\*(C+ header file to be turned into a
922 precompiled header.
923 .IP "\fIfile\fR\fB.cc\fR" 4
924 .IX Item "file.cc"
925 .PD 0
926 .IP "\fIfile\fR\fB.cp\fR" 4
927 .IX Item "file.cp"
928 .IP "\fIfile\fR\fB.cxx\fR" 4
929 .IX Item "file.cxx"
930 .IP "\fIfile\fR\fB.cpp\fR" 4
931 .IX Item "file.cpp"
932 .IP "\fIfile\fR\fB.CPP\fR" 4
933 .IX Item "file.CPP"
934 .IP "\fIfile\fR\fB.c++\fR" 4
935 .IX Item "file.c++"
936 .IP "\fIfile\fR\fB.C\fR" 4
937 .IX Item "file.C"
938 .PD
939 \&\*(C+ source code which must be preprocessed.  Note that in \fB.cxx\fR,
940 the last two letters must both be literally \fBx\fR.  Likewise,
941 \&\fB.C\fR refers to a literal capital C.
942 .IP "\fIfile\fR\fB.mm\fR" 4
943 .IX Item "file.mm"
944 .PD 0
945 .IP "\fIfile\fR\fB.M\fR" 4
946 .IX Item "file.M"
947 .PD
948 Objective\-\*(C+ source code which must be preprocessed.
949 .IP "\fIfile\fR\fB.mii\fR" 4
950 .IX Item "file.mii"
951 Objective\-\*(C+ source code which should not be preprocessed.
952 .IP "\fIfile\fR\fB.hh\fR" 4
953 .IX Item "file.hh"
954 .PD 0
955 .IP "\fIfile\fR\fB.H\fR" 4
956 .IX Item "file.H"
957 .IP "\fIfile\fR\fB.hp\fR" 4
958 .IX Item "file.hp"
959 .IP "\fIfile\fR\fB.hxx\fR" 4
960 .IX Item "file.hxx"
961 .IP "\fIfile\fR\fB.hpp\fR" 4
962 .IX Item "file.hpp"
963 .IP "\fIfile\fR\fB.HPP\fR" 4
964 .IX Item "file.HPP"
965 .IP "\fIfile\fR\fB.h++\fR" 4
966 .IX Item "file.h++"
967 .IP "\fIfile\fR\fB.tcc\fR" 4
968 .IX Item "file.tcc"
969 .PD
970 \&\*(C+ header file to be turned into a precompiled header.
971 .IP "\fIfile\fR\fB.f\fR" 4
972 .IX Item "file.f"
973 .PD 0
974 .IP "\fIfile\fR\fB.for\fR" 4
975 .IX Item "file.for"
976 .IP "\fIfile\fR\fB.ftn\fR" 4
977 .IX Item "file.ftn"
978 .PD
979 Fixed form Fortran source code which should not be preprocessed.
980 .IP "\fIfile\fR\fB.F\fR" 4
981 .IX Item "file.F"
982 .PD 0
983 .IP "\fIfile\fR\fB.FOR\fR" 4
984 .IX Item "file.FOR"
985 .IP "\fIfile\fR\fB.fpp\fR" 4
986 .IX Item "file.fpp"
987 .IP "\fIfile\fR\fB.FPP\fR" 4
988 .IX Item "file.FPP"
989 .IP "\fIfile\fR\fB.FTN\fR" 4
990 .IX Item "file.FTN"
991 .PD
992 Fixed form Fortran source code which must be preprocessed (with the traditional
993 preprocessor).
994 .IP "\fIfile\fR\fB.f90\fR" 4
995 .IX Item "file.f90"
996 .PD 0
997 .IP "\fIfile\fR\fB.f95\fR" 4
998 .IX Item "file.f95"
999 .IP "\fIfile\fR\fB.f03\fR" 4
1000 .IX Item "file.f03"
1001 .IP "\fIfile\fR\fB.f08\fR" 4
1002 .IX Item "file.f08"
1003 .PD
1004 Free form Fortran source code which should not be preprocessed.
1005 .IP "\fIfile\fR\fB.F90\fR" 4
1006 .IX Item "file.F90"
1007 .PD 0
1008 .IP "\fIfile\fR\fB.F95\fR" 4
1009 .IX Item "file.F95"
1010 .IP "\fIfile\fR\fB.F03\fR" 4
1011 .IX Item "file.F03"
1012 .IP "\fIfile\fR\fB.F08\fR" 4
1013 .IX Item "file.F08"
1014 .PD
1015 Free form Fortran source code which must be preprocessed (with the
1016 traditional preprocessor).
1017 .IP "\fIfile\fR\fB.ads\fR" 4
1018 .IX Item "file.ads"
1019 Ada source code file which contains a library unit declaration (a
1020 declaration of a package, subprogram, or generic, or a generic
1021 instantiation), or a library unit renaming declaration (a package,
1022 generic, or subprogram renaming declaration).  Such files are also
1023 called \fIspecs\fR.
1024 .IP "\fIfile\fR\fB.adb\fR" 4
1025 .IX Item "file.adb"
1026 Ada source code file containing a library unit body (a subprogram or
1027 package body).  Such files are also called \fIbodies\fR.
1028 .IP "\fIfile\fR\fB.s\fR" 4
1029 .IX Item "file.s"
1030 Assembler code.
1031 .IP "\fIfile\fR\fB.S\fR" 4
1032 .IX Item "file.S"
1033 .PD 0
1034 .IP "\fIfile\fR\fB.sx\fR" 4
1035 .IX Item "file.sx"
1036 .PD
1037 Assembler code which must be preprocessed.
1038 .IP "\fIother\fR" 4
1039 .IX Item "other"
1040 An object file to be fed straight into linking.
1041 Any file name with no recognized suffix is treated this way.
1042 .PP
1043 You can specify the input language explicitly with the \fB\-x\fR option:
1044 .IP "\fB\-x\fR \fIlanguage\fR" 4
1045 .IX Item "-x language"
1046 Specify explicitly the \fIlanguage\fR for the following input files
1047 (rather than letting the compiler choose a default based on the file
1048 name suffix).  This option applies to all following input files until
1049 the next \fB\-x\fR option.  Possible values for \fIlanguage\fR are:
1050 .Sp
1051 .Vb 8
1052 \&        c  c\-header  c\-cpp\-output
1053 \&        c++  c++\-header  c++\-cpp\-output
1054 \&        objective\-c  objective\-c\-header  objective\-c\-cpp\-output
1055 \&        objective\-c++ objective\-c++\-header objective\-c++\-cpp\-output
1056 \&        assembler  assembler\-with\-cpp
1057 \&        ada
1058 \&        f77  f77\-cpp\-input f95  f95\-cpp\-input
1059 \&        java
1060 .Ve
1061 .IP "\fB\-x none\fR" 4
1062 .IX Item "-x none"
1063 Turn off any specification of a language, so that subsequent files are
1064 handled according to their file name suffixes (as they are if \fB\-x\fR
1065 has not been used at all).
1066 .IP "\fB\-pass\-exit\-codes\fR" 4
1067 .IX Item "-pass-exit-codes"
1068 Normally the \fBgcc\fR program will exit with the code of 1 if any
1069 phase of the compiler returns a non-success return code.  If you specify
1070 \&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program will instead return with
1071 numerically highest error produced by any phase that returned an error
1072 indication.  The C, \*(C+, and Fortran frontends return 4, if an internal
1073 compiler error is encountered.
1074 .PP
1075 If you only want some of the stages of compilation, you can use
1076 \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
1077 one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
1078 \&\fBgcc\fR is to stop.  Note that some combinations (for example,
1079 \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
1080 .IP "\fB\-c\fR" 4
1081 .IX Item "-c"
1082 Compile or assemble the source files, but do not link.  The linking
1083 stage simply is not done.  The ultimate output is in the form of an
1084 object file for each source file.
1085 .Sp
1086 By default, the object file name for a source file is made by replacing
1087 the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
1088 .Sp
1089 Unrecognized input files, not requiring compilation or assembly, are
1090 ignored.
1091 .IP "\fB\-S\fR" 4
1092 .IX Item "-S"
1093 Stop after the stage of compilation proper; do not assemble.  The output
1094 is in the form of an assembler code file for each non-assembler input
1095 file specified.
1096 .Sp
1097 By default, the assembler file name for a source file is made by
1098 replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
1099 .Sp
1100 Input files that don't require compilation are ignored.
1101 .IP "\fB\-E\fR" 4
1102 .IX Item "-E"
1103 Stop after the preprocessing stage; do not run the compiler proper.  The
1104 output is in the form of preprocessed source code, which is sent to the
1105 standard output.
1106 .Sp
1107 Input files which don't require preprocessing are ignored.
1108 .IP "\fB\-o\fR \fIfile\fR" 4
1109 .IX Item "-o file"
1110 Place output in file \fIfile\fR.  This applies regardless to whatever
1111 sort of output is being produced, whether it be an executable file,
1112 an object file, an assembler file or preprocessed C code.
1113 .Sp
1114 If \fB\-o\fR is not specified, the default is to put an executable
1115 file in \fIa.out\fR, the object file for
1116 \&\fI\fIsource\fI.\fIsuffix\fI\fR in \fI\fIsource\fI.o\fR, its
1117 assembler file in \fI\fIsource\fI.s\fR, a precompiled header file in
1118 \&\fI\fIsource\fI.\fIsuffix\fI.gch\fR, and all preprocessed C source on
1119 standard output.
1120 .IP "\fB\-v\fR" 4
1121 .IX Item "-v"
1122 Print (on standard error output) the commands executed to run the stages
1123 of compilation.  Also print the version number of the compiler driver
1124 program and of the preprocessor and the compiler proper.
1125 .IP "\fB\-###\fR" 4
1126 .IX Item "-###"
1127 Like \fB\-v\fR except the commands are not executed and all command
1128 arguments are quoted.  This is useful for shell scripts to capture the
1129 driver-generated command lines.
1130 .IP "\fB\-pipe\fR" 4
1131 .IX Item "-pipe"
1132 Use pipes rather than temporary files for communication between the
1133 various stages of compilation.  This fails to work on some systems where
1134 the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
1135 no trouble.
1136 .IP "\fB\-combine\fR" 4
1137 .IX Item "-combine"
1138 If you are compiling multiple source files, this option tells the driver
1139 to pass all the source files to the compiler at once (for those
1140 languages for which the compiler can handle this).  This will allow
1141 intermodule analysis (\s-1IMA\s0) to be performed by the compiler.  Currently the only
1142 language for which this is supported is C.  If you pass source files for
1143 multiple languages to the driver, using this option, the driver will invoke
1144 the compiler(s) that support \s-1IMA\s0 once each, passing each compiler all the
1145 source files appropriate for it.  For those languages that do not support
1146 \&\s-1IMA\s0 this option will be ignored, and the compiler will be invoked once for
1147 each source file in that language.  If you use this option in conjunction
1148 with \fB\-save\-temps\fR, the compiler will generate multiple
1149 pre-processed files
1150 (one for each source file), but only one (combined) \fI.o\fR or
1151 \&\fI.s\fR file.
1152 .IP "\fB\-\-help\fR" 4
1153 .IX Item "--help"
1154 Print (on the standard output) a description of the command line options
1155 understood by \fBgcc\fR.  If the \fB\-v\fR option is also specified
1156 then \fB\-\-help\fR will also be passed on to the various processes
1157 invoked by \fBgcc\fR, so that they can display the command line options
1158 they accept.  If the \fB\-Wextra\fR option has also been specified
1159 (prior to the \fB\-\-help\fR option), then command line options which
1160 have no documentation associated with them will also be displayed.
1161 .IP "\fB\-\-target\-help\fR" 4
1162 .IX Item "--target-help"
1163 Print (on the standard output) a description of target-specific command
1164 line options for each tool.  For some targets extra target-specific
1165 information may also be printed.
1166 .IP "\fB\-\-help={\fR\fIclass\fR|[\fB^\fR]\fIqualifier\fR\fB}\fR[\fB,...\fR]" 4
1167 .IX Item "--help={class|[^]qualifier}[,...]"
1168 Print (on the standard output) a description of the command line
1169 options understood by the compiler that fit into all specified classes
1170 and qualifiers.  These are the supported classes:
1171 .RS 4
1172 .IP "\fBoptimizers\fR" 4
1173 .IX Item "optimizers"
1174 This will display all of the optimization options supported by the
1175 compiler.
1176 .IP "\fBwarnings\fR" 4
1177 .IX Item "warnings"
1178 This will display all of the options controlling warning messages
1179 produced by the compiler.
1180 .IP "\fBtarget\fR" 4
1181 .IX Item "target"
1182 This will display target-specific options.  Unlike the
1183 \&\fB\-\-target\-help\fR option however, target-specific options of the
1184 linker and assembler will not be displayed.  This is because those
1185 tools do not currently support the extended \fB\-\-help=\fR syntax.
1186 .IP "\fBparams\fR" 4
1187 .IX Item "params"
1188 This will display the values recognized by the \fB\-\-param\fR
1189 option.
1190 .IP "\fIlanguage\fR" 4
1191 .IX Item "language"
1192 This will display the options supported for \fIlanguage\fR, where 
1193 \&\fIlanguage\fR is the name of one of the languages supported in this 
1194 version of \s-1GCC\s0.
1195 .IP "\fBcommon\fR" 4
1196 .IX Item "common"
1197 This will display the options that are common to all languages.
1198 .RE
1199 .RS 4
1200 .Sp
1201 These are the supported qualifiers:
1202 .IP "\fBundocumented\fR" 4
1203 .IX Item "undocumented"
1204 Display only those options which are undocumented.
1205 .IP "\fBjoined\fR" 4
1206 .IX Item "joined"
1207 Display options which take an argument that appears after an equal
1208 sign in the same continuous piece of text, such as:
1209 \&\fB\-\-help=target\fR.
1210 .IP "\fBseparate\fR" 4
1211 .IX Item "separate"
1212 Display options which take an argument that appears as a separate word
1213 following the original option, such as: \fB\-o output-file\fR.
1214 .RE
1215 .RS 4
1216 .Sp
1217 Thus for example to display all the undocumented target-specific
1218 switches supported by the compiler the following can be used:
1219 .Sp
1220 .Vb 1
1221 \&        \-\-help=target,undocumented
1222 .Ve
1223 .Sp
1224 The sense of a qualifier can be inverted by prefixing it with the
1225 \&\fB^\fR character, so for example to display all binary warning
1226 options (i.e., ones that are either on or off and that do not take an
1227 argument), which have a description the following can be used:
1228 .Sp
1229 .Vb 1
1230 \&        \-\-help=warnings,^joined,^undocumented
1231 .Ve
1232 .Sp
1233 The argument to \fB\-\-help=\fR should not consist solely of inverted
1234 qualifiers.
1235 .Sp
1236 Combining several classes is possible, although this usually
1237 restricts the output by so much that there is nothing to display.  One
1238 case where it does work however is when one of the classes is
1239 \&\fItarget\fR.  So for example to display all the target-specific
1240 optimization options the following can be used:
1241 .Sp
1242 .Vb 1
1243 \&        \-\-help=target,optimizers
1244 .Ve
1245 .Sp
1246 The \fB\-\-help=\fR option can be repeated on the command line.  Each
1247 successive use will display its requested class of options, skipping
1248 those that have already been displayed.
1249 .Sp
1250 If the \fB\-Q\fR option appears on the command line before the
1251 \&\fB\-\-help=\fR option, then the descriptive text displayed by
1252 \&\fB\-\-help=\fR is changed.  Instead of describing the displayed
1253 options, an indication is given as to whether the option is enabled,
1254 disabled or set to a specific value (assuming that the compiler
1255 knows this at the point where the \fB\-\-help=\fR option is used).
1256 .Sp
1257 Here is a truncated example from the \s-1ARM\s0 port of \fBgcc\fR:
1258 .Sp
1259 .Vb 5
1260 \&          % gcc \-Q \-mabi=2 \-\-help=target \-c
1261 \&          The following options are target specific:
1262 \&          \-mabi=                                2
1263 \&          \-mabort\-on\-noreturn                   [disabled]
1264 \&          \-mapcs                                [disabled]
1265 .Ve
1266 .Sp
1267 The output is sensitive to the effects of previous command line
1268 options, so for example it is possible to find out which optimizations
1269 are enabled at \fB\-O2\fR by using:
1270 .Sp
1271 .Vb 1
1272 \&        \-Q \-O2 \-\-help=optimizers
1273 .Ve
1274 .Sp
1275 Alternatively you can discover which binary optimizations are enabled
1276 by \fB\-O3\fR by using:
1277 .Sp
1278 .Vb 3
1279 \&        gcc \-c \-Q \-O3 \-\-help=optimizers > /tmp/O3\-opts
1280 \&        gcc \-c \-Q \-O2 \-\-help=optimizers > /tmp/O2\-opts
1281 \&        diff /tmp/O2\-opts /tmp/O3\-opts | grep enabled
1282 .Ve
1283 .RE
1284 .IP "\fB\-\-version\fR" 4
1285 .IX Item "--version"
1286 Display the version number and copyrights of the invoked \s-1GCC\s0.
1287 .IP "\fB\-wrapper\fR" 4
1288 .IX Item "-wrapper"
1289 Invoke all subcommands under a wrapper program. It takes a single
1290 comma separated list as an argument, which will be used to invoke
1291 the wrapper:
1292 .Sp
1293 .Vb 1
1294 \&        gcc \-c t.c \-wrapper gdb,\-\-args
1295 .Ve
1296 .Sp
1297 This will invoke all subprograms of gcc under \*(L"gdb \-\-args\*(R",
1298 thus cc1 invocation will be \*(L"gdb \-\-args cc1 ...\*(R".
1299 .IP "\fB@\fR\fIfile\fR" 4
1300 .IX Item "@file"
1301 Read command-line options from \fIfile\fR.  The options read are
1302 inserted in place of the original @\fIfile\fR option.  If \fIfile\fR
1303 does not exist, or cannot be read, then the option will be treated
1304 literally, and not removed.
1305 .Sp
1306 Options in \fIfile\fR are separated by whitespace.  A whitespace
1307 character may be included in an option by surrounding the entire
1308 option in either single or double quotes.  Any character (including a
1309 backslash) may be included by prefixing the character to be included
1310 with a backslash.  The \fIfile\fR may itself contain additional
1311 @\fIfile\fR options; any such options will be processed recursively.
1312 .Sh "Compiling \*(C+ Programs"
1313 .IX Subsection "Compiling  Programs"
1314 \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
1315 \&\fB.cc\fR, \fB.cpp\fR, \fB.CPP\fR, \fB.c++\fR, \fB.cp\fR, or
1316 \&\fB.cxx\fR; \*(C+ header files often use \fB.hh\fR, \fB.hpp\fR,
1317 \&\fB.H\fR, or (for shared template code) \fB.tcc\fR; and
1318 preprocessed \*(C+ files use the suffix \fB.ii\fR.  \s-1GCC\s0 recognizes
1319 files with these names and compiles them as \*(C+ programs even if you
1320 call the compiler the same way as for compiling C programs (usually
1321 with the name \fBgcc\fR).
1322 .PP
1323 However, the use of \fBgcc\fR does not add the \*(C+ library.
1324 \&\fBg++\fR is a program that calls \s-1GCC\s0 and treats \fB.c\fR,
1325 \&\fB.h\fR and \fB.i\fR files as \*(C+ source files instead of C source
1326 files unless \fB\-x\fR is used, and automatically specifies linking
1327 against the \*(C+ library.  This program is also useful when
1328 precompiling a C header file with a \fB.h\fR extension for use in \*(C+
1329 compilations.  On many systems, \fBg++\fR is also installed with
1330 the name \fBc++\fR.
1331 .PP
1332 When you compile \*(C+ programs, you may specify many of the same
1333 command-line options that you use for compiling programs in any
1334 language; or command-line options meaningful for C and related
1335 languages; or options that are meaningful only for \*(C+ programs.
1336 .Sh "Options Controlling C Dialect"
1337 .IX Subsection "Options Controlling C Dialect"
1338 The following options control the dialect of C (or languages derived
1339 from C, such as \*(C+, Objective-C and Objective\-\*(C+) that the compiler
1340 accepts:
1341 .IP "\fB\-ansi\fR" 4
1342 .IX Item "-ansi"
1343 In C mode, this is equivalent to \fB\-std=c89\fR. In \*(C+ mode, it is
1344 equivalent to \fB\-std=c++98\fR.
1345 .Sp
1346 This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO\s0
1347 C90 (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
1348 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
1349 predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
1350 type of system you are using.  It also enables the undesirable and
1351 rarely used \s-1ISO\s0 trigraph feature.  For the C compiler,
1352 it disables recognition of \*(C+ style \fB//\fR comments as well as
1353 the \f(CW\*(C`inline\*(C'\fR keyword.
1354 .Sp
1355 The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
1356 \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
1357 \&\fB\-ansi\fR.  You would not want to use them in an \s-1ISO\s0 C program, of
1358 course, but it is useful to put them in header files that might be included
1359 in compilations done with \fB\-ansi\fR.  Alternate predefined macros
1360 such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
1361 without \fB\-ansi\fR.
1362 .Sp
1363 The \fB\-ansi\fR option does not cause non-ISO programs to be
1364 rejected gratuitously.  For that, \fB\-pedantic\fR is required in
1365 addition to \fB\-ansi\fR.
1366 .Sp
1367 The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
1368 option is used.  Some header files may notice this macro and refrain
1369 from declaring certain functions or defining certain macros that the
1370 \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
1371 programs that might use these names for other things.
1372 .Sp
1373 Functions that would normally be built in but do not have semantics
1374 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
1375 functions when \fB\-ansi\fR is used.
1376 .IP "\fB\-std=\fR" 4
1377 .IX Item "-std="
1378 Determine the language standard.   This option
1379 is currently only supported when compiling C or \*(C+.
1380 .Sp
1381 The compiler can accept several base standards, such as \fBc89\fR or
1382 \&\fBc++98\fR, and \s-1GNU\s0 dialects of those standards, such as
1383 \&\fBgnu89\fR or \fBgnu++98\fR.  By specifying a base standard, the
1384 compiler will accept all programs following that standard and those
1385 using \s-1GNU\s0 extensions that do not contradict it.  For example,
1386 \&\fB\-std=c89\fR turns off certain features of \s-1GCC\s0 that are
1387 incompatible with \s-1ISO\s0 C90, such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR
1388 keywords, but not other \s-1GNU\s0 extensions that do not have a meaning in
1389 \&\s-1ISO\s0 C90, such as omitting the middle term of a \f(CW\*(C`?:\*(C'\fR
1390 expression. On the other hand, by specifying a \s-1GNU\s0 dialect of a
1391 standard, all features the compiler support are enabled, even when
1392 those features change the meaning of the base standard and some
1393 strict-conforming programs may be rejected.  The particular standard
1394 is used by \fB\-pedantic\fR to identify which features are \s-1GNU\s0
1395 extensions given that version of the standard. For example
1396 \&\fB\-std=gnu89 \-pedantic\fR would warn about \*(C+ style \fB//\fR
1397 comments, while \fB\-std=gnu99 \-pedantic\fR would not.
1398 .Sp
1399 A value for this option must be provided; possible values are
1400 .RS 4
1401 .IP "\fBc89\fR" 4
1402 .IX Item "c89"
1403 .PD 0
1404 .IP "\fBiso9899:1990\fR" 4
1405 .IX Item "iso9899:1990"
1406 .PD
1407 Support all \s-1ISO\s0 C90 programs (certain \s-1GNU\s0 extensions that conflict
1408 with \s-1ISO\s0 C90 are disabled). Same as \fB\-ansi\fR for C code.
1409 .IP "\fBiso9899:199409\fR" 4
1410 .IX Item "iso9899:199409"
1411 \&\s-1ISO\s0 C90 as modified in amendment 1.
1412 .IP "\fBc99\fR" 4
1413 .IX Item "c99"
1414 .PD 0
1415 .IP "\fBc9x\fR" 4
1416 .IX Item "c9x"
1417 .IP "\fBiso9899:1999\fR" 4
1418 .IX Item "iso9899:1999"
1419 .IP "\fBiso9899:199x\fR" 4
1420 .IX Item "iso9899:199x"
1421 .PD
1422 \&\s-1ISO\s0 C99.  Note that this standard is not yet fully supported; see
1423 <\fBhttp://gcc.gnu.org/gcc\-4.4/c99status.html\fR> for more information.  The
1424 names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
1425 .IP "\fBgnu89\fR" 4
1426 .IX Item "gnu89"
1427 \&\s-1GNU\s0 dialect of \s-1ISO\s0 C90 (including some C99 features). This
1428 is the default for C code.
1429 .IP "\fBgnu99\fR" 4
1430 .IX Item "gnu99"
1431 .PD 0
1432 .IP "\fBgnu9x\fR" 4
1433 .IX Item "gnu9x"
1434 .PD
1435 \&\s-1GNU\s0 dialect of \s-1ISO\s0 C99.  When \s-1ISO\s0 C99 is fully implemented in \s-1GCC\s0,
1436 this will become the default.  The name \fBgnu9x\fR is deprecated.
1437 .IP "\fBc++98\fR" 4
1438 .IX Item "c++98"
1439 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments. Same as \fB\-ansi\fR for
1440 \&\*(C+ code.
1441 .IP "\fBgnu++98\fR" 4
1442 .IX Item "gnu++98"
1443 \&\s-1GNU\s0 dialect of \fB\-std=c++98\fR.  This is the default for
1444 \&\*(C+ code.
1445 .IP "\fBc++0x\fR" 4
1446 .IX Item "c++0x"
1447 The working draft of the upcoming \s-1ISO\s0 \*(C+0x standard. This option
1448 enables experimental features that are likely to be included in
1449 \&\*(C+0x. The working draft is constantly changing, and any feature that is
1450 enabled by this flag may be removed from future versions of \s-1GCC\s0 if it is
1451 not part of the \*(C+0x standard.
1452 .IP "\fBgnu++0x\fR" 4
1453 .IX Item "gnu++0x"
1454 \&\s-1GNU\s0 dialect of \fB\-std=c++0x\fR. This option enables
1455 experimental features that may be removed in future versions of \s-1GCC\s0.
1456 .RE
1457 .RS 4
1458 .RE
1459 .IP "\fB\-fgnu89\-inline\fR" 4
1460 .IX Item "-fgnu89-inline"
1461 The option \fB\-fgnu89\-inline\fR tells \s-1GCC\s0 to use the traditional
1462 \&\s-1GNU\s0 semantics for \f(CW\*(C`inline\*(C'\fR functions when in C99 mode.
1463   This option
1464 is accepted and ignored by \s-1GCC\s0 versions 4.1.3 up to but not including
1465 4.3.  In \s-1GCC\s0 versions 4.3 and later it changes the behavior of \s-1GCC\s0 in
1466 C99 mode.  Using this option is roughly equivalent to adding the
1467 \&\f(CW\*(C`gnu_inline\*(C'\fR function attribute to all inline functions.
1468 .Sp
1469 The option \fB\-fno\-gnu89\-inline\fR explicitly tells \s-1GCC\s0 to use the
1470 C99 semantics for \f(CW\*(C`inline\*(C'\fR when in C99 or gnu99 mode (i.e., it
1471 specifies the default behavior).  This option was first supported in
1472 \&\s-1GCC\s0 4.3.  This option is not supported in C89 or gnu89 mode.
1473 .Sp
1474 The preprocessor macros \f(CW\*(C`_\|_GNUC_GNU_INLINE_\|_\*(C'\fR and
1475 \&\f(CW\*(C`_\|_GNUC_STDC_INLINE_\|_\*(C'\fR may be used to check which semantics are
1476 in effect for \f(CW\*(C`inline\*(C'\fR functions.
1477 .IP "\fB\-aux\-info\fR \fIfilename\fR" 4
1478 .IX Item "-aux-info filename"
1479 Output to the given filename prototyped declarations for all functions
1480 declared and/or defined in a translation unit, including those in header
1481 files.  This option is silently ignored in any language other than C.
1482 .Sp
1483 Besides declarations, the file indicates, in comments, the origin of
1484 each declaration (source file and line), whether the declaration was
1485 implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
1486 \&\fBO\fR for old, respectively, in the first character after the line
1487 number and the colon), and whether it came from a declaration or a
1488 definition (\fBC\fR or \fBF\fR, respectively, in the following
1489 character).  In the case of function definitions, a K&R\-style list of
1490 arguments followed by their declarations is also provided, inside
1491 comments, after the declaration.
1492 .IP "\fB\-fno\-asm\fR" 4
1493 .IX Item "-fno-asm"
1494 Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
1495 keyword, so that code can use these words as identifiers.  You can use
1496 the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
1497 instead.  \fB\-ansi\fR implies \fB\-fno\-asm\fR.
1498 .Sp
1499 In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
1500 \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords.  You may want to
1501 use the \fB\-fno\-gnu\-keywords\fR flag instead, which has the same
1502 effect.  In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
1503 switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
1504 \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO\s0 C99.
1505 .IP "\fB\-fno\-builtin\fR" 4
1506 .IX Item "-fno-builtin"
1507 .PD 0
1508 .IP "\fB\-fno\-builtin\-\fR\fIfunction\fR" 4
1509 .IX Item "-fno-builtin-function"
1510 .PD
1511 Don't recognize built-in functions that do not begin with
1512 \&\fB_\|_builtin_\fR as prefix.
1513 .Sp
1514 \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
1515 more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
1516 instructions that adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
1517 may become inline copy loops.  The resulting code is often both smaller
1518 and faster, but since the function calls no longer appear as such, you
1519 cannot set a breakpoint on those calls, nor can you change the behavior
1520 of the functions by linking with a different library.  In addition,
1521 when a function is recognized as a built-in function, \s-1GCC\s0 may use
1522 information about that function to warn about problems with calls to
1523 that function, or to generate more efficient code, even if the
1524 resulting code still contains calls to that function.  For example,
1525 warnings are given with \fB\-Wformat\fR for bad calls to
1526 \&\f(CW\*(C`printf\*(C'\fR, when \f(CW\*(C`printf\*(C'\fR is built in, and \f(CW\*(C`strlen\*(C'\fR is
1527 known not to modify global memory.
1528 .Sp
1529 With the \fB\-fno\-builtin\-\fR\fIfunction\fR option
1530 only the built-in function \fIfunction\fR is
1531 disabled.  \fIfunction\fR must not begin with \fB_\|_builtin_\fR.  If a
1532 function is named that is not built-in in this version of \s-1GCC\s0, this
1533 option is ignored.  There is no corresponding
1534 \&\fB\-fbuiltin\-\fR\fIfunction\fR option; if you wish to enable
1535 built-in functions selectively when using \fB\-fno\-builtin\fR or
1536 \&\fB\-ffreestanding\fR, you may define macros such as:
1537 .Sp
1538 .Vb 2
1539 \&        #define abs(n)          _\|_builtin_abs ((n))
1540 \&        #define strcpy(d, s)    _\|_builtin_strcpy ((d), (s))
1541 .Ve
1542 .IP "\fB\-fhosted\fR" 4
1543 .IX Item "-fhosted"
1544 Assert that compilation takes place in a hosted environment.  This implies
1545 \&\fB\-fbuiltin\fR.  A hosted environment is one in which the
1546 entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
1547 type of \f(CW\*(C`int\*(C'\fR.  Examples are nearly everything except a kernel.
1548 This is equivalent to \fB\-fno\-freestanding\fR.
1549 .IP "\fB\-ffreestanding\fR" 4
1550 .IX Item "-ffreestanding"
1551 Assert that compilation takes place in a freestanding environment.  This
1552 implies \fB\-fno\-builtin\fR.  A freestanding environment
1553 is one in which the standard library may not exist, and program startup may
1554 not necessarily be at \f(CW\*(C`main\*(C'\fR.  The most obvious example is an \s-1OS\s0 kernel.
1555 This is equivalent to \fB\-fno\-hosted\fR.
1556 .IP "\fB\-fopenmp\fR" 4
1557 .IX Item "-fopenmp"
1558 Enable handling of OpenMP directives \f(CW\*(C`#pragma omp\*(C'\fR in C/\*(C+ and
1559 \&\f(CW\*(C`!$omp\*(C'\fR in Fortran.  When \fB\-fopenmp\fR is specified, the
1560 compiler generates parallel code according to the OpenMP Application
1561 Program Interface v2.5 <\fBhttp://www.openmp.org/\fR>.  This option
1562 implies \fB\-pthread\fR, and thus is only supported on targets that
1563 have support for \fB\-pthread\fR.
1564 .IP "\fB\-fms\-extensions\fR" 4
1565 .IX Item "-fms-extensions"
1566 Accept some non-standard constructs used in Microsoft header files.
1567 .Sp
1568 Some cases of unnamed fields in structures and unions are only
1569 accepted with this option.
1570 .IP "\fB\-trigraphs\fR" 4
1571 .IX Item "-trigraphs"
1572 Support \s-1ISO\s0 C trigraphs.  The \fB\-ansi\fR option (and \fB\-std\fR
1573 options for strict \s-1ISO\s0 C conformance) implies \fB\-trigraphs\fR.
1574 .IP "\fB\-no\-integrated\-cpp\fR" 4
1575 .IX Item "-no-integrated-cpp"
1576 Performs a compilation in two passes: preprocessing and compiling.  This
1577 option allows a user supplied \*(L"cc1\*(R", \*(L"cc1plus\*(R", or \*(L"cc1obj\*(R" via the
1578 \&\fB\-B\fR option.  The user supplied compilation step can then add in
1579 an additional preprocessing step after normal preprocessing but before
1580 compiling.  The default is to use the integrated cpp (internal cpp)
1581 .Sp
1582 The semantics of this option will change if \*(L"cc1\*(R", \*(L"cc1plus\*(R", and
1583 \&\*(L"cc1obj\*(R" are merged.
1584 .IP "\fB\-traditional\fR" 4
1585 .IX Item "-traditional"
1586 .PD 0
1587 .IP "\fB\-traditional\-cpp\fR" 4
1588 .IX Item "-traditional-cpp"
1589 .PD
1590 Formerly, these options caused \s-1GCC\s0 to attempt to emulate a pre-standard
1591 C compiler.  They are now only supported with the \fB\-E\fR switch.
1592 The preprocessor continues to support a pre-standard mode.  See the \s-1GNU\s0
1593 \&\s-1CPP\s0 manual for details.
1594 .IP "\fB\-fcond\-mismatch\fR" 4
1595 .IX Item "-fcond-mismatch"
1596 Allow conditional expressions with mismatched types in the second and
1597 third arguments.  The value of such an expression is void.  This option
1598 is not supported for \*(C+.
1599 .IP "\fB\-flax\-vector\-conversions\fR" 4
1600 .IX Item "-flax-vector-conversions"
1601 Allow implicit conversions between vectors with differing numbers of
1602 elements and/or incompatible element types.  This option should not be
1603 used for new code.
1604 .IP "\fB\-funsigned\-char\fR" 4
1605 .IX Item "-funsigned-char"
1606 Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
1607 .Sp
1608 Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
1609 be.  It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
1610 \&\f(CW\*(C`signed char\*(C'\fR by default.
1611 .Sp
1612 Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
1613 \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
1614 But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
1615 expect it to be signed, or expect it to be unsigned, depending on the
1616 machines they were written for.  This option, and its inverse, let you
1617 make such a program work with the opposite default.
1618 .Sp
1619 The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
1620 \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
1621 is always just like one of those two.
1622 .IP "\fB\-fsigned\-char\fR" 4
1623 .IX Item "-fsigned-char"
1624 Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
1625 .Sp
1626 Note that this is equivalent to \fB\-fno\-unsigned\-char\fR, which is
1627 the negative form of \fB\-funsigned\-char\fR.  Likewise, the option
1628 \&\fB\-fno\-signed\-char\fR is equivalent to \fB\-funsigned\-char\fR.
1629 .IP "\fB\-fsigned\-bitfields\fR" 4
1630 .IX Item "-fsigned-bitfields"
1631 .PD 0
1632 .IP "\fB\-funsigned\-bitfields\fR" 4
1633 .IX Item "-funsigned-bitfields"
1634 .IP "\fB\-fno\-signed\-bitfields\fR" 4
1635 .IX Item "-fno-signed-bitfields"
1636 .IP "\fB\-fno\-unsigned\-bitfields\fR" 4
1637 .IX Item "-fno-unsigned-bitfields"
1638 .PD
1639 These options control whether a bit-field is signed or unsigned, when the
1640 declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR.  By
1641 default, such a bit-field is signed, because this is consistent: the
1642 basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
1643 .Sh "Options Controlling \*(C+ Dialect"
1644 .IX Subsection "Options Controlling  Dialect"
1645 This section describes the command-line options that are only meaningful
1646 for \*(C+ programs; but you can also use most of the \s-1GNU\s0 compiler options
1647 regardless of what language your program is in.  For example, you
1648 might compile a file \f(CW\*(C`firstClass.C\*(C'\fR like this:
1649 .PP
1650 .Vb 1
1651 \&        g++ \-g \-frepo \-O \-c firstClass.C
1652 .Ve
1653 .PP
1654 In this example, only \fB\-frepo\fR is an option meant
1655 only for \*(C+ programs; you can use the other options with any
1656 language supported by \s-1GCC\s0.
1657 .PP
1658 Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
1659 .IP "\fB\-fabi\-version=\fR\fIn\fR" 4
1660 .IX Item "-fabi-version=n"
1661 Use version \fIn\fR of the \*(C+ \s-1ABI\s0.  Version 2 is the version of the
1662 \&\*(C+ \s-1ABI\s0 that first appeared in G++ 3.4.  Version 1 is the version of
1663 the \*(C+ \s-1ABI\s0 that first appeared in G++ 3.2.  Version 0 will always be
1664 the version that conforms most closely to the \*(C+ \s-1ABI\s0 specification.
1665 Therefore, the \s-1ABI\s0 obtained using version 0 will change as \s-1ABI\s0 bugs
1666 are fixed.
1667 .Sp
1668 The default is version 2.
1669 .IP "\fB\-fno\-access\-control\fR" 4
1670 .IX Item "-fno-access-control"
1671 Turn off all access checking.  This switch is mainly useful for working
1672 around bugs in the access control code.
1673 .IP "\fB\-fcheck\-new\fR" 4
1674 .IX Item "-fcheck-new"
1675 Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
1676 before attempting to modify the storage allocated.  This check is
1677 normally unnecessary because the \*(C+ standard specifies that
1678 \&\f(CW\*(C`operator new\*(C'\fR will only return \f(CW0\fR if it is declared
1679 \&\fB\f(BIthrow()\fB\fR, in which case the compiler will always check the
1680 return value even without this option.  In all other cases, when
1681 \&\f(CW\*(C`operator new\*(C'\fR has a non-empty exception specification, memory
1682 exhaustion is signalled by throwing \f(CW\*(C`std::bad_alloc\*(C'\fR.  See also
1683 \&\fBnew (nothrow)\fR.
1684 .IP "\fB\-fconserve\-space\fR" 4
1685 .IX Item "-fconserve-space"
1686 Put uninitialized or runtime-initialized global variables into the
1687 common segment, as C does.  This saves space in the executable at the
1688 cost of not diagnosing duplicate definitions.  If you compile with this
1689 flag and your program mysteriously crashes after \f(CW\*(C`main()\*(C'\fR has
1690 completed, you may have an object that is being destroyed twice because
1691 two definitions were merged.
1692 .Sp
1693 This option is no longer useful on most targets, now that support has
1694 been added for putting variables into \s-1BSS\s0 without making them common.
1695 .IP "\fB\-ffriend\-injection\fR" 4
1696 .IX Item "-ffriend-injection"
1697 Inject friend functions into the enclosing namespace, so that they are
1698 visible outside the scope of the class in which they are declared.
1699 Friend functions were documented to work this way in the old Annotated
1700 \&\*(C+ Reference Manual, and versions of G++ before 4.1 always worked
1701 that way.  However, in \s-1ISO\s0 \*(C+ a friend function which is not declared
1702 in an enclosing scope can only be found using argument dependent
1703 lookup.  This option causes friends to be injected as they were in
1704 earlier releases.
1705 .Sp
1706 This option is for compatibility, and may be removed in a future
1707 release of G++.
1708 .IP "\fB\-fno\-elide\-constructors\fR" 4
1709 .IX Item "-fno-elide-constructors"
1710 The \*(C+ standard allows an implementation to omit creating a temporary
1711 which is only used to initialize another object of the same type.
1712 Specifying this option disables that optimization, and forces G++ to
1713 call the copy constructor in all cases.
1714 .IP "\fB\-fno\-enforce\-eh\-specs\fR" 4
1715 .IX Item "-fno-enforce-eh-specs"
1716 Don't generate code to check for violation of exception specifications
1717 at runtime.  This option violates the \*(C+ standard, but may be useful
1718 for reducing code size in production builds, much like defining
1719 \&\fB\s-1NDEBUG\s0\fR.  This does not give user code permission to throw
1720 exceptions in violation of the exception specifications; the compiler
1721 will still optimize based on the specifications, so throwing an
1722 unexpected exception will result in undefined behavior.
1723 .IP "\fB\-ffor\-scope\fR" 4
1724 .IX Item "-ffor-scope"
1725 .PD 0
1726 .IP "\fB\-fno\-for\-scope\fR" 4
1727 .IX Item "-fno-for-scope"
1728 .PD
1729 If \fB\-ffor\-scope\fR is specified, the scope of variables declared in
1730 a \fIfor-init-statement\fR is limited to the \fBfor\fR loop itself,
1731 as specified by the \*(C+ standard.
1732 If \fB\-fno\-for\-scope\fR is specified, the scope of variables declared in
1733 a \fIfor-init-statement\fR extends to the end of the enclosing scope,
1734 as was the case in old versions of G++, and other (traditional)
1735 implementations of \*(C+.
1736 .Sp
1737 The default if neither flag is given to follow the standard,
1738 but to allow and give a warning for old-style code that would
1739 otherwise be invalid, or have different behavior.
1740 .IP "\fB\-fno\-gnu\-keywords\fR" 4
1741 .IX Item "-fno-gnu-keywords"
1742 Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
1743 word as an identifier.  You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
1744 \&\fB\-ansi\fR implies \fB\-fno\-gnu\-keywords\fR.
1745 .IP "\fB\-fno\-implicit\-templates\fR" 4
1746 .IX Item "-fno-implicit-templates"
1747 Never emit code for non-inline templates which are instantiated
1748 implicitly (i.e. by use); only emit code for explicit instantiations.
1749 .IP "\fB\-fno\-implicit\-inline\-templates\fR" 4
1750 .IX Item "-fno-implicit-inline-templates"
1751 Don't emit code for implicit instantiations of inline templates, either.
1752 The default is to handle inlines differently so that compiles with and
1753 without optimization will need the same set of explicit instantiations.
1754 .IP "\fB\-fno\-implement\-inlines\fR" 4
1755 .IX Item "-fno-implement-inlines"
1756 To save space, do not emit out-of-line copies of inline functions
1757 controlled by \fB#pragma implementation\fR.  This will cause linker
1758 errors if these functions are not inlined everywhere they are called.
1759 .IP "\fB\-fms\-extensions\fR" 4
1760 .IX Item "-fms-extensions"
1761 Disable pedantic warnings about constructs used in \s-1MFC\s0, such as implicit
1762 int and getting a pointer to member function via non-standard syntax.
1763 .IP "\fB\-fno\-nonansi\-builtins\fR" 4
1764 .IX Item "-fno-nonansi-builtins"
1765 Disable built-in declarations of functions that are not mandated by
1766 \&\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,
1767 \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
1768 .IP "\fB\-fno\-operator\-names\fR" 4
1769 .IX Item "-fno-operator-names"
1770 Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
1771 \&\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
1772 synonyms as keywords.
1773 .IP "\fB\-fno\-optional\-diags\fR" 4
1774 .IX Item "-fno-optional-diags"
1775 Disable diagnostics that the standard says a compiler does not need to
1776 issue.  Currently, the only such diagnostic issued by G++ is the one for
1777 a name having multiple meanings within a class.
1778 .IP "\fB\-fpermissive\fR" 4
1779 .IX Item "-fpermissive"
1780 Downgrade some diagnostics about nonconformant code from errors to
1781 warnings.  Thus, using \fB\-fpermissive\fR will allow some
1782 nonconforming code to compile.
1783 .IP "\fB\-frepo\fR" 4
1784 .IX Item "-frepo"
1785 Enable automatic template instantiation at link time.  This option also
1786 implies \fB\-fno\-implicit\-templates\fR.
1787 .IP "\fB\-fno\-rtti\fR" 4
1788 .IX Item "-fno-rtti"
1789 Disable generation of information about every class with virtual
1790 functions for use by the \*(C+ runtime type identification features
1791 (\fBdynamic_cast\fR and \fBtypeid\fR).  If you don't use those parts
1792 of the language, you can save some space by using this flag.  Note that
1793 exception handling uses the same information, but it will generate it as
1794 needed. The \fBdynamic_cast\fR operator can still be used for casts that
1795 do not require runtime type information, i.e. casts to \f(CW\*(C`void *\*(C'\fR or to
1796 unambiguous base classes.
1797 .IP "\fB\-fstats\fR" 4
1798 .IX Item "-fstats"
1799 Emit statistics about front-end processing at the end of the compilation.
1800 This information is generally only useful to the G++ development team.
1801 .IP "\fB\-ftemplate\-depth\-\fR\fIn\fR" 4
1802 .IX Item "-ftemplate-depth-n"
1803 Set the maximum instantiation depth for template classes to \fIn\fR.
1804 A limit on the template instantiation depth is needed to detect
1805 endless recursions during template class instantiation.  \s-1ANSI/ISO\s0 \*(C+
1806 conforming programs must not rely on a maximum depth greater than 17.
1807 .IP "\fB\-fno\-threadsafe\-statics\fR" 4
1808 .IX Item "-fno-threadsafe-statics"
1809 Do not emit the extra code to use the routines specified in the \*(C+
1810 \&\s-1ABI\s0 for thread-safe initialization of local statics.  You can use this
1811 option to reduce code size slightly in code that doesn't need to be
1812 thread-safe.
1813 .IP "\fB\-fuse\-cxa\-atexit\fR" 4
1814 .IX Item "-fuse-cxa-atexit"
1815 Register destructors for objects with static storage duration with the
1816 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
1817 This option is required for fully standards-compliant handling of static
1818 destructors, but will only work if your C library supports
1819 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
1820 .IP "\fB\-fno\-use\-cxa\-get\-exception\-ptr\fR" 4
1821 .IX Item "-fno-use-cxa-get-exception-ptr"
1822 Don't use the \f(CW\*(C`_\|_cxa_get_exception_ptr\*(C'\fR runtime routine.  This
1823 will cause \f(CW\*(C`std::uncaught_exception\*(C'\fR to be incorrect, but is necessary
1824 if the runtime routine is not available.
1825 .IP "\fB\-fvisibility\-inlines\-hidden\fR" 4
1826 .IX Item "-fvisibility-inlines-hidden"
1827 This switch declares that the user does not attempt to compare
1828 pointers to inline methods where the addresses of the two functions
1829 were taken in different shared objects.
1830 .Sp
1831 The effect of this is that \s-1GCC\s0 may, effectively, mark inline methods with
1832 \&\f(CW\*(C`_\|_attribute_\|_ ((visibility ("hidden")))\*(C'\fR so that they do not
1833 appear in the export table of a \s-1DSO\s0 and do not require a \s-1PLT\s0 indirection
1834 when used within the \s-1DSO\s0.  Enabling this option can have a dramatic effect
1835 on load and link times of a \s-1DSO\s0 as it massively reduces the size of the
1836 dynamic export table when the library makes heavy use of templates.
1837 .Sp
1838 The behavior of this switch is not quite the same as marking the
1839 methods as hidden directly, because it does not affect static variables
1840 local to the function or cause the compiler to deduce that
1841 the function is defined in only one shared object.
1842 .Sp
1843 You may mark a method as having a visibility explicitly to negate the
1844 effect of the switch for that method.  For example, if you do want to
1845 compare pointers to a particular inline method, you might mark it as
1846 having default visibility.  Marking the enclosing class with explicit
1847 visibility will have no effect.
1848 .Sp
1849 Explicitly instantiated inline methods are unaffected by this option
1850 as their linkage might otherwise cross a shared library boundary.
1851 .IP "\fB\-fvisibility\-ms\-compat\fR" 4
1852 .IX Item "-fvisibility-ms-compat"
1853 This flag attempts to use visibility settings to make \s-1GCC\s0's \*(C+
1854 linkage model compatible with that of Microsoft Visual Studio.
1855 .Sp
1856 The flag makes these changes to \s-1GCC\s0's linkage model:
1857 .RS 4
1858 .IP "1." 4
1859 It sets the default visibility to \f(CW\*(C`hidden\*(C'\fR, like
1860 \&\fB\-fvisibility=hidden\fR.
1861 .IP "2." 4
1862 Types, but not their members, are not hidden by default.
1863 .IP "3." 4
1864 The One Definition Rule is relaxed for types without explicit
1865 visibility specifications which are defined in more than one different
1866 shared object: those declarations are permitted if they would have
1867 been permitted when this option was not used.
1868 .RE
1869 .RS 4
1870 .Sp
1871 In new code it is better to use \fB\-fvisibility=hidden\fR and
1872 export those classes which are intended to be externally visible.
1873 Unfortunately it is possible for code to rely, perhaps accidentally,
1874 on the Visual Studio behavior.
1875 .Sp
1876 Among the consequences of these changes are that static data members
1877 of the same type with the same name but defined in different shared
1878 objects will be different, so changing one will not change the other;
1879 and that pointers to function members defined in different shared
1880 objects may not compare equal.  When this flag is given, it is a
1881 violation of the \s-1ODR\s0 to define types with the same name differently.
1882 .RE
1883 .IP "\fB\-fno\-weak\fR" 4
1884 .IX Item "-fno-weak"
1885 Do not use weak symbol support, even if it is provided by the linker.
1886 By default, G++ will use weak symbols if they are available.  This
1887 option exists only for testing, and should not be used by end-users;
1888 it will result in inferior code and has no benefits.  This option may
1889 be removed in a future release of G++.
1890 .IP "\fB\-nostdinc++\fR" 4
1891 .IX Item "-nostdinc++"
1892 Do not search for header files in the standard directories specific to
1893 \&\*(C+, but do still search the other standard directories.  (This option
1894 is used when building the \*(C+ library.)
1895 .PP
1896 In addition, these optimization, warning, and code generation options
1897 have meanings only for \*(C+ programs:
1898 .IP "\fB\-fno\-default\-inline\fR" 4
1899 .IX Item "-fno-default-inline"
1900 Do not assume \fBinline\fR for functions defined inside a class scope.
1901   Note that these
1902 functions will have linkage like inline functions; they just won't be
1903 inlined by default.
1904 .IP "\fB\-Wabi\fR (C, Objective-C, \*(C+ and Objective\-\*(C+ only)" 4
1905 .IX Item "-Wabi (C, Objective-C,  and Objective- only)"
1906 Warn when G++ generates code that is probably not compatible with the
1907 vendor-neutral \*(C+ \s-1ABI\s0.  Although an effort has been made to warn about
1908 all such cases, there are probably some cases that are not warned about,
1909 even though G++ is generating incompatible code.  There may also be
1910 cases where warnings are emitted even though the code that is generated
1911 will be compatible.
1912 .Sp
1913 You should rewrite your code to avoid these warnings if you are
1914 concerned about the fact that code generated by G++ may not be binary
1915 compatible with code generated by other compilers.
1916 .Sp
1917 The known incompatibilities at this point include:
1918 .RS 4
1919 .IP "\(bu" 4
1920 Incorrect handling of tail-padding for bit-fields.  G++ may attempt to
1921 pack data into the same byte as a base class.  For example:
1922 .Sp
1923 .Vb 2
1924 \&        struct A { virtual void f(); int f1 : 1; };
1925 \&        struct B : public A { int f2 : 1; };
1926 .Ve
1927 .Sp
1928 In this case, G++ will place \f(CW\*(C`B::f2\*(C'\fR into the same byte
1929 as\f(CW\*(C`A::f1\*(C'\fR; other compilers will not.  You can avoid this problem
1930 by explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of the
1931 byte size on your platform; that will cause G++ and other compilers to
1932 layout \f(CW\*(C`B\*(C'\fR identically.
1933 .IP "\(bu" 4
1934 Incorrect handling of tail-padding for virtual bases.  G++ does not use
1935 tail padding when laying out virtual bases.  For example:
1936 .Sp
1937 .Vb 3
1938 \&        struct A { virtual void f(); char c1; };
1939 \&        struct B { B(); char c2; };
1940 \&        struct C : public A, public virtual B {};
1941 .Ve
1942 .Sp
1943 In this case, G++ will not place \f(CW\*(C`B\*(C'\fR into the tail-padding for
1944 \&\f(CW\*(C`A\*(C'\fR; other compilers will.  You can avoid this problem by
1945 explicitly padding \f(CW\*(C`A\*(C'\fR so that its size is a multiple of its
1946 alignment (ignoring virtual base classes); that will cause G++ and other
1947 compilers to layout \f(CW\*(C`C\*(C'\fR identically.
1948 .IP "\(bu" 4
1949 Incorrect handling of bit-fields with declared widths greater than that
1950 of their underlying types, when the bit-fields appear in a union.  For
1951 example:
1952 .Sp
1953 .Vb 1
1954 \&        union U { int i : 4096; };
1955 .Ve
1956 .Sp
1957 Assuming that an \f(CW\*(C`int\*(C'\fR does not have 4096 bits, G++ will make the
1958 union too small by the number of bits in an \f(CW\*(C`int\*(C'\fR.
1959 .IP "\(bu" 4
1960 Empty classes can be placed at incorrect offsets.  For example:
1961 .Sp
1962 .Vb 1
1963 \&        struct A {};
1964 \&        
1965 \&        struct B {
1966 \&          A a;
1967 \&          virtual void f ();
1968 \&        };
1969 \&        
1970 \&        struct C : public B, public A {};
1971 .Ve
1972 .Sp
1973 G++ will place the \f(CW\*(C`A\*(C'\fR base class of \f(CW\*(C`C\*(C'\fR at a nonzero offset;
1974 it should be placed at offset zero.  G++ mistakenly believes that the
1975 \&\f(CW\*(C`A\*(C'\fR data member of \f(CW\*(C`B\*(C'\fR is already at offset zero.
1976 .IP "\(bu" 4
1977 Names of template functions whose types involve \f(CW\*(C`typename\*(C'\fR or
1978 template template parameters can be mangled incorrectly.
1979 .Sp
1980 .Vb 2
1981 \&        template <typename Q>
1982 \&        void f(typename Q::X) {}
1983 \&        
1984 \&        template <template <typename> class Q>
1985 \&        void f(typename Q<int>::X) {}
1986 .Ve
1987 .Sp
1988 Instantiations of these templates may be mangled incorrectly.
1989 .RE
1990 .RS 4
1991 .Sp
1992 It also warns psABI related changes.  The known psABI changes at this
1993 point include:
1994 .IP "\(bu" 4
1995 For SYSV/x86\-64, when passing union with long double, it is changed to
1996 pass in memory as specified in psABI.  For example:
1997 .Sp
1998 .Vb 4
1999 \&        union U {
2000 \&          long double ld;
2001 \&          int i;
2002 \&        };
2003 .Ve
2004 .Sp
2005 \&\f(CW\*(C`union U\*(C'\fR will always be passed in memory.
2006 .RE
2007 .RS 4
2008 .RE
2009 .IP "\fB\-Wctor\-dtor\-privacy\fR (\*(C+ and Objective\-\*(C+ only)" 4
2010 .IX Item "-Wctor-dtor-privacy ( and Objective- only)"
2011 Warn when a class seems unusable because all the constructors or
2012 destructors in that class are private, and it has neither friends nor
2013 public static member functions.
2014 .IP "\fB\-Wnon\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
2015 .IX Item "-Wnon-virtual-dtor ( and Objective- only)"
2016 Warn when a class has virtual functions and accessible non-virtual
2017 destructor, in which case it would be possible but unsafe to delete
2018 an instance of a derived class through a pointer to the base class.
2019 This warning is also enabled if \-Weffc++ is specified.
2020 .IP "\fB\-Wreorder\fR (\*(C+ and Objective\-\*(C+ only)" 4
2021 .IX Item "-Wreorder ( and Objective- only)"
2022 Warn when the order of member initializers given in the code does not
2023 match the order in which they must be executed.  For instance:
2024 .Sp
2025 .Vb 5
2026 \&        struct A {
2027 \&          int i;
2028 \&          int j;
2029 \&          A(): j (0), i (1) { }
2030 \&        };
2031 .Ve
2032 .Sp
2033 The compiler will rearrange the member initializers for \fBi\fR
2034 and \fBj\fR to match the declaration order of the members, emitting
2035 a warning to that effect.  This warning is enabled by \fB\-Wall\fR.
2036 .PP
2037 The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
2038 .IP "\fB\-Weffc++\fR (\*(C+ and Objective\-\*(C+ only)" 4
2039 .IX Item "-Weffc++ ( and Objective- only)"
2040 Warn about violations of the following style guidelines from Scott Meyers'
2041 \&\fIEffective \*(C+\fR book:
2042 .RS 4
2043 .IP "\(bu" 4
2044 Item 11:  Define a copy constructor and an assignment operator for classes
2045 with dynamically allocated memory.
2046 .IP "\(bu" 4
2047 Item 12:  Prefer initialization to assignment in constructors.
2048 .IP "\(bu" 4
2049 Item 14:  Make destructors virtual in base classes.
2050 .IP "\(bu" 4
2051 Item 15:  Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW*this\fR.
2052 .IP "\(bu" 4
2053 Item 23:  Don't try to return a reference when you must return an object.
2054 .RE
2055 .RS 4
2056 .Sp
2057 Also warn about violations of the following style guidelines from
2058 Scott Meyers' \fIMore Effective \*(C+\fR book:
2059 .IP "\(bu" 4
2060 Item 6:  Distinguish between prefix and postfix forms of increment and
2061 decrement operators.
2062 .IP "\(bu" 4
2063 Item 7:  Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
2064 .RE
2065 .RS 4
2066 .Sp
2067 When selecting this option, be aware that the standard library
2068 headers do not obey all of these guidelines; use \fBgrep \-v\fR
2069 to filter out those warnings.
2070 .RE
2071 .IP "\fB\-Wstrict\-null\-sentinel\fR (\*(C+ and Objective\-\*(C+ only)" 4
2072 .IX Item "-Wstrict-null-sentinel ( and Objective- only)"
2073 Warn also about the use of an uncasted \f(CW\*(C`NULL\*(C'\fR as sentinel.  When
2074 compiling only with \s-1GCC\s0 this is a valid sentinel, as \f(CW\*(C`NULL\*(C'\fR is defined
2075 to \f(CW\*(C`_\|_null\*(C'\fR.  Although it is a null pointer constant not a null pointer,
2076 it is guaranteed to be of the same size as a pointer.  But this use is
2077 not portable across different compilers.
2078 .IP "\fB\-Wno\-non\-template\-friend\fR (\*(C+ and Objective\-\*(C+ only)" 4
2079 .IX Item "-Wno-non-template-friend ( and Objective- only)"
2080 Disable warnings when non-templatized friend functions are declared
2081 within a template.  Since the advent of explicit template specification
2082 support in G++, if the name of the friend is an unqualified-id (i.e.,
2083 \&\fBfriend foo(int)\fR), the \*(C+ language specification demands that the
2084 friend declare or define an ordinary, nontemplate function.  (Section
2085 14.5.3).  Before G++ implemented explicit specification, unqualified-ids
2086 could be interpreted as a particular specialization of a templatized
2087 function.  Because this non-conforming behavior is no longer the default
2088 behavior for G++, \fB\-Wnon\-template\-friend\fR allows the compiler to
2089 check existing code for potential trouble spots and is on by default.
2090 This new compiler behavior can be turned off with
2091 \&\fB\-Wno\-non\-template\-friend\fR which keeps the conformant compiler code
2092 but disables the helpful warning.
2093 .IP "\fB\-Wold\-style\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
2094 .IX Item "-Wold-style-cast ( and Objective- only)"
2095 Warn if an old-style (C\-style) cast to a non-void type is used within
2096 a \*(C+ program.  The new-style casts (\fBdynamic_cast\fR,
2097 \&\fBstatic_cast\fR, \fBreinterpret_cast\fR, and \fBconst_cast\fR) are
2098 less vulnerable to unintended effects and much easier to search for.
2099 .IP "\fB\-Woverloaded\-virtual\fR (\*(C+ and Objective\-\*(C+ only)" 4
2100 .IX Item "-Woverloaded-virtual ( and Objective- only)"
2101 Warn when a function declaration hides virtual functions from a
2102 base class.  For example, in:
2103 .Sp
2104 .Vb 3
2105 \&        struct A {
2106 \&          virtual void f();
2107 \&        };
2108 \&        
2109 \&        struct B: public A {
2110 \&          void f(int);
2111 \&        };
2112 .Ve
2113 .Sp
2114 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
2115 like:
2116 .Sp
2117 .Vb 2
2118 \&        B* b;
2119 \&        b\->f();
2120 .Ve
2121 .Sp
2122 will fail to compile.
2123 .IP "\fB\-Wno\-pmf\-conversions\fR (\*(C+ and Objective\-\*(C+ only)" 4
2124 .IX Item "-Wno-pmf-conversions ( and Objective- only)"
2125 Disable the diagnostic for converting a bound pointer to member function
2126 to a plain pointer.
2127 .IP "\fB\-Wsign\-promo\fR (\*(C+ and Objective\-\*(C+ only)" 4
2128 .IX Item "-Wsign-promo ( and Objective- only)"
2129 Warn when overload resolution chooses a promotion from unsigned or
2130 enumerated type to a signed type, over a conversion to an unsigned type of
2131 the same size.  Previous versions of G++ would try to preserve
2132 unsignedness, but the standard mandates the current behavior.
2133 .Sp
2134 .Vb 4
2135 \&        struct A {
2136 \&          operator int ();
2137 \&          A& operator = (int);
2138 \&        };
2139 \&        
2140 \&        main ()
2141 \&        {
2142 \&          A a,b;
2143 \&          a = b;
2144 \&        }
2145 .Ve
2146 .Sp
2147 In this example, G++ will synthesize a default \fBA& operator =
2148 (const A&);\fR, while cfront will use the user-defined \fBoperator =\fR.
2149 .Sh "Options Controlling Objective-C and Objective\-\*(C+ Dialects"
2150 .IX Subsection "Options Controlling Objective-C and Objective- Dialects"
2151 (\s-1NOTE:\s0 This manual does not describe the Objective-C and Objective\-\*(C+
2152 languages themselves.  See
2153 .PP
2154 This section describes the command-line options that are only meaningful
2155 for Objective-C and Objective\-\*(C+ programs, but you can also use most of
2156 the language-independent \s-1GNU\s0 compiler options.
2157 For example, you might compile a file \f(CW\*(C`some_class.m\*(C'\fR like this:
2158 .PP
2159 .Vb 1
2160 \&        gcc \-g \-fgnu\-runtime \-O \-c some_class.m
2161 .Ve
2162 .PP
2163 In this example, \fB\-fgnu\-runtime\fR is an option meant only for
2164 Objective-C and Objective\-\*(C+ programs; you can use the other options with
2165 any language supported by \s-1GCC\s0.
2166 .PP
2167 Note that since Objective-C is an extension of the C language, Objective-C
2168 compilations may also use options specific to the C front-end (e.g.,
2169 \&\fB\-Wtraditional\fR).  Similarly, Objective\-\*(C+ compilations may use
2170 \&\*(C+\-specific options (e.g., \fB\-Wabi\fR).
2171 .PP
2172 Here is a list of options that are \fIonly\fR for compiling Objective-C
2173 and Objective\-\*(C+ programs:
2174 .IP "\fB\-fconstant\-string\-class=\fR\fIclass-name\fR" 4
2175 .IX Item "-fconstant-string-class=class-name"
2176 Use \fIclass-name\fR as the name of the class to instantiate for each
2177 literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR.  The default
2178 class name is \f(CW\*(C`NXConstantString\*(C'\fR if the \s-1GNU\s0 runtime is being used, and
2179 \&\f(CW\*(C`NSConstantString\*(C'\fR if the NeXT runtime is being used (see below).  The
2180 \&\fB\-fconstant\-cfstrings\fR option, if also present, will override the
2181 \&\fB\-fconstant\-string\-class\fR setting and cause \f(CW\*(C`@"..."\*(C'\fR literals
2182 to be laid out as constant CoreFoundation strings.
2183 .IP "\fB\-fgnu\-runtime\fR" 4
2184 .IX Item "-fgnu-runtime"
2185 Generate object code compatible with the standard \s-1GNU\s0 Objective-C
2186 runtime.  This is the default for most types of systems.
2187 .IP "\fB\-fnext\-runtime\fR" 4
2188 .IX Item "-fnext-runtime"
2189 Generate output compatible with the NeXT runtime.  This is the default
2190 for NeXT-based systems, including Darwin and Mac \s-1OS\s0 X.  The macro
2191 \&\f(CW\*(C`_\|_NEXT_RUNTIME_\|_\*(C'\fR is predefined if (and only if) this option is
2192 used.
2193 .IP "\fB\-fno\-nil\-receivers\fR" 4
2194 .IX Item "-fno-nil-receivers"
2195 Assume that all Objective-C message dispatches (e.g.,
2196 \&\f(CW\*(C`[receiver message:arg]\*(C'\fR) in this translation unit ensure that the receiver
2197 is not \f(CW\*(C`nil\*(C'\fR.  This allows for more efficient entry points in the runtime
2198 to be used.  Currently, this option is only available in conjunction with
2199 the NeXT runtime on Mac \s-1OS\s0 X 10.3 and later.
2200 .IP "\fB\-fobjc\-call\-cxx\-cdtors\fR" 4
2201 .IX Item "-fobjc-call-cxx-cdtors"
2202 For each Objective-C class, check if any of its instance variables is a
2203 \&\*(C+ object with a non-trivial default constructor.  If so, synthesize a
2204 special \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR instance method that will run
2205 non-trivial default constructors on any such instance variables, in order,
2206 and then return \f(CW\*(C`self\*(C'\fR.  Similarly, check if any instance variable
2207 is a \*(C+ object with a non-trivial destructor, and if so, synthesize a
2208 special \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR method that will run
2209 all such default destructors, in reverse order.
2210 .Sp
2211 The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and/or \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods
2212 thusly generated will only operate on instance variables declared in the
2213 current Objective-C class, and not those inherited from superclasses.  It
2214 is the responsibility of the Objective-C runtime to invoke all such methods
2215 in an object's inheritance hierarchy.  The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR methods
2216 will be invoked by the runtime immediately after a new object
2217 instance is allocated; the \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods will
2218 be invoked immediately before the runtime deallocates an object instance.
2219 .Sp
2220 As of this writing, only the NeXT runtime on Mac \s-1OS\s0 X 10.4 and later has
2221 support for invoking the \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and
2222 \&\f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods.
2223 .IP "\fB\-fobjc\-direct\-dispatch\fR" 4
2224 .IX Item "-fobjc-direct-dispatch"
2225 Allow fast jumps to the message dispatcher.  On Darwin this is
2226 accomplished via the comm page.
2227 .IP "\fB\-fobjc\-exceptions\fR" 4
2228 .IX Item "-fobjc-exceptions"
2229 Enable syntactic support for structured exception handling in Objective-C,
2230 similar to what is offered by \*(C+ and Java.  This option is
2231 unavailable in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.2 and
2232 earlier.
2233 .Sp
2234 .Vb 10
2235 \&          @try {
2236 \&            ...
2237 \&               @throw expr;
2238 \&            ...
2239 \&          }
2240 \&          @catch (AnObjCClass *exc) {
2241 \&            ...
2242 \&              @throw expr;
2243 \&            ...
2244 \&              @throw;
2245 \&            ...
2246 \&          }
2247 \&          @catch (AnotherClass *exc) {
2248 \&            ...
2249 \&          }
2250 \&          @catch (id allOthers) {
2251 \&            ...
2252 \&          }
2253 \&          @finally {
2254 \&            ...
2255 \&              @throw expr;
2256 \&            ...
2257 \&          }
2258 .Ve
2259 .Sp
2260 The \f(CW@throw\fR statement may appear anywhere in an Objective-C or
2261 Objective\-\*(C+ program; when used inside of a \f(CW@catch\fR block, the
2262 \&\f(CW@throw\fR may appear without an argument (as shown above), in which case
2263 the object caught by the \f(CW@catch\fR will be rethrown.
2264 .Sp
2265 Note that only (pointers to) Objective-C objects may be thrown and
2266 caught using this scheme.  When an object is thrown, it will be caught
2267 by the nearest \f(CW@catch\fR clause capable of handling objects of that type,
2268 analogously to how \f(CW\*(C`catch\*(C'\fR blocks work in \*(C+ and Java.  A
2269 \&\f(CW\*(C`@catch(id ...)\*(C'\fR clause (as shown above) may also be provided to catch
2270 any and all Objective-C exceptions not caught by previous \f(CW@catch\fR
2271 clauses (if any).
2272 .Sp
2273 The \f(CW@finally\fR clause, if present, will be executed upon exit from the
2274 immediately preceding \f(CW\*(C`@try ... @catch\*(C'\fR section.  This will happen
2275 regardless of whether any exceptions are thrown, caught or rethrown
2276 inside the \f(CW\*(C`@try ... @catch\*(C'\fR section, analogously to the behavior
2277 of the \f(CW\*(C`finally\*(C'\fR clause in Java.
2278 .Sp
2279 There are several caveats to using the new exception mechanism:
2280 .RS 4
2281 .IP "\(bu" 4
2282 Although currently designed to be binary compatible with \f(CW\*(C`NS_HANDLER\*(C'\fR\-style
2283 idioms provided by the \f(CW\*(C`NSException\*(C'\fR class, the new
2284 exceptions can only be used on Mac \s-1OS\s0 X 10.3 (Panther) and later
2285 systems, due to additional functionality needed in the (NeXT) Objective-C
2286 runtime.
2287 .IP "\(bu" 4
2288 As mentioned above, the new exceptions do not support handling
2289 types other than Objective-C objects.   Furthermore, when used from
2290 Objective\-\*(C+, the Objective-C exception model does not interoperate with \*(C+
2291 exceptions at this time.  This means you cannot \f(CW@throw\fR an exception
2292 from Objective-C and \f(CW\*(C`catch\*(C'\fR it in \*(C+, or vice versa
2293 (i.e., \f(CW\*(C`throw ... @catch\*(C'\fR).
2294 .RE
2295 .RS 4
2296 .Sp
2297 The \fB\-fobjc\-exceptions\fR switch also enables the use of synchronization
2298 blocks for thread-safe execution:
2299 .Sp
2300 .Vb 3
2301 \&          @synchronized (ObjCClass *guard) {
2302 \&            ...
2303 \&          }
2304 .Ve
2305 .Sp
2306 Upon entering the \f(CW@synchronized\fR block, a thread of execution shall
2307 first check whether a lock has been placed on the corresponding \f(CW\*(C`guard\*(C'\fR
2308 object by another thread.  If it has, the current thread shall wait until
2309 the other thread relinquishes its lock.  Once \f(CW\*(C`guard\*(C'\fR becomes available,
2310 the current thread will place its own lock on it, execute the code contained in
2311 the \f(CW@synchronized\fR block, and finally relinquish the lock (thereby
2312 making \f(CW\*(C`guard\*(C'\fR available to other threads).
2313 .Sp
2314 Unlike Java, Objective-C does not allow for entire methods to be marked
2315 \&\f(CW@synchronized\fR.  Note that throwing exceptions out of
2316 \&\f(CW@synchronized\fR blocks is allowed, and will cause the guarding object
2317 to be unlocked properly.
2318 .RE
2319 .IP "\fB\-fobjc\-gc\fR" 4
2320 .IX Item "-fobjc-gc"
2321 Enable garbage collection (\s-1GC\s0) in Objective-C and Objective\-\*(C+ programs.
2322 .IP "\fB\-freplace\-objc\-classes\fR" 4
2323 .IX Item "-freplace-objc-classes"
2324 Emit a special marker instructing \fB\f(BIld\fB\|(1)\fR not to statically link in
2325 the resulting object file, and allow \fB\f(BIdyld\fB\|(1)\fR to load it in at
2326 run time instead.  This is used in conjunction with the Fix-and-Continue
2327 debugging mode, where the object file in question may be recompiled and
2328 dynamically reloaded in the course of program execution, without the need
2329 to restart the program itself.  Currently, Fix-and-Continue functionality
2330 is only available in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.3
2331 and later.
2332 .IP "\fB\-fzero\-link\fR" 4
2333 .IX Item "-fzero-link"
2334 When compiling for the NeXT runtime, the compiler ordinarily replaces calls
2335 to \f(CW\*(C`objc_getClass("...")\*(C'\fR (when the name of the class is known at
2336 compile time) with static class references that get initialized at load time,
2337 which improves run-time performance.  Specifying the \fB\-fzero\-link\fR flag
2338 suppresses this behavior and causes calls to \f(CW\*(C`objc_getClass("...")\*(C'\fR
2339 to be retained.  This is useful in Zero-Link debugging mode, since it allows
2340 for individual class implementations to be modified during program execution.
2341 .IP "\fB\-gen\-decls\fR" 4
2342 .IX Item "-gen-decls"
2343 Dump interface declarations for all classes seen in the source file to a
2344 file named \fI\fIsourcename\fI.decl\fR.
2345 .IP "\fB\-Wassign\-intercept\fR (Objective-C and Objective\-\*(C+ only)" 4
2346 .IX Item "-Wassign-intercept (Objective-C and Objective- only)"
2347 Warn whenever an Objective-C assignment is being intercepted by the
2348 garbage collector.
2349 .IP "\fB\-Wno\-protocol\fR (Objective-C and Objective\-\*(C+ only)" 4
2350 .IX Item "-Wno-protocol (Objective-C and Objective- only)"
2351 If a class is declared to implement a protocol, a warning is issued for
2352 every method in the protocol that is not implemented by the class.  The
2353 default behavior is to issue a warning for every method not explicitly
2354 implemented in the class, even if a method implementation is inherited
2355 from the superclass.  If you use the \fB\-Wno\-protocol\fR option, then
2356 methods inherited from the superclass are considered to be implemented,
2357 and no warning is issued for them.
2358 .IP "\fB\-Wselector\fR (Objective-C and Objective\-\*(C+ only)" 4
2359 .IX Item "-Wselector (Objective-C and Objective- only)"
2360 Warn if multiple methods of different types for the same selector are
2361 found during compilation.  The check is performed on the list of methods
2362 in the final stage of compilation.  Additionally, a check is performed
2363 for each selector appearing in a \f(CW\*(C`@selector(...)\*(C'\fR
2364 expression, and a corresponding method for that selector has been found
2365 during compilation.  Because these checks scan the method table only at
2366 the end of compilation, these warnings are not produced if the final
2367 stage of compilation is not reached, for example because an error is
2368 found during compilation, or because the \fB\-fsyntax\-only\fR option is
2369 being used.
2370 .IP "\fB\-Wstrict\-selector\-match\fR (Objective-C and Objective\-\*(C+ only)" 4
2371 .IX Item "-Wstrict-selector-match (Objective-C and Objective- only)"
2372 Warn if multiple methods with differing argument and/or return types are
2373 found for a given selector when attempting to send a message using this
2374 selector to a receiver of type \f(CW\*(C`id\*(C'\fR or \f(CW\*(C`Class\*(C'\fR.  When this flag
2375 is off (which is the default behavior), the compiler will omit such warnings
2376 if any differences found are confined to types which share the same size
2377 and alignment.
2378 .IP "\fB\-Wundeclared\-selector\fR (Objective-C and Objective\-\*(C+ only)" 4
2379 .IX Item "-Wundeclared-selector (Objective-C and Objective- only)"
2380 Warn if a \f(CW\*(C`@selector(...)\*(C'\fR expression referring to an
2381 undeclared selector is found.  A selector is considered undeclared if no
2382 method with that name has been declared before the
2383 \&\f(CW\*(C`@selector(...)\*(C'\fR expression, either explicitly in an
2384 \&\f(CW@interface\fR or \f(CW@protocol\fR declaration, or implicitly in
2385 an \f(CW@implementation\fR section.  This option always performs its
2386 checks as soon as a \f(CW\*(C`@selector(...)\*(C'\fR expression is found,
2387 while \fB\-Wselector\fR only performs its checks in the final stage of
2388 compilation.  This also enforces the coding style convention
2389 that methods and selectors must be declared before being used.
2390 .IP "\fB\-print\-objc\-runtime\-info\fR" 4
2391 .IX Item "-print-objc-runtime-info"
2392 Generate C header describing the largest structure that is passed by
2393 value, if any.
2394 .Sh "Options to Control Diagnostic Messages Formatting"
2395 .IX Subsection "Options to Control Diagnostic Messages Formatting"
2396 Traditionally, diagnostic messages have been formatted irrespective of
2397 the output device's aspect (e.g. its width, ...).  The options described
2398 below can be used to control the diagnostic messages formatting
2399 algorithm, e.g. how many characters per line, how often source location
2400 information should be reported.  Right now, only the \*(C+ front end can
2401 honor these options.  However it is expected, in the near future, that
2402 the remaining front ends would be able to digest them correctly.
2403 .IP "\fB\-fmessage\-length=\fR\fIn\fR" 4
2404 .IX Item "-fmessage-length=n"
2405 Try to format error messages so that they fit on lines of about \fIn\fR
2406 characters.  The default is 72 characters for \fBg++\fR and 0 for the rest of
2407 the front ends supported by \s-1GCC\s0.  If \fIn\fR is zero, then no
2408 line-wrapping will be done; each error message will appear on a single
2409 line.
2410 .IP "\fB\-fdiagnostics\-show\-location=once\fR" 4
2411 .IX Item "-fdiagnostics-show-location=once"
2412 Only meaningful in line-wrapping mode.  Instructs the diagnostic messages
2413 reporter to emit \fIonce\fR source location information; that is, in
2414 case the message is too long to fit on a single physical line and has to
2415 be wrapped, the source location won't be emitted (as prefix) again,
2416 over and over, in subsequent continuation lines.  This is the default
2417 behavior.
2418 .IP "\fB\-fdiagnostics\-show\-location=every\-line\fR" 4
2419 .IX Item "-fdiagnostics-show-location=every-line"
2420 Only meaningful in line-wrapping mode.  Instructs the diagnostic
2421 messages reporter to emit the same source location information (as
2422 prefix) for physical lines that result from the process of breaking
2423 a message which is too long to fit on a single line.
2424 .IP "\fB\-fdiagnostics\-show\-option\fR" 4
2425 .IX Item "-fdiagnostics-show-option"
2426 This option instructs the diagnostic machinery to add text to each
2427 diagnostic emitted, which indicates which command line option directly
2428 controls that diagnostic, when such an option is known to the
2429 diagnostic machinery.
2430 .IP "\fB\-Wcoverage\-mismatch\fR" 4
2431 .IX Item "-Wcoverage-mismatch"
2432 Warn if feedback profiles do not match when using the
2433 \&\fB\-fprofile\-use\fR option.
2434 If a source file was changed between \fB\-fprofile\-gen\fR and
2435 \&\fB\-fprofile\-use\fR, the files with the profile feedback can fail
2436 to match the source file and \s-1GCC\s0 can not use the profile feedback
2437 information.  By default, \s-1GCC\s0 emits an error message in this case.
2438 The option \fB\-Wcoverage\-mismatch\fR emits a warning instead of an
2439 error.  \s-1GCC\s0 does not use appropriate feedback profiles, so using this
2440 option can result in poorly optimized code.  This option is useful
2441 only in the case of very minor changes such as bug fixes to an
2442 existing code-base.
2443 .Sh "Options to Request or Suppress Warnings"
2444 .IX Subsection "Options to Request or Suppress Warnings"
2445 Warnings are diagnostic messages that report constructions which
2446 are not inherently erroneous but which are risky or suggest there
2447 may have been an error.
2448 .PP
2449 The following language-independent options do not enable specific
2450 warnings but control the kinds of diagnostics produced by \s-1GCC\s0.
2451 .IP "\fB\-fsyntax\-only\fR" 4
2452 .IX Item "-fsyntax-only"
2453 Check the code for syntax errors, but don't do anything beyond that.
2454 .IP "\fB\-w\fR" 4
2455 .IX Item "-w"
2456 Inhibit all warning messages.
2457 .IP "\fB\-Werror\fR" 4
2458 .IX Item "-Werror"
2459 Make all warnings into errors.
2460 .IP "\fB\-Werror=\fR" 4
2461 .IX Item "-Werror="
2462 Make the specified warning into an error.  The specifier for a warning
2463 is appended, for example \fB\-Werror=switch\fR turns the warnings
2464 controlled by \fB\-Wswitch\fR into errors.  This switch takes a
2465 negative form, to be used to negate \fB\-Werror\fR for specific
2466 warnings, for example \fB\-Wno\-error=switch\fR makes
2467 \&\fB\-Wswitch\fR warnings not be errors, even when \fB\-Werror\fR
2468 is in effect.  You can use the \fB\-fdiagnostics\-show\-option\fR
2469 option to have each controllable warning amended with the option which
2470 controls it, to determine what to use with this option.
2471 .Sp
2472 Note that specifying \fB\-Werror=\fR\fIfoo\fR automatically implies
2473 \&\fB\-W\fR\fIfoo\fR.  However, \fB\-Wno\-error=\fR\fIfoo\fR does not
2474 imply anything.
2475 .IP "\fB\-Wfatal\-errors\fR" 4
2476 .IX Item "-Wfatal-errors"
2477 This option causes the compiler to abort compilation on the first error
2478 occurred rather than trying to keep going and printing further error
2479 messages.
2480 .PP
2481 You can request many specific warnings with options beginning
2482 \&\fB\-W\fR, for example \fB\-Wimplicit\fR to request warnings on
2483 implicit declarations.  Each of these specific warning options also
2484 has a negative form beginning \fB\-Wno\-\fR to turn off warnings; for
2485 example, \fB\-Wno\-implicit\fR.  This manual lists only one of the
2486 two forms, whichever is not the default.  For further,
2487 language-specific options also refer to \fB\*(C+ Dialect Options\fR and
2488 \&\fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
2489 .IP "\fB\-pedantic\fR" 4
2490 .IX Item "-pedantic"
2491 Issue all the warnings demanded by strict \s-1ISO\s0 C and \s-1ISO\s0 \*(C+;
2492 reject all programs that use forbidden extensions, and some other
2493 programs that do not follow \s-1ISO\s0 C and \s-1ISO\s0 \*(C+.  For \s-1ISO\s0 C, follows the
2494 version of the \s-1ISO\s0 C standard specified by any \fB\-std\fR option used.
2495 .Sp
2496 Valid \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ programs should compile properly with or without
2497 this option (though a rare few will require \fB\-ansi\fR or a
2498 \&\fB\-std\fR option specifying the required version of \s-1ISO\s0 C).  However,
2499 without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
2500 features are supported as well.  With this option, they are rejected.
2501 .Sp
2502 \&\fB\-pedantic\fR does not cause warning messages for use of the
2503 alternate keywords whose names begin and end with \fB_\|_\fR.  Pedantic
2504 warnings are also disabled in the expression that follows
2505 \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.  However, only system header files should use
2506 these escape routes; application programs should avoid them.
2507 .Sp
2508 Some users try to use \fB\-pedantic\fR to check programs for strict \s-1ISO\s0
2509 C conformance.  They soon find that it does not do quite what they want:
2510 it finds some non-ISO practices, but not all\-\-\-only those for which
2511 \&\s-1ISO\s0 C \fIrequires\fR a diagnostic, and some others for which
2512 diagnostics have been added.
2513 .Sp
2514 A feature to report any failure to conform to \s-1ISO\s0 C might be useful in
2515 some instances, but would require considerable additional work and would
2516 be quite different from \fB\-pedantic\fR.  We don't have plans to
2517 support such a feature in the near future.
2518 .Sp
2519 Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
2520 extended dialect of C, such as \fBgnu89\fR or \fBgnu99\fR, there is a
2521 corresponding \fIbase standard\fR, the version of \s-1ISO\s0 C on which the \s-1GNU\s0
2522 extended dialect is based.  Warnings from \fB\-pedantic\fR are given
2523 where they are required by the base standard.  (It would not make sense
2524 for such warnings to be given only for features not in the specified \s-1GNU\s0
2525 C dialect, since by definition the \s-1GNU\s0 dialects of C include all
2526 features the compiler supports with the given option, and there would be
2527 nothing to warn about.)
2528 .IP "\fB\-pedantic\-errors\fR" 4
2529 .IX Item "-pedantic-errors"
2530 Like \fB\-pedantic\fR, except that errors are produced rather than
2531 warnings.
2532 .IP "\fB\-Wall\fR" 4
2533 .IX Item "-Wall"
2534 This enables all the warnings about constructions that some users
2535 consider questionable, and that are easy to avoid (or modify to
2536 prevent the warning), even in conjunction with macros.  This also
2537 enables some language-specific warnings described in \fB\*(C+ Dialect
2538 Options\fR and \fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
2539 .Sp
2540 \&\fB\-Wall\fR turns on the following warning flags:
2541 .Sp
2542 \&\fB\-Waddress   
2543 \&\-Warray\-bounds\fR (only with\fB \fR\fB\-O2\fR)  
2544 \&\fB\-Wc++0x\-compat  
2545 \&\-Wchar\-subscripts  
2546 \&\-Wimplicit\-int  
2547 \&\-Wimplicit\-function\-declaration  
2548 \&\-Wcomment  
2549 \&\-Wformat   
2550 \&\-Wmain\fR (only for C/ObjC and unless\fB \fR\fB\-ffreestanding\fR)  
2551 \&\fB\-Wmissing\-braces  
2552 \&\-Wnonnull  
2553 \&\-Wparentheses  
2554 \&\-Wpointer\-sign  
2555 \&\-Wreorder   
2556 \&\-Wreturn\-type  
2557 \&\-Wsequence\-point  
2558 \&\-Wsign\-compare\fR (only in \*(C+)  
2559 \&\fB\-Wstrict\-aliasing  
2560 \&\-Wstrict\-overflow=1  
2561 \&\-Wswitch  
2562 \&\-Wtrigraphs  
2563 \&\-Wuninitialized  
2564 \&\-Wunknown\-pragmas  
2565 \&\-Wunused\-function  
2566 \&\-Wunused\-label     
2567 \&\-Wunused\-value     
2568 \&\-Wunused\-variable  
2569 \&\-Wvolatile\-register\-var\fR
2570 .Sp
2571 Note that some warning flags are not implied by \fB\-Wall\fR.  Some of
2572 them warn about constructions that users generally do not consider
2573 questionable, but which occasionally you might wish to check for;
2574 others warn about constructions that are necessary or hard to avoid in
2575 some cases, and there is no simple way to modify the code to suppress
2576 the warning. Some of them are enabled by \fB\-Wextra\fR but many of
2577 them must be enabled individually.
2578 .IP "\fB\-Wextra\fR" 4
2579 .IX Item "-Wextra"
2580 This enables some extra warning flags that are not enabled by
2581 \&\fB\-Wall\fR. (This option used to be called \fB\-W\fR.  The older
2582 name is still supported, but the newer name is more descriptive.)
2583 .Sp
2584 \&\fB\-Wclobbered  
2585 \&\-Wempty\-body  
2586 \&\-Wignored\-qualifiers 
2587 \&\-Wmissing\-field\-initializers  
2588 \&\-Wmissing\-parameter\-type\fR (C only)  
2589 \&\fB\-Wold\-style\-declaration\fR (C only)  
2590 \&\fB\-Woverride\-init  
2591 \&\-Wsign\-compare  
2592 \&\-Wtype\-limits  
2593 \&\-Wuninitialized  
2594 \&\-Wunused\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR)  \fB \fR
2595 .Sp
2596 The option \fB\-Wextra\fR also prints warning messages for the
2597 following cases:
2598 .RS 4
2599 .IP "\(bu" 4
2600 A pointer is compared against integer zero with \fB<\fR, \fB<=\fR,
2601 \&\fB>\fR, or \fB>=\fR.
2602 .IP "\(bu" 4
2603 (\*(C+ only) An enumerator and a non-enumerator both appear in a
2604 conditional expression.
2605 .IP "\(bu" 4
2606 (\*(C+ only) Ambiguous virtual bases.
2607 .IP "\(bu" 4
2608 (\*(C+ only) Subscripting an array which has been declared \fBregister\fR.
2609 .IP "\(bu" 4
2610 (\*(C+ only) Taking the address of a variable which has been declared
2611 \&\fBregister\fR.
2612 .IP "\(bu" 4
2613 (\*(C+ only) A base class is not initialized in a derived class' copy
2614 constructor.
2615 .RE
2616 .RS 4
2617 .RE
2618 .IP "\fB\-Wchar\-subscripts\fR" 4
2619 .IX Item "-Wchar-subscripts"
2620 Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR.  This is a common cause
2621 of error, as programmers often forget that this type is signed on some
2622 machines.
2623 This warning is enabled by \fB\-Wall\fR.
2624 .IP "\fB\-Wcomment\fR" 4
2625 .IX Item "-Wcomment"
2626 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
2627 comment, or whenever a Backslash-Newline appears in a \fB//\fR comment.
2628 This warning is enabled by \fB\-Wall\fR.
2629 .IP "\fB\-Wformat\fR" 4
2630 .IX Item "-Wformat"
2631 Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
2632 the arguments supplied have types appropriate to the format string
2633 specified, and that the conversions specified in the format string make
2634 sense.  This includes standard functions, and others specified by format
2635 attributes, in the \f(CW\*(C`printf\*(C'\fR,
2636 \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
2637 not in the C standard) families (or other target-specific families).
2638 Which functions are checked without format attributes having been
2639 specified depends on the standard version selected, and such checks of
2640 functions without the attribute specified are disabled by
2641 \&\fB\-ffreestanding\fR or \fB\-fno\-builtin\fR.
2642 .Sp
2643 The formats are checked against the format features supported by \s-1GNU\s0
2644 libc version 2.2.  These include all \s-1ISO\s0 C90 and C99 features, as well
2645 as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
2646 extensions.  Other library implementations may not support all these
2647 features; \s-1GCC\s0 does not support warning about features that go beyond a
2648 particular library's limitations.  However, if \fB\-pedantic\fR is used
2649 with \fB\-Wformat\fR, warnings will be given about format features not
2650 in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
2651 since those are not in any version of the C standard).
2652 .Sp
2653 Since \fB\-Wformat\fR also checks for null format arguments for
2654 several functions, \fB\-Wformat\fR also implies \fB\-Wnonnull\fR.
2655 .Sp
2656 \&\fB\-Wformat\fR is included in \fB\-Wall\fR.  For more control over some
2657 aspects of format checking, the options \fB\-Wformat\-y2k\fR,
2658 \&\fB\-Wno\-format\-extra\-args\fR, \fB\-Wno\-format\-zero\-length\fR,
2659 \&\fB\-Wformat\-nonliteral\fR, \fB\-Wformat\-security\fR, and
2660 \&\fB\-Wformat=2\fR are available, but are not included in \fB\-Wall\fR.
2661 .IP "\fB\-Wformat\-y2k\fR" 4
2662 .IX Item "-Wformat-y2k"
2663 If \fB\-Wformat\fR is specified, also warn about \f(CW\*(C`strftime\*(C'\fR
2664 formats which may yield only a two-digit year.
2665 .IP "\fB\-Wno\-format\-contains\-nul\fR" 4
2666 .IX Item "-Wno-format-contains-nul"
2667 If \fB\-Wformat\fR is specified, do not warn about format strings that
2668 contain \s-1NUL\s0 bytes.
2669 .IP "\fB\-Wno\-format\-extra\-args\fR" 4
2670 .IX Item "-Wno-format-extra-args"
2671 If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
2672 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function.  The C standard specifies
2673 that such arguments are ignored.
2674 .Sp
2675 Where the unused arguments lie between used arguments that are
2676 specified with \fB$\fR operand number specifications, normally
2677 warnings are still given, since the implementation could not know what
2678 type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments.  However,
2679 in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option will suppress the
2680 warning if the unused arguments are all pointers, since the Single
2681 Unix Specification says that such unused arguments are allowed.
2682 .IP "\fB\-Wno\-format\-zero\-length\fR (C and Objective-C only)" 4
2683 .IX Item "-Wno-format-zero-length (C and Objective-C only)"
2684 If \fB\-Wformat\fR is specified, do not warn about zero-length formats.
2685 The C standard specifies that zero-length formats are allowed.
2686 .IP "\fB\-Wformat\-nonliteral\fR" 4
2687 .IX Item "-Wformat-nonliteral"
2688 If \fB\-Wformat\fR is specified, also warn if the format string is not a
2689 string literal and so cannot be checked, unless the format function
2690 takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
2691 .IP "\fB\-Wformat\-security\fR" 4
2692 .IX Item "-Wformat-security"
2693 If \fB\-Wformat\fR is specified, also warn about uses of format
2694 functions that represent possible security problems.  At present, this
2695 warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
2696 format string is not a string literal and there are no format arguments,
2697 as in \f(CW\*(C`printf (foo);\*(C'\fR.  This may be a security hole if the format
2698 string came from untrusted input and contains \fB\f(CB%n\fB\fR.  (This is
2699 currently a subset of what \fB\-Wformat\-nonliteral\fR warns about, but
2700 in future warnings may be added to \fB\-Wformat\-security\fR that are not
2701 included in \fB\-Wformat\-nonliteral\fR.)
2702 .IP "\fB\-Wformat=2\fR" 4
2703 .IX Item "-Wformat=2"
2704 Enable \fB\-Wformat\fR plus format checks not included in
2705 \&\fB\-Wformat\fR.  Currently equivalent to \fB\-Wformat
2706 \&\-Wformat\-nonliteral \-Wformat\-security \-Wformat\-y2k\fR.
2707 .IP "\fB\-Wnonnull\fR (C and Objective-C only)" 4
2708 .IX Item "-Wnonnull (C and Objective-C only)"
2709 Warn about passing a null pointer for arguments marked as
2710 requiring a non-null value by the \f(CW\*(C`nonnull\*(C'\fR function attribute.
2711 .Sp
2712 \&\fB\-Wnonnull\fR is included in \fB\-Wall\fR and \fB\-Wformat\fR.  It
2713 can be disabled with the \fB\-Wno\-nonnull\fR option.
2714 .IP "\fB\-Winit\-self\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
2715 .IX Item "-Winit-self (C, , Objective-C and Objective- only)"
2716 Warn about uninitialized variables which are initialized with themselves.
2717 Note this option can only be used with the \fB\-Wuninitialized\fR option.
2718 .Sp
2719 For example, \s-1GCC\s0 will warn about \f(CW\*(C`i\*(C'\fR being uninitialized in the
2720 following snippet only when \fB\-Winit\-self\fR has been specified:
2721 .Sp
2722 .Vb 5
2723 \&        int f()
2724 \&        {
2725 \&          int i = i;
2726 \&          return i;
2727 \&        }
2728 .Ve
2729 .IP "\fB\-Wimplicit\-int\fR (C and Objective-C only)" 4
2730 .IX Item "-Wimplicit-int (C and Objective-C only)"
2731 Warn when a declaration does not specify a type.
2732 This warning is enabled by \fB\-Wall\fR.
2733 .IP "\fB\-Wimplicit\-function\-declaration\fR (C and Objective-C only)" 4
2734 .IX Item "-Wimplicit-function-declaration (C and Objective-C only)"
2735 Give a warning whenever a function is used before being declared. In
2736 C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this warning is
2737 enabled by default and it is made into an error by
2738 \&\fB\-pedantic\-errors\fR. This warning is also enabled by
2739 \&\fB\-Wall\fR.
2740 .IP "\fB\-Wimplicit\fR" 4
2741 .IX Item "-Wimplicit"
2742 Same as \fB\-Wimplicit\-int\fR and \fB\-Wimplicit\-function\-declaration\fR.
2743 This warning is enabled by \fB\-Wall\fR.
2744 .IP "\fB\-Wignored\-qualifiers\fR (C and \*(C+ only)" 4
2745 .IX Item "-Wignored-qualifiers (C and  only)"
2746 Warn if the return type of a function has a type qualifier
2747 such as \f(CW\*(C`const\*(C'\fR.  For \s-1ISO\s0 C such a type qualifier has no effect,
2748 since the value returned by a function is not an lvalue.
2749 For \*(C+, the warning is only emitted for scalar types or \f(CW\*(C`void\*(C'\fR.
2750 \&\s-1ISO\s0 C prohibits qualified \f(CW\*(C`void\*(C'\fR return types on function
2751 definitions, so such return types always receive a warning
2752 even without this option.
2753 .Sp
2754 This warning is also enabled by \fB\-Wextra\fR.
2755 .IP "\fB\-Wmain\fR" 4
2756 .IX Item "-Wmain"
2757 Warn if the type of \fBmain\fR is suspicious.  \fBmain\fR should be
2758 a function with external linkage, returning int, taking either zero
2759 arguments, two, or three arguments of appropriate types.  This warning
2760 is enabled by default in \*(C+ and is enabled by either \fB\-Wall\fR
2761 or \fB\-pedantic\fR.
2762 .IP "\fB\-Wmissing\-braces\fR" 4
2763 .IX Item "-Wmissing-braces"
2764 Warn if an aggregate or union initializer is not fully bracketed.  In
2765 the following example, the initializer for \fBa\fR is not fully
2766 bracketed, but that for \fBb\fR is fully bracketed.
2767 .Sp
2768 .Vb 2
2769 \&        int a[2][2] = { 0, 1, 2, 3 };
2770 \&        int b[2][2] = { { 0, 1 }, { 2, 3 } };
2771 .Ve
2772 .Sp
2773 This warning is enabled by \fB\-Wall\fR.
2774 .IP "\fB\-Wmissing\-include\-dirs\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
2775 .IX Item "-Wmissing-include-dirs (C, , Objective-C and Objective- only)"
2776 Warn if a user-supplied include directory does not exist.
2777 .IP "\fB\-Wparentheses\fR" 4
2778 .IX Item "-Wparentheses"
2779 Warn if parentheses are omitted in certain contexts, such
2780 as when there is an assignment in a context where a truth value
2781 is expected, or when operators are nested whose precedence people
2782 often get confused about.
2783 .Sp
2784 Also warn if a comparison like \fBx<=y<=z\fR appears; this is
2785 equivalent to \fB(x<=y ? 1 : 0) <= z\fR, which is a different
2786 interpretation from that of ordinary mathematical notation.
2787 .Sp
2788 Also warn about constructions where there may be confusion to which
2789 \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs.  Here is an example of
2790 such a case:
2791 .Sp
2792 .Vb 7
2793 \&        {
2794 \&          if (a)
2795 \&            if (b)
2796 \&              foo ();
2797 \&          else
2798 \&            bar ();
2799 \&        }
2800 .Ve
2801 .Sp
2802 In C/\*(C+, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible
2803 \&\f(CW\*(C`if\*(C'\fR statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR.  This is
2804 often not what the programmer expected, as illustrated in the above
2805 example by indentation the programmer chose.  When there is the
2806 potential for this confusion, \s-1GCC\s0 will issue a warning when this flag
2807 is specified.  To eliminate the warning, add explicit braces around
2808 the innermost \f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR
2809 could belong to the enclosing \f(CW\*(C`if\*(C'\fR.  The resulting code would
2810 look like this:
2811 .Sp
2812 .Vb 9
2813 \&        {
2814 \&          if (a)
2815 \&            {
2816 \&              if (b)
2817 \&                foo ();
2818 \&              else
2819 \&                bar ();
2820 \&            }
2821 \&        }
2822 .Ve
2823 .Sp
2824 This warning is enabled by \fB\-Wall\fR.
2825 .IP "\fB\-Wsequence\-point\fR" 4
2826 .IX Item "-Wsequence-point"
2827 Warn about code that may have undefined semantics because of violations
2828 of sequence point rules in the C and \*(C+ standards.
2829 .Sp
2830 The C and \*(C+ standards defines the order in which expressions in a C/\*(C+
2831 program are evaluated in terms of \fIsequence points\fR, which represent
2832 a partial ordering between the execution of parts of the program: those
2833 executed before the sequence point, and those executed after it.  These
2834 occur after the evaluation of a full expression (one which is not part
2835 of a larger expression), after the evaluation of the first operand of a
2836 \&\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
2837 function is called (but after the evaluation of its arguments and the
2838 expression denoting the called function), and in certain other places.
2839 Other than as expressed by the sequence point rules, the order of
2840 evaluation of subexpressions of an expression is not specified.  All
2841 these rules describe only a partial order rather than a total order,
2842 since, for example, if two functions are called within one expression
2843 with no sequence point between them, the order in which the functions
2844 are called is not specified.  However, the standards committee have
2845 ruled that function calls do not overlap.
2846 .Sp
2847 It is not specified when between sequence points modifications to the
2848 values of objects take effect.  Programs whose behavior depends on this
2849 have undefined behavior; the C and \*(C+ standards specify that \*(L"Between
2850 the previous and next sequence point an object shall have its stored
2851 value modified at most once by the evaluation of an expression.
2852 Furthermore, the prior value shall be read only to determine the value
2853 to be stored.\*(R".  If a program breaks these rules, the results on any
2854 particular implementation are entirely unpredictable.
2855 .Sp
2856 Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
2857 = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR.  Some more complicated cases are not
2858 diagnosed by this option, and it may give an occasional false positive
2859 result, but in general it has been found fairly effective at detecting
2860 this sort of problem in programs.
2861 .Sp
2862 The standard is worded confusingly, therefore there is some debate
2863 over the precise meaning of the sequence point rules in subtle cases.
2864 Links to discussions of the problem, including proposed formal
2865 definitions, may be found on the \s-1GCC\s0 readings page, at
2866 <\fBhttp://gcc.gnu.org/readings.html\fR>.
2867 .Sp
2868 This warning is enabled by \fB\-Wall\fR for C and \*(C+.
2869 .IP "\fB\-Wreturn\-type\fR" 4
2870 .IX Item "-Wreturn-type"
2871 Warn whenever a function is defined with a return-type that defaults
2872 to \f(CW\*(C`int\*(C'\fR.  Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
2873 return-value in a function whose return-type is not \f(CW\*(C`void\*(C'\fR
2874 (falling off the end of the function body is considered returning
2875 without a value), and about a \f(CW\*(C`return\*(C'\fR statement with a
2876 expression in a function whose return-type is \f(CW\*(C`void\*(C'\fR.
2877 .Sp
2878 For \*(C+, a function without return type always produces a diagnostic
2879 message, even when \fB\-Wno\-return\-type\fR is specified.  The only
2880 exceptions are \fBmain\fR and functions defined in system headers.
2881 .Sp
2882 This warning is enabled by \fB\-Wall\fR.
2883 .IP "\fB\-Wswitch\fR" 4
2884 .IX Item "-Wswitch"
2885 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
2886 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
2887 enumeration.  (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
2888 warning.)  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2889 provoke warnings when this option is used.
2890 This warning is enabled by \fB\-Wall\fR.
2891 .IP "\fB\-Wswitch\-default\fR" 4
2892 .IX Item "-Wswitch-default"
2893 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement does not have a \f(CW\*(C`default\*(C'\fR
2894 case.
2895 .IP "\fB\-Wswitch\-enum\fR" 4
2896 .IX Item "-Wswitch-enum"
2897 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
2898 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
2899 enumeration.  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
2900 provoke warnings when this option is used.
2901 .IP "\fB\-Wsync\-nand\fR (C and \*(C+ only)" 4
2902 .IX Item "-Wsync-nand (C and  only)"
2903 Warn when \f(CW\*(C`_\|_sync_fetch_and_nand\*(C'\fR and \f(CW\*(C`_\|_sync_nand_and_fetch\*(C'\fR
2904 built-in functions are used.  These functions changed semantics in \s-1GCC\s0 4.4.
2905 .IP "\fB\-Wtrigraphs\fR" 4
2906 .IX Item "-Wtrigraphs"
2907 Warn if any trigraphs are encountered that might change the meaning of
2908 the program (trigraphs within comments are not warned about).
2909 This warning is enabled by \fB\-Wall\fR.
2910 .IP "\fB\-Wunused\-function\fR" 4
2911 .IX Item "-Wunused-function"
2912 Warn whenever a static function is declared but not defined or a
2913 non-inline static function is unused.
2914 This warning is enabled by \fB\-Wall\fR.
2915 .IP "\fB\-Wunused\-label\fR" 4
2916 .IX Item "-Wunused-label"
2917 Warn whenever a label is declared but not used.
2918 This warning is enabled by \fB\-Wall\fR.
2919 .Sp
2920 To suppress this warning use the \fBunused\fR attribute.
2921 .IP "\fB\-Wunused\-parameter\fR" 4
2922 .IX Item "-Wunused-parameter"
2923 Warn whenever a function parameter is unused aside from its declaration.
2924 .Sp
2925 To suppress this warning use the \fBunused\fR attribute.
2926 .IP "\fB\-Wunused\-variable\fR" 4
2927 .IX Item "-Wunused-variable"
2928 Warn whenever a local variable or non-constant static variable is unused
2929 aside from its declaration.
2930 This warning is enabled by \fB\-Wall\fR.
2931 .Sp
2932 To suppress this warning use the \fBunused\fR attribute.
2933 .IP "\fB\-Wunused\-value\fR" 4
2934 .IX Item "-Wunused-value"
2935 Warn whenever a statement computes a result that is explicitly not
2936 used. To suppress this warning cast the unused expression to
2937 \&\fBvoid\fR. This includes an expression-statement or the left-hand
2938 side of a comma expression that contains no side effects. For example,
2939 an expression such as \fBx[i,j]\fR will cause a warning, while
2940 \&\fBx[(void)i,j]\fR will not.
2941 .Sp
2942 This warning is enabled by \fB\-Wall\fR.
2943 .IP "\fB\-Wunused\fR" 4
2944 .IX Item "-Wunused"
2945 All the above \fB\-Wunused\fR options combined.
2946 .Sp
2947 In order to get a warning about an unused function parameter, you must
2948 either specify \fB\-Wextra \-Wunused\fR (note that \fB\-Wall\fR implies
2949 \&\fB\-Wunused\fR), or separately specify \fB\-Wunused\-parameter\fR.
2950 .IP "\fB\-Wuninitialized\fR" 4
2951 .IX Item "-Wuninitialized"
2952 Warn if an automatic variable is used without first being initialized
2953 or if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call. In \*(C+,
2954 warn if a non-static reference or non-static \fBconst\fR member
2955 appears in a class without constructors.
2956 .Sp
2957 If you want to warn about code which uses the uninitialized value of the
2958 variable in its own initializer, use the \fB\-Winit\-self\fR option.
2959 .Sp
2960 These warnings occur for individual uninitialized or clobbered
2961 elements of structure, union or array variables as well as for
2962 variables which are uninitialized or clobbered as a whole.  They do
2963 not occur for variables or elements declared \f(CW\*(C`volatile\*(C'\fR.  Because
2964 these warnings depend on optimization, the exact variables or elements
2965 for which there are warnings will depend on the precise optimization
2966 options and version of \s-1GCC\s0 used.
2967 .Sp
2968 Note that there may be no warning about a variable that is used only
2969 to compute a value that itself is never used, because such
2970 computations may be deleted by data flow analysis before the warnings
2971 are printed.
2972 .Sp
2973 These warnings are made optional because \s-1GCC\s0 is not smart
2974 enough to see all the reasons why the code might be correct
2975 despite appearing to have an error.  Here is one example of how
2976 this can happen:
2977 .Sp
2978 .Vb 12
2979 \&        {
2980 \&          int x;
2981 \&          switch (y)
2982 \&            {
2983 \&            case 1: x = 1;
2984 \&              break;
2985 \&            case 2: x = 4;
2986 \&              break;
2987 \&            case 3: x = 5;
2988 \&            }
2989 \&          foo (x);
2990 \&        }
2991 .Ve
2992 .Sp
2993 If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
2994 always initialized, but \s-1GCC\s0 doesn't know this.  Here is
2995 another common case:
2996 .Sp
2997 .Vb 6
2998 \&        {
2999 \&          int save_y;
3000 \&          if (change_y) save_y = y, y = new_y;
3001 \&          ...
3002 \&          if (change_y) y = save_y;
3003 \&        }
3004 .Ve
3005 .Sp
3006 This has no bug because \f(CW\*(C`save_y\*(C'\fR is used only if it is set.
3007 .Sp
3008 This option also warns when a non-volatile automatic variable might be
3009 changed by a call to \f(CW\*(C`longjmp\*(C'\fR.  These warnings as well are possible
3010 only in optimizing compilation.
3011 .Sp
3012 The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR.  It cannot know
3013 where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
3014 call it at any point in the code.  As a result, you may get a warning
3015 even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
3016 in fact be called at the place which would cause a problem.
3017 .Sp
3018 Some spurious warnings can be avoided if you declare all the functions
3019 you use that never return as \f(CW\*(C`noreturn\*(C'\fR.
3020 .Sp
3021 This warning is enabled by \fB\-Wall\fR or \fB\-Wextra\fR.
3022 .IP "\fB\-Wunknown\-pragmas\fR" 4
3023 .IX Item "-Wunknown-pragmas"
3024 Warn when a #pragma directive is encountered which is not understood by
3025 \&\s-1GCC\s0.  If this command line option is used, warnings will even be issued
3026 for unknown pragmas in system header files.  This is not the case if
3027 the warnings were only enabled by the \fB\-Wall\fR command line option.
3028 .IP "\fB\-Wno\-pragmas\fR" 4
3029 .IX Item "-Wno-pragmas"
3030 Do not warn about misuses of pragmas, such as incorrect parameters,
3031 invalid syntax, or conflicts between pragmas.  See also
3032 \&\fB\-Wunknown\-pragmas\fR.
3033 .IP "\fB\-Wstrict\-aliasing\fR" 4
3034 .IX Item "-Wstrict-aliasing"
3035 This option is only active when \fB\-fstrict\-aliasing\fR is active.
3036 It warns about code which might break the strict aliasing rules that the
3037 compiler is using for optimization.  The warning does not catch all
3038 cases, but does attempt to catch the more common pitfalls.  It is
3039 included in \fB\-Wall\fR.
3040 It is equivalent to \fB\-Wstrict\-aliasing=3\fR
3041 .IP "\fB\-Wstrict\-aliasing=n\fR" 4
3042 .IX Item "-Wstrict-aliasing=n"
3043 This option is only active when \fB\-fstrict\-aliasing\fR is active.
3044 It warns about code which might break the strict aliasing rules that the
3045 compiler is using for optimization.
3046 Higher levels correspond to higher accuracy (fewer false positives).
3047 Higher levels also correspond to more effort, similar to the way \-O works.
3048 \&\fB\-Wstrict\-aliasing\fR is equivalent to \fB\-Wstrict\-aliasing=n\fR,
3049 with n=3.
3050 .Sp
3051 Level 1: Most aggressive, quick, least accurate.
3052 Possibly useful when higher levels
3053 do not warn but \-fstrict\-aliasing still breaks the code, as it has very few 
3054 false negatives.  However, it has many false positives.
3055 Warns for all pointer conversions between possibly incompatible types, 
3056 even if never dereferenced.  Runs in the frontend only.
3057 .Sp
3058 Level 2: Aggressive, quick, not too precise.
3059 May still have many false positives (not as many as level 1 though),
3060 and few false negatives (but possibly more than level 1).
3061 Unlike level 1, it only warns when an address is taken.  Warns about
3062 incomplete types.  Runs in the frontend only.
3063 .Sp
3064 Level 3 (default for \fB\-Wstrict\-aliasing\fR): 
3065 Should have very few false positives and few false 
3066 negatives.  Slightly slower than levels 1 or 2 when optimization is enabled.
3067 Takes care of the common punn+dereference pattern in the frontend:
3068 \&\f(CW\*(C`*(int*)&some_float\*(C'\fR.
3069 If optimization is enabled, it also runs in the backend, where it deals 
3070 with multiple statement cases using flow-sensitive points-to information.
3071 Only warns when the converted pointer is dereferenced.
3072 Does not warn about incomplete types.
3073 .IP "\fB\-Wstrict\-overflow\fR" 4
3074 .IX Item "-Wstrict-overflow"
3075 .PD 0
3076 .IP "\fB\-Wstrict\-overflow=\fR\fIn\fR" 4
3077 .IX Item "-Wstrict-overflow=n"
3078 .PD
3079 This option is only active when \fB\-fstrict\-overflow\fR is active.
3080 It warns about cases where the compiler optimizes based on the
3081 assumption that signed overflow does not occur.  Note that it does not
3082 warn about all cases where the code might overflow: it only warns
3083 about cases where the compiler implements some optimization.  Thus
3084 this warning depends on the optimization level.
3085 .Sp
3086 An optimization which assumes that signed overflow does not occur is
3087 perfectly safe if the values of the variables involved are such that
3088 overflow never does, in fact, occur.  Therefore this warning can
3089 easily give a false positive: a warning about code which is not
3090 actually a problem.  To help focus on important issues, several
3091 warning levels are defined.  No warnings are issued for the use of
3092 undefined signed overflow when estimating how many iterations a loop
3093 will require, in particular when determining whether a loop will be
3094 executed at all.
3095 .RS 4
3096 .IP "\fB\-Wstrict\-overflow=1\fR" 4
3097 .IX Item "-Wstrict-overflow=1"
3098 Warn about cases which are both questionable and easy to avoid.  For
3099 example: \f(CW\*(C`x + 1 > x\*(C'\fR; with \fB\-fstrict\-overflow\fR, the
3100 compiler will simplify this to \f(CW1\fR.  This level of
3101 \&\fB\-Wstrict\-overflow\fR is enabled by \fB\-Wall\fR; higher levels
3102 are not, and must be explicitly requested.
3103 .IP "\fB\-Wstrict\-overflow=2\fR" 4
3104 .IX Item "-Wstrict-overflow=2"
3105 Also warn about other cases where a comparison is simplified to a
3106 constant.  For example: \f(CW\*(C`abs (x) >= 0\*(C'\fR.  This can only be
3107 simplified when \fB\-fstrict\-overflow\fR is in effect, because
3108 \&\f(CW\*(C`abs (INT_MIN)\*(C'\fR overflows to \f(CW\*(C`INT_MIN\*(C'\fR, which is less than
3109 zero.  \fB\-Wstrict\-overflow\fR (with no level) is the same as
3110 \&\fB\-Wstrict\-overflow=2\fR.
3111 .IP "\fB\-Wstrict\-overflow=3\fR" 4
3112 .IX Item "-Wstrict-overflow=3"
3113 Also warn about other cases where a comparison is simplified.  For
3114 example: \f(CW\*(C`x + 1 > 1\*(C'\fR will be simplified to \f(CW\*(C`x > 0\*(C'\fR.
3115 .IP "\fB\-Wstrict\-overflow=4\fR" 4
3116 .IX Item "-Wstrict-overflow=4"
3117 Also warn about other simplifications not covered by the above cases.
3118 For example: \f(CW\*(C`(x * 10) / 5\*(C'\fR will be simplified to \f(CW\*(C`x * 2\*(C'\fR.
3119 .IP "\fB\-Wstrict\-overflow=5\fR" 4
3120 .IX Item "-Wstrict-overflow=5"
3121 Also warn about cases where the compiler reduces the magnitude of a
3122 constant involved in a comparison.  For example: \f(CW\*(C`x + 2 > y\*(C'\fR will
3123 be simplified to \f(CW\*(C`x + 1 >= y\*(C'\fR.  This is reported only at the
3124 highest warning level because this simplification applies to many
3125 comparisons, so this warning level will give a very large number of
3126 false positives.
3127 .RE
3128 .RS 4
3129 .RE
3130 .IP "\fB\-Warray\-bounds\fR" 4
3131 .IX Item "-Warray-bounds"
3132 This option is only active when \fB\-ftree\-vrp\fR is active
3133 (default for \-O2 and above). It warns about subscripts to arrays
3134 that are always out of bounds. This warning is enabled by \fB\-Wall\fR.
3135 .IP "\fB\-Wno\-div\-by\-zero\fR" 4
3136 .IX Item "-Wno-div-by-zero"
3137 Do not warn about compile-time integer division by zero.  Floating point
3138 division by zero is not warned about, as it can be a legitimate way of
3139 obtaining infinities and NaNs.
3140 .IP "\fB\-Wsystem\-headers\fR" 4
3141 .IX Item "-Wsystem-headers"
3142 Print warning messages for constructs found in system header files.
3143 Warnings from system headers are normally suppressed, on the assumption
3144 that they usually do not indicate real problems and would only make the
3145 compiler output harder to read.  Using this command line option tells
3146 \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
3147 code.  However, note that using \fB\-Wall\fR in conjunction with this
3148 option will \fInot\fR warn about unknown pragmas in system
3149 headers\-\-\-for that, \fB\-Wunknown\-pragmas\fR must also be used.
3150 .IP "\fB\-Wfloat\-equal\fR" 4
3151 .IX Item "-Wfloat-equal"
3152 Warn if floating point values are used in equality comparisons.
3153 .Sp
3154 The idea behind this is that sometimes it is convenient (for the
3155 programmer) to consider floating-point values as approximations to
3156 infinitely precise real numbers.  If you are doing this, then you need
3157 to compute (by analyzing the code, or in some other way) the maximum or
3158 likely maximum error that the computation introduces, and allow for it
3159 when performing comparisons (and when producing output, but that's a
3160 different problem).  In particular, instead of testing for equality, you
3161 would check to see whether the two values have ranges that overlap; and
3162 this is done with the relational operators, so equality comparisons are
3163 probably mistaken.
3164 .IP "\fB\-Wtraditional\fR (C and Objective-C only)" 4
3165 .IX Item "-Wtraditional (C and Objective-C only)"
3166 Warn about certain constructs that behave differently in traditional and
3167 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
3168 equivalent, and/or problematic constructs which should be avoided.
3169 .RS 4
3170 .IP "\(bu" 4
3171 Macro parameters that appear within string literals in the macro body.
3172 In traditional C macro replacement takes place within string literals,
3173 but does not in \s-1ISO\s0 C.
3174 .IP "\(bu" 4
3175 In traditional C, some preprocessor directives did not exist.
3176 Traditional preprocessors would only consider a line to be a directive
3177 if the \fB#\fR appeared in column 1 on the line.  Therefore
3178 \&\fB\-Wtraditional\fR warns about directives that traditional C
3179 understands but would ignore because the \fB#\fR does not appear as the
3180 first character on the line.  It also suggests you hide directives like
3181 \&\fB#pragma\fR not understood by traditional C by indenting them.  Some
3182 traditional implementations would not recognize \fB#elif\fR, so it
3183 suggests avoiding it altogether.
3184 .IP "\(bu" 4
3185 A function-like macro that appears without arguments.
3186 .IP "\(bu" 4
3187 The unary plus operator.
3188 .IP "\(bu" 4
3189 The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating point
3190 constant suffixes.  (Traditional C does support the \fBL\fR suffix on integer
3191 constants.)  Note, these suffixes appear in macros defined in the system
3192 headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
3193 Use of these macros in user code might normally lead to spurious
3194 warnings, however \s-1GCC\s0's integrated preprocessor has enough context to
3195 avoid warning in these cases.
3196 .IP "\(bu" 4
3197 A function declared external in one block and then used after the end of
3198 the block.
3199 .IP "\(bu" 4
3200 A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
3201 .IP "\(bu" 4
3202 A non\-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
3203 This construct is not accepted by some traditional C compilers.
3204 .IP "\(bu" 4
3205 The \s-1ISO\s0 type of an integer constant has a different width or
3206 signedness from its traditional type.  This warning is only issued if
3207 the base of the constant is ten.  I.e. hexadecimal or octal values, which
3208 typically represent bit patterns, are not warned about.
3209 .IP "\(bu" 4
3210 Usage of \s-1ISO\s0 string concatenation is detected.
3211 .IP "\(bu" 4
3212 Initialization of automatic aggregates.
3213 .IP "\(bu" 4
3214 Identifier conflicts with labels.  Traditional C lacks a separate
3215 namespace for labels.
3216 .IP "\(bu" 4
3217 Initialization of unions.  If the initializer is zero, the warning is
3218 omitted.  This is done under the assumption that the zero initializer in
3219 user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
3220 initializer warnings and relies on default initialization to zero in the
3221 traditional C case.
3222 .IP "\(bu" 4
3223 Conversions by prototypes between fixed/floating point values and vice
3224 versa.  The absence of these prototypes when compiling with traditional
3225 C would cause serious problems.  This is a subset of the possible
3226 conversion warnings, for the full set use \fB\-Wtraditional\-conversion\fR.
3227 .IP "\(bu" 4
3228 Use of \s-1ISO\s0 C style function definitions.  This warning intentionally is
3229 \&\fInot\fR issued for prototype declarations or variadic functions
3230 because these \s-1ISO\s0 C features will appear in your code when using
3231 libiberty's traditional C compatibility macros, \f(CW\*(C`PARAMS\*(C'\fR and
3232 \&\f(CW\*(C`VPARAMS\*(C'\fR.  This warning is also bypassed for nested functions
3233 because that feature is already a \s-1GCC\s0 extension and thus not relevant to
3234 traditional C compatibility.
3235 .RE
3236 .RS 4
3237 .RE
3238 .IP "\fB\-Wtraditional\-conversion\fR (C and Objective-C only)" 4
3239 .IX Item "-Wtraditional-conversion (C and Objective-C only)"
3240 Warn if a prototype causes a type conversion that is different from what
3241 would happen to the same argument in the absence of a prototype.  This
3242 includes conversions of fixed point to floating and vice versa, and
3243 conversions changing the width or signedness of a fixed point argument
3244 except when the same as the default promotion.
3245 .IP "\fB\-Wdeclaration\-after\-statement\fR (C and Objective-C only)" 4
3246 .IX Item "-Wdeclaration-after-statement (C and Objective-C only)"
3247 Warn when a declaration is found after a statement in a block.  This
3248 construct, known from \*(C+, was introduced with \s-1ISO\s0 C99 and is by default
3249 allowed in \s-1GCC\s0.  It is not supported by \s-1ISO\s0 C90 and was not supported by
3250 \&\s-1GCC\s0 versions before \s-1GCC\s0 3.0.
3251 .IP "\fB\-Wundef\fR" 4
3252 .IX Item "-Wundef"
3253 Warn if an undefined identifier is evaluated in an \fB#if\fR directive.
3254 .IP "\fB\-Wno\-endif\-labels\fR" 4
3255 .IX Item "-Wno-endif-labels"
3256 Do not warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
3257 .IP "\fB\-Wshadow\fR" 4
3258 .IX Item "-Wshadow"
3259 Warn whenever a local variable shadows another local variable, parameter or
3260 global variable or whenever a built-in function is shadowed.
3261 .IP "\fB\-Wlarger\-than=\fR\fIlen\fR" 4
3262 .IX Item "-Wlarger-than=len"
3263 Warn whenever an object of larger than \fIlen\fR bytes is defined.
3264 .IP "\fB\-Wframe\-larger\-than=\fR\fIlen\fR" 4
3265 .IX Item "-Wframe-larger-than=len"
3266 Warn if the size of a function frame is larger than \fIlen\fR bytes.
3267 The computation done to determine the stack frame size is approximate
3268 and not conservative.
3269 The actual requirements may be somewhat greater than \fIlen\fR
3270 even if you do not get a warning.  In addition, any space allocated
3271 via \f(CW\*(C`alloca\*(C'\fR, variable-length arrays, or related constructs
3272 is not included by the compiler when determining
3273 whether or not to issue a warning.
3274 .IP "\fB\-Wunsafe\-loop\-optimizations\fR" 4
3275 .IX Item "-Wunsafe-loop-optimizations"
3276 Warn if the loop cannot be optimized because the compiler could not
3277 assume anything on the bounds of the loop indices.  With
3278 \&\fB\-funsafe\-loop\-optimizations\fR warn if the compiler made
3279 such assumptions.
3280 .IP "\fB\-Wno\-pedantic\-ms\-format\fR (MinGW targets only)" 4
3281 .IX Item "-Wno-pedantic-ms-format (MinGW targets only)"
3282 Disables the warnings about non-ISO \f(CW\*(C`printf\*(C'\fR / \f(CW\*(C`scanf\*(C'\fR format
3283 width specifiers \f(CW\*(C`I32\*(C'\fR, \f(CW\*(C`I64\*(C'\fR, and \f(CW\*(C`I\*(C'\fR used on Windows targets
3284 depending on the \s-1MS\s0 runtime, when you are using the options \fB\-Wformat\fR
3285 and \fB\-pedantic\fR without gnu-extensions.
3286 .IP "\fB\-Wpointer\-arith\fR" 4
3287 .IX Item "-Wpointer-arith"
3288 Warn about anything that depends on the \*(L"size of\*(R" a function type or
3289 of \f(CW\*(C`void\*(C'\fR.  \s-1GNU\s0 C assigns these types a size of 1, for
3290 convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
3291 to functions.  In \*(C+, warn also when an arithmetic operation involves
3292 \&\f(CW\*(C`NULL\*(C'\fR.  This warning is also enabled by \fB\-pedantic\fR.
3293 .IP "\fB\-Wtype\-limits\fR" 4
3294 .IX Item "-Wtype-limits"
3295 Warn if a comparison is always true or always false due to the limited
3296 range of the data type, but do not warn for constant expressions.  For
3297 example, warn if an unsigned variable is compared against zero with
3298 \&\fB<\fR or \fB>=\fR.  This warning is also enabled by
3299 \&\fB\-Wextra\fR.
3300 .IP "\fB\-Wbad\-function\-cast\fR (C and Objective-C only)" 4
3301 .IX Item "-Wbad-function-cast (C and Objective-C only)"
3302 Warn whenever a function call is cast to a non-matching type.
3303 For example, warn if \f(CW\*(C`int malloc()\*(C'\fR is cast to \f(CW\*(C`anything *\*(C'\fR.
3304 .IP "\fB\-Wc++\-compat\fR (C and Objective-C only)" 4
3305 .IX Item "-Wc++-compat (C and Objective-C only)"
3306 Warn about \s-1ISO\s0 C constructs that are outside of the common subset of
3307 \&\s-1ISO\s0 C and \s-1ISO\s0 \*(C+, e.g. request for implicit conversion from
3308 \&\f(CW\*(C`void *\*(C'\fR to a pointer to non\-\f(CW\*(C`void\*(C'\fR type.
3309 .IP "\fB\-Wc++0x\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
3310 .IX Item "-Wc++0x-compat ( and Objective- only)"
3311 Warn about \*(C+ constructs whose meaning differs between \s-1ISO\s0 \*(C+ 1998 and
3312 \&\s-1ISO\s0 \*(C+ 200x, e.g., identifiers in \s-1ISO\s0 \*(C+ 1998 that will become keywords
3313 in \s-1ISO\s0 \*(C+ 200x.  This warning is enabled by \fB\-Wall\fR.
3314 .IP "\fB\-Wcast\-qual\fR" 4
3315 .IX Item "-Wcast-qual"
3316 Warn whenever a pointer is cast so as to remove a type qualifier from
3317 the target type.  For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
3318 to an ordinary \f(CW\*(C`char *\*(C'\fR.
3319 .IP "\fB\-Wcast\-align\fR" 4
3320 .IX Item "-Wcast-align"
3321 Warn whenever a pointer is cast such that the required alignment of the
3322 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
3323 an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
3324 two\- or four-byte boundaries.
3325 .IP "\fB\-Wwrite\-strings\fR" 4
3326 .IX Item "-Wwrite-strings"
3327 When compiling C, give string constants the type \f(CW\*(C`const
3328 char[\f(CIlength\f(CW]\*(C'\fR so that copying the address of one into a
3329 non\-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR pointer will get a warning.  These
3330 warnings will help you find at compile time code that can try to write
3331 into a string constant, but only if you have been very careful about
3332 using \f(CW\*(C`const\*(C'\fR in declarations and prototypes.  Otherwise, it will
3333 just be a nuisance. This is why we did not make \fB\-Wall\fR request
3334 these warnings.
3335 .Sp
3336 When compiling \*(C+, warn about the deprecated conversion from string
3337 literals to \f(CW\*(C`char *\*(C'\fR.  This warning is enabled by default for \*(C+
3338 programs.
3339 .IP "\fB\-Wclobbered\fR" 4
3340 .IX Item "-Wclobbered"
3341 Warn for variables that might be changed by \fBlongjmp\fR or
3342 \&\fBvfork\fR.  This warning is also enabled by \fB\-Wextra\fR.
3343 .IP "\fB\-Wconversion\fR" 4
3344 .IX Item "-Wconversion"
3345 Warn for implicit conversions that may alter a value. This includes
3346 conversions between real and integer, like \f(CW\*(C`abs (x)\*(C'\fR when
3347 \&\f(CW\*(C`x\*(C'\fR is \f(CW\*(C`double\*(C'\fR; conversions between signed and unsigned,
3348 like \f(CW\*(C`unsigned ui = \-1\*(C'\fR; and conversions to smaller types, like
3349 \&\f(CW\*(C`sqrtf (M_PI)\*(C'\fR. Do not warn for explicit casts like \f(CW\*(C`abs
3350 ((int) x)\*(C'\fR and \f(CW\*(C`ui = (unsigned) \-1\*(C'\fR, or if the value is not
3351 changed by the conversion like in \f(CW\*(C`abs (2.0)\*(C'\fR.  Warnings about
3352 conversions between signed and unsigned integers can be disabled by
3353 using \fB\-Wno\-sign\-conversion\fR.
3354 .Sp
3355 For \*(C+, also warn for conversions between \f(CW\*(C`NULL\*(C'\fR and non-pointer
3356 types; confusing overload resolution for user-defined conversions; and
3357 conversions that will never use a type conversion operator:
3358 conversions to \f(CW\*(C`void\*(C'\fR, the same type, a base class or a reference
3359 to them. Warnings about conversions between signed and unsigned
3360 integers are disabled by default in \*(C+ unless
3361 \&\fB\-Wsign\-conversion\fR is explicitly enabled.
3362 .IP "\fB\-Wempty\-body\fR" 4
3363 .IX Item "-Wempty-body"
3364 Warn if an empty body occurs in an \fBif\fR, \fBelse\fR or \fBdo
3365 while\fR statement.  This warning is also enabled by \fB\-Wextra\fR.
3366 .IP "\fB\-Wenum\-compare\fR (\*(C+ and Objective\-\*(C+ only)" 4
3367 .IX Item "-Wenum-compare ( and Objective- only)"
3368 Warn about a comparison between values of different enum types. This
3369 warning is enabled by default.
3370 .IP "\fB\-Wsign\-compare\fR" 4
3371 .IX Item "-Wsign-compare"
3372 Warn when a comparison between signed and unsigned values could produce
3373 an incorrect result when the signed value is converted to unsigned.
3374 This warning is also enabled by \fB\-Wextra\fR; to get the other warnings
3375 of \fB\-Wextra\fR without this warning, use \fB\-Wextra \-Wno\-sign\-compare\fR.
3376 .IP "\fB\-Wsign\-conversion\fR" 4
3377 .IX Item "-Wsign-conversion"
3378 Warn for implicit conversions that may change the sign of an integer
3379 value, like assigning a signed integer expression to an unsigned
3380 integer variable. An explicit cast silences the warning. In C, this
3381 option is enabled also by \fB\-Wconversion\fR.
3382 .IP "\fB\-Waddress\fR" 4
3383 .IX Item "-Waddress"
3384 Warn about suspicious uses of memory addresses. These include using
3385 the address of a function in a conditional expression, such as
3386 \&\f(CW\*(C`void func(void); if (func)\*(C'\fR, and comparisons against the memory
3387 address of a string literal, such as \f(CW\*(C`if (x == "abc")\*(C'\fR.  Such
3388 uses typically indicate a programmer error: the address of a function
3389 always evaluates to true, so their use in a conditional usually
3390 indicate that the programmer forgot the parentheses in a function
3391 call; and comparisons against string literals result in unspecified
3392 behavior and are not portable in C, so they usually indicate that the
3393 programmer intended to use \f(CW\*(C`strcmp\*(C'\fR.  This warning is enabled by
3394 \&\fB\-Wall\fR.
3395 .IP "\fB\-Wlogical\-op\fR" 4
3396 .IX Item "-Wlogical-op"
3397 Warn about suspicious uses of logical operators in expressions.
3398 This includes using logical operators in contexts where a
3399 bit-wise operator is likely to be expected.
3400 .IP "\fB\-Waggregate\-return\fR" 4
3401 .IX Item "-Waggregate-return"
3402 Warn if any functions that return structures or unions are defined or
3403 called.  (In languages where you can return an array, this also elicits
3404 a warning.)
3405 .IP "\fB\-Wno\-attributes\fR" 4
3406 .IX Item "-Wno-attributes"
3407 Do not warn if an unexpected \f(CW\*(C`_\|_attribute_\|_\*(C'\fR is used, such as
3408 unrecognized attributes, function attributes applied to variables,
3409 etc.  This will not stop errors for incorrect use of supported
3410 attributes.
3411 .IP "\fB\-Wno\-builtin\-macro\-redefined\fR" 4
3412 .IX Item "-Wno-builtin-macro-redefined"
3413 Do not warn if certain built-in macros are redefined.  This suppresses
3414 warnings for redefinition of \f(CW\*(C`_\|_TIMESTAMP_\|_\*(C'\fR, \f(CW\*(C`_\|_TIME_\|_\*(C'\fR,
3415 \&\f(CW\*(C`_\|_DATE_\|_\*(C'\fR, \f(CW\*(C`_\|_FILE_\|_\*(C'\fR, and \f(CW\*(C`_\|_BASE_FILE_\|_\*(C'\fR.
3416 .IP "\fB\-Wstrict\-prototypes\fR (C and Objective-C only)" 4
3417 .IX Item "-Wstrict-prototypes (C and Objective-C only)"
3418 Warn if a function is declared or defined without specifying the
3419 argument types.  (An old-style function definition is permitted without
3420 a warning if preceded by a declaration which specifies the argument
3421 types.)
3422 .IP "\fB\-Wold\-style\-declaration\fR (C and Objective-C only)" 4
3423 .IX Item "-Wold-style-declaration (C and Objective-C only)"
3424 Warn for obsolescent usages, according to the C Standard, in a
3425 declaration. For example, warn if storage-class specifiers like
3426 \&\f(CW\*(C`static\*(C'\fR are not the first things in a declaration.  This warning
3427 is also enabled by \fB\-Wextra\fR.
3428 .IP "\fB\-Wold\-style\-definition\fR (C and Objective-C only)" 4
3429 .IX Item "-Wold-style-definition (C and Objective-C only)"
3430 Warn if an old-style function definition is used.  A warning is given
3431 even if there is a previous prototype.
3432 .IP "\fB\-Wmissing\-parameter\-type\fR (C and Objective-C only)" 4
3433 .IX Item "-Wmissing-parameter-type (C and Objective-C only)"
3434 A function parameter is declared without a type specifier in K&R\-style
3435 functions:
3436 .Sp
3437 .Vb 1
3438 \&        void foo(bar) { }
3439 .Ve
3440 .Sp
3441 This warning is also enabled by \fB\-Wextra\fR.
3442 .IP "\fB\-Wmissing\-prototypes\fR (C and Objective-C only)" 4
3443 .IX Item "-Wmissing-prototypes (C and Objective-C only)"
3444 Warn if a global function is defined without a previous prototype
3445 declaration.  This warning is issued even if the definition itself
3446 provides a prototype.  The aim is to detect global functions that fail
3447 to be declared in header files.
3448 .IP "\fB\-Wmissing\-declarations\fR" 4
3449 .IX Item "-Wmissing-declarations"
3450 Warn if a global function is defined without a previous declaration.
3451 Do so even if the definition itself provides a prototype.
3452 Use this option to detect global functions that are not declared in
3453 header files.  In \*(C+, no warnings are issued for function templates,
3454 or for inline functions, or for functions in anonymous namespaces.
3455 .IP "\fB\-Wmissing\-field\-initializers\fR" 4
3456 .IX Item "-Wmissing-field-initializers"
3457 Warn if a structure's initializer has some fields missing.  For
3458 example, the following code would cause such a warning, because
3459 \&\f(CW\*(C`x.h\*(C'\fR is implicitly zero:
3460 .Sp
3461 .Vb 2
3462 \&        struct s { int f, g, h; };
3463 \&        struct s x = { 3, 4 };
3464 .Ve
3465 .Sp
3466 This option does not warn about designated initializers, so the following
3467 modification would not trigger a warning:
3468 .Sp
3469 .Vb 2
3470 \&        struct s { int f, g, h; };
3471 \&        struct s x = { .f = 3, .g = 4 };
3472 .Ve
3473 .Sp
3474 This warning is included in \fB\-Wextra\fR.  To get other \fB\-Wextra\fR
3475 warnings without this one, use \fB\-Wextra \-Wno\-missing\-field\-initializers\fR.
3476 .IP "\fB\-Wmissing\-noreturn\fR" 4
3477 .IX Item "-Wmissing-noreturn"
3478 Warn about functions which might be candidates for attribute \f(CW\*(C`noreturn\*(C'\fR.
3479 Note these are only possible candidates, not absolute ones.  Care should
3480 be taken to manually verify functions actually do not ever return before
3481 adding the \f(CW\*(C`noreturn\*(C'\fR attribute, otherwise subtle code generation
3482 bugs could be introduced.  You will not get a warning for \f(CW\*(C`main\*(C'\fR in
3483 hosted C environments.
3484 .IP "\fB\-Wmissing\-format\-attribute\fR" 4
3485 .IX Item "-Wmissing-format-attribute"
3486 Warn about function pointers which might be candidates for \f(CW\*(C`format\*(C'\fR
3487 attributes.  Note these are only possible candidates, not absolute ones.
3488 \&\s-1GCC\s0 will guess that function pointers with \f(CW\*(C`format\*(C'\fR attributes that
3489 are used in assignment, initialization, parameter passing or return
3490 statements should have a corresponding \f(CW\*(C`format\*(C'\fR attribute in the
3491 resulting type.  I.e. the left-hand side of the assignment or
3492 initialization, the type of the parameter variable, or the return type
3493 of the containing function respectively should also have a \f(CW\*(C`format\*(C'\fR
3494 attribute to avoid the warning.
3495 .Sp
3496 \&\s-1GCC\s0 will also warn about function definitions which might be
3497 candidates for \f(CW\*(C`format\*(C'\fR attributes.  Again, these are only
3498 possible candidates.  \s-1GCC\s0 will guess that \f(CW\*(C`format\*(C'\fR attributes
3499 might be appropriate for any function that calls a function like
3500 \&\f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
3501 case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
3502 appropriate may not be detected.
3503 .IP "\fB\-Wno\-multichar\fR" 4
3504 .IX Item "-Wno-multichar"
3505 Do not warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.
3506 Usually they indicate a typo in the user's code, as they have
3507 implementation-defined values, and should not be used in portable code.
3508 .IP "\fB\-Wnormalized=<none|id|nfc|nfkc>\fR" 4
3509 .IX Item "-Wnormalized=<none|id|nfc|nfkc>"
3510 In \s-1ISO\s0 C and \s-1ISO\s0 \*(C+, two identifiers are different if they are
3511 different sequences of characters.  However, sometimes when characters
3512 outside the basic \s-1ASCII\s0 character set are used, you can have two
3513 different character sequences that look the same.  To avoid confusion,
3514 the \s-1ISO\s0 10646 standard sets out some \fInormalization rules\fR which
3515 when applied ensure that two sequences that look the same are turned into
3516 the same sequence.  \s-1GCC\s0 can warn you if you are using identifiers which
3517 have not been normalized; this option controls that warning.
3518 .Sp
3519 There are four levels of warning that \s-1GCC\s0 supports.  The default is
3520 \&\fB\-Wnormalized=nfc\fR, which warns about any identifier which is
3521 not in the \s-1ISO\s0 10646 \*(L"C\*(R" normalized form, \fI\s-1NFC\s0\fR.  \s-1NFC\s0 is the
3522 recommended form for most uses.
3523 .Sp
3524 Unfortunately, there are some characters which \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ allow
3525 in identifiers that when turned into \s-1NFC\s0 aren't allowable as
3526 identifiers.  That is, there's no way to use these symbols in portable
3527 \&\s-1ISO\s0 C or \*(C+ and have all your identifiers in \s-1NFC\s0.
3528 \&\fB\-Wnormalized=id\fR suppresses the warning for these characters.
3529 It is hoped that future versions of the standards involved will correct
3530 this, which is why this option is not the default.
3531 .Sp
3532 You can switch the warning off for all characters by writing
3533 \&\fB\-Wnormalized=none\fR.  You would only want to do this if you
3534 were using some other normalization scheme (like \*(L"D\*(R"), because
3535 otherwise you can easily create bugs that are literally impossible to see.
3536 .Sp
3537 Some characters in \s-1ISO\s0 10646 have distinct meanings but look identical
3538 in some fonts or display methodologies, especially once formatting has
3539 been applied.  For instance \f(CW\*(C`\eu207F\*(C'\fR, \*(L"\s-1SUPERSCRIPT\s0 \s-1LATIN\s0 \s-1SMALL\s0
3540 \&\s-1LETTER\s0 N\*(R", will display just like a regular \f(CW\*(C`n\*(C'\fR which has been
3541 placed in a superscript.  \s-1ISO\s0 10646 defines the \fI\s-1NFKC\s0\fR
3542 normalization scheme to convert all these into a standard form as
3543 well, and \s-1GCC\s0 will warn if your code is not in \s-1NFKC\s0 if you use
3544 \&\fB\-Wnormalized=nfkc\fR.  This warning is comparable to warning
3545 about every identifier that contains the letter O because it might be
3546 confused with the digit 0, and so is not the default, but may be
3547 useful as a local coding convention if the programming environment is
3548 unable to be fixed to display these characters distinctly.
3549 .IP "\fB\-Wno\-deprecated\fR" 4
3550 .IX Item "-Wno-deprecated"
3551 Do not warn about usage of deprecated features.
3552 .IP "\fB\-Wno\-deprecated\-declarations\fR" 4
3553 .IX Item "-Wno-deprecated-declarations"
3554 Do not warn about uses of functions,
3555 variables, and types marked as deprecated by using the \f(CW\*(C`deprecated\*(C'\fR
3556 attribute.
3557 .IP "\fB\-Wno\-overflow\fR" 4
3558 .IX Item "-Wno-overflow"
3559 Do not warn about compile-time overflow in constant expressions.
3560 .IP "\fB\-Woverride\-init\fR (C and Objective-C only)" 4
3561 .IX Item "-Woverride-init (C and Objective-C only)"
3562 Warn if an initialized field without side effects is overridden when
3563 using designated initializers.
3564 .Sp
3565 This warning is included in \fB\-Wextra\fR.  To get other
3566 \&\fB\-Wextra\fR warnings without this one, use \fB\-Wextra
3567 \&\-Wno\-override\-init\fR.
3568 .IP "\fB\-Wpacked\fR" 4
3569 .IX Item "-Wpacked"
3570 Warn if a structure is given the packed attribute, but the packed
3571 attribute has no effect on the layout or size of the structure.
3572 Such structures may be mis-aligned for little benefit.  For
3573 instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
3574 will be misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
3575 have the packed attribute:
3576 .Sp
3577 .Vb 8
3578 \&        struct foo {
3579 \&          int x;
3580 \&          char a, b, c, d;
3581 \&        } _\|_attribute_\|_((packed));
3582 \&        struct bar {
3583 \&          char z;
3584 \&          struct foo f;
3585 \&        };
3586 .Ve
3587 .IP "\fB\-Wpacked\-bitfield\-compat\fR" 4
3588 .IX Item "-Wpacked-bitfield-compat"
3589 The 4.1, 4.2 and 4.3 series of \s-1GCC\s0 ignore the \f(CW\*(C`packed\*(C'\fR attribute
3590 on bit-fields of type \f(CW\*(C`char\*(C'\fR.  This has been fixed in \s-1GCC\s0 4.4 but
3591 the change can lead to differences in the structure layout.  \s-1GCC\s0
3592 informs you when the offset of such a field has changed in \s-1GCC\s0 4.4.
3593 For example there is no longer a 4\-bit padding between field \f(CW\*(C`a\*(C'\fR
3594 and \f(CW\*(C`b\*(C'\fR in this structure:
3595 .Sp
3596 .Vb 5
3597 \&        struct foo
3598 \&        {
3599 \&          char a:4;
3600 \&          char b:8;
3601 \&        } _\|_attribute_\|_ ((packed));
3602 .Ve
3603 .Sp
3604 This warning is enabled by default.  Use
3605 \&\fB\-Wno\-packed\-bitfield\-compat\fR to disable this warning.
3606 .IP "\fB\-Wpadded\fR" 4
3607 .IX Item "-Wpadded"
3608 Warn if padding is included in a structure, either to align an element
3609 of the structure or to align the whole structure.  Sometimes when this
3610 happens it is possible to rearrange the fields of the structure to
3611 reduce the padding and so make the structure smaller.
3612 .IP "\fB\-Wredundant\-decls\fR" 4
3613 .IX Item "-Wredundant-decls"
3614 Warn if anything is declared more than once in the same scope, even in
3615 cases where multiple declaration is valid and changes nothing.
3616 .IP "\fB\-Wnested\-externs\fR (C and Objective-C only)" 4
3617 .IX Item "-Wnested-externs (C and Objective-C only)"
3618 Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
3619 .IP "\fB\-Wunreachable\-code\fR" 4
3620 .IX Item "-Wunreachable-code"
3621 Warn if the compiler detects that code will never be executed.
3622 .Sp
3623 This option is intended to warn when the compiler detects that at
3624 least a whole line of source code will never be executed, because
3625 some condition is never satisfied or because it is after a
3626 procedure that never returns.
3627 .Sp
3628 It is possible for this option to produce a warning even though there
3629 are circumstances under which part of the affected line can be executed,
3630 so care should be taken when removing apparently-unreachable code.
3631 .Sp
3632 For instance, when a function is inlined, a warning may mean that the
3633 line is unreachable in only one inlined copy of the function.
3634 .Sp
3635 This option is not made part of \fB\-Wall\fR because in a debugging
3636 version of a program there is often substantial code which checks
3637 correct functioning of the program and is, hopefully, unreachable
3638 because the program does work.  Another common use of unreachable
3639 code is to provide behavior which is selectable at compile-time.
3640 .IP "\fB\-Winline\fR" 4
3641 .IX Item "-Winline"
3642 Warn if a function can not be inlined and it was declared as inline.
3643 Even with this option, the compiler will not warn about failures to
3644 inline functions declared in system headers.
3645 .Sp
3646 The compiler uses a variety of heuristics to determine whether or not
3647 to inline a function.  For example, the compiler takes into account
3648 the size of the function being inlined and the amount of inlining
3649 that has already been done in the current function.  Therefore,
3650 seemingly insignificant changes in the source program can cause the
3651 warnings produced by \fB\-Winline\fR to appear or disappear.
3652 .IP "\fB\-Wno\-invalid\-offsetof\fR (\*(C+ and Objective\-\*(C+ only)" 4
3653 .IX Item "-Wno-invalid-offsetof ( and Objective- only)"
3654 Suppress warnings from applying the \fBoffsetof\fR macro to a non-POD
3655 type.  According to the 1998 \s-1ISO\s0 \*(C+ standard, applying \fBoffsetof\fR
3656 to a non-POD type is undefined.  In existing \*(C+ implementations,
3657 however, \fBoffsetof\fR typically gives meaningful results even when
3658 applied to certain kinds of non-POD types. (Such as a simple
3659 \&\fBstruct\fR that fails to be a \s-1POD\s0 type only by virtue of having a
3660 constructor.)  This flag is for users who are aware that they are
3661 writing nonportable code and who have deliberately chosen to ignore the
3662 warning about it.
3663 .Sp
3664 The restrictions on \fBoffsetof\fR may be relaxed in a future version
3665 of the \*(C+ standard.
3666 .IP "\fB\-Wno\-int\-to\-pointer\-cast\fR (C and Objective-C only)" 4
3667 .IX Item "-Wno-int-to-pointer-cast (C and Objective-C only)"
3668 Suppress warnings from casts to pointer type of an integer of a
3669 different size.
3670 .IP "\fB\-Wno\-pointer\-to\-int\-cast\fR (C and Objective-C only)" 4
3671 .IX Item "-Wno-pointer-to-int-cast (C and Objective-C only)"
3672 Suppress warnings from casts from a pointer to an integer type of a
3673 different size.
3674 .IP "\fB\-Winvalid\-pch\fR" 4
3675 .IX Item "-Winvalid-pch"
3676 Warn if a precompiled header is found in
3677 the search path but can't be used.
3678 .IP "\fB\-Wlong\-long\fR" 4
3679 .IX Item "-Wlong-long"
3680 Warn if \fBlong long\fR type is used.  This is default.  To inhibit
3681 the warning messages, use \fB\-Wno\-long\-long\fR.  Flags
3682 \&\fB\-Wlong\-long\fR and \fB\-Wno\-long\-long\fR are taken into account
3683 only when \fB\-pedantic\fR flag is used.
3684 .IP "\fB\-Wvariadic\-macros\fR" 4
3685 .IX Item "-Wvariadic-macros"
3686 Warn if variadic macros are used in pedantic \s-1ISO\s0 C90 mode, or the \s-1GNU\s0
3687 alternate syntax when in pedantic \s-1ISO\s0 C99 mode.  This is default.
3688 To inhibit the warning messages, use \fB\-Wno\-variadic\-macros\fR.
3689 .IP "\fB\-Wvla\fR" 4
3690 .IX Item "-Wvla"
3691 Warn if variable length array is used in the code.
3692 \&\fB\-Wno\-vla\fR will prevent the \fB\-pedantic\fR warning of
3693 the variable length array.
3694 .IP "\fB\-Wvolatile\-register\-var\fR" 4
3695 .IX Item "-Wvolatile-register-var"
3696 Warn if a register variable is declared volatile.  The volatile
3697 modifier does not inhibit all optimizations that may eliminate reads
3698 and/or writes to register variables.  This warning is enabled by
3699 \&\fB\-Wall\fR.
3700 .IP "\fB\-Wdisabled\-optimization\fR" 4
3701 .IX Item "-Wdisabled-optimization"
3702 Warn if a requested optimization pass is disabled.  This warning does
3703 not generally indicate that there is anything wrong with your code; it
3704 merely indicates that \s-1GCC\s0's optimizers were unable to handle the code
3705 effectively.  Often, the problem is that your code is too big or too
3706 complex; \s-1GCC\s0 will refuse to optimize programs when the optimization
3707 itself is likely to take inordinate amounts of time.
3708 .IP "\fB\-Wpointer\-sign\fR (C and Objective-C only)" 4
3709 .IX Item "-Wpointer-sign (C and Objective-C only)"
3710 Warn for pointer argument passing or assignment with different signedness.
3711 This option is only supported for C and Objective-C.  It is implied by
3712 \&\fB\-Wall\fR and by \fB\-pedantic\fR, which can be disabled with
3713 \&\fB\-Wno\-pointer\-sign\fR.
3714 .IP "\fB\-Wstack\-protector\fR" 4
3715 .IX Item "-Wstack-protector"
3716 This option is only active when \fB\-fstack\-protector\fR is active.  It
3717 warns about functions that will not be protected against stack smashing.
3718 .IP "\fB\-Wno\-mudflap\fR" 4
3719 .IX Item "-Wno-mudflap"
3720 Suppress warnings about constructs that cannot be instrumented by
3721 \&\fB\-fmudflap\fR.
3722 .IP "\fB\-Woverlength\-strings\fR" 4
3723 .IX Item "-Woverlength-strings"
3724 Warn about string constants which are longer than the \*(L"minimum
3725 maximum\*(R" length specified in the C standard.  Modern compilers
3726 generally allow string constants which are much longer than the
3727 standard's minimum limit, but very portable programs should avoid
3728 using longer strings.
3729 .Sp
3730 The limit applies \fIafter\fR string constant concatenation, and does
3731 not count the trailing \s-1NUL\s0.  In C89, the limit was 509 characters; in
3732 C99, it was raised to 4095.  \*(C+98 does not specify a normative
3733 minimum maximum, so we do not diagnose overlength strings in \*(C+.
3734 .Sp
3735 This option is implied by \fB\-pedantic\fR, and can be disabled with
3736 \&\fB\-Wno\-overlength\-strings\fR.
3737 .Sh "Options for Debugging Your Program or \s-1GCC\s0"
3738 .IX Subsection "Options for Debugging Your Program or GCC"
3739 \&\s-1GCC\s0 has various special options that are used for debugging
3740 either your program or \s-1GCC:\s0
3741 .IP "\fB\-g\fR" 4
3742 .IX Item "-g"
3743 Produce debugging information in the operating system's native format
3744 (stabs, \s-1COFF\s0, \s-1XCOFF\s0, or \s-1DWARF\s0 2).  \s-1GDB\s0 can work with this debugging
3745 information.
3746 .Sp
3747 On most systems that use stabs format, \fB\-g\fR enables use of extra
3748 debugging information that only \s-1GDB\s0 can use; this extra information
3749 makes debugging work better in \s-1GDB\s0 but will probably make other debuggers
3750 crash or
3751 refuse to read the program.  If you want to control for certain whether
3752 to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
3753 \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, or \fB\-gvms\fR (see below).
3754 .Sp
3755 \&\s-1GCC\s0 allows you to use \fB\-g\fR with
3756 \&\fB\-O\fR.  The shortcuts taken by optimized code may occasionally
3757 produce surprising results: some variables you declared may not exist
3758 at all; flow of control may briefly move where you did not expect it;
3759 some statements may not be executed because they compute constant
3760 results or their values were already at hand; some statements may
3761 execute in different places because they were moved out of loops.
3762 .Sp
3763 Nevertheless it proves possible to debug optimized output.  This makes
3764 it reasonable to use the optimizer for programs that might have bugs.
3765 .Sp
3766 The following options are useful when \s-1GCC\s0 is generated with the
3767 capability for more than one debugging format.
3768 .IP "\fB\-ggdb\fR" 4
3769 .IX Item "-ggdb"
3770 Produce debugging information for use by \s-1GDB\s0.  This means to use the
3771 most expressive format available (\s-1DWARF\s0 2, stabs, or the native format
3772 if neither of those are supported), including \s-1GDB\s0 extensions if at all
3773 possible.
3774 .IP "\fB\-gstabs\fR" 4
3775 .IX Item "-gstabs"
3776 Produce debugging information in stabs format (if that is supported),
3777 without \s-1GDB\s0 extensions.  This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
3778 systems.  On \s-1MIPS\s0, Alpha and System V Release 4 systems this option
3779 produces stabs debugging output which is not understood by \s-1DBX\s0 or \s-1SDB\s0.
3780 On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
3781 .IP "\fB\-feliminate\-unused\-debug\-symbols\fR" 4
3782 .IX Item "-feliminate-unused-debug-symbols"
3783 Produce debugging information in stabs format (if that is supported),
3784 for only symbols that are actually used.
3785 .IP "\fB\-femit\-class\-debug\-always\fR" 4
3786 .IX Item "-femit-class-debug-always"
3787 Instead of emitting debugging information for a \*(C+ class in only one
3788 object file, emit it in all object files using the class.  This option
3789 should be used only with debuggers that are unable to handle the way \s-1GCC\s0
3790 normally emits debugging information for classes because using this
3791 option will increase the size of debugging information by as much as a
3792 factor of two.
3793 .IP "\fB\-gstabs+\fR" 4
3794 .IX Item "-gstabs+"
3795 Produce debugging information in stabs format (if that is supported),
3796 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
3797 use of these extensions is likely to make other debuggers crash or
3798 refuse to read the program.
3799 .IP "\fB\-gcoff\fR" 4
3800 .IX Item "-gcoff"
3801 Produce debugging information in \s-1COFF\s0 format (if that is supported).
3802 This is the format used by \s-1SDB\s0 on most System V systems prior to
3803 System V Release 4.
3804 .IP "\fB\-gxcoff\fR" 4
3805 .IX Item "-gxcoff"
3806 Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
3807 This is the format used by the \s-1DBX\s0 debugger on \s-1IBM\s0 \s-1RS/6000\s0 systems.
3808 .IP "\fB\-gxcoff+\fR" 4
3809 .IX Item "-gxcoff+"
3810 Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
3811 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
3812 use of these extensions is likely to make other debuggers crash or
3813 refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
3814 assembler (\s-1GAS\s0) to fail with an error.
3815 .IP "\fB\-gdwarf\-2\fR" 4
3816 .IX Item "-gdwarf-2"
3817 Produce debugging information in \s-1DWARF\s0 version 2 format (if that is
3818 supported).  This is the format used by \s-1DBX\s0 on \s-1IRIX\s0 6.  With this
3819 option, \s-1GCC\s0 uses features of \s-1DWARF\s0 version 3 when they are useful;
3820 version 3 is upward compatible with version 2, but may still cause
3821 problems for older debuggers.
3822 .IP "\fB\-gvms\fR" 4
3823 .IX Item "-gvms"
3824 Produce debugging information in \s-1VMS\s0 debug format (if that is
3825 supported).  This is the format used by \s-1DEBUG\s0 on \s-1VMS\s0 systems.
3826 .IP "\fB\-g\fR\fIlevel\fR" 4
3827 .IX Item "-glevel"
3828 .PD 0
3829 .IP "\fB\-ggdb\fR\fIlevel\fR" 4
3830 .IX Item "-ggdblevel"
3831 .IP "\fB\-gstabs\fR\fIlevel\fR" 4
3832 .IX Item "-gstabslevel"
3833 .IP "\fB\-gcoff\fR\fIlevel\fR" 4
3834 .IX Item "-gcofflevel"
3835 .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
3836 .IX Item "-gxcofflevel"
3837 .IP "\fB\-gvms\fR\fIlevel\fR" 4
3838 .IX Item "-gvmslevel"
3839 .PD
3840 Request debugging information and also use \fIlevel\fR to specify how
3841 much information.  The default level is 2.
3842 .Sp
3843 Level 0 produces no debug information at all.  Thus, \fB\-g0\fR negates
3844 \&\fB\-g\fR.
3845 .Sp
3846 Level 1 produces minimal information, enough for making backtraces in
3847 parts of the program that you don't plan to debug.  This includes
3848 descriptions of functions and external variables, but no information
3849 about local variables and no line numbers.
3850 .Sp
3851 Level 3 includes extra information, such as all the macro definitions
3852 present in the program.  Some debuggers support macro expansion when
3853 you use \fB\-g3\fR.
3854 .Sp
3855 \&\fB\-gdwarf\-2\fR does not accept a concatenated debug level, because
3856 \&\s-1GCC\s0 used to support an option \fB\-gdwarf\fR that meant to generate
3857 debug information in version 1 of the \s-1DWARF\s0 format (which is very
3858 different from version 2), and it would have been too confusing.  That
3859 debug format is long obsolete, but the option cannot be changed now.
3860 Instead use an additional \fB\-g\fR\fIlevel\fR option to change the
3861 debug level for \s-1DWARF2\s0.
3862 .IP "\fB\-feliminate\-dwarf2\-dups\fR" 4
3863 .IX Item "-feliminate-dwarf2-dups"
3864 Compress \s-1DWARF2\s0 debugging information by eliminating duplicated
3865 information about each symbol.  This option only makes sense when
3866 generating \s-1DWARF2\s0 debugging information with \fB\-gdwarf\-2\fR.
3867 .IP "\fB\-femit\-struct\-debug\-baseonly\fR" 4
3868 .IX Item "-femit-struct-debug-baseonly"
3869 Emit debug information for struct-like types
3870 only when the base name of the compilation source file
3871 matches the base name of file in which the struct was defined.
3872 .Sp
3873 This option substantially reduces the size of debugging information,
3874 but at significant potential loss in type information to the debugger.
3875 See \fB\-femit\-struct\-debug\-reduced\fR for a less aggressive option.
3876 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
3877 .Sp
3878 This option works only with \s-1DWARF\s0 2.
3879 .IP "\fB\-femit\-struct\-debug\-reduced\fR" 4
3880 .IX Item "-femit-struct-debug-reduced"
3881 Emit debug information for struct-like types
3882 only when the base name of the compilation source file
3883 matches the base name of file in which the type was defined,
3884 unless the struct is a template or defined in a system header.
3885 .Sp
3886 This option significantly reduces the size of debugging information,
3887 with some potential loss in type information to the debugger.
3888 See \fB\-femit\-struct\-debug\-baseonly\fR for a more aggressive option.
3889 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
3890 .Sp
3891 This option works only with \s-1DWARF\s0 2.
3892 .IP "\fB\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR]" 4
3893 .IX Item "-femit-struct-debug-detailed[=spec-list]"
3894 Specify the struct-like types
3895 for which the compiler will generate debug information.
3896 The intent is to reduce duplicate struct debug information
3897 between different object files within the same program.
3898 .Sp
3899 This option is a detailed version of
3900 \&\fB\-femit\-struct\-debug\-reduced\fR and \fB\-femit\-struct\-debug\-baseonly\fR,
3901 which will serve for most needs.
3902 .Sp
3903 A specification has the syntax
3904 [\fBdir:\fR|\fBind:\fR][\fBord:\fR|\fBgen:\fR](\fBany\fR|\fBsys\fR|\fBbase\fR|\fBnone\fR)
3905 .Sp
3906 The optional first word limits the specification to
3907 structs that are used directly (\fBdir:\fR) or used indirectly (\fBind:\fR).
3908 A struct type is used directly when it is the type of a variable, member.
3909 Indirect uses arise through pointers to structs.
3910 That is, when use of an incomplete struct would be legal, the use is indirect.
3911 An example is
3912 \&\fBstruct one direct; struct two * indirect;\fR.
3913 .Sp
3914 The optional second word limits the specification to
3915 ordinary structs (\fBord:\fR) or generic structs (\fBgen:\fR).
3916 Generic structs are a bit complicated to explain.
3917 For \*(C+, these are non-explicit specializations of template classes,
3918 or non-template classes within the above.
3919 Other programming languages have generics,
3920 but \fB\-femit\-struct\-debug\-detailed\fR does not yet implement them.
3921 .Sp
3922 The third word specifies the source files for those
3923 structs for which the compiler will emit debug information.
3924 The values \fBnone\fR and \fBany\fR have the normal meaning.
3925 The value \fBbase\fR means that
3926 the base of name of the file in which the type declaration appears
3927 must match the base of the name of the main compilation file.
3928 In practice, this means that
3929 types declared in \fIfoo.c\fR and \fIfoo.h\fR will have debug information,
3930 but types declared in other header will not.
3931 The value \fBsys\fR means those types satisfying \fBbase\fR
3932 or declared in system or compiler headers.
3933 .Sp
3934 You may need to experiment to determine the best settings for your application.
3935 .Sp
3936 The default is \fB\-femit\-struct\-debug\-detailed=all\fR.
3937 .Sp
3938 This option works only with \s-1DWARF\s0 2.
3939 .IP "\fB\-fno\-merge\-debug\-strings\fR" 4
3940 .IX Item "-fno-merge-debug-strings"
3941 Direct the linker to not merge together strings in the debugging
3942 information which are identical in different object files.  Merging is
3943 not supported by all assemblers or linkers.  Merging decreases the size
3944 of the debug information in the output file at the cost of increasing
3945 link processing time.  Merging is enabled by default.
3946 .IP "\fB\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
3947 .IX Item "-fdebug-prefix-map=old=new"
3948 When compiling files in directory \fI\fIold\fI\fR, record debugging
3949 information describing them as in \fI\fInew\fI\fR instead.
3950 .IP "\fB\-fno\-dwarf2\-cfi\-asm\fR" 4
3951 .IX Item "-fno-dwarf2-cfi-asm"
3952 Emit \s-1DWARF\s0 2 unwind info as compiler generated \f(CW\*(C`.eh_frame\*(C'\fR section
3953 instead of using \s-1GAS\s0 \f(CW\*(C`.cfi_*\*(C'\fR directives.
3954 .IP "\fB\-p\fR" 4
3955 .IX Item "-p"
3956 Generate extra code to write profile information suitable for the
3957 analysis program \fBprof\fR.  You must use this option when compiling
3958 the source files you want data about, and you must also use it when
3959 linking.
3960 .IP "\fB\-pg\fR" 4
3961 .IX Item "-pg"
3962 Generate extra code to write profile information suitable for the
3963 analysis program \fBgprof\fR.  You must use this option when compiling
3964 the source files you want data about, and you must also use it when
3965 linking.
3966 .IP "\fB\-Q\fR" 4
3967 .IX Item "-Q"
3968 Makes the compiler print out each function name as it is compiled, and
3969 print some statistics about each pass when it finishes.
3970 .IP "\fB\-ftime\-report\fR" 4
3971 .IX Item "-ftime-report"
3972 Makes the compiler print some statistics about the time consumed by each
3973 pass when it finishes.
3974 .IP "\fB\-fmem\-report\fR" 4
3975 .IX Item "-fmem-report"
3976 Makes the compiler print some statistics about permanent memory
3977 allocation when it finishes.
3978 .IP "\fB\-fpre\-ipa\-mem\-report\fR" 4
3979 .IX Item "-fpre-ipa-mem-report"
3980 .PD 0
3981 .IP "\fB\-fpost\-ipa\-mem\-report\fR" 4
3982 .IX Item "-fpost-ipa-mem-report"
3983 .PD
3984 Makes the compiler print some statistics about permanent memory
3985 allocation before or after interprocedural optimization.
3986 .IP "\fB\-fprofile\-arcs\fR" 4
3987 .IX Item "-fprofile-arcs"
3988 Add code so that program flow \fIarcs\fR are instrumented.  During
3989 execution the program records how many times each branch and call is
3990 executed and how many times it is taken or returns.  When the compiled
3991 program exits it saves this data to a file called
3992 \&\fI\fIauxname\fI.gcda\fR for each source file.  The data may be used for
3993 profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
3994 test coverage analysis (\fB\-ftest\-coverage\fR).  Each object file's
3995 \&\fIauxname\fR is generated from the name of the output file, if
3996 explicitly specified and it is not the final executable, otherwise it is
3997 the basename of the source file.  In both cases any suffix is removed
3998 (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
3999 \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
4000 .IP "\fB\-\-coverage\fR" 4
4001 .IX Item "--coverage"
4002 This option is used to compile and link code instrumented for coverage
4003 analysis.  The option is a synonym for \fB\-fprofile\-arcs\fR
4004 \&\fB\-ftest\-coverage\fR (when compiling) and \fB\-lgcov\fR (when
4005 linking).  See the documentation for those options for more details.
4006 .RS 4
4007 .IP "\(bu" 4
4008 Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
4009 and code generation options.  For test coverage analysis, use the
4010 additional \fB\-ftest\-coverage\fR option.  You do not need to profile
4011 every source file in a program.
4012 .IP "\(bu" 4
4013 Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
4014 (the latter implies the former).
4015 .IP "\(bu" 4
4016 Run the program on a representative workload to generate the arc profile
4017 information.  This may be repeated any number of times.  You can run
4018 concurrent instances of your program, and provided that the file system
4019 supports locking, the data files will be correctly updated.  Also
4020 \&\f(CW\*(C`fork\*(C'\fR calls are detected and correctly handled (double counting
4021 will not happen).
4022 .IP "\(bu" 4
4023 For profile-directed optimizations, compile the source files again with
4024 the same optimization and code generation options plus
4025 \&\fB\-fbranch\-probabilities\fR.
4026 .IP "\(bu" 4
4027 For test coverage analysis, use \fBgcov\fR to produce human readable
4028 information from the \fI.gcno\fR and \fI.gcda\fR files.  Refer to the
4029 \&\fBgcov\fR documentation for further information.
4030 .RE
4031 .RS 4
4032 .Sp
4033 With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
4034 creates a program flow graph, then finds a spanning tree for the graph.
4035 Only arcs that are not on the spanning tree have to be instrumented: the
4036 compiler adds code to count the number of times that these arcs are
4037 executed.  When an arc is the only exit or only entrance to a block, the
4038 instrumentation code can be added to the block; otherwise, a new basic
4039 block must be created to hold the instrumentation code.
4040 .RE
4041 .IP "\fB\-ftest\-coverage\fR" 4
4042 .IX Item "-ftest-coverage"
4043 Produce a notes file that the \fBgcov\fR code-coverage utility can use to
4044 show program coverage.  Each source file's note file is called
4045 \&\fI\fIauxname\fI.gcno\fR.  Refer to the \fB\-fprofile\-arcs\fR option
4046 above for a description of \fIauxname\fR and instructions on how to
4047 generate test coverage data.  Coverage data will match the source files
4048 more closely, if you do not optimize.
4049 .IP "\fB\-fdbg\-cnt\-list\fR" 4
4050 .IX Item "-fdbg-cnt-list"
4051 Print the name and the counter upperbound for all debug counters.
4052 .IP "\fB\-fdbg\-cnt=\fR\fIcounter-value-list\fR" 4
4053 .IX Item "-fdbg-cnt=counter-value-list"
4054 Set the internal debug counter upperbound. \fIcounter-value-list\fR 
4055 is a comma-separated list of \fIname\fR:\fIvalue\fR pairs
4056 which sets the upperbound of each debug counter \fIname\fR to \fIvalue\fR.
4057 All debug counters have the initial upperbound of \fI\s-1UINT_MAX\s0\fR,
4058 thus \fIdbg_cnt()\fR returns true always unless the upperbound is set by this option.
4059 e.g. With \-fdbg\-cnt=dce:10,tail_call:0
4060 dbg_cnt(dce) will return true only for first 10 invocations
4061 and dbg_cnt(tail_call) will return false always.
4062 .IP "\fB\-d\fR\fIletters\fR" 4
4063 .IX Item "-dletters"
4064 .PD 0
4065 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
4066 .IX Item "-fdump-rtl-pass"
4067 .PD
4068 Says to make debugging dumps during compilation at times specified by
4069 \&\fIletters\fR.    This is used for debugging the RTL-based passes of the
4070 compiler.  The file names for most of the dumps are made by appending a
4071 pass number and a word to the \fIdumpname\fR.  \fIdumpname\fR is generated
4072 from the name of the output file, if explicitly specified and it is not
4073 an executable, otherwise it is the basename of the source file. These
4074 switches may have different effects when \fB\-E\fR is used for
4075 preprocessing.
4076 .Sp
4077 Debug dumps can be enabled with a \fB\-fdump\-rtl\fR switch or some
4078 \&\fB\-d\fR option \fIletters\fR.  Here are the possible
4079 letters for use in \fIpass\fR and \fIletters\fR, and their meanings:
4080 .RS 4
4081 .IP "\fB\-fdump\-rtl\-alignments\fR" 4
4082 .IX Item "-fdump-rtl-alignments"
4083 Dump after branch alignments have been computed.
4084 .IP "\fB\-fdump\-rtl\-asmcons\fR" 4
4085 .IX Item "-fdump-rtl-asmcons"
4086 Dump after fixing rtl statements that have unsatisfied in/out constraints.
4087 .IP "\fB\-fdump\-rtl\-auto_inc_dec\fR" 4
4088 .IX Item "-fdump-rtl-auto_inc_dec"
4089 Dump after auto-inc-dec discovery.  This pass is only run on
4090 architectures that have auto inc or auto dec instructions.
4091 .IP "\fB\-fdump\-rtl\-barriers\fR" 4
4092 .IX Item "-fdump-rtl-barriers"
4093 Dump after cleaning up the barrier instructions.
4094 .IP "\fB\-fdump\-rtl\-bbpart\fR" 4
4095 .IX Item "-fdump-rtl-bbpart"
4096 Dump after partitioning hot and cold basic blocks.
4097 .IP "\fB\-fdump\-rtl\-bbro\fR" 4
4098 .IX Item "-fdump-rtl-bbro"
4099 Dump after block reordering.
4100 .IP "\fB\-fdump\-rtl\-btl1\fR" 4
4101 .IX Item "-fdump-rtl-btl1"
4102 .PD 0
4103 .IP "\fB\-fdump\-rtl\-btl2\fR" 4
4104 .IX Item "-fdump-rtl-btl2"
4105 .PD
4106 \&\fB\-fdump\-rtl\-btl1\fR and \fB\-fdump\-rtl\-btl2\fR enable dumping
4107 after the two branch
4108 target load optimization passes.
4109 .IP "\fB\-fdump\-rtl\-bypass\fR" 4
4110 .IX Item "-fdump-rtl-bypass"
4111 Dump after jump bypassing and control flow optimizations.
4112 .IP "\fB\-fdump\-rtl\-combine\fR" 4
4113 .IX Item "-fdump-rtl-combine"
4114 Dump after the \s-1RTL\s0 instruction combination pass.
4115 .IP "\fB\-fdump\-rtl\-compgotos\fR" 4
4116 .IX Item "-fdump-rtl-compgotos"
4117 Dump after duplicating the computed gotos.
4118 .IP "\fB\-fdump\-rtl\-ce1\fR" 4
4119 .IX Item "-fdump-rtl-ce1"
4120 .PD 0
4121 .IP "\fB\-fdump\-rtl\-ce2\fR" 4
4122 .IX Item "-fdump-rtl-ce2"
4123 .IP "\fB\-fdump\-rtl\-ce3\fR" 4
4124 .IX Item "-fdump-rtl-ce3"
4125 .PD
4126 \&\fB\-fdump\-rtl\-ce1\fR, \fB\-fdump\-rtl\-ce2\fR, and
4127 \&\fB\-fdump\-rtl\-ce3\fR enable dumping after the three
4128 if conversion passes.
4129 .IP "\fB\-fdump\-rtl\-cprop_hardreg\fR" 4
4130 .IX Item "-fdump-rtl-cprop_hardreg"
4131 Dump after hard register copy propagation.
4132 .IP "\fB\-fdump\-rtl\-csa\fR" 4
4133 .IX Item "-fdump-rtl-csa"
4134 Dump after combining stack adjustments.
4135 .IP "\fB\-fdump\-rtl\-cse1\fR" 4
4136 .IX Item "-fdump-rtl-cse1"
4137 .PD 0
4138 .IP "\fB\-fdump\-rtl\-cse2\fR" 4
4139 .IX Item "-fdump-rtl-cse2"
4140 .PD
4141 \&\fB\-fdump\-rtl\-cse1\fR and \fB\-fdump\-rtl\-cse2\fR enable dumping after
4142 the two common sub-expression elimination passes.
4143 .IP "\fB\-fdump\-rtl\-dce\fR" 4
4144 .IX Item "-fdump-rtl-dce"
4145 Dump after the standalone dead code elimination passes.
4146 .IP "\fB\-fdump\-rtl\-dbr\fR" 4
4147 .IX Item "-fdump-rtl-dbr"
4148 Dump after delayed branch scheduling.
4149 .IP "\fB\-fdump\-rtl\-dce1\fR" 4
4150 .IX Item "-fdump-rtl-dce1"
4151 .PD 0
4152 .IP "\fB\-fdump\-rtl\-dce2\fR" 4
4153 .IX Item "-fdump-rtl-dce2"
4154 .PD
4155 \&\fB\-fdump\-rtl\-dce1\fR and \fB\-fdump\-rtl\-dce2\fR enable dumping after
4156 the two dead store elimination passes.
4157 .IP "\fB\-fdump\-rtl\-eh\fR" 4
4158 .IX Item "-fdump-rtl-eh"
4159 Dump after finalization of \s-1EH\s0 handling code.
4160 .IP "\fB\-fdump\-rtl\-eh_ranges\fR" 4
4161 .IX Item "-fdump-rtl-eh_ranges"
4162 Dump after conversion of \s-1EH\s0 handling range regions.
4163 .IP "\fB\-fdump\-rtl\-expand\fR" 4
4164 .IX Item "-fdump-rtl-expand"
4165 Dump after \s-1RTL\s0 generation.
4166 .IP "\fB\-fdump\-rtl\-fwprop1\fR" 4
4167 .IX Item "-fdump-rtl-fwprop1"
4168 .PD 0
4169 .IP "\fB\-fdump\-rtl\-fwprop2\fR" 4
4170 .IX Item "-fdump-rtl-fwprop2"
4171 .PD
4172 \&\fB\-fdump\-rtl\-fwprop1\fR and \fB\-fdump\-rtl\-fwprop2\fR enable
4173 dumping after the two forward propagation passes.
4174 .IP "\fB\-fdump\-rtl\-gcse1\fR" 4
4175 .IX Item "-fdump-rtl-gcse1"
4176 .PD 0
4177 .IP "\fB\-fdump\-rtl\-gcse2\fR" 4
4178 .IX Item "-fdump-rtl-gcse2"
4179 .PD
4180 \&\fB\-fdump\-rtl\-gcse1\fR and \fB\-fdump\-rtl\-gcse2\fR enable dumping
4181 after global common subexpression elimination.
4182 .IP "\fB\-fdump\-rtl\-init\-regs\fR" 4
4183 .IX Item "-fdump-rtl-init-regs"
4184 Dump after the initialization of the registers.
4185 .IP "\fB\-fdump\-rtl\-initvals\fR" 4
4186 .IX Item "-fdump-rtl-initvals"
4187 Dump after the computation of the initial value sets.
4188 .IP "\fB\-fdump\-rtl\-into_cfglayout\fR" 4
4189 .IX Item "-fdump-rtl-into_cfglayout"
4190 Dump after converting to cfglayout mode.
4191 .IP "\fB\-fdump\-rtl\-ira\fR" 4
4192 .IX Item "-fdump-rtl-ira"
4193 Dump after iterated register allocation.
4194 .IP "\fB\-fdump\-rtl\-jump\fR" 4
4195 .IX Item "-fdump-rtl-jump"
4196 Dump after the second jump optimization.
4197 .IP "\fB\-fdump\-rtl\-loop2\fR" 4
4198 .IX Item "-fdump-rtl-loop2"
4199 \&\fB\-fdump\-rtl\-loop2\fR enables dumping after the rtl
4200 loop optimization passes.
4201 .IP "\fB\-fdump\-rtl\-mach\fR" 4
4202 .IX Item "-fdump-rtl-mach"
4203 Dump after performing the machine dependent reorganization pass, if that
4204 pass exists.
4205 .IP "\fB\-fdump\-rtl\-mode_sw\fR" 4
4206 .IX Item "-fdump-rtl-mode_sw"
4207 Dump after removing redundant mode switches.
4208 .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
4209 .IX Item "-fdump-rtl-rnreg"
4210 Dump after register renumbering.
4211 .IP "\fB\-fdump\-rtl\-outof_cfglayout\fR" 4
4212 .IX Item "-fdump-rtl-outof_cfglayout"
4213 Dump after converting from cfglayout mode.
4214 .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
4215 .IX Item "-fdump-rtl-peephole2"
4216 Dump after the peephole pass.
4217 .IP "\fB\-fdump\-rtl\-postreload\fR" 4
4218 .IX Item "-fdump-rtl-postreload"
4219 Dump after post-reload optimizations.
4220 .IP "\fB\-fdump\-rtl\-pro_and_epilogue\fR" 4
4221 .IX Item "-fdump-rtl-pro_and_epilogue"
4222 Dump after generating the function pro and epilogues.
4223 .IP "\fB\-fdump\-rtl\-regmove\fR" 4
4224 .IX Item "-fdump-rtl-regmove"
4225 Dump after the register move pass.
4226 .IP "\fB\-fdump\-rtl\-sched1\fR" 4
4227 .IX Item "-fdump-rtl-sched1"
4228 .PD 0
4229 .IP "\fB\-fdump\-rtl\-sched2\fR" 4
4230 .IX Item "-fdump-rtl-sched2"
4231 .PD
4232 \&\fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR enable dumping
4233 after the basic block scheduling passes.
4234 .IP "\fB\-fdump\-rtl\-see\fR" 4
4235 .IX Item "-fdump-rtl-see"
4236 Dump after sign extension elimination.
4237 .IP "\fB\-fdump\-rtl\-seqabstr\fR" 4
4238 .IX Item "-fdump-rtl-seqabstr"
4239 Dump after common sequence discovery.
4240 .IP "\fB\-fdump\-rtl\-shorten\fR" 4
4241 .IX Item "-fdump-rtl-shorten"
4242 Dump after shortening branches.
4243 .IP "\fB\-fdump\-rtl\-sibling\fR" 4
4244 .IX Item "-fdump-rtl-sibling"
4245 Dump after sibling call optimizations.
4246 .IP "\fB\-fdump\-rtl\-split1\fR" 4
4247 .IX Item "-fdump-rtl-split1"
4248 .PD 0
4249 .IP "\fB\-fdump\-rtl\-split2\fR" 4
4250 .IX Item "-fdump-rtl-split2"
4251 .IP "\fB\-fdump\-rtl\-split3\fR" 4
4252 .IX Item "-fdump-rtl-split3"
4253 .IP "\fB\-fdump\-rtl\-split4\fR" 4
4254 .IX Item "-fdump-rtl-split4"
4255 .IP "\fB\-fdump\-rtl\-split5\fR" 4
4256 .IX Item "-fdump-rtl-split5"
4257 .PD
4258 \&\fB\-fdump\-rtl\-split1\fR, \fB\-fdump\-rtl\-split2\fR,
4259 \&\fB\-fdump\-rtl\-split3\fR, \fB\-fdump\-rtl\-split4\fR and
4260 \&\fB\-fdump\-rtl\-split5\fR enable dumping after five rounds of
4261 instruction splitting.
4262 .IP "\fB\-fdump\-rtl\-sms\fR" 4
4263 .IX Item "-fdump-rtl-sms"
4264 Dump after modulo scheduling.  This pass is only run on some
4265 architectures.
4266 .IP "\fB\-fdump\-rtl\-stack\fR" 4
4267 .IX Item "-fdump-rtl-stack"
4268 Dump after conversion from \s-1GCC\s0's \*(L"flat register file\*(R" registers to the
4269 x87's stack-like registers.  This pass is only run on x86 variants.
4270 .IP "\fB\-fdump\-rtl\-subreg1\fR" 4
4271 .IX Item "-fdump-rtl-subreg1"
4272 .PD 0
4273 .IP "\fB\-fdump\-rtl\-subreg2\fR" 4
4274 .IX Item "-fdump-rtl-subreg2"
4275 .PD
4276 \&\fB\-fdump\-rtl\-subreg1\fR and \fB\-fdump\-rtl\-subreg2\fR enable dumping after
4277 the two subreg expansion passes.
4278 .IP "\fB\-fdump\-rtl\-unshare\fR" 4
4279 .IX Item "-fdump-rtl-unshare"
4280 Dump after all rtl has been unshared.
4281 .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
4282 .IX Item "-fdump-rtl-vartrack"
4283 Dump after variable tracking.
4284 .IP "\fB\-fdump\-rtl\-vregs\fR" 4
4285 .IX Item "-fdump-rtl-vregs"
4286 Dump after converting virtual registers to hard registers.
4287 .IP "\fB\-fdump\-rtl\-web\fR" 4
4288 .IX Item "-fdump-rtl-web"
4289 Dump after live range splitting.
4290 .IP "\fB\-fdump\-rtl\-regclass\fR" 4
4291 .IX Item "-fdump-rtl-regclass"
4292 .PD 0
4293 .IP "\fB\-fdump\-rtl\-subregs_of_mode_init\fR" 4
4294 .IX Item "-fdump-rtl-subregs_of_mode_init"
4295 .IP "\fB\-fdump\-rtl\-subregs_of_mode_finish\fR" 4
4296 .IX Item "-fdump-rtl-subregs_of_mode_finish"
4297 .IP "\fB\-fdump\-rtl\-dfinit\fR" 4
4298 .IX Item "-fdump-rtl-dfinit"
4299 .IP "\fB\-fdump\-rtl\-dfinish\fR" 4
4300 .IX Item "-fdump-rtl-dfinish"
4301 .PD
4302 These dumps are defined but always produce empty files.
4303 .IP "\fB\-fdump\-rtl\-all\fR" 4
4304 .IX Item "-fdump-rtl-all"
4305 Produce all the dumps listed above.
4306 .IP "\fB\-dA\fR" 4
4307 .IX Item "-dA"
4308 Annotate the assembler output with miscellaneous debugging information.
4309 .IP "\fB\-dD\fR" 4
4310 .IX Item "-dD"
4311 Dump all macro definitions, at the end of preprocessing, in addition to
4312 normal output.
4313 .IP "\fB\-dH\fR" 4
4314 .IX Item "-dH"
4315 Produce a core dump whenever an error occurs.
4316 .IP "\fB\-dm\fR" 4
4317 .IX Item "-dm"
4318 Print statistics on memory usage, at the end of the run, to
4319 standard error.
4320 .IP "\fB\-dp\fR" 4
4321 .IX Item "-dp"
4322 Annotate the assembler output with a comment indicating which
4323 pattern and alternative was used.  The length of each instruction is
4324 also printed.
4325 .IP "\fB\-dP\fR" 4
4326 .IX Item "-dP"
4327 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
4328 Also turns on \fB\-dp\fR annotation.
4329 .IP "\fB\-dv\fR" 4
4330 .IX Item "-dv"
4331 For each of the other indicated dump files (\fB\-fdump\-rtl\-\fR\fIpass\fR),
4332 dump a representation of the control flow graph suitable for viewing with \s-1VCG\s0
4333 to \fI\fIfile\fI.\fIpass\fI.vcg\fR.
4334 .IP "\fB\-dx\fR" 4
4335 .IX Item "-dx"
4336 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
4337 with \fB\-fdump\-rtl\-expand\fR.
4338 .IP "\fB\-dy\fR" 4
4339 .IX Item "-dy"
4340 Dump debugging information during parsing, to standard error.
4341 .RE
4342 .RS 4
4343 .RE
4344 .IP "\fB\-fdump\-noaddr\fR" 4
4345 .IX Item "-fdump-noaddr"
4346 When doing debugging dumps, suppress address output.  This makes it more
4347 feasible to use diff on debugging dumps for compiler invocations with
4348 different compiler binaries and/or different
4349 text / bss / data / heap / stack / dso start locations.
4350 .IP "\fB\-fdump\-unnumbered\fR" 4
4351 .IX Item "-fdump-unnumbered"
4352 When doing debugging dumps, suppress instruction numbers and address output.
4353 This makes it more feasible to use diff on debugging dumps for compiler
4354 invocations with different options, in particular with and without
4355 \&\fB\-g\fR.
4356 .IP "\fB\-fdump\-translation\-unit\fR (\*(C+ only)" 4
4357 .IX Item "-fdump-translation-unit ( only)"
4358 .PD 0
4359 .IP "\fB\-fdump\-translation\-unit\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
4360 .IX Item "-fdump-translation-unit-options ( only)"
4361 .PD
4362 Dump a representation of the tree structure for the entire translation
4363 unit to a file.  The file name is made by appending \fI.tu\fR to the
4364 source file name.  If the \fB\-\fR\fIoptions\fR form is used, \fIoptions\fR
4365 controls the details of the dump as described for the
4366 \&\fB\-fdump\-tree\fR options.
4367 .IP "\fB\-fdump\-class\-hierarchy\fR (\*(C+ only)" 4
4368 .IX Item "-fdump-class-hierarchy ( only)"
4369 .PD 0
4370 .IP "\fB\-fdump\-class\-hierarchy\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
4371 .IX Item "-fdump-class-hierarchy-options ( only)"
4372 .PD
4373 Dump a representation of each class's hierarchy and virtual function
4374 table layout to a file.  The file name is made by appending \fI.class\fR
4375 to the source file name.  If the \fB\-\fR\fIoptions\fR form is used,
4376 \&\fIoptions\fR controls the details of the dump as described for the
4377 \&\fB\-fdump\-tree\fR options.
4378 .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
4379 .IX Item "-fdump-ipa-switch"
4380 Control the dumping at various stages of inter-procedural analysis
4381 language tree to a file.  The file name is generated by appending a switch
4382 specific suffix to the source file name.  The following dumps are possible:
4383 .RS 4
4384 .IP "\fBall\fR" 4
4385 .IX Item "all"
4386 Enables all inter-procedural analysis dumps.
4387 .IP "\fBcgraph\fR" 4
4388 .IX Item "cgraph"
4389 Dumps information about call-graph optimization, unused function removal,
4390 and inlining decisions.
4391 .IP "\fBinline\fR" 4
4392 .IX Item "inline"
4393 Dump after function inlining.
4394 .RE
4395 .RS 4
4396 .RE
4397 .IP "\fB\-fdump\-statistics\-\fR\fIoption\fR" 4
4398 .IX Item "-fdump-statistics-option"
4399 Enable and control dumping of pass statistics in a separate file.  The
4400 file name is generated by appending a suffix ending in \fB.statistics\fR
4401 to the source file name.  If the \fB\-\fR\fIoption\fR form is used,
4402 \&\fB\-stats\fR will cause counters to be summed over the whole compilation unit
4403 while \fB\-details\fR will dump every event as the passes generate them.
4404 The default with no option is to sum counters for each function compiled.
4405 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR" 4
4406 .IX Item "-fdump-tree-switch"
4407 .PD 0
4408 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
4409 .IX Item "-fdump-tree-switch-options"
4410 .PD
4411 Control the dumping at various stages of processing the intermediate
4412 language tree to a file.  The file name is generated by appending a switch
4413 specific suffix to the source file name.  If the \fB\-\fR\fIoptions\fR
4414 form is used, \fIoptions\fR is a list of \fB\-\fR separated options that
4415 control the details of the dump.  Not all options are applicable to all
4416 dumps, those which are not meaningful will be ignored.  The following
4417 options are available
4418 .RS 4
4419 .IP "\fBaddress\fR" 4
4420 .IX Item "address"
4421 Print the address of each node.  Usually this is not meaningful as it
4422 changes according to the environment and source file.  Its primary use
4423 is for tying up a dump file with a debug environment.
4424 .IP "\fBslim\fR" 4
4425 .IX Item "slim"
4426 Inhibit dumping of members of a scope or body of a function merely
4427 because that scope has been reached.  Only dump such items when they
4428 are directly reachable by some other path.  When dumping pretty-printed
4429 trees, this option inhibits dumping the bodies of control structures.
4430 .IP "\fBraw\fR" 4
4431 .IX Item "raw"
4432 Print a raw representation of the tree.  By default, trees are
4433 pretty-printed into a C\-like representation.
4434 .IP "\fBdetails\fR" 4
4435 .IX Item "details"
4436 Enable more detailed dumps (not honored by every dump option).
4437 .IP "\fBstats\fR" 4
4438 .IX Item "stats"
4439 Enable dumping various statistics about the pass (not honored by every dump
4440 option).
4441 .IP "\fBblocks\fR" 4
4442 .IX Item "blocks"
4443 Enable showing basic block boundaries (disabled in raw dumps).
4444 .IP "\fBvops\fR" 4
4445 .IX Item "vops"
4446 Enable showing virtual operands for every statement.
4447 .IP "\fBlineno\fR" 4
4448 .IX Item "lineno"
4449 Enable showing line numbers for statements.
4450 .IP "\fBuid\fR" 4
4451 .IX Item "uid"
4452 Enable showing the unique \s-1ID\s0 (\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
4453 .IP "\fBverbose\fR" 4
4454 .IX Item "verbose"
4455 Enable showing the tree dump for each statement.
4456 .IP "\fBall\fR" 4
4457 .IX Item "all"
4458 Turn on all options, except \fBraw\fR, \fBslim\fR, \fBverbose\fR
4459 and \fBlineno\fR.
4460 .RE
4461 .RS 4
4462 .Sp
4463 The following tree dumps are possible:
4464 .IP "\fBoriginal\fR" 4
4465 .IX Item "original"
4466 Dump before any tree based optimization, to \fI\fIfile\fI.original\fR.
4467 .IP "\fBoptimized\fR" 4
4468 .IX Item "optimized"
4469 Dump after all tree based optimization, to \fI\fIfile\fI.optimized\fR.
4470 .IP "\fBgimple\fR" 4
4471 .IX Item "gimple"
4472 Dump each function before and after the gimplification pass to a file.  The
4473 file name is made by appending \fI.gimple\fR to the source file name.
4474 .IP "\fBcfg\fR" 4
4475 .IX Item "cfg"
4476 Dump the control flow graph of each function to a file.  The file name is
4477 made by appending \fI.cfg\fR to the source file name.
4478 .IP "\fBvcg\fR" 4
4479 .IX Item "vcg"
4480 Dump the control flow graph of each function to a file in \s-1VCG\s0 format.  The
4481 file name is made by appending \fI.vcg\fR to the source file name.  Note
4482 that if the file contains more than one function, the generated file cannot
4483 be used directly by \s-1VCG\s0.  You will need to cut and paste each function's
4484 graph into its own separate file first.
4485 .IP "\fBch\fR" 4
4486 .IX Item "ch"
4487 Dump each function after copying loop headers.  The file name is made by
4488 appending \fI.ch\fR to the source file name.
4489 .IP "\fBssa\fR" 4
4490 .IX Item "ssa"
4491 Dump \s-1SSA\s0 related information to a file.  The file name is made by appending
4492 \&\fI.ssa\fR to the source file name.
4493 .IP "\fBalias\fR" 4
4494 .IX Item "alias"
4495 Dump aliasing information for each function.  The file name is made by
4496 appending \fI.alias\fR to the source file name.
4497 .IP "\fBccp\fR" 4
4498 .IX Item "ccp"
4499 Dump each function after \s-1CCP\s0.  The file name is made by appending
4500 \&\fI.ccp\fR to the source file name.
4501 .IP "\fBstoreccp\fR" 4
4502 .IX Item "storeccp"
4503 Dump each function after STORE-CCP.  The file name is made by appending
4504 \&\fI.storeccp\fR to the source file name.
4505 .IP "\fBpre\fR" 4
4506 .IX Item "pre"
4507 Dump trees after partial redundancy elimination.  The file name is made
4508 by appending \fI.pre\fR to the source file name.
4509 .IP "\fBfre\fR" 4
4510 .IX Item "fre"
4511 Dump trees after full redundancy elimination.  The file name is made
4512 by appending \fI.fre\fR to the source file name.
4513 .IP "\fBcopyprop\fR" 4
4514 .IX Item "copyprop"
4515 Dump trees after copy propagation.  The file name is made
4516 by appending \fI.copyprop\fR to the source file name.
4517 .IP "\fBstore_copyprop\fR" 4
4518 .IX Item "store_copyprop"
4519 Dump trees after store copy-propagation.  The file name is made
4520 by appending \fI.store_copyprop\fR to the source file name.
4521 .IP "\fBdce\fR" 4
4522 .IX Item "dce"
4523 Dump each function after dead code elimination.  The file name is made by
4524 appending \fI.dce\fR to the source file name.
4525 .IP "\fBmudflap\fR" 4
4526 .IX Item "mudflap"
4527 Dump each function after adding mudflap instrumentation.  The file name is
4528 made by appending \fI.mudflap\fR to the source file name.
4529 .IP "\fBsra\fR" 4
4530 .IX Item "sra"
4531 Dump each function after performing scalar replacement of aggregates.  The
4532 file name is made by appending \fI.sra\fR to the source file name.
4533 .IP "\fBsink\fR" 4
4534 .IX Item "sink"
4535 Dump each function after performing code sinking.  The file name is made
4536 by appending \fI.sink\fR to the source file name.
4537 .IP "\fBdom\fR" 4
4538 .IX Item "dom"
4539 Dump each function after applying dominator tree optimizations.  The file
4540 name is made by appending \fI.dom\fR to the source file name.
4541 .IP "\fBdse\fR" 4
4542 .IX Item "dse"
4543 Dump each function after applying dead store elimination.  The file
4544 name is made by appending \fI.dse\fR to the source file name.
4545 .IP "\fBphiopt\fR" 4
4546 .IX Item "phiopt"
4547 Dump each function after optimizing \s-1PHI\s0 nodes into straightline code.  The file
4548 name is made by appending \fI.phiopt\fR to the source file name.
4549 .IP "\fBforwprop\fR" 4
4550 .IX Item "forwprop"
4551 Dump each function after forward propagating single use variables.  The file
4552 name is made by appending \fI.forwprop\fR to the source file name.
4553 .IP "\fBcopyrename\fR" 4
4554 .IX Item "copyrename"
4555 Dump each function after applying the copy rename optimization.  The file
4556 name is made by appending \fI.copyrename\fR to the source file name.
4557 .IP "\fBnrv\fR" 4
4558 .IX Item "nrv"
4559 Dump each function after applying the named return value optimization on
4560 generic trees.  The file name is made by appending \fI.nrv\fR to the source
4561 file name.
4562 .IP "\fBvect\fR" 4
4563 .IX Item "vect"
4564 Dump each function after applying vectorization of loops.  The file name is
4565 made by appending \fI.vect\fR to the source file name.
4566 .IP "\fBvrp\fR" 4
4567 .IX Item "vrp"
4568 Dump each function after Value Range Propagation (\s-1VRP\s0).  The file name
4569 is made by appending \fI.vrp\fR to the source file name.
4570 .IP "\fBall\fR" 4
4571 .IX Item "all"
4572 Enable all the available tree dumps with the flags provided in this option.
4573 .RE
4574 .RS 4
4575 .RE
4576 .IP "\fB\-ftree\-vectorizer\-verbose=\fR\fIn\fR" 4
4577 .IX Item "-ftree-vectorizer-verbose=n"
4578 This option controls the amount of debugging output the vectorizer prints.
4579 This information is written to standard error, unless
4580 \&\fB\-fdump\-tree\-all\fR or \fB\-fdump\-tree\-vect\fR is specified,
4581 in which case it is output to the usual dump listing file, \fI.vect\fR.
4582 For \fIn\fR=0 no diagnostic information is reported.
4583 If \fIn\fR=1 the vectorizer reports each loop that got vectorized,
4584 and the total number of loops that got vectorized.
4585 If \fIn\fR=2 the vectorizer also reports non-vectorized loops that passed
4586 the first analysis phase (vect_analyze_loop_form) \- i.e. countable,
4587 inner-most, single-bb, single\-entry/exit loops.  This is the same verbosity
4588 level that \fB\-fdump\-tree\-vect\-stats\fR uses.
4589 Higher verbosity levels mean either more information dumped for each
4590 reported loop, or same amount of information reported for more loops:
4591 If \fIn\fR=3, alignment related information is added to the reports.
4592 If \fIn\fR=4, data-references related information (e.g. memory dependences,
4593 memory access-patterns) is added to the reports.
4594 If \fIn\fR=5, the vectorizer reports also non-vectorized inner-most loops
4595 that did not pass the first analysis phase (i.e., may not be countable, or
4596 may have complicated control-flow).
4597 If \fIn\fR=6, the vectorizer reports also non-vectorized nested loops.
4598 For \fIn\fR=7, all the information the vectorizer generates during its
4599 analysis and transformation is reported.  This is the same verbosity level
4600 that \fB\-fdump\-tree\-vect\-details\fR uses.
4601 .IP "\fB\-frandom\-seed=\fR\fIstring\fR" 4
4602 .IX Item "-frandom-seed=string"
4603 This option provides a seed that \s-1GCC\s0 uses when it would otherwise use
4604 random numbers.  It is used to generate certain symbol names
4605 that have to be different in every compiled file.  It is also used to
4606 place unique stamps in coverage data files and the object files that
4607 produce them.  You can use the \fB\-frandom\-seed\fR option to produce
4608 reproducibly identical object files.
4609 .Sp
4610 The \fIstring\fR should be different for every file you compile.
4611 .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
4612 .IX Item "-fsched-verbose=n"
4613 On targets that use instruction scheduling, this option controls the
4614 amount of debugging output the scheduler prints.  This information is
4615 written to standard error, unless \fB\-fdump\-rtl\-sched1\fR or
4616 \&\fB\-fdump\-rtl\-sched2\fR is specified, in which case it is output
4617 to the usual dump listing file, \fI.sched\fR or \fI.sched2\fR
4618 respectively.  However for \fIn\fR greater than nine, the output is
4619 always printed to standard error.
4620 .Sp
4621 For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
4622 same information as \fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR.
4623 For \fIn\fR greater than one, it also output basic block probabilities,
4624 detailed ready list information and unit/insn info.  For \fIn\fR greater
4625 than two, it includes \s-1RTL\s0 at abort point, control-flow and regions info.
4626 And for \fIn\fR over four, \fB\-fsched\-verbose\fR also includes
4627 dependence info.
4628 .IP "\fB\-save\-temps\fR" 4
4629 .IX Item "-save-temps"
4630 Store the usual \*(L"temporary\*(R" intermediate files permanently; place them
4631 in the current directory and name them based on the source file.  Thus,
4632 compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR would produce files
4633 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
4634 preprocessed \fIfoo.i\fR output file even though the compiler now
4635 normally uses an integrated preprocessor.
4636 .Sp
4637 When used in combination with the \fB\-x\fR command line option,
4638 \&\fB\-save\-temps\fR is sensible enough to avoid over writing an
4639 input source file with the same extension as an intermediate file.
4640 The corresponding intermediate file may be obtained by renaming the
4641 source file before using \fB\-save\-temps\fR.
4642 .IP "\fB\-time\fR" 4
4643 .IX Item "-time"
4644 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
4645 sequence.  For C source files, this is the compiler proper and assembler
4646 (plus the linker if linking is done).  The output looks like this:
4647 .Sp
4648 .Vb 2
4649 \&        # cc1 0.12 0.01
4650 \&        # as 0.00 0.01
4651 .Ve
4652 .Sp
4653 The first number on each line is the \*(L"user time\*(R", that is time spent
4654 executing the program itself.  The second number is \*(L"system time\*(R",
4655 time spent executing operating system routines on behalf of the program.
4656 Both numbers are in seconds.
4657 .IP "\fB\-fvar\-tracking\fR" 4
4658 .IX Item "-fvar-tracking"
4659 Run variable tracking pass.  It computes where variables are stored at each
4660 position in code.  Better debugging information is then generated
4661 (if the debugging information format supports this information).
4662 .Sp
4663 It is enabled by default when compiling with optimization (\fB\-Os\fR,
4664 \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
4665 the debug info format supports it.
4666 .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
4667 .IX Item "-print-file-name=library"
4668 Print the full absolute name of the library file \fIlibrary\fR that
4669 would be used when linking\-\-\-and don't do anything else.  With this
4670 option, \s-1GCC\s0 does not compile or link anything; it just prints the
4671 file name.
4672 .IP "\fB\-print\-multi\-directory\fR" 4
4673 .IX Item "-print-multi-directory"
4674 Print the directory name corresponding to the multilib selected by any
4675 other switches present in the command line.  This directory is supposed
4676 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
4677 .IP "\fB\-print\-multi\-lib\fR" 4
4678 .IX Item "-print-multi-lib"
4679 Print the mapping from multilib directory names to compiler switches
4680 that enable them.  The directory name is separated from the switches by
4681 \&\fB;\fR, and each switch starts with an \fB@} instead of the
4682 \&\f(CB@samp\fB{\-\fR, without spaces between multiple switches.  This is supposed to
4683 ease shell-processing.
4684 .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
4685 .IX Item "-print-prog-name=program"
4686 Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
4687 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
4688 .IX Item "-print-libgcc-file-name"
4689 Same as \fB\-print\-file\-name=libgcc.a\fR.
4690 .Sp
4691 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
4692 but you do want to link with \fIlibgcc.a\fR.  You can do
4693 .Sp
4694 .Vb 1
4695 \&        gcc \-nostdlib <files>... \`gcc \-print\-libgcc\-file\-name\`
4696 .Ve
4697 .IP "\fB\-print\-search\-dirs\fR" 4
4698 .IX Item "-print-search-dirs"
4699 Print the name of the configured installation directory and a list of
4700 program and library directories \fBgcc\fR will search\-\-\-and don't do anything else.
4701 .Sp
4702 This is useful when \fBgcc\fR prints the error message
4703 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
4704 To resolve this you either need to put \fIcpp0\fR and the other compiler
4705 components where \fBgcc\fR expects to find them, or you can set the environment
4706 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
4707 Don't forget the trailing \fB/\fR.
4708 .IP "\fB\-print\-sysroot\fR" 4
4709 .IX Item "-print-sysroot"
4710 Print the target sysroot directory that will be used during
4711 compilation.  This is the target sysroot specified either at configure
4712 time or using the \fB\-\-sysroot\fR option, possibly with an extra
4713 suffix that depends on compilation options.  If no target sysroot is
4714 specified, the option prints nothing.
4715 .IP "\fB\-print\-sysroot\-headers\-suffix\fR" 4
4716 .IX Item "-print-sysroot-headers-suffix"
4717 Print the suffix added to the target sysroot when searching for
4718 headers, or give an error if the compiler is not configured with such
4719 a suffix\-\-\-and don't do anything else.
4720 .IP "\fB\-dumpmachine\fR" 4
4721 .IX Item "-dumpmachine"
4722 Print the compiler's target machine (for example,
4723 \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
4724 .IP "\fB\-dumpversion\fR" 4
4725 .IX Item "-dumpversion"
4726 Print the compiler version (for example, \fB3.0\fR)\-\-\-and don't do
4727 anything else.
4728 .IP "\fB\-dumpspecs\fR" 4
4729 .IX Item "-dumpspecs"
4730 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
4731 is used when \s-1GCC\s0 itself is being built.)
4732 .IP "\fB\-feliminate\-unused\-debug\-types\fR" 4
4733 .IX Item "-feliminate-unused-debug-types"
4734 Normally, when producing \s-1DWARF2\s0 output, \s-1GCC\s0 will emit debugging
4735 information for all types declared in a compilation
4736 unit, regardless of whether or not they are actually used
4737 in that compilation unit.  Sometimes this is useful, such as
4738 if, in the debugger, you want to cast a value to a type that is
4739 not actually used in your program (but is declared).  More often,
4740 however, this results in a significant amount of wasted space.
4741 With this option, \s-1GCC\s0 will avoid producing debug symbol output
4742 for types that are nowhere used in the source file being compiled.
4743 .Sh "Options That Control Optimization"
4744 .IX Subsection "Options That Control Optimization"
4745 These options control various sorts of optimizations.
4746 .PP
4747 Without any optimization option, the compiler's goal is to reduce the
4748 cost of compilation and to make debugging produce the expected
4749 results.  Statements are independent: if you stop the program with a
4750 breakpoint between statements, you can then assign a new value to any
4751 variable or change the program counter to any other statement in the
4752 function and get exactly the results you would expect from the source
4753 code.
4754 .PP
4755 Turning on optimization flags makes the compiler attempt to improve
4756 the performance and/or code size at the expense of compilation time
4757 and possibly the ability to debug the program.
4758 .PP
4759 The compiler performs optimization based on the knowledge it has of the
4760 program.  Compiling multiple files at once to a single output file mode allows
4761 the compiler to use information gained from all of the files when compiling
4762 each of them.
4763 .PP
4764 Not all optimizations are controlled directly by a flag.  Only
4765 optimizations that have a flag are listed.
4766 .IP "\fB\-O\fR" 4
4767 .IX Item "-O"
4768 .PD 0
4769 .IP "\fB\-O1\fR" 4
4770 .IX Item "-O1"
4771 .PD
4772 Optimize.  Optimizing compilation takes somewhat more time, and a lot
4773 more memory for a large function.
4774 .Sp
4775 With \fB\-O\fR, the compiler tries to reduce code size and execution
4776 time, without performing any optimizations that take a great deal of
4777 compilation time.
4778 .Sp
4779 \&\fB\-O\fR turns on the following optimization flags:
4780 .Sp
4781 \&\fB\-fauto\-inc\-dec 
4782 \&\-fcprop\-registers 
4783 \&\-fdce 
4784 \&\-fdefer\-pop 
4785 \&\-fdelayed\-branch 
4786 \&\-fdse 
4787 \&\-fguess\-branch\-probability 
4788 \&\-fif\-conversion2 
4789 \&\-fif\-conversion 
4790 \&\-finline\-small\-functions 
4791 \&\-fipa\-pure\-const 
4792 \&\-fipa\-reference 
4793 \&\-fmerge\-constants
4794 \&\-fsplit\-wide\-types 
4795 \&\-ftree\-builtin\-call\-dce 
4796 \&\-ftree\-ccp 
4797 \&\-ftree\-ch 
4798 \&\-ftree\-copyrename 
4799 \&\-ftree\-dce 
4800 \&\-ftree\-dominator\-opts 
4801 \&\-ftree\-dse 
4802 \&\-ftree\-fre 
4803 \&\-ftree\-sra 
4804 \&\-ftree\-ter 
4805 \&\-funit\-at\-a\-time\fR
4806 .Sp
4807 \&\fB\-O\fR also turns on \fB\-fomit\-frame\-pointer\fR on machines
4808 where doing so does not interfere with debugging.
4809 .IP "\fB\-O2\fR" 4
4810 .IX Item "-O2"
4811 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
4812 that do not involve a space-speed tradeoff.
4813 As compared to \fB\-O\fR, this option increases both compilation time
4814 and the performance of the generated code.
4815 .Sp
4816 \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR.  It
4817 also turns on the following optimization flags:
4818 \&\fB\-fthread\-jumps 
4819 \&\-falign\-functions  \-falign\-jumps 
4820 \&\-falign\-loops  \-falign\-labels 
4821 \&\-fcaller\-saves 
4822 \&\-fcrossjumping 
4823 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks 
4824 \&\-fdelete\-null\-pointer\-checks 
4825 \&\-fexpensive\-optimizations 
4826 \&\-fgcse  \-fgcse\-lm  
4827 \&\-findirect\-inlining 
4828 \&\-foptimize\-sibling\-calls 
4829 \&\-fpeephole2 
4830 \&\-fregmove 
4831 \&\-freorder\-blocks  \-freorder\-functions 
4832 \&\-frerun\-cse\-after\-loop  
4833 \&\-fsched\-interblock  \-fsched\-spec 
4834 \&\-fschedule\-insns  \-fschedule\-insns2 
4835 \&\-fstrict\-aliasing \-fstrict\-overflow 
4836 \&\-ftree\-switch\-conversion 
4837 \&\-ftree\-pre 
4838 \&\-ftree\-vrp\fR
4839 .Sp
4840 Please note the warning under \fB\-fgcse\fR about
4841 invoking \fB\-O2\fR on programs that use computed gotos.
4842 .IP "\fB\-O3\fR" 4
4843 .IX Item "-O3"
4844 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified
4845 by \fB\-O2\fR and also turns on the \fB\-finline\-functions\fR,
4846 \&\fB\-funswitch\-loops\fR, \fB\-fpredictive\-commoning\fR,
4847 \&\fB\-fgcse\-after\-reload\fR and \fB\-ftree\-vectorize\fR options.
4848 .IP "\fB\-O0\fR" 4
4849 .IX Item "-O0"
4850 Reduce compilation time and make debugging produce the expected
4851 results.  This is the default.
4852 .IP "\fB\-Os\fR" 4
4853 .IX Item "-Os"
4854 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
4855 do not typically increase code size.  It also performs further
4856 optimizations designed to reduce code size.
4857 .Sp
4858 \&\fB\-Os\fR disables the following optimization flags:
4859 \&\fB\-falign\-functions  \-falign\-jumps  \-falign\-loops 
4860 \&\-falign\-labels  \-freorder\-blocks  \-freorder\-blocks\-and\-partition 
4861 \&\-fprefetch\-loop\-arrays  \-ftree\-vect\-loop\-version\fR
4862 .Sp
4863 If you use multiple \fB\-O\fR options, with or without level numbers,
4864 the last such option is the one that is effective.
4865 .PP
4866 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
4867 flags.  Most flags have both positive and negative forms; the negative
4868 form of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table
4869 below, only one of the forms is listed\-\-\-the one you typically will
4870 use.  You can figure out the other form by either removing \fBno\-\fR
4871 or adding it.
4872 .PP
4873 The following options control specific optimizations.  They are either
4874 activated by \fB\-O\fR options or are related to ones that are.  You
4875 can use the following flags in the rare cases when \*(L"fine-tuning\*(R" of
4876 optimizations to be performed is desired.
4877 .IP "\fB\-fno\-default\-inline\fR" 4
4878 .IX Item "-fno-default-inline"
4879 Do not make member functions inline by default merely because they are
4880 defined inside the class scope (\*(C+ only).  Otherwise, when you specify
4881 \&\fB\-O\fR, member functions defined inside class scope are compiled
4882 inline by default; i.e., you don't need to add \fBinline\fR in front of
4883 the member function name.
4884 .IP "\fB\-fno\-defer\-pop\fR" 4
4885 .IX Item "-fno-defer-pop"
4886 Always pop the arguments to each function call as soon as that function
4887 returns.  For machines which must pop arguments after a function call,
4888 the compiler normally lets arguments accumulate on the stack for several
4889 function calls and pops them all at once.
4890 .Sp
4891 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4892 .IP "\fB\-fforward\-propagate\fR" 4
4893 .IX Item "-fforward-propagate"
4894 Perform a forward propagation pass on \s-1RTL\s0.  The pass tries to combine two
4895 instructions and checks if the result can be simplified.  If loop unrolling
4896 is active, two passes are performed and the second is scheduled after
4897 loop unrolling.
4898 .Sp
4899 This option is enabled by default at optimization levels \fB\-O2\fR,
4900 \&\fB\-O3\fR, \fB\-Os\fR.
4901 .IP "\fB\-fomit\-frame\-pointer\fR" 4
4902 .IX Item "-fomit-frame-pointer"
4903 Don't keep the frame pointer in a register for functions that
4904 don't need one.  This avoids the instructions to save, set up and
4905 restore frame pointers; it also makes an extra register available
4906 in many functions.  \fBIt also makes debugging impossible on
4907 some machines.\fR
4908 .Sp
4909 On some machines, such as the \s-1VAX\s0, this flag has no effect, because
4910 the standard calling sequence automatically handles the frame pointer
4911 and nothing is saved by pretending it doesn't exist.  The
4912 machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
4913 whether a target machine supports this flag.
4914 .Sp
4915 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4916 .IP "\fB\-foptimize\-sibling\-calls\fR" 4
4917 .IX Item "-foptimize-sibling-calls"
4918 Optimize sibling and tail recursive calls.
4919 .Sp
4920 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
4921 .IP "\fB\-fno\-inline\fR" 4
4922 .IX Item "-fno-inline"
4923 Don't pay attention to the \f(CW\*(C`inline\*(C'\fR keyword.  Normally this option
4924 is used to keep the compiler from expanding any functions inline.
4925 Note that if you are not optimizing, no functions can be expanded inline.
4926 .IP "\fB\-finline\-small\-functions\fR" 4
4927 .IX Item "-finline-small-functions"
4928 Integrate functions into their callers when their body is smaller than expected
4929 function call code (so overall size of program gets smaller).  The compiler
4930 heuristically decides which functions are simple enough to be worth integrating
4931 in this way.
4932 .Sp
4933 Enabled at level \fB\-O2\fR.
4934 .IP "\fB\-findirect\-inlining\fR" 4
4935 .IX Item "-findirect-inlining"
4936 Inline also indirect calls that are discovered to be known at compile
4937 time thanks to previous inlining.  This option has any effect only
4938 when inlining itself is turned on by the \fB\-finline\-functions\fR
4939 or \fB\-finline\-small\-functions\fR options.
4940 .Sp
4941 Enabled at level \fB\-O2\fR.
4942 .IP "\fB\-finline\-functions\fR" 4
4943 .IX Item "-finline-functions"
4944 Integrate all simple functions into their callers.  The compiler
4945 heuristically decides which functions are simple enough to be worth
4946 integrating in this way.
4947 .Sp
4948 If all calls to a given function are integrated, and the function is
4949 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
4950 assembler code in its own right.
4951 .Sp
4952 Enabled at level \fB\-O3\fR.
4953 .IP "\fB\-finline\-functions\-called\-once\fR" 4
4954 .IX Item "-finline-functions-called-once"
4955 Consider all \f(CW\*(C`static\*(C'\fR functions called once for inlining into their
4956 caller even if they are not marked \f(CW\*(C`inline\*(C'\fR.  If a call to a given
4957 function is integrated, then the function is not output as assembler code
4958 in its own right.
4959 .Sp
4960 Enabled at levels \fB\-O1\fR, \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
4961 .IP "\fB\-fearly\-inlining\fR" 4
4962 .IX Item "-fearly-inlining"
4963 Inline functions marked by \f(CW\*(C`always_inline\*(C'\fR and functions whose body seems
4964 smaller than the function call overhead early before doing
4965 \&\fB\-fprofile\-generate\fR instrumentation and real inlining pass.  Doing so
4966 makes profiling significantly cheaper and usually inlining faster on programs
4967 having large chains of nested wrapper functions.
4968 .Sp
4969 Enabled by default.
4970 .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
4971 .IX Item "-finline-limit=n"
4972 By default, \s-1GCC\s0 limits the size of functions that can be inlined.  This flag
4973 allows coarse control of this limit.  \fIn\fR is the size of functions that
4974 can be inlined in number of pseudo instructions.
4975 .Sp
4976 Inlining is actually controlled by a number of parameters, which may be
4977 specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
4978 The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
4979 as follows:
4980 .RS 4
4981 .IP "\fBmax-inline-insns-single\fR" 4
4982 .IX Item "max-inline-insns-single"
4983 is set to \fIn\fR/2.
4984 .IP "\fBmax-inline-insns-auto\fR" 4
4985 .IX Item "max-inline-insns-auto"
4986 is set to \fIn\fR/2.
4987 .RE
4988 .RS 4
4989 .Sp
4990 See below for a documentation of the individual
4991 parameters controlling inlining and for the defaults of these parameters.
4992 .Sp
4993 \&\fINote:\fR there may be no value to \fB\-finline\-limit\fR that results
4994 in default behavior.
4995 .Sp
4996 \&\fINote:\fR pseudo instruction represents, in this particular context, an
4997 abstract measurement of function's size.  In no way does it represent a count
4998 of assembly instructions and as such its exact meaning might change from one
4999 release to an another.
5000 .RE
5001 .IP "\fB\-fkeep\-inline\-functions\fR" 4
5002 .IX Item "-fkeep-inline-functions"
5003 In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
5004 into the object file, even if the function has been inlined into all
5005 of its callers.  This switch does not affect functions using the
5006 \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU\s0 C89.  In \*(C+, emit any and all
5007 inline functions into the object file.
5008 .IP "\fB\-fkeep\-static\-consts\fR" 4
5009 .IX Item "-fkeep-static-consts"
5010 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
5011 on, even if the variables aren't referenced.
5012 .Sp
5013 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
5014 check if the variable was referenced, regardless of whether or not
5015 optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
5016 .IP "\fB\-fmerge\-constants\fR" 4
5017 .IX Item "-fmerge-constants"
5018 Attempt to merge identical constants (string constants and floating point
5019 constants) across compilation units.
5020 .Sp
5021 This option is the default for optimized compilation if the assembler and
5022 linker support it.  Use \fB\-fno\-merge\-constants\fR to inhibit this
5023 behavior.
5024 .Sp
5025 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5026 .IP "\fB\-fmerge\-all\-constants\fR" 4
5027 .IX Item "-fmerge-all-constants"
5028 Attempt to merge identical constants and identical variables.
5029 .Sp
5030 This option implies \fB\-fmerge\-constants\fR.  In addition to
5031 \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
5032 arrays or initialized constant variables with integral or floating point
5033 types.  Languages like C or \*(C+ require each variable, including multiple
5034 instances of the same variable in recursive calls, to have distinct locations,
5035 so using this option will result in non-conforming
5036 behavior.
5037 .IP "\fB\-fmodulo\-sched\fR" 4
5038 .IX Item "-fmodulo-sched"
5039 Perform swing modulo scheduling immediately before the first scheduling
5040 pass.  This pass looks at innermost loops and reorders their
5041 instructions by overlapping different iterations.
5042 .IP "\fB\-fmodulo\-sched\-allow\-regmoves\fR" 4
5043 .IX Item "-fmodulo-sched-allow-regmoves"
5044 Perform more aggressive \s-1SMS\s0 based modulo scheduling with register moves
5045 allowed.  By setting this flag certain anti-dependences edges will be
5046 deleted which will trigger the generation of reg-moves based on the
5047 life-range analysis.  This option is effective only with
5048 \&\fB\-fmodulo\-sched\fR enabled.
5049 .IP "\fB\-fno\-branch\-count\-reg\fR" 4
5050 .IX Item "-fno-branch-count-reg"
5051 Do not use \*(L"decrement and branch\*(R" instructions on a count register,
5052 but instead generate a sequence of instructions that decrement a
5053 register, compare it against zero, then branch based upon the result.
5054 This option is only meaningful on architectures that support such
5055 instructions, which include x86, PowerPC, \s-1IA\-64\s0 and S/390.
5056 .Sp
5057 The default is \fB\-fbranch\-count\-reg\fR.
5058 .IP "\fB\-fno\-function\-cse\fR" 4
5059 .IX Item "-fno-function-cse"
5060 Do not put function addresses in registers; make each instruction that
5061 calls a constant function contain the function's address explicitly.
5062 .Sp
5063 This option results in less efficient code, but some strange hacks
5064 that alter the assembler output may be confused by the optimizations
5065 performed when this option is not used.
5066 .Sp
5067 The default is \fB\-ffunction\-cse\fR
5068 .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
5069 .IX Item "-fno-zero-initialized-in-bss"
5070 If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
5071 are initialized to zero into \s-1BSS\s0.  This can save space in the resulting
5072 code.
5073 .Sp
5074 This option turns off this behavior because some programs explicitly
5075 rely on variables going to the data section.  E.g., so that the
5076 resulting executable can find the beginning of that section and/or make
5077 assumptions based on that.
5078 .Sp
5079 The default is \fB\-fzero\-initialized\-in\-bss\fR.
5080 .IP "\fB\-fmudflap \-fmudflapth \-fmudflapir\fR" 4
5081 .IX Item "-fmudflap -fmudflapth -fmudflapir"
5082 For front-ends that support it (C and \*(C+), instrument all risky
5083 pointer/array dereferencing operations, some standard library
5084 string/heap functions, and some other associated constructs with
5085 range/validity tests.  Modules so instrumented should be immune to
5086 buffer overflows, invalid heap use, and some other classes of C/\*(C+
5087 programming errors.  The instrumentation relies on a separate runtime
5088 library (\fIlibmudflap\fR), which will be linked into a program if
5089 \&\fB\-fmudflap\fR is given at link time.  Run-time behavior of the
5090 instrumented program is controlled by the \fB\s-1MUDFLAP_OPTIONS\s0\fR
5091 environment variable.  See \f(CW\*(C`env MUDFLAP_OPTIONS=\-help a.out\*(C'\fR
5092 for its options.
5093 .Sp
5094 Use \fB\-fmudflapth\fR instead of \fB\-fmudflap\fR to compile and to
5095 link if your program is multi-threaded.  Use \fB\-fmudflapir\fR, in
5096 addition to \fB\-fmudflap\fR or \fB\-fmudflapth\fR, if
5097 instrumentation should ignore pointer reads.  This produces less
5098 instrumentation (and therefore faster execution) and still provides
5099 some protection against outright memory corrupting writes, but allows
5100 erroneously read data to propagate within a program.
5101 .IP "\fB\-fthread\-jumps\fR" 4
5102 .IX Item "-fthread-jumps"
5103 Perform optimizations where we check to see if a jump branches to a
5104 location where another comparison subsumed by the first is found.  If
5105 so, the first branch is redirected to either the destination of the
5106 second branch or a point immediately following it, depending on whether
5107 the condition is known to be true or false.
5108 .Sp
5109 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5110 .IP "\fB\-fsplit\-wide\-types\fR" 4
5111 .IX Item "-fsplit-wide-types"
5112 When using a type that occupies multiple registers, such as \f(CW\*(C`long
5113 long\*(C'\fR on a 32\-bit system, split the registers apart and allocate them
5114 independently.  This normally generates better code for those types,
5115 but may make debugging more difficult.
5116 .Sp
5117 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR,
5118 \&\fB\-Os\fR.
5119 .IP "\fB\-fcse\-follow\-jumps\fR" 4
5120 .IX Item "-fcse-follow-jumps"
5121 In common subexpression elimination (\s-1CSE\s0), scan through jump instructions
5122 when the target of the jump is not reached by any other path.  For
5123 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
5124 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 will follow the jump when the condition
5125 tested is false.
5126 .Sp
5127 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5128 .IP "\fB\-fcse\-skip\-blocks\fR" 4
5129 .IX Item "-fcse-skip-blocks"
5130 This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
5131 follow jumps which conditionally skip over blocks.  When \s-1CSE\s0
5132 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
5133 \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
5134 body of the \f(CW\*(C`if\*(C'\fR.
5135 .Sp
5136 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5137 .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
5138 .IX Item "-frerun-cse-after-loop"
5139 Re-run common subexpression elimination after loop optimizations has been
5140 performed.
5141 .Sp
5142 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5143 .IP "\fB\-fgcse\fR" 4
5144 .IX Item "-fgcse"
5145 Perform a global common subexpression elimination pass.
5146 This pass also performs global constant and copy propagation.
5147 .Sp
5148 \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
5149 extension, you may get better runtime performance if you disable
5150 the global common subexpression elimination pass by adding
5151 \&\fB\-fno\-gcse\fR to the command line.
5152 .Sp
5153 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5154 .IP "\fB\-fgcse\-lm\fR" 4
5155 .IX Item "-fgcse-lm"
5156 When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination will
5157 attempt to move loads which are only killed by stores into themselves.  This
5158 allows a loop containing a load/store sequence to be changed to a load outside
5159 the loop, and a copy/store within the loop.
5160 .Sp
5161 Enabled by default when gcse is enabled.
5162 .IP "\fB\-fgcse\-sm\fR" 4
5163 .IX Item "-fgcse-sm"
5164 When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
5165 global common subexpression elimination.  This pass will attempt to move
5166 stores out of loops.  When used in conjunction with \fB\-fgcse\-lm\fR,
5167 loops containing a load/store sequence can be changed to a load before
5168 the loop and a store after the loop.
5169 .Sp
5170 Not enabled at any optimization level.
5171 .IP "\fB\-fgcse\-las\fR" 4
5172 .IX Item "-fgcse-las"
5173 When \fB\-fgcse\-las\fR is enabled, the global common subexpression
5174 elimination pass eliminates redundant loads that come after stores to the
5175 same memory location (both partial and full redundancies).
5176 .Sp
5177 Not enabled at any optimization level.
5178 .IP "\fB\-fgcse\-after\-reload\fR" 4
5179 .IX Item "-fgcse-after-reload"
5180 When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
5181 pass is performed after reload.  The purpose of this pass is to cleanup
5182 redundant spilling.
5183 .IP "\fB\-funsafe\-loop\-optimizations\fR" 4
5184 .IX Item "-funsafe-loop-optimizations"
5185 If given, the loop optimizer will assume that loop indices do not
5186 overflow, and that the loops with nontrivial exit condition are not
5187 infinite.  This enables a wider range of loop optimizations even if
5188 the loop optimizer itself cannot prove that these assumptions are valid.
5189 Using \fB\-Wunsafe\-loop\-optimizations\fR, the compiler will warn you
5190 if it finds this kind of loop.
5191 .IP "\fB\-fcrossjumping\fR" 4
5192 .IX Item "-fcrossjumping"
5193 Perform cross-jumping transformation.  This transformation unifies equivalent code and save code size.  The
5194 resulting code may or may not perform better than without cross-jumping.
5195 .Sp
5196 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5197 .IP "\fB\-fauto\-inc\-dec\fR" 4
5198 .IX Item "-fauto-inc-dec"
5199 Combine increments or decrements of addresses with memory accesses.
5200 This pass is always skipped on architectures that do not have
5201 instructions to support this.  Enabled by default at \fB\-O\fR and
5202 higher on architectures that support this.
5203 .IP "\fB\-fdce\fR" 4
5204 .IX Item "-fdce"
5205 Perform dead code elimination (\s-1DCE\s0) on \s-1RTL\s0.
5206 Enabled by default at \fB\-O\fR and higher.
5207 .IP "\fB\-fdse\fR" 4
5208 .IX Item "-fdse"
5209 Perform dead store elimination (\s-1DSE\s0) on \s-1RTL\s0.
5210 Enabled by default at \fB\-O\fR and higher.
5211 .IP "\fB\-fif\-conversion\fR" 4
5212 .IX Item "-fif-conversion"
5213 Attempt to transform conditional jumps into branch-less equivalents.  This
5214 include use of conditional moves, min, max, set flags and abs instructions, and
5215 some tricks doable by standard arithmetics.  The use of conditional execution
5216 on chips where it is available is controlled by \f(CW\*(C`if\-conversion2\*(C'\fR.
5217 .Sp
5218 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5219 .IP "\fB\-fif\-conversion2\fR" 4
5220 .IX Item "-fif-conversion2"
5221 Use conditional execution (where available) to transform conditional jumps into
5222 branch-less equivalents.
5223 .Sp
5224 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5225 .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
5226 .IX Item "-fdelete-null-pointer-checks"
5227 Use global dataflow analysis to identify and eliminate useless checks
5228 for null pointers.  The compiler assumes that dereferencing a null
5229 pointer would have halted the program.  If a pointer is checked after
5230 it has already been dereferenced, it cannot be null.
5231 .Sp
5232 In some environments, this assumption is not true, and programs can
5233 safely dereference null pointers.  Use
5234 \&\fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
5235 for programs which depend on that behavior.
5236 .Sp
5237 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5238 .IP "\fB\-fexpensive\-optimizations\fR" 4
5239 .IX Item "-fexpensive-optimizations"
5240 Perform a number of minor optimizations that are relatively expensive.
5241 .Sp
5242 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5243 .IP "\fB\-foptimize\-register\-move\fR" 4
5244 .IX Item "-foptimize-register-move"
5245 .PD 0
5246 .IP "\fB\-fregmove\fR" 4
5247 .IX Item "-fregmove"
5248 .PD
5249 Attempt to reassign register numbers in move instructions and as
5250 operands of other simple instructions in order to maximize the amount of
5251 register tying.  This is especially helpful on machines with two-operand
5252 instructions.
5253 .Sp
5254 Note \fB\-fregmove\fR and \fB\-foptimize\-register\-move\fR are the same
5255 optimization.
5256 .Sp
5257 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5258 .IP "\fB\-fira\-algorithm=\fR\fIalgorithm\fR" 4
5259 .IX Item "-fira-algorithm=algorithm"
5260 Use specified coloring algorithm for the integrated register
5261 allocator.  The \fIalgorithm\fR argument should be \f(CW\*(C`priority\*(C'\fR or
5262 \&\f(CW\*(C`CB\*(C'\fR.  The first algorithm specifies Chow's priority coloring,
5263 the second one specifies Chaitin-Briggs coloring.  The second
5264 algorithm can be unimplemented for some architectures.  If it is
5265 implemented, it is the default because Chaitin-Briggs coloring as a
5266 rule generates a better code.
5267 .IP "\fB\-fira\-region=\fR\fIregion\fR" 4
5268 .IX Item "-fira-region=region"
5269 Use specified regions for the integrated register allocator.  The
5270 \&\fIregion\fR argument should be one of \f(CW\*(C`all\*(C'\fR, \f(CW\*(C`mixed\*(C'\fR, or
5271 \&\f(CW\*(C`one\*(C'\fR.  The first value means using all loops as register
5272 allocation regions, the second value which is the default means using
5273 all loops except for loops with small register pressure as the
5274 regions, and third one means using all function as a single region.
5275 The first value can give best result for machines with small size and
5276 irregular register set, the third one results in faster and generates
5277 decent code and the smallest size code, and the default value usually
5278 give the best results in most cases and for most architectures.
5279 .IP "\fB\-fira\-coalesce\fR" 4
5280 .IX Item "-fira-coalesce"
5281 Do optimistic register coalescing.  This option might be profitable for
5282 architectures with big regular register files.
5283 .IP "\fB\-fno\-ira\-share\-save\-slots\fR" 4
5284 .IX Item "-fno-ira-share-save-slots"
5285 Switch off sharing stack slots used for saving call used hard
5286 registers living through a call.  Each hard register will get a
5287 separate stack slot and as a result function stack frame will be
5288 bigger.
5289 .IP "\fB\-fno\-ira\-share\-spill\-slots\fR" 4
5290 .IX Item "-fno-ira-share-spill-slots"
5291 Switch off sharing stack slots allocated for pseudo-registers.  Each
5292 pseudo-register which did not get a hard register will get a separate
5293 stack slot and as a result function stack frame will be bigger.
5294 .IP "\fB\-fira\-verbose=\fR\fIn\fR" 4
5295 .IX Item "-fira-verbose=n"
5296 Set up how verbose dump file for the integrated register allocator
5297 will be.  Default value is 5.  If the value is greater or equal to 10,
5298 the dump file will be stderr as if the value were \fIn\fR minus 10.
5299 .IP "\fB\-fdelayed\-branch\fR" 4
5300 .IX Item "-fdelayed-branch"
5301 If supported for the target machine, attempt to reorder instructions
5302 to exploit instruction slots available after delayed branch
5303 instructions.
5304 .Sp
5305 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5306 .IP "\fB\-fschedule\-insns\fR" 4
5307 .IX Item "-fschedule-insns"
5308 If supported for the target machine, attempt to reorder instructions to
5309 eliminate execution stalls due to required data being unavailable.  This
5310 helps machines that have slow floating point or memory load instructions
5311 by allowing other instructions to be issued until the result of the load
5312 or floating point instruction is required.
5313 .Sp
5314 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5315 .IP "\fB\-fschedule\-insns2\fR" 4
5316 .IX Item "-fschedule-insns2"
5317 Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
5318 instruction scheduling after register allocation has been done.  This is
5319 especially useful on machines with a relatively small number of
5320 registers and where memory load instructions take more than one cycle.
5321 .Sp
5322 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5323 .IP "\fB\-fno\-sched\-interblock\fR" 4
5324 .IX Item "-fno-sched-interblock"
5325 Don't schedule instructions across basic blocks.  This is normally
5326 enabled by default when scheduling before register allocation, i.e.
5327 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5328 .IP "\fB\-fno\-sched\-spec\fR" 4
5329 .IX Item "-fno-sched-spec"
5330 Don't allow speculative motion of non-load instructions.  This is normally
5331 enabled by default when scheduling before register allocation, i.e.
5332 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5333 .IP "\fB\-fsched\-spec\-load\fR" 4
5334 .IX Item "-fsched-spec-load"
5335 Allow speculative motion of some load instructions.  This only makes
5336 sense when scheduling before register allocation, i.e. with
5337 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5338 .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
5339 .IX Item "-fsched-spec-load-dangerous"
5340 Allow speculative motion of more load instructions.  This only makes
5341 sense when scheduling before register allocation, i.e. with
5342 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
5343 .IP "\fB\-fsched\-stalled\-insns\fR" 4
5344 .IX Item "-fsched-stalled-insns"
5345 .PD 0
5346 .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
5347 .IX Item "-fsched-stalled-insns=n"
5348 .PD
5349 Define how many insns (if any) can be moved prematurely from the queue
5350 of stalled insns into the ready list, during the second scheduling pass.
5351 \&\fB\-fno\-sched\-stalled\-insns\fR means that no insns will be moved
5352 prematurely, \fB\-fsched\-stalled\-insns=0\fR means there is no limit
5353 on how many queued insns can be moved prematurely.
5354 \&\fB\-fsched\-stalled\-insns\fR without a value is equivalent to
5355 \&\fB\-fsched\-stalled\-insns=1\fR.
5356 .IP "\fB\-fsched\-stalled\-insns\-dep\fR" 4
5357 .IX Item "-fsched-stalled-insns-dep"
5358 .PD 0
5359 .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
5360 .IX Item "-fsched-stalled-insns-dep=n"
5361 .PD
5362 Define how many insn groups (cycles) will be examined for a dependency
5363 on a stalled insn that is candidate for premature removal from the queue
5364 of stalled insns.  This has an effect only during the second scheduling pass,
5365 and only if \fB\-fsched\-stalled\-insns\fR is used.
5366 \&\fB\-fno\-sched\-stalled\-insns\-dep\fR is equivalent to
5367 \&\fB\-fsched\-stalled\-insns\-dep=0\fR.
5368 \&\fB\-fsched\-stalled\-insns\-dep\fR without a value is equivalent to
5369 \&\fB\-fsched\-stalled\-insns\-dep=1\fR.
5370 .IP "\fB\-fsched2\-use\-superblocks\fR" 4
5371 .IX Item "-fsched2-use-superblocks"
5372 When scheduling after register allocation, do use superblock scheduling
5373 algorithm.  Superblock scheduling allows motion across basic block boundaries
5374 resulting on faster schedules.  This option is experimental, as not all machine
5375 descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
5376 results from the algorithm.
5377 .Sp
5378 This only makes sense when scheduling after register allocation, i.e. with
5379 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
5380 .IP "\fB\-fsched2\-use\-traces\fR" 4
5381 .IX Item "-fsched2-use-traces"
5382 Use \fB\-fsched2\-use\-superblocks\fR algorithm when scheduling after register
5383 allocation and additionally perform code duplication in order to increase the
5384 size of superblocks using tracer pass.  See \fB\-ftracer\fR for details on
5385 trace formation.
5386 .Sp
5387 This mode should produce faster but significantly longer programs.  Also
5388 without \fB\-fbranch\-probabilities\fR the traces constructed may not
5389 match the reality and hurt the performance.  This only makes
5390 sense when scheduling after register allocation, i.e. with
5391 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
5392 .IP "\fB\-fsee\fR" 4
5393 .IX Item "-fsee"
5394 Eliminate redundant sign extension instructions and move the non-redundant
5395 ones to optimal placement using lazy code motion (\s-1LCM\s0).
5396 .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
5397 .IX Item "-freschedule-modulo-scheduled-loops"
5398 The modulo scheduling comes before the traditional scheduling, if a loop
5399 was modulo scheduled we may want to prevent the later scheduling passes
5400 from changing its schedule, we use this option to control that.
5401 .IP "\fB\-fselective\-scheduling\fR" 4
5402 .IX Item "-fselective-scheduling"
5403 Schedule instructions using selective scheduling algorithm.  Selective
5404 scheduling runs instead of the first scheduler pass.
5405 .IP "\fB\-fselective\-scheduling2\fR" 4
5406 .IX Item "-fselective-scheduling2"
5407 Schedule instructions using selective scheduling algorithm.  Selective
5408 scheduling runs instead of the second scheduler pass.
5409 .IP "\fB\-fsel\-sched\-pipelining\fR" 4
5410 .IX Item "-fsel-sched-pipelining"
5411 Enable software pipelining of innermost loops during selective scheduling.  
5412 This option has no effect until one of \fB\-fselective\-scheduling\fR or 
5413 \&\fB\-fselective\-scheduling2\fR is turned on.
5414 .IP "\fB\-fsel\-sched\-pipelining\-outer\-loops\fR" 4
5415 .IX Item "-fsel-sched-pipelining-outer-loops"
5416 When pipelining loops during selective scheduling, also pipeline outer loops.
5417 This option has no effect until \fB\-fsel\-sched\-pipelining\fR is turned on.
5418 .IP "\fB\-fcaller\-saves\fR" 4
5419 .IX Item "-fcaller-saves"
5420 Enable values to be allocated in registers that will be clobbered by
5421 function calls, by emitting extra instructions to save and restore the
5422 registers around such calls.  Such allocation is done only when it
5423 seems to result in better code than would otherwise be produced.
5424 .Sp
5425 This option is always enabled by default on certain machines, usually
5426 those which have no call-preserved registers to use instead.
5427 .Sp
5428 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5429 .IP "\fB\-fconserve\-stack\fR" 4
5430 .IX Item "-fconserve-stack"
5431 Attempt to minimize stack usage.  The compiler will attempt to use less
5432 stack space, even if that makes the program slower.  This option
5433 implies setting the \fBlarge-stack-frame\fR parameter to 100
5434 and the \fBlarge-stack-frame-growth\fR parameter to 400.
5435 .IP "\fB\-ftree\-reassoc\fR" 4
5436 .IX Item "-ftree-reassoc"
5437 Perform reassociation on trees.  This flag is enabled by default
5438 at \fB\-O\fR and higher.
5439 .IP "\fB\-ftree\-pre\fR" 4
5440 .IX Item "-ftree-pre"
5441 Perform partial redundancy elimination (\s-1PRE\s0) on trees.  This flag is
5442 enabled by default at \fB\-O2\fR and \fB\-O3\fR.
5443 .IP "\fB\-ftree\-fre\fR" 4
5444 .IX Item "-ftree-fre"
5445 Perform full redundancy elimination (\s-1FRE\s0) on trees.  The difference
5446 between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
5447 that are computed on all paths leading to the redundant computation.
5448 This analysis is faster than \s-1PRE\s0, though it exposes fewer redundancies.
5449 This flag is enabled by default at \fB\-O\fR and higher.
5450 .IP "\fB\-ftree\-copy\-prop\fR" 4
5451 .IX Item "-ftree-copy-prop"
5452 Perform copy propagation on trees.  This pass eliminates unnecessary
5453 copy operations.  This flag is enabled by default at \fB\-O\fR and
5454 higher.
5455 .IP "\fB\-fipa\-pure\-const\fR" 4
5456 .IX Item "-fipa-pure-const"
5457 Discover which functions are pure or constant.
5458 Enabled by default at \fB\-O\fR and higher.
5459 .IP "\fB\-fipa\-reference\fR" 4
5460 .IX Item "-fipa-reference"
5461 Discover which static variables do not escape cannot escape the
5462 compilation unit.
5463 Enabled by default at \fB\-O\fR and higher.
5464 .IP "\fB\-fipa\-struct\-reorg\fR" 4
5465 .IX Item "-fipa-struct-reorg"
5466 Perform structure reorganization optimization, that change C\-like structures 
5467 layout in order to better utilize spatial locality.  This transformation is 
5468 affective for programs containing arrays of structures.  Available in two 
5469 compilation modes: profile-based (enabled with \fB\-fprofile\-generate\fR)
5470 or static (which uses built-in heuristics).  Require \fB\-fipa\-type\-escape\fR
5471 to provide the safety of this transformation.  It works only in whole program
5472 mode, so it requires \fB\-fwhole\-program\fR and \fB\-combine\fR to be
5473 enabled.  Structures considered \fBcold\fR by this transformation are not
5474 affected (see \fB\-\-param struct\-reorg\-cold\-struct\-ratio=\fR\fIvalue\fR).
5475 .Sp
5476 With this flag, the program debug info reflects a new structure layout.
5477 .IP "\fB\-fipa\-pta\fR" 4
5478 .IX Item "-fipa-pta"
5479 Perform interprocedural pointer analysis.  This option is experimental
5480 and does not affect generated code.
5481 .IP "\fB\-fipa\-cp\fR" 4
5482 .IX Item "-fipa-cp"
5483 Perform interprocedural constant propagation.
5484 This optimization analyzes the program to determine when values passed
5485 to functions are constants and then optimizes accordingly.  
5486 This optimization can substantially increase performance
5487 if the application has constants passed to functions.
5488 This flag is enabled by default at \fB\-O2\fR, \fB\-Os\fR and \fB\-O3\fR.
5489 .IP "\fB\-fipa\-cp\-clone\fR" 4
5490 .IX Item "-fipa-cp-clone"
5491 Perform function cloning to make interprocedural constant propagation stronger.
5492 When enabled, interprocedural constant propagation will perform function cloning
5493 when externally visible function can be called with constant arguments.
5494 Because this optimization can create multiple copies of functions,
5495 it may significantly increase code size
5496 (see \fB\-\-param ipcp\-unit\-growth=\fR\fIvalue\fR).
5497 This flag is enabled by default at \fB\-O3\fR.
5498 .IP "\fB\-fipa\-matrix\-reorg\fR" 4
5499 .IX Item "-fipa-matrix-reorg"
5500 Perform matrix flattening and transposing.
5501 Matrix flattening tries to replace a m\-dimensional matrix 
5502 with its equivalent n\-dimensional matrix, where n < m.
5503 This reduces the level of indirection needed for accessing the elements
5504 of the matrix. The second optimization is matrix transposing that
5505 attempts to change the order of the matrix's dimensions in order to
5506 improve cache locality.
5507 Both optimizations need the \fB\-fwhole\-program\fR flag. 
5508 Transposing is enabled only if profiling information is available.
5509 .IP "\fB\-ftree\-sink\fR" 4
5510 .IX Item "-ftree-sink"
5511 Perform forward store motion  on trees.  This flag is
5512 enabled by default at \fB\-O\fR and higher.
5513 .IP "\fB\-ftree\-ccp\fR" 4
5514 .IX Item "-ftree-ccp"
5515 Perform sparse conditional constant propagation (\s-1CCP\s0) on trees.  This
5516 pass only operates on local scalar variables and is enabled by default
5517 at \fB\-O\fR and higher.
5518 .IP "\fB\-ftree\-switch\-conversion\fR" 4
5519 .IX Item "-ftree-switch-conversion"
5520 Perform conversion of simple initializations in a switch to
5521 initializations from a scalar array.  This flag is enabled by default
5522 at \fB\-O2\fR and higher.
5523 .IP "\fB\-ftree\-dce\fR" 4
5524 .IX Item "-ftree-dce"
5525 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
5526 default at \fB\-O\fR and higher.
5527 .IP "\fB\-ftree\-builtin\-call\-dce\fR" 4
5528 .IX Item "-ftree-builtin-call-dce"
5529 Perform conditional dead code elimination (\s-1DCE\s0) for calls to builtin functions 
5530 that may set \f(CW\*(C`errno\*(C'\fR but are otherwise side-effect free.  This flag is 
5531 enabled by default at \fB\-O2\fR and higher if \fB\-Os\fR is not also 
5532 specified.
5533 .IP "\fB\-ftree\-dominator\-opts\fR" 4
5534 .IX Item "-ftree-dominator-opts"
5535 Perform a variety of simple scalar cleanups (constant/copy
5536 propagation, redundancy elimination, range propagation and expression
5537 simplification) based on a dominator tree traversal.  This also
5538 performs jump threading (to reduce jumps to jumps). This flag is
5539 enabled by default at \fB\-O\fR and higher.
5540 .IP "\fB\-ftree\-dse\fR" 4
5541 .IX Item "-ftree-dse"
5542 Perform dead store elimination (\s-1DSE\s0) on trees.  A dead store is a store into
5543 a memory location which will later be overwritten by another store without
5544 any intervening loads.  In this case the earlier store can be deleted.  This
5545 flag is enabled by default at \fB\-O\fR and higher.
5546 .IP "\fB\-ftree\-ch\fR" 4
5547 .IX Item "-ftree-ch"
5548 Perform loop header copying on trees.  This is beneficial since it increases
5549 effectiveness of code motion optimizations.  It also saves one jump.  This flag
5550 is enabled by default at \fB\-O\fR and higher.  It is not enabled
5551 for \fB\-Os\fR, since it usually increases code size.
5552 .IP "\fB\-ftree\-loop\-optimize\fR" 4
5553 .IX Item "-ftree-loop-optimize"
5554 Perform loop optimizations on trees.  This flag is enabled by default
5555 at \fB\-O\fR and higher.
5556 .IP "\fB\-ftree\-loop\-linear\fR" 4
5557 .IX Item "-ftree-loop-linear"
5558 Perform linear loop transformations on tree.  This flag can improve cache
5559 performance and allow further loop optimizations to take place.
5560 .IP "\fB\-floop\-interchange\fR" 4
5561 .IX Item "-floop-interchange"
5562 Perform loop interchange transformations on loops.  Interchanging two
5563 nested loops switches the inner and outer loops.  For example, given a
5564 loop like:
5565 .Sp
5566 .Vb 5
5567 \&        DO J = 1, M
5568 \&          DO I = 1, N
5569 \&            A(J, I) = A(J, I) * C
5570 \&          ENDDO
5571 \&        ENDDO
5572 .Ve
5573 .Sp
5574 loop interchange will transform the loop as if the user had written:
5575 .Sp
5576 .Vb 5
5577 \&        DO I = 1, N
5578 \&          DO J = 1, M
5579 \&            A(J, I) = A(J, I) * C
5580 \&          ENDDO
5581 \&        ENDDO
5582 .Ve
5583 .Sp
5584 which can be beneficial when \f(CW\*(C`N\*(C'\fR is larger than the caches,
5585 because in Fortran, the elements of an array are stored in memory
5586 contiguously by column, and the original loop iterates over rows,
5587 potentially creating at each access a cache miss.  This optimization
5588 applies to all the languages supported by \s-1GCC\s0 and is not limited to
5589 Fortran.  To use this code transformation, \s-1GCC\s0 has to be configured
5590 with \fB\-\-with\-ppl\fR and \fB\-\-with\-cloog\fR to enable the
5591 Graphite loop transformation infrastructure.
5592 .IP "\fB\-floop\-strip\-mine\fR" 4
5593 .IX Item "-floop-strip-mine"
5594 Perform loop strip mining transformations on loops.  Strip mining
5595 splits a loop into two nested loops.  The outer loop has strides 
5596 equal to the strip size and the inner loop has strides of the 
5597 original loop within a strip.  For example, given a loop like:
5598 .Sp
5599 .Vb 3
5600 \&        DO I = 1, N
5601 \&          A(I) = A(I) + C
5602 \&        ENDDO
5603 .Ve
5604 .Sp
5605 loop strip mining will transform the loop as if the user had written:
5606 .Sp
5607 .Vb 5
5608 \&        DO II = 1, N, 4
5609 \&          DO I = II, min (II + 3, N)
5610 \&            A(I) = A(I) + C
5611 \&          ENDDO
5612 \&        ENDDO
5613 .Ve
5614 .Sp
5615 This optimization applies to all the languages supported by \s-1GCC\s0 and is
5616 not limited to Fortran.  To use this code transformation, \s-1GCC\s0 has to
5617 be configured with \fB\-\-with\-ppl\fR and \fB\-\-with\-cloog\fR to
5618 enable the Graphite loop transformation infrastructure.
5619 .IP "\fB\-floop\-block\fR" 4
5620 .IX Item "-floop-block"
5621 Perform loop blocking transformations on loops.  Blocking strip mines
5622 each loop in the loop nest such that the memory accesses of the
5623 element loops fit inside caches.  For example, given a loop like:
5624 .Sp
5625 .Vb 5
5626 \&        DO I = 1, N
5627 \&          DO J = 1, M
5628 \&            A(J, I) = B(I) + C(J)
5629 \&          ENDDO
5630 \&        ENDDO
5631 .Ve
5632 .Sp
5633 loop blocking will transform the loop as if the user had written:
5634 .Sp
5635 .Vb 9
5636 \&        DO II = 1, N, 64
5637 \&          DO JJ = 1, M, 64
5638 \&            DO I = II, min (II + 63, N)
5639 \&              DO J = JJ, min (JJ + 63, M)
5640 \&                A(J, I) = B(I) + C(J)
5641 \&              ENDDO
5642 \&            ENDDO
5643 \&          ENDDO
5644 \&        ENDDO
5645 .Ve
5646 .Sp
5647 which can be beneficial when \f(CW\*(C`M\*(C'\fR is larger than the caches,
5648 because the innermost loop will iterate over a smaller amount of data
5649 that can be kept in the caches.  This optimization applies to all the
5650 languages supported by \s-1GCC\s0 and is not limited to Fortran.  To use this
5651 code transformation, \s-1GCC\s0 has to be configured with \fB\-\-with\-ppl\fR
5652 and \fB\-\-with\-cloog\fR to enable the Graphite loop transformation
5653 infrastructure.
5654 .IP "\fB\-fcheck\-data\-deps\fR" 4
5655 .IX Item "-fcheck-data-deps"
5656 Compare the results of several data dependence analyzers.  This option
5657 is used for debugging the data dependence analyzers.
5658 .IP "\fB\-ftree\-loop\-distribution\fR" 4
5659 .IX Item "-ftree-loop-distribution"
5660 Perform loop distribution.  This flag can improve cache performance on
5661 big loop bodies and allow further loop optimizations, like
5662 parallelization or vectorization, to take place.  For example, the loop
5663 .Sp
5664 .Vb 4
5665 \&        DO I = 1, N
5666 \&          A(I) = B(I) + C
5667 \&          D(I) = E(I) * F
5668 \&        ENDDO
5669 .Ve
5670 .Sp
5671 is transformed to
5672 .Sp
5673 .Vb 6
5674 \&        DO I = 1, N
5675 \&           A(I) = B(I) + C
5676 \&        ENDDO
5677 \&        DO I = 1, N
5678 \&           D(I) = E(I) * F
5679 \&        ENDDO
5680 .Ve
5681 .IP "\fB\-ftree\-loop\-im\fR" 4
5682 .IX Item "-ftree-loop-im"
5683 Perform loop invariant motion on trees.  This pass moves only invariants that
5684 would be hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
5685 nontrivial sequences of insns).  With \fB\-funswitch\-loops\fR it also moves
5686 operands of conditions that are invariant out of the loop, so that we can use
5687 just trivial invariantness analysis in loop unswitching.  The pass also includes
5688 store motion.
5689 .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
5690 .IX Item "-ftree-loop-ivcanon"
5691 Create a canonical counter for number of iterations in the loop for that
5692 determining number of iterations requires complicated analysis.  Later
5693 optimizations then may determine the number easily.  Useful especially
5694 in connection with unrolling.
5695 .IP "\fB\-fivopts\fR" 4
5696 .IX Item "-fivopts"
5697 Perform induction variable optimizations (strength reduction, induction
5698 variable merging and induction variable elimination) on trees.
5699 .IP "\fB\-ftree\-parallelize\-loops=n\fR" 4
5700 .IX Item "-ftree-parallelize-loops=n"
5701 Parallelize loops, i.e., split their iteration space to run in n threads.
5702 This is only possible for loops whose iterations are independent
5703 and can be arbitrarily reordered.  The optimization is only
5704 profitable on multiprocessor machines, for loops that are CPU-intensive,
5705 rather than constrained e.g. by memory bandwidth.  This option
5706 implies \fB\-pthread\fR, and thus is only supported on targets
5707 that have support for \fB\-pthread\fR.
5708 .IP "\fB\-ftree\-sra\fR" 4
5709 .IX Item "-ftree-sra"
5710 Perform scalar replacement of aggregates.  This pass replaces structure
5711 references with scalars to prevent committing structures to memory too
5712 early.  This flag is enabled by default at \fB\-O\fR and higher.
5713 .IP "\fB\-ftree\-copyrename\fR" 4
5714 .IX Item "-ftree-copyrename"
5715 Perform copy renaming on trees.  This pass attempts to rename compiler
5716 temporaries to other variables at copy locations, usually resulting in
5717 variable names which more closely resemble the original variables.  This flag
5718 is enabled by default at \fB\-O\fR and higher.
5719 .IP "\fB\-ftree\-ter\fR" 4
5720 .IX Item "-ftree-ter"
5721 Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase.  Single
5722 use/single def temporaries are replaced at their use location with their
5723 defining expression.  This results in non-GIMPLE code, but gives the expanders
5724 much more complex trees to work on resulting in better \s-1RTL\s0 generation.  This is
5725 enabled by default at \fB\-O\fR and higher.
5726 .IP "\fB\-ftree\-vectorize\fR" 4
5727 .IX Item "-ftree-vectorize"
5728 Perform loop vectorization on trees. This flag is enabled by default at
5729 \&\fB\-O3\fR.
5730 .IP "\fB\-ftree\-vect\-loop\-version\fR" 4
5731 .IX Item "-ftree-vect-loop-version"
5732 Perform loop versioning when doing loop vectorization on trees.  When a loop
5733 appears to be vectorizable except that data alignment or data dependence cannot
5734 be determined at compile time then vectorized and non-vectorized versions of
5735 the loop are generated along with runtime checks for alignment or dependence
5736 to control which version is executed.  This option is enabled by default
5737 except at level \fB\-Os\fR where it is disabled.
5738 .IP "\fB\-fvect\-cost\-model\fR" 4
5739 .IX Item "-fvect-cost-model"
5740 Enable cost model for vectorization.
5741 .IP "\fB\-ftree\-vrp\fR" 4
5742 .IX Item "-ftree-vrp"
5743 Perform Value Range Propagation on trees.  This is similar to the
5744 constant propagation pass, but instead of values, ranges of values are
5745 propagated.  This allows the optimizers to remove unnecessary range
5746 checks like array bound checks and null pointer checks.  This is
5747 enabled by default at \fB\-O2\fR and higher.  Null pointer check
5748 elimination is only done if \fB\-fdelete\-null\-pointer\-checks\fR is
5749 enabled.
5750 .IP "\fB\-ftracer\fR" 4
5751 .IX Item "-ftracer"
5752 Perform tail duplication to enlarge superblock size.  This transformation
5753 simplifies the control flow of the function allowing other optimizations to do
5754 better job.
5755 .IP "\fB\-funroll\-loops\fR" 4
5756 .IX Item "-funroll-loops"
5757 Unroll loops whose number of iterations can be determined at compile
5758 time or upon entry to the loop.  \fB\-funroll\-loops\fR implies
5759 \&\fB\-frerun\-cse\-after\-loop\fR.  This option makes code larger,
5760 and may or may not make it run faster.
5761 .IP "\fB\-funroll\-all\-loops\fR" 4
5762 .IX Item "-funroll-all-loops"
5763 Unroll all loops, even if their number of iterations is uncertain when
5764 the loop is entered.  This usually makes programs run more slowly.
5765 \&\fB\-funroll\-all\-loops\fR implies the same options as
5766 \&\fB\-funroll\-loops\fR,
5767 .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
5768 .IX Item "-fsplit-ivs-in-unroller"
5769 Enables expressing of values of induction variables in later iterations
5770 of the unrolled loop using the value in the first iteration.  This breaks
5771 long dependency chains, thus improving efficiency of the scheduling passes.
5772 .Sp
5773 Combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
5774 same effect.  However in cases the loop body is more complicated than
5775 a single basic block, this is not reliable.  It also does not work at all
5776 on some of the architectures due to restrictions in the \s-1CSE\s0 pass.
5777 .Sp
5778 This optimization is enabled by default.
5779 .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
5780 .IX Item "-fvariable-expansion-in-unroller"
5781 With this option, the compiler will create multiple copies of some
5782 local variables when unrolling a loop which can result in superior code.
5783 .IP "\fB\-fpredictive\-commoning\fR" 4
5784 .IX Item "-fpredictive-commoning"
5785 Perform predictive commoning optimization, i.e., reusing computations
5786 (especially memory loads and stores) performed in previous
5787 iterations of loops.
5788 .Sp
5789 This option is enabled at level \fB\-O3\fR.
5790 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
5791 .IX Item "-fprefetch-loop-arrays"
5792 If supported by the target machine, generate instructions to prefetch
5793 memory to improve the performance of loops that access large arrays.
5794 .Sp
5795 This option may generate better or worse code; results are highly
5796 dependent on the structure of loops within the source code.
5797 .Sp
5798 Disabled at level \fB\-Os\fR.
5799 .IP "\fB\-fno\-peephole\fR" 4
5800 .IX Item "-fno-peephole"
5801 .PD 0
5802 .IP "\fB\-fno\-peephole2\fR" 4
5803 .IX Item "-fno-peephole2"
5804 .PD
5805 Disable any machine-specific peephole optimizations.  The difference
5806 between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
5807 are implemented in the compiler; some targets use one, some use the
5808 other, a few use both.
5809 .Sp
5810 \&\fB\-fpeephole\fR is enabled by default.
5811 \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5812 .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
5813 .IX Item "-fno-guess-branch-probability"
5814 Do not guess branch probabilities using heuristics.
5815 .Sp
5816 \&\s-1GCC\s0 will use heuristics to guess branch probabilities if they are
5817 not provided by profiling feedback (\fB\-fprofile\-arcs\fR).  These
5818 heuristics are based on the control flow graph.  If some branch probabilities
5819 are specified by \fB_\|_builtin_expect\fR, then the heuristics will be
5820 used to guess branch probabilities for the rest of the control flow graph,
5821 taking the \fB_\|_builtin_expect\fR info into account.  The interactions
5822 between the heuristics and \fB_\|_builtin_expect\fR can be complex, and in
5823 some cases, it may be useful to disable the heuristics so that the effects
5824 of \fB_\|_builtin_expect\fR are easier to understand.
5825 .Sp
5826 The default is \fB\-fguess\-branch\-probability\fR at levels
5827 \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5828 .IP "\fB\-freorder\-blocks\fR" 4
5829 .IX Item "-freorder-blocks"
5830 Reorder basic blocks in the compiled function in order to reduce number of
5831 taken branches and improve code locality.
5832 .Sp
5833 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
5834 .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
5835 .IX Item "-freorder-blocks-and-partition"
5836 In addition to reordering basic blocks in the compiled function, in order
5837 to reduce number of taken branches, partitions hot and cold basic blocks
5838 into separate sections of the assembly and .o files, to improve
5839 paging and cache locality performance.
5840 .Sp
5841 This optimization is automatically turned off in the presence of
5842 exception handling, for linkonce sections, for functions with a user-defined
5843 section attribute and on any architecture that does not support named
5844 sections.
5845 .IP "\fB\-freorder\-functions\fR" 4
5846 .IX Item "-freorder-functions"
5847 Reorder functions in the object file in order to
5848 improve code locality.  This is implemented by using special
5849 subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
5850 \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions.  Reordering is done by
5851 the linker so object file format must support named sections and linker must
5852 place them in a reasonable way.
5853 .Sp
5854 Also profile feedback must be available in to make this option effective.  See
5855 \&\fB\-fprofile\-arcs\fR for details.
5856 .Sp
5857 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5858 .IP "\fB\-fstrict\-aliasing\fR" 4
5859 .IX Item "-fstrict-aliasing"
5860 Allows the compiler to assume the strictest aliasing rules applicable to
5861 the language being compiled.  For C (and \*(C+), this activates
5862 optimizations based on the type of expressions.  In particular, an
5863 object of one type is assumed never to reside at the same address as an
5864 object of a different type, unless the types are almost the same.  For
5865 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
5866 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
5867 type.
5868 .Sp
5869 Pay special attention to code like this:
5870 .Sp
5871 .Vb 4
5872 \&        union a_union {
5873 \&          int i;
5874 \&          double d;
5875 \&        };
5876 \&        
5877 \&        int f() {
5878 \&          a_union t;
5879 \&          t.d = 3.0;
5880 \&          return t.i;
5881 \&        }
5882 .Ve
5883 .Sp
5884 The practice of reading from a different union member than the one most
5885 recently written to (called \*(L"type-punning\*(R") is common.  Even with
5886 \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
5887 is accessed through the union type.  So, the code above will work as
5888 expected.    However, this code might not:
5889 .Sp
5890 .Vb 7
5891 \&        int f() {
5892 \&          a_union t;
5893 \&          int* ip;
5894 \&          t.d = 3.0;
5895 \&          ip = &t.i;
5896 \&          return *ip;
5897 \&        }
5898 .Ve
5899 .Sp
5900 Similarly, access by taking the address, casting the resulting pointer
5901 and dereferencing the result has undefined behavior, even if the cast
5902 uses a union type, e.g.:
5903 .Sp
5904 .Vb 4
5905 \&        int f() {
5906 \&          double d = 3.0;
5907 \&          return ((union a_union *) &d)\->i;
5908 \&        }
5909 .Ve
5910 .Sp
5911 The \fB\-fstrict\-aliasing\fR option is enabled at levels
5912 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5913 .IP "\fB\-fstrict\-overflow\fR" 4
5914 .IX Item "-fstrict-overflow"
5915 Allow the compiler to assume strict signed overflow rules, depending
5916 on the language being compiled.  For C (and \*(C+) this means that
5917 overflow when doing arithmetic with signed numbers is undefined, which
5918 means that the compiler may assume that it will not happen.  This
5919 permits various optimizations.  For example, the compiler will assume
5920 that an expression like \f(CW\*(C`i + 10 > i\*(C'\fR will always be true for
5921 signed \f(CW\*(C`i\*(C'\fR.  This assumption is only valid if signed overflow is
5922 undefined, as the expression is false if \f(CW\*(C`i + 10\*(C'\fR overflows when
5923 using twos complement arithmetic.  When this option is in effect any
5924 attempt to determine whether an operation on signed numbers will
5925 overflow must be written carefully to not actually involve overflow.
5926 .Sp
5927 This option also allows the compiler to assume strict pointer
5928 semantics: given a pointer to an object, if adding an offset to that
5929 pointer does not produce a pointer to the same object, the addition is
5930 undefined.  This permits the compiler to conclude that \f(CW\*(C`p + u >
5931 p\*(C'\fR is always true for a pointer \f(CW\*(C`p\*(C'\fR and unsigned integer
5932 \&\f(CW\*(C`u\*(C'\fR.  This assumption is only valid because pointer wraparound is
5933 undefined, as the expression is false if \f(CW\*(C`p + u\*(C'\fR overflows using
5934 twos complement arithmetic.
5935 .Sp
5936 See also the \fB\-fwrapv\fR option.  Using \fB\-fwrapv\fR means
5937 that integer signed overflow is fully defined: it wraps.  When
5938 \&\fB\-fwrapv\fR is used, there is no difference between
5939 \&\fB\-fstrict\-overflow\fR and \fB\-fno\-strict\-overflow\fR for
5940 integers.  With \fB\-fwrapv\fR certain types of overflow are
5941 permitted.  For example, if the compiler gets an overflow when doing
5942 arithmetic on constants, the overflowed value can still be used with
5943 \&\fB\-fwrapv\fR, but not otherwise.
5944 .Sp
5945 The \fB\-fstrict\-overflow\fR option is enabled at levels
5946 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
5947 .IP "\fB\-falign\-functions\fR" 4
5948 .IX Item "-falign-functions"
5949 .PD 0
5950 .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
5951 .IX Item "-falign-functions=n"
5952 .PD
5953 Align the start of functions to the next power-of-two greater than
5954 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
5955 \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
5956 boundary, but \fB\-falign\-functions=24\fR would align to the next
5957 32\-byte boundary only if this can be done by skipping 23 bytes or less.
5958 .Sp
5959 \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
5960 equivalent and mean that functions will not be aligned.
5961 .Sp
5962 Some assemblers only support this flag when \fIn\fR is a power of two;
5963 in that case, it is rounded up.
5964 .Sp
5965 If \fIn\fR is not specified or is zero, use a machine-dependent default.
5966 .Sp
5967 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
5968 .IP "\fB\-falign\-labels\fR" 4
5969 .IX Item "-falign-labels"
5970 .PD 0
5971 .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
5972 .IX Item "-falign-labels=n"
5973 .PD
5974 Align all branch targets to a power-of-two boundary, skipping up to
5975 \&\fIn\fR bytes like \fB\-falign\-functions\fR.  This option can easily
5976 make code slower, because it must insert dummy operations for when the
5977 branch target is reached in the usual flow of the code.
5978 .Sp
5979 \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
5980 equivalent and mean that labels will not be aligned.
5981 .Sp
5982 If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
5983 are greater than this value, then their values are used instead.
5984 .Sp
5985 If \fIn\fR is not specified or is zero, use a machine-dependent default
5986 which is very likely to be \fB1\fR, meaning no alignment.
5987 .Sp
5988 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
5989 .IP "\fB\-falign\-loops\fR" 4
5990 .IX Item "-falign-loops"
5991 .PD 0
5992 .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
5993 .IX Item "-falign-loops=n"
5994 .PD
5995 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
5996 like \fB\-falign\-functions\fR.  The hope is that the loop will be
5997 executed many times, which will make up for any execution of the dummy
5998 operations.
5999 .Sp
6000 \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
6001 equivalent and mean that loops will not be aligned.
6002 .Sp
6003 If \fIn\fR is not specified or is zero, use a machine-dependent default.
6004 .Sp
6005 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
6006 .IP "\fB\-falign\-jumps\fR" 4
6007 .IX Item "-falign-jumps"
6008 .PD 0
6009 .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
6010 .IX Item "-falign-jumps=n"
6011 .PD
6012 Align branch targets to a power-of-two boundary, for branch targets
6013 where the targets can only be reached by jumping, skipping up to \fIn\fR
6014 bytes like \fB\-falign\-functions\fR.  In this case, no dummy operations
6015 need be executed.
6016 .Sp
6017 \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
6018 equivalent and mean that loops will not be aligned.
6019 .Sp
6020 If \fIn\fR is not specified or is zero, use a machine-dependent default.
6021 .Sp
6022 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
6023 .IP "\fB\-funit\-at\-a\-time\fR" 4
6024 .IX Item "-funit-at-a-time"
6025 This option is left for compatibility reasons. \fB\-funit\-at\-a\-time\fR
6026 has no effect, while \fB\-fno\-unit\-at\-a\-time\fR implies
6027 \&\fB\-fno\-toplevel\-reorder\fR and \fB\-fno\-section\-anchors\fR.
6028 .Sp
6029 Enabled by default.
6030 .IP "\fB\-fno\-toplevel\-reorder\fR" 4
6031 .IX Item "-fno-toplevel-reorder"
6032 Do not reorder top-level functions, variables, and \f(CW\*(C`asm\*(C'\fR
6033 statements.  Output them in the same order that they appear in the
6034 input file.  When this option is used, unreferenced static variables
6035 will not be removed.  This option is intended to support existing code
6036 which relies on a particular ordering.  For new code, it is better to
6037 use attributes.
6038 .Sp
6039 Enabled at level \fB\-O0\fR.  When disabled explicitly, it also imply
6040 \&\fB\-fno\-section\-anchors\fR that is otherwise enabled at \fB\-O0\fR on some
6041 targets.
6042 .IP "\fB\-fweb\fR" 4
6043 .IX Item "-fweb"
6044 Constructs webs as commonly used for register allocation purposes and assign
6045 each web individual pseudo register.  This allows the register allocation pass
6046 to operate on pseudos directly, but also strengthens several other optimization
6047 passes, such as \s-1CSE\s0, loop optimizer and trivial dead code remover.  It can,
6048 however, make debugging impossible, since variables will no longer stay in a
6049 \&\*(L"home register\*(R".
6050 .Sp
6051 Enabled by default with \fB\-funroll\-loops\fR.
6052 .IP "\fB\-fwhole\-program\fR" 4
6053 .IX Item "-fwhole-program"
6054 Assume that the current compilation unit represents whole program being
6055 compiled.  All public functions and variables with the exception of \f(CW\*(C`main\*(C'\fR
6056 and those merged by attribute \f(CW\*(C`externally_visible\*(C'\fR become static functions
6057 and in a affect gets more aggressively optimized by interprocedural optimizers.
6058 While this option is equivalent to proper use of \f(CW\*(C`static\*(C'\fR keyword for
6059 programs consisting of single file, in combination with option
6060 \&\fB\-\-combine\fR this flag can be used to compile most of smaller scale C
6061 programs since the functions and variables become local for the whole combined
6062 compilation unit, not for the single source file itself.
6063 .Sp
6064 This option is not supported for Fortran programs.
6065 .IP "\fB\-fcprop\-registers\fR" 4
6066 .IX Item "-fcprop-registers"
6067 After register allocation and post-register allocation instruction splitting,
6068 we perform a copy-propagation pass to try to reduce scheduling dependencies
6069 and occasionally eliminate the copy.
6070 .Sp
6071 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6072 .IP "\fB\-fprofile\-correction\fR" 4
6073 .IX Item "-fprofile-correction"
6074 Profiles collected using an instrumented binary for multi-threaded programs may
6075 be inconsistent due to missed counter updates. When this option is specified,
6076 \&\s-1GCC\s0 will use heuristics to correct or smooth out such inconsistencies. By
6077 default, \s-1GCC\s0 will emit an error message when an inconsistent profile is detected.
6078 .IP "\fB\-fprofile\-dir=\fR\fIpath\fR" 4
6079 .IX Item "-fprofile-dir=path"
6080 Set the directory to search the profile data files in to \fIpath\fR.
6081 This option affects only the profile data generated by
6082 \&\fB\-fprofile\-generate\fR, \fB\-ftest\-coverage\fR, \fB\-fprofile\-arcs\fR
6083 and used by \fB\-fprofile\-use\fR and \fB\-fbranch\-probabilities\fR 
6084 and its related options.
6085 By default, \s-1GCC\s0 will use the current directory as \fIpath\fR
6086 thus the profile data file will appear in the same directory as the object file.
6087 .IP "\fB\-fprofile\-generate\fR" 4
6088 .IX Item "-fprofile-generate"
6089 .PD 0
6090 .IP "\fB\-fprofile\-generate=\fR\fIpath\fR" 4
6091 .IX Item "-fprofile-generate=path"
6092 .PD
6093 Enable options usually used for instrumenting application to produce
6094 profile useful for later recompilation with profile feedback based
6095 optimization.  You must use \fB\-fprofile\-generate\fR both when
6096 compiling and when linking your program.
6097 .Sp
6098 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.
6099 .Sp
6100 If \fIpath\fR is specified, \s-1GCC\s0 will look at the \fIpath\fR to find
6101 the profile feedback data files. See \fB\-fprofile\-dir\fR.
6102 .IP "\fB\-fprofile\-use\fR" 4
6103 .IX Item "-fprofile-use"
6104 .PD 0
6105 .IP "\fB\-fprofile\-use=\fR\fIpath\fR" 4
6106 .IX Item "-fprofile-use=path"
6107 .PD
6108 Enable profile feedback directed optimizations, and optimizations
6109 generally profitable only with profile feedback available.
6110 .Sp
6111 The following options are enabled: \f(CW\*(C`\-fbranch\-probabilities\*(C'\fR, \f(CW\*(C`\-fvpt\*(C'\fR,
6112 \&\f(CW\*(C`\-funroll\-loops\*(C'\fR, \f(CW\*(C`\-fpeel\-loops\*(C'\fR, \f(CW\*(C`\-ftracer\*(C'\fR
6113 .Sp
6114 By default, \s-1GCC\s0 emits an error message if the feedback profiles do not
6115 match the source code.  This error can be turned into a warning by using
6116 \&\fB\-Wcoverage\-mismatch\fR.  Note this may result in poorly optimized
6117 code.
6118 .Sp
6119 If \fIpath\fR is specified, \s-1GCC\s0 will look at the \fIpath\fR to find
6120 the profile feedback data files. See \fB\-fprofile\-dir\fR.
6121 .PP
6122 The following options control compiler behavior regarding floating
6123 point arithmetic.  These options trade off between speed and
6124 correctness.  All must be specifically enabled.
6125 .IP "\fB\-ffloat\-store\fR" 4
6126 .IX Item "-ffloat-store"
6127 Do not store floating point variables in registers, and inhibit other
6128 options that might change whether a floating point value is taken from a
6129 register or memory.
6130 .Sp
6131 This option prevents undesirable excess precision on machines such as
6132 the 68000 where the floating registers (of the 68881) keep more
6133 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
6134 x86 architecture.  For most programs, the excess precision does only
6135 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
6136 point.  Use \fB\-ffloat\-store\fR for such programs, after modifying
6137 them to store all pertinent intermediate computations into variables.
6138 .IP "\fB\-ffast\-math\fR" 4
6139 .IX Item "-ffast-math"
6140 Sets \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR,
6141 \&\fB\-ffinite\-math\-only\fR, \fB\-fno\-rounding\-math\fR,
6142 \&\fB\-fno\-signaling\-nans\fR and \fB\-fcx\-limited\-range\fR.
6143 .Sp
6144 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
6145 .Sp
6146 This option is not turned on by any \fB\-O\fR option since
6147 it can result in incorrect output for programs which depend on
6148 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
6149 math functions. It may, however, yield faster code for programs
6150 that do not require the guarantees of these specifications.
6151 .IP "\fB\-fno\-math\-errno\fR" 4
6152 .IX Item "-fno-math-errno"
6153 Do not set \s-1ERRNO\s0 after calling math functions that are executed
6154 with a single instruction, e.g., sqrt.  A program that relies on
6155 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
6156 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
6157 .Sp
6158 This option is not turned on by any \fB\-O\fR option since
6159 it can result in incorrect output for programs which depend on
6160 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
6161 math functions. It may, however, yield faster code for programs
6162 that do not require the guarantees of these specifications.
6163 .Sp
6164 The default is \fB\-fmath\-errno\fR.
6165 .Sp
6166 On Darwin systems, the math library never sets \f(CW\*(C`errno\*(C'\fR.  There is
6167 therefore no reason for the compiler to consider the possibility that
6168 it might, and \fB\-fno\-math\-errno\fR is the default.
6169 .IP "\fB\-funsafe\-math\-optimizations\fR" 4
6170 .IX Item "-funsafe-math-optimizations"
6171 Allow optimizations for floating-point arithmetic that (a) assume
6172 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
6173 \&\s-1ANSI\s0 standards.  When used at link-time, it may include libraries
6174 or startup files that change the default \s-1FPU\s0 control word or other
6175 similar optimizations.
6176 .Sp
6177 This option is not turned on by any \fB\-O\fR option since
6178 it can result in incorrect output for programs which depend on
6179 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
6180 math functions. It may, however, yield faster code for programs
6181 that do not require the guarantees of these specifications.
6182 Enables \fB\-fno\-signed\-zeros\fR, \fB\-fno\-trapping\-math\fR,
6183 \&\fB\-fassociative\-math\fR and \fB\-freciprocal\-math\fR.
6184 .Sp
6185 The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
6186 .IP "\fB\-fassociative\-math\fR" 4
6187 .IX Item "-fassociative-math"
6188 Allow re-association of operands in series of floating-point operations.
6189 This violates the \s-1ISO\s0 C and \*(C+ language standard by possibly changing
6190 computation result.  \s-1NOTE:\s0 re-ordering may change the sign of zero as
6191 well as ignore NaNs and inhibit or create underflow or overflow (and
6192 thus cannot be used on a code which relies on rounding behavior like
6193 \&\f(CW\*(C`(x + 2**52) \- 2**52)\*(C'\fR.  May also reorder floating-point comparisons
6194 and thus may not be used when ordered comparisons are required.
6195 This option requires that both \fB\-fno\-signed\-zeros\fR and
6196 \&\fB\-fno\-trapping\-math\fR be in effect.  Moreover, it doesn't make
6197 much sense with \fB\-frounding\-math\fR.
6198 .Sp
6199 The default is \fB\-fno\-associative\-math\fR.
6200 .IP "\fB\-freciprocal\-math\fR" 4
6201 .IX Item "-freciprocal-math"
6202 Allow the reciprocal of a value to be used instead of dividing by
6203 the value if this enables optimizations.  For example \f(CW\*(C`x / y\*(C'\fR
6204 can be replaced with \f(CW\*(C`x * (1/y)\*(C'\fR which is useful if \f(CW\*(C`(1/y)\*(C'\fR
6205 is subject to common subexpression elimination.  Note that this loses
6206 precision and increases the number of flops operating on the value.
6207 .Sp
6208 The default is \fB\-fno\-reciprocal\-math\fR.
6209 .IP "\fB\-ffinite\-math\-only\fR" 4
6210 .IX Item "-ffinite-math-only"
6211 Allow optimizations for floating-point arithmetic that assume
6212 that arguments and results are not NaNs or +\-Infs.
6213 .Sp
6214 This option is not turned on by any \fB\-O\fR option since
6215 it can result in incorrect output for programs which depend on
6216 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
6217 math functions. It may, however, yield faster code for programs
6218 that do not require the guarantees of these specifications.
6219 .Sp
6220 The default is \fB\-fno\-finite\-math\-only\fR.
6221 .IP "\fB\-fno\-signed\-zeros\fR" 4
6222 .IX Item "-fno-signed-zeros"
6223 Allow optimizations for floating point arithmetic that ignore the
6224 signedness of zero.  \s-1IEEE\s0 arithmetic specifies the behavior of
6225 distinct +0.0 and \-0.0 values, which then prohibits simplification
6226 of expressions such as x+0.0 or 0.0*x (even with \fB\-ffinite\-math\-only\fR).
6227 This option implies that the sign of a zero result isn't significant.
6228 .Sp
6229 The default is \fB\-fsigned\-zeros\fR.
6230 .IP "\fB\-fno\-trapping\-math\fR" 4
6231 .IX Item "-fno-trapping-math"
6232 Compile code assuming that floating-point operations cannot generate
6233 user-visible traps.  These traps include division by zero, overflow,
6234 underflow, inexact result and invalid operation.  This option requires
6235 that \fB\-fno\-signaling\-nans\fR be in effect.  Setting this option may
6236 allow faster code if one relies on \*(L"non-stop\*(R" \s-1IEEE\s0 arithmetic, for example.
6237 .Sp
6238 This option should never be turned on by any \fB\-O\fR option since
6239 it can result in incorrect output for programs which depend on
6240 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
6241 math functions.
6242 .Sp
6243 The default is \fB\-ftrapping\-math\fR.
6244 .IP "\fB\-frounding\-math\fR" 4
6245 .IX Item "-frounding-math"
6246 Disable transformations and optimizations that assume default floating
6247 point rounding behavior.  This is round-to-zero for all floating point
6248 to integer conversions, and round-to-nearest for all other arithmetic
6249 truncations.  This option should be specified for programs that change
6250 the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
6251 non-default rounding mode.  This option disables constant folding of
6252 floating point expressions at compile-time (which may be affected by
6253 rounding mode) and arithmetic transformations that are unsafe in the
6254 presence of sign-dependent rounding modes.
6255 .Sp
6256 The default is \fB\-fno\-rounding\-math\fR.
6257 .Sp
6258 This option is experimental and does not currently guarantee to
6259 disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
6260 Future versions of \s-1GCC\s0 may provide finer control of this setting
6261 using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma.  This command line option
6262 will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
6263 .IP "\fB\-frtl\-abstract\-sequences\fR" 4
6264 .IX Item "-frtl-abstract-sequences"
6265 It is a size optimization method. This option is to find identical
6266 sequences of code, which can be turned into pseudo-procedures  and
6267 then  replace  all  occurrences with  calls to  the  newly created
6268 subroutine. It is kind of an opposite of \fB\-finline\-functions\fR.
6269 This optimization runs at \s-1RTL\s0 level.
6270 .IP "\fB\-fsignaling\-nans\fR" 4
6271 .IX Item "-fsignaling-nans"
6272 Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
6273 traps during floating-point operations.  Setting this option disables
6274 optimizations that may change the number of exceptions visible with
6275 signaling NaNs.  This option implies \fB\-ftrapping\-math\fR.
6276 .Sp
6277 This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
6278 be defined.
6279 .Sp
6280 The default is \fB\-fno\-signaling\-nans\fR.
6281 .Sp
6282 This option is experimental and does not currently guarantee to
6283 disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
6284 .IP "\fB\-fsingle\-precision\-constant\fR" 4
6285 .IX Item "-fsingle-precision-constant"
6286 Treat floating point constant as single precision constant instead of
6287 implicitly converting it to double precision constant.
6288 .IP "\fB\-fcx\-limited\-range\fR" 4
6289 .IX Item "-fcx-limited-range"
6290 When enabled, this option states that a range reduction step is not
6291 needed when performing complex division.  Also, there is no checking
6292 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
6293 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.  The
6294 default is \fB\-fno\-cx\-limited\-range\fR, but is enabled by
6295 \&\fB\-ffast\-math\fR.
6296 .Sp
6297 This option controls the default setting of the \s-1ISO\s0 C99
6298 \&\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma.  Nevertheless, the option applies to
6299 all languages.
6300 .IP "\fB\-fcx\-fortran\-rules\fR" 4
6301 .IX Item "-fcx-fortran-rules"
6302 Complex multiplication and division follow Fortran rules.  Range
6303 reduction is done as part of complex division, but there is no checking
6304 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
6305 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.
6306 .Sp
6307 The default is \fB\-fno\-cx\-fortran\-rules\fR.
6308 .PP
6309 The following options control optimizations that may improve
6310 performance, but are not enabled by any \fB\-O\fR options.  This
6311 section includes experimental options that may produce broken code.
6312 .IP "\fB\-fbranch\-probabilities\fR" 4
6313 .IX Item "-fbranch-probabilities"
6314 After running a program compiled with \fB\-fprofile\-arcs\fR, you can compile it a second time using
6315 \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
6316 the number of times each branch was taken.  When the program
6317 compiled with \fB\-fprofile\-arcs\fR exits it saves arc execution
6318 counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
6319 file.  The information in this data file is very dependent on the
6320 structure of the generated code, so you must use the same source code
6321 and the same optimization options for both compilations.
6322 .Sp
6323 With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
6324 \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
6325 These can be used to improve optimization.  Currently, they are only
6326 used in one place: in \fIreorg.c\fR, instead of guessing which path a
6327 branch is mostly to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
6328 exactly determine which path is taken more often.
6329 .IP "\fB\-fprofile\-values\fR" 4
6330 .IX Item "-fprofile-values"
6331 If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
6332 data about values of expressions in the program is gathered.
6333 .Sp
6334 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
6335 from profiling values of expressions and adds \fB\s-1REG_VALUE_PROFILE\s0\fR
6336 notes to instructions for their later usage in optimizations.
6337 .Sp
6338 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
6339 .IP "\fB\-fvpt\fR" 4
6340 .IX Item "-fvpt"
6341 If combined with \fB\-fprofile\-arcs\fR, it instructs the compiler to add
6342 a code to gather information about values of expressions.
6343 .Sp
6344 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
6345 and actually performs the optimizations based on them.
6346 Currently the optimizations include specialization of division operation
6347 using the knowledge about the value of the denominator.
6348 .IP "\fB\-frename\-registers\fR" 4
6349 .IX Item "-frename-registers"
6350 Attempt to avoid false dependencies in scheduled code by making use
6351 of registers left over after register allocation.  This optimization
6352 will most benefit processors with lots of registers.  Depending on the
6353 debug information format adopted by the target, however, it can
6354 make debugging impossible, since variables will no longer stay in
6355 a \*(L"home register\*(R".
6356 .Sp
6357 Enabled by default with \fB\-funroll\-loops\fR.
6358 .IP "\fB\-ftracer\fR" 4
6359 .IX Item "-ftracer"
6360 Perform tail duplication to enlarge superblock size.  This transformation
6361 simplifies the control flow of the function allowing other optimizations to do
6362 better job.
6363 .Sp
6364 Enabled with \fB\-fprofile\-use\fR.
6365 .IP "\fB\-funroll\-loops\fR" 4
6366 .IX Item "-funroll-loops"
6367 Unroll loops whose number of iterations can be determined at compile time or
6368 upon entry to the loop.  \fB\-funroll\-loops\fR implies
6369 \&\fB\-frerun\-cse\-after\-loop\fR, \fB\-fweb\fR and \fB\-frename\-registers\fR.
6370 It also turns on complete loop peeling (i.e. complete removal of loops with
6371 small constant number of iterations).  This option makes code larger, and may
6372 or may not make it run faster.
6373 .Sp
6374 Enabled with \fB\-fprofile\-use\fR.
6375 .IP "\fB\-funroll\-all\-loops\fR" 4
6376 .IX Item "-funroll-all-loops"
6377 Unroll all loops, even if their number of iterations is uncertain when
6378 the loop is entered.  This usually makes programs run more slowly.
6379 \&\fB\-funroll\-all\-loops\fR implies the same options as
6380 \&\fB\-funroll\-loops\fR.
6381 .IP "\fB\-fpeel\-loops\fR" 4
6382 .IX Item "-fpeel-loops"
6383 Peels the loops for that there is enough information that they do not
6384 roll much (from profile feedback).  It also turns on complete loop peeling
6385 (i.e. complete removal of loops with small constant number of iterations).
6386 .Sp
6387 Enabled with \fB\-fprofile\-use\fR.
6388 .IP "\fB\-fmove\-loop\-invariants\fR" 4
6389 .IX Item "-fmove-loop-invariants"
6390 Enables the loop invariant motion pass in the \s-1RTL\s0 loop optimizer.  Enabled
6391 at level \fB\-O1\fR
6392 .IP "\fB\-funswitch\-loops\fR" 4
6393 .IX Item "-funswitch-loops"
6394 Move branches with loop invariant conditions out of the loop, with duplicates
6395 of the loop on both branches (modified according to result of the condition).
6396 .IP "\fB\-ffunction\-sections\fR" 4
6397 .IX Item "-ffunction-sections"
6398 .PD 0
6399 .IP "\fB\-fdata\-sections\fR" 4
6400 .IX Item "-fdata-sections"
6401 .PD
6402 Place each function or data item into its own section in the output
6403 file if the target supports arbitrary sections.  The name of the
6404 function or the name of the data item determines the section's name
6405 in the output file.
6406 .Sp
6407 Use these options on systems where the linker can perform optimizations
6408 to improve locality of reference in the instruction space.  Most systems
6409 using the \s-1ELF\s0 object format and \s-1SPARC\s0 processors running Solaris 2 have
6410 linkers with such optimizations.  \s-1AIX\s0 may have these optimizations in
6411 the future.
6412 .Sp
6413 Only use these options when there are significant benefits from doing
6414 so.  When you specify these options, the assembler and linker will
6415 create larger object and executable files and will also be slower.
6416 You will not be able to use \f(CW\*(C`gprof\*(C'\fR on all systems if you
6417 specify this option and you may have problems with debugging if
6418 you specify both this option and \fB\-g\fR.
6419 .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
6420 .IX Item "-fbranch-target-load-optimize"
6421 Perform branch target register load optimization before prologue / epilogue
6422 threading.
6423 The use of target registers can typically be exposed only during reload,
6424 thus hoisting loads out of loops and doing inter-block scheduling needs
6425 a separate optimization pass.
6426 .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
6427 .IX Item "-fbranch-target-load-optimize2"
6428 Perform branch target register load optimization after prologue / epilogue
6429 threading.
6430 .IP "\fB\-fbtr\-bb\-exclusive\fR" 4
6431 .IX Item "-fbtr-bb-exclusive"
6432 When performing branch target register load optimization, don't reuse
6433 branch target registers in within any basic block.
6434 .IP "\fB\-fstack\-protector\fR" 4
6435 .IX Item "-fstack-protector"
6436 Emit extra code to check for buffer overflows, such as stack smashing
6437 attacks.  This is done by adding a guard variable to functions with
6438 vulnerable objects.  This includes functions that call alloca, and
6439 functions with buffers larger than 8 bytes.  The guards are initialized
6440 when a function is entered and then checked when the function exits.
6441 If a guard check fails, an error message is printed and the program exits.
6442 .IP "\fB\-fstack\-protector\-all\fR" 4
6443 .IX Item "-fstack-protector-all"
6444 Like \fB\-fstack\-protector\fR except that all functions are protected.
6445 .IP "\fB\-fsection\-anchors\fR" 4
6446 .IX Item "-fsection-anchors"
6447 Try to reduce the number of symbolic address calculations by using
6448 shared \*(L"anchor\*(R" symbols to address nearby objects.  This transformation
6449 can help to reduce the number of \s-1GOT\s0 entries and \s-1GOT\s0 accesses on some
6450 targets.
6451 .Sp
6452 For example, the implementation of the following function \f(CW\*(C`foo\*(C'\fR:
6453 .Sp
6454 .Vb 2
6455 \&        static int a, b, c;
6456 \&        int foo (void) { return a + b + c; }
6457 .Ve
6458 .Sp
6459 would usually calculate the addresses of all three variables, but if you
6460 compile it with \fB\-fsection\-anchors\fR, it will access the variables
6461 from a common anchor point instead.  The effect is similar to the
6462 following pseudocode (which isn't valid C):
6463 .Sp
6464 .Vb 5
6465 \&        int foo (void)
6466 \&        {
6467 \&          register int *xr = &x;
6468 \&          return xr[&a \- &x] + xr[&b \- &x] + xr[&c \- &x];
6469 \&        }
6470 .Ve
6471 .Sp
6472 Not all targets support this option.
6473 .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
6474 .IX Item "--param name=value"
6475 In some places, \s-1GCC\s0 uses various constants to control the amount of
6476 optimization that is done.  For example, \s-1GCC\s0 will not inline functions
6477 that contain more that a certain number of instructions.  You can
6478 control some of these constants on the command-line using the
6479 \&\fB\-\-param\fR option.
6480 .Sp
6481 The names of specific parameters, and the meaning of the values, are
6482 tied to the internals of the compiler, and are subject to change
6483 without notice in future releases.
6484 .Sp
6485 In each case, the \fIvalue\fR is an integer.  The allowable choices for
6486 \&\fIname\fR are given in the following table:
6487 .RS 4
6488 .IP "\fBsra-max-structure-size\fR" 4
6489 .IX Item "sra-max-structure-size"
6490 The maximum structure size, in bytes, at which the scalar replacement
6491 of aggregates (\s-1SRA\s0) optimization will perform block copies.  The
6492 default value, 0, implies that \s-1GCC\s0 will select the most appropriate
6493 size itself.
6494 .IP "\fBsra-field-structure-ratio\fR" 4
6495 .IX Item "sra-field-structure-ratio"
6496 The threshold ratio (as a percentage) between instantiated fields and
6497 the complete structure size.  We say that if the ratio of the number
6498 of bytes in instantiated fields to the number of bytes in the complete
6499 structure exceeds this parameter, then block copies are not used.  The
6500 default is 75.
6501 .IP "\fBstruct-reorg-cold-struct-ratio\fR" 4
6502 .IX Item "struct-reorg-cold-struct-ratio"
6503 The threshold ratio (as a percentage) between a structure frequency
6504 and the frequency of the hottest structure in the program.  This parameter
6505 is used by struct-reorg optimization enabled by \fB\-fipa\-struct\-reorg\fR.
6506 We say that if the ratio of a structure frequency, calculated by profiling, 
6507 to the hottest structure frequency in the program is less than this 
6508 parameter, then structure reorganization is not applied to this structure.
6509 The default is 10.
6510 .IP "\fBpredictable-branch-cost-outcome\fR" 4
6511 .IX Item "predictable-branch-cost-outcome"
6512 When branch is predicted to be taken with probability lower than this threshold
6513 (in percent), then it is considered well predictable. The default is 10.
6514 .IP "\fBmax-crossjump-edges\fR" 4
6515 .IX Item "max-crossjump-edges"
6516 The maximum number of incoming edges to consider for crossjumping.
6517 The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
6518 the number of edges incoming to each block.  Increasing values mean
6519 more aggressive optimization, making the compile time increase with
6520 probably small improvement in executable size.
6521 .IP "\fBmin-crossjump-insns\fR" 4
6522 .IX Item "min-crossjump-insns"
6523 The minimum number of instructions which must be matched at the end
6524 of two blocks before crossjumping will be performed on them.  This
6525 value is ignored in the case where all instructions in the block being
6526 crossjumped from are matched.  The default value is 5.
6527 .IP "\fBmax-grow-copy-bb-insns\fR" 4
6528 .IX Item "max-grow-copy-bb-insns"
6529 The maximum code size expansion factor when copying basic blocks
6530 instead of jumping.  The expansion is relative to a jump instruction.
6531 The default value is 8.
6532 .IP "\fBmax-goto-duplication-insns\fR" 4
6533 .IX Item "max-goto-duplication-insns"
6534 The maximum number of instructions to duplicate to a block that jumps
6535 to a computed goto.  To avoid O(N^2) behavior in a number of
6536 passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
6537 and unfactors them as late as possible.  Only computed jumps at the
6538 end of a basic blocks with no more than max-goto-duplication-insns are
6539 unfactored.  The default value is 8.
6540 .IP "\fBmax-delay-slot-insn-search\fR" 4
6541 .IX Item "max-delay-slot-insn-search"
6542 The maximum number of instructions to consider when looking for an
6543 instruction to fill a delay slot.  If more than this arbitrary number of
6544 instructions is searched, the time savings from filling the delay slot
6545 will be minimal so stop searching.  Increasing values mean more
6546 aggressive optimization, making the compile time increase with probably
6547 small improvement in executable run time.
6548 .IP "\fBmax-delay-slot-live-search\fR" 4
6549 .IX Item "max-delay-slot-live-search"
6550 When trying to fill delay slots, the maximum number of instructions to
6551 consider when searching for a block with valid live register
6552 information.  Increasing this arbitrarily chosen value means more
6553 aggressive optimization, increasing the compile time.  This parameter
6554 should be removed when the delay slot code is rewritten to maintain the
6555 control-flow graph.
6556 .IP "\fBmax-gcse-memory\fR" 4
6557 .IX Item "max-gcse-memory"
6558 The approximate maximum amount of memory that will be allocated in
6559 order to perform the global common subexpression elimination
6560 optimization.  If more memory than specified is required, the
6561 optimization will not be done.
6562 .IP "\fBmax-gcse-passes\fR" 4
6563 .IX Item "max-gcse-passes"
6564 The maximum number of passes of \s-1GCSE\s0 to run.  The default is 1.
6565 .IP "\fBmax-pending-list-length\fR" 4
6566 .IX Item "max-pending-list-length"
6567 The maximum number of pending dependencies scheduling will allow
6568 before flushing the current state and starting over.  Large functions
6569 with few branches or calls can create excessively large lists which
6570 needlessly consume memory and resources.
6571 .IP "\fBmax-inline-insns-single\fR" 4
6572 .IX Item "max-inline-insns-single"
6573 Several parameters control the tree inliner used in gcc.
6574 This number sets the maximum number of instructions (counted in \s-1GCC\s0's
6575 internal representation) in a single function that the tree inliner
6576 will consider for inlining.  This only affects functions declared
6577 inline and methods implemented in a class declaration (\*(C+).
6578 The default value is 450.
6579 .IP "\fBmax-inline-insns-auto\fR" 4
6580 .IX Item "max-inline-insns-auto"
6581 When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
6582 a lot of functions that would otherwise not be considered for inlining
6583 by the compiler will be investigated.  To those functions, a different
6584 (more restrictive) limit compared to functions declared inline can
6585 be applied.
6586 The default value is 90.
6587 .IP "\fBlarge-function-insns\fR" 4
6588 .IX Item "large-function-insns"
6589 The limit specifying really large functions.  For functions larger than this
6590 limit after inlining, inlining is constrained by
6591 \&\fB\-\-param large-function-growth\fR.  This parameter is useful primarily
6592 to avoid extreme compilation time caused by non-linear algorithms used by the
6593 backend.
6594 The default value is 2700.
6595 .IP "\fBlarge-function-growth\fR" 4
6596 .IX Item "large-function-growth"
6597 Specifies maximal growth of large function caused by inlining in percents.
6598 The default value is 100 which limits large function growth to 2.0 times
6599 the original size.
6600 .IP "\fBlarge-unit-insns\fR" 4
6601 .IX Item "large-unit-insns"
6602 The limit specifying large translation unit.  Growth caused by inlining of
6603 units larger than this limit is limited by \fB\-\-param inline-unit-growth\fR.
6604 For small units this might be too tight (consider unit consisting of function A
6605 that is inline and B that just calls A three time.  If B is small relative to
6606 A, the growth of unit is 300\e% and yet such inlining is very sane.  For very
6607 large units consisting of small inlineable functions however the overall unit
6608 growth limit is needed to avoid exponential explosion of code size.  Thus for
6609 smaller units, the size is increased to \fB\-\-param large-unit-insns\fR
6610 before applying \fB\-\-param inline-unit-growth\fR.  The default is 10000
6611 .IP "\fBinline-unit-growth\fR" 4
6612 .IX Item "inline-unit-growth"
6613 Specifies maximal overall growth of the compilation unit caused by inlining.
6614 The default value is 30 which limits unit growth to 1.3 times the original
6615 size.
6616 .IP "\fBipcp-unit-growth\fR" 4
6617 .IX Item "ipcp-unit-growth"
6618 Specifies maximal overall growth of the compilation unit caused by
6619 interprocedural constant propagation.  The default value is 10 which limits
6620 unit growth to 1.1 times the original size.
6621 .IP "\fBlarge-stack-frame\fR" 4
6622 .IX Item "large-stack-frame"
6623 The limit specifying large stack frames.  While inlining the algorithm is trying
6624 to not grow past this limit too much.  Default value is 256 bytes.
6625 .IP "\fBlarge-stack-frame-growth\fR" 4
6626 .IX Item "large-stack-frame-growth"
6627 Specifies maximal growth of large stack frames caused by inlining in percents.
6628 The default value is 1000 which limits large stack frame growth to 11 times
6629 the original size.
6630 .IP "\fBmax-inline-insns-recursive\fR" 4
6631 .IX Item "max-inline-insns-recursive"
6632 .PD 0
6633 .IP "\fBmax-inline-insns-recursive-auto\fR" 4
6634 .IX Item "max-inline-insns-recursive-auto"
6635 .PD
6636 Specifies maximum number of instructions out-of-line copy of self recursive inline
6637 function can grow into by performing recursive inlining.
6638 .Sp
6639 For functions declared inline \fB\-\-param max-inline-insns-recursive\fR is
6640 taken into account.  For function not declared inline, recursive inlining
6641 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
6642 enabled and \fB\-\-param max-inline-insns-recursive-auto\fR is used.  The
6643 default value is 450.
6644 .IP "\fBmax-inline-recursive-depth\fR" 4
6645 .IX Item "max-inline-recursive-depth"
6646 .PD 0
6647 .IP "\fBmax-inline-recursive-depth-auto\fR" 4
6648 .IX Item "max-inline-recursive-depth-auto"
6649 .PD
6650 Specifies maximum recursion depth used by the recursive inlining.
6651 .Sp
6652 For functions declared inline \fB\-\-param max-inline-recursive-depth\fR is
6653 taken into account.  For function not declared inline, recursive inlining
6654 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
6655 enabled and \fB\-\-param max-inline-recursive-depth-auto\fR is used.  The
6656 default value is 8.
6657 .IP "\fBmin-inline-recursive-probability\fR" 4
6658 .IX Item "min-inline-recursive-probability"
6659 Recursive inlining is profitable only for function having deep recursion
6660 in average and can hurt for function having little recursion depth by
6661 increasing the prologue size or complexity of function body to other
6662 optimizers.
6663 .Sp
6664 When profile feedback is available (see \fB\-fprofile\-generate\fR) the actual
6665 recursion depth can be guessed from probability that function will recurse via
6666 given call expression.  This parameter limits inlining only to call expression
6667 whose probability exceeds given threshold (in percents).  The default value is
6668 10.
6669 .IP "\fBinline-call-cost\fR" 4
6670 .IX Item "inline-call-cost"
6671 Specify cost of call instruction relative to simple arithmetics operations
6672 (having cost of 1).  Increasing this cost disqualifies inlining of non-leaf
6673 functions and at the same time increases size of leaf function that is believed to
6674 reduce function size by being inlined.  In effect it increases amount of
6675 inlining for code having large abstraction penalty (many functions that just
6676 pass the arguments to other functions) and decrease inlining for code with low
6677 abstraction penalty.  The default value is 12.
6678 .IP "\fBmin-vect-loop-bound\fR" 4
6679 .IX Item "min-vect-loop-bound"
6680 The minimum number of iterations under which a loop will not get vectorized
6681 when \fB\-ftree\-vectorize\fR is used.  The number of iterations after
6682 vectorization needs to be greater than the value specified by this option
6683 to allow vectorization.  The default value is 0.
6684 .IP "\fBmax-unrolled-insns\fR" 4
6685 .IX Item "max-unrolled-insns"
6686 The maximum number of instructions that a loop should have if that loop
6687 is unrolled, and if the loop is unrolled, it determines how many times
6688 the loop code is unrolled.
6689 .IP "\fBmax-average-unrolled-insns\fR" 4
6690 .IX Item "max-average-unrolled-insns"
6691 The maximum number of instructions biased by probabilities of their execution
6692 that a loop should have if that loop is unrolled, and if the loop is unrolled,
6693 it determines how many times the loop code is unrolled.
6694 .IP "\fBmax-unroll-times\fR" 4
6695 .IX Item "max-unroll-times"
6696 The maximum number of unrollings of a single loop.
6697 .IP "\fBmax-peeled-insns\fR" 4
6698 .IX Item "max-peeled-insns"
6699 The maximum number of instructions that a loop should have if that loop
6700 is peeled, and if the loop is peeled, it determines how many times
6701 the loop code is peeled.
6702 .IP "\fBmax-peel-times\fR" 4
6703 .IX Item "max-peel-times"
6704 The maximum number of peelings of a single loop.
6705 .IP "\fBmax-completely-peeled-insns\fR" 4
6706 .IX Item "max-completely-peeled-insns"
6707 The maximum number of insns of a completely peeled loop.
6708 .IP "\fBmax-completely-peel-times\fR" 4
6709 .IX Item "max-completely-peel-times"
6710 The maximum number of iterations of a loop to be suitable for complete peeling.
6711 .IP "\fBmax-unswitch-insns\fR" 4
6712 .IX Item "max-unswitch-insns"
6713 The maximum number of insns of an unswitched loop.
6714 .IP "\fBmax-unswitch-level\fR" 4
6715 .IX Item "max-unswitch-level"
6716 The maximum number of branches unswitched in a single loop.
6717 .IP "\fBlim-expensive\fR" 4
6718 .IX Item "lim-expensive"
6719 The minimum cost of an expensive expression in the loop invariant motion.
6720 .IP "\fBiv-consider-all-candidates-bound\fR" 4
6721 .IX Item "iv-consider-all-candidates-bound"
6722 Bound on number of candidates for induction variables below that
6723 all candidates are considered for each use in induction variable
6724 optimizations.  Only the most relevant candidates are considered
6725 if there are more candidates, to avoid quadratic time complexity.
6726 .IP "\fBiv-max-considered-uses\fR" 4
6727 .IX Item "iv-max-considered-uses"
6728 The induction variable optimizations give up on loops that contain more
6729 induction variable uses.
6730 .IP "\fBiv-always-prune-cand-set-bound\fR" 4
6731 .IX Item "iv-always-prune-cand-set-bound"
6732 If number of candidates in the set is smaller than this value,
6733 we always try to remove unnecessary ivs from the set during its
6734 optimization when a new iv is added to the set.
6735 .IP "\fBscev-max-expr-size\fR" 4
6736 .IX Item "scev-max-expr-size"
6737 Bound on size of expressions used in the scalar evolutions analyzer.
6738 Large expressions slow the analyzer.
6739 .IP "\fBomega-max-vars\fR" 4
6740 .IX Item "omega-max-vars"
6741 The maximum number of variables in an Omega constraint system.
6742 The default value is 128.
6743 .IP "\fBomega-max-geqs\fR" 4
6744 .IX Item "omega-max-geqs"
6745 The maximum number of inequalities in an Omega constraint system.
6746 The default value is 256.
6747 .IP "\fBomega-max-eqs\fR" 4
6748 .IX Item "omega-max-eqs"
6749 The maximum number of equalities in an Omega constraint system.
6750 The default value is 128.
6751 .IP "\fBomega-max-wild-cards\fR" 4
6752 .IX Item "omega-max-wild-cards"
6753 The maximum number of wildcard variables that the Omega solver will
6754 be able to insert.  The default value is 18.
6755 .IP "\fBomega-hash-table-size\fR" 4
6756 .IX Item "omega-hash-table-size"
6757 The size of the hash table in the Omega solver.  The default value is
6758 550.
6759 .IP "\fBomega-max-keys\fR" 4
6760 .IX Item "omega-max-keys"
6761 The maximal number of keys used by the Omega solver.  The default
6762 value is 500.
6763 .IP "\fBomega-eliminate-redundant-constraints\fR" 4
6764 .IX Item "omega-eliminate-redundant-constraints"
6765 When set to 1, use expensive methods to eliminate all redundant
6766 constraints.  The default value is 0.
6767 .IP "\fBvect-max-version-for-alignment-checks\fR" 4
6768 .IX Item "vect-max-version-for-alignment-checks"
6769 The maximum number of runtime checks that can be performed when
6770 doing loop versioning for alignment in the vectorizer.  See option
6771 ftree-vect-loop-version for more information.
6772 .IP "\fBvect-max-version-for-alias-checks\fR" 4
6773 .IX Item "vect-max-version-for-alias-checks"
6774 The maximum number of runtime checks that can be performed when
6775 doing loop versioning for alias in the vectorizer.  See option
6776 ftree-vect-loop-version for more information.
6777 .IP "\fBmax-iterations-to-track\fR" 4
6778 .IX Item "max-iterations-to-track"
6779 The maximum number of iterations of a loop the brute force algorithm
6780 for analysis of # of iterations of the loop tries to evaluate.
6781 .IP "\fBhot-bb-count-fraction\fR" 4
6782 .IX Item "hot-bb-count-fraction"
6783 Select fraction of the maximal count of repetitions of basic block in program
6784 given basic block needs to have to be considered hot.
6785 .IP "\fBhot-bb-frequency-fraction\fR" 4
6786 .IX Item "hot-bb-frequency-fraction"
6787 Select fraction of the maximal frequency of executions of basic block in
6788 function given basic block needs to have to be considered hot
6789 .IP "\fBmax-predicted-iterations\fR" 4
6790 .IX Item "max-predicted-iterations"
6791 The maximum number of loop iterations we predict statically.  This is useful
6792 in cases where function contain single loop with known bound and other loop
6793 with unknown.  We predict the known number of iterations correctly, while
6794 the unknown number of iterations average to roughly 10.  This means that the
6795 loop without bounds would appear artificially cold relative to the other one.
6796 .IP "\fBalign-threshold\fR" 4
6797 .IX Item "align-threshold"
6798 Select fraction of the maximal frequency of executions of basic block in
6799 function given basic block will get aligned.
6800 .IP "\fBalign-loop-iterations\fR" 4
6801 .IX Item "align-loop-iterations"
6802 A loop expected to iterate at lest the selected number of iterations will get
6803 aligned.
6804 .IP "\fBtracer-dynamic-coverage\fR" 4
6805 .IX Item "tracer-dynamic-coverage"
6806 .PD 0
6807 .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
6808 .IX Item "tracer-dynamic-coverage-feedback"
6809 .PD
6810 This value is used to limit superblock formation once the given percentage of
6811 executed instructions is covered.  This limits unnecessary code size
6812 expansion.
6813 .Sp
6814 The \fBtracer-dynamic-coverage-feedback\fR is used only when profile
6815 feedback is available.  The real profiles (as opposed to statically estimated
6816 ones) are much less balanced allowing the threshold to be larger value.
6817 .IP "\fBtracer-max-code-growth\fR" 4
6818 .IX Item "tracer-max-code-growth"
6819 Stop tail duplication once code growth has reached given percentage.  This is
6820 rather hokey argument, as most of the duplicates will be eliminated later in
6821 cross jumping, so it may be set to much higher values than is the desired code
6822 growth.
6823 .IP "\fBtracer-min-branch-ratio\fR" 4
6824 .IX Item "tracer-min-branch-ratio"
6825 Stop reverse growth when the reverse probability of best edge is less than this
6826 threshold (in percent).
6827 .IP "\fBtracer-min-branch-ratio\fR" 4
6828 .IX Item "tracer-min-branch-ratio"
6829 .PD 0
6830 .IP "\fBtracer-min-branch-ratio-feedback\fR" 4
6831 .IX Item "tracer-min-branch-ratio-feedback"
6832 .PD
6833 Stop forward growth if the best edge do have probability lower than this
6834 threshold.
6835 .Sp
6836 Similarly to \fBtracer-dynamic-coverage\fR two values are present, one for
6837 compilation for profile feedback and one for compilation without.  The value
6838 for compilation with profile feedback needs to be more conservative (higher) in
6839 order to make tracer effective.
6840 .IP "\fBmax-cse-path-length\fR" 4
6841 .IX Item "max-cse-path-length"
6842 Maximum number of basic blocks on path that cse considers.  The default is 10.
6843 .IP "\fBmax-cse-insns\fR" 4
6844 .IX Item "max-cse-insns"
6845 The maximum instructions \s-1CSE\s0 process before flushing. The default is 1000.
6846 .IP "\fBmax-aliased-vops\fR" 4
6847 .IX Item "max-aliased-vops"
6848 Maximum number of virtual operands per function allowed to represent
6849 aliases before triggering the alias partitioning heuristic.  Alias
6850 partitioning reduces compile times and memory consumption needed for
6851 aliasing at the expense of precision loss in alias information.  The
6852 default value for this parameter is 100 for \-O1, 500 for \-O2 and 1000
6853 for \-O3.
6854 .Sp
6855 Notice that if a function contains more memory statements than the
6856 value of this parameter, it is not really possible to achieve this
6857 reduction.  In this case, the compiler will use the number of memory
6858 statements as the value for \fBmax-aliased-vops\fR.
6859 .IP "\fBavg-aliased-vops\fR" 4
6860 .IX Item "avg-aliased-vops"
6861 Average number of virtual operands per statement allowed to represent
6862 aliases before triggering the alias partitioning heuristic.  This
6863 works in conjunction with \fBmax-aliased-vops\fR.  If a function
6864 contains more than \fBmax-aliased-vops\fR virtual operators, then
6865 memory symbols will be grouped into memory partitions until either the
6866 total number of virtual operators is below \fBmax-aliased-vops\fR
6867 or the average number of virtual operators per memory statement is
6868 below \fBavg-aliased-vops\fR.  The default value for this parameter
6869 is 1 for \-O1 and \-O2, and 3 for \-O3.
6870 .IP "\fBggc-min-expand\fR" 4
6871 .IX Item "ggc-min-expand"
6872 \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation.  This
6873 parameter specifies the minimum percentage by which the garbage
6874 collector's heap should be allowed to expand between collections.
6875 Tuning this may improve compilation speed; it has no effect on code
6876 generation.
6877 .Sp
6878 The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
6879 \&\s-1RAM\s0 >= 1GB.  If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\s0\*(R" is
6880 the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR.  If
6881 \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
6882 bound of 30% is used.  Setting this parameter and
6883 \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
6884 every opportunity.  This is extremely slow, but can be useful for
6885 debugging.
6886 .IP "\fBggc-min-heapsize\fR" 4
6887 .IX Item "ggc-min-heapsize"
6888 Minimum size of the garbage collector's heap before it begins bothering
6889 to collect garbage.  The first collection occurs after the heap expands
6890 by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR.  Again,
6891 tuning this may improve compilation speed, and has no effect on code
6892 generation.
6893 .Sp
6894 The default is the smaller of \s-1RAM/8\s0, \s-1RLIMIT_RSS\s0, or a limit which
6895 tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
6896 with a lower bound of 4096 (four megabytes) and an upper bound of
6897 131072 (128 megabytes).  If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
6898 particular platform, the lower bound is used.  Setting this parameter
6899 very large effectively disables garbage collection.  Setting this
6900 parameter and \fBggc-min-expand\fR to zero causes a full collection
6901 to occur at every opportunity.
6902 .IP "\fBmax-reload-search-insns\fR" 4
6903 .IX Item "max-reload-search-insns"
6904 The maximum number of instruction reload should look backward for equivalent
6905 register.  Increasing values mean more aggressive optimization, making the
6906 compile time increase with probably slightly better performance.  The default
6907 value is 100.
6908 .IP "\fBmax-cselib-memory-locations\fR" 4
6909 .IX Item "max-cselib-memory-locations"
6910 The maximum number of memory locations cselib should take into account.
6911 Increasing values mean more aggressive optimization, making the compile time
6912 increase with probably slightly better performance.  The default value is 500.
6913 .IP "\fBreorder-blocks-duplicate\fR" 4
6914 .IX Item "reorder-blocks-duplicate"
6915 .PD 0
6916 .IP "\fBreorder-blocks-duplicate-feedback\fR" 4
6917 .IX Item "reorder-blocks-duplicate-feedback"
6918 .PD
6919 Used by basic block reordering pass to decide whether to use unconditional
6920 branch or duplicate the code on its destination.  Code is duplicated when its
6921 estimated size is smaller than this value multiplied by the estimated size of
6922 unconditional jump in the hot spots of the program.
6923 .Sp
6924 The \fBreorder-block-duplicate-feedback\fR is used only when profile
6925 feedback is available and may be set to higher values than
6926 \&\fBreorder-block-duplicate\fR since information about the hot spots is more
6927 accurate.
6928 .IP "\fBmax-sched-ready-insns\fR" 4
6929 .IX Item "max-sched-ready-insns"
6930 The maximum number of instructions ready to be issued the scheduler should
6931 consider at any given time during the first scheduling pass.  Increasing
6932 values mean more thorough searches, making the compilation time increase
6933 with probably little benefit.  The default value is 100.
6934 .IP "\fBmax-sched-region-blocks\fR" 4
6935 .IX Item "max-sched-region-blocks"
6936 The maximum number of blocks in a region to be considered for
6937 interblock scheduling.  The default value is 10.
6938 .IP "\fBmax-pipeline-region-blocks\fR" 4
6939 .IX Item "max-pipeline-region-blocks"
6940 The maximum number of blocks in a region to be considered for
6941 pipelining in the selective scheduler.  The default value is 15.
6942 .IP "\fBmax-sched-region-insns\fR" 4
6943 .IX Item "max-sched-region-insns"
6944 The maximum number of insns in a region to be considered for
6945 interblock scheduling.  The default value is 100.
6946 .IP "\fBmax-pipeline-region-insns\fR" 4
6947 .IX Item "max-pipeline-region-insns"
6948 The maximum number of insns in a region to be considered for
6949 pipelining in the selective scheduler.  The default value is 200.
6950 .IP "\fBmin-spec-prob\fR" 4
6951 .IX Item "min-spec-prob"
6952 The minimum probability (in percents) of reaching a source block
6953 for interblock speculative scheduling.  The default value is 40.
6954 .IP "\fBmax-sched-extend-regions-iters\fR" 4
6955 .IX Item "max-sched-extend-regions-iters"
6956 The maximum number of iterations through \s-1CFG\s0 to extend regions.
6957 0 \- disable region extension,
6958 N \- do at most N iterations.
6959 The default value is 0.
6960 .IP "\fBmax-sched-insn-conflict-delay\fR" 4
6961 .IX Item "max-sched-insn-conflict-delay"
6962 The maximum conflict delay for an insn to be considered for speculative motion.
6963 The default value is 3.
6964 .IP "\fBsched-spec-prob-cutoff\fR" 4
6965 .IX Item "sched-spec-prob-cutoff"
6966 The minimal probability of speculation success (in percents), so that
6967 speculative insn will be scheduled.
6968 The default value is 40.
6969 .IP "\fBsched-mem-true-dep-cost\fR" 4
6970 .IX Item "sched-mem-true-dep-cost"
6971 Minimal distance (in \s-1CPU\s0 cycles) between store and load targeting same
6972 memory locations.  The default value is 1.
6973 .IP "\fBselsched-max-lookahead\fR" 4
6974 .IX Item "selsched-max-lookahead"
6975 The maximum size of the lookahead window of selective scheduling.  It is a
6976 depth of search for available instructions.
6977 The default value is 50.
6978 .IP "\fBselsched-max-sched-times\fR" 4
6979 .IX Item "selsched-max-sched-times"
6980 The maximum number of times that an instruction will be scheduled during 
6981 selective scheduling.  This is the limit on the number of iterations 
6982 through which the instruction may be pipelined.  The default value is 2.
6983 .IP "\fBselsched-max-insns-to-rename\fR" 4
6984 .IX Item "selsched-max-insns-to-rename"
6985 The maximum number of best instructions in the ready list that are considered
6986 for renaming in the selective scheduler.  The default value is 2.
6987 .IP "\fBmax-last-value-rtl\fR" 4
6988 .IX Item "max-last-value-rtl"
6989 The maximum size measured as number of RTLs that can be recorded in an expression
6990 in combiner for a pseudo register as last known value of that register.  The default
6991 is 10000.
6992 .IP "\fBinteger-share-limit\fR" 4
6993 .IX Item "integer-share-limit"
6994 Small integer constants can use a shared data structure, reducing the
6995 compiler's memory usage and increasing its speed.  This sets the maximum
6996 value of a shared integer constant.  The default value is 256.
6997 .IP "\fBmin-virtual-mappings\fR" 4
6998 .IX Item "min-virtual-mappings"
6999 Specifies the minimum number of virtual mappings in the incremental
7000 \&\s-1SSA\s0 updater that should be registered to trigger the virtual mappings
7001 heuristic defined by virtual-mappings-ratio.  The default value is
7002 100.
7003 .IP "\fBvirtual-mappings-ratio\fR" 4
7004 .IX Item "virtual-mappings-ratio"
7005 If the number of virtual mappings is virtual-mappings-ratio bigger
7006 than the number of virtual symbols to be updated, then the incremental
7007 \&\s-1SSA\s0 updater switches to a full update for those symbols.  The default
7008 ratio is 3.
7009 .IP "\fBssp-buffer-size\fR" 4
7010 .IX Item "ssp-buffer-size"
7011 The minimum size of buffers (i.e. arrays) that will receive stack smashing
7012 protection when \fB\-fstack\-protection\fR is used.
7013 .IP "\fBmax-jump-thread-duplication-stmts\fR" 4
7014 .IX Item "max-jump-thread-duplication-stmts"
7015 Maximum number of statements allowed in a block that needs to be
7016 duplicated when threading jumps.
7017 .IP "\fBmax-fields-for-field-sensitive\fR" 4
7018 .IX Item "max-fields-for-field-sensitive"
7019 Maximum number of fields in a structure we will treat in
7020 a field sensitive manner during pointer analysis.  The default is zero
7021 for \-O0, and \-O1 and 100 for \-Os, \-O2, and \-O3.
7022 .IP "\fBprefetch-latency\fR" 4
7023 .IX Item "prefetch-latency"
7024 Estimate on average number of instructions that are executed before
7025 prefetch finishes.  The distance we prefetch ahead is proportional
7026 to this constant.  Increasing this number may also lead to less
7027 streams being prefetched (see \fBsimultaneous-prefetches\fR).
7028 .IP "\fBsimultaneous-prefetches\fR" 4
7029 .IX Item "simultaneous-prefetches"
7030 Maximum number of prefetches that can run at the same time.
7031 .IP "\fBl1\-cache\-line\-size\fR" 4
7032 .IX Item "l1-cache-line-size"
7033 The size of cache line in L1 cache, in bytes.
7034 .IP "\fBl1\-cache\-size\fR" 4
7035 .IX Item "l1-cache-size"
7036 The size of L1 cache, in kilobytes.
7037 .IP "\fBl2\-cache\-size\fR" 4
7038 .IX Item "l2-cache-size"
7039 The size of L2 cache, in kilobytes.
7040 .IP "\fBuse-canonical-types\fR" 4
7041 .IX Item "use-canonical-types"
7042 Whether the compiler should use the \*(L"canonical\*(R" type system.  By
7043 default, this should always be 1, which uses a more efficient internal
7044 mechanism for comparing types in \*(C+ and Objective\-\*(C+.  However, if
7045 bugs in the canonical type system are causing compilation failures,
7046 set this value to 0 to disable canonical types.
7047 .IP "\fBswitch-conversion-max-branch-ratio\fR" 4
7048 .IX Item "switch-conversion-max-branch-ratio"
7049 Switch initialization conversion will refuse to create arrays that are
7050 bigger than \fBswitch-conversion-max-branch-ratio\fR times the number of
7051 branches in the switch.
7052 .IP "\fBmax-partial-antic-length\fR" 4
7053 .IX Item "max-partial-antic-length"
7054 Maximum length of the partial antic set computed during the tree
7055 partial redundancy elimination optimization (\fB\-ftree\-pre\fR) when
7056 optimizing at \fB\-O3\fR and above.  For some sorts of source code
7057 the enhanced partial redundancy elimination optimization can run away,
7058 consuming all of the memory available on the host machine.  This
7059 parameter sets a limit on the length of the sets that are computed,
7060 which prevents the runaway behavior.  Setting a value of 0 for
7061 this parameter will allow an unlimited set length.
7062 .IP "\fBsccvn-max-scc-size\fR" 4
7063 .IX Item "sccvn-max-scc-size"
7064 Maximum size of a strongly connected component (\s-1SCC\s0) during \s-1SCCVN\s0
7065 processing.  If this limit is hit, \s-1SCCVN\s0 processing for the whole
7066 function will not be done and optimizations depending on it will
7067 be disabled.  The default maximum \s-1SCC\s0 size is 10000.
7068 .IP "\fBira-max-loops-num\fR" 4
7069 .IX Item "ira-max-loops-num"
7070 \&\s-1IRA\s0 uses a regional register allocation by default.  If a function
7071 contains loops more than number given by the parameter, only at most
7072 given number of the most frequently executed loops will form regions
7073 for the regional register allocation.  The default value of the
7074 parameter is 100.
7075 .IP "\fBira-max-conflict-table-size\fR" 4
7076 .IX Item "ira-max-conflict-table-size"
7077 Although \s-1IRA\s0 uses a sophisticated algorithm of compression conflict
7078 table, the table can be still big for huge functions.  If the conflict
7079 table for a function could be more than size in \s-1MB\s0 given by the
7080 parameter, the conflict table is not built and faster, simpler, and
7081 lower quality register allocation algorithm will be used.  The
7082 algorithm do not use pseudo-register conflicts.  The default value of
7083 the parameter is 2000.
7084 .IP "\fBloop-invariant-max-bbs-in-loop\fR" 4
7085 .IX Item "loop-invariant-max-bbs-in-loop"
7086 Loop invariant motion can be very expensive, both in compile time and
7087 in amount of needed compile time memory, with very large loops.  Loops
7088 with more basic blocks than this parameter won't have loop invariant
7089 motion optimization performed on them.  The default value of the
7090 parameter is 1000 for \-O1 and 10000 for \-O2 and above.
7091 .RE
7092 .RS 4
7093 .RE
7094 .Sh "Options Controlling the Preprocessor"
7095 .IX Subsection "Options Controlling the Preprocessor"
7096 These options control the C preprocessor, which is run on each C source
7097 file before actual compilation.
7098 .PP
7099 If you use the \fB\-E\fR option, nothing is done except preprocessing.
7100 Some of these options make sense only together with \fB\-E\fR because
7101 they cause the preprocessor output to be unsuitable for actual
7102 compilation.
7103 .Sp
7104 .RS 4
7105 You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
7106 and pass \fIoption\fR directly through to the preprocessor.  If
7107 \&\fIoption\fR contains commas, it is split into multiple options at the
7108 commas.  However, many options are modified, translated or interpreted
7109 by the compiler driver before being passed to the preprocessor, and
7110 \&\fB\-Wp\fR forcibly bypasses this phase.  The preprocessor's direct
7111 interface is undocumented and subject to change, so whenever possible
7112 you should avoid using \fB\-Wp\fR and let the driver handle the
7113 options instead.
7114 .Sp
7115 \&\fB\-Xpreprocessor\fR \fIoption\fR
7116 .Sp
7117 Pass \fIoption\fR as an option to the preprocessor.  You can use this to
7118 supply system-specific preprocessor options which \s-1GCC\s0 does not know how to
7119 recognize.
7120 .Sp
7121 If you want to pass an option that takes an argument, you must use
7122 \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
7123 .RE
7124 .IP "\fB\-D\fR \fIname\fR" 4
7125 .IX Item "-D name"
7126 Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
7127 .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
7128 .IX Item "-D name=definition"
7129 The contents of \fIdefinition\fR are tokenized and processed as if
7130 they appeared during translation phase three in a \fB#define\fR
7131 directive.  In particular, the definition will be truncated by
7132 embedded newline characters.
7133 .Sp
7134 If you are invoking the preprocessor from a shell or shell-like
7135 program you may need to use the shell's quoting syntax to protect
7136 characters such as spaces that have a meaning in the shell syntax.
7137 .Sp
7138 If you wish to define a function-like macro on the command line, write
7139 its argument list with surrounding parentheses before the equals sign
7140 (if any).  Parentheses are meaningful to most shells, so you will need
7141 to quote the option.  With \fBsh\fR and \fBcsh\fR,
7142 \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
7143 .Sp
7144 \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
7145 are given on the command line.  All \fB\-imacros\fR \fIfile\fR and
7146 \&\fB\-include\fR \fIfile\fR options are processed after all
7147 \&\fB\-D\fR and \fB\-U\fR options.
7148 .IP "\fB\-U\fR \fIname\fR" 4
7149 .IX Item "-U name"
7150 Cancel any previous definition of \fIname\fR, either built in or
7151 provided with a \fB\-D\fR option.
7152 .IP "\fB\-undef\fR" 4
7153 .IX Item "-undef"
7154 Do not predefine any system-specific or GCC-specific macros.  The
7155 standard predefined macros remain defined.
7156 .IP "\fB\-I\fR \fIdir\fR" 4
7157 .IX Item "-I dir"
7158 Add the directory \fIdir\fR to the list of directories to be searched
7159 for header files.
7160 Directories named by \fB\-I\fR are searched before the standard
7161 system include directories.  If the directory \fIdir\fR is a standard
7162 system include directory, the option is ignored to ensure that the
7163 default search order for system directories and the special treatment
7164 of system headers are not defeated
7165 \&.
7166 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
7167 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
7168 .IP "\fB\-o\fR \fIfile\fR" 4
7169 .IX Item "-o file"
7170 Write output to \fIfile\fR.  This is the same as specifying \fIfile\fR
7171 as the second non-option argument to \fBcpp\fR.  \fBgcc\fR has a
7172 different interpretation of a second non-option argument, so you must
7173 use \fB\-o\fR to specify the output file.
7174 .IP "\fB\-Wall\fR" 4
7175 .IX Item "-Wall"
7176 Turns on all optional warnings which are desirable for normal code.
7177 At present this is \fB\-Wcomment\fR, \fB\-Wtrigraphs\fR,
7178 \&\fB\-Wmultichar\fR and a warning about integer promotion causing a
7179 change of sign in \f(CW\*(C`#if\*(C'\fR expressions.  Note that many of the
7180 preprocessor's warnings are on by default and have no options to
7181 control them.
7182 .IP "\fB\-Wcomment\fR" 4
7183 .IX Item "-Wcomment"
7184 .PD 0
7185 .IP "\fB\-Wcomments\fR" 4
7186 .IX Item "-Wcomments"
7187 .PD
7188 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
7189 comment, or whenever a backslash-newline appears in a \fB//\fR comment.
7190 (Both forms have the same effect.)
7191 .IP "\fB\-Wtrigraphs\fR" 4
7192 .IX Item "-Wtrigraphs"
7193 Most trigraphs in comments cannot affect the meaning of the program.
7194 However, a trigraph that would form an escaped newline (\fB??/\fR at
7195 the end of a line) can, by changing where the comment begins or ends.
7196 Therefore, only trigraphs that would form escaped newlines produce
7197 warnings inside a comment.
7198 .Sp
7199 This option is implied by \fB\-Wall\fR.  If \fB\-Wall\fR is not
7200 given, this option is still enabled unless trigraphs are enabled.  To
7201 get trigraph conversion without warnings, but get the other
7202 \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
7203 .IP "\fB\-Wtraditional\fR" 4
7204 .IX Item "-Wtraditional"
7205 Warn about certain constructs that behave differently in traditional and
7206 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
7207 equivalent, and problematic constructs which should be avoided.
7208 .IP "\fB\-Wundef\fR" 4
7209 .IX Item "-Wundef"
7210 Warn whenever an identifier which is not a macro is encountered in an
7211 \&\fB#if\fR directive, outside of \fBdefined\fR.  Such identifiers are
7212 replaced with zero.
7213 .IP "\fB\-Wunused\-macros\fR" 4
7214 .IX Item "-Wunused-macros"
7215 Warn about macros defined in the main file that are unused.  A macro
7216 is \fIused\fR if it is expanded or tested for existence at least once.
7217 The preprocessor will also warn if the macro has not been used at the
7218 time it is redefined or undefined.
7219 .Sp
7220 Built-in macros, macros defined on the command line, and macros
7221 defined in include files are not warned about.
7222 .Sp
7223 \&\fINote:\fR If a macro is actually used, but only used in skipped
7224 conditional blocks, then \s-1CPP\s0 will report it as unused.  To avoid the
7225 warning in such a case, you might improve the scope of the macro's
7226 definition by, for example, moving it into the first skipped block.
7227 Alternatively, you could provide a dummy use with something like:
7228 .Sp
7229 .Vb 2
7230 \&        #if defined the_macro_causing_the_warning
7231 \&        #endif
7232 .Ve
7233 .IP "\fB\-Wendif\-labels\fR" 4
7234 .IX Item "-Wendif-labels"
7235 Warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
7236 This usually happens in code of the form
7237 .Sp
7238 .Vb 5
7239 \&        #if FOO
7240 \&        ...
7241 \&        #else FOO
7242 \&        ...
7243 \&        #endif FOO
7244 .Ve
7245 .Sp
7246 The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments, but often are not
7247 in older programs.  This warning is on by default.
7248 .IP "\fB\-Werror\fR" 4
7249 .IX Item "-Werror"
7250 Make all warnings into hard errors.  Source code which triggers warnings
7251 will be rejected.
7252 .IP "\fB\-Wsystem\-headers\fR" 4
7253 .IX Item "-Wsystem-headers"
7254 Issue warnings for code in system headers.  These are normally unhelpful
7255 in finding bugs in your own code, therefore suppressed.  If you are
7256 responsible for the system library, you may want to see them.
7257 .IP "\fB\-w\fR" 4
7258 .IX Item "-w"
7259 Suppress all warnings, including those which \s-1GNU\s0 \s-1CPP\s0 issues by default.
7260 .IP "\fB\-pedantic\fR" 4
7261 .IX Item "-pedantic"
7262 Issue all the mandatory diagnostics listed in the C standard.  Some of
7263 them are left out by default, since they trigger frequently on harmless
7264 code.
7265 .IP "\fB\-pedantic\-errors\fR" 4
7266 .IX Item "-pedantic-errors"
7267 Issue all the mandatory diagnostics, and make all mandatory diagnostics
7268 into errors.  This includes mandatory diagnostics that \s-1GCC\s0 issues
7269 without \fB\-pedantic\fR but treats as warnings.
7270 .IP "\fB\-M\fR" 4
7271 .IX Item "-M"
7272 Instead of outputting the result of preprocessing, output a rule
7273 suitable for \fBmake\fR describing the dependencies of the main
7274 source file.  The preprocessor outputs one \fBmake\fR rule containing
7275 the object file name for that source file, a colon, and the names of all
7276 the included files, including those coming from \fB\-include\fR or
7277 \&\fB\-imacros\fR command line options.
7278 .Sp
7279 Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
7280 object file name consists of the name of the source file with any
7281 suffix replaced with object file suffix and with any leading directory
7282 parts removed.  If there are many included files then the rule is
7283 split into several lines using \fB\e\fR\-newline.  The rule has no
7284 commands.
7285 .Sp
7286 This option does not suppress the preprocessor's debug output, such as
7287 \&\fB\-dM\fR.  To avoid mixing such debug output with the dependency
7288 rules you should explicitly specify the dependency output file with
7289 \&\fB\-MF\fR, or use an environment variable like
7290 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR.  Debug output
7291 will still be sent to the regular output stream as normal.
7292 .Sp
7293 Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
7294 warnings with an implicit \fB\-w\fR.
7295 .IP "\fB\-MM\fR" 4
7296 .IX Item "-MM"
7297 Like \fB\-M\fR but do not mention header files that are found in
7298 system header directories, nor header files that are included,
7299 directly or indirectly, from such a header.
7300 .Sp
7301 This implies that the choice of angle brackets or double quotes in an
7302 \&\fB#include\fR directive does not in itself determine whether that
7303 header will appear in \fB\-MM\fR dependency output.  This is a
7304 slight change in semantics from \s-1GCC\s0 versions 3.0 and earlier.
7305 .IP "\fB\-MF\fR \fIfile\fR" 4
7306 .IX Item "-MF file"
7307 When used with \fB\-M\fR or \fB\-MM\fR, specifies a
7308 file to write the dependencies to.  If no \fB\-MF\fR switch is given
7309 the preprocessor sends the rules to the same place it would have sent
7310 preprocessed output.
7311 .Sp
7312 When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
7313 \&\fB\-MF\fR overrides the default dependency output file.
7314 .IP "\fB\-MG\fR" 4
7315 .IX Item "-MG"
7316 In conjunction with an option such as \fB\-M\fR requesting
7317 dependency generation, \fB\-MG\fR assumes missing header files are
7318 generated files and adds them to the dependency list without raising
7319 an error.  The dependency filename is taken directly from the
7320 \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path.  \fB\-MG\fR
7321 also suppresses preprocessed output, as a missing header file renders
7322 this useless.
7323 .Sp
7324 This feature is used in automatic updating of makefiles.
7325 .IP "\fB\-MP\fR" 4
7326 .IX Item "-MP"
7327 This option instructs \s-1CPP\s0 to add a phony target for each dependency
7328 other than the main file, causing each to depend on nothing.  These
7329 dummy rules work around errors \fBmake\fR gives if you remove header
7330 files without updating the \fIMakefile\fR to match.
7331 .Sp
7332 This is typical output:
7333 .Sp
7334 .Vb 1
7335 \&        test.o: test.c test.h
7336 \&        
7337 \&        test.h:
7338 .Ve
7339 .IP "\fB\-MT\fR \fItarget\fR" 4
7340 .IX Item "-MT target"
7341 Change the target of the rule emitted by dependency generation.  By
7342 default \s-1CPP\s0 takes the name of the main input file, deletes any
7343 directory components and any file suffix such as \fB.c\fR, and
7344 appends the platform's usual object suffix.  The result is the target.
7345 .Sp
7346 An \fB\-MT\fR option will set the target to be exactly the string you
7347 specify.  If you want multiple targets, you can specify them as a single
7348 argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
7349 .Sp
7350 For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
7351 .Sp
7352 .Vb 1
7353 \&        $(objpfx)foo.o: foo.c
7354 .Ve
7355 .IP "\fB\-MQ\fR \fItarget\fR" 4
7356 .IX Item "-MQ target"
7357 Same as \fB\-MT\fR, but it quotes any characters which are special to
7358 Make.  \fB\-MQ\ '$(objpfx)foo.o'\fR gives
7359 .Sp
7360 .Vb 1
7361 \&        $$(objpfx)foo.o: foo.c
7362 .Ve
7363 .Sp
7364 The default target is automatically quoted, as if it were given with
7365 \&\fB\-MQ\fR.
7366 .IP "\fB\-MD\fR" 4
7367 .IX Item "-MD"
7368 \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
7369 \&\fB\-E\fR is not implied.  The driver determines \fIfile\fR based on
7370 whether an \fB\-o\fR option is given.  If it is, the driver uses its
7371 argument but with a suffix of \fI.d\fR, otherwise it takes the name
7372 of the input file, removes any directory components and suffix, and
7373 applies a \fI.d\fR suffix.
7374 .Sp
7375 If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
7376 \&\fB\-o\fR switch is understood to specify the dependency output file, but if used without \fB\-E\fR, each \fB\-o\fR
7377 is understood to specify a target object file.
7378 .Sp
7379 Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
7380 a dependency output file as a side-effect of the compilation process.
7381 .IP "\fB\-MMD\fR" 4
7382 .IX Item "-MMD"
7383 Like \fB\-MD\fR except mention only user header files, not system
7384 header files.
7385 .IP "\fB\-fpch\-deps\fR" 4
7386 .IX Item "-fpch-deps"
7387 When using precompiled headers, this flag
7388 will cause the dependency-output flags to also list the files from the
7389 precompiled header's dependencies.  If not specified only the
7390 precompiled header would be listed and not the files that were used to
7391 create it because those files are not consulted when a precompiled
7392 header is used.
7393 .IP "\fB\-fpch\-preprocess\fR" 4
7394 .IX Item "-fpch-preprocess"
7395 This option allows use of a precompiled header together with \fB\-E\fR.  It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
7396 \&\f(CW\*(C`#pragma GCC pch_preprocess "<filename>"\*(C'\fR in the output to mark
7397 the place where the precompiled header was found, and its filename.  When
7398 \&\fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR and
7399 loads the \s-1PCH\s0.
7400 .Sp
7401 This option is off by default, because the resulting preprocessed output
7402 is only really suitable as input to \s-1GCC\s0.  It is switched on by
7403 \&\fB\-save\-temps\fR.
7404 .Sp
7405 You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
7406 safe to edit the filename if the \s-1PCH\s0 file is available in a different
7407 location.  The filename may be absolute or it may be relative to \s-1GCC\s0's
7408 current directory.
7409 .IP "\fB\-x c\fR" 4
7410 .IX Item "-x c"
7411 .PD 0
7412 .IP "\fB\-x c++\fR" 4
7413 .IX Item "-x c++"
7414 .IP "\fB\-x objective-c\fR" 4
7415 .IX Item "-x objective-c"
7416 .IP "\fB\-x assembler-with-cpp\fR" 4
7417 .IX Item "-x assembler-with-cpp"
7418 .PD
7419 Specify the source language: C, \*(C+, Objective-C, or assembly.  This has
7420 nothing to do with standards conformance or extensions; it merely
7421 selects which base syntax to expect.  If you give none of these options,
7422 cpp will deduce the language from the extension of the source file:
7423 \&\fB.c\fR, \fB.cc\fR, \fB.m\fR, or \fB.S\fR.  Some other common
7424 extensions for \*(C+ and assembly are also recognized.  If cpp does not
7425 recognize the extension, it will treat the file as C; this is the most
7426 generic mode.
7427 .Sp
7428 \&\fINote:\fR Previous versions of cpp accepted a \fB\-lang\fR option
7429 which selected both the language and the standards conformance level.
7430 This option has been removed, because it conflicts with the \fB\-l\fR
7431 option.
7432 .IP "\fB\-std=\fR\fIstandard\fR" 4
7433 .IX Item "-std=standard"
7434 .PD 0
7435 .IP "\fB\-ansi\fR" 4
7436 .IX Item "-ansi"
7437 .PD
7438 Specify the standard to which the code should conform.  Currently \s-1CPP\s0
7439 knows about C and \*(C+ standards; others may be added in the future.
7440 .Sp
7441 \&\fIstandard\fR
7442 may be one of:
7443 .RS 4
7444 .ie n .IP """iso9899:1990""" 4
7445 .el .IP "\f(CWiso9899:1990\fR" 4
7446 .IX Item "iso9899:1990"
7447 .PD 0
7448 .ie n .IP """c89""" 4
7449 .el .IP "\f(CWc89\fR" 4
7450 .IX Item "c89"
7451 .PD
7452 The \s-1ISO\s0 C standard from 1990.  \fBc89\fR is the customary shorthand for
7453 this version of the standard.
7454 .Sp
7455 The \fB\-ansi\fR option is equivalent to \fB\-std=c89\fR.
7456 .ie n .IP """iso9899:199409""" 4
7457 .el .IP "\f(CWiso9899:199409\fR" 4
7458 .IX Item "iso9899:199409"
7459 The 1990 C standard, as amended in 1994.
7460 .ie n .IP """iso9899:1999""" 4
7461 .el .IP "\f(CWiso9899:1999\fR" 4
7462 .IX Item "iso9899:1999"
7463 .PD 0
7464 .ie n .IP """c99""" 4
7465 .el .IP "\f(CWc99\fR" 4
7466 .IX Item "c99"
7467 .ie n .IP """iso9899:199x""" 4
7468 .el .IP "\f(CWiso9899:199x\fR" 4
7469 .IX Item "iso9899:199x"
7470 .ie n .IP """c9x""" 4
7471 .el .IP "\f(CWc9x\fR" 4
7472 .IX Item "c9x"
7473 .PD
7474 The revised \s-1ISO\s0 C standard, published in December 1999.  Before
7475 publication, this was known as C9X.
7476 .ie n .IP """gnu89""" 4
7477 .el .IP "\f(CWgnu89\fR" 4
7478 .IX Item "gnu89"
7479 The 1990 C standard plus \s-1GNU\s0 extensions.  This is the default.
7480 .ie n .IP """gnu99""" 4
7481 .el .IP "\f(CWgnu99\fR" 4
7482 .IX Item "gnu99"
7483 .PD 0
7484 .ie n .IP """gnu9x""" 4
7485 .el .IP "\f(CWgnu9x\fR" 4
7486 .IX Item "gnu9x"
7487 .PD
7488 The 1999 C standard plus \s-1GNU\s0 extensions.
7489 .ie n .IP """c++98""" 4
7490 .el .IP "\f(CWc++98\fR" 4
7491 .IX Item "c++98"
7492 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
7493 .ie n .IP """gnu++98""" 4
7494 .el .IP "\f(CWgnu++98\fR" 4
7495 .IX Item "gnu++98"
7496 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
7497 default for \*(C+ code.
7498 .RE
7499 .RS 4
7500 .RE
7501 .IP "\fB\-I\-\fR" 4
7502 .IX Item "-I-"
7503 Split the include path.  Any directories specified with \fB\-I\fR
7504 options before \fB\-I\-\fR are searched only for headers requested with
7505 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
7506 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR.  If additional directories are
7507 specified with \fB\-I\fR options after the \fB\-I\-\fR, those
7508 directories are searched for all \fB#include\fR directives.
7509 .Sp
7510 In addition, \fB\-I\-\fR inhibits the use of the directory of the current
7511 file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
7512 This option has been deprecated.
7513 .IP "\fB\-nostdinc\fR" 4
7514 .IX Item "-nostdinc"
7515 Do not search the standard system directories for header files.
7516 Only the directories you have specified with \fB\-I\fR options
7517 (and the directory of the current file, if appropriate) are searched.
7518 .IP "\fB\-nostdinc++\fR" 4
7519 .IX Item "-nostdinc++"
7520 Do not search for header files in the \*(C+\-specific standard directories,
7521 but do still search the other standard directories.  (This option is
7522 used when building the \*(C+ library.)
7523 .IP "\fB\-include\fR \fIfile\fR" 4
7524 .IX Item "-include file"
7525 Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
7526 line of the primary source file.  However, the first directory searched
7527 for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
7528 the directory containing the main source file.  If not found there, it
7529 is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
7530 chain as normal.
7531 .Sp
7532 If multiple \fB\-include\fR options are given, the files are included
7533 in the order they appear on the command line.
7534 .IP "\fB\-imacros\fR \fIfile\fR" 4
7535 .IX Item "-imacros file"
7536 Exactly like \fB\-include\fR, except that any output produced by
7537 scanning \fIfile\fR is thrown away.  Macros it defines remain defined.
7538 This allows you to acquire all the macros from a header without also
7539 processing its declarations.
7540 .Sp
7541 All files specified by \fB\-imacros\fR are processed before all files
7542 specified by \fB\-include\fR.
7543 .IP "\fB\-idirafter\fR \fIdir\fR" 4
7544 .IX Item "-idirafter dir"
7545 Search \fIdir\fR for header files, but do it \fIafter\fR all
7546 directories specified with \fB\-I\fR and the standard system directories
7547 have been exhausted.  \fIdir\fR is treated as a system include directory.
7548 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
7549 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
7550 .IP "\fB\-iprefix\fR \fIprefix\fR" 4
7551 .IX Item "-iprefix prefix"
7552 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
7553 options.  If the prefix represents a directory, you should include the
7554 final \fB/\fR.
7555 .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
7556 .IX Item "-iwithprefix dir"
7557 .PD 0
7558 .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
7559 .IX Item "-iwithprefixbefore dir"
7560 .PD
7561 Append \fIdir\fR to the prefix specified previously with
7562 \&\fB\-iprefix\fR, and add the resulting directory to the include search
7563 path.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
7564 would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
7565 .IP "\fB\-isysroot\fR \fIdir\fR" 4
7566 .IX Item "-isysroot dir"
7567 This option is like the \fB\-\-sysroot\fR option, but applies only to
7568 header files.  See the \fB\-\-sysroot\fR option for more information.
7569 .IP "\fB\-imultilib\fR \fIdir\fR" 4
7570 .IX Item "-imultilib dir"
7571 Use \fIdir\fR as a subdirectory of the directory containing
7572 target-specific \*(C+ headers.
7573 .IP "\fB\-isystem\fR \fIdir\fR" 4
7574 .IX Item "-isystem dir"
7575 Search \fIdir\fR for header files, after all directories specified by
7576 \&\fB\-I\fR but before the standard system directories.  Mark it
7577 as a system directory, so that it gets the same special treatment as
7578 is applied to the standard system directories.
7579 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
7580 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
7581 .IP "\fB\-iquote\fR \fIdir\fR" 4
7582 .IX Item "-iquote dir"
7583 Search \fIdir\fR only for header files requested with
7584 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
7585 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR, before all directories specified by
7586 \&\fB\-I\fR and before the standard system directories.
7587 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
7588 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
7589 .IP "\fB\-fdirectives\-only\fR" 4
7590 .IX Item "-fdirectives-only"
7591 When preprocessing, handle directives, but do not expand macros.
7592 .Sp
7593 The option's behavior depends on the \fB\-E\fR and \fB\-fpreprocessed\fR
7594 options.
7595 .Sp
7596 With \fB\-E\fR, preprocessing is limited to the handling of directives
7597 such as \f(CW\*(C`#define\*(C'\fR, \f(CW\*(C`#ifdef\*(C'\fR, and \f(CW\*(C`#error\*(C'\fR.  Other
7598 preprocessor operations, such as macro expansion and trigraph
7599 conversion are not performed.  In addition, the \fB\-dD\fR option is
7600 implicitly enabled.
7601 .Sp
7602 With \fB\-fpreprocessed\fR, predefinition of command line and most
7603 builtin macros is disabled.  Macros such as \f(CW\*(C`_\|_LINE_\|_\*(C'\fR, which are
7604 contextually dependent, are handled normally.  This enables compilation of
7605 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
7606 .Sp
7607 With both \fB\-E\fR and \fB\-fpreprocessed\fR, the rules for
7608 \&\fB\-fpreprocessed\fR take precedence.  This enables full preprocessing of
7609 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
7610 .IP "\fB\-fdollars\-in\-identifiers\fR" 4
7611 .IX Item "-fdollars-in-identifiers"
7612 Accept \fB$\fR in identifiers.
7613 .IP "\fB\-fextended\-identifiers\fR" 4
7614 .IX Item "-fextended-identifiers"
7615 Accept universal character names in identifiers.  This option is
7616 experimental; in a future version of \s-1GCC\s0, it will be enabled by
7617 default for C99 and \*(C+.
7618 .IP "\fB\-fpreprocessed\fR" 4
7619 .IX Item "-fpreprocessed"
7620 Indicate to the preprocessor that the input file has already been
7621 preprocessed.  This suppresses things like macro expansion, trigraph
7622 conversion, escaped newline splicing, and processing of most directives.
7623 The preprocessor still recognizes and removes comments, so that you can
7624 pass a file preprocessed with \fB\-C\fR to the compiler without
7625 problems.  In this mode the integrated preprocessor is little more than
7626 a tokenizer for the front ends.
7627 .Sp
7628 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
7629 extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are the
7630 extensions that \s-1GCC\s0 uses for preprocessed files created by
7631 \&\fB\-save\-temps\fR.
7632 .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
7633 .IX Item "-ftabstop=width"
7634 Set the distance between tab stops.  This helps the preprocessor report
7635 correct column numbers in warnings or errors, even if tabs appear on the
7636 line.  If the value is less than 1 or greater than 100, the option is
7637 ignored.  The default is 8.
7638 .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
7639 .IX Item "-fexec-charset=charset"
7640 Set the execution character set, used for string and character
7641 constants.  The default is \s-1UTF\-8\s0.  \fIcharset\fR can be any encoding
7642 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
7643 .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
7644 .IX Item "-fwide-exec-charset=charset"
7645 Set the wide execution character set, used for wide string and
7646 character constants.  The default is \s-1UTF\-32\s0 or \s-1UTF\-16\s0, whichever
7647 corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR.  As with
7648 \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
7649 by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
7650 problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
7651 .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
7652 .IX Item "-finput-charset=charset"
7653 Set the input character set, used for translation from the character
7654 set of the input file to the source character set used by \s-1GCC\s0.  If the
7655 locale does not specify, or \s-1GCC\s0 cannot get this information from the
7656 locale, the default is \s-1UTF\-8\s0.  This can be overridden by either the locale
7657 or this command line option.  Currently the command line option takes
7658 precedence if there's a conflict.  \fIcharset\fR can be any encoding
7659 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
7660 .IP "\fB\-fworking\-directory\fR" 4
7661 .IX Item "-fworking-directory"
7662 Enable generation of linemarkers in the preprocessor output that will
7663 let the compiler know the current working directory at the time of
7664 preprocessing.  When this option is enabled, the preprocessor will
7665 emit, after the initial linemarker, a second linemarker with the
7666 current working directory followed by two slashes.  \s-1GCC\s0 will use this
7667 directory, when it's present in the preprocessed input, as the
7668 directory emitted as the current working directory in some debugging
7669 information formats.  This option is implicitly enabled if debugging
7670 information is enabled, but this can be inhibited with the negated
7671 form \fB\-fno\-working\-directory\fR.  If the \fB\-P\fR flag is
7672 present in the command line, this option has no effect, since no
7673 \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
7674 .IP "\fB\-fno\-show\-column\fR" 4
7675 .IX Item "-fno-show-column"
7676 Do not print column numbers in diagnostics.  This may be necessary if
7677 diagnostics are being scanned by a program that does not understand the
7678 column numbers, such as \fBdejagnu\fR.
7679 .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
7680 .IX Item "-A predicate=answer"
7681 Make an assertion with the predicate \fIpredicate\fR and answer
7682 \&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR
7683 \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
7684 it does not use shell special characters.
7685 .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
7686 .IX Item "-A -predicate=answer"
7687 Cancel an assertion with the predicate \fIpredicate\fR and answer
7688 \&\fIanswer\fR.
7689 .IP "\fB\-dCHARS\fR" 4
7690 .IX Item "-dCHARS"
7691 \&\fI\s-1CHARS\s0\fR is a sequence of one or more of the following characters,
7692 and must not be preceded by a space.  Other characters are interpreted
7693 by the compiler proper, or reserved for future versions of \s-1GCC\s0, and so
7694 are silently ignored.  If you specify characters whose behavior
7695 conflicts, the result is undefined.
7696 .RS 4
7697 .IP "\fBM\fR" 4
7698 .IX Item "M"
7699 Instead of the normal output, generate a list of \fB#define\fR
7700 directives for all the macros defined during the execution of the
7701 preprocessor, including predefined macros.  This gives you a way of
7702 finding out what is predefined in your version of the preprocessor.
7703 Assuming you have no file \fIfoo.h\fR, the command
7704 .Sp
7705 .Vb 1
7706 \&        touch foo.h; cpp \-dM foo.h
7707 .Ve
7708 .Sp
7709 will show all the predefined macros.
7710 .Sp
7711 If you use \fB\-dM\fR without the \fB\-E\fR option, \fB\-dM\fR is
7712 interpreted as a synonym for \fB\-fdump\-rtl\-mach\fR.
7713 .IP "\fBD\fR" 4
7714 .IX Item "D"
7715 Like \fBM\fR except in two respects: it does \fInot\fR include the
7716 predefined macros, and it outputs \fIboth\fR the \fB#define\fR
7717 directives and the result of preprocessing.  Both kinds of output go to
7718 the standard output file.
7719 .IP "\fBN\fR" 4
7720 .IX Item "N"
7721 Like \fBD\fR, but emit only the macro names, not their expansions.
7722 .IP "\fBI\fR" 4
7723 .IX Item "I"
7724 Output \fB#include\fR directives in addition to the result of
7725 preprocessing.
7726 .IP "\fBU\fR" 4
7727 .IX Item "U"
7728 Like \fBD\fR except that only macros that are expanded, or whose
7729 definedness is tested in preprocessor directives, are output; the
7730 output is delayed until the use or test of the macro; and
7731 \&\fB#undef\fR directives are also output for macros tested but
7732 undefined at the time.
7733 .RE
7734 .RS 4
7735 .RE
7736 .IP "\fB\-P\fR" 4
7737 .IX Item "-P"
7738 Inhibit generation of linemarkers in the output from the preprocessor.
7739 This might be useful when running the preprocessor on something that is
7740 not C code, and will be sent to a program which might be confused by the
7741 linemarkers.
7742 .IP "\fB\-C\fR" 4
7743 .IX Item "-C"
7744 Do not discard comments.  All comments are passed through to the output
7745 file, except for comments in processed directives, which are deleted
7746 along with the directive.
7747 .Sp
7748 You should be prepared for side effects when using \fB\-C\fR; it
7749 causes the preprocessor to treat comments as tokens in their own right.
7750 For example, comments appearing at the start of what would be a
7751 directive line have the effect of turning that line into an ordinary
7752 source line, since the first token on the line is no longer a \fB#\fR.
7753 .IP "\fB\-CC\fR" 4
7754 .IX Item "-CC"
7755 Do not discard comments, including during macro expansion.  This is
7756 like \fB\-C\fR, except that comments contained within macros are
7757 also passed through to the output file where the macro is expanded.
7758 .Sp
7759 In addition to the side-effects of the \fB\-C\fR option, the
7760 \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
7761 to be converted to C\-style comments.  This is to prevent later use
7762 of that macro from inadvertently commenting out the remainder of
7763 the source line.
7764 .Sp
7765 The \fB\-CC\fR option is generally used to support lint comments.
7766 .IP "\fB\-traditional\-cpp\fR" 4
7767 .IX Item "-traditional-cpp"
7768 Try to imitate the behavior of old-fashioned C preprocessors, as
7769 opposed to \s-1ISO\s0 C preprocessors.
7770 .IP "\fB\-trigraphs\fR" 4
7771 .IX Item "-trigraphs"
7772 Process trigraph sequences.
7773 These are three-character sequences, all starting with \fB??\fR, that
7774 are defined by \s-1ISO\s0 C to stand for single characters.  For example,
7775 \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
7776 constant for a newline.  By default, \s-1GCC\s0 ignores trigraphs, but in
7777 standard-conforming modes it converts them.  See the \fB\-std\fR and
7778 \&\fB\-ansi\fR options.
7779 .Sp
7780 The nine trigraphs and their replacements are
7781 .Sp
7782 .Vb 2
7783 \&        Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??\*(Aq  ??!  ??\-
7784 \&        Replacement:      [    ]    {    }    #    \e    ^    |    ~
7785 .Ve
7786 .IP "\fB\-remap\fR" 4
7787 .IX Item "-remap"
7788 Enable special code to work around file systems which only permit very
7789 short file names, such as MS-DOS.
7790 .IP "\fB\-\-help\fR" 4
7791 .IX Item "--help"
7792 .PD 0
7793 .IP "\fB\-\-target\-help\fR" 4
7794 .IX Item "--target-help"
7795 .PD
7796 Print text describing all the command line options instead of
7797 preprocessing anything.
7798 .IP "\fB\-v\fR" 4
7799 .IX Item "-v"
7800 Verbose mode.  Print out \s-1GNU\s0 \s-1CPP\s0's version number at the beginning of
7801 execution, and report the final form of the include path.
7802 .IP "\fB\-H\fR" 4
7803 .IX Item "-H"
7804 Print the name of each header file used, in addition to other normal
7805 activities.  Each name is indented to show how deep in the
7806 \&\fB#include\fR stack it is.  Precompiled header files are also
7807 printed, even if they are found to be invalid; an invalid precompiled
7808 header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
7809 .IP "\fB\-version\fR" 4
7810 .IX Item "-version"
7811 .PD 0
7812 .IP "\fB\-\-version\fR" 4
7813 .IX Item "--version"
7814 .PD
7815 Print out \s-1GNU\s0 \s-1CPP\s0's version number.  With one dash, proceed to
7816 preprocess as normal.  With two dashes, exit immediately.
7817 .Sh "Passing Options to the Assembler"
7818 .IX Subsection "Passing Options to the Assembler"
7819 You can pass options to the assembler.
7820 .IP "\fB\-Wa,\fR\fIoption\fR" 4
7821 .IX Item "-Wa,option"
7822 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
7823 contains commas, it is split into multiple options at the commas.
7824 .IP "\fB\-Xassembler\fR \fIoption\fR" 4
7825 .IX Item "-Xassembler option"
7826 Pass \fIoption\fR as an option to the assembler.  You can use this to
7827 supply system-specific assembler options which \s-1GCC\s0 does not know how to
7828 recognize.
7829 .Sp
7830 If you want to pass an option that takes an argument, you must use
7831 \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
7832 .Sh "Options for Linking"
7833 .IX Subsection "Options for Linking"
7834 These options come into play when the compiler links object files into
7835 an executable output file.  They are meaningless if the compiler is
7836 not doing a link step.
7837 .IP "\fIobject-file-name\fR" 4
7838 .IX Item "object-file-name"
7839 A file name that does not end in a special recognized suffix is
7840 considered to name an object file or library.  (Object files are
7841 distinguished from libraries by the linker according to the file
7842 contents.)  If linking is done, these object files are used as input
7843 to the linker.
7844 .IP "\fB\-c\fR" 4
7845 .IX Item "-c"
7846 .PD 0
7847 .IP "\fB\-S\fR" 4
7848 .IX Item "-S"
7849 .IP "\fB\-E\fR" 4
7850 .IX Item "-E"
7851 .PD
7852 If any of these options is used, then the linker is not run, and
7853 object file names should not be used as arguments.
7854 .IP "\fB\-l\fR\fIlibrary\fR" 4
7855 .IX Item "-llibrary"
7856 .PD 0
7857 .IP "\fB\-l\fR \fIlibrary\fR" 4
7858 .IX Item "-l library"
7859 .PD
7860 Search the library named \fIlibrary\fR when linking.  (The second
7861 alternative with the library as a separate argument is only for
7862 \&\s-1POSIX\s0 compliance and is not recommended.)
7863 .Sp
7864 It makes a difference where in the command you write this option; the
7865 linker searches and processes libraries and object files in the order they
7866 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
7867 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
7868 to functions in \fBz\fR, those functions may not be loaded.
7869 .Sp
7870 The linker searches a standard list of directories for the library,
7871 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
7872 then uses this file as if it had been specified precisely by name.
7873 .Sp
7874 The directories searched include several standard system directories
7875 plus any that you specify with \fB\-L\fR.
7876 .Sp
7877 Normally the files found this way are library files\-\-\-archive files
7878 whose members are object files.  The linker handles an archive file by
7879 scanning through it for members which define symbols that have so far
7880 been referenced but not defined.  But if the file that is found is an
7881 ordinary object file, it is linked in the usual fashion.  The only
7882 difference between using an \fB\-l\fR option and specifying a file name
7883 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
7884 and searches several directories.
7885 .IP "\fB\-lobjc\fR" 4
7886 .IX Item "-lobjc"
7887 You need this special case of the \fB\-l\fR option in order to
7888 link an Objective-C or Objective\-\*(C+ program.
7889 .IP "\fB\-nostartfiles\fR" 4
7890 .IX Item "-nostartfiles"
7891 Do not use the standard system startup files when linking.
7892 The standard system libraries are used normally, unless \fB\-nostdlib\fR
7893 or \fB\-nodefaultlibs\fR is used.
7894 .IP "\fB\-nodefaultlibs\fR" 4
7895 .IX Item "-nodefaultlibs"
7896 Do not use the standard system libraries when linking.
7897 Only the libraries you specify will be passed to the linker.
7898 The standard startup files are used normally, unless \fB\-nostartfiles\fR
7899 is used.  The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
7900 \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
7901 These entries are usually resolved by entries in
7902 libc.  These entry points should be supplied through some other
7903 mechanism when this option is specified.
7904 .IP "\fB\-nostdlib\fR" 4
7905 .IX Item "-nostdlib"
7906 Do not use the standard system startup files or libraries when linking.
7907 No startup files and only the libraries you specify will be passed to
7908 the linker.  The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
7909 \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
7910 These entries are usually resolved by entries in
7911 libc.  These entry points should be supplied through some other
7912 mechanism when this option is specified.
7913 .Sp
7914 One of the standard libraries bypassed by \fB\-nostdlib\fR and
7915 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
7916 that \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
7917 needs for some languages.
7918 .Sp
7919 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
7920 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
7921 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
7922 This ensures that you have no unresolved references to internal \s-1GCC\s0
7923 library subroutines.  (For example, \fB_\|_main\fR, used to ensure \*(C+
7924 constructors will be called.)
7925 .IP "\fB\-pie\fR" 4
7926 .IX Item "-pie"
7927 Produce a position independent executable on targets which support it.
7928 For predictable results, you must also specify the same set of options
7929 that were used to generate code (\fB\-fpie\fR, \fB\-fPIE\fR,
7930 or model suboptions) when you specify this option.
7931 .IP "\fB\-rdynamic\fR" 4
7932 .IX Item "-rdynamic"
7933 Pass the flag \fB\-export\-dynamic\fR to the \s-1ELF\s0 linker, on targets
7934 that support it. This instructs the linker to add all symbols, not
7935 only used ones, to the dynamic symbol table. This option is needed
7936 for some uses of \f(CW\*(C`dlopen\*(C'\fR or to allow obtaining backtraces
7937 from within a program.
7938 .IP "\fB\-s\fR" 4
7939 .IX Item "-s"
7940 Remove all symbol table and relocation information from the executable.
7941 .IP "\fB\-static\fR" 4
7942 .IX Item "-static"
7943 On systems that support dynamic linking, this prevents linking with the shared
7944 libraries.  On other systems, this option has no effect.
7945 .IP "\fB\-shared\fR" 4
7946 .IX Item "-shared"
7947 Produce a shared object which can then be linked with other objects to
7948 form an executable.  Not all systems support this option.  For predictable
7949 results, you must also specify the same set of options that were used to
7950 generate code (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions)
7951 when you specify this option.[1]
7952 .IP "\fB\-shared\-libgcc\fR" 4
7953 .IX Item "-shared-libgcc"
7954 .PD 0
7955 .IP "\fB\-static\-libgcc\fR" 4
7956 .IX Item "-static-libgcc"
7957 .PD
7958 On systems that provide \fIlibgcc\fR as a shared library, these options
7959 force the use of either the shared or static version respectively.
7960 If no shared version of \fIlibgcc\fR was built when the compiler was
7961 configured, these options have no effect.
7962 .Sp
7963 There are several situations in which an application should use the
7964 shared \fIlibgcc\fR instead of the static version.  The most common
7965 of these is when the application wishes to throw and catch exceptions
7966 across different shared libraries.  In that case, each of the libraries
7967 as well as the application itself should use the shared \fIlibgcc\fR.
7968 .Sp
7969 Therefore, the G++ and \s-1GCJ\s0 drivers automatically add
7970 \&\fB\-shared\-libgcc\fR whenever you build a shared library or a main
7971 executable, because \*(C+ and Java programs typically use exceptions, so
7972 this is the right thing to do.
7973 .Sp
7974 If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
7975 find that they will not always be linked with the shared \fIlibgcc\fR.
7976 If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
7977 or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
7978 it will link the shared version of \fIlibgcc\fR into shared libraries
7979 by default.  Otherwise, it will take advantage of the linker and optimize
7980 away the linking with the shared version of \fIlibgcc\fR, linking with
7981 the static version of libgcc by default.  This allows exceptions to
7982 propagate through such shared libraries, without incurring relocation
7983 costs at library load time.
7984 .Sp
7985 However, if a library or main executable is supposed to throw or catch
7986 exceptions, you must link it using the G++ or \s-1GCJ\s0 driver, as appropriate
7987 for the languages used in the program, or using the option
7988 \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
7989 \&\fIlibgcc\fR.
7990 .IP "\fB\-symbolic\fR" 4
7991 .IX Item "-symbolic"
7992 Bind references to global symbols when building a shared object.  Warn
7993 about any unresolved references (unless overridden by the link editor
7994 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
7995 this option.
7996 .IP "\fB\-T\fR \fIscript\fR" 4
7997 .IX Item "-T script"
7998 Use \fIscript\fR as the linker script.  This option is supported by most
7999 systems using the \s-1GNU\s0 linker.  On some targets, such as bare-board
8000 targets without an operating system, the \fB\-T\fR option may be required 
8001 when linking to avoid references to undefined symbols.
8002 .IP "\fB\-Xlinker\fR \fIoption\fR" 4
8003 .IX Item "-Xlinker option"
8004 Pass \fIoption\fR as an option to the linker.  You can use this to
8005 supply system-specific linker options which \s-1GCC\s0 does not know how to
8006 recognize.
8007 .Sp
8008 If you want to pass an option that takes a separate argument, you must use
8009 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
8010 For example, to pass \fB\-assert definitions\fR, you must write
8011 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
8012 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
8013 string as a single argument, which is not what the linker expects.
8014 .Sp
8015 When using the \s-1GNU\s0 linker, it is usually more convenient to pass 
8016 arguments to linker options using the \fIoption\fR\fB=\fR\fIvalue\fR
8017 syntax than as separate arguments.  For example, you can specify
8018 \&\fB\-Xlinker \-Map=output.map\fR rather than
8019 \&\fB\-Xlinker \-Map \-Xlinker output.map\fR.  Other linkers may not support
8020 this syntax for command-line options.
8021 .IP "\fB\-Wl,\fR\fIoption\fR" 4
8022 .IX Item "-Wl,option"
8023 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
8024 commas, it is split into multiple options at the commas.  You can use this
8025 syntax to pass an argument to the option.  
8026 For example, \fB\-Wl,\-Map,output.map\fR passes \fB\-Map output.map\fR to the
8027 linker.  When using the \s-1GNU\s0 linker, you can also get the same effect with
8028 \&\fB\-Wl,\-Map=output.map\fR.
8029 .IP "\fB\-u\fR \fIsymbol\fR" 4
8030 .IX Item "-u symbol"
8031 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
8032 library modules to define it.  You can use \fB\-u\fR multiple times with
8033 different symbols to force loading of additional library modules.
8034 .Sh "Options for Directory Search"
8035 .IX Subsection "Options for Directory Search"
8036 These options specify directories to search for header files, for
8037 libraries and for parts of the compiler:
8038 .IP "\fB\-I\fR\fIdir\fR" 4
8039 .IX Item "-Idir"
8040 Add the directory \fIdir\fR to the head of the list of directories to be
8041 searched for header files.  This can be used to override a system header
8042 file, substituting your own version, since these directories are
8043 searched before the system header file directories.  However, you should
8044 not use this option to add directories that contain vendor-supplied
8045 system header files (use \fB\-isystem\fR for that).  If you use more than
8046 one \fB\-I\fR option, the directories are scanned in left-to-right
8047 order; the standard system directories come after.
8048 .Sp
8049 If a standard system include directory, or a directory specified with
8050 \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
8051 option will be ignored.  The directory will still be searched but as a
8052 system directory at its normal position in the system include chain.
8053 This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
8054 the ordering for the include_next directive are not inadvertently changed.
8055 If you really need to change the search order for system directories,
8056 use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
8057 .IP "\fB\-iquote\fR\fIdir\fR" 4
8058 .IX Item "-iquotedir"
8059 Add the directory \fIdir\fR to the head of the list of directories to
8060 be searched for header files only for the case of \fB#include
8061 "\fR\fIfile\fR\fB"\fR; they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR,
8062 otherwise just like \fB\-I\fR.
8063 .IP "\fB\-L\fR\fIdir\fR" 4
8064 .IX Item "-Ldir"
8065 Add directory \fIdir\fR to the list of directories to be searched
8066 for \fB\-l\fR.
8067 .IP "\fB\-B\fR\fIprefix\fR" 4
8068 .IX Item "-Bprefix"
8069 This option specifies where to find the executables, libraries,
8070 include files, and data files of the compiler itself.
8071 .Sp
8072 The compiler driver program runs one or more of the subprograms
8073 \&\fIcpp\fR, \fIcc1\fR, \fIas\fR and \fIld\fR.  It tries
8074 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
8075 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR.
8076 .Sp
8077 For each subprogram to be run, the compiler driver first tries the
8078 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
8079 was not specified, the driver tries two standard prefixes, which are
8080 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR.  If neither of
8081 those results in a file name that is found, the unmodified program
8082 name is searched for using the directories specified in your
8083 \&\fB\s-1PATH\s0\fR environment variable.
8084 .Sp
8085 The compiler will check to see if the path provided by the \fB\-B\fR
8086 refers to a directory, and if necessary it will add a directory
8087 separator character at the end of the path.
8088 .Sp
8089 \&\fB\-B\fR prefixes that effectively specify directory names also apply
8090 to libraries in the linker, because the compiler translates these
8091 options into \fB\-L\fR options for the linker.  They also apply to
8092 includes files in the preprocessor, because the compiler translates these
8093 options into \fB\-isystem\fR options for the preprocessor.  In this case,
8094 the compiler appends \fBinclude\fR to the prefix.
8095 .Sp
8096 The run-time support file \fIlibgcc.a\fR can also be searched for using
8097 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
8098 standard prefixes above are tried, and that is all.  The file is left
8099 out of the link if it is not found by those means.
8100 .Sp
8101 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
8102 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.
8103 .Sp
8104 As a special kludge, if the path provided by \fB\-B\fR is
8105 \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
8106 9, then it will be replaced by \fI[dir/]include\fR.  This is to help
8107 with boot-strapping the compiler.
8108 .IP "\fB\-specs=\fR\fIfile\fR" 4
8109 .IX Item "-specs=file"
8110 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
8111 file, in order to override the defaults that the \fIgcc\fR driver
8112 program uses when determining what switches to pass to \fIcc1\fR,
8113 \&\fIcc1plus\fR, \fIas\fR, \fIld\fR, etc.  More than one
8114 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
8115 are processed in order, from left to right.
8116 .IP "\fB\-\-sysroot=\fR\fIdir\fR" 4
8117 .IX Item "--sysroot=dir"
8118 Use \fIdir\fR as the logical root directory for headers and libraries.
8119 For example, if the compiler would normally search for headers in
8120 \&\fI/usr/include\fR and libraries in \fI/usr/lib\fR, it will instead
8121 search \fI\fIdir\fI/usr/include\fR and \fI\fIdir\fI/usr/lib\fR.
8122 .Sp
8123 If you use both this option and the \fB\-isysroot\fR option, then
8124 the \fB\-\-sysroot\fR option will apply to libraries, but the
8125 \&\fB\-isysroot\fR option will apply to header files.
8126 .Sp
8127 The \s-1GNU\s0 linker (beginning with version 2.16) has the necessary support
8128 for this option.  If your linker does not support this option, the
8129 header file aspect of \fB\-\-sysroot\fR will still work, but the
8130 library aspect will not.
8131 .IP "\fB\-I\-\fR" 4
8132 .IX Item "-I-"
8133 This option has been deprecated.  Please use \fB\-iquote\fR instead for
8134 \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR.
8135 Any directories you specify with \fB\-I\fR options before the \fB\-I\-\fR
8136 option are searched only for the case of \fB#include "\fR\fIfile\fR\fB"\fR;
8137 they are not searched for \fB#include <\fR\fIfile\fR\fB>\fR.
8138 .Sp
8139 If additional directories are specified with \fB\-I\fR options after
8140 the \fB\-I\-\fR, these directories are searched for all \fB#include\fR
8141 directives.  (Ordinarily \fIall\fR \fB\-I\fR directories are used
8142 this way.)
8143 .Sp
8144 In addition, the \fB\-I\-\fR option inhibits the use of the current
8145 directory (where the current input file came from) as the first search
8146 directory for \fB#include "\fR\fIfile\fR\fB"\fR.  There is no way to
8147 override this effect of \fB\-I\-\fR.  With \fB\-I.\fR you can specify
8148 searching the directory which was current when the compiler was
8149 invoked.  That is not exactly the same as what the preprocessor does
8150 by default, but it is often satisfactory.
8151 .Sp
8152 \&\fB\-I\-\fR does not inhibit the use of the standard system directories
8153 for header files.  Thus, \fB\-I\-\fR and \fB\-nostdinc\fR are
8154 independent.
8155 .Sh "Specifying Target Machine and Compiler Version"
8156 .IX Subsection "Specifying Target Machine and Compiler Version"
8157 The usual way to run \s-1GCC\s0 is to run the executable called \fIgcc\fR, or
8158 \&\fI<machine>\-gcc\fR when cross-compiling, or
8159 \&\fI<machine>\-gcc\-<version>\fR to run a version other than the one that
8160 was installed last.  Sometimes this is inconvenient, so \s-1GCC\s0 provides
8161 options that will switch to another cross-compiler or version.
8162 .IP "\fB\-b\fR \fImachine\fR" 4
8163 .IX Item "-b machine"
8164 The argument \fImachine\fR specifies the target machine for compilation.
8165 .Sp
8166 The value to use for \fImachine\fR is the same as was specified as the
8167 machine type when configuring \s-1GCC\s0 as a cross-compiler.  For
8168 example, if a cross-compiler was configured with \fBconfigure
8169 arm-elf\fR, meaning to compile for an arm processor with elf binaries,
8170 then you would specify \fB\-b arm-elf\fR to run that cross compiler.
8171 Because there are other options beginning with \fB\-b\fR, the
8172 configuration must contain a hyphen, or \fB\-b\fR alone should be one
8173 argument followed by the configuration in the next argument.
8174 .IP "\fB\-V\fR \fIversion\fR" 4
8175 .IX Item "-V version"
8176 The argument \fIversion\fR specifies which version of \s-1GCC\s0 to run.
8177 This is useful when multiple versions are installed.  For example,
8178 \&\fIversion\fR might be \fB4.0\fR, meaning to run \s-1GCC\s0 version 4.0.
8179 .PP
8180 The \fB\-V\fR and \fB\-b\fR options work by running the
8181 \&\fI<machine>\-gcc\-<version>\fR executable, so there's no real reason to
8182 use them if you can just run that directly.
8183 .Sh "Hardware Models and Configurations"
8184 .IX Subsection "Hardware Models and Configurations"
8185 Earlier we discussed the standard option \fB\-b\fR which chooses among
8186 different installed compilers for completely different target
8187 machines, such as \s-1VAX\s0 vs. 68000 vs. 80386.
8188 .PP
8189 In addition, each of these target machine types can have its own
8190 special options, starting with \fB\-m\fR, to choose among various
8191 hardware models or configurations\-\-\-for example, 68010 vs 68020,
8192 floating coprocessor or none.  A single installed version of the
8193 compiler can compile for any model or configuration, according to the
8194 options specified.
8195 .PP
8196 Some configurations of the compiler also support additional special
8197 options, usually for compatibility with other compilers on the same
8198 platform.
8199 .PP
8200 \fI\s-1ARC\s0 Options\fR
8201 .IX Subsection "ARC Options"
8202 .PP
8203 These options are defined for \s-1ARC\s0 implementations:
8204 .IP "\fB\-EL\fR" 4
8205 .IX Item "-EL"
8206 Compile code for little endian mode.  This is the default.
8207 .IP "\fB\-EB\fR" 4
8208 .IX Item "-EB"
8209 Compile code for big endian mode.
8210 .IP "\fB\-mmangle\-cpu\fR" 4
8211 .IX Item "-mmangle-cpu"
8212 Prepend the name of the cpu to all public symbol names.
8213 In multiple-processor systems, there are many \s-1ARC\s0 variants with different
8214 instruction and register set characteristics.  This flag prevents code
8215 compiled for one cpu to be linked with code compiled for another.
8216 No facility exists for handling variants that are \*(L"almost identical\*(R".
8217 This is an all or nothing option.
8218 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
8219 .IX Item "-mcpu=cpu"
8220 Compile code for \s-1ARC\s0 variant \fIcpu\fR.
8221 Which variants are supported depend on the configuration.
8222 All variants support \fB\-mcpu=base\fR, this is the default.
8223 .IP "\fB\-mtext=\fR\fItext-section\fR" 4
8224 .IX Item "-mtext=text-section"
8225 .PD 0
8226 .IP "\fB\-mdata=\fR\fIdata-section\fR" 4
8227 .IX Item "-mdata=data-section"
8228 .IP "\fB\-mrodata=\fR\fIreadonly-data-section\fR" 4
8229 .IX Item "-mrodata=readonly-data-section"
8230 .PD
8231 Put functions, data, and readonly data in \fItext-section\fR,
8232 \&\fIdata-section\fR, and \fIreadonly-data-section\fR respectively
8233 by default.  This can be overridden with the \f(CW\*(C`section\*(C'\fR attribute.
8234 .IP "\fB\-mfix\-cortex\-m3\-ldrd\fR" 4
8235 .IX Item "-mfix-cortex-m3-ldrd"
8236 Some Cortex\-M3 cores can cause data corruption when \f(CW\*(C`ldrd\*(C'\fR instructions
8237 with overlapping destination and base registers are used.  This option avoids
8238 generating these instructions.  This option is enabled by default when
8239 \&\fB\-mcpu=cortex\-m3\fR is specified.
8240 .PP
8241 \fI\s-1ARM\s0 Options\fR
8242 .IX Subsection "ARM Options"
8243 .PP
8244 These \fB\-m\fR options are defined for Advanced \s-1RISC\s0 Machines (\s-1ARM\s0)
8245 architectures:
8246 .IP "\fB\-mabi=\fR\fIname\fR" 4
8247 .IX Item "-mabi=name"
8248 Generate code for the specified \s-1ABI\s0.  Permissible values are: \fBapcs-gnu\fR,
8249 \&\fBatpcs\fR, \fBaapcs\fR, \fBaapcs-linux\fR and \fBiwmmxt\fR.
8250 .IP "\fB\-mapcs\-frame\fR" 4
8251 .IX Item "-mapcs-frame"
8252 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
8253 Standard for all functions, even if this is not strictly necessary for
8254 correct execution of the code.  Specifying \fB\-fomit\-frame\-pointer\fR
8255 with this option will cause the stack frames not to be generated for
8256 leaf functions.  The default is \fB\-mno\-apcs\-frame\fR.
8257 .IP "\fB\-mapcs\fR" 4
8258 .IX Item "-mapcs"
8259 This is a synonym for \fB\-mapcs\-frame\fR.
8260 .IP "\fB\-mthumb\-interwork\fR" 4
8261 .IX Item "-mthumb-interwork"
8262 Generate code which supports calling between the \s-1ARM\s0 and Thumb
8263 instruction sets.  Without this option the two instruction sets cannot
8264 be reliably used inside one program.  The default is
8265 \&\fB\-mno\-thumb\-interwork\fR, since slightly larger code is generated
8266 when \fB\-mthumb\-interwork\fR is specified.
8267 .IP "\fB\-mno\-sched\-prolog\fR" 4
8268 .IX Item "-mno-sched-prolog"
8269 Prevent the reordering of instructions in the function prolog, or the
8270 merging of those instruction with the instructions in the function's
8271 body.  This means that all functions will start with a recognizable set
8272 of instructions (or in fact one of a choice from a small set of
8273 different function prologues), and this information can be used to
8274 locate the start if functions inside an executable piece of code.  The
8275 default is \fB\-msched\-prolog\fR.
8276 .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
8277 .IX Item "-mfloat-abi=name"
8278 Specifies which floating-point \s-1ABI\s0 to use.  Permissible values
8279 are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
8280 .Sp
8281 Specifying \fBsoft\fR causes \s-1GCC\s0 to generate output containing 
8282 library calls for floating-point operations.
8283 \&\fBsoftfp\fR allows the generation of code using hardware floating-point 
8284 instructions, but still uses the soft-float calling conventions.  
8285 \&\fBhard\fR allows generation of floating-point instructions 
8286 and uses FPU-specific calling conventions.
8287 .Sp
8288 Using \fB\-mfloat\-abi=hard\fR with \s-1VFP\s0 coprocessors is not supported.
8289 Use \fB\-mfloat\-abi=softfp\fR with the appropriate \fB\-mfpu\fR option
8290 to allow the compiler to generate code that makes use of the hardware
8291 floating-point capabilities for these CPUs.
8292 .Sp
8293 The default depends on the specific target configuration.  Note that
8294 the hard-float and soft-float ABIs are not link-compatible; you must
8295 compile your entire program with the same \s-1ABI\s0, and link with a
8296 compatible set of libraries.
8297 .IP "\fB\-mhard\-float\fR" 4
8298 .IX Item "-mhard-float"
8299 Equivalent to \fB\-mfloat\-abi=hard\fR.
8300 .IP "\fB\-msoft\-float\fR" 4
8301 .IX Item "-msoft-float"
8302 Equivalent to \fB\-mfloat\-abi=soft\fR.
8303 .IP "\fB\-mlittle\-endian\fR" 4
8304 .IX Item "-mlittle-endian"
8305 Generate code for a processor running in little-endian mode.  This is
8306 the default for all standard configurations.
8307 .IP "\fB\-mbig\-endian\fR" 4
8308 .IX Item "-mbig-endian"
8309 Generate code for a processor running in big-endian mode; the default is
8310 to compile code for a little-endian processor.
8311 .IP "\fB\-mwords\-little\-endian\fR" 4
8312 .IX Item "-mwords-little-endian"
8313 This option only applies when generating code for big-endian processors.
8314 Generate code for a little-endian word order but a big-endian byte
8315 order.  That is, a byte order of the form \fB32107654\fR.  Note: this
8316 option should only be used if you require compatibility with code for
8317 big-endian \s-1ARM\s0 processors generated by versions of the compiler prior to
8318 2.8.
8319 .IP "\fB\-mcpu=\fR\fIname\fR" 4
8320 .IX Item "-mcpu=name"
8321 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
8322 to determine what kind of instructions it can emit when generating
8323 assembly code.  Permissible names are: \fBarm2\fR, \fBarm250\fR,
8324 \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
8325 \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
8326 \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
8327 \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
8328 \&\fBarm720\fR,
8329 \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR,
8330 \&\fBarm710t\fR, \fBarm720t\fR, \fBarm740t\fR,
8331 \&\fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
8332 \&\fBstrongarm1110\fR,
8333 \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
8334 \&\fBarm920t\fR, \fBarm922t\fR, \fBarm946e\-s\fR, \fBarm966e\-s\fR,
8335 \&\fBarm968e\-s\fR, \fBarm926ej\-s\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
8336 \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ej\-s\fR,
8337 \&\fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
8338 \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
8339 \&\fBarm1156t2\-s\fR, \fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR,
8340 \&\fBcortex\-a8\fR, \fBcortex\-a9\fR,
8341 \&\fBcortex\-r4\fR, \fBcortex\-r4f\fR, \fBcortex\-m3\fR,
8342 \&\fBcortex\-m1\fR,
8343 \&\fBxscale\fR, \fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR.
8344 .IP "\fB\-mtune=\fR\fIname\fR" 4
8345 .IX Item "-mtune=name"
8346 This option is very similar to the \fB\-mcpu=\fR option, except that
8347 instead of specifying the actual target processor type, and hence
8348 restricting which instructions can be used, it specifies that \s-1GCC\s0 should
8349 tune the performance of the code as if the target were of the type
8350 specified in this option, but still choosing the instructions that it
8351 will generate based on the cpu specified by a \fB\-mcpu=\fR option.
8352 For some \s-1ARM\s0 implementations better performance can be obtained by using
8353 this option.
8354 .IP "\fB\-march=\fR\fIname\fR" 4
8355 .IX Item "-march=name"
8356 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
8357 name to determine what kind of instructions it can emit when generating
8358 assembly code.  This option can be used in conjunction with or instead
8359 of the \fB\-mcpu=\fR option.  Permissible names are: \fBarmv2\fR,
8360 \&\fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR, \fBarmv4\fR, \fBarmv4t\fR,
8361 \&\fBarmv5\fR, \fBarmv5t\fR, \fBarmv5e\fR, \fBarmv5te\fR,
8362 \&\fBarmv6\fR, \fBarmv6j\fR,
8363 \&\fBarmv6t2\fR, \fBarmv6z\fR, \fBarmv6zk\fR, \fBarmv6\-m\fR,
8364 \&\fBarmv7\fR, \fBarmv7\-a\fR, \fBarmv7\-r\fR, \fBarmv7\-m\fR,
8365 \&\fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR.
8366 .IP "\fB\-mfpu=\fR\fIname\fR" 4
8367 .IX Item "-mfpu=name"
8368 .PD 0
8369 .IP "\fB\-mfpe=\fR\fInumber\fR" 4
8370 .IX Item "-mfpe=number"
8371 .IP "\fB\-mfp=\fR\fInumber\fR" 4
8372 .IX Item "-mfp=number"
8373 .PD
8374 This specifies what floating point hardware (or hardware emulation) is
8375 available on the target.  Permissible names are: \fBfpa\fR, \fBfpe2\fR,
8376 \&\fBfpe3\fR, \fBmaverick\fR, \fBvfp\fR, \fBvfpv3\fR, \fBvfpv3\-d16\fR and
8377 \&\fBneon\fR.  \fB\-mfp\fR and \fB\-mfpe\fR
8378 are synonyms for \fB\-mfpu\fR=\fBfpe\fR\fInumber\fR, for compatibility
8379 with older versions of \s-1GCC\s0.
8380 .Sp
8381 If \fB\-msoft\-float\fR is specified this specifies the format of
8382 floating point values.
8383 .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
8384 .IX Item "-mstructure-size-boundary=n"
8385 The size of all structures and unions will be rounded up to a multiple
8386 of the number of bits set by this option.  Permissible values are 8, 32
8387 and 64.  The default value varies for different toolchains.  For the \s-1COFF\s0
8388 targeted toolchain the default value is 8.  A value of 64 is only allowed
8389 if the underlying \s-1ABI\s0 supports it.
8390 .Sp
8391 Specifying the larger number can produce faster, more efficient code, but
8392 can also increase the size of the program.  Different values are potentially
8393 incompatible.  Code compiled with one value cannot necessarily expect to
8394 work with code or libraries compiled with another value, if they exchange
8395 information using structures or unions.
8396 .IP "\fB\-mabort\-on\-noreturn\fR" 4
8397 .IX Item "-mabort-on-noreturn"
8398 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
8399 \&\f(CW\*(C`noreturn\*(C'\fR function.  It will be executed if the function tries to
8400 return.
8401 .IP "\fB\-mlong\-calls\fR" 4
8402 .IX Item "-mlong-calls"
8403 .PD 0
8404 .IP "\fB\-mno\-long\-calls\fR" 4
8405 .IX Item "-mno-long-calls"
8406 .PD
8407 Tells the compiler to perform function calls by first loading the
8408 address of the function into a register and then performing a subroutine
8409 call on this register.  This switch is needed if the target function
8410 will lie outside of the 64 megabyte addressing range of the offset based
8411 version of subroutine call instruction.
8412 .Sp
8413 Even if this switch is enabled, not all function calls will be turned
8414 into long calls.  The heuristic is that static functions, functions
8415 which have the \fBshort-call\fR attribute, functions that are inside
8416 the scope of a \fB#pragma no_long_calls\fR directive and functions whose
8417 definitions have already been compiled within the current compilation
8418 unit, will not be turned into long calls.  The exception to this rule is
8419 that weak function definitions, functions with the \fBlong-call\fR
8420 attribute or the \fBsection\fR attribute, and functions that are within
8421 the scope of a \fB#pragma long_calls\fR directive, will always be
8422 turned into long calls.
8423 .Sp
8424 This feature is not enabled by default.  Specifying
8425 \&\fB\-mno\-long\-calls\fR will restore the default behavior, as will
8426 placing the function calls within the scope of a \fB#pragma
8427 long_calls_off\fR directive.  Note these switches have no effect on how
8428 the compiler generates code to handle function calls via function
8429 pointers.
8430 .IP "\fB\-msingle\-pic\-base\fR" 4
8431 .IX Item "-msingle-pic-base"
8432 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
8433 loading it in the prologue for each function.  The run-time system is
8434 responsible for initializing this register with an appropriate value
8435 before execution begins.
8436 .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
8437 .IX Item "-mpic-register=reg"
8438 Specify the register to be used for \s-1PIC\s0 addressing.  The default is R10
8439 unless stack-checking is enabled, when R9 is used.
8440 .IP "\fB\-mcirrus\-fix\-invalid\-insns\fR" 4
8441 .IX Item "-mcirrus-fix-invalid-insns"
8442 Insert NOPs into the instruction stream to in order to work around
8443 problems with invalid Maverick instruction combinations.  This option
8444 is only valid if the \fB\-mcpu=ep9312\fR option has been used to
8445 enable generation of instructions for the Cirrus Maverick floating
8446 point co-processor.  This option is not enabled by default, since the
8447 problem is only present in older Maverick implementations.  The default
8448 can be re-enabled by use of the \fB\-mno\-cirrus\-fix\-invalid\-insns\fR
8449 switch.
8450 .IP "\fB\-mpoke\-function\-name\fR" 4
8451 .IX Item "-mpoke-function-name"
8452 Write the name of each function into the text section, directly
8453 preceding the function prologue.  The generated code is similar to this:
8454 .Sp
8455 .Vb 9
8456 \&             t0
8457 \&                 .ascii "arm_poke_function_name", 0
8458 \&                 .align
8459 \&             t1
8460 \&                 .word 0xff000000 + (t1 \- t0)
8461 \&             arm_poke_function_name
8462 \&                 mov     ip, sp
8463 \&                 stmfd   sp!, {fp, ip, lr, pc}
8464 \&                 sub     fp, ip, #4
8465 .Ve
8466 .Sp
8467 When performing a stack backtrace, code can inspect the value of
8468 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
8469 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
8470 there is a function name embedded immediately preceding this location
8471 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
8472 .IP "\fB\-mthumb\fR" 4
8473 .IX Item "-mthumb"
8474 Generate code for the Thumb instruction set.  The default is to
8475 use the 32\-bit \s-1ARM\s0 instruction set.
8476 This option automatically enables either 16\-bit Thumb\-1 or
8477 mixed 16/32\-bit Thumb\-2 instructions based on the \fB\-mcpu=\fR\fIname\fR
8478 and \fB\-march=\fR\fIname\fR options.
8479 .IP "\fB\-mtpcs\-frame\fR" 4
8480 .IX Item "-mtpcs-frame"
8481 Generate a stack frame that is compliant with the Thumb Procedure Call
8482 Standard for all non-leaf functions.  (A leaf function is one that does
8483 not call any other functions.)  The default is \fB\-mno\-tpcs\-frame\fR.
8484 .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
8485 .IX Item "-mtpcs-leaf-frame"
8486 Generate a stack frame that is compliant with the Thumb Procedure Call
8487 Standard for all leaf functions.  (A leaf function is one that does
8488 not call any other functions.)  The default is \fB\-mno\-apcs\-leaf\-frame\fR.
8489 .IP "\fB\-mcallee\-super\-interworking\fR" 4
8490 .IX Item "-mcallee-super-interworking"
8491 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
8492 instruction set header which switches to Thumb mode before executing the
8493 rest of the function.  This allows these functions to be called from
8494 non-interworking code.
8495 .IP "\fB\-mcaller\-super\-interworking\fR" 4
8496 .IX Item "-mcaller-super-interworking"
8497 Allows calls via function pointers (including virtual functions) to
8498 execute correctly regardless of whether the target code has been
8499 compiled for interworking or not.  There is a small overhead in the cost
8500 of executing a function pointer if this option is enabled.
8501 .IP "\fB\-mtp=\fR\fIname\fR" 4
8502 .IX Item "-mtp=name"
8503 Specify the access model for the thread local storage pointer.  The valid
8504 models are \fBsoft\fR, which generates calls to \f(CW\*(C`_\|_aeabi_read_tp\*(C'\fR,
8505 \&\fBcp15\fR, which fetches the thread pointer from \f(CW\*(C`cp15\*(C'\fR directly
8506 (supported in the arm6k architecture), and \fBauto\fR, which uses the
8507 best available method for the selected processor.  The default setting is
8508 \&\fBauto\fR.
8509 .IP "\fB\-mword\-relocations\fR" 4
8510 .IX Item "-mword-relocations"
8511 Only generate absolute relocations on word sized values (i.e. R_ARM_ABS32).
8512 This is enabled by default on targets (uClinux, SymbianOS) where the runtime
8513 loader imposes this restriction, and when \fB\-fpic\fR or \fB\-fPIC\fR
8514 is specified.
8515 .PP
8516 \fI\s-1AVR\s0 Options\fR
8517 .IX Subsection "AVR Options"
8518 .PP
8519 These options are defined for \s-1AVR\s0 implementations:
8520 .IP "\fB\-mmcu=\fR\fImcu\fR" 4
8521 .IX Item "-mmcu=mcu"
8522 Specify \s-1ATMEL\s0 \s-1AVR\s0 instruction set or \s-1MCU\s0 type.
8523 .Sp
8524 Instruction set avr1 is for the minimal \s-1AVR\s0 core, not supported by the C
8525 compiler, only for assembler programs (\s-1MCU\s0 types: at90s1200, attiny10,
8526 attiny11, attiny12, attiny15, attiny28).
8527 .Sp
8528 Instruction set avr2 (default) is for the classic \s-1AVR\s0 core with up to
8529 8K program memory space (\s-1MCU\s0 types: at90s2313, at90s2323, attiny22,
8530 at90s2333, at90s2343, at90s4414, at90s4433, at90s4434, at90s8515,
8531 at90c8534, at90s8535).
8532 .Sp
8533 Instruction set avr3 is for the classic \s-1AVR\s0 core with up to 128K program
8534 memory space (\s-1MCU\s0 types: atmega103, atmega603, at43usb320, at76c711).
8535 .Sp
8536 Instruction set avr4 is for the enhanced \s-1AVR\s0 core with up to 8K program
8537 memory space (\s-1MCU\s0 types: atmega8, atmega83, atmega85).
8538 .Sp
8539 Instruction set avr5 is for the enhanced \s-1AVR\s0 core with up to 128K program
8540 memory space (\s-1MCU\s0 types: atmega16, atmega161, atmega163, atmega32, atmega323,
8541 atmega64, atmega128, at43usb355, at94k).
8542 .IP "\fB\-msize\fR" 4
8543 .IX Item "-msize"
8544 Output instruction sizes to the asm file.
8545 .IP "\fB\-minit\-stack=\fR\fIN\fR" 4
8546 .IX Item "-minit-stack=N"
8547 Specify the initial stack address, which may be a symbol or numeric value,
8548 \&\fB_\|_stack\fR is the default.
8549 .IP "\fB\-mno\-interrupts\fR" 4
8550 .IX Item "-mno-interrupts"
8551 Generated code is not compatible with hardware interrupts.
8552 Code size will be smaller.
8553 .IP "\fB\-mcall\-prologues\fR" 4
8554 .IX Item "-mcall-prologues"
8555 Functions prologues/epilogues expanded as call to appropriate
8556 subroutines.  Code size will be smaller.
8557 .IP "\fB\-mno\-tablejump\fR" 4
8558 .IX Item "-mno-tablejump"
8559 Do not generate tablejump insns which sometimes increase code size.
8560 The option is now deprecated in favor of the equivalent 
8561 \&\fB\-fno\-jump\-tables\fR
8562 .IP "\fB\-mtiny\-stack\fR" 4
8563 .IX Item "-mtiny-stack"
8564 Change only the low 8 bits of the stack pointer.
8565 .IP "\fB\-mint8\fR" 4
8566 .IX Item "-mint8"
8567 Assume int to be 8 bit integer.  This affects the sizes of all types: A
8568 char will be 1 byte, an int will be 1 byte, an long will be 2 bytes
8569 and long long will be 4 bytes.  Please note that this option does not
8570 comply to the C standards, but it will provide you with smaller code
8571 size.
8572 .PP
8573 \fIBlackfin Options\fR
8574 .IX Subsection "Blackfin Options"
8575 .IP "\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR]" 4
8576 .IX Item "-mcpu=cpu[-sirevision]"
8577 Specifies the name of the target Blackfin processor.  Currently, \fIcpu\fR
8578 can be one of \fBbf512\fR, \fBbf514\fR, \fBbf516\fR, \fBbf518\fR,
8579 \&\fBbf522\fR, \fBbf523\fR, \fBbf524\fR, \fBbf525\fR, \fBbf526\fR,
8580 \&\fBbf527\fR, \fBbf531\fR, \fBbf532\fR, \fBbf533\fR,
8581 \&\fBbf534\fR, \fBbf536\fR, \fBbf537\fR, \fBbf538\fR, \fBbf539\fR,
8582 \&\fBbf542\fR, \fBbf544\fR, \fBbf547\fR, \fBbf548\fR, \fBbf549\fR,
8583 \&\fBbf561\fR.
8584 The optional \fIsirevision\fR specifies the silicon revision of the target
8585 Blackfin processor.  Any workarounds available for the targeted silicon revision
8586 will be enabled.  If \fIsirevision\fR is \fBnone\fR, no workarounds are enabled.
8587 If \fIsirevision\fR is \fBany\fR, all workarounds for the targeted processor
8588 will be enabled.  The \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR macro is defined to two
8589 hexadecimal digits representing the major and minor numbers in the silicon
8590 revision.  If \fIsirevision\fR is \fBnone\fR, the \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR
8591 is not defined.  If \fIsirevision\fR is \fBany\fR, the
8592 \&\f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR is defined to be \f(CW0xffff\fR.
8593 If this optional \fIsirevision\fR is not used, \s-1GCC\s0 assumes the latest known
8594 silicon revision of the targeted Blackfin processor.
8595 .Sp
8596 Support for \fBbf561\fR is incomplete.  For \fBbf561\fR,
8597 Only the processor macro is defined.
8598 Without this option, \fBbf532\fR is used as the processor by default.
8599 The corresponding predefined processor macros for \fIcpu\fR is to
8600 be defined.  And for \fBbfin-elf\fR toolchain, this causes the hardware \s-1BSP\s0
8601 provided by libgloss to be linked in if \fB\-msim\fR is not given.
8602 .IP "\fB\-msim\fR" 4
8603 .IX Item "-msim"
8604 Specifies that the program will be run on the simulator.  This causes
8605 the simulator \s-1BSP\s0 provided by libgloss to be linked in.  This option
8606 has effect only for \fBbfin-elf\fR toolchain.
8607 Certain other options, such as \fB\-mid\-shared\-library\fR and
8608 \&\fB\-mfdpic\fR, imply \fB\-msim\fR.
8609 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
8610 .IX Item "-momit-leaf-frame-pointer"
8611 Don't keep the frame pointer in a register for leaf functions.  This
8612 avoids the instructions to save, set up and restore frame pointers and
8613 makes an extra register available in leaf functions.  The option
8614 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions
8615 which might make debugging harder.
8616 .IP "\fB\-mspecld\-anomaly\fR" 4
8617 .IX Item "-mspecld-anomaly"
8618 When enabled, the compiler will ensure that the generated code does not
8619 contain speculative loads after jump instructions. If this option is used,
8620 \&\f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_LOADS\*(C'\fR is defined.
8621 .IP "\fB\-mno\-specld\-anomaly\fR" 4
8622 .IX Item "-mno-specld-anomaly"
8623 Don't generate extra code to prevent speculative loads from occurring.
8624 .IP "\fB\-mcsync\-anomaly\fR" 4
8625 .IX Item "-mcsync-anomaly"
8626 When enabled, the compiler will ensure that the generated code does not
8627 contain \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions too soon after conditional branches.
8628 If this option is used, \f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_SYNCS\*(C'\fR is defined.
8629 .IP "\fB\-mno\-csync\-anomaly\fR" 4
8630 .IX Item "-mno-csync-anomaly"
8631 Don't generate extra code to prevent \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions from
8632 occurring too soon after a conditional branch.
8633 .IP "\fB\-mlow\-64k\fR" 4
8634 .IX Item "-mlow-64k"
8635 When enabled, the compiler is free to take advantage of the knowledge that
8636 the entire program fits into the low 64k of memory.
8637 .IP "\fB\-mno\-low\-64k\fR" 4
8638 .IX Item "-mno-low-64k"
8639 Assume that the program is arbitrarily large.  This is the default.
8640 .IP "\fB\-mstack\-check\-l1\fR" 4
8641 .IX Item "-mstack-check-l1"
8642 Do stack checking using information placed into L1 scratchpad memory by the
8643 uClinux kernel.
8644 .IP "\fB\-mid\-shared\-library\fR" 4
8645 .IX Item "-mid-shared-library"
8646 Generate code that supports shared libraries via the library \s-1ID\s0 method.
8647 This allows for execute in place and shared libraries in an environment
8648 without virtual memory management.  This option implies \fB\-fPIC\fR.
8649 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
8650 .IP "\fB\-mno\-id\-shared\-library\fR" 4
8651 .IX Item "-mno-id-shared-library"
8652 Generate code that doesn't assume \s-1ID\s0 based shared libraries are being used.
8653 This is the default.
8654 .IP "\fB\-mleaf\-id\-shared\-library\fR" 4
8655 .IX Item "-mleaf-id-shared-library"
8656 Generate code that supports shared libraries via the library \s-1ID\s0 method,
8657 but assumes that this library or executable won't link against any other
8658 \&\s-1ID\s0 shared libraries.  That allows the compiler to use faster code for jumps
8659 and calls.
8660 .IP "\fB\-mno\-leaf\-id\-shared\-library\fR" 4
8661 .IX Item "-mno-leaf-id-shared-library"
8662 Do not assume that the code being compiled won't link against any \s-1ID\s0 shared
8663 libraries.  Slower code will be generated for jump and call insns.
8664 .IP "\fB\-mshared\-library\-id=n\fR" 4
8665 .IX Item "-mshared-library-id=n"
8666 Specified the identification number of the \s-1ID\s0 based shared library being
8667 compiled.  Specifying a value of 0 will generate more compact code, specifying
8668 other values will force the allocation of that number to the current
8669 library but is no more space or time efficient than omitting this option.
8670 .IP "\fB\-msep\-data\fR" 4
8671 .IX Item "-msep-data"
8672 Generate code that allows the data segment to be located in a different
8673 area of memory from the text segment.  This allows for execute in place in
8674 an environment without virtual memory management by eliminating relocations
8675 against the text section.
8676 .IP "\fB\-mno\-sep\-data\fR" 4
8677 .IX Item "-mno-sep-data"
8678 Generate code that assumes that the data segment follows the text segment.
8679 This is the default.
8680 .IP "\fB\-mlong\-calls\fR" 4
8681 .IX Item "-mlong-calls"
8682 .PD 0
8683 .IP "\fB\-mno\-long\-calls\fR" 4
8684 .IX Item "-mno-long-calls"
8685 .PD
8686 Tells the compiler to perform function calls by first loading the
8687 address of the function into a register and then performing a subroutine
8688 call on this register.  This switch is needed if the target function
8689 will lie outside of the 24 bit addressing range of the offset based
8690 version of subroutine call instruction.
8691 .Sp
8692 This feature is not enabled by default.  Specifying
8693 \&\fB\-mno\-long\-calls\fR will restore the default behavior.  Note these
8694 switches have no effect on how the compiler generates code to handle
8695 function calls via function pointers.
8696 .IP "\fB\-mfast\-fp\fR" 4
8697 .IX Item "-mfast-fp"
8698 Link with the fast floating-point library. This library relaxes some of
8699 the \s-1IEEE\s0 floating-point standard's rules for checking inputs against
8700 Not-a-Number (\s-1NAN\s0), in the interest of performance.
8701 .IP "\fB\-minline\-plt\fR" 4
8702 .IX Item "-minline-plt"
8703 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
8704 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
8705 .IP "\fB\-mmulticore\fR" 4
8706 .IX Item "-mmulticore"
8707 Build standalone application for multicore Blackfin processor. Proper
8708 start files and link scripts will be used to support multicore.
8709 This option defines \f(CW\*(C`_\|_BFIN_MULTICORE\*(C'\fR. It can only be used with
8710 \&\fB\-mcpu=bf561\fR[\fB\-\fR\fIsirevision\fR]. It can be used with
8711 \&\fB\-mcorea\fR or \fB\-mcoreb\fR. If it's used without
8712 \&\fB\-mcorea\fR or \fB\-mcoreb\fR, single application/dual core
8713 programming model is used. In this model, the main function of Core B
8714 should be named as coreb_main. If it's used with \fB\-mcorea\fR or
8715 \&\fB\-mcoreb\fR, one application per core programming model is used.
8716 If this option is not used, single core application programming
8717 model is used.
8718 .IP "\fB\-mcorea\fR" 4
8719 .IX Item "-mcorea"
8720 Build standalone application for Core A of \s-1BF561\s0 when using
8721 one application per core programming model. Proper start files
8722 and link scripts will be used to support Core A. This option
8723 defines \f(CW\*(C`_\|_BFIN_COREA\*(C'\fR. It must be used with \fB\-mmulticore\fR.
8724 .IP "\fB\-mcoreb\fR" 4
8725 .IX Item "-mcoreb"
8726 Build standalone application for Core B of \s-1BF561\s0 when using
8727 one application per core programming model. Proper start files
8728 and link scripts will be used to support Core B. This option
8729 defines \f(CW\*(C`_\|_BFIN_COREB\*(C'\fR. When this option is used, coreb_main
8730 should be used instead of main. It must be used with
8731 \&\fB\-mmulticore\fR.
8732 .IP "\fB\-msdram\fR" 4
8733 .IX Item "-msdram"
8734 Build standalone application for \s-1SDRAM\s0. Proper start files and
8735 link scripts will be used to put the application into \s-1SDRAM\s0.
8736 Loader should initialize \s-1SDRAM\s0 before loading the application
8737 into \s-1SDRAM\s0. This option defines \f(CW\*(C`_\|_BFIN_SDRAM\*(C'\fR.
8738 .IP "\fB\-micplb\fR" 4
8739 .IX Item "-micplb"
8740 Assume that ICPLBs are enabled at runtime.  This has an effect on certain
8741 anomaly workarounds.  For Linux targets, the default is to assume ICPLBs
8742 are enabled; for standalone applications the default is off.
8743 .PP
8744 \fI\s-1CRIS\s0 Options\fR
8745 .IX Subsection "CRIS Options"
8746 .PP
8747 These options are defined specifically for the \s-1CRIS\s0 ports.
8748 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
8749 .IX Item "-march=architecture-type"
8750 .PD 0
8751 .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
8752 .IX Item "-mcpu=architecture-type"
8753 .PD
8754 Generate code for the specified architecture.  The choices for
8755 \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
8756 respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX\s0.
8757 Default is \fBv0\fR except for cris-axis-linux-gnu, where the default is
8758 \&\fBv10\fR.
8759 .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
8760 .IX Item "-mtune=architecture-type"
8761 Tune to \fIarchitecture-type\fR everything applicable about the generated
8762 code, except for the \s-1ABI\s0 and the set of available instructions.  The
8763 choices for \fIarchitecture-type\fR are the same as for
8764 \&\fB\-march=\fR\fIarchitecture-type\fR.
8765 .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
8766 .IX Item "-mmax-stack-frame=n"
8767 Warn when the stack frame of a function exceeds \fIn\fR bytes.
8768 .IP "\fB\-metrax4\fR" 4
8769 .IX Item "-metrax4"
8770 .PD 0
8771 .IP "\fB\-metrax100\fR" 4
8772 .IX Item "-metrax100"
8773 .PD
8774 The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
8775 \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
8776 .IP "\fB\-mmul\-bug\-workaround\fR" 4
8777 .IX Item "-mmul-bug-workaround"
8778 .PD 0
8779 .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
8780 .IX Item "-mno-mul-bug-workaround"
8781 .PD
8782 Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
8783 models where it applies.  This option is active by default.
8784 .IP "\fB\-mpdebug\fR" 4
8785 .IX Item "-mpdebug"
8786 Enable CRIS-specific verbose debug-related information in the assembly
8787 code.  This option also has the effect to turn off the \fB#NO_APP\fR
8788 formatted-code indicator to the assembler at the beginning of the
8789 assembly file.
8790 .IP "\fB\-mcc\-init\fR" 4
8791 .IX Item "-mcc-init"
8792 Do not use condition-code results from previous instruction; always emit
8793 compare and test instructions before use of condition codes.
8794 .IP "\fB\-mno\-side\-effects\fR" 4
8795 .IX Item "-mno-side-effects"
8796 Do not emit instructions with side-effects in addressing modes other than
8797 post-increment.
8798 .IP "\fB\-mstack\-align\fR" 4
8799 .IX Item "-mstack-align"
8800 .PD 0
8801 .IP "\fB\-mno\-stack\-align\fR" 4
8802 .IX Item "-mno-stack-align"
8803 .IP "\fB\-mdata\-align\fR" 4
8804 .IX Item "-mdata-align"
8805 .IP "\fB\-mno\-data\-align\fR" 4
8806 .IX Item "-mno-data-align"
8807 .IP "\fB\-mconst\-align\fR" 4
8808 .IX Item "-mconst-align"
8809 .IP "\fB\-mno\-const\-align\fR" 4
8810 .IX Item "-mno-const-align"
8811 .PD
8812 These options (no-options) arranges (eliminate arrangements) for the
8813 stack-frame, individual data and constants to be aligned for the maximum
8814 single data access size for the chosen \s-1CPU\s0 model.  The default is to
8815 arrange for 32\-bit alignment.  \s-1ABI\s0 details such as structure layout are
8816 not affected by these options.
8817 .IP "\fB\-m32\-bit\fR" 4
8818 .IX Item "-m32-bit"
8819 .PD 0
8820 .IP "\fB\-m16\-bit\fR" 4
8821 .IX Item "-m16-bit"
8822 .IP "\fB\-m8\-bit\fR" 4
8823 .IX Item "-m8-bit"
8824 .PD
8825 Similar to the stack\- data\- and const-align options above, these options
8826 arrange for stack-frame, writable data and constants to all be 32\-bit,
8827 16\-bit or 8\-bit aligned.  The default is 32\-bit alignment.
8828 .IP "\fB\-mno\-prologue\-epilogue\fR" 4
8829 .IX Item "-mno-prologue-epilogue"
8830 .PD 0
8831 .IP "\fB\-mprologue\-epilogue\fR" 4
8832 .IX Item "-mprologue-epilogue"
8833 .PD
8834 With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
8835 epilogue that sets up the stack-frame are omitted and no return
8836 instructions or return sequences are generated in the code.  Use this
8837 option only together with visual inspection of the compiled code: no
8838 warnings or errors are generated when call-saved registers must be saved,
8839 or storage for local variable needs to be allocated.
8840 .IP "\fB\-mno\-gotplt\fR" 4
8841 .IX Item "-mno-gotplt"
8842 .PD 0
8843 .IP "\fB\-mgotplt\fR" 4
8844 .IX Item "-mgotplt"
8845 .PD
8846 With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
8847 instruction sequences that load addresses for functions from the \s-1PLT\s0 part
8848 of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
8849 \&\s-1PLT\s0.  The default is \fB\-mgotplt\fR.
8850 .IP "\fB\-melf\fR" 4
8851 .IX Item "-melf"
8852 Legacy no-op option only recognized with the cris-axis-elf and
8853 cris-axis-linux-gnu targets.
8854 .IP "\fB\-mlinux\fR" 4
8855 .IX Item "-mlinux"
8856 Legacy no-op option only recognized with the cris-axis-linux-gnu target.
8857 .IP "\fB\-sim\fR" 4
8858 .IX Item "-sim"
8859 This option, recognized for the cris-axis-elf arranges
8860 to link with input-output functions from a simulator library.  Code,
8861 initialized data and zero-initialized data are allocated consecutively.
8862 .IP "\fB\-sim2\fR" 4
8863 .IX Item "-sim2"
8864 Like \fB\-sim\fR, but pass linker options to locate initialized data at
8865 0x40000000 and zero-initialized data at 0x80000000.
8866 .PP
8867 \fI\s-1CRX\s0 Options\fR
8868 .IX Subsection "CRX Options"
8869 .PP
8870 These options are defined specifically for the \s-1CRX\s0 ports.
8871 .IP "\fB\-mmac\fR" 4
8872 .IX Item "-mmac"
8873 Enable the use of multiply-accumulate instructions. Disabled by default.
8874 .IP "\fB\-mpush\-args\fR" 4
8875 .IX Item "-mpush-args"
8876 Push instructions will be used to pass outgoing arguments when functions
8877 are called. Enabled by default.
8878 .PP
8879 \fIDarwin Options\fR
8880 .IX Subsection "Darwin Options"
8881 .PP
8882 These options are defined for all architectures running the Darwin operating
8883 system.
8884 .PP
8885 \&\s-1FSF\s0 \s-1GCC\s0 on Darwin does not create \*(L"fat\*(R" object files; it will create
8886 an object file for the single architecture that it was built to
8887 target.  Apple's \s-1GCC\s0 on Darwin does create \*(L"fat\*(R" files if multiple
8888 \&\fB\-arch\fR options are used; it does so by running the compiler or
8889 linker multiple times and joining the results together with
8890 \&\fIlipo\fR.
8891 .PP
8892 The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
8893 \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
8894 that \s-1GCC\s0 is targetting, like \fB\-mcpu\fR or \fB\-march\fR.  The
8895 \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
8896 .PP
8897 The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
8898 mismatch.  The assembler, \fIas\fR, will only permit instructions to
8899 be used that are valid for the subtype of the file it is generating,
8900 so you cannot put 64\-bit instructions in an \fBppc750\fR object file.
8901 The linker for shared libraries, \fI/usr/bin/libtool\fR, will fail
8902 and print an error if asked to create a shared library with a less
8903 restrictive subtype than its input files (for instance, trying to put
8904 a \fBppc970\fR object file in a \fBppc7400\fR library).  The linker
8905 for executables, \fIld\fR, will quietly give the executable the most
8906 restrictive subtype of any of its input files.
8907 .IP "\fB\-F\fR\fIdir\fR" 4
8908 .IX Item "-Fdir"
8909 Add the framework directory \fIdir\fR to the head of the list of
8910 directories to be searched for header files.  These directories are
8911 interleaved with those specified by \fB\-I\fR options and are
8912 scanned in a left-to-right order.
8913 .Sp
8914 A framework directory is a directory with frameworks in it.  A
8915 framework is a directory with a \fB\*(L"Headers\*(R"\fR and/or
8916 \&\fB\*(L"PrivateHeaders\*(R"\fR directory contained directly in it that ends
8917 in \fB\*(L".framework\*(R"\fR.  The name of a framework is the name of this
8918 directory excluding the \fB\*(L".framework\*(R"\fR.  Headers associated with
8919 the framework are found in one of those two directories, with
8920 \&\fB\*(L"Headers\*(R"\fR being searched first.  A subframework is a framework
8921 directory that is in a framework's \fB\*(L"Frameworks\*(R"\fR directory.
8922 Includes of subframework headers can only appear in a header of a
8923 framework that contains the subframework, or in a sibling subframework
8924 header.  Two subframeworks are siblings if they occur in the same
8925 framework.  A subframework should not have the same name as a
8926 framework, a warning will be issued if this is violated.  Currently a
8927 subframework cannot have subframeworks, in the future, the mechanism
8928 may be extended to support this.  The standard frameworks can be found
8929 in \fB\*(L"/System/Library/Frameworks\*(R"\fR and
8930 \&\fB\*(L"/Library/Frameworks\*(R"\fR.  An example include looks like
8931 \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fBFramework\fR denotes
8932 the name of the framework and header.h is found in the
8933 \&\fB\*(L"PrivateHeaders\*(R"\fR or \fB\*(L"Headers\*(R"\fR directory.
8934 .IP "\fB\-iframework\fR\fIdir\fR" 4
8935 .IX Item "-iframeworkdir"
8936 Like \fB\-F\fR except the directory is a treated as a system
8937 directory.  The main difference between this \fB\-iframework\fR and
8938 \&\fB\-F\fR is that with \fB\-iframework\fR the compiler does not
8939 warn about constructs contained within header files found via
8940 \&\fIdir\fR.  This option is valid only for the C family of languages.
8941 .IP "\fB\-gused\fR" 4
8942 .IX Item "-gused"
8943 Emit debugging information for symbols that are used.  For \s-1STABS\s0
8944 debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
8945 This is by default \s-1ON\s0.
8946 .IP "\fB\-gfull\fR" 4
8947 .IX Item "-gfull"
8948 Emit debugging information for all symbols and types.
8949 .IP "\fB\-mmacosx\-version\-min=\fR\fIversion\fR" 4
8950 .IX Item "-mmacosx-version-min=version"
8951 The earliest version of MacOS X that this executable will run on
8952 is \fIversion\fR.  Typical values of \fIversion\fR include \f(CW10.1\fR,
8953 \&\f(CW10.2\fR, and \f(CW10.3.9\fR.
8954 .Sp
8955 If the compiler was built to use the system's headers by default,
8956 then the default for this option is the system version on which the
8957 compiler is running, otherwise the default is to make choices which
8958 are compatible with as many systems and code bases as possible.
8959 .IP "\fB\-mkernel\fR" 4
8960 .IX Item "-mkernel"
8961 Enable kernel development mode.  The \fB\-mkernel\fR option sets
8962 \&\fB\-static\fR, \fB\-fno\-common\fR, \fB\-fno\-cxa\-atexit\fR,
8963 \&\fB\-fno\-exceptions\fR, \fB\-fno\-non\-call\-exceptions\fR,
8964 \&\fB\-fapple\-kext\fR, \fB\-fno\-weak\fR and \fB\-fno\-rtti\fR where
8965 applicable.  This mode also sets \fB\-mno\-altivec\fR,
8966 \&\fB\-msoft\-float\fR, \fB\-fno\-builtin\fR and
8967 \&\fB\-mlong\-branch\fR for PowerPC targets.
8968 .IP "\fB\-mone\-byte\-bool\fR" 4
8969 .IX Item "-mone-byte-bool"
8970 Override the defaults for \fBbool\fR so that \fBsizeof(bool)==1\fR.
8971 By default \fBsizeof(bool)\fR is \fB4\fR when compiling for
8972 Darwin/PowerPC and \fB1\fR when compiling for Darwin/x86, so this
8973 option has no effect on x86.
8974 .Sp
8975 \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
8976 to generate code that is not binary compatible with code generated
8977 without that switch.  Using this switch may require recompiling all
8978 other modules in a program, including system libraries.  Use this
8979 switch to conform to a non-default data model.
8980 .IP "\fB\-mfix\-and\-continue\fR" 4
8981 .IX Item "-mfix-and-continue"
8982 .PD 0
8983 .IP "\fB\-ffix\-and\-continue\fR" 4
8984 .IX Item "-ffix-and-continue"
8985 .IP "\fB\-findirect\-data\fR" 4
8986 .IX Item "-findirect-data"
8987 .PD
8988 Generate code suitable for fast turn around development.  Needed to
8989 enable gdb to dynamically load \f(CW\*(C`.o\*(C'\fR files into already running
8990 programs.  \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
8991 are provided for backwards compatibility.
8992 .IP "\fB\-all_load\fR" 4
8993 .IX Item "-all_load"
8994 Loads all members of static archive libraries.
8995 See man \fIld\fR\|(1) for more information.
8996 .IP "\fB\-arch_errors_fatal\fR" 4
8997 .IX Item "-arch_errors_fatal"
8998 Cause the errors having to do with files that have the wrong architecture
8999 to be fatal.
9000 .IP "\fB\-bind_at_load\fR" 4
9001 .IX Item "-bind_at_load"
9002 Causes the output file to be marked such that the dynamic linker will
9003 bind all undefined references when the file is loaded or launched.
9004 .IP "\fB\-bundle\fR" 4
9005 .IX Item "-bundle"
9006 Produce a Mach-o bundle format file.
9007 See man \fIld\fR\|(1) for more information.
9008 .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
9009 .IX Item "-bundle_loader executable"
9010 This option specifies the \fIexecutable\fR that will be loading the build
9011 output file being linked.  See man \fIld\fR\|(1) for more information.
9012 .IP "\fB\-dynamiclib\fR" 4
9013 .IX Item "-dynamiclib"
9014 When passed this option, \s-1GCC\s0 will produce a dynamic library instead of
9015 an executable when linking, using the Darwin \fIlibtool\fR command.
9016 .IP "\fB\-force_cpusubtype_ALL\fR" 4
9017 .IX Item "-force_cpusubtype_ALL"
9018 This causes \s-1GCC\s0's output file to have the \fI\s-1ALL\s0\fR subtype, instead of
9019 one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
9020 .IP "\fB\-allowable_client\fR  \fIclient_name\fR" 4
9021 .IX Item "-allowable_client  client_name"
9022 .PD 0
9023 .IP "\fB\-client_name\fR" 4
9024 .IX Item "-client_name"
9025 .IP "\fB\-compatibility_version\fR" 4
9026 .IX Item "-compatibility_version"
9027 .IP "\fB\-current_version\fR" 4
9028 .IX Item "-current_version"
9029 .IP "\fB\-dead_strip\fR" 4
9030 .IX Item "-dead_strip"
9031 .IP "\fB\-dependency\-file\fR" 4
9032 .IX Item "-dependency-file"
9033 .IP "\fB\-dylib_file\fR" 4
9034 .IX Item "-dylib_file"
9035 .IP "\fB\-dylinker_install_name\fR" 4
9036 .IX Item "-dylinker_install_name"
9037 .IP "\fB\-dynamic\fR" 4
9038 .IX Item "-dynamic"
9039 .IP "\fB\-exported_symbols_list\fR" 4
9040 .IX Item "-exported_symbols_list"
9041 .IP "\fB\-filelist\fR" 4
9042 .IX Item "-filelist"
9043 .IP "\fB\-flat_namespace\fR" 4
9044 .IX Item "-flat_namespace"
9045 .IP "\fB\-force_flat_namespace\fR" 4
9046 .IX Item "-force_flat_namespace"
9047 .IP "\fB\-headerpad_max_install_names\fR" 4
9048 .IX Item "-headerpad_max_install_names"
9049 .IP "\fB\-image_base\fR" 4
9050 .IX Item "-image_base"
9051 .IP "\fB\-init\fR" 4
9052 .IX Item "-init"
9053 .IP "\fB\-install_name\fR" 4
9054 .IX Item "-install_name"
9055 .IP "\fB\-keep_private_externs\fR" 4
9056 .IX Item "-keep_private_externs"
9057 .IP "\fB\-multi_module\fR" 4
9058 .IX Item "-multi_module"
9059 .IP "\fB\-multiply_defined\fR" 4
9060 .IX Item "-multiply_defined"
9061 .IP "\fB\-multiply_defined_unused\fR" 4
9062 .IX Item "-multiply_defined_unused"
9063 .IP "\fB\-noall_load\fR" 4
9064 .IX Item "-noall_load"
9065 .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
9066 .IX Item "-no_dead_strip_inits_and_terms"
9067 .IP "\fB\-nofixprebinding\fR" 4
9068 .IX Item "-nofixprebinding"
9069 .IP "\fB\-nomultidefs\fR" 4
9070 .IX Item "-nomultidefs"
9071 .IP "\fB\-noprebind\fR" 4
9072 .IX Item "-noprebind"
9073 .IP "\fB\-noseglinkedit\fR" 4
9074 .IX Item "-noseglinkedit"
9075 .IP "\fB\-pagezero_size\fR" 4
9076 .IX Item "-pagezero_size"
9077 .IP "\fB\-prebind\fR" 4
9078 .IX Item "-prebind"
9079 .IP "\fB\-prebind_all_twolevel_modules\fR" 4
9080 .IX Item "-prebind_all_twolevel_modules"
9081 .IP "\fB\-private_bundle\fR" 4
9082 .IX Item "-private_bundle"
9083 .IP "\fB\-read_only_relocs\fR" 4
9084 .IX Item "-read_only_relocs"
9085 .IP "\fB\-sectalign\fR" 4
9086 .IX Item "-sectalign"
9087 .IP "\fB\-sectobjectsymbols\fR" 4
9088 .IX Item "-sectobjectsymbols"
9089 .IP "\fB\-whyload\fR" 4
9090 .IX Item "-whyload"
9091 .IP "\fB\-seg1addr\fR" 4
9092 .IX Item "-seg1addr"
9093 .IP "\fB\-sectcreate\fR" 4
9094 .IX Item "-sectcreate"
9095 .IP "\fB\-sectobjectsymbols\fR" 4
9096 .IX Item "-sectobjectsymbols"
9097 .IP "\fB\-sectorder\fR" 4
9098 .IX Item "-sectorder"
9099 .IP "\fB\-segaddr\fR" 4
9100 .IX Item "-segaddr"
9101 .IP "\fB\-segs_read_only_addr\fR" 4
9102 .IX Item "-segs_read_only_addr"
9103 .IP "\fB\-segs_read_write_addr\fR" 4
9104 .IX Item "-segs_read_write_addr"
9105 .IP "\fB\-seg_addr_table\fR" 4
9106 .IX Item "-seg_addr_table"
9107 .IP "\fB\-seg_addr_table_filename\fR" 4
9108 .IX Item "-seg_addr_table_filename"
9109 .IP "\fB\-seglinkedit\fR" 4
9110 .IX Item "-seglinkedit"
9111 .IP "\fB\-segprot\fR" 4
9112 .IX Item "-segprot"
9113 .IP "\fB\-segs_read_only_addr\fR" 4
9114 .IX Item "-segs_read_only_addr"
9115 .IP "\fB\-segs_read_write_addr\fR" 4
9116 .IX Item "-segs_read_write_addr"
9117 .IP "\fB\-single_module\fR" 4
9118 .IX Item "-single_module"
9119 .IP "\fB\-static\fR" 4
9120 .IX Item "-static"
9121 .IP "\fB\-sub_library\fR" 4
9122 .IX Item "-sub_library"
9123 .IP "\fB\-sub_umbrella\fR" 4
9124 .IX Item "-sub_umbrella"
9125 .IP "\fB\-twolevel_namespace\fR" 4
9126 .IX Item "-twolevel_namespace"
9127 .IP "\fB\-umbrella\fR" 4
9128 .IX Item "-umbrella"
9129 .IP "\fB\-undefined\fR" 4
9130 .IX Item "-undefined"
9131 .IP "\fB\-unexported_symbols_list\fR" 4
9132 .IX Item "-unexported_symbols_list"
9133 .IP "\fB\-weak_reference_mismatches\fR" 4
9134 .IX Item "-weak_reference_mismatches"
9135 .IP "\fB\-whatsloaded\fR" 4
9136 .IX Item "-whatsloaded"
9137 .PD
9138 These options are passed to the Darwin linker.  The Darwin linker man page
9139 describes them in detail.
9140 .PP
9141 \fI\s-1DEC\s0 Alpha Options\fR
9142 .IX Subsection "DEC Alpha Options"
9143 .PP
9144 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
9145 .IP "\fB\-mno\-soft\-float\fR" 4
9146 .IX Item "-mno-soft-float"
9147 .PD 0
9148 .IP "\fB\-msoft\-float\fR" 4
9149 .IX Item "-msoft-float"
9150 .PD
9151 Use (do not use) the hardware floating-point instructions for
9152 floating-point operations.  When \fB\-msoft\-float\fR is specified,
9153 functions in \fIlibgcc.a\fR will be used to perform floating-point
9154 operations.  Unless they are replaced by routines that emulate the
9155 floating-point operations, or compiled in such a way as to call such
9156 emulations routines, these routines will issue floating-point
9157 operations.   If you are compiling for an Alpha without floating-point
9158 operations, you must ensure that the library is built so as not to call
9159 them.
9160 .Sp
9161 Note that Alpha implementations without floating-point operations are
9162 required to have floating-point registers.
9163 .IP "\fB\-mfp\-reg\fR" 4
9164 .IX Item "-mfp-reg"
9165 .PD 0
9166 .IP "\fB\-mno\-fp\-regs\fR" 4
9167 .IX Item "-mno-fp-regs"
9168 .PD
9169 Generate code that uses (does not use) the floating-point register set.
9170 \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR.  If the floating-point
9171 register set is not used, floating point operands are passed in integer
9172 registers as if they were integers and floating-point results are passed
9173 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence,
9174 so any function with a floating-point argument or return value called by code
9175 compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
9176 option.
9177 .Sp
9178 A typical use of this option is building a kernel that does not use,
9179 and hence need not save and restore, any floating-point registers.
9180 .IP "\fB\-mieee\fR" 4
9181 .IX Item "-mieee"
9182 The Alpha architecture implements floating-point hardware optimized for
9183 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating
9184 point standard.  However, for full compliance, software assistance is
9185 required.  This option generates code fully \s-1IEEE\s0 compliant code
9186 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
9187 If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
9188 defined during compilation.  The resulting code is less efficient but is
9189 able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
9190 values such as not-a-number and plus/minus infinity.  Other Alpha
9191 compilers call this option \fB\-ieee_with_no_inexact\fR.
9192 .IP "\fB\-mieee\-with\-inexact\fR" 4
9193 .IX Item "-mieee-with-inexact"
9194 This is like \fB\-mieee\fR except the generated code also maintains
9195 the \s-1IEEE\s0 \fIinexact-flag\fR.  Turning on this option causes the
9196 generated code to implement fully-compliant \s-1IEEE\s0 math.  In addition to
9197 \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
9198 macro.  On some Alpha implementations the resulting code may execute
9199 significantly slower than the code generated by default.  Since there is
9200 very little code that depends on the \fIinexact-flag\fR, you should
9201 normally not specify this option.  Other Alpha compilers call this
9202 option \fB\-ieee_with_inexact\fR.
9203 .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
9204 .IX Item "-mfp-trap-mode=trap-mode"
9205 This option controls what floating-point related traps are enabled.
9206 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
9207 The trap mode can be set to one of four values:
9208 .RS 4
9209 .IP "\fBn\fR" 4
9210 .IX Item "n"
9211 This is the default (normal) setting.  The only traps that are enabled
9212 are the ones that cannot be disabled in software (e.g., division by zero
9213 trap).
9214 .IP "\fBu\fR" 4
9215 .IX Item "u"
9216 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
9217 as well.
9218 .IP "\fBsu\fR" 4
9219 .IX Item "su"
9220 Like \fBu\fR, but the instructions are marked to be safe for software
9221 completion (see Alpha architecture manual for details).
9222 .IP "\fBsui\fR" 4
9223 .IX Item "sui"
9224 Like \fBsu\fR, but inexact traps are enabled as well.
9225 .RE
9226 .RS 4
9227 .RE
9228 .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
9229 .IX Item "-mfp-rounding-mode=rounding-mode"
9230 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
9231 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
9232 of:
9233 .RS 4
9234 .IP "\fBn\fR" 4
9235 .IX Item "n"
9236 Normal \s-1IEEE\s0 rounding mode.  Floating point numbers are rounded towards
9237 the nearest machine number or towards the even machine number in case
9238 of a tie.
9239 .IP "\fBm\fR" 4
9240 .IX Item "m"
9241 Round towards minus infinity.
9242 .IP "\fBc\fR" 4
9243 .IX Item "c"
9244 Chopped rounding mode.  Floating point numbers are rounded towards zero.
9245 .IP "\fBd\fR" 4
9246 .IX Item "d"
9247 Dynamic rounding mode.  A field in the floating point control register
9248 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
9249 rounding mode in effect.  The C library initializes this register for
9250 rounding towards plus infinity.  Thus, unless your program modifies the
9251 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
9252 .RE
9253 .RS 4
9254 .RE
9255 .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
9256 .IX Item "-mtrap-precision=trap-precision"
9257 In the Alpha architecture, floating point traps are imprecise.  This
9258 means without software assistance it is impossible to recover from a
9259 floating trap and program execution normally needs to be terminated.
9260 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
9261 in determining the exact location that caused a floating point trap.
9262 Depending on the requirements of an application, different levels of
9263 precisions can be selected:
9264 .RS 4
9265 .IP "\fBp\fR" 4
9266 .IX Item "p"
9267 Program precision.  This option is the default and means a trap handler
9268 can only identify which program caused a floating point exception.
9269 .IP "\fBf\fR" 4
9270 .IX Item "f"
9271 Function precision.  The trap handler can determine the function that
9272 caused a floating point exception.
9273 .IP "\fBi\fR" 4
9274 .IX Item "i"
9275 Instruction precision.  The trap handler can determine the exact
9276 instruction that caused a floating point exception.
9277 .RE
9278 .RS 4
9279 .Sp
9280 Other Alpha compilers provide the equivalent options called
9281 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
9282 .RE
9283 .IP "\fB\-mieee\-conformant\fR" 4
9284 .IX Item "-mieee-conformant"
9285 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
9286 use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
9287 \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR.  Its only effect
9288 is to emit the line \fB.eflag 48\fR in the function prologue of the
9289 generated assembly file.  Under \s-1DEC\s0 Unix, this has the effect that
9290 IEEE-conformant math library routines will be linked in.
9291 .IP "\fB\-mbuild\-constants\fR" 4
9292 .IX Item "-mbuild-constants"
9293 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
9294 see if it can construct it from smaller constants in two or three
9295 instructions.  If it cannot, it will output the constant as a literal and
9296 generate code to load it from the data segment at runtime.
9297 .Sp
9298 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
9299 using code, even if it takes more instructions (the maximum is six).
9300 .Sp
9301 You would typically use this option to build a shared library dynamic
9302 loader.  Itself a shared library, it must relocate itself in memory
9303 before it can find the variables and constants in its own data segment.
9304 .IP "\fB\-malpha\-as\fR" 4
9305 .IX Item "-malpha-as"
9306 .PD 0
9307 .IP "\fB\-mgas\fR" 4
9308 .IX Item "-mgas"
9309 .PD
9310 Select whether to generate code to be assembled by the vendor-supplied
9311 assembler (\fB\-malpha\-as\fR) or by the \s-1GNU\s0 assembler \fB\-mgas\fR.
9312 .IP "\fB\-mbwx\fR" 4
9313 .IX Item "-mbwx"
9314 .PD 0
9315 .IP "\fB\-mno\-bwx\fR" 4
9316 .IX Item "-mno-bwx"
9317 .IP "\fB\-mcix\fR" 4
9318 .IX Item "-mcix"
9319 .IP "\fB\-mno\-cix\fR" 4
9320 .IX Item "-mno-cix"
9321 .IP "\fB\-mfix\fR" 4
9322 .IX Item "-mfix"
9323 .IP "\fB\-mno\-fix\fR" 4
9324 .IX Item "-mno-fix"
9325 .IP "\fB\-mmax\fR" 4
9326 .IX Item "-mmax"
9327 .IP "\fB\-mno\-max\fR" 4
9328 .IX Item "-mno-max"
9329 .PD
9330 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX\s0,
9331 \&\s-1CIX\s0, \s-1FIX\s0 and \s-1MAX\s0 instruction sets.  The default is to use the instruction
9332 sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
9333 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none was specified.
9334 .IP "\fB\-mfloat\-vax\fR" 4
9335 .IX Item "-mfloat-vax"
9336 .PD 0
9337 .IP "\fB\-mfloat\-ieee\fR" 4
9338 .IX Item "-mfloat-ieee"
9339 .PD
9340 Generate code that uses (does not use) \s-1VAX\s0 F and G floating point
9341 arithmetic instead of \s-1IEEE\s0 single and double precision.
9342 .IP "\fB\-mexplicit\-relocs\fR" 4
9343 .IX Item "-mexplicit-relocs"
9344 .PD 0
9345 .IP "\fB\-mno\-explicit\-relocs\fR" 4
9346 .IX Item "-mno-explicit-relocs"
9347 .PD
9348 Older Alpha assemblers provided no way to generate symbol relocations
9349 except via assembler macros.  Use of these macros does not allow
9350 optimal instruction scheduling.  \s-1GNU\s0 binutils as of version 2.12
9351 supports a new syntax that allows the compiler to explicitly mark
9352 which relocations should apply to which instructions.  This option
9353 is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
9354 the assembler when it is built and sets the default accordingly.
9355 .IP "\fB\-msmall\-data\fR" 4
9356 .IX Item "-msmall-data"
9357 .PD 0
9358 .IP "\fB\-mlarge\-data\fR" 4
9359 .IX Item "-mlarge-data"
9360 .PD
9361 When \fB\-mexplicit\-relocs\fR is in effect, static data is
9362 accessed via \fIgp-relative\fR relocations.  When \fB\-msmall\-data\fR
9363 is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
9364 (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
9365 16\-bit relocations off of the \f(CW$gp\fR register.  This limits the
9366 size of the small data area to 64KB, but allows the variables to be
9367 directly accessed via a single instruction.
9368 .Sp
9369 The default is \fB\-mlarge\-data\fR.  With this option the data area
9370 is limited to just below 2GB.  Programs that require more than 2GB of
9371 data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
9372 heap instead of in the program's data segment.
9373 .Sp
9374 When generating code for shared libraries, \fB\-fpic\fR implies
9375 \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
9376 .IP "\fB\-msmall\-text\fR" 4
9377 .IX Item "-msmall-text"
9378 .PD 0
9379 .IP "\fB\-mlarge\-text\fR" 4
9380 .IX Item "-mlarge-text"
9381 .PD
9382 When \fB\-msmall\-text\fR is used, the compiler assumes that the
9383 code of the entire program (or shared library) fits in 4MB, and is
9384 thus reachable with a branch instruction.  When \fB\-msmall\-data\fR
9385 is used, the compiler can assume that all local symbols share the
9386 same \f(CW$gp\fR value, and thus reduce the number of instructions
9387 required for a function call from 4 to 1.
9388 .Sp
9389 The default is \fB\-mlarge\-text\fR.
9390 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
9391 .IX Item "-mcpu=cpu_type"
9392 Set the instruction set and instruction scheduling parameters for
9393 machine type \fIcpu_type\fR.  You can specify either the \fB\s-1EV\s0\fR
9394 style name or the corresponding chip number.  \s-1GCC\s0 supports scheduling
9395 parameters for the \s-1EV4\s0, \s-1EV5\s0 and \s-1EV6\s0 family of processors and will
9396 choose the default values for the instruction set from the processor
9397 you specify.  If you do not specify a processor type, \s-1GCC\s0 will default
9398 to the processor on which the compiler was built.
9399 .Sp
9400 Supported values for \fIcpu_type\fR are
9401 .RS 4
9402 .IP "\fBev4\fR" 4
9403 .IX Item "ev4"
9404 .PD 0
9405 .IP "\fBev45\fR" 4
9406 .IX Item "ev45"
9407 .IP "\fB21064\fR" 4
9408 .IX Item "21064"
9409 .PD
9410 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
9411 .IP "\fBev5\fR" 4
9412 .IX Item "ev5"
9413 .PD 0
9414 .IP "\fB21164\fR" 4
9415 .IX Item "21164"
9416 .PD
9417 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
9418 .IP "\fBev56\fR" 4
9419 .IX Item "ev56"
9420 .PD 0
9421 .IP "\fB21164a\fR" 4
9422 .IX Item "21164a"
9423 .PD
9424 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
9425 .IP "\fBpca56\fR" 4
9426 .IX Item "pca56"
9427 .PD 0
9428 .IP "\fB21164pc\fR" 4
9429 .IX Item "21164pc"
9430 .IP "\fB21164PC\fR" 4
9431 .IX Item "21164PC"
9432 .PD
9433 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
9434 .IP "\fBev6\fR" 4
9435 .IX Item "ev6"
9436 .PD 0
9437 .IP "\fB21264\fR" 4
9438 .IX Item "21264"
9439 .PD
9440 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
9441 .IP "\fBev67\fR" 4
9442 .IX Item "ev67"
9443 .PD 0
9444 .IP "\fB21264a\fR" 4
9445 .IX Item "21264a"
9446 .PD
9447 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1CIX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
9448 .RE
9449 .RS 4
9450 .Sp
9451 Native Linux/GNU toolchains also support the value \fBnative\fR,
9452 which selects the best architecture option for the host processor.
9453 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
9454 the processor.
9455 .RE
9456 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
9457 .IX Item "-mtune=cpu_type"
9458 Set only the instruction scheduling parameters for machine type
9459 \&\fIcpu_type\fR.  The instruction set is not changed.
9460 .Sp
9461 Native Linux/GNU toolchains also support the value \fBnative\fR,
9462 which selects the best architecture option for the host processor.
9463 \&\fB\-mtune=native\fR has no effect if \s-1GCC\s0 does not recognize
9464 the processor.
9465 .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
9466 .IX Item "-mmemory-latency=time"
9467 Sets the latency the scheduler should assume for typical memory
9468 references as seen by the application.  This number is highly
9469 dependent on the memory access patterns used by the application
9470 and the size of the external cache on the machine.
9471 .Sp
9472 Valid options for \fItime\fR are
9473 .RS 4
9474 .IP "\fInumber\fR" 4
9475 .IX Item "number"
9476 A decimal number representing clock cycles.
9477 .IP "\fBL1\fR" 4
9478 .IX Item "L1"
9479 .PD 0
9480 .IP "\fBL2\fR" 4
9481 .IX Item "L2"
9482 .IP "\fBL3\fR" 4
9483 .IX Item "L3"
9484 .IP "\fBmain\fR" 4
9485 .IX Item "main"
9486 .PD
9487 The compiler contains estimates of the number of clock cycles for
9488 \&\*(L"typical\*(R" \s-1EV4\s0 & \s-1EV5\s0 hardware for the Level 1, 2 & 3 caches
9489 (also called Dcache, Scache, and Bcache), as well as to main memory.
9490 Note that L3 is only valid for \s-1EV5\s0.
9491 .RE
9492 .RS 4
9493 .RE
9494 .PP
9495 \fI\s-1DEC\s0 Alpha/VMS Options\fR
9496 .IX Subsection "DEC Alpha/VMS Options"
9497 .PP
9498 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha/VMS implementations:
9499 .IP "\fB\-mvms\-return\-codes\fR" 4
9500 .IX Item "-mvms-return-codes"
9501 Return \s-1VMS\s0 condition codes from main.  The default is to return \s-1POSIX\s0
9502 style condition (e.g. error) codes.
9503 .PP
9504 \fI\s-1FR30\s0 Options\fR
9505 .IX Subsection "FR30 Options"
9506 .PP
9507 These options are defined specifically for the \s-1FR30\s0 port.
9508 .IP "\fB\-msmall\-model\fR" 4
9509 .IX Item "-msmall-model"
9510 Use the small address space model.  This can produce smaller code, but
9511 it does assume that all symbolic values and addresses will fit into a
9512 20\-bit range.
9513 .IP "\fB\-mno\-lsim\fR" 4
9514 .IX Item "-mno-lsim"
9515 Assume that run-time support has been provided and so there is no need
9516 to include the simulator library (\fIlibsim.a\fR) on the linker
9517 command line.
9518 .PP
9519 \fI\s-1FRV\s0 Options\fR
9520 .IX Subsection "FRV Options"
9521 .IP "\fB\-mgpr\-32\fR" 4
9522 .IX Item "-mgpr-32"
9523 Only use the first 32 general purpose registers.
9524 .IP "\fB\-mgpr\-64\fR" 4
9525 .IX Item "-mgpr-64"
9526 Use all 64 general purpose registers.
9527 .IP "\fB\-mfpr\-32\fR" 4
9528 .IX Item "-mfpr-32"
9529 Use only the first 32 floating point registers.
9530 .IP "\fB\-mfpr\-64\fR" 4
9531 .IX Item "-mfpr-64"
9532 Use all 64 floating point registers
9533 .IP "\fB\-mhard\-float\fR" 4
9534 .IX Item "-mhard-float"
9535 Use hardware instructions for floating point operations.
9536 .IP "\fB\-msoft\-float\fR" 4
9537 .IX Item "-msoft-float"
9538 Use library routines for floating point operations.
9539 .IP "\fB\-malloc\-cc\fR" 4
9540 .IX Item "-malloc-cc"
9541 Dynamically allocate condition code registers.
9542 .IP "\fB\-mfixed\-cc\fR" 4
9543 .IX Item "-mfixed-cc"
9544 Do not try to dynamically allocate condition code registers, only
9545 use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
9546 .IP "\fB\-mdword\fR" 4
9547 .IX Item "-mdword"
9548 Change \s-1ABI\s0 to use double word insns.
9549 .IP "\fB\-mno\-dword\fR" 4
9550 .IX Item "-mno-dword"
9551 Do not use double word instructions.
9552 .IP "\fB\-mdouble\fR" 4
9553 .IX Item "-mdouble"
9554 Use floating point double instructions.
9555 .IP "\fB\-mno\-double\fR" 4
9556 .IX Item "-mno-double"
9557 Do not use floating point double instructions.
9558 .IP "\fB\-mmedia\fR" 4
9559 .IX Item "-mmedia"
9560 Use media instructions.
9561 .IP "\fB\-mno\-media\fR" 4
9562 .IX Item "-mno-media"
9563 Do not use media instructions.
9564 .IP "\fB\-mmuladd\fR" 4
9565 .IX Item "-mmuladd"
9566 Use multiply and add/subtract instructions.
9567 .IP "\fB\-mno\-muladd\fR" 4
9568 .IX Item "-mno-muladd"
9569 Do not use multiply and add/subtract instructions.
9570 .IP "\fB\-mfdpic\fR" 4
9571 .IX Item "-mfdpic"
9572 Select the \s-1FDPIC\s0 \s-1ABI\s0, that uses function descriptors to represent
9573 pointers to functions.  Without any PIC/PIE\-related options, it
9574 implies \fB\-fPIE\fR.  With \fB\-fpic\fR or \fB\-fpie\fR, it
9575 assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
9576 \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
9577 are computed with 32 bits.
9578 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
9579 .IP "\fB\-minline\-plt\fR" 4
9580 .IX Item "-minline-plt"
9581 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
9582 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
9583 It's enabled by default if optimizing for speed and compiling for
9584 shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
9585 optimization option such as \fB\-O3\fR or above is present in the
9586 command line.
9587 .IP "\fB\-mTLS\fR" 4
9588 .IX Item "-mTLS"
9589 Assume a large \s-1TLS\s0 segment when generating thread-local code.
9590 .IP "\fB\-mtls\fR" 4
9591 .IX Item "-mtls"
9592 Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
9593 .IP "\fB\-mgprel\-ro\fR" 4
9594 .IX Item "-mgprel-ro"
9595 Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC\s0 \s-1ABI\s0 for data
9596 that is known to be in read-only sections.  It's enabled by default,
9597 except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
9598 make the global offset table smaller, it trades 1 instruction for 4.
9599 With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
9600 one of which may be shared by multiple symbols, and it avoids the need
9601 for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
9602 win.  If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
9603 .IP "\fB\-multilib\-library\-pic\fR" 4
9604 .IX Item "-multilib-library-pic"
9605 Link with the (library, not \s-1FD\s0) pic libraries.  It's implied by
9606 \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
9607 \&\fB\-fpic\fR without \fB\-mfdpic\fR.  You should never have to use
9608 it explicitly.
9609 .IP "\fB\-mlinked\-fp\fR" 4
9610 .IX Item "-mlinked-fp"
9611 Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
9612 a stack frame is allocated.  This option is enabled by default and can
9613 be disabled with \fB\-mno\-linked\-fp\fR.
9614 .IP "\fB\-mlong\-calls\fR" 4
9615 .IX Item "-mlong-calls"
9616 Use indirect addressing to call functions outside the current
9617 compilation unit.  This allows the functions to be placed anywhere
9618 within the 32\-bit address space.
9619 .IP "\fB\-malign\-labels\fR" 4
9620 .IX Item "-malign-labels"
9621 Try to align labels to an 8\-byte boundary by inserting nops into the
9622 previous packet.  This option only has an effect when \s-1VLIW\s0 packing
9623 is enabled.  It doesn't create new packets; it merely adds nops to
9624 existing ones.
9625 .IP "\fB\-mlibrary\-pic\fR" 4
9626 .IX Item "-mlibrary-pic"
9627 Generate position-independent \s-1EABI\s0 code.
9628 .IP "\fB\-macc\-4\fR" 4
9629 .IX Item "-macc-4"
9630 Use only the first four media accumulator registers.
9631 .IP "\fB\-macc\-8\fR" 4
9632 .IX Item "-macc-8"
9633 Use all eight media accumulator registers.
9634 .IP "\fB\-mpack\fR" 4
9635 .IX Item "-mpack"
9636 Pack \s-1VLIW\s0 instructions.
9637 .IP "\fB\-mno\-pack\fR" 4
9638 .IX Item "-mno-pack"
9639 Do not pack \s-1VLIW\s0 instructions.
9640 .IP "\fB\-mno\-eflags\fR" 4
9641 .IX Item "-mno-eflags"
9642 Do not mark \s-1ABI\s0 switches in e_flags.
9643 .IP "\fB\-mcond\-move\fR" 4
9644 .IX Item "-mcond-move"
9645 Enable the use of conditional-move instructions (default).
9646 .Sp
9647 This switch is mainly for debugging the compiler and will likely be removed
9648 in a future version.
9649 .IP "\fB\-mno\-cond\-move\fR" 4
9650 .IX Item "-mno-cond-move"
9651 Disable the use of conditional-move instructions.
9652 .Sp
9653 This switch is mainly for debugging the compiler and will likely be removed
9654 in a future version.
9655 .IP "\fB\-mscc\fR" 4
9656 .IX Item "-mscc"
9657 Enable the use of conditional set instructions (default).
9658 .Sp
9659 This switch is mainly for debugging the compiler and will likely be removed
9660 in a future version.
9661 .IP "\fB\-mno\-scc\fR" 4
9662 .IX Item "-mno-scc"
9663 Disable the use of conditional set instructions.
9664 .Sp
9665 This switch is mainly for debugging the compiler and will likely be removed
9666 in a future version.
9667 .IP "\fB\-mcond\-exec\fR" 4
9668 .IX Item "-mcond-exec"
9669 Enable the use of conditional execution (default).
9670 .Sp
9671 This switch is mainly for debugging the compiler and will likely be removed
9672 in a future version.
9673 .IP "\fB\-mno\-cond\-exec\fR" 4
9674 .IX Item "-mno-cond-exec"
9675 Disable the use of conditional execution.
9676 .Sp
9677 This switch is mainly for debugging the compiler and will likely be removed
9678 in a future version.
9679 .IP "\fB\-mvliw\-branch\fR" 4
9680 .IX Item "-mvliw-branch"
9681 Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
9682 .Sp
9683 This switch is mainly for debugging the compiler and will likely be removed
9684 in a future version.
9685 .IP "\fB\-mno\-vliw\-branch\fR" 4
9686 .IX Item "-mno-vliw-branch"
9687 Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
9688 .Sp
9689 This switch is mainly for debugging the compiler and will likely be removed
9690 in a future version.
9691 .IP "\fB\-mmulti\-cond\-exec\fR" 4
9692 .IX Item "-mmulti-cond-exec"
9693 Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
9694 (default).
9695 .Sp
9696 This switch is mainly for debugging the compiler and will likely be removed
9697 in a future version.
9698 .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
9699 .IX Item "-mno-multi-cond-exec"
9700 Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
9701 .Sp
9702 This switch is mainly for debugging the compiler and will likely be removed
9703 in a future version.
9704 .IP "\fB\-mnested\-cond\-exec\fR" 4
9705 .IX Item "-mnested-cond-exec"
9706 Enable nested conditional execution optimizations (default).
9707 .Sp
9708 This switch is mainly for debugging the compiler and will likely be removed
9709 in a future version.
9710 .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
9711 .IX Item "-mno-nested-cond-exec"
9712 Disable nested conditional execution optimizations.
9713 .Sp
9714 This switch is mainly for debugging the compiler and will likely be removed
9715 in a future version.
9716 .IP "\fB\-moptimize\-membar\fR" 4
9717 .IX Item "-moptimize-membar"
9718 This switch removes redundant \f(CW\*(C`membar\*(C'\fR instructions from the
9719 compiler generated code.  It is enabled by default.
9720 .IP "\fB\-mno\-optimize\-membar\fR" 4
9721 .IX Item "-mno-optimize-membar"
9722 This switch disables the automatic removal of redundant \f(CW\*(C`membar\*(C'\fR
9723 instructions from the generated code.
9724 .IP "\fB\-mtomcat\-stats\fR" 4
9725 .IX Item "-mtomcat-stats"
9726 Cause gas to print out tomcat statistics.
9727 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
9728 .IX Item "-mcpu=cpu"
9729 Select the processor type for which to generate code.  Possible values are
9730 \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
9731 \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
9732 .PP
9733 \fIGNU/Linux Options\fR
9734 .IX Subsection "GNU/Linux Options"
9735 .PP
9736 These \fB\-m\fR options are defined for GNU/Linux targets:
9737 .IP "\fB\-mglibc\fR" 4
9738 .IX Item "-mglibc"
9739 Use the \s-1GNU\s0 C library instead of uClibc.  This is the default except
9740 on \fB*\-*\-linux\-*uclibc*\fR targets.
9741 .IP "\fB\-muclibc\fR" 4
9742 .IX Item "-muclibc"
9743 Use uClibc instead of the \s-1GNU\s0 C library.  This is the default on
9744 \&\fB*\-*\-linux\-*uclibc*\fR targets.
9745 .PP
9746 \fIH8/300 Options\fR
9747 .IX Subsection "H8/300 Options"
9748 .PP
9749 These \fB\-m\fR options are defined for the H8/300 implementations:
9750 .IP "\fB\-mrelax\fR" 4
9751 .IX Item "-mrelax"
9752 Shorten some address references at link time, when possible; uses the
9753 linker option \fB\-relax\fR.
9754 .IP "\fB\-mh\fR" 4
9755 .IX Item "-mh"
9756 Generate code for the H8/300H.
9757 .IP "\fB\-ms\fR" 4
9758 .IX Item "-ms"
9759 Generate code for the H8S.
9760 .IP "\fB\-mn\fR" 4
9761 .IX Item "-mn"
9762 Generate code for the H8S and H8/300H in the normal mode.  This switch
9763 must be used either with \fB\-mh\fR or \fB\-ms\fR.
9764 .IP "\fB\-ms2600\fR" 4
9765 .IX Item "-ms2600"
9766 Generate code for the H8S/2600.  This switch must be used with \fB\-ms\fR.
9767 .IP "\fB\-mint32\fR" 4
9768 .IX Item "-mint32"
9769 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
9770 .IP "\fB\-malign\-300\fR" 4
9771 .IX Item "-malign-300"
9772 On the H8/300H and H8S, use the same alignment rules as for the H8/300.
9773 The default for the H8/300H and H8S is to align longs and floats on 4
9774 byte boundaries.
9775 \&\fB\-malign\-300\fR causes them to be aligned on 2 byte boundaries.
9776 This option has no effect on the H8/300.
9777 .PP
9778 \fI\s-1HPPA\s0 Options\fR
9779 .IX Subsection "HPPA Options"
9780 .PP
9781 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
9782 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
9783 .IX Item "-march=architecture-type"
9784 Generate code for the specified architecture.  The choices for
9785 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA\s0 1.0, \fB1.1\fR for \s-1PA\s0
9786 1.1, and \fB2.0\fR for \s-1PA\s0 2.0 processors.  Refer to
9787 \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
9788 architecture option for your machine.  Code compiled for lower numbered
9789 architectures will run on higher numbered architectures, but not the
9790 other way around.
9791 .IP "\fB\-mpa\-risc\-1\-0\fR" 4
9792 .IX Item "-mpa-risc-1-0"
9793 .PD 0
9794 .IP "\fB\-mpa\-risc\-1\-1\fR" 4
9795 .IX Item "-mpa-risc-1-1"
9796 .IP "\fB\-mpa\-risc\-2\-0\fR" 4
9797 .IX Item "-mpa-risc-2-0"
9798 .PD
9799 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
9800 .IP "\fB\-mbig\-switch\fR" 4
9801 .IX Item "-mbig-switch"
9802 Generate code suitable for big switch tables.  Use this option only if
9803 the assembler/linker complain about out of range branches within a switch
9804 table.
9805 .IP "\fB\-mjump\-in\-delay\fR" 4
9806 .IX Item "-mjump-in-delay"
9807 Fill delay slots of function calls with unconditional jump instructions
9808 by modifying the return pointer for the function call to be the target
9809 of the conditional jump.
9810 .IP "\fB\-mdisable\-fpregs\fR" 4
9811 .IX Item "-mdisable-fpregs"
9812 Prevent floating point registers from being used in any manner.  This is
9813 necessary for compiling kernels which perform lazy context switching of
9814 floating point registers.  If you use this option and attempt to perform
9815 floating point operations, the compiler will abort.
9816 .IP "\fB\-mdisable\-indexing\fR" 4
9817 .IX Item "-mdisable-indexing"
9818 Prevent the compiler from using indexing address modes.  This avoids some
9819 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH\s0.
9820 .IP "\fB\-mno\-space\-regs\fR" 4
9821 .IX Item "-mno-space-regs"
9822 Generate code that assumes the target has no space registers.  This allows
9823 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
9824 .Sp
9825 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
9826 .IP "\fB\-mfast\-indirect\-calls\fR" 4
9827 .IX Item "-mfast-indirect-calls"
9828 Generate code that assumes calls never cross space boundaries.  This
9829 allows \s-1GCC\s0 to emit code which performs faster indirect calls.
9830 .Sp
9831 This option will not work in the presence of shared libraries or nested
9832 functions.
9833 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
9834 .IX Item "-mfixed-range=register-range"
9835 Generate code treating the given register range as fixed registers.
9836 A fixed register is one that the register allocator can not use.  This is
9837 useful when compiling kernel code.  A register range is specified as
9838 two registers separated by a dash.  Multiple register ranges can be
9839 specified separated by a comma.
9840 .IP "\fB\-mlong\-load\-store\fR" 4
9841 .IX Item "-mlong-load-store"
9842 Generate 3\-instruction load and store sequences as sometimes required by
9843 the HP-UX 10 linker.  This is equivalent to the \fB+k\fR option to
9844 the \s-1HP\s0 compilers.
9845 .IP "\fB\-mportable\-runtime\fR" 4
9846 .IX Item "-mportable-runtime"
9847 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
9848 .IP "\fB\-mgas\fR" 4
9849 .IX Item "-mgas"
9850 Enable the use of assembler directives only \s-1GAS\s0 understands.
9851 .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
9852 .IX Item "-mschedule=cpu-type"
9853 Schedule code according to the constraints for the machine type
9854 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
9855 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR.  Refer
9856 to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
9857 proper scheduling option for your machine.  The default scheduling is
9858 \&\fB8000\fR.
9859 .IP "\fB\-mlinker\-opt\fR" 4
9860 .IX Item "-mlinker-opt"
9861 Enable the optimization pass in the HP-UX linker.  Note this makes symbolic
9862 debugging impossible.  It also triggers a bug in the HP-UX 8 and HP-UX 9
9863 linkers in which they give bogus error messages when linking some programs.
9864 .IP "\fB\-msoft\-float\fR" 4
9865 .IX Item "-msoft-float"
9866 Generate output containing library calls for floating point.
9867 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
9868 targets.  Normally the facilities of the machine's usual C compiler are
9869 used, but this cannot be done directly in cross-compilation.  You must make
9870 your own arrangements to provide suitable library functions for
9871 cross-compilation.
9872 .Sp
9873 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
9874 therefore, it is only useful if you compile \fIall\fR of a program with
9875 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
9876 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
9877 this to work.
9878 .IP "\fB\-msio\fR" 4
9879 .IX Item "-msio"
9880 Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO\s0.  The default is
9881 \&\fB\-mwsio\fR.  This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
9882 \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO\s0.  These
9883 options are available under HP-UX and HI-UX.
9884 .IP "\fB\-mgnu\-ld\fR" 4
9885 .IX Item "-mgnu-ld"
9886 Use \s-1GNU\s0 ld specific options.  This passes \fB\-shared\fR to ld when
9887 building a shared library.  It is the default when \s-1GCC\s0 is configured,
9888 explicitly or implicitly, with the \s-1GNU\s0 linker.  This option does not
9889 have any affect on which ld is called, it only changes what parameters
9890 are passed to that ld.  The ld that is called is determined by the
9891 \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
9892 finally by the user's \fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed
9893 using \fBwhich `gcc \-print\-prog\-name=ld`\fR.  This option is only available
9894 on the 64 bit HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
9895 .IP "\fB\-mhp\-ld\fR" 4
9896 .IX Item "-mhp-ld"
9897 Use \s-1HP\s0 ld specific options.  This passes \fB\-b\fR to ld when building
9898 a shared library and passes \fB+Accept TypeMismatch\fR to ld on all
9899 links.  It is the default when \s-1GCC\s0 is configured, explicitly or
9900 implicitly, with the \s-1HP\s0 linker.  This option does not have any affect on
9901 which ld is called, it only changes what parameters are passed to that
9902 ld.  The ld that is called is determined by the \fB\-\-with\-ld\fR
9903 configure option, \s-1GCC\s0's program search path, and finally by the user's
9904 \&\fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed using \fBwhich
9905 `gcc \-print\-prog\-name=ld`\fR.  This option is only available on the 64 bit
9906 HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
9907 .IP "\fB\-mlong\-calls\fR" 4
9908 .IX Item "-mlong-calls"
9909 Generate code that uses long call sequences.  This ensures that a call
9910 is always able to reach linker generated stubs.  The default is to generate
9911 long calls only when the distance from the call site to the beginning
9912 of the function or translation unit, as the case may be, exceeds a
9913 predefined limit set by the branch type being used.  The limits for
9914 normal calls are 7,600,000 and 240,000 bytes, respectively for the
9915 \&\s-1PA\s0 2.0 and \s-1PA\s0 1.X architectures.  Sibcalls are always limited at
9916 240,000 bytes.
9917 .Sp
9918 Distances are measured from the beginning of functions when using the
9919 \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
9920 and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
9921 the \s-1SOM\s0 linker.
9922 .Sp
9923 It is normally not desirable to use this option as it will degrade
9924 performance.  However, it may be useful in large applications,
9925 particularly when partial linking is used to build the application.
9926 .Sp
9927 The types of long calls used depends on the capabilities of the
9928 assembler and linker, and the type of code being generated.  The
9929 impact on systems that support long absolute calls, and long pic
9930 symbol-difference or pc-relative calls should be relatively small.
9931 However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
9932 and it is quite long.
9933 .IP "\fB\-munix=\fR\fIunix-std\fR" 4
9934 .IX Item "-munix=unix-std"
9935 Generate compiler predefines and select a startfile for the specified
9936 \&\s-1UNIX\s0 standard.  The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
9937 and \fB98\fR.  \fB93\fR is supported on all HP-UX versions.  \fB95\fR
9938 is available on HP-UX 10.10 and later.  \fB98\fR is available on HP-UX
9939 11.11 and later.  The default values are \fB93\fR for HP-UX 10.00,
9940 \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
9941 and later.
9942 .Sp
9943 \&\fB\-munix=93\fR provides the same predefines as \s-1GCC\s0 3.3 and 3.4.
9944 \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
9945 and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
9946 \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
9947 \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
9948 \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
9949 .Sp
9950 It is \fIimportant\fR to note that this option changes the interfaces
9951 for various library routines.  It also affects the operational behavior
9952 of the C library.  Thus, \fIextreme\fR care is needed in using this
9953 option.
9954 .Sp
9955 Library code that is intended to operate with more than one \s-1UNIX\s0
9956 standard must test, set and restore the variable \fI_\|_xpg4_extended_mask\fR
9957 as appropriate.  Most \s-1GNU\s0 software doesn't provide this capability.
9958 .IP "\fB\-nolibdld\fR" 4
9959 .IX Item "-nolibdld"
9960 Suppress the generation of link options to search libdld.sl when the
9961 \&\fB\-static\fR option is specified on HP-UX 10 and later.
9962 .IP "\fB\-static\fR" 4
9963 .IX Item "-static"
9964 The HP-UX implementation of setlocale in libc has a dependency on
9965 libdld.sl.  There isn't an archive version of libdld.sl.  Thus,
9966 when the \fB\-static\fR option is specified, special link options
9967 are needed to resolve this dependency.
9968 .Sp
9969 On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
9970 link with libdld.sl when the \fB\-static\fR option is specified.
9971 This causes the resulting binary to be dynamic.  On the 64\-bit port,
9972 the linkers generate dynamic binaries by default in any case.  The
9973 \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
9974 adding these link options.
9975 .IP "\fB\-threads\fR" 4
9976 .IX Item "-threads"
9977 Add support for multithreading with the \fIdce thread\fR library
9978 under HP-UX.  This option sets flags for both the preprocessor and
9979 linker.
9980 .PP
9981 \fIIntel 386 and \s-1AMD\s0 x86\-64 Options\fR
9982 .IX Subsection "Intel 386 and AMD x86-64 Options"
9983 .PP
9984 These \fB\-m\fR options are defined for the i386 and x86\-64 family of
9985 computers:
9986 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
9987 .IX Item "-mtune=cpu-type"
9988 Tune to \fIcpu-type\fR everything applicable about the generated code, except
9989 for the \s-1ABI\s0 and the set of available instructions.  The choices for
9990 \&\fIcpu-type\fR are:
9991 .RS 4
9992 .IP "\fIgeneric\fR" 4
9993 .IX Item "generic"
9994 Produce code optimized for the most common \s-1IA32/AMD64/EM64T\s0 processors.
9995 If you know the \s-1CPU\s0 on which your code will run, then you should use
9996 the corresponding \fB\-mtune\fR option instead of
9997 \&\fB\-mtune=generic\fR.  But, if you do not know exactly what \s-1CPU\s0 users
9998 of your application will have, then you should use this option.
9999 .Sp
10000 As new processors are deployed in the marketplace, the behavior of this
10001 option will change.  Therefore, if you upgrade to a newer version of
10002 \&\s-1GCC\s0, the code generated option will change to reflect the processors
10003 that were most common when that version of \s-1GCC\s0 was released.
10004 .Sp
10005 There is no \fB\-march=generic\fR option because \fB\-march\fR
10006 indicates the instruction set the compiler can use, and there is no
10007 generic instruction set applicable to all processors.  In contrast,
10008 \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
10009 processors) for which the code is optimized.
10010 .IP "\fInative\fR" 4
10011 .IX Item "native"
10012 This selects the \s-1CPU\s0 to tune for at compilation time by determining
10013 the processor type of the compiling machine.  Using \fB\-mtune=native\fR
10014 will produce code optimized for the local machine under the constraints
10015 of the selected instruction set.  Using \fB\-march=native\fR will
10016 enable all instruction subsets supported by the local machine (hence
10017 the result might not run on different machines).
10018 .IP "\fIi386\fR" 4
10019 .IX Item "i386"
10020 Original Intel's i386 \s-1CPU\s0.
10021 .IP "\fIi486\fR" 4
10022 .IX Item "i486"
10023 Intel's i486 \s-1CPU\s0.  (No scheduling is implemented for this chip.)
10024 .IP "\fIi586, pentium\fR" 4
10025 .IX Item "i586, pentium"
10026 Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
10027 .IP "\fIpentium-mmx\fR" 4
10028 .IX Item "pentium-mmx"
10029 Intel PentiumMMX \s-1CPU\s0 based on Pentium core with \s-1MMX\s0 instruction set support.
10030 .IP "\fIpentiumpro\fR" 4
10031 .IX Item "pentiumpro"
10032 Intel PentiumPro \s-1CPU\s0.
10033 .IP "\fIi686\fR" 4
10034 .IX Item "i686"
10035 Same as \f(CW\*(C`generic\*(C'\fR, but when used as \f(CW\*(C`march\*(C'\fR option, PentiumPro
10036 instruction set will be used, so the code will run on all i686 family chips.
10037 .IP "\fIpentium2\fR" 4
10038 .IX Item "pentium2"
10039 Intel Pentium2 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 instruction set support.
10040 .IP "\fIpentium3, pentium3m\fR" 4
10041 .IX Item "pentium3, pentium3m"
10042 Intel Pentium3 \s-1CPU\s0 based on PentiumPro core with \s-1MMX\s0 and \s-1SSE\s0 instruction set
10043 support.
10044 .IP "\fIpentium-m\fR" 4
10045 .IX Item "pentium-m"
10046 Low power version of Intel Pentium3 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set
10047 support.  Used by Centrino notebooks.
10048 .IP "\fIpentium4, pentium4m\fR" 4
10049 .IX Item "pentium4, pentium4m"
10050 Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set support.
10051 .IP "\fIprescott\fR" 4
10052 .IX Item "prescott"
10053 Improved version of Intel Pentium4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0 and \s-1SSE3\s0 instruction
10054 set support.
10055 .IP "\fInocona\fR" 4
10056 .IX Item "nocona"
10057 Improved version of Intel Pentium4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0,
10058 \&\s-1SSE2\s0 and \s-1SSE3\s0 instruction set support.
10059 .IP "\fIcore2\fR" 4
10060 .IX Item "core2"
10061 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
10062 instruction set support.
10063 .IP "\fIk6\fR" 4
10064 .IX Item "k6"
10065 \&\s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 instruction set support.
10066 .IP "\fIk6\-2, k6\-3\fR" 4
10067 .IX Item "k6-2, k6-3"
10068 Improved versions of \s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.
10069 .IP "\fIathlon, athlon-tbird\fR" 4
10070 .IX Item "athlon, athlon-tbird"
10071 \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and \s-1SSE\s0 prefetch instructions
10072 support.
10073 .IP "\fIathlon\-4, athlon-xp, athlon-mp\fR" 4
10074 .IX Item "athlon-4, athlon-xp, athlon-mp"
10075 Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3dNOW! and full \s-1SSE\s0
10076 instruction set support.
10077 .IP "\fIk8, opteron, athlon64, athlon-fx\fR" 4
10078 .IX Item "k8, opteron, athlon64, athlon-fx"
10079 \&\s-1AMD\s0 K8 core based CPUs with x86\-64 instruction set support.  (This supersets
10080 \&\s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, 3dNOW!, enhanced 3dNOW! and 64\-bit instruction set extensions.)
10081 .IP "\fIk8\-sse3, opteron\-sse3, athlon64\-sse3\fR" 4
10082 .IX Item "k8-sse3, opteron-sse3, athlon64-sse3"
10083 Improved versions of k8, opteron and athlon64 with \s-1SSE3\s0 instruction set support.
10084 .IP "\fIamdfam10, barcelona\fR" 4
10085 .IX Item "amdfam10, barcelona"
10086 \&\s-1AMD\s0 Family 10h core based CPUs with x86\-64 instruction set support.  (This
10087 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
10088 instruction set extensions.)
10089 .IP "\fIwinchip\-c6\fR" 4
10090 .IX Item "winchip-c6"
10091 \&\s-1IDT\s0 Winchip C6 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 instruction
10092 set support.
10093 .IP "\fIwinchip2\fR" 4
10094 .IX Item "winchip2"
10095 \&\s-1IDT\s0 Winchip2 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 and 3dNOW!
10096 instruction set support.
10097 .IP "\fIc3\fR" 4
10098 .IX Item "c3"
10099 Via C3 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.  (No scheduling is
10100 implemented for this chip.)
10101 .IP "\fIc3\-2\fR" 4
10102 .IX Item "c3-2"
10103 Via C3\-2 \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.  (No scheduling is
10104 implemented for this chip.)
10105 .IP "\fIgeode\fR" 4
10106 .IX Item "geode"
10107 Embedded \s-1AMD\s0 \s-1CPU\s0 with \s-1MMX\s0 and 3dNOW! instruction set support.
10108 .RE
10109 .RS 4
10110 .Sp
10111 While picking a specific \fIcpu-type\fR will schedule things appropriately
10112 for that particular chip, the compiler will not generate any code that
10113 does not run on the i386 without the \fB\-march=\fR\fIcpu-type\fR option
10114 being used.
10115 .RE
10116 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
10117 .IX Item "-march=cpu-type"
10118 Generate instructions for the machine type \fIcpu-type\fR.  The choices
10119 for \fIcpu-type\fR are the same as for \fB\-mtune\fR.  Moreover,
10120 specifying \fB\-march=\fR\fIcpu-type\fR implies \fB\-mtune=\fR\fIcpu-type\fR.
10121 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
10122 .IX Item "-mcpu=cpu-type"
10123 A deprecated synonym for \fB\-mtune\fR.
10124 .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
10125 .IX Item "-mfpmath=unit"
10126 Generate floating point arithmetics for selected unit \fIunit\fR.  The choices
10127 for \fIunit\fR are:
10128 .RS 4
10129 .IP "\fB387\fR" 4
10130 .IX Item "387"
10131 Use the standard 387 floating point coprocessor present majority of chips and
10132 emulated otherwise.  Code compiled with this option will run almost everywhere.
10133 The temporary results are computed in 80bit precision instead of precision
10134 specified by the type resulting in slightly different results compared to most
10135 of other chips.  See \fB\-ffloat\-store\fR for more detailed description.
10136 .Sp
10137 This is the default choice for i386 compiler.
10138 .IP "\fBsse\fR" 4
10139 .IX Item "sse"
10140 Use scalar floating point instructions present in the \s-1SSE\s0 instruction set.
10141 This instruction set is supported by Pentium3 and newer chips, in the \s-1AMD\s0 line
10142 by Athlon\-4, Athlon-xp and Athlon-mp chips.  The earlier version of \s-1SSE\s0
10143 instruction set supports only single precision arithmetics, thus the double and
10144 extended precision arithmetics is still done using 387.  Later version, present
10145 only in Pentium4 and the future \s-1AMD\s0 x86\-64 chips supports double precision
10146 arithmetics too.
10147 .Sp
10148 For the i386 compiler, you need to use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
10149 or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
10150 effective.  For the x86\-64 compiler, these extensions are enabled by default.
10151 .Sp
10152 The resulting code should be considerably faster in the majority of cases and avoid
10153 the numerical instability problems of 387 code, but may break some existing
10154 code that expects temporaries to be 80bit.
10155 .Sp
10156 This is the default choice for the x86\-64 compiler.
10157 .IP "\fBsse,387\fR" 4
10158 .IX Item "sse,387"
10159 .PD 0
10160 .IP "\fBsse+387\fR" 4
10161 .IX Item "sse+387"
10162 .IP "\fBboth\fR" 4
10163 .IX Item "both"
10164 .PD
10165 Attempt to utilize both instruction sets at once.  This effectively double the
10166 amount of available registers and on chips with separate execution units for
10167 387 and \s-1SSE\s0 the execution resources too.  Use this option with care, as it is
10168 still experimental, because the \s-1GCC\s0 register allocator does not model separate
10169 functional units well resulting in instable performance.
10170 .RE
10171 .RS 4
10172 .RE
10173 .IP "\fB\-masm=\fR\fIdialect\fR" 4
10174 .IX Item "-masm=dialect"
10175 Output asm instructions using selected \fIdialect\fR.  Supported
10176 choices are \fBintel\fR or \fBatt\fR (the default one).  Darwin does
10177 not support \fBintel\fR.
10178 .IP "\fB\-mieee\-fp\fR" 4
10179 .IX Item "-mieee-fp"
10180 .PD 0
10181 .IP "\fB\-mno\-ieee\-fp\fR" 4
10182 .IX Item "-mno-ieee-fp"
10183 .PD
10184 Control whether or not the compiler uses \s-1IEEE\s0 floating point
10185 comparisons.  These handle correctly the case where the result of a
10186 comparison is unordered.
10187 .IP "\fB\-msoft\-float\fR" 4
10188 .IX Item "-msoft-float"
10189 Generate output containing library calls for floating point.
10190 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
10191 Normally the facilities of the machine's usual C compiler are used, but
10192 this can't be done directly in cross-compilation.  You must make your
10193 own arrangements to provide suitable library functions for
10194 cross-compilation.
10195 .Sp
10196 On machines where a function returns floating point results in the 80387
10197 register stack, some floating point opcodes may be emitted even if
10198 \&\fB\-msoft\-float\fR is used.
10199 .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
10200 .IX Item "-mno-fp-ret-in-387"
10201 Do not use the \s-1FPU\s0 registers for return values of functions.
10202 .Sp
10203 The usual calling convention has functions return values of types
10204 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
10205 is no \s-1FPU\s0.  The idea is that the operating system should emulate
10206 an \s-1FPU\s0.
10207 .Sp
10208 The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
10209 in ordinary \s-1CPU\s0 registers instead.
10210 .IP "\fB\-mno\-fancy\-math\-387\fR" 4
10211 .IX Item "-mno-fancy-math-387"
10212 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
10213 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
10214 generating those instructions.  This option is the default on FreeBSD,
10215 OpenBSD and NetBSD.  This option is overridden when \fB\-march\fR
10216 indicates that the target cpu will always have an \s-1FPU\s0 and so the
10217 instruction will not need emulation.  As of revision 2.6.1, these
10218 instructions are not generated unless you also use the
10219 \&\fB\-funsafe\-math\-optimizations\fR switch.
10220 .IP "\fB\-malign\-double\fR" 4
10221 .IX Item "-malign-double"
10222 .PD 0
10223 .IP "\fB\-mno\-align\-double\fR" 4
10224 .IX Item "-mno-align-double"
10225 .PD
10226 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
10227 \&\f(CW\*(C`long long\*(C'\fR variables on a two word boundary or a one word
10228 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two word boundary will
10229 produce code that runs somewhat faster on a \fBPentium\fR at the
10230 expense of more memory.
10231 .Sp
10232 On x86\-64, \fB\-malign\-double\fR is enabled by default.
10233 .Sp
10234 \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
10235 structures containing the above types will be aligned differently than
10236 the published application binary interface specifications for the 386
10237 and will not be binary compatible with structures in code compiled
10238 without that switch.
10239 .IP "\fB\-m96bit\-long\-double\fR" 4
10240 .IX Item "-m96bit-long-double"
10241 .PD 0
10242 .IP "\fB\-m128bit\-long\-double\fR" 4
10243 .IX Item "-m128bit-long-double"
10244 .PD
10245 These switches control the size of \f(CW\*(C`long double\*(C'\fR type.  The i386
10246 application binary interface specifies the size to be 96 bits,
10247 so \fB\-m96bit\-long\-double\fR is the default in 32 bit mode.
10248 .Sp
10249 Modern architectures (Pentium and newer) would prefer \f(CW\*(C`long double\*(C'\fR
10250 to be aligned to an 8 or 16 byte boundary.  In arrays or structures
10251 conforming to the \s-1ABI\s0, this would not be possible.  So specifying a
10252 \&\fB\-m128bit\-long\-double\fR will align \f(CW\*(C`long double\*(C'\fR
10253 to a 16 byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
10254 32 bit zero.
10255 .Sp
10256 In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
10257 its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is to be aligned on 16 byte boundary.
10258 .Sp
10259 Notice that neither of these options enable any extra precision over the x87
10260 standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
10261 .Sp
10262 \&\fBWarning:\fR if you override the default value for your target \s-1ABI\s0, the
10263 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables will change
10264 their size as well as function calling convention for function taking
10265 \&\f(CW\*(C`long double\*(C'\fR will be modified.  Hence they will not be binary
10266 compatible with arrays or structures in code compiled without that switch.
10267 .IP "\fB\-mlarge\-data\-threshold=\fR\fInumber\fR" 4
10268 .IX Item "-mlarge-data-threshold=number"
10269 When \fB\-mcmodel=medium\fR is specified, the data greater than
10270 \&\fIthreshold\fR are placed in large data section.  This value must be the
10271 same across all object linked into the binary and defaults to 65535.
10272 .IP "\fB\-mrtd\fR" 4
10273 .IX Item "-mrtd"
10274 Use a different function-calling convention, in which functions that
10275 take a fixed number of arguments return with the \f(CW\*(C`ret\*(C'\fR \fInum\fR
10276 instruction, which pops their arguments while returning.  This saves one
10277 instruction in the caller since there is no need to pop the arguments
10278 there.
10279 .Sp
10280 You can specify that an individual function is called with this calling
10281 sequence with the function attribute \fBstdcall\fR.  You can also
10282 override the \fB\-mrtd\fR option by using the function attribute
10283 \&\fBcdecl\fR.
10284 .Sp
10285 \&\fBWarning:\fR this calling convention is incompatible with the one
10286 normally used on Unix, so you cannot use it if you need to call
10287 libraries compiled with the Unix compiler.
10288 .Sp
10289 Also, you must provide function prototypes for all functions that
10290 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
10291 otherwise incorrect code will be generated for calls to those
10292 functions.
10293 .Sp
10294 In addition, seriously incorrect code will result if you call a
10295 function with too many arguments.  (Normally, extra arguments are
10296 harmlessly ignored.)
10297 .IP "\fB\-mregparm=\fR\fInum\fR" 4
10298 .IX Item "-mregparm=num"
10299 Control how many registers are used to pass integer arguments.  By
10300 default, no registers are used to pass arguments, and at most 3
10301 registers can be used.  You can control this behavior for a specific
10302 function by using the function attribute \fBregparm\fR.
10303 .Sp
10304 \&\fBWarning:\fR if you use this switch, and
10305 \&\fInum\fR is nonzero, then you must build all modules with the same
10306 value, including any libraries.  This includes the system libraries and
10307 startup modules.
10308 .IP "\fB\-msseregparm\fR" 4
10309 .IX Item "-msseregparm"
10310 Use \s-1SSE\s0 register passing conventions for float and double arguments
10311 and return values.  You can control this behavior for a specific
10312 function by using the function attribute \fBsseregparm\fR.
10313 .Sp
10314 \&\fBWarning:\fR if you use this switch then you must build all
10315 modules with the same value, including any libraries.  This includes
10316 the system libraries and startup modules.
10317 .IP "\fB\-mpc32\fR" 4
10318 .IX Item "-mpc32"
10319 .PD 0
10320 .IP "\fB\-mpc64\fR" 4
10321 .IX Item "-mpc64"
10322 .IP "\fB\-mpc80\fR" 4
10323 .IX Item "-mpc80"
10324 .PD
10325 Set 80387 floating-point precision to 32, 64 or 80 bits.  When \fB\-mpc32\fR
10326 is specified, the significands of results of floating-point operations are
10327 rounded to 24 bits (single precision); \fB\-mpc64\fR rounds the
10328 significands of results of floating-point operations to 53 bits (double
10329 precision) and \fB\-mpc80\fR rounds the significands of results of
10330 floating-point operations to 64 bits (extended double precision), which is
10331 the default.  When this option is used, floating-point operations in higher
10332 precisions are not available to the programmer without setting the \s-1FPU\s0
10333 control word explicitly.
10334 .Sp
10335 Setting the rounding of floating-point operations to less than the default
10336 80 bits can speed some programs by 2% or more.  Note that some mathematical
10337 libraries assume that extended precision (80 bit) floating-point operations
10338 are enabled by default; routines in such libraries could suffer significant
10339 loss of accuracy, typically through so-called \*(L"catastrophic cancellation\*(R",
10340 when this option is used to set the precision to less than extended precision.
10341 .IP "\fB\-mstackrealign\fR" 4
10342 .IX Item "-mstackrealign"
10343 Realign the stack at entry.  On the Intel x86, the \fB\-mstackrealign\fR
10344 option will generate an alternate prologue and epilogue that realigns the
10345 runtime stack if necessary.  This supports mixing legacy codes that keep
10346 a 4\-byte aligned stack with modern codes that keep a 16\-byte stack for
10347 \&\s-1SSE\s0 compatibility.  See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
10348 applicable to individual functions.
10349 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
10350 .IX Item "-mpreferred-stack-boundary=num"
10351 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
10352 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
10353 the default is 4 (16 bytes or 128 bits).
10354 .IP "\fB\-mincoming\-stack\-boundary=\fR\fInum\fR" 4
10355 .IX Item "-mincoming-stack-boundary=num"
10356 Assume the incoming stack is aligned to a 2 raised to \fInum\fR byte
10357 boundary.  If \fB\-mincoming\-stack\-boundary\fR is not specified,
10358 the one specified by \fB\-mpreferred\-stack\-boundary\fR will be used.
10359 .Sp
10360 On Pentium and PentiumPro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
10361 should be aligned to an 8 byte boundary (see \fB\-malign\-double\fR) or
10362 suffer significant run time performance penalties.  On Pentium \s-1III\s0, the
10363 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR may not work
10364 properly if it is not 16 byte aligned.
10365 .Sp
10366 To ensure proper alignment of this values on the stack, the stack boundary
10367 must be as aligned as that required by any value stored on the stack.
10368 Further, every function must be generated such that it keeps the stack
10369 aligned.  Thus calling a function compiled with a higher preferred
10370 stack boundary from a function compiled with a lower preferred stack
10371 boundary will most likely misalign the stack.  It is recommended that
10372 libraries that use callbacks always use the default setting.
10373 .Sp
10374 This extra alignment does consume extra stack space, and generally
10375 increases code size.  Code that is sensitive to stack space usage, such
10376 as embedded systems and operating system kernels, may want to reduce the
10377 preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
10378 .IP "\fB\-mmmx\fR" 4
10379 .IX Item "-mmmx"
10380 .PD 0
10381 .IP "\fB\-mno\-mmx\fR" 4
10382 .IX Item "-mno-mmx"
10383 .IP "\fB\-msse\fR" 4
10384 .IX Item "-msse"
10385 .IP "\fB\-mno\-sse\fR" 4
10386 .IX Item "-mno-sse"
10387 .IP "\fB\-msse2\fR" 4
10388 .IX Item "-msse2"
10389 .IP "\fB\-mno\-sse2\fR" 4
10390 .IX Item "-mno-sse2"
10391 .IP "\fB\-msse3\fR" 4
10392 .IX Item "-msse3"
10393 .IP "\fB\-mno\-sse3\fR" 4
10394 .IX Item "-mno-sse3"
10395 .IP "\fB\-mssse3\fR" 4
10396 .IX Item "-mssse3"
10397 .IP "\fB\-mno\-ssse3\fR" 4
10398 .IX Item "-mno-ssse3"
10399 .IP "\fB\-msse4.1\fR" 4
10400 .IX Item "-msse4.1"
10401 .IP "\fB\-mno\-sse4.1\fR" 4
10402 .IX Item "-mno-sse4.1"
10403 .IP "\fB\-msse4.2\fR" 4
10404 .IX Item "-msse4.2"
10405 .IP "\fB\-mno\-sse4.2\fR" 4
10406 .IX Item "-mno-sse4.2"
10407 .IP "\fB\-msse4\fR" 4
10408 .IX Item "-msse4"
10409 .IP "\fB\-mno\-sse4\fR" 4
10410 .IX Item "-mno-sse4"
10411 .IP "\fB\-mavx\fR" 4
10412 .IX Item "-mavx"
10413 .IP "\fB\-mno\-avx\fR" 4
10414 .IX Item "-mno-avx"
10415 .IP "\fB\-maes\fR" 4
10416 .IX Item "-maes"
10417 .IP "\fB\-mno\-aes\fR" 4
10418 .IX Item "-mno-aes"
10419 .IP "\fB\-mpclmul\fR" 4
10420 .IX Item "-mpclmul"
10421 .IP "\fB\-mno\-pclmul\fR" 4
10422 .IX Item "-mno-pclmul"
10423 .IP "\fB\-msse4a\fR" 4
10424 .IX Item "-msse4a"
10425 .IP "\fB\-mno\-sse4a\fR" 4
10426 .IX Item "-mno-sse4a"
10427 .IP "\fB\-msse5\fR" 4
10428 .IX Item "-msse5"
10429 .IP "\fB\-mno\-sse5\fR" 4
10430 .IX Item "-mno-sse5"
10431 .IP "\fB\-m3dnow\fR" 4
10432 .IX Item "-m3dnow"
10433 .IP "\fB\-mno\-3dnow\fR" 4
10434 .IX Item "-mno-3dnow"
10435 .IP "\fB\-mpopcnt\fR" 4
10436 .IX Item "-mpopcnt"
10437 .IP "\fB\-mno\-popcnt\fR" 4
10438 .IX Item "-mno-popcnt"
10439 .IP "\fB\-mabm\fR" 4
10440 .IX Item "-mabm"
10441 .IP "\fB\-mno\-abm\fR" 4
10442 .IX Item "-mno-abm"
10443 .PD
10444 These switches enable or disable the use of instructions in the \s-1MMX\s0,
10445 \&\s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSSE3\s0, \s-1SSE4\s0.1, \s-1AVX\s0, \s-1AES\s0, \s-1PCLMUL\s0, \s-1SSE4A\s0, \s-1SSE5\s0, \s-1ABM\s0 or
10446 3DNow! extended instruction sets.
10447 These extensions are also available as built-in functions: see
10448 \&\fBX86 Built-in Functions\fR, for details of the functions enabled and
10449 disabled by these switches.
10450 .Sp
10451 To have \s-1SSE/SSE2\s0 instructions generated automatically from floating-point
10452 code (as opposed to 387 instructions), see \fB\-mfpmath=sse\fR.
10453 .Sp
10454 \&\s-1GCC\s0 depresses SSEx instructions when \fB\-mavx\fR is used. Instead, it
10455 generates new \s-1AVX\s0 instructions or \s-1AVX\s0 equivalence for all SSEx instructions
10456 when needed.
10457 .Sp
10458 These options will enable \s-1GCC\s0 to use these extended instructions in
10459 generated code, even without \fB\-mfpmath=sse\fR.  Applications which
10460 perform runtime \s-1CPU\s0 detection must compile separate files for each
10461 supported architecture, using the appropriate flags.  In particular,
10462 the file containing the \s-1CPU\s0 detection code should be compiled without
10463 these options.
10464 .IP "\fB\-mcld\fR" 4
10465 .IX Item "-mcld"
10466 This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`cld\*(C'\fR instruction in the prologue
10467 of functions that use string instructions.  String instructions depend on
10468 the \s-1DF\s0 flag to select between autoincrement or autodecrement mode.  While the
10469 \&\s-1ABI\s0 specifies the \s-1DF\s0 flag to be cleared on function entry, some operating
10470 systems violate this specification by not clearing the \s-1DF\s0 flag in their
10471 exception dispatchers.  The exception handler can be invoked with the \s-1DF\s0 flag
10472 set which leads to wrong direction mode, when string instructions are used.
10473 This option can be enabled by default on 32\-bit x86 targets by configuring
10474 \&\s-1GCC\s0 with the \fB\-\-enable\-cld\fR configure option.  Generation of \f(CW\*(C`cld\*(C'\fR
10475 instructions can be suppressed with the \fB\-mno\-cld\fR compiler option
10476 in this case.
10477 .IP "\fB\-mcx16\fR" 4
10478 .IX Item "-mcx16"
10479 This option will enable \s-1GCC\s0 to use \s-1CMPXCHG16B\s0 instruction in generated code.
10480 \&\s-1CMPXCHG16B\s0 allows for atomic operations on 128\-bit double quadword (or oword)
10481 data types.  This is useful for high resolution counters that could be updated
10482 by multiple processors (or cores).  This instruction is generated as part of
10483 atomic built-in functions: see \fBAtomic Builtins\fR for details.
10484 .IP "\fB\-msahf\fR" 4
10485 .IX Item "-msahf"
10486 This option will enable \s-1GCC\s0 to use \s-1SAHF\s0 instruction in generated 64\-bit code.
10487 Early Intel CPUs with Intel 64 lacked \s-1LAHF\s0 and \s-1SAHF\s0 instructions supported
10488 by \s-1AMD64\s0 until introduction of Pentium 4 G1 step in December 2005.  \s-1LAHF\s0 and
10489 \&\s-1SAHF\s0 are load and store instructions, respectively, for certain status flags.
10490 In 64\-bit mode, \s-1SAHF\s0 instruction is used to optimize \f(CW\*(C`fmod\*(C'\fR, \f(CW\*(C`drem\*(C'\fR
10491 or \f(CW\*(C`remainder\*(C'\fR built-in functions: see \fBOther Builtins\fR for details.
10492 .IP "\fB\-mrecip\fR" 4
10493 .IX Item "-mrecip"
10494 This option will enable \s-1GCC\s0 to use \s-1RCPSS\s0 and \s-1RSQRTSS\s0 instructions (and their
10495 vectorized variants \s-1RCPPS\s0 and \s-1RSQRTPS\s0) with an additional Newton-Raphson step
10496 to increase precision instead of \s-1DIVSS\s0 and \s-1SQRTSS\s0 (and their vectorized
10497 variants) for single precision floating point arguments.  These instructions
10498 are generated only when \fB\-funsafe\-math\-optimizations\fR is enabled
10499 together with \fB\-finite\-math\-only\fR and \fB\-fno\-trapping\-math\fR.
10500 Note that while the throughput of the sequence is higher than the throughput
10501 of the non-reciprocal instruction, the precision of the sequence can be
10502 decreased by up to 2 ulp (i.e. the inverse of 1.0 equals 0.99999994).
10503 .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
10504 .IX Item "-mveclibabi=type"
10505 Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
10506 external library.  Supported types are \f(CW\*(C`svml\*(C'\fR for the Intel short
10507 vector math library and \f(CW\*(C`acml\*(C'\fR for the \s-1AMD\s0 math core library style
10508 of interfacing.  \s-1GCC\s0 will currently emit calls to \f(CW\*(C`vmldExp2\*(C'\fR,
10509 \&\f(CW\*(C`vmldLn2\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldPow2\*(C'\fR,
10510 \&\f(CW\*(C`vmldTanh2\*(C'\fR, \f(CW\*(C`vmldTan2\*(C'\fR, \f(CW\*(C`vmldAtan2\*(C'\fR, \f(CW\*(C`vmldAtanh2\*(C'\fR,
10511 \&\f(CW\*(C`vmldCbrt2\*(C'\fR, \f(CW\*(C`vmldSinh2\*(C'\fR, \f(CW\*(C`vmldSin2\*(C'\fR, \f(CW\*(C`vmldAsinh2\*(C'\fR,
10512 \&\f(CW\*(C`vmldAsin2\*(C'\fR, \f(CW\*(C`vmldCosh2\*(C'\fR, \f(CW\*(C`vmldCos2\*(C'\fR, \f(CW\*(C`vmldAcosh2\*(C'\fR,
10513 \&\f(CW\*(C`vmldAcos2\*(C'\fR, \f(CW\*(C`vmlsExp4\*(C'\fR, \f(CW\*(C`vmlsLn4\*(C'\fR, \f(CW\*(C`vmlsLog104\*(C'\fR,
10514 \&\f(CW\*(C`vmlsLog104\*(C'\fR, \f(CW\*(C`vmlsPow4\*(C'\fR, \f(CW\*(C`vmlsTanh4\*(C'\fR, \f(CW\*(C`vmlsTan4\*(C'\fR,
10515 \&\f(CW\*(C`vmlsAtan4\*(C'\fR, \f(CW\*(C`vmlsAtanh4\*(C'\fR, \f(CW\*(C`vmlsCbrt4\*(C'\fR, \f(CW\*(C`vmlsSinh4\*(C'\fR,
10516 \&\f(CW\*(C`vmlsSin4\*(C'\fR, \f(CW\*(C`vmlsAsinh4\*(C'\fR, \f(CW\*(C`vmlsAsin4\*(C'\fR, \f(CW\*(C`vmlsCosh4\*(C'\fR,
10517 \&\f(CW\*(C`vmlsCos4\*(C'\fR, \f(CW\*(C`vmlsAcosh4\*(C'\fR and \f(CW\*(C`vmlsAcos4\*(C'\fR for corresponding
10518 function type when \fB\-mveclibabi=svml\fR is used and \f(CW\*(C`_\|_vrd2_sin\*(C'\fR,
10519 \&\f(CW\*(C`_\|_vrd2_cos\*(C'\fR, \f(CW\*(C`_\|_vrd2_exp\*(C'\fR, \f(CW\*(C`_\|_vrd2_log\*(C'\fR, \f(CW\*(C`_\|_vrd2_log2\*(C'\fR,
10520 \&\f(CW\*(C`_\|_vrd2_log10\*(C'\fR, \f(CW\*(C`_\|_vrs4_sinf\*(C'\fR, \f(CW\*(C`_\|_vrs4_cosf\*(C'\fR,
10521 \&\f(CW\*(C`_\|_vrs4_expf\*(C'\fR, \f(CW\*(C`_\|_vrs4_logf\*(C'\fR, \f(CW\*(C`_\|_vrs4_log2f\*(C'\fR,
10522 \&\f(CW\*(C`_\|_vrs4_log10f\*(C'\fR and \f(CW\*(C`_\|_vrs4_powf\*(C'\fR for corresponding function type
10523 when \fB\-mveclibabi=acml\fR is used. Both \fB\-ftree\-vectorize\fR and
10524 \&\fB\-funsafe\-math\-optimizations\fR have to be enabled. A \s-1SVML\s0 or \s-1ACML\s0 \s-1ABI\s0
10525 compatible library will have to be specified at link time.
10526 .IP "\fB\-mpush\-args\fR" 4
10527 .IX Item "-mpush-args"
10528 .PD 0
10529 .IP "\fB\-mno\-push\-args\fR" 4
10530 .IX Item "-mno-push-args"
10531 .PD
10532 Use \s-1PUSH\s0 operations to store outgoing parameters.  This method is shorter
10533 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
10534 by default.  In some cases disabling it may improve performance because of
10535 improved scheduling and reduced dependencies.
10536 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
10537 .IX Item "-maccumulate-outgoing-args"
10538 If enabled, the maximum amount of space required for outgoing arguments will be
10539 computed in the function prologue.  This is faster on most modern CPUs
10540 because of reduced dependencies, improved scheduling and reduced stack usage
10541 when preferred stack boundary is not equal to 2.  The drawback is a notable
10542 increase in code size.  This switch implies \fB\-mno\-push\-args\fR.
10543 .IP "\fB\-mthreads\fR" 4
10544 .IX Item "-mthreads"
10545 Support thread-safe exception handling on \fBMingw32\fR.  Code that relies
10546 on thread-safe exception handling must compile and link all code with the
10547 \&\fB\-mthreads\fR option.  When compiling, \fB\-mthreads\fR defines
10548 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
10549 \&\fB\-lmingwthrd\fR which cleans up per thread exception handling data.
10550 .IP "\fB\-mno\-align\-stringops\fR" 4
10551 .IX Item "-mno-align-stringops"
10552 Do not align destination of inlined string operations.  This switch reduces
10553 code size and improves performance in case the destination is already aligned,
10554 but \s-1GCC\s0 doesn't know about it.
10555 .IP "\fB\-minline\-all\-stringops\fR" 4
10556 .IX Item "-minline-all-stringops"
10557 By default \s-1GCC\s0 inlines string operations only when destination is known to be
10558 aligned at least to 4 byte boundary.  This enables more inlining, increase code
10559 size, but may improve performance of code that depends on fast memcpy, strlen
10560 and memset for short lengths.
10561 .IP "\fB\-minline\-stringops\-dynamically\fR" 4
10562 .IX Item "-minline-stringops-dynamically"
10563 For string operation of unknown size, inline runtime checks so for small
10564 blocks inline code is used, while for large blocks library call is used.
10565 .IP "\fB\-mstringop\-strategy=\fR\fIalg\fR" 4
10566 .IX Item "-mstringop-strategy=alg"
10567 Overwrite internal decision heuristic about particular algorithm to inline
10568 string operation with.  The allowed values are \f(CW\*(C`rep_byte\*(C'\fR,
10569 \&\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
10570 of specified size, \f(CW\*(C`byte_loop\*(C'\fR, \f(CW\*(C`loop\*(C'\fR, \f(CW\*(C`unrolled_loop\*(C'\fR for
10571 expanding inline loop, \f(CW\*(C`libcall\*(C'\fR for always expanding library call.
10572 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
10573 .IX Item "-momit-leaf-frame-pointer"
10574 Don't keep the frame pointer in a register for leaf functions.  This
10575 avoids the instructions to save, set up and restore frame pointers and
10576 makes an extra register available in leaf functions.  The option
10577 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions
10578 which might make debugging harder.
10579 .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
10580 .IX Item "-mtls-direct-seg-refs"
10581 .PD 0
10582 .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
10583 .IX Item "-mno-tls-direct-seg-refs"
10584 .PD
10585 Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
10586 \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
10587 or whether the thread base pointer must be added.  Whether or not this
10588 is legal depends on the operating system, and whether it maps the
10589 segment to cover the entire \s-1TLS\s0 area.
10590 .Sp
10591 For systems that use \s-1GNU\s0 libc, the default is on.
10592 .IP "\fB\-mfused\-madd\fR" 4
10593 .IX Item "-mfused-madd"
10594 .PD 0
10595 .IP "\fB\-mno\-fused\-madd\fR" 4
10596 .IX Item "-mno-fused-madd"
10597 .PD
10598 Enable automatic generation of fused floating point multiply-add instructions
10599 if the \s-1ISA\s0 supports such instructions.  The \-mfused\-madd option is on by
10600 default.  The fused multiply-add instructions have a different
10601 rounding behavior compared to executing a multiply followed by an add.
10602 .IP "\fB\-msse2avx\fR" 4
10603 .IX Item "-msse2avx"
10604 .PD 0
10605 .IP "\fB\-mno\-sse2avx\fR" 4
10606 .IX Item "-mno-sse2avx"
10607 .PD
10608 Specify that the assembler should encode \s-1SSE\s0 instructions with \s-1VEX\s0
10609 prefix.  The option \fB\-mavx\fR turns this on by default.
10610 .PP
10611 These \fB\-m\fR switches are supported in addition to the above
10612 on \s-1AMD\s0 x86\-64 processors in 64\-bit environments.
10613 .IP "\fB\-m32\fR" 4
10614 .IX Item "-m32"
10615 .PD 0
10616 .IP "\fB\-m64\fR" 4
10617 .IX Item "-m64"
10618 .PD
10619 Generate code for a 32\-bit or 64\-bit environment.
10620 The 32\-bit environment sets int, long and pointer to 32 bits and
10621 generates code that runs on any i386 system.
10622 The 64\-bit environment sets int to 32 bits and long and pointer
10623 to 64 bits and generates code for \s-1AMD\s0's x86\-64 architecture. For
10624 darwin only the \-m64 option turns off the \fB\-fno\-pic\fR and
10625 \&\fB\-mdynamic\-no\-pic\fR options.
10626 .IP "\fB\-mno\-red\-zone\fR" 4
10627 .IX Item "-mno-red-zone"
10628 Do not use a so called red zone for x86\-64 code.  The red zone is mandated
10629 by the x86\-64 \s-1ABI\s0, it is a 128\-byte area beyond the location of the
10630 stack pointer that will not be modified by signal or interrupt handlers
10631 and therefore can be used for temporary data without adjusting the stack
10632 pointer.  The flag \fB\-mno\-red\-zone\fR disables this red zone.
10633 .IP "\fB\-mcmodel=small\fR" 4
10634 .IX Item "-mcmodel=small"
10635 Generate code for the small code model: the program and its symbols must
10636 be linked in the lower 2 \s-1GB\s0 of the address space.  Pointers are 64 bits.
10637 Programs can be statically or dynamically linked.  This is the default
10638 code model.
10639 .IP "\fB\-mcmodel=kernel\fR" 4
10640 .IX Item "-mcmodel=kernel"
10641 Generate code for the kernel code model.  The kernel runs in the
10642 negative 2 \s-1GB\s0 of the address space.
10643 This model has to be used for Linux kernel code.
10644 .IP "\fB\-mcmodel=medium\fR" 4
10645 .IX Item "-mcmodel=medium"
10646 Generate code for the medium model: The program is linked in the lower 2
10647 \&\s-1GB\s0 of the address space.  Small symbols are also placed there.  Symbols
10648 with sizes larger than \fB\-mlarge\-data\-threshold\fR are put into
10649 large data or bss sections and can be located above 2GB.  Programs can
10650 be statically or dynamically linked.
10651 .IP "\fB\-mcmodel=large\fR" 4
10652 .IX Item "-mcmodel=large"
10653 Generate code for the large model: This model makes no assumptions
10654 about addresses and sizes of sections.
10655 .PP
10656 \fI\s-1IA\-64\s0 Options\fR
10657 .IX Subsection "IA-64 Options"
10658 .PP
10659 These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
10660 .IP "\fB\-mbig\-endian\fR" 4
10661 .IX Item "-mbig-endian"
10662 Generate code for a big endian target.  This is the default for HP-UX.
10663 .IP "\fB\-mlittle\-endian\fR" 4
10664 .IX Item "-mlittle-endian"
10665 Generate code for a little endian target.  This is the default for \s-1AIX5\s0
10666 and GNU/Linux.
10667 .IP "\fB\-mgnu\-as\fR" 4
10668 .IX Item "-mgnu-as"
10669 .PD 0
10670 .IP "\fB\-mno\-gnu\-as\fR" 4
10671 .IX Item "-mno-gnu-as"
10672 .PD
10673 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
10674 .IP "\fB\-mgnu\-ld\fR" 4
10675 .IX Item "-mgnu-ld"
10676 .PD 0
10677 .IP "\fB\-mno\-gnu\-ld\fR" 4
10678 .IX Item "-mno-gnu-ld"
10679 .PD
10680 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
10681 .IP "\fB\-mno\-pic\fR" 4
10682 .IX Item "-mno-pic"
10683 Generate code that does not use a global pointer register.  The result
10684 is not position independent code, and violates the \s-1IA\-64\s0 \s-1ABI\s0.
10685 .IP "\fB\-mvolatile\-asm\-stop\fR" 4
10686 .IX Item "-mvolatile-asm-stop"
10687 .PD 0
10688 .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
10689 .IX Item "-mno-volatile-asm-stop"
10690 .PD
10691 Generate (or don't) a stop bit immediately before and after volatile asm
10692 statements.
10693 .IP "\fB\-mregister\-names\fR" 4
10694 .IX Item "-mregister-names"
10695 .PD 0
10696 .IP "\fB\-mno\-register\-names\fR" 4
10697 .IX Item "-mno-register-names"
10698 .PD
10699 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
10700 the stacked registers.  This may make assembler output more readable.
10701 .IP "\fB\-mno\-sdata\fR" 4
10702 .IX Item "-mno-sdata"
10703 .PD 0
10704 .IP "\fB\-msdata\fR" 4
10705 .IX Item "-msdata"
10706 .PD
10707 Disable (or enable) optimizations that use the small data section.  This may
10708 be useful for working around optimizer bugs.
10709 .IP "\fB\-mconstant\-gp\fR" 4
10710 .IX Item "-mconstant-gp"
10711 Generate code that uses a single constant global pointer value.  This is
10712 useful when compiling kernel code.
10713 .IP "\fB\-mauto\-pic\fR" 4
10714 .IX Item "-mauto-pic"
10715 Generate code that is self-relocatable.  This implies \fB\-mconstant\-gp\fR.
10716 This is useful when compiling firmware code.
10717 .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
10718 .IX Item "-minline-float-divide-min-latency"
10719 Generate code for inline divides of floating point values
10720 using the minimum latency algorithm.
10721 .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
10722 .IX Item "-minline-float-divide-max-throughput"
10723 Generate code for inline divides of floating point values
10724 using the maximum throughput algorithm.
10725 .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
10726 .IX Item "-minline-int-divide-min-latency"
10727 Generate code for inline divides of integer values
10728 using the minimum latency algorithm.
10729 .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
10730 .IX Item "-minline-int-divide-max-throughput"
10731 Generate code for inline divides of integer values
10732 using the maximum throughput algorithm.
10733 .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
10734 .IX Item "-minline-sqrt-min-latency"
10735 Generate code for inline square roots
10736 using the minimum latency algorithm.
10737 .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
10738 .IX Item "-minline-sqrt-max-throughput"
10739 Generate code for inline square roots
10740 using the maximum throughput algorithm.
10741 .IP "\fB\-mno\-dwarf2\-asm\fR" 4
10742 .IX Item "-mno-dwarf2-asm"
10743 .PD 0
10744 .IP "\fB\-mdwarf2\-asm\fR" 4
10745 .IX Item "-mdwarf2-asm"
10746 .PD
10747 Don't (or do) generate assembler code for the \s-1DWARF2\s0 line number debugging
10748 info.  This may be useful when not using the \s-1GNU\s0 assembler.
10749 .IP "\fB\-mearly\-stop\-bits\fR" 4
10750 .IX Item "-mearly-stop-bits"
10751 .PD 0
10752 .IP "\fB\-mno\-early\-stop\-bits\fR" 4
10753 .IX Item "-mno-early-stop-bits"
10754 .PD
10755 Allow stop bits to be placed earlier than immediately preceding the
10756 instruction that triggered the stop bit.  This can improve instruction
10757 scheduling, but does not always do so.
10758 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
10759 .IX Item "-mfixed-range=register-range"
10760 Generate code treating the given register range as fixed registers.
10761 A fixed register is one that the register allocator can not use.  This is
10762 useful when compiling kernel code.  A register range is specified as
10763 two registers separated by a dash.  Multiple register ranges can be
10764 specified separated by a comma.
10765 .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
10766 .IX Item "-mtls-size=tls-size"
10767 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 14, 22, and
10768 64.
10769 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
10770 .IX Item "-mtune=cpu-type"
10771 Tune the instruction scheduling for a particular \s-1CPU\s0, Valid values are
10772 itanium, itanium1, merced, itanium2, and mckinley.
10773 .IP "\fB\-mt\fR" 4
10774 .IX Item "-mt"
10775 .PD 0
10776 .IP "\fB\-pthread\fR" 4
10777 .IX Item "-pthread"
10778 .PD
10779 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
10780 option sets flags for both the preprocessor and linker.  It does
10781 not affect the thread safety of object code produced by the compiler or
10782 that of libraries supplied with it.  These are HP-UX specific flags.
10783 .IP "\fB\-milp32\fR" 4
10784 .IX Item "-milp32"
10785 .PD 0
10786 .IP "\fB\-mlp64\fR" 4
10787 .IX Item "-mlp64"
10788 .PD
10789 Generate code for a 32\-bit or 64\-bit environment.
10790 The 32\-bit environment sets int, long and pointer to 32 bits.
10791 The 64\-bit environment sets int to 32 bits and long and pointer
10792 to 64 bits.  These are HP-UX specific flags.
10793 .IP "\fB\-mno\-sched\-br\-data\-spec\fR" 4
10794 .IX Item "-mno-sched-br-data-spec"
10795 .PD 0
10796 .IP "\fB\-msched\-br\-data\-spec\fR" 4
10797 .IX Item "-msched-br-data-spec"
10798 .PD
10799 (Dis/En)able data speculative scheduling before reload.
10800 This will result in generation of the ld.a instructions and
10801 the corresponding check instructions (ld.c / chk.a).
10802 The default is 'disable'.
10803 .IP "\fB\-msched\-ar\-data\-spec\fR" 4
10804 .IX Item "-msched-ar-data-spec"
10805 .PD 0
10806 .IP "\fB\-mno\-sched\-ar\-data\-spec\fR" 4
10807 .IX Item "-mno-sched-ar-data-spec"
10808 .PD
10809 (En/Dis)able data speculative scheduling after reload.
10810 This will result in generation of the ld.a instructions and
10811 the corresponding check instructions (ld.c / chk.a).
10812 The default is 'enable'.
10813 .IP "\fB\-mno\-sched\-control\-spec\fR" 4
10814 .IX Item "-mno-sched-control-spec"
10815 .PD 0
10816 .IP "\fB\-msched\-control\-spec\fR" 4
10817 .IX Item "-msched-control-spec"
10818 .PD
10819 (Dis/En)able control speculative scheduling.  This feature is
10820 available only during region scheduling (i.e. before reload).
10821 This will result in generation of the ld.s instructions and
10822 the corresponding check instructions chk.s .
10823 The default is 'disable'.
10824 .IP "\fB\-msched\-br\-in\-data\-spec\fR" 4
10825 .IX Item "-msched-br-in-data-spec"
10826 .PD 0
10827 .IP "\fB\-mno\-sched\-br\-in\-data\-spec\fR" 4
10828 .IX Item "-mno-sched-br-in-data-spec"
10829 .PD
10830 (En/Dis)able speculative scheduling of the instructions that
10831 are dependent on the data speculative loads before reload.
10832 This is effective only with \fB\-msched\-br\-data\-spec\fR enabled.
10833 The default is 'enable'.
10834 .IP "\fB\-msched\-ar\-in\-data\-spec\fR" 4
10835 .IX Item "-msched-ar-in-data-spec"
10836 .PD 0
10837 .IP "\fB\-mno\-sched\-ar\-in\-data\-spec\fR" 4
10838 .IX Item "-mno-sched-ar-in-data-spec"
10839 .PD
10840 (En/Dis)able speculative scheduling of the instructions that
10841 are dependent on the data speculative loads after reload.
10842 This is effective only with \fB\-msched\-ar\-data\-spec\fR enabled.
10843 The default is 'enable'.
10844 .IP "\fB\-msched\-in\-control\-spec\fR" 4
10845 .IX Item "-msched-in-control-spec"
10846 .PD 0
10847 .IP "\fB\-mno\-sched\-in\-control\-spec\fR" 4
10848 .IX Item "-mno-sched-in-control-spec"
10849 .PD
10850 (En/Dis)able speculative scheduling of the instructions that
10851 are dependent on the control speculative loads.
10852 This is effective only with \fB\-msched\-control\-spec\fR enabled.
10853 The default is 'enable'.
10854 .IP "\fB\-msched\-ldc\fR" 4
10855 .IX Item "-msched-ldc"
10856 .PD 0
10857 .IP "\fB\-mno\-sched\-ldc\fR" 4
10858 .IX Item "-mno-sched-ldc"
10859 .PD
10860 (En/Dis)able use of simple data speculation checks ld.c .
10861 If disabled, only chk.a instructions will be emitted to check
10862 data speculative loads.
10863 The default is 'enable'.
10864 .IP "\fB\-mno\-sched\-control\-ldc\fR" 4
10865 .IX Item "-mno-sched-control-ldc"
10866 .PD 0
10867 .IP "\fB\-msched\-control\-ldc\fR" 4
10868 .IX Item "-msched-control-ldc"
10869 .PD
10870 (Dis/En)able use of ld.c instructions to check control speculative loads.
10871 If enabled, in case of control speculative load with no speculatively
10872 scheduled dependent instructions this load will be emitted as ld.sa and
10873 ld.c will be used to check it.
10874 The default is 'disable'.
10875 .IP "\fB\-mno\-sched\-spec\-verbose\fR" 4
10876 .IX Item "-mno-sched-spec-verbose"
10877 .PD 0
10878 .IP "\fB\-msched\-spec\-verbose\fR" 4
10879 .IX Item "-msched-spec-verbose"
10880 .PD
10881 (Dis/En)able printing of the information about speculative motions.
10882 .IP "\fB\-mno\-sched\-prefer\-non\-data\-spec\-insns\fR" 4
10883 .IX Item "-mno-sched-prefer-non-data-spec-insns"
10884 .PD 0
10885 .IP "\fB\-msched\-prefer\-non\-data\-spec\-insns\fR" 4
10886 .IX Item "-msched-prefer-non-data-spec-insns"
10887 .PD
10888 If enabled, data speculative instructions will be chosen for schedule
10889 only if there are no other choices at the moment.  This will make
10890 the use of the data speculation much more conservative.
10891 The default is 'disable'.
10892 .IP "\fB\-mno\-sched\-prefer\-non\-control\-spec\-insns\fR" 4
10893 .IX Item "-mno-sched-prefer-non-control-spec-insns"
10894 .PD 0
10895 .IP "\fB\-msched\-prefer\-non\-control\-spec\-insns\fR" 4
10896 .IX Item "-msched-prefer-non-control-spec-insns"
10897 .PD
10898 If enabled, control speculative instructions will be chosen for schedule
10899 only if there are no other choices at the moment.  This will make
10900 the use of the control speculation much more conservative.
10901 The default is 'disable'.
10902 .IP "\fB\-mno\-sched\-count\-spec\-in\-critical\-path\fR" 4
10903 .IX Item "-mno-sched-count-spec-in-critical-path"
10904 .PD 0
10905 .IP "\fB\-msched\-count\-spec\-in\-critical\-path\fR" 4
10906 .IX Item "-msched-count-spec-in-critical-path"
10907 .PD
10908 If enabled, speculative dependencies will be considered during
10909 computation of the instructions priorities.  This will make the use of the
10910 speculation a bit more conservative.
10911 The default is 'disable'.
10912 .PP
10913 \fIM32C Options\fR
10914 .IX Subsection "M32C Options"
10915 .IP "\fB\-mcpu=\fR\fIname\fR" 4
10916 .IX Item "-mcpu=name"
10917 Select the \s-1CPU\s0 for which code is generated.  \fIname\fR may be one of
10918 \&\fBr8c\fR for the R8C/Tiny series, \fBm16c\fR for the M16C (up to
10919 /60) series, \fBm32cm\fR for the M16C/80 series, or \fBm32c\fR for
10920 the M32C/80 series.
10921 .IP "\fB\-msim\fR" 4
10922 .IX Item "-msim"
10923 Specifies that the program will be run on the simulator.  This causes
10924 an alternate runtime library to be linked in which supports, for
10925 example, file I/O.  You must not use this option when generating
10926 programs that will run on real hardware; you must provide your own
10927 runtime library for whatever I/O functions are needed.
10928 .IP "\fB\-memregs=\fR\fInumber\fR" 4
10929 .IX Item "-memregs=number"
10930 Specifies the number of memory-based pseudo-registers \s-1GCC\s0 will use
10931 during code generation.  These pseudo-registers will be used like real
10932 registers, so there is a tradeoff between \s-1GCC\s0's ability to fit the
10933 code into available registers, and the performance penalty of using
10934 memory instead of registers.  Note that all modules in a program must
10935 be compiled with the same value for this option.  Because of that, you
10936 must not use this option with the default runtime libraries gcc
10937 builds.
10938 .PP
10939 \fIM32R/D Options\fR
10940 .IX Subsection "M32R/D Options"
10941 .PP
10942 These \fB\-m\fR options are defined for Renesas M32R/D architectures:
10943 .IP "\fB\-m32r2\fR" 4
10944 .IX Item "-m32r2"
10945 Generate code for the M32R/2.
10946 .IP "\fB\-m32rx\fR" 4
10947 .IX Item "-m32rx"
10948 Generate code for the M32R/X.
10949 .IP "\fB\-m32r\fR" 4
10950 .IX Item "-m32r"
10951 Generate code for the M32R.  This is the default.
10952 .IP "\fB\-mmodel=small\fR" 4
10953 .IX Item "-mmodel=small"
10954 Assume all objects live in the lower 16MB of memory (so that their addresses
10955 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
10956 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
10957 This is the default.
10958 .Sp
10959 The addressability of a particular object can be set with the
10960 \&\f(CW\*(C`model\*(C'\fR attribute.
10961 .IP "\fB\-mmodel=medium\fR" 4
10962 .IX Item "-mmodel=medium"
10963 Assume objects may be anywhere in the 32\-bit address space (the compiler
10964 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
10965 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
10966 .IP "\fB\-mmodel=large\fR" 4
10967 .IX Item "-mmodel=large"
10968 Assume objects may be anywhere in the 32\-bit address space (the compiler
10969 will generate \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
10970 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
10971 (the compiler will generate the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
10972 instruction sequence).
10973 .IP "\fB\-msdata=none\fR" 4
10974 .IX Item "-msdata=none"
10975 Disable use of the small data area.  Variables will be put into
10976 one of \fB.data\fR, \fBbss\fR, or \fB.rodata\fR (unless the
10977 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
10978 This is the default.
10979 .Sp
10980 The small data area consists of sections \fB.sdata\fR and \fB.sbss\fR.
10981 Objects may be explicitly put in the small data area with the
10982 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
10983 .IP "\fB\-msdata=sdata\fR" 4
10984 .IX Item "-msdata=sdata"
10985 Put small global and static data in the small data area, but do not
10986 generate special code to reference them.
10987 .IP "\fB\-msdata=use\fR" 4
10988 .IX Item "-msdata=use"
10989 Put small global and static data in the small data area, and generate
10990 special instructions to reference them.
10991 .IP "\fB\-G\fR \fInum\fR" 4
10992 .IX Item "-G num"
10993 Put global and static objects less than or equal to \fInum\fR bytes
10994 into the small data or bss sections instead of the normal data or bss
10995 sections.  The default value of \fInum\fR is 8.
10996 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
10997 for this option to have any effect.
10998 .Sp
10999 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
11000 Compiling with different values of \fInum\fR may or may not work; if it
11001 doesn't the linker will give an error message\-\-\-incorrect code will not be
11002 generated.
11003 .IP "\fB\-mdebug\fR" 4
11004 .IX Item "-mdebug"
11005 Makes the M32R specific code in the compiler display some statistics
11006 that might help in debugging programs.
11007 .IP "\fB\-malign\-loops\fR" 4
11008 .IX Item "-malign-loops"
11009 Align all loops to a 32\-byte boundary.
11010 .IP "\fB\-mno\-align\-loops\fR" 4
11011 .IX Item "-mno-align-loops"
11012 Do not enforce a 32\-byte alignment for loops.  This is the default.
11013 .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
11014 .IX Item "-missue-rate=number"
11015 Issue \fInumber\fR instructions per cycle.  \fInumber\fR can only be 1
11016 or 2.
11017 .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
11018 .IX Item "-mbranch-cost=number"
11019 \&\fInumber\fR can only be 1 or 2.  If it is 1 then branches will be
11020 preferred over conditional code, if it is 2, then the opposite will
11021 apply.
11022 .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
11023 .IX Item "-mflush-trap=number"
11024 Specifies the trap number to use to flush the cache.  The default is
11025 12.  Valid numbers are between 0 and 15 inclusive.
11026 .IP "\fB\-mno\-flush\-trap\fR" 4
11027 .IX Item "-mno-flush-trap"
11028 Specifies that the cache cannot be flushed by using a trap.
11029 .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
11030 .IX Item "-mflush-func=name"
11031 Specifies the name of the operating system function to call to flush
11032 the cache.  The default is \fI_flush_cache\fR, but a function call
11033 will only be used if a trap is not available.
11034 .IP "\fB\-mno\-flush\-func\fR" 4
11035 .IX Item "-mno-flush-func"
11036 Indicates that there is no \s-1OS\s0 function for flushing the cache.
11037 .PP
11038 \fIM680x0 Options\fR
11039 .IX Subsection "M680x0 Options"
11040 .PP
11041 These are the \fB\-m\fR options defined for M680x0 and ColdFire processors.
11042 The default settings depend on which architecture was selected when
11043 the compiler was configured; the defaults for the most common choices
11044 are given below.
11045 .IP "\fB\-march=\fR\fIarch\fR" 4
11046 .IX Item "-march=arch"
11047 Generate code for a specific M680x0 or ColdFire instruction set
11048 architecture.  Permissible values of \fIarch\fR for M680x0
11049 architectures are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
11050 \&\fB68030\fR, \fB68040\fR, \fB68060\fR and \fBcpu32\fR.  ColdFire
11051 architectures are selected according to Freescale's \s-1ISA\s0 classification
11052 and the permissible values are: \fBisaa\fR, \fBisaaplus\fR,
11053 \&\fBisab\fR and \fBisac\fR.
11054 .Sp
11055 gcc defines a macro \fB_\|_mcf\fR\fIarch\fR\fB_\|_\fR whenever it is generating
11056 code for a ColdFire target.  The \fIarch\fR in this macro is one of the
11057 \&\fB\-march\fR arguments given above.
11058 .Sp
11059 When used together, \fB\-march\fR and \fB\-mtune\fR select code
11060 that runs on a family of similar processors but that is optimized
11061 for a particular microarchitecture.
11062 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
11063 .IX Item "-mcpu=cpu"
11064 Generate code for a specific M680x0 or ColdFire processor.
11065 The M680x0 \fIcpu\fRs are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
11066 \&\fB68030\fR, \fB68040\fR, \fB68060\fR, \fB68302\fR, \fB68332\fR
11067 and \fBcpu32\fR.  The ColdFire \fIcpu\fRs are given by the table
11068 below, which also classifies the CPUs into families:
11069 .RS 4
11070 .IP "Family : \fB\-mcpu\fR arguments" 4
11071 .IX Item "Family : -mcpu arguments"
11072 .PD 0
11073 .IP "\fB51qe\fR : \fB51qe\fR" 4
11074 .IX Item "51qe : 51qe"
11075 .IP "\fB5206\fR : \fB5202\fR \fB5204\fR \fB5206\fR" 4
11076 .IX Item "5206 : 5202 5204 5206"
11077 .IP "\fB5206e\fR : \fB5206e\fR" 4
11078 .IX Item "5206e : 5206e"
11079 .IP "\fB5208\fR : \fB5207\fR \fB5208\fR" 4
11080 .IX Item "5208 : 5207 5208"
11081 .IP "\fB5211a\fR : \fB5210a\fR \fB5211a\fR" 4
11082 .IX Item "5211a : 5210a 5211a"
11083 .IP "\fB5213\fR : \fB5211\fR \fB5212\fR \fB5213\fR" 4
11084 .IX Item "5213 : 5211 5212 5213"
11085 .IP "\fB5216\fR : \fB5214\fR \fB5216\fR" 4
11086 .IX Item "5216 : 5214 5216"
11087 .IP "\fB52235\fR : \fB52230\fR \fB52231\fR \fB52232\fR \fB52233\fR \fB52234\fR \fB52235\fR" 4
11088 .IX Item "52235 : 52230 52231 52232 52233 52234 52235"
11089 .IP "\fB5225\fR : \fB5224\fR \fB5225\fR" 4
11090 .IX Item "5225 : 5224 5225"
11091 .IP "\fB5235\fR : \fB5232\fR \fB5233\fR \fB5234\fR \fB5235\fR \fB523x\fR" 4
11092 .IX Item "5235 : 5232 5233 5234 5235 523x"
11093 .IP "\fB5249\fR : \fB5249\fR" 4
11094 .IX Item "5249 : 5249"
11095 .IP "\fB5250\fR : \fB5250\fR" 4
11096 .IX Item "5250 : 5250"
11097 .IP "\fB5271\fR : \fB5270\fR \fB5271\fR" 4
11098 .IX Item "5271 : 5270 5271"
11099 .IP "\fB5272\fR : \fB5272\fR" 4
11100 .IX Item "5272 : 5272"
11101 .IP "\fB5275\fR : \fB5274\fR \fB5275\fR" 4
11102 .IX Item "5275 : 5274 5275"
11103 .IP "\fB5282\fR : \fB5280\fR \fB5281\fR \fB5282\fR \fB528x\fR" 4
11104 .IX Item "5282 : 5280 5281 5282 528x"
11105 .IP "\fB5307\fR : \fB5307\fR" 4
11106 .IX Item "5307 : 5307"
11107 .IP "\fB5329\fR : \fB5327\fR \fB5328\fR \fB5329\fR \fB532x\fR" 4
11108 .IX Item "5329 : 5327 5328 5329 532x"
11109 .IP "\fB5373\fR : \fB5372\fR \fB5373\fR \fB537x\fR" 4
11110 .IX Item "5373 : 5372 5373 537x"
11111 .IP "\fB5407\fR : \fB5407\fR" 4
11112 .IX Item "5407 : 5407"
11113 .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
11114 .IX Item "5475 : 5470 5471 5472 5473 5474 5475 547x 5480 5481 5482 5483 5484 5485"
11115 .RE
11116 .RS 4
11117 .PD
11118 .Sp
11119 \&\fB\-mcpu=\fR\fIcpu\fR overrides \fB\-march=\fR\fIarch\fR if
11120 \&\fIarch\fR is compatible with \fIcpu\fR.  Other combinations of
11121 \&\fB\-mcpu\fR and \fB\-march\fR are rejected.
11122 .Sp
11123 gcc defines the macro \fB_\|_mcf_cpu_\fR\fIcpu\fR when ColdFire target
11124 \&\fIcpu\fR is selected.  It also defines \fB_\|_mcf_family_\fR\fIfamily\fR,
11125 where the value of \fIfamily\fR is given by the table above.
11126 .RE
11127 .IP "\fB\-mtune=\fR\fItune\fR" 4
11128 .IX Item "-mtune=tune"
11129 Tune the code for a particular microarchitecture, within the
11130 constraints set by \fB\-march\fR and \fB\-mcpu\fR.
11131 The M680x0 microarchitectures are: \fB68000\fR, \fB68010\fR,
11132 \&\fB68020\fR, \fB68030\fR, \fB68040\fR, \fB68060\fR
11133 and \fBcpu32\fR.  The ColdFire microarchitectures
11134 are: \fBcfv1\fR, \fBcfv2\fR, \fBcfv3\fR, \fBcfv4\fR and \fBcfv4e\fR.
11135 .Sp
11136 You can also use \fB\-mtune=68020\-40\fR for code that needs
11137 to run relatively well on 68020, 68030 and 68040 targets.
11138 \&\fB\-mtune=68020\-60\fR is similar but includes 68060 targets
11139 as well.  These two options select the same tuning decisions as
11140 \&\fB\-m68020\-40\fR and \fB\-m68020\-60\fR respectively.
11141 .Sp
11142 gcc defines the macros \fB_\|_mc\fR\fIarch\fR and \fB_\|_mc\fR\fIarch\fR\fB_\|_\fR
11143 when tuning for 680x0 architecture \fIarch\fR.  It also defines
11144 \&\fBmc\fR\fIarch\fR unless either \fB\-ansi\fR or a non-GNU \fB\-std\fR
11145 option is used.  If gcc is tuning for a range of architectures,
11146 as selected by \fB\-mtune=68020\-40\fR or \fB\-mtune=68020\-60\fR,
11147 it defines the macros for every architecture in the range.
11148 .Sp
11149 gcc also defines the macro \fB_\|_m\fR\fIuarch\fR\fB_\|_\fR when tuning for
11150 ColdFire microarchitecture \fIuarch\fR, where \fIuarch\fR is one
11151 of the arguments given above.
11152 .IP "\fB\-m68000\fR" 4
11153 .IX Item "-m68000"
11154 .PD 0
11155 .IP "\fB\-mc68000\fR" 4
11156 .IX Item "-mc68000"
11157 .PD
11158 Generate output for a 68000.  This is the default
11159 when the compiler is configured for 68000\-based systems.
11160 It is equivalent to \fB\-march=68000\fR.
11161 .Sp
11162 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
11163 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
11164 .IP "\fB\-m68010\fR" 4
11165 .IX Item "-m68010"
11166 Generate output for a 68010.  This is the default
11167 when the compiler is configured for 68010\-based systems.
11168 It is equivalent to \fB\-march=68010\fR.
11169 .IP "\fB\-m68020\fR" 4
11170 .IX Item "-m68020"
11171 .PD 0
11172 .IP "\fB\-mc68020\fR" 4
11173 .IX Item "-mc68020"
11174 .PD
11175 Generate output for a 68020.  This is the default
11176 when the compiler is configured for 68020\-based systems.
11177 It is equivalent to \fB\-march=68020\fR.
11178 .IP "\fB\-m68030\fR" 4
11179 .IX Item "-m68030"
11180 Generate output for a 68030.  This is the default when the compiler is
11181 configured for 68030\-based systems.  It is equivalent to
11182 \&\fB\-march=68030\fR.
11183 .IP "\fB\-m68040\fR" 4
11184 .IX Item "-m68040"
11185 Generate output for a 68040.  This is the default when the compiler is
11186 configured for 68040\-based systems.  It is equivalent to
11187 \&\fB\-march=68040\fR.
11188 .Sp
11189 This option inhibits the use of 68881/68882 instructions that have to be
11190 emulated by software on the 68040.  Use this option if your 68040 does not
11191 have code to emulate those instructions.
11192 .IP "\fB\-m68060\fR" 4
11193 .IX Item "-m68060"
11194 Generate output for a 68060.  This is the default when the compiler is
11195 configured for 68060\-based systems.  It is equivalent to
11196 \&\fB\-march=68060\fR.
11197 .Sp
11198 This option inhibits the use of 68020 and 68881/68882 instructions that
11199 have to be emulated by software on the 68060.  Use this option if your 68060
11200 does not have code to emulate those instructions.
11201 .IP "\fB\-mcpu32\fR" 4
11202 .IX Item "-mcpu32"
11203 Generate output for a \s-1CPU32\s0.  This is the default
11204 when the compiler is configured for CPU32\-based systems.
11205 It is equivalent to \fB\-march=cpu32\fR.
11206 .Sp
11207 Use this option for microcontrollers with a
11208 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
11209 68336, 68340, 68341, 68349 and 68360.
11210 .IP "\fB\-m5200\fR" 4
11211 .IX Item "-m5200"
11212 Generate output for a 520X ColdFire \s-1CPU\s0.  This is the default
11213 when the compiler is configured for 520X\-based systems.
11214 It is equivalent to \fB\-mcpu=5206\fR, and is now deprecated
11215 in favor of that option.
11216 .Sp
11217 Use this option for microcontroller with a 5200 core, including
11218 the \s-1MCF5202\s0, \s-1MCF5203\s0, \s-1MCF5204\s0 and \s-1MCF5206\s0.
11219 .IP "\fB\-m5206e\fR" 4
11220 .IX Item "-m5206e"
11221 Generate output for a 5206e ColdFire \s-1CPU\s0.  The option is now
11222 deprecated in favor of the equivalent \fB\-mcpu=5206e\fR.
11223 .IP "\fB\-m528x\fR" 4
11224 .IX Item "-m528x"
11225 Generate output for a member of the ColdFire 528X family.
11226 The option is now deprecated in favor of the equivalent
11227 \&\fB\-mcpu=528x\fR.
11228 .IP "\fB\-m5307\fR" 4
11229 .IX Item "-m5307"
11230 Generate output for a ColdFire 5307 \s-1CPU\s0.  The option is now deprecated
11231 in favor of the equivalent \fB\-mcpu=5307\fR.
11232 .IP "\fB\-m5407\fR" 4
11233 .IX Item "-m5407"
11234 Generate output for a ColdFire 5407 \s-1CPU\s0.  The option is now deprecated
11235 in favor of the equivalent \fB\-mcpu=5407\fR.
11236 .IP "\fB\-mcfv4e\fR" 4
11237 .IX Item "-mcfv4e"
11238 Generate output for a ColdFire V4e family \s-1CPU\s0 (e.g. 547x/548x).
11239 This includes use of hardware floating point instructions.
11240 The option is equivalent to \fB\-mcpu=547x\fR, and is now
11241 deprecated in favor of that option.
11242 .IP "\fB\-m68020\-40\fR" 4
11243 .IX Item "-m68020-40"
11244 Generate output for a 68040, without using any of the new instructions.
11245 This results in code which can run relatively efficiently on either a
11246 68020/68881 or a 68030 or a 68040.  The generated code does use the
11247 68881 instructions that are emulated on the 68040.
11248 .Sp
11249 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-40\fR.
11250 .IP "\fB\-m68020\-60\fR" 4
11251 .IX Item "-m68020-60"
11252 Generate output for a 68060, without using any of the new instructions.
11253 This results in code which can run relatively efficiently on either a
11254 68020/68881 or a 68030 or a 68040.  The generated code does use the
11255 68881 instructions that are emulated on the 68060.
11256 .Sp
11257 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-60\fR.
11258 .IP "\fB\-mhard\-float\fR" 4
11259 .IX Item "-mhard-float"
11260 .PD 0
11261 .IP "\fB\-m68881\fR" 4
11262 .IX Item "-m68881"
11263 .PD
11264 Generate floating-point instructions.  This is the default for 68020
11265 and above, and for ColdFire devices that have an \s-1FPU\s0.  It defines the
11266 macro \fB_\|_HAVE_68881_\|_\fR on M680x0 targets and \fB_\|_mcffpu_\|_\fR
11267 on ColdFire targets.
11268 .IP "\fB\-msoft\-float\fR" 4
11269 .IX Item "-msoft-float"
11270 Do not generate floating-point instructions; use library calls instead.
11271 This is the default for 68000, 68010, and 68832 targets.  It is also
11272 the default for ColdFire devices that have no \s-1FPU\s0.
11273 .IP "\fB\-mdiv\fR" 4
11274 .IX Item "-mdiv"
11275 .PD 0
11276 .IP "\fB\-mno\-div\fR" 4
11277 .IX Item "-mno-div"
11278 .PD
11279 Generate (do not generate) ColdFire hardware divide and remainder
11280 instructions.  If \fB\-march\fR is used without \fB\-mcpu\fR,
11281 the default is \*(L"on\*(R" for ColdFire architectures and \*(L"off\*(R" for M680x0
11282 architectures.  Otherwise, the default is taken from the target \s-1CPU\s0
11283 (either the default \s-1CPU\s0, or the one specified by \fB\-mcpu\fR).  For
11284 example, the default is \*(L"off\*(R" for \fB\-mcpu=5206\fR and \*(L"on\*(R" for
11285 \&\fB\-mcpu=5206e\fR.
11286 .Sp
11287 gcc defines the macro \fB_\|_mcfhwdiv_\|_\fR when this option is enabled.
11288 .IP "\fB\-mshort\fR" 4
11289 .IX Item "-mshort"
11290 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
11291 Additionally, parameters passed on the stack are also aligned to a
11292 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
11293 .IP "\fB\-mno\-short\fR" 4
11294 .IX Item "-mno-short"
11295 Do not consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide.  This is the default.
11296 .IP "\fB\-mnobitfield\fR" 4
11297 .IX Item "-mnobitfield"
11298 .PD 0
11299 .IP "\fB\-mno\-bitfield\fR" 4
11300 .IX Item "-mno-bitfield"
11301 .PD
11302 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
11303 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
11304 .IP "\fB\-mbitfield\fR" 4
11305 .IX Item "-mbitfield"
11306 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
11307 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
11308 designed for a 68020.
11309 .IP "\fB\-mrtd\fR" 4
11310 .IX Item "-mrtd"
11311 Use a different function-calling convention, in which functions
11312 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
11313 instruction, which pops their arguments while returning.  This
11314 saves one instruction in the caller since there is no need to pop
11315 the arguments there.
11316 .Sp
11317 This calling convention is incompatible with the one normally
11318 used on Unix, so you cannot use it if you need to call libraries
11319 compiled with the Unix compiler.
11320 .Sp
11321 Also, you must provide function prototypes for all functions that
11322 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
11323 otherwise incorrect code will be generated for calls to those
11324 functions.
11325 .Sp
11326 In addition, seriously incorrect code will result if you call a
11327 function with too many arguments.  (Normally, extra arguments are
11328 harmlessly ignored.)
11329 .Sp
11330 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
11331 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
11332 .IP "\fB\-mno\-rtd\fR" 4
11333 .IX Item "-mno-rtd"
11334 Do not use the calling conventions selected by \fB\-mrtd\fR.
11335 This is the default.
11336 .IP "\fB\-malign\-int\fR" 4
11337 .IX Item "-malign-int"
11338 .PD 0
11339 .IP "\fB\-mno\-align\-int\fR" 4
11340 .IX Item "-mno-align-int"
11341 .PD
11342 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,
11343 \&\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
11344 boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
11345 Aligning variables on 32\-bit boundaries produces code that runs somewhat
11346 faster on processors with 32\-bit busses at the expense of more memory.
11347 .Sp
11348 \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0 will
11349 align structures containing the above types  differently than
11350 most published application binary interface specifications for the m68k.
11351 .IP "\fB\-mpcrel\fR" 4
11352 .IX Item "-mpcrel"
11353 Use the pc-relative addressing mode of the 68000 directly, instead of
11354 using a global offset table.  At present, this option implies \fB\-fpic\fR,
11355 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
11356 not presently supported with \fB\-mpcrel\fR, though this could be supported for
11357 68020 and higher processors.
11358 .IP "\fB\-mno\-strict\-align\fR" 4
11359 .IX Item "-mno-strict-align"
11360 .PD 0
11361 .IP "\fB\-mstrict\-align\fR" 4
11362 .IX Item "-mstrict-align"
11363 .PD
11364 Do not (do) assume that unaligned memory references will be handled by
11365 the system.
11366 .IP "\fB\-msep\-data\fR" 4
11367 .IX Item "-msep-data"
11368 Generate code that allows the data segment to be located in a different
11369 area of memory from the text segment.  This allows for execute in place in
11370 an environment without virtual memory management.  This option implies
11371 \&\fB\-fPIC\fR.
11372 .IP "\fB\-mno\-sep\-data\fR" 4
11373 .IX Item "-mno-sep-data"
11374 Generate code that assumes that the data segment follows the text segment.
11375 This is the default.
11376 .IP "\fB\-mid\-shared\-library\fR" 4
11377 .IX Item "-mid-shared-library"
11378 Generate code that supports shared libraries via the library \s-1ID\s0 method.
11379 This allows for execute in place and shared libraries in an environment
11380 without virtual memory management.  This option implies \fB\-fPIC\fR.
11381 .IP "\fB\-mno\-id\-shared\-library\fR" 4
11382 .IX Item "-mno-id-shared-library"
11383 Generate code that doesn't assume \s-1ID\s0 based shared libraries are being used.
11384 This is the default.
11385 .IP "\fB\-mshared\-library\-id=n\fR" 4
11386 .IX Item "-mshared-library-id=n"
11387 Specified the identification number of the \s-1ID\s0 based shared library being
11388 compiled.  Specifying a value of 0 will generate more compact code, specifying
11389 other values will force the allocation of that number to the current
11390 library but is no more space or time efficient than omitting this option.
11391 .IP "\fB\-mxgot\fR" 4
11392 .IX Item "-mxgot"
11393 .PD 0
11394 .IP "\fB\-mno\-xgot\fR" 4
11395 .IX Item "-mno-xgot"
11396 .PD
11397 When generating position-independent code for ColdFire, generate code
11398 that works if the \s-1GOT\s0 has more than 8192 entries.  This code is
11399 larger and slower than code generated without this option.  On M680x0
11400 processors, this option is not needed; \fB\-fPIC\fR suffices.
11401 .Sp
11402 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
11403 While this is relatively efficient, it only works if the \s-1GOT\s0
11404 is smaller than about 64k.  Anything larger causes the linker
11405 to report an error such as:
11406 .Sp
11407 .Vb 1
11408 \&        relocation truncated to fit: R_68K_GOT16O foobar
11409 .Ve
11410 .Sp
11411 If this happens, you should recompile your code with \fB\-mxgot\fR.
11412 It should then work with very large GOTs.  However, code generated with
11413 \&\fB\-mxgot\fR is less efficient, since it takes 4 instructions to fetch
11414 the value of a global symbol.
11415 .Sp
11416 Note that some linkers, including newer versions of the \s-1GNU\s0 linker,
11417 can create multiple GOTs and sort \s-1GOT\s0 entries.  If you have such a linker,
11418 you should only need to use \fB\-mxgot\fR when compiling a single
11419 object file that accesses more than 8192 \s-1GOT\s0 entries.  Very few do.
11420 .Sp
11421 These options have no effect unless \s-1GCC\s0 is generating
11422 position-independent code.
11423 .PP
11424 \fIM68hc1x Options\fR
11425 .IX Subsection "M68hc1x Options"
11426 .PP
11427 These are the \fB\-m\fR options defined for the 68hc11 and 68hc12
11428 microcontrollers.  The default values for these options depends on
11429 which style of microcontroller was selected when the compiler was configured;
11430 the defaults for the most common choices are given below.
11431 .IP "\fB\-m6811\fR" 4
11432 .IX Item "-m6811"
11433 .PD 0
11434 .IP "\fB\-m68hc11\fR" 4
11435 .IX Item "-m68hc11"
11436 .PD
11437 Generate output for a 68HC11.  This is the default
11438 when the compiler is configured for 68HC11\-based systems.
11439 .IP "\fB\-m6812\fR" 4
11440 .IX Item "-m6812"
11441 .PD 0
11442 .IP "\fB\-m68hc12\fR" 4
11443 .IX Item "-m68hc12"
11444 .PD
11445 Generate output for a 68HC12.  This is the default
11446 when the compiler is configured for 68HC12\-based systems.
11447 .IP "\fB\-m68S12\fR" 4
11448 .IX Item "-m68S12"
11449 .PD 0
11450 .IP "\fB\-m68hcs12\fR" 4
11451 .IX Item "-m68hcs12"
11452 .PD
11453 Generate output for a 68HCS12.
11454 .IP "\fB\-mauto\-incdec\fR" 4
11455 .IX Item "-mauto-incdec"
11456 Enable the use of 68HC12 pre and post auto-increment and auto-decrement
11457 addressing modes.
11458 .IP "\fB\-minmax\fR" 4
11459 .IX Item "-minmax"
11460 .PD 0
11461 .IP "\fB\-nominmax\fR" 4
11462 .IX Item "-nominmax"
11463 .PD
11464 Enable the use of 68HC12 min and max instructions.
11465 .IP "\fB\-mlong\-calls\fR" 4
11466 .IX Item "-mlong-calls"
11467 .PD 0
11468 .IP "\fB\-mno\-long\-calls\fR" 4
11469 .IX Item "-mno-long-calls"
11470 .PD
11471 Treat all calls as being far away (near).  If calls are assumed to be
11472 far away, the compiler will use the \f(CW\*(C`call\*(C'\fR instruction to
11473 call a function and the \f(CW\*(C`rtc\*(C'\fR instruction for returning.
11474 .IP "\fB\-mshort\fR" 4
11475 .IX Item "-mshort"
11476 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
11477 .IP "\fB\-msoft\-reg\-count=\fR\fIcount\fR" 4
11478 .IX Item "-msoft-reg-count=count"
11479 Specify the number of pseudo-soft registers which are used for the
11480 code generation.  The maximum number is 32.  Using more pseudo-soft
11481 register may or may not result in better code depending on the program.
11482 The default is 4 for 68HC11 and 2 for 68HC12.
11483 .PP
11484 \fIMCore Options\fR
11485 .IX Subsection "MCore Options"
11486 .PP
11487 These are the \fB\-m\fR options defined for the Motorola M*Core
11488 processors.
11489 .IP "\fB\-mhardlit\fR" 4
11490 .IX Item "-mhardlit"
11491 .PD 0
11492 .IP "\fB\-mno\-hardlit\fR" 4
11493 .IX Item "-mno-hardlit"
11494 .PD
11495 Inline constants into the code stream if it can be done in two
11496 instructions or less.
11497 .IP "\fB\-mdiv\fR" 4
11498 .IX Item "-mdiv"
11499 .PD 0
11500 .IP "\fB\-mno\-div\fR" 4
11501 .IX Item "-mno-div"
11502 .PD
11503 Use the divide instruction.  (Enabled by default).
11504 .IP "\fB\-mrelax\-immediate\fR" 4
11505 .IX Item "-mrelax-immediate"
11506 .PD 0
11507 .IP "\fB\-mno\-relax\-immediate\fR" 4
11508 .IX Item "-mno-relax-immediate"
11509 .PD
11510 Allow arbitrary sized immediates in bit operations.
11511 .IP "\fB\-mwide\-bitfields\fR" 4
11512 .IX Item "-mwide-bitfields"
11513 .PD 0
11514 .IP "\fB\-mno\-wide\-bitfields\fR" 4
11515 .IX Item "-mno-wide-bitfields"
11516 .PD
11517 Always treat bit-fields as int-sized.
11518 .IP "\fB\-m4byte\-functions\fR" 4
11519 .IX Item "-m4byte-functions"
11520 .PD 0
11521 .IP "\fB\-mno\-4byte\-functions\fR" 4
11522 .IX Item "-mno-4byte-functions"
11523 .PD
11524 Force all functions to be aligned to a four byte boundary.
11525 .IP "\fB\-mcallgraph\-data\fR" 4
11526 .IX Item "-mcallgraph-data"
11527 .PD 0
11528 .IP "\fB\-mno\-callgraph\-data\fR" 4
11529 .IX Item "-mno-callgraph-data"
11530 .PD
11531 Emit callgraph information.
11532 .IP "\fB\-mslow\-bytes\fR" 4
11533 .IX Item "-mslow-bytes"
11534 .PD 0
11535 .IP "\fB\-mno\-slow\-bytes\fR" 4
11536 .IX Item "-mno-slow-bytes"
11537 .PD
11538 Prefer word access when reading byte quantities.
11539 .IP "\fB\-mlittle\-endian\fR" 4
11540 .IX Item "-mlittle-endian"
11541 .PD 0
11542 .IP "\fB\-mbig\-endian\fR" 4
11543 .IX Item "-mbig-endian"
11544 .PD
11545 Generate code for a little endian target.
11546 .IP "\fB\-m210\fR" 4
11547 .IX Item "-m210"
11548 .PD 0
11549 .IP "\fB\-m340\fR" 4
11550 .IX Item "-m340"
11551 .PD
11552 Generate code for the 210 processor.
11553 .IP "\fB\-mno\-lsim\fR" 4
11554 .IX Item "-mno-lsim"
11555 Assume that run-time support has been provided and so omit the
11556 simulator library (\fIlibsim.a)\fR from the linker command line.
11557 .IP "\fB\-mstack\-increment=\fR\fIsize\fR" 4
11558 .IX Item "-mstack-increment=size"
11559 Set the maximum amount for a single stack increment operation.  Large
11560 values can increase the speed of programs which contain functions
11561 that need a large amount of stack space, but they can also trigger a
11562 segmentation fault if the stack is extended too much.  The default
11563 value is 0x1000.
11564 .PP
11565 \fI\s-1MIPS\s0 Options\fR
11566 .IX Subsection "MIPS Options"
11567 .IP "\fB\-EB\fR" 4
11568 .IX Item "-EB"
11569 Generate big-endian code.
11570 .IP "\fB\-EL\fR" 4
11571 .IX Item "-EL"
11572 Generate little-endian code.  This is the default for \fBmips*el\-*\-*\fR
11573 configurations.
11574 .IP "\fB\-march=\fR\fIarch\fR" 4
11575 .IX Item "-march=arch"
11576 Generate code that will run on \fIarch\fR, which can be the name of a
11577 generic \s-1MIPS\s0 \s-1ISA\s0, or the name of a particular processor.
11578 The \s-1ISA\s0 names are:
11579 \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
11580 \&\fBmips32\fR, \fBmips32r2\fR, \fBmips64\fR and \fBmips64r2\fR.
11581 The processor names are:
11582 \&\fB4kc\fR, \fB4km\fR, \fB4kp\fR, \fB4ksc\fR,
11583 \&\fB4kec\fR, \fB4kem\fR, \fB4kep\fR, \fB4ksd\fR,
11584 \&\fB5kc\fR, \fB5kf\fR,
11585 \&\fB20kc\fR,
11586 \&\fB24kc\fR, \fB24kf2_1\fR, \fB24kf1_1\fR,
11587 \&\fB24kec\fR, \fB24kef2_1\fR, \fB24kef1_1\fR,
11588 \&\fB34kc\fR, \fB34kf2_1\fR, \fB34kf1_1\fR,
11589 \&\fB74kc\fR, \fB74kf2_1\fR, \fB74kf1_1\fR, \fB74kf3_2\fR,
11590 \&\fBloongson2e\fR, \fBloongson2f\fR,
11591 \&\fBm4k\fR,
11592 \&\fBocteon\fR,
11593 \&\fBorion\fR,
11594 \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
11595 \&\fBr4600\fR, \fBr4650\fR, \fBr6000\fR, \fBr8000\fR,
11596 \&\fBrm7000\fR, \fBrm9000\fR,
11597 \&\fBr10000\fR, \fBr12000\fR, \fBr14000\fR, \fBr16000\fR,
11598 \&\fBsb1\fR,
11599 \&\fBsr71000\fR,
11600 \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
11601 \&\fBvr5000\fR, \fBvr5400\fR, \fBvr5500\fR
11602 and \fBxlr\fR.
11603 The special value \fBfrom-abi\fR selects the
11604 most compatible architecture for the selected \s-1ABI\s0 (that is,
11605 \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
11606 .Sp
11607 Native Linux/GNU toolchains also support the value \fBnative\fR,
11608 which selects the best architecture option for the host processor.
11609 \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize
11610 the processor.
11611 .Sp
11612 In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
11613 (for example, \fB\-march=r2k\fR).  Prefixes are optional, and
11614 \&\fBvr\fR may be written \fBr\fR.
11615 .Sp
11616 Names of the form \fIn\fR\fBf2_1\fR refer to processors with
11617 FPUs clocked at half the rate of the core, names of the form
11618 \&\fIn\fR\fBf1_1\fR refer to processors with FPUs clocked at the same
11619 rate as the core, and names of the form \fIn\fR\fBf3_2\fR refer to
11620 processors with FPUs clocked a ratio of 3:2 with respect to the core.
11621 For compatibility reasons, \fIn\fR\fBf\fR is accepted as a synonym
11622 for \fIn\fR\fBf2_1\fR while \fIn\fR\fBx\fR and \fIb\fR\fBfx\fR are
11623 accepted as synonyms for \fIn\fR\fBf1_1\fR.
11624 .Sp
11625 \&\s-1GCC\s0 defines two macros based on the value of this option.  The first
11626 is \fB_MIPS_ARCH\fR, which gives the name of target architecture, as
11627 a string.  The second has the form \fB_MIPS_ARCH_\fR\fIfoo\fR,
11628 where \fIfoo\fR is the capitalized value of \fB_MIPS_ARCH\fR.
11629 For example, \fB\-march=r2000\fR will set \fB_MIPS_ARCH\fR
11630 to \fB\*(L"r2000\*(R"\fR and define the macro \fB_MIPS_ARCH_R2000\fR.
11631 .Sp
11632 Note that the \fB_MIPS_ARCH\fR macro uses the processor names given
11633 above.  In other words, it will have the full prefix and will not
11634 abbreviate \fB000\fR as \fBk\fR.  In the case of \fBfrom-abi\fR,
11635 the macro names the resolved architecture (either \fB\*(L"mips1\*(R"\fR or
11636 \&\fB\*(L"mips3\*(R"\fR).  It names the default architecture when no
11637 \&\fB\-march\fR option is given.
11638 .IP "\fB\-mtune=\fR\fIarch\fR" 4
11639 .IX Item "-mtune=arch"
11640 Optimize for \fIarch\fR.  Among other things, this option controls
11641 the way instructions are scheduled, and the perceived cost of arithmetic
11642 operations.  The list of \fIarch\fR values is the same as for
11643 \&\fB\-march\fR.
11644 .Sp
11645 When this option is not used, \s-1GCC\s0 will optimize for the processor
11646 specified by \fB\-march\fR.  By using \fB\-march\fR and
11647 \&\fB\-mtune\fR together, it is possible to generate code that will
11648 run on a family of processors, but optimize the code for one
11649 particular member of that family.
11650 .Sp
11651 \&\fB\-mtune\fR defines the macros \fB_MIPS_TUNE\fR and
11652 \&\fB_MIPS_TUNE_\fR\fIfoo\fR, which work in the same way as the
11653 \&\fB\-march\fR ones described above.
11654 .IP "\fB\-mips1\fR" 4
11655 .IX Item "-mips1"
11656 Equivalent to \fB\-march=mips1\fR.
11657 .IP "\fB\-mips2\fR" 4
11658 .IX Item "-mips2"
11659 Equivalent to \fB\-march=mips2\fR.
11660 .IP "\fB\-mips3\fR" 4
11661 .IX Item "-mips3"
11662 Equivalent to \fB\-march=mips3\fR.
11663 .IP "\fB\-mips4\fR" 4
11664 .IX Item "-mips4"
11665 Equivalent to \fB\-march=mips4\fR.
11666 .IP "\fB\-mips32\fR" 4
11667 .IX Item "-mips32"
11668 Equivalent to \fB\-march=mips32\fR.
11669 .IP "\fB\-mips32r2\fR" 4
11670 .IX Item "-mips32r2"
11671 Equivalent to \fB\-march=mips32r2\fR.
11672 .IP "\fB\-mips64\fR" 4
11673 .IX Item "-mips64"
11674 Equivalent to \fB\-march=mips64\fR.
11675 .IP "\fB\-mips64r2\fR" 4
11676 .IX Item "-mips64r2"
11677 Equivalent to \fB\-march=mips64r2\fR.
11678 .IP "\fB\-mips16\fR" 4
11679 .IX Item "-mips16"
11680 .PD 0
11681 .IP "\fB\-mno\-mips16\fR" 4
11682 .IX Item "-mno-mips16"
11683 .PD
11684 Generate (do not generate) \s-1MIPS16\s0 code.  If \s-1GCC\s0 is targetting a
11685 \&\s-1MIPS32\s0 or \s-1MIPS64\s0 architecture, it will make use of the MIPS16e \s-1ASE\s0.
11686 .Sp
11687 \&\s-1MIPS16\s0 code generation can also be controlled on a per-function basis
11688 by means of \f(CW\*(C`mips16\*(C'\fR and \f(CW\*(C`nomips16\*(C'\fR attributes.
11689 .IP "\fB\-mflip\-mips16\fR" 4
11690 .IX Item "-mflip-mips16"
11691 Generate \s-1MIPS16\s0 code on alternating functions.  This option is provided
11692 for regression testing of mixed MIPS16/non\-MIPS16 code generation, and is
11693 not intended for ordinary use in compiling user code.
11694 .IP "\fB\-minterlink\-mips16\fR" 4
11695 .IX Item "-minterlink-mips16"
11696 .PD 0
11697 .IP "\fB\-mno\-interlink\-mips16\fR" 4
11698 .IX Item "-mno-interlink-mips16"
11699 .PD
11700 Require (do not require) that non\-MIPS16 code be link-compatible with
11701 \&\s-1MIPS16\s0 code.
11702 .Sp
11703 For example, non\-MIPS16 code cannot jump directly to \s-1MIPS16\s0 code;
11704 it must either use a call or an indirect jump.  \fB\-minterlink\-mips16\fR
11705 therefore disables direct jumps unless \s-1GCC\s0 knows that the target of the
11706 jump is not \s-1MIPS16\s0.
11707 .IP "\fB\-mabi=32\fR" 4
11708 .IX Item "-mabi=32"
11709 .PD 0
11710 .IP "\fB\-mabi=o64\fR" 4
11711 .IX Item "-mabi=o64"
11712 .IP "\fB\-mabi=n32\fR" 4
11713 .IX Item "-mabi=n32"
11714 .IP "\fB\-mabi=64\fR" 4
11715 .IX Item "-mabi=64"
11716 .IP "\fB\-mabi=eabi\fR" 4
11717 .IX Item "-mabi=eabi"
11718 .PD
11719 Generate code for the given \s-1ABI\s0.
11720 .Sp
11721 Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant.  \s-1GCC\s0 normally
11722 generates 64\-bit code when you select a 64\-bit architecture, but you
11723 can use \fB\-mgp32\fR to get 32\-bit code instead.
11724 .Sp
11725 For information about the O64 \s-1ABI\s0, see
11726 <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
11727 .Sp
11728 \&\s-1GCC\s0 supports a variant of the o32 \s-1ABI\s0 in which floating-point registers
11729 are 64 rather than 32 bits wide.  You can select this combination with
11730 \&\fB\-mabi=32\fR \fB\-mfp64\fR.  This \s-1ABI\s0 relies on the \fBmthc1\fR
11731 and \fBmfhc1\fR instructions and is therefore only supported for
11732 \&\s-1MIPS32R2\s0 processors.
11733 .Sp
11734 The register assignments for arguments and return values remain the
11735 same, but each scalar value is passed in a single 64\-bit register
11736 rather than a pair of 32\-bit registers.  For example, scalar
11737 floating-point values are returned in \fB\f(CB$f0\fB\fR only, not a
11738 \&\fB\f(CB$f0\fB\fR/\fB\f(CB$f1\fB\fR pair.  The set of call-saved registers also
11739 remains the same, but all 64 bits are saved.
11740 .IP "\fB\-mabicalls\fR" 4
11741 .IX Item "-mabicalls"
11742 .PD 0
11743 .IP "\fB\-mno\-abicalls\fR" 4
11744 .IX Item "-mno-abicalls"
11745 .PD
11746 Generate (do not generate) code that is suitable for SVR4\-style
11747 dynamic objects.  \fB\-mabicalls\fR is the default for SVR4\-based
11748 systems.
11749 .IP "\fB\-mshared\fR" 4
11750 .IX Item "-mshared"
11751 .PD 0
11752 .IP "\fB\-mno\-shared\fR" 4
11753 .IX Item "-mno-shared"
11754 .PD
11755 Generate (do not generate) code that is fully position-independent,
11756 and that can therefore be linked into shared libraries.  This option
11757 only affects \fB\-mabicalls\fR.
11758 .Sp
11759 All \fB\-mabicalls\fR code has traditionally been position-independent,
11760 regardless of options like \fB\-fPIC\fR and \fB\-fpic\fR.  However,
11761 as an extension, the \s-1GNU\s0 toolchain allows executables to use absolute
11762 accesses for locally-binding symbols.  It can also use shorter \s-1GP\s0
11763 initialization sequences and generate direct calls to locally-defined
11764 functions.  This mode is selected by \fB\-mno\-shared\fR.
11765 .Sp
11766 \&\fB\-mno\-shared\fR depends on binutils 2.16 or higher and generates
11767 objects that can only be linked by the \s-1GNU\s0 linker.  However, the option
11768 does not affect the \s-1ABI\s0 of the final executable; it only affects the \s-1ABI\s0
11769 of relocatable objects.  Using \fB\-mno\-shared\fR will generally make
11770 executables both smaller and quicker.
11771 .Sp
11772 \&\fB\-mshared\fR is the default.
11773 .IP "\fB\-mplt\fR" 4
11774 .IX Item "-mplt"
11775 .PD 0
11776 .IP "\fB\-mno\-plt\fR" 4
11777 .IX Item "-mno-plt"
11778 .PD
11779 Assume (do not assume) that the static and dynamic linkers
11780 support PLTs and copy relocations.  This option only affects
11781 \&\fB\-mno\-shared \-mabicalls\fR.  For the n64 \s-1ABI\s0, this option
11782 has no effect without \fB\-msym32\fR.
11783 .Sp
11784 You can make \fB\-mplt\fR the default by configuring
11785 \&\s-1GCC\s0 with \fB\-\-with\-mips\-plt\fR.  The default is
11786 \&\fB\-mno\-plt\fR otherwise.
11787 .IP "\fB\-mxgot\fR" 4
11788 .IX Item "-mxgot"
11789 .PD 0
11790 .IP "\fB\-mno\-xgot\fR" 4
11791 .IX Item "-mno-xgot"
11792 .PD
11793 Lift (do not lift) the usual restrictions on the size of the global
11794 offset table.
11795 .Sp
11796 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
11797 While this is relatively efficient, it will only work if the \s-1GOT\s0
11798 is smaller than about 64k.  Anything larger will cause the linker
11799 to report an error such as:
11800 .Sp
11801 .Vb 1
11802 \&        relocation truncated to fit: R_MIPS_GOT16 foobar
11803 .Ve
11804 .Sp
11805 If this happens, you should recompile your code with \fB\-mxgot\fR.
11806 It should then work with very large GOTs, although it will also be
11807 less efficient, since it will take three instructions to fetch the
11808 value of a global symbol.
11809 .Sp
11810 Note that some linkers can create multiple GOTs.  If you have such a
11811 linker, you should only need to use \fB\-mxgot\fR when a single object
11812 file accesses more than 64k's worth of \s-1GOT\s0 entries.  Very few do.
11813 .Sp
11814 These options have no effect unless \s-1GCC\s0 is generating position
11815 independent code.
11816 .IP "\fB\-mgp32\fR" 4
11817 .IX Item "-mgp32"
11818 Assume that general-purpose registers are 32 bits wide.
11819 .IP "\fB\-mgp64\fR" 4
11820 .IX Item "-mgp64"
11821 Assume that general-purpose registers are 64 bits wide.
11822 .IP "\fB\-mfp32\fR" 4
11823 .IX Item "-mfp32"
11824 Assume that floating-point registers are 32 bits wide.
11825 .IP "\fB\-mfp64\fR" 4
11826 .IX Item "-mfp64"
11827 Assume that floating-point registers are 64 bits wide.
11828 .IP "\fB\-mhard\-float\fR" 4
11829 .IX Item "-mhard-float"
11830 Use floating-point coprocessor instructions.
11831 .IP "\fB\-msoft\-float\fR" 4
11832 .IX Item "-msoft-float"
11833 Do not use floating-point coprocessor instructions.  Implement
11834 floating-point calculations using library calls instead.
11835 .IP "\fB\-msingle\-float\fR" 4
11836 .IX Item "-msingle-float"
11837 Assume that the floating-point coprocessor only supports single-precision
11838 operations.
11839 .IP "\fB\-mdouble\-float\fR" 4
11840 .IX Item "-mdouble-float"
11841 Assume that the floating-point coprocessor supports double-precision
11842 operations.  This is the default.
11843 .IP "\fB\-mllsc\fR" 4
11844 .IX Item "-mllsc"
11845 .PD 0
11846 .IP "\fB\-mno\-llsc\fR" 4
11847 .IX Item "-mno-llsc"
11848 .PD
11849 Use (do not use) \fBll\fR, \fBsc\fR, and \fBsync\fR instructions to
11850 implement atomic memory built-in functions.  When neither option is
11851 specified, \s-1GCC\s0 will use the instructions if the target architecture
11852 supports them.
11853 .Sp
11854 \&\fB\-mllsc\fR is useful if the runtime environment can emulate the
11855 instructions and \fB\-mno\-llsc\fR can be useful when compiling for
11856 nonstandard ISAs.  You can make either option the default by
11857 configuring \s-1GCC\s0 with \fB\-\-with\-llsc\fR and \fB\-\-without\-llsc\fR
11858 respectively.  \fB\-\-with\-llsc\fR is the default for some
11859 configurations; see the installation documentation for details.
11860 .IP "\fB\-mdsp\fR" 4
11861 .IX Item "-mdsp"
11862 .PD 0
11863 .IP "\fB\-mno\-dsp\fR" 4
11864 .IX Item "-mno-dsp"
11865 .PD
11866 Use (do not use) revision 1 of the \s-1MIPS\s0 \s-1DSP\s0 \s-1ASE\s0.
11867   This option defines the
11868 preprocessor macro \fB_\|_mips_dsp\fR.  It also defines
11869 \&\fB_\|_mips_dsp_rev\fR to 1.
11870 .IP "\fB\-mdspr2\fR" 4
11871 .IX Item "-mdspr2"
11872 .PD 0
11873 .IP "\fB\-mno\-dspr2\fR" 4
11874 .IX Item "-mno-dspr2"
11875 .PD
11876 Use (do not use) revision 2 of the \s-1MIPS\s0 \s-1DSP\s0 \s-1ASE\s0.
11877   This option defines the
11878 preprocessor macros \fB_\|_mips_dsp\fR and \fB_\|_mips_dspr2\fR.
11879 It also defines \fB_\|_mips_dsp_rev\fR to 2.
11880 .IP "\fB\-msmartmips\fR" 4
11881 .IX Item "-msmartmips"
11882 .PD 0
11883 .IP "\fB\-mno\-smartmips\fR" 4
11884 .IX Item "-mno-smartmips"
11885 .PD
11886 Use (do not use) the \s-1MIPS\s0 SmartMIPS \s-1ASE\s0.
11887 .IP "\fB\-mpaired\-single\fR" 4
11888 .IX Item "-mpaired-single"
11889 .PD 0
11890 .IP "\fB\-mno\-paired\-single\fR" 4
11891 .IX Item "-mno-paired-single"
11892 .PD
11893 Use (do not use) paired-single floating-point instructions.
11894   This option requires
11895 hardware floating-point support to be enabled.
11896 .IP "\fB\-mdmx\fR" 4
11897 .IX Item "-mdmx"
11898 .PD 0
11899 .IP "\fB\-mno\-mdmx\fR" 4
11900 .IX Item "-mno-mdmx"
11901 .PD
11902 Use (do not use) \s-1MIPS\s0 Digital Media Extension instructions.
11903 This option can only be used when generating 64\-bit code and requires
11904 hardware floating-point support to be enabled.
11905 .IP "\fB\-mips3d\fR" 4
11906 .IX Item "-mips3d"
11907 .PD 0
11908 .IP "\fB\-mno\-mips3d\fR" 4
11909 .IX Item "-mno-mips3d"
11910 .PD
11911 Use (do not use) the \s-1MIPS\-3D\s0 \s-1ASE\s0.  
11912 The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
11913 .IP "\fB\-mmt\fR" 4
11914 .IX Item "-mmt"
11915 .PD 0
11916 .IP "\fB\-mno\-mt\fR" 4
11917 .IX Item "-mno-mt"
11918 .PD
11919 Use (do not use) \s-1MT\s0 Multithreading instructions.
11920 .IP "\fB\-mlong64\fR" 4
11921 .IX Item "-mlong64"
11922 Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See \fB\-mlong32\fR for
11923 an explanation of the default and the way that the pointer size is
11924 determined.
11925 .IP "\fB\-mlong32\fR" 4
11926 .IX Item "-mlong32"
11927 Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
11928 .Sp
11929 The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
11930 the \s-1ABI\s0.  All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs.  The n64 \s-1ABI\s0
11931 uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
11932 32\-bit \f(CW\*(C`long\*(C'\fRs.  Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
11933 or the same size as integer registers, whichever is smaller.
11934 .IP "\fB\-msym32\fR" 4
11935 .IX Item "-msym32"
11936 .PD 0
11937 .IP "\fB\-mno\-sym32\fR" 4
11938 .IX Item "-mno-sym32"
11939 .PD
11940 Assume (do not assume) that all symbols have 32\-bit values, regardless
11941 of the selected \s-1ABI\s0.  This option is useful in combination with
11942 \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
11943 to generate shorter and faster references to symbolic addresses.
11944 .IP "\fB\-G\fR \fInum\fR" 4
11945 .IX Item "-G num"
11946 Put definitions of externally-visible data in a small data section
11947 if that data is no bigger than \fInum\fR bytes.  \s-1GCC\s0 can then access
11948 the data more efficiently; see \fB\-mgpopt\fR for details.
11949 .Sp
11950 The default \fB\-G\fR option depends on the configuration.
11951 .IP "\fB\-mlocal\-sdata\fR" 4
11952 .IX Item "-mlocal-sdata"
11953 .PD 0
11954 .IP "\fB\-mno\-local\-sdata\fR" 4
11955 .IX Item "-mno-local-sdata"
11956 .PD
11957 Extend (do not extend) the \fB\-G\fR behavior to local data too,
11958 such as to static variables in C.  \fB\-mlocal\-sdata\fR is the
11959 default for all configurations.
11960 .Sp
11961 If the linker complains that an application is using too much small data,
11962 you might want to try rebuilding the less performance-critical parts with
11963 \&\fB\-mno\-local\-sdata\fR.  You might also want to build large
11964 libraries with \fB\-mno\-local\-sdata\fR, so that the libraries leave
11965 more room for the main program.
11966 .IP "\fB\-mextern\-sdata\fR" 4
11967 .IX Item "-mextern-sdata"
11968 .PD 0
11969 .IP "\fB\-mno\-extern\-sdata\fR" 4
11970 .IX Item "-mno-extern-sdata"
11971 .PD
11972 Assume (do not assume) that externally-defined data will be in
11973 a small data section if that data is within the \fB\-G\fR limit.
11974 \&\fB\-mextern\-sdata\fR is the default for all configurations.
11975 .Sp
11976 If you compile a module \fIMod\fR with \fB\-mextern\-sdata\fR \fB\-G\fR
11977 \&\fInum\fR \fB\-mgpopt\fR, and \fIMod\fR references a variable \fIVar\fR
11978 that is no bigger than \fInum\fR bytes, you must make sure that \fIVar\fR
11979 is placed in a small data section.  If \fIVar\fR is defined by another
11980 module, you must either compile that module with a high-enough
11981 \&\fB\-G\fR setting or attach a \f(CW\*(C`section\*(C'\fR attribute to \fIVar\fR's
11982 definition.  If \fIVar\fR is common, you must link the application
11983 with a high-enough \fB\-G\fR setting.
11984 .Sp
11985 The easiest way of satisfying these restrictions is to compile
11986 and link every module with the same \fB\-G\fR option.  However,
11987 you may wish to build a library that supports several different
11988 small data limits.  You can do this by compiling the library with
11989 the highest supported \fB\-G\fR setting and additionally using
11990 \&\fB\-mno\-extern\-sdata\fR to stop the library from making assumptions
11991 about externally-defined data.
11992 .IP "\fB\-mgpopt\fR" 4
11993 .IX Item "-mgpopt"
11994 .PD 0
11995 .IP "\fB\-mno\-gpopt\fR" 4
11996 .IX Item "-mno-gpopt"
11997 .PD
11998 Use (do not use) GP-relative accesses for symbols that are known to be
11999 in a small data section; see \fB\-G\fR, \fB\-mlocal\-sdata\fR and
12000 \&\fB\-mextern\-sdata\fR.  \fB\-mgpopt\fR is the default for all
12001 configurations.
12002 .Sp
12003 \&\fB\-mno\-gpopt\fR is useful for cases where the \f(CW$gp\fR register
12004 might not hold the value of \f(CW\*(C`_gp\*(C'\fR.  For example, if the code is
12005 part of a library that might be used in a boot monitor, programs that
12006 call boot monitor routines will pass an unknown value in \f(CW$gp\fR.
12007 (In such situations, the boot monitor itself would usually be compiled
12008 with \fB\-G0\fR.)
12009 .Sp
12010 \&\fB\-mno\-gpopt\fR implies \fB\-mno\-local\-sdata\fR and
12011 \&\fB\-mno\-extern\-sdata\fR.
12012 .IP "\fB\-membedded\-data\fR" 4
12013 .IX Item "-membedded-data"
12014 .PD 0
12015 .IP "\fB\-mno\-embedded\-data\fR" 4
12016 .IX Item "-mno-embedded-data"
12017 .PD
12018 Allocate variables to the read-only data section first if possible, then
12019 next in the small data section if possible, otherwise in data.  This gives
12020 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
12021 when executing, and thus may be preferred for some embedded systems.
12022 .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
12023 .IX Item "-muninit-const-in-rodata"
12024 .PD 0
12025 .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
12026 .IX Item "-mno-uninit-const-in-rodata"
12027 .PD
12028 Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
12029 This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
12030 .IP "\fB\-mcode\-readable=\fR\fIsetting\fR" 4
12031 .IX Item "-mcode-readable=setting"
12032 Specify whether \s-1GCC\s0 may generate code that reads from executable sections.
12033 There are three possible settings:
12034 .RS 4
12035 .IP "\fB\-mcode\-readable=yes\fR" 4
12036 .IX Item "-mcode-readable=yes"
12037 Instructions may freely access executable sections.  This is the
12038 default setting.
12039 .IP "\fB\-mcode\-readable=pcrel\fR" 4
12040 .IX Item "-mcode-readable=pcrel"
12041 \&\s-1MIPS16\s0 PC-relative load instructions can access executable sections,
12042 but other instructions must not do so.  This option is useful on 4KSc
12043 and 4KSd processors when the code TLBs have the Read Inhibit bit set.
12044 It is also useful on processors that can be configured to have a dual
12045 instruction/data \s-1SRAM\s0 interface and that, like the M4K, automatically
12046 redirect PC-relative loads to the instruction \s-1RAM\s0.
12047 .IP "\fB\-mcode\-readable=no\fR" 4
12048 .IX Item "-mcode-readable=no"
12049 Instructions must not access executable sections.  This option can be
12050 useful on targets that are configured to have a dual instruction/data
12051 \&\s-1SRAM\s0 interface but that (unlike the M4K) do not automatically redirect
12052 PC-relative loads to the instruction \s-1RAM\s0.
12053 .RE
12054 .RS 4
12055 .RE
12056 .IP "\fB\-msplit\-addresses\fR" 4
12057 .IX Item "-msplit-addresses"
12058 .PD 0
12059 .IP "\fB\-mno\-split\-addresses\fR" 4
12060 .IX Item "-mno-split-addresses"
12061 .PD
12062 Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
12063 relocation operators.  This option has been superseded by
12064 \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
12065 .IP "\fB\-mexplicit\-relocs\fR" 4
12066 .IX Item "-mexplicit-relocs"
12067 .PD 0
12068 .IP "\fB\-mno\-explicit\-relocs\fR" 4
12069 .IX Item "-mno-explicit-relocs"
12070 .PD
12071 Use (do not use) assembler relocation operators when dealing with symbolic
12072 addresses.  The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
12073 is to use assembler macros instead.
12074 .Sp
12075 \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
12076 to use an assembler that supports relocation operators.
12077 .IP "\fB\-mcheck\-zero\-division\fR" 4
12078 .IX Item "-mcheck-zero-division"
12079 .PD 0
12080 .IP "\fB\-mno\-check\-zero\-division\fR" 4
12081 .IX Item "-mno-check-zero-division"
12082 .PD
12083 Trap (do not trap) on integer division by zero.
12084 .Sp
12085 The default is \fB\-mcheck\-zero\-division\fR.
12086 .IP "\fB\-mdivide\-traps\fR" 4
12087 .IX Item "-mdivide-traps"
12088 .PD 0
12089 .IP "\fB\-mdivide\-breaks\fR" 4
12090 .IX Item "-mdivide-breaks"
12091 .PD
12092 \&\s-1MIPS\s0 systems check for division by zero by generating either a
12093 conditional trap or a break instruction.  Using traps results in
12094 smaller code, but is only supported on \s-1MIPS\s0 \s-1II\s0 and later.  Also, some
12095 versions of the Linux kernel have a bug that prevents trap from
12096 generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR).  Use \fB\-mdivide\-traps\fR to
12097 allow conditional traps on architectures that support them and
12098 \&\fB\-mdivide\-breaks\fR to force the use of breaks.
12099 .Sp
12100 The default is usually \fB\-mdivide\-traps\fR, but this can be
12101 overridden at configure time using \fB\-\-with\-divide=breaks\fR.
12102 Divide-by-zero checks can be completely disabled using
12103 \&\fB\-mno\-check\-zero\-division\fR.
12104 .IP "\fB\-mmemcpy\fR" 4
12105 .IX Item "-mmemcpy"
12106 .PD 0
12107 .IP "\fB\-mno\-memcpy\fR" 4
12108 .IX Item "-mno-memcpy"
12109 .PD
12110 Force (do not force) the use of \f(CW\*(C`memcpy()\*(C'\fR for non-trivial block
12111 moves.  The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
12112 most constant-sized copies.
12113 .IP "\fB\-mlong\-calls\fR" 4
12114 .IX Item "-mlong-calls"
12115 .PD 0
12116 .IP "\fB\-mno\-long\-calls\fR" 4
12117 .IX Item "-mno-long-calls"
12118 .PD
12119 Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction.  Calling
12120 functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
12121 and callee to be in the same 256 megabyte segment.
12122 .Sp
12123 This option has no effect on abicalls code.  The default is
12124 \&\fB\-mno\-long\-calls\fR.
12125 .IP "\fB\-mmad\fR" 4
12126 .IX Item "-mmad"
12127 .PD 0
12128 .IP "\fB\-mno\-mad\fR" 4
12129 .IX Item "-mno-mad"
12130 .PD
12131 Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
12132 instructions, as provided by the R4650 \s-1ISA\s0.
12133 .IP "\fB\-mfused\-madd\fR" 4
12134 .IX Item "-mfused-madd"
12135 .PD 0
12136 .IP "\fB\-mno\-fused\-madd\fR" 4
12137 .IX Item "-mno-fused-madd"
12138 .PD
12139 Enable (disable) use of the floating point multiply-accumulate
12140 instructions, when they are available.  The default is
12141 \&\fB\-mfused\-madd\fR.
12142 .Sp
12143 When multiply-accumulate instructions are used, the intermediate
12144 product is calculated to infinite precision and is not subject to
12145 the \s-1FCSR\s0 Flush to Zero bit.  This may be undesirable in some
12146 circumstances.
12147 .IP "\fB\-nocpp\fR" 4
12148 .IX Item "-nocpp"
12149 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
12150 assembler files (with a \fB.s\fR suffix) when assembling them.
12151 .IP "\fB\-mfix\-r4000\fR" 4
12152 .IX Item "-mfix-r4000"
12153 .PD 0
12154 .IP "\fB\-mno\-fix\-r4000\fR" 4
12155 .IX Item "-mno-fix-r4000"
12156 .PD
12157 Work around certain R4000 \s-1CPU\s0 errata:
12158 .RS 4
12159 .IP "\-" 4
12160 A double-word or a variable shift may give an incorrect result if executed
12161 immediately after starting an integer division.
12162 .IP "\-" 4
12163 A double-word or a variable shift may give an incorrect result if executed
12164 while an integer multiplication is in progress.
12165 .IP "\-" 4
12166 An integer division may give an incorrect result if started in a delay slot
12167 of a taken branch or a jump.
12168 .RE
12169 .RS 4
12170 .RE
12171 .IP "\fB\-mfix\-r4400\fR" 4
12172 .IX Item "-mfix-r4400"
12173 .PD 0
12174 .IP "\fB\-mno\-fix\-r4400\fR" 4
12175 .IX Item "-mno-fix-r4400"
12176 .PD
12177 Work around certain R4400 \s-1CPU\s0 errata:
12178 .RS 4
12179 .IP "\-" 4
12180 A double-word or a variable shift may give an incorrect result if executed
12181 immediately after starting an integer division.
12182 .RE
12183 .RS 4
12184 .RE
12185 .IP "\fB\-mfix\-r10000\fR" 4
12186 .IX Item "-mfix-r10000"
12187 .PD 0
12188 .IP "\fB\-mno\-fix\-r10000\fR" 4
12189 .IX Item "-mno-fix-r10000"
12190 .PD
12191 Work around certain R10000 errata:
12192 .RS 4
12193 .IP "\-" 4
12194 \&\f(CW\*(C`ll\*(C'\fR/\f(CW\*(C`sc\*(C'\fR sequences may not behave atomically on revisions
12195 prior to 3.0.  They may deadlock on revisions 2.6 and earlier.
12196 .RE
12197 .RS 4
12198 .Sp
12199 This option can only be used if the target architecture supports
12200 branch-likely instructions.  \fB\-mfix\-r10000\fR is the default when
12201 \&\fB\-march=r10000\fR is used; \fB\-mno\-fix\-r10000\fR is the default
12202 otherwise.
12203 .RE
12204 .IP "\fB\-mfix\-vr4120\fR" 4
12205 .IX Item "-mfix-vr4120"
12206 .PD 0
12207 .IP "\fB\-mno\-fix\-vr4120\fR" 4
12208 .IX Item "-mno-fix-vr4120"
12209 .PD
12210 Work around certain \s-1VR4120\s0 errata:
12211 .RS 4
12212 .IP "\-" 4
12213 \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
12214 .IP "\-" 4
12215 \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
12216 of the operands is negative.
12217 .RE
12218 .RS 4
12219 .Sp
12220 The workarounds for the division errata rely on special functions in
12221 \&\fIlibgcc.a\fR.  At present, these functions are only provided by
12222 the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
12223 .Sp
12224 Other \s-1VR4120\s0 errata require a nop to be inserted between certain pairs of
12225 instructions.  These errata are handled by the assembler, not by \s-1GCC\s0 itself.
12226 .RE
12227 .IP "\fB\-mfix\-vr4130\fR" 4
12228 .IX Item "-mfix-vr4130"
12229 Work around the \s-1VR4130\s0 \f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata.  The
12230 workarounds are implemented by the assembler rather than by \s-1GCC\s0,
12231 although \s-1GCC\s0 will avoid using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
12232 \&\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
12233 instructions are available instead.
12234 .IP "\fB\-mfix\-sb1\fR" 4
12235 .IX Item "-mfix-sb1"
12236 .PD 0
12237 .IP "\fB\-mno\-fix\-sb1\fR" 4
12238 .IX Item "-mno-fix-sb1"
12239 .PD
12240 Work around certain \s-1SB\-1\s0 \s-1CPU\s0 core errata.
12241 (This flag currently works around the \s-1SB\-1\s0 revision 2
12242 \&\*(L"F1\*(R" and \*(L"F2\*(R" floating point errata.)
12243 .IP "\fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR" 4
12244 .IX Item "-mr10k-cache-barrier=setting"
12245 Specify whether \s-1GCC\s0 should insert cache barriers to avoid the
12246 side-effects of speculation on R10K processors.
12247 .Sp
12248 In common with many processors, the R10K tries to predict the outcome
12249 of a conditional branch and speculatively executes instructions from
12250 the \*(L"taken\*(R" branch.  It later aborts these instructions if the
12251 predicted outcome was wrong.  However, on the R10K, even aborted
12252 instructions can have side effects.
12253 .Sp
12254 This problem only affects kernel stores and, depending on the system,
12255 kernel loads.  As an example, a speculatively-executed store may load
12256 the target memory into cache and mark the cache line as dirty, even if
12257 the store itself is later aborted.  If a \s-1DMA\s0 operation writes to the
12258 same area of memory before the \*(L"dirty\*(R" line is flushed, the cached
12259 data will overwrite the DMA-ed data.  See the R10K processor manual
12260 for a full description, including other potential problems.
12261 .Sp
12262 One workaround is to insert cache barrier instructions before every memory
12263 access that might be speculatively executed and that might have side
12264 effects even if aborted.  \fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR
12265 controls \s-1GCC\s0's implementation of this workaround.  It assumes that
12266 aborted accesses to any byte in the following regions will not have
12267 side effects:
12268 .RS 4
12269 .IP "1." 4
12270 the memory occupied by the current function's stack frame;
12271 .IP "2." 4
12272 the memory occupied by an incoming stack argument;
12273 .IP "3." 4
12274 the memory occupied by an object with a link-time-constant address.
12275 .RE
12276 .RS 4
12277 .Sp
12278 It is the kernel's responsibility to ensure that speculative
12279 accesses to these regions are indeed safe.
12280 .Sp
12281 If the input program contains a function declaration such as:
12282 .Sp
12283 .Vb 1
12284 \&        void foo (void);
12285 .Ve
12286 .Sp
12287 then the implementation of \f(CW\*(C`foo\*(C'\fR must allow \f(CW\*(C`j foo\*(C'\fR and
12288 \&\f(CW\*(C`jal foo\*(C'\fR to be executed speculatively.  \s-1GCC\s0 honors this
12289 restriction for functions it compiles itself.  It expects non-GCC
12290 functions (such as hand-written assembly code) to do the same.
12291 .Sp
12292 The option has three forms:
12293 .IP "\fB\-mr10k\-cache\-barrier=load\-store\fR" 4
12294 .IX Item "-mr10k-cache-barrier=load-store"
12295 Insert a cache barrier before a load or store that might be
12296 speculatively executed and that might have side effects even
12297 if aborted.
12298 .IP "\fB\-mr10k\-cache\-barrier=store\fR" 4
12299 .IX Item "-mr10k-cache-barrier=store"
12300 Insert a cache barrier before a store that might be speculatively
12301 executed and that might have side effects even if aborted.
12302 .IP "\fB\-mr10k\-cache\-barrier=none\fR" 4
12303 .IX Item "-mr10k-cache-barrier=none"
12304 Disable the insertion of cache barriers.  This is the default setting.
12305 .RE
12306 .RS 4
12307 .RE
12308 .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
12309 .IX Item "-mflush-func=func"
12310 .PD 0
12311 .IP "\fB\-mno\-flush\-func\fR" 4
12312 .IX Item "-mno-flush-func"
12313 .PD
12314 Specifies the function to call to flush the I and D caches, or to not
12315 call any such function.  If called, the function must take the same
12316 arguments as the common \f(CW\*(C`_flush_func()\*(C'\fR, that is, the address of the
12317 memory range for which the cache is being flushed, the size of the
12318 memory range, and the number 3 (to flush both caches).  The default
12319 depends on the target \s-1GCC\s0 was configured for, but commonly is either
12320 \&\fB_flush_func\fR or \fB_\|_cpu_flush\fR.
12321 .IP "\fBmbranch\-cost=\fR\fInum\fR" 4
12322 .IX Item "mbranch-cost=num"
12323 Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
12324 This cost is only a heuristic and is not guaranteed to produce
12325 consistent results across releases.  A zero cost redundantly selects
12326 the default, which is based on the \fB\-mtune\fR setting.
12327 .IP "\fB\-mbranch\-likely\fR" 4
12328 .IX Item "-mbranch-likely"
12329 .PD 0
12330 .IP "\fB\-mno\-branch\-likely\fR" 4
12331 .IX Item "-mno-branch-likely"
12332 .PD
12333 Enable or disable use of Branch Likely instructions, regardless of the
12334 default for the selected architecture.  By default, Branch Likely
12335 instructions may be generated if they are supported by the selected
12336 architecture.  An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
12337 and processors which implement those architectures; for those, Branch
12338 Likely instructions will not be generated by default because the \s-1MIPS32\s0
12339 and \s-1MIPS64\s0 architectures specifically deprecate their use.
12340 .IP "\fB\-mfp\-exceptions\fR" 4
12341 .IX Item "-mfp-exceptions"
12342 .PD 0
12343 .IP "\fB\-mno\-fp\-exceptions\fR" 4
12344 .IX Item "-mno-fp-exceptions"
12345 .PD
12346 Specifies whether \s-1FP\s0 exceptions are enabled.  This affects how we schedule
12347 \&\s-1FP\s0 instructions for some processors.  The default is that \s-1FP\s0 exceptions are
12348 enabled.
12349 .Sp
12350 For instance, on the \s-1SB\-1\s0, if \s-1FP\s0 exceptions are disabled, and we are emitting
12351 64\-bit code, then we can use both \s-1FP\s0 pipes.  Otherwise, we can only use one
12352 \&\s-1FP\s0 pipe.
12353 .IP "\fB\-mvr4130\-align\fR" 4
12354 .IX Item "-mvr4130-align"
12355 .PD 0
12356 .IP "\fB\-mno\-vr4130\-align\fR" 4
12357 .IX Item "-mno-vr4130-align"
12358 .PD
12359 The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
12360 instructions together if the first one is 8\-byte aligned.  When this
12361 option is enabled, \s-1GCC\s0 will align pairs of instructions that it
12362 thinks should execute in parallel.
12363 .Sp
12364 This option only has an effect when optimizing for the \s-1VR4130\s0.
12365 It normally makes code faster, but at the expense of making it bigger.
12366 It is enabled by default at optimization level \fB\-O3\fR.
12367 .PP
12368 \fI\s-1MMIX\s0 Options\fR
12369 .IX Subsection "MMIX Options"
12370 .PP
12371 These options are defined for the \s-1MMIX:\s0
12372 .IP "\fB\-mlibfuncs\fR" 4
12373 .IX Item "-mlibfuncs"
12374 .PD 0
12375 .IP "\fB\-mno\-libfuncs\fR" 4
12376 .IX Item "-mno-libfuncs"
12377 .PD
12378 Specify that intrinsic library functions are being compiled, passing all
12379 values in registers, no matter the size.
12380 .IP "\fB\-mepsilon\fR" 4
12381 .IX Item "-mepsilon"
12382 .PD 0
12383 .IP "\fB\-mno\-epsilon\fR" 4
12384 .IX Item "-mno-epsilon"
12385 .PD
12386 Generate floating-point comparison instructions that compare with respect
12387 to the \f(CW\*(C`rE\*(C'\fR epsilon register.
12388 .IP "\fB\-mabi=mmixware\fR" 4
12389 .IX Item "-mabi=mmixware"
12390 .PD 0
12391 .IP "\fB\-mabi=gnu\fR" 4
12392 .IX Item "-mabi=gnu"
12393 .PD
12394 Generate code that passes function parameters and return values that (in
12395 the called function) are seen as registers \f(CW$0\fR and up, as opposed to
12396 the \s-1GNU\s0 \s-1ABI\s0 which uses global registers \f(CW$231\fR and up.
12397 .IP "\fB\-mzero\-extend\fR" 4
12398 .IX Item "-mzero-extend"
12399 .PD 0
12400 .IP "\fB\-mno\-zero\-extend\fR" 4
12401 .IX Item "-mno-zero-extend"
12402 .PD
12403 When reading data from memory in sizes shorter than 64 bits, use (do not
12404 use) zero-extending load instructions by default, rather than
12405 sign-extending ones.
12406 .IP "\fB\-mknuthdiv\fR" 4
12407 .IX Item "-mknuthdiv"
12408 .PD 0
12409 .IP "\fB\-mno\-knuthdiv\fR" 4
12410 .IX Item "-mno-knuthdiv"
12411 .PD
12412 Make the result of a division yielding a remainder have the same sign as
12413 the divisor.  With the default, \fB\-mno\-knuthdiv\fR, the sign of the
12414 remainder follows the sign of the dividend.  Both methods are
12415 arithmetically valid, the latter being almost exclusively used.
12416 .IP "\fB\-mtoplevel\-symbols\fR" 4
12417 .IX Item "-mtoplevel-symbols"
12418 .PD 0
12419 .IP "\fB\-mno\-toplevel\-symbols\fR" 4
12420 .IX Item "-mno-toplevel-symbols"
12421 .PD
12422 Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
12423 code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
12424 .IP "\fB\-melf\fR" 4
12425 .IX Item "-melf"
12426 Generate an executable in the \s-1ELF\s0 format, rather than the default
12427 \&\fBmmo\fR format used by the \fBmmix\fR simulator.
12428 .IP "\fB\-mbranch\-predict\fR" 4
12429 .IX Item "-mbranch-predict"
12430 .PD 0
12431 .IP "\fB\-mno\-branch\-predict\fR" 4
12432 .IX Item "-mno-branch-predict"
12433 .PD
12434 Use (do not use) the probable-branch instructions, when static branch
12435 prediction indicates a probable branch.
12436 .IP "\fB\-mbase\-addresses\fR" 4
12437 .IX Item "-mbase-addresses"
12438 .PD 0
12439 .IP "\fB\-mno\-base\-addresses\fR" 4
12440 .IX Item "-mno-base-addresses"
12441 .PD
12442 Generate (do not generate) code that uses \fIbase addresses\fR.  Using a
12443 base address automatically generates a request (handled by the assembler
12444 and the linker) for a constant to be set up in a global register.  The
12445 register is used for one or more base address requests within the range 0
12446 to 255 from the value held in the register.  The generally leads to short
12447 and fast code, but the number of different data items that can be
12448 addressed is limited.  This means that a program that uses lots of static
12449 data may require \fB\-mno\-base\-addresses\fR.
12450 .IP "\fB\-msingle\-exit\fR" 4
12451 .IX Item "-msingle-exit"
12452 .PD 0
12453 .IP "\fB\-mno\-single\-exit\fR" 4
12454 .IX Item "-mno-single-exit"
12455 .PD
12456 Force (do not force) generated code to have a single exit point in each
12457 function.
12458 .PP
12459 \fI\s-1MN10300\s0 Options\fR
12460 .IX Subsection "MN10300 Options"
12461 .PP
12462 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
12463 .IP "\fB\-mmult\-bug\fR" 4
12464 .IX Item "-mmult-bug"
12465 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
12466 processors.  This is the default.
12467 .IP "\fB\-mno\-mult\-bug\fR" 4
12468 .IX Item "-mno-mult-bug"
12469 Do not generate code to avoid bugs in the multiply instructions for the
12470 \&\s-1MN10300\s0 processors.
12471 .IP "\fB\-mam33\fR" 4
12472 .IX Item "-mam33"
12473 Generate code which uses features specific to the \s-1AM33\s0 processor.
12474 .IP "\fB\-mno\-am33\fR" 4
12475 .IX Item "-mno-am33"
12476 Do not generate code which uses features specific to the \s-1AM33\s0 processor.  This
12477 is the default.
12478 .IP "\fB\-mreturn\-pointer\-on\-d0\fR" 4
12479 .IX Item "-mreturn-pointer-on-d0"
12480 When generating a function which returns a pointer, return the pointer
12481 in both \f(CW\*(C`a0\*(C'\fR and \f(CW\*(C`d0\*(C'\fR.  Otherwise, the pointer is returned
12482 only in a0, and attempts to call such functions without a prototype
12483 would result in errors.  Note that this option is on by default; use
12484 \&\fB\-mno\-return\-pointer\-on\-d0\fR to disable it.
12485 .IP "\fB\-mno\-crt0\fR" 4
12486 .IX Item "-mno-crt0"
12487 Do not link in the C run-time initialization object file.
12488 .IP "\fB\-mrelax\fR" 4
12489 .IX Item "-mrelax"
12490 Indicate to the linker that it should perform a relaxation optimization pass
12491 to shorten branches, calls and absolute memory addresses.  This option only
12492 has an effect when used on the command line for the final link step.
12493 .Sp
12494 This option makes symbolic debugging impossible.
12495 .PP
12496 \fI\s-1PDP\-11\s0 Options\fR
12497 .IX Subsection "PDP-11 Options"
12498 .PP
12499 These options are defined for the \s-1PDP\-11:\s0
12500 .IP "\fB\-mfpu\fR" 4
12501 .IX Item "-mfpu"
12502 Use hardware \s-1FPP\s0 floating point.  This is the default.  (\s-1FIS\s0 floating
12503 point on the \s-1PDP\-11/40\s0 is not supported.)
12504 .IP "\fB\-msoft\-float\fR" 4
12505 .IX Item "-msoft-float"
12506 Do not use hardware floating point.
12507 .IP "\fB\-mac0\fR" 4
12508 .IX Item "-mac0"
12509 Return floating-point results in ac0 (fr0 in Unix assembler syntax).
12510 .IP "\fB\-mno\-ac0\fR" 4
12511 .IX Item "-mno-ac0"
12512 Return floating-point results in memory.  This is the default.
12513 .IP "\fB\-m40\fR" 4
12514 .IX Item "-m40"
12515 Generate code for a \s-1PDP\-11/40\s0.
12516 .IP "\fB\-m45\fR" 4
12517 .IX Item "-m45"
12518 Generate code for a \s-1PDP\-11/45\s0.  This is the default.
12519 .IP "\fB\-m10\fR" 4
12520 .IX Item "-m10"
12521 Generate code for a \s-1PDP\-11/10\s0.
12522 .IP "\fB\-mbcopy\-builtin\fR" 4
12523 .IX Item "-mbcopy-builtin"
12524 Use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.  This is the
12525 default.
12526 .IP "\fB\-mbcopy\fR" 4
12527 .IX Item "-mbcopy"
12528 Do not use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.
12529 .IP "\fB\-mint16\fR" 4
12530 .IX Item "-mint16"
12531 .PD 0
12532 .IP "\fB\-mno\-int32\fR" 4
12533 .IX Item "-mno-int32"
12534 .PD
12535 Use 16\-bit \f(CW\*(C`int\*(C'\fR.  This is the default.
12536 .IP "\fB\-mint32\fR" 4
12537 .IX Item "-mint32"
12538 .PD 0
12539 .IP "\fB\-mno\-int16\fR" 4
12540 .IX Item "-mno-int16"
12541 .PD
12542 Use 32\-bit \f(CW\*(C`int\*(C'\fR.
12543 .IP "\fB\-mfloat64\fR" 4
12544 .IX Item "-mfloat64"
12545 .PD 0
12546 .IP "\fB\-mno\-float32\fR" 4
12547 .IX Item "-mno-float32"
12548 .PD
12549 Use 64\-bit \f(CW\*(C`float\*(C'\fR.  This is the default.
12550 .IP "\fB\-mfloat32\fR" 4
12551 .IX Item "-mfloat32"
12552 .PD 0
12553 .IP "\fB\-mno\-float64\fR" 4
12554 .IX Item "-mno-float64"
12555 .PD
12556 Use 32\-bit \f(CW\*(C`float\*(C'\fR.
12557 .IP "\fB\-mabshi\fR" 4
12558 .IX Item "-mabshi"
12559 Use \f(CW\*(C`abshi2\*(C'\fR pattern.  This is the default.
12560 .IP "\fB\-mno\-abshi\fR" 4
12561 .IX Item "-mno-abshi"
12562 Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
12563 .IP "\fB\-mbranch\-expensive\fR" 4
12564 .IX Item "-mbranch-expensive"
12565 Pretend that branches are expensive.  This is for experimenting with
12566 code generation only.
12567 .IP "\fB\-mbranch\-cheap\fR" 4
12568 .IX Item "-mbranch-cheap"
12569 Do not pretend that branches are expensive.  This is the default.
12570 .IP "\fB\-msplit\fR" 4
12571 .IX Item "-msplit"
12572 Generate code for a system with split I&D.
12573 .IP "\fB\-mno\-split\fR" 4
12574 .IX Item "-mno-split"
12575 Generate code for a system without split I&D.  This is the default.
12576 .IP "\fB\-munix\-asm\fR" 4
12577 .IX Item "-munix-asm"
12578 Use Unix assembler syntax.  This is the default when configured for
12579 \&\fBpdp11\-*\-bsd\fR.
12580 .IP "\fB\-mdec\-asm\fR" 4
12581 .IX Item "-mdec-asm"
12582 Use \s-1DEC\s0 assembler syntax.  This is the default when configured for any
12583 \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
12584 .PP
12585 \fIpicoChip Options\fR
12586 .IX Subsection "picoChip Options"
12587 .PP
12588 These \fB\-m\fR options are defined for picoChip implementations:
12589 .IP "\fB\-mae=\fR\fIae_type\fR" 4
12590 .IX Item "-mae=ae_type"
12591 Set the instruction set, register set, and instruction scheduling
12592 parameters for array element type \fIae_type\fR.  Supported values
12593 for \fIae_type\fR are \fB\s-1ANY\s0\fR, \fB\s-1MUL\s0\fR, and \fB\s-1MAC\s0\fR.
12594 .Sp
12595 \&\fB\-mae=ANY\fR selects a completely generic \s-1AE\s0 type.  Code
12596 generated with this option will run on any of the other \s-1AE\s0 types.  The
12597 code will not be as efficient as it would be if compiled for a specific
12598 \&\s-1AE\s0 type, and some types of operation (e.g., multiplication) will not
12599 work properly on all types of \s-1AE\s0.
12600 .Sp
12601 \&\fB\-mae=MUL\fR selects a \s-1MUL\s0 \s-1AE\s0 type.  This is the most useful \s-1AE\s0 type
12602 for compiled code, and is the default.
12603 .Sp
12604 \&\fB\-mae=MAC\fR selects a DSP-style \s-1MAC\s0 \s-1AE\s0.  Code compiled with this
12605 option may suffer from poor performance of byte (char) manipulation,
12606 since the \s-1DSP\s0 \s-1AE\s0 does not provide hardware support for byte load/stores.
12607 .IP "\fB\-msymbol\-as\-address\fR" 4
12608 .IX Item "-msymbol-as-address"
12609 Enable the compiler to directly use a symbol name as an address in a
12610 load/store instruction, without first loading it into a
12611 register.  Typically, the use of this option will generate larger
12612 programs, which run faster than when the option isn't used.  However, the
12613 results vary from program to program, so it is left as a user option,
12614 rather than being permanently enabled.
12615 .IP "\fB\-mno\-inefficient\-warnings\fR" 4
12616 .IX Item "-mno-inefficient-warnings"
12617 Disables warnings about the generation of inefficient code.  These
12618 warnings can be generated, for example, when compiling code which
12619 performs byte-level memory operations on the \s-1MAC\s0 \s-1AE\s0 type.  The \s-1MAC\s0 \s-1AE\s0 has
12620 no hardware support for byte-level memory operations, so all byte
12621 load/stores must be synthesized from word load/store operations.  This is
12622 inefficient and a warning will be generated indicating to the programmer
12623 that they should rewrite the code to avoid byte operations, or to target
12624 an \s-1AE\s0 type which has the necessary hardware support.  This option enables
12625 the warning to be turned off.
12626 .PP
12627 \fIPowerPC Options\fR
12628 .IX Subsection "PowerPC Options"
12629 .PP
12630 These are listed under
12631 .PP
12632 \fI\s-1IBM\s0 \s-1RS/6000\s0 and PowerPC Options\fR
12633 .IX Subsection "IBM RS/6000 and PowerPC Options"
12634 .PP
12635 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RS/6000\s0 and PowerPC:
12636 .IP "\fB\-mpower\fR" 4
12637 .IX Item "-mpower"
12638 .PD 0
12639 .IP "\fB\-mno\-power\fR" 4
12640 .IX Item "-mno-power"
12641 .IP "\fB\-mpower2\fR" 4
12642 .IX Item "-mpower2"
12643 .IP "\fB\-mno\-power2\fR" 4
12644 .IX Item "-mno-power2"
12645 .IP "\fB\-mpowerpc\fR" 4
12646 .IX Item "-mpowerpc"
12647 .IP "\fB\-mno\-powerpc\fR" 4
12648 .IX Item "-mno-powerpc"
12649 .IP "\fB\-mpowerpc\-gpopt\fR" 4
12650 .IX Item "-mpowerpc-gpopt"
12651 .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
12652 .IX Item "-mno-powerpc-gpopt"
12653 .IP "\fB\-mpowerpc\-gfxopt\fR" 4
12654 .IX Item "-mpowerpc-gfxopt"
12655 .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
12656 .IX Item "-mno-powerpc-gfxopt"
12657 .IP "\fB\-mpowerpc64\fR" 4
12658 .IX Item "-mpowerpc64"
12659 .IP "\fB\-mno\-powerpc64\fR" 4
12660 .IX Item "-mno-powerpc64"
12661 .IP "\fB\-mmfcrf\fR" 4
12662 .IX Item "-mmfcrf"
12663 .IP "\fB\-mno\-mfcrf\fR" 4
12664 .IX Item "-mno-mfcrf"
12665 .IP "\fB\-mpopcntb\fR" 4
12666 .IX Item "-mpopcntb"
12667 .IP "\fB\-mno\-popcntb\fR" 4
12668 .IX Item "-mno-popcntb"
12669 .IP "\fB\-mfprnd\fR" 4
12670 .IX Item "-mfprnd"
12671 .IP "\fB\-mno\-fprnd\fR" 4
12672 .IX Item "-mno-fprnd"
12673 .IP "\fB\-mcmpb\fR" 4
12674 .IX Item "-mcmpb"
12675 .IP "\fB\-mno\-cmpb\fR" 4
12676 .IX Item "-mno-cmpb"
12677 .IP "\fB\-mmfpgpr\fR" 4
12678 .IX Item "-mmfpgpr"
12679 .IP "\fB\-mno\-mfpgpr\fR" 4
12680 .IX Item "-mno-mfpgpr"
12681 .IP "\fB\-mhard\-dfp\fR" 4
12682 .IX Item "-mhard-dfp"
12683 .IP "\fB\-mno\-hard\-dfp\fR" 4
12684 .IX Item "-mno-hard-dfp"
12685 .PD
12686 \&\s-1GCC\s0 supports two related instruction set architectures for the
12687 \&\s-1RS/6000\s0 and PowerPC.  The \fI\s-1POWER\s0\fR instruction set are those
12688 instructions supported by the \fBrios\fR chip set used in the original
12689 \&\s-1RS/6000\s0 systems and the \fIPowerPC\fR instruction set is the
12690 architecture of the Freescale MPC5xx, MPC6xx, MPC8xx microprocessors, and
12691 the \s-1IBM\s0 4xx, 6xx, and follow-on microprocessors.
12692 .Sp
12693 Neither architecture is a subset of the other.  However there is a
12694 large common subset of instructions supported by both.  An \s-1MQ\s0
12695 register is included in processors supporting the \s-1POWER\s0 architecture.
12696 .Sp
12697 You use these options to specify which instructions are available on the
12698 processor you are using.  The default value of these options is
12699 determined when configuring \s-1GCC\s0.  Specifying the
12700 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
12701 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
12702 rather than the options listed above.
12703 .Sp
12704 The \fB\-mpower\fR option allows \s-1GCC\s0 to generate instructions that
12705 are found only in the \s-1POWER\s0 architecture and to use the \s-1MQ\s0 register.
12706 Specifying \fB\-mpower2\fR implies \fB\-power\fR and also allows \s-1GCC\s0
12707 to generate instructions that are present in the \s-1POWER2\s0 architecture but
12708 not the original \s-1POWER\s0 architecture.
12709 .Sp
12710 The \fB\-mpowerpc\fR option allows \s-1GCC\s0 to generate instructions that
12711 are found only in the 32\-bit subset of the PowerPC architecture.
12712 Specifying \fB\-mpowerpc\-gpopt\fR implies \fB\-mpowerpc\fR and also allows
12713 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
12714 General Purpose group, including floating-point square root.  Specifying
12715 \&\fB\-mpowerpc\-gfxopt\fR implies \fB\-mpowerpc\fR and also allows \s-1GCC\s0 to
12716 use the optional PowerPC architecture instructions in the Graphics
12717 group, including floating-point select.
12718 .Sp
12719 The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
12720 condition register field instruction implemented on the \s-1POWER4\s0
12721 processor and other processors that support the PowerPC V2.01
12722 architecture.
12723 The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
12724 double precision \s-1FP\s0 reciprocal estimate instruction implemented on the
12725 \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
12726 architecture.
12727 The \fB\-mfprnd\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 round to
12728 integer instructions implemented on the \s-1POWER5+\s0 processor and other
12729 processors that support the PowerPC V2.03 architecture.
12730 The \fB\-mcmpb\fR option allows \s-1GCC\s0 to generate the compare bytes
12731 instruction implemented on the \s-1POWER6\s0 processor and other processors
12732 that support the PowerPC V2.05 architecture.
12733 The \fB\-mmfpgpr\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 move to/from
12734 general purpose register instructions implemented on the \s-1POWER6X\s0
12735 processor and other processors that support the extended PowerPC V2.05
12736 architecture.
12737 The \fB\-mhard\-dfp\fR option allows \s-1GCC\s0 to generate the decimal floating
12738 point instructions implemented on some \s-1POWER\s0 processors.
12739 .Sp
12740 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
12741 64\-bit instructions that are found in the full PowerPC64 architecture
12742 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
12743 \&\fB\-mno\-powerpc64\fR.
12744 .Sp
12745 If you specify both \fB\-mno\-power\fR and \fB\-mno\-powerpc\fR, \s-1GCC\s0
12746 will use only the instructions in the common subset of both
12747 architectures plus some special \s-1AIX\s0 common-mode calls, and will not use
12748 the \s-1MQ\s0 register.  Specifying both \fB\-mpower\fR and \fB\-mpowerpc\fR
12749 permits \s-1GCC\s0 to use any instruction from either architecture and to
12750 allow use of the \s-1MQ\s0 register; specify this for the Motorola \s-1MPC601\s0.
12751 .IP "\fB\-mnew\-mnemonics\fR" 4
12752 .IX Item "-mnew-mnemonics"
12753 .PD 0
12754 .IP "\fB\-mold\-mnemonics\fR" 4
12755 .IX Item "-mold-mnemonics"
12756 .PD
12757 Select which mnemonics to use in the generated assembler code.  With
12758 \&\fB\-mnew\-mnemonics\fR, \s-1GCC\s0 uses the assembler mnemonics defined for
12759 the PowerPC architecture.  With \fB\-mold\-mnemonics\fR it uses the
12760 assembler mnemonics defined for the \s-1POWER\s0 architecture.  Instructions
12761 defined in only one architecture have only one mnemonic; \s-1GCC\s0 uses that
12762 mnemonic irrespective of which of these options is specified.
12763 .Sp
12764 \&\s-1GCC\s0 defaults to the mnemonics appropriate for the architecture in
12765 use.  Specifying \fB\-mcpu=\fR\fIcpu_type\fR sometimes overrides the
12766 value of these option.  Unless you are building a cross-compiler, you
12767 should normally not specify either \fB\-mnew\-mnemonics\fR or
12768 \&\fB\-mold\-mnemonics\fR, but should instead accept the default.
12769 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
12770 .IX Item "-mcpu=cpu_type"
12771 Set architecture type, register usage, choice of mnemonics, and
12772 instruction scheduling parameters for machine type \fIcpu_type\fR.
12773 Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
12774 \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB464\fR, \fB464fp\fR,
12775 \&\fB505\fR, \fB601\fR, \fB602\fR, \fB603\fR, \fB603e\fR, \fB604\fR,
12776 \&\fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR, \fB7400\fR,
12777 \&\fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
12778 \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBe300c2\fR, \fBe300c3\fR,
12779 \&\fBe500mc\fR, \fBec603e\fR, \fBG3\fR, \fBG4\fR, \fBG5\fR,
12780 \&\fBpower\fR, \fBpower2\fR, \fBpower3\fR, \fBpower4\fR,
12781 \&\fBpower5\fR, \fBpower5+\fR, \fBpower6\fR, \fBpower6x\fR, \fBpower7\fR
12782 \&\fBcommon\fR, \fBpowerpc\fR, \fBpowerpc64\fR, \fBrios\fR,
12783 \&\fBrios1\fR, \fBrios2\fR, \fBrsc\fR, and \fBrs64\fR.
12784 .Sp
12785 \&\fB\-mcpu=common\fR selects a completely generic processor.  Code
12786 generated under this option will run on any \s-1POWER\s0 or PowerPC processor.
12787 \&\s-1GCC\s0 will use only the instructions in the common subset of both
12788 architectures, and will not use the \s-1MQ\s0 register.  \s-1GCC\s0 assumes a generic
12789 processor model for scheduling purposes.
12790 .Sp
12791 \&\fB\-mcpu=power\fR, \fB\-mcpu=power2\fR, \fB\-mcpu=powerpc\fR, and
12792 \&\fB\-mcpu=powerpc64\fR specify generic \s-1POWER\s0, \s-1POWER2\s0, pure 32\-bit
12793 PowerPC (i.e., not \s-1MPC601\s0), and 64\-bit PowerPC architecture machine
12794 types, with an appropriate, generic processor model assumed for
12795 scheduling purposes.
12796 .Sp
12797 The other options specify a specific processor.  Code generated under
12798 those options will run best on that processor, and may not run at all on
12799 others.
12800 .Sp
12801 The \fB\-mcpu\fR options automatically enable or disable the
12802 following options:
12803 .Sp
12804 \&\fB\-maltivec  \-mfprnd  \-mhard\-float  \-mmfcrf  \-mmultiple 
12805 \&\-mnew\-mnemonics  \-mpopcntb  \-mpower  \-mpower2  \-mpowerpc64 
12806 \&\-mpowerpc\-gpopt  \-mpowerpc\-gfxopt  \-msingle\-float \-mdouble\-float 
12807 \&\-msimple\-fpu \-mstring  \-mmulhw  \-mdlmzb  \-mmfpgpr\fR
12808 .Sp
12809 The particular options set for any particular \s-1CPU\s0 will vary between
12810 compiler versions, depending on what setting seems to produce optimal
12811 code for that \s-1CPU\s0; it doesn't necessarily reflect the actual hardware's
12812 capabilities.  If you wish to set an individual option to a particular
12813 value, you may specify it after the \fB\-mcpu\fR option, like
12814 \&\fB\-mcpu=970 \-mno\-altivec\fR.
12815 .Sp
12816 On \s-1AIX\s0, the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
12817 not enabled or disabled by the \fB\-mcpu\fR option at present because
12818 \&\s-1AIX\s0 does not have full support for these options.  You may still
12819 enable or disable them individually if you're sure it'll work in your
12820 environment.
12821 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
12822 .IX Item "-mtune=cpu_type"
12823 Set the instruction scheduling parameters for machine type
12824 \&\fIcpu_type\fR, but do not set the architecture type, register usage, or
12825 choice of mnemonics, as \fB\-mcpu=\fR\fIcpu_type\fR would.  The same
12826 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
12827 \&\fB\-mcpu\fR.  If both are specified, the code generated will use the
12828 architecture, registers, and mnemonics set by \fB\-mcpu\fR, but the
12829 scheduling parameters set by \fB\-mtune\fR.
12830 .IP "\fB\-mswdiv\fR" 4
12831 .IX Item "-mswdiv"
12832 .PD 0
12833 .IP "\fB\-mno\-swdiv\fR" 4
12834 .IX Item "-mno-swdiv"
12835 .PD
12836 Generate code to compute division as reciprocal estimate and iterative
12837 refinement, creating opportunities for increased throughput.  This
12838 feature requires: optional PowerPC Graphics instruction set for single
12839 precision and \s-1FRE\s0 instruction for double precision, assuming divides
12840 cannot generate user-visible traps, and the domain values not include
12841 Infinities, denormals or zero denominator.
12842 .IP "\fB\-maltivec\fR" 4
12843 .IX Item "-maltivec"
12844 .PD 0
12845 .IP "\fB\-mno\-altivec\fR" 4
12846 .IX Item "-mno-altivec"
12847 .PD
12848 Generate code that uses (does not use) AltiVec instructions, and also
12849 enable the use of built-in functions that allow more direct access to
12850 the AltiVec instruction set.  You may also need to set
12851 \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
12852 enhancements.
12853 .IP "\fB\-mvrsave\fR" 4
12854 .IX Item "-mvrsave"
12855 .PD 0
12856 .IP "\fB\-mno\-vrsave\fR" 4
12857 .IX Item "-mno-vrsave"
12858 .PD
12859 Generate \s-1VRSAVE\s0 instructions when generating AltiVec code.
12860 .IP "\fB\-mgen\-cell\-microcode\fR" 4
12861 .IX Item "-mgen-cell-microcode"
12862 Generate Cell microcode instructions
12863 .IP "\fB\-mwarn\-cell\-microcode\fR" 4
12864 .IX Item "-mwarn-cell-microcode"
12865 Warning when a Cell microcode instruction is going to emitted.  An example
12866 of a Cell microcode instruction is a variable shift.
12867 .IP "\fB\-msecure\-plt\fR" 4
12868 .IX Item "-msecure-plt"
12869 Generate code that allows ld and ld.so to build executables and shared
12870 libraries with non-exec .plt and .got sections.  This is a PowerPC
12871 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
12872 .IP "\fB\-mbss\-plt\fR" 4
12873 .IX Item "-mbss-plt"
12874 Generate code that uses a \s-1BSS\s0 .plt section that ld.so fills in, and
12875 requires .plt and .got sections that are both writable and executable.
12876 This is a PowerPC 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
12877 .IP "\fB\-misel\fR" 4
12878 .IX Item "-misel"
12879 .PD 0
12880 .IP "\fB\-mno\-isel\fR" 4
12881 .IX Item "-mno-isel"
12882 .PD
12883 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
12884 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
12885 .IX Item "-misel=yes/no"
12886 This switch has been deprecated.  Use \fB\-misel\fR and
12887 \&\fB\-mno\-isel\fR instead.
12888 .IP "\fB\-mspe\fR" 4
12889 .IX Item "-mspe"
12890 .PD 0
12891 .IP "\fB\-mno\-spe\fR" 4
12892 .IX Item "-mno-spe"
12893 .PD
12894 This switch enables or disables the generation of \s-1SPE\s0 simd
12895 instructions.
12896 .IP "\fB\-mpaired\fR" 4
12897 .IX Item "-mpaired"
12898 .PD 0
12899 .IP "\fB\-mno\-paired\fR" 4
12900 .IX Item "-mno-paired"
12901 .PD
12902 This switch enables or disables the generation of \s-1PAIRED\s0 simd
12903 instructions.
12904 .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
12905 .IX Item "-mspe=yes/no"
12906 This option has been deprecated.  Use \fB\-mspe\fR and
12907 \&\fB\-mno\-spe\fR instead.
12908 .IP "\fB\-mfloat\-gprs=\fR\fIyes/single/double/no\fR" 4
12909 .IX Item "-mfloat-gprs=yes/single/double/no"
12910 .PD 0
12911 .IP "\fB\-mfloat\-gprs\fR" 4
12912 .IX Item "-mfloat-gprs"
12913 .PD
12914 This switch enables or disables the generation of floating point
12915 operations on the general purpose registers for architectures that
12916 support it.
12917 .Sp
12918 The argument \fIyes\fR or \fIsingle\fR enables the use of
12919 single-precision floating point operations.
12920 .Sp
12921 The argument \fIdouble\fR enables the use of single and
12922 double-precision floating point operations.
12923 .Sp
12924 The argument \fIno\fR disables floating point operations on the
12925 general purpose registers.
12926 .Sp
12927 This option is currently only available on the MPC854x.
12928 .IP "\fB\-m32\fR" 4
12929 .IX Item "-m32"
12930 .PD 0
12931 .IP "\fB\-m64\fR" 4
12932 .IX Item "-m64"
12933 .PD
12934 Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
12935 targets (including GNU/Linux).  The 32\-bit environment sets int, long
12936 and pointer to 32 bits and generates code that runs on any PowerPC
12937 variant.  The 64\-bit environment sets int to 32 bits and long and
12938 pointer to 64 bits, and generates code for PowerPC64, as for
12939 \&\fB\-mpowerpc64\fR.
12940 .IP "\fB\-mfull\-toc\fR" 4
12941 .IX Item "-mfull-toc"
12942 .PD 0
12943 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
12944 .IX Item "-mno-fp-in-toc"
12945 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
12946 .IX Item "-mno-sum-in-toc"
12947 .IP "\fB\-mminimal\-toc\fR" 4
12948 .IX Item "-mminimal-toc"
12949 .PD
12950 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
12951 every executable file.  The \fB\-mfull\-toc\fR option is selected by
12952 default.  In that case, \s-1GCC\s0 will allocate at least one \s-1TOC\s0 entry for
12953 each unique non-automatic variable reference in your program.  \s-1GCC\s0
12954 will also place floating-point constants in the \s-1TOC\s0.  However, only
12955 16,384 entries are available in the \s-1TOC\s0.
12956 .Sp
12957 If you receive a linker error message that saying you have overflowed
12958 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
12959 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
12960 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
12961 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
12962 generate code to calculate the sum of an address and a constant at
12963 run-time instead of putting that sum into the \s-1TOC\s0.  You may specify one
12964 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
12965 slower and larger code at the expense of conserving \s-1TOC\s0 space.
12966 .Sp
12967 If you still run out of space in the \s-1TOC\s0 even when you specify both of
12968 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
12969 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
12970 option, \s-1GCC\s0 will produce code that is slower and larger but which
12971 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
12972 only on files that contain less frequently executed code.
12973 .IP "\fB\-maix64\fR" 4
12974 .IX Item "-maix64"
12975 .PD 0
12976 .IP "\fB\-maix32\fR" 4
12977 .IX Item "-maix32"
12978 .PD
12979 Enable 64\-bit \s-1AIX\s0 \s-1ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
12980 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
12981 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR and
12982 \&\fB\-mpowerpc\fR, while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
12983 implies \fB\-mno\-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
12984 .IP "\fB\-mxl\-compat\fR" 4
12985 .IX Item "-mxl-compat"
12986 .PD 0
12987 .IP "\fB\-mno\-xl\-compat\fR" 4
12988 .IX Item "-mno-xl-compat"
12989 .PD
12990 Produce code that conforms more closely to \s-1IBM\s0 \s-1XL\s0 compiler semantics
12991 when using AIX-compatible \s-1ABI\s0.  Pass floating-point arguments to
12992 prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
12993 in addition to argument FPRs.  Do not assume that most significant
12994 double in 128\-bit long double value is properly rounded when comparing
12995 values and converting to double.  Use \s-1XL\s0 symbol names for long double
12996 support routines.
12997 .Sp
12998 The \s-1AIX\s0 calling convention was extended but not initially documented to
12999 handle an obscure K&R C case of calling a function that takes the
13000 address of its arguments with fewer arguments than declared.  \s-1IBM\s0 \s-1XL\s0
13001 compilers access floating point arguments which do not fit in the
13002 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
13003 optimization.  Because always storing floating-point arguments on the
13004 stack is inefficient and rarely needed, this option is not enabled by
13005 default and only is necessary when calling subroutines compiled by \s-1IBM\s0
13006 \&\s-1XL\s0 compilers without optimization.
13007 .IP "\fB\-mpe\fR" 4
13008 .IX Item "-mpe"
13009 Support \fI\s-1IBM\s0 \s-1RS/6000\s0 \s-1SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
13010 application written to use message passing with special startup code to
13011 enable the application to run.  The system must have \s-1PE\s0 installed in the
13012 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
13013 must be overridden with the \fB\-specs=\fR option to specify the
13014 appropriate directory location.  The Parallel Environment does not
13015 support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
13016 option are incompatible.
13017 .IP "\fB\-malign\-natural\fR" 4
13018 .IX Item "-malign-natural"
13019 .PD 0
13020 .IP "\fB\-malign\-power\fR" 4
13021 .IX Item "-malign-power"
13022 .PD
13023 On \s-1AIX\s0, 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
13024 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
13025 types, such as floating-point doubles, on their natural size-based boundary.
13026 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
13027 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI\s0.
13028 .Sp
13029 On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
13030 is not supported.
13031 .IP "\fB\-msoft\-float\fR" 4
13032 .IX Item "-msoft-float"
13033 .PD 0
13034 .IP "\fB\-mhard\-float\fR" 4
13035 .IX Item "-mhard-float"
13036 .PD
13037 Generate code that does not use (uses) the floating-point register set.
13038 Software floating point emulation is provided if you use the
13039 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
13040 .IP "\fB\-msingle\-float\fR" 4
13041 .IX Item "-msingle-float"
13042 .PD 0
13043 .IP "\fB\-mdouble\-float\fR" 4
13044 .IX Item "-mdouble-float"
13045 .PD
13046 Generate code for single or double-precision floating point operations. 
13047 \&\fB\-mdouble\-float\fR implies \fB\-msingle\-float\fR.
13048 .IP "\fB\-msimple\-fpu\fR" 4
13049 .IX Item "-msimple-fpu"
13050 Do not generate sqrt and div instructions for hardware floating point unit.
13051 .IP "\fB\-mfpu\fR" 4
13052 .IX Item "-mfpu"
13053 Specify type of floating point unit.  Valid values are \fIsp_lite\fR 
13054 (equivalent to \-msingle\-float \-msimple\-fpu), \fIdp_lite\fR (equivalent
13055 to \-mdouble\-float \-msimple\-fpu), \fIsp_full\fR (equivalent to \-msingle\-float),
13056 and \fIdp_full\fR (equivalent to \-mdouble\-float).
13057 .IP "\fB\-mxilinx\-fpu\fR" 4
13058 .IX Item "-mxilinx-fpu"
13059 Perform optimizations for floating point unit on Xilinx \s-1PPC\s0 405/440.
13060 .IP "\fB\-mmultiple\fR" 4
13061 .IX Item "-mmultiple"
13062 .PD 0
13063 .IP "\fB\-mno\-multiple\fR" 4
13064 .IX Item "-mno-multiple"
13065 .PD
13066 Generate code that uses (does not use) the load multiple word
13067 instructions and the store multiple word instructions.  These
13068 instructions are generated by default on \s-1POWER\s0 systems, and not
13069 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little
13070 endian PowerPC systems, since those instructions do not work when the
13071 processor is in little endian mode.  The exceptions are \s-1PPC740\s0 and
13072 \&\s-1PPC750\s0 which permit the instructions usage in little endian mode.
13073 .IP "\fB\-mstring\fR" 4
13074 .IX Item "-mstring"
13075 .PD 0
13076 .IP "\fB\-mno\-string\fR" 4
13077 .IX Item "-mno-string"
13078 .PD
13079 Generate code that uses (does not use) the load string instructions
13080 and the store string word instructions to save multiple registers and
13081 do small block moves.  These instructions are generated by default on
13082 \&\s-1POWER\s0 systems, and not generated on PowerPC systems.  Do not use
13083 \&\fB\-mstring\fR on little endian PowerPC systems, since those
13084 instructions do not work when the processor is in little endian mode.
13085 The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit the instructions
13086 usage in little endian mode.
13087 .IP "\fB\-mupdate\fR" 4
13088 .IX Item "-mupdate"
13089 .PD 0
13090 .IP "\fB\-mno\-update\fR" 4
13091 .IX Item "-mno-update"
13092 .PD
13093 Generate code that uses (does not use) the load or store instructions
13094 that update the base register to the address of the calculated memory
13095 location.  These instructions are generated by default.  If you use
13096 \&\fB\-mno\-update\fR, there is a small window between the time that the
13097 stack pointer is updated and the address of the previous frame is
13098 stored, which means code that walks the stack frame across interrupts or
13099 signals may get corrupted data.
13100 .IP "\fB\-mavoid\-indexed\-addresses\fR" 4
13101 .IX Item "-mavoid-indexed-addresses"
13102 .PD 0
13103 .IP "\fB\-mno\-avoid\-indexed\-addresses\fR" 4
13104 .IX Item "-mno-avoid-indexed-addresses"
13105 .PD
13106 Generate code that tries to avoid (not avoid) the use of indexed load
13107 or store instructions. These instructions can incur a performance
13108 penalty on Power6 processors in certain situations, such as when
13109 stepping through large arrays that cross a 16M boundary.  This option
13110 is enabled by default when targetting Power6 and disabled otherwise.
13111 .IP "\fB\-mfused\-madd\fR" 4
13112 .IX Item "-mfused-madd"
13113 .PD 0
13114 .IP "\fB\-mno\-fused\-madd\fR" 4
13115 .IX Item "-mno-fused-madd"
13116 .PD
13117 Generate code that uses (does not use) the floating point multiply and
13118 accumulate instructions.  These instructions are generated by default if
13119 hardware floating is used.
13120 .IP "\fB\-mmulhw\fR" 4
13121 .IX Item "-mmulhw"
13122 .PD 0
13123 .IP "\fB\-mno\-mulhw\fR" 4
13124 .IX Item "-mno-mulhw"
13125 .PD
13126 Generate code that uses (does not use) the half-word multiply and
13127 multiply-accumulate instructions on the \s-1IBM\s0 405, 440 and 464 processors.
13128 These instructions are generated by default when targetting those
13129 processors.
13130 .IP "\fB\-mdlmzb\fR" 4
13131 .IX Item "-mdlmzb"
13132 .PD 0
13133 .IP "\fB\-mno\-dlmzb\fR" 4
13134 .IX Item "-mno-dlmzb"
13135 .PD
13136 Generate code that uses (does not use) the string-search \fBdlmzb\fR
13137 instruction on the \s-1IBM\s0 405, 440 and 464 processors.  This instruction is
13138 generated by default when targetting those processors.
13139 .IP "\fB\-mno\-bit\-align\fR" 4
13140 .IX Item "-mno-bit-align"
13141 .PD 0
13142 .IP "\fB\-mbit\-align\fR" 4
13143 .IX Item "-mbit-align"
13144 .PD
13145 On System V.4 and embedded PowerPC systems do not (do) force structures
13146 and unions that contain bit-fields to be aligned to the base type of the
13147 bit-field.
13148 .Sp
13149 For example, by default a structure containing nothing but 8
13150 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 would be aligned to a 4 byte
13151 boundary and have a size of 4 bytes.  By using \fB\-mno\-bit\-align\fR,
13152 the structure would be aligned to a 1 byte boundary and be one byte in
13153 size.
13154 .IP "\fB\-mno\-strict\-align\fR" 4
13155 .IX Item "-mno-strict-align"
13156 .PD 0
13157 .IP "\fB\-mstrict\-align\fR" 4
13158 .IX Item "-mstrict-align"
13159 .PD
13160 On System V.4 and embedded PowerPC systems do not (do) assume that
13161 unaligned memory references will be handled by the system.
13162 .IP "\fB\-mrelocatable\fR" 4
13163 .IX Item "-mrelocatable"
13164 .PD 0
13165 .IP "\fB\-mno\-relocatable\fR" 4
13166 .IX Item "-mno-relocatable"
13167 .PD
13168 On embedded PowerPC systems generate code that allows (does not allow)
13169 the program to be relocated to a different address at runtime.  If you
13170 use \fB\-mrelocatable\fR on any module, all objects linked together must
13171 be compiled with \fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
13172 .IP "\fB\-mrelocatable\-lib\fR" 4
13173 .IX Item "-mrelocatable-lib"
13174 .PD 0
13175 .IP "\fB\-mno\-relocatable\-lib\fR" 4
13176 .IX Item "-mno-relocatable-lib"
13177 .PD
13178 On embedded PowerPC systems generate code that allows (does not allow)
13179 the program to be relocated to a different address at runtime.  Modules
13180 compiled with \fB\-mrelocatable\-lib\fR can be linked with either modules
13181 compiled without \fB\-mrelocatable\fR and \fB\-mrelocatable\-lib\fR or
13182 with modules compiled with the \fB\-mrelocatable\fR options.
13183 .IP "\fB\-mno\-toc\fR" 4
13184 .IX Item "-mno-toc"
13185 .PD 0
13186 .IP "\fB\-mtoc\fR" 4
13187 .IX Item "-mtoc"
13188 .PD
13189 On System V.4 and embedded PowerPC systems do not (do) assume that
13190 register 2 contains a pointer to a global area pointing to the addresses
13191 used in the program.
13192 .IP "\fB\-mlittle\fR" 4
13193 .IX Item "-mlittle"
13194 .PD 0
13195 .IP "\fB\-mlittle\-endian\fR" 4
13196 .IX Item "-mlittle-endian"
13197 .PD
13198 On System V.4 and embedded PowerPC systems compile code for the
13199 processor in little endian mode.  The \fB\-mlittle\-endian\fR option is
13200 the same as \fB\-mlittle\fR.
13201 .IP "\fB\-mbig\fR" 4
13202 .IX Item "-mbig"
13203 .PD 0
13204 .IP "\fB\-mbig\-endian\fR" 4
13205 .IX Item "-mbig-endian"
13206 .PD
13207 On System V.4 and embedded PowerPC systems compile code for the
13208 processor in big endian mode.  The \fB\-mbig\-endian\fR option is
13209 the same as \fB\-mbig\fR.
13210 .IP "\fB\-mdynamic\-no\-pic\fR" 4
13211 .IX Item "-mdynamic-no-pic"
13212 On Darwin and Mac \s-1OS\s0 X systems, compile code so that it is not
13213 relocatable, but that its external references are relocatable.  The
13214 resulting code is suitable for applications, but not shared
13215 libraries.
13216 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
13217 .IX Item "-mprioritize-restricted-insns=priority"
13218 This option controls the priority that is assigned to
13219 dispatch-slot restricted instructions during the second scheduling
13220 pass.  The argument \fIpriority\fR takes the value \fI0/1/2\fR to assign
13221 \&\fIno/highest/second\-highest\fR priority to dispatch slot restricted
13222 instructions.
13223 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
13224 .IX Item "-msched-costly-dep=dependence_type"
13225 This option controls which dependences are considered costly
13226 by the target during instruction scheduling.  The argument
13227 \&\fIdependence_type\fR takes one of the following values:
13228 \&\fIno\fR: no dependence is costly,
13229 \&\fIall\fR: all dependences are costly,
13230 \&\fItrue_store_to_load\fR: a true dependence from store to load is costly,
13231 \&\fIstore_to_load\fR: any dependence from store to load is costly,
13232 \&\fInumber\fR: any dependence which latency >= \fInumber\fR is costly.
13233 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
13234 .IX Item "-minsert-sched-nops=scheme"
13235 This option controls which nop insertion scheme will be used during
13236 the second scheduling pass.  The argument \fIscheme\fR takes one of the
13237 following values:
13238 \&\fIno\fR: Don't insert nops.
13239 \&\fIpad\fR: Pad with nops any dispatch group which has vacant issue slots,
13240 according to the scheduler's grouping.
13241 \&\fIregroup_exact\fR: Insert nops to force costly dependent insns into
13242 separate groups.  Insert exactly as many nops as needed to force an insn
13243 to a new group, according to the estimated processor grouping.
13244 \&\fInumber\fR: Insert nops to force costly dependent insns into
13245 separate groups.  Insert \fInumber\fR nops to force an insn to a new group.
13246 .IP "\fB\-mcall\-sysv\fR" 4
13247 .IX Item "-mcall-sysv"
13248 On System V.4 and embedded PowerPC systems compile code using calling
13249 conventions that adheres to the March 1995 draft of the System V
13250 Application Binary Interface, PowerPC processor supplement.  This is the
13251 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
13252 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
13253 .IX Item "-mcall-sysv-eabi"
13254 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
13255 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
13256 .IX Item "-mcall-sysv-noeabi"
13257 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
13258 .IP "\fB\-mcall\-solaris\fR" 4
13259 .IX Item "-mcall-solaris"
13260 On System V.4 and embedded PowerPC systems compile code for the Solaris
13261 operating system.
13262 .IP "\fB\-mcall\-linux\fR" 4
13263 .IX Item "-mcall-linux"
13264 On System V.4 and embedded PowerPC systems compile code for the
13265 Linux-based \s-1GNU\s0 system.
13266 .IP "\fB\-mcall\-gnu\fR" 4
13267 .IX Item "-mcall-gnu"
13268 On System V.4 and embedded PowerPC systems compile code for the
13269 Hurd-based \s-1GNU\s0 system.
13270 .IP "\fB\-mcall\-netbsd\fR" 4
13271 .IX Item "-mcall-netbsd"
13272 On System V.4 and embedded PowerPC systems compile code for the
13273 NetBSD operating system.
13274 .IP "\fB\-maix\-struct\-return\fR" 4
13275 .IX Item "-maix-struct-return"
13276 Return all structures in memory (as specified by the \s-1AIX\s0 \s-1ABI\s0).
13277 .IP "\fB\-msvr4\-struct\-return\fR" 4
13278 .IX Item "-msvr4-struct-return"
13279 Return structures smaller than 8 bytes in registers (as specified by the
13280 \&\s-1SVR4\s0 \s-1ABI\s0).
13281 .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
13282 .IX Item "-mabi=abi-type"
13283 Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
13284 Valid values are \fIaltivec\fR, \fIno-altivec\fR, \fIspe\fR,
13285 \&\fIno-spe\fR, \fIibmlongdouble\fR, \fIieeelongdouble\fR.
13286 .IP "\fB\-mabi=spe\fR" 4
13287 .IX Item "-mabi=spe"
13288 Extend the current \s-1ABI\s0 with \s-1SPE\s0 \s-1ABI\s0 extensions.  This does not change
13289 the default \s-1ABI\s0, instead it adds the \s-1SPE\s0 \s-1ABI\s0 extensions to the current
13290 \&\s-1ABI\s0.
13291 .IP "\fB\-mabi=no\-spe\fR" 4
13292 .IX Item "-mabi=no-spe"
13293 Disable Booke \s-1SPE\s0 \s-1ABI\s0 extensions for the current \s-1ABI\s0.
13294 .IP "\fB\-mabi=ibmlongdouble\fR" 4
13295 .IX Item "-mabi=ibmlongdouble"
13296 Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended precision long double.
13297 This is a PowerPC 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
13298 .IP "\fB\-mabi=ieeelongdouble\fR" 4
13299 .IX Item "-mabi=ieeelongdouble"
13300 Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended precision long double.
13301 This is a PowerPC 32\-bit Linux \s-1ABI\s0 option.
13302 .IP "\fB\-mprototype\fR" 4
13303 .IX Item "-mprototype"
13304 .PD 0
13305 .IP "\fB\-mno\-prototype\fR" 4
13306 .IX Item "-mno-prototype"
13307 .PD
13308 On System V.4 and embedded PowerPC systems assume that all calls to
13309 variable argument functions are properly prototyped.  Otherwise, the
13310 compiler must insert an instruction before every non prototyped call to
13311 set or clear bit 6 of the condition code register (\fI\s-1CR\s0\fR) to
13312 indicate whether floating point values were passed in the floating point
13313 registers in case the function takes a variable arguments.  With
13314 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
13315 will set or clear the bit.
13316 .IP "\fB\-msim\fR" 4
13317 .IX Item "-msim"
13318 On embedded PowerPC systems, assume that the startup module is called
13319 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
13320 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR
13321 configurations.
13322 .IP "\fB\-mmvme\fR" 4
13323 .IX Item "-mmvme"
13324 On embedded PowerPC systems, assume that the startup module is called
13325 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
13326 \&\fIlibc.a\fR.
13327 .IP "\fB\-mads\fR" 4
13328 .IX Item "-mads"
13329 On embedded PowerPC systems, assume that the startup module is called
13330 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
13331 \&\fIlibc.a\fR.
13332 .IP "\fB\-myellowknife\fR" 4
13333 .IX Item "-myellowknife"
13334 On embedded PowerPC systems, assume that the startup module is called
13335 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
13336 \&\fIlibc.a\fR.
13337 .IP "\fB\-mvxworks\fR" 4
13338 .IX Item "-mvxworks"
13339 On System V.4 and embedded PowerPC systems, specify that you are
13340 compiling for a VxWorks system.
13341 .IP "\fB\-memb\fR" 4
13342 .IX Item "-memb"
13343 On embedded PowerPC systems, set the \fI\s-1PPC_EMB\s0\fR bit in the \s-1ELF\s0 flags
13344 header to indicate that \fBeabi\fR extended relocations are used.
13345 .IP "\fB\-meabi\fR" 4
13346 .IX Item "-meabi"
13347 .PD 0
13348 .IP "\fB\-mno\-eabi\fR" 4
13349 .IX Item "-mno-eabi"
13350 .PD
13351 On System V.4 and embedded PowerPC systems do (do not) adhere to the
13352 Embedded Applications Binary Interface (eabi) which is a set of
13353 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
13354 means that the stack is aligned to an 8 byte boundary, a function
13355 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called to from \f(CW\*(C`main\*(C'\fR to set up the eabi
13356 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
13357 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
13358 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16 byte boundary,
13359 do not call an initialization function from \f(CW\*(C`main\*(C'\fR, and the
13360 \&\fB\-msdata\fR option will only use \f(CW\*(C`r13\*(C'\fR to point to a single
13361 small data area.  The \fB\-meabi\fR option is on by default if you
13362 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
13363 .IP "\fB\-msdata=eabi\fR" 4
13364 .IX Item "-msdata=eabi"
13365 On System V.4 and embedded PowerPC systems, put small initialized
13366 \&\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata2\fR section, which
13367 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
13368 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \fB.sdata\fR section,
13369 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
13370 global and static data in the \fB.sbss\fR section, which is adjacent to
13371 the \fB.sdata\fR section.  The \fB\-msdata=eabi\fR option is
13372 incompatible with the \fB\-mrelocatable\fR option.  The
13373 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
13374 .IP "\fB\-msdata=sysv\fR" 4
13375 .IX Item "-msdata=sysv"
13376 On System V.4 and embedded PowerPC systems, put small global and static
13377 data in the \fB.sdata\fR section, which is pointed to by register
13378 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
13379 \&\fB.sbss\fR section, which is adjacent to the \fB.sdata\fR section.
13380 The \fB\-msdata=sysv\fR option is incompatible with the
13381 \&\fB\-mrelocatable\fR option.
13382 .IP "\fB\-msdata=default\fR" 4
13383 .IX Item "-msdata=default"
13384 .PD 0
13385 .IP "\fB\-msdata\fR" 4
13386 .IX Item "-msdata"
13387 .PD
13388 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
13389 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
13390 same as \fB\-msdata=sysv\fR.
13391 .IP "\fB\-msdata=data\fR" 4
13392 .IX Item "-msdata=data"
13393 On System V.4 and embedded PowerPC systems, put small global
13394 data in the \fB.sdata\fR section.  Put small uninitialized global
13395 data in the \fB.sbss\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
13396 to address small data however.  This is the default behavior unless
13397 other \fB\-msdata\fR options are used.
13398 .IP "\fB\-msdata=none\fR" 4
13399 .IX Item "-msdata=none"
13400 .PD 0
13401 .IP "\fB\-mno\-sdata\fR" 4
13402 .IX Item "-mno-sdata"
13403 .PD
13404 On embedded PowerPC systems, put all initialized global and static data
13405 in the \fB.data\fR section, and all uninitialized data in the
13406 \&\fB.bss\fR section.
13407 .IP "\fB\-G\fR \fInum\fR" 4
13408 .IX Item "-G num"
13409 On embedded PowerPC systems, put global and static items less than or
13410 equal to \fInum\fR bytes into the small data or bss sections instead of
13411 the normal data or bss section.  By default, \fInum\fR is 8.  The
13412 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
13413 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
13414 .IP "\fB\-mregnames\fR" 4
13415 .IX Item "-mregnames"
13416 .PD 0
13417 .IP "\fB\-mno\-regnames\fR" 4
13418 .IX Item "-mno-regnames"
13419 .PD
13420 On System V.4 and embedded PowerPC systems do (do not) emit register
13421 names in the assembly language output using symbolic forms.
13422 .IP "\fB\-mlongcall\fR" 4
13423 .IX Item "-mlongcall"
13424 .PD 0
13425 .IP "\fB\-mno\-longcall\fR" 4
13426 .IX Item "-mno-longcall"
13427 .PD
13428 By default assume that all calls are far away so that a longer more
13429 expensive calling sequence is required.  This is required for calls
13430 further than 32 megabytes (33,554,432 bytes) from the current location.
13431 A short call will be generated if the compiler knows
13432 the call cannot be that far away.  This setting can be overridden by
13433 the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
13434 longcall(0)\*(C'\fR.
13435 .Sp
13436 Some linkers are capable of detecting out-of-range calls and generating
13437 glue code on the fly.  On these systems, long calls are unnecessary and
13438 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
13439 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
13440 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
13441 .Sp
13442 On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR will generate \*(L"jbsr
13443 callee, L42\*(R", plus a \*(L"branch island\*(R" (glue code).  The two target
13444 addresses represent the callee and the \*(L"branch island\*(R".  The
13445 Darwin/PPC linker will prefer the first address and generate a \*(L"bl
13446 callee\*(R" if the \s-1PPC\s0 \*(L"bl\*(R" instruction will reach the callee directly;
13447 otherwise, the linker will generate \*(L"bl L42\*(R" to call the \*(L"branch
13448 island\*(R".  The \*(L"branch island\*(R" is appended to the body of the
13449 calling function; it computes the full 32\-bit address of the callee
13450 and jumps to it.
13451 .Sp
13452 On Mach-O (Darwin) systems, this option directs the compiler emit to
13453 the glue for every direct call, and the Darwin linker decides whether
13454 to use or discard it.
13455 .Sp
13456 In the future, we may cause \s-1GCC\s0 to ignore all longcall specifications
13457 when the linker is known to generate glue.
13458 .IP "\fB\-pthread\fR" 4
13459 .IX Item "-pthread"
13460 Adds support for multithreading with the \fIpthreads\fR library.
13461 This option sets flags for both the preprocessor and linker.
13462 .PP
13463 \fIS/390 and zSeries Options\fR
13464 .IX Subsection "S/390 and zSeries Options"
13465 .PP
13466 These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
13467 .IP "\fB\-mhard\-float\fR" 4
13468 .IX Item "-mhard-float"
13469 .PD 0
13470 .IP "\fB\-msoft\-float\fR" 4
13471 .IX Item "-msoft-float"
13472 .PD
13473 Use (do not use) the hardware floating-point instructions and registers
13474 for floating-point operations.  When \fB\-msoft\-float\fR is specified,
13475 functions in \fIlibgcc.a\fR will be used to perform floating-point
13476 operations.  When \fB\-mhard\-float\fR is specified, the compiler
13477 generates \s-1IEEE\s0 floating-point instructions.  This is the default.
13478 .IP "\fB\-mhard\-dfp\fR" 4
13479 .IX Item "-mhard-dfp"
13480 .PD 0
13481 .IP "\fB\-mno\-hard\-dfp\fR" 4
13482 .IX Item "-mno-hard-dfp"
13483 .PD
13484 Use (do not use) the hardware decimal-floating-point instructions for
13485 decimal-floating-point operations.  When \fB\-mno\-hard\-dfp\fR is
13486 specified, functions in \fIlibgcc.a\fR will be used to perform
13487 decimal-floating-point operations.  When \fB\-mhard\-dfp\fR is
13488 specified, the compiler generates decimal-floating-point hardware
13489 instructions.  This is the default for \fB\-march=z9\-ec\fR or higher.
13490 .IP "\fB\-mlong\-double\-64\fR" 4
13491 .IX Item "-mlong-double-64"
13492 .PD 0
13493 .IP "\fB\-mlong\-double\-128\fR" 4
13494 .IX Item "-mlong-double-128"
13495 .PD
13496 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
13497 of 64bit makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
13498 type. This is the default.
13499 .IP "\fB\-mbackchain\fR" 4
13500 .IX Item "-mbackchain"
13501 .PD 0
13502 .IP "\fB\-mno\-backchain\fR" 4
13503 .IX Item "-mno-backchain"
13504 .PD
13505 Store (do not store) the address of the caller's frame as backchain pointer
13506 into the callee's stack frame.
13507 A backchain may be needed to allow debugging using tools that do not understand
13508 \&\s-1DWARF\-2\s0 call frame information.
13509 When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
13510 at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
13511 the backchain is placed into the topmost word of the 96/160 byte register
13512 save area.
13513 .Sp
13514 In general, code compiled with \fB\-mbackchain\fR is call-compatible with
13515 code compiled with \fB\-mmo\-backchain\fR; however, use of the backchain
13516 for debugging purposes usually requires that the whole binary is built with
13517 \&\fB\-mbackchain\fR.  Note that the combination of \fB\-mbackchain\fR,
13518 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
13519 to build a linux kernel use \fB\-msoft\-float\fR.
13520 .Sp
13521 The default is to not maintain the backchain.
13522 .IP "\fB\-mpacked\-stack\fR" 4
13523 .IX Item "-mpacked-stack"
13524 .PD 0
13525 .IP "\fB\-mno\-packed\-stack\fR" 4
13526 .IX Item "-mno-packed-stack"
13527 .PD
13528 Use (do not use) the packed stack layout.  When \fB\-mno\-packed\-stack\fR is
13529 specified, the compiler uses the all fields of the 96/160 byte register save
13530 area only for their default purpose; unused fields still take up stack space.
13531 When \fB\-mpacked\-stack\fR is specified, register save slots are densely
13532 packed at the top of the register save area; unused space is reused for other
13533 purposes, allowing for more efficient use of the available stack space.
13534 However, when \fB\-mbackchain\fR is also in effect, the topmost word of
13535 the save area is always used to store the backchain, and the return address
13536 register is always saved two words below the backchain.
13537 .Sp
13538 As long as the stack frame backchain is not used, code generated with
13539 \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
13540 \&\fB\-mno\-packed\-stack\fR.  Note that some non-FSF releases of \s-1GCC\s0 2.95 for
13541 S/390 or zSeries generated code that uses the stack frame backchain at run
13542 time, not just for debugging purposes.  Such code is not call-compatible
13543 with code compiled with \fB\-mpacked\-stack\fR.  Also, note that the
13544 combination of \fB\-mbackchain\fR,
13545 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
13546 to build a linux kernel use \fB\-msoft\-float\fR.
13547 .Sp
13548 The default is to not use the packed stack layout.
13549 .IP "\fB\-msmall\-exec\fR" 4
13550 .IX Item "-msmall-exec"
13551 .PD 0
13552 .IP "\fB\-mno\-small\-exec\fR" 4
13553 .IX Item "-mno-small-exec"
13554 .PD
13555 Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
13556 to do subroutine calls.
13557 This only works reliably if the total executable size does not
13558 exceed 64k.  The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
13559 which does not have this limitation.
13560 .IP "\fB\-m64\fR" 4
13561 .IX Item "-m64"
13562 .PD 0
13563 .IP "\fB\-m31\fR" 4
13564 .IX Item "-m31"
13565 .PD
13566 When \fB\-m31\fR is specified, generate code compliant to the
13567 GNU/Linux for S/390 \s-1ABI\s0.  When \fB\-m64\fR is specified, generate
13568 code compliant to the GNU/Linux for zSeries \s-1ABI\s0.  This allows \s-1GCC\s0 in
13569 particular to generate 64\-bit instructions.  For the \fBs390\fR
13570 targets, the default is \fB\-m31\fR, while the \fBs390x\fR
13571 targets default to \fB\-m64\fR.
13572 .IP "\fB\-mzarch\fR" 4
13573 .IX Item "-mzarch"
13574 .PD 0
13575 .IP "\fB\-mesa\fR" 4
13576 .IX Item "-mesa"
13577 .PD
13578 When \fB\-mzarch\fR is specified, generate code using the
13579 instructions available on z/Architecture.
13580 When \fB\-mesa\fR is specified, generate code using the
13581 instructions available on \s-1ESA/390\s0.  Note that \fB\-mesa\fR is
13582 not possible with \fB\-m64\fR.
13583 When generating code compliant to the GNU/Linux for S/390 \s-1ABI\s0,
13584 the default is \fB\-mesa\fR.  When generating code compliant
13585 to the GNU/Linux for zSeries \s-1ABI\s0, the default is \fB\-mzarch\fR.
13586 .IP "\fB\-mmvcle\fR" 4
13587 .IX Item "-mmvcle"
13588 .PD 0
13589 .IP "\fB\-mno\-mvcle\fR" 4
13590 .IX Item "-mno-mvcle"
13591 .PD
13592 Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
13593 to perform block moves.  When \fB\-mno\-mvcle\fR is specified,
13594 use a \f(CW\*(C`mvc\*(C'\fR loop instead.  This is the default unless optimizing for
13595 size.
13596 .IP "\fB\-mdebug\fR" 4
13597 .IX Item "-mdebug"
13598 .PD 0
13599 .IP "\fB\-mno\-debug\fR" 4
13600 .IX Item "-mno-debug"
13601 .PD
13602 Print (or do not print) additional debug information when compiling.
13603 The default is to not print debug information.
13604 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
13605 .IX Item "-march=cpu-type"
13606 Generate code that will run on \fIcpu-type\fR, which is the name of a system
13607 representing a certain processor type.  Possible values for
13608 \&\fIcpu-type\fR are \fBg5\fR, \fBg6\fR, \fBz900\fR, \fBz990\fR,
13609 \&\fBz9\-109\fR, \fBz9\-ec\fR and \fBz10\fR.
13610 When generating code using the instructions available on z/Architecture,
13611 the default is \fB\-march=z900\fR.  Otherwise, the default is
13612 \&\fB\-march=g5\fR.
13613 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
13614 .IX Item "-mtune=cpu-type"
13615 Tune to \fIcpu-type\fR everything applicable about the generated code,
13616 except for the \s-1ABI\s0 and the set of available instructions.
13617 The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
13618 The default is the value used for \fB\-march\fR.
13619 .IP "\fB\-mtpf\-trace\fR" 4
13620 .IX Item "-mtpf-trace"
13621 .PD 0
13622 .IP "\fB\-mno\-tpf\-trace\fR" 4
13623 .IX Item "-mno-tpf-trace"
13624 .PD
13625 Generate code that adds (does not add) in \s-1TPF\s0 \s-1OS\s0 specific branches to trace
13626 routines in the operating system.  This option is off by default, even
13627 when compiling for the \s-1TPF\s0 \s-1OS\s0.
13628 .IP "\fB\-mfused\-madd\fR" 4
13629 .IX Item "-mfused-madd"
13630 .PD 0
13631 .IP "\fB\-mno\-fused\-madd\fR" 4
13632 .IX Item "-mno-fused-madd"
13633 .PD
13634 Generate code that uses (does not use) the floating point multiply and
13635 accumulate instructions.  These instructions are generated by default if
13636 hardware floating point is used.
13637 .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
13638 .IX Item "-mwarn-framesize=framesize"
13639 Emit a warning if the current function exceeds the given frame size.  Because
13640 this is a compile time check it doesn't need to be a real problem when the program
13641 runs.  It is intended to identify functions which most probably cause
13642 a stack overflow.  It is useful to be used in an environment with limited stack
13643 size e.g. the linux kernel.
13644 .IP "\fB\-mwarn\-dynamicstack\fR" 4
13645 .IX Item "-mwarn-dynamicstack"
13646 Emit a warning if the function calls alloca or uses dynamically
13647 sized arrays.  This is generally a bad idea with a limited stack size.
13648 .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
13649 .IX Item "-mstack-guard=stack-guard"
13650 .PD 0
13651 .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
13652 .IX Item "-mstack-size=stack-size"
13653 .PD
13654 If these options are provided the s390 back end emits additional instructions in
13655 the function prologue which trigger a trap if the stack size is \fIstack-guard\fR
13656 bytes above the \fIstack-size\fR (remember that the stack on s390 grows downward).
13657 If the \fIstack-guard\fR option is omitted the smallest power of 2 larger than
13658 the frame size of the compiled function is chosen.
13659 These options are intended to be used to help debugging stack overflow problems.
13660 The additionally emitted code causes only little overhead and hence can also be
13661 used in production like systems without greater performance degradation.  The given
13662 values have to be exact powers of 2 and \fIstack-size\fR has to be greater than
13663 \&\fIstack-guard\fR without exceeding 64k.
13664 In order to be efficient the extra code makes the assumption that the stack starts
13665 at an address aligned to the value given by \fIstack-size\fR.
13666 The \fIstack-guard\fR option can only be used in conjunction with \fIstack-size\fR.
13667 .PP
13668 \fIScore Options\fR
13669 .IX Subsection "Score Options"
13670 .PP
13671 These options are defined for Score implementations:
13672 .IP "\fB\-meb\fR" 4
13673 .IX Item "-meb"
13674 Compile code for big endian mode.  This is the default.
13675 .IP "\fB\-mel\fR" 4
13676 .IX Item "-mel"
13677 Compile code for little endian mode.
13678 .IP "\fB\-mnhwloop\fR" 4
13679 .IX Item "-mnhwloop"
13680 Disable generate bcnz instruction.
13681 .IP "\fB\-muls\fR" 4
13682 .IX Item "-muls"
13683 Enable generate unaligned load and store instruction.
13684 .IP "\fB\-mmac\fR" 4
13685 .IX Item "-mmac"
13686 Enable the use of multiply-accumulate instructions. Disabled by default.
13687 .IP "\fB\-mscore5\fR" 4
13688 .IX Item "-mscore5"
13689 Specify the \s-1SCORE5\s0 as the target architecture.
13690 .IP "\fB\-mscore5u\fR" 4
13691 .IX Item "-mscore5u"
13692 Specify the \s-1SCORE5U\s0 of the target architecture.
13693 .IP "\fB\-mscore7\fR" 4
13694 .IX Item "-mscore7"
13695 Specify the \s-1SCORE7\s0 as the target architecture. This is the default.
13696 .IP "\fB\-mscore7d\fR" 4
13697 .IX Item "-mscore7d"
13698 Specify the \s-1SCORE7D\s0 as the target architecture.
13699 .PP
13700 \fI\s-1SH\s0 Options\fR
13701 .IX Subsection "SH Options"
13702 .PP
13703 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
13704 .IP "\fB\-m1\fR" 4
13705 .IX Item "-m1"
13706 Generate code for the \s-1SH1\s0.
13707 .IP "\fB\-m2\fR" 4
13708 .IX Item "-m2"
13709 Generate code for the \s-1SH2\s0.
13710 .IP "\fB\-m2e\fR" 4
13711 .IX Item "-m2e"
13712 Generate code for the SH2e.
13713 .IP "\fB\-m3\fR" 4
13714 .IX Item "-m3"
13715 Generate code for the \s-1SH3\s0.
13716 .IP "\fB\-m3e\fR" 4
13717 .IX Item "-m3e"
13718 Generate code for the SH3e.
13719 .IP "\fB\-m4\-nofpu\fR" 4
13720 .IX Item "-m4-nofpu"
13721 Generate code for the \s-1SH4\s0 without a floating-point unit.
13722 .IP "\fB\-m4\-single\-only\fR" 4
13723 .IX Item "-m4-single-only"
13724 Generate code for the \s-1SH4\s0 with a floating-point unit that only
13725 supports single-precision arithmetic.
13726 .IP "\fB\-m4\-single\fR" 4
13727 .IX Item "-m4-single"
13728 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
13729 single-precision mode by default.
13730 .IP "\fB\-m4\fR" 4
13731 .IX Item "-m4"
13732 Generate code for the \s-1SH4\s0.
13733 .IP "\fB\-m4a\-nofpu\fR" 4
13734 .IX Item "-m4a-nofpu"
13735 Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
13736 floating-point unit is not used.
13737 .IP "\fB\-m4a\-single\-only\fR" 4
13738 .IX Item "-m4a-single-only"
13739 Generate code for the SH4a, in such a way that no double-precision
13740 floating point operations are used.
13741 .IP "\fB\-m4a\-single\fR" 4
13742 .IX Item "-m4a-single"
13743 Generate code for the SH4a assuming the floating-point unit is in
13744 single-precision mode by default.
13745 .IP "\fB\-m4a\fR" 4
13746 .IX Item "-m4a"
13747 Generate code for the SH4a.
13748 .IP "\fB\-m4al\fR" 4
13749 .IX Item "-m4al"
13750 Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
13751 \&\fB\-dsp\fR to the assembler.  \s-1GCC\s0 doesn't generate any \s-1DSP\s0
13752 instructions at the moment.
13753 .IP "\fB\-mb\fR" 4
13754 .IX Item "-mb"
13755 Compile code for the processor in big endian mode.
13756 .IP "\fB\-ml\fR" 4
13757 .IX Item "-ml"
13758 Compile code for the processor in little endian mode.
13759 .IP "\fB\-mdalign\fR" 4
13760 .IX Item "-mdalign"
13761 Align doubles at 64\-bit boundaries.  Note that this changes the calling
13762 conventions, and thus some functions from the standard C library will
13763 not work unless you recompile it first with \fB\-mdalign\fR.
13764 .IP "\fB\-mrelax\fR" 4
13765 .IX Item "-mrelax"
13766 Shorten some address references at link time, when possible; uses the
13767 linker option \fB\-relax\fR.
13768 .IP "\fB\-mbigtable\fR" 4
13769 .IX Item "-mbigtable"
13770 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
13771 16\-bit offsets.
13772 .IP "\fB\-mbitops\fR" 4
13773 .IX Item "-mbitops"
13774 Enable the use of bit manipulation instructions on \s-1SH2A\s0.
13775 .IP "\fB\-mfmovd\fR" 4
13776 .IX Item "-mfmovd"
13777 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.
13778 .IP "\fB\-mhitachi\fR" 4
13779 .IX Item "-mhitachi"
13780 Comply with the calling conventions defined by Renesas.
13781 .IP "\fB\-mrenesas\fR" 4
13782 .IX Item "-mrenesas"
13783 Comply with the calling conventions defined by Renesas.
13784 .IP "\fB\-mno\-renesas\fR" 4
13785 .IX Item "-mno-renesas"
13786 Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
13787 conventions were available.  This option is the default for all
13788 targets of the \s-1SH\s0 toolchain except for \fBsh-symbianelf\fR.
13789 .IP "\fB\-mnomacsave\fR" 4
13790 .IX Item "-mnomacsave"
13791 Mark the \f(CW\*(C`MAC\*(C'\fR register as call-clobbered, even if
13792 \&\fB\-mhitachi\fR is given.
13793 .IP "\fB\-mieee\fR" 4
13794 .IX Item "-mieee"
13795 Increase IEEE-compliance of floating-point code.
13796 At the moment, this is equivalent to \fB\-fno\-finite\-math\-only\fR.
13797 When generating 16 bit \s-1SH\s0 opcodes, getting IEEE-conforming results for
13798 comparisons of NANs / infinities incurs extra overhead in every
13799 floating point comparison, therefore the default is set to
13800 \&\fB\-ffinite\-math\-only\fR.
13801 .IP "\fB\-minline\-ic_invalidate\fR" 4
13802 .IX Item "-minline-ic_invalidate"
13803 Inline code to invalidate instruction cache entries after setting up
13804 nested function trampolines.
13805 This option has no effect if \-musermode is in effect and the selected
13806 code generation option (e.g. \-m4) does not allow the use of the icbi
13807 instruction.
13808 If the selected code generation option does not allow the use of the icbi
13809 instruction, and \-musermode is not in effect, the inlined code will
13810 manipulate the instruction cache address array directly with an associative
13811 write.  This not only requires privileged mode, but it will also
13812 fail if the cache line had been mapped via the \s-1TLB\s0 and has become unmapped.
13813 .IP "\fB\-misize\fR" 4
13814 .IX Item "-misize"
13815 Dump instruction size and location in the assembly code.
13816 .IP "\fB\-mpadstruct\fR" 4
13817 .IX Item "-mpadstruct"
13818 This option is deprecated.  It pads structures to multiple of 4 bytes,
13819 which is incompatible with the \s-1SH\s0 \s-1ABI\s0.
13820 .IP "\fB\-mspace\fR" 4
13821 .IX Item "-mspace"
13822 Optimize for space instead of speed.  Implied by \fB\-Os\fR.
13823 .IP "\fB\-mprefergot\fR" 4
13824 .IX Item "-mprefergot"
13825 When generating position-independent code, emit function calls using
13826 the Global Offset Table instead of the Procedure Linkage Table.
13827 .IP "\fB\-musermode\fR" 4
13828 .IX Item "-musermode"
13829 Don't generate privileged mode only code; implies \-mno\-inline\-ic_invalidate
13830 if the inlined code would not work in user mode.
13831 This is the default when the target is \f(CW\*(C`sh\-*\-linux*\*(C'\fR.
13832 .IP "\fB\-multcost=\fR\fInumber\fR" 4
13833 .IX Item "-multcost=number"
13834 Set the cost to assume for a multiply insn.
13835 .IP "\fB\-mdiv=\fR\fIstrategy\fR" 4
13836 .IX Item "-mdiv=strategy"
13837 Set the division strategy to use for SHmedia code.  \fIstrategy\fR must be
13838 one of: call, call2, fp, inv, inv:minlat, inv20u, inv20l, inv:call,
13839 inv:call2, inv:fp .
13840 \&\*(L"fp\*(R" performs the operation in floating point.  This has a very high latency,
13841 but needs only a few instructions, so it might be a good choice if
13842 your code has enough easily exploitable \s-1ILP\s0 to allow the compiler to
13843 schedule the floating point instructions together with other instructions.
13844 Division by zero causes a floating point exception.
13845 \&\*(L"inv\*(R" uses integer operations to calculate the inverse of the divisor,
13846 and then multiplies the dividend with the inverse.  This strategy allows
13847 cse and hoisting of the inverse calculation.  Division by zero calculates
13848 an unspecified result, but does not trap.
13849 \&\*(L"inv:minlat\*(R" is a variant of \*(L"inv\*(R" where if no cse / hoisting opportunities
13850 have been found, or if the entire operation has been hoisted to the same
13851 place, the last stages of the inverse calculation are intertwined with the
13852 final multiply to reduce the overall latency, at the expense of using a few
13853 more instructions, and thus offering fewer scheduling opportunities with
13854 other code.
13855 \&\*(L"call\*(R" calls a library function that usually implements the inv:minlat
13856 strategy.
13857 This gives high code density for m5\-*media\-nofpu compilations.
13858 \&\*(L"call2\*(R" uses a different entry point of the same library function, where it
13859 assumes that a pointer to a lookup table has already been set up, which
13860 exposes the pointer load to cse / code hoisting optimizations.
13861 \&\*(L"inv:call\*(R", \*(L"inv:call2\*(R" and \*(L"inv:fp\*(R" all use the \*(L"inv\*(R" algorithm for initial
13862 code generation, but if the code stays unoptimized, revert to the \*(L"call\*(R",
13863 \&\*(L"call2\*(R", or \*(L"fp\*(R" strategies, respectively.  Note that the
13864 potentially-trapping side effect of division by zero is carried by a
13865 separate instruction, so it is possible that all the integer instructions
13866 are hoisted out, but the marker for the side effect stays where it is.
13867 A recombination to fp operations or a call is not possible in that case.
13868 \&\*(L"inv20u\*(R" and \*(L"inv20l\*(R" are variants of the \*(L"inv:minlat\*(R" strategy.  In the case
13869 that the inverse calculation was nor separated from the multiply, they speed
13870 up division where the dividend fits into 20 bits (plus sign where applicable),
13871 by inserting a test to skip a number of operations in this case; this test
13872 slows down the case of larger dividends.  inv20u assumes the case of a such
13873 a small dividend to be unlikely, and inv20l assumes it to be likely.
13874 .IP "\fB\-mdivsi3_libfunc=\fR\fIname\fR" 4
13875 .IX Item "-mdivsi3_libfunc=name"
13876 Set the name of the library function used for 32 bit signed division to
13877 \&\fIname\fR.  This only affect the name used in the call and inv:call
13878 division strategies, and the compiler will still expect the same
13879 sets of input/output/clobbered registers as if this option was not present.
13880 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
13881 .IX Item "-mfixed-range=register-range"
13882 Generate code treating the given register range as fixed registers.
13883 A fixed register is one that the register allocator can not use.  This is
13884 useful when compiling kernel code.  A register range is specified as
13885 two registers separated by a dash.  Multiple register ranges can be
13886 specified separated by a comma.
13887 .IP "\fB\-madjust\-unroll\fR" 4
13888 .IX Item "-madjust-unroll"
13889 Throttle unrolling to avoid thrashing target registers.
13890 This option only has an effect if the gcc code base supports the
13891 \&\s-1TARGET_ADJUST_UNROLL_MAX\s0 target hook.
13892 .IP "\fB\-mindexed\-addressing\fR" 4
13893 .IX Item "-mindexed-addressing"
13894 Enable the use of the indexed addressing mode for SHmedia32/SHcompact.
13895 This is only safe if the hardware and/or \s-1OS\s0 implement 32 bit wrap-around
13896 semantics for the indexed addressing mode.  The architecture allows the
13897 implementation of processors with 64 bit \s-1MMU\s0, which the \s-1OS\s0 could use to
13898 get 32 bit addressing, but since no current hardware implementation supports
13899 this or any other way to make the indexed addressing mode safe to use in
13900 the 32 bit \s-1ABI\s0, the default is \-mno\-indexed\-addressing.
13901 .IP "\fB\-mgettrcost=\fR\fInumber\fR" 4
13902 .IX Item "-mgettrcost=number"
13903 Set the cost assumed for the gettr instruction to \fInumber\fR.
13904 The default is 2 if \fB\-mpt\-fixed\fR is in effect, 100 otherwise.
13905 .IP "\fB\-mpt\-fixed\fR" 4
13906 .IX Item "-mpt-fixed"
13907 Assume pt* instructions won't trap.  This will generally generate better
13908 scheduled code, but is unsafe on current hardware.  The current architecture
13909 definition says that ptabs and ptrel trap when the target anded with 3 is 3.
13910 This has the unintentional effect of making it unsafe to schedule ptabs /
13911 ptrel before a branch, or hoist it out of a loop.  For example,
13912 _\|_do_global_ctors, a part of libgcc that runs constructors at program
13913 startup, calls functions in a list which is delimited by \-1.  With the
13914 \&\-mpt\-fixed option, the ptabs will be done before testing against \-1.
13915 That means that all the constructors will be run a bit quicker, but when
13916 the loop comes to the end of the list, the program crashes because ptabs
13917 loads \-1 into a target register.  Since this option is unsafe for any
13918 hardware implementing the current architecture specification, the default
13919 is \-mno\-pt\-fixed.  Unless the user specifies a specific cost with
13920 \&\fB\-mgettrcost\fR, \-mno\-pt\-fixed also implies \fB\-mgettrcost=100\fR;
13921 this deters register allocation using target registers for storing
13922 ordinary integers.
13923 .IP "\fB\-minvalid\-symbols\fR" 4
13924 .IX Item "-minvalid-symbols"
13925 Assume symbols might be invalid.  Ordinary function symbols generated by
13926 the compiler will always be valid to load with movi/shori/ptabs or
13927 movi/shori/ptrel, but with assembler and/or linker tricks it is possible
13928 to generate symbols that will cause ptabs / ptrel to trap.
13929 This option is only meaningful when \fB\-mno\-pt\-fixed\fR is in effect.
13930 It will then prevent cross-basic-block cse, hoisting and most scheduling
13931 of symbol loads.  The default is \fB\-mno\-invalid\-symbols\fR.
13932 .PP
13933 \fI\s-1SPARC\s0 Options\fR
13934 .IX Subsection "SPARC Options"
13935 .PP
13936 These \fB\-m\fR options are supported on the \s-1SPARC:\s0
13937 .IP "\fB\-mno\-app\-regs\fR" 4
13938 .IX Item "-mno-app-regs"
13939 .PD 0
13940 .IP "\fB\-mapp\-regs\fR" 4
13941 .IX Item "-mapp-regs"
13942 .PD
13943 Specify \fB\-mapp\-regs\fR to generate output using the global registers
13944 2 through 4, which the \s-1SPARC\s0 \s-1SVR4\s0 \s-1ABI\s0 reserves for applications.  This
13945 is the default.
13946 .Sp
13947 To be fully \s-1SVR4\s0 \s-1ABI\s0 compliant at the cost of some performance loss,
13948 specify \fB\-mno\-app\-regs\fR.  You should compile libraries and system
13949 software with this option.
13950 .IP "\fB\-mfpu\fR" 4
13951 .IX Item "-mfpu"
13952 .PD 0
13953 .IP "\fB\-mhard\-float\fR" 4
13954 .IX Item "-mhard-float"
13955 .PD
13956 Generate output containing floating point instructions.  This is the
13957 default.
13958 .IP "\fB\-mno\-fpu\fR" 4
13959 .IX Item "-mno-fpu"
13960 .PD 0
13961 .IP "\fB\-msoft\-float\fR" 4
13962 .IX Item "-msoft-float"
13963 .PD
13964 Generate output containing library calls for floating point.
13965 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
13966 targets.  Normally the facilities of the machine's usual C compiler are
13967 used, but this cannot be done directly in cross-compilation.  You must make
13968 your own arrangements to provide suitable library functions for
13969 cross-compilation.  The embedded targets \fBsparc\-*\-aout\fR and
13970 \&\fBsparclite\-*\-*\fR do provide software floating point support.
13971 .Sp
13972 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
13973 therefore, it is only useful if you compile \fIall\fR of a program with
13974 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
13975 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
13976 this to work.
13977 .IP "\fB\-mhard\-quad\-float\fR" 4
13978 .IX Item "-mhard-quad-float"
13979 Generate output containing quad-word (long double) floating point
13980 instructions.
13981 .IP "\fB\-msoft\-quad\-float\fR" 4
13982 .IX Item "-msoft-quad-float"
13983 Generate output containing library calls for quad-word (long double)
13984 floating point instructions.  The functions called are those specified
13985 in the \s-1SPARC\s0 \s-1ABI\s0.  This is the default.
13986 .Sp
13987 As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
13988 support for the quad-word floating point instructions.  They all invoke
13989 a trap handler for one of these instructions, and then the trap handler
13990 emulates the effect of the instruction.  Because of the trap handler overhead,
13991 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
13992 \&\fB\-msoft\-quad\-float\fR option is the default.
13993 .IP "\fB\-mno\-unaligned\-doubles\fR" 4
13994 .IX Item "-mno-unaligned-doubles"
13995 .PD 0
13996 .IP "\fB\-munaligned\-doubles\fR" 4
13997 .IX Item "-munaligned-doubles"
13998 .PD
13999 Assume that doubles have 8 byte alignment.  This is the default.
14000 .Sp
14001 With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8 byte
14002 alignment only if they are contained in another type, or if they have an
14003 absolute address.  Otherwise, it assumes they have 4 byte alignment.
14004 Specifying this option avoids some rare compatibility problems with code
14005 generated by other compilers.  It is not the default because it results
14006 in a performance loss, especially for floating point code.
14007 .IP "\fB\-mno\-faster\-structs\fR" 4
14008 .IX Item "-mno-faster-structs"
14009 .PD 0
14010 .IP "\fB\-mfaster\-structs\fR" 4
14011 .IX Item "-mfaster-structs"
14012 .PD
14013 With \fB\-mfaster\-structs\fR, the compiler assumes that structures
14014 should have 8 byte alignment.  This enables the use of pairs of
14015 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
14016 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
14017 However, the use of this changed alignment directly violates the \s-1SPARC\s0
14018 \&\s-1ABI\s0.  Thus, it's intended only for use on targets where the developer
14019 acknowledges that their resulting code will not be directly in line with
14020 the rules of the \s-1ABI\s0.
14021 .IP "\fB\-mimpure\-text\fR" 4
14022 .IX Item "-mimpure-text"
14023 \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
14024 the compiler to not pass \fB\-z text\fR to the linker when linking a
14025 shared object.  Using this option, you can link position-dependent
14026 code into a shared object.
14027 .Sp
14028 \&\fB\-mimpure\-text\fR suppresses the \*(L"relocations remain against
14029 allocatable but non-writable sections\*(R" linker error message.
14030 However, the necessary relocations will trigger copy-on-write, and the
14031 shared object is not actually shared across processes.  Instead of
14032 using \fB\-mimpure\-text\fR, you should compile all source code with
14033 \&\fB\-fpic\fR or \fB\-fPIC\fR.
14034 .Sp
14035 This option is only available on SunOS and Solaris.
14036 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
14037 .IX Item "-mcpu=cpu_type"
14038 Set the instruction set, register set, and instruction scheduling parameters
14039 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
14040 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBsparclite\fR,
14041 \&\fBf930\fR, \fBf934\fR, \fBhypersparc\fR, \fBsparclite86x\fR,
14042 \&\fBsparclet\fR, \fBtsc701\fR, \fBv9\fR, \fBultrasparc\fR,
14043 \&\fBultrasparc3\fR, \fBniagara\fR and \fBniagara2\fR.
14044 .Sp
14045 Default instruction scheduling parameters are used for values that select
14046 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
14047 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
14048 .Sp
14049 Here is a list of each supported architecture and their supported
14050 implementations.
14051 .Sp
14052 .Vb 5
14053 \&            v7:             cypress
14054 \&            v8:             supersparc, hypersparc
14055 \&            sparclite:      f930, f934, sparclite86x
14056 \&            sparclet:       tsc701
14057 \&            v9:             ultrasparc, ultrasparc3, niagara, niagara2
14058 .Ve
14059 .Sp
14060 By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
14061 variant of the \s-1SPARC\s0 architecture.  With \fB\-mcpu=cypress\fR, the compiler
14062 additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
14063 SPARCStation/SPARCServer 3xx series.  This is also appropriate for the older
14064 SPARCStation 1, 2, \s-1IPX\s0 etc.
14065 .Sp
14066 With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
14067 architecture.  The only difference from V7 code is that the compiler emits
14068 the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
14069 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=supersparc\fR, the compiler additionally
14070 optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
14071 2000 series.
14072 .Sp
14073 With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
14074 the \s-1SPARC\s0 architecture.  This adds the integer multiply, integer divide step
14075 and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7\s0.
14076 With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
14077 Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU\s0.  With
14078 \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
14079 \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU\s0.
14080 .Sp
14081 With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
14082 the \s-1SPARC\s0 architecture.  This adds the integer multiply, multiply/accumulate,
14083 integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
14084 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=tsc701\fR, the compiler additionally
14085 optimizes it for the \s-1TEMIC\s0 SPARClet chip.
14086 .Sp
14087 With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
14088 architecture.  This adds 64\-bit integer and floating-point move instructions,
14089 3 additional floating-point condition code registers and conditional move
14090 instructions.  With \fB\-mcpu=ultrasparc\fR, the compiler additionally
14091 optimizes it for the Sun UltraSPARC I/II/IIi chips.  With
14092 \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
14093 Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+ chips.  With
14094 \&\fB\-mcpu=niagara\fR, the compiler additionally optimizes it for
14095 Sun UltraSPARC T1 chips.  With \fB\-mcpu=niagara2\fR, the compiler
14096 additionally optimizes it for Sun UltraSPARC T2 chips.
14097 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
14098 .IX Item "-mtune=cpu_type"
14099 Set the instruction scheduling parameters for machine type
14100 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
14101 option \fB\-mcpu=\fR\fIcpu_type\fR would.
14102 .Sp
14103 The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
14104 \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
14105 that select a particular cpu implementation.  Those are \fBcypress\fR,
14106 \&\fBsupersparc\fR, \fBhypersparc\fR, \fBf930\fR, \fBf934\fR,
14107 \&\fBsparclite86x\fR, \fBtsc701\fR, \fBultrasparc\fR,
14108 \&\fBultrasparc3\fR, \fBniagara\fR, and \fBniagara2\fR.
14109 .IP "\fB\-mv8plus\fR" 4
14110 .IX Item "-mv8plus"
14111 .PD 0
14112 .IP "\fB\-mno\-v8plus\fR" 4
14113 .IX Item "-mno-v8plus"
14114 .PD
14115 With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+\s0 \s-1ABI\s0.  The
14116 difference from the V8 \s-1ABI\s0 is that the global and out registers are
14117 considered 64\-bit wide.  This is enabled by default on Solaris in 32\-bit
14118 mode for all \s-1SPARC\-V9\s0 processors.
14119 .IP "\fB\-mvis\fR" 4
14120 .IX Item "-mvis"
14121 .PD 0
14122 .IP "\fB\-mno\-vis\fR" 4
14123 .IX Item "-mno-vis"
14124 .PD
14125 With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
14126 Visual Instruction Set extensions.  The default is \fB\-mno\-vis\fR.
14127 .PP
14128 These \fB\-m\fR options are supported in addition to the above
14129 on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
14130 .IP "\fB\-mlittle\-endian\fR" 4
14131 .IX Item "-mlittle-endian"
14132 Generate code for a processor running in little-endian mode.  It is only
14133 available for a few configurations and most notably not on Solaris and Linux.
14134 .IP "\fB\-m32\fR" 4
14135 .IX Item "-m32"
14136 .PD 0
14137 .IP "\fB\-m64\fR" 4
14138 .IX Item "-m64"
14139 .PD
14140 Generate code for a 32\-bit or 64\-bit environment.
14141 The 32\-bit environment sets int, long and pointer to 32 bits.
14142 The 64\-bit environment sets int to 32 bits and long and pointer
14143 to 64 bits.
14144 .IP "\fB\-mcmodel=medlow\fR" 4
14145 .IX Item "-mcmodel=medlow"
14146 Generate code for the Medium/Low code model: 64\-bit addresses, programs
14147 must be linked in the low 32 bits of memory.  Programs can be statically
14148 or dynamically linked.
14149 .IP "\fB\-mcmodel=medmid\fR" 4
14150 .IX Item "-mcmodel=medmid"
14151 Generate code for the Medium/Middle code model: 64\-bit addresses, programs
14152 must be linked in the low 44 bits of memory, the text and data segments must
14153 be less than 2GB in size and the data segment must be located within 2GB of
14154 the text segment.
14155 .IP "\fB\-mcmodel=medany\fR" 4
14156 .IX Item "-mcmodel=medany"
14157 Generate code for the Medium/Anywhere code model: 64\-bit addresses, programs
14158 may be linked anywhere in memory, the text and data segments must be less
14159 than 2GB in size and the data segment must be located within 2GB of the
14160 text segment.
14161 .IP "\fB\-mcmodel=embmedany\fR" 4
14162 .IX Item "-mcmodel=embmedany"
14163 Generate code for the Medium/Anywhere code model for embedded systems:
14164 64\-bit addresses, the text and data segments must be less than 2GB in
14165 size, both starting anywhere in memory (determined at link time).  The
14166 global register \f(CW%g4\fR points to the base of the data segment.  Programs
14167 are statically linked and \s-1PIC\s0 is not supported.
14168 .IP "\fB\-mstack\-bias\fR" 4
14169 .IX Item "-mstack-bias"
14170 .PD 0
14171 .IP "\fB\-mno\-stack\-bias\fR" 4
14172 .IX Item "-mno-stack-bias"
14173 .PD
14174 With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
14175 frame pointer if present, are offset by \-2047 which must be added back
14176 when making stack frame references.  This is the default in 64\-bit mode.
14177 Otherwise, assume no such offset is present.
14178 .PP
14179 These switches are supported in addition to the above on Solaris:
14180 .IP "\fB\-threads\fR" 4
14181 .IX Item "-threads"
14182 Add support for multithreading using the Solaris threads library.  This
14183 option sets flags for both the preprocessor and linker.  This option does
14184 not affect the thread safety of object code produced by the compiler or
14185 that of libraries supplied with it.
14186 .IP "\fB\-pthreads\fR" 4
14187 .IX Item "-pthreads"
14188 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
14189 option sets flags for both the preprocessor and linker.  This option does
14190 not affect the thread safety of object code produced  by the compiler or
14191 that of libraries supplied with it.
14192 .IP "\fB\-pthread\fR" 4
14193 .IX Item "-pthread"
14194 This is a synonym for \fB\-pthreads\fR.
14195 .PP
14196 \fI\s-1SPU\s0 Options\fR
14197 .IX Subsection "SPU Options"
14198 .PP
14199 These \fB\-m\fR options are supported on the \s-1SPU:\s0
14200 .IP "\fB\-mwarn\-reloc\fR" 4
14201 .IX Item "-mwarn-reloc"
14202 .PD 0
14203 .IP "\fB\-merror\-reloc\fR" 4
14204 .IX Item "-merror-reloc"
14205 .PD
14206 The loader for \s-1SPU\s0 does not handle dynamic relocations.  By default, \s-1GCC\s0
14207 will give an error when it generates code that requires a dynamic
14208 relocation.  \fB\-mno\-error\-reloc\fR disables the error,
14209 \&\fB\-mwarn\-reloc\fR will generate a warning instead.
14210 .IP "\fB\-msafe\-dma\fR" 4
14211 .IX Item "-msafe-dma"
14212 .PD 0
14213 .IP "\fB\-munsafe\-dma\fR" 4
14214 .IX Item "-munsafe-dma"
14215 .PD
14216 Instructions which initiate or test completion of \s-1DMA\s0 must not be
14217 reordered with respect to loads and stores of the memory which is being
14218 accessed.  Users typically address this problem using the volatile
14219 keyword, but that can lead to inefficient code in places where the
14220 memory is known to not change.  Rather than mark the memory as volatile
14221 we treat the \s-1DMA\s0 instructions as potentially effecting all memory.  With
14222 \&\fB\-munsafe\-dma\fR users must use the volatile keyword to protect
14223 memory accesses.
14224 .IP "\fB\-mbranch\-hints\fR" 4
14225 .IX Item "-mbranch-hints"
14226 By default, \s-1GCC\s0 will generate a branch hint instruction to avoid
14227 pipeline stalls for always taken or probably taken branches.  A hint
14228 will not be generated closer than 8 instructions away from its branch.
14229 There is little reason to disable them, except for debugging purposes,
14230 or to make an object a little bit smaller.
14231 .IP "\fB\-msmall\-mem\fR" 4
14232 .IX Item "-msmall-mem"
14233 .PD 0
14234 .IP "\fB\-mlarge\-mem\fR" 4
14235 .IX Item "-mlarge-mem"
14236 .PD
14237 By default, \s-1GCC\s0 generates code assuming that addresses are never larger
14238 than 18 bits.  With \fB\-mlarge\-mem\fR code is generated that assumes
14239 a full 32 bit address.
14240 .IP "\fB\-mstdmain\fR" 4
14241 .IX Item "-mstdmain"
14242 By default, \s-1GCC\s0 links against startup code that assumes the SPU-style
14243 main function interface (which has an unconventional parameter list).
14244 With \fB\-mstdmain\fR, \s-1GCC\s0 will link your program against startup
14245 code that assumes a C99\-style interface to \f(CW\*(C`main\*(C'\fR, including a
14246 local copy of \f(CW\*(C`argv\*(C'\fR strings.
14247 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
14248 .IX Item "-mfixed-range=register-range"
14249 Generate code treating the given register range as fixed registers.
14250 A fixed register is one that the register allocator can not use.  This is
14251 useful when compiling kernel code.  A register range is specified as
14252 two registers separated by a dash.  Multiple register ranges can be
14253 specified separated by a comma.
14254 .IP "\fB\-mdual\-nops\fR" 4
14255 .IX Item "-mdual-nops"
14256 .PD 0
14257 .IP "\fB\-mdual\-nops=\fR\fIn\fR" 4
14258 .IX Item "-mdual-nops=n"
14259 .PD
14260 By default, \s-1GCC\s0 will insert nops to increase dual issue when it expects
14261 it to increase performance.  \fIn\fR can be a value from 0 to 10.  A
14262 smaller \fIn\fR will insert fewer nops.  10 is the default, 0 is the
14263 same as \fB\-mno\-dual\-nops\fR.  Disabled with \fB\-Os\fR.
14264 .IP "\fB\-mhint\-max\-nops=\fR\fIn\fR" 4
14265 .IX Item "-mhint-max-nops=n"
14266 Maximum number of nops to insert for a branch hint.  A branch hint must
14267 be at least 8 instructions away from the branch it is effecting.  \s-1GCC\s0
14268 will insert up to \fIn\fR nops to enforce this, otherwise it will not
14269 generate the branch hint.
14270 .IP "\fB\-mhint\-max\-distance=\fR\fIn\fR" 4
14271 .IX Item "-mhint-max-distance=n"
14272 The encoding of the branch hint instruction limits the hint to be within
14273 256 instructions of the branch it is effecting.  By default, \s-1GCC\s0 makes
14274 sure it is within 125.
14275 .IP "\fB\-msafe\-hints\fR" 4
14276 .IX Item "-msafe-hints"
14277 Work around a hardware bug which causes the \s-1SPU\s0 to stall indefinitely.
14278 By default, \s-1GCC\s0 will insert the \f(CW\*(C`hbrp\*(C'\fR instruction to make sure
14279 this stall won't happen.
14280 .PP
14281 \fIOptions for System V\fR
14282 .IX Subsection "Options for System V"
14283 .PP
14284 These additional options are available on System V Release 4 for
14285 compatibility with other compilers on those systems:
14286 .IP "\fB\-G\fR" 4
14287 .IX Item "-G"
14288 Create a shared object.
14289 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
14290 .IP "\fB\-Qy\fR" 4
14291 .IX Item "-Qy"
14292 Identify the versions of each tool used by the compiler, in a
14293 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
14294 .IP "\fB\-Qn\fR" 4
14295 .IX Item "-Qn"
14296 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
14297 the default).
14298 .IP "\fB\-YP,\fR\fIdirs\fR" 4
14299 .IX Item "-YP,dirs"
14300 Search the directories \fIdirs\fR, and no others, for libraries
14301 specified with \fB\-l\fR.
14302 .IP "\fB\-Ym,\fR\fIdir\fR" 4
14303 .IX Item "-Ym,dir"
14304 Look in the directory \fIdir\fR to find the M4 preprocessor.
14305 The assembler uses this option.
14306 .PP
14307 \fIV850 Options\fR
14308 .IX Subsection "V850 Options"
14309 .PP
14310 These \fB\-m\fR options are defined for V850 implementations:
14311 .IP "\fB\-mlong\-calls\fR" 4
14312 .IX Item "-mlong-calls"
14313 .PD 0
14314 .IP "\fB\-mno\-long\-calls\fR" 4
14315 .IX Item "-mno-long-calls"
14316 .PD
14317 Treat all calls as being far away (near).  If calls are assumed to be
14318 far away, the compiler will always load the functions address up into a
14319 register, and call indirect through the pointer.
14320 .IP "\fB\-mno\-ep\fR" 4
14321 .IX Item "-mno-ep"
14322 .PD 0
14323 .IP "\fB\-mep\fR" 4
14324 .IX Item "-mep"
14325 .PD
14326 Do not optimize (do optimize) basic blocks that use the same index
14327 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
14328 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
14329 option is on by default if you optimize.
14330 .IP "\fB\-mno\-prolog\-function\fR" 4
14331 .IX Item "-mno-prolog-function"
14332 .PD 0
14333 .IP "\fB\-mprolog\-function\fR" 4
14334 .IX Item "-mprolog-function"
14335 .PD
14336 Do not use (do use) external functions to save and restore registers
14337 at the prologue and epilogue of a function.  The external functions
14338 are slower, but use less code space if more than one function saves
14339 the same number of registers.  The \fB\-mprolog\-function\fR option
14340 is on by default if you optimize.
14341 .IP "\fB\-mspace\fR" 4
14342 .IX Item "-mspace"
14343 Try to make the code as small as possible.  At present, this just turns
14344 on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
14345 .IP "\fB\-mtda=\fR\fIn\fR" 4
14346 .IX Item "-mtda=n"
14347 Put static or global variables whose size is \fIn\fR bytes or less into
14348 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
14349 area can hold up to 256 bytes in total (128 bytes for byte references).
14350 .IP "\fB\-msda=\fR\fIn\fR" 4
14351 .IX Item "-msda=n"
14352 Put static or global variables whose size is \fIn\fR bytes or less into
14353 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
14354 area can hold up to 64 kilobytes.
14355 .IP "\fB\-mzda=\fR\fIn\fR" 4
14356 .IX Item "-mzda=n"
14357 Put static or global variables whose size is \fIn\fR bytes or less into
14358 the first 32 kilobytes of memory.
14359 .IP "\fB\-mv850\fR" 4
14360 .IX Item "-mv850"
14361 Specify that the target processor is the V850.
14362 .IP "\fB\-mbig\-switch\fR" 4
14363 .IX Item "-mbig-switch"
14364 Generate code suitable for big switch tables.  Use this option only if
14365 the assembler/linker complain about out of range branches within a switch
14366 table.
14367 .IP "\fB\-mapp\-regs\fR" 4
14368 .IX Item "-mapp-regs"
14369 This option will cause r2 and r5 to be used in the code generated by
14370 the compiler.  This setting is the default.
14371 .IP "\fB\-mno\-app\-regs\fR" 4
14372 .IX Item "-mno-app-regs"
14373 This option will cause r2 and r5 to be treated as fixed registers.
14374 .IP "\fB\-mv850e1\fR" 4
14375 .IX Item "-mv850e1"
14376 Specify that the target processor is the V850E1.  The preprocessor
14377 constants \fB_\|_v850e1_\|_\fR and \fB_\|_v850e_\|_\fR will be defined if
14378 this option is used.
14379 .IP "\fB\-mv850e\fR" 4
14380 .IX Item "-mv850e"
14381 Specify that the target processor is the V850E.  The preprocessor
14382 constant \fB_\|_v850e_\|_\fR will be defined if this option is used.
14383 .Sp
14384 If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
14385 are defined then a default target processor will be chosen and the
14386 relevant \fB_\|_v850*_\|_\fR preprocessor constant will be defined.
14387 .Sp
14388 The preprocessor constants \fB_\|_v850\fR and \fB_\|_v851_\|_\fR are always
14389 defined, regardless of which processor variant is the target.
14390 .IP "\fB\-mdisable\-callt\fR" 4
14391 .IX Item "-mdisable-callt"
14392 This option will suppress generation of the \s-1CALLT\s0 instruction for the
14393 v850e and v850e1 flavors of the v850 architecture.  The default is
14394 \&\fB\-mno\-disable\-callt\fR which allows the \s-1CALLT\s0 instruction to be used.
14395 .PP
14396 \fI\s-1VAX\s0 Options\fR
14397 .IX Subsection "VAX Options"
14398 .PP
14399 These \fB\-m\fR options are defined for the \s-1VAX:\s0
14400 .IP "\fB\-munix\fR" 4
14401 .IX Item "-munix"
14402 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
14403 that the Unix assembler for the \s-1VAX\s0 cannot handle across long
14404 ranges.
14405 .IP "\fB\-mgnu\fR" 4
14406 .IX Item "-mgnu"
14407 Do output those jump instructions, on the assumption that you
14408 will assemble with the \s-1GNU\s0 assembler.
14409 .IP "\fB\-mg\fR" 4
14410 .IX Item "-mg"
14411 Output code for g\-format floating point numbers instead of d\-format.
14412 .PP
14413 \fIVxWorks Options\fR
14414 .IX Subsection "VxWorks Options"
14415 .PP
14416 The options in this section are defined for all VxWorks targets.
14417 Options specific to the target hardware are listed with the other
14418 options for that target.
14419 .IP "\fB\-mrtp\fR" 4
14420 .IX Item "-mrtp"
14421 \&\s-1GCC\s0 can generate code for both VxWorks kernels and real time processes
14422 (RTPs).  This option switches from the former to the latter.  It also
14423 defines the preprocessor macro \f(CW\*(C`_\|_RTP_\|_\*(C'\fR.
14424 .IP "\fB\-non\-static\fR" 4
14425 .IX Item "-non-static"
14426 Link an \s-1RTP\s0 executable against shared libraries rather than static
14427 libraries.  The options \fB\-static\fR and \fB\-shared\fR can
14428 also be used for RTPs; \fB\-static\fR
14429 is the default.
14430 .IP "\fB\-Bstatic\fR" 4
14431 .IX Item "-Bstatic"
14432 .PD 0
14433 .IP "\fB\-Bdynamic\fR" 4
14434 .IX Item "-Bdynamic"
14435 .PD
14436 These options are passed down to the linker.  They are defined for
14437 compatibility with Diab.
14438 .IP "\fB\-Xbind\-lazy\fR" 4
14439 .IX Item "-Xbind-lazy"
14440 Enable lazy binding of function calls.  This option is equivalent to
14441 \&\fB\-Wl,\-z,now\fR and is defined for compatibility with Diab.
14442 .IP "\fB\-Xbind\-now\fR" 4
14443 .IX Item "-Xbind-now"
14444 Disable lazy binding of function calls.  This option is the default and
14445 is defined for compatibility with Diab.
14446 .PP
14447 \fIx86\-64 Options\fR
14448 .IX Subsection "x86-64 Options"
14449 .PP
14450 These are listed under
14451 .PP
14452 \fIi386 and x86\-64 Windows Options\fR
14453 .IX Subsection "i386 and x86-64 Windows Options"
14454 .PP
14455 These additional options are available for Windows targets:
14456 .IP "\fB\-mconsole\fR" 4
14457 .IX Item "-mconsole"
14458 This option is available for Cygwin and MinGW targets.  It
14459 specifies that a console application is to be generated, by
14460 instructing the linker to set the \s-1PE\s0 header subsystem type
14461 required for console applications.
14462 This is the default behaviour for Cygwin and MinGW targets.
14463 .IP "\fB\-mcygwin\fR" 4
14464 .IX Item "-mcygwin"
14465 This option is available for Cygwin targets.  It specifies that
14466 the Cygwin internal interface is to be used for predefined
14467 preprocessor macros, C runtime libraries and related linker
14468 paths and options.  For Cygwin targets this is the default behaviour.
14469 This option is deprecated and will be removed in a future release.
14470 .IP "\fB\-mno\-cygwin\fR" 4
14471 .IX Item "-mno-cygwin"
14472 This option is available for Cygwin targets.  It specifies that
14473 the MinGW internal interface is to be used instead of Cygwin's, by
14474 setting MinGW-related predefined macros and linker paths and default
14475 library options.
14476 This option is deprecated and will be removed in a future release.
14477 .IP "\fB\-mdll\fR" 4
14478 .IX Item "-mdll"
14479 This option is available for Cygwin and MinGW targets.  It
14480 specifies that a \s-1DLL\s0 \- a dynamic link library \- is to be
14481 generated, enabling the selection of the required runtime
14482 startup object and entry point.
14483 .IP "\fB\-mnop\-fun\-dllimport\fR" 4
14484 .IX Item "-mnop-fun-dllimport"
14485 This option is available for Cygwin and MinGW targets.  It
14486 specifies that the dllimport attribute should be ignored.
14487 .IP "\fB\-mthread\fR" 4
14488 .IX Item "-mthread"
14489 This option is available for MinGW targets. It specifies
14490 that MinGW-specific thread support is to be used.
14491 .IP "\fB\-mwin32\fR" 4
14492 .IX Item "-mwin32"
14493 This option is available for Cygwin and MinGW targets.  It
14494 specifies that the typical Windows pre-defined macros are to
14495 be set in the pre-processor, but does not influence the choice
14496 of runtime library/startup code.
14497 .IP "\fB\-mwindows\fR" 4
14498 .IX Item "-mwindows"
14499 This option is available for Cygwin and MinGW targets.  It
14500 specifies that a \s-1GUI\s0 application is to be generated by
14501 instructing the linker to set the \s-1PE\s0 header subsystem type
14502 appropriately.
14503 .PP
14504 See also under \fBi386 and x86\-64 Options\fR for standard options.
14505 .PP
14506 \fIXstormy16 Options\fR
14507 .IX Subsection "Xstormy16 Options"
14508 .PP
14509 These options are defined for Xstormy16:
14510 .IP "\fB\-msim\fR" 4
14511 .IX Item "-msim"
14512 Choose startup files and linker script suitable for the simulator.
14513 .PP
14514 \fIXtensa Options\fR
14515 .IX Subsection "Xtensa Options"
14516 .PP
14517 These options are supported for Xtensa targets:
14518 .IP "\fB\-mconst16\fR" 4
14519 .IX Item "-mconst16"
14520 .PD 0
14521 .IP "\fB\-mno\-const16\fR" 4
14522 .IX Item "-mno-const16"
14523 .PD
14524 Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
14525 constant values.  The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
14526 standard option from Tensilica.  When enabled, \f(CW\*(C`CONST16\*(C'\fR
14527 instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
14528 instructions.  The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
14529 the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
14530 .IP "\fB\-mfused\-madd\fR" 4
14531 .IX Item "-mfused-madd"
14532 .PD 0
14533 .IP "\fB\-mno\-fused\-madd\fR" 4
14534 .IX Item "-mno-fused-madd"
14535 .PD
14536 Enable or disable use of fused multiply/add and multiply/subtract
14537 instructions in the floating-point option.  This has no effect if the
14538 floating-point option is not also enabled.  Disabling fused multiply/add
14539 and multiply/subtract instructions forces the compiler to use separate
14540 instructions for the multiply and add/subtract operations.  This may be
14541 desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
14542 required: the fused multiply add/subtract instructions do not round the
14543 intermediate result, thereby producing results with \fImore\fR bits of
14544 precision than specified by the \s-1IEEE\s0 standard.  Disabling fused multiply
14545 add/subtract instructions also ensures that the program output is not
14546 sensitive to the compiler's ability to combine multiply and add/subtract
14547 operations.
14548 .IP "\fB\-mserialize\-volatile\fR" 4
14549 .IX Item "-mserialize-volatile"
14550 .PD 0
14551 .IP "\fB\-mno\-serialize\-volatile\fR" 4
14552 .IX Item "-mno-serialize-volatile"
14553 .PD
14554 When this option is enabled, \s-1GCC\s0 inserts \f(CW\*(C`MEMW\*(C'\fR instructions before
14555 \&\f(CW\*(C`volatile\*(C'\fR memory references to guarantee sequential consistency.
14556 The default is \fB\-mserialize\-volatile\fR.  Use
14557 \&\fB\-mno\-serialize\-volatile\fR to omit the \f(CW\*(C`MEMW\*(C'\fR instructions.
14558 .IP "\fB\-mtext\-section\-literals\fR" 4
14559 .IX Item "-mtext-section-literals"
14560 .PD 0
14561 .IP "\fB\-mno\-text\-section\-literals\fR" 4
14562 .IX Item "-mno-text-section-literals"
14563 .PD
14564 Control the treatment of literal pools.  The default is
14565 \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
14566 section in the output file.  This allows the literal pool to be placed
14567 in a data \s-1RAM/ROM\s0, and it also allows the linker to combine literal
14568 pools from separate object files to remove redundant literals and
14569 improve code size.  With \fB\-mtext\-section\-literals\fR, the literals
14570 are interspersed in the text section in order to keep them as close as
14571 possible to their references.  This may be necessary for large assembly
14572 files.
14573 .IP "\fB\-mtarget\-align\fR" 4
14574 .IX Item "-mtarget-align"
14575 .PD 0
14576 .IP "\fB\-mno\-target\-align\fR" 4
14577 .IX Item "-mno-target-align"
14578 .PD
14579 When this option is enabled, \s-1GCC\s0 instructs the assembler to
14580 automatically align instructions to reduce branch penalties at the
14581 expense of some code density.  The assembler attempts to widen density
14582 instructions to align branch targets and the instructions following call
14583 instructions.  If there are not enough preceding safe density
14584 instructions to align a target, no widening will be performed.  The
14585 default is \fB\-mtarget\-align\fR.  These options do not affect the
14586 treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
14587 assembler will always align, either by widening density instructions or
14588 by inserting no-op instructions.
14589 .IP "\fB\-mlongcalls\fR" 4
14590 .IX Item "-mlongcalls"
14591 .PD 0
14592 .IP "\fB\-mno\-longcalls\fR" 4
14593 .IX Item "-mno-longcalls"
14594 .PD
14595 When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
14596 direct calls to indirect calls unless it can determine that the target
14597 of a direct call is in the range allowed by the call instruction.  This
14598 translation typically occurs for calls to functions in other source
14599 files.  Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
14600 instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
14601 The default is \fB\-mno\-longcalls\fR.  This option should be used in
14602 programs where the call target can potentially be out of range.  This
14603 option is implemented in the assembler, not the compiler, so the
14604 assembly code generated by \s-1GCC\s0 will still show direct call
14605 instructions\-\-\-look at the disassembled object code to see the actual
14606 instructions.  Note that the assembler will use an indirect call for
14607 every cross-file call, not just those that really will be out of range.
14608 .PP
14609 \fIzSeries Options\fR
14610 .IX Subsection "zSeries Options"
14611 .PP
14612 These are listed under
14613 .Sh "Options for Code Generation Conventions"
14614 .IX Subsection "Options for Code Generation Conventions"
14615 These machine-independent options control the interface conventions
14616 used in code generation.
14617 .PP
14618 Most of them have both positive and negative forms; the negative form
14619 of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.  In the table below, only
14620 one of the forms is listed\-\-\-the one which is not the default.  You
14621 can figure out the other form by either removing \fBno\-\fR or adding
14622 it.
14623 .IP "\fB\-fbounds\-check\fR" 4
14624 .IX Item "-fbounds-check"
14625 For front-ends that support it, generate additional code to check that
14626 indices used to access arrays are within the declared range.  This is
14627 currently only supported by the Java and Fortran front-ends, where
14628 this option defaults to true and false respectively.
14629 .IP "\fB\-ftrapv\fR" 4
14630 .IX Item "-ftrapv"
14631 This option generates traps for signed overflow on addition, subtraction,
14632 multiplication operations.
14633 .IP "\fB\-fwrapv\fR" 4
14634 .IX Item "-fwrapv"
14635 This option instructs the compiler to assume that signed arithmetic
14636 overflow of addition, subtraction and multiplication wraps around
14637 using twos-complement representation.  This flag enables some optimizations
14638 and disables others.  This option is enabled by default for the Java
14639 front-end, as required by the Java language specification.
14640 .IP "\fB\-fexceptions\fR" 4
14641 .IX Item "-fexceptions"
14642 Enable exception handling.  Generates extra code needed to propagate
14643 exceptions.  For some targets, this implies \s-1GCC\s0 will generate frame
14644 unwind information for all functions, which can produce significant data
14645 size overhead, although it does not affect execution.  If you do not
14646 specify this option, \s-1GCC\s0 will enable it by default for languages like
14647 \&\*(C+ which normally require exception handling, and disable it for
14648 languages like C that do not normally require it.  However, you may need
14649 to enable this option when compiling C code that needs to interoperate
14650 properly with exception handlers written in \*(C+.  You may also wish to
14651 disable this option if you are compiling older \*(C+ programs that don't
14652 use exception handling.
14653 .IP "\fB\-fnon\-call\-exceptions\fR" 4
14654 .IX Item "-fnon-call-exceptions"
14655 Generate code that allows trapping instructions to throw exceptions.
14656 Note that this requires platform-specific runtime support that does
14657 not exist everywhere.  Moreover, it only allows \fItrapping\fR
14658 instructions to throw exceptions, i.e. memory references or floating
14659 point instructions.  It does not allow exceptions to be thrown from
14660 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
14661 .IP "\fB\-funwind\-tables\fR" 4
14662 .IX Item "-funwind-tables"
14663 Similar to \fB\-fexceptions\fR, except that it will just generate any needed
14664 static data, but will not affect the generated code in any other way.
14665 You will normally not enable this option; instead, a language processor
14666 that needs this handling would enable it on your behalf.
14667 .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
14668 .IX Item "-fasynchronous-unwind-tables"
14669 Generate unwind table in dwarf2 format, if supported by target machine.  The
14670 table is exact at each instruction boundary, so it can be used for stack
14671 unwinding from asynchronous events (such as debugger or garbage collector).
14672 .IP "\fB\-fpcc\-struct\-return\fR" 4
14673 .IX Item "-fpcc-struct-return"
14674 Return \*(L"short\*(R" \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
14675 longer ones, rather than in registers.  This convention is less
14676 efficient, but it has the advantage of allowing intercallability between
14677 GCC-compiled files and files compiled with other compilers, particularly
14678 the Portable C Compiler (pcc).
14679 .Sp
14680 The precise convention for returning structures in memory depends
14681 on the target configuration macros.
14682 .Sp
14683 Short structures and unions are those whose size and alignment match
14684 that of some integer type.
14685 .Sp
14686 \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
14687 switch is not binary compatible with code compiled with the
14688 \&\fB\-freg\-struct\-return\fR switch.
14689 Use it to conform to a non-default application binary interface.
14690 .IP "\fB\-freg\-struct\-return\fR" 4
14691 .IX Item "-freg-struct-return"
14692 Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
14693 This is more efficient for small structures than
14694 \&\fB\-fpcc\-struct\-return\fR.
14695 .Sp
14696 If you specify neither \fB\-fpcc\-struct\-return\fR nor
14697 \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
14698 standard for the target.  If there is no standard convention, \s-1GCC\s0
14699 defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
14700 the principal compiler.  In those cases, we can choose the standard, and
14701 we chose the more efficient register return alternative.
14702 .Sp
14703 \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
14704 switch is not binary compatible with code compiled with the
14705 \&\fB\-fpcc\-struct\-return\fR switch.
14706 Use it to conform to a non-default application binary interface.
14707 .IP "\fB\-fshort\-enums\fR" 4
14708 .IX Item "-fshort-enums"
14709 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
14710 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
14711 will be equivalent to the smallest integer type which has enough room.
14712 .Sp
14713 \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
14714 code that is not binary compatible with code generated without that switch.
14715 Use it to conform to a non-default application binary interface.
14716 .IP "\fB\-fshort\-double\fR" 4
14717 .IX Item "-fshort-double"
14718 Use the same size for \f(CW\*(C`double\*(C'\fR as for \f(CW\*(C`float\*(C'\fR.
14719 .Sp
14720 \&\fBWarning:\fR the \fB\-fshort\-double\fR switch causes \s-1GCC\s0 to generate
14721 code that is not binary compatible with code generated without that switch.
14722 Use it to conform to a non-default application binary interface.
14723 .IP "\fB\-fshort\-wchar\fR" 4
14724 .IX Item "-fshort-wchar"
14725 Override the underlying type for \fBwchar_t\fR to be \fBshort
14726 unsigned int\fR instead of the default for the target.  This option is
14727 useful for building programs to run under \s-1WINE\s0.
14728 .Sp
14729 \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
14730 code that is not binary compatible with code generated without that switch.
14731 Use it to conform to a non-default application binary interface.
14732 .IP "\fB\-fno\-common\fR" 4
14733 .IX Item "-fno-common"
14734 In C code, controls the placement of uninitialized global variables.
14735 Unix C compilers have traditionally permitted multiple definitions of
14736 such variables in different compilation units by placing the variables
14737 in a common block.  
14738 This is the behavior specified by \fB\-fcommon\fR, and is the default 
14739 for \s-1GCC\s0 on most targets.  
14740 On the other hand, this behavior is not required by \s-1ISO\s0 C, and on some
14741 targets may carry a speed or code size penalty on variable references.
14742 The \fB\-fno\-common\fR option specifies that the compiler should place 
14743 uninitialized global variables in the data section of the object file,
14744 rather than generating them as common blocks.
14745 This has the effect that if the same variable is declared 
14746 (without \f(CW\*(C`extern\*(C'\fR) in two different compilations,
14747 you will get a multiple-definition error when you link them.
14748 In this case, you must compile with \fB\-fcommon\fR instead.  
14749 Compiling with \fB\-fno\-common\fR is useful on targets for which 
14750 it provides better performance, or if you wish to verify that the
14751 program will work on other systems which always treat uninitialized
14752 variable declarations this way.
14753 .IP "\fB\-fno\-ident\fR" 4
14754 .IX Item "-fno-ident"
14755 Ignore the \fB#ident\fR directive.
14756 .IP "\fB\-finhibit\-size\-directive\fR" 4
14757 .IX Item "-finhibit-size-directive"
14758 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
14759 would cause trouble if the function is split in the middle, and the
14760 two halves are placed at locations far apart in memory.  This option is
14761 used when compiling \fIcrtstuff.c\fR; you should not need to use it
14762 for anything else.
14763 .IP "\fB\-fverbose\-asm\fR" 4
14764 .IX Item "-fverbose-asm"
14765 Put extra commentary information in the generated assembly code to
14766 make it more readable.  This option is generally only of use to those
14767 who actually need to read the generated assembly code (perhaps while
14768 debugging the compiler itself).
14769 .Sp
14770 \&\fB\-fno\-verbose\-asm\fR, the default, causes the
14771 extra information to be omitted and is useful when comparing two assembler
14772 files.
14773 .IP "\fB\-frecord\-gcc\-switches\fR" 4
14774 .IX Item "-frecord-gcc-switches"
14775 This switch causes the command line that was used to invoke the
14776 compiler to be recorded into the object file that is being created.
14777 This switch is only implemented on some targets and the exact format
14778 of the recording is target and binary file format dependent, but it
14779 usually takes the form of a section containing \s-1ASCII\s0 text.  This
14780 switch is related to the \fB\-fverbose\-asm\fR switch, but that
14781 switch only records information in the assembler output file as
14782 comments, so it never reaches the object file.
14783 .IP "\fB\-fpic\fR" 4
14784 .IX Item "-fpic"
14785 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
14786 library, if supported for the target machine.  Such code accesses all
14787 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
14788 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
14789 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
14790 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
14791 maximum size, you get an error message from the linker indicating that
14792 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
14793 instead.  (These maximums are 8k on the \s-1SPARC\s0 and 32k
14794 on the m68k and \s-1RS/6000\s0.  The 386 has no such limit.)
14795 .Sp
14796 Position-independent code requires special support, and therefore works
14797 only on certain machines.  For the 386, \s-1GCC\s0 supports \s-1PIC\s0 for System V
14798 but not for the Sun 386i.  Code generated for the \s-1IBM\s0 \s-1RS/6000\s0 is always
14799 position-independent.
14800 .Sp
14801 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
14802 are defined to 1.
14803 .IP "\fB\-fPIC\fR" 4
14804 .IX Item "-fPIC"
14805 If supported for the target machine, emit position-independent code,
14806 suitable for dynamic linking and avoiding any limit on the size of the
14807 global offset table.  This option makes a difference on the m68k,
14808 PowerPC and \s-1SPARC\s0.
14809 .Sp
14810 Position-independent code requires special support, and therefore works
14811 only on certain machines.
14812 .Sp
14813 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
14814 are defined to 2.
14815 .IP "\fB\-fpie\fR" 4
14816 .IX Item "-fpie"
14817 .PD 0
14818 .IP "\fB\-fPIE\fR" 4
14819 .IX Item "-fPIE"
14820 .PD
14821 These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
14822 generated position independent code can be only linked into executables.
14823 Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option will be
14824 used during linking.
14825 .Sp
14826 \&\fB\-fpie\fR and \fB\-fPIE\fR both define the macros
14827 \&\f(CW\*(C`_\|_pie_\|_\*(C'\fR and \f(CW\*(C`_\|_PIE_\|_\*(C'\fR.  The macros have the value 1
14828 for \fB\-fpie\fR and 2 for \fB\-fPIE\fR.
14829 .IP "\fB\-fno\-jump\-tables\fR" 4
14830 .IX Item "-fno-jump-tables"
14831 Do not use jump tables for switch statements even where it would be
14832 more efficient than other code generation strategies.  This option is
14833 of use in conjunction with \fB\-fpic\fR or \fB\-fPIC\fR for
14834 building code which forms part of a dynamic linker and cannot
14835 reference the address of a jump table.  On some targets, jump tables
14836 do not require a \s-1GOT\s0 and this option is not needed.
14837 .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
14838 .IX Item "-ffixed-reg"
14839 Treat the register named \fIreg\fR as a fixed register; generated code
14840 should never refer to it (except perhaps as a stack pointer, frame
14841 pointer or in some other fixed role).
14842 .Sp
14843 \&\fIreg\fR must be the name of a register.  The register names accepted
14844 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
14845 macro in the machine description macro file.
14846 .Sp
14847 This flag does not have a negative form, because it specifies a
14848 three-way choice.
14849 .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
14850 .IX Item "-fcall-used-reg"
14851 Treat the register named \fIreg\fR as an allocable register that is
14852 clobbered by function calls.  It may be allocated for temporaries or
14853 variables that do not live across a call.  Functions compiled this way
14854 will not save and restore the register \fIreg\fR.
14855 .Sp
14856 It is an error to used this flag with the frame pointer or stack pointer.
14857 Use of this flag for other registers that have fixed pervasive roles in
14858 the machine's execution model will produce disastrous results.
14859 .Sp
14860 This flag does not have a negative form, because it specifies a
14861 three-way choice.
14862 .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
14863 .IX Item "-fcall-saved-reg"
14864 Treat the register named \fIreg\fR as an allocable register saved by
14865 functions.  It may be allocated even for temporaries or variables that
14866 live across a call.  Functions compiled this way will save and restore
14867 the register \fIreg\fR if they use it.
14868 .Sp
14869 It is an error to used this flag with the frame pointer or stack pointer.
14870 Use of this flag for other registers that have fixed pervasive roles in
14871 the machine's execution model will produce disastrous results.
14872 .Sp
14873 A different sort of disaster will result from the use of this flag for
14874 a register in which function values may be returned.
14875 .Sp
14876 This flag does not have a negative form, because it specifies a
14877 three-way choice.
14878 .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
14879 .IX Item "-fpack-struct[=n]"
14880 Without a value specified, pack all structure members together without
14881 holes.  When a value is specified (which must be a small power of two), pack
14882 structure members according to this value, representing the maximum
14883 alignment (that is, objects with default alignment requirements larger than
14884 this will be output potentially unaligned at the next fitting location.
14885 .Sp
14886 \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
14887 code that is not binary compatible with code generated without that switch.
14888 Additionally, it makes the code suboptimal.
14889 Use it to conform to a non-default application binary interface.
14890 .IP "\fB\-finstrument\-functions\fR" 4
14891 .IX Item "-finstrument-functions"
14892 Generate instrumentation calls for entry and exit to functions.  Just
14893 after function entry and just before function exit, the following
14894 profiling functions will be called with the address of the current
14895 function and its call site.  (On some platforms,
14896 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
14897 function, so the call site information may not be available to the
14898 profiling functions otherwise.)
14899 .Sp
14900 .Vb 4
14901 \&        void _\|_cyg_profile_func_enter (void *this_fn,
14902 \&                                       void *call_site);
14903 \&        void _\|_cyg_profile_func_exit  (void *this_fn,
14904 \&                                       void *call_site);
14905 .Ve
14906 .Sp
14907 The first argument is the address of the start of the current function,
14908 which may be looked up exactly in the symbol table.
14909 .Sp
14910 This instrumentation is also done for functions expanded inline in other
14911 functions.  The profiling calls will indicate where, conceptually, the
14912 inline function is entered and exited.  This means that addressable
14913 versions of such functions must be available.  If all your uses of a
14914 function are expanded inline, this may mean an additional expansion of
14915 code size.  If you use \fBextern inline\fR in your C code, an
14916 addressable version of such functions must be provided.  (This is
14917 normally the case anyways, but if you get lucky and the optimizer always
14918 expands the functions inline, you might have gotten away without
14919 providing static copies.)
14920 .Sp
14921 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
14922 which case this instrumentation will not be done.  This can be used, for
14923 example, for the profiling functions listed above, high-priority
14924 interrupt routines, and any functions from which the profiling functions
14925 cannot safely be called (perhaps signal handlers, if the profiling
14926 routines generate output or allocate memory).
14927 .IP "\fB\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR" 4
14928 .IX Item "-finstrument-functions-exclude-file-list=file,file,..."
14929 Set the list of functions that are excluded from instrumentation (see
14930 the description of \f(CW\*(C`\-finstrument\-functions\*(C'\fR).  If the file that
14931 contains a function definition matches with one of \fIfile\fR, then
14932 that function is not instrumented.  The match is done on substrings:
14933 if the \fIfile\fR parameter is a substring of the file name, it is
14934 considered to be a match.
14935 .Sp
14936 For example,
14937 \&\f(CW\*(C`\-finstrument\-functions\-exclude\-file\-list=/bits/stl,include/sys\*(C'\fR
14938 will exclude any inline function defined in files whose pathnames
14939 contain \f(CW\*(C`/bits/stl\*(C'\fR or \f(CW\*(C`include/sys\*(C'\fR.
14940 .Sp
14941 If, for some reason, you want to include letter \f(CW\*(Aq,\*(Aq\fR in one of
14942 \&\fIsym\fR, write \f(CW\*(Aq,\*(Aq\fR. For example,
14943 \&\f(CW\*(C`\-finstrument\-functions\-exclude\-file\-list=\*(Aq,,tmp\*(Aq\*(C'\fR
14944 (note the single quote surrounding the option).
14945 .IP "\fB\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,...\fR" 4
14946 .IX Item "-finstrument-functions-exclude-function-list=sym,sym,..."
14947 This is similar to \f(CW\*(C`\-finstrument\-functions\-exclude\-file\-list\*(C'\fR,
14948 but this option sets the list of function names to be excluded from
14949 instrumentation.  The function name to be matched is its user-visible
14950 name, such as \f(CW\*(C`vector<int> blah(const vector<int> &)\*(C'\fR, not the
14951 internal mangled name (e.g., \f(CW\*(C`_Z4blahRSt6vectorIiSaIiEE\*(C'\fR).  The
14952 match is done on substrings: if the \fIsym\fR parameter is a substring
14953 of the function name, it is considered to be a match.
14954 .IP "\fB\-fstack\-check\fR" 4
14955 .IX Item "-fstack-check"
14956 Generate code to verify that you do not go beyond the boundary of the
14957 stack.  You should specify this flag if you are running in an
14958 environment with multiple threads, but only rarely need to specify it in
14959 a single-threaded environment since stack overflow is automatically
14960 detected on nearly all systems if there is only one stack.
14961 .Sp
14962 Note that this switch does not actually cause checking to be done; the
14963 operating system or the language runtime must do that.  The switch causes
14964 generation of code to ensure that they see the stack being extended.
14965 .Sp
14966 You can additionally specify a string parameter: \f(CW\*(C`no\*(C'\fR means no
14967 checking, \f(CW\*(C`generic\*(C'\fR means force the use of old-style checking,
14968 \&\f(CW\*(C`specific\*(C'\fR means use the best checking method and is equivalent
14969 to bare \fB\-fstack\-check\fR.
14970 .Sp
14971 Old-style checking is a generic mechanism that requires no specific
14972 target support in the compiler but comes with the following drawbacks:
14973 .RS 4
14974 .IP "1." 4
14975 Modified allocation strategy for large objects: they will always be
14976 allocated dynamically if their size exceeds a fixed threshold.
14977 .IP "2." 4
14978 Fixed limit on the size of the static frame of functions: when it is
14979 topped by a particular function, stack checking is not reliable and
14980 a warning is issued by the compiler.
14981 .IP "3." 4
14982 Inefficiency: because of both the modified allocation strategy and the
14983 generic implementation, the performances of the code are hampered.
14984 .RE
14985 .RS 4
14986 .Sp
14987 Note that old-style stack checking is also the fallback method for
14988 \&\f(CW\*(C`specific\*(C'\fR if no target support has been added in the compiler.
14989 .RE
14990 .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
14991 .IX Item "-fstack-limit-register=reg"
14992 .PD 0
14993 .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
14994 .IX Item "-fstack-limit-symbol=sym"
14995 .IP "\fB\-fno\-stack\-limit\fR" 4
14996 .IX Item "-fno-stack-limit"
14997 .PD
14998 Generate code to ensure that the stack does not grow beyond a certain value,
14999 either the value of a register or the address of a symbol.  If the stack
15000 would grow beyond the value, a signal is raised.  For most targets,
15001 the signal is raised before the stack overruns the boundary, so
15002 it is possible to catch the signal without taking special precautions.
15003 .Sp
15004 For instance, if the stack starts at absolute address \fB0x80000000\fR
15005 and grows downwards, you can use the flags
15006 \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
15007 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
15008 of 128KB.  Note that this may only work with the \s-1GNU\s0 linker.
15009 .IP "\fB\-fargument\-alias\fR" 4
15010 .IX Item "-fargument-alias"
15011 .PD 0
15012 .IP "\fB\-fargument\-noalias\fR" 4
15013 .IX Item "-fargument-noalias"
15014 .IP "\fB\-fargument\-noalias\-global\fR" 4
15015 .IX Item "-fargument-noalias-global"
15016 .IP "\fB\-fargument\-noalias\-anything\fR" 4
15017 .IX Item "-fargument-noalias-anything"
15018 .PD
15019 Specify the possible relationships among parameters and between
15020 parameters and global data.
15021 .Sp
15022 \&\fB\-fargument\-alias\fR specifies that arguments (parameters) may
15023 alias each other and may alias global storage.\fB\-fargument\-noalias\fR specifies that arguments do not alias
15024 each other, but may alias global storage.\fB\-fargument\-noalias\-global\fR specifies that arguments do not
15025 alias each other and do not alias global storage.
15026 \&\fB\-fargument\-noalias\-anything\fR specifies that arguments do not
15027 alias any other storage.
15028 .Sp
15029 Each language will automatically use whatever option is required by
15030 the language standard.  You should not need to use these options yourself.
15031 .IP "\fB\-fleading\-underscore\fR" 4
15032 .IX Item "-fleading-underscore"
15033 This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
15034 change the way C symbols are represented in the object file.  One use
15035 is to help link with legacy assembly code.
15036 .Sp
15037 \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
15038 generate code that is not binary compatible with code generated without that
15039 switch.  Use it to conform to a non-default application binary interface.
15040 Not all targets provide complete support for this switch.
15041 .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
15042 .IX Item "-ftls-model=model"
15043 Alter the thread-local storage model to be used.
15044 The \fImodel\fR argument should be one of \f(CW\*(C`global\-dynamic\*(C'\fR,
15045 \&\f(CW\*(C`local\-dynamic\*(C'\fR, \f(CW\*(C`initial\-exec\*(C'\fR or \f(CW\*(C`local\-exec\*(C'\fR.
15046 .Sp
15047 The default without \fB\-fpic\fR is \f(CW\*(C`initial\-exec\*(C'\fR; with
15048 \&\fB\-fpic\fR the default is \f(CW\*(C`global\-dynamic\*(C'\fR.
15049 .IP "\fB\-fvisibility=\fR\fIdefault|internal|hidden|protected\fR" 4
15050 .IX Item "-fvisibility=default|internal|hidden|protected"
15051 Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
15052 symbols will be marked with this unless overridden within the code.
15053 Using this feature can very substantially improve linking and
15054 load times of shared object libraries, produce more optimized
15055 code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
15056 It is \fBstrongly\fR recommended that you use this in any shared objects
15057 you distribute.
15058 .Sp
15059 Despite the nomenclature, \f(CW\*(C`default\*(C'\fR always means public ie;
15060 available to be linked against from outside the shared object.
15061 \&\f(CW\*(C`protected\*(C'\fR and \f(CW\*(C`internal\*(C'\fR are pretty useless in real-world
15062 usage so the only other commonly used option will be \f(CW\*(C`hidden\*(C'\fR.
15063 The default if \fB\-fvisibility\fR isn't specified is
15064 \&\f(CW\*(C`default\*(C'\fR, i.e., make every
15065 symbol public\-\-\-this causes the same behavior as previous versions of
15066 \&\s-1GCC\s0.
15067 .Sp
15068 A good explanation of the benefits offered by ensuring \s-1ELF\s0
15069 symbols have the correct visibility is given by \*(L"How To Write
15070 Shared Libraries\*(R" by Ulrich Drepper (which can be found at
15071 <\fBhttp://people.redhat.com/~drepper/\fR>)\-\-\-however a superior
15072 solution made possible by this option to marking things hidden when
15073 the default is public is to make the default hidden and mark things
15074 public.  This is the norm with \s-1DLL\s0's on Windows and with \fB\-fvisibility=hidden\fR
15075 and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
15076 \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
15077 identical syntax.  This is a great boon to those working with
15078 cross-platform projects.
15079 .Sp
15080 For those adding visibility support to existing code, you may find
15081 \&\fB#pragma \s-1GCC\s0 visibility\fR of use.  This works by you enclosing
15082 the declarations you wish to set visibility for with (for example)
15083 \&\fB#pragma \s-1GCC\s0 visibility push(hidden)\fR and
15084 \&\fB#pragma \s-1GCC\s0 visibility pop\fR.
15085 Bear in mind that symbol visibility should be viewed \fBas
15086 part of the \s-1API\s0 interface contract\fR and thus all new code should
15087 always specify visibility when it is not the default ie; declarations
15088 only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
15089 as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
15090 abundantly clear also aids readability and self-documentation of the code.
15091 Note that due to \s-1ISO\s0 \*(C+ specification requirements, operator new and
15092 operator delete must always be of default visibility.
15093 .Sp
15094 Be aware that headers from outside your project, in particular system
15095 headers and headers from any other library you use, may not be
15096 expecting to be compiled with visibility other than the default.  You
15097 may need to explicitly say \fB#pragma \s-1GCC\s0 visibility push(default)\fR
15098 before including any such headers.
15099 .Sp
15100 \&\fBextern\fR declarations are not affected by \fB\-fvisibility\fR, so
15101 a lot of code can be recompiled with \fB\-fvisibility=hidden\fR with
15102 no modifications.  However, this means that calls to \fBextern\fR
15103 functions with no explicit visibility will use the \s-1PLT\s0, so it is more
15104 effective to use \fB_\|_attribute ((visibility))\fR and/or
15105 \&\fB#pragma \s-1GCC\s0 visibility\fR to tell the compiler which \fBextern\fR
15106 declarations should be treated as hidden.
15107 .Sp
15108 Note that \fB\-fvisibility\fR does affect \*(C+ vague linkage
15109 entities. This means that, for instance, an exception class that will
15110 be thrown between DSOs must be explicitly marked with default
15111 visibility so that the \fBtype_info\fR nodes will be unified between
15112 the DSOs.
15113 .Sp
15114 An overview of these techniques, their benefits and how to use them
15115 is at <\fBhttp://gcc.gnu.org/wiki/Visibility\fR>.
15116 .SH "ENVIRONMENT"
15117 .IX Header "ENVIRONMENT"
15118 This section describes several environment variables that affect how \s-1GCC\s0
15119 operates.  Some of them work by specifying directories or prefixes to use
15120 when searching for various kinds of files.  Some are used to specify other
15121 aspects of the compilation environment.
15122 .PP
15123 Note that you can also specify places to search using options such as
15124 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
15125 take precedence over places specified using environment variables, which
15126 in turn take precedence over those specified by the configuration of \s-1GCC\s0.
15127 .IP "\fB\s-1LANG\s0\fR" 4
15128 .IX Item "LANG"
15129 .PD 0
15130 .IP "\fB\s-1LC_CTYPE\s0\fR" 4
15131 .IX Item "LC_CTYPE"
15132 .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
15133 .IX Item "LC_MESSAGES"
15134 .IP "\fB\s-1LC_ALL\s0\fR" 4
15135 .IX Item "LC_ALL"
15136 .PD
15137 These environment variables control the way that \s-1GCC\s0 uses
15138 localization information that allow \s-1GCC\s0 to work with different
15139 national conventions.  \s-1GCC\s0 inspects the locale categories
15140 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
15141 so.  These locale categories can be set to any value supported by your
15142 installation.  A typical value is \fBen_GB.UTF\-8\fR for English in the United
15143 Kingdom encoded in \s-1UTF\-8\s0.
15144 .Sp
15145 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
15146 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
15147 a string; this is needed for some multibyte encodings that contain quote
15148 and escape characters that would otherwise be interpreted as a string
15149 end or escape.
15150 .Sp
15151 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
15152 use in diagnostic messages.
15153 .Sp
15154 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
15155 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
15156 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
15157 environment variable.  If none of these variables are set, \s-1GCC\s0
15158 defaults to traditional C English behavior.
15159 .IP "\fB\s-1TMPDIR\s0\fR" 4
15160 .IX Item "TMPDIR"
15161 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
15162 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
15163 compilation which is to be used as input to the next stage: for example,
15164 the output of the preprocessor, which is the input to the compiler
15165 proper.
15166 .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
15167 .IX Item "GCC_EXEC_PREFIX"
15168 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
15169 names of the subprograms executed by the compiler.  No slash is added
15170 when this prefix is combined with the name of a subprogram, but you can
15171 specify a prefix that ends with a slash if you wish.
15172 .Sp
15173 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 will attempt to figure out
15174 an appropriate prefix to use based on the pathname it was invoked with.
15175 .Sp
15176 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
15177 tries looking in the usual places for the subprogram.
15178 .Sp
15179 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
15180 \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the prefix to
15181 the installed compiler. In many cases \fIprefix\fR is the value
15182 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
15183 .Sp
15184 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
15185 .Sp
15186 This prefix is also used for finding files such as \fIcrt0.o\fR that are
15187 used for linking.
15188 .Sp
15189 In addition, the prefix is used in an unusual way in finding the
15190 directories to search for header files.  For each of the standard
15191 directories whose name normally begins with \fB/usr/local/lib/gcc\fR
15192 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
15193 replacing that beginning with the specified prefix to produce an
15194 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 will search
15195 \&\fIfoo/bar\fR where it would normally search \fI/usr/local/lib/bar\fR.
15196 These alternate directories are searched first; the standard directories
15197 come next. If a standard directory begins with the configured
15198 \&\fIprefix\fR then the value of \fIprefix\fR is replaced by
15199 \&\fB\s-1GCC_EXEC_PREFIX\s0\fR when looking for header files.
15200 .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
15201 .IX Item "COMPILER_PATH"
15202 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
15203 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
15204 specified when searching for subprograms, if it can't find the
15205 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
15206 .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
15207 .IX Item "LIBRARY_PATH"
15208 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
15209 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
15210 \&\s-1GCC\s0 tries the directories thus specified when searching for special
15211 linker files, if it can't find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
15212 using \s-1GCC\s0 also uses these directories when searching for ordinary
15213 libraries for the \fB\-l\fR option (but directories specified with
15214 \&\fB\-L\fR come first).
15215 .IP "\fB\s-1LANG\s0\fR" 4
15216 .IX Item "LANG"
15217 This variable is used to pass locale information to the compiler.  One way in
15218 which this information is used is to determine the character set to be used
15219 when character literals, string literals and comments are parsed in C and \*(C+.
15220 When the compiler is configured to allow multibyte characters,
15221 the following values for \fB\s-1LANG\s0\fR are recognized:
15222 .RS 4
15223 .IP "\fBC\-JIS\fR" 4
15224 .IX Item "C-JIS"
15225 Recognize \s-1JIS\s0 characters.
15226 .IP "\fBC\-SJIS\fR" 4
15227 .IX Item "C-SJIS"
15228 Recognize \s-1SJIS\s0 characters.
15229 .IP "\fBC\-EUCJP\fR" 4
15230 .IX Item "C-EUCJP"
15231 Recognize \s-1EUCJP\s0 characters.
15232 .RE
15233 .RS 4
15234 .Sp
15235 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
15236 compiler will use mblen and mbtowc as defined by the default locale to
15237 recognize and translate multibyte characters.
15238 .RE
15239 .PP
15240 Some additional environments variables affect the behavior of the
15241 preprocessor.
15242 .IP "\fB\s-1CPATH\s0\fR" 4
15243 .IX Item "CPATH"
15244 .PD 0
15245 .IP "\fBC_INCLUDE_PATH\fR" 4
15246 .IX Item "C_INCLUDE_PATH"
15247 .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
15248 .IX Item "CPLUS_INCLUDE_PATH"
15249 .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
15250 .IX Item "OBJC_INCLUDE_PATH"
15251 .PD
15252 Each variable's value is a list of directories separated by a special
15253 character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
15254 The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
15255 determined at \s-1GCC\s0 build time.  For Microsoft Windows-based targets it is a
15256 semicolon, and for almost all other targets it is a colon.
15257 .Sp
15258 \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
15259 specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
15260 options on the command line.  This environment variable is used
15261 regardless of which language is being preprocessed.
15262 .Sp
15263 The remaining environment variables apply only when preprocessing the
15264 particular language indicated.  Each specifies a list of directories
15265 to be searched as if specified with \fB\-isystem\fR, but after any
15266 paths given with \fB\-isystem\fR options on the command line.
15267 .Sp
15268 In all these variables, an empty element instructs the compiler to
15269 search its current working directory.  Empty elements can appear at the
15270 beginning or end of a path.  For instance, if the value of
15271 \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
15272 effect as \fB\-I.\ \-I/special/include\fR.
15273 .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
15274 .IX Item "DEPENDENCIES_OUTPUT"
15275 If this variable is set, its value specifies how to output
15276 dependencies for Make based on the non-system header files processed
15277 by the compiler.  System header files are ignored in the dependency
15278 output.
15279 .Sp
15280 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
15281 which case the Make rules are written to that file, guessing the target
15282 name from the source file name.  Or the value can have the form
15283 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
15284 file \fIfile\fR using \fItarget\fR as the target name.
15285 .Sp
15286 In other words, this environment variable is equivalent to combining
15287 the options \fB\-MM\fR and \fB\-MF\fR,
15288 with an optional \fB\-MT\fR switch too.
15289 .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
15290 .IX Item "SUNPRO_DEPENDENCIES"
15291 This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
15292 except that system header files are not ignored, so it implies
15293 \&\fB\-M\fR rather than \fB\-MM\fR.  However, the dependence on the
15294 main input file is omitted.
15295 .SH "BUGS"
15296 .IX Header "BUGS"
15297 For instructions on reporting bugs, see
15298 <\fBhttp://gcc.gnu.org/bugs.html\fR>.
15299 .SH "FOOTNOTES"
15300 .IX Header "FOOTNOTES"
15301 .IP "1." 4
15302 On some systems, \fBgcc \-shared\fR
15303 needs to build supplementary stub code for constructors to work.  On
15304 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
15305 libraries to link against.  Failing to supply the correct flags may lead
15306 to subtle defects.  Supplying them in cases where they are not necessary
15307 is innocuous.
15308 .SH "SEE ALSO"
15309 .IX Header "SEE ALSO"
15310 \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7),
15311 \&\fIcpp\fR\|(1), \fIgcov\fR\|(1), \fIas\fR\|(1), \fIld\fR\|(1), \fIgdb\fR\|(1), \fIadb\fR\|(1), \fIdbx\fR\|(1), \fIsdb\fR\|(1)
15312 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
15313 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
15314 .SH "AUTHOR"
15315 .IX Header "AUTHOR"
15316 See the Info entry for \fBgcc\fR, or
15317 <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
15318 for contributors to \s-1GCC\s0.
15319 .SH "COPYRIGHT"
15320 .IX Header "COPYRIGHT"
15321 Copyright (c) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
15322 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
15323 Free Software Foundation, Inc.
15324 .PP
15325 Permission is granted to copy, distribute and/or modify this document
15326 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.2 or
15327 any later version published by the Free Software Foundation; with the
15328 Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
15329 Free Software\*(R", the Front-Cover texts being (a) (see below), and with
15330 the Back-Cover Texts being (b) (see below).  A copy of the license is
15331 included in the \fIgfdl\fR\|(7) man page.
15332 .PP
15333 (a) The \s-1FSF\s0's Front-Cover Text is:
15334 .PP
15335 .Vb 1
15336 \&     A GNU Manual
15337 .Ve
15338 .PP
15339 (b) The \s-1FSF\s0's Back-Cover Text is:
15340 .PP
15341 .Vb 3
15342 \&     You have freedom to copy and modify this GNU Manual, like GNU
15343 \&     software.  Copies published by the Free Software Foundation raise
15344 \&     funds for GNU development.
15345 .Ve
15346 .SH "POD ERRORS"
15347 .IX Header "POD ERRORS"
15348 Hey! \fBThe above document had some coding errors, which are explained below:\fR
15349 .IP "Around line 8714:" 4
15350 .IX Item "Around line 8714:"
15351 You can't have =items (as at line 8727) unless the first thing after the =over is an =item