Merge branch 'vendor/BINUTILS225'
[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-12-04" "gcc-5.3.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 <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizer\fR> for
5107 more details.  The run-time behavior can be influenced using the
5108 \&\fB\s-1ASAN_OPTIONS\s0\fR environment variable.  When set to \f(CW\*(C`help=1\*(C'\fR,
5109 the available options are shown at startup of the instrumended program.  See
5110 <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizerFlags#run\-time\-flags\fR>
5111 for a list of supported options.
5112 .IP "\fB\-fsanitize=kernel\-address\fR" 4
5113 .IX Item "-fsanitize=kernel-address"
5114 Enable AddressSanitizer for Linux kernel.
5115 See <\fBhttps://github.com/google/kasan/wiki\fR> for more details.
5116 .IP "\fB\-fsanitize=thread\fR" 4
5117 .IX Item "-fsanitize=thread"
5118 Enable ThreadSanitizer, a fast data race detector.
5119 Memory access instructions are instrumented to detect
5120 data race bugs.  See <\fBhttps://github.com/google/sanitizers/wiki#threadsanitizer\fR> for more
5121 details. The run-time behavior can be influenced using the \fB\s-1TSAN_OPTIONS\s0\fR
5122 environment variable; see
5123 <\fBhttps://github.com/google/sanitizers/wiki/ThreadSanitizerFlags\fR> for a list of
5124 supported options.
5125 .IP "\fB\-fsanitize=leak\fR" 4
5126 .IX Item "-fsanitize=leak"
5127 Enable LeakSanitizer, a memory leak detector.
5128 This option only matters for linking of executables and if neither
5129 \&\fB\-fsanitize=address\fR nor \fB\-fsanitize=thread\fR is used.  In that
5130 case the executable is linked against a library that overrides \f(CW\*(C`malloc\*(C'\fR
5131 and other allocator functions.  See
5132 <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer\fR> for more
5133 details.  The run-time behavior can be influenced using the
5134 \&\fB\s-1LSAN_OPTIONS\s0\fR environment variable.
5135 .IP "\fB\-fsanitize=undefined\fR" 4
5136 .IX Item "-fsanitize=undefined"
5137 Enable UndefinedBehaviorSanitizer, a fast undefined behavior detector.
5138 Various computations are instrumented to detect undefined behavior
5139 at runtime.  Current suboptions are:
5140 .RS 4
5141 .IP "\fB\-fsanitize=shift\fR" 4
5142 .IX Item "-fsanitize=shift"
5143 This option enables checking that the result of a shift operation is
5144 not undefined.  Note that what exactly is considered undefined differs
5145 slightly between C and \*(C+, as well as between \s-1ISO\s0 C90 and C99, etc.
5146 .IP "\fB\-fsanitize=integer\-divide\-by\-zero\fR" 4
5147 .IX Item "-fsanitize=integer-divide-by-zero"
5148 Detect integer division by zero as well as \f(CW\*(C`INT_MIN / \-1\*(C'\fR division.
5149 .IP "\fB\-fsanitize=unreachable\fR" 4
5150 .IX Item "-fsanitize=unreachable"
5151 With this option, the compiler turns the \f(CW\*(C`_\|_builtin_unreachable\*(C'\fR
5152 call into a diagnostics message call instead.  When reaching the
5153 \&\f(CW\*(C`_\|_builtin_unreachable\*(C'\fR call, the behavior is undefined.
5154 .IP "\fB\-fsanitize=vla\-bound\fR" 4
5155 .IX Item "-fsanitize=vla-bound"
5156 This option instructs the compiler to check that the size of a variable
5157 length array is positive.
5158 .IP "\fB\-fsanitize=null\fR" 4
5159 .IX Item "-fsanitize=null"
5160 This option enables pointer checking.  Particularly, the application
5161 built with this option turned on will issue an error message when it
5162 tries to dereference a \s-1NULL\s0 pointer, or if a reference (possibly an
5163 rvalue reference) is bound to a \s-1NULL\s0 pointer, or if a method is invoked
5164 on an object pointed by a \s-1NULL\s0 pointer.
5165 .IP "\fB\-fsanitize=return\fR" 4
5166 .IX Item "-fsanitize=return"
5167 This option enables return statement checking.  Programs
5168 built with this option turned on will issue an error message
5169 when the end of a non-void function is reached without actually
5170 returning a value.  This option works in \*(C+ only.
5171 .IP "\fB\-fsanitize=signed\-integer\-overflow\fR" 4
5172 .IX Item "-fsanitize=signed-integer-overflow"
5173 This option enables signed integer overflow checking.  We check that
5174 the result of \f(CW\*(C`+\*(C'\fR, \f(CW\*(C`*\*(C'\fR, and both unary and binary \f(CW\*(C`\-\*(C'\fR
5175 does not overflow in the signed arithmetics.  Note, integer promotion
5176 rules must be taken into account.  That is, the following is not an
5177 overflow:
5178 .Sp
5179 .Vb 2
5180 \&        signed char a = SCHAR_MAX;
5181 \&        a++;
5182 .Ve
5183 .IP "\fB\-fsanitize=bounds\fR" 4
5184 .IX Item "-fsanitize=bounds"
5185 This option enables instrumentation of array bounds.  Various out of bounds
5186 accesses are detected.  Flexible array members, flexible array member-like
5187 arrays, and initializers of variables with static storage are not instrumented.
5188 .IP "\fB\-fsanitize=alignment\fR" 4
5189 .IX Item "-fsanitize=alignment"
5190 This option enables checking of alignment of pointers when they are
5191 dereferenced, or when a reference is bound to insufficiently aligned target,
5192 or when a method or constructor is invoked on insufficiently aligned object.
5193 .IP "\fB\-fsanitize=object\-size\fR" 4
5194 .IX Item "-fsanitize=object-size"
5195 This option enables instrumentation of memory references using the
5196 \&\f(CW\*(C`_\|_builtin_object_size\*(C'\fR function.  Various out of bounds pointer
5197 accesses are detected.
5198 .IP "\fB\-fsanitize=float\-divide\-by\-zero\fR" 4
5199 .IX Item "-fsanitize=float-divide-by-zero"
5200 Detect floating-point division by zero.  Unlike other similar options,
5201 \&\fB\-fsanitize=float\-divide\-by\-zero\fR is not enabled by
5202 \&\fB\-fsanitize=undefined\fR, since floating-point division by zero can
5203 be a legitimate way of obtaining infinities and NaNs.
5204 .IP "\fB\-fsanitize=float\-cast\-overflow\fR" 4
5205 .IX Item "-fsanitize=float-cast-overflow"
5206 This option enables floating-point type to integer conversion checking.
5207 We check that the result of the conversion does not overflow.
5208 Unlike other similar options, \fB\-fsanitize=float\-cast\-overflow\fR is
5209 not enabled by \fB\-fsanitize=undefined\fR.
5210 This option does not work well with \f(CW\*(C`FE_INVALID\*(C'\fR exceptions enabled.
5211 .IP "\fB\-fsanitize=nonnull\-attribute\fR" 4
5212 .IX Item "-fsanitize=nonnull-attribute"
5213 This option enables instrumentation of calls, checking whether null values
5214 are not passed to arguments marked as requiring a non-null value by the
5215 \&\f(CW\*(C`nonnull\*(C'\fR function attribute.
5216 .IP "\fB\-fsanitize=returns\-nonnull\-attribute\fR" 4
5217 .IX Item "-fsanitize=returns-nonnull-attribute"
5218 This option enables instrumentation of return statements in functions
5219 marked with \f(CW\*(C`returns_nonnull\*(C'\fR function attribute, to detect returning
5220 of null values from such functions.
5221 .IP "\fB\-fsanitize=bool\fR" 4
5222 .IX Item "-fsanitize=bool"
5223 This option enables instrumentation of loads from bool.  If a value other
5224 than 0/1 is loaded, a run-time error is issued.
5225 .IP "\fB\-fsanitize=enum\fR" 4
5226 .IX Item "-fsanitize=enum"
5227 This option enables instrumentation of loads from an enum type.  If
5228 a value outside the range of values for the enum type is loaded,
5229 a run-time error is issued.
5230 .IP "\fB\-fsanitize=vptr\fR" 4
5231 .IX Item "-fsanitize=vptr"
5232 This option enables instrumentation of \*(C+ member function calls, member
5233 accesses and some conversions between pointers to base and derived classes,
5234 to verify the referenced object has the correct dynamic type.
5235 .RE
5236 .RS 4
5237 .Sp
5238 While \fB\-ftrapv\fR causes traps for signed overflows to be emitted,
5239 \&\fB\-fsanitize=undefined\fR gives a diagnostic message.
5240 This currently works only for the C family of languages.
5241 .RE
5242 .IP "\fB\-fno\-sanitize=all\fR" 4
5243 .IX Item "-fno-sanitize=all"
5244 This option disables all previously enabled sanitizers.
5245 \&\fB\-fsanitize=all\fR is not allowed, as some sanitizers cannot be used
5246 together.
5247 .IP "\fB\-fasan\-shadow\-offset=\fR\fInumber\fR" 4
5248 .IX Item "-fasan-shadow-offset=number"
5249 This option forces \s-1GCC\s0 to use custom shadow offset in AddressSanitizer checks.
5250 It is useful for experimenting with different shadow memory layouts in
5251 Kernel AddressSanitizer.
5252 .IP "\fB\-fsanitize\-recover\fR[\fB=\fR\fIopts\fR]" 4
5253 .IX Item "-fsanitize-recover[=opts]"
5254 \&\fB\-fsanitize\-recover=\fR controls error recovery mode for sanitizers
5255 mentioned in comma-separated list of \fIopts\fR.  Enabling this option
5256 for a sanitizer component causes it to attempt to continue
5257 running the program as if no error happened.  This means multiple
5258 runtime errors can be reported in a single program run, and the exit
5259 code of the program may indicate success even when errors
5260 have been reported.  The \fB\-fno\-sanitize\-recover=\fR option
5261 can be used to alter
5262 this behavior: only the first detected error is reported
5263 and program then exits with a non-zero exit code.
5264 .Sp
5265 Currently this feature only works for \fB\-fsanitize=undefined\fR (and its suboptions
5266 except for \fB\-fsanitize=unreachable\fR and \fB\-fsanitize=return\fR),
5267 \&\fB\-fsanitize=float\-cast\-overflow\fR, \fB\-fsanitize=float\-divide\-by\-zero\fR and
5268 \&\fB\-fsanitize=kernel\-address\fR.  For these sanitizers error recovery is turned on by default.
5269 \&\fB\-fsanitize\-recover=all\fR and \fB\-fno\-sanitize\-recover=all\fR is also
5270 accepted, the former enables recovery for all sanitizers that support it,
5271 the latter disables recovery for all sanitizers that support it.
5272 .Sp
5273 Syntax without explicit \fIopts\fR parameter is deprecated.  It is equivalent to
5274 .Sp
5275 .Vb 1
5276 \&        \-fsanitize\-recover=undefined,float\-cast\-overflow,float\-divide\-by\-zero
5277 .Ve
5278 .Sp
5279 Similarly \fB\-fno\-sanitize\-recover\fR is equivalent to
5280 .Sp
5281 .Vb 1
5282 \&        \-fno\-sanitize\-recover=undefined,float\-cast\-overflow,float\-divide\-by\-zero
5283 .Ve
5284 .IP "\fB\-fsanitize\-undefined\-trap\-on\-error\fR" 4
5285 .IX Item "-fsanitize-undefined-trap-on-error"
5286 The \fB\-fsanitize\-undefined\-trap\-on\-error\fR option instructs the compiler to
5287 report undefined behavior using \f(CW\*(C`_\|_builtin_trap\*(C'\fR rather than
5288 a \f(CW\*(C`libubsan\*(C'\fR library routine.  The advantage of this is that the
5289 \&\f(CW\*(C`libubsan\*(C'\fR library is not needed and is not linked in, so this
5290 is usable even in freestanding environments.
5291 .IP "\fB\-fcheck\-pointer\-bounds\fR" 4
5292 .IX Item "-fcheck-pointer-bounds"
5293 Enable Pointer Bounds Checker instrumentation.  Each memory reference
5294 is instrumented with checks of the pointer used for memory access against
5295 bounds associated with that pointer.
5296 .Sp
5297 Currently there
5298 is only an implementation for Intel \s-1MPX\s0 available, thus x86 target
5299 and \fB\-mmpx\fR are required to enable this feature.  
5300 MPX-based instrumentation requires
5301 a runtime library to enable \s-1MPX\s0 in hardware and handle bounds
5302 violation signals.  By default when \fB\-fcheck\-pointer\-bounds\fR
5303 and \fB\-mmpx\fR options are used to link a program, the \s-1GCC\s0 driver
5304 links against the \fIlibmpx\fR runtime library and \fIlibmpxwrappers\fR
5305 library.  It also passes '\-z bndplt' to a linker in case it supports this
5306 option (which is checked on libmpx configuration).  Note that old versions
5307 of linker may ignore option.  Gold linker doesn't support '\-z bndplt'
5308 option.  With no '\-z bndplt' support in linker all calls to dynamic libraries
5309 lose passed bounds reducing overall protection level.  It's highly
5310 recommended to use linker with '\-z bndplt' support.  In case such linker
5311 is not available it is adviced to always use \fB\-static\-libmpxwrappers\fR
5312 for better protection level or use \fB\-static\fR to completely avoid
5313 external calls to dynamic libraries.  MPX-based instrumentation
5314 may be used for debugging and also may be included in production code
5315 to increase program security.  Depending on usage, you may
5316 have different requirements for the runtime library.  The current version
5317 of the \s-1MPX\s0 runtime library is more oriented for use as a debugging
5318 tool.  \s-1MPX\s0 runtime library usage implies \fB\-lpthread\fR.  See
5319 also \fB\-static\-libmpx\fR.  The runtime library  behavior can be
5320 influenced using various \fBCHKP_RT_*\fR environment variables.  See
5321 <\fBhttps://gcc.gnu.org/wiki/Intel%20MPX%20support%20in%20the%20GCC%20compiler\fR>
5322 for more details.
5323 .Sp
5324 Generated instrumentation may be controlled by various
5325 \&\fB\-fchkp\-*\fR options and by the \f(CW\*(C`bnd_variable_size\*(C'\fR
5326 structure field attribute and
5327 \&\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
5328 functions for controlling the Pointer Bounds Checker.
5329 .IP "\fB\-fchkp\-check\-incomplete\-type\fR" 4
5330 .IX Item "-fchkp-check-incomplete-type"
5331 Generate pointer bounds checks for variables with incomplete type.
5332 Enabled by default.
5333 .IP "\fB\-fchkp\-narrow\-bounds\fR" 4
5334 .IX Item "-fchkp-narrow-bounds"
5335 Controls bounds used by Pointer Bounds Checker for pointers to object
5336 fields.  If narrowing is enabled then field bounds are used.  Otherwise
5337 object bounds are used.  See also \fB\-fchkp\-narrow\-to\-innermost\-array\fR
5338 and \fB\-fchkp\-first\-field\-has\-own\-bounds\fR.  Enabled by default.
5339 .IP "\fB\-fchkp\-first\-field\-has\-own\-bounds\fR" 4
5340 .IX Item "-fchkp-first-field-has-own-bounds"
5341 Forces Pointer Bounds Checker to use narrowed bounds for the address of the
5342 first field in the structure.  By default a pointer to the first field has
5343 the same bounds as a pointer to the whole structure.
5344 .IP "\fB\-fchkp\-narrow\-to\-innermost\-array\fR" 4
5345 .IX Item "-fchkp-narrow-to-innermost-array"
5346 Forces Pointer Bounds Checker to use bounds of the innermost arrays in
5347 case of nested static array access.  By default this option is disabled and
5348 bounds of the outermost array are used.
5349 .IP "\fB\-fchkp\-optimize\fR" 4
5350 .IX Item "-fchkp-optimize"
5351 Enables Pointer Bounds Checker optimizations.  Enabled by default at
5352 optimization levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR.
5353 .IP "\fB\-fchkp\-use\-fast\-string\-functions\fR" 4
5354 .IX Item "-fchkp-use-fast-string-functions"
5355 Enables use of \f(CW*_nobnd\fR versions of string functions (not copying bounds)
5356 by Pointer Bounds Checker.  Disabled by default.
5357 .IP "\fB\-fchkp\-use\-nochk\-string\-functions\fR" 4
5358 .IX Item "-fchkp-use-nochk-string-functions"
5359 Enables use of \f(CW*_nochk\fR versions of string functions (not checking bounds)
5360 by Pointer Bounds Checker.  Disabled by default.
5361 .IP "\fB\-fchkp\-use\-static\-bounds\fR" 4
5362 .IX Item "-fchkp-use-static-bounds"
5363 Allow Pointer Bounds Checker to generate static bounds holding
5364 bounds of static variables.  Enabled by default.
5365 .IP "\fB\-fchkp\-use\-static\-const\-bounds\fR" 4
5366 .IX Item "-fchkp-use-static-const-bounds"
5367 Use statically-initialized bounds for constant bounds instead of
5368 generating them each time they are required.  By default enabled when
5369 \&\fB\-fchkp\-use\-static\-bounds\fR is enabled.
5370 .IP "\fB\-fchkp\-treat\-zero\-dynamic\-size\-as\-infinite\fR" 4
5371 .IX Item "-fchkp-treat-zero-dynamic-size-as-infinite"
5372 With this option, objects with incomplete type whose
5373 dynamically-obtained size is zero are treated as having infinite size
5374 instead by Pointer Bounds
5375 Checker.  This option may be helpful if a program is linked with a library
5376 missing size information for some symbols.  Disabled by default.
5377 .IP "\fB\-fchkp\-check\-read\fR" 4
5378 .IX Item "-fchkp-check-read"
5379 Instructs Pointer Bounds Checker to generate checks for all read
5380 accesses to memory.  Enabled by default.
5381 .IP "\fB\-fchkp\-check\-write\fR" 4
5382 .IX Item "-fchkp-check-write"
5383 Instructs Pointer Bounds Checker to generate checks for all write
5384 accesses to memory.  Enabled by default.
5385 .IP "\fB\-fchkp\-store\-bounds\fR" 4
5386 .IX Item "-fchkp-store-bounds"
5387 Instructs Pointer Bounds Checker to generate bounds stores for
5388 pointer writes.  Enabled by default.
5389 .IP "\fB\-fchkp\-instrument\-calls\fR" 4
5390 .IX Item "-fchkp-instrument-calls"
5391 Instructs Pointer Bounds Checker to pass pointer bounds to calls.
5392 Enabled by default.
5393 .IP "\fB\-fchkp\-instrument\-marked\-only\fR" 4
5394 .IX Item "-fchkp-instrument-marked-only"
5395 Instructs Pointer Bounds Checker to instrument only functions
5396 marked with the \f(CW\*(C`bnd_instrument\*(C'\fR attribute.  Disabled by default.
5397 .IP "\fB\-fchkp\-use\-wrappers\fR" 4
5398 .IX Item "-fchkp-use-wrappers"
5399 Allows Pointer Bounds Checker to replace calls to built-in functions
5400 with calls to wrapper functions.  When \fB\-fchkp\-use\-wrappers\fR
5401 is used to link a program, the \s-1GCC\s0 driver automatically links
5402 against \fIlibmpxwrappers\fR.  See also \fB\-static\-libmpxwrappers\fR.
5403 Enabled by default.
5404 .IP "\fB\-fdump\-final\-insns\fR[\fB=\fR\fIfile\fR]" 4
5405 .IX Item "-fdump-final-insns[=file]"
5406 Dump the final internal representation (\s-1RTL\s0) to \fIfile\fR.  If the
5407 optional argument is omitted (or if \fIfile\fR is \f(CW\*(C`.\*(C'\fR), the name
5408 of the dump file is determined by appending \f(CW\*(C`.gkd\*(C'\fR to the
5409 compilation output file name.
5410 .IP "\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR]" 4
5411 .IX Item "-fcompare-debug[=opts]"
5412 If no error occurs during compilation, run the compiler a second time,
5413 adding \fIopts\fR and \fB\-fcompare\-debug\-second\fR to the arguments
5414 passed to the second compilation.  Dump the final internal
5415 representation in both compilations, and print an error if they differ.
5416 .Sp
5417 If the equal sign is omitted, the default \fB\-gtoggle\fR is used.
5418 .Sp
5419 The environment variable \fB\s-1GCC_COMPARE_DEBUG\s0\fR, if defined, non-empty
5420 and nonzero, implicitly enables \fB\-fcompare\-debug\fR.  If
5421 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR is defined to a string starting with a dash,
5422 then it is used for \fIopts\fR, otherwise the default \fB\-gtoggle\fR
5423 is used.
5424 .Sp
5425 \&\fB\-fcompare\-debug=\fR, with the equal sign but without \fIopts\fR,
5426 is equivalent to \fB\-fno\-compare\-debug\fR, which disables the dumping
5427 of the final representation and the second compilation, preventing even
5428 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR from taking effect.
5429 .Sp
5430 To verify full coverage during \fB\-fcompare\-debug\fR testing, set
5431 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR to say \fB\-fcompare\-debug\-not\-overridden\fR,
5432 which \s-1GCC\s0 rejects as an invalid option in any actual compilation
5433 (rather than preprocessing, assembly or linking).  To get just a
5434 warning, setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR to \fB\-w%n\-fcompare\-debug
5435 not overridden\fR will do.
5436 .IP "\fB\-fcompare\-debug\-second\fR" 4
5437 .IX Item "-fcompare-debug-second"
5438 This option is implicitly passed to the compiler for the second
5439 compilation requested by \fB\-fcompare\-debug\fR, along with options to
5440 silence warnings, and omitting other options that would cause
5441 side-effect compiler outputs to files or to the standard output.  Dump
5442 files and preserved temporary files are renamed so as to contain the
5443 \&\f(CW\*(C`.gk\*(C'\fR additional extension during the second compilation, to avoid
5444 overwriting those generated by the first.
5445 .Sp
5446 When this option is passed to the compiler driver, it causes the
5447 \&\fIfirst\fR compilation to be skipped, which makes it useful for little
5448 other than debugging the compiler proper.
5449 .IP "\fB\-feliminate\-dwarf2\-dups\fR" 4
5450 .IX Item "-feliminate-dwarf2-dups"
5451 Compress \s-1DWARF\s0 2 debugging information by eliminating duplicated
5452 information about each symbol.  This option only makes sense when
5453 generating \s-1DWARF\s0 2 debugging information with \fB\-gdwarf\-2\fR.
5454 .IP "\fB\-femit\-struct\-debug\-baseonly\fR" 4
5455 .IX Item "-femit-struct-debug-baseonly"
5456 Emit debug information for struct-like types
5457 only when the base name of the compilation source file
5458 matches the base name of file in which the struct is defined.
5459 .Sp
5460 This option substantially reduces the size of debugging information,
5461 but at significant potential loss in type information to the debugger.
5462 See \fB\-femit\-struct\-debug\-reduced\fR for a less aggressive option.
5463 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
5464 .Sp
5465 This option works only with \s-1DWARF\s0 2.
5466 .IP "\fB\-femit\-struct\-debug\-reduced\fR" 4
5467 .IX Item "-femit-struct-debug-reduced"
5468 Emit debug information for struct-like types
5469 only when the base name of the compilation source file
5470 matches the base name of file in which the type is defined,
5471 unless the struct is a template or defined in a system header.
5472 .Sp
5473 This option significantly reduces the size of debugging information,
5474 with some potential loss in type information to the debugger.
5475 See \fB\-femit\-struct\-debug\-baseonly\fR for a more aggressive option.
5476 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
5477 .Sp
5478 This option works only with \s-1DWARF\s0 2.
5479 .IP "\fB\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR]" 4
5480 .IX Item "-femit-struct-debug-detailed[=spec-list]"
5481 Specify the struct-like types
5482 for which the compiler generates debug information.
5483 The intent is to reduce duplicate struct debug information
5484 between different object files within the same program.
5485 .Sp
5486 This option is a detailed version of
5487 \&\fB\-femit\-struct\-debug\-reduced\fR and \fB\-femit\-struct\-debug\-baseonly\fR,
5488 which serves for most needs.
5489 .Sp
5490 A specification has the syntax[\fBdir:\fR|\fBind:\fR][\fBord:\fR|\fBgen:\fR](\fBany\fR|\fBsys\fR|\fBbase\fR|\fBnone\fR)
5491 .Sp
5492 The optional first word limits the specification to
5493 structs that are used directly (\fBdir:\fR) or used indirectly (\fBind:\fR).
5494 A struct type is used directly when it is the type of a variable, member.
5495 Indirect uses arise through pointers to structs.
5496 That is, when use of an incomplete struct is valid, the use is indirect.
5497 An example is
5498 \&\fBstruct one direct; struct two * indirect;\fR.
5499 .Sp
5500 The optional second word limits the specification to
5501 ordinary structs (\fBord:\fR) or generic structs (\fBgen:\fR).
5502 Generic structs are a bit complicated to explain.
5503 For \*(C+, these are non-explicit specializations of template classes,
5504 or non-template classes within the above.
5505 Other programming languages have generics,
5506 but \fB\-femit\-struct\-debug\-detailed\fR does not yet implement them.
5507 .Sp
5508 The third word specifies the source files for those
5509 structs for which the compiler should emit debug information.
5510 The values \fBnone\fR and \fBany\fR have the normal meaning.
5511 The value \fBbase\fR means that
5512 the base of name of the file in which the type declaration appears
5513 must match the base of the name of the main compilation file.
5514 In practice, this means that when compiling \fIfoo.c\fR, debug information
5515 is generated for types declared in that file and \fIfoo.h\fR,
5516 but not other header files.
5517 The value \fBsys\fR means those types satisfying \fBbase\fR
5518 or declared in system or compiler headers.
5519 .Sp
5520 You may need to experiment to determine the best settings for your application.
5521 .Sp
5522 The default is \fB\-femit\-struct\-debug\-detailed=all\fR.
5523 .Sp
5524 This option works only with \s-1DWARF\s0 2.
5525 .IP "\fB\-fno\-merge\-debug\-strings\fR" 4
5526 .IX Item "-fno-merge-debug-strings"
5527 Direct the linker to not merge together strings in the debugging
5528 information that are identical in different object files.  Merging is
5529 not supported by all assemblers or linkers.  Merging decreases the size
5530 of the debug information in the output file at the cost of increasing
5531 link processing time.  Merging is enabled by default.
5532 .IP "\fB\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
5533 .IX Item "-fdebug-prefix-map=old=new"
5534 When compiling files in directory \fI\fIold\fI\fR, record debugging
5535 information describing them as in \fI\fInew\fI\fR instead.
5536 .IP "\fB\-fno\-dwarf2\-cfi\-asm\fR" 4
5537 .IX Item "-fno-dwarf2-cfi-asm"
5538 Emit \s-1DWARF\s0 2 unwind info as compiler generated \f(CW\*(C`.eh_frame\*(C'\fR section
5539 instead of using \s-1GAS\s0 \f(CW\*(C`.cfi_*\*(C'\fR directives.
5540 .IP "\fB\-p\fR" 4
5541 .IX Item "-p"
5542 Generate extra code to write profile information suitable for the
5543 analysis program \fBprof\fR.  You must use this option when compiling
5544 the source files you want data about, and you must also use it when
5545 linking.
5546 .IP "\fB\-pg\fR" 4
5547 .IX Item "-pg"
5548 Generate extra code to write profile information suitable for the
5549 analysis program \fBgprof\fR.  You must use this option when compiling
5550 the source files you want data about, and you must also use it when
5551 linking.
5552 .IP "\fB\-Q\fR" 4
5553 .IX Item "-Q"
5554 Makes the compiler print out each function name as it is compiled, and
5555 print some statistics about each pass when it finishes.
5556 .IP "\fB\-ftime\-report\fR" 4
5557 .IX Item "-ftime-report"
5558 Makes the compiler print some statistics about the time consumed by each
5559 pass when it finishes.
5560 .IP "\fB\-fmem\-report\fR" 4
5561 .IX Item "-fmem-report"
5562 Makes the compiler print some statistics about permanent memory
5563 allocation when it finishes.
5564 .IP "\fB\-fmem\-report\-wpa\fR" 4
5565 .IX Item "-fmem-report-wpa"
5566 Makes the compiler print some statistics about permanent memory
5567 allocation for the \s-1WPA\s0 phase only.
5568 .IP "\fB\-fpre\-ipa\-mem\-report\fR" 4
5569 .IX Item "-fpre-ipa-mem-report"
5570 .PD 0
5571 .IP "\fB\-fpost\-ipa\-mem\-report\fR" 4
5572 .IX Item "-fpost-ipa-mem-report"
5573 .PD
5574 Makes the compiler print some statistics about permanent memory
5575 allocation before or after interprocedural optimization.
5576 .IP "\fB\-fprofile\-report\fR" 4
5577 .IX Item "-fprofile-report"
5578 Makes the compiler print some statistics about consistency of the
5579 (estimated) profile and effect of individual passes.
5580 .IP "\fB\-fstack\-usage\fR" 4
5581 .IX Item "-fstack-usage"
5582 Makes the compiler output stack usage information for the program, on a
5583 per-function basis.  The filename for the dump is made by appending
5584 \&\fI.su\fR to the \fIauxname\fR.  \fIauxname\fR is generated from the name of
5585 the output file, if explicitly specified and it is not an executable,
5586 otherwise it is the basename of the source file.  An entry is made up
5587 of three fields:
5588 .RS 4
5589 .IP "*" 4
5590 The name of the function.
5591 .IP "*" 4
5592 A number of bytes.
5593 .IP "*" 4
5594 One or more qualifiers: \f(CW\*(C`static\*(C'\fR, \f(CW\*(C`dynamic\*(C'\fR, \f(CW\*(C`bounded\*(C'\fR.
5595 .RE
5596 .RS 4
5597 .Sp
5598 The qualifier \f(CW\*(C`static\*(C'\fR means that the function manipulates the stack
5599 statically: a fixed number of bytes are allocated for the frame on function
5600 entry and released on function exit; no stack adjustments are otherwise made
5601 in the function.  The second field is this fixed number of bytes.
5602 .Sp
5603 The qualifier \f(CW\*(C`dynamic\*(C'\fR means that the function manipulates the stack
5604 dynamically: in addition to the static allocation described above, stack
5605 adjustments are made in the body of the function, for example to push/pop
5606 arguments around function calls.  If the qualifier \f(CW\*(C`bounded\*(C'\fR is also
5607 present, the amount of these adjustments is bounded at compile time and
5608 the second field is an upper bound of the total amount of stack used by
5609 the function.  If it is not present, the amount of these adjustments is
5610 not bounded at compile time and the second field only represents the
5611 bounded part.
5612 .RE
5613 .IP "\fB\-fprofile\-arcs\fR" 4
5614 .IX Item "-fprofile-arcs"
5615 Add code so that program flow \fIarcs\fR are instrumented.  During
5616 execution the program records how many times each branch and call is
5617 executed and how many times it is taken or returns.  When the compiled
5618 program exits it saves this data to a file called
5619 \&\fI\fIauxname\fI.gcda\fR for each source file.  The data may be used for
5620 profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
5621 test coverage analysis (\fB\-ftest\-coverage\fR).  Each object file's
5622 \&\fIauxname\fR is generated from the name of the output file, if
5623 explicitly specified and it is not the final executable, otherwise it is
5624 the basename of the source file.  In both cases any suffix is removed
5625 (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
5626 \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
5627 .IP "\fB\-\-coverage\fR" 4
5628 .IX Item "--coverage"
5629 This option is used to compile and link code instrumented for coverage
5630 analysis.  The option is a synonym for \fB\-fprofile\-arcs\fR
5631 \&\fB\-ftest\-coverage\fR (when compiling) and \fB\-lgcov\fR (when
5632 linking).  See the documentation for those options for more details.
5633 .RS 4
5634 .IP "*" 4
5635 Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
5636 and code generation options.  For test coverage analysis, use the
5637 additional \fB\-ftest\-coverage\fR option.  You do not need to profile
5638 every source file in a program.
5639 .IP "*" 4
5640 Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
5641 (the latter implies the former).
5642 .IP "*" 4
5643 Run the program on a representative workload to generate the arc profile
5644 information.  This may be repeated any number of times.  You can run
5645 concurrent instances of your program, and provided that the file system
5646 supports locking, the data files will be correctly updated.  Also
5647 \&\f(CW\*(C`fork\*(C'\fR calls are detected and correctly handled (double counting
5648 will not happen).
5649 .IP "*" 4
5650 For profile-directed optimizations, compile the source files again with
5651 the same optimization and code generation options plus
5652 \&\fB\-fbranch\-probabilities\fR.
5653 .IP "*" 4
5654 For test coverage analysis, use \fBgcov\fR to produce human readable
5655 information from the \fI.gcno\fR and \fI.gcda\fR files.  Refer to the
5656 \&\fBgcov\fR documentation for further information.
5657 .RE
5658 .RS 4
5659 .Sp
5660 With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
5661 creates a program flow graph, then finds a spanning tree for the graph.
5662 Only arcs that are not on the spanning tree have to be instrumented: the
5663 compiler adds code to count the number of times that these arcs are
5664 executed.  When an arc is the only exit or only entrance to a block, the
5665 instrumentation code can be added to the block; otherwise, a new basic
5666 block must be created to hold the instrumentation code.
5667 .RE
5668 .IP "\fB\-ftest\-coverage\fR" 4
5669 .IX Item "-ftest-coverage"
5670 Produce a notes file that the \fBgcov\fR code-coverage utility can use to
5671 show program coverage.  Each source file's note file is called
5672 \&\fI\fIauxname\fI.gcno\fR.  Refer to the \fB\-fprofile\-arcs\fR option
5673 above for a description of \fIauxname\fR and instructions on how to
5674 generate test coverage data.  Coverage data matches the source files
5675 more closely if you do not optimize.
5676 .IP "\fB\-fdbg\-cnt\-list\fR" 4
5677 .IX Item "-fdbg-cnt-list"
5678 Print the name and the counter upper bound for all debug counters.
5679 .IP "\fB\-fdbg\-cnt=\fR\fIcounter-value-list\fR" 4
5680 .IX Item "-fdbg-cnt=counter-value-list"
5681 Set the internal debug counter upper bound.  \fIcounter-value-list\fR
5682 is a comma-separated list of \fIname\fR:\fIvalue\fR pairs
5683 which sets the upper bound of each debug counter \fIname\fR to \fIvalue\fR.
5684 All debug counters have the initial upper bound of \f(CW\*(C`UINT_MAX\*(C'\fR;
5685 thus \f(CW\*(C`dbg_cnt\*(C'\fR returns true always unless the upper bound
5686 is set by this option.
5687 For example, with \fB\-fdbg\-cnt=dce:10,tail_call:0\fR,
5688 \&\f(CW\*(C`dbg_cnt(dce)\*(C'\fR returns true only for first 10 invocations.
5689 .IP "\fB\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR" 4
5690 .IX Item "-fenable-kind-pass"
5691 .PD 0
5692 .IP "\fB\-fdisable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
5693 .IX Item "-fdisable-kind-pass=range-list"
5694 .PD
5695 This is a set of options that are used to explicitly disable/enable
5696 optimization passes.  These options are intended for use for debugging \s-1GCC\s0.
5697 Compiler users should use regular options for enabling/disabling
5698 passes instead.
5699 .RS 4
5700 .IP "\fB\-fdisable\-ipa\-\fR\fIpass\fR" 4
5701 .IX Item "-fdisable-ipa-pass"
5702 Disable \s-1IPA\s0 pass \fIpass\fR. \fIpass\fR is the pass name.  If the same pass is
5703 statically invoked in the compiler multiple times, the pass name should be
5704 appended with a sequential number starting from 1.
5705 .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR" 4
5706 .IX Item "-fdisable-rtl-pass"
5707 .PD 0
5708 .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
5709 .IX Item "-fdisable-rtl-pass=range-list"
5710 .PD
5711 Disable \s-1RTL\s0 pass \fIpass\fR.  \fIpass\fR is the pass name.  If the same pass is
5712 statically invoked in the compiler multiple times, the pass name should be
5713 appended with a sequential number starting from 1.  \fIrange-list\fR is a 
5714 comma-separated list of function ranges or assembler names.  Each range is a number
5715 pair separated by a colon.  The range is inclusive in both ends.  If the range
5716 is trivial, the number pair can be simplified as a single number.  If the
5717 function's call graph node's \fIuid\fR falls within one of the specified ranges,
5718 the \fIpass\fR is disabled for that function.  The \fIuid\fR is shown in the
5719 function header of a dump file, and the pass names can be dumped by using
5720 option \fB\-fdump\-passes\fR.
5721 .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR" 4
5722 .IX Item "-fdisable-tree-pass"
5723 .PD 0
5724 .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
5725 .IX Item "-fdisable-tree-pass=range-list"
5726 .PD
5727 Disable tree pass \fIpass\fR.  See \fB\-fdisable\-rtl\fR for the description of
5728 option arguments.
5729 .IP "\fB\-fenable\-ipa\-\fR\fIpass\fR" 4
5730 .IX Item "-fenable-ipa-pass"
5731 Enable \s-1IPA\s0 pass \fIpass\fR.  \fIpass\fR is the pass name.  If the same pass is
5732 statically invoked in the compiler multiple times, the pass name should be
5733 appended with a sequential number starting from 1.
5734 .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR" 4
5735 .IX Item "-fenable-rtl-pass"
5736 .PD 0
5737 .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
5738 .IX Item "-fenable-rtl-pass=range-list"
5739 .PD
5740 Enable \s-1RTL\s0 pass \fIpass\fR.  See \fB\-fdisable\-rtl\fR for option argument
5741 description and examples.
5742 .IP "\fB\-fenable\-tree\-\fR\fIpass\fR" 4
5743 .IX Item "-fenable-tree-pass"
5744 .PD 0
5745 .IP "\fB\-fenable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
5746 .IX Item "-fenable-tree-pass=range-list"
5747 .PD
5748 Enable tree pass \fIpass\fR.  See \fB\-fdisable\-rtl\fR for the description
5749 of option arguments.
5750 .RE
5751 .RS 4
5752 .Sp
5753 Here are some examples showing uses of these options.
5754 .Sp
5755 .Vb 10
5756 \&        # disable ccp1 for all functions
5757 \&           \-fdisable\-tree\-ccp1
5758 \&        # disable complete unroll for function whose cgraph node uid is 1
5759 \&           \-fenable\-tree\-cunroll=1
5760 \&        # disable gcse2 for functions at the following ranges [1,1],
5761 \&        # [300,400], and [400,1000]
5762 \&        # disable gcse2 for functions foo and foo2
5763 \&           \-fdisable\-rtl\-gcse2=foo,foo2
5764 \&        # disable early inlining
5765 \&           \-fdisable\-tree\-einline
5766 \&        # disable ipa inlining
5767 \&           \-fdisable\-ipa\-inline
5768 \&        # enable tree full unroll
5769 \&           \-fenable\-tree\-unroll
5770 .Ve
5771 .RE
5772 .IP "\fB\-d\fR\fIletters\fR" 4
5773 .IX Item "-dletters"
5774 .PD 0
5775 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
5776 .IX Item "-fdump-rtl-pass"
5777 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR\fB=\fR\fIfilename\fR" 4
5778 .IX Item "-fdump-rtl-pass=filename"
5779 .PD
5780 Says to make debugging dumps during compilation at times specified by
5781 \&\fIletters\fR.  This is used for debugging the RTL-based passes of the
5782 compiler.  The file names for most of the dumps are made by appending
5783 a pass number and a word to the \fIdumpname\fR, and the files are
5784 created in the directory of the output file. In case of
5785 \&\fB=\fR\fIfilename\fR option, the dump is output on the given file
5786 instead of the pass numbered dump files. Note that the pass number is
5787 computed statically as passes get registered into the pass manager.
5788 Thus the numbering is not related to the dynamic order of execution of
5789 passes.  In particular, a pass installed by a plugin could have a
5790 number over 200 even if it executed quite early.  \fIdumpname\fR is
5791 generated from the name of the output file, if explicitly specified
5792 and it is not an executable, otherwise it is the basename of the
5793 source file. These switches may have different effects when
5794 \&\fB\-E\fR is used for preprocessing.
5795 .Sp
5796 Debug dumps can be enabled with a \fB\-fdump\-rtl\fR switch or some
5797 \&\fB\-d\fR option \fIletters\fR.  Here are the possible
5798 letters for use in \fIpass\fR and \fIletters\fR, and their meanings:
5799 .RS 4
5800 .IP "\fB\-fdump\-rtl\-alignments\fR" 4
5801 .IX Item "-fdump-rtl-alignments"
5802 Dump after branch alignments have been computed.
5803 .IP "\fB\-fdump\-rtl\-asmcons\fR" 4
5804 .IX Item "-fdump-rtl-asmcons"
5805 Dump after fixing rtl statements that have unsatisfied in/out constraints.
5806 .IP "\fB\-fdump\-rtl\-auto_inc_dec\fR" 4
5807 .IX Item "-fdump-rtl-auto_inc_dec"
5808 Dump after auto-inc-dec discovery.  This pass is only run on
5809 architectures that have auto inc or auto dec instructions.
5810 .IP "\fB\-fdump\-rtl\-barriers\fR" 4
5811 .IX Item "-fdump-rtl-barriers"
5812 Dump after cleaning up the barrier instructions.
5813 .IP "\fB\-fdump\-rtl\-bbpart\fR" 4
5814 .IX Item "-fdump-rtl-bbpart"
5815 Dump after partitioning hot and cold basic blocks.
5816 .IP "\fB\-fdump\-rtl\-bbro\fR" 4
5817 .IX Item "-fdump-rtl-bbro"
5818 Dump after block reordering.
5819 .IP "\fB\-fdump\-rtl\-btl1\fR" 4
5820 .IX Item "-fdump-rtl-btl1"
5821 .PD 0
5822 .IP "\fB\-fdump\-rtl\-btl2\fR" 4
5823 .IX Item "-fdump-rtl-btl2"
5824 .PD
5825 \&\fB\-fdump\-rtl\-btl1\fR and \fB\-fdump\-rtl\-btl2\fR enable dumping
5826 after the two branch
5827 target load optimization passes.
5828 .IP "\fB\-fdump\-rtl\-bypass\fR" 4
5829 .IX Item "-fdump-rtl-bypass"
5830 Dump after jump bypassing and control flow optimizations.
5831 .IP "\fB\-fdump\-rtl\-combine\fR" 4
5832 .IX Item "-fdump-rtl-combine"
5833 Dump after the \s-1RTL\s0 instruction combination pass.
5834 .IP "\fB\-fdump\-rtl\-compgotos\fR" 4
5835 .IX Item "-fdump-rtl-compgotos"
5836 Dump after duplicating the computed gotos.
5837 .IP "\fB\-fdump\-rtl\-ce1\fR" 4
5838 .IX Item "-fdump-rtl-ce1"
5839 .PD 0
5840 .IP "\fB\-fdump\-rtl\-ce2\fR" 4
5841 .IX Item "-fdump-rtl-ce2"
5842 .IP "\fB\-fdump\-rtl\-ce3\fR" 4
5843 .IX Item "-fdump-rtl-ce3"
5844 .PD
5845 \&\fB\-fdump\-rtl\-ce1\fR, \fB\-fdump\-rtl\-ce2\fR, and
5846 \&\fB\-fdump\-rtl\-ce3\fR enable dumping after the three
5847 if conversion passes.
5848 .IP "\fB\-fdump\-rtl\-cprop_hardreg\fR" 4
5849 .IX Item "-fdump-rtl-cprop_hardreg"
5850 Dump after hard register copy propagation.
5851 .IP "\fB\-fdump\-rtl\-csa\fR" 4
5852 .IX Item "-fdump-rtl-csa"
5853 Dump after combining stack adjustments.
5854 .IP "\fB\-fdump\-rtl\-cse1\fR" 4
5855 .IX Item "-fdump-rtl-cse1"
5856 .PD 0
5857 .IP "\fB\-fdump\-rtl\-cse2\fR" 4
5858 .IX Item "-fdump-rtl-cse2"
5859 .PD
5860 \&\fB\-fdump\-rtl\-cse1\fR and \fB\-fdump\-rtl\-cse2\fR enable dumping after
5861 the two common subexpression elimination passes.
5862 .IP "\fB\-fdump\-rtl\-dce\fR" 4
5863 .IX Item "-fdump-rtl-dce"
5864 Dump after the standalone dead code elimination passes.
5865 .IP "\fB\-fdump\-rtl\-dbr\fR" 4
5866 .IX Item "-fdump-rtl-dbr"
5867 Dump after delayed branch scheduling.
5868 .IP "\fB\-fdump\-rtl\-dce1\fR" 4
5869 .IX Item "-fdump-rtl-dce1"
5870 .PD 0
5871 .IP "\fB\-fdump\-rtl\-dce2\fR" 4
5872 .IX Item "-fdump-rtl-dce2"
5873 .PD
5874 \&\fB\-fdump\-rtl\-dce1\fR and \fB\-fdump\-rtl\-dce2\fR enable dumping after
5875 the two dead store elimination passes.
5876 .IP "\fB\-fdump\-rtl\-eh\fR" 4
5877 .IX Item "-fdump-rtl-eh"
5878 Dump after finalization of \s-1EH\s0 handling code.
5879 .IP "\fB\-fdump\-rtl\-eh_ranges\fR" 4
5880 .IX Item "-fdump-rtl-eh_ranges"
5881 Dump after conversion of \s-1EH\s0 handling range regions.
5882 .IP "\fB\-fdump\-rtl\-expand\fR" 4
5883 .IX Item "-fdump-rtl-expand"
5884 Dump after \s-1RTL\s0 generation.
5885 .IP "\fB\-fdump\-rtl\-fwprop1\fR" 4
5886 .IX Item "-fdump-rtl-fwprop1"
5887 .PD 0
5888 .IP "\fB\-fdump\-rtl\-fwprop2\fR" 4
5889 .IX Item "-fdump-rtl-fwprop2"
5890 .PD
5891 \&\fB\-fdump\-rtl\-fwprop1\fR and \fB\-fdump\-rtl\-fwprop2\fR enable
5892 dumping after the two forward propagation passes.
5893 .IP "\fB\-fdump\-rtl\-gcse1\fR" 4
5894 .IX Item "-fdump-rtl-gcse1"
5895 .PD 0
5896 .IP "\fB\-fdump\-rtl\-gcse2\fR" 4
5897 .IX Item "-fdump-rtl-gcse2"
5898 .PD
5899 \&\fB\-fdump\-rtl\-gcse1\fR and \fB\-fdump\-rtl\-gcse2\fR enable dumping
5900 after global common subexpression elimination.
5901 .IP "\fB\-fdump\-rtl\-init\-regs\fR" 4
5902 .IX Item "-fdump-rtl-init-regs"
5903 Dump after the initialization of the registers.
5904 .IP "\fB\-fdump\-rtl\-initvals\fR" 4
5905 .IX Item "-fdump-rtl-initvals"
5906 Dump after the computation of the initial value sets.
5907 .IP "\fB\-fdump\-rtl\-into_cfglayout\fR" 4
5908 .IX Item "-fdump-rtl-into_cfglayout"
5909 Dump after converting to cfglayout mode.
5910 .IP "\fB\-fdump\-rtl\-ira\fR" 4
5911 .IX Item "-fdump-rtl-ira"
5912 Dump after iterated register allocation.
5913 .IP "\fB\-fdump\-rtl\-jump\fR" 4
5914 .IX Item "-fdump-rtl-jump"
5915 Dump after the second jump optimization.
5916 .IP "\fB\-fdump\-rtl\-loop2\fR" 4
5917 .IX Item "-fdump-rtl-loop2"
5918 \&\fB\-fdump\-rtl\-loop2\fR enables dumping after the rtl
5919 loop optimization passes.
5920 .IP "\fB\-fdump\-rtl\-mach\fR" 4
5921 .IX Item "-fdump-rtl-mach"
5922 Dump after performing the machine dependent reorganization pass, if that
5923 pass exists.
5924 .IP "\fB\-fdump\-rtl\-mode_sw\fR" 4
5925 .IX Item "-fdump-rtl-mode_sw"
5926 Dump after removing redundant mode switches.
5927 .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
5928 .IX Item "-fdump-rtl-rnreg"
5929 Dump after register renumbering.
5930 .IP "\fB\-fdump\-rtl\-outof_cfglayout\fR" 4
5931 .IX Item "-fdump-rtl-outof_cfglayout"
5932 Dump after converting from cfglayout mode.
5933 .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
5934 .IX Item "-fdump-rtl-peephole2"
5935 Dump after the peephole pass.
5936 .IP "\fB\-fdump\-rtl\-postreload\fR" 4
5937 .IX Item "-fdump-rtl-postreload"
5938 Dump after post-reload optimizations.
5939 .IP "\fB\-fdump\-rtl\-pro_and_epilogue\fR" 4
5940 .IX Item "-fdump-rtl-pro_and_epilogue"
5941 Dump after generating the function prologues and epilogues.
5942 .IP "\fB\-fdump\-rtl\-sched1\fR" 4
5943 .IX Item "-fdump-rtl-sched1"
5944 .PD 0
5945 .IP "\fB\-fdump\-rtl\-sched2\fR" 4
5946 .IX Item "-fdump-rtl-sched2"
5947 .PD
5948 \&\fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR enable dumping
5949 after the basic block scheduling passes.
5950 .IP "\fB\-fdump\-rtl\-ree\fR" 4
5951 .IX Item "-fdump-rtl-ree"
5952 Dump after sign/zero extension elimination.
5953 .IP "\fB\-fdump\-rtl\-seqabstr\fR" 4
5954 .IX Item "-fdump-rtl-seqabstr"
5955 Dump after common sequence discovery.
5956 .IP "\fB\-fdump\-rtl\-shorten\fR" 4
5957 .IX Item "-fdump-rtl-shorten"
5958 Dump after shortening branches.
5959 .IP "\fB\-fdump\-rtl\-sibling\fR" 4
5960 .IX Item "-fdump-rtl-sibling"
5961 Dump after sibling call optimizations.
5962 .IP "\fB\-fdump\-rtl\-split1\fR" 4
5963 .IX Item "-fdump-rtl-split1"
5964 .PD 0
5965 .IP "\fB\-fdump\-rtl\-split2\fR" 4
5966 .IX Item "-fdump-rtl-split2"
5967 .IP "\fB\-fdump\-rtl\-split3\fR" 4
5968 .IX Item "-fdump-rtl-split3"
5969 .IP "\fB\-fdump\-rtl\-split4\fR" 4
5970 .IX Item "-fdump-rtl-split4"
5971 .IP "\fB\-fdump\-rtl\-split5\fR" 4
5972 .IX Item "-fdump-rtl-split5"
5973 .PD
5974 These options enable dumping after five rounds of
5975 instruction splitting.
5976 .IP "\fB\-fdump\-rtl\-sms\fR" 4
5977 .IX Item "-fdump-rtl-sms"
5978 Dump after modulo scheduling.  This pass is only run on some
5979 architectures.
5980 .IP "\fB\-fdump\-rtl\-stack\fR" 4
5981 .IX Item "-fdump-rtl-stack"
5982 Dump after conversion from \s-1GCC\s0's \*(L"flat register file\*(R" registers to the
5983 x87's stack-like registers.  This pass is only run on x86 variants.
5984 .IP "\fB\-fdump\-rtl\-subreg1\fR" 4
5985 .IX Item "-fdump-rtl-subreg1"
5986 .PD 0
5987 .IP "\fB\-fdump\-rtl\-subreg2\fR" 4
5988 .IX Item "-fdump-rtl-subreg2"
5989 .PD
5990 \&\fB\-fdump\-rtl\-subreg1\fR and \fB\-fdump\-rtl\-subreg2\fR enable dumping after
5991 the two subreg expansion passes.
5992 .IP "\fB\-fdump\-rtl\-unshare\fR" 4
5993 .IX Item "-fdump-rtl-unshare"
5994 Dump after all rtl has been unshared.
5995 .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
5996 .IX Item "-fdump-rtl-vartrack"
5997 Dump after variable tracking.
5998 .IP "\fB\-fdump\-rtl\-vregs\fR" 4
5999 .IX Item "-fdump-rtl-vregs"
6000 Dump after converting virtual registers to hard registers.
6001 .IP "\fB\-fdump\-rtl\-web\fR" 4
6002 .IX Item "-fdump-rtl-web"
6003 Dump after live range splitting.
6004 .IP "\fB\-fdump\-rtl\-regclass\fR" 4
6005 .IX Item "-fdump-rtl-regclass"
6006 .PD 0
6007 .IP "\fB\-fdump\-rtl\-subregs_of_mode_init\fR" 4
6008 .IX Item "-fdump-rtl-subregs_of_mode_init"
6009 .IP "\fB\-fdump\-rtl\-subregs_of_mode_finish\fR" 4
6010 .IX Item "-fdump-rtl-subregs_of_mode_finish"
6011 .IP "\fB\-fdump\-rtl\-dfinit\fR" 4
6012 .IX Item "-fdump-rtl-dfinit"
6013 .IP "\fB\-fdump\-rtl\-dfinish\fR" 4
6014 .IX Item "-fdump-rtl-dfinish"
6015 .PD
6016 These dumps are defined but always produce empty files.
6017 .IP "\fB\-da\fR" 4
6018 .IX Item "-da"
6019 .PD 0
6020 .IP "\fB\-fdump\-rtl\-all\fR" 4
6021 .IX Item "-fdump-rtl-all"
6022 .PD
6023 Produce all the dumps listed above.
6024 .IP "\fB\-dA\fR" 4
6025 .IX Item "-dA"
6026 Annotate the assembler output with miscellaneous debugging information.
6027 .IP "\fB\-dD\fR" 4
6028 .IX Item "-dD"
6029 Dump all macro definitions, at the end of preprocessing, in addition to
6030 normal output.
6031 .IP "\fB\-dH\fR" 4
6032 .IX Item "-dH"
6033 Produce a core dump whenever an error occurs.
6034 .IP "\fB\-dp\fR" 4
6035 .IX Item "-dp"
6036 Annotate the assembler output with a comment indicating which
6037 pattern and alternative is used.  The length of each instruction is
6038 also printed.
6039 .IP "\fB\-dP\fR" 4
6040 .IX Item "-dP"
6041 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
6042 Also turns on \fB\-dp\fR annotation.
6043 .IP "\fB\-dx\fR" 4
6044 .IX Item "-dx"
6045 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
6046 with \fB\-fdump\-rtl\-expand\fR.
6047 .RE
6048 .RS 4
6049 .RE
6050 .IP "\fB\-fdump\-noaddr\fR" 4
6051 .IX Item "-fdump-noaddr"
6052 When doing debugging dumps, suppress address output.  This makes it more
6053 feasible to use diff on debugging dumps for compiler invocations with
6054 different compiler binaries and/or different
6055 text / bss / data / heap / stack / dso start locations.
6056 .IP "\fB\-freport\-bug\fR" 4
6057 .IX Item "-freport-bug"
6058 Collect and dump debug information into temporary file if \s-1ICE\s0 in C/\*(C+
6059 compiler occured.
6060 .IP "\fB\-fdump\-unnumbered\fR" 4
6061 .IX Item "-fdump-unnumbered"
6062 When doing debugging dumps, suppress instruction numbers and address output.
6063 This makes it more feasible to use diff on debugging dumps for compiler
6064 invocations with different options, in particular with and without
6065 \&\fB\-g\fR.
6066 .IP "\fB\-fdump\-unnumbered\-links\fR" 4
6067 .IX Item "-fdump-unnumbered-links"
6068 When doing debugging dumps (see \fB\-d\fR option above), suppress
6069 instruction numbers for the links to the previous and next instructions
6070 in a sequence.
6071 .IP "\fB\-fdump\-translation\-unit\fR (\*(C+ only)" 4
6072 .IX Item "-fdump-translation-unit ( only)"
6073 .PD 0
6074 .IP "\fB\-fdump\-translation\-unit\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
6075 .IX Item "-fdump-translation-unit-options ( only)"
6076 .PD
6077 Dump a representation of the tree structure for the entire translation
6078 unit to a file.  The file name is made by appending \fI.tu\fR to the
6079 source file name, and the file is created in the same directory as the
6080 output file.  If the \fB\-\fR\fIoptions\fR form is used, \fIoptions\fR
6081 controls the details of the dump as described for the
6082 \&\fB\-fdump\-tree\fR options.
6083 .IP "\fB\-fdump\-class\-hierarchy\fR (\*(C+ only)" 4
6084 .IX Item "-fdump-class-hierarchy ( only)"
6085 .PD 0
6086 .IP "\fB\-fdump\-class\-hierarchy\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
6087 .IX Item "-fdump-class-hierarchy-options ( only)"
6088 .PD
6089 Dump a representation of each class's hierarchy and virtual function
6090 table layout to a file.  The file name is made by appending
6091 \&\fI.class\fR to the source file name, and the file is created in the
6092 same directory as the output file.  If the \fB\-\fR\fIoptions\fR form
6093 is used, \fIoptions\fR controls the details of the dump as described
6094 for the \fB\-fdump\-tree\fR options.
6095 .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
6096 .IX Item "-fdump-ipa-switch"
6097 Control the dumping at various stages of inter-procedural analysis
6098 language tree to a file.  The file name is generated by appending a
6099 switch specific suffix to the source file name, and the file is created
6100 in the same directory as the output file.  The following dumps are
6101 possible:
6102 .RS 4
6103 .IP "\fBall\fR" 4
6104 .IX Item "all"
6105 Enables all inter-procedural analysis dumps.
6106 .IP "\fBcgraph\fR" 4
6107 .IX Item "cgraph"
6108 Dumps information about call-graph optimization, unused function removal,
6109 and inlining decisions.
6110 .IP "\fBinline\fR" 4
6111 .IX Item "inline"
6112 Dump after function inlining.
6113 .RE
6114 .RS 4
6115 .RE
6116 .IP "\fB\-fdump\-passes\fR" 4
6117 .IX Item "-fdump-passes"
6118 Dump the list of optimization passes that are turned on and off by
6119 the current command-line options.
6120 .IP "\fB\-fdump\-statistics\-\fR\fIoption\fR" 4
6121 .IX Item "-fdump-statistics-option"
6122 Enable and control dumping of pass statistics in a separate file.  The
6123 file name is generated by appending a suffix ending in
6124 \&\fB.statistics\fR to the source file name, and the file is created in
6125 the same directory as the output file.  If the \fB\-\fR\fIoption\fR
6126 form is used, \fB\-stats\fR causes counters to be summed over the
6127 whole compilation unit while \fB\-details\fR dumps every event as
6128 the passes generate them.  The default with no option is to sum
6129 counters for each function compiled.
6130 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR" 4
6131 .IX Item "-fdump-tree-switch"
6132 .PD 0
6133 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
6134 .IX Item "-fdump-tree-switch-options"
6135 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
6136 .IX Item "-fdump-tree-switch-options=filename"
6137 .PD
6138 Control the dumping at various stages of processing the intermediate
6139 language tree to a file.  The file name is generated by appending a
6140 switch-specific suffix to the source file name, and the file is
6141 created in the same directory as the output file. In case of
6142 \&\fB=\fR\fIfilename\fR option, the dump is output on the given file
6143 instead of the auto named dump files.  If the \fB\-\fR\fIoptions\fR
6144 form is used, \fIoptions\fR is a list of \fB\-\fR separated options
6145 which control the details of the dump.  Not all options are applicable
6146 to all dumps; those that are not meaningful are ignored.  The
6147 following options are available
6148 .RS 4
6149 .IP "\fBaddress\fR" 4
6150 .IX Item "address"
6151 Print the address of each node.  Usually this is not meaningful as it
6152 changes according to the environment and source file.  Its primary use
6153 is for tying up a dump file with a debug environment.
6154 .IP "\fBasmname\fR" 4
6155 .IX Item "asmname"
6156 If \f(CW\*(C`DECL_ASSEMBLER_NAME\*(C'\fR has been set for a given decl, use that
6157 in the dump instead of \f(CW\*(C`DECL_NAME\*(C'\fR.  Its primary use is ease of
6158 use working backward from mangled names in the assembly file.
6159 .IP "\fBslim\fR" 4
6160 .IX Item "slim"
6161 When dumping front-end intermediate representations, inhibit dumping
6162 of members of a scope or body of a function merely because that scope
6163 has been reached.  Only dump such items when they are directly reachable
6164 by some other path.
6165 .Sp
6166 When dumping pretty-printed trees, this option inhibits dumping the
6167 bodies of control structures.
6168 .Sp
6169 When dumping \s-1RTL\s0, print the \s-1RTL\s0 in slim (condensed) form instead of
6170 the default LISP-like representation.
6171 .IP "\fBraw\fR" 4
6172 .IX Item "raw"
6173 Print a raw representation of the tree.  By default, trees are
6174 pretty-printed into a C\-like representation.
6175 .IP "\fBdetails\fR" 4
6176 .IX Item "details"
6177 Enable more detailed dumps (not honored by every dump option). Also
6178 include information from the optimization passes.
6179 .IP "\fBstats\fR" 4
6180 .IX Item "stats"
6181 Enable dumping various statistics about the pass (not honored by every dump
6182 option).
6183 .IP "\fBblocks\fR" 4
6184 .IX Item "blocks"
6185 Enable showing basic block boundaries (disabled in raw dumps).
6186 .IP "\fBgraph\fR" 4
6187 .IX Item "graph"
6188 For each of the other indicated dump files (\fB\-fdump\-rtl\-\fR\fIpass\fR),
6189 dump a representation of the control flow graph suitable for viewing with
6190 GraphViz to \fI\fIfile\fI.\fIpassid\fI.\fIpass\fI.dot\fR.  Each function in
6191 the file is pretty-printed as a subgraph, so that GraphViz can render them
6192 all in a single plot.
6193 .Sp
6194 This option currently only works for \s-1RTL\s0 dumps, and the \s-1RTL\s0 is always
6195 dumped in slim form.
6196 .IP "\fBvops\fR" 4
6197 .IX Item "vops"
6198 Enable showing virtual operands for every statement.
6199 .IP "\fBlineno\fR" 4
6200 .IX Item "lineno"
6201 Enable showing line numbers for statements.
6202 .IP "\fBuid\fR" 4
6203 .IX Item "uid"
6204 Enable showing the unique \s-1ID\s0 (\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
6205 .IP "\fBverbose\fR" 4
6206 .IX Item "verbose"
6207 Enable showing the tree dump for each statement.
6208 .IP "\fBeh\fR" 4
6209 .IX Item "eh"
6210 Enable showing the \s-1EH\s0 region number holding each statement.
6211 .IP "\fBscev\fR" 4
6212 .IX Item "scev"
6213 Enable showing scalar evolution analysis details.
6214 .IP "\fBoptimized\fR" 4
6215 .IX Item "optimized"
6216 Enable showing optimization information (only available in certain
6217 passes).
6218 .IP "\fBmissed\fR" 4
6219 .IX Item "missed"
6220 Enable showing missed optimization information (only available in certain
6221 passes).
6222 .IP "\fBnote\fR" 4
6223 .IX Item "note"
6224 Enable other detailed optimization information (only available in
6225 certain passes).
6226 .IP "\fB=\fR\fIfilename\fR" 4
6227 .IX Item "=filename"
6228 Instead of an auto named dump file, output into the given file
6229 name. The file names \fIstdout\fR and \fIstderr\fR are treated
6230 specially and are considered already open standard streams. For
6231 example,
6232 .Sp
6233 .Vb 2
6234 \&        gcc \-O2 \-ftree\-vectorize \-fdump\-tree\-vect\-blocks=foo.dump
6235 \&             \-fdump\-tree\-pre=stderr file.c
6236 .Ve
6237 .Sp
6238 outputs vectorizer dump into \fIfoo.dump\fR, while the \s-1PRE\s0 dump is
6239 output on to \fIstderr\fR. If two conflicting dump filenames are
6240 given for the same pass, then the latter option overrides the earlier
6241 one.
6242 .IP "\fBall\fR" 4
6243 .IX Item "all"
6244 Turn on all options, except \fBraw\fR, \fBslim\fR, \fBverbose\fR
6245 and \fBlineno\fR.
6246 .IP "\fBoptall\fR" 4
6247 .IX Item "optall"
6248 Turn on all optimization options, i.e., \fBoptimized\fR,
6249 \&\fBmissed\fR, and \fBnote\fR.
6250 .RE
6251 .RS 4
6252 .Sp
6253 The following tree dumps are possible:
6254 .IP "\fBoriginal\fR" 4
6255 .IX Item "original"
6256 Dump before any tree based optimization, to \fI\fIfile\fI.original\fR.
6257 .IP "\fBoptimized\fR" 4
6258 .IX Item "optimized"
6259 Dump after all tree based optimization, to \fI\fIfile\fI.optimized\fR.
6260 .IP "\fBgimple\fR" 4
6261 .IX Item "gimple"
6262 Dump each function before and after the gimplification pass to a file.  The
6263 file name is made by appending \fI.gimple\fR to the source file name.
6264 .IP "\fBcfg\fR" 4
6265 .IX Item "cfg"
6266 Dump the control flow graph of each function to a file.  The file name is
6267 made by appending \fI.cfg\fR to the source file name.
6268 .IP "\fBch\fR" 4
6269 .IX Item "ch"
6270 Dump each function after copying loop headers.  The file name is made by
6271 appending \fI.ch\fR to the source file name.
6272 .IP "\fBssa\fR" 4
6273 .IX Item "ssa"
6274 Dump \s-1SSA\s0 related information to a file.  The file name is made by appending
6275 \&\fI.ssa\fR to the source file name.
6276 .IP "\fBalias\fR" 4
6277 .IX Item "alias"
6278 Dump aliasing information for each function.  The file name is made by
6279 appending \fI.alias\fR to the source file name.
6280 .IP "\fBccp\fR" 4
6281 .IX Item "ccp"
6282 Dump each function after \s-1CCP\s0.  The file name is made by appending
6283 \&\fI.ccp\fR to the source file name.
6284 .IP "\fBstoreccp\fR" 4
6285 .IX Item "storeccp"
6286 Dump each function after STORE-CCP.  The file name is made by appending
6287 \&\fI.storeccp\fR to the source file name.
6288 .IP "\fBpre\fR" 4
6289 .IX Item "pre"
6290 Dump trees after partial redundancy elimination.  The file name is made
6291 by appending \fI.pre\fR to the source file name.
6292 .IP "\fBfre\fR" 4
6293 .IX Item "fre"
6294 Dump trees after full redundancy elimination.  The file name is made
6295 by appending \fI.fre\fR to the source file name.
6296 .IP "\fBcopyprop\fR" 4
6297 .IX Item "copyprop"
6298 Dump trees after copy propagation.  The file name is made
6299 by appending \fI.copyprop\fR to the source file name.
6300 .IP "\fBstore_copyprop\fR" 4
6301 .IX Item "store_copyprop"
6302 Dump trees after store copy-propagation.  The file name is made
6303 by appending \fI.store_copyprop\fR to the source file name.
6304 .IP "\fBdce\fR" 4
6305 .IX Item "dce"
6306 Dump each function after dead code elimination.  The file name is made by
6307 appending \fI.dce\fR to the source file name.
6308 .IP "\fBsra\fR" 4
6309 .IX Item "sra"
6310 Dump each function after performing scalar replacement of aggregates.  The
6311 file name is made by appending \fI.sra\fR to the source file name.
6312 .IP "\fBsink\fR" 4
6313 .IX Item "sink"
6314 Dump each function after performing code sinking.  The file name is made
6315 by appending \fI.sink\fR to the source file name.
6316 .IP "\fBdom\fR" 4
6317 .IX Item "dom"
6318 Dump each function after applying dominator tree optimizations.  The file
6319 name is made by appending \fI.dom\fR to the source file name.
6320 .IP "\fBdse\fR" 4
6321 .IX Item "dse"
6322 Dump each function after applying dead store elimination.  The file
6323 name is made by appending \fI.dse\fR to the source file name.
6324 .IP "\fBphiopt\fR" 4
6325 .IX Item "phiopt"
6326 Dump each function after optimizing \s-1PHI\s0 nodes into straightline code.  The file
6327 name is made by appending \fI.phiopt\fR to the source file name.
6328 .IP "\fBforwprop\fR" 4
6329 .IX Item "forwprop"
6330 Dump each function after forward propagating single use variables.  The file
6331 name is made by appending \fI.forwprop\fR to the source file name.
6332 .IP "\fBcopyrename\fR" 4
6333 .IX Item "copyrename"
6334 Dump each function after applying the copy rename optimization.  The file
6335 name is made by appending \fI.copyrename\fR to the source file name.
6336 .IP "\fBnrv\fR" 4
6337 .IX Item "nrv"
6338 Dump each function after applying the named return value optimization on
6339 generic trees.  The file name is made by appending \fI.nrv\fR to the source
6340 file name.
6341 .IP "\fBvect\fR" 4
6342 .IX Item "vect"
6343 Dump each function after applying vectorization of loops.  The file name is
6344 made by appending \fI.vect\fR to the source file name.
6345 .IP "\fBslp\fR" 4
6346 .IX Item "slp"
6347 Dump each function after applying vectorization of basic blocks.  The file name
6348 is made by appending \fI.slp\fR to the source file name.
6349 .IP "\fBvrp\fR" 4
6350 .IX Item "vrp"
6351 Dump each function after Value Range Propagation (\s-1VRP\s0).  The file name
6352 is made by appending \fI.vrp\fR to the source file name.
6353 .IP "\fBall\fR" 4
6354 .IX Item "all"
6355 Enable all the available tree dumps with the flags provided in this option.
6356 .RE
6357 .RS 4
6358 .RE
6359 .IP "\fB\-fopt\-info\fR" 4
6360 .IX Item "-fopt-info"
6361 .PD 0
6362 .IP "\fB\-fopt\-info\-\fR\fIoptions\fR" 4
6363 .IX Item "-fopt-info-options"
6364 .IP "\fB\-fopt\-info\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
6365 .IX Item "-fopt-info-options=filename"
6366 .PD
6367 Controls optimization dumps from various optimization passes. If the
6368 \&\fB\-\fR\fIoptions\fR form is used, \fIoptions\fR is a list of
6369 \&\fB\-\fR separated option keywords to select the dump details and
6370 optimizations.
6371 .Sp
6372 The \fIoptions\fR can be divided into two groups: options describing the
6373 verbosity of the dump, and options describing which optimizations
6374 should be included. The options from both the groups can be freely
6375 mixed as they are non-overlapping. However, in case of any conflicts,
6376 the later options override the earlier options on the command
6377 line.
6378 .Sp
6379 The following options control the dump verbosity:
6380 .RS 4
6381 .IP "\fBoptimized\fR" 4
6382 .IX Item "optimized"
6383 Print information when an optimization is successfully applied. It is
6384 up to a pass to decide which information is relevant. For example, the
6385 vectorizer passes print the source location of loops which are
6386 successfully vectorized.
6387 .IP "\fBmissed\fR" 4
6388 .IX Item "missed"
6389 Print information about missed optimizations. Individual passes
6390 control which information to include in the output.
6391 .IP "\fBnote\fR" 4
6392 .IX Item "note"
6393 Print verbose information about optimizations, such as certain
6394 transformations, more detailed messages about decisions etc.
6395 .IP "\fBall\fR" 4
6396 .IX Item "all"
6397 Print detailed optimization information. This includes
6398 \&\fBoptimized\fR, \fBmissed\fR, and \fBnote\fR.
6399 .RE
6400 .RS 4
6401 .Sp
6402 One or more of the following option keywords can be used to describe a
6403 group of optimizations:
6404 .IP "\fBipa\fR" 4
6405 .IX Item "ipa"
6406 Enable dumps from all interprocedural optimizations.
6407 .IP "\fBloop\fR" 4
6408 .IX Item "loop"
6409 Enable dumps from all loop optimizations.
6410 .IP "\fBinline\fR" 4
6411 .IX Item "inline"
6412 Enable dumps from all inlining optimizations.
6413 .IP "\fBvec\fR" 4
6414 .IX Item "vec"
6415 Enable dumps from all vectorization optimizations.
6416 .IP "\fBoptall\fR" 4
6417 .IX Item "optall"
6418 Enable dumps from all optimizations. This is a superset of
6419 the optimization groups listed above.
6420 .RE
6421 .RS 4
6422 .Sp
6423 If \fIoptions\fR is
6424 omitted, it defaults to \fBoptimized-optall\fR, which means to dump all
6425 info about successful optimizations from all the passes.
6426 .Sp
6427 If the \fIfilename\fR is provided, then the dumps from all the
6428 applicable optimizations are concatenated into the \fIfilename\fR.
6429 Otherwise the dump is output onto \fIstderr\fR. Though multiple
6430 \&\fB\-fopt\-info\fR options are accepted, only one of them can include
6431 a \fIfilename\fR. If other filenames are provided then all but the
6432 first such option are ignored.
6433 .Sp
6434 Note that the output \fIfilename\fR is overwritten
6435 in case of multiple translation units. If a combined output from
6436 multiple translation units is desired, \fIstderr\fR should be used
6437 instead.
6438 .Sp
6439 In the following example, the optimization info is output to
6440 \&\fIstderr\fR:
6441 .Sp
6442 .Vb 1
6443 \&        gcc \-O3 \-fopt\-info
6444 .Ve
6445 .Sp
6446 This example:
6447 .Sp
6448 .Vb 1
6449 \&        gcc \-O3 \-fopt\-info\-missed=missed.all
6450 .Ve
6451 .Sp
6452 outputs missed optimization report from all the passes into
6453 \&\fImissed.all\fR, and this one:
6454 .Sp
6455 .Vb 1
6456 \&        gcc \-O2 \-ftree\-vectorize \-fopt\-info\-vec\-missed
6457 .Ve
6458 .Sp
6459 prints information about missed optimization opportunities from
6460 vectorization passes on \fIstderr\fR.  
6461 Note that \fB\-fopt\-info\-vec\-missed\fR is equivalent to 
6462 \&\fB\-fopt\-info\-missed\-vec\fR.
6463 .Sp
6464 As another example,
6465 .Sp
6466 .Vb 1
6467 \&        gcc \-O3 \-fopt\-info\-inline\-optimized\-missed=inline.txt
6468 .Ve
6469 .Sp
6470 outputs information about missed optimizations as well as
6471 optimized locations from all the inlining passes into
6472 \&\fIinline.txt\fR.
6473 .Sp
6474 Finally, consider:
6475 .Sp
6476 .Vb 1
6477 \&        gcc \-fopt\-info\-vec\-missed=vec.miss \-fopt\-info\-loop\-optimized=loop.opt
6478 .Ve
6479 .Sp
6480 Here the two output filenames \fIvec.miss\fR and \fIloop.opt\fR are
6481 in conflict since only one output file is allowed. In this case, only
6482 the first option takes effect and the subsequent options are
6483 ignored. Thus only \fIvec.miss\fR is produced which contains
6484 dumps from the vectorizer about missed opportunities.
6485 .RE
6486 .IP "\fB\-frandom\-seed=\fR\fInumber\fR" 4
6487 .IX Item "-frandom-seed=number"
6488 This option provides a seed that \s-1GCC\s0 uses in place of
6489 random numbers in generating certain symbol names
6490 that have to be different in every compiled file.  It is also used to
6491 place unique stamps in coverage data files and the object files that
6492 produce them.  You can use the \fB\-frandom\-seed\fR option to produce
6493 reproducibly identical object files.
6494 .Sp
6495 The \fInumber\fR should be different for every file you compile.
6496 .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
6497 .IX Item "-fsched-verbose=n"
6498 On targets that use instruction scheduling, this option controls the
6499 amount of debugging output the scheduler prints.  This information is
6500 written to standard error, unless \fB\-fdump\-rtl\-sched1\fR or
6501 \&\fB\-fdump\-rtl\-sched2\fR is specified, in which case it is output
6502 to the usual dump listing file, \fI.sched1\fR or \fI.sched2\fR
6503 respectively.  However for \fIn\fR greater than nine, the output is
6504 always printed to standard error.
6505 .Sp
6506 For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
6507 same information as \fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR.
6508 For \fIn\fR greater than one, it also output basic block probabilities,
6509 detailed ready list information and unit/insn info.  For \fIn\fR greater
6510 than two, it includes \s-1RTL\s0 at abort point, control-flow and regions info.
6511 And for \fIn\fR over four, \fB\-fsched\-verbose\fR also includes
6512 dependence info.
6513 .IP "\fB\-save\-temps\fR" 4
6514 .IX Item "-save-temps"
6515 .PD 0
6516 .IP "\fB\-save\-temps=cwd\fR" 4
6517 .IX Item "-save-temps=cwd"
6518 .PD
6519 Store the usual \*(L"temporary\*(R" intermediate files permanently; place them
6520 in the current directory and name them based on the source file.  Thus,
6521 compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR produces files
6522 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
6523 preprocessed \fIfoo.i\fR output file even though the compiler now
6524 normally uses an integrated preprocessor.
6525 .Sp
6526 When used in combination with the \fB\-x\fR command-line option,
6527 \&\fB\-save\-temps\fR is sensible enough to avoid over writing an
6528 input source file with the same extension as an intermediate file.
6529 The corresponding intermediate file may be obtained by renaming the
6530 source file before using \fB\-save\-temps\fR.
6531 .Sp
6532 If you invoke \s-1GCC\s0 in parallel, compiling several different source
6533 files that share a common base name in different subdirectories or the
6534 same source file compiled for multiple output destinations, it is
6535 likely that the different parallel compilers will interfere with each
6536 other, and overwrite the temporary files.  For instance:
6537 .Sp
6538 .Vb 2
6539 \&        gcc \-save\-temps \-o outdir1/foo.o indir1/foo.c&
6540 \&        gcc \-save\-temps \-o outdir2/foo.o indir2/foo.c&
6541 .Ve
6542 .Sp
6543 may result in \fIfoo.i\fR and \fIfoo.o\fR being written to
6544 simultaneously by both compilers.
6545 .IP "\fB\-save\-temps=obj\fR" 4
6546 .IX Item "-save-temps=obj"
6547 Store the usual \*(L"temporary\*(R" intermediate files permanently.  If the
6548 \&\fB\-o\fR option is used, the temporary files are based on the
6549 object file.  If the \fB\-o\fR option is not used, the
6550 \&\fB\-save\-temps=obj\fR switch behaves like \fB\-save\-temps\fR.
6551 .Sp
6552 For example:
6553 .Sp
6554 .Vb 3
6555 \&        gcc \-save\-temps=obj \-c foo.c
6556 \&        gcc \-save\-temps=obj \-c bar.c \-o dir/xbar.o
6557 \&        gcc \-save\-temps=obj foobar.c \-o dir2/yfoobar
6558 .Ve
6559 .Sp
6560 creates \fIfoo.i\fR, \fIfoo.s\fR, \fIdir/xbar.i\fR,
6561 \&\fIdir/xbar.s\fR, \fIdir2/yfoobar.i\fR, \fIdir2/yfoobar.s\fR, and
6562 \&\fIdir2/yfoobar.o\fR.
6563 .IP "\fB\-time\fR[\fB=\fR\fIfile\fR]" 4
6564 .IX Item "-time[=file]"
6565 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
6566 sequence.  For C source files, this is the compiler proper and assembler
6567 (plus the linker if linking is done).
6568 .Sp
6569 Without the specification of an output file, the output looks like this:
6570 .Sp
6571 .Vb 2
6572 \&        # cc1 0.12 0.01
6573 \&        # as 0.00 0.01
6574 .Ve
6575 .Sp
6576 The first number on each line is the \*(L"user time\*(R", that is time spent
6577 executing the program itself.  The second number is \*(L"system time\*(R",
6578 time spent executing operating system routines on behalf of the program.
6579 Both numbers are in seconds.
6580 .Sp
6581 With the specification of an output file, the output is appended to the
6582 named file, and it looks like this:
6583 .Sp
6584 .Vb 2
6585 \&        0.12 0.01 cc1 <options>
6586 \&        0.00 0.01 as <options>
6587 .Ve
6588 .Sp
6589 The \*(L"user time\*(R" and the \*(L"system time\*(R" are moved before the program
6590 name, and the options passed to the program are displayed, so that one
6591 can later tell what file was being compiled, and with which options.
6592 .IP "\fB\-fvar\-tracking\fR" 4
6593 .IX Item "-fvar-tracking"
6594 Run variable tracking pass.  It computes where variables are stored at each
6595 position in code.  Better debugging information is then generated
6596 (if the debugging information format supports this information).
6597 .Sp
6598 It is enabled by default when compiling with optimization (\fB\-Os\fR,
6599 \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
6600 the debug info format supports it.
6601 .IP "\fB\-fvar\-tracking\-assignments\fR" 4
6602 .IX Item "-fvar-tracking-assignments"
6603 Annotate assignments to user variables early in the compilation and
6604 attempt to carry the annotations over throughout the compilation all the
6605 way to the end, in an attempt to improve debug information while
6606 optimizing.  Use of \fB\-gdwarf\-4\fR is recommended along with it.
6607 .Sp
6608 It can be enabled even if var-tracking is disabled, in which case
6609 annotations are created and maintained, but discarded at the end.
6610 By default, this flag is enabled together with \fB\-fvar\-tracking\fR,
6611 except when selective scheduling is enabled.
6612 .IP "\fB\-fvar\-tracking\-assignments\-toggle\fR" 4
6613 .IX Item "-fvar-tracking-assignments-toggle"
6614 Toggle \fB\-fvar\-tracking\-assignments\fR, in the same way that
6615 \&\fB\-gtoggle\fR toggles \fB\-g\fR.
6616 .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
6617 .IX Item "-print-file-name=library"
6618 Print the full absolute name of the library file \fIlibrary\fR that
6619 would be used when linking\-\-\-and don't do anything else.  With this
6620 option, \s-1GCC\s0 does not compile or link anything; it just prints the
6621 file name.
6622 .IP "\fB\-print\-multi\-directory\fR" 4
6623 .IX Item "-print-multi-directory"
6624 Print the directory name corresponding to the multilib selected by any
6625 other switches present in the command line.  This directory is supposed
6626 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
6627 .IP "\fB\-print\-multi\-lib\fR" 4
6628 .IX Item "-print-multi-lib"
6629 Print the mapping from multilib directory names to compiler switches
6630 that enable them.  The directory name is separated from the switches by
6631 \&\fB;\fR, and each switch starts with an \fB@\fR instead of the
6632 \&\fB\-\fR, without spaces between multiple switches.  This is supposed to
6633 ease shell processing.
6634 .IP "\fB\-print\-multi\-os\-directory\fR" 4
6635 .IX Item "-print-multi-os-directory"
6636 Print the path to \s-1OS\s0 libraries for the selected
6637 multilib, relative to some \fIlib\fR subdirectory.  If \s-1OS\s0 libraries are
6638 present in the \fIlib\fR subdirectory and no multilibs are used, this is
6639 usually just \fI.\fR, if \s-1OS\s0 libraries are present in \fIlib\fIsuffix\fI\fR
6640 sibling directories this prints e.g. \fI../lib64\fR, \fI../lib\fR or
6641 \&\fI../lib32\fR, or if \s-1OS\s0 libraries are present in \fIlib/\fIsubdir\fI\fR
6642 subdirectories it prints e.g. \fIamd64\fR, \fIsparcv9\fR or \fIev6\fR.
6643 .IP "\fB\-print\-multiarch\fR" 4
6644 .IX Item "-print-multiarch"
6645 Print the path to \s-1OS\s0 libraries for the selected multiarch,
6646 relative to some \fIlib\fR subdirectory.
6647 .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
6648 .IX Item "-print-prog-name=program"
6649 Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
6650 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
6651 .IX Item "-print-libgcc-file-name"
6652 Same as \fB\-print\-file\-name=libgcc.a\fR.
6653 .Sp
6654 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
6655 but you do want to link with \fIlibgcc.a\fR.  You can do:
6656 .Sp
6657 .Vb 1
6658 \&        gcc \-nostdlib <files>... \`gcc \-print\-libgcc\-file\-name\`
6659 .Ve
6660 .IP "\fB\-print\-search\-dirs\fR" 4
6661 .IX Item "-print-search-dirs"
6662 Print the name of the configured installation directory and a list of
6663 program and library directories \fBgcc\fR searches\-\-\-and don't do anything else.
6664 .Sp
6665 This is useful when \fBgcc\fR prints the error message
6666 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
6667 To resolve this you either need to put \fIcpp0\fR and the other compiler
6668 components where \fBgcc\fR expects to find them, or you can set the environment
6669 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
6670 Don't forget the trailing \fB/\fR.
6671 .IP "\fB\-print\-sysroot\fR" 4
6672 .IX Item "-print-sysroot"
6673 Print the target sysroot directory that is used during
6674 compilation.  This is the target sysroot specified either at configure
6675 time or using the \fB\-\-sysroot\fR option, possibly with an extra
6676 suffix that depends on compilation options.  If no target sysroot is
6677 specified, the option prints nothing.
6678 .IP "\fB\-print\-sysroot\-headers\-suffix\fR" 4
6679 .IX Item "-print-sysroot-headers-suffix"
6680 Print the suffix added to the target sysroot when searching for
6681 headers, or give an error if the compiler is not configured with such
6682 a suffix\-\-\-and don't do anything else.
6683 .IP "\fB\-dumpmachine\fR" 4
6684 .IX Item "-dumpmachine"
6685 Print the compiler's target machine (for example,
6686 \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
6687 .IP "\fB\-dumpversion\fR" 4
6688 .IX Item "-dumpversion"
6689 Print the compiler version (for example, \f(CW3.0\fR)\-\-\-and don't do
6690 anything else.
6691 .IP "\fB\-dumpspecs\fR" 4
6692 .IX Item "-dumpspecs"
6693 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
6694 is used when \s-1GCC\s0 itself is being built.)
6695 .IP "\fB\-fno\-eliminate\-unused\-debug\-types\fR" 4
6696 .IX Item "-fno-eliminate-unused-debug-types"
6697 Normally, when producing \s-1DWARF\s0 2 output, \s-1GCC\s0 avoids producing debug symbol 
6698 output for types that are nowhere used in the source file being compiled.
6699 Sometimes it is useful to have \s-1GCC\s0 emit debugging
6700 information for all types declared in a compilation
6701 unit, regardless of whether or not they are actually used
6702 in that compilation unit, for example 
6703 if, in the debugger, you want to cast a value to a type that is
6704 not actually used in your program (but is declared).  More often,
6705 however, this results in a significant amount of wasted space.
6706 .Sh "Options That Control Optimization"
6707 .IX Subsection "Options That Control Optimization"
6708 These options control various sorts of optimizations.
6709 .PP
6710 Without any optimization option, the compiler's goal is to reduce the
6711 cost of compilation and to make debugging produce the expected
6712 results.  Statements are independent: if you stop the program with a
6713 breakpoint between statements, you can then assign a new value to any
6714 variable or change the program counter to any other statement in the
6715 function and get exactly the results you expect from the source
6716 code.
6717 .PP
6718 Turning on optimization flags makes the compiler attempt to improve
6719 the performance and/or code size at the expense of compilation time
6720 and possibly the ability to debug the program.
6721 .PP
6722 The compiler performs optimization based on the knowledge it has of the
6723 program.  Compiling multiple files at once to a single output file mode allows
6724 the compiler to use information gained from all of the files when compiling
6725 each of them.
6726 .PP
6727 Not all optimizations are controlled directly by a flag.  Only
6728 optimizations that have a flag are listed in this section.
6729 .PP
6730 Most optimizations are only enabled if an \fB\-O\fR level is set on
6731 the command line.  Otherwise they are disabled, even if individual
6732 optimization flags are specified.
6733 .PP
6734 Depending on the target and how \s-1GCC\s0 was configured, a slightly different
6735 set of optimizations may be enabled at each \fB\-O\fR level than
6736 those listed here.  You can invoke \s-1GCC\s0 with \fB\-Q \-\-help=optimizers\fR
6737 to find out the exact set of optimizations that are enabled at each level.
6738 .IP "\fB\-O\fR" 4
6739 .IX Item "-O"
6740 .PD 0
6741 .IP "\fB\-O1\fR" 4
6742 .IX Item "-O1"
6743 .PD
6744 Optimize.  Optimizing compilation takes somewhat more time, and a lot
6745 more memory for a large function.
6746 .Sp
6747 With \fB\-O\fR, the compiler tries to reduce code size and execution
6748 time, without performing any optimizations that take a great deal of
6749 compilation time.
6750 .Sp
6751 \&\fB\-O\fR turns on the following optimization flags:
6752 .Sp
6753 \&\fB\-fauto\-inc\-dec 
6754 \&\-fbranch\-count\-reg 
6755 \&\-fcombine\-stack\-adjustments 
6756 \&\-fcompare\-elim 
6757 \&\-fcprop\-registers 
6758 \&\-fdce 
6759 \&\-fdefer\-pop 
6760 \&\-fdelayed\-branch 
6761 \&\-fdse 
6762 \&\-fforward\-propagate 
6763 \&\-fguess\-branch\-probability 
6764 \&\-fif\-conversion2 
6765 \&\-fif\-conversion 
6766 \&\-finline\-functions\-called\-once 
6767 \&\-fipa\-pure\-const 
6768 \&\-fipa\-profile 
6769 \&\-fipa\-reference 
6770 \&\-fmerge\-constants 
6771 \&\-fmove\-loop\-invariants 
6772 \&\-fshrink\-wrap 
6773 \&\-fsplit\-wide\-types 
6774 \&\-ftree\-bit\-ccp 
6775 \&\-ftree\-ccp 
6776 \&\-fssa\-phiopt 
6777 \&\-ftree\-ch 
6778 \&\-ftree\-copy\-prop 
6779 \&\-ftree\-copyrename 
6780 \&\-ftree\-dce 
6781 \&\-ftree\-dominator\-opts 
6782 \&\-ftree\-dse 
6783 \&\-ftree\-forwprop 
6784 \&\-ftree\-fre 
6785 \&\-ftree\-phiprop 
6786 \&\-ftree\-sink 
6787 \&\-ftree\-slsr 
6788 \&\-ftree\-sra 
6789 \&\-ftree\-pta 
6790 \&\-ftree\-ter 
6791 \&\-funit\-at\-a\-time\fR
6792 .Sp
6793 \&\fB\-O\fR also turns on \fB\-fomit\-frame\-pointer\fR on machines
6794 where doing so does not interfere with debugging.
6795 .IP "\fB\-O2\fR" 4
6796 .IX Item "-O2"
6797 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
6798 that do not involve a space-speed tradeoff.
6799 As compared to \fB\-O\fR, this option increases both compilation time
6800 and the performance of the generated code.
6801 .Sp
6802 \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR.  It
6803 also turns on the following optimization flags:
6804 \&\fB\-fthread\-jumps 
6805 \&\-falign\-functions  \-falign\-jumps 
6806 \&\-falign\-loops  \-falign\-labels 
6807 \&\-fcaller\-saves 
6808 \&\-fcrossjumping 
6809 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks 
6810 \&\-fdelete\-null\-pointer\-checks 
6811 \&\-fdevirtualize \-fdevirtualize\-speculatively 
6812 \&\-fexpensive\-optimizations 
6813 \&\-fgcse  \-fgcse\-lm  
6814 \&\-fhoist\-adjacent\-loads 
6815 \&\-finline\-small\-functions 
6816 \&\-findirect\-inlining 
6817 \&\-fipa\-cp 
6818 \&\-fipa\-cp\-alignment 
6819 \&\-fipa\-sra 
6820 \&\-fipa\-icf 
6821 \&\-fisolate\-erroneous\-paths\-dereference 
6822 \&\-flra\-remat 
6823 \&\-foptimize\-sibling\-calls 
6824 \&\-foptimize\-strlen 
6825 \&\-fpartial\-inlining 
6826 \&\-fpeephole2 
6827 \&\-freorder\-blocks \-freorder\-blocks\-and\-partition \-freorder\-functions 
6828 \&\-frerun\-cse\-after\-loop  
6829 \&\-fsched\-interblock  \-fsched\-spec 
6830 \&\-fschedule\-insns  \-fschedule\-insns2 
6831 \&\-fstrict\-aliasing \-fstrict\-overflow 
6832 \&\-ftree\-builtin\-call\-dce 
6833 \&\-ftree\-switch\-conversion \-ftree\-tail\-merge 
6834 \&\-ftree\-pre 
6835 \&\-ftree\-vrp 
6836 \&\-fipa\-ra\fR
6837 .Sp
6838 Please note the warning under \fB\-fgcse\fR about
6839 invoking \fB\-O2\fR on programs that use computed gotos.
6840 .IP "\fB\-O3\fR" 4
6841 .IX Item "-O3"
6842 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified
6843 by \fB\-O2\fR and also turns on the \fB\-finline\-functions\fR,
6844 \&\fB\-funswitch\-loops\fR, \fB\-fpredictive\-commoning\fR,
6845 \&\fB\-fgcse\-after\-reload\fR, \fB\-ftree\-loop\-vectorize\fR,
6846 \&\fB\-ftree\-loop\-distribute\-patterns\fR,
6847 \&\fB\-ftree\-slp\-vectorize\fR, \fB\-fvect\-cost\-model\fR,
6848 \&\fB\-ftree\-partial\-pre\fR and \fB\-fipa\-cp\-clone\fR options.
6849 .IP "\fB\-O0\fR" 4
6850 .IX Item "-O0"
6851 Reduce compilation time and make debugging produce the expected
6852 results.  This is the default.
6853 .IP "\fB\-Os\fR" 4
6854 .IX Item "-Os"
6855 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
6856 do not typically increase code size.  It also performs further
6857 optimizations designed to reduce code size.
6858 .Sp
6859 \&\fB\-Os\fR disables the following optimization flags:
6860 \&\fB\-falign\-functions  \-falign\-jumps  \-falign\-loops 
6861 \&\-falign\-labels  \-freorder\-blocks  \-freorder\-blocks\-and\-partition 
6862 \&\-fprefetch\-loop\-arrays\fR
6863 .IP "\fB\-Ofast\fR" 4
6864 .IX Item "-Ofast"
6865 Disregard strict standards compliance.  \fB\-Ofast\fR enables all
6866 \&\fB\-O3\fR optimizations.  It also enables optimizations that are not
6867 valid for all standard-compliant programs.
6868 It turns on \fB\-ffast\-math\fR and the Fortran-specific
6869 \&\fB\-fno\-protect\-parens\fR and \fB\-fstack\-arrays\fR.
6870 .IP "\fB\-Og\fR" 4
6871 .IX Item "-Og"
6872 Optimize debugging experience.  \fB\-Og\fR enables optimizations
6873 that do not interfere with debugging. It should be the optimization
6874 level of choice for the standard edit-compile-debug cycle, offering
6875 a reasonable level of optimization while maintaining fast compilation
6876 and a good debugging experience.
6877 .Sp
6878 If you use multiple \fB\-O\fR options, with or without level numbers,
6879 the last such option is the one that is effective.
6880 .PP
6881 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
6882 flags.  Most flags have both positive and negative forms; the negative
6883 form of \fB\-ffoo\fR is \fB\-fno\-foo\fR.  In the table
6884 below, only one of the forms is listed\-\-\-the one you typically 
6885 use.  You can figure out the other form by either removing \fBno\-\fR
6886 or adding it.
6887 .PP
6888 The following options control specific optimizations.  They are either
6889 activated by \fB\-O\fR options or are related to ones that are.  You
6890 can use the following flags in the rare cases when \*(L"fine-tuning\*(R" of
6891 optimizations to be performed is desired.
6892 .IP "\fB\-fno\-defer\-pop\fR" 4
6893 .IX Item "-fno-defer-pop"
6894 Always pop the arguments to each function call as soon as that function
6895 returns.  For machines that must pop arguments after a function call,
6896 the compiler normally lets arguments accumulate on the stack for several
6897 function calls and pops them all at once.
6898 .Sp
6899 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6900 .IP "\fB\-fforward\-propagate\fR" 4
6901 .IX Item "-fforward-propagate"
6902 Perform a forward propagation pass on \s-1RTL\s0.  The pass tries to combine two
6903 instructions and checks if the result can be simplified.  If loop unrolling
6904 is active, two passes are performed and the second is scheduled after
6905 loop unrolling.
6906 .Sp
6907 This option is enabled by default at optimization levels \fB\-O\fR,
6908 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6909 .IP "\fB\-ffp\-contract=\fR\fIstyle\fR" 4
6910 .IX Item "-ffp-contract=style"
6911 \&\fB\-ffp\-contract=off\fR disables floating-point expression contraction.
6912 \&\fB\-ffp\-contract=fast\fR enables floating-point expression contraction
6913 such as forming of fused multiply-add operations if the target has
6914 native support for them.
6915 \&\fB\-ffp\-contract=on\fR enables floating-point expression contraction
6916 if allowed by the language standard.  This is currently not implemented
6917 and treated equal to \fB\-ffp\-contract=off\fR.
6918 .Sp
6919 The default is \fB\-ffp\-contract=fast\fR.
6920 .IP "\fB\-fomit\-frame\-pointer\fR" 4
6921 .IX Item "-fomit-frame-pointer"
6922 Don't keep the frame pointer in a register for functions that
6923 don't need one.  This avoids the instructions to save, set up and
6924 restore frame pointers; it also makes an extra register available
6925 in many functions.  \fBIt also makes debugging impossible on
6926 some machines.\fR
6927 .Sp
6928 On some machines, such as the \s-1VAX\s0, this flag has no effect, because
6929 the standard calling sequence automatically handles the frame pointer
6930 and nothing is saved by pretending it doesn't exist.  The
6931 machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
6932 whether a target machine supports this flag.
6933 .Sp
6934 The default setting (when not optimizing for
6935 size) for 32\-bit GNU/Linux x86 and 32\-bit Darwin x86 targets is
6936 \&\fB\-fomit\-frame\-pointer\fR.  You can configure \s-1GCC\s0 with the
6937 \&\fB\-\-enable\-frame\-pointer\fR configure option to change the default.
6938 .Sp
6939 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6940 .IP "\fB\-foptimize\-sibling\-calls\fR" 4
6941 .IX Item "-foptimize-sibling-calls"
6942 Optimize sibling and tail recursive calls.
6943 .Sp
6944 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6945 .IP "\fB\-foptimize\-strlen\fR" 4
6946 .IX Item "-foptimize-strlen"
6947 Optimize various standard C string functions (e.g. \f(CW\*(C`strlen\*(C'\fR,
6948 \&\f(CW\*(C`strchr\*(C'\fR or \f(CW\*(C`strcpy\*(C'\fR) and
6949 their \f(CW\*(C`_FORTIFY_SOURCE\*(C'\fR counterparts into faster alternatives.
6950 .Sp
6951 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
6952 .IP "\fB\-fno\-inline\fR" 4
6953 .IX Item "-fno-inline"
6954 Do not expand any functions inline apart from those marked with
6955 the \f(CW\*(C`always_inline\*(C'\fR attribute.  This is the default when not
6956 optimizing.
6957 .Sp
6958 Single functions can be exempted from inlining by marking them
6959 with the \f(CW\*(C`noinline\*(C'\fR attribute.
6960 .IP "\fB\-finline\-small\-functions\fR" 4
6961 .IX Item "-finline-small-functions"
6962 Integrate functions into their callers when their body is smaller than expected
6963 function call code (so overall size of program gets smaller).  The compiler
6964 heuristically decides which functions are simple enough to be worth integrating
6965 in this way.  This inlining applies to all functions, even those not declared
6966 inline.
6967 .Sp
6968 Enabled at level \fB\-O2\fR.
6969 .IP "\fB\-findirect\-inlining\fR" 4
6970 .IX Item "-findirect-inlining"
6971 Inline also indirect calls that are discovered to be known at compile
6972 time thanks to previous inlining.  This option has any effect only
6973 when inlining itself is turned on by the \fB\-finline\-functions\fR
6974 or \fB\-finline\-small\-functions\fR options.
6975 .Sp
6976 Enabled at level \fB\-O2\fR.
6977 .IP "\fB\-finline\-functions\fR" 4
6978 .IX Item "-finline-functions"
6979 Consider all functions for inlining, even if they are not declared inline.
6980 The compiler heuristically decides which functions are worth integrating
6981 in this way.
6982 .Sp
6983 If all calls to a given function are integrated, and the function is
6984 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
6985 assembler code in its own right.
6986 .Sp
6987 Enabled at level \fB\-O3\fR.
6988 .IP "\fB\-finline\-functions\-called\-once\fR" 4
6989 .IX Item "-finline-functions-called-once"
6990 Consider all \f(CW\*(C`static\*(C'\fR functions called once for inlining into their
6991 caller even if they are not marked \f(CW\*(C`inline\*(C'\fR.  If a call to a given
6992 function is integrated, then the function is not output as assembler code
6993 in its own right.
6994 .Sp
6995 Enabled at levels \fB\-O1\fR, \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
6996 .IP "\fB\-fearly\-inlining\fR" 4
6997 .IX Item "-fearly-inlining"
6998 Inline functions marked by \f(CW\*(C`always_inline\*(C'\fR and functions whose body seems
6999 smaller than the function call overhead early before doing
7000 \&\fB\-fprofile\-generate\fR instrumentation and real inlining pass.  Doing so
7001 makes profiling significantly cheaper and usually inlining faster on programs
7002 having large chains of nested wrapper functions.
7003 .Sp
7004 Enabled by default.
7005 .IP "\fB\-fipa\-sra\fR" 4
7006 .IX Item "-fipa-sra"
7007 Perform interprocedural scalar replacement of aggregates, removal of
7008 unused parameters and replacement of parameters passed by reference
7009 by parameters passed by value.
7010 .Sp
7011 Enabled at levels \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
7012 .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
7013 .IX Item "-finline-limit=n"
7014 By default, \s-1GCC\s0 limits the size of functions that can be inlined.  This flag
7015 allows coarse control of this limit.  \fIn\fR is the size of functions that
7016 can be inlined in number of pseudo instructions.
7017 .Sp
7018 Inlining is actually controlled by a number of parameters, which may be
7019 specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
7020 The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
7021 as follows:
7022 .RS 4
7023 .IP "\fBmax-inline-insns-single\fR" 4
7024 .IX Item "max-inline-insns-single"
7025 is set to \fIn\fR/2.
7026 .IP "\fBmax-inline-insns-auto\fR" 4
7027 .IX Item "max-inline-insns-auto"
7028 is set to \fIn\fR/2.
7029 .RE
7030 .RS 4
7031 .Sp
7032 See below for a documentation of the individual
7033 parameters controlling inlining and for the defaults of these parameters.
7034 .Sp
7035 \&\fINote:\fR there may be no value to \fB\-finline\-limit\fR that results
7036 in default behavior.
7037 .Sp
7038 \&\fINote:\fR pseudo instruction represents, in this particular context, an
7039 abstract measurement of function's size.  In no way does it represent a count
7040 of assembly instructions and as such its exact meaning might change from one
7041 release to an another.
7042 .RE
7043 .IP "\fB\-fno\-keep\-inline\-dllexport\fR" 4
7044 .IX Item "-fno-keep-inline-dllexport"
7045 This is a more fine-grained version of \fB\-fkeep\-inline\-functions\fR,
7046 which applies only to functions that are declared using the \f(CW\*(C`dllexport\*(C'\fR
7047 attribute or declspec
7048 .IP "\fB\-fkeep\-inline\-functions\fR" 4
7049 .IX Item "-fkeep-inline-functions"
7050 In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
7051 into the object file, even if the function has been inlined into all
7052 of its callers.  This switch does not affect functions using the
7053 \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU\s0 C90.  In \*(C+, emit any and all
7054 inline functions into the object file.
7055 .IP "\fB\-fkeep\-static\-consts\fR" 4
7056 .IX Item "-fkeep-static-consts"
7057 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
7058 on, even if the variables aren't referenced.
7059 .Sp
7060 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
7061 check if a variable is referenced, regardless of whether or not
7062 optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
7063 .IP "\fB\-fmerge\-constants\fR" 4
7064 .IX Item "-fmerge-constants"
7065 Attempt to merge identical constants (string constants and floating-point
7066 constants) across compilation units.
7067 .Sp
7068 This option is the default for optimized compilation if the assembler and
7069 linker support it.  Use \fB\-fno\-merge\-constants\fR to inhibit this
7070 behavior.
7071 .Sp
7072 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7073 .IP "\fB\-fmerge\-all\-constants\fR" 4
7074 .IX Item "-fmerge-all-constants"
7075 Attempt to merge identical constants and identical variables.
7076 .Sp
7077 This option implies \fB\-fmerge\-constants\fR.  In addition to
7078 \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
7079 arrays or initialized constant variables with integral or floating-point
7080 types.  Languages like C or \*(C+ require each variable, including multiple
7081 instances of the same variable in recursive calls, to have distinct locations,
7082 so using this option results in non-conforming
7083 behavior.
7084 .IP "\fB\-fmodulo\-sched\fR" 4
7085 .IX Item "-fmodulo-sched"
7086 Perform swing modulo scheduling immediately before the first scheduling
7087 pass.  This pass looks at innermost loops and reorders their
7088 instructions by overlapping different iterations.
7089 .IP "\fB\-fmodulo\-sched\-allow\-regmoves\fR" 4
7090 .IX Item "-fmodulo-sched-allow-regmoves"
7091 Perform more aggressive SMS-based modulo scheduling with register moves
7092 allowed.  By setting this flag certain anti-dependences edges are
7093 deleted, which triggers the generation of reg-moves based on the
7094 life-range analysis.  This option is effective only with
7095 \&\fB\-fmodulo\-sched\fR enabled.
7096 .IP "\fB\-fno\-branch\-count\-reg\fR" 4
7097 .IX Item "-fno-branch-count-reg"
7098 Do not use \*(L"decrement and branch\*(R" instructions on a count register,
7099 but instead generate a sequence of instructions that decrement a
7100 register, compare it against zero, then branch based upon the result.
7101 This option is only meaningful on architectures that support such
7102 instructions, which include x86, PowerPC, \s-1IA\-64\s0 and S/390.
7103 .Sp
7104 Enabled by default at \fB\-O1\fR and higher.
7105 .Sp
7106 The default is \fB\-fbranch\-count\-reg\fR.
7107 .IP "\fB\-fno\-function\-cse\fR" 4
7108 .IX Item "-fno-function-cse"
7109 Do not put function addresses in registers; make each instruction that
7110 calls a constant function contain the function's address explicitly.
7111 .Sp
7112 This option results in less efficient code, but some strange hacks
7113 that alter the assembler output may be confused by the optimizations
7114 performed when this option is not used.
7115 .Sp
7116 The default is \fB\-ffunction\-cse\fR
7117 .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
7118 .IX Item "-fno-zero-initialized-in-bss"
7119 If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
7120 are initialized to zero into \s-1BSS\s0.  This can save space in the resulting
7121 code.
7122 .Sp
7123 This option turns off this behavior because some programs explicitly
7124 rely on variables going to the data section\-\-\-e.g., so that the
7125 resulting executable can find the beginning of that section and/or make
7126 assumptions based on that.
7127 .Sp
7128 The default is \fB\-fzero\-initialized\-in\-bss\fR.
7129 .IP "\fB\-fthread\-jumps\fR" 4
7130 .IX Item "-fthread-jumps"
7131 Perform optimizations that check to see if a jump branches to a
7132 location where another comparison subsumed by the first is found.  If
7133 so, the first branch is redirected to either the destination of the
7134 second branch or a point immediately following it, depending on whether
7135 the condition is known to be true or false.
7136 .Sp
7137 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7138 .IP "\fB\-fsplit\-wide\-types\fR" 4
7139 .IX Item "-fsplit-wide-types"
7140 When using a type that occupies multiple registers, such as \f(CW\*(C`long
7141 long\*(C'\fR on a 32\-bit system, split the registers apart and allocate them
7142 independently.  This normally generates better code for those types,
7143 but may make debugging more difficult.
7144 .Sp
7145 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR,
7146 \&\fB\-Os\fR.
7147 .IP "\fB\-fcse\-follow\-jumps\fR" 4
7148 .IX Item "-fcse-follow-jumps"
7149 In common subexpression elimination (\s-1CSE\s0), scan through jump instructions
7150 when the target of the jump is not reached by any other path.  For
7151 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
7152 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 follows the jump when the condition
7153 tested is false.
7154 .Sp
7155 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7156 .IP "\fB\-fcse\-skip\-blocks\fR" 4
7157 .IX Item "-fcse-skip-blocks"
7158 This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
7159 follow jumps that conditionally skip over blocks.  When \s-1CSE\s0
7160 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
7161 \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
7162 body of the \f(CW\*(C`if\*(C'\fR.
7163 .Sp
7164 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7165 .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
7166 .IX Item "-frerun-cse-after-loop"
7167 Re-run common subexpression elimination after loop optimizations are
7168 performed.
7169 .Sp
7170 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7171 .IP "\fB\-fgcse\fR" 4
7172 .IX Item "-fgcse"
7173 Perform a global common subexpression elimination pass.
7174 This pass also performs global constant and copy propagation.
7175 .Sp
7176 \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
7177 extension, you may get better run-time performance if you disable
7178 the global common subexpression elimination pass by adding
7179 \&\fB\-fno\-gcse\fR to the command line.
7180 .Sp
7181 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7182 .IP "\fB\-fgcse\-lm\fR" 4
7183 .IX Item "-fgcse-lm"
7184 When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination
7185 attempts to move loads that are only killed by stores into themselves.  This
7186 allows a loop containing a load/store sequence to be changed to a load outside
7187 the loop, and a copy/store within the loop.
7188 .Sp
7189 Enabled by default when \fB\-fgcse\fR is enabled.
7190 .IP "\fB\-fgcse\-sm\fR" 4
7191 .IX Item "-fgcse-sm"
7192 When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
7193 global common subexpression elimination.  This pass attempts to move
7194 stores out of loops.  When used in conjunction with \fB\-fgcse\-lm\fR,
7195 loops containing a load/store sequence can be changed to a load before
7196 the loop and a store after the loop.
7197 .Sp
7198 Not enabled at any optimization level.
7199 .IP "\fB\-fgcse\-las\fR" 4
7200 .IX Item "-fgcse-las"
7201 When \fB\-fgcse\-las\fR is enabled, the global common subexpression
7202 elimination pass eliminates redundant loads that come after stores to the
7203 same memory location (both partial and full redundancies).
7204 .Sp
7205 Not enabled at any optimization level.
7206 .IP "\fB\-fgcse\-after\-reload\fR" 4
7207 .IX Item "-fgcse-after-reload"
7208 When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
7209 pass is performed after reload.  The purpose of this pass is to clean up
7210 redundant spilling.
7211 .IP "\fB\-faggressive\-loop\-optimizations\fR" 4
7212 .IX Item "-faggressive-loop-optimizations"
7213 This option tells the loop optimizer to use language constraints to
7214 derive bounds for the number of iterations of a loop.  This assumes that
7215 loop code does not invoke undefined behavior by for example causing signed
7216 integer overflows or out-of-bound array accesses.  The bounds for the
7217 number of iterations of a loop are used to guide loop unrolling and peeling
7218 and loop exit test optimizations.
7219 This option is enabled by default.
7220 .IP "\fB\-funsafe\-loop\-optimizations\fR" 4
7221 .IX Item "-funsafe-loop-optimizations"
7222 This option tells the loop optimizer to assume that loop indices do not
7223 overflow, and that loops with nontrivial exit condition are not
7224 infinite.  This enables a wider range of loop optimizations even if
7225 the loop optimizer itself cannot prove that these assumptions are valid.
7226 If you use \fB\-Wunsafe\-loop\-optimizations\fR, the compiler warns you
7227 if it finds this kind of loop.
7228 .IP "\fB\-fcrossjumping\fR" 4
7229 .IX Item "-fcrossjumping"
7230 Perform cross-jumping transformation.
7231 This transformation unifies equivalent code and saves code size.  The
7232 resulting code may or may not perform better than without cross-jumping.
7233 .Sp
7234 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7235 .IP "\fB\-fauto\-inc\-dec\fR" 4
7236 .IX Item "-fauto-inc-dec"
7237 Combine increments or decrements of addresses with memory accesses.
7238 This pass is always skipped on architectures that do not have
7239 instructions to support this.  Enabled by default at \fB\-O\fR and
7240 higher on architectures that support this.
7241 .IP "\fB\-fdce\fR" 4
7242 .IX Item "-fdce"
7243 Perform dead code elimination (\s-1DCE\s0) on \s-1RTL\s0.
7244 Enabled by default at \fB\-O\fR and higher.
7245 .IP "\fB\-fdse\fR" 4
7246 .IX Item "-fdse"
7247 Perform dead store elimination (\s-1DSE\s0) on \s-1RTL\s0.
7248 Enabled by default at \fB\-O\fR and higher.
7249 .IP "\fB\-fif\-conversion\fR" 4
7250 .IX Item "-fif-conversion"
7251 Attempt to transform conditional jumps into branch-less equivalents.  This
7252 includes use of conditional moves, min, max, set flags and abs instructions, and
7253 some tricks doable by standard arithmetics.  The use of conditional execution
7254 on chips where it is available is controlled by \fB\-fif\-conversion2\fR.
7255 .Sp
7256 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7257 .IP "\fB\-fif\-conversion2\fR" 4
7258 .IX Item "-fif-conversion2"
7259 Use conditional execution (where available) to transform conditional jumps into
7260 branch-less equivalents.
7261 .Sp
7262 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7263 .IP "\fB\-fdeclone\-ctor\-dtor\fR" 4
7264 .IX Item "-fdeclone-ctor-dtor"
7265 The \*(C+ \s-1ABI\s0 requires multiple entry points for constructors and
7266 destructors: one for a base subobject, one for a complete object, and
7267 one for a virtual destructor that calls operator delete afterwards.
7268 For a hierarchy with virtual bases, the base and complete variants are
7269 clones, which means two copies of the function.  With this option, the
7270 base and complete variants are changed to be thunks that call a common
7271 implementation.
7272 .Sp
7273 Enabled by \fB\-Os\fR.
7274 .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
7275 .IX Item "-fdelete-null-pointer-checks"
7276 Assume that programs cannot safely dereference null pointers, and that
7277 no code or data element resides there.  This enables simple constant
7278 folding optimizations at all optimization levels.  In addition, other
7279 optimization passes in \s-1GCC\s0 use this flag to control global dataflow
7280 analyses that eliminate useless checks for null pointers; these assume
7281 that if a pointer is checked after it has already been dereferenced,
7282 it cannot be null.
7283 .Sp
7284 Note however that in some environments this assumption is not true.
7285 Use \fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
7286 for programs that depend on that behavior.
7287 .Sp
7288 Some targets, especially embedded ones, disable this option at all levels.
7289 Otherwise it is enabled at all levels: \fB\-O0\fR, \fB\-O1\fR,
7290 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.  Passes that use the information
7291 are enabled independently at different optimization levels.
7292 .IP "\fB\-fdevirtualize\fR" 4
7293 .IX Item "-fdevirtualize"
7294 Attempt to convert calls to virtual functions to direct calls.  This
7295 is done both within a procedure and interprocedurally as part of
7296 indirect inlining (\fB\-findirect\-inlining\fR) and interprocedural constant
7297 propagation (\fB\-fipa\-cp\fR).
7298 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7299 .IP "\fB\-fdevirtualize\-speculatively\fR" 4
7300 .IX Item "-fdevirtualize-speculatively"
7301 Attempt to convert calls to virtual functions to speculative direct calls.
7302 Based on the analysis of the type inheritance graph, determine for a given call
7303 the set of likely targets. If the set is small, preferably of size 1, change
7304 the call into a conditional deciding between direct and indirect calls.  The
7305 speculative calls enable more optimizations, such as inlining.  When they seem
7306 useless after further optimization, they are converted back into original form.
7307 .IP "\fB\-fdevirtualize\-at\-ltrans\fR" 4
7308 .IX Item "-fdevirtualize-at-ltrans"
7309 Stream extra information needed for aggressive devirtualization when running
7310 the link-time optimizer in local transformation mode.  
7311 This option enables more devirtualization but
7312 significantly increases the size of streamed data. For this reason it is
7313 disabled by default.
7314 .IP "\fB\-fexpensive\-optimizations\fR" 4
7315 .IX Item "-fexpensive-optimizations"
7316 Perform a number of minor optimizations that are relatively expensive.
7317 .Sp
7318 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7319 .IP "\fB\-free\fR" 4
7320 .IX Item "-free"
7321 Attempt to remove redundant extension instructions.  This is especially
7322 helpful for the x86\-64 architecture, which implicitly zero-extends in 64\-bit
7323 registers after writing to their lower 32\-bit half.
7324 .Sp
7325 Enabled for Alpha, AArch64 and x86 at levels \fB\-O2\fR,
7326 \&\fB\-O3\fR, \fB\-Os\fR.
7327 .IP "\fB\-fno\-lifetime\-dse\fR" 4
7328 .IX Item "-fno-lifetime-dse"
7329 In \*(C+ the value of an object is only affected by changes within its
7330 lifetime: when the constructor begins, the object has an indeterminate
7331 value, and any changes during the lifetime of the object are dead when
7332 the object is destroyed.  Normally dead store elimination will take
7333 advantage of this; if your code relies on the value of the object
7334 storage persisting beyond the lifetime of the object, you can use this
7335 flag to disable this optimization.
7336 .IP "\fB\-flive\-range\-shrinkage\fR" 4
7337 .IX Item "-flive-range-shrinkage"
7338 Attempt to decrease register pressure through register live range
7339 shrinkage.  This is helpful for fast processors with small or moderate
7340 size register sets.
7341 .IP "\fB\-fira\-algorithm=\fR\fIalgorithm\fR" 4
7342 .IX Item "-fira-algorithm=algorithm"
7343 Use the specified coloring algorithm for the integrated register
7344 allocator.  The \fIalgorithm\fR argument can be \fBpriority\fR, which
7345 specifies Chow's priority coloring, or \fB\s-1CB\s0\fR, which specifies
7346 Chaitin-Briggs coloring.  Chaitin-Briggs coloring is not implemented
7347 for all architectures, but for those targets that do support it, it is
7348 the default because it generates better code.
7349 .IP "\fB\-fira\-region=\fR\fIregion\fR" 4
7350 .IX Item "-fira-region=region"
7351 Use specified regions for the integrated register allocator.  The
7352 \&\fIregion\fR argument should be one of the following:
7353 .RS 4
7354 .IP "\fBall\fR" 4
7355 .IX Item "all"
7356 Use all loops as register allocation regions.
7357 This can give the best results for machines with a small and/or
7358 irregular register set.
7359 .IP "\fBmixed\fR" 4
7360 .IX Item "mixed"
7361 Use all loops except for loops with small register pressure 
7362 as the regions.  This value usually gives
7363 the best results in most cases and for most architectures,
7364 and is enabled by default when compiling with optimization for speed
7365 (\fB\-O\fR, \fB\-O2\fR, ...).
7366 .IP "\fBone\fR" 4
7367 .IX Item "one"
7368 Use all functions as a single region.  
7369 This typically results in the smallest code size, and is enabled by default for
7370 \&\fB\-Os\fR or \fB\-O0\fR.
7371 .RE
7372 .RS 4
7373 .RE
7374 .IP "\fB\-fira\-hoist\-pressure\fR" 4
7375 .IX Item "-fira-hoist-pressure"
7376 Use \s-1IRA\s0 to evaluate register pressure in the code hoisting pass for
7377 decisions to hoist expressions.  This option usually results in smaller
7378 code, but it can slow the compiler down.
7379 .Sp
7380 This option is enabled at level \fB\-Os\fR for all targets.
7381 .IP "\fB\-fira\-loop\-pressure\fR" 4
7382 .IX Item "-fira-loop-pressure"
7383 Use \s-1IRA\s0 to evaluate register pressure in loops for decisions to move
7384 loop invariants.  This option usually results in generation
7385 of faster and smaller code on machines with large register files (>= 32
7386 registers), but it can slow the compiler down.
7387 .Sp
7388 This option is enabled at level \fB\-O3\fR for some targets.
7389 .IP "\fB\-fno\-ira\-share\-save\-slots\fR" 4
7390 .IX Item "-fno-ira-share-save-slots"
7391 Disable sharing of stack slots used for saving call-used hard
7392 registers living through a call.  Each hard register gets a
7393 separate stack slot, and as a result function stack frames are
7394 larger.
7395 .IP "\fB\-fno\-ira\-share\-spill\-slots\fR" 4
7396 .IX Item "-fno-ira-share-spill-slots"
7397 Disable sharing of stack slots allocated for pseudo-registers.  Each
7398 pseudo-register that does not get a hard register gets a separate
7399 stack slot, and as a result function stack frames are larger.
7400 .IP "\fB\-fira\-verbose=\fR\fIn\fR" 4
7401 .IX Item "-fira-verbose=n"
7402 Control the verbosity of the dump file for the integrated register allocator.
7403 The default value is 5.  If the value \fIn\fR is greater or equal to 10,
7404 the dump output is sent to stderr using the same format as \fIn\fR minus 10.
7405 .IP "\fB\-flra\-remat\fR" 4
7406 .IX Item "-flra-remat"
7407 Enable CFG-sensitive rematerialization in \s-1LRA\s0.  Instead of loading
7408 values of spilled pseudos, \s-1LRA\s0 tries to rematerialize (recalculate)
7409 values if it is profitable.
7410 .Sp
7411 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7412 .IP "\fB\-fdelayed\-branch\fR" 4
7413 .IX Item "-fdelayed-branch"
7414 If supported for the target machine, attempt to reorder instructions
7415 to exploit instruction slots available after delayed branch
7416 instructions.
7417 .Sp
7418 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7419 .IP "\fB\-fschedule\-insns\fR" 4
7420 .IX Item "-fschedule-insns"
7421 If supported for the target machine, attempt to reorder instructions to
7422 eliminate execution stalls due to required data being unavailable.  This
7423 helps machines that have slow floating point or memory load instructions
7424 by allowing other instructions to be issued until the result of the load
7425 or floating-point instruction is required.
7426 .Sp
7427 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
7428 .IP "\fB\-fschedule\-insns2\fR" 4
7429 .IX Item "-fschedule-insns2"
7430 Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
7431 instruction scheduling after register allocation has been done.  This is
7432 especially useful on machines with a relatively small number of
7433 registers and where memory load instructions take more than one cycle.
7434 .Sp
7435 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7436 .IP "\fB\-fno\-sched\-interblock\fR" 4
7437 .IX Item "-fno-sched-interblock"
7438 Don't schedule instructions across basic blocks.  This is normally
7439 enabled by default when scheduling before register allocation, i.e.
7440 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7441 .IP "\fB\-fno\-sched\-spec\fR" 4
7442 .IX Item "-fno-sched-spec"
7443 Don't allow speculative motion of non-load instructions.  This is normally
7444 enabled by default when scheduling before register allocation, i.e.
7445 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7446 .IP "\fB\-fsched\-pressure\fR" 4
7447 .IX Item "-fsched-pressure"
7448 Enable register pressure sensitive insn scheduling before register
7449 allocation.  This only makes sense when scheduling before register
7450 allocation is enabled, i.e. with \fB\-fschedule\-insns\fR or at
7451 \&\fB\-O2\fR or higher.  Usage of this option can improve the
7452 generated code and decrease its size by preventing register pressure
7453 increase above the number of available hard registers and subsequent
7454 spills in register allocation.
7455 .IP "\fB\-fsched\-spec\-load\fR" 4
7456 .IX Item "-fsched-spec-load"
7457 Allow speculative motion of some load instructions.  This only makes
7458 sense when scheduling before register allocation, i.e. with
7459 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7460 .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
7461 .IX Item "-fsched-spec-load-dangerous"
7462 Allow speculative motion of more load instructions.  This only makes
7463 sense when scheduling before register allocation, i.e. with
7464 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7465 .IP "\fB\-fsched\-stalled\-insns\fR" 4
7466 .IX Item "-fsched-stalled-insns"
7467 .PD 0
7468 .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
7469 .IX Item "-fsched-stalled-insns=n"
7470 .PD
7471 Define how many insns (if any) can be moved prematurely from the queue
7472 of stalled insns into the ready list during the second scheduling pass.
7473 \&\fB\-fno\-sched\-stalled\-insns\fR means that no insns are moved
7474 prematurely, \fB\-fsched\-stalled\-insns=0\fR means there is no limit
7475 on how many queued insns can be moved prematurely.
7476 \&\fB\-fsched\-stalled\-insns\fR without a value is equivalent to
7477 \&\fB\-fsched\-stalled\-insns=1\fR.
7478 .IP "\fB\-fsched\-stalled\-insns\-dep\fR" 4
7479 .IX Item "-fsched-stalled-insns-dep"
7480 .PD 0
7481 .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
7482 .IX Item "-fsched-stalled-insns-dep=n"
7483 .PD
7484 Define how many insn groups (cycles) are examined for a dependency
7485 on a stalled insn that is a candidate for premature removal from the queue
7486 of stalled insns.  This has an effect only during the second scheduling pass,
7487 and only if \fB\-fsched\-stalled\-insns\fR is used.
7488 \&\fB\-fno\-sched\-stalled\-insns\-dep\fR is equivalent to
7489 \&\fB\-fsched\-stalled\-insns\-dep=0\fR.
7490 \&\fB\-fsched\-stalled\-insns\-dep\fR without a value is equivalent to
7491 \&\fB\-fsched\-stalled\-insns\-dep=1\fR.
7492 .IP "\fB\-fsched2\-use\-superblocks\fR" 4
7493 .IX Item "-fsched2-use-superblocks"
7494 When scheduling after register allocation, use superblock scheduling.
7495 This allows motion across basic block boundaries,
7496 resulting in faster schedules.  This option is experimental, as not all machine
7497 descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
7498 results from the algorithm.
7499 .Sp
7500 This only makes sense when scheduling after register allocation, i.e. with
7501 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
7502 .IP "\fB\-fsched\-group\-heuristic\fR" 4
7503 .IX Item "-fsched-group-heuristic"
7504 Enable the group heuristic in the scheduler.  This heuristic favors
7505 the instruction that belongs to a schedule group.  This is enabled
7506 by default when scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
7507 or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
7508 .IP "\fB\-fsched\-critical\-path\-heuristic\fR" 4
7509 .IX Item "-fsched-critical-path-heuristic"
7510 Enable the critical-path heuristic in the scheduler.  This heuristic favors
7511 instructions on the critical path.  This is enabled by default when
7512 scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
7513 or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
7514 .IP "\fB\-fsched\-spec\-insn\-heuristic\fR" 4
7515 .IX Item "-fsched-spec-insn-heuristic"
7516 Enable the speculative instruction heuristic in the scheduler.  This
7517 heuristic favors speculative instructions with greater dependency weakness.
7518 This is enabled by default when scheduling is enabled, i.e.
7519 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR
7520 or at \fB\-O2\fR or higher.
7521 .IP "\fB\-fsched\-rank\-heuristic\fR" 4
7522 .IX Item "-fsched-rank-heuristic"
7523 Enable the rank heuristic in the scheduler.  This heuristic favors
7524 the instruction belonging to a basic block with greater size or frequency.
7525 This is enabled by default when scheduling is enabled, i.e.
7526 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
7527 at \fB\-O2\fR or higher.
7528 .IP "\fB\-fsched\-last\-insn\-heuristic\fR" 4
7529 .IX Item "-fsched-last-insn-heuristic"
7530 Enable the last-instruction heuristic in the scheduler.  This heuristic
7531 favors the instruction that is less dependent on the last instruction
7532 scheduled.  This is enabled by default when scheduling is enabled,
7533 i.e. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
7534 at \fB\-O2\fR or higher.
7535 .IP "\fB\-fsched\-dep\-count\-heuristic\fR" 4
7536 .IX Item "-fsched-dep-count-heuristic"
7537 Enable the dependent-count heuristic in the scheduler.  This heuristic
7538 favors the instruction that has more instructions depending on it.
7539 This is enabled by default when scheduling is enabled, i.e.
7540 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
7541 at \fB\-O2\fR or higher.
7542 .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
7543 .IX Item "-freschedule-modulo-scheduled-loops"
7544 Modulo scheduling is performed before traditional scheduling.  If a loop
7545 is modulo scheduled, later scheduling passes may change its schedule.  
7546 Use this option to control that behavior.
7547 .IP "\fB\-fselective\-scheduling\fR" 4
7548 .IX Item "-fselective-scheduling"
7549 Schedule instructions using selective scheduling algorithm.  Selective
7550 scheduling runs instead of the first scheduler pass.
7551 .IP "\fB\-fselective\-scheduling2\fR" 4
7552 .IX Item "-fselective-scheduling2"
7553 Schedule instructions using selective scheduling algorithm.  Selective
7554 scheduling runs instead of the second scheduler pass.
7555 .IP "\fB\-fsel\-sched\-pipelining\fR" 4
7556 .IX Item "-fsel-sched-pipelining"
7557 Enable software pipelining of innermost loops during selective scheduling.
7558 This option has no effect unless one of \fB\-fselective\-scheduling\fR or
7559 \&\fB\-fselective\-scheduling2\fR is turned on.
7560 .IP "\fB\-fsel\-sched\-pipelining\-outer\-loops\fR" 4
7561 .IX Item "-fsel-sched-pipelining-outer-loops"
7562 When pipelining loops during selective scheduling, also pipeline outer loops.
7563 This option has no effect unless \fB\-fsel\-sched\-pipelining\fR is turned on.
7564 .IP "\fB\-fsemantic\-interposition\fR" 4
7565 .IX Item "-fsemantic-interposition"
7566 Some object formats, like \s-1ELF\s0, allow interposing of symbols by the 
7567 dynamic linker.
7568 This means that for symbols exported from the \s-1DSO\s0, the compiler cannot perform
7569 interprocedural propagation, inlining and other optimizations in anticipation
7570 that the function or variable in question may change. While this feature is
7571 useful, for example, to rewrite memory allocation functions by a debugging
7572 implementation, it is expensive in the terms of code quality.
7573 With \fB\-fno\-semantic\-interposition\fR the compiler assumes that 
7574 if interposition happens for functions the overwriting function will have 
7575 precisely the same semantics (and side effects). 
7576 Similarly if interposition happens
7577 for variables, the constructor of the variable will be the same. The flag
7578 has no effect for functions explicitly declared inline 
7579 (where it is never allowed for interposition to change semantics) 
7580 and for symbols explicitly declared weak.
7581 .IP "\fB\-fshrink\-wrap\fR" 4
7582 .IX Item "-fshrink-wrap"
7583 Emit function prologues only before parts of the function that need it,
7584 rather than at the top of the function.  This flag is enabled by default at
7585 \&\fB\-O\fR and higher.
7586 .IP "\fB\-fcaller\-saves\fR" 4
7587 .IX Item "-fcaller-saves"
7588 Enable allocation of values to registers that are clobbered by
7589 function calls, by emitting extra instructions to save and restore the
7590 registers around such calls.  Such allocation is done only when it
7591 seems to result in better code.
7592 .Sp
7593 This option is always enabled by default on certain machines, usually
7594 those which have no call-preserved registers to use instead.
7595 .Sp
7596 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7597 .IP "\fB\-fcombine\-stack\-adjustments\fR" 4
7598 .IX Item "-fcombine-stack-adjustments"
7599 Tracks stack adjustments (pushes and pops) and stack memory references
7600 and then tries to find ways to combine them.
7601 .Sp
7602 Enabled by default at \fB\-O1\fR and higher.
7603 .IP "\fB\-fipa\-ra\fR" 4
7604 .IX Item "-fipa-ra"
7605 Use caller save registers for allocation if those registers are not used by
7606 any called function.  In that case it is not necessary to save and restore
7607 them around calls.  This is only possible if called functions are part of
7608 same compilation unit as current function and they are compiled before it.
7609 .Sp
7610 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7611 .IP "\fB\-fconserve\-stack\fR" 4
7612 .IX Item "-fconserve-stack"
7613 Attempt to minimize stack usage.  The compiler attempts to use less
7614 stack space, even if that makes the program slower.  This option
7615 implies setting the \fBlarge-stack-frame\fR parameter to 100
7616 and the \fBlarge-stack-frame-growth\fR parameter to 400.
7617 .IP "\fB\-ftree\-reassoc\fR" 4
7618 .IX Item "-ftree-reassoc"
7619 Perform reassociation on trees.  This flag is enabled by default
7620 at \fB\-O\fR and higher.
7621 .IP "\fB\-ftree\-pre\fR" 4
7622 .IX Item "-ftree-pre"
7623 Perform partial redundancy elimination (\s-1PRE\s0) on trees.  This flag is
7624 enabled by default at \fB\-O2\fR and \fB\-O3\fR.
7625 .IP "\fB\-ftree\-partial\-pre\fR" 4
7626 .IX Item "-ftree-partial-pre"
7627 Make partial redundancy elimination (\s-1PRE\s0) more aggressive.  This flag is
7628 enabled by default at \fB\-O3\fR.
7629 .IP "\fB\-ftree\-forwprop\fR" 4
7630 .IX Item "-ftree-forwprop"
7631 Perform forward propagation on trees.  This flag is enabled by default
7632 at \fB\-O\fR and higher.
7633 .IP "\fB\-ftree\-fre\fR" 4
7634 .IX Item "-ftree-fre"
7635 Perform full redundancy elimination (\s-1FRE\s0) on trees.  The difference
7636 between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
7637 that are computed on all paths leading to the redundant computation.
7638 This analysis is faster than \s-1PRE\s0, though it exposes fewer redundancies.
7639 This flag is enabled by default at \fB\-O\fR and higher.
7640 .IP "\fB\-ftree\-phiprop\fR" 4
7641 .IX Item "-ftree-phiprop"
7642 Perform hoisting of loads from conditional pointers on trees.  This
7643 pass is enabled by default at \fB\-O\fR and higher.
7644 .IP "\fB\-fhoist\-adjacent\-loads\fR" 4
7645 .IX Item "-fhoist-adjacent-loads"
7646 Speculatively hoist loads from both branches of an if-then-else if the
7647 loads are from adjacent locations in the same structure and the target
7648 architecture has a conditional move instruction.  This flag is enabled
7649 by default at \fB\-O2\fR and higher.
7650 .IP "\fB\-ftree\-copy\-prop\fR" 4
7651 .IX Item "-ftree-copy-prop"
7652 Perform copy propagation on trees.  This pass eliminates unnecessary
7653 copy operations.  This flag is enabled by default at \fB\-O\fR and
7654 higher.
7655 .IP "\fB\-fipa\-pure\-const\fR" 4
7656 .IX Item "-fipa-pure-const"
7657 Discover which functions are pure or constant.
7658 Enabled by default at \fB\-O\fR and higher.
7659 .IP "\fB\-fipa\-reference\fR" 4
7660 .IX Item "-fipa-reference"
7661 Discover which static variables do not escape the
7662 compilation unit.
7663 Enabled by default at \fB\-O\fR and higher.
7664 .IP "\fB\-fipa\-pta\fR" 4
7665 .IX Item "-fipa-pta"
7666 Perform interprocedural pointer analysis and interprocedural modification
7667 and reference analysis.  This option can cause excessive memory and
7668 compile-time usage on large compilation units.  It is not enabled by
7669 default at any optimization level.
7670 .IP "\fB\-fipa\-profile\fR" 4
7671 .IX Item "-fipa-profile"
7672 Perform interprocedural profile propagation.  The functions called only from
7673 cold functions are marked as cold. Also functions executed once (such as
7674 \&\f(CW\*(C`cold\*(C'\fR, \f(CW\*(C`noreturn\*(C'\fR, static constructors or destructors) are identified. Cold
7675 functions and loop less parts of functions executed once are then optimized for
7676 size.
7677 Enabled by default at \fB\-O\fR and higher.
7678 .IP "\fB\-fipa\-cp\fR" 4
7679 .IX Item "-fipa-cp"
7680 Perform interprocedural constant propagation.
7681 This optimization analyzes the program to determine when values passed
7682 to functions are constants and then optimizes accordingly.
7683 This optimization can substantially increase performance
7684 if the application has constants passed to functions.
7685 This flag is enabled by default at \fB\-O2\fR, \fB\-Os\fR and \fB\-O3\fR.
7686 .IP "\fB\-fipa\-cp\-clone\fR" 4
7687 .IX Item "-fipa-cp-clone"
7688 Perform function cloning to make interprocedural constant propagation stronger.
7689 When enabled, interprocedural constant propagation performs function cloning
7690 when externally visible function can be called with constant arguments.
7691 Because this optimization can create multiple copies of functions,
7692 it may significantly increase code size
7693 (see \fB\-\-param ipcp\-unit\-growth=\fR\fIvalue\fR).
7694 This flag is enabled by default at \fB\-O3\fR.
7695 .IP "\fB\-fipa\-cp\-alignment\fR" 4
7696 .IX Item "-fipa-cp-alignment"
7697 When enabled, this optimization propagates alignment of function
7698 parameters to support better vectorization and string operations.
7699 .Sp
7700 This flag is enabled by default at \fB\-O2\fR and \fB\-Os\fR.  It
7701 requires that \fB\-fipa\-cp\fR is enabled.
7702 .IP "\fB\-fipa\-icf\fR" 4
7703 .IX Item "-fipa-icf"
7704 Perform Identical Code Folding for functions and read-only variables.
7705 The optimization reduces code size and may disturb unwind stacks by replacing
7706 a function by equivalent one with a different name. The optimization works
7707 more effectively with link time optimization enabled.
7708 .Sp
7709 Nevertheless the behavior is similar to Gold Linker \s-1ICF\s0 optimization, \s-1GCC\s0 \s-1ICF\s0
7710 works on different levels and thus the optimizations are not same \- there are
7711 equivalences that are found only by \s-1GCC\s0 and equivalences found only by Gold.
7712 .Sp
7713 This flag is enabled by default at \fB\-O2\fR and \fB\-Os\fR.
7714 .IP "\fB\-fisolate\-erroneous\-paths\-dereference\fR" 4
7715 .IX Item "-fisolate-erroneous-paths-dereference"
7716 Detect paths that trigger erroneous or undefined behavior due to
7717 dereferencing a null pointer.  Isolate those paths from the main control
7718 flow and turn the statement with erroneous or undefined behavior into a trap.
7719 This flag is enabled by default at \fB\-O2\fR and higher.
7720 .IP "\fB\-fisolate\-erroneous\-paths\-attribute\fR" 4
7721 .IX Item "-fisolate-erroneous-paths-attribute"
7722 Detect paths that trigger erroneous or undefined behavior due a null value
7723 being used in a way forbidden by a \f(CW\*(C`returns_nonnull\*(C'\fR or \f(CW\*(C`nonnull\*(C'\fR
7724 attribute.  Isolate those paths from the main control flow and turn the
7725 statement with erroneous or undefined behavior into a trap.  This is not
7726 currently enabled, but may be enabled by \fB\-O2\fR in the future.
7727 .IP "\fB\-ftree\-sink\fR" 4
7728 .IX Item "-ftree-sink"
7729 Perform forward store motion  on trees.  This flag is
7730 enabled by default at \fB\-O\fR and higher.
7731 .IP "\fB\-ftree\-bit\-ccp\fR" 4
7732 .IX Item "-ftree-bit-ccp"
7733 Perform sparse conditional bit constant propagation on trees and propagate
7734 pointer alignment information.
7735 This pass only operates on local scalar variables and is enabled by default
7736 at \fB\-O\fR and higher.  It requires that \fB\-ftree\-ccp\fR is enabled.
7737 .IP "\fB\-ftree\-ccp\fR" 4
7738 .IX Item "-ftree-ccp"
7739 Perform sparse conditional constant propagation (\s-1CCP\s0) on trees.  This
7740 pass only operates on local scalar variables and is enabled by default
7741 at \fB\-O\fR and higher.
7742 .IP "\fB\-fssa\-phiopt\fR" 4
7743 .IX Item "-fssa-phiopt"
7744 Perform pattern matching on \s-1SSA\s0 \s-1PHI\s0 nodes to optimize conditional
7745 code.  This pass is enabled by default at \fB\-O\fR and higher.
7746 .IP "\fB\-ftree\-switch\-conversion\fR" 4
7747 .IX Item "-ftree-switch-conversion"
7748 Perform conversion of simple initializations in a switch to
7749 initializations from a scalar array.  This flag is enabled by default
7750 at \fB\-O2\fR and higher.
7751 .IP "\fB\-ftree\-tail\-merge\fR" 4
7752 .IX Item "-ftree-tail-merge"
7753 Look for identical code sequences.  When found, replace one with a jump to the
7754 other.  This optimization is known as tail merging or cross jumping.  This flag
7755 is enabled by default at \fB\-O2\fR and higher.  The compilation time
7756 in this pass can
7757 be limited using \fBmax-tail-merge-comparisons\fR parameter and
7758 \&\fBmax-tail-merge-iterations\fR parameter.
7759 .IP "\fB\-ftree\-dce\fR" 4
7760 .IX Item "-ftree-dce"
7761 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
7762 default at \fB\-O\fR and higher.
7763 .IP "\fB\-ftree\-builtin\-call\-dce\fR" 4
7764 .IX Item "-ftree-builtin-call-dce"
7765 Perform conditional dead code elimination (\s-1DCE\s0) for calls to built-in functions
7766 that may set \f(CW\*(C`errno\*(C'\fR but are otherwise side-effect free.  This flag is
7767 enabled by default at \fB\-O2\fR and higher if \fB\-Os\fR is not also
7768 specified.
7769 .IP "\fB\-ftree\-dominator\-opts\fR" 4
7770 .IX Item "-ftree-dominator-opts"
7771 Perform a variety of simple scalar cleanups (constant/copy
7772 propagation, redundancy elimination, range propagation and expression
7773 simplification) based on a dominator tree traversal.  This also
7774 performs jump threading (to reduce jumps to jumps). This flag is
7775 enabled by default at \fB\-O\fR and higher.
7776 .IP "\fB\-ftree\-dse\fR" 4
7777 .IX Item "-ftree-dse"
7778 Perform dead store elimination (\s-1DSE\s0) on trees.  A dead store is a store into
7779 a memory location that is later overwritten by another store without
7780 any intervening loads.  In this case the earlier store can be deleted.  This
7781 flag is enabled by default at \fB\-O\fR and higher.
7782 .IP "\fB\-ftree\-ch\fR" 4
7783 .IX Item "-ftree-ch"
7784 Perform loop header copying on trees.  This is beneficial since it increases
7785 effectiveness of code motion optimizations.  It also saves one jump.  This flag
7786 is enabled by default at \fB\-O\fR and higher.  It is not enabled
7787 for \fB\-Os\fR, since it usually increases code size.
7788 .IP "\fB\-ftree\-loop\-optimize\fR" 4
7789 .IX Item "-ftree-loop-optimize"
7790 Perform loop optimizations on trees.  This flag is enabled by default
7791 at \fB\-O\fR and higher.
7792 .IP "\fB\-ftree\-loop\-linear\fR" 4
7793 .IX Item "-ftree-loop-linear"
7794 Perform loop interchange transformations on tree.  Same as
7795 \&\fB\-floop\-interchange\fR.  To use this code transformation, \s-1GCC\s0 has
7796 to be configured with \fB\-\-with\-isl\fR to enable the Graphite loop
7797 transformation infrastructure.
7798 .IP "\fB\-floop\-interchange\fR" 4
7799 .IX Item "-floop-interchange"
7800 Perform loop interchange transformations on loops.  Interchanging two
7801 nested loops switches the inner and outer loops.  For example, given a
7802 loop like:
7803 .Sp
7804 .Vb 5
7805 \&        DO J = 1, M
7806 \&          DO I = 1, N
7807 \&            A(J, I) = A(J, I) * C
7808 \&          ENDDO
7809 \&        ENDDO
7810 .Ve
7811 .Sp
7812 loop interchange transforms the loop as if it were written:
7813 .Sp
7814 .Vb 5
7815 \&        DO I = 1, N
7816 \&          DO J = 1, M
7817 \&            A(J, I) = A(J, I) * C
7818 \&          ENDDO
7819 \&        ENDDO
7820 .Ve
7821 .Sp
7822 which can be beneficial when \f(CW\*(C`N\*(C'\fR is larger than the caches,
7823 because in Fortran, the elements of an array are stored in memory
7824 contiguously by column, and the original loop iterates over rows,
7825 potentially creating at each access a cache miss.  This optimization
7826 applies to all the languages supported by \s-1GCC\s0 and is not limited to
7827 Fortran.  To use this code transformation, \s-1GCC\s0 has to be configured
7828 with \fB\-\-with\-isl\fR to enable the Graphite loop transformation
7829 infrastructure.
7830 .IP "\fB\-floop\-strip\-mine\fR" 4
7831 .IX Item "-floop-strip-mine"
7832 Perform loop strip mining transformations on loops.  Strip mining
7833 splits a loop into two nested loops.  The outer loop has strides
7834 equal to the strip size and the inner loop has strides of the
7835 original loop within a strip.  The strip length can be changed
7836 using the \fBloop-block-tile-size\fR parameter.  For example,
7837 given a loop like:
7838 .Sp
7839 .Vb 3
7840 \&        DO I = 1, N
7841 \&          A(I) = A(I) + C
7842 \&        ENDDO
7843 .Ve
7844 .Sp
7845 loop strip mining transforms the loop as if it were written:
7846 .Sp
7847 .Vb 5
7848 \&        DO II = 1, N, 51
7849 \&          DO I = II, min (II + 50, N)
7850 \&            A(I) = A(I) + C
7851 \&          ENDDO
7852 \&        ENDDO
7853 .Ve
7854 .Sp
7855 This optimization applies to all the languages supported by \s-1GCC\s0 and is
7856 not limited to Fortran.  To use this code transformation, \s-1GCC\s0 has to
7857 be configured with \fB\-\-with\-isl\fR to enable the Graphite loop
7858 transformation infrastructure.
7859 .IP "\fB\-floop\-block\fR" 4
7860 .IX Item "-floop-block"
7861 Perform loop blocking transformations on loops.  Blocking strip mines
7862 each loop in the loop nest such that the memory accesses of the
7863 element loops fit inside caches.  The strip length can be changed
7864 using the \fBloop-block-tile-size\fR parameter.  For example, given
7865 a loop like:
7866 .Sp
7867 .Vb 5
7868 \&        DO I = 1, N
7869 \&          DO J = 1, M
7870 \&            A(J, I) = B(I) + C(J)
7871 \&          ENDDO
7872 \&        ENDDO
7873 .Ve
7874 .Sp
7875 loop blocking transforms the loop as if it were written:
7876 .Sp
7877 .Vb 9
7878 \&        DO II = 1, N, 51
7879 \&          DO JJ = 1, M, 51
7880 \&            DO I = II, min (II + 50, N)
7881 \&              DO J = JJ, min (JJ + 50, M)
7882 \&                A(J, I) = B(I) + C(J)
7883 \&              ENDDO
7884 \&            ENDDO
7885 \&          ENDDO
7886 \&        ENDDO
7887 .Ve
7888 .Sp
7889 which can be beneficial when \f(CW\*(C`M\*(C'\fR is larger than the caches,
7890 because the innermost loop iterates over a smaller amount of data
7891 which can be kept in the caches.  This optimization applies to all the
7892 languages supported by \s-1GCC\s0 and is not limited to Fortran.  To use this
7893 code transformation, \s-1GCC\s0 has to be configured with \fB\-\-with\-isl\fR
7894 to enable the Graphite loop transformation infrastructure.
7895 .IP "\fB\-fgraphite\-identity\fR" 4
7896 .IX Item "-fgraphite-identity"
7897 Enable the identity transformation for graphite.  For every SCoP we generate
7898 the polyhedral representation and transform it back to gimple.  Using
7899 \&\fB\-fgraphite\-identity\fR we can check the costs or benefits of the
7900 \&\s-1GIMPLE\s0 \-> \s-1GRAPHITE\s0 \-> \s-1GIMPLE\s0 transformation.  Some minimal optimizations
7901 are also performed by the code generator \s-1ISL\s0, like index splitting and
7902 dead code elimination in loops.
7903 .IP "\fB\-floop\-nest\-optimize\fR" 4
7904 .IX Item "-floop-nest-optimize"
7905 Enable the \s-1ISL\s0 based loop nest optimizer.  This is a generic loop nest
7906 optimizer based on the Pluto optimization algorithms.  It calculates a loop
7907 structure optimized for data-locality and parallelism.  This option
7908 is experimental.
7909 .IP "\fB\-floop\-unroll\-and\-jam\fR" 4
7910 .IX Item "-floop-unroll-and-jam"
7911 Enable unroll and jam for the \s-1ISL\s0 based loop nest optimizer.  The unroll 
7912 factor can be changed using the \fBloop-unroll-jam-size\fR parameter.
7913 The unrolled dimension (counting from the most inner one) can be changed 
7914 using the \fBloop-unroll-jam-depth\fR parameter.                 .
7915 .IP "\fB\-floop\-parallelize\-all\fR" 4
7916 .IX Item "-floop-parallelize-all"
7917 Use the Graphite data dependence analysis to identify loops that can
7918 be parallelized.  Parallelize all the loops that can be analyzed to
7919 not contain loop carried dependences without checking that it is
7920 profitable to parallelize the loops.
7921 .IP "\fB\-fcheck\-data\-deps\fR" 4
7922 .IX Item "-fcheck-data-deps"
7923 Compare the results of several data dependence analyzers.  This option
7924 is used for debugging the data dependence analyzers.
7925 .IP "\fB\-ftree\-loop\-if\-convert\fR" 4
7926 .IX Item "-ftree-loop-if-convert"
7927 Attempt to transform conditional jumps in the innermost loops to
7928 branch-less equivalents.  The intent is to remove control-flow from
7929 the innermost loops in order to improve the ability of the
7930 vectorization pass to handle these loops.  This is enabled by default
7931 if vectorization is enabled.
7932 .IP "\fB\-ftree\-loop\-if\-convert\-stores\fR" 4
7933 .IX Item "-ftree-loop-if-convert-stores"
7934 Attempt to also if-convert conditional jumps containing memory writes.
7935 This transformation can be unsafe for multi-threaded programs as it
7936 transforms conditional memory writes into unconditional memory writes.
7937 For example,
7938 .Sp
7939 .Vb 3
7940 \&        for (i = 0; i < N; i++)
7941 \&          if (cond)
7942 \&            A[i] = expr;
7943 .Ve
7944 .Sp
7945 is transformed to
7946 .Sp
7947 .Vb 2
7948 \&        for (i = 0; i < N; i++)
7949 \&          A[i] = cond ? expr : A[i];
7950 .Ve
7951 .Sp
7952 potentially producing data races.
7953 .IP "\fB\-ftree\-loop\-distribution\fR" 4
7954 .IX Item "-ftree-loop-distribution"
7955 Perform loop distribution.  This flag can improve cache performance on
7956 big loop bodies and allow further loop optimizations, like
7957 parallelization or vectorization, to take place.  For example, the loop
7958 .Sp
7959 .Vb 4
7960 \&        DO I = 1, N
7961 \&          A(I) = B(I) + C
7962 \&          D(I) = E(I) * F
7963 \&        ENDDO
7964 .Ve
7965 .Sp
7966 is transformed to
7967 .Sp
7968 .Vb 6
7969 \&        DO I = 1, N
7970 \&           A(I) = B(I) + C
7971 \&        ENDDO
7972 \&        DO I = 1, N
7973 \&           D(I) = E(I) * F
7974 \&        ENDDO
7975 .Ve
7976 .IP "\fB\-ftree\-loop\-distribute\-patterns\fR" 4
7977 .IX Item "-ftree-loop-distribute-patterns"
7978 Perform loop distribution of patterns that can be code generated with
7979 calls to a library.  This flag is enabled by default at \fB\-O3\fR.
7980 .Sp
7981 This pass distributes the initialization loops and generates a call to
7982 memset zero.  For example, the loop
7983 .Sp
7984 .Vb 4
7985 \&        DO I = 1, N
7986 \&          A(I) = 0
7987 \&          B(I) = A(I) + I
7988 \&        ENDDO
7989 .Ve
7990 .Sp
7991 is transformed to
7992 .Sp
7993 .Vb 6
7994 \&        DO I = 1, N
7995 \&           A(I) = 0
7996 \&        ENDDO
7997 \&        DO I = 1, N
7998 \&           B(I) = A(I) + I
7999 \&        ENDDO
8000 .Ve
8001 .Sp
8002 and the initialization loop is transformed into a call to memset zero.
8003 .IP "\fB\-ftree\-loop\-im\fR" 4
8004 .IX Item "-ftree-loop-im"
8005 Perform loop invariant motion on trees.  This pass moves only invariants that
8006 are hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
8007 nontrivial sequences of insns).  With \fB\-funswitch\-loops\fR it also moves
8008 operands of conditions that are invariant out of the loop, so that we can use
8009 just trivial invariantness analysis in loop unswitching.  The pass also includes
8010 store motion.
8011 .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
8012 .IX Item "-ftree-loop-ivcanon"
8013 Create a canonical counter for number of iterations in loops for which
8014 determining number of iterations requires complicated analysis.  Later
8015 optimizations then may determine the number easily.  Useful especially
8016 in connection with unrolling.
8017 .IP "\fB\-fivopts\fR" 4
8018 .IX Item "-fivopts"
8019 Perform induction variable optimizations (strength reduction, induction
8020 variable merging and induction variable elimination) on trees.
8021 .IP "\fB\-ftree\-parallelize\-loops=n\fR" 4
8022 .IX Item "-ftree-parallelize-loops=n"
8023 Parallelize loops, i.e., split their iteration space to run in n threads.
8024 This is only possible for loops whose iterations are independent
8025 and can be arbitrarily reordered.  The optimization is only
8026 profitable on multiprocessor machines, for loops that are CPU-intensive,
8027 rather than constrained e.g. by memory bandwidth.  This option
8028 implies \fB\-pthread\fR, and thus is only supported on targets
8029 that have support for \fB\-pthread\fR.
8030 .IP "\fB\-ftree\-pta\fR" 4
8031 .IX Item "-ftree-pta"
8032 Perform function-local points-to analysis on trees.  This flag is
8033 enabled by default at \fB\-O\fR and higher.
8034 .IP "\fB\-ftree\-sra\fR" 4
8035 .IX Item "-ftree-sra"
8036 Perform scalar replacement of aggregates.  This pass replaces structure
8037 references with scalars to prevent committing structures to memory too
8038 early.  This flag is enabled by default at \fB\-O\fR and higher.
8039 .IP "\fB\-ftree\-copyrename\fR" 4
8040 .IX Item "-ftree-copyrename"
8041 Perform copy renaming on trees.  This pass attempts to rename compiler
8042 temporaries to other variables at copy locations, usually resulting in
8043 variable names which more closely resemble the original variables.  This flag
8044 is enabled by default at \fB\-O\fR and higher.
8045 .IP "\fB\-ftree\-coalesce\-inlined\-vars\fR" 4
8046 .IX Item "-ftree-coalesce-inlined-vars"
8047 Tell the copyrename pass (see \fB\-ftree\-copyrename\fR) to attempt to
8048 combine small user-defined variables too, but only if they are inlined
8049 from other functions.  It is a more limited form of
8050 \&\fB\-ftree\-coalesce\-vars\fR.  This may harm debug information of such
8051 inlined variables, but it keeps variables of the inlined-into
8052 function apart from each other, such that they are more likely to
8053 contain the expected values in a debugging session.
8054 .IP "\fB\-ftree\-coalesce\-vars\fR" 4
8055 .IX Item "-ftree-coalesce-vars"
8056 Tell the copyrename pass (see \fB\-ftree\-copyrename\fR) to attempt to
8057 combine small user-defined variables too, instead of just compiler
8058 temporaries.  This may severely limit the ability to debug an optimized
8059 program compiled with \fB\-fno\-var\-tracking\-assignments\fR.  In the
8060 negated form, this flag prevents \s-1SSA\s0 coalescing of user variables,
8061 including inlined ones.  This option is enabled by default.
8062 .IP "\fB\-ftree\-ter\fR" 4
8063 .IX Item "-ftree-ter"
8064 Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase.  Single
8065 use/single def temporaries are replaced at their use location with their
8066 defining expression.  This results in non-GIMPLE code, but gives the expanders
8067 much more complex trees to work on resulting in better \s-1RTL\s0 generation.  This is
8068 enabled by default at \fB\-O\fR and higher.
8069 .IP "\fB\-ftree\-slsr\fR" 4
8070 .IX Item "-ftree-slsr"
8071 Perform straight-line strength reduction on trees.  This recognizes related
8072 expressions involving multiplications and replaces them by less expensive
8073 calculations when possible.  This is enabled by default at \fB\-O\fR and
8074 higher.
8075 .IP "\fB\-ftree\-vectorize\fR" 4
8076 .IX Item "-ftree-vectorize"
8077 Perform vectorization on trees. This flag enables \fB\-ftree\-loop\-vectorize\fR
8078 and \fB\-ftree\-slp\-vectorize\fR if not explicitly specified.
8079 .IP "\fB\-ftree\-loop\-vectorize\fR" 4
8080 .IX Item "-ftree-loop-vectorize"
8081 Perform loop vectorization on trees. This flag is enabled by default at
8082 \&\fB\-O3\fR and when \fB\-ftree\-vectorize\fR is enabled.
8083 .IP "\fB\-ftree\-slp\-vectorize\fR" 4
8084 .IX Item "-ftree-slp-vectorize"
8085 Perform basic block vectorization on trees. This flag is enabled by default at
8086 \&\fB\-O3\fR and when \fB\-ftree\-vectorize\fR is enabled.
8087 .IP "\fB\-fvect\-cost\-model=\fR\fImodel\fR" 4
8088 .IX Item "-fvect-cost-model=model"
8089 Alter the cost model used for vectorization.  The \fImodel\fR argument
8090 should be one of \fBunlimited\fR, \fBdynamic\fR or \fBcheap\fR.
8091 With the \fBunlimited\fR model the vectorized code-path is assumed
8092 to be profitable while with the \fBdynamic\fR model a runtime check
8093 guards the vectorized code-path to enable it only for iteration
8094 counts that will likely execute faster than when executing the original
8095 scalar loop.  The \fBcheap\fR model disables vectorization of
8096 loops where doing so would be cost prohibitive for example due to
8097 required runtime checks for data dependence or alignment but otherwise
8098 is equal to the \fBdynamic\fR model.
8099 The default cost model depends on other optimization flags and is
8100 either \fBdynamic\fR or \fBcheap\fR.
8101 .IP "\fB\-fsimd\-cost\-model=\fR\fImodel\fR" 4
8102 .IX Item "-fsimd-cost-model=model"
8103 Alter the cost model used for vectorization of loops marked with the OpenMP
8104 or Cilk Plus simd directive.  The \fImodel\fR argument should be one of
8105 \&\fBunlimited\fR, \fBdynamic\fR, \fBcheap\fR.  All values of \fImodel\fR
8106 have the same meaning as described in \fB\-fvect\-cost\-model\fR and by
8107 default a cost model defined with \fB\-fvect\-cost\-model\fR is used.
8108 .IP "\fB\-ftree\-vrp\fR" 4
8109 .IX Item "-ftree-vrp"
8110 Perform Value Range Propagation on trees.  This is similar to the
8111 constant propagation pass, but instead of values, ranges of values are
8112 propagated.  This allows the optimizers to remove unnecessary range
8113 checks like array bound checks and null pointer checks.  This is
8114 enabled by default at \fB\-O2\fR and higher.  Null pointer check
8115 elimination is only done if \fB\-fdelete\-null\-pointer\-checks\fR is
8116 enabled.
8117 .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
8118 .IX Item "-fsplit-ivs-in-unroller"
8119 Enables expression of values of induction variables in later iterations
8120 of the unrolled loop using the value in the first iteration.  This breaks
8121 long dependency chains, thus improving efficiency of the scheduling passes.
8122 .Sp
8123 A combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
8124 same effect.  However, that is not reliable in cases where the loop body
8125 is more complicated than a single basic block.  It also does not work at all
8126 on some architectures due to restrictions in the \s-1CSE\s0 pass.
8127 .Sp
8128 This optimization is enabled by default.
8129 .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
8130 .IX Item "-fvariable-expansion-in-unroller"
8131 With this option, the compiler creates multiple copies of some
8132 local variables when unrolling a loop, which can result in superior code.
8133 .IP "\fB\-fpartial\-inlining\fR" 4
8134 .IX Item "-fpartial-inlining"
8135 Inline parts of functions.  This option has any effect only
8136 when inlining itself is turned on by the \fB\-finline\-functions\fR
8137 or \fB\-finline\-small\-functions\fR options.
8138 .Sp
8139 Enabled at level \fB\-O2\fR.
8140 .IP "\fB\-fpredictive\-commoning\fR" 4
8141 .IX Item "-fpredictive-commoning"
8142 Perform predictive commoning optimization, i.e., reusing computations
8143 (especially memory loads and stores) performed in previous
8144 iterations of loops.
8145 .Sp
8146 This option is enabled at level \fB\-O3\fR.
8147 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
8148 .IX Item "-fprefetch-loop-arrays"
8149 If supported by the target machine, generate instructions to prefetch
8150 memory to improve the performance of loops that access large arrays.
8151 .Sp
8152 This option may generate better or worse code; results are highly
8153 dependent on the structure of loops within the source code.
8154 .Sp
8155 Disabled at level \fB\-Os\fR.
8156 .IP "\fB\-fno\-peephole\fR" 4
8157 .IX Item "-fno-peephole"
8158 .PD 0
8159 .IP "\fB\-fno\-peephole2\fR" 4
8160 .IX Item "-fno-peephole2"
8161 .PD
8162 Disable any machine-specific peephole optimizations.  The difference
8163 between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
8164 are implemented in the compiler; some targets use one, some use the
8165 other, a few use both.
8166 .Sp
8167 \&\fB\-fpeephole\fR is enabled by default.
8168 \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8169 .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
8170 .IX Item "-fno-guess-branch-probability"
8171 Do not guess branch probabilities using heuristics.
8172 .Sp
8173 \&\s-1GCC\s0 uses heuristics to guess branch probabilities if they are
8174 not provided by profiling feedback (\fB\-fprofile\-arcs\fR).  These
8175 heuristics are based on the control flow graph.  If some branch probabilities
8176 are specified by \f(CW\*(C`_\|_builtin_expect\*(C'\fR, then the heuristics are
8177 used to guess branch probabilities for the rest of the control flow graph,
8178 taking the \f(CW\*(C`_\|_builtin_expect\*(C'\fR info into account.  The interactions
8179 between the heuristics and \f(CW\*(C`_\|_builtin_expect\*(C'\fR can be complex, and in
8180 some cases, it may be useful to disable the heuristics so that the effects
8181 of \f(CW\*(C`_\|_builtin_expect\*(C'\fR are easier to understand.
8182 .Sp
8183 The default is \fB\-fguess\-branch\-probability\fR at levels
8184 \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8185 .IP "\fB\-freorder\-blocks\fR" 4
8186 .IX Item "-freorder-blocks"
8187 Reorder basic blocks in the compiled function in order to reduce number of
8188 taken branches and improve code locality.
8189 .Sp
8190 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8191 .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
8192 .IX Item "-freorder-blocks-and-partition"
8193 In addition to reordering basic blocks in the compiled function, in order
8194 to reduce number of taken branches, partitions hot and cold basic blocks
8195 into separate sections of the assembly and .o files, to improve
8196 paging and cache locality performance.
8197 .Sp
8198 This optimization is automatically turned off in the presence of
8199 exception handling, for linkonce sections, for functions with a user-defined
8200 section attribute and on any architecture that does not support named
8201 sections.
8202 .Sp
8203 Enabled for x86 at levels \fB\-O2\fR, \fB\-O3\fR.
8204 .IP "\fB\-freorder\-functions\fR" 4
8205 .IX Item "-freorder-functions"
8206 Reorder functions in the object file in order to
8207 improve code locality.  This is implemented by using special
8208 subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
8209 \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions.  Reordering is done by
8210 the linker so object file format must support named sections and linker must
8211 place them in a reasonable way.
8212 .Sp
8213 Also profile feedback must be available to make this option effective.  See
8214 \&\fB\-fprofile\-arcs\fR for details.
8215 .Sp
8216 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8217 .IP "\fB\-fstrict\-aliasing\fR" 4
8218 .IX Item "-fstrict-aliasing"
8219 Allow the compiler to assume the strictest aliasing rules applicable to
8220 the language being compiled.  For C (and \*(C+), this activates
8221 optimizations based on the type of expressions.  In particular, an
8222 object of one type is assumed never to reside at the same address as an
8223 object of a different type, unless the types are almost the same.  For
8224 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
8225 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
8226 type.
8227 .Sp
8228 Pay special attention to code like this:
8229 .Sp
8230 .Vb 4
8231 \&        union a_union {
8232 \&          int i;
8233 \&          double d;
8234 \&        };
8235 \&        
8236 \&        int f() {
8237 \&          union a_union t;
8238 \&          t.d = 3.0;
8239 \&          return t.i;
8240 \&        }
8241 .Ve
8242 .Sp
8243 The practice of reading from a different union member than the one most
8244 recently written to (called \*(L"type-punning\*(R") is common.  Even with
8245 \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
8246 is accessed through the union type.  So, the code above works as
8247 expected.    However, this code might not:
8248 .Sp
8249 .Vb 7
8250 \&        int f() {
8251 \&          union a_union t;
8252 \&          int* ip;
8253 \&          t.d = 3.0;
8254 \&          ip = &t.i;
8255 \&          return *ip;
8256 \&        }
8257 .Ve
8258 .Sp
8259 Similarly, access by taking the address, casting the resulting pointer
8260 and dereferencing the result has undefined behavior, even if the cast
8261 uses a union type, e.g.:
8262 .Sp
8263 .Vb 4
8264 \&        int f() {
8265 \&          double d = 3.0;
8266 \&          return ((union a_union *) &d)\->i;
8267 \&        }
8268 .Ve
8269 .Sp
8270 The \fB\-fstrict\-aliasing\fR option is enabled at levels
8271 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8272 .IP "\fB\-fstrict\-overflow\fR" 4
8273 .IX Item "-fstrict-overflow"
8274 Allow the compiler to assume strict signed overflow rules, depending
8275 on the language being compiled.  For C (and \*(C+) this means that
8276 overflow when doing arithmetic with signed numbers is undefined, which
8277 means that the compiler may assume that it does not happen.  This
8278 permits various optimizations.  For example, the compiler assumes
8279 that an expression like \f(CW\*(C`i + 10 > i\*(C'\fR is always true for
8280 signed \f(CW\*(C`i\*(C'\fR.  This assumption is only valid if signed overflow is
8281 undefined, as the expression is false if \f(CW\*(C`i + 10\*(C'\fR overflows when
8282 using twos complement arithmetic.  When this option is in effect any
8283 attempt to determine whether an operation on signed numbers 
8284 overflows must be written carefully to not actually involve overflow.
8285 .Sp
8286 This option also allows the compiler to assume strict pointer
8287 semantics: given a pointer to an object, if adding an offset to that
8288 pointer does not produce a pointer to the same object, the addition is
8289 undefined.  This permits the compiler to conclude that \f(CW\*(C`p + u >
8290 p\*(C'\fR is always true for a pointer \f(CW\*(C`p\*(C'\fR and unsigned integer
8291 \&\f(CW\*(C`u\*(C'\fR.  This assumption is only valid because pointer wraparound is
8292 undefined, as the expression is false if \f(CW\*(C`p + u\*(C'\fR overflows using
8293 twos complement arithmetic.
8294 .Sp
8295 See also the \fB\-fwrapv\fR option.  Using \fB\-fwrapv\fR means
8296 that integer signed overflow is fully defined: it wraps.  When
8297 \&\fB\-fwrapv\fR is used, there is no difference between
8298 \&\fB\-fstrict\-overflow\fR and \fB\-fno\-strict\-overflow\fR for
8299 integers.  With \fB\-fwrapv\fR certain types of overflow are
8300 permitted.  For example, if the compiler gets an overflow when doing
8301 arithmetic on constants, the overflowed value can still be used with
8302 \&\fB\-fwrapv\fR, but not otherwise.
8303 .Sp
8304 The \fB\-fstrict\-overflow\fR option is enabled at levels
8305 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8306 .IP "\fB\-falign\-functions\fR" 4
8307 .IX Item "-falign-functions"
8308 .PD 0
8309 .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
8310 .IX Item "-falign-functions=n"
8311 .PD
8312 Align the start of functions to the next power-of-two greater than
8313 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
8314 \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
8315 boundary, but \fB\-falign\-functions=24\fR aligns to the next
8316 32\-byte boundary only if this can be done by skipping 23 bytes or less.
8317 .Sp
8318 \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
8319 equivalent and mean that functions are not aligned.
8320 .Sp
8321 Some assemblers only support this flag when \fIn\fR is a power of two;
8322 in that case, it is rounded up.
8323 .Sp
8324 If \fIn\fR is not specified or is zero, use a machine-dependent default.
8325 .Sp
8326 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8327 .IP "\fB\-falign\-labels\fR" 4
8328 .IX Item "-falign-labels"
8329 .PD 0
8330 .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
8331 .IX Item "-falign-labels=n"
8332 .PD
8333 Align all branch targets to a power-of-two boundary, skipping up to
8334 \&\fIn\fR bytes like \fB\-falign\-functions\fR.  This option can easily
8335 make code slower, because it must insert dummy operations for when the
8336 branch target is reached in the usual flow of the code.
8337 .Sp
8338 \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
8339 equivalent and mean that labels are not aligned.
8340 .Sp
8341 If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
8342 are greater than this value, then their values are used instead.
8343 .Sp
8344 If \fIn\fR is not specified or is zero, use a machine-dependent default
8345 which is very likely to be \fB1\fR, meaning no alignment.
8346 .Sp
8347 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8348 .IP "\fB\-falign\-loops\fR" 4
8349 .IX Item "-falign-loops"
8350 .PD 0
8351 .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
8352 .IX Item "-falign-loops=n"
8353 .PD
8354 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
8355 like \fB\-falign\-functions\fR.  If the loops are
8356 executed many times, this makes up for any execution of the dummy
8357 operations.
8358 .Sp
8359 \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
8360 equivalent and mean that loops are not aligned.
8361 .Sp
8362 If \fIn\fR is not specified or is zero, use a machine-dependent default.
8363 .Sp
8364 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8365 .IP "\fB\-falign\-jumps\fR" 4
8366 .IX Item "-falign-jumps"
8367 .PD 0
8368 .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
8369 .IX Item "-falign-jumps=n"
8370 .PD
8371 Align branch targets to a power-of-two boundary, for branch targets
8372 where the targets can only be reached by jumping, skipping up to \fIn\fR
8373 bytes like \fB\-falign\-functions\fR.  In this case, no dummy operations
8374 need be executed.
8375 .Sp
8376 \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
8377 equivalent and mean that loops are not aligned.
8378 .Sp
8379 If \fIn\fR is not specified or is zero, use a machine-dependent default.
8380 .Sp
8381 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8382 .IP "\fB\-funit\-at\-a\-time\fR" 4
8383 .IX Item "-funit-at-a-time"
8384 This option is left for compatibility reasons. \fB\-funit\-at\-a\-time\fR
8385 has no effect, while \fB\-fno\-unit\-at\-a\-time\fR implies
8386 \&\fB\-fno\-toplevel\-reorder\fR and \fB\-fno\-section\-anchors\fR.
8387 .Sp
8388 Enabled by default.
8389 .IP "\fB\-fno\-toplevel\-reorder\fR" 4
8390 .IX Item "-fno-toplevel-reorder"
8391 Do not reorder top-level functions, variables, and \f(CW\*(C`asm\*(C'\fR
8392 statements.  Output them in the same order that they appear in the
8393 input file.  When this option is used, unreferenced static variables
8394 are not removed.  This option is intended to support existing code
8395 that relies on a particular ordering.  For new code, it is better to
8396 use attributes when possible.
8397 .Sp
8398 Enabled at level \fB\-O0\fR.  When disabled explicitly, it also implies
8399 \&\fB\-fno\-section\-anchors\fR, which is otherwise enabled at \fB\-O0\fR on some
8400 targets.
8401 .IP "\fB\-fweb\fR" 4
8402 .IX Item "-fweb"
8403 Constructs webs as commonly used for register allocation purposes and assign
8404 each web individual pseudo register.  This allows the register allocation pass
8405 to operate on pseudos directly, but also strengthens several other optimization
8406 passes, such as \s-1CSE\s0, loop optimizer and trivial dead code remover.  It can,
8407 however, make debugging impossible, since variables no longer stay in a
8408 \&\*(L"home register\*(R".
8409 .Sp
8410 Enabled by default with \fB\-funroll\-loops\fR.
8411 .IP "\fB\-fwhole\-program\fR" 4
8412 .IX Item "-fwhole-program"
8413 Assume that the current compilation unit represents the whole program being
8414 compiled.  All public functions and variables with the exception of \f(CW\*(C`main\*(C'\fR
8415 and those merged by attribute \f(CW\*(C`externally_visible\*(C'\fR become static functions
8416 and in effect are optimized more aggressively by interprocedural optimizers.
8417 .Sp
8418 This option should not be used in combination with \fB\-flto\fR.
8419 Instead relying on a linker plugin should provide safer and more precise
8420 information.
8421 .IP "\fB\-flto[=\fR\fIn\fR\fB]\fR" 4
8422 .IX Item "-flto[=n]"
8423 This option runs the standard link-time optimizer.  When invoked
8424 with source code, it generates \s-1GIMPLE\s0 (one of \s-1GCC\s0's internal
8425 representations) and writes it to special \s-1ELF\s0 sections in the object
8426 file.  When the object files are linked together, all the function
8427 bodies are read from these \s-1ELF\s0 sections and instantiated as if they
8428 had been part of the same translation unit.
8429 .Sp
8430 To use the link-time optimizer, \fB\-flto\fR and optimization
8431 options should be specified at compile time and during the final link.
8432 For example:
8433 .Sp
8434 .Vb 3
8435 \&        gcc \-c \-O2 \-flto foo.c
8436 \&        gcc \-c \-O2 \-flto bar.c
8437 \&        gcc \-o myprog \-flto \-O2 foo.o bar.o
8438 .Ve
8439 .Sp
8440 The first two invocations to \s-1GCC\s0 save a bytecode representation
8441 of \s-1GIMPLE\s0 into special \s-1ELF\s0 sections inside \fIfoo.o\fR and
8442 \&\fIbar.o\fR.  The final invocation reads the \s-1GIMPLE\s0 bytecode from
8443 \&\fIfoo.o\fR and \fIbar.o\fR, merges the two files into a single
8444 internal image, and compiles the result as usual.  Since both
8445 \&\fIfoo.o\fR and \fIbar.o\fR are merged into a single image, this
8446 causes all the interprocedural analyses and optimizations in \s-1GCC\s0 to
8447 work across the two files as if they were a single one.  This means,
8448 for example, that the inliner is able to inline functions in
8449 \&\fIbar.o\fR into functions in \fIfoo.o\fR and vice-versa.
8450 .Sp
8451 Another (simpler) way to enable link-time optimization is:
8452 .Sp
8453 .Vb 1
8454 \&        gcc \-o myprog \-flto \-O2 foo.c bar.c
8455 .Ve
8456 .Sp
8457 The above generates bytecode for \fIfoo.c\fR and \fIbar.c\fR,
8458 merges them together into a single \s-1GIMPLE\s0 representation and optimizes
8459 them as usual to produce \fImyprog\fR.
8460 .Sp
8461 The only important thing to keep in mind is that to enable link-time
8462 optimizations you need to use the \s-1GCC\s0 driver to perform the link-step.
8463 \&\s-1GCC\s0 then automatically performs link-time optimization if any of the
8464 objects involved were compiled with the \fB\-flto\fR command-line option.  
8465 You generally
8466 should specify the optimization options to be used for link-time
8467 optimization though \s-1GCC\s0 tries to be clever at guessing an
8468 optimization level to use from the options used at compile-time
8469 if you fail to specify one at link-time.  You can always override
8470 the automatic decision to do link-time optimization at link-time
8471 by passing \fB\-fno\-lto\fR to the link command.
8472 .Sp
8473 To make whole program optimization effective, it is necessary to make
8474 certain whole program assumptions.  The compiler needs to know
8475 what functions and variables can be accessed by libraries and runtime
8476 outside of the link-time optimized unit.  When supported by the linker,
8477 the linker plugin (see \fB\-fuse\-linker\-plugin\fR) passes information
8478 to the compiler about used and externally visible symbols.  When
8479 the linker plugin is not available, \fB\-fwhole\-program\fR should be
8480 used to allow the compiler to make these assumptions, which leads
8481 to more aggressive optimization decisions.
8482 .Sp
8483 When \fB\-fuse\-linker\-plugin\fR is not enabled then, when a file is
8484 compiled with \fB\-flto\fR, the generated object file is larger than
8485 a regular object file because it contains \s-1GIMPLE\s0 bytecodes and the usual
8486 final code (see \fB\-ffat\-lto\-objects\fR.  This means that
8487 object files with \s-1LTO\s0 information can be linked as normal object
8488 files; if \fB\-fno\-lto\fR is passed to the linker, no
8489 interprocedural optimizations are applied.  Note that when
8490 \&\fB\-fno\-fat\-lto\-objects\fR is enabled the compile-stage is faster
8491 but you cannot perform a regular, non-LTO link on them.
8492 .Sp
8493 Additionally, the optimization flags used to compile individual files
8494 are not necessarily related to those used at link time.  For instance,
8495 .Sp
8496 .Vb 3
8497 \&        gcc \-c \-O0 \-ffat\-lto\-objects \-flto foo.c
8498 \&        gcc \-c \-O0 \-ffat\-lto\-objects \-flto bar.c
8499 \&        gcc \-o myprog \-O3 foo.o bar.o
8500 .Ve
8501 .Sp
8502 This produces individual object files with unoptimized assembler
8503 code, but the resulting binary \fImyprog\fR is optimized at
8504 \&\fB\-O3\fR.  If, instead, the final binary is generated with
8505 \&\fB\-fno\-lto\fR, then \fImyprog\fR is not optimized.
8506 .Sp
8507 When producing the final binary, \s-1GCC\s0 only
8508 applies link-time optimizations to those files that contain bytecode.
8509 Therefore, you can mix and match object files and libraries with
8510 \&\s-1GIMPLE\s0 bytecodes and final object code.  \s-1GCC\s0 automatically selects
8511 which files to optimize in \s-1LTO\s0 mode and which files to link without
8512 further processing.
8513 .Sp
8514 There are some code generation flags preserved by \s-1GCC\s0 when
8515 generating bytecodes, as they need to be used during the final link
8516 stage.  Generally options specified at link-time override those
8517 specified at compile-time.
8518 .Sp
8519 If you do not specify an optimization level option \fB\-O\fR at
8520 link-time then \s-1GCC\s0 computes one based on the optimization levels
8521 used when compiling the object files.  The highest optimization
8522 level wins here.
8523 .Sp
8524 Currently, the following options and their setting are take from
8525 the first object file that explicitely specified it: 
8526 \&\fB\-fPIC\fR, \fB\-fpic\fR, \fB\-fpie\fR, \fB\-fcommon\fR,
8527 \&\fB\-fexceptions\fR, \fB\-fnon\-call\-exceptions\fR, \fB\-fgnu\-tm\fR
8528 and all the \fB\-m\fR target flags.
8529 .Sp
8530 Certain \s-1ABI\s0 changing flags are required to match in all compilation-units
8531 and trying to override this at link-time with a conflicting value
8532 is ignored.  This includes options such as \fB\-freg\-struct\-return\fR
8533 and \fB\-fpcc\-struct\-return\fR.
8534 .Sp
8535 Other options such as \fB\-ffp\-contract\fR, \fB\-fno\-strict\-overflow\fR,
8536 \&\fB\-fwrapv\fR, \fB\-fno\-trapv\fR or \fB\-fno\-strict\-aliasing\fR
8537 are passed through to the link stage and merged conservatively for
8538 conflicting translation units.  Specifically
8539 \&\fB\-fno\-strict\-overflow\fR, \fB\-fwrapv\fR and \fB\-fno\-trapv\fR take
8540 precedence and for example \fB\-ffp\-contract=off\fR takes precedence
8541 over \fB\-ffp\-contract=fast\fR.  You can override them at linke-time.
8542 .Sp
8543 It is recommended that you compile all the files participating in the
8544 same link with the same options and also specify those options at
8545 link time.
8546 .Sp
8547 If \s-1LTO\s0 encounters objects with C linkage declared with incompatible
8548 types in separate translation units to be linked together (undefined
8549 behavior according to \s-1ISO\s0 C99 6.2.7), a non-fatal diagnostic may be
8550 issued.  The behavior is still undefined at run time.  Similar
8551 diagnostics may be raised for other languages.
8552 .Sp
8553 Another feature of \s-1LTO\s0 is that it is possible to apply interprocedural
8554 optimizations on files written in different languages:
8555 .Sp
8556 .Vb 4
8557 \&        gcc \-c \-flto foo.c
8558 \&        g++ \-c \-flto bar.cc
8559 \&        gfortran \-c \-flto baz.f90
8560 \&        g++ \-o myprog \-flto \-O3 foo.o bar.o baz.o \-lgfortran
8561 .Ve
8562 .Sp
8563 Notice that the final link is done with \fBg++\fR to get the \*(C+
8564 runtime libraries and \fB\-lgfortran\fR is added to get the Fortran
8565 runtime libraries.  In general, when mixing languages in \s-1LTO\s0 mode, you
8566 should use the same link command options as when mixing languages in a
8567 regular (non-LTO) compilation.
8568 .Sp
8569 If object files containing \s-1GIMPLE\s0 bytecode are stored in a library archive, say
8570 \&\fIlibfoo.a\fR, it is possible to extract and use them in an \s-1LTO\s0 link if you
8571 are using a linker with plugin support.  To create static libraries suitable
8572 for \s-1LTO\s0, use \fBgcc-ar\fR and \fBgcc-ranlib\fR instead of \fBar\fR
8573 and \fBranlib\fR; 
8574 to show the symbols of object files with \s-1GIMPLE\s0 bytecode, use
8575 \&\fBgcc-nm\fR.  Those commands require that \fBar\fR, \fBranlib\fR
8576 and \fBnm\fR have been compiled with plugin support.  At link time, use the the
8577 flag \fB\-fuse\-linker\-plugin\fR to ensure that the library participates in
8578 the \s-1LTO\s0 optimization process:
8579 .Sp
8580 .Vb 1
8581 \&        gcc \-o myprog \-O2 \-flto \-fuse\-linker\-plugin a.o b.o \-lfoo
8582 .Ve
8583 .Sp
8584 With the linker plugin enabled, the linker extracts the needed
8585 \&\s-1GIMPLE\s0 files from \fIlibfoo.a\fR and passes them on to the running \s-1GCC\s0
8586 to make them part of the aggregated \s-1GIMPLE\s0 image to be optimized.
8587 .Sp
8588 If you are not using a linker with plugin support and/or do not
8589 enable the linker plugin, then the objects inside \fIlibfoo.a\fR
8590 are extracted and linked as usual, but they do not participate
8591 in the \s-1LTO\s0 optimization process.  In order to make a static library suitable
8592 for both \s-1LTO\s0 optimization and usual linkage, compile its object files with
8593 \&\fB\-flto\fR \fB\-ffat\-lto\-objects\fR.
8594 .Sp
8595 Link-time optimizations do not require the presence of the whole program to
8596 operate.  If the program does not require any symbols to be exported, it is
8597 possible to combine \fB\-flto\fR and \fB\-fwhole\-program\fR to allow
8598 the interprocedural optimizers to use more aggressive assumptions which may
8599 lead to improved optimization opportunities.
8600 Use of \fB\-fwhole\-program\fR is not needed when linker plugin is
8601 active (see \fB\-fuse\-linker\-plugin\fR).
8602 .Sp
8603 The current implementation of \s-1LTO\s0 makes no
8604 attempt to generate bytecode that is portable between different
8605 types of hosts.  The bytecode files are versioned and there is a
8606 strict version check, so bytecode files generated in one version of
8607 \&\s-1GCC\s0 do not work with an older or newer version of \s-1GCC\s0.
8608 .Sp
8609 Link-time optimization does not work well with generation of debugging
8610 information.  Combining \fB\-flto\fR with
8611 \&\fB\-g\fR is currently experimental and expected to produce unexpected
8612 results.
8613 .Sp
8614 If you specify the optional \fIn\fR, the optimization and code
8615 generation done at link time is executed in parallel using \fIn\fR
8616 parallel jobs by utilizing an installed \fBmake\fR program.  The
8617 environment variable \fB\s-1MAKE\s0\fR may be used to override the program
8618 used.  The default value for \fIn\fR is 1.
8619 .Sp
8620 You can also specify \fB\-flto=jobserver\fR to use \s-1GNU\s0 make's
8621 job server mode to determine the number of parallel jobs. This
8622 is useful when the Makefile calling \s-1GCC\s0 is already executing in parallel.
8623 You must prepend a \fB+\fR to the command recipe in the parent Makefile
8624 for this to work.  This option likely only works if \fB\s-1MAKE\s0\fR is
8625 \&\s-1GNU\s0 make.
8626 .IP "\fB\-flto\-partition=\fR\fIalg\fR" 4
8627 .IX Item "-flto-partition=alg"
8628 Specify the partitioning algorithm used by the link-time optimizer.
8629 The value is either \fB1to1\fR to specify a partitioning mirroring
8630 the original source files or \fBbalanced\fR to specify partitioning
8631 into equally sized chunks (whenever possible) or \fBmax\fR to create
8632 new partition for every symbol where possible.  Specifying \fBnone\fR
8633 as an algorithm disables partitioning and streaming completely. 
8634 The default value is \fBbalanced\fR. While \fB1to1\fR can be used
8635 as an workaround for various code ordering issues, the \fBmax\fR
8636 partitioning is intended for internal testing only.
8637 The value \fBone\fR specifies that exactly one partition should be
8638 used while the value \fBnone\fR bypasses partitioning and executes
8639 the link-time optimization step directly from the \s-1WPA\s0 phase.
8640 .IP "\fB\-flto\-odr\-type\-merging\fR" 4
8641 .IX Item "-flto-odr-type-merging"
8642 Enable streaming of mangled types names of \*(C+ types and their unification
8643 at linktime.  This increases size of \s-1LTO\s0 object files, but enable
8644 diagnostics about One Definition Rule violations.
8645 .IP "\fB\-flto\-compression\-level=\fR\fIn\fR" 4
8646 .IX Item "-flto-compression-level=n"
8647 This option specifies the level of compression used for intermediate
8648 language written to \s-1LTO\s0 object files, and is only meaningful in
8649 conjunction with \s-1LTO\s0 mode (\fB\-flto\fR).  Valid
8650 values are 0 (no compression) to 9 (maximum compression).  Values
8651 outside this range are clamped to either 0 or 9.  If the option is not
8652 given, a default balanced compression setting is used.
8653 .IP "\fB\-flto\-report\fR" 4
8654 .IX Item "-flto-report"
8655 Prints a report with internal details on the workings of the link-time
8656 optimizer.  The contents of this report vary from version to version.
8657 It is meant to be useful to \s-1GCC\s0 developers when processing object
8658 files in \s-1LTO\s0 mode (via \fB\-flto\fR).
8659 .Sp
8660 Disabled by default.
8661 .IP "\fB\-flto\-report\-wpa\fR" 4
8662 .IX Item "-flto-report-wpa"
8663 Like \fB\-flto\-report\fR, but only print for the \s-1WPA\s0 phase of Link
8664 Time Optimization.
8665 .IP "\fB\-fuse\-linker\-plugin\fR" 4
8666 .IX Item "-fuse-linker-plugin"
8667 Enables the use of a linker plugin during link-time optimization.  This
8668 option relies on plugin support in the linker, which is available in gold
8669 or in \s-1GNU\s0 ld 2.21 or newer.
8670 .Sp
8671 This option enables the extraction of object files with \s-1GIMPLE\s0 bytecode out
8672 of library archives. This improves the quality of optimization by exposing
8673 more code to the link-time optimizer.  This information specifies what
8674 symbols can be accessed externally (by non-LTO object or during dynamic
8675 linking).  Resulting code quality improvements on binaries (and shared
8676 libraries that use hidden visibility) are similar to \fB\-fwhole\-program\fR.
8677 See \fB\-flto\fR for a description of the effect of this flag and how to
8678 use it.
8679 .Sp
8680 This option is enabled by default when \s-1LTO\s0 support in \s-1GCC\s0 is enabled
8681 and \s-1GCC\s0 was configured for use with
8682 a linker supporting plugins (\s-1GNU\s0 ld 2.21 or newer or gold).
8683 .IP "\fB\-ffat\-lto\-objects\fR" 4
8684 .IX Item "-ffat-lto-objects"
8685 Fat \s-1LTO\s0 objects are object files that contain both the intermediate language
8686 and the object code. This makes them usable for both \s-1LTO\s0 linking and normal
8687 linking. This option is effective only when compiling with \fB\-flto\fR
8688 and is ignored at link time.
8689 .Sp
8690 \&\fB\-fno\-fat\-lto\-objects\fR improves compilation time over plain \s-1LTO\s0, but
8691 requires the complete toolchain to be aware of \s-1LTO\s0. It requires a linker with
8692 linker plugin support for basic functionality.  Additionally,
8693 \&\fBnm\fR, \fBar\fR and \fBranlib\fR
8694 need to support linker plugins to allow a full-featured build environment
8695 (capable of building static libraries etc).  \s-1GCC\s0 provides the \fBgcc-ar\fR,
8696 \&\fBgcc-nm\fR, \fBgcc-ranlib\fR wrappers to pass the right options
8697 to these tools. With non fat \s-1LTO\s0 makefiles need to be modified to use them.
8698 .Sp
8699 The default is \fB\-fno\-fat\-lto\-objects\fR on targets with linker plugin
8700 support.
8701 .IP "\fB\-fcompare\-elim\fR" 4
8702 .IX Item "-fcompare-elim"
8703 After register allocation and post-register allocation instruction splitting,
8704 identify arithmetic instructions that compute processor flags similar to a
8705 comparison operation based on that arithmetic.  If possible, eliminate the
8706 explicit comparison operation.
8707 .Sp
8708 This pass only applies to certain targets that cannot explicitly represent
8709 the comparison operation before register allocation is complete.
8710 .Sp
8711 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8712 .IP "\fB\-fcprop\-registers\fR" 4
8713 .IX Item "-fcprop-registers"
8714 After register allocation and post-register allocation instruction splitting,
8715 perform a copy-propagation pass to try to reduce scheduling dependencies
8716 and occasionally eliminate the copy.
8717 .Sp
8718 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8719 .IP "\fB\-fprofile\-correction\fR" 4
8720 .IX Item "-fprofile-correction"
8721 Profiles collected using an instrumented binary for multi-threaded programs may
8722 be inconsistent due to missed counter updates. When this option is specified,
8723 \&\s-1GCC\s0 uses heuristics to correct or smooth out such inconsistencies. By
8724 default, \s-1GCC\s0 emits an error message when an inconsistent profile is detected.
8725 .IP "\fB\-fprofile\-dir=\fR\fIpath\fR" 4
8726 .IX Item "-fprofile-dir=path"
8727 Set the directory to search for the profile data files in to \fIpath\fR.
8728 This option affects only the profile data generated by
8729 \&\fB\-fprofile\-generate\fR, \fB\-ftest\-coverage\fR, \fB\-fprofile\-arcs\fR
8730 and used by \fB\-fprofile\-use\fR and \fB\-fbranch\-probabilities\fR
8731 and its related options.  Both absolute and relative paths can be used.
8732 By default, \s-1GCC\s0 uses the current directory as \fIpath\fR, thus the
8733 profile data file appears in the same directory as the object file.
8734 .IP "\fB\-fprofile\-generate\fR" 4
8735 .IX Item "-fprofile-generate"
8736 .PD 0
8737 .IP "\fB\-fprofile\-generate=\fR\fIpath\fR" 4
8738 .IX Item "-fprofile-generate=path"
8739 .PD
8740 Enable options usually used for instrumenting application to produce
8741 profile useful for later recompilation with profile feedback based
8742 optimization.  You must use \fB\-fprofile\-generate\fR both when
8743 compiling and when linking your program.
8744 .Sp
8745 The following options are enabled: \fB\-fprofile\-arcs\fR, \fB\-fprofile\-values\fR, \fB\-fvpt\fR.
8746 .Sp
8747 If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
8748 the profile feedback data files. See \fB\-fprofile\-dir\fR.
8749 .IP "\fB\-fprofile\-use\fR" 4
8750 .IX Item "-fprofile-use"
8751 .PD 0
8752 .IP "\fB\-fprofile\-use=\fR\fIpath\fR" 4
8753 .IX Item "-fprofile-use=path"
8754 .PD
8755 Enable profile feedback-directed optimizations, 
8756 and the following optimizations
8757 which are generally profitable only with profile feedback available:
8758 \&\fB\-fbranch\-probabilities\fR, \fB\-fvpt\fR,
8759 \&\fB\-funroll\-loops\fR, \fB\-fpeel\-loops\fR, \fB\-ftracer\fR, 
8760 \&\fB\-ftree\-vectorize\fR, and \fBftree-loop-distribute-patterns\fR.
8761 .Sp
8762 By default, \s-1GCC\s0 emits an error message if the feedback profiles do not
8763 match the source code.  This error can be turned into a warning by using
8764 \&\fB\-Wcoverage\-mismatch\fR.  Note this may result in poorly optimized
8765 code.
8766 .Sp
8767 If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
8768 the profile feedback data files. See \fB\-fprofile\-dir\fR.
8769 .IP "\fB\-fauto\-profile\fR" 4
8770 .IX Item "-fauto-profile"
8771 .PD 0
8772 .IP "\fB\-fauto\-profile=\fR\fIpath\fR" 4
8773 .IX Item "-fauto-profile=path"
8774 .PD
8775 Enable sampling-based feedback-directed optimizations, 
8776 and the following optimizations
8777 which are generally profitable only with profile feedback available:
8778 \&\fB\-fbranch\-probabilities\fR, \fB\-fvpt\fR,
8779 \&\fB\-funroll\-loops\fR, \fB\-fpeel\-loops\fR, \fB\-ftracer\fR, 
8780 \&\fB\-ftree\-vectorize\fR,
8781 \&\fB\-finline\-functions\fR, \fB\-fipa\-cp\fR, \fB\-fipa\-cp\-clone\fR,
8782 \&\fB\-fpredictive\-commoning\fR, \fB\-funswitch\-loops\fR,
8783 \&\fB\-fgcse\-after\-reload\fR, and \fB\-ftree\-loop\-distribute\-patterns\fR.
8784 .Sp
8785 \&\fIpath\fR is the name of a file containing AutoFDO profile information.
8786 If omitted, it defaults to \fIfbdata.afdo\fR in the current directory.
8787 .Sp
8788 Producing an AutoFDO profile data file requires running your program
8789 with the \fBperf\fR utility on a supported GNU/Linux target system.
8790 For more information, see <\fBhttps://perf.wiki.kernel.org/\fR>.
8791 .Sp
8792 E.g.
8793 .Sp
8794 .Vb 2
8795 \&        perf record \-e br_inst_retired:near_taken \-b \-o perf.data \e
8796 \&            \-\- your_program
8797 .Ve
8798 .Sp
8799 Then use the \fBcreate_gcov\fR tool to convert the raw profile data
8800 to a format that can be used by \s-1GCC\s0.  You must also supply the 
8801 unstripped binary for your program to this tool.  
8802 See <\fBhttps://github.com/google/autofdo\fR>.
8803 .Sp
8804 E.g.
8805 .Sp
8806 .Vb 2
8807 \&        create_gcov \-\-binary=your_program.unstripped \-\-profile=perf.data \e
8808 \&            \-\-gcov=profile.afdo
8809 .Ve
8810 .PP
8811 The following options control compiler behavior regarding floating-point 
8812 arithmetic.  These options trade off between speed and
8813 correctness.  All must be specifically enabled.
8814 .IP "\fB\-ffloat\-store\fR" 4
8815 .IX Item "-ffloat-store"
8816 Do not store floating-point variables in registers, and inhibit other
8817 options that might change whether a floating-point value is taken from a
8818 register or memory.
8819 .Sp
8820 This option prevents undesirable excess precision on machines such as
8821 the 68000 where the floating registers (of the 68881) keep more
8822 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
8823 x86 architecture.  For most programs, the excess precision does only
8824 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
8825 point.  Use \fB\-ffloat\-store\fR for such programs, after modifying
8826 them to store all pertinent intermediate computations into variables.
8827 .IP "\fB\-fexcess\-precision=\fR\fIstyle\fR" 4
8828 .IX Item "-fexcess-precision=style"
8829 This option allows further control over excess precision on machines
8830 where floating-point registers have more precision than the \s-1IEEE\s0
8831 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR types and the processor does not
8832 support operations rounding to those types.  By default,
8833 \&\fB\-fexcess\-precision=fast\fR is in effect; this means that
8834 operations are carried out in the precision of the registers and that
8835 it is unpredictable when rounding to the types specified in the source
8836 code takes place.  When compiling C, if
8837 \&\fB\-fexcess\-precision=standard\fR is specified then excess
8838 precision follows the rules specified in \s-1ISO\s0 C99; in particular,
8839 both casts and assignments cause values to be rounded to their
8840 semantic types (whereas \fB\-ffloat\-store\fR only affects
8841 assignments).  This option is enabled by default for C if a strict
8842 conformance option such as \fB\-std=c99\fR is used.
8843 .Sp
8844 \&\fB\-fexcess\-precision=standard\fR is not implemented for languages
8845 other than C, and has no effect if
8846 \&\fB\-funsafe\-math\-optimizations\fR or \fB\-ffast\-math\fR is
8847 specified.  On the x86, it also has no effect if \fB\-mfpmath=sse\fR
8848 or \fB\-mfpmath=sse+387\fR is specified; in the former case, \s-1IEEE\s0
8849 semantics apply without excess precision, and in the latter, rounding
8850 is unpredictable.
8851 .IP "\fB\-ffast\-math\fR" 4
8852 .IX Item "-ffast-math"
8853 Sets the options \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR,
8854 \&\fB\-ffinite\-math\-only\fR, \fB\-fno\-rounding\-math\fR,
8855 \&\fB\-fno\-signaling\-nans\fR and \fB\-fcx\-limited\-range\fR.
8856 .Sp
8857 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
8858 .Sp
8859 This option is not turned on by any \fB\-O\fR option besides
8860 \&\fB\-Ofast\fR since it can result in incorrect output for programs
8861 that depend on an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications
8862 for math functions. It may, however, yield faster code for programs
8863 that do not require the guarantees of these specifications.
8864 .IP "\fB\-fno\-math\-errno\fR" 4
8865 .IX Item "-fno-math-errno"
8866 Do not set \f(CW\*(C`errno\*(C'\fR after calling math functions that are executed
8867 with a single instruction, e.g., \f(CW\*(C`sqrt\*(C'\fR.  A program that relies on
8868 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
8869 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
8870 .Sp
8871 This option is not turned on by any \fB\-O\fR option since
8872 it can result in incorrect output for programs that depend on
8873 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
8874 math functions. It may, however, yield faster code for programs
8875 that do not require the guarantees of these specifications.
8876 .Sp
8877 The default is \fB\-fmath\-errno\fR.
8878 .Sp
8879 On Darwin systems, the math library never sets \f(CW\*(C`errno\*(C'\fR.  There is
8880 therefore no reason for the compiler to consider the possibility that
8881 it might, and \fB\-fno\-math\-errno\fR is the default.
8882 .IP "\fB\-funsafe\-math\-optimizations\fR" 4
8883 .IX Item "-funsafe-math-optimizations"
8884 Allow optimizations for floating-point arithmetic that (a) assume
8885 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
8886 \&\s-1ANSI\s0 standards.  When used at link-time, it may include libraries
8887 or startup files that change the default \s-1FPU\s0 control word or other
8888 similar optimizations.
8889 .Sp
8890 This option is not turned on by any \fB\-O\fR option since
8891 it can result in incorrect output for programs that depend on
8892 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
8893 math functions. It may, however, yield faster code for programs
8894 that do not require the guarantees of these specifications.
8895 Enables \fB\-fno\-signed\-zeros\fR, \fB\-fno\-trapping\-math\fR,
8896 \&\fB\-fassociative\-math\fR and \fB\-freciprocal\-math\fR.
8897 .Sp
8898 The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
8899 .IP "\fB\-fassociative\-math\fR" 4
8900 .IX Item "-fassociative-math"
8901 Allow re-association of operands in series of floating-point operations.
8902 This violates the \s-1ISO\s0 C and \*(C+ language standard by possibly changing
8903 computation result.  \s-1NOTE:\s0 re-ordering may change the sign of zero as
8904 well as ignore NaNs and inhibit or create underflow or overflow (and
8905 thus cannot be used on code that relies on rounding behavior like
8906 \&\f(CW\*(C`(x + 2**52) \- 2**52\*(C'\fR.  May also reorder floating-point comparisons
8907 and thus may not be used when ordered comparisons are required.
8908 This option requires that both \fB\-fno\-signed\-zeros\fR and
8909 \&\fB\-fno\-trapping\-math\fR be in effect.  Moreover, it doesn't make
8910 much sense with \fB\-frounding\-math\fR. For Fortran the option
8911 is automatically enabled when both \fB\-fno\-signed\-zeros\fR and
8912 \&\fB\-fno\-trapping\-math\fR are in effect.
8913 .Sp
8914 The default is \fB\-fno\-associative\-math\fR.
8915 .IP "\fB\-freciprocal\-math\fR" 4
8916 .IX Item "-freciprocal-math"
8917 Allow the reciprocal of a value to be used instead of dividing by
8918 the value if this enables optimizations.  For example \f(CW\*(C`x / y\*(C'\fR
8919 can be replaced with \f(CW\*(C`x * (1/y)\*(C'\fR, which is useful if \f(CW\*(C`(1/y)\*(C'\fR
8920 is subject to common subexpression elimination.  Note that this loses
8921 precision and increases the number of flops operating on the value.
8922 .Sp
8923 The default is \fB\-fno\-reciprocal\-math\fR.
8924 .IP "\fB\-ffinite\-math\-only\fR" 4
8925 .IX Item "-ffinite-math-only"
8926 Allow optimizations for floating-point arithmetic that assume
8927 that arguments and results are not NaNs or +\-Infs.
8928 .Sp
8929 This option is not turned on by any \fB\-O\fR option since
8930 it can result in incorrect output for programs that depend on
8931 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
8932 math functions. It may, however, yield faster code for programs
8933 that do not require the guarantees of these specifications.
8934 .Sp
8935 The default is \fB\-fno\-finite\-math\-only\fR.
8936 .IP "\fB\-fno\-signed\-zeros\fR" 4
8937 .IX Item "-fno-signed-zeros"
8938 Allow optimizations for floating-point arithmetic that ignore the
8939 signedness of zero.  \s-1IEEE\s0 arithmetic specifies the behavior of
8940 distinct +0.0 and \-0.0 values, which then prohibits simplification
8941 of expressions such as x+0.0 or 0.0*x (even with \fB\-ffinite\-math\-only\fR).
8942 This option implies that the sign of a zero result isn't significant.
8943 .Sp
8944 The default is \fB\-fsigned\-zeros\fR.
8945 .IP "\fB\-fno\-trapping\-math\fR" 4
8946 .IX Item "-fno-trapping-math"
8947 Compile code assuming that floating-point operations cannot generate
8948 user-visible traps.  These traps include division by zero, overflow,
8949 underflow, inexact result and invalid operation.  This option requires
8950 that \fB\-fno\-signaling\-nans\fR be in effect.  Setting this option may
8951 allow faster code if one relies on \*(L"non-stop\*(R" \s-1IEEE\s0 arithmetic, for example.
8952 .Sp
8953 This option should never be turned on by any \fB\-O\fR option since
8954 it can result in incorrect output for programs that depend on
8955 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
8956 math functions.
8957 .Sp
8958 The default is \fB\-ftrapping\-math\fR.
8959 .IP "\fB\-frounding\-math\fR" 4
8960 .IX Item "-frounding-math"
8961 Disable transformations and optimizations that assume default floating-point
8962 rounding behavior.  This is round-to-zero for all floating point
8963 to integer conversions, and round-to-nearest for all other arithmetic
8964 truncations.  This option should be specified for programs that change
8965 the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
8966 non-default rounding mode.  This option disables constant folding of
8967 floating-point expressions at compile time (which may be affected by
8968 rounding mode) and arithmetic transformations that are unsafe in the
8969 presence of sign-dependent rounding modes.
8970 .Sp
8971 The default is \fB\-fno\-rounding\-math\fR.
8972 .Sp
8973 This option is experimental and does not currently guarantee to
8974 disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
8975 Future versions of \s-1GCC\s0 may provide finer control of this setting
8976 using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma.  This command-line option
8977 will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
8978 .IP "\fB\-fsignaling\-nans\fR" 4
8979 .IX Item "-fsignaling-nans"
8980 Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
8981 traps during floating-point operations.  Setting this option disables
8982 optimizations that may change the number of exceptions visible with
8983 signaling NaNs.  This option implies \fB\-ftrapping\-math\fR.
8984 .Sp
8985 This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
8986 be defined.
8987 .Sp
8988 The default is \fB\-fno\-signaling\-nans\fR.
8989 .Sp
8990 This option is experimental and does not currently guarantee to
8991 disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
8992 .IP "\fB\-fsingle\-precision\-constant\fR" 4
8993 .IX Item "-fsingle-precision-constant"
8994 Treat floating-point constants as single precision instead of
8995 implicitly converting them to double-precision constants.
8996 .IP "\fB\-fcx\-limited\-range\fR" 4
8997 .IX Item "-fcx-limited-range"
8998 When enabled, this option states that a range reduction step is not
8999 needed when performing complex division.  Also, there is no checking
9000 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
9001 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.  The
9002 default is \fB\-fno\-cx\-limited\-range\fR, but is enabled by
9003 \&\fB\-ffast\-math\fR.
9004 .Sp
9005 This option controls the default setting of the \s-1ISO\s0 C99
9006 \&\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma.  Nevertheless, the option applies to
9007 all languages.
9008 .IP "\fB\-fcx\-fortran\-rules\fR" 4
9009 .IX Item "-fcx-fortran-rules"
9010 Complex multiplication and division follow Fortran rules.  Range
9011 reduction is done as part of complex division, but there is no checking
9012 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
9013 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.
9014 .Sp
9015 The default is \fB\-fno\-cx\-fortran\-rules\fR.
9016 .PP
9017 The following options control optimizations that may improve
9018 performance, but are not enabled by any \fB\-O\fR options.  This
9019 section includes experimental options that may produce broken code.
9020 .IP "\fB\-fbranch\-probabilities\fR" 4
9021 .IX Item "-fbranch-probabilities"
9022 After running a program compiled with \fB\-fprofile\-arcs\fR, you can compile it a second time using
9023 \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
9024 the number of times each branch was taken.  When a program
9025 compiled with \fB\-fprofile\-arcs\fR exits, it saves arc execution
9026 counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
9027 file.  The information in this data file is very dependent on the
9028 structure of the generated code, so you must use the same source code
9029 and the same optimization options for both compilations.
9030 .Sp
9031 With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
9032 \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
9033 These can be used to improve optimization.  Currently, they are only
9034 used in one place: in \fIreorg.c\fR, instead of guessing which path a
9035 branch is most likely to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
9036 exactly determine which path is taken more often.
9037 .IP "\fB\-fprofile\-values\fR" 4
9038 .IX Item "-fprofile-values"
9039 If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
9040 data about values of expressions in the program is gathered.
9041 .Sp
9042 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
9043 from profiling values of expressions for usage in optimizations.
9044 .Sp
9045 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
9046 .IP "\fB\-fprofile\-reorder\-functions\fR" 4
9047 .IX Item "-fprofile-reorder-functions"
9048 Function reordering based on profile instrumentation collects
9049 first time of execution of a function and orders these functions
9050 in ascending order.
9051 .Sp
9052 Enabled with \fB\-fprofile\-use\fR.
9053 .IP "\fB\-fvpt\fR" 4
9054 .IX Item "-fvpt"
9055 If combined with \fB\-fprofile\-arcs\fR, this option instructs the compiler
9056 to add code to gather information about values of expressions.
9057 .Sp
9058 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
9059 and actually performs the optimizations based on them.
9060 Currently the optimizations include specialization of division operations
9061 using the knowledge about the value of the denominator.
9062 .IP "\fB\-frename\-registers\fR" 4
9063 .IX Item "-frename-registers"
9064 Attempt to avoid false dependencies in scheduled code by making use
9065 of registers left over after register allocation.  This optimization
9066 most benefits processors with lots of registers.  Depending on the
9067 debug information format adopted by the target, however, it can
9068 make debugging impossible, since variables no longer stay in
9069 a \*(L"home register\*(R".
9070 .Sp
9071 Enabled by default with \fB\-funroll\-loops\fR and \fB\-fpeel\-loops\fR.
9072 .IP "\fB\-fschedule\-fusion\fR" 4
9073 .IX Item "-fschedule-fusion"
9074 Performs a target dependent pass over the instruction stream to schedule
9075 instructions of same type together because target machine can execute them
9076 more efficiently if they are adjacent to each other in the instruction flow.
9077 .Sp
9078 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
9079 .IP "\fB\-ftracer\fR" 4
9080 .IX Item "-ftracer"
9081 Perform tail duplication to enlarge superblock size.  This transformation
9082 simplifies the control flow of the function allowing other optimizations to do
9083 a better job.
9084 .Sp
9085 Enabled with \fB\-fprofile\-use\fR.
9086 .IP "\fB\-funroll\-loops\fR" 4
9087 .IX Item "-funroll-loops"
9088 Unroll loops whose number of iterations can be determined at compile time or
9089 upon entry to the loop.  \fB\-funroll\-loops\fR implies
9090 \&\fB\-frerun\-cse\-after\-loop\fR, \fB\-fweb\fR and \fB\-frename\-registers\fR.
9091 It also turns on complete loop peeling (i.e. complete removal of loops with
9092 a small constant number of iterations).  This option makes code larger, and may
9093 or may not make it run faster.
9094 .Sp
9095 Enabled with \fB\-fprofile\-use\fR.
9096 .IP "\fB\-funroll\-all\-loops\fR" 4
9097 .IX Item "-funroll-all-loops"
9098 Unroll all loops, even if their number of iterations is uncertain when
9099 the loop is entered.  This usually makes programs run more slowly.
9100 \&\fB\-funroll\-all\-loops\fR implies the same options as
9101 \&\fB\-funroll\-loops\fR.
9102 .IP "\fB\-fpeel\-loops\fR" 4
9103 .IX Item "-fpeel-loops"
9104 Peels loops for which there is enough information that they do not
9105 roll much (from profile feedback).  It also turns on complete loop peeling
9106 (i.e. complete removal of loops with small constant number of iterations).
9107 .Sp
9108 Enabled with \fB\-fprofile\-use\fR.
9109 .IP "\fB\-fmove\-loop\-invariants\fR" 4
9110 .IX Item "-fmove-loop-invariants"
9111 Enables the loop invariant motion pass in the \s-1RTL\s0 loop optimizer.  Enabled
9112 at level \fB\-O1\fR
9113 .IP "\fB\-funswitch\-loops\fR" 4
9114 .IX Item "-funswitch-loops"
9115 Move branches with loop invariant conditions out of the loop, with duplicates
9116 of the loop on both branches (modified according to result of the condition).
9117 .IP "\fB\-ffunction\-sections\fR" 4
9118 .IX Item "-ffunction-sections"
9119 .PD 0
9120 .IP "\fB\-fdata\-sections\fR" 4
9121 .IX Item "-fdata-sections"
9122 .PD
9123 Place each function or data item into its own section in the output
9124 file if the target supports arbitrary sections.  The name of the
9125 function or the name of the data item determines the section's name
9126 in the output file.
9127 .Sp
9128 Use these options on systems where the linker can perform optimizations
9129 to improve locality of reference in the instruction space.  Most systems
9130 using the \s-1ELF\s0 object format and \s-1SPARC\s0 processors running Solaris 2 have
9131 linkers with such optimizations.  \s-1AIX\s0 may have these optimizations in
9132 the future.
9133 .Sp
9134 Only use these options when there are significant benefits from doing
9135 so.  When you specify these options, the assembler and linker
9136 create larger object and executable files and are also slower.
9137 You cannot use \fBgprof\fR on all systems if you
9138 specify this option, and you may have problems with debugging if
9139 you specify both this option and \fB\-g\fR.
9140 .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
9141 .IX Item "-fbranch-target-load-optimize"
9142 Perform branch target register load optimization before prologue / epilogue
9143 threading.
9144 The use of target registers can typically be exposed only during reload,
9145 thus hoisting loads out of loops and doing inter-block scheduling needs
9146 a separate optimization pass.
9147 .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
9148 .IX Item "-fbranch-target-load-optimize2"
9149 Perform branch target register load optimization after prologue / epilogue
9150 threading.
9151 .IP "\fB\-fbtr\-bb\-exclusive\fR" 4
9152 .IX Item "-fbtr-bb-exclusive"
9153 When performing branch target register load optimization, don't reuse
9154 branch target registers within any basic block.
9155 .IP "\fB\-fstack\-protector\fR" 4
9156 .IX Item "-fstack-protector"
9157 Emit extra code to check for buffer overflows, such as stack smashing
9158 attacks.  This is done by adding a guard variable to functions with
9159 vulnerable objects.  This includes functions that call \f(CW\*(C`alloca\*(C'\fR, and
9160 functions with buffers larger than 8 bytes.  The guards are initialized
9161 when a function is entered and then checked when the function exits.
9162 If a guard check fails, an error message is printed and the program exits.
9163 .IP "\fB\-fstack\-protector\-all\fR" 4
9164 .IX Item "-fstack-protector-all"
9165 Like \fB\-fstack\-protector\fR except that all functions are protected.
9166 .IP "\fB\-fstack\-protector\-strong\fR" 4
9167 .IX Item "-fstack-protector-strong"
9168 Like \fB\-fstack\-protector\fR but includes additional functions to
9169 be protected \-\-\- those that have local array definitions, or have
9170 references to local frame addresses.
9171 .IP "\fB\-fstack\-protector\-explicit\fR" 4
9172 .IX Item "-fstack-protector-explicit"
9173 Like \fB\-fstack\-protector\fR but only protects those functions which
9174 have the \f(CW\*(C`stack_protect\*(C'\fR attribute
9175 .IP "\fB\-fstdarg\-opt\fR" 4
9176 .IX Item "-fstdarg-opt"
9177 Optimize the prologue of variadic argument functions with respect to usage of
9178 those arguments.
9179 .IP "\fB\-fsection\-anchors\fR" 4
9180 .IX Item "-fsection-anchors"
9181 Try to reduce the number of symbolic address calculations by using
9182 shared \*(L"anchor\*(R" symbols to address nearby objects.  This transformation
9183 can help to reduce the number of \s-1GOT\s0 entries and \s-1GOT\s0 accesses on some
9184 targets.
9185 .Sp
9186 For example, the implementation of the following function \f(CW\*(C`foo\*(C'\fR:
9187 .Sp
9188 .Vb 2
9189 \&        static int a, b, c;
9190 \&        int foo (void) { return a + b + c; }
9191 .Ve
9192 .Sp
9193 usually calculates the addresses of all three variables, but if you
9194 compile it with \fB\-fsection\-anchors\fR, it accesses the variables
9195 from a common anchor point instead.  The effect is similar to the
9196 following pseudocode (which isn't valid C):
9197 .Sp
9198 .Vb 5
9199 \&        int foo (void)
9200 \&        {
9201 \&          register int *xr = &x;
9202 \&          return xr[&a \- &x] + xr[&b \- &x] + xr[&c \- &x];
9203 \&        }
9204 .Ve
9205 .Sp
9206 Not all targets support this option.
9207 .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
9208 .IX Item "--param name=value"
9209 In some places, \s-1GCC\s0 uses various constants to control the amount of
9210 optimization that is done.  For example, \s-1GCC\s0 does not inline functions
9211 that contain more than a certain number of instructions.  You can
9212 control some of these constants on the command line using the
9213 \&\fB\-\-param\fR option.
9214 .Sp
9215 The names of specific parameters, and the meaning of the values, are
9216 tied to the internals of the compiler, and are subject to change
9217 without notice in future releases.
9218 .Sp
9219 In each case, the \fIvalue\fR is an integer.  The allowable choices for
9220 \&\fIname\fR are:
9221 .RS 4
9222 .IP "\fBpredictable-branch-outcome\fR" 4
9223 .IX Item "predictable-branch-outcome"
9224 When branch is predicted to be taken with probability lower than this threshold
9225 (in percent), then it is considered well predictable. The default is 10.
9226 .IP "\fBmax-crossjump-edges\fR" 4
9227 .IX Item "max-crossjump-edges"
9228 The maximum number of incoming edges to consider for cross-jumping.
9229 The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
9230 the number of edges incoming to each block.  Increasing values mean
9231 more aggressive optimization, making the compilation time increase with
9232 probably small improvement in executable size.
9233 .IP "\fBmin-crossjump-insns\fR" 4
9234 .IX Item "min-crossjump-insns"
9235 The minimum number of instructions that must be matched at the end
9236 of two blocks before cross-jumping is performed on them.  This
9237 value is ignored in the case where all instructions in the block being
9238 cross-jumped from are matched.  The default value is 5.
9239 .IP "\fBmax-grow-copy-bb-insns\fR" 4
9240 .IX Item "max-grow-copy-bb-insns"
9241 The maximum code size expansion factor when copying basic blocks
9242 instead of jumping.  The expansion is relative to a jump instruction.
9243 The default value is 8.
9244 .IP "\fBmax-goto-duplication-insns\fR" 4
9245 .IX Item "max-goto-duplication-insns"
9246 The maximum number of instructions to duplicate to a block that jumps
9247 to a computed goto.  To avoid O(N^2) behavior in a number of
9248 passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
9249 and unfactors them as late as possible.  Only computed jumps at the
9250 end of a basic blocks with no more than max-goto-duplication-insns are
9251 unfactored.  The default value is 8.
9252 .IP "\fBmax-delay-slot-insn-search\fR" 4
9253 .IX Item "max-delay-slot-insn-search"
9254 The maximum number of instructions to consider when looking for an
9255 instruction to fill a delay slot.  If more than this arbitrary number of
9256 instructions are searched, the time savings from filling the delay slot
9257 are minimal, so stop searching.  Increasing values mean more
9258 aggressive optimization, making the compilation time increase with probably
9259 small improvement in execution time.
9260 .IP "\fBmax-delay-slot-live-search\fR" 4
9261 .IX Item "max-delay-slot-live-search"
9262 When trying to fill delay slots, the maximum number of instructions to
9263 consider when searching for a block with valid live register
9264 information.  Increasing this arbitrarily chosen value means more
9265 aggressive optimization, increasing the compilation time.  This parameter
9266 should be removed when the delay slot code is rewritten to maintain the
9267 control-flow graph.
9268 .IP "\fBmax-gcse-memory\fR" 4
9269 .IX Item "max-gcse-memory"
9270 The approximate maximum amount of memory that can be allocated in
9271 order to perform the global common subexpression elimination
9272 optimization.  If more memory than specified is required, the
9273 optimization is not done.
9274 .IP "\fBmax-gcse-insertion-ratio\fR" 4
9275 .IX Item "max-gcse-insertion-ratio"
9276 If the ratio of expression insertions to deletions is larger than this value
9277 for any expression, then \s-1RTL\s0 \s-1PRE\s0 inserts or removes the expression and thus
9278 leaves partially redundant computations in the instruction stream.  The default value is 20.
9279 .IP "\fBmax-pending-list-length\fR" 4
9280 .IX Item "max-pending-list-length"
9281 The maximum number of pending dependencies scheduling allows
9282 before flushing the current state and starting over.  Large functions
9283 with few branches or calls can create excessively large lists which
9284 needlessly consume memory and resources.
9285 .IP "\fBmax-modulo-backtrack-attempts\fR" 4
9286 .IX Item "max-modulo-backtrack-attempts"
9287 The maximum number of backtrack attempts the scheduler should make
9288 when modulo scheduling a loop.  Larger values can exponentially increase
9289 compilation time.
9290 .IP "\fBmax-inline-insns-single\fR" 4
9291 .IX Item "max-inline-insns-single"
9292 Several parameters control the tree inliner used in \s-1GCC\s0.
9293 This number sets the maximum number of instructions (counted in \s-1GCC\s0's
9294 internal representation) in a single function that the tree inliner
9295 considers for inlining.  This only affects functions declared
9296 inline and methods implemented in a class declaration (\*(C+).
9297 The default value is 400.
9298 .IP "\fBmax-inline-insns-auto\fR" 4
9299 .IX Item "max-inline-insns-auto"
9300 When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
9301 a lot of functions that would otherwise not be considered for inlining
9302 by the compiler are investigated.  To those functions, a different
9303 (more restrictive) limit compared to functions declared inline can
9304 be applied.
9305 The default value is 40.
9306 .IP "\fBinline-min-speedup\fR" 4
9307 .IX Item "inline-min-speedup"
9308 When estimated performance improvement of caller + callee runtime exceeds this
9309 threshold (in precent), the function can be inlined regardless the limit on
9310 \&\fB\-\-param max-inline-insns-single\fR and \fB\-\-param
9311 max-inline-insns-auto\fR.
9312 .IP "\fBlarge-function-insns\fR" 4
9313 .IX Item "large-function-insns"
9314 The limit specifying really large functions.  For functions larger than this
9315 limit after inlining, inlining is constrained by
9316 \&\fB\-\-param large-function-growth\fR.  This parameter is useful primarily
9317 to avoid extreme compilation time caused by non-linear algorithms used by the
9318 back end.
9319 The default value is 2700.
9320 .IP "\fBlarge-function-growth\fR" 4
9321 .IX Item "large-function-growth"
9322 Specifies maximal growth of large function caused by inlining in percents.
9323 The default value is 100 which limits large function growth to 2.0 times
9324 the original size.
9325 .IP "\fBlarge-unit-insns\fR" 4
9326 .IX Item "large-unit-insns"
9327 The limit specifying large translation unit.  Growth caused by inlining of
9328 units larger than this limit is limited by \fB\-\-param inline-unit-growth\fR.
9329 For small units this might be too tight.
9330 For example, consider a unit consisting of function A
9331 that is inline and B that just calls A three times.  If B is small relative to
9332 A, the growth of unit is 300\e% and yet such inlining is very sane.  For very
9333 large units consisting of small inlineable functions, however, the overall unit
9334 growth limit is needed to avoid exponential explosion of code size.  Thus for
9335 smaller units, the size is increased to \fB\-\-param large-unit-insns\fR
9336 before applying \fB\-\-param inline-unit-growth\fR.  The default is 10000.
9337 .IP "\fBinline-unit-growth\fR" 4
9338 .IX Item "inline-unit-growth"
9339 Specifies maximal overall growth of the compilation unit caused by inlining.
9340 The default value is 20 which limits unit growth to 1.2 times the original
9341 size. Cold functions (either marked cold via an attribute or by profile
9342 feedback) are not accounted into the unit size.
9343 .IP "\fBipcp-unit-growth\fR" 4
9344 .IX Item "ipcp-unit-growth"
9345 Specifies maximal overall growth of the compilation unit caused by
9346 interprocedural constant propagation.  The default value is 10 which limits
9347 unit growth to 1.1 times the original size.
9348 .IP "\fBlarge-stack-frame\fR" 4
9349 .IX Item "large-stack-frame"
9350 The limit specifying large stack frames.  While inlining the algorithm is trying
9351 to not grow past this limit too much.  The default value is 256 bytes.
9352 .IP "\fBlarge-stack-frame-growth\fR" 4
9353 .IX Item "large-stack-frame-growth"
9354 Specifies maximal growth of large stack frames caused by inlining in percents.
9355 The default value is 1000 which limits large stack frame growth to 11 times
9356 the original size.
9357 .IP "\fBmax-inline-insns-recursive\fR" 4
9358 .IX Item "max-inline-insns-recursive"
9359 .PD 0
9360 .IP "\fBmax-inline-insns-recursive-auto\fR" 4
9361 .IX Item "max-inline-insns-recursive-auto"
9362 .PD
9363 Specifies the maximum number of instructions an out-of-line copy of a
9364 self-recursive inline
9365 function can grow into by performing recursive inlining.
9366 .Sp
9367 \&\fB\-\-param max-inline-insns-recursive\fR applies to functions
9368 declared inline.
9369 For functions not declared inline, recursive inlining
9370 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
9371 enabled; \fB\-\-param max-inline-insns-recursive-auto\fR applies instead.  The
9372 default value is 450.
9373 .IP "\fBmax-inline-recursive-depth\fR" 4
9374 .IX Item "max-inline-recursive-depth"
9375 .PD 0
9376 .IP "\fBmax-inline-recursive-depth-auto\fR" 4
9377 .IX Item "max-inline-recursive-depth-auto"
9378 .PD
9379 Specifies the maximum recursion depth used for recursive inlining.
9380 .Sp
9381 \&\fB\-\-param max-inline-recursive-depth\fR applies to functions
9382 declared inline.  For functions not declared inline, recursive inlining
9383 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
9384 enabled; \fB\-\-param max-inline-recursive-depth-auto\fR applies instead.  The
9385 default value is 8.
9386 .IP "\fBmin-inline-recursive-probability\fR" 4
9387 .IX Item "min-inline-recursive-probability"
9388 Recursive inlining is profitable only for function having deep recursion
9389 in average and can hurt for function having little recursion depth by
9390 increasing the prologue size or complexity of function body to other
9391 optimizers.
9392 .Sp
9393 When profile feedback is available (see \fB\-fprofile\-generate\fR) the actual
9394 recursion depth can be guessed from probability that function recurses via a
9395 given call expression.  This parameter limits inlining only to call expressions
9396 whose probability exceeds the given threshold (in percents).
9397 The default value is 10.
9398 .IP "\fBearly-inlining-insns\fR" 4
9399 .IX Item "early-inlining-insns"
9400 Specify growth that the early inliner can make.  In effect it increases
9401 the amount of inlining for code having a large abstraction penalty.
9402 The default value is 14.
9403 .IP "\fBmax-early-inliner-iterations\fR" 4
9404 .IX Item "max-early-inliner-iterations"
9405 Limit of iterations of the early inliner.  This basically bounds
9406 the number of nested indirect calls the early inliner can resolve.
9407 Deeper chains are still handled by late inlining.
9408 .IP "\fBcomdat-sharing-probability\fR" 4
9409 .IX Item "comdat-sharing-probability"
9410 Probability (in percent) that \*(C+ inline function with comdat visibility
9411 are shared across multiple compilation units.  The default value is 20.
9412 .IP "\fBprofile-func-internal-id\fR" 4
9413 .IX Item "profile-func-internal-id"
9414 A parameter to control whether to use function internal id in profile
9415 database lookup. If the value is 0, the compiler uses an id that
9416 is based on function assembler name and filename, which makes old profile
9417 data more tolerant to source changes such as function reordering etc.
9418 The default value is 0.
9419 .IP "\fBmin-vect-loop-bound\fR" 4
9420 .IX Item "min-vect-loop-bound"
9421 The minimum number of iterations under which loops are not vectorized
9422 when \fB\-ftree\-vectorize\fR is used.  The number of iterations after
9423 vectorization needs to be greater than the value specified by this option
9424 to allow vectorization.  The default value is 0.
9425 .IP "\fBgcse-cost-distance-ratio\fR" 4
9426 .IX Item "gcse-cost-distance-ratio"
9427 Scaling factor in calculation of maximum distance an expression
9428 can be moved by \s-1GCSE\s0 optimizations.  This is currently supported only in the
9429 code hoisting pass.  The bigger the ratio, the more aggressive code hoisting
9430 is with simple expressions, i.e., the expressions that have cost
9431 less than \fBgcse-unrestricted-cost\fR.  Specifying 0 disables
9432 hoisting of simple expressions.  The default value is 10.
9433 .IP "\fBgcse-unrestricted-cost\fR" 4
9434 .IX Item "gcse-unrestricted-cost"
9435 Cost, roughly measured as the cost of a single typical machine
9436 instruction, at which \s-1GCSE\s0 optimizations do not constrain
9437 the distance an expression can travel.  This is currently
9438 supported only in the code hoisting pass.  The lesser the cost,
9439 the more aggressive code hoisting is.  Specifying 0 
9440 allows all expressions to travel unrestricted distances.
9441 The default value is 3.
9442 .IP "\fBmax-hoist-depth\fR" 4
9443 .IX Item "max-hoist-depth"
9444 The depth of search in the dominator tree for expressions to hoist.
9445 This is used to avoid quadratic behavior in hoisting algorithm.
9446 The value of 0 does not limit on the search, but may slow down compilation
9447 of huge functions.  The default value is 30.
9448 .IP "\fBmax-tail-merge-comparisons\fR" 4
9449 .IX Item "max-tail-merge-comparisons"
9450 The maximum amount of similar bbs to compare a bb with.  This is used to
9451 avoid quadratic behavior in tree tail merging.  The default value is 10.
9452 .IP "\fBmax-tail-merge-iterations\fR" 4
9453 .IX Item "max-tail-merge-iterations"
9454 The maximum amount of iterations of the pass over the function.  This is used to
9455 limit compilation time in tree tail merging.  The default value is 2.
9456 .IP "\fBmax-unrolled-insns\fR" 4
9457 .IX Item "max-unrolled-insns"
9458 The maximum number of instructions that a loop may have to be unrolled.
9459 If a loop is unrolled, this parameter also determines how many times
9460 the loop code is unrolled.
9461 .IP "\fBmax-average-unrolled-insns\fR" 4
9462 .IX Item "max-average-unrolled-insns"
9463 The maximum number of instructions biased by probabilities of their execution
9464 that a loop may have to be unrolled.  If a loop is unrolled,
9465 this parameter also determines how many times the loop code is unrolled.
9466 .IP "\fBmax-unroll-times\fR" 4
9467 .IX Item "max-unroll-times"
9468 The maximum number of unrollings of a single loop.
9469 .IP "\fBmax-peeled-insns\fR" 4
9470 .IX Item "max-peeled-insns"
9471 The maximum number of instructions that a loop may have to be peeled.
9472 If a loop is peeled, this parameter also determines how many times
9473 the loop code is peeled.
9474 .IP "\fBmax-peel-times\fR" 4
9475 .IX Item "max-peel-times"
9476 The maximum number of peelings of a single loop.
9477 .IP "\fBmax-peel-branches\fR" 4
9478 .IX Item "max-peel-branches"
9479 The maximum number of branches on the hot path through the peeled sequence.
9480 .IP "\fBmax-completely-peeled-insns\fR" 4
9481 .IX Item "max-completely-peeled-insns"
9482 The maximum number of insns of a completely peeled loop.
9483 .IP "\fBmax-completely-peel-times\fR" 4
9484 .IX Item "max-completely-peel-times"
9485 The maximum number of iterations of a loop to be suitable for complete peeling.
9486 .IP "\fBmax-completely-peel-loop-nest-depth\fR" 4
9487 .IX Item "max-completely-peel-loop-nest-depth"
9488 The maximum depth of a loop nest suitable for complete peeling.
9489 .IP "\fBmax-unswitch-insns\fR" 4
9490 .IX Item "max-unswitch-insns"
9491 The maximum number of insns of an unswitched loop.
9492 .IP "\fBmax-unswitch-level\fR" 4
9493 .IX Item "max-unswitch-level"
9494 The maximum number of branches unswitched in a single loop.
9495 .IP "\fBlim-expensive\fR" 4
9496 .IX Item "lim-expensive"
9497 The minimum cost of an expensive expression in the loop invariant motion.
9498 .IP "\fBiv-consider-all-candidates-bound\fR" 4
9499 .IX Item "iv-consider-all-candidates-bound"
9500 Bound on number of candidates for induction variables, below which
9501 all candidates are considered for each use in induction variable
9502 optimizations.  If there are more candidates than this,
9503 only the most relevant ones are considered to avoid quadratic time complexity.
9504 .IP "\fBiv-max-considered-uses\fR" 4
9505 .IX Item "iv-max-considered-uses"
9506 The induction variable optimizations give up on loops that contain more
9507 induction variable uses.
9508 .IP "\fBiv-always-prune-cand-set-bound\fR" 4
9509 .IX Item "iv-always-prune-cand-set-bound"
9510 If the number of candidates in the set is smaller than this value,
9511 always try to remove unnecessary ivs from the set
9512 when adding a new one.
9513 .IP "\fBscev-max-expr-size\fR" 4
9514 .IX Item "scev-max-expr-size"
9515 Bound on size of expressions used in the scalar evolutions analyzer.
9516 Large expressions slow the analyzer.
9517 .IP "\fBscev-max-expr-complexity\fR" 4
9518 .IX Item "scev-max-expr-complexity"
9519 Bound on the complexity of the expressions in the scalar evolutions analyzer.
9520 Complex expressions slow the analyzer.
9521 .IP "\fBomega-max-vars\fR" 4
9522 .IX Item "omega-max-vars"
9523 The maximum number of variables in an Omega constraint system.
9524 The default value is 128.
9525 .IP "\fBomega-max-geqs\fR" 4
9526 .IX Item "omega-max-geqs"
9527 The maximum number of inequalities in an Omega constraint system.
9528 The default value is 256.
9529 .IP "\fBomega-max-eqs\fR" 4
9530 .IX Item "omega-max-eqs"
9531 The maximum number of equalities in an Omega constraint system.
9532 The default value is 128.
9533 .IP "\fBomega-max-wild-cards\fR" 4
9534 .IX Item "omega-max-wild-cards"
9535 The maximum number of wildcard variables that the Omega solver is
9536 able to insert.  The default value is 18.
9537 .IP "\fBomega-hash-table-size\fR" 4
9538 .IX Item "omega-hash-table-size"
9539 The size of the hash table in the Omega solver.  The default value is
9540 550.
9541 .IP "\fBomega-max-keys\fR" 4
9542 .IX Item "omega-max-keys"
9543 The maximal number of keys used by the Omega solver.  The default
9544 value is 500.
9545 .IP "\fBomega-eliminate-redundant-constraints\fR" 4
9546 .IX Item "omega-eliminate-redundant-constraints"
9547 When set to 1, use expensive methods to eliminate all redundant
9548 constraints.  The default value is 0.
9549 .IP "\fBvect-max-version-for-alignment-checks\fR" 4
9550 .IX Item "vect-max-version-for-alignment-checks"
9551 The maximum number of run-time checks that can be performed when
9552 doing loop versioning for alignment in the vectorizer.
9553 .IP "\fBvect-max-version-for-alias-checks\fR" 4
9554 .IX Item "vect-max-version-for-alias-checks"
9555 The maximum number of run-time checks that can be performed when
9556 doing loop versioning for alias in the vectorizer.
9557 .IP "\fBvect-max-peeling-for-alignment\fR" 4
9558 .IX Item "vect-max-peeling-for-alignment"
9559 The maximum number of loop peels to enhance access alignment
9560 for vectorizer. Value \-1 means 'no limit'.
9561 .IP "\fBmax-iterations-to-track\fR" 4
9562 .IX Item "max-iterations-to-track"
9563 The maximum number of iterations of a loop the brute-force algorithm
9564 for analysis of the number of iterations of the loop tries to evaluate.
9565 .IP "\fBhot-bb-count-ws-permille\fR" 4
9566 .IX Item "hot-bb-count-ws-permille"
9567 A basic block profile count is considered hot if it contributes to 
9568 the given permillage (i.e. 0...1000) of the entire profiled execution.
9569 .IP "\fBhot-bb-frequency-fraction\fR" 4
9570 .IX Item "hot-bb-frequency-fraction"
9571 Select fraction of the entry block frequency of executions of basic block in
9572 function given basic block needs to have to be considered hot.
9573 .IP "\fBmax-predicted-iterations\fR" 4
9574 .IX Item "max-predicted-iterations"
9575 The maximum number of loop iterations we predict statically.  This is useful
9576 in cases where a function contains a single loop with known bound and
9577 another loop with unknown bound.
9578 The known number of iterations is predicted correctly, while
9579 the unknown number of iterations average to roughly 10.  This means that the
9580 loop without bounds appears artificially cold relative to the other one.
9581 .IP "\fBbuiltin-expect-probability\fR" 4
9582 .IX Item "builtin-expect-probability"
9583 Control the probability of the expression having the specified value. This
9584 parameter takes a percentage (i.e. 0 ... 100) as input.
9585 The default probability of 90 is obtained empirically.
9586 .IP "\fBalign-threshold\fR" 4
9587 .IX Item "align-threshold"
9588 Select fraction of the maximal frequency of executions of a basic block in
9589 a function to align the basic block.
9590 .IP "\fBalign-loop-iterations\fR" 4
9591 .IX Item "align-loop-iterations"
9592 A loop expected to iterate at least the selected number of iterations is
9593 aligned.
9594 .IP "\fBtracer-dynamic-coverage\fR" 4
9595 .IX Item "tracer-dynamic-coverage"
9596 .PD 0
9597 .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
9598 .IX Item "tracer-dynamic-coverage-feedback"
9599 .PD
9600 This value is used to limit superblock formation once the given percentage of
9601 executed instructions is covered.  This limits unnecessary code size
9602 expansion.
9603 .Sp
9604 The \fBtracer-dynamic-coverage-feedback\fR parameter
9605 is used only when profile
9606 feedback is available.  The real profiles (as opposed to statically estimated
9607 ones) are much less balanced allowing the threshold to be larger value.
9608 .IP "\fBtracer-max-code-growth\fR" 4
9609 .IX Item "tracer-max-code-growth"
9610 Stop tail duplication once code growth has reached given percentage.  This is
9611 a rather artificial limit, as most of the duplicates are eliminated later in
9612 cross jumping, so it may be set to much higher values than is the desired code
9613 growth.
9614 .IP "\fBtracer-min-branch-ratio\fR" 4
9615 .IX Item "tracer-min-branch-ratio"
9616 Stop reverse growth when the reverse probability of best edge is less than this
9617 threshold (in percent).
9618 .IP "\fBtracer-min-branch-ratio\fR" 4
9619 .IX Item "tracer-min-branch-ratio"
9620 .PD 0
9621 .IP "\fBtracer-min-branch-ratio-feedback\fR" 4
9622 .IX Item "tracer-min-branch-ratio-feedback"
9623 .PD
9624 Stop forward growth if the best edge has probability lower than this
9625 threshold.
9626 .Sp
9627 Similarly to \fBtracer-dynamic-coverage\fR two values are present, one for
9628 compilation for profile feedback and one for compilation without.  The value
9629 for compilation with profile feedback needs to be more conservative (higher) in
9630 order to make tracer effective.
9631 .IP "\fBmax-cse-path-length\fR" 4
9632 .IX Item "max-cse-path-length"
9633 The maximum number of basic blocks on path that \s-1CSE\s0 considers.
9634 The default is 10.
9635 .IP "\fBmax-cse-insns\fR" 4
9636 .IX Item "max-cse-insns"
9637 The maximum number of instructions \s-1CSE\s0 processes before flushing.
9638 The default is 1000.
9639 .IP "\fBggc-min-expand\fR" 4
9640 .IX Item "ggc-min-expand"
9641 \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation.  This
9642 parameter specifies the minimum percentage by which the garbage
9643 collector's heap should be allowed to expand between collections.
9644 Tuning this may improve compilation speed; it has no effect on code
9645 generation.
9646 .Sp
9647 The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
9648 \&\s-1RAM\s0 >= 1GB.  If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\s0\*(R" is
9649 the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR.  If
9650 \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
9651 bound of 30% is used.  Setting this parameter and
9652 \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
9653 every opportunity.  This is extremely slow, but can be useful for
9654 debugging.
9655 .IP "\fBggc-min-heapsize\fR" 4
9656 .IX Item "ggc-min-heapsize"
9657 Minimum size of the garbage collector's heap before it begins bothering
9658 to collect garbage.  The first collection occurs after the heap expands
9659 by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR.  Again,
9660 tuning this may improve compilation speed, and has no effect on code
9661 generation.
9662 .Sp
9663 The default is the smaller of \s-1RAM/8\s0, \s-1RLIMIT_RSS\s0, or a limit that
9664 tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
9665 with a lower bound of 4096 (four megabytes) and an upper bound of
9666 131072 (128 megabytes).  If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
9667 particular platform, the lower bound is used.  Setting this parameter
9668 very large effectively disables garbage collection.  Setting this
9669 parameter and \fBggc-min-expand\fR to zero causes a full collection
9670 to occur at every opportunity.
9671 .IP "\fBmax-reload-search-insns\fR" 4
9672 .IX Item "max-reload-search-insns"
9673 The maximum number of instruction reload should look backward for equivalent
9674 register.  Increasing values mean more aggressive optimization, making the
9675 compilation time increase with probably slightly better performance.
9676 The default value is 100.
9677 .IP "\fBmax-cselib-memory-locations\fR" 4
9678 .IX Item "max-cselib-memory-locations"
9679 The maximum number of memory locations cselib should take into account.
9680 Increasing values mean more aggressive optimization, making the compilation time
9681 increase with probably slightly better performance.  The default value is 500.
9682 .IP "\fBreorder-blocks-duplicate\fR" 4
9683 .IX Item "reorder-blocks-duplicate"
9684 .PD 0
9685 .IP "\fBreorder-blocks-duplicate-feedback\fR" 4
9686 .IX Item "reorder-blocks-duplicate-feedback"
9687 .PD
9688 Used by the basic block reordering pass to decide whether to use unconditional
9689 branch or duplicate the code on its destination.  Code is duplicated when its
9690 estimated size is smaller than this value multiplied by the estimated size of
9691 unconditional jump in the hot spots of the program.
9692 .Sp
9693 The \fBreorder-block-duplicate-feedback\fR parameter
9694 is used only when profile
9695 feedback is available.  It may be set to higher values than
9696 \&\fBreorder-block-duplicate\fR since information about the hot spots is more
9697 accurate.
9698 .IP "\fBmax-sched-ready-insns\fR" 4
9699 .IX Item "max-sched-ready-insns"
9700 The maximum number of instructions ready to be issued the scheduler should
9701 consider at any given time during the first scheduling pass.  Increasing
9702 values mean more thorough searches, making the compilation time increase
9703 with probably little benefit.  The default value is 100.
9704 .IP "\fBmax-sched-region-blocks\fR" 4
9705 .IX Item "max-sched-region-blocks"
9706 The maximum number of blocks in a region to be considered for
9707 interblock scheduling.  The default value is 10.
9708 .IP "\fBmax-pipeline-region-blocks\fR" 4
9709 .IX Item "max-pipeline-region-blocks"
9710 The maximum number of blocks in a region to be considered for
9711 pipelining in the selective scheduler.  The default value is 15.
9712 .IP "\fBmax-sched-region-insns\fR" 4
9713 .IX Item "max-sched-region-insns"
9714 The maximum number of insns in a region to be considered for
9715 interblock scheduling.  The default value is 100.
9716 .IP "\fBmax-pipeline-region-insns\fR" 4
9717 .IX Item "max-pipeline-region-insns"
9718 The maximum number of insns in a region to be considered for
9719 pipelining in the selective scheduler.  The default value is 200.
9720 .IP "\fBmin-spec-prob\fR" 4
9721 .IX Item "min-spec-prob"
9722 The minimum probability (in percents) of reaching a source block
9723 for interblock speculative scheduling.  The default value is 40.
9724 .IP "\fBmax-sched-extend-regions-iters\fR" 4
9725 .IX Item "max-sched-extend-regions-iters"
9726 The maximum number of iterations through \s-1CFG\s0 to extend regions.
9727 A value of 0 (the default) disables region extensions.
9728 .IP "\fBmax-sched-insn-conflict-delay\fR" 4
9729 .IX Item "max-sched-insn-conflict-delay"
9730 The maximum conflict delay for an insn to be considered for speculative motion.
9731 The default value is 3.
9732 .IP "\fBsched-spec-prob-cutoff\fR" 4
9733 .IX Item "sched-spec-prob-cutoff"
9734 The minimal probability of speculation success (in percents), so that
9735 speculative insns are scheduled.
9736 The default value is 40.
9737 .IP "\fBsched-spec-state-edge-prob-cutoff\fR" 4
9738 .IX Item "sched-spec-state-edge-prob-cutoff"
9739 The minimum probability an edge must have for the scheduler to save its
9740 state across it.
9741 The default value is 10.
9742 .IP "\fBsched-mem-true-dep-cost\fR" 4
9743 .IX Item "sched-mem-true-dep-cost"
9744 Minimal distance (in \s-1CPU\s0 cycles) between store and load targeting same
9745 memory locations.  The default value is 1.
9746 .IP "\fBselsched-max-lookahead\fR" 4
9747 .IX Item "selsched-max-lookahead"
9748 The maximum size of the lookahead window of selective scheduling.  It is a
9749 depth of search for available instructions.
9750 The default value is 50.
9751 .IP "\fBselsched-max-sched-times\fR" 4
9752 .IX Item "selsched-max-sched-times"
9753 The maximum number of times that an instruction is scheduled during
9754 selective scheduling.  This is the limit on the number of iterations
9755 through which the instruction may be pipelined.  The default value is 2.
9756 .IP "\fBselsched-max-insns-to-rename\fR" 4
9757 .IX Item "selsched-max-insns-to-rename"
9758 The maximum number of best instructions in the ready list that are considered
9759 for renaming in the selective scheduler.  The default value is 2.
9760 .IP "\fBsms-min-sc\fR" 4
9761 .IX Item "sms-min-sc"
9762 The minimum value of stage count that swing modulo scheduler
9763 generates.  The default value is 2.
9764 .IP "\fBmax-last-value-rtl\fR" 4
9765 .IX Item "max-last-value-rtl"
9766 The maximum size measured as number of RTLs that can be recorded in an expression
9767 in combiner for a pseudo register as last known value of that register.  The default
9768 is 10000.
9769 .IP "\fBmax-combine-insns\fR" 4
9770 .IX Item "max-combine-insns"
9771 The maximum number of instructions the \s-1RTL\s0 combiner tries to combine.
9772 The default value is 2 at \fB\-Og\fR and 4 otherwise.
9773 .IP "\fBinteger-share-limit\fR" 4
9774 .IX Item "integer-share-limit"
9775 Small integer constants can use a shared data structure, reducing the
9776 compiler's memory usage and increasing its speed.  This sets the maximum
9777 value of a shared integer constant.  The default value is 256.
9778 .IP "\fBssp-buffer-size\fR" 4
9779 .IX Item "ssp-buffer-size"
9780 The minimum size of buffers (i.e. arrays) that receive stack smashing
9781 protection when \fB\-fstack\-protection\fR is used.
9782 .IP "\fBmin-size-for-stack-sharing\fR" 4
9783 .IX Item "min-size-for-stack-sharing"
9784 The minimum size of variables taking part in stack slot sharing when not
9785 optimizing. The default value is 32.
9786 .IP "\fBmax-jump-thread-duplication-stmts\fR" 4
9787 .IX Item "max-jump-thread-duplication-stmts"
9788 Maximum number of statements allowed in a block that needs to be
9789 duplicated when threading jumps.
9790 .IP "\fBmax-fields-for-field-sensitive\fR" 4
9791 .IX Item "max-fields-for-field-sensitive"
9792 Maximum number of fields in a structure treated in
9793 a field sensitive manner during pointer analysis.  The default is zero
9794 for \fB\-O0\fR and \fB\-O1\fR,
9795 and 100 for \fB\-Os\fR, \fB\-O2\fR, and \fB\-O3\fR.
9796 .IP "\fBprefetch-latency\fR" 4
9797 .IX Item "prefetch-latency"
9798 Estimate on average number of instructions that are executed before
9799 prefetch finishes.  The distance prefetched ahead is proportional
9800 to this constant.  Increasing this number may also lead to less
9801 streams being prefetched (see \fBsimultaneous-prefetches\fR).
9802 .IP "\fBsimultaneous-prefetches\fR" 4
9803 .IX Item "simultaneous-prefetches"
9804 Maximum number of prefetches that can run at the same time.
9805 .IP "\fBl1\-cache\-line\-size\fR" 4
9806 .IX Item "l1-cache-line-size"
9807 The size of cache line in L1 cache, in bytes.
9808 .IP "\fBl1\-cache\-size\fR" 4
9809 .IX Item "l1-cache-size"
9810 The size of L1 cache, in kilobytes.
9811 .IP "\fBl2\-cache\-size\fR" 4
9812 .IX Item "l2-cache-size"
9813 The size of L2 cache, in kilobytes.
9814 .IP "\fBmin-insn-to-prefetch-ratio\fR" 4
9815 .IX Item "min-insn-to-prefetch-ratio"
9816 The minimum ratio between the number of instructions and the
9817 number of prefetches to enable prefetching in a loop.
9818 .IP "\fBprefetch-min-insn-to-mem-ratio\fR" 4
9819 .IX Item "prefetch-min-insn-to-mem-ratio"
9820 The minimum ratio between the number of instructions and the
9821 number of memory references to enable prefetching in a loop.
9822 .IP "\fBuse-canonical-types\fR" 4
9823 .IX Item "use-canonical-types"
9824 Whether the compiler should use the \*(L"canonical\*(R" type system.  By
9825 default, this should always be 1, which uses a more efficient internal
9826 mechanism for comparing types in \*(C+ and Objective\-\*(C+.  However, if
9827 bugs in the canonical type system are causing compilation failures,
9828 set this value to 0 to disable canonical types.
9829 .IP "\fBswitch-conversion-max-branch-ratio\fR" 4
9830 .IX Item "switch-conversion-max-branch-ratio"
9831 Switch initialization conversion refuses to create arrays that are
9832 bigger than \fBswitch-conversion-max-branch-ratio\fR times the number of
9833 branches in the switch.
9834 .IP "\fBmax-partial-antic-length\fR" 4
9835 .IX Item "max-partial-antic-length"
9836 Maximum length of the partial antic set computed during the tree
9837 partial redundancy elimination optimization (\fB\-ftree\-pre\fR) when
9838 optimizing at \fB\-O3\fR and above.  For some sorts of source code
9839 the enhanced partial redundancy elimination optimization can run away,
9840 consuming all of the memory available on the host machine.  This
9841 parameter sets a limit on the length of the sets that are computed,
9842 which prevents the runaway behavior.  Setting a value of 0 for
9843 this parameter allows an unlimited set length.
9844 .IP "\fBsccvn-max-scc-size\fR" 4
9845 .IX Item "sccvn-max-scc-size"
9846 Maximum size of a strongly connected component (\s-1SCC\s0) during \s-1SCCVN\s0
9847 processing.  If this limit is hit, \s-1SCCVN\s0 processing for the whole
9848 function is not done and optimizations depending on it are
9849 disabled.  The default maximum \s-1SCC\s0 size is 10000.
9850 .IP "\fBsccvn-max-alias-queries-per-access\fR" 4
9851 .IX Item "sccvn-max-alias-queries-per-access"
9852 Maximum number of alias-oracle queries we perform when looking for
9853 redundancies for loads and stores.  If this limit is hit the search
9854 is aborted and the load or store is not considered redundant.  The
9855 number of queries is algorithmically limited to the number of
9856 stores on all paths from the load to the function entry.
9857 The default maxmimum number of queries is 1000.
9858 .IP "\fBira-max-loops-num\fR" 4
9859 .IX Item "ira-max-loops-num"
9860 \&\s-1IRA\s0 uses regional register allocation by default.  If a function
9861 contains more loops than the number given by this parameter, only at most
9862 the given number of the most frequently-executed loops form regions
9863 for regional register allocation.  The default value of the
9864 parameter is 100.
9865 .IP "\fBira-max-conflict-table-size\fR" 4
9866 .IX Item "ira-max-conflict-table-size"
9867 Although \s-1IRA\s0 uses a sophisticated algorithm to compress the conflict
9868 table, the table can still require excessive amounts of memory for
9869 huge functions.  If the conflict table for a function could be more
9870 than the size in \s-1MB\s0 given by this parameter, the register allocator
9871 instead uses a faster, simpler, and lower-quality
9872 algorithm that does not require building a pseudo-register conflict table.  
9873 The default value of the parameter is 2000.
9874 .IP "\fBira-loop-reserved-regs\fR" 4
9875 .IX Item "ira-loop-reserved-regs"
9876 \&\s-1IRA\s0 can be used to evaluate more accurate register pressure in loops
9877 for decisions to move loop invariants (see \fB\-O3\fR).  The number
9878 of available registers reserved for some other purposes is given
9879 by this parameter.  The default value of the parameter is 2, which is
9880 the minimal number of registers needed by typical instructions.
9881 This value is the best found from numerous experiments.
9882 .IP "\fBlra-inheritance-ebb-probability-cutoff\fR" 4
9883 .IX Item "lra-inheritance-ebb-probability-cutoff"
9884 \&\s-1LRA\s0 tries to reuse values reloaded in registers in subsequent insns.
9885 This optimization is called inheritance.  \s-1EBB\s0 is used as a region to
9886 do this optimization.  The parameter defines a minimal fall-through
9887 edge probability in percentage used to add \s-1BB\s0 to inheritance \s-1EBB\s0 in
9888 \&\s-1LRA\s0.  The default value of the parameter is 40.  The value was chosen
9889 from numerous runs of \s-1SPEC2000\s0 on x86\-64.
9890 .IP "\fBloop-invariant-max-bbs-in-loop\fR" 4
9891 .IX Item "loop-invariant-max-bbs-in-loop"
9892 Loop invariant motion can be very expensive, both in compilation time and
9893 in amount of needed compile-time memory, with very large loops.  Loops
9894 with more basic blocks than this parameter won't have loop invariant
9895 motion optimization performed on them.  The default value of the
9896 parameter is 1000 for \fB\-O1\fR and 10000 for \fB\-O2\fR and above.
9897 .IP "\fBloop-max-datarefs-for-datadeps\fR" 4
9898 .IX Item "loop-max-datarefs-for-datadeps"
9899 Building data dapendencies is expensive for very large loops.  This
9900 parameter limits the number of data references in loops that are
9901 considered for data dependence analysis.  These large loops are no
9902 handled by the optimizations using loop data dependencies.
9903 The default value is 1000.
9904 .IP "\fBmax-vartrack-size\fR" 4
9905 .IX Item "max-vartrack-size"
9906 Sets a maximum number of hash table slots to use during variable
9907 tracking dataflow analysis of any function.  If this limit is exceeded
9908 with variable tracking at assignments enabled, analysis for that
9909 function is retried without it, after removing all debug insns from
9910 the function.  If the limit is exceeded even without debug insns, var
9911 tracking analysis is completely disabled for the function.  Setting
9912 the parameter to zero makes it unlimited.
9913 .IP "\fBmax-vartrack-expr-depth\fR" 4
9914 .IX Item "max-vartrack-expr-depth"
9915 Sets a maximum number of recursion levels when attempting to map
9916 variable names or debug temporaries to value expressions.  This trades
9917 compilation time for more complete debug information.  If this is set too
9918 low, value expressions that are available and could be represented in
9919 debug information may end up not being used; setting this higher may
9920 enable the compiler to find more complex debug expressions, but compile
9921 time and memory use may grow.  The default is 12.
9922 .IP "\fBmin-nondebug-insn-uid\fR" 4
9923 .IX Item "min-nondebug-insn-uid"
9924 Use uids starting at this parameter for nondebug insns.  The range below
9925 the parameter is reserved exclusively for debug insns created by
9926 \&\fB\-fvar\-tracking\-assignments\fR, but debug insns may get
9927 (non-overlapping) uids above it if the reserved range is exhausted.
9928 .IP "\fBipa-sra-ptr-growth-factor\fR" 4
9929 .IX Item "ipa-sra-ptr-growth-factor"
9930 IPA-SRA replaces a pointer to an aggregate with one or more new
9931 parameters only when their cumulative size is less or equal to
9932 \&\fBipa-sra-ptr-growth-factor\fR times the size of the original
9933 pointer parameter.
9934 .IP "\fBsra-max-scalarization-size-Ospeed\fR" 4
9935 .IX Item "sra-max-scalarization-size-Ospeed"
9936 .PD 0
9937 .IP "\fBsra-max-scalarization-size-Osize\fR" 4
9938 .IX Item "sra-max-scalarization-size-Osize"
9939 .PD
9940 The two Scalar Reduction of Aggregates passes (\s-1SRA\s0 and IPA-SRA) aim to
9941 replace scalar parts of aggregates with uses of independent scalar
9942 variables.  These parameters control the maximum size, in storage units,
9943 of aggregate which is considered for replacement when compiling for
9944 speed
9945 (\fBsra-max-scalarization-size-Ospeed\fR) or size
9946 (\fBsra-max-scalarization-size-Osize\fR) respectively.
9947 .IP "\fBtm-max-aggregate-size\fR" 4
9948 .IX Item "tm-max-aggregate-size"
9949 When making copies of thread-local variables in a transaction, this
9950 parameter specifies the size in bytes after which variables are
9951 saved with the logging functions as opposed to save/restore code
9952 sequence pairs.  This option only applies when using
9953 \&\fB\-fgnu\-tm\fR.
9954 .IP "\fBgraphite-max-nb-scop-params\fR" 4
9955 .IX Item "graphite-max-nb-scop-params"
9956 To avoid exponential effects in the Graphite loop transforms, the
9957 number of parameters in a Static Control Part (SCoP) is bounded.  The
9958 default value is 10 parameters.  A variable whose value is unknown at
9959 compilation time and defined outside a SCoP is a parameter of the SCoP.
9960 .IP "\fBgraphite-max-bbs-per-function\fR" 4
9961 .IX Item "graphite-max-bbs-per-function"
9962 To avoid exponential effects in the detection of SCoPs, the size of
9963 the functions analyzed by Graphite is bounded.  The default value is
9964 100 basic blocks.
9965 .IP "\fBloop-block-tile-size\fR" 4
9966 .IX Item "loop-block-tile-size"
9967 Loop blocking or strip mining transforms, enabled with
9968 \&\fB\-floop\-block\fR or \fB\-floop\-strip\-mine\fR, strip mine each
9969 loop in the loop nest by a given number of iterations.  The strip
9970 length can be changed using the \fBloop-block-tile-size\fR
9971 parameter.  The default value is 51 iterations.
9972 .IP "\fBloop-unroll-jam-size\fR" 4
9973 .IX Item "loop-unroll-jam-size"
9974 Specify the unroll factor for the \fB\-floop\-unroll\-and\-jam\fR option.  The 
9975 default value is 4.
9976 .IP "\fBloop-unroll-jam-depth\fR" 4
9977 .IX Item "loop-unroll-jam-depth"
9978 Specify the dimension to be unrolled (counting from the most inner loop)
9979 for the  \fB\-floop\-unroll\-and\-jam\fR.  The default value is 2.
9980 .IP "\fBipa-cp-value-list-size\fR" 4
9981 .IX Item "ipa-cp-value-list-size"
9982 IPA-CP attempts to track all possible values and types passed to a function's
9983 parameter in order to propagate them and perform devirtualization.
9984 \&\fBipa-cp-value-list-size\fR is the maximum number of values and types it
9985 stores per one formal parameter of a function.
9986 .IP "\fBipa-cp-eval-threshold\fR" 4
9987 .IX Item "ipa-cp-eval-threshold"
9988 IPA-CP calculates its own score of cloning profitability heuristics
9989 and performs those cloning opportunities with scores that exceed
9990 \&\fBipa-cp-eval-threshold\fR.
9991 .IP "\fBipa-cp-recursion-penalty\fR" 4
9992 .IX Item "ipa-cp-recursion-penalty"
9993 Percentage penalty the recursive functions will receive when they
9994 are evaluated for cloning.
9995 .IP "\fBipa-cp-single-call-penalty\fR" 4
9996 .IX Item "ipa-cp-single-call-penalty"
9997 Percentage penalty functions containg a single call to another
9998 function will receive when they are evaluated for cloning.
9999 .IP "\fBipa-max-agg-items\fR" 4
10000 .IX Item "ipa-max-agg-items"
10001 IPA-CP is also capable to propagate a number of scalar values passed
10002 in an aggregate. \fBipa-max-agg-items\fR controls the maximum
10003 number of such values per one parameter.
10004 .IP "\fBipa-cp-loop-hint-bonus\fR" 4
10005 .IX Item "ipa-cp-loop-hint-bonus"
10006 When IPA-CP determines that a cloning candidate would make the number
10007 of iterations of a loop known, it adds a bonus of
10008 \&\fBipa-cp-loop-hint-bonus\fR to the profitability score of
10009 the candidate.
10010 .IP "\fBipa-cp-array-index-hint-bonus\fR" 4
10011 .IX Item "ipa-cp-array-index-hint-bonus"
10012 When IPA-CP determines that a cloning candidate would make the index of
10013 an array access known, it adds a bonus of
10014 \&\fBipa-cp-array-index-hint-bonus\fR to the profitability
10015 score of the candidate.
10016 .IP "\fBipa-max-aa-steps\fR" 4
10017 .IX Item "ipa-max-aa-steps"
10018 During its analysis of function bodies, IPA-CP employs alias analysis
10019 in order to track values pointed to by function parameters.  In order
10020 not spend too much time analyzing huge functions, it gives up and
10021 consider all memory clobbered after examining
10022 \&\fBipa-max-aa-steps\fR statements modifying memory.
10023 .IP "\fBlto-partitions\fR" 4
10024 .IX Item "lto-partitions"
10025 Specify desired number of partitions produced during \s-1WHOPR\s0 compilation.
10026 The number of partitions should exceed the number of CPUs used for compilation.
10027 The default value is 32.
10028 .IP "\fBlto-minpartition\fR" 4
10029 .IX Item "lto-minpartition"
10030 Size of minimal partition for \s-1WHOPR\s0 (in estimated instructions).
10031 This prevents expenses of splitting very small programs into too many
10032 partitions.
10033 .IP "\fBcxx-max-namespaces-for-diagnostic-help\fR" 4
10034 .IX Item "cxx-max-namespaces-for-diagnostic-help"
10035 The maximum number of namespaces to consult for suggestions when \*(C+
10036 name lookup fails for an identifier.  The default is 1000.
10037 .IP "\fBsink-frequency-threshold\fR" 4
10038 .IX Item "sink-frequency-threshold"
10039 The maximum relative execution frequency (in percents) of the target block
10040 relative to a statement's original block to allow statement sinking of a
10041 statement.  Larger numbers result in more aggressive statement sinking.
10042 The default value is 75.  A small positive adjustment is applied for
10043 statements with memory operands as those are even more profitable so sink.
10044 .IP "\fBmax-stores-to-sink\fR" 4
10045 .IX Item "max-stores-to-sink"
10046 The maximum number of conditional stores paires that can be sunk.  Set to 0
10047 if either vectorization (\fB\-ftree\-vectorize\fR) or if-conversion
10048 (\fB\-ftree\-loop\-if\-convert\fR) is disabled.  The default is 2.
10049 .IP "\fBallow-store-data-races\fR" 4
10050 .IX Item "allow-store-data-races"
10051 Allow optimizers to introduce new data races on stores.
10052 Set to 1 to allow, otherwise to 0.  This option is enabled by default
10053 at optimization level \fB\-Ofast\fR.
10054 .IP "\fBcase-values-threshold\fR" 4
10055 .IX Item "case-values-threshold"
10056 The smallest number of different values for which it is best to use a
10057 jump-table instead of a tree of conditional branches.  If the value is
10058 0, use the default for the machine.  The default is 0.
10059 .IP "\fBtree-reassoc-width\fR" 4
10060 .IX Item "tree-reassoc-width"
10061 Set the maximum number of instructions executed in parallel in
10062 reassociated tree. This parameter overrides target dependent
10063 heuristics used by default if has non zero value.
10064 .IP "\fBsched-pressure-algorithm\fR" 4
10065 .IX Item "sched-pressure-algorithm"
10066 Choose between the two available implementations of
10067 \&\fB\-fsched\-pressure\fR.  Algorithm 1 is the original implementation
10068 and is the more likely to prevent instructions from being reordered.
10069 Algorithm 2 was designed to be a compromise between the relatively
10070 conservative approach taken by algorithm 1 and the rather aggressive
10071 approach taken by the default scheduler.  It relies more heavily on
10072 having a regular register file and accurate register pressure classes.
10073 See \fIhaifa\-sched.c\fR in the \s-1GCC\s0 sources for more details.
10074 .Sp
10075 The default choice depends on the target.
10076 .IP "\fBmax-slsr-cand-scan\fR" 4
10077 .IX Item "max-slsr-cand-scan"
10078 Set the maximum number of existing candidates that are considered when
10079 seeking a basis for a new straight-line strength reduction candidate.
10080 .IP "\fBasan-globals\fR" 4
10081 .IX Item "asan-globals"
10082 Enable buffer overflow detection for global objects.  This kind
10083 of protection is enabled by default if you are using
10084 \&\fB\-fsanitize=address\fR option.
10085 To disable global objects protection use \fB\-\-param asan\-globals=0\fR.
10086 .IP "\fBasan-stack\fR" 4
10087 .IX Item "asan-stack"
10088 Enable buffer overflow detection for stack objects.  This kind of
10089 protection is enabled by default when using\fB\-fsanitize=address\fR.
10090 To disable stack protection use \fB\-\-param asan\-stack=0\fR option.
10091 .IP "\fBasan-instrument-reads\fR" 4
10092 .IX Item "asan-instrument-reads"
10093 Enable buffer overflow detection for memory reads.  This kind of
10094 protection is enabled by default when using \fB\-fsanitize=address\fR.
10095 To disable memory reads protection use
10096 \&\fB\-\-param asan\-instrument\-reads=0\fR.
10097 .IP "\fBasan-instrument-writes\fR" 4
10098 .IX Item "asan-instrument-writes"
10099 Enable buffer overflow detection for memory writes.  This kind of
10100 protection is enabled by default when using \fB\-fsanitize=address\fR.
10101 To disable memory writes protection use
10102 \&\fB\-\-param asan\-instrument\-writes=0\fR option.
10103 .IP "\fBasan-memintrin\fR" 4
10104 .IX Item "asan-memintrin"
10105 Enable detection for built-in functions.  This kind of protection
10106 is enabled by default when using \fB\-fsanitize=address\fR.
10107 To disable built-in functions protection use
10108 \&\fB\-\-param asan\-memintrin=0\fR.
10109 .IP "\fBasan-use-after-return\fR" 4
10110 .IX Item "asan-use-after-return"
10111 Enable detection of use-after-return.  This kind of protection
10112 is enabled by default when using \fB\-fsanitize=address\fR option.
10113 To disable use-after-return detection use 
10114 \&\fB\-\-param asan\-use\-after\-return=0\fR.
10115 .IP "\fBasan-instrumentation-with-call-threshold\fR" 4
10116 .IX Item "asan-instrumentation-with-call-threshold"
10117 If number of memory accesses in function being instrumented
10118 is greater or equal to this number, use callbacks instead of inline checks.
10119 E.g. to disable inline code use
10120 \&\fB\-\-param asan\-instrumentation\-with\-call\-threshold=0\fR.
10121 .IP "\fBchkp-max-ctor-size\fR" 4
10122 .IX Item "chkp-max-ctor-size"
10123 Static constructors generated by Pointer Bounds Checker may become very
10124 large and significantly increase compile time at optimization level
10125 \&\fB\-O1\fR and higher.  This parameter is a maximum nubmer of statements
10126 in a single generated constructor.  Default value is 5000.
10127 .IP "\fBmax-fsm-thread-path-insns\fR" 4
10128 .IX Item "max-fsm-thread-path-insns"
10129 Maximum number of instructions to copy when duplicating blocks on a
10130 finite state automaton jump thread path.  The default is 100.
10131 .IP "\fBmax-fsm-thread-length\fR" 4
10132 .IX Item "max-fsm-thread-length"
10133 Maximum number of basic blocks on a finite state automaton jump thread
10134 path.  The default is 10.
10135 .IP "\fBmax-fsm-thread-paths\fR" 4
10136 .IX Item "max-fsm-thread-paths"
10137 Maximum number of new jump thread paths to create for a finite state
10138 automaton.  The default is 50.
10139 .RE
10140 .RS 4
10141 .RE
10142 .Sh "Options Controlling the Preprocessor"
10143 .IX Subsection "Options Controlling the Preprocessor"
10144 These options control the C preprocessor, which is run on each C source
10145 file before actual compilation.
10146 .PP
10147 If you use the \fB\-E\fR option, nothing is done except preprocessing.
10148 Some of these options make sense only together with \fB\-E\fR because
10149 they cause the preprocessor output to be unsuitable for actual
10150 compilation.
10151 .IP "\fB\-Wp,\fR\fIoption\fR" 4
10152 .IX Item "-Wp,option"
10153 You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
10154 and pass \fIoption\fR directly through to the preprocessor.  If
10155 \&\fIoption\fR contains commas, it is split into multiple options at the
10156 commas.  However, many options are modified, translated or interpreted
10157 by the compiler driver before being passed to the preprocessor, and
10158 \&\fB\-Wp\fR forcibly bypasses this phase.  The preprocessor's direct
10159 interface is undocumented and subject to change, so whenever possible
10160 you should avoid using \fB\-Wp\fR and let the driver handle the
10161 options instead.
10162 .IP "\fB\-Xpreprocessor\fR \fIoption\fR" 4
10163 .IX Item "-Xpreprocessor option"
10164 Pass \fIoption\fR as an option to the preprocessor.  You can use this to
10165 supply system-specific preprocessor options that \s-1GCC\s0 does not 
10166 recognize.
10167 .Sp
10168 If you want to pass an option that takes an argument, you must use
10169 \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
10170 .IP "\fB\-no\-integrated\-cpp\fR" 4
10171 .IX Item "-no-integrated-cpp"
10172 Perform preprocessing as a separate pass before compilation.
10173 By default, \s-1GCC\s0 performs preprocessing as an integrated part of
10174 input tokenization and parsing.
10175 If this option is provided, the appropriate language front end
10176 (\fBcc1\fR, \fBcc1plus\fR, or \fBcc1obj\fR for C, \*(C+,
10177 and Objective-C, respectively) is instead invoked twice,
10178 once for preprocessing only and once for actual compilation
10179 of the preprocessed input.
10180 This option may be useful in conjunction with the \fB\-B\fR or
10181 \&\fB\-wrapper\fR options to specify an alternate preprocessor or
10182 perform additional processing of the program source between
10183 normal preprocessing and compilation.
10184 .IP "\fB\-D\fR \fIname\fR" 4
10185 .IX Item "-D name"
10186 Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
10187 .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
10188 .IX Item "-D name=definition"
10189 The contents of \fIdefinition\fR are tokenized and processed as if
10190 they appeared during translation phase three in a \fB#define\fR
10191 directive.  In particular, the definition will be truncated by
10192 embedded newline characters.
10193 .Sp
10194 If you are invoking the preprocessor from a shell or shell-like
10195 program you may need to use the shell's quoting syntax to protect
10196 characters such as spaces that have a meaning in the shell syntax.
10197 .Sp
10198 If you wish to define a function-like macro on the command line, write
10199 its argument list with surrounding parentheses before the equals sign
10200 (if any).  Parentheses are meaningful to most shells, so you will need
10201 to quote the option.  With \fBsh\fR and \fBcsh\fR,
10202 \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
10203 .Sp
10204 \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
10205 are given on the command line.  All \fB\-imacros\fR \fIfile\fR and
10206 \&\fB\-include\fR \fIfile\fR options are processed after all
10207 \&\fB\-D\fR and \fB\-U\fR options.
10208 .IP "\fB\-U\fR \fIname\fR" 4
10209 .IX Item "-U name"
10210 Cancel any previous definition of \fIname\fR, either built in or
10211 provided with a \fB\-D\fR option.
10212 .IP "\fB\-undef\fR" 4
10213 .IX Item "-undef"
10214 Do not predefine any system-specific or GCC-specific macros.  The
10215 standard predefined macros remain defined.
10216 .IP "\fB\-I\fR \fIdir\fR" 4
10217 .IX Item "-I dir"
10218 Add the directory \fIdir\fR to the list of directories to be searched
10219 for header files.
10220 Directories named by \fB\-I\fR are searched before the standard
10221 system include directories.  If the directory \fIdir\fR is a standard
10222 system include directory, the option is ignored to ensure that the
10223 default search order for system directories and the special treatment
10224 of system headers are not defeated
10225 \&.
10226 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
10227 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
10228 .IP "\fB\-o\fR \fIfile\fR" 4
10229 .IX Item "-o file"
10230 Write output to \fIfile\fR.  This is the same as specifying \fIfile\fR
10231 as the second non-option argument to \fBcpp\fR.  \fBgcc\fR has a
10232 different interpretation of a second non-option argument, so you must
10233 use \fB\-o\fR to specify the output file.
10234 .IP "\fB\-Wall\fR" 4
10235 .IX Item "-Wall"
10236 Turns on all optional warnings which are desirable for normal code.
10237 At present this is \fB\-Wcomment\fR, \fB\-Wtrigraphs\fR,
10238 \&\fB\-Wmultichar\fR and a warning about integer promotion causing a
10239 change of sign in \f(CW\*(C`#if\*(C'\fR expressions.  Note that many of the
10240 preprocessor's warnings are on by default and have no options to
10241 control them.
10242 .IP "\fB\-Wcomment\fR" 4
10243 .IX Item "-Wcomment"
10244 .PD 0
10245 .IP "\fB\-Wcomments\fR" 4
10246 .IX Item "-Wcomments"
10247 .PD
10248 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
10249 comment, or whenever a backslash-newline appears in a \fB//\fR comment.
10250 (Both forms have the same effect.)
10251 .IP "\fB\-Wtrigraphs\fR" 4
10252 .IX Item "-Wtrigraphs"
10253 Most trigraphs in comments cannot affect the meaning of the program.
10254 However, a trigraph that would form an escaped newline (\fB??/\fR at
10255 the end of a line) can, by changing where the comment begins or ends.
10256 Therefore, only trigraphs that would form escaped newlines produce
10257 warnings inside a comment.
10258 .Sp
10259 This option is implied by \fB\-Wall\fR.  If \fB\-Wall\fR is not
10260 given, this option is still enabled unless trigraphs are enabled.  To
10261 get trigraph conversion without warnings, but get the other
10262 \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
10263 .IP "\fB\-Wtraditional\fR" 4
10264 .IX Item "-Wtraditional"
10265 Warn about certain constructs that behave differently in traditional and
10266 \&\s-1ISO\s0 C.  Also warn about \s-1ISO\s0 C constructs that have no traditional C
10267 equivalent, and problematic constructs which should be avoided.
10268 .IP "\fB\-Wundef\fR" 4
10269 .IX Item "-Wundef"
10270 Warn whenever an identifier which is not a macro is encountered in an
10271 \&\fB#if\fR directive, outside of \fBdefined\fR.  Such identifiers are
10272 replaced with zero.
10273 .IP "\fB\-Wunused\-macros\fR" 4
10274 .IX Item "-Wunused-macros"
10275 Warn about macros defined in the main file that are unused.  A macro
10276 is \fIused\fR if it is expanded or tested for existence at least once.
10277 The preprocessor will also warn if the macro has not been used at the
10278 time it is redefined or undefined.
10279 .Sp
10280 Built-in macros, macros defined on the command line, and macros
10281 defined in include files are not warned about.
10282 .Sp
10283 \&\fINote:\fR If a macro is actually used, but only used in skipped
10284 conditional blocks, then \s-1CPP\s0 will report it as unused.  To avoid the
10285 warning in such a case, you might improve the scope of the macro's
10286 definition by, for example, moving it into the first skipped block.
10287 Alternatively, you could provide a dummy use with something like:
10288 .Sp
10289 .Vb 2
10290 \&        #if defined the_macro_causing_the_warning
10291 \&        #endif
10292 .Ve
10293 .IP "\fB\-Wendif\-labels\fR" 4
10294 .IX Item "-Wendif-labels"
10295 Warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
10296 This usually happens in code of the form
10297 .Sp
10298 .Vb 5
10299 \&        #if FOO
10300 \&        ...
10301 \&        #else FOO
10302 \&        ...
10303 \&        #endif FOO
10304 .Ve
10305 .Sp
10306 The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments, but often are not
10307 in older programs.  This warning is on by default.
10308 .IP "\fB\-Werror\fR" 4
10309 .IX Item "-Werror"
10310 Make all warnings into hard errors.  Source code which triggers warnings
10311 will be rejected.
10312 .IP "\fB\-Wsystem\-headers\fR" 4
10313 .IX Item "-Wsystem-headers"
10314 Issue warnings for code in system headers.  These are normally unhelpful
10315 in finding bugs in your own code, therefore suppressed.  If you are
10316 responsible for the system library, you may want to see them.
10317 .IP "\fB\-w\fR" 4
10318 .IX Item "-w"
10319 Suppress all warnings, including those which \s-1GNU\s0 \s-1CPP\s0 issues by default.
10320 .IP "\fB\-pedantic\fR" 4
10321 .IX Item "-pedantic"
10322 Issue all the mandatory diagnostics listed in the C standard.  Some of
10323 them are left out by default, since they trigger frequently on harmless
10324 code.
10325 .IP "\fB\-pedantic\-errors\fR" 4
10326 .IX Item "-pedantic-errors"
10327 Issue all the mandatory diagnostics, and make all mandatory diagnostics
10328 into errors.  This includes mandatory diagnostics that \s-1GCC\s0 issues
10329 without \fB\-pedantic\fR but treats as warnings.
10330 .IP "\fB\-M\fR" 4
10331 .IX Item "-M"
10332 Instead of outputting the result of preprocessing, output a rule
10333 suitable for \fBmake\fR describing the dependencies of the main
10334 source file.  The preprocessor outputs one \fBmake\fR rule containing
10335 the object file name for that source file, a colon, and the names of all
10336 the included files, including those coming from \fB\-include\fR or
10337 \&\fB\-imacros\fR command-line options.
10338 .Sp
10339 Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
10340 object file name consists of the name of the source file with any
10341 suffix replaced with object file suffix and with any leading directory
10342 parts removed.  If there are many included files then the rule is
10343 split into several lines using \fB\e\fR\-newline.  The rule has no
10344 commands.
10345 .Sp
10346 This option does not suppress the preprocessor's debug output, such as
10347 \&\fB\-dM\fR.  To avoid mixing such debug output with the dependency
10348 rules you should explicitly specify the dependency output file with
10349 \&\fB\-MF\fR, or use an environment variable like
10350 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR.  Debug output
10351 will still be sent to the regular output stream as normal.
10352 .Sp
10353 Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
10354 warnings with an implicit \fB\-w\fR.
10355 .IP "\fB\-MM\fR" 4
10356 .IX Item "-MM"
10357 Like \fB\-M\fR but do not mention header files that are found in
10358 system header directories, nor header files that are included,
10359 directly or indirectly, from such a header.
10360 .Sp
10361 This implies that the choice of angle brackets or double quotes in an
10362 \&\fB#include\fR directive does not in itself determine whether that
10363 header will appear in \fB\-MM\fR dependency output.  This is a
10364 slight change in semantics from \s-1GCC\s0 versions 3.0 and earlier.
10365 .IP "\fB\-MF\fR \fIfile\fR" 4
10366 .IX Item "-MF file"
10367 When used with \fB\-M\fR or \fB\-MM\fR, specifies a
10368 file to write the dependencies to.  If no \fB\-MF\fR switch is given
10369 the preprocessor sends the rules to the same place it would have sent
10370 preprocessed output.
10371 .Sp
10372 When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
10373 \&\fB\-MF\fR overrides the default dependency output file.
10374 .IP "\fB\-MG\fR" 4
10375 .IX Item "-MG"
10376 In conjunction with an option such as \fB\-M\fR requesting
10377 dependency generation, \fB\-MG\fR assumes missing header files are
10378 generated files and adds them to the dependency list without raising
10379 an error.  The dependency filename is taken directly from the
10380 \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path.  \fB\-MG\fR
10381 also suppresses preprocessed output, as a missing header file renders
10382 this useless.
10383 .Sp
10384 This feature is used in automatic updating of makefiles.
10385 .IP "\fB\-MP\fR" 4
10386 .IX Item "-MP"
10387 This option instructs \s-1CPP\s0 to add a phony target for each dependency
10388 other than the main file, causing each to depend on nothing.  These
10389 dummy rules work around errors \fBmake\fR gives if you remove header
10390 files without updating the \fIMakefile\fR to match.
10391 .Sp
10392 This is typical output:
10393 .Sp
10394 .Vb 1
10395 \&        test.o: test.c test.h
10396 \&        
10397 \&        test.h:
10398 .Ve
10399 .IP "\fB\-MT\fR \fItarget\fR" 4
10400 .IX Item "-MT target"
10401 Change the target of the rule emitted by dependency generation.  By
10402 default \s-1CPP\s0 takes the name of the main input file, deletes any
10403 directory components and any file suffix such as \fB.c\fR, and
10404 appends the platform's usual object suffix.  The result is the target.
10405 .Sp
10406 An \fB\-MT\fR option will set the target to be exactly the string you
10407 specify.  If you want multiple targets, you can specify them as a single
10408 argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
10409 .Sp
10410 For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
10411 .Sp
10412 .Vb 1
10413 \&        $(objpfx)foo.o: foo.c
10414 .Ve
10415 .IP "\fB\-MQ\fR \fItarget\fR" 4
10416 .IX Item "-MQ target"
10417 Same as \fB\-MT\fR, but it quotes any characters which are special to
10418 Make.  \fB\-MQ\ '$(objpfx)foo.o'\fR gives
10419 .Sp
10420 .Vb 1
10421 \&        $$(objpfx)foo.o: foo.c
10422 .Ve
10423 .Sp
10424 The default target is automatically quoted, as if it were given with
10425 \&\fB\-MQ\fR.
10426 .IP "\fB\-MD\fR" 4
10427 .IX Item "-MD"
10428 \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
10429 \&\fB\-E\fR is not implied.  The driver determines \fIfile\fR based on
10430 whether an \fB\-o\fR option is given.  If it is, the driver uses its
10431 argument but with a suffix of \fI.d\fR, otherwise it takes the name
10432 of the input file, removes any directory components and suffix, and
10433 applies a \fI.d\fR suffix.
10434 .Sp
10435 If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
10436 \&\fB\-o\fR switch is understood to specify the dependency output file, but if used without \fB\-E\fR, each \fB\-o\fR
10437 is understood to specify a target object file.
10438 .Sp
10439 Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
10440 a dependency output file as a side-effect of the compilation process.
10441 .IP "\fB\-MMD\fR" 4
10442 .IX Item "-MMD"
10443 Like \fB\-MD\fR except mention only user header files, not system
10444 header files.
10445 .IP "\fB\-fpch\-deps\fR" 4
10446 .IX Item "-fpch-deps"
10447 When using precompiled headers, this flag
10448 will cause the dependency-output flags to also list the files from the
10449 precompiled header's dependencies.  If not specified only the
10450 precompiled header would be listed and not the files that were used to
10451 create it because those files are not consulted when a precompiled
10452 header is used.
10453 .IP "\fB\-fpch\-preprocess\fR" 4
10454 .IX Item "-fpch-preprocess"
10455 This option allows use of a precompiled header together with \fB\-E\fR.  It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
10456 \&\f(CW\*(C`#pragma GCC pch_preprocess "\f(CIfilename\f(CW"\*(C'\fR in the output to mark
10457 the place where the precompiled header was found, and its \fIfilename\fR.
10458 When \fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR
10459 and loads the \s-1PCH\s0.
10460 .Sp
10461 This option is off by default, because the resulting preprocessed output
10462 is only really suitable as input to \s-1GCC\s0.  It is switched on by
10463 \&\fB\-save\-temps\fR.
10464 .Sp
10465 You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
10466 safe to edit the filename if the \s-1PCH\s0 file is available in a different
10467 location.  The filename may be absolute or it may be relative to \s-1GCC\s0's
10468 current directory.
10469 .IP "\fB\-x c\fR" 4
10470 .IX Item "-x c"
10471 .PD 0
10472 .IP "\fB\-x c++\fR" 4
10473 .IX Item "-x c++"
10474 .IP "\fB\-x objective-c\fR" 4
10475 .IX Item "-x objective-c"
10476 .IP "\fB\-x assembler-with-cpp\fR" 4
10477 .IX Item "-x assembler-with-cpp"
10478 .PD
10479 Specify the source language: C, \*(C+, Objective-C, or assembly.  This has
10480 nothing to do with standards conformance or extensions; it merely
10481 selects which base syntax to expect.  If you give none of these options,
10482 cpp will deduce the language from the extension of the source file:
10483 \&\fB.c\fR, \fB.cc\fR, \fB.m\fR, or \fB.S\fR.  Some other common
10484 extensions for \*(C+ and assembly are also recognized.  If cpp does not
10485 recognize the extension, it will treat the file as C; this is the most
10486 generic mode.
10487 .Sp
10488 \&\fINote:\fR Previous versions of cpp accepted a \fB\-lang\fR option
10489 which selected both the language and the standards conformance level.
10490 This option has been removed, because it conflicts with the \fB\-l\fR
10491 option.
10492 .IP "\fB\-std=\fR\fIstandard\fR" 4
10493 .IX Item "-std=standard"
10494 .PD 0
10495 .IP "\fB\-ansi\fR" 4
10496 .IX Item "-ansi"
10497 .PD
10498 Specify the standard to which the code should conform.  Currently \s-1CPP\s0
10499 knows about C and \*(C+ standards; others may be added in the future.
10500 .Sp
10501 \&\fIstandard\fR
10502 may be one of:
10503 .RS 4
10504 .ie n .IP """c90""" 4
10505 .el .IP "\f(CWc90\fR" 4
10506 .IX Item "c90"
10507 .PD 0
10508 .ie n .IP """c89""" 4
10509 .el .IP "\f(CWc89\fR" 4
10510 .IX Item "c89"
10511 .ie n .IP """iso9899:1990""" 4
10512 .el .IP "\f(CWiso9899:1990\fR" 4
10513 .IX Item "iso9899:1990"
10514 .PD
10515 The \s-1ISO\s0 C standard from 1990.  \fBc90\fR is the customary shorthand for
10516 this version of the standard.
10517 .Sp
10518 The \fB\-ansi\fR option is equivalent to \fB\-std=c90\fR.
10519 .ie n .IP """iso9899:199409""" 4
10520 .el .IP "\f(CWiso9899:199409\fR" 4
10521 .IX Item "iso9899:199409"
10522 The 1990 C standard, as amended in 1994.
10523 .ie n .IP """iso9899:1999""" 4
10524 .el .IP "\f(CWiso9899:1999\fR" 4
10525 .IX Item "iso9899:1999"
10526 .PD 0
10527 .ie n .IP """c99""" 4
10528 .el .IP "\f(CWc99\fR" 4
10529 .IX Item "c99"
10530 .ie n .IP """iso9899:199x""" 4
10531 .el .IP "\f(CWiso9899:199x\fR" 4
10532 .IX Item "iso9899:199x"
10533 .ie n .IP """c9x""" 4
10534 .el .IP "\f(CWc9x\fR" 4
10535 .IX Item "c9x"
10536 .PD
10537 The revised \s-1ISO\s0 C standard, published in December 1999.  Before
10538 publication, this was known as C9X.
10539 .ie n .IP """iso9899:2011""" 4
10540 .el .IP "\f(CWiso9899:2011\fR" 4
10541 .IX Item "iso9899:2011"
10542 .PD 0
10543 .ie n .IP """c11""" 4
10544 .el .IP "\f(CWc11\fR" 4
10545 .IX Item "c11"
10546 .ie n .IP """c1x""" 4
10547 .el .IP "\f(CWc1x\fR" 4
10548 .IX Item "c1x"
10549 .PD
10550 The revised \s-1ISO\s0 C standard, published in December 2011.  Before
10551 publication, this was known as C1X.
10552 .ie n .IP """gnu90""" 4
10553 .el .IP "\f(CWgnu90\fR" 4
10554 .IX Item "gnu90"
10555 .PD 0
10556 .ie n .IP """gnu89""" 4
10557 .el .IP "\f(CWgnu89\fR" 4
10558 .IX Item "gnu89"
10559 .PD
10560 The 1990 C standard plus \s-1GNU\s0 extensions.  This is the default.
10561 .ie n .IP """gnu99""" 4
10562 .el .IP "\f(CWgnu99\fR" 4
10563 .IX Item "gnu99"
10564 .PD 0
10565 .ie n .IP """gnu9x""" 4
10566 .el .IP "\f(CWgnu9x\fR" 4
10567 .IX Item "gnu9x"
10568 .PD
10569 The 1999 C standard plus \s-1GNU\s0 extensions.
10570 .ie n .IP """gnu11""" 4
10571 .el .IP "\f(CWgnu11\fR" 4
10572 .IX Item "gnu11"
10573 .PD 0
10574 .ie n .IP """gnu1x""" 4
10575 .el .IP "\f(CWgnu1x\fR" 4
10576 .IX Item "gnu1x"
10577 .PD
10578 The 2011 C standard plus \s-1GNU\s0 extensions.
10579 .ie n .IP """c++98""" 4
10580 .el .IP "\f(CWc++98\fR" 4
10581 .IX Item "c++98"
10582 The 1998 \s-1ISO\s0 \*(C+ standard plus amendments.
10583 .ie n .IP """gnu++98""" 4
10584 .el .IP "\f(CWgnu++98\fR" 4
10585 .IX Item "gnu++98"
10586 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
10587 default for \*(C+ code.
10588 .RE
10589 .RS 4
10590 .RE
10591 .IP "\fB\-I\-\fR" 4
10592 .IX Item "-I-"
10593 Split the include path.  Any directories specified with \fB\-I\fR
10594 options before \fB\-I\-\fR are searched only for headers requested with
10595 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
10596 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR.  If additional directories are
10597 specified with \fB\-I\fR options after the \fB\-I\-\fR, those
10598 directories are searched for all \fB#include\fR directives.
10599 .Sp
10600 In addition, \fB\-I\-\fR inhibits the use of the directory of the current
10601 file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
10602 This option has been deprecated.
10603 .IP "\fB\-nostdinc\fR" 4
10604 .IX Item "-nostdinc"
10605 Do not search the standard system directories for header files.
10606 Only the directories you have specified with \fB\-I\fR options
10607 (and the directory of the current file, if appropriate) are searched.
10608 .IP "\fB\-nostdinc++\fR" 4
10609 .IX Item "-nostdinc++"
10610 Do not search for header files in the \*(C+\-specific standard directories,
10611 but do still search the other standard directories.  (This option is
10612 used when building the \*(C+ library.)
10613 .IP "\fB\-include\fR \fIfile\fR" 4
10614 .IX Item "-include file"
10615 Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
10616 line of the primary source file.  However, the first directory searched
10617 for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
10618 the directory containing the main source file.  If not found there, it
10619 is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
10620 chain as normal.
10621 .Sp
10622 If multiple \fB\-include\fR options are given, the files are included
10623 in the order they appear on the command line.
10624 .IP "\fB\-imacros\fR \fIfile\fR" 4
10625 .IX Item "-imacros file"
10626 Exactly like \fB\-include\fR, except that any output produced by
10627 scanning \fIfile\fR is thrown away.  Macros it defines remain defined.
10628 This allows you to acquire all the macros from a header without also
10629 processing its declarations.
10630 .Sp
10631 All files specified by \fB\-imacros\fR are processed before all files
10632 specified by \fB\-include\fR.
10633 .IP "\fB\-idirafter\fR \fIdir\fR" 4
10634 .IX Item "-idirafter dir"
10635 Search \fIdir\fR for header files, but do it \fIafter\fR all
10636 directories specified with \fB\-I\fR and the standard system directories
10637 have been exhausted.  \fIdir\fR is treated as a system include directory.
10638 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
10639 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
10640 .IP "\fB\-iprefix\fR \fIprefix\fR" 4
10641 .IX Item "-iprefix prefix"
10642 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
10643 options.  If the prefix represents a directory, you should include the
10644 final \fB/\fR.
10645 .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
10646 .IX Item "-iwithprefix dir"
10647 .PD 0
10648 .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
10649 .IX Item "-iwithprefixbefore dir"
10650 .PD
10651 Append \fIdir\fR to the prefix specified previously with
10652 \&\fB\-iprefix\fR, and add the resulting directory to the include search
10653 path.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
10654 would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
10655 .IP "\fB\-isysroot\fR \fIdir\fR" 4
10656 .IX Item "-isysroot dir"
10657 This option is like the \fB\-\-sysroot\fR option, but applies only to
10658 header files (except for Darwin targets, where it applies to both header
10659 files and libraries).  See the \fB\-\-sysroot\fR option for more
10660 information.
10661 .IP "\fB\-imultilib\fR \fIdir\fR" 4
10662 .IX Item "-imultilib dir"
10663 Use \fIdir\fR as a subdirectory of the directory containing
10664 target-specific \*(C+ headers.
10665 .IP "\fB\-isystem\fR \fIdir\fR" 4
10666 .IX Item "-isystem dir"
10667 Search \fIdir\fR for header files, after all directories specified by
10668 \&\fB\-I\fR but before the standard system directories.  Mark it
10669 as a system directory, so that it gets the same special treatment as
10670 is applied to the standard system directories.
10671 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
10672 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
10673 .IP "\fB\-iquote\fR \fIdir\fR" 4
10674 .IX Item "-iquote dir"
10675 Search \fIdir\fR only for header files requested with
10676 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
10677 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR, before all directories specified by
10678 \&\fB\-I\fR and before the standard system directories.
10679 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
10680 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
10681 .IP "\fB\-fdirectives\-only\fR" 4
10682 .IX Item "-fdirectives-only"
10683 When preprocessing, handle directives, but do not expand macros.
10684 .Sp
10685 The option's behavior depends on the \fB\-E\fR and \fB\-fpreprocessed\fR
10686 options.
10687 .Sp
10688 With \fB\-E\fR, preprocessing is limited to the handling of directives
10689 such as \f(CW\*(C`#define\*(C'\fR, \f(CW\*(C`#ifdef\*(C'\fR, and \f(CW\*(C`#error\*(C'\fR.  Other
10690 preprocessor operations, such as macro expansion and trigraph
10691 conversion are not performed.  In addition, the \fB\-dD\fR option is
10692 implicitly enabled.
10693 .Sp
10694 With \fB\-fpreprocessed\fR, predefinition of command line and most
10695 builtin macros is disabled.  Macros such as \f(CW\*(C`_\|_LINE_\|_\*(C'\fR, which are
10696 contextually dependent, are handled normally.  This enables compilation of
10697 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
10698 .Sp
10699 With both \fB\-E\fR and \fB\-fpreprocessed\fR, the rules for
10700 \&\fB\-fpreprocessed\fR take precedence.  This enables full preprocessing of
10701 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
10702 .IP "\fB\-fdollars\-in\-identifiers\fR" 4
10703 .IX Item "-fdollars-in-identifiers"
10704 Accept \fB$\fR in identifiers.
10705 .IP "\fB\-fextended\-identifiers\fR" 4
10706 .IX Item "-fextended-identifiers"
10707 Accept universal character names in identifiers.  This option is
10708 enabled by default for C99 (and later C standard versions) and \*(C+.
10709 .IP "\fB\-fno\-canonical\-system\-headers\fR" 4
10710 .IX Item "-fno-canonical-system-headers"
10711 When preprocessing, do not shorten system header paths with canonicalization.
10712 .IP "\fB\-fpreprocessed\fR" 4
10713 .IX Item "-fpreprocessed"
10714 Indicate to the preprocessor that the input file has already been
10715 preprocessed.  This suppresses things like macro expansion, trigraph
10716 conversion, escaped newline splicing, and processing of most directives.
10717 The preprocessor still recognizes and removes comments, so that you can
10718 pass a file preprocessed with \fB\-C\fR to the compiler without
10719 problems.  In this mode the integrated preprocessor is little more than
10720 a tokenizer for the front ends.
10721 .Sp
10722 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
10723 extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are the
10724 extensions that \s-1GCC\s0 uses for preprocessed files created by
10725 \&\fB\-save\-temps\fR.
10726 .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
10727 .IX Item "-ftabstop=width"
10728 Set the distance between tab stops.  This helps the preprocessor report
10729 correct column numbers in warnings or errors, even if tabs appear on the
10730 line.  If the value is less than 1 or greater than 100, the option is
10731 ignored.  The default is 8.
10732 .IP "\fB\-fdebug\-cpp\fR" 4
10733 .IX Item "-fdebug-cpp"
10734 This option is only useful for debugging \s-1GCC\s0.  When used with
10735 \&\fB\-E\fR, dumps debugging information about location maps.  Every
10736 token in the output is preceded by the dump of the map its location
10737 belongs to.  The dump of the map holding the location of a token would
10738 be:
10739 .Sp
10740 .Vb 1
10741 \&        {"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>}
10742 .Ve
10743 .Sp
10744 When used without \fB\-E\fR, this option has no effect.
10745 .IP "\fB\-ftrack\-macro\-expansion\fR[\fB=\fR\fIlevel\fR]" 4
10746 .IX Item "-ftrack-macro-expansion[=level]"
10747 Track locations of tokens across macro expansions. This allows the
10748 compiler to emit diagnostic about the current macro expansion stack
10749 when a compilation error occurs in a macro expansion. Using this
10750 option makes the preprocessor and the compiler consume more
10751 memory. The \fIlevel\fR parameter can be used to choose the level of
10752 precision of token location tracking thus decreasing the memory
10753 consumption if necessary. Value \fB0\fR of \fIlevel\fR de-activates
10754 this option just as if no \fB\-ftrack\-macro\-expansion\fR was present
10755 on the command line. Value \fB1\fR tracks tokens locations in a
10756 degraded mode for the sake of minimal memory overhead. In this mode
10757 all tokens resulting from the expansion of an argument of a
10758 function-like macro have the same location. Value \fB2\fR tracks
10759 tokens locations completely. This value is the most memory hungry.
10760 When this option is given no argument, the default parameter value is
10761 \&\fB2\fR.
10762 .Sp
10763 Note that \f(CW\*(C`\-ftrack\-macro\-expansion=2\*(C'\fR is activated by default.
10764 .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
10765 .IX Item "-fexec-charset=charset"
10766 Set the execution character set, used for string and character
10767 constants.  The default is \s-1UTF\-8\s0.  \fIcharset\fR can be any encoding
10768 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
10769 .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
10770 .IX Item "-fwide-exec-charset=charset"
10771 Set the wide execution character set, used for wide string and
10772 character constants.  The default is \s-1UTF\-32\s0 or \s-1UTF\-16\s0, whichever
10773 corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR.  As with
10774 \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
10775 by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
10776 problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
10777 .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
10778 .IX Item "-finput-charset=charset"
10779 Set the input character set, used for translation from the character
10780 set of the input file to the source character set used by \s-1GCC\s0.  If the
10781 locale does not specify, or \s-1GCC\s0 cannot get this information from the
10782 locale, the default is \s-1UTF\-8\s0.  This can be overridden by either the locale
10783 or this command-line option.  Currently the command-line option takes
10784 precedence if there's a conflict.  \fIcharset\fR can be any encoding
10785 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
10786 .IP "\fB\-fworking\-directory\fR" 4
10787 .IX Item "-fworking-directory"
10788 Enable generation of linemarkers in the preprocessor output that will
10789 let the compiler know the current working directory at the time of
10790 preprocessing.  When this option is enabled, the preprocessor will
10791 emit, after the initial linemarker, a second linemarker with the
10792 current working directory followed by two slashes.  \s-1GCC\s0 will use this
10793 directory, when it's present in the preprocessed input, as the
10794 directory emitted as the current working directory in some debugging
10795 information formats.  This option is implicitly enabled if debugging
10796 information is enabled, but this can be inhibited with the negated
10797 form \fB\-fno\-working\-directory\fR.  If the \fB\-P\fR flag is
10798 present in the command line, this option has no effect, since no
10799 \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
10800 .IP "\fB\-fno\-show\-column\fR" 4
10801 .IX Item "-fno-show-column"
10802 Do not print column numbers in diagnostics.  This may be necessary if
10803 diagnostics are being scanned by a program that does not understand the
10804 column numbers, such as \fBdejagnu\fR.
10805 .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
10806 .IX Item "-A predicate=answer"
10807 Make an assertion with the predicate \fIpredicate\fR and answer
10808 \&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR
10809 \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
10810 it does not use shell special characters.
10811 .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
10812 .IX Item "-A -predicate=answer"
10813 Cancel an assertion with the predicate \fIpredicate\fR and answer
10814 \&\fIanswer\fR.
10815 .IP "\fB\-dCHARS\fR" 4
10816 .IX Item "-dCHARS"
10817 \&\fI\s-1CHARS\s0\fR is a sequence of one or more of the following characters,
10818 and must not be preceded by a space.  Other characters are interpreted
10819 by the compiler proper, or reserved for future versions of \s-1GCC\s0, and so
10820 are silently ignored.  If you specify characters whose behavior
10821 conflicts, the result is undefined.
10822 .RS 4
10823 .IP "\fBM\fR" 4
10824 .IX Item "M"
10825 Instead of the normal output, generate a list of \fB#define\fR
10826 directives for all the macros defined during the execution of the
10827 preprocessor, including predefined macros.  This gives you a way of
10828 finding out what is predefined in your version of the preprocessor.
10829 Assuming you have no file \fIfoo.h\fR, the command
10830 .Sp
10831 .Vb 1
10832 \&        touch foo.h; cpp \-dM foo.h
10833 .Ve
10834 .Sp
10835 will show all the predefined macros.
10836 .Sp
10837 If you use \fB\-dM\fR without the \fB\-E\fR option, \fB\-dM\fR is
10838 interpreted as a synonym for \fB\-fdump\-rtl\-mach\fR.
10839 .IP "\fBD\fR" 4
10840 .IX Item "D"
10841 Like \fBM\fR except in two respects: it does \fInot\fR include the
10842 predefined macros, and it outputs \fIboth\fR the \fB#define\fR
10843 directives and the result of preprocessing.  Both kinds of output go to
10844 the standard output file.
10845 .IP "\fBN\fR" 4
10846 .IX Item "N"
10847 Like \fBD\fR, but emit only the macro names, not their expansions.
10848 .IP "\fBI\fR" 4
10849 .IX Item "I"
10850 Output \fB#include\fR directives in addition to the result of
10851 preprocessing.
10852 .IP "\fBU\fR" 4
10853 .IX Item "U"
10854 Like \fBD\fR except that only macros that are expanded, or whose
10855 definedness is tested in preprocessor directives, are output; the
10856 output is delayed until the use or test of the macro; and
10857 \&\fB#undef\fR directives are also output for macros tested but
10858 undefined at the time.
10859 .RE
10860 .RS 4
10861 .RE
10862 .IP "\fB\-P\fR" 4
10863 .IX Item "-P"
10864 Inhibit generation of linemarkers in the output from the preprocessor.
10865 This might be useful when running the preprocessor on something that is
10866 not C code, and will be sent to a program which might be confused by the
10867 linemarkers.
10868 .IP "\fB\-C\fR" 4
10869 .IX Item "-C"
10870 Do not discard comments.  All comments are passed through to the output
10871 file, except for comments in processed directives, which are deleted
10872 along with the directive.
10873 .Sp
10874 You should be prepared for side effects when using \fB\-C\fR; it
10875 causes the preprocessor to treat comments as tokens in their own right.
10876 For example, comments appearing at the start of what would be a
10877 directive line have the effect of turning that line into an ordinary
10878 source line, since the first token on the line is no longer a \fB#\fR.
10879 .IP "\fB\-CC\fR" 4
10880 .IX Item "-CC"
10881 Do not discard comments, including during macro expansion.  This is
10882 like \fB\-C\fR, except that comments contained within macros are
10883 also passed through to the output file where the macro is expanded.
10884 .Sp
10885 In addition to the side-effects of the \fB\-C\fR option, the
10886 \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
10887 to be converted to C\-style comments.  This is to prevent later use
10888 of that macro from inadvertently commenting out the remainder of
10889 the source line.
10890 .Sp
10891 The \fB\-CC\fR option is generally used to support lint comments.
10892 .IP "\fB\-traditional\-cpp\fR" 4
10893 .IX Item "-traditional-cpp"
10894 Try to imitate the behavior of old-fashioned C preprocessors, as
10895 opposed to \s-1ISO\s0 C preprocessors.
10896 .IP "\fB\-trigraphs\fR" 4
10897 .IX Item "-trigraphs"
10898 Process trigraph sequences.
10899 These are three-character sequences, all starting with \fB??\fR, that
10900 are defined by \s-1ISO\s0 C to stand for single characters.  For example,
10901 \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
10902 constant for a newline.  By default, \s-1GCC\s0 ignores trigraphs, but in
10903 standard-conforming modes it converts them.  See the \fB\-std\fR and
10904 \&\fB\-ansi\fR options.
10905 .Sp
10906 The nine trigraphs and their replacements are
10907 .Sp
10908 .Vb 2
10909 \&        Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??\*(Aq  ??!  ??\-
10910 \&        Replacement:      [    ]    {    }    #    \e    ^    |    ~
10911 .Ve
10912 .IP "\fB\-remap\fR" 4
10913 .IX Item "-remap"
10914 Enable special code to work around file systems which only permit very
10915 short file names, such as MS-DOS.
10916 .IP "\fB\-\-help\fR" 4
10917 .IX Item "--help"
10918 .PD 0
10919 .IP "\fB\-\-target\-help\fR" 4
10920 .IX Item "--target-help"
10921 .PD
10922 Print text describing all the command-line options instead of
10923 preprocessing anything.
10924 .IP "\fB\-v\fR" 4
10925 .IX Item "-v"
10926 Verbose mode.  Print out \s-1GNU\s0 \s-1CPP\s0's version number at the beginning of
10927 execution, and report the final form of the include path.
10928 .IP "\fB\-H\fR" 4
10929 .IX Item "-H"
10930 Print the name of each header file used, in addition to other normal
10931 activities.  Each name is indented to show how deep in the
10932 \&\fB#include\fR stack it is.  Precompiled header files are also
10933 printed, even if they are found to be invalid; an invalid precompiled
10934 header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
10935 .IP "\fB\-version\fR" 4
10936 .IX Item "-version"
10937 .PD 0
10938 .IP "\fB\-\-version\fR" 4
10939 .IX Item "--version"
10940 .PD
10941 Print out \s-1GNU\s0 \s-1CPP\s0's version number.  With one dash, proceed to
10942 preprocess as normal.  With two dashes, exit immediately.
10943 .Sh "Passing Options to the Assembler"
10944 .IX Subsection "Passing Options to the Assembler"
10945 You can pass options to the assembler.
10946 .IP "\fB\-Wa,\fR\fIoption\fR" 4
10947 .IX Item "-Wa,option"
10948 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
10949 contains commas, it is split into multiple options at the commas.
10950 .IP "\fB\-Xassembler\fR \fIoption\fR" 4
10951 .IX Item "-Xassembler option"
10952 Pass \fIoption\fR as an option to the assembler.  You can use this to
10953 supply system-specific assembler options that \s-1GCC\s0 does not
10954 recognize.
10955 .Sp
10956 If you want to pass an option that takes an argument, you must use
10957 \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
10958 .Sh "Options for Linking"
10959 .IX Subsection "Options for Linking"
10960 These options come into play when the compiler links object files into
10961 an executable output file.  They are meaningless if the compiler is
10962 not doing a link step.
10963 .IP "\fIobject-file-name\fR" 4
10964 .IX Item "object-file-name"
10965 A file name that does not end in a special recognized suffix is
10966 considered to name an object file or library.  (Object files are
10967 distinguished from libraries by the linker according to the file
10968 contents.)  If linking is done, these object files are used as input
10969 to the linker.
10970 .IP "\fB\-c\fR" 4
10971 .IX Item "-c"
10972 .PD 0
10973 .IP "\fB\-S\fR" 4
10974 .IX Item "-S"
10975 .IP "\fB\-E\fR" 4
10976 .IX Item "-E"
10977 .PD
10978 If any of these options is used, then the linker is not run, and
10979 object file names should not be used as arguments.
10980 .IP "\fB\-fuse\-ld=bfd\fR" 4
10981 .IX Item "-fuse-ld=bfd"
10982 Use the \fBbfd\fR linker instead of the default linker.
10983 .IP "\fB\-fuse\-ld=gold\fR" 4
10984 .IX Item "-fuse-ld=gold"
10985 Use the \fBgold\fR linker instead of the default linker.
10986 .IP "\fB\-l\fR\fIlibrary\fR" 4
10987 .IX Item "-llibrary"
10988 .PD 0
10989 .IP "\fB\-l\fR \fIlibrary\fR" 4
10990 .IX Item "-l library"
10991 .PD
10992 Search the library named \fIlibrary\fR when linking.  (The second
10993 alternative with the library as a separate argument is only for
10994 \&\s-1POSIX\s0 compliance and is not recommended.)
10995 .Sp
10996 It makes a difference where in the command you write this option; the
10997 linker searches and processes libraries and object files in the order they
10998 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
10999 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
11000 to functions in \fBz\fR, those functions may not be loaded.
11001 .Sp
11002 The linker searches a standard list of directories for the library,
11003 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
11004 then uses this file as if it had been specified precisely by name.
11005 .Sp
11006 The directories searched include several standard system directories
11007 plus any that you specify with \fB\-L\fR.
11008 .Sp
11009 Normally the files found this way are library files\-\-\-archive files
11010 whose members are object files.  The linker handles an archive file by
11011 scanning through it for members which define symbols that have so far
11012 been referenced but not defined.  But if the file that is found is an
11013 ordinary object file, it is linked in the usual fashion.  The only
11014 difference between using an \fB\-l\fR option and specifying a file name
11015 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
11016 and searches several directories.
11017 .IP "\fB\-lobjc\fR" 4
11018 .IX Item "-lobjc"
11019 You need this special case of the \fB\-l\fR option in order to
11020 link an Objective-C or Objective\-\*(C+ program.
11021 .IP "\fB\-nostartfiles\fR" 4
11022 .IX Item "-nostartfiles"
11023 Do not use the standard system startup files when linking.
11024 The standard system libraries are used normally, unless \fB\-nostdlib\fR
11025 or \fB\-nodefaultlibs\fR is used.
11026 .IP "\fB\-nodefaultlibs\fR" 4
11027 .IX Item "-nodefaultlibs"
11028 Do not use the standard system libraries when linking.
11029 Only the libraries you specify are passed to the linker, and options
11030 specifying linkage of the system libraries, such as \fB\-static\-libgcc\fR
11031 or \fB\-shared\-libgcc\fR, are ignored.  
11032 The standard startup files are used normally, unless \fB\-nostartfiles\fR
11033 is used.
11034 .Sp
11035 The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
11036 \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
11037 These entries are usually resolved by entries in
11038 libc.  These entry points should be supplied through some other
11039 mechanism when this option is specified.
11040 .IP "\fB\-nostdlib\fR" 4
11041 .IX Item "-nostdlib"
11042 Do not use the standard system startup files or libraries when linking.
11043 No startup files and only the libraries you specify are passed to
11044 the linker, and options specifying linkage of the system libraries, such as
11045 \&\fB\-static\-libgcc\fR or \fB\-shared\-libgcc\fR, are ignored.
11046 .Sp
11047 The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
11048 \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
11049 These entries are usually resolved by entries in
11050 libc.  These entry points should be supplied through some other
11051 mechanism when this option is specified.
11052 .Sp
11053 One of the standard libraries bypassed by \fB\-nostdlib\fR and
11054 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
11055 which \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
11056 needs for some languages.
11057 .Sp
11058 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
11059 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
11060 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
11061 This ensures that you have no unresolved references to internal \s-1GCC\s0
11062 library subroutines.
11063 (An example of such an internal subroutine is \f(CW\*(C`_\|_main\*(C'\fR, used to ensure \*(C+
11064 constructors are called.)
11065 .IP "\fB\-pie\fR" 4
11066 .IX Item "-pie"
11067 Produce a position independent executable on targets that support it.
11068 For predictable results, you must also specify the same set of options
11069 used for compilation (\fB\-fpie\fR, \fB\-fPIE\fR,
11070 or model suboptions) when you specify this linker option.
11071 .IP "\fB\-rdynamic\fR" 4
11072 .IX Item "-rdynamic"
11073 Pass the flag \fB\-export\-dynamic\fR to the \s-1ELF\s0 linker, on targets
11074 that support it. This instructs the linker to add all symbols, not
11075 only used ones, to the dynamic symbol table. This option is needed
11076 for some uses of \f(CW\*(C`dlopen\*(C'\fR or to allow obtaining backtraces
11077 from within a program.
11078 .IP "\fB\-s\fR" 4
11079 .IX Item "-s"
11080 Remove all symbol table and relocation information from the executable.
11081 .IP "\fB\-static\fR" 4
11082 .IX Item "-static"
11083 On systems that support dynamic linking, this prevents linking with the shared
11084 libraries.  On other systems, this option has no effect.
11085 .IP "\fB\-shared\fR" 4
11086 .IX Item "-shared"
11087 Produce a shared object which can then be linked with other objects to
11088 form an executable.  Not all systems support this option.  For predictable
11089 results, you must also specify the same set of options used for compilation
11090 (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions) when
11091 you specify this linker option.[1]
11092 .IP "\fB\-shared\-libgcc\fR" 4
11093 .IX Item "-shared-libgcc"
11094 .PD 0
11095 .IP "\fB\-static\-libgcc\fR" 4
11096 .IX Item "-static-libgcc"
11097 .PD
11098 On systems that provide \fIlibgcc\fR as a shared library, these options
11099 force the use of either the shared or static version, respectively.
11100 If no shared version of \fIlibgcc\fR was built when the compiler was
11101 configured, these options have no effect.
11102 .Sp
11103 There are several situations in which an application should use the
11104 shared \fIlibgcc\fR instead of the static version.  The most common
11105 of these is when the application wishes to throw and catch exceptions
11106 across different shared libraries.  In that case, each of the libraries
11107 as well as the application itself should use the shared \fIlibgcc\fR.
11108 .Sp
11109 Therefore, the G++ and \s-1GCJ\s0 drivers automatically add
11110 \&\fB\-shared\-libgcc\fR whenever you build a shared library or a main
11111 executable, because \*(C+ and Java programs typically use exceptions, so
11112 this is the right thing to do.
11113 .Sp
11114 If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
11115 find that they are not always linked with the shared \fIlibgcc\fR.
11116 If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
11117 or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
11118 it links the shared version of \fIlibgcc\fR into shared libraries
11119 by default.  Otherwise, it takes advantage of the linker and optimizes
11120 away the linking with the shared version of \fIlibgcc\fR, linking with
11121 the static version of libgcc by default.  This allows exceptions to
11122 propagate through such shared libraries, without incurring relocation
11123 costs at library load time.
11124 .Sp
11125 However, if a library or main executable is supposed to throw or catch
11126 exceptions, you must link it using the G++ or \s-1GCJ\s0 driver, as appropriate
11127 for the languages used in the program, or using the option
11128 \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
11129 \&\fIlibgcc\fR.
11130 .IP "\fB\-static\-libasan\fR" 4
11131 .IX Item "-static-libasan"
11132 When the \fB\-fsanitize=address\fR option is used to link a program,
11133 the \s-1GCC\s0 driver automatically links against \fBlibasan\fR.  If
11134 \&\fIlibasan\fR is available as a shared library, and the \fB\-static\fR
11135 option is not used, then this links against the shared version of
11136 \&\fIlibasan\fR.  The \fB\-static\-libasan\fR option directs the \s-1GCC\s0
11137 driver to link \fIlibasan\fR statically, without necessarily linking
11138 other libraries statically.
11139 .IP "\fB\-static\-libtsan\fR" 4
11140 .IX Item "-static-libtsan"
11141 When the \fB\-fsanitize=thread\fR option is used to link a program,
11142 the \s-1GCC\s0 driver automatically links against \fBlibtsan\fR.  If
11143 \&\fIlibtsan\fR is available as a shared library, and the \fB\-static\fR
11144 option is not used, then this links against the shared version of
11145 \&\fIlibtsan\fR.  The \fB\-static\-libtsan\fR option directs the \s-1GCC\s0
11146 driver to link \fIlibtsan\fR statically, without necessarily linking
11147 other libraries statically.
11148 .IP "\fB\-static\-liblsan\fR" 4
11149 .IX Item "-static-liblsan"
11150 When the \fB\-fsanitize=leak\fR option is used to link a program,
11151 the \s-1GCC\s0 driver automatically links against \fBliblsan\fR.  If
11152 \&\fIliblsan\fR is available as a shared library, and the \fB\-static\fR
11153 option is not used, then this links against the shared version of
11154 \&\fIliblsan\fR.  The \fB\-static\-liblsan\fR option directs the \s-1GCC\s0
11155 driver to link \fIliblsan\fR statically, without necessarily linking
11156 other libraries statically.
11157 .IP "\fB\-static\-libubsan\fR" 4
11158 .IX Item "-static-libubsan"
11159 When the \fB\-fsanitize=undefined\fR option is used to link a program,
11160 the \s-1GCC\s0 driver automatically links against \fBlibubsan\fR.  If
11161 \&\fIlibubsan\fR is available as a shared library, and the \fB\-static\fR
11162 option is not used, then this links against the shared version of
11163 \&\fIlibubsan\fR.  The \fB\-static\-libubsan\fR option directs the \s-1GCC\s0
11164 driver to link \fIlibubsan\fR statically, without necessarily linking
11165 other libraries statically.
11166 .IP "\fB\-static\-libmpx\fR" 4
11167 .IX Item "-static-libmpx"
11168 When the \fB\-fcheck\-pointer bounds\fR and \fB\-mmpx\fR options are
11169 used to link a program, the \s-1GCC\s0 driver automatically links against
11170 \&\fIlibmpx\fR.  If \fIlibmpx\fR is available as a shared library,
11171 and the \fB\-static\fR option is not used, then this links against
11172 the shared version of \fIlibmpx\fR.  The \fB\-static\-libmpx\fR
11173 option directs the \s-1GCC\s0 driver to link \fIlibmpx\fR statically,
11174 without necessarily linking other libraries statically.
11175 .IP "\fB\-static\-libmpxwrappers\fR" 4
11176 .IX Item "-static-libmpxwrappers"
11177 When the \fB\-fcheck\-pointer bounds\fR and \fB\-mmpx\fR options are used
11178 to link a program without also using \fB\-fno\-chkp\-use\-wrappers\fR, the
11179 \&\s-1GCC\s0 driver automatically links against \fIlibmpxwrappers\fR.  If
11180 \&\fIlibmpxwrappers\fR is available as a shared library, and the
11181 \&\fB\-static\fR option is not used, then this links against the shared
11182 version of \fIlibmpxwrappers\fR.  The \fB\-static\-libmpxwrappers\fR
11183 option directs the \s-1GCC\s0 driver to link \fIlibmpxwrappers\fR statically,
11184 without necessarily linking other libraries statically.
11185 .IP "\fB\-static\-libstdc++\fR" 4
11186 .IX Item "-static-libstdc++"
11187 When the \fBg++\fR program is used to link a \*(C+ program, it
11188 normally automatically links against \fBlibstdc++\fR.  If
11189 \&\fIlibstdc++\fR is available as a shared library, and the
11190 \&\fB\-static\fR option is not used, then this links against the
11191 shared version of \fIlibstdc++\fR.  That is normally fine.  However, it
11192 is sometimes useful to freeze the version of \fIlibstdc++\fR used by
11193 the program without going all the way to a fully static link.  The
11194 \&\fB\-static\-libstdc++\fR option directs the \fBg++\fR driver to
11195 link \fIlibstdc++\fR statically, without necessarily linking other
11196 libraries statically.
11197 .IP "\fB\-symbolic\fR" 4
11198 .IX Item "-symbolic"
11199 Bind references to global symbols when building a shared object.  Warn
11200 about any unresolved references (unless overridden by the link editor
11201 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
11202 this option.
11203 .IP "\fB\-T\fR \fIscript\fR" 4
11204 .IX Item "-T script"
11205 Use \fIscript\fR as the linker script.  This option is supported by most
11206 systems using the \s-1GNU\s0 linker.  On some targets, such as bare-board
11207 targets without an operating system, the \fB\-T\fR option may be required
11208 when linking to avoid references to undefined symbols.
11209 .IP "\fB\-Xlinker\fR \fIoption\fR" 4
11210 .IX Item "-Xlinker option"
11211 Pass \fIoption\fR as an option to the linker.  You can use this to
11212 supply system-specific linker options that \s-1GCC\s0 does not recognize.
11213 .Sp
11214 If you want to pass an option that takes a separate argument, you must use
11215 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
11216 For example, to pass \fB\-assert definitions\fR, you must write
11217 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
11218 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
11219 string as a single argument, which is not what the linker expects.
11220 .Sp
11221 When using the \s-1GNU\s0 linker, it is usually more convenient to pass
11222 arguments to linker options using the \fIoption\fR\fB=\fR\fIvalue\fR
11223 syntax than as separate arguments.  For example, you can specify
11224 \&\fB\-Xlinker \-Map=output.map\fR rather than
11225 \&\fB\-Xlinker \-Map \-Xlinker output.map\fR.  Other linkers may not support
11226 this syntax for command-line options.
11227 .IP "\fB\-Wl,\fR\fIoption\fR" 4
11228 .IX Item "-Wl,option"
11229 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
11230 commas, it is split into multiple options at the commas.  You can use this
11231 syntax to pass an argument to the option.
11232 For example, \fB\-Wl,\-Map,output.map\fR passes \fB\-Map output.map\fR to the
11233 linker.  When using the \s-1GNU\s0 linker, you can also get the same effect with
11234 \&\fB\-Wl,\-Map=output.map\fR.
11235 .IP "\fB\-u\fR \fIsymbol\fR" 4
11236 .IX Item "-u symbol"
11237 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
11238 library modules to define it.  You can use \fB\-u\fR multiple times with
11239 different symbols to force loading of additional library modules.
11240 .IP "\fB\-z\fR \fIkeyword\fR" 4
11241 .IX Item "-z keyword"
11242 \&\fB\-z\fR is passed directly on to the linker along with the keyword
11243 \&\fIkeyword\fR. See the section in the documentation of your linker for
11244 permitted values and their meanings.
11245 .Sh "Options for Directory Search"
11246 .IX Subsection "Options for Directory Search"
11247 These options specify directories to search for header files, for
11248 libraries and for parts of the compiler:
11249 .IP "\fB\-I\fR\fIdir\fR" 4
11250 .IX Item "-Idir"
11251 Add the directory \fIdir\fR to the head of the list of directories to be
11252 searched for header files.  This can be used to override a system header
11253 file, substituting your own version, since these directories are
11254 searched before the system header file directories.  However, you should
11255 not use this option to add directories that contain vendor-supplied
11256 system header files (use \fB\-isystem\fR for that).  If you use more than
11257 one \fB\-I\fR option, the directories are scanned in left-to-right
11258 order; the standard system directories come after.
11259 .Sp
11260 If a standard system include directory, or a directory specified with
11261 \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
11262 option is ignored.  The directory is still searched but as a
11263 system directory at its normal position in the system include chain.
11264 This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
11265 the ordering for the \f(CW\*(C`include_next\*(C'\fR directive are not inadvertently changed.
11266 If you really need to change the search order for system directories,
11267 use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
11268 .IP "\fB\-iplugindir=\fR\fIdir\fR" 4
11269 .IX Item "-iplugindir=dir"
11270 Set the directory to search for plugins that are passed
11271 by \fB\-fplugin=\fR\fIname\fR instead of
11272 \&\fB\-fplugin=\fR\fIpath\fR\fB/\fR\fIname\fR\fB.so\fR.  This option is not meant
11273 to be used by the user, but only passed by the driver.
11274 .IP "\fB\-iquote\fR\fIdir\fR" 4
11275 .IX Item "-iquotedir"
11276 Add the directory \fIdir\fR to the head of the list of directories to
11277 be searched for header files only for the case of \f(CW\*(C`#include
11278 "\f(CIfile\f(CW"\*(C'\fR; they are not searched for \f(CW\*(C`#include <\f(CIfile\f(CW>\*(C'\fR,
11279 otherwise just like \fB\-I\fR.
11280 .IP "\fB\-L\fR\fIdir\fR" 4
11281 .IX Item "-Ldir"
11282 Add directory \fIdir\fR to the list of directories to be searched
11283 for \fB\-l\fR.
11284 .IP "\fB\-B\fR\fIprefix\fR" 4
11285 .IX Item "-Bprefix"
11286 This option specifies where to find the executables, libraries,
11287 include files, and data files of the compiler itself.
11288 .Sp
11289 The compiler driver program runs one or more of the subprograms
11290 \&\fBcpp\fR, \fBcc1\fR, \fBas\fR and \fBld\fR.  It tries
11291 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
11292 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR.
11293 .Sp
11294 For each subprogram to be run, the compiler driver first tries the
11295 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
11296 is not specified, the driver tries two standard prefixes, 
11297 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR.  If neither of
11298 those results in a file name that is found, the unmodified program
11299 name is searched for using the directories specified in your
11300 \&\fB\s-1PATH\s0\fR environment variable.
11301 .Sp
11302 The compiler checks to see if the path provided by \fB\-B\fR
11303 refers to a directory, and if necessary it adds a directory
11304 separator character at the end of the path.
11305 .Sp
11306 \&\fB\-B\fR prefixes that effectively specify directory names also apply
11307 to libraries in the linker, because the compiler translates these
11308 options into \fB\-L\fR options for the linker.  They also apply to
11309 include files in the preprocessor, because the compiler translates these
11310 options into \fB\-isystem\fR options for the preprocessor.  In this case,
11311 the compiler appends \fBinclude\fR to the prefix.
11312 .Sp
11313 The runtime support file \fIlibgcc.a\fR can also be searched for using
11314 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
11315 standard prefixes above are tried, and that is all.  The file is left
11316 out of the link if it is not found by those means.
11317 .Sp
11318 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
11319 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.
11320 .Sp
11321 As a special kludge, if the path provided by \fB\-B\fR is
11322 \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
11323 9, then it is replaced by \fI[dir/]include\fR.  This is to help
11324 with boot-strapping the compiler.
11325 .IP "\fB\-specs=\fR\fIfile\fR" 4
11326 .IX Item "-specs=file"
11327 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
11328 file, in order to override the defaults which the \fBgcc\fR driver
11329 program uses when determining what switches to pass to \fBcc1\fR,
11330 \&\fBcc1plus\fR, \fBas\fR, \fBld\fR, etc.  More than one
11331 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
11332 are processed in order, from left to right.
11333 .IP "\fB\-\-sysroot=\fR\fIdir\fR" 4
11334 .IX Item "--sysroot=dir"
11335 Use \fIdir\fR as the logical root directory for headers and libraries.
11336 For example, if the compiler normally searches for headers in
11337 \&\fI/usr/include\fR and libraries in \fI/usr/lib\fR, it instead
11338 searches \fI\fIdir\fI/usr/include\fR and \fI\fIdir\fI/usr/lib\fR.
11339 .Sp
11340 If you use both this option and the \fB\-isysroot\fR option, then
11341 the \fB\-\-sysroot\fR option applies to libraries, but the
11342 \&\fB\-isysroot\fR option applies to header files.
11343 .Sp
11344 The \s-1GNU\s0 linker (beginning with version 2.16) has the necessary support
11345 for this option.  If your linker does not support this option, the
11346 header file aspect of \fB\-\-sysroot\fR still works, but the
11347 library aspect does not.
11348 .IP "\fB\-\-no\-sysroot\-suffix\fR" 4
11349 .IX Item "--no-sysroot-suffix"
11350 For some targets, a suffix is added to the root directory specified
11351 with \fB\-\-sysroot\fR, depending on the other options used, so that
11352 headers may for example be found in
11353 \&\fI\fIdir\fI/\fIsuffix\fI/usr/include\fR instead of
11354 \&\fI\fIdir\fI/usr/include\fR.  This option disables the addition of
11355 such a suffix.
11356 .IP "\fB\-I\-\fR" 4
11357 .IX Item "-I-"
11358 This option has been deprecated.  Please use \fB\-iquote\fR instead for
11359 \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR
11360 option.
11361 Any directories you specify with \fB\-I\fR options before the \fB\-I\-\fR
11362 option are searched only for the case of \f(CW\*(C`#include "\f(CIfile\f(CW"\*(C'\fR;
11363 they are not searched for \f(CW\*(C`#include <\f(CIfile\f(CW>\*(C'\fR.
11364 .Sp
11365 If additional directories are specified with \fB\-I\fR options after
11366 the \fB\-I\-\fR option, these directories are searched for all \f(CW\*(C`#include\*(C'\fR
11367 directives.  (Ordinarily \fIall\fR \fB\-I\fR directories are used
11368 this way.)
11369 .Sp
11370 In addition, the \fB\-I\-\fR option inhibits the use of the current
11371 directory (where the current input file came from) as the first search
11372 directory for \f(CW\*(C`#include "\f(CIfile\f(CW"\*(C'\fR.  There is no way to
11373 override this effect of \fB\-I\-\fR.  With \fB\-I.\fR you can specify
11374 searching the directory that is current when the compiler is
11375 invoked.  That is not exactly the same as what the preprocessor does
11376 by default, but it is often satisfactory.
11377 .Sp
11378 \&\fB\-I\-\fR does not inhibit the use of the standard system directories
11379 for header files.  Thus, \fB\-I\-\fR and \fB\-nostdinc\fR are
11380 independent.
11381 .Sh "Specifying Target Machine and Compiler Version"
11382 .IX Subsection "Specifying Target Machine and Compiler Version"
11383 The usual way to run \s-1GCC\s0 is to run the executable called \fBgcc\fR, or
11384 \&\fImachine\fR\fB\-gcc\fR when cross-compiling, or
11385 \&\fImachine\fR\fB\-gcc\-\fR\fIversion\fR to run a version other than the
11386 one that was installed last.
11387 .Sh "Hardware Models and Configurations"
11388 .IX Subsection "Hardware Models and Configurations"
11389 Each target machine types can have its own
11390 special options, starting with \fB\-m\fR, to choose among various
11391 hardware models or configurations\-\-\-for example, 68010 vs 68020,
11392 floating coprocessor or none.  A single installed version of the
11393 compiler can compile for any model or configuration, according to the
11394 options specified.
11395 .PP
11396 Some configurations of the compiler also support additional special
11397 options, usually for compatibility with other compilers on the same
11398 platform.
11399 .PP
11400 \fIAArch64 Options\fR
11401 .IX Subsection "AArch64 Options"
11402 .PP
11403 These options are defined for AArch64 implementations:
11404 .IP "\fB\-mabi=\fR\fIname\fR" 4
11405 .IX Item "-mabi=name"
11406 Generate code for the specified data model.  Permissible values
11407 are \fBilp32\fR for SysV-like data model where int, long int and pointer
11408 are 32\-bit, and \fBlp64\fR for SysV-like data model where int is 32\-bit,
11409 but long int and pointer are 64\-bit.
11410 .Sp
11411 The default depends on the specific target configuration.  Note that
11412 the \s-1LP64\s0 and \s-1ILP32\s0 ABIs are not link-compatible; you must compile your
11413 entire program with the same \s-1ABI\s0, and link with a compatible set of libraries.
11414 .IP "\fB\-mbig\-endian\fR" 4
11415 .IX Item "-mbig-endian"
11416 Generate big-endian code.  This is the default when \s-1GCC\s0 is configured for an
11417 \&\fBaarch64_be\-*\-*\fR target.
11418 .IP "\fB\-mgeneral\-regs\-only\fR" 4
11419 .IX Item "-mgeneral-regs-only"
11420 Generate code which uses only the general registers.
11421 .IP "\fB\-mlittle\-endian\fR" 4
11422 .IX Item "-mlittle-endian"
11423 Generate little-endian code.  This is the default when \s-1GCC\s0 is configured for an
11424 \&\fBaarch64\-*\-*\fR but not an \fBaarch64_be\-*\-*\fR target.
11425 .IP "\fB\-mcmodel=tiny\fR" 4
11426 .IX Item "-mcmodel=tiny"
11427 Generate code for the tiny code model.  The program and its statically defined
11428 symbols must be within 1GB of each other.  Pointers are 64 bits.  Programs can
11429 be statically or dynamically linked.  This model is not fully implemented and
11430 mostly treated as \fBsmall\fR.
11431 .IP "\fB\-mcmodel=small\fR" 4
11432 .IX Item "-mcmodel=small"
11433 Generate code for the small code model.  The program and its statically defined
11434 symbols must be within 4GB of each other.  Pointers are 64 bits.  Programs can
11435 be statically or dynamically linked.  This is the default code model.
11436 .IP "\fB\-mcmodel=large\fR" 4
11437 .IX Item "-mcmodel=large"
11438 Generate code for the large code model.  This makes no assumptions about
11439 addresses and sizes of sections.  Pointers are 64 bits.  Programs can be
11440 statically linked only.
11441 .IP "\fB\-mstrict\-align\fR" 4
11442 .IX Item "-mstrict-align"
11443 Do not assume that unaligned memory references are handled by the system.
11444 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
11445 .IX Item "-momit-leaf-frame-pointer"
11446 .PD 0
11447 .IP "\fB\-mno\-omit\-leaf\-frame\-pointer\fR" 4
11448 .IX Item "-mno-omit-leaf-frame-pointer"
11449 .PD
11450 Omit or keep the frame pointer in leaf functions.  The former behaviour is the
11451 default.
11452 .IP "\fB\-mtls\-dialect=desc\fR" 4
11453 .IX Item "-mtls-dialect=desc"
11454 Use \s-1TLS\s0 descriptors as the thread-local storage mechanism for dynamic accesses
11455 of \s-1TLS\s0 variables.  This is the default.
11456 .IP "\fB\-mtls\-dialect=traditional\fR" 4
11457 .IX Item "-mtls-dialect=traditional"
11458 Use traditional \s-1TLS\s0 as the thread-local storage mechanism for dynamic accesses
11459 of \s-1TLS\s0 variables.
11460 .IP "\fB\-mfix\-cortex\-a53\-835769\fR" 4
11461 .IX Item "-mfix-cortex-a53-835769"
11462 .PD 0
11463 .IP "\fB\-mno\-fix\-cortex\-a53\-835769\fR" 4
11464 .IX Item "-mno-fix-cortex-a53-835769"
11465 .PD
11466 Enable or disable the workaround for the \s-1ARM\s0 Cortex\-A53 erratum number 835769.
11467 This involves inserting a \s-1NOP\s0 instruction between memory instructions and
11468 64\-bit integer multiply-accumulate instructions.
11469 .IP "\fB\-mfix\-cortex\-a53\-843419\fR" 4
11470 .IX Item "-mfix-cortex-a53-843419"
11471 .PD 0
11472 .IP "\fB\-mno\-fix\-cortex\-a53\-843419\fR" 4
11473 .IX Item "-mno-fix-cortex-a53-843419"
11474 .PD
11475 Enable or disable the workaround for the \s-1ARM\s0 Cortex\-A53 erratum number 843419.
11476 This erratum workaround is made at link time and this will only pass the
11477 corresponding flag to the linker.
11478 .IP "\fB\-march=\fR\fIname\fR" 4
11479 .IX Item "-march=name"
11480 Specify the name of the target architecture, optionally suffixed by one or
11481 more feature modifiers.  This option has the form
11482 \&\fB\-march=\fR\fIarch\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*, where the
11483 only permissible value for \fIarch\fR is \fBarmv8\-a\fR.  The permissible
11484 values for \fIfeature\fR are documented in the sub-section below.
11485 .Sp
11486 Where conflicting feature modifiers are specified, the right-most feature is
11487 used.
11488 .Sp
11489 \&\s-1GCC\s0 uses this name to determine what kind of instructions it can emit when
11490 generating assembly code.
11491 .Sp
11492 Where \fB\-march\fR is specified without either of \fB\-mtune\fR
11493 or \fB\-mcpu\fR also being specified, the code is tuned to perform
11494 well across a range of target processors implementing the target
11495 architecture.
11496 .IP "\fB\-mtune=\fR\fIname\fR" 4
11497 .IX Item "-mtune=name"
11498 Specify the name of the target processor for which \s-1GCC\s0 should tune the
11499 performance of the code.  Permissible values for this option are:
11500 \&\fBgeneric\fR, \fBcortex\-a53\fR, \fBcortex\-a57\fR, \fBcortex\-a72\fR,
11501 \&\fBexynos\-m1\fR, \fBthunderx\fR, \fBxgene1\fR.
11502 .Sp
11503 Additionally, this option can specify that \s-1GCC\s0 should tune the performance
11504 of the code for a big.LITTLE system.  Permissible values for this
11505 option are: \fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR.
11506 .Sp
11507 Where none of \fB\-mtune=\fR, \fB\-mcpu=\fR or \fB\-march=\fR
11508 are specified, the code is tuned to perform well across a range
11509 of target processors.
11510 .Sp
11511 This option cannot be suffixed by feature modifiers.
11512 .IP "\fB\-mcpu=\fR\fIname\fR" 4
11513 .IX Item "-mcpu=name"
11514 Specify the name of the target processor, optionally suffixed by one or more
11515 feature modifiers.  This option has the form
11516 \&\fB\-mcpu=\fR\fIcpu\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*, where the
11517 permissible values for \fIcpu\fR are the same as those available for
11518 \&\fB\-mtune\fR.
11519 .Sp
11520 The permissible values for \fIfeature\fR are documented in the sub-section
11521 below.
11522 .Sp
11523 Where conflicting feature modifiers are specified, the right-most feature is
11524 used.
11525 .Sp
11526 \&\s-1GCC\s0 uses this name to determine what kind of instructions it can emit when
11527 generating assembly code (as if by \fB\-march\fR) and to determine
11528 the target processor for which to tune for performance (as if
11529 by \fB\-mtune\fR).  Where this option is used in conjunction
11530 with \fB\-march\fR or \fB\-mtune\fR, those options take precedence
11531 over the appropriate part of this option.
11532 .PP
11533 \fB\-march\fR and \fB\-mcpu\fR Feature Modifiers
11534 .IX Subsection "-march and -mcpu Feature Modifiers"
11535 .PP
11536 Feature modifiers used with \fB\-march\fR and \fB\-mcpu\fR can be one
11537 the following:
11538 .IP "\fBcrc\fR" 4
11539 .IX Item "crc"
11540 Enable \s-1CRC\s0 extension.
11541 .IP "\fBcrypto\fR" 4
11542 .IX Item "crypto"
11543 Enable Crypto extension.  This implies Advanced \s-1SIMD\s0 is enabled.
11544 .IP "\fBfp\fR" 4
11545 .IX Item "fp"
11546 Enable floating-point instructions.
11547 .IP "\fBsimd\fR" 4
11548 .IX Item "simd"
11549 Enable Advanced \s-1SIMD\s0 instructions.  This implies floating-point instructions
11550 are enabled.  This is the default for all current possible values for options
11551 \&\fB\-march\fR and \fB\-mcpu=\fR.
11552 .PP
11553 \fIAdapteva Epiphany Options\fR
11554 .IX Subsection "Adapteva Epiphany Options"
11555 .PP
11556 These \fB\-m\fR options are defined for Adapteva Epiphany:
11557 .IP "\fB\-mhalf\-reg\-file\fR" 4
11558 .IX Item "-mhalf-reg-file"
11559 Don't allocate any register in the range \f(CW\*(C`r32\*(C'\fR...\f(CW\*(C`r63\*(C'\fR.
11560 That allows code to run on hardware variants that lack these registers.
11561 .IP "\fB\-mprefer\-short\-insn\-regs\fR" 4
11562 .IX Item "-mprefer-short-insn-regs"
11563 Preferrentially allocate registers that allow short instruction generation.
11564 This can result in increased instruction count, so this may either reduce or
11565 increase overall code size.
11566 .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
11567 .IX Item "-mbranch-cost=num"
11568 Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
11569 This cost is only a heuristic and is not guaranteed to produce
11570 consistent results across releases.
11571 .IP "\fB\-mcmove\fR" 4
11572 .IX Item "-mcmove"
11573 Enable the generation of conditional moves.
11574 .IP "\fB\-mnops=\fR\fInum\fR" 4
11575 .IX Item "-mnops=num"
11576 Emit \fInum\fR NOPs before every other generated instruction.
11577 .IP "\fB\-mno\-soft\-cmpsf\fR" 4
11578 .IX Item "-mno-soft-cmpsf"
11579 For single-precision floating-point comparisons, emit an \f(CW\*(C`fsub\*(C'\fR instruction
11580 and test the flags.  This is faster than a software comparison, but can
11581 get incorrect results in the presence of NaNs, or when two different small
11582 numbers are compared such that their difference is calculated as zero.
11583 The default is \fB\-msoft\-cmpsf\fR, which uses slower, but IEEE-compliant,
11584 software comparisons.
11585 .IP "\fB\-mstack\-offset=\fR\fInum\fR" 4
11586 .IX Item "-mstack-offset=num"
11587 Set the offset between the top of the stack and the stack pointer.
11588 E.g., a value of 8 means that the eight bytes in the range \f(CW\*(C`sp+0...sp+7\*(C'\fR
11589 can be used by leaf functions without stack allocation.
11590 Values other than \fB8\fR or \fB16\fR are untested and unlikely to work.
11591 Note also that this option changes the \s-1ABI\s0; compiling a program with a
11592 different stack offset than the libraries have been compiled with
11593 generally does not work.
11594 This option can be useful if you want to evaluate if a different stack
11595 offset would give you better code, but to actually use a different stack
11596 offset to build working programs, it is recommended to configure the
11597 toolchain with the appropriate \fB\-\-with\-stack\-offset=\fR\fInum\fR option.
11598 .IP "\fB\-mno\-round\-nearest\fR" 4
11599 .IX Item "-mno-round-nearest"
11600 Make the scheduler assume that the rounding mode has been set to
11601 truncating.  The default is \fB\-mround\-nearest\fR.
11602 .IP "\fB\-mlong\-calls\fR" 4
11603 .IX Item "-mlong-calls"
11604 If not otherwise specified by an attribute, assume all calls might be beyond
11605 the offset range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, and therefore load the
11606 function address into a register before performing a (otherwise direct) call.
11607 This is the default.
11608 .IP "\fB\-mshort\-calls\fR" 4
11609 .IX Item "-mshort-calls"
11610 If not otherwise specified by an attribute, assume all direct calls are
11611 in the range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, so use these instructions
11612 for direct calls.  The default is \fB\-mlong\-calls\fR.
11613 .IP "\fB\-msmall16\fR" 4
11614 .IX Item "-msmall16"
11615 Assume addresses can be loaded as 16\-bit unsigned values.  This does not
11616 apply to function addresses for which \fB\-mlong\-calls\fR semantics
11617 are in effect.
11618 .IP "\fB\-mfp\-mode=\fR\fImode\fR" 4
11619 .IX Item "-mfp-mode=mode"
11620 Set the prevailing mode of the floating-point unit.
11621 This determines the floating-point mode that is provided and expected
11622 at function call and return time.  Making this mode match the mode you
11623 predominantly need at function start can make your programs smaller and
11624 faster by avoiding unnecessary mode switches.
11625 .Sp
11626 \&\fImode\fR can be set to one the following values:
11627 .RS 4
11628 .IP "\fBcaller\fR" 4
11629 .IX Item "caller"
11630 Any mode at function entry is valid, and retained or restored when
11631 the function returns, and when it calls other functions.
11632 This mode is useful for compiling libraries or other compilation units
11633 you might want to incorporate into different programs with different
11634 prevailing \s-1FPU\s0 modes, and the convenience of being able to use a single
11635 object file outweighs the size and speed overhead for any extra
11636 mode switching that might be needed, compared with what would be needed
11637 with a more specific choice of prevailing \s-1FPU\s0 mode.
11638 .IP "\fBtruncate\fR" 4
11639 .IX Item "truncate"
11640 This is the mode used for floating-point calculations with
11641 truncating (i.e. round towards zero) rounding mode.  That includes
11642 conversion from floating point to integer.
11643 .IP "\fBround-nearest\fR" 4
11644 .IX Item "round-nearest"
11645 This is the mode used for floating-point calculations with
11646 round-to-nearest-or-even rounding mode.
11647 .IP "\fBint\fR" 4
11648 .IX Item "int"
11649 This is the mode used to perform integer calculations in the \s-1FPU\s0, e.g.
11650 integer multiply, or integer multiply-and-accumulate.
11651 .RE
11652 .RS 4
11653 .Sp
11654 The default is \fB\-mfp\-mode=caller\fR
11655 .RE
11656 .IP "\fB\-mnosplit\-lohi\fR" 4
11657 .IX Item "-mnosplit-lohi"
11658 .PD 0
11659 .IP "\fB\-mno\-postinc\fR" 4
11660 .IX Item "-mno-postinc"
11661 .IP "\fB\-mno\-postmodify\fR" 4
11662 .IX Item "-mno-postmodify"
11663 .PD
11664 Code generation tweaks that disable, respectively, splitting of 32\-bit
11665 loads, generation of post-increment addresses, and generation of
11666 post-modify addresses.  The defaults are \fBmsplit-lohi\fR,
11667 \&\fB\-mpost\-inc\fR, and \fB\-mpost\-modify\fR.
11668 .IP "\fB\-mnovect\-double\fR" 4
11669 .IX Item "-mnovect-double"
11670 Change the preferred \s-1SIMD\s0 mode to SImode.  The default is
11671 \&\fB\-mvect\-double\fR, which uses DImode as preferred \s-1SIMD\s0 mode.
11672 .IP "\fB\-max\-vect\-align=\fR\fInum\fR" 4
11673 .IX Item "-max-vect-align=num"
11674 The maximum alignment for \s-1SIMD\s0 vector mode types.
11675 \&\fInum\fR may be 4 or 8.  The default is 8.
11676 Note that this is an \s-1ABI\s0 change, even though many library function
11677 interfaces are unaffected if they don't use \s-1SIMD\s0 vector modes
11678 in places that affect size and/or alignment of relevant types.
11679 .IP "\fB\-msplit\-vecmove\-early\fR" 4
11680 .IX Item "-msplit-vecmove-early"
11681 Split vector moves into single word moves before reload.  In theory this
11682 can give better register allocation, but so far the reverse seems to be
11683 generally the case.
11684 .IP "\fB\-m1reg\-\fR\fIreg\fR" 4
11685 .IX Item "-m1reg-reg"
11686 Specify a register to hold the constant \-1, which makes loading small negative
11687 constants and certain bitmasks faster.
11688 Allowable values for \fIreg\fR are \fBr43\fR and \fBr63\fR,
11689 which specify use of that register as a fixed register,
11690 and \fBnone\fR, which means that no register is used for this
11691 purpose.  The default is \fB\-m1reg\-none\fR.
11692 .PP
11693 \fI\s-1ARC\s0 Options\fR
11694 .IX Subsection "ARC Options"
11695 .PP
11696 The following options control the architecture variant for which code
11697 is being compiled:
11698 .IP "\fB\-mbarrel\-shifter\fR" 4
11699 .IX Item "-mbarrel-shifter"
11700 Generate instructions supported by barrel shifter.  This is the default
11701 unless \fB\-mcpu=ARC601\fR is in effect.
11702 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
11703 .IX Item "-mcpu=cpu"
11704 Set architecture type, register usage, and instruction scheduling
11705 parameters for \fIcpu\fR.  There are also shortcut alias options
11706 available for backward compatibility and convenience.  Supported
11707 values for \fIcpu\fR are
11708 .RS 4
11709 .IP "\fB\s-1ARC600\s0\fR" 4
11710 .IX Item "ARC600"
11711 Compile for \s-1ARC600\s0.  Aliases: \fB\-mA6\fR, \fB\-mARC600\fR.
11712 .IP "\fB\s-1ARC601\s0\fR" 4
11713 .IX Item "ARC601"
11714 Compile for \s-1ARC601\s0.  Alias: \fB\-mARC601\fR.
11715 .IP "\fB\s-1ARC700\s0\fR" 4
11716 .IX Item "ARC700"
11717 Compile for \s-1ARC700\s0.  Aliases: \fB\-mA7\fR, \fB\-mARC700\fR.
11718 This is the default when configured with \fB\-\-with\-cpu=arc700\fR.
11719 .RE
11720 .RS 4
11721 .RE
11722 .IP "\fB\-mdpfp\fR" 4
11723 .IX Item "-mdpfp"
11724 .PD 0
11725 .IP "\fB\-mdpfp\-compact\fR" 4
11726 .IX Item "-mdpfp-compact"
11727 .PD
11728 \&\s-1FPX:\s0 Generate Double Precision \s-1FPX\s0 instructions, tuned for the compact
11729 implementation.
11730 .IP "\fB\-mdpfp\-fast\fR" 4
11731 .IX Item "-mdpfp-fast"
11732 \&\s-1FPX:\s0 Generate Double Precision \s-1FPX\s0 instructions, tuned for the fast
11733 implementation.
11734 .IP "\fB\-mno\-dpfp\-lrsr\fR" 4
11735 .IX Item "-mno-dpfp-lrsr"
11736 Disable \s-1LR\s0 and \s-1SR\s0 instructions from using \s-1FPX\s0 extension aux registers.
11737 .IP "\fB\-mea\fR" 4
11738 .IX Item "-mea"
11739 Generate Extended arithmetic instructions.  Currently only
11740 \&\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
11741 supported.  This is always enabled for \fB\-mcpu=ARC700\fR.
11742 .IP "\fB\-mno\-mpy\fR" 4
11743 .IX Item "-mno-mpy"
11744 Do not generate mpy instructions for \s-1ARC700\s0.
11745 .IP "\fB\-mmul32x16\fR" 4
11746 .IX Item "-mmul32x16"
11747 Generate 32x16 bit multiply and mac instructions.
11748 .IP "\fB\-mmul64\fR" 4
11749 .IX Item "-mmul64"
11750 Generate mul64 and mulu64 instructions.  Only valid for \fB\-mcpu=ARC600\fR.
11751 .IP "\fB\-mnorm\fR" 4
11752 .IX Item "-mnorm"
11753 Generate norm instruction.  This is the default if \fB\-mcpu=ARC700\fR
11754 is in effect.
11755 .IP "\fB\-mspfp\fR" 4
11756 .IX Item "-mspfp"
11757 .PD 0
11758 .IP "\fB\-mspfp\-compact\fR" 4
11759 .IX Item "-mspfp-compact"
11760 .PD
11761 \&\s-1FPX:\s0 Generate Single Precision \s-1FPX\s0 instructions, tuned for the compact
11762 implementation.
11763 .IP "\fB\-mspfp\-fast\fR" 4
11764 .IX Item "-mspfp-fast"
11765 \&\s-1FPX:\s0 Generate Single Precision \s-1FPX\s0 instructions, tuned for the fast
11766 implementation.
11767 .IP "\fB\-msimd\fR" 4
11768 .IX Item "-msimd"
11769 Enable generation of \s-1ARC\s0 \s-1SIMD\s0 instructions via target-specific
11770 builtins.  Only valid for \fB\-mcpu=ARC700\fR.
11771 .IP "\fB\-msoft\-float\fR" 4
11772 .IX Item "-msoft-float"
11773 This option ignored; it is provided for compatibility purposes only.
11774 Software floating point code is emitted by default, and this default
11775 can overridden by \s-1FPX\s0 options; \fBmspfp\fR, \fBmspfp-compact\fR, or
11776 \&\fBmspfp-fast\fR for single precision, and \fBmdpfp\fR,
11777 \&\fBmdpfp-compact\fR, or \fBmdpfp-fast\fR for double precision.
11778 .IP "\fB\-mswap\fR" 4
11779 .IX Item "-mswap"
11780 Generate swap instructions.
11781 .PP
11782 The following options are passed through to the assembler, and also
11783 define preprocessor macro symbols.
11784 .IP "\fB\-mdsp\-packa\fR" 4
11785 .IX Item "-mdsp-packa"
11786 Passed down to the assembler to enable the \s-1DSP\s0 Pack A extensions.
11787 Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdsp_packa\*(C'\fR.
11788 .IP "\fB\-mdvbf\fR" 4
11789 .IX Item "-mdvbf"
11790 Passed down to the assembler to enable the dual viterbi butterfly
11791 extension.  Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdvbf\*(C'\fR.
11792 .IP "\fB\-mlock\fR" 4
11793 .IX Item "-mlock"
11794 Passed down to the assembler to enable the Locked Load/Store
11795 Conditional extension.  Also sets the preprocessor symbol
11796 \&\f(CW\*(C`_\|_Xlock\*(C'\fR.
11797 .IP "\fB\-mmac\-d16\fR" 4
11798 .IX Item "-mmac-d16"
11799 Passed down to the assembler.  Also sets the preprocessor symbol
11800 \&\f(CW\*(C`_\|_Xxmac_d16\*(C'\fR.
11801 .IP "\fB\-mmac\-24\fR" 4
11802 .IX Item "-mmac-24"
11803 Passed down to the assembler.  Also sets the preprocessor symbol
11804 \&\f(CW\*(C`_\|_Xxmac_24\*(C'\fR.
11805 .IP "\fB\-mrtsc\fR" 4
11806 .IX Item "-mrtsc"
11807 Passed down to the assembler to enable the 64\-bit Time-Stamp Counter
11808 extension instruction.  Also sets the preprocessor symbol
11809 \&\f(CW\*(C`_\|_Xrtsc\*(C'\fR.
11810 .IP "\fB\-mswape\fR" 4
11811 .IX Item "-mswape"
11812 Passed down to the assembler to enable the swap byte ordering
11813 extension instruction.  Also sets the preprocessor symbol
11814 \&\f(CW\*(C`_\|_Xswape\*(C'\fR.
11815 .IP "\fB\-mtelephony\fR" 4
11816 .IX Item "-mtelephony"
11817 Passed down to the assembler to enable dual and single operand
11818 instructions for telephony.  Also sets the preprocessor symbol
11819 \&\f(CW\*(C`_\|_Xtelephony\*(C'\fR.
11820 .IP "\fB\-mxy\fR" 4
11821 .IX Item "-mxy"
11822 Passed down to the assembler to enable the \s-1XY\s0 Memory extension.  Also
11823 sets the preprocessor symbol \f(CW\*(C`_\|_Xxy\*(C'\fR.
11824 .PP
11825 The following options control how the assembly code is annotated:
11826 .IP "\fB\-misize\fR" 4
11827 .IX Item "-misize"
11828 Annotate assembler instructions with estimated addresses.
11829 .IP "\fB\-mannotate\-align\fR" 4
11830 .IX Item "-mannotate-align"
11831 Explain what alignment considerations lead to the decision to make an
11832 instruction short or long.
11833 .PP
11834 The following options are passed through to the linker:
11835 .IP "\fB\-marclinux\fR" 4
11836 .IX Item "-marclinux"
11837 Passed through to the linker, to specify use of the \f(CW\*(C`arclinux\*(C'\fR emulation.
11838 This option is enabled by default in tool chains built for
11839 \&\f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets
11840 when profiling is not requested.
11841 .IP "\fB\-marclinux_prof\fR" 4
11842 .IX Item "-marclinux_prof"
11843 Passed through to the linker, to specify use of the
11844 \&\f(CW\*(C`arclinux_prof\*(C'\fR emulation.  This option is enabled by default in
11845 tool chains built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and
11846 \&\f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets when profiling is requested.
11847 .PP
11848 The following options control the semantics of generated code:
11849 .IP "\fB\-mepilogue\-cfi\fR" 4
11850 .IX Item "-mepilogue-cfi"
11851 Enable generation of call frame information for epilogues.
11852 .IP "\fB\-mno\-epilogue\-cfi\fR" 4
11853 .IX Item "-mno-epilogue-cfi"
11854 Disable generation of call frame information for epilogues.
11855 .IP "\fB\-mlong\-calls\fR" 4
11856 .IX Item "-mlong-calls"
11857 Generate call insns as register indirect calls, thus providing access
11858 to the full 32\-bit address range.
11859 .IP "\fB\-mmedium\-calls\fR" 4
11860 .IX Item "-mmedium-calls"
11861 Don't use less than 25 bit addressing range for calls, which is the
11862 offset available for an unconditional branch-and-link
11863 instruction.  Conditional execution of function calls is suppressed, to
11864 allow use of the 25\-bit range, rather than the 21\-bit range with
11865 conditional branch-and-link.  This is the default for tool chains built
11866 for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets.
11867 .IP "\fB\-mno\-sdata\fR" 4
11868 .IX Item "-mno-sdata"
11869 Do not generate sdata references.  This is the default for tool chains
11870 built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR
11871 targets.
11872 .IP "\fB\-mucb\-mcount\fR" 4
11873 .IX Item "-mucb-mcount"
11874 Instrument with mcount calls as used in \s-1UCB\s0 code.  I.e. do the
11875 counting in the callee, not the caller.  By default \s-1ARC\s0 instrumentation
11876 counts in the caller.
11877 .IP "\fB\-mvolatile\-cache\fR" 4
11878 .IX Item "-mvolatile-cache"
11879 Use ordinarily cached memory accesses for volatile references.  This is the
11880 default.
11881 .IP "\fB\-mno\-volatile\-cache\fR" 4
11882 .IX Item "-mno-volatile-cache"
11883 Enable cache bypass for volatile references.
11884 .PP
11885 The following options fine tune code generation:
11886 .IP "\fB\-malign\-call\fR" 4
11887 .IX Item "-malign-call"
11888 Do alignment optimizations for call instructions.
11889 .IP "\fB\-mauto\-modify\-reg\fR" 4
11890 .IX Item "-mauto-modify-reg"
11891 Enable the use of pre/post modify with register displacement.
11892 .IP "\fB\-mbbit\-peephole\fR" 4
11893 .IX Item "-mbbit-peephole"
11894 Enable bbit peephole2.
11895 .IP "\fB\-mno\-brcc\fR" 4
11896 .IX Item "-mno-brcc"
11897 This option disables a target-specific pass in \fIarc_reorg\fR to
11898 generate \f(CW\*(C`BRcc\*(C'\fR instructions.  It has no effect on \f(CW\*(C`BRcc\*(C'\fR
11899 generation driven by the combiner pass.
11900 .IP "\fB\-mcase\-vector\-pcrel\fR" 4
11901 .IX Item "-mcase-vector-pcrel"
11902 Use pc-relative switch case tables \- this enables case table shortening.
11903 This is the default for \fB\-Os\fR.
11904 .IP "\fB\-mcompact\-casesi\fR" 4
11905 .IX Item "-mcompact-casesi"
11906 Enable compact casesi pattern.
11907 This is the default for \fB\-Os\fR.
11908 .IP "\fB\-mno\-cond\-exec\fR" 4
11909 .IX Item "-mno-cond-exec"
11910 Disable ARCompact specific pass to generate conditional execution instructions.
11911 Due to delay slot scheduling and interactions between operand numbers,
11912 literal sizes, instruction lengths, and the support for conditional execution,
11913 the target-independent pass to generate conditional execution is often lacking,
11914 so the \s-1ARC\s0 port has kept a special pass around that tries to find more
11915 conditional execution generating opportunities after register allocation,
11916 branch shortening, and delay slot scheduling have been done.  This pass
11917 generally, but not always, improves performance and code size, at the cost of
11918 extra compilation time, which is why there is an option to switch it off.
11919 If you have a problem with call instructions exceeding their allowable
11920 offset range because they are conditionalized, you should consider using
11921 \&\fB\-mmedium\-calls\fR instead.
11922 .IP "\fB\-mearly\-cbranchsi\fR" 4
11923 .IX Item "-mearly-cbranchsi"
11924 Enable pre-reload use of the cbranchsi pattern.
11925 .IP "\fB\-mexpand\-adddi\fR" 4
11926 .IX Item "-mexpand-adddi"
11927 Expand \f(CW\*(C`adddi3\*(C'\fR and \f(CW\*(C`subdi3\*(C'\fR at rtl generation time into
11928 \&\f(CW\*(C`add.f\*(C'\fR, \f(CW\*(C`adc\*(C'\fR etc.
11929 .IP "\fB\-mindexed\-loads\fR" 4
11930 .IX Item "-mindexed-loads"
11931 Enable the use of indexed loads.  This can be problematic because some
11932 optimizers then assume that indexed stores exist, which is not
11933 the case.
11934 .IP "\fB\-mlra\fR" 4
11935 .IX Item "-mlra"
11936 Enable Local Register Allocation.  This is still experimental for \s-1ARC\s0,
11937 so by default the compiler uses standard reload
11938 (i.e. \fB\-mno\-lra\fR).
11939 .IP "\fB\-mlra\-priority\-none\fR" 4
11940 .IX Item "-mlra-priority-none"
11941 Don't indicate any priority for target registers.
11942 .IP "\fB\-mlra\-priority\-compact\fR" 4
11943 .IX Item "-mlra-priority-compact"
11944 Indicate target register priority for r0..r3 / r12..r15.
11945 .IP "\fB\-mlra\-priority\-noncompact\fR" 4
11946 .IX Item "-mlra-priority-noncompact"
11947 Reduce target regsiter priority for r0..r3 / r12..r15.
11948 .IP "\fB\-mno\-millicode\fR" 4
11949 .IX Item "-mno-millicode"
11950 When optimizing for size (using \fB\-Os\fR), prologues and epilogues
11951 that have to save or restore a large number of registers are often
11952 shortened by using call to a special function in libgcc; this is
11953 referred to as a \fImillicode\fR call.  As these calls can pose
11954 performance issues, and/or cause linking issues when linking in a
11955 nonstandard way, this option is provided to turn off millicode call
11956 generation.
11957 .IP "\fB\-mmixed\-code\fR" 4
11958 .IX Item "-mmixed-code"
11959 Tweak register allocation to help 16\-bit instruction generation.
11960 This generally has the effect of decreasing the average instruction size
11961 while increasing the instruction count.
11962 .IP "\fB\-mq\-class\fR" 4
11963 .IX Item "-mq-class"
11964 Enable 'q' instruction alternatives.
11965 This is the default for \fB\-Os\fR.
11966 .IP "\fB\-mRcq\fR" 4
11967 .IX Item "-mRcq"
11968 Enable Rcq constraint handling \- most short code generation depends on this.
11969 This is the default.
11970 .IP "\fB\-mRcw\fR" 4
11971 .IX Item "-mRcw"
11972 Enable Rcw constraint handling \- ccfsm condexec mostly depends on this.
11973 This is the default.
11974 .IP "\fB\-msize\-level=\fR\fIlevel\fR" 4
11975 .IX Item "-msize-level=level"
11976 Fine-tune size optimization with regards to instruction lengths and alignment.
11977 The recognized values for \fIlevel\fR are:
11978 .RS 4
11979 .IP "\fB0\fR" 4
11980 .IX Item "0"
11981 No size optimization.  This level is deprecated and treated like \fB1\fR.
11982 .IP "\fB1\fR" 4
11983 .IX Item "1"
11984 Short instructions are used opportunistically.
11985 .IP "\fB2\fR" 4
11986 .IX Item "2"
11987 In addition, alignment of loops and of code after barriers are dropped.
11988 .IP "\fB3\fR" 4
11989 .IX Item "3"
11990 In addition, optional data alignment is dropped, and the option \fBOs\fR is enabled.
11991 .RE
11992 .RS 4
11993 .Sp
11994 This defaults to \fB3\fR when \fB\-Os\fR is in effect.  Otherwise,
11995 the behavior when this is not set is equivalent to level \fB1\fR.
11996 .RE
11997 .IP "\fB\-mtune=\fR\fIcpu\fR" 4
11998 .IX Item "-mtune=cpu"
11999 Set instruction scheduling parameters for \fIcpu\fR, overriding any implied
12000 by \fB\-mcpu=\fR.
12001 .Sp
12002 Supported values for \fIcpu\fR are
12003 .RS 4
12004 .IP "\fB\s-1ARC600\s0\fR" 4
12005 .IX Item "ARC600"
12006 Tune for \s-1ARC600\s0 cpu.
12007 .IP "\fB\s-1ARC601\s0\fR" 4
12008 .IX Item "ARC601"
12009 Tune for \s-1ARC601\s0 cpu.
12010 .IP "\fB\s-1ARC700\s0\fR" 4
12011 .IX Item "ARC700"
12012 Tune for \s-1ARC700\s0 cpu with standard multiplier block.
12013 .IP "\fBARC700\-xmac\fR" 4
12014 .IX Item "ARC700-xmac"
12015 Tune for \s-1ARC700\s0 cpu with \s-1XMAC\s0 block.
12016 .IP "\fB\s-1ARC725D\s0\fR" 4
12017 .IX Item "ARC725D"
12018 Tune for \s-1ARC725D\s0 cpu.
12019 .IP "\fB\s-1ARC750D\s0\fR" 4
12020 .IX Item "ARC750D"
12021 Tune for \s-1ARC750D\s0 cpu.
12022 .RE
12023 .RS 4
12024 .RE
12025 .IP "\fB\-mmultcost=\fR\fInum\fR" 4
12026 .IX Item "-mmultcost=num"
12027 Cost to assume for a multiply instruction, with \fB4\fR being equal to a
12028 normal instruction.
12029 .IP "\fB\-munalign\-prob\-threshold=\fR\fIprobability\fR" 4
12030 .IX Item "-munalign-prob-threshold=probability"
12031 Set probability threshold for unaligning branches.
12032 When tuning for \fB\s-1ARC700\s0\fR and optimizing for speed, branches without
12033 filled delay slot are preferably emitted unaligned and long, unless
12034 profiling indicates that the probability for the branch to be taken
12035 is below \fIprobability\fR.  
12036 The default is (\s-1REG_BR_PROB_BASE/2\s0), i.e. 5000.
12037 .PP
12038 The following options are maintained for backward compatibility, but
12039 are now deprecated and will be removed in a future release:
12040 .IP "\fB\-margonaut\fR" 4
12041 .IX Item "-margonaut"
12042 Obsolete \s-1FPX\s0.
12043 .IP "\fB\-mbig\-endian\fR" 4
12044 .IX Item "-mbig-endian"
12045 .PD 0
12046 .IP "\fB\-EB\fR" 4
12047 .IX Item "-EB"
12048 .PD
12049 Compile code for big endian targets.  Use of these options is now
12050 deprecated.  Users wanting big-endian code, should use the
12051 \&\f(CW\*(C`arceb\-elf32\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets when
12052 building the tool chain, for which big-endian is the default.
12053 .IP "\fB\-mlittle\-endian\fR" 4
12054 .IX Item "-mlittle-endian"
12055 .PD 0
12056 .IP "\fB\-EL\fR" 4
12057 .IX Item "-EL"
12058 .PD
12059 Compile code for little endian targets.  Use of these options is now
12060 deprecated.  Users wanting little-endian code should use the
12061 \&\f(CW\*(C`arc\-elf32\*(C'\fR and \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR targets when
12062 building the tool chain, for which little-endian is the default.
12063 .IP "\fB\-mbarrel_shifter\fR" 4
12064 .IX Item "-mbarrel_shifter"
12065 Replaced by \fB\-mbarrel\-shifter\fR.
12066 .IP "\fB\-mdpfp_compact\fR" 4
12067 .IX Item "-mdpfp_compact"
12068 Replaced by \fB\-mdpfp\-compact\fR.
12069 .IP "\fB\-mdpfp_fast\fR" 4
12070 .IX Item "-mdpfp_fast"
12071 Replaced by \fB\-mdpfp\-fast\fR.
12072 .IP "\fB\-mdsp_packa\fR" 4
12073 .IX Item "-mdsp_packa"
12074 Replaced by \fB\-mdsp\-packa\fR.
12075 .IP "\fB\-mEA\fR" 4
12076 .IX Item "-mEA"
12077 Replaced by \fB\-mea\fR.
12078 .IP "\fB\-mmac_24\fR" 4
12079 .IX Item "-mmac_24"
12080 Replaced by \fB\-mmac\-24\fR.
12081 .IP "\fB\-mmac_d16\fR" 4
12082 .IX Item "-mmac_d16"
12083 Replaced by \fB\-mmac\-d16\fR.
12084 .IP "\fB\-mspfp_compact\fR" 4
12085 .IX Item "-mspfp_compact"
12086 Replaced by \fB\-mspfp\-compact\fR.
12087 .IP "\fB\-mspfp_fast\fR" 4
12088 .IX Item "-mspfp_fast"
12089 Replaced by \fB\-mspfp\-fast\fR.
12090 .IP "\fB\-mtune=\fR\fIcpu\fR" 4
12091 .IX Item "-mtune=cpu"
12092 Values \fBarc600\fR, \fBarc601\fR, \fBarc700\fR and
12093 \&\fBarc700\-xmac\fR for \fIcpu\fR are replaced by \fB\s-1ARC600\s0\fR,
12094 \&\fB\s-1ARC601\s0\fR, \fB\s-1ARC700\s0\fR and \fBARC700\-xmac\fR respectively
12095 .IP "\fB\-multcost=\fR\fInum\fR" 4
12096 .IX Item "-multcost=num"
12097 Replaced by \fB\-mmultcost\fR.
12098 .PP
12099 \fI\s-1ARM\s0 Options\fR
12100 .IX Subsection "ARM Options"
12101 .PP
12102 These \fB\-m\fR options are defined for the \s-1ARM\s0 port:
12103 .IP "\fB\-mabi=\fR\fIname\fR" 4
12104 .IX Item "-mabi=name"
12105 Generate code for the specified \s-1ABI\s0.  Permissible values are: \fBapcs-gnu\fR,
12106 \&\fBatpcs\fR, \fBaapcs\fR, \fBaapcs-linux\fR and \fBiwmmxt\fR.
12107 .IP "\fB\-mapcs\-frame\fR" 4
12108 .IX Item "-mapcs-frame"
12109 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
12110 Standard for all functions, even if this is not strictly necessary for
12111 correct execution of the code.  Specifying \fB\-fomit\-frame\-pointer\fR
12112 with this option causes the stack frames not to be generated for
12113 leaf functions.  The default is \fB\-mno\-apcs\-frame\fR.
12114 This option is deprecated.
12115 .IP "\fB\-mapcs\fR" 4
12116 .IX Item "-mapcs"
12117 This is a synonym for \fB\-mapcs\-frame\fR and is deprecated.
12118 .IP "\fB\-mthumb\-interwork\fR" 4
12119 .IX Item "-mthumb-interwork"
12120 Generate code that supports calling between the \s-1ARM\s0 and Thumb
12121 instruction sets.  Without this option, on pre\-v5 architectures, the
12122 two instruction sets cannot be reliably used inside one program.  The
12123 default is \fB\-mno\-thumb\-interwork\fR, since slightly larger code
12124 is generated when \fB\-mthumb\-interwork\fR is specified.  In \s-1AAPCS\s0
12125 configurations this option is meaningless.
12126 .IP "\fB\-mno\-sched\-prolog\fR" 4
12127 .IX Item "-mno-sched-prolog"
12128 Prevent the reordering of instructions in the function prologue, or the
12129 merging of those instruction with the instructions in the function's
12130 body.  This means that all functions start with a recognizable set
12131 of instructions (or in fact one of a choice from a small set of
12132 different function prologues), and this information can be used to
12133 locate the start of functions inside an executable piece of code.  The
12134 default is \fB\-msched\-prolog\fR.
12135 .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
12136 .IX Item "-mfloat-abi=name"
12137 Specifies which floating-point \s-1ABI\s0 to use.  Permissible values
12138 are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
12139 .Sp
12140 Specifying \fBsoft\fR causes \s-1GCC\s0 to generate output containing
12141 library calls for floating-point operations.
12142 \&\fBsoftfp\fR allows the generation of code using hardware floating-point
12143 instructions, but still uses the soft-float calling conventions.
12144 \&\fBhard\fR allows generation of floating-point instructions
12145 and uses FPU-specific calling conventions.
12146 .Sp
12147 The default depends on the specific target configuration.  Note that
12148 the hard-float and soft-float ABIs are not link-compatible; you must
12149 compile your entire program with the same \s-1ABI\s0, and link with a
12150 compatible set of libraries.
12151 .IP "\fB\-mlittle\-endian\fR" 4
12152 .IX Item "-mlittle-endian"
12153 Generate code for a processor running in little-endian mode.  This is
12154 the default for all standard configurations.
12155 .IP "\fB\-mbig\-endian\fR" 4
12156 .IX Item "-mbig-endian"
12157 Generate code for a processor running in big-endian mode; the default is
12158 to compile code for a little-endian processor.
12159 .IP "\fB\-march=\fR\fIname\fR" 4
12160 .IX Item "-march=name"
12161 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
12162 name to determine what kind of instructions it can emit when generating
12163 assembly code.  This option can be used in conjunction with or instead
12164 of the \fB\-mcpu=\fR option.  Permissible names are: \fBarmv2\fR,
12165 \&\fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR, \fBarmv4\fR, \fBarmv4t\fR,
12166 \&\fBarmv5\fR, \fBarmv5t\fR, \fBarmv5e\fR, \fBarmv5te\fR,
12167 \&\fBarmv6\fR, \fBarmv6j\fR,
12168 \&\fBarmv6t2\fR, \fBarmv6z\fR, \fBarmv6zk\fR, \fBarmv6\-m\fR,
12169 \&\fBarmv7\fR, \fBarmv7\-a\fR, \fBarmv7\-r\fR, \fBarmv7\-m\fR, \fBarmv7e\-m\fR,
12170 \&\fBarmv7ve\fR, \fBarmv8\-a\fR, \fBarmv8\-a+crc\fR,
12171 \&\fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR.
12172 .Sp
12173 \&\fB\-march=armv7ve\fR is the armv7\-a architecture with virtualization
12174 extensions.
12175 .Sp
12176 \&\fB\-march=armv8\-a+crc\fR enables code generation for the ARMv8\-A
12177 architecture together with the optional \s-1CRC32\s0 extensions.
12178 .Sp
12179 \&\fB\-march=native\fR causes the compiler to auto-detect the architecture
12180 of the build computer.  At present, this feature is only supported on
12181 GNU/Linux, and not all architectures are recognized.  If the auto-detect
12182 is unsuccessful the option has no effect.
12183 .IP "\fB\-mtune=\fR\fIname\fR" 4
12184 .IX Item "-mtune=name"
12185 This option specifies the name of the target \s-1ARM\s0 processor for
12186 which \s-1GCC\s0 should tune the performance of the code.
12187 For some \s-1ARM\s0 implementations better performance can be obtained by using
12188 this option.
12189 Permissible names are: \fBarm2\fR, \fBarm250\fR,
12190 \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
12191 \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
12192 \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
12193 \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
12194 \&\fBarm720\fR,
12195 \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR,
12196 \&\fBarm710t\fR, \fBarm720t\fR, \fBarm740t\fR,
12197 \&\fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
12198 \&\fBstrongarm1110\fR,
12199 \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
12200 \&\fBarm920t\fR, \fBarm922t\fR, \fBarm946e\-s\fR, \fBarm966e\-s\fR,
12201 \&\fBarm968e\-s\fR, \fBarm926ej\-s\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
12202 \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ej\-s\fR,
12203 \&\fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
12204 \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
12205 \&\fBarm1156t2\-s\fR, \fBarm1156t2f\-s\fR, \fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR,
12206 \&\fBcortex\-a5\fR, \fBcortex\-a7\fR, \fBcortex\-a8\fR, \fBcortex\-a9\fR,
12207 \&\fBcortex\-a12\fR, \fBcortex\-a15\fR, \fBcortex\-a53\fR,
12208 \&\fBcortex\-a57\fR, \fBcortex\-a72\fR,
12209 \&\fBcortex\-r4\fR,
12210 \&\fBcortex\-r4f\fR, \fBcortex\-r5\fR, \fBcortex\-r7\fR, \fBcortex\-m7\fR,
12211 \&\fBcortex\-m4\fR,
12212 \&\fBcortex\-m3\fR,
12213 \&\fBcortex\-m1\fR,
12214 \&\fBcortex\-m0\fR,
12215 \&\fBcortex\-m0plus\fR,
12216 \&\fBcortex\-m1.small\-multiply\fR,
12217 \&\fBcortex\-m0.small\-multiply\fR,
12218 \&\fBcortex\-m0plus.small\-multiply\fR,
12219 \&\fBexynos\-m1\fR,
12220 \&\fBmarvell\-pj4\fR,
12221 \&\fBxscale\fR, \fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR,
12222 \&\fBfa526\fR, \fBfa626\fR,
12223 \&\fBfa606te\fR, \fBfa626te\fR, \fBfmp626\fR, \fBfa726te\fR,
12224 \&\fBxgene1\fR.
12225 .Sp
12226 Additionally, this option can specify that \s-1GCC\s0 should tune the performance
12227 of the code for a big.LITTLE system.  Permissible names are:
12228 \&\fBcortex\-a15.cortex\-a7\fR, \fBcortex\-a57.cortex\-a53\fR,
12229 \&\fBcortex\-a72.cortex\-a53\fR.
12230 .Sp
12231 \&\fB\-mtune=generic\-\fR\fIarch\fR specifies that \s-1GCC\s0 should tune the
12232 performance for a blend of processors within architecture \fIarch\fR.
12233 The aim is to generate code that run well on the current most popular
12234 processors, balancing between optimizations that benefit some CPUs in the
12235 range, and avoiding performance pitfalls of other CPUs.  The effects of
12236 this option may change in future \s-1GCC\s0 versions as \s-1CPU\s0 models come and go.
12237 .Sp
12238 \&\fB\-mtune=native\fR causes the compiler to auto-detect the \s-1CPU\s0
12239 of the build computer.  At present, this feature is only supported on
12240 GNU/Linux, and not all architectures are recognized.  If the auto-detect is
12241 unsuccessful the option has no effect.
12242 .IP "\fB\-mcpu=\fR\fIname\fR" 4
12243 .IX Item "-mcpu=name"
12244 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
12245 to derive the name of the target \s-1ARM\s0 architecture (as if specified
12246 by \fB\-march\fR) and the \s-1ARM\s0 processor type for which to tune for
12247 performance (as if specified by \fB\-mtune\fR).  Where this option
12248 is used in conjunction with \fB\-march\fR or \fB\-mtune\fR,
12249 those options take precedence over the appropriate part of this option.
12250 .Sp
12251 Permissible names for this option are the same as those for
12252 \&\fB\-mtune\fR.
12253 .Sp
12254 \&\fB\-mcpu=generic\-\fR\fIarch\fR is also permissible, and is
12255 equivalent to \fB\-march=\fR\fIarch\fR \fB\-mtune=generic\-\fR\fIarch\fR.
12256 See \fB\-mtune\fR for more information.
12257 .Sp
12258 \&\fB\-mcpu=native\fR causes the compiler to auto-detect the \s-1CPU\s0
12259 of the build computer.  At present, this feature is only supported on
12260 GNU/Linux, and not all architectures are recognized.  If the auto-detect
12261 is unsuccessful the option has no effect.
12262 .IP "\fB\-mfpu=\fR\fIname\fR" 4
12263 .IX Item "-mfpu=name"
12264 This specifies what floating-point hardware (or hardware emulation) is
12265 available on the target.  Permissible names are: \fBvfp\fR, \fBvfpv3\fR,
12266 \&\fBvfpv3\-fp16\fR, \fBvfpv3\-d16\fR, \fBvfpv3\-d16\-fp16\fR, \fBvfpv3xd\fR,
12267 \&\fBvfpv3xd\-fp16\fR, \fBneon\fR, \fBneon\-fp16\fR, \fBvfpv4\fR,
12268 \&\fBvfpv4\-d16\fR, \fBfpv4\-sp\-d16\fR, \fBneon\-vfpv4\fR,
12269 \&\fBfpv5\-d16\fR, \fBfpv5\-sp\-d16\fR,
12270 \&\fBfp\-armv8\fR, \fBneon\-fp\-armv8\fR, and \fBcrypto\-neon\-fp\-armv8\fR.
12271 .Sp
12272 If \fB\-msoft\-float\fR is specified this specifies the format of
12273 floating-point values.
12274 .Sp
12275 If the selected floating-point hardware includes the \s-1NEON\s0 extension
12276 (e.g. \fB\-mfpu\fR=\fBneon\fR), note that floating-point
12277 operations are not generated by \s-1GCC\s0's auto-vectorization pass unless
12278 \&\fB\-funsafe\-math\-optimizations\fR is also specified.  This is
12279 because \s-1NEON\s0 hardware does not fully implement the \s-1IEEE\s0 754 standard for
12280 floating-point arithmetic (in particular denormal values are treated as
12281 zero), so the use of \s-1NEON\s0 instructions may lead to a loss of precision.
12282 .IP "\fB\-mfp16\-format=\fR\fIname\fR" 4
12283 .IX Item "-mfp16-format=name"
12284 Specify the format of the \f(CW\*(C`_\|_fp16\*(C'\fR half-precision floating-point type.
12285 Permissible names are \fBnone\fR, \fBieee\fR, and \fBalternative\fR;
12286 the default is \fBnone\fR, in which case the \f(CW\*(C`_\|_fp16\*(C'\fR type is not
12287 defined.
12288 .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
12289 .IX Item "-mstructure-size-boundary=n"
12290 The sizes of all structures and unions are rounded up to a multiple
12291 of the number of bits set by this option.  Permissible values are 8, 32
12292 and 64.  The default value varies for different toolchains.  For the \s-1COFF\s0
12293 targeted toolchain the default value is 8.  A value of 64 is only allowed
12294 if the underlying \s-1ABI\s0 supports it.
12295 .Sp
12296 Specifying a larger number can produce faster, more efficient code, but
12297 can also increase the size of the program.  Different values are potentially
12298 incompatible.  Code compiled with one value cannot necessarily expect to
12299 work with code or libraries compiled with another value, if they exchange
12300 information using structures or unions.
12301 .IP "\fB\-mabort\-on\-noreturn\fR" 4
12302 .IX Item "-mabort-on-noreturn"
12303 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
12304 \&\f(CW\*(C`noreturn\*(C'\fR function.  It is executed if the function tries to
12305 return.
12306 .IP "\fB\-mlong\-calls\fR" 4
12307 .IX Item "-mlong-calls"
12308 .PD 0
12309 .IP "\fB\-mno\-long\-calls\fR" 4
12310 .IX Item "-mno-long-calls"
12311 .PD
12312 Tells the compiler to perform function calls by first loading the
12313 address of the function into a register and then performing a subroutine
12314 call on this register.  This switch is needed if the target function
12315 lies outside of the 64\-megabyte addressing range of the offset-based
12316 version of subroutine call instruction.
12317 .Sp
12318 Even if this switch is enabled, not all function calls are turned
12319 into long calls.  The heuristic is that static functions, functions
12320 that have the \f(CW\*(C`short_call\*(C'\fR attribute, functions that are inside
12321 the scope of a \f(CW\*(C`#pragma no_long_calls\*(C'\fR directive, and functions whose
12322 definitions have already been compiled within the current compilation
12323 unit are not turned into long calls.  The exceptions to this rule are
12324 that weak function definitions, functions with the \f(CW\*(C`long_call\*(C'\fR
12325 attribute or the \f(CW\*(C`section\*(C'\fR attribute, and functions that are within
12326 the scope of a \f(CW\*(C`#pragma long_calls\*(C'\fR directive are always
12327 turned into long calls.
12328 .Sp
12329 This feature is not enabled by default.  Specifying
12330 \&\fB\-mno\-long\-calls\fR restores the default behavior, as does
12331 placing the function calls within the scope of a \f(CW\*(C`#pragma
12332 long_calls_off\*(C'\fR directive.  Note these switches have no effect on how
12333 the compiler generates code to handle function calls via function
12334 pointers.
12335 .IP "\fB\-msingle\-pic\-base\fR" 4
12336 .IX Item "-msingle-pic-base"
12337 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
12338 loading it in the prologue for each function.  The runtime system is
12339 responsible for initializing this register with an appropriate value
12340 before execution begins.
12341 .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
12342 .IX Item "-mpic-register=reg"
12343 Specify the register to be used for \s-1PIC\s0 addressing.
12344 For standard \s-1PIC\s0 base case, the default is any suitable register
12345 determined by compiler.  For single \s-1PIC\s0 base case, the default is
12346 \&\fBR9\fR if target is \s-1EABI\s0 based or stack-checking is enabled,
12347 otherwise the default is \fBR10\fR.
12348 .IP "\fB\-mpic\-data\-is\-text\-relative\fR" 4
12349 .IX Item "-mpic-data-is-text-relative"
12350 Assume that each data segments are relative to text segment at load time.
12351 Therefore, it permits addressing data using PC-relative operations.
12352 This option is on by default for targets other than VxWorks \s-1RTP\s0.
12353 .IP "\fB\-mpoke\-function\-name\fR" 4
12354 .IX Item "-mpoke-function-name"
12355 Write the name of each function into the text section, directly
12356 preceding the function prologue.  The generated code is similar to this:
12357 .Sp
12358 .Vb 9
12359 \&             t0
12360 \&                 .ascii "arm_poke_function_name", 0
12361 \&                 .align
12362 \&             t1
12363 \&                 .word 0xff000000 + (t1 \- t0)
12364 \&             arm_poke_function_name
12365 \&                 mov     ip, sp
12366 \&                 stmfd   sp!, {fp, ip, lr, pc}
12367 \&                 sub     fp, ip, #4
12368 .Ve
12369 .Sp
12370 When performing a stack backtrace, code can inspect the value of
12371 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
12372 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
12373 there is a function name embedded immediately preceding this location
12374 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
12375 .IP "\fB\-mthumb\fR" 4
12376 .IX Item "-mthumb"
12377 .PD 0
12378 .IP "\fB\-marm\fR" 4
12379 .IX Item "-marm"
12380 .PD
12381 Select between generating code that executes in \s-1ARM\s0 and Thumb
12382 states.  The default for most configurations is to generate code
12383 that executes in \s-1ARM\s0 state, but the default can be changed by
12384 configuring \s-1GCC\s0 with the \fB\-\-with\-mode=\fR\fIstate\fR
12385 configure option.
12386 .IP "\fB\-mtpcs\-frame\fR" 4
12387 .IX Item "-mtpcs-frame"
12388 Generate a stack frame that is compliant with the Thumb Procedure Call
12389 Standard for all non-leaf functions.  (A leaf function is one that does
12390 not call any other functions.)  The default is \fB\-mno\-tpcs\-frame\fR.
12391 .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
12392 .IX Item "-mtpcs-leaf-frame"
12393 Generate a stack frame that is compliant with the Thumb Procedure Call
12394 Standard for all leaf functions.  (A leaf function is one that does
12395 not call any other functions.)  The default is \fB\-mno\-apcs\-leaf\-frame\fR.
12396 .IP "\fB\-mcallee\-super\-interworking\fR" 4
12397 .IX Item "-mcallee-super-interworking"
12398 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
12399 instruction set header which switches to Thumb mode before executing the
12400 rest of the function.  This allows these functions to be called from
12401 non-interworking code.  This option is not valid in \s-1AAPCS\s0 configurations
12402 because interworking is enabled by default.
12403 .IP "\fB\-mcaller\-super\-interworking\fR" 4
12404 .IX Item "-mcaller-super-interworking"
12405 Allows calls via function pointers (including virtual functions) to
12406 execute correctly regardless of whether the target code has been
12407 compiled for interworking or not.  There is a small overhead in the cost
12408 of executing a function pointer if this option is enabled.  This option
12409 is not valid in \s-1AAPCS\s0 configurations because interworking is enabled
12410 by default.
12411 .IP "\fB\-mtp=\fR\fIname\fR" 4
12412 .IX Item "-mtp=name"
12413 Specify the access model for the thread local storage pointer.  The valid
12414 models are \fBsoft\fR, which generates calls to \f(CW\*(C`_\|_aeabi_read_tp\*(C'\fR,
12415 \&\fBcp15\fR, which fetches the thread pointer from \f(CW\*(C`cp15\*(C'\fR directly
12416 (supported in the arm6k architecture), and \fBauto\fR, which uses the
12417 best available method for the selected processor.  The default setting is
12418 \&\fBauto\fR.
12419 .IP "\fB\-mtls\-dialect=\fR\fIdialect\fR" 4
12420 .IX Item "-mtls-dialect=dialect"
12421 Specify the dialect to use for accessing thread local storage.  Two
12422 \&\fIdialect\fRs are supported\-\-\-\fBgnu\fR and \fBgnu2\fR.  The
12423 \&\fBgnu\fR dialect selects the original \s-1GNU\s0 scheme for supporting
12424 local and global dynamic \s-1TLS\s0 models.  The \fBgnu2\fR dialect
12425 selects the \s-1GNU\s0 descriptor scheme, which provides better performance
12426 for shared libraries.  The \s-1GNU\s0 descriptor scheme is compatible with
12427 the original scheme, but does require new assembler, linker and
12428 library support.  Initial and local exec \s-1TLS\s0 models are unaffected by
12429 this option and always use the original scheme.
12430 .IP "\fB\-mword\-relocations\fR" 4
12431 .IX Item "-mword-relocations"
12432 Only generate absolute relocations on word-sized values (i.e. R_ARM_ABS32).
12433 This is enabled by default on targets (uClinux, SymbianOS) where the runtime
12434 loader imposes this restriction, and when \fB\-fpic\fR or \fB\-fPIC\fR
12435 is specified.
12436 .IP "\fB\-mfix\-cortex\-m3\-ldrd\fR" 4
12437 .IX Item "-mfix-cortex-m3-ldrd"
12438 Some Cortex\-M3 cores can cause data corruption when \f(CW\*(C`ldrd\*(C'\fR instructions
12439 with overlapping destination and base registers are used.  This option avoids
12440 generating these instructions.  This option is enabled by default when
12441 \&\fB\-mcpu=cortex\-m3\fR is specified.
12442 .IP "\fB\-munaligned\-access\fR" 4
12443 .IX Item "-munaligned-access"
12444 .PD 0
12445 .IP "\fB\-mno\-unaligned\-access\fR" 4
12446 .IX Item "-mno-unaligned-access"
12447 .PD
12448 Enables (or disables) reading and writing of 16\- and 32\- bit values
12449 from addresses that are not 16\- or 32\- bit aligned.  By default
12450 unaligned access is disabled for all pre\-ARMv6 and all ARMv6\-M
12451 architectures, and enabled for all other architectures.  If unaligned
12452 access is not enabled then words in packed data structures are
12453 accessed a byte at a time.
12454 .Sp
12455 The \s-1ARM\s0 attribute \f(CW\*(C`Tag_CPU_unaligned_access\*(C'\fR is set in the
12456 generated object file to either true or false, depending upon the
12457 setting of this option.  If unaligned access is enabled then the
12458 preprocessor symbol \f(CW\*(C`_\|_ARM_FEATURE_UNALIGNED\*(C'\fR is also
12459 defined.
12460 .IP "\fB\-mneon\-for\-64bits\fR" 4
12461 .IX Item "-mneon-for-64bits"
12462 Enables using Neon to handle scalar 64\-bits operations. This is
12463 disabled by default since the cost of moving data from core registers
12464 to Neon is high.
12465 .IP "\fB\-mslow\-flash\-data\fR" 4
12466 .IX Item "-mslow-flash-data"
12467 Assume loading data from flash is slower than fetching instruction.
12468 Therefore literal load is minimized for better performance.
12469 This option is only supported when compiling for ARMv7 M\-profile and
12470 off by default.
12471 .IP "\fB\-masm\-syntax\-unified\fR" 4
12472 .IX Item "-masm-syntax-unified"
12473 Assume inline assembler is using unified asm syntax.  The default is
12474 currently off which implies divided syntax.  Currently this option is
12475 available only for Thumb1 and has no effect on \s-1ARM\s0 state and Thumb2.
12476 However, this may change in future releases of \s-1GCC\s0.  Divided syntax
12477 should be considered deprecated.
12478 .IP "\fB\-mrestrict\-it\fR" 4
12479 .IX Item "-mrestrict-it"
12480 Restricts generation of \s-1IT\s0 blocks to conform to the rules of ARMv8.
12481 \&\s-1IT\s0 blocks can only contain a single 16\-bit instruction from a select
12482 set of instructions. This option is on by default for ARMv8 Thumb mode.
12483 .IP "\fB\-mprint\-tune\-info\fR" 4
12484 .IX Item "-mprint-tune-info"
12485 Print \s-1CPU\s0 tuning information as comment in assembler file.  This is
12486 an option used only for regression testing of the compiler and not
12487 intended for ordinary use in compiling code.  This option is disabled
12488 by default.
12489 .PP
12490 \fI\s-1AVR\s0 Options\fR
12491 .IX Subsection "AVR Options"
12492 .PP
12493 These options are defined for \s-1AVR\s0 implementations:
12494 .IP "\fB\-mmcu=\fR\fImcu\fR" 4
12495 .IX Item "-mmcu=mcu"
12496 Specify Atmel \s-1AVR\s0 instruction set architectures (\s-1ISA\s0) or \s-1MCU\s0 type.
12497 .Sp
12498 The default for this option is@tie{}\fBavr2\fR.
12499 .Sp
12500 \&\s-1GCC\s0 supports the following \s-1AVR\s0 devices and ISAs:
12501 .RS 4
12502 .ie n .IP """avr2""" 4
12503 .el .IP "\f(CWavr2\fR" 4
12504 .IX Item "avr2"
12505 \&\*(L"Classic\*(R" devices with up to 8@tie{}KiB of program memory.
12506 \&\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.
12507 .ie n .IP """avr25""" 4
12508 .el .IP "\f(CWavr25\fR" 4
12509 .IX Item "avr25"
12510 \&\*(L"Classic\*(R" devices with up to 8@tie{}KiB of program memory and with the \f(CW\*(C`MOVW\*(C'\fR instruction.
12511 \&\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.
12512 .ie n .IP """avr3""" 4
12513 .el .IP "\f(CWavr3\fR" 4
12514 .IX Item "avr3"
12515 \&\*(L"Classic\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of  program memory.
12516 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`at43usb355\*(C'\fR, \f(CW\*(C`at76c711\*(C'\fR.
12517 .ie n .IP """avr31""" 4
12518 .el .IP "\f(CWavr31\fR" 4
12519 .IX Item "avr31"
12520 \&\*(L"Classic\*(R" devices with 128@tie{}KiB of program memory.
12521 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atmega103\*(C'\fR, \f(CW\*(C`at43usb320\*(C'\fR.
12522 .ie n .IP """avr35""" 4
12523 .el .IP "\f(CWavr35\fR" 4
12524 .IX Item "avr35"
12525 \&\*(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.
12526 \&\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.
12527 .ie n .IP """avr4""" 4
12528 .el .IP "\f(CWavr4\fR" 4
12529 .IX Item "avr4"
12530 \&\*(L"Enhanced\*(R" devices with up to 8@tie{}KiB of program memory.
12531 \&\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.
12532 .ie n .IP """avr5""" 4
12533 .el .IP "\f(CWavr5\fR" 4
12534 .IX Item "avr5"
12535 \&\*(L"Enhanced\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of program memory.
12536 \&\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.
12537 .ie n .IP """avr51""" 4
12538 .el .IP "\f(CWavr51\fR" 4
12539 .IX Item "avr51"
12540 \&\*(L"Enhanced\*(R" devices with 128@tie{}KiB of program memory.
12541 \&\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.
12542 .ie n .IP """avr6""" 4
12543 .el .IP "\f(CWavr6\fR" 4
12544 .IX Item "avr6"
12545 \&\*(L"Enhanced\*(R" devices with 3\-byte \s-1PC\s0, i.e. with more than 128@tie{}KiB of program memory.
12546 \&\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.
12547 .ie n .IP """avrxmega2""" 4
12548 .el .IP "\f(CWavrxmega2\fR" 4
12549 .IX Item "avrxmega2"
12550 \&\*(L"\s-1XMEGA\s0\*(R" devices with more than 8@tie{}KiB and up to 64@tie{}KiB of program memory.
12551 \&\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.
12552 .ie n .IP """avrxmega4""" 4
12553 .el .IP "\f(CWavrxmega4\fR" 4
12554 .IX Item "avrxmega4"
12555 \&\*(L"\s-1XMEGA\s0\*(R" devices with more than 64@tie{}KiB and up to 128@tie{}KiB of program memory.
12556 \&\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.
12557 .ie n .IP """avrxmega5""" 4
12558 .el .IP "\f(CWavrxmega5\fR" 4
12559 .IX Item "avrxmega5"
12560 \&\*(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.
12561 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega64a1\*(C'\fR, \f(CW\*(C`atxmega64a1u\*(C'\fR.
12562 .ie n .IP """avrxmega6""" 4
12563 .el .IP "\f(CWavrxmega6\fR" 4
12564 .IX Item "avrxmega6"
12565 \&\*(L"\s-1XMEGA\s0\*(R" devices with more than 128@tie{}KiB of program memory.
12566 \&\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.
12567 .ie n .IP """avrxmega7""" 4
12568 .el .IP "\f(CWavrxmega7\fR" 4
12569 .IX Item "avrxmega7"
12570 \&\*(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.
12571 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega128a1\*(C'\fR, \f(CW\*(C`atxmega128a1u\*(C'\fR, \f(CW\*(C`atxmega128a4u\*(C'\fR.
12572 .ie n .IP """avrtiny""" 4
12573 .el .IP "\f(CWavrtiny\fR" 4
12574 .IX Item "avrtiny"
12575 \&\*(L"\s-1TINY\s0\*(R" Tiny core devices with 512@tie{}B up to 4@tie{}KiB of program memory.
12576 \&\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.
12577 .ie n .IP """avr1""" 4
12578 .el .IP "\f(CWavr1\fR" 4
12579 .IX Item "avr1"
12580 This \s-1ISA\s0 is implemented by the minimal \s-1AVR\s0 core and supported for assembler only.
12581 \&\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.
12582 .RE
12583 .RS 4
12584 .RE
12585 .IP "\fB\-maccumulate\-args\fR" 4
12586 .IX Item "-maccumulate-args"
12587 Accumulate outgoing function arguments and acquire/release the needed
12588 stack space for outgoing function arguments once in function
12589 prologue/epilogue.  Without this option, outgoing arguments are pushed
12590 before calling a function and popped afterwards.
12591 .Sp
12592 Popping the arguments after the function call can be expensive on
12593 \&\s-1AVR\s0 so that accumulating the stack space might lead to smaller
12594 executables because arguments need not to be removed from the
12595 stack after such a function call.
12596 .Sp
12597 This option can lead to reduced code size for functions that perform
12598 several calls to functions that get their arguments on the stack like
12599 calls to printf-like functions.
12600 .IP "\fB\-mbranch\-cost=\fR\fIcost\fR" 4
12601 .IX Item "-mbranch-cost=cost"
12602 Set the branch costs for conditional branch instructions to
12603 \&\fIcost\fR.  Reasonable values for \fIcost\fR are small, non-negative
12604 integers. The default branch cost is 0.
12605 .IP "\fB\-mcall\-prologues\fR" 4
12606 .IX Item "-mcall-prologues"
12607 Functions prologues/epilogues are expanded as calls to appropriate
12608 subroutines.  Code size is smaller.
12609 .IP "\fB\-mint8\fR" 4
12610 .IX Item "-mint8"
12611 Assume \f(CW\*(C`int\*(C'\fR to be 8\-bit integer.  This affects the sizes of all types: a
12612 \&\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,
12613 and \f(CW\*(C`long long\*(C'\fR is 4 bytes.  Please note that this option does not
12614 conform to the C standards, but it results in smaller code
12615 size.
12616 .IP "\fB\-mn\-flash=\fR\fInum\fR" 4
12617 .IX Item "-mn-flash=num"
12618 Assume that the flash memory has a size of 
12619 \&\fInum\fR times 64@tie{}KiB.
12620 .IP "\fB\-mno\-interrupts\fR" 4
12621 .IX Item "-mno-interrupts"
12622 Generated code is not compatible with hardware interrupts.
12623 Code size is smaller.
12624 .IP "\fB\-mrelax\fR" 4
12625 .IX Item "-mrelax"
12626 Try to replace \f(CW\*(C`CALL\*(C'\fR resp. \f(CW\*(C`JMP\*(C'\fR instruction by the shorter
12627 \&\f(CW\*(C`RCALL\*(C'\fR resp. \f(CW\*(C`RJMP\*(C'\fR instruction if applicable.
12628 Setting \fB\-mrelax\fR just adds the \fB\-\-mlink\-relax\fR option to
12629 the assembler's command line and the \fB\-\-relax\fR option to the
12630 linker's command line.
12631 .Sp
12632 Jump relaxing is performed by the linker because jump offsets are not
12633 known before code is located. Therefore, the assembler code generated by the
12634 compiler is the same, but the instructions in the executable may
12635 differ from instructions in the assembler code.
12636 .Sp
12637 Relaxing must be turned on if linker stubs are needed, see the
12638 section on \f(CW\*(C`EIND\*(C'\fR and linker stubs below.
12639 .IP "\fB\-mrmw\fR" 4
12640 .IX Item "-mrmw"
12641 Assume that the device supports the Read-Modify-Write
12642 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.
12643 .IP "\fB\-msp8\fR" 4
12644 .IX Item "-msp8"
12645 Treat the stack pointer register as an 8\-bit register,
12646 i.e. assume the high byte of the stack pointer is zero.
12647 In general, you don't need to set this option by hand.
12648 .Sp
12649 This option is used internally by the compiler to select and
12650 build multilibs for architectures \f(CW\*(C`avr2\*(C'\fR and \f(CW\*(C`avr25\*(C'\fR.
12651 These architectures mix devices with and without \f(CW\*(C`SPH\*(C'\fR.
12652 For any setting other than \fB\-mmcu=avr2\fR or \fB\-mmcu=avr25\fR
12653 the compiler driver adds or removes this option from the compiler
12654 proper's command line, because the compiler then knows if the device
12655 or architecture has an 8\-bit stack pointer and thus no \f(CW\*(C`SPH\*(C'\fR
12656 register or not.
12657 .IP "\fB\-mstrict\-X\fR" 4
12658 .IX Item "-mstrict-X"
12659 Use address register \f(CW\*(C`X\*(C'\fR in a way proposed by the hardware.  This means
12660 that \f(CW\*(C`X\*(C'\fR is only used in indirect, post-increment or
12661 pre-decrement addressing.
12662 .Sp
12663 Without this option, the \f(CW\*(C`X\*(C'\fR register may be used in the same way
12664 as \f(CW\*(C`Y\*(C'\fR or \f(CW\*(C`Z\*(C'\fR which then is emulated by additional
12665 instructions.  
12666 For example, loading a value with \f(CW\*(C`X+const\*(C'\fR addressing with a
12667 small non-negative \f(CW\*(C`const < 64\*(C'\fR to a register \fIRn\fR is
12668 performed as
12669 .Sp
12670 .Vb 3
12671 \&        adiw r26, const   ; X += const
12672 \&        ld   <Rn>, X        ; <Rn> = *X
12673 \&        sbiw r26, const   ; X \-= const
12674 .Ve
12675 .IP "\fB\-mtiny\-stack\fR" 4
12676 .IX Item "-mtiny-stack"
12677 Only change the lower 8@tie{}bits of the stack pointer.
12678 .IP "\fB\-nodevicelib\fR" 4
12679 .IX Item "-nodevicelib"
12680 Don't link against AVR-LibC's device specific library \f(CW\*(C`libdev.a\*(C'\fR.
12681 .IP "\fB\-Waddr\-space\-convert\fR" 4
12682 .IX Item "-Waddr-space-convert"
12683 Warn about conversions between address spaces in the case where the
12684 resulting address space is not contained in the incoming address space.
12685 .PP
12686 \f(CW\*(C`EIND\*(C'\fR and Devices with More Than 128 Ki Bytes of Flash
12687 .IX Subsection "EIND and Devices with More Than 128 Ki Bytes of Flash"
12688 .PP
12689 Pointers in the implementation are 16@tie{}bits wide.
12690 The address of a function or label is represented as word address so
12691 that indirect jumps and calls can target any code address in the
12692 range of 64@tie{}Ki words.
12693 .PP
12694 In order to facilitate indirect jump on devices with more than 128@tie{}Ki
12695 bytes of program memory space, there is a special function register called
12696 \&\f(CW\*(C`EIND\*(C'\fR that serves as most significant part of the target address
12697 when \f(CW\*(C`EICALL\*(C'\fR or \f(CW\*(C`EIJMP\*(C'\fR instructions are used.
12698 .PP
12699 Indirect jumps and calls on these devices are handled as follows by
12700 the compiler and are subject to some limitations:
12701 .IP "*" 4
12702 The compiler never sets \f(CW\*(C`EIND\*(C'\fR.
12703 .IP "*" 4
12704 The compiler uses \f(CW\*(C`EIND\*(C'\fR implicitely in \f(CW\*(C`EICALL\*(C'\fR/\f(CW\*(C`EIJMP\*(C'\fR
12705 instructions or might read \f(CW\*(C`EIND\*(C'\fR directly in order to emulate an
12706 indirect call/jump by means of a \f(CW\*(C`RET\*(C'\fR instruction.
12707 .IP "*" 4
12708 The compiler assumes that \f(CW\*(C`EIND\*(C'\fR never changes during the startup
12709 code or during the application. In particular, \f(CW\*(C`EIND\*(C'\fR is not
12710 saved/restored in function or interrupt service routine
12711 prologue/epilogue.
12712 .IP "*" 4
12713 For indirect calls to functions and computed goto, the linker
12714 generates \fIstubs\fR. Stubs are jump pads sometimes also called
12715 \&\fItrampolines\fR. Thus, the indirect call/jump jumps to such a stub.
12716 The stub contains a direct jump to the desired address.
12717 .IP "*" 4
12718 Linker relaxation must be turned on so that the linker generates
12719 the stubs correctly in all situations. See the compiler option
12720 \&\fB\-mrelax\fR and the linker option \fB\-\-relax\fR.
12721 There are corner cases where the linker is supposed to generate stubs
12722 but aborts without relaxation and without a helpful error message.
12723 .IP "*" 4
12724 The default linker script is arranged for code with \f(CW\*(C`EIND = 0\*(C'\fR.
12725 If code is supposed to work for a setup with \f(CW\*(C`EIND != 0\*(C'\fR, a custom
12726 linker script has to be used in order to place the sections whose
12727 name start with \f(CW\*(C`.trampolines\*(C'\fR into the segment where \f(CW\*(C`EIND\*(C'\fR
12728 points to.
12729 .IP "*" 4
12730 The startup code from libgcc never sets \f(CW\*(C`EIND\*(C'\fR.
12731 Notice that startup code is a blend of code from libgcc and AVR-LibC.
12732 For the impact of AVR-LibC on \f(CW\*(C`EIND\*(C'\fR, see the
12733 AVR-LibC\ user\ manual (\f(CW\*(C`http://nongnu.org/avr\-libc/user\-manual/\*(C'\fR).
12734 .IP "*" 4
12735 It is legitimate for user-specific startup code to set up \f(CW\*(C`EIND\*(C'\fR
12736 early, for example by means of initialization code located in
12737 section \f(CW\*(C`.init3\*(C'\fR. Such code runs prior to general startup code
12738 that initializes \s-1RAM\s0 and calls constructors, but after the bit
12739 of startup code from AVR-LibC that sets \f(CW\*(C`EIND\*(C'\fR to the segment
12740 where the vector table is located.
12741 .Sp
12742 .Vb 1
12743 \&        #include <avr/io.h>
12744 \&        
12745 \&        static void
12746 \&        _\|_attribute_\|_((section(".init3"),naked,used,no_instrument_function))
12747 \&        init3_set_eind (void)
12748 \&        {
12749 \&          _\|_asm volatile ("ldi r24,pm_hh8(_\|_trampolines_start)\en\et"
12750 \&                          "out %i0,r24" :: "n" (&EIND) : "r24","memory");
12751 \&        }
12752 .Ve
12753 .Sp
12754 The \f(CW\*(C`_\|_trampolines_start\*(C'\fR symbol is defined in the linker script.
12755 .IP "*" 4
12756 Stubs are generated automatically by the linker if
12757 the following two conditions are met:
12758 .RS 4
12759 .ie n .IP "\-<The address of a label is taken by means of the ""gs"" modifier>" 4
12760 .el .IP "\-<The address of a label is taken by means of the \f(CWgs\fR modifier>" 4
12761 .IX Item "-<The address of a label is taken by means of the gs modifier>"
12762 (short for \fIgenerate stubs\fR) like so:
12763 .Sp
12764 .Vb 2
12765 \&        LDI r24, lo8(gs(<func>))
12766 \&        LDI r25, hi8(gs(<func>))
12767 .Ve
12768 .IP "\-<The final location of that label is in a code segment>" 4
12769 .IX Item "-<The final location of that label is in a code segment>"
12770 \&\fIoutside\fR the segment where the stubs are located.
12771 .RE
12772 .RS 4
12773 .RE
12774 .IP "*" 4
12775 The compiler emits such \f(CW\*(C`gs\*(C'\fR modifiers for code labels in the
12776 following situations:
12777 .RS 4
12778 .IP "\-<Taking address of a function or code label.>" 4
12779 .IX Item "-<Taking address of a function or code label.>"
12780 .PD 0
12781 .IP "\-<Computed goto.>" 4
12782 .IX Item "-<Computed goto.>"
12783 .IP "\-<If prologue-save function is used, see \fB\-mcall\-prologues\fR>" 4
12784 .IX Item "-<If prologue-save function is used, see -mcall-prologues>"
12785 .PD
12786 command-line option.
12787 .IP "\-<Switch/case dispatch tables. If you do not want such dispatch>" 4
12788 .IX Item "-<Switch/case dispatch tables. If you do not want such dispatch>"
12789 tables you can specify the \fB\-fno\-jump\-tables\fR command-line option.
12790 .IP "\-<C and \*(C+ constructors/destructors called during startup/shutdown.>" 4
12791 .IX Item "-<C and  constructors/destructors called during startup/shutdown.>"
12792 .PD 0
12793 .ie n .IP "\-<If the tools hit a ""gs()"" modifier explained above.>" 4
12794 .el .IP "\-<If the tools hit a \f(CWgs()\fR modifier explained above.>" 4
12795 .IX Item "-<If the tools hit a gs() modifier explained above.>"
12796 .RE
12797 .RS 4
12798 .RE
12799 .IP "*" 4
12800 .PD
12801 Jumping to non-symbolic addresses like so is \fInot\fR supported:
12802 .Sp
12803 .Vb 5
12804 \&        int main (void)
12805 \&        {
12806 \&            /* Call function at word address 0x2 */
12807 \&            return ((int(*)(void)) 0x2)();
12808 \&        }
12809 .Ve
12810 .Sp
12811 Instead, a stub has to be set up, i.e. the function has to be called
12812 through a symbol (\f(CW\*(C`func_4\*(C'\fR in the example):
12813 .Sp
12814 .Vb 3
12815 \&        int main (void)
12816 \&        {
12817 \&            extern int func_4 (void);
12818 \&        
12819 \&            /* Call function at byte address 0x4 */
12820 \&            return func_4();
12821 \&        }
12822 .Ve
12823 .Sp
12824 and the application be linked with \fB\-Wl,\-\-defsym,func_4=0x4\fR.
12825 Alternatively, \f(CW\*(C`func_4\*(C'\fR can be defined in the linker script.
12826 .PP
12827 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
12828 .IX Subsection "Handling of the RAMPD, RAMPX, RAMPY and RAMPZ Special Function Registers"
12829 .PP
12830 Some \s-1AVR\s0 devices support memories larger than the 64@tie{}KiB range
12831 that can be accessed with 16\-bit pointers.  To access memory locations
12832 outside this 64@tie{}KiB range, the contentent of a \f(CW\*(C`RAMP\*(C'\fR
12833 register is used as high part of the address:
12834 The \f(CW\*(C`X\*(C'\fR, \f(CW\*(C`Y\*(C'\fR, \f(CW\*(C`Z\*(C'\fR address register is concatenated
12835 with the \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR, \f(CW\*(C`RAMPZ\*(C'\fR special function
12836 register, respectively, to get a wide address. Similarly,
12837 \&\f(CW\*(C`RAMPD\*(C'\fR is used together with direct addressing.
12838 .IP "*" 4
12839 The startup code initializes the \f(CW\*(C`RAMP\*(C'\fR special function
12840 registers with zero.
12841 .IP "*" 4
12842 If a \fB\s-1AVR\s0 Named Address Spaces,named address space\fR other than
12843 generic or \f(CW\*(C`_\|_flash\*(C'\fR is used, then \f(CW\*(C`RAMPZ\*(C'\fR is set
12844 as needed before the operation.
12845 .IP "*" 4
12846 If the device supports \s-1RAM\s0 larger than 64@tie{}KiB and the compiler
12847 needs to change \f(CW\*(C`RAMPZ\*(C'\fR to accomplish an operation, \f(CW\*(C`RAMPZ\*(C'\fR
12848 is reset to zero after the operation.
12849 .IP "*" 4
12850 If the device comes with a specific \f(CW\*(C`RAMP\*(C'\fR register, the \s-1ISR\s0
12851 prologue/epilogue saves/restores that \s-1SFR\s0 and initializes it with
12852 zero in case the \s-1ISR\s0 code might (implicitly) use it.
12853 .IP "*" 4
12854 \&\s-1RAM\s0 larger than 64@tie{}KiB is not supported by \s-1GCC\s0 for \s-1AVR\s0 targets.
12855 If you use inline assembler to read from locations outside the
12856 16\-bit address range and change one of the \f(CW\*(C`RAMP\*(C'\fR registers,
12857 you must reset it to zero after the access.
12858 .PP
12859 \s-1AVR\s0 Built-in Macros
12860 .IX Subsection "AVR Built-in Macros"
12861 .PP
12862 \&\s-1GCC\s0 defines several built-in macros so that the user code can test
12863 for the presence or absence of features.  Almost any of the following
12864 built-in macros are deduced from device capabilities and thus
12865 triggered by the \fB\-mmcu=\fR command-line option.
12866 .PP
12867 For even more AVR-specific built-in macros see
12868 \&\fB\s-1AVR\s0 Named Address Spaces\fR and \fB\s-1AVR\s0 Built-in Functions\fR.
12869 .ie n .IP """_\|_AVR_ARCH_\|_""" 4
12870 .el .IP "\f(CW_\|_AVR_ARCH_\|_\fR" 4
12871 .IX Item "__AVR_ARCH__"
12872 Build-in macro that resolves to a decimal number that identifies the
12873 architecture and depends on the \fB\-mmcu=\fR\fImcu\fR option.
12874 Possible values are:
12875 .Sp
12876 \&\f(CW2\fR, \f(CW25\fR, \f(CW3\fR, \f(CW31\fR, \f(CW35\fR,
12877 \&\f(CW4\fR, \f(CW5\fR, \f(CW51\fR, \f(CW6\fR
12878 .Sp
12879 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,
12880 \&\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,
12881 .Sp
12882 respectively and
12883 .Sp
12884 \&\f(CW100\fR, \f(CW102\fR, \f(CW104\fR,
12885 \&\f(CW105\fR, \f(CW106\fR, \f(CW107\fR
12886 .Sp
12887 for \fImcu\fR=\f(CW\*(C`avrtiny\*(C'\fR, \f(CW\*(C`avrxmega2\*(C'\fR, \f(CW\*(C`avrxmega4\*(C'\fR,
12888 \&\f(CW\*(C`avrxmega5\*(C'\fR, \f(CW\*(C`avrxmega6\*(C'\fR, \f(CW\*(C`avrxmega7\*(C'\fR, respectively.
12889 If \fImcu\fR specifies a device, this built-in macro is set
12890 accordingly. For example, with \fB\-mmcu=atmega8\fR the macro is
12891 defined to \f(CW4\fR.
12892 .ie n .IP """_\|_AVR_\f(CIDevice\f(CW_\|_""" 4
12893 .el .IP "\f(CW_\|_AVR_\f(CIDevice\f(CW_\|_\fR" 4
12894 .IX Item "__AVR_Device__"
12895 Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro which reflects
12896 the device's name. For example, \fB\-mmcu=atmega8\fR defines the
12897 built-in macro \f(CW\*(C`_\|_AVR_ATmega8_\|_\*(C'\fR, \fB\-mmcu=attiny261a\fR defines
12898 \&\f(CW\*(C`_\|_AVR_ATtiny261A_\|_\*(C'\fR, etc.
12899 .Sp
12900 The built-in macros' names follow
12901 the scheme \f(CW\*(C`_\|_AVR_\f(CIDevice\f(CW_\|_\*(C'\fR where \fIDevice\fR is
12902 the device name as from the \s-1AVR\s0 user manual. The difference between
12903 \&\fIDevice\fR in the built-in macro and \fIdevice\fR in
12904 \&\fB\-mmcu=\fR\fIdevice\fR is that the latter is always lowercase.
12905 .Sp
12906 If \fIdevice\fR is not a device but only a core architecture like
12907 \&\fBavr51\fR, this macro is not defined.
12908 .ie n .IP """_\|_AVR_DEVICE_NAME_\|_""" 4
12909 .el .IP "\f(CW_\|_AVR_DEVICE_NAME_\|_\fR" 4
12910 .IX Item "__AVR_DEVICE_NAME__"
12911 Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro to
12912 the device's name. For example, with \fB\-mmcu=atmega8\fR the macro
12913 is defined to \f(CW\*(C`atmega8\*(C'\fR.
12914 .Sp
12915 If \fIdevice\fR is not a device but only a core architecture like
12916 \&\fBavr51\fR, this macro is not defined.
12917 .ie n .IP """_\|_AVR_XMEGA_\|_""" 4
12918 .el .IP "\f(CW_\|_AVR_XMEGA_\|_\fR" 4
12919 .IX Item "__AVR_XMEGA__"
12920 The device / architecture belongs to the \s-1XMEGA\s0 family of devices.
12921 .ie n .IP """_\|_AVR_HAVE_ELPM_\|_""" 4
12922 .el .IP "\f(CW_\|_AVR_HAVE_ELPM_\|_\fR" 4
12923 .IX Item "__AVR_HAVE_ELPM__"
12924 The device has the the \f(CW\*(C`ELPM\*(C'\fR instruction.
12925 .ie n .IP """_\|_AVR_HAVE_ELPMX_\|_""" 4
12926 .el .IP "\f(CW_\|_AVR_HAVE_ELPMX_\|_\fR" 4
12927 .IX Item "__AVR_HAVE_ELPMX__"
12928 The device has the \f(CW\*(C`ELPM R\f(CIn\f(CW,Z\*(C'\fR and \f(CW\*(C`ELPM
12929 R\f(CIn\f(CW,Z+\*(C'\fR instructions.
12930 .ie n .IP """_\|_AVR_HAVE_MOVW_\|_""" 4
12931 .el .IP "\f(CW_\|_AVR_HAVE_MOVW_\|_\fR" 4
12932 .IX Item "__AVR_HAVE_MOVW__"
12933 The device has the \f(CW\*(C`MOVW\*(C'\fR instruction to perform 16\-bit
12934 register-register moves.
12935 .ie n .IP """_\|_AVR_HAVE_LPMX_\|_""" 4
12936 .el .IP "\f(CW_\|_AVR_HAVE_LPMX_\|_\fR" 4
12937 .IX Item "__AVR_HAVE_LPMX__"
12938 The device has the \f(CW\*(C`LPM R\f(CIn\f(CW,Z\*(C'\fR and
12939 \&\f(CW\*(C`LPM R\f(CIn\f(CW,Z+\*(C'\fR instructions.
12940 .ie n .IP """_\|_AVR_HAVE_MUL_\|_""" 4
12941 .el .IP "\f(CW_\|_AVR_HAVE_MUL_\|_\fR" 4
12942 .IX Item "__AVR_HAVE_MUL__"
12943 The device has a hardware multiplier.
12944 .ie n .IP """_\|_AVR_HAVE_JMP_CALL_\|_""" 4
12945 .el .IP "\f(CW_\|_AVR_HAVE_JMP_CALL_\|_\fR" 4
12946 .IX Item "__AVR_HAVE_JMP_CALL__"
12947 The device has the \f(CW\*(C`JMP\*(C'\fR and \f(CW\*(C`CALL\*(C'\fR instructions.
12948 This is the case for devices with at least 16@tie{}KiB of program
12949 memory.
12950 .ie n .IP """_\|_AVR_HAVE_EIJMP_EICALL_\|_""" 4
12951 .el .IP "\f(CW_\|_AVR_HAVE_EIJMP_EICALL_\|_\fR" 4
12952 .IX Item "__AVR_HAVE_EIJMP_EICALL__"
12953 .PD 0
12954 .ie n .IP """_\|_AVR_3_BYTE_PC_\|_""" 4
12955 .el .IP "\f(CW_\|_AVR_3_BYTE_PC_\|_\fR" 4
12956 .IX Item "__AVR_3_BYTE_PC__"
12957 .PD
12958 The device has the \f(CW\*(C`EIJMP\*(C'\fR and \f(CW\*(C`EICALL\*(C'\fR instructions.
12959 This is the case for devices with more than 128@tie{}KiB of program memory.
12960 This also means that the program counter
12961 (\s-1PC\s0) is 3@tie{}bytes wide.
12962 .ie n .IP """_\|_AVR_2_BYTE_PC_\|_""" 4
12963 .el .IP "\f(CW_\|_AVR_2_BYTE_PC_\|_\fR" 4
12964 .IX Item "__AVR_2_BYTE_PC__"
12965 The program counter (\s-1PC\s0) is 2@tie{}bytes wide. This is the case for devices
12966 with up to 128@tie{}KiB of program memory.
12967 .ie n .IP """_\|_AVR_HAVE_8BIT_SP_\|_""" 4
12968 .el .IP "\f(CW_\|_AVR_HAVE_8BIT_SP_\|_\fR" 4
12969 .IX Item "__AVR_HAVE_8BIT_SP__"
12970 .PD 0
12971 .ie n .IP """_\|_AVR_HAVE_16BIT_SP_\|_""" 4
12972 .el .IP "\f(CW_\|_AVR_HAVE_16BIT_SP_\|_\fR" 4
12973 .IX Item "__AVR_HAVE_16BIT_SP__"
12974 .PD
12975 The stack pointer (\s-1SP\s0) register is treated as 8\-bit respectively
12976 16\-bit register by the compiler.
12977 The definition of these macros is affected by \fB\-mtiny\-stack\fR.
12978 .ie n .IP """_\|_AVR_HAVE_SPH_\|_""" 4
12979 .el .IP "\f(CW_\|_AVR_HAVE_SPH_\|_\fR" 4
12980 .IX Item "__AVR_HAVE_SPH__"
12981 .PD 0
12982 .ie n .IP """_\|_AVR_SP8_\|_""" 4
12983 .el .IP "\f(CW_\|_AVR_SP8_\|_\fR" 4
12984 .IX Item "__AVR_SP8__"
12985 .PD
12986 The device has the \s-1SPH\s0 (high part of stack pointer) special function
12987 register or has an 8\-bit stack pointer, respectively.
12988 The definition of these macros is affected by \fB\-mmcu=\fR and
12989 in the cases of \fB\-mmcu=avr2\fR and \fB\-mmcu=avr25\fR also
12990 by \fB\-msp8\fR.
12991 .ie n .IP """_\|_AVR_HAVE_RAMPD_\|_""" 4
12992 .el .IP "\f(CW_\|_AVR_HAVE_RAMPD_\|_\fR" 4
12993 .IX Item "__AVR_HAVE_RAMPD__"
12994 .PD 0
12995 .ie n .IP """_\|_AVR_HAVE_RAMPX_\|_""" 4
12996 .el .IP "\f(CW_\|_AVR_HAVE_RAMPX_\|_\fR" 4
12997 .IX Item "__AVR_HAVE_RAMPX__"
12998 .ie n .IP """_\|_AVR_HAVE_RAMPY_\|_""" 4
12999 .el .IP "\f(CW_\|_AVR_HAVE_RAMPY_\|_\fR" 4
13000 .IX Item "__AVR_HAVE_RAMPY__"
13001 .ie n .IP """_\|_AVR_HAVE_RAMPZ_\|_""" 4
13002 .el .IP "\f(CW_\|_AVR_HAVE_RAMPZ_\|_\fR" 4
13003 .IX Item "__AVR_HAVE_RAMPZ__"
13004 .PD
13005 The device has the \f(CW\*(C`RAMPD\*(C'\fR, \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR,
13006 \&\f(CW\*(C`RAMPZ\*(C'\fR special function register, respectively.
13007 .ie n .IP """_\|_NO_INTERRUPTS_\|_""" 4
13008 .el .IP "\f(CW_\|_NO_INTERRUPTS_\|_\fR" 4
13009 .IX Item "__NO_INTERRUPTS__"
13010 This macro reflects the \fB\-mno\-interrupts\fR command-line option.
13011 .ie n .IP """_\|_AVR_ERRATA_SKIP_\|_""" 4
13012 .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_\|_\fR" 4
13013 .IX Item "__AVR_ERRATA_SKIP__"
13014 .PD 0
13015 .ie n .IP """_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_""" 4
13016 .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_\fR" 4
13017 .IX Item "__AVR_ERRATA_SKIP_JMP_CALL__"
13018 .PD
13019 Some \s-1AVR\s0 devices (\s-1AT90S8515\s0, ATmega103) must not skip 32\-bit
13020 instructions because of a hardware erratum.  Skip instructions are
13021 \&\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.
13022 The second macro is only defined if \f(CW\*(C`_\|_AVR_HAVE_JMP_CALL_\|_\*(C'\fR is also
13023 set.
13024 .ie n .IP """_\|_AVR_ISA_RMW_\|_""" 4
13025 .el .IP "\f(CW_\|_AVR_ISA_RMW_\|_\fR" 4
13026 .IX Item "__AVR_ISA_RMW__"
13027 The device has Read-Modify-Write instructions (\s-1XCH\s0, \s-1LAC\s0, \s-1LAS\s0 and \s-1LAT\s0).
13028 .ie n .IP """_\|_AVR_SFR_OFFSET_\|_=\f(CIoffset\f(CW""" 4
13029 .el .IP "\f(CW_\|_AVR_SFR_OFFSET_\|_=\f(CIoffset\f(CW\fR" 4
13030 .IX Item "__AVR_SFR_OFFSET__=offset"
13031 Instructions that can address I/O special function registers directly
13032 like \f(CW\*(C`IN\*(C'\fR, \f(CW\*(C`OUT\*(C'\fR, \f(CW\*(C`SBI\*(C'\fR, etc. may use a different
13033 address as if addressed by an instruction to access \s-1RAM\s0 like \f(CW\*(C`LD\*(C'\fR
13034 or \f(CW\*(C`STS\*(C'\fR. This offset depends on the device architecture and has
13035 to be subtracted from the \s-1RAM\s0 address in order to get the
13036 respective I/O@tie{}address.
13037 .ie n .IP """_\|_WITH_AVRLIBC_\|_""" 4
13038 .el .IP "\f(CW_\|_WITH_AVRLIBC_\|_\fR" 4
13039 .IX Item "__WITH_AVRLIBC__"
13040 The compiler is configured to be used together with AVR-Libc.
13041 See the \fB\-\-with\-avrlibc\fR configure option.
13042 .PP
13043 \fIBlackfin Options\fR
13044 .IX Subsection "Blackfin Options"
13045 .IP "\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR]" 4
13046 .IX Item "-mcpu=cpu[-sirevision]"
13047 Specifies the name of the target Blackfin processor.  Currently, \fIcpu\fR
13048 can be one of \fBbf512\fR, \fBbf514\fR, \fBbf516\fR, \fBbf518\fR,
13049 \&\fBbf522\fR, \fBbf523\fR, \fBbf524\fR, \fBbf525\fR, \fBbf526\fR,
13050 \&\fBbf527\fR, \fBbf531\fR, \fBbf532\fR, \fBbf533\fR,
13051 \&\fBbf534\fR, \fBbf536\fR, \fBbf537\fR, \fBbf538\fR, \fBbf539\fR,
13052 \&\fBbf542\fR, \fBbf544\fR, \fBbf547\fR, \fBbf548\fR, \fBbf549\fR,
13053 \&\fBbf542m\fR, \fBbf544m\fR, \fBbf547m\fR, \fBbf548m\fR, \fBbf549m\fR,
13054 \&\fBbf561\fR, \fBbf592\fR.
13055 .Sp
13056 The optional \fIsirevision\fR specifies the silicon revision of the target
13057 Blackfin processor.  Any workarounds available for the targeted silicon revision
13058 are enabled.  If \fIsirevision\fR is \fBnone\fR, no workarounds are enabled.
13059 If \fIsirevision\fR is \fBany\fR, all workarounds for the targeted processor
13060 are enabled.  The \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR macro is defined to two
13061 hexadecimal digits representing the major and minor numbers in the silicon
13062 revision.  If \fIsirevision\fR is \fBnone\fR, the \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR
13063 is not defined.  If \fIsirevision\fR is \fBany\fR, the
13064 \&\f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR is defined to be \f(CW0xffff\fR.
13065 If this optional \fIsirevision\fR is not used, \s-1GCC\s0 assumes the latest known
13066 silicon revision of the targeted Blackfin processor.
13067 .Sp
13068 \&\s-1GCC\s0 defines a preprocessor macro for the specified \fIcpu\fR.
13069 For the \fBbfin-elf\fR toolchain, this option causes the hardware \s-1BSP\s0
13070 provided by libgloss to be linked in if \fB\-msim\fR is not given.
13071 .Sp
13072 Without this option, \fBbf532\fR is used as the processor by default.
13073 .Sp
13074 Note that support for \fBbf561\fR is incomplete.  For \fBbf561\fR,
13075 only the preprocessor macro is defined.
13076 .IP "\fB\-msim\fR" 4
13077 .IX Item "-msim"
13078 Specifies that the program will be run on the simulator.  This causes
13079 the simulator \s-1BSP\s0 provided by libgloss to be linked in.  This option
13080 has effect only for \fBbfin-elf\fR toolchain.
13081 Certain other options, such as \fB\-mid\-shared\-library\fR and
13082 \&\fB\-mfdpic\fR, imply \fB\-msim\fR.
13083 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
13084 .IX Item "-momit-leaf-frame-pointer"
13085 Don't keep the frame pointer in a register for leaf functions.  This
13086 avoids the instructions to save, set up and restore frame pointers and
13087 makes an extra register available in leaf functions.  The option
13088 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions,
13089 which might make debugging harder.
13090 .IP "\fB\-mspecld\-anomaly\fR" 4
13091 .IX Item "-mspecld-anomaly"
13092 When enabled, the compiler ensures that the generated code does not
13093 contain speculative loads after jump instructions. If this option is used,
13094 \&\f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_LOADS\*(C'\fR is defined.
13095 .IP "\fB\-mno\-specld\-anomaly\fR" 4
13096 .IX Item "-mno-specld-anomaly"
13097 Don't generate extra code to prevent speculative loads from occurring.
13098 .IP "\fB\-mcsync\-anomaly\fR" 4
13099 .IX Item "-mcsync-anomaly"
13100 When enabled, the compiler ensures that the generated code does not
13101 contain \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions too soon after conditional branches.
13102 If this option is used, \f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_SYNCS\*(C'\fR is defined.
13103 .IP "\fB\-mno\-csync\-anomaly\fR" 4
13104 .IX Item "-mno-csync-anomaly"
13105 Don't generate extra code to prevent \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions from
13106 occurring too soon after a conditional branch.
13107 .IP "\fB\-mlow\-64k\fR" 4
13108 .IX Item "-mlow-64k"
13109 When enabled, the compiler is free to take advantage of the knowledge that
13110 the entire program fits into the low 64k of memory.
13111 .IP "\fB\-mno\-low\-64k\fR" 4
13112 .IX Item "-mno-low-64k"
13113 Assume that the program is arbitrarily large.  This is the default.
13114 .IP "\fB\-mstack\-check\-l1\fR" 4
13115 .IX Item "-mstack-check-l1"
13116 Do stack checking using information placed into L1 scratchpad memory by the
13117 uClinux kernel.
13118 .IP "\fB\-mid\-shared\-library\fR" 4
13119 .IX Item "-mid-shared-library"
13120 Generate code that supports shared libraries via the library \s-1ID\s0 method.
13121 This allows for execute in place and shared libraries in an environment
13122 without virtual memory management.  This option implies \fB\-fPIC\fR.
13123 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
13124 .IP "\fB\-mno\-id\-shared\-library\fR" 4
13125 .IX Item "-mno-id-shared-library"
13126 Generate code that doesn't assume ID-based shared libraries are being used.
13127 This is the default.
13128 .IP "\fB\-mleaf\-id\-shared\-library\fR" 4
13129 .IX Item "-mleaf-id-shared-library"
13130 Generate code that supports shared libraries via the library \s-1ID\s0 method,
13131 but assumes that this library or executable won't link against any other
13132 \&\s-1ID\s0 shared libraries.  That allows the compiler to use faster code for jumps
13133 and calls.
13134 .IP "\fB\-mno\-leaf\-id\-shared\-library\fR" 4
13135 .IX Item "-mno-leaf-id-shared-library"
13136 Do not assume that the code being compiled won't link against any \s-1ID\s0 shared
13137 libraries.  Slower code is generated for jump and call insns.
13138 .IP "\fB\-mshared\-library\-id=n\fR" 4
13139 .IX Item "-mshared-library-id=n"
13140 Specifies the identification number of the ID-based shared library being
13141 compiled.  Specifying a value of 0 generates more compact code; specifying
13142 other values forces the allocation of that number to the current
13143 library but is no more space\- or time-efficient than omitting this option.
13144 .IP "\fB\-msep\-data\fR" 4
13145 .IX Item "-msep-data"
13146 Generate code that allows the data segment to be located in a different
13147 area of memory from the text segment.  This allows for execute in place in
13148 an environment without virtual memory management by eliminating relocations
13149 against the text section.
13150 .IP "\fB\-mno\-sep\-data\fR" 4
13151 .IX Item "-mno-sep-data"
13152 Generate code that assumes that the data segment follows the text segment.
13153 This is the default.
13154 .IP "\fB\-mlong\-calls\fR" 4
13155 .IX Item "-mlong-calls"
13156 .PD 0
13157 .IP "\fB\-mno\-long\-calls\fR" 4
13158 .IX Item "-mno-long-calls"
13159 .PD
13160 Tells the compiler to perform function calls by first loading the
13161 address of the function into a register and then performing a subroutine
13162 call on this register.  This switch is needed if the target function
13163 lies outside of the 24\-bit addressing range of the offset-based
13164 version of subroutine call instruction.
13165 .Sp
13166 This feature is not enabled by default.  Specifying
13167 \&\fB\-mno\-long\-calls\fR restores the default behavior.  Note these
13168 switches have no effect on how the compiler generates code to handle
13169 function calls via function pointers.
13170 .IP "\fB\-mfast\-fp\fR" 4
13171 .IX Item "-mfast-fp"
13172 Link with the fast floating-point library. This library relaxes some of
13173 the \s-1IEEE\s0 floating-point standard's rules for checking inputs against
13174 Not-a-Number (\s-1NAN\s0), in the interest of performance.
13175 .IP "\fB\-minline\-plt\fR" 4
13176 .IX Item "-minline-plt"
13177 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
13178 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
13179 .IP "\fB\-mmulticore\fR" 4
13180 .IX Item "-mmulticore"
13181 Build a standalone application for multicore Blackfin processors. 
13182 This option causes proper start files and link scripts supporting 
13183 multicore to be used, and defines the macro \f(CW\*(C`_\|_BFIN_MULTICORE\*(C'\fR. 
13184 It can only be used with \fB\-mcpu=bf561\fR[\fB\-\fR\fIsirevision\fR].
13185 .Sp
13186 This option can be used with \fB\-mcorea\fR or \fB\-mcoreb\fR, which
13187 selects the one-application-per-core programming model.  Without
13188 \&\fB\-mcorea\fR or \fB\-mcoreb\fR, the single\-application/dual\-core
13189 programming model is used. In this model, the main function of Core B
13190 should be named as \f(CW\*(C`coreb_main\*(C'\fR.
13191 .Sp
13192 If this option is not used, the single-core application programming
13193 model is used.
13194 .IP "\fB\-mcorea\fR" 4
13195 .IX Item "-mcorea"
13196 Build a standalone application for Core A of \s-1BF561\s0 when using
13197 the one-application-per-core programming model. Proper start files
13198 and link scripts are used to support Core A, and the macro
13199 \&\f(CW\*(C`_\|_BFIN_COREA\*(C'\fR is defined.
13200 This option can only be used in conjunction with \fB\-mmulticore\fR.
13201 .IP "\fB\-mcoreb\fR" 4
13202 .IX Item "-mcoreb"
13203 Build a standalone application for Core B of \s-1BF561\s0 when using
13204 the one-application-per-core programming model. Proper start files
13205 and link scripts are used to support Core B, and the macro
13206 \&\f(CW\*(C`_\|_BFIN_COREB\*(C'\fR is defined. When this option is used, \f(CW\*(C`coreb_main\*(C'\fR
13207 should be used instead of \f(CW\*(C`main\*(C'\fR. 
13208 This option can only be used in conjunction with \fB\-mmulticore\fR.
13209 .IP "\fB\-msdram\fR" 4
13210 .IX Item "-msdram"
13211 Build a standalone application for \s-1SDRAM\s0. Proper start files and
13212 link scripts are used to put the application into \s-1SDRAM\s0, and the macro
13213 \&\f(CW\*(C`_\|_BFIN_SDRAM\*(C'\fR is defined.
13214 The loader should initialize \s-1SDRAM\s0 before loading the application.
13215 .IP "\fB\-micplb\fR" 4
13216 .IX Item "-micplb"
13217 Assume that ICPLBs are enabled at run time.  This has an effect on certain
13218 anomaly workarounds.  For Linux targets, the default is to assume ICPLBs
13219 are enabled; for standalone applications the default is off.
13220 .PP
13221 \fIC6X Options\fR
13222 .IX Subsection "C6X Options"
13223 .IP "\fB\-march=\fR\fIname\fR" 4
13224 .IX Item "-march=name"
13225 This specifies the name of the target architecture.  \s-1GCC\s0 uses this
13226 name to determine what kind of instructions it can emit when generating
13227 assembly code.  Permissible names are: \fBc62x\fR,
13228 \&\fBc64x\fR, \fBc64x+\fR, \fBc67x\fR, \fBc67x+\fR, \fBc674x\fR.
13229 .IP "\fB\-mbig\-endian\fR" 4
13230 .IX Item "-mbig-endian"
13231 Generate code for a big-endian target.
13232 .IP "\fB\-mlittle\-endian\fR" 4
13233 .IX Item "-mlittle-endian"
13234 Generate code for a little-endian target.  This is the default.
13235 .IP "\fB\-msim\fR" 4
13236 .IX Item "-msim"
13237 Choose startup files and linker script suitable for the simulator.
13238 .IP "\fB\-msdata=default\fR" 4
13239 .IX Item "-msdata=default"
13240 Put small global and static data in the \f(CW\*(C`.neardata\*(C'\fR section,
13241 which is pointed to by register \f(CW\*(C`B14\*(C'\fR.  Put small uninitialized
13242 global and static data in the \f(CW\*(C`.bss\*(C'\fR section, which is adjacent
13243 to the \f(CW\*(C`.neardata\*(C'\fR section.  Put small read-only data into the
13244 \&\f(CW\*(C`.rodata\*(C'\fR section.  The corresponding sections used for large
13245 pieces of data are \f(CW\*(C`.fardata\*(C'\fR, \f(CW\*(C`.far\*(C'\fR and \f(CW\*(C`.const\*(C'\fR.
13246 .IP "\fB\-msdata=all\fR" 4
13247 .IX Item "-msdata=all"
13248 Put all data, not just small objects, into the sections reserved for
13249 small data, and use addressing relative to the \f(CW\*(C`B14\*(C'\fR register to
13250 access them.
13251 .IP "\fB\-msdata=none\fR" 4
13252 .IX Item "-msdata=none"
13253 Make no use of the sections reserved for small data, and use absolute
13254 addresses to access all data.  Put all initialized global and static
13255 data in the \f(CW\*(C`.fardata\*(C'\fR section, and all uninitialized data in the
13256 \&\f(CW\*(C`.far\*(C'\fR section.  Put all constant data into the \f(CW\*(C`.const\*(C'\fR
13257 section.
13258 .PP
13259 \fI\s-1CRIS\s0 Options\fR
13260 .IX Subsection "CRIS Options"
13261 .PP
13262 These options are defined specifically for the \s-1CRIS\s0 ports.
13263 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
13264 .IX Item "-march=architecture-type"
13265 .PD 0
13266 .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
13267 .IX Item "-mcpu=architecture-type"
13268 .PD
13269 Generate code for the specified architecture.  The choices for
13270 \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
13271 respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX\s0.
13272 Default is \fBv0\fR except for cris-axis-linux-gnu, where the default is
13273 \&\fBv10\fR.
13274 .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
13275 .IX Item "-mtune=architecture-type"
13276 Tune to \fIarchitecture-type\fR everything applicable about the generated
13277 code, except for the \s-1ABI\s0 and the set of available instructions.  The
13278 choices for \fIarchitecture-type\fR are the same as for
13279 \&\fB\-march=\fR\fIarchitecture-type\fR.
13280 .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
13281 .IX Item "-mmax-stack-frame=n"
13282 Warn when the stack frame of a function exceeds \fIn\fR bytes.
13283 .IP "\fB\-metrax4\fR" 4
13284 .IX Item "-metrax4"
13285 .PD 0
13286 .IP "\fB\-metrax100\fR" 4
13287 .IX Item "-metrax100"
13288 .PD
13289 The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
13290 \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
13291 .IP "\fB\-mmul\-bug\-workaround\fR" 4
13292 .IX Item "-mmul-bug-workaround"
13293 .PD 0
13294 .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
13295 .IX Item "-mno-mul-bug-workaround"
13296 .PD
13297 Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
13298 models where it applies.  This option is active by default.
13299 .IP "\fB\-mpdebug\fR" 4
13300 .IX Item "-mpdebug"
13301 Enable CRIS-specific verbose debug-related information in the assembly
13302 code.  This option also has the effect of turning off the \fB#NO_APP\fR
13303 formatted-code indicator to the assembler at the beginning of the
13304 assembly file.
13305 .IP "\fB\-mcc\-init\fR" 4
13306 .IX Item "-mcc-init"
13307 Do not use condition-code results from previous instruction; always emit
13308 compare and test instructions before use of condition codes.
13309 .IP "\fB\-mno\-side\-effects\fR" 4
13310 .IX Item "-mno-side-effects"
13311 Do not emit instructions with side effects in addressing modes other than
13312 post-increment.
13313 .IP "\fB\-mstack\-align\fR" 4
13314 .IX Item "-mstack-align"
13315 .PD 0
13316 .IP "\fB\-mno\-stack\-align\fR" 4
13317 .IX Item "-mno-stack-align"
13318 .IP "\fB\-mdata\-align\fR" 4
13319 .IX Item "-mdata-align"
13320 .IP "\fB\-mno\-data\-align\fR" 4
13321 .IX Item "-mno-data-align"
13322 .IP "\fB\-mconst\-align\fR" 4
13323 .IX Item "-mconst-align"
13324 .IP "\fB\-mno\-const\-align\fR" 4
13325 .IX Item "-mno-const-align"
13326 .PD
13327 These options (\fBno\-\fR options) arrange (eliminate arrangements) for the
13328 stack frame, individual data and constants to be aligned for the maximum
13329 single data access size for the chosen \s-1CPU\s0 model.  The default is to
13330 arrange for 32\-bit alignment.  \s-1ABI\s0 details such as structure layout are
13331 not affected by these options.
13332 .IP "\fB\-m32\-bit\fR" 4
13333 .IX Item "-m32-bit"
13334 .PD 0
13335 .IP "\fB\-m16\-bit\fR" 4
13336 .IX Item "-m16-bit"
13337 .IP "\fB\-m8\-bit\fR" 4
13338 .IX Item "-m8-bit"
13339 .PD
13340 Similar to the stack\- data\- and const-align options above, these options
13341 arrange for stack frame, writable data and constants to all be 32\-bit,
13342 16\-bit or 8\-bit aligned.  The default is 32\-bit alignment.
13343 .IP "\fB\-mno\-prologue\-epilogue\fR" 4
13344 .IX Item "-mno-prologue-epilogue"
13345 .PD 0
13346 .IP "\fB\-mprologue\-epilogue\fR" 4
13347 .IX Item "-mprologue-epilogue"
13348 .PD
13349 With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
13350 epilogue which set up the stack frame are omitted and no return
13351 instructions or return sequences are generated in the code.  Use this
13352 option only together with visual inspection of the compiled code: no
13353 warnings or errors are generated when call-saved registers must be saved,
13354 or storage for local variables needs to be allocated.
13355 .IP "\fB\-mno\-gotplt\fR" 4
13356 .IX Item "-mno-gotplt"
13357 .PD 0
13358 .IP "\fB\-mgotplt\fR" 4
13359 .IX Item "-mgotplt"
13360 .PD
13361 With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
13362 instruction sequences that load addresses for functions from the \s-1PLT\s0 part
13363 of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
13364 \&\s-1PLT\s0.  The default is \fB\-mgotplt\fR.
13365 .IP "\fB\-melf\fR" 4
13366 .IX Item "-melf"
13367 Legacy no-op option only recognized with the cris-axis-elf and
13368 cris-axis-linux-gnu targets.
13369 .IP "\fB\-mlinux\fR" 4
13370 .IX Item "-mlinux"
13371 Legacy no-op option only recognized with the cris-axis-linux-gnu target.
13372 .IP "\fB\-sim\fR" 4
13373 .IX Item "-sim"
13374 This option, recognized for the cris-axis-elf, arranges
13375 to link with input-output functions from a simulator library.  Code,
13376 initialized data and zero-initialized data are allocated consecutively.
13377 .IP "\fB\-sim2\fR" 4
13378 .IX Item "-sim2"
13379 Like \fB\-sim\fR, but pass linker options to locate initialized data at
13380 0x40000000 and zero-initialized data at 0x80000000.
13381 .PP
13382 \fI\s-1CR16\s0 Options\fR
13383 .IX Subsection "CR16 Options"
13384 .PP
13385 These options are defined specifically for the \s-1CR16\s0 ports.
13386 .IP "\fB\-mmac\fR" 4
13387 .IX Item "-mmac"
13388 Enable the use of multiply-accumulate instructions. Disabled by default.
13389 .IP "\fB\-mcr16cplus\fR" 4
13390 .IX Item "-mcr16cplus"
13391 .PD 0
13392 .IP "\fB\-mcr16c\fR" 4
13393 .IX Item "-mcr16c"
13394 .PD
13395 Generate code for \s-1CR16C\s0 or \s-1CR16C+\s0 architecture. \s-1CR16C+\s0 architecture 
13396 is default.
13397 .IP "\fB\-msim\fR" 4
13398 .IX Item "-msim"
13399 Links the library libsim.a which is in compatible with simulator. Applicable
13400 to \s-1ELF\s0 compiler only.
13401 .IP "\fB\-mint32\fR" 4
13402 .IX Item "-mint32"
13403 Choose integer type as 32\-bit wide.
13404 .IP "\fB\-mbit\-ops\fR" 4
13405 .IX Item "-mbit-ops"
13406 Generates \f(CW\*(C`sbit\*(C'\fR/\f(CW\*(C`cbit\*(C'\fR instructions for bit manipulations.
13407 .IP "\fB\-mdata\-model=\fR\fImodel\fR" 4
13408 .IX Item "-mdata-model=model"
13409 Choose a data model. The choices for \fImodel\fR are \fBnear\fR,
13410 \&\fBfar\fR or \fBmedium\fR. \fBmedium\fR is default.
13411 However, \fBfar\fR is not valid with \fB\-mcr16c\fR, as the
13412 \&\s-1CR16C\s0 architecture does not support the far data model.
13413 .PP
13414 \fIDarwin Options\fR
13415 .IX Subsection "Darwin Options"
13416 .PP
13417 These options are defined for all architectures running the Darwin operating
13418 system.
13419 .PP
13420 \&\s-1FSF\s0 \s-1GCC\s0 on Darwin does not create \*(L"fat\*(R" object files; it creates
13421 an object file for the single architecture that \s-1GCC\s0 was built to
13422 target.  Apple's \s-1GCC\s0 on Darwin does create \*(L"fat\*(R" files if multiple
13423 \&\fB\-arch\fR options are used; it does so by running the compiler or
13424 linker multiple times and joining the results together with
13425 \&\fIlipo\fR.
13426 .PP
13427 The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
13428 \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
13429 that \s-1GCC\s0 is targeting, like \fB\-mcpu\fR or \fB\-march\fR.  The
13430 \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
13431 .PP
13432 The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
13433 mismatch.  The assembler, \fIas\fR, only permits instructions to
13434 be used that are valid for the subtype of the file it is generating,
13435 so you cannot put 64\-bit instructions in a \fBppc750\fR object file.
13436 The linker for shared libraries, \fI/usr/bin/libtool\fR, fails
13437 and prints an error if asked to create a shared library with a less
13438 restrictive subtype than its input files (for instance, trying to put
13439 a \fBppc970\fR object file in a \fBppc7400\fR library).  The linker
13440 for executables, \fBld\fR, quietly gives the executable the most
13441 restrictive subtype of any of its input files.
13442 .IP "\fB\-F\fR\fIdir\fR" 4
13443 .IX Item "-Fdir"
13444 Add the framework directory \fIdir\fR to the head of the list of
13445 directories to be searched for header files.  These directories are
13446 interleaved with those specified by \fB\-I\fR options and are
13447 scanned in a left-to-right order.
13448 .Sp
13449 A framework directory is a directory with frameworks in it.  A
13450 framework is a directory with a \fIHeaders\fR and/or
13451 \&\fIPrivateHeaders\fR directory contained directly in it that ends
13452 in \fI.framework\fR.  The name of a framework is the name of this
13453 directory excluding the \fI.framework\fR.  Headers associated with
13454 the framework are found in one of those two directories, with
13455 \&\fIHeaders\fR being searched first.  A subframework is a framework
13456 directory that is in a framework's \fIFrameworks\fR directory.
13457 Includes of subframework headers can only appear in a header of a
13458 framework that contains the subframework, or in a sibling subframework
13459 header.  Two subframeworks are siblings if they occur in the same
13460 framework.  A subframework should not have the same name as a
13461 framework; a warning is issued if this is violated.  Currently a
13462 subframework cannot have subframeworks; in the future, the mechanism
13463 may be extended to support this.  The standard frameworks can be found
13464 in \fI/System/Library/Frameworks\fR and
13465 \&\fI/Library/Frameworks\fR.  An example include looks like
13466 \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fIFramework\fR denotes
13467 the name of the framework and \fIheader.h\fR is found in the
13468 \&\fIPrivateHeaders\fR or \fIHeaders\fR directory.
13469 .IP "\fB\-iframework\fR\fIdir\fR" 4
13470 .IX Item "-iframeworkdir"
13471 Like \fB\-F\fR except the directory is a treated as a system
13472 directory.  The main difference between this \fB\-iframework\fR and
13473 \&\fB\-F\fR is that with \fB\-iframework\fR the compiler does not
13474 warn about constructs contained within header files found via
13475 \&\fIdir\fR.  This option is valid only for the C family of languages.
13476 .IP "\fB\-gused\fR" 4
13477 .IX Item "-gused"
13478 Emit debugging information for symbols that are used.  For stabs
13479 debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
13480 This is by default \s-1ON\s0.
13481 .IP "\fB\-gfull\fR" 4
13482 .IX Item "-gfull"
13483 Emit debugging information for all symbols and types.
13484 .IP "\fB\-mmacosx\-version\-min=\fR\fIversion\fR" 4
13485 .IX Item "-mmacosx-version-min=version"
13486 The earliest version of MacOS X that this executable will run on
13487 is \fIversion\fR.  Typical values of \fIversion\fR include \f(CW10.1\fR,
13488 \&\f(CW10.2\fR, and \f(CW10.3.9\fR.
13489 .Sp
13490 If the compiler was built to use the system's headers by default,
13491 then the default for this option is the system version on which the
13492 compiler is running, otherwise the default is to make choices that
13493 are compatible with as many systems and code bases as possible.
13494 .IP "\fB\-mkernel\fR" 4
13495 .IX Item "-mkernel"
13496 Enable kernel development mode.  The \fB\-mkernel\fR option sets
13497 \&\fB\-static\fR, \fB\-fno\-common\fR, \fB\-fno\-use\-cxa\-atexit\fR,
13498 \&\fB\-fno\-exceptions\fR, \fB\-fno\-non\-call\-exceptions\fR,
13499 \&\fB\-fapple\-kext\fR, \fB\-fno\-weak\fR and \fB\-fno\-rtti\fR where
13500 applicable.  This mode also sets \fB\-mno\-altivec\fR,
13501 \&\fB\-msoft\-float\fR, \fB\-fno\-builtin\fR and
13502 \&\fB\-mlong\-branch\fR for PowerPC targets.
13503 .IP "\fB\-mone\-byte\-bool\fR" 4
13504 .IX Item "-mone-byte-bool"
13505 Override the defaults for \f(CW\*(C`bool\*(C'\fR so that \f(CW\*(C`sizeof(bool)==1\*(C'\fR.
13506 By default \f(CW\*(C`sizeof(bool)\*(C'\fR is \f(CW4\fR when compiling for
13507 Darwin/PowerPC and \f(CW1\fR when compiling for Darwin/x86, so this
13508 option has no effect on x86.
13509 .Sp
13510 \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
13511 to generate code that is not binary compatible with code generated
13512 without that switch.  Using this switch may require recompiling all
13513 other modules in a program, including system libraries.  Use this
13514 switch to conform to a non-default data model.
13515 .IP "\fB\-mfix\-and\-continue\fR" 4
13516 .IX Item "-mfix-and-continue"
13517 .PD 0
13518 .IP "\fB\-ffix\-and\-continue\fR" 4
13519 .IX Item "-ffix-and-continue"
13520 .IP "\fB\-findirect\-data\fR" 4
13521 .IX Item "-findirect-data"
13522 .PD
13523 Generate code suitable for fast turnaround development, such as to
13524 allow \s-1GDB\s0 to dynamically load \fI.o\fR files into already-running
13525 programs.  \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
13526 are provided for backwards compatibility.
13527 .IP "\fB\-all_load\fR" 4
13528 .IX Item "-all_load"
13529 Loads all members of static archive libraries.
13530 See man \fIld\fR\|(1) for more information.
13531 .IP "\fB\-arch_errors_fatal\fR" 4
13532 .IX Item "-arch_errors_fatal"
13533 Cause the errors having to do with files that have the wrong architecture
13534 to be fatal.
13535 .IP "\fB\-bind_at_load\fR" 4
13536 .IX Item "-bind_at_load"
13537 Causes the output file to be marked such that the dynamic linker will
13538 bind all undefined references when the file is loaded or launched.
13539 .IP "\fB\-bundle\fR" 4
13540 .IX Item "-bundle"
13541 Produce a Mach-o bundle format file.
13542 See man \fIld\fR\|(1) for more information.
13543 .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
13544 .IX Item "-bundle_loader executable"
13545 This option specifies the \fIexecutable\fR that will load the build
13546 output file being linked.  See man \fIld\fR\|(1) for more information.
13547 .IP "\fB\-dynamiclib\fR" 4
13548 .IX Item "-dynamiclib"
13549 When passed this option, \s-1GCC\s0 produces a dynamic library instead of
13550 an executable when linking, using the Darwin \fIlibtool\fR command.
13551 .IP "\fB\-force_cpusubtype_ALL\fR" 4
13552 .IX Item "-force_cpusubtype_ALL"
13553 This causes \s-1GCC\s0's output file to have the \fB\s-1ALL\s0\fR subtype, instead of
13554 one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
13555 .IP "\fB\-allowable_client\fR  \fIclient_name\fR" 4
13556 .IX Item "-allowable_client  client_name"
13557 .PD 0
13558 .IP "\fB\-client_name\fR" 4
13559 .IX Item "-client_name"
13560 .IP "\fB\-compatibility_version\fR" 4
13561 .IX Item "-compatibility_version"
13562 .IP "\fB\-current_version\fR" 4
13563 .IX Item "-current_version"
13564 .IP "\fB\-dead_strip\fR" 4
13565 .IX Item "-dead_strip"
13566 .IP "\fB\-dependency\-file\fR" 4
13567 .IX Item "-dependency-file"
13568 .IP "\fB\-dylib_file\fR" 4
13569 .IX Item "-dylib_file"
13570 .IP "\fB\-dylinker_install_name\fR" 4
13571 .IX Item "-dylinker_install_name"
13572 .IP "\fB\-dynamic\fR" 4
13573 .IX Item "-dynamic"
13574 .IP "\fB\-exported_symbols_list\fR" 4
13575 .IX Item "-exported_symbols_list"
13576 .IP "\fB\-filelist\fR" 4
13577 .IX Item "-filelist"
13578 .IP "\fB\-flat_namespace\fR" 4
13579 .IX Item "-flat_namespace"
13580 .IP "\fB\-force_flat_namespace\fR" 4
13581 .IX Item "-force_flat_namespace"
13582 .IP "\fB\-headerpad_max_install_names\fR" 4
13583 .IX Item "-headerpad_max_install_names"
13584 .IP "\fB\-image_base\fR" 4
13585 .IX Item "-image_base"
13586 .IP "\fB\-init\fR" 4
13587 .IX Item "-init"
13588 .IP "\fB\-install_name\fR" 4
13589 .IX Item "-install_name"
13590 .IP "\fB\-keep_private_externs\fR" 4
13591 .IX Item "-keep_private_externs"
13592 .IP "\fB\-multi_module\fR" 4
13593 .IX Item "-multi_module"
13594 .IP "\fB\-multiply_defined\fR" 4
13595 .IX Item "-multiply_defined"
13596 .IP "\fB\-multiply_defined_unused\fR" 4
13597 .IX Item "-multiply_defined_unused"
13598 .IP "\fB\-noall_load\fR" 4
13599 .IX Item "-noall_load"
13600 .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
13601 .IX Item "-no_dead_strip_inits_and_terms"
13602 .IP "\fB\-nofixprebinding\fR" 4
13603 .IX Item "-nofixprebinding"
13604 .IP "\fB\-nomultidefs\fR" 4
13605 .IX Item "-nomultidefs"
13606 .IP "\fB\-noprebind\fR" 4
13607 .IX Item "-noprebind"
13608 .IP "\fB\-noseglinkedit\fR" 4
13609 .IX Item "-noseglinkedit"
13610 .IP "\fB\-pagezero_size\fR" 4
13611 .IX Item "-pagezero_size"
13612 .IP "\fB\-prebind\fR" 4
13613 .IX Item "-prebind"
13614 .IP "\fB\-prebind_all_twolevel_modules\fR" 4
13615 .IX Item "-prebind_all_twolevel_modules"
13616 .IP "\fB\-private_bundle\fR" 4
13617 .IX Item "-private_bundle"
13618 .IP "\fB\-read_only_relocs\fR" 4
13619 .IX Item "-read_only_relocs"
13620 .IP "\fB\-sectalign\fR" 4
13621 .IX Item "-sectalign"
13622 .IP "\fB\-sectobjectsymbols\fR" 4
13623 .IX Item "-sectobjectsymbols"
13624 .IP "\fB\-whyload\fR" 4
13625 .IX Item "-whyload"
13626 .IP "\fB\-seg1addr\fR" 4
13627 .IX Item "-seg1addr"
13628 .IP "\fB\-sectcreate\fR" 4
13629 .IX Item "-sectcreate"
13630 .IP "\fB\-sectobjectsymbols\fR" 4
13631 .IX Item "-sectobjectsymbols"
13632 .IP "\fB\-sectorder\fR" 4
13633 .IX Item "-sectorder"
13634 .IP "\fB\-segaddr\fR" 4
13635 .IX Item "-segaddr"
13636 .IP "\fB\-segs_read_only_addr\fR" 4
13637 .IX Item "-segs_read_only_addr"
13638 .IP "\fB\-segs_read_write_addr\fR" 4
13639 .IX Item "-segs_read_write_addr"
13640 .IP "\fB\-seg_addr_table\fR" 4
13641 .IX Item "-seg_addr_table"
13642 .IP "\fB\-seg_addr_table_filename\fR" 4
13643 .IX Item "-seg_addr_table_filename"
13644 .IP "\fB\-seglinkedit\fR" 4
13645 .IX Item "-seglinkedit"
13646 .IP "\fB\-segprot\fR" 4
13647 .IX Item "-segprot"
13648 .IP "\fB\-segs_read_only_addr\fR" 4
13649 .IX Item "-segs_read_only_addr"
13650 .IP "\fB\-segs_read_write_addr\fR" 4
13651 .IX Item "-segs_read_write_addr"
13652 .IP "\fB\-single_module\fR" 4
13653 .IX Item "-single_module"
13654 .IP "\fB\-static\fR" 4
13655 .IX Item "-static"
13656 .IP "\fB\-sub_library\fR" 4
13657 .IX Item "-sub_library"
13658 .IP "\fB\-sub_umbrella\fR" 4
13659 .IX Item "-sub_umbrella"
13660 .IP "\fB\-twolevel_namespace\fR" 4
13661 .IX Item "-twolevel_namespace"
13662 .IP "\fB\-umbrella\fR" 4
13663 .IX Item "-umbrella"
13664 .IP "\fB\-undefined\fR" 4
13665 .IX Item "-undefined"
13666 .IP "\fB\-unexported_symbols_list\fR" 4
13667 .IX Item "-unexported_symbols_list"
13668 .IP "\fB\-weak_reference_mismatches\fR" 4
13669 .IX Item "-weak_reference_mismatches"
13670 .IP "\fB\-whatsloaded\fR" 4
13671 .IX Item "-whatsloaded"
13672 .PD
13673 These options are passed to the Darwin linker.  The Darwin linker man page
13674 describes them in detail.
13675 .PP
13676 \fI\s-1DEC\s0 Alpha Options\fR
13677 .IX Subsection "DEC Alpha Options"
13678 .PP
13679 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
13680 .IP "\fB\-mno\-soft\-float\fR" 4
13681 .IX Item "-mno-soft-float"
13682 .PD 0
13683 .IP "\fB\-msoft\-float\fR" 4
13684 .IX Item "-msoft-float"
13685 .PD
13686 Use (do not use) the hardware floating-point instructions for
13687 floating-point operations.  When \fB\-msoft\-float\fR is specified,
13688 functions in \fIlibgcc.a\fR are used to perform floating-point
13689 operations.  Unless they are replaced by routines that emulate the
13690 floating-point operations, or compiled in such a way as to call such
13691 emulations routines, these routines issue floating-point
13692 operations.   If you are compiling for an Alpha without floating-point
13693 operations, you must ensure that the library is built so as not to call
13694 them.
13695 .Sp
13696 Note that Alpha implementations without floating-point operations are
13697 required to have floating-point registers.
13698 .IP "\fB\-mfp\-reg\fR" 4
13699 .IX Item "-mfp-reg"
13700 .PD 0
13701 .IP "\fB\-mno\-fp\-regs\fR" 4
13702 .IX Item "-mno-fp-regs"
13703 .PD
13704 Generate code that uses (does not use) the floating-point register set.
13705 \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR.  If the floating-point
13706 register set is not used, floating-point operands are passed in integer
13707 registers as if they were integers and floating-point results are passed
13708 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence,
13709 so any function with a floating-point argument or return value called by code
13710 compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
13711 option.
13712 .Sp
13713 A typical use of this option is building a kernel that does not use,
13714 and hence need not save and restore, any floating-point registers.
13715 .IP "\fB\-mieee\fR" 4
13716 .IX Item "-mieee"
13717 The Alpha architecture implements floating-point hardware optimized for
13718 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating-point
13719 standard.  However, for full compliance, software assistance is
13720 required.  This option generates code fully IEEE-compliant code
13721 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
13722 If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
13723 defined during compilation.  The resulting code is less efficient but is
13724 able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
13725 values such as not-a-number and plus/minus infinity.  Other Alpha
13726 compilers call this option \fB\-ieee_with_no_inexact\fR.
13727 .IP "\fB\-mieee\-with\-inexact\fR" 4
13728 .IX Item "-mieee-with-inexact"
13729 This is like \fB\-mieee\fR except the generated code also maintains
13730 the \s-1IEEE\s0 \fIinexact-flag\fR.  Turning on this option causes the
13731 generated code to implement fully-compliant \s-1IEEE\s0 math.  In addition to
13732 \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
13733 macro.  On some Alpha implementations the resulting code may execute
13734 significantly slower than the code generated by default.  Since there is
13735 very little code that depends on the \fIinexact-flag\fR, you should
13736 normally not specify this option.  Other Alpha compilers call this
13737 option \fB\-ieee_with_inexact\fR.
13738 .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
13739 .IX Item "-mfp-trap-mode=trap-mode"
13740 This option controls what floating-point related traps are enabled.
13741 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
13742 The trap mode can be set to one of four values:
13743 .RS 4
13744 .IP "\fBn\fR" 4
13745 .IX Item "n"
13746 This is the default (normal) setting.  The only traps that are enabled
13747 are the ones that cannot be disabled in software (e.g., division by zero
13748 trap).
13749 .IP "\fBu\fR" 4
13750 .IX Item "u"
13751 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
13752 as well.
13753 .IP "\fBsu\fR" 4
13754 .IX Item "su"
13755 Like \fBu\fR, but the instructions are marked to be safe for software
13756 completion (see Alpha architecture manual for details).
13757 .IP "\fBsui\fR" 4
13758 .IX Item "sui"
13759 Like \fBsu\fR, but inexact traps are enabled as well.
13760 .RE
13761 .RS 4
13762 .RE
13763 .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
13764 .IX Item "-mfp-rounding-mode=rounding-mode"
13765 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
13766 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
13767 of:
13768 .RS 4
13769 .IP "\fBn\fR" 4
13770 .IX Item "n"
13771 Normal \s-1IEEE\s0 rounding mode.  Floating-point numbers are rounded towards
13772 the nearest machine number or towards the even machine number in case
13773 of a tie.
13774 .IP "\fBm\fR" 4
13775 .IX Item "m"
13776 Round towards minus infinity.
13777 .IP "\fBc\fR" 4
13778 .IX Item "c"
13779 Chopped rounding mode.  Floating-point numbers are rounded towards zero.
13780 .IP "\fBd\fR" 4
13781 .IX Item "d"
13782 Dynamic rounding mode.  A field in the floating-point control register
13783 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
13784 rounding mode in effect.  The C library initializes this register for
13785 rounding towards plus infinity.  Thus, unless your program modifies the
13786 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
13787 .RE
13788 .RS 4
13789 .RE
13790 .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
13791 .IX Item "-mtrap-precision=trap-precision"
13792 In the Alpha architecture, floating-point traps are imprecise.  This
13793 means without software assistance it is impossible to recover from a
13794 floating trap and program execution normally needs to be terminated.
13795 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
13796 in determining the exact location that caused a floating-point trap.
13797 Depending on the requirements of an application, different levels of
13798 precisions can be selected:
13799 .RS 4
13800 .IP "\fBp\fR" 4
13801 .IX Item "p"
13802 Program precision.  This option is the default and means a trap handler
13803 can only identify which program caused a floating-point exception.
13804 .IP "\fBf\fR" 4
13805 .IX Item "f"
13806 Function precision.  The trap handler can determine the function that
13807 caused a floating-point exception.
13808 .IP "\fBi\fR" 4
13809 .IX Item "i"
13810 Instruction precision.  The trap handler can determine the exact
13811 instruction that caused a floating-point exception.
13812 .RE
13813 .RS 4
13814 .Sp
13815 Other Alpha compilers provide the equivalent options called
13816 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
13817 .RE
13818 .IP "\fB\-mieee\-conformant\fR" 4
13819 .IX Item "-mieee-conformant"
13820 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
13821 use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
13822 \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR.  Its only effect
13823 is to emit the line \fB.eflag 48\fR in the function prologue of the
13824 generated assembly file.
13825 .IP "\fB\-mbuild\-constants\fR" 4
13826 .IX Item "-mbuild-constants"
13827 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
13828 see if it can construct it from smaller constants in two or three
13829 instructions.  If it cannot, it outputs the constant as a literal and
13830 generates code to load it from the data segment at run time.
13831 .Sp
13832 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
13833 using code, even if it takes more instructions (the maximum is six).
13834 .Sp
13835 You typically use this option to build a shared library dynamic
13836 loader.  Itself a shared library, it must relocate itself in memory
13837 before it can find the variables and constants in its own data segment.
13838 .IP "\fB\-mbwx\fR" 4
13839 .IX Item "-mbwx"
13840 .PD 0
13841 .IP "\fB\-mno\-bwx\fR" 4
13842 .IX Item "-mno-bwx"
13843 .IP "\fB\-mcix\fR" 4
13844 .IX Item "-mcix"
13845 .IP "\fB\-mno\-cix\fR" 4
13846 .IX Item "-mno-cix"
13847 .IP "\fB\-mfix\fR" 4
13848 .IX Item "-mfix"
13849 .IP "\fB\-mno\-fix\fR" 4
13850 .IX Item "-mno-fix"
13851 .IP "\fB\-mmax\fR" 4
13852 .IX Item "-mmax"
13853 .IP "\fB\-mno\-max\fR" 4
13854 .IX Item "-mno-max"
13855 .PD
13856 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX\s0,
13857 \&\s-1CIX\s0, \s-1FIX\s0 and \s-1MAX\s0 instruction sets.  The default is to use the instruction
13858 sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
13859 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none is specified.
13860 .IP "\fB\-mfloat\-vax\fR" 4
13861 .IX Item "-mfloat-vax"
13862 .PD 0
13863 .IP "\fB\-mfloat\-ieee\fR" 4
13864 .IX Item "-mfloat-ieee"
13865 .PD
13866 Generate code that uses (does not use) \s-1VAX\s0 F and G floating-point
13867 arithmetic instead of \s-1IEEE\s0 single and double precision.
13868 .IP "\fB\-mexplicit\-relocs\fR" 4
13869 .IX Item "-mexplicit-relocs"
13870 .PD 0
13871 .IP "\fB\-mno\-explicit\-relocs\fR" 4
13872 .IX Item "-mno-explicit-relocs"
13873 .PD
13874 Older Alpha assemblers provided no way to generate symbol relocations
13875 except via assembler macros.  Use of these macros does not allow
13876 optimal instruction scheduling.  \s-1GNU\s0 binutils as of version 2.12
13877 supports a new syntax that allows the compiler to explicitly mark
13878 which relocations should apply to which instructions.  This option
13879 is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
13880 the assembler when it is built and sets the default accordingly.
13881 .IP "\fB\-msmall\-data\fR" 4
13882 .IX Item "-msmall-data"
13883 .PD 0
13884 .IP "\fB\-mlarge\-data\fR" 4
13885 .IX Item "-mlarge-data"
13886 .PD
13887 When \fB\-mexplicit\-relocs\fR is in effect, static data is
13888 accessed via \fIgp-relative\fR relocations.  When \fB\-msmall\-data\fR
13889 is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
13890 (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
13891 16\-bit relocations off of the \f(CW$gp\fR register.  This limits the
13892 size of the small data area to 64KB, but allows the variables to be
13893 directly accessed via a single instruction.
13894 .Sp
13895 The default is \fB\-mlarge\-data\fR.  With this option the data area
13896 is limited to just below 2GB.  Programs that require more than 2GB of
13897 data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
13898 heap instead of in the program's data segment.
13899 .Sp
13900 When generating code for shared libraries, \fB\-fpic\fR implies
13901 \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
13902 .IP "\fB\-msmall\-text\fR" 4
13903 .IX Item "-msmall-text"
13904 .PD 0
13905 .IP "\fB\-mlarge\-text\fR" 4
13906 .IX Item "-mlarge-text"
13907 .PD
13908 When \fB\-msmall\-text\fR is used, the compiler assumes that the
13909 code of the entire program (or shared library) fits in 4MB, and is
13910 thus reachable with a branch instruction.  When \fB\-msmall\-data\fR
13911 is used, the compiler can assume that all local symbols share the
13912 same \f(CW$gp\fR value, and thus reduce the number of instructions
13913 required for a function call from 4 to 1.
13914 .Sp
13915 The default is \fB\-mlarge\-text\fR.
13916 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
13917 .IX Item "-mcpu=cpu_type"
13918 Set the instruction set and instruction scheduling parameters for
13919 machine type \fIcpu_type\fR.  You can specify either the \fB\s-1EV\s0\fR
13920 style name or the corresponding chip number.  \s-1GCC\s0 supports scheduling
13921 parameters for the \s-1EV4\s0, \s-1EV5\s0 and \s-1EV6\s0 family of processors and
13922 chooses the default values for the instruction set from the processor
13923 you specify.  If you do not specify a processor type, \s-1GCC\s0 defaults
13924 to the processor on which the compiler was built.
13925 .Sp
13926 Supported values for \fIcpu_type\fR are
13927 .RS 4
13928 .IP "\fBev4\fR" 4
13929 .IX Item "ev4"
13930 .PD 0
13931 .IP "\fBev45\fR" 4
13932 .IX Item "ev45"
13933 .IP "\fB21064\fR" 4
13934 .IX Item "21064"
13935 .PD
13936 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
13937 .IP "\fBev5\fR" 4
13938 .IX Item "ev5"
13939 .PD 0
13940 .IP "\fB21164\fR" 4
13941 .IX Item "21164"
13942 .PD
13943 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
13944 .IP "\fBev56\fR" 4
13945 .IX Item "ev56"
13946 .PD 0
13947 .IP "\fB21164a\fR" 4
13948 .IX Item "21164a"
13949 .PD
13950 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
13951 .IP "\fBpca56\fR" 4
13952 .IX Item "pca56"
13953 .PD 0
13954 .IP "\fB21164pc\fR" 4
13955 .IX Item "21164pc"
13956 .IP "\fB21164PC\fR" 4
13957 .IX Item "21164PC"
13958 .PD
13959 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
13960 .IP "\fBev6\fR" 4
13961 .IX Item "ev6"
13962 .PD 0
13963 .IP "\fB21264\fR" 4
13964 .IX Item "21264"
13965 .PD
13966 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
13967 .IP "\fBev67\fR" 4
13968 .IX Item "ev67"
13969 .PD 0
13970 .IP "\fB21264a\fR" 4
13971 .IX Item "21264a"
13972 .PD
13973 Schedules as an \s-1EV6\s0 and supports the \s-1BWX\s0, \s-1CIX\s0, \s-1FIX\s0, and \s-1MAX\s0 extensions.
13974 .RE
13975 .RS 4
13976 .Sp
13977 Native toolchains also support the value \fBnative\fR,
13978 which selects the best architecture option for the host processor.
13979 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
13980 the processor.
13981 .RE
13982 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
13983 .IX Item "-mtune=cpu_type"
13984 Set only the instruction scheduling parameters for machine type
13985 \&\fIcpu_type\fR.  The instruction set is not changed.
13986 .Sp
13987 Native toolchains also support the value \fBnative\fR,
13988 which selects the best architecture option for the host processor.
13989 \&\fB\-mtune=native\fR has no effect if \s-1GCC\s0 does not recognize
13990 the processor.
13991 .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
13992 .IX Item "-mmemory-latency=time"
13993 Sets the latency the scheduler should assume for typical memory
13994 references as seen by the application.  This number is highly
13995 dependent on the memory access patterns used by the application
13996 and the size of the external cache on the machine.
13997 .Sp
13998 Valid options for \fItime\fR are
13999 .RS 4
14000 .IP "\fInumber\fR" 4
14001 .IX Item "number"
14002 A decimal number representing clock cycles.
14003 .IP "\fBL1\fR" 4
14004 .IX Item "L1"
14005 .PD 0
14006 .IP "\fBL2\fR" 4
14007 .IX Item "L2"
14008 .IP "\fBL3\fR" 4
14009 .IX Item "L3"
14010 .IP "\fBmain\fR" 4
14011 .IX Item "main"
14012 .PD
14013 The compiler contains estimates of the number of clock cycles for
14014 \&\*(L"typical\*(R" \s-1EV4\s0 & \s-1EV5\s0 hardware for the Level 1, 2 & 3 caches
14015 (also called Dcache, Scache, and Bcache), as well as to main memory.
14016 Note that L3 is only valid for \s-1EV5\s0.
14017 .RE
14018 .RS 4
14019 .RE
14020 .PP
14021 \fI\s-1FR30\s0 Options\fR
14022 .IX Subsection "FR30 Options"
14023 .PP
14024 These options are defined specifically for the \s-1FR30\s0 port.
14025 .IP "\fB\-msmall\-model\fR" 4
14026 .IX Item "-msmall-model"
14027 Use the small address space model.  This can produce smaller code, but
14028 it does assume that all symbolic values and addresses fit into a
14029 20\-bit range.
14030 .IP "\fB\-mno\-lsim\fR" 4
14031 .IX Item "-mno-lsim"
14032 Assume that runtime support has been provided and so there is no need
14033 to include the simulator library (\fIlibsim.a\fR) on the linker
14034 command line.
14035 .PP
14036 \fI\s-1FRV\s0 Options\fR
14037 .IX Subsection "FRV Options"
14038 .IP "\fB\-mgpr\-32\fR" 4
14039 .IX Item "-mgpr-32"
14040 Only use the first 32 general-purpose registers.
14041 .IP "\fB\-mgpr\-64\fR" 4
14042 .IX Item "-mgpr-64"
14043 Use all 64 general-purpose registers.
14044 .IP "\fB\-mfpr\-32\fR" 4
14045 .IX Item "-mfpr-32"
14046 Use only the first 32 floating-point registers.
14047 .IP "\fB\-mfpr\-64\fR" 4
14048 .IX Item "-mfpr-64"
14049 Use all 64 floating-point registers.
14050 .IP "\fB\-mhard\-float\fR" 4
14051 .IX Item "-mhard-float"
14052 Use hardware instructions for floating-point operations.
14053 .IP "\fB\-msoft\-float\fR" 4
14054 .IX Item "-msoft-float"
14055 Use library routines for floating-point operations.
14056 .IP "\fB\-malloc\-cc\fR" 4
14057 .IX Item "-malloc-cc"
14058 Dynamically allocate condition code registers.
14059 .IP "\fB\-mfixed\-cc\fR" 4
14060 .IX Item "-mfixed-cc"
14061 Do not try to dynamically allocate condition code registers, only
14062 use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
14063 .IP "\fB\-mdword\fR" 4
14064 .IX Item "-mdword"
14065 Change \s-1ABI\s0 to use double word insns.
14066 .IP "\fB\-mno\-dword\fR" 4
14067 .IX Item "-mno-dword"
14068 Do not use double word instructions.
14069 .IP "\fB\-mdouble\fR" 4
14070 .IX Item "-mdouble"
14071 Use floating-point double instructions.
14072 .IP "\fB\-mno\-double\fR" 4
14073 .IX Item "-mno-double"
14074 Do not use floating-point double instructions.
14075 .IP "\fB\-mmedia\fR" 4
14076 .IX Item "-mmedia"
14077 Use media instructions.
14078 .IP "\fB\-mno\-media\fR" 4
14079 .IX Item "-mno-media"
14080 Do not use media instructions.
14081 .IP "\fB\-mmuladd\fR" 4
14082 .IX Item "-mmuladd"
14083 Use multiply and add/subtract instructions.
14084 .IP "\fB\-mno\-muladd\fR" 4
14085 .IX Item "-mno-muladd"
14086 Do not use multiply and add/subtract instructions.
14087 .IP "\fB\-mfdpic\fR" 4
14088 .IX Item "-mfdpic"
14089 Select the \s-1FDPIC\s0 \s-1ABI\s0, which uses function descriptors to represent
14090 pointers to functions.  Without any PIC/PIE\-related options, it
14091 implies \fB\-fPIE\fR.  With \fB\-fpic\fR or \fB\-fpie\fR, it
14092 assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
14093 \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
14094 are computed with 32 bits.
14095 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
14096 .IP "\fB\-minline\-plt\fR" 4
14097 .IX Item "-minline-plt"
14098 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
14099 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
14100 It's enabled by default if optimizing for speed and compiling for
14101 shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
14102 optimization option such as \fB\-O3\fR or above is present in the
14103 command line.
14104 .IP "\fB\-mTLS\fR" 4
14105 .IX Item "-mTLS"
14106 Assume a large \s-1TLS\s0 segment when generating thread-local code.
14107 .IP "\fB\-mtls\fR" 4
14108 .IX Item "-mtls"
14109 Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
14110 .IP "\fB\-mgprel\-ro\fR" 4
14111 .IX Item "-mgprel-ro"
14112 Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC\s0 \s-1ABI\s0 for data
14113 that is known to be in read-only sections.  It's enabled by default,
14114 except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
14115 make the global offset table smaller, it trades 1 instruction for 4.
14116 With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
14117 one of which may be shared by multiple symbols, and it avoids the need
14118 for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
14119 win.  If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
14120 .IP "\fB\-multilib\-library\-pic\fR" 4
14121 .IX Item "-multilib-library-pic"
14122 Link with the (library, not \s-1FD\s0) pic libraries.  It's implied by
14123 \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
14124 \&\fB\-fpic\fR without \fB\-mfdpic\fR.  You should never have to use
14125 it explicitly.
14126 .IP "\fB\-mlinked\-fp\fR" 4
14127 .IX Item "-mlinked-fp"
14128 Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
14129 a stack frame is allocated.  This option is enabled by default and can
14130 be disabled with \fB\-mno\-linked\-fp\fR.
14131 .IP "\fB\-mlong\-calls\fR" 4
14132 .IX Item "-mlong-calls"
14133 Use indirect addressing to call functions outside the current
14134 compilation unit.  This allows the functions to be placed anywhere
14135 within the 32\-bit address space.
14136 .IP "\fB\-malign\-labels\fR" 4
14137 .IX Item "-malign-labels"
14138 Try to align labels to an 8\-byte boundary by inserting NOPs into the
14139 previous packet.  This option only has an effect when \s-1VLIW\s0 packing
14140 is enabled.  It doesn't create new packets; it merely adds NOPs to
14141 existing ones.
14142 .IP "\fB\-mlibrary\-pic\fR" 4
14143 .IX Item "-mlibrary-pic"
14144 Generate position-independent \s-1EABI\s0 code.
14145 .IP "\fB\-macc\-4\fR" 4
14146 .IX Item "-macc-4"
14147 Use only the first four media accumulator registers.
14148 .IP "\fB\-macc\-8\fR" 4
14149 .IX Item "-macc-8"
14150 Use all eight media accumulator registers.
14151 .IP "\fB\-mpack\fR" 4
14152 .IX Item "-mpack"
14153 Pack \s-1VLIW\s0 instructions.
14154 .IP "\fB\-mno\-pack\fR" 4
14155 .IX Item "-mno-pack"
14156 Do not pack \s-1VLIW\s0 instructions.
14157 .IP "\fB\-mno\-eflags\fR" 4
14158 .IX Item "-mno-eflags"
14159 Do not mark \s-1ABI\s0 switches in e_flags.
14160 .IP "\fB\-mcond\-move\fR" 4
14161 .IX Item "-mcond-move"
14162 Enable the use of conditional-move instructions (default).
14163 .Sp
14164 This switch is mainly for debugging the compiler and will likely be removed
14165 in a future version.
14166 .IP "\fB\-mno\-cond\-move\fR" 4
14167 .IX Item "-mno-cond-move"
14168 Disable the use of conditional-move instructions.
14169 .Sp
14170 This switch is mainly for debugging the compiler and will likely be removed
14171 in a future version.
14172 .IP "\fB\-mscc\fR" 4
14173 .IX Item "-mscc"
14174 Enable the use of conditional set instructions (default).
14175 .Sp
14176 This switch is mainly for debugging the compiler and will likely be removed
14177 in a future version.
14178 .IP "\fB\-mno\-scc\fR" 4
14179 .IX Item "-mno-scc"
14180 Disable the use of conditional set instructions.
14181 .Sp
14182 This switch is mainly for debugging the compiler and will likely be removed
14183 in a future version.
14184 .IP "\fB\-mcond\-exec\fR" 4
14185 .IX Item "-mcond-exec"
14186 Enable the use of conditional execution (default).
14187 .Sp
14188 This switch is mainly for debugging the compiler and will likely be removed
14189 in a future version.
14190 .IP "\fB\-mno\-cond\-exec\fR" 4
14191 .IX Item "-mno-cond-exec"
14192 Disable the use of conditional execution.
14193 .Sp
14194 This switch is mainly for debugging the compiler and will likely be removed
14195 in a future version.
14196 .IP "\fB\-mvliw\-branch\fR" 4
14197 .IX Item "-mvliw-branch"
14198 Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
14199 .Sp
14200 This switch is mainly for debugging the compiler and will likely be removed
14201 in a future version.
14202 .IP "\fB\-mno\-vliw\-branch\fR" 4
14203 .IX Item "-mno-vliw-branch"
14204 Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
14205 .Sp
14206 This switch is mainly for debugging the compiler and will likely be removed
14207 in a future version.
14208 .IP "\fB\-mmulti\-cond\-exec\fR" 4
14209 .IX Item "-mmulti-cond-exec"
14210 Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
14211 (default).
14212 .Sp
14213 This switch is mainly for debugging the compiler and will likely be removed
14214 in a future version.
14215 .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
14216 .IX Item "-mno-multi-cond-exec"
14217 Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
14218 .Sp
14219 This switch is mainly for debugging the compiler and will likely be removed
14220 in a future version.
14221 .IP "\fB\-mnested\-cond\-exec\fR" 4
14222 .IX Item "-mnested-cond-exec"
14223 Enable nested conditional execution optimizations (default).
14224 .Sp
14225 This switch is mainly for debugging the compiler and will likely be removed
14226 in a future version.
14227 .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
14228 .IX Item "-mno-nested-cond-exec"
14229 Disable nested conditional execution optimizations.
14230 .Sp
14231 This switch is mainly for debugging the compiler and will likely be removed
14232 in a future version.
14233 .IP "\fB\-moptimize\-membar\fR" 4
14234 .IX Item "-moptimize-membar"
14235 This switch removes redundant \f(CW\*(C`membar\*(C'\fR instructions from the
14236 compiler-generated code.  It is enabled by default.
14237 .IP "\fB\-mno\-optimize\-membar\fR" 4
14238 .IX Item "-mno-optimize-membar"
14239 This switch disables the automatic removal of redundant \f(CW\*(C`membar\*(C'\fR
14240 instructions from the generated code.
14241 .IP "\fB\-mtomcat\-stats\fR" 4
14242 .IX Item "-mtomcat-stats"
14243 Cause gas to print out tomcat statistics.
14244 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
14245 .IX Item "-mcpu=cpu"
14246 Select the processor type for which to generate code.  Possible values are
14247 \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
14248 \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
14249 .PP
14250 \fIGNU/Linux Options\fR
14251 .IX Subsection "GNU/Linux Options"
14252 .PP
14253 These \fB\-m\fR options are defined for GNU/Linux targets:
14254 .IP "\fB\-mglibc\fR" 4
14255 .IX Item "-mglibc"
14256 Use the \s-1GNU\s0 C library.  This is the default except
14257 on \fB*\-*\-linux\-*uclibc*\fR and \fB*\-*\-linux\-*android*\fR targets.
14258 .IP "\fB\-muclibc\fR" 4
14259 .IX Item "-muclibc"
14260 Use uClibc C library.  This is the default on
14261 \&\fB*\-*\-linux\-*uclibc*\fR targets.
14262 .IP "\fB\-mbionic\fR" 4
14263 .IX Item "-mbionic"
14264 Use Bionic C library.  This is the default on
14265 \&\fB*\-*\-linux\-*android*\fR targets.
14266 .IP "\fB\-mandroid\fR" 4
14267 .IX Item "-mandroid"
14268 Compile code compatible with Android platform.  This is the default on
14269 \&\fB*\-*\-linux\-*android*\fR targets.
14270 .Sp
14271 When compiling, this option enables \fB\-mbionic\fR, \fB\-fPIC\fR,
14272 \&\fB\-fno\-exceptions\fR and \fB\-fno\-rtti\fR by default.  When linking,
14273 this option makes the \s-1GCC\s0 driver pass Android-specific options to the linker.
14274 Finally, this option causes the preprocessor macro \f(CW\*(C`_\|_ANDROID_\|_\*(C'\fR
14275 to be defined.
14276 .IP "\fB\-tno\-android\-cc\fR" 4
14277 .IX Item "-tno-android-cc"
14278 Disable compilation effects of \fB\-mandroid\fR, i.e., do not enable
14279 \&\fB\-mbionic\fR, \fB\-fPIC\fR, \fB\-fno\-exceptions\fR and
14280 \&\fB\-fno\-rtti\fR by default.
14281 .IP "\fB\-tno\-android\-ld\fR" 4
14282 .IX Item "-tno-android-ld"
14283 Disable linking effects of \fB\-mandroid\fR, i.e., pass standard Linux
14284 linking options to the linker.
14285 .PP
14286 \fIH8/300 Options\fR
14287 .IX Subsection "H8/300 Options"
14288 .PP
14289 These \fB\-m\fR options are defined for the H8/300 implementations:
14290 .IP "\fB\-mrelax\fR" 4
14291 .IX Item "-mrelax"
14292 Shorten some address references at link time, when possible; uses the
14293 linker option \fB\-relax\fR.
14294 .IP "\fB\-mh\fR" 4
14295 .IX Item "-mh"
14296 Generate code for the H8/300H.
14297 .IP "\fB\-ms\fR" 4
14298 .IX Item "-ms"
14299 Generate code for the H8S.
14300 .IP "\fB\-mn\fR" 4
14301 .IX Item "-mn"
14302 Generate code for the H8S and H8/300H in the normal mode.  This switch
14303 must be used either with \fB\-mh\fR or \fB\-ms\fR.
14304 .IP "\fB\-ms2600\fR" 4
14305 .IX Item "-ms2600"
14306 Generate code for the H8S/2600.  This switch must be used with \fB\-ms\fR.
14307 .IP "\fB\-mexr\fR" 4
14308 .IX Item "-mexr"
14309 Extended registers are stored on stack before execution of function
14310 with monitor attribute. Default option is \fB\-mexr\fR.
14311 This option is valid only for H8S targets.
14312 .IP "\fB\-mno\-exr\fR" 4
14313 .IX Item "-mno-exr"
14314 Extended registers are not stored on stack before execution of function 
14315 with monitor attribute. Default option is \fB\-mno\-exr\fR. 
14316 This option is valid only for H8S targets.
14317 .IP "\fB\-mint32\fR" 4
14318 .IX Item "-mint32"
14319 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
14320 .IP "\fB\-malign\-300\fR" 4
14321 .IX Item "-malign-300"
14322 On the H8/300H and H8S, use the same alignment rules as for the H8/300.
14323 The default for the H8/300H and H8S is to align longs and floats on
14324 4\-byte boundaries.
14325 \&\fB\-malign\-300\fR causes them to be aligned on 2\-byte boundaries.
14326 This option has no effect on the H8/300.
14327 .PP
14328 \fI\s-1HPPA\s0 Options\fR
14329 .IX Subsection "HPPA Options"
14330 .PP
14331 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
14332 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
14333 .IX Item "-march=architecture-type"
14334 Generate code for the specified architecture.  The choices for
14335 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA\s0 1.0, \fB1.1\fR for \s-1PA\s0
14336 1.1, and \fB2.0\fR for \s-1PA\s0 2.0 processors.  Refer to
14337 \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
14338 architecture option for your machine.  Code compiled for lower numbered
14339 architectures runs on higher numbered architectures, but not the
14340 other way around.
14341 .IP "\fB\-mpa\-risc\-1\-0\fR" 4
14342 .IX Item "-mpa-risc-1-0"
14343 .PD 0
14344 .IP "\fB\-mpa\-risc\-1\-1\fR" 4
14345 .IX Item "-mpa-risc-1-1"
14346 .IP "\fB\-mpa\-risc\-2\-0\fR" 4
14347 .IX Item "-mpa-risc-2-0"
14348 .PD
14349 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
14350 .IP "\fB\-mjump\-in\-delay\fR" 4
14351 .IX Item "-mjump-in-delay"
14352 This option is ignored and provided for compatibility purposes only.
14353 .IP "\fB\-mdisable\-fpregs\fR" 4
14354 .IX Item "-mdisable-fpregs"
14355 Prevent floating-point registers from being used in any manner.  This is
14356 necessary for compiling kernels that perform lazy context switching of
14357 floating-point registers.  If you use this option and attempt to perform
14358 floating-point operations, the compiler aborts.
14359 .IP "\fB\-mdisable\-indexing\fR" 4
14360 .IX Item "-mdisable-indexing"
14361 Prevent the compiler from using indexing address modes.  This avoids some
14362 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH\s0.
14363 .IP "\fB\-mno\-space\-regs\fR" 4
14364 .IX Item "-mno-space-regs"
14365 Generate code that assumes the target has no space registers.  This allows
14366 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
14367 .Sp
14368 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
14369 .IP "\fB\-mfast\-indirect\-calls\fR" 4
14370 .IX Item "-mfast-indirect-calls"
14371 Generate code that assumes calls never cross space boundaries.  This
14372 allows \s-1GCC\s0 to emit code that performs faster indirect calls.
14373 .Sp
14374 This option does not work in the presence of shared libraries or nested
14375 functions.
14376 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
14377 .IX Item "-mfixed-range=register-range"
14378 Generate code treating the given register range as fixed registers.
14379 A fixed register is one that the register allocator cannot use.  This is
14380 useful when compiling kernel code.  A register range is specified as
14381 two registers separated by a dash.  Multiple register ranges can be
14382 specified separated by a comma.
14383 .IP "\fB\-mlong\-load\-store\fR" 4
14384 .IX Item "-mlong-load-store"
14385 Generate 3\-instruction load and store sequences as sometimes required by
14386 the HP-UX 10 linker.  This is equivalent to the \fB+k\fR option to
14387 the \s-1HP\s0 compilers.
14388 .IP "\fB\-mportable\-runtime\fR" 4
14389 .IX Item "-mportable-runtime"
14390 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
14391 .IP "\fB\-mgas\fR" 4
14392 .IX Item "-mgas"
14393 Enable the use of assembler directives only \s-1GAS\s0 understands.
14394 .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
14395 .IX Item "-mschedule=cpu-type"
14396 Schedule code according to the constraints for the machine type
14397 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
14398 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR.  Refer
14399 to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
14400 proper scheduling option for your machine.  The default scheduling is
14401 \&\fB8000\fR.
14402 .IP "\fB\-mlinker\-opt\fR" 4
14403 .IX Item "-mlinker-opt"
14404 Enable the optimization pass in the HP-UX linker.  Note this makes symbolic
14405 debugging impossible.  It also triggers a bug in the HP-UX 8 and HP-UX 9
14406 linkers in which they give bogus error messages when linking some programs.
14407 .IP "\fB\-msoft\-float\fR" 4
14408 .IX Item "-msoft-float"
14409 Generate output containing library calls for floating point.
14410 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
14411 targets.  Normally the facilities of the machine's usual C compiler are
14412 used, but this cannot be done directly in cross-compilation.  You must make
14413 your own arrangements to provide suitable library functions for
14414 cross-compilation.
14415 .Sp
14416 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
14417 therefore, it is only useful if you compile \fIall\fR of a program with
14418 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
14419 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
14420 this to work.
14421 .IP "\fB\-msio\fR" 4
14422 .IX Item "-msio"
14423 Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO\s0.  The default is
14424 \&\fB\-mwsio\fR.  This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
14425 \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO\s0.  These
14426 options are available under HP-UX and HI-UX.
14427 .IP "\fB\-mgnu\-ld\fR" 4
14428 .IX Item "-mgnu-ld"
14429 Use options specific to \s-1GNU\s0 \fBld\fR.
14430 This passes \fB\-shared\fR to \fBld\fR when
14431 building a shared library.  It is the default when \s-1GCC\s0 is configured,
14432 explicitly or implicitly, with the \s-1GNU\s0 linker.  This option does not
14433 affect which \fBld\fR is called; it only changes what parameters
14434 are passed to that \fBld\fR.
14435 The \fBld\fR that is called is determined by the
14436 \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
14437 finally by the user's \fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed
14438 using \fBwhich `gcc \-print\-prog\-name=ld`\fR.  This option is only available
14439 on the 64\-bit HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
14440 .IP "\fB\-mhp\-ld\fR" 4
14441 .IX Item "-mhp-ld"
14442 Use options specific to \s-1HP\s0 \fBld\fR.
14443 This passes \fB\-b\fR to \fBld\fR when building
14444 a shared library and passes \fB+Accept TypeMismatch\fR to \fBld\fR on all
14445 links.  It is the default when \s-1GCC\s0 is configured, explicitly or
14446 implicitly, with the \s-1HP\s0 linker.  This option does not affect
14447 which \fBld\fR is called; it only changes what parameters are passed to that
14448 \&\fBld\fR.
14449 The \fBld\fR that is called is determined by the \fB\-\-with\-ld\fR
14450 configure option, \s-1GCC\s0's program search path, and finally by the user's
14451 \&\fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed using \fBwhich
14452 `gcc \-print\-prog\-name=ld`\fR.  This option is only available on the 64\-bit
14453 HP-UX \s-1GCC\s0, i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
14454 .IP "\fB\-mlong\-calls\fR" 4
14455 .IX Item "-mlong-calls"
14456 Generate code that uses long call sequences.  This ensures that a call
14457 is always able to reach linker generated stubs.  The default is to generate
14458 long calls only when the distance from the call site to the beginning
14459 of the function or translation unit, as the case may be, exceeds a
14460 predefined limit set by the branch type being used.  The limits for
14461 normal calls are 7,600,000 and 240,000 bytes, respectively for the
14462 \&\s-1PA\s0 2.0 and \s-1PA\s0 1.X architectures.  Sibcalls are always limited at
14463 240,000 bytes.
14464 .Sp
14465 Distances are measured from the beginning of functions when using the
14466 \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
14467 and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
14468 the \s-1SOM\s0 linker.
14469 .Sp
14470 It is normally not desirable to use this option as it degrades
14471 performance.  However, it may be useful in large applications,
14472 particularly when partial linking is used to build the application.
14473 .Sp
14474 The types of long calls used depends on the capabilities of the
14475 assembler and linker, and the type of code being generated.  The
14476 impact on systems that support long absolute calls, and long pic
14477 symbol-difference or pc-relative calls should be relatively small.
14478 However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
14479 and it is quite long.
14480 .IP "\fB\-munix=\fR\fIunix-std\fR" 4
14481 .IX Item "-munix=unix-std"
14482 Generate compiler predefines and select a startfile for the specified
14483 \&\s-1UNIX\s0 standard.  The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
14484 and \fB98\fR.  \fB93\fR is supported on all HP-UX versions.  \fB95\fR
14485 is available on HP-UX 10.10 and later.  \fB98\fR is available on HP-UX
14486 11.11 and later.  The default values are \fB93\fR for HP-UX 10.00,
14487 \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
14488 and later.
14489 .Sp
14490 \&\fB\-munix=93\fR provides the same predefines as \s-1GCC\s0 3.3 and 3.4.
14491 \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
14492 and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
14493 \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
14494 \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
14495 \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
14496 .Sp
14497 It is \fIimportant\fR to note that this option changes the interfaces
14498 for various library routines.  It also affects the operational behavior
14499 of the C library.  Thus, \fIextreme\fR care is needed in using this
14500 option.
14501 .Sp
14502 Library code that is intended to operate with more than one \s-1UNIX\s0
14503 standard must test, set and restore the variable \f(CW\*(C`_\|_xpg4_extended_mask\*(C'\fR
14504 as appropriate.  Most \s-1GNU\s0 software doesn't provide this capability.
14505 .IP "\fB\-nolibdld\fR" 4
14506 .IX Item "-nolibdld"
14507 Suppress the generation of link options to search libdld.sl when the
14508 \&\fB\-static\fR option is specified on HP-UX 10 and later.
14509 .IP "\fB\-static\fR" 4
14510 .IX Item "-static"
14511 The HP-UX implementation of setlocale in libc has a dependency on
14512 libdld.sl.  There isn't an archive version of libdld.sl.  Thus,
14513 when the \fB\-static\fR option is specified, special link options
14514 are needed to resolve this dependency.
14515 .Sp
14516 On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
14517 link with libdld.sl when the \fB\-static\fR option is specified.
14518 This causes the resulting binary to be dynamic.  On the 64\-bit port,
14519 the linkers generate dynamic binaries by default in any case.  The
14520 \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
14521 adding these link options.
14522 .IP "\fB\-threads\fR" 4
14523 .IX Item "-threads"
14524 Add support for multithreading with the \fIdce thread\fR library
14525 under HP-UX.  This option sets flags for both the preprocessor and
14526 linker.
14527 .PP
14528 \fI\s-1IA\-64\s0 Options\fR
14529 .IX Subsection "IA-64 Options"
14530 .PP
14531 These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
14532 .IP "\fB\-mbig\-endian\fR" 4
14533 .IX Item "-mbig-endian"
14534 Generate code for a big-endian target.  This is the default for HP-UX.
14535 .IP "\fB\-mlittle\-endian\fR" 4
14536 .IX Item "-mlittle-endian"
14537 Generate code for a little-endian target.  This is the default for \s-1AIX5\s0
14538 and GNU/Linux.
14539 .IP "\fB\-mgnu\-as\fR" 4
14540 .IX Item "-mgnu-as"
14541 .PD 0
14542 .IP "\fB\-mno\-gnu\-as\fR" 4
14543 .IX Item "-mno-gnu-as"
14544 .PD
14545 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
14546 .IP "\fB\-mgnu\-ld\fR" 4
14547 .IX Item "-mgnu-ld"
14548 .PD 0
14549 .IP "\fB\-mno\-gnu\-ld\fR" 4
14550 .IX Item "-mno-gnu-ld"
14551 .PD
14552 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
14553 .IP "\fB\-mno\-pic\fR" 4
14554 .IX Item "-mno-pic"
14555 Generate code that does not use a global pointer register.  The result
14556 is not position independent code, and violates the \s-1IA\-64\s0 \s-1ABI\s0.
14557 .IP "\fB\-mvolatile\-asm\-stop\fR" 4
14558 .IX Item "-mvolatile-asm-stop"
14559 .PD 0
14560 .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
14561 .IX Item "-mno-volatile-asm-stop"
14562 .PD
14563 Generate (or don't) a stop bit immediately before and after volatile asm
14564 statements.
14565 .IP "\fB\-mregister\-names\fR" 4
14566 .IX Item "-mregister-names"
14567 .PD 0
14568 .IP "\fB\-mno\-register\-names\fR" 4
14569 .IX Item "-mno-register-names"
14570 .PD
14571 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
14572 the stacked registers.  This may make assembler output more readable.
14573 .IP "\fB\-mno\-sdata\fR" 4
14574 .IX Item "-mno-sdata"
14575 .PD 0
14576 .IP "\fB\-msdata\fR" 4
14577 .IX Item "-msdata"
14578 .PD
14579 Disable (or enable) optimizations that use the small data section.  This may
14580 be useful for working around optimizer bugs.
14581 .IP "\fB\-mconstant\-gp\fR" 4
14582 .IX Item "-mconstant-gp"
14583 Generate code that uses a single constant global pointer value.  This is
14584 useful when compiling kernel code.
14585 .IP "\fB\-mauto\-pic\fR" 4
14586 .IX Item "-mauto-pic"
14587 Generate code that is self-relocatable.  This implies \fB\-mconstant\-gp\fR.
14588 This is useful when compiling firmware code.
14589 .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
14590 .IX Item "-minline-float-divide-min-latency"
14591 Generate code for inline divides of floating-point values
14592 using the minimum latency algorithm.
14593 .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
14594 .IX Item "-minline-float-divide-max-throughput"
14595 Generate code for inline divides of floating-point values
14596 using the maximum throughput algorithm.
14597 .IP "\fB\-mno\-inline\-float\-divide\fR" 4
14598 .IX Item "-mno-inline-float-divide"
14599 Do not generate inline code for divides of floating-point values.
14600 .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
14601 .IX Item "-minline-int-divide-min-latency"
14602 Generate code for inline divides of integer values
14603 using the minimum latency algorithm.
14604 .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
14605 .IX Item "-minline-int-divide-max-throughput"
14606 Generate code for inline divides of integer values
14607 using the maximum throughput algorithm.
14608 .IP "\fB\-mno\-inline\-int\-divide\fR" 4
14609 .IX Item "-mno-inline-int-divide"
14610 Do not generate inline code for divides of integer values.
14611 .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
14612 .IX Item "-minline-sqrt-min-latency"
14613 Generate code for inline square roots
14614 using the minimum latency algorithm.
14615 .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
14616 .IX Item "-minline-sqrt-max-throughput"
14617 Generate code for inline square roots
14618 using the maximum throughput algorithm.
14619 .IP "\fB\-mno\-inline\-sqrt\fR" 4
14620 .IX Item "-mno-inline-sqrt"
14621 Do not generate inline code for \f(CW\*(C`sqrt\*(C'\fR.
14622 .IP "\fB\-mfused\-madd\fR" 4
14623 .IX Item "-mfused-madd"
14624 .PD 0
14625 .IP "\fB\-mno\-fused\-madd\fR" 4
14626 .IX Item "-mno-fused-madd"
14627 .PD
14628 Do (don't) generate code that uses the fused multiply/add or multiply/subtract
14629 instructions.  The default is to use these instructions.
14630 .IP "\fB\-mno\-dwarf2\-asm\fR" 4
14631 .IX Item "-mno-dwarf2-asm"
14632 .PD 0
14633 .IP "\fB\-mdwarf2\-asm\fR" 4
14634 .IX Item "-mdwarf2-asm"
14635 .PD
14636 Don't (or do) generate assembler code for the \s-1DWARF\s0 2 line number debugging
14637 info.  This may be useful when not using the \s-1GNU\s0 assembler.
14638 .IP "\fB\-mearly\-stop\-bits\fR" 4
14639 .IX Item "-mearly-stop-bits"
14640 .PD 0
14641 .IP "\fB\-mno\-early\-stop\-bits\fR" 4
14642 .IX Item "-mno-early-stop-bits"
14643 .PD
14644 Allow stop bits to be placed earlier than immediately preceding the
14645 instruction that triggered the stop bit.  This can improve instruction
14646 scheduling, but does not always do so.
14647 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
14648 .IX Item "-mfixed-range=register-range"
14649 Generate code treating the given register range as fixed registers.
14650 A fixed register is one that the register allocator cannot use.  This is
14651 useful when compiling kernel code.  A register range is specified as
14652 two registers separated by a dash.  Multiple register ranges can be
14653 specified separated by a comma.
14654 .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
14655 .IX Item "-mtls-size=tls-size"
14656 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 14, 22, and
14657 64.
14658 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
14659 .IX Item "-mtune=cpu-type"
14660 Tune the instruction scheduling for a particular \s-1CPU\s0, Valid values are
14661 \&\fBitanium\fR, \fBitanium1\fR, \fBmerced\fR, \fBitanium2\fR,
14662 and \fBmckinley\fR.
14663 .IP "\fB\-milp32\fR" 4
14664 .IX Item "-milp32"
14665 .PD 0
14666 .IP "\fB\-mlp64\fR" 4
14667 .IX Item "-mlp64"
14668 .PD
14669 Generate code for a 32\-bit or 64\-bit environment.
14670 The 32\-bit environment sets int, long and pointer to 32 bits.
14671 The 64\-bit environment sets int to 32 bits and long and pointer
14672 to 64 bits.  These are HP-UX specific flags.
14673 .IP "\fB\-mno\-sched\-br\-data\-spec\fR" 4
14674 .IX Item "-mno-sched-br-data-spec"
14675 .PD 0
14676 .IP "\fB\-msched\-br\-data\-spec\fR" 4
14677 .IX Item "-msched-br-data-spec"
14678 .PD
14679 (Dis/En)able data speculative scheduling before reload.
14680 This results in generation of \f(CW\*(C`ld.a\*(C'\fR instructions and
14681 the corresponding check instructions (\f(CW\*(C`ld.c\*(C'\fR / \f(CW\*(C`chk.a\*(C'\fR).
14682 The default is 'disable'.
14683 .IP "\fB\-msched\-ar\-data\-spec\fR" 4
14684 .IX Item "-msched-ar-data-spec"
14685 .PD 0
14686 .IP "\fB\-mno\-sched\-ar\-data\-spec\fR" 4
14687 .IX Item "-mno-sched-ar-data-spec"
14688 .PD
14689 (En/Dis)able data speculative scheduling after reload.
14690 This results in generation of \f(CW\*(C`ld.a\*(C'\fR instructions and
14691 the corresponding check instructions (\f(CW\*(C`ld.c\*(C'\fR / \f(CW\*(C`chk.a\*(C'\fR).
14692 The default is 'enable'.
14693 .IP "\fB\-mno\-sched\-control\-spec\fR" 4
14694 .IX Item "-mno-sched-control-spec"
14695 .PD 0
14696 .IP "\fB\-msched\-control\-spec\fR" 4
14697 .IX Item "-msched-control-spec"
14698 .PD
14699 (Dis/En)able control speculative scheduling.  This feature is
14700 available only during region scheduling (i.e. before reload).
14701 This results in generation of the \f(CW\*(C`ld.s\*(C'\fR instructions and
14702 the corresponding check instructions \f(CW\*(C`chk.s\*(C'\fR.
14703 The default is 'disable'.
14704 .IP "\fB\-msched\-br\-in\-data\-spec\fR" 4
14705 .IX Item "-msched-br-in-data-spec"
14706 .PD 0
14707 .IP "\fB\-mno\-sched\-br\-in\-data\-spec\fR" 4
14708 .IX Item "-mno-sched-br-in-data-spec"
14709 .PD
14710 (En/Dis)able speculative scheduling of the instructions that
14711 are dependent on the data speculative loads before reload.
14712 This is effective only with \fB\-msched\-br\-data\-spec\fR enabled.
14713 The default is 'enable'.
14714 .IP "\fB\-msched\-ar\-in\-data\-spec\fR" 4
14715 .IX Item "-msched-ar-in-data-spec"
14716 .PD 0
14717 .IP "\fB\-mno\-sched\-ar\-in\-data\-spec\fR" 4
14718 .IX Item "-mno-sched-ar-in-data-spec"
14719 .PD
14720 (En/Dis)able speculative scheduling of the instructions that
14721 are dependent on the data speculative loads after reload.
14722 This is effective only with \fB\-msched\-ar\-data\-spec\fR enabled.
14723 The default is 'enable'.
14724 .IP "\fB\-msched\-in\-control\-spec\fR" 4
14725 .IX Item "-msched-in-control-spec"
14726 .PD 0
14727 .IP "\fB\-mno\-sched\-in\-control\-spec\fR" 4
14728 .IX Item "-mno-sched-in-control-spec"
14729 .PD
14730 (En/Dis)able speculative scheduling of the instructions that
14731 are dependent on the control speculative loads.
14732 This is effective only with \fB\-msched\-control\-spec\fR enabled.
14733 The default is 'enable'.
14734 .IP "\fB\-mno\-sched\-prefer\-non\-data\-spec\-insns\fR" 4
14735 .IX Item "-mno-sched-prefer-non-data-spec-insns"
14736 .PD 0
14737 .IP "\fB\-msched\-prefer\-non\-data\-spec\-insns\fR" 4
14738 .IX Item "-msched-prefer-non-data-spec-insns"
14739 .PD
14740 If enabled, data-speculative instructions are chosen for schedule
14741 only if there are no other choices at the moment.  This makes
14742 the use of the data speculation much more conservative.
14743 The default is 'disable'.
14744 .IP "\fB\-mno\-sched\-prefer\-non\-control\-spec\-insns\fR" 4
14745 .IX Item "-mno-sched-prefer-non-control-spec-insns"
14746 .PD 0
14747 .IP "\fB\-msched\-prefer\-non\-control\-spec\-insns\fR" 4
14748 .IX Item "-msched-prefer-non-control-spec-insns"
14749 .PD
14750 If enabled, control-speculative instructions are chosen for schedule
14751 only if there are no other choices at the moment.  This makes
14752 the use of the control speculation much more conservative.
14753 The default is 'disable'.
14754 .IP "\fB\-mno\-sched\-count\-spec\-in\-critical\-path\fR" 4
14755 .IX Item "-mno-sched-count-spec-in-critical-path"
14756 .PD 0
14757 .IP "\fB\-msched\-count\-spec\-in\-critical\-path\fR" 4
14758 .IX Item "-msched-count-spec-in-critical-path"
14759 .PD
14760 If enabled, speculative dependencies are considered during
14761 computation of the instructions priorities.  This makes the use of the
14762 speculation a bit more conservative.
14763 The default is 'disable'.
14764 .IP "\fB\-msched\-spec\-ldc\fR" 4
14765 .IX Item "-msched-spec-ldc"
14766 Use a simple data speculation check.  This option is on by default.
14767 .IP "\fB\-msched\-control\-spec\-ldc\fR" 4
14768 .IX Item "-msched-control-spec-ldc"
14769 Use a simple check for control speculation.  This option is on by default.
14770 .IP "\fB\-msched\-stop\-bits\-after\-every\-cycle\fR" 4
14771 .IX Item "-msched-stop-bits-after-every-cycle"
14772 Place a stop bit after every cycle when scheduling.  This option is on
14773 by default.
14774 .IP "\fB\-msched\-fp\-mem\-deps\-zero\-cost\fR" 4
14775 .IX Item "-msched-fp-mem-deps-zero-cost"
14776 Assume that floating-point stores and loads are not likely to cause a conflict
14777 when placed into the same instruction group.  This option is disabled by
14778 default.
14779 .IP "\fB\-msel\-sched\-dont\-check\-control\-spec\fR" 4
14780 .IX Item "-msel-sched-dont-check-control-spec"
14781 Generate checks for control speculation in selective scheduling.
14782 This flag is disabled by default.
14783 .IP "\fB\-msched\-max\-memory\-insns=\fR\fImax-insns\fR" 4
14784 .IX Item "-msched-max-memory-insns=max-insns"
14785 Limit on the number of memory insns per instruction group, giving lower
14786 priority to subsequent memory insns attempting to schedule in the same
14787 instruction group. Frequently useful to prevent cache bank conflicts.
14788 The default value is 1.
14789 .IP "\fB\-msched\-max\-memory\-insns\-hard\-limit\fR" 4
14790 .IX Item "-msched-max-memory-insns-hard-limit"
14791 Makes the limit specified by \fBmsched-max-memory-insns\fR a hard limit,
14792 disallowing more than that number in an instruction group.
14793 Otherwise, the limit is \*(L"soft\*(R", meaning that non-memory operations
14794 are preferred when the limit is reached, but memory operations may still
14795 be scheduled.
14796 .PP
14797 \fI\s-1LM32\s0 Options\fR
14798 .IX Subsection "LM32 Options"
14799 .PP
14800 These \fB\-m\fR options are defined for the LatticeMico32 architecture:
14801 .IP "\fB\-mbarrel\-shift\-enabled\fR" 4
14802 .IX Item "-mbarrel-shift-enabled"
14803 Enable barrel-shift instructions.
14804 .IP "\fB\-mdivide\-enabled\fR" 4
14805 .IX Item "-mdivide-enabled"
14806 Enable divide and modulus instructions.
14807 .IP "\fB\-mmultiply\-enabled\fR" 4
14808 .IX Item "-mmultiply-enabled"
14809 Enable multiply instructions.
14810 .IP "\fB\-msign\-extend\-enabled\fR" 4
14811 .IX Item "-msign-extend-enabled"
14812 Enable sign extend instructions.
14813 .IP "\fB\-muser\-enabled\fR" 4
14814 .IX Item "-muser-enabled"
14815 Enable user-defined instructions.
14816 .PP
14817 \fIM32C Options\fR
14818 .IX Subsection "M32C Options"
14819 .IP "\fB\-mcpu=\fR\fIname\fR" 4
14820 .IX Item "-mcpu=name"
14821 Select the \s-1CPU\s0 for which code is generated.  \fIname\fR may be one of
14822 \&\fBr8c\fR for the R8C/Tiny series, \fBm16c\fR for the M16C (up to
14823 /60) series, \fBm32cm\fR for the M16C/80 series, or \fBm32c\fR for
14824 the M32C/80 series.
14825 .IP "\fB\-msim\fR" 4
14826 .IX Item "-msim"
14827 Specifies that the program will be run on the simulator.  This causes
14828 an alternate runtime library to be linked in which supports, for
14829 example, file I/O.  You must not use this option when generating
14830 programs that will run on real hardware; you must provide your own
14831 runtime library for whatever I/O functions are needed.
14832 .IP "\fB\-memregs=\fR\fInumber\fR" 4
14833 .IX Item "-memregs=number"
14834 Specifies the number of memory-based pseudo-registers \s-1GCC\s0 uses
14835 during code generation.  These pseudo-registers are used like real
14836 registers, so there is a tradeoff between \s-1GCC\s0's ability to fit the
14837 code into available registers, and the performance penalty of using
14838 memory instead of registers.  Note that all modules in a program must
14839 be compiled with the same value for this option.  Because of that, you
14840 must not use this option with \s-1GCC\s0's default runtime libraries.
14841 .PP
14842 \fIM32R/D Options\fR
14843 .IX Subsection "M32R/D Options"
14844 .PP
14845 These \fB\-m\fR options are defined for Renesas M32R/D architectures:
14846 .IP "\fB\-m32r2\fR" 4
14847 .IX Item "-m32r2"
14848 Generate code for the M32R/2.
14849 .IP "\fB\-m32rx\fR" 4
14850 .IX Item "-m32rx"
14851 Generate code for the M32R/X.
14852 .IP "\fB\-m32r\fR" 4
14853 .IX Item "-m32r"
14854 Generate code for the M32R.  This is the default.
14855 .IP "\fB\-mmodel=small\fR" 4
14856 .IX Item "-mmodel=small"
14857 Assume all objects live in the lower 16MB of memory (so that their addresses
14858 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
14859 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
14860 This is the default.
14861 .Sp
14862 The addressability of a particular object can be set with the
14863 \&\f(CW\*(C`model\*(C'\fR attribute.
14864 .IP "\fB\-mmodel=medium\fR" 4
14865 .IX Item "-mmodel=medium"
14866 Assume objects may be anywhere in the 32\-bit address space (the compiler
14867 generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
14868 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
14869 .IP "\fB\-mmodel=large\fR" 4
14870 .IX Item "-mmodel=large"
14871 Assume objects may be anywhere in the 32\-bit address space (the compiler
14872 generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
14873 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
14874 (the compiler generates the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
14875 instruction sequence).
14876 .IP "\fB\-msdata=none\fR" 4
14877 .IX Item "-msdata=none"
14878 Disable use of the small data area.  Variables are put into
14879 one of \f(CW\*(C`.data\*(C'\fR, \f(CW\*(C`.bss\*(C'\fR, or \f(CW\*(C`.rodata\*(C'\fR (unless the
14880 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
14881 This is the default.
14882 .Sp
14883 The small data area consists of sections \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR.
14884 Objects may be explicitly put in the small data area with the
14885 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
14886 .IP "\fB\-msdata=sdata\fR" 4
14887 .IX Item "-msdata=sdata"
14888 Put small global and static data in the small data area, but do not
14889 generate special code to reference them.
14890 .IP "\fB\-msdata=use\fR" 4
14891 .IX Item "-msdata=use"
14892 Put small global and static data in the small data area, and generate
14893 special instructions to reference them.
14894 .IP "\fB\-G\fR \fInum\fR" 4
14895 .IX Item "-G num"
14896 Put global and static objects less than or equal to \fInum\fR bytes
14897 into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
14898 sections.  The default value of \fInum\fR is 8.
14899 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
14900 for this option to have any effect.
14901 .Sp
14902 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
14903 Compiling with different values of \fInum\fR may or may not work; if it
14904 doesn't the linker gives an error message\-\-\-incorrect code is not
14905 generated.
14906 .IP "\fB\-mdebug\fR" 4
14907 .IX Item "-mdebug"
14908 Makes the M32R\-specific code in the compiler display some statistics
14909 that might help in debugging programs.
14910 .IP "\fB\-malign\-loops\fR" 4
14911 .IX Item "-malign-loops"
14912 Align all loops to a 32\-byte boundary.
14913 .IP "\fB\-mno\-align\-loops\fR" 4
14914 .IX Item "-mno-align-loops"
14915 Do not enforce a 32\-byte alignment for loops.  This is the default.
14916 .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
14917 .IX Item "-missue-rate=number"
14918 Issue \fInumber\fR instructions per cycle.  \fInumber\fR can only be 1
14919 or 2.
14920 .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
14921 .IX Item "-mbranch-cost=number"
14922 \&\fInumber\fR can only be 1 or 2.  If it is 1 then branches are
14923 preferred over conditional code, if it is 2, then the opposite applies.
14924 .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
14925 .IX Item "-mflush-trap=number"
14926 Specifies the trap number to use to flush the cache.  The default is
14927 12.  Valid numbers are between 0 and 15 inclusive.
14928 .IP "\fB\-mno\-flush\-trap\fR" 4
14929 .IX Item "-mno-flush-trap"
14930 Specifies that the cache cannot be flushed by using a trap.
14931 .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
14932 .IX Item "-mflush-func=name"
14933 Specifies the name of the operating system function to call to flush
14934 the cache.  The default is \fB_flush_cache\fR, but a function call
14935 is only used if a trap is not available.
14936 .IP "\fB\-mno\-flush\-func\fR" 4
14937 .IX Item "-mno-flush-func"
14938 Indicates that there is no \s-1OS\s0 function for flushing the cache.
14939 .PP
14940 \fIM680x0 Options\fR
14941 .IX Subsection "M680x0 Options"
14942 .PP
14943 These are the \fB\-m\fR options defined for M680x0 and ColdFire processors.
14944 The default settings depend on which architecture was selected when
14945 the compiler was configured; the defaults for the most common choices
14946 are given below.
14947 .IP "\fB\-march=\fR\fIarch\fR" 4
14948 .IX Item "-march=arch"
14949 Generate code for a specific M680x0 or ColdFire instruction set
14950 architecture.  Permissible values of \fIarch\fR for M680x0
14951 architectures are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
14952 \&\fB68030\fR, \fB68040\fR, \fB68060\fR and \fBcpu32\fR.  ColdFire
14953 architectures are selected according to Freescale's \s-1ISA\s0 classification
14954 and the permissible values are: \fBisaa\fR, \fBisaaplus\fR,
14955 \&\fBisab\fR and \fBisac\fR.
14956 .Sp
14957 \&\s-1GCC\s0 defines a macro \f(CW\*(C`_\|_mcf\f(CIarch\f(CW_\|_\*(C'\fR whenever it is generating
14958 code for a ColdFire target.  The \fIarch\fR in this macro is one of the
14959 \&\fB\-march\fR arguments given above.
14960 .Sp
14961 When used together, \fB\-march\fR and \fB\-mtune\fR select code
14962 that runs on a family of similar processors but that is optimized
14963 for a particular microarchitecture.
14964 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
14965 .IX Item "-mcpu=cpu"
14966 Generate code for a specific M680x0 or ColdFire processor.
14967 The M680x0 \fIcpu\fRs are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
14968 \&\fB68030\fR, \fB68040\fR, \fB68060\fR, \fB68302\fR, \fB68332\fR
14969 and \fBcpu32\fR.  The ColdFire \fIcpu\fRs are given by the table
14970 below, which also classifies the CPUs into families:
14971 .RS 4
14972 .IP "Family : \fB\-mcpu\fR arguments" 4
14973 .IX Item "Family : -mcpu arguments"
14974 .PD 0
14975 .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
14976 .IX Item "51 : 51 51ac 51ag 51cn 51em 51je 51jf 51jg 51jm 51mm 51qe 51qm"
14977 .IP "\fB5206\fR : \fB5202\fR \fB5204\fR \fB5206\fR" 4
14978 .IX Item "5206 : 5202 5204 5206"
14979 .IP "\fB5206e\fR : \fB5206e\fR" 4
14980 .IX Item "5206e : 5206e"
14981 .IP "\fB5208\fR : \fB5207\fR \fB5208\fR" 4
14982 .IX Item "5208 : 5207 5208"
14983 .IP "\fB5211a\fR : \fB5210a\fR \fB5211a\fR" 4
14984 .IX Item "5211a : 5210a 5211a"
14985 .IP "\fB5213\fR : \fB5211\fR \fB5212\fR \fB5213\fR" 4
14986 .IX Item "5213 : 5211 5212 5213"
14987 .IP "\fB5216\fR : \fB5214\fR \fB5216\fR" 4
14988 .IX Item "5216 : 5214 5216"
14989 .IP "\fB52235\fR : \fB52230\fR \fB52231\fR \fB52232\fR \fB52233\fR \fB52234\fR \fB52235\fR" 4
14990 .IX Item "52235 : 52230 52231 52232 52233 52234 52235"
14991 .IP "\fB5225\fR : \fB5224\fR \fB5225\fR" 4
14992 .IX Item "5225 : 5224 5225"
14993 .IP "\fB52259\fR : \fB52252\fR \fB52254\fR \fB52255\fR \fB52256\fR \fB52258\fR \fB52259\fR" 4
14994 .IX Item "52259 : 52252 52254 52255 52256 52258 52259"
14995 .IP "\fB5235\fR : \fB5232\fR \fB5233\fR \fB5234\fR \fB5235\fR \fB523x\fR" 4
14996 .IX Item "5235 : 5232 5233 5234 5235 523x"
14997 .IP "\fB5249\fR : \fB5249\fR" 4
14998 .IX Item "5249 : 5249"
14999 .IP "\fB5250\fR : \fB5250\fR" 4
15000 .IX Item "5250 : 5250"
15001 .IP "\fB5271\fR : \fB5270\fR \fB5271\fR" 4
15002 .IX Item "5271 : 5270 5271"
15003 .IP "\fB5272\fR : \fB5272\fR" 4
15004 .IX Item "5272 : 5272"
15005 .IP "\fB5275\fR : \fB5274\fR \fB5275\fR" 4
15006 .IX Item "5275 : 5274 5275"
15007 .IP "\fB5282\fR : \fB5280\fR \fB5281\fR \fB5282\fR \fB528x\fR" 4
15008 .IX Item "5282 : 5280 5281 5282 528x"
15009 .IP "\fB53017\fR : \fB53011\fR \fB53012\fR \fB53013\fR \fB53014\fR \fB53015\fR \fB53016\fR \fB53017\fR" 4
15010 .IX Item "53017 : 53011 53012 53013 53014 53015 53016 53017"
15011 .IP "\fB5307\fR : \fB5307\fR" 4
15012 .IX Item "5307 : 5307"
15013 .IP "\fB5329\fR : \fB5327\fR \fB5328\fR \fB5329\fR \fB532x\fR" 4
15014 .IX Item "5329 : 5327 5328 5329 532x"
15015 .IP "\fB5373\fR : \fB5372\fR \fB5373\fR \fB537x\fR" 4
15016 .IX Item "5373 : 5372 5373 537x"
15017 .IP "\fB5407\fR : \fB5407\fR" 4
15018 .IX Item "5407 : 5407"
15019 .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
15020 .IX Item "5475 : 5470 5471 5472 5473 5474 5475 547x 5480 5481 5482 5483 5484 5485"
15021 .RE
15022 .RS 4
15023 .PD
15024 .Sp
15025 \&\fB\-mcpu=\fR\fIcpu\fR overrides \fB\-march=\fR\fIarch\fR if
15026 \&\fIarch\fR is compatible with \fIcpu\fR.  Other combinations of
15027 \&\fB\-mcpu\fR and \fB\-march\fR are rejected.
15028 .Sp
15029 \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcf_cpu_\f(CIcpu\f(CW\*(C'\fR when ColdFire target
15030 \&\fIcpu\fR is selected.  It also defines \f(CW\*(C`_\|_mcf_family_\f(CIfamily\f(CW\*(C'\fR,
15031 where the value of \fIfamily\fR is given by the table above.
15032 .RE
15033 .IP "\fB\-mtune=\fR\fItune\fR" 4
15034 .IX Item "-mtune=tune"
15035 Tune the code for a particular microarchitecture within the
15036 constraints set by \fB\-march\fR and \fB\-mcpu\fR.
15037 The M680x0 microarchitectures are: \fB68000\fR, \fB68010\fR,
15038 \&\fB68020\fR, \fB68030\fR, \fB68040\fR, \fB68060\fR
15039 and \fBcpu32\fR.  The ColdFire microarchitectures
15040 are: \fBcfv1\fR, \fBcfv2\fR, \fBcfv3\fR, \fBcfv4\fR and \fBcfv4e\fR.
15041 .Sp
15042 You can also use \fB\-mtune=68020\-40\fR for code that needs
15043 to run relatively well on 68020, 68030 and 68040 targets.
15044 \&\fB\-mtune=68020\-60\fR is similar but includes 68060 targets
15045 as well.  These two options select the same tuning decisions as
15046 \&\fB\-m68020\-40\fR and \fB\-m68020\-60\fR respectively.
15047 .Sp
15048 \&\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
15049 when tuning for 680x0 architecture \fIarch\fR.  It also defines
15050 \&\f(CW\*(C`mc\f(CIarch\f(CW\*(C'\fR unless either \fB\-ansi\fR or a non-GNU \fB\-std\fR
15051 option is used.  If \s-1GCC\s0 is tuning for a range of architectures,
15052 as selected by \fB\-mtune=68020\-40\fR or \fB\-mtune=68020\-60\fR,
15053 it defines the macros for every architecture in the range.
15054 .Sp
15055 \&\s-1GCC\s0 also defines the macro \f(CW\*(C`_\|_m\f(CIuarch\f(CW_\|_\*(C'\fR when tuning for
15056 ColdFire microarchitecture \fIuarch\fR, where \fIuarch\fR is one
15057 of the arguments given above.
15058 .IP "\fB\-m68000\fR" 4
15059 .IX Item "-m68000"
15060 .PD 0
15061 .IP "\fB\-mc68000\fR" 4
15062 .IX Item "-mc68000"
15063 .PD
15064 Generate output for a 68000.  This is the default
15065 when the compiler is configured for 68000\-based systems.
15066 It is equivalent to \fB\-march=68000\fR.
15067 .Sp
15068 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
15069 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
15070 .IP "\fB\-m68010\fR" 4
15071 .IX Item "-m68010"
15072 Generate output for a 68010.  This is the default
15073 when the compiler is configured for 68010\-based systems.
15074 It is equivalent to \fB\-march=68010\fR.
15075 .IP "\fB\-m68020\fR" 4
15076 .IX Item "-m68020"
15077 .PD 0
15078 .IP "\fB\-mc68020\fR" 4
15079 .IX Item "-mc68020"
15080 .PD
15081 Generate output for a 68020.  This is the default
15082 when the compiler is configured for 68020\-based systems.
15083 It is equivalent to \fB\-march=68020\fR.
15084 .IP "\fB\-m68030\fR" 4
15085 .IX Item "-m68030"
15086 Generate output for a 68030.  This is the default when the compiler is
15087 configured for 68030\-based systems.  It is equivalent to
15088 \&\fB\-march=68030\fR.
15089 .IP "\fB\-m68040\fR" 4
15090 .IX Item "-m68040"
15091 Generate output for a 68040.  This is the default when the compiler is
15092 configured for 68040\-based systems.  It is equivalent to
15093 \&\fB\-march=68040\fR.
15094 .Sp
15095 This option inhibits the use of 68881/68882 instructions that have to be
15096 emulated by software on the 68040.  Use this option if your 68040 does not
15097 have code to emulate those instructions.
15098 .IP "\fB\-m68060\fR" 4
15099 .IX Item "-m68060"
15100 Generate output for a 68060.  This is the default when the compiler is
15101 configured for 68060\-based systems.  It is equivalent to
15102 \&\fB\-march=68060\fR.
15103 .Sp
15104 This option inhibits the use of 68020 and 68881/68882 instructions that
15105 have to be emulated by software on the 68060.  Use this option if your 68060
15106 does not have code to emulate those instructions.
15107 .IP "\fB\-mcpu32\fR" 4
15108 .IX Item "-mcpu32"
15109 Generate output for a \s-1CPU32\s0.  This is the default
15110 when the compiler is configured for CPU32\-based systems.
15111 It is equivalent to \fB\-march=cpu32\fR.
15112 .Sp
15113 Use this option for microcontrollers with a
15114 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
15115 68336, 68340, 68341, 68349 and 68360.
15116 .IP "\fB\-m5200\fR" 4
15117 .IX Item "-m5200"
15118 Generate output for a 520X ColdFire \s-1CPU\s0.  This is the default
15119 when the compiler is configured for 520X\-based systems.
15120 It is equivalent to \fB\-mcpu=5206\fR, and is now deprecated
15121 in favor of that option.
15122 .Sp
15123 Use this option for microcontroller with a 5200 core, including
15124 the \s-1MCF5202\s0, \s-1MCF5203\s0, \s-1MCF5204\s0 and \s-1MCF5206\s0.
15125 .IP "\fB\-m5206e\fR" 4
15126 .IX Item "-m5206e"
15127 Generate output for a 5206e ColdFire \s-1CPU\s0.  The option is now
15128 deprecated in favor of the equivalent \fB\-mcpu=5206e\fR.
15129 .IP "\fB\-m528x\fR" 4
15130 .IX Item "-m528x"
15131 Generate output for a member of the ColdFire 528X family.
15132 The option is now deprecated in favor of the equivalent
15133 \&\fB\-mcpu=528x\fR.
15134 .IP "\fB\-m5307\fR" 4
15135 .IX Item "-m5307"
15136 Generate output for a ColdFire 5307 \s-1CPU\s0.  The option is now deprecated
15137 in favor of the equivalent \fB\-mcpu=5307\fR.
15138 .IP "\fB\-m5407\fR" 4
15139 .IX Item "-m5407"
15140 Generate output for a ColdFire 5407 \s-1CPU\s0.  The option is now deprecated
15141 in favor of the equivalent \fB\-mcpu=5407\fR.
15142 .IP "\fB\-mcfv4e\fR" 4
15143 .IX Item "-mcfv4e"
15144 Generate output for a ColdFire V4e family \s-1CPU\s0 (e.g. 547x/548x).
15145 This includes use of hardware floating-point instructions.
15146 The option is equivalent to \fB\-mcpu=547x\fR, and is now
15147 deprecated in favor of that option.
15148 .IP "\fB\-m68020\-40\fR" 4
15149 .IX Item "-m68020-40"
15150 Generate output for a 68040, without using any of the new instructions.
15151 This results in code that can run relatively efficiently on either a
15152 68020/68881 or a 68030 or a 68040.  The generated code does use the
15153 68881 instructions that are emulated on the 68040.
15154 .Sp
15155 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-40\fR.
15156 .IP "\fB\-m68020\-60\fR" 4
15157 .IX Item "-m68020-60"
15158 Generate output for a 68060, without using any of the new instructions.
15159 This results in code that can run relatively efficiently on either a
15160 68020/68881 or a 68030 or a 68040.  The generated code does use the
15161 68881 instructions that are emulated on the 68060.
15162 .Sp
15163 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-60\fR.
15164 .IP "\fB\-mhard\-float\fR" 4
15165 .IX Item "-mhard-float"
15166 .PD 0
15167 .IP "\fB\-m68881\fR" 4
15168 .IX Item "-m68881"
15169 .PD
15170 Generate floating-point instructions.  This is the default for 68020
15171 and above, and for ColdFire devices that have an \s-1FPU\s0.  It defines the
15172 macro \f(CW\*(C`_\|_HAVE_68881_\|_\*(C'\fR on M680x0 targets and \f(CW\*(C`_\|_mcffpu_\|_\*(C'\fR
15173 on ColdFire targets.
15174 .IP "\fB\-msoft\-float\fR" 4
15175 .IX Item "-msoft-float"
15176 Do not generate floating-point instructions; use library calls instead.
15177 This is the default for 68000, 68010, and 68832 targets.  It is also
15178 the default for ColdFire devices that have no \s-1FPU\s0.
15179 .IP "\fB\-mdiv\fR" 4
15180 .IX Item "-mdiv"
15181 .PD 0
15182 .IP "\fB\-mno\-div\fR" 4
15183 .IX Item "-mno-div"
15184 .PD
15185 Generate (do not generate) ColdFire hardware divide and remainder
15186 instructions.  If \fB\-march\fR is used without \fB\-mcpu\fR,
15187 the default is \*(L"on\*(R" for ColdFire architectures and \*(L"off\*(R" for M680x0
15188 architectures.  Otherwise, the default is taken from the target \s-1CPU\s0
15189 (either the default \s-1CPU\s0, or the one specified by \fB\-mcpu\fR).  For
15190 example, the default is \*(L"off\*(R" for \fB\-mcpu=5206\fR and \*(L"on\*(R" for
15191 \&\fB\-mcpu=5206e\fR.
15192 .Sp
15193 \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcfhwdiv_\|_\*(C'\fR when this option is enabled.
15194 .IP "\fB\-mshort\fR" 4
15195 .IX Item "-mshort"
15196 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
15197 Additionally, parameters passed on the stack are also aligned to a
15198 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
15199 .IP "\fB\-mno\-short\fR" 4
15200 .IX Item "-mno-short"
15201 Do not consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide.  This is the default.
15202 .IP "\fB\-mnobitfield\fR" 4
15203 .IX Item "-mnobitfield"
15204 .PD 0
15205 .IP "\fB\-mno\-bitfield\fR" 4
15206 .IX Item "-mno-bitfield"
15207 .PD
15208 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
15209 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
15210 .IP "\fB\-mbitfield\fR" 4
15211 .IX Item "-mbitfield"
15212 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
15213 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
15214 designed for a 68020.
15215 .IP "\fB\-mrtd\fR" 4
15216 .IX Item "-mrtd"
15217 Use a different function-calling convention, in which functions
15218 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
15219 instruction, which pops their arguments while returning.  This
15220 saves one instruction in the caller since there is no need to pop
15221 the arguments there.
15222 .Sp
15223 This calling convention is incompatible with the one normally
15224 used on Unix, so you cannot use it if you need to call libraries
15225 compiled with the Unix compiler.
15226 .Sp
15227 Also, you must provide function prototypes for all functions that
15228 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
15229 otherwise incorrect code is generated for calls to those
15230 functions.
15231 .Sp
15232 In addition, seriously incorrect code results if you call a
15233 function with too many arguments.  (Normally, extra arguments are
15234 harmlessly ignored.)
15235 .Sp
15236 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
15237 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
15238 .IP "\fB\-mno\-rtd\fR" 4
15239 .IX Item "-mno-rtd"
15240 Do not use the calling conventions selected by \fB\-mrtd\fR.
15241 This is the default.
15242 .IP "\fB\-malign\-int\fR" 4
15243 .IX Item "-malign-int"
15244 .PD 0
15245 .IP "\fB\-mno\-align\-int\fR" 4
15246 .IX Item "-mno-align-int"
15247 .PD
15248 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,
15249 \&\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
15250 boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
15251 Aligning variables on 32\-bit boundaries produces code that runs somewhat
15252 faster on processors with 32\-bit busses at the expense of more memory.
15253 .Sp
15254 \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0
15255 aligns structures containing the above types differently than
15256 most published application binary interface specifications for the m68k.
15257 .IP "\fB\-mpcrel\fR" 4
15258 .IX Item "-mpcrel"
15259 Use the pc-relative addressing mode of the 68000 directly, instead of
15260 using a global offset table.  At present, this option implies \fB\-fpic\fR,
15261 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
15262 not presently supported with \fB\-mpcrel\fR, though this could be supported for
15263 68020 and higher processors.
15264 .IP "\fB\-mno\-strict\-align\fR" 4
15265 .IX Item "-mno-strict-align"
15266 .PD 0
15267 .IP "\fB\-mstrict\-align\fR" 4
15268 .IX Item "-mstrict-align"
15269 .PD
15270 Do not (do) assume that unaligned memory references are handled by
15271 the system.
15272 .IP "\fB\-msep\-data\fR" 4
15273 .IX Item "-msep-data"
15274 Generate code that allows the data segment to be located in a different
15275 area of memory from the text segment.  This allows for execute-in-place in
15276 an environment without virtual memory management.  This option implies
15277 \&\fB\-fPIC\fR.
15278 .IP "\fB\-mno\-sep\-data\fR" 4
15279 .IX Item "-mno-sep-data"
15280 Generate code that assumes that the data segment follows the text segment.
15281 This is the default.
15282 .IP "\fB\-mid\-shared\-library\fR" 4
15283 .IX Item "-mid-shared-library"
15284 Generate code that supports shared libraries via the library \s-1ID\s0 method.
15285 This allows for execute-in-place and shared libraries in an environment
15286 without virtual memory management.  This option implies \fB\-fPIC\fR.
15287 .IP "\fB\-mno\-id\-shared\-library\fR" 4
15288 .IX Item "-mno-id-shared-library"
15289 Generate code that doesn't assume ID-based shared libraries are being used.
15290 This is the default.
15291 .IP "\fB\-mshared\-library\-id=n\fR" 4
15292 .IX Item "-mshared-library-id=n"
15293 Specifies the identification number of the ID-based shared library being
15294 compiled.  Specifying a value of 0 generates more compact code; specifying
15295 other values forces the allocation of that number to the current
15296 library, but is no more space\- or time-efficient than omitting this option.
15297 .IP "\fB\-mxgot\fR" 4
15298 .IX Item "-mxgot"
15299 .PD 0
15300 .IP "\fB\-mno\-xgot\fR" 4
15301 .IX Item "-mno-xgot"
15302 .PD
15303 When generating position-independent code for ColdFire, generate code
15304 that works if the \s-1GOT\s0 has more than 8192 entries.  This code is
15305 larger and slower than code generated without this option.  On M680x0
15306 processors, this option is not needed; \fB\-fPIC\fR suffices.
15307 .Sp
15308 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
15309 While this is relatively efficient, it only works if the \s-1GOT\s0
15310 is smaller than about 64k.  Anything larger causes the linker
15311 to report an error such as:
15312 .Sp
15313 .Vb 1
15314 \&        relocation truncated to fit: R_68K_GOT16O foobar
15315 .Ve
15316 .Sp
15317 If this happens, you should recompile your code with \fB\-mxgot\fR.
15318 It should then work with very large GOTs.  However, code generated with
15319 \&\fB\-mxgot\fR is less efficient, since it takes 4 instructions to fetch
15320 the value of a global symbol.
15321 .Sp
15322 Note that some linkers, including newer versions of the \s-1GNU\s0 linker,
15323 can create multiple GOTs and sort \s-1GOT\s0 entries.  If you have such a linker,
15324 you should only need to use \fB\-mxgot\fR when compiling a single
15325 object file that accesses more than 8192 \s-1GOT\s0 entries.  Very few do.
15326 .Sp
15327 These options have no effect unless \s-1GCC\s0 is generating
15328 position-independent code.
15329 .PP
15330 \fIMCore Options\fR
15331 .IX Subsection "MCore Options"
15332 .PP
15333 These are the \fB\-m\fR options defined for the Motorola M*Core
15334 processors.
15335 .IP "\fB\-mhardlit\fR" 4
15336 .IX Item "-mhardlit"
15337 .PD 0
15338 .IP "\fB\-mno\-hardlit\fR" 4
15339 .IX Item "-mno-hardlit"
15340 .PD
15341 Inline constants into the code stream if it can be done in two
15342 instructions or less.
15343 .IP "\fB\-mdiv\fR" 4
15344 .IX Item "-mdiv"
15345 .PD 0
15346 .IP "\fB\-mno\-div\fR" 4
15347 .IX Item "-mno-div"
15348 .PD
15349 Use the divide instruction.  (Enabled by default).
15350 .IP "\fB\-mrelax\-immediate\fR" 4
15351 .IX Item "-mrelax-immediate"
15352 .PD 0
15353 .IP "\fB\-mno\-relax\-immediate\fR" 4
15354 .IX Item "-mno-relax-immediate"
15355 .PD
15356 Allow arbitrary-sized immediates in bit operations.
15357 .IP "\fB\-mwide\-bitfields\fR" 4
15358 .IX Item "-mwide-bitfields"
15359 .PD 0
15360 .IP "\fB\-mno\-wide\-bitfields\fR" 4
15361 .IX Item "-mno-wide-bitfields"
15362 .PD
15363 Always treat bit-fields as \f(CW\*(C`int\*(C'\fR\-sized.
15364 .IP "\fB\-m4byte\-functions\fR" 4
15365 .IX Item "-m4byte-functions"
15366 .PD 0
15367 .IP "\fB\-mno\-4byte\-functions\fR" 4
15368 .IX Item "-mno-4byte-functions"
15369 .PD
15370 Force all functions to be aligned to a 4\-byte boundary.
15371 .IP "\fB\-mcallgraph\-data\fR" 4
15372 .IX Item "-mcallgraph-data"
15373 .PD 0
15374 .IP "\fB\-mno\-callgraph\-data\fR" 4
15375 .IX Item "-mno-callgraph-data"
15376 .PD
15377 Emit callgraph information.
15378 .IP "\fB\-mslow\-bytes\fR" 4
15379 .IX Item "-mslow-bytes"
15380 .PD 0
15381 .IP "\fB\-mno\-slow\-bytes\fR" 4
15382 .IX Item "-mno-slow-bytes"
15383 .PD
15384 Prefer word access when reading byte quantities.
15385 .IP "\fB\-mlittle\-endian\fR" 4
15386 .IX Item "-mlittle-endian"
15387 .PD 0
15388 .IP "\fB\-mbig\-endian\fR" 4
15389 .IX Item "-mbig-endian"
15390 .PD
15391 Generate code for a little-endian target.
15392 .IP "\fB\-m210\fR" 4
15393 .IX Item "-m210"
15394 .PD 0
15395 .IP "\fB\-m340\fR" 4
15396 .IX Item "-m340"
15397 .PD
15398 Generate code for the 210 processor.
15399 .IP "\fB\-mno\-lsim\fR" 4
15400 .IX Item "-mno-lsim"
15401 Assume that runtime support has been provided and so omit the
15402 simulator library (\fIlibsim.a)\fR from the linker command line.
15403 .IP "\fB\-mstack\-increment=\fR\fIsize\fR" 4
15404 .IX Item "-mstack-increment=size"
15405 Set the maximum amount for a single stack increment operation.  Large
15406 values can increase the speed of programs that contain functions
15407 that need a large amount of stack space, but they can also trigger a
15408 segmentation fault if the stack is extended too much.  The default
15409 value is 0x1000.
15410 .PP
15411 \fIMeP Options\fR
15412 .IX Subsection "MeP Options"
15413 .IP "\fB\-mabsdiff\fR" 4
15414 .IX Item "-mabsdiff"
15415 Enables the \f(CW\*(C`abs\*(C'\fR instruction, which is the absolute difference
15416 between two registers.
15417 .IP "\fB\-mall\-opts\fR" 4
15418 .IX Item "-mall-opts"
15419 Enables all the optional instructions\-\-\-average, multiply, divide, bit
15420 operations, leading zero, absolute difference, min/max, clip, and
15421 saturation.
15422 .IP "\fB\-maverage\fR" 4
15423 .IX Item "-maverage"
15424 Enables the \f(CW\*(C`ave\*(C'\fR instruction, which computes the average of two
15425 registers.
15426 .IP "\fB\-mbased=\fR\fIn\fR" 4
15427 .IX Item "-mbased=n"
15428 Variables of size \fIn\fR bytes or smaller are placed in the
15429 \&\f(CW\*(C`.based\*(C'\fR section by default.  Based variables use the \f(CW$tp\fR
15430 register as a base register, and there is a 128\-byte limit to the
15431 \&\f(CW\*(C`.based\*(C'\fR section.
15432 .IP "\fB\-mbitops\fR" 4
15433 .IX Item "-mbitops"
15434 Enables the bit operation instructions\-\-\-bit test (\f(CW\*(C`btstm\*(C'\fR), set
15435 (\f(CW\*(C`bsetm\*(C'\fR), clear (\f(CW\*(C`bclrm\*(C'\fR), invert (\f(CW\*(C`bnotm\*(C'\fR), and
15436 test-and-set (\f(CW\*(C`tas\*(C'\fR).
15437 .IP "\fB\-mc=\fR\fIname\fR" 4
15438 .IX Item "-mc=name"
15439 Selects which section constant data is placed in.  \fIname\fR may
15440 be \fBtiny\fR, \fBnear\fR, or \fBfar\fR.
15441 .IP "\fB\-mclip\fR" 4
15442 .IX Item "-mclip"
15443 Enables the \f(CW\*(C`clip\*(C'\fR instruction.  Note that \fB\-mclip\fR is not
15444 useful unless you also provide \fB\-mminmax\fR.
15445 .IP "\fB\-mconfig=\fR\fIname\fR" 4
15446 .IX Item "-mconfig=name"
15447 Selects one of the built-in core configurations.  Each MeP chip has
15448 one or more modules in it; each module has a core \s-1CPU\s0 and a variety of
15449 coprocessors, optional instructions, and peripherals.  The
15450 \&\f(CW\*(C`MeP\-Integrator\*(C'\fR tool, not part of \s-1GCC\s0, provides these
15451 configurations through this option; using this option is the same as
15452 using all the corresponding command-line options.  The default
15453 configuration is \fBdefault\fR.
15454 .IP "\fB\-mcop\fR" 4
15455 .IX Item "-mcop"
15456 Enables the coprocessor instructions.  By default, this is a 32\-bit
15457 coprocessor.  Note that the coprocessor is normally enabled via the
15458 \&\fB\-mconfig=\fR option.
15459 .IP "\fB\-mcop32\fR" 4
15460 .IX Item "-mcop32"
15461 Enables the 32\-bit coprocessor's instructions.
15462 .IP "\fB\-mcop64\fR" 4
15463 .IX Item "-mcop64"
15464 Enables the 64\-bit coprocessor's instructions.
15465 .IP "\fB\-mivc2\fR" 4
15466 .IX Item "-mivc2"
15467 Enables \s-1IVC2\s0 scheduling.  \s-1IVC2\s0 is a 64\-bit \s-1VLIW\s0 coprocessor.
15468 .IP "\fB\-mdc\fR" 4
15469 .IX Item "-mdc"
15470 Causes constant variables to be placed in the \f(CW\*(C`.near\*(C'\fR section.
15471 .IP "\fB\-mdiv\fR" 4
15472 .IX Item "-mdiv"
15473 Enables the \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions.
15474 .IP "\fB\-meb\fR" 4
15475 .IX Item "-meb"
15476 Generate big-endian code.
15477 .IP "\fB\-mel\fR" 4
15478 .IX Item "-mel"
15479 Generate little-endian code.
15480 .IP "\fB\-mio\-volatile\fR" 4
15481 .IX Item "-mio-volatile"
15482 Tells the compiler that any variable marked with the \f(CW\*(C`io\*(C'\fR
15483 attribute is to be considered volatile.
15484 .IP "\fB\-ml\fR" 4
15485 .IX Item "-ml"
15486 Causes variables to be assigned to the \f(CW\*(C`.far\*(C'\fR section by default.
15487 .IP "\fB\-mleadz\fR" 4
15488 .IX Item "-mleadz"
15489 Enables the \f(CW\*(C`leadz\*(C'\fR (leading zero) instruction.
15490 .IP "\fB\-mm\fR" 4
15491 .IX Item "-mm"
15492 Causes variables to be assigned to the \f(CW\*(C`.near\*(C'\fR section by default.
15493 .IP "\fB\-mminmax\fR" 4
15494 .IX Item "-mminmax"
15495 Enables the \f(CW\*(C`min\*(C'\fR and \f(CW\*(C`max\*(C'\fR instructions.
15496 .IP "\fB\-mmult\fR" 4
15497 .IX Item "-mmult"
15498 Enables the multiplication and multiply-accumulate instructions.
15499 .IP "\fB\-mno\-opts\fR" 4
15500 .IX Item "-mno-opts"
15501 Disables all the optional instructions enabled by \fB\-mall\-opts\fR.
15502 .IP "\fB\-mrepeat\fR" 4
15503 .IX Item "-mrepeat"
15504 Enables the \f(CW\*(C`repeat\*(C'\fR and \f(CW\*(C`erepeat\*(C'\fR instructions, used for
15505 low-overhead looping.
15506 .IP "\fB\-ms\fR" 4
15507 .IX Item "-ms"
15508 Causes all variables to default to the \f(CW\*(C`.tiny\*(C'\fR section.  Note
15509 that there is a 65536\-byte limit to this section.  Accesses to these
15510 variables use the \f(CW%gp\fR base register.
15511 .IP "\fB\-msatur\fR" 4
15512 .IX Item "-msatur"
15513 Enables the saturation instructions.  Note that the compiler does not
15514 currently generate these itself, but this option is included for
15515 compatibility with other tools, like \f(CW\*(C`as\*(C'\fR.
15516 .IP "\fB\-msdram\fR" 4
15517 .IX Item "-msdram"
15518 Link the SDRAM-based runtime instead of the default ROM-based runtime.
15519 .IP "\fB\-msim\fR" 4
15520 .IX Item "-msim"
15521 Link the simulator run-time libraries.
15522 .IP "\fB\-msimnovec\fR" 4
15523 .IX Item "-msimnovec"
15524 Link the simulator runtime libraries, excluding built-in support
15525 for reset and exception vectors and tables.
15526 .IP "\fB\-mtf\fR" 4
15527 .IX Item "-mtf"
15528 Causes all functions to default to the \f(CW\*(C`.far\*(C'\fR section.  Without
15529 this option, functions default to the \f(CW\*(C`.near\*(C'\fR section.
15530 .IP "\fB\-mtiny=\fR\fIn\fR" 4
15531 .IX Item "-mtiny=n"
15532 Variables that are \fIn\fR bytes or smaller are allocated to the
15533 \&\f(CW\*(C`.tiny\*(C'\fR section.  These variables use the \f(CW$gp\fR base
15534 register.  The default for this option is 4, but note that there's a
15535 65536\-byte limit to the \f(CW\*(C`.tiny\*(C'\fR section.
15536 .PP
15537 \fIMicroBlaze Options\fR
15538 .IX Subsection "MicroBlaze Options"
15539 .IP "\fB\-msoft\-float\fR" 4
15540 .IX Item "-msoft-float"
15541 Use software emulation for floating point (default).
15542 .IP "\fB\-mhard\-float\fR" 4
15543 .IX Item "-mhard-float"
15544 Use hardware floating-point instructions.
15545 .IP "\fB\-mmemcpy\fR" 4
15546 .IX Item "-mmemcpy"
15547 Do not optimize block moves, use \f(CW\*(C`memcpy\*(C'\fR.
15548 .IP "\fB\-mno\-clearbss\fR" 4
15549 .IX Item "-mno-clearbss"
15550 This option is deprecated.  Use \fB\-fno\-zero\-initialized\-in\-bss\fR instead.
15551 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
15552 .IX Item "-mcpu=cpu-type"
15553 Use features of, and schedule code for, the given \s-1CPU\s0.
15554 Supported values are in the format \fBv\fR\fIX\fR\fB.\fR\fI\s-1YY\s0\fR\fB.\fR\fIZ\fR,
15555 where \fIX\fR is a major version, \fI\s-1YY\s0\fR is the minor version, and
15556 \&\fIZ\fR is compatibility code.  Example values are \fBv3.00.a\fR,
15557 \&\fBv4.00.b\fR, \fBv5.00.a\fR, \fBv5.00.b\fR, \fBv5.00.b\fR, \fBv6.00.a\fR.
15558 .IP "\fB\-mxl\-soft\-mul\fR" 4
15559 .IX Item "-mxl-soft-mul"
15560 Use software multiply emulation (default).
15561 .IP "\fB\-mxl\-soft\-div\fR" 4
15562 .IX Item "-mxl-soft-div"
15563 Use software emulation for divides (default).
15564 .IP "\fB\-mxl\-barrel\-shift\fR" 4
15565 .IX Item "-mxl-barrel-shift"
15566 Use the hardware barrel shifter.
15567 .IP "\fB\-mxl\-pattern\-compare\fR" 4
15568 .IX Item "-mxl-pattern-compare"
15569 Use pattern compare instructions.
15570 .IP "\fB\-msmall\-divides\fR" 4
15571 .IX Item "-msmall-divides"
15572 Use table lookup optimization for small signed integer divisions.
15573 .IP "\fB\-mxl\-stack\-check\fR" 4
15574 .IX Item "-mxl-stack-check"
15575 This option is deprecated.  Use \fB\-fstack\-check\fR instead.
15576 .IP "\fB\-mxl\-gp\-opt\fR" 4
15577 .IX Item "-mxl-gp-opt"
15578 Use GP-relative \f(CW\*(C`.sdata\*(C'\fR/\f(CW\*(C`.sbss\*(C'\fR sections.
15579 .IP "\fB\-mxl\-multiply\-high\fR" 4
15580 .IX Item "-mxl-multiply-high"
15581 Use multiply high instructions for high part of 32x32 multiply.
15582 .IP "\fB\-mxl\-float\-convert\fR" 4
15583 .IX Item "-mxl-float-convert"
15584 Use hardware floating-point conversion instructions.
15585 .IP "\fB\-mxl\-float\-sqrt\fR" 4
15586 .IX Item "-mxl-float-sqrt"
15587 Use hardware floating-point square root instruction.
15588 .IP "\fB\-mbig\-endian\fR" 4
15589 .IX Item "-mbig-endian"
15590 Generate code for a big-endian target.
15591 .IP "\fB\-mlittle\-endian\fR" 4
15592 .IX Item "-mlittle-endian"
15593 Generate code for a little-endian target.
15594 .IP "\fB\-mxl\-reorder\fR" 4
15595 .IX Item "-mxl-reorder"
15596 Use reorder instructions (swap and byte reversed load/store).
15597 .IP "\fB\-mxl\-mode\-\fR\fIapp-model\fR" 4
15598 .IX Item "-mxl-mode-app-model"
15599 Select application model \fIapp-model\fR.  Valid models are
15600 .RS 4
15601 .IP "\fBexecutable\fR" 4
15602 .IX Item "executable"
15603 normal executable (default), uses startup code \fIcrt0.o\fR.
15604 .IP "\fBxmdstub\fR" 4
15605 .IX Item "xmdstub"
15606 for use with Xilinx Microprocessor Debugger (\s-1XMD\s0) based
15607 software intrusive debug agent called xmdstub. This uses startup file
15608 \&\fIcrt1.o\fR and sets the start address of the program to 0x800.
15609 .IP "\fBbootstrap\fR" 4
15610 .IX Item "bootstrap"
15611 for applications that are loaded using a bootloader.
15612 This model uses startup file \fIcrt2.o\fR which does not contain a processor
15613 reset vector handler. This is suitable for transferring control on a
15614 processor reset to the bootloader rather than the application.
15615 .IP "\fBnovectors\fR" 4
15616 .IX Item "novectors"
15617 for applications that do not require any of the
15618 MicroBlaze vectors. This option may be useful for applications running
15619 within a monitoring application. This model uses \fIcrt3.o\fR as a startup file.
15620 .RE
15621 .RS 4
15622 .Sp
15623 Option \fB\-xl\-mode\-\fR\fIapp-model\fR is a deprecated alias for
15624 \&\fB\-mxl\-mode\-\fR\fIapp-model\fR.
15625 .RE
15626 .PP
15627 \fI\s-1MIPS\s0 Options\fR
15628 .IX Subsection "MIPS Options"
15629 .IP "\fB\-EB\fR" 4
15630 .IX Item "-EB"
15631 Generate big-endian code.
15632 .IP "\fB\-EL\fR" 4
15633 .IX Item "-EL"
15634 Generate little-endian code.  This is the default for \fBmips*el\-*\-*\fR
15635 configurations.
15636 .IP "\fB\-march=\fR\fIarch\fR" 4
15637 .IX Item "-march=arch"
15638 Generate code that runs on \fIarch\fR, which can be the name of a
15639 generic \s-1MIPS\s0 \s-1ISA\s0, or the name of a particular processor.
15640 The \s-1ISA\s0 names are:
15641 \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
15642 \&\fBmips32\fR, \fBmips32r2\fR, \fBmips32r3\fR, \fBmips32r5\fR,
15643 \&\fBmips32r6\fR, \fBmips64\fR, \fBmips64r2\fR, \fBmips64r3\fR,
15644 \&\fBmips64r5\fR and \fBmips64r6\fR.
15645 The processor names are:
15646 \&\fB4kc\fR, \fB4km\fR, \fB4kp\fR, \fB4ksc\fR,
15647 \&\fB4kec\fR, \fB4kem\fR, \fB4kep\fR, \fB4ksd\fR,
15648 \&\fB5kc\fR, \fB5kf\fR,
15649 \&\fB20kc\fR,
15650 \&\fB24kc\fR, \fB24kf2_1\fR, \fB24kf1_1\fR,
15651 \&\fB24kec\fR, \fB24kef2_1\fR, \fB24kef1_1\fR,
15652 \&\fB34kc\fR, \fB34kf2_1\fR, \fB34kf1_1\fR, \fB34kn\fR,
15653 \&\fB74kc\fR, \fB74kf2_1\fR, \fB74kf1_1\fR, \fB74kf3_2\fR,
15654 \&\fB1004kc\fR, \fB1004kf2_1\fR, \fB1004kf1_1\fR,
15655 \&\fBloongson2e\fR, \fBloongson2f\fR, \fBloongson3a\fR,
15656 \&\fBm4k\fR,
15657 \&\fBm14k\fR, \fBm14kc\fR, \fBm14ke\fR, \fBm14kec\fR,
15658 \&\fBocteon\fR, \fBocteon+\fR, \fBocteon2\fR, \fBocteon3\fR,
15659 \&\fBorion\fR,
15660 \&\fBp5600\fR,
15661 \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
15662 \&\fBr4600\fR, \fBr4650\fR, \fBr4700\fR, \fBr6000\fR, \fBr8000\fR,
15663 \&\fBrm7000\fR, \fBrm9000\fR,
15664 \&\fBr10000\fR, \fBr12000\fR, \fBr14000\fR, \fBr16000\fR,
15665 \&\fBsb1\fR,
15666 \&\fBsr71000\fR,
15667 \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
15668 \&\fBvr5000\fR, \fBvr5400\fR, \fBvr5500\fR,
15669 \&\fBxlr\fR and \fBxlp\fR.
15670 The special value \fBfrom-abi\fR selects the
15671 most compatible architecture for the selected \s-1ABI\s0 (that is,
15672 \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
15673 .Sp
15674 The native Linux/GNU toolchain also supports the value \fBnative\fR,
15675 which selects the best architecture option for the host processor.
15676 \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize
15677 the processor.
15678 .Sp
15679 In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
15680 (for example, \fB\-march=r2k\fR).  Prefixes are optional, and
15681 \&\fBvr\fR may be written \fBr\fR.
15682 .Sp
15683 Names of the form \fIn\fR\fBf2_1\fR refer to processors with
15684 FPUs clocked at half the rate of the core, names of the form
15685 \&\fIn\fR\fBf1_1\fR refer to processors with FPUs clocked at the same
15686 rate as the core, and names of the form \fIn\fR\fBf3_2\fR refer to
15687 processors with FPUs clocked a ratio of 3:2 with respect to the core.
15688 For compatibility reasons, \fIn\fR\fBf\fR is accepted as a synonym
15689 for \fIn\fR\fBf2_1\fR while \fIn\fR\fBx\fR and \fIb\fR\fBfx\fR are
15690 accepted as synonyms for \fIn\fR\fBf1_1\fR.
15691 .Sp
15692 \&\s-1GCC\s0 defines two macros based on the value of this option.  The first
15693 is \f(CW\*(C`_MIPS_ARCH\*(C'\fR, which gives the name of target architecture, as
15694 a string.  The second has the form \f(CW\*(C`_MIPS_ARCH_\f(CIfoo\f(CW\*(C'\fR,
15695 where \fIfoo\fR is the capitalized value of \f(CW\*(C`_MIPS_ARCH\*(C'\fR.
15696 For example, \fB\-march=r2000\fR sets \f(CW\*(C`_MIPS_ARCH\*(C'\fR
15697 to \f(CW"r2000"\fR and defines the macro \f(CW\*(C`_MIPS_ARCH_R2000\*(C'\fR.
15698 .Sp
15699 Note that the \f(CW\*(C`_MIPS_ARCH\*(C'\fR macro uses the processor names given
15700 above.  In other words, it has the full prefix and does not
15701 abbreviate \fB000\fR as \fBk\fR.  In the case of \fBfrom-abi\fR,
15702 the macro names the resolved architecture (either \f(CW"mips1"\fR or
15703 \&\f(CW"mips3"\fR).  It names the default architecture when no
15704 \&\fB\-march\fR option is given.
15705 .IP "\fB\-mtune=\fR\fIarch\fR" 4
15706 .IX Item "-mtune=arch"
15707 Optimize for \fIarch\fR.  Among other things, this option controls
15708 the way instructions are scheduled, and the perceived cost of arithmetic
15709 operations.  The list of \fIarch\fR values is the same as for
15710 \&\fB\-march\fR.
15711 .Sp
15712 When this option is not used, \s-1GCC\s0 optimizes for the processor
15713 specified by \fB\-march\fR.  By using \fB\-march\fR and
15714 \&\fB\-mtune\fR together, it is possible to generate code that
15715 runs on a family of processors, but optimize the code for one
15716 particular member of that family.
15717 .Sp
15718 \&\fB\-mtune\fR defines the macros \f(CW\*(C`_MIPS_TUNE\*(C'\fR and
15719 \&\f(CW\*(C`_MIPS_TUNE_\f(CIfoo\f(CW\*(C'\fR, which work in the same way as the
15720 \&\fB\-march\fR ones described above.
15721 .IP "\fB\-mips1\fR" 4
15722 .IX Item "-mips1"
15723 Equivalent to \fB\-march=mips1\fR.
15724 .IP "\fB\-mips2\fR" 4
15725 .IX Item "-mips2"
15726 Equivalent to \fB\-march=mips2\fR.
15727 .IP "\fB\-mips3\fR" 4
15728 .IX Item "-mips3"
15729 Equivalent to \fB\-march=mips3\fR.
15730 .IP "\fB\-mips4\fR" 4
15731 .IX Item "-mips4"
15732 Equivalent to \fB\-march=mips4\fR.
15733 .IP "\fB\-mips32\fR" 4
15734 .IX Item "-mips32"
15735 Equivalent to \fB\-march=mips32\fR.
15736 .IP "\fB\-mips32r3\fR" 4
15737 .IX Item "-mips32r3"
15738 Equivalent to \fB\-march=mips32r3\fR.
15739 .IP "\fB\-mips32r5\fR" 4
15740 .IX Item "-mips32r5"
15741 Equivalent to \fB\-march=mips32r5\fR.
15742 .IP "\fB\-mips32r6\fR" 4
15743 .IX Item "-mips32r6"
15744 Equivalent to \fB\-march=mips32r6\fR.
15745 .IP "\fB\-mips64\fR" 4
15746 .IX Item "-mips64"
15747 Equivalent to \fB\-march=mips64\fR.
15748 .IP "\fB\-mips64r2\fR" 4
15749 .IX Item "-mips64r2"
15750 Equivalent to \fB\-march=mips64r2\fR.
15751 .IP "\fB\-mips64r3\fR" 4
15752 .IX Item "-mips64r3"
15753 Equivalent to \fB\-march=mips64r3\fR.
15754 .IP "\fB\-mips64r5\fR" 4
15755 .IX Item "-mips64r5"
15756 Equivalent to \fB\-march=mips64r5\fR.
15757 .IP "\fB\-mips64r6\fR" 4
15758 .IX Item "-mips64r6"
15759 Equivalent to \fB\-march=mips64r6\fR.
15760 .IP "\fB\-mips16\fR" 4
15761 .IX Item "-mips16"
15762 .PD 0
15763 .IP "\fB\-mno\-mips16\fR" 4
15764 .IX Item "-mno-mips16"
15765 .PD
15766 Generate (do not generate) \s-1MIPS16\s0 code.  If \s-1GCC\s0 is targeting a
15767 \&\s-1MIPS32\s0 or \s-1MIPS64\s0 architecture, it makes use of the MIPS16e \s-1ASE\s0.
15768 .Sp
15769 \&\s-1MIPS16\s0 code generation can also be controlled on a per-function basis
15770 by means of \f(CW\*(C`mips16\*(C'\fR and \f(CW\*(C`nomips16\*(C'\fR attributes.
15771 .IP "\fB\-mflip\-mips16\fR" 4
15772 .IX Item "-mflip-mips16"
15773 Generate \s-1MIPS16\s0 code on alternating functions.  This option is provided
15774 for regression testing of mixed MIPS16/non\-MIPS16 code generation, and is
15775 not intended for ordinary use in compiling user code.
15776 .IP "\fB\-minterlink\-compressed\fR" 4
15777 .IX Item "-minterlink-compressed"
15778 .PD 0
15779 .IP "\fB\-mno\-interlink\-compressed\fR" 4
15780 .IX Item "-mno-interlink-compressed"
15781 .PD
15782 Require (do not require) that code using the standard (uncompressed) \s-1MIPS\s0 \s-1ISA\s0
15783 be link-compatible with \s-1MIPS16\s0 and microMIPS code, and vice versa.
15784 .Sp
15785 For example, code using the standard \s-1ISA\s0 encoding cannot jump directly
15786 to \s-1MIPS16\s0 or microMIPS code; it must either use a call or an indirect jump.
15787 \&\fB\-minterlink\-compressed\fR therefore disables direct jumps unless \s-1GCC\s0
15788 knows that the target of the jump is not compressed.
15789 .IP "\fB\-minterlink\-mips16\fR" 4
15790 .IX Item "-minterlink-mips16"
15791 .PD 0
15792 .IP "\fB\-mno\-interlink\-mips16\fR" 4
15793 .IX Item "-mno-interlink-mips16"
15794 .PD
15795 Aliases of \fB\-minterlink\-compressed\fR and
15796 \&\fB\-mno\-interlink\-compressed\fR.  These options predate the microMIPS \s-1ASE\s0
15797 and are retained for backwards compatibility.
15798 .IP "\fB\-mabi=32\fR" 4
15799 .IX Item "-mabi=32"
15800 .PD 0
15801 .IP "\fB\-mabi=o64\fR" 4
15802 .IX Item "-mabi=o64"
15803 .IP "\fB\-mabi=n32\fR" 4
15804 .IX Item "-mabi=n32"
15805 .IP "\fB\-mabi=64\fR" 4
15806 .IX Item "-mabi=64"
15807 .IP "\fB\-mabi=eabi\fR" 4
15808 .IX Item "-mabi=eabi"
15809 .PD
15810 Generate code for the given \s-1ABI\s0.
15811 .Sp
15812 Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant.  \s-1GCC\s0 normally
15813 generates 64\-bit code when you select a 64\-bit architecture, but you
15814 can use \fB\-mgp32\fR to get 32\-bit code instead.
15815 .Sp
15816 For information about the O64 \s-1ABI\s0, see
15817 <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
15818 .Sp
15819 \&\s-1GCC\s0 supports a variant of the o32 \s-1ABI\s0 in which floating-point registers
15820 are 64 rather than 32 bits wide.  You can select this combination with
15821 \&\fB\-mabi=32\fR \fB\-mfp64\fR.  This \s-1ABI\s0 relies on the \f(CW\*(C`mthc1\*(C'\fR
15822 and \f(CW\*(C`mfhc1\*(C'\fR instructions and is therefore only supported for
15823 \&\s-1MIPS32R2\s0, \s-1MIPS32R3\s0 and \s-1MIPS32R5\s0 processors.
15824 .Sp
15825 The register assignments for arguments and return values remain the
15826 same, but each scalar value is passed in a single 64\-bit register
15827 rather than a pair of 32\-bit registers.  For example, scalar
15828 floating-point values are returned in \fB\f(CB$f0\fB\fR only, not a
15829 \&\fB\f(CB$f0\fB\fR/\fB\f(CB$f1\fB\fR pair.  The set of call-saved registers also
15830 remains the same in that the even-numbered double-precision registers
15831 are saved.
15832 .Sp
15833 Two additional variants of the o32 \s-1ABI\s0 are supported to enable
15834 a transition from 32\-bit to 64\-bit registers.  These are \s-1FPXX\s0
15835 (\fB\-mfpxx\fR) and \s-1FP64A\s0 (\fB\-mfp64\fR \fB\-mno\-odd\-spreg\fR).
15836 The \s-1FPXX\s0 extension mandates that all code must execute correctly
15837 when run using 32\-bit or 64\-bit registers.  The code can be interlinked
15838 with either \s-1FP32\s0 or \s-1FP64\s0, but not both.
15839 The \s-1FP64A\s0 extension is similar to the \s-1FP64\s0 extension but forbids the
15840 use of odd-numbered single-precision registers.  This can be used
15841 in conjunction with the \f(CW\*(C`FRE\*(C'\fR mode of FPUs in \s-1MIPS32R5\s0
15842 processors and allows both \s-1FP32\s0 and \s-1FP64A\s0 code to interlink and
15843 run in the same process without changing \s-1FPU\s0 modes.
15844 .IP "\fB\-mabicalls\fR" 4
15845 .IX Item "-mabicalls"
15846 .PD 0
15847 .IP "\fB\-mno\-abicalls\fR" 4
15848 .IX Item "-mno-abicalls"
15849 .PD
15850 Generate (do not generate) code that is suitable for SVR4\-style
15851 dynamic objects.  \fB\-mabicalls\fR is the default for SVR4\-based
15852 systems.
15853 .IP "\fB\-mshared\fR" 4
15854 .IX Item "-mshared"
15855 .PD 0
15856 .IP "\fB\-mno\-shared\fR" 4
15857 .IX Item "-mno-shared"
15858 .PD
15859 Generate (do not generate) code that is fully position-independent,
15860 and that can therefore be linked into shared libraries.  This option
15861 only affects \fB\-mabicalls\fR.
15862 .Sp
15863 All \fB\-mabicalls\fR code has traditionally been position-independent,
15864 regardless of options like \fB\-fPIC\fR and \fB\-fpic\fR.  However,
15865 as an extension, the \s-1GNU\s0 toolchain allows executables to use absolute
15866 accesses for locally-binding symbols.  It can also use shorter \s-1GP\s0
15867 initialization sequences and generate direct calls to locally-defined
15868 functions.  This mode is selected by \fB\-mno\-shared\fR.
15869 .Sp
15870 \&\fB\-mno\-shared\fR depends on binutils 2.16 or higher and generates
15871 objects that can only be linked by the \s-1GNU\s0 linker.  However, the option
15872 does not affect the \s-1ABI\s0 of the final executable; it only affects the \s-1ABI\s0
15873 of relocatable objects.  Using \fB\-mno\-shared\fR generally makes
15874 executables both smaller and quicker.
15875 .Sp
15876 \&\fB\-mshared\fR is the default.
15877 .IP "\fB\-mplt\fR" 4
15878 .IX Item "-mplt"
15879 .PD 0
15880 .IP "\fB\-mno\-plt\fR" 4
15881 .IX Item "-mno-plt"
15882 .PD
15883 Assume (do not assume) that the static and dynamic linkers
15884 support PLTs and copy relocations.  This option only affects
15885 \&\fB\-mno\-shared \-mabicalls\fR.  For the n64 \s-1ABI\s0, this option
15886 has no effect without \fB\-msym32\fR.
15887 .Sp
15888 You can make \fB\-mplt\fR the default by configuring
15889 \&\s-1GCC\s0 with \fB\-\-with\-mips\-plt\fR.  The default is
15890 \&\fB\-mno\-plt\fR otherwise.
15891 .IP "\fB\-mxgot\fR" 4
15892 .IX Item "-mxgot"
15893 .PD 0
15894 .IP "\fB\-mno\-xgot\fR" 4
15895 .IX Item "-mno-xgot"
15896 .PD
15897 Lift (do not lift) the usual restrictions on the size of the global
15898 offset table.
15899 .Sp
15900 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT\s0.
15901 While this is relatively efficient, it only works if the \s-1GOT\s0
15902 is smaller than about 64k.  Anything larger causes the linker
15903 to report an error such as:
15904 .Sp
15905 .Vb 1
15906 \&        relocation truncated to fit: R_MIPS_GOT16 foobar
15907 .Ve
15908 .Sp
15909 If this happens, you should recompile your code with \fB\-mxgot\fR.
15910 This works with very large GOTs, although the code is also
15911 less efficient, since it takes three instructions to fetch the
15912 value of a global symbol.
15913 .Sp
15914 Note that some linkers can create multiple GOTs.  If you have such a
15915 linker, you should only need to use \fB\-mxgot\fR when a single object
15916 file accesses more than 64k's worth of \s-1GOT\s0 entries.  Very few do.
15917 .Sp
15918 These options have no effect unless \s-1GCC\s0 is generating position
15919 independent code.
15920 .IP "\fB\-mgp32\fR" 4
15921 .IX Item "-mgp32"
15922 Assume that general-purpose registers are 32 bits wide.
15923 .IP "\fB\-mgp64\fR" 4
15924 .IX Item "-mgp64"
15925 Assume that general-purpose registers are 64 bits wide.
15926 .IP "\fB\-mfp32\fR" 4
15927 .IX Item "-mfp32"
15928 Assume that floating-point registers are 32 bits wide.
15929 .IP "\fB\-mfp64\fR" 4
15930 .IX Item "-mfp64"
15931 Assume that floating-point registers are 64 bits wide.
15932 .IP "\fB\-mfpxx\fR" 4
15933 .IX Item "-mfpxx"
15934 Do not assume the width of floating-point registers.
15935 .IP "\fB\-mhard\-float\fR" 4
15936 .IX Item "-mhard-float"
15937 Use floating-point coprocessor instructions.
15938 .IP "\fB\-msoft\-float\fR" 4
15939 .IX Item "-msoft-float"
15940 Do not use floating-point coprocessor instructions.  Implement
15941 floating-point calculations using library calls instead.
15942 .IP "\fB\-mno\-float\fR" 4
15943 .IX Item "-mno-float"
15944 Equivalent to \fB\-msoft\-float\fR, but additionally asserts that the
15945 program being compiled does not perform any floating-point operations.
15946 This option is presently supported only by some bare-metal \s-1MIPS\s0
15947 configurations, where it may select a special set of libraries
15948 that lack all floating-point support (including, for example, the
15949 floating-point \f(CW\*(C`printf\*(C'\fR formats).  
15950 If code compiled with \fB\-mno\-float\fR accidentally contains
15951 floating-point operations, it is likely to suffer a link-time
15952 or run-time failure.
15953 .IP "\fB\-msingle\-float\fR" 4
15954 .IX Item "-msingle-float"
15955 Assume that the floating-point coprocessor only supports single-precision
15956 operations.
15957 .IP "\fB\-mdouble\-float\fR" 4
15958 .IX Item "-mdouble-float"
15959 Assume that the floating-point coprocessor supports double-precision
15960 operations.  This is the default.
15961 .IP "\fB\-modd\-spreg\fR" 4
15962 .IX Item "-modd-spreg"
15963 .PD 0
15964 .IP "\fB\-mno\-odd\-spreg\fR" 4
15965 .IX Item "-mno-odd-spreg"
15966 .PD
15967 Enable the use of odd-numbered single-precision floating-point registers
15968 for the o32 \s-1ABI\s0.  This is the default for processors that are known to
15969 support these registers.  When using the o32 \s-1FPXX\s0 \s-1ABI\s0, \fB\-mno\-odd\-spreg\fR
15970 is set by default.
15971 .IP "\fB\-mabs=2008\fR" 4
15972 .IX Item "-mabs=2008"
15973 .PD 0
15974 .IP "\fB\-mabs=legacy\fR" 4
15975 .IX Item "-mabs=legacy"
15976 .PD
15977 These options control the treatment of the special not-a-number (NaN)
15978 \&\s-1IEEE\s0 754 floating-point data with the \f(CW\*(C`abs.\f(CIfmt\f(CW\*(C'\fR and
15979 \&\f(CW\*(C`neg.\f(CIfmt\f(CW\*(C'\fR machine instructions.
15980 .Sp
15981 By default or when \fB\-mabs=legacy\fR is used the legacy
15982 treatment is selected.  In this case these instructions are considered
15983 arithmetic and avoided where correct operation is required and the
15984 input operand might be a NaN.  A longer sequence of instructions that
15985 manipulate the sign bit of floating-point datum manually is used
15986 instead unless the \fB\-ffinite\-math\-only\fR option has also been
15987 specified.
15988 .Sp
15989 The \fB\-mabs=2008\fR option selects the \s-1IEEE\s0 754\-2008 treatment.  In
15990 this case these instructions are considered non-arithmetic and therefore
15991 operating correctly in all cases, including in particular where the
15992 input operand is a NaN.  These instructions are therefore always used
15993 for the respective operations.
15994 .IP "\fB\-mnan=2008\fR" 4
15995 .IX Item "-mnan=2008"
15996 .PD 0
15997 .IP "\fB\-mnan=legacy\fR" 4
15998 .IX Item "-mnan=legacy"
15999 .PD
16000 These options control the encoding of the special not-a-number (NaN)
16001 \&\s-1IEEE\s0 754 floating-point data.
16002 .Sp
16003 The \fB\-mnan=legacy\fR option selects the legacy encoding.  In this
16004 case quiet NaNs (qNaNs) are denoted by the first bit of their trailing
16005 significand field being 0, whereas signalling NaNs (sNaNs) are denoted
16006 by the first bit of their trailing significand field being 1.
16007 .Sp
16008 The \fB\-mnan=2008\fR option selects the \s-1IEEE\s0 754\-2008 encoding.  In
16009 this case qNaNs are denoted by the first bit of their trailing
16010 significand field being 1, whereas sNaNs are denoted by the first bit of
16011 their trailing significand field being 0.
16012 .Sp
16013 The default is \fB\-mnan=legacy\fR unless \s-1GCC\s0 has been configured with
16014 \&\fB\-\-with\-nan=2008\fR.
16015 .IP "\fB\-mllsc\fR" 4
16016 .IX Item "-mllsc"
16017 .PD 0
16018 .IP "\fB\-mno\-llsc\fR" 4
16019 .IX Item "-mno-llsc"
16020 .PD
16021 Use (do not use) \fBll\fR, \fBsc\fR, and \fBsync\fR instructions to
16022 implement atomic memory built-in functions.  When neither option is
16023 specified, \s-1GCC\s0 uses the instructions if the target architecture
16024 supports them.
16025 .Sp
16026 \&\fB\-mllsc\fR is useful if the runtime environment can emulate the
16027 instructions and \fB\-mno\-llsc\fR can be useful when compiling for
16028 nonstandard ISAs.  You can make either option the default by
16029 configuring \s-1GCC\s0 with \fB\-\-with\-llsc\fR and \fB\-\-without\-llsc\fR
16030 respectively.  \fB\-\-with\-llsc\fR is the default for some
16031 configurations; see the installation documentation for details.
16032 .IP "\fB\-mdsp\fR" 4
16033 .IX Item "-mdsp"
16034 .PD 0
16035 .IP "\fB\-mno\-dsp\fR" 4
16036 .IX Item "-mno-dsp"
16037 .PD
16038 Use (do not use) revision 1 of the \s-1MIPS\s0 \s-1DSP\s0 \s-1ASE\s0.
16039   This option defines the
16040 preprocessor macro \f(CW\*(C`_\|_mips_dsp\*(C'\fR.  It also defines
16041 \&\f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 1.
16042 .IP "\fB\-mdspr2\fR" 4
16043 .IX Item "-mdspr2"
16044 .PD 0
16045 .IP "\fB\-mno\-dspr2\fR" 4
16046 .IX Item "-mno-dspr2"
16047 .PD
16048 Use (do not use) revision 2 of the \s-1MIPS\s0 \s-1DSP\s0 \s-1ASE\s0.
16049   This option defines the
16050 preprocessor macros \f(CW\*(C`_\|_mips_dsp\*(C'\fR and \f(CW\*(C`_\|_mips_dspr2\*(C'\fR.
16051 It also defines \f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 2.
16052 .IP "\fB\-msmartmips\fR" 4
16053 .IX Item "-msmartmips"
16054 .PD 0
16055 .IP "\fB\-mno\-smartmips\fR" 4
16056 .IX Item "-mno-smartmips"
16057 .PD
16058 Use (do not use) the \s-1MIPS\s0 SmartMIPS \s-1ASE\s0.
16059 .IP "\fB\-mpaired\-single\fR" 4
16060 .IX Item "-mpaired-single"
16061 .PD 0
16062 .IP "\fB\-mno\-paired\-single\fR" 4
16063 .IX Item "-mno-paired-single"
16064 .PD
16065 Use (do not use) paired-single floating-point instructions.
16066   This option requires
16067 hardware floating-point support to be enabled.
16068 .IP "\fB\-mdmx\fR" 4
16069 .IX Item "-mdmx"
16070 .PD 0
16071 .IP "\fB\-mno\-mdmx\fR" 4
16072 .IX Item "-mno-mdmx"
16073 .PD
16074 Use (do not use) \s-1MIPS\s0 Digital Media Extension instructions.
16075 This option can only be used when generating 64\-bit code and requires
16076 hardware floating-point support to be enabled.
16077 .IP "\fB\-mips3d\fR" 4
16078 .IX Item "-mips3d"
16079 .PD 0
16080 .IP "\fB\-mno\-mips3d\fR" 4
16081 .IX Item "-mno-mips3d"
16082 .PD
16083 Use (do not use) the \s-1MIPS\-3D\s0 \s-1ASE\s0.  
16084 The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
16085 .IP "\fB\-mmicromips\fR" 4
16086 .IX Item "-mmicromips"
16087 .PD 0
16088 .IP "\fB\-mno\-micromips\fR" 4
16089 .IX Item "-mno-micromips"
16090 .PD
16091 Generate (do not generate) microMIPS code.
16092 .Sp
16093 MicroMIPS code generation can also be controlled on a per-function basis
16094 by means of \f(CW\*(C`micromips\*(C'\fR and \f(CW\*(C`nomicromips\*(C'\fR attributes.
16095 .IP "\fB\-mmt\fR" 4
16096 .IX Item "-mmt"
16097 .PD 0
16098 .IP "\fB\-mno\-mt\fR" 4
16099 .IX Item "-mno-mt"
16100 .PD
16101 Use (do not use) \s-1MT\s0 Multithreading instructions.
16102 .IP "\fB\-mmcu\fR" 4
16103 .IX Item "-mmcu"
16104 .PD 0
16105 .IP "\fB\-mno\-mcu\fR" 4
16106 .IX Item "-mno-mcu"
16107 .PD
16108 Use (do not use) the \s-1MIPS\s0 \s-1MCU\s0 \s-1ASE\s0 instructions.
16109 .IP "\fB\-meva\fR" 4
16110 .IX Item "-meva"
16111 .PD 0
16112 .IP "\fB\-mno\-eva\fR" 4
16113 .IX Item "-mno-eva"
16114 .PD
16115 Use (do not use) the \s-1MIPS\s0 Enhanced Virtual Addressing instructions.
16116 .IP "\fB\-mvirt\fR" 4
16117 .IX Item "-mvirt"
16118 .PD 0
16119 .IP "\fB\-mno\-virt\fR" 4
16120 .IX Item "-mno-virt"
16121 .PD
16122 Use (do not use) the \s-1MIPS\s0 Virtualization Application Specific instructions.
16123 .IP "\fB\-mxpa\fR" 4
16124 .IX Item "-mxpa"
16125 .PD 0
16126 .IP "\fB\-mno\-xpa\fR" 4
16127 .IX Item "-mno-xpa"
16128 .PD
16129 Use (do not use) the \s-1MIPS\s0 eXtended Physical Address (\s-1XPA\s0) instructions.
16130 .IP "\fB\-mlong64\fR" 4
16131 .IX Item "-mlong64"
16132 Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See \fB\-mlong32\fR for
16133 an explanation of the default and the way that the pointer size is
16134 determined.
16135 .IP "\fB\-mlong32\fR" 4
16136 .IX Item "-mlong32"
16137 Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
16138 .Sp
16139 The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
16140 the \s-1ABI\s0.  All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs.  The n64 \s-1ABI\s0
16141 uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
16142 32\-bit \f(CW\*(C`long\*(C'\fRs.  Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
16143 or the same size as integer registers, whichever is smaller.
16144 .IP "\fB\-msym32\fR" 4
16145 .IX Item "-msym32"
16146 .PD 0
16147 .IP "\fB\-mno\-sym32\fR" 4
16148 .IX Item "-mno-sym32"
16149 .PD
16150 Assume (do not assume) that all symbols have 32\-bit values, regardless
16151 of the selected \s-1ABI\s0.  This option is useful in combination with
16152 \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
16153 to generate shorter and faster references to symbolic addresses.
16154 .IP "\fB\-G\fR \fInum\fR" 4
16155 .IX Item "-G num"
16156 Put definitions of externally-visible data in a small data section
16157 if that data is no bigger than \fInum\fR bytes.  \s-1GCC\s0 can then generate
16158 more efficient accesses to the data; see \fB\-mgpopt\fR for details.
16159 .Sp
16160 The default \fB\-G\fR option depends on the configuration.
16161 .IP "\fB\-mlocal\-sdata\fR" 4
16162 .IX Item "-mlocal-sdata"
16163 .PD 0
16164 .IP "\fB\-mno\-local\-sdata\fR" 4
16165 .IX Item "-mno-local-sdata"
16166 .PD
16167 Extend (do not extend) the \fB\-G\fR behavior to local data too,
16168 such as to static variables in C.  \fB\-mlocal\-sdata\fR is the
16169 default for all configurations.
16170 .Sp
16171 If the linker complains that an application is using too much small data,
16172 you might want to try rebuilding the less performance-critical parts with
16173 \&\fB\-mno\-local\-sdata\fR.  You might also want to build large
16174 libraries with \fB\-mno\-local\-sdata\fR, so that the libraries leave
16175 more room for the main program.
16176 .IP "\fB\-mextern\-sdata\fR" 4
16177 .IX Item "-mextern-sdata"
16178 .PD 0
16179 .IP "\fB\-mno\-extern\-sdata\fR" 4
16180 .IX Item "-mno-extern-sdata"
16181 .PD
16182 Assume (do not assume) that externally-defined data is in
16183 a small data section if the size of that data is within the \fB\-G\fR limit.
16184 \&\fB\-mextern\-sdata\fR is the default for all configurations.
16185 .Sp
16186 If you compile a module \fIMod\fR with \fB\-mextern\-sdata\fR \fB\-G\fR
16187 \&\fInum\fR \fB\-mgpopt\fR, and \fIMod\fR references a variable \fIVar\fR
16188 that is no bigger than \fInum\fR bytes, you must make sure that \fIVar\fR
16189 is placed in a small data section.  If \fIVar\fR is defined by another
16190 module, you must either compile that module with a high-enough
16191 \&\fB\-G\fR setting or attach a \f(CW\*(C`section\*(C'\fR attribute to \fIVar\fR's
16192 definition.  If \fIVar\fR is common, you must link the application
16193 with a high-enough \fB\-G\fR setting.
16194 .Sp
16195 The easiest way of satisfying these restrictions is to compile
16196 and link every module with the same \fB\-G\fR option.  However,
16197 you may wish to build a library that supports several different
16198 small data limits.  You can do this by compiling the library with
16199 the highest supported \fB\-G\fR setting and additionally using
16200 \&\fB\-mno\-extern\-sdata\fR to stop the library from making assumptions
16201 about externally-defined data.
16202 .IP "\fB\-mgpopt\fR" 4
16203 .IX Item "-mgpopt"
16204 .PD 0
16205 .IP "\fB\-mno\-gpopt\fR" 4
16206 .IX Item "-mno-gpopt"
16207 .PD
16208 Use (do not use) GP-relative accesses for symbols that are known to be
16209 in a small data section; see \fB\-G\fR, \fB\-mlocal\-sdata\fR and
16210 \&\fB\-mextern\-sdata\fR.  \fB\-mgpopt\fR is the default for all
16211 configurations.
16212 .Sp
16213 \&\fB\-mno\-gpopt\fR is useful for cases where the \f(CW$gp\fR register
16214 might not hold the value of \f(CW\*(C`_gp\*(C'\fR.  For example, if the code is
16215 part of a library that might be used in a boot monitor, programs that
16216 call boot monitor routines pass an unknown value in \f(CW$gp\fR.
16217 (In such situations, the boot monitor itself is usually compiled
16218 with \fB\-G0\fR.)
16219 .Sp
16220 \&\fB\-mno\-gpopt\fR implies \fB\-mno\-local\-sdata\fR and
16221 \&\fB\-mno\-extern\-sdata\fR.
16222 .IP "\fB\-membedded\-data\fR" 4
16223 .IX Item "-membedded-data"
16224 .PD 0
16225 .IP "\fB\-mno\-embedded\-data\fR" 4
16226 .IX Item "-mno-embedded-data"
16227 .PD
16228 Allocate variables to the read-only data section first if possible, then
16229 next in the small data section if possible, otherwise in data.  This gives
16230 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
16231 when executing, and thus may be preferred for some embedded systems.
16232 .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
16233 .IX Item "-muninit-const-in-rodata"
16234 .PD 0
16235 .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
16236 .IX Item "-mno-uninit-const-in-rodata"
16237 .PD
16238 Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
16239 This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
16240 .IP "\fB\-mcode\-readable=\fR\fIsetting\fR" 4
16241 .IX Item "-mcode-readable=setting"
16242 Specify whether \s-1GCC\s0 may generate code that reads from executable sections.
16243 There are three possible settings:
16244 .RS 4
16245 .IP "\fB\-mcode\-readable=yes\fR" 4
16246 .IX Item "-mcode-readable=yes"
16247 Instructions may freely access executable sections.  This is the
16248 default setting.
16249 .IP "\fB\-mcode\-readable=pcrel\fR" 4
16250 .IX Item "-mcode-readable=pcrel"
16251 \&\s-1MIPS16\s0 PC-relative load instructions can access executable sections,
16252 but other instructions must not do so.  This option is useful on 4KSc
16253 and 4KSd processors when the code TLBs have the Read Inhibit bit set.
16254 It is also useful on processors that can be configured to have a dual
16255 instruction/data \s-1SRAM\s0 interface and that, like the M4K, automatically
16256 redirect PC-relative loads to the instruction \s-1RAM\s0.
16257 .IP "\fB\-mcode\-readable=no\fR" 4
16258 .IX Item "-mcode-readable=no"
16259 Instructions must not access executable sections.  This option can be
16260 useful on targets that are configured to have a dual instruction/data
16261 \&\s-1SRAM\s0 interface but that (unlike the M4K) do not automatically redirect
16262 PC-relative loads to the instruction \s-1RAM\s0.
16263 .RE
16264 .RS 4
16265 .RE
16266 .IP "\fB\-msplit\-addresses\fR" 4
16267 .IX Item "-msplit-addresses"
16268 .PD 0
16269 .IP "\fB\-mno\-split\-addresses\fR" 4
16270 .IX Item "-mno-split-addresses"
16271 .PD
16272 Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
16273 relocation operators.  This option has been superseded by
16274 \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
16275 .IP "\fB\-mexplicit\-relocs\fR" 4
16276 .IX Item "-mexplicit-relocs"
16277 .PD 0
16278 .IP "\fB\-mno\-explicit\-relocs\fR" 4
16279 .IX Item "-mno-explicit-relocs"
16280 .PD
16281 Use (do not use) assembler relocation operators when dealing with symbolic
16282 addresses.  The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
16283 is to use assembler macros instead.
16284 .Sp
16285 \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
16286 to use an assembler that supports relocation operators.
16287 .IP "\fB\-mcheck\-zero\-division\fR" 4
16288 .IX Item "-mcheck-zero-division"
16289 .PD 0
16290 .IP "\fB\-mno\-check\-zero\-division\fR" 4
16291 .IX Item "-mno-check-zero-division"
16292 .PD
16293 Trap (do not trap) on integer division by zero.
16294 .Sp
16295 The default is \fB\-mcheck\-zero\-division\fR.
16296 .IP "\fB\-mdivide\-traps\fR" 4
16297 .IX Item "-mdivide-traps"
16298 .PD 0
16299 .IP "\fB\-mdivide\-breaks\fR" 4
16300 .IX Item "-mdivide-breaks"
16301 .PD
16302 \&\s-1MIPS\s0 systems check for division by zero by generating either a
16303 conditional trap or a break instruction.  Using traps results in
16304 smaller code, but is only supported on \s-1MIPS\s0 \s-1II\s0 and later.  Also, some
16305 versions of the Linux kernel have a bug that prevents trap from
16306 generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR).  Use \fB\-mdivide\-traps\fR to
16307 allow conditional traps on architectures that support them and
16308 \&\fB\-mdivide\-breaks\fR to force the use of breaks.
16309 .Sp
16310 The default is usually \fB\-mdivide\-traps\fR, but this can be
16311 overridden at configure time using \fB\-\-with\-divide=breaks\fR.
16312 Divide-by-zero checks can be completely disabled using
16313 \&\fB\-mno\-check\-zero\-division\fR.
16314 .IP "\fB\-mmemcpy\fR" 4
16315 .IX Item "-mmemcpy"
16316 .PD 0
16317 .IP "\fB\-mno\-memcpy\fR" 4
16318 .IX Item "-mno-memcpy"
16319 .PD
16320 Force (do not force) the use of \f(CW\*(C`memcpy\*(C'\fR for non-trivial block
16321 moves.  The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
16322 most constant-sized copies.
16323 .IP "\fB\-mlong\-calls\fR" 4
16324 .IX Item "-mlong-calls"
16325 .PD 0
16326 .IP "\fB\-mno\-long\-calls\fR" 4
16327 .IX Item "-mno-long-calls"
16328 .PD
16329 Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction.  Calling
16330 functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
16331 and callee to be in the same 256 megabyte segment.
16332 .Sp
16333 This option has no effect on abicalls code.  The default is
16334 \&\fB\-mno\-long\-calls\fR.
16335 .IP "\fB\-mmad\fR" 4
16336 .IX Item "-mmad"
16337 .PD 0
16338 .IP "\fB\-mno\-mad\fR" 4
16339 .IX Item "-mno-mad"
16340 .PD
16341 Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
16342 instructions, as provided by the R4650 \s-1ISA\s0.
16343 .IP "\fB\-mimadd\fR" 4
16344 .IX Item "-mimadd"
16345 .PD 0
16346 .IP "\fB\-mno\-imadd\fR" 4
16347 .IX Item "-mno-imadd"
16348 .PD
16349 Enable (disable) use of the \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR integer
16350 instructions.  The default is \fB\-mimadd\fR on architectures
16351 that support \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR except for the 74k 
16352 architecture where it was found to generate slower code.
16353 .IP "\fB\-mfused\-madd\fR" 4
16354 .IX Item "-mfused-madd"
16355 .PD 0
16356 .IP "\fB\-mno\-fused\-madd\fR" 4
16357 .IX Item "-mno-fused-madd"
16358 .PD
16359 Enable (disable) use of the floating-point multiply-accumulate
16360 instructions, when they are available.  The default is
16361 \&\fB\-mfused\-madd\fR.
16362 .Sp
16363 On the R8000 \s-1CPU\s0 when multiply-accumulate instructions are used,
16364 the intermediate product is calculated to infinite precision
16365 and is not subject to the \s-1FCSR\s0 Flush to Zero bit.  This may be
16366 undesirable in some circumstances.  On other processors the result
16367 is numerically identical to the equivalent computation using
16368 separate multiply, add, subtract and negate instructions.
16369 .IP "\fB\-nocpp\fR" 4
16370 .IX Item "-nocpp"
16371 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
16372 assembler files (with a \fB.s\fR suffix) when assembling them.
16373 .IP "\fB\-mfix\-24k\fR" 4
16374 .IX Item "-mfix-24k"
16375 .PD 0
16376 .IP "\fB\-mno\-fix\-24k\fR" 4
16377 .IX Item "-mno-fix-24k"
16378 .PD
16379 Work around the 24K E48 (lost data on stores during refill) errata.
16380 The workarounds are implemented by the assembler rather than by \s-1GCC\s0.
16381 .IP "\fB\-mfix\-r4000\fR" 4
16382 .IX Item "-mfix-r4000"
16383 .PD 0
16384 .IP "\fB\-mno\-fix\-r4000\fR" 4
16385 .IX Item "-mno-fix-r4000"
16386 .PD
16387 Work around certain R4000 \s-1CPU\s0 errata:
16388 .RS 4
16389 .IP "\-" 4
16390 A double-word or a variable shift may give an incorrect result if executed
16391 immediately after starting an integer division.
16392 .IP "\-" 4
16393 A double-word or a variable shift may give an incorrect result if executed
16394 while an integer multiplication is in progress.
16395 .IP "\-" 4
16396 An integer division may give an incorrect result if started in a delay slot
16397 of a taken branch or a jump.
16398 .RE
16399 .RS 4
16400 .RE
16401 .IP "\fB\-mfix\-r4400\fR" 4
16402 .IX Item "-mfix-r4400"
16403 .PD 0
16404 .IP "\fB\-mno\-fix\-r4400\fR" 4
16405 .IX Item "-mno-fix-r4400"
16406 .PD
16407 Work around certain R4400 \s-1CPU\s0 errata:
16408 .RS 4
16409 .IP "\-" 4
16410 A double-word or a variable shift may give an incorrect result if executed
16411 immediately after starting an integer division.
16412 .RE
16413 .RS 4
16414 .RE
16415 .IP "\fB\-mfix\-r10000\fR" 4
16416 .IX Item "-mfix-r10000"
16417 .PD 0
16418 .IP "\fB\-mno\-fix\-r10000\fR" 4
16419 .IX Item "-mno-fix-r10000"
16420 .PD
16421 Work around certain R10000 errata:
16422 .RS 4
16423 .IP "\-" 4
16424 \&\f(CW\*(C`ll\*(C'\fR/\f(CW\*(C`sc\*(C'\fR sequences may not behave atomically on revisions
16425 prior to 3.0.  They may deadlock on revisions 2.6 and earlier.
16426 .RE
16427 .RS 4
16428 .Sp
16429 This option can only be used if the target architecture supports
16430 branch-likely instructions.  \fB\-mfix\-r10000\fR is the default when
16431 \&\fB\-march=r10000\fR is used; \fB\-mno\-fix\-r10000\fR is the default
16432 otherwise.
16433 .RE
16434 .IP "\fB\-mfix\-rm7000\fR" 4
16435 .IX Item "-mfix-rm7000"
16436 .PD 0
16437 .IP "\fB\-mno\-fix\-rm7000\fR" 4
16438 .IX Item "-mno-fix-rm7000"
16439 .PD
16440 Work around the \s-1RM7000\s0 \f(CW\*(C`dmult\*(C'\fR/\f(CW\*(C`dmultu\*(C'\fR errata.  The
16441 workarounds are implemented by the assembler rather than by \s-1GCC\s0.
16442 .IP "\fB\-mfix\-vr4120\fR" 4
16443 .IX Item "-mfix-vr4120"
16444 .PD 0
16445 .IP "\fB\-mno\-fix\-vr4120\fR" 4
16446 .IX Item "-mno-fix-vr4120"
16447 .PD
16448 Work around certain \s-1VR4120\s0 errata:
16449 .RS 4
16450 .IP "\-" 4
16451 \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
16452 .IP "\-" 4
16453 \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
16454 of the operands is negative.
16455 .RE
16456 .RS 4
16457 .Sp
16458 The workarounds for the division errata rely on special functions in
16459 \&\fIlibgcc.a\fR.  At present, these functions are only provided by
16460 the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
16461 .Sp
16462 Other \s-1VR4120\s0 errata require a \s-1NOP\s0 to be inserted between certain pairs of
16463 instructions.  These errata are handled by the assembler, not by \s-1GCC\s0 itself.
16464 .RE
16465 .IP "\fB\-mfix\-vr4130\fR" 4
16466 .IX Item "-mfix-vr4130"
16467 Work around the \s-1VR4130\s0 \f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata.  The
16468 workarounds are implemented by the assembler rather than by \s-1GCC\s0,
16469 although \s-1GCC\s0 avoids using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
16470 \&\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
16471 instructions are available instead.
16472 .IP "\fB\-mfix\-sb1\fR" 4
16473 .IX Item "-mfix-sb1"
16474 .PD 0
16475 .IP "\fB\-mno\-fix\-sb1\fR" 4
16476 .IX Item "-mno-fix-sb1"
16477 .PD
16478 Work around certain \s-1SB\-1\s0 \s-1CPU\s0 core errata.
16479 (This flag currently works around the \s-1SB\-1\s0 revision 2
16480 \&\*(L"F1\*(R" and \*(L"F2\*(R" floating-point errata.)
16481 .IP "\fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR" 4
16482 .IX Item "-mr10k-cache-barrier=setting"
16483 Specify whether \s-1GCC\s0 should insert cache barriers to avoid the
16484 side-effects of speculation on R10K processors.
16485 .Sp
16486 In common with many processors, the R10K tries to predict the outcome
16487 of a conditional branch and speculatively executes instructions from
16488 the \*(L"taken\*(R" branch.  It later aborts these instructions if the
16489 predicted outcome is wrong.  However, on the R10K, even aborted
16490 instructions can have side effects.
16491 .Sp
16492 This problem only affects kernel stores and, depending on the system,
16493 kernel loads.  As an example, a speculatively-executed store may load
16494 the target memory into cache and mark the cache line as dirty, even if
16495 the store itself is later aborted.  If a \s-1DMA\s0 operation writes to the
16496 same area of memory before the \*(L"dirty\*(R" line is flushed, the cached
16497 data overwrites the DMA-ed data.  See the R10K processor manual
16498 for a full description, including other potential problems.
16499 .Sp
16500 One workaround is to insert cache barrier instructions before every memory
16501 access that might be speculatively executed and that might have side
16502 effects even if aborted.  \fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR
16503 controls \s-1GCC\s0's implementation of this workaround.  It assumes that
16504 aborted accesses to any byte in the following regions does not have
16505 side effects:
16506 .RS 4
16507 .IP "1." 4
16508 .IX Item "1."
16509 the memory occupied by the current function's stack frame;
16510 .IP "2." 4
16511 .IX Item "2."
16512 the memory occupied by an incoming stack argument;
16513 .IP "3." 4
16514 .IX Item "3."
16515 the memory occupied by an object with a link-time-constant address.
16516 .RE
16517 .RS 4
16518 .Sp
16519 It is the kernel's responsibility to ensure that speculative
16520 accesses to these regions are indeed safe.
16521 .Sp
16522 If the input program contains a function declaration such as:
16523 .Sp
16524 .Vb 1
16525 \&        void foo (void);
16526 .Ve
16527 .Sp
16528 then the implementation of \f(CW\*(C`foo\*(C'\fR must allow \f(CW\*(C`j foo\*(C'\fR and
16529 \&\f(CW\*(C`jal foo\*(C'\fR to be executed speculatively.  \s-1GCC\s0 honors this
16530 restriction for functions it compiles itself.  It expects non-GCC
16531 functions (such as hand-written assembly code) to do the same.
16532 .Sp
16533 The option has three forms:
16534 .IP "\fB\-mr10k\-cache\-barrier=load\-store\fR" 4
16535 .IX Item "-mr10k-cache-barrier=load-store"
16536 Insert a cache barrier before a load or store that might be
16537 speculatively executed and that might have side effects even
16538 if aborted.
16539 .IP "\fB\-mr10k\-cache\-barrier=store\fR" 4
16540 .IX Item "-mr10k-cache-barrier=store"
16541 Insert a cache barrier before a store that might be speculatively
16542 executed and that might have side effects even if aborted.
16543 .IP "\fB\-mr10k\-cache\-barrier=none\fR" 4
16544 .IX Item "-mr10k-cache-barrier=none"
16545 Disable the insertion of cache barriers.  This is the default setting.
16546 .RE
16547 .RS 4
16548 .RE
16549 .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
16550 .IX Item "-mflush-func=func"
16551 .PD 0
16552 .IP "\fB\-mno\-flush\-func\fR" 4
16553 .IX Item "-mno-flush-func"
16554 .PD
16555 Specifies the function to call to flush the I and D caches, or to not
16556 call any such function.  If called, the function must take the same
16557 arguments as the common \f(CW\*(C`_flush_func\*(C'\fR, that is, the address of the
16558 memory range for which the cache is being flushed, the size of the
16559 memory range, and the number 3 (to flush both caches).  The default
16560 depends on the target \s-1GCC\s0 was configured for, but commonly is either
16561 \&\f(CW\*(C`_flush_func\*(C'\fR or \f(CW\*(C`_\|_cpu_flush\*(C'\fR.
16562 .IP "\fBmbranch\-cost=\fR\fInum\fR" 4
16563 .IX Item "mbranch-cost=num"
16564 Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
16565 This cost is only a heuristic and is not guaranteed to produce
16566 consistent results across releases.  A zero cost redundantly selects
16567 the default, which is based on the \fB\-mtune\fR setting.
16568 .IP "\fB\-mbranch\-likely\fR" 4
16569 .IX Item "-mbranch-likely"
16570 .PD 0
16571 .IP "\fB\-mno\-branch\-likely\fR" 4
16572 .IX Item "-mno-branch-likely"
16573 .PD
16574 Enable or disable use of Branch Likely instructions, regardless of the
16575 default for the selected architecture.  By default, Branch Likely
16576 instructions may be generated if they are supported by the selected
16577 architecture.  An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
16578 and processors that implement those architectures; for those, Branch
16579 Likely instructions are not be generated by default because the \s-1MIPS32\s0
16580 and \s-1MIPS64\s0 architectures specifically deprecate their use.
16581 .IP "\fB\-mfp\-exceptions\fR" 4
16582 .IX Item "-mfp-exceptions"
16583 .PD 0
16584 .IP "\fB\-mno\-fp\-exceptions\fR" 4
16585 .IX Item "-mno-fp-exceptions"
16586 .PD
16587 Specifies whether \s-1FP\s0 exceptions are enabled.  This affects how
16588 \&\s-1FP\s0 instructions are scheduled for some processors.
16589 The default is that \s-1FP\s0 exceptions are
16590 enabled.
16591 .Sp
16592 For instance, on the \s-1SB\-1\s0, if \s-1FP\s0 exceptions are disabled, and we are emitting
16593 64\-bit code, then we can use both \s-1FP\s0 pipes.  Otherwise, we can only use one
16594 \&\s-1FP\s0 pipe.
16595 .IP "\fB\-mvr4130\-align\fR" 4
16596 .IX Item "-mvr4130-align"
16597 .PD 0
16598 .IP "\fB\-mno\-vr4130\-align\fR" 4
16599 .IX Item "-mno-vr4130-align"
16600 .PD
16601 The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
16602 instructions together if the first one is 8\-byte aligned.  When this
16603 option is enabled, \s-1GCC\s0 aligns pairs of instructions that it
16604 thinks should execute in parallel.
16605 .Sp
16606 This option only has an effect when optimizing for the \s-1VR4130\s0.
16607 It normally makes code faster, but at the expense of making it bigger.
16608 It is enabled by default at optimization level \fB\-O3\fR.
16609 .IP "\fB\-msynci\fR" 4
16610 .IX Item "-msynci"
16611 .PD 0
16612 .IP "\fB\-mno\-synci\fR" 4
16613 .IX Item "-mno-synci"
16614 .PD
16615 Enable (disable) generation of \f(CW\*(C`synci\*(C'\fR instructions on
16616 architectures that support it.  The \f(CW\*(C`synci\*(C'\fR instructions (if
16617 enabled) are generated when \f(CW\*(C`_\|_builtin_\|_\|_clear_cache\*(C'\fR is
16618 compiled.
16619 .Sp
16620 This option defaults to \fB\-mno\-synci\fR, but the default can be
16621 overridden by configuring \s-1GCC\s0 with \fB\-\-with\-synci\fR.
16622 .Sp
16623 When compiling code for single processor systems, it is generally safe
16624 to use \f(CW\*(C`synci\*(C'\fR.  However, on many multi-core (\s-1SMP\s0) systems, it
16625 does not invalidate the instruction caches on all cores and may lead
16626 to undefined behavior.
16627 .IP "\fB\-mrelax\-pic\-calls\fR" 4
16628 .IX Item "-mrelax-pic-calls"
16629 .PD 0
16630 .IP "\fB\-mno\-relax\-pic\-calls\fR" 4
16631 .IX Item "-mno-relax-pic-calls"
16632 .PD
16633 Try to turn \s-1PIC\s0 calls that are normally dispatched via register
16634 \&\f(CW$25\fR into direct calls.  This is only possible if the linker can
16635 resolve the destination at link-time and if the destination is within
16636 range for a direct call.
16637 .Sp
16638 \&\fB\-mrelax\-pic\-calls\fR is the default if \s-1GCC\s0 was configured to use
16639 an assembler and a linker that support the \f(CW\*(C`.reloc\*(C'\fR assembly
16640 directive and \fB\-mexplicit\-relocs\fR is in effect.  With
16641 \&\fB\-mno\-explicit\-relocs\fR, this optimization can be performed by the
16642 assembler and the linker alone without help from the compiler.
16643 .IP "\fB\-mmcount\-ra\-address\fR" 4
16644 .IX Item "-mmcount-ra-address"
16645 .PD 0
16646 .IP "\fB\-mno\-mcount\-ra\-address\fR" 4
16647 .IX Item "-mno-mcount-ra-address"
16648 .PD
16649 Emit (do not emit) code that allows \f(CW\*(C`_mcount\*(C'\fR to modify the
16650 calling function's return address.  When enabled, this option extends
16651 the usual \f(CW\*(C`_mcount\*(C'\fR interface with a new \fIra-address\fR
16652 parameter, which has type \f(CW\*(C`intptr_t *\*(C'\fR and is passed in register
16653 \&\f(CW$12\fR.  \f(CW\*(C`_mcount\*(C'\fR can then modify the return address by
16654 doing both of the following:
16655 .RS 4
16656 .IP "*" 4
16657 Returning the new address in register \f(CW$31\fR.
16658 .IP "*" 4
16659 Storing the new address in \f(CW\*(C`*\f(CIra\-address\f(CW\*(C'\fR,
16660 if \fIra-address\fR is nonnull.
16661 .RE
16662 .RS 4
16663 .Sp
16664 The default is \fB\-mno\-mcount\-ra\-address\fR.
16665 .RE
16666 .PP
16667 \fI\s-1MMIX\s0 Options\fR
16668 .IX Subsection "MMIX Options"
16669 .PP
16670 These options are defined for the \s-1MMIX:\s0
16671 .IP "\fB\-mlibfuncs\fR" 4
16672 .IX Item "-mlibfuncs"
16673 .PD 0
16674 .IP "\fB\-mno\-libfuncs\fR" 4
16675 .IX Item "-mno-libfuncs"
16676 .PD
16677 Specify that intrinsic library functions are being compiled, passing all
16678 values in registers, no matter the size.
16679 .IP "\fB\-mepsilon\fR" 4
16680 .IX Item "-mepsilon"
16681 .PD 0
16682 .IP "\fB\-mno\-epsilon\fR" 4
16683 .IX Item "-mno-epsilon"
16684 .PD
16685 Generate floating-point comparison instructions that compare with respect
16686 to the \f(CW\*(C`rE\*(C'\fR epsilon register.
16687 .IP "\fB\-mabi=mmixware\fR" 4
16688 .IX Item "-mabi=mmixware"
16689 .PD 0
16690 .IP "\fB\-mabi=gnu\fR" 4
16691 .IX Item "-mabi=gnu"
16692 .PD
16693 Generate code that passes function parameters and return values that (in
16694 the called function) are seen as registers \f(CW$0\fR and up, as opposed to
16695 the \s-1GNU\s0 \s-1ABI\s0 which uses global registers \f(CW$231\fR and up.
16696 .IP "\fB\-mzero\-extend\fR" 4
16697 .IX Item "-mzero-extend"
16698 .PD 0
16699 .IP "\fB\-mno\-zero\-extend\fR" 4
16700 .IX Item "-mno-zero-extend"
16701 .PD
16702 When reading data from memory in sizes shorter than 64 bits, use (do not
16703 use) zero-extending load instructions by default, rather than
16704 sign-extending ones.
16705 .IP "\fB\-mknuthdiv\fR" 4
16706 .IX Item "-mknuthdiv"
16707 .PD 0
16708 .IP "\fB\-mno\-knuthdiv\fR" 4
16709 .IX Item "-mno-knuthdiv"
16710 .PD
16711 Make the result of a division yielding a remainder have the same sign as
16712 the divisor.  With the default, \fB\-mno\-knuthdiv\fR, the sign of the
16713 remainder follows the sign of the dividend.  Both methods are
16714 arithmetically valid, the latter being almost exclusively used.
16715 .IP "\fB\-mtoplevel\-symbols\fR" 4
16716 .IX Item "-mtoplevel-symbols"
16717 .PD 0
16718 .IP "\fB\-mno\-toplevel\-symbols\fR" 4
16719 .IX Item "-mno-toplevel-symbols"
16720 .PD
16721 Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
16722 code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
16723 .IP "\fB\-melf\fR" 4
16724 .IX Item "-melf"
16725 Generate an executable in the \s-1ELF\s0 format, rather than the default
16726 \&\fBmmo\fR format used by the \fBmmix\fR simulator.
16727 .IP "\fB\-mbranch\-predict\fR" 4
16728 .IX Item "-mbranch-predict"
16729 .PD 0
16730 .IP "\fB\-mno\-branch\-predict\fR" 4
16731 .IX Item "-mno-branch-predict"
16732 .PD
16733 Use (do not use) the probable-branch instructions, when static branch
16734 prediction indicates a probable branch.
16735 .IP "\fB\-mbase\-addresses\fR" 4
16736 .IX Item "-mbase-addresses"
16737 .PD 0
16738 .IP "\fB\-mno\-base\-addresses\fR" 4
16739 .IX Item "-mno-base-addresses"
16740 .PD
16741 Generate (do not generate) code that uses \fIbase addresses\fR.  Using a
16742 base address automatically generates a request (handled by the assembler
16743 and the linker) for a constant to be set up in a global register.  The
16744 register is used for one or more base address requests within the range 0
16745 to 255 from the value held in the register.  The generally leads to short
16746 and fast code, but the number of different data items that can be
16747 addressed is limited.  This means that a program that uses lots of static
16748 data may require \fB\-mno\-base\-addresses\fR.
16749 .IP "\fB\-msingle\-exit\fR" 4
16750 .IX Item "-msingle-exit"
16751 .PD 0
16752 .IP "\fB\-mno\-single\-exit\fR" 4
16753 .IX Item "-mno-single-exit"
16754 .PD
16755 Force (do not force) generated code to have a single exit point in each
16756 function.
16757 .PP
16758 \fI\s-1MN10300\s0 Options\fR
16759 .IX Subsection "MN10300 Options"
16760 .PP
16761 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
16762 .IP "\fB\-mmult\-bug\fR" 4
16763 .IX Item "-mmult-bug"
16764 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
16765 processors.  This is the default.
16766 .IP "\fB\-mno\-mult\-bug\fR" 4
16767 .IX Item "-mno-mult-bug"
16768 Do not generate code to avoid bugs in the multiply instructions for the
16769 \&\s-1MN10300\s0 processors.
16770 .IP "\fB\-mam33\fR" 4
16771 .IX Item "-mam33"
16772 Generate code using features specific to the \s-1AM33\s0 processor.
16773 .IP "\fB\-mno\-am33\fR" 4
16774 .IX Item "-mno-am33"
16775 Do not generate code using features specific to the \s-1AM33\s0 processor.  This
16776 is the default.
16777 .IP "\fB\-mam33\-2\fR" 4
16778 .IX Item "-mam33-2"
16779 Generate code using features specific to the \s-1AM33/2\s0.0 processor.
16780 .IP "\fB\-mam34\fR" 4
16781 .IX Item "-mam34"
16782 Generate code using features specific to the \s-1AM34\s0 processor.
16783 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
16784 .IX Item "-mtune=cpu-type"
16785 Use the timing characteristics of the indicated \s-1CPU\s0 type when
16786 scheduling instructions.  This does not change the targeted processor
16787 type.  The \s-1CPU\s0 type must be one of \fBmn10300\fR, \fBam33\fR,
16788 \&\fBam33\-2\fR or \fBam34\fR.
16789 .IP "\fB\-mreturn\-pointer\-on\-d0\fR" 4
16790 .IX Item "-mreturn-pointer-on-d0"
16791 When generating a function that returns a pointer, return the pointer
16792 in both \f(CW\*(C`a0\*(C'\fR and \f(CW\*(C`d0\*(C'\fR.  Otherwise, the pointer is returned
16793 only in \f(CW\*(C`a0\*(C'\fR, and attempts to call such functions without a prototype
16794 result in errors.  Note that this option is on by default; use
16795 \&\fB\-mno\-return\-pointer\-on\-d0\fR to disable it.
16796 .IP "\fB\-mno\-crt0\fR" 4
16797 .IX Item "-mno-crt0"
16798 Do not link in the C run-time initialization object file.
16799 .IP "\fB\-mrelax\fR" 4
16800 .IX Item "-mrelax"
16801 Indicate to the linker that it should perform a relaxation optimization pass
16802 to shorten branches, calls and absolute memory addresses.  This option only
16803 has an effect when used on the command line for the final link step.
16804 .Sp
16805 This option makes symbolic debugging impossible.
16806 .IP "\fB\-mliw\fR" 4
16807 .IX Item "-mliw"
16808 Allow the compiler to generate \fILong Instruction Word\fR
16809 instructions if the target is the \fB\s-1AM33\s0\fR or later.  This is the
16810 default.  This option defines the preprocessor macro \f(CW\*(C`_\|_LIW_\|_\*(C'\fR.
16811 .IP "\fB\-mnoliw\fR" 4
16812 .IX Item "-mnoliw"
16813 Do not allow the compiler to generate \fILong Instruction Word\fR
16814 instructions.  This option defines the preprocessor macro
16815 \&\f(CW\*(C`_\|_NO_LIW_\|_\*(C'\fR.
16816 .IP "\fB\-msetlb\fR" 4
16817 .IX Item "-msetlb"
16818 Allow the compiler to generate the \fI\s-1SETLB\s0\fR and \fILcc\fR
16819 instructions if the target is the \fB\s-1AM33\s0\fR or later.  This is the
16820 default.  This option defines the preprocessor macro \f(CW\*(C`_\|_SETLB_\|_\*(C'\fR.
16821 .IP "\fB\-mnosetlb\fR" 4
16822 .IX Item "-mnosetlb"
16823 Do not allow the compiler to generate \fI\s-1SETLB\s0\fR or \fILcc\fR
16824 instructions.  This option defines the preprocessor macro
16825 \&\f(CW\*(C`_\|_NO_SETLB_\|_\*(C'\fR.
16826 .PP
16827 \fIMoxie Options\fR
16828 .IX Subsection "Moxie Options"
16829 .IP "\fB\-meb\fR" 4
16830 .IX Item "-meb"
16831 Generate big-endian code.  This is the default for \fBmoxie\-*\-*\fR
16832 configurations.
16833 .IP "\fB\-mel\fR" 4
16834 .IX Item "-mel"
16835 Generate little-endian code.
16836 .IP "\fB\-mmul.x\fR" 4
16837 .IX Item "-mmul.x"
16838 Generate mul.x and umul.x instructions.  This is the default for
16839 \&\fBmoxiebox\-*\-*\fR configurations.
16840 .IP "\fB\-mno\-crt0\fR" 4
16841 .IX Item "-mno-crt0"
16842 Do not link in the C run-time initialization object file.
16843 .PP
16844 \fI\s-1MSP430\s0 Options\fR
16845 .IX Subsection "MSP430 Options"
16846 .PP
16847 These options are defined for the \s-1MSP430:\s0
16848 .IP "\fB\-masm\-hex\fR" 4
16849 .IX Item "-masm-hex"
16850 Force assembly output to always use hex constants.  Normally such
16851 constants are signed decimals, but this option is available for
16852 testsuite and/or aesthetic purposes.
16853 .IP "\fB\-mmcu=\fR" 4
16854 .IX Item "-mmcu="
16855 Select the \s-1MCU\s0 to target.  This is used to create a C preprocessor
16856 symbol based upon the \s-1MCU\s0 name, converted to upper case and pre\- and
16857 post-fixed with \fB_\|_\fR.  This in turn is used by the
16858 \&\fImsp430.h\fR header file to select an MCU-specific supplementary
16859 header file.
16860 .Sp
16861 The option also sets the \s-1ISA\s0 to use.  If the \s-1MCU\s0 name is one that is
16862 known to only support the 430 \s-1ISA\s0 then that is selected, otherwise the
16863 430X \s-1ISA\s0 is selected.  A generic \s-1MCU\s0 name of \fBmsp430\fR can also be
16864 used to select the 430 \s-1ISA\s0.  Similarly the generic \fBmsp430x\fR \s-1MCU\s0
16865 name selects the 430X \s-1ISA\s0.
16866 .Sp
16867 In addition an MCU-specific linker script is added to the linker
16868 command line.  The script's name is the name of the \s-1MCU\s0 with
16869 \&\fI.ld\fR appended.  Thus specifying \fB\-mmcu=xxx\fR on the \fBgcc\fR
16870 command line defines the C preprocessor symbol \f(CW\*(C`_\|_XXX_\|_\*(C'\fR and
16871 cause the linker to search for a script called \fIxxx.ld\fR.
16872 .Sp
16873 This option is also passed on to the assembler.
16874 .IP "\fB\-mcpu=\fR" 4
16875 .IX Item "-mcpu="
16876 Specifies the \s-1ISA\s0 to use.  Accepted values are \fBmsp430\fR,
16877 \&\fBmsp430x\fR and \fBmsp430xv2\fR.  This option is deprecated.  The
16878 \&\fB\-mmcu=\fR option should be used to select the \s-1ISA\s0.
16879 .IP "\fB\-msim\fR" 4
16880 .IX Item "-msim"
16881 Link to the simulator runtime libraries and linker script.  Overrides
16882 any scripts that would be selected by the \fB\-mmcu=\fR option.
16883 .IP "\fB\-mlarge\fR" 4
16884 .IX Item "-mlarge"
16885 Use large-model addressing (20\-bit pointers, 32\-bit \f(CW\*(C`size_t\*(C'\fR).
16886 .IP "\fB\-msmall\fR" 4
16887 .IX Item "-msmall"
16888 Use small-model addressing (16\-bit pointers, 16\-bit \f(CW\*(C`size_t\*(C'\fR).
16889 .IP "\fB\-mrelax\fR" 4
16890 .IX Item "-mrelax"
16891 This option is passed to the assembler and linker, and allows the
16892 linker to perform certain optimizations that cannot be done until
16893 the final link.
16894 .IP "\fBmhwmult=\fR" 4
16895 .IX Item "mhwmult="
16896 Describes the type of hardware multiply supported by the target.
16897 Accepted values are \fBnone\fR for no hardware multiply, \fB16bit\fR
16898 for the original 16\-bit\-only multiply supported by early MCUs.
16899 \&\fB32bit\fR for the 16/32\-bit multiply supported by later MCUs and
16900 \&\fBf5series\fR for the 16/32\-bit multiply supported by F5\-series MCUs.
16901 A value of \fBauto\fR can also be given.  This tells \s-1GCC\s0 to deduce
16902 the hardware multiply support based upon the \s-1MCU\s0 name provided by the
16903 \&\fB\-mmcu\fR option.  If no \fB\-mmcu\fR option is specified then
16904 \&\fB32bit\fR hardware multiply support is assumed.  \fBauto\fR is the
16905 default setting.
16906 .Sp
16907 Hardware multiplies are normally performed by calling a library
16908 routine.  This saves space in the generated code.  When compiling at
16909 \&\fB\-O3\fR or higher however the hardware multiplier is invoked
16910 inline.  This makes for bigger, but faster code.
16911 .Sp
16912 The hardware multiply routines disable interrupts whilst running and
16913 restore the previous interrupt state when they finish.  This makes
16914 them safe to use inside interrupt handlers as well as in normal code.
16915 .IP "\fB\-minrt\fR" 4
16916 .IX Item "-minrt"
16917 Enable the use of a minimum runtime environment \- no static
16918 initializers or constructors.  This is intended for memory-constrained
16919 devices.  The compiler includes special symbols in some objects
16920 that tell the linker and runtime which code fragments are required.
16921 .PP
16922 \fI\s-1NDS32\s0 Options\fR
16923 .IX Subsection "NDS32 Options"
16924 .PP
16925 These options are defined for \s-1NDS32\s0 implementations:
16926 .IP "\fB\-mbig\-endian\fR" 4
16927 .IX Item "-mbig-endian"
16928 Generate code in big-endian mode.
16929 .IP "\fB\-mlittle\-endian\fR" 4
16930 .IX Item "-mlittle-endian"
16931 Generate code in little-endian mode.
16932 .IP "\fB\-mreduced\-regs\fR" 4
16933 .IX Item "-mreduced-regs"
16934 Use reduced-set registers for register allocation.
16935 .IP "\fB\-mfull\-regs\fR" 4
16936 .IX Item "-mfull-regs"
16937 Use full-set registers for register allocation.
16938 .IP "\fB\-mcmov\fR" 4
16939 .IX Item "-mcmov"
16940 Generate conditional move instructions.
16941 .IP "\fB\-mno\-cmov\fR" 4
16942 .IX Item "-mno-cmov"
16943 Do not generate conditional move instructions.
16944 .IP "\fB\-mperf\-ext\fR" 4
16945 .IX Item "-mperf-ext"
16946 Generate performance extension instructions.
16947 .IP "\fB\-mno\-perf\-ext\fR" 4
16948 .IX Item "-mno-perf-ext"
16949 Do not generate performance extension instructions.
16950 .IP "\fB\-mv3push\fR" 4
16951 .IX Item "-mv3push"
16952 Generate v3 push25/pop25 instructions.
16953 .IP "\fB\-mno\-v3push\fR" 4
16954 .IX Item "-mno-v3push"
16955 Do not generate v3 push25/pop25 instructions.
16956 .IP "\fB\-m16\-bit\fR" 4
16957 .IX Item "-m16-bit"
16958 Generate 16\-bit instructions.
16959 .IP "\fB\-mno\-16\-bit\fR" 4
16960 .IX Item "-mno-16-bit"
16961 Do not generate 16\-bit instructions.
16962 .IP "\fB\-misr\-vector\-size=\fR\fInum\fR" 4
16963 .IX Item "-misr-vector-size=num"
16964 Specify the size of each interrupt vector, which must be 4 or 16.
16965 .IP "\fB\-mcache\-block\-size=\fR\fInum\fR" 4
16966 .IX Item "-mcache-block-size=num"
16967 Specify the size of each cache block,
16968 which must be a power of 2 between 4 and 512.
16969 .IP "\fB\-march=\fR\fIarch\fR" 4
16970 .IX Item "-march=arch"
16971 Specify the name of the target architecture.
16972 .IP "\fB\-mcmodel=\fR\fIcode-model\fR" 4
16973 .IX Item "-mcmodel=code-model"
16974 Set the code model to one of
16975 .RS 4
16976 .IP "\fBsmall\fR" 4
16977 .IX Item "small"
16978 All the data and read-only data segments must be within 512KB addressing space.
16979 The text segment must be within 16MB addressing space.
16980 .IP "\fBmedium\fR" 4
16981 .IX Item "medium"
16982 The data segment must be within 512KB while the read-only data segment can be
16983 within 4GB addressing space.  The text segment should be still within 16MB
16984 addressing space.
16985 .IP "\fBlarge\fR" 4
16986 .IX Item "large"
16987 All the text and data segments can be within 4GB addressing space.
16988 .RE
16989 .RS 4
16990 .RE
16991 .IP "\fB\-mctor\-dtor\fR" 4
16992 .IX Item "-mctor-dtor"
16993 Enable constructor/destructor feature.
16994 .IP "\fB\-mrelax\fR" 4
16995 .IX Item "-mrelax"
16996 Guide linker to relax instructions.
16997 .PP
16998 \fINios \s-1II\s0 Options\fR
16999 .IX Subsection "Nios II Options"
17000 .PP
17001 These are the options defined for the Altera Nios \s-1II\s0 processor.
17002 .IP "\fB\-G\fR \fInum\fR" 4
17003 .IX Item "-G num"
17004 Put global and static objects less than or equal to \fInum\fR bytes
17005 into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
17006 sections.  The default value of \fInum\fR is 8.
17007 .IP "\fB\-mgpopt=\fR\fIoption\fR" 4
17008 .IX Item "-mgpopt=option"
17009 .PD 0
17010 .IP "\fB\-mgpopt\fR" 4
17011 .IX Item "-mgpopt"
17012 .IP "\fB\-mno\-gpopt\fR" 4
17013 .IX Item "-mno-gpopt"
17014 .PD
17015 Generate (do not generate) GP-relative accesses.  The following 
17016 \&\fIoption\fR names are recognized:
17017 .RS 4
17018 .IP "\fBnone\fR" 4
17019 .IX Item "none"
17020 Do not generate GP-relative accesses.
17021 .IP "\fBlocal\fR" 4
17022 .IX Item "local"
17023 Generate GP-relative accesses for small data objects that are not 
17024 external or weak.  Also use GP-relative addressing for objects that
17025 have been explicitly placed in a small data section via a \f(CW\*(C`section\*(C'\fR
17026 attribute.
17027 .IP "\fBglobal\fR" 4
17028 .IX Item "global"
17029 As for \fBlocal\fR, but also generate GP-relative accesses for
17030 small data objects that are external or weak.  If you use this option,
17031 you must ensure that all parts of your program (including libraries) are
17032 compiled with the same \fB\-G\fR setting.
17033 .IP "\fBdata\fR" 4
17034 .IX Item "data"
17035 Generate GP-relative accesses for all data objects in the program.  If you
17036 use this option, the entire data and \s-1BSS\s0 segments
17037 of your program must fit in 64K of memory and you must use an appropriate
17038 linker script to allocate them within the addressible range of the
17039 global pointer.
17040 .IP "\fBall\fR" 4
17041 .IX Item "all"
17042 Generate GP-relative addresses for function pointers as well as data
17043 pointers.  If you use this option, the entire text, data, and \s-1BSS\s0 segments
17044 of your program must fit in 64K of memory and you must use an appropriate
17045 linker script to allocate them within the addressible range of the
17046 global pointer.
17047 .RE
17048 .RS 4
17049 .Sp
17050 \&\fB\-mgpopt\fR is equivalent to \fB\-mgpopt=local\fR, and
17051 \&\fB\-mno\-gpopt\fR is equivalent to \fB\-mgpopt=none\fR.
17052 .Sp
17053 The default is \fB\-mgpopt\fR except when \fB\-fpic\fR or
17054 \&\fB\-fPIC\fR is specified to generate position-independent code.
17055 Note that the Nios \s-1II\s0 \s-1ABI\s0 does not permit GP-relative accesses from
17056 shared libraries.
17057 .Sp
17058 You may need to specify \fB\-mno\-gpopt\fR explicitly when building
17059 programs that include large amounts of small data, including large
17060 \&\s-1GOT\s0 data sections.  In this case, the 16\-bit offset for GP-relative
17061 addressing may not be large enough to allow access to the entire 
17062 small data section.
17063 .RE
17064 .IP "\fB\-mel\fR" 4
17065 .IX Item "-mel"
17066 .PD 0
17067 .IP "\fB\-meb\fR" 4
17068 .IX Item "-meb"
17069 .PD
17070 Generate little-endian (default) or big-endian (experimental) code,
17071 respectively.
17072 .IP "\fB\-mbypass\-cache\fR" 4
17073 .IX Item "-mbypass-cache"
17074 .PD 0
17075 .IP "\fB\-mno\-bypass\-cache\fR" 4
17076 .IX Item "-mno-bypass-cache"
17077 .PD
17078 Force all load and store instructions to always bypass cache by 
17079 using I/O variants of the instructions. The default is not to
17080 bypass the cache.
17081 .IP "\fB\-mno\-cache\-volatile\fR" 4
17082 .IX Item "-mno-cache-volatile"
17083 .PD 0
17084 .IP "\fB\-mcache\-volatile\fR" 4
17085 .IX Item "-mcache-volatile"
17086 .PD
17087 Volatile memory access bypass the cache using the I/O variants of 
17088 the load and store instructions. The default is not to bypass the cache.
17089 .IP "\fB\-mno\-fast\-sw\-div\fR" 4
17090 .IX Item "-mno-fast-sw-div"
17091 .PD 0
17092 .IP "\fB\-mfast\-sw\-div\fR" 4
17093 .IX Item "-mfast-sw-div"
17094 .PD
17095 Do not use table-based fast divide for small numbers. The default 
17096 is to use the fast divide at \fB\-O3\fR and above.
17097 .IP "\fB\-mno\-hw\-mul\fR" 4
17098 .IX Item "-mno-hw-mul"
17099 .PD 0
17100 .IP "\fB\-mhw\-mul\fR" 4
17101 .IX Item "-mhw-mul"
17102 .IP "\fB\-mno\-hw\-mulx\fR" 4
17103 .IX Item "-mno-hw-mulx"
17104 .IP "\fB\-mhw\-mulx\fR" 4
17105 .IX Item "-mhw-mulx"
17106 .IP "\fB\-mno\-hw\-div\fR" 4
17107 .IX Item "-mno-hw-div"
17108 .IP "\fB\-mhw\-div\fR" 4
17109 .IX Item "-mhw-div"
17110 .PD
17111 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 
17112 instructions by the compiler. The default is to emit \f(CW\*(C`mul\*(C'\fR
17113 and not emit \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`mulx\*(C'\fR.
17114 .IP "\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR" 4
17115 .IX Item "-mcustom-insn=N"
17116 .PD 0
17117 .IP "\fB\-mno\-custom\-\fR\fIinsn\fR" 4
17118 .IX Item "-mno-custom-insn"
17119 .PD
17120 Each \fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR option enables use of a
17121 custom instruction with encoding \fIN\fR when generating code that uses 
17122 \&\fIinsn\fR.  For example, \fB\-mcustom\-fadds=253\fR generates custom
17123 instruction 253 for single-precision floating-point add operations instead
17124 of the default behavior of using a library call.
17125 .Sp
17126 The following values of \fIinsn\fR are supported.  Except as otherwise
17127 noted, floating-point operations are expected to be implemented with
17128 normal \s-1IEEE\s0 754 semantics and correspond directly to the C operators or the
17129 equivalent \s-1GCC\s0 built-in functions.
17130 .Sp
17131 Single-precision floating point:
17132 .RS 4
17133 .IP "\fBfadds\fR, \fBfsubs\fR, \fBfdivs\fR, \fBfmuls\fR" 4
17134 .IX Item "fadds, fsubs, fdivs, fmuls"
17135 Binary arithmetic operations.
17136 .IP "\fBfnegs\fR" 4
17137 .IX Item "fnegs"
17138 Unary negation.
17139 .IP "\fBfabss\fR" 4
17140 .IX Item "fabss"
17141 Unary absolute value.
17142 .IP "\fBfcmpeqs\fR, \fBfcmpges\fR, \fBfcmpgts\fR, \fBfcmples\fR, \fBfcmplts\fR, \fBfcmpnes\fR" 4
17143 .IX Item "fcmpeqs, fcmpges, fcmpgts, fcmples, fcmplts, fcmpnes"
17144 Comparison operations.
17145 .IP "\fBfmins\fR, \fBfmaxs\fR" 4
17146 .IX Item "fmins, fmaxs"
17147 Floating-point minimum and maximum.  These instructions are only
17148 generated if \fB\-ffinite\-math\-only\fR is specified.
17149 .IP "\fBfsqrts\fR" 4
17150 .IX Item "fsqrts"
17151 Unary square root operation.
17152 .IP "\fBfcoss\fR, \fBfsins\fR, \fBftans\fR, \fBfatans\fR, \fBfexps\fR, \fBflogs\fR" 4
17153 .IX Item "fcoss, fsins, ftans, fatans, fexps, flogs"
17154 Floating-point trigonometric and exponential functions.  These instructions
17155 are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
17156 .RE
17157 .RS 4
17158 .Sp
17159 Double-precision floating point:
17160 .IP "\fBfaddd\fR, \fBfsubd\fR, \fBfdivd\fR, \fBfmuld\fR" 4
17161 .IX Item "faddd, fsubd, fdivd, fmuld"
17162 Binary arithmetic operations.
17163 .IP "\fBfnegd\fR" 4
17164 .IX Item "fnegd"
17165 Unary negation.
17166 .IP "\fBfabsd\fR" 4
17167 .IX Item "fabsd"
17168 Unary absolute value.
17169 .IP "\fBfcmpeqd\fR, \fBfcmpged\fR, \fBfcmpgtd\fR, \fBfcmpled\fR, \fBfcmpltd\fR, \fBfcmpned\fR" 4
17170 .IX Item "fcmpeqd, fcmpged, fcmpgtd, fcmpled, fcmpltd, fcmpned"
17171 Comparison operations.
17172 .IP "\fBfmind\fR, \fBfmaxd\fR" 4
17173 .IX Item "fmind, fmaxd"
17174 Double-precision minimum and maximum.  These instructions are only
17175 generated if \fB\-ffinite\-math\-only\fR is specified.
17176 .IP "\fBfsqrtd\fR" 4
17177 .IX Item "fsqrtd"
17178 Unary square root operation.
17179 .IP "\fBfcosd\fR, \fBfsind\fR, \fBftand\fR, \fBfatand\fR, \fBfexpd\fR, \fBflogd\fR" 4
17180 .IX Item "fcosd, fsind, ftand, fatand, fexpd, flogd"
17181 Double-precision trigonometric and exponential functions.  These instructions
17182 are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
17183 .RE
17184 .RS 4
17185 .Sp
17186 Conversions:
17187 .IP "\fBfextsd\fR" 4
17188 .IX Item "fextsd"
17189 Conversion from single precision to double precision.
17190 .IP "\fBftruncds\fR" 4
17191 .IX Item "ftruncds"
17192 Conversion from double precision to single precision.
17193 .IP "\fBfixsi\fR, \fBfixsu\fR, \fBfixdi\fR, \fBfixdu\fR" 4
17194 .IX Item "fixsi, fixsu, fixdi, fixdu"
17195 Conversion from floating point to signed or unsigned integer types, with
17196 truncation towards zero.
17197 .IP "\fBround\fR" 4
17198 .IX Item "round"
17199 Conversion from single-precision floating point to signed integer,
17200 rounding to the nearest integer and ties away from zero.
17201 This corresponds to the \f(CW\*(C`_\|_builtin_lroundf\*(C'\fR function when
17202 \&\fB\-fno\-math\-errno\fR is used.
17203 .IP "\fBfloatis\fR, \fBfloatus\fR, \fBfloatid\fR, \fBfloatud\fR" 4
17204 .IX Item "floatis, floatus, floatid, floatud"
17205 Conversion from signed or unsigned integer types to floating-point types.
17206 .RE
17207 .RS 4
17208 .Sp
17209 In addition, all of the following transfer instructions for internal
17210 registers X and Y must be provided to use any of the double-precision
17211 floating-point instructions.  Custom instructions taking two
17212 double-precision source operands expect the first operand in the
17213 64\-bit register X.  The other operand (or only operand of a unary
17214 operation) is given to the custom arithmetic instruction with the
17215 least significant half in source register \fIsrc1\fR and the most
17216 significant half in \fIsrc2\fR.  A custom instruction that returns a
17217 double-precision result returns the most significant 32 bits in the
17218 destination register and the other half in 32\-bit register Y.  
17219 \&\s-1GCC\s0 automatically generates the necessary code sequences to write
17220 register X and/or read register Y when double-precision floating-point
17221 instructions are used.
17222 .IP "\fBfwrx\fR" 4
17223 .IX Item "fwrx"
17224 Write \fIsrc1\fR into the least significant half of X and \fIsrc2\fR into
17225 the most significant half of X.
17226 .IP "\fBfwry\fR" 4
17227 .IX Item "fwry"
17228 Write \fIsrc1\fR into Y.
17229 .IP "\fBfrdxhi\fR, \fBfrdxlo\fR" 4
17230 .IX Item "frdxhi, frdxlo"
17231 Read the most or least (respectively) significant half of X and store it in
17232 \&\fIdest\fR.
17233 .IP "\fBfrdy\fR" 4
17234 .IX Item "frdy"
17235 Read the value of Y and store it into \fIdest\fR.
17236 .RE
17237 .RS 4
17238 .Sp
17239 Note that you can gain more local control over generation of Nios \s-1II\s0 custom
17240 instructions by using the \f(CW\*(C`target("custom\-\f(CIinsn\f(CW=\f(CIN\f(CW")\*(C'\fR
17241 and \f(CW\*(C`target("no\-custom\-\f(CIinsn\f(CW")\*(C'\fR function attributes
17242 or pragmas.
17243 .RE
17244 .IP "\fB\-mcustom\-fpu\-cfg=\fR\fIname\fR" 4
17245 .IX Item "-mcustom-fpu-cfg=name"
17246 This option enables a predefined, named set of custom instruction encodings
17247 (see \fB\-mcustom\-\fR\fIinsn\fR above).  
17248 Currently, the following sets are defined:
17249 .Sp
17250 \&\fB\-mcustom\-fpu\-cfg=60\-1\fR is equivalent to:
17251 \&\fB\-mcustom\-fmuls=252 
17252 \&\-mcustom\-fadds=253 
17253 \&\-mcustom\-fsubs=254 
17254 \&\-fsingle\-precision\-constant\fR
17255 .Sp
17256 \&\fB\-mcustom\-fpu\-cfg=60\-2\fR is equivalent to:
17257 \&\fB\-mcustom\-fmuls=252 
17258 \&\-mcustom\-fadds=253 
17259 \&\-mcustom\-fsubs=254 
17260 \&\-mcustom\-fdivs=255 
17261 \&\-fsingle\-precision\-constant\fR
17262 .Sp
17263 \&\fB\-mcustom\-fpu\-cfg=72\-3\fR is equivalent to:
17264 \&\fB\-mcustom\-floatus=243 
17265 \&\-mcustom\-fixsi=244 
17266 \&\-mcustom\-floatis=245 
17267 \&\-mcustom\-fcmpgts=246 
17268 \&\-mcustom\-fcmples=249 
17269 \&\-mcustom\-fcmpeqs=250 
17270 \&\-mcustom\-fcmpnes=251 
17271 \&\-mcustom\-fmuls=252 
17272 \&\-mcustom\-fadds=253 
17273 \&\-mcustom\-fsubs=254 
17274 \&\-mcustom\-fdivs=255 
17275 \&\-fsingle\-precision\-constant\fR
17276 .Sp
17277 Custom instruction assignments given by individual
17278 \&\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR options override those given by
17279 \&\fB\-mcustom\-fpu\-cfg=\fR, regardless of the
17280 order of the options on the command line.
17281 .Sp
17282 Note that you can gain more local control over selection of a \s-1FPU\s0
17283 configuration by using the \f(CW\*(C`target("custom\-fpu\-cfg=\f(CIname\f(CW")\*(C'\fR
17284 function attribute
17285 or pragma.
17286 .PP
17287 These additional \fB\-m\fR options are available for the Altera Nios \s-1II\s0
17288 \&\s-1ELF\s0 (bare-metal) target:
17289 .IP "\fB\-mhal\fR" 4
17290 .IX Item "-mhal"
17291 Link with \s-1HAL\s0 \s-1BSP\s0.  This suppresses linking with the GCC-provided C runtime
17292 startup and termination code, and is typically used in conjunction with
17293 \&\fB\-msys\-crt0=\fR to specify the location of the alternate startup code
17294 provided by the \s-1HAL\s0 \s-1BSP\s0.
17295 .IP "\fB\-msmallc\fR" 4
17296 .IX Item "-msmallc"
17297 Link with a limited version of the C library, \fB\-lsmallc\fR, rather than
17298 Newlib.
17299 .IP "\fB\-msys\-crt0=\fR\fIstartfile\fR" 4
17300 .IX Item "-msys-crt0=startfile"
17301 \&\fIstartfile\fR is the file name of the startfile (crt0) to use 
17302 when linking.  This option is only useful in conjunction with \fB\-mhal\fR.
17303 .IP "\fB\-msys\-lib=\fR\fIsystemlib\fR" 4
17304 .IX Item "-msys-lib=systemlib"
17305 \&\fIsystemlib\fR is the library name of the library that provides
17306 low-level system calls required by the C library,
17307 e.g. \f(CW\*(C`read\*(C'\fR and \f(CW\*(C`write\*(C'\fR.
17308 This option is typically used to link with a library provided by a \s-1HAL\s0 \s-1BSP\s0.
17309 .PP
17310 \fINvidia \s-1PTX\s0 Options\fR
17311 .IX Subsection "Nvidia PTX Options"
17312 .PP
17313 These options are defined for Nvidia \s-1PTX:\s0
17314 .IP "\fB\-m32\fR" 4
17315 .IX Item "-m32"
17316 .PD 0
17317 .IP "\fB\-m64\fR" 4
17318 .IX Item "-m64"
17319 .PD
17320 Generate code for 32\-bit or 64\-bit \s-1ABI\s0.
17321 .IP "\fB\-mmainkernel\fR" 4
17322 .IX Item "-mmainkernel"
17323 Link in code for a _\|_main kernel.  This is for stand-alone instead of
17324 offloading execution.
17325 .PP
17326 \fI\s-1PDP\-11\s0 Options\fR
17327 .IX Subsection "PDP-11 Options"
17328 .PP
17329 These options are defined for the \s-1PDP\-11:\s0
17330 .IP "\fB\-mfpu\fR" 4
17331 .IX Item "-mfpu"
17332 Use hardware \s-1FPP\s0 floating point.  This is the default.  (\s-1FIS\s0 floating
17333 point on the \s-1PDP\-11/40\s0 is not supported.)
17334 .IP "\fB\-msoft\-float\fR" 4
17335 .IX Item "-msoft-float"
17336 Do not use hardware floating point.
17337 .IP "\fB\-mac0\fR" 4
17338 .IX Item "-mac0"
17339 Return floating-point results in ac0 (fr0 in Unix assembler syntax).
17340 .IP "\fB\-mno\-ac0\fR" 4
17341 .IX Item "-mno-ac0"
17342 Return floating-point results in memory.  This is the default.
17343 .IP "\fB\-m40\fR" 4
17344 .IX Item "-m40"
17345 Generate code for a \s-1PDP\-11/40\s0.
17346 .IP "\fB\-m45\fR" 4
17347 .IX Item "-m45"
17348 Generate code for a \s-1PDP\-11/45\s0.  This is the default.
17349 .IP "\fB\-m10\fR" 4
17350 .IX Item "-m10"
17351 Generate code for a \s-1PDP\-11/10\s0.
17352 .IP "\fB\-mbcopy\-builtin\fR" 4
17353 .IX Item "-mbcopy-builtin"
17354 Use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.  This is the
17355 default.
17356 .IP "\fB\-mbcopy\fR" 4
17357 .IX Item "-mbcopy"
17358 Do not use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.
17359 .IP "\fB\-mint16\fR" 4
17360 .IX Item "-mint16"
17361 .PD 0
17362 .IP "\fB\-mno\-int32\fR" 4
17363 .IX Item "-mno-int32"
17364 .PD
17365 Use 16\-bit \f(CW\*(C`int\*(C'\fR.  This is the default.
17366 .IP "\fB\-mint32\fR" 4
17367 .IX Item "-mint32"
17368 .PD 0
17369 .IP "\fB\-mno\-int16\fR" 4
17370 .IX Item "-mno-int16"
17371 .PD
17372 Use 32\-bit \f(CW\*(C`int\*(C'\fR.
17373 .IP "\fB\-mfloat64\fR" 4
17374 .IX Item "-mfloat64"
17375 .PD 0
17376 .IP "\fB\-mno\-float32\fR" 4
17377 .IX Item "-mno-float32"
17378 .PD
17379 Use 64\-bit \f(CW\*(C`float\*(C'\fR.  This is the default.
17380 .IP "\fB\-mfloat32\fR" 4
17381 .IX Item "-mfloat32"
17382 .PD 0
17383 .IP "\fB\-mno\-float64\fR" 4
17384 .IX Item "-mno-float64"
17385 .PD
17386 Use 32\-bit \f(CW\*(C`float\*(C'\fR.
17387 .IP "\fB\-mabshi\fR" 4
17388 .IX Item "-mabshi"
17389 Use \f(CW\*(C`abshi2\*(C'\fR pattern.  This is the default.
17390 .IP "\fB\-mno\-abshi\fR" 4
17391 .IX Item "-mno-abshi"
17392 Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
17393 .IP "\fB\-mbranch\-expensive\fR" 4
17394 .IX Item "-mbranch-expensive"
17395 Pretend that branches are expensive.  This is for experimenting with
17396 code generation only.
17397 .IP "\fB\-mbranch\-cheap\fR" 4
17398 .IX Item "-mbranch-cheap"
17399 Do not pretend that branches are expensive.  This is the default.
17400 .IP "\fB\-munix\-asm\fR" 4
17401 .IX Item "-munix-asm"
17402 Use Unix assembler syntax.  This is the default when configured for
17403 \&\fBpdp11\-*\-bsd\fR.
17404 .IP "\fB\-mdec\-asm\fR" 4
17405 .IX Item "-mdec-asm"
17406 Use \s-1DEC\s0 assembler syntax.  This is the default when configured for any
17407 \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
17408 .PP
17409 \fIpicoChip Options\fR
17410 .IX Subsection "picoChip Options"
17411 .PP
17412 These \fB\-m\fR options are defined for picoChip implementations:
17413 .IP "\fB\-mae=\fR\fIae_type\fR" 4
17414 .IX Item "-mae=ae_type"
17415 Set the instruction set, register set, and instruction scheduling
17416 parameters for array element type \fIae_type\fR.  Supported values
17417 for \fIae_type\fR are \fB\s-1ANY\s0\fR, \fB\s-1MUL\s0\fR, and \fB\s-1MAC\s0\fR.
17418 .Sp
17419 \&\fB\-mae=ANY\fR selects a completely generic \s-1AE\s0 type.  Code
17420 generated with this option runs on any of the other \s-1AE\s0 types.  The
17421 code is not as efficient as it would be if compiled for a specific
17422 \&\s-1AE\s0 type, and some types of operation (e.g., multiplication) do not
17423 work properly on all types of \s-1AE\s0.
17424 .Sp
17425 \&\fB\-mae=MUL\fR selects a \s-1MUL\s0 \s-1AE\s0 type.  This is the most useful \s-1AE\s0 type
17426 for compiled code, and is the default.
17427 .Sp
17428 \&\fB\-mae=MAC\fR selects a DSP-style \s-1MAC\s0 \s-1AE\s0.  Code compiled with this
17429 option may suffer from poor performance of byte (char) manipulation,
17430 since the \s-1DSP\s0 \s-1AE\s0 does not provide hardware support for byte load/stores.
17431 .IP "\fB\-msymbol\-as\-address\fR" 4
17432 .IX Item "-msymbol-as-address"
17433 Enable the compiler to directly use a symbol name as an address in a
17434 load/store instruction, without first loading it into a
17435 register.  Typically, the use of this option generates larger
17436 programs, which run faster than when the option isn't used.  However, the
17437 results vary from program to program, so it is left as a user option,
17438 rather than being permanently enabled.
17439 .IP "\fB\-mno\-inefficient\-warnings\fR" 4
17440 .IX Item "-mno-inefficient-warnings"
17441 Disables warnings about the generation of inefficient code.  These
17442 warnings can be generated, for example, when compiling code that
17443 performs byte-level memory operations on the \s-1MAC\s0 \s-1AE\s0 type.  The \s-1MAC\s0 \s-1AE\s0 has
17444 no hardware support for byte-level memory operations, so all byte
17445 load/stores must be synthesized from word load/store operations.  This is
17446 inefficient and a warning is generated to indicate
17447 that you should rewrite the code to avoid byte operations, or to target
17448 an \s-1AE\s0 type that has the necessary hardware support.  This option disables
17449 these warnings.
17450 .PP
17451 \fIPowerPC Options\fR
17452 .IX Subsection "PowerPC Options"
17453 .PP
17454 These are listed under
17455 .PP
17456 \fI\s-1RL78\s0 Options\fR
17457 .IX Subsection "RL78 Options"
17458 .IP "\fB\-msim\fR" 4
17459 .IX Item "-msim"
17460 Links in additional target libraries to support operation within a
17461 simulator.
17462 .IP "\fB\-mmul=none\fR" 4
17463 .IX Item "-mmul=none"
17464 .PD 0
17465 .IP "\fB\-mmul=g13\fR" 4
17466 .IX Item "-mmul=g13"
17467 .IP "\fB\-mmul=rl78\fR" 4
17468 .IX Item "-mmul=rl78"
17469 .PD
17470 Specifies the type of hardware multiplication support to be used.  The
17471 default is \fBnone\fR, which uses software multiplication functions.
17472 The \fBg13\fR option is for the hardware multiply/divide peripheral
17473 only on the \s-1RL78/G13\s0 targets.  The \fBrl78\fR option is for the
17474 standard hardware multiplication defined in the \s-1RL78\s0 software manual.
17475 .IP "\fB\-m64bit\-doubles\fR" 4
17476 .IX Item "-m64bit-doubles"
17477 .PD 0
17478 .IP "\fB\-m32bit\-doubles\fR" 4
17479 .IX Item "-m32bit-doubles"
17480 .PD
17481 Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
17482 or 32 bits (\fB\-m32bit\-doubles\fR) in size.  The default is
17483 \&\fB\-m32bit\-doubles\fR.
17484 .PP
17485 \fI\s-1IBM\s0 \s-1RS/6000\s0 and PowerPC Options\fR
17486 .IX Subsection "IBM RS/6000 and PowerPC Options"
17487 .PP
17488 These \fB\-m\fR options are defined for the \s-1IBM\s0 \s-1RS/6000\s0 and PowerPC:
17489 .IP "\fB\-mpowerpc\-gpopt\fR" 4
17490 .IX Item "-mpowerpc-gpopt"
17491 .PD 0
17492 .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
17493 .IX Item "-mno-powerpc-gpopt"
17494 .IP "\fB\-mpowerpc\-gfxopt\fR" 4
17495 .IX Item "-mpowerpc-gfxopt"
17496 .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
17497 .IX Item "-mno-powerpc-gfxopt"
17498 .IP "\fB\-mpowerpc64\fR" 4
17499 .IX Item "-mpowerpc64"
17500 .IP "\fB\-mno\-powerpc64\fR" 4
17501 .IX Item "-mno-powerpc64"
17502 .IP "\fB\-mmfcrf\fR" 4
17503 .IX Item "-mmfcrf"
17504 .IP "\fB\-mno\-mfcrf\fR" 4
17505 .IX Item "-mno-mfcrf"
17506 .IP "\fB\-mpopcntb\fR" 4
17507 .IX Item "-mpopcntb"
17508 .IP "\fB\-mno\-popcntb\fR" 4
17509 .IX Item "-mno-popcntb"
17510 .IP "\fB\-mpopcntd\fR" 4
17511 .IX Item "-mpopcntd"
17512 .IP "\fB\-mno\-popcntd\fR" 4
17513 .IX Item "-mno-popcntd"
17514 .IP "\fB\-mfprnd\fR" 4
17515 .IX Item "-mfprnd"
17516 .IP "\fB\-mno\-fprnd\fR" 4
17517 .IX Item "-mno-fprnd"
17518 .IP "\fB\-mcmpb\fR" 4
17519 .IX Item "-mcmpb"
17520 .IP "\fB\-mno\-cmpb\fR" 4
17521 .IX Item "-mno-cmpb"
17522 .IP "\fB\-mmfpgpr\fR" 4
17523 .IX Item "-mmfpgpr"
17524 .IP "\fB\-mno\-mfpgpr\fR" 4
17525 .IX Item "-mno-mfpgpr"
17526 .IP "\fB\-mhard\-dfp\fR" 4
17527 .IX Item "-mhard-dfp"
17528 .IP "\fB\-mno\-hard\-dfp\fR" 4
17529 .IX Item "-mno-hard-dfp"
17530 .PD
17531 You use these options to specify which instructions are available on the
17532 processor you are using.  The default value of these options is
17533 determined when configuring \s-1GCC\s0.  Specifying the
17534 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
17535 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
17536 rather than the options listed above.
17537 .Sp
17538 Specifying \fB\-mpowerpc\-gpopt\fR allows
17539 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
17540 General Purpose group, including floating-point square root.  Specifying
17541 \&\fB\-mpowerpc\-gfxopt\fR allows \s-1GCC\s0 to
17542 use the optional PowerPC architecture instructions in the Graphics
17543 group, including floating-point select.
17544 .Sp
17545 The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
17546 condition register field instruction implemented on the \s-1POWER4\s0
17547 processor and other processors that support the PowerPC V2.01
17548 architecture.
17549 The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
17550 double-precision \s-1FP\s0 reciprocal estimate instruction implemented on the
17551 \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
17552 architecture.
17553 The \fB\-mpopcntd\fR option allows \s-1GCC\s0 to generate the popcount
17554 instruction implemented on the \s-1POWER7\s0 processor and other processors
17555 that support the PowerPC V2.06 architecture.
17556 The \fB\-mfprnd\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 round to
17557 integer instructions implemented on the \s-1POWER5+\s0 processor and other
17558 processors that support the PowerPC V2.03 architecture.
17559 The \fB\-mcmpb\fR option allows \s-1GCC\s0 to generate the compare bytes
17560 instruction implemented on the \s-1POWER6\s0 processor and other processors
17561 that support the PowerPC V2.05 architecture.
17562 The \fB\-mmfpgpr\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 move to/from
17563 general-purpose register instructions implemented on the \s-1POWER6X\s0
17564 processor and other processors that support the extended PowerPC V2.05
17565 architecture.
17566 The \fB\-mhard\-dfp\fR option allows \s-1GCC\s0 to generate the decimal
17567 floating-point instructions implemented on some \s-1POWER\s0 processors.
17568 .Sp
17569 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
17570 64\-bit instructions that are found in the full PowerPC64 architecture
17571 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
17572 \&\fB\-mno\-powerpc64\fR.
17573 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
17574 .IX Item "-mcpu=cpu_type"
17575 Set architecture type, register usage, and
17576 instruction scheduling parameters for machine type \fIcpu_type\fR.
17577 Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
17578 \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB464\fR, \fB464fp\fR,
17579 \&\fB476\fR, \fB476fp\fR, \fB505\fR, \fB601\fR, \fB602\fR, \fB603\fR,
17580 \&\fB603e\fR, \fB604\fR, \fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR,
17581 \&\fB7400\fR, \fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
17582 \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBa2\fR, \fBe300c2\fR,
17583 \&\fBe300c3\fR, \fBe500mc\fR, \fBe500mc64\fR, \fBe5500\fR,
17584 \&\fBe6500\fR, \fBec603e\fR, \fBG3\fR, \fBG4\fR, \fBG5\fR,
17585 \&\fBtitan\fR, \fBpower3\fR, \fBpower4\fR, \fBpower5\fR, \fBpower5+\fR,
17586 \&\fBpower6\fR, \fBpower6x\fR, \fBpower7\fR, \fBpower8\fR, \fBpowerpc\fR,
17587 \&\fBpowerpc64\fR, \fBpowerpc64le\fR, and \fBrs64\fR.
17588 .Sp
17589 \&\fB\-mcpu=powerpc\fR, \fB\-mcpu=powerpc64\fR, and
17590 \&\fB\-mcpu=powerpc64le\fR specify pure 32\-bit PowerPC (either
17591 endian), 64\-bit big endian PowerPC and 64\-bit little endian PowerPC
17592 architecture machine types, with an appropriate, generic processor
17593 model assumed for scheduling purposes.
17594 .Sp
17595 The other options specify a specific processor.  Code generated under
17596 those options runs best on that processor, and may not run at all on
17597 others.
17598 .Sp
17599 The \fB\-mcpu\fR options automatically enable or disable the
17600 following options:
17601 .Sp
17602 \&\fB\-maltivec  \-mfprnd  \-mhard\-float  \-mmfcrf  \-mmultiple 
17603 \&\-mpopcntb \-mpopcntd  \-mpowerpc64 
17604 \&\-mpowerpc\-gpopt  \-mpowerpc\-gfxopt  \-msingle\-float \-mdouble\-float 
17605 \&\-msimple\-fpu \-mstring  \-mmulhw  \-mdlmzb  \-mmfpgpr \-mvsx 
17606 \&\-mcrypto \-mdirect\-move \-mpower8\-fusion \-mpower8\-vector 
17607 \&\-mquad\-memory \-mquad\-memory\-atomic\fR
17608 .Sp
17609 The particular options set for any particular \s-1CPU\s0 varies between
17610 compiler versions, depending on what setting seems to produce optimal
17611 code for that \s-1CPU\s0; it doesn't necessarily reflect the actual hardware's
17612 capabilities.  If you wish to set an individual option to a particular
17613 value, you may specify it after the \fB\-mcpu\fR option, like
17614 \&\fB\-mcpu=970 \-mno\-altivec\fR.
17615 .Sp
17616 On \s-1AIX\s0, the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
17617 not enabled or disabled by the \fB\-mcpu\fR option at present because
17618 \&\s-1AIX\s0 does not have full support for these options.  You may still
17619 enable or disable them individually if you're sure it'll work in your
17620 environment.
17621 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
17622 .IX Item "-mtune=cpu_type"
17623 Set the instruction scheduling parameters for machine type
17624 \&\fIcpu_type\fR, but do not set the architecture type or register usage,
17625 as \fB\-mcpu=\fR\fIcpu_type\fR does.  The same
17626 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
17627 \&\fB\-mcpu\fR.  If both are specified, the code generated uses the
17628 architecture and registers set by \fB\-mcpu\fR, but the
17629 scheduling parameters set by \fB\-mtune\fR.
17630 .IP "\fB\-mcmodel=small\fR" 4
17631 .IX Item "-mcmodel=small"
17632 Generate PowerPC64 code for the small model: The \s-1TOC\s0 is limited to
17633 64k.
17634 .IP "\fB\-mcmodel=medium\fR" 4
17635 .IX Item "-mcmodel=medium"
17636 Generate PowerPC64 code for the medium model: The \s-1TOC\s0 and other static
17637 data may be up to a total of 4G in size.
17638 .IP "\fB\-mcmodel=large\fR" 4
17639 .IX Item "-mcmodel=large"
17640 Generate PowerPC64 code for the large model: The \s-1TOC\s0 may be up to 4G
17641 in size.  Other data and code is only limited by the 64\-bit address
17642 space.
17643 .IP "\fB\-maltivec\fR" 4
17644 .IX Item "-maltivec"
17645 .PD 0
17646 .IP "\fB\-mno\-altivec\fR" 4
17647 .IX Item "-mno-altivec"
17648 .PD
17649 Generate code that uses (does not use) AltiVec instructions, and also
17650 enable the use of built-in functions that allow more direct access to
17651 the AltiVec instruction set.  You may also need to set
17652 \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
17653 enhancements.
17654 .Sp
17655 When \fB\-maltivec\fR is used, rather than \fB\-maltivec=le\fR or
17656 \&\fB\-maltivec=be\fR, the element order for Altivec intrinsics such
17657 as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and \f(CW\*(C`vec_insert\*(C'\fR 
17658 match array element order corresponding to the endianness of the
17659 target.  That is, element zero identifies the leftmost element in a
17660 vector register when targeting a big-endian platform, and identifies
17661 the rightmost element in a vector register when targeting a
17662 little-endian platform.
17663 .IP "\fB\-maltivec=be\fR" 4
17664 .IX Item "-maltivec=be"
17665 Generate Altivec instructions using big-endian element order,
17666 regardless of whether the target is big\- or little-endian.  This is
17667 the default when targeting a big-endian platform.
17668 .Sp
17669 The element order is used to interpret element numbers in Altivec
17670 intrinsics such as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and
17671 \&\f(CW\*(C`vec_insert\*(C'\fR.  By default, these match array element order
17672 corresponding to the endianness for the target.
17673 .IP "\fB\-maltivec=le\fR" 4
17674 .IX Item "-maltivec=le"
17675 Generate Altivec instructions using little-endian element order,
17676 regardless of whether the target is big\- or little-endian.  This is
17677 the default when targeting a little-endian platform.  This option is
17678 currently ignored when targeting a big-endian platform.
17679 .Sp
17680 The element order is used to interpret element numbers in Altivec
17681 intrinsics such as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and
17682 \&\f(CW\*(C`vec_insert\*(C'\fR.  By default, these match array element order
17683 corresponding to the endianness for the target.
17684 .IP "\fB\-mvrsave\fR" 4
17685 .IX Item "-mvrsave"
17686 .PD 0
17687 .IP "\fB\-mno\-vrsave\fR" 4
17688 .IX Item "-mno-vrsave"
17689 .PD
17690 Generate \s-1VRSAVE\s0 instructions when generating AltiVec code.
17691 .IP "\fB\-mgen\-cell\-microcode\fR" 4
17692 .IX Item "-mgen-cell-microcode"
17693 Generate Cell microcode instructions.
17694 .IP "\fB\-mwarn\-cell\-microcode\fR" 4
17695 .IX Item "-mwarn-cell-microcode"
17696 Warn when a Cell microcode instruction is emitted.  An example
17697 of a Cell microcode instruction is a variable shift.
17698 .IP "\fB\-msecure\-plt\fR" 4
17699 .IX Item "-msecure-plt"
17700 Generate code that allows \fBld\fR and \fBld.so\fR
17701 to build executables and shared
17702 libraries with non-executable \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR sections.
17703 This is a PowerPC
17704 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
17705 .IP "\fB\-mbss\-plt\fR" 4
17706 .IX Item "-mbss-plt"
17707 Generate code that uses a \s-1BSS\s0 \f(CW\*(C`.plt\*(C'\fR section that \fBld.so\fR
17708 fills in, and
17709 requires \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR
17710 sections that are both writable and executable.
17711 This is a PowerPC 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
17712 .IP "\fB\-misel\fR" 4
17713 .IX Item "-misel"
17714 .PD 0
17715 .IP "\fB\-mno\-isel\fR" 4
17716 .IX Item "-mno-isel"
17717 .PD
17718 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
17719 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
17720 .IX Item "-misel=yes/no"
17721 This switch has been deprecated.  Use \fB\-misel\fR and
17722 \&\fB\-mno\-isel\fR instead.
17723 .IP "\fB\-mspe\fR" 4
17724 .IX Item "-mspe"
17725 .PD 0
17726 .IP "\fB\-mno\-spe\fR" 4
17727 .IX Item "-mno-spe"
17728 .PD
17729 This switch enables or disables the generation of \s-1SPE\s0 simd
17730 instructions.
17731 .IP "\fB\-mpaired\fR" 4
17732 .IX Item "-mpaired"
17733 .PD 0
17734 .IP "\fB\-mno\-paired\fR" 4
17735 .IX Item "-mno-paired"
17736 .PD
17737 This switch enables or disables the generation of \s-1PAIRED\s0 simd
17738 instructions.
17739 .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
17740 .IX Item "-mspe=yes/no"
17741 This option has been deprecated.  Use \fB\-mspe\fR and
17742 \&\fB\-mno\-spe\fR instead.
17743 .IP "\fB\-mvsx\fR" 4
17744 .IX Item "-mvsx"
17745 .PD 0
17746 .IP "\fB\-mno\-vsx\fR" 4
17747 .IX Item "-mno-vsx"
17748 .PD
17749 Generate code that uses (does not use) vector/scalar (\s-1VSX\s0)
17750 instructions, and also enable the use of built-in functions that allow
17751 more direct access to the \s-1VSX\s0 instruction set.
17752 .IP "\fB\-mcrypto\fR" 4
17753 .IX Item "-mcrypto"
17754 .PD 0
17755 .IP "\fB\-mno\-crypto\fR" 4
17756 .IX Item "-mno-crypto"
17757 .PD
17758 Enable the use (disable) of the built-in functions that allow direct
17759 access to the cryptographic instructions that were added in version
17760 2.07 of the PowerPC \s-1ISA\s0.
17761 .IP "\fB\-mdirect\-move\fR" 4
17762 .IX Item "-mdirect-move"
17763 .PD 0
17764 .IP "\fB\-mno\-direct\-move\fR" 4
17765 .IX Item "-mno-direct-move"
17766 .PD
17767 Generate code that uses (does not use) the instructions to move data
17768 between the general purpose registers and the vector/scalar (\s-1VSX\s0)
17769 registers that were added in version 2.07 of the PowerPC \s-1ISA\s0.
17770 .IP "\fB\-mpower8\-fusion\fR" 4
17771 .IX Item "-mpower8-fusion"
17772 .PD 0
17773 .IP "\fB\-mno\-power8\-fusion\fR" 4
17774 .IX Item "-mno-power8-fusion"
17775 .PD
17776 Generate code that keeps (does not keeps) some integer operations
17777 adjacent so that the instructions can be fused together on power8 and
17778 later processors.
17779 .IP "\fB\-mpower8\-vector\fR" 4
17780 .IX Item "-mpower8-vector"
17781 .PD 0
17782 .IP "\fB\-mno\-power8\-vector\fR" 4
17783 .IX Item "-mno-power8-vector"
17784 .PD
17785 Generate code that uses (does not use) the vector and scalar
17786 instructions that were added in version 2.07 of the PowerPC \s-1ISA\s0.  Also
17787 enable the use of built-in functions that allow more direct access to
17788 the vector instructions.
17789 .IP "\fB\-mquad\-memory\fR" 4
17790 .IX Item "-mquad-memory"
17791 .PD 0
17792 .IP "\fB\-mno\-quad\-memory\fR" 4
17793 .IX Item "-mno-quad-memory"
17794 .PD
17795 Generate code that uses (does not use) the non-atomic quad word memory
17796 instructions.  The \fB\-mquad\-memory\fR option requires use of
17797 64\-bit mode.
17798 .IP "\fB\-mquad\-memory\-atomic\fR" 4
17799 .IX Item "-mquad-memory-atomic"
17800 .PD 0
17801 .IP "\fB\-mno\-quad\-memory\-atomic\fR" 4
17802 .IX Item "-mno-quad-memory-atomic"
17803 .PD
17804 Generate code that uses (does not use) the atomic quad word memory
17805 instructions.  The \fB\-mquad\-memory\-atomic\fR option requires use of
17806 64\-bit mode.
17807 .IP "\fB\-mupper\-regs\-df\fR" 4
17808 .IX Item "-mupper-regs-df"
17809 .PD 0
17810 .IP "\fB\-mno\-upper\-regs\-df\fR" 4
17811 .IX Item "-mno-upper-regs-df"
17812 .PD
17813 Generate code that uses (does not use) the scalar double precision
17814 instructions that target all 64 registers in the vector/scalar
17815 floating point register set that were added in version 2.06 of the
17816 PowerPC \s-1ISA\s0.  \fB\-mupper\-regs\-df\fR is turned on by default if you
17817 use any of the \fB\-mcpu=power7\fR, \fB\-mcpu=power8\fR, or
17818 \&\fB\-mvsx\fR options.
17819 .IP "\fB\-mupper\-regs\-sf\fR" 4
17820 .IX Item "-mupper-regs-sf"
17821 .PD 0
17822 .IP "\fB\-mno\-upper\-regs\-sf\fR" 4
17823 .IX Item "-mno-upper-regs-sf"
17824 .PD
17825 Generate code that uses (does not use) the scalar single precision
17826 instructions that target all 64 registers in the vector/scalar
17827 floating point register set that were added in version 2.07 of the
17828 PowerPC \s-1ISA\s0.  \fB\-mupper\-regs\-sf\fR is turned on by default if you
17829 use either of the \fB\-mcpu=power8\fR or \fB\-mpower8\-vector\fR
17830 options.
17831 .IP "\fB\-mupper\-regs\fR" 4
17832 .IX Item "-mupper-regs"
17833 .PD 0
17834 .IP "\fB\-mno\-upper\-regs\fR" 4
17835 .IX Item "-mno-upper-regs"
17836 .PD
17837 Generate code that uses (does not use) the scalar
17838 instructions that target all 64 registers in the vector/scalar
17839 floating point register set, depending on the model of the machine.
17840 .Sp
17841 If the \fB\-mno\-upper\-regs\fR option is used, it turns off both
17842 \&\fB\-mupper\-regs\-sf\fR and \fB\-mupper\-regs\-df\fR options.
17843 .IP "\fB\-mfloat\-gprs=\fR\fIyes/single/double/no\fR" 4
17844 .IX Item "-mfloat-gprs=yes/single/double/no"
17845 .PD 0
17846 .IP "\fB\-mfloat\-gprs\fR" 4
17847 .IX Item "-mfloat-gprs"
17848 .PD
17849 This switch enables or disables the generation of floating-point
17850 operations on the general-purpose registers for architectures that
17851 support it.
17852 .Sp
17853 The argument \fByes\fR or \fBsingle\fR enables the use of
17854 single-precision floating-point operations.
17855 .Sp
17856 The argument \fBdouble\fR enables the use of single and
17857 double-precision floating-point operations.
17858 .Sp
17859 The argument \fBno\fR disables floating-point operations on the
17860 general-purpose registers.
17861 .Sp
17862 This option is currently only available on the MPC854x.
17863 .IP "\fB\-m32\fR" 4
17864 .IX Item "-m32"
17865 .PD 0
17866 .IP "\fB\-m64\fR" 4
17867 .IX Item "-m64"
17868 .PD
17869 Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
17870 targets (including GNU/Linux).  The 32\-bit environment sets int, long
17871 and pointer to 32 bits and generates code that runs on any PowerPC
17872 variant.  The 64\-bit environment sets int to 32 bits and long and
17873 pointer to 64 bits, and generates code for PowerPC64, as for
17874 \&\fB\-mpowerpc64\fR.
17875 .IP "\fB\-mfull\-toc\fR" 4
17876 .IX Item "-mfull-toc"
17877 .PD 0
17878 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
17879 .IX Item "-mno-fp-in-toc"
17880 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
17881 .IX Item "-mno-sum-in-toc"
17882 .IP "\fB\-mminimal\-toc\fR" 4
17883 .IX Item "-mminimal-toc"
17884 .PD
17885 Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
17886 every executable file.  The \fB\-mfull\-toc\fR option is selected by
17887 default.  In that case, \s-1GCC\s0 allocates at least one \s-1TOC\s0 entry for
17888 each unique non-automatic variable reference in your program.  \s-1GCC\s0
17889 also places floating-point constants in the \s-1TOC\s0.  However, only
17890 16,384 entries are available in the \s-1TOC\s0.
17891 .Sp
17892 If you receive a linker error message that saying you have overflowed
17893 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
17894 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
17895 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
17896 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
17897 generate code to calculate the sum of an address and a constant at
17898 run time instead of putting that sum into the \s-1TOC\s0.  You may specify one
17899 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
17900 slower and larger code at the expense of conserving \s-1TOC\s0 space.
17901 .Sp
17902 If you still run out of space in the \s-1TOC\s0 even when you specify both of
17903 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
17904 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
17905 option, \s-1GCC\s0 produces code that is slower and larger but which
17906 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
17907 only on files that contain less frequently-executed code.
17908 .IP "\fB\-maix64\fR" 4
17909 .IX Item "-maix64"
17910 .PD 0
17911 .IP "\fB\-maix32\fR" 4
17912 .IX Item "-maix32"
17913 .PD
17914 Enable 64\-bit \s-1AIX\s0 \s-1ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
17915 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
17916 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR,
17917 while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
17918 implies \fB\-mno\-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
17919 .IP "\fB\-mxl\-compat\fR" 4
17920 .IX Item "-mxl-compat"
17921 .PD 0
17922 .IP "\fB\-mno\-xl\-compat\fR" 4
17923 .IX Item "-mno-xl-compat"
17924 .PD
17925 Produce code that conforms more closely to \s-1IBM\s0 \s-1XL\s0 compiler semantics
17926 when using AIX-compatible \s-1ABI\s0.  Pass floating-point arguments to
17927 prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
17928 in addition to argument FPRs.  Do not assume that most significant
17929 double in 128\-bit long double value is properly rounded when comparing
17930 values and converting to double.  Use \s-1XL\s0 symbol names for long double
17931 support routines.
17932 .Sp
17933 The \s-1AIX\s0 calling convention was extended but not initially documented to
17934 handle an obscure K&R C case of calling a function that takes the
17935 address of its arguments with fewer arguments than declared.  \s-1IBM\s0 \s-1XL\s0
17936 compilers access floating-point arguments that do not fit in the
17937 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
17938 optimization.  Because always storing floating-point arguments on the
17939 stack is inefficient and rarely needed, this option is not enabled by
17940 default and only is necessary when calling subroutines compiled by \s-1IBM\s0
17941 \&\s-1XL\s0 compilers without optimization.
17942 .IP "\fB\-mpe\fR" 4
17943 .IX Item "-mpe"
17944 Support \fI\s-1IBM\s0 \s-1RS/6000\s0 \s-1SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
17945 application written to use message passing with special startup code to
17946 enable the application to run.  The system must have \s-1PE\s0 installed in the
17947 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
17948 must be overridden with the \fB\-specs=\fR option to specify the
17949 appropriate directory location.  The Parallel Environment does not
17950 support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
17951 option are incompatible.
17952 .IP "\fB\-malign\-natural\fR" 4
17953 .IX Item "-malign-natural"
17954 .PD 0
17955 .IP "\fB\-malign\-power\fR" 4
17956 .IX Item "-malign-power"
17957 .PD
17958 On \s-1AIX\s0, 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
17959 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
17960 types, such as floating-point doubles, on their natural size-based boundary.
17961 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
17962 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI\s0.
17963 .Sp
17964 On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
17965 is not supported.
17966 .IP "\fB\-msoft\-float\fR" 4
17967 .IX Item "-msoft-float"
17968 .PD 0
17969 .IP "\fB\-mhard\-float\fR" 4
17970 .IX Item "-mhard-float"
17971 .PD
17972 Generate code that does not use (uses) the floating-point register set.
17973 Software floating-point emulation is provided if you use the
17974 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
17975 .IP "\fB\-msingle\-float\fR" 4
17976 .IX Item "-msingle-float"
17977 .PD 0
17978 .IP "\fB\-mdouble\-float\fR" 4
17979 .IX Item "-mdouble-float"
17980 .PD
17981 Generate code for single\- or double-precision floating-point operations.
17982 \&\fB\-mdouble\-float\fR implies \fB\-msingle\-float\fR.
17983 .IP "\fB\-msimple\-fpu\fR" 4
17984 .IX Item "-msimple-fpu"
17985 Do not generate \f(CW\*(C`sqrt\*(C'\fR and \f(CW\*(C`div\*(C'\fR instructions for hardware
17986 floating-point unit.
17987 .IP "\fB\-mfpu=\fR\fIname\fR" 4
17988 .IX Item "-mfpu=name"
17989 Specify type of floating-point unit.  Valid values for \fIname\fR are
17990 \&\fBsp_lite\fR (equivalent to \fB\-msingle\-float \-msimple\-fpu\fR),
17991 \&\fBdp_lite\fR (equivalent to \fB\-mdouble\-float \-msimple\-fpu\fR),
17992 \&\fBsp_full\fR (equivalent to \fB\-msingle\-float\fR),
17993 and \fBdp_full\fR (equivalent to \fB\-mdouble\-float\fR).
17994 .IP "\fB\-mxilinx\-fpu\fR" 4
17995 .IX Item "-mxilinx-fpu"
17996 Perform optimizations for the floating-point unit on Xilinx \s-1PPC\s0 405/440.
17997 .IP "\fB\-mmultiple\fR" 4
17998 .IX Item "-mmultiple"
17999 .PD 0
18000 .IP "\fB\-mno\-multiple\fR" 4
18001 .IX Item "-mno-multiple"
18002 .PD
18003 Generate code that uses (does not use) the load multiple word
18004 instructions and the store multiple word instructions.  These
18005 instructions are generated by default on \s-1POWER\s0 systems, and not
18006 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little-endian
18007 PowerPC systems, since those instructions do not work when the
18008 processor is in little-endian mode.  The exceptions are \s-1PPC740\s0 and
18009 \&\s-1PPC750\s0 which permit these instructions in little-endian mode.
18010 .IP "\fB\-mstring\fR" 4
18011 .IX Item "-mstring"
18012 .PD 0
18013 .IP "\fB\-mno\-string\fR" 4
18014 .IX Item "-mno-string"
18015 .PD
18016 Generate code that uses (does not use) the load string instructions
18017 and the store string word instructions to save multiple registers and
18018 do small block moves.  These instructions are generated by default on
18019 \&\s-1POWER\s0 systems, and not generated on PowerPC systems.  Do not use
18020 \&\fB\-mstring\fR on little-endian PowerPC systems, since those
18021 instructions do not work when the processor is in little-endian mode.
18022 The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit these instructions
18023 in little-endian mode.
18024 .IP "\fB\-mupdate\fR" 4
18025 .IX Item "-mupdate"
18026 .PD 0
18027 .IP "\fB\-mno\-update\fR" 4
18028 .IX Item "-mno-update"
18029 .PD
18030 Generate code that uses (does not use) the load or store instructions
18031 that update the base register to the address of the calculated memory
18032 location.  These instructions are generated by default.  If you use
18033 \&\fB\-mno\-update\fR, there is a small window between the time that the
18034 stack pointer is updated and the address of the previous frame is
18035 stored, which means code that walks the stack frame across interrupts or
18036 signals may get corrupted data.
18037 .IP "\fB\-mavoid\-indexed\-addresses\fR" 4
18038 .IX Item "-mavoid-indexed-addresses"
18039 .PD 0
18040 .IP "\fB\-mno\-avoid\-indexed\-addresses\fR" 4
18041 .IX Item "-mno-avoid-indexed-addresses"
18042 .PD
18043 Generate code that tries to avoid (not avoid) the use of indexed load
18044 or store instructions. These instructions can incur a performance
18045 penalty on Power6 processors in certain situations, such as when
18046 stepping through large arrays that cross a 16M boundary.  This option
18047 is enabled by default when targeting Power6 and disabled otherwise.
18048 .IP "\fB\-mfused\-madd\fR" 4
18049 .IX Item "-mfused-madd"
18050 .PD 0
18051 .IP "\fB\-mno\-fused\-madd\fR" 4
18052 .IX Item "-mno-fused-madd"
18053 .PD
18054 Generate code that uses (does not use) the floating-point multiply and
18055 accumulate instructions.  These instructions are generated by default
18056 if hardware floating point is used.  The machine-dependent
18057 \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
18058 \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
18059 mapped to \fB\-ffp\-contract=off\fR.
18060 .IP "\fB\-mmulhw\fR" 4
18061 .IX Item "-mmulhw"
18062 .PD 0
18063 .IP "\fB\-mno\-mulhw\fR" 4
18064 .IX Item "-mno-mulhw"
18065 .PD
18066 Generate code that uses (does not use) the half-word multiply and
18067 multiply-accumulate instructions on the \s-1IBM\s0 405, 440, 464 and 476 processors.
18068 These instructions are generated by default when targeting those
18069 processors.
18070 .IP "\fB\-mdlmzb\fR" 4
18071 .IX Item "-mdlmzb"
18072 .PD 0
18073 .IP "\fB\-mno\-dlmzb\fR" 4
18074 .IX Item "-mno-dlmzb"
18075 .PD
18076 Generate code that uses (does not use) the string-search \fBdlmzb\fR
18077 instruction on the \s-1IBM\s0 405, 440, 464 and 476 processors.  This instruction is
18078 generated by default when targeting those processors.
18079 .IP "\fB\-mno\-bit\-align\fR" 4
18080 .IX Item "-mno-bit-align"
18081 .PD 0
18082 .IP "\fB\-mbit\-align\fR" 4
18083 .IX Item "-mbit-align"
18084 .PD
18085 On System V.4 and embedded PowerPC systems do not (do) force structures
18086 and unions that contain bit-fields to be aligned to the base type of the
18087 bit-field.
18088 .Sp
18089 For example, by default a structure containing nothing but 8
18090 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 is aligned to a 4\-byte
18091 boundary and has a size of 4 bytes.  By using \fB\-mno\-bit\-align\fR,
18092 the structure is aligned to a 1\-byte boundary and is 1 byte in
18093 size.
18094 .IP "\fB\-mno\-strict\-align\fR" 4
18095 .IX Item "-mno-strict-align"
18096 .PD 0
18097 .IP "\fB\-mstrict\-align\fR" 4
18098 .IX Item "-mstrict-align"
18099 .PD
18100 On System V.4 and embedded PowerPC systems do not (do) assume that
18101 unaligned memory references are handled by the system.
18102 .IP "\fB\-mrelocatable\fR" 4
18103 .IX Item "-mrelocatable"
18104 .PD 0
18105 .IP "\fB\-mno\-relocatable\fR" 4
18106 .IX Item "-mno-relocatable"
18107 .PD
18108 Generate code that allows (does not allow) a static executable to be
18109 relocated to a different address at run time.  A simple embedded
18110 PowerPC system loader should relocate the entire contents of
18111 \&\f(CW\*(C`.got2\*(C'\fR and 4\-byte locations listed in the \f(CW\*(C`.fixup\*(C'\fR section,
18112 a table of 32\-bit addresses generated by this option.  For this to
18113 work, all objects linked together must be compiled with
18114 \&\fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
18115 \&\fB\-mrelocatable\fR code aligns the stack to an 8\-byte boundary.
18116 .IP "\fB\-mrelocatable\-lib\fR" 4
18117 .IX Item "-mrelocatable-lib"
18118 .PD 0
18119 .IP "\fB\-mno\-relocatable\-lib\fR" 4
18120 .IX Item "-mno-relocatable-lib"
18121 .PD
18122 Like \fB\-mrelocatable\fR, \fB\-mrelocatable\-lib\fR generates a
18123 \&\f(CW\*(C`.fixup\*(C'\fR section to allow static executables to be relocated at
18124 run time, but \fB\-mrelocatable\-lib\fR does not use the smaller stack
18125 alignment of \fB\-mrelocatable\fR.  Objects compiled with
18126 \&\fB\-mrelocatable\-lib\fR may be linked with objects compiled with
18127 any combination of the \fB\-mrelocatable\fR options.
18128 .IP "\fB\-mno\-toc\fR" 4
18129 .IX Item "-mno-toc"
18130 .PD 0
18131 .IP "\fB\-mtoc\fR" 4
18132 .IX Item "-mtoc"
18133 .PD
18134 On System V.4 and embedded PowerPC systems do not (do) assume that
18135 register 2 contains a pointer to a global area pointing to the addresses
18136 used in the program.
18137 .IP "\fB\-mlittle\fR" 4
18138 .IX Item "-mlittle"
18139 .PD 0
18140 .IP "\fB\-mlittle\-endian\fR" 4
18141 .IX Item "-mlittle-endian"
18142 .PD
18143 On System V.4 and embedded PowerPC systems compile code for the
18144 processor in little-endian mode.  The \fB\-mlittle\-endian\fR option is
18145 the same as \fB\-mlittle\fR.
18146 .IP "\fB\-mbig\fR" 4
18147 .IX Item "-mbig"
18148 .PD 0
18149 .IP "\fB\-mbig\-endian\fR" 4
18150 .IX Item "-mbig-endian"
18151 .PD
18152 On System V.4 and embedded PowerPC systems compile code for the
18153 processor in big-endian mode.  The \fB\-mbig\-endian\fR option is
18154 the same as \fB\-mbig\fR.
18155 .IP "\fB\-mdynamic\-no\-pic\fR" 4
18156 .IX Item "-mdynamic-no-pic"
18157 On Darwin and Mac \s-1OS\s0 X systems, compile code so that it is not
18158 relocatable, but that its external references are relocatable.  The
18159 resulting code is suitable for applications, but not shared
18160 libraries.
18161 .IP "\fB\-msingle\-pic\-base\fR" 4
18162 .IX Item "-msingle-pic-base"
18163 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
18164 loading it in the prologue for each function.  The runtime system is
18165 responsible for initializing this register with an appropriate value
18166 before execution begins.
18167 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
18168 .IX Item "-mprioritize-restricted-insns=priority"
18169 This option controls the priority that is assigned to
18170 dispatch-slot restricted instructions during the second scheduling
18171 pass.  The argument \fIpriority\fR takes the value \fB0\fR, \fB1\fR,
18172 or \fB2\fR to assign no, highest, or second-highest (respectively) 
18173 priority to dispatch-slot restricted
18174 instructions.
18175 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
18176 .IX Item "-msched-costly-dep=dependence_type"
18177 This option controls which dependences are considered costly
18178 by the target during instruction scheduling.  The argument
18179 \&\fIdependence_type\fR takes one of the following values:
18180 .RS 4
18181 .IP "\fBno\fR" 4
18182 .IX Item "no"
18183 No dependence is costly.
18184 .IP "\fBall\fR" 4
18185 .IX Item "all"
18186 All dependences are costly.
18187 .IP "\fBtrue_store_to_load\fR" 4
18188 .IX Item "true_store_to_load"
18189 A true dependence from store to load is costly.
18190 .IP "\fBstore_to_load\fR" 4
18191 .IX Item "store_to_load"
18192 Any dependence from store to load is costly.
18193 .IP "\fInumber\fR" 4
18194 .IX Item "number"
18195 Any dependence for which the latency is greater than or equal to 
18196 \&\fInumber\fR is costly.
18197 .RE
18198 .RS 4
18199 .RE
18200 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
18201 .IX Item "-minsert-sched-nops=scheme"
18202 This option controls which \s-1NOP\s0 insertion scheme is used during
18203 the second scheduling pass.  The argument \fIscheme\fR takes one of the
18204 following values:
18205 .RS 4
18206 .IP "\fBno\fR" 4
18207 .IX Item "no"
18208 Don't insert NOPs.
18209 .IP "\fBpad\fR" 4
18210 .IX Item "pad"
18211 Pad with NOPs any dispatch group that has vacant issue slots,
18212 according to the scheduler's grouping.
18213 .IP "\fBregroup_exact\fR" 4
18214 .IX Item "regroup_exact"
18215 Insert NOPs to force costly dependent insns into
18216 separate groups.  Insert exactly as many NOPs as needed to force an insn
18217 to a new group, according to the estimated processor grouping.
18218 .IP "\fInumber\fR" 4
18219 .IX Item "number"
18220 Insert NOPs to force costly dependent insns into
18221 separate groups.  Insert \fInumber\fR NOPs to force an insn to a new group.
18222 .RE
18223 .RS 4
18224 .RE
18225 .IP "\fB\-mcall\-sysv\fR" 4
18226 .IX Item "-mcall-sysv"
18227 On System V.4 and embedded PowerPC systems compile code using calling
18228 conventions that adhere to the March 1995 draft of the System V
18229 Application Binary Interface, PowerPC processor supplement.  This is the
18230 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
18231 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
18232 .IX Item "-mcall-sysv-eabi"
18233 .PD 0
18234 .IP "\fB\-mcall\-eabi\fR" 4
18235 .IX Item "-mcall-eabi"
18236 .PD
18237 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
18238 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
18239 .IX Item "-mcall-sysv-noeabi"
18240 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
18241 .IP "\fB\-mcall\-aixdesc\fR" 4
18242 .IX Item "-mcall-aixdesc"
18243 On System V.4 and embedded PowerPC systems compile code for the \s-1AIX\s0
18244 operating system.
18245 .IP "\fB\-mcall\-linux\fR" 4
18246 .IX Item "-mcall-linux"
18247 On System V.4 and embedded PowerPC systems compile code for the
18248 Linux-based \s-1GNU\s0 system.
18249 .IP "\fB\-mcall\-freebsd\fR" 4
18250 .IX Item "-mcall-freebsd"
18251 On System V.4 and embedded PowerPC systems compile code for the
18252 FreeBSD operating system.
18253 .IP "\fB\-mcall\-netbsd\fR" 4
18254 .IX Item "-mcall-netbsd"
18255 On System V.4 and embedded PowerPC systems compile code for the
18256 NetBSD operating system.
18257 .IP "\fB\-mcall\-openbsd\fR" 4
18258 .IX Item "-mcall-openbsd"
18259 On System V.4 and embedded PowerPC systems compile code for the
18260 OpenBSD operating system.
18261 .IP "\fB\-maix\-struct\-return\fR" 4
18262 .IX Item "-maix-struct-return"
18263 Return all structures in memory (as specified by the \s-1AIX\s0 \s-1ABI\s0).
18264 .IP "\fB\-msvr4\-struct\-return\fR" 4
18265 .IX Item "-msvr4-struct-return"
18266 Return structures smaller than 8 bytes in registers (as specified by the
18267 \&\s-1SVR4\s0 \s-1ABI\s0).
18268 .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
18269 .IX Item "-mabi=abi-type"
18270 Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
18271 Valid values are \fBaltivec\fR, \fBno-altivec\fR, \fBspe\fR,
18272 \&\fBno-spe\fR, \fBibmlongdouble\fR, \fBieeelongdouble\fR,
18273 \&\fBelfv1\fR, \fBelfv2\fR.
18274 .IP "\fB\-mabi=spe\fR" 4
18275 .IX Item "-mabi=spe"
18276 Extend the current \s-1ABI\s0 with \s-1SPE\s0 \s-1ABI\s0 extensions.  This does not change
18277 the default \s-1ABI\s0, instead it adds the \s-1SPE\s0 \s-1ABI\s0 extensions to the current
18278 \&\s-1ABI\s0.
18279 .IP "\fB\-mabi=no\-spe\fR" 4
18280 .IX Item "-mabi=no-spe"
18281 Disable Book-E \s-1SPE\s0 \s-1ABI\s0 extensions for the current \s-1ABI\s0.
18282 .IP "\fB\-mabi=ibmlongdouble\fR" 4
18283 .IX Item "-mabi=ibmlongdouble"
18284 Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended-precision long double.
18285 This is a PowerPC 32\-bit \s-1SYSV\s0 \s-1ABI\s0 option.
18286 .IP "\fB\-mabi=ieeelongdouble\fR" 4
18287 .IX Item "-mabi=ieeelongdouble"
18288 Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended-precision long double.
18289 This is a PowerPC 32\-bit Linux \s-1ABI\s0 option.
18290 .IP "\fB\-mabi=elfv1\fR" 4
18291 .IX Item "-mabi=elfv1"
18292 Change the current \s-1ABI\s0 to use the ELFv1 \s-1ABI\s0.
18293 This is the default \s-1ABI\s0 for big-endian PowerPC 64\-bit Linux.
18294 Overriding the default \s-1ABI\s0 requires special system support and is
18295 likely to fail in spectacular ways.
18296 .IP "\fB\-mabi=elfv2\fR" 4
18297 .IX Item "-mabi=elfv2"
18298 Change the current \s-1ABI\s0 to use the ELFv2 \s-1ABI\s0.
18299 This is the default \s-1ABI\s0 for little-endian PowerPC 64\-bit Linux.
18300 Overriding the default \s-1ABI\s0 requires special system support and is
18301 likely to fail in spectacular ways.
18302 .IP "\fB\-mprototype\fR" 4
18303 .IX Item "-mprototype"
18304 .PD 0
18305 .IP "\fB\-mno\-prototype\fR" 4
18306 .IX Item "-mno-prototype"
18307 .PD
18308 On System V.4 and embedded PowerPC systems assume that all calls to
18309 variable argument functions are properly prototyped.  Otherwise, the
18310 compiler must insert an instruction before every non-prototyped call to
18311 set or clear bit 6 of the condition code register (\f(CW\*(C`CR\*(C'\fR) to
18312 indicate whether floating-point values are passed in the floating-point
18313 registers in case the function takes variable arguments.  With
18314 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
18315 set or clear the bit.
18316 .IP "\fB\-msim\fR" 4
18317 .IX Item "-msim"
18318 On embedded PowerPC systems, assume that the startup module is called
18319 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
18320 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR
18321 configurations.
18322 .IP "\fB\-mmvme\fR" 4
18323 .IX Item "-mmvme"
18324 On embedded PowerPC systems, assume that the startup module is called
18325 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
18326 \&\fIlibc.a\fR.
18327 .IP "\fB\-mads\fR" 4
18328 .IX Item "-mads"
18329 On embedded PowerPC systems, assume that the startup module is called
18330 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
18331 \&\fIlibc.a\fR.
18332 .IP "\fB\-myellowknife\fR" 4
18333 .IX Item "-myellowknife"
18334 On embedded PowerPC systems, assume that the startup module is called
18335 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
18336 \&\fIlibc.a\fR.
18337 .IP "\fB\-mvxworks\fR" 4
18338 .IX Item "-mvxworks"
18339 On System V.4 and embedded PowerPC systems, specify that you are
18340 compiling for a VxWorks system.
18341 .IP "\fB\-memb\fR" 4
18342 .IX Item "-memb"
18343 On embedded PowerPC systems, set the \f(CW\*(C`PPC_EMB\*(C'\fR bit in the \s-1ELF\s0 flags
18344 header to indicate that \fBeabi\fR extended relocations are used.
18345 .IP "\fB\-meabi\fR" 4
18346 .IX Item "-meabi"
18347 .PD 0
18348 .IP "\fB\-mno\-eabi\fR" 4
18349 .IX Item "-mno-eabi"
18350 .PD
18351 On System V.4 and embedded PowerPC systems do (do not) adhere to the
18352 Embedded Applications Binary Interface (\s-1EABI\s0), which is a set of
18353 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
18354 means that the stack is aligned to an 8\-byte boundary, a function
18355 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called from \f(CW\*(C`main\*(C'\fR to set up the \s-1EABI\s0
18356 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
18357 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
18358 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16\-byte boundary,
18359 no \s-1EABI\s0 initialization function is called from \f(CW\*(C`main\*(C'\fR, and the
18360 \&\fB\-msdata\fR option only uses \f(CW\*(C`r13\*(C'\fR to point to a single
18361 small data area.  The \fB\-meabi\fR option is on by default if you
18362 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
18363 .IP "\fB\-msdata=eabi\fR" 4
18364 .IX Item "-msdata=eabi"
18365 On System V.4 and embedded PowerPC systems, put small initialized
18366 \&\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata2\*(C'\fR section, which
18367 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
18368 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata\*(C'\fR section,
18369 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
18370 global and static data in the \f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to
18371 the \f(CW\*(C`.sdata\*(C'\fR section.  The \fB\-msdata=eabi\fR option is
18372 incompatible with the \fB\-mrelocatable\fR option.  The
18373 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
18374 .IP "\fB\-msdata=sysv\fR" 4
18375 .IX Item "-msdata=sysv"
18376 On System V.4 and embedded PowerPC systems, put small global and static
18377 data in the \f(CW\*(C`.sdata\*(C'\fR section, which is pointed to by register
18378 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
18379 \&\f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to the \f(CW\*(C`.sdata\*(C'\fR section.
18380 The \fB\-msdata=sysv\fR option is incompatible with the
18381 \&\fB\-mrelocatable\fR option.
18382 .IP "\fB\-msdata=default\fR" 4
18383 .IX Item "-msdata=default"
18384 .PD 0
18385 .IP "\fB\-msdata\fR" 4
18386 .IX Item "-msdata"
18387 .PD
18388 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
18389 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
18390 same as \fB\-msdata=sysv\fR.
18391 .IP "\fB\-msdata=data\fR" 4
18392 .IX Item "-msdata=data"
18393 On System V.4 and embedded PowerPC systems, put small global
18394 data in the \f(CW\*(C`.sdata\*(C'\fR section.  Put small uninitialized global
18395 data in the \f(CW\*(C`.sbss\*(C'\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
18396 to address small data however.  This is the default behavior unless
18397 other \fB\-msdata\fR options are used.
18398 .IP "\fB\-msdata=none\fR" 4
18399 .IX Item "-msdata=none"
18400 .PD 0
18401 .IP "\fB\-mno\-sdata\fR" 4
18402 .IX Item "-mno-sdata"
18403 .PD
18404 On embedded PowerPC systems, put all initialized global and static data
18405 in the \f(CW\*(C`.data\*(C'\fR section, and all uninitialized data in the
18406 \&\f(CW\*(C`.bss\*(C'\fR section.
18407 .IP "\fB\-mblock\-move\-inline\-limit=\fR\fInum\fR" 4
18408 .IX Item "-mblock-move-inline-limit=num"
18409 Inline all block moves (such as calls to \f(CW\*(C`memcpy\*(C'\fR or structure
18410 copies) less than or equal to \fInum\fR bytes.  The minimum value for
18411 \&\fInum\fR is 32 bytes on 32\-bit targets and 64 bytes on 64\-bit
18412 targets.  The default value is target-specific.
18413 .IP "\fB\-G\fR \fInum\fR" 4
18414 .IX Item "-G num"
18415 On embedded PowerPC systems, put global and static items less than or
18416 equal to \fInum\fR bytes into the small data or \s-1BSS\s0 sections instead of
18417 the normal data or \s-1BSS\s0 section.  By default, \fInum\fR is 8.  The
18418 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
18419 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
18420 .IP "\fB\-mregnames\fR" 4
18421 .IX Item "-mregnames"
18422 .PD 0
18423 .IP "\fB\-mno\-regnames\fR" 4
18424 .IX Item "-mno-regnames"
18425 .PD
18426 On System V.4 and embedded PowerPC systems do (do not) emit register
18427 names in the assembly language output using symbolic forms.
18428 .IP "\fB\-mlongcall\fR" 4
18429 .IX Item "-mlongcall"
18430 .PD 0
18431 .IP "\fB\-mno\-longcall\fR" 4
18432 .IX Item "-mno-longcall"
18433 .PD
18434 By default assume that all calls are far away so that a longer and more
18435 expensive calling sequence is required.  This is required for calls
18436 farther than 32 megabytes (33,554,432 bytes) from the current location.
18437 A short call is generated if the compiler knows
18438 the call cannot be that far away.  This setting can be overridden by
18439 the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
18440 longcall(0)\*(C'\fR.
18441 .Sp
18442 Some linkers are capable of detecting out-of-range calls and generating
18443 glue code on the fly.  On these systems, long calls are unnecessary and
18444 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
18445 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
18446 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
18447 .Sp
18448 On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR generates \f(CW\*(C`jbsr
18449 callee, L42\*(C'\fR, plus a \fIbranch island\fR (glue code).  The two target
18450 addresses represent the callee and the branch island.  The
18451 Darwin/PPC linker prefers the first address and generates a \f(CW\*(C`bl
18452 callee\*(C'\fR if the \s-1PPC\s0 \f(CW\*(C`bl\*(C'\fR instruction reaches the callee directly;
18453 otherwise, the linker generates \f(CW\*(C`bl L42\*(C'\fR to call the branch
18454 island.  The branch island is appended to the body of the
18455 calling function; it computes the full 32\-bit address of the callee
18456 and jumps to it.
18457 .Sp
18458 On Mach-O (Darwin) systems, this option directs the compiler emit to
18459 the glue for every direct call, and the Darwin linker decides whether
18460 to use or discard it.
18461 .Sp
18462 In the future, \s-1GCC\s0 may ignore all longcall specifications
18463 when the linker is known to generate glue.
18464 .IP "\fB\-mtls\-markers\fR" 4
18465 .IX Item "-mtls-markers"
18466 .PD 0
18467 .IP "\fB\-mno\-tls\-markers\fR" 4
18468 .IX Item "-mno-tls-markers"
18469 .PD
18470 Mark (do not mark) calls to \f(CW\*(C`_\|_tls_get_addr\*(C'\fR with a relocation
18471 specifying the function argument.  The relocation allows the linker to
18472 reliably associate function call with argument setup instructions for
18473 \&\s-1TLS\s0 optimization, which in turn allows \s-1GCC\s0 to better schedule the
18474 sequence.
18475 .IP "\fB\-pthread\fR" 4
18476 .IX Item "-pthread"
18477 Adds support for multithreading with the \fIpthreads\fR library.
18478 This option sets flags for both the preprocessor and linker.
18479 .IP "\fB\-mrecip\fR" 4
18480 .IX Item "-mrecip"
18481 .PD 0
18482 .IP "\fB\-mno\-recip\fR" 4
18483 .IX Item "-mno-recip"
18484 .PD
18485 This option enables use of the reciprocal estimate and
18486 reciprocal square root estimate instructions with additional
18487 Newton-Raphson steps to increase precision instead of doing a divide or
18488 square root and divide for floating-point arguments.  You should use
18489 the \fB\-ffast\-math\fR option when using \fB\-mrecip\fR (or at
18490 least \fB\-funsafe\-math\-optimizations\fR,
18491 \&\fB\-finite\-math\-only\fR, \fB\-freciprocal\-math\fR and
18492 \&\fB\-fno\-trapping\-math\fR).  Note that while the throughput of the
18493 sequence is generally higher than the throughput of the non-reciprocal
18494 instruction, the precision of the sequence can be decreased by up to 2
18495 ulp (i.e. the inverse of 1.0 equals 0.99999994) for reciprocal square
18496 roots.
18497 .IP "\fB\-mrecip=\fR\fIopt\fR" 4
18498 .IX Item "-mrecip=opt"
18499 This option controls which reciprocal estimate instructions
18500 may be used.  \fIopt\fR is a comma-separated list of options, which may
18501 be preceded by a \f(CW\*(C`!\*(C'\fR to invert the option:
18502 .RS 4
18503 .IP "\fBall\fR" 4
18504 .IX Item "all"
18505 Enable all estimate instructions.
18506 .IP "\fBdefault\fR" 4
18507 .IX Item "default"
18508 Enable the default instructions, equivalent to \fB\-mrecip\fR.
18509 .IP "\fBnone\fR" 4
18510 .IX Item "none"
18511 Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
18512 .IP "\fBdiv\fR" 4
18513 .IX Item "div"
18514 Enable the reciprocal approximation instructions for both 
18515 single and double precision.
18516 .IP "\fBdivf\fR" 4
18517 .IX Item "divf"
18518 Enable the single-precision reciprocal approximation instructions.
18519 .IP "\fBdivd\fR" 4
18520 .IX Item "divd"
18521 Enable the double-precision reciprocal approximation instructions.
18522 .IP "\fBrsqrt\fR" 4
18523 .IX Item "rsqrt"
18524 Enable the reciprocal square root approximation instructions for both
18525 single and double precision.
18526 .IP "\fBrsqrtf\fR" 4
18527 .IX Item "rsqrtf"
18528 Enable the single-precision reciprocal square root approximation instructions.
18529 .IP "\fBrsqrtd\fR" 4
18530 .IX Item "rsqrtd"
18531 Enable the double-precision reciprocal square root approximation instructions.
18532 .RE
18533 .RS 4
18534 .Sp
18535 So, for example, \fB\-mrecip=all,!rsqrtd\fR enables
18536 all of the reciprocal estimate instructions, except for the
18537 \&\f(CW\*(C`FRSQRTE\*(C'\fR, \f(CW\*(C`XSRSQRTEDP\*(C'\fR, and \f(CW\*(C`XVRSQRTEDP\*(C'\fR instructions
18538 which handle the double-precision reciprocal square root calculations.
18539 .RE
18540 .IP "\fB\-mrecip\-precision\fR" 4
18541 .IX Item "-mrecip-precision"
18542 .PD 0
18543 .IP "\fB\-mno\-recip\-precision\fR" 4
18544 .IX Item "-mno-recip-precision"
18545 .PD
18546 Assume (do not assume) that the reciprocal estimate instructions
18547 provide higher-precision estimates than is mandated by the PowerPC
18548 \&\s-1ABI\s0.  Selecting \fB\-mcpu=power6\fR, \fB\-mcpu=power7\fR or
18549 \&\fB\-mcpu=power8\fR automatically selects \fB\-mrecip\-precision\fR.
18550 The double-precision square root estimate instructions are not generated by
18551 default on low-precision machines, since they do not provide an
18552 estimate that converges after three steps.
18553 .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
18554 .IX Item "-mveclibabi=type"
18555 Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
18556 external library.  The only type supported at present is \fBmass\fR,
18557 which specifies to use \s-1IBM\s0's Mathematical Acceleration Subsystem
18558 (\s-1MASS\s0) libraries for vectorizing intrinsics using external libraries.
18559 \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`acosd2\*(C'\fR, \f(CW\*(C`acosf4\*(C'\fR,
18560 \&\f(CW\*(C`acoshd2\*(C'\fR, \f(CW\*(C`acoshf4\*(C'\fR, \f(CW\*(C`asind2\*(C'\fR, \f(CW\*(C`asinf4\*(C'\fR,
18561 \&\f(CW\*(C`asinhd2\*(C'\fR, \f(CW\*(C`asinhf4\*(C'\fR, \f(CW\*(C`atan2d2\*(C'\fR, \f(CW\*(C`atan2f4\*(C'\fR,
18562 \&\f(CW\*(C`atand2\*(C'\fR, \f(CW\*(C`atanf4\*(C'\fR, \f(CW\*(C`atanhd2\*(C'\fR, \f(CW\*(C`atanhf4\*(C'\fR,
18563 \&\f(CW\*(C`cbrtd2\*(C'\fR, \f(CW\*(C`cbrtf4\*(C'\fR, \f(CW\*(C`cosd2\*(C'\fR, \f(CW\*(C`cosf4\*(C'\fR,
18564 \&\f(CW\*(C`coshd2\*(C'\fR, \f(CW\*(C`coshf4\*(C'\fR, \f(CW\*(C`erfcd2\*(C'\fR, \f(CW\*(C`erfcf4\*(C'\fR,
18565 \&\f(CW\*(C`erfd2\*(C'\fR, \f(CW\*(C`erff4\*(C'\fR, \f(CW\*(C`exp2d2\*(C'\fR, \f(CW\*(C`exp2f4\*(C'\fR,
18566 \&\f(CW\*(C`expd2\*(C'\fR, \f(CW\*(C`expf4\*(C'\fR, \f(CW\*(C`expm1d2\*(C'\fR, \f(CW\*(C`expm1f4\*(C'\fR,
18567 \&\f(CW\*(C`hypotd2\*(C'\fR, \f(CW\*(C`hypotf4\*(C'\fR, \f(CW\*(C`lgammad2\*(C'\fR, \f(CW\*(C`lgammaf4\*(C'\fR,
18568 \&\f(CW\*(C`log10d2\*(C'\fR, \f(CW\*(C`log10f4\*(C'\fR, \f(CW\*(C`log1pd2\*(C'\fR, \f(CW\*(C`log1pf4\*(C'\fR,
18569 \&\f(CW\*(C`log2d2\*(C'\fR, \f(CW\*(C`log2f4\*(C'\fR, \f(CW\*(C`logd2\*(C'\fR, \f(CW\*(C`logf4\*(C'\fR,
18570 \&\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,
18571 \&\f(CW\*(C`sinhf4\*(C'\fR, \f(CW\*(C`sqrtd2\*(C'\fR, \f(CW\*(C`sqrtf4\*(C'\fR, \f(CW\*(C`tand2\*(C'\fR,
18572 \&\f(CW\*(C`tanf4\*(C'\fR, \f(CW\*(C`tanhd2\*(C'\fR, and \f(CW\*(C`tanhf4\*(C'\fR when generating code
18573 for power7.  Both \fB\-ftree\-vectorize\fR and
18574 \&\fB\-funsafe\-math\-optimizations\fR must also be enabled.  The \s-1MASS\s0
18575 libraries must be specified at link time.
18576 .IP "\fB\-mfriz\fR" 4
18577 .IX Item "-mfriz"
18578 .PD 0
18579 .IP "\fB\-mno\-friz\fR" 4
18580 .IX Item "-mno-friz"
18581 .PD
18582 Generate (do not generate) the \f(CW\*(C`friz\*(C'\fR instruction when the
18583 \&\fB\-funsafe\-math\-optimizations\fR option is used to optimize
18584 rounding of floating-point values to 64\-bit integer and back to floating
18585 point.  The \f(CW\*(C`friz\*(C'\fR instruction does not return the same value if
18586 the floating-point number is too large to fit in an integer.
18587 .IP "\fB\-mpointers\-to\-nested\-functions\fR" 4
18588 .IX Item "-mpointers-to-nested-functions"
18589 .PD 0
18590 .IP "\fB\-mno\-pointers\-to\-nested\-functions\fR" 4
18591 .IX Item "-mno-pointers-to-nested-functions"
18592 .PD
18593 Generate (do not generate) code to load up the static chain register
18594 (\f(CW\*(C`r11\*(C'\fR) when calling through a pointer on \s-1AIX\s0 and 64\-bit Linux
18595 systems where a function pointer points to a 3\-word descriptor giving
18596 the function address, \s-1TOC\s0 value to be loaded in register \f(CW\*(C`r2\*(C'\fR, and
18597 static chain value to be loaded in register \f(CW\*(C`r11\*(C'\fR.  The
18598 \&\fB\-mpointers\-to\-nested\-functions\fR is on by default.  You cannot
18599 call through pointers to nested functions or pointers
18600 to functions compiled in other languages that use the static chain if
18601 you use \fB\-mno\-pointers\-to\-nested\-functions\fR.
18602 .IP "\fB\-msave\-toc\-indirect\fR" 4
18603 .IX Item "-msave-toc-indirect"
18604 .PD 0
18605 .IP "\fB\-mno\-save\-toc\-indirect\fR" 4
18606 .IX Item "-mno-save-toc-indirect"
18607 .PD
18608 Generate (do not generate) code to save the \s-1TOC\s0 value in the reserved
18609 stack location in the function prologue if the function calls through
18610 a pointer on \s-1AIX\s0 and 64\-bit Linux systems.  If the \s-1TOC\s0 value is not
18611 saved in the prologue, it is saved just before the call through the
18612 pointer.  The \fB\-mno\-save\-toc\-indirect\fR option is the default.
18613 .IP "\fB\-mcompat\-align\-parm\fR" 4
18614 .IX Item "-mcompat-align-parm"
18615 .PD 0
18616 .IP "\fB\-mno\-compat\-align\-parm\fR" 4
18617 .IX Item "-mno-compat-align-parm"
18618 .PD
18619 Generate (do not generate) code to pass structure parameters with a
18620 maximum alignment of 64 bits, for compatibility with older versions
18621 of \s-1GCC\s0.
18622 .Sp
18623 Older versions of \s-1GCC\s0 (prior to 4.9.0) incorrectly did not align a
18624 structure parameter on a 128\-bit boundary when that structure contained
18625 a member requiring 128\-bit alignment.  This is corrected in more
18626 recent versions of \s-1GCC\s0.  This option may be used to generate code
18627 that is compatible with functions compiled with older versions of
18628 \&\s-1GCC\s0.
18629 .Sp
18630 The \fB\-mno\-compat\-align\-parm\fR option is the default.
18631 .PP
18632 \fI\s-1RX\s0 Options\fR
18633 .IX Subsection "RX Options"
18634 .PP
18635 These command-line options are defined for \s-1RX\s0 targets:
18636 .IP "\fB\-m64bit\-doubles\fR" 4
18637 .IX Item "-m64bit-doubles"
18638 .PD 0
18639 .IP "\fB\-m32bit\-doubles\fR" 4
18640 .IX Item "-m32bit-doubles"
18641 .PD
18642 Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
18643 or 32 bits (\fB\-m32bit\-doubles\fR) in size.  The default is
18644 \&\fB\-m32bit\-doubles\fR.  \fINote\fR \s-1RX\s0 floating-point hardware only
18645 works on 32\-bit values, which is why the default is
18646 \&\fB\-m32bit\-doubles\fR.
18647 .IP "\fB\-fpu\fR" 4
18648 .IX Item "-fpu"
18649 .PD 0
18650 .IP "\fB\-nofpu\fR" 4
18651 .IX Item "-nofpu"
18652 .PD
18653 Enables (\fB\-fpu\fR) or disables (\fB\-nofpu\fR) the use of \s-1RX\s0
18654 floating-point hardware.  The default is enabled for the \s-1RX600\s0
18655 series and disabled for the \s-1RX200\s0 series.
18656 .Sp
18657 Floating-point instructions are only generated for 32\-bit floating-point 
18658 values, however, so the \s-1FPU\s0 hardware is not used for doubles if the
18659 \&\fB\-m64bit\-doubles\fR option is used.
18660 .Sp
18661 \&\fINote\fR If the \fB\-fpu\fR option is enabled then
18662 \&\fB\-funsafe\-math\-optimizations\fR is also enabled automatically.
18663 This is because the \s-1RX\s0 \s-1FPU\s0 instructions are themselves unsafe.
18664 .IP "\fB\-mcpu=\fR\fIname\fR" 4
18665 .IX Item "-mcpu=name"
18666 Selects the type of \s-1RX\s0 \s-1CPU\s0 to be targeted.  Currently three types are
18667 supported, the generic \fB\s-1RX600\s0\fR and \fB\s-1RX200\s0\fR series hardware and
18668 the specific \fB\s-1RX610\s0\fR \s-1CPU\s0.  The default is \fB\s-1RX600\s0\fR.
18669 .Sp
18670 The only difference between \fB\s-1RX600\s0\fR and \fB\s-1RX610\s0\fR is that the
18671 \&\fB\s-1RX610\s0\fR does not support the \f(CW\*(C`MVTIPL\*(C'\fR instruction.
18672 .Sp
18673 The \fB\s-1RX200\s0\fR series does not have a hardware floating-point unit
18674 and so \fB\-nofpu\fR is enabled by default when this type is
18675 selected.
18676 .IP "\fB\-mbig\-endian\-data\fR" 4
18677 .IX Item "-mbig-endian-data"
18678 .PD 0
18679 .IP "\fB\-mlittle\-endian\-data\fR" 4
18680 .IX Item "-mlittle-endian-data"
18681 .PD
18682 Store data (but not code) in the big-endian format.  The default is
18683 \&\fB\-mlittle\-endian\-data\fR, i.e. to store data in the little-endian
18684 format.
18685 .IP "\fB\-msmall\-data\-limit=\fR\fIN\fR" 4
18686 .IX Item "-msmall-data-limit=N"
18687 Specifies the maximum size in bytes of global and static variables
18688 which can be placed into the small data area.  Using the small data
18689 area can lead to smaller and faster code, but the size of area is
18690 limited and it is up to the programmer to ensure that the area does
18691 not overflow.  Also when the small data area is used one of the \s-1RX\s0's
18692 registers (usually \f(CW\*(C`r13\*(C'\fR) is reserved for use pointing to this
18693 area, so it is no longer available for use by the compiler.  This
18694 could result in slower and/or larger code if variables are pushed onto
18695 the stack instead of being held in this register.
18696 .Sp
18697 Note, common variables (variables that have not been initialized) and
18698 constants are not placed into the small data area as they are assigned
18699 to other sections in the output executable.
18700 .Sp
18701 The default value is zero, which disables this feature.  Note, this
18702 feature is not enabled by default with higher optimization levels
18703 (\fB\-O2\fR etc) because of the potentially detrimental effects of
18704 reserving a register.  It is up to the programmer to experiment and
18705 discover whether this feature is of benefit to their program.  See the
18706 description of the \fB\-mpid\fR option for a description of how the
18707 actual register to hold the small data area pointer is chosen.
18708 .IP "\fB\-msim\fR" 4
18709 .IX Item "-msim"
18710 .PD 0
18711 .IP "\fB\-mno\-sim\fR" 4
18712 .IX Item "-mno-sim"
18713 .PD
18714 Use the simulator runtime.  The default is to use the libgloss
18715 board-specific runtime.
18716 .IP "\fB\-mas100\-syntax\fR" 4
18717 .IX Item "-mas100-syntax"
18718 .PD 0
18719 .IP "\fB\-mno\-as100\-syntax\fR" 4
18720 .IX Item "-mno-as100-syntax"
18721 .PD
18722 When generating assembler output use a syntax that is compatible with
18723 Renesas's \s-1AS100\s0 assembler.  This syntax can also be handled by the \s-1GAS\s0
18724 assembler, but it has some restrictions so it is not generated by default.
18725 .IP "\fB\-mmax\-constant\-size=\fR\fIN\fR" 4
18726 .IX Item "-mmax-constant-size=N"
18727 Specifies the maximum size, in bytes, of a constant that can be used as
18728 an operand in a \s-1RX\s0 instruction.  Although the \s-1RX\s0 instruction set does
18729 allow constants of up to 4 bytes in length to be used in instructions,
18730 a longer value equates to a longer instruction.  Thus in some
18731 circumstances it can be beneficial to restrict the size of constants
18732 that are used in instructions.  Constants that are too big are instead
18733 placed into a constant pool and referenced via register indirection.
18734 .Sp
18735 The value \fIN\fR can be between 0 and 4.  A value of 0 (the default)
18736 or 4 means that constants of any size are allowed.
18737 .IP "\fB\-mrelax\fR" 4
18738 .IX Item "-mrelax"
18739 Enable linker relaxation.  Linker relaxation is a process whereby the
18740 linker attempts to reduce the size of a program by finding shorter
18741 versions of various instructions.  Disabled by default.
18742 .IP "\fB\-mint\-register=\fR\fIN\fR" 4
18743 .IX Item "-mint-register=N"
18744 Specify the number of registers to reserve for fast interrupt handler
18745 functions.  The value \fIN\fR can be between 0 and 4.  A value of 1
18746 means that register \f(CW\*(C`r13\*(C'\fR is reserved for the exclusive use
18747 of fast interrupt handlers.  A value of 2 reserves \f(CW\*(C`r13\*(C'\fR and
18748 \&\f(CW\*(C`r12\*(C'\fR.  A value of 3 reserves \f(CW\*(C`r13\*(C'\fR, \f(CW\*(C`r12\*(C'\fR and
18749 \&\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.
18750 A value of 0, the default, does not reserve any registers.
18751 .IP "\fB\-msave\-acc\-in\-interrupts\fR" 4
18752 .IX Item "-msave-acc-in-interrupts"
18753 Specifies that interrupt handler functions should preserve the
18754 accumulator register.  This is only necessary if normal code might use
18755 the accumulator register, for example because it performs 64\-bit
18756 multiplications.  The default is to ignore the accumulator as this
18757 makes the interrupt handlers faster.
18758 .IP "\fB\-mpid\fR" 4
18759 .IX Item "-mpid"
18760 .PD 0
18761 .IP "\fB\-mno\-pid\fR" 4
18762 .IX Item "-mno-pid"
18763 .PD
18764 Enables the generation of position independent data.  When enabled any
18765 access to constant data is done via an offset from a base address
18766 held in a register.  This allows the location of constant data to be
18767 determined at run time without requiring the executable to be
18768 relocated, which is a benefit to embedded applications with tight
18769 memory constraints.  Data that can be modified is not affected by this
18770 option.
18771 .Sp
18772 Note, using this feature reserves a register, usually \f(CW\*(C`r13\*(C'\fR, for
18773 the constant data base address.  This can result in slower and/or
18774 larger code, especially in complicated functions.
18775 .Sp
18776 The actual register chosen to hold the constant data base address
18777 depends upon whether the \fB\-msmall\-data\-limit\fR and/or the
18778 \&\fB\-mint\-register\fR command-line options are enabled.  Starting
18779 with register \f(CW\*(C`r13\*(C'\fR and proceeding downwards, registers are
18780 allocated first to satisfy the requirements of \fB\-mint\-register\fR,
18781 then \fB\-mpid\fR and finally \fB\-msmall\-data\-limit\fR.  Thus it
18782 is possible for the small data area register to be \f(CW\*(C`r8\*(C'\fR if both
18783 \&\fB\-mint\-register=4\fR and \fB\-mpid\fR are specified on the
18784 command line.
18785 .Sp
18786 By default this feature is not enabled.  The default can be restored
18787 via the \fB\-mno\-pid\fR command-line option.
18788 .IP "\fB\-mno\-warn\-multiple\-fast\-interrupts\fR" 4
18789 .IX Item "-mno-warn-multiple-fast-interrupts"
18790 .PD 0
18791 .IP "\fB\-mwarn\-multiple\-fast\-interrupts\fR" 4
18792 .IX Item "-mwarn-multiple-fast-interrupts"
18793 .PD
18794 Prevents \s-1GCC\s0 from issuing a warning message if it finds more than one
18795 fast interrupt handler when it is compiling a file.  The default is to
18796 issue a warning for each extra fast interrupt handler found, as the \s-1RX\s0
18797 only supports one such interrupt.
18798 .PP
18799 \&\fINote:\fR The generic \s-1GCC\s0 command-line option \fB\-ffixed\-\fR\fIreg\fR
18800 has special significance to the \s-1RX\s0 port when used with the
18801 \&\f(CW\*(C`interrupt\*(C'\fR function attribute.  This attribute indicates a
18802 function intended to process fast interrupts.  \s-1GCC\s0 ensures
18803 that it only uses the registers \f(CW\*(C`r10\*(C'\fR, \f(CW\*(C`r11\*(C'\fR, \f(CW\*(C`r12\*(C'\fR
18804 and/or \f(CW\*(C`r13\*(C'\fR and only provided that the normal use of the
18805 corresponding registers have been restricted via the
18806 \&\fB\-ffixed\-\fR\fIreg\fR or \fB\-mint\-register\fR command-line
18807 options.
18808 .PP
18809 \fIS/390 and zSeries Options\fR
18810 .IX Subsection "S/390 and zSeries Options"
18811 .PP
18812 These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
18813 .IP "\fB\-mhard\-float\fR" 4
18814 .IX Item "-mhard-float"
18815 .PD 0
18816 .IP "\fB\-msoft\-float\fR" 4
18817 .IX Item "-msoft-float"
18818 .PD
18819 Use (do not use) the hardware floating-point instructions and registers
18820 for floating-point operations.  When \fB\-msoft\-float\fR is specified,
18821 functions in \fIlibgcc.a\fR are used to perform floating-point
18822 operations.  When \fB\-mhard\-float\fR is specified, the compiler
18823 generates \s-1IEEE\s0 floating-point instructions.  This is the default.
18824 .IP "\fB\-mhard\-dfp\fR" 4
18825 .IX Item "-mhard-dfp"
18826 .PD 0
18827 .IP "\fB\-mno\-hard\-dfp\fR" 4
18828 .IX Item "-mno-hard-dfp"
18829 .PD
18830 Use (do not use) the hardware decimal-floating-point instructions for
18831 decimal-floating-point operations.  When \fB\-mno\-hard\-dfp\fR is
18832 specified, functions in \fIlibgcc.a\fR are used to perform
18833 decimal-floating-point operations.  When \fB\-mhard\-dfp\fR is
18834 specified, the compiler generates decimal-floating-point hardware
18835 instructions.  This is the default for \fB\-march=z9\-ec\fR or higher.
18836 .IP "\fB\-mlong\-double\-64\fR" 4
18837 .IX Item "-mlong-double-64"
18838 .PD 0
18839 .IP "\fB\-mlong\-double\-128\fR" 4
18840 .IX Item "-mlong-double-128"
18841 .PD
18842 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
18843 of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
18844 type. This is the default.
18845 .IP "\fB\-mbackchain\fR" 4
18846 .IX Item "-mbackchain"
18847 .PD 0
18848 .IP "\fB\-mno\-backchain\fR" 4
18849 .IX Item "-mno-backchain"
18850 .PD
18851 Store (do not store) the address of the caller's frame as backchain pointer
18852 into the callee's stack frame.
18853 A backchain may be needed to allow debugging using tools that do not understand
18854 \&\s-1DWARF\s0 2 call frame information.
18855 When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
18856 at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
18857 the backchain is placed into the topmost word of the 96/160 byte register
18858 save area.
18859 .Sp
18860 In general, code compiled with \fB\-mbackchain\fR is call-compatible with
18861 code compiled with \fB\-mmo\-backchain\fR; however, use of the backchain
18862 for debugging purposes usually requires that the whole binary is built with
18863 \&\fB\-mbackchain\fR.  Note that the combination of \fB\-mbackchain\fR,
18864 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
18865 to build a linux kernel use \fB\-msoft\-float\fR.
18866 .Sp
18867 The default is to not maintain the backchain.
18868 .IP "\fB\-mpacked\-stack\fR" 4
18869 .IX Item "-mpacked-stack"
18870 .PD 0
18871 .IP "\fB\-mno\-packed\-stack\fR" 4
18872 .IX Item "-mno-packed-stack"
18873 .PD
18874 Use (do not use) the packed stack layout.  When \fB\-mno\-packed\-stack\fR is
18875 specified, the compiler uses the all fields of the 96/160 byte register save
18876 area only for their default purpose; unused fields still take up stack space.
18877 When \fB\-mpacked\-stack\fR is specified, register save slots are densely
18878 packed at the top of the register save area; unused space is reused for other
18879 purposes, allowing for more efficient use of the available stack space.
18880 However, when \fB\-mbackchain\fR is also in effect, the topmost word of
18881 the save area is always used to store the backchain, and the return address
18882 register is always saved two words below the backchain.
18883 .Sp
18884 As long as the stack frame backchain is not used, code generated with
18885 \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
18886 \&\fB\-mno\-packed\-stack\fR.  Note that some non-FSF releases of \s-1GCC\s0 2.95 for
18887 S/390 or zSeries generated code that uses the stack frame backchain at run
18888 time, not just for debugging purposes.  Such code is not call-compatible
18889 with code compiled with \fB\-mpacked\-stack\fR.  Also, note that the
18890 combination of \fB\-mbackchain\fR,
18891 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
18892 to build a linux kernel use \fB\-msoft\-float\fR.
18893 .Sp
18894 The default is to not use the packed stack layout.
18895 .IP "\fB\-msmall\-exec\fR" 4
18896 .IX Item "-msmall-exec"
18897 .PD 0
18898 .IP "\fB\-mno\-small\-exec\fR" 4
18899 .IX Item "-mno-small-exec"
18900 .PD
18901 Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
18902 to do subroutine calls.
18903 This only works reliably if the total executable size does not
18904 exceed 64k.  The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
18905 which does not have this limitation.
18906 .IP "\fB\-m64\fR" 4
18907 .IX Item "-m64"
18908 .PD 0
18909 .IP "\fB\-m31\fR" 4
18910 .IX Item "-m31"
18911 .PD
18912 When \fB\-m31\fR is specified, generate code compliant to the
18913 GNU/Linux for S/390 \s-1ABI\s0.  When \fB\-m64\fR is specified, generate
18914 code compliant to the GNU/Linux for zSeries \s-1ABI\s0.  This allows \s-1GCC\s0 in
18915 particular to generate 64\-bit instructions.  For the \fBs390\fR
18916 targets, the default is \fB\-m31\fR, while the \fBs390x\fR
18917 targets default to \fB\-m64\fR.
18918 .IP "\fB\-mzarch\fR" 4
18919 .IX Item "-mzarch"
18920 .PD 0
18921 .IP "\fB\-mesa\fR" 4
18922 .IX Item "-mesa"
18923 .PD
18924 When \fB\-mzarch\fR is specified, generate code using the
18925 instructions available on z/Architecture.
18926 When \fB\-mesa\fR is specified, generate code using the
18927 instructions available on \s-1ESA/390\s0.  Note that \fB\-mesa\fR is
18928 not possible with \fB\-m64\fR.
18929 When generating code compliant to the GNU/Linux for S/390 \s-1ABI\s0,
18930 the default is \fB\-mesa\fR.  When generating code compliant
18931 to the GNU/Linux for zSeries \s-1ABI\s0, the default is \fB\-mzarch\fR.
18932 .IP "\fB\-mmvcle\fR" 4
18933 .IX Item "-mmvcle"
18934 .PD 0
18935 .IP "\fB\-mno\-mvcle\fR" 4
18936 .IX Item "-mno-mvcle"
18937 .PD
18938 Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
18939 to perform block moves.  When \fB\-mno\-mvcle\fR is specified,
18940 use a \f(CW\*(C`mvc\*(C'\fR loop instead.  This is the default unless optimizing for
18941 size.
18942 .IP "\fB\-mdebug\fR" 4
18943 .IX Item "-mdebug"
18944 .PD 0
18945 .IP "\fB\-mno\-debug\fR" 4
18946 .IX Item "-mno-debug"
18947 .PD
18948 Print (or do not print) additional debug information when compiling.
18949 The default is to not print debug information.
18950 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
18951 .IX Item "-march=cpu-type"
18952 Generate code that runs on \fIcpu-type\fR, which is the name of a system
18953 representing a certain processor type.  Possible values for
18954 \&\fIcpu-type\fR are \fBg5\fR, \fBg6\fR, \fBz900\fR, \fBz990\fR,
18955 \&\fBz9\-109\fR, \fBz9\-ec\fR, \fBz10\fR,  \fBz196\fR, \fBzEC12\fR,
18956 and \fBz13\fR.
18957 When generating code using the instructions available on z/Architecture,
18958 the default is \fB\-march=z900\fR.  Otherwise, the default is
18959 \&\fB\-march=g5\fR.
18960 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
18961 .IX Item "-mtune=cpu-type"
18962 Tune to \fIcpu-type\fR everything applicable about the generated code,
18963 except for the \s-1ABI\s0 and the set of available instructions.
18964 The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
18965 The default is the value used for \fB\-march\fR.
18966 .IP "\fB\-mtpf\-trace\fR" 4
18967 .IX Item "-mtpf-trace"
18968 .PD 0
18969 .IP "\fB\-mno\-tpf\-trace\fR" 4
18970 .IX Item "-mno-tpf-trace"
18971 .PD
18972 Generate code that adds (does not add) in \s-1TPF\s0 \s-1OS\s0 specific branches to trace
18973 routines in the operating system.  This option is off by default, even
18974 when compiling for the \s-1TPF\s0 \s-1OS\s0.
18975 .IP "\fB\-mfused\-madd\fR" 4
18976 .IX Item "-mfused-madd"
18977 .PD 0
18978 .IP "\fB\-mno\-fused\-madd\fR" 4
18979 .IX Item "-mno-fused-madd"
18980 .PD
18981 Generate code that uses (does not use) the floating-point multiply and
18982 accumulate instructions.  These instructions are generated by default if
18983 hardware floating point is used.
18984 .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
18985 .IX Item "-mwarn-framesize=framesize"
18986 Emit a warning if the current function exceeds the given frame size.  Because
18987 this is a compile-time check it doesn't need to be a real problem when the program
18988 runs.  It is intended to identify functions that most probably cause
18989 a stack overflow.  It is useful to be used in an environment with limited stack
18990 size e.g. the linux kernel.
18991 .IP "\fB\-mwarn\-dynamicstack\fR" 4
18992 .IX Item "-mwarn-dynamicstack"
18993 Emit a warning if the function calls \f(CW\*(C`alloca\*(C'\fR or uses dynamically-sized
18994 arrays.  This is generally a bad idea with a limited stack size.
18995 .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
18996 .IX Item "-mstack-guard=stack-guard"
18997 .PD 0
18998 .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
18999 .IX Item "-mstack-size=stack-size"
19000 .PD
19001 If these options are provided the S/390 back end emits additional instructions in
19002 the function prologue that trigger a trap if the stack size is \fIstack-guard\fR
19003 bytes above the \fIstack-size\fR (remember that the stack on S/390 grows downward).
19004 If the \fIstack-guard\fR option is omitted the smallest power of 2 larger than
19005 the frame size of the compiled function is chosen.
19006 These options are intended to be used to help debugging stack overflow problems.
19007 The additionally emitted code causes only little overhead and hence can also be
19008 used in production-like systems without greater performance degradation.  The given
19009 values have to be exact powers of 2 and \fIstack-size\fR has to be greater than
19010 \&\fIstack-guard\fR without exceeding 64k.
19011 In order to be efficient the extra code makes the assumption that the stack starts
19012 at an address aligned to the value given by \fIstack-size\fR.
19013 The \fIstack-guard\fR option can only be used in conjunction with \fIstack-size\fR.
19014 .IP "\fB\-mhotpatch=\fR\fIpre-halfwords\fR\fB,\fR\fIpost-halfwords\fR" 4
19015 .IX Item "-mhotpatch=pre-halfwords,post-halfwords"
19016 If the hotpatch option is enabled, a \*(L"hot-patching\*(R" function
19017 prologue is generated for all functions in the compilation unit.
19018 The funtion label is prepended with the given number of two-byte
19019 \&\s-1NOP\s0 instructions (\fIpre-halfwords\fR, maximum 1000000).  After
19020 the label, 2 * \fIpost-halfwords\fR bytes are appended, using the
19021 largest \s-1NOP\s0 like instructions the architecture allows (maximum
19022 1000000).
19023 .Sp
19024 If both arguments are zero, hotpatching is disabled.
19025 .Sp
19026 This option can be overridden for individual functions with the
19027 \&\f(CW\*(C`hotpatch\*(C'\fR attribute.
19028 .PP
19029 \fIScore Options\fR
19030 .IX Subsection "Score Options"
19031 .PP
19032 These options are defined for Score implementations:
19033 .IP "\fB\-meb\fR" 4
19034 .IX Item "-meb"
19035 Compile code for big-endian mode.  This is the default.
19036 .IP "\fB\-mel\fR" 4
19037 .IX Item "-mel"
19038 Compile code for little-endian mode.
19039 .IP "\fB\-mnhwloop\fR" 4
19040 .IX Item "-mnhwloop"
19041 Disable generation of \f(CW\*(C`bcnz\*(C'\fR instructions.
19042 .IP "\fB\-muls\fR" 4
19043 .IX Item "-muls"
19044 Enable generation of unaligned load and store instructions.
19045 .IP "\fB\-mmac\fR" 4
19046 .IX Item "-mmac"
19047 Enable the use of multiply-accumulate instructions. Disabled by default.
19048 .IP "\fB\-mscore5\fR" 4
19049 .IX Item "-mscore5"
19050 Specify the \s-1SCORE5\s0 as the target architecture.
19051 .IP "\fB\-mscore5u\fR" 4
19052 .IX Item "-mscore5u"
19053 Specify the \s-1SCORE5U\s0 of the target architecture.
19054 .IP "\fB\-mscore7\fR" 4
19055 .IX Item "-mscore7"
19056 Specify the \s-1SCORE7\s0 as the target architecture. This is the default.
19057 .IP "\fB\-mscore7d\fR" 4
19058 .IX Item "-mscore7d"
19059 Specify the \s-1SCORE7D\s0 as the target architecture.
19060 .PP
19061 \fI\s-1SH\s0 Options\fR
19062 .IX Subsection "SH Options"
19063 .PP
19064 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
19065 .IP "\fB\-m1\fR" 4
19066 .IX Item "-m1"
19067 Generate code for the \s-1SH1\s0.
19068 .IP "\fB\-m2\fR" 4
19069 .IX Item "-m2"
19070 Generate code for the \s-1SH2\s0.
19071 .IP "\fB\-m2e\fR" 4
19072 .IX Item "-m2e"
19073 Generate code for the SH2e.
19074 .IP "\fB\-m2a\-nofpu\fR" 4
19075 .IX Item "-m2a-nofpu"
19076 Generate code for the SH2a without \s-1FPU\s0, or for a SH2a\-FPU in such a way
19077 that the floating-point unit is not used.
19078 .IP "\fB\-m2a\-single\-only\fR" 4
19079 .IX Item "-m2a-single-only"
19080 Generate code for the SH2a\-FPU, in such a way that no double-precision
19081 floating-point operations are used.
19082 .IP "\fB\-m2a\-single\fR" 4
19083 .IX Item "-m2a-single"
19084 Generate code for the SH2a\-FPU assuming the floating-point unit is in
19085 single-precision mode by default.
19086 .IP "\fB\-m2a\fR" 4
19087 .IX Item "-m2a"
19088 Generate code for the SH2a\-FPU assuming the floating-point unit is in
19089 double-precision mode by default.
19090 .IP "\fB\-m3\fR" 4
19091 .IX Item "-m3"
19092 Generate code for the \s-1SH3\s0.
19093 .IP "\fB\-m3e\fR" 4
19094 .IX Item "-m3e"
19095 Generate code for the SH3e.
19096 .IP "\fB\-m4\-nofpu\fR" 4
19097 .IX Item "-m4-nofpu"
19098 Generate code for the \s-1SH4\s0 without a floating-point unit.
19099 .IP "\fB\-m4\-single\-only\fR" 4
19100 .IX Item "-m4-single-only"
19101 Generate code for the \s-1SH4\s0 with a floating-point unit that only
19102 supports single-precision arithmetic.
19103 .IP "\fB\-m4\-single\fR" 4
19104 .IX Item "-m4-single"
19105 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
19106 single-precision mode by default.
19107 .IP "\fB\-m4\fR" 4
19108 .IX Item "-m4"
19109 Generate code for the \s-1SH4\s0.
19110 .IP "\fB\-m4\-100\fR" 4
19111 .IX Item "-m4-100"
19112 Generate code for \s-1SH4\-100\s0.
19113 .IP "\fB\-m4\-100\-nofpu\fR" 4
19114 .IX Item "-m4-100-nofpu"
19115 Generate code for \s-1SH4\-100\s0 in such a way that the
19116 floating-point unit is not used.
19117 .IP "\fB\-m4\-100\-single\fR" 4
19118 .IX Item "-m4-100-single"
19119 Generate code for \s-1SH4\-100\s0 assuming the floating-point unit is in
19120 single-precision mode by default.
19121 .IP "\fB\-m4\-100\-single\-only\fR" 4
19122 .IX Item "-m4-100-single-only"
19123 Generate code for \s-1SH4\-100\s0 in such a way that no double-precision
19124 floating-point operations are used.
19125 .IP "\fB\-m4\-200\fR" 4
19126 .IX Item "-m4-200"
19127 Generate code for \s-1SH4\-200\s0.
19128 .IP "\fB\-m4\-200\-nofpu\fR" 4
19129 .IX Item "-m4-200-nofpu"
19130 Generate code for \s-1SH4\-200\s0 without in such a way that the
19131 floating-point unit is not used.
19132 .IP "\fB\-m4\-200\-single\fR" 4
19133 .IX Item "-m4-200-single"
19134 Generate code for \s-1SH4\-200\s0 assuming the floating-point unit is in
19135 single-precision mode by default.
19136 .IP "\fB\-m4\-200\-single\-only\fR" 4
19137 .IX Item "-m4-200-single-only"
19138 Generate code for \s-1SH4\-200\s0 in such a way that no double-precision
19139 floating-point operations are used.
19140 .IP "\fB\-m4\-300\fR" 4
19141 .IX Item "-m4-300"
19142 Generate code for \s-1SH4\-300\s0.
19143 .IP "\fB\-m4\-300\-nofpu\fR" 4
19144 .IX Item "-m4-300-nofpu"
19145 Generate code for \s-1SH4\-300\s0 without in such a way that the
19146 floating-point unit is not used.
19147 .IP "\fB\-m4\-300\-single\fR" 4
19148 .IX Item "-m4-300-single"
19149 Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
19150 floating-point operations are used.
19151 .IP "\fB\-m4\-300\-single\-only\fR" 4
19152 .IX Item "-m4-300-single-only"
19153 Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
19154 floating-point operations are used.
19155 .IP "\fB\-m4\-340\fR" 4
19156 .IX Item "-m4-340"
19157 Generate code for \s-1SH4\-340\s0 (no \s-1MMU\s0, no \s-1FPU\s0).
19158 .IP "\fB\-m4\-500\fR" 4
19159 .IX Item "-m4-500"
19160 Generate code for \s-1SH4\-500\s0 (no \s-1FPU\s0).  Passes \fB\-isa=sh4\-nofpu\fR to the
19161 assembler.
19162 .IP "\fB\-m4a\-nofpu\fR" 4
19163 .IX Item "-m4a-nofpu"
19164 Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
19165 floating-point unit is not used.
19166 .IP "\fB\-m4a\-single\-only\fR" 4
19167 .IX Item "-m4a-single-only"
19168 Generate code for the SH4a, in such a way that no double-precision
19169 floating-point operations are used.
19170 .IP "\fB\-m4a\-single\fR" 4
19171 .IX Item "-m4a-single"
19172 Generate code for the SH4a assuming the floating-point unit is in
19173 single-precision mode by default.
19174 .IP "\fB\-m4a\fR" 4
19175 .IX Item "-m4a"
19176 Generate code for the SH4a.
19177 .IP "\fB\-m4al\fR" 4
19178 .IX Item "-m4al"
19179 Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
19180 \&\fB\-dsp\fR to the assembler.  \s-1GCC\s0 doesn't generate any \s-1DSP\s0
19181 instructions at the moment.
19182 .IP "\fB\-m5\-32media\fR" 4
19183 .IX Item "-m5-32media"
19184 Generate 32\-bit code for SHmedia.
19185 .IP "\fB\-m5\-32media\-nofpu\fR" 4
19186 .IX Item "-m5-32media-nofpu"
19187 Generate 32\-bit code for SHmedia in such a way that the
19188 floating-point unit is not used.
19189 .IP "\fB\-m5\-64media\fR" 4
19190 .IX Item "-m5-64media"
19191 Generate 64\-bit code for SHmedia.
19192 .IP "\fB\-m5\-64media\-nofpu\fR" 4
19193 .IX Item "-m5-64media-nofpu"
19194 Generate 64\-bit code for SHmedia in such a way that the
19195 floating-point unit is not used.
19196 .IP "\fB\-m5\-compact\fR" 4
19197 .IX Item "-m5-compact"
19198 Generate code for SHcompact.
19199 .IP "\fB\-m5\-compact\-nofpu\fR" 4
19200 .IX Item "-m5-compact-nofpu"
19201 Generate code for SHcompact in such a way that the
19202 floating-point unit is not used.
19203 .IP "\fB\-mb\fR" 4
19204 .IX Item "-mb"
19205 Compile code for the processor in big-endian mode.
19206 .IP "\fB\-ml\fR" 4
19207 .IX Item "-ml"
19208 Compile code for the processor in little-endian mode.
19209 .IP "\fB\-mdalign\fR" 4
19210 .IX Item "-mdalign"
19211 Align doubles at 64\-bit boundaries.  Note that this changes the calling
19212 conventions, and thus some functions from the standard C library do
19213 not work unless you recompile it first with \fB\-mdalign\fR.
19214 .IP "\fB\-mrelax\fR" 4
19215 .IX Item "-mrelax"
19216 Shorten some address references at link time, when possible; uses the
19217 linker option \fB\-relax\fR.
19218 .IP "\fB\-mbigtable\fR" 4
19219 .IX Item "-mbigtable"
19220 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
19221 16\-bit offsets.
19222 .IP "\fB\-mbitops\fR" 4
19223 .IX Item "-mbitops"
19224 Enable the use of bit manipulation instructions on \s-1SH2A\s0.
19225 .IP "\fB\-mfmovd\fR" 4
19226 .IX Item "-mfmovd"
19227 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.  Check \fB\-mdalign\fR for
19228 alignment constraints.
19229 .IP "\fB\-mrenesas\fR" 4
19230 .IX Item "-mrenesas"
19231 Comply with the calling conventions defined by Renesas.
19232 .IP "\fB\-mno\-renesas\fR" 4
19233 .IX Item "-mno-renesas"
19234 Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
19235 conventions were available.  This option is the default for all
19236 targets of the \s-1SH\s0 toolchain.
19237 .IP "\fB\-mnomacsave\fR" 4
19238 .IX Item "-mnomacsave"
19239 Mark the \f(CW\*(C`MAC\*(C'\fR register as call-clobbered, even if
19240 \&\fB\-mrenesas\fR is given.
19241 .IP "\fB\-mieee\fR" 4
19242 .IX Item "-mieee"
19243 .PD 0
19244 .IP "\fB\-mno\-ieee\fR" 4
19245 .IX Item "-mno-ieee"
19246 .PD
19247 Control the \s-1IEEE\s0 compliance of floating-point comparisons, which affects the
19248 handling of cases where the result of a comparison is unordered.  By default
19249 \&\fB\-mieee\fR is implicitly enabled.  If \fB\-ffinite\-math\-only\fR is
19250 enabled \fB\-mno\-ieee\fR is implicitly set, which results in faster
19251 floating-point greater-equal and less-equal comparisons.  The implcit settings
19252 can be overridden by specifying either \fB\-mieee\fR or \fB\-mno\-ieee\fR.
19253 .IP "\fB\-minline\-ic_invalidate\fR" 4
19254 .IX Item "-minline-ic_invalidate"
19255 Inline code to invalidate instruction cache entries after setting up
19256 nested function trampolines.
19257 This option has no effect if \fB\-musermode\fR is in effect and the selected
19258 code generation option (e.g. \fB\-m4\fR) does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
19259 instruction.
19260 If the selected code generation option does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
19261 instruction, and \fB\-musermode\fR is not in effect, the inlined code
19262 manipulates the instruction cache address array directly with an associative
19263 write.  This not only requires privileged mode at run time, but it also
19264 fails if the cache line had been mapped via the \s-1TLB\s0 and has become unmapped.
19265 .IP "\fB\-misize\fR" 4
19266 .IX Item "-misize"
19267 Dump instruction size and location in the assembly code.
19268 .IP "\fB\-mpadstruct\fR" 4
19269 .IX Item "-mpadstruct"
19270 This option is deprecated.  It pads structures to multiple of 4 bytes,
19271 which is incompatible with the \s-1SH\s0 \s-1ABI\s0.
19272 .IP "\fB\-matomic\-model=\fR\fImodel\fR" 4
19273 .IX Item "-matomic-model=model"
19274 Sets the model of atomic operations and additional parameters as a comma
19275 separated list.  For details on the atomic built-in functions see
19276 \&\fB_\|_atomic Builtins\fR.  The following models and parameters are supported:
19277 .RS 4
19278 .IP "\fBnone\fR" 4
19279 .IX Item "none"
19280 Disable compiler generated atomic sequences and emit library calls for atomic
19281 operations.  This is the default if the target is not \f(CW\*(C`sh*\-*\-linux*\*(C'\fR.
19282 .IP "\fBsoft-gusa\fR" 4
19283 .IX Item "soft-gusa"
19284 Generate GNU/Linux compatible gUSA software atomic sequences for the atomic
19285 built-in functions.  The generated atomic sequences require additional support
19286 from the interrupt/exception handling code of the system and are only suitable
19287 for SH3* and SH4* single-core systems.  This option is enabled by default when
19288 the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH3* or SH4*.  When the target is \s-1SH4A\s0,
19289 this option also partially utilizes the hardware atomic instructions
19290 \&\f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR to create more efficient code, unless
19291 \&\fBstrict\fR is specified.
19292 .IP "\fBsoft-tcb\fR" 4
19293 .IX Item "soft-tcb"
19294 Generate software atomic sequences that use a variable in the thread control
19295 block.  This is a variation of the gUSA sequences which can also be used on
19296 SH1* and SH2* targets.  The generated atomic sequences require additional
19297 support from the interrupt/exception handling code of the system and are only
19298 suitable for single-core systems.  When using this model, the \fBgbr\-offset=\fR
19299 parameter has to be specified as well.
19300 .IP "\fBsoft-imask\fR" 4
19301 .IX Item "soft-imask"
19302 Generate software atomic sequences that temporarily disable interrupts by
19303 setting \f(CW\*(C`SR.IMASK = 1111\*(C'\fR.  This model works only when the program runs
19304 in privileged mode and is only suitable for single-core systems.  Additional
19305 support from the interrupt/exception handling code of the system is not
19306 required.  This model is enabled by default when the target is
19307 \&\f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH1* or SH2*.
19308 .IP "\fBhard-llcs\fR" 4
19309 .IX Item "hard-llcs"
19310 Generate hardware atomic sequences using the \f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR
19311 instructions only.  This is only available on \s-1SH4A\s0 and is suitable for
19312 multi-core systems.  Since the hardware instructions support only 32 bit atomic
19313 variables access to 8 or 16 bit variables is emulated with 32 bit accesses.
19314 Code compiled with this option is also compatible with other software
19315 atomic model interrupt/exception handling systems if executed on an \s-1SH4A\s0
19316 system.  Additional support from the interrupt/exception handling code of the
19317 system is not required for this model.
19318 .IP "\fBgbr\-offset=\fR" 4
19319 .IX Item "gbr-offset="
19320 This parameter specifies the offset in bytes of the variable in the thread
19321 control block structure that should be used by the generated atomic sequences
19322 when the \fBsoft-tcb\fR model has been selected.  For other models this
19323 parameter is ignored.  The specified value must be an integer multiple of four
19324 and in the range 0\-1020.
19325 .IP "\fBstrict\fR" 4
19326 .IX Item "strict"
19327 This parameter prevents mixed usage of multiple atomic models, even if they
19328 are compatible, and makes the compiler generate atomic sequences of the
19329 specified model only.
19330 .RE
19331 .RS 4
19332 .RE
19333 .IP "\fB\-mtas\fR" 4
19334 .IX Item "-mtas"
19335 Generate the \f(CW\*(C`tas.b\*(C'\fR opcode for \f(CW\*(C`_\|_atomic_test_and_set\*(C'\fR.
19336 Notice that depending on the particular hardware and software configuration
19337 this can degrade overall performance due to the operand cache line flushes
19338 that are implied by the \f(CW\*(C`tas.b\*(C'\fR instruction.  On multi-core \s-1SH4A\s0
19339 processors the \f(CW\*(C`tas.b\*(C'\fR instruction must be used with caution since it
19340 can result in data corruption for certain cache configurations.
19341 .IP "\fB\-mprefergot\fR" 4
19342 .IX Item "-mprefergot"
19343 When generating position-independent code, emit function calls using
19344 the Global Offset Table instead of the Procedure Linkage Table.
19345 .IP "\fB\-musermode\fR" 4
19346 .IX Item "-musermode"
19347 .PD 0
19348 .IP "\fB\-mno\-usermode\fR" 4
19349 .IX Item "-mno-usermode"
19350 .PD
19351 Don't allow (allow) the compiler generating privileged mode code.  Specifying
19352 \&\fB\-musermode\fR also implies \fB\-mno\-inline\-ic_invalidate\fR if the
19353 inlined code would not work in user mode.  \fB\-musermode\fR is the default
19354 when the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR.  If the target is SH1* or SH2*
19355 \&\fB\-musermode\fR has no effect, since there is no user mode.
19356 .IP "\fB\-multcost=\fR\fInumber\fR" 4
19357 .IX Item "-multcost=number"
19358 Set the cost to assume for a multiply insn.
19359 .IP "\fB\-mdiv=\fR\fIstrategy\fR" 4
19360 .IX Item "-mdiv=strategy"
19361 Set the division strategy to be used for integer division operations.
19362 For SHmedia \fIstrategy\fR can be one of:
19363 .RS 4
19364 .IP "\fBfp\fR" 4
19365 .IX Item "fp"
19366 Performs the operation in floating point.  This has a very high latency,
19367 but needs only a few instructions, so it might be a good choice if
19368 your code has enough easily-exploitable \s-1ILP\s0 to allow the compiler to
19369 schedule the floating-point instructions together with other instructions.
19370 Division by zero causes a floating-point exception.
19371 .IP "\fBinv\fR" 4
19372 .IX Item "inv"
19373 Uses integer operations to calculate the inverse of the divisor,
19374 and then multiplies the dividend with the inverse.  This strategy allows
19375 \&\s-1CSE\s0 and hoisting of the inverse calculation.  Division by zero calculates
19376 an unspecified result, but does not trap.
19377 .IP "\fBinv:minlat\fR" 4
19378 .IX Item "inv:minlat"
19379 A variant of \fBinv\fR where, if no \s-1CSE\s0 or hoisting opportunities
19380 have been found, or if the entire operation has been hoisted to the same
19381 place, the last stages of the inverse calculation are intertwined with the
19382 final multiply to reduce the overall latency, at the expense of using a few
19383 more instructions, and thus offering fewer scheduling opportunities with
19384 other code.
19385 .IP "\fBcall\fR" 4
19386 .IX Item "call"
19387 Calls a library function that usually implements the \fBinv:minlat\fR
19388 strategy.
19389 This gives high code density for \f(CW\*(C`m5\-*media\-nofpu\*(C'\fR compilations.
19390 .IP "\fBcall2\fR" 4
19391 .IX Item "call2"
19392 Uses a different entry point of the same library function, where it
19393 assumes that a pointer to a lookup table has already been set up, which
19394 exposes the pointer load to \s-1CSE\s0 and code hoisting optimizations.
19395 .IP "\fBinv:call\fR" 4
19396 .IX Item "inv:call"
19397 .PD 0
19398 .IP "\fBinv:call2\fR" 4
19399 .IX Item "inv:call2"
19400 .IP "\fBinv:fp\fR" 4
19401 .IX Item "inv:fp"
19402 .PD
19403 Use the \fBinv\fR algorithm for initial
19404 code generation, but if the code stays unoptimized, revert to the \fBcall\fR,
19405 \&\fBcall2\fR, or \fBfp\fR strategies, respectively.  Note that the
19406 potentially-trapping side effect of division by zero is carried by a
19407 separate instruction, so it is possible that all the integer instructions
19408 are hoisted out, but the marker for the side effect stays where it is.
19409 A recombination to floating-point operations or a call is not possible
19410 in that case.
19411 .IP "\fBinv20u\fR" 4
19412 .IX Item "inv20u"
19413 .PD 0
19414 .IP "\fBinv20l\fR" 4
19415 .IX Item "inv20l"
19416 .PD
19417 Variants of the \fBinv:minlat\fR strategy.  In the case
19418 that the inverse calculation is not separated from the multiply, they speed
19419 up division where the dividend fits into 20 bits (plus sign where applicable)
19420 by inserting a test to skip a number of operations in this case; this test
19421 slows down the case of larger dividends.  \fBinv20u\fR assumes the case of a such
19422 a small dividend to be unlikely, and \fBinv20l\fR assumes it to be likely.
19423 .RE
19424 .RS 4
19425 .Sp
19426 For targets other than SHmedia \fIstrategy\fR can be one of:
19427 .IP "\fBcall\-div1\fR" 4
19428 .IX Item "call-div1"
19429 Calls a library function that uses the single-step division instruction
19430 \&\f(CW\*(C`div1\*(C'\fR to perform the operation.  Division by zero calculates an
19431 unspecified result and does not trap.  This is the default except for \s-1SH4\s0,
19432 \&\s-1SH2A\s0 and SHcompact.
19433 .IP "\fBcall-fp\fR" 4
19434 .IX Item "call-fp"
19435 Calls a library function that performs the operation in double precision
19436 floating point.  Division by zero causes a floating-point exception.  This is
19437 the default for SHcompact with \s-1FPU\s0.  Specifying this for targets that do not
19438 have a double precision \s-1FPU\s0 defaults to \f(CW\*(C`call\-div1\*(C'\fR.
19439 .IP "\fBcall-table\fR" 4
19440 .IX Item "call-table"
19441 Calls a library function that uses a lookup table for small divisors and
19442 the \f(CW\*(C`div1\*(C'\fR instruction with case distinction for larger divisors.  Division
19443 by zero calculates an unspecified result and does not trap.  This is the default
19444 for \s-1SH4\s0.  Specifying this for targets that do not have dynamic shift
19445 instructions defaults to \f(CW\*(C`call\-div1\*(C'\fR.
19446 .RE
19447 .RS 4
19448 .Sp
19449 When a division strategy has not been specified the default strategy is
19450 selected based on the current target.  For \s-1SH2A\s0 the default strategy is to
19451 use the \f(CW\*(C`divs\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions instead of library function
19452 calls.
19453 .RE
19454 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
19455 .IX Item "-maccumulate-outgoing-args"
19456 Reserve space once for outgoing arguments in the function prologue rather
19457 than around each call.  Generally beneficial for performance and size.  Also
19458 needed for unwinding to avoid changing the stack frame around conditional code.
19459 .IP "\fB\-mdivsi3_libfunc=\fR\fIname\fR" 4
19460 .IX Item "-mdivsi3_libfunc=name"
19461 Set the name of the library function used for 32\-bit signed division to
19462 \&\fIname\fR.
19463 This only affects the name used in the \fBcall\fR and \fBinv:call\fR
19464 division strategies, and the compiler still expects the same
19465 sets of input/output/clobbered registers as if this option were not present.
19466 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
19467 .IX Item "-mfixed-range=register-range"
19468 Generate code treating the given register range as fixed registers.
19469 A fixed register is one that the register allocator can not use.  This is
19470 useful when compiling kernel code.  A register range is specified as
19471 two registers separated by a dash.  Multiple register ranges can be
19472 specified separated by a comma.
19473 .IP "\fB\-mindexed\-addressing\fR" 4
19474 .IX Item "-mindexed-addressing"
19475 Enable the use of the indexed addressing mode for SHmedia32/SHcompact.
19476 This is only safe if the hardware and/or \s-1OS\s0 implement 32\-bit wrap-around
19477 semantics for the indexed addressing mode.  The architecture allows the
19478 implementation of processors with 64\-bit \s-1MMU\s0, which the \s-1OS\s0 could use to
19479 get 32\-bit addressing, but since no current hardware implementation supports
19480 this or any other way to make the indexed addressing mode safe to use in
19481 the 32\-bit \s-1ABI\s0, the default is \fB\-mno\-indexed\-addressing\fR.
19482 .IP "\fB\-mgettrcost=\fR\fInumber\fR" 4
19483 .IX Item "-mgettrcost=number"
19484 Set the cost assumed for the \f(CW\*(C`gettr\*(C'\fR instruction to \fInumber\fR.
19485 The default is 2 if \fB\-mpt\-fixed\fR is in effect, 100 otherwise.
19486 .IP "\fB\-mpt\-fixed\fR" 4
19487 .IX Item "-mpt-fixed"
19488 Assume \f(CW\*(C`pt*\*(C'\fR instructions won't trap.  This generally generates
19489 better-scheduled code, but is unsafe on current hardware.
19490 The current architecture
19491 definition says that \f(CW\*(C`ptabs\*(C'\fR and \f(CW\*(C`ptrel\*(C'\fR trap when the target 
19492 anded with 3 is 3.
19493 This has the unintentional effect of making it unsafe to schedule these
19494 instructions before a branch, or hoist them out of a loop.  For example,
19495 \&\f(CW\*(C`_\|_do_global_ctors\*(C'\fR, a part of \fIlibgcc\fR
19496 that runs constructors at program
19497 startup, calls functions in a list which is delimited by \-1.  With the
19498 \&\fB\-mpt\-fixed\fR option, the \f(CW\*(C`ptabs\*(C'\fR is done before testing against \-1.
19499 That means that all the constructors run a bit more quickly, but when
19500 the loop comes to the end of the list, the program crashes because \f(CW\*(C`ptabs\*(C'\fR
19501 loads \-1 into a target register.
19502 .Sp
19503 Since this option is unsafe for any
19504 hardware implementing the current architecture specification, the default
19505 is \fB\-mno\-pt\-fixed\fR.  Unless specified explicitly with 
19506 \&\fB\-mgettrcost\fR, \fB\-mno\-pt\-fixed\fR also implies \fB\-mgettrcost=100\fR;
19507 this deters register allocation from using target registers for storing
19508 ordinary integers.
19509 .IP "\fB\-minvalid\-symbols\fR" 4
19510 .IX Item "-minvalid-symbols"
19511 Assume symbols might be invalid.  Ordinary function symbols generated by
19512 the compiler are always valid to load with
19513 \&\f(CW\*(C`movi\*(C'\fR/\f(CW\*(C`shori\*(C'\fR/\f(CW\*(C`ptabs\*(C'\fR or
19514 \&\f(CW\*(C`movi\*(C'\fR/\f(CW\*(C`shori\*(C'\fR/\f(CW\*(C`ptrel\*(C'\fR,
19515 but with assembler and/or linker tricks it is possible
19516 to generate symbols that cause \f(CW\*(C`ptabs\*(C'\fR or \f(CW\*(C`ptrel\*(C'\fR to trap.
19517 This option is only meaningful when \fB\-mno\-pt\-fixed\fR is in effect.
19518 It prevents cross-basic-block \s-1CSE\s0, hoisting and most scheduling
19519 of symbol loads.  The default is \fB\-mno\-invalid\-symbols\fR.
19520 .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
19521 .IX Item "-mbranch-cost=num"
19522 Assume \fInum\fR to be the cost for a branch instruction.  Higher numbers
19523 make the compiler try to generate more branch-free code if possible.  
19524 If not specified the value is selected depending on the processor type that
19525 is being compiled for.
19526 .IP "\fB\-mzdcbranch\fR" 4
19527 .IX Item "-mzdcbranch"
19528 .PD 0
19529 .IP "\fB\-mno\-zdcbranch\fR" 4
19530 .IX Item "-mno-zdcbranch"
19531 .PD
19532 Assume (do not assume) that zero displacement conditional branch instructions
19533 \&\f(CW\*(C`bt\*(C'\fR and \f(CW\*(C`bf\*(C'\fR are fast.  If \fB\-mzdcbranch\fR is specified, the
19534 compiler prefers zero displacement branch code sequences.  This is
19535 enabled by default when generating code for \s-1SH4\s0 and \s-1SH4A\s0.  It can be explicitly
19536 disabled by specifying \fB\-mno\-zdcbranch\fR.
19537 .IP "\fB\-mcbranch\-force\-delay\-slot\fR" 4
19538 .IX Item "-mcbranch-force-delay-slot"
19539 Force the usage of delay slots for conditional branches, which stuffs the delay
19540 slot with a \f(CW\*(C`nop\*(C'\fR if a suitable instruction can't be found.  By default
19541 this option is disabled.  It can be enabled to work around hardware bugs as
19542 found in the original \s-1SH7055\s0.
19543 .IP "\fB\-mfused\-madd\fR" 4
19544 .IX Item "-mfused-madd"
19545 .PD 0
19546 .IP "\fB\-mno\-fused\-madd\fR" 4
19547 .IX Item "-mno-fused-madd"
19548 .PD
19549 Generate code that uses (does not use) the floating-point multiply and
19550 accumulate instructions.  These instructions are generated by default
19551 if hardware floating point is used.  The machine-dependent
19552 \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
19553 \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
19554 mapped to \fB\-ffp\-contract=off\fR.
19555 .IP "\fB\-mfsca\fR" 4
19556 .IX Item "-mfsca"
19557 .PD 0
19558 .IP "\fB\-mno\-fsca\fR" 4
19559 .IX Item "-mno-fsca"
19560 .PD
19561 Allow or disallow the compiler to emit the \f(CW\*(C`fsca\*(C'\fR instruction for sine
19562 and cosine approximations.  The option \fB\-mfsca\fR must be used in
19563 combination with \fB\-funsafe\-math\-optimizations\fR.  It is enabled by default
19564 when generating code for \s-1SH4A\s0.  Using \fB\-mno\-fsca\fR disables sine and cosine
19565 approximations even if \fB\-funsafe\-math\-optimizations\fR is in effect.
19566 .IP "\fB\-mfsrra\fR" 4
19567 .IX Item "-mfsrra"
19568 .PD 0
19569 .IP "\fB\-mno\-fsrra\fR" 4
19570 .IX Item "-mno-fsrra"
19571 .PD
19572 Allow or disallow the compiler to emit the \f(CW\*(C`fsrra\*(C'\fR instruction for
19573 reciprocal square root approximations.  The option \fB\-mfsrra\fR must be used
19574 in combination with \fB\-funsafe\-math\-optimizations\fR and
19575 \&\fB\-ffinite\-math\-only\fR.  It is enabled by default when generating code for
19576 \&\s-1SH4A\s0.  Using \fB\-mno\-fsrra\fR disables reciprocal square root approximations
19577 even if \fB\-funsafe\-math\-optimizations\fR and \fB\-ffinite\-math\-only\fR are
19578 in effect.
19579 .IP "\fB\-mpretend\-cmove\fR" 4
19580 .IX Item "-mpretend-cmove"
19581 Prefer zero-displacement conditional branches for conditional move instruction
19582 patterns.  This can result in faster code on the \s-1SH4\s0 processor.
19583 .PP
19584 \fISolaris 2 Options\fR
19585 .IX Subsection "Solaris 2 Options"
19586 .PP
19587 These \fB\-m\fR options are supported on Solaris 2:
19588 .IP "\fB\-mclear\-hwcap\fR" 4
19589 .IX Item "-mclear-hwcap"
19590 \&\fB\-mclear\-hwcap\fR tells the compiler to remove the hardware
19591 capabilities generated by the Solaris assembler.  This is only necessary
19592 when object files use \s-1ISA\s0 extensions not supported by the current
19593 machine, but check at runtime whether or not to use them.
19594 .IP "\fB\-mimpure\-text\fR" 4
19595 .IX Item "-mimpure-text"
19596 \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
19597 the compiler to not pass \fB\-z text\fR to the linker when linking a
19598 shared object.  Using this option, you can link position-dependent
19599 code into a shared object.
19600 .Sp
19601 \&\fB\-mimpure\-text\fR suppresses the \*(L"relocations remain against
19602 allocatable but non-writable sections\*(R" linker error message.
19603 However, the necessary relocations trigger copy-on-write, and the
19604 shared object is not actually shared across processes.  Instead of
19605 using \fB\-mimpure\-text\fR, you should compile all source code with
19606 \&\fB\-fpic\fR or \fB\-fPIC\fR.
19607 .PP
19608 These switches are supported in addition to the above on Solaris 2:
19609 .IP "\fB\-pthreads\fR" 4
19610 .IX Item "-pthreads"
19611 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
19612 option sets flags for both the preprocessor and linker.  This option does
19613 not affect the thread safety of object code produced  by the compiler or
19614 that of libraries supplied with it.
19615 .IP "\fB\-pthread\fR" 4
19616 .IX Item "-pthread"
19617 This is a synonym for \fB\-pthreads\fR.
19618 .PP
19619 \fI\s-1SPARC\s0 Options\fR
19620 .IX Subsection "SPARC Options"
19621 .PP
19622 These \fB\-m\fR options are supported on the \s-1SPARC:\s0
19623 .IP "\fB\-mno\-app\-regs\fR" 4
19624 .IX Item "-mno-app-regs"
19625 .PD 0
19626 .IP "\fB\-mapp\-regs\fR" 4
19627 .IX Item "-mapp-regs"
19628 .PD
19629 Specify \fB\-mapp\-regs\fR to generate output using the global registers
19630 2 through 4, which the \s-1SPARC\s0 \s-1SVR4\s0 \s-1ABI\s0 reserves for applications.  Like the
19631 global register 1, each global register 2 through 4 is then treated as an
19632 allocable register that is clobbered by function calls.  This is the default.
19633 .Sp
19634 To be fully \s-1SVR4\s0 ABI-compliant at the cost of some performance loss,
19635 specify \fB\-mno\-app\-regs\fR.  You should compile libraries and system
19636 software with this option.
19637 .IP "\fB\-mflat\fR" 4
19638 .IX Item "-mflat"
19639 .PD 0
19640 .IP "\fB\-mno\-flat\fR" 4
19641 .IX Item "-mno-flat"
19642 .PD
19643 With \fB\-mflat\fR, the compiler does not generate save/restore instructions
19644 and uses a \*(L"flat\*(R" or single register window model.  This model is compatible
19645 with the regular register window model.  The local registers and the input
19646 registers (0\-\-5) are still treated as \*(L"call-saved\*(R" registers and are
19647 saved on the stack as needed.
19648 .Sp
19649 With \fB\-mno\-flat\fR (the default), the compiler generates save/restore
19650 instructions (except for leaf functions).  This is the normal operating mode.
19651 .IP "\fB\-mfpu\fR" 4
19652 .IX Item "-mfpu"
19653 .PD 0
19654 .IP "\fB\-mhard\-float\fR" 4
19655 .IX Item "-mhard-float"
19656 .PD
19657 Generate output containing floating-point instructions.  This is the
19658 default.
19659 .IP "\fB\-mno\-fpu\fR" 4
19660 .IX Item "-mno-fpu"
19661 .PD 0
19662 .IP "\fB\-msoft\-float\fR" 4
19663 .IX Item "-msoft-float"
19664 .PD
19665 Generate output containing library calls for floating point.
19666 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
19667 targets.  Normally the facilities of the machine's usual C compiler are
19668 used, but this cannot be done directly in cross-compilation.  You must make
19669 your own arrangements to provide suitable library functions for
19670 cross-compilation.  The embedded targets \fBsparc\-*\-aout\fR and
19671 \&\fBsparclite\-*\-*\fR do provide software floating-point support.
19672 .Sp
19673 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
19674 therefore, it is only useful if you compile \fIall\fR of a program with
19675 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
19676 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
19677 this to work.
19678 .IP "\fB\-mhard\-quad\-float\fR" 4
19679 .IX Item "-mhard-quad-float"
19680 Generate output containing quad-word (long double) floating-point
19681 instructions.
19682 .IP "\fB\-msoft\-quad\-float\fR" 4
19683 .IX Item "-msoft-quad-float"
19684 Generate output containing library calls for quad-word (long double)
19685 floating-point instructions.  The functions called are those specified
19686 in the \s-1SPARC\s0 \s-1ABI\s0.  This is the default.
19687 .Sp
19688 As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
19689 support for the quad-word floating-point instructions.  They all invoke
19690 a trap handler for one of these instructions, and then the trap handler
19691 emulates the effect of the instruction.  Because of the trap handler overhead,
19692 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
19693 \&\fB\-msoft\-quad\-float\fR option is the default.
19694 .IP "\fB\-mno\-unaligned\-doubles\fR" 4
19695 .IX Item "-mno-unaligned-doubles"
19696 .PD 0
19697 .IP "\fB\-munaligned\-doubles\fR" 4
19698 .IX Item "-munaligned-doubles"
19699 .PD
19700 Assume that doubles have 8\-byte alignment.  This is the default.
19701 .Sp
19702 With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8\-byte
19703 alignment only if they are contained in another type, or if they have an
19704 absolute address.  Otherwise, it assumes they have 4\-byte alignment.
19705 Specifying this option avoids some rare compatibility problems with code
19706 generated by other compilers.  It is not the default because it results
19707 in a performance loss, especially for floating-point code.
19708 .IP "\fB\-muser\-mode\fR" 4
19709 .IX Item "-muser-mode"
19710 .PD 0
19711 .IP "\fB\-mno\-user\-mode\fR" 4
19712 .IX Item "-mno-user-mode"
19713 .PD
19714 Do not generate code that can only run in supervisor mode.  This is relevant
19715 only for the \f(CW\*(C`casa\*(C'\fR instruction emitted for the \s-1LEON3\s0 processor.  This
19716 is the default.
19717 .IP "\fB\-mno\-faster\-structs\fR" 4
19718 .IX Item "-mno-faster-structs"
19719 .PD 0
19720 .IP "\fB\-mfaster\-structs\fR" 4
19721 .IX Item "-mfaster-structs"
19722 .PD
19723 With \fB\-mfaster\-structs\fR, the compiler assumes that structures
19724 should have 8\-byte alignment.  This enables the use of pairs of
19725 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
19726 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
19727 However, the use of this changed alignment directly violates the \s-1SPARC\s0
19728 \&\s-1ABI\s0.  Thus, it's intended only for use on targets where the developer
19729 acknowledges that their resulting code is not directly in line with
19730 the rules of the \s-1ABI\s0.
19731 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
19732 .IX Item "-mcpu=cpu_type"
19733 Set the instruction set, register set, and instruction scheduling parameters
19734 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
19735 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBhypersparc\fR,
19736 \&\fBleon\fR, \fBleon3\fR, \fBleon3v7\fR, \fBsparclite\fR, \fBf930\fR,
19737 \&\fBf934\fR, \fBsparclite86x\fR, \fBsparclet\fR, \fBtsc701\fR, \fBv9\fR,
19738 \&\fBultrasparc\fR, \fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR,
19739 \&\fBniagara3\fR and \fBniagara4\fR.
19740 .Sp
19741 Native Solaris and GNU/Linux toolchains also support the value \fBnative\fR,
19742 which selects the best architecture option for the host processor.
19743 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
19744 the processor.
19745 .Sp
19746 Default instruction scheduling parameters are used for values that select
19747 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
19748 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
19749 .Sp
19750 Here is a list of each supported architecture and their supported
19751 implementations.
19752 .RS 4
19753 .IP "v7" 4
19754 .IX Item "v7"
19755 cypress, leon3v7
19756 .IP "v8" 4
19757 .IX Item "v8"
19758 supersparc, hypersparc, leon, leon3
19759 .IP "sparclite" 4
19760 .IX Item "sparclite"
19761 f930, f934, sparclite86x
19762 .IP "sparclet" 4
19763 .IX Item "sparclet"
19764 tsc701
19765 .IP "v9" 4
19766 .IX Item "v9"
19767 ultrasparc, ultrasparc3, niagara, niagara2, niagara3, niagara4
19768 .RE
19769 .RS 4
19770 .Sp
19771 By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
19772 variant of the \s-1SPARC\s0 architecture.  With \fB\-mcpu=cypress\fR, the compiler
19773 additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
19774 SPARCStation/SPARCServer 3xx series.  This is also appropriate for the older
19775 SPARCStation 1, 2, \s-1IPX\s0 etc.
19776 .Sp
19777 With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
19778 architecture.  The only difference from V7 code is that the compiler emits
19779 the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
19780 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=supersparc\fR, the compiler additionally
19781 optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
19782 2000 series.
19783 .Sp
19784 With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
19785 the \s-1SPARC\s0 architecture.  This adds the integer multiply, integer divide step
19786 and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7\s0.
19787 With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
19788 Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU\s0.  With
19789 \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
19790 \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU\s0.
19791 .Sp
19792 With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
19793 the \s-1SPARC\s0 architecture.  This adds the integer multiply, multiply/accumulate,
19794 integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
19795 but not in \s-1SPARC\-V7\s0.  With \fB\-mcpu=tsc701\fR, the compiler additionally
19796 optimizes it for the \s-1TEMIC\s0 SPARClet chip.
19797 .Sp
19798 With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
19799 architecture.  This adds 64\-bit integer and floating-point move instructions,
19800 3 additional floating-point condition code registers and conditional move
19801 instructions.  With \fB\-mcpu=ultrasparc\fR, the compiler additionally
19802 optimizes it for the Sun UltraSPARC I/II/IIi chips.  With
19803 \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
19804 Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+ chips.  With
19805 \&\fB\-mcpu=niagara\fR, the compiler additionally optimizes it for
19806 Sun UltraSPARC T1 chips.  With \fB\-mcpu=niagara2\fR, the compiler
19807 additionally optimizes it for Sun UltraSPARC T2 chips. With
19808 \&\fB\-mcpu=niagara3\fR, the compiler additionally optimizes it for Sun
19809 UltraSPARC T3 chips.  With \fB\-mcpu=niagara4\fR, the compiler
19810 additionally optimizes it for Sun UltraSPARC T4 chips.
19811 .RE
19812 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
19813 .IX Item "-mtune=cpu_type"
19814 Set the instruction scheduling parameters for machine type
19815 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
19816 option \fB\-mcpu=\fR\fIcpu_type\fR does.
19817 .Sp
19818 The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
19819 \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
19820 that select a particular \s-1CPU\s0 implementation.  Those are \fBcypress\fR,
19821 \&\fBsupersparc\fR, \fBhypersparc\fR, \fBleon\fR, \fBleon3\fR,
19822 \&\fBleon3v7\fR, \fBf930\fR, \fBf934\fR, \fBsparclite86x\fR, \fBtsc701\fR,
19823 \&\fBultrasparc\fR, \fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR,
19824 \&\fBniagara3\fR and \fBniagara4\fR.  With native Solaris and GNU/Linux
19825 toolchains, \fBnative\fR can also be used.
19826 .IP "\fB\-mv8plus\fR" 4
19827 .IX Item "-mv8plus"
19828 .PD 0
19829 .IP "\fB\-mno\-v8plus\fR" 4
19830 .IX Item "-mno-v8plus"
19831 .PD
19832 With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+\s0 \s-1ABI\s0.  The
19833 difference from the V8 \s-1ABI\s0 is that the global and out registers are
19834 considered 64 bits wide.  This is enabled by default on Solaris in 32\-bit
19835 mode for all \s-1SPARC\-V9\s0 processors.
19836 .IP "\fB\-mvis\fR" 4
19837 .IX Item "-mvis"
19838 .PD 0
19839 .IP "\fB\-mno\-vis\fR" 4
19840 .IX Item "-mno-vis"
19841 .PD
19842 With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
19843 Visual Instruction Set extensions.  The default is \fB\-mno\-vis\fR.
19844 .IP "\fB\-mvis2\fR" 4
19845 .IX Item "-mvis2"
19846 .PD 0
19847 .IP "\fB\-mno\-vis2\fR" 4
19848 .IX Item "-mno-vis2"
19849 .PD
19850 With \fB\-mvis2\fR, \s-1GCC\s0 generates code that takes advantage of
19851 version 2.0 of the UltraSPARC Visual Instruction Set extensions.  The
19852 default is \fB\-mvis2\fR when targeting a cpu that supports such
19853 instructions, such as UltraSPARC-III and later.  Setting \fB\-mvis2\fR
19854 also sets \fB\-mvis\fR.
19855 .IP "\fB\-mvis3\fR" 4
19856 .IX Item "-mvis3"
19857 .PD 0
19858 .IP "\fB\-mno\-vis3\fR" 4
19859 .IX Item "-mno-vis3"
19860 .PD
19861 With \fB\-mvis3\fR, \s-1GCC\s0 generates code that takes advantage of
19862 version 3.0 of the UltraSPARC Visual Instruction Set extensions.  The
19863 default is \fB\-mvis3\fR when targeting a cpu that supports such
19864 instructions, such as niagara\-3 and later.  Setting \fB\-mvis3\fR
19865 also sets \fB\-mvis2\fR and \fB\-mvis\fR.
19866 .IP "\fB\-mcbcond\fR" 4
19867 .IX Item "-mcbcond"
19868 .PD 0
19869 .IP "\fB\-mno\-cbcond\fR" 4
19870 .IX Item "-mno-cbcond"
19871 .PD
19872 With \fB\-mcbcond\fR, \s-1GCC\s0 generates code that takes advantage of
19873 compare-and-branch instructions, as defined in the Sparc Architecture 2011.
19874 The default is \fB\-mcbcond\fR when targeting a cpu that supports such
19875 instructions, such as niagara\-4 and later.
19876 .IP "\fB\-mpopc\fR" 4
19877 .IX Item "-mpopc"
19878 .PD 0
19879 .IP "\fB\-mno\-popc\fR" 4
19880 .IX Item "-mno-popc"
19881 .PD
19882 With \fB\-mpopc\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
19883 population count instruction.  The default is \fB\-mpopc\fR
19884 when targeting a cpu that supports such instructions, such as Niagara\-2 and
19885 later.
19886 .IP "\fB\-mfmaf\fR" 4
19887 .IX Item "-mfmaf"
19888 .PD 0
19889 .IP "\fB\-mno\-fmaf\fR" 4
19890 .IX Item "-mno-fmaf"
19891 .PD
19892 With \fB\-mfmaf\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
19893 Fused Multiply-Add Floating-point extensions.  The default is \fB\-mfmaf\fR
19894 when targeting a cpu that supports such instructions, such as Niagara\-3 and
19895 later.
19896 .IP "\fB\-mfix\-at697f\fR" 4
19897 .IX Item "-mfix-at697f"
19898 Enable the documented workaround for the single erratum of the Atmel \s-1AT697F\s0
19899 processor (which corresponds to erratum #13 of the \s-1AT697E\s0 processor).
19900 .IP "\fB\-mfix\-ut699\fR" 4
19901 .IX Item "-mfix-ut699"
19902 Enable the documented workarounds for the floating-point errata and the data
19903 cache nullify errata of the \s-1UT699\s0 processor.
19904 .PP
19905 These \fB\-m\fR options are supported in addition to the above
19906 on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
19907 .IP "\fB\-m32\fR" 4
19908 .IX Item "-m32"
19909 .PD 0
19910 .IP "\fB\-m64\fR" 4
19911 .IX Item "-m64"
19912 .PD
19913 Generate code for a 32\-bit or 64\-bit environment.
19914 The 32\-bit environment sets int, long and pointer to 32 bits.
19915 The 64\-bit environment sets int to 32 bits and long and pointer
19916 to 64 bits.
19917 .IP "\fB\-mcmodel=\fR\fIwhich\fR" 4
19918 .IX Item "-mcmodel=which"
19919 Set the code model to one of
19920 .RS 4
19921 .IP "\fBmedlow\fR" 4
19922 .IX Item "medlow"
19923 The Medium/Low code model: 64\-bit addresses, programs
19924 must be linked in the low 32 bits of memory.  Programs can be statically
19925 or dynamically linked.
19926 .IP "\fBmedmid\fR" 4
19927 .IX Item "medmid"
19928 The Medium/Middle code model: 64\-bit addresses, programs
19929 must be linked in the low 44 bits of memory, the text and data segments must
19930 be less than 2GB in size and the data segment must be located within 2GB of
19931 the text segment.
19932 .IP "\fBmedany\fR" 4
19933 .IX Item "medany"
19934 The Medium/Anywhere code model: 64\-bit addresses, programs
19935 may be linked anywhere in memory, the text and data segments must be less
19936 than 2GB in size and the data segment must be located within 2GB of the
19937 text segment.
19938 .IP "\fBembmedany\fR" 4
19939 .IX Item "embmedany"
19940 The Medium/Anywhere code model for embedded systems:
19941 64\-bit addresses, the text and data segments must be less than 2GB in
19942 size, both starting anywhere in memory (determined at link time).  The
19943 global register \f(CW%g4\fR points to the base of the data segment.  Programs
19944 are statically linked and \s-1PIC\s0 is not supported.
19945 .RE
19946 .RS 4
19947 .RE
19948 .IP "\fB\-mmemory\-model=\fR\fImem-model\fR" 4
19949 .IX Item "-mmemory-model=mem-model"
19950 Set the memory model in force on the processor to one of
19951 .RS 4
19952 .IP "\fBdefault\fR" 4
19953 .IX Item "default"
19954 The default memory model for the processor and operating system.
19955 .IP "\fBrmo\fR" 4
19956 .IX Item "rmo"
19957 Relaxed Memory Order
19958 .IP "\fBpso\fR" 4
19959 .IX Item "pso"
19960 Partial Store Order
19961 .IP "\fBtso\fR" 4
19962 .IX Item "tso"
19963 Total Store Order
19964 .IP "\fBsc\fR" 4
19965 .IX Item "sc"
19966 Sequential Consistency
19967 .RE
19968 .RS 4
19969 .Sp
19970 These memory models are formally defined in Appendix D of the Sparc V9
19971 architecture manual, as set in the processor's \f(CW\*(C`PSTATE.MM\*(C'\fR field.
19972 .RE
19973 .IP "\fB\-mstack\-bias\fR" 4
19974 .IX Item "-mstack-bias"
19975 .PD 0
19976 .IP "\fB\-mno\-stack\-bias\fR" 4
19977 .IX Item "-mno-stack-bias"
19978 .PD
19979 With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
19980 frame pointer if present, are offset by \-2047 which must be added back
19981 when making stack frame references.  This is the default in 64\-bit mode.
19982 Otherwise, assume no such offset is present.
19983 .PP
19984 \fI\s-1SPU\s0 Options\fR
19985 .IX Subsection "SPU Options"
19986 .PP
19987 These \fB\-m\fR options are supported on the \s-1SPU:\s0
19988 .IP "\fB\-mwarn\-reloc\fR" 4
19989 .IX Item "-mwarn-reloc"
19990 .PD 0
19991 .IP "\fB\-merror\-reloc\fR" 4
19992 .IX Item "-merror-reloc"
19993 .PD
19994 The loader for \s-1SPU\s0 does not handle dynamic relocations.  By default, \s-1GCC\s0
19995 gives an error when it generates code that requires a dynamic
19996 relocation.  \fB\-mno\-error\-reloc\fR disables the error,
19997 \&\fB\-mwarn\-reloc\fR generates a warning instead.
19998 .IP "\fB\-msafe\-dma\fR" 4
19999 .IX Item "-msafe-dma"
20000 .PD 0
20001 .IP "\fB\-munsafe\-dma\fR" 4
20002 .IX Item "-munsafe-dma"
20003 .PD
20004 Instructions that initiate or test completion of \s-1DMA\s0 must not be
20005 reordered with respect to loads and stores of the memory that is being
20006 accessed.
20007 With \fB\-munsafe\-dma\fR you must use the \f(CW\*(C`volatile\*(C'\fR keyword to protect
20008 memory accesses, but that can lead to inefficient code in places where the
20009 memory is known to not change.  Rather than mark the memory as volatile,
20010 you can use \fB\-msafe\-dma\fR to tell the compiler to treat
20011 the \s-1DMA\s0 instructions as potentially affecting all memory.
20012 .IP "\fB\-mbranch\-hints\fR" 4
20013 .IX Item "-mbranch-hints"
20014 By default, \s-1GCC\s0 generates a branch hint instruction to avoid
20015 pipeline stalls for always-taken or probably-taken branches.  A hint
20016 is not generated closer than 8 instructions away from its branch.
20017 There is little reason to disable them, except for debugging purposes,
20018 or to make an object a little bit smaller.
20019 .IP "\fB\-msmall\-mem\fR" 4
20020 .IX Item "-msmall-mem"
20021 .PD 0
20022 .IP "\fB\-mlarge\-mem\fR" 4
20023 .IX Item "-mlarge-mem"
20024 .PD
20025 By default, \s-1GCC\s0 generates code assuming that addresses are never larger
20026 than 18 bits.  With \fB\-mlarge\-mem\fR code is generated that assumes
20027 a full 32\-bit address.
20028 .IP "\fB\-mstdmain\fR" 4
20029 .IX Item "-mstdmain"
20030 By default, \s-1GCC\s0 links against startup code that assumes the SPU-style
20031 main function interface (which has an unconventional parameter list).
20032 With \fB\-mstdmain\fR, \s-1GCC\s0 links your program against startup
20033 code that assumes a C99\-style interface to \f(CW\*(C`main\*(C'\fR, including a
20034 local copy of \f(CW\*(C`argv\*(C'\fR strings.
20035 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
20036 .IX Item "-mfixed-range=register-range"
20037 Generate code treating the given register range as fixed registers.
20038 A fixed register is one that the register allocator cannot use.  This is
20039 useful when compiling kernel code.  A register range is specified as
20040 two registers separated by a dash.  Multiple register ranges can be
20041 specified separated by a comma.
20042 .IP "\fB\-mea32\fR" 4
20043 .IX Item "-mea32"
20044 .PD 0
20045 .IP "\fB\-mea64\fR" 4
20046 .IX Item "-mea64"
20047 .PD
20048 Compile code assuming that pointers to the \s-1PPU\s0 address space accessed
20049 via the \f(CW\*(C`_\|_ea\*(C'\fR named address space qualifier are either 32 or 64
20050 bits wide.  The default is 32 bits.  As this is an ABI-changing option,
20051 all object code in an executable must be compiled with the same setting.
20052 .IP "\fB\-maddress\-space\-conversion\fR" 4
20053 .IX Item "-maddress-space-conversion"
20054 .PD 0
20055 .IP "\fB\-mno\-address\-space\-conversion\fR" 4
20056 .IX Item "-mno-address-space-conversion"
20057 .PD
20058 Allow/disallow treating the \f(CW\*(C`_\|_ea\*(C'\fR address space as superset
20059 of the generic address space.  This enables explicit type casts
20060 between \f(CW\*(C`_\|_ea\*(C'\fR and generic pointer as well as implicit
20061 conversions of generic pointers to \f(CW\*(C`_\|_ea\*(C'\fR pointers.  The
20062 default is to allow address space pointer conversions.
20063 .IP "\fB\-mcache\-size=\fR\fIcache-size\fR" 4
20064 .IX Item "-mcache-size=cache-size"
20065 This option controls the version of libgcc that the compiler links to an
20066 executable and selects a software-managed cache for accessing variables
20067 in the \f(CW\*(C`_\|_ea\*(C'\fR address space with a particular cache size.  Possible
20068 options for \fIcache-size\fR are \fB8\fR, \fB16\fR, \fB32\fR, \fB64\fR
20069 and \fB128\fR.  The default cache size is 64KB.
20070 .IP "\fB\-matomic\-updates\fR" 4
20071 .IX Item "-matomic-updates"
20072 .PD 0
20073 .IP "\fB\-mno\-atomic\-updates\fR" 4
20074 .IX Item "-mno-atomic-updates"
20075 .PD
20076 This option controls the version of libgcc that the compiler links to an
20077 executable and selects whether atomic updates to the software-managed
20078 cache of PPU-side variables are used.  If you use atomic updates, changes
20079 to a \s-1PPU\s0 variable from \s-1SPU\s0 code using the \f(CW\*(C`_\|_ea\*(C'\fR named address space
20080 qualifier do not interfere with changes to other \s-1PPU\s0 variables residing
20081 in the same cache line from \s-1PPU\s0 code.  If you do not use atomic updates,
20082 such interference may occur; however, writing back cache lines is
20083 more efficient.  The default behavior is to use atomic updates.
20084 .IP "\fB\-mdual\-nops\fR" 4
20085 .IX Item "-mdual-nops"
20086 .PD 0
20087 .IP "\fB\-mdual\-nops=\fR\fIn\fR" 4
20088 .IX Item "-mdual-nops=n"
20089 .PD
20090 By default, \s-1GCC\s0 inserts nops to increase dual issue when it expects
20091 it to increase performance.  \fIn\fR can be a value from 0 to 10.  A
20092 smaller \fIn\fR inserts fewer nops.  10 is the default, 0 is the
20093 same as \fB\-mno\-dual\-nops\fR.  Disabled with \fB\-Os\fR.
20094 .IP "\fB\-mhint\-max\-nops=\fR\fIn\fR" 4
20095 .IX Item "-mhint-max-nops=n"
20096 Maximum number of nops to insert for a branch hint.  A branch hint must
20097 be at least 8 instructions away from the branch it is affecting.  \s-1GCC\s0
20098 inserts up to \fIn\fR nops to enforce this, otherwise it does not
20099 generate the branch hint.
20100 .IP "\fB\-mhint\-max\-distance=\fR\fIn\fR" 4
20101 .IX Item "-mhint-max-distance=n"
20102 The encoding of the branch hint instruction limits the hint to be within
20103 256 instructions of the branch it is affecting.  By default, \s-1GCC\s0 makes
20104 sure it is within 125.
20105 .IP "\fB\-msafe\-hints\fR" 4
20106 .IX Item "-msafe-hints"
20107 Work around a hardware bug that causes the \s-1SPU\s0 to stall indefinitely.
20108 By default, \s-1GCC\s0 inserts the \f(CW\*(C`hbrp\*(C'\fR instruction to make sure
20109 this stall won't happen.
20110 .PP
20111 \fIOptions for System V\fR
20112 .IX Subsection "Options for System V"
20113 .PP
20114 These additional options are available on System V Release 4 for
20115 compatibility with other compilers on those systems:
20116 .IP "\fB\-G\fR" 4
20117 .IX Item "-G"
20118 Create a shared object.
20119 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
20120 .IP "\fB\-Qy\fR" 4
20121 .IX Item "-Qy"
20122 Identify the versions of each tool used by the compiler, in a
20123 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
20124 .IP "\fB\-Qn\fR" 4
20125 .IX Item "-Qn"
20126 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
20127 the default).
20128 .IP "\fB\-YP,\fR\fIdirs\fR" 4
20129 .IX Item "-YP,dirs"
20130 Search the directories \fIdirs\fR, and no others, for libraries
20131 specified with \fB\-l\fR.
20132 .IP "\fB\-Ym,\fR\fIdir\fR" 4
20133 .IX Item "-Ym,dir"
20134 Look in the directory \fIdir\fR to find the M4 preprocessor.
20135 The assembler uses this option.
20136 .PP
20137 \fITILE-Gx Options\fR
20138 .IX Subsection "TILE-Gx Options"
20139 .PP
20140 These \fB\-m\fR options are supported on the TILE-Gx:
20141 .IP "\fB\-mcmodel=small\fR" 4
20142 .IX Item "-mcmodel=small"
20143 Generate code for the small model.  The distance for direct calls is
20144 limited to 500M in either direction.  PC-relative addresses are 32
20145 bits.  Absolute addresses support the full address range.
20146 .IP "\fB\-mcmodel=large\fR" 4
20147 .IX Item "-mcmodel=large"
20148 Generate code for the large model.  There is no limitation on call
20149 distance, pc-relative addresses, or absolute addresses.
20150 .IP "\fB\-mcpu=\fR\fIname\fR" 4
20151 .IX Item "-mcpu=name"
20152 Selects the type of \s-1CPU\s0 to be targeted.  Currently the only supported
20153 type is \fBtilegx\fR.
20154 .IP "\fB\-m32\fR" 4
20155 .IX Item "-m32"
20156 .PD 0
20157 .IP "\fB\-m64\fR" 4
20158 .IX Item "-m64"
20159 .PD
20160 Generate code for a 32\-bit or 64\-bit environment.  The 32\-bit
20161 environment sets int, long, and pointer to 32 bits.  The 64\-bit
20162 environment sets int to 32 bits and long and pointer to 64 bits.
20163 .IP "\fB\-mbig\-endian\fR" 4
20164 .IX Item "-mbig-endian"
20165 .PD 0
20166 .IP "\fB\-mlittle\-endian\fR" 4
20167 .IX Item "-mlittle-endian"
20168 .PD
20169 Generate code in big/little endian mode, respectively.
20170 .PP
20171 \fITILEPro Options\fR
20172 .IX Subsection "TILEPro Options"
20173 .PP
20174 These \fB\-m\fR options are supported on the TILEPro:
20175 .IP "\fB\-mcpu=\fR\fIname\fR" 4
20176 .IX Item "-mcpu=name"
20177 Selects the type of \s-1CPU\s0 to be targeted.  Currently the only supported
20178 type is \fBtilepro\fR.
20179 .IP "\fB\-m32\fR" 4
20180 .IX Item "-m32"
20181 Generate code for a 32\-bit environment, which sets int, long, and
20182 pointer to 32 bits.  This is the only supported behavior so the flag
20183 is essentially ignored.
20184 .PP
20185 \fIV850 Options\fR
20186 .IX Subsection "V850 Options"
20187 .PP
20188 These \fB\-m\fR options are defined for V850 implementations:
20189 .IP "\fB\-mlong\-calls\fR" 4
20190 .IX Item "-mlong-calls"
20191 .PD 0
20192 .IP "\fB\-mno\-long\-calls\fR" 4
20193 .IX Item "-mno-long-calls"
20194 .PD
20195 Treat all calls as being far away (near).  If calls are assumed to be
20196 far away, the compiler always loads the function's address into a
20197 register, and calls indirect through the pointer.
20198 .IP "\fB\-mno\-ep\fR" 4
20199 .IX Item "-mno-ep"
20200 .PD 0
20201 .IP "\fB\-mep\fR" 4
20202 .IX Item "-mep"
20203 .PD
20204 Do not optimize (do optimize) basic blocks that use the same index
20205 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
20206 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
20207 option is on by default if you optimize.
20208 .IP "\fB\-mno\-prolog\-function\fR" 4
20209 .IX Item "-mno-prolog-function"
20210 .PD 0
20211 .IP "\fB\-mprolog\-function\fR" 4
20212 .IX Item "-mprolog-function"
20213 .PD
20214 Do not use (do use) external functions to save and restore registers
20215 at the prologue and epilogue of a function.  The external functions
20216 are slower, but use less code space if more than one function saves
20217 the same number of registers.  The \fB\-mprolog\-function\fR option
20218 is on by default if you optimize.
20219 .IP "\fB\-mspace\fR" 4
20220 .IX Item "-mspace"
20221 Try to make the code as small as possible.  At present, this just turns
20222 on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
20223 .IP "\fB\-mtda=\fR\fIn\fR" 4
20224 .IX Item "-mtda=n"
20225 Put static or global variables whose size is \fIn\fR bytes or less into
20226 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
20227 area can hold up to 256 bytes in total (128 bytes for byte references).
20228 .IP "\fB\-msda=\fR\fIn\fR" 4
20229 .IX Item "-msda=n"
20230 Put static or global variables whose size is \fIn\fR bytes or less into
20231 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
20232 area can hold up to 64 kilobytes.
20233 .IP "\fB\-mzda=\fR\fIn\fR" 4
20234 .IX Item "-mzda=n"
20235 Put static or global variables whose size is \fIn\fR bytes or less into
20236 the first 32 kilobytes of memory.
20237 .IP "\fB\-mv850\fR" 4
20238 .IX Item "-mv850"
20239 Specify that the target processor is the V850.
20240 .IP "\fB\-mv850e3v5\fR" 4
20241 .IX Item "-mv850e3v5"
20242 Specify that the target processor is the V850E3V5.  The preprocessor
20243 constant \f(CW\*(C`_\|_v850e3v5_\|_\*(C'\fR is defined if this option is used.
20244 .IP "\fB\-mv850e2v4\fR" 4
20245 .IX Item "-mv850e2v4"
20246 Specify that the target processor is the V850E3V5.  This is an alias for
20247 the \fB\-mv850e3v5\fR option.
20248 .IP "\fB\-mv850e2v3\fR" 4
20249 .IX Item "-mv850e2v3"
20250 Specify that the target processor is the V850E2V3.  The preprocessor
20251 constant \f(CW\*(C`_\|_v850e2v3_\|_\*(C'\fR is defined if this option is used.
20252 .IP "\fB\-mv850e2\fR" 4
20253 .IX Item "-mv850e2"
20254 Specify that the target processor is the V850E2.  The preprocessor
20255 constant \f(CW\*(C`_\|_v850e2_\|_\*(C'\fR is defined if this option is used.
20256 .IP "\fB\-mv850e1\fR" 4
20257 .IX Item "-mv850e1"
20258 Specify that the target processor is the V850E1.  The preprocessor
20259 constants \f(CW\*(C`_\|_v850e1_\|_\*(C'\fR and \f(CW\*(C`_\|_v850e_\|_\*(C'\fR are defined if
20260 this option is used.
20261 .IP "\fB\-mv850es\fR" 4
20262 .IX Item "-mv850es"
20263 Specify that the target processor is the V850ES.  This is an alias for
20264 the \fB\-mv850e1\fR option.
20265 .IP "\fB\-mv850e\fR" 4
20266 .IX Item "-mv850e"
20267 Specify that the target processor is the V850E.  The preprocessor
20268 constant \f(CW\*(C`_\|_v850e_\|_\*(C'\fR is defined if this option is used.
20269 .Sp
20270 If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
20271 nor \fB\-mv850e2\fR nor \fB\-mv850e2v3\fR nor \fB\-mv850e3v5\fR
20272 are defined then a default target processor is chosen and the
20273 relevant \fB_\|_v850*_\|_\fR preprocessor constant is defined.
20274 .Sp
20275 The preprocessor constants \f(CW\*(C`_\|_v850\*(C'\fR and \f(CW\*(C`_\|_v851_\|_\*(C'\fR are always
20276 defined, regardless of which processor variant is the target.
20277 .IP "\fB\-mdisable\-callt\fR" 4
20278 .IX Item "-mdisable-callt"
20279 .PD 0
20280 .IP "\fB\-mno\-disable\-callt\fR" 4
20281 .IX Item "-mno-disable-callt"
20282 .PD
20283 This option suppresses generation of the \f(CW\*(C`CALLT\*(C'\fR instruction for the
20284 v850e, v850e1, v850e2, v850e2v3 and v850e3v5 flavors of the v850
20285 architecture.
20286 .Sp
20287 This option is enabled by default when the \s-1RH850\s0 \s-1ABI\s0 is
20288 in use (see \fB\-mrh850\-abi\fR), and disabled by default when the
20289 \&\s-1GCC\s0 \s-1ABI\s0 is in use.  If \f(CW\*(C`CALLT\*(C'\fR instructions are being generated
20290 then the C preprocessor symbol \f(CW\*(C`_\|_V850_CALLT_\|_\*(C'\fR is defined.
20291 .IP "\fB\-mrelax\fR" 4
20292 .IX Item "-mrelax"
20293 .PD 0
20294 .IP "\fB\-mno\-relax\fR" 4
20295 .IX Item "-mno-relax"
20296 .PD
20297 Pass on (or do not pass on) the \fB\-mrelax\fR command-line option
20298 to the assembler.
20299 .IP "\fB\-mlong\-jumps\fR" 4
20300 .IX Item "-mlong-jumps"
20301 .PD 0
20302 .IP "\fB\-mno\-long\-jumps\fR" 4
20303 .IX Item "-mno-long-jumps"
20304 .PD
20305 Disable (or re-enable) the generation of PC-relative jump instructions.
20306 .IP "\fB\-msoft\-float\fR" 4
20307 .IX Item "-msoft-float"
20308 .PD 0
20309 .IP "\fB\-mhard\-float\fR" 4
20310 .IX Item "-mhard-float"
20311 .PD
20312 Disable (or re-enable) the generation of hardware floating point
20313 instructions.  This option is only significant when the target
20314 architecture is \fBV850E2V3\fR or higher.  If hardware floating point
20315 instructions are being generated then the C preprocessor symbol
20316 \&\f(CW\*(C`_\|_FPU_OK_\|_\*(C'\fR is defined, otherwise the symbol
20317 \&\f(CW\*(C`_\|_NO_FPU_\|_\*(C'\fR is defined.
20318 .IP "\fB\-mloop\fR" 4
20319 .IX Item "-mloop"
20320 Enables the use of the e3v5 \s-1LOOP\s0 instruction.  The use of this
20321 instruction is not enabled by default when the e3v5 architecture is
20322 selected because its use is still experimental.
20323 .IP "\fB\-mrh850\-abi\fR" 4
20324 .IX Item "-mrh850-abi"
20325 .PD 0
20326 .IP "\fB\-mghs\fR" 4
20327 .IX Item "-mghs"
20328 .PD
20329 Enables support for the \s-1RH850\s0 version of the V850 \s-1ABI\s0.  This is the
20330 default.  With this version of the \s-1ABI\s0 the following rules apply:
20331 .RS 4
20332 .IP "*" 4
20333 Integer sized structures and unions are returned via a memory pointer
20334 rather than a register.
20335 .IP "*" 4
20336 Large structures and unions (more than 8 bytes in size) are passed by
20337 value.
20338 .IP "*" 4
20339 Functions are aligned to 16\-bit boundaries.
20340 .IP "*" 4
20341 The \fB\-m8byte\-align\fR command-line option is supported.
20342 .IP "*" 4
20343 The \fB\-mdisable\-callt\fR command-line option is enabled by
20344 default.  The \fB\-mno\-disable\-callt\fR command-line option is not
20345 supported.
20346 .RE
20347 .RS 4
20348 .Sp
20349 When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
20350 \&\f(CW\*(C`_\|_V850_RH850_ABI_\|_\*(C'\fR is defined.
20351 .RE
20352 .IP "\fB\-mgcc\-abi\fR" 4
20353 .IX Item "-mgcc-abi"
20354 Enables support for the old \s-1GCC\s0 version of the V850 \s-1ABI\s0.  With this
20355 version of the \s-1ABI\s0 the following rules apply:
20356 .RS 4
20357 .IP "*" 4
20358 Integer sized structures and unions are returned in register \f(CW\*(C`r10\*(C'\fR.
20359 .IP "*" 4
20360 Large structures and unions (more than 8 bytes in size) are passed by
20361 reference.
20362 .IP "*" 4
20363 Functions are aligned to 32\-bit boundaries, unless optimizing for
20364 size.
20365 .IP "*" 4
20366 The \fB\-m8byte\-align\fR command-line option is not supported.
20367 .IP "*" 4
20368 The \fB\-mdisable\-callt\fR command-line option is supported but not
20369 enabled by default.
20370 .RE
20371 .RS 4
20372 .Sp
20373 When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
20374 \&\f(CW\*(C`_\|_V850_GCC_ABI_\|_\*(C'\fR is defined.
20375 .RE
20376 .IP "\fB\-m8byte\-align\fR" 4
20377 .IX Item "-m8byte-align"
20378 .PD 0
20379 .IP "\fB\-mno\-8byte\-align\fR" 4
20380 .IX Item "-mno-8byte-align"
20381 .PD
20382 Enables support for \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long long\*(C'\fR types to be
20383 aligned on 8\-byte boundaries.  The default is to restrict the
20384 alignment of all objects to at most 4\-bytes.  When
20385 \&\fB\-m8byte\-align\fR is in effect the C preprocessor symbol
20386 \&\f(CW\*(C`_\|_V850_8BYTE_ALIGN_\|_\*(C'\fR is defined.
20387 .IP "\fB\-mbig\-switch\fR" 4
20388 .IX Item "-mbig-switch"
20389 Generate code suitable for big switch tables.  Use this option only if
20390 the assembler/linker complain about out of range branches within a switch
20391 table.
20392 .IP "\fB\-mapp\-regs\fR" 4
20393 .IX Item "-mapp-regs"
20394 This option causes r2 and r5 to be used in the code generated by
20395 the compiler.  This setting is the default.
20396 .IP "\fB\-mno\-app\-regs\fR" 4
20397 .IX Item "-mno-app-regs"
20398 This option causes r2 and r5 to be treated as fixed registers.
20399 .PP
20400 \fI\s-1VAX\s0 Options\fR
20401 .IX Subsection "VAX Options"
20402 .PP
20403 These \fB\-m\fR options are defined for the \s-1VAX:\s0
20404 .IP "\fB\-munix\fR" 4
20405 .IX Item "-munix"
20406 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
20407 that the Unix assembler for the \s-1VAX\s0 cannot handle across long
20408 ranges.
20409 .IP "\fB\-mgnu\fR" 4
20410 .IX Item "-mgnu"
20411 Do output those jump instructions, on the assumption that the
20412 \&\s-1GNU\s0 assembler is being used.
20413 .IP "\fB\-mg\fR" 4
20414 .IX Item "-mg"
20415 Output code for G\-format floating-point numbers instead of D\-format.
20416 .PP
20417 \fIVisium Options\fR
20418 .IX Subsection "Visium Options"
20419 .IP "\fB\-mdebug\fR" 4
20420 .IX Item "-mdebug"
20421 A program which performs file I/O and is destined to run on an \s-1MCM\s0 target
20422 should be linked with this option.  It causes the libraries libc.a and
20423 libdebug.a to be linked.  The program should be run on the target under
20424 the control of the \s-1GDB\s0 remote debugging stub.
20425 .IP "\fB\-msim\fR" 4
20426 .IX Item "-msim"
20427 A program which performs file I/O and is destined to run on the simulator
20428 should be linked with option.  This causes libraries libc.a and libsim.a to
20429 be linked.
20430 .IP "\fB\-mfpu\fR" 4
20431 .IX Item "-mfpu"
20432 .PD 0
20433 .IP "\fB\-mhard\-float\fR" 4
20434 .IX Item "-mhard-float"
20435 .PD
20436 Generate code containing floating-point instructions.  This is the
20437 default.
20438 .IP "\fB\-mno\-fpu\fR" 4
20439 .IX Item "-mno-fpu"
20440 .PD 0
20441 .IP "\fB\-msoft\-float\fR" 4
20442 .IX Item "-msoft-float"
20443 .PD
20444 Generate code containing library calls for floating-point.
20445 .Sp
20446 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
20447 therefore, it is only useful if you compile \fIall\fR of a program with
20448 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
20449 library that comes with \s-1GCC\s0, with \fB\-msoft\-float\fR in order for
20450 this to work.
20451 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
20452 .IX Item "-mcpu=cpu_type"
20453 Set the instruction set, register set, and instruction scheduling parameters
20454 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
20455 \&\fBmcm\fR, \fBgr5\fR and \fBgr6\fR.
20456 .Sp
20457 \&\fBmcm\fR is a synonym of \fBgr5\fR present for backward compatibility.
20458 .Sp
20459 By default (unless configured otherwise), \s-1GCC\s0 generates code for the \s-1GR5\s0
20460 variant of the Visium architecture.
20461 .Sp
20462 With \fB\-mcpu=gr6\fR, \s-1GCC\s0 generates code for the \s-1GR6\s0 variant of the Visium
20463 architecture.  The only difference from \s-1GR5\s0 code is that the compiler will
20464 generate block move instructions.
20465 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
20466 .IX Item "-mtune=cpu_type"
20467 Set the instruction scheduling parameters for machine type \fIcpu_type\fR,
20468 but do not set the instruction set or register set that the option
20469 \&\fB\-mcpu=\fR\fIcpu_type\fR would.
20470 .IP "\fB\-msv\-mode\fR" 4
20471 .IX Item "-msv-mode"
20472 Generate code for the supervisor mode, where there are no restrictions on
20473 the access to general registers.  This is the default.
20474 .IP "\fB\-muser\-mode\fR" 4
20475 .IX Item "-muser-mode"
20476 Generate code for the user mode, where the access to some general registers
20477 is forbidden: on the \s-1GR5\s0, registers r24 to r31 cannot be accessed in this
20478 mode; on the \s-1GR6\s0, only registers r29 to r31 are affected.
20479 .PP
20480 \fI\s-1VMS\s0 Options\fR
20481 .IX Subsection "VMS Options"
20482 .PP
20483 These \fB\-m\fR options are defined for the \s-1VMS\s0 implementations:
20484 .IP "\fB\-mvms\-return\-codes\fR" 4
20485 .IX Item "-mvms-return-codes"
20486 Return \s-1VMS\s0 condition codes from \f(CW\*(C`main\*(C'\fR. The default is to return POSIX-style
20487 condition (e.g. error) codes.
20488 .IP "\fB\-mdebug\-main=\fR\fIprefix\fR" 4
20489 .IX Item "-mdebug-main=prefix"
20490 Flag the first routine whose name starts with \fIprefix\fR as the main
20491 routine for the debugger.
20492 .IP "\fB\-mmalloc64\fR" 4
20493 .IX Item "-mmalloc64"
20494 Default to 64\-bit memory allocation routines.
20495 .IP "\fB\-mpointer\-size=\fR\fIsize\fR" 4
20496 .IX Item "-mpointer-size=size"
20497 Set the default size of pointers. Possible options for \fIsize\fR are
20498 \&\fB32\fR or \fBshort\fR for 32 bit pointers, \fB64\fR or \fBlong\fR
20499 for 64 bit pointers, and \fBno\fR for supporting only 32 bit pointers.
20500 The later option disables \f(CW\*(C`pragma pointer_size\*(C'\fR.
20501 .PP
20502 \fIVxWorks Options\fR
20503 .IX Subsection "VxWorks Options"
20504 .PP
20505 The options in this section are defined for all VxWorks targets.
20506 Options specific to the target hardware are listed with the other
20507 options for that target.
20508 .IP "\fB\-mrtp\fR" 4
20509 .IX Item "-mrtp"
20510 \&\s-1GCC\s0 can generate code for both VxWorks kernels and real time processes
20511 (RTPs).  This option switches from the former to the latter.  It also
20512 defines the preprocessor macro \f(CW\*(C`_\|_RTP_\|_\*(C'\fR.
20513 .IP "\fB\-non\-static\fR" 4
20514 .IX Item "-non-static"
20515 Link an \s-1RTP\s0 executable against shared libraries rather than static
20516 libraries.  The options \fB\-static\fR and \fB\-shared\fR can
20517 also be used for RTPs; \fB\-static\fR
20518 is the default.
20519 .IP "\fB\-Bstatic\fR" 4
20520 .IX Item "-Bstatic"
20521 .PD 0
20522 .IP "\fB\-Bdynamic\fR" 4
20523 .IX Item "-Bdynamic"
20524 .PD
20525 These options are passed down to the linker.  They are defined for
20526 compatibility with Diab.
20527 .IP "\fB\-Xbind\-lazy\fR" 4
20528 .IX Item "-Xbind-lazy"
20529 Enable lazy binding of function calls.  This option is equivalent to
20530 \&\fB\-Wl,\-z,now\fR and is defined for compatibility with Diab.
20531 .IP "\fB\-Xbind\-now\fR" 4
20532 .IX Item "-Xbind-now"
20533 Disable lazy binding of function calls.  This option is the default and
20534 is defined for compatibility with Diab.
20535 .PP
20536 \fIx86 Options\fR
20537 .IX Subsection "x86 Options"
20538 .PP
20539 These \fB\-m\fR options are defined for the x86 family of computers.
20540 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
20541 .IX Item "-march=cpu-type"
20542 Generate instructions for the machine type \fIcpu-type\fR.  In contrast to
20543 \&\fB\-mtune=\fR\fIcpu-type\fR, which merely tunes the generated code 
20544 for the specified \fIcpu-type\fR, \fB\-march=\fR\fIcpu-type\fR allows \s-1GCC\s0
20545 to generate code that may not run at all on processors other than the one
20546 indicated.  Specifying \fB\-march=\fR\fIcpu-type\fR implies 
20547 \&\fB\-mtune=\fR\fIcpu-type\fR.
20548 .Sp
20549 The choices for \fIcpu-type\fR are:
20550 .RS 4
20551 .IP "\fBnative\fR" 4
20552 .IX Item "native"
20553 This selects the \s-1CPU\s0 to generate code for at compilation time by determining
20554 the processor type of the compiling machine.  Using \fB\-march=native\fR
20555 enables all instruction subsets supported by the local machine (hence
20556 the result might not run on different machines).  Using \fB\-mtune=native\fR
20557 produces code optimized for the local machine under the constraints
20558 of the selected instruction set.
20559 .IP "\fBi386\fR" 4
20560 .IX Item "i386"
20561 Original Intel i386 \s-1CPU\s0.
20562 .IP "\fBi486\fR" 4
20563 .IX Item "i486"
20564 Intel i486 \s-1CPU\s0.  (No scheduling is implemented for this chip.)
20565 .IP "\fBi586\fR" 4
20566 .IX Item "i586"
20567 .PD 0
20568 .IP "\fBpentium\fR" 4
20569 .IX Item "pentium"
20570 .PD
20571 Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
20572 .IP "\fBpentium-mmx\fR" 4
20573 .IX Item "pentium-mmx"
20574 Intel Pentium \s-1MMX\s0 \s-1CPU\s0, based on Pentium core with \s-1MMX\s0 instruction set support.
20575 .IP "\fBpentiumpro\fR" 4
20576 .IX Item "pentiumpro"
20577 Intel Pentium Pro \s-1CPU\s0.
20578 .IP "\fBi686\fR" 4
20579 .IX Item "i686"
20580 When used with \fB\-march\fR, the Pentium Pro
20581 instruction set is used, so the code runs on all i686 family chips.
20582 When used with \fB\-mtune\fR, it has the same meaning as \fBgeneric\fR.
20583 .IP "\fBpentium2\fR" 4
20584 .IX Item "pentium2"
20585 Intel Pentium \s-1II\s0 \s-1CPU\s0, based on Pentium Pro core with \s-1MMX\s0 instruction set
20586 support.
20587 .IP "\fBpentium3\fR" 4
20588 .IX Item "pentium3"
20589 .PD 0
20590 .IP "\fBpentium3m\fR" 4
20591 .IX Item "pentium3m"
20592 .PD
20593 Intel Pentium \s-1III\s0 \s-1CPU\s0, based on Pentium Pro core with \s-1MMX\s0 and \s-1SSE\s0 instruction
20594 set support.
20595 .IP "\fBpentium-m\fR" 4
20596 .IX Item "pentium-m"
20597 Intel Pentium M; low-power version of Intel Pentium \s-1III\s0 \s-1CPU\s0
20598 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set support.  Used by Centrino notebooks.
20599 .IP "\fBpentium4\fR" 4
20600 .IX Item "pentium4"
20601 .PD 0
20602 .IP "\fBpentium4m\fR" 4
20603 .IX Item "pentium4m"
20604 .PD
20605 Intel Pentium 4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0 and \s-1SSE2\s0 instruction set support.
20606 .IP "\fBprescott\fR" 4
20607 .IX Item "prescott"
20608 Improved version of Intel Pentium 4 \s-1CPU\s0 with \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0 and \s-1SSE3\s0 instruction
20609 set support.
20610 .IP "\fBnocona\fR" 4
20611 .IX Item "nocona"
20612 Improved version of Intel Pentium 4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0,
20613 \&\s-1SSE2\s0 and \s-1SSE3\s0 instruction set support.
20614 .IP "\fBcore2\fR" 4
20615 .IX Item "core2"
20616 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
20617 instruction set support.
20618 .IP "\fBnehalem\fR" 4
20619 .IX Item "nehalem"
20620 Intel Nehalem \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSSE3\s0,
20621 \&\s-1SSE4\s0.1, \s-1SSE4\s0.2 and \s-1POPCNT\s0 instruction set support.
20622 .IP "\fBwestmere\fR" 4
20623 .IX Item "westmere"
20624 Intel Westmere \s-1CPU\s0 with 64\-bit extensions, \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, \s-1SSE3\s0, \s-1SSSE3\s0,
20625 \&\s-1SSE4\s0.1, \s-1SSE4\s0.2, \s-1POPCNT\s0, \s-1AES\s0 and \s-1PCLMUL\s0 instruction set support.
20626 .IP "\fBsandybridge\fR" 4
20627 .IX Item "sandybridge"
20628 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,
20629 \&\s-1SSE4\s0.1, \s-1SSE4\s0.2, \s-1POPCNT\s0, \s-1AVX\s0, \s-1AES\s0 and \s-1PCLMUL\s0 instruction set support.
20630 .IP "\fBivybridge\fR" 4
20631 .IX Item "ivybridge"
20632 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,
20633 \&\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
20634 instruction set support.
20635 .IP "\fBhaswell\fR" 4
20636 .IX Item "haswell"
20637 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,
20638 \&\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,
20639 \&\s-1BMI\s0, \s-1BMI2\s0 and F16C instruction set support.
20640 .IP "\fBbroadwell\fR" 4
20641 .IX Item "broadwell"
20642 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,
20643 \&\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,
20644 \&\s-1BMI\s0, \s-1BMI2\s0, F16C, \s-1RDSEED\s0, \s-1ADCX\s0 and \s-1PREFETCHW\s0 instruction set support.
20645 .IP "\fBbonnell\fR" 4
20646 .IX Item "bonnell"
20647 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
20648 instruction set support.
20649 .IP "\fBsilvermont\fR" 4
20650 .IX Item "silvermont"
20651 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,
20652 \&\s-1SSE4\s0.1, \s-1SSE4\s0.2, \s-1POPCNT\s0, \s-1AES\s0, \s-1PCLMUL\s0 and \s-1RDRND\s0 instruction set support.
20653 .IP "\fBknl\fR" 4
20654 .IX Item "knl"
20655 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,
20656 \&\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,
20657 \&\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
20658 \&\s-1AVX512CD\s0 instruction set support.
20659 .IP "\fBk6\fR" 4
20660 .IX Item "k6"
20661 \&\s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 instruction set support.
20662 .IP "\fBk6\-2\fR" 4
20663 .IX Item "k6-2"
20664 .PD 0
20665 .IP "\fBk6\-3\fR" 4
20666 .IX Item "k6-3"
20667 .PD
20668 Improved versions of \s-1AMD\s0 K6 \s-1CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
20669 .IP "\fBathlon\fR" 4
20670 .IX Item "athlon"
20671 .PD 0
20672 .IP "\fBathlon-tbird\fR" 4
20673 .IX Item "athlon-tbird"
20674 .PD
20675 \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3dNOW!, enhanced 3DNow! and \s-1SSE\s0 prefetch instructions
20676 support.
20677 .IP "\fBathlon\-4\fR" 4
20678 .IX Item "athlon-4"
20679 .PD 0
20680 .IP "\fBathlon-xp\fR" 4
20681 .IX Item "athlon-xp"
20682 .IP "\fBathlon-mp\fR" 4
20683 .IX Item "athlon-mp"
20684 .PD
20685 Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX\s0, 3DNow!, enhanced 3DNow! and full \s-1SSE\s0
20686 instruction set support.
20687 .IP "\fBk8\fR" 4
20688 .IX Item "k8"
20689 .PD 0
20690 .IP "\fBopteron\fR" 4
20691 .IX Item "opteron"
20692 .IP "\fBathlon64\fR" 4
20693 .IX Item "athlon64"
20694 .IP "\fBathlon-fx\fR" 4
20695 .IX Item "athlon-fx"
20696 .PD
20697 Processors based on the \s-1AMD\s0 K8 core with x86\-64 instruction set support,
20698 including the \s-1AMD\s0 Opteron, Athlon 64, and Athlon 64 \s-1FX\s0 processors.
20699 (This supersets \s-1MMX\s0, \s-1SSE\s0, \s-1SSE2\s0, 3DNow!, enhanced 3DNow! and 64\-bit
20700 instruction set extensions.)
20701 .IP "\fBk8\-sse3\fR" 4
20702 .IX Item "k8-sse3"
20703 .PD 0
20704 .IP "\fBopteron\-sse3\fR" 4
20705 .IX Item "opteron-sse3"
20706 .IP "\fBathlon64\-sse3\fR" 4
20707 .IX Item "athlon64-sse3"
20708 .PD
20709 Improved versions of \s-1AMD\s0 K8 cores with \s-1SSE3\s0 instruction set support.
20710 .IP "\fBamdfam10\fR" 4
20711 .IX Item "amdfam10"
20712 .PD 0
20713 .IP "\fBbarcelona\fR" 4
20714 .IX Item "barcelona"
20715 .PD
20716 CPUs based on \s-1AMD\s0 Family 10h cores with x86\-64 instruction set support.  (This
20717 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
20718 instruction set extensions.)
20719 .IP "\fBbdver1\fR" 4
20720 .IX Item "bdver1"
20721 CPUs based on \s-1AMD\s0 Family 15h cores with x86\-64 instruction set support.  (This
20722 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,
20723 \&\s-1SSSE3\s0, \s-1SSE4\s0.1, \s-1SSE4\s0.2, \s-1ABM\s0 and 64\-bit instruction set extensions.)
20724 .IP "\fBbdver2\fR" 4
20725 .IX Item "bdver2"
20726 \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support.  (This
20727 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,
20728 \&\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 
20729 extensions.)
20730 .IP "\fBbdver3\fR" 4
20731 .IX Item "bdver3"
20732 \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support.  (This
20733 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, 
20734 \&\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 
20735 64\-bit instruction set extensions.
20736 .IP "\fBbdver4\fR" 4
20737 .IX Item "bdver4"
20738 \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support.  (This
20739 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, 
20740 \&\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, 
20741 \&\s-1SSE4\s0.2, \s-1ABM\s0 and 64\-bit instruction set extensions.
20742 .IP "\fBbtver1\fR" 4
20743 .IX Item "btver1"
20744 CPUs based on \s-1AMD\s0 Family 14h cores with x86\-64 instruction set support.  (This
20745 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
20746 instruction set extensions.)
20747 .IP "\fBbtver2\fR" 4
20748 .IX Item "btver2"
20749 CPUs based on \s-1AMD\s0 Family 16h cores with x86\-64 instruction set support. This
20750 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,
20751 \&\s-1SSE4A\s0, \s-1SSSE3\s0, \s-1SSE3\s0, \s-1SSE2\s0, \s-1SSE\s0, \s-1MMX\s0 and 64\-bit instruction set extensions.
20752 .IP "\fBwinchip\-c6\fR" 4
20753 .IX Item "winchip-c6"
20754 \&\s-1IDT\s0 WinChip C6 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 instruction
20755 set support.
20756 .IP "\fBwinchip2\fR" 4
20757 .IX Item "winchip2"
20758 \&\s-1IDT\s0 WinChip 2 \s-1CPU\s0, dealt in same way as i486 with additional \s-1MMX\s0 and 3DNow!
20759 instruction set support.
20760 .IP "\fBc3\fR" 4
20761 .IX Item "c3"
20762 \&\s-1VIA\s0 C3 \s-1CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.  (No scheduling is
20763 implemented for this chip.)
20764 .IP "\fBc3\-2\fR" 4
20765 .IX Item "c3-2"
20766 \&\s-1VIA\s0 C3\-2 (Nehemiah/C5XL) \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.
20767 (No scheduling is
20768 implemented for this chip.)
20769 .IP "\fBgeode\fR" 4
20770 .IX Item "geode"
20771 \&\s-1AMD\s0 Geode embedded processor with \s-1MMX\s0 and 3DNow! instruction set support.
20772 .RE
20773 .RS 4
20774 .RE
20775 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
20776 .IX Item "-mtune=cpu-type"
20777 Tune to \fIcpu-type\fR everything applicable about the generated code, except
20778 for the \s-1ABI\s0 and the set of available instructions.  
20779 While picking a specific \fIcpu-type\fR schedules things appropriately
20780 for that particular chip, the compiler does not generate any code that
20781 cannot run on the default machine type unless you use a
20782 \&\fB\-march=\fR\fIcpu-type\fR option.
20783 For example, if \s-1GCC\s0 is configured for i686\-pc\-linux\-gnu
20784 then \fB\-mtune=pentium4\fR generates code that is tuned for Pentium 4
20785 but still runs on i686 machines.
20786 .Sp
20787 The choices for \fIcpu-type\fR are the same as for \fB\-march\fR.
20788 In addition, \fB\-mtune\fR supports 2 extra choices for \fIcpu-type\fR:
20789 .RS 4
20790 .IP "\fBgeneric\fR" 4
20791 .IX Item "generic"
20792 Produce code optimized for the most common \s-1IA32/AMD64/EM64T\s0 processors.
20793 If you know the \s-1CPU\s0 on which your code will run, then you should use
20794 the corresponding \fB\-mtune\fR or \fB\-march\fR option instead of
20795 \&\fB\-mtune=generic\fR.  But, if you do not know exactly what \s-1CPU\s0 users
20796 of your application will have, then you should use this option.
20797 .Sp
20798 As new processors are deployed in the marketplace, the behavior of this
20799 option will change.  Therefore, if you upgrade to a newer version of
20800 \&\s-1GCC\s0, code generation controlled by this option will change to reflect
20801 the processors
20802 that are most common at the time that version of \s-1GCC\s0 is released.
20803 .Sp
20804 There is no \fB\-march=generic\fR option because \fB\-march\fR
20805 indicates the instruction set the compiler can use, and there is no
20806 generic instruction set applicable to all processors.  In contrast,
20807 \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
20808 processors) for which the code is optimized.
20809 .IP "\fBintel\fR" 4
20810 .IX Item "intel"
20811 Produce code optimized for the most current Intel processors, which are
20812 Haswell and Silvermont for this version of \s-1GCC\s0.  If you know the \s-1CPU\s0
20813 on which your code will run, then you should use the corresponding
20814 \&\fB\-mtune\fR or \fB\-march\fR option instead of \fB\-mtune=intel\fR.
20815 But, if you want your application performs better on both Haswell and
20816 Silvermont, then you should use this option.
20817 .Sp
20818 As new Intel processors are deployed in the marketplace, the behavior of
20819 this option will change.  Therefore, if you upgrade to a newer version of
20820 \&\s-1GCC\s0, code generation controlled by this option will change to reflect
20821 the most current Intel processors at the time that version of \s-1GCC\s0 is
20822 released.
20823 .Sp
20824 There is no \fB\-march=intel\fR option because \fB\-march\fR indicates
20825 the instruction set the compiler can use, and there is no common
20826 instruction set applicable to all processors.  In contrast,
20827 \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
20828 processors) for which the code is optimized.
20829 .RE
20830 .RS 4
20831 .RE
20832 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
20833 .IX Item "-mcpu=cpu-type"
20834 A deprecated synonym for \fB\-mtune\fR.
20835 .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
20836 .IX Item "-mfpmath=unit"
20837 Generate floating-point arithmetic for selected unit \fIunit\fR.  The choices
20838 for \fIunit\fR are:
20839 .RS 4
20840 .IP "\fB387\fR" 4
20841 .IX Item "387"
20842 Use the standard 387 floating-point coprocessor present on the majority of chips and
20843 emulated otherwise.  Code compiled with this option runs almost everywhere.
20844 The temporary results are computed in 80\-bit precision instead of the precision
20845 specified by the type, resulting in slightly different results compared to most
20846 of other chips.  See \fB\-ffloat\-store\fR for more detailed description.
20847 .Sp
20848 This is the default choice for x86\-32 targets.
20849 .IP "\fBsse\fR" 4
20850 .IX Item "sse"
20851 Use scalar floating-point instructions present in the \s-1SSE\s0 instruction set.
20852 This instruction set is supported by Pentium \s-1III\s0 and newer chips,
20853 and in the \s-1AMD\s0 line
20854 by Athlon\-4, Athlon \s-1XP\s0 and Athlon \s-1MP\s0 chips.  The earlier version of the \s-1SSE\s0
20855 instruction set supports only single-precision arithmetic, thus the double and
20856 extended-precision arithmetic are still done using 387.  A later version, present
20857 only in Pentium 4 and \s-1AMD\s0 x86\-64 chips, supports double-precision
20858 arithmetic too.
20859 .Sp
20860 For the x86\-32 compiler, you must use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
20861 or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
20862 effective.  For the x86\-64 compiler, these extensions are enabled by default.
20863 .Sp
20864 The resulting code should be considerably faster in the majority of cases and avoid
20865 the numerical instability problems of 387 code, but may break some existing
20866 code that expects temporaries to be 80 bits.
20867 .Sp
20868 This is the default choice for the x86\-64 compiler.
20869 .IP "\fBsse,387\fR" 4
20870 .IX Item "sse,387"
20871 .PD 0
20872 .IP "\fBsse+387\fR" 4
20873 .IX Item "sse+387"
20874 .IP "\fBboth\fR" 4
20875 .IX Item "both"
20876 .PD
20877 Attempt to utilize both instruction sets at once.  This effectively doubles the
20878 amount of available registers, and on chips with separate execution units for
20879 387 and \s-1SSE\s0 the execution resources too.  Use this option with care, as it is
20880 still experimental, because the \s-1GCC\s0 register allocator does not model separate
20881 functional units well, resulting in unstable performance.
20882 .RE
20883 .RS 4
20884 .RE
20885 .IP "\fB\-masm=\fR\fIdialect\fR" 4
20886 .IX Item "-masm=dialect"
20887 Output assembly instructions using selected \fIdialect\fR.  Also affects
20888 which dialect is used for basic \f(CW\*(C`asm\*(C'\fR and
20889 extended \f(CW\*(C`asm\*(C'\fR. Supported choices (in dialect
20890 order) are \fBatt\fR or \fBintel\fR. The default is \fBatt\fR. Darwin does
20891 not support \fBintel\fR.
20892 .IP "\fB\-mieee\-fp\fR" 4
20893 .IX Item "-mieee-fp"
20894 .PD 0
20895 .IP "\fB\-mno\-ieee\-fp\fR" 4
20896 .IX Item "-mno-ieee-fp"
20897 .PD
20898 Control whether or not the compiler uses \s-1IEEE\s0 floating-point
20899 comparisons.  These correctly handle the case where the result of a
20900 comparison is unordered.
20901 .IP "\fB\-msoft\-float\fR" 4
20902 .IX Item "-msoft-float"
20903 Generate output containing library calls for floating point.
20904 .Sp
20905 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC\s0.
20906 Normally the facilities of the machine's usual C compiler are used, but
20907 this can't be done directly in cross-compilation.  You must make your
20908 own arrangements to provide suitable library functions for
20909 cross-compilation.
20910 .Sp
20911 On machines where a function returns floating-point results in the 80387
20912 register stack, some floating-point opcodes may be emitted even if
20913 \&\fB\-msoft\-float\fR is used.
20914 .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
20915 .IX Item "-mno-fp-ret-in-387"
20916 Do not use the \s-1FPU\s0 registers for return values of functions.
20917 .Sp
20918 The usual calling convention has functions return values of types
20919 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
20920 is no \s-1FPU\s0.  The idea is that the operating system should emulate
20921 an \s-1FPU\s0.
20922 .Sp
20923 The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
20924 in ordinary \s-1CPU\s0 registers instead.
20925 .IP "\fB\-mno\-fancy\-math\-387\fR" 4
20926 .IX Item "-mno-fancy-math-387"
20927 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
20928 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
20929 generating those instructions.  This option is the default on
20930 OpenBSD and NetBSD.  This option is overridden when \fB\-march\fR
20931 indicates that the target \s-1CPU\s0 always has an \s-1FPU\s0 and so the
20932 instruction does not need emulation.  These
20933 instructions are not generated unless you also use the
20934 \&\fB\-funsafe\-math\-optimizations\fR switch.
20935 .IP "\fB\-malign\-double\fR" 4
20936 .IX Item "-malign-double"
20937 .PD 0
20938 .IP "\fB\-mno\-align\-double\fR" 4
20939 .IX Item "-mno-align-double"
20940 .PD
20941 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
20942 \&\f(CW\*(C`long long\*(C'\fR variables on a two-word boundary or a one-word
20943 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two-word boundary
20944 produces code that runs somewhat faster on a Pentium at the
20945 expense of more memory.
20946 .Sp
20947 On x86\-64, \fB\-malign\-double\fR is enabled by default.
20948 .Sp
20949 \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
20950 structures containing the above types are aligned differently than
20951 the published application binary interface specifications for the x86\-32
20952 and are not binary compatible with structures in code compiled
20953 without that switch.
20954 .IP "\fB\-m96bit\-long\-double\fR" 4
20955 .IX Item "-m96bit-long-double"
20956 .PD 0
20957 .IP "\fB\-m128bit\-long\-double\fR" 4
20958 .IX Item "-m128bit-long-double"
20959 .PD
20960 These switches control the size of \f(CW\*(C`long double\*(C'\fR type.  The x86\-32
20961 application binary interface specifies the size to be 96 bits,
20962 so \fB\-m96bit\-long\-double\fR is the default in 32\-bit mode.
20963 .Sp
20964 Modern architectures (Pentium and newer) prefer \f(CW\*(C`long double\*(C'\fR
20965 to be aligned to an 8\- or 16\-byte boundary.  In arrays or structures
20966 conforming to the \s-1ABI\s0, this is not possible.  So specifying
20967 \&\fB\-m128bit\-long\-double\fR aligns \f(CW\*(C`long double\*(C'\fR
20968 to a 16\-byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
20969 32\-bit zero.
20970 .Sp
20971 In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
20972 its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is aligned on 16\-byte boundary.
20973 .Sp
20974 Notice that neither of these options enable any extra precision over the x87
20975 standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
20976 .Sp
20977 \&\fBWarning:\fR if you override the default value for your target \s-1ABI\s0, this
20978 changes the size of 
20979 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
20980 as well as modifying the function calling convention for functions taking
20981 \&\f(CW\*(C`long double\*(C'\fR.  Hence they are not binary-compatible
20982 with code compiled without that switch.
20983 .IP "\fB\-mlong\-double\-64\fR" 4
20984 .IX Item "-mlong-double-64"
20985 .PD 0
20986 .IP "\fB\-mlong\-double\-80\fR" 4
20987 .IX Item "-mlong-double-80"
20988 .IP "\fB\-mlong\-double\-128\fR" 4
20989 .IX Item "-mlong-double-128"
20990 .PD
20991 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
20992 of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
20993 type. This is the default for 32\-bit Bionic C library.  A size
20994 of 128 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the
20995 \&\f(CW\*(C`_\|_float128\*(C'\fR type. This is the default for 64\-bit Bionic C library.
20996 .Sp
20997 \&\fBWarning:\fR if you override the default value for your target \s-1ABI\s0, this
20998 changes the size of
20999 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
21000 as well as modifying the function calling convention for functions taking
21001 \&\f(CW\*(C`long double\*(C'\fR.  Hence they are not binary-compatible
21002 with code compiled without that switch.
21003 .IP "\fB\-malign\-data=\fR\fItype\fR" 4
21004 .IX Item "-malign-data=type"
21005 Control how \s-1GCC\s0 aligns variables.  Supported values for \fItype\fR are
21006 \&\fBcompat\fR uses increased alignment value compatible uses \s-1GCC\s0 4.8
21007 and earlier, \fBabi\fR uses alignment value as specified by the
21008 psABI, and \fBcacheline\fR uses increased alignment value to match
21009 the cache line size.  \fBcompat\fR is the default.
21010 .IP "\fB\-mlarge\-data\-threshold=\fR\fIthreshold\fR" 4
21011 .IX Item "-mlarge-data-threshold=threshold"
21012 When \fB\-mcmodel=medium\fR is specified, data objects larger than
21013 \&\fIthreshold\fR are placed in the large data section.  This value must be the
21014 same across all objects linked into the binary, and defaults to 65535.
21015 .IP "\fB\-mrtd\fR" 4
21016 .IX Item "-mrtd"
21017 Use a different function-calling convention, in which functions that
21018 take a fixed number of arguments return with the \f(CW\*(C`ret \f(CInum\f(CW\*(C'\fR
21019 instruction, which pops their arguments while returning.  This saves one
21020 instruction in the caller since there is no need to pop the arguments
21021 there.
21022 .Sp
21023 You can specify that an individual function is called with this calling
21024 sequence with the function attribute \f(CW\*(C`stdcall\*(C'\fR.  You can also
21025 override the \fB\-mrtd\fR option by using the function attribute
21026 \&\f(CW\*(C`cdecl\*(C'\fR.
21027 .Sp
21028 \&\fBWarning:\fR this calling convention is incompatible with the one
21029 normally used on Unix, so you cannot use it if you need to call
21030 libraries compiled with the Unix compiler.
21031 .Sp
21032 Also, you must provide function prototypes for all functions that
21033 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
21034 otherwise incorrect code is generated for calls to those
21035 functions.
21036 .Sp
21037 In addition, seriously incorrect code results if you call a
21038 function with too many arguments.  (Normally, extra arguments are
21039 harmlessly ignored.)
21040 .IP "\fB\-mregparm=\fR\fInum\fR" 4
21041 .IX Item "-mregparm=num"
21042 Control how many registers are used to pass integer arguments.  By
21043 default, no registers are used to pass arguments, and at most 3
21044 registers can be used.  You can control this behavior for a specific
21045 function by using the function attribute \f(CW\*(C`regparm\*(C'\fR.
21046 .Sp
21047 \&\fBWarning:\fR if you use this switch, and
21048 \&\fInum\fR is nonzero, then you must build all modules with the same
21049 value, including any libraries.  This includes the system libraries and
21050 startup modules.
21051 .IP "\fB\-msseregparm\fR" 4
21052 .IX Item "-msseregparm"
21053 Use \s-1SSE\s0 register passing conventions for float and double arguments
21054 and return values.  You can control this behavior for a specific
21055 function by using the function attribute \f(CW\*(C`sseregparm\*(C'\fR.
21056 .Sp
21057 \&\fBWarning:\fR if you use this switch then you must build all
21058 modules with the same value, including any libraries.  This includes
21059 the system libraries and startup modules.
21060 .IP "\fB\-mvect8\-ret\-in\-mem\fR" 4
21061 .IX Item "-mvect8-ret-in-mem"
21062 Return 8\-byte vectors in memory instead of \s-1MMX\s0 registers.  This is the
21063 default on Solaris@tie{}8 and 9 and VxWorks to match the \s-1ABI\s0 of the Sun
21064 Studio compilers until version 12.  Later compiler versions (starting
21065 with Studio 12 Update@tie{}1) follow the \s-1ABI\s0 used by other x86 targets, which
21066 is the default on Solaris@tie{}10 and later.  \fIOnly\fR use this option if
21067 you need to remain compatible with existing code produced by those
21068 previous compiler versions or older versions of \s-1GCC\s0.
21069 .IP "\fB\-mpc32\fR" 4
21070 .IX Item "-mpc32"
21071 .PD 0
21072 .IP "\fB\-mpc64\fR" 4
21073 .IX Item "-mpc64"
21074 .IP "\fB\-mpc80\fR" 4
21075 .IX Item "-mpc80"
21076 .PD
21077 Set 80387 floating-point precision to 32, 64 or 80 bits.  When \fB\-mpc32\fR
21078 is specified, the significands of results of floating-point operations are
21079 rounded to 24 bits (single precision); \fB\-mpc64\fR rounds the
21080 significands of results of floating-point operations to 53 bits (double
21081 precision) and \fB\-mpc80\fR rounds the significands of results of
21082 floating-point operations to 64 bits (extended double precision), which is
21083 the default.  When this option is used, floating-point operations in higher
21084 precisions are not available to the programmer without setting the \s-1FPU\s0
21085 control word explicitly.
21086 .Sp
21087 Setting the rounding of floating-point operations to less than the default
21088 80 bits can speed some programs by 2% or more.  Note that some mathematical
21089 libraries assume that extended-precision (80\-bit) floating-point operations
21090 are enabled by default; routines in such libraries could suffer significant
21091 loss of accuracy, typically through so-called \*(L"catastrophic cancellation\*(R",
21092 when this option is used to set the precision to less than extended precision.
21093 .IP "\fB\-mstackrealign\fR" 4
21094 .IX Item "-mstackrealign"
21095 Realign the stack at entry.  On the x86, the \fB\-mstackrealign\fR
21096 option generates an alternate prologue and epilogue that realigns the
21097 run-time stack if necessary.  This supports mixing legacy codes that keep
21098 4\-byte stack alignment with modern codes that keep 16\-byte stack alignment for
21099 \&\s-1SSE\s0 compatibility.  See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
21100 applicable to individual functions.
21101 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
21102 .IX Item "-mpreferred-stack-boundary=num"
21103 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
21104 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
21105 the default is 4 (16 bytes or 128 bits).
21106 .Sp
21107 \&\fBWarning:\fR When generating code for the x86\-64 architecture with
21108 \&\s-1SSE\s0 extensions disabled, \fB\-mpreferred\-stack\-boundary=3\fR can be
21109 used to keep the stack boundary aligned to 8 byte boundary.  Since
21110 x86\-64 \s-1ABI\s0 require 16 byte stack alignment, this is \s-1ABI\s0 incompatible and
21111 intended to be used in controlled environment where stack space is
21112 important limitation.  This option leads to wrong code when functions
21113 compiled with 16 byte stack alignment (such as functions from a standard
21114 library) are called with misaligned stack.  In this case, \s-1SSE\s0
21115 instructions may lead to misaligned memory access traps.  In addition,
21116 variable arguments are handled incorrectly for 16 byte aligned
21117 objects (including x87 long double and _\|_int128), leading to wrong
21118 results.  You must build all modules with
21119 \&\fB\-mpreferred\-stack\-boundary=3\fR, including any libraries.  This
21120 includes the system libraries and startup modules.
21121 .IP "\fB\-mincoming\-stack\-boundary=\fR\fInum\fR" 4
21122 .IX Item "-mincoming-stack-boundary=num"
21123 Assume the incoming stack is aligned to a 2 raised to \fInum\fR byte
21124 boundary.  If \fB\-mincoming\-stack\-boundary\fR is not specified,
21125 the one specified by \fB\-mpreferred\-stack\-boundary\fR is used.
21126 .Sp
21127 On Pentium and Pentium Pro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
21128 should be aligned to an 8\-byte boundary (see \fB\-malign\-double\fR) or
21129 suffer significant run time performance penalties.  On Pentium \s-1III\s0, the
21130 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR may not work
21131 properly if it is not 16\-byte aligned.
21132 .Sp
21133 To ensure proper alignment of this values on the stack, the stack boundary
21134 must be as aligned as that required by any value stored on the stack.
21135 Further, every function must be generated such that it keeps the stack
21136 aligned.  Thus calling a function compiled with a higher preferred
21137 stack boundary from a function compiled with a lower preferred stack
21138 boundary most likely misaligns the stack.  It is recommended that
21139 libraries that use callbacks always use the default setting.
21140 .Sp
21141 This extra alignment does consume extra stack space, and generally
21142 increases code size.  Code that is sensitive to stack space usage, such
21143 as embedded systems and operating system kernels, may want to reduce the
21144 preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
21145 .IP "\fB\-mmmx\fR" 4
21146 .IX Item "-mmmx"
21147 .PD 0
21148 .IP "\fB\-msse\fR" 4
21149 .IX Item "-msse"
21150 .IP "\fB\-msse2\fR" 4
21151 .IX Item "-msse2"
21152 .IP "\fB\-msse3\fR" 4
21153 .IX Item "-msse3"
21154 .IP "\fB\-mssse3\fR" 4
21155 .IX Item "-mssse3"
21156 .IP "\fB\-msse4\fR" 4
21157 .IX Item "-msse4"
21158 .IP "\fB\-msse4a\fR" 4
21159 .IX Item "-msse4a"
21160 .IP "\fB\-msse4.1\fR" 4
21161 .IX Item "-msse4.1"
21162 .IP "\fB\-msse4.2\fR" 4
21163 .IX Item "-msse4.2"
21164 .IP "\fB\-mavx\fR" 4
21165 .IX Item "-mavx"
21166 .IP "\fB\-mavx2\fR" 4
21167 .IX Item "-mavx2"
21168 .IP "\fB\-mavx512f\fR" 4
21169 .IX Item "-mavx512f"
21170 .IP "\fB\-mavx512pf\fR" 4
21171 .IX Item "-mavx512pf"
21172 .IP "\fB\-mavx512er\fR" 4
21173 .IX Item "-mavx512er"
21174 .IP "\fB\-mavx512cd\fR" 4
21175 .IX Item "-mavx512cd"
21176 .IP "\fB\-msha\fR" 4
21177 .IX Item "-msha"
21178 .IP "\fB\-maes\fR" 4
21179 .IX Item "-maes"
21180 .IP "\fB\-mpclmul\fR" 4
21181 .IX Item "-mpclmul"
21182 .IP "\fB\-mclfushopt\fR" 4
21183 .IX Item "-mclfushopt"
21184 .IP "\fB\-mfsgsbase\fR" 4
21185 .IX Item "-mfsgsbase"
21186 .IP "\fB\-mrdrnd\fR" 4
21187 .IX Item "-mrdrnd"
21188 .IP "\fB\-mf16c\fR" 4
21189 .IX Item "-mf16c"
21190 .IP "\fB\-mfma\fR" 4
21191 .IX Item "-mfma"
21192 .IP "\fB\-mfma4\fR" 4
21193 .IX Item "-mfma4"
21194 .IP "\fB\-mno\-fma4\fR" 4
21195 .IX Item "-mno-fma4"
21196 .IP "\fB\-mprefetchwt1\fR" 4
21197 .IX Item "-mprefetchwt1"
21198 .IP "\fB\-mxop\fR" 4
21199 .IX Item "-mxop"
21200 .IP "\fB\-mlwp\fR" 4
21201 .IX Item "-mlwp"
21202 .IP "\fB\-m3dnow\fR" 4
21203 .IX Item "-m3dnow"
21204 .IP "\fB\-mpopcnt\fR" 4
21205 .IX Item "-mpopcnt"
21206 .IP "\fB\-mabm\fR" 4
21207 .IX Item "-mabm"
21208 .IP "\fB\-mbmi\fR" 4
21209 .IX Item "-mbmi"
21210 .IP "\fB\-mbmi2\fR" 4
21211 .IX Item "-mbmi2"
21212 .IP "\fB\-mlzcnt\fR" 4
21213 .IX Item "-mlzcnt"
21214 .IP "\fB\-mfxsr\fR" 4
21215 .IX Item "-mfxsr"
21216 .IP "\fB\-mxsave\fR" 4
21217 .IX Item "-mxsave"
21218 .IP "\fB\-mxsaveopt\fR" 4
21219 .IX Item "-mxsaveopt"
21220 .IP "\fB\-mxsavec\fR" 4
21221 .IX Item "-mxsavec"
21222 .IP "\fB\-mxsaves\fR" 4
21223 .IX Item "-mxsaves"
21224 .IP "\fB\-mrtm\fR" 4
21225 .IX Item "-mrtm"
21226 .IP "\fB\-mtbm\fR" 4
21227 .IX Item "-mtbm"
21228 .IP "\fB\-mmpx\fR" 4
21229 .IX Item "-mmpx"
21230 .IP "\fB\-mmwaitx\fR" 4
21231 .IX Item "-mmwaitx"
21232 .PD
21233 These switches enable the use of instructions in the \s-1MMX\s0, \s-1SSE\s0,
21234 \&\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,
21235 \&\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,
21236 \&\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!
21237 extended instruction sets.  Each has a corresponding \fB\-mno\-\fR option
21238 to disable use of these instructions.
21239 .Sp
21240 These extensions are also available as built-in functions: see
21241 \&\fBx86 Built-in Functions\fR, for details of the functions enabled and
21242 disabled by these switches.
21243 .Sp
21244 To generate \s-1SSE/SSE2\s0 instructions automatically from floating-point
21245 code (as opposed to 387 instructions), see \fB\-mfpmath=sse\fR.
21246 .Sp
21247 \&\s-1GCC\s0 depresses SSEx instructions when \fB\-mavx\fR is used. Instead, it
21248 generates new \s-1AVX\s0 instructions or \s-1AVX\s0 equivalence for all SSEx instructions
21249 when needed.
21250 .Sp
21251 These options enable \s-1GCC\s0 to use these extended instructions in
21252 generated code, even without \fB\-mfpmath=sse\fR.  Applications that
21253 perform run-time \s-1CPU\s0 detection must compile separate files for each
21254 supported architecture, using the appropriate flags.  In particular,
21255 the file containing the \s-1CPU\s0 detection code should be compiled without
21256 these options.
21257 .IP "\fB\-mdump\-tune\-features\fR" 4
21258 .IX Item "-mdump-tune-features"
21259 This option instructs \s-1GCC\s0 to dump the names of the x86 performance 
21260 tuning features and default settings. The names can be used in 
21261 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR.
21262 .IP "\fB\-mtune\-ctrl=\fR\fIfeature-list\fR" 4
21263 .IX Item "-mtune-ctrl=feature-list"
21264 This option is used to do fine grain control of x86 code generation features.
21265 \&\fIfeature-list\fR is a comma separated list of \fIfeature\fR names. See also
21266 \&\fB\-mdump\-tune\-features\fR. When specified, the \fIfeature\fR is turned
21267 on if it is not preceded with \fB^\fR, otherwise, it is turned off. 
21268 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR is intended to be used by \s-1GCC\s0
21269 developers. Using it may lead to code paths not covered by testing and can
21270 potentially result in compiler ICEs or runtime errors.
21271 .IP "\fB\-mno\-default\fR" 4
21272 .IX Item "-mno-default"
21273 This option instructs \s-1GCC\s0 to turn off all tunable features. See also 
21274 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR and \fB\-mdump\-tune\-features\fR.
21275 .IP "\fB\-mcld\fR" 4
21276 .IX Item "-mcld"
21277 This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`cld\*(C'\fR instruction in the prologue
21278 of functions that use string instructions.  String instructions depend on
21279 the \s-1DF\s0 flag to select between autoincrement or autodecrement mode.  While the
21280 \&\s-1ABI\s0 specifies the \s-1DF\s0 flag to be cleared on function entry, some operating
21281 systems violate this specification by not clearing the \s-1DF\s0 flag in their
21282 exception dispatchers.  The exception handler can be invoked with the \s-1DF\s0 flag
21283 set, which leads to wrong direction mode when string instructions are used.
21284 This option can be enabled by default on 32\-bit x86 targets by configuring
21285 \&\s-1GCC\s0 with the \fB\-\-enable\-cld\fR configure option.  Generation of \f(CW\*(C`cld\*(C'\fR
21286 instructions can be suppressed with the \fB\-mno\-cld\fR compiler option
21287 in this case.
21288 .IP "\fB\-mvzeroupper\fR" 4
21289 .IX Item "-mvzeroupper"
21290 This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`vzeroupper\*(C'\fR instruction
21291 before a transfer of control flow out of the function to minimize
21292 the \s-1AVX\s0 to \s-1SSE\s0 transition penalty as well as remove unnecessary \f(CW\*(C`zeroupper\*(C'\fR
21293 intrinsics.
21294 .IP "\fB\-mprefer\-avx128\fR" 4
21295 .IX Item "-mprefer-avx128"
21296 This option instructs \s-1GCC\s0 to use 128\-bit \s-1AVX\s0 instructions instead of
21297 256\-bit \s-1AVX\s0 instructions in the auto-vectorizer.
21298 .IP "\fB\-mcx16\fR" 4
21299 .IX Item "-mcx16"
21300 This option enables \s-1GCC\s0 to generate \f(CW\*(C`CMPXCHG16B\*(C'\fR instructions.
21301 \&\f(CW\*(C`CMPXCHG16B\*(C'\fR allows for atomic operations on 128\-bit double quadword
21302 (or oword) data types.  
21303 This is useful for high-resolution counters that can be updated
21304 by multiple processors (or cores).  This instruction is generated as part of
21305 atomic built-in functions: see \fB_\|_sync Builtins\fR or
21306 \&\fB_\|_atomic Builtins\fR for details.
21307 .IP "\fB\-msahf\fR" 4
21308 .IX Item "-msahf"
21309 This option enables generation of \f(CW\*(C`SAHF\*(C'\fR instructions in 64\-bit code.
21310 Early Intel Pentium 4 CPUs with Intel 64 support,
21311 prior to the introduction of Pentium 4 G1 step in December 2005,
21312 lacked the \f(CW\*(C`LAHF\*(C'\fR and \f(CW\*(C`SAHF\*(C'\fR instructions
21313 which are supported by \s-1AMD64\s0.
21314 These are load and store instructions, respectively, for certain status flags.
21315 In 64\-bit mode, the \f(CW\*(C`SAHF\*(C'\fR instruction is used to optimize \f(CW\*(C`fmod\*(C'\fR,
21316 \&\f(CW\*(C`drem\*(C'\fR, and \f(CW\*(C`remainder\*(C'\fR built-in functions;
21317 see \fBOther Builtins\fR for details.
21318 .IP "\fB\-mmovbe\fR" 4
21319 .IX Item "-mmovbe"
21320 This option enables use of the \f(CW\*(C`movbe\*(C'\fR instruction to implement
21321 \&\f(CW\*(C`_\|_builtin_bswap32\*(C'\fR and \f(CW\*(C`_\|_builtin_bswap64\*(C'\fR.
21322 .IP "\fB\-mcrc32\fR" 4
21323 .IX Item "-mcrc32"
21324 This option enables built-in functions \f(CW\*(C`_\|_builtin_ia32_crc32qi\*(C'\fR,
21325 \&\f(CW\*(C`_\|_builtin_ia32_crc32hi\*(C'\fR, \f(CW\*(C`_\|_builtin_ia32_crc32si\*(C'\fR and
21326 \&\f(CW\*(C`_\|_builtin_ia32_crc32di\*(C'\fR to generate the \f(CW\*(C`crc32\*(C'\fR machine instruction.
21327 .IP "\fB\-mrecip\fR" 4
21328 .IX Item "-mrecip"
21329 This option enables use of \f(CW\*(C`RCPSS\*(C'\fR and \f(CW\*(C`RSQRTSS\*(C'\fR instructions
21330 (and their vectorized variants \f(CW\*(C`RCPPS\*(C'\fR and \f(CW\*(C`RSQRTPS\*(C'\fR)
21331 with an additional Newton-Raphson step
21332 to increase precision instead of \f(CW\*(C`DIVSS\*(C'\fR and \f(CW\*(C`SQRTSS\*(C'\fR
21333 (and their vectorized
21334 variants) for single-precision floating-point arguments.  These instructions
21335 are generated only when \fB\-funsafe\-math\-optimizations\fR is enabled
21336 together with \fB\-finite\-math\-only\fR and \fB\-fno\-trapping\-math\fR.
21337 Note that while the throughput of the sequence is higher than the throughput
21338 of the non-reciprocal instruction, the precision of the sequence can be
21339 decreased by up to 2 ulp (i.e. the inverse of 1.0 equals 0.99999994).
21340 .Sp
21341 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
21342 (or \f(CW\*(C`RSQRTPS\*(C'\fR) already with \fB\-ffast\-math\fR (or the above option
21343 combination), and doesn't need \fB\-mrecip\fR.
21344 .Sp
21345 Also note that \s-1GCC\s0 emits the above sequence with additional Newton-Raphson step
21346 for vectorized single-float division and vectorized \f(CW\*(C`sqrtf(\f(CIx\f(CW)\*(C'\fR
21347 already with \fB\-ffast\-math\fR (or the above option combination), and
21348 doesn't need \fB\-mrecip\fR.
21349 .IP "\fB\-mrecip=\fR\fIopt\fR" 4
21350 .IX Item "-mrecip=opt"
21351 This option controls which reciprocal estimate instructions
21352 may be used.  \fIopt\fR is a comma-separated list of options, which may
21353 be preceded by a \fB!\fR to invert the option:
21354 .RS 4
21355 .IP "\fBall\fR" 4
21356 .IX Item "all"
21357 Enable all estimate instructions.
21358 .IP "\fBdefault\fR" 4
21359 .IX Item "default"
21360 Enable the default instructions, equivalent to \fB\-mrecip\fR.
21361 .IP "\fBnone\fR" 4
21362 .IX Item "none"
21363 Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
21364 .IP "\fBdiv\fR" 4
21365 .IX Item "div"
21366 Enable the approximation for scalar division.
21367 .IP "\fBvec-div\fR" 4
21368 .IX Item "vec-div"
21369 Enable the approximation for vectorized division.
21370 .IP "\fBsqrt\fR" 4
21371 .IX Item "sqrt"
21372 Enable the approximation for scalar square root.
21373 .IP "\fBvec-sqrt\fR" 4
21374 .IX Item "vec-sqrt"
21375 Enable the approximation for vectorized square root.
21376 .RE
21377 .RS 4
21378 .Sp
21379 So, for example, \fB\-mrecip=all,!sqrt\fR enables
21380 all of the reciprocal approximations, except for square root.
21381 .RE
21382 .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
21383 .IX Item "-mveclibabi=type"
21384 Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
21385 external library.  Supported values for \fItype\fR are \fBsvml\fR 
21386 for the Intel short
21387 vector math library and \fBacml\fR for the \s-1AMD\s0 math core library.
21388 To use this option, both \fB\-ftree\-vectorize\fR and
21389 \&\fB\-funsafe\-math\-optimizations\fR have to be enabled, and an \s-1SVML\s0 or \s-1ACML\s0 
21390 ABI-compatible library must be specified at link time.
21391 .Sp
21392 \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`vmldExp2\*(C'\fR,
21393 \&\f(CW\*(C`vmldLn2\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldPow2\*(C'\fR,
21394 \&\f(CW\*(C`vmldTanh2\*(C'\fR, \f(CW\*(C`vmldTan2\*(C'\fR, \f(CW\*(C`vmldAtan2\*(C'\fR, \f(CW\*(C`vmldAtanh2\*(C'\fR,
21395 \&\f(CW\*(C`vmldCbrt2\*(C'\fR, \f(CW\*(C`vmldSinh2\*(C'\fR, \f(CW\*(C`vmldSin2\*(C'\fR, \f(CW\*(C`vmldAsinh2\*(C'\fR,
21396 \&\f(CW\*(C`vmldAsin2\*(C'\fR, \f(CW\*(C`vmldCosh2\*(C'\fR, \f(CW\*(C`vmldCos2\*(C'\fR, \f(CW\*(C`vmldAcosh2\*(C'\fR,
21397 \&\f(CW\*(C`vmldAcos2\*(C'\fR, \f(CW\*(C`vmlsExp4\*(C'\fR, \f(CW\*(C`vmlsLn4\*(C'\fR, \f(CW\*(C`vmlsLog104\*(C'\fR,
21398 \&\f(CW\*(C`vmlsLog104\*(C'\fR, \f(CW\*(C`vmlsPow4\*(C'\fR, \f(CW\*(C`vmlsTanh4\*(C'\fR, \f(CW\*(C`vmlsTan4\*(C'\fR,
21399 \&\f(CW\*(C`vmlsAtan4\*(C'\fR, \f(CW\*(C`vmlsAtanh4\*(C'\fR, \f(CW\*(C`vmlsCbrt4\*(C'\fR, \f(CW\*(C`vmlsSinh4\*(C'\fR,
21400 \&\f(CW\*(C`vmlsSin4\*(C'\fR, \f(CW\*(C`vmlsAsinh4\*(C'\fR, \f(CW\*(C`vmlsAsin4\*(C'\fR, \f(CW\*(C`vmlsCosh4\*(C'\fR,
21401 \&\f(CW\*(C`vmlsCos4\*(C'\fR, \f(CW\*(C`vmlsAcosh4\*(C'\fR and \f(CW\*(C`vmlsAcos4\*(C'\fR for corresponding
21402 function type when \fB\-mveclibabi=svml\fR is used, and \f(CW\*(C`_\|_vrd2_sin\*(C'\fR,
21403 \&\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,
21404 \&\f(CW\*(C`_\|_vrd2_log10\*(C'\fR, \f(CW\*(C`_\|_vrs4_sinf\*(C'\fR, \f(CW\*(C`_\|_vrs4_cosf\*(C'\fR,
21405 \&\f(CW\*(C`_\|_vrs4_expf\*(C'\fR, \f(CW\*(C`_\|_vrs4_logf\*(C'\fR, \f(CW\*(C`_\|_vrs4_log2f\*(C'\fR,
21406 \&\f(CW\*(C`_\|_vrs4_log10f\*(C'\fR and \f(CW\*(C`_\|_vrs4_powf\*(C'\fR for the corresponding function type
21407 when \fB\-mveclibabi=acml\fR is used.
21408 .IP "\fB\-mabi=\fR\fIname\fR" 4
21409 .IX Item "-mabi=name"
21410 Generate code for the specified calling convention.  Permissible values
21411 are \fBsysv\fR for the \s-1ABI\s0 used on GNU/Linux and other systems, and
21412 \&\fBms\fR for the Microsoft \s-1ABI\s0.  The default is to use the Microsoft
21413 \&\s-1ABI\s0 when targeting Microsoft Windows and the SysV \s-1ABI\s0 on all other systems.
21414 You can control this behavior for specific functions by
21415 using the function attributes \f(CW\*(C`ms_abi\*(C'\fR and \f(CW\*(C`sysv_abi\*(C'\fR.
21416 .IP "\fB\-mtls\-dialect=\fR\fItype\fR" 4
21417 .IX Item "-mtls-dialect=type"
21418 Generate code to access thread-local storage using the \fBgnu\fR or
21419 \&\fBgnu2\fR conventions.  \fBgnu\fR is the conservative default;
21420 \&\fBgnu2\fR is more efficient, but it may add compile\- and run-time
21421 requirements that cannot be satisfied on all systems.
21422 .IP "\fB\-mpush\-args\fR" 4
21423 .IX Item "-mpush-args"
21424 .PD 0
21425 .IP "\fB\-mno\-push\-args\fR" 4
21426 .IX Item "-mno-push-args"
21427 .PD
21428 Use \s-1PUSH\s0 operations to store outgoing parameters.  This method is shorter
21429 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
21430 by default.  In some cases disabling it may improve performance because of
21431 improved scheduling and reduced dependencies.
21432 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
21433 .IX Item "-maccumulate-outgoing-args"
21434 If enabled, the maximum amount of space required for outgoing arguments is
21435 computed in the function prologue.  This is faster on most modern CPUs
21436 because of reduced dependencies, improved scheduling and reduced stack usage
21437 when the preferred stack boundary is not equal to 2.  The drawback is a notable
21438 increase in code size.  This switch implies \fB\-mno\-push\-args\fR.
21439 .IP "\fB\-mthreads\fR" 4
21440 .IX Item "-mthreads"
21441 Support thread-safe exception handling on MinGW.  Programs that rely
21442 on thread-safe exception handling must compile and link all code with the
21443 \&\fB\-mthreads\fR option.  When compiling, \fB\-mthreads\fR defines
21444 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
21445 \&\fB\-lmingwthrd\fR which cleans up per-thread exception-handling data.
21446 .IP "\fB\-mno\-align\-stringops\fR" 4
21447 .IX Item "-mno-align-stringops"
21448 Do not align the destination of inlined string operations.  This switch reduces
21449 code size and improves performance in case the destination is already aligned,
21450 but \s-1GCC\s0 doesn't know about it.
21451 .IP "\fB\-minline\-all\-stringops\fR" 4
21452 .IX Item "-minline-all-stringops"
21453 By default \s-1GCC\s0 inlines string operations only when the destination is 
21454 known to be aligned to least a 4\-byte boundary.  
21455 This enables more inlining and increases code
21456 size, but may improve performance of code that depends on fast
21457 \&\f(CW\*(C`memcpy\*(C'\fR, \f(CW\*(C`strlen\*(C'\fR,
21458 and \f(CW\*(C`memset\*(C'\fR for short lengths.
21459 .IP "\fB\-minline\-stringops\-dynamically\fR" 4
21460 .IX Item "-minline-stringops-dynamically"
21461 For string operations of unknown size, use run-time checks with
21462 inline code for small blocks and a library call for large blocks.
21463 .IP "\fB\-mstringop\-strategy=\fR\fIalg\fR" 4
21464 .IX Item "-mstringop-strategy=alg"
21465 Override the internal decision heuristic for the particular algorithm to use
21466 for inlining string operations.  The allowed values for \fIalg\fR are:
21467 .RS 4
21468 .IP "\fBrep_byte\fR" 4
21469 .IX Item "rep_byte"
21470 .PD 0
21471 .IP "\fBrep_4byte\fR" 4
21472 .IX Item "rep_4byte"
21473 .IP "\fBrep_8byte\fR" 4
21474 .IX Item "rep_8byte"
21475 .PD
21476 Expand using i386 \f(CW\*(C`rep\*(C'\fR prefix of the specified size.
21477 .IP "\fBbyte_loop\fR" 4
21478 .IX Item "byte_loop"
21479 .PD 0
21480 .IP "\fBloop\fR" 4
21481 .IX Item "loop"
21482 .IP "\fBunrolled_loop\fR" 4
21483 .IX Item "unrolled_loop"
21484 .PD
21485 Expand into an inline loop.
21486 .IP "\fBlibcall\fR" 4
21487 .IX Item "libcall"
21488 Always use a library call.
21489 .RE
21490 .RS 4
21491 .RE
21492 .IP "\fB\-mmemcpy\-strategy=\fR\fIstrategy\fR" 4
21493 .IX Item "-mmemcpy-strategy=strategy"
21494 Override the internal decision heuristic to decide if \f(CW\*(C`_\|_builtin_memcpy\*(C'\fR
21495 should be inlined and what inline algorithm to use when the expected size
21496 of the copy operation is known. \fIstrategy\fR 
21497 is a comma-separated list of \fIalg\fR:\fImax_size\fR:\fIdest_align\fR triplets. 
21498 \&\fIalg\fR is specified in \fB\-mstringop\-strategy\fR, \fImax_size\fR specifies
21499 the max byte size with which inline algorithm \fIalg\fR is allowed.  For the last
21500 triplet, the \fImax_size\fR must be \f(CW\*(C`\-1\*(C'\fR. The \fImax_size\fR of the triplets
21501 in the list must be specified in increasing order.  The minimal byte size for 
21502 \&\fIalg\fR is \f(CW0\fR for the first triplet and \f(CW\*(C`\f(CImax_size\f(CW + 1\*(C'\fR of the 
21503 preceding range.
21504 .IP "\fB\-mmemset\-strategy=\fR\fIstrategy\fR" 4
21505 .IX Item "-mmemset-strategy=strategy"
21506 The option is similar to \fB\-mmemcpy\-strategy=\fR except that it is to control
21507 \&\f(CW\*(C`_\|_builtin_memset\*(C'\fR expansion.
21508 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
21509 .IX Item "-momit-leaf-frame-pointer"
21510 Don't keep the frame pointer in a register for leaf functions.  This
21511 avoids the instructions to save, set up, and restore frame pointers and
21512 makes an extra register available in leaf functions.  The option
21513 \&\fB\-fomit\-leaf\-frame\-pointer\fR removes the frame pointer for leaf functions,
21514 which might make debugging harder.
21515 .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
21516 .IX Item "-mtls-direct-seg-refs"
21517 .PD 0
21518 .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
21519 .IX Item "-mno-tls-direct-seg-refs"
21520 .PD
21521 Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
21522 \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
21523 or whether the thread base pointer must be added.  Whether or not this
21524 is valid depends on the operating system, and whether it maps the
21525 segment to cover the entire \s-1TLS\s0 area.
21526 .Sp
21527 For systems that use the \s-1GNU\s0 C Library, the default is on.
21528 .IP "\fB\-msse2avx\fR" 4
21529 .IX Item "-msse2avx"
21530 .PD 0
21531 .IP "\fB\-mno\-sse2avx\fR" 4
21532 .IX Item "-mno-sse2avx"
21533 .PD
21534 Specify that the assembler should encode \s-1SSE\s0 instructions with \s-1VEX\s0
21535 prefix.  The option \fB\-mavx\fR turns this on by default.
21536 .IP "\fB\-mfentry\fR" 4
21537 .IX Item "-mfentry"
21538 .PD 0
21539 .IP "\fB\-mno\-fentry\fR" 4
21540 .IX Item "-mno-fentry"
21541 .PD
21542 If profiling is active (\fB\-pg\fR), put the profiling
21543 counter call before the prologue.
21544 Note: On x86 architectures the attribute \f(CW\*(C`ms_hook_prologue\*(C'\fR
21545 isn't possible at the moment for \fB\-mfentry\fR and \fB\-pg\fR.
21546 .IP "\fB\-mrecord\-mcount\fR" 4
21547 .IX Item "-mrecord-mcount"
21548 .PD 0
21549 .IP "\fB\-mno\-record\-mcount\fR" 4
21550 .IX Item "-mno-record-mcount"
21551 .PD
21552 If profiling is active (\fB\-pg\fR), generate a _\|_mcount_loc section
21553 that contains pointers to each profiling call. This is useful for
21554 automatically patching and out calls.
21555 .IP "\fB\-mnop\-mcount\fR" 4
21556 .IX Item "-mnop-mcount"
21557 .PD 0
21558 .IP "\fB\-mno\-nop\-mcount\fR" 4
21559 .IX Item "-mno-nop-mcount"
21560 .PD
21561 If profiling is active (\fB\-pg\fR), generate the calls to
21562 the profiling functions as nops. This is useful when they
21563 should be patched in later dynamically. This is likely only
21564 useful together with \fB\-mrecord\-mcount\fR.
21565 .IP "\fB\-mskip\-rax\-setup\fR" 4
21566 .IX Item "-mskip-rax-setup"
21567 .PD 0
21568 .IP "\fB\-mno\-skip\-rax\-setup\fR" 4
21569 .IX Item "-mno-skip-rax-setup"
21570 .PD
21571 When generating code for the x86\-64 architecture with \s-1SSE\s0 extensions
21572 disabled, \fB\-skip\-rax\-setup\fR can be used to skip setting up \s-1RAX\s0
21573 register when there are no variable arguments passed in vector registers.
21574 .Sp
21575 \&\fBWarning:\fR Since \s-1RAX\s0 register is used to avoid unnecessarily
21576 saving vector registers on stack when passing variable arguments, the
21577 impacts of this option are callees may waste some stack space,
21578 misbehave or jump to a random location.  \s-1GCC\s0 4.4 or newer don't have
21579 those issues, regardless the \s-1RAX\s0 register value.
21580 .IP "\fB\-m8bit\-idiv\fR" 4
21581 .IX Item "-m8bit-idiv"
21582 .PD 0
21583 .IP "\fB\-mno\-8bit\-idiv\fR" 4
21584 .IX Item "-mno-8bit-idiv"
21585 .PD
21586 On some processors, like Intel Atom, 8\-bit unsigned integer divide is
21587 much faster than 32\-bit/64\-bit integer divide.  This option generates a
21588 run-time check.  If both dividend and divisor are within range of 0
21589 to 255, 8\-bit unsigned integer divide is used instead of
21590 32\-bit/64\-bit integer divide.
21591 .IP "\fB\-mavx256\-split\-unaligned\-load\fR" 4
21592 .IX Item "-mavx256-split-unaligned-load"
21593 .PD 0
21594 .IP "\fB\-mavx256\-split\-unaligned\-store\fR" 4
21595 .IX Item "-mavx256-split-unaligned-store"
21596 .PD
21597 Split 32\-byte \s-1AVX\s0 unaligned load and store.
21598 .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
21599 .IX Item "-mstack-protector-guard=guard"
21600 Generate stack protection code using canary at \fIguard\fR.  Supported
21601 locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
21602 canary in the \s-1TLS\s0 block (the default).  This option has effect only when
21603 \&\fB\-fstack\-protector\fR or \fB\-fstack\-protector\-all\fR is specified.
21604 .PP
21605 These \fB\-m\fR switches are supported in addition to the above
21606 on x86\-64 processors in 64\-bit environments.
21607 .IP "\fB\-m32\fR" 4
21608 .IX Item "-m32"
21609 .PD 0
21610 .IP "\fB\-m64\fR" 4
21611 .IX Item "-m64"
21612 .IP "\fB\-mx32\fR" 4
21613 .IX Item "-mx32"
21614 .IP "\fB\-m16\fR" 4
21615 .IX Item "-m16"
21616 .PD
21617 Generate code for a 16\-bit, 32\-bit or 64\-bit environment.
21618 The \fB\-m32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
21619 to 32 bits, and
21620 generates code that runs on any i386 system.
21621 .Sp
21622 The \fB\-m64\fR option sets \f(CW\*(C`int\*(C'\fR to 32 bits and \f(CW\*(C`long\*(C'\fR and pointer
21623 types to 64 bits, and generates code for the x86\-64 architecture.
21624 For Darwin only the \fB\-m64\fR option also turns off the \fB\-fno\-pic\fR
21625 and \fB\-mdynamic\-no\-pic\fR options.
21626 .Sp
21627 The \fB\-mx32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
21628 to 32 bits, and
21629 generates code for the x86\-64 architecture.
21630 .Sp
21631 The \fB\-m16\fR option is the same as \fB\-m32\fR, except for that
21632 it outputs the \f(CW\*(C`.code16gcc\*(C'\fR assembly directive at the beginning of
21633 the assembly output so that the binary can run in 16\-bit mode.
21634 .IP "\fB\-mno\-red\-zone\fR" 4
21635 .IX Item "-mno-red-zone"
21636 Do not use a so-called \*(L"red zone\*(R" for x86\-64 code.  The red zone is mandated
21637 by the x86\-64 \s-1ABI\s0; it is a 128\-byte area beyond the location of the
21638 stack pointer that is not modified by signal or interrupt handlers
21639 and therefore can be used for temporary data without adjusting the stack
21640 pointer.  The flag \fB\-mno\-red\-zone\fR disables this red zone.
21641 .IP "\fB\-mcmodel=small\fR" 4
21642 .IX Item "-mcmodel=small"
21643 Generate code for the small code model: the program and its symbols must
21644 be linked in the lower 2 \s-1GB\s0 of the address space.  Pointers are 64 bits.
21645 Programs can be statically or dynamically linked.  This is the default
21646 code model.
21647 .IP "\fB\-mcmodel=kernel\fR" 4
21648 .IX Item "-mcmodel=kernel"
21649 Generate code for the kernel code model.  The kernel runs in the
21650 negative 2 \s-1GB\s0 of the address space.
21651 This model has to be used for Linux kernel code.
21652 .IP "\fB\-mcmodel=medium\fR" 4
21653 .IX Item "-mcmodel=medium"
21654 Generate code for the medium model: the program is linked in the lower 2
21655 \&\s-1GB\s0 of the address space.  Small symbols are also placed there.  Symbols
21656 with sizes larger than \fB\-mlarge\-data\-threshold\fR are put into
21657 large data or \s-1BSS\s0 sections and can be located above 2GB.  Programs can
21658 be statically or dynamically linked.
21659 .IP "\fB\-mcmodel=large\fR" 4
21660 .IX Item "-mcmodel=large"
21661 Generate code for the large model.  This model makes no assumptions
21662 about addresses and sizes of sections.
21663 .IP "\fB\-maddress\-mode=long\fR" 4
21664 .IX Item "-maddress-mode=long"
21665 Generate code for long address mode.  This is only supported for 64\-bit
21666 and x32 environments.  It is the default address mode for 64\-bit
21667 environments.
21668 .IP "\fB\-maddress\-mode=short\fR" 4
21669 .IX Item "-maddress-mode=short"
21670 Generate code for short address mode.  This is only supported for 32\-bit
21671 and x32 environments.  It is the default address mode for 32\-bit and
21672 x32 environments.
21673 .PP
21674 \fIx86 Windows Options\fR
21675 .IX Subsection "x86 Windows Options"
21676 .PP
21677 These additional options are available for Microsoft Windows targets:
21678 .IP "\fB\-mconsole\fR" 4
21679 .IX Item "-mconsole"
21680 This option
21681 specifies that a console application is to be generated, by
21682 instructing the linker to set the \s-1PE\s0 header subsystem type
21683 required for console applications.
21684 This option is available for Cygwin and MinGW targets and is
21685 enabled by default on those targets.
21686 .IP "\fB\-mdll\fR" 4
21687 .IX Item "-mdll"
21688 This option is available for Cygwin and MinGW targets.  It
21689 specifies that a DLL\-\-\-a dynamic link library\-\-\-is to be
21690 generated, enabling the selection of the required runtime
21691 startup object and entry point.
21692 .IP "\fB\-mnop\-fun\-dllimport\fR" 4
21693 .IX Item "-mnop-fun-dllimport"
21694 This option is available for Cygwin and MinGW targets.  It
21695 specifies that the \f(CW\*(C`dllimport\*(C'\fR attribute should be ignored.
21696 .IP "\fB\-mthread\fR" 4
21697 .IX Item "-mthread"
21698 This option is available for MinGW targets. It specifies
21699 that MinGW-specific thread support is to be used.
21700 .IP "\fB\-municode\fR" 4
21701 .IX Item "-municode"
21702 This option is available for MinGW\-w64 targets.  It causes
21703 the \f(CW\*(C`UNICODE\*(C'\fR preprocessor macro to be predefined, and
21704 chooses Unicode-capable runtime startup code.
21705 .IP "\fB\-mwin32\fR" 4
21706 .IX Item "-mwin32"
21707 This option is available for Cygwin and MinGW targets.  It
21708 specifies that the typical Microsoft Windows predefined macros are to
21709 be set in the pre-processor, but does not influence the choice
21710 of runtime library/startup code.
21711 .IP "\fB\-mwindows\fR" 4
21712 .IX Item "-mwindows"
21713 This option is available for Cygwin and MinGW targets.  It
21714 specifies that a \s-1GUI\s0 application is to be generated by
21715 instructing the linker to set the \s-1PE\s0 header subsystem type
21716 appropriately.
21717 .IP "\fB\-fno\-set\-stack\-executable\fR" 4
21718 .IX Item "-fno-set-stack-executable"
21719 This option is available for MinGW targets. It specifies that
21720 the executable flag for the stack used by nested functions isn't
21721 set. This is necessary for binaries running in kernel mode of
21722 Microsoft Windows, as there the User32 \s-1API\s0, which is used to set executable
21723 privileges, isn't available.
21724 .IP "\fB\-fwritable\-relocated\-rdata\fR" 4
21725 .IX Item "-fwritable-relocated-rdata"
21726 This option is available for MinGW and Cygwin targets.  It specifies
21727 that relocated-data in read-only section is put into .data
21728 section.  This is a necessary for older runtimes not supporting
21729 modification of .rdata sections for pseudo-relocation.
21730 .IP "\fB\-mpe\-aligned\-commons\fR" 4
21731 .IX Item "-mpe-aligned-commons"
21732 This option is available for Cygwin and MinGW targets.  It
21733 specifies that the \s-1GNU\s0 extension to the \s-1PE\s0 file format that
21734 permits the correct alignment of \s-1COMMON\s0 variables should be
21735 used when generating code.  It is enabled by default if
21736 \&\s-1GCC\s0 detects that the target assembler found during configuration
21737 supports the feature.
21738 .PP
21739 See also under \fBx86 Options\fR for standard options.
21740 .PP
21741 \fIXstormy16 Options\fR
21742 .IX Subsection "Xstormy16 Options"
21743 .PP
21744 These options are defined for Xstormy16:
21745 .IP "\fB\-msim\fR" 4
21746 .IX Item "-msim"
21747 Choose startup files and linker script suitable for the simulator.
21748 .PP
21749 \fIXtensa Options\fR
21750 .IX Subsection "Xtensa Options"
21751 .PP
21752 These options are supported for Xtensa targets:
21753 .IP "\fB\-mconst16\fR" 4
21754 .IX Item "-mconst16"
21755 .PD 0
21756 .IP "\fB\-mno\-const16\fR" 4
21757 .IX Item "-mno-const16"
21758 .PD
21759 Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
21760 constant values.  The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
21761 standard option from Tensilica.  When enabled, \f(CW\*(C`CONST16\*(C'\fR
21762 instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
21763 instructions.  The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
21764 the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
21765 .IP "\fB\-mfused\-madd\fR" 4
21766 .IX Item "-mfused-madd"
21767 .PD 0
21768 .IP "\fB\-mno\-fused\-madd\fR" 4
21769 .IX Item "-mno-fused-madd"
21770 .PD
21771 Enable or disable use of fused multiply/add and multiply/subtract
21772 instructions in the floating-point option.  This has no effect if the
21773 floating-point option is not also enabled.  Disabling fused multiply/add
21774 and multiply/subtract instructions forces the compiler to use separate
21775 instructions for the multiply and add/subtract operations.  This may be
21776 desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
21777 required: the fused multiply add/subtract instructions do not round the
21778 intermediate result, thereby producing results with \fImore\fR bits of
21779 precision than specified by the \s-1IEEE\s0 standard.  Disabling fused multiply
21780 add/subtract instructions also ensures that the program output is not
21781 sensitive to the compiler's ability to combine multiply and add/subtract
21782 operations.
21783 .IP "\fB\-mserialize\-volatile\fR" 4
21784 .IX Item "-mserialize-volatile"
21785 .PD 0
21786 .IP "\fB\-mno\-serialize\-volatile\fR" 4
21787 .IX Item "-mno-serialize-volatile"
21788 .PD
21789 When this option is enabled, \s-1GCC\s0 inserts \f(CW\*(C`MEMW\*(C'\fR instructions before
21790 \&\f(CW\*(C`volatile\*(C'\fR memory references to guarantee sequential consistency.
21791 The default is \fB\-mserialize\-volatile\fR.  Use
21792 \&\fB\-mno\-serialize\-volatile\fR to omit the \f(CW\*(C`MEMW\*(C'\fR instructions.
21793 .IP "\fB\-mforce\-no\-pic\fR" 4
21794 .IX Item "-mforce-no-pic"
21795 For targets, like GNU/Linux, where all user-mode Xtensa code must be
21796 position-independent code (\s-1PIC\s0), this option disables \s-1PIC\s0 for compiling
21797 kernel code.
21798 .IP "\fB\-mtext\-section\-literals\fR" 4
21799 .IX Item "-mtext-section-literals"
21800 .PD 0
21801 .IP "\fB\-mno\-text\-section\-literals\fR" 4
21802 .IX Item "-mno-text-section-literals"
21803 .PD
21804 These options control the treatment of literal pools.  The default is
21805 \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
21806 section in the output file.  This allows the literal pool to be placed
21807 in a data \s-1RAM/ROM\s0, and it also allows the linker to combine literal
21808 pools from separate object files to remove redundant literals and
21809 improve code size.  With \fB\-mtext\-section\-literals\fR, the literals
21810 are interspersed in the text section in order to keep them as close as
21811 possible to their references.  This may be necessary for large assembly
21812 files.
21813 .IP "\fB\-mtarget\-align\fR" 4
21814 .IX Item "-mtarget-align"
21815 .PD 0
21816 .IP "\fB\-mno\-target\-align\fR" 4
21817 .IX Item "-mno-target-align"
21818 .PD
21819 When this option is enabled, \s-1GCC\s0 instructs the assembler to
21820 automatically align instructions to reduce branch penalties at the
21821 expense of some code density.  The assembler attempts to widen density
21822 instructions to align branch targets and the instructions following call
21823 instructions.  If there are not enough preceding safe density
21824 instructions to align a target, no widening is performed.  The
21825 default is \fB\-mtarget\-align\fR.  These options do not affect the
21826 treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
21827 assembler always aligns, either by widening density instructions or
21828 by inserting \s-1NOP\s0 instructions.
21829 .IP "\fB\-mlongcalls\fR" 4
21830 .IX Item "-mlongcalls"
21831 .PD 0
21832 .IP "\fB\-mno\-longcalls\fR" 4
21833 .IX Item "-mno-longcalls"
21834 .PD
21835 When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
21836 direct calls to indirect calls unless it can determine that the target
21837 of a direct call is in the range allowed by the call instruction.  This
21838 translation typically occurs for calls to functions in other source
21839 files.  Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
21840 instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
21841 The default is \fB\-mno\-longcalls\fR.  This option should be used in
21842 programs where the call target can potentially be out of range.  This
21843 option is implemented in the assembler, not the compiler, so the
21844 assembly code generated by \s-1GCC\s0 still shows direct call
21845 instructions\-\-\-look at the disassembled object code to see the actual
21846 instructions.  Note that the assembler uses an indirect call for
21847 every cross-file call, not just those that really are out of range.
21848 .PP
21849 \fIzSeries Options\fR
21850 .IX Subsection "zSeries Options"
21851 .PP
21852 These are listed under
21853 .Sh "Options for Code Generation Conventions"
21854 .IX Subsection "Options for Code Generation Conventions"
21855 These machine-independent options control the interface conventions
21856 used in code generation.
21857 .PP
21858 Most of them have both positive and negative forms; the negative form
21859 of \fB\-ffoo\fR is \fB\-fno\-foo\fR.  In the table below, only
21860 one of the forms is listed\-\-\-the one that is not the default.  You
21861 can figure out the other form by either removing \fBno\-\fR or adding
21862 it.
21863 .IP "\fB\-fbounds\-check\fR" 4
21864 .IX Item "-fbounds-check"
21865 For front ends that support it, generate additional code to check that
21866 indices used to access arrays are within the declared range.  This is
21867 currently only supported by the Java and Fortran front ends, where
21868 this option defaults to true and false respectively.
21869 .IP "\fB\-fstack\-reuse=\fR\fIreuse-level\fR" 4
21870 .IX Item "-fstack-reuse=reuse-level"
21871 This option controls stack space reuse for user declared local/auto variables
21872 and compiler generated temporaries.  \fIreuse_level\fR can be \fBall\fR,
21873 \&\fBnamed_vars\fR, or \fBnone\fR. \fBall\fR enables stack reuse for all
21874 local variables and temporaries, \fBnamed_vars\fR enables the reuse only for
21875 user defined local variables with names, and \fBnone\fR disables stack reuse
21876 completely. The default value is \fBall\fR. The option is needed when the
21877 program extends the lifetime of a scoped local variable or a compiler generated
21878 temporary beyond the end point defined by the language.  When a lifetime of
21879 a variable ends, and if the variable lives in memory, the optimizing compiler
21880 has the freedom to reuse its stack space with other temporaries or scoped
21881 local variables whose live range does not overlap with it. Legacy code extending
21882 local lifetime is likely to break with the stack reuse optimization.
21883 .Sp
21884 For example,
21885 .Sp
21886 .Vb 3
21887 \&           int *p;
21888 \&           {
21889 \&             int local1;
21890 \&        
21891 \&             p = &local1;
21892 \&             local1 = 10;
21893 \&             ....
21894 \&           }
21895 \&           {
21896 \&              int local2;
21897 \&              local2 = 20;
21898 \&              ...
21899 \&           }
21900 \&        
21901 \&           if (*p == 10)  // out of scope use of local1
21902 \&             {
21903 \&        
21904 \&             }
21905 .Ve
21906 .Sp
21907 Another example:
21908 .Sp
21909 .Vb 6
21910 \&           struct A
21911 \&           {
21912 \&               A(int k) : i(k), j(k) { }
21913 \&               int i;
21914 \&               int j;
21915 \&           };
21916 \&        
21917 \&           A *ap;
21918 \&        
21919 \&           void foo(const A& ar)
21920 \&           {
21921 \&              ap = &ar;
21922 \&           }
21923 \&        
21924 \&           void bar()
21925 \&           {
21926 \&              foo(A(10)); // temp object\*(Aqs lifetime ends when foo returns
21927 \&        
21928 \&              {
21929 \&                A a(20);
21930 \&                ....
21931 \&              }
21932 \&              ap\->i+= 10;  // ap references out of scope temp whose space
21933 \&                           // is reused with a. What is the value of ap\->i?
21934 \&           }
21935 .Ve
21936 .Sp
21937 The lifetime of a compiler generated temporary is well defined by the \*(C+
21938 standard. When a lifetime of a temporary ends, and if the temporary lives
21939 in memory, the optimizing compiler has the freedom to reuse its stack
21940 space with other temporaries or scoped local variables whose live range
21941 does not overlap with it. However some of the legacy code relies on
21942 the behavior of older compilers in which temporaries' stack space is
21943 not reused, the aggressive stack reuse can lead to runtime errors. This
21944 option is used to control the temporary stack reuse optimization.
21945 .IP "\fB\-ftrapv\fR" 4
21946 .IX Item "-ftrapv"
21947 This option generates traps for signed overflow on addition, subtraction,
21948 multiplication operations.
21949 .IP "\fB\-fwrapv\fR" 4
21950 .IX Item "-fwrapv"
21951 This option instructs the compiler to assume that signed arithmetic
21952 overflow of addition, subtraction and multiplication wraps around
21953 using twos-complement representation.  This flag enables some optimizations
21954 and disables others.  This option is enabled by default for the Java
21955 front end, as required by the Java language specification.
21956 .IP "\fB\-fexceptions\fR" 4
21957 .IX Item "-fexceptions"
21958 Enable exception handling.  Generates extra code needed to propagate
21959 exceptions.  For some targets, this implies \s-1GCC\s0 generates frame
21960 unwind information for all functions, which can produce significant data
21961 size overhead, although it does not affect execution.  If you do not
21962 specify this option, \s-1GCC\s0 enables it by default for languages like
21963 \&\*(C+ that normally require exception handling, and disables it for
21964 languages like C that do not normally require it.  However, you may need
21965 to enable this option when compiling C code that needs to interoperate
21966 properly with exception handlers written in \*(C+.  You may also wish to
21967 disable this option if you are compiling older \*(C+ programs that don't
21968 use exception handling.
21969 .IP "\fB\-fnon\-call\-exceptions\fR" 4
21970 .IX Item "-fnon-call-exceptions"
21971 Generate code that allows trapping instructions to throw exceptions.
21972 Note that this requires platform-specific runtime support that does
21973 not exist everywhere.  Moreover, it only allows \fItrapping\fR
21974 instructions to throw exceptions, i.e. memory references or floating-point
21975 instructions.  It does not allow exceptions to be thrown from
21976 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
21977 .IP "\fB\-fdelete\-dead\-exceptions\fR" 4
21978 .IX Item "-fdelete-dead-exceptions"
21979 Consider that instructions that may throw exceptions but don't otherwise
21980 contribute to the execution of the program can be optimized away.
21981 This option is enabled by default for the Ada front end, as permitted by
21982 the Ada language specification.
21983 Optimization passes that cause dead exceptions to be removed are enabled independently at different optimization levels.
21984 .IP "\fB\-funwind\-tables\fR" 4
21985 .IX Item "-funwind-tables"
21986 Similar to \fB\-fexceptions\fR, except that it just generates any needed
21987 static data, but does not affect the generated code in any other way.
21988 You normally do not need to enable this option; instead, a language processor
21989 that needs this handling enables it on your behalf.
21990 .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
21991 .IX Item "-fasynchronous-unwind-tables"
21992 Generate unwind table in \s-1DWARF\s0 2 format, if supported by target machine.  The
21993 table is exact at each instruction boundary, so it can be used for stack
21994 unwinding from asynchronous events (such as debugger or garbage collector).
21995 .IP "\fB\-fno\-gnu\-unique\fR" 4
21996 .IX Item "-fno-gnu-unique"
21997 On systems with recent \s-1GNU\s0 assembler and C library, the \*(C+ compiler
21998 uses the \f(CW\*(C`STB_GNU_UNIQUE\*(C'\fR binding to make sure that definitions
21999 of template static data members and static local variables in inline
22000 functions are unique even in the presence of \f(CW\*(C`RTLD_LOCAL\*(C'\fR; this
22001 is necessary to avoid problems with a library used by two different
22002 \&\f(CW\*(C`RTLD_LOCAL\*(C'\fR plugins depending on a definition in one of them and
22003 therefore disagreeing with the other one about the binding of the
22004 symbol.  But this causes \f(CW\*(C`dlclose\*(C'\fR to be ignored for affected
22005 DSOs; if your program relies on reinitialization of a \s-1DSO\s0 via
22006 \&\f(CW\*(C`dlclose\*(C'\fR and \f(CW\*(C`dlopen\*(C'\fR, you can use
22007 \&\fB\-fno\-gnu\-unique\fR.
22008 .IP "\fB\-fpcc\-struct\-return\fR" 4
22009 .IX Item "-fpcc-struct-return"
22010 Return \*(L"short\*(R" \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
22011 longer ones, rather than in registers.  This convention is less
22012 efficient, but it has the advantage of allowing intercallability between
22013 GCC-compiled files and files compiled with other compilers, particularly
22014 the Portable C Compiler (pcc).
22015 .Sp
22016 The precise convention for returning structures in memory depends
22017 on the target configuration macros.
22018 .Sp
22019 Short structures and unions are those whose size and alignment match
22020 that of some integer type.
22021 .Sp
22022 \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
22023 switch is not binary compatible with code compiled with the
22024 \&\fB\-freg\-struct\-return\fR switch.
22025 Use it to conform to a non-default application binary interface.
22026 .IP "\fB\-freg\-struct\-return\fR" 4
22027 .IX Item "-freg-struct-return"
22028 Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
22029 This is more efficient for small structures than
22030 \&\fB\-fpcc\-struct\-return\fR.
22031 .Sp
22032 If you specify neither \fB\-fpcc\-struct\-return\fR nor
22033 \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
22034 standard for the target.  If there is no standard convention, \s-1GCC\s0
22035 defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
22036 the principal compiler.  In those cases, we can choose the standard, and
22037 we chose the more efficient register return alternative.
22038 .Sp
22039 \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
22040 switch is not binary compatible with code compiled with the
22041 \&\fB\-fpcc\-struct\-return\fR switch.
22042 Use it to conform to a non-default application binary interface.
22043 .IP "\fB\-fshort\-enums\fR" 4
22044 .IX Item "-fshort-enums"
22045 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
22046 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
22047 is equivalent to the smallest integer type that has enough room.
22048 .Sp
22049 \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
22050 code that is not binary compatible with code generated without that switch.
22051 Use it to conform to a non-default application binary interface.
22052 .IP "\fB\-fshort\-double\fR" 4
22053 .IX Item "-fshort-double"
22054 Use the same size for \f(CW\*(C`double\*(C'\fR as for \f(CW\*(C`float\*(C'\fR.
22055 .Sp
22056 \&\fBWarning:\fR the \fB\-fshort\-double\fR switch causes \s-1GCC\s0 to generate
22057 code that is not binary compatible with code generated without that switch.
22058 Use it to conform to a non-default application binary interface.
22059 .IP "\fB\-fshort\-wchar\fR" 4
22060 .IX Item "-fshort-wchar"
22061 Override the underlying type for \f(CW\*(C`wchar_t\*(C'\fR to be \f(CW\*(C`short
22062 unsigned int\*(C'\fR instead of the default for the target.  This option is
22063 useful for building programs to run under \s-1WINE\s0.
22064 .Sp
22065 \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
22066 code that is not binary compatible with code generated without that switch.
22067 Use it to conform to a non-default application binary interface.
22068 .IP "\fB\-fno\-common\fR" 4
22069 .IX Item "-fno-common"
22070 In C code, controls the placement of uninitialized global variables.
22071 Unix C compilers have traditionally permitted multiple definitions of
22072 such variables in different compilation units by placing the variables
22073 in a common block.
22074 This is the behavior specified by \fB\-fcommon\fR, and is the default
22075 for \s-1GCC\s0 on most targets.
22076 On the other hand, this behavior is not required by \s-1ISO\s0 C, and on some
22077 targets may carry a speed or code size penalty on variable references.
22078 The \fB\-fno\-common\fR option specifies that the compiler should place
22079 uninitialized global variables in the data section of the object file,
22080 rather than generating them as common blocks.
22081 This has the effect that if the same variable is declared
22082 (without \f(CW\*(C`extern\*(C'\fR) in two different compilations,
22083 you get a multiple-definition error when you link them.
22084 In this case, you must compile with \fB\-fcommon\fR instead.
22085 Compiling with \fB\-fno\-common\fR is useful on targets for which
22086 it provides better performance, or if you wish to verify that the
22087 program will work on other systems that always treat uninitialized
22088 variable declarations this way.
22089 .IP "\fB\-fno\-ident\fR" 4
22090 .IX Item "-fno-ident"
22091 Ignore the \f(CW\*(C`#ident\*(C'\fR directive.
22092 .IP "\fB\-finhibit\-size\-directive\fR" 4
22093 .IX Item "-finhibit-size-directive"
22094 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
22095 would cause trouble if the function is split in the middle, and the
22096 two halves are placed at locations far apart in memory.  This option is
22097 used when compiling \fIcrtstuff.c\fR; you should not need to use it
22098 for anything else.
22099 .IP "\fB\-fverbose\-asm\fR" 4
22100 .IX Item "-fverbose-asm"
22101 Put extra commentary information in the generated assembly code to
22102 make it more readable.  This option is generally only of use to those
22103 who actually need to read the generated assembly code (perhaps while
22104 debugging the compiler itself).
22105 .Sp
22106 \&\fB\-fno\-verbose\-asm\fR, the default, causes the
22107 extra information to be omitted and is useful when comparing two assembler
22108 files.
22109 .IP "\fB\-frecord\-gcc\-switches\fR" 4
22110 .IX Item "-frecord-gcc-switches"
22111 This switch causes the command line used to invoke the
22112 compiler to be recorded into the object file that is being created.
22113 This switch is only implemented on some targets and the exact format
22114 of the recording is target and binary file format dependent, but it
22115 usually takes the form of a section containing \s-1ASCII\s0 text.  This
22116 switch is related to the \fB\-fverbose\-asm\fR switch, but that
22117 switch only records information in the assembler output file as
22118 comments, so it never reaches the object file.
22119 See also \fB\-grecord\-gcc\-switches\fR for another
22120 way of storing compiler options into the object file.
22121 .IP "\fB\-fpic\fR" 4
22122 .IX Item "-fpic"
22123 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
22124 library, if supported for the target machine.  Such code accesses all
22125 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
22126 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
22127 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
22128 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
22129 maximum size, you get an error message from the linker indicating that
22130 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
22131 instead.  (These maximums are 8k on the \s-1SPARC\s0 and 32k
22132 on the m68k and \s-1RS/6000\s0.  The x86 has no such limit.)
22133 .Sp
22134 Position-independent code requires special support, and therefore works
22135 only on certain machines.  For the x86, \s-1GCC\s0 supports \s-1PIC\s0 for System V
22136 but not for the Sun 386i.  Code generated for the \s-1IBM\s0 \s-1RS/6000\s0 is always
22137 position-independent.
22138 .Sp
22139 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
22140 are defined to 1.
22141 .IP "\fB\-fPIC\fR" 4
22142 .IX Item "-fPIC"
22143 If supported for the target machine, emit position-independent code,
22144 suitable for dynamic linking and avoiding any limit on the size of the
22145 global offset table.  This option makes a difference on the m68k,
22146 PowerPC and \s-1SPARC\s0.
22147 .Sp
22148 Position-independent code requires special support, and therefore works
22149 only on certain machines.
22150 .Sp
22151 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
22152 are defined to 2.
22153 .IP "\fB\-fpie\fR" 4
22154 .IX Item "-fpie"
22155 .PD 0
22156 .IP "\fB\-fPIE\fR" 4
22157 .IX Item "-fPIE"
22158 .PD
22159 These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
22160 generated position independent code can be only linked into executables.
22161 Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option is
22162 used during linking.
22163 .Sp
22164 \&\fB\-fpie\fR and \fB\-fPIE\fR both define the macros
22165 \&\f(CW\*(C`_\|_pie_\|_\*(C'\fR and \f(CW\*(C`_\|_PIE_\|_\*(C'\fR.  The macros have the value 1
22166 for \fB\-fpie\fR and 2 for \fB\-fPIE\fR.
22167 .IP "\fB\-fno\-jump\-tables\fR" 4
22168 .IX Item "-fno-jump-tables"
22169 Do not use jump tables for switch statements even where it would be
22170 more efficient than other code generation strategies.  This option is
22171 of use in conjunction with \fB\-fpic\fR or \fB\-fPIC\fR for
22172 building code that forms part of a dynamic linker and cannot
22173 reference the address of a jump table.  On some targets, jump tables
22174 do not require a \s-1GOT\s0 and this option is not needed.
22175 .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
22176 .IX Item "-ffixed-reg"
22177 Treat the register named \fIreg\fR as a fixed register; generated code
22178 should never refer to it (except perhaps as a stack pointer, frame
22179 pointer or in some other fixed role).
22180 .Sp
22181 \&\fIreg\fR must be the name of a register.  The register names accepted
22182 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
22183 macro in the machine description macro file.
22184 .Sp
22185 This flag does not have a negative form, because it specifies a
22186 three-way choice.
22187 .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
22188 .IX Item "-fcall-used-reg"
22189 Treat the register named \fIreg\fR as an allocable register that is
22190 clobbered by function calls.  It may be allocated for temporaries or
22191 variables that do not live across a call.  Functions compiled this way
22192 do not save and restore the register \fIreg\fR.
22193 .Sp
22194 It is an error to use this flag with the frame pointer or stack pointer.
22195 Use of this flag for other registers that have fixed pervasive roles in
22196 the machine's execution model produces disastrous results.
22197 .Sp
22198 This flag does not have a negative form, because it specifies a
22199 three-way choice.
22200 .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
22201 .IX Item "-fcall-saved-reg"
22202 Treat the register named \fIreg\fR as an allocable register saved by
22203 functions.  It may be allocated even for temporaries or variables that
22204 live across a call.  Functions compiled this way save and restore
22205 the register \fIreg\fR if they use it.
22206 .Sp
22207 It is an error to use this flag with the frame pointer or stack pointer.
22208 Use of this flag for other registers that have fixed pervasive roles in
22209 the machine's execution model produces disastrous results.
22210 .Sp
22211 A different sort of disaster results from the use of this flag for
22212 a register in which function values may be returned.
22213 .Sp
22214 This flag does not have a negative form, because it specifies a
22215 three-way choice.
22216 .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
22217 .IX Item "-fpack-struct[=n]"
22218 Without a value specified, pack all structure members together without
22219 holes.  When a value is specified (which must be a small power of two), pack
22220 structure members according to this value, representing the maximum
22221 alignment (that is, objects with default alignment requirements larger than
22222 this are output potentially unaligned at the next fitting location.
22223 .Sp
22224 \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
22225 code that is not binary compatible with code generated without that switch.
22226 Additionally, it makes the code suboptimal.
22227 Use it to conform to a non-default application binary interface.
22228 .IP "\fB\-finstrument\-functions\fR" 4
22229 .IX Item "-finstrument-functions"
22230 Generate instrumentation calls for entry and exit to functions.  Just
22231 after function entry and just before function exit, the following
22232 profiling functions are called with the address of the current
22233 function and its call site.  (On some platforms,
22234 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
22235 function, so the call site information may not be available to the
22236 profiling functions otherwise.)
22237 .Sp
22238 .Vb 4
22239 \&        void _\|_cyg_profile_func_enter (void *this_fn,
22240 \&                                       void *call_site);
22241 \&        void _\|_cyg_profile_func_exit  (void *this_fn,
22242 \&                                       void *call_site);
22243 .Ve
22244 .Sp
22245 The first argument is the address of the start of the current function,
22246 which may be looked up exactly in the symbol table.
22247 .Sp
22248 This instrumentation is also done for functions expanded inline in other
22249 functions.  The profiling calls indicate where, conceptually, the
22250 inline function is entered and exited.  This means that addressable
22251 versions of such functions must be available.  If all your uses of a
22252 function are expanded inline, this may mean an additional expansion of
22253 code size.  If you use \f(CW\*(C`extern inline\*(C'\fR in your C code, an
22254 addressable version of such functions must be provided.  (This is
22255 normally the case anyway, but if you get lucky and the optimizer always
22256 expands the functions inline, you might have gotten away without
22257 providing static copies.)
22258 .Sp
22259 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
22260 which case this instrumentation is not done.  This can be used, for
22261 example, for the profiling functions listed above, high-priority
22262 interrupt routines, and any functions from which the profiling functions
22263 cannot safely be called (perhaps signal handlers, if the profiling
22264 routines generate output or allocate memory).
22265 .IP "\fB\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR" 4
22266 .IX Item "-finstrument-functions-exclude-file-list=file,file,..."
22267 Set the list of functions that are excluded from instrumentation (see
22268 the description of \fB\-finstrument\-functions\fR).  If the file that
22269 contains a function definition matches with one of \fIfile\fR, then
22270 that function is not instrumented.  The match is done on substrings:
22271 if the \fIfile\fR parameter is a substring of the file name, it is
22272 considered to be a match.
22273 .Sp
22274 For example:
22275 .Sp
22276 .Vb 1
22277 \&        \-finstrument\-functions\-exclude\-file\-list=/bits/stl,include/sys
22278 .Ve
22279 .Sp
22280 excludes any inline function defined in files whose pathnames
22281 contain \fI/bits/stl\fR or \fIinclude/sys\fR.
22282 .Sp
22283 If, for some reason, you want to include letter \fB,\fR in one of
22284 \&\fIsym\fR, write \fB,\fR. For example,
22285 \&\fB\-finstrument\-functions\-exclude\-file\-list=',,tmp'\fR
22286 (note the single quote surrounding the option).
22287 .IP "\fB\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,...\fR" 4
22288 .IX Item "-finstrument-functions-exclude-function-list=sym,sym,..."
22289 This is similar to \fB\-finstrument\-functions\-exclude\-file\-list\fR,
22290 but this option sets the list of function names to be excluded from
22291 instrumentation.  The function name to be matched is its user-visible
22292 name, such as \f(CW\*(C`vector<int> blah(const vector<int> &)\*(C'\fR, not the
22293 internal mangled name (e.g., \f(CW\*(C`_Z4blahRSt6vectorIiSaIiEE\*(C'\fR).  The
22294 match is done on substrings: if the \fIsym\fR parameter is a substring
22295 of the function name, it is considered to be a match.  For C99 and \*(C+
22296 extended identifiers, the function name must be given in \s-1UTF\-8\s0, not
22297 using universal character names.
22298 .IP "\fB\-fstack\-check\fR" 4
22299 .IX Item "-fstack-check"
22300 Generate code to verify that you do not go beyond the boundary of the
22301 stack.  You should specify this flag if you are running in an
22302 environment with multiple threads, but you only rarely need to specify it in
22303 a single-threaded environment since stack overflow is automatically
22304 detected on nearly all systems if there is only one stack.
22305 .Sp
22306 Note that this switch does not actually cause checking to be done; the
22307 operating system or the language runtime must do that.  The switch causes
22308 generation of code to ensure that they see the stack being extended.
22309 .Sp
22310 You can additionally specify a string parameter: \fBno\fR means no
22311 checking, \fBgeneric\fR means force the use of old-style checking,
22312 \&\fBspecific\fR means use the best checking method and is equivalent
22313 to bare \fB\-fstack\-check\fR.
22314 .Sp
22315 Old-style checking is a generic mechanism that requires no specific
22316 target support in the compiler but comes with the following drawbacks:
22317 .RS 4
22318 .IP "1." 4
22319 .IX Item "1."
22320 Modified allocation strategy for large objects: they are always
22321 allocated dynamically if their size exceeds a fixed threshold.
22322 .IP "2." 4
22323 .IX Item "2."
22324 Fixed limit on the size of the static frame of functions: when it is
22325 topped by a particular function, stack checking is not reliable and
22326 a warning is issued by the compiler.
22327 .IP "3." 4
22328 .IX Item "3."
22329 Inefficiency: because of both the modified allocation strategy and the
22330 generic implementation, code performance is hampered.
22331 .RE
22332 .RS 4
22333 .Sp
22334 Note that old-style stack checking is also the fallback method for
22335 \&\fBspecific\fR if no target support has been added in the compiler.
22336 .RE
22337 .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
22338 .IX Item "-fstack-limit-register=reg"
22339 .PD 0
22340 .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
22341 .IX Item "-fstack-limit-symbol=sym"
22342 .IP "\fB\-fno\-stack\-limit\fR" 4
22343 .IX Item "-fno-stack-limit"
22344 .PD
22345 Generate code to ensure that the stack does not grow beyond a certain value,
22346 either the value of a register or the address of a symbol.  If a larger
22347 stack is required, a signal is raised at run time.  For most targets,
22348 the signal is raised before the stack overruns the boundary, so
22349 it is possible to catch the signal without taking special precautions.
22350 .Sp
22351 For instance, if the stack starts at absolute address \fB0x80000000\fR
22352 and grows downwards, you can use the flags
22353 \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
22354 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
22355 of 128KB.  Note that this may only work with the \s-1GNU\s0 linker.
22356 .IP "\fB\-fsplit\-stack\fR" 4
22357 .IX Item "-fsplit-stack"
22358 Generate code to automatically split the stack before it overflows.
22359 The resulting program has a discontiguous stack which can only
22360 overflow if the program is unable to allocate any more memory.  This
22361 is most useful when running threaded programs, as it is no longer
22362 necessary to calculate a good stack size to use for each thread.  This
22363 is currently only implemented for the x86 targets running
22364 GNU/Linux.
22365 .Sp
22366 When code compiled with \fB\-fsplit\-stack\fR calls code compiled
22367 without \fB\-fsplit\-stack\fR, there may not be much stack space
22368 available for the latter code to run.  If compiling all code,
22369 including library code, with \fB\-fsplit\-stack\fR is not an option,
22370 then the linker can fix up these calls so that the code compiled
22371 without \fB\-fsplit\-stack\fR always has a large stack.  Support for
22372 this is implemented in the gold linker in \s-1GNU\s0 binutils release 2.21
22373 and later.
22374 .IP "\fB\-fleading\-underscore\fR" 4
22375 .IX Item "-fleading-underscore"
22376 This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
22377 change the way C symbols are represented in the object file.  One use
22378 is to help link with legacy assembly code.
22379 .Sp
22380 \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
22381 generate code that is not binary compatible with code generated without that
22382 switch.  Use it to conform to a non-default application binary interface.
22383 Not all targets provide complete support for this switch.
22384 .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
22385 .IX Item "-ftls-model=model"
22386 Alter the thread-local storage model to be used.
22387 The \fImodel\fR argument should be one of \fBglobal-dynamic\fR,
22388 \&\fBlocal-dynamic\fR, \fBinitial-exec\fR or \fBlocal-exec\fR.
22389 Note that the choice is subject to optimization: the compiler may use
22390 a more efficient model for symbols not visible outside of the translation
22391 unit, or if \fB\-fpic\fR is not given on the command line.
22392 .Sp
22393 The default without \fB\-fpic\fR is \fBinitial-exec\fR; with
22394 \&\fB\-fpic\fR the default is \fBglobal-dynamic\fR.
22395 .IP "\fB\-fvisibility=\fR[\fBdefault\fR|\fBinternal\fR|\fBhidden\fR|\fBprotected\fR]" 4
22396 .IX Item "-fvisibility=[default|internal|hidden|protected]"
22397 Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
22398 symbols are marked with this unless overridden within the code.
22399 Using this feature can very substantially improve linking and
22400 load times of shared object libraries, produce more optimized
22401 code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
22402 It is \fBstrongly\fR recommended that you use this in any shared objects
22403 you distribute.
22404 .Sp
22405 Despite the nomenclature, \fBdefault\fR always means public; i.e.,
22406 available to be linked against from outside the shared object.
22407 \&\fBprotected\fR and \fBinternal\fR are pretty useless in real-world
22408 usage so the only other commonly used option is \fBhidden\fR.
22409 The default if \fB\-fvisibility\fR isn't specified is
22410 \&\fBdefault\fR, i.e., make every symbol public.
22411 .Sp
22412 A good explanation of the benefits offered by ensuring \s-1ELF\s0
22413 symbols have the correct visibility is given by \*(L"How To Write
22414 Shared Libraries\*(R" by Ulrich Drepper (which can be found at
22415 <\fBhttp://www.akkadia.org/drepper/\fR>)\-\-\-however a superior
22416 solution made possible by this option to marking things hidden when
22417 the default is public is to make the default hidden and mark things
22418 public.  This is the norm with DLLs on Windows and with \fB\-fvisibility=hidden\fR
22419 and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
22420 \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
22421 identical syntax.  This is a great boon to those working with
22422 cross-platform projects.
22423 .Sp
22424 For those adding visibility support to existing code, you may find
22425 \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR of use.  This works by you enclosing
22426 the declarations you wish to set visibility for with (for example)
22427 \&\f(CW\*(C`#pragma GCC visibility push(hidden)\*(C'\fR and
22428 \&\f(CW\*(C`#pragma GCC visibility pop\*(C'\fR.
22429 Bear in mind that symbol visibility should be viewed \fBas
22430 part of the \s-1API\s0 interface contract\fR and thus all new code should
22431 always specify visibility when it is not the default; i.e., declarations
22432 only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
22433 as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
22434 abundantly clear also aids readability and self-documentation of the code.
22435 Note that due to \s-1ISO\s0 \*(C+ specification requirements, \f(CW\*(C`operator new\*(C'\fR and
22436 \&\f(CW\*(C`operator delete\*(C'\fR must always be of default visibility.
22437 .Sp
22438 Be aware that headers from outside your project, in particular system
22439 headers and headers from any other library you use, may not be
22440 expecting to be compiled with visibility other than the default.  You
22441 may need to explicitly say \f(CW\*(C`#pragma GCC visibility push(default)\*(C'\fR
22442 before including any such headers.
22443 .Sp
22444 \&\f(CW\*(C`extern\*(C'\fR declarations are not affected by \fB\-fvisibility\fR, so
22445 a lot of code can be recompiled with \fB\-fvisibility=hidden\fR with
22446 no modifications.  However, this means that calls to \f(CW\*(C`extern\*(C'\fR
22447 functions with no explicit visibility use the \s-1PLT\s0, so it is more
22448 effective to use \f(CW\*(C`_\|_attribute ((visibility))\*(C'\fR and/or
22449 \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR to tell the compiler which \f(CW\*(C`extern\*(C'\fR
22450 declarations should be treated as hidden.
22451 .Sp
22452 Note that \fB\-fvisibility\fR does affect \*(C+ vague linkage
22453 entities. This means that, for instance, an exception class that is
22454 be thrown between DSOs must be explicitly marked with default
22455 visibility so that the \fBtype_info\fR nodes are unified between
22456 the DSOs.
22457 .Sp
22458 An overview of these techniques, their benefits and how to use them
22459 is at <\fBhttp://gcc.gnu.org/wiki/Visibility\fR>.
22460 .IP "\fB\-fstrict\-volatile\-bitfields\fR" 4
22461 .IX Item "-fstrict-volatile-bitfields"
22462 This option should be used if accesses to volatile bit-fields (or other
22463 structure fields, although the compiler usually honors those types
22464 anyway) should use a single access of the width of the
22465 field's type, aligned to a natural alignment if possible.  For
22466 example, targets with memory-mapped peripheral registers might require
22467 all such accesses to be 16 bits wide; with this flag you can
22468 declare all peripheral bit-fields as \f(CW\*(C`unsigned short\*(C'\fR (assuming short
22469 is 16 bits on these targets) to force \s-1GCC\s0 to use 16\-bit accesses
22470 instead of, perhaps, a more efficient 32\-bit access.
22471 .Sp
22472 If this option is disabled, the compiler uses the most efficient
22473 instruction.  In the previous example, that might be a 32\-bit load
22474 instruction, even though that accesses bytes that do not contain
22475 any portion of the bit-field, or memory-mapped registers unrelated to
22476 the one being updated.
22477 .Sp
22478 In some cases, such as when the \f(CW\*(C`packed\*(C'\fR attribute is applied to a 
22479 structure field, it may not be possible to access the field with a single
22480 read or write that is correctly aligned for the target machine.  In this
22481 case \s-1GCC\s0 falls back to generating multiple accesses rather than code that 
22482 will fault or truncate the result at run time.
22483 .Sp
22484 Note:  Due to restrictions of the C/\*(C+11 memory model, write accesses are
22485 not allowed to touch non bit-field members.  It is therefore recommended
22486 to define all bits of the field's type as bit-field members.
22487 .Sp
22488 The default value of this option is determined by the application binary
22489 interface for the target processor.
22490 .IP "\fB\-fsync\-libcalls\fR" 4
22491 .IX Item "-fsync-libcalls"
22492 This option controls whether any out-of-line instance of the \f(CW\*(C`_\|_sync\*(C'\fR
22493 family of functions may be used to implement the \*(C+11 \f(CW\*(C`_\|_atomic\*(C'\fR
22494 family of functions.
22495 .Sp
22496 The default value of this option is enabled, thus the only useful form
22497 of the option is \fB\-fno\-sync\-libcalls\fR.  This option is used in
22498 the implementation of the \fIlibatomic\fR runtime library.
22499 .SH "ENVIRONMENT"
22500 .IX Header "ENVIRONMENT"
22501 This section describes several environment variables that affect how \s-1GCC\s0
22502 operates.  Some of them work by specifying directories or prefixes to use
22503 when searching for various kinds of files.  Some are used to specify other
22504 aspects of the compilation environment.
22505 .PP
22506 Note that you can also specify places to search using options such as
22507 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
22508 take precedence over places specified using environment variables, which
22509 in turn take precedence over those specified by the configuration of \s-1GCC\s0.
22510 .IP "\fB\s-1LANG\s0\fR" 4
22511 .IX Item "LANG"
22512 .PD 0
22513 .IP "\fB\s-1LC_CTYPE\s0\fR" 4
22514 .IX Item "LC_CTYPE"
22515 .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
22516 .IX Item "LC_MESSAGES"
22517 .IP "\fB\s-1LC_ALL\s0\fR" 4
22518 .IX Item "LC_ALL"
22519 .PD
22520 These environment variables control the way that \s-1GCC\s0 uses
22521 localization information which allows \s-1GCC\s0 to work with different
22522 national conventions.  \s-1GCC\s0 inspects the locale categories
22523 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
22524 so.  These locale categories can be set to any value supported by your
22525 installation.  A typical value is \fBen_GB.UTF\-8\fR for English in the United
22526 Kingdom encoded in \s-1UTF\-8\s0.
22527 .Sp
22528 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
22529 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
22530 a string; this is needed for some multibyte encodings that contain quote
22531 and escape characters that are otherwise interpreted as a string
22532 end or escape.
22533 .Sp
22534 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
22535 use in diagnostic messages.
22536 .Sp
22537 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
22538 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
22539 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
22540 environment variable.  If none of these variables are set, \s-1GCC\s0
22541 defaults to traditional C English behavior.
22542 .IP "\fB\s-1TMPDIR\s0\fR" 4
22543 .IX Item "TMPDIR"
22544 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
22545 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
22546 compilation which is to be used as input to the next stage: for example,
22547 the output of the preprocessor, which is the input to the compiler
22548 proper.
22549 .IP "\fB\s-1GCC_COMPARE_DEBUG\s0\fR" 4
22550 .IX Item "GCC_COMPARE_DEBUG"
22551 Setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR is nearly equivalent to passing
22552 \&\fB\-fcompare\-debug\fR to the compiler driver.  See the documentation
22553 of this option for more details.
22554 .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
22555 .IX Item "GCC_EXEC_PREFIX"
22556 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
22557 names of the subprograms executed by the compiler.  No slash is added
22558 when this prefix is combined with the name of a subprogram, but you can
22559 specify a prefix that ends with a slash if you wish.
22560 .Sp
22561 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 attempts to figure out
22562 an appropriate prefix to use based on the pathname it is invoked with.
22563 .Sp
22564 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
22565 tries looking in the usual places for the subprogram.
22566 .Sp
22567 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
22568 \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the prefix to
22569 the installed compiler. In many cases \fIprefix\fR is the value
22570 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
22571 .Sp
22572 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
22573 .Sp
22574 This prefix is also used for finding files such as \fIcrt0.o\fR that are
22575 used for linking.
22576 .Sp
22577 In addition, the prefix is used in an unusual way in finding the
22578 directories to search for header files.  For each of the standard
22579 directories whose name normally begins with \fB/usr/local/lib/gcc\fR
22580 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
22581 replacing that beginning with the specified prefix to produce an
22582 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 searches
22583 \&\fIfoo/bar\fR just before it searches the standard directory 
22584 \&\fI/usr/local/lib/bar\fR.
22585 If a standard directory begins with the configured
22586 \&\fIprefix\fR then the value of \fIprefix\fR is replaced by
22587 \&\fB\s-1GCC_EXEC_PREFIX\s0\fR when looking for header files.
22588 .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
22589 .IX Item "COMPILER_PATH"
22590 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
22591 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
22592 specified when searching for subprograms, if it can't find the
22593 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
22594 .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
22595 .IX Item "LIBRARY_PATH"
22596 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
22597 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
22598 \&\s-1GCC\s0 tries the directories thus specified when searching for special
22599 linker files, if it can't find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
22600 using \s-1GCC\s0 also uses these directories when searching for ordinary
22601 libraries for the \fB\-l\fR option (but directories specified with
22602 \&\fB\-L\fR come first).
22603 .IP "\fB\s-1LANG\s0\fR" 4
22604 .IX Item "LANG"
22605 This variable is used to pass locale information to the compiler.  One way in
22606 which this information is used is to determine the character set to be used
22607 when character literals, string literals and comments are parsed in C and \*(C+.
22608 When the compiler is configured to allow multibyte characters,
22609 the following values for \fB\s-1LANG\s0\fR are recognized:
22610 .RS 4
22611 .IP "\fBC\-JIS\fR" 4
22612 .IX Item "C-JIS"
22613 Recognize \s-1JIS\s0 characters.
22614 .IP "\fBC\-SJIS\fR" 4
22615 .IX Item "C-SJIS"
22616 Recognize \s-1SJIS\s0 characters.
22617 .IP "\fBC\-EUCJP\fR" 4
22618 .IX Item "C-EUCJP"
22619 Recognize \s-1EUCJP\s0 characters.
22620 .RE
22621 .RS 4
22622 .Sp
22623 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
22624 compiler uses \f(CW\*(C`mblen\*(C'\fR and \f(CW\*(C`mbtowc\*(C'\fR as defined by the default locale to
22625 recognize and translate multibyte characters.
22626 .RE
22627 .PP
22628 Some additional environment variables affect the behavior of the
22629 preprocessor.
22630 .IP "\fB\s-1CPATH\s0\fR" 4
22631 .IX Item "CPATH"
22632 .PD 0
22633 .IP "\fBC_INCLUDE_PATH\fR" 4
22634 .IX Item "C_INCLUDE_PATH"
22635 .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
22636 .IX Item "CPLUS_INCLUDE_PATH"
22637 .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
22638 .IX Item "OBJC_INCLUDE_PATH"
22639 .PD
22640 Each variable's value is a list of directories separated by a special
22641 character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
22642 The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
22643 determined at \s-1GCC\s0 build time.  For Microsoft Windows-based targets it is a
22644 semicolon, and for almost all other targets it is a colon.
22645 .Sp
22646 \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
22647 specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
22648 options on the command line.  This environment variable is used
22649 regardless of which language is being preprocessed.
22650 .Sp
22651 The remaining environment variables apply only when preprocessing the
22652 particular language indicated.  Each specifies a list of directories
22653 to be searched as if specified with \fB\-isystem\fR, but after any
22654 paths given with \fB\-isystem\fR options on the command line.
22655 .Sp
22656 In all these variables, an empty element instructs the compiler to
22657 search its current working directory.  Empty elements can appear at the
22658 beginning or end of a path.  For instance, if the value of
22659 \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
22660 effect as \fB\-I.\ \-I/special/include\fR.
22661 .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
22662 .IX Item "DEPENDENCIES_OUTPUT"
22663 If this variable is set, its value specifies how to output
22664 dependencies for Make based on the non-system header files processed
22665 by the compiler.  System header files are ignored in the dependency
22666 output.
22667 .Sp
22668 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
22669 which case the Make rules are written to that file, guessing the target
22670 name from the source file name.  Or the value can have the form
22671 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
22672 file \fIfile\fR using \fItarget\fR as the target name.
22673 .Sp
22674 In other words, this environment variable is equivalent to combining
22675 the options \fB\-MM\fR and \fB\-MF\fR,
22676 with an optional \fB\-MT\fR switch too.
22677 .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
22678 .IX Item "SUNPRO_DEPENDENCIES"
22679 This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
22680 except that system header files are not ignored, so it implies
22681 \&\fB\-M\fR rather than \fB\-MM\fR.  However, the dependence on the
22682 main input file is omitted.
22683 .SH "BUGS"
22684 .IX Header "BUGS"
22685 For instructions on reporting bugs, see
22686 <\fBhttp://gcc.gnu.org/bugs.html\fR>.
22687 .SH "FOOTNOTES"
22688 .IX Header "FOOTNOTES"
22689 .IP "1." 4
22690 On some systems, \fBgcc \-shared\fR
22691 needs to build supplementary stub code for constructors to work.  On
22692 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
22693 libraries to link against.  Failing to supply the correct flags may lead
22694 to subtle defects.  Supplying them in cases where they are not necessary
22695 is innocuous.
22696 .SH "SEE ALSO"
22697 .IX Header "SEE ALSO"
22698 \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7),
22699 \&\fIcpp\fR\|(1), \fIgcov\fR\|(1), \fIas\fR\|(1), \fIld\fR\|(1), \fIgdb\fR\|(1), \fIadb\fR\|(1), \fIdbx\fR\|(1), \fIsdb\fR\|(1)
22700 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
22701 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
22702 .SH "AUTHOR"
22703 .IX Header "AUTHOR"
22704 See the Info entry for \fBgcc\fR, or
22705 <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
22706 for contributors to \s-1GCC\s0.
22707 .SH "COPYRIGHT"
22708 .IX Header "COPYRIGHT"
22709 Copyright (c) 1988\-2015 Free Software Foundation, Inc.
22710 .PP
22711 Permission is granted to copy, distribute and/or modify this document
22712 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or
22713 any later version published by the Free Software Foundation; with the
22714 Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
22715 Free Software\*(R", the Front-Cover texts being (a) (see below), and with
22716 the Back-Cover Texts being (b) (see below).  A copy of the license is
22717 included in the \fIgfdl\fR\|(7) man page.
22718 .PP
22719 (a) The \s-1FSF\s0's Front-Cover Text is:
22720 .PP
22721 .Vb 1
22722 \&     A GNU Manual
22723 .Ve
22724 .PP
22725 (b) The \s-1FSF\s0's Back-Cover Text is:
22726 .PP
22727 .Vb 3
22728 \&     You have freedom to copy and modify this GNU Manual, like GNU
22729 \&     software.  Copies published by the Free Software Foundation raise
22730 \&     funds for GNU development.
22731 .Ve