Merge branch 'vendor/TNFTP'
[dragonfly.git] / gnu / usr.bin / cc50 / drivers / cc / gcc.1
1 .\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05)
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sh \" Subsection heading
6 .br
7 .if t .Sp
8 .ne 5
9 .PP
10 \fB\\$1\fR
11 .PP
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 "2015-07-16" "gcc-5.2.0" "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\-Wpedantic\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 is \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\-no\-canonical\-prefixes  
198 \&\-pipe  \-pass\-exit\-codes  
199 \&\-x\fR \fIlanguage\fR  \fB\-v  \-###  \-\-help\fR[\fB=\fR\fIclass\fR[\fB,...\fR]]  \fB\-\-target\-help  
200 \&\-\-version \-wrapper @\fR\fIfile\fR \fB\-fplugin=\fR\fIfile\fR \fB\-fplugin\-arg\-\fR\fIname\fR\fB=\fR\fIarg\fR  
201 \&\fB\-fdump\-ada\-spec\fR[\fB\-slim\fR] \fB\-fada\-spec\-parent=\fR\fIunit\fR \fB\-fdump\-go\-spec=\fR\fIfile\fR
202 .IP "\fIC Language Options\fR" 4
203 .IX Item "C Language Options"
204 \&\fB\-ansi  \-std=\fR\fIstandard\fR  \fB\-fgnu89\-inline 
205 \&\-aux\-info\fR \fIfilename\fR \fB\-fallow\-parameterless\-variadic\-functions 
206 \&\-fno\-asm  \-fno\-builtin  \-fno\-builtin\-\fR\fIfunction\fR 
207 \&\fB\-fhosted  \-ffreestanding \-fopenacc \-fopenmp \-fopenmp\-simd 
208 \&\-fms\-extensions \-fplan9\-extensions \-trigraphs \-traditional \-traditional\-cpp 
209 \&\-fallow\-single\-precision  \-fcond\-mismatch \-flax\-vector\-conversions 
210 \&\-fsigned\-bitfields  \-fsigned\-char 
211 \&\-funsigned\-bitfields  \-funsigned\-char\fR
212 .IP "\fI\*(C+ Language Options\fR" 4
213 .IX Item " Language Options"
214 \&\fB\-fabi\-version=\fR\fIn\fR  \fB\-fno\-access\-control  \-fcheck\-new 
215 \&\-fconstexpr\-depth=\fR\fIn\fR  \fB\-ffriend\-injection 
216 \&\-fno\-elide\-constructors 
217 \&\-fno\-enforce\-eh\-specs 
218 \&\-ffor\-scope  \-fno\-for\-scope  \-fno\-gnu\-keywords 
219 \&\-fno\-implicit\-templates 
220 \&\-fno\-implicit\-inline\-templates 
221 \&\-fno\-implement\-inlines  \-fms\-extensions 
222 \&\-fno\-nonansi\-builtins  \-fnothrow\-opt  \-fno\-operator\-names 
223 \&\-fno\-optional\-diags  \-fpermissive 
224 \&\-fno\-pretty\-templates 
225 \&\-frepo  \-fno\-rtti \-fsized\-deallocation 
226 \&\-fstats  \-ftemplate\-backtrace\-limit=\fR\fIn\fR 
227 \&\fB\-ftemplate\-depth=\fR\fIn\fR 
228 \&\fB\-fno\-threadsafe\-statics  \-fuse\-cxa\-atexit 
229 \&\-fno\-weak  \-nostdinc++ 
230 \&\-fvisibility\-inlines\-hidden 
231 \&\-fvtable\-verify=\fR[\fBstd\fR|\fBpreinit\fR|\fBnone\fR] 
232 \&\fB\-fvtv\-counts \-fvtv\-debug 
233 \&\-fvisibility\-ms\-compat 
234 \&\-fext\-numeric\-literals 
235 \&\-Wabi=\fR\fIn\fR  \fB\-Wabi\-tag  \-Wconversion\-null  \-Wctor\-dtor\-privacy 
236 \&\-Wdelete\-non\-virtual\-dtor \-Wliteral\-suffix \-Wnarrowing 
237 \&\-Wnoexcept \-Wnon\-virtual\-dtor  \-Wreorder 
238 \&\-Weffc++  \-Wstrict\-null\-sentinel 
239 \&\-Wno\-non\-template\-friend  \-Wold\-style\-cast 
240 \&\-Woverloaded\-virtual  \-Wno\-pmf\-conversions 
241 \&\-Wsign\-promo\fR
242 .IP "\fIObjective-C and Objective\-\*(C+ Language Options\fR" 4
243 .IX Item "Objective-C and Objective- Language Options"
244 \&\fB\-fconstant\-string\-class=\fR\fIclass-name\fR 
245 \&\fB\-fgnu\-runtime  \-fnext\-runtime 
246 \&\-fno\-nil\-receivers 
247 \&\-fobjc\-abi\-version=\fR\fIn\fR 
248 \&\fB\-fobjc\-call\-cxx\-cdtors 
249 \&\-fobjc\-direct\-dispatch 
250 \&\-fobjc\-exceptions 
251 \&\-fobjc\-gc 
252 \&\-fobjc\-nilcheck 
253 \&\-fobjc\-std=objc1 
254 \&\-fno\-local\-ivars 
255 \&\-fivar\-visibility=\fR[\fBpublic\fR|\fBprotected\fR|\fBprivate\fR|\fBpackage\fR] 
256 \&\fB\-freplace\-objc\-classes 
257 \&\-fzero\-link 
258 \&\-gen\-decls 
259 \&\-Wassign\-intercept 
260 \&\-Wno\-protocol  \-Wselector 
261 \&\-Wstrict\-selector\-match 
262 \&\-Wundeclared\-selector\fR
263 .IP "\fILanguage Independent Options\fR" 4
264 .IX Item "Language Independent Options"
265 \&\fB\-fmessage\-length=\fR\fIn\fR  
266 \&\fB\-fdiagnostics\-show\-location=\fR[\fBonce\fR|\fBevery-line\fR]  
267 \&\fB\-fdiagnostics\-color=\fR[\fBauto\fR|\fBnever\fR|\fBalways\fR]  
268 \&\fB\-fno\-diagnostics\-show\-option \-fno\-diagnostics\-show\-caret\fR
269 .IP "\fIWarning Options\fR" 4
270 .IX Item "Warning Options"
271 \&\fB\-fsyntax\-only  \-fmax\-errors=\fR\fIn\fR  \fB\-Wpedantic 
272 \&\-pedantic\-errors 
273 \&\-w  \-Wextra  \-Wall  \-Waddress  \-Waggregate\-return  
274 \&\-Waggressive\-loop\-optimizations \-Warray\-bounds \-Warray\-bounds=\fR\fIn\fR 
275 \&\fB\-Wbool\-compare 
276 \&\-Wno\-attributes \-Wno\-builtin\-macro\-redefined 
277 \&\-Wc90\-c99\-compat \-Wc99\-c11\-compat 
278 \&\-Wc++\-compat \-Wc++11\-compat \-Wc++14\-compat \-Wcast\-align  \-Wcast\-qual  
279 \&\-Wchar\-subscripts \-Wclobbered  \-Wcomment \-Wconditionally\-supported  
280 \&\-Wconversion \-Wcoverage\-mismatch \-Wdate\-time \-Wdelete\-incomplete \-Wno\-cpp  
281 \&\-Wno\-deprecated \-Wno\-deprecated\-declarations \-Wno\-designated\-init 
282 \&\-Wdisabled\-optimization 
283 \&\-Wno\-discarded\-qualifiers \-Wno\-discarded\-array\-qualifiers 
284 \&\-Wno\-div\-by\-zero \-Wdouble\-promotion \-Wempty\-body  \-Wenum\-compare 
285 \&\-Wno\-endif\-labels \-Werror  \-Werror=* 
286 \&\-Wfatal\-errors  \-Wfloat\-equal  \-Wformat  \-Wformat=2 
287 \&\-Wno\-format\-contains\-nul \-Wno\-format\-extra\-args \-Wformat\-nonliteral 
288 \&\-Wformat\-security  \-Wformat\-signedness  \-Wformat\-y2k 
289 \&\-Wframe\-larger\-than=\fR\fIlen\fR \fB\-Wno\-free\-nonheap\-object \-Wjump\-misses\-init 
290 \&\-Wignored\-qualifiers  \-Wincompatible\-pointer\-types 
291 \&\-Wimplicit  \-Wimplicit\-function\-declaration  \-Wimplicit\-int 
292 \&\-Winit\-self  \-Winline  \-Wno\-int\-conversion 
293 \&\-Wno\-int\-to\-pointer\-cast \-Wno\-invalid\-offsetof 
294 \&\-Winvalid\-pch \-Wlarger\-than=\fR\fIlen\fR  \fB\-Wunsafe\-loop\-optimizations 
295 \&\-Wlogical\-op \-Wlogical\-not\-parentheses \-Wlong\-long 
296 \&\-Wmain \-Wmaybe\-uninitialized \-Wmemset\-transposed\-args \-Wmissing\-braces 
297 \&\-Wmissing\-field\-initializers \-Wmissing\-include\-dirs 
298 \&\-Wno\-multichar  \-Wnonnull  \-Wnormalized=\fR[\fBnone\fR|\fBid\fR|\fBnfc\fR|\fBnfkc\fR] 
299  \fB\-Wodr  \-Wno\-overflow  \-Wopenmp\-simd 
300 \&\-Woverlength\-strings  \-Wpacked  \-Wpacked\-bitfield\-compat  \-Wpadded 
301 \&\-Wparentheses  \-Wpedantic\-ms\-format \-Wno\-pedantic\-ms\-format 
302 \&\-Wpointer\-arith  \-Wno\-pointer\-to\-int\-cast 
303 \&\-Wredundant\-decls  \-Wno\-return\-local\-addr 
304 \&\-Wreturn\-type  \-Wsequence\-point  \-Wshadow  \-Wno\-shadow\-ivar 
305 \&\-Wshift\-count\-negative \-Wshift\-count\-overflow 
306 \&\-Wsign\-compare  \-Wsign\-conversion \-Wfloat\-conversion 
307 \&\-Wsizeof\-pointer\-memaccess  \-Wsizeof\-array\-argument 
308 \&\-Wstack\-protector \-Wstack\-usage=\fR\fIlen\fR \fB\-Wstrict\-aliasing 
309 \&\-Wstrict\-aliasing=n  \-Wstrict\-overflow \-Wstrict\-overflow=\fR\fIn\fR 
310 \&\fB\-Wsuggest\-attribute=\fR[\fBpure\fR|\fBconst\fR|\fBnoreturn\fR|\fBformat\fR] 
311 \&\fB\-Wsuggest\-final\-types  \-Wsuggest\-final\-methods  \-Wsuggest\-override 
312 \&\-Wmissing\-format\-attribute 
313 \&\-Wswitch  \-Wswitch\-default  \-Wswitch\-enum \-Wswitch\-bool \-Wsync\-nand 
314 \&\-Wsystem\-headers  \-Wtrampolines  \-Wtrigraphs  \-Wtype\-limits  \-Wundef 
315 \&\-Wuninitialized  \-Wunknown\-pragmas  \-Wno\-pragmas 
316 \&\-Wunsuffixed\-float\-constants  \-Wunused  \-Wunused\-function 
317 \&\-Wunused\-label  \-Wunused\-local\-typedefs \-Wunused\-parameter 
318 \&\-Wno\-unused\-result \-Wunused\-value  \-Wunused\-variable 
319 \&\-Wunused\-but\-set\-parameter \-Wunused\-but\-set\-variable 
320 \&\-Wuseless\-cast \-Wvariadic\-macros \-Wvector\-operation\-performance 
321 \&\-Wvla \-Wvolatile\-register\-var  \-Wwrite\-strings 
322 \&\-Wzero\-as\-null\-pointer\-constant\fR
323 .IP "\fIC and Objective-C-only Warning Options\fR" 4
324 .IX Item "C and Objective-C-only Warning Options"
325 \&\fB\-Wbad\-function\-cast  \-Wmissing\-declarations 
326 \&\-Wmissing\-parameter\-type  \-Wmissing\-prototypes  \-Wnested\-externs 
327 \&\-Wold\-style\-declaration  \-Wold\-style\-definition 
328 \&\-Wstrict\-prototypes  \-Wtraditional  \-Wtraditional\-conversion 
329 \&\-Wdeclaration\-after\-statement \-Wpointer\-sign\fR
330 .IP "\fIDebugging Options\fR" 4
331 .IX Item "Debugging Options"
332 \&\fB\-d\fR\fIletters\fR  \fB\-dumpspecs  \-dumpmachine  \-dumpversion 
333 \&\-fsanitize=\fR\fIstyle\fR \fB\-fsanitize\-recover \-fsanitize\-recover=\fR\fIstyle\fR 
334 \&\fB\-fasan\-shadow\-offset=\fR\fInumber\fR \fB\-fsanitize\-undefined\-trap\-on\-error 
335 \&\-fcheck\-pointer\-bounds \-fchkp\-check\-incomplete\-type 
336 \&\-fchkp\-first\-field\-has\-own\-bounds \-fchkp\-narrow\-bounds 
337 \&\-fchkp\-narrow\-to\-innermost\-array \-fchkp\-optimize 
338 \&\-fchkp\-use\-fast\-string\-functions \-fchkp\-use\-nochk\-string\-functions 
339 \&\-fchkp\-use\-static\-bounds \-fchkp\-use\-static\-const\-bounds 
340 \&\-fchkp\-treat\-zero\-dynamic\-size\-as\-infinite \-fchkp\-check\-read 
341 \&\-fchkp\-check\-read \-fchkp\-check\-write \-fchkp\-store\-bounds 
342 \&\-fchkp\-instrument\-calls \-fchkp\-instrument\-marked\-only 
343 \&\-fchkp\-use\-wrappers 
344 \&\-fdbg\-cnt\-list \-fdbg\-cnt=\fR\fIcounter-value-list\fR 
345 \&\fB\-fdisable\-ipa\-\fR\fIpass_name\fR 
346 \&\fB\-fdisable\-rtl\-\fR\fIpass_name\fR 
347 \&\fB\-fdisable\-rtl\-\fR\fIpass-name\fR\fB=\fR\fIrange-list\fR 
348 \&\fB\-fdisable\-tree\-\fR\fIpass_name\fR 
349 \&\fB\-fdisable\-tree\-\fR\fIpass-name\fR\fB=\fR\fIrange-list\fR 
350 \&\fB\-fdump\-noaddr \-fdump\-unnumbered \-fdump\-unnumbered\-links 
351 \&\-fdump\-translation\-unit\fR[\fB\-\fR\fIn\fR] 
352 \&\fB\-fdump\-class\-hierarchy\fR[\fB\-\fR\fIn\fR] 
353 \&\fB\-fdump\-ipa\-all \-fdump\-ipa\-cgraph \-fdump\-ipa\-inline 
354 \&\-fdump\-passes 
355 \&\-fdump\-statistics 
356 \&\-fdump\-tree\-all 
357 \&\-fdump\-tree\-original\fR[\fB\-\fR\fIn\fR]  
358 \&\fB\-fdump\-tree\-optimized\fR[\fB\-\fR\fIn\fR] 
359 \&\fB\-fdump\-tree\-cfg \-fdump\-tree\-alias 
360 \&\-fdump\-tree\-ch 
361 \&\-fdump\-tree\-ssa\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-pre\fR[\fB\-\fR\fIn\fR] 
362 \&\fB\-fdump\-tree\-ccp\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-dce\fR[\fB\-\fR\fIn\fR] 
363 \&\fB\-fdump\-tree\-gimple\fR[\fB\-raw\fR] 
364 \&\fB\-fdump\-tree\-dom\fR[\fB\-\fR\fIn\fR] 
365 \&\fB\-fdump\-tree\-dse\fR[\fB\-\fR\fIn\fR] 
366 \&\fB\-fdump\-tree\-phiprop\fR[\fB\-\fR\fIn\fR] 
367 \&\fB\-fdump\-tree\-phiopt\fR[\fB\-\fR\fIn\fR] 
368 \&\fB\-fdump\-tree\-forwprop\fR[\fB\-\fR\fIn\fR] 
369 \&\fB\-fdump\-tree\-copyrename\fR[\fB\-\fR\fIn\fR] 
370 \&\fB\-fdump\-tree\-nrv \-fdump\-tree\-vect 
371 \&\-fdump\-tree\-sink 
372 \&\-fdump\-tree\-sra\fR[\fB\-\fR\fIn\fR] 
373 \&\fB\-fdump\-tree\-forwprop\fR[\fB\-\fR\fIn\fR] 
374 \&\fB\-fdump\-tree\-fre\fR[\fB\-\fR\fIn\fR] 
375 \&\fB\-fdump\-tree\-vtable\-verify 
376 \&\-fdump\-tree\-vrp\fR[\fB\-\fR\fIn\fR] 
377 \&\fB\-fdump\-tree\-storeccp\fR[\fB\-\fR\fIn\fR] 
378 \&\fB\-fdump\-final\-insns=\fR\fIfile\fR 
379 \&\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR]  \fB\-fcompare\-debug\-second 
380 \&\-feliminate\-dwarf2\-dups \-fno\-eliminate\-unused\-debug\-types 
381 \&\-feliminate\-unused\-debug\-symbols \-femit\-class\-debug\-always 
382 \&\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR 
383 \&\fB\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR 
384 \&\fB\-fdebug\-types\-section \-fmem\-report\-wpa 
385 \&\-fmem\-report \-fpre\-ipa\-mem\-report \-fpost\-ipa\-mem\-report \-fprofile\-arcs 
386 \&\-fopt\-info 
387 \&\-fopt\-info\-\fR\fIoptions\fR[\fB=\fR\fIfile\fR] 
388 \&\fB\-frandom\-seed=\fR\fInumber\fR \fB\-fsched\-verbose=\fR\fIn\fR 
389 \&\fB\-fsel\-sched\-verbose \-fsel\-sched\-dump\-cfg \-fsel\-sched\-pipelining\-verbose 
390 \&\-fstack\-usage  \-ftest\-coverage  \-ftime\-report \-fvar\-tracking 
391 \&\-fvar\-tracking\-assignments  \-fvar\-tracking\-assignments\-toggle 
392 \&\-g  \-g\fR\fIlevel\fR  \fB\-gtoggle  \-gcoff  \-gdwarf\-\fR\fIversion\fR 
393 \&\fB\-ggdb  \-grecord\-gcc\-switches  \-gno\-record\-gcc\-switches 
394 \&\-gstabs  \-gstabs+  \-gstrict\-dwarf  \-gno\-strict\-dwarf 
395 \&\-gvms  \-gxcoff  \-gxcoff+ \-gz\fR[\fB=\fR\fItype\fR] 
396 \&\fB\-fno\-merge\-debug\-strings \-fno\-dwarf2\-cfi\-asm 
397 \&\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR 
398 \&\fB\-femit\-struct\-debug\-baseonly \-femit\-struct\-debug\-reduced 
399 \&\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR] 
400 \&\fB\-p  \-pg  \-print\-file\-name=\fR\fIlibrary\fR  \fB\-print\-libgcc\-file\-name 
401 \&\-print\-multi\-directory  \-print\-multi\-lib  \-print\-multi\-os\-directory 
402 \&\-print\-prog\-name=\fR\fIprogram\fR  \fB\-print\-search\-dirs  \-Q 
403 \&\-print\-sysroot \-print\-sysroot\-headers\-suffix 
404 \&\-save\-temps \-save\-temps=cwd \-save\-temps=obj \-time\fR[\fB=\fR\fIfile\fR]
405 .IP "\fIOptimization Options\fR" 4
406 .IX Item "Optimization Options"
407 \&\fB\-faggressive\-loop\-optimizations \-falign\-functions[=\fR\fIn\fR\fB] 
408 \&\-falign\-jumps[=\fR\fIn\fR\fB] 
409 \&\-falign\-labels[=\fR\fIn\fR\fB] \-falign\-loops[=\fR\fIn\fR\fB] 
410 \&\-fassociative\-math \-fauto\-profile \-fauto\-profile[=\fR\fIpath\fR\fB] 
411 \&\-fauto\-inc\-dec \-fbranch\-probabilities 
412 \&\-fbranch\-target\-load\-optimize \-fbranch\-target\-load\-optimize2 
413 \&\-fbtr\-bb\-exclusive \-fcaller\-saves 
414 \&\-fcheck\-data\-deps \-fcombine\-stack\-adjustments \-fconserve\-stack 
415 \&\-fcompare\-elim \-fcprop\-registers \-fcrossjumping 
416 \&\-fcse\-follow\-jumps \-fcse\-skip\-blocks \-fcx\-fortran\-rules 
417 \&\-fcx\-limited\-range 
418 \&\-fdata\-sections \-fdce \-fdelayed\-branch 
419 \&\-fdelete\-null\-pointer\-checks \-fdevirtualize \-fdevirtualize\-speculatively 
420 \&\-fdevirtualize\-at\-ltrans \-fdse 
421 \&\-fearly\-inlining \-fipa\-sra \-fexpensive\-optimizations \-ffat\-lto\-objects 
422 \&\-ffast\-math \-ffinite\-math\-only \-ffloat\-store \-fexcess\-precision=\fR\fIstyle\fR 
423 \&\fB\-fforward\-propagate \-ffp\-contract=\fR\fIstyle\fR \fB\-ffunction\-sections 
424 \&\-fgcse \-fgcse\-after\-reload \-fgcse\-las \-fgcse\-lm \-fgraphite\-identity 
425 \&\-fgcse\-sm \-fhoist\-adjacent\-loads \-fif\-conversion 
426 \&\-fif\-conversion2 \-findirect\-inlining 
427 \&\-finline\-functions \-finline\-functions\-called\-once \-finline\-limit=\fR\fIn\fR 
428 \&\fB\-finline\-small\-functions \-fipa\-cp \-fipa\-cp\-clone \-fipa\-cp\-alignment 
429 \&\-fipa\-pta \-fipa\-profile \-fipa\-pure\-const \-fipa\-reference \-fipa\-icf 
430 \&\-fira\-algorithm=\fR\fIalgorithm\fR 
431 \&\fB\-fira\-region=\fR\fIregion\fR \fB\-fira\-hoist\-pressure 
432 \&\-fira\-loop\-pressure \-fno\-ira\-share\-save\-slots 
433 \&\-fno\-ira\-share\-spill\-slots \-fira\-verbose=\fR\fIn\fR 
434 \&\fB\-fisolate\-erroneous\-paths\-dereference \-fisolate\-erroneous\-paths\-attribute 
435 \&\-fivopts \-fkeep\-inline\-functions \-fkeep\-static\-consts 
436 \&\-flive\-range\-shrinkage 
437 \&\-floop\-block \-floop\-interchange \-floop\-strip\-mine   
438 \&\-floop\-unroll\-and\-jam \-floop\-nest\-optimize 
439 \&\-floop\-parallelize\-all \-flra\-remat \-flto \-flto\-compression\-level 
440 \&\-flto\-partition=\fR\fIalg\fR \fB\-flto\-report \-flto\-report\-wpa \-fmerge\-all\-constants 
441 \&\-fmerge\-constants \-fmodulo\-sched \-fmodulo\-sched\-allow\-regmoves 
442 \&\-fmove\-loop\-invariants \-fno\-branch\-count\-reg 
443 \&\-fno\-defer\-pop \-fno\-function\-cse \-fno\-guess\-branch\-probability 
444 \&\-fno\-inline \-fno\-math\-errno \-fno\-peephole \-fno\-peephole2 
445 \&\-fno\-sched\-interblock \-fno\-sched\-spec \-fno\-signed\-zeros 
446 \&\-fno\-toplevel\-reorder \-fno\-trapping\-math \-fno\-zero\-initialized\-in\-bss 
447 \&\-fomit\-frame\-pointer \-foptimize\-sibling\-calls 
448 \&\-fpartial\-inlining \-fpeel\-loops \-fpredictive\-commoning 
449 \&\-fprefetch\-loop\-arrays \-fprofile\-report 
450 \&\-fprofile\-correction \-fprofile\-dir=\fR\fIpath\fR \fB\-fprofile\-generate 
451 \&\-fprofile\-generate=\fR\fIpath\fR 
452 \&\fB\-fprofile\-use \-fprofile\-use=\fR\fIpath\fR \fB\-fprofile\-values 
453 \&\-fprofile\-reorder\-functions 
454 \&\-freciprocal\-math \-free \-frename\-registers \-freorder\-blocks 
455 \&\-freorder\-blocks\-and\-partition \-freorder\-functions 
456 \&\-frerun\-cse\-after\-loop \-freschedule\-modulo\-scheduled\-loops 
457 \&\-frounding\-math \-fsched2\-use\-superblocks \-fsched\-pressure 
458 \&\-fsched\-spec\-load \-fsched\-spec\-load\-dangerous 
459 \&\-fsched\-stalled\-insns\-dep[=\fR\fIn\fR\fB] \-fsched\-stalled\-insns[=\fR\fIn\fR\fB] 
460 \&\-fsched\-group\-heuristic \-fsched\-critical\-path\-heuristic 
461 \&\-fsched\-spec\-insn\-heuristic \-fsched\-rank\-heuristic 
462 \&\-fsched\-last\-insn\-heuristic \-fsched\-dep\-count\-heuristic 
463 \&\-fschedule\-fusion 
464 \&\-fschedule\-insns \-fschedule\-insns2 \-fsection\-anchors 
465 \&\-fselective\-scheduling \-fselective\-scheduling2 
466 \&\-fsel\-sched\-pipelining \-fsel\-sched\-pipelining\-outer\-loops 
467 \&\-fsemantic\-interposition 
468 \&\-fshrink\-wrap \-fsignaling\-nans \-fsingle\-precision\-constant 
469 \&\-fsplit\-ivs\-in\-unroller \-fsplit\-wide\-types \-fssa\-phiopt 
470 \&\-fstack\-protector \-fstack\-protector\-all \-fstack\-protector\-strong 
471 \&\-fstack\-protector\-explicit \-fstdarg\-opt \-fstrict\-aliasing 
472 \&\-fstrict\-overflow \-fthread\-jumps \-ftracer \-ftree\-bit\-ccp 
473 \&\-ftree\-builtin\-call\-dce \-ftree\-ccp \-ftree\-ch 
474 \&\-ftree\-coalesce\-inline\-vars \-ftree\-coalesce\-vars \-ftree\-copy\-prop 
475 \&\-ftree\-copyrename \-ftree\-dce \-ftree\-dominator\-opts \-ftree\-dse 
476 \&\-ftree\-forwprop \-ftree\-fre \-ftree\-loop\-if\-convert 
477 \&\-ftree\-loop\-if\-convert\-stores \-ftree\-loop\-im 
478 \&\-ftree\-phiprop \-ftree\-loop\-distribution \-ftree\-loop\-distribute\-patterns 
479 \&\-ftree\-loop\-ivcanon \-ftree\-loop\-linear \-ftree\-loop\-optimize 
480 \&\-ftree\-loop\-vectorize 
481 \&\-ftree\-parallelize\-loops=\fR\fIn\fR \fB\-ftree\-pre \-ftree\-partial\-pre \-ftree\-pta 
482 \&\-ftree\-reassoc \-ftree\-sink \-ftree\-slsr \-ftree\-sra 
483 \&\-ftree\-switch\-conversion \-ftree\-tail\-merge \-ftree\-ter 
484 \&\-ftree\-vectorize \-ftree\-vrp 
485 \&\-funit\-at\-a\-time \-funroll\-all\-loops \-funroll\-loops 
486 \&\-funsafe\-loop\-optimizations \-funsafe\-math\-optimizations \-funswitch\-loops 
487 \&\-fipa\-ra \-fvariable\-expansion\-in\-unroller \-fvect\-cost\-model \-fvpt 
488 \&\-fweb \-fwhole\-program \-fwpa \-fuse\-linker\-plugin 
489 \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
490 \&\fB\-O  \-O0  \-O1  \-O2  \-O3  \-Os \-Ofast \-Og\fR
491 .IP "\fIPreprocessor Options\fR" 4
492 .IX Item "Preprocessor Options"
493 \&\fB\-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR 
494 \&\fB\-A\-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR] 
495 \&\fB\-C  \-dD  \-dI  \-dM  \-dN 
496 \&\-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]  \fB\-E  \-H 
497 \&\-idirafter\fR \fIdir\fR 
498 \&\fB\-include\fR \fIfile\fR  \fB\-imacros\fR \fIfile\fR 
499 \&\fB\-iprefix\fR \fIfile\fR  \fB\-iwithprefix\fR \fIdir\fR 
500 \&\fB\-iwithprefixbefore\fR \fIdir\fR  \fB\-isystem\fR \fIdir\fR 
501 \&\fB\-imultilib\fR \fIdir\fR \fB\-isysroot\fR \fIdir\fR 
502 \&\fB\-M  \-MM  \-MF  \-MG  \-MP  \-MQ  \-MT  \-nostdinc  
503 \&\-P  \-fdebug\-cpp \-ftrack\-macro\-expansion \-fworking\-directory 
504 \&\-remap \-trigraphs  \-undef  \-U\fR\fImacro\fR  
505 \&\fB\-Wp,\fR\fIoption\fR \fB\-Xpreprocessor\fR \fIoption\fR \fB\-no\-integrated\-cpp\fR
506 .IP "\fIAssembler Option\fR" 4
507 .IX Item "Assembler Option"
508 \&\fB\-Wa,\fR\fIoption\fR  \fB\-Xassembler\fR \fIoption\fR
509 .IP "\fILinker Options\fR" 4
510 .IX Item "Linker Options"
511 \&\fIobject-file-name\fR  \fB\-fuse\-ld=\fR\fIlinker\fR \fB\-l\fR\fIlibrary\fR 
512 \&\fB\-nostartfiles  \-nodefaultlibs  \-nostdlib \-pie \-rdynamic 
513 \&\-s  \-static \-static\-libgcc \-static\-libstdc++ 
514 \&\-static\-libasan \-static\-libtsan \-static\-liblsan \-static\-libubsan 
515 \&\-static\-libmpx \-static\-libmpxwrappers 
516 \&\-shared \-shared\-libgcc  \-symbolic 
517 \&\-T\fR \fIscript\fR  \fB\-Wl,\fR\fIoption\fR  \fB\-Xlinker\fR \fIoption\fR 
518 \&\fB\-u\fR \fIsymbol\fR \fB\-z\fR \fIkeyword\fR
519 .IP "\fIDirectory Options\fR" 4
520 .IX Item "Directory Options"
521 \&\fB\-B\fR\fIprefix\fR \fB\-I\fR\fIdir\fR \fB\-iplugindir=\fR\fIdir\fR 
522 \&\fB\-iquote\fR\fIdir\fR \fB\-L\fR\fIdir\fR \fB\-specs=\fR\fIfile\fR \fB\-I\- 
523 \&\-\-sysroot=\fR\fIdir\fR \fB\-\-no\-sysroot\-suffix\fR
524 .IP "\fIMachine Dependent Options\fR" 4
525 .IX Item "Machine Dependent Options"
526 \&\fIAArch64 Options\fR
527 \&\fB\-mabi=\fR\fIname\fR  \fB\-mbig\-endian  \-mlittle\-endian 
528 \&\-mgeneral\-regs\-only 
529 \&\-mcmodel=tiny  \-mcmodel=small  \-mcmodel=large 
530 \&\-mstrict\-align 
531 \&\-momit\-leaf\-frame\-pointer  \-mno\-omit\-leaf\-frame\-pointer 
532 \&\-mtls\-dialect=desc  \-mtls\-dialect=traditional 
533 \&\-mfix\-cortex\-a53\-835769  \-mno\-fix\-cortex\-a53\-835769 
534 \&\-mfix\-cortex\-a53\-843419  \-mno\-fix\-cortex\-a53\-843419 
535 \&\-march=\fR\fIname\fR  \fB\-mcpu=\fR\fIname\fR  \fB\-mtune=\fR\fIname\fR
536 .Sp
537 \&\fIAdapteva Epiphany Options\fR
538 \&\fB\-mhalf\-reg\-file \-mprefer\-short\-insn\-regs 
539 \&\-mbranch\-cost=\fR\fInum\fR \fB\-mcmove \-mnops=\fR\fInum\fR \fB\-msoft\-cmpsf 
540 \&\-msplit\-lohi \-mpost\-inc \-mpost\-modify \-mstack\-offset=\fR\fInum\fR 
541 \&\fB\-mround\-nearest \-mlong\-calls \-mshort\-calls \-msmall16 
542 \&\-mfp\-mode=\fR\fImode\fR \fB\-mvect\-double \-max\-vect\-align=\fR\fInum\fR 
543 \&\fB\-msplit\-vecmove\-early \-m1reg\-\fR\fIreg\fR
544 .Sp
545 \&\fI\s-1ARC\s0 Options\fR
546 \&\fB\-mbarrel\-shifter 
547 \&\-mcpu=\fR\fIcpu\fR \fB\-mA6 \-mARC600 \-mA7 \-mARC700 
548 \&\-mdpfp \-mdpfp\-compact \-mdpfp\-fast \-mno\-dpfp\-lrsr 
549 \&\-mea \-mno\-mpy \-mmul32x16 \-mmul64 
550 \&\-mnorm \-mspfp \-mspfp\-compact \-mspfp\-fast \-msimd \-msoft\-float \-mswap 
551 \&\-mcrc \-mdsp\-packa \-mdvbf \-mlock \-mmac\-d16 \-mmac\-24 \-mrtsc \-mswape 
552 \&\-mtelephony \-mxy \-misize \-mannotate\-align \-marclinux \-marclinux_prof 
553 \&\-mepilogue\-cfi \-mlong\-calls \-mmedium\-calls \-msdata 
554 \&\-mucb\-mcount \-mvolatile\-cache 
555 \&\-malign\-call \-mauto\-modify\-reg \-mbbit\-peephole \-mno\-brcc 
556 \&\-mcase\-vector\-pcrel \-mcompact\-casesi \-mno\-cond\-exec \-mearly\-cbranchsi 
557 \&\-mexpand\-adddi \-mindexed\-loads \-mlra \-mlra\-priority\-none 
558 \&\-mlra\-priority\-compact mlra-priority-noncompact \-mno\-millicode 
559 \&\-mmixed\-code \-mq\-class \-mRcq \-mRcw \-msize\-level=\fR\fIlevel\fR 
560 \&\fB\-mtune=\fR\fIcpu\fR \fB\-mmultcost=\fR\fInum\fR \fB\-munalign\-prob\-threshold=\fR\fIprobability\fR
561 .Sp
562 \&\fI\s-1ARM\s0 Options\fR
563 \&\fB\-mapcs\-frame  \-mno\-apcs\-frame 
564 \&\-mabi=\fR\fIname\fR 
565 \&\fB\-mapcs\-stack\-check  \-mno\-apcs\-stack\-check 
566 \&\-mapcs\-float  \-mno\-apcs\-float 
567 \&\-mapcs\-reentrant  \-mno\-apcs\-reentrant 
568 \&\-msched\-prolog  \-mno\-sched\-prolog 
569 \&\-mlittle\-endian  \-mbig\-endian 
570 \&\-mfloat\-abi=\fR\fIname\fR 
571 \&\fB\-mfp16\-format=\fR\fIname\fR
572 \&\fB\-mthumb\-interwork  \-mno\-thumb\-interwork 
573 \&\-mcpu=\fR\fIname\fR  \fB\-march=\fR\fIname\fR  \fB\-mfpu=\fR\fIname\fR  
574 \&\fB\-mtune=\fR\fIname\fR \fB\-mprint\-tune\-info 
575 \&\-mstructure\-size\-boundary=\fR\fIn\fR 
576 \&\fB\-mabort\-on\-noreturn 
577 \&\-mlong\-calls  \-mno\-long\-calls 
578 \&\-msingle\-pic\-base  \-mno\-single\-pic\-base 
579 \&\-mpic\-register=\fR\fIreg\fR 
580 \&\fB\-mnop\-fun\-dllimport 
581 \&\-mpoke\-function\-name 
582 \&\-mthumb  \-marm 
583 \&\-mtpcs\-frame  \-mtpcs\-leaf\-frame 
584 \&\-mcaller\-super\-interworking  \-mcallee\-super\-interworking 
585 \&\-mtp=\fR\fIname\fR \fB\-mtls\-dialect=\fR\fIdialect\fR 
586 \&\fB\-mword\-relocations 
587 \&\-mfix\-cortex\-m3\-ldrd 
588 \&\-munaligned\-access 
589 \&\-mneon\-for\-64bits 
590 \&\-mslow\-flash\-data 
591 \&\-masm\-syntax\-unified 
592 \&\-mrestrict\-it\fR
593 .Sp
594 \&\fI\s-1AVR\s0 Options\fR
595 \&\fB\-mmcu=\fR\fImcu\fR \fB\-maccumulate\-args \-mbranch\-cost=\fR\fIcost\fR 
596 \&\fB\-mcall\-prologues \-mint8 \-mn_flash=\fR\fIsize\fR \fB\-mno\-interrupts 
597 \&\-mrelax \-mrmw \-mstrict\-X \-mtiny\-stack \-nodevicelib \-Waddr\-space\-convert\fR
598 .Sp
599 \&\fIBlackfin Options\fR
600 \&\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR] 
601 \&\fB\-msim \-momit\-leaf\-frame\-pointer  \-mno\-omit\-leaf\-frame\-pointer 
602 \&\-mspecld\-anomaly  \-mno\-specld\-anomaly  \-mcsync\-anomaly  \-mno\-csync\-anomaly 
603 \&\-mlow\-64k \-mno\-low64k  \-mstack\-check\-l1  \-mid\-shared\-library 
604 \&\-mno\-id\-shared\-library  \-mshared\-library\-id=\fR\fIn\fR 
605 \&\fB\-mleaf\-id\-shared\-library  \-mno\-leaf\-id\-shared\-library 
606 \&\-msep\-data  \-mno\-sep\-data  \-mlong\-calls  \-mno\-long\-calls 
607 \&\-mfast\-fp \-minline\-plt \-mmulticore  \-mcorea  \-mcoreb  \-msdram 
608 \&\-micplb\fR
609 .Sp
610 \&\fIC6X Options\fR
611 \&\fB\-mbig\-endian  \-mlittle\-endian \-march=\fR\fIcpu\fR 
612 \&\fB\-msim \-msdata=\fR\fIsdata-type\fR
613 .Sp
614 \&\fI\s-1CRIS\s0 Options\fR
615 \&\fB\-mcpu=\fR\fIcpu\fR  \fB\-march=\fR\fIcpu\fR  \fB\-mtune=\fR\fIcpu\fR 
616 \&\fB\-mmax\-stack\-frame=\fR\fIn\fR  \fB\-melinux\-stacksize=\fR\fIn\fR 
617 \&\fB\-metrax4  \-metrax100  \-mpdebug  \-mcc\-init  \-mno\-side\-effects 
618 \&\-mstack\-align  \-mdata\-align  \-mconst\-align 
619 \&\-m32\-bit  \-m16\-bit  \-m8\-bit  \-mno\-prologue\-epilogue  \-mno\-gotplt 
620 \&\-melf  \-maout  \-melinux  \-mlinux  \-sim  \-sim2 
621 \&\-mmul\-bug\-workaround  \-mno\-mul\-bug\-workaround\fR
622 .Sp
623 \&\fI\s-1CR16\s0 Options\fR
624 \&\fB\-mmac 
625 \&\-mcr16cplus \-mcr16c 
626 \&\-msim \-mint32 \-mbit\-ops
627 \&\-mdata\-model=\fR\fImodel\fR
628 .Sp
629 \&\fIDarwin Options\fR
630 \&\fB\-all_load  \-allowable_client  \-arch  \-arch_errors_fatal 
631 \&\-arch_only  \-bind_at_load  \-bundle  \-bundle_loader 
632 \&\-client_name  \-compatibility_version  \-current_version 
633 \&\-dead_strip 
634 \&\-dependency\-file  \-dylib_file  \-dylinker_install_name 
635 \&\-dynamic  \-dynamiclib  \-exported_symbols_list 
636 \&\-filelist  \-flat_namespace  \-force_cpusubtype_ALL 
637 \&\-force_flat_namespace  \-headerpad_max_install_names 
638 \&\-iframework 
639 \&\-image_base  \-init  \-install_name  \-keep_private_externs 
640 \&\-multi_module  \-multiply_defined  \-multiply_defined_unused 
641 \&\-noall_load   \-no_dead_strip_inits_and_terms 
642 \&\-nofixprebinding \-nomultidefs  \-noprebind  \-noseglinkedit 
643 \&\-pagezero_size  \-prebind  \-prebind_all_twolevel_modules 
644 \&\-private_bundle  \-read_only_relocs  \-sectalign 
645 \&\-sectobjectsymbols  \-whyload  \-seg1addr 
646 \&\-sectcreate  \-sectobjectsymbols  \-sectorder 
647 \&\-segaddr \-segs_read_only_addr \-segs_read_write_addr 
648 \&\-seg_addr_table  \-seg_addr_table_filename  \-seglinkedit 
649 \&\-segprot  \-segs_read_only_addr  \-segs_read_write_addr 
650 \&\-single_module  \-static  \-sub_library  \-sub_umbrella 
651 \&\-twolevel_namespace  \-umbrella  \-undefined 
652 \&\-unexported_symbols_list  \-weak_reference_mismatches 
653 \&\-whatsloaded \-F \-gused \-gfull \-mmacosx\-version\-min=\fR\fIversion\fR 
654 \&\fB\-mkernel \-mone\-byte\-bool\fR
655 .Sp
656 \&\fI\s-1DEC\s0 Alpha Options\fR
657 \&\fB\-mno\-fp\-regs  \-msoft\-float 
658 \&\-mieee  \-mieee\-with\-inexact  \-mieee\-conformant 
659 \&\-mfp\-trap\-mode=\fR\fImode\fR  \fB\-mfp\-rounding\-mode=\fR\fImode\fR 
660 \&\fB\-mtrap\-precision=\fR\fImode\fR  \fB\-mbuild\-constants 
661 \&\-mcpu=\fR\fIcpu-type\fR  \fB\-mtune=\fR\fIcpu-type\fR 
662 \&\fB\-mbwx  \-mmax  \-mfix  \-mcix 
663 \&\-mfloat\-vax  \-mfloat\-ieee 
664 \&\-mexplicit\-relocs  \-msmall\-data  \-mlarge\-data 
665 \&\-msmall\-text  \-mlarge\-text 
666 \&\-mmemory\-latency=\fR\fItime\fR
667 .Sp
668 \&\fI\s-1FR30\s0 Options\fR
669 \&\fB\-msmall\-model \-mno\-lsim\fR
670 .Sp
671 \&\fI\s-1FRV\s0 Options\fR
672 \&\fB\-mgpr\-32  \-mgpr\-64  \-mfpr\-32  \-mfpr\-64 
673 \&\-mhard\-float  \-msoft\-float 
674 \&\-malloc\-cc  \-mfixed\-cc  \-mdword  \-mno\-dword 
675 \&\-mdouble  \-mno\-double 
676 \&\-mmedia  \-mno\-media  \-mmuladd  \-mno\-muladd 
677 \&\-mfdpic  \-minline\-plt \-mgprel\-ro  \-multilib\-library\-pic 
678 \&\-mlinked\-fp  \-mlong\-calls  \-malign\-labels 
679 \&\-mlibrary\-pic  \-macc\-4  \-macc\-8 
680 \&\-mpack  \-mno\-pack  \-mno\-eflags  \-mcond\-move  \-mno\-cond\-move 
681 \&\-moptimize\-membar \-mno\-optimize\-membar 
682 \&\-mscc  \-mno\-scc  \-mcond\-exec  \-mno\-cond\-exec 
683 \&\-mvliw\-branch  \-mno\-vliw\-branch 
684 \&\-mmulti\-cond\-exec  \-mno\-multi\-cond\-exec  \-mnested\-cond\-exec 
685 \&\-mno\-nested\-cond\-exec  \-mtomcat\-stats 
686 \&\-mTLS \-mtls 
687 \&\-mcpu=\fR\fIcpu\fR
688 .Sp
689 \&\fIGNU/Linux Options\fR
690 \&\fB\-mglibc \-muclibc \-mbionic \-mandroid 
691 \&\-tno\-android\-cc \-tno\-android\-ld\fR
692 .Sp
693 \&\fIH8/300 Options\fR
694 \&\fB\-mrelax  \-mh  \-ms  \-mn  \-mexr \-mno\-exr  \-mint32  \-malign\-300\fR
695 .Sp
696 \&\fI\s-1HPPA\s0 Options\fR
697 \&\fB\-march=\fR\fIarchitecture-type\fR 
698 \&\fB\-mdisable\-fpregs  \-mdisable\-indexing 
699 \&\-mfast\-indirect\-calls  \-mgas  \-mgnu\-ld   \-mhp\-ld 
700 \&\-mfixed\-range=\fR\fIregister-range\fR 
701 \&\fB\-mjump\-in\-delay \-mlinker\-opt \-mlong\-calls 
702 \&\-mlong\-load\-store  \-mno\-disable\-fpregs 
703 \&\-mno\-disable\-indexing  \-mno\-fast\-indirect\-calls  \-mno\-gas 
704 \&\-mno\-jump\-in\-delay  \-mno\-long\-load\-store 
705 \&\-mno\-portable\-runtime  \-mno\-soft\-float 
706 \&\-mno\-space\-regs  \-msoft\-float  \-mpa\-risc\-1\-0 
707 \&\-mpa\-risc\-1\-1  \-mpa\-risc\-2\-0  \-mportable\-runtime 
708 \&\-mschedule=\fR\fIcpu-type\fR  \fB\-mspace\-regs  \-msio  \-mwsio 
709 \&\-munix=\fR\fIunix-std\fR  \fB\-nolibdld  \-static  \-threads\fR
710 .Sp
711 \&\fI\s-1IA\-64\s0 Options\fR
712 \&\fB\-mbig\-endian  \-mlittle\-endian  \-mgnu\-as  \-mgnu\-ld  \-mno\-pic 
713 \&\-mvolatile\-asm\-stop  \-mregister\-names  \-msdata \-mno\-sdata 
714 \&\-mconstant\-gp  \-mauto\-pic  \-mfused\-madd 
715 \&\-minline\-float\-divide\-min\-latency 
716 \&\-minline\-float\-divide\-max\-throughput 
717 \&\-mno\-inline\-float\-divide 
718 \&\-minline\-int\-divide\-min\-latency 
719 \&\-minline\-int\-divide\-max\-throughput  
720 \&\-mno\-inline\-int\-divide 
721 \&\-minline\-sqrt\-min\-latency \-minline\-sqrt\-max\-throughput 
722 \&\-mno\-inline\-sqrt 
723 \&\-mdwarf2\-asm \-mearly\-stop\-bits 
724 \&\-mfixed\-range=\fR\fIregister-range\fR \fB\-mtls\-size=\fR\fItls-size\fR 
725 \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-milp32 \-mlp64 
726 \&\-msched\-br\-data\-spec \-msched\-ar\-data\-spec \-msched\-control\-spec 
727 \&\-msched\-br\-in\-data\-spec \-msched\-ar\-in\-data\-spec \-msched\-in\-control\-spec 
728 \&\-msched\-spec\-ldc \-msched\-spec\-control\-ldc 
729 \&\-msched\-prefer\-non\-data\-spec\-insns \-msched\-prefer\-non\-control\-spec\-insns 
730 \&\-msched\-stop\-bits\-after\-every\-cycle \-msched\-count\-spec\-in\-critical\-path 
731 \&\-msel\-sched\-dont\-check\-control\-spec \-msched\-fp\-mem\-deps\-zero\-cost 
732 \&\-msched\-max\-memory\-insns\-hard\-limit \-msched\-max\-memory\-insns=\fR\fImax-insns\fR
733 .Sp
734 \&\fI\s-1LM32\s0 Options\fR
735 \&\fB\-mbarrel\-shift\-enabled \-mdivide\-enabled \-mmultiply\-enabled 
736 \&\-msign\-extend\-enabled \-muser\-enabled\fR
737 .Sp
738 \&\fIM32R/D Options\fR
739 \&\fB\-m32r2 \-m32rx \-m32r 
740 \&\-mdebug 
741 \&\-malign\-loops \-mno\-align\-loops 
742 \&\-missue\-rate=\fR\fInumber\fR 
743 \&\fB\-mbranch\-cost=\fR\fInumber\fR 
744 \&\fB\-mmodel=\fR\fIcode-size-model-type\fR 
745 \&\fB\-msdata=\fR\fIsdata-type\fR 
746 \&\fB\-mno\-flush\-func \-mflush\-func=\fR\fIname\fR 
747 \&\fB\-mno\-flush\-trap \-mflush\-trap=\fR\fInumber\fR 
748 \&\fB\-G\fR \fInum\fR
749 .Sp
750 \&\fIM32C Options\fR
751 \&\fB\-mcpu=\fR\fIcpu\fR \fB\-msim \-memregs=\fR\fInumber\fR
752 .Sp
753 \&\fIM680x0 Options\fR
754 \&\fB\-march=\fR\fIarch\fR  \fB\-mcpu=\fR\fIcpu\fR  \fB\-mtune=\fR\fItune\fR 
755 \&\fB\-m68000  \-m68020  \-m68020\-40  \-m68020\-60  \-m68030  \-m68040 
756 \&\-m68060  \-mcpu32  \-m5200  \-m5206e  \-m528x  \-m5307  \-m5407 
757 \&\-mcfv4e  \-mbitfield  \-mno\-bitfield  \-mc68000  \-mc68020 
758 \&\-mnobitfield  \-mrtd  \-mno\-rtd  \-mdiv  \-mno\-div  \-mshort 
759 \&\-mno\-short  \-mhard\-float  \-m68881  \-msoft\-float  \-mpcrel 
760 \&\-malign\-int  \-mstrict\-align  \-msep\-data  \-mno\-sep\-data 
761 \&\-mshared\-library\-id=n  \-mid\-shared\-library  \-mno\-id\-shared\-library 
762 \&\-mxgot \-mno\-xgot\fR
763 .Sp
764 \&\fIMCore Options\fR
765 \&\fB\-mhardlit  \-mno\-hardlit  \-mdiv  \-mno\-div  \-mrelax\-immediates 
766 \&\-mno\-relax\-immediates  \-mwide\-bitfields  \-mno\-wide\-bitfields 
767 \&\-m4byte\-functions  \-mno\-4byte\-functions  \-mcallgraph\-data 
768 \&\-mno\-callgraph\-data  \-mslow\-bytes  \-mno\-slow\-bytes  \-mno\-lsim 
769 \&\-mlittle\-endian  \-mbig\-endian  \-m210  \-m340  \-mstack\-increment\fR
770 .Sp
771 \&\fIMeP Options\fR
772 \&\fB\-mabsdiff \-mall\-opts \-maverage \-mbased=\fR\fIn\fR \fB\-mbitops 
773 \&\-mc=\fR\fIn\fR \fB\-mclip \-mconfig=\fR\fIname\fR \fB\-mcop \-mcop32 \-mcop64 \-mivc2 
774 \&\-mdc \-mdiv \-meb \-mel \-mio\-volatile \-ml \-mleadz \-mm \-mminmax 
775 \&\-mmult \-mno\-opts \-mrepeat \-ms \-msatur \-msdram \-msim \-msimnovec \-mtf 
776 \&\-mtiny=\fR\fIn\fR
777 .Sp
778 \&\fIMicroBlaze Options\fR
779 \&\fB\-msoft\-float \-mhard\-float \-msmall\-divides \-mcpu=\fR\fIcpu\fR 
780 \&\fB\-mmemcpy \-mxl\-soft\-mul \-mxl\-soft\-div \-mxl\-barrel\-shift 
781 \&\-mxl\-pattern\-compare \-mxl\-stack\-check \-mxl\-gp\-opt \-mno\-clearbss 
782 \&\-mxl\-multiply\-high \-mxl\-float\-convert \-mxl\-float\-sqrt 
783 \&\-mbig\-endian \-mlittle\-endian \-mxl\-reorder \-mxl\-mode\-\fR\fIapp-model\fR
784 .Sp
785 \&\fI\s-1MIPS\s0 Options\fR
786 \&\fB\-EL  \-EB  \-march=\fR\fIarch\fR  \fB\-mtune=\fR\fIarch\fR 
787 \&\fB\-mips1  \-mips2  \-mips3  \-mips4  \-mips32  \-mips32r2  \-mips32r3  \-mips32r5 
788 \&\-mips32r6  \-mips64  \-mips64r2  \-mips64r3  \-mips64r5  \-mips64r6 
789 \&\-mips16  \-mno\-mips16  \-mflip\-mips16 
790 \&\-minterlink\-compressed \-mno\-interlink\-compressed 
791 \&\-minterlink\-mips16  \-mno\-interlink\-mips16 
792 \&\-mabi=\fR\fIabi\fR  \fB\-mabicalls  \-mno\-abicalls 
793 \&\-mshared  \-mno\-shared  \-mplt  \-mno\-plt  \-mxgot  \-mno\-xgot 
794 \&\-mgp32  \-mgp64  \-mfp32  \-mfpxx  \-mfp64  \-mhard\-float  \-msoft\-float 
795 \&\-mno\-float  \-msingle\-float  \-mdouble\-float 
796 \&\-modd\-spreg \-mno\-odd\-spreg 
797 \&\-mabs=\fR\fImode\fR  \fB\-mnan=\fR\fIencoding\fR 
798 \&\fB\-mdsp  \-mno\-dsp  \-mdspr2  \-mno\-dspr2 
799 \&\-mmcu \-mmno\-mcu 
800 \&\-meva \-mno\-eva 
801 \&\-mvirt \-mno\-virt 
802 \&\-mxpa \-mno\-xpa 
803 \&\-mmicromips \-mno\-micromips 
804 \&\-mfpu=\fR\fIfpu-type\fR 
805 \&\fB\-msmartmips  \-mno\-smartmips 
806 \&\-mpaired\-single  \-mno\-paired\-single  \-mdmx  \-mno\-mdmx 
807 \&\-mips3d  \-mno\-mips3d  \-mmt  \-mno\-mt  \-mllsc  \-mno\-llsc 
808 \&\-mlong64  \-mlong32  \-msym32  \-mno\-sym32 
809 \&\-G\fR\fInum\fR  \fB\-mlocal\-sdata  \-mno\-local\-sdata 
810 \&\-mextern\-sdata  \-mno\-extern\-sdata  \-mgpopt  \-mno\-gopt 
811 \&\-membedded\-data  \-mno\-embedded\-data 
812 \&\-muninit\-const\-in\-rodata  \-mno\-uninit\-const\-in\-rodata 
813 \&\-mcode\-readable=\fR\fIsetting\fR 
814 \&\fB\-msplit\-addresses  \-mno\-split\-addresses 
815 \&\-mexplicit\-relocs  \-mno\-explicit\-relocs 
816 \&\-mcheck\-zero\-division  \-mno\-check\-zero\-division 
817 \&\-mdivide\-traps  \-mdivide\-breaks 
818 \&\-mmemcpy  \-mno\-memcpy  \-mlong\-calls  \-mno\-long\-calls 
819 \&\-mmad \-mno\-mad \-mimadd \-mno\-imadd \-mfused\-madd  \-mno\-fused\-madd  \-nocpp 
820 \&\-mfix\-24k \-mno\-fix\-24k 
821 \&\-mfix\-r4000  \-mno\-fix\-r4000  \-mfix\-r4400  \-mno\-fix\-r4400 
822 \&\-mfix\-r10000 \-mno\-fix\-r10000  \-mfix\-rm7000 \-mno\-fix\-rm7000 
823 \&\-mfix\-vr4120  \-mno\-fix\-vr4120 
824 \&\-mfix\-vr4130  \-mno\-fix\-vr4130  \-mfix\-sb1  \-mno\-fix\-sb1 
825 \&\-mflush\-func=\fR\fIfunc\fR  \fB\-mno\-flush\-func 
826 \&\-mbranch\-cost=\fR\fInum\fR  \fB\-mbranch\-likely  \-mno\-branch\-likely 
827 \&\-mfp\-exceptions \-mno\-fp\-exceptions 
828 \&\-mvr4130\-align \-mno\-vr4130\-align \-msynci \-mno\-synci 
829 \&\-mrelax\-pic\-calls \-mno\-relax\-pic\-calls \-mmcount\-ra\-address\fR
830 .Sp
831 \&\fI\s-1MMIX\s0 Options\fR
832 \&\fB\-mlibfuncs  \-mno\-libfuncs  \-mepsilon  \-mno\-epsilon  \-mabi=gnu 
833 \&\-mabi=mmixware  \-mzero\-extend  \-mknuthdiv  \-mtoplevel\-symbols 
834 \&\-melf  \-mbranch\-predict  \-mno\-branch\-predict  \-mbase\-addresses 
835 \&\-mno\-base\-addresses  \-msingle\-exit  \-mno\-single\-exit\fR
836 .Sp
837 \&\fI\s-1MN10300\s0 Options\fR
838 \&\fB\-mmult\-bug  \-mno\-mult\-bug 
839 \&\-mno\-am33 \-mam33 \-mam33\-2 \-mam34 
840 \&\-mtune=\fR\fIcpu-type\fR 
841 \&\fB\-mreturn\-pointer\-on\-d0 
842 \&\-mno\-crt0  \-mrelax \-mliw \-msetlb\fR
843 .Sp
844 \&\fIMoxie Options\fR
845 \&\fB\-meb \-mel \-mmul.x \-mno\-crt0\fR
846 .Sp
847 \&\fI\s-1MSP430\s0 Options\fR
848 \&\fB\-msim \-masm\-hex \-mmcu= \-mcpu= \-mlarge \-msmall \-mrelax 
849 \&\-mhwmult= \-minrt\fR
850 .Sp
851 \&\fI\s-1NDS32\s0 Options\fR
852 \&\fB\-mbig\-endian \-mlittle\-endian 
853 \&\-mreduced\-regs \-mfull\-regs 
854 \&\-mcmov \-mno\-cmov 
855 \&\-mperf\-ext \-mno\-perf\-ext 
856 \&\-mv3push \-mno\-v3push 
857 \&\-m16bit \-mno\-16bit 
858 \&\-misr\-vector\-size=\fR\fInum\fR 
859 \&\fB\-mcache\-block\-size=\fR\fInum\fR 
860 \&\fB\-march=\fR\fIarch\fR 
861 \&\fB\-mcmodel=\fR\fIcode-model\fR 
862 \&\fB\-mctor\-dtor \-mrelax\fR
863 .Sp
864 \&\fINios \s-1II\s0 Options\fR
865 \&\fB\-G\fR \fInum\fR \fB\-mgpopt=\fR\fIoption\fR \fB\-mgpopt \-mno\-gpopt 
866 \&\-mel \-meb 
867 \&\-mno\-bypass\-cache \-mbypass\-cache 
868 \&\-mno\-cache\-volatile \-mcache\-volatile 
869 \&\-mno\-fast\-sw\-div \-mfast\-sw\-div 
870 \&\-mhw\-mul \-mno\-hw\-mul \-mhw\-mulx \-mno\-hw\-mulx \-mno\-hw\-div \-mhw\-div 
871 \&\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR \fB\-mno\-custom\-\fR\fIinsn\fR 
872 \&\fB\-mcustom\-fpu\-cfg=\fR\fIname\fR 
873 \&\fB\-mhal \-msmallc \-msys\-crt0=\fR\fIname\fR \fB\-msys\-lib=\fR\fIname\fR
874 .Sp
875 \&\fINvidia \s-1PTX\s0 Options\fR
876 \&\fB\-m32 \-m64 \-mmainkernel\fR
877 .Sp
878 \&\fI\s-1PDP\-11\s0 Options\fR
879 \&\fB\-mfpu  \-msoft\-float  \-mac0  \-mno\-ac0  \-m40  \-m45  \-m10 
880 \&\-mbcopy  \-mbcopy\-builtin  \-mint32  \-mno\-int16 
881 \&\-mint16  \-mno\-int32  \-mfloat32  \-mno\-float64 
882 \&\-mfloat64  \-mno\-float32  \-mabshi  \-mno\-abshi 
883 \&\-mbranch\-expensive  \-mbranch\-cheap 
884 \&\-munix\-asm  \-mdec\-asm\fR
885 .Sp
886 \&\fIpicoChip Options\fR
887 \&\fB\-mae=\fR\fIae_type\fR \fB\-mvliw\-lookahead=\fR\fIN\fR 
888 \&\fB\-msymbol\-as\-address \-mno\-inefficient\-warnings\fR
889 .Sp
890 \&\fIPowerPC Options\fR
891 See \s-1RS/6000\s0 and PowerPC Options.
892 .Sp
893 \&\fI\s-1RL78\s0 Options\fR
894 \&\fB\-msim \-mmul=none \-mmul=g13 \-mmul=rl78 
895 \&\-m64bit\-doubles \-m32bit\-doubles\fR
896 .Sp
897 \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
898 \&\fB\-mcpu=\fR\fIcpu-type\fR 
899 \&\fB\-mtune=\fR\fIcpu-type\fR 
900 \&\fB\-mcmodel=\fR\fIcode-model\fR 
901 \&\fB\-mpowerpc64 
902 \&\-maltivec  \-mno\-altivec 
903 \&\-mpowerpc\-gpopt  \-mno\-powerpc\-gpopt 
904 \&\-mpowerpc\-gfxopt  \-mno\-powerpc\-gfxopt 
905 \&\-mmfcrf  \-mno\-mfcrf  \-mpopcntb  \-mno\-popcntb \-mpopcntd \-mno\-popcntd 
906 \&\-mfprnd  \-mno\-fprnd 
907 \&\-mcmpb \-mno\-cmpb \-mmfpgpr \-mno\-mfpgpr \-mhard\-dfp \-mno\-hard\-dfp 
908 \&\-mfull\-toc   \-mminimal\-toc  \-mno\-fp\-in\-toc  \-mno\-sum\-in\-toc 
909 \&\-m64  \-m32  \-mxl\-compat  \-mno\-xl\-compat  \-mpe 
910 \&\-malign\-power  \-malign\-natural 
911 \&\-msoft\-float  \-mhard\-float  \-mmultiple  \-mno\-multiple 
912 \&\-msingle\-float \-mdouble\-float \-msimple\-fpu 
913 \&\-mstring  \-mno\-string  \-mupdate  \-mno\-update 
914 \&\-mavoid\-indexed\-addresses  \-mno\-avoid\-indexed\-addresses 
915 \&\-mfused\-madd  \-mno\-fused\-madd  \-mbit\-align  \-mno\-bit\-align 
916 \&\-mstrict\-align  \-mno\-strict\-align  \-mrelocatable 
917 \&\-mno\-relocatable  \-mrelocatable\-lib  \-mno\-relocatable\-lib 
918 \&\-mtoc  \-mno\-toc  \-mlittle  \-mlittle\-endian  \-mbig  \-mbig\-endian 
919 \&\-mdynamic\-no\-pic  \-maltivec \-mswdiv  \-msingle\-pic\-base 
920 \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR 
921 \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR 
922 \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR 
923 \&\fB\-mcall\-sysv  \-mcall\-netbsd 
924 \&\-maix\-struct\-return  \-msvr4\-struct\-return 
925 \&\-mabi=\fR\fIabi-type\fR \fB\-msecure\-plt \-mbss\-plt 
926 \&\-mblock\-move\-inline\-limit=\fR\fInum\fR 
927 \&\fB\-misel \-mno\-isel 
928 \&\-misel=yes  \-misel=no 
929 \&\-mspe \-mno\-spe 
930 \&\-mspe=yes  \-mspe=no 
931 \&\-mpaired 
932 \&\-mgen\-cell\-microcode \-mwarn\-cell\-microcode 
933 \&\-mvrsave \-mno\-vrsave 
934 \&\-mmulhw \-mno\-mulhw 
935 \&\-mdlmzb \-mno\-dlmzb 
936 \&\-mfloat\-gprs=yes  \-mfloat\-gprs=no \-mfloat\-gprs=single \-mfloat\-gprs=double 
937 \&\-mprototype  \-mno\-prototype 
938 \&\-msim  \-mmvme  \-mads  \-myellowknife  \-memb  \-msdata 
939 \&\-msdata=\fR\fIopt\fR  \fB\-mvxworks  \-G\fR \fInum\fR  \fB\-pthread 
940 \&\-mrecip \-mrecip=\fR\fIopt\fR \fB\-mno\-recip \-mrecip\-precision 
941 \&\-mno\-recip\-precision 
942 \&\-mveclibabi=\fR\fItype\fR \fB\-mfriz \-mno\-friz 
943 \&\-mpointers\-to\-nested\-functions \-mno\-pointers\-to\-nested\-functions 
944 \&\-msave\-toc\-indirect \-mno\-save\-toc\-indirect 
945 \&\-mpower8\-fusion \-mno\-mpower8\-fusion \-mpower8\-vector \-mno\-power8\-vector 
946 \&\-mcrypto \-mno\-crypto \-mdirect\-move \-mno\-direct\-move 
947 \&\-mquad\-memory \-mno\-quad\-memory 
948 \&\-mquad\-memory\-atomic \-mno\-quad\-memory\-atomic 
949 \&\-mcompat\-align\-parm \-mno\-compat\-align\-parm 
950 \&\-mupper\-regs\-df \-mno\-upper\-regs\-df \-mupper\-regs\-sf \-mno\-upper\-regs\-sf 
951 \&\-mupper\-regs \-mno\-upper\-regs\fR
952 .Sp
953 \&\fI\s-1RX\s0 Options\fR
954 \&\fB\-m64bit\-doubles  \-m32bit\-doubles  \-fpu  \-nofpu
955 \&\-mcpu=
956 \&\-mbig\-endian\-data \-mlittle\-endian\-data 
957 \&\-msmall\-data 
958 \&\-msim  \-mno\-sim
959 \&\-mas100\-syntax \-mno\-as100\-syntax
960 \&\-mrelax
961 \&\-mmax\-constant\-size=
962 \&\-mint\-register=
963 \&\-mpid
964 \&\-mno\-warn\-multiple\-fast\-interrupts
965 \&\-msave\-acc\-in\-interrupts\fR
966 .Sp
967 \&\fIS/390 and zSeries Options\fR
968 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
969 \&\fB\-mhard\-float  \-msoft\-float  \-mhard\-dfp \-mno\-hard\-dfp 
970 \&\-mlong\-double\-64 \-mlong\-double\-128 
971 \&\-mbackchain  \-mno\-backchain \-mpacked\-stack  \-mno\-packed\-stack 
972 \&\-msmall\-exec  \-mno\-small\-exec  \-mmvcle \-mno\-mvcle 
973 \&\-m64  \-m31  \-mdebug  \-mno\-debug  \-mesa  \-mzarch 
974 \&\-mtpf\-trace \-mno\-tpf\-trace  \-mfused\-madd  \-mno\-fused\-madd 
975 \&\-mwarn\-framesize  \-mwarn\-dynamicstack  \-mstack\-size \-mstack\-guard 
976 \&\-mhotpatch=\fR\fIhalfwords\fR\fB,\fR\fIhalfwords\fR
977 .Sp
978 \&\fIScore Options\fR
979 \&\fB\-meb \-mel 
980 \&\-mnhwloop 
981 \&\-muls 
982 \&\-mmac 
983 \&\-mscore5 \-mscore5u \-mscore7 \-mscore7d\fR
984 .Sp
985 \&\fI\s-1SH\s0 Options\fR
986 \&\fB\-m1  \-m2  \-m2e 
987 \&\-m2a\-nofpu \-m2a\-single\-only \-m2a\-single \-m2a 
988 \&\-m3  \-m3e 
989 \&\-m4\-nofpu  \-m4\-single\-only  \-m4\-single  \-m4 
990 \&\-m4a\-nofpu \-m4a\-single\-only \-m4a\-single \-m4a \-m4al 
991 \&\-m5\-64media  \-m5\-64media\-nofpu 
992 \&\-m5\-32media  \-m5\-32media\-nofpu 
993 \&\-m5\-compact  \-m5\-compact\-nofpu 
994 \&\-mb  \-ml  \-mdalign  \-mrelax 
995 \&\-mbigtable \-mfmovd \-mhitachi \-mrenesas \-mno\-renesas \-mnomacsave 
996 \&\-mieee \-mno\-ieee \-mbitops  \-misize  \-minline\-ic_invalidate \-mpadstruct 
997 \&\-mspace \-mprefergot  \-musermode \-multcost=\fR\fInumber\fR \fB\-mdiv=\fR\fIstrategy\fR 
998 \&\fB\-mdivsi3_libfunc=\fR\fIname\fR \fB\-mfixed\-range=\fR\fIregister-range\fR 
999 \&\fB\-mindexed\-addressing \-mgettrcost=\fR\fInumber\fR \fB\-mpt\-fixed 
1000 \&\-maccumulate\-outgoing\-args \-minvalid\-symbols 
1001 \&\-matomic\-model=\fR\fIatomic-model\fR 
1002 \&\fB\-mbranch\-cost=\fR\fInum\fR \fB\-mzdcbranch \-mno\-zdcbranch 
1003 \&\-mcbranch\-force\-delay\-slot 
1004 \&\-mfused\-madd \-mno\-fused\-madd \-mfsca \-mno\-fsca \-mfsrra \-mno\-fsrra 
1005 \&\-mpretend\-cmove \-mtas\fR
1006 .Sp
1007 \&\fISolaris 2 Options\fR
1008 \&\fB\-mclear\-hwcap \-mno\-clear\-hwcap \-mimpure\-text  \-mno\-impure\-text 
1009 \&\-pthreads \-pthread\fR
1010 .Sp
1011 \&\fI\s-1SPARC\s0 Options\fR
1012 \&\fB\-mcpu=\fR\fIcpu-type\fR 
1013 \&\fB\-mtune=\fR\fIcpu-type\fR 
1014 \&\fB\-mcmodel=\fR\fIcode-model\fR 
1015 \&\fB\-mmemory\-model=\fR\fImem-model\fR 
1016 \&\fB\-m32  \-m64  \-mapp\-regs  \-mno\-app\-regs 
1017 \&\-mfaster\-structs  \-mno\-faster\-structs  \-mflat  \-mno\-flat 
1018 \&\-mfpu  \-mno\-fpu  \-mhard\-float  \-msoft\-float 
1019 \&\-mhard\-quad\-float  \-msoft\-quad\-float 
1020 \&\-mstack\-bias  \-mno\-stack\-bias 
1021 \&\-munaligned\-doubles  \-mno\-unaligned\-doubles 
1022 \&\-muser\-mode  \-mno\-user\-mode 
1023 \&\-mv8plus  \-mno\-v8plus  \-mvis  \-mno\-vis 
1024 \&\-mvis2  \-mno\-vis2  \-mvis3  \-mno\-vis3 
1025 \&\-mcbcond \-mno\-cbcond 
1026 \&\-mfmaf  \-mno\-fmaf  \-mpopc  \-mno\-popc 
1027 \&\-mfix\-at697f \-mfix\-ut699\fR
1028 .Sp
1029 \&\fI\s-1SPU\s0 Options\fR
1030 \&\fB\-mwarn\-reloc \-merror\-reloc 
1031 \&\-msafe\-dma \-munsafe\-dma 
1032 \&\-mbranch\-hints 
1033 \&\-msmall\-mem \-mlarge\-mem \-mstdmain 
1034 \&\-mfixed\-range=\fR\fIregister-range\fR 
1035 \&\fB\-mea32 \-mea64 
1036 \&\-maddress\-space\-conversion \-mno\-address\-space\-conversion 
1037 \&\-mcache\-size=\fR\fIcache-size\fR 
1038 \&\fB\-matomic\-updates \-mno\-atomic\-updates\fR
1039 .Sp
1040 \&\fISystem V Options\fR
1041 \&\fB\-Qy  \-Qn  \-YP,\fR\fIpaths\fR  \fB\-Ym,\fR\fIdir\fR
1042 .Sp
1043 \&\fITILE-Gx Options\fR
1044 \&\fB\-mcpu=CPU \-m32 \-m64 \-mbig\-endian \-mlittle\-endian 
1045 \&\-mcmodel=\fR\fIcode-model\fR
1046 .Sp
1047 \&\fITILEPro Options\fR
1048 \&\fB\-mcpu=\fR\fIcpu\fR \fB\-m32\fR
1049 .Sp
1050 \&\fIV850 Options\fR
1051 \&\fB\-mlong\-calls  \-mno\-long\-calls  \-mep  \-mno\-ep 
1052 \&\-mprolog\-function  \-mno\-prolog\-function  \-mspace 
1053 \&\-mtda=\fR\fIn\fR  \fB\-msda=\fR\fIn\fR  \fB\-mzda=\fR\fIn\fR 
1054 \&\fB\-mapp\-regs  \-mno\-app\-regs 
1055 \&\-mdisable\-callt  \-mno\-disable\-callt 
1056 \&\-mv850e2v3 \-mv850e2 \-mv850e1 \-mv850es 
1057 \&\-mv850e \-mv850 \-mv850e3v5 
1058 \&\-mloop 
1059 \&\-mrelax 
1060 \&\-mlong\-jumps 
1061 \&\-msoft\-float 
1062 \&\-mhard\-float 
1063 \&\-mgcc\-abi 
1064 \&\-mrh850\-abi 
1065 \&\-mbig\-switch\fR
1066 .Sp
1067 \&\fI\s-1VAX\s0 Options\fR
1068 \&\fB\-mg  \-mgnu  \-munix\fR
1069 .Sp
1070 \&\fIVisium Options\fR
1071 \&\fB\-mdebug \-msim \-mfpu \-mno\-fpu \-mhard\-float \-msoft\-float 
1072 \&\-mcpu=\fR\fIcpu-type\fR \fB\-mtune=\fR\fIcpu-type\fR \fB\-msv\-mode \-muser\-mode\fR
1073 .Sp
1074 \&\fI\s-1VMS\s0 Options\fR
1075 \&\fB\-mvms\-return\-codes \-mdebug\-main=\fR\fIprefix\fR \fB\-mmalloc64 
1076 \&\-mpointer\-size=\fR\fIsize\fR
1077 .Sp
1078 \&\fIVxWorks Options\fR
1079 \&\fB\-mrtp  \-non\-static  \-Bstatic  \-Bdynamic 
1080 \&\-Xbind\-lazy  \-Xbind\-now\fR
1081 .Sp
1082 \&\fIx86 Options\fR
1083 \&\fB\-mtune=\fR\fIcpu-type\fR  \fB\-march=\fR\fIcpu-type\fR 
1084 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR \fB\-mdump\-tune\-features \-mno\-default 
1085 \&\-mfpmath=\fR\fIunit\fR 
1086 \&\fB\-masm=\fR\fIdialect\fR  \fB\-mno\-fancy\-math\-387 
1087 \&\-mno\-fp\-ret\-in\-387  \-msoft\-float 
1088 \&\-mno\-wide\-multiply  \-mrtd  \-malign\-double 
1089 \&\-mpreferred\-stack\-boundary=\fR\fInum\fR 
1090 \&\fB\-mincoming\-stack\-boundary=\fR\fInum\fR 
1091 \&\fB\-mcld \-mcx16 \-msahf \-mmovbe \-mcrc32 
1092 \&\-mrecip \-mrecip=\fR\fIopt\fR 
1093 \&\fB\-mvzeroupper \-mprefer\-avx128 
1094 \&\-mmmx  \-msse  \-msse2 \-msse3 \-mssse3 \-msse4.1 \-msse4.2 \-msse4 \-mavx 
1095 \&\-mavx2 \-mavx512f \-mavx512pf \-mavx512er \-mavx512cd \-msha 
1096 \&\-maes \-mpclmul \-mfsgsbase \-mrdrnd \-mf16c \-mfma \-mprefetchwt1 
1097 \&\-mclflushopt \-mxsavec \-mxsaves 
1098 \&\-msse4a \-m3dnow \-mpopcnt \-mabm \-mbmi \-mtbm \-mfma4 \-mxop \-mlzcnt 
1099 \&\-mbmi2 \-mfxsr \-mxsave \-mxsaveopt \-mrtm \-mlwp \-mmpx \-mmwaitx \-mthreads 
1100 \&\-mno\-align\-stringops  \-minline\-all\-stringops 
1101 \&\-minline\-stringops\-dynamically \-mstringop\-strategy=\fR\fIalg\fR 
1102 \&\fB\-mmemcpy\-strategy=\fR\fIstrategy\fR \fB\-mmemset\-strategy=\fR\fIstrategy\fR 
1103 \&\fB\-mpush\-args  \-maccumulate\-outgoing\-args  \-m128bit\-long\-double 
1104 \&\-m96bit\-long\-double \-mlong\-double\-64 \-mlong\-double\-80 \-mlong\-double\-128 
1105 \&\-mregparm=\fR\fInum\fR  \fB\-msseregparm 
1106 \&\-mveclibabi=\fR\fItype\fR \fB\-mvect8\-ret\-in\-mem 
1107 \&\-mpc32 \-mpc64 \-mpc80 \-mstackrealign 
1108 \&\-momit\-leaf\-frame\-pointer  \-mno\-red\-zone \-mno\-tls\-direct\-seg\-refs 
1109 \&\-mcmodel=\fR\fIcode-model\fR \fB\-mabi=\fR\fIname\fR \fB\-maddress\-mode=\fR\fImode\fR 
1110 \&\fB\-m32 \-m64 \-mx32 \-m16 \-mlarge\-data\-threshold=\fR\fInum\fR 
1111 \&\fB\-msse2avx \-mfentry \-mrecord\-mcount \-mnop\-mcount \-m8bit\-idiv 
1112 \&\-mavx256\-split\-unaligned\-load \-mavx256\-split\-unaligned\-store 
1113 \&\-malign\-data=\fR\fItype\fR \fB\-mstack\-protector\-guard=\fR\fIguard\fR
1114 .Sp
1115 \&\fIx86 Windows Options\fR
1116 \&\fB\-mconsole \-mcygwin \-mno\-cygwin \-mdll 
1117 \&\-mnop\-fun\-dllimport \-mthread 
1118 \&\-municode \-mwin32 \-mwindows \-fno\-set\-stack\-executable\fR
1119 .Sp
1120 \&\fIXstormy16 Options\fR
1121 \&\fB\-msim\fR
1122 .Sp
1123 \&\fIXtensa Options\fR
1124 \&\fB\-mconst16 \-mno\-const16 
1125 \&\-mfused\-madd  \-mno\-fused\-madd 
1126 \&\-mforce\-no\-pic 
1127 \&\-mserialize\-volatile  \-mno\-serialize\-volatile 
1128 \&\-mtext\-section\-literals  \-mno\-text\-section\-literals 
1129 \&\-mtarget\-align  \-mno\-target\-align 
1130 \&\-mlongcalls  \-mno\-longcalls\fR
1131 .Sp
1132 \&\fIzSeries Options\fR
1133 See S/390 and zSeries Options.
1134 .IP "\fICode Generation Options\fR" 4
1135 .IX Item "Code Generation Options"
1136 \&\fB\-fcall\-saved\-\fR\fIreg\fR  \fB\-fcall\-used\-\fR\fIreg\fR 
1137 \&\fB\-ffixed\-\fR\fIreg\fR  \fB\-fexceptions 
1138 \&\-fnon\-call\-exceptions  \-fdelete\-dead\-exceptions  \-funwind\-tables 
1139 \&\-fasynchronous\-unwind\-tables 
1140 \&\-fno\-gnu\-unique 
1141 \&\-finhibit\-size\-directive  \-finstrument\-functions 
1142 \&\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,... 
1143 \&\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,... 
1144 \&\-fno\-common  \-fno\-ident 
1145 \&\-fpcc\-struct\-return  \-fpic  \-fPIC \-fpie \-fPIE 
1146 \&\-fno\-jump\-tables 
1147 \&\-frecord\-gcc\-switches 
1148 \&\-freg\-struct\-return  \-fshort\-enums 
1149 \&\-fshort\-double  \-fshort\-wchar 
1150 \&\-fverbose\-asm  \-fpack\-struct[=\fR\fIn\fR\fB]  \-fstack\-check 
1151 \&\-fstack\-limit\-register=\fR\fIreg\fR  \fB\-fstack\-limit\-symbol=\fR\fIsym\fR 
1152 \&\fB\-fno\-stack\-limit \-fsplit\-stack 
1153 \&\-fleading\-underscore  \-ftls\-model=\fR\fImodel\fR 
1154 \&\fB\-fstack\-reuse=\fR\fIreuse_level\fR 
1155 \&\fB\-ftrapv  \-fwrapv  \-fbounds\-check 
1156 \&\-fvisibility=\fR[\fBdefault\fR|\fBinternal\fR|\fBhidden\fR|\fBprotected\fR] 
1157 \&\fB\-fstrict\-volatile\-bitfields \-fsync\-libcalls\fR
1158 .Sh "Options Controlling the Kind of Output"
1159 .IX Subsection "Options Controlling the Kind of Output"
1160 Compilation can involve up to four stages: preprocessing, compilation
1161 proper, assembly and linking, always in that order.  \s-1GCC\s0 is capable of
1162 preprocessing and compiling several files either into several
1163 assembler input files, or into one assembler input file; then each
1164 assembler input file produces an object file, and linking combines all
1165 the object files (those newly compiled, and those specified as input)
1166 into an executable file.
1167 .PP
1168 For any given input file, the file name suffix determines what kind of
1169 compilation is done:
1170 .IP "\fIfile\fR\fB.c\fR" 4
1171 .IX Item "file.c"
1172 C source code that must be preprocessed.
1173 .IP "\fIfile\fR\fB.i\fR" 4
1174 .IX Item "file.i"
1175 C source code that should not be preprocessed.
1176 .IP "\fIfile\fR\fB.ii\fR" 4
1177 .IX Item "file.ii"
1178 \&\*(C+ source code that should not be preprocessed.
1179 .IP "\fIfile\fR\fB.m\fR" 4
1180 .IX Item "file.m"
1181 Objective-C source code.  Note that you must link with the \fIlibobjc\fR
1182 library to make an Objective-C program work.
1183 .IP "\fIfile\fR\fB.mi\fR" 4
1184 .IX Item "file.mi"
1185 Objective-C source code that should not be preprocessed.
1186 .IP "\fIfile\fR\fB.mm\fR" 4
1187 .IX Item "file.mm"
1188 .PD 0
1189 .IP "\fIfile\fR\fB.M\fR" 4
1190 .IX Item "file.M"
1191 .PD
1192 Objective\-\*(C+ source code.  Note that you must link with the \fIlibobjc\fR
1193 library to make an Objective\-\*(C+ program work.  Note that \fB.M\fR refers
1194 to a literal capital M.
1195 .IP "\fIfile\fR\fB.mii\fR" 4
1196 .IX Item "file.mii"
1197 Objective\-\*(C+ source code that should not be preprocessed.
1198 .IP "\fIfile\fR\fB.h\fR" 4
1199 .IX Item "file.h"
1200 C, \*(C+, Objective-C or Objective\-\*(C+ header file to be turned into a
1201 precompiled header (default), or C, \*(C+ header file to be turned into an
1202 Ada spec (via the \fB\-fdump\-ada\-spec\fR switch).
1203 .IP "\fIfile\fR\fB.cc\fR" 4
1204 .IX Item "file.cc"
1205 .PD 0
1206 .IP "\fIfile\fR\fB.cp\fR" 4
1207 .IX Item "file.cp"
1208 .IP "\fIfile\fR\fB.cxx\fR" 4
1209 .IX Item "file.cxx"
1210 .IP "\fIfile\fR\fB.cpp\fR" 4
1211 .IX Item "file.cpp"
1212 .IP "\fIfile\fR\fB.CPP\fR" 4
1213 .IX Item "file.CPP"
1214 .IP "\fIfile\fR\fB.c++\fR" 4
1215 .IX Item "file.c++"
1216 .IP "\fIfile\fR\fB.C\fR" 4
1217 .IX Item "file.C"
1218 .PD
1219 \&\*(C+ source code that must be preprocessed.  Note that in \fB.cxx\fR,
1220 the last two letters must both be literally \fBx\fR.  Likewise,
1221 \&\fB.C\fR refers to a literal capital C.
1222 .IP "\fIfile\fR\fB.mm\fR" 4
1223 .IX Item "file.mm"
1224 .PD 0
1225 .IP "\fIfile\fR\fB.M\fR" 4
1226 .IX Item "file.M"
1227 .PD
1228 Objective\-\*(C+ source code that must be preprocessed.
1229 .IP "\fIfile\fR\fB.mii\fR" 4
1230 .IX Item "file.mii"
1231 Objective\-\*(C+ source code that should not be preprocessed.
1232 .IP "\fIfile\fR\fB.hh\fR" 4
1233 .IX Item "file.hh"
1234 .PD 0
1235 .IP "\fIfile\fR\fB.H\fR" 4
1236 .IX Item "file.H"
1237 .IP "\fIfile\fR\fB.hp\fR" 4
1238 .IX Item "file.hp"
1239 .IP "\fIfile\fR\fB.hxx\fR" 4
1240 .IX Item "file.hxx"
1241 .IP "\fIfile\fR\fB.hpp\fR" 4
1242 .IX Item "file.hpp"
1243 .IP "\fIfile\fR\fB.HPP\fR" 4
1244 .IX Item "file.HPP"
1245 .IP "\fIfile\fR\fB.h++\fR" 4
1246 .IX Item "file.h++"
1247 .IP "\fIfile\fR\fB.tcc\fR" 4
1248 .IX Item "file.tcc"
1249 .PD
1250 \&\*(C+ header file to be turned into a precompiled header or Ada spec.
1251 .IP "\fIfile\fR\fB.f\fR" 4
1252 .IX Item "file.f"
1253 .PD 0
1254 .IP "\fIfile\fR\fB.for\fR" 4
1255 .IX Item "file.for"
1256 .IP "\fIfile\fR\fB.ftn\fR" 4
1257 .IX Item "file.ftn"
1258 .PD
1259 Fixed form Fortran source code that should not be preprocessed.
1260 .IP "\fIfile\fR\fB.F\fR" 4
1261 .IX Item "file.F"
1262 .PD 0
1263 .IP "\fIfile\fR\fB.FOR\fR" 4
1264 .IX Item "file.FOR"
1265 .IP "\fIfile\fR\fB.fpp\fR" 4
1266 .IX Item "file.fpp"
1267 .IP "\fIfile\fR\fB.FPP\fR" 4
1268 .IX Item "file.FPP"
1269 .IP "\fIfile\fR\fB.FTN\fR" 4
1270 .IX Item "file.FTN"
1271 .PD
1272 Fixed form Fortran source code that must be preprocessed (with the traditional
1273 preprocessor).
1274 .IP "\fIfile\fR\fB.f90\fR" 4
1275 .IX Item "file.f90"
1276 .PD 0
1277 .IP "\fIfile\fR\fB.f95\fR" 4
1278 .IX Item "file.f95"
1279 .IP "\fIfile\fR\fB.f03\fR" 4
1280 .IX Item "file.f03"
1281 .IP "\fIfile\fR\fB.f08\fR" 4
1282 .IX Item "file.f08"
1283 .PD
1284 Free form Fortran source code that should not be preprocessed.
1285 .IP "\fIfile\fR\fB.F90\fR" 4
1286 .IX Item "file.F90"
1287 .PD 0
1288 .IP "\fIfile\fR\fB.F95\fR" 4
1289 .IX Item "file.F95"
1290 .IP "\fIfile\fR\fB.F03\fR" 4
1291 .IX Item "file.F03"
1292 .IP "\fIfile\fR\fB.F08\fR" 4
1293 .IX Item "file.F08"
1294 .PD
1295 Free form Fortran source code that must be preprocessed (with the
1296 traditional preprocessor).
1297 .IP "\fIfile\fR\fB.go\fR" 4
1298 .IX Item "file.go"
1299 Go source code.
1300 .IP "\fIfile\fR\fB.ads\fR" 4
1301 .IX Item "file.ads"
1302 Ada source code file that contains a library unit declaration (a
1303 declaration of a package, subprogram, or generic, or a generic
1304 instantiation), or a library unit renaming declaration (a package,
1305 generic, or subprogram renaming declaration).  Such files are also
1306 called \fIspecs\fR.
1307 .IP "\fIfile\fR\fB.adb\fR" 4
1308 .IX Item "file.adb"
1309 Ada source code file containing a library unit body (a subprogram or
1310 package body).  Such files are also called \fIbodies\fR.
1311 .IP "\fIfile\fR\fB.s\fR" 4
1312 .IX Item "file.s"
1313 Assembler code.
1314 .IP "\fIfile\fR\fB.S\fR" 4
1315 .IX Item "file.S"
1316 .PD 0
1317 .IP "\fIfile\fR\fB.sx\fR" 4
1318 .IX Item "file.sx"
1319 .PD
1320 Assembler code that must be preprocessed.
1321 .IP "\fIother\fR" 4
1322 .IX Item "other"
1323 An object file to be fed straight into linking.
1324 Any file name with no recognized suffix is treated this way.
1325 .PP
1326 You can specify the input language explicitly with the \fB\-x\fR option:
1327 .IP "\fB\-x\fR \fIlanguage\fR" 4
1328 .IX Item "-x language"
1329 Specify explicitly the \fIlanguage\fR for the following input files
1330 (rather than letting the compiler choose a default based on the file
1331 name suffix).  This option applies to all following input files until
1332 the next \fB\-x\fR option.  Possible values for \fIlanguage\fR are:
1333 .Sp
1334 .Vb 9
1335 \&        c  c\-header  cpp\-output
1336 \&        c++  c++\-header  c++\-cpp\-output
1337 \&        objective\-c  objective\-c\-header  objective\-c\-cpp\-output
1338 \&        objective\-c++ objective\-c++\-header objective\-c++\-cpp\-output
1339 \&        assembler  assembler\-with\-cpp
1340 \&        ada
1341 \&        f77  f77\-cpp\-input f95  f95\-cpp\-input
1342 \&        go
1343 \&        java
1344 .Ve
1345 .IP "\fB\-x none\fR" 4
1346 .IX Item "-x none"
1347 Turn off any specification of a language, so that subsequent files are
1348 handled according to their file name suffixes (as they are if \fB\-x\fR
1349 has not been used at all).
1350 .IP "\fB\-pass\-exit\-codes\fR" 4
1351 .IX Item "-pass-exit-codes"
1352 Normally the \fBgcc\fR program exits with the code of 1 if any
1353 phase of the compiler returns a non-success return code.  If you specify
1354 \&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program instead returns with
1355 the numerically highest error produced by any phase returning an error
1356 indication.  The C, \*(C+, and Fortran front ends return 4 if an internal
1357 compiler error is encountered.
1358 .PP
1359 If you only want some of the stages of compilation, you can use
1360 \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
1361 one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
1362 \&\fBgcc\fR is to stop.  Note that some combinations (for example,
1363 \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
1364 .IP "\fB\-c\fR" 4
1365 .IX Item "-c"
1366 Compile or assemble the source files, but do not link.  The linking
1367 stage simply is not done.  The ultimate output is in the form of an
1368 object file for each source file.
1369 .Sp
1370 By default, the object file name for a source file is made by replacing
1371 the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
1372 .Sp
1373 Unrecognized input files, not requiring compilation or assembly, are
1374 ignored.
1375 .IP "\fB\-S\fR" 4
1376 .IX Item "-S"
1377 Stop after the stage of compilation proper; do not assemble.  The output
1378 is in the form of an assembler code file for each non-assembler input
1379 file specified.
1380 .Sp
1381 By default, the assembler file name for a source file is made by
1382 replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
1383 .Sp
1384 Input files that don't require compilation are ignored.
1385 .IP "\fB\-E\fR" 4
1386 .IX Item "-E"
1387 Stop after the preprocessing stage; do not run the compiler proper.  The
1388 output is in the form of preprocessed source code, which is sent to the
1389 standard output.
1390 .Sp
1391 Input files that don't require preprocessing are ignored.
1392 .IP "\fB\-o\fR \fIfile\fR" 4
1393 .IX Item "-o file"
1394 Place output in file \fIfile\fR.  This applies to whatever
1395 sort of output is being produced, whether it be an executable file,
1396 an object file, an assembler file or preprocessed C code.
1397 .Sp
1398 If \fB\-o\fR is not specified, the default is to put an executable
1399 file in \fIa.out\fR, the object file for
1400 \&\fI\fIsource\fI.\fIsuffix\fI\fR in \fI\fIsource\fI.o\fR, its
1401 assembler file in \fI\fIsource\fI.s\fR, a precompiled header file in
1402 \&\fI\fIsource\fI.\fIsuffix\fI.gch\fR, and all preprocessed C source on
1403 standard output.
1404 .IP "\fB\-v\fR" 4
1405 .IX Item "-v"
1406 Print (on standard error output) the commands executed to run the stages
1407 of compilation.  Also print the version number of the compiler driver
1408 program and of the preprocessor and the compiler proper.
1409 .IP "\fB\-###\fR" 4
1410 .IX Item "-###"
1411 Like \fB\-v\fR except the commands are not executed and arguments
1412 are quoted unless they contain only alphanumeric characters or \f(CW\*(C`./\-_\*(C'\fR.
1413 This is useful for shell scripts to capture the driver-generated command lines.
1414 .IP "\fB\-pipe\fR" 4
1415 .IX Item "-pipe"
1416 Use pipes rather than temporary files for communication between the
1417 various stages of compilation.  This fails to work on some systems where
1418 the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
1419 no trouble.
1420 .IP "\fB\-\-help\fR" 4
1421 .IX Item "--help"
1422 Print (on the standard output) a description of the command-line options
1423 understood by \fBgcc\fR.  If the \fB\-v\fR option is also specified
1424 then \fB\-\-help\fR is also passed on to the various processes
1425 invoked by \fBgcc\fR, so that they can display the command-line options
1426 they accept.  If the \fB\-Wextra\fR option has also been specified
1427 (prior to the \fB\-\-help\fR option), then command-line options that
1428 have no documentation associated with them are also displayed.
1429 .IP "\fB\-\-target\-help\fR" 4
1430 .IX Item "--target-help"
1431 Print (on the standard output) a description of target-specific command-line
1432 options for each tool.  For some targets extra target-specific
1433 information may also be printed.
1434 .IP "\fB\-\-help={\fR\fIclass\fR|[\fB^\fR]\fIqualifier\fR\fB}\fR[\fB,...\fR]" 4
1435 .IX Item "--help={class|[^]qualifier}[,...]"
1436 Print (on the standard output) a description of the command-line
1437 options understood by the compiler that fit into all specified classes
1438 and qualifiers.  These are the supported classes:
1439 .RS 4
1440 .IP "\fBoptimizers\fR" 4
1441 .IX Item "optimizers"
1442 Display all of the optimization options supported by the
1443 compiler.
1444 .IP "\fBwarnings\fR" 4
1445 .IX Item "warnings"
1446 Display all of the options controlling warning messages
1447 produced by the compiler.
1448 .IP "\fBtarget\fR" 4
1449 .IX Item "target"
1450 Display target-specific options.  Unlike the
1451 \&\fB\-\-target\-help\fR option however, target-specific options of the
1452 linker and assembler are not displayed.  This is because those
1453 tools do not currently support the extended \fB\-\-help=\fR syntax.
1454 .IP "\fBparams\fR" 4
1455 .IX Item "params"
1456 Display the values recognized by the \fB\-\-param\fR
1457 option.
1458 .IP "\fIlanguage\fR" 4
1459 .IX Item "language"
1460 Display the options supported for \fIlanguage\fR, where
1461 \&\fIlanguage\fR is the name of one of the languages supported in this
1462 version of \s-1GCC\s0.
1463 .IP "\fBcommon\fR" 4
1464 .IX Item "common"
1465 Display the options that are common to all languages.
1466 .RE
1467 .RS 4
1468 .Sp
1469 These are the supported qualifiers:
1470 .IP "\fBundocumented\fR" 4
1471 .IX Item "undocumented"
1472 Display only those options that are undocumented.
1473 .IP "\fBjoined\fR" 4
1474 .IX Item "joined"
1475 Display options taking an argument that appears after an equal
1476 sign in the same continuous piece of text, such as:
1477 \&\fB\-\-help=target\fR.
1478 .IP "\fBseparate\fR" 4
1479 .IX Item "separate"
1480 Display options taking an argument that appears as a separate word
1481 following the original option, such as: \fB\-o output-file\fR.
1482 .RE
1483 .RS 4
1484 .Sp
1485 Thus for example to display all the undocumented target-specific
1486 switches supported by the compiler, use:
1487 .Sp
1488 .Vb 1
1489 \&        \-\-help=target,undocumented
1490 .Ve
1491 .Sp
1492 The sense of a qualifier can be inverted by prefixing it with the
1493 \&\fB^\fR character, so for example to display all binary warning
1494 options (i.e., ones that are either on or off and that do not take an
1495 argument) that have a description, use:
1496 .Sp
1497 .Vb 1
1498 \&        \-\-help=warnings,^joined,^undocumented
1499 .Ve
1500 .Sp
1501 The argument to \fB\-\-help=\fR should not consist solely of inverted
1502 qualifiers.
1503 .Sp
1504 Combining several classes is possible, although this usually
1505 restricts the output so much that there is nothing to display.  One
1506 case where it does work, however, is when one of the classes is
1507 \&\fItarget\fR.  For example, to display all the target-specific
1508 optimization options, use:
1509 .Sp
1510 .Vb 1
1511 \&        \-\-help=target,optimizers
1512 .Ve
1513 .Sp
1514 The \fB\-\-help=\fR option can be repeated on the command line.  Each
1515 successive use displays its requested class of options, skipping
1516 those that have already been displayed.
1517 .Sp
1518 If the \fB\-Q\fR option appears on the command line before the
1519 \&\fB\-\-help=\fR option, then the descriptive text displayed by
1520 \&\fB\-\-help=\fR is changed.  Instead of describing the displayed
1521 options, an indication is given as to whether the option is enabled,
1522 disabled or set to a specific value (assuming that the compiler
1523 knows this at the point where the \fB\-\-help=\fR option is used).
1524 .Sp
1525 Here is a truncated example from the \s-1ARM\s0 port of \fBgcc\fR:
1526 .Sp
1527 .Vb 5
1528 \&          % gcc \-Q \-mabi=2 \-\-help=target \-c
1529 \&          The following options are target specific:
1530 \&          \-mabi=                                2
1531 \&          \-mabort\-on\-noreturn                   [disabled]
1532 \&          \-mapcs                                [disabled]
1533 .Ve
1534 .Sp
1535 The output is sensitive to the effects of previous command-line
1536 options, so for example it is possible to find out which optimizations
1537 are enabled at \fB\-O2\fR by using:
1538 .Sp
1539 .Vb 1
1540 \&        \-Q \-O2 \-\-help=optimizers
1541 .Ve
1542 .Sp
1543 Alternatively you can discover which binary optimizations are enabled
1544 by \fB\-O3\fR by using:
1545 .Sp
1546 .Vb 3
1547 \&        gcc \-c \-Q \-O3 \-\-help=optimizers > /tmp/O3\-opts
1548 \&        gcc \-c \-Q \-O2 \-\-help=optimizers > /tmp/O2\-opts
1549 \&        diff /tmp/O2\-opts /tmp/O3\-opts | grep enabled
1550 .Ve
1551 .RE
1552 .IP "\fB\-no\-canonical\-prefixes\fR" 4
1553 .IX Item "-no-canonical-prefixes"
1554 Do not expand any symbolic links, resolve references to \fB/../\fR
1555 or \fB/./\fR, or make the path absolute when generating a relative
1556 prefix.
1557 .IP "\fB\-\-version\fR" 4
1558 .IX Item "--version"
1559 Display the version number and copyrights of the invoked \s-1GCC\s0.
1560 .IP "\fB\-wrapper\fR" 4
1561 .IX Item "-wrapper"
1562 Invoke all subcommands under a wrapper program.  The name of the
1563 wrapper program and its parameters are passed as a comma separated
1564 list.
1565 .Sp
1566 .Vb 1
1567 \&        gcc \-c t.c \-wrapper gdb,\-\-args
1568 .Ve
1569 .Sp
1570 This invokes all subprograms of \fBgcc\fR under
1571 \&\fBgdb \-\-args\fR, thus the invocation of \fBcc1\fR is
1572 \&\fBgdb \-\-args cc1 ...\fR.
1573 .IP "\fB\-fplugin=\fR\fIname\fR\fB.so\fR" 4
1574 .IX Item "-fplugin=name.so"
1575 Load the plugin code in file \fIname\fR.so, assumed to be a
1576 shared object to be dlopen'd by the compiler.  The base name of
1577 the shared object file is used to identify the plugin for the
1578 purposes of argument parsing (See
1579 \&\fB\-fplugin\-arg\-\fR\fIname\fR\fB\-\fR\fIkey\fR\fB=\fR\fIvalue\fR below).
1580 Each plugin should define the callback functions specified in the
1581 Plugins \s-1API\s0.
1582 .IP "\fB\-fplugin\-arg\-\fR\fIname\fR\fB\-\fR\fIkey\fR\fB=\fR\fIvalue\fR" 4
1583 .IX Item "-fplugin-arg-name-key=value"
1584 Define an argument called \fIkey\fR with a value of \fIvalue\fR
1585 for the plugin called \fIname\fR.
1586 .IP "\fB\-fdump\-ada\-spec\fR[\fB\-slim\fR]" 4
1587 .IX Item "-fdump-ada-spec[-slim]"
1588 For C and \*(C+ source and include files, generate corresponding Ada specs.
1589 .IP "\fB\-fada\-spec\-parent=\fR\fIunit\fR" 4
1590 .IX Item "-fada-spec-parent=unit"
1591 In conjunction with \fB\-fdump\-ada\-spec\fR[\fB\-slim\fR] above, generate
1592 Ada specs as child units of parent \fIunit\fR.
1593 .IP "\fB\-fdump\-go\-spec=\fR\fIfile\fR" 4
1594 .IX Item "-fdump-go-spec=file"
1595 For input files in any language, generate corresponding Go
1596 declarations in \fIfile\fR.  This generates Go \f(CW\*(C`const\*(C'\fR,
1597 \&\f(CW\*(C`type\*(C'\fR, \f(CW\*(C`var\*(C'\fR, and \f(CW\*(C`func\*(C'\fR declarations which may be a
1598 useful way to start writing a Go interface to code written in some
1599 other language.
1600 .IP "\fB@\fR\fIfile\fR" 4
1601 .IX Item "@file"
1602 Read command-line options from \fIfile\fR.  The options read are
1603 inserted in place of the original @\fIfile\fR option.  If \fIfile\fR
1604 does not exist, or cannot be read, then the option will be treated
1605 literally, and not removed.
1606 .Sp
1607 Options in \fIfile\fR are separated by whitespace.  A whitespace
1608 character may be included in an option by surrounding the entire
1609 option in either single or double quotes.  Any character (including a
1610 backslash) may be included by prefixing the character to be included
1611 with a backslash.  The \fIfile\fR may itself contain additional
1612 @\fIfile\fR options; any such options will be processed recursively.
1613 .Sh "Compiling \*(C+ Programs"
1614 .IX Subsection "Compiling  Programs"
1615 \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
1616 \&\fB.cc\fR, \fB.cpp\fR, \fB.CPP\fR, \fB.c++\fR, \fB.cp\fR, or
1617 \&\fB.cxx\fR; \*(C+ header files often use \fB.hh\fR, \fB.hpp\fR,
1618 \&\fB.H\fR, or (for shared template code) \fB.tcc\fR; and
1619 preprocessed \*(C+ files use the suffix \fB.ii\fR.  \s-1GCC\s0 recognizes
1620 files with these names and compiles them as \*(C+ programs even if you
1621 call the compiler the same way as for compiling C programs (usually
1622 with the name \fBgcc\fR).
1623 .PP
1624 However, the use of \fBgcc\fR does not add the \*(C+ library.
1625 \&\fBg++\fR is a program that calls \s-1GCC\s0 and automatically specifies linking
1626 against the \*(C+ library.  It treats \fB.c\fR,
1627 \&\fB.h\fR and \fB.i\fR files as \*(C+ source files instead of C source
1628 files unless \fB\-x\fR is used.  This program is also useful when
1629 precompiling a C header file with a \fB.h\fR extension for use in \*(C+
1630 compilations.  On many systems, \fBg++\fR is also installed with
1631 the name \fBc++\fR.
1632 .PP
1633 When you compile \*(C+ programs, you may specify many of the same
1634 command-line options that you use for compiling programs in any
1635 language; or command-line options meaningful for C and related
1636 languages; or options that are meaningful only for \*(C+ programs.
1637 .Sh "Options Controlling C Dialect"
1638 .IX Subsection "Options Controlling C Dialect"
1639 The following options control the dialect of C (or languages derived
1640 from C, such as \*(C+, Objective-C and Objective\-\*(C+) that the compiler
1641 accepts:
1642 .IP "\fB\-ansi\fR" 4
1643 .IX Item "-ansi"
1644 In C mode, this is equivalent to \fB\-std=c90\fR. In \*(C+ mode, it is
1645 equivalent to \fB\-std=c++98\fR.
1646 .Sp
1647 This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO\s0
1648 C90 (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
1649 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
1650 predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
1651 type of system you are using.  It also enables the undesirable and
1652 rarely used \s-1ISO\s0 trigraph feature.  For the C compiler,
1653 it disables recognition of \*(C+ style \fB//\fR comments as well as
1654 the \f(CW\*(C`inline\*(C'\fR keyword.
1655 .Sp
1656 The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
1657 \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
1658 \&\fB\-ansi\fR.  You would not want to use them in an \s-1ISO\s0 C program, of
1659 course, but it is useful to put them in header files that might be included
1660 in compilations done with \fB\-ansi\fR.  Alternate predefined macros
1661 such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
1662 without \fB\-ansi\fR.
1663 .Sp
1664 The \fB\-ansi\fR option does not cause non-ISO programs to be
1665 rejected gratuitously.  For that, \fB\-Wpedantic\fR is required in
1666 addition to \fB\-ansi\fR.
1667 .Sp
1668 The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
1669 option is used.  Some header files may notice this macro and refrain
1670 from declaring certain functions or defining certain macros that the
1671 \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
1672 programs that might use these names for other things.
1673 .Sp
1674 Functions that are normally built in but do not have semantics
1675 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
1676 functions when \fB\-ansi\fR is used.
1677 .IP "\fB\-std=\fR" 4
1678 .IX Item "-std="
1679 Determine the language standard.   This option
1680 is currently only supported when compiling C or \*(C+.
1681 .Sp
1682 The compiler can accept several base standards, such as \fBc90\fR or
1683 \&\fBc++98\fR, and \s-1GNU\s0 dialects of those standards, such as
1684 \&\fBgnu90\fR or \fBgnu++98\fR.  When a base standard is specified, the
1685 compiler accepts all programs following that standard plus those
1686 using \s-1GNU\s0 extensions that do not contradict it.  For example,
1687 \&\fB\-std=c90\fR turns off certain features of \s-1GCC\s0 that are
1688 incompatible with \s-1ISO\s0 C90, such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR
1689 keywords, but not other \s-1GNU\s0 extensions that do not have a meaning in
1690 \&\s-1ISO\s0 C90, such as omitting the middle term of a \f(CW\*(C`?:\*(C'\fR
1691 expression. On the other hand, when a \s-1GNU\s0 dialect of a standard is
1692 specified, all features supported by the compiler are enabled, even when
1693 those features change the meaning of the base standard.  As a result, some
1694 strict-conforming programs may be rejected.  The particular standard
1695 is used by \fB\-Wpedantic\fR to identify which features are \s-1GNU\s0
1696 extensions given that version of the standard. For example
1697 \&\fB\-std=gnu90 \-Wpedantic\fR warns about \*(C+ style \fB//\fR
1698 comments, while \fB\-std=gnu99 \-Wpedantic\fR does not.
1699 .Sp
1700 A value for this option must be provided; possible values are
1701 .RS 4
1702 .IP "\fBc90\fR" 4
1703 .IX Item "c90"
1704 .PD 0
1705 .IP "\fBc89\fR" 4
1706 .IX Item "c89"
1707 .IP "\fBiso9899:1990\fR" 4
1708 .IX Item "iso9899:1990"
1709 .PD
1710 Support all \s-1ISO\s0 C90 programs (certain \s-1GNU\s0 extensions that conflict
1711 with \s-1ISO\s0 C90 are disabled). Same as \fB\-ansi\fR for C code.
1712 .IP "\fBiso9899:199409\fR" 4
1713 .IX Item "iso9899:199409"
1714 \&\s-1ISO\s0 C90 as modified in amendment 1.
1715 .IP "\fBc99\fR" 4
1716 .IX Item "c99"
1717 .PD 0
1718 .IP "\fBc9x\fR" 4
1719 .IX Item "c9x"
1720 .IP "\fBiso9899:1999\fR" 4
1721 .IX Item "iso9899:1999"
1722 .IP "\fBiso9899:199x\fR" 4
1723 .IX Item "iso9899:199x"
1724 .PD
1725 \&\s-1ISO\s0 C99.  This standard is substantially completely supported, modulo
1726 bugs and floating-point issues
1727 (mainly but not entirely relating to optional C99 features from
1728 Annexes F and G).  See
1729 <\fBhttp://gcc.gnu.org/c99status.html\fR> for more information.  The
1730 names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
1731 .IP "\fBc11\fR" 4
1732 .IX Item "c11"
1733 .PD 0
1734 .IP "\fBc1x\fR" 4
1735 .IX Item "c1x"
1736 .IP "\fBiso9899:2011\fR" 4
1737 .IX Item "iso9899:2011"
1738 .PD
1739 \&\s-1ISO\s0 C11, the 2011 revision of the \s-1ISO\s0 C standard.  This standard is
1740 substantially completely supported, modulo bugs, floating-point issues
1741 (mainly but not entirely relating to optional C11 features from
1742 Annexes F and G) and the optional Annexes K (Bounds-checking
1743 interfaces) and L (Analyzability).  The name \fBc1x\fR is deprecated.
1744 .IP "\fBgnu90\fR" 4
1745 .IX Item "gnu90"
1746 .PD 0
1747 .IP "\fBgnu89\fR" 4
1748 .IX Item "gnu89"
1749 .PD
1750 \&\s-1GNU\s0 dialect of \s-1ISO\s0 C90 (including some C99 features).
1751 .IP "\fBgnu99\fR" 4
1752 .IX Item "gnu99"
1753 .PD 0
1754 .IP "\fBgnu9x\fR" 4
1755 .IX Item "gnu9x"
1756 .PD
1757 \&\s-1GNU\s0 dialect of \s-1ISO\s0 C99.  The name \fBgnu9x\fR is deprecated.
1758 .IP "\fBgnu11\fR" 4
1759 .IX Item "gnu11"
1760 .PD 0
1761 .IP "\fBgnu1x\fR" 4
1762 .IX Item "gnu1x"
1763 .PD
1764 \&\s-1GNU\s0 dialect of \s-1ISO\s0 C11.  This is the default for C code.
1765 The name \fBgnu1x\fR is deprecated.
1766 .IP "\fBc++98\fR" 4
1767 .IX Item "c++98"
1768 .PD 0
1769 .IP "\fBc++03\fR" 4
1770 .IX Item "c++03"
1771 .PD
1772 The 1998 \s-1ISO\s0 \*(C+ standard plus the 2003 technical corrigendum and some
1773 additional defect reports. Same as \fB\-ansi\fR for \*(C+ code.
1774 .IP "\fBgnu++98\fR" 4
1775 .IX Item "gnu++98"
1776 .PD 0
1777 .IP "\fBgnu++03\fR" 4
1778 .IX Item "gnu++03"
1779 .PD
1780 \&\s-1GNU\s0 dialect of \fB\-std=c++98\fR.  This is the default for
1781 \&\*(C+ code.
1782 .IP "\fBc++11\fR" 4
1783 .IX Item "c++11"
1784 .PD 0
1785 .IP "\fBc++0x\fR" 4
1786 .IX Item "c++0x"
1787 .PD
1788 The 2011 \s-1ISO\s0 \*(C+ standard plus amendments.
1789 The name \fBc++0x\fR is deprecated.
1790 .IP "\fBgnu++11\fR" 4
1791 .IX Item "gnu++11"
1792 .PD 0
1793 .IP "\fBgnu++0x\fR" 4
1794 .IX Item "gnu++0x"
1795 .PD
1796 \&\s-1GNU\s0 dialect of \fB\-std=c++11\fR.
1797 The name \fBgnu++0x\fR is deprecated.
1798 .IP "\fBc++14\fR" 4
1799 .IX Item "c++14"
1800 .PD 0
1801 .IP "\fBc++1y\fR" 4
1802 .IX Item "c++1y"
1803 .PD
1804 The 2014 \s-1ISO\s0 \*(C+ standard plus amendments.
1805 The name \fBc++1y\fR is deprecated.
1806 .IP "\fBgnu++14\fR" 4
1807 .IX Item "gnu++14"
1808 .PD 0
1809 .IP "\fBgnu++1y\fR" 4
1810 .IX Item "gnu++1y"
1811 .PD
1812 \&\s-1GNU\s0 dialect of \fB\-std=c++14\fR.
1813 The name \fBgnu++1y\fR is deprecated.
1814 .IP "\fBc++1z\fR" 4
1815 .IX Item "c++1z"
1816 The next revision of the \s-1ISO\s0 \*(C+ standard, tentatively planned for
1817 2017.  Support is highly experimental, and will almost certainly
1818 change in incompatible ways in future releases.
1819 .IP "\fBgnu++1z\fR" 4
1820 .IX Item "gnu++1z"
1821 \&\s-1GNU\s0 dialect of \fB\-std=c++1z\fR.  Support is highly experimental,
1822 and will almost certainly change in incompatible ways in future
1823 releases.
1824 .RE
1825 .RS 4
1826 .RE
1827 .IP "\fB\-fgnu89\-inline\fR" 4
1828 .IX Item "-fgnu89-inline"
1829 The option \fB\-fgnu89\-inline\fR tells \s-1GCC\s0 to use the traditional
1830 \&\s-1GNU\s0 semantics for \f(CW\*(C`inline\*(C'\fR functions when in C99 mode.
1831 .Sp
1832 Using this option is roughly equivalent to adding the
1833 \&\f(CW\*(C`gnu_inline\*(C'\fR function attribute to all inline functions.
1834 .Sp
1835 The option \fB\-fno\-gnu89\-inline\fR explicitly tells \s-1GCC\s0 to use the
1836 C99 semantics for \f(CW\*(C`inline\*(C'\fR when in C99 or gnu99 mode (i.e., it
1837 specifies the default behavior).  
1838 This option is not supported in \fB\-std=c90\fR or
1839 \&\fB\-std=gnu90\fR mode.
1840 .Sp
1841 The preprocessor macros \f(CW\*(C`_\|_GNUC_GNU_INLINE_\|_\*(C'\fR and
1842 \&\f(CW\*(C`_\|_GNUC_STDC_INLINE_\|_\*(C'\fR may be used to check which semantics are
1843 in effect for \f(CW\*(C`inline\*(C'\fR functions.
1844 .IP "\fB\-aux\-info\fR \fIfilename\fR" 4
1845 .IX Item "-aux-info filename"
1846 Output to the given filename prototyped declarations for all functions
1847 declared and/or defined in a translation unit, including those in header
1848 files.  This option is silently ignored in any language other than C.
1849 .Sp
1850 Besides declarations, the file indicates, in comments, the origin of
1851 each declaration (source file and line), whether the declaration was
1852 implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
1853 \&\fBO\fR for old, respectively, in the first character after the line
1854 number and the colon), and whether it came from a declaration or a
1855 definition (\fBC\fR or \fBF\fR, respectively, in the following
1856 character).  In the case of function definitions, a K&R\-style list of
1857 arguments followed by their declarations is also provided, inside
1858 comments, after the declaration.
1859 .IP "\fB\-fallow\-parameterless\-variadic\-functions\fR" 4
1860 .IX Item "-fallow-parameterless-variadic-functions"
1861 Accept variadic functions without named parameters.
1862 .Sp
1863 Although it is possible to define such a function, this is not very
1864 useful as it is not possible to read the arguments.  This is only
1865 supported for C as this construct is allowed by \*(C+.
1866 .IP "\fB\-fno\-asm\fR" 4
1867 .IX Item "-fno-asm"
1868 Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
1869 keyword, so that code can use these words as identifiers.  You can use
1870 the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
1871 instead.  \fB\-ansi\fR implies \fB\-fno\-asm\fR.
1872 .Sp
1873 In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
1874 \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords.  You may want to
1875 use the \fB\-fno\-gnu\-keywords\fR flag instead, which has the same
1876 effect.  In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
1877 switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
1878 \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO\s0 C99.
1879 .IP "\fB\-fno\-builtin\fR" 4
1880 .IX Item "-fno-builtin"
1881 .PD 0
1882 .IP "\fB\-fno\-builtin\-\fR\fIfunction\fR" 4
1883 .IX Item "-fno-builtin-function"
1884 .PD
1885 Don't recognize built-in functions that do not begin with
1886 \&\fB_\|_builtin_\fR as prefix.
1887 .Sp
1888 \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
1889 more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
1890 instructions which adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
1891 may become inline copy loops.  The resulting code is often both smaller
1892 and faster, but since the function calls no longer appear as such, you
1893 cannot set a breakpoint on those calls, nor can you change the behavior
1894 of the functions by linking with a different library.  In addition,
1895 when a function is recognized as a built-in function, \s-1GCC\s0 may use
1896 information about that function to warn about problems with calls to
1897 that function, or to generate more efficient code, even if the
1898 resulting code still contains calls to that function.  For example,
1899 warnings are given with \fB\-Wformat\fR for bad calls to
1900 \&\f(CW\*(C`printf\*(C'\fR when \f(CW\*(C`printf\*(C'\fR is built in and \f(CW\*(C`strlen\*(C'\fR is
1901 known not to modify global memory.
1902 .Sp
1903 With the \fB\-fno\-builtin\-\fR\fIfunction\fR option
1904 only the built-in function \fIfunction\fR is
1905 disabled.  \fIfunction\fR must not begin with \fB_\|_builtin_\fR.  If a
1906 function is named that is not built-in in this version of \s-1GCC\s0, this
1907 option is ignored.  There is no corresponding
1908 \&\fB\-fbuiltin\-\fR\fIfunction\fR option; if you wish to enable
1909 built-in functions selectively when using \fB\-fno\-builtin\fR or
1910 \&\fB\-ffreestanding\fR, you may define macros such as:
1911 .Sp
1912 .Vb 2
1913 \&        #define abs(n)          _\|_builtin_abs ((n))
1914 \&        #define strcpy(d, s)    _\|_builtin_strcpy ((d), (s))
1915 .Ve
1916 .IP "\fB\-fhosted\fR" 4
1917 .IX Item "-fhosted"
1918 Assert that compilation targets a hosted environment.  This implies
1919 \&\fB\-fbuiltin\fR.  A hosted environment is one in which the
1920 entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
1921 type of \f(CW\*(C`int\*(C'\fR.  Examples are nearly everything except a kernel.
1922 This is equivalent to \fB\-fno\-freestanding\fR.
1923 .IP "\fB\-ffreestanding\fR" 4
1924 .IX Item "-ffreestanding"
1925 Assert that compilation targets a freestanding environment.  This
1926 implies \fB\-fno\-builtin\fR.  A freestanding environment
1927 is one in which the standard library may not exist, and program startup may
1928 not necessarily be at \f(CW\*(C`main\*(C'\fR.  The most obvious example is an \s-1OS\s0 kernel.
1929 This is equivalent to \fB\-fno\-hosted\fR.
1930 .IP "\fB\-fopenacc\fR" 4
1931 .IX Item "-fopenacc"
1932 Enable handling of OpenACC directives \f(CW\*(C`#pragma acc\*(C'\fR in C/\*(C+ and
1933 \&\f(CW\*(C`!$acc\*(C'\fR in Fortran.  When \fB\-fopenacc\fR is specified, the
1934 compiler generates accelerated code according to the OpenACC Application
1935 Programming Interface v2.0 <\fBhttp://www.openacc.org/\fR>.  This option
1936 implies \fB\-pthread\fR, and thus is only supported on targets that
1937 have support for \fB\-pthread\fR.
1938 .Sp
1939 Note that this is an experimental feature, incomplete, and subject to
1940 change in future versions of \s-1GCC\s0.  See
1941 <\fBhttps://gcc.gnu.org/wiki/OpenACC\fR> for more information.
1942 .IP "\fB\-fopenmp\fR" 4
1943 .IX Item "-fopenmp"
1944 Enable handling of OpenMP directives \f(CW\*(C`#pragma omp\*(C'\fR in C/\*(C+ and
1945 \&\f(CW\*(C`!$omp\*(C'\fR in Fortran.  When \fB\-fopenmp\fR is specified, the
1946 compiler generates parallel code according to the OpenMP Application
1947 Program Interface v4.0 <\fBhttp://www.openmp.org/\fR>.  This option
1948 implies \fB\-pthread\fR, and thus is only supported on targets that
1949 have support for \fB\-pthread\fR. \fB\-fopenmp\fR implies
1950 \&\fB\-fopenmp\-simd\fR.
1951 .IP "\fB\-fopenmp\-simd\fR" 4
1952 .IX Item "-fopenmp-simd"
1953 Enable handling of OpenMP's \s-1SIMD\s0 directives with \f(CW\*(C`#pragma omp\*(C'\fR
1954 in C/\*(C+ and \f(CW\*(C`!$omp\*(C'\fR in Fortran. Other OpenMP directives
1955 are ignored.
1956 .IP "\fB\-fcilkplus\fR" 4
1957 .IX Item "-fcilkplus"
1958 Enable the usage of Cilk Plus language extension features for C/\*(C+.
1959 When the option \fB\-fcilkplus\fR is specified, enable the usage of
1960 the Cilk Plus Language extension features for C/\*(C+.  The present
1961 implementation follows \s-1ABI\s0 version 1.2.  This is an experimental
1962 feature that is only partially complete, and whose interface may
1963 change in future versions of \s-1GCC\s0 as the official specification
1964 changes.  Currently, all features but \f(CW\*(C`_Cilk_for\*(C'\fR have been
1965 implemented.
1966 .IP "\fB\-fgnu\-tm\fR" 4
1967 .IX Item "-fgnu-tm"
1968 When the option \fB\-fgnu\-tm\fR is specified, the compiler
1969 generates code for the Linux variant of Intel's current Transactional
1970 Memory \s-1ABI\s0 specification document (Revision 1.1, May 6 2009).  This is
1971 an experimental feature whose interface may change in future versions
1972 of \s-1GCC\s0, as the official specification changes.  Please note that not
1973 all architectures are supported for this feature.
1974 .Sp
1975 For more information on \s-1GCC\s0's support for transactional memory,
1976 .Sp
1977 Note that the transactional memory feature is not supported with
1978 non-call exceptions (\fB\-fnon\-call\-exceptions\fR).
1979 .IP "\fB\-fms\-extensions\fR" 4
1980 .IX Item "-fms-extensions"
1981 Accept some non-standard constructs used in Microsoft header files.
1982 .Sp
1983 In \*(C+ code, this allows member names in structures to be similar
1984 to previous types declarations.
1985 .Sp
1986 .Vb 4
1987 \&        typedef int UOW;
1988 \&        struct ABC {
1989 \&          UOW UOW;
1990 \&        };
1991 .Ve
1992 .Sp
1993 Some cases of unnamed fields in structures and unions are only
1994 accepted with this option.
1995 .Sp
1996 Note that this option is off for all targets but x86 
1997 targets using ms-abi.
1998 .IP "\fB\-fplan9\-extensions\fR" 4
1999 .IX Item "-fplan9-extensions"
2000 Accept some non-standard constructs used in Plan 9 code.
2001 .Sp
2002 This enables \fB\-fms\-extensions\fR, permits passing pointers to
2003 structures with anonymous fields to functions that expect pointers to
2004 elements of the type of the field, and permits referring to anonymous
2005 fields declared using a typedef.    This is only
2006 supported for C, not \*(C+.
2007 .IP "\fB\-trigraphs\fR" 4
2008 .IX Item "-trigraphs"
2009 Support \s-1ISO\s0 C trigraphs.  The \fB\-ansi\fR option (and \fB\-std\fR
2010 options for strict \s-1ISO\s0 C conformance) implies \fB\-trigraphs\fR.
2011 .IP "\fB\-traditional\fR" 4
2012 .IX Item "-traditional"
2013 .PD 0
2014 .IP "\fB\-traditional\-cpp\fR" 4
2015 .IX Item "-traditional-cpp"
2016 .PD
2017 Formerly, these options caused \s-1GCC\s0 to attempt to emulate a pre-standard
2018 C compiler.  They are now only supported with the \fB\-E\fR switch.
2019 The preprocessor continues to support a pre-standard mode.  See the \s-1GNU\s0
2020 \&\s-1CPP\s0 manual for details.
2021 .IP "\fB\-fcond\-mismatch\fR" 4
2022 .IX Item "-fcond-mismatch"
2023 Allow conditional expressions with mismatched types in the second and
2024 third arguments.  The value of such an expression is void.  This option
2025 is not supported for \*(C+.
2026 .IP "\fB\-flax\-vector\-conversions\fR" 4
2027 .IX Item "-flax-vector-conversions"
2028 Allow implicit conversions between vectors with differing numbers of
2029 elements and/or incompatible element types.  This option should not be
2030 used for new code.
2031 .IP "\fB\-funsigned\-char\fR" 4
2032 .IX Item "-funsigned-char"
2033 Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
2034 .Sp
2035 Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
2036 be.  It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
2037 \&\f(CW\*(C`signed char\*(C'\fR by default.
2038 .Sp
2039 Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
2040 \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
2041 But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
2042 expect it to be signed, or expect it to be unsigned, depending on the
2043 machines they were written for.  This option, and its inverse, let you
2044 make such a program work with the opposite default.
2045 .Sp
2046 The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
2047 \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
2048 is always just like one of those two.
2049 .IP "\fB\-fsigned\-char\fR" 4
2050 .IX Item "-fsigned-char"
2051 Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
2052 .Sp
2053 Note that this is equivalent to \fB\-fno\-unsigned\-char\fR, which is
2054 the negative form of \fB\-funsigned\-char\fR.  Likewise, the option
2055 \&\fB\-fno\-signed\-char\fR is equivalent to \fB\-funsigned\-char\fR.
2056 .IP "\fB\-fsigned\-bitfields\fR" 4
2057 .IX Item "-fsigned-bitfields"
2058 .PD 0
2059 .IP "\fB\-funsigned\-bitfields\fR" 4
2060 .IX Item "-funsigned-bitfields"
2061 .IP "\fB\-fno\-signed\-bitfields\fR" 4
2062 .IX Item "-fno-signed-bitfields"
2063 .IP "\fB\-fno\-unsigned\-bitfields\fR" 4
2064 .IX Item "-fno-unsigned-bitfields"
2065 .PD
2066 These options control whether a bit-field is signed or unsigned, when the
2067 declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR.  By
2068 default, such a bit-field is signed, because this is consistent: the
2069 basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
2070 .Sh "Options Controlling \*(C+ Dialect"
2071 .IX Subsection "Options Controlling  Dialect"
2072 This section describes the command-line options that are only meaningful
2073 for \*(C+ programs.  You can also use most of the \s-1GNU\s0 compiler options
2074 regardless of what language your program is in.  For example, you
2075 might compile a file \fIfirstClass.C\fR like this:
2076 .PP
2077 .Vb 1
2078 \&        g++ \-g \-frepo \-O \-c firstClass.C
2079 .Ve
2080 .PP
2081 In this example, only \fB\-frepo\fR is an option meant
2082 only for \*(C+ programs; you can use the other options with any
2083 language supported by \s-1GCC\s0.
2084 .PP
2085 Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
2086 .IP "\fB\-fabi\-version=\fR\fIn\fR" 4
2087 .IX Item "-fabi-version=n"
2088 Use version \fIn\fR of the \*(C+ \s-1ABI\s0.  The default is version 0.
2089 .Sp
2090 Version 0 refers to the version conforming most closely to
2091 the \*(C+ \s-1ABI\s0 specification.  Therefore, the \s-1ABI\s0 obtained using version 0
2092 will change in different versions of G++ as \s-1ABI\s0 bugs are fixed.
2093 .Sp
2094 Version 1 is the version of the \*(C+ \s-1ABI\s0 that first appeared in G++ 3.2.
2095 .Sp
2096 Version 2 is the version of the \*(C+ \s-1ABI\s0 that first appeared in G++
2097 3.4, and was the default through G++ 4.9.
2098 .Sp
2099 Version 3 corrects an error in mangling a constant address as a
2100 template argument.
2101 .Sp
2102 Version 4, which first appeared in G++ 4.5, implements a standard
2103 mangling for vector types.
2104 .Sp
2105 Version 5, which first appeared in G++ 4.6, corrects the mangling of
2106 attribute const/volatile on function pointer types, decltype of a
2107 plain decl, and use of a function parameter in the declaration of
2108 another parameter.
2109 .Sp
2110 Version 6, which first appeared in G++ 4.7, corrects the promotion
2111 behavior of \*(C+11 scoped enums and the mangling of template argument
2112 packs, const/static_cast, prefix ++ and \-\-, and a class scope function
2113 used as a template argument.
2114 .Sp
2115 Version 7, which first appeared in G++ 4.8, that treats nullptr_t as a
2116 builtin type and corrects the mangling of lambdas in default argument
2117 scope.
2118 .Sp
2119 Version 8, which first appeared in G++ 4.9, corrects the substitution
2120 behavior of function types with function-cv-qualifiers.
2121 .Sp
2122 See also \fB\-Wabi\fR.
2123 .IP "\fB\-fabi\-compat\-version=\fR\fIn\fR" 4
2124 .IX Item "-fabi-compat-version=n"
2125 On targets that support strong aliases, G++
2126 works around mangling changes by creating an alias with the correct
2127 mangled name when defining a symbol with an incorrect mangled name.
2128 This switch specifies which \s-1ABI\s0 version to use for the alias.
2129 .Sp
2130 With \fB\-fabi\-version=0\fR (the default), this defaults to 2.  If
2131 another \s-1ABI\s0 version is explicitly selected, this defaults to 0.
2132 .Sp
2133 The compatibility version is also set by \fB\-Wabi=\fR\fIn\fR.
2134 .IP "\fB\-fno\-access\-control\fR" 4
2135 .IX Item "-fno-access-control"
2136 Turn off all access checking.  This switch is mainly useful for working
2137 around bugs in the access control code.
2138 .IP "\fB\-fcheck\-new\fR" 4
2139 .IX Item "-fcheck-new"
2140 Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
2141 before attempting to modify the storage allocated.  This check is
2142 normally unnecessary because the \*(C+ standard specifies that
2143 \&\f(CW\*(C`operator new\*(C'\fR only returns \f(CW0\fR if it is declared
2144 \&\f(CW\*(C`throw()\*(C'\fR, in which case the compiler always checks the
2145 return value even without this option.  In all other cases, when
2146 \&\f(CW\*(C`operator new\*(C'\fR has a non-empty exception specification, memory
2147 exhaustion is signalled by throwing \f(CW\*(C`std::bad_alloc\*(C'\fR.  See also
2148 \&\fBnew (nothrow)\fR.
2149 .IP "\fB\-fconstexpr\-depth=\fR\fIn\fR" 4
2150 .IX Item "-fconstexpr-depth=n"
2151 Set the maximum nested evaluation depth for \*(C+11 constexpr functions
2152 to \fIn\fR.  A limit is needed to detect endless recursion during
2153 constant expression evaluation.  The minimum specified by the standard
2154 is 512.
2155 .IP "\fB\-fdeduce\-init\-list\fR" 4
2156 .IX Item "-fdeduce-init-list"
2157 Enable deduction of a template type parameter as
2158 \&\f(CW\*(C`std::initializer_list\*(C'\fR from a brace-enclosed initializer list, i.e.
2159 .Sp
2160 .Vb 4
2161 \&        template <class T> auto forward(T t) \-> decltype (realfn (t))
2162 \&        {
2163 \&          return realfn (t);
2164 \&        }
2165 \&        
2166 \&        void f()
2167 \&        {
2168 \&          forward({1,2}); // call forward<std::initializer_list<int>>
2169 \&        }
2170 .Ve
2171 .Sp
2172 This deduction was implemented as a possible extension to the
2173 originally proposed semantics for the \*(C+11 standard, but was not part
2174 of the final standard, so it is disabled by default.  This option is
2175 deprecated, and may be removed in a future version of G++.
2176 .IP "\fB\-ffriend\-injection\fR" 4
2177 .IX Item "-ffriend-injection"
2178 Inject friend functions into the enclosing namespace, so that they are
2179 visible outside the scope of the class in which they are declared.
2180 Friend functions were documented to work this way in the old Annotated
2181 \&\*(C+ Reference Manual.  
2182 However, in \s-1ISO\s0 \*(C+ a friend function that is not declared
2183 in an enclosing scope can only be found using argument dependent
2184 lookup.  \s-1GCC\s0 defaults to the standard behavior.
2185 .Sp
2186 This option is for compatibility, and may be removed in a future
2187 release of G++.
2188 .IP "\fB\-fno\-elide\-constructors\fR" 4
2189 .IX Item "-fno-elide-constructors"
2190 The \*(C+ standard allows an implementation to omit creating a temporary
2191 that is only used to initialize another object of the same type.
2192 Specifying this option disables that optimization, and forces G++ to
2193 call the copy constructor in all cases.
2194 .IP "\fB\-fno\-enforce\-eh\-specs\fR" 4
2195 .IX Item "-fno-enforce-eh-specs"
2196 Don't generate code to check for violation of exception specifications
2197 at run time.  This option violates the \*(C+ standard, but may be useful
2198 for reducing code size in production builds, much like defining
2199 \&\f(CW\*(C`NDEBUG\*(C'\fR.  This does not give user code permission to throw
2200 exceptions in violation of the exception specifications; the compiler
2201 still optimizes based on the specifications, so throwing an
2202 unexpected exception results in undefined behavior at run time.
2203 .IP "\fB\-fextern\-tls\-init\fR" 4
2204 .IX Item "-fextern-tls-init"
2205 .PD 0
2206 .IP "\fB\-fno\-extern\-tls\-init\fR" 4
2207 .IX Item "-fno-extern-tls-init"
2208 .PD
2209 The \*(C+11 and OpenMP standards allow \f(CW\*(C`thread_local\*(C'\fR and
2210 \&\f(CW\*(C`threadprivate\*(C'\fR variables to have dynamic (runtime)
2211 initialization.  To support this, any use of such a variable goes
2212 through a wrapper function that performs any necessary initialization.
2213 When the use and definition of the variable are in the same
2214 translation unit, this overhead can be optimized away, but when the
2215 use is in a different translation unit there is significant overhead
2216 even if the variable doesn't actually need dynamic initialization.  If
2217 the programmer can be sure that no use of the variable in a
2218 non-defining \s-1TU\s0 needs to trigger dynamic initialization (either
2219 because the variable is statically initialized, or a use of the
2220 variable in the defining \s-1TU\s0 will be executed before any uses in
2221 another \s-1TU\s0), they can avoid this overhead with the
2222 \&\fB\-fno\-extern\-tls\-init\fR option.
2223 .Sp
2224 On targets that support symbol aliases, the default is
2225 \&\fB\-fextern\-tls\-init\fR.  On targets that do not support symbol
2226 aliases, the default is \fB\-fno\-extern\-tls\-init\fR.
2227 .IP "\fB\-ffor\-scope\fR" 4
2228 .IX Item "-ffor-scope"
2229 .PD 0
2230 .IP "\fB\-fno\-for\-scope\fR" 4
2231 .IX Item "-fno-for-scope"
2232 .PD
2233 If \fB\-ffor\-scope\fR is specified, the scope of variables declared in
2234 a \fIfor-init-statement\fR is limited to the \f(CW\*(C`for\*(C'\fR loop itself,
2235 as specified by the \*(C+ standard.
2236 If \fB\-fno\-for\-scope\fR is specified, the scope of variables declared in
2237 a \fIfor-init-statement\fR extends to the end of the enclosing scope,
2238 as was the case in old versions of G++, and other (traditional)
2239 implementations of \*(C+.
2240 .Sp
2241 If neither flag is given, the default is to follow the standard,
2242 but to allow and give a warning for old-style code that would
2243 otherwise be invalid, or have different behavior.
2244 .IP "\fB\-fno\-gnu\-keywords\fR" 4
2245 .IX Item "-fno-gnu-keywords"
2246 Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
2247 word as an identifier.  You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
2248 \&\fB\-ansi\fR implies \fB\-fno\-gnu\-keywords\fR.
2249 .IP "\fB\-fno\-implicit\-templates\fR" 4
2250 .IX Item "-fno-implicit-templates"
2251 Never emit code for non-inline templates that are instantiated
2252 implicitly (i.e. by use); only emit code for explicit instantiations.
2253 .IP "\fB\-fno\-implicit\-inline\-templates\fR" 4
2254 .IX Item "-fno-implicit-inline-templates"
2255 Don't emit code for implicit instantiations of inline templates, either.
2256 The default is to handle inlines differently so that compiles with and
2257 without optimization need the same set of explicit instantiations.
2258 .IP "\fB\-fno\-implement\-inlines\fR" 4
2259 .IX Item "-fno-implement-inlines"
2260 To save space, do not emit out-of-line copies of inline functions
2261 controlled by \f(CW\*(C`#pragma implementation\*(C'\fR.  This causes linker
2262 errors if these functions are not inlined everywhere they are called.
2263 .IP "\fB\-fms\-extensions\fR" 4
2264 .IX Item "-fms-extensions"
2265 Disable Wpedantic warnings about constructs used in \s-1MFC\s0, such as implicit
2266 int and getting a pointer to member function via non-standard syntax.
2267 .IP "\fB\-fno\-nonansi\-builtins\fR" 4
2268 .IX Item "-fno-nonansi-builtins"
2269 Disable built-in declarations of functions that are not mandated by
2270 \&\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,
2271 \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
2272 .IP "\fB\-fnothrow\-opt\fR" 4
2273 .IX Item "-fnothrow-opt"
2274 Treat a \f(CW\*(C`throw()\*(C'\fR exception specification as if it were a
2275 \&\f(CW\*(C`noexcept\*(C'\fR specification to reduce or eliminate the text size
2276 overhead relative to a function with no exception specification.  If
2277 the function has local variables of types with non-trivial
2278 destructors, the exception specification actually makes the
2279 function smaller because the \s-1EH\s0 cleanups for those variables can be
2280 optimized away.  The semantic effect is that an exception thrown out of
2281 a function with such an exception specification results in a call
2282 to \f(CW\*(C`terminate\*(C'\fR rather than \f(CW\*(C`unexpected\*(C'\fR.
2283 .IP "\fB\-fno\-operator\-names\fR" 4
2284 .IX Item "-fno-operator-names"
2285 Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
2286 \&\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
2287 synonyms as keywords.
2288 .IP "\fB\-fno\-optional\-diags\fR" 4
2289 .IX Item "-fno-optional-diags"
2290 Disable diagnostics that the standard says a compiler does not need to
2291 issue.  Currently, the only such diagnostic issued by G++ is the one for
2292 a name having multiple meanings within a class.
2293 .IP "\fB\-fpermissive\fR" 4
2294 .IX Item "-fpermissive"
2295 Downgrade some diagnostics about nonconformant code from errors to
2296 warnings.  Thus, using \fB\-fpermissive\fR allows some
2297 nonconforming code to compile.
2298 .IP "\fB\-fno\-pretty\-templates\fR" 4
2299 .IX Item "-fno-pretty-templates"
2300 When an error message refers to a specialization of a function
2301 template, the compiler normally prints the signature of the
2302 template followed by the template arguments and any typedefs or
2303 typenames in the signature (e.g. \f(CW\*(C`void f(T) [with T = int]\*(C'\fR
2304 rather than \f(CW\*(C`void f(int)\*(C'\fR) so that it's clear which template is
2305 involved.  When an error message refers to a specialization of a class
2306 template, the compiler omits any template arguments that match
2307 the default template arguments for that template.  If either of these
2308 behaviors make it harder to understand the error message rather than
2309 easier, you can use \fB\-fno\-pretty\-templates\fR to disable them.
2310 .IP "\fB\-frepo\fR" 4
2311 .IX Item "-frepo"
2312 Enable automatic template instantiation at link time.  This option also
2313 implies \fB\-fno\-implicit\-templates\fR.
2314 .IP "\fB\-fno\-rtti\fR" 4
2315 .IX Item "-fno-rtti"
2316 Disable generation of information about every class with virtual
2317 functions for use by the \*(C+ run-time type identification features
2318 (\f(CW\*(C`dynamic_cast\*(C'\fR and \f(CW\*(C`typeid\*(C'\fR).  If you don't use those parts
2319 of the language, you can save some space by using this flag.  Note that
2320 exception handling uses the same information, but G++ generates it as
2321 needed. The \f(CW\*(C`dynamic_cast\*(C'\fR operator can still be used for casts that
2322 do not require run-time type information, i.e. casts to \f(CW\*(C`void *\*(C'\fR or to
2323 unambiguous base classes.
2324 .IP "\fB\-fsized\-deallocation\fR" 4
2325 .IX Item "-fsized-deallocation"
2326 Enable the built-in global declarations
2327 .Sp
2328 .Vb 2
2329 \&        void operator delete (void *, std::size_t) noexcept;
2330 \&        void operator delete[] (void *, std::size_t) noexcept;
2331 .Ve
2332 .Sp
2333 as introduced in \*(C+14.  This is useful for user-defined replacement
2334 deallocation functions that, for example, use the size of the object
2335 to make deallocation faster.  Enabled by default under
2336 \&\fB\-std=c++14\fR and above.  The flag \fB\-Wsized\-deallocation\fR
2337 warns about places that might want to add a definition.
2338 .IP "\fB\-fstats\fR" 4
2339 .IX Item "-fstats"
2340 Emit statistics about front-end processing at the end of the compilation.
2341 This information is generally only useful to the G++ development team.
2342 .IP "\fB\-fstrict\-enums\fR" 4
2343 .IX Item "-fstrict-enums"
2344 Allow the compiler to optimize using the assumption that a value of
2345 enumerated type can only be one of the values of the enumeration (as
2346 defined in the \*(C+ standard; basically, a value that can be
2347 represented in the minimum number of bits needed to represent all the
2348 enumerators).  This assumption may not be valid if the program uses a
2349 cast to convert an arbitrary integer value to the enumerated type.
2350 .IP "\fB\-ftemplate\-backtrace\-limit=\fR\fIn\fR" 4
2351 .IX Item "-ftemplate-backtrace-limit=n"
2352 Set the maximum number of template instantiation notes for a single
2353 warning or error to \fIn\fR.  The default value is 10.
2354 .IP "\fB\-ftemplate\-depth=\fR\fIn\fR" 4
2355 .IX Item "-ftemplate-depth=n"
2356 Set the maximum instantiation depth for template classes to \fIn\fR.
2357 A limit on the template instantiation depth is needed to detect
2358 endless recursions during template class instantiation.  \s-1ANSI/ISO\s0 \*(C+
2359 conforming programs must not rely on a maximum depth greater than 17
2360 (changed to 1024 in \*(C+11).  The default value is 900, as the compiler
2361 can run out of stack space before hitting 1024 in some situations.
2362 .IP "\fB\-fno\-threadsafe\-statics\fR" 4
2363 .IX Item "-fno-threadsafe-statics"
2364 Do not emit the extra code to use the routines specified in the \*(C+
2365 \&\s-1ABI\s0 for thread-safe initialization of local statics.  You can use this
2366 option to reduce code size slightly in code that doesn't need to be
2367 thread-safe.
2368 .IP "\fB\-fuse\-cxa\-atexit\fR" 4
2369 .IX Item "-fuse-cxa-atexit"
2370 Register destructors for objects with static storage duration with the
2371 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
2372 This option is required for fully standards-compliant handling of static
2373 destructors, but only works if your C library supports
2374 \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
2375 .IP "\fB\-fno\-use\-cxa\-get\-exception\-ptr\fR" 4
2376 .IX Item "-fno-use-cxa-get-exception-ptr"
2377 Don't use the \f(CW\*(C`_\|_cxa_get_exception_ptr\*(C'\fR runtime routine.  This
2378 causes \f(CW\*(C`std::uncaught_exception\*(C'\fR to be incorrect, but is necessary
2379 if the runtime routine is not available.
2380 .IP "\fB\-fvisibility\-inlines\-hidden\fR" 4
2381 .IX Item "-fvisibility-inlines-hidden"
2382 This switch declares that the user does not attempt to compare
2383 pointers to inline functions or methods where the addresses of the two functions
2384 are taken in different shared objects.
2385 .Sp
2386 The effect of this is that \s-1GCC\s0 may, effectively, mark inline methods with
2387 \&\f(CW\*(C`_\|_attribute_\|_ ((visibility ("hidden")))\*(C'\fR so that they do not
2388 appear in the export table of a \s-1DSO\s0 and do not require a \s-1PLT\s0 indirection
2389 when used within the \s-1DSO\s0.  Enabling this option can have a dramatic effect
2390 on load and link times of a \s-1DSO\s0 as it massively reduces the size of the
2391 dynamic export table when the library makes heavy use of templates.
2392 .Sp
2393 The behavior of this switch is not quite the same as marking the
2394 methods as hidden directly, because it does not affect static variables
2395 local to the function or cause the compiler to deduce that
2396 the function is defined in only one shared object.
2397 .Sp
2398 You may mark a method as having a visibility explicitly to negate the
2399 effect of the switch for that method.  For example, if you do want to
2400 compare pointers to a particular inline method, you might mark it as
2401 having default visibility.  Marking the enclosing class with explicit
2402 visibility has no effect.
2403 .Sp
2404 Explicitly instantiated inline methods are unaffected by this option
2405 as their linkage might otherwise cross a shared library boundary.
2406 .IP "\fB\-fvisibility\-ms\-compat\fR" 4
2407 .IX Item "-fvisibility-ms-compat"
2408 This flag attempts to use visibility settings to make \s-1GCC\s0's \*(C+
2409 linkage model compatible with that of Microsoft Visual Studio.
2410 .Sp
2411 The flag makes these changes to \s-1GCC\s0's linkage model:
2412 .RS 4
2413 .IP "1." 4
2414 .IX Item "1."
2415 It sets the default visibility to \f(CW\*(C`hidden\*(C'\fR, like
2416 \&\fB\-fvisibility=hidden\fR.
2417 .IP "2." 4
2418 .IX Item "2."
2419 Types, but not their members, are not hidden by default.
2420 .IP "3." 4
2421 .IX Item "3."
2422 The One Definition Rule is relaxed for types without explicit
2423 visibility specifications that are defined in more than one
2424 shared object: those declarations are permitted if they are
2425 permitted when this option is not used.
2426 .RE
2427 .RS 4
2428 .Sp
2429 In new code it is better to use \fB\-fvisibility=hidden\fR and
2430 export those classes that are intended to be externally visible.
2431 Unfortunately it is possible for code to rely, perhaps accidentally,
2432 on the Visual Studio behavior.
2433 .Sp
2434 Among the consequences of these changes are that static data members
2435 of the same type with the same name but defined in different shared
2436 objects are different, so changing one does not change the other;
2437 and that pointers to function members defined in different shared
2438 objects may not compare equal.  When this flag is given, it is a
2439 violation of the \s-1ODR\s0 to define types with the same name differently.
2440 .RE
2441 .IP "\fB\-fvtable\-verify=\fR[\fBstd\fR|\fBpreinit\fR|\fBnone\fR]" 4
2442 .IX Item "-fvtable-verify=[std|preinit|none]"
2443 Turn on (or off, if using \fB\-fvtable\-verify=none\fR) the security
2444 feature that verifies at run time, for every virtual call, that
2445 the vtable pointer through which the call is made is valid for the type of
2446 the object, and has not been corrupted or overwritten.  If an invalid vtable
2447 pointer is detected at run time, an error is reported and execution of the
2448 program is immediately halted.
2449 .Sp
2450 This option causes run-time data structures to be built at program startup,
2451 which are used for verifying the vtable pointers.  
2452 The options \fBstd\fR and \fBpreinit\fR
2453 control the timing of when these data structures are built.  In both cases the
2454 data structures are built before execution reaches \f(CW\*(C`main\*(C'\fR.  Using
2455 \&\fB\-fvtable\-verify=std\fR causes the data structures to be built after
2456 shared libraries have been loaded and initialized.
2457 \&\fB\-fvtable\-verify=preinit\fR causes them to be built before shared
2458 libraries have been loaded and initialized.
2459 .Sp
2460 If this option appears multiple times in the command line with different
2461 values specified, \fBnone\fR takes highest priority over both \fBstd\fR and
2462 \&\fBpreinit\fR; \fBpreinit\fR takes priority over \fBstd\fR.
2463 .IP "\fB\-fvtv\-debug\fR" 4
2464 .IX Item "-fvtv-debug"
2465 When used in conjunction with \fB\-fvtable\-verify=std\fR or 
2466 \&\fB\-fvtable\-verify=preinit\fR, causes debug versions of the 
2467 runtime functions for the vtable verification feature to be called.  
2468 This flag also causes the compiler to log information about which 
2469 vtable pointers it finds for each class.
2470 This information is written to a file named \fIvtv_set_ptr_data.log\fR 
2471 in the directory named by the environment variable \fB\s-1VTV_LOGS_DIR\s0\fR 
2472 if that is defined or the current working directory otherwise.
2473 .Sp
2474 Note:  This feature \fIappends\fR data to the log file. If you want a fresh log
2475 file, be sure to delete any existing one.
2476 .IP "\fB\-fvtv\-counts\fR" 4
2477 .IX Item "-fvtv-counts"
2478 This is a debugging flag.  When used in conjunction with
2479 \&\fB\-fvtable\-verify=std\fR or \fB\-fvtable\-verify=preinit\fR, this
2480 causes the compiler to keep track of the total number of virtual calls
2481 it encounters and the number of verifications it inserts.  It also
2482 counts the number of calls to certain run-time library functions
2483 that it inserts and logs this information for each compilation unit.
2484 The compiler writes this information to a file named
2485 \&\fIvtv_count_data.log\fR in the directory named by the environment
2486 variable \fB\s-1VTV_LOGS_DIR\s0\fR if that is defined or the current working
2487 directory otherwise.  It also counts the size of the vtable pointer sets
2488 for each class, and writes this information to \fIvtv_class_set_sizes.log\fR
2489 in the same directory.
2490 .Sp
2491 Note:  This feature \fIappends\fR data to the log files.  To get fresh log
2492 files, be sure to delete any existing ones.
2493 .IP "\fB\-fno\-weak\fR" 4
2494 .IX Item "-fno-weak"
2495 Do not use weak symbol support, even if it is provided by the linker.
2496 By default, G++ uses weak symbols if they are available.  This
2497 option exists only for testing, and should not be used by end-users;
2498 it results in inferior code and has no benefits.  This option may
2499 be removed in a future release of G++.
2500 .IP "\fB\-nostdinc++\fR" 4
2501 .IX Item "-nostdinc++"
2502 Do not search for header files in the standard directories specific to
2503 \&\*(C+, but do still search the other standard directories.  (This option
2504 is used when building the \*(C+ library.)
2505 .PP
2506 In addition, these optimization, warning, and code generation options
2507 have meanings only for \*(C+ programs:
2508 .IP "\fB\-Wabi\fR (C, Objective-C, \*(C+ and Objective\-\*(C+ only)" 4
2509 .IX Item "-Wabi (C, Objective-C,  and Objective- only)"
2510 When an explicit \fB\-fabi\-version=\fR\fIn\fR option is used, causes
2511 G++ to warn when it generates code that is probably not compatible with the
2512 vendor-neutral \*(C+ \s-1ABI\s0.  Since G++ now defaults to
2513 \&\fB\-fabi\-version=0\fR, \fB\-Wabi\fR has no effect unless either
2514 an older \s-1ABI\s0 version is selected (with \fB\-fabi\-version=\fR\fIn\fR)
2515 or an older compatibility version is selected (with
2516 \&\fB\-Wabi=\fR\fIn\fR or \fB\-fabi\-compat\-version=\fR\fIn\fR).
2517 .Sp
2518 Although an effort has been made to warn about
2519 all such cases, there are probably some cases that are not warned about,
2520 even though G++ is generating incompatible code.  There may also be
2521 cases where warnings are emitted even though the code that is generated
2522 is compatible.
2523 .Sp
2524 You should rewrite your code to avoid these warnings if you are
2525 concerned about the fact that code generated by G++ may not be binary
2526 compatible with code generated by other compilers.
2527 .Sp
2528 \&\fB\-Wabi\fR can also be used with an explicit version number to
2529 warn about compatibility with a particular \fB\-fabi\-version\fR
2530 level, e.g. \fB\-Wabi=2\fR to warn about changes relative to
2531 \&\fB\-fabi\-version=2\fR.  Specifying a version number also sets
2532 \&\fB\-fabi\-compat\-version=\fR\fIn\fR.
2533 .Sp
2534 The known incompatibilities in \fB\-fabi\-version=2\fR (which was the
2535 default from \s-1GCC\s0 3.4 to 4.9) include:
2536 .RS 4
2537 .IP "*" 4
2538 A template with a non-type template parameter of reference type was
2539 mangled incorrectly:
2540 .Sp
2541 .Vb 3
2542 \&        extern int N;
2543 \&        template <int &> struct S {};
2544 \&        void n (S<N>) {2}
2545 .Ve
2546 .Sp
2547 This was fixed in \fB\-fabi\-version=3\fR.
2548 .IP "*" 4
2549 \&\s-1SIMD\s0 vector types declared using \f(CW\*(C`_\|_attribute ((vector_size))\*(C'\fR were
2550 mangled in a non-standard way that does not allow for overloading of
2551 functions taking vectors of different sizes.
2552 .Sp
2553 The mangling was changed in \fB\-fabi\-version=4\fR.
2554 .IP "*" 4
2555 \&\f(CW\*(C`_\|_attribute ((const))\*(C'\fR and \f(CW\*(C`noreturn\*(C'\fR were mangled as type
2556 qualifiers, and \f(CW\*(C`decltype\*(C'\fR of a plain declaration was folded away.
2557 .Sp
2558 These mangling issues were fixed in \fB\-fabi\-version=5\fR.
2559 .IP "*" 4
2560 Scoped enumerators passed as arguments to a variadic function are
2561 promoted like unscoped enumerators, causing \f(CW\*(C`va_arg\*(C'\fR to complain.
2562 On most targets this does not actually affect the parameter passing
2563 \&\s-1ABI\s0, as there is no way to pass an argument smaller than \f(CW\*(C`int\*(C'\fR.
2564 .Sp
2565 Also, the \s-1ABI\s0 changed the mangling of template argument packs,
2566 \&\f(CW\*(C`const_cast\*(C'\fR, \f(CW\*(C`static_cast\*(C'\fR, prefix increment/decrement, and
2567 a class scope function used as a template argument.
2568 .Sp
2569 These issues were corrected in \fB\-fabi\-version=6\fR.
2570 .IP "*" 4
2571 Lambdas in default argument scope were mangled incorrectly, and the
2572 \&\s-1ABI\s0 changed the mangling of \f(CW\*(C`nullptr_t\*(C'\fR.
2573 .Sp
2574 These issues were corrected in \fB\-fabi\-version=7\fR.
2575 .IP "*" 4
2576 When mangling a function type with function-cv-qualifiers, the
2577 un-qualified function type was incorrectly treated as a substitution
2578 candidate.
2579 .Sp
2580 This was fixed in \fB\-fabi\-version=8\fR.
2581 .RE
2582 .RS 4
2583 .Sp
2584 It also warns about psABI-related changes.  The known psABI changes at this
2585 point include:
2586 .IP "*" 4
2587 For SysV/x86\-64, unions with \f(CW\*(C`long double\*(C'\fR members are 
2588 passed in memory as specified in psABI.  For example:
2589 .Sp
2590 .Vb 4
2591 \&        union U {
2592 \&          long double ld;
2593 \&          int i;
2594 \&        };
2595 .Ve
2596 .Sp
2597 \&\f(CW\*(C`union U\*(C'\fR is always passed in memory.
2598 .RE
2599 .RS 4
2600 .RE
2601 .IP "\fB\-Wabi\-tag\fR (\*(C+ and Objective\-\*(C+ only)" 4
2602 .IX Item "-Wabi-tag ( and Objective- only)"
2603 Warn when a type with an \s-1ABI\s0 tag is used in a context that does not
2604 have that \s-1ABI\s0 tag.  See \fB\*(C+ Attributes\fR for more information
2605 about \s-1ABI\s0 tags.
2606 .IP "\fB\-Wctor\-dtor\-privacy\fR (\*(C+ and Objective\-\*(C+ only)" 4
2607 .IX Item "-Wctor-dtor-privacy ( and Objective- only)"
2608 Warn when a class seems unusable because all the constructors or
2609 destructors in that class are private, and it has neither friends nor
2610 public static member functions.  Also warn if there are no non-private
2611 methods, and there's at least one private member function that isn't
2612 a constructor or destructor.
2613 .IP "\fB\-Wdelete\-non\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
2614 .IX Item "-Wdelete-non-virtual-dtor ( and Objective- only)"
2615 Warn when \f(CW\*(C`delete\*(C'\fR is used to destroy an instance of a class that
2616 has virtual functions and non-virtual destructor. It is unsafe to delete
2617 an instance of a derived class through a pointer to a base class if the
2618 base class does not have a virtual destructor.  This warning is enabled
2619 by \fB\-Wall\fR.
2620 .IP "\fB\-Wliteral\-suffix\fR (\*(C+ and Objective\-\*(C+ only)" 4
2621 .IX Item "-Wliteral-suffix ( and Objective- only)"
2622 Warn when a string or character literal is followed by a ud-suffix which does
2623 not begin with an underscore.  As a conforming extension, \s-1GCC\s0 treats such
2624 suffixes as separate preprocessing tokens in order to maintain backwards
2625 compatibility with code that uses formatting macros from \f(CW\*(C`<inttypes.h>\*(C'\fR.
2626 For example:
2627 .Sp
2628 .Vb 3
2629 \&        #define _\|_STDC_FORMAT_MACROS
2630 \&        #include <inttypes.h>
2631 \&        #include <stdio.h>
2632 \&        
2633 \&        int main() {
2634 \&          int64_t i64 = 123;
2635 \&          printf("My int64: %"PRId64"\en", i64);
2636 \&        }
2637 .Ve
2638 .Sp
2639 In this case, \f(CW\*(C`PRId64\*(C'\fR is treated as a separate preprocessing token.
2640 .Sp
2641 This warning is enabled by default.
2642 .IP "\fB\-Wnarrowing\fR (\*(C+ and Objective\-\*(C+ only)" 4
2643 .IX Item "-Wnarrowing ( and Objective- only)"
2644 Warn when a narrowing conversion prohibited by \*(C+11 occurs within
2645 \&\fB{ }\fR, e.g.
2646 .Sp
2647 .Vb 1
2648 \&        int i = { 2.2 }; // error: narrowing from double to int
2649 .Ve
2650 .Sp
2651 This flag is included in \fB\-Wall\fR and \fB\-Wc++11\-compat\fR.
2652 .Sp
2653 With \fB\-std=c++11\fR, \fB\-Wno\-narrowing\fR suppresses the diagnostic
2654 required by the standard.  Note that this does not affect the meaning
2655 of well-formed code; narrowing conversions are still considered
2656 ill-formed in \s-1SFINAE\s0 context.
2657 .IP "\fB\-Wnoexcept\fR (\*(C+ and Objective\-\*(C+ only)" 4
2658 .IX Item "-Wnoexcept ( and Objective- only)"
2659 Warn when a noexcept-expression evaluates to false because of a call
2660 to a function that does not have a non-throwing exception
2661 specification (i.e. \f(CW\*(C`throw()\*(C'\fR or \f(CW\*(C`noexcept\*(C'\fR) but is known by
2662 the compiler to never throw an exception.
2663 .IP "\fB\-Wnon\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
2664 .IX Item "-Wnon-virtual-dtor ( and Objective- only)"
2665 Warn when a class has virtual functions and an accessible non-virtual
2666 destructor itself or in an accessible polymorphic base class, in which
2667 case it is possible but unsafe to delete an instance of a derived
2668 class through a pointer to the class itself or base class.  This
2669 warning is automatically enabled if \fB\-Weffc++\fR is specified.
2670 .IP "\fB\-Wreorder\fR (\*(C+ and Objective\-\*(C+ only)" 4
2671 .IX Item "-Wreorder ( and Objective- only)"
2672 Warn when the order of member initializers given in the code does not
2673 match the order in which they must be executed.  For instance:
2674 .Sp
2675 .Vb 5
2676 \&        struct A {
2677 \&          int i;
2678 \&          int j;
2679 \&          A(): j (0), i (1) { }
2680 \&        };
2681 .Ve
2682 .Sp
2683 The compiler rearranges the member initializers for \f(CW\*(C`i\*(C'\fR
2684 and \f(CW\*(C`j\*(C'\fR to match the declaration order of the members, emitting
2685 a warning to that effect.  This warning is enabled by \fB\-Wall\fR.
2686 .IP "\fB\-fext\-numeric\-literals\fR (\*(C+ and Objective\-\*(C+ only)" 4
2687 .IX Item "-fext-numeric-literals ( and Objective- only)"
2688 Accept imaginary, fixed-point, or machine-defined
2689 literal number suffixes as \s-1GNU\s0 extensions.
2690 When this option is turned off these suffixes are treated
2691 as \*(C+11 user-defined literal numeric suffixes.
2692 This is on by default for all pre\-\*(C+11 dialects and all \s-1GNU\s0 dialects:
2693 \&\fB\-std=c++98\fR, \fB\-std=gnu++98\fR, \fB\-std=gnu++11\fR,
2694 \&\fB\-std=gnu++14\fR.
2695 This option is off by default
2696 for \s-1ISO\s0 \*(C+11 onwards (\fB\-std=c++11\fR, ...).
2697 .PP
2698 The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
2699 .IP "\fB\-Weffc++\fR (\*(C+ and Objective\-\*(C+ only)" 4
2700 .IX Item "-Weffc++ ( and Objective- only)"
2701 Warn about violations of the following style guidelines from Scott Meyers'
2702 \&\fIEffective \*(C+\fR series of books:
2703 .RS 4
2704 .IP "*" 4
2705 Define a copy constructor and an assignment operator for classes
2706 with dynamically-allocated memory.
2707 .IP "*" 4
2708 Prefer initialization to assignment in constructors.
2709 .IP "*" 4
2710 Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW*this\fR.
2711 .IP "*" 4
2712 Don't try to return a reference when you must return an object.
2713 .IP "*" 4
2714 Distinguish between prefix and postfix forms of increment and
2715 decrement operators.
2716 .IP "*" 4
2717 Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
2718 .RE
2719 .RS 4
2720 .Sp
2721 This option also enables \fB\-Wnon\-virtual\-dtor\fR, which is also
2722 one of the effective \*(C+ recommendations.  However, the check is
2723 extended to warn about the lack of virtual destructor in accessible
2724 non-polymorphic bases classes too.
2725 .Sp
2726 When selecting this option, be aware that the standard library
2727 headers do not obey all of these guidelines; use \fBgrep \-v\fR
2728 to filter out those warnings.
2729 .RE
2730 .IP "\fB\-Wstrict\-null\-sentinel\fR (\*(C+ and Objective\-\*(C+ only)" 4
2731 .IX Item "-Wstrict-null-sentinel ( and Objective- only)"
2732 Warn about the use of an uncasted \f(CW\*(C`NULL\*(C'\fR as sentinel.  When
2733 compiling only with \s-1GCC\s0 this is a valid sentinel, as \f(CW\*(C`NULL\*(C'\fR is defined
2734 to \f(CW\*(C`_\|_null\*(C'\fR.  Although it is a null pointer constant rather than a
2735 null pointer, it is guaranteed to be of the same size as a pointer.
2736 But this use is not portable across different compilers.
2737 .IP "\fB\-Wno\-non\-template\-friend\fR (\*(C+ and Objective\-\*(C+ only)" 4
2738 .IX Item "-Wno-non-template-friend ( and Objective- only)"
2739 Disable warnings when non-templatized friend functions are declared
2740 within a template.  Since the advent of explicit template specification
2741 support in G++, if the name of the friend is an unqualified-id (i.e.,
2742 \&\fBfriend foo(int)\fR), the \*(C+ language specification demands that the
2743 friend declare or define an ordinary, nontemplate function.  (Section
2744 14.5.3).  Before G++ implemented explicit specification, unqualified-ids
2745 could be interpreted as a particular specialization of a templatized
2746 function.  Because this non-conforming behavior is no longer the default
2747 behavior for G++, \fB\-Wnon\-template\-friend\fR allows the compiler to
2748 check existing code for potential trouble spots and is on by default.
2749 This new compiler behavior can be turned off with
2750 \&\fB\-Wno\-non\-template\-friend\fR, which keeps the conformant compiler code
2751 but disables the helpful warning.
2752 .IP "\fB\-Wold\-style\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
2753 .IX Item "-Wold-style-cast ( and Objective- only)"
2754 Warn if an old-style (C\-style) cast to a non-void type is used within
2755 a \*(C+ program.  The new-style casts (\f(CW\*(C`dynamic_cast\*(C'\fR,
2756 \&\f(CW\*(C`static_cast\*(C'\fR, \f(CW\*(C`reinterpret_cast\*(C'\fR, and \f(CW\*(C`const_cast\*(C'\fR) are
2757 less vulnerable to unintended effects and much easier to search for.
2758 .IP "\fB\-Woverloaded\-virtual\fR (\*(C+ and Objective\-\*(C+ only)" 4
2759 .IX Item "-Woverloaded-virtual ( and Objective- only)"
2760 Warn when a function declaration hides virtual functions from a
2761 base class.  For example, in:
2762 .Sp
2763 .Vb 3
2764 \&        struct A {
2765 \&          virtual void f();
2766 \&        };
2767 \&        
2768 \&        struct B: public A {
2769 \&          void f(int);
2770 \&        };
2771 .Ve
2772 .Sp
2773 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
2774 like:
2775 .Sp
2776 .Vb 2
2777 \&        B* b;
2778 \&        b\->f();
2779 .Ve
2780 .Sp
2781 fails to compile.
2782 .IP "\fB\-Wno\-pmf\-conversions\fR (\*(C+ and Objective\-\*(C+ only)" 4
2783 .IX Item "-Wno-pmf-conversions ( and Objective- only)"
2784 Disable the diagnostic for converting a bound pointer to member function
2785 to a plain pointer.
2786 .IP "\fB\-Wsign\-promo\fR (\*(C+ and Objective\-\*(C+ only)" 4
2787 .IX Item "-Wsign-promo ( and Objective- only)"
2788 Warn when overload resolution chooses a promotion from unsigned or
2789 enumerated type to a signed type, over a conversion to an unsigned type of
2790 the same size.  Previous versions of G++ tried to preserve
2791 unsignedness, but the standard mandates the current behavior.
2792 .Sh "Options Controlling Objective-C and Objective\-\*(C+ Dialects"
2793 .IX Subsection "Options Controlling Objective-C and Objective- Dialects"
2794 (\s-1NOTE:\s0 This manual does not describe the Objective-C and Objective\-\*(C+
2795 languages themselves.
2796 .PP
2797 This section describes the command-line options that are only meaningful
2798 for Objective-C and Objective\-\*(C+ programs.  You can also use most of
2799 the language-independent \s-1GNU\s0 compiler options.
2800 For example, you might compile a file \fIsome_class.m\fR like this:
2801 .PP
2802 .Vb 1
2803 \&        gcc \-g \-fgnu\-runtime \-O \-c some_class.m
2804 .Ve
2805 .PP
2806 In this example, \fB\-fgnu\-runtime\fR is an option meant only for
2807 Objective-C and Objective\-\*(C+ programs; you can use the other options with
2808 any language supported by \s-1GCC\s0.
2809 .PP
2810 Note that since Objective-C is an extension of the C language, Objective-C
2811 compilations may also use options specific to the C front-end (e.g.,
2812 \&\fB\-Wtraditional\fR).  Similarly, Objective\-\*(C+ compilations may use
2813 \&\*(C+\-specific options (e.g., \fB\-Wabi\fR).
2814 .PP
2815 Here is a list of options that are \fIonly\fR for compiling Objective-C
2816 and Objective\-\*(C+ programs:
2817 .IP "\fB\-fconstant\-string\-class=\fR\fIclass-name\fR" 4
2818 .IX Item "-fconstant-string-class=class-name"
2819 Use \fIclass-name\fR as the name of the class to instantiate for each
2820 literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR.  The default
2821 class name is \f(CW\*(C`NXConstantString\*(C'\fR if the \s-1GNU\s0 runtime is being used, and
2822 \&\f(CW\*(C`NSConstantString\*(C'\fR if the NeXT runtime is being used (see below).  The
2823 \&\fB\-fconstant\-cfstrings\fR option, if also present, overrides the
2824 \&\fB\-fconstant\-string\-class\fR setting and cause \f(CW\*(C`@"..."\*(C'\fR literals
2825 to be laid out as constant CoreFoundation strings.
2826 .IP "\fB\-fgnu\-runtime\fR" 4
2827 .IX Item "-fgnu-runtime"
2828 Generate object code compatible with the standard \s-1GNU\s0 Objective-C
2829 runtime.  This is the default for most types of systems.
2830 .IP "\fB\-fnext\-runtime\fR" 4
2831 .IX Item "-fnext-runtime"
2832 Generate output compatible with the NeXT runtime.  This is the default
2833 for NeXT-based systems, including Darwin and Mac \s-1OS\s0 X.  The macro
2834 \&\f(CW\*(C`_\|_NEXT_RUNTIME_\|_\*(C'\fR is predefined if (and only if) this option is
2835 used.
2836 .IP "\fB\-fno\-nil\-receivers\fR" 4
2837 .IX Item "-fno-nil-receivers"
2838 Assume that all Objective-C message dispatches (\f(CW\*(C`[receiver
2839 message:arg]\*(C'\fR) in this translation unit ensure that the receiver is
2840 not \f(CW\*(C`nil\*(C'\fR.  This allows for more efficient entry points in the
2841 runtime to be used.  This option is only available in conjunction with
2842 the NeXT runtime and \s-1ABI\s0 version 0 or 1.
2843 .IP "\fB\-fobjc\-abi\-version=\fR\fIn\fR" 4
2844 .IX Item "-fobjc-abi-version=n"
2845 Use version \fIn\fR of the Objective-C \s-1ABI\s0 for the selected runtime.
2846 This option is currently supported only for the NeXT runtime.  In that
2847 case, Version 0 is the traditional (32\-bit) \s-1ABI\s0 without support for
2848 properties and other Objective-C 2.0 additions.  Version 1 is the
2849 traditional (32\-bit) \s-1ABI\s0 with support for properties and other
2850 Objective-C 2.0 additions.  Version 2 is the modern (64\-bit) \s-1ABI\s0.  If
2851 nothing is specified, the default is Version 0 on 32\-bit target
2852 machines, and Version 2 on 64\-bit target machines.
2853 .IP "\fB\-fobjc\-call\-cxx\-cdtors\fR" 4
2854 .IX Item "-fobjc-call-cxx-cdtors"
2855 For each Objective-C class, check if any of its instance variables is a
2856 \&\*(C+ object with a non-trivial default constructor.  If so, synthesize a
2857 special \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR instance method which runs
2858 non-trivial default constructors on any such instance variables, in order,
2859 and then return \f(CW\*(C`self\*(C'\fR.  Similarly, check if any instance variable
2860 is a \*(C+ object with a non-trivial destructor, and if so, synthesize a
2861 special \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR method which runs
2862 all such default destructors, in reverse order.
2863 .Sp
2864 The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR
2865 methods thusly generated only operate on instance variables
2866 declared in the current Objective-C class, and not those inherited
2867 from superclasses.  It is the responsibility of the Objective-C
2868 runtime to invoke all such methods in an object's inheritance
2869 hierarchy.  The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR methods are invoked
2870 by the runtime immediately after a new object instance is allocated;
2871 the \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods are invoked immediately
2872 before the runtime deallocates an object instance.
2873 .Sp
2874 As of this writing, only the NeXT runtime on Mac \s-1OS\s0 X 10.4 and later has
2875 support for invoking the \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and
2876 \&\f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods.
2877 .IP "\fB\-fobjc\-direct\-dispatch\fR" 4
2878 .IX Item "-fobjc-direct-dispatch"
2879 Allow fast jumps to the message dispatcher.  On Darwin this is
2880 accomplished via the comm page.
2881 .IP "\fB\-fobjc\-exceptions\fR" 4
2882 .IX Item "-fobjc-exceptions"
2883 Enable syntactic support for structured exception handling in
2884 Objective-C, similar to what is offered by \*(C+ and Java.  This option
2885 is required to use the Objective-C keywords \f(CW@try\fR,
2886 \&\f(CW@throw\fR, \f(CW@catch\fR, \f(CW@finally\fR and
2887 \&\f(CW@synchronized\fR.  This option is available with both the \s-1GNU\s0
2888 runtime and the NeXT runtime (but not available in conjunction with
2889 the NeXT runtime on Mac \s-1OS\s0 X 10.2 and earlier).
2890 .IP "\fB\-fobjc\-gc\fR" 4
2891 .IX Item "-fobjc-gc"
2892 Enable garbage collection (\s-1GC\s0) in Objective-C and Objective\-\*(C+
2893 programs.  This option is only available with the NeXT runtime; the
2894 \&\s-1GNU\s0 runtime has a different garbage collection implementation that
2895 does not require special compiler flags.
2896 .IP "\fB\-fobjc\-nilcheck\fR" 4
2897 .IX Item "-fobjc-nilcheck"
2898 For the NeXT runtime with version 2 of the \s-1ABI\s0, check for a nil
2899 receiver in method invocations before doing the actual method call.
2900 This is the default and can be disabled using
2901 \&\fB\-fno\-objc\-nilcheck\fR.  Class methods and super calls are never
2902 checked for nil in this way no matter what this flag is set to.
2903 Currently this flag does nothing when the \s-1GNU\s0 runtime, or an older
2904 version of the NeXT runtime \s-1ABI\s0, is used.
2905 .IP "\fB\-fobjc\-std=objc1\fR" 4
2906 .IX Item "-fobjc-std=objc1"
2907 Conform to the language syntax of Objective-C 1.0, the language
2908 recognized by \s-1GCC\s0 4.0.  This only affects the Objective-C additions to
2909 the C/\*(C+ language; it does not affect conformance to C/\*(C+ standards,
2910 which is controlled by the separate C/\*(C+ dialect option flags.  When
2911 this option is used with the Objective-C or Objective\-\*(C+ compiler,
2912 any Objective-C syntax that is not recognized by \s-1GCC\s0 4.0 is rejected.
2913 This is useful if you need to make sure that your Objective-C code can
2914 be compiled with older versions of \s-1GCC\s0.
2915 .IP "\fB\-freplace\-objc\-classes\fR" 4
2916 .IX Item "-freplace-objc-classes"
2917 Emit a special marker instructing \fB\f(BIld\fB\|(1)\fR not to statically link in
2918 the resulting object file, and allow \fB\f(BIdyld\fB\|(1)\fR to load it in at
2919 run time instead.  This is used in conjunction with the Fix-and-Continue
2920 debugging mode, where the object file in question may be recompiled and
2921 dynamically reloaded in the course of program execution, without the need
2922 to restart the program itself.  Currently, Fix-and-Continue functionality
2923 is only available in conjunction with the NeXT runtime on Mac \s-1OS\s0 X 10.3
2924 and later.
2925 .IP "\fB\-fzero\-link\fR" 4
2926 .IX Item "-fzero-link"
2927 When compiling for the NeXT runtime, the compiler ordinarily replaces calls
2928 to \f(CW\*(C`objc_getClass("...")\*(C'\fR (when the name of the class is known at
2929 compile time) with static class references that get initialized at load time,
2930 which improves run-time performance.  Specifying the \fB\-fzero\-link\fR flag
2931 suppresses this behavior and causes calls to \f(CW\*(C`objc_getClass("...")\*(C'\fR
2932 to be retained.  This is useful in Zero-Link debugging mode, since it allows
2933 for individual class implementations to be modified during program execution.
2934 The \s-1GNU\s0 runtime currently always retains calls to \f(CW\*(C`objc_get_class("...")\*(C'\fR
2935 regardless of command-line options.
2936 .IP "\fB\-fno\-local\-ivars\fR" 4
2937 .IX Item "-fno-local-ivars"
2938 By default instance variables in Objective-C can be accessed as if
2939 they were local variables from within the methods of the class they're
2940 declared in.  This can lead to shadowing between instance variables
2941 and other variables declared either locally inside a class method or
2942 globally with the same name.  Specifying the \fB\-fno\-local\-ivars\fR
2943 flag disables this behavior thus avoiding variable shadowing issues.
2944 .IP "\fB\-fivar\-visibility=\fR[\fBpublic\fR|\fBprotected\fR|\fBprivate\fR|\fBpackage\fR]" 4
2945 .IX Item "-fivar-visibility=[public|protected|private|package]"
2946 Set the default instance variable visibility to the specified option
2947 so that instance variables declared outside the scope of any access
2948 modifier directives default to the specified visibility.
2949 .IP "\fB\-gen\-decls\fR" 4
2950 .IX Item "-gen-decls"
2951 Dump interface declarations for all classes seen in the source file to a
2952 file named \fI\fIsourcename\fI.decl\fR.
2953 .IP "\fB\-Wassign\-intercept\fR (Objective-C and Objective\-\*(C+ only)" 4
2954 .IX Item "-Wassign-intercept (Objective-C and Objective- only)"
2955 Warn whenever an Objective-C assignment is being intercepted by the
2956 garbage collector.
2957 .IP "\fB\-Wno\-protocol\fR (Objective-C and Objective\-\*(C+ only)" 4
2958 .IX Item "-Wno-protocol (Objective-C and Objective- only)"
2959 If a class is declared to implement a protocol, a warning is issued for
2960 every method in the protocol that is not implemented by the class.  The
2961 default behavior is to issue a warning for every method not explicitly
2962 implemented in the class, even if a method implementation is inherited
2963 from the superclass.  If you use the \fB\-Wno\-protocol\fR option, then
2964 methods inherited from the superclass are considered to be implemented,
2965 and no warning is issued for them.
2966 .IP "\fB\-Wselector\fR (Objective-C and Objective\-\*(C+ only)" 4
2967 .IX Item "-Wselector (Objective-C and Objective- only)"
2968 Warn if multiple methods of different types for the same selector are
2969 found during compilation.  The check is performed on the list of methods
2970 in the final stage of compilation.  Additionally, a check is performed
2971 for each selector appearing in a \f(CW\*(C`@selector(...)\*(C'\fR
2972 expression, and a corresponding method for that selector has been found
2973 during compilation.  Because these checks scan the method table only at
2974 the end of compilation, these warnings are not produced if the final
2975 stage of compilation is not reached, for example because an error is
2976 found during compilation, or because the \fB\-fsyntax\-only\fR option is
2977 being used.
2978 .IP "\fB\-Wstrict\-selector\-match\fR (Objective-C and Objective\-\*(C+ only)" 4
2979 .IX Item "-Wstrict-selector-match (Objective-C and Objective- only)"
2980 Warn if multiple methods with differing argument and/or return types are
2981 found for a given selector when attempting to send a message using this
2982 selector to a receiver of type \f(CW\*(C`id\*(C'\fR or \f(CW\*(C`Class\*(C'\fR.  When this flag
2983 is off (which is the default behavior), the compiler omits such warnings
2984 if any differences found are confined to types that share the same size
2985 and alignment.
2986 .IP "\fB\-Wundeclared\-selector\fR (Objective-C and Objective\-\*(C+ only)" 4
2987 .IX Item "-Wundeclared-selector (Objective-C and Objective- only)"
2988 Warn if a \f(CW\*(C`@selector(...)\*(C'\fR expression referring to an
2989 undeclared selector is found.  A selector is considered undeclared if no
2990 method with that name has been declared before the
2991 \&\f(CW\*(C`@selector(...)\*(C'\fR expression, either explicitly in an
2992 \&\f(CW@interface\fR or \f(CW@protocol\fR declaration, or implicitly in
2993 an \f(CW@implementation\fR section.  This option always performs its
2994 checks as soon as a \f(CW\*(C`@selector(...)\*(C'\fR expression is found,
2995 while \fB\-Wselector\fR only performs its checks in the final stage of
2996 compilation.  This also enforces the coding style convention
2997 that methods and selectors must be declared before being used.
2998 .IP "\fB\-print\-objc\-runtime\-info\fR" 4
2999 .IX Item "-print-objc-runtime-info"
3000 Generate C header describing the largest structure that is passed by
3001 value, if any.
3002 .Sh "Options to Control Diagnostic Messages Formatting"
3003 .IX Subsection "Options to Control Diagnostic Messages Formatting"
3004 Traditionally, diagnostic messages have been formatted irrespective of
3005 the output device's aspect (e.g. its width, ...).  You can use the
3006 options described below
3007 to control the formatting algorithm for diagnostic messages, 
3008 e.g. how many characters per line, how often source location
3009 information should be reported.  Note that some language front ends may not
3010 honor these options.
3011 .IP "\fB\-fmessage\-length=\fR\fIn\fR" 4
3012 .IX Item "-fmessage-length=n"
3013 Try to format error messages so that they fit on lines of about
3014 \&\fIn\fR characters.  If \fIn\fR is zero, then no line-wrapping is
3015 done; each error message appears on a single line.  This is the
3016 default for all front ends.
3017 .IP "\fB\-fdiagnostics\-show\-location=once\fR" 4
3018 .IX Item "-fdiagnostics-show-location=once"
3019 Only meaningful in line-wrapping mode.  Instructs the diagnostic messages
3020 reporter to emit source location information \fIonce\fR; that is, in
3021 case the message is too long to fit on a single physical line and has to
3022 be wrapped, the source location won't be emitted (as prefix) again,
3023 over and over, in subsequent continuation lines.  This is the default
3024 behavior.
3025 .IP "\fB\-fdiagnostics\-show\-location=every\-line\fR" 4
3026 .IX Item "-fdiagnostics-show-location=every-line"
3027 Only meaningful in line-wrapping mode.  Instructs the diagnostic
3028 messages reporter to emit the same source location information (as
3029 prefix) for physical lines that result from the process of breaking
3030 a message which is too long to fit on a single line.
3031 .IP "\fB\-fdiagnostics\-color[=\fR\fI\s-1WHEN\s0\fR\fB]\fR" 4
3032 .IX Item "-fdiagnostics-color[=WHEN]"
3033 .PD 0
3034 .IP "\fB\-fno\-diagnostics\-color\fR" 4
3035 .IX Item "-fno-diagnostics-color"
3036 .PD
3037 Use color in diagnostics.  \fI\s-1WHEN\s0\fR is \fBnever\fR, \fBalways\fR,
3038 or \fBauto\fR.  The default depends on how the compiler has been configured,
3039 it can be any of the above \fI\s-1WHEN\s0\fR options or also \fBnever\fR
3040 if \fB\s-1GCC_COLORS\s0\fR environment variable isn't present in the environment,
3041 and \fBauto\fR otherwise.
3042 \&\fBauto\fR means to use color only when the standard error is a terminal.
3043 The forms \fB\-fdiagnostics\-color\fR and \fB\-fno\-diagnostics\-color\fR are
3044 aliases for \fB\-fdiagnostics\-color=always\fR and
3045 \&\fB\-fdiagnostics\-color=never\fR, respectively.
3046 .Sp
3047 The colors are defined by the environment variable \fB\s-1GCC_COLORS\s0\fR.
3048 Its value is a colon-separated list of capabilities and Select Graphic
3049 Rendition (\s-1SGR\s0) substrings. \s-1SGR\s0 commands are interpreted by the
3050 terminal or terminal emulator.  (See the section in the documentation
3051 of your text terminal for permitted values and their meanings as
3052 character attributes.)  These substring values are integers in decimal
3053 representation and can be concatenated with semicolons.
3054 Common values to concatenate include
3055 \&\fB1\fR for bold,
3056 \&\fB4\fR for underline,
3057 \&\fB5\fR for blink,
3058 \&\fB7\fR for inverse,
3059 \&\fB39\fR for default foreground color,
3060 \&\fB30\fR to \fB37\fR for foreground colors,
3061 \&\fB90\fR to \fB97\fR for 16\-color mode foreground colors,
3062 \&\fB38;5;0\fR to \fB38;5;255\fR
3063 for 88\-color and 256\-color modes foreground colors,
3064 \&\fB49\fR for default background color,
3065 \&\fB40\fR to \fB47\fR for background colors,
3066 \&\fB100\fR to \fB107\fR for 16\-color mode background colors,
3067 and \fB48;5;0\fR to \fB48;5;255\fR
3068 for 88\-color and 256\-color modes background colors.
3069 .Sp
3070 The default \fB\s-1GCC_COLORS\s0\fR is
3071 .Sp
3072 .Vb 1
3073 \&        error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01
3074 .Ve
3075 .Sp
3076 where \fB01;31\fR is bold red, \fB01;35\fR is bold magenta,
3077 \&\fB01;36\fR is bold cyan, \fB01;32\fR is bold green and
3078 \&\fB01\fR is bold. Setting \fB\s-1GCC_COLORS\s0\fR to the empty
3079 string disables colors.
3080 Supported capabilities are as follows.
3081 .RS 4
3082 .ie n .IP """error=""" 4
3083 .el .IP "\f(CWerror=\fR" 4
3084 .IX Item "error="
3085 \&\s-1SGR\s0 substring for error: markers.
3086 .ie n .IP """warning=""" 4
3087 .el .IP "\f(CWwarning=\fR" 4
3088 .IX Item "warning="
3089 \&\s-1SGR\s0 substring for warning: markers.
3090 .ie n .IP """note=""" 4
3091 .el .IP "\f(CWnote=\fR" 4
3092 .IX Item "note="
3093 \&\s-1SGR\s0 substring for note: markers.
3094 .ie n .IP """caret=""" 4
3095 .el .IP "\f(CWcaret=\fR" 4
3096 .IX Item "caret="
3097 \&\s-1SGR\s0 substring for caret line.
3098 .ie n .IP """locus=""" 4
3099 .el .IP "\f(CWlocus=\fR" 4
3100 .IX Item "locus="
3101 \&\s-1SGR\s0 substring for location information, \fBfile:line\fR or
3102 \&\fBfile:line:column\fR etc.
3103 .ie n .IP """quote=""" 4
3104 .el .IP "\f(CWquote=\fR" 4
3105 .IX Item "quote="
3106 \&\s-1SGR\s0 substring for information printed within quotes.
3107 .RE
3108 .RS 4
3109 .RE
3110 .IP "\fB\-fno\-diagnostics\-show\-option\fR" 4
3111 .IX Item "-fno-diagnostics-show-option"
3112 By default, each diagnostic emitted includes text indicating the
3113 command-line option that directly controls the diagnostic (if such an
3114 option is known to the diagnostic machinery).  Specifying the
3115 \&\fB\-fno\-diagnostics\-show\-option\fR flag suppresses that behavior.
3116 .IP "\fB\-fno\-diagnostics\-show\-caret\fR" 4
3117 .IX Item "-fno-diagnostics-show-caret"
3118 By default, each diagnostic emitted includes the original source line
3119 and a caret '^' indicating the column.  This option suppresses this
3120 information.  The source line is truncated to \fIn\fR characters, if
3121 the \fB\-fmessage\-length=n\fR option is given.  When the output is done
3122 to the terminal, the width is limited to the width given by the
3123 \&\fB\s-1COLUMNS\s0\fR environment variable or, if not set, to the terminal width.
3124 .Sh "Options to Request or Suppress Warnings"
3125 .IX Subsection "Options to Request or Suppress Warnings"
3126 Warnings are diagnostic messages that report constructions that
3127 are not inherently erroneous but that are risky or suggest there
3128 may have been an error.
3129 .PP
3130 The following language-independent options do not enable specific
3131 warnings but control the kinds of diagnostics produced by \s-1GCC\s0.
3132 .IP "\fB\-fsyntax\-only\fR" 4
3133 .IX Item "-fsyntax-only"
3134 Check the code for syntax errors, but don't do anything beyond that.
3135 .IP "\fB\-fmax\-errors=\fR\fIn\fR" 4
3136 .IX Item "-fmax-errors=n"
3137 Limits the maximum number of error messages to \fIn\fR, at which point
3138 \&\s-1GCC\s0 bails out rather than attempting to continue processing the source
3139 code.  If \fIn\fR is 0 (the default), there is no limit on the number
3140 of error messages produced.  If \fB\-Wfatal\-errors\fR is also
3141 specified, then \fB\-Wfatal\-errors\fR takes precedence over this
3142 option.
3143 .IP "\fB\-w\fR" 4
3144 .IX Item "-w"
3145 Inhibit all warning messages.
3146 .IP "\fB\-Werror\fR" 4
3147 .IX Item "-Werror"
3148 Make all warnings into errors.
3149 .IP "\fB\-Werror=\fR" 4
3150 .IX Item "-Werror="
3151 Make the specified warning into an error.  The specifier for a warning
3152 is appended; for example \fB\-Werror=switch\fR turns the warnings
3153 controlled by \fB\-Wswitch\fR into errors.  This switch takes a
3154 negative form, to be used to negate \fB\-Werror\fR for specific
3155 warnings; for example \fB\-Wno\-error=switch\fR makes
3156 \&\fB\-Wswitch\fR warnings not be errors, even when \fB\-Werror\fR
3157 is in effect.
3158 .Sp
3159 The warning message for each controllable warning includes the
3160 option that controls the warning.  That option can then be used with
3161 \&\fB\-Werror=\fR and \fB\-Wno\-error=\fR as described above.
3162 (Printing of the option in the warning message can be disabled using the
3163 \&\fB\-fno\-diagnostics\-show\-option\fR flag.)
3164 .Sp
3165 Note that specifying \fB\-Werror=\fR\fIfoo\fR automatically implies
3166 \&\fB\-W\fR\fIfoo\fR.  However, \fB\-Wno\-error=\fR\fIfoo\fR does not
3167 imply anything.
3168 .IP "\fB\-Wfatal\-errors\fR" 4
3169 .IX Item "-Wfatal-errors"
3170 This option causes the compiler to abort compilation on the first error
3171 occurred rather than trying to keep going and printing further error
3172 messages.
3173 .PP
3174 You can request many specific warnings with options beginning with
3175 \&\fB\-W\fR, for example \fB\-Wimplicit\fR to request warnings on
3176 implicit declarations.  Each of these specific warning options also
3177 has a negative form beginning \fB\-Wno\-\fR to turn off warnings; for
3178 example, \fB\-Wno\-implicit\fR.  This manual lists only one of the
3179 two forms, whichever is not the default.  For further
3180 language-specific options also refer to \fB\*(C+ Dialect Options\fR and
3181 \&\fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
3182 .PP
3183 Some options, such as \fB\-Wall\fR and \fB\-Wextra\fR, turn on other
3184 options, such as \fB\-Wunused\fR, which may turn on further options,
3185 such as \fB\-Wunused\-value\fR. The combined effect of positive and
3186 negative forms is that more specific options have priority over less
3187 specific ones, independently of their position in the command-line. For
3188 options of the same specificity, the last one takes effect. Options
3189 enabled or disabled via pragmas take effect
3190 as if they appeared at the end of the command-line.
3191 .PP
3192 When an unrecognized warning option is requested (e.g.,
3193 \&\fB\-Wunknown\-warning\fR), \s-1GCC\s0 emits a diagnostic stating
3194 that the option is not recognized.  However, if the \fB\-Wno\-\fR form
3195 is used, the behavior is slightly different: no diagnostic is
3196 produced for \fB\-Wno\-unknown\-warning\fR unless other diagnostics
3197 are being produced.  This allows the use of new \fB\-Wno\-\fR options
3198 with old compilers, but if something goes wrong, the compiler
3199 warns that an unrecognized option is present.
3200 .IP "\fB\-Wpedantic\fR" 4
3201 .IX Item "-Wpedantic"
3202 .PD 0
3203 .IP "\fB\-pedantic\fR" 4
3204 .IX Item "-pedantic"
3205 .PD
3206 Issue all the warnings demanded by strict \s-1ISO\s0 C and \s-1ISO\s0 \*(C+;
3207 reject all programs that use forbidden extensions, and some other
3208 programs that do not follow \s-1ISO\s0 C and \s-1ISO\s0 \*(C+.  For \s-1ISO\s0 C, follows the
3209 version of the \s-1ISO\s0 C standard specified by any \fB\-std\fR option used.
3210 .Sp
3211 Valid \s-1ISO\s0 C and \s-1ISO\s0 \*(C+ programs should compile properly with or without
3212 this option (though a rare few require \fB\-ansi\fR or a
3213 \&\fB\-std\fR option specifying the required version of \s-1ISO\s0 C).  However,
3214 without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
3215 features are supported as well.  With this option, they are rejected.
3216 .Sp
3217 \&\fB\-Wpedantic\fR does not cause warning messages for use of the
3218 alternate keywords whose names begin and end with \fB_\|_\fR.  Pedantic
3219 warnings are also disabled in the expression that follows
3220 \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR.  However, only system header files should use
3221 these escape routes; application programs should avoid them.
3222 .Sp
3223 Some users try to use \fB\-Wpedantic\fR to check programs for strict \s-1ISO\s0
3224 C conformance.  They soon find that it does not do quite what they want:
3225 it finds some non-ISO practices, but not all\-\-\-only those for which
3226 \&\s-1ISO\s0 C \fIrequires\fR a diagnostic, and some others for which
3227 diagnostics have been added.
3228 .Sp
3229 A feature to report any failure to conform to \s-1ISO\s0 C might be useful in
3230 some instances, but would require considerable additional work and would
3231 be quite different from \fB\-Wpedantic\fR.  We don't have plans to
3232 support such a feature in the near future.
3233 .Sp
3234 Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
3235 extended dialect of C, such as \fBgnu90\fR or \fBgnu99\fR, there is a
3236 corresponding \fIbase standard\fR, the version of \s-1ISO\s0 C on which the \s-1GNU\s0
3237 extended dialect is based.  Warnings from \fB\-Wpedantic\fR are given
3238 where they are required by the base standard.  (It does not make sense
3239 for such warnings to be given only for features not in the specified \s-1GNU\s0
3240 C dialect, since by definition the \s-1GNU\s0 dialects of C include all
3241 features the compiler supports with the given option, and there would be
3242 nothing to warn about.)
3243 .IP "\fB\-pedantic\-errors\fR" 4
3244 .IX Item "-pedantic-errors"
3245 Give an error whenever the \fIbase standard\fR (see \fB\-Wpedantic\fR)
3246 requires a diagnostic, in some cases where there is undefined behavior
3247 at compile-time and in some other cases that do not prevent compilation
3248 of programs that are valid according to the standard. This is not
3249 equivalent to \fB\-Werror=pedantic\fR, since there are errors enabled
3250 by this option and not enabled by the latter and vice versa.
3251 .IP "\fB\-Wall\fR" 4
3252 .IX Item "-Wall"
3253 This enables all the warnings about constructions that some users
3254 consider questionable, and that are easy to avoid (or modify to
3255 prevent the warning), even in conjunction with macros.  This also
3256 enables some language-specific warnings described in \fB\*(C+ Dialect
3257 Options\fR and \fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
3258 .Sp
3259 \&\fB\-Wall\fR turns on the following warning flags:
3260 .Sp
3261 \&\fB\-Waddress   
3262 \&\-Warray\-bounds=1\fR (only with\fB \fR\fB\-O2\fR)  
3263 \&\fB\-Wc++11\-compat  \-Wc++14\-compat
3264 \&\-Wchar\-subscripts  
3265 \&\-Wenum\-compare\fR (in C/ObjC; this is on by default in \*(C+) 
3266 \&\fB\-Wimplicit\-int\fR (C and Objective-C only) 
3267 \&\fB\-Wimplicit\-function\-declaration\fR (C and Objective-C only) 
3268 \&\fB\-Wcomment  
3269 \&\-Wformat   
3270 \&\-Wmain\fR (only for C/ObjC and unless\fB \fR\fB\-ffreestanding\fR)  
3271 \&\fB\-Wmaybe\-uninitialized 
3272 \&\-Wmissing\-braces\fR (only for C/ObjC) 
3273 \&\fB\-Wnonnull  
3274 \&\-Wopenmp\-simd 
3275 \&\-Wparentheses  
3276 \&\-Wpointer\-sign  
3277 \&\-Wreorder   
3278 \&\-Wreturn\-type  
3279 \&\-Wsequence\-point  
3280 \&\-Wsign\-compare\fR (only in \*(C+)  
3281 \&\fB\-Wstrict\-aliasing  
3282 \&\-Wstrict\-overflow=1  
3283 \&\-Wswitch  
3284 \&\-Wtrigraphs  
3285 \&\-Wuninitialized  
3286 \&\-Wunknown\-pragmas  
3287 \&\-Wunused\-function  
3288 \&\-Wunused\-label     
3289 \&\-Wunused\-value     
3290 \&\-Wunused\-variable  
3291 \&\-Wvolatile\-register\-var\fR
3292 .Sp
3293 Note that some warning flags are not implied by \fB\-Wall\fR.  Some of
3294 them warn about constructions that users generally do not consider
3295 questionable, but which occasionally you might wish to check for;
3296 others warn about constructions that are necessary or hard to avoid in
3297 some cases, and there is no simple way to modify the code to suppress
3298 the warning. Some of them are enabled by \fB\-Wextra\fR but many of
3299 them must be enabled individually.
3300 .IP "\fB\-Wextra\fR" 4
3301 .IX Item "-Wextra"
3302 This enables some extra warning flags that are not enabled by
3303 \&\fB\-Wall\fR. (This option used to be called \fB\-W\fR.  The older
3304 name is still supported, but the newer name is more descriptive.)
3305 .Sp
3306 \&\fB\-Wclobbered  
3307 \&\-Wempty\-body  
3308 \&\-Wignored\-qualifiers 
3309 \&\-Wmissing\-field\-initializers  
3310 \&\-Wmissing\-parameter\-type\fR (C only)  
3311 \&\fB\-Wold\-style\-declaration\fR (C only)  
3312 \&\fB\-Woverride\-init  
3313 \&\-Wsign\-compare  
3314 \&\-Wtype\-limits  
3315 \&\-Wuninitialized  
3316 \&\-Wunused\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR) 
3317 \&\fB\-Wunused\-but\-set\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR)  \fB \fR
3318 .Sp
3319 The option \fB\-Wextra\fR also prints warning messages for the
3320 following cases:
3321 .RS 4
3322 .IP "*" 4
3323 A pointer is compared against integer zero with \f(CW\*(C`<\*(C'\fR, \f(CW\*(C`<=\*(C'\fR,
3324 \&\f(CW\*(C`>\*(C'\fR, or \f(CW\*(C`>=\*(C'\fR.
3325 .IP "*" 4
3326 (\*(C+ only) An enumerator and a non-enumerator both appear in a
3327 conditional expression.
3328 .IP "*" 4
3329 (\*(C+ only) Ambiguous virtual bases.
3330 .IP "*" 4
3331 (\*(C+ only) Subscripting an array that has been declared \f(CW\*(C`register\*(C'\fR.
3332 .IP "*" 4
3333 (\*(C+ only) Taking the address of a variable that has been declared
3334 \&\f(CW\*(C`register\*(C'\fR.
3335 .IP "*" 4
3336 (\*(C+ only) A base class is not initialized in a derived class's copy
3337 constructor.
3338 .RE
3339 .RS 4
3340 .RE
3341 .IP "\fB\-Wchar\-subscripts\fR" 4
3342 .IX Item "-Wchar-subscripts"
3343 Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR.  This is a common cause
3344 of error, as programmers often forget that this type is signed on some
3345 machines.
3346 This warning is enabled by \fB\-Wall\fR.
3347 .IP "\fB\-Wcomment\fR" 4
3348 .IX Item "-Wcomment"
3349 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
3350 comment, or whenever a Backslash-Newline appears in a \fB//\fR comment.
3351 This warning is enabled by \fB\-Wall\fR.
3352 .IP "\fB\-Wno\-coverage\-mismatch\fR" 4
3353 .IX Item "-Wno-coverage-mismatch"
3354 Warn if feedback profiles do not match when using the
3355 \&\fB\-fprofile\-use\fR option.
3356 If a source file is changed between compiling with \fB\-fprofile\-gen\fR and
3357 with \fB\-fprofile\-use\fR, the files with the profile feedback can fail
3358 to match the source file and \s-1GCC\s0 cannot use the profile feedback
3359 information.  By default, this warning is enabled and is treated as an
3360 error.  \fB\-Wno\-coverage\-mismatch\fR can be used to disable the
3361 warning or \fB\-Wno\-error=coverage\-mismatch\fR can be used to
3362 disable the error.  Disabling the error for this warning can result in
3363 poorly optimized code and is useful only in the
3364 case of very minor changes such as bug fixes to an existing code-base.
3365 Completely disabling the warning is not recommended.
3366 .IP "\fB\-Wno\-cpp\fR" 4
3367 .IX Item "-Wno-cpp"
3368 (C, Objective-C, \*(C+, Objective\-\*(C+ and Fortran only)
3369 .Sp
3370 Suppress warning messages emitted by \f(CW\*(C`#warning\*(C'\fR directives.
3371 .IP "\fB\-Wdouble\-promotion\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
3372 .IX Item "-Wdouble-promotion (C, , Objective-C and Objective- only)"
3373 Give a warning when a value of type \f(CW\*(C`float\*(C'\fR is implicitly
3374 promoted to \f(CW\*(C`double\*(C'\fR.  CPUs with a 32\-bit \*(L"single-precision\*(R"
3375 floating-point unit implement \f(CW\*(C`float\*(C'\fR in hardware, but emulate
3376 \&\f(CW\*(C`double\*(C'\fR in software.  On such a machine, doing computations
3377 using \f(CW\*(C`double\*(C'\fR values is much more expensive because of the
3378 overhead required for software emulation.
3379 .Sp
3380 It is easy to accidentally do computations with \f(CW\*(C`double\*(C'\fR because
3381 floating-point literals are implicitly of type \f(CW\*(C`double\*(C'\fR.  For
3382 example, in:
3383 .Sp
3384 .Vb 4
3385 \&        float area(float radius)
3386 \&        {
3387 \&           return 3.14159 * radius * radius;
3388 \&        }
3389 .Ve
3390 .Sp
3391 the compiler performs the entire computation with \f(CW\*(C`double\*(C'\fR
3392 because the floating-point literal is a \f(CW\*(C`double\*(C'\fR.
3393 .IP "\fB\-Wformat\fR" 4
3394 .IX Item "-Wformat"
3395 .PD 0
3396 .IP "\fB\-Wformat=\fR\fIn\fR" 4
3397 .IX Item "-Wformat=n"
3398 .PD
3399 Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
3400 the arguments supplied have types appropriate to the format string
3401 specified, and that the conversions specified in the format string make
3402 sense.  This includes standard functions, and others specified by format
3403 attributes, in the \f(CW\*(C`printf\*(C'\fR,
3404 \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
3405 not in the C standard) families (or other target-specific families).
3406 Which functions are checked without format attributes having been
3407 specified depends on the standard version selected, and such checks of
3408 functions without the attribute specified are disabled by
3409 \&\fB\-ffreestanding\fR or \fB\-fno\-builtin\fR.
3410 .Sp
3411 The formats are checked against the format features supported by \s-1GNU\s0
3412 libc version 2.2.  These include all \s-1ISO\s0 C90 and C99 features, as well
3413 as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
3414 extensions.  Other library implementations may not support all these
3415 features; \s-1GCC\s0 does not support warning about features that go beyond a
3416 particular library's limitations.  However, if \fB\-Wpedantic\fR is used
3417 with \fB\-Wformat\fR, warnings are given about format features not
3418 in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
3419 since those are not in any version of the C standard).
3420 .RS 4
3421 .IP "\fB\-Wformat=1\fR" 4
3422 .IX Item "-Wformat=1"
3423 .PD 0
3424 .IP "\fB\-Wformat\fR" 4
3425 .IX Item "-Wformat"
3426 .PD
3427 Option \fB\-Wformat\fR is equivalent to \fB\-Wformat=1\fR, and
3428 \&\fB\-Wno\-format\fR is equivalent to \fB\-Wformat=0\fR.  Since
3429 \&\fB\-Wformat\fR also checks for null format arguments for several
3430 functions, \fB\-Wformat\fR also implies \fB\-Wnonnull\fR.  Some
3431 aspects of this level of format checking can be disabled by the
3432 options: \fB\-Wno\-format\-contains\-nul\fR,
3433 \&\fB\-Wno\-format\-extra\-args\fR, and \fB\-Wno\-format\-zero\-length\fR.
3434 \&\fB\-Wformat\fR is enabled by \fB\-Wall\fR.
3435 .IP "\fB\-Wno\-format\-contains\-nul\fR" 4
3436 .IX Item "-Wno-format-contains-nul"
3437 If \fB\-Wformat\fR is specified, do not warn about format strings that
3438 contain \s-1NUL\s0 bytes.
3439 .IP "\fB\-Wno\-format\-extra\-args\fR" 4
3440 .IX Item "-Wno-format-extra-args"
3441 If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
3442 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function.  The C standard specifies
3443 that such arguments are ignored.
3444 .Sp
3445 Where the unused arguments lie between used arguments that are
3446 specified with \fB$\fR operand number specifications, normally
3447 warnings are still given, since the implementation could not know what
3448 type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments.  However,
3449 in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option suppresses the
3450 warning if the unused arguments are all pointers, since the Single
3451 Unix Specification says that such unused arguments are allowed.
3452 .IP "\fB\-Wno\-format\-zero\-length\fR" 4
3453 .IX Item "-Wno-format-zero-length"
3454 If \fB\-Wformat\fR is specified, do not warn about zero-length formats.
3455 The C standard specifies that zero-length formats are allowed.
3456 .IP "\fB\-Wformat=2\fR" 4
3457 .IX Item "-Wformat=2"
3458 Enable \fB\-Wformat\fR plus additional format checks.  Currently
3459 equivalent to \fB\-Wformat \-Wformat\-nonliteral \-Wformat\-security
3460 \&\-Wformat\-y2k\fR.
3461 .IP "\fB\-Wformat\-nonliteral\fR" 4
3462 .IX Item "-Wformat-nonliteral"
3463 If \fB\-Wformat\fR is specified, also warn if the format string is not a
3464 string literal and so cannot be checked, unless the format function
3465 takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
3466 .IP "\fB\-Wformat\-security\fR" 4
3467 .IX Item "-Wformat-security"
3468 If \fB\-Wformat\fR is specified, also warn about uses of format
3469 functions that represent possible security problems.  At present, this
3470 warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
3471 format string is not a string literal and there are no format arguments,
3472 as in \f(CW\*(C`printf (foo);\*(C'\fR.  This may be a security hole if the format
3473 string came from untrusted input and contains \fB\f(CB%n\fB\fR.  (This is
3474 currently a subset of what \fB\-Wformat\-nonliteral\fR warns about, but
3475 in future warnings may be added to \fB\-Wformat\-security\fR that are not
3476 included in \fB\-Wformat\-nonliteral\fR.)
3477 .IP "\fB\-Wformat\-signedness\fR" 4
3478 .IX Item "-Wformat-signedness"
3479 If \fB\-Wformat\fR is specified, also warn if the format string
3480 requires an unsigned argument and the argument is signed and vice versa.
3481 .IP "\fB\-Wformat\-y2k\fR" 4
3482 .IX Item "-Wformat-y2k"
3483 If \fB\-Wformat\fR is specified, also warn about \f(CW\*(C`strftime\*(C'\fR
3484 formats that may yield only a two-digit year.
3485 .RE
3486 .RS 4
3487 .RE
3488 .IP "\fB\-Wnonnull\fR" 4
3489 .IX Item "-Wnonnull"
3490 Warn about passing a null pointer for arguments marked as
3491 requiring a non-null value by the \f(CW\*(C`nonnull\*(C'\fR function attribute.
3492 .Sp
3493 \&\fB\-Wnonnull\fR is included in \fB\-Wall\fR and \fB\-Wformat\fR.  It
3494 can be disabled with the \fB\-Wno\-nonnull\fR option.
3495 .IP "\fB\-Winit\-self\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
3496 .IX Item "-Winit-self (C, , Objective-C and Objective- only)"
3497 Warn about uninitialized variables that are initialized with themselves.
3498 Note this option can only be used with the \fB\-Wuninitialized\fR option.
3499 .Sp
3500 For example, \s-1GCC\s0 warns about \f(CW\*(C`i\*(C'\fR being uninitialized in the
3501 following snippet only when \fB\-Winit\-self\fR has been specified:
3502 .Sp
3503 .Vb 5
3504 \&        int f()
3505 \&        {
3506 \&          int i = i;
3507 \&          return i;
3508 \&        }
3509 .Ve
3510 .Sp
3511 This warning is enabled by \fB\-Wall\fR in \*(C+.
3512 .IP "\fB\-Wimplicit\-int\fR (C and Objective-C only)" 4
3513 .IX Item "-Wimplicit-int (C and Objective-C only)"
3514 Warn when a declaration does not specify a type.
3515 This warning is enabled by \fB\-Wall\fR.
3516 .IP "\fB\-Wimplicit\-function\-declaration\fR (C and Objective-C only)" 4
3517 .IX Item "-Wimplicit-function-declaration (C and Objective-C only)"
3518 Give a warning whenever a function is used before being declared. In
3519 C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this warning is
3520 enabled by default and it is made into an error by
3521 \&\fB\-pedantic\-errors\fR. This warning is also enabled by
3522 \&\fB\-Wall\fR.
3523 .IP "\fB\-Wimplicit\fR (C and Objective-C only)" 4
3524 .IX Item "-Wimplicit (C and Objective-C only)"
3525 Same as \fB\-Wimplicit\-int\fR and \fB\-Wimplicit\-function\-declaration\fR.
3526 This warning is enabled by \fB\-Wall\fR.
3527 .IP "\fB\-Wignored\-qualifiers\fR (C and \*(C+ only)" 4
3528 .IX Item "-Wignored-qualifiers (C and  only)"
3529 Warn if the return type of a function has a type qualifier
3530 such as \f(CW\*(C`const\*(C'\fR.  For \s-1ISO\s0 C such a type qualifier has no effect,
3531 since the value returned by a function is not an lvalue.
3532 For \*(C+, the warning is only emitted for scalar types or \f(CW\*(C`void\*(C'\fR.
3533 \&\s-1ISO\s0 C prohibits qualified \f(CW\*(C`void\*(C'\fR return types on function
3534 definitions, so such return types always receive a warning
3535 even without this option.
3536 .Sp
3537 This warning is also enabled by \fB\-Wextra\fR.
3538 .IP "\fB\-Wmain\fR" 4
3539 .IX Item "-Wmain"
3540 Warn if the type of \f(CW\*(C`main\*(C'\fR is suspicious.  \f(CW\*(C`main\*(C'\fR should be
3541 a function with external linkage, returning int, taking either zero
3542 arguments, two, or three arguments of appropriate types.  This warning
3543 is enabled by default in \*(C+ and is enabled by either \fB\-Wall\fR
3544 or \fB\-Wpedantic\fR.
3545 .IP "\fB\-Wmissing\-braces\fR" 4
3546 .IX Item "-Wmissing-braces"
3547 Warn if an aggregate or union initializer is not fully bracketed.  In
3548 the following example, the initializer for \f(CW\*(C`a\*(C'\fR is not fully
3549 bracketed, but that for \f(CW\*(C`b\*(C'\fR is fully bracketed.  This warning is
3550 enabled by \fB\-Wall\fR in C.
3551 .Sp
3552 .Vb 2
3553 \&        int a[2][2] = { 0, 1, 2, 3 };
3554 \&        int b[2][2] = { { 0, 1 }, { 2, 3 } };
3555 .Ve
3556 .Sp
3557 This warning is enabled by \fB\-Wall\fR.
3558 .IP "\fB\-Wmissing\-include\-dirs\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
3559 .IX Item "-Wmissing-include-dirs (C, , Objective-C and Objective- only)"
3560 Warn if a user-supplied include directory does not exist.
3561 .IP "\fB\-Wparentheses\fR" 4
3562 .IX Item "-Wparentheses"
3563 Warn if parentheses are omitted in certain contexts, such
3564 as when there is an assignment in a context where a truth value
3565 is expected, or when operators are nested whose precedence people
3566 often get confused about.
3567 .Sp
3568 Also warn if a comparison like \f(CW\*(C`x<=y<=z\*(C'\fR appears; this is
3569 equivalent to \f(CW\*(C`(x<=y ? 1 : 0) <= z\*(C'\fR, which is a different
3570 interpretation from that of ordinary mathematical notation.
3571 .Sp
3572 Also warn about constructions where there may be confusion to which
3573 \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs.  Here is an example of
3574 such a case:
3575 .Sp
3576 .Vb 7
3577 \&        {
3578 \&          if (a)
3579 \&            if (b)
3580 \&              foo ();
3581 \&          else
3582 \&            bar ();
3583 \&        }
3584 .Ve
3585 .Sp
3586 In C/\*(C+, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible
3587 \&\f(CW\*(C`if\*(C'\fR statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR.  This is
3588 often not what the programmer expected, as illustrated in the above
3589 example by indentation the programmer chose.  When there is the
3590 potential for this confusion, \s-1GCC\s0 issues a warning when this flag
3591 is specified.  To eliminate the warning, add explicit braces around
3592 the innermost \f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR
3593 can belong to the enclosing \f(CW\*(C`if\*(C'\fR.  The resulting code
3594 looks like this:
3595 .Sp
3596 .Vb 9
3597 \&        {
3598 \&          if (a)
3599 \&            {
3600 \&              if (b)
3601 \&                foo ();
3602 \&              else
3603 \&                bar ();
3604 \&            }
3605 \&        }
3606 .Ve
3607 .Sp
3608 Also warn for dangerous uses of the \s-1GNU\s0 extension to
3609 \&\f(CW\*(C`?:\*(C'\fR with omitted middle operand. When the condition
3610 in the \f(CW\*(C`?\*(C'\fR: operator is a boolean expression, the omitted value is
3611 always 1.  Often programmers expect it to be a value computed
3612 inside the conditional expression instead.
3613 .Sp
3614 This warning is enabled by \fB\-Wall\fR.
3615 .IP "\fB\-Wsequence\-point\fR" 4
3616 .IX Item "-Wsequence-point"
3617 Warn about code that may have undefined semantics because of violations
3618 of sequence point rules in the C and \*(C+ standards.
3619 .Sp
3620 The C and \*(C+ standards define the order in which expressions in a C/\*(C+
3621 program are evaluated in terms of \fIsequence points\fR, which represent
3622 a partial ordering between the execution of parts of the program: those
3623 executed before the sequence point, and those executed after it.  These
3624 occur after the evaluation of a full expression (one which is not part
3625 of a larger expression), after the evaluation of the first operand of a
3626 \&\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
3627 function is called (but after the evaluation of its arguments and the
3628 expression denoting the called function), and in certain other places.
3629 Other than as expressed by the sequence point rules, the order of
3630 evaluation of subexpressions of an expression is not specified.  All
3631 these rules describe only a partial order rather than a total order,
3632 since, for example, if two functions are called within one expression
3633 with no sequence point between them, the order in which the functions
3634 are called is not specified.  However, the standards committee have
3635 ruled that function calls do not overlap.
3636 .Sp
3637 It is not specified when between sequence points modifications to the
3638 values of objects take effect.  Programs whose behavior depends on this
3639 have undefined behavior; the C and \*(C+ standards specify that \*(L"Between
3640 the previous and next sequence point an object shall have its stored
3641 value modified at most once by the evaluation of an expression.
3642 Furthermore, the prior value shall be read only to determine the value
3643 to be stored.\*(R".  If a program breaks these rules, the results on any
3644 particular implementation are entirely unpredictable.
3645 .Sp
3646 Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
3647 = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR.  Some more complicated cases are not
3648 diagnosed by this option, and it may give an occasional false positive
3649 result, but in general it has been found fairly effective at detecting
3650 this sort of problem in programs.
3651 .Sp
3652 The standard is worded confusingly, therefore there is some debate
3653 over the precise meaning of the sequence point rules in subtle cases.
3654 Links to discussions of the problem, including proposed formal
3655 definitions, may be found on the \s-1GCC\s0 readings page, at
3656 <\fBhttp://gcc.gnu.org/readings.html\fR>.
3657 .Sp
3658 This warning is enabled by \fB\-Wall\fR for C and \*(C+.
3659 .IP "\fB\-Wno\-return\-local\-addr\fR" 4
3660 .IX Item "-Wno-return-local-addr"
3661 Do not warn about returning a pointer (or in \*(C+, a reference) to a
3662 variable that goes out of scope after the function returns.
3663 .IP "\fB\-Wreturn\-type\fR" 4
3664 .IX Item "-Wreturn-type"
3665 Warn whenever a function is defined with a return type that defaults
3666 to \f(CW\*(C`int\*(C'\fR.  Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
3667 return value in a function whose return type is not \f(CW\*(C`void\*(C'\fR
3668 (falling off the end of the function body is considered returning
3669 without a value), and about a \f(CW\*(C`return\*(C'\fR statement with an
3670 expression in a function whose return type is \f(CW\*(C`void\*(C'\fR.
3671 .Sp
3672 For \*(C+, a function without return type always produces a diagnostic
3673 message, even when \fB\-Wno\-return\-type\fR is specified.  The only
3674 exceptions are \f(CW\*(C`main\*(C'\fR and functions defined in system headers.
3675 .Sp
3676 This warning is enabled by \fB\-Wall\fR.
3677 .IP "\fB\-Wshift\-count\-negative\fR" 4
3678 .IX Item "-Wshift-count-negative"
3679 Warn if shift count is negative. This warning is enabled by default.
3680 .IP "\fB\-Wshift\-count\-overflow\fR" 4
3681 .IX Item "-Wshift-count-overflow"
3682 Warn if shift count >= width of type. This warning is enabled by default.
3683 .IP "\fB\-Wswitch\fR" 4
3684 .IX Item "-Wswitch"
3685 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
3686 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
3687 enumeration.  (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
3688 warning.)  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
3689 provoke warnings when this option is used (even if there is a
3690 \&\f(CW\*(C`default\*(C'\fR label).
3691 This warning is enabled by \fB\-Wall\fR.
3692 .IP "\fB\-Wswitch\-default\fR" 4
3693 .IX Item "-Wswitch-default"
3694 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement does not have a \f(CW\*(C`default\*(C'\fR
3695 case.
3696 .IP "\fB\-Wswitch\-enum\fR" 4
3697 .IX Item "-Wswitch-enum"
3698 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
3699 and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
3700 enumeration.  \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
3701 provoke warnings when this option is used.  The only difference
3702 between \fB\-Wswitch\fR and this option is that this option gives a
3703 warning about an omitted enumeration code even if there is a
3704 \&\f(CW\*(C`default\*(C'\fR label.
3705 .IP "\fB\-Wswitch\-bool\fR" 4
3706 .IX Item "-Wswitch-bool"
3707 Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of boolean type.
3708 It is possible to suppress this warning by casting the controlling
3709 expression to a type other than \f(CW\*(C`bool\*(C'\fR.  For example:
3710 .Sp
3711 .Vb 4
3712 \&        switch ((int) (a == 4))
3713 \&          {
3714 \&          ...
3715 \&          }
3716 .Ve
3717 .Sp
3718 This warning is enabled by default for C and \*(C+ programs.
3719 .IP "\fB\-Wsync\-nand\fR (C and \*(C+ only)" 4
3720 .IX Item "-Wsync-nand (C and  only)"
3721 Warn when \f(CW\*(C`_\|_sync_fetch_and_nand\*(C'\fR and \f(CW\*(C`_\|_sync_nand_and_fetch\*(C'\fR
3722 built-in functions are used.  These functions changed semantics in \s-1GCC\s0 4.4.
3723 .IP "\fB\-Wtrigraphs\fR" 4
3724 .IX Item "-Wtrigraphs"
3725 Warn if any trigraphs are encountered that might change the meaning of
3726 the program (trigraphs within comments are not warned about).
3727 This warning is enabled by \fB\-Wall\fR.
3728 .IP "\fB\-Wunused\-but\-set\-parameter\fR" 4
3729 .IX Item "-Wunused-but-set-parameter"
3730 Warn whenever a function parameter is assigned to, but otherwise unused
3731 (aside from its declaration).
3732 .Sp
3733 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
3734 .Sp
3735 This warning is also enabled by \fB\-Wunused\fR together with
3736 \&\fB\-Wextra\fR.
3737 .IP "\fB\-Wunused\-but\-set\-variable\fR" 4
3738 .IX Item "-Wunused-but-set-variable"
3739 Warn whenever a local variable is assigned to, but otherwise unused
3740 (aside from its declaration).
3741 This warning is enabled by \fB\-Wall\fR.
3742 .Sp
3743 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
3744 .Sp
3745 This warning is also enabled by \fB\-Wunused\fR, which is enabled
3746 by \fB\-Wall\fR.
3747 .IP "\fB\-Wunused\-function\fR" 4
3748 .IX Item "-Wunused-function"
3749 Warn whenever a static function is declared but not defined or a
3750 non-inline static function is unused.
3751 This warning is enabled by \fB\-Wall\fR.
3752 .IP "\fB\-Wunused\-label\fR" 4
3753 .IX Item "-Wunused-label"
3754 Warn whenever a label is declared but not used.
3755 This warning is enabled by \fB\-Wall\fR.
3756 .Sp
3757 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
3758 .IP "\fB\-Wunused\-local\-typedefs\fR (C, Objective-C, \*(C+ and Objective\-\*(C+ only)" 4
3759 .IX Item "-Wunused-local-typedefs (C, Objective-C,  and Objective- only)"
3760 Warn when a typedef locally defined in a function is not used.
3761 This warning is enabled by \fB\-Wall\fR.
3762 .IP "\fB\-Wunused\-parameter\fR" 4
3763 .IX Item "-Wunused-parameter"
3764 Warn whenever a function parameter is unused aside from its declaration.
3765 .Sp
3766 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
3767 .IP "\fB\-Wno\-unused\-result\fR" 4
3768 .IX Item "-Wno-unused-result"
3769 Do not warn if a caller of a function marked with attribute
3770 \&\f(CW\*(C`warn_unused_result\*(C'\fR does not use
3771 its return value. The default is \fB\-Wunused\-result\fR.
3772 .IP "\fB\-Wunused\-variable\fR" 4
3773 .IX Item "-Wunused-variable"
3774 Warn whenever a local variable or non-constant static variable is unused
3775 aside from its declaration.
3776 This warning is enabled by \fB\-Wall\fR.
3777 .Sp
3778 To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
3779 .IP "\fB\-Wunused\-value\fR" 4
3780 .IX Item "-Wunused-value"
3781 Warn whenever a statement computes a result that is explicitly not
3782 used. To suppress this warning cast the unused expression to
3783 \&\f(CW\*(C`void\*(C'\fR. This includes an expression-statement or the left-hand
3784 side of a comma expression that contains no side effects. For example,
3785 an expression such as \f(CW\*(C`x[i,j]\*(C'\fR causes a warning, while
3786 \&\f(CW\*(C`x[(void)i,j]\*(C'\fR does not.
3787 .Sp
3788 This warning is enabled by \fB\-Wall\fR.
3789 .IP "\fB\-Wunused\fR" 4
3790 .IX Item "-Wunused"
3791 All the above \fB\-Wunused\fR options combined.
3792 .Sp
3793 In order to get a warning about an unused function parameter, you must
3794 either specify \fB\-Wextra \-Wunused\fR (note that \fB\-Wall\fR implies
3795 \&\fB\-Wunused\fR), or separately specify \fB\-Wunused\-parameter\fR.
3796 .IP "\fB\-Wuninitialized\fR" 4
3797 .IX Item "-Wuninitialized"
3798 Warn if an automatic variable is used without first being initialized
3799 or if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call. In \*(C+,
3800 warn if a non-static reference or non-static \f(CW\*(C`const\*(C'\fR member
3801 appears in a class without constructors.
3802 .Sp
3803 If you want to warn about code that uses the uninitialized value of the
3804 variable in its own initializer, use the \fB\-Winit\-self\fR option.
3805 .Sp
3806 These warnings occur for individual uninitialized or clobbered
3807 elements of structure, union or array variables as well as for
3808 variables that are uninitialized or clobbered as a whole.  They do
3809 not occur for variables or elements declared \f(CW\*(C`volatile\*(C'\fR.  Because
3810 these warnings depend on optimization, the exact variables or elements
3811 for which there are warnings depends on the precise optimization
3812 options and version of \s-1GCC\s0 used.
3813 .Sp
3814 Note that there may be no warning about a variable that is used only
3815 to compute a value that itself is never used, because such
3816 computations may be deleted by data flow analysis before the warnings
3817 are printed.
3818 .IP "\fB\-Wmaybe\-uninitialized\fR" 4
3819 .IX Item "-Wmaybe-uninitialized"
3820 For an automatic variable, if there exists a path from the function
3821 entry to a use of the variable that is initialized, but there exist
3822 some other paths for which the variable is not initialized, the compiler
3823 emits a warning if it cannot prove the uninitialized paths are not
3824 executed at run time. These warnings are made optional because \s-1GCC\s0 is
3825 not smart enough to see all the reasons why the code might be correct
3826 in spite of appearing to have an error.  Here is one example of how
3827 this can happen:
3828 .Sp
3829 .Vb 12
3830 \&        {
3831 \&          int x;
3832 \&          switch (y)
3833 \&            {
3834 \&            case 1: x = 1;
3835 \&              break;
3836 \&            case 2: x = 4;
3837 \&              break;
3838 \&            case 3: x = 5;
3839 \&            }
3840 \&          foo (x);
3841 \&        }
3842 .Ve
3843 .Sp
3844 If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
3845 always initialized, but \s-1GCC\s0 doesn't know this. To suppress the
3846 warning, you need to provide a default case with \fIassert\fR\|(0) or
3847 similar code.
3848 .Sp
3849 This option also warns when a non-volatile automatic variable might be
3850 changed by a call to \f(CW\*(C`longjmp\*(C'\fR.  These warnings as well are possible
3851 only in optimizing compilation.
3852 .Sp
3853 The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR.  It cannot know
3854 where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
3855 call it at any point in the code.  As a result, you may get a warning
3856 even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
3857 in fact be called at the place that would cause a problem.
3858 .Sp
3859 Some spurious warnings can be avoided if you declare all the functions
3860 you use that never return as \f(CW\*(C`noreturn\*(C'\fR.
3861 .Sp
3862 This warning is enabled by \fB\-Wall\fR or \fB\-Wextra\fR.
3863 .IP "\fB\-Wunknown\-pragmas\fR" 4
3864 .IX Item "-Wunknown-pragmas"
3865 Warn when a \f(CW\*(C`#pragma\*(C'\fR directive is encountered that is not understood by 
3866 \&\s-1GCC\s0.  If this command-line option is used, warnings are even issued
3867 for unknown pragmas in system header files.  This is not the case if
3868 the warnings are only enabled by the \fB\-Wall\fR command-line option.
3869 .IP "\fB\-Wno\-pragmas\fR" 4
3870 .IX Item "-Wno-pragmas"
3871 Do not warn about misuses of pragmas, such as incorrect parameters,
3872 invalid syntax, or conflicts between pragmas.  See also
3873 \&\fB\-Wunknown\-pragmas\fR.
3874 .IP "\fB\-Wstrict\-aliasing\fR" 4
3875 .IX Item "-Wstrict-aliasing"
3876 This option is only active when \fB\-fstrict\-aliasing\fR is active.
3877 It warns about code that might break the strict aliasing rules that the
3878 compiler is using for optimization.  The warning does not catch all
3879 cases, but does attempt to catch the more common pitfalls.  It is
3880 included in \fB\-Wall\fR.
3881 It is equivalent to \fB\-Wstrict\-aliasing=3\fR
3882 .IP "\fB\-Wstrict\-aliasing=n\fR" 4
3883 .IX Item "-Wstrict-aliasing=n"
3884 This option is only active when \fB\-fstrict\-aliasing\fR is active.
3885 It warns about code that might break the strict aliasing rules that the
3886 compiler is using for optimization.
3887 Higher levels correspond to higher accuracy (fewer false positives).
3888 Higher levels also correspond to more effort, similar to the way \fB\-O\fR 
3889 works.
3890 \&\fB\-Wstrict\-aliasing\fR is equivalent to \fB\-Wstrict\-aliasing=3\fR.
3891 .Sp
3892 Level 1: Most aggressive, quick, least accurate.
3893 Possibly useful when higher levels
3894 do not warn but \fB\-fstrict\-aliasing\fR still breaks the code, as it has very few
3895 false negatives.  However, it has many false positives.
3896 Warns for all pointer conversions between possibly incompatible types,
3897 even if never dereferenced.  Runs in the front end only.
3898 .Sp
3899 Level 2: Aggressive, quick, not too precise.
3900 May still have many false positives (not as many as level 1 though),
3901 and few false negatives (but possibly more than level 1).
3902 Unlike level 1, it only warns when an address is taken.  Warns about
3903 incomplete types.  Runs in the front end only.
3904 .Sp
3905 Level 3 (default for \fB\-Wstrict\-aliasing\fR):
3906 Should have very few false positives and few false
3907 negatives.  Slightly slower than levels 1 or 2 when optimization is enabled.
3908 Takes care of the common pun+dereference pattern in the front end:
3909 \&\f(CW\*(C`*(int*)&some_float\*(C'\fR.
3910 If optimization is enabled, it also runs in the back end, where it deals
3911 with multiple statement cases using flow-sensitive points-to information.
3912 Only warns when the converted pointer is dereferenced.
3913 Does not warn about incomplete types.
3914 .IP "\fB\-Wstrict\-overflow\fR" 4
3915 .IX Item "-Wstrict-overflow"
3916 .PD 0
3917 .IP "\fB\-Wstrict\-overflow=\fR\fIn\fR" 4
3918 .IX Item "-Wstrict-overflow=n"
3919 .PD
3920 This option is only active when \fB\-fstrict\-overflow\fR is active.
3921 It warns about cases where the compiler optimizes based on the
3922 assumption that signed overflow does not occur.  Note that it does not
3923 warn about all cases where the code might overflow: it only warns
3924 about cases where the compiler implements some optimization.  Thus
3925 this warning depends on the optimization level.
3926 .Sp
3927 An optimization that assumes that signed overflow does not occur is
3928 perfectly safe if the values of the variables involved are such that
3929 overflow never does, in fact, occur.  Therefore this warning can
3930 easily give a false positive: a warning about code that is not
3931 actually a problem.  To help focus on important issues, several
3932 warning levels are defined.  No warnings are issued for the use of
3933 undefined signed overflow when estimating how many iterations a loop
3934 requires, in particular when determining whether a loop will be
3935 executed at all.
3936 .RS 4
3937 .IP "\fB\-Wstrict\-overflow=1\fR" 4
3938 .IX Item "-Wstrict-overflow=1"
3939 Warn about cases that are both questionable and easy to avoid.  For
3940 example,  with \fB\-fstrict\-overflow\fR, the compiler simplifies
3941 \&\f(CW\*(C`x + 1 > x\*(C'\fR to \f(CW1\fR.  This level of
3942 \&\fB\-Wstrict\-overflow\fR is enabled by \fB\-Wall\fR; higher levels
3943 are not, and must be explicitly requested.
3944 .IP "\fB\-Wstrict\-overflow=2\fR" 4
3945 .IX Item "-Wstrict-overflow=2"
3946 Also warn about other cases where a comparison is simplified to a
3947 constant.  For example: \f(CW\*(C`abs (x) >= 0\*(C'\fR.  This can only be
3948 simplified when \fB\-fstrict\-overflow\fR is in effect, because
3949 \&\f(CW\*(C`abs (INT_MIN)\*(C'\fR overflows to \f(CW\*(C`INT_MIN\*(C'\fR, which is less than
3950 zero.  \fB\-Wstrict\-overflow\fR (with no level) is the same as
3951 \&\fB\-Wstrict\-overflow=2\fR.
3952 .IP "\fB\-Wstrict\-overflow=3\fR" 4
3953 .IX Item "-Wstrict-overflow=3"
3954 Also warn about other cases where a comparison is simplified.  For
3955 example: \f(CW\*(C`x + 1 > 1\*(C'\fR is simplified to \f(CW\*(C`x > 0\*(C'\fR.
3956 .IP "\fB\-Wstrict\-overflow=4\fR" 4
3957 .IX Item "-Wstrict-overflow=4"
3958 Also warn about other simplifications not covered by the above cases.
3959 For example: \f(CW\*(C`(x * 10) / 5\*(C'\fR is simplified to \f(CW\*(C`x * 2\*(C'\fR.
3960 .IP "\fB\-Wstrict\-overflow=5\fR" 4
3961 .IX Item "-Wstrict-overflow=5"
3962 Also warn about cases where the compiler reduces the magnitude of a
3963 constant involved in a comparison.  For example: \f(CW\*(C`x + 2 > y\*(C'\fR is
3964 simplified to \f(CW\*(C`x + 1 >= y\*(C'\fR.  This is reported only at the
3965 highest warning level because this simplification applies to many
3966 comparisons, so this warning level gives a very large number of
3967 false positives.
3968 .RE
3969 .RS 4
3970 .RE
3971 .IP "\fB\-Wsuggest\-attribute=\fR[\fBpure\fR|\fBconst\fR|\fBnoreturn\fR|\fBformat\fR]" 4
3972 .IX Item "-Wsuggest-attribute=[pure|const|noreturn|format]"
3973 Warn for cases where adding an attribute may be beneficial. The
3974 attributes currently supported are listed below.
3975 .RS 4
3976 .IP "\fB\-Wsuggest\-attribute=pure\fR" 4
3977 .IX Item "-Wsuggest-attribute=pure"
3978 .PD 0
3979 .IP "\fB\-Wsuggest\-attribute=const\fR" 4
3980 .IX Item "-Wsuggest-attribute=const"
3981 .IP "\fB\-Wsuggest\-attribute=noreturn\fR" 4
3982 .IX Item "-Wsuggest-attribute=noreturn"
3983 .PD
3984 Warn about functions that might be candidates for attributes
3985 \&\f(CW\*(C`pure\*(C'\fR, \f(CW\*(C`const\*(C'\fR or \f(CW\*(C`noreturn\*(C'\fR.  The compiler only warns for
3986 functions visible in other compilation units or (in the case of \f(CW\*(C`pure\*(C'\fR and
3987 \&\f(CW\*(C`const\*(C'\fR) if it cannot prove that the function returns normally. A function
3988 returns normally if it doesn't contain an infinite loop or return abnormally
3989 by throwing, calling \f(CW\*(C`abort\*(C'\fR or trapping.  This analysis requires option
3990 \&\fB\-fipa\-pure\-const\fR, which is enabled by default at \fB\-O\fR and
3991 higher.  Higher optimization levels improve the accuracy of the analysis.
3992 .IP "\fB\-Wsuggest\-attribute=format\fR" 4
3993 .IX Item "-Wsuggest-attribute=format"
3994 .PD 0
3995 .IP "\fB\-Wmissing\-format\-attribute\fR" 4
3996 .IX Item "-Wmissing-format-attribute"
3997 .PD
3998 Warn about function pointers that might be candidates for \f(CW\*(C`format\*(C'\fR
3999 attributes.  Note these are only possible candidates, not absolute ones.
4000 \&\s-1GCC\s0 guesses that function pointers with \f(CW\*(C`format\*(C'\fR attributes that
4001 are used in assignment, initialization, parameter passing or return
4002 statements should have a corresponding \f(CW\*(C`format\*(C'\fR attribute in the
4003 resulting type.  I.e. the left-hand side of the assignment or
4004 initialization, the type of the parameter variable, or the return type
4005 of the containing function respectively should also have a \f(CW\*(C`format\*(C'\fR
4006 attribute to avoid the warning.
4007 .Sp
4008 \&\s-1GCC\s0 also warns about function definitions that might be
4009 candidates for \f(CW\*(C`format\*(C'\fR attributes.  Again, these are only
4010 possible candidates.  \s-1GCC\s0 guesses that \f(CW\*(C`format\*(C'\fR attributes
4011 might be appropriate for any function that calls a function like
4012 \&\f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
4013 case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
4014 appropriate may not be detected.
4015 .RE
4016 .RS 4
4017 .RE
4018 .IP "\fB\-Wsuggest\-final\-types\fR" 4
4019 .IX Item "-Wsuggest-final-types"
4020 Warn about types with virtual methods where code quality would be improved
4021 if the type were declared with the \*(C+11 \f(CW\*(C`final\*(C'\fR specifier, 
4022 or, if possible,
4023 declared in an anonymous namespace. This allows \s-1GCC\s0 to more aggressively
4024 devirtualize the polymorphic calls. This warning is more effective with link
4025 time optimization, where the information about the class hierarchy graph is
4026 more complete.
4027 .IP "\fB\-Wsuggest\-final\-methods\fR" 4
4028 .IX Item "-Wsuggest-final-methods"
4029 Warn about virtual methods where code quality would be improved if the method
4030 were declared with the \*(C+11 \f(CW\*(C`final\*(C'\fR specifier, 
4031 or, if possible, its type were
4032 declared in an anonymous namespace or with the \f(CW\*(C`final\*(C'\fR specifier.
4033 This warning is
4034 more effective with link time optimization, where the information about the
4035 class hierarchy graph is more complete. It is recommended to first consider
4036 suggestions of \fB\-Wsuggest\-final\-types\fR and then rebuild with new
4037 annotations.
4038 .IP "\fB\-Wsuggest\-override\fR" 4
4039 .IX Item "-Wsuggest-override"
4040 Warn about overriding virtual functions that are not marked with the override
4041 keyword.
4042 .IP "\fB\-Warray\-bounds\fR" 4
4043 .IX Item "-Warray-bounds"
4044 .PD 0
4045 .IP "\fB\-Warray\-bounds=\fR\fIn\fR" 4
4046 .IX Item "-Warray-bounds=n"
4047 .PD
4048 This option is only active when \fB\-ftree\-vrp\fR is active
4049 (default for \fB\-O2\fR and above). It warns about subscripts to arrays
4050 that are always out of bounds. This warning is enabled by \fB\-Wall\fR.
4051 .RS 4
4052 .IP "\fB\-Warray\-bounds=1\fR" 4
4053 .IX Item "-Warray-bounds=1"
4054 This is the warning level of \fB\-Warray\-bounds\fR and is enabled
4055 by \fB\-Wall\fR; higher levels are not, and must be explicitly requested.
4056 .IP "\fB\-Warray\-bounds=2\fR" 4
4057 .IX Item "-Warray-bounds=2"
4058 This warning level also warns about out of bounds access for
4059 arrays at the end of a struct and for arrays accessed through
4060 pointers. This warning level may give a larger number of
4061 false positives and is deactivated by default.
4062 .RE
4063 .RS 4
4064 .RE
4065 .IP "\fB\-Wbool\-compare\fR" 4
4066 .IX Item "-Wbool-compare"
4067 Warn about boolean expression compared with an integer value different from
4068 \&\f(CW\*(C`true\*(C'\fR/\f(CW\*(C`false\*(C'\fR.  For instance, the following comparison is
4069 always false:
4070 .Sp
4071 .Vb 3
4072 \&        int n = 5;
4073 \&        ...
4074 \&        if ((n > 1) == 2) { ... }
4075 .Ve
4076 .Sp
4077 This warning is enabled by \fB\-Wall\fR.
4078 .IP "\fB\-Wno\-discarded\-qualifiers\fR (C and Objective-C only)" 4
4079 .IX Item "-Wno-discarded-qualifiers (C and Objective-C only)"
4080 Do not warn if type qualifiers on pointers are being discarded.
4081 Typically, the compiler warns if a \f(CW\*(C`const char *\*(C'\fR variable is
4082 passed to a function that takes a \f(CW\*(C`char *\*(C'\fR parameter.  This option
4083 can be used to suppress such a warning.
4084 .IP "\fB\-Wno\-discarded\-array\-qualifiers\fR (C and Objective-C only)" 4
4085 .IX Item "-Wno-discarded-array-qualifiers (C and Objective-C only)"
4086 Do not warn if type qualifiers on arrays which are pointer targets
4087 are being discarded. Typically, the compiler warns if a
4088 \&\f(CW\*(C`const int (*)[]\*(C'\fR variable is passed to a function that
4089 takes a \f(CW\*(C`int (*)[]\*(C'\fR parameter.  This option can be used to
4090 suppress such a warning.
4091 .IP "\fB\-Wno\-incompatible\-pointer\-types\fR (C and Objective-C only)" 4
4092 .IX Item "-Wno-incompatible-pointer-types (C and Objective-C only)"
4093 Do not warn when there is a conversion between pointers that have incompatible
4094 types.  This warning is for cases not covered by \fB\-Wno\-pointer\-sign\fR,
4095 which warns for pointer argument passing or assignment with different
4096 signedness.
4097 .IP "\fB\-Wno\-int\-conversion\fR (C and Objective-C only)" 4
4098 .IX Item "-Wno-int-conversion (C and Objective-C only)"
4099 Do not warn about incompatible integer to pointer and pointer to integer
4100 conversions.  This warning is about implicit conversions; for explicit
4101 conversions the warnings \fB\-Wno\-int\-to\-pointer\-cast\fR and
4102 \&\fB\-Wno\-pointer\-to\-int\-cast\fR may be used.
4103 .IP "\fB\-Wno\-div\-by\-zero\fR" 4
4104 .IX Item "-Wno-div-by-zero"
4105 Do not warn about compile-time integer division by zero.  Floating-point
4106 division by zero is not warned about, as it can be a legitimate way of
4107 obtaining infinities and NaNs.
4108 .IP "\fB\-Wsystem\-headers\fR" 4
4109 .IX Item "-Wsystem-headers"
4110 Print warning messages for constructs found in system header files.
4111 Warnings from system headers are normally suppressed, on the assumption
4112 that they usually do not indicate real problems and would only make the
4113 compiler output harder to read.  Using this command-line option tells
4114 \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
4115 code.  However, note that using \fB\-Wall\fR in conjunction with this
4116 option does \fInot\fR warn about unknown pragmas in system
4117 headers\-\-\-for that, \fB\-Wunknown\-pragmas\fR must also be used.
4118 .IP "\fB\-Wtrampolines\fR" 4
4119 .IX Item "-Wtrampolines"
4120 Warn about trampolines generated for pointers to nested functions.
4121 A trampoline is a small piece of data or code that is created at run
4122 time on the stack when the address of a nested function is taken, and is
4123 used to call the nested function indirectly.  For some targets, it is
4124 made up of data only and thus requires no special treatment.  But, for
4125 most targets, it is made up of code and thus requires the stack to be
4126 made executable in order for the program to work properly.
4127 .IP "\fB\-Wfloat\-equal\fR" 4
4128 .IX Item "-Wfloat-equal"
4129 Warn if floating-point values are used in equality comparisons.
4130 .Sp
4131 The idea behind this is that sometimes it is convenient (for the
4132 programmer) to consider floating-point values as approximations to
4133 infinitely precise real numbers.  If you are doing this, then you need
4134 to compute (by analyzing the code, or in some other way) the maximum or
4135 likely maximum error that the computation introduces, and allow for it
4136 when performing comparisons (and when producing output, but that's a
4137 different problem).  In particular, instead of testing for equality, you
4138 should check to see whether the two values have ranges that overlap; and
4139 this is done with the relational operators, so equality comparisons are
4140 probably mistaken.
4141 .IP "\fB\-Wtraditional\fR (C and Objective-C only)" 4
4142 .IX Item "-Wtraditional (C and Objective-C only)"
4143 Warn about certain constructs that behave differently in traditional and
4144 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
4145 equivalent, and/or problematic constructs that should be avoided.
4146 .RS 4
4147 .IP "*" 4
4148 Macro parameters that appear within string literals in the macro body.
4149 In traditional C macro replacement takes place within string literals,
4150 but in \s-1ISO\s0 C it does not.
4151 .IP "*" 4
4152 In traditional C, some preprocessor directives did not exist.
4153 Traditional preprocessors only considered a line to be a directive
4154 if the \fB#\fR appeared in column 1 on the line.  Therefore
4155 \&\fB\-Wtraditional\fR warns about directives that traditional C
4156 understands but ignores because the \fB#\fR does not appear as the
4157 first character on the line.  It also suggests you hide directives like
4158 \&\f(CW\*(C`#pragma\*(C'\fR not understood by traditional C by indenting them.  Some
4159 traditional implementations do not recognize \f(CW\*(C`#elif\*(C'\fR, so this option
4160 suggests avoiding it altogether.
4161 .IP "*" 4
4162 A function-like macro that appears without arguments.
4163 .IP "*" 4
4164 The unary plus operator.
4165 .IP "*" 4
4166 The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating-point
4167 constant suffixes.  (Traditional C does support the \fBL\fR suffix on integer
4168 constants.)  Note, these suffixes appear in macros defined in the system
4169 headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
4170 Use of these macros in user code might normally lead to spurious
4171 warnings, however \s-1GCC\s0's integrated preprocessor has enough context to
4172 avoid warning in these cases.
4173 .IP "*" 4
4174 A function declared external in one block and then used after the end of
4175 the block.
4176 .IP "*" 4
4177 A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
4178 .IP "*" 4
4179 A non\-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
4180 This construct is not accepted by some traditional C compilers.
4181 .IP "*" 4
4182 The \s-1ISO\s0 type of an integer constant has a different width or
4183 signedness from its traditional type.  This warning is only issued if
4184 the base of the constant is ten.  I.e. hexadecimal or octal values, which
4185 typically represent bit patterns, are not warned about.
4186 .IP "*" 4
4187 Usage of \s-1ISO\s0 string concatenation is detected.
4188 .IP "*" 4
4189 Initialization of automatic aggregates.
4190 .IP "*" 4
4191 Identifier conflicts with labels.  Traditional C lacks a separate
4192 namespace for labels.
4193 .IP "*" 4
4194 Initialization of unions.  If the initializer is zero, the warning is
4195 omitted.  This is done under the assumption that the zero initializer in
4196 user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
4197 initializer warnings and relies on default initialization to zero in the
4198 traditional C case.
4199 .IP "*" 4
4200 Conversions by prototypes between fixed/floating\-point values and vice
4201 versa.  The absence of these prototypes when compiling with traditional
4202 C causes serious problems.  This is a subset of the possible
4203 conversion warnings; for the full set use \fB\-Wtraditional\-conversion\fR.
4204 .IP "*" 4
4205 Use of \s-1ISO\s0 C style function definitions.  This warning intentionally is
4206 \&\fInot\fR issued for prototype declarations or variadic functions
4207 because these \s-1ISO\s0 C features appear in your code when using
4208 libiberty's traditional C compatibility macros, \f(CW\*(C`PARAMS\*(C'\fR and
4209 \&\f(CW\*(C`VPARAMS\*(C'\fR.  This warning is also bypassed for nested functions
4210 because that feature is already a \s-1GCC\s0 extension and thus not relevant to
4211 traditional C compatibility.
4212 .RE
4213 .RS 4
4214 .RE
4215 .IP "\fB\-Wtraditional\-conversion\fR (C and Objective-C only)" 4
4216 .IX Item "-Wtraditional-conversion (C and Objective-C only)"
4217 Warn if a prototype causes a type conversion that is different from what
4218 would happen to the same argument in the absence of a prototype.  This
4219 includes conversions of fixed point to floating and vice versa, and
4220 conversions changing the width or signedness of a fixed-point argument
4221 except when the same as the default promotion.
4222 .IP "\fB\-Wdeclaration\-after\-statement\fR (C and Objective-C only)" 4
4223 .IX Item "-Wdeclaration-after-statement (C and Objective-C only)"
4224 Warn when a declaration is found after a statement in a block.  This
4225 construct, known from \*(C+, was introduced with \s-1ISO\s0 C99 and is by default
4226 allowed in \s-1GCC\s0.  It is not supported by \s-1ISO\s0 C90.
4227 .IP "\fB\-Wundef\fR" 4
4228 .IX Item "-Wundef"
4229 Warn if an undefined identifier is evaluated in an \f(CW\*(C`#if\*(C'\fR directive.
4230 .IP "\fB\-Wno\-endif\-labels\fR" 4
4231 .IX Item "-Wno-endif-labels"
4232 Do not warn whenever an \f(CW\*(C`#else\*(C'\fR or an \f(CW\*(C`#endif\*(C'\fR are followed by text.
4233 .IP "\fB\-Wshadow\fR" 4
4234 .IX Item "-Wshadow"
4235 Warn whenever a local variable or type declaration shadows another
4236 variable, parameter, type, class member (in \*(C+), or instance variable
4237 (in Objective-C) or whenever a built-in function is shadowed. Note
4238 that in \*(C+, the compiler warns if a local variable shadows an
4239 explicit typedef, but not if it shadows a struct/class/enum.
4240 .IP "\fB\-Wno\-shadow\-ivar\fR (Objective-C only)" 4
4241 .IX Item "-Wno-shadow-ivar (Objective-C only)"
4242 Do not warn whenever a local variable shadows an instance variable in an
4243 Objective-C method.
4244 .IP "\fB\-Wlarger\-than=\fR\fIlen\fR" 4
4245 .IX Item "-Wlarger-than=len"
4246 Warn whenever an object of larger than \fIlen\fR bytes is defined.
4247 .IP "\fB\-Wframe\-larger\-than=\fR\fIlen\fR" 4
4248 .IX Item "-Wframe-larger-than=len"
4249 Warn if the size of a function frame is larger than \fIlen\fR bytes.
4250 The computation done to determine the stack frame size is approximate
4251 and not conservative.
4252 The actual requirements may be somewhat greater than \fIlen\fR
4253 even if you do not get a warning.  In addition, any space allocated
4254 via \f(CW\*(C`alloca\*(C'\fR, variable-length arrays, or related constructs
4255 is not included by the compiler when determining
4256 whether or not to issue a warning.
4257 .IP "\fB\-Wno\-free\-nonheap\-object\fR" 4
4258 .IX Item "-Wno-free-nonheap-object"
4259 Do not warn when attempting to free an object that was not allocated
4260 on the heap.
4261 .IP "\fB\-Wstack\-usage=\fR\fIlen\fR" 4
4262 .IX Item "-Wstack-usage=len"
4263 Warn if the stack usage of a function might be larger than \fIlen\fR bytes.
4264 The computation done to determine the stack usage is conservative.
4265 Any space allocated via \f(CW\*(C`alloca\*(C'\fR, variable-length arrays, or related
4266 constructs is included by the compiler when determining whether or not to
4267 issue a warning.
4268 .Sp
4269 The message is in keeping with the output of \fB\-fstack\-usage\fR.
4270 .RS 4
4271 .IP "*" 4
4272 If the stack usage is fully static but exceeds the specified amount, it's:
4273 .Sp
4274 .Vb 1
4275 \&          warning: stack usage is 1120 bytes
4276 .Ve
4277 .IP "*" 4
4278 If the stack usage is (partly) dynamic but bounded, it's:
4279 .Sp
4280 .Vb 1
4281 \&          warning: stack usage might be 1648 bytes
4282 .Ve
4283 .IP "*" 4
4284 If the stack usage is (partly) dynamic and not bounded, it's:
4285 .Sp
4286 .Vb 1
4287 \&          warning: stack usage might be unbounded
4288 .Ve
4289 .RE
4290 .RS 4
4291 .RE
4292 .IP "\fB\-Wunsafe\-loop\-optimizations\fR" 4
4293 .IX Item "-Wunsafe-loop-optimizations"
4294 Warn if the loop cannot be optimized because the compiler cannot
4295 assume anything on the bounds of the loop indices.  With
4296 \&\fB\-funsafe\-loop\-optimizations\fR warn if the compiler makes
4297 such assumptions.
4298 .IP "\fB\-Wno\-pedantic\-ms\-format\fR (MinGW targets only)" 4
4299 .IX Item "-Wno-pedantic-ms-format (MinGW targets only)"
4300 When used in combination with \fB\-Wformat\fR
4301 and \fB\-pedantic\fR without \s-1GNU\s0 extensions, this option
4302 disables the warnings about non-ISO \f(CW\*(C`printf\*(C'\fR / \f(CW\*(C`scanf\*(C'\fR format
4303 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,
4304 which depend on the \s-1MS\s0 runtime.
4305 .IP "\fB\-Wpointer\-arith\fR" 4
4306 .IX Item "-Wpointer-arith"
4307 Warn about anything that depends on the \*(L"size of\*(R" a function type or
4308 of \f(CW\*(C`void\*(C'\fR.  \s-1GNU\s0 C assigns these types a size of 1, for
4309 convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
4310 to functions.  In \*(C+, warn also when an arithmetic operation involves
4311 \&\f(CW\*(C`NULL\*(C'\fR.  This warning is also enabled by \fB\-Wpedantic\fR.
4312 .IP "\fB\-Wtype\-limits\fR" 4
4313 .IX Item "-Wtype-limits"
4314 Warn if a comparison is always true or always false due to the limited
4315 range of the data type, but do not warn for constant expressions.  For
4316 example, warn if an unsigned variable is compared against zero with
4317 \&\f(CW\*(C`<\*(C'\fR or \f(CW\*(C`>=\*(C'\fR.  This warning is also enabled by
4318 \&\fB\-Wextra\fR.
4319 .IP "\fB\-Wbad\-function\-cast\fR (C and Objective-C only)" 4
4320 .IX Item "-Wbad-function-cast (C and Objective-C only)"
4321 Warn when a function call is cast to a non-matching type.
4322 For example, warn if a call to a function returning an integer type 
4323 is cast to a pointer type.
4324 .IP "\fB\-Wc90\-c99\-compat\fR (C and Objective-C only)" 4
4325 .IX Item "-Wc90-c99-compat (C and Objective-C only)"
4326 Warn about features not present in \s-1ISO\s0 C90, but present in \s-1ISO\s0 C99.
4327 For instance, warn about use of variable length arrays, \f(CW\*(C`long long\*(C'\fR
4328 type, \f(CW\*(C`bool\*(C'\fR type, compound literals, designated initializers, and so
4329 on.  This option is independent of the standards mode.  Warnings are disabled
4330 in the expression that follows \f(CW\*(C`_\|_extension_\|_\*(C'\fR.
4331 .IP "\fB\-Wc99\-c11\-compat\fR (C and Objective-C only)" 4
4332 .IX Item "-Wc99-c11-compat (C and Objective-C only)"
4333 Warn about features not present in \s-1ISO\s0 C99, but present in \s-1ISO\s0 C11.
4334 For instance, warn about use of anonymous structures and unions,
4335 \&\f(CW\*(C`_Atomic\*(C'\fR type qualifier, \f(CW\*(C`_Thread_local\*(C'\fR storage-class specifier,
4336 \&\f(CW\*(C`_Alignas\*(C'\fR specifier, \f(CW\*(C`Alignof\*(C'\fR operator, \f(CW\*(C`_Generic\*(C'\fR keyword,
4337 and so on.  This option is independent of the standards mode.  Warnings are
4338 disabled in the expression that follows \f(CW\*(C`_\|_extension_\|_\*(C'\fR.
4339 .IP "\fB\-Wc++\-compat\fR (C and Objective-C only)" 4
4340 .IX Item "-Wc++-compat (C and Objective-C only)"
4341 Warn about \s-1ISO\s0 C constructs that are outside of the common subset of
4342 \&\s-1ISO\s0 C and \s-1ISO\s0 \*(C+, e.g. request for implicit conversion from
4343 \&\f(CW\*(C`void *\*(C'\fR to a pointer to non\-\f(CW\*(C`void\*(C'\fR type.
4344 .IP "\fB\-Wc++11\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
4345 .IX Item "-Wc++11-compat ( and Objective- only)"
4346 Warn about \*(C+ constructs whose meaning differs between \s-1ISO\s0 \*(C+ 1998
4347 and \s-1ISO\s0 \*(C+ 2011, e.g., identifiers in \s-1ISO\s0 \*(C+ 1998 that are keywords
4348 in \s-1ISO\s0 \*(C+ 2011.  This warning turns on \fB\-Wnarrowing\fR and is
4349 enabled by \fB\-Wall\fR.
4350 .IP "\fB\-Wc++14\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
4351 .IX Item "-Wc++14-compat ( and Objective- only)"
4352 Warn about \*(C+ constructs whose meaning differs between \s-1ISO\s0 \*(C+ 2011
4353 and \s-1ISO\s0 \*(C+ 2014.  This warning is enabled by \fB\-Wall\fR.
4354 .IP "\fB\-Wcast\-qual\fR" 4
4355 .IX Item "-Wcast-qual"
4356 Warn whenever a pointer is cast so as to remove a type qualifier from
4357 the target type.  For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
4358 to an ordinary \f(CW\*(C`char *\*(C'\fR.
4359 .Sp
4360 Also warn when making a cast that introduces a type qualifier in an
4361 unsafe way.  For example, casting \f(CW\*(C`char **\*(C'\fR to \f(CW\*(C`const char **\*(C'\fR
4362 is unsafe, as in this example:
4363 .Sp
4364 .Vb 6
4365 \&          /* p is char ** value.  */
4366 \&          const char **q = (const char **) p;
4367 \&          /* Assignment of readonly string to const char * is OK.  */
4368 \&          *q = "string";
4369 \&          /* Now char** pointer points to read\-only memory.  */
4370 \&          **p = \*(Aqb\*(Aq;
4371 .Ve
4372 .IP "\fB\-Wcast\-align\fR" 4
4373 .IX Item "-Wcast-align"
4374 Warn whenever a pointer is cast such that the required alignment of the
4375 target is increased.  For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
4376 an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
4377 two\- or four-byte boundaries.
4378 .IP "\fB\-Wwrite\-strings\fR" 4
4379 .IX Item "-Wwrite-strings"
4380 When compiling C, give string constants the type \f(CW\*(C`const
4381 char[\f(CIlength\f(CW]\*(C'\fR so that copying the address of one into a
4382 non\-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR pointer produces a warning.  These
4383 warnings help you find at compile time code that can try to write
4384 into a string constant, but only if you have been very careful about
4385 using \f(CW\*(C`const\*(C'\fR in declarations and prototypes.  Otherwise, it is
4386 just a nuisance. This is why we did not make \fB\-Wall\fR request
4387 these warnings.
4388 .Sp
4389 When compiling \*(C+, warn about the deprecated conversion from string
4390 literals to \f(CW\*(C`char *\*(C'\fR.  This warning is enabled by default for \*(C+
4391 programs.
4392 .IP "\fB\-Wclobbered\fR" 4
4393 .IX Item "-Wclobbered"
4394 Warn for variables that might be changed by \f(CW\*(C`longjmp\*(C'\fR or
4395 \&\f(CW\*(C`vfork\*(C'\fR.  This warning is also enabled by \fB\-Wextra\fR.
4396 .IP "\fB\-Wconditionally\-supported\fR (\*(C+ and Objective\-\*(C+ only)" 4
4397 .IX Item "-Wconditionally-supported ( and Objective- only)"
4398 Warn for conditionally-supported (\*(C+11 [intro.defs]) constructs.
4399 .IP "\fB\-Wconversion\fR" 4
4400 .IX Item "-Wconversion"
4401 Warn for implicit conversions that may alter a value. This includes
4402 conversions between real and integer, like \f(CW\*(C`abs (x)\*(C'\fR when
4403 \&\f(CW\*(C`x\*(C'\fR is \f(CW\*(C`double\*(C'\fR; conversions between signed and unsigned,
4404 like \f(CW\*(C`unsigned ui = \-1\*(C'\fR; and conversions to smaller types, like
4405 \&\f(CW\*(C`sqrtf (M_PI)\*(C'\fR. Do not warn for explicit casts like \f(CW\*(C`abs
4406 ((int) x)\*(C'\fR and \f(CW\*(C`ui = (unsigned) \-1\*(C'\fR, or if the value is not
4407 changed by the conversion like in \f(CW\*(C`abs (2.0)\*(C'\fR.  Warnings about
4408 conversions between signed and unsigned integers can be disabled by
4409 using \fB\-Wno\-sign\-conversion\fR.
4410 .Sp
4411 For \*(C+, also warn for confusing overload resolution for user-defined
4412 conversions; and conversions that never use a type conversion
4413 operator: conversions to \f(CW\*(C`void\*(C'\fR, the same type, a base class or a
4414 reference to them. Warnings about conversions between signed and
4415 unsigned integers are disabled by default in \*(C+ unless
4416 \&\fB\-Wsign\-conversion\fR is explicitly enabled.
4417 .IP "\fB\-Wno\-conversion\-null\fR (\*(C+ and Objective\-\*(C+ only)" 4
4418 .IX Item "-Wno-conversion-null ( and Objective- only)"
4419 Do not warn for conversions between \f(CW\*(C`NULL\*(C'\fR and non-pointer
4420 types. \fB\-Wconversion\-null\fR is enabled by default.
4421 .IP "\fB\-Wzero\-as\-null\-pointer\-constant\fR (\*(C+ and Objective\-\*(C+ only)" 4
4422 .IX Item "-Wzero-as-null-pointer-constant ( and Objective- only)"
4423 Warn when a literal '0' is used as null pointer constant.  This can
4424 be useful to facilitate the conversion to \f(CW\*(C`nullptr\*(C'\fR in \*(C+11.
4425 .IP "\fB\-Wdate\-time\fR" 4
4426 .IX Item "-Wdate-time"
4427 Warn when macros \f(CW\*(C`_\|_TIME_\|_\*(C'\fR, \f(CW\*(C`_\|_DATE_\|_\*(C'\fR or \f(CW\*(C`_\|_TIMESTAMP_\|_\*(C'\fR
4428 are encountered as they might prevent bit-wise-identical reproducible
4429 compilations.
4430 .IP "\fB\-Wdelete\-incomplete\fR (\*(C+ and Objective\-\*(C+ only)" 4
4431 .IX Item "-Wdelete-incomplete ( and Objective- only)"
4432 Warn when deleting a pointer to incomplete type, which may cause
4433 undefined behavior at runtime.  This warning is enabled by default.
4434 .IP "\fB\-Wuseless\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
4435 .IX Item "-Wuseless-cast ( and Objective- only)"
4436 Warn when an expression is casted to its own type.
4437 .IP "\fB\-Wempty\-body\fR" 4
4438 .IX Item "-Wempty-body"
4439 Warn if an empty body occurs in an \f(CW\*(C`if\*(C'\fR, \f(CW\*(C`else\*(C'\fR or \f(CW\*(C`do
4440 while\*(C'\fR statement.  This warning is also enabled by \fB\-Wextra\fR.
4441 .IP "\fB\-Wenum\-compare\fR" 4
4442 .IX Item "-Wenum-compare"
4443 Warn about a comparison between values of different enumerated types.
4444 In \*(C+ enumeral mismatches in conditional expressions are also
4445 diagnosed and the warning is enabled by default.  In C this warning is 
4446 enabled by \fB\-Wall\fR.
4447 .IP "\fB\-Wjump\-misses\-init\fR (C, Objective-C only)" 4
4448 .IX Item "-Wjump-misses-init (C, Objective-C only)"
4449 Warn if a \f(CW\*(C`goto\*(C'\fR statement or a \f(CW\*(C`switch\*(C'\fR statement jumps
4450 forward across the initialization of a variable, or jumps backward to a
4451 label after the variable has been initialized.  This only warns about
4452 variables that are initialized when they are declared.  This warning is
4453 only supported for C and Objective-C; in \*(C+ this sort of branch is an
4454 error in any case.
4455 .Sp
4456 \&\fB\-Wjump\-misses\-init\fR is included in \fB\-Wc++\-compat\fR.  It
4457 can be disabled with the \fB\-Wno\-jump\-misses\-init\fR option.
4458 .IP "\fB\-Wsign\-compare\fR" 4
4459 .IX Item "-Wsign-compare"
4460 Warn when a comparison between signed and unsigned values could produce
4461 an incorrect result when the signed value is converted to unsigned.
4462 This warning is also enabled by \fB\-Wextra\fR; to get the other warnings
4463 of \fB\-Wextra\fR without this warning, use \fB\-Wextra \-Wno\-sign\-compare\fR.
4464 .IP "\fB\-Wsign\-conversion\fR" 4
4465 .IX Item "-Wsign-conversion"
4466 Warn for implicit conversions that may change the sign of an integer
4467 value, like assigning a signed integer expression to an unsigned
4468 integer variable. An explicit cast silences the warning. In C, this
4469 option is enabled also by \fB\-Wconversion\fR.
4470 .IP "\fB\-Wfloat\-conversion\fR" 4
4471 .IX Item "-Wfloat-conversion"
4472 Warn for implicit conversions that reduce the precision of a real value.
4473 This includes conversions from real to integer, and from higher precision
4474 real to lower precision real values.  This option is also enabled by
4475 \&\fB\-Wconversion\fR.
4476 .IP "\fB\-Wsized\-deallocation\fR (\*(C+ and Objective\-\*(C+ only)" 4
4477 .IX Item "-Wsized-deallocation ( and Objective- only)"
4478 Warn about a definition of an unsized deallocation function
4479 .Sp
4480 .Vb 2
4481 \&        void operator delete (void *) noexcept;
4482 \&        void operator delete[] (void *) noexcept;
4483 .Ve
4484 .Sp
4485 without a definition of the corresponding sized deallocation function
4486 .Sp
4487 .Vb 2
4488 \&        void operator delete (void *, std::size_t) noexcept;
4489 \&        void operator delete[] (void *, std::size_t) noexcept;
4490 .Ve
4491 .Sp
4492 or vice versa.  Enabled by \fB\-Wextra\fR along with
4493 \&\fB\-fsized\-deallocation\fR.
4494 .IP "\fB\-Wsizeof\-pointer\-memaccess\fR" 4
4495 .IX Item "-Wsizeof-pointer-memaccess"
4496 Warn for suspicious length parameters to certain string and memory built-in
4497 functions if the argument uses \f(CW\*(C`sizeof\*(C'\fR.  This warning warns e.g.
4498 about \f(CW\*(C`memset (ptr, 0, sizeof (ptr));\*(C'\fR if \f(CW\*(C`ptr\*(C'\fR is not an array,
4499 but a pointer, and suggests a possible fix, or about
4500 \&\f(CW\*(C`memcpy (&foo, ptr, sizeof (&foo));\*(C'\fR.  This warning is enabled by
4501 \&\fB\-Wall\fR.
4502 .IP "\fB\-Wsizeof\-array\-argument\fR" 4
4503 .IX Item "-Wsizeof-array-argument"
4504 Warn when the \f(CW\*(C`sizeof\*(C'\fR operator is applied to a parameter that is
4505 declared as an array in a function definition.  This warning is enabled by
4506 default for C and \*(C+ programs.
4507 .IP "\fB\-Wmemset\-transposed\-args\fR" 4
4508 .IX Item "-Wmemset-transposed-args"
4509 Warn for suspicious calls to the \f(CW\*(C`memset\*(C'\fR built-in function, if the
4510 second argument is not zero and the third argument is zero.  This warns e.g.@
4511 about \f(CW\*(C`memset (buf, sizeof buf, 0)\*(C'\fR where most probably
4512 \&\f(CW\*(C`memset (buf, 0, sizeof buf)\*(C'\fR was meant instead.  The diagnostics
4513 is only emitted if the third argument is literal zero.  If it is some
4514 expression that is folded to zero, a cast of zero to some type, etc., 
4515 it is far less likely that the user has mistakenly exchanged the arguments 
4516 and no warning is emitted.  This warning is enabled by \fB\-Wall\fR.
4517 .IP "\fB\-Waddress\fR" 4
4518 .IX Item "-Waddress"
4519 Warn about suspicious uses of memory addresses. These include using
4520 the address of a function in a conditional expression, such as
4521 \&\f(CW\*(C`void func(void); if (func)\*(C'\fR, and comparisons against the memory
4522 address of a string literal, such as \f(CW\*(C`if (x == "abc")\*(C'\fR.  Such
4523 uses typically indicate a programmer error: the address of a function
4524 always evaluates to true, so their use in a conditional usually
4525 indicate that the programmer forgot the parentheses in a function
4526 call; and comparisons against string literals result in unspecified
4527 behavior and are not portable in C, so they usually indicate that the
4528 programmer intended to use \f(CW\*(C`strcmp\*(C'\fR.  This warning is enabled by
4529 \&\fB\-Wall\fR.
4530 .IP "\fB\-Wlogical\-op\fR" 4
4531 .IX Item "-Wlogical-op"
4532 Warn about suspicious uses of logical operators in expressions.
4533 This includes using logical operators in contexts where a
4534 bit-wise operator is likely to be expected.
4535 .IP "\fB\-Wlogical\-not\-parentheses\fR" 4
4536 .IX Item "-Wlogical-not-parentheses"
4537 Warn about logical not used on the left hand side operand of a comparison.
4538 This option does not warn if the \s-1RHS\s0 operand is of a boolean type.  Its
4539 purpose is to detect suspicious code like the following:
4540 .Sp
4541 .Vb 3
4542 \&        int a;
4543 \&        ...
4544 \&        if (!a > 1) { ... }
4545 .Ve
4546 .Sp
4547 It is possible to suppress the warning by wrapping the \s-1LHS\s0 into
4548 parentheses:
4549 .Sp
4550 .Vb 1
4551 \&        if ((!a) > 1) { ... }
4552 .Ve
4553 .Sp
4554 This warning is enabled by \fB\-Wall\fR.
4555 .IP "\fB\-Waggregate\-return\fR" 4
4556 .IX Item "-Waggregate-return"
4557 Warn if any functions that return structures or unions are defined or
4558 called.  (In languages where you can return an array, this also elicits
4559 a warning.)
4560 .IP "\fB\-Wno\-aggressive\-loop\-optimizations\fR" 4
4561 .IX Item "-Wno-aggressive-loop-optimizations"
4562 Warn if in a loop with constant number of iterations the compiler detects
4563 undefined behavior in some statement during one or more of the iterations.
4564 .IP "\fB\-Wno\-attributes\fR" 4
4565 .IX Item "-Wno-attributes"
4566 Do not warn if an unexpected \f(CW\*(C`_\|_attribute_\|_\*(C'\fR is used, such as
4567 unrecognized attributes, function attributes applied to variables,
4568 etc.  This does not stop errors for incorrect use of supported
4569 attributes.
4570 .IP "\fB\-Wno\-builtin\-macro\-redefined\fR" 4
4571 .IX Item "-Wno-builtin-macro-redefined"
4572 Do not warn if certain built-in macros are redefined.  This suppresses
4573 warnings for redefinition of \f(CW\*(C`_\|_TIMESTAMP_\|_\*(C'\fR, \f(CW\*(C`_\|_TIME_\|_\*(C'\fR,
4574 \&\f(CW\*(C`_\|_DATE_\|_\*(C'\fR, \f(CW\*(C`_\|_FILE_\|_\*(C'\fR, and \f(CW\*(C`_\|_BASE_FILE_\|_\*(C'\fR.
4575 .IP "\fB\-Wstrict\-prototypes\fR (C and Objective-C only)" 4
4576 .IX Item "-Wstrict-prototypes (C and Objective-C only)"
4577 Warn if a function is declared or defined without specifying the
4578 argument types.  (An old-style function definition is permitted without
4579 a warning if preceded by a declaration that specifies the argument
4580 types.)
4581 .IP "\fB\-Wold\-style\-declaration\fR (C and Objective-C only)" 4
4582 .IX Item "-Wold-style-declaration (C and Objective-C only)"
4583 Warn for obsolescent usages, according to the C Standard, in a
4584 declaration. For example, warn if storage-class specifiers like
4585 \&\f(CW\*(C`static\*(C'\fR are not the first things in a declaration.  This warning
4586 is also enabled by \fB\-Wextra\fR.
4587 .IP "\fB\-Wold\-style\-definition\fR (C and Objective-C only)" 4
4588 .IX Item "-Wold-style-definition (C and Objective-C only)"
4589 Warn if an old-style function definition is used.  A warning is given
4590 even if there is a previous prototype.
4591 .IP "\fB\-Wmissing\-parameter\-type\fR (C and Objective-C only)" 4
4592 .IX Item "-Wmissing-parameter-type (C and Objective-C only)"
4593 A function parameter is declared without a type specifier in K&R\-style
4594 functions:
4595 .Sp
4596 .Vb 1
4597 \&        void foo(bar) { }
4598 .Ve
4599 .Sp
4600 This warning is also enabled by \fB\-Wextra\fR.
4601 .IP "\fB\-Wmissing\-prototypes\fR (C and Objective-C only)" 4
4602 .IX Item "-Wmissing-prototypes (C and Objective-C only)"
4603 Warn if a global function is defined without a previous prototype
4604 declaration.  This warning is issued even if the definition itself
4605 provides a prototype.  Use this option to detect global functions
4606 that do not have a matching prototype declaration in a header file.
4607 This option is not valid for \*(C+ because all function declarations
4608 provide prototypes and a non-matching declaration declares an
4609 overload rather than conflict with an earlier declaration.
4610 Use \fB\-Wmissing\-declarations\fR to detect missing declarations in \*(C+.
4611 .IP "\fB\-Wmissing\-declarations\fR" 4
4612 .IX Item "-Wmissing-declarations"
4613 Warn if a global function is defined without a previous declaration.
4614 Do so even if the definition itself provides a prototype.
4615 Use this option to detect global functions that are not declared in
4616 header files.  In C, no warnings are issued for functions with previous
4617 non-prototype declarations; use \fB\-Wmissing\-prototypes\fR to detect
4618 missing prototypes.  In \*(C+, no warnings are issued for function templates,
4619 or for inline functions, or for functions in anonymous namespaces.
4620 .IP "\fB\-Wmissing\-field\-initializers\fR" 4
4621 .IX Item "-Wmissing-field-initializers"
4622 Warn if a structure's initializer has some fields missing.  For
4623 example, the following code causes such a warning, because
4624 \&\f(CW\*(C`x.h\*(C'\fR is implicitly zero:
4625 .Sp
4626 .Vb 2
4627 \&        struct s { int f, g, h; };
4628 \&        struct s x = { 3, 4 };
4629 .Ve
4630 .Sp
4631 This option does not warn about designated initializers, so the following
4632 modification does not trigger a warning:
4633 .Sp
4634 .Vb 2
4635 \&        struct s { int f, g, h; };
4636 \&        struct s x = { .f = 3, .g = 4 };
4637 .Ve
4638 .Sp
4639 In \*(C+ this option does not warn either about the empty { }
4640 initializer, for example:
4641 .Sp
4642 .Vb 2
4643 \&        struct s { int f, g, h; };
4644 \&        s x = { };
4645 .Ve
4646 .Sp
4647 This warning is included in \fB\-Wextra\fR.  To get other \fB\-Wextra\fR
4648 warnings without this one, use \fB\-Wextra \-Wno\-missing\-field\-initializers\fR.
4649 .IP "\fB\-Wno\-multichar\fR" 4
4650 .IX Item "-Wno-multichar"
4651 Do not warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.
4652 Usually they indicate a typo in the user's code, as they have
4653 implementation-defined values, and should not be used in portable code.
4654 .IP "\fB\-Wnormalized\fR[\fB=\fR<\fBnone\fR|\fBid\fR|\fBnfc\fR|\fBnfkc\fR>]" 4
4655 .IX Item "-Wnormalized[=<none|id|nfc|nfkc>]"
4656 In \s-1ISO\s0 C and \s-1ISO\s0 \*(C+, two identifiers are different if they are
4657 different sequences of characters.  However, sometimes when characters
4658 outside the basic \s-1ASCII\s0 character set are used, you can have two
4659 different character sequences that look the same.  To avoid confusion,
4660 the \s-1ISO\s0 10646 standard sets out some \fInormalization rules\fR which
4661 when applied ensure that two sequences that look the same are turned into
4662 the same sequence.  \s-1GCC\s0 can warn you if you are using identifiers that
4663 have not been normalized; this option controls that warning.
4664 .Sp
4665 There are four levels of warning supported by \s-1GCC\s0.  The default is
4666 \&\fB\-Wnormalized=nfc\fR, which warns about any identifier that is
4667 not in the \s-1ISO\s0 10646 \*(L"C\*(R" normalized form, \fI\s-1NFC\s0\fR.  \s-1NFC\s0 is the
4668 recommended form for most uses.  It is equivalent to
4669 \&\fB\-Wnormalized\fR.
4670 .Sp
4671 Unfortunately, there are some characters allowed in identifiers by
4672 \&\s-1ISO\s0 C and \s-1ISO\s0 \*(C+ that, when turned into \s-1NFC\s0, are not allowed in 
4673 identifiers.  That is, there's no way to use these symbols in portable
4674 \&\s-1ISO\s0 C or \*(C+ and have all your identifiers in \s-1NFC\s0.
4675 \&\fB\-Wnormalized=id\fR suppresses the warning for these characters.
4676 It is hoped that future versions of the standards involved will correct
4677 this, which is why this option is not the default.
4678 .Sp
4679 You can switch the warning off for all characters by writing
4680 \&\fB\-Wnormalized=none\fR or \fB\-Wno\-normalized\fR.  You should
4681 only do this if you are using some other normalization scheme (like
4682 \&\*(L"D\*(R"), because otherwise you can easily create bugs that are
4683 literally impossible to see.
4684 .Sp
4685 Some characters in \s-1ISO\s0 10646 have distinct meanings but look identical
4686 in some fonts or display methodologies, especially once formatting has
4687 been applied.  For instance \f(CW\*(C`\eu207F\*(C'\fR, \*(L"\s-1SUPERSCRIPT\s0 \s-1LATIN\s0 \s-1SMALL\s0
4688 \&\s-1LETTER\s0 N\*(R", displays just like a regular \f(CW\*(C`n\*(C'\fR that has been
4689 placed in a superscript.  \s-1ISO\s0 10646 defines the \fI\s-1NFKC\s0\fR
4690 normalization scheme to convert all these into a standard form as
4691 well, and \s-1GCC\s0 warns if your code is not in \s-1NFKC\s0 if you use
4692 \&\fB\-Wnormalized=nfkc\fR.  This warning is comparable to warning
4693 about every identifier that contains the letter O because it might be
4694 confused with the digit 0, and so is not the default, but may be
4695 useful as a local coding convention if the programming environment 
4696 cannot be fixed to display these characters distinctly.
4697 .IP "\fB\-Wno\-deprecated\fR" 4
4698 .IX Item "-Wno-deprecated"
4699 Do not warn about usage of deprecated features.
4700 .IP "\fB\-Wno\-deprecated\-declarations\fR" 4
4701 .IX Item "-Wno-deprecated-declarations"
4702 Do not warn about uses of functions,
4703 variables, and types marked as deprecated by using the \f(CW\*(C`deprecated\*(C'\fR
4704 attribute.
4705 .IP "\fB\-Wno\-overflow\fR" 4
4706 .IX Item "-Wno-overflow"
4707 Do not warn about compile-time overflow in constant expressions.
4708 .IP "\fB\-Wno\-odr\fR" 4
4709 .IX Item "-Wno-odr"
4710 Warn about One Definition Rule violations during link-time optimization.
4711 Requires \fB\-flto\-odr\-type\-merging\fR to be enabled.  Enabled by default.
4712 .IP "\fB\-Wopenmp\-simd\fR" 4
4713 .IX Item "-Wopenmp-simd"
4714 Warn if the vectorizer cost model overrides the OpenMP or the Cilk Plus
4715 simd directive set by user.  The \fB\-fsimd\-cost\-model=unlimited\fR
4716 option can be used to relax the cost model.
4717 .IP "\fB\-Woverride\-init\fR (C and Objective-C only)" 4
4718 .IX Item "-Woverride-init (C and Objective-C only)"
4719 Warn if an initialized field without side effects is overridden when
4720 using designated initializers.
4721 .Sp
4722 This warning is included in \fB\-Wextra\fR.  To get other
4723 \&\fB\-Wextra\fR warnings without this one, use \fB\-Wextra
4724 \&\-Wno\-override\-init\fR.
4725 .IP "\fB\-Wpacked\fR" 4
4726 .IX Item "-Wpacked"
4727 Warn if a structure is given the packed attribute, but the packed
4728 attribute has no effect on the layout or size of the structure.
4729 Such structures may be mis-aligned for little benefit.  For
4730 instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
4731 is misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
4732 have the packed attribute:
4733 .Sp
4734 .Vb 8
4735 \&        struct foo {
4736 \&          int x;
4737 \&          char a, b, c, d;
4738 \&        } _\|_attribute_\|_((packed));
4739 \&        struct bar {
4740 \&          char z;
4741 \&          struct foo f;
4742 \&        };
4743 .Ve
4744 .IP "\fB\-Wpacked\-bitfield\-compat\fR" 4
4745 .IX Item "-Wpacked-bitfield-compat"
4746 The 4.1, 4.2 and 4.3 series of \s-1GCC\s0 ignore the \f(CW\*(C`packed\*(C'\fR attribute
4747 on bit-fields of type \f(CW\*(C`char\*(C'\fR.  This has been fixed in \s-1GCC\s0 4.4 but
4748 the change can lead to differences in the structure layout.  \s-1GCC\s0
4749 informs you when the offset of such a field has changed in \s-1GCC\s0 4.4.
4750 For example there is no longer a 4\-bit padding between field \f(CW\*(C`a\*(C'\fR
4751 and \f(CW\*(C`b\*(C'\fR in this structure:
4752 .Sp
4753 .Vb 5
4754 \&        struct foo
4755 \&        {
4756 \&          char a:4;
4757 \&          char b:8;
4758 \&        } _\|_attribute_\|_ ((packed));
4759 .Ve
4760 .Sp
4761 This warning is enabled by default.  Use
4762 \&\fB\-Wno\-packed\-bitfield\-compat\fR to disable this warning.
4763 .IP "\fB\-Wpadded\fR" 4
4764 .IX Item "-Wpadded"
4765 Warn if padding is included in a structure, either to align an element
4766 of the structure or to align the whole structure.  Sometimes when this
4767 happens it is possible to rearrange the fields of the structure to
4768 reduce the padding and so make the structure smaller.
4769 .IP "\fB\-Wredundant\-decls\fR" 4
4770 .IX Item "-Wredundant-decls"
4771 Warn if anything is declared more than once in the same scope, even in
4772 cases where multiple declaration is valid and changes nothing.
4773 .IP "\fB\-Wnested\-externs\fR (C and Objective-C only)" 4
4774 .IX Item "-Wnested-externs (C and Objective-C only)"
4775 Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
4776 .IP "\fB\-Wno\-inherited\-variadic\-ctor\fR" 4
4777 .IX Item "-Wno-inherited-variadic-ctor"
4778 Suppress warnings about use of \*(C+11 inheriting constructors when the
4779 base class inherited from has a C variadic constructor; the warning is
4780 on by default because the ellipsis is not inherited.
4781 .IP "\fB\-Winline\fR" 4
4782 .IX Item "-Winline"
4783 Warn if a function that is declared as inline cannot be inlined.
4784 Even with this option, the compiler does not warn about failures to
4785 inline functions declared in system headers.
4786 .Sp
4787 The compiler uses a variety of heuristics to determine whether or not
4788 to inline a function.  For example, the compiler takes into account
4789 the size of the function being inlined and the amount of inlining
4790 that has already been done in the current function.  Therefore,
4791 seemingly insignificant changes in the source program can cause the
4792 warnings produced by \fB\-Winline\fR to appear or disappear.
4793 .IP "\fB\-Wno\-invalid\-offsetof\fR (\*(C+ and Objective\-\*(C+ only)" 4
4794 .IX Item "-Wno-invalid-offsetof ( and Objective- only)"
4795 Suppress warnings from applying the \f(CW\*(C`offsetof\*(C'\fR macro to a non-POD
4796 type.  According to the 2014 \s-1ISO\s0 \*(C+ standard, applying \f(CW\*(C`offsetof\*(C'\fR
4797 to a non-standard-layout type is undefined.  In existing \*(C+ implementations,
4798 however, \f(CW\*(C`offsetof\*(C'\fR typically gives meaningful results.
4799 This flag is for users who are aware that they are
4800 writing nonportable code and who have deliberately chosen to ignore the
4801 warning about it.
4802 .Sp
4803 The restrictions on \f(CW\*(C`offsetof\*(C'\fR may be relaxed in a future version
4804 of the \*(C+ standard.
4805 .IP "\fB\-Wno\-int\-to\-pointer\-cast\fR" 4
4806 .IX Item "-Wno-int-to-pointer-cast"
4807 Suppress warnings from casts to pointer type of an integer of a
4808 different size. In \*(C+, casting to a pointer type of smaller size is
4809 an error. \fBWint-to-pointer-cast\fR is enabled by default.
4810 .IP "\fB\-Wno\-pointer\-to\-int\-cast\fR (C and Objective-C only)" 4
4811 .IX Item "-Wno-pointer-to-int-cast (C and Objective-C only)"
4812 Suppress warnings from casts from a pointer to an integer type of a
4813 different size.
4814 .IP "\fB\-Winvalid\-pch\fR" 4
4815 .IX Item "-Winvalid-pch"
4816 Warn if a precompiled header is found in
4817 the search path but can't be used.
4818 .IP "\fB\-Wlong\-long\fR" 4
4819 .IX Item "-Wlong-long"
4820 Warn if \f(CW\*(C`long long\*(C'\fR type is used.  This is enabled by either
4821 \&\fB\-Wpedantic\fR or \fB\-Wtraditional\fR in \s-1ISO\s0 C90 and \*(C+98
4822 modes.  To inhibit the warning messages, use \fB\-Wno\-long\-long\fR.
4823 .IP "\fB\-Wvariadic\-macros\fR" 4
4824 .IX Item "-Wvariadic-macros"
4825 Warn if variadic macros are used in \s-1ISO\s0 C90 mode, or if the \s-1GNU\s0
4826 alternate syntax is used in \s-1ISO\s0 C99 mode.  This is enabled by either
4827 \&\fB\-Wpedantic\fR or \fB\-Wtraditional\fR.  To inhibit the warning
4828 messages, use \fB\-Wno\-variadic\-macros\fR.
4829 .IP "\fB\-Wvarargs\fR" 4
4830 .IX Item "-Wvarargs"
4831 Warn upon questionable usage of the macros used to handle variable
4832 arguments like \f(CW\*(C`va_start\*(C'\fR.  This is default.  To inhibit the
4833 warning messages, use \fB\-Wno\-varargs\fR.
4834 .IP "\fB\-Wvector\-operation\-performance\fR" 4
4835 .IX Item "-Wvector-operation-performance"
4836 Warn if vector operation is not implemented via \s-1SIMD\s0 capabilities of the
4837 architecture.  Mainly useful for the performance tuning.
4838 Vector operation can be implemented \f(CW\*(C`piecewise\*(C'\fR, which means that the
4839 scalar operation is performed on every vector element; 
4840 \&\f(CW\*(C`in parallel\*(C'\fR, which means that the vector operation is implemented
4841 using scalars of wider type, which normally is more performance efficient;
4842 and \f(CW\*(C`as a single scalar\*(C'\fR, which means that vector fits into a
4843 scalar type.
4844 .IP "\fB\-Wno\-virtual\-move\-assign\fR" 4
4845 .IX Item "-Wno-virtual-move-assign"
4846 Suppress warnings about inheriting from a virtual base with a
4847 non-trivial \*(C+11 move assignment operator.  This is dangerous because
4848 if the virtual base is reachable along more than one path, it is
4849 moved multiple times, which can mean both objects end up in the
4850 moved-from state.  If the move assignment operator is written to avoid
4851 moving from a moved-from object, this warning can be disabled.
4852 .IP "\fB\-Wvla\fR" 4
4853 .IX Item "-Wvla"
4854 Warn if variable length array is used in the code.
4855 \&\fB\-Wno\-vla\fR prevents the \fB\-Wpedantic\fR warning of
4856 the variable length array.
4857 .IP "\fB\-Wvolatile\-register\-var\fR" 4
4858 .IX Item "-Wvolatile-register-var"
4859 Warn if a register variable is declared volatile.  The volatile
4860 modifier does not inhibit all optimizations that may eliminate reads
4861 and/or writes to register variables.  This warning is enabled by
4862 \&\fB\-Wall\fR.
4863 .IP "\fB\-Wdisabled\-optimization\fR" 4
4864 .IX Item "-Wdisabled-optimization"
4865 Warn if a requested optimization pass is disabled.  This warning does
4866 not generally indicate that there is anything wrong with your code; it
4867 merely indicates that \s-1GCC\s0's optimizers are unable to handle the code
4868 effectively.  Often, the problem is that your code is too big or too
4869 complex; \s-1GCC\s0 refuses to optimize programs when the optimization
4870 itself is likely to take inordinate amounts of time.
4871 .IP "\fB\-Wpointer\-sign\fR (C and Objective-C only)" 4
4872 .IX Item "-Wpointer-sign (C and Objective-C only)"
4873 Warn for pointer argument passing or assignment with different signedness.
4874 This option is only supported for C and Objective-C.  It is implied by
4875 \&\fB\-Wall\fR and by \fB\-Wpedantic\fR, which can be disabled with
4876 \&\fB\-Wno\-pointer\-sign\fR.
4877 .IP "\fB\-Wstack\-protector\fR" 4
4878 .IX Item "-Wstack-protector"
4879 This option is only active when \fB\-fstack\-protector\fR is active.  It
4880 warns about functions that are not protected against stack smashing.
4881 .IP "\fB\-Woverlength\-strings\fR" 4
4882 .IX Item "-Woverlength-strings"
4883 Warn about string constants that are longer than the \*(L"minimum
4884 maximum\*(R" length specified in the C standard.  Modern compilers
4885 generally allow string constants that are much longer than the
4886 standard's minimum limit, but very portable programs should avoid
4887 using longer strings.
4888 .Sp
4889 The limit applies \fIafter\fR string constant concatenation, and does
4890 not count the trailing \s-1NUL\s0.  In C90, the limit was 509 characters; in
4891 C99, it was raised to 4095.  \*(C+98 does not specify a normative
4892 minimum maximum, so we do not diagnose overlength strings in \*(C+.
4893 .Sp
4894 This option is implied by \fB\-Wpedantic\fR, and can be disabled with
4895 \&\fB\-Wno\-overlength\-strings\fR.
4896 .IP "\fB\-Wunsuffixed\-float\-constants\fR (C and Objective-C only)" 4
4897 .IX Item "-Wunsuffixed-float-constants (C and Objective-C only)"
4898 Issue a warning for any floating constant that does not have
4899 a suffix.  When used together with \fB\-Wsystem\-headers\fR it
4900 warns about such constants in system header files.  This can be useful
4901 when preparing code to use with the \f(CW\*(C`FLOAT_CONST_DECIMAL64\*(C'\fR pragma
4902 from the decimal floating-point extension to C99.
4903 .IP "\fB\-Wno\-designated\-init\fR (C and Objective-C only)" 4
4904 .IX Item "-Wno-designated-init (C and Objective-C only)"
4905 Suppress warnings when a positional initializer is used to initialize
4906 a structure that has been marked with the \f(CW\*(C`designated_init\*(C'\fR
4907 attribute.
4908 .Sh "Options for Debugging Your Program or \s-1GCC\s0"
4909 .IX Subsection "Options for Debugging Your Program or GCC"
4910 \&\s-1GCC\s0 has various special options that are used for debugging
4911 either your program or \s-1GCC:\s0
4912 .IP "\fB\-g\fR" 4
4913 .IX Item "-g"
4914 Produce debugging information in the operating system's native format
4915 (stabs, \s-1COFF\s0, \s-1XCOFF\s0, or \s-1DWARF\s0 2).  \s-1GDB\s0 can work with this debugging
4916 information.
4917 .Sp
4918 On most systems that use stabs format, \fB\-g\fR enables use of extra
4919 debugging information that only \s-1GDB\s0 can use; this extra information
4920 makes debugging work better in \s-1GDB\s0 but probably makes other debuggers
4921 crash or
4922 refuse to read the program.  If you want to control for certain whether
4923 to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
4924 \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, or \fB\-gvms\fR (see below).
4925 .Sp
4926 \&\s-1GCC\s0 allows you to use \fB\-g\fR with
4927 \&\fB\-O\fR.  The shortcuts taken by optimized code may occasionally
4928 produce surprising results: some variables you declared may not exist
4929 at all; flow of control may briefly move where you did not expect it;
4930 some statements may not be executed because they compute constant
4931 results or their values are already at hand; some statements may
4932 execute in different places because they have been moved out of loops.
4933 .Sp
4934 Nevertheless it proves possible to debug optimized output.  This makes
4935 it reasonable to use the optimizer for programs that might have bugs.
4936 .Sp
4937 The following options are useful when \s-1GCC\s0 is generated with the
4938 capability for more than one debugging format.
4939 .IP "\fB\-gsplit\-dwarf\fR" 4
4940 .IX Item "-gsplit-dwarf"
4941 Separate as much dwarf debugging information as possible into a
4942 separate output file with the extension .dwo.  This option allows
4943 the build system to avoid linking files with debug information.  To
4944 be useful, this option requires a debugger capable of reading .dwo
4945 files.
4946 .IP "\fB\-ggdb\fR" 4
4947 .IX Item "-ggdb"
4948 Produce debugging information for use by \s-1GDB\s0.  This means to use the
4949 most expressive format available (\s-1DWARF\s0 2, stabs, or the native format
4950 if neither of those are supported), including \s-1GDB\s0 extensions if at all
4951 possible.
4952 .IP "\fB\-gpubnames\fR" 4
4953 .IX Item "-gpubnames"
4954 Generate dwarf .debug_pubnames and .debug_pubtypes sections.
4955 .IP "\fB\-ggnu\-pubnames\fR" 4
4956 .IX Item "-ggnu-pubnames"
4957 Generate .debug_pubnames and .debug_pubtypes sections in a format
4958 suitable for conversion into a \s-1GDB\s0 index.  This option is only useful
4959 with a linker that can produce \s-1GDB\s0 index version 7.
4960 .IP "\fB\-gstabs\fR" 4
4961 .IX Item "-gstabs"
4962 Produce debugging information in stabs format (if that is supported),
4963 without \s-1GDB\s0 extensions.  This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
4964 systems.  On \s-1MIPS\s0, Alpha and System V Release 4 systems this option
4965 produces stabs debugging output that is not understood by \s-1DBX\s0 or \s-1SDB\s0.
4966 On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
4967 .IP "\fB\-feliminate\-unused\-debug\-symbols\fR" 4
4968 .IX Item "-feliminate-unused-debug-symbols"
4969 Produce debugging information in stabs format (if that is supported),
4970 for only symbols that are actually used.
4971 .IP "\fB\-femit\-class\-debug\-always\fR" 4
4972 .IX Item "-femit-class-debug-always"
4973 Instead of emitting debugging information for a \*(C+ class in only one
4974 object file, emit it in all object files using the class.  This option
4975 should be used only with debuggers that are unable to handle the way \s-1GCC\s0
4976 normally emits debugging information for classes because using this
4977 option increases the size of debugging information by as much as a
4978 factor of two.
4979 .IP "\fB\-fdebug\-types\-section\fR" 4
4980 .IX Item "-fdebug-types-section"
4981 When using \s-1DWARF\s0 Version 4 or higher, type DIEs can be put into
4982 their own \f(CW\*(C`.debug_types\*(C'\fR section instead of making them part of the
4983 \&\f(CW\*(C`.debug_info\*(C'\fR section.  It is more efficient to put them in a separate
4984 comdat sections since the linker can then remove duplicates.
4985 But not all \s-1DWARF\s0 consumers support \f(CW\*(C`.debug_types\*(C'\fR sections yet
4986 and on some objects \f(CW\*(C`.debug_types\*(C'\fR produces larger instead of smaller
4987 debugging information.
4988 .IP "\fB\-gstabs+\fR" 4
4989 .IX Item "-gstabs+"
4990 Produce debugging information in stabs format (if that is supported),
4991 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
4992 use of these extensions is likely to make other debuggers crash or
4993 refuse to read the program.
4994 .IP "\fB\-gcoff\fR" 4
4995 .IX Item "-gcoff"
4996 Produce debugging information in \s-1COFF\s0 format (if that is supported).
4997 This is the format used by \s-1SDB\s0 on most System V systems prior to
4998 System V Release 4.
4999 .IP "\fB\-gxcoff\fR" 4
5000 .IX Item "-gxcoff"
5001 Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
5002 This is the format used by the \s-1DBX\s0 debugger on \s-1IBM\s0 \s-1RS/6000\s0 systems.
5003 .IP "\fB\-gxcoff+\fR" 4
5004 .IX Item "-gxcoff+"
5005 Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
5006 using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0).  The
5007 use of these extensions is likely to make other debuggers crash or
5008 refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
5009 assembler (\s-1GAS\s0) to fail with an error.
5010 .IP "\fB\-gdwarf\-\fR\fIversion\fR" 4
5011 .IX Item "-gdwarf-version"
5012 Produce debugging information in \s-1DWARF\s0 format (if that is supported).
5013 The value of \fIversion\fR may be either 2, 3, 4 or 5; the default version
5014 for most targets is 4.  \s-1DWARF\s0 Version 5 is only experimental.
5015 .Sp
5016 Note that with \s-1DWARF\s0 Version 2, some ports require and always
5017 use some non-conflicting \s-1DWARF\s0 3 extensions in the unwind tables.
5018 .Sp
5019 Version 4 may require \s-1GDB\s0 7.0 and \fB\-fvar\-tracking\-assignments\fR
5020 for maximum benefit.
5021 .IP "\fB\-grecord\-gcc\-switches\fR" 4
5022 .IX Item "-grecord-gcc-switches"
5023 This switch causes the command-line options used to invoke the
5024 compiler that may affect code generation to be appended to the
5025 DW_AT_producer attribute in \s-1DWARF\s0 debugging information.  The options
5026 are concatenated with spaces separating them from each other and from
5027 the compiler version.  See also \fB\-frecord\-gcc\-switches\fR for another
5028 way of storing compiler options into the object file.  This is the default.
5029 .IP "\fB\-gno\-record\-gcc\-switches\fR" 4
5030 .IX Item "-gno-record-gcc-switches"
5031 Disallow appending command-line options to the DW_AT_producer attribute
5032 in \s-1DWARF\s0 debugging information.
5033 .IP "\fB\-gstrict\-dwarf\fR" 4
5034 .IX Item "-gstrict-dwarf"
5035 Disallow using extensions of later \s-1DWARF\s0 standard version than selected
5036 with \fB\-gdwarf\-\fR\fIversion\fR.  On most targets using non-conflicting
5037 \&\s-1DWARF\s0 extensions from later standard versions is allowed.
5038 .IP "\fB\-gno\-strict\-dwarf\fR" 4
5039 .IX Item "-gno-strict-dwarf"
5040 Allow using extensions of later \s-1DWARF\s0 standard version than selected with
5041 \&\fB\-gdwarf\-\fR\fIversion\fR.
5042 .IP "\fB\-gz\fR[\fB=\fR\fItype\fR]" 4
5043 .IX Item "-gz[=type]"
5044 Produce compressed debug sections in \s-1DWARF\s0 format, if that is supported.
5045 If \fItype\fR is not given, the default type depends on the capabilities
5046 of the assembler and linker used.  \fItype\fR may be one of
5047 \&\fBnone\fR (don't compress debug sections), \fBzlib\fR (use zlib
5048 compression in \s-1ELF\s0 gABI format), or \fBzlib-gnu\fR (use zlib
5049 compression in traditional \s-1GNU\s0 format).  If the linker doesn't support
5050 writing compressed debug sections, the option is rejected.  Otherwise,
5051 if the assembler does not support them, \fB\-gz\fR is silently ignored
5052 when producing object files.
5053 .IP "\fB\-gvms\fR" 4
5054 .IX Item "-gvms"
5055 Produce debugging information in Alpha/VMS debug format (if that is
5056 supported).  This is the format used by \s-1DEBUG\s0 on Alpha/VMS systems.
5057 .IP "\fB\-g\fR\fIlevel\fR" 4
5058 .IX Item "-glevel"
5059 .PD 0
5060 .IP "\fB\-ggdb\fR\fIlevel\fR" 4
5061 .IX Item "-ggdblevel"
5062 .IP "\fB\-gstabs\fR\fIlevel\fR" 4
5063 .IX Item "-gstabslevel"
5064 .IP "\fB\-gcoff\fR\fIlevel\fR" 4
5065 .IX Item "-gcofflevel"
5066 .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
5067 .IX Item "-gxcofflevel"
5068 .IP "\fB\-gvms\fR\fIlevel\fR" 4
5069 .IX Item "-gvmslevel"
5070 .PD
5071 Request debugging information and also use \fIlevel\fR to specify how
5072 much information.  The default level is 2.
5073 .Sp
5074 Level 0 produces no debug information at all.  Thus, \fB\-g0\fR negates
5075 \&\fB\-g\fR.
5076 .Sp
5077 Level 1 produces minimal information, enough for making backtraces in
5078 parts of the program that you don't plan to debug.  This includes
5079 descriptions of functions and external variables, and line number
5080 tables, but no information about local variables.
5081 .Sp
5082 Level 3 includes extra information, such as all the macro definitions
5083 present in the program.  Some debuggers support macro expansion when
5084 you use \fB\-g3\fR.
5085 .Sp
5086 \&\fB\-gdwarf\-2\fR does not accept a concatenated debug level, because
5087 \&\s-1GCC\s0 used to support an option \fB\-gdwarf\fR that meant to generate
5088 debug information in version 1 of the \s-1DWARF\s0 format (which is very
5089 different from version 2), and it would have been too confusing.  That
5090 debug format is long obsolete, but the option cannot be changed now.
5091 Instead use an additional \fB\-g\fR\fIlevel\fR option to change the
5092 debug level for \s-1DWARF\s0.
5093 .IP "\fB\-gtoggle\fR" 4
5094 .IX Item "-gtoggle"
5095 Turn off generation of debug info, if leaving out this option
5096 generates it, or turn it on at level 2 otherwise.  The position of this
5097 argument in the command line does not matter; it takes effect after all
5098 other options are processed, and it does so only once, no matter how
5099 many times it is given.  This is mainly intended to be used with
5100 \&\fB\-fcompare\-debug\fR.
5101 .IP "\fB\-fsanitize=address\fR" 4
5102 .IX Item "-fsanitize=address"
5103 Enable AddressSanitizer, a fast memory error detector.
5104 Memory access instructions are instrumented to detect
5105 out-of-bounds and use-after-free bugs.
5106 See <\fBhttp://code.google.com/p/address\-sanitizer/\fR> for
5107 more details.  The run-time behavior can be influenced using the
5108 \&\fB\s-1ASAN_OPTIONS\s0\fR environment variable; see
5109 <\fBhttps://code.google.com/p/address\-sanitizer/wiki/Flags#Run\-time_flags\fR> for
5110 a list of supported options.
5111 .IP "\fB\-fsanitize=kernel\-address\fR" 4
5112 .IX Item "-fsanitize=kernel-address"
5113 Enable AddressSanitizer for Linux kernel.
5114 See <\fBhttp://code.google.com/p/address\-sanitizer/wiki/AddressSanitizerForKernel\fR> for more details.
5115 .IP "\fB\-fsanitize=thread\fR" 4
5116 .IX Item "-fsanitize=thread"
5117 Enable ThreadSanitizer, a fast data race detector.
5118 Memory access instructions are instrumented to detect
5119 data race bugs.  See <\fBhttp://code.google.com/p/thread\-sanitizer/\fR> for more
5120 details. The run-time behavior can be influenced using the \fB\s-1TSAN_OPTIONS\s0\fR
5121 environment variable; see
5122 <\fBhttps://code.google.com/p/thread\-sanitizer/wiki/Flags\fR> for a list of
5123 supported options.
5124 .IP "\fB\-fsanitize=leak\fR" 4
5125 .IX Item "-fsanitize=leak"
5126 Enable LeakSanitizer, a memory leak detector.
5127 This option only matters for linking of executables and if neither
5128 \&\fB\-fsanitize=address\fR nor \fB\-fsanitize=thread\fR is used.  In that
5129 case the executable is linked against a library that overrides \f(CW\*(C`malloc\*(C'\fR
5130 and other allocator functions.  See
5131 <\fBhttps://code.google.com/p/address\-sanitizer/wiki/LeakSanitizer\fR> for more
5132 details.  The run-time behavior can be influenced using the
5133 \&\fB\s-1LSAN_OPTIONS\s0\fR environment variable.
5134 .IP "\fB\-fsanitize=undefined\fR" 4
5135 .IX Item "-fsanitize=undefined"
5136 Enable UndefinedBehaviorSanitizer, a fast undefined behavior detector.
5137 Various computations are instrumented to detect undefined behavior
5138 at runtime.  Current suboptions are:
5139 .RS 4
5140 .IP "\fB\-fsanitize=shift\fR" 4
5141 .IX Item "-fsanitize=shift"
5142 This option enables checking that the result of a shift operation is
5143 not undefined.  Note that what exactly is considered undefined differs
5144 slightly between C and \*(C+, as well as between \s-1ISO\s0 C90 and C99, etc.
5145 .IP "\fB\-fsanitize=integer\-divide\-by\-zero\fR" 4
5146 .IX Item "-fsanitize=integer-divide-by-zero"
5147 Detect integer division by zero as well as \f(CW\*(C`INT_MIN / \-1\*(C'\fR division.
5148 .IP "\fB\-fsanitize=unreachable\fR" 4
5149 .IX Item "-fsanitize=unreachable"
5150 With this option, the compiler turns the \f(CW\*(C`_\|_builtin_unreachable\*(C'\fR
5151 call into a diagnostics message call instead.  When reaching the
5152 \&\f(CW\*(C`_\|_builtin_unreachable\*(C'\fR call, the behavior is undefined.
5153 .IP "\fB\-fsanitize=vla\-bound\fR" 4
5154 .IX Item "-fsanitize=vla-bound"
5155 This option instructs the compiler to check that the size of a variable
5156 length array is positive.
5157 .IP "\fB\-fsanitize=null\fR" 4
5158 .IX Item "-fsanitize=null"
5159 This option enables pointer checking.  Particularly, the application
5160 built with this option turned on will issue an error message when it
5161 tries to dereference a \s-1NULL\s0 pointer, or if a reference (possibly an
5162 rvalue reference) is bound to a \s-1NULL\s0 pointer, or if a method is invoked
5163 on an object pointed by a \s-1NULL\s0 pointer.
5164 .IP "\fB\-fsanitize=return\fR" 4
5165 .IX Item "-fsanitize=return"
5166 This option enables return statement checking.  Programs
5167 built with this option turned on will issue an error message
5168 when the end of a non-void function is reached without actually
5169 returning a value.  This option works in \*(C+ only.
5170 .IP "\fB\-fsanitize=signed\-integer\-overflow\fR" 4
5171 .IX Item "-fsanitize=signed-integer-overflow"
5172 This option enables signed integer overflow checking.  We check that
5173 the result of \f(CW\*(C`+\*(C'\fR, \f(CW\*(C`*\*(C'\fR, and both unary and binary \f(CW\*(C`\-\*(C'\fR
5174 does not overflow in the signed arithmetics.  Note, integer promotion
5175 rules must be taken into account.  That is, the following is not an
5176 overflow:
5177 .Sp
5178 .Vb 2
5179 \&        signed char a = SCHAR_MAX;
5180 \&        a++;
5181 .Ve
5182 .IP "\fB\-fsanitize=bounds\fR" 4
5183 .IX Item "-fsanitize=bounds"
5184 This option enables instrumentation of array bounds.  Various out of bounds
5185 accesses are detected.  Flexible array members, flexible array member-like
5186 arrays, and initializers of variables with static storage are not instrumented.
5187 .IP "\fB\-fsanitize=alignment\fR" 4
5188 .IX Item "-fsanitize=alignment"
5189 This option enables checking of alignment of pointers when they are
5190 dereferenced, or when a reference is bound to insufficiently aligned target,
5191 or when a method or constructor is invoked on insufficiently aligned object.
5192 .IP "\fB\-fsanitize=object\-size\fR" 4
5193 .IX Item "-fsanitize=object-size"
5194 This option enables instrumentation of memory references using the
5195 \&\f(CW\*(C`_\|_builtin_object_size\*(C'\fR function.  Various out of bounds pointer
5196 accesses are detected.
5197 .IP "\fB\-fsanitize=float\-divide\-by\-zero\fR" 4
5198 .IX Item "-fsanitize=float-divide-by-zero"
5199 Detect floating-point division by zero.  Unlike other similar options,
5200 \&\fB\-fsanitize=float\-divide\-by\-zero\fR is not enabled by
5201 \&\fB\-fsanitize=undefined\fR, since floating-point division by zero can
5202 be a legitimate way of obtaining infinities and NaNs.
5203 .IP "\fB\-fsanitize=float\-cast\-overflow\fR" 4
5204 .IX Item "-fsanitize=float-cast-overflow"
5205 This option enables floating-point type to integer conversion checking.
5206 We check that the result of the conversion does not overflow.
5207 Unlike other similar options, \fB\-fsanitize=float\-cast\-overflow\fR is
5208 not enabled by \fB\-fsanitize=undefined\fR.
5209 This option does not work well with \f(CW\*(C`FE_INVALID\*(C'\fR exceptions enabled.
5210 .IP "\fB\-fsanitize=nonnull\-attribute\fR" 4
5211 .IX Item "-fsanitize=nonnull-attribute"
5212 This option enables instrumentation of calls, checking whether null values
5213 are not passed to arguments marked as requiring a non-null value by the
5214 \&\f(CW\*(C`nonnull\*(C'\fR function attribute.
5215 .IP "\fB\-fsanitize=returns\-nonnull\-attribute\fR" 4
5216 .IX Item "-fsanitize=returns-nonnull-attribute"
5217 This option enables instrumentation of return statements in functions
5218 marked with \f(CW\*(C`returns_nonnull\*(C'\fR function attribute, to detect returning
5219 of null values from such functions.
5220 .IP "\fB\-fsanitize=bool\fR" 4
5221 .IX Item "-fsanitize=bool"
5222 This option enables instrumentation of loads from bool.  If a value other
5223 than 0/1 is loaded, a run-time error is issued.
5224 .IP "\fB\-fsanitize=enum\fR" 4
5225 .IX Item "-fsanitize=enum"
5226 This option enables instrumentation of loads from an enum type.  If
5227 a value outside the range of values for the enum type is loaded,
5228 a run-time error is issued.
5229 .IP "\fB\-fsanitize=vptr\fR" 4
5230 .IX Item "-fsanitize=vptr"
5231 This option enables instrumentation of \*(C+ member function calls, member
5232 accesses and some conversions between pointers to base and derived classes,
5233 to verify the referenced object has the correct dynamic type.
5234 .RE
5235 .RS 4
5236 .Sp
5237 While \fB\-ftrapv\fR causes traps for signed overflows to be emitted,
5238 \&\fB\-fsanitize=undefined\fR gives a diagnostic message.
5239 This currently works only for the C family of languages.
5240 .RE
5241 .IP "\fB\-fno\-sanitize=all\fR" 4
5242 .IX Item "-fno-sanitize=all"
5243 This option disables all previously enabled sanitizers.
5244 \&\fB\-fsanitize=all\fR is not allowed, as some sanitizers cannot be used
5245 together.
5246 .IP "\fB\-fasan\-shadow\-offset=\fR\fInumber\fR" 4
5247 .IX Item "-fasan-shadow-offset=number"
5248 This option forces \s-1GCC\s0 to use custom shadow offset in AddressSanitizer checks.
5249 It is useful for experimenting with different shadow memory layouts in
5250 Kernel AddressSanitizer.
5251 .IP "\fB\-fsanitize\-recover\fR[\fB=\fR\fIopts\fR]" 4
5252 .IX Item "-fsanitize-recover[=opts]"
5253 \&\fB\-fsanitize\-recover=\fR controls error recovery mode for sanitizers
5254 mentioned in comma-separated list of \fIopts\fR.  Enabling this option
5255 for a sanitizer component causes it to attempt to continue
5256 running the program as if no error happened.  This means multiple
5257 runtime errors can be reported in a single program run, and the exit
5258 code of the program may indicate success even when errors
5259 have been reported.  The \fB\-fno\-sanitize\-recover=\fR option
5260 can be used to alter
5261 this behavior: only the first detected error is reported
5262 and program then exits with a non-zero exit code.
5263 .Sp
5264 Currently this feature only works for \fB\-fsanitize=undefined\fR (and its suboptions
5265 except for \fB\-fsanitize=unreachable\fR and \fB\-fsanitize=return\fR),
5266 \&\fB\-fsanitize=float\-cast\-overflow\fR, \fB\-fsanitize=float\-divide\-by\-zero\fR and
5267 \&\fB\-fsanitize=kernel\-address\fR.  For these sanitizers error recovery is turned on by default.
5268 \&\fB\-fsanitize\-recover=all\fR and \fB\-fno\-sanitize\-recover=all\fR is also
5269 accepted, the former enables recovery for all sanitizers that support it,
5270 the latter disables recovery for all sanitizers that support it.
5271 .Sp
5272 Syntax without explicit \fIopts\fR parameter is deprecated.  It is equivalent to
5273 .Sp
5274 .Vb 1
5275 \&        \-fsanitize\-recover=undefined,float\-cast\-overflow,float\-divide\-by\-zero
5276 .Ve
5277 .Sp
5278 Similarly \fB\-fno\-sanitize\-recover\fR is equivalent to
5279 .Sp
5280 .Vb 1
5281 \&        \-fno\-sanitize\-recover=undefined,float\-cast\-overflow,float\-divide\-by\-zero
5282 .Ve
5283 .IP "\fB\-fsanitize\-undefined\-trap\-on\-error\fR" 4
5284 .IX Item "-fsanitize-undefined-trap-on-error"
5285 The \fB\-fsanitize\-undefined\-trap\-on\-error\fR option instructs the compiler to
5286 report undefined behavior using \f(CW\*(C`_\|_builtin_trap\*(C'\fR rather than
5287 a \f(CW\*(C`libubsan\*(C'\fR library routine.  The advantage of this is that the
5288 \&\f(CW\*(C`libubsan\*(C'\fR library is not needed and is not linked in, so this
5289 is usable even in freestanding environments.
5290 .IP "\fB\-fcheck\-pointer\-bounds\fR" 4
5291 .IX Item "-fcheck-pointer-bounds"
5292 Enable Pointer Bounds Checker instrumentation.  Each memory reference
5293 is instrumented with checks of the pointer used for memory access against
5294 bounds associated with that pointer.
5295 .Sp
5296 Currently there
5297 is only an implementation for Intel \s-1MPX\s0 available, thus x86 target
5298 and \fB\-mmpx\fR are required to enable this feature.  
5299 MPX-based instrumentation requires
5300 a runtime library to enable \s-1MPX\s0 in hardware and handle bounds
5301 violation signals.  By default when \fB\-fcheck\-pointer\-bounds\fR
5302 and \fB\-mmpx\fR options are used to link a program, the \s-1GCC\s0 driver
5303 links against the \fIlibmpx\fR runtime library and \fIlibmpxwrappers\fR
5304 library.  It also passes '\-z bndplt' to a linker in case it supports this
5305 option (which is checked on libmpx configuration).  Note that old versions
5306 of linker may ignore option.  Gold linker doesn't support '\-z bndplt'
5307 option.  With no '\-z bndplt' support in linker all calls to dynamic libraries
5308 lose passed bounds reducing overall protection level.  It's highly
5309 recommended to use linker with '\-z bndplt' support.  In case such linker
5310 is not available it is adviced to always use \fB\-static\-libmpxwrappers\fR
5311 for better protection level or use \fB\-static\fR to completely avoid
5312 external calls to dynamic libraries.  MPX-based instrumentation
5313 may be used for debugging and also may be included in production code
5314 to increase program security.  Depending on usage, you may
5315 have different requirements for the runtime library.  The current version
5316 of the \s-1MPX\s0 runtime library is more oriented for use as a debugging
5317 tool.  \s-1MPX\s0 runtime library usage implies \fB\-lpthread\fR.  See
5318 also \fB\-static\-libmpx\fR.  The runtime library  behavior can be
5319 influenced using various \fBCHKP_RT_*\fR environment variables.  See
5320 <\fBhttps://gcc.gnu.org/wiki/Intel%20MPX%20support%20in%20the%20GCC%20compiler\fR>
5321 for more details.
5322 .Sp
5323 Generated instrumentation may be controlled by various
5324 \&\fB\-fchkp\-*\fR options and by the \f(CW\*(C`bnd_variable_size\*(C'\fR
5325 structure field attribute and
5326 \&\f(CW\*(C`bnd_legacy\*(C'\fR, and \f(CW\*(C`bnd_instrument\*(C'\fR function attributes.  \s-1GCC\s0 also provides a number of built-in
5327 functions for controlling the Pointer Bounds Checker.
5328 .IP "\fB\-fchkp\-check\-incomplete\-type\fR" 4
5329 .IX Item "-fchkp-check-incomplete-type"
5330 Generate pointer bounds checks for variables with incomplete type.
5331 Enabled by default.
5332 .IP "\fB\-fchkp\-narrow\-bounds\fR" 4
5333 .IX Item "-fchkp-narrow-bounds"
5334 Controls bounds used by Pointer Bounds Checker for pointers to object
5335 fields.  If narrowing is enabled then field bounds are used.  Otherwise
5336 object bounds are used.  See also \fB\-fchkp\-narrow\-to\-innermost\-array\fR
5337 and \fB\-fchkp\-first\-field\-has\-own\-bounds\fR.  Enabled by default.
5338 .IP "\fB\-fchkp\-first\-field\-has\-own\-bounds\fR" 4
5339 .IX Item "-fchkp-first-field-has-own-bounds"
5340 Forces Pointer Bounds Checker to use narrowed bounds for the address of the
5341 first field in the structure.  By default a pointer to the first field has
5342 the same bounds as a pointer to the whole structure.
5343 .IP "\fB\-fchkp\-narrow\-to\-innermost\-array\fR" 4
5344 .IX Item "-fchkp-narrow-to-innermost-array"
5345 Forces Pointer Bounds Checker to use bounds of the innermost arrays in
5346 case of nested static array access.  By default this option is disabled and
5347 bounds of the outermost array are used.
5348 .IP "\fB\-fchkp\-optimize\fR" 4
5349 .IX Item "-fchkp-optimize"
5350 Enables Pointer Bounds Checker optimizations.  Enabled by default at
5351 optimization levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR.
5352 .IP "\fB\-fchkp\-use\-fast\-string\-functions\fR" 4
5353 .IX Item "-fchkp-use-fast-string-functions"
5354 Enables use of \f(CW*_nobnd\fR versions of string functions (not copying bounds)
5355 by Pointer Bounds Checker.  Disabled by default.
5356 .IP "\fB\-fchkp\-use\-nochk\-string\-functions\fR" 4
5357 .IX Item "-fchkp-use-nochk-string-functions"
5358 Enables use of \f(CW*_nochk\fR versions of string functions (not checking bounds)
5359 by Pointer Bounds Checker.  Disabled by default.
5360 .IP "\fB\-fchkp\-use\-static\-bounds\fR" 4
5361 .IX Item "-fchkp-use-static-bounds"
5362 Allow Pointer Bounds Checker to generate static bounds holding
5363 bounds of static variables.  Enabled by default.
5364 .IP "\fB\-fchkp\-use\-static\-const\-bounds\fR" 4
5365 .IX Item "-fchkp-use-static-const-bounds"
5366 Use statically-initialized bounds for constant bounds instead of
5367 generating them each time they are required.  By default enabled when
5368 \&\fB\-fchkp\-use\-static\-bounds\fR is enabled.
5369 .IP "\fB\-fchkp\-treat\-zero\-dynamic\-size\-as\-infinite\fR" 4
5370 .IX Item "-fchkp-treat-zero-dynamic-size-as-infinite"
5371 With this option, objects with incomplete type whose
5372 dynamically-obtained size is zero are treated as having infinite size
5373 instead by Pointer Bounds
5374 Checker.  This option may be helpful if a program is linked with a library
5375 missing size information for some symbols.  Disabled by default.
5376 .IP "\fB\-fchkp\-check\-read\fR" 4
5377 .IX Item "-fchkp-check-read"
5378 Instructs Pointer Bounds Checker to generate checks for all read
5379 accesses to memory.  Enabled by default.
5380 .IP "\fB\-fchkp\-check\-write\fR" 4
5381 .IX Item "-fchkp-check-write"
5382 Instructs Pointer Bounds Checker to generate checks for all write
5383 accesses to memory.  Enabled by default.
5384 .IP "\fB\-fchkp\-store\-bounds\fR" 4
5385 .IX Item "-fchkp-store-bounds"
5386 Instructs Pointer Bounds Checker to generate bounds stores for
5387 pointer writes.  Enabled by default.
5388 .IP "\fB\-fchkp\-instrument\-calls\fR" 4
5389 .IX Item "-fchkp-instrument-calls"
5390 Instructs Pointer Bounds Checker to pass pointer bounds to calls.
5391 Enabled by default.
5392 .IP "\fB\-fchkp\-instrument\-marked\-only\fR" 4
5393 .IX Item "-fchkp-instrument-marked-only"
5394 Instructs Pointer Bounds Checker to instrument only functions
5395 marked with the \f(CW\*(C`bnd_instrument\*(C'\fR attribute.  Disabled by default.
5396 .IP "\fB\-fchkp\-use\-wrappers\fR" 4
5397 .IX Item "-fchkp-use-wrappers"
5398 Allows Pointer Bounds Checker to replace calls to built-in functions
5399 with calls to wrapper functions.  When \fB\-fchkp\-use\-wrappers\fR
5400 is used to link a program, the \s-1GCC\s0 driver automatically links
5401 against \fIlibmpxwrappers\fR.  See also \fB\-static\-libmpxwrappers\fR.
5402 Enabled by default.
5403 .IP "\fB\-fdump\-final\-insns\fR[\fB=\fR\fIfile\fR]" 4
5404 .IX Item "-fdump-final-insns[=file]"
5405 Dump the final internal representation (\s-1RTL\s0) to \fIfile\fR.  If the
5406 optional argument is omitted (or if \fIfile\fR is \f(CW\*(C`.\*(C'\fR), the name
5407 of the dump file is determined by appending \f(CW\*(C`.gkd\*(C'\fR to the
5408 compilation output file name.
5409 .IP "\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR]" 4
5410 .IX Item "-fcompare-debug[=opts]"
5411 If no error occurs during compilation, run the compiler a second time,
5412 adding \fIopts\fR and \fB\-fcompare\-debug\-second\fR to the arguments
5413 passed to the second compilation.  Dump the final internal
5414 representation in both compilations, and print an error if they differ.
5415 .Sp
5416 If the equal sign is omitted, the default \fB\-gtoggle\fR is used.
5417 .Sp
5418 The environment variable \fB\s-1GCC_COMPARE_DEBUG\s0\fR, if defined, non-empty
5419 and nonzero, implicitly enables \fB\-fcompare\-debug\fR.  If
5420 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR is defined to a string starting with a dash,
5421 then it is used for \fIopts\fR, otherwise the default \fB\-gtoggle\fR
5422 is used.
5423 .Sp
5424 \&\fB\-fcompare\-debug=\fR, with the equal sign but without \fIopts\fR,
5425 is equivalent to \fB\-fno\-compare\-debug\fR, which disables the dumping
5426 of the final representation and the second compilation, preventing even
5427 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR from taking effect.
5428 .Sp
5429 To verify full coverage during \fB\-fcompare\-debug\fR testing, set
5430 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR to say \fB\-fcompare\-debug\-not\-overridden\fR,
5431 which \s-1GCC\s0 rejects as an invalid option in any actual compilation
5432 (rather than preprocessing, assembly or linking).  To get just a
5433 warning, setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR to \fB\-w%n\-fcompare\-debug
5434 not overridden\fR will do.
5435 .IP "\fB\-fcompare\-debug\-second\fR" 4
5436 .IX Item "-fcompare-debug-second"
5437 This option is implicitly passed to the compiler for the second
5438 compilation requested by \fB\-fcompare\-debug\fR, along with options to
5439 silence warnings, and omitting other options that would cause
5440 side-effect compiler outputs to files or to the standard output.  Dump
5441 files and preserved temporary files are renamed so as to contain the
5442 \&\f(CW\*(C`.gk\*(C'\fR additional extension during the second compilation, to avoid
5443 overwriting those generated by the first.
5444 .Sp
5445 When this option is passed to the compiler driver, it causes the
5446 \&\fIfirst\fR compilation to be skipped, which makes it useful for little
5447 other than debugging the compiler proper.
5448 .IP "\fB\-feliminate\-dwarf2\-dups\fR" 4
5449 .IX Item "-feliminate-dwarf2-dups"
5450 Compress \s-1DWARF\s0 2 debugging information by eliminating duplicated
5451 information about each symbol.  This option only makes sense when
5452 generating \s-1DWARF\s0 2 debugging information with \fB\-gdwarf\-2\fR.
5453 .IP "\fB\-femit\-struct\-debug\-baseonly\fR" 4
5454 .IX Item "-femit-struct-debug-baseonly"
5455 Emit debug information for struct-like types
5456 only when the base name of the compilation source file
5457 matches the base name of file in which the struct is defined.
5458 .Sp
5459 This option substantially reduces the size of debugging information,
5460 but at significant potential loss in type information to the debugger.
5461 See \fB\-femit\-struct\-debug\-reduced\fR for a less aggressive option.
5462 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
5463 .Sp
5464 This option works only with \s-1DWARF\s0 2.
5465 .IP "\fB\-femit\-struct\-debug\-reduced\fR" 4
5466 .IX Item "-femit-struct-debug-reduced"
5467 Emit debug information for struct-like types
5468 only when the base name of the compilation source file
5469 matches the base name of file in which the type is defined,
5470 unless the struct is a template or defined in a system header.
5471 .Sp
5472 This option significantly reduces the size of debugging information,
5473 with some potential loss in type information to the debugger.
5474 See \fB\-femit\-struct\-debug\-baseonly\fR for a more aggressive option.
5475 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
5476 .Sp
5477 This option works only with \s-1DWARF\s0 2.
5478 .IP "\fB\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR]" 4
5479 .IX Item "-femit-struct-debug-detailed[=spec-list]"
5480 Specify the struct-like types
5481 for which the compiler generates debug information.
5482 The intent is to reduce duplicate struct debug information
5483 between different object files within the same program.
5484 .Sp
5485 This option is a detailed version of
5486 \&\fB\-femit\-struct\-debug\-reduced\fR and \fB\-femit\-struct\-debug\-baseonly\fR,
5487 which serves for most needs.
5488 .Sp
5489 A specification has the syntax[\fBdir:\fR|\fBind:\fR][\fBord:\fR|\fBgen:\fR](\fBany\fR|\fBsys\fR|\fBbase\fR|\fBnone\fR)
5490 .Sp
5491 The optional first word limits the specification to
5492 structs that are used directly (\fBdir:\fR) or used indirectly (\fBind:\fR).
5493 A struct type is used directly when it is the type of a variable, member.
5494 Indirect uses arise through pointers to structs.
5495 That is, when use of an incomplete struct is valid, the use is indirect.
5496 An example is
5497 \&\fBstruct one direct; struct two * indirect;\fR.
5498 .Sp
5499 The optional second word limits the specification to
5500 ordinary structs (\fBord:\fR) or generic structs (\fBgen:\fR).
5501 Generic structs are a bit complicated to explain.
5502 For \*(C+, these are non-explicit specializations of template classes,
5503 or non-template classes within the above.
5504 Other programming languages have generics,
5505 but \fB\-femit\-struct\-debug\-detailed\fR does not yet implement them.
5506 .Sp
5507 The third word specifies the source files for those
5508 structs for which the compiler should emit debug information.
5509 The values \fBnone\fR and \fBany\fR have the normal meaning.
5510 The value \fBbase\fR means that
5511 the base of name of the file in which the type declaration appears
5512 must match the base of the name of the main compilation file.
5513 In practice, this means that when compiling \fIfoo.c\fR, debug information
5514 is generated for types declared in that file and \fIfoo.h\fR,
5515 but not other header files.
5516 The value \fBsys\fR means those types satisfying \fBbase\fR
5517 or declared in system or compiler headers.
5518 .Sp
5519 You may need to experiment to determine the best settings for your application.
5520 .Sp
5521 The default is \fB\-femit\-struct\-debug\-detailed=all\fR.
5522 .Sp
5523 This option works only with \s-1DWARF\s0 2.
5524 .IP "\fB\-fno\-merge\-debug\-strings\fR" 4
5525 .IX Item "-fno-merge-debug-strings"
5526 Direct the linker to not merge together strings in the debugging
5527 information that are identical in different object files.  Merging is
5528 not supported by all assemblers or linkers.  Merging decreases the size
5529 of the debug information in the output file at the cost of increasing
5530 link processing time.  Merging is enabled by default.
5531 .IP "\fB\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
5532 .IX Item "-fdebug-prefix-map=old=new"
5533 When compiling files in directory \fI\fIold\fI\fR, record debugging
5534 information describing them as in \fI\fInew\fI\fR instead.
5535 .IP "\fB\-fno\-dwarf2\-cfi\-asm\fR" 4
5536 .IX Item "-fno-dwarf2-cfi-asm"
5537 Emit \s-1DWARF\s0 2 unwind info as compiler generated \f(CW\*(C`.eh_frame\*(C'\fR section
5538 instead of using \s-1GAS\s0 \f(CW\*(C`.cfi_*\*(C'\fR directives.
5539 .IP "\fB\-p\fR" 4
5540 .IX Item "-p"
5541 Generate extra code to write profile information suitable for the
5542 analysis program \fBprof\fR.  You must use this option when compiling
5543 the source files you want data about, and you must also use it when
5544 linking.
5545 .IP "\fB\-pg\fR" 4
5546 .IX Item "-pg"
5547 Generate extra code to write profile information suitable for the
5548 analysis program \fBgprof\fR.  You must use this option when compiling
5549 the source files you want data about, and you must also use it when
5550 linking.
5551 .IP "\fB\-Q\fR" 4
5552 .IX Item "-Q"
5553 Makes the compiler print out each function name as it is compiled, and
5554 print some statistics about each pass when it finishes.
5555 .IP "\fB\-ftime\-report\fR" 4
5556 .IX Item "-ftime-report"
5557 Makes the compiler print some statistics about the time consumed by each
5558 pass when it finishes.
5559 .IP "\fB\-fmem\-report\fR" 4
5560 .IX Item "-fmem-report"
5561 Makes the compiler print some statistics about permanent memory
5562 allocation when it finishes.
5563 .IP "\fB\-fmem\-report\-wpa\fR" 4
5564 .IX Item "-fmem-report-wpa"
5565 Makes the compiler print some statistics about permanent memory
5566 allocation for the \s-1WPA\s0 phase only.
5567 .IP "\fB\-fpre\-ipa\-mem\-report\fR" 4
5568 .IX Item "-fpre-ipa-mem-report"
5569 .PD 0
5570 .IP "\fB\-fpost\-ipa\-mem\-report\fR" 4
5571 .IX Item "-fpost-ipa-mem-report"
5572 .PD
5573 Makes the compiler print some statistics about permanent memory
5574 allocation before or after interprocedural optimization.
5575 .IP "\fB\-fprofile\-report\fR" 4
5576 .IX Item "-fprofile-report"
5577 Makes the compiler print some statistics about consistency of the
5578 (estimated) profile and effect of individual passes.
5579 .IP "\fB\-fstack\-usage\fR" 4
5580 .IX Item "-fstack-usage"
5581 Makes the compiler output stack usage information for the program, on a
5582 per-function basis.  The filename for the dump is made by appending
5583 \&\fI.su\fR to the \fIauxname\fR.  \fIauxname\fR is generated from the name of
5584 the output file, if explicitly specified and it is not an executable,
5585 otherwise it is the basename of the source file.  An entry is made up
5586 of three fields:
5587 .RS 4
5588 .IP "*" 4
5589 The name of the function.
5590 .IP "*" 4
5591 A number of bytes.
5592 .IP "*" 4
5593 One or more qualifiers: \f(CW\*(C`static\*(C'\fR, \f(CW\*(C`dynamic\*(C'\fR, \f(CW\*(C`bounded\*(C'\fR.
5594 .RE
5595 .RS 4
5596 .Sp
5597 The qualifier \f(CW\*(C`static\*(C'\fR means that the function manipulates the stack
5598 statically: a fixed number of bytes are allocated for the frame on function
5599 entry and released on function exit; no stack adjustments are otherwise made
5600 in the function.  The second field is this fixed number of bytes.
5601 .Sp
5602 The qualifier \f(CW\*(C`dynamic\*(C'\fR means that the function manipulates the stack
5603 dynamically: in addition to the static allocation described above, stack
5604 adjustments are made in the body of the function, for example to push/pop
5605 arguments around function calls.  If the qualifier \f(CW\*(C`bounded\*(C'\fR is also
5606 present, the amount of these adjustments is bounded at compile time and
5607 the second field is an upper bound of the total amount of stack used by
5608 the function.  If it is not present, the amount of these adjustments is
5609 not bounded at compile time and the second field only represents the
5610 bounded part.
5611 .RE
5612 .IP "\fB\-fprofile\-arcs\fR" 4
5613 .IX Item "-fprofile-arcs"
5614 Add code so that program flow \fIarcs\fR are instrumented.  During
5615 execution the program records how many times each branch and call is
5616 executed and how many times it is taken or returns.  When the compiled
5617 program exits it saves this data to a file called
5618 \&\fI\fIauxname\fI.gcda\fR for each source file.  The data may be used for
5619 profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
5620 test coverage analysis (\fB\-ftest\-coverage\fR).  Each object file's
5621 \&\fIauxname\fR is generated from the name of the output file, if
5622 explicitly specified and it is not the final executable, otherwise it is
5623 the basename of the source file.  In both cases any suffix is removed
5624 (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
5625 \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
5626 .IP "\fB\-\-coverage\fR" 4
5627 .IX Item "--coverage"
5628 This option is used to compile and link code instrumented for coverage
5629 analysis.  The option is a synonym for \fB\-fprofile\-arcs\fR
5630 \&\fB\-ftest\-coverage\fR (when compiling) and \fB\-lgcov\fR (when
5631 linking).  See the documentation for those options for more details.
5632 .RS 4
5633 .IP "*" 4
5634 Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
5635 and code generation options.  For test coverage analysis, use the
5636 additional \fB\-ftest\-coverage\fR option.  You do not need to profile
5637 every source file in a program.
5638 .IP "*" 4
5639 Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
5640 (the latter implies the former).
5641 .IP "*" 4
5642 Run the program on a representative workload to generate the arc profile
5643 information.  This may be repeated any number of times.  You can run
5644 concurrent instances of your program, and provided that the file system
5645 supports locking, the data files will be correctly updated.  Also
5646 \&\f(CW\*(C`fork\*(C'\fR calls are detected and correctly handled (double counting
5647 will not happen).
5648 .IP "*" 4
5649 For profile-directed optimizations, compile the source files again with
5650 the same optimization and code generation options plus
5651 \&\fB\-fbranch\-probabilities\fR.
5652 .IP "*" 4
5653 For test coverage analysis, use \fBgcov\fR to produce human readable
5654 information from the \fI.gcno\fR and \fI.gcda\fR files.  Refer to the
5655 \&\fBgcov\fR documentation for further information.
5656 .RE
5657 .RS 4
5658 .Sp
5659 With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
5660 creates a program flow graph, then finds a spanning tree for the graph.
5661 Only arcs that are not on the spanning tree have to be instrumented: the
5662 compiler adds code to count the number of times that these arcs are
5663 executed.  When an arc is the only exit or only entrance to a block, the
5664 instrumentation code can be added to the block; otherwise, a new basic
5665 block must be created to hold the instrumentation code.
5666 .RE
5667 .IP "\fB\-ftest\-coverage\fR" 4
5668 .IX Item "-ftest-coverage"
5669 Produce a notes file that the \fBgcov\fR code-coverage utility can use to
5670 show program coverage.  Each source file's note file is called
5671 \&\fI\fIauxname\fI.gcno\fR.  Refer to the \fB\-fprofile\-arcs\fR option
5672 above for a description of \fIauxname\fR and instructions on how to
5673 generate test coverage data.  Coverage data matches the source files
5674 more closely if you do not optimize.
5675 .IP "\fB\-fdbg\-cnt\-list\fR" 4
5676 .IX Item "-fdbg-cnt-list"
5677 Print the name and the counter upper bound for all debug counters.
5678 .IP "\fB\-fdbg\-cnt=\fR\fIcounter-value-list\fR" 4
5679 .IX Item "-fdbg-cnt=counter-value-list"
5680 Set the internal debug counter upper bound.  \fIcounter-value-list\fR
5681 is a comma-separated list of \fIname\fR:\fIvalue\fR pairs
5682 which sets the upper bound of each debug counter \fIname\fR to \fIvalue\fR.
5683 All debug counters have the initial upper bound of \f(CW\*(C`UINT_MAX\*(C'\fR;
5684 thus \f(CW\*(C`dbg_cnt\*(C'\fR returns true always unless the upper bound
5685 is set by this option.
5686 For example, with \fB\-fdbg\-cnt=dce:10,tail_call:0\fR,
5687 \&\f(CW\*(C`dbg_cnt(dce)\*(C'\fR returns true only for first 10 invocations.
5688 .IP "\fB\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR" 4
5689 .IX Item "-fenable-kind-pass"
5690 .PD 0
5691 .IP "\fB\-fdisable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
5692 .IX Item "-fdisable-kind-pass=range-list"
5693 .PD
5694 This is a set of options that are used to explicitly disable/enable
5695 optimization passes.  These options are intended for use for debugging \s-1GCC\s0.
5696 Compiler users should use regular options for enabling/disabling
5697 passes instead.
5698 .RS 4
5699 .IP "\fB\-fdisable\-ipa\-\fR\fIpass\fR" 4
5700 .IX Item "-fdisable-ipa-pass"
5701 Disable \s-1IPA\s0 pass \fIpass\fR. \fIpass\fR is the pass name.  If the same pass is
5702 statically invoked in the compiler multiple times, the pass name should be
5703 appended with a sequential number starting from 1.
5704 .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR" 4
5705 .IX Item "-fdisable-rtl-pass"
5706 .PD 0
5707 .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
5708 .IX Item "-fdisable-rtl-pass=range-list"
5709 .PD
5710 Disable \s-1RTL\s0 pass \fIpass\fR.  \fIpass\fR is the pass name.  If the same pass is
5711 statically invoked in the compiler multiple times, the pass name should be
5712 appended with a sequential number starting from 1.  \fIrange-list\fR is a 
5713 comma-separated list of function ranges or assembler names.  Each range is a number
5714 pair separated by a colon.  The range is inclusive in both ends.  If the range
5715 is trivial, the number pair can be simplified as a single number.  If the
5716 function's call graph node's \fIuid\fR falls within one of the specified ranges,
5717 the \fIpass\fR is disabled for that function.  The \fIuid\fR is shown in the
5718 function header of a dump file, and the pass names can be dumped by using
5719 option \fB\-fdump\-passes\fR.
5720 .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR" 4
5721 .IX Item "-fdisable-tree-pass"
5722 .PD 0
5723 .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
5724 .IX Item "-fdisable-tree-pass=range-list"
5725 .PD
5726 Disable tree pass \fIpass\fR.  See \fB\-fdisable\-rtl\fR for the description of
5727 option arguments.
5728 .IP "\fB\-fenable\-ipa\-\fR\fIpass\fR" 4
5729 .IX Item "-fenable-ipa-pass"
5730 Enable \s-1IPA\s0 pass \fIpass\fR.  \fIpass\fR is the pass name.  If the same pass is
5731 statically invoked in the compiler multiple times, the pass name should be
5732 appended with a sequential number starting from 1.
5733 .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR" 4
5734 .IX Item "-fenable-rtl-pass"
5735 .PD 0
5736 .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
5737 .IX Item "-fenable-rtl-pass=range-list"
5738 .PD
5739 Enable \s-1RTL\s0 pass \fIpass\fR.  See \fB\-fdisable\-rtl\fR for option argument
5740 description and examples.
5741 .IP "\fB\-fenable\-tree\-\fR\fIpass\fR" 4
5742 .IX Item "-fenable-tree-pass"
5743 .PD 0
5744 .IP "\fB\-fenable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
5745 .IX Item "-fenable-tree-pass=range-list"
5746 .PD
5747 Enable tree pass \fIpass\fR.  See \fB\-fdisable\-rtl\fR for the description
5748 of option arguments.
5749 .RE
5750 .RS 4
5751 .Sp
5752 Here are some examples showing uses of these options.
5753 .Sp
5754 .Vb 10
5755 \&        # disable ccp1 for all functions
5756 \&           \-fdisable\-tree\-ccp1
5757 \&        # disable complete unroll for function whose cgraph node uid is 1
5758 \&           \-fenable\-tree\-cunroll=1
5759 \&        # disable gcse2 for functions at the following ranges [1,1],
5760 \&        # [300,400], and [400,1000]
5761 \&        # disable gcse2 for functions foo and foo2
5762 \&           \-fdisable\-rtl\-gcse2=foo,foo2
5763 \&        # disable early inlining
5764 \&           \-fdisable\-tree\-einline
5765 \&        # disable ipa inlining
5766 \&           \-fdisable\-ipa\-inline
5767 \&        # enable tree full unroll
5768 \&           \-fenable\-tree\-unroll
5769 .Ve
5770 .RE
5771 .IP "\fB\-d\fR\fIletters\fR" 4
5772 .IX Item "-dletters"
5773 .PD 0
5774 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
5775 .IX Item "-fdump-rtl-pass"
5776 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR\fB=\fR\fIfilename\fR" 4
5777 .IX Item "-fdump-rtl-pass=filename"
5778 .PD
5779 Says to make debugging dumps during compilation at times specified by
5780 \&\fIletters\fR.  This is used for debugging the RTL-based passes of the
5781 compiler.  The file names for most of the dumps are made by appending
5782 a pass number and a word to the \fIdumpname\fR, and the files are
5783 created in the directory of the output file. In case of
5784 \&\fB=\fR\fIfilename\fR option, the dump is output on the given file
5785 instead of the pass numbered dump files. Note that the pass number is
5786 computed statically as passes get registered into the pass manager.
5787 Thus the numbering is not related to the dynamic order of execution of
5788 passes.  In particular, a pass installed by a plugin could have a
5789 number over 200 even if it executed quite early.  \fIdumpname\fR is
5790 generated from the name of the output file, if explicitly specified
5791 and it is not an executable, otherwise it is the basename of the
5792 source file. These switches may have different effects when
5793 \&\fB\-E\fR is used for preprocessing.
5794 .Sp
5795 Debug dumps can be enabled with a \fB\-fdump\-rtl\fR switch or some
5796 \&\fB\-d\fR option \fIletters\fR.  Here are the possible
5797 letters for use in \fIpass\fR and \fIletters\fR, and their meanings:
5798 .RS 4
5799 .IP "\fB\-fdump\-rtl\-alignments\fR" 4
5800 .IX Item "-fdump-rtl-alignments"
5801 Dump after branch alignments have been computed.
5802 .IP "\fB\-fdump\-rtl\-asmcons\fR" 4
5803 .IX Item "-fdump-rtl-asmcons"
5804 Dump after fixing rtl statements that have unsatisfied in/out constraints.
5805 .IP "\fB\-fdump\-rtl\-auto_inc_dec\fR" 4
5806 .IX Item "-fdump-rtl-auto_inc_dec"
5807 Dump after auto-inc-dec discovery.  This pass is only run on
5808 architectures that have auto inc or auto dec instructions.
5809 .IP "\fB\-fdump\-rtl\-barriers\fR" 4
5810 .IX Item "-fdump-rtl-barriers"
5811 Dump after cleaning up the barrier instructions.
5812 .IP "\fB\-fdump\-rtl\-bbpart\fR" 4
5813 .IX Item "-fdump-rtl-bbpart"
5814 Dump after partitioning hot and cold basic blocks.
5815 .IP "\fB\-fdump\-rtl\-bbro\fR" 4
5816 .IX Item "-fdump-rtl-bbro"
5817 Dump after block reordering.
5818 .IP "\fB\-fdump\-rtl\-btl1\fR" 4
5819 .IX Item "-fdump-rtl-btl1"
5820 .PD 0
5821 .IP "\fB\-fdump\-rtl\-btl2\fR" 4
5822 .IX Item "-fdump-rtl-btl2"
5823 .PD
5824 \&\fB\-fdump\-rtl\-btl1\fR and \fB\-fdump\-rtl\-btl2\fR enable dumping
5825 after the two branch
5826 target load optimization passes.
5827 .IP "\fB\-fdump\-rtl\-bypass\fR" 4
5828 .IX Item "-fdump-rtl-bypass"
5829 Dump after jump bypassing and control flow optimizations.
5830 .IP "\fB\-fdump\-rtl\-combine\fR" 4
5831 .IX Item "-fdump-rtl-combine"
5832 Dump after the \s-1RTL\s0 instruction combination pass.
5833 .IP "\fB\-fdump\-rtl\-compgotos\fR" 4
5834 .IX Item "-fdump-rtl-compgotos"
5835 Dump after duplicating the computed gotos.
5836 .IP "\fB\-fdump\-rtl\-ce1\fR" 4
5837 .IX Item "-fdump-rtl-ce1"
5838 .PD 0
5839 .IP "\fB\-fdump\-rtl\-ce2\fR" 4
5840 .IX Item "-fdump-rtl-ce2"
5841 .IP "\fB\-fdump\-rtl\-ce3\fR" 4
5842 .IX Item "-fdump-rtl-ce3"
5843 .PD
5844 \&\fB\-fdump\-rtl\-ce1\fR, \fB\-fdump\-rtl\-ce2\fR, and
5845 \&\fB\-fdump\-rtl\-ce3\fR enable dumping after the three
5846 if conversion passes.
5847 .IP "\fB\-fdump\-rtl\-cprop_hardreg\fR" 4
5848 .IX Item "-fdump-rtl-cprop_hardreg"
5849 Dump after hard register copy propagation.
5850 .IP "\fB\-fdump\-rtl\-csa\fR" 4
5851 .IX Item "-fdump-rtl-csa"
5852 Dump after combining stack adjustments.
5853 .IP "\fB\-fdump\-rtl\-cse1\fR" 4
5854 .IX Item "-fdump-rtl-cse1"
5855 .PD 0
5856 .IP "\fB\-fdump\-rtl\-cse2\fR" 4
5857 .IX Item "-fdump-rtl-cse2"
5858 .PD
5859 \&\fB\-fdump\-rtl\-cse1\fR and \fB\-fdump\-rtl\-cse2\fR enable dumping after
5860 the two common subexpression elimination passes.
5861 .IP "\fB\-fdump\-rtl\-dce\fR" 4
5862 .IX Item "-fdump-rtl-dce"
5863 Dump after the standalone dead code elimination passes.
5864 .IP "\fB\-fdump\-rtl\-dbr\fR" 4
5865 .IX Item "-fdump-rtl-dbr"
5866 Dump after delayed branch scheduling.
5867 .IP "\fB\-fdump\-rtl\-dce1\fR" 4
5868 .IX Item "-fdump-rtl-dce1"
5869 .PD 0
5870 .IP "\fB\-fdump\-rtl\-dce2\fR" 4
5871 .IX Item "-fdump-rtl-dce2"
5872 .PD
5873 \&\fB\-fdump\-rtl\-dce1\fR and \fB\-fdump\-rtl\-dce2\fR enable dumping after
5874 the two dead store elimination passes.
5875 .IP "\fB\-fdump\-rtl\-eh\fR" 4
5876 .IX Item "-fdump-rtl-eh"
5877 Dump after finalization of \s-1EH\s0 handling code.
5878 .IP "\fB\-fdump\-rtl\-eh_ranges\fR" 4
5879 .IX Item "-fdump-rtl-eh_ranges"
5880 Dump after conversion of \s-1EH\s0 handling range regions.
5881 .IP "\fB\-fdump\-rtl\-expand\fR" 4
5882 .IX Item "-fdump-rtl-expand"
5883 Dump after \s-1RTL\s0 generation.
5884 .IP "\fB\-fdump\-rtl\-fwprop1\fR" 4
5885 .IX Item "-fdump-rtl-fwprop1"
5886 .PD 0
5887 .IP "\fB\-fdump\-rtl\-fwprop2\fR" 4
5888 .IX Item "-fdump-rtl-fwprop2"
5889 .PD
5890 \&\fB\-fdump\-rtl\-fwprop1\fR and \fB\-fdump\-rtl\-fwprop2\fR enable
5891 dumping after the two forward propagation passes.
5892 .IP "\fB\-fdump\-rtl\-gcse1\fR" 4
5893 .IX Item "-fdump-rtl-gcse1"
5894 .PD 0
5895 .IP "\fB\-fdump\-rtl\-gcse2\fR" 4
5896 .IX Item "-fdump-rtl-gcse2"
5897 .PD
5898 \&\fB\-fdump\-rtl\-gcse1\fR and \fB\-fdump\-rtl\-gcse2\fR enable dumping
5899 after global common subexpression elimination.
5900 .IP "\fB\-fdump\-rtl\-init\-regs\fR" 4
5901 .IX Item "-fdump-rtl-init-regs"
5902 Dump after the initialization of the registers.
5903 .IP "\fB\-fdump\-rtl\-initvals\fR" 4
5904 .IX Item "-fdump-rtl-initvals"
5905 Dump after the computation of the initial value sets.
5906 .IP "\fB\-fdump\-rtl\-into_cfglayout\fR" 4
5907 .IX Item "-fdump-rtl-into_cfglayout"
5908 Dump after converting to cfglayout mode.
5909 .IP "\fB\-fdump\-rtl\-ira\fR" 4
5910 .IX Item "-fdump-rtl-ira"
5911 Dump after iterated register allocation.
5912 .IP "\fB\-fdump\-rtl\-jump\fR" 4
5913 .IX Item "-fdump-rtl-jump"
5914 Dump after the second jump optimization.
5915 .IP "\fB\-fdump\-rtl\-loop2\fR" 4
5916 .IX Item "-fdump-rtl-loop2"
5917 \&\fB\-fdump\-rtl\-loop2\fR enables dumping after the rtl
5918 loop optimization passes.
5919 .IP "\fB\-fdump\-rtl\-mach\fR" 4
5920 .IX Item "-fdump-rtl-mach"
5921 Dump after performing the machine dependent reorganization pass, if that
5922 pass exists.
5923 .IP "\fB\-fdump\-rtl\-mode_sw\fR" 4
5924 .IX Item "-fdump-rtl-mode_sw"
5925 Dump after removing redundant mode switches.
5926 .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
5927 .IX Item "-fdump-rtl-rnreg"
5928 Dump after register renumbering.
5929 .IP "\fB\-fdump\-rtl\-outof_cfglayout\fR" 4
5930 .IX Item "-fdump-rtl-outof_cfglayout"
5931 Dump after converting from cfglayout mode.
5932 .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
5933 .IX Item "-fdump-rtl-peephole2"
5934 Dump after the peephole pass.
5935 .IP "\fB\-fdump\-rtl\-postreload\fR" 4
5936 .IX Item "-fdump-rtl-postreload"
5937 Dump after post-reload optimizations.
5938 .IP "\fB\-fdump\-rtl\-pro_and_epilogue\fR" 4
5939 .IX Item "-fdump-rtl-pro_and_epilogue"
5940 Dump after generating the function prologues and epilogues.
5941 .IP "\fB\-fdump\-rtl\-sched1\fR" 4
5942 .IX Item "-fdump-rtl-sched1"
5943 .PD 0
5944 .IP "\fB\-fdump\-rtl\-sched2\fR" 4
5945 .IX Item "-fdump-rtl-sched2"
5946 .PD
5947 \&\fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR enable dumping
5948 after the basic block scheduling passes.
5949 .IP "\fB\-fdump\-rtl\-ree\fR" 4
5950 .IX Item "-fdump-rtl-ree"
5951 Dump after sign/zero extension elimination.
5952 .IP "\fB\-fdump\-rtl\-seqabstr\fR" 4
5953 .IX Item "-fdump-rtl-seqabstr"
5954 Dump after common sequence discovery.
5955 .IP "\fB\-fdump\-rtl\-shorten\fR" 4
5956 .IX Item "-fdump-rtl-shorten"
5957 Dump after shortening branches.
5958 .IP "\fB\-fdump\-rtl\-sibling\fR" 4
5959 .IX Item "-fdump-rtl-sibling"
5960 Dump after sibling call optimizations.
5961 .IP "\fB\-fdump\-rtl\-split1\fR" 4
5962 .IX Item "-fdump-rtl-split1"
5963 .PD 0
5964 .IP "\fB\-fdump\-rtl\-split2\fR" 4
5965 .IX Item "-fdump-rtl-split2"
5966 .IP "\fB\-fdump\-rtl\-split3\fR" 4
5967 .IX Item "-fdump-rtl-split3"
5968 .IP "\fB\-fdump\-rtl\-split4\fR" 4
5969 .IX Item "-fdump-rtl-split4"
5970 .IP "\fB\-fdump\-rtl\-split5\fR" 4
5971 .IX Item "-fdump-rtl-split5"
5972 .PD
5973 These options enable dumping after five rounds of
5974 instruction splitting.
5975 .IP "\fB\-fdump\-rtl\-sms\fR" 4
5976 .IX Item "-fdump-rtl-sms"
5977 Dump after modulo scheduling.  This pass is only run on some
5978 architectures.
5979 .IP "\fB\-fdump\-rtl\-stack\fR" 4
5980 .IX Item "-fdump-rtl-stack"
5981 Dump after conversion from \s-1GCC\s0's \*(L"flat register file\*(R" registers to the
5982 x87's stack-like registers.  This pass is only run on x86 variants.
5983 .IP "\fB\-fdump\-rtl\-subreg1\fR" 4
5984 .IX Item "-fdump-rtl-subreg1"
5985 .PD 0
5986 .IP "\fB\-fdump\-rtl\-subreg2\fR" 4
5987 .IX Item "-fdump-rtl-subreg2"
5988 .PD
5989 \&\fB\-fdump\-rtl\-subreg1\fR and \fB\-fdump\-rtl\-subreg2\fR enable dumping after
5990 the two subreg expansion passes.
5991 .IP "\fB\-fdump\-rtl\-unshare\fR" 4
5992 .IX Item "-fdump-rtl-unshare"
5993 Dump after all rtl has been unshared.
5994 .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
5995 .IX Item "-fdump-rtl-vartrack"
5996 Dump after variable tracking.
5997 .IP "\fB\-fdump\-rtl\-vregs\fR" 4
5998 .IX Item "-fdump-rtl-vregs"
5999 Dump after converting virtual registers to hard registers.
6000 .IP "\fB\-fdump\-rtl\-web\fR" 4
6001 .IX Item "-fdump-rtl-web"
6002 Dump after live range splitting.
6003 .IP "\fB\-fdump\-rtl\-regclass\fR" 4
6004 .IX Item "-fdump-rtl-regclass"
6005 .PD 0
6006 .IP "\fB\-fdump\-rtl\-subregs_of_mode_init\fR" 4
6007 .IX Item "-fdump-rtl-subregs_of_mode_init"
6008 .IP "\fB\-fdump\-rtl\-subregs_of_mode_finish\fR" 4
6009 .IX Item "-fdump-rtl-subregs_of_mode_finish"
6010 .IP "\fB\-fdump\-rtl\-dfinit\fR" 4
6011 .IX Item "-fdump-rtl-dfinit"
6012 .IP "\fB\-fdump\-rtl\-dfinish\fR" 4
6013 .IX Item "-fdump-rtl-dfinish"
6014 .PD
6015 These dumps are defined but always produce empty files.
6016 .IP "\fB\-da\fR" 4
6017 .IX Item "-da"
6018 .PD 0
6019 .IP "\fB\-fdump\-rtl\-all\fR" 4
6020 .IX Item "-fdump-rtl-all"
6021 .PD
6022 Produce all the dumps listed above.
6023 .IP "\fB\-dA\fR" 4
6024 .IX Item "-dA"
6025 Annotate the assembler output with miscellaneous debugging information.
6026 .IP "\fB\-dD\fR" 4
6027 .IX Item "-dD"
6028 Dump all macro definitions, at the end of preprocessing, in addition to
6029 normal output.
6030 .IP "\fB\-dH\fR" 4
6031 .IX Item "-dH"
6032 Produce a core dump whenever an error occurs.
6033 .IP "\fB\-dp\fR" 4
6034 .IX Item "-dp"
6035 Annotate the assembler output with a comment indicating which
6036 pattern and alternative is used.  The length of each instruction is
6037 also printed.
6038 .IP "\fB\-dP\fR" 4
6039 .IX Item "-dP"
6040 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
6041 Also turns on \fB\-dp\fR annotation.
6042 .IP "\fB\-dx\fR" 4
6043 .IX Item "-dx"
6044 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
6045 with \fB\-fdump\-rtl\-expand\fR.
6046 .RE
6047 .RS 4
6048 .RE
6049 .IP "\fB\-fdump\-noaddr\fR" 4
6050 .IX Item "-fdump-noaddr"
6051 When doing debugging dumps, suppress address output.  This makes it more
6052 feasible to use diff on debugging dumps for compiler invocations with
6053 different compiler binaries and/or different
6054 text / bss / data / heap / stack / dso start locations.
6055 .IP "\fB\-freport\-bug\fR" 4
6056 .IX Item "-freport-bug"
6057 Collect and dump debug information into temporary file if \s-1ICE\s0 in C/\*(C+
6058 compiler occured.
6059 .IP "\fB\-fdump\-unnumbered\fR" 4
6060 .IX Item "-fdump-unnumbered"
6061 When doing debugging dumps, suppress instruction numbers and address output.
6062 This makes it more feasible to use diff on debugging dumps for compiler
6063 invocations with different options, in particular with and without
6064 \&\fB\-g\fR.
6065 .IP "\fB\-fdump\-unnumbered\-links\fR" 4
6066 .IX Item "-fdump-unnumbered-links"
6067 When doing debugging dumps (see \fB\-d\fR option above), suppress
6068 instruction numbers for the links to the previous and next instructions
6069 in a sequence.
6070 .IP "\fB\-fdump\-translation\-unit\fR (\*(C+ only)" 4
6071 .IX Item "-fdump-translation-unit ( only)"
6072 .PD 0
6073 .IP "\fB\-fdump\-translation\-unit\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
6074 .IX Item "-fdump-translation-unit-options ( only)"
6075 .PD
6076 Dump a representation of the tree structure for the entire translation
6077 unit to a file.  The file name is made by appending \fI.tu\fR to the
6078 source file name, and the file is created in the same directory as the
6079 output file.  If the \fB\-\fR\fIoptions\fR form is used, \fIoptions\fR
6080 controls the details of the dump as described for the
6081 \&\fB\-fdump\-tree\fR options.
6082 .IP "\fB\-fdump\-class\-hierarchy\fR (\*(C+ only)" 4
6083 .IX Item "-fdump-class-hierarchy ( only)"
6084 .PD 0
6085 .IP "\fB\-fdump\-class\-hierarchy\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
6086 .IX Item "-fdump-class-hierarchy-options ( only)"
6087 .PD
6088 Dump a representation of each class's hierarchy and virtual function
6089 table layout to a file.  The file name is made by appending
6090 \&\fI.class\fR to the source file name, and the file is created in the
6091 same directory as the output file.  If the \fB\-\fR\fIoptions\fR form
6092 is used, \fIoptions\fR controls the details of the dump as described
6093 for the \fB\-fdump\-tree\fR options.
6094 .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
6095 .IX Item "-fdump-ipa-switch"
6096 Control the dumping at various stages of inter-procedural analysis
6097 language tree to a file.  The file name is generated by appending a
6098 switch specific suffix to the source file name, and the file is created
6099 in the same directory as the output file.  The following dumps are
6100 possible:
6101 .RS 4
6102 .IP "\fBall\fR" 4
6103 .IX Item "all"
6104 Enables all inter-procedural analysis dumps.
6105 .IP "\fBcgraph\fR" 4
6106 .IX Item "cgraph"
6107 Dumps information about call-graph optimization, unused function removal,
6108 and inlining decisions.
6109 .IP "\fBinline\fR" 4
6110 .IX Item "inline"
6111 Dump after function inlining.
6112 .RE
6113 .RS 4
6114 .RE
6115 .IP "\fB\-fdump\-passes\fR" 4
6116 .IX Item "-fdump-passes"
6117 Dump the list of optimization passes that are turned on and off by
6118 the current command-line options.
6119 .IP "\fB\-fdump\-statistics\-\fR\fIoption\fR" 4
6120 .IX Item "-fdump-statistics-option"
6121 Enable and control dumping of pass statistics in a separate file.  The
6122 file name is generated by appending a suffix ending in
6123 \&\fB.statistics\fR to the source file name, and the file is created in
6124 the same directory as the output file.  If the \fB\-\fR\fIoption\fR
6125 form is used, \fB\-stats\fR causes counters to be summed over the
6126 whole compilation unit while \fB\-details\fR dumps every event as
6127 the passes generate them.  The default with no option is to sum
6128 counters for each function compiled.
6129 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR" 4
6130 .IX Item "-fdump-tree-switch"
6131 .PD 0
6132 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
6133 .IX Item "-fdump-tree-switch-options"
6134 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
6135 .IX Item "-fdump-tree-switch-options=filename"
6136 .PD
6137 Control the dumping at various stages of processing the intermediate
6138 language tree to a file.  The file name is generated by appending a
6139 switch-specific suffix to the source file name, and the file is
6140 created in the same directory as the output file. In case of
6141 \&\fB=\fR\fIfilename\fR option, the dump is output on the given file
6142 instead of the auto named dump files.  If the \fB\-\fR\fIoptions\fR
6143 form is used, \fIoptions\fR is a list of \fB\-\fR separated options
6144 which control the details of the dump.  Not all options are applicable
6145 to all dumps; those that are not meaningful are ignored.  The
6146 following options are available
6147 .RS 4
6148 .IP "\fBaddress\fR" 4
6149 .IX Item "address"
6150 Print the address of each node.  Usually this is not meaningful as it
6151 changes according to the environment and source file.  Its primary use
6152 is for tying up a dump file with a debug environment.
6153 .IP "\fBasmname\fR" 4
6154 .IX Item "asmname"
6155 If \f(CW\*(C`DECL_ASSEMBLER_NAME\*(C'\fR has been set for a given decl, use that
6156 in the dump instead of \f(CW\*(C`DECL_NAME\*(C'\fR.  Its primary use is ease of
6157 use working backward from mangled names in the assembly file.
6158 .IP "\fBslim\fR" 4
6159 .IX Item "slim"
6160 When dumping front-end intermediate representations, inhibit dumping
6161 of members of a scope or body of a function merely because that scope
6162 has been reached.  Only dump such items when they are directly reachable
6163 by some other path.
6164 .Sp
6165 When dumping pretty-printed trees, this option inhibits dumping the
6166 bodies of control structures.
6167 .Sp
6168 When dumping \s-1RTL\s0, print the \s-1RTL\s0 in slim (condensed) form instead of
6169 the default LISP-like representation.
6170 .IP "\fBraw\fR" 4
6171 .IX Item "raw"
6172 Print a raw representation of the tree.  By default, trees are
6173 pretty-printed into a C\-like representation.
6174 .IP "\fBdetails\fR" 4
6175 .IX Item "details"
6176 Enable more detailed dumps (not honored by every dump option). Also
6177 include information from the optimization passes.
6178 .IP "\fBstats\fR" 4
6179 .IX Item "stats"
6180 Enable dumping various statistics about the pass (not honored by every dump
6181 option).
6182 .IP "\fBblocks\fR" 4
6183 .IX Item "blocks"
6184 Enable showing basic block boundaries (disabled in raw dumps).
6185 .IP "\fBgraph\fR" 4
6186 .IX Item "graph"
6187 For each of the other indicated dump files (\fB\-fdump\-rtl\-\fR\fIpass\fR),
6188 dump a representation of the control flow graph suitable for viewing with
6189 GraphViz to \fI\fIfile\fI.\fIpassid\fI.\fIpass\fI.dot\fR.  Each function in
6190 the file is pretty-printed as a subgraph, so that GraphViz can render them
6191 all in a single plot.
6192 .Sp
6193 This option currently only works for \s-1RTL\s0 dumps, and the \s-1RTL\s0 is always
6194 dumped in slim form.
6195 .IP "\fBvops\fR" 4
6196 .IX Item "vops"
6197 Enable showing virtual operands for every statement.
6198 .IP "\fBlineno\fR" 4
6199 .IX Item "lineno"
6200 Enable showing line numbers for statements.
6201 .IP "\fBuid\fR" 4
6202 .IX Item "uid"
6203 Enable showing the unique \s-1ID\s0 (\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
6204 .IP "\fBverbose\fR" 4
6205 .IX Item "verbose"
6206 Enable showing the tree dump for each statement.
6207 .IP "\fBeh\fR" 4
6208 .IX Item "eh"
6209 Enable showing the \s-1EH\s0 region number holding each statement.
6210 .IP "\fBscev\fR" 4
6211 .IX Item "scev"
6212 Enable showing scalar evolution analysis details.
6213 .IP "\fBoptimized\fR" 4
6214 .IX Item "optimized"
6215 Enable showing optimization information (only available in certain
6216 passes).
6217 .IP "\fBmissed\fR" 4
6218 .IX Item "missed"
6219 Enable showing missed optimization information (only available in certain
6220 passes).
6221 .IP "\fBnote\fR" 4
6222 .IX Item "note"
6223 Enable other detailed optimization information (only available in
6224 certain passes).
6225 .IP "\fB=\fR\fIfilename\fR" 4
6226 .IX Item "=filename"
6227 Instead of an auto named dump file, output into the given file
6228 name. The file names \fIstdout\fR and \fIstderr\fR are treated
6229 specially and are considered already open standard streams. For
6230 example,
6231 .Sp
6232 .Vb 2
6233 \&        gcc \-O2 \-ftree\-vectorize \-fdump\-tree\-vect\-blocks=foo.dump
6234 \&             \-fdump\-tree\-pre=stderr file.c
6235 .Ve
6236 .Sp
6237 outputs vectorizer dump into \fIfoo.dump\fR, while the \s-1PRE\s0 dump is
6238 output on to \fIstderr\fR. If two conflicting dump filenames are
6239 given for the same pass, then the latter option overrides the earlier
6240 one.
6241 .IP "\fBall\fR" 4
6242 .IX Item "all"
6243 Turn on all options, except \fBraw\fR, \fBslim\fR, \fBverbose\fR
6244 and \fBlineno\fR.
6245 .IP "\fBoptall\fR" 4
6246 .IX Item "optall"
6247 Turn on all optimization options, i.e., \fBoptimized\fR,
6248 \&\fBmissed\fR, and \fBnote\fR.
6249 .RE
6250 .RS 4
6251 .Sp
6252 The following tree dumps are possible:
6253 .IP "\fBoriginal\fR" 4
6254 .IX Item "original"
6255 Dump before any tree based optimization, to \fI\fIfile\fI.original\fR.
6256 .IP "\fBoptimized\fR" 4
6257 .IX Item "optimized"
6258 Dump after all tree based optimization, to \fI\fIfile\fI.optimized\fR.
6259 .IP "\fBgimple\fR" 4
6260 .IX Item "gimple"
6261 Dump each function before and after the gimplification pass to a file.  The
6262 file name is made by appending \fI.gimple\fR to the source file name.
6263 .IP "\fBcfg\fR" 4
6264 .IX Item "cfg"
6265 Dump the control flow graph of each function to a file.  The file name is
6266 made by appending \fI.cfg\fR to the source file name.
6267 .IP "\fBch\fR" 4
6268 .IX Item "ch"
6269 Dump each function after copying loop headers.  The file name is made by
6270 appending \fI.ch\fR to the source file name.
6271 .IP "\fBssa\fR" 4
6272 .IX Item "ssa"
6273 Dump \s-1SSA\s0 related information to a file.  The file name is made by appending
6274 \&\fI.ssa\fR to the source file name.
6275 .IP "\fBalias\fR" 4
6276 .IX Item "alias"
6277 Dump aliasing information for each function.  The file name is made by
6278 appending \fI.alias\fR to the source file name.
6279 .IP "\fBccp\fR" 4
6280 .IX Item "ccp"
6281 Dump each function after \s-1CCP\s0.  The file name is made by appending
6282 \&\fI.ccp\fR to the source file name.
6283 .IP "\fBstoreccp\fR" 4
6284 .IX Item "storeccp"
6285 Dump each function after STORE-CCP.  The file name is made by appending
6286 \&\fI.storeccp\fR to the source file name.
6287 .IP "\fBpre\fR" 4
6288 .IX Item "pre"
6289 Dump trees after partial redundancy elimination.  The file name is made
6290 by appending \fI.pre\fR to the source file name.
6291 .IP "\fBfre\fR" 4
6292 .IX Item "fre"
6293 Dump trees after full redundancy elimination.  The file name is made
6294 by appending \fI.fre\fR to the source file name.
6295 .IP "\fBcopyprop\fR" 4
6296 .IX Item "copyprop"
6297 Dump trees after copy propagation.  The file name is made
6298 by appending \fI.copyprop\fR to the source file name.
6299 .IP "\fBstore_copyprop\fR" 4
6300 .IX Item "store_copyprop"
6301 Dump trees after store copy-propagation.  The file name is made
6302 by appending \fI.store_copyprop\fR to the source file name.
6303 .IP "\fBdce\fR" 4
6304 .IX Item "dce"
6305 Dump each function after dead code elimination.  The file name is made by
6306 appending \fI.dce\fR to the source file name.
6307 .IP "\fBsra\fR" 4
6308 .IX Item "sra"
6309 Dump each function after performing scalar replacement of aggregates.  The
6310 file name is made by appending \fI.sra\fR to the source file name.
6311 .IP "\fBsink\fR" 4
6312 .IX Item "sink"
6313 Dump each function after performing code sinking.  The file name is made
6314 by appending \fI.sink\fR to the source file name.
6315 .IP "\fBdom\fR" 4
6316 .IX Item "dom"
6317 Dump each function after applying dominator tree optimizations.  The file
6318 name is made by appending \fI.dom\fR to the source file name.
6319 .IP "\fBdse\fR" 4
6320 .IX Item "dse"
6321 Dump each function after applying dead store elimination.  The file
6322 name is made by appending \fI.dse\fR to the source file name.
6323 .IP "\fBphiopt\fR" 4
6324 .IX Item "phiopt"
6325 Dump each function after optimizing \s-1PHI\s0 nodes into straightline code.  The file
6326 name is made by appending \fI.phiopt\fR to the source file name.
6327 .IP "\fBforwprop\fR" 4
6328 .IX Item "forwprop"
6329 Dump each function after forward propagating single use variables.  The file
6330 name is made by appending \fI.forwprop\fR to the source file name.
6331 .IP "\fBcopyrename\fR" 4
6332 .IX Item "copyrename"
6333 Dump each function after applying the copy rename optimization.  The file
6334 name is made by appending \fI.copyrename\fR to the source file name.
6335 .IP "\fBnrv\fR" 4
6336 .IX Item "nrv"
6337 Dump each function after applying the named return value optimization on
6338 generic trees.  The file name is made by appending \fI.nrv\fR to the source
6339 file name.
6340 .IP "\fBvect\fR" 4
6341 .IX Item "vect"
6342 Dump each function after applying vectorization of loops.  The file name is
6343 made by appending \fI.vect\fR to the source file name.
6344 .IP "\fBslp\fR" 4
6345 .IX Item "slp"
6346 Dump each function after applying vectorization of basic blocks.  The file name
6347 is made by appending \fI.slp\fR to the source file name.
6348 .IP "\fBvrp\fR" 4
6349 .IX Item "vrp"
6350 Dump each function after Value Range Propagation (\s-1VRP\s0).  The file name
6351 is made by appending \fI.vrp\fR to the source file name.
6352 .IP "\fBall\fR" 4
6353 .IX Item "all"
6354 Enable all the available tree dumps with the flags provided in this option.
6355 .RE
6356 .RS 4
6357 .RE
6358 .IP "\fB\-fopt\-info\fR" 4
6359 .IX Item "-fopt-info"
6360 .PD 0
6361 .IP "\fB\-fopt\-info\-\fR\fIoptions\fR" 4
6362 .IX Item "-fopt-info-options"
6363 .IP "\fB\-fopt\-info\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
6364 .IX Item "-fopt-info-options=filename"
6365 .PD
6366 Controls optimization dumps from various optimization passes. If the
6367 \&\fB\-\fR\fIoptions\fR form is used, \fIoptions\fR is a list of
6368 \&\fB\-\fR separated option keywords to select the dump details and
6369 optimizations.
6370 .Sp
6371 The \fIoptions\fR can be divided into two groups: options describing the
6372 verbosity of the dump, and options describing which optimizations
6373 should be included. The options from both the groups can be freely
6374 mixed as they are non-overlapping. However, in case of any conflicts,
6375 the later options override the earlier options on the command
6376 line.
6377 .Sp
6378 The following options control the dump verbosity:
6379 .RS 4
6380 .IP "\fBoptimized\fR" 4
6381 .IX Item "optimized"
6382 Print information when an optimization is successfully applied. It is
6383 up to a pass to decide which information is relevant. For example, the
6384 vectorizer passes print the source location of loops which are
6385 successfully vectorized.
6386 .IP "\fBmissed\fR" 4
6387 .IX Item "missed"
6388 Print information about missed optimizations. Individual passes
6389 control which information to include in the output.
6390 .IP "\fBnote\fR" 4
6391 .IX Item "note"
6392 Print verbose information about optimizations, such as certain
6393 transformations, more detailed messages about decisions etc.
6394 .IP "\fBall\fR" 4
6395 .IX Item "all"
6396 Print detailed optimization information. This includes
6397 \&\fBoptimized\fR, \fBmissed\fR, and \fBnote\fR.
6398 .RE
6399 .RS 4
6400 .Sp
6401 One or more of the following option keywords can be used to describe a
6402 group of optimizations:
6403 .IP "\fBipa\fR" 4
6404 .IX Item "ipa"
6405 Enable dumps from all interprocedural optimizations.
6406 .IP "\fBloop\fR" 4
6407 .IX Item "loop"
6408 Enable dumps from all loop optimizations.
6409 .IP "\fBinline\fR" 4
6410 .IX Item "inline"
6411 Enable dumps from all inlining optimizations.
6412 .IP "\fBvec\fR" 4
6413 .IX Item "vec"
6414 Enable dumps from all vectorization optimizations.
6415 .IP "\fBoptall\fR" 4
6416 .IX Item "optall"
6417 Enable dumps from all optimizations. This is a superset of
6418 the optimization groups listed above.
6419 .RE
6420 .RS 4
6421 .Sp
6422 If \fIoptions\fR is
6423 omitted, it defaults to \fBoptimized-optall\fR, which means to dump all
6424 info about successful optimizations from all the passes.
6425 .Sp
6426 If the \fIfilename\fR is provided, then the dumps from all the
6427 applicable optimizations are concatenated into the \fIfilename\fR.
6428 Otherwise the dump is output onto \fIstderr\fR. Though multiple
6429 \&\fB\-fopt\-info\fR options are accepted, only one of them can include
6430 a \fIfilename\fR. If other filenames are provided then all but the
6431 first such option are ignored.
6432 .Sp
6433 Note that the output \fIfilename\fR is overwritten
6434 in case of multiple translation units. If a combined output from
6435 multiple translation units is desired, \fIstderr\fR should be used
6436 instead.
6437 .Sp
6438 In the following example, the optimization info is output to
6439 \&\fIstderr\fR:
6440 .Sp
6441 .Vb 1
6442 \&        gcc \-O3 \-fopt\-info
6443 .Ve
6444 .Sp
6445 This example:
6446 .Sp
6447 .Vb 1
6448 \&        gcc \-O3 \-fopt\-info\-missed=missed.all
6449 .Ve
6450 .Sp
6451 outputs missed optimization report from all the passes into
6452 \&\fImissed.all\fR, and this one:
6453 .Sp
6454 .Vb 1
6455 \&        gcc \-O2 \-ftree\-vectorize \-fopt\-info\-vec\-missed
6456 .Ve
6457 .Sp
6458 prints information about missed optimization opportunities from
6459 vectorization passes on \fIstderr\fR.  
6460 Note that \fB\-fopt\-info\-vec\-missed\fR is equivalent to 
6461 \&\fB\-fopt\-info\-missed\-vec\fR.
6462 .Sp
6463 As another example,
6464 .Sp
6465 .Vb 1
6466 \&        gcc \-O3 \-fopt\-info\-inline\-optimized\-missed=inline.txt
6467 .Ve
6468 .Sp
6469 outputs information about missed optimizations as well as
6470 optimized locations from all the inlining passes into
6471 \&\fIinline.txt\fR.
6472 .Sp
6473 Finally, consider:
6474 .Sp
6475 .Vb 1
6476 \&        gcc \-fopt\-info\-vec\-missed=vec.miss \-fopt\-info\-loop\-optimized=loop.opt
6477 .Ve
6478 .Sp
6479 Here the two output filenames \fIvec.miss\fR and \fIloop.opt\fR are
6480 in conflict since only one output file is allowed. In this case, only
6481 the first option takes effect and the subsequent options are
6482 ignored. Thus only \fIvec.miss\fR is produced which contains
6483 dumps from the vectorizer about missed opportunities.
6484 .RE
6485 .IP "\fB\-frandom\-seed=\fR\fInumber\fR" 4
6486 .IX Item "-frandom-seed=number"
6487 This option provides a seed that \s-1GCC\s0 uses in place of
6488 random numbers in generating certain symbol names
6489 that have to be different in every compiled file.  It is also used to
6490 place unique stamps in coverage data files and the object files that
6491 produce them.  You can use the \fB\-frandom\-seed\fR option to produce
6492 reproducibly identical object files.
6493 .Sp
6494 The \fInumber\fR should be different for every file you compile.
6495 .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
6496 .IX Item "-fsched-verbose=n"
6497 On targets that use instruction scheduling, this option controls the
6498 amount of debugging output the scheduler prints.  This information is
6499 written to standard error, unless \fB\-fdump\-rtl\-sched1\fR or
6500 \&\fB\-fdump\-rtl\-sched2\fR is specified, in which case it is output
6501 to the usual dump listing file, \fI.sched1\fR or \fI.sched2\fR
6502 respectively.  However for \fIn\fR greater than nine, the output is
6503 always printed to standard error.
6504 .Sp
6505 For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
6506 same information as \fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR.
6507 For \fIn\fR greater than one, it also output basic block probabilities,
6508 detailed ready list information and unit/insn info.  For \fIn\fR greater
6509 than two, it includes \s-1RTL\s0 at abort point, control-flow and regions info.
6510 And for \fIn\fR over four, \fB\-fsched\-verbose\fR also includes
6511 dependence info.
6512 .IP "\fB\-save\-temps\fR" 4
6513 .IX Item "-save-temps"
6514 .PD 0
6515 .IP "\fB\-save\-temps=cwd\fR" 4
6516 .IX Item "-save-temps=cwd"
6517 .PD
6518 Store the usual \*(L"temporary\*(R" intermediate files permanently; place them
6519 in the current directory and name them based on the source file.  Thus,
6520 compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR produces files
6521 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
6522 preprocessed \fIfoo.i\fR output file even though the compiler now
6523 normally uses an integrated preprocessor.
6524 .Sp
6525 When used in combination with the \fB\-x\fR command-line option,
6526 \&\fB\-save\-temps\fR is sensible enough to avoid over writing an
6527 input source file with the same extension as an intermediate file.
6528 The corresponding intermediate file may be obtained by renaming the
6529 source file before using \fB\-save\-temps\fR.
6530 .Sp
6531 If you invoke \s-1GCC\s0 in parallel, compiling several different source
6532 files that share a common base name in different subdirectories or the
6533 same source file compiled for multiple output destinations, it is
6534 likely that the different parallel compilers will interfere with each
6535 other, and overwrite the temporary files.  For instance:
6536 .Sp
6537 .Vb 2
6538 \&        gcc \-save\-temps \-o outdir1/foo.o indir1/foo.c&
6539 \&        gcc \-save\-temps \-o outdir2/foo.o indir2/foo.c&
6540 .Ve
6541 .Sp
6542 may result in \fIfoo.i\fR and \fIfoo.o\fR being written to
6543 simultaneously by both compilers.
6544 .IP "\fB\-save\-temps=obj\fR" 4
6545 .IX Item "-save-temps=obj"
6546 Store the usual \*(L"temporary\*(R" intermediate files permanently.  If the
6547 \&\fB\-o\fR option is used, the temporary files are based on the
6548 object file.  If the \fB\-o\fR option is not used, the
6549 \&\fB\-save\-temps=obj\fR switch behaves like \fB\-save\-temps\fR.
6550 .Sp
6551 For example:
6552 .Sp
6553 .Vb 3
6554 \&        gcc \-save\-temps=obj \-c foo.c
6555 \&        gcc \-save\-temps=obj \-c bar.c \-o dir/xbar.o
6556 \&        gcc \-save\-temps=obj foobar.c \-o dir2/yfoobar
6557 .Ve
6558 .Sp
6559 creates \fIfoo.i\fR, \fIfoo.s\fR, \fIdir/xbar.i\fR,
6560 \&\fIdir/xbar.s\fR, \fIdir2/yfoobar.i\fR, \fIdir2/yfoobar.s\fR, and
6561 \&\fIdir2/yfoobar.o\fR.
6562 .IP "\fB\-time\fR[\fB=\fR\fIfile\fR]" 4
6563 .IX Item "-time[=file]"
6564 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
6565 sequence.  For C source files, this is the compiler proper and assembler
6566 (plus the linker if linking is done).
6567 .Sp
6568 Without the specification of an output file, the output looks like this:
6569 .Sp
6570 .Vb 2
6571 \&        # cc1 0.12 0.01
6572 \&        # as 0.00 0.01
6573 .Ve
6574 .Sp
6575 The first number on each line is the \*(L"user time\*(R", that is time spent
6576 executing the program itself.  The second number is \*(L"system time\*(R",
6577 time spent executing operating system routines on behalf of the program.
6578 Both numbers are in seconds.
6579 .Sp
6580 With the specification of an output file, the output is appended to the
6581 named file, and it looks like this:
6582 .Sp
6583 .Vb 2
6584 \&        0.12 0.01 cc1 <options>
6585 \&        0.00 0.01 as <options>
6586 .Ve
6587 .Sp
6588 The \*(L"user time\*(R" and the \*(L"system time\*(R" are moved before the program
6589 name, and the options passed to the program are displayed, so that one
6590 can later tell what file was being compiled, and with which options.
6591 .IP "\fB\-fvar\-tracking\fR" 4
6592 .IX Item "-fvar-tracking"
6593 Run variable tracking pass.  It computes where variables are stored at each
6594 position in code.  Better debugging information is then generated
6595 (if the debugging information format supports this information).
6596 .Sp
6597 It is enabled by default when compiling with optimization (\fB\-Os\fR,
6598 \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
6599 the debug info format supports it.
6600 .IP "\fB\-fvar\-tracking\-assignments\fR" 4
6601 .IX Item "-fvar-tracking-assignments"
6602 Annotate assignments to user variables early in the compilation and
6603 attempt to carry the annotations over throughout the compilation all the
6604 way to the end, in an attempt to improve debug information while
6605 optimizing.  Use of \fB\-gdwarf\-4\fR is recommended along with it.
6606 .Sp
6607 It can be enabled even if var-tracking is disabled, in which case
6608 annotations are created and maintained, but discarded at the end.
6609 By default, this flag is enabled together with \fB\-fvar\-tracking\fR,
6610 except when selective scheduling is enabled.
6611 .IP "\fB\-fvar\-tracking\-assignments\-toggle\fR" 4
6612 .IX Item "-fvar-tracking-assignments-toggle"
6613 Toggle \fB\-fvar\-tracking\-assignments\fR, in the same way that
6614 \&\fB\-gtoggle\fR toggles \fB\-g\fR.
6615 .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
6616 .IX Item "-print-file-name=library"
6617 Print the full absolute name of the library file \fIlibrary\fR that
6618 would be used when linking\-\-\-and don't do anything else.  With this
6619 option, \s-1GCC\s0 does not compile or link anything; it just prints the
6620 file name.
6621 .IP "\fB\-print\-multi\-directory\fR" 4
6622 .IX Item "-print-multi-directory"
6623 Print the directory name corresponding to the multilib selected by any
6624 other switches present in the command line.  This directory is supposed
6625 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
6626 .IP "\fB\-print\-multi\-lib\fR" 4
6627 .IX Item "-print-multi-lib"
6628 Print the mapping from multilib directory names to compiler switches
6629 that enable them.  The directory name is separated from the switches by
6630 \&\fB;\fR, and each switch starts with an \fB@\fR instead of the
6631 \&\fB\-\fR, without spaces between multiple switches.  This is supposed to
6632 ease shell processing.
6633 .IP "\fB\-print\-multi\-os\-directory\fR" 4
6634 .IX Item "-print-multi-os-directory"
6635 Print the path to \s-1OS\s0 libraries for the selected
6636 multilib, relative to some \fIlib\fR subdirectory.  If \s-1OS\s0 libraries are
6637 present in the \fIlib\fR subdirectory and no multilibs are used, this is
6638 usually just \fI.\fR, if \s-1OS\s0 libraries are present in \fIlib\fIsuffix\fI\fR
6639 sibling directories this prints e.g. \fI../lib64\fR, \fI../lib\fR or
6640 \&\fI../lib32\fR, or if \s-1OS\s0 libraries are present in \fIlib/\fIsubdir\fI\fR
6641 subdirectories it prints e.g. \fIamd64\fR, \fIsparcv9\fR or \fIev6\fR.
6642 .IP "\fB\-print\-multiarch\fR" 4
6643 .IX Item "-print-multiarch"
6644 Print the path to \s-1OS\s0 libraries for the selected multiarch,
6645 relative to some \fIlib\fR subdirectory.
6646 .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
6647 .IX Item "-print-prog-name=program"
6648 Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
6649 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
6650 .IX Item "-print-libgcc-file-name"
6651 Same as \fB\-print\-file\-name=libgcc.a\fR.
6652 .Sp
6653 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
6654 but you do want to link with \fIlibgcc.a\fR.  You can do:
6655 .Sp
6656 .Vb 1
6657 \&        gcc \-nostdlib <files>... \`gcc \-print\-libgcc\-file\-name\`
6658 .Ve
6659 .IP "\fB\-print\-search\-dirs\fR" 4
6660 .IX Item "-print-search-dirs"
6661 Print the name of the configured installation directory and a list of
6662 program and library directories \fBgcc\fR searches\-\-\-and don't do anything else.
6663 .Sp
6664 This is useful when \fBgcc\fR prints the error message
6665 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
6666 To resolve this you either need to put \fIcpp0\fR and the other compiler
6667 components where \fBgcc\fR expects to find them, or you can set the environment
6668 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
6669 Don't forget the trailing \fB/\fR.
6670 .IP "\fB\-print\-sysroot\fR" 4
6671 .IX Item "-print-sysroot"
6672 Print the target sysroot directory that is used during
6673 compilation.  This is the target sysroot specified either at configure
6674 time or using the \fB\-\-sysroot\fR option, possibly with an extra
6675 suffix that depends on compilation options.  If no target sysroot is
6676 specified, the option prints nothing.
6677 .IP "\fB\-print\-sysroot\-headers\-suffix\fR" 4
6678 .IX Item "-print-sysroot-headers-suffix"
6679 Print the suffix added to the target sysroot when searching for
6680 headers, or give an error if the compiler is not configured with such
6681 a suffix\-\-\-and don't do anything else.
6682 .IP "\fB\-dumpmachine\fR" 4
6683 .IX Item "-dumpmachine"
6684 Print the compiler's target machine (for example,
6685 \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
6686 .IP "\fB\-dumpversion\fR" 4
6687 .IX Item "-dumpversion"
6688 Print the compiler version (for example, \f(CW3.0\fR)\-\-\-and don't do
6689 anything else.
6690 .IP "\fB\-dumpspecs\fR" 4
6691 .IX Item "-dumpspecs"
6692 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
6693 is used when \s-1GCC\s0 itself is being built.)
6694 .IP "\fB\-fno\-eliminate\-unused\-debug\-types\fR" 4
6695 .IX Item "-fno-eliminate-unused-debug-types"
6696 Normally, when producing \s-1DWARF\s0 2 output, \s-1GCC\s0 avoids producing debug symbol 
6697 output for types that are nowhere used in the source file being compiled.
6698 Sometimes it is useful to have \s-1GCC\s0 emit debugging
6699 information for all types declared in a compilation
6700 unit, regardless of whether or not they are actually used
6701 in that compilation unit, for example 
6702 if, in the debugger, you want to cast a value to a type that is
6703 not actually used in your program (but is declared).  More often,
6704 however, this results in a significant amount of wasted space.
6705 .Sh "Options That Control Optimization"
6706 .IX Subsection "Options That Control Optimization"
6707 These options control various sorts of optimizations.
6708 .PP
6709 Without any optimization option, the compiler's goal is to reduce the
6710 cost of compilation and to make debugging produce the expected
6711 results.  Statements are independent: if you stop the program with a
6712 breakpoint between statements, you can then assign a new value to any
6713 variable or change the program counter to any other statement in the
6714 function and get exactly the results you expect from the source
6715 code.
6716 .PP
6717 Turning on optimization flags makes the compiler attempt to improve
6718 the performance and/or code size at the expense of compilation time
6719 and possibly the ability to debug the program.
6720 .PP
6721 The compiler performs optimization based on the knowledge it has of the
6722 program.  Compiling multiple files at once to a single output file mode allows
6723 the compiler to use information gained from all of the files when compiling
6724 each of them.
6725 .PP
6726 Not all optimizations are controlled directly by a flag.  Only
6727 optimizations that have a flag are listed in this section.
6728 .PP
6729 Most optimizations are only enabled if an \fB\-O\fR level is set on
6730 the command line.  Otherwise they are disabled, even if individual
6731 optimization flags are specified.
6732 .PP
6733 Depending on the target and how \s-1GCC\s0 was configured, a slightly different
6734 set of optimizations may be enabled at each \fB\-O\fR level than
6735 those listed here.  You can invoke \s-1GCC\s0 with \fB\-Q \-\-help=optimizers\fR
6736 to find out the exact set of optimizations that are enabled at each level.
6737 .IP "\fB\-O\fR" 4
6738 .IX Item "-O"
6739 .PD 0
6740 .IP "\fB\-O1\fR" 4
6741 .IX Item "-O1"
6742 .PD
6743 Optimize.  Optimizing compilation takes somewhat more time, and a lot
6744 more memory for a large function.
6745 .Sp
6746 With \fB\-O\fR, the compiler tries to reduce code size and execution
6747 time, without performing any optimizations that take a great deal of
6748 compilation time.
6749 .Sp
6750 \&\fB\-O\fR turns on the following optimization flags:
6751 .Sp
6752 \&\fB\-fauto\-inc\-dec 
6753 \&\-fbranch\-count\-reg 
6754 \&\-fcombine\-stack\-adjustments 
6755 \&\-fcompare\-elim 
6756 \&\-fcprop\-registers 
6757 \&\-fdce 
6758 \&\-fdefer\-pop 
6759 \&\-fdelayed\-branch 
6760 \&\-fdse 
6761 \&\-fforward\-propagate 
6762 \&\-fguess\-branch\-probability 
6763 \&\-fif\-conversion2 
6764 \&\-fif\-conversion 
6765 \&\-finline\-functions\-called\-once 
6766 \&\-fipa\-pure\-const 
6767 \&\-fipa\-profile 
6768 \&\-fipa\-reference 
6769 \&\-fmerge\-constants 
6770 \&\-fmove\-loop\-invariants 
6771 \&\-fshrink\-wrap 
6772 \&\-fsplit\-wide\-types 
6773 \&\-ftree\-bit\-ccp 
6774 \&\-ftree\-ccp 
6775 \&\-fssa\-phiopt 
6776 \&\-ftree\-ch 
6777 \&\-ftree\-copy\-prop 
6778 \&\-ftree\-copyrename 
6779 \&\-ftree\-dce 
6780 \&\-ftree\-dominator\-opts 
6781 \&\-ftree\-dse 
6782 \&\-ftree\-forwprop 
6783 \&\-ftree\-fre 
6784 \&\-ftree\-phiprop 
6785 \&\-ftree\-sink 
6786 \&\-ftree\-slsr 
6787 \&\-ftree\-sra 
6788 \&\-ftree\-pta 
6789 \&\-ftree\-ter 
6790 \&\-funit\-at\-a\-time\fR
6791 .Sp
6792 \&\fB\-O\fR also turns on \fB\-fomit\-frame\-pointer\fR on machines
6793 where doing so does not interfere with debugging.
6794 .IP "\fB\-O2\fR" 4
6795 .IX Item "-O2"
6796 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
6797 that do not involve a space-speed tradeoff.
6798 As compared to \fB\-O\fR, this option increases both compilation time
6799 and the performance of the generated code.
6800 .Sp
6801 \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR.  It
6802 also turns on the following optimization flags:
6803 \&\fB\-fthread\-jumps 
6804 \&\-falign\-functions  \-falign\-jumps 
6805 \&\-falign\-loops  \-falign\-labels 
6806 \&\-fcaller\-saves 
6807 \&\-fcrossjumping 
6808 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks 
6809 \&\-fdelete\-null\-pointer\-checks 
6810 \&\-fdevirtualize \-fdevirtualize\-speculatively 
6811 \&\-fexpensive\-optimizations 
6812 \&\-fgcse  \-fgcse\-lm  
6813 \&\-fhoist\-adjacent\-loads 
6814 \&\-finline\-small\-functions 
6815 \&\-findirect\-inlining 
6816 \&\-fipa\-cp 
6817 \&\-fipa\-cp\-alignment 
6818 \&\-fipa\-sra 
6819 \&\-fipa\-icf 
6820 \&\-fisolate\-erroneous\-paths\-dereference 
6821 \&\-flra\-remat 
6822 \&\-foptimize\-sibling\-calls 
6823 \&\-foptimize\-strlen 
6824 \&\-fpartial\-inlining 
6825 \&\-fpeephole2 
6826 \&\-freorder\-blocks \-freorder\-blocks\-and\-partition \-freorder\-functions 
6827 \&\-frerun\-cse\-after\-loop  
6828 \&\-fsched\-interblock  \-fsched\-spec 
6829 \&\-fschedule\-insns  \-fschedule\-insns2 
6830 \&\-fstrict\-aliasing \-fstrict\-overflow 
6831 \&\-ftree\-builtin\-call\-dce 
6832 \&\-ftree\-switch\-conversion \-ftree\-tail\-merge 
6833 \&\-ftree\-pre 
6834 \&\-ftree\-vrp 
6835 \&\-fipa\-ra\fR
6836 .Sp
6837 Please note the warning under \fB\-fgcse\fR about
6838 invoking \fB\-O2\fR on programs that use computed gotos.
6839 .IP "\fB\-O3\fR" 4
6840 .IX Item "-O3"
6841 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified
6842 by \fB\-O2\fR and also turns on the \fB\-finline\-functions\fR,
6843 \&\fB\-funswitch\-loops\fR, \fB\-fpredictive\-commoning\fR,
6844 \&\fB\-fgcse\-after\-reload\fR, \fB\-ftree\-loop\-vectorize\fR,
6845 \&\fB\-ftree\-loop\-distribute\-patterns\fR,
6846 \&\fB\-ftree\-slp\-vectorize\fR, \fB\-fvect\-cost\-model\fR,
6847 \&\fB\-ftree\-partial\-pre\fR and \fB\-fipa\-cp\-clone\fR options.
6848 .IP "\fB\-O0\fR" 4
6849 .IX Item "-O0"
6850 Reduce compilation time and make debugging produce the expected
6851 results.  This is the default.
6852 .IP "\fB\-Os\fR" 4
6853 .IX Item "-Os"
6854 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
6855 do not typically increase code size.  It also performs further
6856 optimizations designed to reduce code size.
6857 .Sp
6858 \&\fB\-Os\fR disables the following optimization flags:
6859 \&\fB\-falign\-functions  \-falign\-jumps  \-falign\-loops 
6860 \&\-falign\-labels  \-freorder\-blocks  \-freorder\-blocks\-and\-partition 
6861 \&\-fprefetch\-loop\-arrays\fR
6862 .IP "\fB\-Ofast\fR" 4
6863 .IX Item "-Ofast"
6864 Disregard strict standards compliance.  \fB\-Ofast\fR enables all
6865 \&\fB\-O3\fR optimizations.  It also enables optimizations that are not
6866 valid for all standard-compliant programs.
6867 It turns on \fB\-ffast\-math\fR and the Fortran-specific
6868 \&\fB\-fno\-protect\-parens\fR and \fB\-fstack\-arrays\fR.
6869 .IP "\fB\-Og\fR" 4
6870 .IX Item "-Og"
6871 Optimize debugging experience.  \fB\-Og\fR enables optimizations
6872 that do not interfere with debugging. It should be the optimization
6873 level of choice for the standard edit-compile-debug cycle, offering
6874 a reasonable level of optimization while maintaining fast compilation
6875 and a good debugging experience.
6876 .Sp
6877 If you use multiple \fB\-O\fR options, with or without level numbers,
6878 the last such option is the one that is effective.
6879 .PP
6880 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
6881 flags.  Most flags have both positive and negative forms; the negative
6882 form of \fB\-ffoo\fR is \fB\-fno\-foo\fR.  In the table
6883 below, only one of the forms is listed\-\-\-the one you typically 
6884 use.  You can figure out the other form by either removing \fBno\-\fR
6885 or adding it.
6886 .PP
6887 The following options control specific optimizations.  They are either
6888 activated by \fB\-O\fR options or are related to ones that are.  You
6889 can use the following flags in the rare cases when \*(L"fine-tuning\*(R" of
6890 optimizations to be performed is desired.
6891 .IP "\fB\-fno\-defer\-pop\fR" 4
6892 .IX Item "-fno-defer-pop"
6893 Always pop the arguments to each function call as soon as that function
6894 returns.  For machines that must pop arguments after a function call,
6895 the compiler normally lets arguments accumulate on the stack for several
6896 function calls and pops them all at once.
6897 .Sp
6898 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6899 .IP "\fB\-fforward\-propagate\fR" 4
6900 .IX Item "-fforward-propagate"
6901 Perform a forward propagation pass on \s-1RTL\s0.  The pass tries to combine two
6902 instructions and checks if the result can be simplified.  If loop unrolling
6903 is active, two passes are performed and the second is scheduled after
6904 loop unrolling.
6905 .Sp
6906 This option is enabled by default at optimization levels \fB\-O\fR,
6907 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6908 .IP "\fB\-ffp\-contract=\fR\fIstyle\fR" 4
6909 .IX Item "-ffp-contract=style"
6910 \&\fB\-ffp\-contract=off\fR disables floating-point expression contraction.
6911 \&\fB\-ffp\-contract=fast\fR enables floating-point expression contraction
6912 such as forming of fused multiply-add operations if the target has
6913 native support for them.
6914 \&\fB\-ffp\-contract=on\fR enables floating-point expression contraction
6915 if allowed by the language standard.  This is currently not implemented
6916 and treated equal to \fB\-ffp\-contract=off\fR.
6917 .Sp
6918 The default is \fB\-ffp\-contract=fast\fR.
6919 .IP "\fB\-fomit\-frame\-pointer\fR" 4
6920 .IX Item "-fomit-frame-pointer"
6921 Don't keep the frame pointer in a register for functions that
6922 don't need one.  This avoids the instructions to save, set up and
6923 restore frame pointers; it also makes an extra register available
6924 in many functions.  \fBIt also makes debugging impossible on
6925 some machines.\fR
6926 .Sp
6927 On some machines, such as the \s-1VAX\s0, this flag has no effect, because
6928 the standard calling sequence automatically handles the frame pointer
6929 and nothing is saved by pretending it doesn't exist.  The
6930 machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
6931 whether a target machine supports this flag.
6932 .Sp
6933 The default setting (when not optimizing for
6934 size) for 32\-bit GNU/Linux x86 and 32\-bit Darwin x86 targets is
6935 \&\fB\-fomit\-frame\-pointer\fR.  You can configure \s-1GCC\s0 with the
6936 \&\fB\-\-enable\-frame\-pointer\fR configure option to change the default.
6937 .Sp
6938 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6939 .IP "\fB\-foptimize\-sibling\-calls\fR" 4
6940 .IX Item "-foptimize-sibling-calls"
6941 Optimize sibling and tail recursive calls.
6942 .Sp
6943 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6944 .IP "\fB\-foptimize\-strlen\fR" 4
6945 .IX Item "-foptimize-strlen"
6946 Optimize various standard C string functions (e.g. \f(CW\*(C`strlen\*(C'\fR,
6947 \&\f(CW\*(C`strchr\*(C'\fR or \f(CW\*(C`strcpy\*(C'\fR) and
6948 their \f(CW\*(C`_FORTIFY_SOURCE\*(C'\fR counterparts into faster alternatives.
6949 .Sp
6950 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
6951 .IP "\fB\-fno\-inline\fR" 4
6952 .IX Item "-fno-inline"
6953 Do not expand any functions inline apart from those marked with
6954 the \f(CW\*(C`always_inline\*(C'\fR attribute.  This is the default when not
6955 optimizing.
6956 .Sp
6957 Single functions can be exempted from inlining by marking them
6958 with the \f(CW\*(C`noinline\*(C'\fR attribute.
6959 .IP "\fB\-finline\-small\-functions\fR" 4
6960 .IX Item "-finline-small-functions"
6961 Integrate functions into their callers when their body is smaller than expected
6962 function call code (so overall size of program gets smaller).  The compiler
6963 heuristically decides which functions are simple enough to be worth integrating
6964 in this way.  This inlining applies to all functions, even those not declared
6965 inline.
6966 .Sp
6967 Enabled at level \fB\-O2\fR.
6968 .IP "\fB\-findirect\-inlining\fR" 4
6969 .IX Item "-findirect-inlining"
6970 Inline also indirect calls that are discovered to be known at compile
6971 time thanks to previous inlining.  This option has any effect only
6972 when inlining itself is turned on by the \fB\-finline\-functions\fR
6973 or \fB\-finline\-small\-functions\fR options.
6974 .Sp
6975 Enabled at level \fB\-O2\fR.
6976 .IP "\fB\-finline\-functions\fR" 4
6977 .IX Item "-finline-functions"
6978 Consider all functions for inlining, even if they are not declared inline.
6979 The compiler heuristically decides which functions are worth integrating
6980 in this way.
6981 .Sp
6982 If all calls to a given function are integrated, and the function is
6983 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
6984 assembler code in its own right.
6985 .Sp
6986 Enabled at level \fB\-O3\fR.
6987 .IP "\fB\-finline\-functions\-called\-once\fR" 4
6988 .IX Item "-finline-functions-called-once"
6989 Consider all \f(CW\*(C`static\*(C'\fR functions called once for inlining into their
6990 caller even if they are not marked \f(CW\*(C`inline\*(C'\fR.  If a call to a given
6991 function is integrated, then the function is not output as assembler code
6992 in its own right.
6993 .Sp
6994 Enabled at levels \fB\-O1\fR, \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
6995 .IP "\fB\-fearly\-inlining\fR" 4
6996 .IX Item "-fearly-inlining"
6997 Inline functions marked by \f(CW\*(C`always_inline\*(C'\fR and functions whose body seems
6998 smaller than the function call overhead early before doing
6999 \&\fB\-fprofile\-generate\fR instrumentation and real inlining pass.  Doing so
7000 makes profiling significantly cheaper and usually inlining faster on programs
7001 having large chains of nested wrapper functions.
7002 .Sp
7003 Enabled by default.
7004 .IP "\fB\-fipa\-sra\fR" 4
7005 .IX Item "-fipa-sra"
7006 Perform interprocedural scalar replacement of aggregates, removal of
7007 unused parameters and replacement of parameters passed by reference
7008 by parameters passed by value.
7009 .Sp
7010 Enabled at levels \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
7011 .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
7012 .IX Item "-finline-limit=n"
7013 By default, \s-1GCC\s0 limits the size of functions that can be inlined.  This flag
7014 allows coarse control of this limit.  \fIn\fR is the size of functions that
7015 can be inlined in number of pseudo instructions.
7016 .Sp
7017 Inlining is actually controlled by a number of parameters, which may be
7018 specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
7019 The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
7020 as follows:
7021 .RS 4
7022 .IP "\fBmax-inline-insns-single\fR" 4
7023 .IX Item "max-inline-insns-single"
7024 is set to \fIn\fR/2.
7025 .IP "\fBmax-inline-insns-auto\fR" 4
7026 .IX Item "max-inline-insns-auto"
7027 is set to \fIn\fR/2.
7028 .RE
7029 .RS 4
7030 .Sp
7031 See below for a documentation of the individual
7032 parameters controlling inlining and for the defaults of these parameters.
7033 .Sp
7034 \&\fINote:\fR there may be no value to \fB\-finline\-limit\fR that results
7035 in default behavior.
7036 .Sp
7037 \&\fINote:\fR pseudo instruction represents, in this particular context, an
7038 abstract measurement of function's size.  In no way does it represent a count
7039 of assembly instructions and as such its exact meaning might change from one
7040 release to an another.
7041 .RE
7042 .IP "\fB\-fno\-keep\-inline\-dllexport\fR" 4
7043 .IX Item "-fno-keep-inline-dllexport"
7044 This is a more fine-grained version of \fB\-fkeep\-inline\-functions\fR,
7045 which applies only to functions that are declared using the \f(CW\*(C`dllexport\*(C'\fR
7046 attribute or declspec
7047 .IP "\fB\-fkeep\-inline\-functions\fR" 4
7048 .IX Item "-fkeep-inline-functions"
7049 In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
7050 into the object file, even if the function has been inlined into all
7051 of its callers.  This switch does not affect functions using the
7052 \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU\s0 C90.  In \*(C+, emit any and all
7053 inline functions into the object file.
7054 .IP "\fB\-fkeep\-static\-consts\fR" 4
7055 .IX Item "-fkeep-static-consts"
7056 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
7057 on, even if the variables aren't referenced.
7058 .Sp
7059 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
7060 check if a variable is referenced, regardless of whether or not
7061 optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
7062 .IP "\fB\-fmerge\-constants\fR" 4
7063 .IX Item "-fmerge-constants"
7064 Attempt to merge identical constants (string constants and floating-point
7065 constants) across compilation units.
7066 .Sp
7067 This option is the default for optimized compilation if the assembler and
7068 linker support it.  Use \fB\-fno\-merge\-constants\fR to inhibit this
7069 behavior.
7070 .Sp
7071 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7072 .IP "\fB\-fmerge\-all\-constants\fR" 4
7073 .IX Item "-fmerge-all-constants"
7074 Attempt to merge identical constants and identical variables.
7075 .Sp
7076 This option implies \fB\-fmerge\-constants\fR.  In addition to
7077 \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
7078 arrays or initialized constant variables with integral or floating-point
7079 types.  Languages like C or \*(C+ require each variable, including multiple
7080 instances of the same variable in recursive calls, to have distinct locations,
7081 so using this option results in non-conforming
7082 behavior.
7083 .IP "\fB\-fmodulo\-sched\fR" 4
7084 .IX Item "-fmodulo-sched"
7085 Perform swing modulo scheduling immediately before the first scheduling
7086 pass.  This pass looks at innermost loops and reorders their
7087 instructions by overlapping different iterations.
7088 .IP "\fB\-fmodulo\-sched\-allow\-regmoves\fR" 4
7089 .IX Item "-fmodulo-sched-allow-regmoves"
7090 Perform more aggressive SMS-based modulo scheduling with register moves
7091 allowed.  By setting this flag certain anti-dependences edges are
7092 deleted, which triggers the generation of reg-moves based on the
7093 life-range analysis.  This option is effective only with
7094 \&\fB\-fmodulo\-sched\fR enabled.
7095 .IP "\fB\-fno\-branch\-count\-reg\fR" 4
7096 .IX Item "-fno-branch-count-reg"
7097 Do not use \*(L"decrement and branch\*(R" instructions on a count register,
7098 but instead generate a sequence of instructions that decrement a
7099 register, compare it against zero, then branch based upon the result.
7100 This option is only meaningful on architectures that support such
7101 instructions, which include x86, PowerPC, \s-1IA\-64\s0 and S/390.
7102 .Sp
7103 Enabled by default at \fB\-O1\fR and higher.
7104 .Sp
7105 The default is \fB\-fbranch\-count\-reg\fR.
7106 .IP "\fB\-fno\-function\-cse\fR" 4
7107 .IX Item "-fno-function-cse"
7108 Do not put function addresses in registers; make each instruction that
7109 calls a constant function contain the function's address explicitly.
7110 .Sp
7111 This option results in less efficient code, but some strange hacks
7112 that alter the assembler output may be confused by the optimizations
7113 performed when this option is not used.
7114 .Sp
7115 The default is \fB\-ffunction\-cse\fR
7116 .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
7117 .IX Item "-fno-zero-initialized-in-bss"
7118 If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
7119 are initialized to zero into \s-1BSS\s0.  This can save space in the resulting
7120 code.
7121 .Sp
7122 This option turns off this behavior because some programs explicitly
7123 rely on variables going to the data section\-\-\-e.g., so that the
7124 resulting executable can find the beginning of that section and/or make
7125 assumptions based on that.
7126 .Sp
7127 The default is \fB\-fzero\-initialized\-in\-bss\fR.
7128 .IP "\fB\-fthread\-jumps\fR" 4
7129 .IX Item "-fthread-jumps"
7130 Perform optimizations that check to see if a jump branches to a
7131 location where another comparison subsumed by the first is found.  If
7132 so, the first branch is redirected to either the destination of the
7133 second branch or a point immediately following it, depending on whether
7134 the condition is known to be true or false.
7135 .Sp
7136 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7137 .IP "\fB\-fsplit\-wide\-types\fR" 4
7138 .IX Item "-fsplit-wide-types"
7139 When using a type that occupies multiple registers, such as \f(CW\*(C`long
7140 long\*(C'\fR on a 32\-bit system, split the registers apart and allocate them
7141 independently.  This normally generates better code for those types,
7142 but may make debugging more difficult.
7143 .Sp
7144 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR,
7145 \&\fB\-Os\fR.
7146 .IP "\fB\-fcse\-follow\-jumps\fR" 4
7147 .IX Item "-fcse-follow-jumps"
7148 In common subexpression elimination (\s-1CSE\s0), scan through jump instructions
7149 when the target of the jump is not reached by any other path.  For
7150 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
7151 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 follows the jump when the condition
7152 tested is false.
7153 .Sp
7154 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7155 .IP "\fB\-fcse\-skip\-blocks\fR" 4
7156 .IX Item "-fcse-skip-blocks"
7157 This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
7158 follow jumps that conditionally skip over blocks.  When \s-1CSE\s0
7159 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
7160 \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
7161 body of the \f(CW\*(C`if\*(C'\fR.
7162 .Sp
7163 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7164 .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
7165 .IX Item "-frerun-cse-after-loop"
7166 Re-run common subexpression elimination after loop optimizations are
7167 performed.
7168 .Sp
7169 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7170 .IP "\fB\-fgcse\fR" 4
7171 .IX Item "-fgcse"
7172 Perform a global common subexpression elimination pass.
7173 This pass also performs global constant and copy propagation.
7174 .Sp
7175 \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
7176 extension, you may get better run-time performance if you disable
7177 the global common subexpression elimination pass by adding
7178 \&\fB\-fno\-gcse\fR to the command line.
7179 .Sp
7180 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7181 .IP "\fB\-fgcse\-lm\fR" 4
7182 .IX Item "-fgcse-lm"
7183 When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination
7184 attempts to move loads that are only killed by stores into themselves.  This
7185 allows a loop containing a load/store sequence to be changed to a load outside
7186 the loop, and a copy/store within the loop.
7187 .Sp
7188 Enabled by default when \fB\-fgcse\fR is enabled.
7189 .IP "\fB\-fgcse\-sm\fR" 4
7190 .IX Item "-fgcse-sm"
7191 When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
7192 global common subexpression elimination.  This pass attempts to move
7193 stores out of loops.  When used in conjunction with \fB\-fgcse\-lm\fR,
7194 loops containing a load/store sequence can be changed to a load before
7195 the loop and a store after the loop.
7196 .Sp
7197 Not enabled at any optimization level.
7198 .IP "\fB\-fgcse\-las\fR" 4
7199 .IX Item "-fgcse-las"
7200 When \fB\-fgcse\-las\fR is enabled, the global common subexpression
7201 elimination pass eliminates redundant loads that come after stores to the
7202 same memory location (both partial and full redundancies).
7203 .Sp
7204 Not enabled at any optimization level.
7205 .IP "\fB\-fgcse\-after\-reload\fR" 4
7206 .IX Item "-fgcse-after-reload"
7207 When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
7208 pass is performed after reload.  The purpose of this pass is to clean up
7209 redundant spilling.
7210 .IP "\fB\-faggressive\-loop\-optimizations\fR" 4
7211 .IX Item "-faggressive-loop-optimizations"
7212 This option tells the loop optimizer to use language constraints to
7213 derive bounds for the number of iterations of a loop.  This assumes that
7214 loop code does not invoke undefined behavior by for example causing signed
7215 integer overflows or out-of-bound array accesses.  The bounds for the
7216 number of iterations of a loop are used to guide loop unrolling and peeling
7217 and loop exit test optimizations.
7218 This option is enabled by default.
7219 .IP "\fB\-funsafe\-loop\-optimizations\fR" 4
7220 .IX Item "-funsafe-loop-optimizations"
7221 This option tells the loop optimizer to assume that loop indices do not
7222 overflow, and that loops with nontrivial exit condition are not
7223 infinite.  This enables a wider range of loop optimizations even if
7224 the loop optimizer itself cannot prove that these assumptions are valid.
7225 If you use \fB\-Wunsafe\-loop\-optimizations\fR, the compiler warns you
7226 if it finds this kind of loop.
7227 .IP "\fB\-fcrossjumping\fR" 4
7228 .IX Item "-fcrossjumping"
7229 Perform cross-jumping transformation.
7230 This transformation unifies equivalent code and saves code size.  The
7231 resulting code may or may not perform better than without cross-jumping.
7232 .Sp
7233 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7234 .IP "\fB\-fauto\-inc\-dec\fR" 4
7235 .IX Item "-fauto-inc-dec"
7236 Combine increments or decrements of addresses with memory accesses.
7237 This pass is always skipped on architectures that do not have
7238 instructions to support this.  Enabled by default at \fB\-O\fR and
7239 higher on architectures that support this.
7240 .IP "\fB\-fdce\fR" 4
7241 .IX Item "-fdce"
7242 Perform dead code elimination (\s-1DCE\s0) on \s-1RTL\s0.
7243 Enabled by default at \fB\-O\fR and higher.
7244 .IP "\fB\-fdse\fR" 4
7245 .IX Item "-fdse"
7246 Perform dead store elimination (\s-1DSE\s0) on \s-1RTL\s0.
7247 Enabled by default at \fB\-O\fR and higher.
7248 .IP "\fB\-fif\-conversion\fR" 4
7249 .IX Item "-fif-conversion"
7250 Attempt to transform conditional jumps into branch-less equivalents.  This
7251 includes use of conditional moves, min, max, set flags and abs instructions, and
7252 some tricks doable by standard arithmetics.  The use of conditional execution
7253 on chips where it is available is controlled by \fB\-fif\-conversion2\fR.
7254 .Sp
7255 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7256 .IP "\fB\-fif\-conversion2\fR" 4
7257 .IX Item "-fif-conversion2"
7258 Use conditional execution (where available) to transform conditional jumps into
7259 branch-less equivalents.
7260 .Sp
7261 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7262 .IP "\fB\-fdeclone\-ctor\-dtor\fR" 4
7263 .IX Item "-fdeclone-ctor-dtor"
7264 The \*(C+ \s-1ABI\s0 requires multiple entry points for constructors and
7265 destructors: one for a base subobject, one for a complete object, and
7266 one for a virtual destructor that calls operator delete afterwards.
7267 For a hierarchy with virtual bases, the base and complete variants are
7268 clones, which means two copies of the function.  With this option, the
7269 base and complete variants are changed to be thunks that call a common
7270 implementation.
7271 .Sp
7272 Enabled by \fB\-Os\fR.
7273 .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
7274 .IX Item "-fdelete-null-pointer-checks"
7275 Assume that programs cannot safely dereference null pointers, and that
7276 no code or data element resides there.  This enables simple constant
7277 folding optimizations at all optimization levels.  In addition, other
7278 optimization passes in \s-1GCC\s0 use this flag to control global dataflow
7279 analyses that eliminate useless checks for null pointers; these assume
7280 that if a pointer is checked after it has already been dereferenced,
7281 it cannot be null.
7282 .Sp
7283 Note however that in some environments this assumption is not true.
7284 Use \fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
7285 for programs that depend on that behavior.
7286 .Sp
7287 Some targets, especially embedded ones, disable this option at all levels.
7288 Otherwise it is enabled at all levels: \fB\-O0\fR, \fB\-O1\fR,
7289 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.  Passes that use the information
7290 are enabled independently at different optimization levels.
7291 .IP "\fB\-fdevirtualize\fR" 4
7292 .IX Item "-fdevirtualize"
7293 Attempt to convert calls to virtual functions to direct calls.  This
7294 is done both within a procedure and interprocedurally as part of
7295 indirect inlining (\fB\-findirect\-inlining\fR) and interprocedural constant
7296 propagation (\fB\-fipa\-cp\fR).
7297 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7298 .IP "\fB\-fdevirtualize\-speculatively\fR" 4
7299 .IX Item "-fdevirtualize-speculatively"
7300 Attempt to convert calls to virtual functions to speculative direct calls.
7301 Based on the analysis of the type inheritance graph, determine for a given call
7302 the set of likely targets. If the set is small, preferably of size 1, change
7303 the call into a conditional deciding between direct and indirect calls.  The
7304 speculative calls enable more optimizations, such as inlining.  When they seem
7305 useless after further optimization, they are converted back into original form.
7306 .IP "\fB\-fdevirtualize\-at\-ltrans\fR" 4
7307 .IX Item "-fdevirtualize-at-ltrans"
7308 Stream extra information needed for aggressive devirtualization when running
7309 the link-time optimizer in local transformation mode.  
7310 This option enables more devirtualization but
7311 significantly increases the size of streamed data. For this reason it is
7312 disabled by default.
7313 .IP "\fB\-fexpensive\-optimizations\fR" 4
7314 .IX Item "-fexpensive-optimizations"
7315 Perform a number of minor optimizations that are relatively expensive.
7316 .Sp
7317 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7318 .IP "\fB\-free\fR" 4
7319 .IX Item "-free"
7320 Attempt to remove redundant extension instructions.  This is especially
7321 helpful for the x86\-64 architecture, which implicitly zero-extends in 64\-bit
7322 registers after writing to their lower 32\-bit half.
7323 .Sp
7324 Enabled for Alpha, AArch64 and x86 at levels \fB\-O2\fR,
7325 \&\fB\-O3\fR, \fB\-Os\fR.
7326 .IP "\fB\-fno\-lifetime\-dse\fR" 4
7327 .IX Item "-fno-lifetime-dse"
7328 In \*(C+ the value of an object is only affected by changes within its
7329 lifetime: when the constructor begins, the object has an indeterminate
7330 value, and any changes during the lifetime of the object are dead when
7331 the object is destroyed.  Normally dead store elimination will take
7332 advantage of this; if your code relies on the value of the object
7333 storage persisting beyond the lifetime of the object, you can use this
7334 flag to disable this optimization.
7335 .IP "\fB\-flive\-range\-shrinkage\fR" 4
7336 .IX Item "-flive-range-shrinkage"
7337 Attempt to decrease register pressure through register live range
7338 shrinkage.  This is helpful for fast processors with small or moderate
7339 size register sets.
7340 .IP "\fB\-fira\-algorithm=\fR\fIalgorithm\fR" 4
7341 .IX Item "-fira-algorithm=algorithm"
7342 Use the specified coloring algorithm for the integrated register
7343 allocator.  The \fIalgorithm\fR argument can be \fBpriority\fR, which
7344 specifies Chow's priority coloring, or \fB\s-1CB\s0\fR, which specifies
7345 Chaitin-Briggs coloring.  Chaitin-Briggs coloring is not implemented
7346 for all architectures, but for those targets that do support it, it is
7347 the default because it generates better code.
7348 .IP "\fB\-fira\-region=\fR\fIregion\fR" 4
7349 .IX Item "-fira-region=region"
7350 Use specified regions for the integrated register allocator.  The
7351 \&\fIregion\fR argument should be one of the following:
7352 .RS 4
7353 .IP "\fBall\fR" 4
7354 .IX Item "all"
7355 Use all loops as register allocation regions.
7356 This can give the best results for machines with a small and/or
7357 irregular register set.
7358 .IP "\fBmixed\fR" 4
7359 .IX Item "mixed"
7360 Use all loops except for loops with small register pressure 
7361 as the regions.  This value usually gives
7362 the best results in most cases and for most architectures,
7363 and is enabled by default when compiling with optimization for speed
7364 (\fB\-O\fR, \fB\-O2\fR, ...).
7365 .IP "\fBone\fR" 4
7366 .IX Item "one"
7367 Use all functions as a single region.  
7368 This typically results in the smallest code size, and is enabled by default for
7369 \&\fB\-Os\fR or \fB\-O0\fR.
7370 .RE
7371 .RS 4
7372 .RE
7373 .IP "\fB\-fira\-hoist\-pressure\fR" 4
7374 .IX Item "-fira-hoist-pressure"
7375 Use \s-1IRA\s0 to evaluate register pressure in the code hoisting pass for
7376 decisions to hoist expressions.  This option usually results in smaller
7377 code, but it can slow the compiler down.
7378 .Sp
7379 This option is enabled at level \fB\-Os\fR for all targets.
7380 .IP "\fB\-fira\-loop\-pressure\fR" 4
7381 .IX Item "-fira-loop-pressure"
7382 Use \s-1IRA\s0 to evaluate register pressure in loops for decisions to move
7383 loop invariants.  This option usually results in generation
7384 of faster and smaller code on machines with large register files (>= 32
7385 registers), but it can slow the compiler down.
7386 .Sp
7387 This option is enabled at level \fB\-O3\fR for some targets.
7388 .IP "\fB\-fno\-ira\-share\-save\-slots\fR" 4
7389 .IX Item "-fno-ira-share-save-slots"
7390 Disable sharing of stack slots used for saving call-used hard
7391 registers living through a call.  Each hard register gets a
7392 separate stack slot, and as a result function stack frames are
7393 larger.
7394 .IP "\fB\-fno\-ira\-share\-spill\-slots\fR" 4
7395 .IX Item "-fno-ira-share-spill-slots"
7396 Disable sharing of stack slots allocated for pseudo-registers.  Each
7397 pseudo-register that does not get a hard register gets a separate
7398 stack slot, and as a result function stack frames are larger.
7399 .IP "\fB\-fira\-verbose=\fR\fIn\fR" 4
7400 .IX Item "-fira-verbose=n"
7401 Control the verbosity of the dump file for the integrated register allocator.
7402 The default value is 5.  If the value \fIn\fR is greater or equal to 10,
7403 the dump output is sent to stderr using the same format as \fIn\fR minus 10.
7404 .IP "\fB\-flra\-remat\fR" 4
7405 .IX Item "-flra-remat"
7406 Enable CFG-sensitive rematerialization in \s-1LRA\s0.  Instead of loading
7407 values of spilled pseudos, \s-1LRA\s0 tries to rematerialize (recalculate)
7408 values if it is profitable.
7409 .Sp
7410 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7411 .IP "\fB\-fdelayed\-branch\fR" 4
7412 .IX Item "-fdelayed-branch"
7413 If supported for the target machine, attempt to reorder instructions
7414 to exploit instruction slots available after delayed branch
7415 instructions.
7416 .Sp
7417 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7418 .IP "\fB\-fschedule\-insns\fR" 4
7419 .IX Item "-fschedule-insns"
7420 If supported for the target machine, attempt to reorder instructions to
7421 eliminate execution stalls due to required data being unavailable.  This
7422 helps machines that have slow floating point or memory load instructions
7423 by allowing other instructions to be issued until the result of the load
7424 or floating-point instruction is required.
7425 .Sp
7426 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
7427 .IP "\fB\-fschedule\-insns2\fR" 4
7428 .IX Item "-fschedule-insns2"
7429 Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
7430 instruction scheduling after register allocation has been done.  This is
7431 especially useful on machines with a relatively small number of
7432 registers and where memory load instructions take more than one cycle.
7433 .Sp
7434 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7435 .IP "\fB\-fno\-sched\-interblock\fR" 4
7436 .IX Item "-fno-sched-interblock"
7437 Don't schedule instructions across basic blocks.  This is normally
7438 enabled by default when scheduling before register allocation, i.e.
7439 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7440 .IP "\fB\-fno\-sched\-spec\fR" 4
7441 .IX Item "-fno-sched-spec"
7442 Don't allow speculative motion of non-load instructions.  This is normally
7443 enabled by default when scheduling before register allocation, i.e.
7444 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7445 .IP "\fB\-fsched\-pressure\fR" 4
7446 .IX Item "-fsched-pressure"
7447 Enable register pressure sensitive insn scheduling before register
7448 allocation.  This only makes sense when scheduling before register
7449 allocation is enabled, i.e. with \fB\-fschedule\-insns\fR or at
7450 \&\fB\-O2\fR or higher.  Usage of this option can improve the
7451 generated code and decrease its size by preventing register pressure
7452 increase above the number of available hard registers and subsequent
7453 spills in register allocation.
7454 .IP "\fB\-fsched\-spec\-load\fR" 4
7455 .IX Item "-fsched-spec-load"
7456 Allow speculative motion of some load instructions.  This only makes
7457 sense when scheduling before register allocation, i.e. with
7458 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7459 .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
7460 .IX Item "-fsched-spec-load-dangerous"
7461 Allow speculative motion of more load instructions.  This only makes
7462 sense when scheduling before register allocation, i.e. with
7463 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7464 .IP "\fB\-fsched\-stalled\-insns\fR" 4
7465 .IX Item "-fsched-stalled-insns"
7466 .PD 0
7467 .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
7468 .IX Item "-fsched-stalled-insns=n"
7469 .PD
7470 Define how many insns (if any) can be moved prematurely from the queue
7471 of stalled insns into the ready list during the second scheduling pass.
7472 \&\fB\-fno\-sched\-stalled\-insns\fR means that no insns are moved
7473 prematurely, \fB\-fsched\-stalled\-insns=0\fR means there is no limit
7474 on how many queued insns can be moved prematurely.
7475 \&\fB\-fsched\-stalled\-insns\fR without a value is equivalent to
7476 \&\fB\-fsched\-stalled\-insns=1\fR.
7477 .IP "\fB\-fsched\-stalled\-insns\-dep\fR" 4
7478 .IX Item "-fsched-stalled-insns-dep"
7479 .PD 0
7480 .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
7481 .IX Item "-fsched-stalled-insns-dep=n"
7482 .PD
7483 Define how many insn groups (cycles) are examined for a dependency
7484 on a stalled insn that is a candidate for premature removal from the queue
7485 of stalled insns.  This has an effect only during the second scheduling pass,
7486 and only if \fB\-fsched\-stalled\-insns\fR is used.
7487 \&\fB\-fno\-sched\-stalled\-insns\-dep\fR is equivalent to
7488 \&\fB\-fsched\-stalled\-insns\-dep=0\fR.
7489 \&\fB\-fsched\-stalled\-insns\-dep\fR without a value is equivalent to
7490 \&\fB\-fsched\-stalled\-insns\-dep=1\fR.
7491 .IP "\fB\-fsched2\-use\-superblocks\fR" 4
7492 .IX Item "-fsched2-use-superblocks"
7493 When scheduling after register allocation, use superblock scheduling.
7494 This allows motion across basic block boundaries,
7495 resulting in faster schedules.  This option is experimental, as not all machine
7496 descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
7497 results from the algorithm.
7498 .Sp
7499 This only makes sense when scheduling after register allocation, i.e. with
7500 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
7501 .IP "\fB\-fsched\-group\-heuristic\fR" 4
7502 .IX Item "-fsched-group-heuristic"
7503 Enable the group heuristic in the scheduler.  This heuristic favors
7504 the instruction that belongs to a schedule group.  This is enabled
7505 by default when scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
7506 or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
7507 .IP "\fB\-fsched\-critical\-path\-heuristic\fR" 4
7508 .IX Item "-fsched-critical-path-heuristic"
7509 Enable the critical-path heuristic in the scheduler.  This heuristic favors
7510 instructions on the critical path.  This is enabled by default when
7511 scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
7512 or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
7513 .IP "\fB\-fsched\-spec\-insn\-heuristic\fR" 4
7514 .IX Item "-fsched-spec-insn-heuristic"
7515 Enable the speculative instruction heuristic in the scheduler.  This
7516 heuristic favors speculative instructions with greater dependency weakness.
7517 This is enabled by default when scheduling is enabled, i.e.
7518 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR
7519 or at \fB\-O2\fR or higher.
7520 .IP "\fB\-fsched\-rank\-heuristic\fR" 4
7521 .IX Item "-fsched-rank-heuristic"
7522 Enable the rank heuristic in the scheduler.  This heuristic favors
7523 the instruction belonging to a basic block with greater size or frequency.
7524 This is enabled by default when scheduling is enabled, i.e.
7525 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
7526 at \fB\-O2\fR or higher.
7527 .IP "\fB\-fsched\-last\-insn\-heuristic\fR" 4
7528 .IX Item "-fsched-last-insn-heuristic"
7529 Enable the last-instruction heuristic in the scheduler.  This heuristic
7530 favors the instruction that is less dependent on the last instruction
7531 scheduled.  This is enabled by default when scheduling is enabled,
7532 i.e. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
7533 at \fB\-O2\fR or higher.
7534 .IP "\fB\-fsched\-dep\-count\-heuristic\fR" 4
7535 .IX Item "-fsched-dep-count-heuristic"
7536 Enable the dependent-count heuristic in the scheduler.  This heuristic
7537 favors the instruction that has more instructions depending on it.
7538 This is enabled by default when scheduling is enabled, i.e.
7539 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
7540 at \fB\-O2\fR or higher.
7541 .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
7542 .IX Item "-freschedule-modulo-scheduled-loops"
7543 Modulo scheduling is performed before traditional scheduling.  If a loop
7544 is modulo scheduled, later scheduling passes may change its schedule.  
7545 Use this option to control that behavior.
7546 .IP "\fB\-fselective\-scheduling\fR" 4
7547 .IX Item "-fselective-scheduling"
7548 Schedule instructions using selective scheduling algorithm.  Selective
7549 scheduling runs instead of the first scheduler pass.
7550 .IP "\fB\-fselective\-scheduling2\fR" 4
7551 .IX Item "-fselective-scheduling2"
7552 Schedule instructions using selective scheduling algorithm.  Selective
7553 scheduling runs instead of the second scheduler pass.
7554 .IP "\fB\-fsel\-sched\-pipelining\fR" 4
7555 .IX Item "-fsel-sched-pipelining"
7556 Enable software pipelining of innermost loops during selective scheduling.
7557 This option has no effect unless one of \fB\-fselective\-scheduling\fR or
7558 \&\fB\-fselective\-scheduling2\fR is turned on.
7559 .IP "\fB\-fsel\-sched\-pipelining\-outer\-loops\fR" 4
7560 .IX Item "-fsel-sched-pipelining-outer-loops"
7561 When pipelining loops during selective scheduling, also pipeline outer loops.
7562 This option has no effect unless \fB\-fsel\-sched\-pipelining\fR is turned on.
7563 .IP "\fB\-fsemantic\-interposition\fR" 4
7564 .IX Item "-fsemantic-interposition"
7565 Some object formats, like \s-1ELF\s0, allow interposing of symbols by the 
7566 dynamic linker.
7567 This means that for symbols exported from the \s-1DSO\s0, the compiler cannot perform
7568 interprocedural propagation, inlining and other optimizations in anticipation
7569 that the function or variable in question may change. While this feature is
7570 useful, for example, to rewrite memory allocation functions by a debugging
7571 implementation, it is expensive in the terms of code quality.
7572 With \fB\-fno\-semantic\-interposition\fR the compiler assumes that 
7573 if interposition happens for functions the overwriting function will have 
7574 precisely the same semantics (and side effects). 
7575 Similarly if interposition happens
7576 for variables, the constructor of the variable will be the same. The flag
7577 has no effect for functions explicitly declared inline 
7578 (where it is never allowed for interposition to change semantics) 
7579 and for symbols explicitly declared weak.
7580 .IP "\fB\-fshrink\-wrap\fR" 4
7581 .IX Item "-fshrink-wrap"
7582 Emit function prologues only before parts of the function that need it,
7583 rather than at the top of the function.  This flag is enabled by default at
7584 \&\fB\-O\fR and higher.
7585 .IP "\fB\-fcaller\-saves\fR" 4
7586 .IX Item "-fcaller-saves"
7587 Enable allocation of values to registers that are clobbered by
7588 function calls, by emitting extra instructions to save and restore the
7589 registers around such calls.  Such allocation is done only when it
7590 seems to result in better code.
7591 .Sp
7592 This option is always enabled by default on certain machines, usually
7593 those which have no call-preserved registers to use instead.
7594 .Sp
7595 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7596 .IP "\fB\-fcombine\-stack\-adjustments\fR" 4
7597 .IX Item "-fcombine-stack-adjustments"
7598 Tracks stack adjustments (pushes and pops) and stack memory references
7599 and then tries to find ways to combine them.
7600 .Sp
7601 Enabled by default at \fB\-O1\fR and higher.
7602 .IP "\fB\-fipa\-ra\fR" 4
7603 .IX Item "-fipa-ra"
7604 Use caller save registers for allocation if those registers are not used by
7605 any called function.  In that case it is not necessary to save and restore
7606 them around calls.  This is only possible if called functions are part of
7607 same compilation unit as current function and they are compiled before it.
7608 .Sp
7609 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7610 .IP "\fB\-fconserve\-stack\fR" 4
7611 .IX Item "-fconserve-stack"
7612 Attempt to minimize stack usage.  The compiler attempts to use less
7613 stack space, even if that makes the program slower.  This option
7614 implies setting the \fBlarge-stack-frame\fR parameter to 100
7615 and the \fBlarge-stack-frame-growth\fR parameter to 400.
7616 .IP "\fB\-ftree\-reassoc\fR" 4
7617 .IX Item "-ftree-reassoc"
7618 Perform reassociation on trees.  This flag is enabled by default
7619 at \fB\-O\fR and higher.
7620 .IP "\fB\-ftree\-pre\fR" 4
7621 .IX Item "-ftree-pre"
7622 Perform partial redundancy elimination (\s-1PRE\s0) on trees.  This flag is
7623 enabled by default at \fB\-O2\fR and \fB\-O3\fR.
7624 .IP "\fB\-ftree\-partial\-pre\fR" 4
7625 .IX Item "-ftree-partial-pre"
7626 Make partial redundancy elimination (\s-1PRE\s0) more aggressive.  This flag is
7627 enabled by default at \fB\-O3\fR.
7628 .IP "\fB\-ftree\-forwprop\fR" 4
7629 .IX Item "-ftree-forwprop"
7630 Perform forward propagation on trees.  This flag is enabled by default
7631 at \fB\-O\fR and higher.
7632 .IP "\fB\-ftree\-fre\fR" 4
7633 .IX Item "-ftree-fre"
7634 Perform full redundancy elimination (\s-1FRE\s0) on trees.  The difference
7635 between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
7636 that are computed on all paths leading to the redundant computation.
7637 This analysis is faster than \s-1PRE\s0, though it exposes fewer redundancies.
7638 This flag is enabled by default at \fB\-O\fR and higher.
7639 .IP "\fB\-ftree\-phiprop\fR" 4
7640 .IX Item "-ftree-phiprop"
7641 Perform hoisting of loads from conditional pointers on trees.  This
7642 pass is enabled by default at \fB\-O\fR and higher.
7643 .IP "\fB\-fhoist\-adjacent\-loads\fR" 4
7644 .IX Item "-fhoist-adjacent-loads"
7645 Speculatively hoist loads from both branches of an if-then-else if the
7646 loads are from adjacent locations in the same structure and the target
7647 architecture has a conditional move instruction.  This flag is enabled
7648 by default at \fB\-O2\fR and higher.
7649 .IP "\fB\-ftree\-copy\-prop\fR" 4
7650 .IX Item "-ftree-copy-prop"
7651 Perform copy propagation on trees.  This pass eliminates unnecessary
7652 copy operations.  This flag is enabled by default at \fB\-O\fR and
7653 higher.
7654 .IP "\fB\-fipa\-pure\-const\fR" 4
7655 .IX Item "-fipa-pure-const"
7656 Discover which functions are pure or constant.
7657 Enabled by default at \fB\-O\fR and higher.
7658 .IP "\fB\-fipa\-reference\fR" 4
7659 .IX Item "-fipa-reference"
7660 Discover which static variables do not escape the
7661 compilation unit.
7662 Enabled by default at \fB\-O\fR and higher.
7663 .IP "\fB\-fipa\-pta\fR" 4
7664 .IX Item "-fipa-pta"
7665 Perform interprocedural pointer analysis and interprocedural modification
7666 and reference analysis.  This option can cause excessive memory and
7667 compile-time usage on large compilation units.  It is not enabled by
7668 default at any optimization level.
7669 .IP "\fB\-fipa\-profile\fR" 4
7670 .IX Item "-fipa-profile"
7671 Perform interprocedural profile propagation.  The functions called only from
7672 cold functions are marked as cold. Also functions executed once (such as
7673 \&\f(CW\*(C`cold\*(C'\fR, \f(CW\*(C`noreturn\*(C'\fR, static constructors or destructors) are identified. Cold
7674 functions and loop less parts of functions executed once are then optimized for
7675 size.
7676 Enabled by default at \fB\-O\fR and higher.
7677 .IP "\fB\-fipa\-cp\fR" 4
7678 .IX Item "-fipa-cp"
7679 Perform interprocedural constant propagation.
7680 This optimization analyzes the program to determine when values passed
7681 to functions are constants and then optimizes accordingly.
7682 This optimization can substantially increase performance
7683 if the application has constants passed to functions.
7684 This flag is enabled by default at \fB\-O2\fR, \fB\-Os\fR and \fB\-O3\fR.
7685 .IP "\fB\-fipa\-cp\-clone\fR" 4
7686 .IX Item "-fipa-cp-clone"
7687 Perform function cloning to make interprocedural constant propagation stronger.
7688 When enabled, interprocedural constant propagation performs function cloning
7689 when externally visible function can be called with constant arguments.
7690 Because this optimization can create multiple copies of functions,
7691 it may significantly increase code size
7692 (see \fB\-\-param ipcp\-unit\-growth=\fR\fIvalue\fR).
7693 This flag is enabled by default at \fB\-O3\fR.
7694 .IP "\fB\-fipa\-cp\-alignment\fR" 4
7695 .IX Item "-fipa-cp-alignment"
7696 When enabled, this optimization propagates alignment of function
7697 parameters to support better vectorization and string operations.
7698 .Sp
7699 This flag is enabled by default at \fB\-O2\fR and \fB\-Os\fR.  It
7700 requires that \fB\-fipa\-cp\fR is enabled.
7701 .IP "\fB\-fipa\-icf\fR" 4
7702 .IX Item "-fipa-icf"
7703 Perform Identical Code Folding for functions and read-only variables.
7704 The optimization reduces code size and may disturb unwind stacks by replacing
7705 a function by equivalent one with a different name. The optimization works
7706 more effectively with link time optimization enabled.
7707 .Sp
7708 Nevertheless the behavior is similar to Gold Linker \s-1ICF\s0 optimization, \s-1GCC\s0 \s-1ICF\s0
7709 works on different levels and thus the optimizations are not same \- there are
7710 equivalences that are found only by \s-1GCC\s0 and equivalences found only by Gold.
7711 .Sp
7712 This flag is enabled by default at \fB\-O2\fR and \fB\-Os\fR.
7713 .IP "\fB\-fisolate\-erroneous\-paths\-dereference\fR" 4
7714 .IX Item "-fisolate-erroneous-paths-dereference"
7715 Detect paths that trigger erroneous or undefined behavior due to
7716 dereferencing a null pointer.  Isolate those paths from the main control
7717 flow and turn the statement with erroneous or undefined behavior into a trap.
7718 This flag is enabled by default at \fB\-O2\fR and higher.
7719 .IP "\fB\-fisolate\-erroneous\-paths\-attribute\fR" 4
7720 .IX Item "-fisolate-erroneous-paths-attribute"
7721 Detect paths that trigger erroneous or undefined behavior due a null value
7722 being used in a way forbidden by a \f(CW\*(C`returns_nonnull\*(C'\fR or \f(CW\*(C`nonnull\*(C'\fR
7723 attribute.  Isolate those paths from the main control flow and turn the
7724 statement with erroneous or undefined behavior into a trap.  This is not
7725 currently enabled, but may be enabled by \fB\-O2\fR in the future.
7726 .IP "\fB\-ftree\-sink\fR" 4
7727 .IX Item "-ftree-sink"
7728 Perform forward store motion  on trees.  This flag is
7729 enabled by default at \fB\-O\fR and higher.
7730 .IP "\fB\-ftree\-bit\-ccp\fR" 4
7731 .IX Item "-ftree-bit-ccp"
7732 Perform sparse conditional bit constant propagation on trees and propagate
7733 pointer alignment information.
7734 This pass only operates on local scalar variables and is enabled by default
7735 at \fB\-O\fR and higher.  It requires that \fB\-ftree\-ccp\fR is enabled.
7736 .IP "\fB\-ftree\-ccp\fR" 4
7737 .IX Item "-ftree-ccp"
7738 Perform sparse conditional constant propagation (\s-1CCP\s0) on trees.  This
7739 pass only operates on local scalar variables and is enabled by default
7740 at \fB\-O\fR and higher.
7741 .IP "\fB\-fssa\-phiopt\fR" 4
7742 .IX Item "-fssa-phiopt"
7743 Perform pattern matching on \s-1SSA\s0 \s-1PHI\s0 nodes to optimize conditional
7744 code.  This pass is enabled by default at \fB\-O\fR and higher.
7745 .IP "\fB\-ftree\-switch\-conversion\fR" 4
7746 .IX Item "-ftree-switch-conversion"
7747 Perform conversion of simple initializations in a switch to
7748 initializations from a scalar array.  This flag is enabled by default
7749 at \fB\-O2\fR and higher.
7750 .IP "\fB\-ftree\-tail\-merge\fR" 4
7751 .IX Item "-ftree-tail-merge"
7752 Look for identical code sequences.  When found, replace one with a jump to the
7753 other.  This optimization is known as tail merging or cross jumping.  This flag
7754 is enabled by default at \fB\-O2\fR and higher.  The compilation time
7755 in this pass can
7756 be limited using \fBmax-tail-merge-comparisons\fR parameter and
7757 \&\fBmax-tail-merge-iterations\fR parameter.
7758 .IP "\fB\-ftree\-dce\fR" 4
7759 .IX Item "-ftree-dce"
7760 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
7761 default at \fB\-O\fR and higher.
7762 .IP "\fB\-ftree\-builtin\-call\-dce\fR" 4
7763 .IX Item "-ftree-builtin-call-dce"
7764 Perform conditional dead code elimination (\s-1DCE\s0) for calls to built-in functions
7765 that may set \f(CW\*(C`errno\*(C'\fR but are otherwise side-effect free.  This flag is
7766 enabled by default at \fB\-O2\fR and higher if \fB\-Os\fR is not also
7767 specified.
7768 .IP "\fB\-ftree\-dominator\-opts\fR" 4
7769 .IX Item "-ftree-dominator-opts"
7770 Perform a variety of simple scalar cleanups (constant/copy
7771 propagation, redundancy elimination, range propagation and expression
7772 simplification) based on a dominator tree traversal.  This also
7773 performs jump threading (to reduce jumps to jumps). This flag is
7774 enabled by default at \fB\-O\fR and higher.
7775 .IP "\fB\-ftree\-dse\fR" 4
7776 .IX Item "-ftree-dse"
7777 Perform dead store elimination (\s-1DSE\s0) on trees.  A dead store is a store into
7778 a memory location that is later overwritten by another store without
7779 any intervening loads.  In this case the earlier store can be deleted.  This
7780 flag is enabled by default at \fB\-O\fR and higher.
7781 .IP "\fB\-ftree\-ch\fR" 4
7782 .IX Item "-ftree-ch"
7783 Perform loop header copying on trees.  This is beneficial since it increases
7784 effectiveness of code motion optimizations.  It also saves one jump.  This flag
7785 is enabled by default at \fB\-O\fR and higher.  It is not enabled
7786 for \fB\-Os\fR, since it usually increases code size.
7787 .IP "\fB\-ftree\-loop\-optimize\fR" 4
7788 .IX Item "-ftree-loop-optimize"
7789 Perform loop optimizations on trees.  This flag is enabled by default
7790 at \fB\-O\fR and higher.
7791 .IP "\fB\-ftree\-loop\-linear\fR" 4
7792 .IX Item "-ftree-loop-linear"
7793 Perform loop interchange transformations on tree.  Same as
7794 \&\fB\-floop\-interchange\fR.  To use this code transformation, \s-1GCC\s0 has
7795 to be configured with \fB\-\-with\-isl\fR to enable the Graphite loop
7796 transformation infrastructure.
7797 .IP "\fB\-floop\-interchange\fR" 4
7798 .IX Item "-floop-interchange"
7799 Perform loop interchange transformations on loops.  Interchanging two
7800 nested loops switches the inner and outer loops.  For example, given a
7801 loop like:
7802 .Sp
7803 .Vb 5
7804 \&        DO J = 1, M
7805 \&          DO I = 1, N
7806 \&            A(J, I) = A(J, I) * C
7807 \&          ENDDO
7808 \&        ENDDO
7809 .Ve
7810 .Sp
7811 loop interchange transforms the loop as if it were written:
7812 .Sp
7813 .Vb 5
7814 \&        DO I = 1, N
7815 \&          DO J = 1, M
7816 \&            A(J, I) = A(J, I) * C
7817 \&          ENDDO
7818 \&        ENDDO
7819 .Ve
7820 .Sp
7821 which can be beneficial when \f(CW\*(C`N\*(C'\fR is larger than the caches,
7822 because in Fortran, the elements of an array are stored in memory
7823 contiguously by column, and the original loop iterates over rows,
7824 potentially creating at each access a cache miss.  This optimization
7825 applies to all the languages supported by \s-1GCC\s0 and is not limited to
7826 Fortran.  To use this code transformation, \s-1GCC\s0 has to be configured
7827 with \fB\-\-with\-isl\fR to enable the Graphite loop transformation
7828 infrastructure.
7829 .IP "\fB\-floop\-strip\-mine\fR" 4
7830 .IX Item "-floop-strip-mine"
7831 Perform loop strip mining transformations on loops.  Strip mining
7832 splits a loop into two nested loops.  The outer loop has strides
7833 equal to the strip size and the inner loop has strides of the
7834 original loop within a strip.  The strip length can be changed
7835 using the \fBloop-block-tile-size\fR parameter.  For example,
7836 given a loop like:
7837 .Sp
7838 .Vb 3
7839 \&        DO I = 1, N
7840 \&          A(I) = A(I) + C
7841 \&        ENDDO
7842 .Ve
7843 .Sp
7844 loop strip mining transforms the loop as if it were written:
7845 .Sp
7846 .Vb 5
7847 \&        DO II = 1, N, 51
7848 \&          DO I = II, min (II + 50, N)
7849 \&            A(I) = A(I) + C
7850 \&          ENDDO
7851 \&        ENDDO
7852 .Ve
7853 .Sp
7854 This optimization applies to all the languages supported by \s-1GCC\s0 and is
7855 not limited to Fortran.  To use this code transformation, \s-1GCC\s0 has to
7856 be configured with \fB\-\-with\-isl\fR to enable the Graphite loop
7857 transformation infrastructure.
7858 .IP "\fB\-floop\-block\fR" 4
7859 .IX Item "-floop-block"
7860 Perform loop blocking transformations on loops.  Blocking strip mines
7861 each loop in the loop nest such that the memory accesses of the
7862 element loops fit inside caches.  The strip length can be changed
7863 using the \fBloop-block-tile-size\fR parameter.  For example, given
7864 a loop like:
7865 .Sp
7866 .Vb 5
7867 \&        DO I = 1, N
7868 \&          DO J = 1, M
7869 \&            A(J, I) = B(I) + C(J)
7870 \&          ENDDO
7871 \&        ENDDO
7872 .Ve
7873 .Sp
7874 loop blocking transforms the loop as if it were written:
7875 .Sp
7876 .Vb 9
7877 \&        DO II = 1, N, 51
7878 \&          DO JJ = 1, M, 51
7879 \&            DO I = II, min (II + 50, N)
7880 \&              DO J = JJ, min (JJ + 50, M)
7881 \&                A(J, I) = B(I) + C(J)
7882 \&              ENDDO
7883 \&            ENDDO
7884 \&          ENDDO
7885 \&        ENDDO
7886 .Ve
7887 .Sp
7888 which can be beneficial when \f(CW\*(C`M\*(C'\fR is larger than the caches,
7889 because the innermost loop iterates over a smaller amount of data
7890 which can be kept in the caches.  This optimization applies to all the
7891 languages supported by \s-1GCC\s0 and is not limited to Fortran.  To use this
7892 code transformation, \s-1GCC\s0 has to be configured with \fB\-\-with\-isl\fR
7893 to enable the Graphite loop transformation infrastructure.
7894 .IP "\fB\-fgraphite\-identity\fR" 4
7895 .IX Item "-fgraphite-identity"
7896 Enable the identity transformation for graphite.  For every SCoP we generate
7897 the polyhedral representation and transform it back to gimple.  Using
7898 \&\fB\-fgraphite\-identity\fR we can check the costs or benefits of the
7899 \&\s-1GIMPLE\s0 \-> \s-1GRAPHITE\s0 \-> \s-1GIMPLE\s0 transformation.  Some minimal optimizations
7900 are also performed by the code generator \s-1ISL\s0, like index splitting and
7901 dead code elimination in loops.
7902 .IP "\fB\-floop\-nest\-optimize\fR" 4
7903 .IX Item "-floop-nest-optimize"
7904 Enable the \s-1ISL\s0 based loop nest optimizer.  This is a generic loop nest
7905 optimizer based on the Pluto optimization algorithms.  It calculates a loop
7906 structure optimized for data-locality and parallelism.  This option
7907 is experimental.
7908 .IP "\fB\-floop\-unroll\-and\-jam\fR" 4
7909 .IX Item "-floop-unroll-and-jam"
7910 Enable unroll and jam for the \s-1ISL\s0 based loop nest optimizer.  The unroll 
7911 factor can be changed using the \fBloop-unroll-jam-size\fR parameter.
7912 The unrolled dimension (counting from the most inner one) can be changed 
7913 using the \fBloop-unroll-jam-depth\fR parameter.                 .
7914 .IP "\fB\-floop\-parallelize\-all\fR" 4
7915 .IX Item "-floop-parallelize-all"
7916 Use the Graphite data dependence analysis to identify loops that can
7917 be parallelized.  Parallelize all the loops that can be analyzed to
7918 not contain loop carried dependences without checking that it is
7919 profitable to parallelize the loops.
7920 .IP "\fB\-fcheck\-data\-deps\fR" 4
7921 .IX Item "-fcheck-data-deps"
7922 Compare the results of several data dependence analyzers.  This option
7923 is used for debugging the data dependence analyzers.
7924 .IP "\fB\-ftree\-loop\-if\-convert\fR" 4
7925 .IX Item "-ftree-loop-if-convert"
7926 Attempt to transform conditional jumps in the innermost loops to
7927 branch-less equivalents.  The intent is to remove control-flow from
7928 the innermost loops in order to improve the ability of the
7929 vectorization pass to handle these loops.  This is enabled by default
7930 if vectorization is enabled.
7931 .IP "\fB\-ftree\-loop\-if\-convert\-stores\fR" 4
7932 .IX Item "-ftree-loop-if-convert-stores"
7933 Attempt to also if-convert conditional jumps containing memory writes.
7934 This transformation can be unsafe for multi-threaded programs as it
7935 transforms conditional memory writes into unconditional memory writes.
7936 For example,
7937 .Sp
7938 .Vb 3
7939 \&        for (i = 0; i < N; i++)
7940 \&          if (cond)
7941 \&            A[i] = expr;
7942 .Ve
7943 .Sp
7944 is transformed to
7945 .Sp
7946 .Vb 2
7947 \&        for (i = 0; i < N; i++)
7948 \&          A[i] = cond ? expr : A[i];
7949 .Ve
7950 .Sp
7951 potentially producing data races.
7952 .IP "\fB\-ftree\-loop\-distribution\fR" 4
7953 .IX Item "-ftree-loop-distribution"
7954 Perform loop distribution.  This flag can improve cache performance on
7955 big loop bodies and allow further loop optimizations, like
7956 parallelization or vectorization, to take place.  For example, the loop
7957 .Sp
7958 .Vb 4
7959 \&        DO I = 1, N
7960 \&          A(I) = B(I) + C
7961 \&          D(I) = E(I) * F
7962 \&        ENDDO
7963 .Ve
7964 .Sp
7965 is transformed to
7966 .Sp
7967 .Vb 6
7968 \&        DO I = 1, N
7969 \&           A(I) = B(I) + C
7970 \&        ENDDO
7971 \&        DO I = 1, N
7972 \&           D(I) = E(I) * F
7973 \&        ENDDO
7974 .Ve
7975 .IP "\fB\-ftree\-loop\-distribute\-patterns\fR" 4
7976 .IX Item "-ftree-loop-distribute-patterns"
7977 Perform loop distribution of patterns that can be code generated with
7978 calls to a library.  This flag is enabled by default at \fB\-O3\fR.
7979 .Sp
7980 This pass distributes the initialization loops and generates a call to
7981 memset zero.  For example, the loop
7982 .Sp
7983 .Vb 4
7984 \&        DO I = 1, N
7985 \&          A(I) = 0
7986 \&          B(I) = A(I) + I
7987 \&        ENDDO
7988 .Ve
7989 .Sp
7990 is transformed to
7991 .Sp
7992 .Vb 6
7993 \&        DO I = 1, N
7994 \&           A(I) = 0
7995 \&        ENDDO
7996 \&        DO I = 1, N
7997 \&           B(I) = A(I) + I
7998 \&        ENDDO
7999 .Ve
8000 .Sp
8001 and the initialization loop is transformed into a call to memset zero.
8002 .IP "\fB\-ftree\-loop\-im\fR" 4
8003 .IX Item "-ftree-loop-im"
8004 Perform loop invariant motion on trees.  This pass moves only invariants that
8005 are hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
8006 nontrivial sequences of insns).  With \fB\-funswitch\-loops\fR it also moves
8007 operands of conditions that are invariant out of the loop, so that we can use
8008 just trivial invariantness analysis in loop unswitching.  The pass also includes
8009 store motion.
8010 .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
8011 .IX Item "-ftree-loop-ivcanon"
8012 Create a canonical counter for number of iterations in loops for which
8013 determining number of iterations requires complicated analysis.  Later
8014 optimizations then may determine the number easily.  Useful especially
8015 in connection with unrolling.
8016 .IP "\fB\-fivopts\fR" 4
8017 .IX Item "-fivopts"
8018 Perform induction variable optimizations (strength reduction, induction
8019 variable merging and induction variable elimination) on trees.
8020 .IP "\fB\-ftree\-parallelize\-loops=n\fR" 4
8021 .IX Item "-ftree-parallelize-loops=n"
8022 Parallelize loops, i.e., split their iteration space to run in n threads.
8023 This is only possible for loops whose iterations are independent
8024 and can be arbitrarily reordered.  The optimization is only
8025 profitable on multiprocessor machines, for loops that are CPU-intensive,
8026 rather than constrained e.g. by memory bandwidth.  This option
8027 implies \fB\-pthread\fR, and thus is only supported on targets
8028 that have support for \fB\-pthread\fR.
8029 .IP "\fB\-ftree\-pta\fR" 4
8030 .IX Item "-ftree-pta"
8031 Perform function-local points-to analysis on trees.  This flag is
8032 enabled by default at \fB\-O\fR and higher.
8033 .IP "\fB\-ftree\-sra\fR" 4
8034 .IX Item "-ftree-sra"
8035 Perform scalar replacement of aggregates.  This pass replaces structure
8036 references with scalars to prevent committing structures to memory too
8037 early.  This flag is enabled by default at \fB\-O\fR and higher.
8038 .IP "\fB\-ftree\-copyrename\fR" 4
8039 .IX Item "-ftree-copyrename"
8040 Perform copy renaming on trees.  This pass attempts to rename compiler
8041 temporaries to other variables at copy locations, usually resulting in
8042 variable names which more closely resemble the original variables.  This flag
8043 is enabled by default at \fB\-O\fR and higher.
8044 .IP "\fB\-ftree\-coalesce\-inlined\-vars\fR" 4
8045 .IX Item "-ftree-coalesce-inlined-vars"
8046 Tell the copyrename pass (see \fB\-ftree\-copyrename\fR) to attempt to
8047 combine small user-defined variables too, but only if they are inlined
8048 from other functions.  It is a more limited form of
8049 \&\fB\-ftree\-coalesce\-vars\fR.  This may harm debug information of such
8050 inlined variables, but it keeps variables of the inlined-into
8051 function apart from each other, such that they are more likely to
8052 contain the expected values in a debugging session.
8053 .IP "\fB\-ftree\-coalesce\-vars\fR" 4
8054 .IX Item "-ftree-coalesce-vars"
8055 Tell the copyrename pass (see \fB\-ftree\-copyrename\fR) to attempt to
8056 combine small user-defined variables too, instead of just compiler
8057 temporaries.  This may severely limit the ability to debug an optimized
8058 program compiled with \fB\-fno\-var\-tracking\-assignments\fR.  In the
8059 negated form, this flag prevents \s-1SSA\s0 coalescing of user variables,
8060 including inlined ones.  This option is enabled by default.
8061 .IP "\fB\-ftree\-ter\fR" 4
8062 .IX Item "-ftree-ter"
8063 Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase.  Single
8064 use/single def temporaries are replaced at their use location with their
8065 defining expression.  This results in non-GIMPLE code, but gives the expanders
8066 much more complex trees to work on resulting in better \s-1RTL\s0 generation.  This is
8067 enabled by default at \fB\-O\fR and higher.
8068 .IP "\fB\-ftree\-slsr\fR" 4
8069 .IX Item "-ftree-slsr"
8070 Perform straight-line strength reduction on trees.  This recognizes related
8071 expressions involving multiplications and replaces them by less expensive
8072 calculations when possible.  This is enabled by default at \fB\-O\fR and
8073 higher.
8074 .IP "\fB\-ftree\-vectorize\fR" 4
8075 .IX Item "-ftree-vectorize"
8076 Perform vectorization on trees. This flag enables \fB\-ftree\-loop\-vectorize\fR
8077 and \fB\-ftree\-slp\-vectorize\fR if not explicitly specified.
8078 .IP "\fB\-ftree\-loop\-vectorize\fR" 4
8079 .IX Item "-ftree-loop-vectorize"
8080 Perform loop vectorization on trees. This flag is enabled by default at
8081 \&\fB\-O3\fR and when \fB\-ftree\-vectorize\fR is enabled.
8082 .IP "\fB\-ftree\-slp\-vectorize\fR" 4
8083 .IX Item "-ftree-slp-vectorize"
8084 Perform basic block vectorization on trees. This flag is enabled by default at
8085 \&\fB\-O3\fR and when \fB\-ftree\-vectorize\fR is enabled.
8086 .IP "\fB\-fvect\-cost\-model=\fR\fImodel\fR" 4
8087 .IX Item "-fvect-cost-model=model"
8088 Alter the cost model used for vectorization.  The \fImodel\fR argument
8089 should be one of \fBunlimited\fR, \fBdynamic\fR or \fBcheap\fR.
8090 With the \fBunlimited\fR model the vectorized code-path is assumed
8091 to be profitable while with the \fBdynamic\fR model a runtime check
8092 guards the vectorized code-path to enable it only for iteration
8093 counts that will likely execute faster than when executing the original
8094 scalar loop.  The \fBcheap\fR model disables vectorization of
8095 loops where doing so would be cost prohibitive for example due to
8096 required runtime checks for data dependence or alignment but otherwise
8097 is equal to the \fBdynamic\fR model.
8098 The default cost model depends on other optimization flags and is
8099 either \fBdynamic\fR or \fBcheap\fR.
8100 .IP "\fB\-fsimd\-cost\-model=\fR\fImodel\fR" 4
8101 .IX Item "-fsimd-cost-model=model"
8102 Alter the cost model used for vectorization of loops marked with the OpenMP
8103 or Cilk Plus simd directive.  The \fImodel\fR argument should be one of
8104 \&\fBunlimited\fR, \fBdynamic\fR, \fBcheap\fR.  All values of \fImodel\fR
8105 have the same meaning as described in \fB\-fvect\-cost\-model\fR and by
8106 default a cost model defined with \fB\-fvect\-cost\-model\fR is used.
8107 .IP "\fB\-ftree\-vrp\fR" 4
8108 .IX Item "-ftree-vrp"
8109 Perform Value Range Propagation on trees.  This is similar to the
8110 constant propagation pass, but instead of values, ranges of values are
8111 propagated.  This allows the optimizers to remove unnecessary range
8112 checks like array bound checks and null pointer checks.  This is
8113 enabled by default at \fB\-O2\fR and higher.  Null pointer check
8114 elimination is only done if \fB\-fdelete\-null\-pointer\-checks\fR is
8115 enabled.
8116 .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
8117 .IX Item "-fsplit-ivs-in-unroller"
8118 Enables expression of values of induction variables in later iterations
8119 of the unrolled loop using the value in the first iteration.  This breaks
8120 long dependency chains, thus improving efficiency of the scheduling passes.
8121 .Sp
8122 A combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
8123 same effect.  However, that is not reliable in cases where the loop body
8124 is more complicated than a single basic block.  It also does not work at all
8125 on some architectures due to restrictions in the \s-1CSE\s0 pass.
8126 .Sp
8127 This optimization is enabled by default.
8128 .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
8129 .IX Item "-fvariable-expansion-in-unroller"
8130 With this option, the compiler creates multiple copies of some
8131 local variables when unrolling a loop, which can result in superior code.
8132 .IP "\fB\-fpartial\-inlining\fR" 4
8133 .IX Item "-fpartial-inlining"
8134 Inline parts of functions.  This option has any effect only
8135 when inlining itself is turned on by the \fB\-finline\-functions\fR
8136 or \fB\-finline\-small\-functions\fR options.
8137 .Sp
8138 Enabled at level \fB\-O2\fR.
8139 .IP "\fB\-fpredictive\-commoning\fR" 4
8140 .IX Item "-fpredictive-commoning"
8141 Perform predictive commoning optimization, i.e., reusing computations
8142 (especially memory loads and stores) performed in previous
8143 iterations of loops.
8144 .Sp
8145 This option is enabled at level \fB\-O3\fR.
8146 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
8147 .IX Item "-fprefetch-loop-arrays"
8148 If supported by the target machine, generate instructions to prefetch
8149 memory to improve the performance of loops that access large arrays.
8150 .Sp
8151 This option may generate better or worse code; results are highly
8152 dependent on the structure of loops within the source code.
8153 .Sp
8154 Disabled at level \fB\-Os\fR.
8155 .IP "\fB\-fno\-peephole\fR" 4
8156 .IX Item "-fno-peephole"
8157 .PD 0
8158 .IP "\fB\-fno\-peephole2\fR" 4
8159 .IX Item "-fno-peephole2"
8160 .PD
8161 Disable any machine-specific peephole optimizations.  The difference
8162 between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
8163 are implemented in the compiler; some targets use one, some use the
8164 other, a few use both.
8165 .Sp
8166 \&\fB\-fpeephole\fR is enabled by default.
8167 \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8168 .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
8169 .IX Item "-fno-guess-branch-probability"
8170 Do not guess branch probabilities using heuristics.
8171 .Sp
8172 \&\s-1GCC\s0 uses heuristics to guess branch probabilities if they are
8173 not provided by profiling feedback (\fB\-fprofile\-arcs\fR).  These
8174 heuristics are based on the control flow graph.  If some branch probabilities
8175 are specified by \f(CW\*(C`_\|_builtin_expect\*(C'\fR, then the heuristics are
8176 used to guess branch probabilities for the rest of the control flow graph,
8177 taking the \f(CW\*(C`_\|_builtin_expect\*(C'\fR info into account.  The interactions
8178 between the heuristics and \f(CW\*(C`_\|_builtin_expect\*(C'\fR can be complex, and in
8179 some cases, it may be useful to disable the heuristics so that the effects
8180 of \f(CW\*(C`_\|_builtin_expect\*(C'\fR are easier to understand.
8181 .Sp
8182 The default is \fB\-fguess\-branch\-probability\fR at levels
8183 \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8184 .IP "\fB\-freorder\-blocks\fR" 4
8185 .IX Item "-freorder-blocks"
8186 Reorder basic blocks in the compiled function in order to reduce number of
8187 taken branches and improve code locality.
8188 .Sp
8189 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8190 .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
8191 .IX Item "-freorder-blocks-and-partition"
8192 In addition to reordering basic blocks in the compiled function, in order
8193 to reduce number of taken branches, partitions hot and cold basic blocks
8194 into separate sections of the assembly and .o files, to improve
8195 paging and cache locality performance.
8196 .Sp
8197 This optimization is automatically turned off in the presence of
8198 exception handling, for linkonce sections, for functions with a user-defined
8199 section attribute and on any architecture that does not support named
8200 sections.
8201 .Sp
8202 Enabled for x86 at levels \fB\-O2\fR, \fB\-O3\fR.
8203 .IP "\fB\-freorder\-functions\fR" 4
8204 .IX Item "-freorder-functions"
8205 Reorder functions in the object file in order to
8206 improve code locality.  This is implemented by using special
8207 subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
8208 \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions.  Reordering is done by
8209 the linker so object file format must support named sections and linker must
8210 place them in a reasonable way.
8211 .Sp
8212 Also profile feedback must be available to make this option effective.  See
8213 \&\fB\-fprofile\-arcs\fR for details.
8214 .Sp
8215 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8216 .IP "\fB\-fstrict\-aliasing\fR" 4
8217 .IX Item "-fstrict-aliasing"
8218 Allow the compiler to assume the strictest aliasing rules applicable to
8219 the language being compiled.  For C (and \*(C+), this activates
8220 optimizations based on the type of expressions.  In particular, an
8221 object of one type is assumed never to reside at the same address as an
8222 object of a different type, unless the types are almost the same.  For
8223 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
8224 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
8225 type.
8226 .Sp
8227 Pay special attention to code like this:
8228 .Sp
8229 .Vb 4
8230 \&        union a_union {
8231 \&          int i;
8232 \&          double d;
8233 \&        };
8234 \&        
8235 \&        int f() {
8236 \&          union a_union t;
8237 \&          t.d = 3.0;
8238 \&          return t.i;
8239 \&        }
8240 .Ve
8241 .Sp
8242 The practice of reading from a different union member than the one most
8243 recently written to (called \*(L"type-punning\*(R") is common.  Even with
8244 \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
8245 is accessed through the union type.  So, the code above works as
8246 expected.    However, this code might not:
8247 .Sp
8248 .Vb 7
8249 \&        int f() {
8250 \&          union a_union t;
8251 \&          int* ip;
8252 \&          t.d = 3.0;
8253 \&          ip = &t.i;
8254 \&          return *ip;
8255 \&        }
8256 .Ve
8257 .Sp
8258 Similarly, access by taking the address, casting the resulting pointer
8259 and dereferencing the result has undefined behavior, even if the cast
8260 uses a union type, e.g.:
8261 .Sp
8262 .Vb 4
8263 \&        int f() {
8264 \&          double d = 3.0;
8265 \&          return ((union a_union *) &d)\->i;
8266 \&        }
8267 .Ve
8268 .Sp
8269 The \fB\-fstrict\-aliasing\fR option is enabled at levels
8270 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8271 .IP "\fB\-fstrict\-overflow\fR" 4
8272 .IX Item "-fstrict-overflow"
8273 Allow the compiler to assume strict signed overflow rules, depending
8274 on the language being compiled.  For C (and \*(C+) this means that
8275 overflow when doing arithmetic with signed numbers is undefined, which
8276 means that the compiler may assume that it does not happen.  This
8277 permits various optimizations.  For example, the compiler assumes
8278 that an expression like \f(CW\*(C`i + 10 > i\*(C'\fR is always true for
8279 signed \f(CW\*(C`i\*(C'\fR.  This assumption is only valid if signed overflow is
8280 undefined, as the expression is false if \f(CW\*(C`i + 10\*(C'\fR overflows when
8281 using twos complement arithmetic.  When this option is in effect any
8282 attempt to determine whether an operation on signed numbers 
8283 overflows must be written carefully to not actually involve overflow.
8284 .Sp
8285 This option also allows the compiler to assume strict pointer
8286 semantics: given a pointer to an object, if adding an offset to that
8287 pointer does not produce a pointer to the same object, the addition is
8288 undefined.  This permits the compiler to conclude that \f(CW\*(C`p + u >
8289 p\*(C'\fR is always true for a pointer \f(CW\*(C`p\*(C'\fR and unsigned integer
8290 \&\f(CW\*(C`u\*(C'\fR.  This assumption is only valid because pointer wraparound is
8291 undefined, as the expression is false if \f(CW\*(C`p + u\*(C'\fR overflows using
8292 twos complement arithmetic.
8293 .Sp
8294 See also the \fB\-fwrapv\fR option.  Using \fB\-fwrapv\fR means
8295 that integer signed overflow is fully defined: it wraps.  When
8296 \&\fB\-fwrapv\fR is used, there is no difference between
8297 \&\fB\-fstrict\-overflow\fR and \fB\-fno\-strict\-overflow\fR for
8298 integers.  With \fB\-fwrapv\fR certain types of overflow are
8299 permitted.  For example, if the compiler gets an overflow when doing
8300 arithmetic on constants, the overflowed value can still be used with
8301 \&\fB\-fwrapv\fR, but not otherwise.
8302 .Sp
8303 The \fB\-fstrict\-overflow\fR option is enabled at levels
8304 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8305 .IP "\fB\-falign\-functions\fR" 4
8306 .IX Item "-falign-functions"
8307 .PD 0
8308 .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
8309 .IX Item "-falign-functions=n"
8310 .PD
8311 Align the start of functions to the next power-of-two greater than
8312 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
8313 \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
8314 boundary, but \fB\-falign\-functions=24\fR aligns to the next
8315 32\-byte boundary only if this can be done by skipping 23 bytes or less.
8316 .Sp
8317 \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
8318 equivalent and mean that functions are not aligned.
8319 .Sp
8320 Some assemblers only support this flag when \fIn\fR is a power of two;
8321 in that case, it is rounded up.
8322 .Sp
8323 If \fIn\fR is not specified or is zero, use a machine-dependent default.
8324 .Sp
8325 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8326 .IP "\fB\-falign\-labels\fR" 4
8327 .IX Item "-falign-labels"
8328 .PD 0
8329 .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
8330 .IX Item "-falign-labels=n"
8331 .PD
8332 Align all branch targets to a power-of-two boundary, skipping up to
8333 \&\fIn\fR bytes like \fB\-falign\-functions\fR.  This option can easily
8334 make code slower, because it must insert dummy operations for when the
8335 branch target is reached in the usual flow of the code.
8336 .Sp
8337 \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
8338 equivalent and mean that labels are not aligned.
8339 .Sp
8340 If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
8341 are greater than this value, then their values are used instead.
8342 .Sp
8343 If \fIn\fR is not specified or is zero, use a machine-dependent default
8344 which is very likely to be \fB1\fR, meaning no alignment.
8345 .Sp
8346 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8347 .IP "\fB\-falign\-loops\fR" 4
8348 .IX Item "-falign-loops"
8349 .PD 0
8350 .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
8351 .IX Item "-falign-loops=n"
8352 .PD
8353 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
8354 like \fB\-falign\-functions\fR.  If the loops are
8355 executed many times, this makes up for any execution of the dummy
8356 operations.
8357 .Sp
8358 \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
8359 equivalent and mean that loops are not aligned.
8360 .Sp
8361 If \fIn\fR is not specified or is zero, use a machine-dependent default.
8362 .Sp
8363 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8364 .IP "\fB\-falign\-jumps\fR" 4
8365 .IX Item "-falign-jumps"
8366 .PD 0
8367 .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
8368 .IX Item "-falign-jumps=n"
8369 .PD
8370 Align branch targets to a power-of-two boundary, for branch targets
8371 where the targets can only be reached by jumping, skipping up to \fIn\fR
8372 bytes like \fB\-falign\-functions\fR.  In this case, no dummy operations
8373 need be executed.
8374 .Sp
8375 \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
8376 equivalent and mean that loops are not aligned.
8377 .Sp
8378 If \fIn\fR is not specified or is zero, use a machine-dependent default.
8379 .Sp
8380 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8381 .IP "\fB\-funit\-at\-a\-time\fR" 4
8382 .IX Item "-funit-at-a-time"
8383 This option is left for compatibility reasons. \fB\-funit\-at\-a\-time\fR
8384 has no effect, while \fB\-fno\-unit\-at\-a\-time\fR implies
8385 \&\fB\-fno\-toplevel\-reorder\fR and \fB\-fno\-section\-anchors\fR.
8386 .Sp
8387 Enabled by default.
8388 .IP "\fB\-fno\-toplevel\-reorder\fR" 4
8389 .IX Item "-fno-toplevel-reorder"
8390 Do not reorder top-level functions, variables, and \f(CW\*(C`asm\*(C'\fR
8391 statements.  Output them in the same order that they appear in the
8392 input file.  When this option is used, unreferenced static variables
8393 are not removed.  This option is intended to support existing code
8394 that relies on a particular ordering.  For new code, it is better to
8395 use attributes when possible.
8396 .Sp
8397 Enabled at level \fB\-O0\fR.  When disabled explicitly, it also implies
8398 \&\fB\-fno\-section\-anchors\fR, which is otherwise enabled at \fB\-O0\fR on some
8399 targets.
8400 .IP "\fB\-fweb\fR" 4
8401 .IX Item "-fweb"
8402 Constructs webs as commonly used for register allocation purposes and assign
8403 each web individual pseudo register.  This allows the register allocation pass
8404 to operate on pseudos directly, but also strengthens several other optimization
8405 passes, such as \s-1CSE\s0, loop optimizer and trivial dead code remover.  It can,
8406 however, make debugging impossible, since variables no longer stay in a
8407 \&\*(L"home register\*(R".
8408 .Sp
8409 Enabled by default with \fB\-funroll\-loops\fR.
8410 .IP "\fB\-fwhole\-program\fR" 4
8411 .IX Item "-fwhole-program"
8412 Assume that the current compilation unit represents the whole program being
8413 compiled.  All public functions and variables with the exception of \f(CW\*(C`main\*(C'\fR
8414 and those merged by attribute \f(CW\*(C`externally_visible\*(C'\fR become static functions
8415 and in effect are optimized more aggressively by interprocedural optimizers.
8416 .Sp
8417 This option should not be used in combination with \fB\-flto\fR.
8418 Instead relying on a linker plugin should provide safer and more precise
8419 information.
8420 .IP "\fB\-flto[=\fR\fIn\fR\fB]\fR" 4
8421 .IX Item "-flto[=n]"
8422 This option runs the standard link-time optimizer.  When invoked
8423 with source code, it generates \s-1GIMPLE\s0 (one of \s-1GCC\s0's internal
8424 representations) and writes it to special \s-1ELF\s0 sections in the object
8425 file.  When the object files are linked together, all the function
8426 bodies are read from these \s-1ELF\s0 sections and instantiated as if they
8427 had been part of the same translation unit.
8428 .Sp
8429 To use the link-time optimizer, \fB\-flto\fR and optimization
8430 options should be specified at compile time and during the final link.
8431 For example:
8432 .Sp
8433 .Vb 3
8434 \&        gcc \-c \-O2 \-flto foo.c
8435 \&        gcc \-c \-O2 \-flto bar.c
8436 \&        gcc \-o myprog \-flto \-O2 foo.o bar.o
8437 .Ve
8438 .Sp
8439 The first two invocations to \s-1GCC\s0 save a bytecode representation
8440 of \s-1GIMPLE\s0 into special \s-1ELF\s0 sections inside \fIfoo.o\fR and
8441 \&\fIbar.o\fR.  The final invocation reads the \s-1GIMPLE\s0 bytecode from
8442 \&\fIfoo.o\fR and \fIbar.o\fR, merges the two files into a single
8443 internal image, and compiles the result as usual.  Since both
8444 \&\fIfoo.o\fR and \fIbar.o\fR are merged into a single image, this
8445 causes all the interprocedural analyses and optimizations in \s-1GCC\s0 to
8446 work across the two files as if they were a single one.  This means,
8447 for example, that the inliner is able to inline functions in
8448 \&\fIbar.o\fR into functions in \fIfoo.o\fR and vice-versa.
8449 .Sp
8450 Another (simpler) way to enable link-time optimization is:
8451 .Sp
8452 .Vb 1
8453 \&        gcc \-o myprog \-flto \-O2 foo.c bar.c
8454 .Ve
8455 .Sp
8456 The above generates bytecode for \fIfoo.c\fR and \fIbar.c\fR,
8457 merges them together into a single \s-1GIMPLE\s0 representation and optimizes
8458 them as usual to produce \fImyprog\fR.
8459 .Sp
8460 The only important thing to keep in mind is that to enable link-time
8461 optimizations you need to use the \s-1GCC\s0 driver to perform the link-step.
8462 \&\s-1GCC\s0 then automatically performs link-time optimization if any of the
8463 objects involved were compiled with the \fB\-flto\fR command-line option.  
8464 You generally
8465 should specify the optimization options to be used for link-time
8466 optimization though \s-1GCC\s0 tries to be clever at guessing an
8467 optimization level to use from the options used at compile-time
8468 if you fail to specify one at link-time.  You can always override
8469 the automatic decision to do link-time optimization at link-time
8470 by passing \fB\-fno\-lto\fR to the link command.
8471 .Sp
8472 To make whole program optimization effective, it is necessary to make
8473 certain whole program assumptions.  The compiler needs to know
8474 what functions and variables can be accessed by libraries and runtime
8475 outside of the link-time optimized unit.  When supported by the linker,
8476 the linker plugin (see \fB\-fuse\-linker\-plugin\fR) passes information
8477 to the compiler about used and externally visible symbols.  When
8478 the linker plugin is not available, \fB\-fwhole\-program\fR should be
8479 used to allow the compiler to make these assumptions, which leads
8480 to more aggressive optimization decisions.
8481 .Sp
8482 When \fB\-fuse\-linker\-plugin\fR is not enabled then, when a file is
8483 compiled with \fB\-flto\fR, the generated object file is larger than
8484 a regular object file because it contains \s-1GIMPLE\s0 bytecodes and the usual
8485 final code (see \fB\-ffat\-lto\-objects\fR.  This means that
8486 object files with \s-1LTO\s0 information can be linked as normal object
8487 files; if \fB\-fno\-lto\fR is passed to the linker, no
8488 interprocedural optimizations are applied.  Note that when
8489 \&\fB\-fno\-fat\-lto\-objects\fR is enabled the compile-stage is faster
8490 but you cannot perform a regular, non-LTO link on them.
8491 .Sp
8492 Additionally, the optimization flags used to compile individual files
8493 are not necessarily related to those used at link time.  For instance,
8494 .Sp
8495 .Vb 3
8496 \&        gcc \-c \-O0 \-ffat\-lto\-objects \-flto foo.c
8497 \&        gcc \-c \-O0 \-ffat\-lto\-objects \-flto bar.c
8498 \&        gcc \-o myprog \-O3 foo.o bar.o
8499 .Ve
8500 .Sp
8501 This produces individual object files with unoptimized assembler
8502 code, but the resulting binary \fImyprog\fR is optimized at
8503 \&\fB\-O3\fR.  If, instead, the final binary is generated with
8504 \&\fB\-fno\-lto\fR, then \fImyprog\fR is not optimized.
8505 .Sp
8506 When producing the final binary, \s-1GCC\s0 only
8507 applies link-time optimizations to those files that contain bytecode.
8508 Therefore, you can mix and match object files and libraries with
8509 \&\s-1GIMPLE\s0 bytecodes and final object code.  \s-1GCC\s0 automatically selects
8510 which files to optimize in \s-1LTO\s0 mode and which files to link without
8511 further processing.
8512 .Sp
8513 There are some code generation flags preserved by \s-1GCC\s0 when
8514 generating bytecodes, as they need to be used during the final link
8515 stage.  Generally options specified at link-time override those
8516 specified at compile-time.
8517 .Sp
8518 If you do not specify an optimization level option \fB\-O\fR at
8519 link-time then \s-1GCC\s0 computes one based on the optimization levels
8520 used when compiling the object files.  The highest optimization
8521 level wins here.
8522 .Sp
8523 Currently, the following options and their setting are take from
8524 the first object file that explicitely specified it: 
8525 \&\fB\-fPIC\fR, \fB\-fpic\fR, \fB\-fpie\fR, \fB\-fcommon\fR,
8526 \&\fB\-fexceptions\fR, \fB\-fnon\-call\-exceptions\fR, \fB\-fgnu\-tm\fR
8527 and all the \fB\-m\fR target flags.
8528 .Sp
8529 Certain \s-1ABI\s0 changing flags are required to match in all compilation-units
8530 and trying to override this at link-time with a conflicting value
8531 is ignored.  This includes options such as \fB\-freg\-struct\-return\fR
8532 and \fB\-fpcc\-struct\-return\fR.
8533 .Sp
8534 Other options such as \fB\-ffp\-contract\fR, \fB\-fno\-strict\-overflow\fR,
8535 \&\fB\-fwrapv\fR, \fB\-fno\-trapv\fR or \fB\-fno\-strict\-aliasing\fR
8536 are passed through to the link stage and merged conservatively for
8537 conflicting translation units.  Specifically
8538 \&\fB\-fno\-strict\-overflow\fR, \fB\-fwrapv\fR and \fB\-fno\-trapv\fR take
8539 precedence and for example \fB\-ffp\-contract=off\fR takes precedence
8540 over \fB\-ffp\-contract=fast\fR.  You can override them at linke-time.
8541 .Sp
8542 It is recommended that you compile all the files participating in the
8543 same link with the same options and also specify those options at
8544 link time.
8545 .Sp
8546 If \s-1LTO\s0 encounters objects with C linkage declared with incompatible
8547 types in separate translation units to be linked together (undefined
8548 behavior according to \s-1ISO\s0 C99 6.2.7), a non-fatal diagnostic may be
8549 issued.  The behavior is still undefined at run time.  Similar
8550 diagnostics may be raised for other languages.
8551 .Sp
8552 Another feature of \s-1LTO\s0 is that it is possible to apply interprocedural
8553 optimizations on files written in different languages:
8554 .Sp
8555 .Vb 4
8556 \&        gcc \-c \-flto foo.c
8557 \&        g++ \-c \-flto bar.cc
8558 \&        gfortran \-c \-flto baz.f90
8559 \&        g++ \-o myprog \-flto \-O3 foo.o bar.o baz.o \-lgfortran
8560 .Ve
8561 .Sp
8562 Notice that the final link is done with \fBg++\fR to get the \*(C+
8563 runtime libraries and \fB\-lgfortran\fR is added to get the Fortran
8564 runtime libraries.  In general, when mixing languages in \s-1LTO\s0 mode, you
8565 should use the same link command options as when mixing languages in a
8566 regular (non-LTO) compilation.
8567 .Sp
8568 If object files containing \s-1GIMPLE\s0 bytecode are stored in a library archive, say
8569 \&\fIlibfoo.a\fR, it is possible to extract and use them in an \s-1LTO\s0 link if you
8570 are using a linker with plugin support.  To create static libraries suitable
8571 for \s-1LTO\s0, use \fBgcc-ar\fR and \fBgcc-ranlib\fR instead of \fBar\fR
8572 and \fBranlib\fR; 
8573 to show the symbols of object files with \s-1GIMPLE\s0 bytecode, use
8574 \&\fBgcc-nm\fR.  Those commands require that \fBar\fR, \fBranlib\fR
8575 and \fBnm\fR have been compiled with plugin support.  At link time, use the the
8576 flag \fB\-fuse\-linker\-plugin\fR to ensure that the library participates in
8577 the \s-1LTO\s0 optimization process:
8578 .Sp
8579 .Vb 1
8580 \&        gcc \-o myprog \-O2 \-flto \-fuse\-linker\-plugin a.o b.o \-lfoo
8581 .Ve
8582 .Sp
8583 With the linker plugin enabled, the linker extracts the needed
8584 \&\s-1GIMPLE\s0 files from \fIlibfoo.a\fR and passes them on to the running \s-1GCC\s0
8585 to make them part of the aggregated \s-1GIMPLE\s0 image to be optimized.
8586 .Sp
8587 If you are not using a linker with plugin support and/or do not
8588 enable the linker plugin, then the objects inside \fIlibfoo.a\fR
8589 are extracted and linked as usual, but they do not participate
8590 in the \s-1LTO\s0 optimization process.  In order to make a static library suitable
8591 for both \s-1LTO\s0 optimization and usual linkage, compile its object files with
8592 \&\fB\-flto\fR \fB\-ffat\-lto\-objects\fR.
8593 .Sp
8594 Link-time optimizations do not require the presence of the whole program to
8595 operate.  If the program does not require any symbols to be exported, it is
8596 possible to combine \fB\-flto\fR and \fB\-fwhole\-program\fR to allow
8597 the interprocedural optimizers to use more aggressive assumptions which may
8598 lead to improved optimization opportunities.
8599 Use of \fB\-fwhole\-program\fR is not needed when linker plugin is
8600 active (see \fB\-fuse\-linker\-plugin\fR).
8601 .Sp
8602 The current implementation of \s-1LTO\s0 makes no
8603 attempt to generate bytecode that is portable between different
8604 types of hosts.  The bytecode files are versioned and there is a
8605 strict version check, so bytecode files generated in one version of
8606 \&\s-1GCC\s0 do not work with an older or newer version of \s-1GCC\s0.
8607 .Sp
8608 Link-time optimization does not work well with generation of debugging
8609 information.  Combining \fB\-flto\fR with
8610 \&\fB\-g\fR is currently experimental and expected to produce unexpected
8611 results.
8612 .Sp
8613 If you specify the optional \fIn\fR, the optimization and code
8614 generation done at link time is executed in parallel using \fIn\fR
8615 parallel jobs by utilizing an installed \fBmake\fR program.  The
8616 environment variable \fB\s-1MAKE\s0\fR may be used to override the program
8617 used.  The default value for \fIn\fR is 1.
8618 .Sp
8619 You can also specify \fB\-flto=jobserver\fR to use \s-1GNU\s0 make's
8620 job server mode to determine the number of parallel jobs. This
8621 is useful when the Makefile calling \s-1GCC\s0 is already executing in parallel.
8622 You must prepend a \fB+\fR to the command recipe in the parent Makefile
8623 for this to work.  This option likely only works if \fB\s-1MAKE\s0\fR is
8624 \&\s-1GNU\s0 make.
8625 .IP "\fB\-flto\-partition=\fR\fIalg\fR" 4
8626 .IX Item "-flto-partition=alg"
8627 Specify the partitioning algorithm used by the link-time optimizer.
8628 The value is either \fB1to1\fR to specify a partitioning mirroring
8629 the original source files or \fBbalanced\fR to specify partitioning
8630 into equally sized chunks (whenever possible) or \fBmax\fR to create
8631 new partition for every symbol where possible.  Specifying \fBnone\fR
8632 as an algorithm disables partitioning and streaming completely. 
8633 The default value is \fBbalanced\fR. While \fB1to1\fR can be used
8634 as an workaround for various code ordering issues, the \fBmax\fR
8635 partitioning is intended for internal testing only.
8636 The value \fBone\fR specifies that exactly one partition should be
8637 used while the value \fBnone\fR bypasses partitioning and executes
8638 the link-time optimization step directly from the \s-1WPA\s0 phase.
8639 .IP "\fB\-flto\-odr\-type\-merging\fR" 4
8640 .IX Item "-flto-odr-type-merging"
8641 Enable streaming of mangled types names of \*(C+ types and their unification
8642 at linktime.  This increases size of \s-1LTO\s0 object files, but enable
8643 diagnostics about One Definition Rule violations.
8644 .IP "\fB\-flto\-compression\-level=\fR\fIn\fR" 4
8645 .IX Item "-flto-compression-level=n"
8646 This option specifies the level of compression used for intermediate
8647 language written to \s-1LTO\s0 object files, and is only meaningful in
8648 conjunction with \s-1LTO\s0 mode (\fB\-flto\fR).  Valid
8649 values are 0 (no compression) to 9 (maximum compression).  Values
8650 outside this range are clamped to either 0 or 9.  If the option is not
8651 given, a default balanced compression setting is used.
8652 .IP "\fB\-flto\-report\fR" 4
8653 .IX Item "-flto-report"
8654 Prints a report with internal details on the workings of the link-time
8655 optimizer.  The contents of this report vary from version to version.
8656 It is meant to be useful to \s-1GCC\s0 developers when processing object
8657 files in \s-1LTO\s0 mode (via \fB\-flto\fR).
8658 .Sp
8659 Disabled by default.
8660 .IP "\fB\-flto\-report\-wpa\fR" 4
8661 .IX Item "-flto-report-wpa"
8662 Like \fB\-flto\-report\fR, but only print for the \s-1WPA\s0 phase of Link
8663 Time Optimization.
8664 .IP "\fB\-fuse\-linker\-plugin\fR" 4
8665 .IX Item "-fuse-linker-plugin"
8666 Enables the use of a linker plugin during link-time optimization.  This
8667 option relies on plugin support in the linker, which is available in gold
8668 or in \s-1GNU\s0 ld 2.21 or newer.
8669 .Sp
8670 This option enables the extraction of object files with \s-1GIMPLE\s0 bytecode out
8671 of library archives. This improves the quality of optimization by exposing
8672 more code to the link-time optimizer.  This information specifies what
8673 symbols can be accessed externally (by non-LTO object or during dynamic
8674 linking).  Resulting code quality improvements on binaries (and shared
8675 libraries that use hidden visibility) are similar to \fB\-fwhole\-program\fR.
8676 See \fB\-flto\fR for a description of the effect of this flag and how to
8677 use it.
8678 .Sp
8679 This option is enabled by default when \s-1LTO\s0 support in \s-1GCC\s0 is enabled
8680 and \s-1GCC\s0 was configured for use with
8681 a linker supporting plugins (\s-1GNU\s0 ld 2.21 or newer or gold).
8682 .IP "\fB\-ffat\-lto\-objects\fR" 4
8683 .IX Item "-ffat-lto-objects"
8684 Fat \s-1LTO\s0 objects are object files that contain both the intermediate language
8685 and the object code. This makes them usable for both \s-1LTO\s0 linking and normal
8686 linking. This option is effective only when compiling with \fB\-flto\fR
8687 and is ignored at link time.
8688 .Sp
8689 \&\fB\-fno\-fat\-lto\-objects\fR improves compilation time over plain \s-1LTO\s0, but
8690 requires the complete toolchain to be aware of \s-1LTO\s0. It requires a linker with
8691 linker plugin support for basic functionality.  Additionally,
8692 \&\fBnm\fR, \fBar\fR and \fBranlib\fR
8693 need to support linker plugins to allow a full-featured build environment
8694 (capable of building static libraries etc).  \s-1GCC\s0 provides the \fBgcc-ar\fR,
8695 \&\fBgcc-nm\fR, \fBgcc-ranlib\fR wrappers to pass the right options
8696 to these tools. With non fat \s-1LTO\s0 makefiles need to be modified to use them.
8697 .Sp
8698 The default is \fB\-fno\-fat\-lto\-objects\fR on targets with linker plugin
8699 support.
8700 .IP "\fB\-fcompare\-elim\fR" 4
8701 .IX Item "-fcompare-elim"
8702 After register allocation and post-register allocation instruction splitting,
8703 identify arithmetic instructions that compute processor flags similar to a
8704 comparison operation based on that arithmetic.  If possible, eliminate the
8705 explicit comparison operation.
8706 .Sp
8707 This pass only applies to certain targets that cannot explicitly represent
8708 the comparison operation before register allocation is complete.
8709 .Sp
8710 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8711 .IP "\fB\-fcprop\-registers\fR" 4
8712 .IX Item "-fcprop-registers"
8713 After register allocation and post-register allocation instruction splitting,
8714 perform a copy-propagation pass to try to reduce scheduling dependencies
8715 and occasionally eliminate the copy.
8716 .Sp
8717 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8718 .IP "\fB\-fprofile\-correction\fR" 4
8719 .IX Item "-fprofile-correction"
8720 Profiles collected using an instrumented binary for multi-threaded programs may
8721 be inconsistent due to missed counter updates. When this option is specified,
8722 \&\s-1GCC\s0 uses heuristics to correct or smooth out such inconsistencies. By
8723 default, \s-1GCC\s0 emits an error message when an inconsistent profile is detected.
8724 .IP "\fB\-fprofile\-dir=\fR\fIpath\fR" 4
8725 .IX Item "-fprofile-dir=path"
8726 Set the directory to search for the profile data files in to \fIpath\fR.
8727 This option affects only the profile data generated by
8728 \&\fB\-fprofile\-generate\fR, \fB\-ftest\-coverage\fR, \fB\-fprofile\-arcs\fR
8729 and used by \fB\-fprofile\-use\fR and \fB\-fbranch\-probabilities\fR
8730 and its related options.  Both absolute and relative paths can be used.
8731 By default, \s-1GCC\s0 uses the current directory as \fIpath\fR, thus the
8732 profile data file appears in the same directory as the object file.
8733 .IP "\fB\-fprofile\-generate\fR" 4
8734 .IX Item "-fprofile-generate"
8735 .PD 0
8736 .IP "\fB\-fprofile\-generate=\fR\fIpath\fR" 4
8737 .IX Item "-fprofile-generate=path"
8738 .PD
8739 Enable options usually used for instrumenting application to produce
8740 profile useful for later recompilation with profile feedback based
8741 optimization.  You must use \fB\-fprofile\-generate\fR both when
8742 compiling and when linking your program.
8743 .Sp
8744 The following options are enabled: \fB\-fprofile\-arcs\fR, \fB\-fprofile\-values\fR, \fB\-fvpt\fR.
8745 .Sp
8746 If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
8747 the profile feedback data files. See \fB\-fprofile\-dir\fR.
8748 .IP "\fB\-fprofile\-use\fR" 4
8749 .IX Item "-fprofile-use"
8750 .PD 0
8751 .IP "\fB\-fprofile\-use=\fR\fIpath\fR" 4
8752 .IX Item "-fprofile-use=path"
8753 .PD
8754 Enable profile feedback-directed optimizations, 
8755 and the following optimizations
8756 which are generally profitable only with profile feedback available:
8757 \&\fB\-fbranch\-probabilities\fR, \fB\-fvpt\fR,
8758 \&\fB\-funroll\-loops\fR, \fB\-fpeel\-loops\fR, \fB\-ftracer\fR, 
8759 \&\fB\-ftree\-vectorize\fR, and \fBftree-loop-distribute-patterns\fR.
8760 .Sp
8761 By default, \s-1GCC\s0 emits an error message if the feedback profiles do not
8762 match the source code.  This error can be turned into a warning by using
8763 \&\fB\-Wcoverage\-mismatch\fR.  Note this may result in poorly optimized
8764 code.
8765 .Sp
8766 If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
8767 the profile feedback data files. See \fB\-fprofile\-dir\fR.
8768 .IP "\fB\-fauto\-profile\fR" 4
8769 .IX Item "-fauto-profile"
8770 .PD 0
8771 .IP "\fB\-fauto\-profile=\fR\fIpath\fR" 4
8772 .IX Item "-fauto-profile=path"
8773 .PD
8774 Enable sampling-based feedback-directed optimizations, 
8775 and the following optimizations
8776 which are generally profitable only with profile feedback available:
8777 \&\fB\-fbranch\-probabilities\fR, \fB\-fvpt\fR,
8778 \&\fB\-funroll\-loops\fR, \fB\-fpeel\-loops\fR, \fB\-ftracer\fR, 
8779 \&\fB\-ftree\-vectorize\fR,
8780 \&\fB\-finline\-functions\fR, \fB\-fipa\-cp\fR, \fB\-fipa\-cp\-clone\fR,
8781 \&\fB\-fpredictive\-commoning\fR, \fB\-funswitch\-loops\fR,
8782 \&\fB\-fgcse\-after\-reload\fR, and \fB\-ftree\-loop\-distribute\-patterns\fR.
8783 .Sp
8784 \&\fIpath\fR is the name of a file containing AutoFDO profile information.
8785 If omitted, it defaults to \fIfbdata.afdo\fR in the current directory.
8786 .Sp
8787 Producing an AutoFDO profile data file requires running your program
8788 with the \fBperf\fR utility on a supported GNU/Linux target system.
8789 For more information, see <\fBhttps://perf.wiki.kernel.org/\fR>.
8790 .Sp
8791 E.g.
8792 .Sp
8793 .Vb 2
8794 \&        perf record \-e br_inst_retired:near_taken \-b \-o perf.data \e
8795 \&            \-\- your_program
8796 .Ve
8797 .Sp
8798 Then use the \fBcreate_gcov\fR tool to convert the raw profile data
8799 to a format that can be used by \s-1GCC\s0.  You must also supply the 
8800 unstripped binary for your program to this tool.  
8801 See <\fBhttps://github.com/google/autofdo\fR>.
8802 .Sp
8803 E.g.
8804 .Sp
8805 .Vb 2
8806 \&        create_gcov \-\-binary=your_program.unstripped \-\-profile=perf.data \e
8807 \&            \-\-gcov=profile.afdo
8808 .Ve
8809 .PP
8810 The following options control compiler behavior regarding floating-point 
8811 arithmetic.  These options trade off between speed and
8812 correctness.  All must be specifically enabled.
8813 .IP "\fB\-ffloat\-store\fR" 4
8814 .IX Item "-ffloat-store"
8815 Do not store floating-point variables in registers, and inhibit other
8816 options that might change whether a floating-point value is taken from a
8817 register or memory.
8818 .Sp
8819 This option prevents undesirable excess precision on machines such as
8820 the 68000 where the floating registers (of the 68881) keep more
8821 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
8822 x86 architecture.  For most programs, the excess precision does only
8823 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
8824 point.  Use \fB\-ffloat\-store\fR for such programs, after modifying
8825 them to store all pertinent intermediate computations into variables.
8826 .IP "\fB\-fexcess\-precision=\fR\fIstyle\fR" 4
8827 .IX Item "-fexcess-precision=style"
8828 This option allows further control over excess precision on machines
8829 where floating-point registers have more precision than the \s-1IEEE\s0
8830 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR types and the processor does not
8831 support operations rounding to those types.  By default,
8832 \&\fB\-fexcess\-precision=fast\fR is in effect; this means that
8833 operations are carried out in the precision of the registers and that
8834 it is unpredictable when rounding to the types specified in the source
8835 code takes place.  When compiling C, if
8836 \&\fB\-fexcess\-precision=standard\fR is specified then excess
8837 precision follows the rules specified in \s-1ISO\s0 C99; in particular,
8838 both casts and assignments cause values to be rounded to their
8839 semantic types (whereas \fB\-ffloat\-store\fR only affects
8840 assignments).  This option is enabled by default for C if a strict
8841 conformance option such as \fB\-std=c99\fR is used.
8842 .Sp
8843 \&\fB\-fexcess\-precision=standard\fR is not implemented for languages
8844 other than C, and has no effect if
8845 \&\fB\-funsafe\-math\-optimizations\fR or \fB\-ffast\-math\fR is
8846 specified.  On the x86, it also has no effect if \fB\-mfpmath=sse\fR
8847 or \fB\-mfpmath=sse+387\fR is specified; in the former case, \s-1IEEE\s0
8848 semantics apply without excess precision, and in the latter, rounding
8849 is unpredictable.
8850 .IP "\fB\-ffast\-math\fR" 4
8851 .IX Item "-ffast-math"
8852 Sets the options \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR,
8853 \&\fB\-ffinite\-math\-only\fR, \fB\-fno\-rounding\-math\fR,
8854 \&\fB\-fno\-signaling\-nans\fR and \fB\-fcx\-limited\-range\fR.
8855 .Sp
8856 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
8857 .Sp
8858 This option is not turned on by any \fB\-O\fR option besides
8859 \&\fB\-Ofast\fR since it can result in incorrect output for programs
8860 that depend on an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications
8861 for math functions. It may, however, yield faster code for programs
8862 that do not require the guarantees of these specifications.
8863 .IP "\fB\-fno\-math\-errno\fR" 4
8864 .IX Item "-fno-math-errno"
8865 Do not set \f(CW\*(C`errno\*(C'\fR after calling math functions that are executed
8866 with a single instruction, e.g., \f(CW\*(C`sqrt\*(C'\fR.  A program that relies on
8867 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
8868 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
8869 .Sp
8870 This option is not turned on by any \fB\-O\fR option since
8871 it can result in incorrect output for programs that depend on
8872 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
8873 math functions. It may, however, yield faster code for programs
8874 that do not require the guarantees of these specifications.
8875 .Sp
8876 The default is \fB\-fmath\-errno\fR.
8877 .Sp
8878 On Darwin systems, the math library never sets \f(CW\*(C`errno\*(C'\fR.  There is
8879 therefore no reason for the compiler to consider the possibility that
8880 it might, and \fB\-fno\-math\-errno\fR is the default.
8881 .IP "\fB\-funsafe\-math\-optimizations\fR" 4
8882 .IX Item "-funsafe-math-optimizations"
8883 Allow optimizations for floating-point arithmetic that (a) assume
8884 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
8885 \&\s-1ANSI\s0 standards.  When used at link-time, it may include libraries
8886 or startup files that change the default \s-1FPU\s0 control word or other
8887 similar optimizations.
8888 .Sp
8889 This option is not turned on by any \fB\-O\fR option since
8890 it can result in incorrect output for programs that depend on
8891 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
8892 math functions. It may, however, yield faster code for programs
8893 that do not require the guarantees of these specifications.
8894 Enables \fB\-fno\-signed\-zeros\fR, \fB\-fno\-trapping\-math\fR,
8895 \&\fB\-fassociative\-math\fR and \fB\-freciprocal\-math\fR.
8896 .Sp
8897 The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
8898 .IP "\fB\-fassociative\-math\fR" 4
8899 .IX Item "-fassociative-math"
8900 Allow re-association of operands in series of floating-point operations.
8901 This violates the \s-1ISO\s0 C and \*(C+ language standard by possibly changing
8902 computation result.  \s-1NOTE:\s0 re-ordering may change the sign of zero as
8903 well as ignore NaNs and inhibit or create underflow or overflow (and
8904 thus cannot be used on code that relies on rounding behavior like
8905 \&\f(CW\*(C`(x + 2**52) \- 2**52\*(C'\fR.  May also reorder floating-point comparisons
8906 and thus may not be used when ordered comparisons are required.
8907 This option requires that both \fB\-fno\-signed\-zeros\fR and
8908 \&\fB\-fno\-trapping\-math\fR be in effect.  Moreover, it doesn't make
8909 much sense with \fB\-frounding\-math\fR. For Fortran the option
8910 is automatically enabled when both \fB\-fno\-signed\-zeros\fR and
8911 \&\fB\-fno\-trapping\-math\fR are in effect.
8912 .Sp
8913 The default is \fB\-fno\-associative\-math\fR.
8914 .IP "\fB\-freciprocal\-math\fR" 4
8915 .IX Item "-freciprocal-math"
8916 Allow the reciprocal of a value to be used instead of dividing by
8917 the value if this enables optimizations.  For example \f(CW\*(C`x / y\*(C'\fR
8918 can be replaced with \f(CW\*(C`x * (1/y)\*(C'\fR, which is useful if \f(CW\*(C`(1/y)\*(C'\fR
8919 is subject to common subexpression elimination.  Note that this loses
8920 precision and increases the number of flops operating on the value.
8921 .Sp
8922 The default is \fB\-fno\-reciprocal\-math\fR.
8923 .IP "\fB\-ffinite\-math\-only\fR" 4
8924 .IX Item "-ffinite-math-only"
8925 Allow optimizations for floating-point arithmetic that assume
8926 that arguments and results are not NaNs or +\-Infs.
8927 .Sp
8928 This option is not turned on by any \fB\-O\fR option since
8929 it can result in incorrect output for programs that depend on
8930 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
8931 math functions. It may, however, yield faster code for programs
8932 that do not require the guarantees of these specifications.
8933 .Sp
8934 The default is \fB\-fno\-finite\-math\-only\fR.
8935 .IP "\fB\-fno\-signed\-zeros\fR" 4
8936 .IX Item "-fno-signed-zeros"
8937 Allow optimizations for floating-point arithmetic that ignore the
8938 signedness of zero.  \s-1IEEE\s0 arithmetic specifies the behavior of
8939 distinct +0.0 and \-0.0 values, which then prohibits simplification
8940 of expressions such as x+0.0 or 0.0*x (even with \fB\-ffinite\-math\-only\fR).
8941 This option implies that the sign of a zero result isn't significant.
8942 .Sp
8943 The default is \fB\-fsigned\-zeros\fR.
8944 .IP "\fB\-fno\-trapping\-math\fR" 4
8945 .IX Item "-fno-trapping-math"
8946 Compile code assuming that floating-point operations cannot generate
8947 user-visible traps.  These traps include division by zero, overflow,
8948 underflow, inexact result and invalid operation.  This option requires
8949 that \fB\-fno\-signaling\-nans\fR be in effect.  Setting this option may
8950 allow faster code if one relies on \*(L"non-stop\*(R" \s-1IEEE\s0 arithmetic, for example.
8951 .Sp
8952 This option should never be turned on by any \fB\-O\fR option since
8953 it can result in incorrect output for programs that depend on
8954 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
8955 math functions.
8956 .Sp
8957 The default is \fB\-ftrapping\-math\fR.
8958 .IP "\fB\-frounding\-math\fR" 4
8959 .IX Item "-frounding-math"
8960 Disable transformations and optimizations that assume default floating-point
8961 rounding behavior.  This is round-to-zero for all floating point
8962 to integer conversions, and round-to-nearest for all other arithmetic
8963 truncations.  This option should be specified for programs that change
8964 the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
8965 non-default rounding mode.  This option disables constant folding of
8966 floating-point expressions at compile time (which may be affected by
8967 rounding mode) and arithmetic transformations that are unsafe in the
8968 presence of sign-dependent rounding modes.
8969 .Sp
8970 The default is \fB\-fno\-rounding\-math\fR.
8971 .Sp
8972 This option is experimental and does not currently guarantee to
8973 disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
8974 Future versions of \s-1GCC\s0 may provide finer control of this setting
8975 using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma.  This command-line option
8976 will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
8977 .IP "\fB\-fsignaling\-nans\fR" 4
8978 .IX Item "-fsignaling-nans"
8979 Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
8980 traps during floating-point operations.  Setting this option disables
8981 optimizations that may change the number of exceptions visible with
8982 signaling NaNs.  This option implies \fB\-ftrapping\-math\fR.
8983 .Sp
8984 This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
8985 be defined.
8986 .Sp
8987 The default is \fB\-fno\-signaling\-nans\fR.
8988 .Sp
8989 This option is experimental and does not currently guarantee to
8990 disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
8991 .IP "\fB\-fsingle\-precision\-constant\fR" 4
8992 .IX Item "-fsingle-precision-constant"
8993 Treat floating-point constants as single precision instead of
8994 implicitly converting them to double-precision constants.
8995 .IP "\fB\-fcx\-limited\-range\fR" 4
8996 .IX Item "-fcx-limited-range"
8997 When enabled, this option states that a range reduction step is not
8998 needed when performing complex division.  Also, there is no checking
8999 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
9000 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.  The
9001 default is \fB\-fno\-cx\-limited\-range\fR, but is enabled by
9002 \&\fB\-ffast\-math\fR.
9003 .Sp
9004 This option controls the default setting of the \s-1ISO\s0 C99
9005 \&\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma.  Nevertheless, the option applies to
9006 all languages.
9007 .IP "\fB\-fcx\-fortran\-rules\fR" 4
9008 .IX Item "-fcx-fortran-rules"
9009 Complex multiplication and division follow Fortran rules.  Range
9010 reduction is done as part of complex division, but there is no checking
9011 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
9012 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.
9013 .Sp
9014 The default is \fB\-fno\-cx\-fortran\-rules\fR.
9015 .PP
9016 The following options control optimizations that may improve
9017 performance, but are not enabled by any \fB\-O\fR options.  This
9018 section includes experimental options that may produce broken code.
9019 .IP "\fB\-fbranch\-probabilities\fR" 4
9020 .IX Item "-fbranch-probabilities"
9021 After running a program compiled with \fB\-fprofile\-arcs\fR, you can compile it a second time using
9022 \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
9023 the number of times each branch was taken.  When a program
9024 compiled with \fB\-fprofile\-arcs\fR exits, it saves arc execution
9025 counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
9026 file.  The information in this data file is very dependent on the
9027 structure of the generated code, so you must use the same source code
9028 and the same optimization options for both compilations.
9029 .Sp
9030 With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
9031 \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
9032 These can be used to improve optimization.  Currently, they are only
9033 used in one place: in \fIreorg.c\fR, instead of guessing which path a
9034 branch is most likely to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
9035 exactly determine which path is taken more often.
9036 .IP "\fB\-fprofile\-values\fR" 4
9037 .IX Item "-fprofile-values"
9038 If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
9039 data about values of expressions in the program is gathered.
9040 .Sp
9041 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
9042 from profiling values of expressions for usage in optimizations.
9043 .Sp
9044 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
9045 .IP "\fB\-fprofile\-reorder\-functions\fR" 4
9046 .IX Item "-fprofile-reorder-functions"
9047 Function reordering based on profile instrumentation collects
9048 first time of execution of a function and orders these functions
9049 in ascending order.
9050 .Sp
9051 Enabled with \fB\-fprofile\-use\fR.
9052 .IP "\fB\-fvpt\fR" 4
9053 .IX Item "-fvpt"
9054 If combined with \fB\-fprofile\-arcs\fR, this option instructs the compiler
9055 to add code to gather information about values of expressions.
9056 .Sp
9057 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
9058 and actually performs the optimizations based on them.
9059 Currently the optimizations include specialization of division operations
9060 using the knowledge about the value of the denominator.
9061 .IP "\fB\-frename\-registers\fR" 4
9062 .IX Item "-frename-registers"
9063 Attempt to avoid false dependencies in scheduled code by making use
9064 of registers left over after register allocation.  This optimization
9065 most benefits processors with lots of registers.  Depending on the
9066 debug information format adopted by the target, however, it can
9067 make debugging impossible, since variables no longer stay in
9068 a \*(L"home register\*(R".
9069 .Sp
9070 Enabled by default with \fB\-funroll\-loops\fR and \fB\-fpeel\-loops\fR.
9071 .IP "\fB\-fschedule\-fusion\fR" 4
9072 .IX Item "-fschedule-fusion"
9073 Performs a target dependent pass over the instruction stream to schedule
9074 instructions of same type together because target machine can execute them
9075 more efficiently if they are adjacent to each other in the instruction flow.
9076 .Sp
9077 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
9078 .IP "\fB\-ftracer\fR" 4
9079 .IX Item "-ftracer"
9080 Perform tail duplication to enlarge superblock size.  This transformation
9081 simplifies the control flow of the function allowing other optimizations to do
9082 a better job.
9083 .Sp
9084 Enabled with \fB\-fprofile\-use\fR.
9085 .IP "\fB\-funroll\-loops\fR" 4
9086 .IX Item "-funroll-loops"
9087 Unroll loops whose number of iterations can be determined at compile time or
9088 upon entry to the loop.  \fB\-funroll\-loops\fR implies
9089 \&\fB\-frerun\-cse\-after\-loop\fR, \fB\-fweb\fR and \fB\-frename\-registers\fR.
9090 It also turns on complete loop peeling (i.e. complete removal of loops with
9091 a small constant number of iterations).  This option makes code larger, and may
9092 or may not make it run faster.
9093 .Sp
9094 Enabled with \fB\-fprofile\-use\fR.
9095 .IP "\fB\-funroll\-all\-loops\fR" 4
9096 .IX Item "-funroll-all-loops"
9097 Unroll all loops, even if their number of iterations is uncertain when
9098 the loop is entered.  This usually makes programs run more slowly.
9099 \&\fB\-funroll\-all\-loops\fR implies the same options as
9100 \&\fB\-funroll\-loops\fR.
9101 .IP "\fB\-fpeel\-loops\fR" 4
9102 .IX Item "-fpeel-loops"
9103 Peels loops for which there is enough information that they do not
9104 roll much (from profile feedback).  It also turns on complete loop peeling
9105 (i.e. complete removal of loops with small constant number of iterations).
9106 .Sp
9107 Enabled with \fB\-fprofile\-use\fR.
9108 .IP "\fB\-fmove\-loop\-invariants\fR" 4
9109 .IX Item "-fmove-loop-invariants"
9110 Enables the loop invariant motion pass in the \s-1RTL\s0 loop optimizer.  Enabled
9111 at level \fB\-O1\fR
9112 .IP "\fB\-funswitch\-loops\fR" 4
9113 .IX Item "-funswitch-loops"
9114 Move branches with loop invariant conditions out of the loop, with duplicates
9115 of the loop on both branches (modified according to result of the condition).
9116 .IP "\fB\-ffunction\-sections\fR" 4
9117 .IX Item "-ffunction-sections"
9118 .PD 0
9119 .IP "\fB\-fdata\-sections\fR" 4
9120 .IX Item "-fdata-sections"
9121 .PD
9122 Place each function or data item into its own section in the output
9123 file if the target supports arbitrary sections.  The name of the
9124 function or the name of the data item determines the section's name
9125 in the output file.
9126 .Sp
9127 Use these options on systems where the linker can perform optimizations
9128 to improve locality of reference in the instruction space.  Most systems
9129 using the \s-1ELF\s0 object format and \s-1SPARC\s0 processors running Solaris 2 have
9130 linkers with such optimizations.  \s-1AIX\s0 may have these optimizations in
9131 the future.
9132 .Sp
9133 Only use these options when there are significant benefits from doing
9134 so.  When you specify these options, the assembler and linker
9135 create larger object and executable files and are also slower.
9136 You cannot use \fBgprof\fR on all systems if you
9137 specify this option, and you may have problems with debugging if
9138 you specify both this option and \fB\-g\fR.
9139 .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
9140 .IX Item "-fbranch-target-load-optimize"
9141 Perform branch target register load optimization before prologue / epilogue
9142 threading.
9143 The use of target registers can typically be exposed only during reload,
9144 thus hoisting loads out of loops and doing inter-block scheduling needs
9145 a separate optimization pass.
9146 .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
9147 .IX Item "-fbranch-target-load-optimize2"
9148 Perform branch target register load optimization after prologue / epilogue
9149 threading.
9150 .IP "\fB\-fbtr\-bb\-exclusive\fR" 4
9151 .IX Item "-fbtr-bb-exclusive"
9152 When performing branch target register load optimization, don't reuse
9153 branch target registers within any basic block.
9154 .IP "\fB\-fstack\-protector\fR" 4
9155 .IX Item "-fstack-protector"
9156 Emit extra code to check for buffer overflows, such as stack smashing
9157 attacks.  This is done by adding a guard variable to functions with
9158 vulnerable objects.  This includes functions that call \f(CW\*(C`alloca\*(C'\fR, and
9159 functions with buffers larger than 8 bytes.  The guards are initialized
9160 when a function is entered and then checked when the function exits.
9161 If a guard check fails, an error message is printed and the program exits.
9162 .IP "\fB\-fstack\-protector\-all\fR" 4
9163 .IX Item "-fstack-protector-all"
9164 Like \fB\-fstack\-protector\fR except that all functions are protected.
9165 .IP "\fB\-fstack\-protector\-strong\fR" 4
9166 .IX Item "-fstack-protector-strong"
9167 Like \fB\-fstack\-protector\fR but includes additional functions to
9168 be protected \-\-\- those that have local array definitions, or have
9169 references to local frame addresses.
9170 .IP "\fB\-fstack\-protector\-explicit\fR" 4
9171 .IX Item "-fstack-protector-explicit"
9172 Like \fB\-fstack\-protector\fR but only protects those functions which
9173 have the \f(CW\*(C`stack_protect\*(C'\fR attribute
9174 .IP "\fB\-fstdarg\-opt\fR" 4
9175 .IX Item "-fstdarg-opt"
9176 Optimize the prologue of variadic argument functions with respect to usage of
9177 those arguments.
9178 .IP "\fB\-fsection\-anchors\fR" 4
9179 .IX Item "-fsection-anchors"
9180 Try to reduce the number of symbolic address calculations by using
9181 shared \*(L"anchor\*(R" symbols to address nearby objects.  This transformation
9182 can help to reduce the number of \s-1GOT\s0 entries and \s-1GOT\s0 accesses on some
9183 targets.
9184 .Sp
9185 For example, the implementation of the following function \f(CW\*(C`foo\*(C'\fR:
9186 .Sp
9187 .Vb 2
9188 \&        static int a, b, c;
9189 \&        int foo (void) { return a + b + c; }
9190 .Ve
9191 .Sp
9192 usually calculates the addresses of all three variables, but if you
9193 compile it with \fB\-fsection\-anchors\fR, it accesses the variables
9194 from a common anchor point instead.  The effect is similar to the
9195 following pseudocode (which isn't valid C):
9196 .Sp
9197 .Vb 5
9198 \&        int foo (void)
9199 \&        {
9200 \&          register int *xr = &x;
9201 \&          return xr[&a \- &x] + xr[&b \- &x] + xr[&c \- &x];
9202 \&        }
9203 .Ve
9204 .Sp
9205 Not all targets support this option.
9206 .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
9207 .IX Item "--param name=value"
9208 In some places, \s-1GCC\s0 uses various constants to control the amount of
9209 optimization that is done.  For example, \s-1GCC\s0 does not inline functions
9210 that contain more than a certain number of instructions.  You can
9211 control some of these constants on the command line using the
9212 \&\fB\-\-param\fR option.
9213 .Sp
9214 The names of specific parameters, and the meaning of the values, are
9215 tied to the internals of the compiler, and are subject to change
9216 without notice in future releases.
9217 .Sp
9218 In each case, the \fIvalue\fR is an integer.  The allowable choices for
9219 \&\fIname\fR are:
9220 .RS 4
9221 .IP "\fBpredictable-branch-outcome\fR" 4
9222 .IX Item "predictable-branch-outcome"
9223 When branch is predicted to be taken with probability lower than this threshold
9224 (in percent), then it is considered well predictable. The default is 10.
9225 .IP "\fBmax-crossjump-edges\fR" 4
9226 .IX Item "max-crossjump-edges"
9227 The maximum number of incoming edges to consider for cross-jumping.
9228 The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
9229 the number of edges incoming to each block.  Increasing values mean
9230 more aggressive optimization, making the compilation time increase with
9231 probably small improvement in executable size.
9232 .IP "\fBmin-crossjump-insns\fR" 4
9233 .IX Item "min-crossjump-insns"
9234 The minimum number of instructions that must be matched at the end
9235 of two blocks before cross-jumping is performed on them.  This
9236 value is ignored in the case where all instructions in the block being
9237 cross-jumped from are matched.  The default value is 5.
9238 .IP "\fBmax-grow-copy-bb-insns\fR" 4
9239 .IX Item "max-grow-copy-bb-insns"
9240 The maximum code size expansion factor when copying basic blocks
9241 instead of jumping.  The expansion is relative to a jump instruction.
9242 The default value is 8.
9243 .IP "\fBmax-goto-duplication-insns\fR" 4
9244 .IX Item "max-goto-duplication-insns"
9245 The maximum number of instructions to duplicate to a block that jumps
9246 to a computed goto.  To avoid O(N^2) behavior in a number of
9247 passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
9248 and unfactors them as late as possible.  Only computed jumps at the
9249 end of a basic blocks with no more than max-goto-duplication-insns are
9250 unfactored.  The default value is 8.
9251 .IP "\fBmax-delay-slot-insn-search\fR" 4
9252 .IX Item "max-delay-slot-insn-search"
9253 The maximum number of instructions to consider when looking for an
9254 instruction to fill a delay slot.  If more than this arbitrary number of
9255 instructions are searched, the time savings from filling the delay slot
9256 are minimal, so stop searching.  Increasing values mean more
9257 aggressive optimization, making the compilation time increase with probably
9258 small improvement in execution time.
9259 .IP "\fBmax-delay-slot-live-search\fR" 4
9260 .IX Item "max-delay-slot-live-search"
9261 When trying to fill delay slots, the maximum number of instructions to
9262 consider when searching for a block with valid live register
9263 information.  Increasing this arbitrarily chosen value means more
9264 aggressive optimization, increasing the compilation time.  This parameter
9265 should be removed when the delay slot code is rewritten to maintain the
9266 control-flow graph.
9267 .IP "\fBmax-gcse-memory\fR" 4
9268 .IX Item "max-gcse-memory"
9269 The approximate maximum amount of memory that can be allocated in
9270 order to perform the global common subexpression elimination
9271 optimization.  If more memory than specified is required, the
9272 optimization is not done.
9273 .IP "\fBmax-gcse-insertion-ratio\fR" 4
9274 .IX Item "max-gcse-insertion-ratio"
9275 If the ratio of expression insertions to deletions is larger than this value
9276 for any expression, then \s-1RTL\s0 \s-1PRE\s0 inserts or removes the expression and thus
9277 leaves partially redundant computations in the instruction stream.  The default value is 20.
9278 .IP "\fBmax-pending-list-length\fR" 4
9279 .IX Item "max-pending-list-length"
9280 The maximum number of pending dependencies scheduling allows
9281 before flushing the current state and starting over.  Large functions
9282 with few branches or calls can create excessively large lists which
9283 needlessly consume memory and resources.
9284 .IP "\fBmax-modulo-backtrack-attempts\fR" 4
9285 .IX Item "max-modulo-backtrack-attempts"
9286 The maximum number of backtrack attempts the scheduler should make
9287 when modulo scheduling a loop.  Larger values can exponentially increase
9288 compilation time.
9289 .IP "\fBmax-inline-insns-single\fR" 4
9290 .IX Item "max-inline-insns-single"
9291 Several parameters control the tree inliner used in \s-1GCC\s0.
9292 This number sets the maximum number of instructions (counted in \s-1GCC\s0's
9293 internal representation) in a single function that the tree inliner
9294 considers for inlining.  This only affects functions declared
9295 inline and methods implemented in a class declaration (\*(C+).
9296 The default value is 400.
9297 .IP "\fBmax-inline-insns-auto\fR" 4
9298 .IX Item "max-inline-insns-auto"
9299 When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
9300 a lot of functions that would otherwise not be considered for inlining
9301 by the compiler are investigated.  To those functions, a different
9302 (more restrictive) limit compared to functions declared inline can
9303 be applied.
9304 The default value is 40.
9305 .IP "\fBinline-min-speedup\fR" 4
9306 .IX Item "inline-min-speedup"
9307 When estimated performance improvement of caller + callee runtime exceeds this
9308 threshold (in precent), the function can be inlined regardless the limit on
9309 \&\fB\-\-param max-inline-insns-single\fR and \fB\-\-param
9310 max-inline-insns-auto\fR.
9311 .IP "\fBlarge-function-insns\fR" 4
9312 .IX Item "large-function-insns"
9313 The limit specifying really large functions.  For functions larger than this
9314 limit after inlining, inlining is constrained by
9315 \&\fB\-\-param large-function-growth\fR.  This parameter is useful primarily
9316 to avoid extreme compilation time caused by non-linear algorithms used by the
9317 back end.
9318 The default value is 2700.
9319 .IP "\fBlarge-function-growth\fR" 4
9320 .IX Item "large-function-growth"
9321 Specifies maximal growth of large function caused by inlining in percents.
9322 The default value is 100 which limits large function growth to 2.0 times
9323 the original size.
9324 .IP "\fBlarge-unit-insns\fR" 4
9325 .IX Item "large-unit-insns"
9326 The limit specifying large translation unit.  Growth caused by inlining of
9327 units larger than this limit is limited by \fB\-\-param inline-unit-growth\fR.
9328 For small units this might be too tight.
9329 For example, consider a unit consisting of function A
9330 that is inline and B that just calls A three times.  If B is small relative to
9331 A, the growth of unit is 300\e% and yet such inlining is very sane.  For very
9332 large units consisting of small inlineable functions, however, the overall unit
9333 growth limit is needed to avoid exponential explosion of code size.  Thus for
9334 smaller units, the size is increased to \fB\-\-param large-unit-insns\fR
9335 before applying \fB\-\-param inline-unit-growth\fR.  The default is 10000.
9336 .IP "\fBinline-unit-growth\fR" 4
9337 .IX Item "inline-unit-growth"
9338 Specifies maximal overall growth of the compilation unit caused by inlining.
9339 The default value is 20 which limits unit growth to 1.2 times the original
9340 size. Cold functions (either marked cold via an attribute or by profile
9341 feedback) are not accounted into the unit size.
9342 .IP "\fBipcp-unit-growth\fR" 4
9343 .IX Item "ipcp-unit-growth"
9344 Specifies maximal overall growth of the compilation unit caused by
9345 interprocedural constant propagation.  The default value is 10 which limits
9346 unit growth to 1.1 times the original size.
9347 .IP "\fBlarge-stack-frame\fR" 4
9348 .IX Item "large-stack-frame"
9349 The limit specifying large stack frames.  While inlining the algorithm is trying
9350 to not grow past this limit too much.  The default value is 256 bytes.
9351 .IP "\fBlarge-stack-frame-growth\fR" 4
9352 .IX Item "large-stack-frame-growth"
9353 Specifies maximal growth of large stack frames caused by inlining in percents.
9354 The default value is 1000 which limits large stack frame growth to 11 times
9355 the original size.
9356 .IP "\fBmax-inline-insns-recursive\fR" 4
9357 .IX Item "max-inline-insns-recursive"
9358 .PD 0
9359 .IP "\fBmax-inline-insns-recursive-auto\fR" 4
9360 .IX Item "max-inline-insns-recursive-auto"
9361 .PD
9362 Specifies the maximum number of instructions an out-of-line copy of a
9363 self-recursive inline
9364 function can grow into by performing recursive inlining.
9365 .Sp
9366 \&\fB\-\-param max-inline-insns-recursive\fR applies to functions
9367 declared inline.
9368 For functions not declared inline, recursive inlining
9369 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
9370 enabled; \fB\-\-param max-inline-insns-recursive-auto\fR applies instead.  The
9371 default value is 450.
9372 .IP "\fBmax-inline-recursive-depth\fR" 4
9373 .IX Item "max-inline-recursive-depth"
9374 .PD 0
9375 .IP "\fBmax-inline-recursive-depth-auto\fR" 4
9376 .IX Item "max-inline-recursive-depth-auto"
9377 .PD
9378 Specifies the maximum recursion depth used for recursive inlining.
9379 .Sp
9380 \&\fB\-\-param max-inline-recursive-depth\fR applies to functions
9381 declared inline.  For functions not declared inline, recursive inlining
9382 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
9383 enabled; \fB\-\-param max-inline-recursive-depth-auto\fR applies instead.  The
9384 default value is 8.
9385 .IP "\fBmin-inline-recursive-probability\fR" 4
9386 .IX Item "min-inline-recursive-probability"
9387 Recursive inlining is profitable only for function having deep recursion
9388 in average and can hurt for function having little recursion depth by
9389 increasing the prologue size or complexity of function body to other
9390 optimizers.
9391 .Sp
9392 When profile feedback is available (see \fB\-fprofile\-generate\fR) the actual
9393 recursion depth can be guessed from probability that function recurses via a
9394 given call expression.  This parameter limits inlining only to call expressions
9395 whose probability exceeds the given threshold (in percents).
9396 The default value is 10.
9397 .IP "\fBearly-inlining-insns\fR" 4
9398 .IX Item "early-inlining-insns"
9399 Specify growth that the early inliner can make.  In effect it increases
9400 the amount of inlining for code having a large abstraction penalty.
9401 The default value is 14.
9402 .IP "\fBmax-early-inliner-iterations\fR" 4
9403 .IX Item "max-early-inliner-iterations"
9404 Limit of iterations of the early inliner.  This basically bounds
9405 the number of nested indirect calls the early inliner can resolve.
9406 Deeper chains are still handled by late inlining.
9407 .IP "\fBcomdat-sharing-probability\fR" 4
9408 .IX Item "comdat-sharing-probability"
9409 Probability (in percent) that \*(C+ inline function with comdat visibility
9410 are shared across multiple compilation units.  The default value is 20.
9411 .IP "\fBprofile-func-internal-id\fR" 4
9412 .IX Item "profile-func-internal-id"
9413 A parameter to control whether to use function internal id in profile
9414 database lookup. If the value is 0, the compiler uses an id that
9415 is based on function assembler name and filename, which makes old profile
9416 data more tolerant to source changes such as function reordering etc.
9417 The default value is 0.
9418 .IP "\fBmin-vect-loop-bound\fR" 4
9419 .IX Item "min-vect-loop-bound"
9420 The minimum number of iterations under which loops are not vectorized
9421 when \fB\-ftree\-vectorize\fR is used.  The number of iterations after
9422 vectorization needs to be greater than the value specified by this option
9423 to allow vectorization.  The default value is 0.
9424 .IP "\fBgcse-cost-distance-ratio\fR" 4
9425 .IX Item "gcse-cost-distance-ratio"
9426 Scaling factor in calculation of maximum distance an expression
9427 can be moved by \s-1GCSE\s0 optimizations.  This is currently supported only in the
9428 code hoisting pass.  The bigger the ratio, the more aggressive code hoisting
9429 is with simple expressions, i.e., the expressions that have cost
9430 less than \fBgcse-unrestricted-cost\fR.  Specifying 0 disables
9431 hoisting of simple expressions.  The default value is 10.
9432 .IP "\fBgcse-unrestricted-cost\fR" 4
9433 .IX Item "gcse-unrestricted-cost"
9434 Cost, roughly measured as the cost of a single typical machine
9435 instruction, at which \s-1GCSE\s0 optimizations do not constrain
9436 the distance an expression can travel.  This is currently
9437 supported only in the code hoisting pass.  The lesser the cost,
9438 the more aggressive code hoisting is.  Specifying 0 
9439 allows all expressions to travel unrestricted distances.
9440 The default value is 3.
9441 .IP "\fBmax-hoist-depth\fR" 4
9442 .IX Item "max-hoist-depth"
9443 The depth of search in the dominator tree for expressions to hoist.
9444 This is used to avoid quadratic behavior in hoisting algorithm.
9445 The value of 0 does not limit on the search, but may slow down compilation
9446 of huge functions.  The default value is 30.
9447 .IP "\fBmax-tail-merge-comparisons\fR" 4
9448 .IX Item "max-tail-merge-comparisons"
9449 The maximum amount of similar bbs to compare a bb with.  This is used to
9450 avoid quadratic behavior in tree tail merging.  The default value is 10.
9451 .IP "\fBmax-tail-merge-iterations\fR" 4
9452 .IX Item "max-tail-merge-iterations"
9453 The maximum amount of iterations of the pass over the function.  This is used to
9454 limit compilation time in tree tail merging.  The default value is 2.
9455 .IP "\fBmax-unrolled-insns\fR" 4
9456 .IX Item "max-unrolled-insns"
9457 The maximum number of instructions that a loop may have to be unrolled.
9458 If a loop is unrolled, this parameter also determines how many times
9459 the loop code is unrolled.
9460 .IP "\fBmax-average-unrolled-insns\fR" 4
9461 .IX Item "max-average-unrolled-insns"
9462 The maximum number of instructions biased by probabilities of their execution
9463 that a loop may have to be unrolled.  If a loop is unrolled,
9464 this parameter also determines how many times the loop code is unrolled.
9465 .IP "\fBmax-unroll-times\fR" 4
9466 .IX Item "max-unroll-times"
9467 The maximum number of unrollings of a single loop.
9468 .IP "\fBmax-peeled-insns\fR" 4
9469 .IX Item "max-peeled-insns"
9470 The maximum number of instructions that a loop may have to be peeled.
9471 If a loop is peeled, this parameter also determines how many times
9472 the loop code is peeled.
9473 .IP "\fBmax-peel-times\fR" 4
9474 .IX Item "max-peel-times"
9475 The maximum number of peelings of a single loop.
9476 .IP "\fBmax-peel-branches\fR" 4
9477 .IX Item "max-peel-branches"
9478 The maximum number of branches on the hot path through the peeled sequence.
9479 .IP "\fBmax-completely-peeled-insns\fR" 4
9480 .IX Item "max-completely-peeled-insns"
9481 The maximum number of insns of a completely peeled loop.
9482 .IP "\fBmax-completely-peel-times\fR" 4
9483 .IX Item "max-completely-peel-times"
9484 The maximum number of iterations of a loop to be suitable for complete peeling.
9485 .IP "\fBmax-completely-peel-loop-nest-depth\fR" 4
9486 .IX Item "max-completely-peel-loop-nest-depth"
9487 The maximum depth of a loop nest suitable for complete peeling.
9488 .IP "\fBmax-unswitch-insns\fR" 4
9489 .IX Item "max-unswitch-insns"
9490 The maximum number of insns of an unswitched loop.
9491 .IP "\fBmax-unswitch-level\fR" 4
9492 .IX Item "max-unswitch-level"
9493 The maximum number of branches unswitched in a single loop.
9494 .IP "\fBlim-expensive\fR" 4
9495 .IX Item "lim-expensive"
9496 The minimum cost of an expensive expression in the loop invariant motion.
9497 .IP "\fBiv-consider-all-candidates-bound\fR" 4
9498 .IX Item "iv-consider-all-candidates-bound"
9499 Bound on number of candidates for induction variables, below which
9500 all candidates are considered for each use in induction variable
9501 optimizations.  If there are more candidates than this,
9502 only the most relevant ones are considered to avoid quadratic time complexity.
9503 .IP "\fBiv-max-considered-uses\fR" 4
9504 .IX Item "iv-max-considered-uses"
9505 The induction variable optimizations give up on loops that contain more
9506 induction variable uses.
9507 .IP "\fBiv-always-prune-cand-set-bound\fR" 4
9508 .IX Item "iv-always-prune-cand-set-bound"
9509 If the number of candidates in the set is smaller than this value,
9510 always try to remove unnecessary ivs from the set
9511 when adding a new one.
9512 .IP "\fBscev-max-expr-size\fR" 4
9513 .IX Item "scev-max-expr-size"
9514 Bound on size of expressions used in the scalar evolutions analyzer.
9515 Large expressions slow the analyzer.
9516 .IP "\fBscev-max-expr-complexity\fR" 4
9517 .IX Item "scev-max-expr-complexity"
9518 Bound on the complexity of the expressions in the scalar evolutions analyzer.
9519 Complex expressions slow the analyzer.
9520 .IP "\fBomega-max-vars\fR" 4
9521 .IX Item "omega-max-vars"
9522 The maximum number of variables in an Omega constraint system.
9523 The default value is 128.
9524 .IP "\fBomega-max-geqs\fR" 4
9525 .IX Item "omega-max-geqs"
9526 The maximum number of inequalities in an Omega constraint system.
9527 The default value is 256.
9528 .IP "\fBomega-max-eqs\fR" 4
9529 .IX Item "omega-max-eqs"
9530 The maximum number of equalities in an Omega constraint system.
9531 The default value is 128.
9532 .IP "\fBomega-max-wild-cards\fR" 4
9533 .IX Item "omega-max-wild-cards"
9534 The maximum number of wildcard variables that the Omega solver is
9535 able to insert.  The default value is 18.
9536 .IP "\fBomega-hash-table-size\fR" 4
9537 .IX Item "omega-hash-table-size"
9538 The size of the hash table in the Omega solver.  The default value is
9539 550.
9540 .IP "\fBomega-max-keys\fR" 4
9541 .IX Item "omega-max-keys"
9542 The maximal number of keys used by the Omega solver.  The default
9543 value is 500.
9544 .IP "\fBomega-eliminate-redundant-constraints\fR" 4
9545 .IX Item "omega-eliminate-redundant-constraints"
9546 When set to 1, use expensive methods to eliminate all redundant
9547 constraints.  The default value is 0.
9548 .IP "\fBvect-max-version-for-alignment-checks\fR" 4
9549 .IX Item "vect-max-version-for-alignment-checks"
9550 The maximum number of run-time checks that can be performed when
9551 doing loop versioning for alignment in the vectorizer.
9552 .IP "\fBvect-max-version-for-alias-checks\fR" 4
9553 .IX Item "vect-max-version-for-alias-checks"
9554 The maximum number of run-time checks that can be performed when
9555 doing loop versioning for alias in the vectorizer.
9556 .IP "\fBvect-max-peeling-for-alignment\fR" 4
9557 .IX Item "vect-max-peeling-for-alignment"
9558 The maximum number of loop peels to enhance access alignment
9559 for vectorizer. Value \-1 means 'no limit'.
9560 .IP "\fBmax-iterations-to-track\fR" 4
9561 .IX Item "max-iterations-to-track"
9562 The maximum number of iterations of a loop the brute-force algorithm
9563 for analysis of the number of iterations of the loop tries to evaluate.
9564 .IP "\fBhot-bb-count-ws-permille\fR" 4
9565 .IX Item "hot-bb-count-ws-permille"
9566 A basic block profile count is considered hot if it contributes to 
9567 the given permillage (i.e. 0...1000) of the entire profiled execution.
9568 .IP "\fBhot-bb-frequency-fraction\fR" 4
9569 .IX Item "hot-bb-frequency-fraction"
9570 Select fraction of the entry block frequency of executions of basic block in
9571 function given basic block needs to have to be considered hot.
9572 .IP "\fBmax-predicted-iterations\fR" 4
9573 .IX Item "max-predicted-iterations"
9574 The maximum number of loop iterations we predict statically.  This is useful
9575 in cases where a function contains a single loop with known bound and
9576 another loop with unknown bound.
9577 The known number of iterations is predicted correctly, while
9578 the unknown number of iterations average to roughly 10.  This means that the
9579 loop without bounds appears artificially cold relative to the other one.
9580 .IP "\fBbuiltin-expect-probability\fR" 4
9581 .IX Item "builtin-expect-probability"
9582 Control the probability of the expression having the specified value. This
9583 parameter takes a percentage (i.e. 0 ... 100) as input.
9584 The default probability of 90 is obtained empirically.
9585 .IP "\fBalign-threshold\fR" 4
9586 .IX Item "align-threshold"
9587 Select fraction of the maximal frequency of executions of a basic block in
9588 a function to align the basic block.
9589 .IP "\fBalign-loop-iterations\fR" 4
9590 .IX Item "align-loop-iterations"
9591 A loop expected to iterate at least the selected number of iterations is
9592 aligned.
9593 .IP "\fBtracer-dynamic-coverage\fR" 4
9594 .IX Item "tracer-dynamic-coverage"
9595 .PD 0
9596 .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
9597 .IX Item "tracer-dynamic-coverage-feedback"
9598 .PD
9599 This value is used to limit superblock formation once the given percentage of
9600 executed instructions is covered.  This limits unnecessary code size
9601 expansion.
9602 .Sp
9603 The \fBtracer-dynamic-coverage-feedback\fR parameter
9604 is used only when profile
9605 feedback is available.  The real profiles (as opposed to statically estimated
9606 ones) are much less balanced allowing the threshold to be larger value.
9607 .IP "\fBtracer-max-code-growth\fR" 4
9608 .IX Item "tracer-max-code-growth"
9609 Stop tail duplication once code growth has reached given percentage.  This is
9610 a rather artificial limit, as most of the duplicates are eliminated later in
9611 cross jumping, so it may be set to much higher values than is the desired code
9612 growth.
9613 .IP "\fBtracer-min-branch-ratio\fR" 4
9614 .IX Item "tracer-min-branch-ratio"
9615 Stop reverse growth when the reverse probability of best edge is less than this
9616 threshold (in percent).
9617 .IP "\fBtracer-min-branch-ratio\fR" 4
9618 .IX Item "tracer-min-branch-ratio"
9619 .PD 0
9620 .IP "\fBtracer-min-branch-ratio-feedback\fR" 4
9621 .IX Item "tracer-min-branch-ratio-feedback"
9622 .PD
9623 Stop forward growth if the best edge has probability lower than this
9624 threshold.
9625 .Sp
9626 Similarly to \fBtracer-dynamic-coverage\fR two values are present, one for
9627 compilation for profile feedback and one for compilation without.  The value
9628 for compilation with profile feedback needs to be more conservative (higher) in
9629 order to make tracer effective.
9630 .IP "\fBmax-cse-path-length\fR" 4
9631 .IX Item "max-cse-path-length"
9632 The maximum number of basic blocks on path that \s-1CSE\s0 considers.
9633 The default is 10.
9634 .IP "\fBmax-cse-insns\fR" 4
9635 .IX Item "max-cse-insns"
9636 The maximum number of instructions \s-1CSE\s0 processes before flushing.
9637 The default is 1000.
9638 .IP "\fBggc-min-expand\fR" 4
9639 .IX Item "ggc-min-expand"
9640 \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation.  This
9641 parameter specifies the minimum percentage by which the garbage
9642 collector's heap should be allowed to expand between collections.
9643 Tuning this may improve compilation speed; it has no effect on code
9644 generation.
9645 .Sp
9646 The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
9647 \&\s-1RAM\s0 >= 1GB.  If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\s0\*(R" is
9648 the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR.  If
9649 \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
9650 bound of 30% is used.  Setting this parameter and
9651 \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
9652 every opportunity.  This is extremely slow, but can be useful for
9653 debugging.
9654 .IP "\fBggc-min-heapsize\fR" 4
9655 .IX Item "ggc-min-heapsize"
9656 Minimum size of the garbage collector's heap before it begins bothering
9657 to collect garbage.  The first collection occurs after the heap expands
9658 by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR.  Again,
9659 tuning this may improve compilation speed, and has no effect on code
9660 generation.
9661 .Sp
9662 The default is the smaller of \s-1RAM/8\s0, \s-1RLIMIT_RSS\s0, or a limit that
9663 tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
9664 with a lower bound of 4096 (four megabytes) and an upper bound of
9665 131072 (128 megabytes).  If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
9666 particular platform, the lower bound is used.  Setting this parameter
9667 very large effectively disables garbage collection.  Setting this
9668 parameter and \fBggc-min-expand\fR to zero causes a full collection
9669 to occur at every opportunity.
9670 .IP "\fBmax-reload-search-insns\fR" 4
9671 .IX Item "max-reload-search-insns"
9672 The maximum number of instruction reload should look backward for equivalent
9673 register.  Increasing values mean more aggressive optimization, making the
9674 compilation time increase with probably slightly better performance.
9675 The default value is 100.
9676 .IP "\fBmax-cselib-memory-locations\fR" 4
9677 .IX Item "max-cselib-memory-locations"
9678 The maximum number of memory locations cselib should take into account.
9679 Increasing values mean more aggressive optimization, making the compilation time
9680 increase with probably slightly better performance.  The default value is 500.
9681 .IP "\fBreorder-blocks-duplicate\fR" 4
9682 .IX Item "reorder-blocks-duplicate"
9683 .PD 0
9684 .IP "\fBreorder-blocks-duplicate-feedback\fR" 4
9685 .IX Item "reorder-blocks-duplicate-feedback"
9686 .PD
9687 Used by the basic block reordering pass to decide whether to use unconditional
9688 branch or duplicate the code on its destination.  Code is duplicated when its
9689 estimated size is smaller than this value multiplied by the estimated size of
9690 unconditional jump in the hot spots of the program.
9691 .Sp
9692 The \fBreorder-block-duplicate-feedback\fR parameter
9693 is used only when profile
9694 feedback is available.  It may be set to higher values than
9695 \&\fBreorder-block-duplicate\fR since information about the hot spots is more
9696 accurate.
9697 .IP "\fBmax-sched-ready-insns\fR" 4
9698 .IX Item "max-sched-ready-insns"
9699 The maximum number of instructions ready to be issued the scheduler should
9700 consider at any given time during the first scheduling pass.  Increasing
9701 values mean more thorough searches, making the compilation time increase
9702 with probably little benefit.  The default value is 100.
9703 .IP "\fBmax-sched-region-blocks\fR" 4
9704 .IX Item "max-sched-region-blocks"
9705 The maximum number of blocks in a region to be considered for
9706 interblock scheduling.  The default value is 10.
9707 .IP "\fBmax-pipeline-region-blocks\fR" 4
9708 .IX Item "max-pipeline-region-blocks"
9709 The maximum number of blocks in a region to be considered for
9710 pipelining in the selective scheduler.  The default value is 15.
9711 .IP "\fBmax-sched-region-insns\fR" 4
9712 .IX Item "max-sched-region-insns"
9713 The maximum number of insns in a region to be considered for
9714 interblock scheduling.  The default value is 100.
9715 .IP "\fBmax-pipeline-region-insns\fR" 4
9716 .IX Item "max-pipeline-region-insns"
9717 The maximum number of insns in a region to be considered for
9718 pipelining in the selective scheduler.  The default value is 200.
9719 .IP "\fBmin-spec-prob\fR" 4
9720 .IX Item "min-spec-prob"
9721 The minimum probability (in percents) of reaching a source block
9722 for interblock speculative scheduling.  The default value is 40.
9723 .IP "\fBmax-sched-extend-regions-iters\fR" 4
9724 .IX Item "max-sched-extend-regions-iters"
9725 The maximum number of iterations through \s-1CFG\s0 to extend regions.
9726 A value of 0 (the default) disables region extensions.
9727 .IP "\fBmax-sched-insn-conflict-delay\fR" 4
9728 .IX Item "max-sched-insn-conflict-delay"
9729 The maximum conflict delay for an insn to be considered for speculative motion.
9730 The default value is 3.
9731 .IP "\fBsched-spec-prob-cutoff\fR" 4
9732 .IX Item "sched-spec-prob-cutoff"
9733 The minimal probability of speculation success (in percents), so that
9734 speculative insns are scheduled.
9735 The default value is 40.
9736 .IP "\fBsched-spec-state-edge-prob-cutoff\fR" 4
9737 .IX Item "sched-spec-state-edge-prob-cutoff"
9738 The minimum probability an edge must have for the scheduler to save its
9739 state across it.
9740 The default value is 10.
9741 .IP "\fBsched-mem-true-dep-cost\fR" 4
9742 .IX Item "sched-mem-true-dep-cost"
9743 Minimal distance (in \s-1CPU\s0 cycles) between store and load targeting same
9744 memory locations.  The default value is 1.
9745 .IP "\fBselsched-max-lookahead\fR" 4
9746 .IX Item "selsched-max-lookahead"
9747 The maximum size of the lookahead window of selective scheduling.  It is a
9748 depth of search for available instructions.
9749 The default value is 50.
9750 .IP "\fBselsched-max-sched-times\fR" 4
9751 .IX Item "selsched-max-sched-times"
9752 The maximum number of times that an instruction is scheduled during
9753 selective scheduling.  This is the limit on the number of iterations
9754 through which the instruction may be pipelined.  The default value is 2.
9755 .IP "\fBselsched-max-insns-to-rename\fR" 4
9756 .IX Item "selsched-max-insns-to-rename"
9757 The maximum number of best instructions in the ready list that are considered
9758 for renaming in the selective scheduler.  The default value is 2.
9759 .IP "\fBsms-min-sc\fR" 4
9760 .IX Item "sms-min-sc"
9761 The minimum value of stage count that swing modulo scheduler
9762 generates.  The default value is 2.
9763 .IP "\fBmax-last-value-rtl\fR" 4
9764 .IX Item "max-last-value-rtl"
9765 The maximum size measured as number of RTLs that can be recorded in an expression
9766 in combiner for a pseudo register as last known value of that register.  The default
9767 is 10000.
9768 .IP "\fBmax-combine-insns\fR" 4
9769 .IX Item "max-combine-insns"
9770 The maximum number of instructions the \s-1RTL\s0 combiner tries to combine.
9771 The default value is 2 at \fB\-Og\fR and 4 otherwise.
9772 .IP "\fBinteger-share-limit\fR" 4
9773 .IX Item "integer-share-limit"
9774 Small integer constants can use a shared data structure, reducing the
9775 compiler's memory usage and increasing its speed.  This sets the maximum
9776 value of a shared integer constant.  The default value is 256.
9777 .IP "\fBssp-buffer-size\fR" 4
9778 .IX Item "ssp-buffer-size"
9779 The minimum size of buffers (i.e. arrays) that receive stack smashing
9780 protection when \fB\-fstack\-protection\fR is used.
9781 .IP "\fBmin-size-for-stack-sharing\fR" 4
9782 .IX Item "min-size-for-stack-sharing"
9783 The minimum size of variables taking part in stack slot sharing when not
9784 optimizing. The default value is 32.
9785 .IP "\fBmax-jump-thread-duplication-stmts\fR" 4
9786 .IX Item "max-jump-thread-duplication-stmts"
9787 Maximum number of statements allowed in a block that needs to be
9788 duplicated when threading jumps.
9789 .IP "\fBmax-fields-for-field-sensitive\fR" 4
9790 .IX Item "max-fields-for-field-sensitive"
9791 Maximum number of fields in a structure treated in
9792 a field sensitive manner during pointer analysis.  The default is zero
9793 for \fB\-O0\fR and \fB\-O1\fR,
9794 and 100 for \fB\-Os\fR, \fB\-O2\fR, and \fB\-O3\fR.
9795 .IP "\fBprefetch-latency\fR" 4
9796 .IX Item "prefetch-latency"
9797 Estimate on average number of instructions that are executed before
9798 prefetch finishes.  The distance prefetched ahead is proportional
9799 to this constant.  Increasing this number may also lead to less
9800 streams being prefetched (see \fBsimultaneous-prefetches\fR).
9801 .IP "\fBsimultaneous-prefetches\fR" 4
9802 .IX Item "simultaneous-prefetches"
9803 Maximum number of prefetches that can run at the same time.
9804 .IP "\fBl1\-cache\-line\-size\fR" 4
9805 .IX Item "l1-cache-line-size"
9806 The size of cache line in L1 cache, in bytes.
9807 .IP "\fBl1\-cache\-size\fR" 4
9808 .IX Item "l1-cache-size"
9809 The size of L1 cache, in kilobytes.
9810 .IP "\fBl2\-cache\-size\fR" 4
9811 .IX Item "l2-cache-size"
9812 The size of L2 cache, in kilobytes.
9813 .IP "\fBmin-insn-to-prefetch-ratio\fR" 4
9814 .IX Item "min-insn-to-prefetch-ratio"
9815 The minimum ratio between the number of instructions and the
9816 number of prefetches to enable prefetching in a loop.
9817 .IP "\fBprefetch-min-insn-to-mem-ratio\fR" 4
9818 .IX Item "prefetch-min-insn-to-mem-ratio"
9819 The minimum ratio between the number of instructions and the
9820 number of memory references to enable prefetching in a loop.
9821 .IP "\fBuse-canonical-types\fR" 4
9822 .IX Item "use-canonical-types"
9823 Whether the compiler should use the \*(L"canonical\*(R" type system.  By
9824 default, this should always be 1, which uses a more efficient internal
9825 mechanism for comparing types in \*(C+ and Objective\-\*(C+.  However, if
9826 bugs in the canonical type system are causing compilation failures,
9827 set this value to 0 to disable canonical types.
9828 .IP "\fBswitch-conversion-max-branch-ratio\fR" 4
9829 .IX Item "switch-conversion-max-branch-ratio"
9830 Switch initialization conversion refuses to create arrays that are
9831 bigger than \fBswitch-conversion-max-branch-ratio\fR times the number of
9832 branches in the switch.
9833 .IP "\fBmax-partial-antic-length\fR" 4
9834 .IX Item "max-partial-antic-length"
9835 Maximum length of the partial antic set computed during the tree
9836 partial redundancy elimination optimization (\fB\-ftree\-pre\fR) when
9837 optimizing at \fB\-O3\fR and above.  For some sorts of source code
9838 the enhanced partial redundancy elimination optimization can run away,
9839 consuming all of the memory available on the host machine.  This
9840 parameter sets a limit on the length of the sets that are computed,
9841 which prevents the runaway behavior.  Setting a value of 0 for
9842 this parameter allows an unlimited set length.
9843 .IP "\fBsccvn-max-scc-size\fR" 4
9844 .IX Item "sccvn-max-scc-size"
9845 Maximum size of a strongly connected component (\s-1SCC\s0) during \s-1SCCVN\s0
9846 processing.  If this limit is hit, \s-1SCCVN\s0 processing for the whole
9847 function is not done and optimizations depending on it are
9848 disabled.  The default maximum \s-1SCC\s0 size is 10000.
9849 .IP "\fBsccvn-max-alias-queries-per-access\fR" 4
9850 .IX Item "sccvn-max-alias-queries-per-access"
9851 Maximum number of alias-oracle queries we perform when looking for
9852 redundancies for loads and stores.  If this limit is hit the search
9853 is aborted and the load or store is not considered redundant.  The
9854 number of queries is algorithmically limited to the number of
9855 stores on all paths from the load to the function entry.
9856 The default maxmimum number of queries is 1000.
9857 .IP "\fBira-max-loops-num\fR" 4
9858 .IX Item "ira-max-loops-num"
9859 \&\s-1IRA\s0 uses regional register allocation by default.  If a function
9860 contains more loops than the number given by this parameter, only at most
9861 the given number of the most frequently-executed loops form regions
9862 for regional register allocation.  The default value of the
9863 parameter is 100.
9864 .IP "\fBira-max-conflict-table-size\fR" 4
9865 .IX Item "ira-max-conflict-table-size"
9866 Although \s-1IRA\s0 uses a sophisticated algorithm to compress the conflict
9867 table, the table can still require excessive amounts of memory for
9868 huge functions.  If the conflict table for a function could be more
9869 than the size in \s-1MB\s0 given by this parameter, the register allocator
9870 instead uses a faster, simpler, and lower-quality
9871 algorithm that does not require building a pseudo-register conflict table.  
9872 The default value of the parameter is 2000.
9873 .IP "\fBira-loop-reserved-regs\fR" 4
9874 .IX Item "ira-loop-reserved-regs"
9875 \&\s-1IRA\s0 can be used to evaluate more accurate register pressure in loops
9876 for decisions to move loop invariants (see \fB\-O3\fR).  The number
9877 of available registers reserved for some other purposes is given
9878 by this parameter.  The default value of the parameter is 2, which is
9879 the minimal number of registers needed by typical instructions.
9880 This value is the best found from numerous experiments.
9881 .IP "\fBlra-inheritance-ebb-probability-cutoff\fR" 4
9882 .IX Item "lra-inheritance-ebb-probability-cutoff"
9883 \&\s-1LRA\s0 tries to reuse values reloaded in registers in subsequent insns.
9884 This optimization is called inheritance.  \s-1EBB\s0 is used as a region to
9885 do this optimization.  The parameter defines a minimal fall-through
9886 edge probability in percentage used to add \s-1BB\s0 to inheritance \s-1EBB\s0 in
9887 \&\s-1LRA\s0.  The default value of the parameter is 40.  The value was chosen
9888 from numerous runs of \s-1SPEC2000\s0 on x86\-64.
9889 .IP "\fBloop-invariant-max-bbs-in-loop\fR" 4
9890 .IX Item "loop-invariant-max-bbs-in-loop"
9891 Loop invariant motion can be very expensive, both in compilation time and
9892 in amount of needed compile-time memory, with very large loops.  Loops
9893 with more basic blocks than this parameter won't have loop invariant
9894 motion optimization performed on them.  The default value of the
9895 parameter is 1000 for \fB\-O1\fR and 10000 for \fB\-O2\fR and above.
9896 .IP "\fBloop-max-datarefs-for-datadeps\fR" 4
9897 .IX Item "loop-max-datarefs-for-datadeps"
9898 Building data dapendencies is expensive for very large loops.  This
9899 parameter limits the number of data references in loops that are
9900 considered for data dependence analysis.  These large loops are no
9901 handled by the optimizations using loop data dependencies.
9902 The default value is 1000.
9903 .IP "\fBmax-vartrack-size\fR" 4
9904 .IX Item "max-vartrack-size"
9905 Sets a maximum number of hash table slots to use during variable
9906 tracking dataflow analysis of any function.  If this limit is exceeded
9907 with variable tracking at assignments enabled, analysis for that
9908 function is retried without it, after removing all debug insns from
9909 the function.  If the limit is exceeded even without debug insns, var
9910 tracking analysis is completely disabled for the function.  Setting
9911 the parameter to zero makes it unlimited.
9912 .IP "\fBmax-vartrack-expr-depth\fR" 4
9913 .IX Item "max-vartrack-expr-depth"
9914 Sets a maximum number of recursion levels when attempting to map
9915 variable names or debug temporaries to value expressions.  This trades
9916 compilation time for more complete debug information.  If this is set too
9917 low, value expressions that are available and could be represented in
9918 debug information may end up not being used; setting this higher may
9919 enable the compiler to find more complex debug expressions, but compile
9920 time and memory use may grow.  The default is 12.
9921 .IP "\fBmin-nondebug-insn-uid\fR" 4
9922 .IX Item "min-nondebug-insn-uid"
9923 Use uids starting at this parameter for nondebug insns.  The range below
9924 the parameter is reserved exclusively for debug insns created by
9925 \&\fB\-fvar\-tracking\-assignments\fR, but debug insns may get
9926 (non-overlapping) uids above it if the reserved range is exhausted.
9927 .IP "\fBipa-sra-ptr-growth-factor\fR" 4
9928 .IX Item "ipa-sra-ptr-growth-factor"
9929 IPA-SRA replaces a pointer to an aggregate with one or more new
9930 parameters only when their cumulative size is less or equal to
9931 \&\fBipa-sra-ptr-growth-factor\fR times the size of the original
9932 pointer parameter.
9933 .IP "\fBsra-max-scalarization-size-Ospeed\fR" 4
9934 .IX Item "sra-max-scalarization-size-Ospeed"
9935 .PD 0
9936 .IP "\fBsra-max-scalarization-size-Osize\fR" 4
9937 .IX Item "sra-max-scalarization-size-Osize"
9938 .PD
9939 The two Scalar Reduction of Aggregates passes (\s-1SRA\s0 and IPA-SRA) aim to
9940 replace scalar parts of aggregates with uses of independent scalar
9941 variables.  These parameters control the maximum size, in storage units,
9942 of aggregate which is considered for replacement when compiling for
9943 speed
9944 (\fBsra-max-scalarization-size-Ospeed\fR) or size
9945 (\fBsra-max-scalarization-size-Osize\fR) respectively.
9946 .IP "\fBtm-max-aggregate-size\fR" 4
9947 .IX Item "tm-max-aggregate-size"
9948 When making copies of thread-local variables in a transaction, this
9949 parameter specifies the size in bytes after which variables are
9950 saved with the logging functions as opposed to save/restore code
9951 sequence pairs.  This option only applies when using
9952 \&\fB\-fgnu\-tm\fR.
9953 .IP "\fBgraphite-max-nb-scop-params\fR" 4
9954 .IX Item "graphite-max-nb-scop-params"
9955 To avoid exponential effects in the Graphite loop transforms, the
9956 number of parameters in a Static Control Part (SCoP) is bounded.  The
9957 default value is 10 parameters.  A variable whose value is unknown at
9958 compilation time and defined outside a SCoP is a parameter of the SCoP.
9959 .IP "\fBgraphite-max-bbs-per-function\fR" 4
9960 .IX Item "graphite-max-bbs-per-function"
9961 To avoid exponential effects in the detection of SCoPs, the size of
9962 the functions analyzed by Graphite is bounded.  The default value is
9963 100 basic blocks.
9964 .IP "\fBloop-block-tile-size\fR" 4
9965 .IX Item "loop-block-tile-size"
9966 Loop blocking or strip mining transforms, enabled with
9967 \&\fB\-floop\-block\fR or \fB\-floop\-strip\-mine\fR, strip mine each
9968 loop in the loop nest by a given number of iterations.  The strip
9969 length can be changed using the \fBloop-block-tile-size\fR
9970 parameter.  The default value is 51 iterations.
9971 .IP "\fBloop-unroll-jam-size\fR" 4
9972 .IX Item "loop-unroll-jam-size"
9973 Specify the unroll factor for the \fB\-floop\-unroll\-and\-jam\fR option.  The 
9974 default value is 4.
9975 .IP "\fBloop-unroll-jam-depth\fR" 4
9976 .IX Item "loop-unroll-jam-depth"
9977 Specify the dimension to be unrolled (counting from the most inner loop)
9978 for the  \fB\-floop\-unroll\-and\-jam\fR.  The default value is 2.
9979 .IP "\fBipa-cp-value-list-size\fR" 4
9980 .IX Item "ipa-cp-value-list-size"
9981 IPA-CP attempts to track all possible values and types passed to a function's
9982 parameter in order to propagate them and perform devirtualization.
9983 \&\fBipa-cp-value-list-size\fR is the maximum number of values and types it
9984 stores per one formal parameter of a function.
9985 .IP "\fBipa-cp-eval-threshold\fR" 4
9986 .IX Item "ipa-cp-eval-threshold"
9987 IPA-CP calculates its own score of cloning profitability heuristics
9988 and performs those cloning opportunities with scores that exceed
9989 \&\fBipa-cp-eval-threshold\fR.
9990 .IP "\fBipa-cp-recursion-penalty\fR" 4
9991 .IX Item "ipa-cp-recursion-penalty"
9992 Percentage penalty the recursive functions will receive when they
9993 are evaluated for cloning.
9994 .IP "\fBipa-cp-single-call-penalty\fR" 4
9995 .IX Item "ipa-cp-single-call-penalty"
9996 Percentage penalty functions containg a single call to another
9997 function will receive when they are evaluated for cloning.
9998 .IP "\fBipa-max-agg-items\fR" 4
9999 .IX Item "ipa-max-agg-items"
10000 IPA-CP is also capable to propagate a number of scalar values passed
10001 in an aggregate. \fBipa-max-agg-items\fR controls the maximum
10002 number of such values per one parameter.
10003 .IP "\fBipa-cp-loop-hint-bonus\fR" 4
10004 .IX Item "ipa-cp-loop-hint-bonus"
10005 When IPA-CP determines that a cloning candidate would make the number
10006 of iterations of a loop known, it adds a bonus of
10007 \&\fBipa-cp-loop-hint-bonus\fR to the profitability score of
10008 the candidate.
10009 .IP "\fBipa-cp-array-index-hint-bonus\fR" 4
10010 .IX Item "ipa-cp-array-index-hint-bonus"
10011 When IPA-CP determines that a cloning candidate would make the index of
10012 an array access known, it adds a bonus of
10013 \&\fBipa-cp-array-index-hint-bonus\fR to the profitability
10014 score of the candidate.
10015 .IP "\fBipa-max-aa-steps\fR" 4
10016 .IX Item "ipa-max-aa-steps"
10017 During its analysis of function bodies, IPA-CP employs alias analysis
10018 in order to track values pointed to by function parameters.  In order
10019 not spend too much time analyzing huge functions, it gives up and
10020 consider all memory clobbered after examining
10021 \&\fBipa-max-aa-steps\fR statements modifying memory.
10022 .IP "\fBlto-partitions\fR" 4
10023 .IX Item "lto-partitions"
10024 Specify desired number of partitions produced during \s-1WHOPR\s0 compilation.
10025 The number of partitions should exceed the number of CPUs used for compilation.
10026 The default value is 32.
10027 .IP "\fBlto-minpartition\fR" 4
10028 .IX Item "lto-minpartition"
10029 Size of minimal partition for \s-1WHOPR\s0 (in estimated instructions).
10030 This prevents expenses of splitting very small programs into too many
10031 partitions.
10032 .IP "\fBcxx-max-namespaces-for-diagnostic-help\fR" 4
10033 .IX Item "cxx-max-namespaces-for-diagnostic-help"
10034 The maximum number of namespaces to consult for suggestions when \*(C+
10035 name lookup fails for an identifier.  The default is 1000.
10036 .IP "\fBsink-frequency-threshold\fR" 4
10037 .IX Item "sink-frequency-threshold"
10038 The maximum relative execution frequency (in percents) of the target block
10039 relative to a statement's original block to allow statement sinking of a
10040 statement.  Larger numbers result in more aggressive statement sinking.
10041 The default value is 75.  A small positive adjustment is applied for
10042 statements with memory operands as those are even more profitable so sink.
10043 .IP "\fBmax-stores-to-sink\fR" 4
10044 .IX Item "max-stores-to-sink"
10045 The maximum number of conditional stores paires that can be sunk.  Set to 0
10046 if either vectorization (\fB\-ftree\-vectorize\fR) or if-conversion
10047 (\fB\-ftree\-loop\-if\-convert\fR) is disabled.  The default is 2.
10048 .IP "\fBallow-store-data-races\fR" 4
10049 .IX Item "allow-store-data-races"
10050 Allow optimizers to introduce new data races on stores.
10051 Set to 1 to allow, otherwise to 0.  This option is enabled by default
10052 at optimization level \fB\-Ofast\fR.
10053 .IP "\fBcase-values-threshold\fR" 4
10054 .IX Item "case-values-threshold"
10055 The smallest number of different values for which it is best to use a
10056 jump-table instead of a tree of conditional branches.  If the value is
10057 0, use the default for the machine.  The default is 0.
10058 .IP "\fBtree-reassoc-width\fR" 4
10059 .IX Item "tree-reassoc-width"
10060 Set the maximum number of instructions executed in parallel in
10061 reassociated tree. This parameter overrides target dependent
10062 heuristics used by default if has non zero value.
10063 .IP "\fBsched-pressure-algorithm\fR" 4
10064 .IX Item "sched-pressure-algorithm"
10065 Choose between the two available implementations of
10066 \&\fB\-fsched\-pressure\fR.  Algorithm 1 is the original implementation
10067 and is the more likely to prevent instructions from being reordered.
10068 Algorithm 2 was designed to be a compromise between the relatively
10069 conservative approach taken by algorithm 1 and the rather aggressive
10070 approach taken by the default scheduler.  It relies more heavily on
10071 having a regular register file and accurate register pressure classes.
10072 See \fIhaifa\-sched.c\fR in the \s-1GCC\s0 sources for more details.
10073 .Sp
10074 The default choice depends on the target.
10075 .IP "\fBmax-slsr-cand-scan\fR" 4
10076 .IX Item "max-slsr-cand-scan"
10077 Set the maximum number of existing candidates that are considered when
10078 seeking a basis for a new straight-line strength reduction candidate.
10079 .IP "\fBasan-globals\fR" 4
10080 .IX Item "asan-globals"
10081 Enable buffer overflow detection for global objects.  This kind
10082 of protection is enabled by default if you are using
10083 \&\fB\-fsanitize=address\fR option.
10084 To disable global objects protection use \fB\-\-param asan\-globals=0\fR.
10085 .IP "\fBasan-stack\fR" 4
10086 .IX Item "asan-stack"
10087 Enable buffer overflow detection for stack objects.  This kind of
10088 protection is enabled by default when using\fB\-fsanitize=address\fR.
10089 To disable stack protection use \fB\-\-param asan\-stack=0\fR option.
10090 .IP "\fBasan-instrument-reads\fR" 4
10091 .IX Item "asan-instrument-reads"
10092 Enable buffer overflow detection for memory reads.  This kind of
10093 protection is enabled by default when using \fB\-fsanitize=address\fR.
10094 To disable memory reads protection use
10095 \&\fB\-\-param asan\-instrument\-reads=0\fR.
10096 .IP "\fBasan-instrument-writes\fR" 4
10097 .IX Item "asan-instrument-writes"
10098 Enable buffer overflow detection for memory writes.  This kind of
10099 protection is enabled by default when using \fB\-fsanitize=address\fR.
10100 To disable memory writes protection use
10101 \&\fB\-\-param asan\-instrument\-writes=0\fR option.
10102 .IP "\fBasan-memintrin\fR" 4
10103 .IX Item "asan-memintrin"
10104 Enable detection for built-in functions.  This kind of protection
10105 is enabled by default when using \fB\-fsanitize=address\fR.
10106 To disable built-in functions protection use
10107 \&\fB\-\-param asan\-memintrin=0\fR.
10108 .IP "\fBasan-use-after-return\fR" 4
10109 .IX Item "asan-use-after-return"
10110 Enable detection of use-after-return.  This kind of protection
10111 is enabled by default when using \fB\-fsanitize=address\fR option.
10112 To disable use-after-return detection use 
10113 \&\fB\-\-param asan\-use\-after\-return=0\fR.
10114 .IP "\fBasan-instrumentation-with-call-threshold\fR" 4
10115 .IX Item "asan-instrumentation-with-call-threshold"
10116 If number of memory accesses in function being instrumented
10117 is greater or equal to this number, use callbacks instead of inline checks.
10118 E.g. to disable inline code use
10119 \&\fB\-\-param asan\-instrumentation\-with\-call\-threshold=0\fR.
10120 .IP "\fBchkp-max-ctor-size\fR" 4
10121 .IX Item "chkp-max-ctor-size"
10122 Static constructors generated by Pointer Bounds Checker may become very
10123 large and significantly increase compile time at optimization level
10124 \&\fB\-O1\fR and higher.  This parameter is a maximum nubmer of statements
10125 in a single generated constructor.  Default value is 5000.
10126 .IP "\fBmax-fsm-thread-path-insns\fR" 4
10127 .IX Item "max-fsm-thread-path-insns"
10128 Maximum number of instructions to copy when duplicating blocks on a
10129 finite state automaton jump thread path.  The default is 100.
10130 .IP "\fBmax-fsm-thread-length\fR" 4
10131 .IX Item "max-fsm-thread-length"
10132 Maximum number of basic blocks on a finite state automaton jump thread
10133 path.  The default is 10.
10134 .IP "\fBmax-fsm-thread-paths\fR" 4
10135 .IX Item "max-fsm-thread-paths"
10136 Maximum number of new jump thread paths to create for a finite state
10137 automaton.  The default is 50.
10138 .RE
10139 .RS 4
10140 .RE
10141 .Sh "Options Controlling the Preprocessor"
10142 .IX Subsection "Options Controlling the Preprocessor"
10143 These options control the C preprocessor, which is run on each C source
10144 file before actual compilation.
10145 .PP
10146 If you use the \fB\-E\fR option, nothing is done except preprocessing.
10147 Some of these options make sense only together with \fB\-E\fR because
10148 they cause the preprocessor output to be unsuitable for actual
10149 compilation.
10150 .IP "\fB\-Wp,\fR\fIoption\fR" 4
10151 .IX Item "-Wp,option"
10152 You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
10153 and pass \fIoption\fR directly through to the preprocessor.  If
10154 \&\fIoption\fR contains commas, it is split into multiple options at the
10155 commas.  However, many options are modified, translated or interpreted
10156 by the compiler driver before being passed to the preprocessor, and
10157 \&\fB\-Wp\fR forcibly bypasses this phase.  The preprocessor's direct
10158 interface is undocumented and subject to change, so whenever possible
10159 you should avoid using \fB\-Wp\fR and let the driver handle the
10160 options instead.
10161 .IP "\fB\-Xpreprocessor\fR \fIoption\fR" 4
10162 .IX Item "-Xpreprocessor option"
10163 Pass \fIoption\fR as an option to the preprocessor.  You can use this to
10164 supply system-specific preprocessor options that \s-1GCC\s0 does not 
10165 recognize.
10166 .Sp
10167 If you want to pass an option that takes an argument, you must use
10168 \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
10169 .IP "\fB\-no\-integrated\-cpp\fR" 4
10170 .IX Item "-no-integrated-cpp"
10171 Perform preprocessing as a separate pass before compilation.
10172 By default, \s-1GCC\s0 performs preprocessing as an integrated part of
10173 input tokenization and parsing.
10174 If this option is provided, the appropriate language front end
10175 (\fBcc1\fR, \fBcc1plus\fR, or \fBcc1obj\fR for C, \*(C+,
10176 and Objective-C, respectively) is instead invoked twice,
10177 once for preprocessing only and once for actual compilation
10178 of the preprocessed input.
10179 This option may be useful in conjunction with the \fB\-B\fR or
10180 \&\fB\-wrapper\fR options to specify an alternate preprocessor or
10181 perform additional processing of the program source between
10182 normal preprocessing and compilation.
10183 .IP "\fB\-D\fR \fIname\fR" 4
10184 .IX Item "-D name"
10185 Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
10186 .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
10187 .IX Item "-D name=definition"
10188 The contents of \fIdefinition\fR are tokenized and processed as if
10189 they appeared during translation phase three in a \fB#define\fR
10190 directive.  In particular, the definition will be truncated by
10191 embedded newline characters.
10192 .Sp
10193 If you are invoking the preprocessor from a shell or shell-like
10194 program you may need to use the shell's quoting syntax to protect
10195 characters such as spaces that have a meaning in the shell syntax.
10196 .Sp
10197 If you wish to define a function-like macro on the command line, write
10198 its argument list with surrounding parentheses before the equals sign
10199 (if any).  Parentheses are meaningful to most shells, so you will need
10200 to quote the option.  With \fBsh\fR and \fBcsh\fR,
10201 \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
10202 .Sp
10203 \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
10204 are given on the command line.  All \fB\-imacros\fR \fIfile\fR and
10205 \&\fB\-include\fR \fIfile\fR options are processed after all
10206 \&\fB\-D\fR and \fB\-U\fR options.
10207 .IP "\fB\-U\fR \fIname\fR" 4
10208 .IX Item "-U name"
10209 Cancel any previous definition of \fIname\fR, either built in or
10210 provided with a \fB\-D\fR option.
10211 .IP "\fB\-undef\fR" 4
10212 .IX Item "-undef"
10213 Do not predefine any system-specific or GCC-specific macros.  The
10214 standard predefined macros remain defined.
10215 .IP "\fB\-I\fR \fIdir\fR" 4
10216 .IX Item "-I dir"
10217 Add the directory \fIdir\fR to the list of directories to be searched
10218 for header files.
10219 Directories named by \fB\-I\fR are searched before the standard
10220 system include directories.  If the directory \fIdir\fR is a standard
10221 system include directory, the option is ignored to ensure that the
10222 default search order for system directories and the special treatment
10223 of system headers are not defeated
10224 \&.
10225 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
10226 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
10227 .IP "\fB\-o\fR \fIfile\fR" 4
10228 .IX Item "-o file"
10229 Write output to \fIfile\fR.  This is the same as specifying \fIfile\fR
10230 as the second non-option argument to \fBcpp\fR.  \fBgcc\fR has a
10231 different interpretation of a second non-option argument, so you must
10232 use \fB\-o\fR to specify the output file.
10233 .IP "\fB\-Wall\fR" 4
10234 .IX Item "-Wall"
10235 Turns on all optional warnings which are desirable for normal code.
10236 At present this is \fB\-Wcomment\fR, \fB\-Wtrigraphs\fR,
10237 \&\fB\-Wmultichar\fR and a warning about integer promotion causing a
10238 change of sign in \f(CW\*(C`#if\*(C'\fR expressions.  Note that many of the
10239 preprocessor's warnings are on by default and have no options to
10240 control them.
10241 .IP "\fB\-Wcomment\fR" 4
10242 .IX Item "-Wcomment"
10243 .PD 0
10244 .IP "\fB\-Wcomments\fR" 4
10245 .IX Item "-Wcomments"
10246 .PD
10247 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
10248 comment, or whenever a backslash-newline appears in a \fB//\fR comment.
10249 (Both forms have the same effect.)
10250 .IP "\fB\-Wtrigraphs\fR" 4
10251 .IX Item "-Wtrigraphs"
10252 Most trigraphs in comments cannot affect the meaning of the program.
10253 However, a trigraph that would form an escaped newline (\fB??/\fR at
10254 the end of a line) can, by changing where the comment begins or ends.
10255 Therefore, only trigraphs that would form escaped newlines produce
10256 warnings inside a comment.
10257 .Sp
10258 This option is implied by \fB\-Wall\fR.  If \fB\-Wall\fR is not
10259 given, this option is still enabled unless trigraphs are enabled.  To
10260 get trigraph conversion without warnings, but get the other
10261 \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
10262 .IP "\fB\-Wtraditional\fR" 4
10263 .IX Item "-Wtraditional"
10264 Warn about certain constructs that behave differently in traditional and
10265 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
10266 equivalent, and problematic constructs which should be avoided.
10267 .IP "\fB\-Wundef\fR" 4
10268 .IX Item "-Wundef"
10269 Warn whenever an identifier which is not a macro is encountered in an
10270 \&\fB#if\fR directive, outside of \fBdefined\fR.  Such identifiers are
10271 replaced with zero.
10272 .IP "\fB\-Wunused\-macros\fR" 4
10273 .IX Item "-Wunused-macros"
10274 Warn about macros defined in the main file that are unused.  A macro
10275 is \fIused\fR if it is expanded or tested for existence at least once.
10276 The preprocessor will also warn if the macro has not been used at the
10277 time it is redefined or undefined.
10278 .Sp
10279 Built-in macros, macros defined on the command line, and macros
10280 defined in include files are not warned about.
10281 .Sp
10282 \&\fINote:\fR If a macro is actually used, but only used in skipped
10283 conditional blocks, then \s-1CPP\s0 will report it as unused.  To avoid the
10284 warning in such a case, you might improve the scope of the macro's
10285 definition by, for example, moving it into the first skipped block.
10286 Alternatively, you could provide a dummy use with something like:
10287 .Sp
10288 .Vb 2
10289 \&        #if defined the_macro_causing_the_warning
10290 \&        #endif
10291 .Ve
10292 .IP "\fB\-Wendif\-labels\fR" 4
10293 .IX Item "-Wendif-labels"
10294 Warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
10295 This usually happens in code of the form
10296 .Sp
10297 .Vb 5
10298 \&        #if FOO
10299 \&        ...
10300 \&        #else FOO
10301 \&        ...
10302 \&        #endif FOO
10303 .Ve
10304 .Sp
10305 The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments, but often are not
10306 in older programs.  This warning is on by default.
10307 .IP "\fB\-Werror\fR" 4
10308 .IX Item "-Werror"
10309 Make all warnings into hard errors.  Source code which triggers warnings
10310 will be rejected.
10311 .IP "\fB\-Wsystem\-headers\fR" 4
10312 .IX Item "-Wsystem-headers"
10313 Issue warnings for code in system headers.  These are normally unhelpful
10314 in finding bugs in your own code, therefore suppressed.  If you are
10315 responsible for the system library, you may want to see them.
10316 .IP "\fB\-w\fR" 4
10317 .IX Item "-w"
10318 Suppress all warnings, including those which \s-1GNU\s0 \s-1CPP\s0 issues by default.
10319 .IP "\fB\-pedantic\fR" 4
10320 .IX Item "-pedantic"
10321 Issue all the mandatory diagnostics listed in the C standard.  Some of
10322 them are left out by default, since they trigger frequently on harmless
10323 code.
10324 .IP "\fB\-pedantic\-errors\fR" 4
10325 .IX Item "-pedantic-errors"
10326 Issue all the mandatory diagnostics, and make all mandatory diagnostics
10327 into errors.  This includes mandatory diagnostics that \s-1GCC\s0 issues
10328 without \fB\-pedantic\fR but treats as warnings.
10329 .IP "\fB\-M\fR" 4
10330 .IX Item "-M"
10331 Instead of outputting the result of preprocessing, output a rule
10332 suitable for \fBmake\fR describing the dependencies of the main
10333 source file.  The preprocessor outputs one \fBmake\fR rule containing
10334 the object file name for that source file, a colon, and the names of all
10335 the included files, including those coming from \fB\-include\fR or
10336 \&\fB\-imacros\fR command-line options.
10337 .Sp
10338 Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
10339 object file name consists of the name of the source file with any
10340 suffix replaced with object file suffix and with any leading directory
10341 parts removed.  If there are many included files then the rule is
10342 split into several lines using \fB\e\fR\-newline.  The rule has no
10343 commands.
10344 .Sp
10345 This option does not suppress the preprocessor's debug output, such as
10346 \&\fB\-dM\fR.  To avoid mixing such debug output with the dependency
10347 rules you should explicitly specify the dependency output file with
10348 \&\fB\-MF\fR, or use an environment variable like
10349 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR.  Debug output
10350 will still be sent to the regular output stream as normal.
10351 .Sp
10352 Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
10353 warnings with an implicit \fB\-w\fR.
10354 .IP "\fB\-MM\fR" 4
10355 .IX Item "-MM"
10356 Like \fB\-M\fR but do not mention header files that are found in
10357 system header directories, nor header files that are included,
10358 directly or indirectly, from such a header.
10359 .Sp
10360 This implies that the choice of angle brackets or double quotes in an
10361 \&\fB#include\fR directive does not in itself determine whether that
10362 header will appear in \fB\-MM\fR dependency output.  This is a
10363 slight change in semantics from \s-1GCC\s0 versions 3.0 and earlier.
10364 .IP "\fB\-MF\fR \fIfile\fR" 4
10365 .IX Item "-MF file"
10366 When used with \fB\-M\fR or \fB\-MM\fR, specifies a
10367 file to write the dependencies to.  If no \fB\-MF\fR switch is given
10368 the preprocessor sends the rules to the same place it would have sent
10369 preprocessed output.
10370 .Sp
10371 When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
10372 \&\fB\-MF\fR overrides the default dependency output file.
10373 .IP "\fB\-MG\fR" 4
10374 .IX Item "-MG"
10375 In conjunction with an option such as \fB\-M\fR requesting
10376 dependency generation, \fB\-MG\fR assumes missing header files are
10377 generated files and adds them to the dependency list without raising
10378 an error.  The dependency filename is taken directly from the
10379 \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path.  \fB\-MG\fR
10380 also suppresses preprocessed output, as a missing header file renders
10381 this useless.
10382 .Sp
10383 This feature is used in automatic updating of makefiles.
10384 .IP "\fB\-MP\fR" 4
10385 .IX Item "-MP"
10386 This option instructs \s-1CPP\s0 to add a phony target for each dependency
10387 other than the main file, causing each to depend on nothing.  These
10388 dummy rules work around errors \fBmake\fR gives if you remove header
10389 files without updating the \fIMakefile\fR to match.
10390 .Sp
10391 This is typical output:
10392 .Sp
10393 .Vb 1
10394 \&        test.o: test.c test.h
10395 \&        
10396 \&        test.h:
10397 .Ve
10398 .IP "\fB\-MT\fR \fItarget\fR" 4
10399 .IX Item "-MT target"
10400 Change the target of the rule emitted by dependency generation.  By
10401 default \s-1CPP\s0 takes the name of the main input file, deletes any
10402 directory components and any file suffix such as \fB.c\fR, and
10403 appends the platform's usual object suffix.  The result is the target.
10404 .Sp
10405 An \fB\-MT\fR option will set the target to be exactly the string you
10406 specify.  If you want multiple targets, you can specify them as a single
10407 argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
10408 .Sp
10409 For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
10410 .Sp
10411 .Vb 1
10412 \&        $(objpfx)foo.o: foo.c
10413 .Ve
10414 .IP "\fB\-MQ\fR \fItarget\fR" 4
10415 .IX Item "-MQ target"
10416 Same as \fB\-MT\fR, but it quotes any characters which are special to
10417 Make.  \fB\-MQ\ '$(objpfx)foo.o'\fR gives
10418 .Sp
10419 .Vb 1
10420 \&        $$(objpfx)foo.o: foo.c
10421 .Ve
10422 .Sp
10423 The default target is automatically quoted, as if it were given with
10424 \&\fB\-MQ\fR.
10425 .IP "\fB\-MD\fR" 4
10426 .IX Item "-MD"
10427 \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
10428 \&\fB\-E\fR is not implied.  The driver determines \fIfile\fR based on
10429 whether an \fB\-o\fR option is given.  If it is, the driver uses its
10430 argument but with a suffix of \fI.d\fR, otherwise it takes the name
10431 of the input file, removes any directory components and suffix, and
10432 applies a \fI.d\fR suffix.
10433 .Sp
10434 If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
10435 \&\fB\-o\fR switch is understood to specify the dependency output file, but if used without \fB\-E\fR, each \fB\-o\fR
10436 is understood to specify a target object file.
10437 .Sp
10438 Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
10439 a dependency output file as a side-effect of the compilation process.
10440 .IP "\fB\-MMD\fR" 4
10441 .IX Item "-MMD"
10442 Like \fB\-MD\fR except mention only user header files, not system
10443 header files.
10444 .IP "\fB\-fpch\-deps\fR" 4
10445 .IX Item "-fpch-deps"
10446 When using precompiled headers, this flag
10447 will cause the dependency-output flags to also list the files from the
10448 precompiled header's dependencies.  If not specified only the
10449 precompiled header would be listed and not the files that were used to
10450 create it because those files are not consulted when a precompiled
10451 header is used.
10452 .IP "\fB\-fpch\-preprocess\fR" 4
10453 .IX Item "-fpch-preprocess"
10454 This option allows use of a precompiled header together with \fB\-E\fR.  It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
10455 \&\f(CW\*(C`#pragma GCC pch_preprocess "\f(CIfilename\f(CW"\*(C'\fR in the output to mark
10456 the place where the precompiled header was found, and its \fIfilename\fR.
10457 When \fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR
10458 and loads the \s-1PCH\s0.
10459 .Sp
10460 This option is off by default, because the resulting preprocessed output
10461 is only really suitable as input to \s-1GCC\s0.  It is switched on by
10462 \&\fB\-save\-temps\fR.
10463 .Sp
10464 You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
10465 safe to edit the filename if the \s-1PCH\s0 file is available in a different
10466 location.  The filename may be absolute or it may be relative to \s-1GCC\s0's
10467 current directory.
10468 .IP "\fB\-x c\fR" 4
10469 .IX Item "-x c"
10470 .PD 0
10471 .IP "\fB\-x c++\fR" 4
10472 .IX Item "-x c++"
10473 .IP "\fB\-x objective-c\fR" 4
10474 .IX Item "-x objective-c"
10475 .IP "\fB\-x assembler-with-cpp\fR" 4
10476 .IX Item "-x assembler-with-cpp"
10477 .PD
10478 Specify the source language: C, \*(C+, Objective-C, or assembly.  This has
10479 nothing to do with standards conformance or extensions; it merely
10480 selects which base syntax to expect.  If you give none of these options,
10481 cpp will deduce the language from the extension of the source file:
10482 \&\fB.c\fR, \fB.cc\fR, \fB.m\fR, or \fB.S\fR.  Some other common
10483 extensions for \*(C+ and assembly are also recognized.  If cpp does not
10484 recognize the extension, it will treat the file as C; this is the most
10485 generic mode.
10486 .Sp
10487 \&\fINote:\fR Previous versions of cpp accepted a \fB\-lang\fR option
10488 which selected both the language and the standards conformance level.
10489 This option has been removed, because it conflicts with the \fB\-l\fR
10490 option.
10491 .IP "\fB\-std=\fR\fIstandard\fR" 4
10492 .IX Item "-std=standard"
10493 .PD 0
10494 .IP "\fB\-ansi\fR" 4
10495 .IX Item "-ansi"
10496 .PD
10497 Specify the standard to which the code should conform.  Currently \s-1CPP\s0
10498 knows about C and \*(C+ standards; others may be added in the future.
10499 .Sp
10500 \&\fIstandard\fR
10501 may be one of:
10502 .RS 4
10503 .ie n .IP """c90""" 4
10504 .el .IP "\f(CWc90\fR" 4
10505 .IX Item "c90"
10506 .PD 0
10507 .ie n .IP """c89""" 4
10508 .el .IP "\f(CWc89\fR" 4
10509 .IX Item "c89"
10510 .ie n .IP """iso9899:1990""" 4
10511 .el .IP "\f(CWiso9899:1990\fR" 4
10512 .IX Item "iso9899:1990"
10513 .PD
10514 The \s-1ISO\s0 C standard from 1990.  \fBc90\fR is the customary shorthand for
10515 this version of the standard.
10516 .Sp
10517 The \fB\-ansi\fR option is equivalent to \fB\-std=c90\fR.
10518 .ie n .IP """iso9899:199409""" 4
10519 .el .IP "\f(CWiso9899:199409\fR" 4
10520 .IX Item "iso9899:199409"
10521 The 1990 C standard, as amended in 1994.
10522 .ie n .IP """iso9899:1999""" 4
10523 .el .IP "\f(CWiso9899:1999\fR" 4
10524 .IX Item "iso9899:1999"
10525 .PD 0
10526 .ie n .IP """c99""" 4
10527 .el .IP "\f(CWc99\fR" 4
10528 .IX Item "c99"
10529 .ie n .IP """iso9899:199x""" 4
10530 .el .IP "\f(CWiso9899:199x\fR" 4
10531 .IX Item "iso9899:199x"
10532 .ie n .IP """c9x""" 4
10533 .el .IP "\f(CWc9x\fR" 4
10534 .IX Item "c9x"
10535 .PD
10536 The revised \s-1ISO\s0 C standard, published in December 1999.  Before
10537 publication, this was known as C9X.
10538 .ie n .IP """iso9899:2011""" 4
10539 .el .IP "\f(CWiso9899:2011\fR" 4
10540 .IX Item "iso9899:2011"
10541 .PD 0
10542 .ie n .IP """c11""" 4
10543 .el .IP "\f(CWc11\fR" 4
10544 .IX Item "c11"
10545 .ie n .IP """c1x""" 4
10546 .el .IP "\f(CWc1x\fR" 4
10547 .IX Item "c1x"
10548 .PD
10549 The revised \s-1ISO\s0 C standard, published in December 2011.  Before
10550 publication, this was known as C1X.
10551 .ie n .IP """gnu90""" 4
10552 .el .IP "\f(CWgnu90\fR" 4
10553 .IX Item "gnu90"
10554 .PD 0
10555 .ie n .IP """gnu89""" 4
10556 .el .IP "\f(CWgnu89\fR" 4
10557 .IX Item "gnu89"
10558 .PD
10559 The 1990 C standard plus \s-1GNU\s0 extensions.  This is the default.
10560 .ie n .IP """gnu99""" 4
10561 .el .IP "\f(CWgnu99\fR" 4
10562 .IX Item "gnu99"
10563 .PD 0
10564 .ie n .IP """gnu9x""" 4
10565 .el .IP "\f(CWgnu9x\fR" 4
10566 .IX Item "gnu9x"
10567 .PD
10568 The 1999 C standard plus \s-1GNU\s0 extensions.
10569 .ie n .IP """gnu11""" 4
10570 .el .IP "\f(CWgnu11\fR" 4
10571 .IX Item "gnu11"
10572 .PD 0
10573 .ie n .IP """gnu1x""" 4
10574 .el .IP "\f(CWgnu1x\fR" 4
10575 .IX Item "gnu1x"
10576 .PD
10577 The 2011 C standard plus \s-1GNU\s0 extensions.
10578 .ie n .IP """c++98""" 4
10579 .el .IP "\f(CWc++98\fR" 4
10580 .IX Item "c++98"
10581 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
10582 .ie n .IP """gnu++98""" 4
10583 .el .IP "\f(CWgnu++98\fR" 4
10584 .IX Item "gnu++98"
10585 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
10586 default for \*(C+ code.
10587 .RE
10588 .RS 4
10589 .RE
10590 .IP "\fB\-I\-\fR" 4
10591 .IX Item "-I-"
10592 Split the include path.  Any directories specified with \fB\-I\fR
10593 options before \fB\-I\-\fR are searched only for headers requested with
10594 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
10595 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR.  If additional directories are
10596 specified with \fB\-I\fR options after the \fB\-I\-\fR, those
10597 directories are searched for all \fB#include\fR directives.
10598 .Sp
10599 In addition, \fB\-I\-\fR inhibits the use of the directory of the current
10600 file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
10601 This option has been deprecated.
10602 .IP "\fB\-nostdinc\fR" 4
10603 .IX Item "-nostdinc"
10604 Do not search the standard system directories for header files.
10605 Only the directories you have specified with \fB\-I\fR options
10606 (and the directory of the current file, if appropriate) are searched.
10607 .IP "\fB\-nostdinc++\fR" 4
10608 .IX Item "-nostdinc++"
10609 Do not search for header files in the \*(C+\-specific standard directories,
10610 but do still search the other standard directories.  (This option is
10611 used when building the \*(C+ library.)
10612 .IP "\fB\-include\fR \fIfile\fR" 4
10613 .IX Item "-include file"
10614 Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
10615 line of the primary source file.  However, the first directory searched
10616 for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
10617 the directory containing the main source file.  If not found there, it
10618 is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
10619 chain as normal.
10620 .Sp
10621 If multiple \fB\-include\fR options are given, the files are included
10622 in the order they appear on the command line.
10623 .IP "\fB\-imacros\fR \fIfile\fR" 4
10624 .IX Item "-imacros file"
10625 Exactly like \fB\-include\fR, except that any output produced by
10626 scanning \fIfile\fR is thrown away.  Macros it defines remain defined.
10627 This allows you to acquire all the macros from a header without also
10628 processing its declarations.
10629 .Sp
10630 All files specified by \fB\-imacros\fR are processed before all files
10631 specified by \fB\-include\fR.
10632 .IP "\fB\-idirafter\fR \fIdir\fR" 4
10633 .IX Item "-idirafter dir"
10634 Search \fIdir\fR for header files, but do it \fIafter\fR all
10635 directories specified with \fB\-I\fR and the standard system directories
10636 have been exhausted.  \fIdir\fR is treated as a system include directory.
10637 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
10638 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
10639 .IP "\fB\-iprefix\fR \fIprefix\fR" 4
10640 .IX Item "-iprefix prefix"
10641 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
10642 options.  If the prefix represents a directory, you should include the
10643 final \fB/\fR.
10644 .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
10645 .IX Item "-iwithprefix dir"
10646 .PD 0
10647 .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
10648 .IX Item "-iwithprefixbefore dir"
10649 .PD
10650 Append \fIdir\fR to the prefix specified previously with
10651 \&\fB\-iprefix\fR, and add the resulting directory to the include search
10652 path.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
10653 would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
10654 .IP "\fB\-isysroot\fR \fIdir\fR" 4
10655 .IX Item "-isysroot dir"
10656 This option is like the \fB\-\-sysroot\fR option, but applies only to
10657 header files (except for Darwin targets, where it applies to both header
10658 files and libraries).  See the \fB\-\-sysroot\fR option for more
10659 information.
10660 .IP "\fB\-imultilib\fR \fIdir\fR" 4
10661 .IX Item "-imultilib dir"
10662 Use \fIdir\fR as a subdirectory of the directory containing
10663 target-specific \*(C+ headers.
10664 .IP "\fB\-isystem\fR \fIdir\fR" 4
10665 .IX Item "-isystem dir"
10666 Search \fIdir\fR for header files, after all directories specified by
10667 \&\fB\-I\fR but before the standard system directories.  Mark it
10668 as a system directory, so that it gets the same special treatment as
10669 is applied to the standard system directories.
10670 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
10671 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
10672 .IP "\fB\-iquote\fR \fIdir\fR" 4
10673 .IX Item "-iquote dir"
10674 Search \fIdir\fR only for header files requested with
10675 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
10676 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR, before all directories specified by
10677 \&\fB\-I\fR and before the standard system directories.
10678 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
10679 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
10680 .IP "\fB\-fdirectives\-only\fR" 4
10681 .IX Item "-fdirectives-only"
10682 When preprocessing, handle directives, but do not expand macros.
10683 .Sp
10684 The option's behavior depends on the \fB\-E\fR and \fB\-fpreprocessed\fR
10685 options.
10686 .Sp
10687 With \fB\-E\fR, preprocessing is limited to the handling of directives
10688 such as \f(CW\*(C`#define\*(C'\fR, \f(CW\*(C`#ifdef\*(C'\fR, and \f(CW\*(C`#error\*(C'\fR.  Other
10689 preprocessor operations, such as macro expansion and trigraph
10690 conversion are not performed.  In addition, the \fB\-dD\fR option is
10691 implicitly enabled.
10692 .Sp
10693 With \fB\-fpreprocessed\fR, predefinition of command line and most
10694 builtin macros is disabled.  Macros such as \f(CW\*(C`_\|_LINE_\|_\*(C'\fR, which are
10695 contextually dependent, are handled normally.  This enables compilation of
10696 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
10697 .Sp
10698 With both \fB\-E\fR and \fB\-fpreprocessed\fR, the rules for
10699 \&\fB\-fpreprocessed\fR take precedence.  This enables full preprocessing of
10700 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
10701 .IP "\fB\-fdollars\-in\-identifiers\fR" 4
10702 .IX Item "-fdollars-in-identifiers"
10703 Accept \fB$\fR in identifiers.
10704 .IP "\fB\-fextended\-identifiers\fR" 4
10705 .IX Item "-fextended-identifiers"
10706 Accept universal character names in identifiers.  This option is
10707 enabled by default for C99 (and later C standard versions) and \*(C+.
10708 .IP "\fB\-fno\-canonical\-system\-headers\fR" 4
10709 .IX Item "-fno-canonical-system-headers"
10710 When preprocessing, do not shorten system header paths with canonicalization.
10711 .IP "\fB\-fpreprocessed\fR" 4
10712 .IX Item "-fpreprocessed"
10713 Indicate to the preprocessor that the input file has already been
10714 preprocessed.  This suppresses things like macro expansion, trigraph
10715 conversion, escaped newline splicing, and processing of most directives.
10716 The preprocessor still recognizes and removes comments, so that you can
10717 pass a file preprocessed with \fB\-C\fR to the compiler without
10718 problems.  In this mode the integrated preprocessor is little more than
10719 a tokenizer for the front ends.
10720 .Sp
10721 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
10722 extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are the
10723 extensions that \s-1GCC\s0 uses for preprocessed files created by
10724 \&\fB\-save\-temps\fR.
10725 .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
10726 .IX Item "-ftabstop=width"
10727 Set the distance between tab stops.  This helps the preprocessor report
10728 correct column numbers in warnings or errors, even if tabs appear on the
10729 line.  If the value is less than 1 or greater than 100, the option is
10730 ignored.  The default is 8.
10731 .IP "\fB\-fdebug\-cpp\fR" 4
10732 .IX Item "-fdebug-cpp"
10733 This option is only useful for debugging \s-1GCC\s0.  When used with
10734 \&\fB\-E\fR, dumps debugging information about location maps.  Every
10735 token in the output is preceded by the dump of the map its location
10736 belongs to.  The dump of the map holding the location of a token would
10737 be:
10738 .Sp
10739 .Vb 1
10740 \&        {"P":F</file/path>;"F":F</includer/path>;"L":<line_num>;"C":<col_num>;"S":<system_header_p>;"M":<map_address>;"E":<macro_expansion_p>,"loc":<location>}
10741 .Ve
10742 .Sp
10743 When used without \fB\-E\fR, this option has no effect.
10744 .IP "\fB\-ftrack\-macro\-expansion\fR[\fB=\fR\fIlevel\fR]" 4
10745 .IX Item "-ftrack-macro-expansion[=level]"
10746 Track locations of tokens across macro expansions. This allows the
10747 compiler to emit diagnostic about the current macro expansion stack
10748 when a compilation error occurs in a macro expansion. Using this
10749 option makes the preprocessor and the compiler consume more
10750 memory. The \fIlevel\fR parameter can be used to choose the level of
10751 precision of token location tracking thus decreasing the memory
10752 consumption if necessary. Value \fB0\fR of \fIlevel\fR de-activates
10753 this option just as if no \fB\-ftrack\-macro\-expansion\fR was present
10754 on the command line. Value \fB1\fR tracks tokens locations in a
10755 degraded mode for the sake of minimal memory overhead. In this mode
10756 all tokens resulting from the expansion of an argument of a
10757 function-like macro have the same location. Value \fB2\fR tracks
10758 tokens locations completely. This value is the most memory hungry.
10759 When this option is given no argument, the default parameter value is
10760 \&\fB2\fR.
10761 .Sp
10762 Note that \f(CW\*(C`\-ftrack\-macro\-expansion=2\*(C'\fR is activated by default.
10763 .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
10764 .IX Item "-fexec-charset=charset"
10765 Set the execution character set, used for string and character
10766 constants.  The default is \s-1UTF\-8\s0.  \fIcharset\fR can be any encoding
10767 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
10768 .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
10769 .IX Item "-fwide-exec-charset=charset"
10770 Set the wide execution character set, used for wide string and
10771 character constants.  The default is \s-1UTF\-32\s0 or \s-1UTF\-16\s0, whichever
10772 corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR.  As with
10773 \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
10774 by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
10775 problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
10776 .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
10777 .IX Item "-finput-charset=charset"
10778 Set the input character set, used for translation from the character
10779 set of the input file to the source character set used by \s-1GCC\s0.  If the
10780 locale does not specify, or \s-1GCC\s0 cannot get this information from the
10781 locale, the default is \s-1UTF\-8\s0.  This can be overridden by either the locale
10782 or this command-line option.  Currently the command-line option takes
10783 precedence if there's a conflict.  \fIcharset\fR can be any encoding
10784 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
10785 .IP "\fB\-fworking\-directory\fR" 4
10786 .IX Item "-fworking-directory"
10787 Enable generation of linemarkers in the preprocessor output that will
10788 let the compiler know the current working directory at the time of
10789 preprocessing.  When this option is enabled, the preprocessor will
10790 emit, after the initial linemarker, a second linemarker with the
10791 current working directory followed by two slashes.  \s-1GCC\s0 will use this
10792 directory, when it's present in the preprocessed input, as the
10793 directory emitted as the current working directory in some debugging
10794 information formats.  This option is implicitly enabled if debugging
10795 information is enabled, but this can be inhibited with the negated
10796 form \fB\-fno\-working\-directory\fR.  If the \fB\-P\fR flag is
10797 present in the command line, this option has no effect, since no
10798 \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
10799 .IP "\fB\-fno\-show\-column\fR" 4
10800 .IX Item "-fno-show-column"
10801 Do not print column numbers in diagnostics.  This may be necessary if
10802 diagnostics are being scanned by a program that does not understand the
10803 column numbers, such as \fBdejagnu\fR.
10804 .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
10805 .IX Item "-A predicate=answer"
10806 Make an assertion with the predicate \fIpredicate\fR and answer
10807 \&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR
10808 \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
10809 it does not use shell special characters.
10810 .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
10811 .IX Item "-A -predicate=answer"
10812 Cancel an assertion with the predicate \fIpredicate\fR and answer
10813 \&\fIanswer\fR.
10814 .IP "\fB\-dCHARS\fR" 4
10815 .IX Item "-dCHARS"
10816 \&\fI\s-1CHARS\s0\fR is a sequence of one or more of the following characters,
10817 and must not be preceded by a space.  Other characters are interpreted
10818 by the compiler proper, or reserved for future versions of \s-1GCC\s0, and so
10819 are silently ignored.  If you specify characters whose behavior
10820 conflicts, the result is undefined.
10821 .RS 4
10822 .IP "\fBM\fR" 4
10823 .IX Item "M"
10824 Instead of the normal output, generate a list of \fB#define\fR
10825 directives for all the macros defined during the execution of the
10826 preprocessor, including predefined macros.  This gives you a way of
10827 finding out what is predefined in your version of the preprocessor.
10828 Assuming you have no file \fIfoo.h\fR, the command
10829 .Sp
10830 .Vb 1
10831 \&        touch foo.h; cpp \-dM foo.h
10832 .Ve
10833 .Sp
10834 will show all the predefined macros.
10835 .Sp
10836 If you use \fB\-dM\fR without the \fB\-E\fR option, \fB\-dM\fR is
10837 interpreted as a synonym for \fB\-fdump\-rtl\-mach\fR.
10838 .IP "\fBD\fR" 4
10839 .IX Item "D"
10840 Like \fBM\fR except in two respects: it does \fInot\fR include the
10841 predefined macros, and it outputs \fIboth\fR the \fB#define\fR
10842 directives and the result of preprocessing.  Both kinds of output go to
10843 the standard output file.
10844 .IP "\fBN\fR" 4
10845 .IX Item "N"
10846 Like \fBD\fR, but emit only the macro names, not their expansions.
10847 .IP "\fBI\fR" 4
10848 .IX Item "I"
10849 Output \fB#include\fR directives in addition to the result of
10850 preprocessing.
10851 .IP "\fBU\fR" 4
10852 .IX Item "U"
10853 Like \fBD\fR except that only macros that are expanded, or whose
10854 definedness is tested in preprocessor directives, are output; the
10855 output is delayed until the use or test of the macro; and
10856 \&\fB#undef\fR directives are also output for macros tested but
10857 undefined at the time.
10858 .RE
10859 .RS 4
10860 .RE
10861 .IP "\fB\-P\fR" 4
10862 .IX Item "-P"
10863 Inhibit generation of linemarkers in the output from the preprocessor.
10864 This might be useful when running the preprocessor on something that is
10865 not C code, and will be sent to a program which might be confused by the
10866 linemarkers.
10867 .IP "\fB\-C\fR" 4
10868 .IX Item "-C"
10869 Do not discard comments.  All comments are passed through to the output
10870 file, except for comments in processed directives, which are deleted
10871 along with the directive.
10872 .Sp
10873 You should be prepared for side effects when using \fB\-C\fR; it
10874 causes the preprocessor to treat comments as tokens in their own right.
10875 For example, comments appearing at the start of what would be a
10876 directive line have the effect of turning that line into an ordinary
10877 source line, since the first token on the line is no longer a \fB#\fR.
10878 .IP "\fB\-CC\fR" 4
10879 .IX Item "-CC"
10880 Do not discard comments, including during macro expansion.  This is
10881 like \fB\-C\fR, except that comments contained within macros are
10882 also passed through to the output file where the macro is expanded.
10883 .Sp
10884 In addition to the side-effects of the \fB\-C\fR option, the
10885 \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
10886 to be converted to C\-style comments.  This is to prevent later use
10887 of that macro from inadvertently commenting out the remainder of
10888 the source line.
10889 .Sp
10890 The \fB\-CC\fR option is generally used to support lint comments.
10891 .IP "\fB\-traditional\-cpp\fR" 4
10892 .IX Item "-traditional-cpp"
10893 Try to imitate the behavior of old-fashioned C preprocessors, as
10894 opposed to \s-1ISO\s0 C preprocessors.
10895 .IP "\fB\-trigraphs\fR" 4
10896 .IX Item "-trigraphs"
10897 Process trigraph sequences.
10898 These are three-character sequences, all starting with \fB??\fR, that
10899 are defined by \s-1ISO\s0 C to stand for single characters.  For example,
10900 \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
10901 constant for a newline.  By default, \s-1GCC\s0 ignores trigraphs, but in
10902 standard-conforming modes it converts them.  See the \fB\-std\fR and
10903 \&\fB\-ansi\fR options.
10904 .Sp
10905 The nine trigraphs and their replacements are
10906 .Sp
10907 .Vb 2
10908 \&        Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??\*(Aq  ??!  ??\-
10909 \&        Replacement:      [    ]    {    }    #    \e    ^    |    ~
10910 .Ve
10911 .IP "\fB\-remap\fR" 4
10912 .IX Item "-remap"
10913 Enable special code to work around file systems which only permit very
10914 short file names, such as MS-DOS.
10915 .IP "\fB\-\-help\fR" 4
10916 .IX Item "--help"
10917 .PD 0
10918 .IP "\fB\-\-target\-help\fR" 4
10919 .IX Item "--target-help"
10920 .PD
10921 Print text describing all the command-line options instead of
10922 preprocessing anything.
10923 .IP "\fB\-v\fR" 4
10924 .IX Item "-v"
10925 Verbose mode.  Print out \s-1GNU\s0 \s-1CPP\s0's version number at the beginning of
10926 execution, and report the final form of the include path.
10927 .IP "\fB\-H\fR" 4
10928 .IX Item "-H"
10929 Print the name of each header file used, in addition to other normal
10930 activities.  Each name is indented to show how deep in the
10931 \&\fB#include\fR stack it is.  Precompiled header files are also
10932 printed, even if they are found to be invalid; an invalid precompiled
10933 header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
10934 .IP "\fB\-version\fR" 4
10935 .IX Item "-version"
10936 .PD 0
10937 .IP "\fB\-\-version\fR" 4
10938 .IX Item "--version"
10939 .PD
10940 Print out \s-1GNU\s0 \s-1CPP\s0's version number.  With one dash, proceed to
10941 preprocess as normal.  With two dashes, exit immediately.
10942 .Sh "Passing Options to the Assembler"
10943 .IX Subsection "Passing Options to the Assembler"
10944 You can pass options to the assembler.
10945 .IP "\fB\-Wa,\fR\fIoption\fR" 4
10946 .IX Item "-Wa,option"
10947 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
10948 contains commas, it is split into multiple options at the commas.
10949 .IP "\fB\-Xassembler\fR \fIoption\fR" 4
10950 .IX Item "-Xassembler option"
10951 Pass \fIoption\fR as an option to the assembler.  You can use this to
10952 supply system-specific assembler options that \s-1GCC\s0 does not
10953 recognize.
10954 .Sp
10955 If you want to pass an option that takes an argument, you must use
10956 \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
10957 .Sh "Options for Linking"
10958 .IX Subsection "Options for Linking"
10959 These options come into play when the compiler links object files into
10960 an executable output file.  They are meaningless if the compiler is
10961 not doing a link step.
10962 .IP "\fIobject-file-name\fR" 4
10963 .IX Item "object-file-name"
10964 A file name that does not end in a special recognized suffix is
10965 considered to name an object file or library.  (Object files are
10966 distinguished from libraries by the linker according to the file
10967 contents.)  If linking is done, these object files are used as input
10968 to the linker.
10969 .IP "\fB\-c\fR" 4
10970 .IX Item "-c"
10971 .PD 0
10972 .IP "\fB\-S\fR" 4
10973 .IX Item "-S"
10974 .IP "\fB\-E\fR" 4
10975 .IX Item "-E"
10976 .PD
10977 If any of these options is used, then the linker is not run, and
10978 object file names should not be used as arguments.
10979 .IP "\fB\-fuse\-ld=bfd\fR" 4
10980 .IX Item "-fuse-ld=bfd"
10981 Use the \fBbfd\fR linker instead of the default linker.
10982 .IP "\fB\-fuse\-ld=gold\fR" 4
10983 .IX Item "-fuse-ld=gold"
10984 Use the \fBgold\fR linker instead of the default linker.
10985 .IP "\fB\-l\fR\fIlibrary\fR" 4
10986 .IX Item "-llibrary"
10987 .PD 0
10988 .IP "\fB\-l\fR \fIlibrary\fR" 4
10989 .IX Item "-l library"
10990 .PD
10991 Search the library named \fIlibrary\fR when linking.  (The second
10992 alternative with the library as a separate argument is only for
10993 \&\s-1POSIX\s0 compliance and is not recommended.)
10994 .Sp
10995 It makes a difference where in the command you write this option; the
10996 linker searches and processes libraries and object files in the order they
10997 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
10998 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
10999 to functions in \fBz\fR, those functions may not be loaded.
11000 .Sp
11001 The linker searches a standard list of directories for the library,
11002 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
11003 then uses this file as if it had been specified precisely by name.
11004 .Sp
11005 The directories searched include several standard system directories
11006 plus any that you specify with \fB\-L\fR.
11007 .Sp
11008 Normally the files found this way are library files\-\-\-archive files
11009 whose members are object files.  The linker handles an archive file by
11010 scanning through it for members which define symbols that have so far
11011 been referenced but not defined.  But if the file that is found is an
11012 ordinary object file, it is linked in the usual fashion.  The only
11013 difference between using an \fB\-l\fR option and specifying a file name
11014 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
11015 and searches several directories.
11016 .IP "\fB\-lobjc\fR" 4
11017 .IX Item "-lobjc"
11018 You need this special case of the \fB\-l\fR option in order to
11019 link an Objective-C or Objective\-\*(C+ program.
11020 .IP "\fB\-nostartfiles\fR" 4
11021 .IX Item "-nostartfiles"
11022 Do not use the standard system startup files when linking.
11023 The standard system libraries are used normally, unless \fB\-nostdlib\fR
11024 or \fB\-nodefaultlibs\fR is used.
11025 .IP "\fB\-nodefaultlibs\fR" 4
11026 .IX Item "-nodefaultlibs"
11027 Do not use the standard system libraries when linking.
11028 Only the libraries you specify are passed to the linker, and options
11029 specifying linkage of the system libraries, such as \fB\-static\-libgcc\fR
11030 or \fB\-shared\-libgcc\fR, are ignored.  
11031 The standard startup files are used normally, unless \fB\-nostartfiles\fR
11032 is used.
11033 .Sp
11034 The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
11035 \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
11036 These entries are usually resolved by entries in
11037 libc.  These entry points should be supplied through some other
11038 mechanism when this option is specified.
11039 .IP "\fB\-nostdlib\fR" 4
11040 .IX Item "-nostdlib"
11041 Do not use the standard system startup files or libraries when linking.
11042 No startup files and only the libraries you specify are passed to
11043 the linker, and options specifying linkage of the system libraries, such as
11044 \&\fB\-static\-libgcc\fR or \fB\-shared\-libgcc\fR, are ignored.
11045 .Sp
11046 The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
11047 \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
11048 These entries are usually resolved by entries in
11049 libc.  These entry points should be supplied through some other
11050 mechanism when this option is specified.
11051 .Sp
11052 One of the standard libraries bypassed by \fB\-nostdlib\fR and
11053 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
11054 which \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
11055 needs for some languages.
11056 .Sp
11057 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
11058 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
11059 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
11060 This ensures that you have no unresolved references to internal \s-1GCC\s0
11061 library subroutines.
11062 (An example of such an internal subroutine is \f(CW\*(C`_\|_main\*(C'\fR, used to ensure \*(C+
11063 constructors are called.)
11064 .IP "\fB\-pie\fR" 4
11065 .IX Item "-pie"
11066 Produce a position independent executable on targets that support it.
11067 For predictable results, you must also specify the same set of options
11068 used for compilation (\fB\-fpie\fR, \fB\-fPIE\fR,
11069 or model suboptions) when you specify this linker option.
11070 .IP "\fB\-rdynamic\fR" 4
11071 .IX Item "-rdynamic"
11072 Pass the flag \fB\-export\-dynamic\fR to the \s-1ELF\s0 linker, on targets
11073 that support it. This instructs the linker to add all symbols, not
11074 only used ones, to the dynamic symbol table. This option is needed
11075 for some uses of \f(CW\*(C`dlopen\*(C'\fR or to allow obtaining backtraces
11076 from within a program.
11077 .IP "\fB\-s\fR" 4
11078 .IX Item "-s"
11079 Remove all symbol table and relocation information from the executable.
11080 .IP "\fB\-static\fR" 4
11081 .IX Item "-static"
11082 On systems that support dynamic linking, this prevents linking with the shared
11083 libraries.  On other systems, this option has no effect.
11084 .IP "\fB\-shared\fR" 4
11085 .IX Item "-shared"
11086 Produce a shared object which can then be linked with other objects to
11087 form an executable.  Not all systems support this option.  For predictable
11088 results, you must also specify the same set of options used for compilation
11089 (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions) when
11090 you specify this linker option.[1]
11091 .IP "\fB\-shared\-libgcc\fR" 4
11092 .IX Item "-shared-libgcc"
11093 .PD 0
11094 .IP "\fB\-static\-libgcc\fR" 4
11095 .IX Item "-static-libgcc"
11096 .PD
11097 On systems that provide \fIlibgcc\fR as a shared library, these options
11098 force the use of either the shared or static version, respectively.
11099 If no shared version of \fIlibgcc\fR was built when the compiler was
11100 configured, these options have no effect.
11101 .Sp
11102 There are several situations in which an application should use the
11103 shared \fIlibgcc\fR instead of the static version.  The most common
11104 of these is when the application wishes to throw and catch exceptions
11105 across different shared libraries.  In that case, each of the libraries
11106 as well as the application itself should use the shared \fIlibgcc\fR.
11107 .Sp
11108 Therefore, the G++ and \s-1GCJ\s0 drivers automatically add
11109 \&\fB\-shared\-libgcc\fR whenever you build a shared library or a main
11110 executable, because \*(C+ and Java programs typically use exceptions, so
11111 this is the right thing to do.
11112 .Sp
11113 If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
11114 find that they are not always linked with the shared \fIlibgcc\fR.
11115 If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
11116 or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
11117 it links the shared version of \fIlibgcc\fR into shared libraries
11118 by default.  Otherwise, it takes advantage of the linker and optimizes
11119 away the linking with the shared version of \fIlibgcc\fR, linking with
11120 the static version of libgcc by default.  This allows exceptions to
11121 propagate through such shared libraries, without incurring relocation
11122 costs at library load time.
11123 .Sp
11124 However, if a library or main executable is supposed to throw or catch
11125 exceptions, you must link it using the G++ or \s-1GCJ\s0 driver, as appropriate
11126 for the languages used in the program, or using the option
11127 \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
11128 \&\fIlibgcc\fR.
11129 .IP "\fB\-static\-libasan\fR" 4
11130 .IX Item "-static-libasan"
11131 When the \fB\-fsanitize=address\fR option is used to link a program,
11132 the \s-1GCC\s0 driver automatically links against \fBlibasan\fR.  If
11133 \&\fIlibasan\fR is available as a shared library, and the \fB\-static\fR
11134 option is not used, then this links against the shared version of
11135 \&\fIlibasan\fR.  The \fB\-static\-libasan\fR option directs the \s-1GCC\s0
11136 driver to link \fIlibasan\fR statically, without necessarily linking
11137 other libraries statically.
11138 .IP "\fB\-static\-libtsan\fR" 4
11139 .IX Item "-static-libtsan"
11140 When the \fB\-fsanitize=thread\fR option is used to link a program,
11141 the \s-1GCC\s0 driver automatically links against \fBlibtsan\fR.  If
11142 \&\fIlibtsan\fR is available as a shared library, and the \fB\-static\fR
11143 option is not used, then this links against the shared version of
11144 \&\fIlibtsan\fR.  The \fB\-static\-libtsan\fR option directs the \s-1GCC\s0
11145 driver to link \fIlibtsan\fR statically, without necessarily linking
11146 other libraries statically.
11147 .IP "\fB\-static\-liblsan\fR" 4
11148 .IX Item "-static-liblsan"
11149 When the \fB\-fsanitize=leak\fR option is used to link a program,
11150 the \s-1GCC\s0 driver automatically links against \fBliblsan\fR.  If
11151 \&\fIliblsan\fR is available as a shared library, and the \fB\-static\fR
11152 option is not used, then this links against the shared version of
11153 \&\fIliblsan\fR.  The \fB\-static\-liblsan\fR option directs the \s-1GCC\s0
11154 driver to link \fIliblsan\fR statically, without necessarily linking
11155 other libraries statically.
11156 .IP "\fB\-static\-libubsan\fR" 4
11157 .IX Item "-static-libubsan"
11158 When the \fB\-fsanitize=undefined\fR option is used to link a program,
11159 the \s-1GCC\s0 driver automatically links against \fBlibubsan\fR.  If
11160 \&\fIlibubsan\fR is available as a shared library, and the \fB\-static\fR
11161 option is not used, then this links against the shared version of
11162 \&\fIlibubsan\fR.  The \fB\-static\-libubsan\fR option directs the \s-1GCC\s0
11163 driver to link \fIlibubsan\fR statically, without necessarily linking
11164 other libraries statically.
11165 .IP "\fB\-static\-libmpx\fR" 4
11166 .IX Item "-static-libmpx"
11167 When the \fB\-fcheck\-pointer bounds\fR and \fB\-mmpx\fR options are
11168 used to link a program, the \s-1GCC\s0 driver automatically links against
11169 \&\fIlibmpx\fR.  If \fIlibmpx\fR is available as a shared library,
11170 and the \fB\-static\fR option is not used, then this links against
11171 the shared version of \fIlibmpx\fR.  The \fB\-static\-libmpx\fR
11172 option directs the \s-1GCC\s0 driver to link \fIlibmpx\fR statically,
11173 without necessarily linking other libraries statically.
11174 .IP "\fB\-static\-libmpxwrappers\fR" 4
11175 .IX Item "-static-libmpxwrappers"
11176 When the \fB\-fcheck\-pointer bounds\fR and \fB\-mmpx\fR options are used
11177 to link a program without also using \fB\-fno\-chkp\-use\-wrappers\fR, the
11178 \&\s-1GCC\s0 driver automatically links against \fIlibmpxwrappers\fR.  If
11179 \&\fIlibmpxwrappers\fR is available as a shared library, and the
11180 \&\fB\-static\fR option is not used, then this links against the shared
11181 version of \fIlibmpxwrappers\fR.  The \fB\-static\-libmpxwrappers\fR
11182 option directs the \s-1GCC\s0 driver to link \fIlibmpxwrappers\fR statically,
11183 without necessarily linking other libraries statically.
11184 .IP "\fB\-static\-libstdc++\fR" 4
11185 .IX Item "-static-libstdc++"
11186 When the \fBg++\fR program is used to link a \*(C+ program, it
11187 normally automatically links against \fBlibstdc++\fR.  If
11188 \&\fIlibstdc++\fR is available as a shared library, and the
11189 \&\fB\-static\fR option is not used, then this links against the
11190 shared version of \fIlibstdc++\fR.  That is normally fine.  However, it
11191 is sometimes useful to freeze the version of \fIlibstdc++\fR used by
11192 the program without going all the way to a fully static link.  The
11193 \&\fB\-static\-libstdc++\fR option directs the \fBg++\fR driver to
11194 link \fIlibstdc++\fR statically, without necessarily linking other
11195 libraries statically.
11196 .IP "\fB\-symbolic\fR" 4
11197 .IX Item "-symbolic"
11198 Bind references to global symbols when building a shared object.  Warn
11199 about any unresolved references (unless overridden by the link editor
11200 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
11201 this option.
11202 .IP "\fB\-T\fR \fIscript\fR" 4
11203 .IX Item "-T script"
11204 Use \fIscript\fR as the linker script.  This option is supported by most
11205 systems using the \s-1GNU\s0 linker.  On some targets, such as bare-board
11206 targets without an operating system, the \fB\-T\fR option may be required
11207 when linking to avoid references to undefined symbols.
11208 .IP "\fB\-Xlinker\fR \fIoption\fR" 4
11209 .IX Item "-Xlinker option"
11210 Pass \fIoption\fR as an option to the linker.  You can use this to
11211 supply system-specific linker options that \s-1GCC\s0 does not recognize.
11212 .Sp
11213 If you want to pass an option that takes a separate argument, you must use
11214 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
11215 For example, to pass \fB\-assert definitions\fR, you must write
11216 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
11217 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
11218 string as a single argument, which is not what the linker expects.
11219 .Sp
11220 When using the \s-1GNU\s0 linker, it is usually more convenient to pass
11221 arguments to linker options using the \fIoption\fR\fB=\fR\fIvalue\fR
11222 syntax than as separate arguments.  For example, you can specify
11223 \&\fB\-Xlinker \-Map=output.map\fR rather than
11224 \&\fB\-Xlinker \-Map \-Xlinker output.map\fR.  Other linkers may not support
11225 this syntax for command-line options.
11226 .IP "\fB\-Wl,\fR\fIoption\fR" 4
11227 .IX Item "-Wl,option"
11228 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
11229 commas, it is split into multiple options at the commas.  You can use this
11230 syntax to pass an argument to the option.
11231 For example, \fB\-Wl,\-Map,output.map\fR passes \fB\-Map output.map\fR to the
11232 linker.  When using the \s-1GNU\s0 linker, you can also get the same effect with
11233 \&\fB\-Wl,\-Map=output.map\fR.
11234 .IP "\fB\-u\fR \fIsymbol\fR" 4
11235 .IX Item "-u symbol"
11236 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
11237 library modules to define it.  You can use \fB\-u\fR multiple times with
11238 different symbols to force loading of additional library modules.
11239 .IP "\fB\-z\fR \fIkeyword\fR" 4
11240 .IX Item "-z keyword"
11241 \&\fB\-z\fR is passed directly on to the linker along with the keyword
11242 \&\fIkeyword\fR. See the section in the documentation of your linker for
11243 permitted values and their meanings.
11244 .Sh "Options for Directory Search"
11245 .IX Subsection "Options for Directory Search"
11246 These options specify directories to search for header files, for
11247 libraries and for parts of the compiler:
11248 .IP "\fB\-I\fR\fIdir\fR" 4
11249 .IX Item "-Idir"
11250 Add the directory \fIdir\fR to the head of the list of directories to be
11251 searched for header files.  This can be used to override a system header
11252 file, substituting your own version, since these directories are
11253 searched before the system header file directories.  However, you should
11254 not use this option to add directories that contain vendor-supplied
11255 system header files (use \fB\-isystem\fR for that).  If you use more than
11256 one \fB\-I\fR option, the directories are scanned in left-to-right
11257 order; the standard system directories come after.
11258 .Sp
11259 If a standard system include directory, or a directory specified with
11260 \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
11261 option is ignored.  The directory is still searched but as a
11262 system directory at its normal position in the system include chain.
11263 This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
11264 the ordering for the \f(CW\*(C`include_next\*(C'\fR directive are not inadvertently changed.
11265 If you really need to change the search order for system directories,
11266 use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
11267 .IP "\fB\-iplugindir=\fR\fIdir\fR" 4
11268 .IX Item "-iplugindir=dir"
11269 Set the directory to search for plugins that are passed
11270 by \fB\-fplugin=\fR\fIname\fR instead of
11271 \&\fB\-fplugin=\fR\fIpath\fR\fB/\fR\fIname\fR\fB.so\fR.  This option is not meant
11272 to be used by the user, but only passed by the driver.
11273 .IP "\fB\-iquote\fR\fIdir\fR" 4
11274 .IX Item "-iquotedir"
11275 Add the directory \fIdir\fR to the head of the list of directories to
11276 be searched for header files only for the case of \f(CW\*(C`#include
11277 "\f(CIfile\f(CW"\*(C'\fR; they are not searched for \f(CW\*(C`#include <\f(CIfile\f(CW>\*(C'\fR,
11278 otherwise just like \fB\-I\fR.
11279 .IP "\fB\-L\fR\fIdir\fR" 4
11280 .IX Item "-Ldir"
11281 Add directory \fIdir\fR to the list of directories to be searched
11282 for \fB\-l\fR.
11283 .IP "\fB\-B\fR\fIprefix\fR" 4
11284 .IX Item "-Bprefix"
11285 This option specifies where to find the executables, libraries,
11286 include files, and data files of the compiler itself.
11287 .Sp
11288 The compiler driver program runs one or more of the subprograms
11289 \&\fBcpp\fR, \fBcc1\fR, \fBas\fR and \fBld\fR.  It tries
11290 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
11291 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR.
11292 .Sp
11293 For each subprogram to be run, the compiler driver first tries the
11294 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
11295 is not specified, the driver tries two standard prefixes, 
11296 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR.  If neither of
11297 those results in a file name that is found, the unmodified program
11298 name is searched for using the directories specified in your
11299 \&\fB\s-1PATH\s0\fR environment variable.
11300 .Sp
11301 The compiler checks to see if the path provided by \fB\-B\fR
11302 refers to a directory, and if necessary it adds a directory
11303 separator character at the end of the path.
11304 .Sp
11305 \&\fB\-B\fR prefixes that effectively specify directory names also apply
11306 to libraries in the linker, because the compiler translates these
11307 options into \fB\-L\fR options for the linker.  They also apply to
11308 include files in the preprocessor, because the compiler translates these
11309 options into \fB\-isystem\fR options for the preprocessor.  In this case,
11310 the compiler appends \fBinclude\fR to the prefix.
11311 .Sp
11312 The runtime support file \fIlibgcc.a\fR can also be searched for using
11313 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
11314 standard prefixes above are tried, and that is all.  The file is left
11315 out of the link if it is not found by those means.
11316 .Sp
11317 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
11318 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.
11319 .Sp
11320 As a special kludge, if the path provided by \fB\-B\fR is
11321 \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
11322 9, then it is replaced by \fI[dir/]include\fR.  This is to help
11323 with boot-strapping the compiler.
11324 .IP "\fB\-specs=\fR\fIfile\fR" 4
11325 .IX Item "-specs=file"
11326 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
11327 file, in order to override the defaults which the \fBgcc\fR driver
11328 program uses when determining what switches to pass to \fBcc1\fR,
11329 \&\fBcc1plus\fR, \fBas\fR, \fBld\fR, etc.  More than one
11330 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
11331 are processed in order, from left to right.
11332 .IP "\fB\-\-sysroot=\fR\fIdir\fR" 4
11333 .IX Item "--sysroot=dir"
11334 Use \fIdir\fR as the logical root directory for headers and libraries.
11335 For example, if the compiler normally searches for headers in
11336 \&\fI/usr/include\fR and libraries in \fI/usr/lib\fR, it instead
11337 searches \fI\fIdir\fI/usr/include\fR and \fI\fIdir\fI/usr/lib\fR.
11338 .Sp
11339 If you use both this option and the \fB\-isysroot\fR option, then
11340 the \fB\-\-sysroot\fR option applies to libraries, but the
11341 \&\fB\-isysroot\fR option applies to header files.
11342 .Sp
11343 The \s-1GNU\s0 linker (beginning with version 2.16) has the necessary support
11344 for this option.  If your linker does not support this option, the
11345 header file aspect of \fB\-\-sysroot\fR still works, but the
11346 library aspect does not.
11347 .IP "\fB\-\-no\-sysroot\-suffix\fR" 4
11348 .IX Item "--no-sysroot-suffix"
11349 For some targets, a suffix is added to the root directory specified
11350 with \fB\-\-sysroot\fR, depending on the other options used, so that
11351 headers may for example be found in
11352 \&\fI\fIdir\fI/\fIsuffix\fI/usr/include\fR instead of
11353 \&\fI\fIdir\fI/usr/include\fR.  This option disables the addition of
11354 such a suffix.
11355 .IP "\fB\-I\-\fR" 4
11356 .IX Item "-I-"
11357 This option has been deprecated.  Please use \fB\-iquote\fR instead for
11358 \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR
11359 option.
11360 Any directories you specify with \fB\-I\fR options before the \fB\-I\-\fR
11361 option are searched only for the case of \f(CW\*(C`#include "\f(CIfile\f(CW"\*(C'\fR;
11362 they are not searched for \f(CW\*(C`#include <\f(CIfile\f(CW>\*(C'\fR.
11363 .Sp
11364 If additional directories are specified with \fB\-I\fR options after
11365 the \fB\-I\-\fR option, these directories are searched for all \f(CW\*(C`#include\*(C'\fR
11366 directives.  (Ordinarily \fIall\fR \fB\-I\fR directories are used
11367 this way.)
11368 .Sp
11369 In addition, the \fB\-I\-\fR option inhibits the use of the current
11370 directory (where the current input file came from) as the first search
11371 directory for \f(CW\*(C`#include "\f(CIfile\f(CW"\*(C'\fR.  There is no way to
11372 override this effect of \fB\-I\-\fR.  With \fB\-I.\fR you can specify
11373 searching the directory that is current when the compiler is
11374 invoked.  That is not exactly the same as what the preprocessor does
11375 by default, but it is often satisfactory.
11376 .Sp
11377 \&\fB\-I\-\fR does not inhibit the use of the standard system directories
11378 for header files.  Thus, \fB\-I\-\fR and \fB\-nostdinc\fR are
11379 independent.
11380 .Sh "Specifying Target Machine and Compiler Version"
11381 .IX Subsection "Specifying Target Machine and Compiler Version"
11382 The usual way to run \s-1GCC\s0 is to run the executable called \fBgcc\fR, or
11383 \&\fImachine\fR\fB\-gcc\fR when cross-compiling, or
11384 \&\fImachine\fR\fB\-gcc\-\fR\fIversion\fR to run a version other than the
11385 one that was installed last.
11386 .Sh "Hardware Models and Configurations"
11387 .IX Subsection "Hardware Models and Configurations"
11388 Each target machine types can have its own
11389 special options, starting with \fB\-m\fR, to choose among various
11390 hardware models or configurations\-\-\-for example, 68010 vs 68020,
11391 floating coprocessor or none.  A single installed version of the
11392 compiler can compile for any model or configuration, according to the
11393 options specified.
11394 .PP
11395 Some configurations of the compiler also support additional special
11396 options, usually for compatibility with other compilers on the same
11397 platform.
11398 .PP
11399 \fIAArch64 Options\fR
11400 .IX Subsection "AArch64 Options"
11401 .PP
11402 These options are defined for AArch64 implementations:
11403 .IP "\fB\-mabi=\fR\fIname\fR" 4
11404 .IX Item "-mabi=name"
11405 Generate code for the specified data model.  Permissible values
11406 are \fBilp32\fR for SysV-like data model where int, long int and pointer
11407 are 32\-bit, and \fBlp64\fR for SysV-like data model where int is 32\-bit,
11408 but long int and pointer are 64\-bit.
11409 .Sp
11410 The default depends on the specific target configuration.  Note that
11411 the \s-1LP64\s0 and \s-1ILP32\s0 ABIs are not link-compatible; you must compile your
11412 entire program with the same \s-1ABI\s0, and link with a compatible set of libraries.
11413 .IP "\fB\-mbig\-endian\fR" 4
11414 .IX Item "-mbig-endian"
11415 Generate big-endian code.  This is the default when \s-1GCC\s0 is configured for an
11416 \&\fBaarch64_be\-*\-*\fR target.
11417 .IP "\fB\-mgeneral\-regs\-only\fR" 4
11418 .IX Item "-mgeneral-regs-only"
11419 Generate code which uses only the general registers.
11420 .IP "\fB\-mlittle\-endian\fR" 4
11421 .IX Item "-mlittle-endian"
11422 Generate little-endian code.  This is the default when \s-1GCC\s0 is configured for an
11423 \&\fBaarch64\-*\-*\fR but not an \fBaarch64_be\-*\-*\fR target.
11424 .IP "\fB\-mcmodel=tiny\fR" 4
11425 .IX Item "-mcmodel=tiny"
11426 Generate code for the tiny code model.  The program and its statically defined
11427 symbols must be within 1GB of each other.  Pointers are 64 bits.  Programs can
11428 be statically or dynamically linked.  This model is not fully implemented and
11429 mostly treated as \fBsmall\fR.
11430 .IP "\fB\-mcmodel=small\fR" 4
11431 .IX Item "-mcmodel=small"
11432 Generate code for the small code model.  The program and its statically defined
11433 symbols must be within 4GB of each other.  Pointers are 64 bits.  Programs can
11434 be statically or dynamically linked.  This is the default code model.
11435 .IP "\fB\-mcmodel=large\fR" 4
11436 .IX Item "-mcmodel=large"
11437 Generate code for the large code model.  This makes no assumptions about
11438 addresses and sizes of sections.  Pointers are 64 bits.  Programs can be
11439 statically linked only.
11440 .IP "\fB\-mstrict\-align\fR" 4
11441 .IX Item "-mstrict-align"
11442 Do not assume that unaligned memory references are handled by the system.
11443 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
11444 .IX Item "-momit-leaf-frame-pointer"
11445 .PD 0
11446 .IP "\fB\-mno\-omit\-leaf\-frame\-pointer\fR" 4
11447 .IX Item "-mno-omit-leaf-frame-pointer"
11448 .PD
11449 Omit or keep the frame pointer in leaf functions.  The former behaviour is the
11450 default.
11451 .IP "\fB\-mtls\-dialect=desc\fR" 4
11452 .IX Item "-mtls-dialect=desc"
11453 Use \s-1TLS\s0 descriptors as the thread-local storage mechanism for dynamic accesses
11454 of \s-1TLS\s0 variables.  This is the default.
11455 .IP "\fB\-mtls\-dialect=traditional\fR" 4
11456 .IX Item "-mtls-dialect=traditional"
11457 Use traditional \s-1TLS\s0 as the thread-local storage mechanism for dynamic accesses
11458 of \s-1TLS\s0 variables.
11459 .IP "\fB\-mfix\-cortex\-a53\-835769\fR" 4
11460 .IX Item "-mfix-cortex-a53-835769"
11461 .PD 0
11462 .IP "\fB\-mno\-fix\-cortex\-a53\-835769\fR" 4
11463 .IX Item "-mno-fix-cortex-a53-835769"
11464 .PD
11465 Enable or disable the workaround for the \s-1ARM\s0 Cortex\-A53 erratum number 835769.
11466 This involves inserting a \s-1NOP\s0 instruction between memory instructions and
11467 64\-bit integer multiply-accumulate instructions.
11468 .IP "\fB\-mfix\-cortex\-a53\-843419\fR" 4
11469 .IX Item "-mfix-cortex-a53-843419"
11470 .PD 0
11471 .IP "\fB\-mno\-fix\-cortex\-a53\-843419\fR" 4
11472 .IX Item "-mno-fix-cortex-a53-843419"
11473 .PD
11474 Enable or disable the workaround for the \s-1ARM\s0 Cortex\-A53 erratum number 843419.
11475 This erratum workaround is made at link time and this will only pass the
11476 corresponding flag to the linker.
11477 .IP "\fB\-march=\fR\fIname\fR" 4
11478 .IX Item "-march=name"
11479 Specify the name of the target architecture, optionally suffixed by one or
11480 more feature modifiers.  This option has the form
11481 \&\fB\-march=\fR\fIarch\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*, where the
11482 only permissible value for \fIarch\fR is \fBarmv8\-a\fR.  The permissible
11483 values for \fIfeature\fR are documented in the sub-section below.
11484 .Sp
11485 Where conflicting feature modifiers are specified, the right-most feature is
11486 used.
11487 .Sp
11488 \&\s-1GCC\s0 uses this name to determine what kind of instructions it can emit when
11489 generating assembly code.
11490 .Sp
11491 Where \fB\-march\fR is specified without either of \fB\-mtune\fR
11492 or \fB\-mcpu\fR also being specified, the code is tuned to perform
11493 well across a range of target processors implementing the target
11494 architecture.
11495 .IP "\fB\-mtune=\fR\fIname\fR" 4
11496 .IX Item "-mtune=name"
11497 Specify the name of the target processor for which \s-1GCC\s0 should tune the
11498 performance of the code.  Permissible values for this option are:
11499 \&\fBgeneric\fR, \fBcortex\-a53\fR, \fBcortex\-a57\fR, \fBcortex\-a72\fR,
11500 \&\fBexynos\-m1\fR, \fBthunderx\fR, \fBxgene1\fR.
11501 .Sp
11502 Additionally, this option can specify that \s-1GCC\s0 should tune the performance
11503 of the code for a big.LITTLE system.  Permissible values for this
11504 option are: \fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR.
11505 .Sp
11506 Where none of \fB\-mtune=\fR, \fB\-mcpu=\fR or \fB\-march=\fR
11507 are specified, the code is tuned to perform well across a range
11508 of target processors.
11509 .Sp
11510 This option cannot be suffixed by feature modifiers.
11511 .IP "\fB\-mcpu=\fR\fIname\fR" 4
11512 .IX Item "-mcpu=name"
11513 Specify the name of the target processor, optionally suffixed by one or more
11514 feature modifiers.  This option has the form
11515 \&\fB\-mcpu=\fR\fIcpu\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*, where the
11516 permissible values for \fIcpu\fR are the same as those available for
11517 \&\fB\-mtune\fR.
11518 .Sp
11519 The permissible values for \fIfeature\fR are documented in the sub-section
11520 below.
11521 .Sp
11522 Where conflicting feature modifiers are specified, the right-most feature is
11523 used.
11524 .Sp
11525 \&\s-1GCC\s0 uses this name to determine what kind of instructions it can emit when
11526 generating assembly code (as if by \fB\-march\fR) and to determine
11527 the target processor for which to tune for performance (as if
11528 by \fB\-mtune\fR).  Where this option is used in conjunction
11529 with \fB\-march\fR or \fB\-mtune\fR, those options take precedence
11530 over the appropriate part of this option.
11531 .PP
11532 \fB\-march\fR and \fB\-mcpu\fR Feature Modifiers
11533 .IX Subsection "-march and -mcpu Feature Modifiers"
11534 .PP
11535 Feature modifiers used with \fB\-march\fR and \fB\-mcpu\fR can be one
11536 the following:
11537 .IP "\fBcrc\fR" 4
11538 .IX Item "crc"
11539 Enable \s-1CRC\s0 extension.
11540 .IP "\fBcrypto\fR" 4
11541 .IX Item "crypto"
11542 Enable Crypto extension.  This implies Advanced \s-1SIMD\s0 is enabled.
11543 .IP "\fBfp\fR" 4
11544 .IX Item "fp"
11545 Enable floating-point instructions.
11546 .IP "\fBsimd\fR" 4
11547 .IX Item "simd"
11548 Enable Advanced \s-1SIMD\s0 instructions.  This implies floating-point instructions
11549 are enabled.  This is the default for all current possible values for options
11550 \&\fB\-march\fR and \fB\-mcpu=\fR.
11551 .PP
11552 \fIAdapteva Epiphany Options\fR
11553 .IX Subsection "Adapteva Epiphany Options"
11554 .PP
11555 These \fB\-m\fR options are defined for Adapteva Epiphany:
11556 .IP "\fB\-mhalf\-reg\-file\fR" 4
11557 .IX Item "-mhalf-reg-file"
11558 Don't allocate any register in the range \f(CW\*(C`r32\*(C'\fR...\f(CW\*(C`r63\*(C'\fR.
11559 That allows code to run on hardware variants that lack these registers.
11560 .IP "\fB\-mprefer\-short\-insn\-regs\fR" 4
11561 .IX Item "-mprefer-short-insn-regs"
11562 Preferrentially allocate registers that allow short instruction generation.
11563 This can result in increased instruction count, so this may either reduce or
11564 increase overall code size.
11565 .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
11566 .IX Item "-mbranch-cost=num"
11567 Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
11568 This cost is only a heuristic and is not guaranteed to produce
11569 consistent results across releases.
11570 .IP "\fB\-mcmove\fR" 4
11571 .IX Item "-mcmove"
11572 Enable the generation of conditional moves.
11573 .IP "\fB\-mnops=\fR\fInum\fR" 4
11574 .IX Item "-mnops=num"
11575 Emit \fInum\fR NOPs before every other generated instruction.
11576 .IP "\fB\-mno\-soft\-cmpsf\fR" 4
11577 .IX Item "-mno-soft-cmpsf"
11578 For single-precision floating-point comparisons, emit an \f(CW\*(C`fsub\*(C'\fR instruction
11579 and test the flags.  This is faster than a software comparison, but can
11580 get incorrect results in the presence of NaNs, or when two different small
11581 numbers are compared such that their difference is calculated as zero.
11582 The default is \fB\-msoft\-cmpsf\fR, which uses slower, but IEEE-compliant,
11583 software comparisons.
11584 .IP "\fB\-mstack\-offset=\fR\fInum\fR" 4
11585 .IX Item "-mstack-offset=num"
11586 Set the offset between the top of the stack and the stack pointer.
11587 E.g., a value of 8 means that the eight bytes in the range \f(CW\*(C`sp+0...sp+7\*(C'\fR
11588 can be used by leaf functions without stack allocation.
11589 Values other than \fB8\fR or \fB16\fR are untested and unlikely to work.
11590 Note also that this option changes the \s-1ABI\s0; compiling a program with a
11591 different stack offset than the libraries have been compiled with
11592 generally does not work.
11593 This option can be useful if you want to evaluate if a different stack
11594 offset would give you better code, but to actually use a different stack
11595 offset to build working programs, it is recommended to configure the
11596 toolchain with the appropriate \fB\-\-with\-stack\-offset=\fR\fInum\fR option.
11597 .IP "\fB\-mno\-round\-nearest\fR" 4
11598 .IX Item "-mno-round-nearest"
11599 Make the scheduler assume that the rounding mode has been set to
11600 truncating.  The default is \fB\-mround\-nearest\fR.
11601 .IP "\fB\-mlong\-calls\fR" 4
11602 .IX Item "-mlong-calls"
11603 If not otherwise specified by an attribute, assume all calls might be beyond
11604 the offset range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, and therefore load the
11605 function address into a register before performing a (otherwise direct) call.
11606 This is the default.
11607 .IP "\fB\-mshort\-calls\fR" 4
11608 .IX Item "-mshort-calls"
11609 If not otherwise specified by an attribute, assume all direct calls are
11610 in the range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, so use these instructions
11611 for direct calls.  The default is \fB\-mlong\-calls\fR.
11612 .IP "\fB\-msmall16\fR" 4
11613 .IX Item "-msmall16"
11614 Assume addresses can be loaded as 16\-bit unsigned values.  This does not
11615 apply to function addresses for which \fB\-mlong\-calls\fR semantics
11616 are in effect.
11617 .IP "\fB\-mfp\-mode=\fR\fImode\fR" 4
11618 .IX Item "-mfp-mode=mode"
11619 Set the prevailing mode of the floating-point unit.
11620 This determines the floating-point mode that is provided and expected
11621 at function call and return time.  Making this mode match the mode you
11622 predominantly need at function start can make your programs smaller and
11623 faster by avoiding unnecessary mode switches.
11624 .Sp
11625 \&\fImode\fR can be set to one the following values:
11626 .RS 4
11627 .IP "\fBcaller\fR" 4
11628 .IX Item "caller"
11629 Any mode at function entry is valid, and retained or restored when
11630 the function returns, and when it calls other functions.
11631 This mode is useful for compiling libraries or other compilation units
11632 you might want to incorporate into different programs with different
11633 prevailing \s-1FPU\s0 modes, and the convenience of being able to use a single
11634 object file outweighs the size and speed overhead for any extra
11635 mode switching that might be needed, compared with what would be needed
11636 with a more specific choice of prevailing \s-1FPU\s0 mode.
11637 .IP "\fBtruncate\fR" 4
11638 .IX Item "truncate"
11639 This is the mode used for floating-point calculations with
11640 truncating (i.e. round towards zero) rounding mode.  That includes
11641 conversion from floating point to integer.
11642 .IP "\fBround-nearest\fR" 4
11643 .IX Item "round-nearest"
11644 This is the mode used for floating-point calculations with
11645 round-to-nearest-or-even rounding mode.
11646 .IP "\fBint\fR" 4
11647 .IX Item "int"
11648 This is the mode used to perform integer calculations in the \s-1FPU\s0, e.g.
11649 integer multiply, or integer multiply-and-accumulate.
11650 .RE
11651 .RS 4
11652 .Sp
11653 The default is \fB\-mfp\-mode=caller\fR
11654 .RE
11655 .IP "\fB\-mnosplit\-lohi\fR" 4
11656 .IX Item "-mnosplit-lohi"
11657 .PD 0
11658 .IP "\fB\-mno\-postinc\fR" 4
11659 .IX Item "-mno-postinc"
11660 .IP "\fB\-mno\-postmodify\fR" 4
11661 .IX Item "-mno-postmodify"
11662 .PD
11663 Code generation tweaks that disable, respectively, splitting of 32\-bit
11664 loads, generation of post-increment addresses, and generation of
11665 post-modify addresses.  The defaults are \fBmsplit-lohi\fR,
11666 \&\fB\-mpost\-inc\fR, and \fB\-mpost\-modify\fR.
11667 .IP "\fB\-mnovect\-double\fR" 4
11668 .IX Item "-mnovect-double"
11669 Change the preferred \s-1SIMD\s0 mode to SImode.  The default is
11670 \&\fB\-mvect\-double\fR, which uses DImode as preferred \s-1SIMD\s0 mode.
11671 .IP "\fB\-max\-vect\-align=\fR\fInum\fR" 4
11672 .IX Item "-max-vect-align=num"
11673 The maximum alignment for \s-1SIMD\s0 vector mode types.
11674 \&\fInum\fR may be 4 or 8.  The default is 8.
11675 Note that this is an \s-1ABI\s0 change, even though many library function
11676 interfaces are unaffected if they don't use \s-1SIMD\s0 vector modes
11677 in places that affect size and/or alignment of relevant types.
11678 .IP "\fB\-msplit\-vecmove\-early\fR" 4
11679 .IX Item "-msplit-vecmove-early"
11680 Split vector moves into single word moves before reload.  In theory this
11681 can give better register allocation, but so far the reverse seems to be
11682 generally the case.
11683 .IP "\fB\-m1reg\-\fR\fIreg\fR" 4
11684 .IX Item "-m1reg-reg"
11685 Specify a register to hold the constant \-1, which makes loading small negative
11686 constants and certain bitmasks faster.
11687 Allowable values for \fIreg\fR are \fBr43\fR and \fBr63\fR,
11688 which specify use of that register as a fixed register,
11689 and \fBnone\fR, which means that no register is used for this
11690 purpose.  The default is \fB\-m1reg\-none\fR.
11691 .PP
11692 \fI\s-1ARC\s0 Options\fR
11693 .IX Subsection "ARC Options"
11694 .PP
11695 The following options control the architecture variant for which code
11696 is being compiled:
11697 .IP "\fB\-mbarrel\-shifter\fR" 4
11698 .IX Item "-mbarrel-shifter"
11699 Generate instructions supported by barrel shifter.  This is the default
11700 unless \fB\-mcpu=ARC601\fR is in effect.
11701 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
11702 .IX Item "-mcpu=cpu"
11703 Set architecture type, register usage, and instruction scheduling
11704 parameters for \fIcpu\fR.  There are also shortcut alias options
11705 available for backward compatibility and convenience.  Supported
11706 values for \fIcpu\fR are
11707 .RS 4
11708 .IP "\fB\s-1ARC600\s0\fR" 4
11709 .IX Item "ARC600"
11710 Compile for \s-1ARC600\s0.  Aliases: \fB\-mA6\fR, \fB\-mARC600\fR.
11711 .IP "\fB\s-1ARC601\s0\fR" 4
11712 .IX Item "ARC601"
11713 Compile for \s-1ARC601\s0.  Alias: \fB\-mARC601\fR.
11714 .IP "\fB\s-1ARC700\s0\fR" 4
11715 .IX Item "ARC700"
11716 Compile for \s-1ARC700\s0.  Aliases: \fB\-mA7\fR, \fB\-mARC700\fR.
11717 This is the default when configured with \fB\-\-with\-cpu=arc700\fR.
11718 .RE
11719 .RS 4
11720 .RE
11721 .IP "\fB\-mdpfp\fR" 4
11722 .IX Item "-mdpfp"
11723 .PD 0
11724 .IP "\fB\-mdpfp\-compact\fR" 4
11725 .IX Item "-mdpfp-compact"
11726 .PD
11727 \&\s-1FPX:\s0 Generate Double Precision \s-1FPX\s0 instructions, tuned for the compact
11728 implementation.
11729 .IP "\fB\-mdpfp\-fast\fR" 4
11730 .IX Item "-mdpfp-fast"
11731 \&\s-1FPX:\s0 Generate Double Precision \s-1FPX\s0 instructions, tuned for the fast
11732 implementation.
11733 .IP "\fB\-mno\-dpfp\-lrsr\fR" 4
11734 .IX Item "-mno-dpfp-lrsr"
11735 Disable \s-1LR\s0 and \s-1SR\s0 instructions from using \s-1FPX\s0 extension aux registers.
11736 .IP "\fB\-mea\fR" 4
11737 .IX Item "-mea"
11738 Generate Extended arithmetic instructions.  Currently only
11739 \&\f(CW\*(C`divaw\*(C'\fR, \f(CW\*(C`adds\*(C'\fR, \f(CW\*(C`subs\*(C'\fR, and \f(CW\*(C`sat16\*(C'\fR are
11740 supported.  This is always enabled for \fB\-mcpu=ARC700\fR.
11741 .IP "\fB\-mno\-mpy\fR" 4
11742 .IX Item "-mno-mpy"
11743 Do not generate mpy instructions for \s-1ARC700\s0.
11744 .IP "\fB\-mmul32x16\fR" 4
11745 .IX Item "-mmul32x16"
11746 Generate 32x16 bit multiply and mac instructions.
11747 .IP "\fB\-mmul64\fR" 4
11748 .IX Item "-mmul64"
11749 Generate mul64 and mulu64 instructions.  Only valid for \fB\-mcpu=ARC600\fR.
11750 .IP "\fB\-mnorm\fR" 4
11751 .IX Item "-mnorm"
11752 Generate norm instruction.  This is the default if \fB\-mcpu=ARC700\fR
11753 is in effect.
11754 .IP "\fB\-mspfp\fR" 4
11755 .IX Item "-mspfp"
11756 .PD 0
11757 .IP "\fB\-mspfp\-compact\fR" 4
11758 .IX Item "-mspfp-compact"
11759 .PD
11760 \&\s-1FPX:\s0 Generate Single Precision \s-1FPX\s0 instructions, tuned for the compact
11761 implementation.
11762 .IP "\fB\-mspfp\-fast\fR" 4
11763 .IX Item "-mspfp-fast"
11764 \&\s-1FPX:\s0 Generate Single Precision \s-1FPX\s0 instructions, tuned for the fast
11765 implementation.
11766 .IP "\fB\-msimd\fR" 4
11767 .IX Item "-msimd"
11768 Enable generation of \s-1ARC\s0 \s-1SIMD\s0 instructions via target-specific
11769 builtins.  Only valid for \fB\-mcpu=ARC700\fR.
11770 .IP "\fB\-msoft\-float\fR" 4
11771 .IX Item "-msoft-float"
11772 This option ignored; it is provided for compatibility purposes only.
11773 Software floating point code is emitted by default, and this default
11774 can overridden by \s-1FPX\s0 options; \fBmspfp\fR, \fBmspfp-compact\fR, or
11775 \&\fBmspfp-fast\fR for single precision, and \fBmdpfp\fR,
11776 \&\fBmdpfp-compact\fR, or \fBmdpfp-fast\fR for double precision.
11777 .IP "\fB\-mswap\fR" 4
11778 .IX Item "-mswap"
11779 Generate swap instructions.
11780 .PP
11781 The following options are passed through to the assembler, and also
11782 define preprocessor macro symbols.
11783 .IP "\fB\-mdsp\-packa\fR" 4
11784 .IX Item "-mdsp-packa"
11785 Passed down to the assembler to enable the \s-1DSP\s0 Pack A extensions.
11786 Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdsp_packa\*(C'\fR.
11787 .IP "\fB\-mdvbf\fR" 4
11788 .IX Item "-mdvbf"
11789 Passed down to the assembler to enable the dual viterbi butterfly
11790 extension.  Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdvbf\*(C'\fR.
11791 .IP "\fB\-mlock\fR" 4
11792 .IX Item "-mlock"
11793 Passed down to the assembler to enable the Locked Load/Store
11794 Conditional extension.  Also sets the preprocessor symbol
11795 \&\f(CW\*(C`_\|_Xlock\*(C'\fR.
11796 .IP "\fB\-mmac\-d16\fR" 4
11797 .IX Item "-mmac-d16"
11798 Passed down to the assembler.  Also sets the preprocessor symbol
11799 \&\f(CW\*(C`_\|_Xxmac_d16\*(C'\fR.
11800 .IP "\fB\-mmac\-24\fR" 4
11801 .IX Item "-mmac-24"
11802 Passed down to the assembler.  Also sets the preprocessor symbol
11803 \&\f(CW\*(C`_\|_Xxmac_24\*(C'\fR.
11804 .IP "\fB\-mrtsc\fR" 4
11805 .IX Item "-mrtsc"
11806 Passed down to the assembler to enable the 64\-bit Time-Stamp Counter
11807 extension instruction.  Also sets the preprocessor symbol
11808 \&\f(CW\*(C`_\|_Xrtsc\*(C'\fR.
11809 .IP "\fB\-mswape\fR" 4
11810 .IX Item "-mswape"
11811 Passed down to the assembler to enable the swap byte ordering
11812 extension instruction.  Also sets the preprocessor symbol
11813 \&\f(CW\*(C`_\|_Xswape\*(C'\fR.
11814 .IP "\fB\-mtelephony\fR" 4
11815 .IX Item "-mtelephony"
11816 Passed down to the assembler to enable dual and single operand
11817 instructions for telephony.  Also sets the preprocessor symbol
11818 \&\f(CW\*(C`_\|_Xtelephony\*(C'\fR.
11819 .IP "\fB\-mxy\fR" 4
11820 .IX Item "-mxy"
11821 Passed down to the assembler to enable the \s-1XY\s0 Memory extension.  Also
11822 sets the preprocessor symbol \f(CW\*(C`_\|_Xxy\*(C'\fR.
11823 .PP
11824 The following options control how the assembly code is annotated:
11825 .IP "\fB\-misize\fR" 4
11826 .IX Item "-misize"
11827 Annotate assembler instructions with estimated addresses.
11828 .IP "\fB\-mannotate\-align\fR" 4
11829 .IX Item "-mannotate-align"
11830 Explain what alignment considerations lead to the decision to make an
11831 instruction short or long.
11832 .PP
11833 The following options are passed through to the linker:
11834 .IP "\fB\-marclinux\fR" 4
11835 .IX Item "-marclinux"
11836 Passed through to the linker, to specify use of the \f(CW\*(C`arclinux\*(C'\fR emulation.
11837 This option is enabled by default in tool chains built for
11838 \&\f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets
11839 when profiling is not requested.
11840 .IP "\fB\-marclinux_prof\fR" 4
11841 .IX Item "-marclinux_prof"
11842 Passed through to the linker, to specify use of the
11843 \&\f(CW\*(C`arclinux_prof\*(C'\fR emulation.  This option is enabled by default in
11844 tool chains built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and
11845 \&\f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets when profiling is requested.
11846 .PP
11847 The following options control the semantics of generated code:
11848 .IP "\fB\-mepilogue\-cfi\fR" 4
11849 .IX Item "-mepilogue-cfi"
11850 Enable generation of call frame information for epilogues.
11851 .IP "\fB\-mno\-epilogue\-cfi\fR" 4
11852 .IX Item "-mno-epilogue-cfi"
11853 Disable generation of call frame information for epilogues.
11854 .IP "\fB\-mlong\-calls\fR" 4
11855 .IX Item "-mlong-calls"
11856 Generate call insns as register indirect calls, thus providing access
11857 to the full 32\-bit address range.
11858 .IP "\fB\-mmedium\-calls\fR" 4
11859 .IX Item "-mmedium-calls"
11860 Don't use less than 25 bit addressing range for calls, which is the
11861 offset available for an unconditional branch-and-link
11862 instruction.  Conditional execution of function calls is suppressed, to
11863 allow use of the 25\-bit range, rather than the 21\-bit range with
11864 conditional branch-and-link.  This is the default for tool chains built
11865 for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets.
11866 .IP "\fB\-mno\-sdata\fR" 4
11867 .IX Item "-mno-sdata"
11868 Do not generate sdata references.  This is the default for tool chains
11869 built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR
11870 targets.
11871 .IP "\fB\-mucb\-mcount\fR" 4
11872 .IX Item "-mucb-mcount"
11873 Instrument with mcount calls as used in \s-1UCB\s0 code.  I.e. do the
11874 counting in the callee, not the caller.  By default \s-1ARC\s0 instrumentation
11875 counts in the caller.
11876 .IP "\fB\-mvolatile\-cache\fR" 4
11877 .IX Item "-mvolatile-cache"
11878 Use ordinarily cached memory accesses for volatile references.  This is the
11879 default.
11880 .IP "\fB\-mno\-volatile\-cache\fR" 4
11881 .IX Item "-mno-volatile-cache"
11882 Enable cache bypass for volatile references.
11883 .PP
11884 The following options fine tune code generation:
11885 .IP "\fB\-malign\-call\fR" 4
11886 .IX Item "-malign-call"
11887 Do alignment optimizations for call instructions.
11888 .IP "\fB\-mauto\-modify\-reg\fR" 4
11889 .IX Item "-mauto-modify-reg"
11890 Enable the use of pre/post modify with register displacement.
11891 .IP "\fB\-mbbit\-peephole\fR" 4
11892 .IX Item "-mbbit-peephole"
11893 Enable bbit peephole2.
11894 .IP "\fB\-mno\-brcc\fR" 4
11895 .IX Item "-mno-brcc"
11896 This option disables a target-specific pass in \fIarc_reorg\fR to
11897 generate \f(CW\*(C`BRcc\*(C'\fR instructions.  It has no effect on \f(CW\*(C`BRcc\*(C'\fR
11898 generation driven by the combiner pass.
11899 .IP "\fB\-mcase\-vector\-pcrel\fR" 4
11900 .IX Item "-mcase-vector-pcrel"
11901 Use pc-relative switch case tables \- this enables case table shortening.
11902 This is the default for \fB\-Os\fR.
11903 .IP "\fB\-mcompact\-casesi\fR" 4
11904 .IX Item "-mcompact-casesi"
11905 Enable compact casesi pattern.
11906 This is the default for \fB\-Os\fR.
11907 .IP "\fB\-mno\-cond\-exec\fR" 4
11908 .IX Item "-mno-cond-exec"
11909 Disable ARCompact specific pass to generate conditional execution instructions.
11910 Due to delay slot scheduling and interactions between operand numbers,
11911 literal sizes, instruction lengths, and the support for conditional execution,
11912 the target-independent pass to generate conditional execution is often lacking,
11913 so the \s-1ARC\s0 port has kept a special pass around that tries to find more
11914 conditional execution generating opportunities after register allocation,
11915 branch shortening, and delay slot scheduling have been done.  This pass
11916 generally, but not always, improves performance and code size, at the cost of
11917 extra compilation time, which is why there is an option to switch it off.
11918 If you have a problem with call instructions exceeding their allowable
11919 offset range because they are conditionalized, you should consider using
11920 \&\fB\-mmedium\-calls\fR instead.
11921 .IP "\fB\-mearly\-cbranchsi\fR" 4
11922 .IX Item "-mearly-cbranchsi"
11923 Enable pre-reload use of the cbranchsi pattern.
11924 .IP "\fB\-mexpand\-adddi\fR" 4
11925 .IX Item "-mexpand-adddi"
11926 Expand \f(CW\*(C`adddi3\*(C'\fR and \f(CW\*(C`subdi3\*(C'\fR at rtl generation time into
11927 \&\f(CW\*(C`add.f\*(C'\fR, \f(CW\*(C`adc\*(C'\fR etc.
11928 .IP "\fB\-mindexed\-loads\fR" 4
11929 .IX Item "-mindexed-loads"
11930 Enable the use of indexed loads.  This can be problematic because some
11931 optimizers then assume that indexed stores exist, which is not
11932 the case.
11933 .IP "\fB\-mlra\fR" 4
11934 .IX Item "-mlra"
11935 Enable Local Register Allocation.  This is still experimental for \s-1ARC\s0,
11936 so by default the compiler uses standard reload
11937 (i.e. \fB\-mno\-lra\fR).
11938 .IP "\fB\-mlra\-priority\-none\fR" 4
11939 .IX Item "-mlra-priority-none"
11940 Don't indicate any priority for target registers.
11941 .IP "\fB\-mlra\-priority\-compact\fR" 4
11942 .IX Item "-mlra-priority-compact"
11943 Indicate target register priority for r0..r3 / r12..r15.
11944 .IP "\fB\-mlra\-priority\-noncompact\fR" 4
11945 .IX Item "-mlra-priority-noncompact"
11946 Reduce target regsiter priority for r0..r3 / r12..r15.
11947 .IP "\fB\-mno\-millicode\fR" 4
11948 .IX Item "-mno-millicode"
11949 When optimizing for size (using \fB\-Os\fR), prologues and epilogues
11950 that have to save or restore a large number of registers are often
11951 shortened by using call to a special function in libgcc; this is
11952 referred to as a \fImillicode\fR call.  As these calls can pose
11953 performance issues, and/or cause linking issues when linking in a
11954 nonstandard way, this option is provided to turn off millicode call
11955 generation.
11956 .IP "\fB\-mmixed\-code\fR" 4
11957 .IX Item "-mmixed-code"
11958 Tweak register allocation to help 16\-bit instruction generation.
11959 This generally has the effect of decreasing the average instruction size
11960 while increasing the instruction count.
11961 .IP "\fB\-mq\-class\fR" 4
11962 .IX Item "-mq-class"
11963 Enable 'q' instruction alternatives.
11964 This is the default for \fB\-Os\fR.
11965 .IP "\fB\-mRcq\fR" 4
11966 .IX Item "-mRcq"
11967 Enable Rcq constraint handling \- most short code generation depends on this.
11968 This is the default.
11969 .IP "\fB\-mRcw\fR" 4
11970 .IX Item "-mRcw"
11971 Enable Rcw constraint handling \- ccfsm condexec mostly depends on this.
11972 This is the default.
11973 .IP "\fB\-msize\-level=\fR\fIlevel\fR" 4
11974 .IX Item "-msize-level=level"
11975 Fine-tune size optimization with regards to instruction lengths and alignment.
11976 The recognized values for \fIlevel\fR are:
11977 .RS 4
11978 .IP "\fB0\fR" 4
11979 .IX Item "0"
11980 No size optimization.  This level is deprecated and treated like \fB1\fR.
11981 .IP "\fB1\fR" 4
11982 .IX Item "1"
11983 Short instructions are used opportunistically.
11984 .IP "\fB2\fR" 4
11985 .IX Item "2"
11986 In addition, alignment of loops and of code after barriers are dropped.
11987 .IP "\fB3\fR" 4
11988 .IX Item "3"
11989 In addition, optional data alignment is dropped, and the option \fBOs\fR is enabled.
11990 .RE
11991 .RS 4
11992 .Sp
11993 This defaults to \fB3\fR when \fB\-Os\fR is in effect.  Otherwise,
11994 the behavior when this is not set is equivalent to level \fB1\fR.
11995 .RE
11996 .IP "\fB\-mtune=\fR\fIcpu\fR" 4
11997 .IX Item "-mtune=cpu"
11998 Set instruction scheduling parameters for \fIcpu\fR, overriding any implied
11999 by \fB\-mcpu=\fR.
12000 .Sp
12001 Supported values for \fIcpu\fR are
12002 .RS 4
12003 .IP "\fB\s-1ARC600\s0\fR" 4
12004 .IX Item "ARC600"
12005 Tune for \s-1ARC600\s0 cpu.
12006 .IP "\fB\s-1ARC601\s0\fR" 4
12007 .IX Item "ARC601"
12008 Tune for \s-1ARC601\s0 cpu.
12009 .IP "\fB\s-1ARC700\s0\fR" 4
12010 .IX Item "ARC700"
12011 Tune for \s-1ARC700\s0 cpu with standard multiplier block.
12012 .IP "\fBARC700\-xmac\fR" 4
12013 .IX Item "ARC700-xmac"
12014 Tune for \s-1ARC700\s0 cpu with \s-1XMAC\s0 block.
12015 .IP "\fB\s-1ARC725D\s0\fR" 4
12016 .IX Item "ARC725D"
12017 Tune for \s-1ARC725D\s0 cpu.
12018 .IP "\fB\s-1ARC750D\s0\fR" 4
12019 .IX Item "ARC750D"
12020 Tune for \s-1ARC750D\s0 cpu.
12021 .RE
12022 .RS 4
12023 .RE
12024 .IP "\fB\-mmultcost=\fR\fInum\fR" 4
12025 .IX Item "-mmultcost=num"
12026 Cost to assume for a multiply instruction, with \fB4\fR being equal to a
12027 normal instruction.
12028 .IP "\fB\-munalign\-prob\-threshold=\fR\fIprobability\fR" 4
12029 .IX Item "-munalign-prob-threshold=probability"
12030 Set probability threshold for unaligning branches.
12031 When tuning for \fB\s-1ARC700\s0\fR and optimizing for speed, branches without
12032 filled delay slot are preferably emitted unaligned and long, unless
12033 profiling indicates that the probability for the branch to be taken
12034 is below \fIprobability\fR.  
12035 The default is (\s-1REG_BR_PROB_BASE/2\s0), i.e. 5000.
12036 .PP
12037 The following options are maintained for backward compatibility, but
12038 are now deprecated and will be removed in a future release:
12039 .IP "\fB\-margonaut\fR" 4
12040 .IX Item "-margonaut"
12041 Obsolete \s-1FPX\s0.
12042 .IP "\fB\-mbig\-endian\fR" 4
12043 .IX Item "-mbig-endian"
12044 .PD 0
12045 .IP "\fB\-EB\fR" 4
12046 .IX Item "-EB"
12047 .PD
12048 Compile code for big endian targets.  Use of these options is now
12049 deprecated.  Users wanting big-endian code, should use the
12050 \&\f(CW\*(C`arceb\-elf32\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets when
12051 building the tool chain, for which big-endian is the default.
12052 .IP "\fB\-mlittle\-endian\fR" 4
12053 .IX Item "-mlittle-endian"
12054 .PD 0
12055 .IP "\fB\-EL\fR" 4
12056 .IX Item "-EL"
12057 .PD
12058 Compile code for little endian targets.  Use of these options is now
12059 deprecated.  Users wanting little-endian code should use the
12060 \&\f(CW\*(C`arc\-elf32\*(C'\fR and \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR targets when
12061 building the tool chain, for which little-endian is the default.
12062 .IP "\fB\-mbarrel_shifter\fR" 4
12063 .IX Item "-mbarrel_shifter"
12064 Replaced by \fB\-mbarrel\-shifter\fR.
12065 .IP "\fB\-mdpfp_compact\fR" 4
12066 .IX Item "-mdpfp_compact"
12067 Replaced by \fB\-mdpfp\-compact\fR.
12068 .IP "\fB\-mdpfp_fast\fR" 4
12069 .IX Item "-mdpfp_fast"
12070 Replaced by \fB\-mdpfp\-fast\fR.
12071 .IP "\fB\-mdsp_packa\fR" 4
12072 .IX Item "-mdsp_packa"
12073 Replaced by \fB\-mdsp\-packa\fR.
12074 .IP "\fB\-mEA\fR" 4
12075 .IX Item "-mEA"
12076 Replaced by \fB\-mea\fR.
12077 .IP "\fB\-mmac_24\fR" 4
12078 .IX Item "-mmac_24"
12079 Replaced by \fB\-mmac\-24\fR.
12080 .IP "\fB\-mmac_d16\fR" 4
12081 .IX Item "-mmac_d16"
12082 Replaced by \fB\-mmac\-d16\fR.
12083 .IP "\fB\-mspfp_compact\fR" 4
12084 .IX Item "-mspfp_compact"
12085 Replaced by \fB\-mspfp\-compact\fR.
12086 .IP "\fB\-mspfp_fast\fR" 4
12087 .IX Item "-mspfp_fast"
12088 Replaced by \fB\-mspfp\-fast\fR.
12089 .IP "\fB\-mtune=\fR\fIcpu\fR" 4
12090 .IX Item "-mtune=cpu"
12091 Values \fBarc600\fR, \fBarc601\fR, \fBarc700\fR and
12092 \&\fBarc700\-xmac\fR for \fIcpu\fR are replaced by \fB\s-1ARC600\s0\fR,
12093 \&\fB\s-1ARC601\s0\fR, \fB\s-1ARC700\s0\fR and \fBARC700\-xmac\fR respectively
12094 .IP "\fB\-multcost=\fR\fInum\fR" 4
12095 .IX Item "-multcost=num"
12096 Replaced by \fB\-mmultcost\fR.
12097 .PP
12098 \fI\s-1ARM\s0 Options\fR
12099 .IX Subsection "ARM Options"
12100 .PP
12101 These \fB\-m\fR options are defined for the \s-1ARM\s0 port:
12102 .IP "\fB\-mabi=\fR\fIname\fR" 4
12103 .IX Item "-mabi=name"
12104 Generate code for the specified \s-1ABI\s0.  Permissible values are: \fBapcs-gnu\fR,
12105 \&\fBatpcs\fR, \fBaapcs\fR, \fBaapcs-linux\fR and \fBiwmmxt\fR.
12106 .IP "\fB\-mapcs\-frame\fR" 4
12107 .IX Item "-mapcs-frame"
12108 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
12109 Standard for all functions, even if this is not strictly necessary for
12110 correct execution of the code.  Specifying \fB\-fomit\-frame\-pointer\fR
12111 with this option causes the stack frames not to be generated for
12112 leaf functions.  The default is \fB\-mno\-apcs\-frame\fR.
12113 This option is deprecated.
12114 .IP "\fB\-mapcs\fR" 4
12115 .IX Item "-mapcs"
12116 This is a synonym for \fB\-mapcs\-frame\fR and is deprecated.
12117 .IP "\fB\-mthumb\-interwork\fR" 4
12118 .IX Item "-mthumb-interwork"
12119 Generate code that supports calling between the \s-1ARM\s0 and Thumb
12120 instruction sets.  Without this option, on pre\-v5 architectures, the
12121 two instruction sets cannot be reliably used inside one program.  The
12122 default is \fB\-mno\-thumb\-interwork\fR, since slightly larger code
12123 is generated when \fB\-mthumb\-interwork\fR is specified.  In \s-1AAPCS\s0
12124 configurations this option is meaningless.
12125 .IP "\fB\-mno\-sched\-prolog\fR" 4
12126 .IX Item "-mno-sched-prolog"
12127 Prevent the reordering of instructions in the function prologue, or the
12128 merging of those instruction with the instructions in the function's
12129 body.  This means that all functions start with a recognizable set
12130 of instructions (or in fact one of a choice from a small set of
12131 different function prologues), and this information can be used to
12132 locate the start of functions inside an executable piece of code.  The
12133 default is \fB\-msched\-prolog\fR.
12134 .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
12135 .IX Item "-mfloat-abi=name"
12136 Specifies which floating-point \s-1ABI\s0 to use.  Permissible values
12137 are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
12138 .Sp
12139 Specifying \fBsoft\fR causes \s-1GCC\s0 to generate output containing
12140 library calls for floating-point operations.
12141 \&\fBsoftfp\fR allows the generation of code using hardware floating-point
12142 instructions, but still uses the soft-float calling conventions.
12143 \&\fBhard\fR allows generation of floating-point instructions
12144 and uses FPU-specific calling conventions.
12145 .Sp
12146 The default depends on the specific target configuration.  Note that
12147 the hard-float and soft-float ABIs are not link-compatible; you must
12148 compile your entire program with the same \s-1ABI\s0, and link with a
12149 compatible set of libraries.
12150 .IP "\fB\-mlittle\-endian\fR" 4
12151 .IX Item "-mlittle-endian"
12152 Generate code for a processor running in little-endian mode.  This is
12153 the default for all standard configurations.
12154 .IP "\fB\-mbig\-endian\fR" 4
12155 .IX Item "-mbig-endian"
12156 Generate code for a processor running in big-endian mode; the default is
12157 to compile code for a little-endian processor.
12158 .IP "\fB\-march=\fR\fIname\fR" 4
12159 .IX Item "-march=name"
12160 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
12161 name to determine what kind of instructions it can emit when generating
12162 assembly code.  This option can be used in conjunction with or instead
12163 of the \fB\-mcpu=\fR option.  Permissible names are: \fBarmv2\fR,
12164 \&\fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR, \fBarmv4\fR, \fBarmv4t\fR,
12165 \&\fBarmv5\fR, \fBarmv5t\fR, \fBarmv5e\fR, \fBarmv5te\fR,
12166 \&\fBarmv6\fR, \fBarmv6j\fR,
12167 \&\fBarmv6t2\fR, \fBarmv6z\fR, \fBarmv6zk\fR, \fBarmv6\-m\fR,
12168 \&\fBarmv7\fR, \fBarmv7\-a\fR, \fBarmv7\-r\fR, \fBarmv7\-m\fR, \fBarmv7e\-m\fR,
12169 \&\fBarmv7ve\fR, \fBarmv8\-a\fR, \fBarmv8\-a+crc\fR,
12170 \&\fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR.
12171 .Sp
12172 \&\fB\-march=armv7ve\fR is the armv7\-a architecture with virtualization
12173 extensions.
12174 .Sp
12175 \&\fB\-march=armv8\-a+crc\fR enables code generation for the ARMv8\-A
12176 architecture together with the optional \s-1CRC32\s0 extensions.
12177 .Sp
12178 \&\fB\-march=native\fR causes the compiler to auto-detect the architecture
12179 of the build computer.  At present, this feature is only supported on
12180 GNU/Linux, and not all architectures are recognized.  If the auto-detect
12181 is unsuccessful the option has no effect.
12182 .IP "\fB\-mtune=\fR\fIname\fR" 4
12183 .IX Item "-mtune=name"
12184 This option specifies the name of the target \s-1ARM\s0 processor for
12185 which \s-1GCC\s0 should tune the performance of the code.
12186 For some \s-1ARM\s0 implementations better performance can be obtained by using
12187 this option.
12188 Permissible names are: \fBarm2\fR, \fBarm250\fR,
12189 \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
12190 \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
12191 \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
12192 \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
12193 \&\fBarm720\fR,
12194 \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR,
12195 \&\fBarm710t\fR, \fBarm720t\fR, \fBarm740t\fR,
12196 \&\fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
12197 \&\fBstrongarm1110\fR,
12198 \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
12199 \&\fBarm920t\fR, \fBarm922t\fR, \fBarm946e\-s\fR, \fBarm966e\-s\fR,
12200 \&\fBarm968e\-s\fR, \fBarm926ej\-s\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
12201 \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ej\-s\fR,
12202 \&\fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
12203 \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
12204 \&\fBarm1156t2\-s\fR, \fBarm1156t2f\-s\fR, \fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR,
12205 \&\fBcortex\-a5\fR, \fBcortex\-a7\fR, \fBcortex\-a8\fR, \fBcortex\-a9\fR,
12206 \&\fBcortex\-a12\fR, \fBcortex\-a15\fR, \fBcortex\-a53\fR,
12207 \&\fBcortex\-a57\fR, \fBcortex\-a72\fR,
12208 \&\fBcortex\-r4\fR,
12209 \&\fBcortex\-r4f\fR, \fBcortex\-r5\fR, \fBcortex\-r7\fR, \fBcortex\-m7\fR,
12210 \&\fBcortex\-m4\fR,
12211 \&\fBcortex\-m3\fR,
12212 \&\fBcortex\-m1\fR,
12213 \&\fBcortex\-m0\fR,
12214 \&\fBcortex\-m0plus\fR,
12215 \&\fBcortex\-m1.small\-multiply\fR,
12216 \&\fBcortex\-m0.small\-multiply\fR,
12217 \&\fBcortex\-m0plus.small\-multiply\fR,
12218 \&\fBexynos\-m1\fR,
12219 \&\fBmarvell\-pj4\fR,
12220 \&\fBxscale\fR, \fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR,
12221 \&\fBfa526\fR, \fBfa626\fR,
12222 \&\fBfa606te\fR, \fBfa626te\fR, \fBfmp626\fR, \fBfa726te\fR,
12223 \&\fBxgene1\fR.
12224 .Sp
12225 Additionally, this option can specify that \s-1GCC\s0 should tune the performance
12226 of the code for a big.LITTLE system.  Permissible names are:
12227 \&\fBcortex\-a15.cortex\-a7\fR, \fBcortex\-a57.cortex\-a53\fR,
12228 \&\fBcortex\-a72.cortex\-a53\fR.
12229 .Sp
12230 \&\fB\-mtune=generic\-\fR\fIarch\fR specifies that \s-1GCC\s0 should tune the
12231 performance for a blend of processors within architecture \fIarch\fR.
12232 The aim is to generate code that run well on the current most popular
12233 processors, balancing between optimizations that benefit some CPUs in the
12234 range, and avoiding performance pitfalls of other CPUs.  The effects of
12235 this option may change in future \s-1GCC\s0 versions as \s-1CPU\s0 models come and go.
12236 .Sp
12237 \&\fB\-mtune=native\fR causes the compiler to auto-detect the \s-1CPU\s0
12238 of the build computer.  At present, this feature is only supported on
12239 GNU/Linux, and not all architectures are recognized.  If the auto-detect is
12240 unsuccessful the option has no effect.
12241 .IP "\fB\-mcpu=\fR\fIname\fR" 4
12242 .IX Item "-mcpu=name"
12243 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
12244 to derive the name of the target \s-1ARM\s0 architecture (as if specified
12245 by \fB\-march\fR) and the \s-1ARM\s0 processor type for which to tune for
12246 performance (as if specified by \fB\-mtune\fR).  Where this option
12247 is used in conjunction with \fB\-march\fR or \fB\-mtune\fR,
12248 those options take precedence over the appropriate part of this option.
12249 .Sp
12250 Permissible names for this option are the same as those for
12251 \&\fB\-mtune\fR.
12252 .Sp
12253 \&\fB\-mcpu=generic\-\fR\fIarch\fR is also permissible, and is
12254 equivalent to \fB\-march=\fR\fIarch\fR \fB\-mtune=generic\-\fR\fIarch\fR.
12255 See \fB\-mtune\fR for more information.
12256 .Sp
12257 \&\fB\-mcpu=native\fR causes the compiler to auto-detect the \s-1CPU\s0
12258 of the build computer.  At present, this feature is only supported on
12259 GNU/Linux, and not all architectures are recognized.  If the auto-detect
12260 is unsuccessful the option has no effect.
12261 .IP "\fB\-mfpu=\fR\fIname\fR" 4
12262 .IX Item "-mfpu=name"
12263 This specifies what floating-point hardware (or hardware emulation) is
12264 available on the target.  Permissible names are: \fBvfp\fR, \fBvfpv3\fR,
12265 \&\fBvfpv3\-fp16\fR, \fBvfpv3\-d16\fR, \fBvfpv3\-d16\-fp16\fR, \fBvfpv3xd\fR,
12266 \&\fBvfpv3xd\-fp16\fR, \fBneon\fR, \fBneon\-fp16\fR, \fBvfpv4\fR,
12267 \&\fBvfpv4\-d16\fR, \fBfpv4\-sp\-d16\fR, \fBneon\-vfpv4\fR,
12268 \&\fBfpv5\-d16\fR, \fBfpv5\-sp\-d16\fR,
12269 \&\fBfp\-armv8\fR, \fBneon\-fp\-armv8\fR, and \fBcrypto\-neon\-fp\-armv8\fR.
12270 .Sp
12271 If \fB\-msoft\-float\fR is specified this specifies the format of
12272 floating-point values.
12273 .Sp
12274 If the selected floating-point hardware includes the \s-1NEON\s0 extension
12275 (e.g. \fB\-mfpu\fR=\fBneon\fR), note that floating-point
12276 operations are not generated by \s-1GCC\s0's auto-vectorization pass unless
12277 \&\fB\-funsafe\-math\-optimizations\fR is also specified.  This is
12278 because \s-1NEON\s0 hardware does not fully implement the \s-1IEEE\s0 754 standard for
12279 floating-point arithmetic (in particular denormal values are treated as
12280 zero), so the use of \s-1NEON\s0 instructions may lead to a loss of precision.
12281 .IP "\fB\-mfp16\-format=\fR\fIname\fR" 4
12282 .IX Item "-mfp16-format=name"
12283 Specify the format of the \f(CW\*(C`_\|_fp16\*(C'\fR half-precision floating-point type.
12284 Permissible names are \fBnone\fR, \fBieee\fR, and \fBalternative\fR;
12285 the default is \fBnone\fR, in which case the \f(CW\*(C`_\|_fp16\*(C'\fR type is not
12286 defined.
12287 .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
12288 .IX Item "-mstructure-size-boundary=n"
12289 The sizes of all structures and unions are rounded up to a multiple
12290 of the number of bits set by this option.  Permissible values are 8, 32
12291 and 64.  The default value varies for different toolchains.  For the \s-1COFF\s0
12292 targeted toolchain the default value is 8.  A value of 64 is only allowed
12293 if the underlying \s-1ABI\s0 supports it.
12294 .Sp
12295 Specifying a larger number can produce faster, more efficient code, but
12296 can also increase the size of the program.  Different values are potentially
12297 incompatible.  Code compiled with one value cannot necessarily expect to
12298 work with code or libraries compiled with another value, if they exchange
12299 information using structures or unions.
12300 .IP "\fB\-mabort\-on\-noreturn\fR" 4
12301 .IX Item "-mabort-on-noreturn"
12302 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
12303 \&\f(CW\*(C`noreturn\*(C'\fR function.  It is executed if the function tries to
12304 return.
12305 .IP "\fB\-mlong\-calls\fR" 4
12306 .IX Item "-mlong-calls"
12307 .PD 0
12308 .IP "\fB\-mno\-long\-calls\fR" 4
12309 .IX Item "-mno-long-calls"
12310 .PD
12311 Tells the compiler to perform function calls by first loading the
12312 address of the function into a register and then performing a subroutine
12313 call on this register.  This switch is needed if the target function
12314 lies outside of the 64\-megabyte addressing range of the offset-based
12315 version of subroutine call instruction.
12316 .Sp
12317 Even if this switch is enabled, not all function calls are turned
12318 into long calls.  The heuristic is that static functions, functions
12319 that have the \f(CW\*(C`short_call\*(C'\fR attribute, functions that are inside
12320 the scope of a \f(CW\*(C`#pragma no_long_calls\*(C'\fR directive, and functions whose
12321 definitions have already been compiled within the current compilation
12322 unit are not turned into long calls.  The exceptions to this rule are
12323 that weak function definitions, functions with the \f(CW\*(C`long_call\*(C'\fR
12324 attribute or the \f(CW\*(C`section\*(C'\fR attribute, and functions that are within
12325 the scope of a \f(CW\*(C`#pragma long_calls\*(C'\fR directive are always
12326 turned into long calls.
12327 .Sp
12328 This feature is not enabled by default.  Specifying
12329 \&\fB\-mno\-long\-calls\fR restores the default behavior, as does
12330 placing the function calls within the scope of a \f(CW\*(C`#pragma
12331 long_calls_off\*(C'\fR directive.  Note these switches have no effect on how
12332 the compiler generates code to handle function calls via function
12333 pointers.
12334 .IP "\fB\-msingle\-pic\-base\fR" 4
12335 .IX Item "-msingle-pic-base"
12336 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
12337 loading it in the prologue for each function.  The runtime system is
12338 responsible for initializing this register with an appropriate value
12339 before execution begins.
12340 .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
12341 .IX Item "-mpic-register=reg"
12342 Specify the register to be used for \s-1PIC\s0 addressing.
12343 For standard \s-1PIC\s0 base case, the default is any suitable register
12344 determined by compiler.  For single \s-1PIC\s0 base case, the default is
12345 \&\fBR9\fR if target is \s-1EABI\s0 based or stack-checking is enabled,
12346 otherwise the default is \fBR10\fR.
12347 .IP "\fB\-mpic\-data\-is\-text\-relative\fR" 4
12348 .IX Item "-mpic-data-is-text-relative"
12349 Assume that each data segments are relative to text segment at load time.
12350 Therefore, it permits addressing data using PC-relative operations.
12351 This option is on by default for targets other than VxWorks \s-1RTP\s0.
12352 .IP "\fB\-mpoke\-function\-name\fR" 4
12353 .IX Item "-mpoke-function-name"
12354 Write the name of each function into the text section, directly
12355 preceding the function prologue.  The generated code is similar to this:
12356 .Sp
12357 .Vb 9
12358 \&             t0
12359 \&                 .ascii "arm_poke_function_name", 0
12360 \&                 .align
12361 \&             t1
12362 \&                 .word 0xff000000 + (t1 \- t0)
12363 \&             arm_poke_function_name
12364 \&                 mov     ip, sp
12365 \&                 stmfd   sp!, {fp, ip, lr, pc}
12366 \&                 sub     fp, ip, #4
12367 .Ve
12368 .Sp
12369 When performing a stack backtrace, code can inspect the value of
12370 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
12371 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
12372 there is a function name embedded immediately preceding this location
12373 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
12374 .IP "\fB\-mthumb\fR" 4
12375 .IX Item "-mthumb"
12376 .PD 0
12377 .IP "\fB\-marm\fR" 4
12378 .IX Item "-marm"
12379 .PD
12380 Select between generating code that executes in \s-1ARM\s0 and Thumb
12381 states.  The default for most configurations is to generate code
12382 that executes in \s-1ARM\s0 state, but the default can be changed by
12383 configuring \s-1GCC\s0 with the \fB\-\-with\-mode=\fR\fIstate\fR
12384 configure option.
12385 .IP "\fB\-mtpcs\-frame\fR" 4
12386 .IX Item "-mtpcs-frame"
12387 Generate a stack frame that is compliant with the Thumb Procedure Call
12388 Standard for all non-leaf functions.  (A leaf function is one that does
12389 not call any other functions.)  The default is \fB\-mno\-tpcs\-frame\fR.
12390 .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
12391 .IX Item "-mtpcs-leaf-frame"
12392 Generate a stack frame that is compliant with the Thumb Procedure Call
12393 Standard for all leaf functions.  (A leaf function is one that does
12394 not call any other functions.)  The default is \fB\-mno\-apcs\-leaf\-frame\fR.
12395 .IP "\fB\-mcallee\-super\-interworking\fR" 4
12396 .IX Item "-mcallee-super-interworking"
12397 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
12398 instruction set header which switches to Thumb mode before executing the
12399 rest of the function.  This allows these functions to be called from
12400 non-interworking code.  This option is not valid in \s-1AAPCS\s0 configurations
12401 because interworking is enabled by default.
12402 .IP "\fB\-mcaller\-super\-interworking\fR" 4
12403 .IX Item "-mcaller-super-interworking"
12404 Allows calls via function pointers (including virtual functions) to
12405 execute correctly regardless of whether the target code has been
12406 compiled for interworking or not.  There is a small overhead in the cost
12407 of executing a function pointer if this option is enabled.  This option
12408 is not valid in \s-1AAPCS\s0 configurations because interworking is enabled
12409 by default.
12410 .IP "\fB\-mtp=\fR\fIname\fR" 4
12411 .IX Item "-mtp=name"
12412 Specify the access model for the thread local storage pointer.  The valid
12413 models are \fBsoft\fR, which generates calls to \f(CW\*(C`_\|_aeabi_read_tp\*(C'\fR,
12414 \&\fBcp15\fR, which fetches the thread pointer from \f(CW\*(C`cp15\*(C'\fR directly
12415 (supported in the arm6k architecture), and \fBauto\fR, which uses the
12416 best available method for the selected processor.  The default setting is
12417 \&\fBauto\fR.
12418 .IP "\fB\-mtls\-dialect=\fR\fIdialect\fR" 4
12419 .IX Item "-mtls-dialect=dialect"
12420 Specify the dialect to use for accessing thread local storage.  Two
12421 \&\fIdialect\fRs are supported\-\-\-\fBgnu\fR and \fBgnu2\fR.  The
12422 \&\fBgnu\fR dialect selects the original \s-1GNU\s0 scheme for supporting
12423 local and global dynamic \s-1TLS\s0 models.  The \fBgnu2\fR dialect
12424 selects the \s-1GNU\s0 descriptor scheme, which provides better performance
12425 for shared libraries.  The \s-1GNU\s0 descriptor scheme is compatible with
12426 the original scheme, but does require new assembler, linker and
12427 library support.  Initial and local exec \s-1TLS\s0 models are unaffected by
12428 this option and always use the original scheme.
12429 .IP "\fB\-mword\-relocations\fR" 4
12430 .IX Item "-mword-relocations"
12431 Only generate absolute relocations on word-sized values (i.e. R_ARM_ABS32).
12432 This is enabled by default on targets (uClinux, SymbianOS) where the runtime
12433 loader imposes this restriction, and when \fB\-fpic\fR or \fB\-fPIC\fR
12434 is specified.
12435 .IP "\fB\-mfix\-cortex\-m3\-ldrd\fR" 4
12436 .IX Item "-mfix-cortex-m3-ldrd"
12437 Some Cortex\-M3 cores can cause data corruption when \f(CW\*(C`ldrd\*(C'\fR instructions
12438 with overlapping destination and base registers are used.  This option avoids
12439 generating these instructions.  This option is enabled by default when
12440 \&\fB\-mcpu=cortex\-m3\fR is specified.
12441 .IP "\fB\-munaligned\-access\fR" 4
12442 .IX Item "-munaligned-access"
12443 .PD 0
12444 .IP "\fB\-mno\-unaligned\-access\fR" 4
12445 .IX Item "-mno-unaligned-access"
12446 .PD
12447 Enables (or disables) reading and writing of 16\- and 32\- bit values
12448 from addresses that are not 16\- or 32\- bit aligned.  By default
12449 unaligned access is disabled for all pre\-ARMv6 and all ARMv6\-M
12450 architectures, and enabled for all other architectures.  If unaligned
12451 access is not enabled then words in packed data structures are
12452 accessed a byte at a time.
12453 .Sp
12454 The \s-1ARM\s0 attribute \f(CW\*(C`Tag_CPU_unaligned_access\*(C'\fR is set in the
12455 generated object file to either true or false, depending upon the
12456 setting of this option.  If unaligned access is enabled then the
12457 preprocessor symbol \f(CW\*(C`_\|_ARM_FEATURE_UNALIGNED\*(C'\fR is also
12458 defined.
12459 .IP "\fB\-mneon\-for\-64bits\fR" 4
12460 .IX Item "-mneon-for-64bits"
12461 Enables using Neon to handle scalar 64\-bits operations. This is
12462 disabled by default since the cost of moving data from core registers
12463 to Neon is high.
12464 .IP "\fB\-mslow\-flash\-data\fR" 4
12465 .IX Item "-mslow-flash-data"
12466 Assume loading data from flash is slower than fetching instruction.
12467 Therefore literal load is minimized for better performance.
12468 This option is only supported when compiling for ARMv7 M\-profile and
12469 off by default.
12470 .IP "\fB\-masm\-syntax\-unified\fR" 4
12471 .IX Item "-masm-syntax-unified"
12472 Assume inline assembler is using unified asm syntax.  The default is
12473 currently off which implies divided syntax.  Currently this option is
12474 available only for Thumb1 and has no effect on \s-1ARM\s0 state and Thumb2.
12475 However, this may change in future releases of \s-1GCC\s0.  Divided syntax
12476 should be considered deprecated.
12477 .IP "\fB\-mrestrict\-it\fR" 4
12478 .IX Item "-mrestrict-it"
12479 Restricts generation of \s-1IT\s0 blocks to conform to the rules of ARMv8.
12480 \&\s-1IT\s0 blocks can only contain a single 16\-bit instruction from a select
12481 set of instructions. This option is on by default for ARMv8 Thumb mode.
12482 .IP "\fB\-mprint\-tune\-info\fR" 4
12483 .IX Item "-mprint-tune-info"
12484 Print \s-1CPU\s0 tuning information as comment in assembler file.  This is
12485 an option used only for regression testing of the compiler and not
12486 intended for ordinary use in compiling code.  This option is disabled
12487 by default.
12488 .PP
12489 \fI\s-1AVR\s0 Options\fR
12490 .IX Subsection "AVR Options"
12491 .PP
12492 These options are defined for \s-1AVR\s0 implementations:
12493 .IP "\fB\-mmcu=\fR\fImcu\fR" 4
12494 .IX Item "-mmcu=mcu"
12495 Specify Atmel \s-1AVR\s0 instruction set architectures (\s-1ISA\s0) or \s-1MCU\s0 type.
12496 .Sp
12497 The default for this option is@tie{}\fBavr2\fR.
12498 .Sp
12499 \&\s-1GCC\s0 supports the following \s-1AVR\s0 devices and ISAs:
12500 .RS 4
12501 .ie n .IP """avr2""" 4
12502 .el .IP "\f(CWavr2\fR" 4
12503 .IX Item "avr2"
12504 \&\*(L"Classic\*(R" devices with up to 8@tie{}KiB of program memory.
12505 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`attiny22\*(C'\fR, \f(CW\*(C`attiny26\*(C'\fR, \f(CW\*(C`at90c8534\*(C'\fR, \f(CW\*(C`at90s2313\*(C'\fR, \f(CW\*(C`at90s2323\*(C'\fR, \f(CW\*(C`at90s2333\*(C'\fR, \f(CW\*(C`at90s2343\*(C'\fR, \f(CW\*(C`at90s4414\*(C'\fR, \f(CW\*(C`at90s4433\*(C'\fR, \f(CW\*(C`at90s4434\*(C'\fR, \f(CW\*(C`at90s8515\*(C'\fR, \f(CW\*(C`at90s8535\*(C'\fR.
12506 .ie n .IP """avr25""" 4
12507 .el .IP "\f(CWavr25\fR" 4
12508 .IX Item "avr25"
12509 \&\*(L"Classic\*(R" devices with up to 8@tie{}KiB of program memory and with the \f(CW\*(C`MOVW\*(C'\fR instruction.
12510 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`ata5272\*(C'\fR, \f(CW\*(C`ata6616c\*(C'\fR, \f(CW\*(C`attiny13\*(C'\fR, \f(CW\*(C`attiny13a\*(C'\fR, \f(CW\*(C`attiny2313\*(C'\fR, \f(CW\*(C`attiny2313a\*(C'\fR, \f(CW\*(C`attiny24\*(C'\fR, \f(CW\*(C`attiny24a\*(C'\fR, \f(CW\*(C`attiny25\*(C'\fR, \f(CW\*(C`attiny261\*(C'\fR, \f(CW\*(C`attiny261a\*(C'\fR, \f(CW\*(C`attiny43u\*(C'\fR, \f(CW\*(C`attiny4313\*(C'\fR, \f(CW\*(C`attiny44\*(C'\fR, \f(CW\*(C`attiny44a\*(C'\fR, \f(CW\*(C`attiny441\*(C'\fR, \f(CW\*(C`attiny45\*(C'\fR, \f(CW\*(C`attiny461\*(C'\fR, \f(CW\*(C`attiny461a\*(C'\fR, \f(CW\*(C`attiny48\*(C'\fR, \f(CW\*(C`attiny828\*(C'\fR, \f(CW\*(C`attiny84\*(C'\fR, \f(CW\*(C`attiny84a\*(C'\fR, \f(CW\*(C`attiny841\*(C'\fR, \f(CW\*(C`attiny85\*(C'\fR, \f(CW\*(C`attiny861\*(C'\fR, \f(CW\*(C`attiny861a\*(C'\fR, \f(CW\*(C`attiny87\*(C'\fR, \f(CW\*(C`attiny88\*(C'\fR, \f(CW\*(C`at86rf401\*(C'\fR.
12511 .ie n .IP """avr3""" 4
12512 .el .IP "\f(CWavr3\fR" 4
12513 .IX Item "avr3"
12514 \&\*(L"Classic\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of  program memory.
12515 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`at43usb355\*(C'\fR, \f(CW\*(C`at76c711\*(C'\fR.
12516 .ie n .IP """avr31""" 4
12517 .el .IP "\f(CWavr31\fR" 4
12518 .IX Item "avr31"
12519 \&\*(L"Classic\*(R" devices with 128@tie{}KiB of program memory.
12520 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atmega103\*(C'\fR, \f(CW\*(C`at43usb320\*(C'\fR.
12521 .ie n .IP """avr35""" 4
12522 .el .IP "\f(CWavr35\fR" 4
12523 .IX Item "avr35"
12524 \&\*(L"Classic\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of program memory and with the \f(CW\*(C`MOVW\*(C'\fR instruction.
12525 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`ata5505\*(C'\fR, \f(CW\*(C`ata6617c\*(C'\fR, \f(CW\*(C`ata664251\*(C'\fR, \f(CW\*(C`atmega16u2\*(C'\fR, \f(CW\*(C`atmega32u2\*(C'\fR, \f(CW\*(C`atmega8u2\*(C'\fR, \f(CW\*(C`attiny1634\*(C'\fR, \f(CW\*(C`attiny167\*(C'\fR, \f(CW\*(C`at90usb162\*(C'\fR, \f(CW\*(C`at90usb82\*(C'\fR.
12526 .ie n .IP """avr4""" 4
12527 .el .IP "\f(CWavr4\fR" 4
12528 .IX Item "avr4"
12529 \&\*(L"Enhanced\*(R" devices with up to 8@tie{}KiB of program memory.
12530 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`ata6285\*(C'\fR, \f(CW\*(C`ata6286\*(C'\fR, \f(CW\*(C`ata6289\*(C'\fR, \f(CW\*(C`ata6612c\*(C'\fR, \f(CW\*(C`atmega48\*(C'\fR, \f(CW\*(C`atmega48a\*(C'\fR, \f(CW\*(C`atmega48p\*(C'\fR, \f(CW\*(C`atmega48pa\*(C'\fR, \f(CW\*(C`atmega8\*(C'\fR, \f(CW\*(C`atmega8a\*(C'\fR, \f(CW\*(C`atmega8hva\*(C'\fR, \f(CW\*(C`atmega8515\*(C'\fR, \f(CW\*(C`atmega8535\*(C'\fR, \f(CW\*(C`atmega88\*(C'\fR, \f(CW\*(C`atmega88a\*(C'\fR, \f(CW\*(C`atmega88p\*(C'\fR, \f(CW\*(C`atmega88pa\*(C'\fR, \f(CW\*(C`at90pwm1\*(C'\fR, \f(CW\*(C`at90pwm2\*(C'\fR, \f(CW\*(C`at90pwm2b\*(C'\fR, \f(CW\*(C`at90pwm3\*(C'\fR, \f(CW\*(C`at90pwm3b\*(C'\fR, \f(CW\*(C`at90pwm81\*(C'\fR.
12531 .ie n .IP """avr5""" 4
12532 .el .IP "\f(CWavr5\fR" 4
12533 .IX Item "avr5"
12534 \&\*(L"Enhanced\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of program memory.
12535 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`ata5702m322\*(C'\fR, \f(CW\*(C`ata5782\*(C'\fR, \f(CW\*(C`ata5790\*(C'\fR, \f(CW\*(C`ata5790n\*(C'\fR, \f(CW\*(C`ata5795\*(C'\fR, \f(CW\*(C`ata5831\*(C'\fR, \f(CW\*(C`ata6613c\*(C'\fR, \f(CW\*(C`ata6614q\*(C'\fR, \f(CW\*(C`atmega16\*(C'\fR, \f(CW\*(C`atmega16a\*(C'\fR, \f(CW\*(C`atmega16hva\*(C'\fR, \f(CW\*(C`atmega16hva2\*(C'\fR, \f(CW\*(C`atmega16hvb\*(C'\fR, \f(CW\*(C`atmega16hvbrevb\*(C'\fR, \f(CW\*(C`atmega16m1\*(C'\fR, \f(CW\*(C`atmega16u4\*(C'\fR, \f(CW\*(C`atmega161\*(C'\fR, \f(CW\*(C`atmega162\*(C'\fR, \f(CW\*(C`atmega163\*(C'\fR, \f(CW\*(C`atmega164a\*(C'\fR, \f(CW\*(C`atmega164p\*(C'\fR, \f(CW\*(C`atmega164pa\*(C'\fR, \f(CW\*(C`atmega165\*(C'\fR, \f(CW\*(C`atmega165a\*(C'\fR, \f(CW\*(C`atmega165p\*(C'\fR, \f(CW\*(C`atmega165pa\*(C'\fR, \f(CW\*(C`atmega168\*(C'\fR, \f(CW\*(C`atmega168a\*(C'\fR, \f(CW\*(C`atmega168p\*(C'\fR, \f(CW\*(C`atmega168pa\*(C'\fR, \f(CW\*(C`atmega169\*(C'\fR, \f(CW\*(C`atmega169a\*(C'\fR, \f(CW\*(C`atmega169p\*(C'\fR, \f(CW\*(C`atmega169pa\*(C'\fR, \f(CW\*(C`atmega32\*(C'\fR, \f(CW\*(C`atmega32a\*(C'\fR, \f(CW\*(C`atmega32c1\*(C'\fR, \f(CW\*(C`atmega32hvb\*(C'\fR, \f(CW\*(C`atmega32hvbrevb\*(C'\fR, \f(CW\*(C`atmega32m1\*(C'\fR, \f(CW\*(C`atmega32u4\*(C'\fR, \f(CW\*(C`atmega32u6\*(C'\fR, \f(CW\*(C`atmega323\*(C'\fR, \f(CW\*(C`atmega324a\*(C'\fR, \f(CW\*(C`atmega324p\*(C'\fR, \f(CW\*(C`atmega324pa\*(C'\fR, \f(CW\*(C`atmega325\*(C'\fR, \f(CW\*(C`atmega325a\*(C'\fR, \f(CW\*(C`atmega325p\*(C'\fR, \f(CW\*(C`atmega325pa\*(C'\fR, \f(CW\*(C`atmega3250\*(C'\fR, \f(CW\*(C`atmega3250a\*(C'\fR, \f(CW\*(C`atmega3250p\*(C'\fR, \f(CW\*(C`atmega3250pa\*(C'\fR, \f(CW\*(C`atmega328\*(C'\fR, \f(CW\*(C`atmega328p\*(C'\fR, \f(CW\*(C`atmega329\*(C'\fR, \f(CW\*(C`atmega329a\*(C'\fR, \f(CW\*(C`atmega329p\*(C'\fR, \f(CW\*(C`atmega329pa\*(C'\fR, \f(CW\*(C`atmega3290\*(C'\fR, \f(CW\*(C`atmega3290a\*(C'\fR, \f(CW\*(C`atmega3290p\*(C'\fR, \f(CW\*(C`atmega3290pa\*(C'\fR, \f(CW\*(C`atmega406\*(C'\fR, \f(CW\*(C`atmega64\*(C'\fR, \f(CW\*(C`atmega64a\*(C'\fR, \f(CW\*(C`atmega64c1\*(C'\fR, \f(CW\*(C`atmega64hve\*(C'\fR, \f(CW\*(C`atmega64hve2\*(C'\fR, \f(CW\*(C`atmega64m1\*(C'\fR, \f(CW\*(C`atmega64rfr2\*(C'\fR, \f(CW\*(C`atmega640\*(C'\fR, \f(CW\*(C`atmega644\*(C'\fR, \f(CW\*(C`atmega644a\*(C'\fR, \f(CW\*(C`atmega644p\*(C'\fR, \f(CW\*(C`atmega644pa\*(C'\fR, \f(CW\*(C`atmega644rfr2\*(C'\fR, \f(CW\*(C`atmega645\*(C'\fR, \f(CW\*(C`atmega645a\*(C'\fR, \f(CW\*(C`atmega645p\*(C'\fR, \f(CW\*(C`atmega6450\*(C'\fR, \f(CW\*(C`atmega6450a\*(C'\fR, \f(CW\*(C`atmega6450p\*(C'\fR, \f(CW\*(C`atmega649\*(C'\fR, \f(CW\*(C`atmega649a\*(C'\fR, \f(CW\*(C`atmega649p\*(C'\fR, \f(CW\*(C`atmega6490\*(C'\fR, \f(CW\*(C`atmega6490a\*(C'\fR, \f(CW\*(C`atmega6490p\*(C'\fR, \f(CW\*(C`at90can32\*(C'\fR, \f(CW\*(C`at90can64\*(C'\fR, \f(CW\*(C`at90pwm161\*(C'\fR, \f(CW\*(C`at90pwm216\*(C'\fR, \f(CW\*(C`at90pwm316\*(C'\fR, \f(CW\*(C`at90scr100\*(C'\fR, \f(CW\*(C`at90usb646\*(C'\fR, \f(CW\*(C`at90usb647\*(C'\fR, \f(CW\*(C`at94k\*(C'\fR, \f(CW\*(C`m3000\*(C'\fR.
12536 .ie n .IP """avr51""" 4
12537 .el .IP "\f(CWavr51\fR" 4
12538 .IX Item "avr51"
12539 \&\*(L"Enhanced\*(R" devices with 128@tie{}KiB of program memory.
12540 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atmega128\*(C'\fR, \f(CW\*(C`atmega128a\*(C'\fR, \f(CW\*(C`atmega128rfa1\*(C'\fR, \f(CW\*(C`atmega128rfr2\*(C'\fR, \f(CW\*(C`atmega1280\*(C'\fR, \f(CW\*(C`atmega1281\*(C'\fR, \f(CW\*(C`atmega1284\*(C'\fR, \f(CW\*(C`atmega1284p\*(C'\fR, \f(CW\*(C`atmega1284rfr2\*(C'\fR, \f(CW\*(C`at90can128\*(C'\fR, \f(CW\*(C`at90usb1286\*(C'\fR, \f(CW\*(C`at90usb1287\*(C'\fR.
12541 .ie n .IP """avr6""" 4
12542 .el .IP "\f(CWavr6\fR" 4
12543 .IX Item "avr6"
12544 \&\*(L"Enhanced\*(R" devices with 3\-byte \s-1PC\s0, i.e. with more than 128@tie{}KiB of program memory.
12545 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atmega256rfr2\*(C'\fR, \f(CW\*(C`atmega2560\*(C'\fR, \f(CW\*(C`atmega2561\*(C'\fR, \f(CW\*(C`atmega2564rfr2\*(C'\fR.
12546 .ie n .IP """avrxmega2""" 4
12547 .el .IP "\f(CWavrxmega2\fR" 4
12548 .IX Item "avrxmega2"
12549 \&\*(L"\s-1XMEGA\s0\*(R" devices with more than 8@tie{}KiB and up to 64@tie{}KiB of program memory.
12550 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega16a4\*(C'\fR, \f(CW\*(C`atxmega16a4u\*(C'\fR, \f(CW\*(C`atxmega16c4\*(C'\fR, \f(CW\*(C`atxmega16d4\*(C'\fR, \f(CW\*(C`atxmega16e5\*(C'\fR, \f(CW\*(C`atxmega32a4\*(C'\fR, \f(CW\*(C`atxmega32a4u\*(C'\fR, \f(CW\*(C`atxmega32c3\*(C'\fR, \f(CW\*(C`atxmega32c4\*(C'\fR, \f(CW\*(C`atxmega32d3\*(C'\fR, \f(CW\*(C`atxmega32d4\*(C'\fR, \f(CW\*(C`atxmega32e5\*(C'\fR, \f(CW\*(C`atxmega8e5\*(C'\fR.
12551 .ie n .IP """avrxmega4""" 4
12552 .el .IP "\f(CWavrxmega4\fR" 4
12553 .IX Item "avrxmega4"
12554 \&\*(L"\s-1XMEGA\s0\*(R" devices with more than 64@tie{}KiB and up to 128@tie{}KiB of program memory.
12555 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega64a3\*(C'\fR, \f(CW\*(C`atxmega64a3u\*(C'\fR, \f(CW\*(C`atxmega64a4u\*(C'\fR, \f(CW\*(C`atxmega64b1\*(C'\fR, \f(CW\*(C`atxmega64b3\*(C'\fR, \f(CW\*(C`atxmega64c3\*(C'\fR, \f(CW\*(C`atxmega64d3\*(C'\fR, \f(CW\*(C`atxmega64d4\*(C'\fR.
12556 .ie n .IP """avrxmega5""" 4
12557 .el .IP "\f(CWavrxmega5\fR" 4
12558 .IX Item "avrxmega5"
12559 \&\*(L"\s-1XMEGA\s0\*(R" devices with more than 64@tie{}KiB and up to 128@tie{}KiB of program memory and more than 64@tie{}KiB of \s-1RAM\s0.
12560 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega64a1\*(C'\fR, \f(CW\*(C`atxmega64a1u\*(C'\fR.
12561 .ie n .IP """avrxmega6""" 4
12562 .el .IP "\f(CWavrxmega6\fR" 4
12563 .IX Item "avrxmega6"
12564 \&\*(L"\s-1XMEGA\s0\*(R" devices with more than 128@tie{}KiB of program memory.
12565 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega128a3\*(C'\fR, \f(CW\*(C`atxmega128a3u\*(C'\fR, \f(CW\*(C`atxmega128b1\*(C'\fR, \f(CW\*(C`atxmega128b3\*(C'\fR, \f(CW\*(C`atxmega128c3\*(C'\fR, \f(CW\*(C`atxmega128d3\*(C'\fR, \f(CW\*(C`atxmega128d4\*(C'\fR, \f(CW\*(C`atxmega192a3\*(C'\fR, \f(CW\*(C`atxmega192a3u\*(C'\fR, \f(CW\*(C`atxmega192c3\*(C'\fR, \f(CW\*(C`atxmega192d3\*(C'\fR, \f(CW\*(C`atxmega256a3\*(C'\fR, \f(CW\*(C`atxmega256a3b\*(C'\fR, \f(CW\*(C`atxmega256a3bu\*(C'\fR, \f(CW\*(C`atxmega256a3u\*(C'\fR, \f(CW\*(C`atxmega256c3\*(C'\fR, \f(CW\*(C`atxmega256d3\*(C'\fR, \f(CW\*(C`atxmega384c3\*(C'\fR, \f(CW\*(C`atxmega384d3\*(C'\fR.
12566 .ie n .IP """avrxmega7""" 4
12567 .el .IP "\f(CWavrxmega7\fR" 4
12568 .IX Item "avrxmega7"
12569 \&\*(L"\s-1XMEGA\s0\*(R" devices with more than 128@tie{}KiB of program memory and more than 64@tie{}KiB of \s-1RAM\s0.
12570 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega128a1\*(C'\fR, \f(CW\*(C`atxmega128a1u\*(C'\fR, \f(CW\*(C`atxmega128a4u\*(C'\fR.
12571 .ie n .IP """avrtiny""" 4
12572 .el .IP "\f(CWavrtiny\fR" 4
12573 .IX Item "avrtiny"
12574 \&\*(L"\s-1TINY\s0\*(R" Tiny core devices with 512@tie{}B up to 4@tie{}KiB of program memory.
12575 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`attiny10\*(C'\fR, \f(CW\*(C`attiny20\*(C'\fR, \f(CW\*(C`attiny4\*(C'\fR, \f(CW\*(C`attiny40\*(C'\fR, \f(CW\*(C`attiny5\*(C'\fR, \f(CW\*(C`attiny9\*(C'\fR.
12576 .ie n .IP """avr1""" 4
12577 .el .IP "\f(CWavr1\fR" 4
12578 .IX Item "avr1"
12579 This \s-1ISA\s0 is implemented by the minimal \s-1AVR\s0 core and supported for assembler only.
12580 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`attiny11\*(C'\fR, \f(CW\*(C`attiny12\*(C'\fR, \f(CW\*(C`attiny15\*(C'\fR, \f(CW\*(C`attiny28\*(C'\fR, \f(CW\*(C`at90s1200\*(C'\fR.
12581 .RE
12582 .RS 4
12583 .RE
12584 .IP "\fB\-maccumulate\-args\fR" 4
12585 .IX Item "-maccumulate-args"
12586 Accumulate outgoing function arguments and acquire/release the needed
12587 stack space for outgoing function arguments once in function
12588 prologue/epilogue.  Without this option, outgoing arguments are pushed
12589 before calling a function and popped afterwards.
12590 .Sp
12591 Popping the arguments after the function call can be expensive on
12592 \&\s-1AVR\s0 so that accumulating the stack space might lead to smaller
12593 executables because arguments need not to be removed from the
12594 stack after such a function call.
12595 .Sp
12596 This option can lead to reduced code size for functions that perform
12597 several calls to functions that get their arguments on the stack like
12598 calls to printf-like functions.
12599 .IP "\fB\-mbranch\-cost=\fR\fIcost\fR" 4
12600 .IX Item "-mbranch-cost=cost"
12601 Set the branch costs for conditional branch instructions to
12602 \&\fIcost\fR.  Reasonable values for \fIcost\fR are small, non-negative
12603 integers. The default branch cost is 0.
12604 .IP "\fB\-mcall\-prologues\fR" 4
12605 .IX Item "-mcall-prologues"
12606 Functions prologues/epilogues are expanded as calls to appropriate
12607 subroutines.  Code size is smaller.
12608 .IP "\fB\-mint8\fR" 4
12609 .IX Item "-mint8"
12610 Assume \f(CW\*(C`int\*(C'\fR to be 8\-bit integer.  This affects the sizes of all types: a
12611 \&\f(CW\*(C`char\*(C'\fR is 1 byte, an \f(CW\*(C`int\*(C'\fR is 1 byte, a \f(CW\*(C`long\*(C'\fR is 2 bytes,
12612 and \f(CW\*(C`long long\*(C'\fR is 4 bytes.  Please note that this option does not
12613 conform to the C standards, but it results in smaller code
12614 size.
12615 .IP "\fB\-mn\-flash=\fR\fInum\fR" 4
12616 .IX Item "-mn-flash=num"
12617 Assume that the flash memory has a size of 
12618 \&\fInum\fR times 64@tie{}KiB.
12619 .IP "\fB\-mno\-interrupts\fR" 4
12620 .IX Item "-mno-interrupts"
12621 Generated code is not compatible with hardware interrupts.
12622 Code size is smaller.
12623 .IP "\fB\-mrelax\fR" 4
12624 .IX Item "-mrelax"
12625 Try to replace \f(CW\*(C`CALL\*(C'\fR resp. \f(CW\*(C`JMP\*(C'\fR instruction by the shorter
12626 \&\f(CW\*(C`RCALL\*(C'\fR resp. \f(CW\*(C`RJMP\*(C'\fR instruction if applicable.
12627 Setting \fB\-mrelax\fR just adds the \fB\-\-mlink\-relax\fR option to
12628 the assembler's command line and the \fB\-\-relax\fR option to the
12629 linker's command line.
12630 .Sp
12631 Jump relaxing is performed by the linker because jump offsets are not
12632 known before code is located. Therefore, the assembler code generated by the
12633 compiler is the same, but the instructions in the executable may
12634 differ from instructions in the assembler code.
12635 .Sp
12636 Relaxing must be turned on if linker stubs are needed, see the
12637 section on \f(CW\*(C`EIND\*(C'\fR and linker stubs below.
12638 .IP "\fB\-mrmw\fR" 4
12639 .IX Item "-mrmw"
12640 Assume that the device supports the Read-Modify-Write
12641 instructions \f(CW\*(C`XCH\*(C'\fR, \f(CW\*(C`LAC\*(C'\fR, \f(CW\*(C`LAS\*(C'\fR and \f(CW\*(C`LAT\*(C'\fR.
12642 .IP "\fB\-msp8\fR" 4
12643 .IX Item "-msp8"
12644 Treat the stack pointer register as an 8\-bit register,
12645 i.e. assume the high byte of the stack pointer is zero.
12646 In general, you don't need to set this option by hand.
12647 .Sp
12648 This option is used internally by the compiler to select and
12649 build multilibs for architectures \f(CW\*(C`avr2\*(C'\fR and \f(CW\*(C`avr25\*(C'\fR.
12650 These architectures mix devices with and without \f(CW\*(C`SPH\*(C'\fR.
12651 For any setting other than \fB\-mmcu=avr2\fR or \fB\-mmcu=avr25\fR
12652 the compiler driver adds or removes this option from the compiler
12653 proper's command line, because the compiler then knows if the device
12654 or architecture has an 8\-bit stack pointer and thus no \f(CW\*(C`SPH\*(C'\fR
12655 register or not.
12656 .IP "\fB\-mstrict\-X\fR" 4
12657 .IX Item "-mstrict-X"
12658 Use address register \f(CW\*(C`X\*(C'\fR in a way proposed by the hardware.  This means
12659 that \f(CW\*(C`X\*(C'\fR is only used in indirect, post-increment or
12660 pre-decrement addressing.
12661 .Sp
12662 Without this option, the \f(CW\*(C`X\*(C'\fR register may be used in the same way
12663 as \f(CW\*(C`Y\*(C'\fR or \f(CW\*(C`Z\*(C'\fR which then is emulated by additional
12664 instructions.  
12665 For example, loading a value with \f(CW\*(C`X+const\*(C'\fR addressing with a
12666 small non-negative \f(CW\*(C`const < 64\*(C'\fR to a register \fIRn\fR is
12667 performed as
12668 .Sp
12669 .Vb 3
12670 \&        adiw r26, const   ; X += const
12671 \&        ld   <Rn>, X        ; <Rn> = *X
12672 \&        sbiw r26, const   ; X \-= const
12673 .Ve
12674 .IP "\fB\-mtiny\-stack\fR" 4
12675 .IX Item "-mtiny-stack"
12676 Only change the lower 8@tie{}bits of the stack pointer.
12677 .IP "\fB\-nodevicelib\fR" 4
12678 .IX Item "-nodevicelib"
12679 Don't link against AVR-LibC's device specific library \f(CW\*(C`libdev.a\*(C'\fR.
12680 .IP "\fB\-Waddr\-space\-convert\fR" 4
12681 .IX Item "-Waddr-space-convert"
12682 Warn about conversions between address spaces in the case where the
12683 resulting address space is not contained in the incoming address space.
12684 .PP
12685 \f(CW\*(C`EIND\*(C'\fR and Devices with More Than 128 Ki Bytes of Flash
12686 .IX Subsection "EIND and Devices with More Than 128 Ki Bytes of Flash"
12687 .PP
12688 Pointers in the implementation are 16@tie{}bits wide.
12689 The address of a function or label is represented as word address so
12690 that indirect jumps and calls can target any code address in the
12691 range of 64@tie{}Ki words.
12692 .PP
12693 In order to facilitate indirect jump on devices with more than 128@tie{}Ki
12694 bytes of program memory space, there is a special function register called
12695 \&\f(CW\*(C`EIND\*(C'\fR that serves as most significant part of the target address
12696 when \f(CW\*(C`EICALL\*(C'\fR or \f(CW\*(C`EIJMP\*(C'\fR instructions are used.
12697 .PP
12698 Indirect jumps and calls on these devices are handled as follows by
12699 the compiler and are subject to some limitations:
12700 .IP "*" 4
12701 The compiler never sets \f(CW\*(C`EIND\*(C'\fR.
12702 .IP "*" 4
12703 The compiler uses \f(CW\*(C`EIND\*(C'\fR implicitely in \f(CW\*(C`EICALL\*(C'\fR/\f(CW\*(C`EIJMP\*(C'\fR
12704 instructions or might read \f(CW\*(C`EIND\*(C'\fR directly in order to emulate an
12705 indirect call/jump by means of a \f(CW\*(C`RET\*(C'\fR instruction.
12706 .IP "*" 4
12707 The compiler assumes that \f(CW\*(C`EIND\*(C'\fR never changes during the startup
12708 code or during the application. In particular, \f(CW\*(C`EIND\*(C'\fR is not
12709 saved/restored in function or interrupt service routine
12710 prologue/epilogue.
12711 .IP "*" 4
12712 For indirect calls to functions and computed goto, the linker
12713 generates \fIstubs\fR. Stubs are jump pads sometimes also called
12714 \&\fItrampolines\fR. Thus, the indirect call/jump jumps to such a stub.
12715 The stub contains a direct jump to the desired address.
12716 .IP "*" 4
12717 Linker relaxation must be turned on so that the linker generates
12718 the stubs correctly in all situations. See the compiler option
12719 \&\fB\-mrelax\fR and the linker option \fB\-\-relax\fR.
12720 There are corner cases where the linker is supposed to generate stubs
12721 but aborts without relaxation and without a helpful error message.
12722 .IP "*" 4
12723 The default linker script is arranged for code with \f(CW\*(C`EIND = 0\*(C'\fR.
12724 If code is supposed to work for a setup with \f(CW\*(C`EIND != 0\*(C'\fR, a custom
12725 linker script has to be used in order to place the sections whose
12726 name start with \f(CW\*(C`.trampolines\*(C'\fR into the segment where \f(CW\*(C`EIND\*(C'\fR
12727 points to.
12728 .IP "*" 4
12729 The startup code from libgcc never sets \f(CW\*(C`EIND\*(C'\fR.
12730 Notice that startup code is a blend of code from libgcc and AVR-LibC.
12731 For the impact of AVR-LibC on \f(CW\*(C`EIND\*(C'\fR, see the
12732 AVR-LibC\ user\ manual (\f(CW\*(C`http://nongnu.org/avr\-libc/user\-manual/\*(C'\fR).
12733 .IP "*" 4
12734 It is legitimate for user-specific startup code to set up \f(CW\*(C`EIND\*(C'\fR
12735 early, for example by means of initialization code located in
12736 section \f(CW\*(C`.init3\*(C'\fR. Such code runs prior to general startup code
12737 that initializes \s-1RAM\s0 and calls constructors, but after the bit
12738 of startup code from AVR-LibC that sets \f(CW\*(C`EIND\*(C'\fR to the segment
12739 where the vector table is located.
12740 .Sp
12741 .Vb 1
12742 \&        #include <avr/io.h>
12743 \&        
12744 \&        static void
12745 \&        _\|_attribute_\|_((section(".init3"),naked,used,no_instrument_function))
12746 \&        init3_set_eind (void)
12747 \&        {
12748 \&          _\|_asm volatile ("ldi r24,pm_hh8(_\|_trampolines_start)\en\et"
12749 \&                          "out %i0,r24" :: "n" (&EIND) : "r24","memory");
12750 \&        }
12751 .Ve
12752 .Sp
12753 The \f(CW\*(C`_\|_trampolines_start\*(C'\fR symbol is defined in the linker script.
12754 .IP "*" 4
12755 Stubs are generated automatically by the linker if
12756 the following two conditions are met:
12757 .RS 4
12758 .ie n .IP "\-<The address of a label is taken by means of the ""gs"" modifier>" 4
12759 .el .IP "\-<The address of a label is taken by means of the \f(CWgs\fR modifier>" 4
12760 .IX Item "-<The address of a label is taken by means of the gs modifier>"
12761 (short for \fIgenerate stubs\fR) like so:
12762 .Sp
12763 .Vb 2
12764 \&        LDI r24, lo8(gs(<func>))
12765 \&        LDI r25, hi8(gs(<func>))
12766 .Ve
12767 .IP "\-<The final location of that label is in a code segment>" 4
12768 .IX Item "-<The final location of that label is in a code segment>"
12769 \&\fIoutside\fR the segment where the stubs are located.
12770 .RE
12771 .RS 4
12772 .RE
12773 .IP "*" 4
12774 The compiler emits such \f(CW\*(C`gs\*(C'\fR modifiers for code labels in the
12775 following situations:
12776 .RS 4
12777 .IP "\-<Taking address of a function or code label.>" 4
12778 .IX Item "-<Taking address of a function or code label.>"
12779 .PD 0
12780 .IP "\-<Computed goto.>" 4
12781 .IX Item "-<Computed goto.>"
12782 .IP "\-<If prologue-save function is used, see \fB\-mcall\-prologues\fR>" 4
12783 .IX Item "-<If prologue-save function is used, see -mcall-prologues>"
12784 .PD
12785 command-line option.
12786 .IP "\-<Switch/case dispatch tables. If you do not want such dispatch>" 4
12787 .IX Item "-<Switch/case dispatch tables. If you do not want such dispatch>"
12788 tables you can specify the \fB\-fno\-jump\-tables\fR command-line option.
12789 .IP "\-<C and \*(C+ constructors/destructors called during startup/shutdown.>" 4
12790 .IX Item "-<C and  constructors/destructors called during startup/shutdown.>"
12791 .PD 0
12792 .ie n .IP "\-<If the tools hit a ""gs()"" modifier explained above.>" 4
12793 .el .IP "\-<If the tools hit a \f(CWgs()\fR modifier explained above.>" 4
12794 .IX Item "-<If the tools hit a gs() modifier explained above.>"
12795 .RE
12796 .RS 4
12797 .RE
12798 .IP "*" 4
12799 .PD
12800 Jumping to non-symbolic addresses like so is \fInot\fR supported:
12801 .Sp
12802 .Vb 5
12803 \&        int main (void)
12804 \&        {
12805 \&            /* Call function at word address 0x2 */
12806 \&            return ((int(*)(void)) 0x2)();
12807 \&        }
12808 .Ve
12809 .Sp
12810 Instead, a stub has to be set up, i.e. the function has to be called
12811 through a symbol (\f(CW\*(C`func_4\*(C'\fR in the example):
12812 .Sp
12813 .Vb 3
12814 \&        int main (void)
12815 \&        {
12816 \&            extern int func_4 (void);
12817 \&        
12818 \&            /* Call function at byte address 0x4 */
12819 \&            return func_4();
12820 \&        }
12821 .Ve
12822 .Sp
12823 and the application be linked with \fB\-Wl,\-\-defsym,func_4=0x4\fR.
12824 Alternatively, \f(CW\*(C`func_4\*(C'\fR can be defined in the linker script.
12825 .PP
12826 Handling of the \f(CW\*(C`RAMPD\*(C'\fR, \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR and \f(CW\*(C`RAMPZ\*(C'\fR Special Function Registers
12827 .IX Subsection "Handling of the RAMPD, RAMPX, RAMPY and RAMPZ Special Function Registers"
12828 .PP
12829 Some \s-1AVR\s0 devices support memories larger than the 64@tie{}KiB range
12830 that can be accessed with 16\-bit pointers.  To access memory locations
12831 outside this 64@tie{}KiB range, the contentent of a \f(CW\*(C`RAMP\*(C'\fR
12832 register is used as high part of the address:
12833 The \f(CW\*(C`X\*(C'\fR, \f(CW\*(C`Y\*(C'\fR, \f(CW\*(C`Z\*(C'\fR address register is concatenated
12834 with the \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR, \f(CW\*(C`RAMPZ\*(C'\fR special function
12835 register, respectively, to get a wide address. Similarly,
12836 \&\f(CW\*(C`RAMPD\*(C'\fR is used together with direct addressing.
12837 .IP "*" 4
12838 The startup code initializes the \f(CW\*(C`RAMP\*(C'\fR special function
12839 registers with zero.
12840 .IP "*" 4
12841 If a \fB\s-1AVR\s0 Named Address Spaces,named address space\fR other than
12842 generic or \f(CW\*(C`_\|_flash\*(C'\fR is used, then \f(CW\*(C`RAMPZ\*(C'\fR is set
12843 as needed before the operation.
12844 .IP "*" 4
12845 If the device supports \s-1RAM\s0 larger than 64@tie{}KiB and the compiler
12846 needs to change \f(CW\*(C`RAMPZ\*(C'\fR to accomplish an operation, \f(CW\*(C`RAMPZ\*(C'\fR
12847 is reset to zero after the operation.
12848 .IP "*" 4
12849 If the device comes with a specific \f(CW\*(C`RAMP\*(C'\fR register, the \s-1ISR\s0
12850 prologue/epilogue saves/restores that \s-1SFR\s0 and initializes it with
12851 zero in case the \s-1ISR\s0 code might (implicitly) use it.
12852 .IP "*" 4
12853 \&\s-1RAM\s0 larger than 64@tie{}KiB is not supported by \s-1GCC\s0 for \s-1AVR\s0 targets.
12854 If you use inline assembler to read from locations outside the
12855 16\-bit address range and change one of the \f(CW\*(C`RAMP\*(C'\fR registers,
12856 you must reset it to zero after the access.
12857 .PP
12858 \s-1AVR\s0 Built-in Macros
12859 .IX Subsection "AVR Built-in Macros"
12860 .PP
12861 \&\s-1GCC\s0 defines several built-in macros so that the user code can test
12862 for the presence or absence of features.  Almost any of the following
12863 built-in macros are deduced from device capabilities and thus
12864 triggered by the \fB\-mmcu=\fR command-line option.
12865 .PP
12866 For even more AVR-specific built-in macros see
12867 \&\fB\s-1AVR\s0 Named Address Spaces\fR and \fB\s-1AVR\s0 Built-in Functions\fR.
12868 .ie n .IP """_\|_AVR_ARCH_\|_""" 4
12869 .el .IP "\f(CW_\|_AVR_ARCH_\|_\fR" 4
12870 .IX Item "__AVR_ARCH__"
12871 Build-in macro that resolves to a decimal number that identifies the
12872 architecture and depends on the \fB\-mmcu=\fR\fImcu\fR option.
12873 Possible values are:
12874 .Sp
12875 \&\f(CW2\fR, \f(CW25\fR, \f(CW3\fR, \f(CW31\fR, \f(CW35\fR,
12876 \&\f(CW4\fR, \f(CW5\fR, \f(CW51\fR, \f(CW6\fR
12877 .Sp
12878 for \fImcu\fR=\f(CW\*(C`avr2\*(C'\fR, \f(CW\*(C`avr25\*(C'\fR, \f(CW\*(C`avr3\*(C'\fR, \f(CW\*(C`avr31\*(C'\fR,
12879 \&\f(CW\*(C`avr35\*(C'\fR, \f(CW\*(C`avr4\*(C'\fR, \f(CW\*(C`avr5\*(C'\fR, \f(CW\*(C`avr51\*(C'\fR, \f(CW\*(C`avr6\*(C'\fR,
12880 .Sp
12881 respectively and
12882 .Sp
12883 \&\f(CW100\fR, \f(CW102\fR, \f(CW104\fR,
12884 \&\f(CW105\fR, \f(CW106\fR, \f(CW107\fR
12885 .Sp
12886 for \fImcu\fR=\f(CW\*(C`avrtiny\*(C'\fR, \f(CW\*(C`avrxmega2\*(C'\fR, \f(CW\*(C`avrxmega4\*(C'\fR,
12887 \&\f(CW\*(C`avrxmega5\*(C'\fR, \f(CW\*(C`avrxmega6\*(C'\fR, \f(CW\*(C`avrxmega7\*(C'\fR, respectively.
12888 If \fImcu\fR specifies a device, this built-in macro is set
12889 accordingly. For example, with \fB\-mmcu=atmega8\fR the macro is
12890 defined to \f(CW4\fR.
12891 .ie n .IP """_\|_AVR_\f(CIDevice\f(CW_\|_""" 4
12892 .el .IP "\f(CW_\|_AVR_\f(CIDevice\f(CW_\|_\fR" 4
12893 .IX Item "__AVR_Device__"
12894 Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro which reflects
12895 the device's name. For example, \fB\-mmcu=atmega8\fR defines the
12896 built-in macro \f(CW\*(C`_\|_AVR_ATmega8_\|_\*(C'\fR, \fB\-mmcu=attiny261a\fR defines
12897 \&\f(CW\*(C`_\|_AVR_ATtiny261A_\|_\*(C'\fR, etc.
12898 .Sp
12899 The built-in macros' names follow
12900 the scheme \f(CW\*(C`_\|_AVR_\f(CIDevice\f(CW_\|_\*(C'\fR where \fIDevice\fR is
12901 the device name as from the \s-1AVR\s0 user manual. The difference between
12902 \&\fIDevice\fR in the built-in macro and \fIdevice\fR in
12903 \&\fB\-mmcu=\fR\fIdevice\fR is that the latter is always lowercase.
12904 .Sp
12905 If \fIdevice\fR is not a device but only a core architecture like
12906 \&\fBavr51\fR, this macro is not defined.
12907 .ie n .IP """_\|_AVR_DEVICE_NAME_\|_""" 4
12908 .el .IP "\f(CW_\|_AVR_DEVICE_NAME_\|_\fR" 4
12909 .IX Item "__AVR_DEVICE_NAME__"
12910 Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro to
12911 the device's name. For example, with \fB\-mmcu=atmega8\fR the macro
12912 is defined to \f(CW\*(C`atmega8\*(C'\fR.
12913 .Sp
12914 If \fIdevice\fR is not a device but only a core architecture like
12915 \&\fBavr51\fR, this macro is not defined.
12916 .ie n .IP """_\|_AVR_XMEGA_\|_""" 4
12917 .el .IP "\f(CW_\|_AVR_XMEGA_\|_\fR" 4
12918 .IX Item "__AVR_XMEGA__"
12919 The device / architecture belongs to the \s-1XMEGA\s0 family of devices.
12920 .ie n .IP """_\|_AVR_HAVE_ELPM_\|_""" 4
12921 .el .IP "\f(CW_\|_AVR_HAVE_ELPM_\|_\fR" 4
12922 .IX Item "__AVR_HAVE_ELPM__"
12923 The device has the the \f(CW\*(C`ELPM\*(C'\fR instruction.
12924 .ie n .IP """_\|_AVR_HAVE_ELPMX_\|_""" 4
12925 .el .IP "\f(CW_\|_AVR_HAVE_ELPMX_\|_\fR" 4
12926 .IX Item "__AVR_HAVE_ELPMX__"
12927 The device has the \f(CW\*(C`ELPM R\f(CIn\f(CW,Z\*(C'\fR and \f(CW\*(C`ELPM
12928 R\f(CIn\f(CW,Z+\*(C'\fR instructions.
12929 .ie n .IP """_\|_AVR_HAVE_MOVW_\|_""" 4
12930 .el .IP "\f(CW_\|_AVR_HAVE_MOVW_\|_\fR" 4
12931 .IX Item "__AVR_HAVE_MOVW__"
12932 The device has the \f(CW\*(C`MOVW\*(C'\fR instruction to perform 16\-bit
12933 register-register moves.
12934 .ie n .IP """_\|_AVR_HAVE_LPMX_\|_""" 4
12935 .el .IP "\f(CW_\|_AVR_HAVE_LPMX_\|_\fR" 4
12936 .IX Item "__AVR_HAVE_LPMX__"
12937 The device has the \f(CW\*(C`LPM R\f(CIn\f(CW,Z\*(C'\fR and
12938 \&\f(CW\*(C`LPM R\f(CIn\f(CW,Z+\*(C'\fR instructions.
12939 .ie n .IP """_\|_AVR_HAVE_MUL_\|_""" 4
12940 .el .IP "\f(CW_\|_AVR_HAVE_MUL_\|_\fR" 4
12941 .IX Item "__AVR_HAVE_MUL__"
12942 The device has a hardware multiplier.
12943 .ie n .IP """_\|_AVR_HAVE_JMP_CALL_\|_""" 4
12944 .el .IP "\f(CW_\|_AVR_HAVE_JMP_CALL_\|_\fR" 4
12945 .IX Item "__AVR_HAVE_JMP_CALL__"
12946 The device has the \f(CW\*(C`JMP\*(C'\fR and \f(CW\*(C`CALL\*(C'\fR instructions.
12947 This is the case for devices with at least 16@tie{}KiB of program
12948 memory.
12949 .ie n .IP """_\|_AVR_HAVE_EIJMP_EICALL_\|_""" 4
12950 .el .IP "\f(CW_\|_AVR_HAVE_EIJMP_EICALL_\|_\fR" 4
12951 .IX Item "__AVR_HAVE_EIJMP_EICALL__"
12952 .PD 0
12953 .ie n .IP """_\|_AVR_3_BYTE_PC_\|_""" 4
12954 .el .IP "\f(CW_\|_AVR_3_BYTE_PC_\|_\fR" 4
12955 .IX Item "__AVR_3_BYTE_PC__"
12956 .PD
12957 The device has the \f(CW\*(C`EIJMP\*(C'\fR and \f(CW\*(C`EICALL\*(C'\fR instructions.
12958 This is the case for devices with more than 128@tie{}KiB of program memory.
12959 This also means that the program counter
12960 (\s-1PC\s0) is 3@tie{}bytes wide.
12961 .ie n .IP """_\|_AVR_2_BYTE_PC_\|_""" 4
12962 .el .IP "\f(CW_\|_AVR_2_BYTE_PC_\|_\fR" 4
12963 .IX Item "__AVR_2_BYTE_PC__"
12964 The program counter (\s-1PC\s0) is 2@tie{}bytes wide. This is the case for devices
12965 with up to 128@tie{}KiB of program memory.
12966 .ie n .IP """_\|_AVR_HAVE_8BIT_SP_\|_""" 4
12967 .el .IP "\f(CW_\|_AVR_HAVE_8BIT_SP_\|_\fR" 4
12968 .IX Item "__AVR_HAVE_8BIT_SP__"
12969 .PD 0
12970 .ie n .IP """_\|_AVR_HAVE_16BIT_SP_\|_""" 4
12971 .el .IP "\f(CW_\|_AVR_HAVE_16BIT_SP_\|_\fR" 4
12972 .IX Item "__AVR_HAVE_16BIT_SP__"
12973 .PD
12974 The stack pointer (\s-1SP\s0) register is treated as 8\-bit respectively
12975 16\-bit register by the compiler.
12976 The definition of these macros is affected by \fB\-mtiny\-stack\fR.
12977 .ie n .IP """_\|_AVR_HAVE_SPH_\|_""" 4
12978 .el .IP "\f(CW_\|_AVR_HAVE_SPH_\|_\fR" 4
12979 .IX Item "__AVR_HAVE_SPH__"
12980 .PD 0
12981 .ie n .IP """_\|_AVR_SP8_\|_""" 4
12982 .el .IP "\f(CW_\|_AVR_SP8_\|_\fR" 4
12983 .IX Item "__AVR_SP8__"
12984 .PD
12985 The device has the \s-1SPH\s0 (high part of stack pointer) special function
12986 register or has an 8\-bit stack pointer, respectively.
12987 The definition of these macros is affected by \fB\-mmcu=\fR and
12988 in the cases of \fB\-mmcu=avr2\fR and \fB\-mmcu=avr25\fR also
12989 by \fB\-msp8\fR.
12990 .ie n .IP """_\|_AVR_HAVE_RAMPD_\|_""" 4
12991 .el .IP "\f(CW_\|_AVR_HAVE_RAMPD_\|_\fR" 4
12992 .IX Item "__AVR_HAVE_RAMPD__"
12993 .PD 0
12994 .ie n .IP """_\|_AVR_HAVE_RAMPX_\|_""" 4
12995 .el .IP "\f(CW_\|_AVR_HAVE_RAMPX_\|_\fR" 4
12996 .IX Item "__AVR_HAVE_RAMPX__"
12997 .ie n .IP """_\|_AVR_HAVE_RAMPY_\|_""" 4
12998 .el .IP "\f(CW_\|_AVR_HAVE_RAMPY_\|_\fR" 4
12999 .IX Item "__AVR_HAVE_RAMPY__"
13000 .ie n .IP """_\|_AVR_HAVE_RAMPZ_\|_""" 4
13001 .el .IP "\f(CW_\|_AVR_HAVE_RAMPZ_\|_\fR" 4
13002 .IX Item "__AVR_HAVE_RAMPZ__"
13003 .PD
13004 The device has the \f(CW\*(C`RAMPD\*(C'\fR, \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR,
13005 \&\f(CW\*(C`RAMPZ\*(C'\fR special function register, respectively.
13006 .ie n .IP """_\|_NO_INTERRUPTS_\|_""" 4
13007 .el .IP "\f(CW_\|_NO_INTERRUPTS_\|_\fR" 4
13008 .IX Item "__NO_INTERRUPTS__"
13009 This macro reflects the \fB\-mno\-interrupts\fR command-line option.
13010 .ie n .IP """_\|_AVR_ERRATA_SKIP_\|_""" 4
13011 .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_\|_\fR" 4
13012 .IX Item "__AVR_ERRATA_SKIP__"
13013 .PD 0
13014 .ie n .IP """_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_""" 4
13015 .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_\fR" 4
13016 .IX Item "__AVR_ERRATA_SKIP_JMP_CALL__"
13017 .PD
13018 Some \s-1AVR\s0 devices (\s-1AT90S8515\s0, ATmega103) must not skip 32\-bit
13019 instructions because of a hardware erratum.  Skip instructions are
13020 \&\f(CW\*(C`SBRS\*(C'\fR, \f(CW\*(C`SBRC\*(C'\fR, \f(CW\*(C`SBIS\*(C'\fR, \f(CW\*(C`SBIC\*(C'\fR and \f(CW\*(C`CPSE\*(C'\fR.
13021 The second macro is only defined if \f(CW\*(C`_\|_AVR_HAVE_JMP_CALL_\|_\*(C'\fR is also
13022 set.
13023 .ie n .IP """_\|_AVR_ISA_RMW_\|_""" 4
13024 .el .IP "\f(CW_\|_AVR_ISA_RMW_\|_\fR" 4
13025 .IX Item "__AVR_ISA_RMW__"
13026 The device has Read-Modify-Write instructions (\s-1XCH\s0, \s-1LAC\s0, \s-1LAS\s0 and \s-1LAT\s0).
13027 .ie n .IP """_\|_AVR_SFR_OFFSET_\|_=\f(CIoffset\f(CW""" 4
13028 .el .IP "\f(CW_\|_AVR_SFR_OFFSET_\|_=\f(CIoffset\f(CW\fR" 4
13029 .IX Item "__AVR_SFR_OFFSET__=offset"
13030 Instructions that can address I/O special function registers directly
13031 like \f(CW\*(C`IN\*(C'\fR, \f(CW\*(C`OUT\*(C'\fR, \f(CW\*(C`SBI\*(C'\fR, etc. may use a different
13032 address as if addressed by an instruction to access \s-1RAM\s0 like \f(CW\*(C`LD\*(C'\fR
13033 or \f(CW\*(C`STS\*(C'\fR. This offset depends on the device architecture and has
13034 to be subtracted from the \s-1RAM\s0 address in order to get the
13035 respective I/O@tie{}address.
13036 .ie n .IP """_\|_WITH_AVRLIBC_\|_""" 4
13037 .el .IP "\f(CW_\|_WITH_AVRLIBC_\|_\fR" 4
13038 .IX Item "__WITH_AVRLIBC__"
13039 The compiler is configured to be used together with AVR-Libc.
13040 See the \fB\-\-with\-avrlibc\fR configure option.
13041 .PP
13042 \fIBlackfin Options\fR
13043 .IX Subsection "Blackfin Options"
13044 .IP "\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR]" 4
13045 .IX Item "-mcpu=cpu[-sirevision]"
13046 Specifies the name of the target Blackfin processor.  Currently, \fIcpu\fR
13047 can be one of \fBbf512\fR, \fBbf514\fR, \fBbf516\fR, \fBbf518\fR,
13048 \&\fBbf522\fR, \fBbf523\fR, \fBbf524\fR, \fBbf525\fR, \fBbf526\fR,
13049 \&\fBbf527\fR, \fBbf531\fR, \fBbf532\fR, \fBbf533\fR,
13050 \&\fBbf534\fR, \fBbf536\fR, \fBbf537\fR, \fBbf538\fR, \fBbf539\fR,
13051 \&\fBbf542\fR, \fBbf544\fR, \fBbf547\fR, \fBbf548\fR, \fBbf549\fR,
13052 \&\fBbf542m\fR, \fBbf544m\fR, \fBbf547m\fR, \fBbf548m\fR, \fBbf549m\fR,
13053 \&\fBbf561\fR, \fBbf592\fR.
13054 .Sp
13055 The optional \fIsirevision\fR specifies the silicon revision of the target
13056 Blackfin processor.  Any workarounds available for the targeted silicon revision
13057 are enabled.  If \fIsirevision\fR is \fBnone\fR, no workarounds are enabled.
13058 If \fIsirevision\fR is \fBany\fR, all workarounds for the targeted processor
13059 are enabled.  The \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR macro is defined to two
13060 hexadecimal digits representing the major and minor numbers in the silicon
13061 revision.  If \fIsirevision\fR is \fBnone\fR, the \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR
13062 is not defined.  If \fIsirevision\fR is \fBany\fR, the
13063 \&\f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR is defined to be \f(CW0xffff\fR.
13064 If this optional \fIsirevision\fR is not used, \s-1GCC\s0 assumes the latest known
13065 silicon revision of the targeted Blackfin processor.
13066 .Sp
13067 \&\s-1GCC\s0 defines a preprocessor macro for the specified \fIcpu\fR.
13068 For the \fBbfin-elf\fR toolchain, this option causes the hardware \s-1BSP\s0
13069 provided by libgloss to be linked in if \fB\-msim\fR is not given.
13070 .Sp
13071 Without this option, \fBbf532\fR is used as the processor by default.
13072 .Sp
13073 Note that support for \fBbf561\fR is incomplete.  For \fBbf561\fR,
13074 only the preprocessor macro is defined.
13075 .IP "\fB\-msim\fR" 4
13076 .IX Item "-msim"
13077 Specifies that the program will be run on the simulator.  This causes
13078 the simulator \s-1BSP\s0 provided by libgloss to be linked in.  This option
13079 has effect only for \fBbfin-elf\fR toolchain.
13080 Certain other options, such as \fB\-mid\-shared\-library\fR and
13081 \&\fB\-mfdpic\fR, imply \fB\-msim\fR.
13082 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
13083 .IX Item "-momit-leaf-frame-pointer"
13084 Don't keep the frame pointer in a register for leaf functions.  This
13085 avoids the instructions to save, set up and restore frame pointers and
13086 makes an extra register available in leaf functions.  The option
13087 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions,
13088 which might make debugging harder.
13089 .IP "\fB\-mspecld\-anomaly\fR" 4
13090 .IX Item "-mspecld-anomaly"
13091 When enabled, the compiler ensures that the generated code does not
13092 contain speculative loads after jump instructions. If this option is used,
13093 \&\f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_LOADS\*(C'\fR is defined.
13094 .IP "\fB\-mno\-specld\-anomaly\fR" 4
13095 .IX Item "-mno-specld-anomaly"
13096 Don't generate extra code to prevent speculative loads from occurring.
13097 .IP "\fB\-mcsync\-anomaly\fR" 4
13098 .IX Item "-mcsync-anomaly"
13099 When enabled, the compiler ensures that the generated code does not
13100 contain \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions too soon after conditional branches.
13101 If this option is used, \f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_SYNCS\*(C'\fR is defined.
13102 .IP "\fB\-mno\-csync\-anomaly\fR" 4
13103 .IX Item "-mno-csync-anomaly"
13104 Don't generate extra code to prevent \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions from
13105 occurring too soon after a conditional branch.
13106 .IP "\fB\-mlow\-64k\fR" 4
13107 .IX Item "-mlow-64k"
13108 When enabled, the compiler is free to take advantage of the knowledge that
13109 the entire program fits into the low 64k of memory.
13110 .IP "\fB\-mno\-low\-64k\fR" 4
13111 .IX Item "-mno-low-64k"
13112 Assume that the program is arbitrarily large.  This is the default.
13113 .IP "\fB\-mstack\-check\-l1\fR" 4
13114 .IX Item "-mstack-check-l1"
13115 Do stack checking using information placed into L1 scratchpad memory by the
13116 uClinux kernel.
13117 .IP "\fB\-mid\-shared\-library\fR" 4
13118 .IX Item "-mid-shared-library"
13119 Generate code that supports shared libraries via the library \s-1ID\s0 method.
13120 This allows for execute in place and shared libraries in an environment
13121 without virtual memory management.  This option implies \fB\-fPIC\fR.
13122 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
13123 .IP "\fB\-mno\-id\-shared\-library\fR" 4
13124 .IX Item "-mno-id-shared-library"
13125 Generate code that doesn't assume ID-based shared libraries are being used.
13126 This is the default.
13127 .IP "\fB\-mleaf\-id\-shared\-library\fR" 4
13128 .IX Item "-mleaf-id-shared-library"
13129 Generate code that supports shared libraries via the library \s-1ID\s0 method,
13130 but assumes that this library or executable won't link against any other
13131 \&\s-1ID\s0 shared libraries.  That allows the compiler to use faster code for jumps
13132 and calls.
13133 .IP "\fB\-mno\-leaf\-id\-shared\-library\fR" 4
13134 .IX Item "-mno-leaf-id-shared-library"
13135 Do not assume that the code being compiled won't link against any \s-1ID\s0 shared
13136 libraries.  Slower code is generated for jump and call insns.
13137 .IP "\fB\-mshared\-library\-id=n\fR" 4
13138 .IX Item "-mshared-library-id=n"
13139 Specifies the identification number of the ID-based shared library being
13140 compiled.  Specifying a value of 0 generates more compact code; specifying
13141 other values forces the allocation of that number to the current
13142 library but is no more space\- or time-efficient than omitting this option.
13143 .IP "\fB\-msep\-data\fR" 4
13144 .IX Item "-msep-data"
13145 Generate code that allows the data segment to be located in a different
13146 area of memory from the text segment.  This allows for execute in place in
13147 an environment without virtual memory management by eliminating relocations
13148 against the text section.
13149 .IP "\fB\-mno\-sep\-data\fR" 4
13150 .IX Item "-mno-sep-data"
13151 Generate code that assumes that the data segment follows the text segment.
13152 This is the default.
13153 .IP "\fB\-mlong\-calls\fR" 4
13154 .IX Item "-mlong-calls"
13155 .PD 0
13156 .IP "\fB\-mno\-long\-calls\fR" 4
13157 .IX Item "-mno-long-calls"
13158 .PD
13159 Tells the compiler to perform function calls by first loading the
13160 address of the function into a register and then performing a subroutine
13161 call on this register.  This switch is needed if the target function
13162 lies outside of the 24\-bit addressing range of the offset-based
13163 version of subroutine call instruction.
13164 .Sp
13165 This feature is not enabled by default.  Specifying
13166 \&\fB\-mno\-long\-calls\fR restores the default behavior.  Note these
13167 switches have no effect on how the compiler generates code to handle
13168 function calls via function pointers.
13169 .IP "\fB\-mfast\-fp\fR" 4
13170 .IX Item "-mfast-fp"
13171 Link with the fast floating-point library. This library relaxes some of
13172 the \s-1IEEE\s0 floating-point standard's rules for checking inputs against
13173 Not-a-Number (\s-1NAN\s0), in the interest of performance.
13174 .IP "\fB\-minline\-plt\fR" 4
13175 .IX Item "-minline-plt"
13176 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
13177 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
13178 .IP "\fB\-mmulticore\fR" 4
13179 .IX Item "-mmulticore"
13180 Build a standalone application for multicore Blackfin processors. 
13181 This option causes proper start files and link scripts supporting 
13182 multicore to be used, and defines the macro \f(CW\*(C`_\|_BFIN_MULTICORE\*(C'\fR. 
13183 It can only be used with \fB\-mcpu=bf561\fR[\fB\-\fR\fIsirevision\fR].
13184 .Sp
13185 This option can be used with \fB\-mcorea\fR or \fB\-mcoreb\fR, which
13186 selects the one-application-per-core programming model.  Without
13187 \&\fB\-mcorea\fR or \fB\-mcoreb\fR, the single\-application/dual\-core
13188 programming model is used. In this model, the main function of Core B
13189 should be named as \f(CW\*(C`coreb_main\*(C'\fR.
13190 .Sp
13191 If this option is not used, the single-core application programming
13192 model is used.
13193 .IP "\fB\-mcorea\fR" 4
13194 .IX Item "-mcorea"
13195 Build a standalone application for Core A of \s-1BF561\s0 when using
13196 the one-application-per-core programming model. Proper start files
13197 and link scripts are used to support Core A, and the macro
13198 \&\f(CW\*(C`_\|_BFIN_COREA\*(C'\fR is defined.
13199 This option can only be used in conjunction with \fB\-mmulticore\fR.
13200 .IP "\fB\-mcoreb\fR" 4
13201 .IX Item "-mcoreb"
13202 Build a standalone application for Core B of \s-1BF561\s0 when using
13203 the one-application-per-core programming model. Proper start files
13204 and link scripts are used to support Core B, and the macro
13205 \&\f(CW\*(C`_\|_BFIN_COREB\*(C'\fR is defined. When this option is used, \f(CW\*(C`coreb_main\*(C'\fR
13206 should be used instead of \f(CW\*(C`main\*(C'\fR. 
13207 This option can only be used in conjunction with \fB\-mmulticore\fR.
13208 .IP "\fB\-msdram\fR" 4
13209 .IX Item "-msdram"
13210 Build a standalone application for \s-1SDRAM\s0. Proper start files and
13211 link scripts are used to put the application into \s-1SDRAM\s0, and the macro
13212 \&\f(CW\*(C`_\|_BFIN_SDRAM\*(C'\fR is defined.
13213 The loader should initialize \s-1SDRAM\s0 before loading the application.
13214 .IP "\fB\-micplb\fR" 4
13215 .IX Item "-micplb"
13216 Assume that ICPLBs are enabled at run time.  This has an effect on certain
13217 anomaly workarounds.  For Linux targets, the default is to assume ICPLBs
13218 are enabled; for standalone applications the default is off.
13219 .PP
13220 \fIC6X Options\fR
13221 .IX Subsection "C6X Options"
13222 .IP "\fB\-march=\fR\fIname\fR" 4
13223 .IX Item "-march=name"
13224 This specifies the name of the target architecture.  \s-1GCC\s0 uses this
13225 name to determine what kind of instructions it can emit when generating
13226 assembly code.  Permissible names are: \fBc62x\fR,
13227 \&\fBc64x\fR, \fBc64x+\fR, \fBc67x\fR, \fBc67x+\fR, \fBc674x\fR.
13228 .IP "\fB\-mbig\-endian\fR" 4
13229 .IX Item "-mbig-endian"
13230 Generate code for a big-endian target.
13231 .IP "\fB\-mlittle\-endian\fR" 4
13232 .IX Item "-mlittle-endian"
13233 Generate code for a little-endian target.  This is the default.
13234 .IP "\fB\-msim\fR" 4
13235 .IX Item "-msim"
13236 Choose startup files and linker script suitable for the simulator.
13237 .IP "\fB\-msdata=default\fR" 4
13238 .IX Item "-msdata=default"
13239 Put small global and static data in the \f(CW\*(C`.neardata\*(C'\fR section,
13240 which is pointed to by register \f(CW\*(C`B14\*(C'\fR.  Put small uninitialized
13241 global and static data in the \f(CW\*(C`.bss\*(C'\fR section, which is adjacent
13242 to the \f(CW\*(C`.neardata\*(C'\fR section.  Put small read-only data into the
13243 \&\f(CW\*(C`.rodata\*(C'\fR section.  The corresponding sections used for large
13244 pieces of data are \f(CW\*(C`.fardata\*(C'\fR, \f(CW\*(C`.far\*(C'\fR and \f(CW\*(C`.const\*(C'\fR.
13245 .IP "\fB\-msdata=all\fR" 4
13246 .IX Item "-msdata=all"
13247 Put all data, not just small objects, into the sections reserved for
13248 small data, and use addressing relative to the \f(CW\*(C`B14\*(C'\fR register to
13249 access them.
13250 .IP "\fB\-msdata=none\fR" 4
13251 .IX Item "-msdata=none"
13252 Make no use of the sections reserved for small data, and use absolute
13253 addresses to access all data.  Put all initialized global and static
13254 data in the \f(CW\*(C`.fardata\*(C'\fR section, and all uninitialized data in the
13255 \&\f(CW\*(C`.far\*(C'\fR section.  Put all constant data into the \f(CW\*(C`.const\*(C'\fR
13256 section.
13257 .PP
13258 \fI\s-1CRIS\s0 Options\fR
13259 .IX Subsection "CRIS Options"
13260 .PP
13261 These options are defined specifically for the \s-1CRIS\s0 ports.
13262 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
13263 .IX Item "-march=architecture-type"
13264 .PD 0
13265 .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
13266 .IX Item "-mcpu=architecture-type"
13267 .PD
13268 Generate code for the specified architecture.  The choices for
13269 \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
13270 respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX\s0.
13271 Default is \fBv0\fR except for cris-axis-linux-gnu, where the default is
13272 \&\fBv10\fR.
13273 .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
13274 .IX Item "-mtune=architecture-type"
13275 Tune to \fIarchitecture-type\fR everything applicable about the generated
13276 code, except for the \s-1ABI\s0 and the set of available instructions.  The
13277 choices for \fIarchitecture-type\fR are the same as for
13278 \&\fB\-march=\fR\fIarchitecture-type\fR.
13279 .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
13280 .IX Item "-mmax-stack-frame=n"
13281 Warn when the stack frame of a function exceeds \fIn\fR bytes.
13282 .IP "\fB\-metrax4\fR" 4
13283 .IX Item "-metrax4"
13284 .PD 0
13285 .IP "\fB\-metrax100\fR" 4
13286 .IX Item "-metrax100"
13287 .PD
13288 The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
13289 \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
13290 .IP "\fB\-mmul\-bug\-workaround\fR" 4
13291 .IX Item "-mmul-bug-workaround"
13292 .PD 0
13293 .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
13294 .IX Item "-mno-mul-bug-workaround"
13295 .PD
13296 Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
13297 models where it applies.  This option is active by default.
13298 .IP "\fB\-mpdebug\fR" 4
13299 .IX Item "-mpdebug"
13300 Enable CRIS-specific verbose debug-related information in the assembly
13301 code.  This option also has the effect of turning off the \fB#NO_APP\fR
13302 formatted-code indicator to the assembler at the beginning of the
13303 assembly file.
13304 .IP "\fB\-mcc\-init\fR" 4
13305 .IX Item "-mcc-init"
13306 Do not use condition-code results from previous instruction; always emit
13307 compare and test instructions before use of condition codes.
13308 .IP "\fB\-mno\-side\-effects\fR" 4
13309 .IX Item "-mno-side-effects"
13310 Do not emit instructions with side effects in addressing modes other than
13311 post-increment.
13312 .IP "\fB\-mstack\-align\fR" 4
13313 .IX Item "-mstack-align"
13314 .PD 0
13315 .IP "\fB\-mno\-stack\-align\fR" 4
13316 .IX Item "-mno-stack-align"
13317 .IP "\fB\-mdata\-align\fR" 4
13318 .IX Item "-mdata-align"
13319 .IP "\fB\-mno\-data\-align\fR" 4
13320 .IX Item "-mno-data-align"
13321 .IP "\fB\-mconst\-align\fR" 4
13322 .IX Item "-mconst-align"
13323 .IP "\fB\-mno\-const\-align\fR" 4
13324 .IX Item "-mno-const-align"
13325 .PD
13326 These options (\fBno\-\fR options) arrange (eliminate arrangements) for the
13327 stack frame, individual data and constants to be aligned for the maximum
13328 single data access size for the chosen \s-1CPU\s0 model.  The default is to
13329 arrange for 32\-bit alignment.  \s-1ABI\s0 details such as structure layout are
13330 not affected by these options.
13331 .IP "\fB\-m32\-bit\fR" 4
13332 .IX Item "-m32-bit"
13333 .PD 0
13334 .IP "\fB\-m16\-bit\fR" 4
13335 .IX Item "-m16-bit"
13336 .IP "\fB\-m8\-bit\fR" 4
13337 .IX Item "-m8-bit"
13338 .PD
13339 Similar to the stack\- data\- and const-align options above, these options
13340 arrange for stack frame, writable data and constants to all be 32\-bit,
13341 16\-bit or 8\-bit aligned.  The default is 32\-bit alignment.
13342 .IP "\fB\-mno\-prologue\-epilogue\fR" 4
13343 .IX Item "-mno-prologue-epilogue"
13344 .PD 0
13345 .IP "\fB\-mprologue\-epilogue\fR" 4
13346 .IX Item "-mprologue-epilogue"
13347 .PD
13348 With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
13349 epilogue which set up the stack frame are omitted and no return
13350 instructions or return sequences are generated in the code.  Use this
13351 option only together with visual inspection of the compiled code: no
13352 warnings or errors are generated when call-saved registers must be saved,
13353 or storage for local variables needs to be allocated.
13354 .IP "\fB\-mno\-gotplt\fR" 4
13355 .IX Item "-mno-gotplt"
13356 .PD 0
13357 .IP "\fB\-mgotplt\fR" 4
13358 .IX Item "-mgotplt"
13359 .PD
13360 With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
13361 instruction sequences that load addresses for functions from the \s-1PLT\s0 part
13362 of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
13363 \&\s-1PLT\s0.  The default is \fB\-mgotplt\fR.
13364 .IP "\fB\-melf\fR" 4
13365 .IX Item "-melf"
13366 Legacy no-op option only recognized with the cris-axis-elf and
13367 cris-axis-linux-gnu targets.
13368 .IP "\fB\-mlinux\fR" 4
13369 .IX Item "-mlinux"
13370 Legacy no-op option only recognized with the cris-axis-linux-gnu target.
13371 .IP "\fB\-sim\fR" 4
13372 .IX Item "-sim"
13373 This option, recognized for the cris-axis-elf, arranges
13374 to link with input-output functions from a simulator library.  Code,
13375 initialized data and zero-initialized data are allocated consecutively.
13376 .IP "\fB\-sim2\fR" 4
13377 .IX Item "-sim2"
13378 Like \fB\-sim\fR, but pass linker options to locate initialized data at
13379 0x40000000 and zero-initialized data at 0x80000000.
13380 .PP
13381 \fI\s-1CR16\s0 Options\fR
13382 .IX Subsection "CR16 Options"
13383 .PP
13384 These options are defined specifically for the \s-1CR16\s0 ports.
13385 .IP "\fB\-mmac\fR" 4
13386 .IX Item "-mmac"
13387 Enable the use of multiply-accumulate instructions. Disabled by default.
13388 .IP "\fB\-mcr16cplus\fR" 4
13389 .IX Item "-mcr16cplus"
13390 .PD 0
13391 .IP "\fB\-mcr16c\fR" 4
13392 .IX Item "-mcr16c"
13393 .PD
13394 Generate code for \s-1CR16C\s0 or \s-1CR16C+\s0 architecture. \s-1CR16C+\s0 architecture 
13395 is default.
13396 .IP "\fB\-msim\fR" 4
13397 .IX Item "-msim"
13398 Links the library libsim.a which is in compatible with simulator. Applicable
13399 to \s-1ELF\s0 compiler only.
13400 .IP "\fB\-mint32\fR" 4
13401 .IX Item "-mint32"
13402 Choose integer type as 32\-bit wide.
13403 .IP "\fB\-mbit\-ops\fR" 4
13404 .IX Item "-mbit-ops"
13405 Generates \f(CW\*(C`sbit\*(C'\fR/\f(CW\*(C`cbit\*(C'\fR instructions for bit manipulations.
13406 .IP "\fB\-mdata\-model=\fR\fImodel\fR" 4
13407 .IX Item "-mdata-model=model"
13408 Choose a data model. The choices for \fImodel\fR are \fBnear\fR,
13409 \&\fBfar\fR or \fBmedium\fR. \fBmedium\fR is default.
13410 However, \fBfar\fR is not valid with \fB\-mcr16c\fR, as the
13411 \&\s-1CR16C\s0 architecture does not support the far data model.
13412 .PP
13413 \fIDarwin Options\fR
13414 .IX Subsection "Darwin Options"
13415 .PP
13416 These options are defined for all architectures running the Darwin operating
13417 system.
13418 .PP
13419 \&\s-1FSF\s0 \s-1GCC\s0 on Darwin does not create \*(L"fat\*(R" object files; it creates
13420 an object file for the single architecture that \s-1GCC\s0 was built to
13421 target.  Apple's \s-1GCC\s0 on Darwin does create \*(L"fat\*(R" files if multiple
13422 \&\fB\-arch\fR options are used; it does so by running the compiler or
13423 linker multiple times and joining the results together with
13424 \&\fIlipo\fR.
13425 .PP
13426 The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
13427 \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
13428 that \s-1GCC\s0 is targeting, like \fB\-mcpu\fR or \fB\-march\fR.  The
13429 \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
13430 .PP
13431 The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
13432 mismatch.  The assembler, \fIas\fR, only permits instructions to
13433 be used that are valid for the subtype of the file it is generating,
13434 so you cannot put 64\-bit instructions in a \fBppc750\fR object file.
13435 The linker for shared libraries, \fI/usr/bin/libtool\fR, fails
13436 and prints an error if asked to create a shared library with a less
13437 restrictive subtype than its input files (for instance, trying to put
13438 a \fBppc970\fR object file in a \fBppc7400\fR library).  The linker
13439 for executables, \fBld\fR, quietly gives the executable the most
13440 restrictive subtype of any of its input files.
13441 .IP "\fB\-F\fR\fIdir\fR" 4
13442 .IX Item "-Fdir"
13443 Add the framework directory \fIdir\fR to the head of the list of
13444 directories to be searched for header files.  These directories are
13445 interleaved with those specified by \fB\-I\fR options and are
13446 scanned in a left-to-right order.
13447 .Sp
13448 A framework directory is a directory with frameworks in it.  A
13449 framework is a directory with a \fIHeaders\fR and/or
13450 \&\fIPrivateHeaders\fR directory contained directly in it that ends
13451 in \fI.framework\fR.  The name of a framework is the name of this
13452 directory excluding the \fI.framework\fR.  Headers associated with
13453 the framework are found in one of those two directories, with
13454 \&\fIHeaders\fR being searched first.  A subframework is a framework
13455 directory that is in a framework's \fIFrameworks\fR directory.
13456 Includes of subframework headers can only appear in a header of a
13457 framework that contains the subframework, or in a sibling subframework
13458 header.  Two subframeworks are siblings if they occur in the same
13459 framework.  A subframework should not have the same name as a
13460 framework; a warning is issued if this is violated.  Currently a
13461 subframework cannot have subframeworks; in the future, the mechanism
13462 may be extended to support this.  The standard frameworks can be found
13463 in \fI/System/Library/Frameworks\fR and
13464 \&\fI/Library/Frameworks\fR.  An example include looks like
13465 \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fIFramework\fR denotes
13466 the name of the framework and \fIheader.h\fR is found in the
13467 \&\fIPrivateHeaders\fR or \fIHeaders\fR directory.
13468 .IP "\fB\-iframework\fR\fIdir\fR" 4
13469 .IX Item "-iframeworkdir"
13470 Like \fB\-F\fR except the directory is a treated as a system
13471 directory.  The main difference between this \fB\-iframework\fR and
13472 \&\fB\-F\fR is that with \fB\-iframework\fR the compiler does not
13473 warn about constructs contained within header files found via
13474 \&\fIdir\fR.  This option is valid only for the C family of languages.
13475 .IP "\fB\-gused\fR" 4
13476 .IX Item "-gused"
13477 Emit debugging information for symbols that are used.  For stabs
13478 debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
13479 This is by default \s-1ON\s0.
13480 .IP "\fB\-gfull\fR" 4
13481 .IX Item "-gfull"
13482 Emit debugging information for all symbols and types.
13483 .IP "\fB\-mmacosx\-version\-min=\fR\fIversion\fR" 4
13484 .IX Item "-mmacosx-version-min=version"
13485 The earliest version of MacOS X that this executable will run on
13486 is \fIversion\fR.  Typical values of \fIversion\fR include \f(CW10.1\fR,
13487 \&\f(CW10.2\fR, and \f(CW10.3.9\fR.
13488 .Sp
13489 If the compiler was built to use the system's headers by default,
13490 then the default for this option is the system version on which the
13491 compiler is running, otherwise the default is to make choices that
13492 are compatible with as many systems and code bases as possible.
13493 .IP "\fB\-mkernel\fR" 4
13494 .IX Item "-mkernel"
13495 Enable kernel development mode.  The \fB\-mkernel\fR option sets
13496 \&\fB\-static\fR, \fB\-fno\-common\fR, \fB\-fno\-use\-cxa\-atexit\fR,
13497 \&\fB\-fno\-exceptions\fR, \fB\-fno\-non\-call\-exceptions\fR,
13498 \&\fB\-fapple\-kext\fR, \fB\-fno\-weak\fR and \fB\-fno\-rtti\fR where
13499 applicable.  This mode also sets \fB\-mno\-altivec\fR,
13500 \&\fB\-msoft\-float\fR, \fB\-fno\-builtin\fR and
13501 \&\fB\-mlong\-branch\fR for PowerPC targets.
13502 .IP "\fB\-mone\-byte\-bool\fR" 4
13503 .IX Item "-mone-byte-bool"
13504 Override the defaults for \f(CW\*(C`bool\*(C'\fR so that \f(CW\*(C`sizeof(bool)==1\*(C'\fR.
13505 By default \f(CW\*(C`sizeof(bool)\*(C'\fR is \f(CW4\fR when compiling for
13506 Darwin/PowerPC and \f(CW1\fR when compiling for Darwin/x86, so this
13507 option has no effect on x86.
13508 .Sp
13509 \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
13510 to generate code that is not binary compatible with code generated
13511 without that switch.  Using this switch may require recompiling all
13512 other modules in a program, including system libraries.  Use this
13513 switch to conform to a non-default data model.
13514 .IP "\fB\-mfix\-and\-continue\fR" 4
13515 .IX Item "-mfix-and-continue"
13516 .PD 0
13517 .IP "\fB\-ffix\-and\-continue\fR" 4
13518 .IX Item "-ffix-and-continue"
13519 .IP "\fB\-findirect\-data\fR" 4
13520 .IX Item "-findirect-data"
13521 .PD
13522 Generate code suitable for fast turnaround development, such as to
13523 allow \s-1GDB\s0 to dynamically load \fI.o\fR files into already-running
13524 programs.  \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
13525 are provided for backwards compatibility.
13526 .IP "\fB\-all_load\fR" 4
13527 .IX Item "-all_load"
13528 Loads all members of static archive libraries.
13529 See man \fIld\fR\|(1) for more information.
13530 .IP "\fB\-arch_errors_fatal\fR" 4
13531 .IX Item "-arch_errors_fatal"
13532 Cause the errors having to do with files that have the wrong architecture
13533 to be fatal.
13534 .IP "\fB\-bind_at_load\fR" 4
13535 .IX Item "-bind_at_load"
13536 Causes the output file to be marked such that the dynamic linker will
13537 bind all undefined references when the file is loaded or launched.
13538 .IP "\fB\-bundle\fR" 4
13539 .IX Item "-bundle"
13540 Produce a Mach-o bundle format file.
13541 See man \fIld\fR\|(1) for more information.
13542 .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
13543 .IX Item "-bundle_loader executable"
13544 This option specifies the \fIexecutable\fR that will load the build
13545 output file being linked.  See man \fIld\fR\|(1) for more information.
13546 .IP "\fB\-dynamiclib\fR" 4
13547 .IX Item "-dynamiclib"
13548 When passed this option, \s-1GCC\s0 produces a dynamic library instead of
13549 an executable when linking, using the Darwin \fIlibtool\fR command.
13550 .IP "\fB\-force_cpusubtype_ALL\fR" 4
13551 .IX Item "-force_cpusubtype_ALL"
13552 This causes \s-1GCC\s0's output file to have the \fB\s-1ALL\s0\fR subtype, instead of
13553 one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
13554 .IP "\fB\-allowable_client\fR  \fIclient_name\fR" 4
13555 .IX Item "-allowable_client  client_name"
13556 .PD 0
13557 .IP "\fB\-client_name\fR" 4
13558 .IX Item "-client_name"
13559 .IP "\fB\-compatibility_version\fR" 4
13560 .IX Item "-compatibility_version"
13561 .IP "\fB\-current_version\fR" 4
13562 .IX Item "-current_version"
13563 .IP "\fB\-dead_strip\fR" 4
13564 .IX Item "-dead_strip"
13565 .IP "\fB\-dependency\-file\fR" 4
13566 .IX Item "-dependency-file"
13567 .IP "\fB\-dylib_file\fR" 4
13568 .IX Item "-dylib_file"
13569 .IP "\fB\-dylinker_install_name\fR" 4
13570 .IX Item "-dylinker_install_name"
13571 .IP "\fB\-dynamic\fR" 4
13572 .IX Item "-dynamic"
13573 .IP "\fB\-exported_symbols_list\fR" 4
13574 .IX Item "-exported_symbols_list"
13575 .IP "\fB\-filelist\fR" 4
13576 .IX Item "-filelist"
13577 .IP "\fB\-flat_namespace\fR" 4
13578 .IX Item "-flat_namespace"
13579 .IP "\fB\-force_flat_namespace\fR" 4
13580 .IX Item "-force_flat_namespace"
13581 .IP "\fB\-headerpad_max_install_names\fR" 4
13582 .IX Item "-headerpad_max_install_names"
13583 .IP "\fB\-image_base\fR" 4
13584 .IX Item "-image_base"
13585 .IP "\fB\-init\fR" 4
13586 .IX Item "-init"
13587 .IP "\fB\-install_name\fR" 4
13588 .IX Item "-install_name"
13589 .IP "\fB\-keep_private_externs\fR" 4
13590 .IX Item "-keep_private_externs"
13591 .IP "\fB\-multi_module\fR" 4
13592 .IX Item "-multi_module"
13593 .IP "\fB\-multiply_defined\fR" 4
13594 .IX Item "-multiply_defined"
13595 .IP "\fB\-multiply_defined_unused\fR" 4
13596 .IX Item "-multiply_defined_unused"
13597 .IP "\fB\-noall_load\fR" 4
13598 .IX Item "-noall_load"
13599 .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
13600 .IX Item "-no_dead_strip_inits_and_terms"
13601 .IP "\fB\-nofixprebinding\fR" 4
13602 .IX Item "-nofixprebinding"
13603 .IP "\fB\-nomultidefs\fR" 4
13604 .IX Item "-nomultidefs"
13605 .IP "\fB\-noprebind\fR" 4
13606 .IX Item "-noprebind"
13607 .IP "\fB\-noseglinkedit\fR" 4
13608 .IX Item "-noseglinkedit"
13609 .IP "\fB\-pagezero_size\fR" 4
13610 .IX Item "-pagezero_size"
13611 .IP "\fB\-prebind\fR" 4
13612 .IX Item "-prebind"
13613 .IP "\fB\-prebind_all_twolevel_modules\fR" 4
13614 .IX Item "-prebind_all_twolevel_modules"
13615 .IP "\fB\-private_bundle\fR" 4
13616 .IX Item "-private_bundle"
13617 .IP "\fB\-read_only_relocs\fR" 4
13618 .IX Item "-read_only_relocs"
13619 .IP "\fB\-sectalign\fR" 4
13620 .IX Item "-sectalign"
13621 .IP "\fB\-sectobjectsymbols\fR" 4
13622 .IX Item "-sectobjectsymbols"
13623 .IP "\fB\-whyload\fR" 4
13624 .IX Item "-whyload"
13625 .IP "\fB\-seg1addr\fR" 4
13626 .IX Item "-seg1addr"
13627 .IP "\fB\-sectcreate\fR" 4
13628 .IX Item "-sectcreate"
13629 .IP "\fB\-sectobjectsymbols\fR" 4
13630 .IX Item "-sectobjectsymbols"
13631 .IP "\fB\-sectorder\fR" 4
13632 .IX Item "-sectorder"
13633 .IP "\fB\-segaddr\fR" 4
13634 .IX Item "-segaddr"
13635 .IP "\fB\-segs_read_only_addr\fR" 4
13636 .IX Item "-segs_read_only_addr"
13637 .IP "\fB\-segs_read_write_addr\fR" 4
13638 .IX Item "-segs_read_write_addr"
13639 .IP "\fB\-seg_addr_table\fR" 4
13640 .IX Item "-seg_addr_table"
13641 .IP "\fB\-seg_addr_table_filename\fR" 4
13642 .IX Item "-seg_addr_table_filename"
13643 .IP "\fB\-seglinkedit\fR" 4
13644 .IX Item "-seglinkedit"
13645 .IP "\fB\-segprot\fR" 4
13646 .IX Item "-segprot"
13647 .IP "\fB\-segs_read_only_addr\fR" 4
13648 .IX Item "-segs_read_only_addr"
13649 .IP "\fB\-segs_read_write_addr\fR" 4
13650 .IX Item "-segs_read_write_addr"
13651 .IP "\fB\-single_module\fR" 4
13652 .IX Item "-single_module"
13653 .IP "\fB\-static\fR" 4
13654 .IX Item "-static"
13655 .IP "\fB\-sub_library\fR" 4
13656 .IX Item "-sub_library"
13657 .IP "\fB\-sub_umbrella\fR" 4
13658 .IX Item "-sub_umbrella"
13659 .IP "\fB\-twolevel_namespace\fR" 4
13660 .IX Item "-twolevel_namespace"
13661 .IP "\fB\-umbrella\fR" 4
13662 .IX Item "-umbrella"
13663 .IP "\fB\-undefined\fR" 4
13664 .IX Item "-undefined"
13665 .IP "\fB\-unexported_symbols_list\fR" 4
13666 .IX Item "-unexported_symbols_list"
13667 .IP "\fB\-weak_reference_mismatches\fR" 4
13668 .IX Item "-weak_reference_mismatches"
13669 .IP "\fB\-whatsloaded\fR" 4
13670 .IX Item "-whatsloaded"
13671 .PD
13672 These options are passed to the Darwin linker.  The Darwin linker man page
13673 describes them in detail.
13674 .PP
13675 \fI\s-1DEC\s0 Alpha Options\fR
13676 .IX Subsection "DEC Alpha Options"
13677 .PP
13678 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
13679 .IP "\fB\-mno\-soft\-float\fR" 4
13680 .IX Item "-mno-soft-float"
13681 .PD 0
13682 .IP "\fB\-msoft\-float\fR" 4
13683 .IX Item "-msoft-float"
13684 .PD
13685 Use (do not use) the hardware floating-point instructions for
13686 floating-point operations.  When \fB\-msoft\-float\fR is specified,
13687 functions in \fIlibgcc.a\fR are used to perform floating-point
13688 operations.  Unless they are replaced by routines that emulate the
13689 floating-point operations, or compiled in such a way as to call such
13690 emulations routines, these routines issue floating-point
13691 operations.   If you are compiling for an Alpha without floating-point
13692 operations, you must ensure that the library is built so as not to call
13693 them.
13694 .Sp
13695 Note that Alpha implementations without floating-point operations are
13696 required to have floating-point registers.
13697 .IP "\fB\-mfp\-reg\fR" 4
13698 .IX Item "-mfp-reg"
13699 .PD 0
13700 .IP "\fB\-mno\-fp\-regs\fR" 4
13701 .IX Item "-mno-fp-regs"
13702 .PD
13703 Generate code that uses (does not use) the floating-point register set.
13704 \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR.  If the floating-point
13705 register set is not used, floating-point operands are passed in integer
13706 registers as if they were integers and floating-point results are passed
13707 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence,
13708 so any function with a floating-point argument or return value called by code
13709 compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
13710 option.
13711 .Sp
13712 A typical use of this option is building a kernel that does not use,
13713 and hence need not save and restore, any floating-point registers.
13714 .IP "\fB\-mieee\fR" 4
13715 .IX Item "-mieee"
13716 The Alpha architecture implements floating-point hardware optimized for
13717 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating-point
13718 standard.  However, for full compliance, software assistance is
13719 required.  This option generates code fully IEEE-compliant code
13720 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
13721 If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
13722 defined during compilation.  The resulting code is less efficient but is
13723 able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
13724 values such as not-a-number and plus/minus infinity.  Other Alpha
13725 compilers call this option \fB\-ieee_with_no_inexact\fR.
13726 .IP "\fB\-mieee\-with\-inexact\fR" 4
13727 .IX Item "-mieee-with-inexact"
13728 This is like \fB\-mieee\fR except the generated code also maintains
13729 the \s-1IEEE\s0 \fIinexact-flag\fR.  Turning on this option causes the
13730 generated code to implement fully-compliant \s-1IEEE\s0 math.  In addition to
13731 \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
13732 macro.  On some Alpha implementations the resulting code may execute
13733 significantly slower than the code generated by default.  Since there is
13734 very little code that depends on the \fIinexact-flag\fR, you should
13735 normally not specify this option.  Other Alpha compilers call this
13736 option \fB\-ieee_with_inexact\fR.
13737 .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
13738 .IX Item "-mfp-trap-mode=trap-mode"
13739 This option controls what floating-point related traps are enabled.
13740 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
13741 The trap mode can be set to one of four values:
13742 .RS 4
13743 .IP "\fBn\fR" 4
13744 .IX Item "n"
13745 This is the default (normal) setting.  The only traps that are enabled
13746 are the ones that cannot be disabled in software (e.g., division by zero
13747 trap).
13748 .IP "\fBu\fR" 4
13749 .IX Item "u"
13750 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
13751 as well.
13752 .IP "\fBsu\fR" 4
13753 .IX Item "su"
13754 Like \fBu\fR, but the instructions are marked to be safe for software
13755 completion (see Alpha architecture manual for details).
13756 .IP "\fBsui\fR" 4
13757 .IX Item "sui"
13758 Like \fBsu\fR, but inexact traps are enabled as well.
13759 .RE
13760 .RS 4
13761 .RE
13762 .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
13763 .IX Item "-mfp-rounding-mode=rounding-mode"
13764 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
13765 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
13766 of:
13767 .RS 4
13768 .IP "\fBn\fR" 4
13769 .IX Item "n"
13770 Normal \s-1IEEE\s0 rounding mode.  Floating-point numbers are rounded towards
13771 the nearest machine number or towards the even machine number in case
13772 of a tie.
13773 .IP "\fBm\fR" 4
13774 .IX Item "m"
13775 Round towards minus infinity.
13776 .IP "\fBc\fR" 4
13777 .IX Item "c"
13778 Chopped rounding mode.  Floating-point numbers are rounded towards zero.
13779 .IP "\fBd\fR" 4
13780 .IX Item "d"
13781 Dynamic rounding mode.  A field in the floating-point control register
13782 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
13783 rounding mode in effect.  The C library initializes this register for
13784 rounding towards plus infinity.  Thus, unless your program modifies the
13785 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
13786 .RE
13787 .RS 4
13788 .RE
13789 .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
13790 .IX Item "-mtrap-precision=trap-precision"
13791 In the Alpha architecture, floating-point traps are imprecise.  This
13792 means without software assistance it is impossible to recover from a
13793 floating trap and program execution normally needs to be terminated.
13794 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
13795 in determining the exact location that caused a floating-point trap.
13796 Depending on the requirements of an application, different levels of
13797 precisions can be selected:
13798 .RS 4
13799 .IP "\fBp\fR" 4
13800 .IX Item "p"
13801 Program precision.  This option is the default and means a trap handler
13802 can only identify which program caused a floating-point exception.
13803 .IP "\fBf\fR" 4
13804 .IX Item "f"
13805 Function precision.  The trap handler can determine the function that
13806 caused a floating-point exception.
13807 .IP "\fBi\fR" 4
13808 .IX Item "i"
13809 Instruction precision.  The trap handler can determine the exact
13810 instruction that caused a floating-point exception.
13811 .RE
13812 .RS 4
13813 .Sp
13814 Other Alpha compilers provide the equivalent options called
13815 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
13816 .RE
13817 .IP "\fB\-mieee\-conformant\fR" 4
13818 .IX Item "-mieee-conformant"
13819 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
13820 use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
13821 \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR.  Its only effect
13822 is to emit the line \fB.eflag 48\fR in the function prologue of the
13823 generated assembly file.
13824 .IP "\fB\-mbuild\-constants\fR" 4
13825 .IX Item "-mbuild-constants"
13826 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
13827 see if it can construct it from smaller constants in two or three
13828 instructions.  If it cannot, it outputs the constant as a literal and
13829 generates code to load it from the data segment at run time.
13830 .Sp
13831 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
13832 using code, even if it takes more instructions (the maximum is six).
13833 .Sp
13834 You typically use this option to build a shared library dynamic
13835 loader.  Itself a shared library, it must relocate itself in memory
13836 before it can find the variables and constants in its own data segment.
13837 .IP "\fB\-mbwx\fR" 4
13838 .IX Item "-mbwx"
13839 .PD 0
13840 .IP "\fB\-mno\-bwx\fR" 4
13841 .IX Item "-mno-bwx"
13842 .IP "\fB\-mcix\fR" 4
13843 .IX Item "-mcix"
13844 .IP "\fB\-mno\-cix\fR" 4
13845 .IX Item "-mno-cix"
13846 .IP "\fB\-mfix\fR" 4
13847 .IX Item "-mfix"
13848 .IP "\fB\-mno\-fix\fR" 4
13849 .IX Item "-mno-fix"
13850 .IP "\fB\-mmax\fR" 4
13851 .IX Item "-mmax"
13852 .IP "\fB\-mno\-max\fR" 4
13853 .IX Item "-mno-max"
13854 .PD
13855 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX\s0,
13856 \&\s-1CIX\s0, \s-1FIX\s0 and \s-1MAX\s0 instruction sets.  The default is to use the instruction
13857 sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
13858 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none is specified.
13859 .IP "\fB\-mfloat\-vax\fR" 4
13860 .IX Item "-mfloat-vax"
13861 .PD 0
13862 .IP "\fB\-mfloat\-ieee\fR" 4
13863 .IX Item "-mfloat-ieee"
13864 .PD
13865 Generate code that uses (does not use) \s-1VAX\s0 F and G floating-point
13866 arithmetic instead of \s-1IEEE\s0 single and double precision.
13867 .IP "\fB\-mexplicit\-relocs\fR" 4
13868 .IX Item "-mexplicit-relocs"
13869 .PD 0
13870 .IP "\fB\-mno\-explicit\-relocs\fR" 4
13871 .IX Item "-mno-explicit-relocs"
13872 .PD
13873 Older Alpha assemblers provided no way to generate symbol relocations
13874 except via assembler macros.  Use of these macros does not allow
13875 optimal instruction scheduling.  \s-1GNU\s0 binutils as of version 2.12
13876 supports a new syntax that allows the compiler to explicitly mark
13877 which relocations should apply to which instructions.  This option
13878 is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
13879 the assembler when it is built and sets the default accordingly.
13880 .IP "\fB\-msmall\-data\fR" 4
13881 .IX Item "-msmall-data"
13882 .PD 0
13883 .IP "\fB\-mlarge\-data\fR" 4
13884 .IX Item "-mlarge-data"
13885 .PD
13886 When \fB\-mexplicit\-relocs\fR is in effect, static data is
13887 accessed via \fIgp-relative\fR relocations.  When \fB\-msmall\-data\fR
13888 is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
13889 (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
13890 16\-bit relocations off of the \f(CW$gp\fR register.  This limits the
13891 size of the small data area to 64KB, but allows the variables to be
13892 directly accessed via a single instruction.
13893 .Sp
13894 The default is \fB\-mlarge\-data\fR.  With this option the data area
13895 is limited to just below 2GB.  Programs that require more than 2GB of
13896 data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
13897 heap instead of in the program's data segment.
13898 .Sp
13899 When generating code for shared libraries, \fB\-fpic\fR implies
13900 \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
13901 .IP "\fB\-msmall\-text\fR" 4
13902 .IX Item "-msmall-text"
13903 .PD 0
13904 .IP "\fB\-mlarge\-text\fR" 4
13905 .IX Item "-mlarge-text"
13906 .PD
13907 When \fB\-msmall\-text\fR is used, the compiler assumes that the
13908 code of the entire program (or shared library) fits in 4MB, and is
13909 thus reachable with a branch instruction.  When \fB\-msmall\-data\fR
13910 is used, the compiler can assume that all local symbols share the
13911 same \f(CW$gp\fR value, and thus reduce the number of instructions
13912 required for a function call from 4 to 1.
13913 .Sp
13914 The default is \fB\-mlarge\-text\fR.
13915 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
13916 .IX Item "-mcpu=cpu_type"
13917 Set the instruction set and instruction scheduling parameters for
13918 machine type \fIcpu_type\fR.  You can specify either the \fB\s-1EV\s0\fR
13919 style name or the corresponding chip number.  \s-1GCC\s0 supports scheduling
13920 parameters for the \s-1EV4\s0, \s-1EV5\s0 and \s-1EV6\s0 family of processors and
13921 chooses the default values for the instruction set from the processor
13922 you specify.  If you do not specify a processor type, \s-1GCC\s0 defaults
13923 to the processor on which the compiler was built.
13924 .Sp
13925 Supported values for \fIcpu_type\fR are
13926 .RS 4
13927 .IP "\fBev4\fR" 4
13928 .IX Item "ev4"
13929 .PD 0
13930 .IP "\fBev45\fR" 4
13931 .IX Item "ev45"
13932 .IP "\fB21064\fR" 4
13933 .IX Item "21064"
13934 .PD
13935 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
13936 .IP "\fBev5\fR" 4
13937 .IX Item "ev5"
13938 .PD 0
13939 .IP "\fB21164\fR" 4
13940 .IX Item "21164"
13941 .PD
13942 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
13943 .IP "\fBev56\fR" 4
13944 .IX Item "ev56"
13945 .PD 0
13946 .IP "\fB21164a\fR" 4
13947 .IX Item "21164a"
13948 .PD
13949 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
13950 .IP "\fBpca56\fR" 4
13951 .IX Item "pca56"
13952 .PD 0
13953 .IP "\fB21164pc\fR" 4
13954 .IX Item "21164pc"
13955 .IP "\fB21164PC\fR" 4
13956 .IX Item "21164PC"
13957 .PD
13958 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
13959 .IP "\fBev6\fR" 4
13960 .IX Item "ev6"
13961 .PD 0
13962 .IP "\fB21264\fR" 4
13963 .IX Item "21264"
13964 .PD
13965 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
13966 .IP "\fBev67\fR" 4
13967 .IX Item "ev67"
13968 .PD 0
13969 .IP "\fB21264a\fR" 4
13970 .IX Item "21264a"
13971 .PD
13972 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1CIX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
13973 .RE
13974 .RS 4
13975 .Sp
13976 Native toolchains also support the value \fBnative\fR,
13977 which selects the best architecture option for the host processor.
13978 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
13979 the processor.
13980 .RE
13981 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
13982 .IX Item "-mtune=cpu_type"
13983 Set only the instruction scheduling parameters for machine type
13984 \&\fIcpu_type\fR.  The instruction set is not changed.
13985 .Sp
13986 Native toolchains also support the value \fBnative\fR,
13987 which selects the best architecture option for the host processor.
13988 \&\fB\-mtune=native\fR has no effect if \s-1GCC\s0 does not recognize
13989 the processor.
13990 .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
13991 .IX Item "-mmemory-latency=time"
13992 Sets the latency the scheduler should assume for typical memory
13993 references as seen by the application.  This number is highly
13994 dependent on the memory access patterns used by the application
13995 and the size of the external cache on the machine.
13996 .Sp
13997 Valid options for \fItime\fR are
13998 .RS 4
13999 .IP "\fInumber\fR" 4
14000 .IX Item "number"
14001 A decimal number representing clock cycles.
14002 .IP "\fBL1\fR" 4
14003 .IX Item "L1"
14004 .PD 0
14005 .IP "\fBL2\fR" 4
14006 .IX Item "L2"
14007 .IP "\fBL3\fR" 4
14008 .IX Item "L3"
14009 .IP "\fBmain\fR" 4
14010 .IX Item "main"
14011 .PD
14012 The compiler contains estimates of the number of clock cycles for
14013 \&\*(L"typical\*(R" \s-1EV4\s0 & \s-1EV5\s0 hardware for the Level 1, 2 & 3 caches
14014 (also called Dcache, Scache, and Bcache), as well as to main memory.
14015 Note that L3 is only valid for \s-1EV5\s0.
14016 .RE
14017 .RS 4
14018 .RE
14019 .PP
14020 \fI\s-1FR30\s0 Options\fR
14021 .IX Subsection "FR30 Options"
14022 .PP
14023 These options are defined specifically for the \s-1FR30\s0 port.
14024 .IP "\fB\-msmall\-model\fR" 4
14025 .IX Item "-msmall-model"
14026 Use the small address space model.  This can produce smaller code, but
14027 it does assume that all symbolic values and addresses fit into a
14028 20\-bit range.
14029 .IP "\fB\-mno\-lsim\fR" 4
14030 .IX Item "-mno-lsim"
14031 Assume that runtime support has been provided and so there is no need
14032 to include the simulator library (\fIlibsim.a\fR) on the linker
14033 command line.
14034 .PP
14035 \fI\s-1FRV\s0 Options\fR
14036 .IX Subsection "FRV Options"
14037 .IP "\fB\-mgpr\-32\fR" 4
14038 .IX Item "-mgpr-32"
14039 Only use the first 32 general-purpose registers.
14040 .IP "\fB\-mgpr\-64\fR" 4
14041 .IX Item "-mgpr-64"
14042 Use all 64 general-purpose registers.
14043 .IP "\fB\-mfpr\-32\fR" 4
14044 .IX Item "-mfpr-32"
14045 Use only the first 32 floating-point registers.
14046 .IP "\fB\-mfpr\-64\fR" 4
14047 .IX Item "-mfpr-64"
14048 Use all 64 floating-point registers.
14049 .IP "\fB\-mhard\-float\fR" 4
14050 .IX Item "-mhard-float"
14051 Use hardware instructions for floating-point operations.
14052 .IP "\fB\-msoft\-float\fR" 4
14053 .IX Item "-msoft-float"
14054 Use library routines for floating-point operations.
14055 .IP "\fB\-malloc\-cc\fR" 4
14056 .IX Item "-malloc-cc"
14057 Dynamically allocate condition code registers.
14058 .IP "\fB\-mfixed\-cc\fR" 4
14059 .IX Item "-mfixed-cc"
14060 Do not try to dynamically allocate condition code registers, only
14061 use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
14062 .IP "\fB\-mdword\fR" 4
14063 .IX Item "-mdword"
14064 Change \s-1ABI\s0 to use double word insns.
14065 .IP "\fB\-mno\-dword\fR" 4
14066 .IX Item "-mno-dword"
14067 Do not use double word instructions.
14068 .IP "\fB\-mdouble\fR" 4
14069 .IX Item "-mdouble"
14070 Use floating-point double instructions.
14071 .IP "\fB\-mno\-double\fR" 4
14072 .IX Item "-mno-double"
14073 Do not use floating-point double instructions.
14074 .IP "\fB\-mmedia\fR" 4
14075 .IX Item "-mmedia"
14076 Use media instructions.
14077 .IP "\fB\-mno\-media\fR" 4
14078 .IX Item "-mno-media"
14079 Do not use media instructions.
14080 .IP "\fB\-mmuladd\fR" 4
14081 .IX Item "-mmuladd"
14082 Use multiply and add/subtract instructions.
14083 .IP "\fB\-mno\-muladd\fR" 4
14084 .IX Item "-mno-muladd"
14085 Do not use multiply and add/subtract instructions.
14086 .IP "\fB\-mfdpic\fR" 4
14087 .IX Item "-mfdpic"
14088 Select the \s-1FDPIC\s0 \s-1ABI\s0, which uses function descriptors to represent
14089 pointers to functions.  Without any PIC/PIE\-related options, it
14090 implies \fB\-fPIE\fR.  With \fB\-fpic\fR or \fB\-fpie\fR, it
14091 assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
14092 \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
14093 are computed with 32 bits.
14094 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
14095 .IP "\fB\-minline\-plt\fR" 4
14096 .IX Item "-minline-plt"
14097 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
14098 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
14099 It's enabled by default if optimizing for speed and compiling for
14100 shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
14101 optimization option such as \fB\-O3\fR or above is present in the
14102 command line.
14103 .IP "\fB\-mTLS\fR" 4
14104 .IX Item "-mTLS"
14105 Assume a large \s-1TLS\s0 segment when generating thread-local code.
14106 .IP "\fB\-mtls\fR" 4
14107 .IX Item "-mtls"
14108 Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
14109 .IP "\fB\-mgprel\-ro\fR" 4
14110 .IX Item "-mgprel-ro"
14111 Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC\s0 \s-1ABI\s0 for data
14112 that is known to be in read-only sections.  It's enabled by default,
14113 except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
14114 make the global offset table smaller, it trades 1 instruction for 4.
14115 With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
14116 one of which may be shared by multiple symbols, and it avoids the need
14117 for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
14118 win.  If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
14119 .IP "\fB\-multilib\-library\-pic\fR" 4
14120 .IX Item "-multilib-library-pic"
14121 Link with the (library, not \s-1FD\s0) pic libraries.  It's implied by
14122 \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
14123 \&\fB\-fpic\fR without \fB\-mfdpic\fR.  You should never have to use
14124 it explicitly.
14125 .IP "\fB\-mlinked\-fp\fR" 4
14126 .IX Item "-mlinked-fp"
14127 Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
14128 a stack frame is allocated.  This option is enabled by default and can
14129 be disabled with \fB\-mno\-linked\-fp\fR.
14130 .IP "\fB\-mlong\-calls\fR" 4
14131 .IX Item "-mlong-calls"
14132 Use indirect addressing to call functions outside the current
14133 compilation unit.  This allows the functions to be placed anywhere
14134 within the 32\-bit address space.
14135 .IP "\fB\-malign\-labels\fR" 4
14136 .IX Item "-malign-labels"
14137 Try to align labels to an 8\-byte boundary by inserting NOPs into the
14138 previous packet.  This option only has an effect when \s-1VLIW\s0 packing
14139 is enabled.  It doesn't create new packets; it merely adds NOPs to
14140 existing ones.
14141 .IP "\fB\-mlibrary\-pic\fR" 4
14142 .IX Item "-mlibrary-pic"
14143 Generate position-independent \s-1EABI\s0 code.
14144 .IP "\fB\-macc\-4\fR" 4
14145 .IX Item "-macc-4"
14146 Use only the first four media accumulator registers.
14147 .IP "\fB\-macc\-8\fR" 4
14148 .IX Item "-macc-8"
14149 Use all eight media accumulator registers.
14150 .IP "\fB\-mpack\fR" 4
14151 .IX Item "-mpack"
14152 Pack \s-1VLIW\s0 instructions.
14153 .IP "\fB\-mno\-pack\fR" 4
14154 .IX Item "-mno-pack"
14155 Do not pack \s-1VLIW\s0 instructions.
14156 .IP "\fB\-mno\-eflags\fR" 4
14157 .IX Item "-mno-eflags"
14158 Do not mark \s-1ABI\s0 switches in e_flags.
14159 .IP "\fB\-mcond\-move\fR" 4
14160 .IX Item "-mcond-move"
14161 Enable the use of conditional-move instructions (default).
14162 .Sp
14163 This switch is mainly for debugging the compiler and will likely be removed
14164 in a future version.
14165 .IP "\fB\-mno\-cond\-move\fR" 4
14166 .IX Item "-mno-cond-move"
14167 Disable the use of conditional-move instructions.
14168 .Sp
14169 This switch is mainly for debugging the compiler and will likely be removed
14170 in a future version.
14171 .IP "\fB\-mscc\fR" 4
14172 .IX Item "-mscc"
14173 Enable the use of conditional set instructions (default).
14174 .Sp
14175 This switch is mainly for debugging the compiler and will likely be removed
14176 in a future version.
14177 .IP "\fB\-mno\-scc\fR" 4
14178 .IX Item "-mno-scc"
14179 Disable the use of conditional set instructions.
14180 .Sp
14181 This switch is mainly for debugging the compiler and will likely be removed
14182 in a future version.
14183 .IP "\fB\-mcond\-exec\fR" 4
14184 .IX Item "-mcond-exec"
14185 Enable the use of conditional execution (default).
14186 .Sp
14187 This switch is mainly for debugging the compiler and will likely be removed
14188 in a future version.
14189 .IP "\fB\-mno\-cond\-exec\fR" 4
14190 .IX Item "-mno-cond-exec"
14191 Disable the use of conditional execution.
14192 .Sp
14193 This switch is mainly for debugging the compiler and will likely be removed
14194 in a future version.
14195 .IP "\fB\-mvliw\-branch\fR" 4
14196 .IX Item "-mvliw-branch"
14197 Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
14198 .Sp
14199 This switch is mainly for debugging the compiler and will likely be removed
14200 in a future version.
14201 .IP "\fB\-mno\-vliw\-branch\fR" 4
14202 .IX Item "-mno-vliw-branch"
14203 Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
14204 .Sp
14205 This switch is mainly for debugging the compiler and will likely be removed
14206 in a future version.
14207 .IP "\fB\-mmulti\-cond\-exec\fR" 4
14208 .IX Item "-mmulti-cond-exec"
14209 Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
14210 (default).
14211 .Sp
14212 This switch is mainly for debugging the compiler and will likely be removed
14213 in a future version.
14214 .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
14215 .IX Item "-mno-multi-cond-exec"
14216 Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
14217 .Sp
14218 This switch is mainly for debugging the compiler and will likely be removed
14219 in a future version.
14220 .IP "\fB\-mnested\-cond\-exec\fR" 4
14221 .IX Item "-mnested-cond-exec"
14222 Enable nested conditional execution optimizations (default).
14223 .Sp
14224 This switch is mainly for debugging the compiler and will likely be removed
14225 in a future version.
14226 .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
14227 .IX Item "-mno-nested-cond-exec"
14228 Disable nested conditional execution optimizations.
14229 .Sp
14230 This switch is mainly for debugging the compiler and will likely be removed
14231 in a future version.
14232 .IP "\fB\-moptimize\-membar\fR" 4
14233 .IX Item "-moptimize-membar"
14234 This switch removes redundant \f(CW\*(C`membar\*(C'\fR instructions from the
14235 compiler-generated code.  It is enabled by default.
14236 .IP "\fB\-mno\-optimize\-membar\fR" 4
14237 .IX Item "-mno-optimize-membar"
14238 This switch disables the automatic removal of redundant \f(CW\*(C`membar\*(C'\fR
14239 instructions from the generated code.
14240 .IP "\fB\-mtomcat\-stats\fR" 4
14241 .IX Item "-mtomcat-stats"
14242 Cause gas to print out tomcat statistics.
14243 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
14244 .IX Item "-mcpu=cpu"
14245 Select the processor type for which to generate code.  Possible values are
14246 \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
14247 \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
14248 .PP
14249 \fIGNU/Linux Options\fR
14250 .IX Subsection "GNU/Linux Options"
14251 .PP
14252 These \fB\-m\fR options are defined for GNU/Linux targets:
14253 .IP "\fB\-mglibc\fR" 4
14254 .IX Item "-mglibc"
14255 Use the \s-1GNU\s0 C library.  This is the default except
14256 on \fB*\-*\-linux\-*uclibc*\fR and \fB*\-*\-linux\-*android*\fR targets.
14257 .IP "\fB\-muclibc\fR" 4
14258 .IX Item "-muclibc"
14259 Use uClibc C library.  This is the default on
14260 \&\fB*\-*\-linux\-*uclibc*\fR targets.
14261 .IP "\fB\-mbionic\fR" 4
14262 .IX Item "-mbionic"
14263 Use Bionic C library.  This is the default on
14264 \&\fB*\-*\-linux\-*android*\fR targets.
14265 .IP "\fB\-mandroid\fR" 4
14266 .IX Item "-mandroid"
14267 Compile code compatible with Android platform.  This is the default on
14268 \&\fB*\-*\-linux\-*android*\fR targets.
14269 .Sp
14270 When compiling, this option enables \fB\-mbionic\fR, \fB\-fPIC\fR,
14271 \&\fB\-fno\-exceptions\fR and \fB\-fno\-rtti\fR by default.  When linking,
14272 this option makes the \s-1GCC\s0 driver pass Android-specific options to the linker.
14273 Finally, this option causes the preprocessor macro \f(CW\*(C`_\|_ANDROID_\|_\*(C'\fR
14274 to be defined.
14275 .IP "\fB\-tno\-android\-cc\fR" 4
14276 .IX Item "-tno-android-cc"
14277 Disable compilation effects of \fB\-mandroid\fR, i.e., do not enable
14278 \&\fB\-mbionic\fR, \fB\-fPIC\fR, \fB\-fno\-exceptions\fR and
14279 \&\fB\-fno\-rtti\fR by default.
14280 .IP "\fB\-tno\-android\-ld\fR" 4
14281 .IX Item "-tno-android-ld"
14282 Disable linking effects of \fB\-mandroid\fR, i.e., pass standard Linux
14283 linking options to the linker.
14284 .PP
14285 \fIH8/300 Options\fR
14286 .IX Subsection "H8/300 Options"
14287 .PP
14288 These \fB\-m\fR options are defined for the H8/300 implementations:
14289 .IP "\fB\-mrelax\fR" 4
14290 .IX Item "-mrelax"
14291 Shorten some address references at link time, when possible; uses the
14292 linker option \fB\-relax\fR.
14293 .IP "\fB\-mh\fR" 4
14294 .IX Item "-mh"
14295 Generate code for the H8/300H.
14296 .IP "\fB\-ms\fR" 4
14297 .IX Item "-ms"
14298 Generate code for the H8S.
14299 .IP "\fB\-mn\fR" 4
14300 .IX Item "-mn"
14301 Generate code for the H8S and H8/300H in the normal mode.  This switch
14302 must be used either with \fB\-mh\fR or \fB\-ms\fR.
14303 .IP "\fB\-ms2600\fR" 4
14304 .IX Item "-ms2600"
14305 Generate code for the H8S/2600.  This switch must be used with \fB\-ms\fR.
14306 .IP "\fB\-mexr\fR" 4
14307 .IX Item "-mexr"
14308 Extended registers are stored on stack before execution of function
14309 with monitor attribute. Default option is \fB\-mexr\fR.
14310 This option is valid only for H8S targets.
14311 .IP "\fB\-mno\-exr\fR" 4
14312 .IX Item "-mno-exr"
14313 Extended registers are not stored on stack before execution of function 
14314 with monitor attribute. Default option is \fB\-mno\-exr\fR. 
14315 This option is valid only for H8S targets.
14316 .IP "\fB\-mint32\fR" 4
14317 .IX Item "-mint32"
14318 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
14319 .IP "\fB\-malign\-300\fR" 4
14320 .IX Item "-malign-300"
14321 On the H8/300H and H8S, use the same alignment rules as for the H8/300.
14322 The default for the H8/300H and H8S is to align longs and floats on
14323 4\-byte boundaries.
14324 \&\fB\-malign\-300\fR causes them to be aligned on 2\-byte boundaries.
14325 This option has no effect on the H8/300.
14326 .PP
14327 \fI\s-1HPPA\s0 Options\fR
14328 .IX Subsection "HPPA Options"
14329 .PP
14330 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
14331 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
14332 .IX Item "-march=architecture-type"
14333 Generate code for the specified architecture.  The choices for
14334 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA\s0 1.0, \fB1.1\fR for \s-1PA\s0
14335 1.1, and \fB2.0\fR for \s-1PA\s0 2.0 processors.  Refer to
14336 \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
14337 architecture option for your machine.  Code compiled for lower numbered
14338 architectures runs on higher numbered architectures, but not the
14339 other way around.
14340 .IP "\fB\-mpa\-risc\-1\-0\fR" 4
14341 .IX Item "-mpa-risc-1-0"
14342 .PD 0
14343 .IP "\fB\-mpa\-risc\-1\-1\fR" 4
14344 .IX Item "-mpa-risc-1-1"
14345 .IP "\fB\-mpa\-risc\-2\-0\fR" 4
14346 .IX Item "-mpa-risc-2-0"
14347 .PD
14348 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
14349 .IP "\fB\-mjump\-in\-delay\fR" 4
14350 .IX Item "-mjump-in-delay"
14351 This option is ignored and provided for compatibility purposes only.
14352 .IP "\fB\-mdisable\-fpregs\fR" 4
14353 .IX Item "-mdisable-fpregs"
14354 Prevent floating-point registers from being used in any manner.  This is
14355 necessary for compiling kernels that perform lazy context switching of
14356 floating-point registers.  If you use this option and attempt to perform
14357 floating-point operations, the compiler aborts.
14358 .IP "\fB\-mdisable\-indexing\fR" 4
14359 .IX Item "-mdisable-indexing"
14360 Prevent the compiler from using indexing address modes.  This avoids some
14361 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH\s0.
14362 .IP "\fB\-mno\-space\-regs\fR" 4
14363 .IX Item "-mno-space-regs"
14364 Generate code that assumes the target has no space registers.  This allows
14365 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
14366 .Sp
14367 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
14368 .IP "\fB\-mfast\-indirect\-calls\fR" 4
14369 .IX Item "-mfast-indirect-calls"
14370 Generate code that assumes calls never cross space boundaries.  This
14371 allows \s-1GCC\s0 to emit code that performs faster indirect calls.
14372 .Sp
14373 This option does not work in the presence of shared libraries or nested
14374 functions.
14375 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
14376 .IX Item "-mfixed-range=register-range"
14377 Generate code treating the given register range as fixed registers.
14378 A fixed register is one that the register allocator cannot use.  This is
14379 useful when compiling kernel code.  A register range is specified as
14380 two registers separated by a dash.  Multiple register ranges can be
14381 specified separated by a comma.
14382 .IP "\fB\-mlong\-load\-store\fR" 4
14383 .IX Item "-mlong-load-store"
14384 Generate 3\-instruction load and store sequences as sometimes required by
14385 the HP-UX 10 linker.  This is equivalent to the \fB+k\fR option to
14386 the \s-1HP\s0 compilers.
14387 .IP "\fB\-mportable\-runtime\fR" 4
14388 .IX Item "-mportable-runtime"
14389 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
14390 .IP "\fB\-mgas\fR" 4
14391 .IX Item "-mgas"
14392 Enable the use of assembler directives only \s-1GAS\s0 understands.
14393 .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
14394 .IX Item "-mschedule=cpu-type"
14395 Schedule code according to the constraints for the machine type
14396 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
14397 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR.  Refer
14398 to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
14399 proper scheduling option for your machine.  The default scheduling is
14400 \&\fB8000\fR.
14401 .IP "\fB\-mlinker\-opt\fR" 4
14402 .IX Item "-mlinker-opt"
14403 Enable the optimization pass in the HP-UX linker.  Note this makes symbolic
14404 debugging impossible.  It also triggers a bug in the HP-UX 8 and HP-UX 9
14405 linkers in which they give bogus error messages when linking some programs.
14406 .IP "\fB\-msoft\-float\fR" 4
14407 .IX Item "-msoft-float"
14408 Generate output containing library calls for floating point.
14409 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
14410 targets.  Normally the facilities of the machine's usual C compiler are
14411 used, but this cannot be done directly in cross-compilation.  You must make
14412 your own arrangements to provide suitable library functions for
14413 cross-compilation.
14414 .Sp
14415 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
14416 therefore, it is only useful if you compile \fIall\fR of a program with
14417 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
14418 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
14419 this to work.
14420 .IP "\fB\-msio\fR" 4
14421 .IX Item "-msio"
14422 Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO\s0.  The default is
14423 \&\fB\-mwsio\fR.  This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
14424 \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO\s0.  These
14425 options are available under HP-UX and HI-UX.
14426 .IP "\fB\-mgnu\-ld\fR" 4
14427 .IX Item "-mgnu-ld"
14428 Use options specific to \s-1GNU\s0 \fBld\fR.
14429 This passes \fB\-shared\fR to \fBld\fR when
14430 building a shared library.  It is the default when \s-1GCC\s0 is configured,
14431 explicitly or implicitly, with the \s-1GNU\s0 linker.  This option does not
14432 affect which \fBld\fR is called; it only changes what parameters
14433 are passed to that \fBld\fR.
14434 The \fBld\fR that is called is determined by the
14435 \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
14436 finally by the user's \fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed
14437 using \fBwhich `gcc \-print\-prog\-name=ld`\fR.  This option is only available
14438 on the 64\-bit HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
14439 .IP "\fB\-mhp\-ld\fR" 4
14440 .IX Item "-mhp-ld"
14441 Use options specific to \s-1HP\s0 \fBld\fR.
14442 This passes \fB\-b\fR to \fBld\fR when building
14443 a shared library and passes \fB+Accept TypeMismatch\fR to \fBld\fR on all
14444 links.  It is the default when \s-1GCC\s0 is configured, explicitly or
14445 implicitly, with the \s-1HP\s0 linker.  This option does not affect
14446 which \fBld\fR is called; it only changes what parameters are passed to that
14447 \&\fBld\fR.
14448 The \fBld\fR that is called is determined by the \fB\-\-with\-ld\fR
14449 configure option, \s-1GCC\s0's program search path, and finally by the user's
14450 \&\fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed using \fBwhich
14451 `gcc \-print\-prog\-name=ld`\fR.  This option is only available on the 64\-bit
14452 HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
14453 .IP "\fB\-mlong\-calls\fR" 4
14454 .IX Item "-mlong-calls"
14455 Generate code that uses long call sequences.  This ensures that a call
14456 is always able to reach linker generated stubs.  The default is to generate
14457 long calls only when the distance from the call site to the beginning
14458 of the function or translation unit, as the case may be, exceeds a
14459 predefined limit set by the branch type being used.  The limits for
14460 normal calls are 7,600,000 and 240,000 bytes, respectively for the
14461 \&\s-1PA\s0 2.0 and \s-1PA\s0 1.X architectures.  Sibcalls are always limited at
14462 240,000 bytes.
14463 .Sp
14464 Distances are measured from the beginning of functions when using the
14465 \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
14466 and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
14467 the \s-1SOM\s0 linker.
14468 .Sp
14469 It is normally not desirable to use this option as it degrades
14470 performance.  However, it may be useful in large applications,
14471 particularly when partial linking is used to build the application.
14472 .Sp
14473 The types of long calls used depends on the capabilities of the
14474 assembler and linker, and the type of code being generated.  The
14475 impact on systems that support long absolute calls, and long pic
14476 symbol-difference or pc-relative calls should be relatively small.
14477 However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
14478 and it is quite long.
14479 .IP "\fB\-munix=\fR\fIunix-std\fR" 4
14480 .IX Item "-munix=unix-std"
14481 Generate compiler predefines and select a startfile for the specified
14482 \&\s-1UNIX\s0 standard.  The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
14483 and \fB98\fR.  \fB93\fR is supported on all HP-UX versions.  \fB95\fR
14484 is available on HP-UX 10.10 and later.  \fB98\fR is available on HP-UX
14485 11.11 and later.  The default values are \fB93\fR for HP-UX 10.00,
14486 \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
14487 and later.
14488 .Sp
14489 \&\fB\-munix=93\fR provides the same predefines as \s-1GCC\s0 3.3 and 3.4.
14490 \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
14491 and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
14492 \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
14493 \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
14494 \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
14495 .Sp
14496 It is \fIimportant\fR to note that this option changes the interfaces
14497 for various library routines.  It also affects the operational behavior
14498 of the C library.  Thus, \fIextreme\fR care is needed in using this
14499 option.
14500 .Sp
14501 Library code that is intended to operate with more than one \s-1UNIX\s0
14502 standard must test, set and restore the variable \f(CW\*(C`_\|_xpg4_extended_mask\*(C'\fR
14503 as appropriate.  Most \s-1GNU\s0 software doesn't provide this capability.
14504 .IP "\fB\-nolibdld\fR" 4
14505 .IX Item "-nolibdld"
14506 Suppress the generation of link options to search libdld.sl when the
14507 \&\fB\-static\fR option is specified on HP-UX 10 and later.
14508 .IP "\fB\-static\fR" 4
14509 .IX Item "-static"
14510 The HP-UX implementation of setlocale in libc has a dependency on
14511 libdld.sl.  There isn't an archive version of libdld.sl.  Thus,
14512 when the \fB\-static\fR option is specified, special link options
14513 are needed to resolve this dependency.
14514 .Sp
14515 On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
14516 link with libdld.sl when the \fB\-static\fR option is specified.
14517 This causes the resulting binary to be dynamic.  On the 64\-bit port,
14518 the linkers generate dynamic binaries by default in any case.  The
14519 \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
14520 adding these link options.
14521 .IP "\fB\-threads\fR" 4
14522 .IX Item "-threads"
14523 Add support for multithreading with the \fIdce thread\fR library
14524 under HP-UX.  This option sets flags for both the preprocessor and
14525 linker.
14526 .PP
14527 \fI\s-1IA\-64\s0 Options\fR
14528 .IX Subsection "IA-64 Options"
14529 .PP
14530 These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
14531 .IP "\fB\-mbig\-endian\fR" 4
14532 .IX Item "-mbig-endian"
14533 Generate code for a big-endian target.  This is the default for HP-UX.
14534 .IP "\fB\-mlittle\-endian\fR" 4
14535 .IX Item "-mlittle-endian"
14536 Generate code for a little-endian target.  This is the default for \s-1AIX5\s0
14537 and GNU/Linux.
14538 .IP "\fB\-mgnu\-as\fR" 4
14539 .IX Item "-mgnu-as"
14540 .PD 0
14541 .IP "\fB\-mno\-gnu\-as\fR" 4
14542 .IX Item "-mno-gnu-as"
14543 .PD
14544 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
14545 .IP "\fB\-mgnu\-ld\fR" 4
14546 .IX Item "-mgnu-ld"
14547 .PD 0
14548 .IP "\fB\-mno\-gnu\-ld\fR" 4
14549 .IX Item "-mno-gnu-ld"
14550 .PD
14551 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
14552 .IP "\fB\-mno\-pic\fR" 4
14553 .IX Item "-mno-pic"
14554 Generate code that does not use a global pointer register.  The result
14555 is not position independent code, and violates the \s-1IA\-64\s0 \s-1ABI\s0.
14556 .IP "\fB\-mvolatile\-asm\-stop\fR" 4
14557 .IX Item "-mvolatile-asm-stop"
14558 .PD 0
14559 .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
14560 .IX Item "-mno-volatile-asm-stop"
14561 .PD
14562 Generate (or don't) a stop bit immediately before and after volatile asm
14563 statements.
14564 .IP "\fB\-mregister\-names\fR" 4
14565 .IX Item "-mregister-names"
14566 .PD 0
14567 .IP "\fB\-mno\-register\-names\fR" 4
14568 .IX Item "-mno-register-names"
14569 .PD
14570 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
14571 the stacked registers.  This may make assembler output more readable.
14572 .IP "\fB\-mno\-sdata\fR" 4
14573 .IX Item "-mno-sdata"
14574 .PD 0
14575 .IP "\fB\-msdata\fR" 4
14576 .IX Item "-msdata"
14577 .PD
14578 Disable (or enable) optimizations that use the small data section.  This may
14579 be useful for working around optimizer bugs.
14580 .IP "\fB\-mconstant\-gp\fR" 4
14581 .IX Item "-mconstant-gp"
14582 Generate code that uses a single constant global pointer value.  This is
14583 useful when compiling kernel code.
14584 .IP "\fB\-mauto\-pic\fR" 4
14585 .IX Item "-mauto-pic"
14586 Generate code that is self-relocatable.  This implies \fB\-mconstant\-gp\fR.
14587 This is useful when compiling firmware code.
14588 .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
14589 .IX Item "-minline-float-divide-min-latency"
14590 Generate code for inline divides of floating-point values
14591 using the minimum latency algorithm.
14592 .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
14593 .IX Item "-minline-float-divide-max-throughput"
14594 Generate code for inline divides of floating-point values
14595 using the maximum throughput algorithm.
14596 .IP "\fB\-mno\-inline\-float\-divide\fR" 4
14597 .IX Item "-mno-inline-float-divide"
14598 Do not generate inline code for divides of floating-point values.
14599 .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
14600 .IX Item "-minline-int-divide-min-latency"
14601 Generate code for inline divides of integer values
14602 using the minimum latency algorithm.
14603 .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
14604 .IX Item "-minline-int-divide-max-throughput"
14605 Generate code for inline divides of integer values
14606 using the maximum throughput algorithm.
14607 .IP "\fB\-mno\-inline\-int\-divide\fR" 4
14608 .IX Item "-mno-inline-int-divide"
14609 Do not generate inline code for divides of integer values.
14610 .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
14611 .IX Item "-minline-sqrt-min-latency"
14612 Generate code for inline square roots
14613 using the minimum latency algorithm.
14614 .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
14615 .IX Item "-minline-sqrt-max-throughput"
14616 Generate code for inline square roots
14617 using the maximum throughput algorithm.
14618 .IP "\fB\-mno\-inline\-sqrt\fR" 4
14619 .IX Item "-mno-inline-sqrt"
14620 Do not generate inline code for \f(CW\*(C`sqrt\*(C'\fR.
14621 .IP "\fB\-mfused\-madd\fR" 4
14622 .IX Item "-mfused-madd"
14623 .PD 0
14624 .IP "\fB\-mno\-fused\-madd\fR" 4
14625 .IX Item "-mno-fused-madd"
14626 .PD
14627 Do (don't) generate code that uses the fused multiply/add or multiply/subtract
14628 instructions.  The default is to use these instructions.
14629 .IP "\fB\-mno\-dwarf2\-asm\fR" 4
14630 .IX Item "-mno-dwarf2-asm"
14631 .PD 0
14632 .IP "\fB\-mdwarf2\-asm\fR" 4
14633 .IX Item "-mdwarf2-asm"
14634 .PD
14635 Don't (or do) generate assembler code for the \s-1DWARF\s0 2 line number debugging
14636 info.  This may be useful when not using the \s-1GNU\s0 assembler.
14637 .IP "\fB\-mearly\-stop\-bits\fR" 4
14638 .IX Item "-mearly-stop-bits"
14639 .PD 0
14640 .IP "\fB\-mno\-early\-stop\-bits\fR" 4
14641 .IX Item "-mno-early-stop-bits"
14642 .PD
14643 Allow stop bits to be placed earlier than immediately preceding the
14644 instruction that triggered the stop bit.  This can improve instruction
14645 scheduling, but does not always do so.
14646 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
14647 .IX Item "-mfixed-range=register-range"
14648 Generate code treating the given register range as fixed registers.
14649 A fixed register is one that the register allocator cannot use.  This is
14650 useful when compiling kernel code.  A register range is specified as
14651 two registers separated by a dash.  Multiple register ranges can be
14652 specified separated by a comma.
14653 .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
14654 .IX Item "-mtls-size=tls-size"
14655 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 14, 22, and
14656 64.
14657 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
14658 .IX Item "-mtune=cpu-type"
14659 Tune the instruction scheduling for a particular \s-1CPU\s0, Valid values are
14660 \&\fBitanium\fR, \fBitanium1\fR, \fBmerced\fR, \fBitanium2\fR,
14661 and \fBmckinley\fR.
14662 .IP "\fB\-milp32\fR" 4
14663 .IX Item "-milp32"
14664 .PD 0
14665 .IP "\fB\-mlp64\fR" 4
14666 .IX Item "-mlp64"
14667 .PD
14668 Generate code for a 32\-bit or 64\-bit environment.
14669 The 32\-bit environment sets int, long and pointer to 32 bits.
14670 The 64\-bit environment sets int to 32 bits and long and pointer
14671 to 64 bits.  These are HP-UX specific flags.
14672 .IP "\fB\-mno\-sched\-br\-data\-spec\fR" 4
14673 .IX Item "-mno-sched-br-data-spec"
14674 .PD 0
14675 .IP "\fB\-msched\-br\-data\-spec\fR" 4
14676 .IX Item "-msched-br-data-spec"
14677 .PD
14678 (Dis/En)able data speculative scheduling before reload.
14679 This results in generation of \f(CW\*(C`ld.a\*(C'\fR instructions and
14680 the corresponding check instructions (\f(CW\*(C`ld.c\*(C'\fR / \f(CW\*(C`chk.a\*(C'\fR).
14681 The default is 'disable'.
14682 .IP "\fB\-msched\-ar\-data\-spec\fR" 4
14683 .IX Item "-msched-ar-data-spec"
14684 .PD 0
14685 .IP "\fB\-mno\-sched\-ar\-data\-spec\fR" 4
14686 .IX Item "-mno-sched-ar-data-spec"
14687 .PD
14688 (En/Dis)able data speculative scheduling after reload.
14689 This results in generation of \f(CW\*(C`ld.a\*(C'\fR instructions and
14690 the corresponding check instructions (\f(CW\*(C`ld.c\*(C'\fR / \f(CW\*(C`chk.a\*(C'\fR).
14691 The default is 'enable'.
14692 .IP "\fB\-mno\-sched\-control\-spec\fR" 4
14693 .IX Item "-mno-sched-control-spec"
14694 .PD 0
14695 .IP "\fB\-msched\-control\-spec\fR" 4
14696 .IX Item "-msched-control-spec"
14697 .PD
14698 (Dis/En)able control speculative scheduling.  This feature is
14699 available only during region scheduling (i.e. before reload).
14700 This results in generation of the \f(CW\*(C`ld.s\*(C'\fR instructions and
14701 the corresponding check instructions \f(CW\*(C`chk.s\*(C'\fR.
14702 The default is 'disable'.
14703 .IP "\fB\-msched\-br\-in\-data\-spec\fR" 4
14704 .IX Item "-msched-br-in-data-spec"
14705 .PD 0
14706 .IP "\fB\-mno\-sched\-br\-in\-data\-spec\fR" 4
14707 .IX Item "-mno-sched-br-in-data-spec"
14708 .PD
14709 (En/Dis)able speculative scheduling of the instructions that
14710 are dependent on the data speculative loads before reload.
14711 This is effective only with \fB\-msched\-br\-data\-spec\fR enabled.
14712 The default is 'enable'.
14713 .IP "\fB\-msched\-ar\-in\-data\-spec\fR" 4
14714 .IX Item "-msched-ar-in-data-spec"
14715 .PD 0
14716 .IP "\fB\-mno\-sched\-ar\-in\-data\-spec\fR" 4
14717 .IX Item "-mno-sched-ar-in-data-spec"
14718 .PD
14719 (En/Dis)able speculative scheduling of the instructions that
14720 are dependent on the data speculative loads after reload.
14721 This is effective only with \fB\-msched\-ar\-data\-spec\fR enabled.
14722 The default is 'enable'.
14723 .IP "\fB\-msched\-in\-control\-spec\fR" 4
14724 .IX Item "-msched-in-control-spec"
14725 .PD 0
14726 .IP "\fB\-mno\-sched\-in\-control\-spec\fR" 4
14727 .IX Item "-mno-sched-in-control-spec"
14728 .PD
14729 (En/Dis)able speculative scheduling of the instructions that
14730 are dependent on the control speculative loads.
14731 This is effective only with \fB\-msched\-control\-spec\fR enabled.
14732 The default is 'enable'.
14733 .IP "\fB\-mno\-sched\-prefer\-non\-data\-spec\-insns\fR" 4
14734 .IX Item "-mno-sched-prefer-non-data-spec-insns"
14735 .PD 0
14736 .IP "\fB\-msched\-prefer\-non\-data\-spec\-insns\fR" 4
14737 .IX Item "-msched-prefer-non-data-spec-insns"
14738 .PD
14739 If enabled, data-speculative instructions are chosen for schedule
14740 only if there are no other choices at the moment.  This makes
14741 the use of the data speculation much more conservative.
14742 The default is 'disable'.
14743 .IP "\fB\-mno\-sched\-prefer\-non\-control\-spec\-insns\fR" 4
14744 .IX Item "-mno-sched-prefer-non-control-spec-insns"
14745 .PD 0
14746 .IP "\fB\-msched\-prefer\-non\-control\-spec\-insns\fR" 4
14747 .IX Item "-msched-prefer-non-control-spec-insns"
14748 .PD
14749 If enabled, control-speculative instructions are chosen for schedule
14750 only if there are no other choices at the moment.  This makes
14751 the use of the control speculation much more conservative.
14752 The default is 'disable'.
14753 .IP "\fB\-mno\-sched\-count\-spec\-in\-critical\-path\fR" 4
14754 .IX Item "-mno-sched-count-spec-in-critical-path"
14755 .PD 0
14756 .IP "\fB\-msched\-count\-spec\-in\-critical\-path\fR" 4
14757 .IX Item "-msched-count-spec-in-critical-path"
14758 .PD
14759 If enabled, speculative dependencies are considered during
14760 computation of the instructions priorities.  This makes the use of the
14761 speculation a bit more conservative.
14762 The default is 'disable'.
14763 .IP "\fB\-msched\-spec\-ldc\fR" 4
14764 .IX Item "-msched-spec-ldc"
14765 Use a simple data speculation check.  This option is on by default.
14766 .IP "\fB\-msched\-control\-spec\-ldc\fR" 4
14767 .IX Item "-msched-control-spec-ldc"
14768 Use a simple check for control speculation.  This option is on by default.
14769 .IP "\fB\-msched\-stop\-bits\-after\-every\-cycle\fR" 4
14770 .IX Item "-msched-stop-bits-after-every-cycle"
14771 Place a stop bit after every cycle when scheduling.  This option is on
14772 by default.
14773 .IP "\fB\-msched\-fp\-mem\-deps\-zero\-cost\fR" 4
14774 .IX Item "-msched-fp-mem-deps-zero-cost"
14775 Assume that floating-point stores and loads are not likely to cause a conflict
14776 when placed into the same instruction group.  This option is disabled by
14777 default.
14778 .IP "\fB\-msel\-sched\-dont\-check\-control\-spec\fR" 4
14779 .IX Item "-msel-sched-dont-check-control-spec"
14780 Generate checks for control speculation in selective scheduling.
14781 This flag is disabled by default.
14782 .IP "\fB\-msched\-max\-memory\-insns=\fR\fImax-insns\fR" 4
14783 .IX Item "-msched-max-memory-insns=max-insns"
14784 Limit on the number of memory insns per instruction group, giving lower
14785 priority to subsequent memory insns attempting to schedule in the same
14786 instruction group. Frequently useful to prevent cache bank conflicts.
14787 The default value is 1.
14788 .IP "\fB\-msched\-max\-memory\-insns\-hard\-limit\fR" 4
14789 .IX Item "-msched-max-memory-insns-hard-limit"
14790 Makes the limit specified by \fBmsched-max-memory-insns\fR a hard limit,
14791 disallowing more than that number in an instruction group.
14792 Otherwise, the limit is \*(L"soft\*(R", meaning that non-memory operations
14793 are preferred when the limit is reached, but memory operations may still
14794 be scheduled.
14795 .PP
14796 \fI\s-1LM32\s0 Options\fR
14797 .IX Subsection "LM32 Options"
14798 .PP
14799 These \fB\-m\fR options are defined for the LatticeMico32 architecture:
14800 .IP "\fB\-mbarrel\-shift\-enabled\fR" 4
14801 .IX Item "-mbarrel-shift-enabled"
14802 Enable barrel-shift instructions.
14803 .IP "\fB\-mdivide\-enabled\fR" 4
14804 .IX Item "-mdivide-enabled"
14805 Enable divide and modulus instructions.
14806 .IP "\fB\-mmultiply\-enabled\fR" 4
14807 .IX Item "-mmultiply-enabled"
14808 Enable multiply instructions.
14809 .IP "\fB\-msign\-extend\-enabled\fR" 4
14810 .IX Item "-msign-extend-enabled"
14811 Enable sign extend instructions.
14812 .IP "\fB\-muser\-enabled\fR" 4
14813 .IX Item "-muser-enabled"
14814 Enable user-defined instructions.
14815 .PP
14816 \fIM32C Options\fR
14817 .IX Subsection "M32C Options"
14818 .IP "\fB\-mcpu=\fR\fIname\fR" 4
14819 .IX Item "-mcpu=name"
14820 Select the \s-1CPU\s0 for which code is generated.  \fIname\fR may be one of
14821 \&\fBr8c\fR for the R8C/Tiny series, \fBm16c\fR for the M16C (up to
14822 /60) series, \fBm32cm\fR for the M16C/80 series, or \fBm32c\fR for
14823 the M32C/80 series.
14824 .IP "\fB\-msim\fR" 4
14825 .IX Item "-msim"
14826 Specifies that the program will be run on the simulator.  This causes
14827 an alternate runtime library to be linked in which supports, for
14828 example, file I/O.  You must not use this option when generating
14829 programs that will run on real hardware; you must provide your own
14830 runtime library for whatever I/O functions are needed.
14831 .IP "\fB\-memregs=\fR\fInumber\fR" 4
14832 .IX Item "-memregs=number"
14833 Specifies the number of memory-based pseudo-registers \s-1GCC\s0 uses
14834 during code generation.  These pseudo-registers are used like real
14835 registers, so there is a tradeoff between \s-1GCC\s0's ability to fit the
14836 code into available registers, and the performance penalty of using
14837 memory instead of registers.  Note that all modules in a program must
14838 be compiled with the same value for this option.  Because of that, you
14839 must not use this option with \s-1GCC\s0's default runtime libraries.
14840 .PP
14841 \fIM32R/D Options\fR
14842 .IX Subsection "M32R/D Options"
14843 .PP
14844 These \fB\-m\fR options are defined for Renesas M32R/D architectures:
14845 .IP "\fB\-m32r2\fR" 4
14846 .IX Item "-m32r2"
14847 Generate code for the M32R/2.
14848 .IP "\fB\-m32rx\fR" 4
14849 .IX Item "-m32rx"
14850 Generate code for the M32R/X.
14851 .IP "\fB\-m32r\fR" 4
14852 .IX Item "-m32r"
14853 Generate code for the M32R.  This is the default.
14854 .IP "\fB\-mmodel=small\fR" 4
14855 .IX Item "-mmodel=small"
14856 Assume all objects live in the lower 16MB of memory (so that their addresses
14857 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
14858 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
14859 This is the default.
14860 .Sp
14861 The addressability of a particular object can be set with the
14862 \&\f(CW\*(C`model\*(C'\fR attribute.
14863 .IP "\fB\-mmodel=medium\fR" 4
14864 .IX Item "-mmodel=medium"
14865 Assume objects may be anywhere in the 32\-bit address space (the compiler
14866 generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
14867 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
14868 .IP "\fB\-mmodel=large\fR" 4
14869 .IX Item "-mmodel=large"
14870 Assume objects may be anywhere in the 32\-bit address space (the compiler
14871 generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
14872 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
14873 (the compiler generates the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
14874 instruction sequence).
14875 .IP "\fB\-msdata=none\fR" 4
14876 .IX Item "-msdata=none"
14877 Disable use of the small data area.  Variables are put into
14878 one of \f(CW\*(C`.data\*(C'\fR, \f(CW\*(C`.bss\*(C'\fR, or \f(CW\*(C`.rodata\*(C'\fR (unless the
14879 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
14880 This is the default.
14881 .Sp
14882 The small data area consists of sections \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR.
14883 Objects may be explicitly put in the small data area with the
14884 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
14885 .IP "\fB\-msdata=sdata\fR" 4
14886 .IX Item "-msdata=sdata"
14887 Put small global and static data in the small data area, but do not
14888 generate special code to reference them.
14889 .IP "\fB\-msdata=use\fR" 4
14890 .IX Item "-msdata=use"
14891 Put small global and static data in the small data area, and generate
14892 special instructions to reference them.
14893 .IP "\fB\-G\fR \fInum\fR" 4
14894 .IX Item "-G num"
14895 Put global and static objects less than or equal to \fInum\fR bytes
14896 into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
14897 sections.  The default value of \fInum\fR is 8.
14898 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
14899 for this option to have any effect.
14900 .Sp
14901 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
14902 Compiling with different values of \fInum\fR may or may not work; if it
14903 doesn't the linker gives an error message\-\-\-incorrect code is not
14904 generated.
14905 .IP "\fB\-mdebug\fR" 4
14906 .IX Item "-mdebug"
14907 Makes the M32R\-specific code in the compiler display some statistics
14908 that might help in debugging programs.
14909 .IP "\fB\-malign\-loops\fR" 4
14910 .IX Item "-malign-loops"
14911 Align all loops to a 32\-byte boundary.
14912 .IP "\fB\-mno\-align\-loops\fR" 4
14913 .IX Item "-mno-align-loops"
14914 Do not enforce a 32\-byte alignment for loops.  This is the default.
14915 .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
14916 .IX Item "-missue-rate=number"
14917 Issue \fInumber\fR instructions per cycle.  \fInumber\fR can only be 1
14918 or 2.
14919 .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
14920 .IX Item "-mbranch-cost=number"
14921 \&\fInumber\fR can only be 1 or 2.  If it is 1 then branches are
14922 preferred over conditional code, if it is 2, then the opposite applies.
14923 .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
14924 .IX Item "-mflush-trap=number"
14925 Specifies the trap number to use to flush the cache.  The default is
14926 12.  Valid numbers are between 0 and 15 inclusive.
14927 .IP "\fB\-mno\-flush\-trap\fR" 4
14928 .IX Item "-mno-flush-trap"
14929 Specifies that the cache cannot be flushed by using a trap.
14930 .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
14931 .IX Item "-mflush-func=name"
14932 Specifies the name of the operating system function to call to flush
14933 the cache.  The default is \fB_flush_cache\fR, but a function call
14934 is only used if a trap is not available.
14935 .IP "\fB\-mno\-flush\-func\fR" 4
14936 .IX Item "-mno-flush-func"
14937 Indicates that there is no \s-1OS\s0 function for flushing the cache.
14938 .PP
14939 \fIM680x0 Options\fR
14940 .IX Subsection "M680x0 Options"
14941 .PP
14942 These are the \fB\-m\fR options defined for M680x0 and ColdFire processors.
14943 The default settings depend on which architecture was selected when
14944 the compiler was configured; the defaults for the most common choices
14945 are given below.
14946 .IP "\fB\-march=\fR\fIarch\fR" 4
14947 .IX Item "-march=arch"
14948 Generate code for a specific M680x0 or ColdFire instruction set
14949 architecture.  Permissible values of \fIarch\fR for M680x0
14950 architectures are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
14951 \&\fB68030\fR, \fB68040\fR, \fB68060\fR and \fBcpu32\fR.  ColdFire
14952 architectures are selected according to Freescale's \s-1ISA\s0 classification
14953 and the permissible values are: \fBisaa\fR, \fBisaaplus\fR,
14954 \&\fBisab\fR and \fBisac\fR.
14955 .Sp
14956 \&\s-1GCC\s0 defines a macro \f(CW\*(C`_\|_mcf\f(CIarch\f(CW_\|_\*(C'\fR whenever it is generating
14957 code for a ColdFire target.  The \fIarch\fR in this macro is one of the
14958 \&\fB\-march\fR arguments given above.
14959 .Sp
14960 When used together, \fB\-march\fR and \fB\-mtune\fR select code
14961 that runs on a family of similar processors but that is optimized
14962 for a particular microarchitecture.
14963 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
14964 .IX Item "-mcpu=cpu"
14965 Generate code for a specific M680x0 or ColdFire processor.
14966 The M680x0 \fIcpu\fRs are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
14967 \&\fB68030\fR, \fB68040\fR, \fB68060\fR, \fB68302\fR, \fB68332\fR
14968 and \fBcpu32\fR.  The ColdFire \fIcpu\fRs are given by the table
14969 below, which also classifies the CPUs into families:
14970 .RS 4
14971 .IP "Family : \fB\-mcpu\fR arguments" 4
14972 .IX Item "Family : -mcpu arguments"
14973 .PD 0
14974 .IP "\fB51\fR : \fB51\fR \fB51ac\fR \fB51ag\fR \fB51cn\fR \fB51em\fR \fB51je\fR \fB51jf\fR \fB51jg\fR \fB51jm\fR \fB51mm\fR \fB51qe\fR \fB51qm\fR" 4
14975 .IX Item "51 : 51 51ac 51ag 51cn 51em 51je 51jf 51jg 51jm 51mm 51qe 51qm"
14976 .IP "\fB5206\fR : \fB5202\fR \fB5204\fR \fB5206\fR" 4
14977 .IX Item "5206 : 5202 5204 5206"
14978 .IP "\fB5206e\fR : \fB5206e\fR" 4
14979 .IX Item "5206e : 5206e"
14980 .IP "\fB5208\fR : \fB5207\fR \fB5208\fR" 4
14981 .IX Item "5208 : 5207 5208"
14982 .IP "\fB5211a\fR : \fB5210a\fR \fB5211a\fR" 4
14983 .IX Item "5211a : 5210a 5211a"
14984 .IP "\fB5213\fR : \fB5211\fR \fB5212\fR \fB5213\fR" 4
14985 .IX Item "5213 : 5211 5212 5213"
14986 .IP "\fB5216\fR : \fB5214\fR \fB5216\fR" 4
14987 .IX Item "5216 : 5214 5216"
14988 .IP "\fB52235\fR : \fB52230\fR \fB52231\fR \fB52232\fR \fB52233\fR \fB52234\fR \fB52235\fR" 4
14989 .IX Item "52235 : 52230 52231 52232 52233 52234 52235"
14990 .IP "\fB5225\fR : \fB5224\fR \fB5225\fR" 4
14991 .IX Item "5225 : 5224 5225"
14992 .IP "\fB52259\fR : \fB52252\fR \fB52254\fR \fB52255\fR \fB52256\fR \fB52258\fR \fB52259\fR" 4
14993 .IX Item "52259 : 52252 52254 52255 52256 52258 52259"
14994 .IP "\fB5235\fR : \fB5232\fR \fB5233\fR \fB5234\fR \fB5235\fR \fB523x\fR" 4
14995 .IX Item "5235 : 5232 5233 5234 5235 523x"
14996 .IP "\fB5249\fR : \fB5249\fR" 4
14997 .IX Item "5249 : 5249"
14998 .IP "\fB5250\fR : \fB5250\fR" 4
14999 .IX Item "5250 : 5250"
15000 .IP "\fB5271\fR : \fB5270\fR \fB5271\fR" 4
15001 .IX Item "5271 : 5270 5271"
15002 .IP "\fB5272\fR : \fB5272\fR" 4
15003 .IX Item "5272 : 5272"
15004 .IP "\fB5275\fR : \fB5274\fR \fB5275\fR" 4
15005 .IX Item "5275 : 5274 5275"
15006 .IP "\fB5282\fR : \fB5280\fR \fB5281\fR \fB5282\fR \fB528x\fR" 4
15007 .IX Item "5282 : 5280 5281 5282 528x"
15008 .IP "\fB53017\fR : \fB53011\fR \fB53012\fR \fB53013\fR \fB53014\fR \fB53015\fR \fB53016\fR \fB53017\fR" 4
15009 .IX Item "53017 : 53011 53012 53013 53014 53015 53016 53017"
15010 .IP "\fB5307\fR : \fB5307\fR" 4
15011 .IX Item "5307 : 5307"
15012 .IP "\fB5329\fR : \fB5327\fR \fB5328\fR \fB5329\fR \fB532x\fR" 4
15013 .IX Item "5329 : 5327 5328 5329 532x"
15014 .IP "\fB5373\fR : \fB5372\fR \fB5373\fR \fB537x\fR" 4
15015 .IX Item "5373 : 5372 5373 537x"
15016 .IP "\fB5407\fR : \fB5407\fR" 4
15017 .IX Item "5407 : 5407"
15018 .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
15019 .IX Item "5475 : 5470 5471 5472 5473 5474 5475 547x 5480 5481 5482 5483 5484 5485"
15020 .RE
15021 .RS 4
15022 .PD
15023 .Sp
15024 \&\fB\-mcpu=\fR\fIcpu\fR overrides \fB\-march=\fR\fIarch\fR if
15025 \&\fIarch\fR is compatible with \fIcpu\fR.  Other combinations of
15026 \&\fB\-mcpu\fR and \fB\-march\fR are rejected.
15027 .Sp
15028 \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcf_cpu_\f(CIcpu\f(CW\*(C'\fR when ColdFire target
15029 \&\fIcpu\fR is selected.  It also defines \f(CW\*(C`_\|_mcf_family_\f(CIfamily\f(CW\*(C'\fR,
15030 where the value of \fIfamily\fR is given by the table above.
15031 .RE
15032 .IP "\fB\-mtune=\fR\fItune\fR" 4
15033 .IX Item "-mtune=tune"
15034 Tune the code for a particular microarchitecture within the
15035 constraints set by \fB\-march\fR and \fB\-mcpu\fR.
15036 The M680x0 microarchitectures are: \fB68000\fR, \fB68010\fR,
15037 \&\fB68020\fR, \fB68030\fR, \fB68040\fR, \fB68060\fR
15038 and \fBcpu32\fR.  The ColdFire microarchitectures
15039 are: \fBcfv1\fR, \fBcfv2\fR, \fBcfv3\fR, \fBcfv4\fR and \fBcfv4e\fR.
15040 .Sp
15041 You can also use \fB\-mtune=68020\-40\fR for code that needs
15042 to run relatively well on 68020, 68030 and 68040 targets.
15043 \&\fB\-mtune=68020\-60\fR is similar but includes 68060 targets
15044 as well.  These two options select the same tuning decisions as
15045 \&\fB\-m68020\-40\fR and \fB\-m68020\-60\fR respectively.
15046 .Sp
15047 \&\s-1GCC\s0 defines the macros \f(CW\*(C`_\|_mc\f(CIarch\f(CW\*(C'\fR and \f(CW\*(C`_\|_mc\f(CIarch\f(CW_\|_\*(C'\fR
15048 when tuning for 680x0 architecture \fIarch\fR.  It also defines
15049 \&\f(CW\*(C`mc\f(CIarch\f(CW\*(C'\fR unless either \fB\-ansi\fR or a non-GNU \fB\-std\fR
15050 option is used.  If \s-1GCC\s0 is tuning for a range of architectures,
15051 as selected by \fB\-mtune=68020\-40\fR or \fB\-mtune=68020\-60\fR,
15052 it defines the macros for every architecture in the range.
15053 .Sp
15054 \&\s-1GCC\s0 also defines the macro \f(CW\*(C`_\|_m\f(CIuarch\f(CW_\|_\*(C'\fR when tuning for
15055 ColdFire microarchitecture \fIuarch\fR, where \fIuarch\fR is one
15056 of the arguments given above.
15057 .IP "\fB\-m68000\fR" 4
15058 .IX Item "-m68000"
15059 .PD 0
15060 .IP "\fB\-mc68000\fR" 4
15061 .IX Item "-mc68000"
15062 .PD
15063 Generate output for a 68000.  This is the default
15064 when the compiler is configured for 68000\-based systems.
15065 It is equivalent to \fB\-march=68000\fR.
15066 .Sp
15067 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
15068 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
15069 .IP "\fB\-m68010\fR" 4
15070 .IX Item "-m68010"
15071 Generate output for a 68010.  This is the default
15072 when the compiler is configured for 68010\-based systems.
15073 It is equivalent to \fB\-march=68010\fR.
15074 .IP "\fB\-m68020\fR" 4
15075 .IX Item "-m68020"
15076 .PD 0
15077 .IP "\fB\-mc68020\fR" 4
15078 .IX Item "-mc68020"
15079 .PD
15080 Generate output for a 68020.  This is the default
15081 when the compiler is configured for 68020\-based systems.
15082 It is equivalent to \fB\-march=68020\fR.
15083 .IP "\fB\-m68030\fR" 4
15084 .IX Item "-m68030"
15085 Generate output for a 68030.  This is the default when the compiler is
15086 configured for 68030\-based systems.  It is equivalent to
15087 \&\fB\-march=68030\fR.
15088 .IP "\fB\-m68040\fR" 4
15089 .IX Item "-m68040"
15090 Generate output for a 68040.  This is the default when the compiler is
15091 configured for 68040\-based systems.  It is equivalent to
15092 \&\fB\-march=68040\fR.
15093 .Sp
15094 This option inhibits the use of 68881/68882 instructions that have to be
15095 emulated by software on the 68040.  Use this option if your 68040 does not
15096 have code to emulate those instructions.
15097 .IP "\fB\-m68060\fR" 4
15098 .IX Item "-m68060"
15099 Generate output for a 68060.  This is the default when the compiler is
15100 configured for 68060\-based systems.  It is equivalent to
15101 \&\fB\-march=68060\fR.
15102 .Sp
15103 This option inhibits the use of 68020 and 68881/68882 instructions that
15104 have to be emulated by software on the 68060.  Use this option if your 68060
15105 does not have code to emulate those instructions.
15106 .IP "\fB\-mcpu32\fR" 4
15107 .IX Item "-mcpu32"
15108 Generate output for a \s-1CPU32\s0.  This is the default
15109 when the compiler is configured for CPU32\-based systems.
15110 It is equivalent to \fB\-march=cpu32\fR.
15111 .Sp
15112 Use this option for microcontrollers with a
15113 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
15114 68336, 68340, 68341, 68349 and 68360.
15115 .IP "\fB\-m5200\fR" 4
15116 .IX Item "-m5200"
15117 Generate output for a 520X ColdFire \s-1CPU\s0.  This is the default
15118 when the compiler is configured for 520X\-based systems.
15119 It is equivalent to \fB\-mcpu=5206\fR, and is now deprecated
15120 in favor of that option.
15121 .Sp
15122 Use this option for microcontroller with a 5200 core, including
15123 the \s-1MCF5202\s0, \s-1MCF5203\s0, \s-1MCF5204\s0 and \s-1MCF5206\s0.
15124 .IP "\fB\-m5206e\fR" 4
15125 .IX Item "-m5206e"
15126 Generate output for a 5206e ColdFire \s-1CPU\s0.  The option is now
15127 deprecated in favor of the equivalent \fB\-mcpu=5206e\fR.
15128 .IP "\fB\-m528x\fR" 4
15129 .IX Item "-m528x"
15130 Generate output for a member of the ColdFire 528X family.
15131 The option is now deprecated in favor of the equivalent
15132 \&\fB\-mcpu=528x\fR.
15133 .IP "\fB\-m5307\fR" 4
15134 .IX Item "-m5307"
15135 Generate output for a ColdFire 5307 \s-1CPU\s0.  The option is now deprecated
15136 in favor of the equivalent \fB\-mcpu=5307\fR.
15137 .IP "\fB\-m5407\fR" 4
15138 .IX Item "-m5407"
15139 Generate output for a ColdFire 5407 \s-1CPU\s0.  The option is now deprecated
15140 in favor of the equivalent \fB\-mcpu=5407\fR.
15141 .IP "\fB\-mcfv4e\fR" 4
15142 .IX Item "-mcfv4e"
15143 Generate output for a ColdFire V4e family \s-1CPU\s0 (e.g. 547x/548x).
15144 This includes use of hardware floating-point instructions.
15145 The option is equivalent to \fB\-mcpu=547x\fR, and is now
15146 deprecated in favor of that option.
15147 .IP "\fB\-m68020\-40\fR" 4
15148 .IX Item "-m68020-40"
15149 Generate output for a 68040, without using any of the new instructions.
15150 This results in code that can run relatively efficiently on either a
15151 68020/68881 or a 68030 or a 68040.  The generated code does use the
15152 68881 instructions that are emulated on the 68040.
15153 .Sp
15154 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-40\fR.
15155 .IP "\fB\-m68020\-60\fR" 4
15156 .IX Item "-m68020-60"
15157 Generate output for a 68060, without using any of the new instructions.
15158 This results in code that can run relatively efficiently on either a
15159 68020/68881 or a 68030 or a 68040.  The generated code does use the
15160 68881 instructions that are emulated on the 68060.
15161 .Sp
15162 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-60\fR.
15163 .IP "\fB\-mhard\-float\fR" 4
15164 .IX Item "-mhard-float"
15165 .PD 0
15166 .IP "\fB\-m68881\fR" 4
15167 .IX Item "-m68881"
15168 .PD
15169 Generate floating-point instructions.  This is the default for 68020
15170 and above, and for ColdFire devices that have an \s-1FPU\s0.  It defines the
15171 macro \f(CW\*(C`_\|_HAVE_68881_\|_\*(C'\fR on M680x0 targets and \f(CW\*(C`_\|_mcffpu_\|_\*(C'\fR
15172 on ColdFire targets.
15173 .IP "\fB\-msoft\-float\fR" 4
15174 .IX Item "-msoft-float"
15175 Do not generate floating-point instructions; use library calls instead.
15176 This is the default for 68000, 68010, and 68832 targets.  It is also
15177 the default for ColdFire devices that have no \s-1FPU\s0.
15178 .IP "\fB\-mdiv\fR" 4
15179 .IX Item "-mdiv"
15180 .PD 0
15181 .IP "\fB\-mno\-div\fR" 4
15182 .IX Item "-mno-div"
15183 .PD
15184 Generate (do not generate) ColdFire hardware divide and remainder
15185 instructions.  If \fB\-march\fR is used without \fB\-mcpu\fR,
15186 the default is \*(L"on\*(R" for ColdFire architectures and \*(L"off\*(R" for M680x0
15187 architectures.  Otherwise, the default is taken from the target \s-1CPU\s0
15188 (either the default \s-1CPU\s0, or the one specified by \fB\-mcpu\fR).  For
15189 example, the default is \*(L"off\*(R" for \fB\-mcpu=5206\fR and \*(L"on\*(R" for
15190 \&\fB\-mcpu=5206e\fR.
15191 .Sp
15192 \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcfhwdiv_\|_\*(C'\fR when this option is enabled.
15193 .IP "\fB\-mshort\fR" 4
15194 .IX Item "-mshort"
15195 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
15196 Additionally, parameters passed on the stack are also aligned to a
15197 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
15198 .IP "\fB\-mno\-short\fR" 4
15199 .IX Item "-mno-short"
15200 Do not consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide.  This is the default.
15201 .IP "\fB\-mnobitfield\fR" 4
15202 .IX Item "-mnobitfield"
15203 .PD 0
15204 .IP "\fB\-mno\-bitfield\fR" 4
15205 .IX Item "-mno-bitfield"
15206 .PD
15207 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
15208 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
15209 .IP "\fB\-mbitfield\fR" 4
15210 .IX Item "-mbitfield"
15211 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
15212 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
15213 designed for a 68020.
15214 .IP "\fB\-mrtd\fR" 4
15215 .IX Item "-mrtd"
15216 Use a different function-calling convention, in which functions
15217 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
15218 instruction, which pops their arguments while returning.  This
15219 saves one instruction in the caller since there is no need to pop
15220 the arguments there.
15221 .Sp
15222 This calling convention is incompatible with the one normally
15223 used on Unix, so you cannot use it if you need to call libraries
15224 compiled with the Unix compiler.
15225 .Sp
15226 Also, you must provide function prototypes for all functions that
15227 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
15228 otherwise incorrect code is generated for calls to those
15229 functions.
15230 .Sp
15231 In addition, seriously incorrect code results if you call a
15232 function with too many arguments.  (Normally, extra arguments are
15233 harmlessly ignored.)
15234 .Sp
15235 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
15236 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
15237 .IP "\fB\-mno\-rtd\fR" 4
15238 .IX Item "-mno-rtd"
15239 Do not use the calling conventions selected by \fB\-mrtd\fR.
15240 This is the default.
15241 .IP "\fB\-malign\-int\fR" 4
15242 .IX Item "-malign-int"
15243 .PD 0
15244 .IP "\fB\-mno\-align\-int\fR" 4
15245 .IX Item "-mno-align-int"
15246 .PD
15247 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,
15248 \&\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
15249 boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
15250 Aligning variables on 32\-bit boundaries produces code that runs somewhat
15251 faster on processors with 32\-bit busses at the expense of more memory.
15252 .Sp
15253 \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0
15254 aligns structures containing the above types differently than
15255 most published application binary interface specifications for the m68k.
15256 .IP "\fB\-mpcrel\fR" 4
15257 .IX Item "-mpcrel"
15258 Use the pc-relative addressing mode of the 68000 directly, instead of
15259 using a global offset table.  At present, this option implies \fB\-fpic\fR,
15260 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
15261 not presently supported with \fB\-mpcrel\fR, though this could be supported for
15262 68020 and higher processors.
15263 .IP "\fB\-mno\-strict\-align\fR" 4
15264 .IX Item "-mno-strict-align"
15265 .PD 0
15266 .IP "\fB\-mstrict\-align\fR" 4
15267 .IX Item "-mstrict-align"
15268 .PD
15269 Do not (do) assume that unaligned memory references are handled by
15270 the system.
15271 .IP "\fB\-msep\-data\fR" 4
15272 .IX Item "-msep-data"
15273 Generate code that allows the data segment to be located in a different
15274 area of memory from the text segment.  This allows for execute-in-place in
15275 an environment without virtual memory management.  This option implies
15276 \&\fB\-fPIC\fR.
15277 .IP "\fB\-mno\-sep\-data\fR" 4
15278 .IX Item "-mno-sep-data"
15279 Generate code that assumes that the data segment follows the text segment.
15280 This is the default.
15281 .IP "\fB\-mid\-shared\-library\fR" 4
15282 .IX Item "-mid-shared-library"
15283 Generate code that supports shared libraries via the library \s-1ID\s0 method.
15284 This allows for execute-in-place and shared libraries in an environment
15285 without virtual memory management.  This option implies \fB\-fPIC\fR.
15286 .IP "\fB\-mno\-id\-shared\-library\fR" 4
15287 .IX Item "-mno-id-shared-library"
15288 Generate code that doesn't assume ID-based shared libraries are being used.
15289 This is the default.
15290 .IP "\fB\-mshared\-library\-id=n\fR" 4
15291 .IX Item "-mshared-library-id=n"
15292 Specifies the identification number of the ID-based shared library being
15293 compiled.  Specifying a value of 0 generates more compact code; specifying
15294 other values forces the allocation of that number to the current
15295 library, but is no more space\- or time-efficient than omitting this option.
15296 .IP "\fB\-mxgot\fR" 4
15297 .IX Item "-mxgot"
15298 .PD 0
15299 .IP "\fB\-mno\-xgot\fR" 4
15300 .IX Item "-mno-xgot"
15301 .PD
15302 When generating position-independent code for ColdFire, generate code
15303 that works if the \s-1GOT\s0 has more than 8192 entries.  This code is
15304 larger and slower than code generated without this option.  On M680x0
15305 processors, this option is not needed; \fB\-fPIC\fR suffices.
15306 .Sp
15307 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
15308 While this is relatively efficient, it only works if the \s-1GOT\s0
15309 is smaller than about 64k.  Anything larger causes the linker
15310 to report an error such as:
15311 .Sp
15312 .Vb 1
15313 \&        relocation truncated to fit: R_68K_GOT16O foobar
15314 .Ve
15315 .Sp
15316 If this happens, you should recompile your code with \fB\-mxgot\fR.
15317 It should then work with very large GOTs.  However, code generated with
15318 \&\fB\-mxgot\fR is less efficient, since it takes 4 instructions to fetch
15319 the value of a global symbol.
15320 .Sp
15321 Note that some linkers, including newer versions of the \s-1GNU\s0 linker,
15322 can create multiple GOTs and sort \s-1GOT\s0 entries.  If you have such a linker,
15323 you should only need to use \fB\-mxgot\fR when compiling a single
15324 object file that accesses more than 8192 \s-1GOT\s0 entries.  Very few do.
15325 .Sp
15326 These options have no effect unless \s-1GCC\s0 is generating
15327 position-independent code.
15328 .PP
15329 \fIMCore Options\fR
15330 .IX Subsection "MCore Options"
15331 .PP
15332 These are the \fB\-m\fR options defined for the Motorola M*Core
15333 processors.
15334 .IP "\fB\-mhardlit\fR" 4
15335 .IX Item "-mhardlit"
15336 .PD 0
15337 .IP "\fB\-mno\-hardlit\fR" 4
15338 .IX Item "-mno-hardlit"
15339 .PD
15340 Inline constants into the code stream if it can be done in two
15341 instructions or less.
15342 .IP "\fB\-mdiv\fR" 4
15343 .IX Item "-mdiv"
15344 .PD 0
15345 .IP "\fB\-mno\-div\fR" 4
15346 .IX Item "-mno-div"
15347 .PD
15348 Use the divide instruction.  (Enabled by default).
15349 .IP "\fB\-mrelax\-immediate\fR" 4
15350 .IX Item "-mrelax-immediate"
15351 .PD 0
15352 .IP "\fB\-mno\-relax\-immediate\fR" 4
15353 .IX Item "-mno-relax-immediate"
15354 .PD
15355 Allow arbitrary-sized immediates in bit operations.
15356 .IP "\fB\-mwide\-bitfields\fR" 4
15357 .IX Item "-mwide-bitfields"
15358 .PD 0
15359 .IP "\fB\-mno\-wide\-bitfields\fR" 4
15360 .IX Item "-mno-wide-bitfields"
15361 .PD
15362 Always treat bit-fields as \f(CW\*(C`int\*(C'\fR\-sized.
15363 .IP "\fB\-m4byte\-functions\fR" 4
15364 .IX Item "-m4byte-functions"
15365 .PD 0
15366 .IP "\fB\-mno\-4byte\-functions\fR" 4
15367 .IX Item "-mno-4byte-functions"
15368 .PD
15369 Force all functions to be aligned to a 4\-byte boundary.
15370 .IP "\fB\-mcallgraph\-data\fR" 4
15371 .IX Item "-mcallgraph-data"
15372 .PD 0
15373 .IP "\fB\-mno\-callgraph\-data\fR" 4
15374 .IX Item "-mno-callgraph-data"
15375 .PD
15376 Emit callgraph information.
15377 .IP "\fB\-mslow\-bytes\fR" 4
15378 .IX Item "-mslow-bytes"
15379 .PD 0
15380 .IP "\fB\-mno\-slow\-bytes\fR" 4
15381 .IX Item "-mno-slow-bytes"
15382 .PD
15383 Prefer word access when reading byte quantities.
15384 .IP "\fB\-mlittle\-endian\fR" 4
15385 .IX Item "-mlittle-endian"
15386 .PD 0
15387 .IP "\fB\-mbig\-endian\fR" 4
15388 .IX Item "-mbig-endian"
15389 .PD
15390 Generate code for a little-endian target.
15391 .IP "\fB\-m210\fR" 4
15392 .IX Item "-m210"
15393 .PD 0
15394 .IP "\fB\-m340\fR" 4
15395 .IX Item "-m340"
15396 .PD
15397 Generate code for the 210 processor.
15398 .IP "\fB\-mno\-lsim\fR" 4
15399 .IX Item "-mno-lsim"
15400 Assume that runtime support has been provided and so omit the
15401 simulator library (\fIlibsim.a)\fR from the linker command line.
15402 .IP "\fB\-mstack\-increment=\fR\fIsize\fR" 4
15403 .IX Item "-mstack-increment=size"
15404 Set the maximum amount for a single stack increment operation.  Large
15405 values can increase the speed of programs that contain functions
15406 that need a large amount of stack space, but they can also trigger a
15407 segmentation fault if the stack is extended too much.  The default
15408 value is 0x1000.
15409 .PP
15410 \fIMeP Options\fR
15411 .IX Subsection "MeP Options"
15412 .IP "\fB\-mabsdiff\fR" 4
15413 .IX Item "-mabsdiff"
15414 Enables the \f(CW\*(C`abs\*(C'\fR instruction, which is the absolute difference
15415 between two registers.
15416 .IP "\fB\-mall\-opts\fR" 4
15417 .IX Item "-mall-opts"
15418 Enables all the optional instructions\-\-\-average, multiply, divide, bit
15419 operations, leading zero, absolute difference, min/max, clip, and
15420 saturation.
15421 .IP "\fB\-maverage\fR" 4
15422 .IX Item "-maverage"
15423 Enables the \f(CW\*(C`ave\*(C'\fR instruction, which computes the average of two
15424 registers.
15425 .IP "\fB\-mbased=\fR\fIn\fR" 4
15426 .IX Item "-mbased=n"
15427 Variables of size \fIn\fR bytes or smaller are placed in the
15428 \&\f(CW\*(C`.based\*(C'\fR section by default.  Based variables use the \f(CW$tp\fR
15429 register as a base register, and there is a 128\-byte limit to the
15430 \&\f(CW\*(C`.based\*(C'\fR section.
15431 .IP "\fB\-mbitops\fR" 4
15432 .IX Item "-mbitops"
15433 Enables the bit operation instructions\-\-\-bit test (\f(CW\*(C`btstm\*(C'\fR), set
15434 (\f(CW\*(C`bsetm\*(C'\fR), clear (\f(CW\*(C`bclrm\*(C'\fR), invert (\f(CW\*(C`bnotm\*(C'\fR), and
15435 test-and-set (\f(CW\*(C`tas\*(C'\fR).
15436 .IP "\fB\-mc=\fR\fIname\fR" 4
15437 .IX Item "-mc=name"
15438 Selects which section constant data is placed in.  \fIname\fR may
15439 be \fBtiny\fR, \fBnear\fR, or \fBfar\fR.
15440 .IP "\fB\-mclip\fR" 4
15441 .IX Item "-mclip"
15442 Enables the \f(CW\*(C`clip\*(C'\fR instruction.  Note that \fB\-mclip\fR is not
15443 useful unless you also provide \fB\-mminmax\fR.
15444 .IP "\fB\-mconfig=\fR\fIname\fR" 4
15445 .IX Item "-mconfig=name"
15446 Selects one of the built-in core configurations.  Each MeP chip has
15447 one or more modules in it; each module has a core \s-1CPU\s0 and a variety of
15448 coprocessors, optional instructions, and peripherals.  The
15449 \&\f(CW\*(C`MeP\-Integrator\*(C'\fR tool, not part of \s-1GCC\s0, provides these
15450 configurations through this option; using this option is the same as
15451 using all the corresponding command-line options.  The default
15452 configuration is \fBdefault\fR.
15453 .IP "\fB\-mcop\fR" 4
15454 .IX Item "-mcop"
15455 Enables the coprocessor instructions.  By default, this is a 32\-bit
15456 coprocessor.  Note that the coprocessor is normally enabled via the
15457 \&\fB\-mconfig=\fR option.
15458 .IP "\fB\-mcop32\fR" 4
15459 .IX Item "-mcop32"
15460 Enables the 32\-bit coprocessor's instructions.
15461 .IP "\fB\-mcop64\fR" 4
15462 .IX Item "-mcop64"
15463 Enables the 64\-bit coprocessor's instructions.
15464 .IP "\fB\-mivc2\fR" 4
15465 .IX Item "-mivc2"
15466 Enables \s-1IVC2\s0 scheduling.  \s-1IVC2\s0 is a 64\-bit \s-1VLIW\s0 coprocessor.
15467 .IP "\fB\-mdc\fR" 4
15468 .IX Item "-mdc"
15469 Causes constant variables to be placed in the \f(CW\*(C`.near\*(C'\fR section.
15470 .IP "\fB\-mdiv\fR" 4
15471 .IX Item "-mdiv"
15472 Enables the \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions.
15473 .IP "\fB\-meb\fR" 4
15474 .IX Item "-meb"
15475 Generate big-endian code.
15476 .IP "\fB\-mel\fR" 4
15477 .IX Item "-mel"
15478 Generate little-endian code.
15479 .IP "\fB\-mio\-volatile\fR" 4
15480 .IX Item "-mio-volatile"
15481 Tells the compiler that any variable marked with the \f(CW\*(C`io\*(C'\fR
15482 attribute is to be considered volatile.
15483 .IP "\fB\-ml\fR" 4
15484 .IX Item "-ml"
15485 Causes variables to be assigned to the \f(CW\*(C`.far\*(C'\fR section by default.
15486 .IP "\fB\-mleadz\fR" 4
15487 .IX Item "-mleadz"
15488 Enables the \f(CW\*(C`leadz\*(C'\fR (leading zero) instruction.
15489 .IP "\fB\-mm\fR" 4
15490 .IX Item "-mm"
15491 Causes variables to be assigned to the \f(CW\*(C`.near\*(C'\fR section by default.
15492 .IP "\fB\-mminmax\fR" 4
15493 .IX Item "-mminmax"
15494 Enables the \f(CW\*(C`min\*(C'\fR and \f(CW\*(C`max\*(C'\fR instructions.
15495 .IP "\fB\-mmult\fR" 4
15496 .IX Item "-mmult"
15497 Enables the multiplication and multiply-accumulate instructions.
15498 .IP "\fB\-mno\-opts\fR" 4
15499 .IX Item "-mno-opts"
15500 Disables all the optional instructions enabled by \fB\-mall\-opts\fR.
15501 .IP "\fB\-mrepeat\fR" 4
15502 .IX Item "-mrepeat"
15503 Enables the \f(CW\*(C`repeat\*(C'\fR and \f(CW\*(C`erepeat\*(C'\fR instructions, used for
15504 low-overhead looping.
15505 .IP "\fB\-ms\fR" 4
15506 .IX Item "-ms"
15507 Causes all variables to default to the \f(CW\*(C`.tiny\*(C'\fR section.  Note
15508 that there is a 65536\-byte limit to this section.  Accesses to these
15509 variables use the \f(CW%gp\fR base register.
15510 .IP "\fB\-msatur\fR" 4
15511 .IX Item "-msatur"
15512 Enables the saturation instructions.  Note that the compiler does not
15513 currently generate these itself, but this option is included for
15514 compatibility with other tools, like \f(CW\*(C`as\*(C'\fR.
15515 .IP "\fB\-msdram\fR" 4
15516 .IX Item "-msdram"
15517 Link the SDRAM-based runtime instead of the default ROM-based runtime.
15518 .IP "\fB\-msim\fR" 4
15519 .IX Item "-msim"
15520 Link the simulator run-time libraries.
15521 .IP "\fB\-msimnovec\fR" 4
15522 .IX Item "-msimnovec"
15523 Link the simulator runtime libraries, excluding built-in support
15524 for reset and exception vectors and tables.
15525 .IP "\fB\-mtf\fR" 4
15526 .IX Item "-mtf"
15527 Causes all functions to default to the \f(CW\*(C`.far\*(C'\fR section.  Without
15528 this option, functions default to the \f(CW\*(C`.near\*(C'\fR section.
15529 .IP "\fB\-mtiny=\fR\fIn\fR" 4
15530 .IX Item "-mtiny=n"
15531 Variables that are \fIn\fR bytes or smaller are allocated to the
15532 \&\f(CW\*(C`.tiny\*(C'\fR section.  These variables use the \f(CW$gp\fR base
15533 register.  The default for this option is 4, but note that there's a
15534 65536\-byte limit to the \f(CW\*(C`.tiny\*(C'\fR section.
15535 .PP
15536 \fIMicroBlaze Options\fR
15537 .IX Subsection "MicroBlaze Options"
15538 .IP "\fB\-msoft\-float\fR" 4
15539 .IX Item "-msoft-float"
15540 Use software emulation for floating point (default).
15541 .IP "\fB\-mhard\-float\fR" 4
15542 .IX Item "-mhard-float"
15543 Use hardware floating-point instructions.
15544 .IP "\fB\-mmemcpy\fR" 4
15545 .IX Item "-mmemcpy"
15546 Do not optimize block moves, use \f(CW\*(C`memcpy\*(C'\fR.
15547 .IP "\fB\-mno\-clearbss\fR" 4
15548 .IX Item "-mno-clearbss"
15549 This option is deprecated.  Use \fB\-fno\-zero\-initialized\-in\-bss\fR instead.
15550 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
15551 .IX Item "-mcpu=cpu-type"
15552 Use features of, and schedule code for, the given \s-1CPU\s0.
15553 Supported values are in the format \fBv\fR\fIX\fR\fB.\fR\fI\s-1YY\s0\fR\fB.\fR\fIZ\fR,
15554 where \fIX\fR is a major version, \fI\s-1YY\s0\fR is the minor version, and
15555 \&\fIZ\fR is compatibility code.  Example values are \fBv3.00.a\fR,
15556 \&\fBv4.00.b\fR, \fBv5.00.a\fR, \fBv5.00.b\fR, \fBv5.00.b\fR, \fBv6.00.a\fR.
15557 .IP "\fB\-mxl\-soft\-mul\fR" 4
15558 .IX Item "-mxl-soft-mul"
15559 Use software multiply emulation (default).
15560 .IP "\fB\-mxl\-soft\-div\fR" 4
15561 .IX Item "-mxl-soft-div"
15562 Use software emulation for divides (default).
15563 .IP "\fB\-mxl\-barrel\-shift\fR" 4
15564 .IX Item "-mxl-barrel-shift"
15565 Use the hardware barrel shifter.
15566 .IP "\fB\-mxl\-pattern\-compare\fR" 4
15567 .IX Item "-mxl-pattern-compare"
15568 Use pattern compare instructions.
15569 .IP "\fB\-msmall\-divides\fR" 4
15570 .IX Item "-msmall-divides"
15571 Use table lookup optimization for small signed integer divisions.
15572 .IP "\fB\-mxl\-stack\-check\fR" 4
15573 .IX Item "-mxl-stack-check"
15574 This option is deprecated.  Use \fB\-fstack\-check\fR instead.
15575 .IP "\fB\-mxl\-gp\-opt\fR" 4
15576 .IX Item "-mxl-gp-opt"
15577 Use GP-relative \f(CW\*(C`.sdata\*(C'\fR/\f(CW\*(C`.sbss\*(C'\fR sections.
15578 .IP "\fB\-mxl\-multiply\-high\fR" 4
15579 .IX Item "-mxl-multiply-high"
15580 Use multiply high instructions for high part of 32x32 multiply.
15581 .IP "\fB\-mxl\-float\-convert\fR" 4
15582 .IX Item "-mxl-float-convert"
15583 Use hardware floating-point conversion instructions.
15584 .IP "\fB\-mxl\-float\-sqrt\fR" 4
15585 .IX Item "-mxl-float-sqrt"
15586 Use hardware floating-point square root instruction.
15587 .IP "\fB\-mbig\-endian\fR" 4
15588 .IX Item "-mbig-endian"
15589 Generate code for a big-endian target.
15590 .IP "\fB\-mlittle\-endian\fR" 4
15591 .IX Item "-mlittle-endian"
15592 Generate code for a little-endian target.
15593 .IP "\fB\-mxl\-reorder\fR" 4
15594 .IX Item "-mxl-reorder"
15595 Use reorder instructions (swap and byte reversed load/store).
15596 .IP "\fB\-mxl\-mode\-\fR\fIapp-model\fR" 4
15597 .IX Item "-mxl-mode-app-model"
15598 Select application model \fIapp-model\fR.  Valid models are
15599 .RS 4
15600 .IP "\fBexecutable\fR" 4
15601 .IX Item "executable"
15602 normal executable (default), uses startup code \fIcrt0.o\fR.
15603 .IP "\fBxmdstub\fR" 4
15604 .IX Item "xmdstub"
15605 for use with Xilinx Microprocessor Debugger (\s-1XMD\s0) based
15606 software intrusive debug agent called xmdstub. This uses startup file
15607 \&\fIcrt1.o\fR and sets the start address of the program to 0x800.
15608 .IP "\fBbootstrap\fR" 4
15609 .IX Item "bootstrap"
15610 for applications that are loaded using a bootloader.
15611 This model uses startup file \fIcrt2.o\fR which does not contain a processor
15612 reset vector handler. This is suitable for transferring control on a
15613 processor reset to the bootloader rather than the application.
15614 .IP "\fBnovectors\fR" 4
15615 .IX Item "novectors"
15616 for applications that do not require any of the
15617 MicroBlaze vectors. This option may be useful for applications running
15618 within a monitoring application. This model uses \fIcrt3.o\fR as a startup file.
15619 .RE
15620 .RS 4
15621 .Sp
15622 Option \fB\-xl\-mode\-\fR\fIapp-model\fR is a deprecated alias for
15623 \&\fB\-mxl\-mode\-\fR\fIapp-model\fR.
15624 .RE
15625 .PP
15626 \fI\s-1MIPS\s0 Options\fR
15627 .IX Subsection "MIPS Options"
15628 .IP "\fB\-EB\fR" 4
15629 .IX Item "-EB"
15630 Generate big-endian code.
15631 .IP "\fB\-EL\fR" 4
15632 .IX Item "-EL"
15633 Generate little-endian code.  This is the default for \fBmips*el\-*\-*\fR
15634 configurations.
15635 .IP "\fB\-march=\fR\fIarch\fR" 4
15636 .IX Item "-march=arch"
15637 Generate code that runs on \fIarch\fR, which can be the name of a
15638 generic \s-1MIPS\s0 \s-1ISA\s0, or the name of a particular processor.
15639 The \s-1ISA\s0 names are:
15640 \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
15641 \&\fBmips32\fR, \fBmips32r2\fR, \fBmips32r3\fR, \fBmips32r5\fR,
15642 \&\fBmips32r6\fR, \fBmips64\fR, \fBmips64r2\fR, \fBmips64r3\fR,
15643 \&\fBmips64r5\fR and \fBmips64r6\fR.
15644 The processor names are:
15645 \&\fB4kc\fR, \fB4km\fR, \fB4kp\fR, \fB4ksc\fR,
15646 \&\fB4kec\fR, \fB4kem\fR, \fB4kep\fR, \fB4ksd\fR,
15647 \&\fB5kc\fR, \fB5kf\fR,
15648 \&\fB20kc\fR,
15649 \&\fB24kc\fR, \fB24kf2_1\fR, \fB24kf1_1\fR,
15650 \&\fB24kec\fR, \fB24kef2_1\fR, \fB24kef1_1\fR,
15651 \&\fB34kc\fR, \fB34kf2_1\fR, \fB34kf1_1\fR, \fB34kn\fR,
15652 \&\fB74kc\fR, \fB74kf2_1\fR, \fB74kf1_1\fR, \fB74kf3_2\fR,
15653 \&\fB1004kc\fR, \fB1004kf2_1\fR, \fB1004kf1_1\fR,
15654 \&\fBloongson2e\fR, \fBloongson2f\fR, \fBloongson3a\fR,
15655 \&\fBm4k\fR,
15656 \&\fBm14k\fR, \fBm14kc\fR, \fBm14ke\fR, \fBm14kec\fR,
15657 \&\fBocteon\fR, \fBocteon+\fR, \fBocteon2\fR, \fBocteon3\fR,
15658 \&\fBorion\fR,
15659 \&\fBp5600\fR,
15660 \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
15661 \&\fBr4600\fR, \fBr4650\fR, \fBr4700\fR, \fBr6000\fR, \fBr8000\fR,
15662 \&\fBrm7000\fR, \fBrm9000\fR,
15663 \&\fBr10000\fR, \fBr12000\fR, \fBr14000\fR, \fBr16000\fR,
15664 \&\fBsb1\fR,
15665 \&\fBsr71000\fR,
15666 \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
15667 \&\fBvr5000\fR, \fBvr5400\fR, \fBvr5500\fR,
15668 \&\fBxlr\fR and \fBxlp\fR.
15669 The special value \fBfrom-abi\fR selects the
15670 most compatible architecture for the selected \s-1ABI\s0 (that is,
15671 \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
15672 .Sp
15673 The native Linux/GNU toolchain also supports the value \fBnative\fR,
15674 which selects the best architecture option for the host processor.
15675 \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize
15676 the processor.
15677 .Sp
15678 In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
15679 (for example, \fB\-march=r2k\fR).  Prefixes are optional, and
15680 \&\fBvr\fR may be written \fBr\fR.
15681 .Sp
15682 Names of the form \fIn\fR\fBf2_1\fR refer to processors with
15683 FPUs clocked at half the rate of the core, names of the form
15684 \&\fIn\fR\fBf1_1\fR refer to processors with FPUs clocked at the same
15685 rate as the core, and names of the form \fIn\fR\fBf3_2\fR refer to
15686 processors with FPUs clocked a ratio of 3:2 with respect to the core.
15687 For compatibility reasons, \fIn\fR\fBf\fR is accepted as a synonym
15688 for \fIn\fR\fBf2_1\fR while \fIn\fR\fBx\fR and \fIb\fR\fBfx\fR are
15689 accepted as synonyms for \fIn\fR\fBf1_1\fR.
15690 .Sp
15691 \&\s-1GCC\s0 defines two macros based on the value of this option.  The first
15692 is \f(CW\*(C`_MIPS_ARCH\*(C'\fR, which gives the name of target architecture, as
15693 a string.  The second has the form \f(CW\*(C`_MIPS_ARCH_\f(CIfoo\f(CW\*(C'\fR,
15694 where \fIfoo\fR is the capitalized value of \f(CW\*(C`_MIPS_ARCH\*(C'\fR.
15695 For example, \fB\-march=r2000\fR sets \f(CW\*(C`_MIPS_ARCH\*(C'\fR
15696 to \f(CW"r2000"\fR and defines the macro \f(CW\*(C`_MIPS_ARCH_R2000\*(C'\fR.
15697 .Sp
15698 Note that the \f(CW\*(C`_MIPS_ARCH\*(C'\fR macro uses the processor names given
15699 above.  In other words, it has the full prefix and does not
15700 abbreviate \fB000\fR as \fBk\fR.  In the case of \fBfrom-abi\fR,
15701 the macro names the resolved architecture (either \f(CW"mips1"\fR or
15702 \&\f(CW"mips3"\fR).  It names the default architecture when no
15703 \&\fB\-march\fR option is given.
15704 .IP "\fB\-mtune=\fR\fIarch\fR" 4
15705 .IX Item "-mtune=arch"
15706 Optimize for \fIarch\fR.  Among other things, this option controls
15707 the way instructions are scheduled, and the perceived cost of arithmetic
15708 operations.  The list of \fIarch\fR values is the same as for
15709 \&\fB\-march\fR.
15710 .Sp
15711 When this option is not used, \s-1GCC\s0 optimizes for the processor
15712 specified by \fB\-march\fR.  By using \fB\-march\fR and
15713 \&\fB\-mtune\fR together, it is possible to generate code that
15714 runs on a family of processors, but optimize the code for one
15715 particular member of that family.
15716 .Sp
15717 \&\fB\-mtune\fR defines the macros \f(CW\*(C`_MIPS_TUNE\*(C'\fR and
15718 \&\f(CW\*(C`_MIPS_TUNE_\f(CIfoo\f(CW\*(C'\fR, which work in the same way as the
15719 \&\fB\-march\fR ones described above.
15720 .IP "\fB\-mips1\fR" 4
15721 .IX Item "-mips1"
15722 Equivalent to \fB\-march=mips1\fR.
15723 .IP "\fB\-mips2\fR" 4
15724 .IX Item "-mips2"
15725 Equivalent to \fB\-march=mips2\fR.
15726 .IP "\fB\-mips3\fR" 4
15727 .IX Item "-mips3"
15728 Equivalent to \fB\-march=mips3\fR.
15729 .IP "\fB\-mips4\fR" 4
15730 .IX Item "-mips4"
15731 Equivalent to \fB\-march=mips4\fR.
15732 .IP "\fB\-mips32\fR" 4
15733 .IX Item "-mips32"
15734 Equivalent to \fB\-march=mips32\fR.
15735 .IP "\fB\-mips32r3\fR" 4
15736 .IX Item "-mips32r3"
15737 Equivalent to \fB\-march=mips32r3\fR.
15738 .IP "\fB\-mips32r5\fR" 4
15739 .IX Item "-mips32r5"
15740 Equivalent to \fB\-march=mips32r5\fR.
15741 .IP "\fB\-mips32r6\fR" 4
15742 .IX Item "-mips32r6"
15743 Equivalent to \fB\-march=mips32r6\fR.
15744 .IP "\fB\-mips64\fR" 4
15745 .IX Item "-mips64"
15746 Equivalent to \fB\-march=mips64\fR.
15747 .IP "\fB\-mips64r2\fR" 4
15748 .IX Item "-mips64r2"
15749 Equivalent to \fB\-march=mips64r2\fR.
15750 .IP "\fB\-mips64r3\fR" 4
15751 .IX Item "-mips64r3"
15752 Equivalent to \fB\-march=mips64r3\fR.
15753 .IP "\fB\-mips64r5\fR" 4
15754 .IX Item "-mips64r5"
15755 Equivalent to \fB\-march=mips64r5\fR.
15756 .IP "\fB\-mips64r6\fR" 4
15757 .IX Item "-mips64r6"
15758 Equivalent to \fB\-march=mips64r6\fR.
15759 .IP "\fB\-mips16\fR" 4
15760 .IX Item "-mips16"
15761 .PD 0
15762 .IP "\fB\-mno\-mips16\fR" 4
15763 .IX Item "-mno-mips16"
15764 .PD
15765 Generate (do not generate) \s-1MIPS16\s0 code.  If \s-1GCC\s0 is targeting a
15766 \&\s-1MIPS32\s0 or \s-1MIPS64\s0 architecture, it makes use of the MIPS16e \s-1ASE\s0.
15767 .Sp
15768 \&\s-1MIPS16\s0 code generation can also be controlled on a per-function basis
15769 by means of \f(CW\*(C`mips16\*(C'\fR and \f(CW\*(C`nomips16\*(C'\fR attributes.
15770 .IP "\fB\-mflip\-mips16\fR" 4
15771 .IX Item "-mflip-mips16"
15772 Generate \s-1MIPS16\s0 code on alternating functions.  This option is provided
15773 for regression testing of mixed MIPS16/non\-MIPS16 code generation, and is
15774 not intended for ordinary use in compiling user code.
15775 .IP "\fB\-minterlink\-compressed\fR" 4
15776 .IX Item "-minterlink-compressed"
15777 .PD 0
15778 .IP "\fB\-mno\-interlink\-compressed\fR" 4
15779 .IX Item "-mno-interlink-compressed"
15780 .PD
15781 Require (do not require) that code using the standard (uncompressed) \s-1MIPS\s0 \s-1ISA\s0
15782 be link-compatible with \s-1MIPS16\s0 and microMIPS code, and vice versa.
15783 .Sp
15784 For example, code using the standard \s-1ISA\s0 encoding cannot jump directly
15785 to \s-1MIPS16\s0 or microMIPS code; it must either use a call or an indirect jump.
15786 \&\fB\-minterlink\-compressed\fR therefore disables direct jumps unless \s-1GCC\s0
15787 knows that the target of the jump is not compressed.
15788 .IP "\fB\-minterlink\-mips16\fR" 4
15789 .IX Item "-minterlink-mips16"
15790 .PD 0
15791 .IP "\fB\-mno\-interlink\-mips16\fR" 4
15792 .IX Item "-mno-interlink-mips16"
15793 .PD
15794 Aliases of \fB\-minterlink\-compressed\fR and
15795 \&\fB\-mno\-interlink\-compressed\fR.  These options predate the microMIPS \s-1ASE\s0
15796 and are retained for backwards compatibility.
15797 .IP "\fB\-mabi=32\fR" 4
15798 .IX Item "-mabi=32"
15799 .PD 0
15800 .IP "\fB\-mabi=o64\fR" 4
15801 .IX Item "-mabi=o64"
15802 .IP "\fB\-mabi=n32\fR" 4
15803 .IX Item "-mabi=n32"
15804 .IP "\fB\-mabi=64\fR" 4
15805 .IX Item "-mabi=64"
15806 .IP "\fB\-mabi=eabi\fR" 4
15807 .IX Item "-mabi=eabi"
15808 .PD
15809 Generate code for the given \s-1ABI\s0.
15810 .Sp
15811 Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant.  \s-1GCC\s0 normally
15812 generates 64\-bit code when you select a 64\-bit architecture, but you
15813 can use \fB\-mgp32\fR to get 32\-bit code instead.
15814 .Sp
15815 For information about the O64 \s-1ABI\s0, see
15816 <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
15817 .Sp
15818 \&\s-1GCC\s0 supports a variant of the o32 \s-1ABI\s0 in which floating-point registers
15819 are 64 rather than 32 bits wide.  You can select this combination with
15820 \&\fB\-mabi=32\fR \fB\-mfp64\fR.  This \s-1ABI\s0 relies on the \f(CW\*(C`mthc1\*(C'\fR
15821 and \f(CW\*(C`mfhc1\*(C'\fR instructions and is therefore only supported for
15822 \&\s-1MIPS32R2\s0, \s-1MIPS32R3\s0 and \s-1MIPS32R5\s0 processors.
15823 .Sp
15824 The register assignments for arguments and return values remain the
15825 same, but each scalar value is passed in a single 64\-bit register
15826 rather than a pair of 32\-bit registers.  For example, scalar
15827 floating-point values are returned in \fB\f(CB$f0\fB\fR only, not a
15828 \&\fB\f(CB$f0\fB\fR/\fB\f(CB$f1\fB\fR pair.  The set of call-saved registers also
15829 remains the same in that the even-numbered double-precision registers
15830 are saved.
15831 .Sp
15832 Two additional variants of the o32 \s-1ABI\s0 are supported to enable
15833 a transition from 32\-bit to 64\-bit registers.  These are \s-1FPXX\s0
15834 (\fB\-mfpxx\fR) and \s-1FP64A\s0 (\fB\-mfp64\fR \fB\-mno\-odd\-spreg\fR).
15835 The \s-1FPXX\s0 extension mandates that all code must execute correctly
15836 when run using 32\-bit or 64\-bit registers.  The code can be interlinked
15837 with either \s-1FP32\s0 or \s-1FP64\s0, but not both.
15838 The \s-1FP64A\s0 extension is similar to the \s-1FP64\s0 extension but forbids the
15839 use of odd-numbered single-precision registers.  This can be used
15840 in conjunction with the \f(CW\*(C`FRE\*(C'\fR mode of FPUs in \s-1MIPS32R5\s0
15841 processors and allows both \s-1FP32\s0 and \s-1FP64A\s0 code to interlink and
15842 run in the same process without changing \s-1FPU\s0 modes.
15843 .IP "\fB\-mabicalls\fR" 4
15844 .IX Item "-mabicalls"
15845 .PD 0
15846 .IP "\fB\-mno\-abicalls\fR" 4
15847 .IX Item "-mno-abicalls"
15848 .PD
15849 Generate (do not generate) code that is suitable for SVR4\-style
15850 dynamic objects.  \fB\-mabicalls\fR is the default for SVR4\-based
15851 systems.
15852 .IP "\fB\-mshared\fR" 4
15853 .IX Item "-mshared"
15854 .PD 0
15855 .IP "\fB\-mno\-shared\fR" 4
15856 .IX Item "-mno-shared"
15857 .PD
15858 Generate (do not generate) code that is fully position-independent,
15859 and that can therefore be linked into shared libraries.  This option
15860 only affects \fB\-mabicalls\fR.
15861 .Sp
15862 All \fB\-mabicalls\fR code has traditionally been position-independent,
15863 regardless of options like \fB\-fPIC\fR and \fB\-fpic\fR.  However,
15864 as an extension, the \s-1GNU\s0 toolchain allows executables to use absolute
15865 accesses for locally-binding symbols.  It can also use shorter \s-1GP\s0
15866 initialization sequences and generate direct calls to locally-defined
15867 functions.  This mode is selected by \fB\-mno\-shared\fR.
15868 .Sp
15869 \&\fB\-mno\-shared\fR depends on binutils 2.16 or higher and generates
15870 objects that can only be linked by the \s-1GNU\s0 linker.  However, the option
15871 does not affect the \s-1ABI\s0 of the final executable; it only affects the \s-1ABI\s0
15872 of relocatable objects.  Using \fB\-mno\-shared\fR generally makes
15873 executables both smaller and quicker.
15874 .Sp
15875 \&\fB\-mshared\fR is the default.
15876 .IP "\fB\-mplt\fR" 4
15877 .IX Item "-mplt"
15878 .PD 0
15879 .IP "\fB\-mno\-plt\fR" 4
15880 .IX Item "-mno-plt"
15881 .PD
15882 Assume (do not assume) that the static and dynamic linkers
15883 support PLTs and copy relocations.  This option only affects
15884 \&\fB\-mno\-shared \-mabicalls\fR.  For the n64 \s-1ABI\s0, this option
15885 has no effect without \fB\-msym32\fR.
15886 .Sp
15887 You can make \fB\-mplt\fR the default by configuring
15888 \&\s-1GCC\s0 with \fB\-\-with\-mips\-plt\fR.  The default is
15889 \&\fB\-mno\-plt\fR otherwise.
15890 .IP "\fB\-mxgot\fR" 4
15891 .IX Item "-mxgot"
15892 .PD 0
15893 .IP "\fB\-mno\-xgot\fR" 4
15894 .IX Item "-mno-xgot"
15895 .PD
15896 Lift (do not lift) the usual restrictions on the size of the global
15897 offset table.
15898 .Sp
15899 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
15900 While this is relatively efficient, it only works if the \s-1GOT\s0
15901 is smaller than about 64k.  Anything larger causes the linker
15902 to report an error such as:
15903 .Sp
15904 .Vb 1
15905 \&        relocation truncated to fit: R_MIPS_GOT16 foobar
15906 .Ve
15907 .Sp
15908 If this happens, you should recompile your code with \fB\-mxgot\fR.
15909 This works with very large GOTs, although the code is also
15910 less efficient, since it takes three instructions to fetch the
15911 value of a global symbol.
15912 .Sp
15913 Note that some linkers can create multiple GOTs.  If you have such a
15914 linker, you should only need to use \fB\-mxgot\fR when a single object
15915 file accesses more than 64k's worth of \s-1GOT\s0 entries.  Very few do.
15916 .Sp
15917 These options have no effect unless \s-1GCC\s0 is generating position
15918 independent code.
15919 .IP "\fB\-mgp32\fR" 4
15920 .IX Item "-mgp32"
15921 Assume that general-purpose registers are 32 bits wide.
15922 .IP "\fB\-mgp64\fR" 4
15923 .IX Item "-mgp64"
15924 Assume that general-purpose registers are 64 bits wide.
15925 .IP "\fB\-mfp32\fR" 4
15926 .IX Item "-mfp32"
15927 Assume that floating-point registers are 32 bits wide.
15928 .IP "\fB\-mfp64\fR" 4
15929 .IX Item "-mfp64"
15930 Assume that floating-point registers are 64 bits wide.
15931 .IP "\fB\-mfpxx\fR" 4
15932 .IX Item "-mfpxx"
15933 Do not assume the width of floating-point registers.
15934 .IP "\fB\-mhard\-float\fR" 4
15935 .IX Item "-mhard-float"
15936 Use floating-point coprocessor instructions.
15937 .IP "\fB\-msoft\-float\fR" 4
15938 .IX Item "-msoft-float"
15939 Do not use floating-point coprocessor instructions.  Implement
15940 floating-point calculations using library calls instead.
15941 .IP "\fB\-mno\-float\fR" 4
15942 .IX Item "-mno-float"
15943 Equivalent to \fB\-msoft\-float\fR, but additionally asserts that the
15944 program being compiled does not perform any floating-point operations.
15945 This option is presently supported only by some bare-metal \s-1MIPS\s0
15946 configurations, where it may select a special set of libraries
15947 that lack all floating-point support (including, for example, the
15948 floating-point \f(CW\*(C`printf\*(C'\fR formats).  
15949 If code compiled with \fB\-mno\-float\fR accidentally contains
15950 floating-point operations, it is likely to suffer a link-time
15951 or run-time failure.
15952 .IP "\fB\-msingle\-float\fR" 4
15953 .IX Item "-msingle-float"
15954 Assume that the floating-point coprocessor only supports single-precision
15955 operations.
15956 .IP "\fB\-mdouble\-float\fR" 4
15957 .IX Item "-mdouble-float"
15958 Assume that the floating-point coprocessor supports double-precision
15959 operations.  This is the default.
15960 .IP "\fB\-modd\-spreg\fR" 4
15961 .IX Item "-modd-spreg"
15962 .PD 0
15963 .IP "\fB\-mno\-odd\-spreg\fR" 4
15964 .IX Item "-mno-odd-spreg"
15965 .PD
15966 Enable the use of odd-numbered single-precision floating-point registers
15967 for the o32 \s-1ABI\s0.  This is the default for processors that are known to
15968 support these registers.  When using the o32 \s-1FPXX\s0 \s-1ABI\s0, \fB\-mno\-odd\-spreg\fR
15969 is set by default.
15970 .IP "\fB\-mabs=2008\fR" 4
15971 .IX Item "-mabs=2008"
15972 .PD 0
15973 .IP "\fB\-mabs=legacy\fR" 4
15974 .IX Item "-mabs=legacy"
15975 .PD
15976 These options control the treatment of the special not-a-number (NaN)
15977 \&\s-1IEEE\s0 754 floating-point data with the \f(CW\*(C`abs.\f(CIfmt\f(CW\*(C'\fR and
15978 \&\f(CW\*(C`neg.\f(CIfmt\f(CW\*(C'\fR machine instructions.
15979 .Sp
15980 By default or when \fB\-mabs=legacy\fR is used the legacy
15981 treatment is selected.  In this case these instructions are considered
15982 arithmetic and avoided where correct operation is required and the
15983 input operand might be a NaN.  A longer sequence of instructions that
15984 manipulate the sign bit of floating-point datum manually is used
15985 instead unless the \fB\-ffinite\-math\-only\fR option has also been
15986 specified.
15987 .Sp
15988 The \fB\-mabs=2008\fR option selects the \s-1IEEE\s0 754\-2008 treatment.  In
15989 this case these instructions are considered non-arithmetic and therefore
15990 operating correctly in all cases, including in particular where the
15991 input operand is a NaN.  These instructions are therefore always used
15992 for the respective operations.
15993 .IP "\fB\-mnan=2008\fR" 4
15994 .IX Item "-mnan=2008"
15995 .PD 0
15996 .IP "\fB\-mnan=legacy\fR" 4
15997 .IX Item "-mnan=legacy"
15998 .PD
15999 These options control the encoding of the special not-a-number (NaN)
16000 \&\s-1IEEE\s0 754 floating-point data.
16001 .Sp
16002 The \fB\-mnan=legacy\fR option selects the legacy encoding.  In this
16003 case quiet NaNs (qNaNs) are denoted by the first bit of their trailing
16004 significand field being 0, whereas signalling NaNs (sNaNs) are denoted
16005 by the first bit of their trailing significand field being 1.
16006 .Sp
16007 The \fB\-mnan=2008\fR option selects the \s-1IEEE\s0 754\-2008 encoding.  In
16008 this case qNaNs are denoted by the first bit of their trailing
16009 significand field being 1, whereas sNaNs are denoted by the first bit of
16010 their trailing significand field being 0.
16011 .Sp
16012 The default is \fB\-mnan=legacy\fR unless \s-1GCC\s0 has been configured with
16013 \&\fB\-\-with\-nan=2008\fR.
16014 .IP "\fB\-mllsc\fR" 4
16015 .IX Item "-mllsc"
16016 .PD 0
16017 .IP "\fB\-mno\-llsc\fR" 4
16018 .IX Item "-mno-llsc"
16019 .PD
16020 Use (do not use) \fBll\fR, \fBsc\fR, and \fBsync\fR instructions to
16021 implement atomic memory built-in functions.  When neither option is
16022 specified, \s-1GCC\s0 uses the instructions if the target architecture
16023 supports them.
16024 .Sp
16025 \&\fB\-mllsc\fR is useful if the runtime environment can emulate the
16026 instructions and \fB\-mno\-llsc\fR can be useful when compiling for
16027 nonstandard ISAs.  You can make either option the default by
16028 configuring \s-1GCC\s0 with \fB\-\-with\-llsc\fR and \fB\-\-without\-llsc\fR
16029 respectively.  \fB\-\-with\-llsc\fR is the default for some
16030 configurations; see the installation documentation for details.
16031 .IP "\fB\-mdsp\fR" 4
16032 .IX Item "-mdsp"
16033 .PD 0
16034 .IP "\fB\-mno\-dsp\fR" 4
16035 .IX Item "-mno-dsp"
16036 .PD
16037 Use (do not use) revision 1 of the \s-1MIPS\s0 \s-1DSP\s0 \s-1ASE\s0.
16038   This option defines the
16039 preprocessor macro \f(CW\*(C`_\|_mips_dsp\*(C'\fR.  It also defines
16040 \&\f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 1.
16041 .IP "\fB\-mdspr2\fR" 4
16042 .IX Item "-mdspr2"
16043 .PD 0
16044 .IP "\fB\-mno\-dspr2\fR" 4
16045 .IX Item "-mno-dspr2"
16046 .PD
16047 Use (do not use) revision 2 of the \s-1MIPS\s0 \s-1DSP\s0 \s-1ASE\s0.
16048   This option defines the
16049 preprocessor macros \f(CW\*(C`_\|_mips_dsp\*(C'\fR and \f(CW\*(C`_\|_mips_dspr2\*(C'\fR.
16050 It also defines \f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 2.
16051 .IP "\fB\-msmartmips\fR" 4
16052 .IX Item "-msmartmips"
16053 .PD 0
16054 .IP "\fB\-mno\-smartmips\fR" 4
16055 .IX Item "-mno-smartmips"
16056 .PD
16057 Use (do not use) the \s-1MIPS\s0 SmartMIPS \s-1ASE\s0.
16058 .IP "\fB\-mpaired\-single\fR" 4
16059 .IX Item "-mpaired-single"
16060 .PD 0
16061 .IP "\fB\-mno\-paired\-single\fR" 4
16062 .IX Item "-mno-paired-single"
16063 .PD
16064 Use (do not use) paired-single floating-point instructions.
16065   This option requires
16066 hardware floating-point support to be enabled.
16067 .IP "\fB\-mdmx\fR" 4
16068 .IX Item "-mdmx"
16069 .PD 0
16070 .IP "\fB\-mno\-mdmx\fR" 4
16071 .IX Item "-mno-mdmx"
16072 .PD
16073 Use (do not use) \s-1MIPS\s0 Digital Media Extension instructions.
16074 This option can only be used when generating 64\-bit code and requires
16075 hardware floating-point support to be enabled.
16076 .IP "\fB\-mips3d\fR" 4
16077 .IX Item "-mips3d"
16078 .PD 0
16079 .IP "\fB\-mno\-mips3d\fR" 4
16080 .IX Item "-mno-mips3d"
16081 .PD
16082 Use (do not use) the \s-1MIPS\-3D\s0 \s-1ASE\s0.  
16083 The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
16084 .IP "\fB\-mmicromips\fR" 4
16085 .IX Item "-mmicromips"
16086 .PD 0
16087 .IP "\fB\-mno\-micromips\fR" 4
16088 .IX Item "-mno-micromips"
16089 .PD
16090 Generate (do not generate) microMIPS code.
16091 .Sp
16092 MicroMIPS code generation can also be controlled on a per-function basis
16093 by means of \f(CW\*(C`micromips\*(C'\fR and \f(CW\*(C`nomicromips\*(C'\fR attributes.
16094 .IP "\fB\-mmt\fR" 4
16095 .IX Item "-mmt"
16096 .PD 0
16097 .IP "\fB\-mno\-mt\fR" 4
16098 .IX Item "-mno-mt"
16099 .PD
16100 Use (do not use) \s-1MT\s0 Multithreading instructions.
16101 .IP "\fB\-mmcu\fR" 4
16102 .IX Item "-mmcu"
16103 .PD 0
16104 .IP "\fB\-mno\-mcu\fR" 4
16105 .IX Item "-mno-mcu"
16106 .PD
16107 Use (do not use) the \s-1MIPS\s0 \s-1MCU\s0 \s-1ASE\s0 instructions.
16108 .IP "\fB\-meva\fR" 4
16109 .IX Item "-meva"
16110 .PD 0
16111 .IP "\fB\-mno\-eva\fR" 4
16112 .IX Item "-mno-eva"
16113 .PD
16114 Use (do not use) the \s-1MIPS\s0 Enhanced Virtual Addressing instructions.
16115 .IP "\fB\-mvirt\fR" 4
16116 .IX Item "-mvirt"
16117 .PD 0
16118 .IP "\fB\-mno\-virt\fR" 4
16119 .IX Item "-mno-virt"
16120 .PD
16121 Use (do not use) the \s-1MIPS\s0 Virtualization Application Specific instructions.
16122 .IP "\fB\-mxpa\fR" 4
16123 .IX Item "-mxpa"
16124 .PD 0
16125 .IP "\fB\-mno\-xpa\fR" 4
16126 .IX Item "-mno-xpa"
16127 .PD
16128 Use (do not use) the \s-1MIPS\s0 eXtended Physical Address (\s-1XPA\s0) instructions.
16129 .IP "\fB\-mlong64\fR" 4
16130 .IX Item "-mlong64"
16131 Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See \fB\-mlong32\fR for
16132 an explanation of the default and the way that the pointer size is
16133 determined.
16134 .IP "\fB\-mlong32\fR" 4
16135 .IX Item "-mlong32"
16136 Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
16137 .Sp
16138 The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
16139 the \s-1ABI\s0.  All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs.  The n64 \s-1ABI\s0
16140 uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
16141 32\-bit \f(CW\*(C`long\*(C'\fRs.  Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
16142 or the same size as integer registers, whichever is smaller.
16143 .IP "\fB\-msym32\fR" 4
16144 .IX Item "-msym32"
16145 .PD 0
16146 .IP "\fB\-mno\-sym32\fR" 4
16147 .IX Item "-mno-sym32"
16148 .PD
16149 Assume (do not assume) that all symbols have 32\-bit values, regardless
16150 of the selected \s-1ABI\s0.  This option is useful in combination with
16151 \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
16152 to generate shorter and faster references to symbolic addresses.
16153 .IP "\fB\-G\fR \fInum\fR" 4
16154 .IX Item "-G num"
16155 Put definitions of externally-visible data in a small data section
16156 if that data is no bigger than \fInum\fR bytes.  \s-1GCC\s0 can then generate
16157 more efficient accesses to the data; see \fB\-mgpopt\fR for details.
16158 .Sp
16159 The default \fB\-G\fR option depends on the configuration.
16160 .IP "\fB\-mlocal\-sdata\fR" 4
16161 .IX Item "-mlocal-sdata"
16162 .PD 0
16163 .IP "\fB\-mno\-local\-sdata\fR" 4
16164 .IX Item "-mno-local-sdata"
16165 .PD
16166 Extend (do not extend) the \fB\-G\fR behavior to local data too,
16167 such as to static variables in C.  \fB\-mlocal\-sdata\fR is the
16168 default for all configurations.
16169 .Sp
16170 If the linker complains that an application is using too much small data,
16171 you might want to try rebuilding the less performance-critical parts with
16172 \&\fB\-mno\-local\-sdata\fR.  You might also want to build large
16173 libraries with \fB\-mno\-local\-sdata\fR, so that the libraries leave
16174 more room for the main program.
16175 .IP "\fB\-mextern\-sdata\fR" 4
16176 .IX Item "-mextern-sdata"
16177 .PD 0
16178 .IP "\fB\-mno\-extern\-sdata\fR" 4
16179 .IX Item "-mno-extern-sdata"
16180 .PD
16181 Assume (do not assume) that externally-defined data is in
16182 a small data section if the size of that data is within the \fB\-G\fR limit.
16183 \&\fB\-mextern\-sdata\fR is the default for all configurations.
16184 .Sp
16185 If you compile a module \fIMod\fR with \fB\-mextern\-sdata\fR \fB\-G\fR
16186 \&\fInum\fR \fB\-mgpopt\fR, and \fIMod\fR references a variable \fIVar\fR
16187 that is no bigger than \fInum\fR bytes, you must make sure that \fIVar\fR
16188 is placed in a small data section.  If \fIVar\fR is defined by another
16189 module, you must either compile that module with a high-enough
16190 \&\fB\-G\fR setting or attach a \f(CW\*(C`section\*(C'\fR attribute to \fIVar\fR's
16191 definition.  If \fIVar\fR is common, you must link the application
16192 with a high-enough \fB\-G\fR setting.
16193 .Sp
16194 The easiest way of satisfying these restrictions is to compile
16195 and link every module with the same \fB\-G\fR option.  However,
16196 you may wish to build a library that supports several different
16197 small data limits.  You can do this by compiling the library with
16198 the highest supported \fB\-G\fR setting and additionally using
16199 \&\fB\-mno\-extern\-sdata\fR to stop the library from making assumptions
16200 about externally-defined data.
16201 .IP "\fB\-mgpopt\fR" 4
16202 .IX Item "-mgpopt"
16203 .PD 0
16204 .IP "\fB\-mno\-gpopt\fR" 4
16205 .IX Item "-mno-gpopt"
16206 .PD
16207 Use (do not use) GP-relative accesses for symbols that are known to be
16208 in a small data section; see \fB\-G\fR, \fB\-mlocal\-sdata\fR and
16209 \&\fB\-mextern\-sdata\fR.  \fB\-mgpopt\fR is the default for all
16210 configurations.
16211 .Sp
16212 \&\fB\-mno\-gpopt\fR is useful for cases where the \f(CW$gp\fR register
16213 might not hold the value of \f(CW\*(C`_gp\*(C'\fR.  For example, if the code is
16214 part of a library that might be used in a boot monitor, programs that
16215 call boot monitor routines pass an unknown value in \f(CW$gp\fR.
16216 (In such situations, the boot monitor itself is usually compiled
16217 with \fB\-G0\fR.)
16218 .Sp
16219 \&\fB\-mno\-gpopt\fR implies \fB\-mno\-local\-sdata\fR and
16220 \&\fB\-mno\-extern\-sdata\fR.
16221 .IP "\fB\-membedded\-data\fR" 4
16222 .IX Item "-membedded-data"
16223 .PD 0
16224 .IP "\fB\-mno\-embedded\-data\fR" 4
16225 .IX Item "-mno-embedded-data"
16226 .PD
16227 Allocate variables to the read-only data section first if possible, then
16228 next in the small data section if possible, otherwise in data.  This gives
16229 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
16230 when executing, and thus may be preferred for some embedded systems.
16231 .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
16232 .IX Item "-muninit-const-in-rodata"
16233 .PD 0
16234 .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
16235 .IX Item "-mno-uninit-const-in-rodata"
16236 .PD
16237 Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
16238 This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
16239 .IP "\fB\-mcode\-readable=\fR\fIsetting\fR" 4
16240 .IX Item "-mcode-readable=setting"
16241 Specify whether \s-1GCC\s0 may generate code that reads from executable sections.
16242 There are three possible settings:
16243 .RS 4
16244 .IP "\fB\-mcode\-readable=yes\fR" 4
16245 .IX Item "-mcode-readable=yes"
16246 Instructions may freely access executable sections.  This is the
16247 default setting.
16248 .IP "\fB\-mcode\-readable=pcrel\fR" 4
16249 .IX Item "-mcode-readable=pcrel"
16250 \&\s-1MIPS16\s0 PC-relative load instructions can access executable sections,
16251 but other instructions must not do so.  This option is useful on 4KSc
16252 and 4KSd processors when the code TLBs have the Read Inhibit bit set.
16253 It is also useful on processors that can be configured to have a dual
16254 instruction/data \s-1SRAM\s0 interface and that, like the M4K, automatically
16255 redirect PC-relative loads to the instruction \s-1RAM\s0.
16256 .IP "\fB\-mcode\-readable=no\fR" 4
16257 .IX Item "-mcode-readable=no"
16258 Instructions must not access executable sections.  This option can be
16259 useful on targets that are configured to have a dual instruction/data
16260 \&\s-1SRAM\s0 interface but that (unlike the M4K) do not automatically redirect
16261 PC-relative loads to the instruction \s-1RAM\s0.
16262 .RE
16263 .RS 4
16264 .RE
16265 .IP "\fB\-msplit\-addresses\fR" 4
16266 .IX Item "-msplit-addresses"
16267 .PD 0
16268 .IP "\fB\-mno\-split\-addresses\fR" 4
16269 .IX Item "-mno-split-addresses"
16270 .PD
16271 Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
16272 relocation operators.  This option has been superseded by
16273 \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
16274 .IP "\fB\-mexplicit\-relocs\fR" 4
16275 .IX Item "-mexplicit-relocs"
16276 .PD 0
16277 .IP "\fB\-mno\-explicit\-relocs\fR" 4
16278 .IX Item "-mno-explicit-relocs"
16279 .PD
16280 Use (do not use) assembler relocation operators when dealing with symbolic
16281 addresses.  The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
16282 is to use assembler macros instead.
16283 .Sp
16284 \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
16285 to use an assembler that supports relocation operators.
16286 .IP "\fB\-mcheck\-zero\-division\fR" 4
16287 .IX Item "-mcheck-zero-division"
16288 .PD 0
16289 .IP "\fB\-mno\-check\-zero\-division\fR" 4
16290 .IX Item "-mno-check-zero-division"
16291 .PD
16292 Trap (do not trap) on integer division by zero.
16293 .Sp
16294 The default is \fB\-mcheck\-zero\-division\fR.
16295 .IP "\fB\-mdivide\-traps\fR" 4
16296 .IX Item "-mdivide-traps"
16297 .PD 0
16298 .IP "\fB\-mdivide\-breaks\fR" 4
16299 .IX Item "-mdivide-breaks"
16300 .PD
16301 \&\s-1MIPS\s0 systems check for division by zero by generating either a
16302 conditional trap or a break instruction.  Using traps results in
16303 smaller code, but is only supported on \s-1MIPS\s0 \s-1II\s0 and later.  Also, some
16304 versions of the Linux kernel have a bug that prevents trap from
16305 generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR).  Use \fB\-mdivide\-traps\fR to
16306 allow conditional traps on architectures that support them and
16307 \&\fB\-mdivide\-breaks\fR to force the use of breaks.
16308 .Sp
16309 The default is usually \fB\-mdivide\-traps\fR, but this can be
16310 overridden at configure time using \fB\-\-with\-divide=breaks\fR.
16311 Divide-by-zero checks can be completely disabled using
16312 \&\fB\-mno\-check\-zero\-division\fR.
16313 .IP "\fB\-mmemcpy\fR" 4
16314 .IX Item "-mmemcpy"
16315 .PD 0
16316 .IP "\fB\-mno\-memcpy\fR" 4
16317 .IX Item "-mno-memcpy"
16318 .PD
16319 Force (do not force) the use of \f(CW\*(C`memcpy\*(C'\fR for non-trivial block
16320 moves.  The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
16321 most constant-sized copies.
16322 .IP "\fB\-mlong\-calls\fR" 4
16323 .IX Item "-mlong-calls"
16324 .PD 0
16325 .IP "\fB\-mno\-long\-calls\fR" 4
16326 .IX Item "-mno-long-calls"
16327 .PD
16328 Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction.  Calling
16329 functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
16330 and callee to be in the same 256 megabyte segment.
16331 .Sp
16332 This option has no effect on abicalls code.  The default is
16333 \&\fB\-mno\-long\-calls\fR.
16334 .IP "\fB\-mmad\fR" 4
16335 .IX Item "-mmad"
16336 .PD 0
16337 .IP "\fB\-mno\-mad\fR" 4
16338 .IX Item "-mno-mad"
16339 .PD
16340 Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
16341 instructions, as provided by the R4650 \s-1ISA\s0.
16342 .IP "\fB\-mimadd\fR" 4
16343 .IX Item "-mimadd"
16344 .PD 0
16345 .IP "\fB\-mno\-imadd\fR" 4
16346 .IX Item "-mno-imadd"
16347 .PD
16348 Enable (disable) use of the \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR integer
16349 instructions.  The default is \fB\-mimadd\fR on architectures
16350 that support \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR except for the 74k 
16351 architecture where it was found to generate slower code.
16352 .IP "\fB\-mfused\-madd\fR" 4
16353 .IX Item "-mfused-madd"
16354 .PD 0
16355 .IP "\fB\-mno\-fused\-madd\fR" 4
16356 .IX Item "-mno-fused-madd"
16357 .PD
16358 Enable (disable) use of the floating-point multiply-accumulate
16359 instructions, when they are available.  The default is
16360 \&\fB\-mfused\-madd\fR.
16361 .Sp
16362 On the R8000 \s-1CPU\s0 when multiply-accumulate instructions are used,
16363 the intermediate product is calculated to infinite precision
16364 and is not subject to the \s-1FCSR\s0 Flush to Zero bit.  This may be
16365 undesirable in some circumstances.  On other processors the result
16366 is numerically identical to the equivalent computation using
16367 separate multiply, add, subtract and negate instructions.
16368 .IP "\fB\-nocpp\fR" 4
16369 .IX Item "-nocpp"
16370 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
16371 assembler files (with a \fB.s\fR suffix) when assembling them.
16372 .IP "\fB\-mfix\-24k\fR" 4
16373 .IX Item "-mfix-24k"
16374 .PD 0
16375 .IP "\fB\-mno\-fix\-24k\fR" 4
16376 .IX Item "-mno-fix-24k"
16377 .PD
16378 Work around the 24K E48 (lost data on stores during refill) errata.
16379 The workarounds are implemented by the assembler rather than by \s-1GCC\s0.
16380 .IP "\fB\-mfix\-r4000\fR" 4
16381 .IX Item "-mfix-r4000"
16382 .PD 0
16383 .IP "\fB\-mno\-fix\-r4000\fR" 4
16384 .IX Item "-mno-fix-r4000"
16385 .PD
16386 Work around certain R4000 \s-1CPU\s0 errata:
16387 .RS 4
16388 .IP "\-" 4
16389 A double-word or a variable shift may give an incorrect result if executed
16390 immediately after starting an integer division.
16391 .IP "\-" 4
16392 A double-word or a variable shift may give an incorrect result if executed
16393 while an integer multiplication is in progress.
16394 .IP "\-" 4
16395 An integer division may give an incorrect result if started in a delay slot
16396 of a taken branch or a jump.
16397 .RE
16398 .RS 4
16399 .RE
16400 .IP "\fB\-mfix\-r4400\fR" 4
16401 .IX Item "-mfix-r4400"
16402 .PD 0
16403 .IP "\fB\-mno\-fix\-r4400\fR" 4
16404 .IX Item "-mno-fix-r4400"
16405 .PD
16406 Work around certain R4400 \s-1CPU\s0 errata:
16407 .RS 4
16408 .IP "\-" 4
16409 A double-word or a variable shift may give an incorrect result if executed
16410 immediately after starting an integer division.
16411 .RE
16412 .RS 4
16413 .RE
16414 .IP "\fB\-mfix\-r10000\fR" 4
16415 .IX Item "-mfix-r10000"
16416 .PD 0
16417 .IP "\fB\-mno\-fix\-r10000\fR" 4
16418 .IX Item "-mno-fix-r10000"
16419 .PD
16420 Work around certain R10000 errata:
16421 .RS 4
16422 .IP "\-" 4
16423 \&\f(CW\*(C`ll\*(C'\fR/\f(CW\*(C`sc\*(C'\fR sequences may not behave atomically on revisions
16424 prior to 3.0.  They may deadlock on revisions 2.6 and earlier.
16425 .RE
16426 .RS 4
16427 .Sp
16428 This option can only be used if the target architecture supports
16429 branch-likely instructions.  \fB\-mfix\-r10000\fR is the default when
16430 \&\fB\-march=r10000\fR is used; \fB\-mno\-fix\-r10000\fR is the default
16431 otherwise.
16432 .RE
16433 .IP "\fB\-mfix\-rm7000\fR" 4
16434 .IX Item "-mfix-rm7000"
16435 .PD 0
16436 .IP "\fB\-mno\-fix\-rm7000\fR" 4
16437 .IX Item "-mno-fix-rm7000"
16438 .PD
16439 Work around the \s-1RM7000\s0 \f(CW\*(C`dmult\*(C'\fR/\f(CW\*(C`dmultu\*(C'\fR errata.  The
16440 workarounds are implemented by the assembler rather than by \s-1GCC\s0.
16441 .IP "\fB\-mfix\-vr4120\fR" 4
16442 .IX Item "-mfix-vr4120"
16443 .PD 0
16444 .IP "\fB\-mno\-fix\-vr4120\fR" 4
16445 .IX Item "-mno-fix-vr4120"
16446 .PD
16447 Work around certain \s-1VR4120\s0 errata:
16448 .RS 4
16449 .IP "\-" 4
16450 \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
16451 .IP "\-" 4
16452 \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
16453 of the operands is negative.
16454 .RE
16455 .RS 4
16456 .Sp
16457 The workarounds for the division errata rely on special functions in
16458 \&\fIlibgcc.a\fR.  At present, these functions are only provided by
16459 the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
16460 .Sp
16461 Other \s-1VR4120\s0 errata require a \s-1NOP\s0 to be inserted between certain pairs of
16462 instructions.  These errata are handled by the assembler, not by \s-1GCC\s0 itself.
16463 .RE
16464 .IP "\fB\-mfix\-vr4130\fR" 4
16465 .IX Item "-mfix-vr4130"
16466 Work around the \s-1VR4130\s0 \f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata.  The
16467 workarounds are implemented by the assembler rather than by \s-1GCC\s0,
16468 although \s-1GCC\s0 avoids using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
16469 \&\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
16470 instructions are available instead.
16471 .IP "\fB\-mfix\-sb1\fR" 4
16472 .IX Item "-mfix-sb1"
16473 .PD 0
16474 .IP "\fB\-mno\-fix\-sb1\fR" 4
16475 .IX Item "-mno-fix-sb1"
16476 .PD
16477 Work around certain \s-1SB\-1\s0 \s-1CPU\s0 core errata.
16478 (This flag currently works around the \s-1SB\-1\s0 revision 2
16479 \&\*(L"F1\*(R" and \*(L"F2\*(R" floating-point errata.)
16480 .IP "\fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR" 4
16481 .IX Item "-mr10k-cache-barrier=setting"
16482 Specify whether \s-1GCC\s0 should insert cache barriers to avoid the
16483 side-effects of speculation on R10K processors.
16484 .Sp
16485 In common with many processors, the R10K tries to predict the outcome
16486 of a conditional branch and speculatively executes instructions from
16487 the \*(L"taken\*(R" branch.  It later aborts these instructions if the
16488 predicted outcome is wrong.  However, on the R10K, even aborted
16489 instructions can have side effects.
16490 .Sp
16491 This problem only affects kernel stores and, depending on the system,
16492 kernel loads.  As an example, a speculatively-executed store may load
16493 the target memory into cache and mark the cache line as dirty, even if
16494 the store itself is later aborted.  If a \s-1DMA\s0 operation writes to the
16495 same area of memory before the \*(L"dirty\*(R" line is flushed, the cached
16496 data overwrites the DMA-ed data.  See the R10K processor manual
16497 for a full description, including other potential problems.
16498 .Sp
16499 One workaround is to insert cache barrier instructions before every memory
16500 access that might be speculatively executed and that might have side
16501 effects even if aborted.  \fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR
16502 controls \s-1GCC\s0's implementation of this workaround.  It assumes that
16503 aborted accesses to any byte in the following regions does not have
16504 side effects:
16505 .RS 4
16506 .IP "1." 4
16507 .IX Item "1."
16508 the memory occupied by the current function's stack frame;
16509 .IP "2." 4
16510 .IX Item "2."
16511 the memory occupied by an incoming stack argument;
16512 .IP "3." 4
16513 .IX Item "3."
16514 the memory occupied by an object with a link-time-constant address.
16515 .RE
16516 .RS 4
16517 .Sp
16518 It is the kernel's responsibility to ensure that speculative
16519 accesses to these regions are indeed safe.
16520 .Sp
16521 If the input program contains a function declaration such as:
16522 .Sp
16523 .Vb 1
16524 \&        void foo (void);
16525 .Ve
16526 .Sp
16527 then the implementation of \f(CW\*(C`foo\*(C'\fR must allow \f(CW\*(C`j foo\*(C'\fR and
16528 \&\f(CW\*(C`jal foo\*(C'\fR to be executed speculatively.  \s-1GCC\s0 honors this
16529 restriction for functions it compiles itself.  It expects non-GCC
16530 functions (such as hand-written assembly code) to do the same.
16531 .Sp
16532 The option has three forms:
16533 .IP "\fB\-mr10k\-cache\-barrier=load\-store\fR" 4
16534 .IX Item "-mr10k-cache-barrier=load-store"
16535 Insert a cache barrier before a load or store that might be
16536 speculatively executed and that might have side effects even
16537 if aborted.
16538 .IP "\fB\-mr10k\-cache\-barrier=store\fR" 4
16539 .IX Item "-mr10k-cache-barrier=store"
16540 Insert a cache barrier before a store that might be speculatively
16541 executed and that might have side effects even if aborted.
16542 .IP "\fB\-mr10k\-cache\-barrier=none\fR" 4
16543 .IX Item "-mr10k-cache-barrier=none"
16544 Disable the insertion of cache barriers.  This is the default setting.
16545 .RE
16546 .RS 4
16547 .RE
16548 .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
16549 .IX Item "-mflush-func=func"
16550 .PD 0
16551 .IP "\fB\-mno\-flush\-func\fR" 4
16552 .IX Item "-mno-flush-func"
16553 .PD
16554 Specifies the function to call to flush the I and D caches, or to not
16555 call any such function.  If called, the function must take the same
16556 arguments as the common \f(CW\*(C`_flush_func\*(C'\fR, that is, the address of the
16557 memory range for which the cache is being flushed, the size of the
16558 memory range, and the number 3 (to flush both caches).  The default
16559 depends on the target \s-1GCC\s0 was configured for, but commonly is either
16560 \&\f(CW\*(C`_flush_func\*(C'\fR or \f(CW\*(C`_\|_cpu_flush\*(C'\fR.
16561 .IP "\fBmbranch\-cost=\fR\fInum\fR" 4
16562 .IX Item "mbranch-cost=num"
16563 Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
16564 This cost is only a heuristic and is not guaranteed to produce
16565 consistent results across releases.  A zero cost redundantly selects
16566 the default, which is based on the \fB\-mtune\fR setting.
16567 .IP "\fB\-mbranch\-likely\fR" 4
16568 .IX Item "-mbranch-likely"
16569 .PD 0
16570 .IP "\fB\-mno\-branch\-likely\fR" 4
16571 .IX Item "-mno-branch-likely"
16572 .PD
16573 Enable or disable use of Branch Likely instructions, regardless of the
16574 default for the selected architecture.  By default, Branch Likely
16575 instructions may be generated if they are supported by the selected
16576 architecture.  An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
16577 and processors that implement those architectures; for those, Branch
16578 Likely instructions are not be generated by default because the \s-1MIPS32\s0
16579 and \s-1MIPS64\s0 architectures specifically deprecate their use.
16580 .IP "\fB\-mfp\-exceptions\fR" 4
16581 .IX Item "-mfp-exceptions"
16582 .PD 0
16583 .IP "\fB\-mno\-fp\-exceptions\fR" 4
16584 .IX Item "-mno-fp-exceptions"
16585 .PD
16586 Specifies whether \s-1FP\s0 exceptions are enabled.  This affects how
16587 \&\s-1FP\s0 instructions are scheduled for some processors.
16588 The default is that \s-1FP\s0 exceptions are
16589 enabled.
16590 .Sp
16591 For instance, on the \s-1SB\-1\s0, if \s-1FP\s0 exceptions are disabled, and we are emitting
16592 64\-bit code, then we can use both \s-1FP\s0 pipes.  Otherwise, we can only use one
16593 \&\s-1FP\s0 pipe.
16594 .IP "\fB\-mvr4130\-align\fR" 4
16595 .IX Item "-mvr4130-align"
16596 .PD 0
16597 .IP "\fB\-mno\-vr4130\-align\fR" 4
16598 .IX Item "-mno-vr4130-align"
16599 .PD
16600 The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
16601 instructions together if the first one is 8\-byte aligned.  When this
16602 option is enabled, \s-1GCC\s0 aligns pairs of instructions that it
16603 thinks should execute in parallel.
16604 .Sp
16605 This option only has an effect when optimizing for the \s-1VR4130\s0.
16606 It normally makes code faster, but at the expense of making it bigger.
16607 It is enabled by default at optimization level \fB\-O3\fR.
16608 .IP "\fB\-msynci\fR" 4
16609 .IX Item "-msynci"
16610 .PD 0
16611 .IP "\fB\-mno\-synci\fR" 4
16612 .IX Item "-mno-synci"
16613 .PD
16614 Enable (disable) generation of \f(CW\*(C`synci\*(C'\fR instructions on
16615 architectures that support it.  The \f(CW\*(C`synci\*(C'\fR instructions (if
16616 enabled) are generated when \f(CW\*(C`_\|_builtin_\|_\|_clear_cache\*(C'\fR is
16617 compiled.
16618 .Sp
16619 This option defaults to \fB\-mno\-synci\fR, but the default can be
16620 overridden by configuring \s-1GCC\s0 with \fB\-\-with\-synci\fR.
16621 .Sp
16622 When compiling code for single processor systems, it is generally safe
16623 to use \f(CW\*(C`synci\*(C'\fR.  However, on many multi-core (\s-1SMP\s0) systems, it
16624 does not invalidate the instruction caches on all cores and may lead
16625 to undefined behavior.
16626 .IP "\fB\-mrelax\-pic\-calls\fR" 4
16627 .IX Item "-mrelax-pic-calls"
16628 .PD 0
16629 .IP "\fB\-mno\-relax\-pic\-calls\fR" 4
16630 .IX Item "-mno-relax-pic-calls"
16631 .PD
16632 Try to turn \s-1PIC\s0 calls that are normally dispatched via register
16633 \&\f(CW$25\fR into direct calls.  This is only possible if the linker can
16634 resolve the destination at link-time and if the destination is within
16635 range for a direct call.
16636 .Sp
16637 \&\fB\-mrelax\-pic\-calls\fR is the default if \s-1GCC\s0 was configured to use
16638 an assembler and a linker that support the \f(CW\*(C`.reloc\*(C'\fR assembly
16639 directive and \fB\-mexplicit\-relocs\fR is in effect.  With
16640 \&\fB\-mno\-explicit\-relocs\fR, this optimization can be performed by the
16641 assembler and the linker alone without help from the compiler.
16642 .IP "\fB\-mmcount\-ra\-address\fR" 4
16643 .IX Item "-mmcount-ra-address"
16644 .PD 0
16645 .IP "\fB\-mno\-mcount\-ra\-address\fR" 4
16646 .IX Item "-mno-mcount-ra-address"
16647 .PD
16648 Emit (do not emit) code that allows \f(CW\*(C`_mcount\*(C'\fR to modify the
16649 calling function's return address.  When enabled, this option extends
16650 the usual \f(CW\*(C`_mcount\*(C'\fR interface with a new \fIra-address\fR
16651 parameter, which has type \f(CW\*(C`intptr_t *\*(C'\fR and is passed in register
16652 \&\f(CW$12\fR.  \f(CW\*(C`_mcount\*(C'\fR can then modify the return address by
16653 doing both of the following:
16654 .RS 4
16655 .IP "*" 4
16656 Returning the new address in register \f(CW$31\fR.
16657 .IP "*" 4
16658 Storing the new address in \f(CW\*(C`*\f(CIra\-address\f(CW\*(C'\fR,
16659 if \fIra-address\fR is nonnull.
16660 .RE
16661 .RS 4
16662 .Sp
16663 The default is \fB\-mno\-mcount\-ra\-address\fR.
16664 .RE
16665 .PP
16666 \fI\s-1MMIX\s0 Options\fR
16667 .IX Subsection "MMIX Options"
16668 .PP
16669 These options are defined for the \s-1MMIX:\s0
16670 .IP "\fB\-mlibfuncs\fR" 4
16671 .IX Item "-mlibfuncs"
16672 .PD 0
16673 .IP "\fB\-mno\-libfuncs\fR" 4
16674 .IX Item "-mno-libfuncs"
16675 .PD
16676 Specify that intrinsic library functions are being compiled, passing all
16677 values in registers, no matter the size.
16678 .IP "\fB\-mepsilon\fR" 4
16679 .IX Item "-mepsilon"
16680 .PD 0
16681 .IP "\fB\-mno\-epsilon\fR" 4
16682 .IX Item "-mno-epsilon"
16683 .PD
16684 Generate floating-point comparison instructions that compare with respect
16685 to the \f(CW\*(C`rE\*(C'\fR epsilon register.
16686 .IP "\fB\-mabi=mmixware\fR" 4
16687 .IX Item "-mabi=mmixware"
16688 .PD 0
16689 .IP "\fB\-mabi=gnu\fR" 4
16690 .IX Item "-mabi=gnu"
16691 .PD
16692 Generate code that passes function parameters and return values that (in
16693 the called function) are seen as registers \f(CW$0\fR and up, as opposed to
16694 the \s-1GNU\s0 \s-1ABI\s0 which uses global registers \f(CW$231\fR and up.
16695 .IP "\fB\-mzero\-extend\fR" 4
16696 .IX Item "-mzero-extend"
16697 .PD 0
16698 .IP "\fB\-mno\-zero\-extend\fR" 4
16699 .IX Item "-mno-zero-extend"
16700 .PD
16701 When reading data from memory in sizes shorter than 64 bits, use (do not
16702 use) zero-extending load instructions by default, rather than
16703 sign-extending ones.
16704 .IP "\fB\-mknuthdiv\fR" 4
16705 .IX Item "-mknuthdiv"
16706 .PD 0
16707 .IP "\fB\-mno\-knuthdiv\fR" 4
16708 .IX Item "-mno-knuthdiv"
16709 .PD
16710 Make the result of a division yielding a remainder have the same sign as
16711 the divisor.  With the default, \fB\-mno\-knuthdiv\fR, the sign of the
16712 remainder follows the sign of the dividend.  Both methods are
16713 arithmetically valid, the latter being almost exclusively used.
16714 .IP "\fB\-mtoplevel\-symbols\fR" 4
16715 .IX Item "-mtoplevel-symbols"
16716 .PD 0
16717 .IP "\fB\-mno\-toplevel\-symbols\fR" 4
16718 .IX Item "-mno-toplevel-symbols"
16719 .PD
16720 Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
16721 code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
16722 .IP "\fB\-melf\fR" 4
16723 .IX Item "-melf"
16724 Generate an executable in the \s-1ELF\s0 format, rather than the default
16725 \&\fBmmo\fR format used by the \fBmmix\fR simulator.
16726 .IP "\fB\-mbranch\-predict\fR" 4
16727 .IX Item "-mbranch-predict"
16728 .PD 0
16729 .IP "\fB\-mno\-branch\-predict\fR" 4
16730 .IX Item "-mno-branch-predict"
16731 .PD
16732 Use (do not use) the probable-branch instructions, when static branch
16733 prediction indicates a probable branch.
16734 .IP "\fB\-mbase\-addresses\fR" 4
16735 .IX Item "-mbase-addresses"
16736 .PD 0
16737 .IP "\fB\-mno\-base\-addresses\fR" 4
16738 .IX Item "-mno-base-addresses"
16739 .PD
16740 Generate (do not generate) code that uses \fIbase addresses\fR.  Using a
16741 base address automatically generates a request (handled by the assembler
16742 and the linker) for a constant to be set up in a global register.  The
16743 register is used for one or more base address requests within the range 0
16744 to 255 from the value held in the register.  The generally leads to short
16745 and fast code, but the number of different data items that can be
16746 addressed is limited.  This means that a program that uses lots of static
16747 data may require \fB\-mno\-base\-addresses\fR.
16748 .IP "\fB\-msingle\-exit\fR" 4
16749 .IX Item "-msingle-exit"
16750 .PD 0
16751 .IP "\fB\-mno\-single\-exit\fR" 4
16752 .IX Item "-mno-single-exit"
16753 .PD
16754 Force (do not force) generated code to have a single exit point in each
16755 function.
16756 .PP
16757 \fI\s-1MN10300\s0 Options\fR
16758 .IX Subsection "MN10300 Options"
16759 .PP
16760 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
16761 .IP "\fB\-mmult\-bug\fR" 4
16762 .IX Item "-mmult-bug"
16763 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
16764 processors.  This is the default.
16765 .IP "\fB\-mno\-mult\-bug\fR" 4
16766 .IX Item "-mno-mult-bug"
16767 Do not generate code to avoid bugs in the multiply instructions for the
16768 \&\s-1MN10300\s0 processors.
16769 .IP "\fB\-mam33\fR" 4
16770 .IX Item "-mam33"
16771 Generate code using features specific to the \s-1AM33\s0 processor.
16772 .IP "\fB\-mno\-am33\fR" 4
16773 .IX Item "-mno-am33"
16774 Do not generate code using features specific to the \s-1AM33\s0 processor.  This
16775 is the default.
16776 .IP "\fB\-mam33\-2\fR" 4
16777 .IX Item "-mam33-2"
16778 Generate code using features specific to the \s-1AM33/2\s0.0 processor.
16779 .IP "\fB\-mam34\fR" 4
16780 .IX Item "-mam34"
16781 Generate code using features specific to the \s-1AM34\s0 processor.
16782 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
16783 .IX Item "-mtune=cpu-type"
16784 Use the timing characteristics of the indicated \s-1CPU\s0 type when
16785 scheduling instructions.  This does not change the targeted processor
16786 type.  The \s-1CPU\s0 type must be one of \fBmn10300\fR, \fBam33\fR,
16787 \&\fBam33\-2\fR or \fBam34\fR.
16788 .IP "\fB\-mreturn\-pointer\-on\-d0\fR" 4
16789 .IX Item "-mreturn-pointer-on-d0"
16790 When generating a function that returns a pointer, return the pointer
16791 in both \f(CW\*(C`a0\*(C'\fR and \f(CW\*(C`d0\*(C'\fR.  Otherwise, the pointer is returned
16792 only in \f(CW\*(C`a0\*(C'\fR, and attempts to call such functions without a prototype
16793 result in errors.  Note that this option is on by default; use
16794 \&\fB\-mno\-return\-pointer\-on\-d0\fR to disable it.
16795 .IP "\fB\-mno\-crt0\fR" 4
16796 .IX Item "-mno-crt0"
16797 Do not link in the C run-time initialization object file.
16798 .IP "\fB\-mrelax\fR" 4
16799 .IX Item "-mrelax"
16800 Indicate to the linker that it should perform a relaxation optimization pass
16801 to shorten branches, calls and absolute memory addresses.  This option only
16802 has an effect when used on the command line for the final link step.
16803 .Sp
16804 This option makes symbolic debugging impossible.
16805 .IP "\fB\-mliw\fR" 4
16806 .IX Item "-mliw"
16807 Allow the compiler to generate \fILong Instruction Word\fR
16808 instructions if the target is the \fB\s-1AM33\s0\fR or later.  This is the
16809 default.  This option defines the preprocessor macro \f(CW\*(C`_\|_LIW_\|_\*(C'\fR.
16810 .IP "\fB\-mnoliw\fR" 4
16811 .IX Item "-mnoliw"
16812 Do not allow the compiler to generate \fILong Instruction Word\fR
16813 instructions.  This option defines the preprocessor macro
16814 \&\f(CW\*(C`_\|_NO_LIW_\|_\*(C'\fR.
16815 .IP "\fB\-msetlb\fR" 4
16816 .IX Item "-msetlb"
16817 Allow the compiler to generate the \fI\s-1SETLB\s0\fR and \fILcc\fR
16818 instructions if the target is the \fB\s-1AM33\s0\fR or later.  This is the
16819 default.  This option defines the preprocessor macro \f(CW\*(C`_\|_SETLB_\|_\*(C'\fR.
16820 .IP "\fB\-mnosetlb\fR" 4
16821 .IX Item "-mnosetlb"
16822 Do not allow the compiler to generate \fI\s-1SETLB\s0\fR or \fILcc\fR
16823 instructions.  This option defines the preprocessor macro
16824 \&\f(CW\*(C`_\|_NO_SETLB_\|_\*(C'\fR.
16825 .PP
16826 \fIMoxie Options\fR
16827 .IX Subsection "Moxie Options"
16828 .IP "\fB\-meb\fR" 4
16829 .IX Item "-meb"
16830 Generate big-endian code.  This is the default for \fBmoxie\-*\-*\fR
16831 configurations.
16832 .IP "\fB\-mel\fR" 4
16833 .IX Item "-mel"
16834 Generate little-endian code.
16835 .IP "\fB\-mmul.x\fR" 4
16836 .IX Item "-mmul.x"
16837 Generate mul.x and umul.x instructions.  This is the default for
16838 \&\fBmoxiebox\-*\-*\fR configurations.
16839 .IP "\fB\-mno\-crt0\fR" 4
16840 .IX Item "-mno-crt0"
16841 Do not link in the C run-time initialization object file.
16842 .PP
16843 \fI\s-1MSP430\s0 Options\fR
16844 .IX Subsection "MSP430 Options"
16845 .PP
16846 These options are defined for the \s-1MSP430:\s0
16847 .IP "\fB\-masm\-hex\fR" 4
16848 .IX Item "-masm-hex"
16849 Force assembly output to always use hex constants.  Normally such
16850 constants are signed decimals, but this option is available for
16851 testsuite and/or aesthetic purposes.
16852 .IP "\fB\-mmcu=\fR" 4
16853 .IX Item "-mmcu="
16854 Select the \s-1MCU\s0 to target.  This is used to create a C preprocessor
16855 symbol based upon the \s-1MCU\s0 name, converted to upper case and pre\- and
16856 post-fixed with \fB_\|_\fR.  This in turn is used by the
16857 \&\fImsp430.h\fR header file to select an MCU-specific supplementary
16858 header file.
16859 .Sp
16860 The option also sets the \s-1ISA\s0 to use.  If the \s-1MCU\s0 name is one that is
16861 known to only support the 430 \s-1ISA\s0 then that is selected, otherwise the
16862 430X \s-1ISA\s0 is selected.  A generic \s-1MCU\s0 name of \fBmsp430\fR can also be
16863 used to select the 430 \s-1ISA\s0.  Similarly the generic \fBmsp430x\fR \s-1MCU\s0
16864 name selects the 430X \s-1ISA\s0.
16865 .Sp
16866 In addition an MCU-specific linker script is added to the linker
16867 command line.  The script's name is the name of the \s-1MCU\s0 with
16868 \&\fI.ld\fR appended.  Thus specifying \fB\-mmcu=xxx\fR on the \fBgcc\fR
16869 command line defines the C preprocessor symbol \f(CW\*(C`_\|_XXX_\|_\*(C'\fR and
16870 cause the linker to search for a script called \fIxxx.ld\fR.
16871 .Sp
16872 This option is also passed on to the assembler.
16873 .IP "\fB\-mcpu=\fR" 4
16874 .IX Item "-mcpu="
16875 Specifies the \s-1ISA\s0 to use.  Accepted values are \fBmsp430\fR,
16876 \&\fBmsp430x\fR and \fBmsp430xv2\fR.  This option is deprecated.  The
16877 \&\fB\-mmcu=\fR option should be used to select the \s-1ISA\s0.
16878 .IP "\fB\-msim\fR" 4
16879 .IX Item "-msim"
16880 Link to the simulator runtime libraries and linker script.  Overrides
16881 any scripts that would be selected by the \fB\-mmcu=\fR option.
16882 .IP "\fB\-mlarge\fR" 4
16883 .IX Item "-mlarge"
16884 Use large-model addressing (20\-bit pointers, 32\-bit \f(CW\*(C`size_t\*(C'\fR).
16885 .IP "\fB\-msmall\fR" 4
16886 .IX Item "-msmall"
16887 Use small-model addressing (16\-bit pointers, 16\-bit \f(CW\*(C`size_t\*(C'\fR).
16888 .IP "\fB\-mrelax\fR" 4
16889 .IX Item "-mrelax"
16890 This option is passed to the assembler and linker, and allows the
16891 linker to perform certain optimizations that cannot be done until
16892 the final link.
16893 .IP "\fBmhwmult=\fR" 4
16894 .IX Item "mhwmult="
16895 Describes the type of hardware multiply supported by the target.
16896 Accepted values are \fBnone\fR for no hardware multiply, \fB16bit\fR
16897 for the original 16\-bit\-only multiply supported by early MCUs.
16898 \&\fB32bit\fR for the 16/32\-bit multiply supported by later MCUs and
16899 \&\fBf5series\fR for the 16/32\-bit multiply supported by F5\-series MCUs.
16900 A value of \fBauto\fR can also be given.  This tells \s-1GCC\s0 to deduce
16901 the hardware multiply support based upon the \s-1MCU\s0 name provided by the
16902 \&\fB\-mmcu\fR option.  If no \fB\-mmcu\fR option is specified then
16903 \&\fB32bit\fR hardware multiply support is assumed.  \fBauto\fR is the
16904 default setting.
16905 .Sp
16906 Hardware multiplies are normally performed by calling a library
16907 routine.  This saves space in the generated code.  When compiling at
16908 \&\fB\-O3\fR or higher however the hardware multiplier is invoked
16909 inline.  This makes for bigger, but faster code.
16910 .Sp
16911 The hardware multiply routines disable interrupts whilst running and
16912 restore the previous interrupt state when they finish.  This makes
16913 them safe to use inside interrupt handlers as well as in normal code.
16914 .IP "\fB\-minrt\fR" 4
16915 .IX Item "-minrt"
16916 Enable the use of a minimum runtime environment \- no static
16917 initializers or constructors.  This is intended for memory-constrained
16918 devices.  The compiler includes special symbols in some objects
16919 that tell the linker and runtime which code fragments are required.
16920 .PP
16921 \fI\s-1NDS32\s0 Options\fR
16922 .IX Subsection "NDS32 Options"
16923 .PP
16924 These options are defined for \s-1NDS32\s0 implementations:
16925 .IP "\fB\-mbig\-endian\fR" 4
16926 .IX Item "-mbig-endian"
16927 Generate code in big-endian mode.
16928 .IP "\fB\-mlittle\-endian\fR" 4
16929 .IX Item "-mlittle-endian"
16930 Generate code in little-endian mode.
16931 .IP "\fB\-mreduced\-regs\fR" 4
16932 .IX Item "-mreduced-regs"
16933 Use reduced-set registers for register allocation.
16934 .IP "\fB\-mfull\-regs\fR" 4
16935 .IX Item "-mfull-regs"
16936 Use full-set registers for register allocation.
16937 .IP "\fB\-mcmov\fR" 4
16938 .IX Item "-mcmov"
16939 Generate conditional move instructions.
16940 .IP "\fB\-mno\-cmov\fR" 4
16941 .IX Item "-mno-cmov"
16942 Do not generate conditional move instructions.
16943 .IP "\fB\-mperf\-ext\fR" 4
16944 .IX Item "-mperf-ext"
16945 Generate performance extension instructions.
16946 .IP "\fB\-mno\-perf\-ext\fR" 4
16947 .IX Item "-mno-perf-ext"
16948 Do not generate performance extension instructions.
16949 .IP "\fB\-mv3push\fR" 4
16950 .IX Item "-mv3push"
16951 Generate v3 push25/pop25 instructions.
16952 .IP "\fB\-mno\-v3push\fR" 4
16953 .IX Item "-mno-v3push"
16954 Do not generate v3 push25/pop25 instructions.
16955 .IP "\fB\-m16\-bit\fR" 4
16956 .IX Item "-m16-bit"
16957 Generate 16\-bit instructions.
16958 .IP "\fB\-mno\-16\-bit\fR" 4
16959 .IX Item "-mno-16-bit"
16960 Do not generate 16\-bit instructions.
16961 .IP "\fB\-misr\-vector\-size=\fR\fInum\fR" 4
16962 .IX Item "-misr-vector-size=num"
16963 Specify the size of each interrupt vector, which must be 4 or 16.
16964 .IP "\fB\-mcache\-block\-size=\fR\fInum\fR" 4
16965 .IX Item "-mcache-block-size=num"
16966 Specify the size of each cache block,
16967 which must be a power of 2 between 4 and 512.
16968 .IP "\fB\-march=\fR\fIarch\fR" 4
16969 .IX Item "-march=arch"
16970 Specify the name of the target architecture.
16971 .IP "\fB\-mcmodel=\fR\fIcode-model\fR" 4
16972 .IX Item "-mcmodel=code-model"
16973 Set the code model to one of
16974 .RS 4
16975 .IP "\fBsmall\fR" 4
16976 .IX Item "small"
16977 All the data and read-only data segments must be within 512KB addressing space.
16978 The text segment must be within 16MB addressing space.
16979 .IP "\fBmedium\fR" 4
16980 .IX Item "medium"
16981 The data segment must be within 512KB while the read-only data segment can be
16982 within 4GB addressing space.  The text segment should be still within 16MB
16983 addressing space.
16984 .IP "\fBlarge\fR" 4
16985 .IX Item "large"
16986 All the text and data segments can be within 4GB addressing space.
16987 .RE
16988 .RS 4
16989 .RE
16990 .IP "\fB\-mctor\-dtor\fR" 4
16991 .IX Item "-mctor-dtor"
16992 Enable constructor/destructor feature.
16993 .IP "\fB\-mrelax\fR" 4
16994 .IX Item "-mrelax"
16995 Guide linker to relax instructions.
16996 .PP
16997 \fINios \s-1II\s0 Options\fR
16998 .IX Subsection "Nios II Options"
16999 .PP
17000 These are the options defined for the Altera Nios \s-1II\s0 processor.
17001 .IP "\fB\-G\fR \fInum\fR" 4
17002 .IX Item "-G num"
17003 Put global and static objects less than or equal to \fInum\fR bytes
17004 into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
17005 sections.  The default value of \fInum\fR is 8.
17006 .IP "\fB\-mgpopt=\fR\fIoption\fR" 4
17007 .IX Item "-mgpopt=option"
17008 .PD 0
17009 .IP "\fB\-mgpopt\fR" 4
17010 .IX Item "-mgpopt"
17011 .IP "\fB\-mno\-gpopt\fR" 4
17012 .IX Item "-mno-gpopt"
17013 .PD
17014 Generate (do not generate) GP-relative accesses.  The following 
17015 \&\fIoption\fR names are recognized:
17016 .RS 4
17017 .IP "\fBnone\fR" 4
17018 .IX Item "none"
17019 Do not generate GP-relative accesses.
17020 .IP "\fBlocal\fR" 4
17021 .IX Item "local"
17022 Generate GP-relative accesses for small data objects that are not 
17023 external or weak.  Also use GP-relative addressing for objects that
17024 have been explicitly placed in a small data section via a \f(CW\*(C`section\*(C'\fR
17025 attribute.
17026 .IP "\fBglobal\fR" 4
17027 .IX Item "global"
17028 As for \fBlocal\fR, but also generate GP-relative accesses for
17029 small data objects that are external or weak.  If you use this option,
17030 you must ensure that all parts of your program (including libraries) are
17031 compiled with the same \fB\-G\fR setting.
17032 .IP "\fBdata\fR" 4
17033 .IX Item "data"
17034 Generate GP-relative accesses for all data objects in the program.  If you
17035 use this option, the entire data and \s-1BSS\s0 segments
17036 of your program must fit in 64K of memory and you must use an appropriate
17037 linker script to allocate them within the addressible range of the
17038 global pointer.
17039 .IP "\fBall\fR" 4
17040 .IX Item "all"
17041 Generate GP-relative addresses for function pointers as well as data
17042 pointers.  If you use this option, the entire text, data, and \s-1BSS\s0 segments
17043 of your program must fit in 64K of memory and you must use an appropriate
17044 linker script to allocate them within the addressible range of the
17045 global pointer.
17046 .RE
17047 .RS 4
17048 .Sp
17049 \&\fB\-mgpopt\fR is equivalent to \fB\-mgpopt=local\fR, and
17050 \&\fB\-mno\-gpopt\fR is equivalent to \fB\-mgpopt=none\fR.
17051 .Sp
17052 The default is \fB\-mgpopt\fR except when \fB\-fpic\fR or
17053 \&\fB\-fPIC\fR is specified to generate position-independent code.
17054 Note that the Nios \s-1II\s0 \s-1ABI\s0 does not permit GP-relative accesses from
17055 shared libraries.
17056 .Sp
17057 You may need to specify \fB\-mno\-gpopt\fR explicitly when building
17058 programs that include large amounts of small data, including large
17059 \&\s-1GOT\s0 data sections.  In this case, the 16\-bit offset for GP-relative
17060 addressing may not be large enough to allow access to the entire 
17061 small data section.
17062 .RE
17063 .IP "\fB\-mel\fR" 4
17064 .IX Item "-mel"
17065 .PD 0
17066 .IP "\fB\-meb\fR" 4
17067 .IX Item "-meb"
17068 .PD
17069 Generate little-endian (default) or big-endian (experimental) code,
17070 respectively.
17071 .IP "\fB\-mbypass\-cache\fR" 4
17072 .IX Item "-mbypass-cache"
17073 .PD 0
17074 .IP "\fB\-mno\-bypass\-cache\fR" 4
17075 .IX Item "-mno-bypass-cache"
17076 .PD
17077 Force all load and store instructions to always bypass cache by 
17078 using I/O variants of the instructions. The default is not to
17079 bypass the cache.
17080 .IP "\fB\-mno\-cache\-volatile\fR" 4
17081 .IX Item "-mno-cache-volatile"
17082 .PD 0
17083 .IP "\fB\-mcache\-volatile\fR" 4
17084 .IX Item "-mcache-volatile"
17085 .PD
17086 Volatile memory access bypass the cache using the I/O variants of 
17087 the load and store instructions. The default is not to bypass the cache.
17088 .IP "\fB\-mno\-fast\-sw\-div\fR" 4
17089 .IX Item "-mno-fast-sw-div"
17090 .PD 0
17091 .IP "\fB\-mfast\-sw\-div\fR" 4
17092 .IX Item "-mfast-sw-div"
17093 .PD
17094 Do not use table-based fast divide for small numbers. The default 
17095 is to use the fast divide at \fB\-O3\fR and above.
17096 .IP "\fB\-mno\-hw\-mul\fR" 4
17097 .IX Item "-mno-hw-mul"
17098 .PD 0
17099 .IP "\fB\-mhw\-mul\fR" 4
17100 .IX Item "-mhw-mul"
17101 .IP "\fB\-mno\-hw\-mulx\fR" 4
17102 .IX Item "-mno-hw-mulx"
17103 .IP "\fB\-mhw\-mulx\fR" 4
17104 .IX Item "-mhw-mulx"
17105 .IP "\fB\-mno\-hw\-div\fR" 4
17106 .IX Item "-mno-hw-div"
17107 .IP "\fB\-mhw\-div\fR" 4
17108 .IX Item "-mhw-div"
17109 .PD
17110 Enable or disable emitting \f(CW\*(C`mul\*(C'\fR, \f(CW\*(C`mulx\*(C'\fR and \f(CW\*(C`div\*(C'\fR family of 
17111 instructions by the compiler. The default is to emit \f(CW\*(C`mul\*(C'\fR
17112 and not emit \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`mulx\*(C'\fR.
17113 .IP "\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR" 4
17114 .IX Item "-mcustom-insn=N"
17115 .PD 0
17116 .IP "\fB\-mno\-custom\-\fR\fIinsn\fR" 4
17117 .IX Item "-mno-custom-insn"
17118 .PD
17119 Each \fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR option enables use of a
17120 custom instruction with encoding \fIN\fR when generating code that uses 
17121 \&\fIinsn\fR.  For example, \fB\-mcustom\-fadds=253\fR generates custom
17122 instruction 253 for single-precision floating-point add operations instead
17123 of the default behavior of using a library call.
17124 .Sp
17125 The following values of \fIinsn\fR are supported.  Except as otherwise
17126 noted, floating-point operations are expected to be implemented with
17127 normal \s-1IEEE\s0 754 semantics and correspond directly to the C operators or the
17128 equivalent \s-1GCC\s0 built-in functions.
17129 .Sp
17130 Single-precision floating point:
17131 .RS 4
17132 .IP "\fBfadds\fR, \fBfsubs\fR, \fBfdivs\fR, \fBfmuls\fR" 4
17133 .IX Item "fadds, fsubs, fdivs, fmuls"
17134 Binary arithmetic operations.
17135 .IP "\fBfnegs\fR" 4
17136 .IX Item "fnegs"
17137 Unary negation.
17138 .IP "\fBfabss\fR" 4
17139 .IX Item "fabss"
17140 Unary absolute value.
17141 .IP "\fBfcmpeqs\fR, \fBfcmpges\fR, \fBfcmpgts\fR, \fBfcmples\fR, \fBfcmplts\fR, \fBfcmpnes\fR" 4
17142 .IX Item "fcmpeqs, fcmpges, fcmpgts, fcmples, fcmplts, fcmpnes"
17143 Comparison operations.
17144 .IP "\fBfmins\fR, \fBfmaxs\fR" 4
17145 .IX Item "fmins, fmaxs"
17146 Floating-point minimum and maximum.  These instructions are only
17147 generated if \fB\-ffinite\-math\-only\fR is specified.
17148 .IP "\fBfsqrts\fR" 4
17149 .IX Item "fsqrts"
17150 Unary square root operation.
17151 .IP "\fBfcoss\fR, \fBfsins\fR, \fBftans\fR, \fBfatans\fR, \fBfexps\fR, \fBflogs\fR" 4
17152 .IX Item "fcoss, fsins, ftans, fatans, fexps, flogs"
17153 Floating-point trigonometric and exponential functions.  These instructions
17154 are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
17155 .RE
17156 .RS 4
17157 .Sp
17158 Double-precision floating point:
17159 .IP "\fBfaddd\fR, \fBfsubd\fR, \fBfdivd\fR, \fBfmuld\fR" 4
17160 .IX Item "faddd, fsubd, fdivd, fmuld"
17161 Binary arithmetic operations.
17162 .IP "\fBfnegd\fR" 4
17163 .IX Item "fnegd"
17164 Unary negation.
17165 .IP "\fBfabsd\fR" 4
17166 .IX Item "fabsd"
17167 Unary absolute value.
17168 .IP "\fBfcmpeqd\fR, \fBfcmpged\fR, \fBfcmpgtd\fR, \fBfcmpled\fR, \fBfcmpltd\fR, \fBfcmpned\fR" 4
17169 .IX Item "fcmpeqd, fcmpged, fcmpgtd, fcmpled, fcmpltd, fcmpned"
17170 Comparison operations.
17171 .IP "\fBfmind\fR, \fBfmaxd\fR" 4
17172 .IX Item "fmind, fmaxd"
17173 Double-precision minimum and maximum.  These instructions are only
17174 generated if \fB\-ffinite\-math\-only\fR is specified.
17175 .IP "\fBfsqrtd\fR" 4
17176 .IX Item "fsqrtd"
17177 Unary square root operation.
17178 .IP "\fBfcosd\fR, \fBfsind\fR, \fBftand\fR, \fBfatand\fR, \fBfexpd\fR, \fBflogd\fR" 4
17179 .IX Item "fcosd, fsind, ftand, fatand, fexpd, flogd"
17180 Double-precision trigonometric and exponential functions.  These instructions
17181 are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
17182 .RE
17183 .RS 4
17184 .Sp
17185 Conversions:
17186 .IP "\fBfextsd\fR" 4
17187 .IX Item "fextsd"
17188 Conversion from single precision to double precision.
17189 .IP "\fBftruncds\fR" 4
17190 .IX Item "ftruncds"
17191 Conversion from double precision to single precision.
17192 .IP "\fBfixsi\fR, \fBfixsu\fR, \fBfixdi\fR, \fBfixdu\fR" 4
17193 .IX Item "fixsi, fixsu, fixdi, fixdu"
17194 Conversion from floating point to signed or unsigned integer types, with
17195 truncation towards zero.
17196 .IP "\fBround\fR" 4
17197 .IX Item "round"
17198 Conversion from single-precision floating point to signed integer,
17199 rounding to the nearest integer and ties away from zero.
17200 This corresponds to the \f(CW\*(C`_\|_builtin_lroundf\*(C'\fR function when
17201 \&\fB\-fno\-math\-errno\fR is used.
17202 .IP "\fBfloatis\fR, \fBfloatus\fR, \fBfloatid\fR, \fBfloatud\fR" 4
17203 .IX Item "floatis, floatus, floatid, floatud"
17204 Conversion from signed or unsigned integer types to floating-point types.
17205 .RE
17206 .RS 4
17207 .Sp
17208 In addition, all of the following transfer instructions for internal
17209 registers X and Y must be provided to use any of the double-precision
17210 floating-point instructions.  Custom instructions taking two
17211 double-precision source operands expect the first operand in the
17212 64\-bit register X.  The other operand (or only operand of a unary
17213 operation) is given to the custom arithmetic instruction with the
17214 least significant half in source register \fIsrc1\fR and the most
17215 significant half in \fIsrc2\fR.  A custom instruction that returns a
17216 double-precision result returns the most significant 32 bits in the
17217 destination register and the other half in 32\-bit register Y.  
17218 \&\s-1GCC\s0 automatically generates the necessary code sequences to write
17219 register X and/or read register Y when double-precision floating-point
17220 instructions are used.
17221 .IP "\fBfwrx\fR" 4
17222 .IX Item "fwrx"
17223 Write \fIsrc1\fR into the least significant half of X and \fIsrc2\fR into
17224 the most significant half of X.
17225 .IP "\fBfwry\fR" 4
17226 .IX Item "fwry"
17227 Write \fIsrc1\fR into Y.
17228 .IP "\fBfrdxhi\fR, \fBfrdxlo\fR" 4
17229 .IX Item "frdxhi, frdxlo"
17230 Read the most or least (respectively) significant half of X and store it in
17231 \&\fIdest\fR.
17232 .IP "\fBfrdy\fR" 4
17233 .IX Item "frdy"
17234 Read the value of Y and store it into \fIdest\fR.
17235 .RE
17236 .RS 4
17237 .Sp
17238 Note that you can gain more local control over generation of Nios \s-1II\s0 custom
17239 instructions by using the \f(CW\*(C`target("custom\-\f(CIinsn\f(CW=\f(CIN\f(CW")\*(C'\fR
17240 and \f(CW\*(C`target("no\-custom\-\f(CIinsn\f(CW")\*(C'\fR function attributes
17241 or pragmas.
17242 .RE
17243 .IP "\fB\-mcustom\-fpu\-cfg=\fR\fIname\fR" 4
17244 .IX Item "-mcustom-fpu-cfg=name"
17245 This option enables a predefined, named set of custom instruction encodings
17246 (see \fB\-mcustom\-\fR\fIinsn\fR above).  
17247 Currently, the following sets are defined:
17248 .Sp
17249 \&\fB\-mcustom\-fpu\-cfg=60\-1\fR is equivalent to:
17250 \&\fB\-mcustom\-fmuls=252 
17251 \&\-mcustom\-fadds=253 
17252 \&\-mcustom\-fsubs=254 
17253 \&\-fsingle\-precision\-constant\fR
17254 .Sp
17255 \&\fB\-mcustom\-fpu\-cfg=60\-2\fR is equivalent to:
17256 \&\fB\-mcustom\-fmuls=252 
17257 \&\-mcustom\-fadds=253 
17258 \&\-mcustom\-fsubs=254 
17259 \&\-mcustom\-fdivs=255 
17260 \&\-fsingle\-precision\-constant\fR
17261 .Sp
17262 \&\fB\-mcustom\-fpu\-cfg=72\-3\fR is equivalent to:
17263 \&\fB\-mcustom\-floatus=243 
17264 \&\-mcustom\-fixsi=244 
17265 \&\-mcustom\-floatis=245 
17266 \&\-mcustom\-fcmpgts=246 
17267 \&\-mcustom\-fcmples=249 
17268 \&\-mcustom\-fcmpeqs=250 
17269 \&\-mcustom\-fcmpnes=251 
17270 \&\-mcustom\-fmuls=252 
17271 \&\-mcustom\-fadds=253 
17272 \&\-mcustom\-fsubs=254 
17273 \&\-mcustom\-fdivs=255 
17274 \&\-fsingle\-precision\-constant\fR
17275 .Sp
17276 Custom instruction assignments given by individual
17277 \&\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR options override those given by
17278 \&\fB\-mcustom\-fpu\-cfg=\fR, regardless of the
17279 order of the options on the command line.
17280 .Sp
17281 Note that you can gain more local control over selection of a \s-1FPU\s0
17282 configuration by using the \f(CW\*(C`target("custom\-fpu\-cfg=\f(CIname\f(CW")\*(C'\fR
17283 function attribute
17284 or pragma.
17285 .PP
17286 These additional \fB\-m\fR options are available for the Altera Nios \s-1II\s0
17287 \&\s-1ELF\s0 (bare-metal) target:
17288 .IP "\fB\-mhal\fR" 4
17289 .IX Item "-mhal"
17290 Link with \s-1HAL\s0 \s-1BSP\s0.  This suppresses linking with the GCC-provided C runtime
17291 startup and termination code, and is typically used in conjunction with
17292 \&\fB\-msys\-crt0=\fR to specify the location of the alternate startup code
17293 provided by the \s-1HAL\s0 \s-1BSP\s0.
17294 .IP "\fB\-msmallc\fR" 4
17295 .IX Item "-msmallc"
17296 Link with a limited version of the C library, \fB\-lsmallc\fR, rather than
17297 Newlib.
17298 .IP "\fB\-msys\-crt0=\fR\fIstartfile\fR" 4
17299 .IX Item "-msys-crt0=startfile"
17300 \&\fIstartfile\fR is the file name of the startfile (crt0) to use 
17301 when linking.  This option is only useful in conjunction with \fB\-mhal\fR.
17302 .IP "\fB\-msys\-lib=\fR\fIsystemlib\fR" 4
17303 .IX Item "-msys-lib=systemlib"
17304 \&\fIsystemlib\fR is the library name of the library that provides
17305 low-level system calls required by the C library,
17306 e.g. \f(CW\*(C`read\*(C'\fR and \f(CW\*(C`write\*(C'\fR.
17307 This option is typically used to link with a library provided by a \s-1HAL\s0 \s-1BSP\s0.
17308 .PP
17309 \fINvidia \s-1PTX\s0 Options\fR
17310 .IX Subsection "Nvidia PTX Options"
17311 .PP
17312 These options are defined for Nvidia \s-1PTX:\s0
17313 .IP "\fB\-m32\fR" 4
17314 .IX Item "-m32"
17315 .PD 0
17316 .IP "\fB\-m64\fR" 4
17317 .IX Item "-m64"
17318 .PD
17319 Generate code for 32\-bit or 64\-bit \s-1ABI\s0.
17320 .IP "\fB\-mmainkernel\fR" 4
17321 .IX Item "-mmainkernel"
17322 Link in code for a _\|_main kernel.  This is for stand-alone instead of
17323 offloading execution.
17324 .PP
17325 \fI\s-1PDP\-11\s0 Options\fR
17326 .IX Subsection "PDP-11 Options"
17327 .PP
17328 These options are defined for the \s-1PDP\-11:\s0
17329 .IP "\fB\-mfpu\fR" 4
17330 .IX Item "-mfpu"
17331 Use hardware \s-1FPP\s0 floating point.  This is the default.  (\s-1FIS\s0 floating
17332 point on the \s-1PDP\-11/40\s0 is not supported.)
17333 .IP "\fB\-msoft\-float\fR" 4
17334 .IX Item "-msoft-float"
17335 Do not use hardware floating point.
17336 .IP "\fB\-mac0\fR" 4
17337 .IX Item "-mac0"
17338 Return floating-point results in ac0 (fr0 in Unix assembler syntax).
17339 .IP "\fB\-mno\-ac0\fR" 4
17340 .IX Item "-mno-ac0"
17341 Return floating-point results in memory.  This is the default.
17342 .IP "\fB\-m40\fR" 4
17343 .IX Item "-m40"
17344 Generate code for a \s-1PDP\-11/40\s0.
17345 .IP "\fB\-m45\fR" 4
17346 .IX Item "-m45"
17347 Generate code for a \s-1PDP\-11/45\s0.  This is the default.
17348 .IP "\fB\-m10\fR" 4
17349 .IX Item "-m10"
17350 Generate code for a \s-1PDP\-11/10\s0.
17351 .IP "\fB\-mbcopy\-builtin\fR" 4
17352 .IX Item "-mbcopy-builtin"
17353 Use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.  This is the
17354 default.
17355 .IP "\fB\-mbcopy\fR" 4
17356 .IX Item "-mbcopy"
17357 Do not use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.
17358 .IP "\fB\-mint16\fR" 4
17359 .IX Item "-mint16"
17360 .PD 0
17361 .IP "\fB\-mno\-int32\fR" 4
17362 .IX Item "-mno-int32"
17363 .PD
17364 Use 16\-bit \f(CW\*(C`int\*(C'\fR.  This is the default.
17365 .IP "\fB\-mint32\fR" 4
17366 .IX Item "-mint32"
17367 .PD 0
17368 .IP "\fB\-mno\-int16\fR" 4
17369 .IX Item "-mno-int16"
17370 .PD
17371 Use 32\-bit \f(CW\*(C`int\*(C'\fR.
17372 .IP "\fB\-mfloat64\fR" 4
17373 .IX Item "-mfloat64"
17374 .PD 0
17375 .IP "\fB\-mno\-float32\fR" 4
17376 .IX Item "-mno-float32"
17377 .PD
17378 Use 64\-bit \f(CW\*(C`float\*(C'\fR.  This is the default.
17379 .IP "\fB\-mfloat32\fR" 4
17380 .IX Item "-mfloat32"
17381 .PD 0
17382 .IP "\fB\-mno\-float64\fR" 4
17383 .IX Item "-mno-float64"
17384 .PD
17385 Use 32\-bit \f(CW\*(C`float\*(C'\fR.
17386 .IP "\fB\-mabshi\fR" 4
17387 .IX Item "-mabshi"
17388 Use \f(CW\*(C`abshi2\*(C'\fR pattern.  This is the default.
17389 .IP "\fB\-mno\-abshi\fR" 4
17390 .IX Item "-mno-abshi"
17391 Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
17392 .IP "\fB\-mbranch\-expensive\fR" 4
17393 .IX Item "-mbranch-expensive"
17394 Pretend that branches are expensive.  This is for experimenting with
17395 code generation only.
17396 .IP "\fB\-mbranch\-cheap\fR" 4
17397 .IX Item "-mbranch-cheap"
17398 Do not pretend that branches are expensive.  This is the default.
17399 .IP "\fB\-munix\-asm\fR" 4
17400 .IX Item "-munix-asm"
17401 Use Unix assembler syntax.  This is the default when configured for
17402 \&\fBpdp11\-*\-bsd\fR.
17403 .IP "\fB\-mdec\-asm\fR" 4
17404 .IX Item "-mdec-asm"
17405 Use \s-1DEC\s0 assembler syntax.  This is the default when configured for any
17406 \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
17407 .PP
17408 \fIpicoChip Options\fR
17409 .IX Subsection "picoChip Options"
17410 .PP
17411 These \fB\-m\fR options are defined for picoChip implementations:
17412 .IP "\fB\-mae=\fR\fIae_type\fR" 4
17413 .IX Item "-mae=ae_type"
17414 Set the instruction set, register set, and instruction scheduling
17415 parameters for array element type \fIae_type\fR.  Supported values
17416 for \fIae_type\fR are \fB\s-1ANY\s0\fR, \fB\s-1MUL\s0\fR, and \fB\s-1MAC\s0\fR.
17417 .Sp
17418 \&\fB\-mae=ANY\fR selects a completely generic \s-1AE\s0 type.  Code
17419 generated with this option runs on any of the other \s-1AE\s0 types.  The
17420 code is not as efficient as it would be if compiled for a specific
17421 \&\s-1AE\s0 type, and some types of operation (e.g., multiplication) do not
17422 work properly on all types of \s-1AE\s0.
17423 .Sp
17424 \&\fB\-mae=MUL\fR selects a \s-1MUL\s0 \s-1AE\s0 type.  This is the most useful \s-1AE\s0 type
17425 for compiled code, and is the default.
17426 .Sp
17427 \&\fB\-mae=MAC\fR selects a DSP-style \s-1MAC\s0 \s-1AE\s0.  Code compiled with this
17428 option may suffer from poor performance of byte (char) manipulation,
17429 since the \s-1DSP\s0 \s-1AE\s0 does not provide hardware support for byte load/stores.
17430 .IP "\fB\-msymbol\-as\-address\fR" 4
17431 .IX Item "-msymbol-as-address"
17432 Enable the compiler to directly use a symbol name as an address in a
17433 load/store instruction, without first loading it into a
17434 register.  Typically, the use of this option generates larger
17435 programs, which run faster than when the option isn't used.  However, the
17436 results vary from program to program, so it is left as a user option,
17437 rather than being permanently enabled.
17438 .IP "\fB\-mno\-inefficient\-warnings\fR" 4
17439 .IX Item "-mno-inefficient-warnings"
17440 Disables warnings about the generation of inefficient code.  These
17441 warnings can be generated, for example, when compiling code that
17442 performs byte-level memory operations on the \s-1MAC\s0 \s-1AE\s0 type.  The \s-1MAC\s0 \s-1AE\s0 has
17443 no hardware support for byte-level memory operations, so all byte
17444 load/stores must be synthesized from word load/store operations.  This is
17445 inefficient and a warning is generated to indicate
17446 that you should rewrite the code to avoid byte operations, or to target
17447 an \s-1AE\s0 type that has the necessary hardware support.  This option disables
17448 these warnings.
17449 .PP
17450 \fIPowerPC Options\fR
17451 .IX Subsection "PowerPC Options"
17452 .PP
17453 These are listed under
17454 .PP
17455 \fI\s-1RL78\s0 Options\fR
17456 .IX Subsection "RL78 Options"
17457 .IP "\fB\-msim\fR" 4
17458 .IX Item "-msim"
17459 Links in additional target libraries to support operation within a
17460 simulator.
17461 .IP "\fB\-mmul=none\fR" 4
17462 .IX Item "-mmul=none"
17463 .PD 0
17464 .IP "\fB\-mmul=g13\fR" 4
17465 .IX Item "-mmul=g13"
17466 .IP "\fB\-mmul=rl78\fR" 4
17467 .IX Item "-mmul=rl78"
17468 .PD
17469 Specifies the type of hardware multiplication support to be used.  The
17470 default is \fBnone\fR, which uses software multiplication functions.
17471 The \fBg13\fR option is for the hardware multiply/divide peripheral
17472 only on the \s-1RL78/G13\s0 targets.  The \fBrl78\fR option is for the
17473 standard hardware multiplication defined in the \s-1RL78\s0 software manual.
17474 .IP "\fB\-m64bit\-doubles\fR" 4
17475 .IX Item "-m64bit-doubles"
17476 .PD 0
17477 .IP "\fB\-m32bit\-doubles\fR" 4
17478 .IX Item "-m32bit-doubles"
17479 .PD
17480 Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
17481 or 32 bits (\fB\-m32bit\-doubles\fR) in size.  The default is
17482 \&\fB\-m32bit\-doubles\fR.
17483 .PP
17484 \fI\s-1IBM\s0 \s-1RS/6000\s0 and PowerPC Options\fR
17485 .IX Subsection "IBM RS/6000 and PowerPC Options"
17486 .PP
17487 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RS/6000\s0 and PowerPC:
17488 .IP "\fB\-mpowerpc\-gpopt\fR" 4
17489 .IX Item "-mpowerpc-gpopt"
17490 .PD 0
17491 .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
17492 .IX Item "-mno-powerpc-gpopt"
17493 .IP "\fB\-mpowerpc\-gfxopt\fR" 4
17494 .IX Item "-mpowerpc-gfxopt"
17495 .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
17496 .IX Item "-mno-powerpc-gfxopt"
17497 .IP "\fB\-mpowerpc64\fR" 4
17498 .IX Item "-mpowerpc64"
17499 .IP "\fB\-mno\-powerpc64\fR" 4
17500 .IX Item "-mno-powerpc64"
17501 .IP "\fB\-mmfcrf\fR" 4
17502 .IX Item "-mmfcrf"
17503 .IP "\fB\-mno\-mfcrf\fR" 4
17504 .IX Item "-mno-mfcrf"
17505 .IP "\fB\-mpopcntb\fR" 4
17506 .IX Item "-mpopcntb"
17507 .IP "\fB\-mno\-popcntb\fR" 4
17508 .IX Item "-mno-popcntb"
17509 .IP "\fB\-mpopcntd\fR" 4
17510 .IX Item "-mpopcntd"
17511 .IP "\fB\-mno\-popcntd\fR" 4
17512 .IX Item "-mno-popcntd"
17513 .IP "\fB\-mfprnd\fR" 4
17514 .IX Item "-mfprnd"
17515 .IP "\fB\-mno\-fprnd\fR" 4
17516 .IX Item "-mno-fprnd"
17517 .IP "\fB\-mcmpb\fR" 4
17518 .IX Item "-mcmpb"
17519 .IP "\fB\-mno\-cmpb\fR" 4
17520 .IX Item "-mno-cmpb"
17521 .IP "\fB\-mmfpgpr\fR" 4
17522 .IX Item "-mmfpgpr"
17523 .IP "\fB\-mno\-mfpgpr\fR" 4
17524 .IX Item "-mno-mfpgpr"
17525 .IP "\fB\-mhard\-dfp\fR" 4
17526 .IX Item "-mhard-dfp"
17527 .IP "\fB\-mno\-hard\-dfp\fR" 4
17528 .IX Item "-mno-hard-dfp"
17529 .PD
17530 You use these options to specify which instructions are available on the
17531 processor you are using.  The default value of these options is
17532 determined when configuring \s-1GCC\s0.  Specifying the
17533 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
17534 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
17535 rather than the options listed above.
17536 .Sp
17537 Specifying \fB\-mpowerpc\-gpopt\fR allows
17538 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
17539 General Purpose group, including floating-point square root.  Specifying
17540 \&\fB\-mpowerpc\-gfxopt\fR allows \s-1GCC\s0 to
17541 use the optional PowerPC architecture instructions in the Graphics
17542 group, including floating-point select.
17543 .Sp
17544 The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
17545 condition register field instruction implemented on the \s-1POWER4\s0
17546 processor and other processors that support the PowerPC V2.01
17547 architecture.
17548 The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
17549 double-precision \s-1FP\s0 reciprocal estimate instruction implemented on the
17550 \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
17551 architecture.
17552 The \fB\-mpopcntd\fR option allows \s-1GCC\s0 to generate the popcount
17553 instruction implemented on the \s-1POWER7\s0 processor and other processors
17554 that support the PowerPC V2.06 architecture.
17555 The \fB\-mfprnd\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 round to
17556 integer instructions implemented on the \s-1POWER5+\s0 processor and other
17557 processors that support the PowerPC V2.03 architecture.
17558 The \fB\-mcmpb\fR option allows \s-1GCC\s0 to generate the compare bytes
17559 instruction implemented on the \s-1POWER6\s0 processor and other processors
17560 that support the PowerPC V2.05 architecture.
17561 The \fB\-mmfpgpr\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 move to/from
17562 general-purpose register instructions implemented on the \s-1POWER6X\s0
17563 processor and other processors that support the extended PowerPC V2.05
17564 architecture.
17565 The \fB\-mhard\-dfp\fR option allows \s-1GCC\s0 to generate the decimal
17566 floating-point instructions implemented on some \s-1POWER\s0 processors.
17567 .Sp
17568 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
17569 64\-bit instructions that are found in the full PowerPC64 architecture
17570 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
17571 \&\fB\-mno\-powerpc64\fR.
17572 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
17573 .IX Item "-mcpu=cpu_type"
17574 Set architecture type, register usage, and
17575 instruction scheduling parameters for machine type \fIcpu_type\fR.
17576 Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
17577 \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB464\fR, \fB464fp\fR,
17578 \&\fB476\fR, \fB476fp\fR, \fB505\fR, \fB601\fR, \fB602\fR, \fB603\fR,
17579 \&\fB603e\fR, \fB604\fR, \fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR,
17580 \&\fB7400\fR, \fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
17581 \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBa2\fR, \fBe300c2\fR,
17582 \&\fBe300c3\fR, \fBe500mc\fR, \fBe500mc64\fR, \fBe5500\fR,
17583 \&\fBe6500\fR, \fBec603e\fR, \fBG3\fR, \fBG4\fR, \fBG5\fR,
17584 \&\fBtitan\fR, \fBpower3\fR, \fBpower4\fR, \fBpower5\fR, \fBpower5+\fR,
17585 \&\fBpower6\fR, \fBpower6x\fR, \fBpower7\fR, \fBpower8\fR, \fBpowerpc\fR,
17586 \&\fBpowerpc64\fR, \fBpowerpc64le\fR, and \fBrs64\fR.
17587 .Sp
17588 \&\fB\-mcpu=powerpc\fR, \fB\-mcpu=powerpc64\fR, and
17589 \&\fB\-mcpu=powerpc64le\fR specify pure 32\-bit PowerPC (either
17590 endian), 64\-bit big endian PowerPC and 64\-bit little endian PowerPC
17591 architecture machine types, with an appropriate, generic processor
17592 model assumed for scheduling purposes.
17593 .Sp
17594 The other options specify a specific processor.  Code generated under
17595 those options runs best on that processor, and may not run at all on
17596 others.
17597 .Sp
17598 The \fB\-mcpu\fR options automatically enable or disable the
17599 following options:
17600 .Sp
17601 \&\fB\-maltivec  \-mfprnd  \-mhard\-float  \-mmfcrf  \-mmultiple 
17602 \&\-mpopcntb \-mpopcntd  \-mpowerpc64 
17603 \&\-mpowerpc\-gpopt  \-mpowerpc\-gfxopt  \-msingle\-float \-mdouble\-float 
17604 \&\-msimple\-fpu \-mstring  \-mmulhw  \-mdlmzb  \-mmfpgpr \-mvsx 
17605 \&\-mcrypto \-mdirect\-move \-mpower8\-fusion \-mpower8\-vector 
17606 \&\-mquad\-memory \-mquad\-memory\-atomic\fR
17607 .Sp
17608 The particular options set for any particular \s-1CPU\s0 varies between
17609 compiler versions, depending on what setting seems to produce optimal
17610 code for that \s-1CPU\s0; it doesn't necessarily reflect the actual hardware's
17611 capabilities.  If you wish to set an individual option to a particular
17612 value, you may specify it after the \fB\-mcpu\fR option, like
17613 \&\fB\-mcpu=970 \-mno\-altivec\fR.
17614 .Sp
17615 On \s-1AIX\s0, the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
17616 not enabled or disabled by the \fB\-mcpu\fR option at present because
17617 \&\s-1AIX\s0 does not have full support for these options.  You may still
17618 enable or disable them individually if you're sure it'll work in your
17619 environment.
17620 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
17621 .IX Item "-mtune=cpu_type"
17622 Set the instruction scheduling parameters for machine type
17623 \&\fIcpu_type\fR, but do not set the architecture type or register usage,
17624 as \fB\-mcpu=\fR\fIcpu_type\fR does.  The same
17625 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
17626 \&\fB\-mcpu\fR.  If both are specified, the code generated uses the
17627 architecture and registers set by \fB\-mcpu\fR, but the
17628 scheduling parameters set by \fB\-mtune\fR.
17629 .IP "\fB\-mcmodel=small\fR" 4
17630 .IX Item "-mcmodel=small"
17631 Generate PowerPC64 code for the small model: The \s-1TOC\s0 is limited to
17632 64k.
17633 .IP "\fB\-mcmodel=medium\fR" 4
17634 .IX Item "-mcmodel=medium"
17635 Generate PowerPC64 code for the medium model: The \s-1TOC\s0 and other static
17636 data may be up to a total of 4G in size.
17637 .IP "\fB\-mcmodel=large\fR" 4
17638 .IX Item "-mcmodel=large"
17639 Generate PowerPC64 code for the large model: The \s-1TOC\s0 may be up to 4G
17640 in size.  Other data and code is only limited by the 64\-bit address
17641 space.
17642 .IP "\fB\-maltivec\fR" 4
17643 .IX Item "-maltivec"
17644 .PD 0
17645 .IP "\fB\-mno\-altivec\fR" 4
17646 .IX Item "-mno-altivec"
17647 .PD
17648 Generate code that uses (does not use) AltiVec instructions, and also
17649 enable the use of built-in functions that allow more direct access to
17650 the AltiVec instruction set.  You may also need to set
17651 \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
17652 enhancements.
17653 .Sp
17654 When \fB\-maltivec\fR is used, rather than \fB\-maltivec=le\fR or
17655 \&\fB\-maltivec=be\fR, the element order for Altivec intrinsics such
17656 as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and \f(CW\*(C`vec_insert\*(C'\fR 
17657 match array element order corresponding to the endianness of the
17658 target.  That is, element zero identifies the leftmost element in a
17659 vector register when targeting a big-endian platform, and identifies
17660 the rightmost element in a vector register when targeting a
17661 little-endian platform.
17662 .IP "\fB\-maltivec=be\fR" 4
17663 .IX Item "-maltivec=be"
17664 Generate Altivec instructions using big-endian element order,
17665 regardless of whether the target is big\- or little-endian.  This is
17666 the default when targeting a big-endian platform.
17667 .Sp
17668 The element order is used to interpret element numbers in Altivec
17669 intrinsics such as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and
17670 \&\f(CW\*(C`vec_insert\*(C'\fR.  By default, these match array element order
17671 corresponding to the endianness for the target.
17672 .IP "\fB\-maltivec=le\fR" 4
17673 .IX Item "-maltivec=le"
17674 Generate Altivec instructions using little-endian element order,
17675 regardless of whether the target is big\- or little-endian.  This is
17676 the default when targeting a little-endian platform.  This option is
17677 currently ignored when targeting a big-endian platform.
17678 .Sp
17679 The element order is used to interpret element numbers in Altivec
17680 intrinsics such as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and
17681 \&\f(CW\*(C`vec_insert\*(C'\fR.  By default, these match array element order
17682 corresponding to the endianness for the target.
17683 .IP "\fB\-mvrsave\fR" 4
17684 .IX Item "-mvrsave"
17685 .PD 0
17686 .IP "\fB\-mno\-vrsave\fR" 4
17687 .IX Item "-mno-vrsave"
17688 .PD
17689 Generate \s-1VRSAVE\s0 instructions when generating AltiVec code.
17690 .IP "\fB\-mgen\-cell\-microcode\fR" 4
17691 .IX Item "-mgen-cell-microcode"
17692 Generate Cell microcode instructions.
17693 .IP "\fB\-mwarn\-cell\-microcode\fR" 4
17694 .IX Item "-mwarn-cell-microcode"
17695 Warn when a Cell microcode instruction is emitted.  An example
17696 of a Cell microcode instruction is a variable shift.
17697 .IP "\fB\-msecure\-plt\fR" 4
17698 .IX Item "-msecure-plt"
17699 Generate code that allows \fBld\fR and \fBld.so\fR
17700 to build executables and shared
17701 libraries with non-executable \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR sections.
17702 This is a PowerPC
17703 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
17704 .IP "\fB\-mbss\-plt\fR" 4
17705 .IX Item "-mbss-plt"
17706 Generate code that uses a \s-1BSS\s0 \f(CW\*(C`.plt\*(C'\fR section that \fBld.so\fR
17707 fills in, and
17708 requires \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR
17709 sections that are both writable and executable.
17710 This is a PowerPC 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
17711 .IP "\fB\-misel\fR" 4
17712 .IX Item "-misel"
17713 .PD 0
17714 .IP "\fB\-mno\-isel\fR" 4
17715 .IX Item "-mno-isel"
17716 .PD
17717 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
17718 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
17719 .IX Item "-misel=yes/no"
17720 This switch has been deprecated.  Use \fB\-misel\fR and
17721 \&\fB\-mno\-isel\fR instead.
17722 .IP "\fB\-mspe\fR" 4
17723 .IX Item "-mspe"
17724 .PD 0
17725 .IP "\fB\-mno\-spe\fR" 4
17726 .IX Item "-mno-spe"
17727 .PD
17728 This switch enables or disables the generation of \s-1SPE\s0 simd
17729 instructions.
17730 .IP "\fB\-mpaired\fR" 4
17731 .IX Item "-mpaired"
17732 .PD 0
17733 .IP "\fB\-mno\-paired\fR" 4
17734 .IX Item "-mno-paired"
17735 .PD
17736 This switch enables or disables the generation of \s-1PAIRED\s0 simd
17737 instructions.
17738 .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
17739 .IX Item "-mspe=yes/no"
17740 This option has been deprecated.  Use \fB\-mspe\fR and
17741 \&\fB\-mno\-spe\fR instead.
17742 .IP "\fB\-mvsx\fR" 4
17743 .IX Item "-mvsx"
17744 .PD 0
17745 .IP "\fB\-mno\-vsx\fR" 4
17746 .IX Item "-mno-vsx"
17747 .PD
17748 Generate code that uses (does not use) vector/scalar (\s-1VSX\s0)
17749 instructions, and also enable the use of built-in functions that allow
17750 more direct access to the \s-1VSX\s0 instruction set.
17751 .IP "\fB\-mcrypto\fR" 4
17752 .IX Item "-mcrypto"
17753 .PD 0
17754 .IP "\fB\-mno\-crypto\fR" 4
17755 .IX Item "-mno-crypto"
17756 .PD
17757 Enable the use (disable) of the built-in functions that allow direct
17758 access to the cryptographic instructions that were added in version
17759 2.07 of the PowerPC \s-1ISA\s0.
17760 .IP "\fB\-mdirect\-move\fR" 4
17761 .IX Item "-mdirect-move"
17762 .PD 0
17763 .IP "\fB\-mno\-direct\-move\fR" 4
17764 .IX Item "-mno-direct-move"
17765 .PD
17766 Generate code that uses (does not use) the instructions to move data
17767 between the general purpose registers and the vector/scalar (\s-1VSX\s0)
17768 registers that were added in version 2.07 of the PowerPC \s-1ISA\s0.
17769 .IP "\fB\-mpower8\-fusion\fR" 4
17770 .IX Item "-mpower8-fusion"
17771 .PD 0
17772 .IP "\fB\-mno\-power8\-fusion\fR" 4
17773 .IX Item "-mno-power8-fusion"
17774 .PD
17775 Generate code that keeps (does not keeps) some integer operations
17776 adjacent so that the instructions can be fused together on power8 and
17777 later processors.
17778 .IP "\fB\-mpower8\-vector\fR" 4
17779 .IX Item "-mpower8-vector"
17780 .PD 0
17781 .IP "\fB\-mno\-power8\-vector\fR" 4
17782 .IX Item "-mno-power8-vector"
17783 .PD
17784 Generate code that uses (does not use) the vector and scalar
17785 instructions that were added in version 2.07 of the PowerPC \s-1ISA\s0.  Also
17786 enable the use of built-in functions that allow more direct access to
17787 the vector instructions.
17788 .IP "\fB\-mquad\-memory\fR" 4
17789 .IX Item "-mquad-memory"
17790 .PD 0
17791 .IP "\fB\-mno\-quad\-memory\fR" 4
17792 .IX Item "-mno-quad-memory"
17793 .PD
17794 Generate code that uses (does not use) the non-atomic quad word memory
17795 instructions.  The \fB\-mquad\-memory\fR option requires use of
17796 64\-bit mode.
17797 .IP "\fB\-mquad\-memory\-atomic\fR" 4
17798 .IX Item "-mquad-memory-atomic"
17799 .PD 0
17800 .IP "\fB\-mno\-quad\-memory\-atomic\fR" 4
17801 .IX Item "-mno-quad-memory-atomic"
17802 .PD
17803 Generate code that uses (does not use) the atomic quad word memory
17804 instructions.  The \fB\-mquad\-memory\-atomic\fR option requires use of
17805 64\-bit mode.
17806 .IP "\fB\-mupper\-regs\-df\fR" 4
17807 .IX Item "-mupper-regs-df"
17808 .PD 0
17809 .IP "\fB\-mno\-upper\-regs\-df\fR" 4
17810 .IX Item "-mno-upper-regs-df"
17811 .PD
17812 Generate code that uses (does not use) the scalar double precision
17813 instructions that target all 64 registers in the vector/scalar
17814 floating point register set that were added in version 2.06 of the
17815 PowerPC \s-1ISA\s0.  \fB\-mupper\-regs\-df\fR is turned on by default if you
17816 use any of the \fB\-mcpu=power7\fR, \fB\-mcpu=power8\fR, or
17817 \&\fB\-mvsx\fR options.
17818 .IP "\fB\-mupper\-regs\-sf\fR" 4
17819 .IX Item "-mupper-regs-sf"
17820 .PD 0
17821 .IP "\fB\-mno\-upper\-regs\-sf\fR" 4
17822 .IX Item "-mno-upper-regs-sf"
17823 .PD
17824 Generate code that uses (does not use) the scalar single precision
17825 instructions that target all 64 registers in the vector/scalar
17826 floating point register set that were added in version 2.07 of the
17827 PowerPC \s-1ISA\s0.  \fB\-mupper\-regs\-sf\fR is turned on by default if you
17828 use either of the \fB\-mcpu=power8\fR or \fB\-mpower8\-vector\fR
17829 options.
17830 .IP "\fB\-mupper\-regs\fR" 4
17831 .IX Item "-mupper-regs"
17832 .PD 0
17833 .IP "\fB\-mno\-upper\-regs\fR" 4
17834 .IX Item "-mno-upper-regs"
17835 .PD
17836 Generate code that uses (does not use) the scalar
17837 instructions that target all 64 registers in the vector/scalar
17838 floating point register set, depending on the model of the machine.
17839 .Sp
17840 If the \fB\-mno\-upper\-regs\fR option is used, it turns off both
17841 \&\fB\-mupper\-regs\-sf\fR and \fB\-mupper\-regs\-df\fR options.
17842 .IP "\fB\-mfloat\-gprs=\fR\fIyes/single/double/no\fR" 4
17843 .IX Item "-mfloat-gprs=yes/single/double/no"
17844 .PD 0
17845 .IP "\fB\-mfloat\-gprs\fR" 4
17846 .IX Item "-mfloat-gprs"
17847 .PD
17848 This switch enables or disables the generation of floating-point
17849 operations on the general-purpose registers for architectures that
17850 support it.
17851 .Sp
17852 The argument \fByes\fR or \fBsingle\fR enables the use of
17853 single-precision floating-point operations.
17854 .Sp
17855 The argument \fBdouble\fR enables the use of single and
17856 double-precision floating-point operations.
17857 .Sp
17858 The argument \fBno\fR disables floating-point operations on the
17859 general-purpose registers.
17860 .Sp
17861 This option is currently only available on the MPC854x.
17862 .IP "\fB\-m32\fR" 4
17863 .IX Item "-m32"
17864 .PD 0
17865 .IP "\fB\-m64\fR" 4
17866 .IX Item "-m64"
17867 .PD
17868 Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
17869 targets (including GNU/Linux).  The 32\-bit environment sets int, long
17870 and pointer to 32 bits and generates code that runs on any PowerPC
17871 variant.  The 64\-bit environment sets int to 32 bits and long and
17872 pointer to 64 bits, and generates code for PowerPC64, as for
17873 \&\fB\-mpowerpc64\fR.
17874 .IP "\fB\-mfull\-toc\fR" 4
17875 .IX Item "-mfull-toc"
17876 .PD 0
17877 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
17878 .IX Item "-mno-fp-in-toc"
17879 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
17880 .IX Item "-mno-sum-in-toc"
17881 .IP "\fB\-mminimal\-toc\fR" 4
17882 .IX Item "-mminimal-toc"
17883 .PD
17884 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
17885 every executable file.  The \fB\-mfull\-toc\fR option is selected by
17886 default.  In that case, \s-1GCC\s0 allocates at least one \s-1TOC\s0 entry for
17887 each unique non-automatic variable reference in your program.  \s-1GCC\s0
17888 also places floating-point constants in the \s-1TOC\s0.  However, only
17889 16,384 entries are available in the \s-1TOC\s0.
17890 .Sp
17891 If you receive a linker error message that saying you have overflowed
17892 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
17893 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
17894 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
17895 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
17896 generate code to calculate the sum of an address and a constant at
17897 run time instead of putting that sum into the \s-1TOC\s0.  You may specify one
17898 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
17899 slower and larger code at the expense of conserving \s-1TOC\s0 space.
17900 .Sp
17901 If you still run out of space in the \s-1TOC\s0 even when you specify both of
17902 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
17903 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
17904 option, \s-1GCC\s0 produces code that is slower and larger but which
17905 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
17906 only on files that contain less frequently-executed code.
17907 .IP "\fB\-maix64\fR" 4
17908 .IX Item "-maix64"
17909 .PD 0
17910 .IP "\fB\-maix32\fR" 4
17911 .IX Item "-maix32"
17912 .PD
17913 Enable 64\-bit \s-1AIX\s0 \s-1ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
17914 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
17915 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR,
17916 while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
17917 implies \fB\-mno\-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
17918 .IP "\fB\-mxl\-compat\fR" 4
17919 .IX Item "-mxl-compat"
17920 .PD 0
17921 .IP "\fB\-mno\-xl\-compat\fR" 4
17922 .IX Item "-mno-xl-compat"
17923 .PD
17924 Produce code that conforms more closely to \s-1IBM\s0 \s-1XL\s0 compiler semantics
17925 when using AIX-compatible \s-1ABI\s0.  Pass floating-point arguments to
17926 prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
17927 in addition to argument FPRs.  Do not assume that most significant
17928 double in 128\-bit long double value is properly rounded when comparing
17929 values and converting to double.  Use \s-1XL\s0 symbol names for long double
17930 support routines.
17931 .Sp
17932 The \s-1AIX\s0 calling convention was extended but not initially documented to
17933 handle an obscure K&R C case of calling a function that takes the
17934 address of its arguments with fewer arguments than declared.  \s-1IBM\s0 \s-1XL\s0
17935 compilers access floating-point arguments that do not fit in the
17936 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
17937 optimization.  Because always storing floating-point arguments on the
17938 stack is inefficient and rarely needed, this option is not enabled by
17939 default and only is necessary when calling subroutines compiled by \s-1IBM\s0
17940 \&\s-1XL\s0 compilers without optimization.
17941 .IP "\fB\-mpe\fR" 4
17942 .IX Item "-mpe"
17943 Support \fI\s-1IBM\s0 \s-1RS/6000\s0 \s-1SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
17944 application written to use message passing with special startup code to
17945 enable the application to run.  The system must have \s-1PE\s0 installed in the
17946 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
17947 must be overridden with the \fB\-specs=\fR option to specify the
17948 appropriate directory location.  The Parallel Environment does not
17949 support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
17950 option are incompatible.
17951 .IP "\fB\-malign\-natural\fR" 4
17952 .IX Item "-malign-natural"
17953 .PD 0
17954 .IP "\fB\-malign\-power\fR" 4
17955 .IX Item "-malign-power"
17956 .PD
17957 On \s-1AIX\s0, 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
17958 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
17959 types, such as floating-point doubles, on their natural size-based boundary.
17960 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
17961 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI\s0.
17962 .Sp
17963 On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
17964 is not supported.
17965 .IP "\fB\-msoft\-float\fR" 4
17966 .IX Item "-msoft-float"
17967 .PD 0
17968 .IP "\fB\-mhard\-float\fR" 4
17969 .IX Item "-mhard-float"
17970 .PD
17971 Generate code that does not use (uses) the floating-point register set.
17972 Software floating-point emulation is provided if you use the
17973 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
17974 .IP "\fB\-msingle\-float\fR" 4
17975 .IX Item "-msingle-float"
17976 .PD 0
17977 .IP "\fB\-mdouble\-float\fR" 4
17978 .IX Item "-mdouble-float"
17979 .PD
17980 Generate code for single\- or double-precision floating-point operations.
17981 \&\fB\-mdouble\-float\fR implies \fB\-msingle\-float\fR.
17982 .IP "\fB\-msimple\-fpu\fR" 4
17983 .IX Item "-msimple-fpu"
17984 Do not generate \f(CW\*(C`sqrt\*(C'\fR and \f(CW\*(C`div\*(C'\fR instructions for hardware
17985 floating-point unit.
17986 .IP "\fB\-mfpu=\fR\fIname\fR" 4
17987 .IX Item "-mfpu=name"
17988 Specify type of floating-point unit.  Valid values for \fIname\fR are
17989 \&\fBsp_lite\fR (equivalent to \fB\-msingle\-float \-msimple\-fpu\fR),
17990 \&\fBdp_lite\fR (equivalent to \fB\-mdouble\-float \-msimple\-fpu\fR),
17991 \&\fBsp_full\fR (equivalent to \fB\-msingle\-float\fR),
17992 and \fBdp_full\fR (equivalent to \fB\-mdouble\-float\fR).
17993 .IP "\fB\-mxilinx\-fpu\fR" 4
17994 .IX Item "-mxilinx-fpu"
17995 Perform optimizations for the floating-point unit on Xilinx \s-1PPC\s0 405/440.
17996 .IP "\fB\-mmultiple\fR" 4
17997 .IX Item "-mmultiple"
17998 .PD 0
17999 .IP "\fB\-mno\-multiple\fR" 4
18000 .IX Item "-mno-multiple"
18001 .PD
18002 Generate code that uses (does not use) the load multiple word
18003 instructions and the store multiple word instructions.  These
18004 instructions are generated by default on \s-1POWER\s0 systems, and not
18005 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little-endian
18006 PowerPC systems, since those instructions do not work when the
18007 processor is in little-endian mode.  The exceptions are \s-1PPC740\s0 and
18008 \&\s-1PPC750\s0 which permit these instructions in little-endian mode.
18009 .IP "\fB\-mstring\fR" 4
18010 .IX Item "-mstring"
18011 .PD 0
18012 .IP "\fB\-mno\-string\fR" 4
18013 .IX Item "-mno-string"
18014 .PD
18015 Generate code that uses (does not use) the load string instructions
18016 and the store string word instructions to save multiple registers and
18017 do small block moves.  These instructions are generated by default on
18018 \&\s-1POWER\s0 systems, and not generated on PowerPC systems.  Do not use
18019 \&\fB\-mstring\fR on little-endian PowerPC systems, since those
18020 instructions do not work when the processor is in little-endian mode.
18021 The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit these instructions
18022 in little-endian mode.
18023 .IP "\fB\-mupdate\fR" 4
18024 .IX Item "-mupdate"
18025 .PD 0
18026 .IP "\fB\-mno\-update\fR" 4
18027 .IX Item "-mno-update"
18028 .PD
18029 Generate code that uses (does not use) the load or store instructions
18030 that update the base register to the address of the calculated memory
18031 location.  These instructions are generated by default.  If you use
18032 \&\fB\-mno\-update\fR, there is a small window between the time that the
18033 stack pointer is updated and the address of the previous frame is
18034 stored, which means code that walks the stack frame across interrupts or
18035 signals may get corrupted data.
18036 .IP "\fB\-mavoid\-indexed\-addresses\fR" 4
18037 .IX Item "-mavoid-indexed-addresses"
18038 .PD 0
18039 .IP "\fB\-mno\-avoid\-indexed\-addresses\fR" 4
18040 .IX Item "-mno-avoid-indexed-addresses"
18041 .PD
18042 Generate code that tries to avoid (not avoid) the use of indexed load
18043 or store instructions. These instructions can incur a performance
18044 penalty on Power6 processors in certain situations, such as when
18045 stepping through large arrays that cross a 16M boundary.  This option
18046 is enabled by default when targeting Power6 and disabled otherwise.
18047 .IP "\fB\-mfused\-madd\fR" 4
18048 .IX Item "-mfused-madd"
18049 .PD 0
18050 .IP "\fB\-mno\-fused\-madd\fR" 4
18051 .IX Item "-mno-fused-madd"
18052 .PD
18053 Generate code that uses (does not use) the floating-point multiply and
18054 accumulate instructions.  These instructions are generated by default
18055 if hardware floating point is used.  The machine-dependent
18056 \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
18057 \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
18058 mapped to \fB\-ffp\-contract=off\fR.
18059 .IP "\fB\-mmulhw\fR" 4
18060 .IX Item "-mmulhw"
18061 .PD 0
18062 .IP "\fB\-mno\-mulhw\fR" 4
18063 .IX Item "-mno-mulhw"
18064 .PD
18065 Generate code that uses (does not use) the half-word multiply and
18066 multiply-accumulate instructions on the \s-1IBM\s0 405, 440, 464 and 476 processors.
18067 These instructions are generated by default when targeting those
18068 processors.
18069 .IP "\fB\-mdlmzb\fR" 4
18070 .IX Item "-mdlmzb"
18071 .PD 0
18072 .IP "\fB\-mno\-dlmzb\fR" 4
18073 .IX Item "-mno-dlmzb"
18074 .PD
18075 Generate code that uses (does not use) the string-search \fBdlmzb\fR
18076 instruction on the \s-1IBM\s0 405, 440, 464 and 476 processors.  This instruction is
18077 generated by default when targeting those processors.
18078 .IP "\fB\-mno\-bit\-align\fR" 4
18079 .IX Item "-mno-bit-align"
18080 .PD 0
18081 .IP "\fB\-mbit\-align\fR" 4
18082 .IX Item "-mbit-align"
18083 .PD
18084 On System V.4 and embedded PowerPC systems do not (do) force structures
18085 and unions that contain bit-fields to be aligned to the base type of the
18086 bit-field.
18087 .Sp
18088 For example, by default a structure containing nothing but 8
18089 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 is aligned to a 4\-byte
18090 boundary and has a size of 4 bytes.  By using \fB\-mno\-bit\-align\fR,
18091 the structure is aligned to a 1\-byte boundary and is 1 byte in
18092 size.
18093 .IP "\fB\-mno\-strict\-align\fR" 4
18094 .IX Item "-mno-strict-align"
18095 .PD 0
18096 .IP "\fB\-mstrict\-align\fR" 4
18097 .IX Item "-mstrict-align"
18098 .PD
18099 On System V.4 and embedded PowerPC systems do not (do) assume that
18100 unaligned memory references are handled by the system.
18101 .IP "\fB\-mrelocatable\fR" 4
18102 .IX Item "-mrelocatable"
18103 .PD 0
18104 .IP "\fB\-mno\-relocatable\fR" 4
18105 .IX Item "-mno-relocatable"
18106 .PD
18107 Generate code that allows (does not allow) a static executable to be
18108 relocated to a different address at run time.  A simple embedded
18109 PowerPC system loader should relocate the entire contents of
18110 \&\f(CW\*(C`.got2\*(C'\fR and 4\-byte locations listed in the \f(CW\*(C`.fixup\*(C'\fR section,
18111 a table of 32\-bit addresses generated by this option.  For this to
18112 work, all objects linked together must be compiled with
18113 \&\fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
18114 \&\fB\-mrelocatable\fR code aligns the stack to an 8\-byte boundary.
18115 .IP "\fB\-mrelocatable\-lib\fR" 4
18116 .IX Item "-mrelocatable-lib"
18117 .PD 0
18118 .IP "\fB\-mno\-relocatable\-lib\fR" 4
18119 .IX Item "-mno-relocatable-lib"
18120 .PD
18121 Like \fB\-mrelocatable\fR, \fB\-mrelocatable\-lib\fR generates a
18122 \&\f(CW\*(C`.fixup\*(C'\fR section to allow static executables to be relocated at
18123 run time, but \fB\-mrelocatable\-lib\fR does not use the smaller stack
18124 alignment of \fB\-mrelocatable\fR.  Objects compiled with
18125 \&\fB\-mrelocatable\-lib\fR may be linked with objects compiled with
18126 any combination of the \fB\-mrelocatable\fR options.
18127 .IP "\fB\-mno\-toc\fR" 4
18128 .IX Item "-mno-toc"
18129 .PD 0
18130 .IP "\fB\-mtoc\fR" 4
18131 .IX Item "-mtoc"
18132 .PD
18133 On System V.4 and embedded PowerPC systems do not (do) assume that
18134 register 2 contains a pointer to a global area pointing to the addresses
18135 used in the program.
18136 .IP "\fB\-mlittle\fR" 4
18137 .IX Item "-mlittle"
18138 .PD 0
18139 .IP "\fB\-mlittle\-endian\fR" 4
18140 .IX Item "-mlittle-endian"
18141 .PD
18142 On System V.4 and embedded PowerPC systems compile code for the
18143 processor in little-endian mode.  The \fB\-mlittle\-endian\fR option is
18144 the same as \fB\-mlittle\fR.
18145 .IP "\fB\-mbig\fR" 4
18146 .IX Item "-mbig"
18147 .PD 0
18148 .IP "\fB\-mbig\-endian\fR" 4
18149 .IX Item "-mbig-endian"
18150 .PD
18151 On System V.4 and embedded PowerPC systems compile code for the
18152 processor in big-endian mode.  The \fB\-mbig\-endian\fR option is
18153 the same as \fB\-mbig\fR.
18154 .IP "\fB\-mdynamic\-no\-pic\fR" 4
18155 .IX Item "-mdynamic-no-pic"
18156 On Darwin and Mac \s-1OS\s0 X systems, compile code so that it is not
18157 relocatable, but that its external references are relocatable.  The
18158 resulting code is suitable for applications, but not shared
18159 libraries.
18160 .IP "\fB\-msingle\-pic\-base\fR" 4
18161 .IX Item "-msingle-pic-base"
18162 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
18163 loading it in the prologue for each function.  The runtime system is
18164 responsible for initializing this register with an appropriate value
18165 before execution begins.
18166 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
18167 .IX Item "-mprioritize-restricted-insns=priority"
18168 This option controls the priority that is assigned to
18169 dispatch-slot restricted instructions during the second scheduling
18170 pass.  The argument \fIpriority\fR takes the value \fB0\fR, \fB1\fR,
18171 or \fB2\fR to assign no, highest, or second-highest (respectively) 
18172 priority to dispatch-slot restricted
18173 instructions.
18174 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
18175 .IX Item "-msched-costly-dep=dependence_type"
18176 This option controls which dependences are considered costly
18177 by the target during instruction scheduling.  The argument
18178 \&\fIdependence_type\fR takes one of the following values:
18179 .RS 4
18180 .IP "\fBno\fR" 4
18181 .IX Item "no"
18182 No dependence is costly.
18183 .IP "\fBall\fR" 4
18184 .IX Item "all"
18185 All dependences are costly.
18186 .IP "\fBtrue_store_to_load\fR" 4
18187 .IX Item "true_store_to_load"
18188 A true dependence from store to load is costly.
18189 .IP "\fBstore_to_load\fR" 4
18190 .IX Item "store_to_load"
18191 Any dependence from store to load is costly.
18192 .IP "\fInumber\fR" 4
18193 .IX Item "number"
18194 Any dependence for which the latency is greater than or equal to 
18195 \&\fInumber\fR is costly.
18196 .RE
18197 .RS 4
18198 .RE
18199 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
18200 .IX Item "-minsert-sched-nops=scheme"
18201 This option controls which \s-1NOP\s0 insertion scheme is used during
18202 the second scheduling pass.  The argument \fIscheme\fR takes one of the
18203 following values:
18204 .RS 4
18205 .IP "\fBno\fR" 4
18206 .IX Item "no"
18207 Don't insert NOPs.
18208 .IP "\fBpad\fR" 4
18209 .IX Item "pad"
18210 Pad with NOPs any dispatch group that has vacant issue slots,
18211 according to the scheduler's grouping.
18212 .IP "\fBregroup_exact\fR" 4
18213 .IX Item "regroup_exact"
18214 Insert NOPs to force costly dependent insns into
18215 separate groups.  Insert exactly as many NOPs as needed to force an insn
18216 to a new group, according to the estimated processor grouping.
18217 .IP "\fInumber\fR" 4
18218 .IX Item "number"
18219 Insert NOPs to force costly dependent insns into
18220 separate groups.  Insert \fInumber\fR NOPs to force an insn to a new group.
18221 .RE
18222 .RS 4
18223 .RE
18224 .IP "\fB\-mcall\-sysv\fR" 4
18225 .IX Item "-mcall-sysv"
18226 On System V.4 and embedded PowerPC systems compile code using calling
18227 conventions that adhere to the March 1995 draft of the System V
18228 Application Binary Interface, PowerPC processor supplement.  This is the
18229 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
18230 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
18231 .IX Item "-mcall-sysv-eabi"
18232 .PD 0
18233 .IP "\fB\-mcall\-eabi\fR" 4
18234 .IX Item "-mcall-eabi"
18235 .PD
18236 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
18237 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
18238 .IX Item "-mcall-sysv-noeabi"
18239 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
18240 .IP "\fB\-mcall\-aixdesc\fR" 4
18241 .IX Item "-mcall-aixdesc"
18242 On System V.4 and embedded PowerPC systems compile code for the \s-1AIX\s0
18243 operating system.
18244 .IP "\fB\-mcall\-linux\fR" 4
18245 .IX Item "-mcall-linux"
18246 On System V.4 and embedded PowerPC systems compile code for the
18247 Linux-based \s-1GNU\s0 system.
18248 .IP "\fB\-mcall\-freebsd\fR" 4
18249 .IX Item "-mcall-freebsd"
18250 On System V.4 and embedded PowerPC systems compile code for the
18251 FreeBSD operating system.
18252 .IP "\fB\-mcall\-netbsd\fR" 4
18253 .IX Item "-mcall-netbsd"
18254 On System V.4 and embedded PowerPC systems compile code for the
18255 NetBSD operating system.
18256 .IP "\fB\-mcall\-openbsd\fR" 4
18257 .IX Item "-mcall-openbsd"
18258 On System V.4 and embedded PowerPC systems compile code for the
18259 OpenBSD operating system.
18260 .IP "\fB\-maix\-struct\-return\fR" 4
18261 .IX Item "-maix-struct-return"
18262 Return all structures in memory (as specified by the \s-1AIX\s0 \s-1ABI\s0).
18263 .IP "\fB\-msvr4\-struct\-return\fR" 4
18264 .IX Item "-msvr4-struct-return"
18265 Return structures smaller than 8 bytes in registers (as specified by the
18266 \&\s-1SVR4\s0 \s-1ABI\s0).
18267 .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
18268 .IX Item "-mabi=abi-type"
18269 Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
18270 Valid values are \fBaltivec\fR, \fBno-altivec\fR, \fBspe\fR,
18271 \&\fBno-spe\fR, \fBibmlongdouble\fR, \fBieeelongdouble\fR,
18272 \&\fBelfv1\fR, \fBelfv2\fR.
18273 .IP "\fB\-mabi=spe\fR" 4
18274 .IX Item "-mabi=spe"
18275 Extend the current \s-1ABI\s0 with \s-1SPE\s0 \s-1ABI\s0 extensions.  This does not change
18276 the default \s-1ABI\s0, instead it adds the \s-1SPE\s0 \s-1ABI\s0 extensions to the current
18277 \&\s-1ABI\s0.
18278 .IP "\fB\-mabi=no\-spe\fR" 4
18279 .IX Item "-mabi=no-spe"
18280 Disable Book-E \s-1SPE\s0 \s-1ABI\s0 extensions for the current \s-1ABI\s0.
18281 .IP "\fB\-mabi=ibmlongdouble\fR" 4
18282 .IX Item "-mabi=ibmlongdouble"
18283 Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended-precision long double.
18284 This is a PowerPC 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
18285 .IP "\fB\-mabi=ieeelongdouble\fR" 4
18286 .IX Item "-mabi=ieeelongdouble"
18287 Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended-precision long double.
18288 This is a PowerPC 32\-bit Linux \s-1ABI\s0 option.
18289 .IP "\fB\-mabi=elfv1\fR" 4
18290 .IX Item "-mabi=elfv1"
18291 Change the current \s-1ABI\s0 to use the ELFv1 \s-1ABI\s0.
18292 This is the default \s-1ABI\s0 for big-endian PowerPC 64\-bit Linux.
18293 Overriding the default \s-1ABI\s0 requires special system support and is
18294 likely to fail in spectacular ways.
18295 .IP "\fB\-mabi=elfv2\fR" 4
18296 .IX Item "-mabi=elfv2"
18297 Change the current \s-1ABI\s0 to use the ELFv2 \s-1ABI\s0.
18298 This is the default \s-1ABI\s0 for little-endian PowerPC 64\-bit Linux.
18299 Overriding the default \s-1ABI\s0 requires special system support and is
18300 likely to fail in spectacular ways.
18301 .IP "\fB\-mprototype\fR" 4
18302 .IX Item "-mprototype"
18303 .PD 0
18304 .IP "\fB\-mno\-prototype\fR" 4
18305 .IX Item "-mno-prototype"
18306 .PD
18307 On System V.4 and embedded PowerPC systems assume that all calls to
18308 variable argument functions are properly prototyped.  Otherwise, the
18309 compiler must insert an instruction before every non-prototyped call to
18310 set or clear bit 6 of the condition code register (\f(CW\*(C`CR\*(C'\fR) to
18311 indicate whether floating-point values are passed in the floating-point
18312 registers in case the function takes variable arguments.  With
18313 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
18314 set or clear the bit.
18315 .IP "\fB\-msim\fR" 4
18316 .IX Item "-msim"
18317 On embedded PowerPC systems, assume that the startup module is called
18318 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
18319 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR
18320 configurations.
18321 .IP "\fB\-mmvme\fR" 4
18322 .IX Item "-mmvme"
18323 On embedded PowerPC systems, assume that the startup module is called
18324 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
18325 \&\fIlibc.a\fR.
18326 .IP "\fB\-mads\fR" 4
18327 .IX Item "-mads"
18328 On embedded PowerPC systems, assume that the startup module is called
18329 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
18330 \&\fIlibc.a\fR.
18331 .IP "\fB\-myellowknife\fR" 4
18332 .IX Item "-myellowknife"
18333 On embedded PowerPC systems, assume that the startup module is called
18334 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
18335 \&\fIlibc.a\fR.
18336 .IP "\fB\-mvxworks\fR" 4
18337 .IX Item "-mvxworks"
18338 On System V.4 and embedded PowerPC systems, specify that you are
18339 compiling for a VxWorks system.
18340 .IP "\fB\-memb\fR" 4
18341 .IX Item "-memb"
18342 On embedded PowerPC systems, set the \f(CW\*(C`PPC_EMB\*(C'\fR bit in the \s-1ELF\s0 flags
18343 header to indicate that \fBeabi\fR extended relocations are used.
18344 .IP "\fB\-meabi\fR" 4
18345 .IX Item "-meabi"
18346 .PD 0
18347 .IP "\fB\-mno\-eabi\fR" 4
18348 .IX Item "-mno-eabi"
18349 .PD
18350 On System V.4 and embedded PowerPC systems do (do not) adhere to the
18351 Embedded Applications Binary Interface (\s-1EABI\s0), which is a set of
18352 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
18353 means that the stack is aligned to an 8\-byte boundary, a function
18354 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called from \f(CW\*(C`main\*(C'\fR to set up the \s-1EABI\s0
18355 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
18356 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
18357 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16\-byte boundary,
18358 no \s-1EABI\s0 initialization function is called from \f(CW\*(C`main\*(C'\fR, and the
18359 \&\fB\-msdata\fR option only uses \f(CW\*(C`r13\*(C'\fR to point to a single
18360 small data area.  The \fB\-meabi\fR option is on by default if you
18361 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
18362 .IP "\fB\-msdata=eabi\fR" 4
18363 .IX Item "-msdata=eabi"
18364 On System V.4 and embedded PowerPC systems, put small initialized
18365 \&\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata2\*(C'\fR section, which
18366 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
18367 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata\*(C'\fR section,
18368 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
18369 global and static data in the \f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to
18370 the \f(CW\*(C`.sdata\*(C'\fR section.  The \fB\-msdata=eabi\fR option is
18371 incompatible with the \fB\-mrelocatable\fR option.  The
18372 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
18373 .IP "\fB\-msdata=sysv\fR" 4
18374 .IX Item "-msdata=sysv"
18375 On System V.4 and embedded PowerPC systems, put small global and static
18376 data in the \f(CW\*(C`.sdata\*(C'\fR section, which is pointed to by register
18377 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
18378 \&\f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to the \f(CW\*(C`.sdata\*(C'\fR section.
18379 The \fB\-msdata=sysv\fR option is incompatible with the
18380 \&\fB\-mrelocatable\fR option.
18381 .IP "\fB\-msdata=default\fR" 4
18382 .IX Item "-msdata=default"
18383 .PD 0
18384 .IP "\fB\-msdata\fR" 4
18385 .IX Item "-msdata"
18386 .PD
18387 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
18388 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
18389 same as \fB\-msdata=sysv\fR.
18390 .IP "\fB\-msdata=data\fR" 4
18391 .IX Item "-msdata=data"
18392 On System V.4 and embedded PowerPC systems, put small global
18393 data in the \f(CW\*(C`.sdata\*(C'\fR section.  Put small uninitialized global
18394 data in the \f(CW\*(C`.sbss\*(C'\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
18395 to address small data however.  This is the default behavior unless
18396 other \fB\-msdata\fR options are used.
18397 .IP "\fB\-msdata=none\fR" 4
18398 .IX Item "-msdata=none"
18399 .PD 0
18400 .IP "\fB\-mno\-sdata\fR" 4
18401 .IX Item "-mno-sdata"
18402 .PD
18403 On embedded PowerPC systems, put all initialized global and static data
18404 in the \f(CW\*(C`.data\*(C'\fR section, and all uninitialized data in the
18405 \&\f(CW\*(C`.bss\*(C'\fR section.
18406 .IP "\fB\-mblock\-move\-inline\-limit=\fR\fInum\fR" 4
18407 .IX Item "-mblock-move-inline-limit=num"
18408 Inline all block moves (such as calls to \f(CW\*(C`memcpy\*(C'\fR or structure
18409 copies) less than or equal to \fInum\fR bytes.  The minimum value for
18410 \&\fInum\fR is 32 bytes on 32\-bit targets and 64 bytes on 64\-bit
18411 targets.  The default value is target-specific.
18412 .IP "\fB\-G\fR \fInum\fR" 4
18413 .IX Item "-G num"
18414 On embedded PowerPC systems, put global and static items less than or
18415 equal to \fInum\fR bytes into the small data or \s-1BSS\s0 sections instead of
18416 the normal data or \s-1BSS\s0 section.  By default, \fInum\fR is 8.  The
18417 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
18418 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
18419 .IP "\fB\-mregnames\fR" 4
18420 .IX Item "-mregnames"
18421 .PD 0
18422 .IP "\fB\-mno\-regnames\fR" 4
18423 .IX Item "-mno-regnames"
18424 .PD
18425 On System V.4 and embedded PowerPC systems do (do not) emit register
18426 names in the assembly language output using symbolic forms.
18427 .IP "\fB\-mlongcall\fR" 4
18428 .IX Item "-mlongcall"
18429 .PD 0
18430 .IP "\fB\-mno\-longcall\fR" 4
18431 .IX Item "-mno-longcall"
18432 .PD
18433 By default assume that all calls are far away so that a longer and more
18434 expensive calling sequence is required.  This is required for calls
18435 farther than 32 megabytes (33,554,432 bytes) from the current location.
18436 A short call is generated if the compiler knows
18437 the call cannot be that far away.  This setting can be overridden by
18438 the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
18439 longcall(0)\*(C'\fR.
18440 .Sp
18441 Some linkers are capable of detecting out-of-range calls and generating
18442 glue code on the fly.  On these systems, long calls are unnecessary and
18443 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
18444 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
18445 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
18446 .Sp
18447 On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR generates \f(CW\*(C`jbsr
18448 callee, L42\*(C'\fR, plus a \fIbranch island\fR (glue code).  The two target
18449 addresses represent the callee and the branch island.  The
18450 Darwin/PPC linker prefers the first address and generates a \f(CW\*(C`bl
18451 callee\*(C'\fR if the \s-1PPC\s0 \f(CW\*(C`bl\*(C'\fR instruction reaches the callee directly;
18452 otherwise, the linker generates \f(CW\*(C`bl L42\*(C'\fR to call the branch
18453 island.  The branch island is appended to the body of the
18454 calling function; it computes the full 32\-bit address of the callee
18455 and jumps to it.
18456 .Sp
18457 On Mach-O (Darwin) systems, this option directs the compiler emit to
18458 the glue for every direct call, and the Darwin linker decides whether
18459 to use or discard it.
18460 .Sp
18461 In the future, \s-1GCC\s0 may ignore all longcall specifications
18462 when the linker is known to generate glue.
18463 .IP "\fB\-mtls\-markers\fR" 4
18464 .IX Item "-mtls-markers"
18465 .PD 0
18466 .IP "\fB\-mno\-tls\-markers\fR" 4
18467 .IX Item "-mno-tls-markers"
18468 .PD
18469 Mark (do not mark) calls to \f(CW\*(C`_\|_tls_get_addr\*(C'\fR with a relocation
18470 specifying the function argument.  The relocation allows the linker to
18471 reliably associate function call with argument setup instructions for
18472 \&\s-1TLS\s0 optimization, which in turn allows \s-1GCC\s0 to better schedule the
18473 sequence.
18474 .IP "\fB\-pthread\fR" 4
18475 .IX Item "-pthread"
18476 Adds support for multithreading with the \fIpthreads\fR library.
18477 This option sets flags for both the preprocessor and linker.
18478 .IP "\fB\-mrecip\fR" 4
18479 .IX Item "-mrecip"
18480 .PD 0
18481 .IP "\fB\-mno\-recip\fR" 4
18482 .IX Item "-mno-recip"
18483 .PD
18484 This option enables use of the reciprocal estimate and
18485 reciprocal square root estimate instructions with additional
18486 Newton-Raphson steps to increase precision instead of doing a divide or
18487 square root and divide for floating-point arguments.  You should use
18488 the \fB\-ffast\-math\fR option when using \fB\-mrecip\fR (or at
18489 least \fB\-funsafe\-math\-optimizations\fR,
18490 \&\fB\-finite\-math\-only\fR, \fB\-freciprocal\-math\fR and
18491 \&\fB\-fno\-trapping\-math\fR).  Note that while the throughput of the
18492 sequence is generally higher than the throughput of the non-reciprocal
18493 instruction, the precision of the sequence can be decreased by up to 2
18494 ulp (i.e. the inverse of 1.0 equals 0.99999994) for reciprocal square
18495 roots.
18496 .IP "\fB\-mrecip=\fR\fIopt\fR" 4
18497 .IX Item "-mrecip=opt"
18498 This option controls which reciprocal estimate instructions
18499 may be used.  \fIopt\fR is a comma-separated list of options, which may
18500 be preceded by a \f(CW\*(C`!\*(C'\fR to invert the option:
18501 .RS 4
18502 .IP "\fBall\fR" 4
18503 .IX Item "all"
18504 Enable all estimate instructions.
18505 .IP "\fBdefault\fR" 4
18506 .IX Item "default"
18507 Enable the default instructions, equivalent to \fB\-mrecip\fR.
18508 .IP "\fBnone\fR" 4
18509 .IX Item "none"
18510 Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
18511 .IP "\fBdiv\fR" 4
18512 .IX Item "div"
18513 Enable the reciprocal approximation instructions for both 
18514 single and double precision.
18515 .IP "\fBdivf\fR" 4
18516 .IX Item "divf"
18517 Enable the single-precision reciprocal approximation instructions.
18518 .IP "\fBdivd\fR" 4
18519 .IX Item "divd"
18520 Enable the double-precision reciprocal approximation instructions.
18521 .IP "\fBrsqrt\fR" 4
18522 .IX Item "rsqrt"
18523 Enable the reciprocal square root approximation instructions for both
18524 single and double precision.
18525 .IP "\fBrsqrtf\fR" 4
18526 .IX Item "rsqrtf"
18527 Enable the single-precision reciprocal square root approximation instructions.
18528 .IP "\fBrsqrtd\fR" 4
18529 .IX Item "rsqrtd"
18530 Enable the double-precision reciprocal square root approximation instructions.
18531 .RE
18532 .RS 4
18533 .Sp
18534 So, for example, \fB\-mrecip=all,!rsqrtd\fR enables
18535 all of the reciprocal estimate instructions, except for the
18536 \&\f(CW\*(C`FRSQRTE\*(C'\fR, \f(CW\*(C`XSRSQRTEDP\*(C'\fR, and \f(CW\*(C`XVRSQRTEDP\*(C'\fR instructions
18537 which handle the double-precision reciprocal square root calculations.
18538 .RE
18539 .IP "\fB\-mrecip\-precision\fR" 4
18540 .IX Item "-mrecip-precision"
18541 .PD 0
18542 .IP "\fB\-mno\-recip\-precision\fR" 4
18543 .IX Item "-mno-recip-precision"
18544 .PD
18545 Assume (do not assume) that the reciprocal estimate instructions
18546 provide higher-precision estimates than is mandated by the PowerPC
18547 \&\s-1ABI\s0.  Selecting \fB\-mcpu=power6\fR, \fB\-mcpu=power7\fR or
18548 \&\fB\-mcpu=power8\fR automatically selects \fB\-mrecip\-precision\fR.
18549 The double-precision square root estimate instructions are not generated by
18550 default on low-precision machines, since they do not provide an
18551 estimate that converges after three steps.
18552 .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
18553 .IX Item "-mveclibabi=type"
18554 Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
18555 external library.  The only type supported at present is \fBmass\fR,
18556 which specifies to use \s-1IBM\s0's Mathematical Acceleration Subsystem
18557 (\s-1MASS\s0) libraries for vectorizing intrinsics using external libraries.
18558 \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`acosd2\*(C'\fR, \f(CW\*(C`acosf4\*(C'\fR,
18559 \&\f(CW\*(C`acoshd2\*(C'\fR, \f(CW\*(C`acoshf4\*(C'\fR, \f(CW\*(C`asind2\*(C'\fR, \f(CW\*(C`asinf4\*(C'\fR,
18560 \&\f(CW\*(C`asinhd2\*(C'\fR, \f(CW\*(C`asinhf4\*(C'\fR, \f(CW\*(C`atan2d2\*(C'\fR, \f(CW\*(C`atan2f4\*(C'\fR,
18561 \&\f(CW\*(C`atand2\*(C'\fR, \f(CW\*(C`atanf4\*(C'\fR, \f(CW\*(C`atanhd2\*(C'\fR, \f(CW\*(C`atanhf4\*(C'\fR,
18562 \&\f(CW\*(C`cbrtd2\*(C'\fR, \f(CW\*(C`cbrtf4\*(C'\fR, \f(CW\*(C`cosd2\*(C'\fR, \f(CW\*(C`cosf4\*(C'\fR,
18563 \&\f(CW\*(C`coshd2\*(C'\fR, \f(CW\*(C`coshf4\*(C'\fR, \f(CW\*(C`erfcd2\*(C'\fR, \f(CW\*(C`erfcf4\*(C'\fR,
18564 \&\f(CW\*(C`erfd2\*(C'\fR, \f(CW\*(C`erff4\*(C'\fR, \f(CW\*(C`exp2d2\*(C'\fR, \f(CW\*(C`exp2f4\*(C'\fR,
18565 \&\f(CW\*(C`expd2\*(C'\fR, \f(CW\*(C`expf4\*(C'\fR, \f(CW\*(C`expm1d2\*(C'\fR, \f(CW\*(C`expm1f4\*(C'\fR,
18566 \&\f(CW\*(C`hypotd2\*(C'\fR, \f(CW\*(C`hypotf4\*(C'\fR, \f(CW\*(C`lgammad2\*(C'\fR, \f(CW\*(C`lgammaf4\*(C'\fR,
18567 \&\f(CW\*(C`log10d2\*(C'\fR, \f(CW\*(C`log10f4\*(C'\fR, \f(CW\*(C`log1pd2\*(C'\fR, \f(CW\*(C`log1pf4\*(C'\fR,
18568 \&\f(CW\*(C`log2d2\*(C'\fR, \f(CW\*(C`log2f4\*(C'\fR, \f(CW\*(C`logd2\*(C'\fR, \f(CW\*(C`logf4\*(C'\fR,
18569 \&\f(CW\*(C`powd2\*(C'\fR, \f(CW\*(C`powf4\*(C'\fR, \f(CW\*(C`sind2\*(C'\fR, \f(CW\*(C`sinf4\*(C'\fR, \f(CW\*(C`sinhd2\*(C'\fR,
18570 \&\f(CW\*(C`sinhf4\*(C'\fR, \f(CW\*(C`sqrtd2\*(C'\fR, \f(CW\*(C`sqrtf4\*(C'\fR, \f(CW\*(C`tand2\*(C'\fR,
18571 \&\f(CW\*(C`tanf4\*(C'\fR, \f(CW\*(C`tanhd2\*(C'\fR, and \f(CW\*(C`tanhf4\*(C'\fR when generating code
18572 for power7.  Both \fB\-ftree\-vectorize\fR and
18573 \&\fB\-funsafe\-math\-optimizations\fR must also be enabled.  The \s-1MASS\s0
18574 libraries must be specified at link time.
18575 .IP "\fB\-mfriz\fR" 4
18576 .IX Item "-mfriz"
18577 .PD 0
18578 .IP "\fB\-mno\-friz\fR" 4
18579 .IX Item "-mno-friz"
18580 .PD
18581 Generate (do not generate) the \f(CW\*(C`friz\*(C'\fR instruction when the
18582 \&\fB\-funsafe\-math\-optimizations\fR option is used to optimize
18583 rounding of floating-point values to 64\-bit integer and back to floating
18584 point.  The \f(CW\*(C`friz\*(C'\fR instruction does not return the same value if
18585 the floating-point number is too large to fit in an integer.
18586 .IP "\fB\-mpointers\-to\-nested\-functions\fR" 4
18587 .IX Item "-mpointers-to-nested-functions"
18588 .PD 0
18589 .IP "\fB\-mno\-pointers\-to\-nested\-functions\fR" 4
18590 .IX Item "-mno-pointers-to-nested-functions"
18591 .PD
18592 Generate (do not generate) code to load up the static chain register
18593 (\f(CW\*(C`r11\*(C'\fR) when calling through a pointer on \s-1AIX\s0 and 64\-bit Linux
18594 systems where a function pointer points to a 3\-word descriptor giving
18595 the function address, \s-1TOC\s0 value to be loaded in register \f(CW\*(C`r2\*(C'\fR, and
18596 static chain value to be loaded in register \f(CW\*(C`r11\*(C'\fR.  The
18597 \&\fB\-mpointers\-to\-nested\-functions\fR is on by default.  You cannot
18598 call through pointers to nested functions or pointers
18599 to functions compiled in other languages that use the static chain if
18600 you use \fB\-mno\-pointers\-to\-nested\-functions\fR.
18601 .IP "\fB\-msave\-toc\-indirect\fR" 4
18602 .IX Item "-msave-toc-indirect"
18603 .PD 0
18604 .IP "\fB\-mno\-save\-toc\-indirect\fR" 4
18605 .IX Item "-mno-save-toc-indirect"
18606 .PD
18607 Generate (do not generate) code to save the \s-1TOC\s0 value in the reserved
18608 stack location in the function prologue if the function calls through
18609 a pointer on \s-1AIX\s0 and 64\-bit Linux systems.  If the \s-1TOC\s0 value is not
18610 saved in the prologue, it is saved just before the call through the
18611 pointer.  The \fB\-mno\-save\-toc\-indirect\fR option is the default.
18612 .IP "\fB\-mcompat\-align\-parm\fR" 4
18613 .IX Item "-mcompat-align-parm"
18614 .PD 0
18615 .IP "\fB\-mno\-compat\-align\-parm\fR" 4
18616 .IX Item "-mno-compat-align-parm"
18617 .PD
18618 Generate (do not generate) code to pass structure parameters with a
18619 maximum alignment of 64 bits, for compatibility with older versions
18620 of \s-1GCC\s0.
18621 .Sp
18622 Older versions of \s-1GCC\s0 (prior to 4.9.0) incorrectly did not align a
18623 structure parameter on a 128\-bit boundary when that structure contained
18624 a member requiring 128\-bit alignment.  This is corrected in more
18625 recent versions of \s-1GCC\s0.  This option may be used to generate code
18626 that is compatible with functions compiled with older versions of
18627 \&\s-1GCC\s0.
18628 .Sp
18629 The \fB\-mno\-compat\-align\-parm\fR option is the default.
18630 .PP
18631 \fI\s-1RX\s0 Options\fR
18632 .IX Subsection "RX Options"
18633 .PP
18634 These command-line options are defined for \s-1RX\s0 targets:
18635 .IP "\fB\-m64bit\-doubles\fR" 4
18636 .IX Item "-m64bit-doubles"
18637 .PD 0
18638 .IP "\fB\-m32bit\-doubles\fR" 4
18639 .IX Item "-m32bit-doubles"
18640 .PD
18641 Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
18642 or 32 bits (\fB\-m32bit\-doubles\fR) in size.  The default is
18643 \&\fB\-m32bit\-doubles\fR.  \fINote\fR \s-1RX\s0 floating-point hardware only
18644 works on 32\-bit values, which is why the default is
18645 \&\fB\-m32bit\-doubles\fR.
18646 .IP "\fB\-fpu\fR" 4
18647 .IX Item "-fpu"
18648 .PD 0
18649 .IP "\fB\-nofpu\fR" 4
18650 .IX Item "-nofpu"
18651 .PD
18652 Enables (\fB\-fpu\fR) or disables (\fB\-nofpu\fR) the use of \s-1RX\s0
18653 floating-point hardware.  The default is enabled for the \s-1RX600\s0
18654 series and disabled for the \s-1RX200\s0 series.
18655 .Sp
18656 Floating-point instructions are only generated for 32\-bit floating-point 
18657 values, however, so the \s-1FPU\s0 hardware is not used for doubles if the
18658 \&\fB\-m64bit\-doubles\fR option is used.
18659 .Sp
18660 \&\fINote\fR If the \fB\-fpu\fR option is enabled then
18661 \&\fB\-funsafe\-math\-optimizations\fR is also enabled automatically.
18662 This is because the \s-1RX\s0 \s-1FPU\s0 instructions are themselves unsafe.
18663 .IP "\fB\-mcpu=\fR\fIname\fR" 4
18664 .IX Item "-mcpu=name"
18665 Selects the type of \s-1RX\s0 \s-1CPU\s0 to be targeted.  Currently three types are
18666 supported, the generic \fB\s-1RX600\s0\fR and \fB\s-1RX200\s0\fR series hardware and
18667 the specific \fB\s-1RX610\s0\fR \s-1CPU\s0.  The default is \fB\s-1RX600\s0\fR.
18668 .Sp
18669 The only difference between \fB\s-1RX600\s0\fR and \fB\s-1RX610\s0\fR is that the
18670 \&\fB\s-1RX610\s0\fR does not support the \f(CW\*(C`MVTIPL\*(C'\fR instruction.
18671 .Sp
18672 The \fB\s-1RX200\s0\fR series does not have a hardware floating-point unit
18673 and so \fB\-nofpu\fR is enabled by default when this type is
18674 selected.
18675 .IP "\fB\-mbig\-endian\-data\fR" 4
18676 .IX Item "-mbig-endian-data"
18677 .PD 0
18678 .IP "\fB\-mlittle\-endian\-data\fR" 4
18679 .IX Item "-mlittle-endian-data"
18680 .PD
18681 Store data (but not code) in the big-endian format.  The default is
18682 \&\fB\-mlittle\-endian\-data\fR, i.e. to store data in the little-endian
18683 format.
18684 .IP "\fB\-msmall\-data\-limit=\fR\fIN\fR" 4
18685 .IX Item "-msmall-data-limit=N"
18686 Specifies the maximum size in bytes of global and static variables
18687 which can be placed into the small data area.  Using the small data
18688 area can lead to smaller and faster code, but the size of area is
18689 limited and it is up to the programmer to ensure that the area does
18690 not overflow.  Also when the small data area is used one of the \s-1RX\s0's
18691 registers (usually \f(CW\*(C`r13\*(C'\fR) is reserved for use pointing to this
18692 area, so it is no longer available for use by the compiler.  This
18693 could result in slower and/or larger code if variables are pushed onto
18694 the stack instead of being held in this register.
18695 .Sp
18696 Note, common variables (variables that have not been initialized) and
18697 constants are not placed into the small data area as they are assigned
18698 to other sections in the output executable.
18699 .Sp
18700 The default value is zero, which disables this feature.  Note, this
18701 feature is not enabled by default with higher optimization levels
18702 (\fB\-O2\fR etc) because of the potentially detrimental effects of
18703 reserving a register.  It is up to the programmer to experiment and
18704 discover whether this feature is of benefit to their program.  See the
18705 description of the \fB\-mpid\fR option for a description of how the
18706 actual register to hold the small data area pointer is chosen.
18707 .IP "\fB\-msim\fR" 4
18708 .IX Item "-msim"
18709 .PD 0
18710 .IP "\fB\-mno\-sim\fR" 4
18711 .IX Item "-mno-sim"
18712 .PD
18713 Use the simulator runtime.  The default is to use the libgloss
18714 board-specific runtime.
18715 .IP "\fB\-mas100\-syntax\fR" 4
18716 .IX Item "-mas100-syntax"
18717 .PD 0
18718 .IP "\fB\-mno\-as100\-syntax\fR" 4
18719 .IX Item "-mno-as100-syntax"
18720 .PD
18721 When generating assembler output use a syntax that is compatible with
18722 Renesas's \s-1AS100\s0 assembler.  This syntax can also be handled by the \s-1GAS\s0
18723 assembler, but it has some restrictions so it is not generated by default.
18724 .IP "\fB\-mmax\-constant\-size=\fR\fIN\fR" 4
18725 .IX Item "-mmax-constant-size=N"
18726 Specifies the maximum size, in bytes, of a constant that can be used as
18727 an operand in a \s-1RX\s0 instruction.  Although the \s-1RX\s0 instruction set does
18728 allow constants of up to 4 bytes in length to be used in instructions,
18729 a longer value equates to a longer instruction.  Thus in some
18730 circumstances it can be beneficial to restrict the size of constants
18731 that are used in instructions.  Constants that are too big are instead
18732 placed into a constant pool and referenced via register indirection.
18733 .Sp
18734 The value \fIN\fR can be between 0 and 4.  A value of 0 (the default)
18735 or 4 means that constants of any size are allowed.
18736 .IP "\fB\-mrelax\fR" 4
18737 .IX Item "-mrelax"
18738 Enable linker relaxation.  Linker relaxation is a process whereby the
18739 linker attempts to reduce the size of a program by finding shorter
18740 versions of various instructions.  Disabled by default.
18741 .IP "\fB\-mint\-register=\fR\fIN\fR" 4
18742 .IX Item "-mint-register=N"
18743 Specify the number of registers to reserve for fast interrupt handler
18744 functions.  The value \fIN\fR can be between 0 and 4.  A value of 1
18745 means that register \f(CW\*(C`r13\*(C'\fR is reserved for the exclusive use
18746 of fast interrupt handlers.  A value of 2 reserves \f(CW\*(C`r13\*(C'\fR and
18747 \&\f(CW\*(C`r12\*(C'\fR.  A value of 3 reserves \f(CW\*(C`r13\*(C'\fR, \f(CW\*(C`r12\*(C'\fR and
18748 \&\f(CW\*(C`r11\*(C'\fR, and a value of 4 reserves \f(CW\*(C`r13\*(C'\fR through \f(CW\*(C`r10\*(C'\fR.
18749 A value of 0, the default, does not reserve any registers.
18750 .IP "\fB\-msave\-acc\-in\-interrupts\fR" 4
18751 .IX Item "-msave-acc-in-interrupts"
18752 Specifies that interrupt handler functions should preserve the
18753 accumulator register.  This is only necessary if normal code might use
18754 the accumulator register, for example because it performs 64\-bit
18755 multiplications.  The default is to ignore the accumulator as this
18756 makes the interrupt handlers faster.
18757 .IP "\fB\-mpid\fR" 4
18758 .IX Item "-mpid"
18759 .PD 0
18760 .IP "\fB\-mno\-pid\fR" 4
18761 .IX Item "-mno-pid"
18762 .PD
18763 Enables the generation of position independent data.  When enabled any
18764 access to constant data is done via an offset from a base address
18765 held in a register.  This allows the location of constant data to be
18766 determined at run time without requiring the executable to be
18767 relocated, which is a benefit to embedded applications with tight
18768 memory constraints.  Data that can be modified is not affected by this
18769 option.
18770 .Sp
18771 Note, using this feature reserves a register, usually \f(CW\*(C`r13\*(C'\fR, for
18772 the constant data base address.  This can result in slower and/or
18773 larger code, especially in complicated functions.
18774 .Sp
18775 The actual register chosen to hold the constant data base address
18776 depends upon whether the \fB\-msmall\-data\-limit\fR and/or the
18777 \&\fB\-mint\-register\fR command-line options are enabled.  Starting
18778 with register \f(CW\*(C`r13\*(C'\fR and proceeding downwards, registers are
18779 allocated first to satisfy the requirements of \fB\-mint\-register\fR,
18780 then \fB\-mpid\fR and finally \fB\-msmall\-data\-limit\fR.  Thus it
18781 is possible for the small data area register to be \f(CW\*(C`r8\*(C'\fR if both
18782 \&\fB\-mint\-register=4\fR and \fB\-mpid\fR are specified on the
18783 command line.
18784 .Sp
18785 By default this feature is not enabled.  The default can be restored
18786 via the \fB\-mno\-pid\fR command-line option.
18787 .IP "\fB\-mno\-warn\-multiple\-fast\-interrupts\fR" 4
18788 .IX Item "-mno-warn-multiple-fast-interrupts"
18789 .PD 0
18790 .IP "\fB\-mwarn\-multiple\-fast\-interrupts\fR" 4
18791 .IX Item "-mwarn-multiple-fast-interrupts"
18792 .PD
18793 Prevents \s-1GCC\s0 from issuing a warning message if it finds more than one
18794 fast interrupt handler when it is compiling a file.  The default is to
18795 issue a warning for each extra fast interrupt handler found, as the \s-1RX\s0
18796 only supports one such interrupt.
18797 .PP
18798 \&\fINote:\fR The generic \s-1GCC\s0 command-line option \fB\-ffixed\-\fR\fIreg\fR
18799 has special significance to the \s-1RX\s0 port when used with the
18800 \&\f(CW\*(C`interrupt\*(C'\fR function attribute.  This attribute indicates a
18801 function intended to process fast interrupts.  \s-1GCC\s0 ensures
18802 that it only uses the registers \f(CW\*(C`r10\*(C'\fR, \f(CW\*(C`r11\*(C'\fR, \f(CW\*(C`r12\*(C'\fR
18803 and/or \f(CW\*(C`r13\*(C'\fR and only provided that the normal use of the
18804 corresponding registers have been restricted via the
18805 \&\fB\-ffixed\-\fR\fIreg\fR or \fB\-mint\-register\fR command-line
18806 options.
18807 .PP
18808 \fIS/390 and zSeries Options\fR
18809 .IX Subsection "S/390 and zSeries Options"
18810 .PP
18811 These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
18812 .IP "\fB\-mhard\-float\fR" 4
18813 .IX Item "-mhard-float"
18814 .PD 0
18815 .IP "\fB\-msoft\-float\fR" 4
18816 .IX Item "-msoft-float"
18817 .PD
18818 Use (do not use) the hardware floating-point instructions and registers
18819 for floating-point operations.  When \fB\-msoft\-float\fR is specified,
18820 functions in \fIlibgcc.a\fR are used to perform floating-point
18821 operations.  When \fB\-mhard\-float\fR is specified, the compiler
18822 generates \s-1IEEE\s0 floating-point instructions.  This is the default.
18823 .IP "\fB\-mhard\-dfp\fR" 4
18824 .IX Item "-mhard-dfp"
18825 .PD 0
18826 .IP "\fB\-mno\-hard\-dfp\fR" 4
18827 .IX Item "-mno-hard-dfp"
18828 .PD
18829 Use (do not use) the hardware decimal-floating-point instructions for
18830 decimal-floating-point operations.  When \fB\-mno\-hard\-dfp\fR is
18831 specified, functions in \fIlibgcc.a\fR are used to perform
18832 decimal-floating-point operations.  When \fB\-mhard\-dfp\fR is
18833 specified, the compiler generates decimal-floating-point hardware
18834 instructions.  This is the default for \fB\-march=z9\-ec\fR or higher.
18835 .IP "\fB\-mlong\-double\-64\fR" 4
18836 .IX Item "-mlong-double-64"
18837 .PD 0
18838 .IP "\fB\-mlong\-double\-128\fR" 4
18839 .IX Item "-mlong-double-128"
18840 .PD
18841 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
18842 of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
18843 type. This is the default.
18844 .IP "\fB\-mbackchain\fR" 4
18845 .IX Item "-mbackchain"
18846 .PD 0
18847 .IP "\fB\-mno\-backchain\fR" 4
18848 .IX Item "-mno-backchain"
18849 .PD
18850 Store (do not store) the address of the caller's frame as backchain pointer
18851 into the callee's stack frame.
18852 A backchain may be needed to allow debugging using tools that do not understand
18853 \&\s-1DWARF\s0 2 call frame information.
18854 When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
18855 at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
18856 the backchain is placed into the topmost word of the 96/160 byte register
18857 save area.
18858 .Sp
18859 In general, code compiled with \fB\-mbackchain\fR is call-compatible with
18860 code compiled with \fB\-mmo\-backchain\fR; however, use of the backchain
18861 for debugging purposes usually requires that the whole binary is built with
18862 \&\fB\-mbackchain\fR.  Note that the combination of \fB\-mbackchain\fR,
18863 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
18864 to build a linux kernel use \fB\-msoft\-float\fR.
18865 .Sp
18866 The default is to not maintain the backchain.
18867 .IP "\fB\-mpacked\-stack\fR" 4
18868 .IX Item "-mpacked-stack"
18869 .PD 0
18870 .IP "\fB\-mno\-packed\-stack\fR" 4
18871 .IX Item "-mno-packed-stack"
18872 .PD
18873 Use (do not use) the packed stack layout.  When \fB\-mno\-packed\-stack\fR is
18874 specified, the compiler uses the all fields of the 96/160 byte register save
18875 area only for their default purpose; unused fields still take up stack space.
18876 When \fB\-mpacked\-stack\fR is specified, register save slots are densely
18877 packed at the top of the register save area; unused space is reused for other
18878 purposes, allowing for more efficient use of the available stack space.
18879 However, when \fB\-mbackchain\fR is also in effect, the topmost word of
18880 the save area is always used to store the backchain, and the return address
18881 register is always saved two words below the backchain.
18882 .Sp
18883 As long as the stack frame backchain is not used, code generated with
18884 \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
18885 \&\fB\-mno\-packed\-stack\fR.  Note that some non-FSF releases of \s-1GCC\s0 2.95 for
18886 S/390 or zSeries generated code that uses the stack frame backchain at run
18887 time, not just for debugging purposes.  Such code is not call-compatible
18888 with code compiled with \fB\-mpacked\-stack\fR.  Also, note that the
18889 combination of \fB\-mbackchain\fR,
18890 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
18891 to build a linux kernel use \fB\-msoft\-float\fR.
18892 .Sp
18893 The default is to not use the packed stack layout.
18894 .IP "\fB\-msmall\-exec\fR" 4
18895 .IX Item "-msmall-exec"
18896 .PD 0
18897 .IP "\fB\-mno\-small\-exec\fR" 4
18898 .IX Item "-mno-small-exec"
18899 .PD
18900 Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
18901 to do subroutine calls.
18902 This only works reliably if the total executable size does not
18903 exceed 64k.  The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
18904 which does not have this limitation.
18905 .IP "\fB\-m64\fR" 4
18906 .IX Item "-m64"
18907 .PD 0
18908 .IP "\fB\-m31\fR" 4
18909 .IX Item "-m31"
18910 .PD
18911 When \fB\-m31\fR is specified, generate code compliant to the
18912 GNU/Linux for S/390 \s-1ABI\s0.  When \fB\-m64\fR is specified, generate
18913 code compliant to the GNU/Linux for zSeries \s-1ABI\s0.  This allows \s-1GCC\s0 in
18914 particular to generate 64\-bit instructions.  For the \fBs390\fR
18915 targets, the default is \fB\-m31\fR, while the \fBs390x\fR
18916 targets default to \fB\-m64\fR.
18917 .IP "\fB\-mzarch\fR" 4
18918 .IX Item "-mzarch"
18919 .PD 0
18920 .IP "\fB\-mesa\fR" 4
18921 .IX Item "-mesa"
18922 .PD
18923 When \fB\-mzarch\fR is specified, generate code using the
18924 instructions available on z/Architecture.
18925 When \fB\-mesa\fR is specified, generate code using the
18926 instructions available on \s-1ESA/390\s0.  Note that \fB\-mesa\fR is
18927 not possible with \fB\-m64\fR.
18928 When generating code compliant to the GNU/Linux for S/390 \s-1ABI\s0,
18929 the default is \fB\-mesa\fR.  When generating code compliant
18930 to the GNU/Linux for zSeries \s-1ABI\s0, the default is \fB\-mzarch\fR.
18931 .IP "\fB\-mmvcle\fR" 4
18932 .IX Item "-mmvcle"
18933 .PD 0
18934 .IP "\fB\-mno\-mvcle\fR" 4
18935 .IX Item "-mno-mvcle"
18936 .PD
18937 Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
18938 to perform block moves.  When \fB\-mno\-mvcle\fR is specified,
18939 use a \f(CW\*(C`mvc\*(C'\fR loop instead.  This is the default unless optimizing for
18940 size.
18941 .IP "\fB\-mdebug\fR" 4
18942 .IX Item "-mdebug"
18943 .PD 0
18944 .IP "\fB\-mno\-debug\fR" 4
18945 .IX Item "-mno-debug"
18946 .PD
18947 Print (or do not print) additional debug information when compiling.
18948 The default is to not print debug information.
18949 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
18950 .IX Item "-march=cpu-type"
18951 Generate code that runs on \fIcpu-type\fR, which is the name of a system
18952 representing a certain processor type.  Possible values for
18953 \&\fIcpu-type\fR are \fBg5\fR, \fBg6\fR, \fBz900\fR, \fBz990\fR,
18954 \&\fBz9\-109\fR, \fBz9\-ec\fR, \fBz10\fR,  \fBz196\fR, \fBzEC12\fR,
18955 and \fBz13\fR.
18956 When generating code using the instructions available on z/Architecture,
18957 the default is \fB\-march=z900\fR.  Otherwise, the default is
18958 \&\fB\-march=g5\fR.
18959 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
18960 .IX Item "-mtune=cpu-type"
18961 Tune to \fIcpu-type\fR everything applicable about the generated code,
18962 except for the \s-1ABI\s0 and the set of available instructions.
18963 The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
18964 The default is the value used for \fB\-march\fR.
18965 .IP "\fB\-mtpf\-trace\fR" 4
18966 .IX Item "-mtpf-trace"
18967 .PD 0
18968 .IP "\fB\-mno\-tpf\-trace\fR" 4
18969 .IX Item "-mno-tpf-trace"
18970 .PD
18971 Generate code that adds (does not add) in \s-1TPF\s0 \s-1OS\s0 specific branches to trace
18972 routines in the operating system.  This option is off by default, even
18973 when compiling for the \s-1TPF\s0 \s-1OS\s0.
18974 .IP "\fB\-mfused\-madd\fR" 4
18975 .IX Item "-mfused-madd"
18976 .PD 0
18977 .IP "\fB\-mno\-fused\-madd\fR" 4
18978 .IX Item "-mno-fused-madd"
18979 .PD
18980 Generate code that uses (does not use) the floating-point multiply and
18981 accumulate instructions.  These instructions are generated by default if
18982 hardware floating point is used.
18983 .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
18984 .IX Item "-mwarn-framesize=framesize"
18985 Emit a warning if the current function exceeds the given frame size.  Because
18986 this is a compile-time check it doesn't need to be a real problem when the program
18987 runs.  It is intended to identify functions that most probably cause
18988 a stack overflow.  It is useful to be used in an environment with limited stack
18989 size e.g. the linux kernel.
18990 .IP "\fB\-mwarn\-dynamicstack\fR" 4
18991 .IX Item "-mwarn-dynamicstack"
18992 Emit a warning if the function calls \f(CW\*(C`alloca\*(C'\fR or uses dynamically-sized
18993 arrays.  This is generally a bad idea with a limited stack size.
18994 .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
18995 .IX Item "-mstack-guard=stack-guard"
18996 .PD 0
18997 .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
18998 .IX Item "-mstack-size=stack-size"
18999 .PD
19000 If these options are provided the S/390 back end emits additional instructions in
19001 the function prologue that trigger a trap if the stack size is \fIstack-guard\fR
19002 bytes above the \fIstack-size\fR (remember that the stack on S/390 grows downward).
19003 If the \fIstack-guard\fR option is omitted the smallest power of 2 larger than
19004 the frame size of the compiled function is chosen.
19005 These options are intended to be used to help debugging stack overflow problems.
19006 The additionally emitted code causes only little overhead and hence can also be
19007 used in production-like systems without greater performance degradation.  The given
19008 values have to be exact powers of 2 and \fIstack-size\fR has to be greater than
19009 \&\fIstack-guard\fR without exceeding 64k.
19010 In order to be efficient the extra code makes the assumption that the stack starts
19011 at an address aligned to the value given by \fIstack-size\fR.
19012 The \fIstack-guard\fR option can only be used in conjunction with \fIstack-size\fR.
19013 .IP "\fB\-mhotpatch=\fR\fIpre-halfwords\fR\fB,\fR\fIpost-halfwords\fR" 4
19014 .IX Item "-mhotpatch=pre-halfwords,post-halfwords"
19015 If the hotpatch option is enabled, a \*(L"hot-patching\*(R" function
19016 prologue is generated for all functions in the compilation unit.
19017 The funtion label is prepended with the given number of two-byte
19018 \&\s-1NOP\s0 instructions (\fIpre-halfwords\fR, maximum 1000000).  After
19019 the label, 2 * \fIpost-halfwords\fR bytes are appended, using the
19020 largest \s-1NOP\s0 like instructions the architecture allows (maximum
19021 1000000).
19022 .Sp
19023 If both arguments are zero, hotpatching is disabled.
19024 .Sp
19025 This option can be overridden for individual functions with the
19026 \&\f(CW\*(C`hotpatch\*(C'\fR attribute.
19027 .PP
19028 \fIScore Options\fR
19029 .IX Subsection "Score Options"
19030 .PP
19031 These options are defined for Score implementations:
19032 .IP "\fB\-meb\fR" 4
19033 .IX Item "-meb"
19034 Compile code for big-endian mode.  This is the default.
19035 .IP "\fB\-mel\fR" 4
19036 .IX Item "-mel"
19037 Compile code for little-endian mode.
19038 .IP "\fB\-mnhwloop\fR" 4
19039 .IX Item "-mnhwloop"
19040 Disable generation of \f(CW\*(C`bcnz\*(C'\fR instructions.
19041 .IP "\fB\-muls\fR" 4
19042 .IX Item "-muls"
19043 Enable generation of unaligned load and store instructions.
19044 .IP "\fB\-mmac\fR" 4
19045 .IX Item "-mmac"
19046 Enable the use of multiply-accumulate instructions. Disabled by default.
19047 .IP "\fB\-mscore5\fR" 4
19048 .IX Item "-mscore5"
19049 Specify the \s-1SCORE5\s0 as the target architecture.
19050 .IP "\fB\-mscore5u\fR" 4
19051 .IX Item "-mscore5u"
19052 Specify the \s-1SCORE5U\s0 of the target architecture.
19053 .IP "\fB\-mscore7\fR" 4
19054 .IX Item "-mscore7"
19055 Specify the \s-1SCORE7\s0 as the target architecture. This is the default.
19056 .IP "\fB\-mscore7d\fR" 4
19057 .IX Item "-mscore7d"
19058 Specify the \s-1SCORE7D\s0 as the target architecture.
19059 .PP
19060 \fI\s-1SH\s0 Options\fR
19061 .IX Subsection "SH Options"
19062 .PP
19063 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
19064 .IP "\fB\-m1\fR" 4
19065 .IX Item "-m1"
19066 Generate code for the \s-1SH1\s0.
19067 .IP "\fB\-m2\fR" 4
19068 .IX Item "-m2"
19069 Generate code for the \s-1SH2\s0.
19070 .IP "\fB\-m2e\fR" 4
19071 .IX Item "-m2e"
19072 Generate code for the SH2e.
19073 .IP "\fB\-m2a\-nofpu\fR" 4
19074 .IX Item "-m2a-nofpu"
19075 Generate code for the SH2a without \s-1FPU\s0, or for a SH2a\-FPU in such a way
19076 that the floating-point unit is not used.
19077 .IP "\fB\-m2a\-single\-only\fR" 4
19078 .IX Item "-m2a-single-only"
19079 Generate code for the SH2a\-FPU, in such a way that no double-precision
19080 floating-point operations are used.
19081 .IP "\fB\-m2a\-single\fR" 4
19082 .IX Item "-m2a-single"
19083 Generate code for the SH2a\-FPU assuming the floating-point unit is in
19084 single-precision mode by default.
19085 .IP "\fB\-m2a\fR" 4
19086 .IX Item "-m2a"
19087 Generate code for the SH2a\-FPU assuming the floating-point unit is in
19088 double-precision mode by default.
19089 .IP "\fB\-m3\fR" 4
19090 .IX Item "-m3"
19091 Generate code for the \s-1SH3\s0.
19092 .IP "\fB\-m3e\fR" 4
19093 .IX Item "-m3e"
19094 Generate code for the SH3e.
19095 .IP "\fB\-m4\-nofpu\fR" 4
19096 .IX Item "-m4-nofpu"
19097 Generate code for the \s-1SH4\s0 without a floating-point unit.
19098 .IP "\fB\-m4\-single\-only\fR" 4
19099 .IX Item "-m4-single-only"
19100 Generate code for the \s-1SH4\s0 with a floating-point unit that only
19101 supports single-precision arithmetic.
19102 .IP "\fB\-m4\-single\fR" 4
19103 .IX Item "-m4-single"
19104 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
19105 single-precision mode by default.
19106 .IP "\fB\-m4\fR" 4
19107 .IX Item "-m4"
19108 Generate code for the \s-1SH4\s0.
19109 .IP "\fB\-m4\-100\fR" 4
19110 .IX Item "-m4-100"
19111 Generate code for \s-1SH4\-100\s0.
19112 .IP "\fB\-m4\-100\-nofpu\fR" 4
19113 .IX Item "-m4-100-nofpu"
19114 Generate code for \s-1SH4\-100\s0 in such a way that the
19115 floating-point unit is not used.
19116 .IP "\fB\-m4\-100\-single\fR" 4
19117 .IX Item "-m4-100-single"
19118 Generate code for \s-1SH4\-100\s0 assuming the floating-point unit is in
19119 single-precision mode by default.
19120 .IP "\fB\-m4\-100\-single\-only\fR" 4
19121 .IX Item "-m4-100-single-only"
19122 Generate code for \s-1SH4\-100\s0 in such a way that no double-precision
19123 floating-point operations are used.
19124 .IP "\fB\-m4\-200\fR" 4
19125 .IX Item "-m4-200"
19126 Generate code for \s-1SH4\-200\s0.
19127 .IP "\fB\-m4\-200\-nofpu\fR" 4
19128 .IX Item "-m4-200-nofpu"
19129 Generate code for \s-1SH4\-200\s0 without in such a way that the
19130 floating-point unit is not used.
19131 .IP "\fB\-m4\-200\-single\fR" 4
19132 .IX Item "-m4-200-single"
19133 Generate code for \s-1SH4\-200\s0 assuming the floating-point unit is in
19134 single-precision mode by default.
19135 .IP "\fB\-m4\-200\-single\-only\fR" 4
19136 .IX Item "-m4-200-single-only"
19137 Generate code for \s-1SH4\-200\s0 in such a way that no double-precision
19138 floating-point operations are used.
19139 .IP "\fB\-m4\-300\fR" 4
19140 .IX Item "-m4-300"
19141 Generate code for \s-1SH4\-300\s0.
19142 .IP "\fB\-m4\-300\-nofpu\fR" 4
19143 .IX Item "-m4-300-nofpu"
19144 Generate code for \s-1SH4\-300\s0 without in such a way that the
19145 floating-point unit is not used.
19146 .IP "\fB\-m4\-300\-single\fR" 4
19147 .IX Item "-m4-300-single"
19148 Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
19149 floating-point operations are used.
19150 .IP "\fB\-m4\-300\-single\-only\fR" 4
19151 .IX Item "-m4-300-single-only"
19152 Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
19153 floating-point operations are used.
19154 .IP "\fB\-m4\-340\fR" 4
19155 .IX Item "-m4-340"
19156 Generate code for \s-1SH4\-340\s0 (no \s-1MMU\s0, no \s-1FPU\s0).
19157 .IP "\fB\-m4\-500\fR" 4
19158 .IX Item "-m4-500"
19159 Generate code for \s-1SH4\-500\s0 (no \s-1FPU\s0).  Passes \fB\-isa=sh4\-nofpu\fR to the
19160 assembler.
19161 .IP "\fB\-m4a\-nofpu\fR" 4
19162 .IX Item "-m4a-nofpu"
19163 Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
19164 floating-point unit is not used.
19165 .IP "\fB\-m4a\-single\-only\fR" 4
19166 .IX Item "-m4a-single-only"
19167 Generate code for the SH4a, in such a way that no double-precision
19168 floating-point operations are used.
19169 .IP "\fB\-m4a\-single\fR" 4
19170 .IX Item "-m4a-single"
19171 Generate code for the SH4a assuming the floating-point unit is in
19172 single-precision mode by default.
19173 .IP "\fB\-m4a\fR" 4
19174 .IX Item "-m4a"
19175 Generate code for the SH4a.
19176 .IP "\fB\-m4al\fR" 4
19177 .IX Item "-m4al"
19178 Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
19179 \&\fB\-dsp\fR to the assembler.  \s-1GCC\s0 doesn't generate any \s-1DSP\s0
19180 instructions at the moment.
19181 .IP "\fB\-m5\-32media\fR" 4
19182 .IX Item "-m5-32media"
19183 Generate 32\-bit code for SHmedia.
19184 .IP "\fB\-m5\-32media\-nofpu\fR" 4
19185 .IX Item "-m5-32media-nofpu"
19186 Generate 32\-bit code for SHmedia in such a way that the
19187 floating-point unit is not used.
19188 .IP "\fB\-m5\-64media\fR" 4
19189 .IX Item "-m5-64media"
19190 Generate 64\-bit code for SHmedia.
19191 .IP "\fB\-m5\-64media\-nofpu\fR" 4
19192 .IX Item "-m5-64media-nofpu"
19193 Generate 64\-bit code for SHmedia in such a way that the
19194 floating-point unit is not used.
19195 .IP "\fB\-m5\-compact\fR" 4
19196 .IX Item "-m5-compact"
19197 Generate code for SHcompact.
19198 .IP "\fB\-m5\-compact\-nofpu\fR" 4
19199 .IX Item "-m5-compact-nofpu"
19200 Generate code for SHcompact in such a way that the
19201 floating-point unit is not used.
19202 .IP "\fB\-mb\fR" 4
19203 .IX Item "-mb"
19204 Compile code for the processor in big-endian mode.
19205 .IP "\fB\-ml\fR" 4
19206 .IX Item "-ml"
19207 Compile code for the processor in little-endian mode.
19208 .IP "\fB\-mdalign\fR" 4
19209 .IX Item "-mdalign"
19210 Align doubles at 64\-bit boundaries.  Note that this changes the calling
19211 conventions, and thus some functions from the standard C library do
19212 not work unless you recompile it first with \fB\-mdalign\fR.
19213 .IP "\fB\-mrelax\fR" 4
19214 .IX Item "-mrelax"
19215 Shorten some address references at link time, when possible; uses the
19216 linker option \fB\-relax\fR.
19217 .IP "\fB\-mbigtable\fR" 4
19218 .IX Item "-mbigtable"
19219 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
19220 16\-bit offsets.
19221 .IP "\fB\-mbitops\fR" 4
19222 .IX Item "-mbitops"
19223 Enable the use of bit manipulation instructions on \s-1SH2A\s0.
19224 .IP "\fB\-mfmovd\fR" 4
19225 .IX Item "-mfmovd"
19226 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.  Check \fB\-mdalign\fR for
19227 alignment constraints.
19228 .IP "\fB\-mrenesas\fR" 4
19229 .IX Item "-mrenesas"
19230 Comply with the calling conventions defined by Renesas.
19231 .IP "\fB\-mno\-renesas\fR" 4
19232 .IX Item "-mno-renesas"
19233 Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
19234 conventions were available.  This option is the default for all
19235 targets of the \s-1SH\s0 toolchain.
19236 .IP "\fB\-mnomacsave\fR" 4
19237 .IX Item "-mnomacsave"
19238 Mark the \f(CW\*(C`MAC\*(C'\fR register as call-clobbered, even if
19239 \&\fB\-mrenesas\fR is given.
19240 .IP "\fB\-mieee\fR" 4
19241 .IX Item "-mieee"
19242 .PD 0
19243 .IP "\fB\-mno\-ieee\fR" 4
19244 .IX Item "-mno-ieee"
19245 .PD
19246 Control the \s-1IEEE\s0 compliance of floating-point comparisons, which affects the
19247 handling of cases where the result of a comparison is unordered.  By default
19248 \&\fB\-mieee\fR is implicitly enabled.  If \fB\-ffinite\-math\-only\fR is
19249 enabled \fB\-mno\-ieee\fR is implicitly set, which results in faster
19250 floating-point greater-equal and less-equal comparisons.  The implcit settings
19251 can be overridden by specifying either \fB\-mieee\fR or \fB\-mno\-ieee\fR.
19252 .IP "\fB\-minline\-ic_invalidate\fR" 4
19253 .IX Item "-minline-ic_invalidate"
19254 Inline code to invalidate instruction cache entries after setting up
19255 nested function trampolines.
19256 This option has no effect if \fB\-musermode\fR is in effect and the selected
19257 code generation option (e.g. \fB\-m4\fR) does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
19258 instruction.
19259 If the selected code generation option does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
19260 instruction, and \fB\-musermode\fR is not in effect, the inlined code
19261 manipulates the instruction cache address array directly with an associative
19262 write.  This not only requires privileged mode at run time, but it also
19263 fails if the cache line had been mapped via the \s-1TLB\s0 and has become unmapped.
19264 .IP "\fB\-misize\fR" 4
19265 .IX Item "-misize"
19266 Dump instruction size and location in the assembly code.
19267 .IP "\fB\-mpadstruct\fR" 4
19268 .IX Item "-mpadstruct"
19269 This option is deprecated.  It pads structures to multiple of 4 bytes,
19270 which is incompatible with the \s-1SH\s0 \s-1ABI\s0.
19271 .IP "\fB\-matomic\-model=\fR\fImodel\fR" 4
19272 .IX Item "-matomic-model=model"
19273 Sets the model of atomic operations and additional parameters as a comma
19274 separated list.  For details on the atomic built-in functions see
19275 \&\fB_\|_atomic Builtins\fR.  The following models and parameters are supported:
19276 .RS 4
19277 .IP "\fBnone\fR" 4
19278 .IX Item "none"
19279 Disable compiler generated atomic sequences and emit library calls for atomic
19280 operations.  This is the default if the target is not \f(CW\*(C`sh*\-*\-linux*\*(C'\fR.
19281 .IP "\fBsoft-gusa\fR" 4
19282 .IX Item "soft-gusa"
19283 Generate GNU/Linux compatible gUSA software atomic sequences for the atomic
19284 built-in functions.  The generated atomic sequences require additional support
19285 from the interrupt/exception handling code of the system and are only suitable
19286 for SH3* and SH4* single-core systems.  This option is enabled by default when
19287 the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH3* or SH4*.  When the target is \s-1SH4A\s0,
19288 this option also partially utilizes the hardware atomic instructions
19289 \&\f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR to create more efficient code, unless
19290 \&\fBstrict\fR is specified.
19291 .IP "\fBsoft-tcb\fR" 4
19292 .IX Item "soft-tcb"
19293 Generate software atomic sequences that use a variable in the thread control
19294 block.  This is a variation of the gUSA sequences which can also be used on
19295 SH1* and SH2* targets.  The generated atomic sequences require additional
19296 support from the interrupt/exception handling code of the system and are only
19297 suitable for single-core systems.  When using this model, the \fBgbr\-offset=\fR
19298 parameter has to be specified as well.
19299 .IP "\fBsoft-imask\fR" 4
19300 .IX Item "soft-imask"
19301 Generate software atomic sequences that temporarily disable interrupts by
19302 setting \f(CW\*(C`SR.IMASK = 1111\*(C'\fR.  This model works only when the program runs
19303 in privileged mode and is only suitable for single-core systems.  Additional
19304 support from the interrupt/exception handling code of the system is not
19305 required.  This model is enabled by default when the target is
19306 \&\f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH1* or SH2*.
19307 .IP "\fBhard-llcs\fR" 4
19308 .IX Item "hard-llcs"
19309 Generate hardware atomic sequences using the \f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR
19310 instructions only.  This is only available on \s-1SH4A\s0 and is suitable for
19311 multi-core systems.  Since the hardware instructions support only 32 bit atomic
19312 variables access to 8 or 16 bit variables is emulated with 32 bit accesses.
19313 Code compiled with this option is also compatible with other software
19314 atomic model interrupt/exception handling systems if executed on an \s-1SH4A\s0
19315 system.  Additional support from the interrupt/exception handling code of the
19316 system is not required for this model.
19317 .IP "\fBgbr\-offset=\fR" 4
19318 .IX Item "gbr-offset="
19319 This parameter specifies the offset in bytes of the variable in the thread
19320 control block structure that should be used by the generated atomic sequences
19321 when the \fBsoft-tcb\fR model has been selected.  For other models this
19322 parameter is ignored.  The specified value must be an integer multiple of four
19323 and in the range 0\-1020.
19324 .IP "\fBstrict\fR" 4
19325 .IX Item "strict"
19326 This parameter prevents mixed usage of multiple atomic models, even if they
19327 are compatible, and makes the compiler generate atomic sequences of the
19328 specified model only.
19329 .RE
19330 .RS 4
19331 .RE
19332 .IP "\fB\-mtas\fR" 4
19333 .IX Item "-mtas"
19334 Generate the \f(CW\*(C`tas.b\*(C'\fR opcode for \f(CW\*(C`_\|_atomic_test_and_set\*(C'\fR.
19335 Notice that depending on the particular hardware and software configuration
19336 this can degrade overall performance due to the operand cache line flushes
19337 that are implied by the \f(CW\*(C`tas.b\*(C'\fR instruction.  On multi-core \s-1SH4A\s0
19338 processors the \f(CW\*(C`tas.b\*(C'\fR instruction must be used with caution since it
19339 can result in data corruption for certain cache configurations.
19340 .IP "\fB\-mprefergot\fR" 4
19341 .IX Item "-mprefergot"
19342 When generating position-independent code, emit function calls using
19343 the Global Offset Table instead of the Procedure Linkage Table.
19344 .IP "\fB\-musermode\fR" 4
19345 .IX Item "-musermode"
19346 .PD 0
19347 .IP "\fB\-mno\-usermode\fR" 4
19348 .IX Item "-mno-usermode"
19349 .PD
19350 Don't allow (allow) the compiler generating privileged mode code.  Specifying
19351 \&\fB\-musermode\fR also implies \fB\-mno\-inline\-ic_invalidate\fR if the
19352 inlined code would not work in user mode.  \fB\-musermode\fR is the default
19353 when the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR.  If the target is SH1* or SH2*
19354 \&\fB\-musermode\fR has no effect, since there is no user mode.
19355 .IP "\fB\-multcost=\fR\fInumber\fR" 4
19356 .IX Item "-multcost=number"
19357 Set the cost to assume for a multiply insn.
19358 .IP "\fB\-mdiv=\fR\fIstrategy\fR" 4
19359 .IX Item "-mdiv=strategy"
19360 Set the division strategy to be used for integer division operations.
19361 For SHmedia \fIstrategy\fR can be one of:
19362 .RS 4
19363 .IP "\fBfp\fR" 4
19364 .IX Item "fp"
19365 Performs the operation in floating point.  This has a very high latency,
19366 but needs only a few instructions, so it might be a good choice if
19367 your code has enough easily-exploitable \s-1ILP\s0 to allow the compiler to
19368 schedule the floating-point instructions together with other instructions.
19369 Division by zero causes a floating-point exception.
19370 .IP "\fBinv\fR" 4
19371 .IX Item "inv"
19372 Uses integer operations to calculate the inverse of the divisor,
19373 and then multiplies the dividend with the inverse.  This strategy allows
19374 \&\s-1CSE\s0 and hoisting of the inverse calculation.  Division by zero calculates
19375 an unspecified result, but does not trap.
19376 .IP "\fBinv:minlat\fR" 4
19377 .IX Item "inv:minlat"
19378 A variant of \fBinv\fR where, if no \s-1CSE\s0 or hoisting opportunities
19379 have been found, or if the entire operation has been hoisted to the same
19380 place, the last stages of the inverse calculation are intertwined with the
19381 final multiply to reduce the overall latency, at the expense of using a few
19382 more instructions, and thus offering fewer scheduling opportunities with
19383 other code.
19384 .IP "\fBcall\fR" 4
19385 .IX Item "call"
19386 Calls a library function that usually implements the \fBinv:minlat\fR
19387 strategy.
19388 This gives high code density for \f(CW\*(C`m5\-*media\-nofpu\*(C'\fR compilations.
19389 .IP "\fBcall2\fR" 4
19390 .IX Item "call2"
19391 Uses a different entry point of the same library function, where it
19392 assumes that a pointer to a lookup table has already been set up, which
19393 exposes the pointer load to \s-1CSE\s0 and code hoisting optimizations.
19394 .IP "\fBinv:call\fR" 4
19395 .IX Item "inv:call"
19396 .PD 0
19397 .IP "\fBinv:call2\fR" 4
19398 .IX Item "inv:call2"
19399 .IP "\fBinv:fp\fR" 4
19400 .IX Item "inv:fp"
19401 .PD
19402 Use the \fBinv\fR algorithm for initial
19403 code generation, but if the code stays unoptimized, revert to the \fBcall\fR,
19404 \&\fBcall2\fR, or \fBfp\fR strategies, respectively.  Note that the
19405 potentially-trapping side effect of division by zero is carried by a
19406 separate instruction, so it is possible that all the integer instructions
19407 are hoisted out, but the marker for the side effect stays where it is.
19408 A recombination to floating-point operations or a call is not possible
19409 in that case.
19410 .IP "\fBinv20u\fR" 4
19411 .IX Item "inv20u"
19412 .PD 0
19413 .IP "\fBinv20l\fR" 4
19414 .IX Item "inv20l"
19415 .PD
19416 Variants of the \fBinv:minlat\fR strategy.  In the case
19417 that the inverse calculation is not separated from the multiply, they speed
19418 up division where the dividend fits into 20 bits (plus sign where applicable)
19419 by inserting a test to skip a number of operations in this case; this test
19420 slows down the case of larger dividends.  \fBinv20u\fR assumes the case of a such
19421 a small dividend to be unlikely, and \fBinv20l\fR assumes it to be likely.
19422 .RE
19423 .RS 4
19424 .Sp
19425 For targets other than SHmedia \fIstrategy\fR can be one of:
19426 .IP "\fBcall\-div1\fR" 4
19427 .IX Item "call-div1"
19428 Calls a library function that uses the single-step division instruction
19429 \&\f(CW\*(C`div1\*(C'\fR to perform the operation.  Division by zero calculates an
19430 unspecified result and does not trap.  This is the default except for \s-1SH4\s0,
19431 \&\s-1SH2A\s0 and SHcompact.
19432 .IP "\fBcall-fp\fR" 4
19433 .IX Item "call-fp"
19434 Calls a library function that performs the operation in double precision
19435 floating point.  Division by zero causes a floating-point exception.  This is
19436 the default for SHcompact with \s-1FPU\s0.  Specifying this for targets that do not
19437 have a double precision \s-1FPU\s0 defaults to \f(CW\*(C`call\-div1\*(C'\fR.
19438 .IP "\fBcall-table\fR" 4
19439 .IX Item "call-table"
19440 Calls a library function that uses a lookup table for small divisors and
19441 the \f(CW\*(C`div1\*(C'\fR instruction with case distinction for larger divisors.  Division
19442 by zero calculates an unspecified result and does not trap.  This is the default
19443 for \s-1SH4\s0.  Specifying this for targets that do not have dynamic shift
19444 instructions defaults to \f(CW\*(C`call\-div1\*(C'\fR.
19445 .RE
19446 .RS 4
19447 .Sp
19448 When a division strategy has not been specified the default strategy is
19449 selected based on the current target.  For \s-1SH2A\s0 the default strategy is to
19450 use the \f(CW\*(C`divs\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions instead of library function
19451 calls.
19452 .RE
19453 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
19454 .IX Item "-maccumulate-outgoing-args"
19455 Reserve space once for outgoing arguments in the function prologue rather
19456 than around each call.  Generally beneficial for performance and size.  Also
19457 needed for unwinding to avoid changing the stack frame around conditional code.
19458 .IP "\fB\-mdivsi3_libfunc=\fR\fIname\fR" 4
19459 .IX Item "-mdivsi3_libfunc=name"
19460 Set the name of the library function used for 32\-bit signed division to
19461 \&\fIname\fR.
19462 This only affects the name used in the \fBcall\fR and \fBinv:call\fR
19463 division strategies, and the compiler still expects the same
19464 sets of input/output/clobbered registers as if this option were not present.
19465 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
19466 .IX Item "-mfixed-range=register-range"
19467 Generate code treating the given register range as fixed registers.
19468 A fixed register is one that the register allocator can not use.  This is
19469 useful when compiling kernel code.  A register range is specified as
19470 two registers separated by a dash.  Multiple register ranges can be
19471 specified separated by a comma.
19472 .IP "\fB\-mindexed\-addressing\fR" 4
19473 .IX Item "-mindexed-addressing"
19474 Enable the use of the indexed addressing mode for SHmedia32/SHcompact.
19475 This is only safe if the hardware and/or \s-1OS\s0 implement 32\-bit wrap-around
19476 semantics for the indexed addressing mode.  The architecture allows the
19477 implementation of processors with 64\-bit \s-1MMU\s0, which the \s-1OS\s0 could use to
19478 get 32\-bit addressing, but since no current hardware implementation supports
19479 this or any other way to make the indexed addressing mode safe to use in
19480 the 32\-bit \s-1ABI\s0, the default is \fB\-mno\-indexed\-addressing\fR.
19481 .IP "\fB\-mgettrcost=\fR\fInumber\fR" 4
19482 .IX Item "-mgettrcost=number"
19483 Set the cost assumed for the \f(CW\*(C`gettr\*(C'\fR instruction to \fInumber\fR.
19484 The default is 2 if \fB\-mpt\-fixed\fR is in effect, 100 otherwise.
19485 .IP "\fB\-mpt\-fixed\fR" 4
19486 .IX Item "-mpt-fixed"
19487 Assume \f(CW\*(C`pt*\*(C'\fR instructions won't trap.  This generally generates
19488 better-scheduled code, but is unsafe on current hardware.
19489 The current architecture
19490 definition says that \f(CW\*(C`ptabs\*(C'\fR and \f(CW\*(C`ptrel\*(C'\fR trap when the target 
19491 anded with 3 is 3.
19492 This has the unintentional effect of making it unsafe to schedule these
19493 instructions before a branch, or hoist them out of a loop.  For example,
19494 \&\f(CW\*(C`_\|_do_global_ctors\*(C'\fR, a part of \fIlibgcc\fR
19495 that runs constructors at program
19496 startup, calls functions in a list which is delimited by \-1.  With the
19497 \&\fB\-mpt\-fixed\fR option, the \f(CW\*(C`ptabs\*(C'\fR is done before testing against \-1.
19498 That means that all the constructors run a bit more quickly, but when
19499 the loop comes to the end of the list, the program crashes because \f(CW\*(C`ptabs\*(C'\fR
19500 loads \-1 into a target register.
19501 .Sp
19502 Since this option is unsafe for any
19503 hardware implementing the current architecture specification, the default
19504 is \fB\-mno\-pt\-fixed\fR.  Unless specified explicitly with 
19505 \&\fB\-mgettrcost\fR, \fB\-mno\-pt\-fixed\fR also implies \fB\-mgettrcost=100\fR;
19506 this deters register allocation from using target registers for storing
19507 ordinary integers.
19508 .IP "\fB\-minvalid\-symbols\fR" 4
19509 .IX Item "-minvalid-symbols"
19510 Assume symbols might be invalid.  Ordinary function symbols generated by
19511 the compiler are always valid to load with
19512 \&\f(CW\*(C`movi\*(C'\fR/\f(CW\*(C`shori\*(C'\fR/\f(CW\*(C`ptabs\*(C'\fR or
19513 \&\f(CW\*(C`movi\*(C'\fR/\f(CW\*(C`shori\*(C'\fR/\f(CW\*(C`ptrel\*(C'\fR,
19514 but with assembler and/or linker tricks it is possible
19515 to generate symbols that cause \f(CW\*(C`ptabs\*(C'\fR or \f(CW\*(C`ptrel\*(C'\fR to trap.
19516 This option is only meaningful when \fB\-mno\-pt\-fixed\fR is in effect.
19517 It prevents cross-basic-block \s-1CSE\s0, hoisting and most scheduling
19518 of symbol loads.  The default is \fB\-mno\-invalid\-symbols\fR.
19519 .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
19520 .IX Item "-mbranch-cost=num"
19521 Assume \fInum\fR to be the cost for a branch instruction.  Higher numbers
19522 make the compiler try to generate more branch-free code if possible.  
19523 If not specified the value is selected depending on the processor type that
19524 is being compiled for.
19525 .IP "\fB\-mzdcbranch\fR" 4
19526 .IX Item "-mzdcbranch"
19527 .PD 0
19528 .IP "\fB\-mno\-zdcbranch\fR" 4
19529 .IX Item "-mno-zdcbranch"
19530 .PD
19531 Assume (do not assume) that zero displacement conditional branch instructions
19532 \&\f(CW\*(C`bt\*(C'\fR and \f(CW\*(C`bf\*(C'\fR are fast.  If \fB\-mzdcbranch\fR is specified, the
19533 compiler prefers zero displacement branch code sequences.  This is
19534 enabled by default when generating code for \s-1SH4\s0 and \s-1SH4A\s0.  It can be explicitly
19535 disabled by specifying \fB\-mno\-zdcbranch\fR.
19536 .IP "\fB\-mcbranch\-force\-delay\-slot\fR" 4
19537 .IX Item "-mcbranch-force-delay-slot"
19538 Force the usage of delay slots for conditional branches, which stuffs the delay
19539 slot with a \f(CW\*(C`nop\*(C'\fR if a suitable instruction can't be found.  By default
19540 this option is disabled.  It can be enabled to work around hardware bugs as
19541 found in the original \s-1SH7055\s0.
19542 .IP "\fB\-mfused\-madd\fR" 4
19543 .IX Item "-mfused-madd"
19544 .PD 0
19545 .IP "\fB\-mno\-fused\-madd\fR" 4
19546 .IX Item "-mno-fused-madd"
19547 .PD
19548 Generate code that uses (does not use) the floating-point multiply and
19549 accumulate instructions.  These instructions are generated by default
19550 if hardware floating point is used.  The machine-dependent
19551 \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
19552 \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
19553 mapped to \fB\-ffp\-contract=off\fR.
19554 .IP "\fB\-mfsca\fR" 4
19555 .IX Item "-mfsca"
19556 .PD 0
19557 .IP "\fB\-mno\-fsca\fR" 4
19558 .IX Item "-mno-fsca"
19559 .PD
19560 Allow or disallow the compiler to emit the \f(CW\*(C`fsca\*(C'\fR instruction for sine
19561 and cosine approximations.  The option \fB\-mfsca\fR must be used in
19562 combination with \fB\-funsafe\-math\-optimizations\fR.  It is enabled by default
19563 when generating code for \s-1SH4A\s0.  Using \fB\-mno\-fsca\fR disables sine and cosine
19564 approximations even if \fB\-funsafe\-math\-optimizations\fR is in effect.
19565 .IP "\fB\-mfsrra\fR" 4
19566 .IX Item "-mfsrra"
19567 .PD 0
19568 .IP "\fB\-mno\-fsrra\fR" 4
19569 .IX Item "-mno-fsrra"
19570 .PD
19571 Allow or disallow the compiler to emit the \f(CW\*(C`fsrra\*(C'\fR instruction for
19572 reciprocal square root approximations.  The option \fB\-mfsrra\fR must be used
19573 in combination with \fB\-funsafe\-math\-optimizations\fR and
19574 \&\fB\-ffinite\-math\-only\fR.  It is enabled by default when generating code for
19575 \&\s-1SH4A\s0.  Using \fB\-mno\-fsrra\fR disables reciprocal square root approximations
19576 even if \fB\-funsafe\-math\-optimizations\fR and \fB\-ffinite\-math\-only\fR are
19577 in effect.
19578 .IP "\fB\-mpretend\-cmove\fR" 4
19579 .IX Item "-mpretend-cmove"
19580 Prefer zero-displacement conditional branches for conditional move instruction
19581 patterns.  This can result in faster code on the \s-1SH4\s0 processor.
19582 .PP
19583 \fISolaris 2 Options\fR
19584 .IX Subsection "Solaris 2 Options"
19585 .PP
19586 These \fB\-m\fR options are supported on Solaris 2:
19587 .IP "\fB\-mclear\-hwcap\fR" 4
19588 .IX Item "-mclear-hwcap"
19589 \&\fB\-mclear\-hwcap\fR tells the compiler to remove the hardware
19590 capabilities generated by the Solaris assembler.  This is only necessary
19591 when object files use \s-1ISA\s0 extensions not supported by the current
19592 machine, but check at runtime whether or not to use them.
19593 .IP "\fB\-mimpure\-text\fR" 4
19594 .IX Item "-mimpure-text"
19595 \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
19596 the compiler to not pass \fB\-z text\fR to the linker when linking a
19597 shared object.  Using this option, you can link position-dependent
19598 code into a shared object.
19599 .Sp
19600 \&\fB\-mimpure\-text\fR suppresses the \*(L"relocations remain against
19601 allocatable but non-writable sections\*(R" linker error message.
19602 However, the necessary relocations trigger copy-on-write, and the
19603 shared object is not actually shared across processes.  Instead of
19604 using \fB\-mimpure\-text\fR, you should compile all source code with
19605 \&\fB\-fpic\fR or \fB\-fPIC\fR.
19606 .PP
19607 These switches are supported in addition to the above on Solaris 2:
19608 .IP "\fB\-pthreads\fR" 4
19609 .IX Item "-pthreads"
19610 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
19611 option sets flags for both the preprocessor and linker.  This option does
19612 not affect the thread safety of object code produced  by the compiler or
19613 that of libraries supplied with it.
19614 .IP "\fB\-pthread\fR" 4
19615 .IX Item "-pthread"
19616 This is a synonym for \fB\-pthreads\fR.
19617 .PP
19618 \fI\s-1SPARC\s0 Options\fR
19619 .IX Subsection "SPARC Options"
19620 .PP
19621 These \fB\-m\fR options are supported on the \s-1SPARC:\s0
19622 .IP "\fB\-mno\-app\-regs\fR" 4
19623 .IX Item "-mno-app-regs"
19624 .PD 0
19625 .IP "\fB\-mapp\-regs\fR" 4
19626 .IX Item "-mapp-regs"
19627 .PD
19628 Specify \fB\-mapp\-regs\fR to generate output using the global registers
19629 2 through 4, which the \s-1SPARC\s0 \s-1SVR4\s0 \s-1ABI\s0 reserves for applications.  Like the
19630 global register 1, each global register 2 through 4 is then treated as an
19631 allocable register that is clobbered by function calls.  This is the default.
19632 .Sp
19633 To be fully \s-1SVR4\s0 ABI-compliant at the cost of some performance loss,
19634 specify \fB\-mno\-app\-regs\fR.  You should compile libraries and system
19635 software with this option.
19636 .IP "\fB\-mflat\fR" 4
19637 .IX Item "-mflat"
19638 .PD 0
19639 .IP "\fB\-mno\-flat\fR" 4
19640 .IX Item "-mno-flat"
19641 .PD
19642 With \fB\-mflat\fR, the compiler does not generate save/restore instructions
19643 and uses a \*(L"flat\*(R" or single register window model.  This model is compatible
19644 with the regular register window model.  The local registers and the input
19645 registers (0\-\-5) are still treated as \*(L"call-saved\*(R" registers and are
19646 saved on the stack as needed.
19647 .Sp
19648 With \fB\-mno\-flat\fR (the default), the compiler generates save/restore
19649 instructions (except for leaf functions).  This is the normal operating mode.
19650 .IP "\fB\-mfpu\fR" 4
19651 .IX Item "-mfpu"
19652 .PD 0
19653 .IP "\fB\-mhard\-float\fR" 4
19654 .IX Item "-mhard-float"
19655 .PD
19656 Generate output containing floating-point instructions.  This is the
19657 default.
19658 .IP "\fB\-mno\-fpu\fR" 4
19659 .IX Item "-mno-fpu"
19660 .PD 0
19661 .IP "\fB\-msoft\-float\fR" 4
19662 .IX Item "-msoft-float"
19663 .PD
19664 Generate output containing library calls for floating point.
19665 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
19666 targets.  Normally the facilities of the machine's usual C compiler are
19667 used, but this cannot be done directly in cross-compilation.  You must make
19668 your own arrangements to provide suitable library functions for
19669 cross-compilation.  The embedded targets \fBsparc\-*\-aout\fR and
19670 \&\fBsparclite\-*\-*\fR do provide software floating-point support.
19671 .Sp
19672 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
19673 therefore, it is only useful if you compile \fIall\fR of a program with
19674 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
19675 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
19676 this to work.
19677 .IP "\fB\-mhard\-quad\-float\fR" 4
19678 .IX Item "-mhard-quad-float"
19679 Generate output containing quad-word (long double) floating-point
19680 instructions.
19681 .IP "\fB\-msoft\-quad\-float\fR" 4
19682 .IX Item "-msoft-quad-float"
19683 Generate output containing library calls for quad-word (long double)
19684 floating-point instructions.  The functions called are those specified
19685 in the \s-1SPARC\s0 \s-1ABI\s0.  This is the default.
19686 .Sp
19687 As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
19688 support for the quad-word floating-point instructions.  They all invoke
19689 a trap handler for one of these instructions, and then the trap handler
19690 emulates the effect of the instruction.  Because of the trap handler overhead,
19691 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
19692 \&\fB\-msoft\-quad\-float\fR option is the default.
19693 .IP "\fB\-mno\-unaligned\-doubles\fR" 4
19694 .IX Item "-mno-unaligned-doubles"
19695 .PD 0
19696 .IP "\fB\-munaligned\-doubles\fR" 4
19697 .IX Item "-munaligned-doubles"
19698 .PD
19699 Assume that doubles have 8\-byte alignment.  This is the default.
19700 .Sp
19701 With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8\-byte
19702 alignment only if they are contained in another type, or if they have an
19703 absolute address.  Otherwise, it assumes they have 4\-byte alignment.
19704 Specifying this option avoids some rare compatibility problems with code
19705 generated by other compilers.  It is not the default because it results
19706 in a performance loss, especially for floating-point code.
19707 .IP "\fB\-muser\-mode\fR" 4
19708 .IX Item "-muser-mode"
19709 .PD 0
19710 .IP "\fB\-mno\-user\-mode\fR" 4
19711 .IX Item "-mno-user-mode"
19712 .PD
19713 Do not generate code that can only run in supervisor mode.  This is relevant
19714 only for the \f(CW\*(C`casa\*(C'\fR instruction emitted for the \s-1LEON3\s0 processor.  The
19715 default is \fB\-mno\-user\-mode\fR.
19716 .IP "\fB\-mno\-faster\-structs\fR" 4
19717 .IX Item "-mno-faster-structs"
19718 .PD 0
19719 .IP "\fB\-mfaster\-structs\fR" 4
19720 .IX Item "-mfaster-structs"
19721 .PD
19722 With \fB\-mfaster\-structs\fR, the compiler assumes that structures
19723 should have 8\-byte alignment.  This enables the use of pairs of
19724 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
19725 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
19726 However, the use of this changed alignment directly violates the \s-1SPARC\s0
19727 \&\s-1ABI\s0.  Thus, it's intended only for use on targets where the developer
19728 acknowledges that their resulting code is not directly in line with
19729 the rules of the \s-1ABI\s0.
19730 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
19731 .IX Item "-mcpu=cpu_type"
19732 Set the instruction set, register set, and instruction scheduling parameters
19733 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
19734 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBhypersparc\fR,
19735 \&\fBleon\fR, \fBleon3\fR, \fBleon3v7\fR, \fBsparclite\fR, \fBf930\fR,
19736 \&\fBf934\fR, \fBsparclite86x\fR, \fBsparclet\fR, \fBtsc701\fR, \fBv9\fR,
19737 \&\fBultrasparc\fR, \fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR,
19738 \&\fBniagara3\fR and \fBniagara4\fR.
19739 .Sp
19740 Native Solaris and GNU/Linux toolchains also support the value \fBnative\fR,
19741 which selects the best architecture option for the host processor.
19742 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
19743 the processor.
19744 .Sp
19745 Default instruction scheduling parameters are used for values that select
19746 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
19747 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
19748 .Sp
19749 Here is a list of each supported architecture and their supported
19750 implementations.
19751 .RS 4
19752 .IP "v7" 4
19753 .IX Item "v7"
19754 cypress, leon3v7
19755 .IP "v8" 4
19756 .IX Item "v8"
19757 supersparc, hypersparc, leon, leon3
19758 .IP "sparclite" 4
19759 .IX Item "sparclite"
19760 f930, f934, sparclite86x
19761 .IP "sparclet" 4
19762 .IX Item "sparclet"
19763 tsc701
19764 .IP "v9" 4
19765 .IX Item "v9"
19766 ultrasparc, ultrasparc3, niagara, niagara2, niagara3, niagara4
19767 .RE
19768 .RS 4
19769 .Sp
19770 By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
19771 variant of the \s-1SPARC\s0 architecture.  With \fB\-mcpu=cypress\fR, the compiler
19772 additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
19773 SPARCStation/SPARCServer 3xx series.  This is also appropriate for the older
19774 SPARCStation 1, 2, \s-1IPX\s0 etc.
19775 .Sp
19776 With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
19777 architecture.  The only difference from V7 code is that the compiler emits
19778 the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
19779 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=supersparc\fR, the compiler additionally
19780 optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
19781 2000 series.
19782 .Sp
19783 With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
19784 the \s-1SPARC\s0 architecture.  This adds the integer multiply, integer divide step
19785 and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7\s0.
19786 With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
19787 Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU\s0.  With
19788 \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
19789 \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU\s0.
19790 .Sp
19791 With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
19792 the \s-1SPARC\s0 architecture.  This adds the integer multiply, multiply/accumulate,
19793 integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
19794 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=tsc701\fR, the compiler additionally
19795 optimizes it for the \s-1TEMIC\s0 SPARClet chip.
19796 .Sp
19797 With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
19798 architecture.  This adds 64\-bit integer and floating-point move instructions,
19799 3 additional floating-point condition code registers and conditional move
19800 instructions.  With \fB\-mcpu=ultrasparc\fR, the compiler additionally
19801 optimizes it for the Sun UltraSPARC I/II/IIi chips.  With
19802 \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
19803 Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+ chips.  With
19804 \&\fB\-mcpu=niagara\fR, the compiler additionally optimizes it for
19805 Sun UltraSPARC T1 chips.  With \fB\-mcpu=niagara2\fR, the compiler
19806 additionally optimizes it for Sun UltraSPARC T2 chips. With
19807 \&\fB\-mcpu=niagara3\fR, the compiler additionally optimizes it for Sun
19808 UltraSPARC T3 chips.  With \fB\-mcpu=niagara4\fR, the compiler
19809 additionally optimizes it for Sun UltraSPARC T4 chips.
19810 .RE
19811 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
19812 .IX Item "-mtune=cpu_type"
19813 Set the instruction scheduling parameters for machine type
19814 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
19815 option \fB\-mcpu=\fR\fIcpu_type\fR does.
19816 .Sp
19817 The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
19818 \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
19819 that select a particular \s-1CPU\s0 implementation.  Those are \fBcypress\fR,
19820 \&\fBsupersparc\fR, \fBhypersparc\fR, \fBleon\fR, \fBleon3\fR,
19821 \&\fBleon3v7\fR, \fBf930\fR, \fBf934\fR, \fBsparclite86x\fR, \fBtsc701\fR,
19822 \&\fBultrasparc\fR, \fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR,
19823 \&\fBniagara3\fR and \fBniagara4\fR.  With native Solaris and GNU/Linux
19824 toolchains, \fBnative\fR can also be used.
19825 .IP "\fB\-mv8plus\fR" 4
19826 .IX Item "-mv8plus"
19827 .PD 0
19828 .IP "\fB\-mno\-v8plus\fR" 4
19829 .IX Item "-mno-v8plus"
19830 .PD
19831 With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+\s0 \s-1ABI\s0.  The
19832 difference from the V8 \s-1ABI\s0 is that the global and out registers are
19833 considered 64 bits wide.  This is enabled by default on Solaris in 32\-bit
19834 mode for all \s-1SPARC\-V9\s0 processors.
19835 .IP "\fB\-mvis\fR" 4
19836 .IX Item "-mvis"
19837 .PD 0
19838 .IP "\fB\-mno\-vis\fR" 4
19839 .IX Item "-mno-vis"
19840 .PD
19841 With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
19842 Visual Instruction Set extensions.  The default is \fB\-mno\-vis\fR.
19843 .IP "\fB\-mvis2\fR" 4
19844 .IX Item "-mvis2"
19845 .PD 0
19846 .IP "\fB\-mno\-vis2\fR" 4
19847 .IX Item "-mno-vis2"
19848 .PD
19849 With \fB\-mvis2\fR, \s-1GCC\s0 generates code that takes advantage of
19850 version 2.0 of the UltraSPARC Visual Instruction Set extensions.  The
19851 default is \fB\-mvis2\fR when targeting a cpu that supports such
19852 instructions, such as UltraSPARC-III and later.  Setting \fB\-mvis2\fR
19853 also sets \fB\-mvis\fR.
19854 .IP "\fB\-mvis3\fR" 4
19855 .IX Item "-mvis3"
19856 .PD 0
19857 .IP "\fB\-mno\-vis3\fR" 4
19858 .IX Item "-mno-vis3"
19859 .PD
19860 With \fB\-mvis3\fR, \s-1GCC\s0 generates code that takes advantage of
19861 version 3.0 of the UltraSPARC Visual Instruction Set extensions.  The
19862 default is \fB\-mvis3\fR when targeting a cpu that supports such
19863 instructions, such as niagara\-3 and later.  Setting \fB\-mvis3\fR
19864 also sets \fB\-mvis2\fR and \fB\-mvis\fR.
19865 .IP "\fB\-mcbcond\fR" 4
19866 .IX Item "-mcbcond"
19867 .PD 0
19868 .IP "\fB\-mno\-cbcond\fR" 4
19869 .IX Item "-mno-cbcond"
19870 .PD
19871 With \fB\-mcbcond\fR, \s-1GCC\s0 generates code that takes advantage of
19872 compare-and-branch instructions, as defined in the Sparc Architecture 2011.
19873 The default is \fB\-mcbcond\fR when targeting a cpu that supports such
19874 instructions, such as niagara\-4 and later.
19875 .IP "\fB\-mpopc\fR" 4
19876 .IX Item "-mpopc"
19877 .PD 0
19878 .IP "\fB\-mno\-popc\fR" 4
19879 .IX Item "-mno-popc"
19880 .PD
19881 With \fB\-mpopc\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
19882 population count instruction.  The default is \fB\-mpopc\fR
19883 when targeting a cpu that supports such instructions, such as Niagara\-2 and
19884 later.
19885 .IP "\fB\-mfmaf\fR" 4
19886 .IX Item "-mfmaf"
19887 .PD 0
19888 .IP "\fB\-mno\-fmaf\fR" 4
19889 .IX Item "-mno-fmaf"
19890 .PD
19891 With \fB\-mfmaf\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
19892 Fused Multiply-Add Floating-point extensions.  The default is \fB\-mfmaf\fR
19893 when targeting a cpu that supports such instructions, such as Niagara\-3 and
19894 later.
19895 .IP "\fB\-mfix\-at697f\fR" 4
19896 .IX Item "-mfix-at697f"
19897 Enable the documented workaround for the single erratum of the Atmel \s-1AT697F\s0
19898 processor (which corresponds to erratum #13 of the \s-1AT697E\s0 processor).
19899 .IP "\fB\-mfix\-ut699\fR" 4
19900 .IX Item "-mfix-ut699"
19901 Enable the documented workarounds for the floating-point errata and the data
19902 cache nullify errata of the \s-1UT699\s0 processor.
19903 .PP
19904 These \fB\-m\fR options are supported in addition to the above
19905 on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
19906 .IP "\fB\-m32\fR" 4
19907 .IX Item "-m32"
19908 .PD 0
19909 .IP "\fB\-m64\fR" 4
19910 .IX Item "-m64"
19911 .PD
19912 Generate code for a 32\-bit or 64\-bit environment.
19913 The 32\-bit environment sets int, long and pointer to 32 bits.
19914 The 64\-bit environment sets int to 32 bits and long and pointer
19915 to 64 bits.
19916 .IP "\fB\-mcmodel=\fR\fIwhich\fR" 4
19917 .IX Item "-mcmodel=which"
19918 Set the code model to one of
19919 .RS 4
19920 .IP "\fBmedlow\fR" 4
19921 .IX Item "medlow"
19922 The Medium/Low code model: 64\-bit addresses, programs
19923 must be linked in the low 32 bits of memory.  Programs can be statically
19924 or dynamically linked.
19925 .IP "\fBmedmid\fR" 4
19926 .IX Item "medmid"
19927 The Medium/Middle code model: 64\-bit addresses, programs
19928 must be linked in the low 44 bits of memory, the text and data segments must
19929 be less than 2GB in size and the data segment must be located within 2GB of
19930 the text segment.
19931 .IP "\fBmedany\fR" 4
19932 .IX Item "medany"
19933 The Medium/Anywhere code model: 64\-bit addresses, programs
19934 may be linked anywhere in memory, the text and data segments must be less
19935 than 2GB in size and the data segment must be located within 2GB of the
19936 text segment.
19937 .IP "\fBembmedany\fR" 4
19938 .IX Item "embmedany"
19939 The Medium/Anywhere code model for embedded systems:
19940 64\-bit addresses, the text and data segments must be less than 2GB in
19941 size, both starting anywhere in memory (determined at link time).  The
19942 global register \f(CW%g4\fR points to the base of the data segment.  Programs
19943 are statically linked and \s-1PIC\s0 is not supported.
19944 .RE
19945 .RS 4
19946 .RE
19947 .IP "\fB\-mmemory\-model=\fR\fImem-model\fR" 4
19948 .IX Item "-mmemory-model=mem-model"
19949 Set the memory model in force on the processor to one of
19950 .RS 4
19951 .IP "\fBdefault\fR" 4
19952 .IX Item "default"
19953 The default memory model for the processor and operating system.
19954 .IP "\fBrmo\fR" 4
19955 .IX Item "rmo"
19956 Relaxed Memory Order
19957 .IP "\fBpso\fR" 4
19958 .IX Item "pso"
19959 Partial Store Order
19960 .IP "\fBtso\fR" 4
19961 .IX Item "tso"
19962 Total Store Order
19963 .IP "\fBsc\fR" 4
19964 .IX Item "sc"
19965 Sequential Consistency
19966 .RE
19967 .RS 4
19968 .Sp
19969 These memory models are formally defined in Appendix D of the Sparc V9
19970 architecture manual, as set in the processor's \f(CW\*(C`PSTATE.MM\*(C'\fR field.
19971 .RE
19972 .IP "\fB\-mstack\-bias\fR" 4
19973 .IX Item "-mstack-bias"
19974 .PD 0
19975 .IP "\fB\-mno\-stack\-bias\fR" 4
19976 .IX Item "-mno-stack-bias"
19977 .PD
19978 With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
19979 frame pointer if present, are offset by \-2047 which must be added back
19980 when making stack frame references.  This is the default in 64\-bit mode.
19981 Otherwise, assume no such offset is present.
19982 .PP
19983 \fI\s-1SPU\s0 Options\fR
19984 .IX Subsection "SPU Options"
19985 .PP
19986 These \fB\-m\fR options are supported on the \s-1SPU:\s0
19987 .IP "\fB\-mwarn\-reloc\fR" 4
19988 .IX Item "-mwarn-reloc"
19989 .PD 0
19990 .IP "\fB\-merror\-reloc\fR" 4
19991 .IX Item "-merror-reloc"
19992 .PD
19993 The loader for \s-1SPU\s0 does not handle dynamic relocations.  By default, \s-1GCC\s0
19994 gives an error when it generates code that requires a dynamic
19995 relocation.  \fB\-mno\-error\-reloc\fR disables the error,
19996 \&\fB\-mwarn\-reloc\fR generates a warning instead.
19997 .IP "\fB\-msafe\-dma\fR" 4
19998 .IX Item "-msafe-dma"
19999 .PD 0
20000 .IP "\fB\-munsafe\-dma\fR" 4
20001 .IX Item "-munsafe-dma"
20002 .PD
20003 Instructions that initiate or test completion of \s-1DMA\s0 must not be
20004 reordered with respect to loads and stores of the memory that is being
20005 accessed.
20006 With \fB\-munsafe\-dma\fR you must use the \f(CW\*(C`volatile\*(C'\fR keyword to protect
20007 memory accesses, but that can lead to inefficient code in places where the
20008 memory is known to not change.  Rather than mark the memory as volatile,
20009 you can use \fB\-msafe\-dma\fR to tell the compiler to treat
20010 the \s-1DMA\s0 instructions as potentially affecting all memory.
20011 .IP "\fB\-mbranch\-hints\fR" 4
20012 .IX Item "-mbranch-hints"
20013 By default, \s-1GCC\s0 generates a branch hint instruction to avoid
20014 pipeline stalls for always-taken or probably-taken branches.  A hint
20015 is not generated closer than 8 instructions away from its branch.
20016 There is little reason to disable them, except for debugging purposes,
20017 or to make an object a little bit smaller.
20018 .IP "\fB\-msmall\-mem\fR" 4
20019 .IX Item "-msmall-mem"
20020 .PD 0
20021 .IP "\fB\-mlarge\-mem\fR" 4
20022 .IX Item "-mlarge-mem"
20023 .PD
20024 By default, \s-1GCC\s0 generates code assuming that addresses are never larger
20025 than 18 bits.  With \fB\-mlarge\-mem\fR code is generated that assumes
20026 a full 32\-bit address.
20027 .IP "\fB\-mstdmain\fR" 4
20028 .IX Item "-mstdmain"
20029 By default, \s-1GCC\s0 links against startup code that assumes the SPU-style
20030 main function interface (which has an unconventional parameter list).
20031 With \fB\-mstdmain\fR, \s-1GCC\s0 links your program against startup
20032 code that assumes a C99\-style interface to \f(CW\*(C`main\*(C'\fR, including a
20033 local copy of \f(CW\*(C`argv\*(C'\fR strings.
20034 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
20035 .IX Item "-mfixed-range=register-range"
20036 Generate code treating the given register range as fixed registers.
20037 A fixed register is one that the register allocator cannot use.  This is
20038 useful when compiling kernel code.  A register range is specified as
20039 two registers separated by a dash.  Multiple register ranges can be
20040 specified separated by a comma.
20041 .IP "\fB\-mea32\fR" 4
20042 .IX Item "-mea32"
20043 .PD 0
20044 .IP "\fB\-mea64\fR" 4
20045 .IX Item "-mea64"
20046 .PD
20047 Compile code assuming that pointers to the \s-1PPU\s0 address space accessed
20048 via the \f(CW\*(C`_\|_ea\*(C'\fR named address space qualifier are either 32 or 64
20049 bits wide.  The default is 32 bits.  As this is an ABI-changing option,
20050 all object code in an executable must be compiled with the same setting.
20051 .IP "\fB\-maddress\-space\-conversion\fR" 4
20052 .IX Item "-maddress-space-conversion"
20053 .PD 0
20054 .IP "\fB\-mno\-address\-space\-conversion\fR" 4
20055 .IX Item "-mno-address-space-conversion"
20056 .PD
20057 Allow/disallow treating the \f(CW\*(C`_\|_ea\*(C'\fR address space as superset
20058 of the generic address space.  This enables explicit type casts
20059 between \f(CW\*(C`_\|_ea\*(C'\fR and generic pointer as well as implicit
20060 conversions of generic pointers to \f(CW\*(C`_\|_ea\*(C'\fR pointers.  The
20061 default is to allow address space pointer conversions.
20062 .IP "\fB\-mcache\-size=\fR\fIcache-size\fR" 4
20063 .IX Item "-mcache-size=cache-size"
20064 This option controls the version of libgcc that the compiler links to an
20065 executable and selects a software-managed cache for accessing variables
20066 in the \f(CW\*(C`_\|_ea\*(C'\fR address space with a particular cache size.  Possible
20067 options for \fIcache-size\fR are \fB8\fR, \fB16\fR, \fB32\fR, \fB64\fR
20068 and \fB128\fR.  The default cache size is 64KB.
20069 .IP "\fB\-matomic\-updates\fR" 4
20070 .IX Item "-matomic-updates"
20071 .PD 0
20072 .IP "\fB\-mno\-atomic\-updates\fR" 4
20073 .IX Item "-mno-atomic-updates"
20074 .PD
20075 This option controls the version of libgcc that the compiler links to an
20076 executable and selects whether atomic updates to the software-managed
20077 cache of PPU-side variables are used.  If you use atomic updates, changes
20078 to a \s-1PPU\s0 variable from \s-1SPU\s0 code using the \f(CW\*(C`_\|_ea\*(C'\fR named address space
20079 qualifier do not interfere with changes to other \s-1PPU\s0 variables residing
20080 in the same cache line from \s-1PPU\s0 code.  If you do not use atomic updates,
20081 such interference may occur; however, writing back cache lines is
20082 more efficient.  The default behavior is to use atomic updates.
20083 .IP "\fB\-mdual\-nops\fR" 4
20084 .IX Item "-mdual-nops"
20085 .PD 0
20086 .IP "\fB\-mdual\-nops=\fR\fIn\fR" 4
20087 .IX Item "-mdual-nops=n"
20088 .PD
20089 By default, \s-1GCC\s0 inserts nops to increase dual issue when it expects
20090 it to increase performance.  \fIn\fR can be a value from 0 to 10.  A
20091 smaller \fIn\fR inserts fewer nops.  10 is the default, 0 is the
20092 same as \fB\-mno\-dual\-nops\fR.  Disabled with \fB\-Os\fR.
20093 .IP "\fB\-mhint\-max\-nops=\fR\fIn\fR" 4
20094 .IX Item "-mhint-max-nops=n"
20095 Maximum number of nops to insert for a branch hint.  A branch hint must
20096 be at least 8 instructions away from the branch it is affecting.  \s-1GCC\s0
20097 inserts up to \fIn\fR nops to enforce this, otherwise it does not
20098 generate the branch hint.
20099 .IP "\fB\-mhint\-max\-distance=\fR\fIn\fR" 4
20100 .IX Item "-mhint-max-distance=n"
20101 The encoding of the branch hint instruction limits the hint to be within
20102 256 instructions of the branch it is affecting.  By default, \s-1GCC\s0 makes
20103 sure it is within 125.
20104 .IP "\fB\-msafe\-hints\fR" 4
20105 .IX Item "-msafe-hints"
20106 Work around a hardware bug that causes the \s-1SPU\s0 to stall indefinitely.
20107 By default, \s-1GCC\s0 inserts the \f(CW\*(C`hbrp\*(C'\fR instruction to make sure
20108 this stall won't happen.
20109 .PP
20110 \fIOptions for System V\fR
20111 .IX Subsection "Options for System V"
20112 .PP
20113 These additional options are available on System V Release 4 for
20114 compatibility with other compilers on those systems:
20115 .IP "\fB\-G\fR" 4
20116 .IX Item "-G"
20117 Create a shared object.
20118 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
20119 .IP "\fB\-Qy\fR" 4
20120 .IX Item "-Qy"
20121 Identify the versions of each tool used by the compiler, in a
20122 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
20123 .IP "\fB\-Qn\fR" 4
20124 .IX Item "-Qn"
20125 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
20126 the default).
20127 .IP "\fB\-YP,\fR\fIdirs\fR" 4
20128 .IX Item "-YP,dirs"
20129 Search the directories \fIdirs\fR, and no others, for libraries
20130 specified with \fB\-l\fR.
20131 .IP "\fB\-Ym,\fR\fIdir\fR" 4
20132 .IX Item "-Ym,dir"
20133 Look in the directory \fIdir\fR to find the M4 preprocessor.
20134 The assembler uses this option.
20135 .PP
20136 \fITILE-Gx Options\fR
20137 .IX Subsection "TILE-Gx Options"
20138 .PP
20139 These \fB\-m\fR options are supported on the TILE-Gx:
20140 .IP "\fB\-mcmodel=small\fR" 4
20141 .IX Item "-mcmodel=small"
20142 Generate code for the small model.  The distance for direct calls is
20143 limited to 500M in either direction.  PC-relative addresses are 32
20144 bits.  Absolute addresses support the full address range.
20145 .IP "\fB\-mcmodel=large\fR" 4
20146 .IX Item "-mcmodel=large"
20147 Generate code for the large model.  There is no limitation on call
20148 distance, pc-relative addresses, or absolute addresses.
20149 .IP "\fB\-mcpu=\fR\fIname\fR" 4
20150 .IX Item "-mcpu=name"
20151 Selects the type of \s-1CPU\s0 to be targeted.  Currently the only supported
20152 type is \fBtilegx\fR.
20153 .IP "\fB\-m32\fR" 4
20154 .IX Item "-m32"
20155 .PD 0
20156 .IP "\fB\-m64\fR" 4
20157 .IX Item "-m64"
20158 .PD
20159 Generate code for a 32\-bit or 64\-bit environment.  The 32\-bit
20160 environment sets int, long, and pointer to 32 bits.  The 64\-bit
20161 environment sets int to 32 bits and long and pointer to 64 bits.
20162 .IP "\fB\-mbig\-endian\fR" 4
20163 .IX Item "-mbig-endian"
20164 .PD 0
20165 .IP "\fB\-mlittle\-endian\fR" 4
20166 .IX Item "-mlittle-endian"
20167 .PD
20168 Generate code in big/little endian mode, respectively.
20169 .PP
20170 \fITILEPro Options\fR
20171 .IX Subsection "TILEPro Options"
20172 .PP
20173 These \fB\-m\fR options are supported on the TILEPro:
20174 .IP "\fB\-mcpu=\fR\fIname\fR" 4
20175 .IX Item "-mcpu=name"
20176 Selects the type of \s-1CPU\s0 to be targeted.  Currently the only supported
20177 type is \fBtilepro\fR.
20178 .IP "\fB\-m32\fR" 4
20179 .IX Item "-m32"
20180 Generate code for a 32\-bit environment, which sets int, long, and
20181 pointer to 32 bits.  This is the only supported behavior so the flag
20182 is essentially ignored.
20183 .PP
20184 \fIV850 Options\fR
20185 .IX Subsection "V850 Options"
20186 .PP
20187 These \fB\-m\fR options are defined for V850 implementations:
20188 .IP "\fB\-mlong\-calls\fR" 4
20189 .IX Item "-mlong-calls"
20190 .PD 0
20191 .IP "\fB\-mno\-long\-calls\fR" 4
20192 .IX Item "-mno-long-calls"
20193 .PD
20194 Treat all calls as being far away (near).  If calls are assumed to be
20195 far away, the compiler always loads the function's address into a
20196 register, and calls indirect through the pointer.
20197 .IP "\fB\-mno\-ep\fR" 4
20198 .IX Item "-mno-ep"
20199 .PD 0
20200 .IP "\fB\-mep\fR" 4
20201 .IX Item "-mep"
20202 .PD
20203 Do not optimize (do optimize) basic blocks that use the same index
20204 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
20205 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
20206 option is on by default if you optimize.
20207 .IP "\fB\-mno\-prolog\-function\fR" 4
20208 .IX Item "-mno-prolog-function"
20209 .PD 0
20210 .IP "\fB\-mprolog\-function\fR" 4
20211 .IX Item "-mprolog-function"
20212 .PD
20213 Do not use (do use) external functions to save and restore registers
20214 at the prologue and epilogue of a function.  The external functions
20215 are slower, but use less code space if more than one function saves
20216 the same number of registers.  The \fB\-mprolog\-function\fR option
20217 is on by default if you optimize.
20218 .IP "\fB\-mspace\fR" 4
20219 .IX Item "-mspace"
20220 Try to make the code as small as possible.  At present, this just turns
20221 on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
20222 .IP "\fB\-mtda=\fR\fIn\fR" 4
20223 .IX Item "-mtda=n"
20224 Put static or global variables whose size is \fIn\fR bytes or less into
20225 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
20226 area can hold up to 256 bytes in total (128 bytes for byte references).
20227 .IP "\fB\-msda=\fR\fIn\fR" 4
20228 .IX Item "-msda=n"
20229 Put static or global variables whose size is \fIn\fR bytes or less into
20230 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
20231 area can hold up to 64 kilobytes.
20232 .IP "\fB\-mzda=\fR\fIn\fR" 4
20233 .IX Item "-mzda=n"
20234 Put static or global variables whose size is \fIn\fR bytes or less into
20235 the first 32 kilobytes of memory.
20236 .IP "\fB\-mv850\fR" 4
20237 .IX Item "-mv850"
20238 Specify that the target processor is the V850.
20239 .IP "\fB\-mv850e3v5\fR" 4
20240 .IX Item "-mv850e3v5"
20241 Specify that the target processor is the V850E3V5.  The preprocessor
20242 constant \f(CW\*(C`_\|_v850e3v5_\|_\*(C'\fR is defined if this option is used.
20243 .IP "\fB\-mv850e2v4\fR" 4
20244 .IX Item "-mv850e2v4"
20245 Specify that the target processor is the V850E3V5.  This is an alias for
20246 the \fB\-mv850e3v5\fR option.
20247 .IP "\fB\-mv850e2v3\fR" 4
20248 .IX Item "-mv850e2v3"
20249 Specify that the target processor is the V850E2V3.  The preprocessor
20250 constant \f(CW\*(C`_\|_v850e2v3_\|_\*(C'\fR is defined if this option is used.
20251 .IP "\fB\-mv850e2\fR" 4
20252 .IX Item "-mv850e2"
20253 Specify that the target processor is the V850E2.  The preprocessor
20254 constant \f(CW\*(C`_\|_v850e2_\|_\*(C'\fR is defined if this option is used.
20255 .IP "\fB\-mv850e1\fR" 4
20256 .IX Item "-mv850e1"
20257 Specify that the target processor is the V850E1.  The preprocessor
20258 constants \f(CW\*(C`_\|_v850e1_\|_\*(C'\fR and \f(CW\*(C`_\|_v850e_\|_\*(C'\fR are defined if
20259 this option is used.
20260 .IP "\fB\-mv850es\fR" 4
20261 .IX Item "-mv850es"
20262 Specify that the target processor is the V850ES.  This is an alias for
20263 the \fB\-mv850e1\fR option.
20264 .IP "\fB\-mv850e\fR" 4
20265 .IX Item "-mv850e"
20266 Specify that the target processor is the V850E.  The preprocessor
20267 constant \f(CW\*(C`_\|_v850e_\|_\*(C'\fR is defined if this option is used.
20268 .Sp
20269 If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
20270 nor \fB\-mv850e2\fR nor \fB\-mv850e2v3\fR nor \fB\-mv850e3v5\fR
20271 are defined then a default target processor is chosen and the
20272 relevant \fB_\|_v850*_\|_\fR preprocessor constant is defined.
20273 .Sp
20274 The preprocessor constants \f(CW\*(C`_\|_v850\*(C'\fR and \f(CW\*(C`_\|_v851_\|_\*(C'\fR are always
20275 defined, regardless of which processor variant is the target.
20276 .IP "\fB\-mdisable\-callt\fR" 4
20277 .IX Item "-mdisable-callt"
20278 .PD 0
20279 .IP "\fB\-mno\-disable\-callt\fR" 4
20280 .IX Item "-mno-disable-callt"
20281 .PD
20282 This option suppresses generation of the \f(CW\*(C`CALLT\*(C'\fR instruction for the
20283 v850e, v850e1, v850e2, v850e2v3 and v850e3v5 flavors of the v850
20284 architecture.
20285 .Sp
20286 This option is enabled by default when the \s-1RH850\s0 \s-1ABI\s0 is
20287 in use (see \fB\-mrh850\-abi\fR), and disabled by default when the
20288 \&\s-1GCC\s0 \s-1ABI\s0 is in use.  If \f(CW\*(C`CALLT\*(C'\fR instructions are being generated
20289 then the C preprocessor symbol \f(CW\*(C`_\|_V850_CALLT_\|_\*(C'\fR is defined.
20290 .IP "\fB\-mrelax\fR" 4
20291 .IX Item "-mrelax"
20292 .PD 0
20293 .IP "\fB\-mno\-relax\fR" 4
20294 .IX Item "-mno-relax"
20295 .PD
20296 Pass on (or do not pass on) the \fB\-mrelax\fR command-line option
20297 to the assembler.
20298 .IP "\fB\-mlong\-jumps\fR" 4
20299 .IX Item "-mlong-jumps"
20300 .PD 0
20301 .IP "\fB\-mno\-long\-jumps\fR" 4
20302 .IX Item "-mno-long-jumps"
20303 .PD
20304 Disable (or re-enable) the generation of PC-relative jump instructions.
20305 .IP "\fB\-msoft\-float\fR" 4
20306 .IX Item "-msoft-float"
20307 .PD 0
20308 .IP "\fB\-mhard\-float\fR" 4
20309 .IX Item "-mhard-float"
20310 .PD
20311 Disable (or re-enable) the generation of hardware floating point
20312 instructions.  This option is only significant when the target
20313 architecture is \fBV850E2V3\fR or higher.  If hardware floating point
20314 instructions are being generated then the C preprocessor symbol
20315 \&\f(CW\*(C`_\|_FPU_OK_\|_\*(C'\fR is defined, otherwise the symbol
20316 \&\f(CW\*(C`_\|_NO_FPU_\|_\*(C'\fR is defined.
20317 .IP "\fB\-mloop\fR" 4
20318 .IX Item "-mloop"
20319 Enables the use of the e3v5 \s-1LOOP\s0 instruction.  The use of this
20320 instruction is not enabled by default when the e3v5 architecture is
20321 selected because its use is still experimental.
20322 .IP "\fB\-mrh850\-abi\fR" 4
20323 .IX Item "-mrh850-abi"
20324 .PD 0
20325 .IP "\fB\-mghs\fR" 4
20326 .IX Item "-mghs"
20327 .PD
20328 Enables support for the \s-1RH850\s0 version of the V850 \s-1ABI\s0.  This is the
20329 default.  With this version of the \s-1ABI\s0 the following rules apply:
20330 .RS 4
20331 .IP "*" 4
20332 Integer sized structures and unions are returned via a memory pointer
20333 rather than a register.
20334 .IP "*" 4
20335 Large structures and unions (more than 8 bytes in size) are passed by
20336 value.
20337 .IP "*" 4
20338 Functions are aligned to 16\-bit boundaries.
20339 .IP "*" 4
20340 The \fB\-m8byte\-align\fR command-line option is supported.
20341 .IP "*" 4
20342 The \fB\-mdisable\-callt\fR command-line option is enabled by
20343 default.  The \fB\-mno\-disable\-callt\fR command-line option is not
20344 supported.
20345 .RE
20346 .RS 4
20347 .Sp
20348 When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
20349 \&\f(CW\*(C`_\|_V850_RH850_ABI_\|_\*(C'\fR is defined.
20350 .RE
20351 .IP "\fB\-mgcc\-abi\fR" 4
20352 .IX Item "-mgcc-abi"
20353 Enables support for the old \s-1GCC\s0 version of the V850 \s-1ABI\s0.  With this
20354 version of the \s-1ABI\s0 the following rules apply:
20355 .RS 4
20356 .IP "*" 4
20357 Integer sized structures and unions are returned in register \f(CW\*(C`r10\*(C'\fR.
20358 .IP "*" 4
20359 Large structures and unions (more than 8 bytes in size) are passed by
20360 reference.
20361 .IP "*" 4
20362 Functions are aligned to 32\-bit boundaries, unless optimizing for
20363 size.
20364 .IP "*" 4
20365 The \fB\-m8byte\-align\fR command-line option is not supported.
20366 .IP "*" 4
20367 The \fB\-mdisable\-callt\fR command-line option is supported but not
20368 enabled by default.
20369 .RE
20370 .RS 4
20371 .Sp
20372 When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
20373 \&\f(CW\*(C`_\|_V850_GCC_ABI_\|_\*(C'\fR is defined.
20374 .RE
20375 .IP "\fB\-m8byte\-align\fR" 4
20376 .IX Item "-m8byte-align"
20377 .PD 0
20378 .IP "\fB\-mno\-8byte\-align\fR" 4
20379 .IX Item "-mno-8byte-align"
20380 .PD
20381 Enables support for \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long long\*(C'\fR types to be
20382 aligned on 8\-byte boundaries.  The default is to restrict the
20383 alignment of all objects to at most 4\-bytes.  When
20384 \&\fB\-m8byte\-align\fR is in effect the C preprocessor symbol
20385 \&\f(CW\*(C`_\|_V850_8BYTE_ALIGN_\|_\*(C'\fR is defined.
20386 .IP "\fB\-mbig\-switch\fR" 4
20387 .IX Item "-mbig-switch"
20388 Generate code suitable for big switch tables.  Use this option only if
20389 the assembler/linker complain about out of range branches within a switch
20390 table.
20391 .IP "\fB\-mapp\-regs\fR" 4
20392 .IX Item "-mapp-regs"
20393 This option causes r2 and r5 to be used in the code generated by
20394 the compiler.  This setting is the default.
20395 .IP "\fB\-mno\-app\-regs\fR" 4
20396 .IX Item "-mno-app-regs"
20397 This option causes r2 and r5 to be treated as fixed registers.
20398 .PP
20399 \fI\s-1VAX\s0 Options\fR
20400 .IX Subsection "VAX Options"
20401 .PP
20402 These \fB\-m\fR options are defined for the \s-1VAX:\s0
20403 .IP "\fB\-munix\fR" 4
20404 .IX Item "-munix"
20405 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
20406 that the Unix assembler for the \s-1VAX\s0 cannot handle across long
20407 ranges.
20408 .IP "\fB\-mgnu\fR" 4
20409 .IX Item "-mgnu"
20410 Do output those jump instructions, on the assumption that the
20411 \&\s-1GNU\s0 assembler is being used.
20412 .IP "\fB\-mg\fR" 4
20413 .IX Item "-mg"
20414 Output code for G\-format floating-point numbers instead of D\-format.
20415 .PP
20416 \fIVisium Options\fR
20417 .IX Subsection "Visium Options"
20418 .IP "\fB\-mdebug\fR" 4
20419 .IX Item "-mdebug"
20420 A program which performs file I/O and is destined to run on an \s-1MCM\s0 target
20421 should be linked with this option.  It causes the libraries libc.a and
20422 libdebug.a to be linked.  The program should be run on the target under
20423 the control of the \s-1GDB\s0 remote debugging stub.
20424 .IP "\fB\-msim\fR" 4
20425 .IX Item "-msim"
20426 A program which performs file I/O and is destined to run on the simulator
20427 should be linked with option.  This causes libraries libc.a and libsim.a to
20428 be linked.
20429 .IP "\fB\-mfpu\fR" 4
20430 .IX Item "-mfpu"
20431 .PD 0
20432 .IP "\fB\-mhard\-float\fR" 4
20433 .IX Item "-mhard-float"
20434 .PD
20435 Generate code containing floating-point instructions.  This is the
20436 default.
20437 .IP "\fB\-mno\-fpu\fR" 4
20438 .IX Item "-mno-fpu"
20439 .PD 0
20440 .IP "\fB\-msoft\-float\fR" 4
20441 .IX Item "-msoft-float"
20442 .PD
20443 Generate code containing library calls for floating-point.
20444 .Sp
20445 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
20446 therefore, it is only useful if you compile \fIall\fR of a program with
20447 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
20448 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
20449 this to work.
20450 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
20451 .IX Item "-mcpu=cpu_type"
20452 Set the instruction set, register set, and instruction scheduling parameters
20453 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
20454 \&\fBmcm\fR, \fBgr5\fR and \fBgr6\fR.
20455 .Sp
20456 \&\fBmcm\fR is a synonym of \fBgr5\fR present for backward compatibility.
20457 .Sp
20458 By default (unless configured otherwise), \s-1GCC\s0 generates code for the \s-1GR5\s0
20459 variant of the Visium architecture.
20460 .Sp
20461 With \fB\-mcpu=gr6\fR, \s-1GCC\s0 generates code for the \s-1GR6\s0 variant of the Visium
20462 architecture.  The only difference from \s-1GR5\s0 code is that the compiler will
20463 generate block move instructions.
20464 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
20465 .IX Item "-mtune=cpu_type"
20466 Set the instruction scheduling parameters for machine type \fIcpu_type\fR,
20467 but do not set the instruction set or register set that the option
20468 \&\fB\-mcpu=\fR\fIcpu_type\fR would.
20469 .IP "\fB\-msv\-mode\fR" 4
20470 .IX Item "-msv-mode"
20471 Generate code for the supervisor mode, where there are no restrictions on
20472 the access to general registers.  This is the default.
20473 .IP "\fB\-muser\-mode\fR" 4
20474 .IX Item "-muser-mode"
20475 Generate code for the user mode, where the access to some general registers
20476 is forbidden: on the \s-1GR5\s0, registers r24 to r31 cannot be accessed in this
20477 mode; on the \s-1GR6\s0, only registers r29 to r31 are affected.
20478 .PP
20479 \fI\s-1VMS\s0 Options\fR
20480 .IX Subsection "VMS Options"
20481 .PP
20482 These \fB\-m\fR options are defined for the \s-1VMS\s0 implementations:
20483 .IP "\fB\-mvms\-return\-codes\fR" 4
20484 .IX Item "-mvms-return-codes"
20485 Return \s-1VMS\s0 condition codes from \f(CW\*(C`main\*(C'\fR. The default is to return POSIX-style
20486 condition (e.g. error) codes.
20487 .IP "\fB\-mdebug\-main=\fR\fIprefix\fR" 4
20488 .IX Item "-mdebug-main=prefix"
20489 Flag the first routine whose name starts with \fIprefix\fR as the main
20490 routine for the debugger.
20491 .IP "\fB\-mmalloc64\fR" 4
20492 .IX Item "-mmalloc64"
20493 Default to 64\-bit memory allocation routines.
20494 .IP "\fB\-mpointer\-size=\fR\fIsize\fR" 4
20495 .IX Item "-mpointer-size=size"
20496 Set the default size of pointers. Possible options for \fIsize\fR are
20497 \&\fB32\fR or \fBshort\fR for 32 bit pointers, \fB64\fR or \fBlong\fR
20498 for 64 bit pointers, and \fBno\fR for supporting only 32 bit pointers.
20499 The later option disables \f(CW\*(C`pragma pointer_size\*(C'\fR.
20500 .PP
20501 \fIVxWorks Options\fR
20502 .IX Subsection "VxWorks Options"
20503 .PP
20504 The options in this section are defined for all VxWorks targets.
20505 Options specific to the target hardware are listed with the other
20506 options for that target.
20507 .IP "\fB\-mrtp\fR" 4
20508 .IX Item "-mrtp"
20509 \&\s-1GCC\s0 can generate code for both VxWorks kernels and real time processes
20510 (RTPs).  This option switches from the former to the latter.  It also
20511 defines the preprocessor macro \f(CW\*(C`_\|_RTP_\|_\*(C'\fR.
20512 .IP "\fB\-non\-static\fR" 4
20513 .IX Item "-non-static"
20514 Link an \s-1RTP\s0 executable against shared libraries rather than static
20515 libraries.  The options \fB\-static\fR and \fB\-shared\fR can
20516 also be used for RTPs; \fB\-static\fR
20517 is the default.
20518 .IP "\fB\-Bstatic\fR" 4
20519 .IX Item "-Bstatic"
20520 .PD 0
20521 .IP "\fB\-Bdynamic\fR" 4
20522 .IX Item "-Bdynamic"
20523 .PD
20524 These options are passed down to the linker.  They are defined for
20525 compatibility with Diab.
20526 .IP "\fB\-Xbind\-lazy\fR" 4
20527 .IX Item "-Xbind-lazy"
20528 Enable lazy binding of function calls.  This option is equivalent to
20529 \&\fB\-Wl,\-z,now\fR and is defined for compatibility with Diab.
20530 .IP "\fB\-Xbind\-now\fR" 4
20531 .IX Item "-Xbind-now"
20532 Disable lazy binding of function calls.  This option is the default and
20533 is defined for compatibility with Diab.
20534 .PP
20535 \fIx86 Options\fR
20536 .IX Subsection "x86 Options"
20537 .PP
20538 These \fB\-m\fR options are defined for the x86 family of computers.
20539 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
20540 .IX Item "-march=cpu-type"
20541 Generate instructions for the machine type \fIcpu-type\fR.  In contrast to
20542 \&\fB\-mtune=\fR\fIcpu-type\fR, which merely tunes the generated code 
20543 for the specified \fIcpu-type\fR, \fB\-march=\fR\fIcpu-type\fR allows \s-1GCC\s0
20544 to generate code that may not run at all on processors other than the one
20545 indicated.  Specifying \fB\-march=\fR\fIcpu-type\fR implies 
20546 \&\fB\-mtune=\fR\fIcpu-type\fR.
20547 .Sp
20548 The choices for \fIcpu-type\fR are:
20549 .RS 4
20550 .IP "\fBnative\fR" 4
20551 .IX Item "native"
20552 This selects the \s-1CPU\s0 to generate code for at compilation time by determining
20553 the processor type of the compiling machine.  Using \fB\-march=native\fR
20554 enables all instruction subsets supported by the local machine (hence
20555 the result might not run on different machines).  Using \fB\-mtune=native\fR
20556 produces code optimized for the local machine under the constraints
20557 of the selected instruction set.
20558 .IP "\fBi386\fR" 4
20559 .IX Item "i386"
20560 Original Intel i386 \s-1CPU\s0.
20561 .IP "\fBi486\fR" 4
20562 .IX Item "i486"
20563 Intel i486 \s-1CPU\s0.  (No scheduling is implemented for this chip.)
20564 .IP "\fBi586\fR" 4
20565 .IX Item "i586"
20566 .PD 0
20567 .IP "\fBpentium\fR" 4
20568 .IX Item "pentium"
20569 .PD
20570 Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
20571 .IP "\fBpentium-mmx\fR" 4
20572 .IX Item "pentium-mmx"
20573 Intel Pentium \s-1MMX\s0 \s-1CPU\s0, based on Pentium core with \s-1MMX\s0 instruction set support.
20574 .IP "\fBpentiumpro\fR" 4
20575 .IX Item "pentiumpro"
20576 Intel Pentium Pro \s-1CPU\s0.
20577 .IP "\fBi686\fR" 4
20578 .IX Item "i686"
20579 When used with \fB\-march\fR, the Pentium Pro
20580 instruction set is used, so the code runs on all i686 family chips.
20581 When used with \fB\-mtune\fR, it has the same meaning as \fBgeneric\fR.
20582 .IP "\fBpentium2\fR" 4
20583 .IX Item "pentium2"
20584 Intel Pentium \s-1II\s0 \s-1CPU\s0, based on Pentium Pro core with \s-1MMX\s0 instruction set
20585 support.
20586 .IP "\fBpentium3\fR" 4
20587 .IX Item "pentium3"
20588 .PD 0
20589 .IP "\fBpentium3m\fR" 4
20590 .IX Item "pentium3m"
20591 .PD
20592 Intel Pentium \s-1III\s0 \s-1CPU\s0, based on Pentium Pro core with \s-1MMX\s0 and \s-1SSE\s0 instruction
20593 set support.
20594 .IP "\fBpentium-m\fR" 4
20595 .IX Item "pentium-m"
20596 Intel Pentium M; low-power version of Intel Pentium \s-1III\s0 \s-1CPU\s0
20597 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set support.  Used by Centrino notebooks.
20598 .IP "\fBpentium4\fR" 4
20599 .IX Item "pentium4"
20600 .PD 0
20601 .IP "\fBpentium4m\fR" 4
20602 .IX Item "pentium4m"
20603 .PD
20604 Intel Pentium 4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set support.
20605 .IP "\fBprescott\fR" 4
20606 .IX Item "prescott"
20607 Improved version of Intel Pentium 4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0 and \s-1SSE3\s0 instruction
20608 set support.
20609 .IP "\fBnocona\fR" 4
20610 .IX Item "nocona"
20611 Improved version of Intel Pentium 4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0,
20612 \&\s-1SSE2\s0 and \s-1SSE3\s0 instruction set support.
20613 .IP "\fBcore2\fR" 4
20614 .IX Item "core2"
20615 Intel Core 2 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0 and \s-1SSSE3\s0
20616 instruction set support.
20617 .IP "\fBnehalem\fR" 4
20618 .IX Item "nehalem"
20619 Intel Nehalem \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSSE3\s0,
20620 \&\s-1SSE4\s0.1, \s-1SSE4\s0.2 and \s-1POPCNT\s0 instruction set support.
20621 .IP "\fBwestmere\fR" 4
20622 .IX Item "westmere"
20623 Intel Westmere \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSSE3\s0,
20624 \&\s-1SSE4\s0.1, \s-1SSE4\s0.2, \s-1POPCNT\s0, \s-1AES\s0 and \s-1PCLMUL\s0 instruction set support.
20625 .IP "\fBsandybridge\fR" 4
20626 .IX Item "sandybridge"
20627 Intel Sandy Bridge \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSSE3\s0,
20628 \&\s-1SSE4\s0.1, \s-1SSE4\s0.2, \s-1POPCNT\s0, \s-1AVX\s0, \s-1AES\s0 and \s-1PCLMUL\s0 instruction set support.
20629 .IP "\fBivybridge\fR" 4
20630 .IX Item "ivybridge"
20631 Intel Ivy Bridge \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSSE3\s0,
20632 \&\s-1SSE4\s0.1, \s-1SSE4\s0.2, \s-1POPCNT\s0, \s-1AVX\s0, \s-1AES\s0, \s-1PCLMUL\s0, \s-1FSGSBASE\s0, \s-1RDRND\s0 and F16C
20633 instruction set support.
20634 .IP "\fBhaswell\fR" 4
20635 .IX Item "haswell"
20636 Intel Haswell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE\s0, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSSE3\s0,
20637 \&\s-1SSE4\s0.1, \s-1SSE4\s0.2, \s-1POPCNT\s0, \s-1AVX\s0, \s-1AVX2\s0, \s-1AES\s0, \s-1PCLMUL\s0, \s-1FSGSBASE\s0, \s-1RDRND\s0, \s-1FMA\s0,
20638 \&\s-1BMI\s0, \s-1BMI2\s0 and F16C instruction set support.
20639 .IP "\fBbroadwell\fR" 4
20640 .IX Item "broadwell"
20641 Intel Broadwell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE\s0, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSSE3\s0,
20642 \&\s-1SSE4\s0.1, \s-1SSE4\s0.2, \s-1POPCNT\s0, \s-1AVX\s0, \s-1AVX2\s0, \s-1AES\s0, \s-1PCLMUL\s0, \s-1FSGSBASE\s0, \s-1RDRND\s0, \s-1FMA\s0,
20643 \&\s-1BMI\s0, \s-1BMI2\s0, F16C, \s-1RDSEED\s0, \s-1ADCX\s0 and \s-1PREFETCHW\s0 instruction set support.
20644 .IP "\fBbonnell\fR" 4
20645 .IX Item "bonnell"
20646 Intel Bonnell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE\s0, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0 and \s-1SSSE3\s0
20647 instruction set support.
20648 .IP "\fBsilvermont\fR" 4
20649 .IX Item "silvermont"
20650 Intel Silvermont \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE\s0, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSSE3\s0,
20651 \&\s-1SSE4\s0.1, \s-1SSE4\s0.2, \s-1POPCNT\s0, \s-1AES\s0, \s-1PCLMUL\s0 and \s-1RDRND\s0 instruction set support.
20652 .IP "\fBknl\fR" 4
20653 .IX Item "knl"
20654 Intel Knight's Landing \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE\s0, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0,
20655 \&\s-1SSSE3\s0, \s-1SSE4\s0.1, \s-1SSE4\s0.2, \s-1POPCNT\s0, \s-1AVX\s0, \s-1AVX2\s0, \s-1AES\s0, \s-1PCLMUL\s0, \s-1FSGSBASE\s0, \s-1RDRND\s0, \s-1FMA\s0,
20656 \&\s-1BMI\s0, \s-1BMI2\s0, F16C, \s-1RDSEED\s0, \s-1ADCX\s0, \s-1PREFETCHW\s0, \s-1AVX512F\s0, \s-1AVX512PF\s0, \s-1AVX512ER\s0 and
20657 \&\s-1AVX512CD\s0 instruction set support.
20658 .IP "\fBk6\fR" 4
20659 .IX Item "k6"
20660 \&\s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 instruction set support.
20661 .IP "\fBk6\-2\fR" 4
20662 .IX Item "k6-2"
20663 .PD 0
20664 .IP "\fBk6\-3\fR" 4
20665 .IX Item "k6-3"
20666 .PD
20667 Improved versions of \s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
20668 .IP "\fBathlon\fR" 4
20669 .IX Item "athlon"
20670 .PD 0
20671 .IP "\fBathlon-tbird\fR" 4
20672 .IX Item "athlon-tbird"
20673 .PD
20674 \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3DNow! and \s-1SSE\s0 prefetch instructions
20675 support.
20676 .IP "\fBathlon\-4\fR" 4
20677 .IX Item "athlon-4"
20678 .PD 0
20679 .IP "\fBathlon-xp\fR" 4
20680 .IX Item "athlon-xp"
20681 .IP "\fBathlon-mp\fR" 4
20682 .IX Item "athlon-mp"
20683 .PD
20684 Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3DNow!, enhanced 3DNow! and full \s-1SSE\s0
20685 instruction set support.
20686 .IP "\fBk8\fR" 4
20687 .IX Item "k8"
20688 .PD 0
20689 .IP "\fBopteron\fR" 4
20690 .IX Item "opteron"
20691 .IP "\fBathlon64\fR" 4
20692 .IX Item "athlon64"
20693 .IP "\fBathlon-fx\fR" 4
20694 .IX Item "athlon-fx"
20695 .PD
20696 Processors based on the \s-1AMD\s0 K8 core with x86\-64 instruction set support,
20697 including the \s-1AMD\s0 Opteron, Athlon 64, and Athlon 64 \s-1FX\s0 processors.
20698 (This supersets \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, 3DNow!, enhanced 3DNow! and 64\-bit
20699 instruction set extensions.)
20700 .IP "\fBk8\-sse3\fR" 4
20701 .IX Item "k8-sse3"
20702 .PD 0
20703 .IP "\fBopteron\-sse3\fR" 4
20704 .IX Item "opteron-sse3"
20705 .IP "\fBathlon64\-sse3\fR" 4
20706 .IX Item "athlon64-sse3"
20707 .PD
20708 Improved versions of \s-1AMD\s0 K8 cores with \s-1SSE3\s0 instruction set support.
20709 .IP "\fBamdfam10\fR" 4
20710 .IX Item "amdfam10"
20711 .PD 0
20712 .IP "\fBbarcelona\fR" 4
20713 .IX Item "barcelona"
20714 .PD
20715 CPUs based on \s-1AMD\s0 Family 10h cores with x86\-64 instruction set support.  (This
20716 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
20717 instruction set extensions.)
20718 .IP "\fBbdver1\fR" 4
20719 .IX Item "bdver1"
20720 CPUs based on \s-1AMD\s0 Family 15h cores with x86\-64 instruction set support.  (This
20721 supersets \s-1FMA4\s0, \s-1AVX\s0, \s-1XOP\s0, \s-1LWP\s0, \s-1AES\s0, \s-1PCL_MUL\s0, \s-1CX16\s0, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSE4A\s0,
20722 \&\s-1SSSE3\s0, \s-1SSE4\s0.1, \s-1SSE4\s0.2, \s-1ABM\s0 and 64\-bit instruction set extensions.)
20723 .IP "\fBbdver2\fR" 4
20724 .IX Item "bdver2"
20725 \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support.  (This
20726 supersets \s-1BMI\s0, \s-1TBM\s0, F16C, \s-1FMA\s0, \s-1FMA4\s0, \s-1AVX\s0, \s-1XOP\s0, \s-1LWP\s0, \s-1AES\s0, \s-1PCL_MUL\s0, \s-1CX16\s0, \s-1MMX\s0,
20727 \&\s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSE4A\s0, \s-1SSSE3\s0, \s-1SSE4\s0.1, \s-1SSE4\s0.2, \s-1ABM\s0 and 64\-bit instruction set 
20728 extensions.)
20729 .IP "\fBbdver3\fR" 4
20730 .IX Item "bdver3"
20731 \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support.  (This
20732 supersets \s-1BMI\s0, \s-1TBM\s0, F16C, \s-1FMA\s0, \s-1FMA4\s0, \s-1FSGSBASE\s0, \s-1AVX\s0, \s-1XOP\s0, \s-1LWP\s0, \s-1AES\s0, 
20733 \&\s-1PCL_MUL\s0, \s-1CX16\s0, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSE4A\s0, \s-1SSSE3\s0, \s-1SSE4\s0.1, \s-1SSE4\s0.2, \s-1ABM\s0 and 
20734 64\-bit instruction set extensions.
20735 .IP "\fBbdver4\fR" 4
20736 .IX Item "bdver4"
20737 \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support.  (This
20738 supersets \s-1BMI\s0, \s-1BMI2\s0, \s-1TBM\s0, F16C, \s-1FMA\s0, \s-1FMA4\s0, \s-1FSGSBASE\s0, \s-1AVX\s0, \s-1AVX2\s0, \s-1XOP\s0, \s-1LWP\s0, 
20739 \&\s-1AES\s0, \s-1PCL_MUL\s0, \s-1CX16\s0, \s-1MOVBE\s0, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSE4A\s0, \s-1SSSE3\s0, \s-1SSE4\s0.1, 
20740 \&\s-1SSE4\s0.2, \s-1ABM\s0 and 64\-bit instruction set extensions.
20741 .IP "\fBbtver1\fR" 4
20742 .IX Item "btver1"
20743 CPUs based on \s-1AMD\s0 Family 14h cores with x86\-64 instruction set support.  (This
20744 supersets \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSSE3\s0, \s-1SSE4A\s0, \s-1CX16\s0, \s-1ABM\s0 and 64\-bit
20745 instruction set extensions.)
20746 .IP "\fBbtver2\fR" 4
20747 .IX Item "btver2"
20748 CPUs based on \s-1AMD\s0 Family 16h cores with x86\-64 instruction set support. This
20749 includes \s-1MOVBE\s0, F16C, \s-1BMI\s0, \s-1AVX\s0, \s-1PCL_MUL\s0, \s-1AES\s0, \s-1SSE4\s0.2, \s-1SSE4\s0.1, \s-1CX16\s0, \s-1ABM\s0,
20750 \&\s-1SSE4A\s0, \s-1SSSE3\s0, \s-1SSE3\s0, \s-1SSE2\s0, \s-1SSE\s0, \s-1MMX\s0 and 64\-bit instruction set extensions.
20751 .IP "\fBwinchip\-c6\fR" 4
20752 .IX Item "winchip-c6"
20753 \&\s-1IDT\s0 WinChip C6 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 instruction
20754 set support.
20755 .IP "\fBwinchip2\fR" 4
20756 .IX Item "winchip2"
20757 \&\s-1IDT\s0 WinChip 2 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 and 3DNow!
20758 instruction set support.
20759 .IP "\fBc3\fR" 4
20760 .IX Item "c3"
20761 \&\s-1VIA\s0 C3 \s-1CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.  (No scheduling is
20762 implemented for this chip.)
20763 .IP "\fBc3\-2\fR" 4
20764 .IX Item "c3-2"
20765 \&\s-1VIA\s0 C3\-2 (Nehemiah/C5XL) \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.
20766 (No scheduling is
20767 implemented for this chip.)
20768 .IP "\fBgeode\fR" 4
20769 .IX Item "geode"
20770 \&\s-1AMD\s0 Geode embedded processor with \s-1MMX\s0 and 3DNow! instruction set support.
20771 .RE
20772 .RS 4
20773 .RE
20774 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
20775 .IX Item "-mtune=cpu-type"
20776 Tune to \fIcpu-type\fR everything applicable about the generated code, except
20777 for the \s-1ABI\s0 and the set of available instructions.  
20778 While picking a specific \fIcpu-type\fR schedules things appropriately
20779 for that particular chip, the compiler does not generate any code that
20780 cannot run on the default machine type unless you use a
20781 \&\fB\-march=\fR\fIcpu-type\fR option.
20782 For example, if \s-1GCC\s0 is configured for i686\-pc\-linux\-gnu
20783 then \fB\-mtune=pentium4\fR generates code that is tuned for Pentium 4
20784 but still runs on i686 machines.
20785 .Sp
20786 The choices for \fIcpu-type\fR are the same as for \fB\-march\fR.
20787 In addition, \fB\-mtune\fR supports 2 extra choices for \fIcpu-type\fR:
20788 .RS 4
20789 .IP "\fBgeneric\fR" 4
20790 .IX Item "generic"
20791 Produce code optimized for the most common \s-1IA32/AMD64/EM64T\s0 processors.
20792 If you know the \s-1CPU\s0 on which your code will run, then you should use
20793 the corresponding \fB\-mtune\fR or \fB\-march\fR option instead of
20794 \&\fB\-mtune=generic\fR.  But, if you do not know exactly what \s-1CPU\s0 users
20795 of your application will have, then you should use this option.
20796 .Sp
20797 As new processors are deployed in the marketplace, the behavior of this
20798 option will change.  Therefore, if you upgrade to a newer version of
20799 \&\s-1GCC\s0, code generation controlled by this option will change to reflect
20800 the processors
20801 that are most common at the time that version of \s-1GCC\s0 is released.
20802 .Sp
20803 There is no \fB\-march=generic\fR option because \fB\-march\fR
20804 indicates the instruction set the compiler can use, and there is no
20805 generic instruction set applicable to all processors.  In contrast,
20806 \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
20807 processors) for which the code is optimized.
20808 .IP "\fBintel\fR" 4
20809 .IX Item "intel"
20810 Produce code optimized for the most current Intel processors, which are
20811 Haswell and Silvermont for this version of \s-1GCC\s0.  If you know the \s-1CPU\s0
20812 on which your code will run, then you should use the corresponding
20813 \&\fB\-mtune\fR or \fB\-march\fR option instead of \fB\-mtune=intel\fR.
20814 But, if you want your application performs better on both Haswell and
20815 Silvermont, then you should use this option.
20816 .Sp
20817 As new Intel processors are deployed in the marketplace, the behavior of
20818 this option will change.  Therefore, if you upgrade to a newer version of
20819 \&\s-1GCC\s0, code generation controlled by this option will change to reflect
20820 the most current Intel processors at the time that version of \s-1GCC\s0 is
20821 released.
20822 .Sp
20823 There is no \fB\-march=intel\fR option because \fB\-march\fR indicates
20824 the instruction set the compiler can use, and there is no common
20825 instruction set applicable to all processors.  In contrast,
20826 \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
20827 processors) for which the code is optimized.
20828 .RE
20829 .RS 4
20830 .RE
20831 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
20832 .IX Item "-mcpu=cpu-type"
20833 A deprecated synonym for \fB\-mtune\fR.
20834 .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
20835 .IX Item "-mfpmath=unit"
20836 Generate floating-point arithmetic for selected unit \fIunit\fR.  The choices
20837 for \fIunit\fR are:
20838 .RS 4
20839 .IP "\fB387\fR" 4
20840 .IX Item "387"
20841 Use the standard 387 floating-point coprocessor present on the majority of chips and
20842 emulated otherwise.  Code compiled with this option runs almost everywhere.
20843 The temporary results are computed in 80\-bit precision instead of the precision
20844 specified by the type, resulting in slightly different results compared to most
20845 of other chips.  See \fB\-ffloat\-store\fR for more detailed description.
20846 .Sp
20847 This is the default choice for x86\-32 targets.
20848 .IP "\fBsse\fR" 4
20849 .IX Item "sse"
20850 Use scalar floating-point instructions present in the \s-1SSE\s0 instruction set.
20851 This instruction set is supported by Pentium \s-1III\s0 and newer chips,
20852 and in the \s-1AMD\s0 line
20853 by Athlon\-4, Athlon \s-1XP\s0 and Athlon \s-1MP\s0 chips.  The earlier version of the \s-1SSE\s0
20854 instruction set supports only single-precision arithmetic, thus the double and
20855 extended-precision arithmetic are still done using 387.  A later version, present
20856 only in Pentium 4 and \s-1AMD\s0 x86\-64 chips, supports double-precision
20857 arithmetic too.
20858 .Sp
20859 For the x86\-32 compiler, you must use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
20860 or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
20861 effective.  For the x86\-64 compiler, these extensions are enabled by default.
20862 .Sp
20863 The resulting code should be considerably faster in the majority of cases and avoid
20864 the numerical instability problems of 387 code, but may break some existing
20865 code that expects temporaries to be 80 bits.
20866 .Sp
20867 This is the default choice for the x86\-64 compiler.
20868 .IP "\fBsse,387\fR" 4
20869 .IX Item "sse,387"
20870 .PD 0
20871 .IP "\fBsse+387\fR" 4
20872 .IX Item "sse+387"
20873 .IP "\fBboth\fR" 4
20874 .IX Item "both"
20875 .PD
20876 Attempt to utilize both instruction sets at once.  This effectively doubles the
20877 amount of available registers, and on chips with separate execution units for
20878 387 and \s-1SSE\s0 the execution resources too.  Use this option with care, as it is
20879 still experimental, because the \s-1GCC\s0 register allocator does not model separate
20880 functional units well, resulting in unstable performance.
20881 .RE
20882 .RS 4
20883 .RE
20884 .IP "\fB\-masm=\fR\fIdialect\fR" 4
20885 .IX Item "-masm=dialect"
20886 Output assembly instructions using selected \fIdialect\fR.  Also affects
20887 which dialect is used for basic \f(CW\*(C`asm\*(C'\fR and
20888 extended \f(CW\*(C`asm\*(C'\fR. Supported choices (in dialect
20889 order) are \fBatt\fR or \fBintel\fR. The default is \fBatt\fR. Darwin does
20890 not support \fBintel\fR.
20891 .IP "\fB\-mieee\-fp\fR" 4
20892 .IX Item "-mieee-fp"
20893 .PD 0
20894 .IP "\fB\-mno\-ieee\-fp\fR" 4
20895 .IX Item "-mno-ieee-fp"
20896 .PD
20897 Control whether or not the compiler uses \s-1IEEE\s0 floating-point
20898 comparisons.  These correctly handle the case where the result of a
20899 comparison is unordered.
20900 .IP "\fB\-msoft\-float\fR" 4
20901 .IX Item "-msoft-float"
20902 Generate output containing library calls for floating point.
20903 .Sp
20904 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
20905 Normally the facilities of the machine's usual C compiler are used, but
20906 this can't be done directly in cross-compilation.  You must make your
20907 own arrangements to provide suitable library functions for
20908 cross-compilation.
20909 .Sp
20910 On machines where a function returns floating-point results in the 80387
20911 register stack, some floating-point opcodes may be emitted even if
20912 \&\fB\-msoft\-float\fR is used.
20913 .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
20914 .IX Item "-mno-fp-ret-in-387"
20915 Do not use the \s-1FPU\s0 registers for return values of functions.
20916 .Sp
20917 The usual calling convention has functions return values of types
20918 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
20919 is no \s-1FPU\s0.  The idea is that the operating system should emulate
20920 an \s-1FPU\s0.
20921 .Sp
20922 The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
20923 in ordinary \s-1CPU\s0 registers instead.
20924 .IP "\fB\-mno\-fancy\-math\-387\fR" 4
20925 .IX Item "-mno-fancy-math-387"
20926 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
20927 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
20928 generating those instructions.  This option is the default on
20929 OpenBSD and NetBSD.  This option is overridden when \fB\-march\fR
20930 indicates that the target \s-1CPU\s0 always has an \s-1FPU\s0 and so the
20931 instruction does not need emulation.  These
20932 instructions are not generated unless you also use the
20933 \&\fB\-funsafe\-math\-optimizations\fR switch.
20934 .IP "\fB\-malign\-double\fR" 4
20935 .IX Item "-malign-double"
20936 .PD 0
20937 .IP "\fB\-mno\-align\-double\fR" 4
20938 .IX Item "-mno-align-double"
20939 .PD
20940 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
20941 \&\f(CW\*(C`long long\*(C'\fR variables on a two-word boundary or a one-word
20942 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two-word boundary
20943 produces code that runs somewhat faster on a Pentium at the
20944 expense of more memory.
20945 .Sp
20946 On x86\-64, \fB\-malign\-double\fR is enabled by default.
20947 .Sp
20948 \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
20949 structures containing the above types are aligned differently than
20950 the published application binary interface specifications for the x86\-32
20951 and are not binary compatible with structures in code compiled
20952 without that switch.
20953 .IP "\fB\-m96bit\-long\-double\fR" 4
20954 .IX Item "-m96bit-long-double"
20955 .PD 0
20956 .IP "\fB\-m128bit\-long\-double\fR" 4
20957 .IX Item "-m128bit-long-double"
20958 .PD
20959 These switches control the size of \f(CW\*(C`long double\*(C'\fR type.  The x86\-32
20960 application binary interface specifies the size to be 96 bits,
20961 so \fB\-m96bit\-long\-double\fR is the default in 32\-bit mode.
20962 .Sp
20963 Modern architectures (Pentium and newer) prefer \f(CW\*(C`long double\*(C'\fR
20964 to be aligned to an 8\- or 16\-byte boundary.  In arrays or structures
20965 conforming to the \s-1ABI\s0, this is not possible.  So specifying
20966 \&\fB\-m128bit\-long\-double\fR aligns \f(CW\*(C`long double\*(C'\fR
20967 to a 16\-byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
20968 32\-bit zero.
20969 .Sp
20970 In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
20971 its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is aligned on 16\-byte boundary.
20972 .Sp
20973 Notice that neither of these options enable any extra precision over the x87
20974 standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
20975 .Sp
20976 \&\fBWarning:\fR if you override the default value for your target \s-1ABI\s0, this
20977 changes the size of 
20978 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
20979 as well as modifying the function calling convention for functions taking
20980 \&\f(CW\*(C`long double\*(C'\fR.  Hence they are not binary-compatible
20981 with code compiled without that switch.
20982 .IP "\fB\-mlong\-double\-64\fR" 4
20983 .IX Item "-mlong-double-64"
20984 .PD 0
20985 .IP "\fB\-mlong\-double\-80\fR" 4
20986 .IX Item "-mlong-double-80"
20987 .IP "\fB\-mlong\-double\-128\fR" 4
20988 .IX Item "-mlong-double-128"
20989 .PD
20990 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
20991 of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
20992 type. This is the default for 32\-bit Bionic C library.  A size
20993 of 128 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the
20994 \&\f(CW\*(C`_\|_float128\*(C'\fR type. This is the default for 64\-bit Bionic C library.
20995 .Sp
20996 \&\fBWarning:\fR if you override the default value for your target \s-1ABI\s0, this
20997 changes the size of
20998 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
20999 as well as modifying the function calling convention for functions taking
21000 \&\f(CW\*(C`long double\*(C'\fR.  Hence they are not binary-compatible
21001 with code compiled without that switch.
21002 .IP "\fB\-malign\-data=\fR\fItype\fR" 4
21003 .IX Item "-malign-data=type"
21004 Control how \s-1GCC\s0 aligns variables.  Supported values for \fItype\fR are
21005 \&\fBcompat\fR uses increased alignment value compatible uses \s-1GCC\s0 4.8
21006 and earlier, \fBabi\fR uses alignment value as specified by the
21007 psABI, and \fBcacheline\fR uses increased alignment value to match
21008 the cache line size.  \fBcompat\fR is the default.
21009 .IP "\fB\-mlarge\-data\-threshold=\fR\fIthreshold\fR" 4
21010 .IX Item "-mlarge-data-threshold=threshold"
21011 When \fB\-mcmodel=medium\fR is specified, data objects larger than
21012 \&\fIthreshold\fR are placed in the large data section.  This value must be the
21013 same across all objects linked into the binary, and defaults to 65535.
21014 .IP "\fB\-mrtd\fR" 4
21015 .IX Item "-mrtd"
21016 Use a different function-calling convention, in which functions that
21017 take a fixed number of arguments return with the \f(CW\*(C`ret \f(CInum\f(CW\*(C'\fR
21018 instruction, which pops their arguments while returning.  This saves one
21019 instruction in the caller since there is no need to pop the arguments
21020 there.
21021 .Sp
21022 You can specify that an individual function is called with this calling
21023 sequence with the function attribute \f(CW\*(C`stdcall\*(C'\fR.  You can also
21024 override the \fB\-mrtd\fR option by using the function attribute
21025 \&\f(CW\*(C`cdecl\*(C'\fR.
21026 .Sp
21027 \&\fBWarning:\fR this calling convention is incompatible with the one
21028 normally used on Unix, so you cannot use it if you need to call
21029 libraries compiled with the Unix compiler.
21030 .Sp
21031 Also, you must provide function prototypes for all functions that
21032 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
21033 otherwise incorrect code is generated for calls to those
21034 functions.
21035 .Sp
21036 In addition, seriously incorrect code results if you call a
21037 function with too many arguments.  (Normally, extra arguments are
21038 harmlessly ignored.)
21039 .IP "\fB\-mregparm=\fR\fInum\fR" 4
21040 .IX Item "-mregparm=num"
21041 Control how many registers are used to pass integer arguments.  By
21042 default, no registers are used to pass arguments, and at most 3
21043 registers can be used.  You can control this behavior for a specific
21044 function by using the function attribute \f(CW\*(C`regparm\*(C'\fR.
21045 .Sp
21046 \&\fBWarning:\fR if you use this switch, and
21047 \&\fInum\fR is nonzero, then you must build all modules with the same
21048 value, including any libraries.  This includes the system libraries and
21049 startup modules.
21050 .IP "\fB\-msseregparm\fR" 4
21051 .IX Item "-msseregparm"
21052 Use \s-1SSE\s0 register passing conventions for float and double arguments
21053 and return values.  You can control this behavior for a specific
21054 function by using the function attribute \f(CW\*(C`sseregparm\*(C'\fR.
21055 .Sp
21056 \&\fBWarning:\fR if you use this switch then you must build all
21057 modules with the same value, including any libraries.  This includes
21058 the system libraries and startup modules.
21059 .IP "\fB\-mvect8\-ret\-in\-mem\fR" 4
21060 .IX Item "-mvect8-ret-in-mem"
21061 Return 8\-byte vectors in memory instead of \s-1MMX\s0 registers.  This is the
21062 default on Solaris@tie{}8 and 9 and VxWorks to match the \s-1ABI\s0 of the Sun
21063 Studio compilers until version 12.  Later compiler versions (starting
21064 with Studio 12 Update@tie{}1) follow the \s-1ABI\s0 used by other x86 targets, which
21065 is the default on Solaris@tie{}10 and later.  \fIOnly\fR use this option if
21066 you need to remain compatible with existing code produced by those
21067 previous compiler versions or older versions of \s-1GCC\s0.
21068 .IP "\fB\-mpc32\fR" 4
21069 .IX Item "-mpc32"
21070 .PD 0
21071 .IP "\fB\-mpc64\fR" 4
21072 .IX Item "-mpc64"
21073 .IP "\fB\-mpc80\fR" 4
21074 .IX Item "-mpc80"
21075 .PD
21076 Set 80387 floating-point precision to 32, 64 or 80 bits.  When \fB\-mpc32\fR
21077 is specified, the significands of results of floating-point operations are
21078 rounded to 24 bits (single precision); \fB\-mpc64\fR rounds the
21079 significands of results of floating-point operations to 53 bits (double
21080 precision) and \fB\-mpc80\fR rounds the significands of results of
21081 floating-point operations to 64 bits (extended double precision), which is
21082 the default.  When this option is used, floating-point operations in higher
21083 precisions are not available to the programmer without setting the \s-1FPU\s0
21084 control word explicitly.
21085 .Sp
21086 Setting the rounding of floating-point operations to less than the default
21087 80 bits can speed some programs by 2% or more.  Note that some mathematical
21088 libraries assume that extended-precision (80\-bit) floating-point operations
21089 are enabled by default; routines in such libraries could suffer significant
21090 loss of accuracy, typically through so-called \*(L"catastrophic cancellation\*(R",
21091 when this option is used to set the precision to less than extended precision.
21092 .IP "\fB\-mstackrealign\fR" 4
21093 .IX Item "-mstackrealign"
21094 Realign the stack at entry.  On the x86, the \fB\-mstackrealign\fR
21095 option generates an alternate prologue and epilogue that realigns the
21096 run-time stack if necessary.  This supports mixing legacy codes that keep
21097 4\-byte stack alignment with modern codes that keep 16\-byte stack alignment for
21098 \&\s-1SSE\s0 compatibility.  See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
21099 applicable to individual functions.
21100 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
21101 .IX Item "-mpreferred-stack-boundary=num"
21102 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
21103 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
21104 the default is 4 (16 bytes or 128 bits).
21105 .Sp
21106 \&\fBWarning:\fR When generating code for the x86\-64 architecture with
21107 \&\s-1SSE\s0 extensions disabled, \fB\-mpreferred\-stack\-boundary=3\fR can be
21108 used to keep the stack boundary aligned to 8 byte boundary.  Since
21109 x86\-64 \s-1ABI\s0 require 16 byte stack alignment, this is \s-1ABI\s0 incompatible and
21110 intended to be used in controlled environment where stack space is
21111 important limitation.  This option leads to wrong code when functions
21112 compiled with 16 byte stack alignment (such as functions from a standard
21113 library) are called with misaligned stack.  In this case, \s-1SSE\s0
21114 instructions may lead to misaligned memory access traps.  In addition,
21115 variable arguments are handled incorrectly for 16 byte aligned
21116 objects (including x87 long double and _\|_int128), leading to wrong
21117 results.  You must build all modules with
21118 \&\fB\-mpreferred\-stack\-boundary=3\fR, including any libraries.  This
21119 includes the system libraries and startup modules.
21120 .IP "\fB\-mincoming\-stack\-boundary=\fR\fInum\fR" 4
21121 .IX Item "-mincoming-stack-boundary=num"
21122 Assume the incoming stack is aligned to a 2 raised to \fInum\fR byte
21123 boundary.  If \fB\-mincoming\-stack\-boundary\fR is not specified,
21124 the one specified by \fB\-mpreferred\-stack\-boundary\fR is used.
21125 .Sp
21126 On Pentium and Pentium Pro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
21127 should be aligned to an 8\-byte boundary (see \fB\-malign\-double\fR) or
21128 suffer significant run time performance penalties.  On Pentium \s-1III\s0, the
21129 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR may not work
21130 properly if it is not 16\-byte aligned.
21131 .Sp
21132 To ensure proper alignment of this values on the stack, the stack boundary
21133 must be as aligned as that required by any value stored on the stack.
21134 Further, every function must be generated such that it keeps the stack
21135 aligned.  Thus calling a function compiled with a higher preferred
21136 stack boundary from a function compiled with a lower preferred stack
21137 boundary most likely misaligns the stack.  It is recommended that
21138 libraries that use callbacks always use the default setting.
21139 .Sp
21140 This extra alignment does consume extra stack space, and generally
21141 increases code size.  Code that is sensitive to stack space usage, such
21142 as embedded systems and operating system kernels, may want to reduce the
21143 preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
21144 .IP "\fB\-mmmx\fR" 4
21145 .IX Item "-mmmx"
21146 .PD 0
21147 .IP "\fB\-msse\fR" 4
21148 .IX Item "-msse"
21149 .IP "\fB\-msse2\fR" 4
21150 .IX Item "-msse2"
21151 .IP "\fB\-msse3\fR" 4
21152 .IX Item "-msse3"
21153 .IP "\fB\-mssse3\fR" 4
21154 .IX Item "-mssse3"
21155 .IP "\fB\-msse4\fR" 4
21156 .IX Item "-msse4"
21157 .IP "\fB\-msse4a\fR" 4
21158 .IX Item "-msse4a"
21159 .IP "\fB\-msse4.1\fR" 4
21160 .IX Item "-msse4.1"
21161 .IP "\fB\-msse4.2\fR" 4
21162 .IX Item "-msse4.2"
21163 .IP "\fB\-mavx\fR" 4
21164 .IX Item "-mavx"
21165 .IP "\fB\-mavx2\fR" 4
21166 .IX Item "-mavx2"
21167 .IP "\fB\-mavx512f\fR" 4
21168 .IX Item "-mavx512f"
21169 .IP "\fB\-mavx512pf\fR" 4
21170 .IX Item "-mavx512pf"
21171 .IP "\fB\-mavx512er\fR" 4
21172 .IX Item "-mavx512er"
21173 .IP "\fB\-mavx512cd\fR" 4
21174 .IX Item "-mavx512cd"
21175 .IP "\fB\-msha\fR" 4
21176 .IX Item "-msha"
21177 .IP "\fB\-maes\fR" 4
21178 .IX Item "-maes"
21179 .IP "\fB\-mpclmul\fR" 4
21180 .IX Item "-mpclmul"
21181 .IP "\fB\-mclfushopt\fR" 4
21182 .IX Item "-mclfushopt"
21183 .IP "\fB\-mfsgsbase\fR" 4
21184 .IX Item "-mfsgsbase"
21185 .IP "\fB\-mrdrnd\fR" 4
21186 .IX Item "-mrdrnd"
21187 .IP "\fB\-mf16c\fR" 4
21188 .IX Item "-mf16c"
21189 .IP "\fB\-mfma\fR" 4
21190 .IX Item "-mfma"
21191 .IP "\fB\-mfma4\fR" 4
21192 .IX Item "-mfma4"
21193 .IP "\fB\-mno\-fma4\fR" 4
21194 .IX Item "-mno-fma4"
21195 .IP "\fB\-mprefetchwt1\fR" 4
21196 .IX Item "-mprefetchwt1"
21197 .IP "\fB\-mxop\fR" 4
21198 .IX Item "-mxop"
21199 .IP "\fB\-mlwp\fR" 4
21200 .IX Item "-mlwp"
21201 .IP "\fB\-m3dnow\fR" 4
21202 .IX Item "-m3dnow"
21203 .IP "\fB\-mpopcnt\fR" 4
21204 .IX Item "-mpopcnt"
21205 .IP "\fB\-mabm\fR" 4
21206 .IX Item "-mabm"
21207 .IP "\fB\-mbmi\fR" 4
21208 .IX Item "-mbmi"
21209 .IP "\fB\-mbmi2\fR" 4
21210 .IX Item "-mbmi2"
21211 .IP "\fB\-mlzcnt\fR" 4
21212 .IX Item "-mlzcnt"
21213 .IP "\fB\-mfxsr\fR" 4
21214 .IX Item "-mfxsr"
21215 .IP "\fB\-mxsave\fR" 4
21216 .IX Item "-mxsave"
21217 .IP "\fB\-mxsaveopt\fR" 4
21218 .IX Item "-mxsaveopt"
21219 .IP "\fB\-mxsavec\fR" 4
21220 .IX Item "-mxsavec"
21221 .IP "\fB\-mxsaves\fR" 4
21222 .IX Item "-mxsaves"
21223 .IP "\fB\-mrtm\fR" 4
21224 .IX Item "-mrtm"
21225 .IP "\fB\-mtbm\fR" 4
21226 .IX Item "-mtbm"
21227 .IP "\fB\-mmpx\fR" 4
21228 .IX Item "-mmpx"
21229 .IP "\fB\-mmwaitx\fR" 4
21230 .IX Item "-mmwaitx"
21231 .PD
21232 These switches enable the use of instructions in the \s-1MMX\s0, \s-1SSE\s0,
21233 \&\s-1SSE2\s0, \s-1SSE3\s0, \s-1SSSE3\s0, \s-1SSE4\s0.1, \s-1AVX\s0, \s-1AVX2\s0, \s-1AVX512F\s0, \s-1AVX512PF\s0, \s-1AVX512ER\s0, \s-1AVX512CD\s0,
21234 \&\s-1SHA\s0, \s-1AES\s0, \s-1PCLMUL\s0, \s-1FSGSBASE\s0, \s-1RDRND\s0, F16C, \s-1FMA\s0, \s-1SSE4A\s0, \s-1FMA4\s0, \s-1XOP\s0, \s-1LWP\s0, \s-1ABM\s0,
21235 \&\s-1BMI\s0, \s-1BMI2\s0, \s-1FXSR\s0, \s-1XSAVE\s0, \s-1XSAVEOPT\s0, \s-1LZCNT\s0, \s-1RTM\s0, \s-1MPX\s0, \s-1MWAITX\s0 or 3DNow!
21236 extended instruction sets.  Each has a corresponding \fB\-mno\-\fR option
21237 to disable use of these instructions.
21238 .Sp
21239 These extensions are also available as built-in functions: see
21240 \&\fBx86 Built-in Functions\fR, for details of the functions enabled and
21241 disabled by these switches.
21242 .Sp
21243 To generate \s-1SSE/SSE2\s0 instructions automatically from floating-point
21244 code (as opposed to 387 instructions), see \fB\-mfpmath=sse\fR.
21245 .Sp
21246 \&\s-1GCC\s0 depresses SSEx instructions when \fB\-mavx\fR is used. Instead, it
21247 generates new \s-1AVX\s0 instructions or \s-1AVX\s0 equivalence for all SSEx instructions
21248 when needed.
21249 .Sp
21250 These options enable \s-1GCC\s0 to use these extended instructions in
21251 generated code, even without \fB\-mfpmath=sse\fR.  Applications that
21252 perform run-time \s-1CPU\s0 detection must compile separate files for each
21253 supported architecture, using the appropriate flags.  In particular,
21254 the file containing the \s-1CPU\s0 detection code should be compiled without
21255 these options.
21256 .IP "\fB\-mdump\-tune\-features\fR" 4
21257 .IX Item "-mdump-tune-features"
21258 This option instructs \s-1GCC\s0 to dump the names of the x86 performance 
21259 tuning features and default settings. The names can be used in 
21260 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR.
21261 .IP "\fB\-mtune\-ctrl=\fR\fIfeature-list\fR" 4
21262 .IX Item "-mtune-ctrl=feature-list"
21263 This option is used to do fine grain control of x86 code generation features.
21264 \&\fIfeature-list\fR is a comma separated list of \fIfeature\fR names. See also
21265 \&\fB\-mdump\-tune\-features\fR. When specified, the \fIfeature\fR is turned
21266 on if it is not preceded with \fB^\fR, otherwise, it is turned off. 
21267 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR is intended to be used by \s-1GCC\s0
21268 developers. Using it may lead to code paths not covered by testing and can
21269 potentially result in compiler ICEs or runtime errors.
21270 .IP "\fB\-mno\-default\fR" 4
21271 .IX Item "-mno-default"
21272 This option instructs \s-1GCC\s0 to turn off all tunable features. See also 
21273 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR and \fB\-mdump\-tune\-features\fR.
21274 .IP "\fB\-mcld\fR" 4
21275 .IX Item "-mcld"
21276 This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`cld\*(C'\fR instruction in the prologue
21277 of functions that use string instructions.  String instructions depend on
21278 the \s-1DF\s0 flag to select between autoincrement or autodecrement mode.  While the
21279 \&\s-1ABI\s0 specifies the \s-1DF\s0 flag to be cleared on function entry, some operating
21280 systems violate this specification by not clearing the \s-1DF\s0 flag in their
21281 exception dispatchers.  The exception handler can be invoked with the \s-1DF\s0 flag
21282 set, which leads to wrong direction mode when string instructions are used.
21283 This option can be enabled by default on 32\-bit x86 targets by configuring
21284 \&\s-1GCC\s0 with the \fB\-\-enable\-cld\fR configure option.  Generation of \f(CW\*(C`cld\*(C'\fR
21285 instructions can be suppressed with the \fB\-mno\-cld\fR compiler option
21286 in this case.
21287 .IP "\fB\-mvzeroupper\fR" 4
21288 .IX Item "-mvzeroupper"
21289 This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`vzeroupper\*(C'\fR instruction
21290 before a transfer of control flow out of the function to minimize
21291 the \s-1AVX\s0 to \s-1SSE\s0 transition penalty as well as remove unnecessary \f(CW\*(C`zeroupper\*(C'\fR
21292 intrinsics.
21293 .IP "\fB\-mprefer\-avx128\fR" 4
21294 .IX Item "-mprefer-avx128"
21295 This option instructs \s-1GCC\s0 to use 128\-bit \s-1AVX\s0 instructions instead of
21296 256\-bit \s-1AVX\s0 instructions in the auto-vectorizer.
21297 .IP "\fB\-mcx16\fR" 4
21298 .IX Item "-mcx16"
21299 This option enables \s-1GCC\s0 to generate \f(CW\*(C`CMPXCHG16B\*(C'\fR instructions.
21300 \&\f(CW\*(C`CMPXCHG16B\*(C'\fR allows for atomic operations on 128\-bit double quadword
21301 (or oword) data types.  
21302 This is useful for high-resolution counters that can be updated
21303 by multiple processors (or cores).  This instruction is generated as part of
21304 atomic built-in functions: see \fB_\|_sync Builtins\fR or
21305 \&\fB_\|_atomic Builtins\fR for details.
21306 .IP "\fB\-msahf\fR" 4
21307 .IX Item "-msahf"
21308 This option enables generation of \f(CW\*(C`SAHF\*(C'\fR instructions in 64\-bit code.
21309 Early Intel Pentium 4 CPUs with Intel 64 support,
21310 prior to the introduction of Pentium 4 G1 step in December 2005,
21311 lacked the \f(CW\*(C`LAHF\*(C'\fR and \f(CW\*(C`SAHF\*(C'\fR instructions
21312 which are supported by \s-1AMD64\s0.
21313 These are load and store instructions, respectively, for certain status flags.
21314 In 64\-bit mode, the \f(CW\*(C`SAHF\*(C'\fR instruction is used to optimize \f(CW\*(C`fmod\*(C'\fR,
21315 \&\f(CW\*(C`drem\*(C'\fR, and \f(CW\*(C`remainder\*(C'\fR built-in functions;
21316 see \fBOther Builtins\fR for details.
21317 .IP "\fB\-mmovbe\fR" 4
21318 .IX Item "-mmovbe"
21319 This option enables use of the \f(CW\*(C`movbe\*(C'\fR instruction to implement
21320 \&\f(CW\*(C`_\|_builtin_bswap32\*(C'\fR and \f(CW\*(C`_\|_builtin_bswap64\*(C'\fR.
21321 .IP "\fB\-mcrc32\fR" 4
21322 .IX Item "-mcrc32"
21323 This option enables built-in functions \f(CW\*(C`_\|_builtin_ia32_crc32qi\*(C'\fR,
21324 \&\f(CW\*(C`_\|_builtin_ia32_crc32hi\*(C'\fR, \f(CW\*(C`_\|_builtin_ia32_crc32si\*(C'\fR and
21325 \&\f(CW\*(C`_\|_builtin_ia32_crc32di\*(C'\fR to generate the \f(CW\*(C`crc32\*(C'\fR machine instruction.
21326 .IP "\fB\-mrecip\fR" 4
21327 .IX Item "-mrecip"
21328 This option enables use of \f(CW\*(C`RCPSS\*(C'\fR and \f(CW\*(C`RSQRTSS\*(C'\fR instructions
21329 (and their vectorized variants \f(CW\*(C`RCPPS\*(C'\fR and \f(CW\*(C`RSQRTPS\*(C'\fR)
21330 with an additional Newton-Raphson step
21331 to increase precision instead of \f(CW\*(C`DIVSS\*(C'\fR and \f(CW\*(C`SQRTSS\*(C'\fR
21332 (and their vectorized
21333 variants) for single-precision floating-point arguments.  These instructions
21334 are generated only when \fB\-funsafe\-math\-optimizations\fR is enabled
21335 together with \fB\-finite\-math\-only\fR and \fB\-fno\-trapping\-math\fR.
21336 Note that while the throughput of the sequence is higher than the throughput
21337 of the non-reciprocal instruction, the precision of the sequence can be
21338 decreased by up to 2 ulp (i.e. the inverse of 1.0 equals 0.99999994).
21339 .Sp
21340 Note that \s-1GCC\s0 implements \f(CW\*(C`1.0f/sqrtf(\f(CIx\f(CW)\*(C'\fR in terms of \f(CW\*(C`RSQRTSS\*(C'\fR
21341 (or \f(CW\*(C`RSQRTPS\*(C'\fR) already with \fB\-ffast\-math\fR (or the above option
21342 combination), and doesn't need \fB\-mrecip\fR.
21343 .Sp
21344 Also note that \s-1GCC\s0 emits the above sequence with additional Newton-Raphson step
21345 for vectorized single-float division and vectorized \f(CW\*(C`sqrtf(\f(CIx\f(CW)\*(C'\fR
21346 already with \fB\-ffast\-math\fR (or the above option combination), and
21347 doesn't need \fB\-mrecip\fR.
21348 .IP "\fB\-mrecip=\fR\fIopt\fR" 4
21349 .IX Item "-mrecip=opt"
21350 This option controls which reciprocal estimate instructions
21351 may be used.  \fIopt\fR is a comma-separated list of options, which may
21352 be preceded by a \fB!\fR to invert the option:
21353 .RS 4
21354 .IP "\fBall\fR" 4
21355 .IX Item "all"
21356 Enable all estimate instructions.
21357 .IP "\fBdefault\fR" 4
21358 .IX Item "default"
21359 Enable the default instructions, equivalent to \fB\-mrecip\fR.
21360 .IP "\fBnone\fR" 4
21361 .IX Item "none"
21362 Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
21363 .IP "\fBdiv\fR" 4
21364 .IX Item "div"
21365 Enable the approximation for scalar division.
21366 .IP "\fBvec-div\fR" 4
21367 .IX Item "vec-div"
21368 Enable the approximation for vectorized division.
21369 .IP "\fBsqrt\fR" 4
21370 .IX Item "sqrt"
21371 Enable the approximation for scalar square root.
21372 .IP "\fBvec-sqrt\fR" 4
21373 .IX Item "vec-sqrt"
21374 Enable the approximation for vectorized square root.
21375 .RE
21376 .RS 4
21377 .Sp
21378 So, for example, \fB\-mrecip=all,!sqrt\fR enables
21379 all of the reciprocal approximations, except for square root.
21380 .RE
21381 .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
21382 .IX Item "-mveclibabi=type"
21383 Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
21384 external library.  Supported values for \fItype\fR are \fBsvml\fR 
21385 for the Intel short
21386 vector math library and \fBacml\fR for the \s-1AMD\s0 math core library.
21387 To use this option, both \fB\-ftree\-vectorize\fR and
21388 \&\fB\-funsafe\-math\-optimizations\fR have to be enabled, and an \s-1SVML\s0 or \s-1ACML\s0 
21389 ABI-compatible library must be specified at link time.
21390 .Sp
21391 \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`vmldExp2\*(C'\fR,
21392 \&\f(CW\*(C`vmldLn2\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldPow2\*(C'\fR,
21393 \&\f(CW\*(C`vmldTanh2\*(C'\fR, \f(CW\*(C`vmldTan2\*(C'\fR, \f(CW\*(C`vmldAtan2\*(C'\fR, \f(CW\*(C`vmldAtanh2\*(C'\fR,
21394 \&\f(CW\*(C`vmldCbrt2\*(C'\fR, \f(CW\*(C`vmldSinh2\*(C'\fR, \f(CW\*(C`vmldSin2\*(C'\fR, \f(CW\*(C`vmldAsinh2\*(C'\fR,
21395 \&\f(CW\*(C`vmldAsin2\*(C'\fR, \f(CW\*(C`vmldCosh2\*(C'\fR, \f(CW\*(C`vmldCos2\*(C'\fR, \f(CW\*(C`vmldAcosh2\*(C'\fR,
21396 \&\f(CW\*(C`vmldAcos2\*(C'\fR, \f(CW\*(C`vmlsExp4\*(C'\fR, \f(CW\*(C`vmlsLn4\*(C'\fR, \f(CW\*(C`vmlsLog104\*(C'\fR,
21397 \&\f(CW\*(C`vmlsLog104\*(C'\fR, \f(CW\*(C`vmlsPow4\*(C'\fR, \f(CW\*(C`vmlsTanh4\*(C'\fR, \f(CW\*(C`vmlsTan4\*(C'\fR,
21398 \&\f(CW\*(C`vmlsAtan4\*(C'\fR, \f(CW\*(C`vmlsAtanh4\*(C'\fR, \f(CW\*(C`vmlsCbrt4\*(C'\fR, \f(CW\*(C`vmlsSinh4\*(C'\fR,
21399 \&\f(CW\*(C`vmlsSin4\*(C'\fR, \f(CW\*(C`vmlsAsinh4\*(C'\fR, \f(CW\*(C`vmlsAsin4\*(C'\fR, \f(CW\*(C`vmlsCosh4\*(C'\fR,
21400 \&\f(CW\*(C`vmlsCos4\*(C'\fR, \f(CW\*(C`vmlsAcosh4\*(C'\fR and \f(CW\*(C`vmlsAcos4\*(C'\fR for corresponding
21401 function type when \fB\-mveclibabi=svml\fR is used, and \f(CW\*(C`_\|_vrd2_sin\*(C'\fR,
21402 \&\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,
21403 \&\f(CW\*(C`_\|_vrd2_log10\*(C'\fR, \f(CW\*(C`_\|_vrs4_sinf\*(C'\fR, \f(CW\*(C`_\|_vrs4_cosf\*(C'\fR,
21404 \&\f(CW\*(C`_\|_vrs4_expf\*(C'\fR, \f(CW\*(C`_\|_vrs4_logf\*(C'\fR, \f(CW\*(C`_\|_vrs4_log2f\*(C'\fR,
21405 \&\f(CW\*(C`_\|_vrs4_log10f\*(C'\fR and \f(CW\*(C`_\|_vrs4_powf\*(C'\fR for the corresponding function type
21406 when \fB\-mveclibabi=acml\fR is used.
21407 .IP "\fB\-mabi=\fR\fIname\fR" 4
21408 .IX Item "-mabi=name"
21409 Generate code for the specified calling convention.  Permissible values
21410 are \fBsysv\fR for the \s-1ABI\s0 used on GNU/Linux and other systems, and
21411 \&\fBms\fR for the Microsoft \s-1ABI\s0.  The default is to use the Microsoft
21412 \&\s-1ABI\s0 when targeting Microsoft Windows and the SysV \s-1ABI\s0 on all other systems.
21413 You can control this behavior for specific functions by
21414 using the function attributes \f(CW\*(C`ms_abi\*(C'\fR and \f(CW\*(C`sysv_abi\*(C'\fR.
21415 .IP "\fB\-mtls\-dialect=\fR\fItype\fR" 4
21416 .IX Item "-mtls-dialect=type"
21417 Generate code to access thread-local storage using the \fBgnu\fR or
21418 \&\fBgnu2\fR conventions.  \fBgnu\fR is the conservative default;
21419 \&\fBgnu2\fR is more efficient, but it may add compile\- and run-time
21420 requirements that cannot be satisfied on all systems.
21421 .IP "\fB\-mpush\-args\fR" 4
21422 .IX Item "-mpush-args"
21423 .PD 0
21424 .IP "\fB\-mno\-push\-args\fR" 4
21425 .IX Item "-mno-push-args"
21426 .PD
21427 Use \s-1PUSH\s0 operations to store outgoing parameters.  This method is shorter
21428 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
21429 by default.  In some cases disabling it may improve performance because of
21430 improved scheduling and reduced dependencies.
21431 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
21432 .IX Item "-maccumulate-outgoing-args"
21433 If enabled, the maximum amount of space required for outgoing arguments is
21434 computed in the function prologue.  This is faster on most modern CPUs
21435 because of reduced dependencies, improved scheduling and reduced stack usage
21436 when the preferred stack boundary is not equal to 2.  The drawback is a notable
21437 increase in code size.  This switch implies \fB\-mno\-push\-args\fR.
21438 .IP "\fB\-mthreads\fR" 4
21439 .IX Item "-mthreads"
21440 Support thread-safe exception handling on MinGW.  Programs that rely
21441 on thread-safe exception handling must compile and link all code with the
21442 \&\fB\-mthreads\fR option.  When compiling, \fB\-mthreads\fR defines
21443 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
21444 \&\fB\-lmingwthrd\fR which cleans up per-thread exception-handling data.
21445 .IP "\fB\-mno\-align\-stringops\fR" 4
21446 .IX Item "-mno-align-stringops"
21447 Do not align the destination of inlined string operations.  This switch reduces
21448 code size and improves performance in case the destination is already aligned,
21449 but \s-1GCC\s0 doesn't know about it.
21450 .IP "\fB\-minline\-all\-stringops\fR" 4
21451 .IX Item "-minline-all-stringops"
21452 By default \s-1GCC\s0 inlines string operations only when the destination is 
21453 known to be aligned to least a 4\-byte boundary.  
21454 This enables more inlining and increases code
21455 size, but may improve performance of code that depends on fast
21456 \&\f(CW\*(C`memcpy\*(C'\fR, \f(CW\*(C`strlen\*(C'\fR,
21457 and \f(CW\*(C`memset\*(C'\fR for short lengths.
21458 .IP "\fB\-minline\-stringops\-dynamically\fR" 4
21459 .IX Item "-minline-stringops-dynamically"
21460 For string operations of unknown size, use run-time checks with
21461 inline code for small blocks and a library call for large blocks.
21462 .IP "\fB\-mstringop\-strategy=\fR\fIalg\fR" 4
21463 .IX Item "-mstringop-strategy=alg"
21464 Override the internal decision heuristic for the particular algorithm to use
21465 for inlining string operations.  The allowed values for \fIalg\fR are:
21466 .RS 4
21467 .IP "\fBrep_byte\fR" 4
21468 .IX Item "rep_byte"
21469 .PD 0
21470 .IP "\fBrep_4byte\fR" 4
21471 .IX Item "rep_4byte"
21472 .IP "\fBrep_8byte\fR" 4
21473 .IX Item "rep_8byte"
21474 .PD
21475 Expand using i386 \f(CW\*(C`rep\*(C'\fR prefix of the specified size.
21476 .IP "\fBbyte_loop\fR" 4
21477 .IX Item "byte_loop"
21478 .PD 0
21479 .IP "\fBloop\fR" 4
21480 .IX Item "loop"
21481 .IP "\fBunrolled_loop\fR" 4
21482 .IX Item "unrolled_loop"
21483 .PD
21484 Expand into an inline loop.
21485 .IP "\fBlibcall\fR" 4
21486 .IX Item "libcall"
21487 Always use a library call.
21488 .RE
21489 .RS 4
21490 .RE
21491 .IP "\fB\-mmemcpy\-strategy=\fR\fIstrategy\fR" 4
21492 .IX Item "-mmemcpy-strategy=strategy"
21493 Override the internal decision heuristic to decide if \f(CW\*(C`_\|_builtin_memcpy\*(C'\fR
21494 should be inlined and what inline algorithm to use when the expected size
21495 of the copy operation is known. \fIstrategy\fR 
21496 is a comma-separated list of \fIalg\fR:\fImax_size\fR:\fIdest_align\fR triplets. 
21497 \&\fIalg\fR is specified in \fB\-mstringop\-strategy\fR, \fImax_size\fR specifies
21498 the max byte size with which inline algorithm \fIalg\fR is allowed.  For the last
21499 triplet, the \fImax_size\fR must be \f(CW\*(C`\-1\*(C'\fR. The \fImax_size\fR of the triplets
21500 in the list must be specified in increasing order.  The minimal byte size for 
21501 \&\fIalg\fR is \f(CW0\fR for the first triplet and \f(CW\*(C`\f(CImax_size\f(CW + 1\*(C'\fR of the 
21502 preceding range.
21503 .IP "\fB\-mmemset\-strategy=\fR\fIstrategy\fR" 4
21504 .IX Item "-mmemset-strategy=strategy"
21505 The option is similar to \fB\-mmemcpy\-strategy=\fR except that it is to control
21506 \&\f(CW\*(C`_\|_builtin_memset\*(C'\fR expansion.
21507 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
21508 .IX Item "-momit-leaf-frame-pointer"
21509 Don't keep the frame pointer in a register for leaf functions.  This
21510 avoids the instructions to save, set up, and restore frame pointers and
21511 makes an extra register available in leaf functions.  The option
21512 \&\fB\-fomit\-leaf\-frame\-pointer\fR removes the frame pointer for leaf functions,
21513 which might make debugging harder.
21514 .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
21515 .IX Item "-mtls-direct-seg-refs"
21516 .PD 0
21517 .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
21518 .IX Item "-mno-tls-direct-seg-refs"
21519 .PD
21520 Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
21521 \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
21522 or whether the thread base pointer must be added.  Whether or not this
21523 is valid depends on the operating system, and whether it maps the
21524 segment to cover the entire \s-1TLS\s0 area.
21525 .Sp
21526 For systems that use the \s-1GNU\s0 C Library, the default is on.
21527 .IP "\fB\-msse2avx\fR" 4
21528 .IX Item "-msse2avx"
21529 .PD 0
21530 .IP "\fB\-mno\-sse2avx\fR" 4
21531 .IX Item "-mno-sse2avx"
21532 .PD
21533 Specify that the assembler should encode \s-1SSE\s0 instructions with \s-1VEX\s0
21534 prefix.  The option \fB\-mavx\fR turns this on by default.
21535 .IP "\fB\-mfentry\fR" 4
21536 .IX Item "-mfentry"
21537 .PD 0
21538 .IP "\fB\-mno\-fentry\fR" 4
21539 .IX Item "-mno-fentry"
21540 .PD
21541 If profiling is active (\fB\-pg\fR), put the profiling
21542 counter call before the prologue.
21543 Note: On x86 architectures the attribute \f(CW\*(C`ms_hook_prologue\*(C'\fR
21544 isn't possible at the moment for \fB\-mfentry\fR and \fB\-pg\fR.
21545 .IP "\fB\-mrecord\-mcount\fR" 4
21546 .IX Item "-mrecord-mcount"
21547 .PD 0
21548 .IP "\fB\-mno\-record\-mcount\fR" 4
21549 .IX Item "-mno-record-mcount"
21550 .PD
21551 If profiling is active (\fB\-pg\fR), generate a _\|_mcount_loc section
21552 that contains pointers to each profiling call. This is useful for
21553 automatically patching and out calls.
21554 .IP "\fB\-mnop\-mcount\fR" 4
21555 .IX Item "-mnop-mcount"
21556 .PD 0
21557 .IP "\fB\-mno\-nop\-mcount\fR" 4
21558 .IX Item "-mno-nop-mcount"
21559 .PD
21560 If profiling is active (\fB\-pg\fR), generate the calls to
21561 the profiling functions as nops. This is useful when they
21562 should be patched in later dynamically. This is likely only
21563 useful together with \fB\-mrecord\-mcount\fR.
21564 .IP "\fB\-mskip\-rax\-setup\fR" 4
21565 .IX Item "-mskip-rax-setup"
21566 .PD 0
21567 .IP "\fB\-mno\-skip\-rax\-setup\fR" 4
21568 .IX Item "-mno-skip-rax-setup"
21569 .PD
21570 When generating code for the x86\-64 architecture with \s-1SSE\s0 extensions
21571 disabled, \fB\-skip\-rax\-setup\fR can be used to skip setting up \s-1RAX\s0
21572 register when there are no variable arguments passed in vector registers.
21573 .Sp
21574 \&\fBWarning:\fR Since \s-1RAX\s0 register is used to avoid unnecessarily
21575 saving vector registers on stack when passing variable arguments, the
21576 impacts of this option are callees may waste some stack space,
21577 misbehave or jump to a random location.  \s-1GCC\s0 4.4 or newer don't have
21578 those issues, regardless the \s-1RAX\s0 register value.
21579 .IP "\fB\-m8bit\-idiv\fR" 4
21580 .IX Item "-m8bit-idiv"
21581 .PD 0
21582 .IP "\fB\-mno\-8bit\-idiv\fR" 4
21583 .IX Item "-mno-8bit-idiv"
21584 .PD
21585 On some processors, like Intel Atom, 8\-bit unsigned integer divide is
21586 much faster than 32\-bit/64\-bit integer divide.  This option generates a
21587 run-time check.  If both dividend and divisor are within range of 0
21588 to 255, 8\-bit unsigned integer divide is used instead of
21589 32\-bit/64\-bit integer divide.
21590 .IP "\fB\-mavx256\-split\-unaligned\-load\fR" 4
21591 .IX Item "-mavx256-split-unaligned-load"
21592 .PD 0
21593 .IP "\fB\-mavx256\-split\-unaligned\-store\fR" 4
21594 .IX Item "-mavx256-split-unaligned-store"
21595 .PD
21596 Split 32\-byte \s-1AVX\s0 unaligned load and store.
21597 .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
21598 .IX Item "-mstack-protector-guard=guard"
21599 Generate stack protection code using canary at \fIguard\fR.  Supported
21600 locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
21601 canary in the \s-1TLS\s0 block (the default).  This option has effect only when
21602 \&\fB\-fstack\-protector\fR or \fB\-fstack\-protector\-all\fR is specified.
21603 .PP
21604 These \fB\-m\fR switches are supported in addition to the above
21605 on x86\-64 processors in 64\-bit environments.
21606 .IP "\fB\-m32\fR" 4
21607 .IX Item "-m32"
21608 .PD 0
21609 .IP "\fB\-m64\fR" 4
21610 .IX Item "-m64"
21611 .IP "\fB\-mx32\fR" 4
21612 .IX Item "-mx32"
21613 .IP "\fB\-m16\fR" 4
21614 .IX Item "-m16"
21615 .PD
21616 Generate code for a 16\-bit, 32\-bit or 64\-bit environment.
21617 The \fB\-m32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
21618 to 32 bits, and
21619 generates code that runs on any i386 system.
21620 .Sp
21621 The \fB\-m64\fR option sets \f(CW\*(C`int\*(C'\fR to 32 bits and \f(CW\*(C`long\*(C'\fR and pointer
21622 types to 64 bits, and generates code for the x86\-64 architecture.
21623 For Darwin only the \fB\-m64\fR option also turns off the \fB\-fno\-pic\fR
21624 and \fB\-mdynamic\-no\-pic\fR options.
21625 .Sp
21626 The \fB\-mx32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
21627 to 32 bits, and
21628 generates code for the x86\-64 architecture.
21629 .Sp
21630 The \fB\-m16\fR option is the same as \fB\-m32\fR, except for that
21631 it outputs the \f(CW\*(C`.code16gcc\*(C'\fR assembly directive at the beginning of
21632 the assembly output so that the binary can run in 16\-bit mode.
21633 .IP "\fB\-mno\-red\-zone\fR" 4
21634 .IX Item "-mno-red-zone"
21635 Do not use a so-called \*(L"red zone\*(R" for x86\-64 code.  The red zone is mandated
21636 by the x86\-64 \s-1ABI\s0; it is a 128\-byte area beyond the location of the
21637 stack pointer that is not modified by signal or interrupt handlers
21638 and therefore can be used for temporary data without adjusting the stack
21639 pointer.  The flag \fB\-mno\-red\-zone\fR disables this red zone.
21640 .IP "\fB\-mcmodel=small\fR" 4
21641 .IX Item "-mcmodel=small"
21642 Generate code for the small code model: the program and its symbols must
21643 be linked in the lower 2 \s-1GB\s0 of the address space.  Pointers are 64 bits.
21644 Programs can be statically or dynamically linked.  This is the default
21645 code model.
21646 .IP "\fB\-mcmodel=kernel\fR" 4
21647 .IX Item "-mcmodel=kernel"
21648 Generate code for the kernel code model.  The kernel runs in the
21649 negative 2 \s-1GB\s0 of the address space.
21650 This model has to be used for Linux kernel code.
21651 .IP "\fB\-mcmodel=medium\fR" 4
21652 .IX Item "-mcmodel=medium"
21653 Generate code for the medium model: the program is linked in the lower 2
21654 \&\s-1GB\s0 of the address space.  Small symbols are also placed there.  Symbols
21655 with sizes larger than \fB\-mlarge\-data\-threshold\fR are put into
21656 large data or \s-1BSS\s0 sections and can be located above 2GB.  Programs can
21657 be statically or dynamically linked.
21658 .IP "\fB\-mcmodel=large\fR" 4
21659 .IX Item "-mcmodel=large"
21660 Generate code for the large model.  This model makes no assumptions
21661 about addresses and sizes of sections.
21662 .IP "\fB\-maddress\-mode=long\fR" 4
21663 .IX Item "-maddress-mode=long"
21664 Generate code for long address mode.  This is only supported for 64\-bit
21665 and x32 environments.  It is the default address mode for 64\-bit
21666 environments.
21667 .IP "\fB\-maddress\-mode=short\fR" 4
21668 .IX Item "-maddress-mode=short"
21669 Generate code for short address mode.  This is only supported for 32\-bit
21670 and x32 environments.  It is the default address mode for 32\-bit and
21671 x32 environments.
21672 .PP
21673 \fIx86 Windows Options\fR
21674 .IX Subsection "x86 Windows Options"
21675 .PP
21676 These additional options are available for Microsoft Windows targets:
21677 .IP "\fB\-mconsole\fR" 4
21678 .IX Item "-mconsole"
21679 This option
21680 specifies that a console application is to be generated, by
21681 instructing the linker to set the \s-1PE\s0 header subsystem type
21682 required for console applications.
21683 This option is available for Cygwin and MinGW targets and is
21684 enabled by default on those targets.
21685 .IP "\fB\-mdll\fR" 4
21686 .IX Item "-mdll"
21687 This option is available for Cygwin and MinGW targets.  It
21688 specifies that a DLL\-\-\-a dynamic link library\-\-\-is to be
21689 generated, enabling the selection of the required runtime
21690 startup object and entry point.
21691 .IP "\fB\-mnop\-fun\-dllimport\fR" 4
21692 .IX Item "-mnop-fun-dllimport"
21693 This option is available for Cygwin and MinGW targets.  It
21694 specifies that the \f(CW\*(C`dllimport\*(C'\fR attribute should be ignored.
21695 .IP "\fB\-mthread\fR" 4
21696 .IX Item "-mthread"
21697 This option is available for MinGW targets. It specifies
21698 that MinGW-specific thread support is to be used.
21699 .IP "\fB\-municode\fR" 4
21700 .IX Item "-municode"
21701 This option is available for MinGW\-w64 targets.  It causes
21702 the \f(CW\*(C`UNICODE\*(C'\fR preprocessor macro to be predefined, and
21703 chooses Unicode-capable runtime startup code.
21704 .IP "\fB\-mwin32\fR" 4
21705 .IX Item "-mwin32"
21706 This option is available for Cygwin and MinGW targets.  It
21707 specifies that the typical Microsoft Windows predefined macros are to
21708 be set in the pre-processor, but does not influence the choice
21709 of runtime library/startup code.
21710 .IP "\fB\-mwindows\fR" 4
21711 .IX Item "-mwindows"
21712 This option is available for Cygwin and MinGW targets.  It
21713 specifies that a \s-1GUI\s0 application is to be generated by
21714 instructing the linker to set the \s-1PE\s0 header subsystem type
21715 appropriately.
21716 .IP "\fB\-fno\-set\-stack\-executable\fR" 4
21717 .IX Item "-fno-set-stack-executable"
21718 This option is available for MinGW targets. It specifies that
21719 the executable flag for the stack used by nested functions isn't
21720 set. This is necessary for binaries running in kernel mode of
21721 Microsoft Windows, as there the User32 \s-1API\s0, which is used to set executable
21722 privileges, isn't available.
21723 .IP "\fB\-fwritable\-relocated\-rdata\fR" 4
21724 .IX Item "-fwritable-relocated-rdata"
21725 This option is available for MinGW and Cygwin targets.  It specifies
21726 that relocated-data in read-only section is put into .data
21727 section.  This is a necessary for older runtimes not supporting
21728 modification of .rdata sections for pseudo-relocation.
21729 .IP "\fB\-mpe\-aligned\-commons\fR" 4
21730 .IX Item "-mpe-aligned-commons"
21731 This option is available for Cygwin and MinGW targets.  It
21732 specifies that the \s-1GNU\s0 extension to the \s-1PE\s0 file format that
21733 permits the correct alignment of \s-1COMMON\s0 variables should be
21734 used when generating code.  It is enabled by default if
21735 \&\s-1GCC\s0 detects that the target assembler found during configuration
21736 supports the feature.
21737 .PP
21738 See also under \fBx86 Options\fR for standard options.
21739 .PP
21740 \fIXstormy16 Options\fR
21741 .IX Subsection "Xstormy16 Options"
21742 .PP
21743 These options are defined for Xstormy16:
21744 .IP "\fB\-msim\fR" 4
21745 .IX Item "-msim"
21746 Choose startup files and linker script suitable for the simulator.
21747 .PP
21748 \fIXtensa Options\fR
21749 .IX Subsection "Xtensa Options"
21750 .PP
21751 These options are supported for Xtensa targets:
21752 .IP "\fB\-mconst16\fR" 4
21753 .IX Item "-mconst16"
21754 .PD 0
21755 .IP "\fB\-mno\-const16\fR" 4
21756 .IX Item "-mno-const16"
21757 .PD
21758 Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
21759 constant values.  The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
21760 standard option from Tensilica.  When enabled, \f(CW\*(C`CONST16\*(C'\fR
21761 instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
21762 instructions.  The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
21763 the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
21764 .IP "\fB\-mfused\-madd\fR" 4
21765 .IX Item "-mfused-madd"
21766 .PD 0
21767 .IP "\fB\-mno\-fused\-madd\fR" 4
21768 .IX Item "-mno-fused-madd"
21769 .PD
21770 Enable or disable use of fused multiply/add and multiply/subtract
21771 instructions in the floating-point option.  This has no effect if the
21772 floating-point option is not also enabled.  Disabling fused multiply/add
21773 and multiply/subtract instructions forces the compiler to use separate
21774 instructions for the multiply and add/subtract operations.  This may be
21775 desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
21776 required: the fused multiply add/subtract instructions do not round the
21777 intermediate result, thereby producing results with \fImore\fR bits of
21778 precision than specified by the \s-1IEEE\s0 standard.  Disabling fused multiply
21779 add/subtract instructions also ensures that the program output is not
21780 sensitive to the compiler's ability to combine multiply and add/subtract
21781 operations.
21782 .IP "\fB\-mserialize\-volatile\fR" 4
21783 .IX Item "-mserialize-volatile"
21784 .PD 0
21785 .IP "\fB\-mno\-serialize\-volatile\fR" 4
21786 .IX Item "-mno-serialize-volatile"
21787 .PD
21788 When this option is enabled, \s-1GCC\s0 inserts \f(CW\*(C`MEMW\*(C'\fR instructions before
21789 \&\f(CW\*(C`volatile\*(C'\fR memory references to guarantee sequential consistency.
21790 The default is \fB\-mserialize\-volatile\fR.  Use
21791 \&\fB\-mno\-serialize\-volatile\fR to omit the \f(CW\*(C`MEMW\*(C'\fR instructions.
21792 .IP "\fB\-mforce\-no\-pic\fR" 4
21793 .IX Item "-mforce-no-pic"
21794 For targets, like GNU/Linux, where all user-mode Xtensa code must be
21795 position-independent code (\s-1PIC\s0), this option disables \s-1PIC\s0 for compiling
21796 kernel code.
21797 .IP "\fB\-mtext\-section\-literals\fR" 4
21798 .IX Item "-mtext-section-literals"
21799 .PD 0
21800 .IP "\fB\-mno\-text\-section\-literals\fR" 4
21801 .IX Item "-mno-text-section-literals"
21802 .PD
21803 These options control the treatment of literal pools.  The default is
21804 \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
21805 section in the output file.  This allows the literal pool to be placed
21806 in a data \s-1RAM/ROM\s0, and it also allows the linker to combine literal
21807 pools from separate object files to remove redundant literals and
21808 improve code size.  With \fB\-mtext\-section\-literals\fR, the literals
21809 are interspersed in the text section in order to keep them as close as
21810 possible to their references.  This may be necessary for large assembly
21811 files.
21812 .IP "\fB\-mtarget\-align\fR" 4
21813 .IX Item "-mtarget-align"
21814 .PD 0
21815 .IP "\fB\-mno\-target\-align\fR" 4
21816 .IX Item "-mno-target-align"
21817 .PD
21818 When this option is enabled, \s-1GCC\s0 instructs the assembler to
21819 automatically align instructions to reduce branch penalties at the
21820 expense of some code density.  The assembler attempts to widen density
21821 instructions to align branch targets and the instructions following call
21822 instructions.  If there are not enough preceding safe density
21823 instructions to align a target, no widening is performed.  The
21824 default is \fB\-mtarget\-align\fR.  These options do not affect the
21825 treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
21826 assembler always aligns, either by widening density instructions or
21827 by inserting \s-1NOP\s0 instructions.
21828 .IP "\fB\-mlongcalls\fR" 4
21829 .IX Item "-mlongcalls"
21830 .PD 0
21831 .IP "\fB\-mno\-longcalls\fR" 4
21832 .IX Item "-mno-longcalls"
21833 .PD
21834 When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
21835 direct calls to indirect calls unless it can determine that the target
21836 of a direct call is in the range allowed by the call instruction.  This
21837 translation typically occurs for calls to functions in other source
21838 files.  Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
21839 instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
21840 The default is \fB\-mno\-longcalls\fR.  This option should be used in
21841 programs where the call target can potentially be out of range.  This
21842 option is implemented in the assembler, not the compiler, so the
21843 assembly code generated by \s-1GCC\s0 still shows direct call
21844 instructions\-\-\-look at the disassembled object code to see the actual
21845 instructions.  Note that the assembler uses an indirect call for
21846 every cross-file call, not just those that really are out of range.
21847 .PP
21848 \fIzSeries Options\fR
21849 .IX Subsection "zSeries Options"
21850 .PP
21851 These are listed under
21852 .Sh "Options for Code Generation Conventions"
21853 .IX Subsection "Options for Code Generation Conventions"
21854 These machine-independent options control the interface conventions
21855 used in code generation.
21856 .PP
21857 Most of them have both positive and negative forms; the negative form
21858 of \fB\-ffoo\fR is \fB\-fno\-foo\fR.  In the table below, only
21859 one of the forms is listed\-\-\-the one that is not the default.  You
21860 can figure out the other form by either removing \fBno\-\fR or adding
21861 it.
21862 .IP "\fB\-fbounds\-check\fR" 4
21863 .IX Item "-fbounds-check"
21864 For front ends that support it, generate additional code to check that
21865 indices used to access arrays are within the declared range.  This is
21866 currently only supported by the Java and Fortran front ends, where
21867 this option defaults to true and false respectively.
21868 .IP "\fB\-fstack\-reuse=\fR\fIreuse-level\fR" 4
21869 .IX Item "-fstack-reuse=reuse-level"
21870 This option controls stack space reuse for user declared local/auto variables
21871 and compiler generated temporaries.  \fIreuse_level\fR can be \fBall\fR,
21872 \&\fBnamed_vars\fR, or \fBnone\fR. \fBall\fR enables stack reuse for all
21873 local variables and temporaries, \fBnamed_vars\fR enables the reuse only for
21874 user defined local variables with names, and \fBnone\fR disables stack reuse
21875 completely. The default value is \fBall\fR. The option is needed when the
21876 program extends the lifetime of a scoped local variable or a compiler generated
21877 temporary beyond the end point defined by the language.  When a lifetime of
21878 a variable ends, and if the variable lives in memory, the optimizing compiler
21879 has the freedom to reuse its stack space with other temporaries or scoped
21880 local variables whose live range does not overlap with it. Legacy code extending
21881 local lifetime is likely to break with the stack reuse optimization.
21882 .Sp
21883 For example,
21884 .Sp
21885 .Vb 3
21886 \&           int *p;
21887 \&           {
21888 \&             int local1;
21889 \&        
21890 \&             p = &local1;
21891 \&             local1 = 10;
21892 \&             ....
21893 \&           }
21894 \&           {
21895 \&              int local2;
21896 \&              local2 = 20;
21897 \&              ...
21898 \&           }
21899 \&        
21900 \&           if (*p == 10)  // out of scope use of local1
21901 \&             {
21902 \&        
21903 \&             }
21904 .Ve
21905 .Sp
21906 Another example:
21907 .Sp
21908 .Vb 6
21909 \&           struct A
21910 \&           {
21911 \&               A(int k) : i(k), j(k) { }
21912 \&               int i;
21913 \&               int j;
21914 \&           };
21915 \&        
21916 \&           A *ap;
21917 \&        
21918 \&           void foo(const A& ar)
21919 \&           {
21920 \&              ap = &ar;
21921 \&           }
21922 \&        
21923 \&           void bar()
21924 \&           {
21925 \&              foo(A(10)); // temp object\*(Aqs lifetime ends when foo returns
21926 \&        
21927 \&              {
21928 \&                A a(20);
21929 \&                ....
21930 \&              }
21931 \&              ap\->i+= 10;  // ap references out of scope temp whose space
21932 \&                           // is reused with a. What is the value of ap\->i?
21933 \&           }
21934 .Ve
21935 .Sp
21936 The lifetime of a compiler generated temporary is well defined by the \*(C+
21937 standard. When a lifetime of a temporary ends, and if the temporary lives
21938 in memory, the optimizing compiler has the freedom to reuse its stack
21939 space with other temporaries or scoped local variables whose live range
21940 does not overlap with it. However some of the legacy code relies on
21941 the behavior of older compilers in which temporaries' stack space is
21942 not reused, the aggressive stack reuse can lead to runtime errors. This
21943 option is used to control the temporary stack reuse optimization.
21944 .IP "\fB\-ftrapv\fR" 4
21945 .IX Item "-ftrapv"
21946 This option generates traps for signed overflow on addition, subtraction,
21947 multiplication operations.
21948 .IP "\fB\-fwrapv\fR" 4
21949 .IX Item "-fwrapv"
21950 This option instructs the compiler to assume that signed arithmetic
21951 overflow of addition, subtraction and multiplication wraps around
21952 using twos-complement representation.  This flag enables some optimizations
21953 and disables others.  This option is enabled by default for the Java
21954 front end, as required by the Java language specification.
21955 .IP "\fB\-fexceptions\fR" 4
21956 .IX Item "-fexceptions"
21957 Enable exception handling.  Generates extra code needed to propagate
21958 exceptions.  For some targets, this implies \s-1GCC\s0 generates frame
21959 unwind information for all functions, which can produce significant data
21960 size overhead, although it does not affect execution.  If you do not
21961 specify this option, \s-1GCC\s0 enables it by default for languages like
21962 \&\*(C+ that normally require exception handling, and disables it for
21963 languages like C that do not normally require it.  However, you may need
21964 to enable this option when compiling C code that needs to interoperate
21965 properly with exception handlers written in \*(C+.  You may also wish to
21966 disable this option if you are compiling older \*(C+ programs that don't
21967 use exception handling.
21968 .IP "\fB\-fnon\-call\-exceptions\fR" 4
21969 .IX Item "-fnon-call-exceptions"
21970 Generate code that allows trapping instructions to throw exceptions.
21971 Note that this requires platform-specific runtime support that does
21972 not exist everywhere.  Moreover, it only allows \fItrapping\fR
21973 instructions to throw exceptions, i.e. memory references or floating-point
21974 instructions.  It does not allow exceptions to be thrown from
21975 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
21976 .IP "\fB\-fdelete\-dead\-exceptions\fR" 4
21977 .IX Item "-fdelete-dead-exceptions"
21978 Consider that instructions that may throw exceptions but don't otherwise
21979 contribute to the execution of the program can be optimized away.
21980 This option is enabled by default for the Ada front end, as permitted by
21981 the Ada language specification.
21982 Optimization passes that cause dead exceptions to be removed are enabled independently at different optimization levels.
21983 .IP "\fB\-funwind\-tables\fR" 4
21984 .IX Item "-funwind-tables"
21985 Similar to \fB\-fexceptions\fR, except that it just generates any needed
21986 static data, but does not affect the generated code in any other way.
21987 You normally do not need to enable this option; instead, a language processor
21988 that needs this handling enables it on your behalf.
21989 .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
21990 .IX Item "-fasynchronous-unwind-tables"
21991 Generate unwind table in \s-1DWARF\s0 2 format, if supported by target machine.  The
21992 table is exact at each instruction boundary, so it can be used for stack
21993 unwinding from asynchronous events (such as debugger or garbage collector).
21994 .IP "\fB\-fno\-gnu\-unique\fR" 4
21995 .IX Item "-fno-gnu-unique"
21996 On systems with recent \s-1GNU\s0 assembler and C library, the \*(C+ compiler
21997 uses the \f(CW\*(C`STB_GNU_UNIQUE\*(C'\fR binding to make sure that definitions
21998 of template static data members and static local variables in inline
21999 functions are unique even in the presence of \f(CW\*(C`RTLD_LOCAL\*(C'\fR; this
22000 is necessary to avoid problems with a library used by two different
22001 \&\f(CW\*(C`RTLD_LOCAL\*(C'\fR plugins depending on a definition in one of them and
22002 therefore disagreeing with the other one about the binding of the
22003 symbol.  But this causes \f(CW\*(C`dlclose\*(C'\fR to be ignored for affected
22004 DSOs; if your program relies on reinitialization of a \s-1DSO\s0 via
22005 \&\f(CW\*(C`dlclose\*(C'\fR and \f(CW\*(C`dlopen\*(C'\fR, you can use
22006 \&\fB\-fno\-gnu\-unique\fR.
22007 .IP "\fB\-fpcc\-struct\-return\fR" 4
22008 .IX Item "-fpcc-struct-return"
22009 Return \*(L"short\*(R" \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
22010 longer ones, rather than in registers.  This convention is less
22011 efficient, but it has the advantage of allowing intercallability between
22012 GCC-compiled files and files compiled with other compilers, particularly
22013 the Portable C Compiler (pcc).
22014 .Sp
22015 The precise convention for returning structures in memory depends
22016 on the target configuration macros.
22017 .Sp
22018 Short structures and unions are those whose size and alignment match
22019 that of some integer type.
22020 .Sp
22021 \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
22022 switch is not binary compatible with code compiled with the
22023 \&\fB\-freg\-struct\-return\fR switch.
22024 Use it to conform to a non-default application binary interface.
22025 .IP "\fB\-freg\-struct\-return\fR" 4
22026 .IX Item "-freg-struct-return"
22027 Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
22028 This is more efficient for small structures than
22029 \&\fB\-fpcc\-struct\-return\fR.
22030 .Sp
22031 If you specify neither \fB\-fpcc\-struct\-return\fR nor
22032 \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
22033 standard for the target.  If there is no standard convention, \s-1GCC\s0
22034 defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
22035 the principal compiler.  In those cases, we can choose the standard, and
22036 we chose the more efficient register return alternative.
22037 .Sp
22038 \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
22039 switch is not binary compatible with code compiled with the
22040 \&\fB\-fpcc\-struct\-return\fR switch.
22041 Use it to conform to a non-default application binary interface.
22042 .IP "\fB\-fshort\-enums\fR" 4
22043 .IX Item "-fshort-enums"
22044 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
22045 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
22046 is equivalent to the smallest integer type that has enough room.
22047 .Sp
22048 \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
22049 code that is not binary compatible with code generated without that switch.
22050 Use it to conform to a non-default application binary interface.
22051 .IP "\fB\-fshort\-double\fR" 4
22052 .IX Item "-fshort-double"
22053 Use the same size for \f(CW\*(C`double\*(C'\fR as for \f(CW\*(C`float\*(C'\fR.
22054 .Sp
22055 \&\fBWarning:\fR the \fB\-fshort\-double\fR switch causes \s-1GCC\s0 to generate
22056 code that is not binary compatible with code generated without that switch.
22057 Use it to conform to a non-default application binary interface.
22058 .IP "\fB\-fshort\-wchar\fR" 4
22059 .IX Item "-fshort-wchar"
22060 Override the underlying type for \f(CW\*(C`wchar_t\*(C'\fR to be \f(CW\*(C`short
22061 unsigned int\*(C'\fR instead of the default for the target.  This option is
22062 useful for building programs to run under \s-1WINE\s0.
22063 .Sp
22064 \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
22065 code that is not binary compatible with code generated without that switch.
22066 Use it to conform to a non-default application binary interface.
22067 .IP "\fB\-fno\-common\fR" 4
22068 .IX Item "-fno-common"
22069 In C code, controls the placement of uninitialized global variables.
22070 Unix C compilers have traditionally permitted multiple definitions of
22071 such variables in different compilation units by placing the variables
22072 in a common block.
22073 This is the behavior specified by \fB\-fcommon\fR, and is the default
22074 for \s-1GCC\s0 on most targets.
22075 On the other hand, this behavior is not required by \s-1ISO\s0 C, and on some
22076 targets may carry a speed or code size penalty on variable references.
22077 The \fB\-fno\-common\fR option specifies that the compiler should place
22078 uninitialized global variables in the data section of the object file,
22079 rather than generating them as common blocks.
22080 This has the effect that if the same variable is declared
22081 (without \f(CW\*(C`extern\*(C'\fR) in two different compilations,
22082 you get a multiple-definition error when you link them.
22083 In this case, you must compile with \fB\-fcommon\fR instead.
22084 Compiling with \fB\-fno\-common\fR is useful on targets for which
22085 it provides better performance, or if you wish to verify that the
22086 program will work on other systems that always treat uninitialized
22087 variable declarations this way.
22088 .IP "\fB\-fno\-ident\fR" 4
22089 .IX Item "-fno-ident"
22090 Ignore the \f(CW\*(C`#ident\*(C'\fR directive.
22091 .IP "\fB\-finhibit\-size\-directive\fR" 4
22092 .IX Item "-finhibit-size-directive"
22093 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
22094 would cause trouble if the function is split in the middle, and the
22095 two halves are placed at locations far apart in memory.  This option is
22096 used when compiling \fIcrtstuff.c\fR; you should not need to use it
22097 for anything else.
22098 .IP "\fB\-fverbose\-asm\fR" 4
22099 .IX Item "-fverbose-asm"
22100 Put extra commentary information in the generated assembly code to
22101 make it more readable.  This option is generally only of use to those
22102 who actually need to read the generated assembly code (perhaps while
22103 debugging the compiler itself).
22104 .Sp
22105 \&\fB\-fno\-verbose\-asm\fR, the default, causes the
22106 extra information to be omitted and is useful when comparing two assembler
22107 files.
22108 .IP "\fB\-frecord\-gcc\-switches\fR" 4
22109 .IX Item "-frecord-gcc-switches"
22110 This switch causes the command line used to invoke the
22111 compiler to be recorded into the object file that is being created.
22112 This switch is only implemented on some targets and the exact format
22113 of the recording is target and binary file format dependent, but it
22114 usually takes the form of a section containing \s-1ASCII\s0 text.  This
22115 switch is related to the \fB\-fverbose\-asm\fR switch, but that
22116 switch only records information in the assembler output file as
22117 comments, so it never reaches the object file.
22118 See also \fB\-grecord\-gcc\-switches\fR for another
22119 way of storing compiler options into the object file.
22120 .IP "\fB\-fpic\fR" 4
22121 .IX Item "-fpic"
22122 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
22123 library, if supported for the target machine.  Such code accesses all
22124 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
22125 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
22126 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
22127 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
22128 maximum size, you get an error message from the linker indicating that
22129 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
22130 instead.  (These maximums are 8k on the \s-1SPARC\s0 and 32k
22131 on the m68k and \s-1RS/6000\s0.  The x86 has no such limit.)
22132 .Sp
22133 Position-independent code requires special support, and therefore works
22134 only on certain machines.  For the x86, \s-1GCC\s0 supports \s-1PIC\s0 for System V
22135 but not for the Sun 386i.  Code generated for the \s-1IBM\s0 \s-1RS/6000\s0 is always
22136 position-independent.
22137 .Sp
22138 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
22139 are defined to 1.
22140 .IP "\fB\-fPIC\fR" 4
22141 .IX Item "-fPIC"
22142 If supported for the target machine, emit position-independent code,
22143 suitable for dynamic linking and avoiding any limit on the size of the
22144 global offset table.  This option makes a difference on the m68k,
22145 PowerPC and \s-1SPARC\s0.
22146 .Sp
22147 Position-independent code requires special support, and therefore works
22148 only on certain machines.
22149 .Sp
22150 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
22151 are defined to 2.
22152 .IP "\fB\-fpie\fR" 4
22153 .IX Item "-fpie"
22154 .PD 0
22155 .IP "\fB\-fPIE\fR" 4
22156 .IX Item "-fPIE"
22157 .PD
22158 These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
22159 generated position independent code can be only linked into executables.
22160 Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option is
22161 used during linking.
22162 .Sp
22163 \&\fB\-fpie\fR and \fB\-fPIE\fR both define the macros
22164 \&\f(CW\*(C`_\|_pie_\|_\*(C'\fR and \f(CW\*(C`_\|_PIE_\|_\*(C'\fR.  The macros have the value 1
22165 for \fB\-fpie\fR and 2 for \fB\-fPIE\fR.
22166 .IP "\fB\-fno\-jump\-tables\fR" 4
22167 .IX Item "-fno-jump-tables"
22168 Do not use jump tables for switch statements even where it would be
22169 more efficient than other code generation strategies.  This option is
22170 of use in conjunction with \fB\-fpic\fR or \fB\-fPIC\fR for
22171 building code that forms part of a dynamic linker and cannot
22172 reference the address of a jump table.  On some targets, jump tables
22173 do not require a \s-1GOT\s0 and this option is not needed.
22174 .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
22175 .IX Item "-ffixed-reg"
22176 Treat the register named \fIreg\fR as a fixed register; generated code
22177 should never refer to it (except perhaps as a stack pointer, frame
22178 pointer or in some other fixed role).
22179 .Sp
22180 \&\fIreg\fR must be the name of a register.  The register names accepted
22181 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
22182 macro in the machine description macro file.
22183 .Sp
22184 This flag does not have a negative form, because it specifies a
22185 three-way choice.
22186 .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
22187 .IX Item "-fcall-used-reg"
22188 Treat the register named \fIreg\fR as an allocable register that is
22189 clobbered by function calls.  It may be allocated for temporaries or
22190 variables that do not live across a call.  Functions compiled this way
22191 do not save and restore the register \fIreg\fR.
22192 .Sp
22193 It is an error to use this flag with the frame pointer or stack pointer.
22194 Use of this flag for other registers that have fixed pervasive roles in
22195 the machine's execution model produces disastrous results.
22196 .Sp
22197 This flag does not have a negative form, because it specifies a
22198 three-way choice.
22199 .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
22200 .IX Item "-fcall-saved-reg"
22201 Treat the register named \fIreg\fR as an allocable register saved by
22202 functions.  It may be allocated even for temporaries or variables that
22203 live across a call.  Functions compiled this way save and restore
22204 the register \fIreg\fR if they use it.
22205 .Sp
22206 It is an error to use this flag with the frame pointer or stack pointer.
22207 Use of this flag for other registers that have fixed pervasive roles in
22208 the machine's execution model produces disastrous results.
22209 .Sp
22210 A different sort of disaster results from the use of this flag for
22211 a register in which function values may be returned.
22212 .Sp
22213 This flag does not have a negative form, because it specifies a
22214 three-way choice.
22215 .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
22216 .IX Item "-fpack-struct[=n]"
22217 Without a value specified, pack all structure members together without
22218 holes.  When a value is specified (which must be a small power of two), pack
22219 structure members according to this value, representing the maximum
22220 alignment (that is, objects with default alignment requirements larger than
22221 this are output potentially unaligned at the next fitting location.
22222 .Sp
22223 \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
22224 code that is not binary compatible with code generated without that switch.
22225 Additionally, it makes the code suboptimal.
22226 Use it to conform to a non-default application binary interface.
22227 .IP "\fB\-finstrument\-functions\fR" 4
22228 .IX Item "-finstrument-functions"
22229 Generate instrumentation calls for entry and exit to functions.  Just
22230 after function entry and just before function exit, the following
22231 profiling functions are called with the address of the current
22232 function and its call site.  (On some platforms,
22233 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
22234 function, so the call site information may not be available to the
22235 profiling functions otherwise.)
22236 .Sp
22237 .Vb 4
22238 \&        void _\|_cyg_profile_func_enter (void *this_fn,
22239 \&                                       void *call_site);
22240 \&        void _\|_cyg_profile_func_exit  (void *this_fn,
22241 \&                                       void *call_site);
22242 .Ve
22243 .Sp
22244 The first argument is the address of the start of the current function,
22245 which may be looked up exactly in the symbol table.
22246 .Sp
22247 This instrumentation is also done for functions expanded inline in other
22248 functions.  The profiling calls indicate where, conceptually, the
22249 inline function is entered and exited.  This means that addressable
22250 versions of such functions must be available.  If all your uses of a
22251 function are expanded inline, this may mean an additional expansion of
22252 code size.  If you use \f(CW\*(C`extern inline\*(C'\fR in your C code, an
22253 addressable version of such functions must be provided.  (This is
22254 normally the case anyway, but if you get lucky and the optimizer always
22255 expands the functions inline, you might have gotten away without
22256 providing static copies.)
22257 .Sp
22258 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
22259 which case this instrumentation is not done.  This can be used, for
22260 example, for the profiling functions listed above, high-priority
22261 interrupt routines, and any functions from which the profiling functions
22262 cannot safely be called (perhaps signal handlers, if the profiling
22263 routines generate output or allocate memory).
22264 .IP "\fB\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR" 4
22265 .IX Item "-finstrument-functions-exclude-file-list=file,file,..."
22266 Set the list of functions that are excluded from instrumentation (see
22267 the description of \fB\-finstrument\-functions\fR).  If the file that
22268 contains a function definition matches with one of \fIfile\fR, then
22269 that function is not instrumented.  The match is done on substrings:
22270 if the \fIfile\fR parameter is a substring of the file name, it is
22271 considered to be a match.
22272 .Sp
22273 For example:
22274 .Sp
22275 .Vb 1
22276 \&        \-finstrument\-functions\-exclude\-file\-list=/bits/stl,include/sys
22277 .Ve
22278 .Sp
22279 excludes any inline function defined in files whose pathnames
22280 contain \fI/bits/stl\fR or \fIinclude/sys\fR.
22281 .Sp
22282 If, for some reason, you want to include letter \fB,\fR in one of
22283 \&\fIsym\fR, write \fB,\fR. For example,
22284 \&\fB\-finstrument\-functions\-exclude\-file\-list=',,tmp'\fR
22285 (note the single quote surrounding the option).
22286 .IP "\fB\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,...\fR" 4
22287 .IX Item "-finstrument-functions-exclude-function-list=sym,sym,..."
22288 This is similar to \fB\-finstrument\-functions\-exclude\-file\-list\fR,
22289 but this option sets the list of function names to be excluded from
22290 instrumentation.  The function name to be matched is its user-visible
22291 name, such as \f(CW\*(C`vector<int> blah(const vector<int> &)\*(C'\fR, not the
22292 internal mangled name (e.g., \f(CW\*(C`_Z4blahRSt6vectorIiSaIiEE\*(C'\fR).  The
22293 match is done on substrings: if the \fIsym\fR parameter is a substring
22294 of the function name, it is considered to be a match.  For C99 and \*(C+
22295 extended identifiers, the function name must be given in \s-1UTF\-8\s0, not
22296 using universal character names.
22297 .IP "\fB\-fstack\-check\fR" 4
22298 .IX Item "-fstack-check"
22299 Generate code to verify that you do not go beyond the boundary of the
22300 stack.  You should specify this flag if you are running in an
22301 environment with multiple threads, but you only rarely need to specify it in
22302 a single-threaded environment since stack overflow is automatically
22303 detected on nearly all systems if there is only one stack.
22304 .Sp
22305 Note that this switch does not actually cause checking to be done; the
22306 operating system or the language runtime must do that.  The switch causes
22307 generation of code to ensure that they see the stack being extended.
22308 .Sp
22309 You can additionally specify a string parameter: \fBno\fR means no
22310 checking, \fBgeneric\fR means force the use of old-style checking,
22311 \&\fBspecific\fR means use the best checking method and is equivalent
22312 to bare \fB\-fstack\-check\fR.
22313 .Sp
22314 Old-style checking is a generic mechanism that requires no specific
22315 target support in the compiler but comes with the following drawbacks:
22316 .RS 4
22317 .IP "1." 4
22318 .IX Item "1."
22319 Modified allocation strategy for large objects: they are always
22320 allocated dynamically if their size exceeds a fixed threshold.
22321 .IP "2." 4
22322 .IX Item "2."
22323 Fixed limit on the size of the static frame of functions: when it is
22324 topped by a particular function, stack checking is not reliable and
22325 a warning is issued by the compiler.
22326 .IP "3." 4
22327 .IX Item "3."
22328 Inefficiency: because of both the modified allocation strategy and the
22329 generic implementation, code performance is hampered.
22330 .RE
22331 .RS 4
22332 .Sp
22333 Note that old-style stack checking is also the fallback method for
22334 \&\fBspecific\fR if no target support has been added in the compiler.
22335 .RE
22336 .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
22337 .IX Item "-fstack-limit-register=reg"
22338 .PD 0
22339 .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
22340 .IX Item "-fstack-limit-symbol=sym"
22341 .IP "\fB\-fno\-stack\-limit\fR" 4
22342 .IX Item "-fno-stack-limit"
22343 .PD
22344 Generate code to ensure that the stack does not grow beyond a certain value,
22345 either the value of a register or the address of a symbol.  If a larger
22346 stack is required, a signal is raised at run time.  For most targets,
22347 the signal is raised before the stack overruns the boundary, so
22348 it is possible to catch the signal without taking special precautions.
22349 .Sp
22350 For instance, if the stack starts at absolute address \fB0x80000000\fR
22351 and grows downwards, you can use the flags
22352 \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
22353 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
22354 of 128KB.  Note that this may only work with the \s-1GNU\s0 linker.
22355 .IP "\fB\-fsplit\-stack\fR" 4
22356 .IX Item "-fsplit-stack"
22357 Generate code to automatically split the stack before it overflows.
22358 The resulting program has a discontiguous stack which can only
22359 overflow if the program is unable to allocate any more memory.  This
22360 is most useful when running threaded programs, as it is no longer
22361 necessary to calculate a good stack size to use for each thread.  This
22362 is currently only implemented for the x86 targets running
22363 GNU/Linux.
22364 .Sp
22365 When code compiled with \fB\-fsplit\-stack\fR calls code compiled
22366 without \fB\-fsplit\-stack\fR, there may not be much stack space
22367 available for the latter code to run.  If compiling all code,
22368 including library code, with \fB\-fsplit\-stack\fR is not an option,
22369 then the linker can fix up these calls so that the code compiled
22370 without \fB\-fsplit\-stack\fR always has a large stack.  Support for
22371 this is implemented in the gold linker in \s-1GNU\s0 binutils release 2.21
22372 and later.
22373 .IP "\fB\-fleading\-underscore\fR" 4
22374 .IX Item "-fleading-underscore"
22375 This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
22376 change the way C symbols are represented in the object file.  One use
22377 is to help link with legacy assembly code.
22378 .Sp
22379 \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
22380 generate code that is not binary compatible with code generated without that
22381 switch.  Use it to conform to a non-default application binary interface.
22382 Not all targets provide complete support for this switch.
22383 .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
22384 .IX Item "-ftls-model=model"
22385 Alter the thread-local storage model to be used.
22386 The \fImodel\fR argument should be one of \fBglobal-dynamic\fR,
22387 \&\fBlocal-dynamic\fR, \fBinitial-exec\fR or \fBlocal-exec\fR.
22388 Note that the choice is subject to optimization: the compiler may use
22389 a more efficient model for symbols not visible outside of the translation
22390 unit, or if \fB\-fpic\fR is not given on the command line.
22391 .Sp
22392 The default without \fB\-fpic\fR is \fBinitial-exec\fR; with
22393 \&\fB\-fpic\fR the default is \fBglobal-dynamic\fR.
22394 .IP "\fB\-fvisibility=\fR[\fBdefault\fR|\fBinternal\fR|\fBhidden\fR|\fBprotected\fR]" 4
22395 .IX Item "-fvisibility=[default|internal|hidden|protected]"
22396 Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
22397 symbols are marked with this unless overridden within the code.
22398 Using this feature can very substantially improve linking and
22399 load times of shared object libraries, produce more optimized
22400 code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
22401 It is \fBstrongly\fR recommended that you use this in any shared objects
22402 you distribute.
22403 .Sp
22404 Despite the nomenclature, \fBdefault\fR always means public; i.e.,
22405 available to be linked against from outside the shared object.
22406 \&\fBprotected\fR and \fBinternal\fR are pretty useless in real-world
22407 usage so the only other commonly used option is \fBhidden\fR.
22408 The default if \fB\-fvisibility\fR isn't specified is
22409 \&\fBdefault\fR, i.e., make every symbol public.
22410 .Sp
22411 A good explanation of the benefits offered by ensuring \s-1ELF\s0
22412 symbols have the correct visibility is given by \*(L"How To Write
22413 Shared Libraries\*(R" by Ulrich Drepper (which can be found at
22414 <\fBhttp://www.akkadia.org/drepper/\fR>)\-\-\-however a superior
22415 solution made possible by this option to marking things hidden when
22416 the default is public is to make the default hidden and mark things
22417 public.  This is the norm with DLLs on Windows and with \fB\-fvisibility=hidden\fR
22418 and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
22419 \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
22420 identical syntax.  This is a great boon to those working with
22421 cross-platform projects.
22422 .Sp
22423 For those adding visibility support to existing code, you may find
22424 \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR of use.  This works by you enclosing
22425 the declarations you wish to set visibility for with (for example)
22426 \&\f(CW\*(C`#pragma GCC visibility push(hidden)\*(C'\fR and
22427 \&\f(CW\*(C`#pragma GCC visibility pop\*(C'\fR.
22428 Bear in mind that symbol visibility should be viewed \fBas
22429 part of the \s-1API\s0 interface contract\fR and thus all new code should
22430 always specify visibility when it is not the default; i.e., declarations
22431 only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
22432 as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
22433 abundantly clear also aids readability and self-documentation of the code.
22434 Note that due to \s-1ISO\s0 \*(C+ specification requirements, \f(CW\*(C`operator new\*(C'\fR and
22435 \&\f(CW\*(C`operator delete\*(C'\fR must always be of default visibility.
22436 .Sp
22437 Be aware that headers from outside your project, in particular system
22438 headers and headers from any other library you use, may not be
22439 expecting to be compiled with visibility other than the default.  You
22440 may need to explicitly say \f(CW\*(C`#pragma GCC visibility push(default)\*(C'\fR
22441 before including any such headers.
22442 .Sp
22443 \&\f(CW\*(C`extern\*(C'\fR declarations are not affected by \fB\-fvisibility\fR, so
22444 a lot of code can be recompiled with \fB\-fvisibility=hidden\fR with
22445 no modifications.  However, this means that calls to \f(CW\*(C`extern\*(C'\fR
22446 functions with no explicit visibility use the \s-1PLT\s0, so it is more
22447 effective to use \f(CW\*(C`_\|_attribute ((visibility))\*(C'\fR and/or
22448 \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR to tell the compiler which \f(CW\*(C`extern\*(C'\fR
22449 declarations should be treated as hidden.
22450 .Sp
22451 Note that \fB\-fvisibility\fR does affect \*(C+ vague linkage
22452 entities. This means that, for instance, an exception class that is
22453 be thrown between DSOs must be explicitly marked with default
22454 visibility so that the \fBtype_info\fR nodes are unified between
22455 the DSOs.
22456 .Sp
22457 An overview of these techniques, their benefits and how to use them
22458 is at <\fBhttp://gcc.gnu.org/wiki/Visibility\fR>.
22459 .IP "\fB\-fstrict\-volatile\-bitfields\fR" 4
22460 .IX Item "-fstrict-volatile-bitfields"
22461 This option should be used if accesses to volatile bit-fields (or other
22462 structure fields, although the compiler usually honors those types
22463 anyway) should use a single access of the width of the
22464 field's type, aligned to a natural alignment if possible.  For
22465 example, targets with memory-mapped peripheral registers might require
22466 all such accesses to be 16 bits wide; with this flag you can
22467 declare all peripheral bit-fields as \f(CW\*(C`unsigned short\*(C'\fR (assuming short
22468 is 16 bits on these targets) to force \s-1GCC\s0 to use 16\-bit accesses
22469 instead of, perhaps, a more efficient 32\-bit access.
22470 .Sp
22471 If this option is disabled, the compiler uses the most efficient
22472 instruction.  In the previous example, that might be a 32\-bit load
22473 instruction, even though that accesses bytes that do not contain
22474 any portion of the bit-field, or memory-mapped registers unrelated to
22475 the one being updated.
22476 .Sp
22477 In some cases, such as when the \f(CW\*(C`packed\*(C'\fR attribute is applied to a 
22478 structure field, it may not be possible to access the field with a single
22479 read or write that is correctly aligned for the target machine.  In this
22480 case \s-1GCC\s0 falls back to generating multiple accesses rather than code that 
22481 will fault or truncate the result at run time.
22482 .Sp
22483 Note:  Due to restrictions of the C/\*(C+11 memory model, write accesses are
22484 not allowed to touch non bit-field members.  It is therefore recommended
22485 to define all bits of the field's type as bit-field members.
22486 .Sp
22487 The default value of this option is determined by the application binary
22488 interface for the target processor.
22489 .IP "\fB\-fsync\-libcalls\fR" 4
22490 .IX Item "-fsync-libcalls"
22491 This option controls whether any out-of-line instance of the \f(CW\*(C`_\|_sync\*(C'\fR
22492 family of functions may be used to implement the \*(C+11 \f(CW\*(C`_\|_atomic\*(C'\fR
22493 family of functions.
22494 .Sp
22495 The default value of this option is enabled, thus the only useful form
22496 of the option is \fB\-fno\-sync\-libcalls\fR.  This option is used in
22497 the implementation of the \fIlibatomic\fR runtime library.
22498 .SH "ENVIRONMENT"
22499 .IX Header "ENVIRONMENT"
22500 This section describes several environment variables that affect how \s-1GCC\s0
22501 operates.  Some of them work by specifying directories or prefixes to use
22502 when searching for various kinds of files.  Some are used to specify other
22503 aspects of the compilation environment.
22504 .PP
22505 Note that you can also specify places to search using options such as
22506 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
22507 take precedence over places specified using environment variables, which
22508 in turn take precedence over those specified by the configuration of \s-1GCC\s0.
22509 .IP "\fB\s-1LANG\s0\fR" 4
22510 .IX Item "LANG"
22511 .PD 0
22512 .IP "\fB\s-1LC_CTYPE\s0\fR" 4
22513 .IX Item "LC_CTYPE"
22514 .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
22515 .IX Item "LC_MESSAGES"
22516 .IP "\fB\s-1LC_ALL\s0\fR" 4
22517 .IX Item "LC_ALL"
22518 .PD
22519 These environment variables control the way that \s-1GCC\s0 uses
22520 localization information which allows \s-1GCC\s0 to work with different
22521 national conventions.  \s-1GCC\s0 inspects the locale categories
22522 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
22523 so.  These locale categories can be set to any value supported by your
22524 installation.  A typical value is \fBen_GB.UTF\-8\fR for English in the United
22525 Kingdom encoded in \s-1UTF\-8\s0.
22526 .Sp
22527 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
22528 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
22529 a string; this is needed for some multibyte encodings that contain quote
22530 and escape characters that are otherwise interpreted as a string
22531 end or escape.
22532 .Sp
22533 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
22534 use in diagnostic messages.
22535 .Sp
22536 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
22537 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
22538 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
22539 environment variable.  If none of these variables are set, \s-1GCC\s0
22540 defaults to traditional C English behavior.
22541 .IP "\fB\s-1TMPDIR\s0\fR" 4
22542 .IX Item "TMPDIR"
22543 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
22544 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
22545 compilation which is to be used as input to the next stage: for example,
22546 the output of the preprocessor, which is the input to the compiler
22547 proper.
22548 .IP "\fB\s-1GCC_COMPARE_DEBUG\s0\fR" 4
22549 .IX Item "GCC_COMPARE_DEBUG"
22550 Setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR is nearly equivalent to passing
22551 \&\fB\-fcompare\-debug\fR to the compiler driver.  See the documentation
22552 of this option for more details.
22553 .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
22554 .IX Item "GCC_EXEC_PREFIX"
22555 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
22556 names of the subprograms executed by the compiler.  No slash is added
22557 when this prefix is combined with the name of a subprogram, but you can
22558 specify a prefix that ends with a slash if you wish.
22559 .Sp
22560 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 attempts to figure out
22561 an appropriate prefix to use based on the pathname it is invoked with.
22562 .Sp
22563 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
22564 tries looking in the usual places for the subprogram.
22565 .Sp
22566 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
22567 \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the prefix to
22568 the installed compiler. In many cases \fIprefix\fR is the value
22569 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
22570 .Sp
22571 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
22572 .Sp
22573 This prefix is also used for finding files such as \fIcrt0.o\fR that are
22574 used for linking.
22575 .Sp
22576 In addition, the prefix is used in an unusual way in finding the
22577 directories to search for header files.  For each of the standard
22578 directories whose name normally begins with \fB/usr/local/lib/gcc\fR
22579 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
22580 replacing that beginning with the specified prefix to produce an
22581 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 searches
22582 \&\fIfoo/bar\fR just before it searches the standard directory 
22583 \&\fI/usr/local/lib/bar\fR.
22584 If a standard directory begins with the configured
22585 \&\fIprefix\fR then the value of \fIprefix\fR is replaced by
22586 \&\fB\s-1GCC_EXEC_PREFIX\s0\fR when looking for header files.
22587 .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
22588 .IX Item "COMPILER_PATH"
22589 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
22590 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
22591 specified when searching for subprograms, if it can't find the
22592 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
22593 .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
22594 .IX Item "LIBRARY_PATH"
22595 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
22596 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
22597 \&\s-1GCC\s0 tries the directories thus specified when searching for special
22598 linker files, if it can't find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
22599 using \s-1GCC\s0 also uses these directories when searching for ordinary
22600 libraries for the \fB\-l\fR option (but directories specified with
22601 \&\fB\-L\fR come first).
22602 .IP "\fB\s-1LANG\s0\fR" 4
22603 .IX Item "LANG"
22604 This variable is used to pass locale information to the compiler.  One way in
22605 which this information is used is to determine the character set to be used
22606 when character literals, string literals and comments are parsed in C and \*(C+.
22607 When the compiler is configured to allow multibyte characters,
22608 the following values for \fB\s-1LANG\s0\fR are recognized:
22609 .RS 4
22610 .IP "\fBC\-JIS\fR" 4
22611 .IX Item "C-JIS"
22612 Recognize \s-1JIS\s0 characters.
22613 .IP "\fBC\-SJIS\fR" 4
22614 .IX Item "C-SJIS"
22615 Recognize \s-1SJIS\s0 characters.
22616 .IP "\fBC\-EUCJP\fR" 4
22617 .IX Item "C-EUCJP"
22618 Recognize \s-1EUCJP\s0 characters.
22619 .RE
22620 .RS 4
22621 .Sp
22622 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
22623 compiler uses \f(CW\*(C`mblen\*(C'\fR and \f(CW\*(C`mbtowc\*(C'\fR as defined by the default locale to
22624 recognize and translate multibyte characters.
22625 .RE
22626 .PP
22627 Some additional environment variables affect the behavior of the
22628 preprocessor.
22629 .IP "\fB\s-1CPATH\s0\fR" 4
22630 .IX Item "CPATH"
22631 .PD 0
22632 .IP "\fBC_INCLUDE_PATH\fR" 4
22633 .IX Item "C_INCLUDE_PATH"
22634 .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
22635 .IX Item "CPLUS_INCLUDE_PATH"
22636 .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
22637 .IX Item "OBJC_INCLUDE_PATH"
22638 .PD
22639 Each variable's value is a list of directories separated by a special
22640 character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
22641 The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
22642 determined at \s-1GCC\s0 build time.  For Microsoft Windows-based targets it is a
22643 semicolon, and for almost all other targets it is a colon.
22644 .Sp
22645 \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
22646 specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
22647 options on the command line.  This environment variable is used
22648 regardless of which language is being preprocessed.
22649 .Sp
22650 The remaining environment variables apply only when preprocessing the
22651 particular language indicated.  Each specifies a list of directories
22652 to be searched as if specified with \fB\-isystem\fR, but after any
22653 paths given with \fB\-isystem\fR options on the command line.
22654 .Sp
22655 In all these variables, an empty element instructs the compiler to
22656 search its current working directory.  Empty elements can appear at the
22657 beginning or end of a path.  For instance, if the value of
22658 \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
22659 effect as \fB\-I.\ \-I/special/include\fR.
22660 .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
22661 .IX Item "DEPENDENCIES_OUTPUT"
22662 If this variable is set, its value specifies how to output
22663 dependencies for Make based on the non-system header files processed
22664 by the compiler.  System header files are ignored in the dependency
22665 output.
22666 .Sp
22667 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
22668 which case the Make rules are written to that file, guessing the target
22669 name from the source file name.  Or the value can have the form
22670 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
22671 file \fIfile\fR using \fItarget\fR as the target name.
22672 .Sp
22673 In other words, this environment variable is equivalent to combining
22674 the options \fB\-MM\fR and \fB\-MF\fR,
22675 with an optional \fB\-MT\fR switch too.
22676 .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
22677 .IX Item "SUNPRO_DEPENDENCIES"
22678 This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
22679 except that system header files are not ignored, so it implies
22680 \&\fB\-M\fR rather than \fB\-MM\fR.  However, the dependence on the
22681 main input file is omitted.
22682 .SH "BUGS"
22683 .IX Header "BUGS"
22684 For instructions on reporting bugs, see
22685 <\fBhttp://gcc.gnu.org/bugs.html\fR>.
22686 .SH "FOOTNOTES"
22687 .IX Header "FOOTNOTES"
22688 .IP "1." 4
22689 On some systems, \fBgcc \-shared\fR
22690 needs to build supplementary stub code for constructors to work.  On
22691 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
22692 libraries to link against.  Failing to supply the correct flags may lead
22693 to subtle defects.  Supplying them in cases where they are not necessary
22694 is innocuous.
22695 .SH "SEE ALSO"
22696 .IX Header "SEE ALSO"
22697 \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7),
22698 \&\fIcpp\fR\|(1), \fIgcov\fR\|(1), \fIas\fR\|(1), \fIld\fR\|(1), \fIgdb\fR\|(1), \fIadb\fR\|(1), \fIdbx\fR\|(1), \fIsdb\fR\|(1)
22699 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
22700 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
22701 .SH "AUTHOR"
22702 .IX Header "AUTHOR"
22703 See the Info entry for \fBgcc\fR, or
22704 <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
22705 for contributors to \s-1GCC\s0.
22706 .SH "COPYRIGHT"
22707 .IX Header "COPYRIGHT"
22708 Copyright (c) 1988\-2015 Free Software Foundation, Inc.
22709 .PP
22710 Permission is granted to copy, distribute and/or modify this document
22711 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or
22712 any later version published by the Free Software Foundation; with the
22713 Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
22714 Free Software\*(R", the Front-Cover texts being (a) (see below), and with
22715 the Back-Cover Texts being (b) (see below).  A copy of the license is
22716 included in the \fIgfdl\fR\|(7) man page.
22717 .PP
22718 (a) The \s-1FSF\s0's Front-Cover Text is:
22719 .PP
22720 .Vb 1
22721 \&     A GNU Manual
22722 .Ve
22723 .PP
22724 (b) The \s-1FSF\s0's Back-Cover Text is:
22725 .PP
22726 .Vb 3
22727 \&     You have freedom to copy and modify this GNU Manual, like GNU
22728 \&     software.  Copies published by the Free Software Foundation raise
22729 \&     funds for GNU development.
22730 .Ve