gcc50: Update to release version 5.1.0 => 5.1.1
[dragonfly.git] / gnu / usr.bin / cc50 / drivers / cc / gcc.1
1 .\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sp \" Vertical space (when we can't use .PP)
6 .if t .sp .5v
7 .if n .sp
8 ..
9 .de Vb \" Begin verbatim text
10 .ft CW
11 .nf
12 .ne \\$1
13 ..
14 .de Ve \" End verbatim text
15 .ft R
16 .fi
17 ..
18 .\" Set up some character translations and predefined strings.  \*(-- will
19 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
20 .\" double quote, and \*(R" will give a right double quote.  \*(C+ will
21 .\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
22 .\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
23 .\" nothing in troff, for use with C<>.
24 .tr \(*W-
25 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
26 .ie n \{\
27 .    ds -- \(*W-
28 .    ds PI pi
29 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
30 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
31 .    ds L" ""
32 .    ds R" ""
33 .    ds C` ""
34 .    ds C' ""
35 'br\}
36 .el\{\
37 .    ds -- \|\(em\|
38 .    ds PI \(*p
39 .    ds L" ``
40 .    ds R" ''
41 .    ds C`
42 .    ds C'
43 'br\}
44 .\"
45 .\" Escape single quotes in literal strings from groff's Unicode transform.
46 .ie \n(.g .ds Aq \(aq
47 .el       .ds Aq '
48 .\"
49 .\" If the F register is turned on, we'll generate index entries on stderr for
50 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
51 .\" entries marked with X<> in POD.  Of course, you'll have to process the
52 .\" output yourself in some meaningful fashion.
53 .\"
54 .\" Avoid warning from groff about undefined register 'F'.
55 .de IX
56 ..
57 .nr rF 0
58 .if \n(.g .if rF .nr rF 1
59 .if (\n(rF:(\n(.g==0)) \{
60 .    if \nF \{
61 .        de IX
62 .        tm Index:\\$1\t\\n%\t"\\$2"
63 ..
64 .        if !\nF==2 \{
65 .            nr % 0
66 .            nr F 2
67 .        \}
68 .    \}
69 .\}
70 .rr rF
71 .\"
72 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
73 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
74 .    \" fudge factors for nroff and troff
75 .if n \{\
76 .    ds #H 0
77 .    ds #V .8m
78 .    ds #F .3m
79 .    ds #[ \f1
80 .    ds #] \fP
81 .\}
82 .if t \{\
83 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
84 .    ds #V .6m
85 .    ds #F 0
86 .    ds #[ \&
87 .    ds #] \&
88 .\}
89 .    \" simple accents for nroff and troff
90 .if n \{\
91 .    ds ' \&
92 .    ds ` \&
93 .    ds ^ \&
94 .    ds , \&
95 .    ds ~ ~
96 .    ds /
97 .\}
98 .if t \{\
99 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
100 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
101 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
102 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
103 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
104 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
105 .\}
106 .    \" troff and (daisy-wheel) nroff accents
107 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
108 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
109 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
110 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
111 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
112 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
113 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
114 .ds ae a\h'-(\w'a'u*4/10)'e
115 .ds Ae A\h'-(\w'A'u*4/10)'E
116 .    \" corrections for vroff
117 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
118 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
119 .    \" for low resolution devices (crt and lpr)
120 .if \n(.H>23 .if \n(.V>19 \
121 \{\
122 .    ds : e
123 .    ds 8 ss
124 .    ds o a
125 .    ds d- d\h'-1'\(ga
126 .    ds D- D\h'-1'\(hy
127 .    ds th \o'bp'
128 .    ds Th \o'LP'
129 .    ds ae ae
130 .    ds Ae AE
131 .\}
132 .rm #[ #] #H #V #F C
133 .\" ========================================================================
134 .\"
135 .IX Title "GCC 1"
136 .TH GCC 1 "2015-04-22" "gcc-5.1.0" "GNU"
137 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
138 .\" way too many mistakes in technical documents.
139 .if n .ad l
140 .nh
141 .SH "NAME"
142 gcc \- GNU project C and C++ compiler
143 .SH "SYNOPSIS"
144 .IX Header "SYNOPSIS"
145 gcc [\fB\-c\fR|\fB\-S\fR|\fB\-E\fR] [\fB\-std=\fR\fIstandard\fR]
146     [\fB\-g\fR] [\fB\-pg\fR] [\fB\-O\fR\fIlevel\fR]
147     [\fB\-W\fR\fIwarn\fR...] [\fB\-Wpedantic\fR]
148     [\fB\-I\fR\fIdir\fR...] [\fB\-L\fR\fIdir\fR...]
149     [\fB\-D\fR\fImacro\fR[=\fIdefn\fR]...] [\fB\-U\fR\fImacro\fR]
150     [\fB\-f\fR\fIoption\fR...] [\fB\-m\fR\fImachine-option\fR...]
151     [\fB\-o\fR \fIoutfile\fR] [@\fIfile\fR] \fIinfile\fR...
152 .PP
153 Only the most useful options are listed here; see below for the
154 remainder.  \fBg++\fR accepts mostly the same options as \fBgcc\fR.
155 .SH "DESCRIPTION"
156 .IX Header "DESCRIPTION"
157 When you invoke \s-1GCC,\s0 it normally does preprocessing, compilation,
158 assembly and linking.  The \*(L"overall options\*(R" allow you to stop this
159 process at an intermediate stage.  For example, the \fB\-c\fR option
160 says not to run the linker.  Then the output consists of object files
161 output by the assembler.
162 .PP
163 Other options are passed on to one stage of processing.  Some options
164 control the preprocessor and others the compiler itself.  Yet other
165 options control the assembler and linker; most of these are not
166 documented here, since you rarely need to use any of them.
167 .PP
168 Most of the command-line options that you can use with \s-1GCC\s0 are useful
169 for C programs; when an option is only useful with another language
170 (usually \*(C+), the explanation says so explicitly.  If the description
171 for a particular option does not mention a source language, you can use
172 that option with all supported languages.
173 .PP
174 The \fBgcc\fR program accepts options and file names as operands.  Many
175 options have multi-letter names; therefore multiple single-letter options
176 may \fInot\fR be grouped: \fB\-dv\fR is very different from \fB\-d\ \-v\fR.
177 .PP
178 You can mix options and other arguments.  For the most part, the order
179 you use doesn't matter.  Order does matter when you use several
180 options of the same kind; for example, if you specify \fB\-L\fR more
181 than once, the directories are searched in the order specified.  Also,
182 the placement of the \fB\-l\fR option is significant.
183 .PP
184 Many options have long names starting with \fB\-f\fR or with
185 \&\fB\-W\fR\-\-\-for example,
186 \&\fB\-fmove\-loop\-invariants\fR, \fB\-Wformat\fR and so on.  Most of
187 these have both positive and negative forms; the negative form of
188 \&\fB\-ffoo\fR is \fB\-fno\-foo\fR.  This manual documents
189 only one of these two forms, whichever one is not the default.
190 .SH "OPTIONS"
191 .IX Header "OPTIONS"
192 .SS "Option Summary"
193 .IX Subsection "Option Summary"
194 Here is a summary of all the options, grouped by type.  Explanations are
195 in the following sections.
196 .IP "\fIOverall Options\fR" 4
197 .IX Item "Overall Options"
198 \&\fB\-c  \-S  \-E  \-o\fR \fIfile\fR  \fB\-no\-canonical\-prefixes  
199 \&\-pipe  \-pass\-exit\-codes  
200 \&\-x\fR \fIlanguage\fR  \fB\-v  \-###  \-\-help\fR[\fB=\fR\fIclass\fR[\fB,...\fR]]  \fB\-\-target\-help  
201 \&\-\-version \-wrapper @\fR\fIfile\fR \fB\-fplugin=\fR\fIfile\fR \fB\-fplugin\-arg\-\fR\fIname\fR\fB=\fR\fIarg\fR  
202 \&\fB\-fdump\-ada\-spec\fR[\fB\-slim\fR] \fB\-fada\-spec\-parent=\fR\fIunit\fR \fB\-fdump\-go\-spec=\fR\fIfile\fR
203 .IP "\fIC Language Options\fR" 4
204 .IX Item "C Language Options"
205 \&\fB\-ansi  \-std=\fR\fIstandard\fR  \fB\-fgnu89\-inline 
206 \&\-aux\-info\fR \fIfilename\fR \fB\-fallow\-parameterless\-variadic\-functions 
207 \&\-fno\-asm  \-fno\-builtin  \-fno\-builtin\-\fR\fIfunction\fR 
208 \&\fB\-fhosted  \-ffreestanding \-fopenacc \-fopenmp \-fopenmp\-simd 
209 \&\-fms\-extensions \-fplan9\-extensions \-trigraphs \-traditional \-traditional\-cpp 
210 \&\-fallow\-single\-precision  \-fcond\-mismatch \-flax\-vector\-conversions 
211 \&\-fsigned\-bitfields  \-fsigned\-char 
212 \&\-funsigned\-bitfields  \-funsigned\-char\fR
213 .IP "\fI\*(C+ Language Options\fR" 4
214 .IX Item " Language Options"
215 \&\fB\-fabi\-version=\fR\fIn\fR  \fB\-fno\-access\-control  \-fcheck\-new 
216 \&\-fconstexpr\-depth=\fR\fIn\fR  \fB\-ffriend\-injection 
217 \&\-fno\-elide\-constructors 
218 \&\-fno\-enforce\-eh\-specs 
219 \&\-ffor\-scope  \-fno\-for\-scope  \-fno\-gnu\-keywords 
220 \&\-fno\-implicit\-templates 
221 \&\-fno\-implicit\-inline\-templates 
222 \&\-fno\-implement\-inlines  \-fms\-extensions 
223 \&\-fno\-nonansi\-builtins  \-fnothrow\-opt  \-fno\-operator\-names 
224 \&\-fno\-optional\-diags  \-fpermissive 
225 \&\-fno\-pretty\-templates 
226 \&\-frepo  \-fno\-rtti \-fsized\-deallocation 
227 \&\-fstats  \-ftemplate\-backtrace\-limit=\fR\fIn\fR 
228 \&\fB\-ftemplate\-depth=\fR\fIn\fR 
229 \&\fB\-fno\-threadsafe\-statics  \-fuse\-cxa\-atexit 
230 \&\-fno\-weak  \-nostdinc++ 
231 \&\-fvisibility\-inlines\-hidden 
232 \&\-fvtable\-verify=\fR[\fBstd\fR|\fBpreinit\fR|\fBnone\fR] 
233 \&\fB\-fvtv\-counts \-fvtv\-debug 
234 \&\-fvisibility\-ms\-compat 
235 \&\-fext\-numeric\-literals 
236 \&\-Wabi=\fR\fIn\fR  \fB\-Wabi\-tag  \-Wconversion\-null  \-Wctor\-dtor\-privacy 
237 \&\-Wdelete\-non\-virtual\-dtor \-Wliteral\-suffix \-Wnarrowing 
238 \&\-Wnoexcept \-Wnon\-virtual\-dtor  \-Wreorder 
239 \&\-Weffc++  \-Wstrict\-null\-sentinel 
240 \&\-Wno\-non\-template\-friend  \-Wold\-style\-cast 
241 \&\-Woverloaded\-virtual  \-Wno\-pmf\-conversions 
242 \&\-Wsign\-promo\fR
243 .IP "\fIObjective-C and Objective\-\*(C+ Language Options\fR" 4
244 .IX Item "Objective-C and Objective- Language Options"
245 \&\fB\-fconstant\-string\-class=\fR\fIclass-name\fR 
246 \&\fB\-fgnu\-runtime  \-fnext\-runtime 
247 \&\-fno\-nil\-receivers 
248 \&\-fobjc\-abi\-version=\fR\fIn\fR 
249 \&\fB\-fobjc\-call\-cxx\-cdtors 
250 \&\-fobjc\-direct\-dispatch 
251 \&\-fobjc\-exceptions 
252 \&\-fobjc\-gc 
253 \&\-fobjc\-nilcheck 
254 \&\-fobjc\-std=objc1 
255 \&\-fno\-local\-ivars 
256 \&\-fivar\-visibility=\fR[\fBpublic\fR|\fBprotected\fR|\fBprivate\fR|\fBpackage\fR] 
257 \&\fB\-freplace\-objc\-classes 
258 \&\-fzero\-link 
259 \&\-gen\-decls 
260 \&\-Wassign\-intercept 
261 \&\-Wno\-protocol  \-Wselector 
262 \&\-Wstrict\-selector\-match 
263 \&\-Wundeclared\-selector\fR
264 .IP "\fILanguage Independent Options\fR" 4
265 .IX Item "Language Independent Options"
266 \&\fB\-fmessage\-length=\fR\fIn\fR  
267 \&\fB\-fdiagnostics\-show\-location=\fR[\fBonce\fR|\fBevery-line\fR]  
268 \&\fB\-fdiagnostics\-color=\fR[\fBauto\fR|\fBnever\fR|\fBalways\fR]  
269 \&\fB\-fno\-diagnostics\-show\-option \-fno\-diagnostics\-show\-caret\fR
270 .IP "\fIWarning Options\fR" 4
271 .IX Item "Warning Options"
272 \&\fB\-fsyntax\-only  \-fmax\-errors=\fR\fIn\fR  \fB\-Wpedantic 
273 \&\-pedantic\-errors 
274 \&\-w  \-Wextra  \-Wall  \-Waddress  \-Waggregate\-return  
275 \&\-Waggressive\-loop\-optimizations \-Warray\-bounds \-Warray\-bounds=\fR\fIn\fR 
276 \&\fB\-Wbool\-compare 
277 \&\-Wno\-attributes \-Wno\-builtin\-macro\-redefined 
278 \&\-Wc90\-c99\-compat \-Wc99\-c11\-compat 
279 \&\-Wc++\-compat \-Wc++11\-compat \-Wc++14\-compat \-Wcast\-align  \-Wcast\-qual  
280 \&\-Wchar\-subscripts \-Wclobbered  \-Wcomment \-Wconditionally\-supported  
281 \&\-Wconversion \-Wcoverage\-mismatch \-Wdate\-time \-Wdelete\-incomplete \-Wno\-cpp  
282 \&\-Wno\-deprecated \-Wno\-deprecated\-declarations \-Wno\-designated\-init 
283 \&\-Wdisabled\-optimization 
284 \&\-Wno\-discarded\-qualifiers \-Wno\-discarded\-array\-qualifiers 
285 \&\-Wno\-div\-by\-zero \-Wdouble\-promotion \-Wempty\-body  \-Wenum\-compare 
286 \&\-Wno\-endif\-labels \-Werror  \-Werror=* 
287 \&\-Wfatal\-errors  \-Wfloat\-equal  \-Wformat  \-Wformat=2 
288 \&\-Wno\-format\-contains\-nul \-Wno\-format\-extra\-args \-Wformat\-nonliteral 
289 \&\-Wformat\-security  \-Wformat\-signedness  \-Wformat\-y2k 
290 \&\-Wframe\-larger\-than=\fR\fIlen\fR \fB\-Wno\-free\-nonheap\-object \-Wjump\-misses\-init 
291 \&\-Wignored\-qualifiers  \-Wincompatible\-pointer\-types 
292 \&\-Wimplicit  \-Wimplicit\-function\-declaration  \-Wimplicit\-int 
293 \&\-Winit\-self  \-Winline  \-Wno\-int\-conversion 
294 \&\-Wno\-int\-to\-pointer\-cast \-Wno\-invalid\-offsetof 
295 \&\-Winvalid\-pch \-Wlarger\-than=\fR\fIlen\fR  \fB\-Wunsafe\-loop\-optimizations 
296 \&\-Wlogical\-op \-Wlogical\-not\-parentheses \-Wlong\-long 
297 \&\-Wmain \-Wmaybe\-uninitialized \-Wmemset\-transposed\-args \-Wmissing\-braces 
298 \&\-Wmissing\-field\-initializers \-Wmissing\-include\-dirs 
299 \&\-Wno\-multichar  \-Wnonnull  \-Wnormalized=\fR[\fBnone\fR|\fBid\fR|\fBnfc\fR|\fBnfkc\fR] 
300  \fB\-Wodr  \-Wno\-overflow  \-Wopenmp\-simd 
301 \&\-Woverlength\-strings  \-Wpacked  \-Wpacked\-bitfield\-compat  \-Wpadded 
302 \&\-Wparentheses  \-Wpedantic\-ms\-format \-Wno\-pedantic\-ms\-format 
303 \&\-Wpointer\-arith  \-Wno\-pointer\-to\-int\-cast 
304 \&\-Wredundant\-decls  \-Wno\-return\-local\-addr 
305 \&\-Wreturn\-type  \-Wsequence\-point  \-Wshadow  \-Wno\-shadow\-ivar 
306 \&\-Wshift\-count\-negative \-Wshift\-count\-overflow 
307 \&\-Wsign\-compare  \-Wsign\-conversion \-Wfloat\-conversion 
308 \&\-Wsizeof\-pointer\-memaccess  \-Wsizeof\-array\-argument 
309 \&\-Wstack\-protector \-Wstack\-usage=\fR\fIlen\fR \fB\-Wstrict\-aliasing 
310 \&\-Wstrict\-aliasing=n  \-Wstrict\-overflow \-Wstrict\-overflow=\fR\fIn\fR 
311 \&\fB\-Wsuggest\-attribute=\fR[\fBpure\fR|\fBconst\fR|\fBnoreturn\fR|\fBformat\fR] 
312 \&\fB\-Wsuggest\-final\-types  \-Wsuggest\-final\-methods  \-Wsuggest\-override 
313 \&\-Wmissing\-format\-attribute 
314 \&\-Wswitch  \-Wswitch\-default  \-Wswitch\-enum \-Wswitch\-bool \-Wsync\-nand 
315 \&\-Wsystem\-headers  \-Wtrampolines  \-Wtrigraphs  \-Wtype\-limits  \-Wundef 
316 \&\-Wuninitialized  \-Wunknown\-pragmas  \-Wno\-pragmas 
317 \&\-Wunsuffixed\-float\-constants  \-Wunused  \-Wunused\-function 
318 \&\-Wunused\-label  \-Wunused\-local\-typedefs \-Wunused\-parameter 
319 \&\-Wno\-unused\-result \-Wunused\-value  \-Wunused\-variable 
320 \&\-Wunused\-but\-set\-parameter \-Wunused\-but\-set\-variable 
321 \&\-Wuseless\-cast \-Wvariadic\-macros \-Wvector\-operation\-performance 
322 \&\-Wvla \-Wvolatile\-register\-var  \-Wwrite\-strings 
323 \&\-Wzero\-as\-null\-pointer\-constant\fR
324 .IP "\fIC and Objective-C-only Warning Options\fR" 4
325 .IX Item "C and Objective-C-only Warning Options"
326 \&\fB\-Wbad\-function\-cast  \-Wmissing\-declarations 
327 \&\-Wmissing\-parameter\-type  \-Wmissing\-prototypes  \-Wnested\-externs 
328 \&\-Wold\-style\-declaration  \-Wold\-style\-definition 
329 \&\-Wstrict\-prototypes  \-Wtraditional  \-Wtraditional\-conversion 
330 \&\-Wdeclaration\-after\-statement \-Wpointer\-sign\fR
331 .IP "\fIDebugging Options\fR" 4
332 .IX Item "Debugging Options"
333 \&\fB\-d\fR\fIletters\fR  \fB\-dumpspecs  \-dumpmachine  \-dumpversion 
334 \&\-fsanitize=\fR\fIstyle\fR \fB\-fsanitize\-recover \-fsanitize\-recover=\fR\fIstyle\fR 
335 \&\fB\-fasan\-shadow\-offset=\fR\fInumber\fR \fB\-fsanitize\-undefined\-trap\-on\-error 
336 \&\-fcheck\-pointer\-bounds \-fchkp\-check\-incomplete\-type 
337 \&\-fchkp\-first\-field\-has\-own\-bounds \-fchkp\-narrow\-bounds 
338 \&\-fchkp\-narrow\-to\-innermost\-array \-fchkp\-optimize 
339 \&\-fchkp\-use\-fast\-string\-functions \-fchkp\-use\-nochk\-string\-functions 
340 \&\-fchkp\-use\-static\-bounds \-fchkp\-use\-static\-const\-bounds 
341 \&\-fchkp\-treat\-zero\-dynamic\-size\-as\-infinite \-fchkp\-check\-read 
342 \&\-fchkp\-check\-read \-fchkp\-check\-write \-fchkp\-store\-bounds 
343 \&\-fchkp\-instrument\-calls \-fchkp\-instrument\-marked\-only 
344 \&\-fchkp\-use\-wrappers 
345 \&\-fdbg\-cnt\-list \-fdbg\-cnt=\fR\fIcounter-value-list\fR 
346 \&\fB\-fdisable\-ipa\-\fR\fIpass_name\fR 
347 \&\fB\-fdisable\-rtl\-\fR\fIpass_name\fR 
348 \&\fB\-fdisable\-rtl\-\fR\fIpass-name\fR\fB=\fR\fIrange-list\fR 
349 \&\fB\-fdisable\-tree\-\fR\fIpass_name\fR 
350 \&\fB\-fdisable\-tree\-\fR\fIpass-name\fR\fB=\fR\fIrange-list\fR 
351 \&\fB\-fdump\-noaddr \-fdump\-unnumbered \-fdump\-unnumbered\-links 
352 \&\-fdump\-translation\-unit\fR[\fB\-\fR\fIn\fR] 
353 \&\fB\-fdump\-class\-hierarchy\fR[\fB\-\fR\fIn\fR] 
354 \&\fB\-fdump\-ipa\-all \-fdump\-ipa\-cgraph \-fdump\-ipa\-inline 
355 \&\-fdump\-passes 
356 \&\-fdump\-statistics 
357 \&\-fdump\-tree\-all 
358 \&\-fdump\-tree\-original\fR[\fB\-\fR\fIn\fR]  
359 \&\fB\-fdump\-tree\-optimized\fR[\fB\-\fR\fIn\fR] 
360 \&\fB\-fdump\-tree\-cfg \-fdump\-tree\-alias 
361 \&\-fdump\-tree\-ch 
362 \&\-fdump\-tree\-ssa\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-pre\fR[\fB\-\fR\fIn\fR] 
363 \&\fB\-fdump\-tree\-ccp\fR[\fB\-\fR\fIn\fR] \fB\-fdump\-tree\-dce\fR[\fB\-\fR\fIn\fR] 
364 \&\fB\-fdump\-tree\-gimple\fR[\fB\-raw\fR] 
365 \&\fB\-fdump\-tree\-dom\fR[\fB\-\fR\fIn\fR] 
366 \&\fB\-fdump\-tree\-dse\fR[\fB\-\fR\fIn\fR] 
367 \&\fB\-fdump\-tree\-phiprop\fR[\fB\-\fR\fIn\fR] 
368 \&\fB\-fdump\-tree\-phiopt\fR[\fB\-\fR\fIn\fR] 
369 \&\fB\-fdump\-tree\-forwprop\fR[\fB\-\fR\fIn\fR] 
370 \&\fB\-fdump\-tree\-copyrename\fR[\fB\-\fR\fIn\fR] 
371 \&\fB\-fdump\-tree\-nrv \-fdump\-tree\-vect 
372 \&\-fdump\-tree\-sink 
373 \&\-fdump\-tree\-sra\fR[\fB\-\fR\fIn\fR] 
374 \&\fB\-fdump\-tree\-forwprop\fR[\fB\-\fR\fIn\fR] 
375 \&\fB\-fdump\-tree\-fre\fR[\fB\-\fR\fIn\fR] 
376 \&\fB\-fdump\-tree\-vtable\-verify 
377 \&\-fdump\-tree\-vrp\fR[\fB\-\fR\fIn\fR] 
378 \&\fB\-fdump\-tree\-storeccp\fR[\fB\-\fR\fIn\fR] 
379 \&\fB\-fdump\-final\-insns=\fR\fIfile\fR 
380 \&\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR]  \fB\-fcompare\-debug\-second 
381 \&\-feliminate\-dwarf2\-dups \-fno\-eliminate\-unused\-debug\-types 
382 \&\-feliminate\-unused\-debug\-symbols \-femit\-class\-debug\-always 
383 \&\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR 
384 \&\fB\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR 
385 \&\fB\-fdebug\-types\-section \-fmem\-report\-wpa 
386 \&\-fmem\-report \-fpre\-ipa\-mem\-report \-fpost\-ipa\-mem\-report \-fprofile\-arcs 
387 \&\-fopt\-info 
388 \&\-fopt\-info\-\fR\fIoptions\fR[\fB=\fR\fIfile\fR] 
389 \&\fB\-frandom\-seed=\fR\fInumber\fR \fB\-fsched\-verbose=\fR\fIn\fR 
390 \&\fB\-fsel\-sched\-verbose \-fsel\-sched\-dump\-cfg \-fsel\-sched\-pipelining\-verbose 
391 \&\-fstack\-usage  \-ftest\-coverage  \-ftime\-report \-fvar\-tracking 
392 \&\-fvar\-tracking\-assignments  \-fvar\-tracking\-assignments\-toggle 
393 \&\-g  \-g\fR\fIlevel\fR  \fB\-gtoggle  \-gcoff  \-gdwarf\-\fR\fIversion\fR 
394 \&\fB\-ggdb  \-grecord\-gcc\-switches  \-gno\-record\-gcc\-switches 
395 \&\-gstabs  \-gstabs+  \-gstrict\-dwarf  \-gno\-strict\-dwarf 
396 \&\-gvms  \-gxcoff  \-gxcoff+ \-gz\fR[\fB=\fR\fItype\fR] 
397 \&\fB\-fno\-merge\-debug\-strings \-fno\-dwarf2\-cfi\-asm 
398 \&\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR 
399 \&\fB\-femit\-struct\-debug\-baseonly \-femit\-struct\-debug\-reduced 
400 \&\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR] 
401 \&\fB\-p  \-pg  \-print\-file\-name=\fR\fIlibrary\fR  \fB\-print\-libgcc\-file\-name 
402 \&\-print\-multi\-directory  \-print\-multi\-lib  \-print\-multi\-os\-directory 
403 \&\-print\-prog\-name=\fR\fIprogram\fR  \fB\-print\-search\-dirs  \-Q 
404 \&\-print\-sysroot \-print\-sysroot\-headers\-suffix 
405 \&\-save\-temps \-save\-temps=cwd \-save\-temps=obj \-time\fR[\fB=\fR\fIfile\fR]
406 .IP "\fIOptimization Options\fR" 4
407 .IX Item "Optimization Options"
408 \&\fB\-faggressive\-loop\-optimizations \-falign\-functions[=\fR\fIn\fR\fB] 
409 \&\-falign\-jumps[=\fR\fIn\fR\fB] 
410 \&\-falign\-labels[=\fR\fIn\fR\fB] \-falign\-loops[=\fR\fIn\fR\fB] 
411 \&\-fassociative\-math \-fauto\-profile \-fauto\-profile[=\fR\fIpath\fR\fB] 
412 \&\-fauto\-inc\-dec \-fbranch\-probabilities 
413 \&\-fbranch\-target\-load\-optimize \-fbranch\-target\-load\-optimize2 
414 \&\-fbtr\-bb\-exclusive \-fcaller\-saves 
415 \&\-fcheck\-data\-deps \-fcombine\-stack\-adjustments \-fconserve\-stack 
416 \&\-fcompare\-elim \-fcprop\-registers \-fcrossjumping 
417 \&\-fcse\-follow\-jumps \-fcse\-skip\-blocks \-fcx\-fortran\-rules 
418 \&\-fcx\-limited\-range 
419 \&\-fdata\-sections \-fdce \-fdelayed\-branch 
420 \&\-fdelete\-null\-pointer\-checks \-fdevirtualize \-fdevirtualize\-speculatively 
421 \&\-fdevirtualize\-at\-ltrans \-fdse 
422 \&\-fearly\-inlining \-fipa\-sra \-fexpensive\-optimizations \-ffat\-lto\-objects 
423 \&\-ffast\-math \-ffinite\-math\-only \-ffloat\-store \-fexcess\-precision=\fR\fIstyle\fR 
424 \&\fB\-fforward\-propagate \-ffp\-contract=\fR\fIstyle\fR \fB\-ffunction\-sections 
425 \&\-fgcse \-fgcse\-after\-reload \-fgcse\-las \-fgcse\-lm \-fgraphite\-identity 
426 \&\-fgcse\-sm \-fhoist\-adjacent\-loads \-fif\-conversion 
427 \&\-fif\-conversion2 \-findirect\-inlining 
428 \&\-finline\-functions \-finline\-functions\-called\-once \-finline\-limit=\fR\fIn\fR 
429 \&\fB\-finline\-small\-functions \-fipa\-cp \-fipa\-cp\-clone \-fipa\-cp\-alignment 
430 \&\-fipa\-pta \-fipa\-profile \-fipa\-pure\-const \-fipa\-reference \-fipa\-icf 
431 \&\-fira\-algorithm=\fR\fIalgorithm\fR 
432 \&\fB\-fira\-region=\fR\fIregion\fR \fB\-fira\-hoist\-pressure 
433 \&\-fira\-loop\-pressure \-fno\-ira\-share\-save\-slots 
434 \&\-fno\-ira\-share\-spill\-slots \-fira\-verbose=\fR\fIn\fR 
435 \&\fB\-fisolate\-erroneous\-paths\-dereference \-fisolate\-erroneous\-paths\-attribute 
436 \&\-fivopts \-fkeep\-inline\-functions \-fkeep\-static\-consts 
437 \&\-flive\-range\-shrinkage 
438 \&\-floop\-block \-floop\-interchange \-floop\-strip\-mine   
439 \&\-floop\-unroll\-and\-jam \-floop\-nest\-optimize 
440 \&\-floop\-parallelize\-all \-flra\-remat \-flto \-flto\-compression\-level 
441 \&\-flto\-partition=\fR\fIalg\fR \fB\-flto\-report \-flto\-report\-wpa \-fmerge\-all\-constants 
442 \&\-fmerge\-constants \-fmodulo\-sched \-fmodulo\-sched\-allow\-regmoves 
443 \&\-fmove\-loop\-invariants \-fno\-branch\-count\-reg 
444 \&\-fno\-defer\-pop \-fno\-function\-cse \-fno\-guess\-branch\-probability 
445 \&\-fno\-inline \-fno\-math\-errno \-fno\-peephole \-fno\-peephole2 
446 \&\-fno\-sched\-interblock \-fno\-sched\-spec \-fno\-signed\-zeros 
447 \&\-fno\-toplevel\-reorder \-fno\-trapping\-math \-fno\-zero\-initialized\-in\-bss 
448 \&\-fomit\-frame\-pointer \-foptimize\-sibling\-calls 
449 \&\-fpartial\-inlining \-fpeel\-loops \-fpredictive\-commoning 
450 \&\-fprefetch\-loop\-arrays \-fprofile\-report 
451 \&\-fprofile\-correction \-fprofile\-dir=\fR\fIpath\fR \fB\-fprofile\-generate 
452 \&\-fprofile\-generate=\fR\fIpath\fR 
453 \&\fB\-fprofile\-use \-fprofile\-use=\fR\fIpath\fR \fB\-fprofile\-values 
454 \&\-fprofile\-reorder\-functions 
455 \&\-freciprocal\-math \-free \-frename\-registers \-freorder\-blocks 
456 \&\-freorder\-blocks\-and\-partition \-freorder\-functions 
457 \&\-frerun\-cse\-after\-loop \-freschedule\-modulo\-scheduled\-loops 
458 \&\-frounding\-math \-fsched2\-use\-superblocks \-fsched\-pressure 
459 \&\-fsched\-spec\-load \-fsched\-spec\-load\-dangerous 
460 \&\-fsched\-stalled\-insns\-dep[=\fR\fIn\fR\fB] \-fsched\-stalled\-insns[=\fR\fIn\fR\fB] 
461 \&\-fsched\-group\-heuristic \-fsched\-critical\-path\-heuristic 
462 \&\-fsched\-spec\-insn\-heuristic \-fsched\-rank\-heuristic 
463 \&\-fsched\-last\-insn\-heuristic \-fsched\-dep\-count\-heuristic 
464 \&\-fschedule\-fusion 
465 \&\-fschedule\-insns \-fschedule\-insns2 \-fsection\-anchors 
466 \&\-fselective\-scheduling \-fselective\-scheduling2 
467 \&\-fsel\-sched\-pipelining \-fsel\-sched\-pipelining\-outer\-loops 
468 \&\-fsemantic\-interposition 
469 \&\-fshrink\-wrap \-fsignaling\-nans \-fsingle\-precision\-constant 
470 \&\-fsplit\-ivs\-in\-unroller \-fsplit\-wide\-types \-fssa\-phiopt 
471 \&\-fstack\-protector \-fstack\-protector\-all \-fstack\-protector\-strong 
472 \&\-fstack\-protector\-explicit \-fstdarg\-opt \-fstrict\-aliasing 
473 \&\-fstrict\-overflow \-fthread\-jumps \-ftracer \-ftree\-bit\-ccp 
474 \&\-ftree\-builtin\-call\-dce \-ftree\-ccp \-ftree\-ch 
475 \&\-ftree\-coalesce\-inline\-vars \-ftree\-coalesce\-vars \-ftree\-copy\-prop 
476 \&\-ftree\-copyrename \-ftree\-dce \-ftree\-dominator\-opts \-ftree\-dse 
477 \&\-ftree\-forwprop \-ftree\-fre \-ftree\-loop\-if\-convert 
478 \&\-ftree\-loop\-if\-convert\-stores \-ftree\-loop\-im 
479 \&\-ftree\-phiprop \-ftree\-loop\-distribution \-ftree\-loop\-distribute\-patterns 
480 \&\-ftree\-loop\-ivcanon \-ftree\-loop\-linear \-ftree\-loop\-optimize 
481 \&\-ftree\-loop\-vectorize 
482 \&\-ftree\-parallelize\-loops=\fR\fIn\fR \fB\-ftree\-pre \-ftree\-partial\-pre \-ftree\-pta 
483 \&\-ftree\-reassoc \-ftree\-sink \-ftree\-slsr \-ftree\-sra 
484 \&\-ftree\-switch\-conversion \-ftree\-tail\-merge \-ftree\-ter 
485 \&\-ftree\-vectorize \-ftree\-vrp 
486 \&\-funit\-at\-a\-time \-funroll\-all\-loops \-funroll\-loops 
487 \&\-funsafe\-loop\-optimizations \-funsafe\-math\-optimizations \-funswitch\-loops 
488 \&\-fipa\-ra \-fvariable\-expansion\-in\-unroller \-fvect\-cost\-model \-fvpt 
489 \&\-fweb \-fwhole\-program \-fwpa \-fuse\-linker\-plugin 
490 \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
491 \&\fB\-O  \-O0  \-O1  \-O2  \-O3  \-Os \-Ofast \-Og\fR
492 .IP "\fIPreprocessor Options\fR" 4
493 .IX Item "Preprocessor Options"
494 \&\fB\-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR 
495 \&\fB\-A\-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR] 
496 \&\fB\-C  \-dD  \-dI  \-dM  \-dN 
497 \&\-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]  \fB\-E  \-H 
498 \&\-idirafter\fR \fIdir\fR 
499 \&\fB\-include\fR \fIfile\fR  \fB\-imacros\fR \fIfile\fR 
500 \&\fB\-iprefix\fR \fIfile\fR  \fB\-iwithprefix\fR \fIdir\fR 
501 \&\fB\-iwithprefixbefore\fR \fIdir\fR  \fB\-isystem\fR \fIdir\fR 
502 \&\fB\-imultilib\fR \fIdir\fR \fB\-isysroot\fR \fIdir\fR 
503 \&\fB\-M  \-MM  \-MF  \-MG  \-MP  \-MQ  \-MT  \-nostdinc  
504 \&\-P  \-fdebug\-cpp \-ftrack\-macro\-expansion \-fworking\-directory 
505 \&\-remap \-trigraphs  \-undef  \-U\fR\fImacro\fR  
506 \&\fB\-Wp,\fR\fIoption\fR \fB\-Xpreprocessor\fR \fIoption\fR \fB\-no\-integrated\-cpp\fR
507 .IP "\fIAssembler Option\fR" 4
508 .IX Item "Assembler Option"
509 \&\fB\-Wa,\fR\fIoption\fR  \fB\-Xassembler\fR \fIoption\fR
510 .IP "\fILinker Options\fR" 4
511 .IX Item "Linker Options"
512 \&\fIobject-file-name\fR  \fB\-fuse\-ld=\fR\fIlinker\fR \fB\-l\fR\fIlibrary\fR 
513 \&\fB\-nostartfiles  \-nodefaultlibs  \-nostdlib \-pie \-rdynamic 
514 \&\-s  \-static \-static\-libgcc \-static\-libstdc++ 
515 \&\-static\-libasan \-static\-libtsan \-static\-liblsan \-static\-libubsan 
516 \&\-static\-libmpx \-static\-libmpxwrappers 
517 \&\-shared \-shared\-libgcc  \-symbolic 
518 \&\-T\fR \fIscript\fR  \fB\-Wl,\fR\fIoption\fR  \fB\-Xlinker\fR \fIoption\fR 
519 \&\fB\-u\fR \fIsymbol\fR \fB\-z\fR \fIkeyword\fR
520 .IP "\fIDirectory Options\fR" 4
521 .IX Item "Directory Options"
522 \&\fB\-B\fR\fIprefix\fR \fB\-I\fR\fIdir\fR \fB\-iplugindir=\fR\fIdir\fR 
523 \&\fB\-iquote\fR\fIdir\fR \fB\-L\fR\fIdir\fR \fB\-specs=\fR\fIfile\fR \fB\-I\- 
524 \&\-\-sysroot=\fR\fIdir\fR \fB\-\-no\-sysroot\-suffix\fR
525 .IP "\fIMachine Dependent Options\fR" 4
526 .IX Item "Machine Dependent Options"
527 \&\fIAArch64 Options\fR
528 \&\fB\-mabi=\fR\fIname\fR  \fB\-mbig\-endian  \-mlittle\-endian 
529 \&\-mgeneral\-regs\-only 
530 \&\-mcmodel=tiny  \-mcmodel=small  \-mcmodel=large 
531 \&\-mstrict\-align 
532 \&\-momit\-leaf\-frame\-pointer  \-mno\-omit\-leaf\-frame\-pointer 
533 \&\-mtls\-dialect=desc  \-mtls\-dialect=traditional 
534 \&\-mfix\-cortex\-a53\-835769  \-mno\-fix\-cortex\-a53\-835769 
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 \-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 .SS "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 .SS "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 .SS "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
1648 C90 \s0(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 C\s0 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 C \s0(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 C90,\s0 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 C90,\s0 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 C90\s0 programs (certain \s-1GNU\s0 extensions that conflict
1711 with \s-1ISO C90\s0 are disabled). Same as \fB\-ansi\fR for C code.
1712 .IP "\fBiso9899:199409\fR" 4
1713 .IX Item "iso9899:199409"
1714 \&\s-1ISO C90\s0 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 C99. \s0 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 C11,\s0 the 2011 revision of the \s-1ISO C\s0 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 C90 \s0(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 C99. \s0 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 C11. \s0 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 \*(C+\s0 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 \*(C+\s0 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 \*(C+\s0 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 \*(C+\s0 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 C99.\s0
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 C\s0 trigraphs.  The \fB\-ansi\fR option (and \fB\-std\fR
2010 options for strict \s-1ISO C\s0 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
2020 CPP\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 .SS "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 \*(C+\s0 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 C. \s0 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 \*(C+\s0
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 3.4\s0 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 for
2654 non-constants the diagnostic required by the standard.  Note that this
2655 does not affect the meaning of well-formed code; narrowing conversions
2656 are still considered 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 \*(C+11\s0 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 .SS "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 X. \s0 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 X 10.4\s0 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 X 10.2\s0 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 4.0. \s0 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 4.0\s0 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 X 10.3\s0
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 .SS "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 .SS "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 C\s0 and \s-1ISO \*(C+\s0;
3207 reject all programs that use forbidden extensions, and some other
3208 programs that do not follow \s-1ISO C\s0 and \s-1ISO \*(C+. \s0 For \s-1ISO C,\s0 follows the
3209 version of the \s-1ISO C\s0 standard specified by any \fB\-std\fR option used.
3210 .Sp
3211 Valid \s-1ISO C\s0 and \s-1ISO \*(C+\s0 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 C\s0).  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
3224 C\s0 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 C \s0\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 C\s0 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 C\s0 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
3240 C\s0 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 C90\s0 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 C\s0 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 C\s0 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 4.4.\s0
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 C. \s0 Also warn about \s-1ISO C\s0 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 C\s0 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 C\s0 style function definitions.  This warning intentionally is
4206 \&\fInot\fR issued for prototype declarations or variadic functions
4207 because these \s-1ISO C\s0 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 C99\s0 and is by default
4226 allowed in \s-1GCC. \s0 It is not supported by \s-1ISO C90.  \s0
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 C\s0 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 C90,\s0 but present in \s-1ISO C99.\s0
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 C99,\s0 but present in \s-1ISO C11.\s0
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 C\s0 constructs that are outside of the common subset of
4342 \&\s-1ISO C\s0 and \s-1ISO \*(C+,\s0 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 \*(C+ 1998\s0
4347 and \s-1ISO \*(C+ 2011,\s0 e.g., identifiers in \s-1ISO \*(C+ 1998\s0 that are keywords
4348 in \s-1ISO \*(C+ 2011. \s0 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 \*(C+ 2011\s0
4353 and \s-1ISO \*(C+ 2014. \s0 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 C\s0 and \s-1ISO \*(C+,\s0 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 10646\s0 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 10646 \*(L"C\*(R"\s0 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 C\s0 and \s-1ISO \*(C+\s0 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 C\s0 or \*(C+ and have all your identifiers in \s-1NFC.
4675 \&\s0\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 10646\s0 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 LATIN SMALL
4688 LETTER N\*(R",\s0 displays just like a regular \f(CW\*(C`n\*(C'\fR that has been
4689 placed in a superscript.  \s-1ISO 10646\s0 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 4.4\s0 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 4.4.\s0
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 \*(C+\s0 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 C90\s0 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 C90\s0 mode, or if the \s-1GNU\s0
4826 alternate syntax is used in \s-1ISO C99\s0 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 .SS "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, XCOFF,\s0 or \s-1DWARF 2\s0).  \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 2,\s0 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 RS/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 3\s0 extensions in the unwind tables.
5018 .Sp
5019 Version 4 may require \s-1GDB 7.0\s0 and \fB\-fvar\-tracking\-assignments\fR
5020 for maximum benefit.
5021 .IP "\fB\-grecord\-gcc\-switches\fR" 4
5022 .IX Item "-grecord-gcc-switches"
5023 This switch causes the command-line options used to invoke the
5024 compiler that may affect code generation to be appended to the
5025 DW_AT_producer attribute in \s-1DWARF\s0 debugging information.  The options
5026 are concatenated with spaces separating them from each other and from
5027 the compiler version.  See also \fB\-frecord\-gcc\-switches\fR for another
5028 way of storing compiler options into the object file.  This is the default.
5029 .IP "\fB\-gno\-record\-gcc\-switches\fR" 4
5030 .IX Item "-gno-record-gcc-switches"
5031 Disallow appending command-line options to the DW_AT_producer attribute
5032 in \s-1DWARF\s0 debugging information.
5033 .IP "\fB\-gstrict\-dwarf\fR" 4
5034 .IX Item "-gstrict-dwarf"
5035 Disallow using extensions of later \s-1DWARF\s0 standard version than selected
5036 with \fB\-gdwarf\-\fR\fIversion\fR.  On most targets using non-conflicting
5037 \&\s-1DWARF\s0 extensions from later standard versions is allowed.
5038 .IP "\fB\-gno\-strict\-dwarf\fR" 4
5039 .IX Item "-gno-strict-dwarf"
5040 Allow using extensions of later \s-1DWARF\s0 standard version than selected with
5041 \&\fB\-gdwarf\-\fR\fIversion\fR.
5042 .IP "\fB\-gz\fR[\fB=\fR\fItype\fR]" 4
5043 .IX Item "-gz[=type]"
5044 Produce compressed debug sections in \s-1DWARF\s0 format, if that is supported.
5045 If \fItype\fR is not given, the default type depends on the capabilities
5046 of the assembler and linker used.  \fItype\fR may be one of
5047 \&\fBnone\fR (don't compress debug sections), \fBzlib\fR (use zlib
5048 compression in \s-1ELF\s0 gABI format), or \fBzlib-gnu\fR (use zlib
5049 compression in traditional \s-1GNU\s0 format).  If the linker doesn't support
5050 writing compressed debug sections, the option is rejected.  Otherwise,
5051 if the assembler does not support them, \fB\-gz\fR is silently ignored
5052 when producing object files.
5053 .IP "\fB\-gvms\fR" 4
5054 .IX Item "-gvms"
5055 Produce debugging information in Alpha/VMS debug format (if that is
5056 supported).  This is the format used by \s-1DEBUG\s0 on Alpha/VMS systems.
5057 .IP "\fB\-g\fR\fIlevel\fR" 4
5058 .IX Item "-glevel"
5059 .PD 0
5060 .IP "\fB\-ggdb\fR\fIlevel\fR" 4
5061 .IX Item "-ggdblevel"
5062 .IP "\fB\-gstabs\fR\fIlevel\fR" 4
5063 .IX Item "-gstabslevel"
5064 .IP "\fB\-gcoff\fR\fIlevel\fR" 4
5065 .IX Item "-gcofflevel"
5066 .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
5067 .IX Item "-gxcofflevel"
5068 .IP "\fB\-gvms\fR\fIlevel\fR" 4
5069 .IX Item "-gvmslevel"
5070 .PD
5071 Request debugging information and also use \fIlevel\fR to specify how
5072 much information.  The default level is 2.
5073 .Sp
5074 Level 0 produces no debug information at all.  Thus, \fB\-g0\fR negates
5075 \&\fB\-g\fR.
5076 .Sp
5077 Level 1 produces minimal information, enough for making backtraces in
5078 parts of the program that you don't plan to debug.  This includes
5079 descriptions of functions and external variables, and line number
5080 tables, but no information about local variables.
5081 .Sp
5082 Level 3 includes extra information, such as all the macro definitions
5083 present in the program.  Some debuggers support macro expansion when
5084 you use \fB\-g3\fR.
5085 .Sp
5086 \&\fB\-gdwarf\-2\fR does not accept a concatenated debug level, because
5087 \&\s-1GCC\s0 used to support an option \fB\-gdwarf\fR that meant to generate
5088 debug information in version 1 of the \s-1DWARF\s0 format (which is very
5089 different from version 2), and it would have been too confusing.  That
5090 debug format is long obsolete, but the option cannot be changed now.
5091 Instead use an additional \fB\-g\fR\fIlevel\fR option to change the
5092 debug level for \s-1DWARF.\s0
5093 .IP "\fB\-gtoggle\fR" 4
5094 .IX Item "-gtoggle"
5095 Turn off generation of debug info, if leaving out this option
5096 generates it, or turn it on at level 2 otherwise.  The position of this
5097 argument in the command line does not matter; it takes effect after all
5098 other options are processed, and it does so only once, no matter how
5099 many times it is given.  This is mainly intended to be used with
5100 \&\fB\-fcompare\-debug\fR.
5101 .IP "\fB\-fsanitize=address\fR" 4
5102 .IX Item "-fsanitize=address"
5103 Enable AddressSanitizer, a fast memory error detector.
5104 Memory access instructions are instrumented to detect
5105 out-of-bounds and use-after-free bugs.
5106 See <\fBhttp://code.google.com/p/address\-sanitizer/\fR> for
5107 more details.  The run-time behavior can be influenced using the
5108 \&\fB\s-1ASAN_OPTIONS\s0\fR environment variable; see
5109 <\fBhttps://code.google.com/p/address\-sanitizer/wiki/Flags#Run\-time_flags\fR> for
5110 a list of supported options.
5111 .IP "\fB\-fsanitize=kernel\-address\fR" 4
5112 .IX Item "-fsanitize=kernel-address"
5113 Enable AddressSanitizer for Linux kernel.
5114 See <\fBhttp://code.google.com/p/address\-sanitizer/wiki/AddressSanitizerForKernel\fR> for more details.
5115 .IP "\fB\-fsanitize=thread\fR" 4
5116 .IX Item "-fsanitize=thread"
5117 Enable ThreadSanitizer, a fast data race detector.
5118 Memory access instructions are instrumented to detect
5119 data race bugs.  See <\fBhttp://code.google.com/p/thread\-sanitizer/\fR> for more
5120 details. The run-time behavior can be influenced using the \fB\s-1TSAN_OPTIONS\s0\fR
5121 environment variable; see
5122 <\fBhttps://code.google.com/p/thread\-sanitizer/wiki/Flags\fR> for a list of
5123 supported options.
5124 .IP "\fB\-fsanitize=leak\fR" 4
5125 .IX Item "-fsanitize=leak"
5126 Enable LeakSanitizer, a memory leak detector.
5127 This option only matters for linking of executables and if neither
5128 \&\fB\-fsanitize=address\fR nor \fB\-fsanitize=thread\fR is used.  In that
5129 case the executable is linked against a library that overrides \f(CW\*(C`malloc\*(C'\fR
5130 and other allocator functions.  See
5131 <\fBhttps://code.google.com/p/address\-sanitizer/wiki/LeakSanitizer\fR> for more
5132 details.  The run-time behavior can be influenced using the
5133 \&\fB\s-1LSAN_OPTIONS\s0\fR environment variable.
5134 .IP "\fB\-fsanitize=undefined\fR" 4
5135 .IX Item "-fsanitize=undefined"
5136 Enable UndefinedBehaviorSanitizer, a fast undefined behavior detector.
5137 Various computations are instrumented to detect undefined behavior
5138 at runtime.  Current suboptions are:
5139 .RS 4
5140 .IP "\fB\-fsanitize=shift\fR" 4
5141 .IX Item "-fsanitize=shift"
5142 This option enables checking that the result of a shift operation is
5143 not undefined.  Note that what exactly is considered undefined differs
5144 slightly between C and \*(C+, as well as between \s-1ISO C90\s0 and C99, etc.
5145 .IP "\fB\-fsanitize=integer\-divide\-by\-zero\fR" 4
5146 .IX Item "-fsanitize=integer-divide-by-zero"
5147 Detect integer division by zero as well as \f(CW\*(C`INT_MIN / \-1\*(C'\fR division.
5148 .IP "\fB\-fsanitize=unreachable\fR" 4
5149 .IX Item "-fsanitize=unreachable"
5150 With this option, the compiler turns the \f(CW\*(C`_\|_builtin_unreachable\*(C'\fR
5151 call into a diagnostics message call instead.  When reaching the
5152 \&\f(CW\*(C`_\|_builtin_unreachable\*(C'\fR call, the behavior is undefined.
5153 .IP "\fB\-fsanitize=vla\-bound\fR" 4
5154 .IX Item "-fsanitize=vla-bound"
5155 This option instructs the compiler to check that the size of a variable
5156 length array is positive.
5157 .IP "\fB\-fsanitize=null\fR" 4
5158 .IX Item "-fsanitize=null"
5159 This option enables pointer checking.  Particularly, the application
5160 built with this option turned on will issue an error message when it
5161 tries to dereference a \s-1NULL\s0 pointer, or if a reference (possibly an
5162 rvalue reference) is bound to a \s-1NULL\s0 pointer, or if a method is invoked
5163 on an object pointed by a \s-1NULL\s0 pointer.
5164 .IP "\fB\-fsanitize=return\fR" 4
5165 .IX Item "-fsanitize=return"
5166 This option enables return statement checking.  Programs
5167 built with this option turned on will issue an error message
5168 when the end of a non-void function is reached without actually
5169 returning a value.  This option works in \*(C+ only.
5170 .IP "\fB\-fsanitize=signed\-integer\-overflow\fR" 4
5171 .IX Item "-fsanitize=signed-integer-overflow"
5172 This option enables signed integer overflow checking.  We check that
5173 the result of \f(CW\*(C`+\*(C'\fR, \f(CW\*(C`*\*(C'\fR, and both unary and binary \f(CW\*(C`\-\*(C'\fR
5174 does not overflow in the signed arithmetics.  Note, integer promotion
5175 rules must be taken into account.  That is, the following is not an
5176 overflow:
5177 .Sp
5178 .Vb 2
5179 \&        signed char a = SCHAR_MAX;
5180 \&        a++;
5181 .Ve
5182 .IP "\fB\-fsanitize=bounds\fR" 4
5183 .IX Item "-fsanitize=bounds"
5184 This option enables instrumentation of array bounds.  Various out of bounds
5185 accesses are detected.  Flexible array members, flexible array member-like
5186 arrays, and initializers of variables with static storage are not instrumented.
5187 .IP "\fB\-fsanitize=alignment\fR" 4
5188 .IX Item "-fsanitize=alignment"
5189 This option enables checking of alignment of pointers when they are
5190 dereferenced, or when a reference is bound to insufficiently aligned target,
5191 or when a method or constructor is invoked on insufficiently aligned object.
5192 .IP "\fB\-fsanitize=object\-size\fR" 4
5193 .IX Item "-fsanitize=object-size"
5194 This option enables instrumentation of memory references using the
5195 \&\f(CW\*(C`_\|_builtin_object_size\*(C'\fR function.  Various out of bounds pointer
5196 accesses are detected.
5197 .IP "\fB\-fsanitize=float\-divide\-by\-zero\fR" 4
5198 .IX Item "-fsanitize=float-divide-by-zero"
5199 Detect floating-point division by zero.  Unlike other similar options,
5200 \&\fB\-fsanitize=float\-divide\-by\-zero\fR is not enabled by
5201 \&\fB\-fsanitize=undefined\fR, since floating-point division by zero can
5202 be a legitimate way of obtaining infinities and NaNs.
5203 .IP "\fB\-fsanitize=float\-cast\-overflow\fR" 4
5204 .IX Item "-fsanitize=float-cast-overflow"
5205 This option enables floating-point type to integer conversion checking.
5206 We check that the result of the conversion does not overflow.
5207 Unlike other similar options, \fB\-fsanitize=float\-cast\-overflow\fR is
5208 not enabled by \fB\-fsanitize=undefined\fR.
5209 This option does not work well with \f(CW\*(C`FE_INVALID\*(C'\fR exceptions enabled.
5210 .IP "\fB\-fsanitize=nonnull\-attribute\fR" 4
5211 .IX Item "-fsanitize=nonnull-attribute"
5212 This option enables instrumentation of calls, checking whether null values
5213 are not passed to arguments marked as requiring a non-null value by the
5214 \&\f(CW\*(C`nonnull\*(C'\fR function attribute.
5215 .IP "\fB\-fsanitize=returns\-nonnull\-attribute\fR" 4
5216 .IX Item "-fsanitize=returns-nonnull-attribute"
5217 This option enables instrumentation of return statements in functions
5218 marked with \f(CW\*(C`returns_nonnull\*(C'\fR function attribute, to detect returning
5219 of null values from such functions.
5220 .IP "\fB\-fsanitize=bool\fR" 4
5221 .IX Item "-fsanitize=bool"
5222 This option enables instrumentation of loads from bool.  If a value other
5223 than 0/1 is loaded, a run-time error is issued.
5224 .IP "\fB\-fsanitize=enum\fR" 4
5225 .IX Item "-fsanitize=enum"
5226 This option enables instrumentation of loads from an enum type.  If
5227 a value outside the range of values for the enum type is loaded,
5228 a run-time error is issued.
5229 .IP "\fB\-fsanitize=vptr\fR" 4
5230 .IX Item "-fsanitize=vptr"
5231 This option enables instrumentation of \*(C+ member function calls, member
5232 accesses and some conversions between pointers to base and derived classes,
5233 to verify the referenced object has the correct dynamic type.
5234 .RE
5235 .RS 4
5236 .Sp
5237 While \fB\-ftrapv\fR causes traps for signed overflows to be emitted,
5238 \&\fB\-fsanitize=undefined\fR gives a diagnostic message.
5239 This currently works only for the C family of languages.
5240 .RE
5241 .IP "\fB\-fno\-sanitize=all\fR" 4
5242 .IX Item "-fno-sanitize=all"
5243 This option disables all previously enabled sanitizers.
5244 \&\fB\-fsanitize=all\fR is not allowed, as some sanitizers cannot be used
5245 together.
5246 .IP "\fB\-fasan\-shadow\-offset=\fR\fInumber\fR" 4
5247 .IX Item "-fasan-shadow-offset=number"
5248 This option forces \s-1GCC\s0 to use custom shadow offset in AddressSanitizer checks.
5249 It is useful for experimenting with different shadow memory layouts in
5250 Kernel AddressSanitizer.
5251 .IP "\fB\-fsanitize\-recover\fR[\fB=\fR\fIopts\fR]" 4
5252 .IX Item "-fsanitize-recover[=opts]"
5253 \&\fB\-fsanitize\-recover=\fR controls error recovery mode for sanitizers
5254 mentioned in comma-separated list of \fIopts\fR.  Enabling this option
5255 for a sanitizer component causes it to attempt to continue
5256 running the program as if no error happened.  This means multiple
5257 runtime errors can be reported in a single program run, and the exit
5258 code of the program may indicate success even when errors
5259 have been reported.  The \fB\-fno\-sanitize\-recover=\fR option
5260 can be used to alter
5261 this behavior: only the first detected error is reported
5262 and program then exits with a non-zero exit code.
5263 .Sp
5264 Currently this feature only works for \fB\-fsanitize=undefined\fR (and its suboptions
5265 except for \fB\-fsanitize=unreachable\fR and \fB\-fsanitize=return\fR),
5266 \&\fB\-fsanitize=float\-cast\-overflow\fR, \fB\-fsanitize=float\-divide\-by\-zero\fR and
5267 \&\fB\-fsanitize=kernel\-address\fR.  For these sanitizers error recovery is turned on by default.
5268 \&\fB\-fsanitize\-recover=all\fR and \fB\-fno\-sanitize\-recover=all\fR is also
5269 accepted, the former enables recovery for all sanitizers that support it,
5270 the latter disables recovery for all sanitizers that support it.
5271 .Sp
5272 Syntax without explicit \fIopts\fR parameter is deprecated.  It is equivalent to
5273 .Sp
5274 .Vb 1
5275 \&        \-fsanitize\-recover=undefined,float\-cast\-overflow,float\-divide\-by\-zero
5276 .Ve
5277 .Sp
5278 Similarly \fB\-fno\-sanitize\-recover\fR is equivalent to
5279 .Sp
5280 .Vb 1
5281 \&        \-fno\-sanitize\-recover=undefined,float\-cast\-overflow,float\-divide\-by\-zero
5282 .Ve
5283 .IP "\fB\-fsanitize\-undefined\-trap\-on\-error\fR" 4
5284 .IX Item "-fsanitize-undefined-trap-on-error"
5285 The \fB\-fsanitize\-undefined\-trap\-on\-error\fR option instructs the compiler to
5286 report undefined behavior using \f(CW\*(C`_\|_builtin_trap\*(C'\fR rather than
5287 a \f(CW\*(C`libubsan\*(C'\fR library routine.  The advantage of this is that the
5288 \&\f(CW\*(C`libubsan\*(C'\fR library is not needed and is not linked in, so this
5289 is usable even in freestanding environments.
5290 .IP "\fB\-fcheck\-pointer\-bounds\fR" 4
5291 .IX Item "-fcheck-pointer-bounds"
5292 Enable Pointer Bounds Checker instrumentation.  Each memory reference
5293 is instrumented with checks of the pointer used for memory access against
5294 bounds associated with that pointer.
5295 .Sp
5296 Currently there
5297 is only an implementation for Intel \s-1MPX\s0 available, thus x86 target
5298 and \fB\-mmpx\fR are required to enable this feature.  
5299 MPX-based instrumentation requires
5300 a runtime library to enable \s-1MPX\s0 in hardware and handle bounds
5301 violation signals.  By default when \fB\-fcheck\-pointer\-bounds\fR
5302 and \fB\-mmpx\fR options are used to link a program, the \s-1GCC\s0 driver
5303 links against the \fIlibmpx\fR runtime library and \fIlibmpxwrappers\fR
5304 library.  It also passes '\-z bndplt' to a linker in case it supports this
5305 option (which is checked on libmpx configuration).  Note that old versions
5306 of linker may ignore option.  Gold linker doesn't support '\-z bndplt'
5307 option.  With no '\-z bndplt' support in linker all calls to dynamic libraries
5308 lose passed bounds reducing overall protection level.  It's highly
5309 recommended to use linker with '\-z bndplt' support.  In case such linker
5310 is not available it is adviced to always use \fB\-static\-libmpxwrappers\fR
5311 for better protection level or use \fB\-static\fR to completely avoid
5312 external calls to dynamic libraries.  MPX-based instrumentation
5313 may be used for debugging and also may be included in production code
5314 to increase program security.  Depending on usage, you may
5315 have different requirements for the runtime library.  The current version
5316 of the \s-1MPX\s0 runtime library is more oriented for use as a debugging
5317 tool.  \s-1MPX\s0 runtime library usage implies \fB\-lpthread\fR.  See
5318 also \fB\-static\-libmpx\fR.  The runtime library  behavior can be
5319 influenced using various \fBCHKP_RT_*\fR environment variables.  See
5320 <\fBhttps://gcc.gnu.org/wiki/Intel%20MPX%20support%20in%20the%20GCC%20compiler\fR>
5321 for more details.
5322 .Sp
5323 Generated instrumentation may be controlled by various
5324 \&\fB\-fchkp\-*\fR options and by the \f(CW\*(C`bnd_variable_size\*(C'\fR
5325 structure field attribute and
5326 \&\f(CW\*(C`bnd_legacy\*(C'\fR, and \f(CW\*(C`bnd_instrument\*(C'\fR function attributes.  \s-1GCC\s0 also provides a number of built-in
5327 functions for controlling the Pointer Bounds Checker.
5328 .IP "\fB\-fchkp\-check\-incomplete\-type\fR" 4
5329 .IX Item "-fchkp-check-incomplete-type"
5330 Generate pointer bounds checks for variables with incomplete type.
5331 Enabled by default.
5332 .IP "\fB\-fchkp\-narrow\-bounds\fR" 4
5333 .IX Item "-fchkp-narrow-bounds"
5334 Controls bounds used by Pointer Bounds Checker for pointers to object
5335 fields.  If narrowing is enabled then field bounds are used.  Otherwise
5336 object bounds are used.  See also \fB\-fchkp\-narrow\-to\-innermost\-array\fR
5337 and \fB\-fchkp\-first\-field\-has\-own\-bounds\fR.  Enabled by default.
5338 .IP "\fB\-fchkp\-first\-field\-has\-own\-bounds\fR" 4
5339 .IX Item "-fchkp-first-field-has-own-bounds"
5340 Forces Pointer Bounds Checker to use narrowed bounds for the address of the
5341 first field in the structure.  By default a pointer to the first field has
5342 the same bounds as a pointer to the whole structure.
5343 .IP "\fB\-fchkp\-narrow\-to\-innermost\-array\fR" 4
5344 .IX Item "-fchkp-narrow-to-innermost-array"
5345 Forces Pointer Bounds Checker to use bounds of the innermost arrays in
5346 case of nested static array access.  By default this option is disabled and
5347 bounds of the outermost array are used.
5348 .IP "\fB\-fchkp\-optimize\fR" 4
5349 .IX Item "-fchkp-optimize"
5350 Enables Pointer Bounds Checker optimizations.  Enabled by default at
5351 optimization levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR.
5352 .IP "\fB\-fchkp\-use\-fast\-string\-functions\fR" 4
5353 .IX Item "-fchkp-use-fast-string-functions"
5354 Enables use of \f(CW*_nobnd\fR versions of string functions (not copying bounds)
5355 by Pointer Bounds Checker.  Disabled by default.
5356 .IP "\fB\-fchkp\-use\-nochk\-string\-functions\fR" 4
5357 .IX Item "-fchkp-use-nochk-string-functions"
5358 Enables use of \f(CW*_nochk\fR versions of string functions (not checking bounds)
5359 by Pointer Bounds Checker.  Disabled by default.
5360 .IP "\fB\-fchkp\-use\-static\-bounds\fR" 4
5361 .IX Item "-fchkp-use-static-bounds"
5362 Allow Pointer Bounds Checker to generate static bounds holding
5363 bounds of static variables.  Enabled by default.
5364 .IP "\fB\-fchkp\-use\-static\-const\-bounds\fR" 4
5365 .IX Item "-fchkp-use-static-const-bounds"
5366 Use statically-initialized bounds for constant bounds instead of
5367 generating them each time they are required.  By default enabled when
5368 \&\fB\-fchkp\-use\-static\-bounds\fR is enabled.
5369 .IP "\fB\-fchkp\-treat\-zero\-dynamic\-size\-as\-infinite\fR" 4
5370 .IX Item "-fchkp-treat-zero-dynamic-size-as-infinite"
5371 With this option, objects with incomplete type whose
5372 dynamically-obtained size is zero are treated as having infinite size
5373 instead by Pointer Bounds
5374 Checker.  This option may be helpful if a program is linked with a library
5375 missing size information for some symbols.  Disabled by default.
5376 .IP "\fB\-fchkp\-check\-read\fR" 4
5377 .IX Item "-fchkp-check-read"
5378 Instructs Pointer Bounds Checker to generate checks for all read
5379 accesses to memory.  Enabled by default.
5380 .IP "\fB\-fchkp\-check\-write\fR" 4
5381 .IX Item "-fchkp-check-write"
5382 Instructs Pointer Bounds Checker to generate checks for all write
5383 accesses to memory.  Enabled by default.
5384 .IP "\fB\-fchkp\-store\-bounds\fR" 4
5385 .IX Item "-fchkp-store-bounds"
5386 Instructs Pointer Bounds Checker to generate bounds stores for
5387 pointer writes.  Enabled by default.
5388 .IP "\fB\-fchkp\-instrument\-calls\fR" 4
5389 .IX Item "-fchkp-instrument-calls"
5390 Instructs Pointer Bounds Checker to pass pointer bounds to calls.
5391 Enabled by default.
5392 .IP "\fB\-fchkp\-instrument\-marked\-only\fR" 4
5393 .IX Item "-fchkp-instrument-marked-only"
5394 Instructs Pointer Bounds Checker to instrument only functions
5395 marked with the \f(CW\*(C`bnd_instrument\*(C'\fR attribute.  Disabled by default.
5396 .IP "\fB\-fchkp\-use\-wrappers\fR" 4
5397 .IX Item "-fchkp-use-wrappers"
5398 Allows Pointer Bounds Checker to replace calls to built-in functions
5399 with calls to wrapper functions.  When \fB\-fchkp\-use\-wrappers\fR
5400 is used to link a program, the \s-1GCC\s0 driver automatically links
5401 against \fIlibmpxwrappers\fR.  See also \fB\-static\-libmpxwrappers\fR.
5402 Enabled by default.
5403 .IP "\fB\-fdump\-final\-insns\fR[\fB=\fR\fIfile\fR]" 4
5404 .IX Item "-fdump-final-insns[=file]"
5405 Dump the final internal representation (\s-1RTL\s0) to \fIfile\fR.  If the
5406 optional argument is omitted (or if \fIfile\fR is \f(CW\*(C`.\*(C'\fR), the name
5407 of the dump file is determined by appending \f(CW\*(C`.gkd\*(C'\fR to the
5408 compilation output file name.
5409 .IP "\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR]" 4
5410 .IX Item "-fcompare-debug[=opts]"
5411 If no error occurs during compilation, run the compiler a second time,
5412 adding \fIopts\fR and \fB\-fcompare\-debug\-second\fR to the arguments
5413 passed to the second compilation.  Dump the final internal
5414 representation in both compilations, and print an error if they differ.
5415 .Sp
5416 If the equal sign is omitted, the default \fB\-gtoggle\fR is used.
5417 .Sp
5418 The environment variable \fB\s-1GCC_COMPARE_DEBUG\s0\fR, if defined, non-empty
5419 and nonzero, implicitly enables \fB\-fcompare\-debug\fR.  If
5420 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR is defined to a string starting with a dash,
5421 then it is used for \fIopts\fR, otherwise the default \fB\-gtoggle\fR
5422 is used.
5423 .Sp
5424 \&\fB\-fcompare\-debug=\fR, with the equal sign but without \fIopts\fR,
5425 is equivalent to \fB\-fno\-compare\-debug\fR, which disables the dumping
5426 of the final representation and the second compilation, preventing even
5427 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR from taking effect.
5428 .Sp
5429 To verify full coverage during \fB\-fcompare\-debug\fR testing, set
5430 \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR to say \fB\-fcompare\-debug\-not\-overridden\fR,
5431 which \s-1GCC\s0 rejects as an invalid option in any actual compilation
5432 (rather than preprocessing, assembly or linking).  To get just a
5433 warning, setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR to \fB\-w%n\-fcompare\-debug
5434 not overridden\fR will do.
5435 .IP "\fB\-fcompare\-debug\-second\fR" 4
5436 .IX Item "-fcompare-debug-second"
5437 This option is implicitly passed to the compiler for the second
5438 compilation requested by \fB\-fcompare\-debug\fR, along with options to
5439 silence warnings, and omitting other options that would cause
5440 side-effect compiler outputs to files or to the standard output.  Dump
5441 files and preserved temporary files are renamed so as to contain the
5442 \&\f(CW\*(C`.gk\*(C'\fR additional extension during the second compilation, to avoid
5443 overwriting those generated by the first.
5444 .Sp
5445 When this option is passed to the compiler driver, it causes the
5446 \&\fIfirst\fR compilation to be skipped, which makes it useful for little
5447 other than debugging the compiler proper.
5448 .IP "\fB\-feliminate\-dwarf2\-dups\fR" 4
5449 .IX Item "-feliminate-dwarf2-dups"
5450 Compress \s-1DWARF 2\s0 debugging information by eliminating duplicated
5451 information about each symbol.  This option only makes sense when
5452 generating \s-1DWARF 2\s0 debugging information with \fB\-gdwarf\-2\fR.
5453 .IP "\fB\-femit\-struct\-debug\-baseonly\fR" 4
5454 .IX Item "-femit-struct-debug-baseonly"
5455 Emit debug information for struct-like types
5456 only when the base name of the compilation source file
5457 matches the base name of file in which the struct is defined.
5458 .Sp
5459 This option substantially reduces the size of debugging information,
5460 but at significant potential loss in type information to the debugger.
5461 See \fB\-femit\-struct\-debug\-reduced\fR for a less aggressive option.
5462 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
5463 .Sp
5464 This option works only with \s-1DWARF 2.\s0
5465 .IP "\fB\-femit\-struct\-debug\-reduced\fR" 4
5466 .IX Item "-femit-struct-debug-reduced"
5467 Emit debug information for struct-like types
5468 only when the base name of the compilation source file
5469 matches the base name of file in which the type is defined,
5470 unless the struct is a template or defined in a system header.
5471 .Sp
5472 This option significantly reduces the size of debugging information,
5473 with some potential loss in type information to the debugger.
5474 See \fB\-femit\-struct\-debug\-baseonly\fR for a more aggressive option.
5475 See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
5476 .Sp
5477 This option works only with \s-1DWARF 2.\s0
5478 .IP "\fB\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR]" 4
5479 .IX Item "-femit-struct-debug-detailed[=spec-list]"
5480 Specify the struct-like types
5481 for which the compiler generates debug information.
5482 The intent is to reduce duplicate struct debug information
5483 between different object files within the same program.
5484 .Sp
5485 This option is a detailed version of
5486 \&\fB\-femit\-struct\-debug\-reduced\fR and \fB\-femit\-struct\-debug\-baseonly\fR,
5487 which serves for most needs.
5488 .Sp
5489 A specification has the syntax[\fBdir:\fR|\fBind:\fR][\fBord:\fR|\fBgen:\fR](\fBany\fR|\fBsys\fR|\fBbase\fR|\fBnone\fR)
5490 .Sp
5491 The optional first word limits the specification to
5492 structs that are used directly (\fBdir:\fR) or used indirectly (\fBind:\fR).
5493 A struct type is used directly when it is the type of a variable, member.
5494 Indirect uses arise through pointers to structs.
5495 That is, when use of an incomplete struct is valid, the use is indirect.
5496 An example is
5497 \&\fBstruct one direct; struct two * indirect;\fR.
5498 .Sp
5499 The optional second word limits the specification to
5500 ordinary structs (\fBord:\fR) or generic structs (\fBgen:\fR).
5501 Generic structs are a bit complicated to explain.
5502 For \*(C+, these are non-explicit specializations of template classes,
5503 or non-template classes within the above.
5504 Other programming languages have generics,
5505 but \fB\-femit\-struct\-debug\-detailed\fR does not yet implement them.
5506 .Sp
5507 The third word specifies the source files for those
5508 structs for which the compiler should emit debug information.
5509 The values \fBnone\fR and \fBany\fR have the normal meaning.
5510 The value \fBbase\fR means that
5511 the base of name of the file in which the type declaration appears
5512 must match the base of the name of the main compilation file.
5513 In practice, this means that when compiling \fIfoo.c\fR, debug information
5514 is generated for types declared in that file and \fIfoo.h\fR,
5515 but not other header files.
5516 The value \fBsys\fR means those types satisfying \fBbase\fR
5517 or declared in system or compiler headers.
5518 .Sp
5519 You may need to experiment to determine the best settings for your application.
5520 .Sp
5521 The default is \fB\-femit\-struct\-debug\-detailed=all\fR.
5522 .Sp
5523 This option works only with \s-1DWARF 2.\s0
5524 .IP "\fB\-fno\-merge\-debug\-strings\fR" 4
5525 .IX Item "-fno-merge-debug-strings"
5526 Direct the linker to not merge together strings in the debugging
5527 information that are identical in different object files.  Merging is
5528 not supported by all assemblers or linkers.  Merging decreases the size
5529 of the debug information in the output file at the cost of increasing
5530 link processing time.  Merging is enabled by default.
5531 .IP "\fB\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
5532 .IX Item "-fdebug-prefix-map=old=new"
5533 When compiling files in directory \fI\fIold\fI\fR, record debugging
5534 information describing them as in \fI\fInew\fI\fR instead.
5535 .IP "\fB\-fno\-dwarf2\-cfi\-asm\fR" 4
5536 .IX Item "-fno-dwarf2-cfi-asm"
5537 Emit \s-1DWARF 2\s0 unwind info as compiler generated \f(CW\*(C`.eh_frame\*(C'\fR section
5538 instead of using \s-1GAS \s0\f(CW\*(C`.cfi_*\*(C'\fR directives.
5539 .IP "\fB\-p\fR" 4
5540 .IX Item "-p"
5541 Generate extra code to write profile information suitable for the
5542 analysis program \fBprof\fR.  You must use this option when compiling
5543 the source files you want data about, and you must also use it when
5544 linking.
5545 .IP "\fB\-pg\fR" 4
5546 .IX Item "-pg"
5547 Generate extra code to write profile information suitable for the
5548 analysis program \fBgprof\fR.  You must use this option when compiling
5549 the source files you want data about, and you must also use it when
5550 linking.
5551 .IP "\fB\-Q\fR" 4
5552 .IX Item "-Q"
5553 Makes the compiler print out each function name as it is compiled, and
5554 print some statistics about each pass when it finishes.
5555 .IP "\fB\-ftime\-report\fR" 4
5556 .IX Item "-ftime-report"
5557 Makes the compiler print some statistics about the time consumed by each
5558 pass when it finishes.
5559 .IP "\fB\-fmem\-report\fR" 4
5560 .IX Item "-fmem-report"
5561 Makes the compiler print some statistics about permanent memory
5562 allocation when it finishes.
5563 .IP "\fB\-fmem\-report\-wpa\fR" 4
5564 .IX Item "-fmem-report-wpa"
5565 Makes the compiler print some statistics about permanent memory
5566 allocation for the \s-1WPA\s0 phase only.
5567 .IP "\fB\-fpre\-ipa\-mem\-report\fR" 4
5568 .IX Item "-fpre-ipa-mem-report"
5569 .PD 0
5570 .IP "\fB\-fpost\-ipa\-mem\-report\fR" 4
5571 .IX Item "-fpost-ipa-mem-report"
5572 .PD
5573 Makes the compiler print some statistics about permanent memory
5574 allocation before or after interprocedural optimization.
5575 .IP "\fB\-fprofile\-report\fR" 4
5576 .IX Item "-fprofile-report"
5577 Makes the compiler print some statistics about consistency of the
5578 (estimated) profile and effect of individual passes.
5579 .IP "\fB\-fstack\-usage\fR" 4
5580 .IX Item "-fstack-usage"
5581 Makes the compiler output stack usage information for the program, on a
5582 per-function basis.  The filename for the dump is made by appending
5583 \&\fI.su\fR to the \fIauxname\fR.  \fIauxname\fR is generated from the name of
5584 the output file, if explicitly specified and it is not an executable,
5585 otherwise it is the basename of the source file.  An entry is made up
5586 of three fields:
5587 .RS 4
5588 .IP "*" 4
5589 The name of the function.
5590 .IP "*" 4
5591 A number of bytes.
5592 .IP "*" 4
5593 One or more qualifiers: \f(CW\*(C`static\*(C'\fR, \f(CW\*(C`dynamic\*(C'\fR, \f(CW\*(C`bounded\*(C'\fR.
5594 .RE
5595 .RS 4
5596 .Sp
5597 The qualifier \f(CW\*(C`static\*(C'\fR means that the function manipulates the stack
5598 statically: a fixed number of bytes are allocated for the frame on function
5599 entry and released on function exit; no stack adjustments are otherwise made
5600 in the function.  The second field is this fixed number of bytes.
5601 .Sp
5602 The qualifier \f(CW\*(C`dynamic\*(C'\fR means that the function manipulates the stack
5603 dynamically: in addition to the static allocation described above, stack
5604 adjustments are made in the body of the function, for example to push/pop
5605 arguments around function calls.  If the qualifier \f(CW\*(C`bounded\*(C'\fR is also
5606 present, the amount of these adjustments is bounded at compile time and
5607 the second field is an upper bound of the total amount of stack used by
5608 the function.  If it is not present, the amount of these adjustments is
5609 not bounded at compile time and the second field only represents the
5610 bounded part.
5611 .RE
5612 .IP "\fB\-fprofile\-arcs\fR" 4
5613 .IX Item "-fprofile-arcs"
5614 Add code so that program flow \fIarcs\fR are instrumented.  During
5615 execution the program records how many times each branch and call is
5616 executed and how many times it is taken or returns.  When the compiled
5617 program exits it saves this data to a file called
5618 \&\fI\fIauxname\fI.gcda\fR for each source file.  The data may be used for
5619 profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
5620 test coverage analysis (\fB\-ftest\-coverage\fR).  Each object file's
5621 \&\fIauxname\fR is generated from the name of the output file, if
5622 explicitly specified and it is not the final executable, otherwise it is
5623 the basename of the source file.  In both cases any suffix is removed
5624 (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
5625 \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
5626 .IP "\fB\-\-coverage\fR" 4
5627 .IX Item "--coverage"
5628 This option is used to compile and link code instrumented for coverage
5629 analysis.  The option is a synonym for \fB\-fprofile\-arcs\fR
5630 \&\fB\-ftest\-coverage\fR (when compiling) and \fB\-lgcov\fR (when
5631 linking).  See the documentation for those options for more details.
5632 .RS 4
5633 .IP "*" 4
5634 Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
5635 and code generation options.  For test coverage analysis, use the
5636 additional \fB\-ftest\-coverage\fR option.  You do not need to profile
5637 every source file in a program.
5638 .IP "*" 4
5639 Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
5640 (the latter implies the former).
5641 .IP "*" 4
5642 Run the program on a representative workload to generate the arc profile
5643 information.  This may be repeated any number of times.  You can run
5644 concurrent instances of your program, and provided that the file system
5645 supports locking, the data files will be correctly updated.  Also
5646 \&\f(CW\*(C`fork\*(C'\fR calls are detected and correctly handled (double counting
5647 will not happen).
5648 .IP "*" 4
5649 For profile-directed optimizations, compile the source files again with
5650 the same optimization and code generation options plus
5651 \&\fB\-fbranch\-probabilities\fR.
5652 .IP "*" 4
5653 For test coverage analysis, use \fBgcov\fR to produce human readable
5654 information from the \fI.gcno\fR and \fI.gcda\fR files.  Refer to the
5655 \&\fBgcov\fR documentation for further information.
5656 .RE
5657 .RS 4
5658 .Sp
5659 With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
5660 creates a program flow graph, then finds a spanning tree for the graph.
5661 Only arcs that are not on the spanning tree have to be instrumented: the
5662 compiler adds code to count the number of times that these arcs are
5663 executed.  When an arc is the only exit or only entrance to a block, the
5664 instrumentation code can be added to the block; otherwise, a new basic
5665 block must be created to hold the instrumentation code.
5666 .RE
5667 .IP "\fB\-ftest\-coverage\fR" 4
5668 .IX Item "-ftest-coverage"
5669 Produce a notes file that the \fBgcov\fR code-coverage utility can use to
5670 show program coverage.  Each source file's note file is called
5671 \&\fI\fIauxname\fI.gcno\fR.  Refer to the \fB\-fprofile\-arcs\fR option
5672 above for a description of \fIauxname\fR and instructions on how to
5673 generate test coverage data.  Coverage data matches the source files
5674 more closely if you do not optimize.
5675 .IP "\fB\-fdbg\-cnt\-list\fR" 4
5676 .IX Item "-fdbg-cnt-list"
5677 Print the name and the counter upper bound for all debug counters.
5678 .IP "\fB\-fdbg\-cnt=\fR\fIcounter-value-list\fR" 4
5679 .IX Item "-fdbg-cnt=counter-value-list"
5680 Set the internal debug counter upper bound.  \fIcounter-value-list\fR
5681 is a comma-separated list of \fIname\fR:\fIvalue\fR pairs
5682 which sets the upper bound of each debug counter \fIname\fR to \fIvalue\fR.
5683 All debug counters have the initial upper bound of \f(CW\*(C`UINT_MAX\*(C'\fR;
5684 thus \f(CW\*(C`dbg_cnt\*(C'\fR returns true always unless the upper bound
5685 is set by this option.
5686 For example, with \fB\-fdbg\-cnt=dce:10,tail_call:0\fR,
5687 \&\f(CW\*(C`dbg_cnt(dce)\*(C'\fR returns true only for first 10 invocations.
5688 .IP "\fB\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR" 4
5689 .IX Item "-fenable-kind-pass"
5690 .PD 0
5691 .IP "\fB\-fdisable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
5692 .IX Item "-fdisable-kind-pass=range-list"
5693 .PD
5694 This is a set of options that are used to explicitly disable/enable
5695 optimization passes.  These options are intended for use for debugging \s-1GCC.\s0
5696 Compiler users should use regular options for enabling/disabling
5697 passes instead.
5698 .RS 4
5699 .IP "\fB\-fdisable\-ipa\-\fR\fIpass\fR" 4
5700 .IX Item "-fdisable-ipa-pass"
5701 Disable \s-1IPA\s0 pass \fIpass\fR. \fIpass\fR is the pass name.  If the same pass is
5702 statically invoked in the compiler multiple times, the pass name should be
5703 appended with a sequential number starting from 1.
5704 .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR" 4
5705 .IX Item "-fdisable-rtl-pass"
5706 .PD 0
5707 .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
5708 .IX Item "-fdisable-rtl-pass=range-list"
5709 .PD
5710 Disable \s-1RTL\s0 pass \fIpass\fR.  \fIpass\fR is the pass name.  If the same pass is
5711 statically invoked in the compiler multiple times, the pass name should be
5712 appended with a sequential number starting from 1.  \fIrange-list\fR is a 
5713 comma-separated list of function ranges or assembler names.  Each range is a number
5714 pair separated by a colon.  The range is inclusive in both ends.  If the range
5715 is trivial, the number pair can be simplified as a single number.  If the
5716 function's call graph node's \fIuid\fR falls within one of the specified ranges,
5717 the \fIpass\fR is disabled for that function.  The \fIuid\fR is shown in the
5718 function header of a dump file, and the pass names can be dumped by using
5719 option \fB\-fdump\-passes\fR.
5720 .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR" 4
5721 .IX Item "-fdisable-tree-pass"
5722 .PD 0
5723 .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
5724 .IX Item "-fdisable-tree-pass=range-list"
5725 .PD
5726 Disable tree pass \fIpass\fR.  See \fB\-fdisable\-rtl\fR for the description of
5727 option arguments.
5728 .IP "\fB\-fenable\-ipa\-\fR\fIpass\fR" 4
5729 .IX Item "-fenable-ipa-pass"
5730 Enable \s-1IPA\s0 pass \fIpass\fR.  \fIpass\fR is the pass name.  If the same pass is
5731 statically invoked in the compiler multiple times, the pass name should be
5732 appended with a sequential number starting from 1.
5733 .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR" 4
5734 .IX Item "-fenable-rtl-pass"
5735 .PD 0
5736 .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
5737 .IX Item "-fenable-rtl-pass=range-list"
5738 .PD
5739 Enable \s-1RTL\s0 pass \fIpass\fR.  See \fB\-fdisable\-rtl\fR for option argument
5740 description and examples.
5741 .IP "\fB\-fenable\-tree\-\fR\fIpass\fR" 4
5742 .IX Item "-fenable-tree-pass"
5743 .PD 0
5744 .IP "\fB\-fenable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
5745 .IX Item "-fenable-tree-pass=range-list"
5746 .PD
5747 Enable tree pass \fIpass\fR.  See \fB\-fdisable\-rtl\fR for the description
5748 of option arguments.
5749 .RE
5750 .RS 4
5751 .Sp
5752 Here are some examples showing uses of these options.
5753 .Sp
5754 .Vb 10
5755 \&        # disable ccp1 for all functions
5756 \&           \-fdisable\-tree\-ccp1
5757 \&        # disable complete unroll for function whose cgraph node uid is 1
5758 \&           \-fenable\-tree\-cunroll=1
5759 \&        # disable gcse2 for functions at the following ranges [1,1],
5760 \&        # [300,400], and [400,1000]
5761 \&        # disable gcse2 for functions foo and foo2
5762 \&           \-fdisable\-rtl\-gcse2=foo,foo2
5763 \&        # disable early inlining
5764 \&           \-fdisable\-tree\-einline
5765 \&        # disable ipa inlining
5766 \&           \-fdisable\-ipa\-inline
5767 \&        # enable tree full unroll
5768 \&           \-fenable\-tree\-unroll
5769 .Ve
5770 .RE
5771 .IP "\fB\-d\fR\fIletters\fR" 4
5772 .IX Item "-dletters"
5773 .PD 0
5774 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
5775 .IX Item "-fdump-rtl-pass"
5776 .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR\fB=\fR\fIfilename\fR" 4
5777 .IX Item "-fdump-rtl-pass=filename"
5778 .PD
5779 Says to make debugging dumps during compilation at times specified by
5780 \&\fIletters\fR.  This is used for debugging the RTL-based passes of the
5781 compiler.  The file names for most of the dumps are made by appending
5782 a pass number and a word to the \fIdumpname\fR, and the files are
5783 created in the directory of the output file. In case of
5784 \&\fB=\fR\fIfilename\fR option, the dump is output on the given file
5785 instead of the pass numbered dump files. Note that the pass number is
5786 computed statically as passes get registered into the pass manager.
5787 Thus the numbering is not related to the dynamic order of execution of
5788 passes.  In particular, a pass installed by a plugin could have a
5789 number over 200 even if it executed quite early.  \fIdumpname\fR is
5790 generated from the name of the output file, if explicitly specified
5791 and it is not an executable, otherwise it is the basename of the
5792 source file. These switches may have different effects when
5793 \&\fB\-E\fR is used for preprocessing.
5794 .Sp
5795 Debug dumps can be enabled with a \fB\-fdump\-rtl\fR switch or some
5796 \&\fB\-d\fR option \fIletters\fR.  Here are the possible
5797 letters for use in \fIpass\fR and \fIletters\fR, and their meanings:
5798 .RS 4
5799 .IP "\fB\-fdump\-rtl\-alignments\fR" 4
5800 .IX Item "-fdump-rtl-alignments"
5801 Dump after branch alignments have been computed.
5802 .IP "\fB\-fdump\-rtl\-asmcons\fR" 4
5803 .IX Item "-fdump-rtl-asmcons"
5804 Dump after fixing rtl statements that have unsatisfied in/out constraints.
5805 .IP "\fB\-fdump\-rtl\-auto_inc_dec\fR" 4
5806 .IX Item "-fdump-rtl-auto_inc_dec"
5807 Dump after auto-inc-dec discovery.  This pass is only run on
5808 architectures that have auto inc or auto dec instructions.
5809 .IP "\fB\-fdump\-rtl\-barriers\fR" 4
5810 .IX Item "-fdump-rtl-barriers"
5811 Dump after cleaning up the barrier instructions.
5812 .IP "\fB\-fdump\-rtl\-bbpart\fR" 4
5813 .IX Item "-fdump-rtl-bbpart"
5814 Dump after partitioning hot and cold basic blocks.
5815 .IP "\fB\-fdump\-rtl\-bbro\fR" 4
5816 .IX Item "-fdump-rtl-bbro"
5817 Dump after block reordering.
5818 .IP "\fB\-fdump\-rtl\-btl1\fR" 4
5819 .IX Item "-fdump-rtl-btl1"
5820 .PD 0
5821 .IP "\fB\-fdump\-rtl\-btl2\fR" 4
5822 .IX Item "-fdump-rtl-btl2"
5823 .PD
5824 \&\fB\-fdump\-rtl\-btl1\fR and \fB\-fdump\-rtl\-btl2\fR enable dumping
5825 after the two branch
5826 target load optimization passes.
5827 .IP "\fB\-fdump\-rtl\-bypass\fR" 4
5828 .IX Item "-fdump-rtl-bypass"
5829 Dump after jump bypassing and control flow optimizations.
5830 .IP "\fB\-fdump\-rtl\-combine\fR" 4
5831 .IX Item "-fdump-rtl-combine"
5832 Dump after the \s-1RTL\s0 instruction combination pass.
5833 .IP "\fB\-fdump\-rtl\-compgotos\fR" 4
5834 .IX Item "-fdump-rtl-compgotos"
5835 Dump after duplicating the computed gotos.
5836 .IP "\fB\-fdump\-rtl\-ce1\fR" 4
5837 .IX Item "-fdump-rtl-ce1"
5838 .PD 0
5839 .IP "\fB\-fdump\-rtl\-ce2\fR" 4
5840 .IX Item "-fdump-rtl-ce2"
5841 .IP "\fB\-fdump\-rtl\-ce3\fR" 4
5842 .IX Item "-fdump-rtl-ce3"
5843 .PD
5844 \&\fB\-fdump\-rtl\-ce1\fR, \fB\-fdump\-rtl\-ce2\fR, and
5845 \&\fB\-fdump\-rtl\-ce3\fR enable dumping after the three
5846 if conversion passes.
5847 .IP "\fB\-fdump\-rtl\-cprop_hardreg\fR" 4
5848 .IX Item "-fdump-rtl-cprop_hardreg"
5849 Dump after hard register copy propagation.
5850 .IP "\fB\-fdump\-rtl\-csa\fR" 4
5851 .IX Item "-fdump-rtl-csa"
5852 Dump after combining stack adjustments.
5853 .IP "\fB\-fdump\-rtl\-cse1\fR" 4
5854 .IX Item "-fdump-rtl-cse1"
5855 .PD 0
5856 .IP "\fB\-fdump\-rtl\-cse2\fR" 4
5857 .IX Item "-fdump-rtl-cse2"
5858 .PD
5859 \&\fB\-fdump\-rtl\-cse1\fR and \fB\-fdump\-rtl\-cse2\fR enable dumping after
5860 the two common subexpression elimination passes.
5861 .IP "\fB\-fdump\-rtl\-dce\fR" 4
5862 .IX Item "-fdump-rtl-dce"
5863 Dump after the standalone dead code elimination passes.
5864 .IP "\fB\-fdump\-rtl\-dbr\fR" 4
5865 .IX Item "-fdump-rtl-dbr"
5866 Dump after delayed branch scheduling.
5867 .IP "\fB\-fdump\-rtl\-dce1\fR" 4
5868 .IX Item "-fdump-rtl-dce1"
5869 .PD 0
5870 .IP "\fB\-fdump\-rtl\-dce2\fR" 4
5871 .IX Item "-fdump-rtl-dce2"
5872 .PD
5873 \&\fB\-fdump\-rtl\-dce1\fR and \fB\-fdump\-rtl\-dce2\fR enable dumping after
5874 the two dead store elimination passes.
5875 .IP "\fB\-fdump\-rtl\-eh\fR" 4
5876 .IX Item "-fdump-rtl-eh"
5877 Dump after finalization of \s-1EH\s0 handling code.
5878 .IP "\fB\-fdump\-rtl\-eh_ranges\fR" 4
5879 .IX Item "-fdump-rtl-eh_ranges"
5880 Dump after conversion of \s-1EH\s0 handling range regions.
5881 .IP "\fB\-fdump\-rtl\-expand\fR" 4
5882 .IX Item "-fdump-rtl-expand"
5883 Dump after \s-1RTL\s0 generation.
5884 .IP "\fB\-fdump\-rtl\-fwprop1\fR" 4
5885 .IX Item "-fdump-rtl-fwprop1"
5886 .PD 0
5887 .IP "\fB\-fdump\-rtl\-fwprop2\fR" 4
5888 .IX Item "-fdump-rtl-fwprop2"
5889 .PD
5890 \&\fB\-fdump\-rtl\-fwprop1\fR and \fB\-fdump\-rtl\-fwprop2\fR enable
5891 dumping after the two forward propagation passes.
5892 .IP "\fB\-fdump\-rtl\-gcse1\fR" 4
5893 .IX Item "-fdump-rtl-gcse1"
5894 .PD 0
5895 .IP "\fB\-fdump\-rtl\-gcse2\fR" 4
5896 .IX Item "-fdump-rtl-gcse2"
5897 .PD
5898 \&\fB\-fdump\-rtl\-gcse1\fR and \fB\-fdump\-rtl\-gcse2\fR enable dumping
5899 after global common subexpression elimination.
5900 .IP "\fB\-fdump\-rtl\-init\-regs\fR" 4
5901 .IX Item "-fdump-rtl-init-regs"
5902 Dump after the initialization of the registers.
5903 .IP "\fB\-fdump\-rtl\-initvals\fR" 4
5904 .IX Item "-fdump-rtl-initvals"
5905 Dump after the computation of the initial value sets.
5906 .IP "\fB\-fdump\-rtl\-into_cfglayout\fR" 4
5907 .IX Item "-fdump-rtl-into_cfglayout"
5908 Dump after converting to cfglayout mode.
5909 .IP "\fB\-fdump\-rtl\-ira\fR" 4
5910 .IX Item "-fdump-rtl-ira"
5911 Dump after iterated register allocation.
5912 .IP "\fB\-fdump\-rtl\-jump\fR" 4
5913 .IX Item "-fdump-rtl-jump"
5914 Dump after the second jump optimization.
5915 .IP "\fB\-fdump\-rtl\-loop2\fR" 4
5916 .IX Item "-fdump-rtl-loop2"
5917 \&\fB\-fdump\-rtl\-loop2\fR enables dumping after the rtl
5918 loop optimization passes.
5919 .IP "\fB\-fdump\-rtl\-mach\fR" 4
5920 .IX Item "-fdump-rtl-mach"
5921 Dump after performing the machine dependent reorganization pass, if that
5922 pass exists.
5923 .IP "\fB\-fdump\-rtl\-mode_sw\fR" 4
5924 .IX Item "-fdump-rtl-mode_sw"
5925 Dump after removing redundant mode switches.
5926 .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
5927 .IX Item "-fdump-rtl-rnreg"
5928 Dump after register renumbering.
5929 .IP "\fB\-fdump\-rtl\-outof_cfglayout\fR" 4
5930 .IX Item "-fdump-rtl-outof_cfglayout"
5931 Dump after converting from cfglayout mode.
5932 .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
5933 .IX Item "-fdump-rtl-peephole2"
5934 Dump after the peephole pass.
5935 .IP "\fB\-fdump\-rtl\-postreload\fR" 4
5936 .IX Item "-fdump-rtl-postreload"
5937 Dump after post-reload optimizations.
5938 .IP "\fB\-fdump\-rtl\-pro_and_epilogue\fR" 4
5939 .IX Item "-fdump-rtl-pro_and_epilogue"
5940 Dump after generating the function prologues and epilogues.
5941 .IP "\fB\-fdump\-rtl\-sched1\fR" 4
5942 .IX Item "-fdump-rtl-sched1"
5943 .PD 0
5944 .IP "\fB\-fdump\-rtl\-sched2\fR" 4
5945 .IX Item "-fdump-rtl-sched2"
5946 .PD
5947 \&\fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR enable dumping
5948 after the basic block scheduling passes.
5949 .IP "\fB\-fdump\-rtl\-ree\fR" 4
5950 .IX Item "-fdump-rtl-ree"
5951 Dump after sign/zero extension elimination.
5952 .IP "\fB\-fdump\-rtl\-seqabstr\fR" 4
5953 .IX Item "-fdump-rtl-seqabstr"
5954 Dump after common sequence discovery.
5955 .IP "\fB\-fdump\-rtl\-shorten\fR" 4
5956 .IX Item "-fdump-rtl-shorten"
5957 Dump after shortening branches.
5958 .IP "\fB\-fdump\-rtl\-sibling\fR" 4
5959 .IX Item "-fdump-rtl-sibling"
5960 Dump after sibling call optimizations.
5961 .IP "\fB\-fdump\-rtl\-split1\fR" 4
5962 .IX Item "-fdump-rtl-split1"
5963 .PD 0
5964 .IP "\fB\-fdump\-rtl\-split2\fR" 4
5965 .IX Item "-fdump-rtl-split2"
5966 .IP "\fB\-fdump\-rtl\-split3\fR" 4
5967 .IX Item "-fdump-rtl-split3"
5968 .IP "\fB\-fdump\-rtl\-split4\fR" 4
5969 .IX Item "-fdump-rtl-split4"
5970 .IP "\fB\-fdump\-rtl\-split5\fR" 4
5971 .IX Item "-fdump-rtl-split5"
5972 .PD
5973 These options enable dumping after five rounds of
5974 instruction splitting.
5975 .IP "\fB\-fdump\-rtl\-sms\fR" 4
5976 .IX Item "-fdump-rtl-sms"
5977 Dump after modulo scheduling.  This pass is only run on some
5978 architectures.
5979 .IP "\fB\-fdump\-rtl\-stack\fR" 4
5980 .IX Item "-fdump-rtl-stack"
5981 Dump after conversion from \s-1GCC\s0's \*(L"flat register file\*(R" registers to the
5982 x87's stack-like registers.  This pass is only run on x86 variants.
5983 .IP "\fB\-fdump\-rtl\-subreg1\fR" 4
5984 .IX Item "-fdump-rtl-subreg1"
5985 .PD 0
5986 .IP "\fB\-fdump\-rtl\-subreg2\fR" 4
5987 .IX Item "-fdump-rtl-subreg2"
5988 .PD
5989 \&\fB\-fdump\-rtl\-subreg1\fR and \fB\-fdump\-rtl\-subreg2\fR enable dumping after
5990 the two subreg expansion passes.
5991 .IP "\fB\-fdump\-rtl\-unshare\fR" 4
5992 .IX Item "-fdump-rtl-unshare"
5993 Dump after all rtl has been unshared.
5994 .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
5995 .IX Item "-fdump-rtl-vartrack"
5996 Dump after variable tracking.
5997 .IP "\fB\-fdump\-rtl\-vregs\fR" 4
5998 .IX Item "-fdump-rtl-vregs"
5999 Dump after converting virtual registers to hard registers.
6000 .IP "\fB\-fdump\-rtl\-web\fR" 4
6001 .IX Item "-fdump-rtl-web"
6002 Dump after live range splitting.
6003 .IP "\fB\-fdump\-rtl\-regclass\fR" 4
6004 .IX Item "-fdump-rtl-regclass"
6005 .PD 0
6006 .IP "\fB\-fdump\-rtl\-subregs_of_mode_init\fR" 4
6007 .IX Item "-fdump-rtl-subregs_of_mode_init"
6008 .IP "\fB\-fdump\-rtl\-subregs_of_mode_finish\fR" 4
6009 .IX Item "-fdump-rtl-subregs_of_mode_finish"
6010 .IP "\fB\-fdump\-rtl\-dfinit\fR" 4
6011 .IX Item "-fdump-rtl-dfinit"
6012 .IP "\fB\-fdump\-rtl\-dfinish\fR" 4
6013 .IX Item "-fdump-rtl-dfinish"
6014 .PD
6015 These dumps are defined but always produce empty files.
6016 .IP "\fB\-da\fR" 4
6017 .IX Item "-da"
6018 .PD 0
6019 .IP "\fB\-fdump\-rtl\-all\fR" 4
6020 .IX Item "-fdump-rtl-all"
6021 .PD
6022 Produce all the dumps listed above.
6023 .IP "\fB\-dA\fR" 4
6024 .IX Item "-dA"
6025 Annotate the assembler output with miscellaneous debugging information.
6026 .IP "\fB\-dD\fR" 4
6027 .IX Item "-dD"
6028 Dump all macro definitions, at the end of preprocessing, in addition to
6029 normal output.
6030 .IP "\fB\-dH\fR" 4
6031 .IX Item "-dH"
6032 Produce a core dump whenever an error occurs.
6033 .IP "\fB\-dp\fR" 4
6034 .IX Item "-dp"
6035 Annotate the assembler output with a comment indicating which
6036 pattern and alternative is used.  The length of each instruction is
6037 also printed.
6038 .IP "\fB\-dP\fR" 4
6039 .IX Item "-dP"
6040 Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
6041 Also turns on \fB\-dp\fR annotation.
6042 .IP "\fB\-dx\fR" 4
6043 .IX Item "-dx"
6044 Just generate \s-1RTL\s0 for a function instead of compiling it.  Usually used
6045 with \fB\-fdump\-rtl\-expand\fR.
6046 .RE
6047 .RS 4
6048 .RE
6049 .IP "\fB\-fdump\-noaddr\fR" 4
6050 .IX Item "-fdump-noaddr"
6051 When doing debugging dumps, suppress address output.  This makes it more
6052 feasible to use diff on debugging dumps for compiler invocations with
6053 different compiler binaries and/or different
6054 text / bss / data / heap / stack / dso start locations.
6055 .IP "\fB\-freport\-bug\fR" 4
6056 .IX Item "-freport-bug"
6057 Collect and dump debug information into temporary file if \s-1ICE\s0 in C/\*(C+
6058 compiler occured.
6059 .IP "\fB\-fdump\-unnumbered\fR" 4
6060 .IX Item "-fdump-unnumbered"
6061 When doing debugging dumps, suppress instruction numbers and address output.
6062 This makes it more feasible to use diff on debugging dumps for compiler
6063 invocations with different options, in particular with and without
6064 \&\fB\-g\fR.
6065 .IP "\fB\-fdump\-unnumbered\-links\fR" 4
6066 .IX Item "-fdump-unnumbered-links"
6067 When doing debugging dumps (see \fB\-d\fR option above), suppress
6068 instruction numbers for the links to the previous and next instructions
6069 in a sequence.
6070 .IP "\fB\-fdump\-translation\-unit\fR (\*(C+ only)" 4
6071 .IX Item "-fdump-translation-unit ( only)"
6072 .PD 0
6073 .IP "\fB\-fdump\-translation\-unit\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
6074 .IX Item "-fdump-translation-unit-options ( only)"
6075 .PD
6076 Dump a representation of the tree structure for the entire translation
6077 unit to a file.  The file name is made by appending \fI.tu\fR to the
6078 source file name, and the file is created in the same directory as the
6079 output file.  If the \fB\-\fR\fIoptions\fR form is used, \fIoptions\fR
6080 controls the details of the dump as described for the
6081 \&\fB\-fdump\-tree\fR options.
6082 .IP "\fB\-fdump\-class\-hierarchy\fR (\*(C+ only)" 4
6083 .IX Item "-fdump-class-hierarchy ( only)"
6084 .PD 0
6085 .IP "\fB\-fdump\-class\-hierarchy\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
6086 .IX Item "-fdump-class-hierarchy-options ( only)"
6087 .PD
6088 Dump a representation of each class's hierarchy and virtual function
6089 table layout to a file.  The file name is made by appending
6090 \&\fI.class\fR to the source file name, and the file is created in the
6091 same directory as the output file.  If the \fB\-\fR\fIoptions\fR form
6092 is used, \fIoptions\fR controls the details of the dump as described
6093 for the \fB\-fdump\-tree\fR options.
6094 .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
6095 .IX Item "-fdump-ipa-switch"
6096 Control the dumping at various stages of inter-procedural analysis
6097 language tree to a file.  The file name is generated by appending a
6098 switch specific suffix to the source file name, and the file is created
6099 in the same directory as the output file.  The following dumps are
6100 possible:
6101 .RS 4
6102 .IP "\fBall\fR" 4
6103 .IX Item "all"
6104 Enables all inter-procedural analysis dumps.
6105 .IP "\fBcgraph\fR" 4
6106 .IX Item "cgraph"
6107 Dumps information about call-graph optimization, unused function removal,
6108 and inlining decisions.
6109 .IP "\fBinline\fR" 4
6110 .IX Item "inline"
6111 Dump after function inlining.
6112 .RE
6113 .RS 4
6114 .RE
6115 .IP "\fB\-fdump\-passes\fR" 4
6116 .IX Item "-fdump-passes"
6117 Dump the list of optimization passes that are turned on and off by
6118 the current command-line options.
6119 .IP "\fB\-fdump\-statistics\-\fR\fIoption\fR" 4
6120 .IX Item "-fdump-statistics-option"
6121 Enable and control dumping of pass statistics in a separate file.  The
6122 file name is generated by appending a suffix ending in
6123 \&\fB.statistics\fR to the source file name, and the file is created in
6124 the same directory as the output file.  If the \fB\-\fR\fIoption\fR
6125 form is used, \fB\-stats\fR causes counters to be summed over the
6126 whole compilation unit while \fB\-details\fR dumps every event as
6127 the passes generate them.  The default with no option is to sum
6128 counters for each function compiled.
6129 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR" 4
6130 .IX Item "-fdump-tree-switch"
6131 .PD 0
6132 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
6133 .IX Item "-fdump-tree-switch-options"
6134 .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
6135 .IX Item "-fdump-tree-switch-options=filename"
6136 .PD
6137 Control the dumping at various stages of processing the intermediate
6138 language tree to a file.  The file name is generated by appending a
6139 switch-specific suffix to the source file name, and the file is
6140 created in the same directory as the output file. In case of
6141 \&\fB=\fR\fIfilename\fR option, the dump is output on the given file
6142 instead of the auto named dump files.  If the \fB\-\fR\fIoptions\fR
6143 form is used, \fIoptions\fR is a list of \fB\-\fR separated options
6144 which control the details of the dump.  Not all options are applicable
6145 to all dumps; those that are not meaningful are ignored.  The
6146 following options are available
6147 .RS 4
6148 .IP "\fBaddress\fR" 4
6149 .IX Item "address"
6150 Print the address of each node.  Usually this is not meaningful as it
6151 changes according to the environment and source file.  Its primary use
6152 is for tying up a dump file with a debug environment.
6153 .IP "\fBasmname\fR" 4
6154 .IX Item "asmname"
6155 If \f(CW\*(C`DECL_ASSEMBLER_NAME\*(C'\fR has been set for a given decl, use that
6156 in the dump instead of \f(CW\*(C`DECL_NAME\*(C'\fR.  Its primary use is ease of
6157 use working backward from mangled names in the assembly file.
6158 .IP "\fBslim\fR" 4
6159 .IX Item "slim"
6160 When dumping front-end intermediate representations, inhibit dumping
6161 of members of a scope or body of a function merely because that scope
6162 has been reached.  Only dump such items when they are directly reachable
6163 by some other path.
6164 .Sp
6165 When dumping pretty-printed trees, this option inhibits dumping the
6166 bodies of control structures.
6167 .Sp
6168 When dumping \s-1RTL,\s0 print the \s-1RTL\s0 in slim (condensed) form instead of
6169 the default LISP-like representation.
6170 .IP "\fBraw\fR" 4
6171 .IX Item "raw"
6172 Print a raw representation of the tree.  By default, trees are
6173 pretty-printed into a C\-like representation.
6174 .IP "\fBdetails\fR" 4
6175 .IX Item "details"
6176 Enable more detailed dumps (not honored by every dump option). Also
6177 include information from the optimization passes.
6178 .IP "\fBstats\fR" 4
6179 .IX Item "stats"
6180 Enable dumping various statistics about the pass (not honored by every dump
6181 option).
6182 .IP "\fBblocks\fR" 4
6183 .IX Item "blocks"
6184 Enable showing basic block boundaries (disabled in raw dumps).
6185 .IP "\fBgraph\fR" 4
6186 .IX Item "graph"
6187 For each of the other indicated dump files (\fB\-fdump\-rtl\-\fR\fIpass\fR),
6188 dump a representation of the control flow graph suitable for viewing with
6189 GraphViz to \fI\fIfile\fI.\fIpassid\fI.\fIpass\fI.dot\fR.  Each function in
6190 the file is pretty-printed as a subgraph, so that GraphViz can render them
6191 all in a single plot.
6192 .Sp
6193 This option currently only works for \s-1RTL\s0 dumps, and the \s-1RTL\s0 is always
6194 dumped in slim form.
6195 .IP "\fBvops\fR" 4
6196 .IX Item "vops"
6197 Enable showing virtual operands for every statement.
6198 .IP "\fBlineno\fR" 4
6199 .IX Item "lineno"
6200 Enable showing line numbers for statements.
6201 .IP "\fBuid\fR" 4
6202 .IX Item "uid"
6203 Enable showing the unique \s-1ID \s0(\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
6204 .IP "\fBverbose\fR" 4
6205 .IX Item "verbose"
6206 Enable showing the tree dump for each statement.
6207 .IP "\fBeh\fR" 4
6208 .IX Item "eh"
6209 Enable showing the \s-1EH\s0 region number holding each statement.
6210 .IP "\fBscev\fR" 4
6211 .IX Item "scev"
6212 Enable showing scalar evolution analysis details.
6213 .IP "\fBoptimized\fR" 4
6214 .IX Item "optimized"
6215 Enable showing optimization information (only available in certain
6216 passes).
6217 .IP "\fBmissed\fR" 4
6218 .IX Item "missed"
6219 Enable showing missed optimization information (only available in certain
6220 passes).
6221 .IP "\fBnote\fR" 4
6222 .IX Item "note"
6223 Enable other detailed optimization information (only available in
6224 certain passes).
6225 .IP "\fB=\fR\fIfilename\fR" 4
6226 .IX Item "=filename"
6227 Instead of an auto named dump file, output into the given file
6228 name. The file names \fIstdout\fR and \fIstderr\fR are treated
6229 specially and are considered already open standard streams. For
6230 example,
6231 .Sp
6232 .Vb 2
6233 \&        gcc \-O2 \-ftree\-vectorize \-fdump\-tree\-vect\-blocks=foo.dump
6234 \&             \-fdump\-tree\-pre=stderr file.c
6235 .Ve
6236 .Sp
6237 outputs vectorizer dump into \fIfoo.dump\fR, while the \s-1PRE\s0 dump is
6238 output on to \fIstderr\fR. If two conflicting dump filenames are
6239 given for the same pass, then the latter option overrides the earlier
6240 one.
6241 .IP "\fBall\fR" 4
6242 .IX Item "all"
6243 Turn on all options, except \fBraw\fR, \fBslim\fR, \fBverbose\fR
6244 and \fBlineno\fR.
6245 .IP "\fBoptall\fR" 4
6246 .IX Item "optall"
6247 Turn on all optimization options, i.e., \fBoptimized\fR,
6248 \&\fBmissed\fR, and \fBnote\fR.
6249 .RE
6250 .RS 4
6251 .Sp
6252 The following tree dumps are possible:
6253 .IP "\fBoriginal\fR" 4
6254 .IX Item "original"
6255 Dump before any tree based optimization, to \fI\fIfile\fI.original\fR.
6256 .IP "\fBoptimized\fR" 4
6257 .IX Item "optimized"
6258 Dump after all tree based optimization, to \fI\fIfile\fI.optimized\fR.
6259 .IP "\fBgimple\fR" 4
6260 .IX Item "gimple"
6261 Dump each function before and after the gimplification pass to a file.  The
6262 file name is made by appending \fI.gimple\fR to the source file name.
6263 .IP "\fBcfg\fR" 4
6264 .IX Item "cfg"
6265 Dump the control flow graph of each function to a file.  The file name is
6266 made by appending \fI.cfg\fR to the source file name.
6267 .IP "\fBch\fR" 4
6268 .IX Item "ch"
6269 Dump each function after copying loop headers.  The file name is made by
6270 appending \fI.ch\fR to the source file name.
6271 .IP "\fBssa\fR" 4
6272 .IX Item "ssa"
6273 Dump \s-1SSA\s0 related information to a file.  The file name is made by appending
6274 \&\fI.ssa\fR to the source file name.
6275 .IP "\fBalias\fR" 4
6276 .IX Item "alias"
6277 Dump aliasing information for each function.  The file name is made by
6278 appending \fI.alias\fR to the source file name.
6279 .IP "\fBccp\fR" 4
6280 .IX Item "ccp"
6281 Dump each function after \s-1CCP. \s0 The file name is made by appending
6282 \&\fI.ccp\fR to the source file name.
6283 .IP "\fBstoreccp\fR" 4
6284 .IX Item "storeccp"
6285 Dump each function after STORE-CCP.  The file name is made by appending
6286 \&\fI.storeccp\fR to the source file name.
6287 .IP "\fBpre\fR" 4
6288 .IX Item "pre"
6289 Dump trees after partial redundancy elimination.  The file name is made
6290 by appending \fI.pre\fR to the source file name.
6291 .IP "\fBfre\fR" 4
6292 .IX Item "fre"
6293 Dump trees after full redundancy elimination.  The file name is made
6294 by appending \fI.fre\fR to the source file name.
6295 .IP "\fBcopyprop\fR" 4
6296 .IX Item "copyprop"
6297 Dump trees after copy propagation.  The file name is made
6298 by appending \fI.copyprop\fR to the source file name.
6299 .IP "\fBstore_copyprop\fR" 4
6300 .IX Item "store_copyprop"
6301 Dump trees after store copy-propagation.  The file name is made
6302 by appending \fI.store_copyprop\fR to the source file name.
6303 .IP "\fBdce\fR" 4
6304 .IX Item "dce"
6305 Dump each function after dead code elimination.  The file name is made by
6306 appending \fI.dce\fR to the source file name.
6307 .IP "\fBsra\fR" 4
6308 .IX Item "sra"
6309 Dump each function after performing scalar replacement of aggregates.  The
6310 file name is made by appending \fI.sra\fR to the source file name.
6311 .IP "\fBsink\fR" 4
6312 .IX Item "sink"
6313 Dump each function after performing code sinking.  The file name is made
6314 by appending \fI.sink\fR to the source file name.
6315 .IP "\fBdom\fR" 4
6316 .IX Item "dom"
6317 Dump each function after applying dominator tree optimizations.  The file
6318 name is made by appending \fI.dom\fR to the source file name.
6319 .IP "\fBdse\fR" 4
6320 .IX Item "dse"
6321 Dump each function after applying dead store elimination.  The file
6322 name is made by appending \fI.dse\fR to the source file name.
6323 .IP "\fBphiopt\fR" 4
6324 .IX Item "phiopt"
6325 Dump each function after optimizing \s-1PHI\s0 nodes into straightline code.  The file
6326 name is made by appending \fI.phiopt\fR to the source file name.
6327 .IP "\fBforwprop\fR" 4
6328 .IX Item "forwprop"
6329 Dump each function after forward propagating single use variables.  The file
6330 name is made by appending \fI.forwprop\fR to the source file name.
6331 .IP "\fBcopyrename\fR" 4
6332 .IX Item "copyrename"
6333 Dump each function after applying the copy rename optimization.  The file
6334 name is made by appending \fI.copyrename\fR to the source file name.
6335 .IP "\fBnrv\fR" 4
6336 .IX Item "nrv"
6337 Dump each function after applying the named return value optimization on
6338 generic trees.  The file name is made by appending \fI.nrv\fR to the source
6339 file name.
6340 .IP "\fBvect\fR" 4
6341 .IX Item "vect"
6342 Dump each function after applying vectorization of loops.  The file name is
6343 made by appending \fI.vect\fR to the source file name.
6344 .IP "\fBslp\fR" 4
6345 .IX Item "slp"
6346 Dump each function after applying vectorization of basic blocks.  The file name
6347 is made by appending \fI.slp\fR to the source file name.
6348 .IP "\fBvrp\fR" 4
6349 .IX Item "vrp"
6350 Dump each function after Value Range Propagation (\s-1VRP\s0).  The file name
6351 is made by appending \fI.vrp\fR to the source file name.
6352 .IP "\fBall\fR" 4
6353 .IX Item "all"
6354 Enable all the available tree dumps with the flags provided in this option.
6355 .RE
6356 .RS 4
6357 .RE
6358 .IP "\fB\-fopt\-info\fR" 4
6359 .IX Item "-fopt-info"
6360 .PD 0
6361 .IP "\fB\-fopt\-info\-\fR\fIoptions\fR" 4
6362 .IX Item "-fopt-info-options"
6363 .IP "\fB\-fopt\-info\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
6364 .IX Item "-fopt-info-options=filename"
6365 .PD
6366 Controls optimization dumps from various optimization passes. If the
6367 \&\fB\-\fR\fIoptions\fR form is used, \fIoptions\fR is a list of
6368 \&\fB\-\fR separated option keywords to select the dump details and
6369 optimizations.
6370 .Sp
6371 The \fIoptions\fR can be divided into two groups: options describing the
6372 verbosity of the dump, and options describing which optimizations
6373 should be included. The options from both the groups can be freely
6374 mixed as they are non-overlapping. However, in case of any conflicts,
6375 the later options override the earlier options on the command
6376 line.
6377 .Sp
6378 The following options control the dump verbosity:
6379 .RS 4
6380 .IP "\fBoptimized\fR" 4
6381 .IX Item "optimized"
6382 Print information when an optimization is successfully applied. It is
6383 up to a pass to decide which information is relevant. For example, the
6384 vectorizer passes print the source location of loops which are
6385 successfully vectorized.
6386 .IP "\fBmissed\fR" 4
6387 .IX Item "missed"
6388 Print information about missed optimizations. Individual passes
6389 control which information to include in the output.
6390 .IP "\fBnote\fR" 4
6391 .IX Item "note"
6392 Print verbose information about optimizations, such as certain
6393 transformations, more detailed messages about decisions etc.
6394 .IP "\fBall\fR" 4
6395 .IX Item "all"
6396 Print detailed optimization information. This includes
6397 \&\fBoptimized\fR, \fBmissed\fR, and \fBnote\fR.
6398 .RE
6399 .RS 4
6400 .Sp
6401 One or more of the following option keywords can be used to describe a
6402 group of optimizations:
6403 .IP "\fBipa\fR" 4
6404 .IX Item "ipa"
6405 Enable dumps from all interprocedural optimizations.
6406 .IP "\fBloop\fR" 4
6407 .IX Item "loop"
6408 Enable dumps from all loop optimizations.
6409 .IP "\fBinline\fR" 4
6410 .IX Item "inline"
6411 Enable dumps from all inlining optimizations.
6412 .IP "\fBvec\fR" 4
6413 .IX Item "vec"
6414 Enable dumps from all vectorization optimizations.
6415 .IP "\fBoptall\fR" 4
6416 .IX Item "optall"
6417 Enable dumps from all optimizations. This is a superset of
6418 the optimization groups listed above.
6419 .RE
6420 .RS 4
6421 .Sp
6422 If \fIoptions\fR is
6423 omitted, it defaults to \fBoptimized-optall\fR, which means to dump all
6424 info about successful optimizations from all the passes.
6425 .Sp
6426 If the \fIfilename\fR is provided, then the dumps from all the
6427 applicable optimizations are concatenated into the \fIfilename\fR.
6428 Otherwise the dump is output onto \fIstderr\fR. Though multiple
6429 \&\fB\-fopt\-info\fR options are accepted, only one of them can include
6430 a \fIfilename\fR. If other filenames are provided then all but the
6431 first such option are ignored.
6432 .Sp
6433 Note that the output \fIfilename\fR is overwritten
6434 in case of multiple translation units. If a combined output from
6435 multiple translation units is desired, \fIstderr\fR should be used
6436 instead.
6437 .Sp
6438 In the following example, the optimization info is output to
6439 \&\fIstderr\fR:
6440 .Sp
6441 .Vb 1
6442 \&        gcc \-O3 \-fopt\-info
6443 .Ve
6444 .Sp
6445 This example:
6446 .Sp
6447 .Vb 1
6448 \&        gcc \-O3 \-fopt\-info\-missed=missed.all
6449 .Ve
6450 .Sp
6451 outputs missed optimization report from all the passes into
6452 \&\fImissed.all\fR, and this one:
6453 .Sp
6454 .Vb 1
6455 \&        gcc \-O2 \-ftree\-vectorize \-fopt\-info\-vec\-missed
6456 .Ve
6457 .Sp
6458 prints information about missed optimization opportunities from
6459 vectorization passes on \fIstderr\fR.  
6460 Note that \fB\-fopt\-info\-vec\-missed\fR is equivalent to 
6461 \&\fB\-fopt\-info\-missed\-vec\fR.
6462 .Sp
6463 As another example,
6464 .Sp
6465 .Vb 1
6466 \&        gcc \-O3 \-fopt\-info\-inline\-optimized\-missed=inline.txt
6467 .Ve
6468 .Sp
6469 outputs information about missed optimizations as well as
6470 optimized locations from all the inlining passes into
6471 \&\fIinline.txt\fR.
6472 .Sp
6473 Finally, consider:
6474 .Sp
6475 .Vb 1
6476 \&        gcc \-fopt\-info\-vec\-missed=vec.miss \-fopt\-info\-loop\-optimized=loop.opt
6477 .Ve
6478 .Sp
6479 Here the two output filenames \fIvec.miss\fR and \fIloop.opt\fR are
6480 in conflict since only one output file is allowed. In this case, only
6481 the first option takes effect and the subsequent options are
6482 ignored. Thus only \fIvec.miss\fR is produced which contains
6483 dumps from the vectorizer about missed opportunities.
6484 .RE
6485 .IP "\fB\-frandom\-seed=\fR\fInumber\fR" 4
6486 .IX Item "-frandom-seed=number"
6487 This option provides a seed that \s-1GCC\s0 uses in place of
6488 random numbers in generating certain symbol names
6489 that have to be different in every compiled file.  It is also used to
6490 place unique stamps in coverage data files and the object files that
6491 produce them.  You can use the \fB\-frandom\-seed\fR option to produce
6492 reproducibly identical object files.
6493 .Sp
6494 The \fInumber\fR should be different for every file you compile.
6495 .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
6496 .IX Item "-fsched-verbose=n"
6497 On targets that use instruction scheduling, this option controls the
6498 amount of debugging output the scheduler prints.  This information is
6499 written to standard error, unless \fB\-fdump\-rtl\-sched1\fR or
6500 \&\fB\-fdump\-rtl\-sched2\fR is specified, in which case it is output
6501 to the usual dump listing file, \fI.sched1\fR or \fI.sched2\fR
6502 respectively.  However for \fIn\fR greater than nine, the output is
6503 always printed to standard error.
6504 .Sp
6505 For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
6506 same information as \fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR.
6507 For \fIn\fR greater than one, it also output basic block probabilities,
6508 detailed ready list information and unit/insn info.  For \fIn\fR greater
6509 than two, it includes \s-1RTL\s0 at abort point, control-flow and regions info.
6510 And for \fIn\fR over four, \fB\-fsched\-verbose\fR also includes
6511 dependence info.
6512 .IP "\fB\-save\-temps\fR" 4
6513 .IX Item "-save-temps"
6514 .PD 0
6515 .IP "\fB\-save\-temps=cwd\fR" 4
6516 .IX Item "-save-temps=cwd"
6517 .PD
6518 Store the usual \*(L"temporary\*(R" intermediate files permanently; place them
6519 in the current directory and name them based on the source file.  Thus,
6520 compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR produces files
6521 \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR.  This creates a
6522 preprocessed \fIfoo.i\fR output file even though the compiler now
6523 normally uses an integrated preprocessor.
6524 .Sp
6525 When used in combination with the \fB\-x\fR command-line option,
6526 \&\fB\-save\-temps\fR is sensible enough to avoid over writing an
6527 input source file with the same extension as an intermediate file.
6528 The corresponding intermediate file may be obtained by renaming the
6529 source file before using \fB\-save\-temps\fR.
6530 .Sp
6531 If you invoke \s-1GCC\s0 in parallel, compiling several different source
6532 files that share a common base name in different subdirectories or the
6533 same source file compiled for multiple output destinations, it is
6534 likely that the different parallel compilers will interfere with each
6535 other, and overwrite the temporary files.  For instance:
6536 .Sp
6537 .Vb 2
6538 \&        gcc \-save\-temps \-o outdir1/foo.o indir1/foo.c&
6539 \&        gcc \-save\-temps \-o outdir2/foo.o indir2/foo.c&
6540 .Ve
6541 .Sp
6542 may result in \fIfoo.i\fR and \fIfoo.o\fR being written to
6543 simultaneously by both compilers.
6544 .IP "\fB\-save\-temps=obj\fR" 4
6545 .IX Item "-save-temps=obj"
6546 Store the usual \*(L"temporary\*(R" intermediate files permanently.  If the
6547 \&\fB\-o\fR option is used, the temporary files are based on the
6548 object file.  If the \fB\-o\fR option is not used, the
6549 \&\fB\-save\-temps=obj\fR switch behaves like \fB\-save\-temps\fR.
6550 .Sp
6551 For example:
6552 .Sp
6553 .Vb 3
6554 \&        gcc \-save\-temps=obj \-c foo.c
6555 \&        gcc \-save\-temps=obj \-c bar.c \-o dir/xbar.o
6556 \&        gcc \-save\-temps=obj foobar.c \-o dir2/yfoobar
6557 .Ve
6558 .Sp
6559 creates \fIfoo.i\fR, \fIfoo.s\fR, \fIdir/xbar.i\fR,
6560 \&\fIdir/xbar.s\fR, \fIdir2/yfoobar.i\fR, \fIdir2/yfoobar.s\fR, and
6561 \&\fIdir2/yfoobar.o\fR.
6562 .IP "\fB\-time\fR[\fB=\fR\fIfile\fR]" 4
6563 .IX Item "-time[=file]"
6564 Report the \s-1CPU\s0 time taken by each subprocess in the compilation
6565 sequence.  For C source files, this is the compiler proper and assembler
6566 (plus the linker if linking is done).
6567 .Sp
6568 Without the specification of an output file, the output looks like this:
6569 .Sp
6570 .Vb 2
6571 \&        # cc1 0.12 0.01
6572 \&        # as 0.00 0.01
6573 .Ve
6574 .Sp
6575 The first number on each line is the \*(L"user time\*(R", that is time spent
6576 executing the program itself.  The second number is \*(L"system time\*(R",
6577 time spent executing operating system routines on behalf of the program.
6578 Both numbers are in seconds.
6579 .Sp
6580 With the specification of an output file, the output is appended to the
6581 named file, and it looks like this:
6582 .Sp
6583 .Vb 2
6584 \&        0.12 0.01 cc1 <options>
6585 \&        0.00 0.01 as <options>
6586 .Ve
6587 .Sp
6588 The \*(L"user time\*(R" and the \*(L"system time\*(R" are moved before the program
6589 name, and the options passed to the program are displayed, so that one
6590 can later tell what file was being compiled, and with which options.
6591 .IP "\fB\-fvar\-tracking\fR" 4
6592 .IX Item "-fvar-tracking"
6593 Run variable tracking pass.  It computes where variables are stored at each
6594 position in code.  Better debugging information is then generated
6595 (if the debugging information format supports this information).
6596 .Sp
6597 It is enabled by default when compiling with optimization (\fB\-Os\fR,
6598 \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
6599 the debug info format supports it.
6600 .IP "\fB\-fvar\-tracking\-assignments\fR" 4
6601 .IX Item "-fvar-tracking-assignments"
6602 Annotate assignments to user variables early in the compilation and
6603 attempt to carry the annotations over throughout the compilation all the
6604 way to the end, in an attempt to improve debug information while
6605 optimizing.  Use of \fB\-gdwarf\-4\fR is recommended along with it.
6606 .Sp
6607 It can be enabled even if var-tracking is disabled, in which case
6608 annotations are created and maintained, but discarded at the end.
6609 By default, this flag is enabled together with \fB\-fvar\-tracking\fR,
6610 except when selective scheduling is enabled.
6611 .IP "\fB\-fvar\-tracking\-assignments\-toggle\fR" 4
6612 .IX Item "-fvar-tracking-assignments-toggle"
6613 Toggle \fB\-fvar\-tracking\-assignments\fR, in the same way that
6614 \&\fB\-gtoggle\fR toggles \fB\-g\fR.
6615 .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
6616 .IX Item "-print-file-name=library"
6617 Print the full absolute name of the library file \fIlibrary\fR that
6618 would be used when linking\-\-\-and don't do anything else.  With this
6619 option, \s-1GCC\s0 does not compile or link anything; it just prints the
6620 file name.
6621 .IP "\fB\-print\-multi\-directory\fR" 4
6622 .IX Item "-print-multi-directory"
6623 Print the directory name corresponding to the multilib selected by any
6624 other switches present in the command line.  This directory is supposed
6625 to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
6626 .IP "\fB\-print\-multi\-lib\fR" 4
6627 .IX Item "-print-multi-lib"
6628 Print the mapping from multilib directory names to compiler switches
6629 that enable them.  The directory name is separated from the switches by
6630 \&\fB;\fR, and each switch starts with an \fB@\fR instead of the
6631 \&\fB\-\fR, without spaces between multiple switches.  This is supposed to
6632 ease shell processing.
6633 .IP "\fB\-print\-multi\-os\-directory\fR" 4
6634 .IX Item "-print-multi-os-directory"
6635 Print the path to \s-1OS\s0 libraries for the selected
6636 multilib, relative to some \fIlib\fR subdirectory.  If \s-1OS\s0 libraries are
6637 present in the \fIlib\fR subdirectory and no multilibs are used, this is
6638 usually just \fI.\fR, if \s-1OS\s0 libraries are present in \fIlib\fIsuffix\fI\fR
6639 sibling directories this prints e.g. \fI../lib64\fR, \fI../lib\fR or
6640 \&\fI../lib32\fR, or if \s-1OS\s0 libraries are present in \fIlib/\fIsubdir\fI\fR
6641 subdirectories it prints e.g. \fIamd64\fR, \fIsparcv9\fR or \fIev6\fR.
6642 .IP "\fB\-print\-multiarch\fR" 4
6643 .IX Item "-print-multiarch"
6644 Print the path to \s-1OS\s0 libraries for the selected multiarch,
6645 relative to some \fIlib\fR subdirectory.
6646 .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
6647 .IX Item "-print-prog-name=program"
6648 Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
6649 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
6650 .IX Item "-print-libgcc-file-name"
6651 Same as \fB\-print\-file\-name=libgcc.a\fR.
6652 .Sp
6653 This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
6654 but you do want to link with \fIlibgcc.a\fR.  You can do:
6655 .Sp
6656 .Vb 1
6657 \&        gcc \-nostdlib <files>... \`gcc \-print\-libgcc\-file\-name\`
6658 .Ve
6659 .IP "\fB\-print\-search\-dirs\fR" 4
6660 .IX Item "-print-search-dirs"
6661 Print the name of the configured installation directory and a list of
6662 program and library directories \fBgcc\fR searches\-\-\-and don't do anything else.
6663 .Sp
6664 This is useful when \fBgcc\fR prints the error message
6665 \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
6666 To resolve this you either need to put \fIcpp0\fR and the other compiler
6667 components where \fBgcc\fR expects to find them, or you can set the environment
6668 variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
6669 Don't forget the trailing \fB/\fR.
6670 .IP "\fB\-print\-sysroot\fR" 4
6671 .IX Item "-print-sysroot"
6672 Print the target sysroot directory that is used during
6673 compilation.  This is the target sysroot specified either at configure
6674 time or using the \fB\-\-sysroot\fR option, possibly with an extra
6675 suffix that depends on compilation options.  If no target sysroot is
6676 specified, the option prints nothing.
6677 .IP "\fB\-print\-sysroot\-headers\-suffix\fR" 4
6678 .IX Item "-print-sysroot-headers-suffix"
6679 Print the suffix added to the target sysroot when searching for
6680 headers, or give an error if the compiler is not configured with such
6681 a suffix\-\-\-and don't do anything else.
6682 .IP "\fB\-dumpmachine\fR" 4
6683 .IX Item "-dumpmachine"
6684 Print the compiler's target machine (for example,
6685 \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
6686 .IP "\fB\-dumpversion\fR" 4
6687 .IX Item "-dumpversion"
6688 Print the compiler version (for example, \f(CW3.0\fR)\-\-\-and don't do
6689 anything else.
6690 .IP "\fB\-dumpspecs\fR" 4
6691 .IX Item "-dumpspecs"
6692 Print the compiler's built-in specs\-\-\-and don't do anything else.  (This
6693 is used when \s-1GCC\s0 itself is being built.)
6694 .IP "\fB\-fno\-eliminate\-unused\-debug\-types\fR" 4
6695 .IX Item "-fno-eliminate-unused-debug-types"
6696 Normally, when producing \s-1DWARF 2\s0 output, \s-1GCC\s0 avoids producing debug symbol 
6697 output for types that are nowhere used in the source file being compiled.
6698 Sometimes it is useful to have \s-1GCC\s0 emit debugging
6699 information for all types declared in a compilation
6700 unit, regardless of whether or not they are actually used
6701 in that compilation unit, for example 
6702 if, in the debugger, you want to cast a value to a type that is
6703 not actually used in your program (but is declared).  More often,
6704 however, this results in a significant amount of wasted space.
6705 .SS "Options That Control Optimization"
6706 .IX Subsection "Options That Control Optimization"
6707 These options control various sorts of optimizations.
6708 .PP
6709 Without any optimization option, the compiler's goal is to reduce the
6710 cost of compilation and to make debugging produce the expected
6711 results.  Statements are independent: if you stop the program with a
6712 breakpoint between statements, you can then assign a new value to any
6713 variable or change the program counter to any other statement in the
6714 function and get exactly the results you expect from the source
6715 code.
6716 .PP
6717 Turning on optimization flags makes the compiler attempt to improve
6718 the performance and/or code size at the expense of compilation time
6719 and possibly the ability to debug the program.
6720 .PP
6721 The compiler performs optimization based on the knowledge it has of the
6722 program.  Compiling multiple files at once to a single output file mode allows
6723 the compiler to use information gained from all of the files when compiling
6724 each of them.
6725 .PP
6726 Not all optimizations are controlled directly by a flag.  Only
6727 optimizations that have a flag are listed in this section.
6728 .PP
6729 Most optimizations are only enabled if an \fB\-O\fR level is set on
6730 the command line.  Otherwise they are disabled, even if individual
6731 optimization flags are specified.
6732 .PP
6733 Depending on the target and how \s-1GCC\s0 was configured, a slightly different
6734 set of optimizations may be enabled at each \fB\-O\fR level than
6735 those listed here.  You can invoke \s-1GCC\s0 with \fB\-Q \-\-help=optimizers\fR
6736 to find out the exact set of optimizations that are enabled at each level.
6737 .IP "\fB\-O\fR" 4
6738 .IX Item "-O"
6739 .PD 0
6740 .IP "\fB\-O1\fR" 4
6741 .IX Item "-O1"
6742 .PD
6743 Optimize.  Optimizing compilation takes somewhat more time, and a lot
6744 more memory for a large function.
6745 .Sp
6746 With \fB\-O\fR, the compiler tries to reduce code size and execution
6747 time, without performing any optimizations that take a great deal of
6748 compilation time.
6749 .Sp
6750 \&\fB\-O\fR turns on the following optimization flags:
6751 .Sp
6752 \&\fB\-fauto\-inc\-dec 
6753 \&\-fbranch\-count\-reg 
6754 \&\-fcombine\-stack\-adjustments 
6755 \&\-fcompare\-elim 
6756 \&\-fcprop\-registers 
6757 \&\-fdce 
6758 \&\-fdefer\-pop 
6759 \&\-fdelayed\-branch 
6760 \&\-fdse 
6761 \&\-fforward\-propagate 
6762 \&\-fguess\-branch\-probability 
6763 \&\-fif\-conversion2 
6764 \&\-fif\-conversion 
6765 \&\-finline\-functions\-called\-once 
6766 \&\-fipa\-pure\-const 
6767 \&\-fipa\-profile 
6768 \&\-fipa\-reference 
6769 \&\-fmerge\-constants 
6770 \&\-fmove\-loop\-invariants 
6771 \&\-fshrink\-wrap 
6772 \&\-fsplit\-wide\-types 
6773 \&\-ftree\-bit\-ccp 
6774 \&\-ftree\-ccp 
6775 \&\-fssa\-phiopt 
6776 \&\-ftree\-ch 
6777 \&\-ftree\-copy\-prop 
6778 \&\-ftree\-copyrename 
6779 \&\-ftree\-dce 
6780 \&\-ftree\-dominator\-opts 
6781 \&\-ftree\-dse 
6782 \&\-ftree\-forwprop 
6783 \&\-ftree\-fre 
6784 \&\-ftree\-phiprop 
6785 \&\-ftree\-sink 
6786 \&\-ftree\-slsr 
6787 \&\-ftree\-sra 
6788 \&\-ftree\-pta 
6789 \&\-ftree\-ter 
6790 \&\-funit\-at\-a\-time\fR
6791 .Sp
6792 \&\fB\-O\fR also turns on \fB\-fomit\-frame\-pointer\fR on machines
6793 where doing so does not interfere with debugging.
6794 .IP "\fB\-O2\fR" 4
6795 .IX Item "-O2"
6796 Optimize even more.  \s-1GCC\s0 performs nearly all supported optimizations
6797 that do not involve a space-speed tradeoff.
6798 As compared to \fB\-O\fR, this option increases both compilation time
6799 and the performance of the generated code.
6800 .Sp
6801 \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR.  It
6802 also turns on the following optimization flags:
6803 \&\fB\-fthread\-jumps 
6804 \&\-falign\-functions  \-falign\-jumps 
6805 \&\-falign\-loops  \-falign\-labels 
6806 \&\-fcaller\-saves 
6807 \&\-fcrossjumping 
6808 \&\-fcse\-follow\-jumps  \-fcse\-skip\-blocks 
6809 \&\-fdelete\-null\-pointer\-checks 
6810 \&\-fdevirtualize \-fdevirtualize\-speculatively 
6811 \&\-fexpensive\-optimizations 
6812 \&\-fgcse  \-fgcse\-lm  
6813 \&\-fhoist\-adjacent\-loads 
6814 \&\-finline\-small\-functions 
6815 \&\-findirect\-inlining 
6816 \&\-fipa\-cp 
6817 \&\-fipa\-cp\-alignment 
6818 \&\-fipa\-sra 
6819 \&\-fipa\-icf 
6820 \&\-fisolate\-erroneous\-paths\-dereference 
6821 \&\-flra\-remat 
6822 \&\-foptimize\-sibling\-calls 
6823 \&\-foptimize\-strlen 
6824 \&\-fpartial\-inlining 
6825 \&\-fpeephole2 
6826 \&\-freorder\-blocks \-freorder\-blocks\-and\-partition \-freorder\-functions 
6827 \&\-frerun\-cse\-after\-loop  
6828 \&\-fsched\-interblock  \-fsched\-spec 
6829 \&\-fschedule\-insns  \-fschedule\-insns2 
6830 \&\-fstrict\-aliasing \-fstrict\-overflow 
6831 \&\-ftree\-builtin\-call\-dce 
6832 \&\-ftree\-switch\-conversion \-ftree\-tail\-merge 
6833 \&\-ftree\-pre 
6834 \&\-ftree\-vrp 
6835 \&\-fipa\-ra\fR
6836 .Sp
6837 Please note the warning under \fB\-fgcse\fR about
6838 invoking \fB\-O2\fR on programs that use computed gotos.
6839 .IP "\fB\-O3\fR" 4
6840 .IX Item "-O3"
6841 Optimize yet more.  \fB\-O3\fR turns on all optimizations specified
6842 by \fB\-O2\fR and also turns on the \fB\-finline\-functions\fR,
6843 \&\fB\-funswitch\-loops\fR, \fB\-fpredictive\-commoning\fR,
6844 \&\fB\-fgcse\-after\-reload\fR, \fB\-ftree\-loop\-vectorize\fR,
6845 \&\fB\-ftree\-loop\-distribute\-patterns\fR,
6846 \&\fB\-ftree\-slp\-vectorize\fR, \fB\-fvect\-cost\-model\fR,
6847 \&\fB\-ftree\-partial\-pre\fR and \fB\-fipa\-cp\-clone\fR options.
6848 .IP "\fB\-O0\fR" 4
6849 .IX Item "-O0"
6850 Reduce compilation time and make debugging produce the expected
6851 results.  This is the default.
6852 .IP "\fB\-Os\fR" 4
6853 .IX Item "-Os"
6854 Optimize for size.  \fB\-Os\fR enables all \fB\-O2\fR optimizations that
6855 do not typically increase code size.  It also performs further
6856 optimizations designed to reduce code size.
6857 .Sp
6858 \&\fB\-Os\fR disables the following optimization flags:
6859 \&\fB\-falign\-functions  \-falign\-jumps  \-falign\-loops 
6860 \&\-falign\-labels  \-freorder\-blocks  \-freorder\-blocks\-and\-partition 
6861 \&\-fprefetch\-loop\-arrays\fR
6862 .IP "\fB\-Ofast\fR" 4
6863 .IX Item "-Ofast"
6864 Disregard strict standards compliance.  \fB\-Ofast\fR enables all
6865 \&\fB\-O3\fR optimizations.  It also enables optimizations that are not
6866 valid for all standard-compliant programs.
6867 It turns on \fB\-ffast\-math\fR and the Fortran-specific
6868 \&\fB\-fno\-protect\-parens\fR and \fB\-fstack\-arrays\fR.
6869 .IP "\fB\-Og\fR" 4
6870 .IX Item "-Og"
6871 Optimize debugging experience.  \fB\-Og\fR enables optimizations
6872 that do not interfere with debugging. It should be the optimization
6873 level of choice for the standard edit-compile-debug cycle, offering
6874 a reasonable level of optimization while maintaining fast compilation
6875 and a good debugging experience.
6876 .Sp
6877 If you use multiple \fB\-O\fR options, with or without level numbers,
6878 the last such option is the one that is effective.
6879 .PP
6880 Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
6881 flags.  Most flags have both positive and negative forms; the negative
6882 form of \fB\-ffoo\fR is \fB\-fno\-foo\fR.  In the table
6883 below, only one of the forms is listed\-\-\-the one you typically 
6884 use.  You can figure out the other form by either removing \fBno\-\fR
6885 or adding it.
6886 .PP
6887 The following options control specific optimizations.  They are either
6888 activated by \fB\-O\fR options or are related to ones that are.  You
6889 can use the following flags in the rare cases when \*(L"fine-tuning\*(R" of
6890 optimizations to be performed is desired.
6891 .IP "\fB\-fno\-defer\-pop\fR" 4
6892 .IX Item "-fno-defer-pop"
6893 Always pop the arguments to each function call as soon as that function
6894 returns.  For machines that must pop arguments after a function call,
6895 the compiler normally lets arguments accumulate on the stack for several
6896 function calls and pops them all at once.
6897 .Sp
6898 Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6899 .IP "\fB\-fforward\-propagate\fR" 4
6900 .IX Item "-fforward-propagate"
6901 Perform a forward propagation pass on \s-1RTL. \s0 The pass tries to combine two
6902 instructions and checks if the result can be simplified.  If loop unrolling
6903 is active, two passes are performed and the second is scheduled after
6904 loop unrolling.
6905 .Sp
6906 This option is enabled by default at optimization levels \fB\-O\fR,
6907 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6908 .IP "\fB\-ffp\-contract=\fR\fIstyle\fR" 4
6909 .IX Item "-ffp-contract=style"
6910 \&\fB\-ffp\-contract=off\fR disables floating-point expression contraction.
6911 \&\fB\-ffp\-contract=fast\fR enables floating-point expression contraction
6912 such as forming of fused multiply-add operations if the target has
6913 native support for them.
6914 \&\fB\-ffp\-contract=on\fR enables floating-point expression contraction
6915 if allowed by the language standard.  This is currently not implemented
6916 and treated equal to \fB\-ffp\-contract=off\fR.
6917 .Sp
6918 The default is \fB\-ffp\-contract=fast\fR.
6919 .IP "\fB\-fomit\-frame\-pointer\fR" 4
6920 .IX Item "-fomit-frame-pointer"
6921 Don't keep the frame pointer in a register for functions that
6922 don't need one.  This avoids the instructions to save, set up and
6923 restore frame pointers; it also makes an extra register available
6924 in many functions.  \fBIt also makes debugging impossible on
6925 some machines.\fR
6926 .Sp
6927 On some machines, such as the \s-1VAX,\s0 this flag has no effect, because
6928 the standard calling sequence automatically handles the frame pointer
6929 and nothing is saved by pretending it doesn't exist.  The
6930 machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
6931 whether a target machine supports this flag.
6932 .Sp
6933 The default setting (when not optimizing for
6934 size) for 32\-bit GNU/Linux x86 and 32\-bit Darwin x86 targets is
6935 \&\fB\-fomit\-frame\-pointer\fR.  You can configure \s-1GCC\s0 with the
6936 \&\fB\-\-enable\-frame\-pointer\fR configure option to change the default.
6937 .Sp
6938 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6939 .IP "\fB\-foptimize\-sibling\-calls\fR" 4
6940 .IX Item "-foptimize-sibling-calls"
6941 Optimize sibling and tail recursive calls.
6942 .Sp
6943 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
6944 .IP "\fB\-foptimize\-strlen\fR" 4
6945 .IX Item "-foptimize-strlen"
6946 Optimize various standard C string functions (e.g. \f(CW\*(C`strlen\*(C'\fR,
6947 \&\f(CW\*(C`strchr\*(C'\fR or \f(CW\*(C`strcpy\*(C'\fR) and
6948 their \f(CW\*(C`_FORTIFY_SOURCE\*(C'\fR counterparts into faster alternatives.
6949 .Sp
6950 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
6951 .IP "\fB\-fno\-inline\fR" 4
6952 .IX Item "-fno-inline"
6953 Do not expand any functions inline apart from those marked with
6954 the \f(CW\*(C`always_inline\*(C'\fR attribute.  This is the default when not
6955 optimizing.
6956 .Sp
6957 Single functions can be exempted from inlining by marking them
6958 with the \f(CW\*(C`noinline\*(C'\fR attribute.
6959 .IP "\fB\-finline\-small\-functions\fR" 4
6960 .IX Item "-finline-small-functions"
6961 Integrate functions into their callers when their body is smaller than expected
6962 function call code (so overall size of program gets smaller).  The compiler
6963 heuristically decides which functions are simple enough to be worth integrating
6964 in this way.  This inlining applies to all functions, even those not declared
6965 inline.
6966 .Sp
6967 Enabled at level \fB\-O2\fR.
6968 .IP "\fB\-findirect\-inlining\fR" 4
6969 .IX Item "-findirect-inlining"
6970 Inline also indirect calls that are discovered to be known at compile
6971 time thanks to previous inlining.  This option has any effect only
6972 when inlining itself is turned on by the \fB\-finline\-functions\fR
6973 or \fB\-finline\-small\-functions\fR options.
6974 .Sp
6975 Enabled at level \fB\-O2\fR.
6976 .IP "\fB\-finline\-functions\fR" 4
6977 .IX Item "-finline-functions"
6978 Consider all functions for inlining, even if they are not declared inline.
6979 The compiler heuristically decides which functions are worth integrating
6980 in this way.
6981 .Sp
6982 If all calls to a given function are integrated, and the function is
6983 declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
6984 assembler code in its own right.
6985 .Sp
6986 Enabled at level \fB\-O3\fR.
6987 .IP "\fB\-finline\-functions\-called\-once\fR" 4
6988 .IX Item "-finline-functions-called-once"
6989 Consider all \f(CW\*(C`static\*(C'\fR functions called once for inlining into their
6990 caller even if they are not marked \f(CW\*(C`inline\*(C'\fR.  If a call to a given
6991 function is integrated, then the function is not output as assembler code
6992 in its own right.
6993 .Sp
6994 Enabled at levels \fB\-O1\fR, \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
6995 .IP "\fB\-fearly\-inlining\fR" 4
6996 .IX Item "-fearly-inlining"
6997 Inline functions marked by \f(CW\*(C`always_inline\*(C'\fR and functions whose body seems
6998 smaller than the function call overhead early before doing
6999 \&\fB\-fprofile\-generate\fR instrumentation and real inlining pass.  Doing so
7000 makes profiling significantly cheaper and usually inlining faster on programs
7001 having large chains of nested wrapper functions.
7002 .Sp
7003 Enabled by default.
7004 .IP "\fB\-fipa\-sra\fR" 4
7005 .IX Item "-fipa-sra"
7006 Perform interprocedural scalar replacement of aggregates, removal of
7007 unused parameters and replacement of parameters passed by reference
7008 by parameters passed by value.
7009 .Sp
7010 Enabled at levels \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
7011 .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
7012 .IX Item "-finline-limit=n"
7013 By default, \s-1GCC\s0 limits the size of functions that can be inlined.  This flag
7014 allows coarse control of this limit.  \fIn\fR is the size of functions that
7015 can be inlined in number of pseudo instructions.
7016 .Sp
7017 Inlining is actually controlled by a number of parameters, which may be
7018 specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
7019 The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
7020 as follows:
7021 .RS 4
7022 .IP "\fBmax-inline-insns-single\fR" 4
7023 .IX Item "max-inline-insns-single"
7024 is set to \fIn\fR/2.
7025 .IP "\fBmax-inline-insns-auto\fR" 4
7026 .IX Item "max-inline-insns-auto"
7027 is set to \fIn\fR/2.
7028 .RE
7029 .RS 4
7030 .Sp
7031 See below for a documentation of the individual
7032 parameters controlling inlining and for the defaults of these parameters.
7033 .Sp
7034 \&\fINote:\fR there may be no value to \fB\-finline\-limit\fR that results
7035 in default behavior.
7036 .Sp
7037 \&\fINote:\fR pseudo instruction represents, in this particular context, an
7038 abstract measurement of function's size.  In no way does it represent a count
7039 of assembly instructions and as such its exact meaning might change from one
7040 release to an another.
7041 .RE
7042 .IP "\fB\-fno\-keep\-inline\-dllexport\fR" 4
7043 .IX Item "-fno-keep-inline-dllexport"
7044 This is a more fine-grained version of \fB\-fkeep\-inline\-functions\fR,
7045 which applies only to functions that are declared using the \f(CW\*(C`dllexport\*(C'\fR
7046 attribute or declspec
7047 .IP "\fB\-fkeep\-inline\-functions\fR" 4
7048 .IX Item "-fkeep-inline-functions"
7049 In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
7050 into the object file, even if the function has been inlined into all
7051 of its callers.  This switch does not affect functions using the
7052 \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU C90. \s0 In \*(C+, emit any and all
7053 inline functions into the object file.
7054 .IP "\fB\-fkeep\-static\-consts\fR" 4
7055 .IX Item "-fkeep-static-consts"
7056 Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
7057 on, even if the variables aren't referenced.
7058 .Sp
7059 \&\s-1GCC\s0 enables this option by default.  If you want to force the compiler to
7060 check if a variable is referenced, regardless of whether or not
7061 optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
7062 .IP "\fB\-fmerge\-constants\fR" 4
7063 .IX Item "-fmerge-constants"
7064 Attempt to merge identical constants (string constants and floating-point
7065 constants) across compilation units.
7066 .Sp
7067 This option is the default for optimized compilation if the assembler and
7068 linker support it.  Use \fB\-fno\-merge\-constants\fR to inhibit this
7069 behavior.
7070 .Sp
7071 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7072 .IP "\fB\-fmerge\-all\-constants\fR" 4
7073 .IX Item "-fmerge-all-constants"
7074 Attempt to merge identical constants and identical variables.
7075 .Sp
7076 This option implies \fB\-fmerge\-constants\fR.  In addition to
7077 \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
7078 arrays or initialized constant variables with integral or floating-point
7079 types.  Languages like C or \*(C+ require each variable, including multiple
7080 instances of the same variable in recursive calls, to have distinct locations,
7081 so using this option results in non-conforming
7082 behavior.
7083 .IP "\fB\-fmodulo\-sched\fR" 4
7084 .IX Item "-fmodulo-sched"
7085 Perform swing modulo scheduling immediately before the first scheduling
7086 pass.  This pass looks at innermost loops and reorders their
7087 instructions by overlapping different iterations.
7088 .IP "\fB\-fmodulo\-sched\-allow\-regmoves\fR" 4
7089 .IX Item "-fmodulo-sched-allow-regmoves"
7090 Perform more aggressive SMS-based modulo scheduling with register moves
7091 allowed.  By setting this flag certain anti-dependences edges are
7092 deleted, which triggers the generation of reg-moves based on the
7093 life-range analysis.  This option is effective only with
7094 \&\fB\-fmodulo\-sched\fR enabled.
7095 .IP "\fB\-fno\-branch\-count\-reg\fR" 4
7096 .IX Item "-fno-branch-count-reg"
7097 Do not use \*(L"decrement and branch\*(R" instructions on a count register,
7098 but instead generate a sequence of instructions that decrement a
7099 register, compare it against zero, then branch based upon the result.
7100 This option is only meaningful on architectures that support such
7101 instructions, which include x86, PowerPC, \s-1IA\-64\s0 and S/390.
7102 .Sp
7103 Enabled by default at \fB\-O1\fR and higher.
7104 .Sp
7105 The default is \fB\-fbranch\-count\-reg\fR.
7106 .IP "\fB\-fno\-function\-cse\fR" 4
7107 .IX Item "-fno-function-cse"
7108 Do not put function addresses in registers; make each instruction that
7109 calls a constant function contain the function's address explicitly.
7110 .Sp
7111 This option results in less efficient code, but some strange hacks
7112 that alter the assembler output may be confused by the optimizations
7113 performed when this option is not used.
7114 .Sp
7115 The default is \fB\-ffunction\-cse\fR
7116 .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
7117 .IX Item "-fno-zero-initialized-in-bss"
7118 If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
7119 are initialized to zero into \s-1BSS. \s0 This can save space in the resulting
7120 code.
7121 .Sp
7122 This option turns off this behavior because some programs explicitly
7123 rely on variables going to the data section\-\-\-e.g., so that the
7124 resulting executable can find the beginning of that section and/or make
7125 assumptions based on that.
7126 .Sp
7127 The default is \fB\-fzero\-initialized\-in\-bss\fR.
7128 .IP "\fB\-fthread\-jumps\fR" 4
7129 .IX Item "-fthread-jumps"
7130 Perform optimizations that check to see if a jump branches to a
7131 location where another comparison subsumed by the first is found.  If
7132 so, the first branch is redirected to either the destination of the
7133 second branch or a point immediately following it, depending on whether
7134 the condition is known to be true or false.
7135 .Sp
7136 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7137 .IP "\fB\-fsplit\-wide\-types\fR" 4
7138 .IX Item "-fsplit-wide-types"
7139 When using a type that occupies multiple registers, such as \f(CW\*(C`long
7140 long\*(C'\fR on a 32\-bit system, split the registers apart and allocate them
7141 independently.  This normally generates better code for those types,
7142 but may make debugging more difficult.
7143 .Sp
7144 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR,
7145 \&\fB\-Os\fR.
7146 .IP "\fB\-fcse\-follow\-jumps\fR" 4
7147 .IX Item "-fcse-follow-jumps"
7148 In common subexpression elimination (\s-1CSE\s0), scan through jump instructions
7149 when the target of the jump is not reached by any other path.  For
7150 example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
7151 \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 follows the jump when the condition
7152 tested is false.
7153 .Sp
7154 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7155 .IP "\fB\-fcse\-skip\-blocks\fR" 4
7156 .IX Item "-fcse-skip-blocks"
7157 This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
7158 follow jumps that conditionally skip over blocks.  When \s-1CSE\s0
7159 encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
7160 \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
7161 body of the \f(CW\*(C`if\*(C'\fR.
7162 .Sp
7163 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7164 .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
7165 .IX Item "-frerun-cse-after-loop"
7166 Re-run common subexpression elimination after loop optimizations are
7167 performed.
7168 .Sp
7169 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7170 .IP "\fB\-fgcse\fR" 4
7171 .IX Item "-fgcse"
7172 Perform a global common subexpression elimination pass.
7173 This pass also performs global constant and copy propagation.
7174 .Sp
7175 \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
7176 extension, you may get better run-time performance if you disable
7177 the global common subexpression elimination pass by adding
7178 \&\fB\-fno\-gcse\fR to the command line.
7179 .Sp
7180 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7181 .IP "\fB\-fgcse\-lm\fR" 4
7182 .IX Item "-fgcse-lm"
7183 When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination
7184 attempts to move loads that are only killed by stores into themselves.  This
7185 allows a loop containing a load/store sequence to be changed to a load outside
7186 the loop, and a copy/store within the loop.
7187 .Sp
7188 Enabled by default when \fB\-fgcse\fR is enabled.
7189 .IP "\fB\-fgcse\-sm\fR" 4
7190 .IX Item "-fgcse-sm"
7191 When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
7192 global common subexpression elimination.  This pass attempts to move
7193 stores out of loops.  When used in conjunction with \fB\-fgcse\-lm\fR,
7194 loops containing a load/store sequence can be changed to a load before
7195 the loop and a store after the loop.
7196 .Sp
7197 Not enabled at any optimization level.
7198 .IP "\fB\-fgcse\-las\fR" 4
7199 .IX Item "-fgcse-las"
7200 When \fB\-fgcse\-las\fR is enabled, the global common subexpression
7201 elimination pass eliminates redundant loads that come after stores to the
7202 same memory location (both partial and full redundancies).
7203 .Sp
7204 Not enabled at any optimization level.
7205 .IP "\fB\-fgcse\-after\-reload\fR" 4
7206 .IX Item "-fgcse-after-reload"
7207 When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
7208 pass is performed after reload.  The purpose of this pass is to clean up
7209 redundant spilling.
7210 .IP "\fB\-faggressive\-loop\-optimizations\fR" 4
7211 .IX Item "-faggressive-loop-optimizations"
7212 This option tells the loop optimizer to use language constraints to
7213 derive bounds for the number of iterations of a loop.  This assumes that
7214 loop code does not invoke undefined behavior by for example causing signed
7215 integer overflows or out-of-bound array accesses.  The bounds for the
7216 number of iterations of a loop are used to guide loop unrolling and peeling
7217 and loop exit test optimizations.
7218 This option is enabled by default.
7219 .IP "\fB\-funsafe\-loop\-optimizations\fR" 4
7220 .IX Item "-funsafe-loop-optimizations"
7221 This option tells the loop optimizer to assume that loop indices do not
7222 overflow, and that loops with nontrivial exit condition are not
7223 infinite.  This enables a wider range of loop optimizations even if
7224 the loop optimizer itself cannot prove that these assumptions are valid.
7225 If you use \fB\-Wunsafe\-loop\-optimizations\fR, the compiler warns you
7226 if it finds this kind of loop.
7227 .IP "\fB\-fcrossjumping\fR" 4
7228 .IX Item "-fcrossjumping"
7229 Perform cross-jumping transformation.
7230 This transformation unifies equivalent code and saves code size.  The
7231 resulting code may or may not perform better than without cross-jumping.
7232 .Sp
7233 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7234 .IP "\fB\-fauto\-inc\-dec\fR" 4
7235 .IX Item "-fauto-inc-dec"
7236 Combine increments or decrements of addresses with memory accesses.
7237 This pass is always skipped on architectures that do not have
7238 instructions to support this.  Enabled by default at \fB\-O\fR and
7239 higher on architectures that support this.
7240 .IP "\fB\-fdce\fR" 4
7241 .IX Item "-fdce"
7242 Perform dead code elimination (\s-1DCE\s0) on \s-1RTL.\s0
7243 Enabled by default at \fB\-O\fR and higher.
7244 .IP "\fB\-fdse\fR" 4
7245 .IX Item "-fdse"
7246 Perform dead store elimination (\s-1DSE\s0) on \s-1RTL.\s0
7247 Enabled by default at \fB\-O\fR and higher.
7248 .IP "\fB\-fif\-conversion\fR" 4
7249 .IX Item "-fif-conversion"
7250 Attempt to transform conditional jumps into branch-less equivalents.  This
7251 includes use of conditional moves, min, max, set flags and abs instructions, and
7252 some tricks doable by standard arithmetics.  The use of conditional execution
7253 on chips where it is available is controlled by \fB\-fif\-conversion2\fR.
7254 .Sp
7255 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7256 .IP "\fB\-fif\-conversion2\fR" 4
7257 .IX Item "-fif-conversion2"
7258 Use conditional execution (where available) to transform conditional jumps into
7259 branch-less equivalents.
7260 .Sp
7261 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7262 .IP "\fB\-fdeclone\-ctor\-dtor\fR" 4
7263 .IX Item "-fdeclone-ctor-dtor"
7264 The \*(C+ \s-1ABI\s0 requires multiple entry points for constructors and
7265 destructors: one for a base subobject, one for a complete object, and
7266 one for a virtual destructor that calls operator delete afterwards.
7267 For a hierarchy with virtual bases, the base and complete variants are
7268 clones, which means two copies of the function.  With this option, the
7269 base and complete variants are changed to be thunks that call a common
7270 implementation.
7271 .Sp
7272 Enabled by \fB\-Os\fR.
7273 .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
7274 .IX Item "-fdelete-null-pointer-checks"
7275 Assume that programs cannot safely dereference null pointers, and that
7276 no code or data element resides there.  This enables simple constant
7277 folding optimizations at all optimization levels.  In addition, other
7278 optimization passes in \s-1GCC\s0 use this flag to control global dataflow
7279 analyses that eliminate useless checks for null pointers; these assume
7280 that if a pointer is checked after it has already been dereferenced,
7281 it cannot be null.
7282 .Sp
7283 Note however that in some environments this assumption is not true.
7284 Use \fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
7285 for programs that depend on that behavior.
7286 .Sp
7287 Some targets, especially embedded ones, disable this option at all levels.
7288 Otherwise it is enabled at all levels: \fB\-O0\fR, \fB\-O1\fR,
7289 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.  Passes that use the information
7290 are enabled independently at different optimization levels.
7291 .IP "\fB\-fdevirtualize\fR" 4
7292 .IX Item "-fdevirtualize"
7293 Attempt to convert calls to virtual functions to direct calls.  This
7294 is done both within a procedure and interprocedurally as part of
7295 indirect inlining (\fB\-findirect\-inlining\fR) and interprocedural constant
7296 propagation (\fB\-fipa\-cp\fR).
7297 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7298 .IP "\fB\-fdevirtualize\-speculatively\fR" 4
7299 .IX Item "-fdevirtualize-speculatively"
7300 Attempt to convert calls to virtual functions to speculative direct calls.
7301 Based on the analysis of the type inheritance graph, determine for a given call
7302 the set of likely targets. If the set is small, preferably of size 1, change
7303 the call into a conditional deciding between direct and indirect calls.  The
7304 speculative calls enable more optimizations, such as inlining.  When they seem
7305 useless after further optimization, they are converted back into original form.
7306 .IP "\fB\-fdevirtualize\-at\-ltrans\fR" 4
7307 .IX Item "-fdevirtualize-at-ltrans"
7308 Stream extra information needed for aggressive devirtualization when running
7309 the link-time optimizer in local transformation mode.  
7310 This option enables more devirtualization but
7311 significantly increases the size of streamed data. For this reason it is
7312 disabled by default.
7313 .IP "\fB\-fexpensive\-optimizations\fR" 4
7314 .IX Item "-fexpensive-optimizations"
7315 Perform a number of minor optimizations that are relatively expensive.
7316 .Sp
7317 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7318 .IP "\fB\-free\fR" 4
7319 .IX Item "-free"
7320 Attempt to remove redundant extension instructions.  This is especially
7321 helpful for the x86\-64 architecture, which implicitly zero-extends in 64\-bit
7322 registers after writing to their lower 32\-bit half.
7323 .Sp
7324 Enabled for Alpha, AArch64 and x86 at levels \fB\-O2\fR,
7325 \&\fB\-O3\fR, \fB\-Os\fR.
7326 .IP "\fB\-fno\-lifetime\-dse\fR" 4
7327 .IX Item "-fno-lifetime-dse"
7328 In \*(C+ the value of an object is only affected by changes within its
7329 lifetime: when the constructor begins, the object has an indeterminate
7330 value, and any changes during the lifetime of the object are dead when
7331 the object is destroyed.  Normally dead store elimination will take
7332 advantage of this; if your code relies on the value of the object
7333 storage persisting beyond the lifetime of the object, you can use this
7334 flag to disable this optimization.
7335 .IP "\fB\-flive\-range\-shrinkage\fR" 4
7336 .IX Item "-flive-range-shrinkage"
7337 Attempt to decrease register pressure through register live range
7338 shrinkage.  This is helpful for fast processors with small or moderate
7339 size register sets.
7340 .IP "\fB\-fira\-algorithm=\fR\fIalgorithm\fR" 4
7341 .IX Item "-fira-algorithm=algorithm"
7342 Use the specified coloring algorithm for the integrated register
7343 allocator.  The \fIalgorithm\fR argument can be \fBpriority\fR, which
7344 specifies Chow's priority coloring, or \fB\s-1CB\s0\fR, which specifies
7345 Chaitin-Briggs coloring.  Chaitin-Briggs coloring is not implemented
7346 for all architectures, but for those targets that do support it, it is
7347 the default because it generates better code.
7348 .IP "\fB\-fira\-region=\fR\fIregion\fR" 4
7349 .IX Item "-fira-region=region"
7350 Use specified regions for the integrated register allocator.  The
7351 \&\fIregion\fR argument should be one of the following:
7352 .RS 4
7353 .IP "\fBall\fR" 4
7354 .IX Item "all"
7355 Use all loops as register allocation regions.
7356 This can give the best results for machines with a small and/or
7357 irregular register set.
7358 .IP "\fBmixed\fR" 4
7359 .IX Item "mixed"
7360 Use all loops except for loops with small register pressure 
7361 as the regions.  This value usually gives
7362 the best results in most cases and for most architectures,
7363 and is enabled by default when compiling with optimization for speed
7364 (\fB\-O\fR, \fB\-O2\fR, ...).
7365 .IP "\fBone\fR" 4
7366 .IX Item "one"
7367 Use all functions as a single region.  
7368 This typically results in the smallest code size, and is enabled by default for
7369 \&\fB\-Os\fR or \fB\-O0\fR.
7370 .RE
7371 .RS 4
7372 .RE
7373 .IP "\fB\-fira\-hoist\-pressure\fR" 4
7374 .IX Item "-fira-hoist-pressure"
7375 Use \s-1IRA\s0 to evaluate register pressure in the code hoisting pass for
7376 decisions to hoist expressions.  This option usually results in smaller
7377 code, but it can slow the compiler down.
7378 .Sp
7379 This option is enabled at level \fB\-Os\fR for all targets.
7380 .IP "\fB\-fira\-loop\-pressure\fR" 4
7381 .IX Item "-fira-loop-pressure"
7382 Use \s-1IRA\s0 to evaluate register pressure in loops for decisions to move
7383 loop invariants.  This option usually results in generation
7384 of faster and smaller code on machines with large register files (>= 32
7385 registers), but it can slow the compiler down.
7386 .Sp
7387 This option is enabled at level \fB\-O3\fR for some targets.
7388 .IP "\fB\-fno\-ira\-share\-save\-slots\fR" 4
7389 .IX Item "-fno-ira-share-save-slots"
7390 Disable sharing of stack slots used for saving call-used hard
7391 registers living through a call.  Each hard register gets a
7392 separate stack slot, and as a result function stack frames are
7393 larger.
7394 .IP "\fB\-fno\-ira\-share\-spill\-slots\fR" 4
7395 .IX Item "-fno-ira-share-spill-slots"
7396 Disable sharing of stack slots allocated for pseudo-registers.  Each
7397 pseudo-register that does not get a hard register gets a separate
7398 stack slot, and as a result function stack frames are larger.
7399 .IP "\fB\-fira\-verbose=\fR\fIn\fR" 4
7400 .IX Item "-fira-verbose=n"
7401 Control the verbosity of the dump file for the integrated register allocator.
7402 The default value is 5.  If the value \fIn\fR is greater or equal to 10,
7403 the dump output is sent to stderr using the same format as \fIn\fR minus 10.
7404 .IP "\fB\-flra\-remat\fR" 4
7405 .IX Item "-flra-remat"
7406 Enable CFG-sensitive rematerialization in \s-1LRA. \s0 Instead of loading
7407 values of spilled pseudos, \s-1LRA\s0 tries to rematerialize (recalculate)
7408 values if it is profitable.
7409 .Sp
7410 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7411 .IP "\fB\-fdelayed\-branch\fR" 4
7412 .IX Item "-fdelayed-branch"
7413 If supported for the target machine, attempt to reorder instructions
7414 to exploit instruction slots available after delayed branch
7415 instructions.
7416 .Sp
7417 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7418 .IP "\fB\-fschedule\-insns\fR" 4
7419 .IX Item "-fschedule-insns"
7420 If supported for the target machine, attempt to reorder instructions to
7421 eliminate execution stalls due to required data being unavailable.  This
7422 helps machines that have slow floating point or memory load instructions
7423 by allowing other instructions to be issued until the result of the load
7424 or floating-point instruction is required.
7425 .Sp
7426 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
7427 .IP "\fB\-fschedule\-insns2\fR" 4
7428 .IX Item "-fschedule-insns2"
7429 Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
7430 instruction scheduling after register allocation has been done.  This is
7431 especially useful on machines with a relatively small number of
7432 registers and where memory load instructions take more than one cycle.
7433 .Sp
7434 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7435 .IP "\fB\-fno\-sched\-interblock\fR" 4
7436 .IX Item "-fno-sched-interblock"
7437 Don't schedule instructions across basic blocks.  This is normally
7438 enabled by default when scheduling before register allocation, i.e.
7439 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7440 .IP "\fB\-fno\-sched\-spec\fR" 4
7441 .IX Item "-fno-sched-spec"
7442 Don't allow speculative motion of non-load instructions.  This is normally
7443 enabled by default when scheduling before register allocation, i.e.
7444 with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7445 .IP "\fB\-fsched\-pressure\fR" 4
7446 .IX Item "-fsched-pressure"
7447 Enable register pressure sensitive insn scheduling before register
7448 allocation.  This only makes sense when scheduling before register
7449 allocation is enabled, i.e. with \fB\-fschedule\-insns\fR or at
7450 \&\fB\-O2\fR or higher.  Usage of this option can improve the
7451 generated code and decrease its size by preventing register pressure
7452 increase above the number of available hard registers and subsequent
7453 spills in register allocation.
7454 .IP "\fB\-fsched\-spec\-load\fR" 4
7455 .IX Item "-fsched-spec-load"
7456 Allow speculative motion of some load instructions.  This only makes
7457 sense when scheduling before register allocation, i.e. with
7458 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7459 .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
7460 .IX Item "-fsched-spec-load-dangerous"
7461 Allow speculative motion of more load instructions.  This only makes
7462 sense when scheduling before register allocation, i.e. with
7463 \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
7464 .IP "\fB\-fsched\-stalled\-insns\fR" 4
7465 .IX Item "-fsched-stalled-insns"
7466 .PD 0
7467 .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
7468 .IX Item "-fsched-stalled-insns=n"
7469 .PD
7470 Define how many insns (if any) can be moved prematurely from the queue
7471 of stalled insns into the ready list during the second scheduling pass.
7472 \&\fB\-fno\-sched\-stalled\-insns\fR means that no insns are moved
7473 prematurely, \fB\-fsched\-stalled\-insns=0\fR means there is no limit
7474 on how many queued insns can be moved prematurely.
7475 \&\fB\-fsched\-stalled\-insns\fR without a value is equivalent to
7476 \&\fB\-fsched\-stalled\-insns=1\fR.
7477 .IP "\fB\-fsched\-stalled\-insns\-dep\fR" 4
7478 .IX Item "-fsched-stalled-insns-dep"
7479 .PD 0
7480 .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
7481 .IX Item "-fsched-stalled-insns-dep=n"
7482 .PD
7483 Define how many insn groups (cycles) are examined for a dependency
7484 on a stalled insn that is a candidate for premature removal from the queue
7485 of stalled insns.  This has an effect only during the second scheduling pass,
7486 and only if \fB\-fsched\-stalled\-insns\fR is used.
7487 \&\fB\-fno\-sched\-stalled\-insns\-dep\fR is equivalent to
7488 \&\fB\-fsched\-stalled\-insns\-dep=0\fR.
7489 \&\fB\-fsched\-stalled\-insns\-dep\fR without a value is equivalent to
7490 \&\fB\-fsched\-stalled\-insns\-dep=1\fR.
7491 .IP "\fB\-fsched2\-use\-superblocks\fR" 4
7492 .IX Item "-fsched2-use-superblocks"
7493 When scheduling after register allocation, use superblock scheduling.
7494 This allows motion across basic block boundaries,
7495 resulting in faster schedules.  This option is experimental, as not all machine
7496 descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
7497 results from the algorithm.
7498 .Sp
7499 This only makes sense when scheduling after register allocation, i.e. with
7500 \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
7501 .IP "\fB\-fsched\-group\-heuristic\fR" 4
7502 .IX Item "-fsched-group-heuristic"
7503 Enable the group heuristic in the scheduler.  This heuristic favors
7504 the instruction that belongs to a schedule group.  This is enabled
7505 by default when scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
7506 or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
7507 .IP "\fB\-fsched\-critical\-path\-heuristic\fR" 4
7508 .IX Item "-fsched-critical-path-heuristic"
7509 Enable the critical-path heuristic in the scheduler.  This heuristic favors
7510 instructions on the critical path.  This is enabled by default when
7511 scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
7512 or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
7513 .IP "\fB\-fsched\-spec\-insn\-heuristic\fR" 4
7514 .IX Item "-fsched-spec-insn-heuristic"
7515 Enable the speculative instruction heuristic in the scheduler.  This
7516 heuristic favors speculative instructions with greater dependency weakness.
7517 This is enabled by default when scheduling is enabled, i.e.
7518 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR
7519 or at \fB\-O2\fR or higher.
7520 .IP "\fB\-fsched\-rank\-heuristic\fR" 4
7521 .IX Item "-fsched-rank-heuristic"
7522 Enable the rank heuristic in the scheduler.  This heuristic favors
7523 the instruction belonging to a basic block with greater size or frequency.
7524 This is enabled by default when scheduling is enabled, i.e.
7525 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
7526 at \fB\-O2\fR or higher.
7527 .IP "\fB\-fsched\-last\-insn\-heuristic\fR" 4
7528 .IX Item "-fsched-last-insn-heuristic"
7529 Enable the last-instruction heuristic in the scheduler.  This heuristic
7530 favors the instruction that is less dependent on the last instruction
7531 scheduled.  This is enabled by default when scheduling is enabled,
7532 i.e. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
7533 at \fB\-O2\fR or higher.
7534 .IP "\fB\-fsched\-dep\-count\-heuristic\fR" 4
7535 .IX Item "-fsched-dep-count-heuristic"
7536 Enable the dependent-count heuristic in the scheduler.  This heuristic
7537 favors the instruction that has more instructions depending on it.
7538 This is enabled by default when scheduling is enabled, i.e.
7539 with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
7540 at \fB\-O2\fR or higher.
7541 .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
7542 .IX Item "-freschedule-modulo-scheduled-loops"
7543 Modulo scheduling is performed before traditional scheduling.  If a loop
7544 is modulo scheduled, later scheduling passes may change its schedule.  
7545 Use this option to control that behavior.
7546 .IP "\fB\-fselective\-scheduling\fR" 4
7547 .IX Item "-fselective-scheduling"
7548 Schedule instructions using selective scheduling algorithm.  Selective
7549 scheduling runs instead of the first scheduler pass.
7550 .IP "\fB\-fselective\-scheduling2\fR" 4
7551 .IX Item "-fselective-scheduling2"
7552 Schedule instructions using selective scheduling algorithm.  Selective
7553 scheduling runs instead of the second scheduler pass.
7554 .IP "\fB\-fsel\-sched\-pipelining\fR" 4
7555 .IX Item "-fsel-sched-pipelining"
7556 Enable software pipelining of innermost loops during selective scheduling.
7557 This option has no effect unless one of \fB\-fselective\-scheduling\fR or
7558 \&\fB\-fselective\-scheduling2\fR is turned on.
7559 .IP "\fB\-fsel\-sched\-pipelining\-outer\-loops\fR" 4
7560 .IX Item "-fsel-sched-pipelining-outer-loops"
7561 When pipelining loops during selective scheduling, also pipeline outer loops.
7562 This option has no effect unless \fB\-fsel\-sched\-pipelining\fR is turned on.
7563 .IP "\fB\-fsemantic\-interposition\fR" 4
7564 .IX Item "-fsemantic-interposition"
7565 Some object formats, like \s-1ELF,\s0 allow interposing of symbols by the 
7566 dynamic linker.
7567 This means that for symbols exported from the \s-1DSO,\s0 the compiler cannot perform
7568 interprocedural propagation, inlining and other optimizations in anticipation
7569 that the function or variable in question may change. While this feature is
7570 useful, for example, to rewrite memory allocation functions by a debugging
7571 implementation, it is expensive in the terms of code quality.
7572 With \fB\-fno\-semantic\-interposition\fR the compiler assumes that 
7573 if interposition happens for functions the overwriting function will have 
7574 precisely the same semantics (and side effects). 
7575 Similarly if interposition happens
7576 for variables, the constructor of the variable will be the same. The flag
7577 has no effect for functions explicitly declared inline 
7578 (where it is never allowed for interposition to change semantics) 
7579 and for symbols explicitly declared weak.
7580 .IP "\fB\-fshrink\-wrap\fR" 4
7581 .IX Item "-fshrink-wrap"
7582 Emit function prologues only before parts of the function that need it,
7583 rather than at the top of the function.  This flag is enabled by default at
7584 \&\fB\-O\fR and higher.
7585 .IP "\fB\-fcaller\-saves\fR" 4
7586 .IX Item "-fcaller-saves"
7587 Enable allocation of values to registers that are clobbered by
7588 function calls, by emitting extra instructions to save and restore the
7589 registers around such calls.  Such allocation is done only when it
7590 seems to result in better code.
7591 .Sp
7592 This option is always enabled by default on certain machines, usually
7593 those which have no call-preserved registers to use instead.
7594 .Sp
7595 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7596 .IP "\fB\-fcombine\-stack\-adjustments\fR" 4
7597 .IX Item "-fcombine-stack-adjustments"
7598 Tracks stack adjustments (pushes and pops) and stack memory references
7599 and then tries to find ways to combine them.
7600 .Sp
7601 Enabled by default at \fB\-O1\fR and higher.
7602 .IP "\fB\-fipa\-ra\fR" 4
7603 .IX Item "-fipa-ra"
7604 Use caller save registers for allocation if those registers are not used by
7605 any called function.  In that case it is not necessary to save and restore
7606 them around calls.  This is only possible if called functions are part of
7607 same compilation unit as current function and they are compiled before it.
7608 .Sp
7609 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
7610 .IP "\fB\-fconserve\-stack\fR" 4
7611 .IX Item "-fconserve-stack"
7612 Attempt to minimize stack usage.  The compiler attempts to use less
7613 stack space, even if that makes the program slower.  This option
7614 implies setting the \fBlarge-stack-frame\fR parameter to 100
7615 and the \fBlarge-stack-frame-growth\fR parameter to 400.
7616 .IP "\fB\-ftree\-reassoc\fR" 4
7617 .IX Item "-ftree-reassoc"
7618 Perform reassociation on trees.  This flag is enabled by default
7619 at \fB\-O\fR and higher.
7620 .IP "\fB\-ftree\-pre\fR" 4
7621 .IX Item "-ftree-pre"
7622 Perform partial redundancy elimination (\s-1PRE\s0) on trees.  This flag is
7623 enabled by default at \fB\-O2\fR and \fB\-O3\fR.
7624 .IP "\fB\-ftree\-partial\-pre\fR" 4
7625 .IX Item "-ftree-partial-pre"
7626 Make partial redundancy elimination (\s-1PRE\s0) more aggressive.  This flag is
7627 enabled by default at \fB\-O3\fR.
7628 .IP "\fB\-ftree\-forwprop\fR" 4
7629 .IX Item "-ftree-forwprop"
7630 Perform forward propagation on trees.  This flag is enabled by default
7631 at \fB\-O\fR and higher.
7632 .IP "\fB\-ftree\-fre\fR" 4
7633 .IX Item "-ftree-fre"
7634 Perform full redundancy elimination (\s-1FRE\s0) on trees.  The difference
7635 between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
7636 that are computed on all paths leading to the redundant computation.
7637 This analysis is faster than \s-1PRE,\s0 though it exposes fewer redundancies.
7638 This flag is enabled by default at \fB\-O\fR and higher.
7639 .IP "\fB\-ftree\-phiprop\fR" 4
7640 .IX Item "-ftree-phiprop"
7641 Perform hoisting of loads from conditional pointers on trees.  This
7642 pass is enabled by default at \fB\-O\fR and higher.
7643 .IP "\fB\-fhoist\-adjacent\-loads\fR" 4
7644 .IX Item "-fhoist-adjacent-loads"
7645 Speculatively hoist loads from both branches of an if-then-else if the
7646 loads are from adjacent locations in the same structure and the target
7647 architecture has a conditional move instruction.  This flag is enabled
7648 by default at \fB\-O2\fR and higher.
7649 .IP "\fB\-ftree\-copy\-prop\fR" 4
7650 .IX Item "-ftree-copy-prop"
7651 Perform copy propagation on trees.  This pass eliminates unnecessary
7652 copy operations.  This flag is enabled by default at \fB\-O\fR and
7653 higher.
7654 .IP "\fB\-fipa\-pure\-const\fR" 4
7655 .IX Item "-fipa-pure-const"
7656 Discover which functions are pure or constant.
7657 Enabled by default at \fB\-O\fR and higher.
7658 .IP "\fB\-fipa\-reference\fR" 4
7659 .IX Item "-fipa-reference"
7660 Discover which static variables do not escape the
7661 compilation unit.
7662 Enabled by default at \fB\-O\fR and higher.
7663 .IP "\fB\-fipa\-pta\fR" 4
7664 .IX Item "-fipa-pta"
7665 Perform interprocedural pointer analysis and interprocedural modification
7666 and reference analysis.  This option can cause excessive memory and
7667 compile-time usage on large compilation units.  It is not enabled by
7668 default at any optimization level.
7669 .IP "\fB\-fipa\-profile\fR" 4
7670 .IX Item "-fipa-profile"
7671 Perform interprocedural profile propagation.  The functions called only from
7672 cold functions are marked as cold. Also functions executed once (such as
7673 \&\f(CW\*(C`cold\*(C'\fR, \f(CW\*(C`noreturn\*(C'\fR, static constructors or destructors) are identified. Cold
7674 functions and loop less parts of functions executed once are then optimized for
7675 size.
7676 Enabled by default at \fB\-O\fR and higher.
7677 .IP "\fB\-fipa\-cp\fR" 4
7678 .IX Item "-fipa-cp"
7679 Perform interprocedural constant propagation.
7680 This optimization analyzes the program to determine when values passed
7681 to functions are constants and then optimizes accordingly.
7682 This optimization can substantially increase performance
7683 if the application has constants passed to functions.
7684 This flag is enabled by default at \fB\-O2\fR, \fB\-Os\fR and \fB\-O3\fR.
7685 .IP "\fB\-fipa\-cp\-clone\fR" 4
7686 .IX Item "-fipa-cp-clone"
7687 Perform function cloning to make interprocedural constant propagation stronger.
7688 When enabled, interprocedural constant propagation performs function cloning
7689 when externally visible function can be called with constant arguments.
7690 Because this optimization can create multiple copies of functions,
7691 it may significantly increase code size
7692 (see \fB\-\-param ipcp\-unit\-growth=\fR\fIvalue\fR).
7693 This flag is enabled by default at \fB\-O3\fR.
7694 .IP "\fB\-fipa\-cp\-alignment\fR" 4
7695 .IX Item "-fipa-cp-alignment"
7696 When enabled, this optimization propagates alignment of function
7697 parameters to support better vectorization and string operations.
7698 .Sp
7699 This flag is enabled by default at \fB\-O2\fR and \fB\-Os\fR.  It
7700 requires that \fB\-fipa\-cp\fR is enabled.
7701 .IP "\fB\-fipa\-icf\fR" 4
7702 .IX Item "-fipa-icf"
7703 Perform Identical Code Folding for functions and read-only variables.
7704 The optimization reduces code size and may disturb unwind stacks by replacing
7705 a function by equivalent one with a different name. The optimization works
7706 more effectively with link time optimization enabled.
7707 .Sp
7708 Nevertheless the behavior is similar to Gold Linker \s-1ICF\s0 optimization, \s-1GCC ICF\s0
7709 works on different levels and thus the optimizations are not same \- there are
7710 equivalences that are found only by \s-1GCC\s0 and equivalences found only by Gold.
7711 .Sp
7712 This flag is enabled by default at \fB\-O2\fR and \fB\-Os\fR.
7713 .IP "\fB\-fisolate\-erroneous\-paths\-dereference\fR" 4
7714 .IX Item "-fisolate-erroneous-paths-dereference"
7715 Detect paths that trigger erroneous or undefined behavior due to
7716 dereferencing a null pointer.  Isolate those paths from the main control
7717 flow and turn the statement with erroneous or undefined behavior into a trap.
7718 This flag is enabled by default at \fB\-O2\fR and higher.
7719 .IP "\fB\-fisolate\-erroneous\-paths\-attribute\fR" 4
7720 .IX Item "-fisolate-erroneous-paths-attribute"
7721 Detect paths that trigger erroneous or undefined behavior due a null value
7722 being used in a way forbidden by a \f(CW\*(C`returns_nonnull\*(C'\fR or \f(CW\*(C`nonnull\*(C'\fR
7723 attribute.  Isolate those paths from the main control flow and turn the
7724 statement with erroneous or undefined behavior into a trap.  This is not
7725 currently enabled, but may be enabled by \fB\-O2\fR in the future.
7726 .IP "\fB\-ftree\-sink\fR" 4
7727 .IX Item "-ftree-sink"
7728 Perform forward store motion  on trees.  This flag is
7729 enabled by default at \fB\-O\fR and higher.
7730 .IP "\fB\-ftree\-bit\-ccp\fR" 4
7731 .IX Item "-ftree-bit-ccp"
7732 Perform sparse conditional bit constant propagation on trees and propagate
7733 pointer alignment information.
7734 This pass only operates on local scalar variables and is enabled by default
7735 at \fB\-O\fR and higher.  It requires that \fB\-ftree\-ccp\fR is enabled.
7736 .IP "\fB\-ftree\-ccp\fR" 4
7737 .IX Item "-ftree-ccp"
7738 Perform sparse conditional constant propagation (\s-1CCP\s0) on trees.  This
7739 pass only operates on local scalar variables and is enabled by default
7740 at \fB\-O\fR and higher.
7741 .IP "\fB\-fssa\-phiopt\fR" 4
7742 .IX Item "-fssa-phiopt"
7743 Perform pattern matching on \s-1SSA PHI\s0 nodes to optimize conditional
7744 code.  This pass is enabled by default at \fB\-O\fR and higher.
7745 .IP "\fB\-ftree\-switch\-conversion\fR" 4
7746 .IX Item "-ftree-switch-conversion"
7747 Perform conversion of simple initializations in a switch to
7748 initializations from a scalar array.  This flag is enabled by default
7749 at \fB\-O2\fR and higher.
7750 .IP "\fB\-ftree\-tail\-merge\fR" 4
7751 .IX Item "-ftree-tail-merge"
7752 Look for identical code sequences.  When found, replace one with a jump to the
7753 other.  This optimization is known as tail merging or cross jumping.  This flag
7754 is enabled by default at \fB\-O2\fR and higher.  The compilation time
7755 in this pass can
7756 be limited using \fBmax-tail-merge-comparisons\fR parameter and
7757 \&\fBmax-tail-merge-iterations\fR parameter.
7758 .IP "\fB\-ftree\-dce\fR" 4
7759 .IX Item "-ftree-dce"
7760 Perform dead code elimination (\s-1DCE\s0) on trees.  This flag is enabled by
7761 default at \fB\-O\fR and higher.
7762 .IP "\fB\-ftree\-builtin\-call\-dce\fR" 4
7763 .IX Item "-ftree-builtin-call-dce"
7764 Perform conditional dead code elimination (\s-1DCE\s0) for calls to built-in functions
7765 that may set \f(CW\*(C`errno\*(C'\fR but are otherwise side-effect free.  This flag is
7766 enabled by default at \fB\-O2\fR and higher if \fB\-Os\fR is not also
7767 specified.
7768 .IP "\fB\-ftree\-dominator\-opts\fR" 4
7769 .IX Item "-ftree-dominator-opts"
7770 Perform a variety of simple scalar cleanups (constant/copy
7771 propagation, redundancy elimination, range propagation and expression
7772 simplification) based on a dominator tree traversal.  This also
7773 performs jump threading (to reduce jumps to jumps). This flag is
7774 enabled by default at \fB\-O\fR and higher.
7775 .IP "\fB\-ftree\-dse\fR" 4
7776 .IX Item "-ftree-dse"
7777 Perform dead store elimination (\s-1DSE\s0) on trees.  A dead store is a store into
7778 a memory location that is later overwritten by another store without
7779 any intervening loads.  In this case the earlier store can be deleted.  This
7780 flag is enabled by default at \fB\-O\fR and higher.
7781 .IP "\fB\-ftree\-ch\fR" 4
7782 .IX Item "-ftree-ch"
7783 Perform loop header copying on trees.  This is beneficial since it increases
7784 effectiveness of code motion optimizations.  It also saves one jump.  This flag
7785 is enabled by default at \fB\-O\fR and higher.  It is not enabled
7786 for \fB\-Os\fR, since it usually increases code size.
7787 .IP "\fB\-ftree\-loop\-optimize\fR" 4
7788 .IX Item "-ftree-loop-optimize"
7789 Perform loop optimizations on trees.  This flag is enabled by default
7790 at \fB\-O\fR and higher.
7791 .IP "\fB\-ftree\-loop\-linear\fR" 4
7792 .IX Item "-ftree-loop-linear"
7793 Perform loop interchange transformations on tree.  Same as
7794 \&\fB\-floop\-interchange\fR.  To use this code transformation, \s-1GCC\s0 has
7795 to be configured with \fB\-\-with\-isl\fR to enable the Graphite loop
7796 transformation infrastructure.
7797 .IP "\fB\-floop\-interchange\fR" 4
7798 .IX Item "-floop-interchange"
7799 Perform loop interchange transformations on loops.  Interchanging two
7800 nested loops switches the inner and outer loops.  For example, given a
7801 loop like:
7802 .Sp
7803 .Vb 5
7804 \&        DO J = 1, M
7805 \&          DO I = 1, N
7806 \&            A(J, I) = A(J, I) * C
7807 \&          ENDDO
7808 \&        ENDDO
7809 .Ve
7810 .Sp
7811 loop interchange transforms the loop as if it were written:
7812 .Sp
7813 .Vb 5
7814 \&        DO I = 1, N
7815 \&          DO J = 1, M
7816 \&            A(J, I) = A(J, I) * C
7817 \&          ENDDO
7818 \&        ENDDO
7819 .Ve
7820 .Sp
7821 which can be beneficial when \f(CW\*(C`N\*(C'\fR is larger than the caches,
7822 because in Fortran, the elements of an array are stored in memory
7823 contiguously by column, and the original loop iterates over rows,
7824 potentially creating at each access a cache miss.  This optimization
7825 applies to all the languages supported by \s-1GCC\s0 and is not limited to
7826 Fortran.  To use this code transformation, \s-1GCC\s0 has to be configured
7827 with \fB\-\-with\-isl\fR to enable the Graphite loop transformation
7828 infrastructure.
7829 .IP "\fB\-floop\-strip\-mine\fR" 4
7830 .IX Item "-floop-strip-mine"
7831 Perform loop strip mining transformations on loops.  Strip mining
7832 splits a loop into two nested loops.  The outer loop has strides
7833 equal to the strip size and the inner loop has strides of the
7834 original loop within a strip.  The strip length can be changed
7835 using the \fBloop-block-tile-size\fR parameter.  For example,
7836 given a loop like:
7837 .Sp
7838 .Vb 3
7839 \&        DO I = 1, N
7840 \&          A(I) = A(I) + C
7841 \&        ENDDO
7842 .Ve
7843 .Sp
7844 loop strip mining transforms the loop as if it were written:
7845 .Sp
7846 .Vb 5
7847 \&        DO II = 1, N, 51
7848 \&          DO I = II, min (II + 50, N)
7849 \&            A(I) = A(I) + C
7850 \&          ENDDO
7851 \&        ENDDO
7852 .Ve
7853 .Sp
7854 This optimization applies to all the languages supported by \s-1GCC\s0 and is
7855 not limited to Fortran.  To use this code transformation, \s-1GCC\s0 has to
7856 be configured with \fB\-\-with\-isl\fR to enable the Graphite loop
7857 transformation infrastructure.
7858 .IP "\fB\-floop\-block\fR" 4
7859 .IX Item "-floop-block"
7860 Perform loop blocking transformations on loops.  Blocking strip mines
7861 each loop in the loop nest such that the memory accesses of the
7862 element loops fit inside caches.  The strip length can be changed
7863 using the \fBloop-block-tile-size\fR parameter.  For example, given
7864 a loop like:
7865 .Sp
7866 .Vb 5
7867 \&        DO I = 1, N
7868 \&          DO J = 1, M
7869 \&            A(J, I) = B(I) + C(J)
7870 \&          ENDDO
7871 \&        ENDDO
7872 .Ve
7873 .Sp
7874 loop blocking transforms the loop as if it were written:
7875 .Sp
7876 .Vb 9
7877 \&        DO II = 1, N, 51
7878 \&          DO JJ = 1, M, 51
7879 \&            DO I = II, min (II + 50, N)
7880 \&              DO J = JJ, min (JJ + 50, M)
7881 \&                A(J, I) = B(I) + C(J)
7882 \&              ENDDO
7883 \&            ENDDO
7884 \&          ENDDO
7885 \&        ENDDO
7886 .Ve
7887 .Sp
7888 which can be beneficial when \f(CW\*(C`M\*(C'\fR is larger than the caches,
7889 because the innermost loop iterates over a smaller amount of data
7890 which can be kept in the caches.  This optimization applies to all the
7891 languages supported by \s-1GCC\s0 and is not limited to Fortran.  To use this
7892 code transformation, \s-1GCC\s0 has to be configured with \fB\-\-with\-isl\fR
7893 to enable the Graphite loop transformation infrastructure.
7894 .IP "\fB\-fgraphite\-identity\fR" 4
7895 .IX Item "-fgraphite-identity"
7896 Enable the identity transformation for graphite.  For every SCoP we generate
7897 the polyhedral representation and transform it back to gimple.  Using
7898 \&\fB\-fgraphite\-identity\fR we can check the costs or benefits of the
7899 \&\s-1GIMPLE \-\s0> \s-1GRAPHITE \-\s0> \s-1GIMPLE\s0 transformation.  Some minimal optimizations
7900 are also performed by the code generator \s-1ISL,\s0 like index splitting and
7901 dead code elimination in loops.
7902 .IP "\fB\-floop\-nest\-optimize\fR" 4
7903 .IX Item "-floop-nest-optimize"
7904 Enable the \s-1ISL\s0 based loop nest optimizer.  This is a generic loop nest
7905 optimizer based on the Pluto optimization algorithms.  It calculates a loop
7906 structure optimized for data-locality and parallelism.  This option
7907 is experimental.
7908 .IP "\fB\-floop\-unroll\-and\-jam\fR" 4
7909 .IX Item "-floop-unroll-and-jam"
7910 Enable unroll and jam for the \s-1ISL\s0 based loop nest optimizer.  The unroll 
7911 factor can be changed using the \fBloop-unroll-jam-size\fR parameter.
7912 The unrolled dimension (counting from the most inner one) can be changed 
7913 using the \fBloop-unroll-jam-depth\fR parameter.                 .
7914 .IP "\fB\-floop\-parallelize\-all\fR" 4
7915 .IX Item "-floop-parallelize-all"
7916 Use the Graphite data dependence analysis to identify loops that can
7917 be parallelized.  Parallelize all the loops that can be analyzed to
7918 not contain loop carried dependences without checking that it is
7919 profitable to parallelize the loops.
7920 .IP "\fB\-fcheck\-data\-deps\fR" 4
7921 .IX Item "-fcheck-data-deps"
7922 Compare the results of several data dependence analyzers.  This option
7923 is used for debugging the data dependence analyzers.
7924 .IP "\fB\-ftree\-loop\-if\-convert\fR" 4
7925 .IX Item "-ftree-loop-if-convert"
7926 Attempt to transform conditional jumps in the innermost loops to
7927 branch-less equivalents.  The intent is to remove control-flow from
7928 the innermost loops in order to improve the ability of the
7929 vectorization pass to handle these loops.  This is enabled by default
7930 if vectorization is enabled.
7931 .IP "\fB\-ftree\-loop\-if\-convert\-stores\fR" 4
7932 .IX Item "-ftree-loop-if-convert-stores"
7933 Attempt to also if-convert conditional jumps containing memory writes.
7934 This transformation can be unsafe for multi-threaded programs as it
7935 transforms conditional memory writes into unconditional memory writes.
7936 For example,
7937 .Sp
7938 .Vb 3
7939 \&        for (i = 0; i < N; i++)
7940 \&          if (cond)
7941 \&            A[i] = expr;
7942 .Ve
7943 .Sp
7944 is transformed to
7945 .Sp
7946 .Vb 2
7947 \&        for (i = 0; i < N; i++)
7948 \&          A[i] = cond ? expr : A[i];
7949 .Ve
7950 .Sp
7951 potentially producing data races.
7952 .IP "\fB\-ftree\-loop\-distribution\fR" 4
7953 .IX Item "-ftree-loop-distribution"
7954 Perform loop distribution.  This flag can improve cache performance on
7955 big loop bodies and allow further loop optimizations, like
7956 parallelization or vectorization, to take place.  For example, the loop
7957 .Sp
7958 .Vb 4
7959 \&        DO I = 1, N
7960 \&          A(I) = B(I) + C
7961 \&          D(I) = E(I) * F
7962 \&        ENDDO
7963 .Ve
7964 .Sp
7965 is transformed to
7966 .Sp
7967 .Vb 6
7968 \&        DO I = 1, N
7969 \&           A(I) = B(I) + C
7970 \&        ENDDO
7971 \&        DO I = 1, N
7972 \&           D(I) = E(I) * F
7973 \&        ENDDO
7974 .Ve
7975 .IP "\fB\-ftree\-loop\-distribute\-patterns\fR" 4
7976 .IX Item "-ftree-loop-distribute-patterns"
7977 Perform loop distribution of patterns that can be code generated with
7978 calls to a library.  This flag is enabled by default at \fB\-O3\fR.
7979 .Sp
7980 This pass distributes the initialization loops and generates a call to
7981 memset zero.  For example, the loop
7982 .Sp
7983 .Vb 4
7984 \&        DO I = 1, N
7985 \&          A(I) = 0
7986 \&          B(I) = A(I) + I
7987 \&        ENDDO
7988 .Ve
7989 .Sp
7990 is transformed to
7991 .Sp
7992 .Vb 6
7993 \&        DO I = 1, N
7994 \&           A(I) = 0
7995 \&        ENDDO
7996 \&        DO I = 1, N
7997 \&           B(I) = A(I) + I
7998 \&        ENDDO
7999 .Ve
8000 .Sp
8001 and the initialization loop is transformed into a call to memset zero.
8002 .IP "\fB\-ftree\-loop\-im\fR" 4
8003 .IX Item "-ftree-loop-im"
8004 Perform loop invariant motion on trees.  This pass moves only invariants that
8005 are hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
8006 nontrivial sequences of insns).  With \fB\-funswitch\-loops\fR it also moves
8007 operands of conditions that are invariant out of the loop, so that we can use
8008 just trivial invariantness analysis in loop unswitching.  The pass also includes
8009 store motion.
8010 .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
8011 .IX Item "-ftree-loop-ivcanon"
8012 Create a canonical counter for number of iterations in loops for which
8013 determining number of iterations requires complicated analysis.  Later
8014 optimizations then may determine the number easily.  Useful especially
8015 in connection with unrolling.
8016 .IP "\fB\-fivopts\fR" 4
8017 .IX Item "-fivopts"
8018 Perform induction variable optimizations (strength reduction, induction
8019 variable merging and induction variable elimination) on trees.
8020 .IP "\fB\-ftree\-parallelize\-loops=n\fR" 4
8021 .IX Item "-ftree-parallelize-loops=n"
8022 Parallelize loops, i.e., split their iteration space to run in n threads.
8023 This is only possible for loops whose iterations are independent
8024 and can be arbitrarily reordered.  The optimization is only
8025 profitable on multiprocessor machines, for loops that are CPU-intensive,
8026 rather than constrained e.g. by memory bandwidth.  This option
8027 implies \fB\-pthread\fR, and thus is only supported on targets
8028 that have support for \fB\-pthread\fR.
8029 .IP "\fB\-ftree\-pta\fR" 4
8030 .IX Item "-ftree-pta"
8031 Perform function-local points-to analysis on trees.  This flag is
8032 enabled by default at \fB\-O\fR and higher.
8033 .IP "\fB\-ftree\-sra\fR" 4
8034 .IX Item "-ftree-sra"
8035 Perform scalar replacement of aggregates.  This pass replaces structure
8036 references with scalars to prevent committing structures to memory too
8037 early.  This flag is enabled by default at \fB\-O\fR and higher.
8038 .IP "\fB\-ftree\-copyrename\fR" 4
8039 .IX Item "-ftree-copyrename"
8040 Perform copy renaming on trees.  This pass attempts to rename compiler
8041 temporaries to other variables at copy locations, usually resulting in
8042 variable names which more closely resemble the original variables.  This flag
8043 is enabled by default at \fB\-O\fR and higher.
8044 .IP "\fB\-ftree\-coalesce\-inlined\-vars\fR" 4
8045 .IX Item "-ftree-coalesce-inlined-vars"
8046 Tell the copyrename pass (see \fB\-ftree\-copyrename\fR) to attempt to
8047 combine small user-defined variables too, but only if they are inlined
8048 from other functions.  It is a more limited form of
8049 \&\fB\-ftree\-coalesce\-vars\fR.  This may harm debug information of such
8050 inlined variables, but it keeps variables of the inlined-into
8051 function apart from each other, such that they are more likely to
8052 contain the expected values in a debugging session.
8053 .IP "\fB\-ftree\-coalesce\-vars\fR" 4
8054 .IX Item "-ftree-coalesce-vars"
8055 Tell the copyrename pass (see \fB\-ftree\-copyrename\fR) to attempt to
8056 combine small user-defined variables too, instead of just compiler
8057 temporaries.  This may severely limit the ability to debug an optimized
8058 program compiled with \fB\-fno\-var\-tracking\-assignments\fR.  In the
8059 negated form, this flag prevents \s-1SSA\s0 coalescing of user variables,
8060 including inlined ones.  This option is enabled by default.
8061 .IP "\fB\-ftree\-ter\fR" 4
8062 .IX Item "-ftree-ter"
8063 Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase.  Single
8064 use/single def temporaries are replaced at their use location with their
8065 defining expression.  This results in non-GIMPLE code, but gives the expanders
8066 much more complex trees to work on resulting in better \s-1RTL\s0 generation.  This is
8067 enabled by default at \fB\-O\fR and higher.
8068 .IP "\fB\-ftree\-slsr\fR" 4
8069 .IX Item "-ftree-slsr"
8070 Perform straight-line strength reduction on trees.  This recognizes related
8071 expressions involving multiplications and replaces them by less expensive
8072 calculations when possible.  This is enabled by default at \fB\-O\fR and
8073 higher.
8074 .IP "\fB\-ftree\-vectorize\fR" 4
8075 .IX Item "-ftree-vectorize"
8076 Perform vectorization on trees. This flag enables \fB\-ftree\-loop\-vectorize\fR
8077 and \fB\-ftree\-slp\-vectorize\fR if not explicitly specified.
8078 .IP "\fB\-ftree\-loop\-vectorize\fR" 4
8079 .IX Item "-ftree-loop-vectorize"
8080 Perform loop vectorization on trees. This flag is enabled by default at
8081 \&\fB\-O3\fR and when \fB\-ftree\-vectorize\fR is enabled.
8082 .IP "\fB\-ftree\-slp\-vectorize\fR" 4
8083 .IX Item "-ftree-slp-vectorize"
8084 Perform basic block vectorization on trees. This flag is enabled by default at
8085 \&\fB\-O3\fR and when \fB\-ftree\-vectorize\fR is enabled.
8086 .IP "\fB\-fvect\-cost\-model=\fR\fImodel\fR" 4
8087 .IX Item "-fvect-cost-model=model"
8088 Alter the cost model used for vectorization.  The \fImodel\fR argument
8089 should be one of \fBunlimited\fR, \fBdynamic\fR or \fBcheap\fR.
8090 With the \fBunlimited\fR model the vectorized code-path is assumed
8091 to be profitable while with the \fBdynamic\fR model a runtime check
8092 guards the vectorized code-path to enable it only for iteration
8093 counts that will likely execute faster than when executing the original
8094 scalar loop.  The \fBcheap\fR model disables vectorization of
8095 loops where doing so would be cost prohibitive for example due to
8096 required runtime checks for data dependence or alignment but otherwise
8097 is equal to the \fBdynamic\fR model.
8098 The default cost model depends on other optimization flags and is
8099 either \fBdynamic\fR or \fBcheap\fR.
8100 .IP "\fB\-fsimd\-cost\-model=\fR\fImodel\fR" 4
8101 .IX Item "-fsimd-cost-model=model"
8102 Alter the cost model used for vectorization of loops marked with the OpenMP
8103 or Cilk Plus simd directive.  The \fImodel\fR argument should be one of
8104 \&\fBunlimited\fR, \fBdynamic\fR, \fBcheap\fR.  All values of \fImodel\fR
8105 have the same meaning as described in \fB\-fvect\-cost\-model\fR and by
8106 default a cost model defined with \fB\-fvect\-cost\-model\fR is used.
8107 .IP "\fB\-ftree\-vrp\fR" 4
8108 .IX Item "-ftree-vrp"
8109 Perform Value Range Propagation on trees.  This is similar to the
8110 constant propagation pass, but instead of values, ranges of values are
8111 propagated.  This allows the optimizers to remove unnecessary range
8112 checks like array bound checks and null pointer checks.  This is
8113 enabled by default at \fB\-O2\fR and higher.  Null pointer check
8114 elimination is only done if \fB\-fdelete\-null\-pointer\-checks\fR is
8115 enabled.
8116 .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
8117 .IX Item "-fsplit-ivs-in-unroller"
8118 Enables expression of values of induction variables in later iterations
8119 of the unrolled loop using the value in the first iteration.  This breaks
8120 long dependency chains, thus improving efficiency of the scheduling passes.
8121 .Sp
8122 A combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
8123 same effect.  However, that is not reliable in cases where the loop body
8124 is more complicated than a single basic block.  It also does not work at all
8125 on some architectures due to restrictions in the \s-1CSE\s0 pass.
8126 .Sp
8127 This optimization is enabled by default.
8128 .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
8129 .IX Item "-fvariable-expansion-in-unroller"
8130 With this option, the compiler creates multiple copies of some
8131 local variables when unrolling a loop, which can result in superior code.
8132 .IP "\fB\-fpartial\-inlining\fR" 4
8133 .IX Item "-fpartial-inlining"
8134 Inline parts of functions.  This option has any effect only
8135 when inlining itself is turned on by the \fB\-finline\-functions\fR
8136 or \fB\-finline\-small\-functions\fR options.
8137 .Sp
8138 Enabled at level \fB\-O2\fR.
8139 .IP "\fB\-fpredictive\-commoning\fR" 4
8140 .IX Item "-fpredictive-commoning"
8141 Perform predictive commoning optimization, i.e., reusing computations
8142 (especially memory loads and stores) performed in previous
8143 iterations of loops.
8144 .Sp
8145 This option is enabled at level \fB\-O3\fR.
8146 .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
8147 .IX Item "-fprefetch-loop-arrays"
8148 If supported by the target machine, generate instructions to prefetch
8149 memory to improve the performance of loops that access large arrays.
8150 .Sp
8151 This option may generate better or worse code; results are highly
8152 dependent on the structure of loops within the source code.
8153 .Sp
8154 Disabled at level \fB\-Os\fR.
8155 .IP "\fB\-fno\-peephole\fR" 4
8156 .IX Item "-fno-peephole"
8157 .PD 0
8158 .IP "\fB\-fno\-peephole2\fR" 4
8159 .IX Item "-fno-peephole2"
8160 .PD
8161 Disable any machine-specific peephole optimizations.  The difference
8162 between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
8163 are implemented in the compiler; some targets use one, some use the
8164 other, a few use both.
8165 .Sp
8166 \&\fB\-fpeephole\fR is enabled by default.
8167 \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8168 .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
8169 .IX Item "-fno-guess-branch-probability"
8170 Do not guess branch probabilities using heuristics.
8171 .Sp
8172 \&\s-1GCC\s0 uses heuristics to guess branch probabilities if they are
8173 not provided by profiling feedback (\fB\-fprofile\-arcs\fR).  These
8174 heuristics are based on the control flow graph.  If some branch probabilities
8175 are specified by \f(CW\*(C`_\|_builtin_expect\*(C'\fR, then the heuristics are
8176 used to guess branch probabilities for the rest of the control flow graph,
8177 taking the \f(CW\*(C`_\|_builtin_expect\*(C'\fR info into account.  The interactions
8178 between the heuristics and \f(CW\*(C`_\|_builtin_expect\*(C'\fR can be complex, and in
8179 some cases, it may be useful to disable the heuristics so that the effects
8180 of \f(CW\*(C`_\|_builtin_expect\*(C'\fR are easier to understand.
8181 .Sp
8182 The default is \fB\-fguess\-branch\-probability\fR at levels
8183 \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8184 .IP "\fB\-freorder\-blocks\fR" 4
8185 .IX Item "-freorder-blocks"
8186 Reorder basic blocks in the compiled function in order to reduce number of
8187 taken branches and improve code locality.
8188 .Sp
8189 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8190 .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
8191 .IX Item "-freorder-blocks-and-partition"
8192 In addition to reordering basic blocks in the compiled function, in order
8193 to reduce number of taken branches, partitions hot and cold basic blocks
8194 into separate sections of the assembly and .o files, to improve
8195 paging and cache locality performance.
8196 .Sp
8197 This optimization is automatically turned off in the presence of
8198 exception handling, for linkonce sections, for functions with a user-defined
8199 section attribute and on any architecture that does not support named
8200 sections.
8201 .Sp
8202 Enabled for x86 at levels \fB\-O2\fR, \fB\-O3\fR.
8203 .IP "\fB\-freorder\-functions\fR" 4
8204 .IX Item "-freorder-functions"
8205 Reorder functions in the object file in order to
8206 improve code locality.  This is implemented by using special
8207 subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
8208 \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions.  Reordering is done by
8209 the linker so object file format must support named sections and linker must
8210 place them in a reasonable way.
8211 .Sp
8212 Also profile feedback must be available to make this option effective.  See
8213 \&\fB\-fprofile\-arcs\fR for details.
8214 .Sp
8215 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8216 .IP "\fB\-fstrict\-aliasing\fR" 4
8217 .IX Item "-fstrict-aliasing"
8218 Allow the compiler to assume the strictest aliasing rules applicable to
8219 the language being compiled.  For C (and \*(C+), this activates
8220 optimizations based on the type of expressions.  In particular, an
8221 object of one type is assumed never to reside at the same address as an
8222 object of a different type, unless the types are almost the same.  For
8223 example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
8224 \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR.  A character type may alias any other
8225 type.
8226 .Sp
8227 Pay special attention to code like this:
8228 .Sp
8229 .Vb 4
8230 \&        union a_union {
8231 \&          int i;
8232 \&          double d;
8233 \&        };
8234 \&        
8235 \&        int f() {
8236 \&          union a_union t;
8237 \&          t.d = 3.0;
8238 \&          return t.i;
8239 \&        }
8240 .Ve
8241 .Sp
8242 The practice of reading from a different union member than the one most
8243 recently written to (called \*(L"type-punning\*(R") is common.  Even with
8244 \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
8245 is accessed through the union type.  So, the code above works as
8246 expected.    However, this code might not:
8247 .Sp
8248 .Vb 7
8249 \&        int f() {
8250 \&          union a_union t;
8251 \&          int* ip;
8252 \&          t.d = 3.0;
8253 \&          ip = &t.i;
8254 \&          return *ip;
8255 \&        }
8256 .Ve
8257 .Sp
8258 Similarly, access by taking the address, casting the resulting pointer
8259 and dereferencing the result has undefined behavior, even if the cast
8260 uses a union type, e.g.:
8261 .Sp
8262 .Vb 4
8263 \&        int f() {
8264 \&          double d = 3.0;
8265 \&          return ((union a_union *) &d)\->i;
8266 \&        }
8267 .Ve
8268 .Sp
8269 The \fB\-fstrict\-aliasing\fR option is enabled at levels
8270 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8271 .IP "\fB\-fstrict\-overflow\fR" 4
8272 .IX Item "-fstrict-overflow"
8273 Allow the compiler to assume strict signed overflow rules, depending
8274 on the language being compiled.  For C (and \*(C+) this means that
8275 overflow when doing arithmetic with signed numbers is undefined, which
8276 means that the compiler may assume that it does not happen.  This
8277 permits various optimizations.  For example, the compiler assumes
8278 that an expression like \f(CW\*(C`i + 10 > i\*(C'\fR is always true for
8279 signed \f(CW\*(C`i\*(C'\fR.  This assumption is only valid if signed overflow is
8280 undefined, as the expression is false if \f(CW\*(C`i + 10\*(C'\fR overflows when
8281 using twos complement arithmetic.  When this option is in effect any
8282 attempt to determine whether an operation on signed numbers 
8283 overflows must be written carefully to not actually involve overflow.
8284 .Sp
8285 This option also allows the compiler to assume strict pointer
8286 semantics: given a pointer to an object, if adding an offset to that
8287 pointer does not produce a pointer to the same object, the addition is
8288 undefined.  This permits the compiler to conclude that \f(CW\*(C`p + u >
8289 p\*(C'\fR is always true for a pointer \f(CW\*(C`p\*(C'\fR and unsigned integer
8290 \&\f(CW\*(C`u\*(C'\fR.  This assumption is only valid because pointer wraparound is
8291 undefined, as the expression is false if \f(CW\*(C`p + u\*(C'\fR overflows using
8292 twos complement arithmetic.
8293 .Sp
8294 See also the \fB\-fwrapv\fR option.  Using \fB\-fwrapv\fR means
8295 that integer signed overflow is fully defined: it wraps.  When
8296 \&\fB\-fwrapv\fR is used, there is no difference between
8297 \&\fB\-fstrict\-overflow\fR and \fB\-fno\-strict\-overflow\fR for
8298 integers.  With \fB\-fwrapv\fR certain types of overflow are
8299 permitted.  For example, if the compiler gets an overflow when doing
8300 arithmetic on constants, the overflowed value can still be used with
8301 \&\fB\-fwrapv\fR, but not otherwise.
8302 .Sp
8303 The \fB\-fstrict\-overflow\fR option is enabled at levels
8304 \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8305 .IP "\fB\-falign\-functions\fR" 4
8306 .IX Item "-falign-functions"
8307 .PD 0
8308 .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
8309 .IX Item "-falign-functions=n"
8310 .PD
8311 Align the start of functions to the next power-of-two greater than
8312 \&\fIn\fR, skipping up to \fIn\fR bytes.  For instance,
8313 \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
8314 boundary, but \fB\-falign\-functions=24\fR aligns to the next
8315 32\-byte boundary only if this can be done by skipping 23 bytes or less.
8316 .Sp
8317 \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
8318 equivalent and mean that functions are not aligned.
8319 .Sp
8320 Some assemblers only support this flag when \fIn\fR is a power of two;
8321 in that case, it is rounded up.
8322 .Sp
8323 If \fIn\fR is not specified or is zero, use a machine-dependent default.
8324 .Sp
8325 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8326 .IP "\fB\-falign\-labels\fR" 4
8327 .IX Item "-falign-labels"
8328 .PD 0
8329 .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
8330 .IX Item "-falign-labels=n"
8331 .PD
8332 Align all branch targets to a power-of-two boundary, skipping up to
8333 \&\fIn\fR bytes like \fB\-falign\-functions\fR.  This option can easily
8334 make code slower, because it must insert dummy operations for when the
8335 branch target is reached in the usual flow of the code.
8336 .Sp
8337 \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
8338 equivalent and mean that labels are not aligned.
8339 .Sp
8340 If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
8341 are greater than this value, then their values are used instead.
8342 .Sp
8343 If \fIn\fR is not specified or is zero, use a machine-dependent default
8344 which is very likely to be \fB1\fR, meaning no alignment.
8345 .Sp
8346 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8347 .IP "\fB\-falign\-loops\fR" 4
8348 .IX Item "-falign-loops"
8349 .PD 0
8350 .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
8351 .IX Item "-falign-loops=n"
8352 .PD
8353 Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
8354 like \fB\-falign\-functions\fR.  If the loops are
8355 executed many times, this makes up for any execution of the dummy
8356 operations.
8357 .Sp
8358 \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
8359 equivalent and mean that loops are not aligned.
8360 .Sp
8361 If \fIn\fR is not specified or is zero, use a machine-dependent default.
8362 .Sp
8363 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8364 .IP "\fB\-falign\-jumps\fR" 4
8365 .IX Item "-falign-jumps"
8366 .PD 0
8367 .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
8368 .IX Item "-falign-jumps=n"
8369 .PD
8370 Align branch targets to a power-of-two boundary, for branch targets
8371 where the targets can only be reached by jumping, skipping up to \fIn\fR
8372 bytes like \fB\-falign\-functions\fR.  In this case, no dummy operations
8373 need be executed.
8374 .Sp
8375 \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
8376 equivalent and mean that loops are not aligned.
8377 .Sp
8378 If \fIn\fR is not specified or is zero, use a machine-dependent default.
8379 .Sp
8380 Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
8381 .IP "\fB\-funit\-at\-a\-time\fR" 4
8382 .IX Item "-funit-at-a-time"
8383 This option is left for compatibility reasons. \fB\-funit\-at\-a\-time\fR
8384 has no effect, while \fB\-fno\-unit\-at\-a\-time\fR implies
8385 \&\fB\-fno\-toplevel\-reorder\fR and \fB\-fno\-section\-anchors\fR.
8386 .Sp
8387 Enabled by default.
8388 .IP "\fB\-fno\-toplevel\-reorder\fR" 4
8389 .IX Item "-fno-toplevel-reorder"
8390 Do not reorder top-level functions, variables, and \f(CW\*(C`asm\*(C'\fR
8391 statements.  Output them in the same order that they appear in the
8392 input file.  When this option is used, unreferenced static variables
8393 are not removed.  This option is intended to support existing code
8394 that relies on a particular ordering.  For new code, it is better to
8395 use attributes when possible.
8396 .Sp
8397 Enabled at level \fB\-O0\fR.  When disabled explicitly, it also implies
8398 \&\fB\-fno\-section\-anchors\fR, which is otherwise enabled at \fB\-O0\fR on some
8399 targets.
8400 .IP "\fB\-fweb\fR" 4
8401 .IX Item "-fweb"
8402 Constructs webs as commonly used for register allocation purposes and assign
8403 each web individual pseudo register.  This allows the register allocation pass
8404 to operate on pseudos directly, but also strengthens several other optimization
8405 passes, such as \s-1CSE,\s0 loop optimizer and trivial dead code remover.  It can,
8406 however, make debugging impossible, since variables no longer stay in a
8407 \&\*(L"home register\*(R".
8408 .Sp
8409 Enabled by default with \fB\-funroll\-loops\fR.
8410 .IP "\fB\-fwhole\-program\fR" 4
8411 .IX Item "-fwhole-program"
8412 Assume that the current compilation unit represents the whole program being
8413 compiled.  All public functions and variables with the exception of \f(CW\*(C`main\*(C'\fR
8414 and those merged by attribute \f(CW\*(C`externally_visible\*(C'\fR become static functions
8415 and in effect are optimized more aggressively by interprocedural optimizers.
8416 .Sp
8417 This option should not be used in combination with \fB\-flto\fR.
8418 Instead relying on a linker plugin should provide safer and more precise
8419 information.
8420 .IP "\fB\-flto[=\fR\fIn\fR\fB]\fR" 4
8421 .IX Item "-flto[=n]"
8422 This option runs the standard link-time optimizer.  When invoked
8423 with source code, it generates \s-1GIMPLE \s0(one of \s-1GCC\s0's internal
8424 representations) and writes it to special \s-1ELF\s0 sections in the object
8425 file.  When the object files are linked together, all the function
8426 bodies are read from these \s-1ELF\s0 sections and instantiated as if they
8427 had been part of the same translation unit.
8428 .Sp
8429 To use the link-time optimizer, \fB\-flto\fR and optimization
8430 options should be specified at compile time and during the final link.
8431 For example:
8432 .Sp
8433 .Vb 3
8434 \&        gcc \-c \-O2 \-flto foo.c
8435 \&        gcc \-c \-O2 \-flto bar.c
8436 \&        gcc \-o myprog \-flto \-O2 foo.o bar.o
8437 .Ve
8438 .Sp
8439 The first two invocations to \s-1GCC\s0 save a bytecode representation
8440 of \s-1GIMPLE\s0 into special \s-1ELF\s0 sections inside \fIfoo.o\fR and
8441 \&\fIbar.o\fR.  The final invocation reads the \s-1GIMPLE\s0 bytecode from
8442 \&\fIfoo.o\fR and \fIbar.o\fR, merges the two files into a single
8443 internal image, and compiles the result as usual.  Since both
8444 \&\fIfoo.o\fR and \fIbar.o\fR are merged into a single image, this
8445 causes all the interprocedural analyses and optimizations in \s-1GCC\s0 to
8446 work across the two files as if they were a single one.  This means,
8447 for example, that the inliner is able to inline functions in
8448 \&\fIbar.o\fR into functions in \fIfoo.o\fR and vice-versa.
8449 .Sp
8450 Another (simpler) way to enable link-time optimization is:
8451 .Sp
8452 .Vb 1
8453 \&        gcc \-o myprog \-flto \-O2 foo.c bar.c
8454 .Ve
8455 .Sp
8456 The above generates bytecode for \fIfoo.c\fR and \fIbar.c\fR,
8457 merges them together into a single \s-1GIMPLE\s0 representation and optimizes
8458 them as usual to produce \fImyprog\fR.
8459 .Sp
8460 The only important thing to keep in mind is that to enable link-time
8461 optimizations you need to use the \s-1GCC\s0 driver to perform the link-step.
8462 \&\s-1GCC\s0 then automatically performs link-time optimization if any of the
8463 objects involved were compiled with the \fB\-flto\fR command-line option.  
8464 You generally
8465 should specify the optimization options to be used for link-time
8466 optimization though \s-1GCC\s0 tries to be clever at guessing an
8467 optimization level to use from the options used at compile-time
8468 if you fail to specify one at link-time.  You can always override
8469 the automatic decision to do link-time optimization at link-time
8470 by passing \fB\-fno\-lto\fR to the link command.
8471 .Sp
8472 To make whole program optimization effective, it is necessary to make
8473 certain whole program assumptions.  The compiler needs to know
8474 what functions and variables can be accessed by libraries and runtime
8475 outside of the link-time optimized unit.  When supported by the linker,
8476 the linker plugin (see \fB\-fuse\-linker\-plugin\fR) passes information
8477 to the compiler about used and externally visible symbols.  When
8478 the linker plugin is not available, \fB\-fwhole\-program\fR should be
8479 used to allow the compiler to make these assumptions, which leads
8480 to more aggressive optimization decisions.
8481 .Sp
8482 When \fB\-fuse\-linker\-plugin\fR is not enabled then, when a file is
8483 compiled with \fB\-flto\fR, the generated object file is larger than
8484 a regular object file because it contains \s-1GIMPLE\s0 bytecodes and the usual
8485 final code (see \fB\-ffat\-lto\-objects\fR.  This means that
8486 object files with \s-1LTO\s0 information can be linked as normal object
8487 files; if \fB\-fno\-lto\fR is passed to the linker, no
8488 interprocedural optimizations are applied.  Note that when
8489 \&\fB\-fno\-fat\-lto\-objects\fR is enabled the compile-stage is faster
8490 but you cannot perform a regular, non-LTO link on them.
8491 .Sp
8492 Additionally, the optimization flags used to compile individual files
8493 are not necessarily related to those used at link time.  For instance,
8494 .Sp
8495 .Vb 3
8496 \&        gcc \-c \-O0 \-ffat\-lto\-objects \-flto foo.c
8497 \&        gcc \-c \-O0 \-ffat\-lto\-objects \-flto bar.c
8498 \&        gcc \-o myprog \-O3 foo.o bar.o
8499 .Ve
8500 .Sp
8501 This produces individual object files with unoptimized assembler
8502 code, but the resulting binary \fImyprog\fR is optimized at
8503 \&\fB\-O3\fR.  If, instead, the final binary is generated with
8504 \&\fB\-fno\-lto\fR, then \fImyprog\fR is not optimized.
8505 .Sp
8506 When producing the final binary, \s-1GCC\s0 only
8507 applies link-time optimizations to those files that contain bytecode.
8508 Therefore, you can mix and match object files and libraries with
8509 \&\s-1GIMPLE\s0 bytecodes and final object code.  \s-1GCC\s0 automatically selects
8510 which files to optimize in \s-1LTO\s0 mode and which files to link without
8511 further processing.
8512 .Sp
8513 There are some code generation flags preserved by \s-1GCC\s0 when
8514 generating bytecodes, as they need to be used during the final link
8515 stage.  Generally options specified at link-time override those
8516 specified at compile-time.
8517 .Sp
8518 If you do not specify an optimization level option \fB\-O\fR at
8519 link-time then \s-1GCC\s0 computes one based on the optimization levels
8520 used when compiling the object files.  The highest optimization
8521 level wins here.
8522 .Sp
8523 Currently, the following options and their setting are take from
8524 the first object file that explicitely specified it: 
8525 \&\fB\-fPIC\fR, \fB\-fpic\fR, \fB\-fpie\fR, \fB\-fcommon\fR,
8526 \&\fB\-fexceptions\fR, \fB\-fnon\-call\-exceptions\fR, \fB\-fgnu\-tm\fR
8527 and all the \fB\-m\fR target flags.
8528 .Sp
8529 Certain \s-1ABI\s0 changing flags are required to match in all compilation-units
8530 and trying to override this at link-time with a conflicting value
8531 is ignored.  This includes options such as \fB\-freg\-struct\-return\fR
8532 and \fB\-fpcc\-struct\-return\fR.
8533 .Sp
8534 Other options such as \fB\-ffp\-contract\fR, \fB\-fno\-strict\-overflow\fR,
8535 \&\fB\-fwrapv\fR, \fB\-fno\-trapv\fR or \fB\-fno\-strict\-aliasing\fR
8536 are passed through to the link stage and merged conservatively for
8537 conflicting translation units.  Specifically
8538 \&\fB\-fno\-strict\-overflow\fR, \fB\-fwrapv\fR and \fB\-fno\-trapv\fR take
8539 precedence and for example \fB\-ffp\-contract=off\fR takes precedence
8540 over \fB\-ffp\-contract=fast\fR.  You can override them at linke-time.
8541 .Sp
8542 It is recommended that you compile all the files participating in the
8543 same link with the same options and also specify those options at
8544 link time.
8545 .Sp
8546 If \s-1LTO\s0 encounters objects with C linkage declared with incompatible
8547 types in separate translation units to be linked together (undefined
8548 behavior according to \s-1ISO C99 6.2.7\s0), a non-fatal diagnostic may be
8549 issued.  The behavior is still undefined at run time.  Similar
8550 diagnostics may be raised for other languages.
8551 .Sp
8552 Another feature of \s-1LTO\s0 is that it is possible to apply interprocedural
8553 optimizations on files written in different languages:
8554 .Sp
8555 .Vb 4
8556 \&        gcc \-c \-flto foo.c
8557 \&        g++ \-c \-flto bar.cc
8558 \&        gfortran \-c \-flto baz.f90
8559 \&        g++ \-o myprog \-flto \-O3 foo.o bar.o baz.o \-lgfortran
8560 .Ve
8561 .Sp
8562 Notice that the final link is done with \fBg++\fR to get the \*(C+
8563 runtime libraries and \fB\-lgfortran\fR is added to get the Fortran
8564 runtime libraries.  In general, when mixing languages in \s-1LTO\s0 mode, you
8565 should use the same link command options as when mixing languages in a
8566 regular (non-LTO) compilation.
8567 .Sp
8568 If object files containing \s-1GIMPLE\s0 bytecode are stored in a library archive, say
8569 \&\fIlibfoo.a\fR, it is possible to extract and use them in an \s-1LTO\s0 link if you
8570 are using a linker with plugin support.  To create static libraries suitable
8571 for \s-1LTO,\s0 use \fBgcc-ar\fR and \fBgcc-ranlib\fR instead of \fBar\fR
8572 and \fBranlib\fR; 
8573 to show the symbols of object files with \s-1GIMPLE\s0 bytecode, use
8574 \&\fBgcc-nm\fR.  Those commands require that \fBar\fR, \fBranlib\fR
8575 and \fBnm\fR have been compiled with plugin support.  At link time, use the the
8576 flag \fB\-fuse\-linker\-plugin\fR to ensure that the library participates in
8577 the \s-1LTO\s0 optimization process:
8578 .Sp
8579 .Vb 1
8580 \&        gcc \-o myprog \-O2 \-flto \-fuse\-linker\-plugin a.o b.o \-lfoo
8581 .Ve
8582 .Sp
8583 With the linker plugin enabled, the linker extracts the needed
8584 \&\s-1GIMPLE\s0 files from \fIlibfoo.a\fR and passes them on to the running \s-1GCC\s0
8585 to make them part of the aggregated \s-1GIMPLE\s0 image to be optimized.
8586 .Sp
8587 If you are not using a linker with plugin support and/or do not
8588 enable the linker plugin, then the objects inside \fIlibfoo.a\fR
8589 are extracted and linked as usual, but they do not participate
8590 in the \s-1LTO\s0 optimization process.  In order to make a static library suitable
8591 for both \s-1LTO\s0 optimization and usual linkage, compile its object files with
8592 \&\fB\-flto\fR \fB\-ffat\-lto\-objects\fR.
8593 .Sp
8594 Link-time optimizations do not require the presence of the whole program to
8595 operate.  If the program does not require any symbols to be exported, it is
8596 possible to combine \fB\-flto\fR and \fB\-fwhole\-program\fR to allow
8597 the interprocedural optimizers to use more aggressive assumptions which may
8598 lead to improved optimization opportunities.
8599 Use of \fB\-fwhole\-program\fR is not needed when linker plugin is
8600 active (see \fB\-fuse\-linker\-plugin\fR).
8601 .Sp
8602 The current implementation of \s-1LTO\s0 makes no
8603 attempt to generate bytecode that is portable between different
8604 types of hosts.  The bytecode files are versioned and there is a
8605 strict version check, so bytecode files generated in one version of
8606 \&\s-1GCC\s0 do not work with an older or newer version of \s-1GCC.\s0
8607 .Sp
8608 Link-time optimization does not work well with generation of debugging
8609 information.  Combining \fB\-flto\fR with
8610 \&\fB\-g\fR is currently experimental and expected to produce unexpected
8611 results.
8612 .Sp
8613 If you specify the optional \fIn\fR, the optimization and code
8614 generation done at link time is executed in parallel using \fIn\fR
8615 parallel jobs by utilizing an installed \fBmake\fR program.  The
8616 environment variable \fB\s-1MAKE\s0\fR may be used to override the program
8617 used.  The default value for \fIn\fR is 1.
8618 .Sp
8619 You can also specify \fB\-flto=jobserver\fR to use \s-1GNU\s0 make's
8620 job server mode to determine the number of parallel jobs. This
8621 is useful when the Makefile calling \s-1GCC\s0 is already executing in parallel.
8622 You must prepend a \fB+\fR to the command recipe in the parent Makefile
8623 for this to work.  This option likely only works if \fB\s-1MAKE\s0\fR is
8624 \&\s-1GNU\s0 make.
8625 .IP "\fB\-flto\-partition=\fR\fIalg\fR" 4
8626 .IX Item "-flto-partition=alg"
8627 Specify the partitioning algorithm used by the link-time optimizer.
8628 The value is either \fB1to1\fR to specify a partitioning mirroring
8629 the original source files or \fBbalanced\fR to specify partitioning
8630 into equally sized chunks (whenever possible) or \fBmax\fR to create
8631 new partition for every symbol where possible.  Specifying \fBnone\fR
8632 as an algorithm disables partitioning and streaming completely. 
8633 The default value is \fBbalanced\fR. While \fB1to1\fR can be used
8634 as an workaround for various code ordering issues, the \fBmax\fR
8635 partitioning is intended for internal testing only.
8636 The value \fBone\fR specifies that exactly one partition should be
8637 used while the value \fBnone\fR bypasses partitioning and executes
8638 the link-time optimization step directly from the \s-1WPA\s0 phase.
8639 .IP "\fB\-flto\-odr\-type\-merging\fR" 4
8640 .IX Item "-flto-odr-type-merging"
8641 Enable streaming of mangled types names of \*(C+ types and their unification
8642 at linktime.  This increases size of \s-1LTO\s0 object files, but enable
8643 diagnostics about One Definition Rule violations.
8644 .IP "\fB\-flto\-compression\-level=\fR\fIn\fR" 4
8645 .IX Item "-flto-compression-level=n"
8646 This option specifies the level of compression used for intermediate
8647 language written to \s-1LTO\s0 object files, and is only meaningful in
8648 conjunction with \s-1LTO\s0 mode (\fB\-flto\fR).  Valid
8649 values are 0 (no compression) to 9 (maximum compression).  Values
8650 outside this range are clamped to either 0 or 9.  If the option is not
8651 given, a default balanced compression setting is used.
8652 .IP "\fB\-flto\-report\fR" 4
8653 .IX Item "-flto-report"
8654 Prints a report with internal details on the workings of the link-time
8655 optimizer.  The contents of this report vary from version to version.
8656 It is meant to be useful to \s-1GCC\s0 developers when processing object
8657 files in \s-1LTO\s0 mode (via \fB\-flto\fR).
8658 .Sp
8659 Disabled by default.
8660 .IP "\fB\-flto\-report\-wpa\fR" 4
8661 .IX Item "-flto-report-wpa"
8662 Like \fB\-flto\-report\fR, but only print for the \s-1WPA\s0 phase of Link
8663 Time Optimization.
8664 .IP "\fB\-fuse\-linker\-plugin\fR" 4
8665 .IX Item "-fuse-linker-plugin"
8666 Enables the use of a linker plugin during link-time optimization.  This
8667 option relies on plugin support in the linker, which is available in gold
8668 or in \s-1GNU\s0 ld 2.21 or newer.
8669 .Sp
8670 This option enables the extraction of object files with \s-1GIMPLE\s0 bytecode out
8671 of library archives. This improves the quality of optimization by exposing
8672 more code to the link-time optimizer.  This information specifies what
8673 symbols can be accessed externally (by non-LTO object or during dynamic
8674 linking).  Resulting code quality improvements on binaries (and shared
8675 libraries that use hidden visibility) are similar to \fB\-fwhole\-program\fR.
8676 See \fB\-flto\fR for a description of the effect of this flag and how to
8677 use it.
8678 .Sp
8679 This option is enabled by default when \s-1LTO\s0 support in \s-1GCC\s0 is enabled
8680 and \s-1GCC\s0 was configured for use with
8681 a linker supporting plugins (\s-1GNU\s0 ld 2.21 or newer or gold).
8682 .IP "\fB\-ffat\-lto\-objects\fR" 4
8683 .IX Item "-ffat-lto-objects"
8684 Fat \s-1LTO\s0 objects are object files that contain both the intermediate language
8685 and the object code. This makes them usable for both \s-1LTO\s0 linking and normal
8686 linking. This option is effective only when compiling with \fB\-flto\fR
8687 and is ignored at link time.
8688 .Sp
8689 \&\fB\-fno\-fat\-lto\-objects\fR improves compilation time over plain \s-1LTO,\s0 but
8690 requires the complete toolchain to be aware of \s-1LTO.\s0 It requires a linker with
8691 linker plugin support for basic functionality.  Additionally,
8692 \&\fBnm\fR, \fBar\fR and \fBranlib\fR
8693 need to support linker plugins to allow a full-featured build environment
8694 (capable of building static libraries etc).  \s-1GCC\s0 provides the \fBgcc-ar\fR,
8695 \&\fBgcc-nm\fR, \fBgcc-ranlib\fR wrappers to pass the right options
8696 to these tools. With non fat \s-1LTO\s0 makefiles need to be modified to use them.
8697 .Sp
8698 The default is \fB\-fno\-fat\-lto\-objects\fR on targets with linker plugin
8699 support.
8700 .IP "\fB\-fcompare\-elim\fR" 4
8701 .IX Item "-fcompare-elim"
8702 After register allocation and post-register allocation instruction splitting,
8703 identify arithmetic instructions that compute processor flags similar to a
8704 comparison operation based on that arithmetic.  If possible, eliminate the
8705 explicit comparison operation.
8706 .Sp
8707 This pass only applies to certain targets that cannot explicitly represent
8708 the comparison operation before register allocation is complete.
8709 .Sp
8710 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8711 .IP "\fB\-fcprop\-registers\fR" 4
8712 .IX Item "-fcprop-registers"
8713 After register allocation and post-register allocation instruction splitting,
8714 perform a copy-propagation pass to try to reduce scheduling dependencies
8715 and occasionally eliminate the copy.
8716 .Sp
8717 Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
8718 .IP "\fB\-fprofile\-correction\fR" 4
8719 .IX Item "-fprofile-correction"
8720 Profiles collected using an instrumented binary for multi-threaded programs may
8721 be inconsistent due to missed counter updates. When this option is specified,
8722 \&\s-1GCC\s0 uses heuristics to correct or smooth out such inconsistencies. By
8723 default, \s-1GCC\s0 emits an error message when an inconsistent profile is detected.
8724 .IP "\fB\-fprofile\-dir=\fR\fIpath\fR" 4
8725 .IX Item "-fprofile-dir=path"
8726 Set the directory to search for the profile data files in to \fIpath\fR.
8727 This option affects only the profile data generated by
8728 \&\fB\-fprofile\-generate\fR, \fB\-ftest\-coverage\fR, \fB\-fprofile\-arcs\fR
8729 and used by \fB\-fprofile\-use\fR and \fB\-fbranch\-probabilities\fR
8730 and its related options.  Both absolute and relative paths can be used.
8731 By default, \s-1GCC\s0 uses the current directory as \fIpath\fR, thus the
8732 profile data file appears in the same directory as the object file.
8733 .IP "\fB\-fprofile\-generate\fR" 4
8734 .IX Item "-fprofile-generate"
8735 .PD 0
8736 .IP "\fB\-fprofile\-generate=\fR\fIpath\fR" 4
8737 .IX Item "-fprofile-generate=path"
8738 .PD
8739 Enable options usually used for instrumenting application to produce
8740 profile useful for later recompilation with profile feedback based
8741 optimization.  You must use \fB\-fprofile\-generate\fR both when
8742 compiling and when linking your program.
8743 .Sp
8744 The following options are enabled: \fB\-fprofile\-arcs\fR, \fB\-fprofile\-values\fR, \fB\-fvpt\fR.
8745 .Sp
8746 If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
8747 the profile feedback data files. See \fB\-fprofile\-dir\fR.
8748 .IP "\fB\-fprofile\-use\fR" 4
8749 .IX Item "-fprofile-use"
8750 .PD 0
8751 .IP "\fB\-fprofile\-use=\fR\fIpath\fR" 4
8752 .IX Item "-fprofile-use=path"
8753 .PD
8754 Enable profile feedback-directed optimizations, 
8755 and the following optimizations
8756 which are generally profitable only with profile feedback available:
8757 \&\fB\-fbranch\-probabilities\fR, \fB\-fvpt\fR,
8758 \&\fB\-funroll\-loops\fR, \fB\-fpeel\-loops\fR, \fB\-ftracer\fR, 
8759 \&\fB\-ftree\-vectorize\fR, and \fBftree-loop-distribute-patterns\fR.
8760 .Sp
8761 By default, \s-1GCC\s0 emits an error message if the feedback profiles do not
8762 match the source code.  This error can be turned into a warning by using
8763 \&\fB\-Wcoverage\-mismatch\fR.  Note this may result in poorly optimized
8764 code.
8765 .Sp
8766 If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
8767 the profile feedback data files. See \fB\-fprofile\-dir\fR.
8768 .IP "\fB\-fauto\-profile\fR" 4
8769 .IX Item "-fauto-profile"
8770 .PD 0
8771 .IP "\fB\-fauto\-profile=\fR\fIpath\fR" 4
8772 .IX Item "-fauto-profile=path"
8773 .PD
8774 Enable sampling-based feedback-directed optimizations, 
8775 and the following optimizations
8776 which are generally profitable only with profile feedback available:
8777 \&\fB\-fbranch\-probabilities\fR, \fB\-fvpt\fR,
8778 \&\fB\-funroll\-loops\fR, \fB\-fpeel\-loops\fR, \fB\-ftracer\fR, 
8779 \&\fB\-ftree\-vectorize\fR,
8780 \&\fB\-finline\-functions\fR, \fB\-fipa\-cp\fR, \fB\-fipa\-cp\-clone\fR,
8781 \&\fB\-fpredictive\-commoning\fR, \fB\-funswitch\-loops\fR,
8782 \&\fB\-fgcse\-after\-reload\fR, and \fB\-ftree\-loop\-distribute\-patterns\fR.
8783 .Sp
8784 \&\fIpath\fR is the name of a file containing AutoFDO profile information.
8785 If omitted, it defaults to \fIfbdata.afdo\fR in the current directory.
8786 .Sp
8787 Producing an AutoFDO profile data file requires running your program
8788 with the \fBperf\fR utility on a supported GNU/Linux target system.
8789 For more information, see <\fBhttps://perf.wiki.kernel.org/\fR>.
8790 .Sp
8791 E.g.
8792 .Sp
8793 .Vb 2
8794 \&        perf record \-e br_inst_retired:near_taken \-b \-o perf.data \e
8795 \&            \-\- your_program
8796 .Ve
8797 .Sp
8798 Then use the \fBcreate_gcov\fR tool to convert the raw profile data
8799 to a format that can be used by \s-1GCC. \s0 You must also supply the 
8800 unstripped binary for your program to this tool.  
8801 See <\fBhttps://github.com/google/autofdo\fR>.
8802 .Sp
8803 E.g.
8804 .Sp
8805 .Vb 2
8806 \&        create_gcov \-\-binary=your_program.unstripped \-\-profile=perf.data \e
8807 \&            \-\-gcov=profile.afdo
8808 .Ve
8809 .PP
8810 The following options control compiler behavior regarding floating-point 
8811 arithmetic.  These options trade off between speed and
8812 correctness.  All must be specifically enabled.
8813 .IP "\fB\-ffloat\-store\fR" 4
8814 .IX Item "-ffloat-store"
8815 Do not store floating-point variables in registers, and inhibit other
8816 options that might change whether a floating-point value is taken from a
8817 register or memory.
8818 .Sp
8819 This option prevents undesirable excess precision on machines such as
8820 the 68000 where the floating registers (of the 68881) keep more
8821 precision than a \f(CW\*(C`double\*(C'\fR is supposed to have.  Similarly for the
8822 x86 architecture.  For most programs, the excess precision does only
8823 good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
8824 point.  Use \fB\-ffloat\-store\fR for such programs, after modifying
8825 them to store all pertinent intermediate computations into variables.
8826 .IP "\fB\-fexcess\-precision=\fR\fIstyle\fR" 4
8827 .IX Item "-fexcess-precision=style"
8828 This option allows further control over excess precision on machines
8829 where floating-point registers have more precision than the \s-1IEEE
8830 \&\s0\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR types and the processor does not
8831 support operations rounding to those types.  By default,
8832 \&\fB\-fexcess\-precision=fast\fR is in effect; this means that
8833 operations are carried out in the precision of the registers and that
8834 it is unpredictable when rounding to the types specified in the source
8835 code takes place.  When compiling C, if
8836 \&\fB\-fexcess\-precision=standard\fR is specified then excess
8837 precision follows the rules specified in \s-1ISO C99\s0; in particular,
8838 both casts and assignments cause values to be rounded to their
8839 semantic types (whereas \fB\-ffloat\-store\fR only affects
8840 assignments).  This option is enabled by default for C if a strict
8841 conformance option such as \fB\-std=c99\fR is used.
8842 .Sp
8843 \&\fB\-fexcess\-precision=standard\fR is not implemented for languages
8844 other than C, and has no effect if
8845 \&\fB\-funsafe\-math\-optimizations\fR or \fB\-ffast\-math\fR is
8846 specified.  On the x86, it also has no effect if \fB\-mfpmath=sse\fR
8847 or \fB\-mfpmath=sse+387\fR is specified; in the former case, \s-1IEEE\s0
8848 semantics apply without excess precision, and in the latter, rounding
8849 is unpredictable.
8850 .IP "\fB\-ffast\-math\fR" 4
8851 .IX Item "-ffast-math"
8852 Sets the options \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR,
8853 \&\fB\-ffinite\-math\-only\fR, \fB\-fno\-rounding\-math\fR,
8854 \&\fB\-fno\-signaling\-nans\fR and \fB\-fcx\-limited\-range\fR.
8855 .Sp
8856 This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
8857 .Sp
8858 This option is not turned on by any \fB\-O\fR option besides
8859 \&\fB\-Ofast\fR since it can result in incorrect output for programs
8860 that depend on an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications
8861 for math functions. It may, however, yield faster code for programs
8862 that do not require the guarantees of these specifications.
8863 .IP "\fB\-fno\-math\-errno\fR" 4
8864 .IX Item "-fno-math-errno"
8865 Do not set \f(CW\*(C`errno\*(C'\fR after calling math functions that are executed
8866 with a single instruction, e.g., \f(CW\*(C`sqrt\*(C'\fR.  A program that relies on
8867 \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
8868 for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
8869 .Sp
8870 This option is not turned on by any \fB\-O\fR option since
8871 it can result in incorrect output for programs that depend on
8872 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
8873 math functions. It may, however, yield faster code for programs
8874 that do not require the guarantees of these specifications.
8875 .Sp
8876 The default is \fB\-fmath\-errno\fR.
8877 .Sp
8878 On Darwin systems, the math library never sets \f(CW\*(C`errno\*(C'\fR.  There is
8879 therefore no reason for the compiler to consider the possibility that
8880 it might, and \fB\-fno\-math\-errno\fR is the default.
8881 .IP "\fB\-funsafe\-math\-optimizations\fR" 4
8882 .IX Item "-funsafe-math-optimizations"
8883 Allow optimizations for floating-point arithmetic that (a) assume
8884 that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
8885 \&\s-1ANSI\s0 standards.  When used at link-time, it may include libraries
8886 or startup files that change the default \s-1FPU\s0 control word or other
8887 similar optimizations.
8888 .Sp
8889 This option is not turned on by any \fB\-O\fR option since
8890 it can result in incorrect output for programs that depend on
8891 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
8892 math functions. It may, however, yield faster code for programs
8893 that do not require the guarantees of these specifications.
8894 Enables \fB\-fno\-signed\-zeros\fR, \fB\-fno\-trapping\-math\fR,
8895 \&\fB\-fassociative\-math\fR and \fB\-freciprocal\-math\fR.
8896 .Sp
8897 The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
8898 .IP "\fB\-fassociative\-math\fR" 4
8899 .IX Item "-fassociative-math"
8900 Allow re-association of operands in series of floating-point operations.
8901 This violates the \s-1ISO C\s0 and \*(C+ language standard by possibly changing
8902 computation result.  \s-1NOTE:\s0 re-ordering may change the sign of zero as
8903 well as ignore NaNs and inhibit or create underflow or overflow (and
8904 thus cannot be used on code that relies on rounding behavior like
8905 \&\f(CW\*(C`(x + 2**52) \- 2**52\*(C'\fR.  May also reorder floating-point comparisons
8906 and thus may not be used when ordered comparisons are required.
8907 This option requires that both \fB\-fno\-signed\-zeros\fR and
8908 \&\fB\-fno\-trapping\-math\fR be in effect.  Moreover, it doesn't make
8909 much sense with \fB\-frounding\-math\fR. For Fortran the option
8910 is automatically enabled when both \fB\-fno\-signed\-zeros\fR and
8911 \&\fB\-fno\-trapping\-math\fR are in effect.
8912 .Sp
8913 The default is \fB\-fno\-associative\-math\fR.
8914 .IP "\fB\-freciprocal\-math\fR" 4
8915 .IX Item "-freciprocal-math"
8916 Allow the reciprocal of a value to be used instead of dividing by
8917 the value if this enables optimizations.  For example \f(CW\*(C`x / y\*(C'\fR
8918 can be replaced with \f(CW\*(C`x * (1/y)\*(C'\fR, which is useful if \f(CW\*(C`(1/y)\*(C'\fR
8919 is subject to common subexpression elimination.  Note that this loses
8920 precision and increases the number of flops operating on the value.
8921 .Sp
8922 The default is \fB\-fno\-reciprocal\-math\fR.
8923 .IP "\fB\-ffinite\-math\-only\fR" 4
8924 .IX Item "-ffinite-math-only"
8925 Allow optimizations for floating-point arithmetic that assume
8926 that arguments and results are not NaNs or +\-Infs.
8927 .Sp
8928 This option is not turned on by any \fB\-O\fR option since
8929 it can result in incorrect output for programs that depend on
8930 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
8931 math functions. It may, however, yield faster code for programs
8932 that do not require the guarantees of these specifications.
8933 .Sp
8934 The default is \fB\-fno\-finite\-math\-only\fR.
8935 .IP "\fB\-fno\-signed\-zeros\fR" 4
8936 .IX Item "-fno-signed-zeros"
8937 Allow optimizations for floating-point arithmetic that ignore the
8938 signedness of zero.  \s-1IEEE\s0 arithmetic specifies the behavior of
8939 distinct +0.0 and \-0.0 values, which then prohibits simplification
8940 of expressions such as x+0.0 or 0.0*x (even with \fB\-ffinite\-math\-only\fR).
8941 This option implies that the sign of a zero result isn't significant.
8942 .Sp
8943 The default is \fB\-fsigned\-zeros\fR.
8944 .IP "\fB\-fno\-trapping\-math\fR" 4
8945 .IX Item "-fno-trapping-math"
8946 Compile code assuming that floating-point operations cannot generate
8947 user-visible traps.  These traps include division by zero, overflow,
8948 underflow, inexact result and invalid operation.  This option requires
8949 that \fB\-fno\-signaling\-nans\fR be in effect.  Setting this option may
8950 allow faster code if one relies on \*(L"non-stop\*(R" \s-1IEEE\s0 arithmetic, for example.
8951 .Sp
8952 This option should never be turned on by any \fB\-O\fR option since
8953 it can result in incorrect output for programs that depend on
8954 an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
8955 math functions.
8956 .Sp
8957 The default is \fB\-ftrapping\-math\fR.
8958 .IP "\fB\-frounding\-math\fR" 4
8959 .IX Item "-frounding-math"
8960 Disable transformations and optimizations that assume default floating-point
8961 rounding behavior.  This is round-to-zero for all floating point
8962 to integer conversions, and round-to-nearest for all other arithmetic
8963 truncations.  This option should be specified for programs that change
8964 the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
8965 non-default rounding mode.  This option disables constant folding of
8966 floating-point expressions at compile time (which may be affected by
8967 rounding mode) and arithmetic transformations that are unsafe in the
8968 presence of sign-dependent rounding modes.
8969 .Sp
8970 The default is \fB\-fno\-rounding\-math\fR.
8971 .Sp
8972 This option is experimental and does not currently guarantee to
8973 disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
8974 Future versions of \s-1GCC\s0 may provide finer control of this setting
8975 using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma.  This command-line option
8976 will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
8977 .IP "\fB\-fsignaling\-nans\fR" 4
8978 .IX Item "-fsignaling-nans"
8979 Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
8980 traps during floating-point operations.  Setting this option disables
8981 optimizations that may change the number of exceptions visible with
8982 signaling NaNs.  This option implies \fB\-ftrapping\-math\fR.
8983 .Sp
8984 This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
8985 be defined.
8986 .Sp
8987 The default is \fB\-fno\-signaling\-nans\fR.
8988 .Sp
8989 This option is experimental and does not currently guarantee to
8990 disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
8991 .IP "\fB\-fsingle\-precision\-constant\fR" 4
8992 .IX Item "-fsingle-precision-constant"
8993 Treat floating-point constants as single precision instead of
8994 implicitly converting them to double-precision constants.
8995 .IP "\fB\-fcx\-limited\-range\fR" 4
8996 .IX Item "-fcx-limited-range"
8997 When enabled, this option states that a range reduction step is not
8998 needed when performing complex division.  Also, there is no checking
8999 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
9000 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.  The
9001 default is \fB\-fno\-cx\-limited\-range\fR, but is enabled by
9002 \&\fB\-ffast\-math\fR.
9003 .Sp
9004 This option controls the default setting of the \s-1ISO C99
9005 \&\s0\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma.  Nevertheless, the option applies to
9006 all languages.
9007 .IP "\fB\-fcx\-fortran\-rules\fR" 4
9008 .IX Item "-fcx-fortran-rules"
9009 Complex multiplication and division follow Fortran rules.  Range
9010 reduction is done as part of complex division, but there is no checking
9011 whether the result of a complex multiplication or division is \f(CW\*(C`NaN
9012 + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.
9013 .Sp
9014 The default is \fB\-fno\-cx\-fortran\-rules\fR.
9015 .PP
9016 The following options control optimizations that may improve
9017 performance, but are not enabled by any \fB\-O\fR options.  This
9018 section includes experimental options that may produce broken code.
9019 .IP "\fB\-fbranch\-probabilities\fR" 4
9020 .IX Item "-fbranch-probabilities"
9021 After running a program compiled with \fB\-fprofile\-arcs\fR, you can compile it a second time using
9022 \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
9023 the number of times each branch was taken.  When a program
9024 compiled with \fB\-fprofile\-arcs\fR exits, it saves arc execution
9025 counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
9026 file.  The information in this data file is very dependent on the
9027 structure of the generated code, so you must use the same source code
9028 and the same optimization options for both compilations.
9029 .Sp
9030 With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
9031 \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
9032 These can be used to improve optimization.  Currently, they are only
9033 used in one place: in \fIreorg.c\fR, instead of guessing which path a
9034 branch is most likely to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
9035 exactly determine which path is taken more often.
9036 .IP "\fB\-fprofile\-values\fR" 4
9037 .IX Item "-fprofile-values"
9038 If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
9039 data about values of expressions in the program is gathered.
9040 .Sp
9041 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
9042 from profiling values of expressions for usage in optimizations.
9043 .Sp
9044 Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
9045 .IP "\fB\-fprofile\-reorder\-functions\fR" 4
9046 .IX Item "-fprofile-reorder-functions"
9047 Function reordering based on profile instrumentation collects
9048 first time of execution of a function and orders these functions
9049 in ascending order.
9050 .Sp
9051 Enabled with \fB\-fprofile\-use\fR.
9052 .IP "\fB\-fvpt\fR" 4
9053 .IX Item "-fvpt"
9054 If combined with \fB\-fprofile\-arcs\fR, this option instructs the compiler
9055 to add code to gather information about values of expressions.
9056 .Sp
9057 With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
9058 and actually performs the optimizations based on them.
9059 Currently the optimizations include specialization of division operations
9060 using the knowledge about the value of the denominator.
9061 .IP "\fB\-frename\-registers\fR" 4
9062 .IX Item "-frename-registers"
9063 Attempt to avoid false dependencies in scheduled code by making use
9064 of registers left over after register allocation.  This optimization
9065 most benefits processors with lots of registers.  Depending on the
9066 debug information format adopted by the target, however, it can
9067 make debugging impossible, since variables no longer stay in
9068 a \*(L"home register\*(R".
9069 .Sp
9070 Enabled by default with \fB\-funroll\-loops\fR and \fB\-fpeel\-loops\fR.
9071 .IP "\fB\-fschedule\-fusion\fR" 4
9072 .IX Item "-fschedule-fusion"
9073 Performs a target dependent pass over the instruction stream to schedule
9074 instructions of same type together because target machine can execute them
9075 more efficiently if they are adjacent to each other in the instruction flow.
9076 .Sp
9077 Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
9078 .IP "\fB\-ftracer\fR" 4
9079 .IX Item "-ftracer"
9080 Perform tail duplication to enlarge superblock size.  This transformation
9081 simplifies the control flow of the function allowing other optimizations to do
9082 a better job.
9083 .Sp
9084 Enabled with \fB\-fprofile\-use\fR.
9085 .IP "\fB\-funroll\-loops\fR" 4
9086 .IX Item "-funroll-loops"
9087 Unroll loops whose number of iterations can be determined at compile time or
9088 upon entry to the loop.  \fB\-funroll\-loops\fR implies
9089 \&\fB\-frerun\-cse\-after\-loop\fR, \fB\-fweb\fR and \fB\-frename\-registers\fR.
9090 It also turns on complete loop peeling (i.e. complete removal of loops with
9091 a small constant number of iterations).  This option makes code larger, and may
9092 or may not make it run faster.
9093 .Sp
9094 Enabled with \fB\-fprofile\-use\fR.
9095 .IP "\fB\-funroll\-all\-loops\fR" 4
9096 .IX Item "-funroll-all-loops"
9097 Unroll all loops, even if their number of iterations is uncertain when
9098 the loop is entered.  This usually makes programs run more slowly.
9099 \&\fB\-funroll\-all\-loops\fR implies the same options as
9100 \&\fB\-funroll\-loops\fR.
9101 .IP "\fB\-fpeel\-loops\fR" 4
9102 .IX Item "-fpeel-loops"
9103 Peels loops for which there is enough information that they do not
9104 roll much (from profile feedback).  It also turns on complete loop peeling
9105 (i.e. complete removal of loops with small constant number of iterations).
9106 .Sp
9107 Enabled with \fB\-fprofile\-use\fR.
9108 .IP "\fB\-fmove\-loop\-invariants\fR" 4
9109 .IX Item "-fmove-loop-invariants"
9110 Enables the loop invariant motion pass in the \s-1RTL\s0 loop optimizer.  Enabled
9111 at level \fB\-O1\fR
9112 .IP "\fB\-funswitch\-loops\fR" 4
9113 .IX Item "-funswitch-loops"
9114 Move branches with loop invariant conditions out of the loop, with duplicates
9115 of the loop on both branches (modified according to result of the condition).
9116 .IP "\fB\-ffunction\-sections\fR" 4
9117 .IX Item "-ffunction-sections"
9118 .PD 0
9119 .IP "\fB\-fdata\-sections\fR" 4
9120 .IX Item "-fdata-sections"
9121 .PD
9122 Place each function or data item into its own section in the output
9123 file if the target supports arbitrary sections.  The name of the
9124 function or the name of the data item determines the section's name
9125 in the output file.
9126 .Sp
9127 Use these options on systems where the linker can perform optimizations
9128 to improve locality of reference in the instruction space.  Most systems
9129 using the \s-1ELF\s0 object format and \s-1SPARC\s0 processors running Solaris 2 have
9130 linkers with such optimizations.  \s-1AIX\s0 may have these optimizations in
9131 the future.
9132 .Sp
9133 Only use these options when there are significant benefits from doing
9134 so.  When you specify these options, the assembler and linker
9135 create larger object and executable files and are also slower.
9136 You cannot use \fBgprof\fR on all systems if you
9137 specify this option, and you may have problems with debugging if
9138 you specify both this option and \fB\-g\fR.
9139 .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
9140 .IX Item "-fbranch-target-load-optimize"
9141 Perform branch target register load optimization before prologue / epilogue
9142 threading.
9143 The use of target registers can typically be exposed only during reload,
9144 thus hoisting loads out of loops and doing inter-block scheduling needs
9145 a separate optimization pass.
9146 .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
9147 .IX Item "-fbranch-target-load-optimize2"
9148 Perform branch target register load optimization after prologue / epilogue
9149 threading.
9150 .IP "\fB\-fbtr\-bb\-exclusive\fR" 4
9151 .IX Item "-fbtr-bb-exclusive"
9152 When performing branch target register load optimization, don't reuse
9153 branch target registers within any basic block.
9154 .IP "\fB\-fstack\-protector\fR" 4
9155 .IX Item "-fstack-protector"
9156 Emit extra code to check for buffer overflows, such as stack smashing
9157 attacks.  This is done by adding a guard variable to functions with
9158 vulnerable objects.  This includes functions that call \f(CW\*(C`alloca\*(C'\fR, and
9159 functions with buffers larger than 8 bytes.  The guards are initialized
9160 when a function is entered and then checked when the function exits.
9161 If a guard check fails, an error message is printed and the program exits.
9162 .IP "\fB\-fstack\-protector\-all\fR" 4
9163 .IX Item "-fstack-protector-all"
9164 Like \fB\-fstack\-protector\fR except that all functions are protected.
9165 .IP "\fB\-fstack\-protector\-strong\fR" 4
9166 .IX Item "-fstack-protector-strong"
9167 Like \fB\-fstack\-protector\fR but includes additional functions to
9168 be protected \-\-\- those that have local array definitions, or have
9169 references to local frame addresses.
9170 .IP "\fB\-fstack\-protector\-explicit\fR" 4
9171 .IX Item "-fstack-protector-explicit"
9172 Like \fB\-fstack\-protector\fR but only protects those functions which
9173 have the \f(CW\*(C`stack_protect\*(C'\fR attribute
9174 .IP "\fB\-fstdarg\-opt\fR" 4
9175 .IX Item "-fstdarg-opt"
9176 Optimize the prologue of variadic argument functions with respect to usage of
9177 those arguments.
9178 .IP "\fB\-fsection\-anchors\fR" 4
9179 .IX Item "-fsection-anchors"
9180 Try to reduce the number of symbolic address calculations by using
9181 shared \*(L"anchor\*(R" symbols to address nearby objects.  This transformation
9182 can help to reduce the number of \s-1GOT\s0 entries and \s-1GOT\s0 accesses on some
9183 targets.
9184 .Sp
9185 For example, the implementation of the following function \f(CW\*(C`foo\*(C'\fR:
9186 .Sp
9187 .Vb 2
9188 \&        static int a, b, c;
9189 \&        int foo (void) { return a + b + c; }
9190 .Ve
9191 .Sp
9192 usually calculates the addresses of all three variables, but if you
9193 compile it with \fB\-fsection\-anchors\fR, it accesses the variables
9194 from a common anchor point instead.  The effect is similar to the
9195 following pseudocode (which isn't valid C):
9196 .Sp
9197 .Vb 5
9198 \&        int foo (void)
9199 \&        {
9200 \&          register int *xr = &x;
9201 \&          return xr[&a \- &x] + xr[&b \- &x] + xr[&c \- &x];
9202 \&        }
9203 .Ve
9204 .Sp
9205 Not all targets support this option.
9206 .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
9207 .IX Item "--param name=value"
9208 In some places, \s-1GCC\s0 uses various constants to control the amount of
9209 optimization that is done.  For example, \s-1GCC\s0 does not inline functions
9210 that contain more than a certain number of instructions.  You can
9211 control some of these constants on the command line using the
9212 \&\fB\-\-param\fR option.
9213 .Sp
9214 The names of specific parameters, and the meaning of the values, are
9215 tied to the internals of the compiler, and are subject to change
9216 without notice in future releases.
9217 .Sp
9218 In each case, the \fIvalue\fR is an integer.  The allowable choices for
9219 \&\fIname\fR are:
9220 .RS 4
9221 .IP "\fBpredictable-branch-outcome\fR" 4
9222 .IX Item "predictable-branch-outcome"
9223 When branch is predicted to be taken with probability lower than this threshold
9224 (in percent), then it is considered well predictable. The default is 10.
9225 .IP "\fBmax-crossjump-edges\fR" 4
9226 .IX Item "max-crossjump-edges"
9227 The maximum number of incoming edges to consider for cross-jumping.
9228 The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
9229 the number of edges incoming to each block.  Increasing values mean
9230 more aggressive optimization, making the compilation time increase with
9231 probably small improvement in executable size.
9232 .IP "\fBmin-crossjump-insns\fR" 4
9233 .IX Item "min-crossjump-insns"
9234 The minimum number of instructions that must be matched at the end
9235 of two blocks before cross-jumping is performed on them.  This
9236 value is ignored in the case where all instructions in the block being
9237 cross-jumped from are matched.  The default value is 5.
9238 .IP "\fBmax-grow-copy-bb-insns\fR" 4
9239 .IX Item "max-grow-copy-bb-insns"
9240 The maximum code size expansion factor when copying basic blocks
9241 instead of jumping.  The expansion is relative to a jump instruction.
9242 The default value is 8.
9243 .IP "\fBmax-goto-duplication-insns\fR" 4
9244 .IX Item "max-goto-duplication-insns"
9245 The maximum number of instructions to duplicate to a block that jumps
9246 to a computed goto.  To avoid O(N^2) behavior in a number of
9247 passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
9248 and unfactors them as late as possible.  Only computed jumps at the
9249 end of a basic blocks with no more than max-goto-duplication-insns are
9250 unfactored.  The default value is 8.
9251 .IP "\fBmax-delay-slot-insn-search\fR" 4
9252 .IX Item "max-delay-slot-insn-search"
9253 The maximum number of instructions to consider when looking for an
9254 instruction to fill a delay slot.  If more than this arbitrary number of
9255 instructions are searched, the time savings from filling the delay slot
9256 are minimal, so stop searching.  Increasing values mean more
9257 aggressive optimization, making the compilation time increase with probably
9258 small improvement in execution time.
9259 .IP "\fBmax-delay-slot-live-search\fR" 4
9260 .IX Item "max-delay-slot-live-search"
9261 When trying to fill delay slots, the maximum number of instructions to
9262 consider when searching for a block with valid live register
9263 information.  Increasing this arbitrarily chosen value means more
9264 aggressive optimization, increasing the compilation time.  This parameter
9265 should be removed when the delay slot code is rewritten to maintain the
9266 control-flow graph.
9267 .IP "\fBmax-gcse-memory\fR" 4
9268 .IX Item "max-gcse-memory"
9269 The approximate maximum amount of memory that can be allocated in
9270 order to perform the global common subexpression elimination
9271 optimization.  If more memory than specified is required, the
9272 optimization is not done.
9273 .IP "\fBmax-gcse-insertion-ratio\fR" 4
9274 .IX Item "max-gcse-insertion-ratio"
9275 If the ratio of expression insertions to deletions is larger than this value
9276 for any expression, then \s-1RTL PRE\s0 inserts or removes the expression and thus
9277 leaves partially redundant computations in the instruction stream.  The default value is 20.
9278 .IP "\fBmax-pending-list-length\fR" 4
9279 .IX Item "max-pending-list-length"
9280 The maximum number of pending dependencies scheduling allows
9281 before flushing the current state and starting over.  Large functions
9282 with few branches or calls can create excessively large lists which
9283 needlessly consume memory and resources.
9284 .IP "\fBmax-modulo-backtrack-attempts\fR" 4
9285 .IX Item "max-modulo-backtrack-attempts"
9286 The maximum number of backtrack attempts the scheduler should make
9287 when modulo scheduling a loop.  Larger values can exponentially increase
9288 compilation time.
9289 .IP "\fBmax-inline-insns-single\fR" 4
9290 .IX Item "max-inline-insns-single"
9291 Several parameters control the tree inliner used in \s-1GCC.\s0
9292 This number sets the maximum number of instructions (counted in \s-1GCC\s0's
9293 internal representation) in a single function that the tree inliner
9294 considers for inlining.  This only affects functions declared
9295 inline and methods implemented in a class declaration (\*(C+).
9296 The default value is 400.
9297 .IP "\fBmax-inline-insns-auto\fR" 4
9298 .IX Item "max-inline-insns-auto"
9299 When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
9300 a lot of functions that would otherwise not be considered for inlining
9301 by the compiler are investigated.  To those functions, a different
9302 (more restrictive) limit compared to functions declared inline can
9303 be applied.
9304 The default value is 40.
9305 .IP "\fBinline-min-speedup\fR" 4
9306 .IX Item "inline-min-speedup"
9307 When estimated performance improvement of caller + callee runtime exceeds this
9308 threshold (in precent), the function can be inlined regardless the limit on
9309 \&\fB\-\-param max-inline-insns-single\fR and \fB\-\-param
9310 max-inline-insns-auto\fR.
9311 .IP "\fBlarge-function-insns\fR" 4
9312 .IX Item "large-function-insns"
9313 The limit specifying really large functions.  For functions larger than this
9314 limit after inlining, inlining is constrained by
9315 \&\fB\-\-param large-function-growth\fR.  This parameter is useful primarily
9316 to avoid extreme compilation time caused by non-linear algorithms used by the
9317 back end.
9318 The default value is 2700.
9319 .IP "\fBlarge-function-growth\fR" 4
9320 .IX Item "large-function-growth"
9321 Specifies maximal growth of large function caused by inlining in percents.
9322 The default value is 100 which limits large function growth to 2.0 times
9323 the original size.
9324 .IP "\fBlarge-unit-insns\fR" 4
9325 .IX Item "large-unit-insns"
9326 The limit specifying large translation unit.  Growth caused by inlining of
9327 units larger than this limit is limited by \fB\-\-param inline-unit-growth\fR.
9328 For small units this might be too tight.
9329 For example, consider a unit consisting of function A
9330 that is inline and B that just calls A three times.  If B is small relative to
9331 A, the growth of unit is 300\e% and yet such inlining is very sane.  For very
9332 large units consisting of small inlineable functions, however, the overall unit
9333 growth limit is needed to avoid exponential explosion of code size.  Thus for
9334 smaller units, the size is increased to \fB\-\-param large-unit-insns\fR
9335 before applying \fB\-\-param inline-unit-growth\fR.  The default is 10000.
9336 .IP "\fBinline-unit-growth\fR" 4
9337 .IX Item "inline-unit-growth"
9338 Specifies maximal overall growth of the compilation unit caused by inlining.
9339 The default value is 20 which limits unit growth to 1.2 times the original
9340 size. Cold functions (either marked cold via an attribute or by profile
9341 feedback) are not accounted into the unit size.
9342 .IP "\fBipcp-unit-growth\fR" 4
9343 .IX Item "ipcp-unit-growth"
9344 Specifies maximal overall growth of the compilation unit caused by
9345 interprocedural constant propagation.  The default value is 10 which limits
9346 unit growth to 1.1 times the original size.
9347 .IP "\fBlarge-stack-frame\fR" 4
9348 .IX Item "large-stack-frame"
9349 The limit specifying large stack frames.  While inlining the algorithm is trying
9350 to not grow past this limit too much.  The default value is 256 bytes.
9351 .IP "\fBlarge-stack-frame-growth\fR" 4
9352 .IX Item "large-stack-frame-growth"
9353 Specifies maximal growth of large stack frames caused by inlining in percents.
9354 The default value is 1000 which limits large stack frame growth to 11 times
9355 the original size.
9356 .IP "\fBmax-inline-insns-recursive\fR" 4
9357 .IX Item "max-inline-insns-recursive"
9358 .PD 0
9359 .IP "\fBmax-inline-insns-recursive-auto\fR" 4
9360 .IX Item "max-inline-insns-recursive-auto"
9361 .PD
9362 Specifies the maximum number of instructions an out-of-line copy of a
9363 self-recursive inline
9364 function can grow into by performing recursive inlining.
9365 .Sp
9366 \&\fB\-\-param max-inline-insns-recursive\fR applies to functions
9367 declared inline.
9368 For functions not declared inline, recursive inlining
9369 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
9370 enabled; \fB\-\-param max-inline-insns-recursive-auto\fR applies instead.  The
9371 default value is 450.
9372 .IP "\fBmax-inline-recursive-depth\fR" 4
9373 .IX Item "max-inline-recursive-depth"
9374 .PD 0
9375 .IP "\fBmax-inline-recursive-depth-auto\fR" 4
9376 .IX Item "max-inline-recursive-depth-auto"
9377 .PD
9378 Specifies the maximum recursion depth used for recursive inlining.
9379 .Sp
9380 \&\fB\-\-param max-inline-recursive-depth\fR applies to functions
9381 declared inline.  For functions not declared inline, recursive inlining
9382 happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
9383 enabled; \fB\-\-param max-inline-recursive-depth-auto\fR applies instead.  The
9384 default value is 8.
9385 .IP "\fBmin-inline-recursive-probability\fR" 4
9386 .IX Item "min-inline-recursive-probability"
9387 Recursive inlining is profitable only for function having deep recursion
9388 in average and can hurt for function having little recursion depth by
9389 increasing the prologue size or complexity of function body to other
9390 optimizers.
9391 .Sp
9392 When profile feedback is available (see \fB\-fprofile\-generate\fR) the actual
9393 recursion depth can be guessed from probability that function recurses via a
9394 given call expression.  This parameter limits inlining only to call expressions
9395 whose probability exceeds the given threshold (in percents).
9396 The default value is 10.
9397 .IP "\fBearly-inlining-insns\fR" 4
9398 .IX Item "early-inlining-insns"
9399 Specify growth that the early inliner can make.  In effect it increases
9400 the amount of inlining for code having a large abstraction penalty.
9401 The default value is 14.
9402 .IP "\fBmax-early-inliner-iterations\fR" 4
9403 .IX Item "max-early-inliner-iterations"
9404 Limit of iterations of the early inliner.  This basically bounds
9405 the number of nested indirect calls the early inliner can resolve.
9406 Deeper chains are still handled by late inlining.
9407 .IP "\fBcomdat-sharing-probability\fR" 4
9408 .IX Item "comdat-sharing-probability"
9409 Probability (in percent) that \*(C+ inline function with comdat visibility
9410 are shared across multiple compilation units.  The default value is 20.
9411 .IP "\fBprofile-func-internal-id\fR" 4
9412 .IX Item "profile-func-internal-id"
9413 A parameter to control whether to use function internal id in profile
9414 database lookup. If the value is 0, the compiler uses an id that
9415 is based on function assembler name and filename, which makes old profile
9416 data more tolerant to source changes such as function reordering etc.
9417 The default value is 0.
9418 .IP "\fBmin-vect-loop-bound\fR" 4
9419 .IX Item "min-vect-loop-bound"
9420 The minimum number of iterations under which loops are not vectorized
9421 when \fB\-ftree\-vectorize\fR is used.  The number of iterations after
9422 vectorization needs to be greater than the value specified by this option
9423 to allow vectorization.  The default value is 0.
9424 .IP "\fBgcse-cost-distance-ratio\fR" 4
9425 .IX Item "gcse-cost-distance-ratio"
9426 Scaling factor in calculation of maximum distance an expression
9427 can be moved by \s-1GCSE\s0 optimizations.  This is currently supported only in the
9428 code hoisting pass.  The bigger the ratio, the more aggressive code hoisting
9429 is with simple expressions, i.e., the expressions that have cost
9430 less than \fBgcse-unrestricted-cost\fR.  Specifying 0 disables
9431 hoisting of simple expressions.  The default value is 10.
9432 .IP "\fBgcse-unrestricted-cost\fR" 4
9433 .IX Item "gcse-unrestricted-cost"
9434 Cost, roughly measured as the cost of a single typical machine
9435 instruction, at which \s-1GCSE\s0 optimizations do not constrain
9436 the distance an expression can travel.  This is currently
9437 supported only in the code hoisting pass.  The lesser the cost,
9438 the more aggressive code hoisting is.  Specifying 0 
9439 allows all expressions to travel unrestricted distances.
9440 The default value is 3.
9441 .IP "\fBmax-hoist-depth\fR" 4
9442 .IX Item "max-hoist-depth"
9443 The depth of search in the dominator tree for expressions to hoist.
9444 This is used to avoid quadratic behavior in hoisting algorithm.
9445 The value of 0 does not limit on the search, but may slow down compilation
9446 of huge functions.  The default value is 30.
9447 .IP "\fBmax-tail-merge-comparisons\fR" 4
9448 .IX Item "max-tail-merge-comparisons"
9449 The maximum amount of similar bbs to compare a bb with.  This is used to
9450 avoid quadratic behavior in tree tail merging.  The default value is 10.
9451 .IP "\fBmax-tail-merge-iterations\fR" 4
9452 .IX Item "max-tail-merge-iterations"
9453 The maximum amount of iterations of the pass over the function.  This is used to
9454 limit compilation time in tree tail merging.  The default value is 2.
9455 .IP "\fBmax-unrolled-insns\fR" 4
9456 .IX Item "max-unrolled-insns"
9457 The maximum number of instructions that a loop may have to be unrolled.
9458 If a loop is unrolled, this parameter also determines how many times
9459 the loop code is unrolled.
9460 .IP "\fBmax-average-unrolled-insns\fR" 4
9461 .IX Item "max-average-unrolled-insns"
9462 The maximum number of instructions biased by probabilities of their execution
9463 that a loop may have to be unrolled.  If a loop is unrolled,
9464 this parameter also determines how many times the loop code is unrolled.
9465 .IP "\fBmax-unroll-times\fR" 4
9466 .IX Item "max-unroll-times"
9467 The maximum number of unrollings of a single loop.
9468 .IP "\fBmax-peeled-insns\fR" 4
9469 .IX Item "max-peeled-insns"
9470 The maximum number of instructions that a loop may have to be peeled.
9471 If a loop is peeled, this parameter also determines how many times
9472 the loop code is peeled.
9473 .IP "\fBmax-peel-times\fR" 4
9474 .IX Item "max-peel-times"
9475 The maximum number of peelings of a single loop.
9476 .IP "\fBmax-peel-branches\fR" 4
9477 .IX Item "max-peel-branches"
9478 The maximum number of branches on the hot path through the peeled sequence.
9479 .IP "\fBmax-completely-peeled-insns\fR" 4
9480 .IX Item "max-completely-peeled-insns"
9481 The maximum number of insns of a completely peeled loop.
9482 .IP "\fBmax-completely-peel-times\fR" 4
9483 .IX Item "max-completely-peel-times"
9484 The maximum number of iterations of a loop to be suitable for complete peeling.
9485 .IP "\fBmax-completely-peel-loop-nest-depth\fR" 4
9486 .IX Item "max-completely-peel-loop-nest-depth"
9487 The maximum depth of a loop nest suitable for complete peeling.
9488 .IP "\fBmax-unswitch-insns\fR" 4
9489 .IX Item "max-unswitch-insns"
9490 The maximum number of insns of an unswitched loop.
9491 .IP "\fBmax-unswitch-level\fR" 4
9492 .IX Item "max-unswitch-level"
9493 The maximum number of branches unswitched in a single loop.
9494 .IP "\fBlim-expensive\fR" 4
9495 .IX Item "lim-expensive"
9496 The minimum cost of an expensive expression in the loop invariant motion.
9497 .IP "\fBiv-consider-all-candidates-bound\fR" 4
9498 .IX Item "iv-consider-all-candidates-bound"
9499 Bound on number of candidates for induction variables, below which
9500 all candidates are considered for each use in induction variable
9501 optimizations.  If there are more candidates than this,
9502 only the most relevant ones are considered to avoid quadratic time complexity.
9503 .IP "\fBiv-max-considered-uses\fR" 4
9504 .IX Item "iv-max-considered-uses"
9505 The induction variable optimizations give up on loops that contain more
9506 induction variable uses.
9507 .IP "\fBiv-always-prune-cand-set-bound\fR" 4
9508 .IX Item "iv-always-prune-cand-set-bound"
9509 If the number of candidates in the set is smaller than this value,
9510 always try to remove unnecessary ivs from the set
9511 when adding a new one.
9512 .IP "\fBscev-max-expr-size\fR" 4
9513 .IX Item "scev-max-expr-size"
9514 Bound on size of expressions used in the scalar evolutions analyzer.
9515 Large expressions slow the analyzer.
9516 .IP "\fBscev-max-expr-complexity\fR" 4
9517 .IX Item "scev-max-expr-complexity"
9518 Bound on the complexity of the expressions in the scalar evolutions analyzer.
9519 Complex expressions slow the analyzer.
9520 .IP "\fBomega-max-vars\fR" 4
9521 .IX Item "omega-max-vars"
9522 The maximum number of variables in an Omega constraint system.
9523 The default value is 128.
9524 .IP "\fBomega-max-geqs\fR" 4
9525 .IX Item "omega-max-geqs"
9526 The maximum number of inequalities in an Omega constraint system.
9527 The default value is 256.
9528 .IP "\fBomega-max-eqs\fR" 4
9529 .IX Item "omega-max-eqs"
9530 The maximum number of equalities in an Omega constraint system.
9531 The default value is 128.
9532 .IP "\fBomega-max-wild-cards\fR" 4
9533 .IX Item "omega-max-wild-cards"
9534 The maximum number of wildcard variables that the Omega solver is
9535 able to insert.  The default value is 18.
9536 .IP "\fBomega-hash-table-size\fR" 4
9537 .IX Item "omega-hash-table-size"
9538 The size of the hash table in the Omega solver.  The default value is
9539 550.
9540 .IP "\fBomega-max-keys\fR" 4
9541 .IX Item "omega-max-keys"
9542 The maximal number of keys used by the Omega solver.  The default
9543 value is 500.
9544 .IP "\fBomega-eliminate-redundant-constraints\fR" 4
9545 .IX Item "omega-eliminate-redundant-constraints"
9546 When set to 1, use expensive methods to eliminate all redundant
9547 constraints.  The default value is 0.
9548 .IP "\fBvect-max-version-for-alignment-checks\fR" 4
9549 .IX Item "vect-max-version-for-alignment-checks"
9550 The maximum number of run-time checks that can be performed when
9551 doing loop versioning for alignment in the vectorizer.
9552 .IP "\fBvect-max-version-for-alias-checks\fR" 4
9553 .IX Item "vect-max-version-for-alias-checks"
9554 The maximum number of run-time checks that can be performed when
9555 doing loop versioning for alias in the vectorizer.
9556 .IP "\fBvect-max-peeling-for-alignment\fR" 4
9557 .IX Item "vect-max-peeling-for-alignment"
9558 The maximum number of loop peels to enhance access alignment
9559 for vectorizer. Value \-1 means 'no limit'.
9560 .IP "\fBmax-iterations-to-track\fR" 4
9561 .IX Item "max-iterations-to-track"
9562 The maximum number of iterations of a loop the brute-force algorithm
9563 for analysis of the number of iterations of the loop tries to evaluate.
9564 .IP "\fBhot-bb-count-ws-permille\fR" 4
9565 .IX Item "hot-bb-count-ws-permille"
9566 A basic block profile count is considered hot if it contributes to 
9567 the given permillage (i.e. 0...1000) of the entire profiled execution.
9568 .IP "\fBhot-bb-frequency-fraction\fR" 4
9569 .IX Item "hot-bb-frequency-fraction"
9570 Select fraction of the entry block frequency of executions of basic block in
9571 function given basic block needs to have to be considered hot.
9572 .IP "\fBmax-predicted-iterations\fR" 4
9573 .IX Item "max-predicted-iterations"
9574 The maximum number of loop iterations we predict statically.  This is useful
9575 in cases where a function contains a single loop with known bound and
9576 another loop with unknown bound.
9577 The known number of iterations is predicted correctly, while
9578 the unknown number of iterations average to roughly 10.  This means that the
9579 loop without bounds appears artificially cold relative to the other one.
9580 .IP "\fBbuiltin-expect-probability\fR" 4
9581 .IX Item "builtin-expect-probability"
9582 Control the probability of the expression having the specified value. This
9583 parameter takes a percentage (i.e. 0 ... 100) as input.
9584 The default probability of 90 is obtained empirically.
9585 .IP "\fBalign-threshold\fR" 4
9586 .IX Item "align-threshold"
9587 Select fraction of the maximal frequency of executions of a basic block in
9588 a function to align the basic block.
9589 .IP "\fBalign-loop-iterations\fR" 4
9590 .IX Item "align-loop-iterations"
9591 A loop expected to iterate at least the selected number of iterations is
9592 aligned.
9593 .IP "\fBtracer-dynamic-coverage\fR" 4
9594 .IX Item "tracer-dynamic-coverage"
9595 .PD 0
9596 .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
9597 .IX Item "tracer-dynamic-coverage-feedback"
9598 .PD
9599 This value is used to limit superblock formation once the given percentage of
9600 executed instructions is covered.  This limits unnecessary code size
9601 expansion.
9602 .Sp
9603 The \fBtracer-dynamic-coverage-feedback\fR parameter
9604 is used only when profile
9605 feedback is available.  The real profiles (as opposed to statically estimated
9606 ones) are much less balanced allowing the threshold to be larger value.
9607 .IP "\fBtracer-max-code-growth\fR" 4
9608 .IX Item "tracer-max-code-growth"
9609 Stop tail duplication once code growth has reached given percentage.  This is
9610 a rather artificial limit, as most of the duplicates are eliminated later in
9611 cross jumping, so it may be set to much higher values than is the desired code
9612 growth.
9613 .IP "\fBtracer-min-branch-ratio\fR" 4
9614 .IX Item "tracer-min-branch-ratio"
9615 Stop reverse growth when the reverse probability of best edge is less than this
9616 threshold (in percent).
9617 .IP "\fBtracer-min-branch-ratio\fR" 4
9618 .IX Item "tracer-min-branch-ratio"
9619 .PD 0
9620 .IP "\fBtracer-min-branch-ratio-feedback\fR" 4
9621 .IX Item "tracer-min-branch-ratio-feedback"
9622 .PD
9623 Stop forward growth if the best edge has probability lower than this
9624 threshold.
9625 .Sp
9626 Similarly to \fBtracer-dynamic-coverage\fR two values are present, one for
9627 compilation for profile feedback and one for compilation without.  The value
9628 for compilation with profile feedback needs to be more conservative (higher) in
9629 order to make tracer effective.
9630 .IP "\fBmax-cse-path-length\fR" 4
9631 .IX Item "max-cse-path-length"
9632 The maximum number of basic blocks on path that \s-1CSE\s0 considers.
9633 The default is 10.
9634 .IP "\fBmax-cse-insns\fR" 4
9635 .IX Item "max-cse-insns"
9636 The maximum number of instructions \s-1CSE\s0 processes before flushing.
9637 The default is 1000.
9638 .IP "\fBggc-min-expand\fR" 4
9639 .IX Item "ggc-min-expand"
9640 \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation.  This
9641 parameter specifies the minimum percentage by which the garbage
9642 collector's heap should be allowed to expand between collections.
9643 Tuning this may improve compilation speed; it has no effect on code
9644 generation.
9645 .Sp
9646 The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
9647 \&\s-1RAM \s0>= 1GB.  If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\*(R"\s0 is
9648 the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR.  If
9649 \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
9650 bound of 30% is used.  Setting this parameter and
9651 \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
9652 every opportunity.  This is extremely slow, but can be useful for
9653 debugging.
9654 .IP "\fBggc-min-heapsize\fR" 4
9655 .IX Item "ggc-min-heapsize"
9656 Minimum size of the garbage collector's heap before it begins bothering
9657 to collect garbage.  The first collection occurs after the heap expands
9658 by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR.  Again,
9659 tuning this may improve compilation speed, and has no effect on code
9660 generation.
9661 .Sp
9662 The default is the smaller of \s-1RAM/8, RLIMIT_RSS,\s0 or a limit that
9663 tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
9664 with a lower bound of 4096 (four megabytes) and an upper bound of
9665 131072 (128 megabytes).  If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
9666 particular platform, the lower bound is used.  Setting this parameter
9667 very large effectively disables garbage collection.  Setting this
9668 parameter and \fBggc-min-expand\fR to zero causes a full collection
9669 to occur at every opportunity.
9670 .IP "\fBmax-reload-search-insns\fR" 4
9671 .IX Item "max-reload-search-insns"
9672 The maximum number of instruction reload should look backward for equivalent
9673 register.  Increasing values mean more aggressive optimization, making the
9674 compilation time increase with probably slightly better performance.
9675 The default value is 100.
9676 .IP "\fBmax-cselib-memory-locations\fR" 4
9677 .IX Item "max-cselib-memory-locations"
9678 The maximum number of memory locations cselib should take into account.
9679 Increasing values mean more aggressive optimization, making the compilation time
9680 increase with probably slightly better performance.  The default value is 500.
9681 .IP "\fBreorder-blocks-duplicate\fR" 4
9682 .IX Item "reorder-blocks-duplicate"
9683 .PD 0
9684 .IP "\fBreorder-blocks-duplicate-feedback\fR" 4
9685 .IX Item "reorder-blocks-duplicate-feedback"
9686 .PD
9687 Used by the basic block reordering pass to decide whether to use unconditional
9688 branch or duplicate the code on its destination.  Code is duplicated when its
9689 estimated size is smaller than this value multiplied by the estimated size of
9690 unconditional jump in the hot spots of the program.
9691 .Sp
9692 The \fBreorder-block-duplicate-feedback\fR parameter
9693 is used only when profile
9694 feedback is available.  It may be set to higher values than
9695 \&\fBreorder-block-duplicate\fR since information about the hot spots is more
9696 accurate.
9697 .IP "\fBmax-sched-ready-insns\fR" 4
9698 .IX Item "max-sched-ready-insns"
9699 The maximum number of instructions ready to be issued the scheduler should
9700 consider at any given time during the first scheduling pass.  Increasing
9701 values mean more thorough searches, making the compilation time increase
9702 with probably little benefit.  The default value is 100.
9703 .IP "\fBmax-sched-region-blocks\fR" 4
9704 .IX Item "max-sched-region-blocks"
9705 The maximum number of blocks in a region to be considered for
9706 interblock scheduling.  The default value is 10.
9707 .IP "\fBmax-pipeline-region-blocks\fR" 4
9708 .IX Item "max-pipeline-region-blocks"
9709 The maximum number of blocks in a region to be considered for
9710 pipelining in the selective scheduler.  The default value is 15.
9711 .IP "\fBmax-sched-region-insns\fR" 4
9712 .IX Item "max-sched-region-insns"
9713 The maximum number of insns in a region to be considered for
9714 interblock scheduling.  The default value is 100.
9715 .IP "\fBmax-pipeline-region-insns\fR" 4
9716 .IX Item "max-pipeline-region-insns"
9717 The maximum number of insns in a region to be considered for
9718 pipelining in the selective scheduler.  The default value is 200.
9719 .IP "\fBmin-spec-prob\fR" 4
9720 .IX Item "min-spec-prob"
9721 The minimum probability (in percents) of reaching a source block
9722 for interblock speculative scheduling.  The default value is 40.
9723 .IP "\fBmax-sched-extend-regions-iters\fR" 4
9724 .IX Item "max-sched-extend-regions-iters"
9725 The maximum number of iterations through \s-1CFG\s0 to extend regions.
9726 A value of 0 (the default) disables region extensions.
9727 .IP "\fBmax-sched-insn-conflict-delay\fR" 4
9728 .IX Item "max-sched-insn-conflict-delay"
9729 The maximum conflict delay for an insn to be considered for speculative motion.
9730 The default value is 3.
9731 .IP "\fBsched-spec-prob-cutoff\fR" 4
9732 .IX Item "sched-spec-prob-cutoff"
9733 The minimal probability of speculation success (in percents), so that
9734 speculative insns are scheduled.
9735 The default value is 40.
9736 .IP "\fBsched-spec-state-edge-prob-cutoff\fR" 4
9737 .IX Item "sched-spec-state-edge-prob-cutoff"
9738 The minimum probability an edge must have for the scheduler to save its
9739 state across it.
9740 The default value is 10.
9741 .IP "\fBsched-mem-true-dep-cost\fR" 4
9742 .IX Item "sched-mem-true-dep-cost"
9743 Minimal distance (in \s-1CPU\s0 cycles) between store and load targeting same
9744 memory locations.  The default value is 1.
9745 .IP "\fBselsched-max-lookahead\fR" 4
9746 .IX Item "selsched-max-lookahead"
9747 The maximum size of the lookahead window of selective scheduling.  It is a
9748 depth of search for available instructions.
9749 The default value is 50.
9750 .IP "\fBselsched-max-sched-times\fR" 4
9751 .IX Item "selsched-max-sched-times"
9752 The maximum number of times that an instruction is scheduled during
9753 selective scheduling.  This is the limit on the number of iterations
9754 through which the instruction may be pipelined.  The default value is 2.
9755 .IP "\fBselsched-max-insns-to-rename\fR" 4
9756 .IX Item "selsched-max-insns-to-rename"
9757 The maximum number of best instructions in the ready list that are considered
9758 for renaming in the selective scheduler.  The default value is 2.
9759 .IP "\fBsms-min-sc\fR" 4
9760 .IX Item "sms-min-sc"
9761 The minimum value of stage count that swing modulo scheduler
9762 generates.  The default value is 2.
9763 .IP "\fBmax-last-value-rtl\fR" 4
9764 .IX Item "max-last-value-rtl"
9765 The maximum size measured as number of RTLs that can be recorded in an expression
9766 in combiner for a pseudo register as last known value of that register.  The default
9767 is 10000.
9768 .IP "\fBmax-combine-insns\fR" 4
9769 .IX Item "max-combine-insns"
9770 The maximum number of instructions the \s-1RTL\s0 combiner tries to combine.
9771 The default value is 2 at \fB\-Og\fR and 4 otherwise.
9772 .IP "\fBinteger-share-limit\fR" 4
9773 .IX Item "integer-share-limit"
9774 Small integer constants can use a shared data structure, reducing the
9775 compiler's memory usage and increasing its speed.  This sets the maximum
9776 value of a shared integer constant.  The default value is 256.
9777 .IP "\fBssp-buffer-size\fR" 4
9778 .IX Item "ssp-buffer-size"
9779 The minimum size of buffers (i.e. arrays) that receive stack smashing
9780 protection when \fB\-fstack\-protection\fR is used.
9781 .IP "\fBmin-size-for-stack-sharing\fR" 4
9782 .IX Item "min-size-for-stack-sharing"
9783 The minimum size of variables taking part in stack slot sharing when not
9784 optimizing. The default value is 32.
9785 .IP "\fBmax-jump-thread-duplication-stmts\fR" 4
9786 .IX Item "max-jump-thread-duplication-stmts"
9787 Maximum number of statements allowed in a block that needs to be
9788 duplicated when threading jumps.
9789 .IP "\fBmax-fields-for-field-sensitive\fR" 4
9790 .IX Item "max-fields-for-field-sensitive"
9791 Maximum number of fields in a structure treated in
9792 a field sensitive manner during pointer analysis.  The default is zero
9793 for \fB\-O0\fR and \fB\-O1\fR,
9794 and 100 for \fB\-Os\fR, \fB\-O2\fR, and \fB\-O3\fR.
9795 .IP "\fBprefetch-latency\fR" 4
9796 .IX Item "prefetch-latency"
9797 Estimate on average number of instructions that are executed before
9798 prefetch finishes.  The distance prefetched ahead is proportional
9799 to this constant.  Increasing this number may also lead to less
9800 streams being prefetched (see \fBsimultaneous-prefetches\fR).
9801 .IP "\fBsimultaneous-prefetches\fR" 4
9802 .IX Item "simultaneous-prefetches"
9803 Maximum number of prefetches that can run at the same time.
9804 .IP "\fBl1\-cache\-line\-size\fR" 4
9805 .IX Item "l1-cache-line-size"
9806 The size of cache line in L1 cache, in bytes.
9807 .IP "\fBl1\-cache\-size\fR" 4
9808 .IX Item "l1-cache-size"
9809 The size of L1 cache, in kilobytes.
9810 .IP "\fBl2\-cache\-size\fR" 4
9811 .IX Item "l2-cache-size"
9812 The size of L2 cache, in kilobytes.
9813 .IP "\fBmin-insn-to-prefetch-ratio\fR" 4
9814 .IX Item "min-insn-to-prefetch-ratio"
9815 The minimum ratio between the number of instructions and the
9816 number of prefetches to enable prefetching in a loop.
9817 .IP "\fBprefetch-min-insn-to-mem-ratio\fR" 4
9818 .IX Item "prefetch-min-insn-to-mem-ratio"
9819 The minimum ratio between the number of instructions and the
9820 number of memory references to enable prefetching in a loop.
9821 .IP "\fBuse-canonical-types\fR" 4
9822 .IX Item "use-canonical-types"
9823 Whether the compiler should use the \*(L"canonical\*(R" type system.  By
9824 default, this should always be 1, which uses a more efficient internal
9825 mechanism for comparing types in \*(C+ and Objective\-\*(C+.  However, if
9826 bugs in the canonical type system are causing compilation failures,
9827 set this value to 0 to disable canonical types.
9828 .IP "\fBswitch-conversion-max-branch-ratio\fR" 4
9829 .IX Item "switch-conversion-max-branch-ratio"
9830 Switch initialization conversion refuses to create arrays that are
9831 bigger than \fBswitch-conversion-max-branch-ratio\fR times the number of
9832 branches in the switch.
9833 .IP "\fBmax-partial-antic-length\fR" 4
9834 .IX Item "max-partial-antic-length"
9835 Maximum length of the partial antic set computed during the tree
9836 partial redundancy elimination optimization (\fB\-ftree\-pre\fR) when
9837 optimizing at \fB\-O3\fR and above.  For some sorts of source code
9838 the enhanced partial redundancy elimination optimization can run away,
9839 consuming all of the memory available on the host machine.  This
9840 parameter sets a limit on the length of the sets that are computed,
9841 which prevents the runaway behavior.  Setting a value of 0 for
9842 this parameter allows an unlimited set length.
9843 .IP "\fBsccvn-max-scc-size\fR" 4
9844 .IX Item "sccvn-max-scc-size"
9845 Maximum size of a strongly connected component (\s-1SCC\s0) during \s-1SCCVN\s0
9846 processing.  If this limit is hit, \s-1SCCVN\s0 processing for the whole
9847 function is not done and optimizations depending on it are
9848 disabled.  The default maximum \s-1SCC\s0 size is 10000.
9849 .IP "\fBsccvn-max-alias-queries-per-access\fR" 4
9850 .IX Item "sccvn-max-alias-queries-per-access"
9851 Maximum number of alias-oracle queries we perform when looking for
9852 redundancies for loads and stores.  If this limit is hit the search
9853 is aborted and the load or store is not considered redundant.  The
9854 number of queries is algorithmically limited to the number of
9855 stores on all paths from the load to the function entry.
9856 The default maxmimum number of queries is 1000.
9857 .IP "\fBira-max-loops-num\fR" 4
9858 .IX Item "ira-max-loops-num"
9859 \&\s-1IRA\s0 uses regional register allocation by default.  If a function
9860 contains more loops than the number given by this parameter, only at most
9861 the given number of the most frequently-executed loops form regions
9862 for regional register allocation.  The default value of the
9863 parameter is 100.
9864 .IP "\fBira-max-conflict-table-size\fR" 4
9865 .IX Item "ira-max-conflict-table-size"
9866 Although \s-1IRA\s0 uses a sophisticated algorithm to compress the conflict
9867 table, the table can still require excessive amounts of memory for
9868 huge functions.  If the conflict table for a function could be more
9869 than the size in \s-1MB\s0 given by this parameter, the register allocator
9870 instead uses a faster, simpler, and lower-quality
9871 algorithm that does not require building a pseudo-register conflict table.  
9872 The default value of the parameter is 2000.
9873 .IP "\fBira-loop-reserved-regs\fR" 4
9874 .IX Item "ira-loop-reserved-regs"
9875 \&\s-1IRA\s0 can be used to evaluate more accurate register pressure in loops
9876 for decisions to move loop invariants (see \fB\-O3\fR).  The number
9877 of available registers reserved for some other purposes is given
9878 by this parameter.  The default value of the parameter is 2, which is
9879 the minimal number of registers needed by typical instructions.
9880 This value is the best found from numerous experiments.
9881 .IP "\fBlra-inheritance-ebb-probability-cutoff\fR" 4
9882 .IX Item "lra-inheritance-ebb-probability-cutoff"
9883 \&\s-1LRA\s0 tries to reuse values reloaded in registers in subsequent insns.
9884 This optimization is called inheritance.  \s-1EBB\s0 is used as a region to
9885 do this optimization.  The parameter defines a minimal fall-through
9886 edge probability in percentage used to add \s-1BB\s0 to inheritance \s-1EBB\s0 in
9887 \&\s-1LRA. \s0 The default value of the parameter is 40.  The value was chosen
9888 from numerous runs of \s-1SPEC2000\s0 on x86\-64.
9889 .IP "\fBloop-invariant-max-bbs-in-loop\fR" 4
9890 .IX Item "loop-invariant-max-bbs-in-loop"
9891 Loop invariant motion can be very expensive, both in compilation time and
9892 in amount of needed compile-time memory, with very large loops.  Loops
9893 with more basic blocks than this parameter won't have loop invariant
9894 motion optimization performed on them.  The default value of the
9895 parameter is 1000 for \fB\-O1\fR and 10000 for \fB\-O2\fR and above.
9896 .IP "\fBloop-max-datarefs-for-datadeps\fR" 4
9897 .IX Item "loop-max-datarefs-for-datadeps"
9898 Building data dapendencies is expensive for very large loops.  This
9899 parameter limits the number of data references in loops that are
9900 considered for data dependence analysis.  These large loops are no
9901 handled by the optimizations using loop data dependencies.
9902 The default value is 1000.
9903 .IP "\fBmax-vartrack-size\fR" 4
9904 .IX Item "max-vartrack-size"
9905 Sets a maximum number of hash table slots to use during variable
9906 tracking dataflow analysis of any function.  If this limit is exceeded
9907 with variable tracking at assignments enabled, analysis for that
9908 function is retried without it, after removing all debug insns from
9909 the function.  If the limit is exceeded even without debug insns, var
9910 tracking analysis is completely disabled for the function.  Setting
9911 the parameter to zero makes it unlimited.
9912 .IP "\fBmax-vartrack-expr-depth\fR" 4
9913 .IX Item "max-vartrack-expr-depth"
9914 Sets a maximum number of recursion levels when attempting to map
9915 variable names or debug temporaries to value expressions.  This trades
9916 compilation time for more complete debug information.  If this is set too
9917 low, value expressions that are available and could be represented in
9918 debug information may end up not being used; setting this higher may
9919 enable the compiler to find more complex debug expressions, but compile
9920 time and memory use may grow.  The default is 12.
9921 .IP "\fBmin-nondebug-insn-uid\fR" 4
9922 .IX Item "min-nondebug-insn-uid"
9923 Use uids starting at this parameter for nondebug insns.  The range below
9924 the parameter is reserved exclusively for debug insns created by
9925 \&\fB\-fvar\-tracking\-assignments\fR, but debug insns may get
9926 (non-overlapping) uids above it if the reserved range is exhausted.
9927 .IP "\fBipa-sra-ptr-growth-factor\fR" 4
9928 .IX Item "ipa-sra-ptr-growth-factor"
9929 IPA-SRA replaces a pointer to an aggregate with one or more new
9930 parameters only when their cumulative size is less or equal to
9931 \&\fBipa-sra-ptr-growth-factor\fR times the size of the original
9932 pointer parameter.
9933 .IP "\fBsra-max-scalarization-size-Ospeed\fR" 4
9934 .IX Item "sra-max-scalarization-size-Ospeed"
9935 .PD 0
9936 .IP "\fBsra-max-scalarization-size-Osize\fR" 4
9937 .IX Item "sra-max-scalarization-size-Osize"
9938 .PD
9939 The two Scalar Reduction of Aggregates passes (\s-1SRA\s0 and IPA-SRA) aim to
9940 replace scalar parts of aggregates with uses of independent scalar
9941 variables.  These parameters control the maximum size, in storage units,
9942 of aggregate which is considered for replacement when compiling for
9943 speed
9944 (\fBsra-max-scalarization-size-Ospeed\fR) or size
9945 (\fBsra-max-scalarization-size-Osize\fR) respectively.
9946 .IP "\fBtm-max-aggregate-size\fR" 4
9947 .IX Item "tm-max-aggregate-size"
9948 When making copies of thread-local variables in a transaction, this
9949 parameter specifies the size in bytes after which variables are
9950 saved with the logging functions as opposed to save/restore code
9951 sequence pairs.  This option only applies when using
9952 \&\fB\-fgnu\-tm\fR.
9953 .IP "\fBgraphite-max-nb-scop-params\fR" 4
9954 .IX Item "graphite-max-nb-scop-params"
9955 To avoid exponential effects in the Graphite loop transforms, the
9956 number of parameters in a Static Control Part (SCoP) is bounded.  The
9957 default value is 10 parameters.  A variable whose value is unknown at
9958 compilation time and defined outside a SCoP is a parameter of the SCoP.
9959 .IP "\fBgraphite-max-bbs-per-function\fR" 4
9960 .IX Item "graphite-max-bbs-per-function"
9961 To avoid exponential effects in the detection of SCoPs, the size of
9962 the functions analyzed by Graphite is bounded.  The default value is
9963 100 basic blocks.
9964 .IP "\fBloop-block-tile-size\fR" 4
9965 .IX Item "loop-block-tile-size"
9966 Loop blocking or strip mining transforms, enabled with
9967 \&\fB\-floop\-block\fR or \fB\-floop\-strip\-mine\fR, strip mine each
9968 loop in the loop nest by a given number of iterations.  The strip
9969 length can be changed using the \fBloop-block-tile-size\fR
9970 parameter.  The default value is 51 iterations.
9971 .IP "\fBloop-unroll-jam-size\fR" 4
9972 .IX Item "loop-unroll-jam-size"
9973 Specify the unroll factor for the \fB\-floop\-unroll\-and\-jam\fR option.  The 
9974 default value is 4.
9975 .IP "\fBloop-unroll-jam-depth\fR" 4
9976 .IX Item "loop-unroll-jam-depth"
9977 Specify the dimension to be unrolled (counting from the most inner loop)
9978 for the  \fB\-floop\-unroll\-and\-jam\fR.  The default value is 2.
9979 .IP "\fBipa-cp-value-list-size\fR" 4
9980 .IX Item "ipa-cp-value-list-size"
9981 IPA-CP attempts to track all possible values and types passed to a function's
9982 parameter in order to propagate them and perform devirtualization.
9983 \&\fBipa-cp-value-list-size\fR is the maximum number of values and types it
9984 stores per one formal parameter of a function.
9985 .IP "\fBipa-cp-eval-threshold\fR" 4
9986 .IX Item "ipa-cp-eval-threshold"
9987 IPA-CP calculates its own score of cloning profitability heuristics
9988 and performs those cloning opportunities with scores that exceed
9989 \&\fBipa-cp-eval-threshold\fR.
9990 .IP "\fBipa-cp-recursion-penalty\fR" 4
9991 .IX Item "ipa-cp-recursion-penalty"
9992 Percentage penalty the recursive functions will receive when they
9993 are evaluated for cloning.
9994 .IP "\fBipa-cp-single-call-penalty\fR" 4
9995 .IX Item "ipa-cp-single-call-penalty"
9996 Percentage penalty functions containg a single call to another
9997 function will receive when they are evaluated for cloning.
9998 .IP "\fBipa-max-agg-items\fR" 4
9999 .IX Item "ipa-max-agg-items"
10000 IPA-CP is also capable to propagate a number of scalar values passed
10001 in an aggregate. \fBipa-max-agg-items\fR controls the maximum
10002 number of such values per one parameter.
10003 .IP "\fBipa-cp-loop-hint-bonus\fR" 4
10004 .IX Item "ipa-cp-loop-hint-bonus"
10005 When IPA-CP determines that a cloning candidate would make the number
10006 of iterations of a loop known, it adds a bonus of
10007 \&\fBipa-cp-loop-hint-bonus\fR to the profitability score of
10008 the candidate.
10009 .IP "\fBipa-cp-array-index-hint-bonus\fR" 4
10010 .IX Item "ipa-cp-array-index-hint-bonus"
10011 When IPA-CP determines that a cloning candidate would make the index of
10012 an array access known, it adds a bonus of
10013 \&\fBipa-cp-array-index-hint-bonus\fR to the profitability
10014 score of the candidate.
10015 .IP "\fBipa-max-aa-steps\fR" 4
10016 .IX Item "ipa-max-aa-steps"
10017 During its analysis of function bodies, IPA-CP employs alias analysis
10018 in order to track values pointed to by function parameters.  In order
10019 not spend too much time analyzing huge functions, it gives up and
10020 consider all memory clobbered after examining
10021 \&\fBipa-max-aa-steps\fR statements modifying memory.
10022 .IP "\fBlto-partitions\fR" 4
10023 .IX Item "lto-partitions"
10024 Specify desired number of partitions produced during \s-1WHOPR\s0 compilation.
10025 The number of partitions should exceed the number of CPUs used for compilation.
10026 The default value is 32.
10027 .IP "\fBlto-minpartition\fR" 4
10028 .IX Item "lto-minpartition"
10029 Size of minimal partition for \s-1WHOPR \s0(in estimated instructions).
10030 This prevents expenses of splitting very small programs into too many
10031 partitions.
10032 .IP "\fBcxx-max-namespaces-for-diagnostic-help\fR" 4
10033 .IX Item "cxx-max-namespaces-for-diagnostic-help"
10034 The maximum number of namespaces to consult for suggestions when \*(C+
10035 name lookup fails for an identifier.  The default is 1000.
10036 .IP "\fBsink-frequency-threshold\fR" 4
10037 .IX Item "sink-frequency-threshold"
10038 The maximum relative execution frequency (in percents) of the target block
10039 relative to a statement's original block to allow statement sinking of a
10040 statement.  Larger numbers result in more aggressive statement sinking.
10041 The default value is 75.  A small positive adjustment is applied for
10042 statements with memory operands as those are even more profitable so sink.
10043 .IP "\fBmax-stores-to-sink\fR" 4
10044 .IX Item "max-stores-to-sink"
10045 The maximum number of conditional stores paires that can be sunk.  Set to 0
10046 if either vectorization (\fB\-ftree\-vectorize\fR) or if-conversion
10047 (\fB\-ftree\-loop\-if\-convert\fR) is disabled.  The default is 2.
10048 .IP "\fBallow-store-data-races\fR" 4
10049 .IX Item "allow-store-data-races"
10050 Allow optimizers to introduce new data races on stores.
10051 Set to 1 to allow, otherwise to 0.  This option is enabled by default
10052 at optimization level \fB\-Ofast\fR.
10053 .IP "\fBcase-values-threshold\fR" 4
10054 .IX Item "case-values-threshold"
10055 The smallest number of different values for which it is best to use a
10056 jump-table instead of a tree of conditional branches.  If the value is
10057 0, use the default for the machine.  The default is 0.
10058 .IP "\fBtree-reassoc-width\fR" 4
10059 .IX Item "tree-reassoc-width"
10060 Set the maximum number of instructions executed in parallel in
10061 reassociated tree. This parameter overrides target dependent
10062 heuristics used by default if has non zero value.
10063 .IP "\fBsched-pressure-algorithm\fR" 4
10064 .IX Item "sched-pressure-algorithm"
10065 Choose between the two available implementations of
10066 \&\fB\-fsched\-pressure\fR.  Algorithm 1 is the original implementation
10067 and is the more likely to prevent instructions from being reordered.
10068 Algorithm 2 was designed to be a compromise between the relatively
10069 conservative approach taken by algorithm 1 and the rather aggressive
10070 approach taken by the default scheduler.  It relies more heavily on
10071 having a regular register file and accurate register pressure classes.
10072 See \fIhaifa\-sched.c\fR in the \s-1GCC\s0 sources for more details.
10073 .Sp
10074 The default choice depends on the target.
10075 .IP "\fBmax-slsr-cand-scan\fR" 4
10076 .IX Item "max-slsr-cand-scan"
10077 Set the maximum number of existing candidates that are considered when
10078 seeking a basis for a new straight-line strength reduction candidate.
10079 .IP "\fBasan-globals\fR" 4
10080 .IX Item "asan-globals"
10081 Enable buffer overflow detection for global objects.  This kind
10082 of protection is enabled by default if you are using
10083 \&\fB\-fsanitize=address\fR option.
10084 To disable global objects protection use \fB\-\-param asan\-globals=0\fR.
10085 .IP "\fBasan-stack\fR" 4
10086 .IX Item "asan-stack"
10087 Enable buffer overflow detection for stack objects.  This kind of
10088 protection is enabled by default when using\fB\-fsanitize=address\fR.
10089 To disable stack protection use \fB\-\-param asan\-stack=0\fR option.
10090 .IP "\fBasan-instrument-reads\fR" 4
10091 .IX Item "asan-instrument-reads"
10092 Enable buffer overflow detection for memory reads.  This kind of
10093 protection is enabled by default when using \fB\-fsanitize=address\fR.
10094 To disable memory reads protection use
10095 \&\fB\-\-param asan\-instrument\-reads=0\fR.
10096 .IP "\fBasan-instrument-writes\fR" 4
10097 .IX Item "asan-instrument-writes"
10098 Enable buffer overflow detection for memory writes.  This kind of
10099 protection is enabled by default when using \fB\-fsanitize=address\fR.
10100 To disable memory writes protection use
10101 \&\fB\-\-param asan\-instrument\-writes=0\fR option.
10102 .IP "\fBasan-memintrin\fR" 4
10103 .IX Item "asan-memintrin"
10104 Enable detection for built-in functions.  This kind of protection
10105 is enabled by default when using \fB\-fsanitize=address\fR.
10106 To disable built-in functions protection use
10107 \&\fB\-\-param asan\-memintrin=0\fR.
10108 .IP "\fBasan-use-after-return\fR" 4
10109 .IX Item "asan-use-after-return"
10110 Enable detection of use-after-return.  This kind of protection
10111 is enabled by default when using \fB\-fsanitize=address\fR option.
10112 To disable use-after-return detection use 
10113 \&\fB\-\-param asan\-use\-after\-return=0\fR.
10114 .IP "\fBasan-instrumentation-with-call-threshold\fR" 4
10115 .IX Item "asan-instrumentation-with-call-threshold"
10116 If number of memory accesses in function being instrumented
10117 is greater or equal to this number, use callbacks instead of inline checks.
10118 E.g. to disable inline code use
10119 \&\fB\-\-param asan\-instrumentation\-with\-call\-threshold=0\fR.
10120 .IP "\fBchkp-max-ctor-size\fR" 4
10121 .IX Item "chkp-max-ctor-size"
10122 Static constructors generated by Pointer Bounds Checker may become very
10123 large and significantly increase compile time at optimization level
10124 \&\fB\-O1\fR and higher.  This parameter is a maximum nubmer of statements
10125 in a single generated constructor.  Default value is 5000.
10126 .IP "\fBmax-fsm-thread-path-insns\fR" 4
10127 .IX Item "max-fsm-thread-path-insns"
10128 Maximum number of instructions to copy when duplicating blocks on a
10129 finite state automaton jump thread path.  The default is 100.
10130 .IP "\fBmax-fsm-thread-length\fR" 4
10131 .IX Item "max-fsm-thread-length"
10132 Maximum number of basic blocks on a finite state automaton jump thread
10133 path.  The default is 10.
10134 .IP "\fBmax-fsm-thread-paths\fR" 4
10135 .IX Item "max-fsm-thread-paths"
10136 Maximum number of new jump thread paths to create for a finite state
10137 automaton.  The default is 50.
10138 .RE
10139 .RS 4
10140 .RE
10141 .SS "Options Controlling the Preprocessor"
10142 .IX Subsection "Options Controlling the Preprocessor"
10143 These options control the C preprocessor, which is run on each C source
10144 file before actual compilation.
10145 .PP
10146 If you use the \fB\-E\fR option, nothing is done except preprocessing.
10147 Some of these options make sense only together with \fB\-E\fR because
10148 they cause the preprocessor output to be unsuitable for actual
10149 compilation.
10150 .IP "\fB\-Wp,\fR\fIoption\fR" 4
10151 .IX Item "-Wp,option"
10152 You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
10153 and pass \fIoption\fR directly through to the preprocessor.  If
10154 \&\fIoption\fR contains commas, it is split into multiple options at the
10155 commas.  However, many options are modified, translated or interpreted
10156 by the compiler driver before being passed to the preprocessor, and
10157 \&\fB\-Wp\fR forcibly bypasses this phase.  The preprocessor's direct
10158 interface is undocumented and subject to change, so whenever possible
10159 you should avoid using \fB\-Wp\fR and let the driver handle the
10160 options instead.
10161 .IP "\fB\-Xpreprocessor\fR \fIoption\fR" 4
10162 .IX Item "-Xpreprocessor option"
10163 Pass \fIoption\fR as an option to the preprocessor.  You can use this to
10164 supply system-specific preprocessor options that \s-1GCC\s0 does not 
10165 recognize.
10166 .Sp
10167 If you want to pass an option that takes an argument, you must use
10168 \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
10169 .IP "\fB\-no\-integrated\-cpp\fR" 4
10170 .IX Item "-no-integrated-cpp"
10171 Perform preprocessing as a separate pass before compilation.
10172 By default, \s-1GCC\s0 performs preprocessing as an integrated part of
10173 input tokenization and parsing.
10174 If this option is provided, the appropriate language front end
10175 (\fBcc1\fR, \fBcc1plus\fR, or \fBcc1obj\fR for C, \*(C+,
10176 and Objective-C, respectively) is instead invoked twice,
10177 once for preprocessing only and once for actual compilation
10178 of the preprocessed input.
10179 This option may be useful in conjunction with the \fB\-B\fR or
10180 \&\fB\-wrapper\fR options to specify an alternate preprocessor or
10181 perform additional processing of the program source between
10182 normal preprocessing and compilation.
10183 .IP "\fB\-D\fR \fIname\fR" 4
10184 .IX Item "-D name"
10185 Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
10186 .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
10187 .IX Item "-D name=definition"
10188 The contents of \fIdefinition\fR are tokenized and processed as if
10189 they appeared during translation phase three in a \fB#define\fR
10190 directive.  In particular, the definition will be truncated by
10191 embedded newline characters.
10192 .Sp
10193 If you are invoking the preprocessor from a shell or shell-like
10194 program you may need to use the shell's quoting syntax to protect
10195 characters such as spaces that have a meaning in the shell syntax.
10196 .Sp
10197 If you wish to define a function-like macro on the command line, write
10198 its argument list with surrounding parentheses before the equals sign
10199 (if any).  Parentheses are meaningful to most shells, so you will need
10200 to quote the option.  With \fBsh\fR and \fBcsh\fR,
10201 \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
10202 .Sp
10203 \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
10204 are given on the command line.  All \fB\-imacros\fR \fIfile\fR and
10205 \&\fB\-include\fR \fIfile\fR options are processed after all
10206 \&\fB\-D\fR and \fB\-U\fR options.
10207 .IP "\fB\-U\fR \fIname\fR" 4
10208 .IX Item "-U name"
10209 Cancel any previous definition of \fIname\fR, either built in or
10210 provided with a \fB\-D\fR option.
10211 .IP "\fB\-undef\fR" 4
10212 .IX Item "-undef"
10213 Do not predefine any system-specific or GCC-specific macros.  The
10214 standard predefined macros remain defined.
10215 .IP "\fB\-I\fR \fIdir\fR" 4
10216 .IX Item "-I dir"
10217 Add the directory \fIdir\fR to the list of directories to be searched
10218 for header files.
10219 Directories named by \fB\-I\fR are searched before the standard
10220 system include directories.  If the directory \fIdir\fR is a standard
10221 system include directory, the option is ignored to ensure that the
10222 default search order for system directories and the special treatment
10223 of system headers are not defeated
10224 \&.
10225 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
10226 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
10227 .IP "\fB\-o\fR \fIfile\fR" 4
10228 .IX Item "-o file"
10229 Write output to \fIfile\fR.  This is the same as specifying \fIfile\fR
10230 as the second non-option argument to \fBcpp\fR.  \fBgcc\fR has a
10231 different interpretation of a second non-option argument, so you must
10232 use \fB\-o\fR to specify the output file.
10233 .IP "\fB\-Wall\fR" 4
10234 .IX Item "-Wall"
10235 Turns on all optional warnings which are desirable for normal code.
10236 At present this is \fB\-Wcomment\fR, \fB\-Wtrigraphs\fR,
10237 \&\fB\-Wmultichar\fR and a warning about integer promotion causing a
10238 change of sign in \f(CW\*(C`#if\*(C'\fR expressions.  Note that many of the
10239 preprocessor's warnings are on by default and have no options to
10240 control them.
10241 .IP "\fB\-Wcomment\fR" 4
10242 .IX Item "-Wcomment"
10243 .PD 0
10244 .IP "\fB\-Wcomments\fR" 4
10245 .IX Item "-Wcomments"
10246 .PD
10247 Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
10248 comment, or whenever a backslash-newline appears in a \fB//\fR comment.
10249 (Both forms have the same effect.)
10250 .IP "\fB\-Wtrigraphs\fR" 4
10251 .IX Item "-Wtrigraphs"
10252 Most trigraphs in comments cannot affect the meaning of the program.
10253 However, a trigraph that would form an escaped newline (\fB??/\fR at
10254 the end of a line) can, by changing where the comment begins or ends.
10255 Therefore, only trigraphs that would form escaped newlines produce
10256 warnings inside a comment.
10257 .Sp
10258 This option is implied by \fB\-Wall\fR.  If \fB\-Wall\fR is not
10259 given, this option is still enabled unless trigraphs are enabled.  To
10260 get trigraph conversion without warnings, but get the other
10261 \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
10262 .IP "\fB\-Wtraditional\fR" 4
10263 .IX Item "-Wtraditional"
10264 Warn about certain constructs that behave differently in traditional and
10265 \&\s-1ISO C. \s0 Also warn about \s-1ISO C\s0 constructs that have no traditional C
10266 equivalent, and problematic constructs which should be avoided.
10267 .IP "\fB\-Wundef\fR" 4
10268 .IX Item "-Wundef"
10269 Warn whenever an identifier which is not a macro is encountered in an
10270 \&\fB#if\fR directive, outside of \fBdefined\fR.  Such identifiers are
10271 replaced with zero.
10272 .IP "\fB\-Wunused\-macros\fR" 4
10273 .IX Item "-Wunused-macros"
10274 Warn about macros defined in the main file that are unused.  A macro
10275 is \fIused\fR if it is expanded or tested for existence at least once.
10276 The preprocessor will also warn if the macro has not been used at the
10277 time it is redefined or undefined.
10278 .Sp
10279 Built-in macros, macros defined on the command line, and macros
10280 defined in include files are not warned about.
10281 .Sp
10282 \&\fINote:\fR If a macro is actually used, but only used in skipped
10283 conditional blocks, then \s-1CPP\s0 will report it as unused.  To avoid the
10284 warning in such a case, you might improve the scope of the macro's
10285 definition by, for example, moving it into the first skipped block.
10286 Alternatively, you could provide a dummy use with something like:
10287 .Sp
10288 .Vb 2
10289 \&        #if defined the_macro_causing_the_warning
10290 \&        #endif
10291 .Ve
10292 .IP "\fB\-Wendif\-labels\fR" 4
10293 .IX Item "-Wendif-labels"
10294 Warn whenever an \fB#else\fR or an \fB#endif\fR are followed by text.
10295 This usually happens in code of the form
10296 .Sp
10297 .Vb 5
10298 \&        #if FOO
10299 \&        ...
10300 \&        #else FOO
10301 \&        ...
10302 \&        #endif FOO
10303 .Ve
10304 .Sp
10305 The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments, but often are not
10306 in older programs.  This warning is on by default.
10307 .IP "\fB\-Werror\fR" 4
10308 .IX Item "-Werror"
10309 Make all warnings into hard errors.  Source code which triggers warnings
10310 will be rejected.
10311 .IP "\fB\-Wsystem\-headers\fR" 4
10312 .IX Item "-Wsystem-headers"
10313 Issue warnings for code in system headers.  These are normally unhelpful
10314 in finding bugs in your own code, therefore suppressed.  If you are
10315 responsible for the system library, you may want to see them.
10316 .IP "\fB\-w\fR" 4
10317 .IX Item "-w"
10318 Suppress all warnings, including those which \s-1GNU CPP\s0 issues by default.
10319 .IP "\fB\-pedantic\fR" 4
10320 .IX Item "-pedantic"
10321 Issue all the mandatory diagnostics listed in the C standard.  Some of
10322 them are left out by default, since they trigger frequently on harmless
10323 code.
10324 .IP "\fB\-pedantic\-errors\fR" 4
10325 .IX Item "-pedantic-errors"
10326 Issue all the mandatory diagnostics, and make all mandatory diagnostics
10327 into errors.  This includes mandatory diagnostics that \s-1GCC\s0 issues
10328 without \fB\-pedantic\fR but treats as warnings.
10329 .IP "\fB\-M\fR" 4
10330 .IX Item "-M"
10331 Instead of outputting the result of preprocessing, output a rule
10332 suitable for \fBmake\fR describing the dependencies of the main
10333 source file.  The preprocessor outputs one \fBmake\fR rule containing
10334 the object file name for that source file, a colon, and the names of all
10335 the included files, including those coming from \fB\-include\fR or
10336 \&\fB\-imacros\fR command-line options.
10337 .Sp
10338 Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
10339 object file name consists of the name of the source file with any
10340 suffix replaced with object file suffix and with any leading directory
10341 parts removed.  If there are many included files then the rule is
10342 split into several lines using \fB\e\fR\-newline.  The rule has no
10343 commands.
10344 .Sp
10345 This option does not suppress the preprocessor's debug output, such as
10346 \&\fB\-dM\fR.  To avoid mixing such debug output with the dependency
10347 rules you should explicitly specify the dependency output file with
10348 \&\fB\-MF\fR, or use an environment variable like
10349 \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR.  Debug output
10350 will still be sent to the regular output stream as normal.
10351 .Sp
10352 Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
10353 warnings with an implicit \fB\-w\fR.
10354 .IP "\fB\-MM\fR" 4
10355 .IX Item "-MM"
10356 Like \fB\-M\fR but do not mention header files that are found in
10357 system header directories, nor header files that are included,
10358 directly or indirectly, from such a header.
10359 .Sp
10360 This implies that the choice of angle brackets or double quotes in an
10361 \&\fB#include\fR directive does not in itself determine whether that
10362 header will appear in \fB\-MM\fR dependency output.  This is a
10363 slight change in semantics from \s-1GCC\s0 versions 3.0 and earlier.
10364 .IP "\fB\-MF\fR \fIfile\fR" 4
10365 .IX Item "-MF file"
10366 When used with \fB\-M\fR or \fB\-MM\fR, specifies a
10367 file to write the dependencies to.  If no \fB\-MF\fR switch is given
10368 the preprocessor sends the rules to the same place it would have sent
10369 preprocessed output.
10370 .Sp
10371 When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
10372 \&\fB\-MF\fR overrides the default dependency output file.
10373 .IP "\fB\-MG\fR" 4
10374 .IX Item "-MG"
10375 In conjunction with an option such as \fB\-M\fR requesting
10376 dependency generation, \fB\-MG\fR assumes missing header files are
10377 generated files and adds them to the dependency list without raising
10378 an error.  The dependency filename is taken directly from the
10379 \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path.  \fB\-MG\fR
10380 also suppresses preprocessed output, as a missing header file renders
10381 this useless.
10382 .Sp
10383 This feature is used in automatic updating of makefiles.
10384 .IP "\fB\-MP\fR" 4
10385 .IX Item "-MP"
10386 This option instructs \s-1CPP\s0 to add a phony target for each dependency
10387 other than the main file, causing each to depend on nothing.  These
10388 dummy rules work around errors \fBmake\fR gives if you remove header
10389 files without updating the \fIMakefile\fR to match.
10390 .Sp
10391 This is typical output:
10392 .Sp
10393 .Vb 1
10394 \&        test.o: test.c test.h
10395 \&        
10396 \&        test.h:
10397 .Ve
10398 .IP "\fB\-MT\fR \fItarget\fR" 4
10399 .IX Item "-MT target"
10400 Change the target of the rule emitted by dependency generation.  By
10401 default \s-1CPP\s0 takes the name of the main input file, deletes any
10402 directory components and any file suffix such as \fB.c\fR, and
10403 appends the platform's usual object suffix.  The result is the target.
10404 .Sp
10405 An \fB\-MT\fR option will set the target to be exactly the string you
10406 specify.  If you want multiple targets, you can specify them as a single
10407 argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
10408 .Sp
10409 For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
10410 .Sp
10411 .Vb 1
10412 \&        $(objpfx)foo.o: foo.c
10413 .Ve
10414 .IP "\fB\-MQ\fR \fItarget\fR" 4
10415 .IX Item "-MQ target"
10416 Same as \fB\-MT\fR, but it quotes any characters which are special to
10417 Make.  \fB\-MQ\ '$(objpfx)foo.o'\fR gives
10418 .Sp
10419 .Vb 1
10420 \&        $$(objpfx)foo.o: foo.c
10421 .Ve
10422 .Sp
10423 The default target is automatically quoted, as if it were given with
10424 \&\fB\-MQ\fR.
10425 .IP "\fB\-MD\fR" 4
10426 .IX Item "-MD"
10427 \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
10428 \&\fB\-E\fR is not implied.  The driver determines \fIfile\fR based on
10429 whether an \fB\-o\fR option is given.  If it is, the driver uses its
10430 argument but with a suffix of \fI.d\fR, otherwise it takes the name
10431 of the input file, removes any directory components and suffix, and
10432 applies a \fI.d\fR suffix.
10433 .Sp
10434 If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
10435 \&\fB\-o\fR switch is understood to specify the dependency output file, but if used without \fB\-E\fR, each \fB\-o\fR
10436 is understood to specify a target object file.
10437 .Sp
10438 Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
10439 a dependency output file as a side-effect of the compilation process.
10440 .IP "\fB\-MMD\fR" 4
10441 .IX Item "-MMD"
10442 Like \fB\-MD\fR except mention only user header files, not system
10443 header files.
10444 .IP "\fB\-fpch\-deps\fR" 4
10445 .IX Item "-fpch-deps"
10446 When using precompiled headers, this flag
10447 will cause the dependency-output flags to also list the files from the
10448 precompiled header's dependencies.  If not specified only the
10449 precompiled header would be listed and not the files that were used to
10450 create it because those files are not consulted when a precompiled
10451 header is used.
10452 .IP "\fB\-fpch\-preprocess\fR" 4
10453 .IX Item "-fpch-preprocess"
10454 This option allows use of a precompiled header together with \fB\-E\fR.  It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
10455 \&\f(CW\*(C`#pragma GCC pch_preprocess "\f(CIfilename\f(CW"\*(C'\fR in the output to mark
10456 the place where the precompiled header was found, and its \fIfilename\fR.
10457 When \fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR
10458 and loads the \s-1PCH.\s0
10459 .Sp
10460 This option is off by default, because the resulting preprocessed output
10461 is only really suitable as input to \s-1GCC. \s0 It is switched on by
10462 \&\fB\-save\-temps\fR.
10463 .Sp
10464 You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
10465 safe to edit the filename if the \s-1PCH\s0 file is available in a different
10466 location.  The filename may be absolute or it may be relative to \s-1GCC\s0's
10467 current directory.
10468 .IP "\fB\-x c\fR" 4
10469 .IX Item "-x c"
10470 .PD 0
10471 .IP "\fB\-x c++\fR" 4
10472 .IX Item "-x c++"
10473 .IP "\fB\-x objective-c\fR" 4
10474 .IX Item "-x objective-c"
10475 .IP "\fB\-x assembler-with-cpp\fR" 4
10476 .IX Item "-x assembler-with-cpp"
10477 .PD
10478 Specify the source language: C, \*(C+, Objective-C, or assembly.  This has
10479 nothing to do with standards conformance or extensions; it merely
10480 selects which base syntax to expect.  If you give none of these options,
10481 cpp will deduce the language from the extension of the source file:
10482 \&\fB.c\fR, \fB.cc\fR, \fB.m\fR, or \fB.S\fR.  Some other common
10483 extensions for \*(C+ and assembly are also recognized.  If cpp does not
10484 recognize the extension, it will treat the file as C; this is the most
10485 generic mode.
10486 .Sp
10487 \&\fINote:\fR Previous versions of cpp accepted a \fB\-lang\fR option
10488 which selected both the language and the standards conformance level.
10489 This option has been removed, because it conflicts with the \fB\-l\fR
10490 option.
10491 .IP "\fB\-std=\fR\fIstandard\fR" 4
10492 .IX Item "-std=standard"
10493 .PD 0
10494 .IP "\fB\-ansi\fR" 4
10495 .IX Item "-ansi"
10496 .PD
10497 Specify the standard to which the code should conform.  Currently \s-1CPP\s0
10498 knows about C and \*(C+ standards; others may be added in the future.
10499 .Sp
10500 \&\fIstandard\fR
10501 may be one of:
10502 .RS 4
10503 .ie n .IP """c90""" 4
10504 .el .IP "\f(CWc90\fR" 4
10505 .IX Item "c90"
10506 .PD 0
10507 .ie n .IP """c89""" 4
10508 .el .IP "\f(CWc89\fR" 4
10509 .IX Item "c89"
10510 .ie n .IP """iso9899:1990""" 4
10511 .el .IP "\f(CWiso9899:1990\fR" 4
10512 .IX Item "iso9899:1990"
10513 .PD
10514 The \s-1ISO C\s0 standard from 1990.  \fBc90\fR is the customary shorthand for
10515 this version of the standard.
10516 .Sp
10517 The \fB\-ansi\fR option is equivalent to \fB\-std=c90\fR.
10518 .ie n .IP """iso9899:199409""" 4
10519 .el .IP "\f(CWiso9899:199409\fR" 4
10520 .IX Item "iso9899:199409"
10521 The 1990 C standard, as amended in 1994.
10522 .ie n .IP """iso9899:1999""" 4
10523 .el .IP "\f(CWiso9899:1999\fR" 4
10524 .IX Item "iso9899:1999"
10525 .PD 0
10526 .ie n .IP """c99""" 4
10527 .el .IP "\f(CWc99\fR" 4
10528 .IX Item "c99"
10529 .ie n .IP """iso9899:199x""" 4
10530 .el .IP "\f(CWiso9899:199x\fR" 4
10531 .IX Item "iso9899:199x"
10532 .ie n .IP """c9x""" 4
10533 .el .IP "\f(CWc9x\fR" 4
10534 .IX Item "c9x"
10535 .PD
10536 The revised \s-1ISO C\s0 standard, published in December 1999.  Before
10537 publication, this was known as C9X.
10538 .ie n .IP """iso9899:2011""" 4
10539 .el .IP "\f(CWiso9899:2011\fR" 4
10540 .IX Item "iso9899:2011"
10541 .PD 0
10542 .ie n .IP """c11""" 4
10543 .el .IP "\f(CWc11\fR" 4
10544 .IX Item "c11"
10545 .ie n .IP """c1x""" 4
10546 .el .IP "\f(CWc1x\fR" 4
10547 .IX Item "c1x"
10548 .PD
10549 The revised \s-1ISO C\s0 standard, published in December 2011.  Before
10550 publication, this was known as C1X.
10551 .ie n .IP """gnu90""" 4
10552 .el .IP "\f(CWgnu90\fR" 4
10553 .IX Item "gnu90"
10554 .PD 0
10555 .ie n .IP """gnu89""" 4
10556 .el .IP "\f(CWgnu89\fR" 4
10557 .IX Item "gnu89"
10558 .PD
10559 The 1990 C standard plus \s-1GNU\s0 extensions.  This is the default.
10560 .ie n .IP """gnu99""" 4
10561 .el .IP "\f(CWgnu99\fR" 4
10562 .IX Item "gnu99"
10563 .PD 0
10564 .ie n .IP """gnu9x""" 4
10565 .el .IP "\f(CWgnu9x\fR" 4
10566 .IX Item "gnu9x"
10567 .PD
10568 The 1999 C standard plus \s-1GNU\s0 extensions.
10569 .ie n .IP """gnu11""" 4
10570 .el .IP "\f(CWgnu11\fR" 4
10571 .IX Item "gnu11"
10572 .PD 0
10573 .ie n .IP """gnu1x""" 4
10574 .el .IP "\f(CWgnu1x\fR" 4
10575 .IX Item "gnu1x"
10576 .PD
10577 The 2011 C standard plus \s-1GNU\s0 extensions.
10578 .ie n .IP """c++98""" 4
10579 .el .IP "\f(CWc++98\fR" 4
10580 .IX Item "c++98"
10581 The 1998 \s-1ISO \*(C+\s0 standard plus amendments.
10582 .ie n .IP """gnu++98""" 4
10583 .el .IP "\f(CWgnu++98\fR" 4
10584 .IX Item "gnu++98"
10585 The same as \fB\-std=c++98\fR plus \s-1GNU\s0 extensions.  This is the
10586 default for \*(C+ code.
10587 .RE
10588 .RS 4
10589 .RE
10590 .IP "\fB\-I\-\fR" 4
10591 .IX Item "-I-"
10592 Split the include path.  Any directories specified with \fB\-I\fR
10593 options before \fB\-I\-\fR are searched only for headers requested with
10594 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
10595 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR.  If additional directories are
10596 specified with \fB\-I\fR options after the \fB\-I\-\fR, those
10597 directories are searched for all \fB#include\fR directives.
10598 .Sp
10599 In addition, \fB\-I\-\fR inhibits the use of the directory of the current
10600 file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
10601 This option has been deprecated.
10602 .IP "\fB\-nostdinc\fR" 4
10603 .IX Item "-nostdinc"
10604 Do not search the standard system directories for header files.
10605 Only the directories you have specified with \fB\-I\fR options
10606 (and the directory of the current file, if appropriate) are searched.
10607 .IP "\fB\-nostdinc++\fR" 4
10608 .IX Item "-nostdinc++"
10609 Do not search for header files in the \*(C+\-specific standard directories,
10610 but do still search the other standard directories.  (This option is
10611 used when building the \*(C+ library.)
10612 .IP "\fB\-include\fR \fIfile\fR" 4
10613 .IX Item "-include file"
10614 Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
10615 line of the primary source file.  However, the first directory searched
10616 for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
10617 the directory containing the main source file.  If not found there, it
10618 is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
10619 chain as normal.
10620 .Sp
10621 If multiple \fB\-include\fR options are given, the files are included
10622 in the order they appear on the command line.
10623 .IP "\fB\-imacros\fR \fIfile\fR" 4
10624 .IX Item "-imacros file"
10625 Exactly like \fB\-include\fR, except that any output produced by
10626 scanning \fIfile\fR is thrown away.  Macros it defines remain defined.
10627 This allows you to acquire all the macros from a header without also
10628 processing its declarations.
10629 .Sp
10630 All files specified by \fB\-imacros\fR are processed before all files
10631 specified by \fB\-include\fR.
10632 .IP "\fB\-idirafter\fR \fIdir\fR" 4
10633 .IX Item "-idirafter dir"
10634 Search \fIdir\fR for header files, but do it \fIafter\fR all
10635 directories specified with \fB\-I\fR and the standard system directories
10636 have been exhausted.  \fIdir\fR is treated as a system include directory.
10637 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
10638 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
10639 .IP "\fB\-iprefix\fR \fIprefix\fR" 4
10640 .IX Item "-iprefix prefix"
10641 Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
10642 options.  If the prefix represents a directory, you should include the
10643 final \fB/\fR.
10644 .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
10645 .IX Item "-iwithprefix dir"
10646 .PD 0
10647 .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
10648 .IX Item "-iwithprefixbefore dir"
10649 .PD
10650 Append \fIdir\fR to the prefix specified previously with
10651 \&\fB\-iprefix\fR, and add the resulting directory to the include search
10652 path.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
10653 would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
10654 .IP "\fB\-isysroot\fR \fIdir\fR" 4
10655 .IX Item "-isysroot dir"
10656 This option is like the \fB\-\-sysroot\fR option, but applies only to
10657 header files (except for Darwin targets, where it applies to both header
10658 files and libraries).  See the \fB\-\-sysroot\fR option for more
10659 information.
10660 .IP "\fB\-imultilib\fR \fIdir\fR" 4
10661 .IX Item "-imultilib dir"
10662 Use \fIdir\fR as a subdirectory of the directory containing
10663 target-specific \*(C+ headers.
10664 .IP "\fB\-isystem\fR \fIdir\fR" 4
10665 .IX Item "-isystem dir"
10666 Search \fIdir\fR for header files, after all directories specified by
10667 \&\fB\-I\fR but before the standard system directories.  Mark it
10668 as a system directory, so that it gets the same special treatment as
10669 is applied to the standard system directories.
10670 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
10671 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
10672 .IP "\fB\-iquote\fR \fIdir\fR" 4
10673 .IX Item "-iquote dir"
10674 Search \fIdir\fR only for header files requested with
10675 \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
10676 \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR, before all directories specified by
10677 \&\fB\-I\fR and before the standard system directories.
10678 If \fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced
10679 by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
10680 .IP "\fB\-fdirectives\-only\fR" 4
10681 .IX Item "-fdirectives-only"
10682 When preprocessing, handle directives, but do not expand macros.
10683 .Sp
10684 The option's behavior depends on the \fB\-E\fR and \fB\-fpreprocessed\fR
10685 options.
10686 .Sp
10687 With \fB\-E\fR, preprocessing is limited to the handling of directives
10688 such as \f(CW\*(C`#define\*(C'\fR, \f(CW\*(C`#ifdef\*(C'\fR, and \f(CW\*(C`#error\*(C'\fR.  Other
10689 preprocessor operations, such as macro expansion and trigraph
10690 conversion are not performed.  In addition, the \fB\-dD\fR option is
10691 implicitly enabled.
10692 .Sp
10693 With \fB\-fpreprocessed\fR, predefinition of command line and most
10694 builtin macros is disabled.  Macros such as \f(CW\*(C`_\|_LINE_\|_\*(C'\fR, which are
10695 contextually dependent, are handled normally.  This enables compilation of
10696 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
10697 .Sp
10698 With both \fB\-E\fR and \fB\-fpreprocessed\fR, the rules for
10699 \&\fB\-fpreprocessed\fR take precedence.  This enables full preprocessing of
10700 files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
10701 .IP "\fB\-fdollars\-in\-identifiers\fR" 4
10702 .IX Item "-fdollars-in-identifiers"
10703 Accept \fB$\fR in identifiers.
10704 .IP "\fB\-fextended\-identifiers\fR" 4
10705 .IX Item "-fextended-identifiers"
10706 Accept universal character names in identifiers.  This option is
10707 enabled by default for C99 (and later C standard versions) and \*(C+.
10708 .IP "\fB\-fno\-canonical\-system\-headers\fR" 4
10709 .IX Item "-fno-canonical-system-headers"
10710 When preprocessing, do not shorten system header paths with canonicalization.
10711 .IP "\fB\-fpreprocessed\fR" 4
10712 .IX Item "-fpreprocessed"
10713 Indicate to the preprocessor that the input file has already been
10714 preprocessed.  This suppresses things like macro expansion, trigraph
10715 conversion, escaped newline splicing, and processing of most directives.
10716 The preprocessor still recognizes and removes comments, so that you can
10717 pass a file preprocessed with \fB\-C\fR to the compiler without
10718 problems.  In this mode the integrated preprocessor is little more than
10719 a tokenizer for the front ends.
10720 .Sp
10721 \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
10722 extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are the
10723 extensions that \s-1GCC\s0 uses for preprocessed files created by
10724 \&\fB\-save\-temps\fR.
10725 .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
10726 .IX Item "-ftabstop=width"
10727 Set the distance between tab stops.  This helps the preprocessor report
10728 correct column numbers in warnings or errors, even if tabs appear on the
10729 line.  If the value is less than 1 or greater than 100, the option is
10730 ignored.  The default is 8.
10731 .IP "\fB\-fdebug\-cpp\fR" 4
10732 .IX Item "-fdebug-cpp"
10733 This option is only useful for debugging \s-1GCC. \s0 When used with
10734 \&\fB\-E\fR, dumps debugging information about location maps.  Every
10735 token in the output is preceded by the dump of the map its location
10736 belongs to.  The dump of the map holding the location of a token would
10737 be:
10738 .Sp
10739 .Vb 1
10740 \&        {"P":F</file/path>;"F":F</includer/path>;"L":<line_num>;"C":<col_num>;"S":<system_header_p>;"M":<map_address>;"E":<macro_expansion_p>,"loc":<location>}
10741 .Ve
10742 .Sp
10743 When used without \fB\-E\fR, this option has no effect.
10744 .IP "\fB\-ftrack\-macro\-expansion\fR[\fB=\fR\fIlevel\fR]" 4
10745 .IX Item "-ftrack-macro-expansion[=level]"
10746 Track locations of tokens across macro expansions. This allows the
10747 compiler to emit diagnostic about the current macro expansion stack
10748 when a compilation error occurs in a macro expansion. Using this
10749 option makes the preprocessor and the compiler consume more
10750 memory. The \fIlevel\fR parameter can be used to choose the level of
10751 precision of token location tracking thus decreasing the memory
10752 consumption if necessary. Value \fB0\fR of \fIlevel\fR de-activates
10753 this option just as if no \fB\-ftrack\-macro\-expansion\fR was present
10754 on the command line. Value \fB1\fR tracks tokens locations in a
10755 degraded mode for the sake of minimal memory overhead. In this mode
10756 all tokens resulting from the expansion of an argument of a
10757 function-like macro have the same location. Value \fB2\fR tracks
10758 tokens locations completely. This value is the most memory hungry.
10759 When this option is given no argument, the default parameter value is
10760 \&\fB2\fR.
10761 .Sp
10762 Note that \f(CW\*(C`\-ftrack\-macro\-expansion=2\*(C'\fR is activated by default.
10763 .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
10764 .IX Item "-fexec-charset=charset"
10765 Set the execution character set, used for string and character
10766 constants.  The default is \s-1UTF\-8.  \s0\fIcharset\fR can be any encoding
10767 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
10768 .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
10769 .IX Item "-fwide-exec-charset=charset"
10770 Set the wide execution character set, used for wide string and
10771 character constants.  The default is \s-1UTF\-32\s0 or \s-1UTF\-16,\s0 whichever
10772 corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR.  As with
10773 \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
10774 by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
10775 problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
10776 .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
10777 .IX Item "-finput-charset=charset"
10778 Set the input character set, used for translation from the character
10779 set of the input file to the source character set used by \s-1GCC. \s0 If the
10780 locale does not specify, or \s-1GCC\s0 cannot get this information from the
10781 locale, the default is \s-1UTF\-8. \s0 This can be overridden by either the locale
10782 or this command-line option.  Currently the command-line option takes
10783 precedence if there's a conflict.  \fIcharset\fR can be any encoding
10784 supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
10785 .IP "\fB\-fworking\-directory\fR" 4
10786 .IX Item "-fworking-directory"
10787 Enable generation of linemarkers in the preprocessor output that will
10788 let the compiler know the current working directory at the time of
10789 preprocessing.  When this option is enabled, the preprocessor will
10790 emit, after the initial linemarker, a second linemarker with the
10791 current working directory followed by two slashes.  \s-1GCC\s0 will use this
10792 directory, when it's present in the preprocessed input, as the
10793 directory emitted as the current working directory in some debugging
10794 information formats.  This option is implicitly enabled if debugging
10795 information is enabled, but this can be inhibited with the negated
10796 form \fB\-fno\-working\-directory\fR.  If the \fB\-P\fR flag is
10797 present in the command line, this option has no effect, since no
10798 \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
10799 .IP "\fB\-fno\-show\-column\fR" 4
10800 .IX Item "-fno-show-column"
10801 Do not print column numbers in diagnostics.  This may be necessary if
10802 diagnostics are being scanned by a program that does not understand the
10803 column numbers, such as \fBdejagnu\fR.
10804 .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
10805 .IX Item "-A predicate=answer"
10806 Make an assertion with the predicate \fIpredicate\fR and answer
10807 \&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR
10808 \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
10809 it does not use shell special characters.
10810 .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
10811 .IX Item "-A -predicate=answer"
10812 Cancel an assertion with the predicate \fIpredicate\fR and answer
10813 \&\fIanswer\fR.
10814 .IP "\fB\-dCHARS\fR" 4
10815 .IX Item "-dCHARS"
10816 \&\fI\s-1CHARS\s0\fR is a sequence of one or more of the following characters,
10817 and must not be preceded by a space.  Other characters are interpreted
10818 by the compiler proper, or reserved for future versions of \s-1GCC,\s0 and so
10819 are silently ignored.  If you specify characters whose behavior
10820 conflicts, the result is undefined.
10821 .RS 4
10822 .IP "\fBM\fR" 4
10823 .IX Item "M"
10824 Instead of the normal output, generate a list of \fB#define\fR
10825 directives for all the macros defined during the execution of the
10826 preprocessor, including predefined macros.  This gives you a way of
10827 finding out what is predefined in your version of the preprocessor.
10828 Assuming you have no file \fIfoo.h\fR, the command
10829 .Sp
10830 .Vb 1
10831 \&        touch foo.h; cpp \-dM foo.h
10832 .Ve
10833 .Sp
10834 will show all the predefined macros.
10835 .Sp
10836 If you use \fB\-dM\fR without the \fB\-E\fR option, \fB\-dM\fR is
10837 interpreted as a synonym for \fB\-fdump\-rtl\-mach\fR.
10838 .IP "\fBD\fR" 4
10839 .IX Item "D"
10840 Like \fBM\fR except in two respects: it does \fInot\fR include the
10841 predefined macros, and it outputs \fIboth\fR the \fB#define\fR
10842 directives and the result of preprocessing.  Both kinds of output go to
10843 the standard output file.
10844 .IP "\fBN\fR" 4
10845 .IX Item "N"
10846 Like \fBD\fR, but emit only the macro names, not their expansions.
10847 .IP "\fBI\fR" 4
10848 .IX Item "I"
10849 Output \fB#include\fR directives in addition to the result of
10850 preprocessing.
10851 .IP "\fBU\fR" 4
10852 .IX Item "U"
10853 Like \fBD\fR except that only macros that are expanded, or whose
10854 definedness is tested in preprocessor directives, are output; the
10855 output is delayed until the use or test of the macro; and
10856 \&\fB#undef\fR directives are also output for macros tested but
10857 undefined at the time.
10858 .RE
10859 .RS 4
10860 .RE
10861 .IP "\fB\-P\fR" 4
10862 .IX Item "-P"
10863 Inhibit generation of linemarkers in the output from the preprocessor.
10864 This might be useful when running the preprocessor on something that is
10865 not C code, and will be sent to a program which might be confused by the
10866 linemarkers.
10867 .IP "\fB\-C\fR" 4
10868 .IX Item "-C"
10869 Do not discard comments.  All comments are passed through to the output
10870 file, except for comments in processed directives, which are deleted
10871 along with the directive.
10872 .Sp
10873 You should be prepared for side effects when using \fB\-C\fR; it
10874 causes the preprocessor to treat comments as tokens in their own right.
10875 For example, comments appearing at the start of what would be a
10876 directive line have the effect of turning that line into an ordinary
10877 source line, since the first token on the line is no longer a \fB#\fR.
10878 .IP "\fB\-CC\fR" 4
10879 .IX Item "-CC"
10880 Do not discard comments, including during macro expansion.  This is
10881 like \fB\-C\fR, except that comments contained within macros are
10882 also passed through to the output file where the macro is expanded.
10883 .Sp
10884 In addition to the side-effects of the \fB\-C\fR option, the
10885 \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
10886 to be converted to C\-style comments.  This is to prevent later use
10887 of that macro from inadvertently commenting out the remainder of
10888 the source line.
10889 .Sp
10890 The \fB\-CC\fR option is generally used to support lint comments.
10891 .IP "\fB\-traditional\-cpp\fR" 4
10892 .IX Item "-traditional-cpp"
10893 Try to imitate the behavior of old-fashioned C preprocessors, as
10894 opposed to \s-1ISO C\s0 preprocessors.
10895 .IP "\fB\-trigraphs\fR" 4
10896 .IX Item "-trigraphs"
10897 Process trigraph sequences.
10898 These are three-character sequences, all starting with \fB??\fR, that
10899 are defined by \s-1ISO C\s0 to stand for single characters.  For example,
10900 \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
10901 constant for a newline.  By default, \s-1GCC\s0 ignores trigraphs, but in
10902 standard-conforming modes it converts them.  See the \fB\-std\fR and
10903 \&\fB\-ansi\fR options.
10904 .Sp
10905 The nine trigraphs and their replacements are
10906 .Sp
10907 .Vb 2
10908 \&        Trigraph:       ??(  ??)  ??<  ??>  ??=  ??/  ??\*(Aq  ??!  ??\-
10909 \&        Replacement:      [    ]    {    }    #    \e    ^    |    ~
10910 .Ve
10911 .IP "\fB\-remap\fR" 4
10912 .IX Item "-remap"
10913 Enable special code to work around file systems which only permit very
10914 short file names, such as MS-DOS.
10915 .IP "\fB\-\-help\fR" 4
10916 .IX Item "--help"
10917 .PD 0
10918 .IP "\fB\-\-target\-help\fR" 4
10919 .IX Item "--target-help"
10920 .PD
10921 Print text describing all the command-line options instead of
10922 preprocessing anything.
10923 .IP "\fB\-v\fR" 4
10924 .IX Item "-v"
10925 Verbose mode.  Print out \s-1GNU CPP\s0's version number at the beginning of
10926 execution, and report the final form of the include path.
10927 .IP "\fB\-H\fR" 4
10928 .IX Item "-H"
10929 Print the name of each header file used, in addition to other normal
10930 activities.  Each name is indented to show how deep in the
10931 \&\fB#include\fR stack it is.  Precompiled header files are also
10932 printed, even if they are found to be invalid; an invalid precompiled
10933 header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
10934 .IP "\fB\-version\fR" 4
10935 .IX Item "-version"
10936 .PD 0
10937 .IP "\fB\-\-version\fR" 4
10938 .IX Item "--version"
10939 .PD
10940 Print out \s-1GNU CPP\s0's version number.  With one dash, proceed to
10941 preprocess as normal.  With two dashes, exit immediately.
10942 .SS "Passing Options to the Assembler"
10943 .IX Subsection "Passing Options to the Assembler"
10944 You can pass options to the assembler.
10945 .IP "\fB\-Wa,\fR\fIoption\fR" 4
10946 .IX Item "-Wa,option"
10947 Pass \fIoption\fR as an option to the assembler.  If \fIoption\fR
10948 contains commas, it is split into multiple options at the commas.
10949 .IP "\fB\-Xassembler\fR \fIoption\fR" 4
10950 .IX Item "-Xassembler option"
10951 Pass \fIoption\fR as an option to the assembler.  You can use this to
10952 supply system-specific assembler options that \s-1GCC\s0 does not
10953 recognize.
10954 .Sp
10955 If you want to pass an option that takes an argument, you must use
10956 \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
10957 .SS "Options for Linking"
10958 .IX Subsection "Options for Linking"
10959 These options come into play when the compiler links object files into
10960 an executable output file.  They are meaningless if the compiler is
10961 not doing a link step.
10962 .IP "\fIobject-file-name\fR" 4
10963 .IX Item "object-file-name"
10964 A file name that does not end in a special recognized suffix is
10965 considered to name an object file or library.  (Object files are
10966 distinguished from libraries by the linker according to the file
10967 contents.)  If linking is done, these object files are used as input
10968 to the linker.
10969 .IP "\fB\-c\fR" 4
10970 .IX Item "-c"
10971 .PD 0
10972 .IP "\fB\-S\fR" 4
10973 .IX Item "-S"
10974 .IP "\fB\-E\fR" 4
10975 .IX Item "-E"
10976 .PD
10977 If any of these options is used, then the linker is not run, and
10978 object file names should not be used as arguments.
10979 .IP "\fB\-fuse\-ld=bfd\fR" 4
10980 .IX Item "-fuse-ld=bfd"
10981 Use the \fBbfd\fR linker instead of the default linker.
10982 .IP "\fB\-fuse\-ld=gold\fR" 4
10983 .IX Item "-fuse-ld=gold"
10984 Use the \fBgold\fR linker instead of the default linker.
10985 .IP "\fB\-l\fR\fIlibrary\fR" 4
10986 .IX Item "-llibrary"
10987 .PD 0
10988 .IP "\fB\-l\fR \fIlibrary\fR" 4
10989 .IX Item "-l library"
10990 .PD
10991 Search the library named \fIlibrary\fR when linking.  (The second
10992 alternative with the library as a separate argument is only for
10993 \&\s-1POSIX\s0 compliance and is not recommended.)
10994 .Sp
10995 It makes a difference where in the command you write this option; the
10996 linker searches and processes libraries and object files in the order they
10997 are specified.  Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
10998 after file \fIfoo.o\fR but before \fIbar.o\fR.  If \fIbar.o\fR refers
10999 to functions in \fBz\fR, those functions may not be loaded.
11000 .Sp
11001 The linker searches a standard list of directories for the library,
11002 which is actually a file named \fIlib\fIlibrary\fI.a\fR.  The linker
11003 then uses this file as if it had been specified precisely by name.
11004 .Sp
11005 The directories searched include several standard system directories
11006 plus any that you specify with \fB\-L\fR.
11007 .Sp
11008 Normally the files found this way are library files\-\-\-archive files
11009 whose members are object files.  The linker handles an archive file by
11010 scanning through it for members which define symbols that have so far
11011 been referenced but not defined.  But if the file that is found is an
11012 ordinary object file, it is linked in the usual fashion.  The only
11013 difference between using an \fB\-l\fR option and specifying a file name
11014 is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
11015 and searches several directories.
11016 .IP "\fB\-lobjc\fR" 4
11017 .IX Item "-lobjc"
11018 You need this special case of the \fB\-l\fR option in order to
11019 link an Objective-C or Objective\-\*(C+ program.
11020 .IP "\fB\-nostartfiles\fR" 4
11021 .IX Item "-nostartfiles"
11022 Do not use the standard system startup files when linking.
11023 The standard system libraries are used normally, unless \fB\-nostdlib\fR
11024 or \fB\-nodefaultlibs\fR is used.
11025 .IP "\fB\-nodefaultlibs\fR" 4
11026 .IX Item "-nodefaultlibs"
11027 Do not use the standard system libraries when linking.
11028 Only the libraries you specify are passed to the linker, and options
11029 specifying linkage of the system libraries, such as \fB\-static\-libgcc\fR
11030 or \fB\-shared\-libgcc\fR, are ignored.  
11031 The standard startup files are used normally, unless \fB\-nostartfiles\fR
11032 is used.
11033 .Sp
11034 The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
11035 \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
11036 These entries are usually resolved by entries in
11037 libc.  These entry points should be supplied through some other
11038 mechanism when this option is specified.
11039 .IP "\fB\-nostdlib\fR" 4
11040 .IX Item "-nostdlib"
11041 Do not use the standard system startup files or libraries when linking.
11042 No startup files and only the libraries you specify are passed to
11043 the linker, and options specifying linkage of the system libraries, such as
11044 \&\fB\-static\-libgcc\fR or \fB\-shared\-libgcc\fR, are ignored.
11045 .Sp
11046 The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
11047 \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
11048 These entries are usually resolved by entries in
11049 libc.  These entry points should be supplied through some other
11050 mechanism when this option is specified.
11051 .Sp
11052 One of the standard libraries bypassed by \fB\-nostdlib\fR and
11053 \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
11054 which \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
11055 needs for some languages.
11056 .Sp
11057 In most cases, you need \fIlibgcc.a\fR even when you want to avoid
11058 other standard libraries.  In other words, when you specify \fB\-nostdlib\fR
11059 or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
11060 This ensures that you have no unresolved references to internal \s-1GCC\s0
11061 library subroutines.
11062 (An example of such an internal subroutine is \f(CW\*(C`_\|_main\*(C'\fR, used to ensure \*(C+
11063 constructors are called.)
11064 .IP "\fB\-pie\fR" 4
11065 .IX Item "-pie"
11066 Produce a position independent executable on targets that support it.
11067 For predictable results, you must also specify the same set of options
11068 used for compilation (\fB\-fpie\fR, \fB\-fPIE\fR,
11069 or model suboptions) when you specify this linker option.
11070 .IP "\fB\-rdynamic\fR" 4
11071 .IX Item "-rdynamic"
11072 Pass the flag \fB\-export\-dynamic\fR to the \s-1ELF\s0 linker, on targets
11073 that support it. This instructs the linker to add all symbols, not
11074 only used ones, to the dynamic symbol table. This option is needed
11075 for some uses of \f(CW\*(C`dlopen\*(C'\fR or to allow obtaining backtraces
11076 from within a program.
11077 .IP "\fB\-s\fR" 4
11078 .IX Item "-s"
11079 Remove all symbol table and relocation information from the executable.
11080 .IP "\fB\-static\fR" 4
11081 .IX Item "-static"
11082 On systems that support dynamic linking, this prevents linking with the shared
11083 libraries.  On other systems, this option has no effect.
11084 .IP "\fB\-shared\fR" 4
11085 .IX Item "-shared"
11086 Produce a shared object which can then be linked with other objects to
11087 form an executable.  Not all systems support this option.  For predictable
11088 results, you must also specify the same set of options used for compilation
11089 (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions) when
11090 you specify this linker option.[1]
11091 .IP "\fB\-shared\-libgcc\fR" 4
11092 .IX Item "-shared-libgcc"
11093 .PD 0
11094 .IP "\fB\-static\-libgcc\fR" 4
11095 .IX Item "-static-libgcc"
11096 .PD
11097 On systems that provide \fIlibgcc\fR as a shared library, these options
11098 force the use of either the shared or static version, respectively.
11099 If no shared version of \fIlibgcc\fR was built when the compiler was
11100 configured, these options have no effect.
11101 .Sp
11102 There are several situations in which an application should use the
11103 shared \fIlibgcc\fR instead of the static version.  The most common
11104 of these is when the application wishes to throw and catch exceptions
11105 across different shared libraries.  In that case, each of the libraries
11106 as well as the application itself should use the shared \fIlibgcc\fR.
11107 .Sp
11108 Therefore, the G++ and \s-1GCJ\s0 drivers automatically add
11109 \&\fB\-shared\-libgcc\fR whenever you build a shared library or a main
11110 executable, because \*(C+ and Java programs typically use exceptions, so
11111 this is the right thing to do.
11112 .Sp
11113 If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
11114 find that they are not always linked with the shared \fIlibgcc\fR.
11115 If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
11116 or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
11117 it links the shared version of \fIlibgcc\fR into shared libraries
11118 by default.  Otherwise, it takes advantage of the linker and optimizes
11119 away the linking with the shared version of \fIlibgcc\fR, linking with
11120 the static version of libgcc by default.  This allows exceptions to
11121 propagate through such shared libraries, without incurring relocation
11122 costs at library load time.
11123 .Sp
11124 However, if a library or main executable is supposed to throw or catch
11125 exceptions, you must link it using the G++ or \s-1GCJ\s0 driver, as appropriate
11126 for the languages used in the program, or using the option
11127 \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
11128 \&\fIlibgcc\fR.
11129 .IP "\fB\-static\-libasan\fR" 4
11130 .IX Item "-static-libasan"
11131 When the \fB\-fsanitize=address\fR option is used to link a program,
11132 the \s-1GCC\s0 driver automatically links against \fBlibasan\fR.  If
11133 \&\fIlibasan\fR is available as a shared library, and the \fB\-static\fR
11134 option is not used, then this links against the shared version of
11135 \&\fIlibasan\fR.  The \fB\-static\-libasan\fR option directs the \s-1GCC\s0
11136 driver to link \fIlibasan\fR statically, without necessarily linking
11137 other libraries statically.
11138 .IP "\fB\-static\-libtsan\fR" 4
11139 .IX Item "-static-libtsan"
11140 When the \fB\-fsanitize=thread\fR option is used to link a program,
11141 the \s-1GCC\s0 driver automatically links against \fBlibtsan\fR.  If
11142 \&\fIlibtsan\fR is available as a shared library, and the \fB\-static\fR
11143 option is not used, then this links against the shared version of
11144 \&\fIlibtsan\fR.  The \fB\-static\-libtsan\fR option directs the \s-1GCC\s0
11145 driver to link \fIlibtsan\fR statically, without necessarily linking
11146 other libraries statically.
11147 .IP "\fB\-static\-liblsan\fR" 4
11148 .IX Item "-static-liblsan"
11149 When the \fB\-fsanitize=leak\fR option is used to link a program,
11150 the \s-1GCC\s0 driver automatically links against \fBliblsan\fR.  If
11151 \&\fIliblsan\fR is available as a shared library, and the \fB\-static\fR
11152 option is not used, then this links against the shared version of
11153 \&\fIliblsan\fR.  The \fB\-static\-liblsan\fR option directs the \s-1GCC\s0
11154 driver to link \fIliblsan\fR statically, without necessarily linking
11155 other libraries statically.
11156 .IP "\fB\-static\-libubsan\fR" 4
11157 .IX Item "-static-libubsan"
11158 When the \fB\-fsanitize=undefined\fR option is used to link a program,
11159 the \s-1GCC\s0 driver automatically links against \fBlibubsan\fR.  If
11160 \&\fIlibubsan\fR is available as a shared library, and the \fB\-static\fR
11161 option is not used, then this links against the shared version of
11162 \&\fIlibubsan\fR.  The \fB\-static\-libubsan\fR option directs the \s-1GCC\s0
11163 driver to link \fIlibubsan\fR statically, without necessarily linking
11164 other libraries statically.
11165 .IP "\fB\-static\-libmpx\fR" 4
11166 .IX Item "-static-libmpx"
11167 When the \fB\-fcheck\-pointer bounds\fR and \fB\-mmpx\fR options are
11168 used to link a program, the \s-1GCC\s0 driver automatically links against
11169 \&\fIlibmpx\fR.  If \fIlibmpx\fR is available as a shared library,
11170 and the \fB\-static\fR option is not used, then this links against
11171 the shared version of \fIlibmpx\fR.  The \fB\-static\-libmpx\fR
11172 option directs the \s-1GCC\s0 driver to link \fIlibmpx\fR statically,
11173 without necessarily linking other libraries statically.
11174 .IP "\fB\-static\-libmpxwrappers\fR" 4
11175 .IX Item "-static-libmpxwrappers"
11176 When the \fB\-fcheck\-pointer bounds\fR and \fB\-mmpx\fR options are used
11177 to link a program without also using \fB\-fno\-chkp\-use\-wrappers\fR, the
11178 \&\s-1GCC\s0 driver automatically links against \fIlibmpxwrappers\fR.  If
11179 \&\fIlibmpxwrappers\fR is available as a shared library, and the
11180 \&\fB\-static\fR option is not used, then this links against the shared
11181 version of \fIlibmpxwrappers\fR.  The \fB\-static\-libmpxwrappers\fR
11182 option directs the \s-1GCC\s0 driver to link \fIlibmpxwrappers\fR statically,
11183 without necessarily linking other libraries statically.
11184 .IP "\fB\-static\-libstdc++\fR" 4
11185 .IX Item "-static-libstdc++"
11186 When the \fBg++\fR program is used to link a \*(C+ program, it
11187 normally automatically links against \fBlibstdc++\fR.  If
11188 \&\fIlibstdc++\fR is available as a shared library, and the
11189 \&\fB\-static\fR option is not used, then this links against the
11190 shared version of \fIlibstdc++\fR.  That is normally fine.  However, it
11191 is sometimes useful to freeze the version of \fIlibstdc++\fR used by
11192 the program without going all the way to a fully static link.  The
11193 \&\fB\-static\-libstdc++\fR option directs the \fBg++\fR driver to
11194 link \fIlibstdc++\fR statically, without necessarily linking other
11195 libraries statically.
11196 .IP "\fB\-symbolic\fR" 4
11197 .IX Item "-symbolic"
11198 Bind references to global symbols when building a shared object.  Warn
11199 about any unresolved references (unless overridden by the link editor
11200 option \fB\-Xlinker \-z \-Xlinker defs\fR).  Only a few systems support
11201 this option.
11202 .IP "\fB\-T\fR \fIscript\fR" 4
11203 .IX Item "-T script"
11204 Use \fIscript\fR as the linker script.  This option is supported by most
11205 systems using the \s-1GNU\s0 linker.  On some targets, such as bare-board
11206 targets without an operating system, the \fB\-T\fR option may be required
11207 when linking to avoid references to undefined symbols.
11208 .IP "\fB\-Xlinker\fR \fIoption\fR" 4
11209 .IX Item "-Xlinker option"
11210 Pass \fIoption\fR as an option to the linker.  You can use this to
11211 supply system-specific linker options that \s-1GCC\s0 does not recognize.
11212 .Sp
11213 If you want to pass an option that takes a separate argument, you must use
11214 \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
11215 For example, to pass \fB\-assert definitions\fR, you must write
11216 \&\fB\-Xlinker \-assert \-Xlinker definitions\fR.  It does not work to write
11217 \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
11218 string as a single argument, which is not what the linker expects.
11219 .Sp
11220 When using the \s-1GNU\s0 linker, it is usually more convenient to pass
11221 arguments to linker options using the \fIoption\fR\fB=\fR\fIvalue\fR
11222 syntax than as separate arguments.  For example, you can specify
11223 \&\fB\-Xlinker \-Map=output.map\fR rather than
11224 \&\fB\-Xlinker \-Map \-Xlinker output.map\fR.  Other linkers may not support
11225 this syntax for command-line options.
11226 .IP "\fB\-Wl,\fR\fIoption\fR" 4
11227 .IX Item "-Wl,option"
11228 Pass \fIoption\fR as an option to the linker.  If \fIoption\fR contains
11229 commas, it is split into multiple options at the commas.  You can use this
11230 syntax to pass an argument to the option.
11231 For example, \fB\-Wl,\-Map,output.map\fR passes \fB\-Map output.map\fR to the
11232 linker.  When using the \s-1GNU\s0 linker, you can also get the same effect with
11233 \&\fB\-Wl,\-Map=output.map\fR.
11234 .IP "\fB\-u\fR \fIsymbol\fR" 4
11235 .IX Item "-u symbol"
11236 Pretend the symbol \fIsymbol\fR is undefined, to force linking of
11237 library modules to define it.  You can use \fB\-u\fR multiple times with
11238 different symbols to force loading of additional library modules.
11239 .IP "\fB\-z\fR \fIkeyword\fR" 4
11240 .IX Item "-z keyword"
11241 \&\fB\-z\fR is passed directly on to the linker along with the keyword
11242 \&\fIkeyword\fR. See the section in the documentation of your linker for
11243 permitted values and their meanings.
11244 .SS "Options for Directory Search"
11245 .IX Subsection "Options for Directory Search"
11246 These options specify directories to search for header files, for
11247 libraries and for parts of the compiler:
11248 .IP "\fB\-I\fR\fIdir\fR" 4
11249 .IX Item "-Idir"
11250 Add the directory \fIdir\fR to the head of the list of directories to be
11251 searched for header files.  This can be used to override a system header
11252 file, substituting your own version, since these directories are
11253 searched before the system header file directories.  However, you should
11254 not use this option to add directories that contain vendor-supplied
11255 system header files (use \fB\-isystem\fR for that).  If you use more than
11256 one \fB\-I\fR option, the directories are scanned in left-to-right
11257 order; the standard system directories come after.
11258 .Sp
11259 If a standard system include directory, or a directory specified with
11260 \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
11261 option is ignored.  The directory is still searched but as a
11262 system directory at its normal position in the system include chain.
11263 This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
11264 the ordering for the \f(CW\*(C`include_next\*(C'\fR directive are not inadvertently changed.
11265 If you really need to change the search order for system directories,
11266 use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
11267 .IP "\fB\-iplugindir=\fR\fIdir\fR" 4
11268 .IX Item "-iplugindir=dir"
11269 Set the directory to search for plugins that are passed
11270 by \fB\-fplugin=\fR\fIname\fR instead of
11271 \&\fB\-fplugin=\fR\fIpath\fR\fB/\fR\fIname\fR\fB.so\fR.  This option is not meant
11272 to be used by the user, but only passed by the driver.
11273 .IP "\fB\-iquote\fR\fIdir\fR" 4
11274 .IX Item "-iquotedir"
11275 Add the directory \fIdir\fR to the head of the list of directories to
11276 be searched for header files only for the case of \f(CW\*(C`#include
11277 "\f(CIfile\f(CW"\*(C'\fR; they are not searched for \f(CW\*(C`#include <\f(CIfile\f(CW>\*(C'\fR,
11278 otherwise just like \fB\-I\fR.
11279 .IP "\fB\-L\fR\fIdir\fR" 4
11280 .IX Item "-Ldir"
11281 Add directory \fIdir\fR to the list of directories to be searched
11282 for \fB\-l\fR.
11283 .IP "\fB\-B\fR\fIprefix\fR" 4
11284 .IX Item "-Bprefix"
11285 This option specifies where to find the executables, libraries,
11286 include files, and data files of the compiler itself.
11287 .Sp
11288 The compiler driver program runs one or more of the subprograms
11289 \&\fBcpp\fR, \fBcc1\fR, \fBas\fR and \fBld\fR.  It tries
11290 \&\fIprefix\fR as a prefix for each program it tries to run, both with and
11291 without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR.
11292 .Sp
11293 For each subprogram to be run, the compiler driver first tries the
11294 \&\fB\-B\fR prefix, if any.  If that name is not found, or if \fB\-B\fR
11295 is not specified, the driver tries two standard prefixes, 
11296 \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR.  If neither of
11297 those results in a file name that is found, the unmodified program
11298 name is searched for using the directories specified in your
11299 \&\fB\s-1PATH\s0\fR environment variable.
11300 .Sp
11301 The compiler checks to see if the path provided by \fB\-B\fR
11302 refers to a directory, and if necessary it adds a directory
11303 separator character at the end of the path.
11304 .Sp
11305 \&\fB\-B\fR prefixes that effectively specify directory names also apply
11306 to libraries in the linker, because the compiler translates these
11307 options into \fB\-L\fR options for the linker.  They also apply to
11308 include files in the preprocessor, because the compiler translates these
11309 options into \fB\-isystem\fR options for the preprocessor.  In this case,
11310 the compiler appends \fBinclude\fR to the prefix.
11311 .Sp
11312 The runtime support file \fIlibgcc.a\fR can also be searched for using
11313 the \fB\-B\fR prefix, if needed.  If it is not found there, the two
11314 standard prefixes above are tried, and that is all.  The file is left
11315 out of the link if it is not found by those means.
11316 .Sp
11317 Another way to specify a prefix much like the \fB\-B\fR prefix is to use
11318 the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.
11319 .Sp
11320 As a special kludge, if the path provided by \fB\-B\fR is
11321 \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
11322 9, then it is replaced by \fI[dir/]include\fR.  This is to help
11323 with boot-strapping the compiler.
11324 .IP "\fB\-specs=\fR\fIfile\fR" 4
11325 .IX Item "-specs=file"
11326 Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
11327 file, in order to override the defaults which the \fBgcc\fR driver
11328 program uses when determining what switches to pass to \fBcc1\fR,
11329 \&\fBcc1plus\fR, \fBas\fR, \fBld\fR, etc.  More than one
11330 \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
11331 are processed in order, from left to right.
11332 .IP "\fB\-\-sysroot=\fR\fIdir\fR" 4
11333 .IX Item "--sysroot=dir"
11334 Use \fIdir\fR as the logical root directory for headers and libraries.
11335 For example, if the compiler normally searches for headers in
11336 \&\fI/usr/include\fR and libraries in \fI/usr/lib\fR, it instead
11337 searches \fI\fIdir\fI/usr/include\fR and \fI\fIdir\fI/usr/lib\fR.
11338 .Sp
11339 If you use both this option and the \fB\-isysroot\fR option, then
11340 the \fB\-\-sysroot\fR option applies to libraries, but the
11341 \&\fB\-isysroot\fR option applies to header files.
11342 .Sp
11343 The \s-1GNU\s0 linker (beginning with version 2.16) has the necessary support
11344 for this option.  If your linker does not support this option, the
11345 header file aspect of \fB\-\-sysroot\fR still works, but the
11346 library aspect does not.
11347 .IP "\fB\-\-no\-sysroot\-suffix\fR" 4
11348 .IX Item "--no-sysroot-suffix"
11349 For some targets, a suffix is added to the root directory specified
11350 with \fB\-\-sysroot\fR, depending on the other options used, so that
11351 headers may for example be found in
11352 \&\fI\fIdir\fI/\fIsuffix\fI/usr/include\fR instead of
11353 \&\fI\fIdir\fI/usr/include\fR.  This option disables the addition of
11354 such a suffix.
11355 .IP "\fB\-I\-\fR" 4
11356 .IX Item "-I-"
11357 This option has been deprecated.  Please use \fB\-iquote\fR instead for
11358 \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR
11359 option.
11360 Any directories you specify with \fB\-I\fR options before the \fB\-I\-\fR
11361 option are searched only for the case of \f(CW\*(C`#include "\f(CIfile\f(CW"\*(C'\fR;
11362 they are not searched for \f(CW\*(C`#include <\f(CIfile\f(CW>\*(C'\fR.
11363 .Sp
11364 If additional directories are specified with \fB\-I\fR options after
11365 the \fB\-I\-\fR option, these directories are searched for all \f(CW\*(C`#include\*(C'\fR
11366 directives.  (Ordinarily \fIall\fR \fB\-I\fR directories are used
11367 this way.)
11368 .Sp
11369 In addition, the \fB\-I\-\fR option inhibits the use of the current
11370 directory (where the current input file came from) as the first search
11371 directory for \f(CW\*(C`#include "\f(CIfile\f(CW"\*(C'\fR.  There is no way to
11372 override this effect of \fB\-I\-\fR.  With \fB\-I.\fR you can specify
11373 searching the directory that is current when the compiler is
11374 invoked.  That is not exactly the same as what the preprocessor does
11375 by default, but it is often satisfactory.
11376 .Sp
11377 \&\fB\-I\-\fR does not inhibit the use of the standard system directories
11378 for header files.  Thus, \fB\-I\-\fR and \fB\-nostdinc\fR are
11379 independent.
11380 .SS "Specifying Target Machine and Compiler Version"
11381 .IX Subsection "Specifying Target Machine and Compiler Version"
11382 The usual way to run \s-1GCC\s0 is to run the executable called \fBgcc\fR, or
11383 \&\fImachine\fR\fB\-gcc\fR when cross-compiling, or
11384 \&\fImachine\fR\fB\-gcc\-\fR\fIversion\fR to run a version other than the
11385 one that was installed last.
11386 .SS "Hardware Models and Configurations"
11387 .IX Subsection "Hardware Models and Configurations"
11388 Each target machine types can have its own
11389 special options, starting with \fB\-m\fR, to choose among various
11390 hardware models or configurations\-\-\-for example, 68010 vs 68020,
11391 floating coprocessor or none.  A single installed version of the
11392 compiler can compile for any model or configuration, according to the
11393 options specified.
11394 .PP
11395 Some configurations of the compiler also support additional special
11396 options, usually for compatibility with other compilers on the same
11397 platform.
11398 .PP
11399 \fIAArch64 Options\fR
11400 .IX Subsection "AArch64 Options"
11401 .PP
11402 These options are defined for AArch64 implementations:
11403 .IP "\fB\-mabi=\fR\fIname\fR" 4
11404 .IX Item "-mabi=name"
11405 Generate code for the specified data model.  Permissible values
11406 are \fBilp32\fR for SysV-like data model where int, long int and pointer
11407 are 32\-bit, and \fBlp64\fR for SysV-like data model where int is 32\-bit,
11408 but long int and pointer are 64\-bit.
11409 .Sp
11410 The default depends on the specific target configuration.  Note that
11411 the \s-1LP64\s0 and \s-1ILP32\s0 ABIs are not link-compatible; you must compile your
11412 entire program with the same \s-1ABI,\s0 and link with a compatible set of libraries.
11413 .IP "\fB\-mbig\-endian\fR" 4
11414 .IX Item "-mbig-endian"
11415 Generate big-endian code.  This is the default when \s-1GCC\s0 is configured for an
11416 \&\fBaarch64_be\-*\-*\fR target.
11417 .IP "\fB\-mgeneral\-regs\-only\fR" 4
11418 .IX Item "-mgeneral-regs-only"
11419 Generate code which uses only the general registers.
11420 .IP "\fB\-mlittle\-endian\fR" 4
11421 .IX Item "-mlittle-endian"
11422 Generate little-endian code.  This is the default when \s-1GCC\s0 is configured for an
11423 \&\fBaarch64\-*\-*\fR but not an \fBaarch64_be\-*\-*\fR target.
11424 .IP "\fB\-mcmodel=tiny\fR" 4
11425 .IX Item "-mcmodel=tiny"
11426 Generate code for the tiny code model.  The program and its statically defined
11427 symbols must be within 1GB of each other.  Pointers are 64 bits.  Programs can
11428 be statically or dynamically linked.  This model is not fully implemented and
11429 mostly treated as \fBsmall\fR.
11430 .IP "\fB\-mcmodel=small\fR" 4
11431 .IX Item "-mcmodel=small"
11432 Generate code for the small code model.  The program and its statically defined
11433 symbols must be within 4GB of each other.  Pointers are 64 bits.  Programs can
11434 be statically or dynamically linked.  This is the default code model.
11435 .IP "\fB\-mcmodel=large\fR" 4
11436 .IX Item "-mcmodel=large"
11437 Generate code for the large code model.  This makes no assumptions about
11438 addresses and sizes of sections.  Pointers are 64 bits.  Programs can be
11439 statically linked only.
11440 .IP "\fB\-mstrict\-align\fR" 4
11441 .IX Item "-mstrict-align"
11442 Do not assume that unaligned memory references are handled by the system.
11443 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
11444 .IX Item "-momit-leaf-frame-pointer"
11445 .PD 0
11446 .IP "\fB\-mno\-omit\-leaf\-frame\-pointer\fR" 4
11447 .IX Item "-mno-omit-leaf-frame-pointer"
11448 .PD
11449 Omit or keep the frame pointer in leaf functions.  The former behaviour is the
11450 default.
11451 .IP "\fB\-mtls\-dialect=desc\fR" 4
11452 .IX Item "-mtls-dialect=desc"
11453 Use \s-1TLS\s0 descriptors as the thread-local storage mechanism for dynamic accesses
11454 of \s-1TLS\s0 variables.  This is the default.
11455 .IP "\fB\-mtls\-dialect=traditional\fR" 4
11456 .IX Item "-mtls-dialect=traditional"
11457 Use traditional \s-1TLS\s0 as the thread-local storage mechanism for dynamic accesses
11458 of \s-1TLS\s0 variables.
11459 .IP "\fB\-mfix\-cortex\-a53\-835769\fR" 4
11460 .IX Item "-mfix-cortex-a53-835769"
11461 .PD 0
11462 .IP "\fB\-mno\-fix\-cortex\-a53\-835769\fR" 4
11463 .IX Item "-mno-fix-cortex-a53-835769"
11464 .PD
11465 Enable or disable the workaround for the \s-1ARM\s0 Cortex\-A53 erratum number 835769.
11466 This involves inserting a \s-1NOP\s0 instruction between memory instructions and
11467 64\-bit integer multiply-accumulate instructions.
11468 .IP "\fB\-march=\fR\fIname\fR" 4
11469 .IX Item "-march=name"
11470 Specify the name of the target architecture, optionally suffixed by one or
11471 more feature modifiers.  This option has the form
11472 \&\fB\-march=\fR\fIarch\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*, where the
11473 only permissible value for \fIarch\fR is \fBarmv8\-a\fR.  The permissible
11474 values for \fIfeature\fR are documented in the sub-section below.
11475 .Sp
11476 Where conflicting feature modifiers are specified, the right-most feature is
11477 used.
11478 .Sp
11479 \&\s-1GCC\s0 uses this name to determine what kind of instructions it can emit when
11480 generating assembly code.
11481 .Sp
11482 Where \fB\-march\fR is specified without either of \fB\-mtune\fR
11483 or \fB\-mcpu\fR also being specified, the code is tuned to perform
11484 well across a range of target processors implementing the target
11485 architecture.
11486 .IP "\fB\-mtune=\fR\fIname\fR" 4
11487 .IX Item "-mtune=name"
11488 Specify the name of the target processor for which \s-1GCC\s0 should tune the
11489 performance of the code.  Permissible values for this option are:
11490 \&\fBgeneric\fR, \fBcortex\-a53\fR, \fBcortex\-a57\fR, \fBcortex\-a72\fR,
11491 \&\fBexynos\-m1\fR, \fBthunderx\fR, \fBxgene1\fR.
11492 .Sp
11493 Additionally, this option can specify that \s-1GCC\s0 should tune the performance
11494 of the code for a big.LITTLE system.  Permissible values for this
11495 option are: \fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR.
11496 .Sp
11497 Where none of \fB\-mtune=\fR, \fB\-mcpu=\fR or \fB\-march=\fR
11498 are specified, the code is tuned to perform well across a range
11499 of target processors.
11500 .Sp
11501 This option cannot be suffixed by feature modifiers.
11502 .IP "\fB\-mcpu=\fR\fIname\fR" 4
11503 .IX Item "-mcpu=name"
11504 Specify the name of the target processor, optionally suffixed by one or more
11505 feature modifiers.  This option has the form
11506 \&\fB\-mcpu=\fR\fIcpu\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*, where the
11507 permissible values for \fIcpu\fR are the same as those available for
11508 \&\fB\-mtune\fR.
11509 .Sp
11510 The permissible values for \fIfeature\fR are documented in the sub-section
11511 below.
11512 .Sp
11513 Where conflicting feature modifiers are specified, the right-most feature is
11514 used.
11515 .Sp
11516 \&\s-1GCC\s0 uses this name to determine what kind of instructions it can emit when
11517 generating assembly code (as if by \fB\-march\fR) and to determine
11518 the target processor for which to tune for performance (as if
11519 by \fB\-mtune\fR).  Where this option is used in conjunction
11520 with \fB\-march\fR or \fB\-mtune\fR, those options take precedence
11521 over the appropriate part of this option.
11522 .PP
11523 \fB\-march\fR and \fB\-mcpu\fR Feature Modifiers
11524 .IX Subsection "-march and -mcpu Feature Modifiers"
11525 .PP
11526 Feature modifiers used with \fB\-march\fR and \fB\-mcpu\fR can be one
11527 the following:
11528 .IP "\fBcrc\fR" 4
11529 .IX Item "crc"
11530 Enable \s-1CRC\s0 extension.
11531 .IP "\fBcrypto\fR" 4
11532 .IX Item "crypto"
11533 Enable Crypto extension.  This implies Advanced \s-1SIMD\s0 is enabled.
11534 .IP "\fBfp\fR" 4
11535 .IX Item "fp"
11536 Enable floating-point instructions.
11537 .IP "\fBsimd\fR" 4
11538 .IX Item "simd"
11539 Enable Advanced \s-1SIMD\s0 instructions.  This implies floating-point instructions
11540 are enabled.  This is the default for all current possible values for options
11541 \&\fB\-march\fR and \fB\-mcpu=\fR.
11542 .PP
11543 \fIAdapteva Epiphany Options\fR
11544 .IX Subsection "Adapteva Epiphany Options"
11545 .PP
11546 These \fB\-m\fR options are defined for Adapteva Epiphany:
11547 .IP "\fB\-mhalf\-reg\-file\fR" 4
11548 .IX Item "-mhalf-reg-file"
11549 Don't allocate any register in the range \f(CW\*(C`r32\*(C'\fR...\f(CW\*(C`r63\*(C'\fR.
11550 That allows code to run on hardware variants that lack these registers.
11551 .IP "\fB\-mprefer\-short\-insn\-regs\fR" 4
11552 .IX Item "-mprefer-short-insn-regs"
11553 Preferrentially allocate registers that allow short instruction generation.
11554 This can result in increased instruction count, so this may either reduce or
11555 increase overall code size.
11556 .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
11557 .IX Item "-mbranch-cost=num"
11558 Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
11559 This cost is only a heuristic and is not guaranteed to produce
11560 consistent results across releases.
11561 .IP "\fB\-mcmove\fR" 4
11562 .IX Item "-mcmove"
11563 Enable the generation of conditional moves.
11564 .IP "\fB\-mnops=\fR\fInum\fR" 4
11565 .IX Item "-mnops=num"
11566 Emit \fInum\fR NOPs before every other generated instruction.
11567 .IP "\fB\-mno\-soft\-cmpsf\fR" 4
11568 .IX Item "-mno-soft-cmpsf"
11569 For single-precision floating-point comparisons, emit an \f(CW\*(C`fsub\*(C'\fR instruction
11570 and test the flags.  This is faster than a software comparison, but can
11571 get incorrect results in the presence of NaNs, or when two different small
11572 numbers are compared such that their difference is calculated as zero.
11573 The default is \fB\-msoft\-cmpsf\fR, which uses slower, but IEEE-compliant,
11574 software comparisons.
11575 .IP "\fB\-mstack\-offset=\fR\fInum\fR" 4
11576 .IX Item "-mstack-offset=num"
11577 Set the offset between the top of the stack and the stack pointer.
11578 E.g., a value of 8 means that the eight bytes in the range \f(CW\*(C`sp+0...sp+7\*(C'\fR
11579 can be used by leaf functions without stack allocation.
11580 Values other than \fB8\fR or \fB16\fR are untested and unlikely to work.
11581 Note also that this option changes the \s-1ABI\s0; compiling a program with a
11582 different stack offset than the libraries have been compiled with
11583 generally does not work.
11584 This option can be useful if you want to evaluate if a different stack
11585 offset would give you better code, but to actually use a different stack
11586 offset to build working programs, it is recommended to configure the
11587 toolchain with the appropriate \fB\-\-with\-stack\-offset=\fR\fInum\fR option.
11588 .IP "\fB\-mno\-round\-nearest\fR" 4
11589 .IX Item "-mno-round-nearest"
11590 Make the scheduler assume that the rounding mode has been set to
11591 truncating.  The default is \fB\-mround\-nearest\fR.
11592 .IP "\fB\-mlong\-calls\fR" 4
11593 .IX Item "-mlong-calls"
11594 If not otherwise specified by an attribute, assume all calls might be beyond
11595 the offset range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, and therefore load the
11596 function address into a register before performing a (otherwise direct) call.
11597 This is the default.
11598 .IP "\fB\-mshort\-calls\fR" 4
11599 .IX Item "-mshort-calls"
11600 If not otherwise specified by an attribute, assume all direct calls are
11601 in the range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, so use these instructions
11602 for direct calls.  The default is \fB\-mlong\-calls\fR.
11603 .IP "\fB\-msmall16\fR" 4
11604 .IX Item "-msmall16"
11605 Assume addresses can be loaded as 16\-bit unsigned values.  This does not
11606 apply to function addresses for which \fB\-mlong\-calls\fR semantics
11607 are in effect.
11608 .IP "\fB\-mfp\-mode=\fR\fImode\fR" 4
11609 .IX Item "-mfp-mode=mode"
11610 Set the prevailing mode of the floating-point unit.
11611 This determines the floating-point mode that is provided and expected
11612 at function call and return time.  Making this mode match the mode you
11613 predominantly need at function start can make your programs smaller and
11614 faster by avoiding unnecessary mode switches.
11615 .Sp
11616 \&\fImode\fR can be set to one the following values:
11617 .RS 4
11618 .IP "\fBcaller\fR" 4
11619 .IX Item "caller"
11620 Any mode at function entry is valid, and retained or restored when
11621 the function returns, and when it calls other functions.
11622 This mode is useful for compiling libraries or other compilation units
11623 you might want to incorporate into different programs with different
11624 prevailing \s-1FPU\s0 modes, and the convenience of being able to use a single
11625 object file outweighs the size and speed overhead for any extra
11626 mode switching that might be needed, compared with what would be needed
11627 with a more specific choice of prevailing \s-1FPU\s0 mode.
11628 .IP "\fBtruncate\fR" 4
11629 .IX Item "truncate"
11630 This is the mode used for floating-point calculations with
11631 truncating (i.e. round towards zero) rounding mode.  That includes
11632 conversion from floating point to integer.
11633 .IP "\fBround-nearest\fR" 4
11634 .IX Item "round-nearest"
11635 This is the mode used for floating-point calculations with
11636 round-to-nearest-or-even rounding mode.
11637 .IP "\fBint\fR" 4
11638 .IX Item "int"
11639 This is the mode used to perform integer calculations in the \s-1FPU,\s0 e.g.
11640 integer multiply, or integer multiply-and-accumulate.
11641 .RE
11642 .RS 4
11643 .Sp
11644 The default is \fB\-mfp\-mode=caller\fR
11645 .RE
11646 .IP "\fB\-mnosplit\-lohi\fR" 4
11647 .IX Item "-mnosplit-lohi"
11648 .PD 0
11649 .IP "\fB\-mno\-postinc\fR" 4
11650 .IX Item "-mno-postinc"
11651 .IP "\fB\-mno\-postmodify\fR" 4
11652 .IX Item "-mno-postmodify"
11653 .PD
11654 Code generation tweaks that disable, respectively, splitting of 32\-bit
11655 loads, generation of post-increment addresses, and generation of
11656 post-modify addresses.  The defaults are \fBmsplit-lohi\fR,
11657 \&\fB\-mpost\-inc\fR, and \fB\-mpost\-modify\fR.
11658 .IP "\fB\-mnovect\-double\fR" 4
11659 .IX Item "-mnovect-double"
11660 Change the preferred \s-1SIMD\s0 mode to SImode.  The default is
11661 \&\fB\-mvect\-double\fR, which uses DImode as preferred \s-1SIMD\s0 mode.
11662 .IP "\fB\-max\-vect\-align=\fR\fInum\fR" 4
11663 .IX Item "-max-vect-align=num"
11664 The maximum alignment for \s-1SIMD\s0 vector mode types.
11665 \&\fInum\fR may be 4 or 8.  The default is 8.
11666 Note that this is an \s-1ABI\s0 change, even though many library function
11667 interfaces are unaffected if they don't use \s-1SIMD\s0 vector modes
11668 in places that affect size and/or alignment of relevant types.
11669 .IP "\fB\-msplit\-vecmove\-early\fR" 4
11670 .IX Item "-msplit-vecmove-early"
11671 Split vector moves into single word moves before reload.  In theory this
11672 can give better register allocation, but so far the reverse seems to be
11673 generally the case.
11674 .IP "\fB\-m1reg\-\fR\fIreg\fR" 4
11675 .IX Item "-m1reg-reg"
11676 Specify a register to hold the constant \-1, which makes loading small negative
11677 constants and certain bitmasks faster.
11678 Allowable values for \fIreg\fR are \fBr43\fR and \fBr63\fR,
11679 which specify use of that register as a fixed register,
11680 and \fBnone\fR, which means that no register is used for this
11681 purpose.  The default is \fB\-m1reg\-none\fR.
11682 .PP
11683 \fI\s-1ARC\s0 Options\fR
11684 .IX Subsection "ARC Options"
11685 .PP
11686 The following options control the architecture variant for which code
11687 is being compiled:
11688 .IP "\fB\-mbarrel\-shifter\fR" 4
11689 .IX Item "-mbarrel-shifter"
11690 Generate instructions supported by barrel shifter.  This is the default
11691 unless \fB\-mcpu=ARC601\fR is in effect.
11692 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
11693 .IX Item "-mcpu=cpu"
11694 Set architecture type, register usage, and instruction scheduling
11695 parameters for \fIcpu\fR.  There are also shortcut alias options
11696 available for backward compatibility and convenience.  Supported
11697 values for \fIcpu\fR are
11698 .RS 4
11699 .IP "\fB\s-1ARC600\s0\fR" 4
11700 .IX Item "ARC600"
11701 Compile for \s-1ARC600. \s0 Aliases: \fB\-mA6\fR, \fB\-mARC600\fR.
11702 .IP "\fB\s-1ARC601\s0\fR" 4
11703 .IX Item "ARC601"
11704 Compile for \s-1ARC601. \s0 Alias: \fB\-mARC601\fR.
11705 .IP "\fB\s-1ARC700\s0\fR" 4
11706 .IX Item "ARC700"
11707 Compile for \s-1ARC700. \s0 Aliases: \fB\-mA7\fR, \fB\-mARC700\fR.
11708 This is the default when configured with \fB\-\-with\-cpu=arc700\fR.
11709 .RE
11710 .RS 4
11711 .RE
11712 .IP "\fB\-mdpfp\fR" 4
11713 .IX Item "-mdpfp"
11714 .PD 0
11715 .IP "\fB\-mdpfp\-compact\fR" 4
11716 .IX Item "-mdpfp-compact"
11717 .PD
11718 \&\s-1FPX:\s0 Generate Double Precision \s-1FPX\s0 instructions, tuned for the compact
11719 implementation.
11720 .IP "\fB\-mdpfp\-fast\fR" 4
11721 .IX Item "-mdpfp-fast"
11722 \&\s-1FPX:\s0 Generate Double Precision \s-1FPX\s0 instructions, tuned for the fast
11723 implementation.
11724 .IP "\fB\-mno\-dpfp\-lrsr\fR" 4
11725 .IX Item "-mno-dpfp-lrsr"
11726 Disable \s-1LR\s0 and \s-1SR\s0 instructions from using \s-1FPX\s0 extension aux registers.
11727 .IP "\fB\-mea\fR" 4
11728 .IX Item "-mea"
11729 Generate Extended arithmetic instructions.  Currently only
11730 \&\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
11731 supported.  This is always enabled for \fB\-mcpu=ARC700\fR.
11732 .IP "\fB\-mno\-mpy\fR" 4
11733 .IX Item "-mno-mpy"
11734 Do not generate mpy instructions for \s-1ARC700.\s0
11735 .IP "\fB\-mmul32x16\fR" 4
11736 .IX Item "-mmul32x16"
11737 Generate 32x16 bit multiply and mac instructions.
11738 .IP "\fB\-mmul64\fR" 4
11739 .IX Item "-mmul64"
11740 Generate mul64 and mulu64 instructions.  Only valid for \fB\-mcpu=ARC600\fR.
11741 .IP "\fB\-mnorm\fR" 4
11742 .IX Item "-mnorm"
11743 Generate norm instruction.  This is the default if \fB\-mcpu=ARC700\fR
11744 is in effect.
11745 .IP "\fB\-mspfp\fR" 4
11746 .IX Item "-mspfp"
11747 .PD 0
11748 .IP "\fB\-mspfp\-compact\fR" 4
11749 .IX Item "-mspfp-compact"
11750 .PD
11751 \&\s-1FPX:\s0 Generate Single Precision \s-1FPX\s0 instructions, tuned for the compact
11752 implementation.
11753 .IP "\fB\-mspfp\-fast\fR" 4
11754 .IX Item "-mspfp-fast"
11755 \&\s-1FPX:\s0 Generate Single Precision \s-1FPX\s0 instructions, tuned for the fast
11756 implementation.
11757 .IP "\fB\-msimd\fR" 4
11758 .IX Item "-msimd"
11759 Enable generation of \s-1ARC SIMD\s0 instructions via target-specific
11760 builtins.  Only valid for \fB\-mcpu=ARC700\fR.
11761 .IP "\fB\-msoft\-float\fR" 4
11762 .IX Item "-msoft-float"
11763 This option ignored; it is provided for compatibility purposes only.
11764 Software floating point code is emitted by default, and this default
11765 can overridden by \s-1FPX\s0 options; \fBmspfp\fR, \fBmspfp-compact\fR, or
11766 \&\fBmspfp-fast\fR for single precision, and \fBmdpfp\fR,
11767 \&\fBmdpfp-compact\fR, or \fBmdpfp-fast\fR for double precision.
11768 .IP "\fB\-mswap\fR" 4
11769 .IX Item "-mswap"
11770 Generate swap instructions.
11771 .PP
11772 The following options are passed through to the assembler, and also
11773 define preprocessor macro symbols.
11774 .IP "\fB\-mdsp\-packa\fR" 4
11775 .IX Item "-mdsp-packa"
11776 Passed down to the assembler to enable the \s-1DSP\s0 Pack A extensions.
11777 Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdsp_packa\*(C'\fR.
11778 .IP "\fB\-mdvbf\fR" 4
11779 .IX Item "-mdvbf"
11780 Passed down to the assembler to enable the dual viterbi butterfly
11781 extension.  Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdvbf\*(C'\fR.
11782 .IP "\fB\-mlock\fR" 4
11783 .IX Item "-mlock"
11784 Passed down to the assembler to enable the Locked Load/Store
11785 Conditional extension.  Also sets the preprocessor symbol
11786 \&\f(CW\*(C`_\|_Xlock\*(C'\fR.
11787 .IP "\fB\-mmac\-d16\fR" 4
11788 .IX Item "-mmac-d16"
11789 Passed down to the assembler.  Also sets the preprocessor symbol
11790 \&\f(CW\*(C`_\|_Xxmac_d16\*(C'\fR.
11791 .IP "\fB\-mmac\-24\fR" 4
11792 .IX Item "-mmac-24"
11793 Passed down to the assembler.  Also sets the preprocessor symbol
11794 \&\f(CW\*(C`_\|_Xxmac_24\*(C'\fR.
11795 .IP "\fB\-mrtsc\fR" 4
11796 .IX Item "-mrtsc"
11797 Passed down to the assembler to enable the 64\-bit Time-Stamp Counter
11798 extension instruction.  Also sets the preprocessor symbol
11799 \&\f(CW\*(C`_\|_Xrtsc\*(C'\fR.
11800 .IP "\fB\-mswape\fR" 4
11801 .IX Item "-mswape"
11802 Passed down to the assembler to enable the swap byte ordering
11803 extension instruction.  Also sets the preprocessor symbol
11804 \&\f(CW\*(C`_\|_Xswape\*(C'\fR.
11805 .IP "\fB\-mtelephony\fR" 4
11806 .IX Item "-mtelephony"
11807 Passed down to the assembler to enable dual and single operand
11808 instructions for telephony.  Also sets the preprocessor symbol
11809 \&\f(CW\*(C`_\|_Xtelephony\*(C'\fR.
11810 .IP "\fB\-mxy\fR" 4
11811 .IX Item "-mxy"
11812 Passed down to the assembler to enable the \s-1XY\s0 Memory extension.  Also
11813 sets the preprocessor symbol \f(CW\*(C`_\|_Xxy\*(C'\fR.
11814 .PP
11815 The following options control how the assembly code is annotated:
11816 .IP "\fB\-misize\fR" 4
11817 .IX Item "-misize"
11818 Annotate assembler instructions with estimated addresses.
11819 .IP "\fB\-mannotate\-align\fR" 4
11820 .IX Item "-mannotate-align"
11821 Explain what alignment considerations lead to the decision to make an
11822 instruction short or long.
11823 .PP
11824 The following options are passed through to the linker:
11825 .IP "\fB\-marclinux\fR" 4
11826 .IX Item "-marclinux"
11827 Passed through to the linker, to specify use of the \f(CW\*(C`arclinux\*(C'\fR emulation.
11828 This option is enabled by default in tool chains built for
11829 \&\f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets
11830 when profiling is not requested.
11831 .IP "\fB\-marclinux_prof\fR" 4
11832 .IX Item "-marclinux_prof"
11833 Passed through to the linker, to specify use of the
11834 \&\f(CW\*(C`arclinux_prof\*(C'\fR emulation.  This option is enabled by default in
11835 tool chains built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and
11836 \&\f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets when profiling is requested.
11837 .PP
11838 The following options control the semantics of generated code:
11839 .IP "\fB\-mepilogue\-cfi\fR" 4
11840 .IX Item "-mepilogue-cfi"
11841 Enable generation of call frame information for epilogues.
11842 .IP "\fB\-mno\-epilogue\-cfi\fR" 4
11843 .IX Item "-mno-epilogue-cfi"
11844 Disable generation of call frame information for epilogues.
11845 .IP "\fB\-mlong\-calls\fR" 4
11846 .IX Item "-mlong-calls"
11847 Generate call insns as register indirect calls, thus providing access
11848 to the full 32\-bit address range.
11849 .IP "\fB\-mmedium\-calls\fR" 4
11850 .IX Item "-mmedium-calls"
11851 Don't use less than 25 bit addressing range for calls, which is the
11852 offset available for an unconditional branch-and-link
11853 instruction.  Conditional execution of function calls is suppressed, to
11854 allow use of the 25\-bit range, rather than the 21\-bit range with
11855 conditional branch-and-link.  This is the default for tool chains built
11856 for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets.
11857 .IP "\fB\-mno\-sdata\fR" 4
11858 .IX Item "-mno-sdata"
11859 Do not generate sdata references.  This is the default for tool chains
11860 built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR
11861 targets.
11862 .IP "\fB\-mucb\-mcount\fR" 4
11863 .IX Item "-mucb-mcount"
11864 Instrument with mcount calls as used in \s-1UCB\s0 code.  I.e. do the
11865 counting in the callee, not the caller.  By default \s-1ARC\s0 instrumentation
11866 counts in the caller.
11867 .IP "\fB\-mvolatile\-cache\fR" 4
11868 .IX Item "-mvolatile-cache"
11869 Use ordinarily cached memory accesses for volatile references.  This is the
11870 default.
11871 .IP "\fB\-mno\-volatile\-cache\fR" 4
11872 .IX Item "-mno-volatile-cache"
11873 Enable cache bypass for volatile references.
11874 .PP
11875 The following options fine tune code generation:
11876 .IP "\fB\-malign\-call\fR" 4
11877 .IX Item "-malign-call"
11878 Do alignment optimizations for call instructions.
11879 .IP "\fB\-mauto\-modify\-reg\fR" 4
11880 .IX Item "-mauto-modify-reg"
11881 Enable the use of pre/post modify with register displacement.
11882 .IP "\fB\-mbbit\-peephole\fR" 4
11883 .IX Item "-mbbit-peephole"
11884 Enable bbit peephole2.
11885 .IP "\fB\-mno\-brcc\fR" 4
11886 .IX Item "-mno-brcc"
11887 This option disables a target-specific pass in \fIarc_reorg\fR to
11888 generate \f(CW\*(C`BRcc\*(C'\fR instructions.  It has no effect on \f(CW\*(C`BRcc\*(C'\fR
11889 generation driven by the combiner pass.
11890 .IP "\fB\-mcase\-vector\-pcrel\fR" 4
11891 .IX Item "-mcase-vector-pcrel"
11892 Use pc-relative switch case tables \- this enables case table shortening.
11893 This is the default for \fB\-Os\fR.
11894 .IP "\fB\-mcompact\-casesi\fR" 4
11895 .IX Item "-mcompact-casesi"
11896 Enable compact casesi pattern.
11897 This is the default for \fB\-Os\fR.
11898 .IP "\fB\-mno\-cond\-exec\fR" 4
11899 .IX Item "-mno-cond-exec"
11900 Disable ARCompact specific pass to generate conditional execution instructions.
11901 Due to delay slot scheduling and interactions between operand numbers,
11902 literal sizes, instruction lengths, and the support for conditional execution,
11903 the target-independent pass to generate conditional execution is often lacking,
11904 so the \s-1ARC\s0 port has kept a special pass around that tries to find more
11905 conditional execution generating opportunities after register allocation,
11906 branch shortening, and delay slot scheduling have been done.  This pass
11907 generally, but not always, improves performance and code size, at the cost of
11908 extra compilation time, which is why there is an option to switch it off.
11909 If you have a problem with call instructions exceeding their allowable
11910 offset range because they are conditionalized, you should consider using
11911 \&\fB\-mmedium\-calls\fR instead.
11912 .IP "\fB\-mearly\-cbranchsi\fR" 4
11913 .IX Item "-mearly-cbranchsi"
11914 Enable pre-reload use of the cbranchsi pattern.
11915 .IP "\fB\-mexpand\-adddi\fR" 4
11916 .IX Item "-mexpand-adddi"
11917 Expand \f(CW\*(C`adddi3\*(C'\fR and \f(CW\*(C`subdi3\*(C'\fR at rtl generation time into
11918 \&\f(CW\*(C`add.f\*(C'\fR, \f(CW\*(C`adc\*(C'\fR etc.
11919 .IP "\fB\-mindexed\-loads\fR" 4
11920 .IX Item "-mindexed-loads"
11921 Enable the use of indexed loads.  This can be problematic because some
11922 optimizers then assume that indexed stores exist, which is not
11923 the case.
11924 .IP "\fB\-mlra\fR" 4
11925 .IX Item "-mlra"
11926 Enable Local Register Allocation.  This is still experimental for \s-1ARC,\s0
11927 so by default the compiler uses standard reload
11928 (i.e. \fB\-mno\-lra\fR).
11929 .IP "\fB\-mlra\-priority\-none\fR" 4
11930 .IX Item "-mlra-priority-none"
11931 Don't indicate any priority for target registers.
11932 .IP "\fB\-mlra\-priority\-compact\fR" 4
11933 .IX Item "-mlra-priority-compact"
11934 Indicate target register priority for r0..r3 / r12..r15.
11935 .IP "\fB\-mlra\-priority\-noncompact\fR" 4
11936 .IX Item "-mlra-priority-noncompact"
11937 Reduce target regsiter priority for r0..r3 / r12..r15.
11938 .IP "\fB\-mno\-millicode\fR" 4
11939 .IX Item "-mno-millicode"
11940 When optimizing for size (using \fB\-Os\fR), prologues and epilogues
11941 that have to save or restore a large number of registers are often
11942 shortened by using call to a special function in libgcc; this is
11943 referred to as a \fImillicode\fR call.  As these calls can pose
11944 performance issues, and/or cause linking issues when linking in a
11945 nonstandard way, this option is provided to turn off millicode call
11946 generation.
11947 .IP "\fB\-mmixed\-code\fR" 4
11948 .IX Item "-mmixed-code"
11949 Tweak register allocation to help 16\-bit instruction generation.
11950 This generally has the effect of decreasing the average instruction size
11951 while increasing the instruction count.
11952 .IP "\fB\-mq\-class\fR" 4
11953 .IX Item "-mq-class"
11954 Enable 'q' instruction alternatives.
11955 This is the default for \fB\-Os\fR.
11956 .IP "\fB\-mRcq\fR" 4
11957 .IX Item "-mRcq"
11958 Enable Rcq constraint handling \- most short code generation depends on this.
11959 This is the default.
11960 .IP "\fB\-mRcw\fR" 4
11961 .IX Item "-mRcw"
11962 Enable Rcw constraint handling \- ccfsm condexec mostly depends on this.
11963 This is the default.
11964 .IP "\fB\-msize\-level=\fR\fIlevel\fR" 4
11965 .IX Item "-msize-level=level"
11966 Fine-tune size optimization with regards to instruction lengths and alignment.
11967 The recognized values for \fIlevel\fR are:
11968 .RS 4
11969 .IP "\fB0\fR" 4
11970 .IX Item "0"
11971 No size optimization.  This level is deprecated and treated like \fB1\fR.
11972 .IP "\fB1\fR" 4
11973 .IX Item "1"
11974 Short instructions are used opportunistically.
11975 .IP "\fB2\fR" 4
11976 .IX Item "2"
11977 In addition, alignment of loops and of code after barriers are dropped.
11978 .IP "\fB3\fR" 4
11979 .IX Item "3"
11980 In addition, optional data alignment is dropped, and the option \fBOs\fR is enabled.
11981 .RE
11982 .RS 4
11983 .Sp
11984 This defaults to \fB3\fR when \fB\-Os\fR is in effect.  Otherwise,
11985 the behavior when this is not set is equivalent to level \fB1\fR.
11986 .RE
11987 .IP "\fB\-mtune=\fR\fIcpu\fR" 4
11988 .IX Item "-mtune=cpu"
11989 Set instruction scheduling parameters for \fIcpu\fR, overriding any implied
11990 by \fB\-mcpu=\fR.
11991 .Sp
11992 Supported values for \fIcpu\fR are
11993 .RS 4
11994 .IP "\fB\s-1ARC600\s0\fR" 4
11995 .IX Item "ARC600"
11996 Tune for \s-1ARC600\s0 cpu.
11997 .IP "\fB\s-1ARC601\s0\fR" 4
11998 .IX Item "ARC601"
11999 Tune for \s-1ARC601\s0 cpu.
12000 .IP "\fB\s-1ARC700\s0\fR" 4
12001 .IX Item "ARC700"
12002 Tune for \s-1ARC700\s0 cpu with standard multiplier block.
12003 .IP "\fBARC700\-xmac\fR" 4
12004 .IX Item "ARC700-xmac"
12005 Tune for \s-1ARC700\s0 cpu with \s-1XMAC\s0 block.
12006 .IP "\fB\s-1ARC725D\s0\fR" 4
12007 .IX Item "ARC725D"
12008 Tune for \s-1ARC725D\s0 cpu.
12009 .IP "\fB\s-1ARC750D\s0\fR" 4
12010 .IX Item "ARC750D"
12011 Tune for \s-1ARC750D\s0 cpu.
12012 .RE
12013 .RS 4
12014 .RE
12015 .IP "\fB\-mmultcost=\fR\fInum\fR" 4
12016 .IX Item "-mmultcost=num"
12017 Cost to assume for a multiply instruction, with \fB4\fR being equal to a
12018 normal instruction.
12019 .IP "\fB\-munalign\-prob\-threshold=\fR\fIprobability\fR" 4
12020 .IX Item "-munalign-prob-threshold=probability"
12021 Set probability threshold for unaligning branches.
12022 When tuning for \fB\s-1ARC700\s0\fR and optimizing for speed, branches without
12023 filled delay slot are preferably emitted unaligned and long, unless
12024 profiling indicates that the probability for the branch to be taken
12025 is below \fIprobability\fR.  
12026 The default is (\s-1REG_BR_PROB_BASE/2\s0), i.e. 5000.
12027 .PP
12028 The following options are maintained for backward compatibility, but
12029 are now deprecated and will be removed in a future release:
12030 .IP "\fB\-margonaut\fR" 4
12031 .IX Item "-margonaut"
12032 Obsolete \s-1FPX.\s0
12033 .IP "\fB\-mbig\-endian\fR" 4
12034 .IX Item "-mbig-endian"
12035 .PD 0
12036 .IP "\fB\-EB\fR" 4
12037 .IX Item "-EB"
12038 .PD
12039 Compile code for big endian targets.  Use of these options is now
12040 deprecated.  Users wanting big-endian code, should use the
12041 \&\f(CW\*(C`arceb\-elf32\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets when
12042 building the tool chain, for which big-endian is the default.
12043 .IP "\fB\-mlittle\-endian\fR" 4
12044 .IX Item "-mlittle-endian"
12045 .PD 0
12046 .IP "\fB\-EL\fR" 4
12047 .IX Item "-EL"
12048 .PD
12049 Compile code for little endian targets.  Use of these options is now
12050 deprecated.  Users wanting little-endian code should use the
12051 \&\f(CW\*(C`arc\-elf32\*(C'\fR and \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR targets when
12052 building the tool chain, for which little-endian is the default.
12053 .IP "\fB\-mbarrel_shifter\fR" 4
12054 .IX Item "-mbarrel_shifter"
12055 Replaced by \fB\-mbarrel\-shifter\fR.
12056 .IP "\fB\-mdpfp_compact\fR" 4
12057 .IX Item "-mdpfp_compact"
12058 Replaced by \fB\-mdpfp\-compact\fR.
12059 .IP "\fB\-mdpfp_fast\fR" 4
12060 .IX Item "-mdpfp_fast"
12061 Replaced by \fB\-mdpfp\-fast\fR.
12062 .IP "\fB\-mdsp_packa\fR" 4
12063 .IX Item "-mdsp_packa"
12064 Replaced by \fB\-mdsp\-packa\fR.
12065 .IP "\fB\-mEA\fR" 4
12066 .IX Item "-mEA"
12067 Replaced by \fB\-mea\fR.
12068 .IP "\fB\-mmac_24\fR" 4
12069 .IX Item "-mmac_24"
12070 Replaced by \fB\-mmac\-24\fR.
12071 .IP "\fB\-mmac_d16\fR" 4
12072 .IX Item "-mmac_d16"
12073 Replaced by \fB\-mmac\-d16\fR.
12074 .IP "\fB\-mspfp_compact\fR" 4
12075 .IX Item "-mspfp_compact"
12076 Replaced by \fB\-mspfp\-compact\fR.
12077 .IP "\fB\-mspfp_fast\fR" 4
12078 .IX Item "-mspfp_fast"
12079 Replaced by \fB\-mspfp\-fast\fR.
12080 .IP "\fB\-mtune=\fR\fIcpu\fR" 4
12081 .IX Item "-mtune=cpu"
12082 Values \fBarc600\fR, \fBarc601\fR, \fBarc700\fR and
12083 \&\fBarc700\-xmac\fR for \fIcpu\fR are replaced by \fB\s-1ARC600\s0\fR,
12084 \&\fB\s-1ARC601\s0\fR, \fB\s-1ARC700\s0\fR and \fBARC700\-xmac\fR respectively
12085 .IP "\fB\-multcost=\fR\fInum\fR" 4
12086 .IX Item "-multcost=num"
12087 Replaced by \fB\-mmultcost\fR.
12088 .PP
12089 \fI\s-1ARM\s0 Options\fR
12090 .IX Subsection "ARM Options"
12091 .PP
12092 These \fB\-m\fR options are defined for the \s-1ARM\s0 port:
12093 .IP "\fB\-mabi=\fR\fIname\fR" 4
12094 .IX Item "-mabi=name"
12095 Generate code for the specified \s-1ABI. \s0 Permissible values are: \fBapcs-gnu\fR,
12096 \&\fBatpcs\fR, \fBaapcs\fR, \fBaapcs-linux\fR and \fBiwmmxt\fR.
12097 .IP "\fB\-mapcs\-frame\fR" 4
12098 .IX Item "-mapcs-frame"
12099 Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
12100 Standard for all functions, even if this is not strictly necessary for
12101 correct execution of the code.  Specifying \fB\-fomit\-frame\-pointer\fR
12102 with this option causes the stack frames not to be generated for
12103 leaf functions.  The default is \fB\-mno\-apcs\-frame\fR.
12104 This option is deprecated.
12105 .IP "\fB\-mapcs\fR" 4
12106 .IX Item "-mapcs"
12107 This is a synonym for \fB\-mapcs\-frame\fR and is deprecated.
12108 .IP "\fB\-mthumb\-interwork\fR" 4
12109 .IX Item "-mthumb-interwork"
12110 Generate code that supports calling between the \s-1ARM\s0 and Thumb
12111 instruction sets.  Without this option, on pre\-v5 architectures, the
12112 two instruction sets cannot be reliably used inside one program.  The
12113 default is \fB\-mno\-thumb\-interwork\fR, since slightly larger code
12114 is generated when \fB\-mthumb\-interwork\fR is specified.  In \s-1AAPCS\s0
12115 configurations this option is meaningless.
12116 .IP "\fB\-mno\-sched\-prolog\fR" 4
12117 .IX Item "-mno-sched-prolog"
12118 Prevent the reordering of instructions in the function prologue, or the
12119 merging of those instruction with the instructions in the function's
12120 body.  This means that all functions start with a recognizable set
12121 of instructions (or in fact one of a choice from a small set of
12122 different function prologues), and this information can be used to
12123 locate the start of functions inside an executable piece of code.  The
12124 default is \fB\-msched\-prolog\fR.
12125 .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
12126 .IX Item "-mfloat-abi=name"
12127 Specifies which floating-point \s-1ABI\s0 to use.  Permissible values
12128 are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
12129 .Sp
12130 Specifying \fBsoft\fR causes \s-1GCC\s0 to generate output containing
12131 library calls for floating-point operations.
12132 \&\fBsoftfp\fR allows the generation of code using hardware floating-point
12133 instructions, but still uses the soft-float calling conventions.
12134 \&\fBhard\fR allows generation of floating-point instructions
12135 and uses FPU-specific calling conventions.
12136 .Sp
12137 The default depends on the specific target configuration.  Note that
12138 the hard-float and soft-float ABIs are not link-compatible; you must
12139 compile your entire program with the same \s-1ABI,\s0 and link with a
12140 compatible set of libraries.
12141 .IP "\fB\-mlittle\-endian\fR" 4
12142 .IX Item "-mlittle-endian"
12143 Generate code for a processor running in little-endian mode.  This is
12144 the default for all standard configurations.
12145 .IP "\fB\-mbig\-endian\fR" 4
12146 .IX Item "-mbig-endian"
12147 Generate code for a processor running in big-endian mode; the default is
12148 to compile code for a little-endian processor.
12149 .IP "\fB\-march=\fR\fIname\fR" 4
12150 .IX Item "-march=name"
12151 This specifies the name of the target \s-1ARM\s0 architecture.  \s-1GCC\s0 uses this
12152 name to determine what kind of instructions it can emit when generating
12153 assembly code.  This option can be used in conjunction with or instead
12154 of the \fB\-mcpu=\fR option.  Permissible names are: \fBarmv2\fR,
12155 \&\fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR, \fBarmv4\fR, \fBarmv4t\fR,
12156 \&\fBarmv5\fR, \fBarmv5t\fR, \fBarmv5e\fR, \fBarmv5te\fR,
12157 \&\fBarmv6\fR, \fBarmv6j\fR,
12158 \&\fBarmv6t2\fR, \fBarmv6z\fR, \fBarmv6zk\fR, \fBarmv6\-m\fR,
12159 \&\fBarmv7\fR, \fBarmv7\-a\fR, \fBarmv7\-r\fR, \fBarmv7\-m\fR, \fBarmv7e\-m\fR,
12160 \&\fBarmv7ve\fR, \fBarmv8\-a\fR, \fBarmv8\-a+crc\fR,
12161 \&\fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR.
12162 .Sp
12163 \&\fB\-march=armv7ve\fR is the armv7\-a architecture with virtualization
12164 extensions.
12165 .Sp
12166 \&\fB\-march=armv8\-a+crc\fR enables code generation for the ARMv8\-A
12167 architecture together with the optional \s-1CRC32\s0 extensions.
12168 .Sp
12169 \&\fB\-march=native\fR causes the compiler to auto-detect the architecture
12170 of the build computer.  At present, this feature is only supported on
12171 GNU/Linux, and not all architectures are recognized.  If the auto-detect
12172 is unsuccessful the option has no effect.
12173 .IP "\fB\-mtune=\fR\fIname\fR" 4
12174 .IX Item "-mtune=name"
12175 This option specifies the name of the target \s-1ARM\s0 processor for
12176 which \s-1GCC\s0 should tune the performance of the code.
12177 For some \s-1ARM\s0 implementations better performance can be obtained by using
12178 this option.
12179 Permissible names are: \fBarm2\fR, \fBarm250\fR,
12180 \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
12181 \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
12182 \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
12183 \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
12184 \&\fBarm720\fR,
12185 \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR,
12186 \&\fBarm710t\fR, \fBarm720t\fR, \fBarm740t\fR,
12187 \&\fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
12188 \&\fBstrongarm1110\fR,
12189 \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
12190 \&\fBarm920t\fR, \fBarm922t\fR, \fBarm946e\-s\fR, \fBarm966e\-s\fR,
12191 \&\fBarm968e\-s\fR, \fBarm926ej\-s\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
12192 \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ej\-s\fR,
12193 \&\fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
12194 \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
12195 \&\fBarm1156t2\-s\fR, \fBarm1156t2f\-s\fR, \fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR,
12196 \&\fBcortex\-a5\fR, \fBcortex\-a7\fR, \fBcortex\-a8\fR, \fBcortex\-a9\fR,
12197 \&\fBcortex\-a12\fR, \fBcortex\-a15\fR, \fBcortex\-a53\fR,
12198 \&\fBcortex\-a57\fR, \fBcortex\-a72\fR,
12199 \&\fBcortex\-r4\fR,
12200 \&\fBcortex\-r4f\fR, \fBcortex\-r5\fR, \fBcortex\-r7\fR, \fBcortex\-m7\fR,
12201 \&\fBcortex\-m4\fR,
12202 \&\fBcortex\-m3\fR,
12203 \&\fBcortex\-m1\fR,
12204 \&\fBcortex\-m0\fR,
12205 \&\fBcortex\-m0plus\fR,
12206 \&\fBcortex\-m1.small\-multiply\fR,
12207 \&\fBcortex\-m0.small\-multiply\fR,
12208 \&\fBcortex\-m0plus.small\-multiply\fR,
12209 \&\fBexynos\-m1\fR,
12210 \&\fBmarvell\-pj4\fR,
12211 \&\fBxscale\fR, \fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR,
12212 \&\fBfa526\fR, \fBfa626\fR,
12213 \&\fBfa606te\fR, \fBfa626te\fR, \fBfmp626\fR, \fBfa726te\fR,
12214 \&\fBxgene1\fR.
12215 .Sp
12216 Additionally, this option can specify that \s-1GCC\s0 should tune the performance
12217 of the code for a big.LITTLE system.  Permissible names are:
12218 \&\fBcortex\-a15.cortex\-a7\fR, \fBcortex\-a57.cortex\-a53\fR,
12219 \&\fBcortex\-a72.cortex\-a53\fR.
12220 .Sp
12221 \&\fB\-mtune=generic\-\fR\fIarch\fR specifies that \s-1GCC\s0 should tune the
12222 performance for a blend of processors within architecture \fIarch\fR.
12223 The aim is to generate code that run well on the current most popular
12224 processors, balancing between optimizations that benefit some CPUs in the
12225 range, and avoiding performance pitfalls of other CPUs.  The effects of
12226 this option may change in future \s-1GCC\s0 versions as \s-1CPU\s0 models come and go.
12227 .Sp
12228 \&\fB\-mtune=native\fR causes the compiler to auto-detect the \s-1CPU\s0
12229 of the build computer.  At present, this feature is only supported on
12230 GNU/Linux, and not all architectures are recognized.  If the auto-detect is
12231 unsuccessful the option has no effect.
12232 .IP "\fB\-mcpu=\fR\fIname\fR" 4
12233 .IX Item "-mcpu=name"
12234 This specifies the name of the target \s-1ARM\s0 processor.  \s-1GCC\s0 uses this name
12235 to derive the name of the target \s-1ARM\s0 architecture (as if specified
12236 by \fB\-march\fR) and the \s-1ARM\s0 processor type for which to tune for
12237 performance (as if specified by \fB\-mtune\fR).  Where this option
12238 is used in conjunction with \fB\-march\fR or \fB\-mtune\fR,
12239 those options take precedence over the appropriate part of this option.
12240 .Sp
12241 Permissible names for this option are the same as those for
12242 \&\fB\-mtune\fR.
12243 .Sp
12244 \&\fB\-mcpu=generic\-\fR\fIarch\fR is also permissible, and is
12245 equivalent to \fB\-march=\fR\fIarch\fR \fB\-mtune=generic\-\fR\fIarch\fR.
12246 See \fB\-mtune\fR for more information.
12247 .Sp
12248 \&\fB\-mcpu=native\fR causes the compiler to auto-detect the \s-1CPU\s0
12249 of the build computer.  At present, this feature is only supported on
12250 GNU/Linux, and not all architectures are recognized.  If the auto-detect
12251 is unsuccessful the option has no effect.
12252 .IP "\fB\-mfpu=\fR\fIname\fR" 4
12253 .IX Item "-mfpu=name"
12254 This specifies what floating-point hardware (or hardware emulation) is
12255 available on the target.  Permissible names are: \fBvfp\fR, \fBvfpv3\fR,
12256 \&\fBvfpv3\-fp16\fR, \fBvfpv3\-d16\fR, \fBvfpv3\-d16\-fp16\fR, \fBvfpv3xd\fR,
12257 \&\fBvfpv3xd\-fp16\fR, \fBneon\fR, \fBneon\-fp16\fR, \fBvfpv4\fR,
12258 \&\fBvfpv4\-d16\fR, \fBfpv4\-sp\-d16\fR, \fBneon\-vfpv4\fR,
12259 \&\fBfpv5\-d16\fR, \fBfpv5\-sp\-d16\fR,
12260 \&\fBfp\-armv8\fR, \fBneon\-fp\-armv8\fR, and \fBcrypto\-neon\-fp\-armv8\fR.
12261 .Sp
12262 If \fB\-msoft\-float\fR is specified this specifies the format of
12263 floating-point values.
12264 .Sp
12265 If the selected floating-point hardware includes the \s-1NEON\s0 extension
12266 (e.g. \fB\-mfpu\fR=\fBneon\fR), note that floating-point
12267 operations are not generated by \s-1GCC\s0's auto-vectorization pass unless
12268 \&\fB\-funsafe\-math\-optimizations\fR is also specified.  This is
12269 because \s-1NEON\s0 hardware does not fully implement the \s-1IEEE 754\s0 standard for
12270 floating-point arithmetic (in particular denormal values are treated as
12271 zero), so the use of \s-1NEON\s0 instructions may lead to a loss of precision.
12272 .IP "\fB\-mfp16\-format=\fR\fIname\fR" 4
12273 .IX Item "-mfp16-format=name"
12274 Specify the format of the \f(CW\*(C`_\|_fp16\*(C'\fR half-precision floating-point type.
12275 Permissible names are \fBnone\fR, \fBieee\fR, and \fBalternative\fR;
12276 the default is \fBnone\fR, in which case the \f(CW\*(C`_\|_fp16\*(C'\fR type is not
12277 defined.
12278 .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
12279 .IX Item "-mstructure-size-boundary=n"
12280 The sizes of all structures and unions are rounded up to a multiple
12281 of the number of bits set by this option.  Permissible values are 8, 32
12282 and 64.  The default value varies for different toolchains.  For the \s-1COFF\s0
12283 targeted toolchain the default value is 8.  A value of 64 is only allowed
12284 if the underlying \s-1ABI\s0 supports it.
12285 .Sp
12286 Specifying a larger number can produce faster, more efficient code, but
12287 can also increase the size of the program.  Different values are potentially
12288 incompatible.  Code compiled with one value cannot necessarily expect to
12289 work with code or libraries compiled with another value, if they exchange
12290 information using structures or unions.
12291 .IP "\fB\-mabort\-on\-noreturn\fR" 4
12292 .IX Item "-mabort-on-noreturn"
12293 Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
12294 \&\f(CW\*(C`noreturn\*(C'\fR function.  It is executed if the function tries to
12295 return.
12296 .IP "\fB\-mlong\-calls\fR" 4
12297 .IX Item "-mlong-calls"
12298 .PD 0
12299 .IP "\fB\-mno\-long\-calls\fR" 4
12300 .IX Item "-mno-long-calls"
12301 .PD
12302 Tells the compiler to perform function calls by first loading the
12303 address of the function into a register and then performing a subroutine
12304 call on this register.  This switch is needed if the target function
12305 lies outside of the 64\-megabyte addressing range of the offset-based
12306 version of subroutine call instruction.
12307 .Sp
12308 Even if this switch is enabled, not all function calls are turned
12309 into long calls.  The heuristic is that static functions, functions
12310 that have the \f(CW\*(C`short_call\*(C'\fR attribute, functions that are inside
12311 the scope of a \f(CW\*(C`#pragma no_long_calls\*(C'\fR directive, and functions whose
12312 definitions have already been compiled within the current compilation
12313 unit are not turned into long calls.  The exceptions to this rule are
12314 that weak function definitions, functions with the \f(CW\*(C`long_call\*(C'\fR
12315 attribute or the \f(CW\*(C`section\*(C'\fR attribute, and functions that are within
12316 the scope of a \f(CW\*(C`#pragma long_calls\*(C'\fR directive are always
12317 turned into long calls.
12318 .Sp
12319 This feature is not enabled by default.  Specifying
12320 \&\fB\-mno\-long\-calls\fR restores the default behavior, as does
12321 placing the function calls within the scope of a \f(CW\*(C`#pragma
12322 long_calls_off\*(C'\fR directive.  Note these switches have no effect on how
12323 the compiler generates code to handle function calls via function
12324 pointers.
12325 .IP "\fB\-msingle\-pic\-base\fR" 4
12326 .IX Item "-msingle-pic-base"
12327 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
12328 loading it in the prologue for each function.  The runtime system is
12329 responsible for initializing this register with an appropriate value
12330 before execution begins.
12331 .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
12332 .IX Item "-mpic-register=reg"
12333 Specify the register to be used for \s-1PIC\s0 addressing.
12334 For standard \s-1PIC\s0 base case, the default is any suitable register
12335 determined by compiler.  For single \s-1PIC\s0 base case, the default is
12336 \&\fBR9\fR if target is \s-1EABI\s0 based or stack-checking is enabled,
12337 otherwise the default is \fBR10\fR.
12338 .IP "\fB\-mpic\-data\-is\-text\-relative\fR" 4
12339 .IX Item "-mpic-data-is-text-relative"
12340 Assume that each data segments are relative to text segment at load time.
12341 Therefore, it permits addressing data using PC-relative operations.
12342 This option is on by default for targets other than VxWorks \s-1RTP.\s0
12343 .IP "\fB\-mpoke\-function\-name\fR" 4
12344 .IX Item "-mpoke-function-name"
12345 Write the name of each function into the text section, directly
12346 preceding the function prologue.  The generated code is similar to this:
12347 .Sp
12348 .Vb 9
12349 \&             t0
12350 \&                 .ascii "arm_poke_function_name", 0
12351 \&                 .align
12352 \&             t1
12353 \&                 .word 0xff000000 + (t1 \- t0)
12354 \&             arm_poke_function_name
12355 \&                 mov     ip, sp
12356 \&                 stmfd   sp!, {fp, ip, lr, pc}
12357 \&                 sub     fp, ip, #4
12358 .Ve
12359 .Sp
12360 When performing a stack backtrace, code can inspect the value of
12361 \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR.  If the trace function then looks at
12362 location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
12363 there is a function name embedded immediately preceding this location
12364 and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
12365 .IP "\fB\-mthumb\fR" 4
12366 .IX Item "-mthumb"
12367 .PD 0
12368 .IP "\fB\-marm\fR" 4
12369 .IX Item "-marm"
12370 .PD
12371 Select between generating code that executes in \s-1ARM\s0 and Thumb
12372 states.  The default for most configurations is to generate code
12373 that executes in \s-1ARM\s0 state, but the default can be changed by
12374 configuring \s-1GCC\s0 with the \fB\-\-with\-mode=\fR\fIstate\fR
12375 configure option.
12376 .IP "\fB\-mtpcs\-frame\fR" 4
12377 .IX Item "-mtpcs-frame"
12378 Generate a stack frame that is compliant with the Thumb Procedure Call
12379 Standard for all non-leaf functions.  (A leaf function is one that does
12380 not call any other functions.)  The default is \fB\-mno\-tpcs\-frame\fR.
12381 .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
12382 .IX Item "-mtpcs-leaf-frame"
12383 Generate a stack frame that is compliant with the Thumb Procedure Call
12384 Standard for all leaf functions.  (A leaf function is one that does
12385 not call any other functions.)  The default is \fB\-mno\-apcs\-leaf\-frame\fR.
12386 .IP "\fB\-mcallee\-super\-interworking\fR" 4
12387 .IX Item "-mcallee-super-interworking"
12388 Gives all externally visible functions in the file being compiled an \s-1ARM\s0
12389 instruction set header which switches to Thumb mode before executing the
12390 rest of the function.  This allows these functions to be called from
12391 non-interworking code.  This option is not valid in \s-1AAPCS\s0 configurations
12392 because interworking is enabled by default.
12393 .IP "\fB\-mcaller\-super\-interworking\fR" 4
12394 .IX Item "-mcaller-super-interworking"
12395 Allows calls via function pointers (including virtual functions) to
12396 execute correctly regardless of whether the target code has been
12397 compiled for interworking or not.  There is a small overhead in the cost
12398 of executing a function pointer if this option is enabled.  This option
12399 is not valid in \s-1AAPCS\s0 configurations because interworking is enabled
12400 by default.
12401 .IP "\fB\-mtp=\fR\fIname\fR" 4
12402 .IX Item "-mtp=name"
12403 Specify the access model for the thread local storage pointer.  The valid
12404 models are \fBsoft\fR, which generates calls to \f(CW\*(C`_\|_aeabi_read_tp\*(C'\fR,
12405 \&\fBcp15\fR, which fetches the thread pointer from \f(CW\*(C`cp15\*(C'\fR directly
12406 (supported in the arm6k architecture), and \fBauto\fR, which uses the
12407 best available method for the selected processor.  The default setting is
12408 \&\fBauto\fR.
12409 .IP "\fB\-mtls\-dialect=\fR\fIdialect\fR" 4
12410 .IX Item "-mtls-dialect=dialect"
12411 Specify the dialect to use for accessing thread local storage.  Two
12412 \&\fIdialect\fRs are supported\-\-\-\fBgnu\fR and \fBgnu2\fR.  The
12413 \&\fBgnu\fR dialect selects the original \s-1GNU\s0 scheme for supporting
12414 local and global dynamic \s-1TLS\s0 models.  The \fBgnu2\fR dialect
12415 selects the \s-1GNU\s0 descriptor scheme, which provides better performance
12416 for shared libraries.  The \s-1GNU\s0 descriptor scheme is compatible with
12417 the original scheme, but does require new assembler, linker and
12418 library support.  Initial and local exec \s-1TLS\s0 models are unaffected by
12419 this option and always use the original scheme.
12420 .IP "\fB\-mword\-relocations\fR" 4
12421 .IX Item "-mword-relocations"
12422 Only generate absolute relocations on word-sized values (i.e. R_ARM_ABS32).
12423 This is enabled by default on targets (uClinux, SymbianOS) where the runtime
12424 loader imposes this restriction, and when \fB\-fpic\fR or \fB\-fPIC\fR
12425 is specified.
12426 .IP "\fB\-mfix\-cortex\-m3\-ldrd\fR" 4
12427 .IX Item "-mfix-cortex-m3-ldrd"
12428 Some Cortex\-M3 cores can cause data corruption when \f(CW\*(C`ldrd\*(C'\fR instructions
12429 with overlapping destination and base registers are used.  This option avoids
12430 generating these instructions.  This option is enabled by default when
12431 \&\fB\-mcpu=cortex\-m3\fR is specified.
12432 .IP "\fB\-munaligned\-access\fR" 4
12433 .IX Item "-munaligned-access"
12434 .PD 0
12435 .IP "\fB\-mno\-unaligned\-access\fR" 4
12436 .IX Item "-mno-unaligned-access"
12437 .PD
12438 Enables (or disables) reading and writing of 16\- and 32\- bit values
12439 from addresses that are not 16\- or 32\- bit aligned.  By default
12440 unaligned access is disabled for all pre\-ARMv6 and all ARMv6\-M
12441 architectures, and enabled for all other architectures.  If unaligned
12442 access is not enabled then words in packed data structures are
12443 accessed a byte at a time.
12444 .Sp
12445 The \s-1ARM\s0 attribute \f(CW\*(C`Tag_CPU_unaligned_access\*(C'\fR is set in the
12446 generated object file to either true or false, depending upon the
12447 setting of this option.  If unaligned access is enabled then the
12448 preprocessor symbol \f(CW\*(C`_\|_ARM_FEATURE_UNALIGNED\*(C'\fR is also
12449 defined.
12450 .IP "\fB\-mneon\-for\-64bits\fR" 4
12451 .IX Item "-mneon-for-64bits"
12452 Enables using Neon to handle scalar 64\-bits operations. This is
12453 disabled by default since the cost of moving data from core registers
12454 to Neon is high.
12455 .IP "\fB\-mslow\-flash\-data\fR" 4
12456 .IX Item "-mslow-flash-data"
12457 Assume loading data from flash is slower than fetching instruction.
12458 Therefore literal load is minimized for better performance.
12459 This option is only supported when compiling for ARMv7 M\-profile and
12460 off by default.
12461 .IP "\fB\-masm\-syntax\-unified\fR" 4
12462 .IX Item "-masm-syntax-unified"
12463 Assume inline assembler is using unified asm syntax.  The default is
12464 currently off which implies divided syntax.  Currently this option is
12465 available only for Thumb1 and has no effect on \s-1ARM\s0 state and Thumb2.
12466 However, this may change in future releases of \s-1GCC. \s0 Divided syntax
12467 should be considered deprecated.
12468 .IP "\fB\-mrestrict\-it\fR" 4
12469 .IX Item "-mrestrict-it"
12470 Restricts generation of \s-1IT\s0 blocks to conform to the rules of ARMv8.
12471 \&\s-1IT\s0 blocks can only contain a single 16\-bit instruction from a select
12472 set of instructions. This option is on by default for ARMv8 Thumb mode.
12473 .IP "\fB\-mprint\-tune\-info\fR" 4
12474 .IX Item "-mprint-tune-info"
12475 Print \s-1CPU\s0 tuning information as comment in assembler file.  This is
12476 an option used only for regression testing of the compiler and not
12477 intended for ordinary use in compiling code.  This option is disabled
12478 by default.
12479 .PP
12480 \fI\s-1AVR\s0 Options\fR
12481 .IX Subsection "AVR Options"
12482 .PP
12483 These options are defined for \s-1AVR\s0 implementations:
12484 .IP "\fB\-mmcu=\fR\fImcu\fR" 4
12485 .IX Item "-mmcu=mcu"
12486 Specify Atmel \s-1AVR\s0 instruction set architectures (\s-1ISA\s0) or \s-1MCU\s0 type.
12487 .Sp
12488 The default for this option is@tie{}\fBavr2\fR.
12489 .Sp
12490 \&\s-1GCC\s0 supports the following \s-1AVR\s0 devices and ISAs:
12491 .RS 4
12492 .ie n .IP """avr2""" 4
12493 .el .IP "\f(CWavr2\fR" 4
12494 .IX Item "avr2"
12495 \&\*(L"Classic\*(R" devices with up to 8@tie{}KiB of program memory.
12496 \&\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.
12497 .ie n .IP """avr25""" 4
12498 .el .IP "\f(CWavr25\fR" 4
12499 .IX Item "avr25"
12500 \&\*(L"Classic\*(R" devices with up to 8@tie{}KiB of program memory and with the \f(CW\*(C`MOVW\*(C'\fR instruction.
12501 \&\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.
12502 .ie n .IP """avr3""" 4
12503 .el .IP "\f(CWavr3\fR" 4
12504 .IX Item "avr3"
12505 \&\*(L"Classic\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of  program memory.
12506 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`at43usb355\*(C'\fR, \f(CW\*(C`at76c711\*(C'\fR.
12507 .ie n .IP """avr31""" 4
12508 .el .IP "\f(CWavr31\fR" 4
12509 .IX Item "avr31"
12510 \&\*(L"Classic\*(R" devices with 128@tie{}KiB of program memory.
12511 \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atmega103\*(C'\fR, \f(CW\*(C`at43usb320\*(C'\fR.
12512 .ie n .IP """avr35""" 4
12513 .el .IP "\f(CWavr35\fR" 4
12514 .IX Item "avr35"
12515 \&\*(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.
12516 \&\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.
12517 .ie n .IP """avr4""" 4
12518 .el .IP "\f(CWavr4\fR" 4
12519 .IX Item "avr4"
12520 \&\*(L"Enhanced\*(R" devices with up to 8@tie{}KiB of program memory.
12521 \&\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.
12522 .ie n .IP """avr5""" 4
12523 .el .IP "\f(CWavr5\fR" 4
12524 .IX Item "avr5"
12525 \&\*(L"Enhanced\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of program memory.
12526 \&\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.
12527 .ie n .IP """avr51""" 4
12528 .el .IP "\f(CWavr51\fR" 4
12529 .IX Item "avr51"
12530 \&\*(L"Enhanced\*(R" devices with 128@tie{}KiB of program memory.
12531 \&\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.
12532 .ie n .IP """avr6""" 4
12533 .el .IP "\f(CWavr6\fR" 4
12534 .IX Item "avr6"
12535 \&\*(L"Enhanced\*(R" devices with 3\-byte \s-1PC,\s0 i.e. with more than 128@tie{}KiB of program memory.
12536 \&\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.
12537 .ie n .IP """avrxmega2""" 4
12538 .el .IP "\f(CWavrxmega2\fR" 4
12539 .IX Item "avrxmega2"
12540 \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 8@tie{}KiB and up to 64@tie{}KiB of program memory.
12541 \&\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.
12542 .ie n .IP """avrxmega4""" 4
12543 .el .IP "\f(CWavrxmega4\fR" 4
12544 .IX Item "avrxmega4"
12545 \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 64@tie{}KiB and up to 128@tie{}KiB of program memory.
12546 \&\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.
12547 .ie n .IP """avrxmega5""" 4
12548 .el .IP "\f(CWavrxmega5\fR" 4
12549 .IX Item "avrxmega5"
12550 \&\*(L"\s-1XMEGA\*(R"\s0 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.
12551 \&\s0\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega64a1\*(C'\fR, \f(CW\*(C`atxmega64a1u\*(C'\fR.
12552 .ie n .IP """avrxmega6""" 4
12553 .el .IP "\f(CWavrxmega6\fR" 4
12554 .IX Item "avrxmega6"
12555 \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 128@tie{}KiB of program memory.
12556 \&\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.
12557 .ie n .IP """avrxmega7""" 4
12558 .el .IP "\f(CWavrxmega7\fR" 4
12559 .IX Item "avrxmega7"
12560 \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 128@tie{}KiB of program memory and more than 64@tie{}KiB of \s-1RAM.
12561 \&\s0\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega128a1\*(C'\fR, \f(CW\*(C`atxmega128a1u\*(C'\fR, \f(CW\*(C`atxmega128a4u\*(C'\fR.
12562 .ie n .IP """avrtiny""" 4
12563 .el .IP "\f(CWavrtiny\fR" 4
12564 .IX Item "avrtiny"
12565 \&\*(L"\s-1TINY\*(R"\s0 Tiny core devices with 512@tie{}B up to 4@tie{}KiB of program memory.
12566 \&\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.
12567 .ie n .IP """avr1""" 4
12568 .el .IP "\f(CWavr1\fR" 4
12569 .IX Item "avr1"
12570 This \s-1ISA\s0 is implemented by the minimal \s-1AVR\s0 core and supported for assembler only.
12571 \&\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.
12572 .RE
12573 .RS 4
12574 .RE
12575 .IP "\fB\-maccumulate\-args\fR" 4
12576 .IX Item "-maccumulate-args"
12577 Accumulate outgoing function arguments and acquire/release the needed
12578 stack space for outgoing function arguments once in function
12579 prologue/epilogue.  Without this option, outgoing arguments are pushed
12580 before calling a function and popped afterwards.
12581 .Sp
12582 Popping the arguments after the function call can be expensive on
12583 \&\s-1AVR\s0 so that accumulating the stack space might lead to smaller
12584 executables because arguments need not to be removed from the
12585 stack after such a function call.
12586 .Sp
12587 This option can lead to reduced code size for functions that perform
12588 several calls to functions that get their arguments on the stack like
12589 calls to printf-like functions.
12590 .IP "\fB\-mbranch\-cost=\fR\fIcost\fR" 4
12591 .IX Item "-mbranch-cost=cost"
12592 Set the branch costs for conditional branch instructions to
12593 \&\fIcost\fR.  Reasonable values for \fIcost\fR are small, non-negative
12594 integers. The default branch cost is 0.
12595 .IP "\fB\-mcall\-prologues\fR" 4
12596 .IX Item "-mcall-prologues"
12597 Functions prologues/epilogues are expanded as calls to appropriate
12598 subroutines.  Code size is smaller.
12599 .IP "\fB\-mint8\fR" 4
12600 .IX Item "-mint8"
12601 Assume \f(CW\*(C`int\*(C'\fR to be 8\-bit integer.  This affects the sizes of all types: a
12602 \&\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,
12603 and \f(CW\*(C`long long\*(C'\fR is 4 bytes.  Please note that this option does not
12604 conform to the C standards, but it results in smaller code
12605 size.
12606 .IP "\fB\-mn\-flash=\fR\fInum\fR" 4
12607 .IX Item "-mn-flash=num"
12608 Assume that the flash memory has a size of 
12609 \&\fInum\fR times 64@tie{}KiB.
12610 .IP "\fB\-mno\-interrupts\fR" 4
12611 .IX Item "-mno-interrupts"
12612 Generated code is not compatible with hardware interrupts.
12613 Code size is smaller.
12614 .IP "\fB\-mrelax\fR" 4
12615 .IX Item "-mrelax"
12616 Try to replace \f(CW\*(C`CALL\*(C'\fR resp. \f(CW\*(C`JMP\*(C'\fR instruction by the shorter
12617 \&\f(CW\*(C`RCALL\*(C'\fR resp. \f(CW\*(C`RJMP\*(C'\fR instruction if applicable.
12618 Setting \fB\-mrelax\fR just adds the \fB\-\-mlink\-relax\fR option to
12619 the assembler's command line and the \fB\-\-relax\fR option to the
12620 linker's command line.
12621 .Sp
12622 Jump relaxing is performed by the linker because jump offsets are not
12623 known before code is located. Therefore, the assembler code generated by the
12624 compiler is the same, but the instructions in the executable may
12625 differ from instructions in the assembler code.
12626 .Sp
12627 Relaxing must be turned on if linker stubs are needed, see the
12628 section on \f(CW\*(C`EIND\*(C'\fR and linker stubs below.
12629 .IP "\fB\-mrmw\fR" 4
12630 .IX Item "-mrmw"
12631 Assume that the device supports the Read-Modify-Write
12632 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.
12633 .IP "\fB\-msp8\fR" 4
12634 .IX Item "-msp8"
12635 Treat the stack pointer register as an 8\-bit register,
12636 i.e. assume the high byte of the stack pointer is zero.
12637 In general, you don't need to set this option by hand.
12638 .Sp
12639 This option is used internally by the compiler to select and
12640 build multilibs for architectures \f(CW\*(C`avr2\*(C'\fR and \f(CW\*(C`avr25\*(C'\fR.
12641 These architectures mix devices with and without \f(CW\*(C`SPH\*(C'\fR.
12642 For any setting other than \fB\-mmcu=avr2\fR or \fB\-mmcu=avr25\fR
12643 the compiler driver adds or removes this option from the compiler
12644 proper's command line, because the compiler then knows if the device
12645 or architecture has an 8\-bit stack pointer and thus no \f(CW\*(C`SPH\*(C'\fR
12646 register or not.
12647 .IP "\fB\-mstrict\-X\fR" 4
12648 .IX Item "-mstrict-X"
12649 Use address register \f(CW\*(C`X\*(C'\fR in a way proposed by the hardware.  This means
12650 that \f(CW\*(C`X\*(C'\fR is only used in indirect, post-increment or
12651 pre-decrement addressing.
12652 .Sp
12653 Without this option, the \f(CW\*(C`X\*(C'\fR register may be used in the same way
12654 as \f(CW\*(C`Y\*(C'\fR or \f(CW\*(C`Z\*(C'\fR which then is emulated by additional
12655 instructions.  
12656 For example, loading a value with \f(CW\*(C`X+const\*(C'\fR addressing with a
12657 small non-negative \f(CW\*(C`const < 64\*(C'\fR to a register \fIRn\fR is
12658 performed as
12659 .Sp
12660 .Vb 3
12661 \&        adiw r26, const   ; X += const
12662 \&        ld   <Rn>, X        ; <Rn> = *X
12663 \&        sbiw r26, const   ; X \-= const
12664 .Ve
12665 .IP "\fB\-mtiny\-stack\fR" 4
12666 .IX Item "-mtiny-stack"
12667 Only change the lower 8@tie{}bits of the stack pointer.
12668 .IP "\fB\-nodevicelib\fR" 4
12669 .IX Item "-nodevicelib"
12670 Don't link against AVR-LibC's device specific library \f(CW\*(C`libdev.a\*(C'\fR.
12671 .IP "\fB\-Waddr\-space\-convert\fR" 4
12672 .IX Item "-Waddr-space-convert"
12673 Warn about conversions between address spaces in the case where the
12674 resulting address space is not contained in the incoming address space.
12675 .PP
12676 \f(CW\*(C`EIND\*(C'\fR and Devices with More Than 128 Ki Bytes of Flash
12677 .IX Subsection "EIND and Devices with More Than 128 Ki Bytes of Flash"
12678 .PP
12679 Pointers in the implementation are 16@tie{}bits wide.
12680 The address of a function or label is represented as word address so
12681 that indirect jumps and calls can target any code address in the
12682 range of 64@tie{}Ki words.
12683 .PP
12684 In order to facilitate indirect jump on devices with more than 128@tie{}Ki
12685 bytes of program memory space, there is a special function register called
12686 \&\f(CW\*(C`EIND\*(C'\fR that serves as most significant part of the target address
12687 when \f(CW\*(C`EICALL\*(C'\fR or \f(CW\*(C`EIJMP\*(C'\fR instructions are used.
12688 .PP
12689 Indirect jumps and calls on these devices are handled as follows by
12690 the compiler and are subject to some limitations:
12691 .IP "*" 4
12692 The compiler never sets \f(CW\*(C`EIND\*(C'\fR.
12693 .IP "*" 4
12694 The compiler uses \f(CW\*(C`EIND\*(C'\fR implicitely in \f(CW\*(C`EICALL\*(C'\fR/\f(CW\*(C`EIJMP\*(C'\fR
12695 instructions or might read \f(CW\*(C`EIND\*(C'\fR directly in order to emulate an
12696 indirect call/jump by means of a \f(CW\*(C`RET\*(C'\fR instruction.
12697 .IP "*" 4
12698 The compiler assumes that \f(CW\*(C`EIND\*(C'\fR never changes during the startup
12699 code or during the application. In particular, \f(CW\*(C`EIND\*(C'\fR is not
12700 saved/restored in function or interrupt service routine
12701 prologue/epilogue.
12702 .IP "*" 4
12703 For indirect calls to functions and computed goto, the linker
12704 generates \fIstubs\fR. Stubs are jump pads sometimes also called
12705 \&\fItrampolines\fR. Thus, the indirect call/jump jumps to such a stub.
12706 The stub contains a direct jump to the desired address.
12707 .IP "*" 4
12708 Linker relaxation must be turned on so that the linker generates
12709 the stubs correctly in all situations. See the compiler option
12710 \&\fB\-mrelax\fR and the linker option \fB\-\-relax\fR.
12711 There are corner cases where the linker is supposed to generate stubs
12712 but aborts without relaxation and without a helpful error message.
12713 .IP "*" 4
12714 The default linker script is arranged for code with \f(CW\*(C`EIND = 0\*(C'\fR.
12715 If code is supposed to work for a setup with \f(CW\*(C`EIND != 0\*(C'\fR, a custom
12716 linker script has to be used in order to place the sections whose
12717 name start with \f(CW\*(C`.trampolines\*(C'\fR into the segment where \f(CW\*(C`EIND\*(C'\fR
12718 points to.
12719 .IP "*" 4
12720 The startup code from libgcc never sets \f(CW\*(C`EIND\*(C'\fR.
12721 Notice that startup code is a blend of code from libgcc and AVR-LibC.
12722 For the impact of AVR-LibC on \f(CW\*(C`EIND\*(C'\fR, see the
12723 AVR-LibC\ user\ manual (\f(CW\*(C`http://nongnu.org/avr\-libc/user\-manual/\*(C'\fR).
12724 .IP "*" 4
12725 It is legitimate for user-specific startup code to set up \f(CW\*(C`EIND\*(C'\fR
12726 early, for example by means of initialization code located in
12727 section \f(CW\*(C`.init3\*(C'\fR. Such code runs prior to general startup code
12728 that initializes \s-1RAM\s0 and calls constructors, but after the bit
12729 of startup code from AVR-LibC that sets \f(CW\*(C`EIND\*(C'\fR to the segment
12730 where the vector table is located.
12731 .Sp
12732 .Vb 1
12733 \&        #include <avr/io.h>
12734 \&        
12735 \&        static void
12736 \&        _\|_attribute_\|_((section(".init3"),naked,used,no_instrument_function))
12737 \&        init3_set_eind (void)
12738 \&        {
12739 \&          _\|_asm volatile ("ldi r24,pm_hh8(_\|_trampolines_start)\en\et"
12740 \&                          "out %i0,r24" :: "n" (&EIND) : "r24","memory");
12741 \&        }
12742 .Ve
12743 .Sp
12744 The \f(CW\*(C`_\|_trampolines_start\*(C'\fR symbol is defined in the linker script.
12745 .IP "*" 4
12746 Stubs are generated automatically by the linker if
12747 the following two conditions are met:
12748 .RS 4
12749 .ie n .IP "\-<The address of a label is taken by means of the ""gs"" modifier>" 4
12750 .el .IP "\-<The address of a label is taken by means of the \f(CWgs\fR modifier>" 4
12751 .IX Item "-<The address of a label is taken by means of the gs modifier>"
12752 (short for \fIgenerate stubs\fR) like so:
12753 .Sp
12754 .Vb 2
12755 \&        LDI r24, lo8(gs(<func>))
12756 \&        LDI r25, hi8(gs(<func>))
12757 .Ve
12758 .IP "\-<The final location of that label is in a code segment>" 4
12759 .IX Item "-<The final location of that label is in a code segment>"
12760 \&\fIoutside\fR the segment where the stubs are located.
12761 .RE
12762 .RS 4
12763 .RE
12764 .IP "*" 4
12765 The compiler emits such \f(CW\*(C`gs\*(C'\fR modifiers for code labels in the
12766 following situations:
12767 .RS 4
12768 .IP "\-<Taking address of a function or code label.>" 4
12769 .IX Item "-<Taking address of a function or code label.>"
12770 .PD 0
12771 .IP "\-<Computed goto.>" 4
12772 .IX Item "-<Computed goto.>"
12773 .IP "\-<If prologue-save function is used, see \fB\-mcall\-prologues\fR>" 4
12774 .IX Item "-<If prologue-save function is used, see -mcall-prologues>"
12775 .PD
12776 command-line option.
12777 .IP "\-<Switch/case dispatch tables. If you do not want such dispatch>" 4
12778 .IX Item "-<Switch/case dispatch tables. If you do not want such dispatch>"
12779 tables you can specify the \fB\-fno\-jump\-tables\fR command-line option.
12780 .IP "\-<C and \*(C+ constructors/destructors called during startup/shutdown.>" 4
12781 .IX Item "-<C and constructors/destructors called during startup/shutdown.>"
12782 .PD 0
12783 .ie n .IP "\-<If the tools hit a ""gs()"" modifier explained above.>" 4
12784 .el .IP "\-<If the tools hit a \f(CWgs()\fR modifier explained above.>" 4
12785 .IX Item "-<If the tools hit a gs() modifier explained above.>"
12786 .RE
12787 .RS 4
12788 .RE
12789 .IP "*" 4
12790 .PD
12791 Jumping to non-symbolic addresses like so is \fInot\fR supported:
12792 .Sp
12793 .Vb 5
12794 \&        int main (void)
12795 \&        {
12796 \&            /* Call function at word address 0x2 */
12797 \&            return ((int(*)(void)) 0x2)();
12798 \&        }
12799 .Ve
12800 .Sp
12801 Instead, a stub has to be set up, i.e. the function has to be called
12802 through a symbol (\f(CW\*(C`func_4\*(C'\fR in the example):
12803 .Sp
12804 .Vb 3
12805 \&        int main (void)
12806 \&        {
12807 \&            extern int func_4 (void);
12808 \&        
12809 \&            /* Call function at byte address 0x4 */
12810 \&            return func_4();
12811 \&        }
12812 .Ve
12813 .Sp
12814 and the application be linked with \fB\-Wl,\-\-defsym,func_4=0x4\fR.
12815 Alternatively, \f(CW\*(C`func_4\*(C'\fR can be defined in the linker script.
12816 .PP
12817 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
12818 .IX Subsection "Handling of the RAMPD, RAMPX, RAMPY and RAMPZ Special Function Registers"
12819 .PP
12820 Some \s-1AVR\s0 devices support memories larger than the 64@tie{}KiB range
12821 that can be accessed with 16\-bit pointers.  To access memory locations
12822 outside this 64@tie{}KiB range, the contentent of a \f(CW\*(C`RAMP\*(C'\fR
12823 register is used as high part of the address:
12824 The \f(CW\*(C`X\*(C'\fR, \f(CW\*(C`Y\*(C'\fR, \f(CW\*(C`Z\*(C'\fR address register is concatenated
12825 with the \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR, \f(CW\*(C`RAMPZ\*(C'\fR special function
12826 register, respectively, to get a wide address. Similarly,
12827 \&\f(CW\*(C`RAMPD\*(C'\fR is used together with direct addressing.
12828 .IP "*" 4
12829 The startup code initializes the \f(CW\*(C`RAMP\*(C'\fR special function
12830 registers with zero.
12831 .IP "*" 4
12832 If a \fB\s-1AVR\s0 Named Address Spaces,named address space\fR other than
12833 generic or \f(CW\*(C`_\|_flash\*(C'\fR is used, then \f(CW\*(C`RAMPZ\*(C'\fR is set
12834 as needed before the operation.
12835 .IP "*" 4
12836 If the device supports \s-1RAM\s0 larger than 64@tie{}KiB and the compiler
12837 needs to change \f(CW\*(C`RAMPZ\*(C'\fR to accomplish an operation, \f(CW\*(C`RAMPZ\*(C'\fR
12838 is reset to zero after the operation.
12839 .IP "*" 4
12840 If the device comes with a specific \f(CW\*(C`RAMP\*(C'\fR register, the \s-1ISR\s0
12841 prologue/epilogue saves/restores that \s-1SFR\s0 and initializes it with
12842 zero in case the \s-1ISR\s0 code might (implicitly) use it.
12843 .IP "*" 4
12844 \&\s-1RAM\s0 larger than 64@tie{}KiB is not supported by \s-1GCC\s0 for \s-1AVR\s0 targets.
12845 If you use inline assembler to read from locations outside the
12846 16\-bit address range and change one of the \f(CW\*(C`RAMP\*(C'\fR registers,
12847 you must reset it to zero after the access.
12848 .PP
12849 \s-1AVR\s0 Built-in Macros
12850 .IX Subsection "AVR Built-in Macros"
12851 .PP
12852 \&\s-1GCC\s0 defines several built-in macros so that the user code can test
12853 for the presence or absence of features.  Almost any of the following
12854 built-in macros are deduced from device capabilities and thus
12855 triggered by the \fB\-mmcu=\fR command-line option.
12856 .PP
12857 For even more AVR-specific built-in macros see
12858 \&\fB\s-1AVR\s0 Named Address Spaces\fR and \fB\s-1AVR\s0 Built-in Functions\fR.
12859 .ie n .IP """_\|_AVR_ARCH_\|_""" 4
12860 .el .IP "\f(CW_\|_AVR_ARCH_\|_\fR" 4
12861 .IX Item "__AVR_ARCH__"
12862 Build-in macro that resolves to a decimal number that identifies the
12863 architecture and depends on the \fB\-mmcu=\fR\fImcu\fR option.
12864 Possible values are:
12865 .Sp
12866 \&\f(CW2\fR, \f(CW25\fR, \f(CW3\fR, \f(CW31\fR, \f(CW35\fR,
12867 \&\f(CW4\fR, \f(CW5\fR, \f(CW51\fR, \f(CW6\fR
12868 .Sp
12869 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,
12870 \&\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,
12871 .Sp
12872 respectively and
12873 .Sp
12874 \&\f(CW100\fR, \f(CW102\fR, \f(CW104\fR,
12875 \&\f(CW105\fR, \f(CW106\fR, \f(CW107\fR
12876 .Sp
12877 for \fImcu\fR=\f(CW\*(C`avrtiny\*(C'\fR, \f(CW\*(C`avrxmega2\*(C'\fR, \f(CW\*(C`avrxmega4\*(C'\fR,
12878 \&\f(CW\*(C`avrxmega5\*(C'\fR, \f(CW\*(C`avrxmega6\*(C'\fR, \f(CW\*(C`avrxmega7\*(C'\fR, respectively.
12879 If \fImcu\fR specifies a device, this built-in macro is set
12880 accordingly. For example, with \fB\-mmcu=atmega8\fR the macro is
12881 defined to \f(CW4\fR.
12882 .ie n .IP """_\|_AVR_\f(CIDevice\f(CW_\|_""" 4
12883 .el .IP "\f(CW_\|_AVR_\f(CIDevice\f(CW_\|_\fR" 4
12884 .IX Item "__AVR_Device__"
12885 Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro which reflects
12886 the device's name. For example, \fB\-mmcu=atmega8\fR defines the
12887 built-in macro \f(CW\*(C`_\|_AVR_ATmega8_\|_\*(C'\fR, \fB\-mmcu=attiny261a\fR defines
12888 \&\f(CW\*(C`_\|_AVR_ATtiny261A_\|_\*(C'\fR, etc.
12889 .Sp
12890 The built-in macros' names follow
12891 the scheme \f(CW\*(C`_\|_AVR_\f(CIDevice\f(CW_\|_\*(C'\fR where \fIDevice\fR is
12892 the device name as from the \s-1AVR\s0 user manual. The difference between
12893 \&\fIDevice\fR in the built-in macro and \fIdevice\fR in
12894 \&\fB\-mmcu=\fR\fIdevice\fR is that the latter is always lowercase.
12895 .Sp
12896 If \fIdevice\fR is not a device but only a core architecture like
12897 \&\fBavr51\fR, this macro is not defined.
12898 .ie n .IP """_\|_AVR_DEVICE_NAME_\|_""" 4
12899 .el .IP "\f(CW_\|_AVR_DEVICE_NAME_\|_\fR" 4
12900 .IX Item "__AVR_DEVICE_NAME__"
12901 Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro to
12902 the device's name. For example, with \fB\-mmcu=atmega8\fR the macro
12903 is defined to \f(CW\*(C`atmega8\*(C'\fR.
12904 .Sp
12905 If \fIdevice\fR is not a device but only a core architecture like
12906 \&\fBavr51\fR, this macro is not defined.
12907 .ie n .IP """_\|_AVR_XMEGA_\|_""" 4
12908 .el .IP "\f(CW_\|_AVR_XMEGA_\|_\fR" 4
12909 .IX Item "__AVR_XMEGA__"
12910 The device / architecture belongs to the \s-1XMEGA\s0 family of devices.
12911 .ie n .IP """_\|_AVR_HAVE_ELPM_\|_""" 4
12912 .el .IP "\f(CW_\|_AVR_HAVE_ELPM_\|_\fR" 4
12913 .IX Item "__AVR_HAVE_ELPM__"
12914 The device has the the \f(CW\*(C`ELPM\*(C'\fR instruction.
12915 .ie n .IP """_\|_AVR_HAVE_ELPMX_\|_""" 4
12916 .el .IP "\f(CW_\|_AVR_HAVE_ELPMX_\|_\fR" 4
12917 .IX Item "__AVR_HAVE_ELPMX__"
12918 The device has the \f(CW\*(C`ELPM R\f(CIn\f(CW,Z\*(C'\fR and \f(CW\*(C`ELPM
12919 R\f(CIn\f(CW,Z+\*(C'\fR instructions.
12920 .ie n .IP """_\|_AVR_HAVE_MOVW_\|_""" 4
12921 .el .IP "\f(CW_\|_AVR_HAVE_MOVW_\|_\fR" 4
12922 .IX Item "__AVR_HAVE_MOVW__"
12923 The device has the \f(CW\*(C`MOVW\*(C'\fR instruction to perform 16\-bit
12924 register-register moves.
12925 .ie n .IP """_\|_AVR_HAVE_LPMX_\|_""" 4
12926 .el .IP "\f(CW_\|_AVR_HAVE_LPMX_\|_\fR" 4
12927 .IX Item "__AVR_HAVE_LPMX__"
12928 The device has the \f(CW\*(C`LPM R\f(CIn\f(CW,Z\*(C'\fR and
12929 \&\f(CW\*(C`LPM R\f(CIn\f(CW,Z+\*(C'\fR instructions.
12930 .ie n .IP """_\|_AVR_HAVE_MUL_\|_""" 4
12931 .el .IP "\f(CW_\|_AVR_HAVE_MUL_\|_\fR" 4
12932 .IX Item "__AVR_HAVE_MUL__"
12933 The device has a hardware multiplier.
12934 .ie n .IP """_\|_AVR_HAVE_JMP_CALL_\|_""" 4
12935 .el .IP "\f(CW_\|_AVR_HAVE_JMP_CALL_\|_\fR" 4
12936 .IX Item "__AVR_HAVE_JMP_CALL__"
12937 The device has the \f(CW\*(C`JMP\*(C'\fR and \f(CW\*(C`CALL\*(C'\fR instructions.
12938 This is the case for devices with at least 16@tie{}KiB of program
12939 memory.
12940 .ie n .IP """_\|_AVR_HAVE_EIJMP_EICALL_\|_""" 4
12941 .el .IP "\f(CW_\|_AVR_HAVE_EIJMP_EICALL_\|_\fR" 4
12942 .IX Item "__AVR_HAVE_EIJMP_EICALL__"
12943 .PD 0
12944 .ie n .IP """_\|_AVR_3_BYTE_PC_\|_""" 4
12945 .el .IP "\f(CW_\|_AVR_3_BYTE_PC_\|_\fR" 4
12946 .IX Item "__AVR_3_BYTE_PC__"
12947 .PD
12948 The device has the \f(CW\*(C`EIJMP\*(C'\fR and \f(CW\*(C`EICALL\*(C'\fR instructions.
12949 This is the case for devices with more than 128@tie{}KiB of program memory.
12950 This also means that the program counter
12951 (\s-1PC\s0) is 3@tie{}bytes wide.
12952 .ie n .IP """_\|_AVR_2_BYTE_PC_\|_""" 4
12953 .el .IP "\f(CW_\|_AVR_2_BYTE_PC_\|_\fR" 4
12954 .IX Item "__AVR_2_BYTE_PC__"
12955 The program counter (\s-1PC\s0) is 2@tie{}bytes wide. This is the case for devices
12956 with up to 128@tie{}KiB of program memory.
12957 .ie n .IP """_\|_AVR_HAVE_8BIT_SP_\|_""" 4
12958 .el .IP "\f(CW_\|_AVR_HAVE_8BIT_SP_\|_\fR" 4
12959 .IX Item "__AVR_HAVE_8BIT_SP__"
12960 .PD 0
12961 .ie n .IP """_\|_AVR_HAVE_16BIT_SP_\|_""" 4
12962 .el .IP "\f(CW_\|_AVR_HAVE_16BIT_SP_\|_\fR" 4
12963 .IX Item "__AVR_HAVE_16BIT_SP__"
12964 .PD
12965 The stack pointer (\s-1SP\s0) register is treated as 8\-bit respectively
12966 16\-bit register by the compiler.
12967 The definition of these macros is affected by \fB\-mtiny\-stack\fR.
12968 .ie n .IP """_\|_AVR_HAVE_SPH_\|_""" 4
12969 .el .IP "\f(CW_\|_AVR_HAVE_SPH_\|_\fR" 4
12970 .IX Item "__AVR_HAVE_SPH__"
12971 .PD 0
12972 .ie n .IP """_\|_AVR_SP8_\|_""" 4
12973 .el .IP "\f(CW_\|_AVR_SP8_\|_\fR" 4
12974 .IX Item "__AVR_SP8__"
12975 .PD
12976 The device has the \s-1SPH \s0(high part of stack pointer) special function
12977 register or has an 8\-bit stack pointer, respectively.
12978 The definition of these macros is affected by \fB\-mmcu=\fR and
12979 in the cases of \fB\-mmcu=avr2\fR and \fB\-mmcu=avr25\fR also
12980 by \fB\-msp8\fR.
12981 .ie n .IP """_\|_AVR_HAVE_RAMPD_\|_""" 4
12982 .el .IP "\f(CW_\|_AVR_HAVE_RAMPD_\|_\fR" 4
12983 .IX Item "__AVR_HAVE_RAMPD__"
12984 .PD 0
12985 .ie n .IP """_\|_AVR_HAVE_RAMPX_\|_""" 4
12986 .el .IP "\f(CW_\|_AVR_HAVE_RAMPX_\|_\fR" 4
12987 .IX Item "__AVR_HAVE_RAMPX__"
12988 .ie n .IP """_\|_AVR_HAVE_RAMPY_\|_""" 4
12989 .el .IP "\f(CW_\|_AVR_HAVE_RAMPY_\|_\fR" 4
12990 .IX Item "__AVR_HAVE_RAMPY__"
12991 .ie n .IP """_\|_AVR_HAVE_RAMPZ_\|_""" 4
12992 .el .IP "\f(CW_\|_AVR_HAVE_RAMPZ_\|_\fR" 4
12993 .IX Item "__AVR_HAVE_RAMPZ__"
12994 .PD
12995 The device has the \f(CW\*(C`RAMPD\*(C'\fR, \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR,
12996 \&\f(CW\*(C`RAMPZ\*(C'\fR special function register, respectively.
12997 .ie n .IP """_\|_NO_INTERRUPTS_\|_""" 4
12998 .el .IP "\f(CW_\|_NO_INTERRUPTS_\|_\fR" 4
12999 .IX Item "__NO_INTERRUPTS__"
13000 This macro reflects the \fB\-mno\-interrupts\fR command-line option.
13001 .ie n .IP """_\|_AVR_ERRATA_SKIP_\|_""" 4
13002 .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_\|_\fR" 4
13003 .IX Item "__AVR_ERRATA_SKIP__"
13004 .PD 0
13005 .ie n .IP """_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_""" 4
13006 .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_\fR" 4
13007 .IX Item "__AVR_ERRATA_SKIP_JMP_CALL__"
13008 .PD
13009 Some \s-1AVR\s0 devices (\s-1AT90S8515,\s0 ATmega103) must not skip 32\-bit
13010 instructions because of a hardware erratum.  Skip instructions are
13011 \&\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.
13012 The second macro is only defined if \f(CW\*(C`_\|_AVR_HAVE_JMP_CALL_\|_\*(C'\fR is also
13013 set.
13014 .ie n .IP """_\|_AVR_ISA_RMW_\|_""" 4
13015 .el .IP "\f(CW_\|_AVR_ISA_RMW_\|_\fR" 4
13016 .IX Item "__AVR_ISA_RMW__"
13017 The device has Read-Modify-Write instructions (\s-1XCH, LAC, LAS\s0 and \s-1LAT\s0).
13018 .ie n .IP """_\|_AVR_SFR_OFFSET_\|_=\f(CIoffset\f(CW""" 4
13019 .el .IP "\f(CW_\|_AVR_SFR_OFFSET_\|_=\f(CIoffset\f(CW\fR" 4
13020 .IX Item "__AVR_SFR_OFFSET__=offset"
13021 Instructions that can address I/O special function registers directly
13022 like \f(CW\*(C`IN\*(C'\fR, \f(CW\*(C`OUT\*(C'\fR, \f(CW\*(C`SBI\*(C'\fR, etc. may use a different
13023 address as if addressed by an instruction to access \s-1RAM\s0 like \f(CW\*(C`LD\*(C'\fR
13024 or \f(CW\*(C`STS\*(C'\fR. This offset depends on the device architecture and has
13025 to be subtracted from the \s-1RAM\s0 address in order to get the
13026 respective I/O@tie{}address.
13027 .ie n .IP """_\|_WITH_AVRLIBC_\|_""" 4
13028 .el .IP "\f(CW_\|_WITH_AVRLIBC_\|_\fR" 4
13029 .IX Item "__WITH_AVRLIBC__"
13030 The compiler is configured to be used together with AVR-Libc.
13031 See the \fB\-\-with\-avrlibc\fR configure option.
13032 .PP
13033 \fIBlackfin Options\fR
13034 .IX Subsection "Blackfin Options"
13035 .IP "\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR]" 4
13036 .IX Item "-mcpu=cpu[-sirevision]"
13037 Specifies the name of the target Blackfin processor.  Currently, \fIcpu\fR
13038 can be one of \fBbf512\fR, \fBbf514\fR, \fBbf516\fR, \fBbf518\fR,
13039 \&\fBbf522\fR, \fBbf523\fR, \fBbf524\fR, \fBbf525\fR, \fBbf526\fR,
13040 \&\fBbf527\fR, \fBbf531\fR, \fBbf532\fR, \fBbf533\fR,
13041 \&\fBbf534\fR, \fBbf536\fR, \fBbf537\fR, \fBbf538\fR, \fBbf539\fR,
13042 \&\fBbf542\fR, \fBbf544\fR, \fBbf547\fR, \fBbf548\fR, \fBbf549\fR,
13043 \&\fBbf542m\fR, \fBbf544m\fR, \fBbf547m\fR, \fBbf548m\fR, \fBbf549m\fR,
13044 \&\fBbf561\fR, \fBbf592\fR.
13045 .Sp
13046 The optional \fIsirevision\fR specifies the silicon revision of the target
13047 Blackfin processor.  Any workarounds available for the targeted silicon revision
13048 are enabled.  If \fIsirevision\fR is \fBnone\fR, no workarounds are enabled.
13049 If \fIsirevision\fR is \fBany\fR, all workarounds for the targeted processor
13050 are enabled.  The \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR macro is defined to two
13051 hexadecimal digits representing the major and minor numbers in the silicon
13052 revision.  If \fIsirevision\fR is \fBnone\fR, the \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR
13053 is not defined.  If \fIsirevision\fR is \fBany\fR, the
13054 \&\f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR is defined to be \f(CW0xffff\fR.
13055 If this optional \fIsirevision\fR is not used, \s-1GCC\s0 assumes the latest known
13056 silicon revision of the targeted Blackfin processor.
13057 .Sp
13058 \&\s-1GCC\s0 defines a preprocessor macro for the specified \fIcpu\fR.
13059 For the \fBbfin-elf\fR toolchain, this option causes the hardware \s-1BSP\s0
13060 provided by libgloss to be linked in if \fB\-msim\fR is not given.
13061 .Sp
13062 Without this option, \fBbf532\fR is used as the processor by default.
13063 .Sp
13064 Note that support for \fBbf561\fR is incomplete.  For \fBbf561\fR,
13065 only the preprocessor macro is defined.
13066 .IP "\fB\-msim\fR" 4
13067 .IX Item "-msim"
13068 Specifies that the program will be run on the simulator.  This causes
13069 the simulator \s-1BSP\s0 provided by libgloss to be linked in.  This option
13070 has effect only for \fBbfin-elf\fR toolchain.
13071 Certain other options, such as \fB\-mid\-shared\-library\fR and
13072 \&\fB\-mfdpic\fR, imply \fB\-msim\fR.
13073 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
13074 .IX Item "-momit-leaf-frame-pointer"
13075 Don't keep the frame pointer in a register for leaf functions.  This
13076 avoids the instructions to save, set up and restore frame pointers and
13077 makes an extra register available in leaf functions.  The option
13078 \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions,
13079 which might make debugging harder.
13080 .IP "\fB\-mspecld\-anomaly\fR" 4
13081 .IX Item "-mspecld-anomaly"
13082 When enabled, the compiler ensures that the generated code does not
13083 contain speculative loads after jump instructions. If this option is used,
13084 \&\f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_LOADS\*(C'\fR is defined.
13085 .IP "\fB\-mno\-specld\-anomaly\fR" 4
13086 .IX Item "-mno-specld-anomaly"
13087 Don't generate extra code to prevent speculative loads from occurring.
13088 .IP "\fB\-mcsync\-anomaly\fR" 4
13089 .IX Item "-mcsync-anomaly"
13090 When enabled, the compiler ensures that the generated code does not
13091 contain \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions too soon after conditional branches.
13092 If this option is used, \f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_SYNCS\*(C'\fR is defined.
13093 .IP "\fB\-mno\-csync\-anomaly\fR" 4
13094 .IX Item "-mno-csync-anomaly"
13095 Don't generate extra code to prevent \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions from
13096 occurring too soon after a conditional branch.
13097 .IP "\fB\-mlow\-64k\fR" 4
13098 .IX Item "-mlow-64k"
13099 When enabled, the compiler is free to take advantage of the knowledge that
13100 the entire program fits into the low 64k of memory.
13101 .IP "\fB\-mno\-low\-64k\fR" 4
13102 .IX Item "-mno-low-64k"
13103 Assume that the program is arbitrarily large.  This is the default.
13104 .IP "\fB\-mstack\-check\-l1\fR" 4
13105 .IX Item "-mstack-check-l1"
13106 Do stack checking using information placed into L1 scratchpad memory by the
13107 uClinux kernel.
13108 .IP "\fB\-mid\-shared\-library\fR" 4
13109 .IX Item "-mid-shared-library"
13110 Generate code that supports shared libraries via the library \s-1ID\s0 method.
13111 This allows for execute in place and shared libraries in an environment
13112 without virtual memory management.  This option implies \fB\-fPIC\fR.
13113 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
13114 .IP "\fB\-mno\-id\-shared\-library\fR" 4
13115 .IX Item "-mno-id-shared-library"
13116 Generate code that doesn't assume ID-based shared libraries are being used.
13117 This is the default.
13118 .IP "\fB\-mleaf\-id\-shared\-library\fR" 4
13119 .IX Item "-mleaf-id-shared-library"
13120 Generate code that supports shared libraries via the library \s-1ID\s0 method,
13121 but assumes that this library or executable won't link against any other
13122 \&\s-1ID\s0 shared libraries.  That allows the compiler to use faster code for jumps
13123 and calls.
13124 .IP "\fB\-mno\-leaf\-id\-shared\-library\fR" 4
13125 .IX Item "-mno-leaf-id-shared-library"
13126 Do not assume that the code being compiled won't link against any \s-1ID\s0 shared
13127 libraries.  Slower code is generated for jump and call insns.
13128 .IP "\fB\-mshared\-library\-id=n\fR" 4
13129 .IX Item "-mshared-library-id=n"
13130 Specifies the identification number of the ID-based shared library being
13131 compiled.  Specifying a value of 0 generates more compact code; specifying
13132 other values forces the allocation of that number to the current
13133 library but is no more space\- or time-efficient than omitting this option.
13134 .IP "\fB\-msep\-data\fR" 4
13135 .IX Item "-msep-data"
13136 Generate code that allows the data segment to be located in a different
13137 area of memory from the text segment.  This allows for execute in place in
13138 an environment without virtual memory management by eliminating relocations
13139 against the text section.
13140 .IP "\fB\-mno\-sep\-data\fR" 4
13141 .IX Item "-mno-sep-data"
13142 Generate code that assumes that the data segment follows the text segment.
13143 This is the default.
13144 .IP "\fB\-mlong\-calls\fR" 4
13145 .IX Item "-mlong-calls"
13146 .PD 0
13147 .IP "\fB\-mno\-long\-calls\fR" 4
13148 .IX Item "-mno-long-calls"
13149 .PD
13150 Tells the compiler to perform function calls by first loading the
13151 address of the function into a register and then performing a subroutine
13152 call on this register.  This switch is needed if the target function
13153 lies outside of the 24\-bit addressing range of the offset-based
13154 version of subroutine call instruction.
13155 .Sp
13156 This feature is not enabled by default.  Specifying
13157 \&\fB\-mno\-long\-calls\fR restores the default behavior.  Note these
13158 switches have no effect on how the compiler generates code to handle
13159 function calls via function pointers.
13160 .IP "\fB\-mfast\-fp\fR" 4
13161 .IX Item "-mfast-fp"
13162 Link with the fast floating-point library. This library relaxes some of
13163 the \s-1IEEE\s0 floating-point standard's rules for checking inputs against
13164 Not-a-Number (\s-1NAN\s0), in the interest of performance.
13165 .IP "\fB\-minline\-plt\fR" 4
13166 .IX Item "-minline-plt"
13167 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
13168 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
13169 .IP "\fB\-mmulticore\fR" 4
13170 .IX Item "-mmulticore"
13171 Build a standalone application for multicore Blackfin processors. 
13172 This option causes proper start files and link scripts supporting 
13173 multicore to be used, and defines the macro \f(CW\*(C`_\|_BFIN_MULTICORE\*(C'\fR. 
13174 It can only be used with \fB\-mcpu=bf561\fR[\fB\-\fR\fIsirevision\fR].
13175 .Sp
13176 This option can be used with \fB\-mcorea\fR or \fB\-mcoreb\fR, which
13177 selects the one-application-per-core programming model.  Without
13178 \&\fB\-mcorea\fR or \fB\-mcoreb\fR, the single\-application/dual\-core
13179 programming model is used. In this model, the main function of Core B
13180 should be named as \f(CW\*(C`coreb_main\*(C'\fR.
13181 .Sp
13182 If this option is not used, the single-core application programming
13183 model is used.
13184 .IP "\fB\-mcorea\fR" 4
13185 .IX Item "-mcorea"
13186 Build a standalone application for Core A of \s-1BF561\s0 when using
13187 the one-application-per-core programming model. Proper start files
13188 and link scripts are used to support Core A, and the macro
13189 \&\f(CW\*(C`_\|_BFIN_COREA\*(C'\fR is defined.
13190 This option can only be used in conjunction with \fB\-mmulticore\fR.
13191 .IP "\fB\-mcoreb\fR" 4
13192 .IX Item "-mcoreb"
13193 Build a standalone application for Core B of \s-1BF561\s0 when using
13194 the one-application-per-core programming model. Proper start files
13195 and link scripts are used to support Core B, and the macro
13196 \&\f(CW\*(C`_\|_BFIN_COREB\*(C'\fR is defined. When this option is used, \f(CW\*(C`coreb_main\*(C'\fR
13197 should be used instead of \f(CW\*(C`main\*(C'\fR. 
13198 This option can only be used in conjunction with \fB\-mmulticore\fR.
13199 .IP "\fB\-msdram\fR" 4
13200 .IX Item "-msdram"
13201 Build a standalone application for \s-1SDRAM.\s0 Proper start files and
13202 link scripts are used to put the application into \s-1SDRAM,\s0 and the macro
13203 \&\f(CW\*(C`_\|_BFIN_SDRAM\*(C'\fR is defined.
13204 The loader should initialize \s-1SDRAM\s0 before loading the application.
13205 .IP "\fB\-micplb\fR" 4
13206 .IX Item "-micplb"
13207 Assume that ICPLBs are enabled at run time.  This has an effect on certain
13208 anomaly workarounds.  For Linux targets, the default is to assume ICPLBs
13209 are enabled; for standalone applications the default is off.
13210 .PP
13211 \fIC6X Options\fR
13212 .IX Subsection "C6X Options"
13213 .IP "\fB\-march=\fR\fIname\fR" 4
13214 .IX Item "-march=name"
13215 This specifies the name of the target architecture.  \s-1GCC\s0 uses this
13216 name to determine what kind of instructions it can emit when generating
13217 assembly code.  Permissible names are: \fBc62x\fR,
13218 \&\fBc64x\fR, \fBc64x+\fR, \fBc67x\fR, \fBc67x+\fR, \fBc674x\fR.
13219 .IP "\fB\-mbig\-endian\fR" 4
13220 .IX Item "-mbig-endian"
13221 Generate code for a big-endian target.
13222 .IP "\fB\-mlittle\-endian\fR" 4
13223 .IX Item "-mlittle-endian"
13224 Generate code for a little-endian target.  This is the default.
13225 .IP "\fB\-msim\fR" 4
13226 .IX Item "-msim"
13227 Choose startup files and linker script suitable for the simulator.
13228 .IP "\fB\-msdata=default\fR" 4
13229 .IX Item "-msdata=default"
13230 Put small global and static data in the \f(CW\*(C`.neardata\*(C'\fR section,
13231 which is pointed to by register \f(CW\*(C`B14\*(C'\fR.  Put small uninitialized
13232 global and static data in the \f(CW\*(C`.bss\*(C'\fR section, which is adjacent
13233 to the \f(CW\*(C`.neardata\*(C'\fR section.  Put small read-only data into the
13234 \&\f(CW\*(C`.rodata\*(C'\fR section.  The corresponding sections used for large
13235 pieces of data are \f(CW\*(C`.fardata\*(C'\fR, \f(CW\*(C`.far\*(C'\fR and \f(CW\*(C`.const\*(C'\fR.
13236 .IP "\fB\-msdata=all\fR" 4
13237 .IX Item "-msdata=all"
13238 Put all data, not just small objects, into the sections reserved for
13239 small data, and use addressing relative to the \f(CW\*(C`B14\*(C'\fR register to
13240 access them.
13241 .IP "\fB\-msdata=none\fR" 4
13242 .IX Item "-msdata=none"
13243 Make no use of the sections reserved for small data, and use absolute
13244 addresses to access all data.  Put all initialized global and static
13245 data in the \f(CW\*(C`.fardata\*(C'\fR section, and all uninitialized data in the
13246 \&\f(CW\*(C`.far\*(C'\fR section.  Put all constant data into the \f(CW\*(C`.const\*(C'\fR
13247 section.
13248 .PP
13249 \fI\s-1CRIS\s0 Options\fR
13250 .IX Subsection "CRIS Options"
13251 .PP
13252 These options are defined specifically for the \s-1CRIS\s0 ports.
13253 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
13254 .IX Item "-march=architecture-type"
13255 .PD 0
13256 .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
13257 .IX Item "-mcpu=architecture-type"
13258 .PD
13259 Generate code for the specified architecture.  The choices for
13260 \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
13261 respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX.\s0
13262 Default is \fBv0\fR except for cris-axis-linux-gnu, where the default is
13263 \&\fBv10\fR.
13264 .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
13265 .IX Item "-mtune=architecture-type"
13266 Tune to \fIarchitecture-type\fR everything applicable about the generated
13267 code, except for the \s-1ABI\s0 and the set of available instructions.  The
13268 choices for \fIarchitecture-type\fR are the same as for
13269 \&\fB\-march=\fR\fIarchitecture-type\fR.
13270 .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
13271 .IX Item "-mmax-stack-frame=n"
13272 Warn when the stack frame of a function exceeds \fIn\fR bytes.
13273 .IP "\fB\-metrax4\fR" 4
13274 .IX Item "-metrax4"
13275 .PD 0
13276 .IP "\fB\-metrax100\fR" 4
13277 .IX Item "-metrax100"
13278 .PD
13279 The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
13280 \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
13281 .IP "\fB\-mmul\-bug\-workaround\fR" 4
13282 .IX Item "-mmul-bug-workaround"
13283 .PD 0
13284 .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
13285 .IX Item "-mno-mul-bug-workaround"
13286 .PD
13287 Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
13288 models where it applies.  This option is active by default.
13289 .IP "\fB\-mpdebug\fR" 4
13290 .IX Item "-mpdebug"
13291 Enable CRIS-specific verbose debug-related information in the assembly
13292 code.  This option also has the effect of turning off the \fB#NO_APP\fR
13293 formatted-code indicator to the assembler at the beginning of the
13294 assembly file.
13295 .IP "\fB\-mcc\-init\fR" 4
13296 .IX Item "-mcc-init"
13297 Do not use condition-code results from previous instruction; always emit
13298 compare and test instructions before use of condition codes.
13299 .IP "\fB\-mno\-side\-effects\fR" 4
13300 .IX Item "-mno-side-effects"
13301 Do not emit instructions with side effects in addressing modes other than
13302 post-increment.
13303 .IP "\fB\-mstack\-align\fR" 4
13304 .IX Item "-mstack-align"
13305 .PD 0
13306 .IP "\fB\-mno\-stack\-align\fR" 4
13307 .IX Item "-mno-stack-align"
13308 .IP "\fB\-mdata\-align\fR" 4
13309 .IX Item "-mdata-align"
13310 .IP "\fB\-mno\-data\-align\fR" 4
13311 .IX Item "-mno-data-align"
13312 .IP "\fB\-mconst\-align\fR" 4
13313 .IX Item "-mconst-align"
13314 .IP "\fB\-mno\-const\-align\fR" 4
13315 .IX Item "-mno-const-align"
13316 .PD
13317 These options (\fBno\-\fR options) arrange (eliminate arrangements) for the
13318 stack frame, individual data and constants to be aligned for the maximum
13319 single data access size for the chosen \s-1CPU\s0 model.  The default is to
13320 arrange for 32\-bit alignment.  \s-1ABI\s0 details such as structure layout are
13321 not affected by these options.
13322 .IP "\fB\-m32\-bit\fR" 4
13323 .IX Item "-m32-bit"
13324 .PD 0
13325 .IP "\fB\-m16\-bit\fR" 4
13326 .IX Item "-m16-bit"
13327 .IP "\fB\-m8\-bit\fR" 4
13328 .IX Item "-m8-bit"
13329 .PD
13330 Similar to the stack\- data\- and const-align options above, these options
13331 arrange for stack frame, writable data and constants to all be 32\-bit,
13332 16\-bit or 8\-bit aligned.  The default is 32\-bit alignment.
13333 .IP "\fB\-mno\-prologue\-epilogue\fR" 4
13334 .IX Item "-mno-prologue-epilogue"
13335 .PD 0
13336 .IP "\fB\-mprologue\-epilogue\fR" 4
13337 .IX Item "-mprologue-epilogue"
13338 .PD
13339 With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
13340 epilogue which set up the stack frame are omitted and no return
13341 instructions or return sequences are generated in the code.  Use this
13342 option only together with visual inspection of the compiled code: no
13343 warnings or errors are generated when call-saved registers must be saved,
13344 or storage for local variables needs to be allocated.
13345 .IP "\fB\-mno\-gotplt\fR" 4
13346 .IX Item "-mno-gotplt"
13347 .PD 0
13348 .IP "\fB\-mgotplt\fR" 4
13349 .IX Item "-mgotplt"
13350 .PD
13351 With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
13352 instruction sequences that load addresses for functions from the \s-1PLT\s0 part
13353 of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
13354 \&\s-1PLT. \s0 The default is \fB\-mgotplt\fR.
13355 .IP "\fB\-melf\fR" 4
13356 .IX Item "-melf"
13357 Legacy no-op option only recognized with the cris-axis-elf and
13358 cris-axis-linux-gnu targets.
13359 .IP "\fB\-mlinux\fR" 4
13360 .IX Item "-mlinux"
13361 Legacy no-op option only recognized with the cris-axis-linux-gnu target.
13362 .IP "\fB\-sim\fR" 4
13363 .IX Item "-sim"
13364 This option, recognized for the cris-axis-elf, arranges
13365 to link with input-output functions from a simulator library.  Code,
13366 initialized data and zero-initialized data are allocated consecutively.
13367 .IP "\fB\-sim2\fR" 4
13368 .IX Item "-sim2"
13369 Like \fB\-sim\fR, but pass linker options to locate initialized data at
13370 0x40000000 and zero-initialized data at 0x80000000.
13371 .PP
13372 \fI\s-1CR16\s0 Options\fR
13373 .IX Subsection "CR16 Options"
13374 .PP
13375 These options are defined specifically for the \s-1CR16\s0 ports.
13376 .IP "\fB\-mmac\fR" 4
13377 .IX Item "-mmac"
13378 Enable the use of multiply-accumulate instructions. Disabled by default.
13379 .IP "\fB\-mcr16cplus\fR" 4
13380 .IX Item "-mcr16cplus"
13381 .PD 0
13382 .IP "\fB\-mcr16c\fR" 4
13383 .IX Item "-mcr16c"
13384 .PD
13385 Generate code for \s-1CR16C\s0 or \s-1CR16C+\s0 architecture. \s-1CR16C+\s0 architecture 
13386 is default.
13387 .IP "\fB\-msim\fR" 4
13388 .IX Item "-msim"
13389 Links the library libsim.a which is in compatible with simulator. Applicable
13390 to \s-1ELF\s0 compiler only.
13391 .IP "\fB\-mint32\fR" 4
13392 .IX Item "-mint32"
13393 Choose integer type as 32\-bit wide.
13394 .IP "\fB\-mbit\-ops\fR" 4
13395 .IX Item "-mbit-ops"
13396 Generates \f(CW\*(C`sbit\*(C'\fR/\f(CW\*(C`cbit\*(C'\fR instructions for bit manipulations.
13397 .IP "\fB\-mdata\-model=\fR\fImodel\fR" 4
13398 .IX Item "-mdata-model=model"
13399 Choose a data model. The choices for \fImodel\fR are \fBnear\fR,
13400 \&\fBfar\fR or \fBmedium\fR. \fBmedium\fR is default.
13401 However, \fBfar\fR is not valid with \fB\-mcr16c\fR, as the
13402 \&\s-1CR16C\s0 architecture does not support the far data model.
13403 .PP
13404 \fIDarwin Options\fR
13405 .IX Subsection "Darwin Options"
13406 .PP
13407 These options are defined for all architectures running the Darwin operating
13408 system.
13409 .PP
13410 \&\s-1FSF GCC\s0 on Darwin does not create \*(L"fat\*(R" object files; it creates
13411 an object file for the single architecture that \s-1GCC\s0 was built to
13412 target.  Apple's \s-1GCC\s0 on Darwin does create \*(L"fat\*(R" files if multiple
13413 \&\fB\-arch\fR options are used; it does so by running the compiler or
13414 linker multiple times and joining the results together with
13415 \&\fIlipo\fR.
13416 .PP
13417 The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
13418 \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
13419 that \s-1GCC\s0 is targeting, like \fB\-mcpu\fR or \fB\-march\fR.  The
13420 \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
13421 .PP
13422 The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
13423 mismatch.  The assembler, \fIas\fR, only permits instructions to
13424 be used that are valid for the subtype of the file it is generating,
13425 so you cannot put 64\-bit instructions in a \fBppc750\fR object file.
13426 The linker for shared libraries, \fI/usr/bin/libtool\fR, fails
13427 and prints an error if asked to create a shared library with a less
13428 restrictive subtype than its input files (for instance, trying to put
13429 a \fBppc970\fR object file in a \fBppc7400\fR library).  The linker
13430 for executables, \fBld\fR, quietly gives the executable the most
13431 restrictive subtype of any of its input files.
13432 .IP "\fB\-F\fR\fIdir\fR" 4
13433 .IX Item "-Fdir"
13434 Add the framework directory \fIdir\fR to the head of the list of
13435 directories to be searched for header files.  These directories are
13436 interleaved with those specified by \fB\-I\fR options and are
13437 scanned in a left-to-right order.
13438 .Sp
13439 A framework directory is a directory with frameworks in it.  A
13440 framework is a directory with a \fIHeaders\fR and/or
13441 \&\fIPrivateHeaders\fR directory contained directly in it that ends
13442 in \fI.framework\fR.  The name of a framework is the name of this
13443 directory excluding the \fI.framework\fR.  Headers associated with
13444 the framework are found in one of those two directories, with
13445 \&\fIHeaders\fR being searched first.  A subframework is a framework
13446 directory that is in a framework's \fIFrameworks\fR directory.
13447 Includes of subframework headers can only appear in a header of a
13448 framework that contains the subframework, or in a sibling subframework
13449 header.  Two subframeworks are siblings if they occur in the same
13450 framework.  A subframework should not have the same name as a
13451 framework; a warning is issued if this is violated.  Currently a
13452 subframework cannot have subframeworks; in the future, the mechanism
13453 may be extended to support this.  The standard frameworks can be found
13454 in \fI/System/Library/Frameworks\fR and
13455 \&\fI/Library/Frameworks\fR.  An example include looks like
13456 \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fIFramework\fR denotes
13457 the name of the framework and \fIheader.h\fR is found in the
13458 \&\fIPrivateHeaders\fR or \fIHeaders\fR directory.
13459 .IP "\fB\-iframework\fR\fIdir\fR" 4
13460 .IX Item "-iframeworkdir"
13461 Like \fB\-F\fR except the directory is a treated as a system
13462 directory.  The main difference between this \fB\-iframework\fR and
13463 \&\fB\-F\fR is that with \fB\-iframework\fR the compiler does not
13464 warn about constructs contained within header files found via
13465 \&\fIdir\fR.  This option is valid only for the C family of languages.
13466 .IP "\fB\-gused\fR" 4
13467 .IX Item "-gused"
13468 Emit debugging information for symbols that are used.  For stabs
13469 debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
13470 This is by default \s-1ON.\s0
13471 .IP "\fB\-gfull\fR" 4
13472 .IX Item "-gfull"
13473 Emit debugging information for all symbols and types.
13474 .IP "\fB\-mmacosx\-version\-min=\fR\fIversion\fR" 4
13475 .IX Item "-mmacosx-version-min=version"
13476 The earliest version of MacOS X that this executable will run on
13477 is \fIversion\fR.  Typical values of \fIversion\fR include \f(CW10.1\fR,
13478 \&\f(CW10.2\fR, and \f(CW10.3.9\fR.
13479 .Sp
13480 If the compiler was built to use the system's headers by default,
13481 then the default for this option is the system version on which the
13482 compiler is running, otherwise the default is to make choices that
13483 are compatible with as many systems and code bases as possible.
13484 .IP "\fB\-mkernel\fR" 4
13485 .IX Item "-mkernel"
13486 Enable kernel development mode.  The \fB\-mkernel\fR option sets
13487 \&\fB\-static\fR, \fB\-fno\-common\fR, \fB\-fno\-use\-cxa\-atexit\fR,
13488 \&\fB\-fno\-exceptions\fR, \fB\-fno\-non\-call\-exceptions\fR,
13489 \&\fB\-fapple\-kext\fR, \fB\-fno\-weak\fR and \fB\-fno\-rtti\fR where
13490 applicable.  This mode also sets \fB\-mno\-altivec\fR,
13491 \&\fB\-msoft\-float\fR, \fB\-fno\-builtin\fR and
13492 \&\fB\-mlong\-branch\fR for PowerPC targets.
13493 .IP "\fB\-mone\-byte\-bool\fR" 4
13494 .IX Item "-mone-byte-bool"
13495 Override the defaults for \f(CW\*(C`bool\*(C'\fR so that \f(CW\*(C`sizeof(bool)==1\*(C'\fR.
13496 By default \f(CW\*(C`sizeof(bool)\*(C'\fR is \f(CW4\fR when compiling for
13497 Darwin/PowerPC and \f(CW1\fR when compiling for Darwin/x86, so this
13498 option has no effect on x86.
13499 .Sp
13500 \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
13501 to generate code that is not binary compatible with code generated
13502 without that switch.  Using this switch may require recompiling all
13503 other modules in a program, including system libraries.  Use this
13504 switch to conform to a non-default data model.
13505 .IP "\fB\-mfix\-and\-continue\fR" 4
13506 .IX Item "-mfix-and-continue"
13507 .PD 0
13508 .IP "\fB\-ffix\-and\-continue\fR" 4
13509 .IX Item "-ffix-and-continue"
13510 .IP "\fB\-findirect\-data\fR" 4
13511 .IX Item "-findirect-data"
13512 .PD
13513 Generate code suitable for fast turnaround development, such as to
13514 allow \s-1GDB\s0 to dynamically load \fI.o\fR files into already-running
13515 programs.  \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
13516 are provided for backwards compatibility.
13517 .IP "\fB\-all_load\fR" 4
13518 .IX Item "-all_load"
13519 Loads all members of static archive libraries.
13520 See man \fIld\fR\|(1) for more information.
13521 .IP "\fB\-arch_errors_fatal\fR" 4
13522 .IX Item "-arch_errors_fatal"
13523 Cause the errors having to do with files that have the wrong architecture
13524 to be fatal.
13525 .IP "\fB\-bind_at_load\fR" 4
13526 .IX Item "-bind_at_load"
13527 Causes the output file to be marked such that the dynamic linker will
13528 bind all undefined references when the file is loaded or launched.
13529 .IP "\fB\-bundle\fR" 4
13530 .IX Item "-bundle"
13531 Produce a Mach-o bundle format file.
13532 See man \fIld\fR\|(1) for more information.
13533 .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
13534 .IX Item "-bundle_loader executable"
13535 This option specifies the \fIexecutable\fR that will load the build
13536 output file being linked.  See man \fIld\fR\|(1) for more information.
13537 .IP "\fB\-dynamiclib\fR" 4
13538 .IX Item "-dynamiclib"
13539 When passed this option, \s-1GCC\s0 produces a dynamic library instead of
13540 an executable when linking, using the Darwin \fIlibtool\fR command.
13541 .IP "\fB\-force_cpusubtype_ALL\fR" 4
13542 .IX Item "-force_cpusubtype_ALL"
13543 This causes \s-1GCC\s0's output file to have the \fB\s-1ALL\s0\fR subtype, instead of
13544 one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
13545 .IP "\fB\-allowable_client\fR  \fIclient_name\fR" 4
13546 .IX Item "-allowable_client client_name"
13547 .PD 0
13548 .IP "\fB\-client_name\fR" 4
13549 .IX Item "-client_name"
13550 .IP "\fB\-compatibility_version\fR" 4
13551 .IX Item "-compatibility_version"
13552 .IP "\fB\-current_version\fR" 4
13553 .IX Item "-current_version"
13554 .IP "\fB\-dead_strip\fR" 4
13555 .IX Item "-dead_strip"
13556 .IP "\fB\-dependency\-file\fR" 4
13557 .IX Item "-dependency-file"
13558 .IP "\fB\-dylib_file\fR" 4
13559 .IX Item "-dylib_file"
13560 .IP "\fB\-dylinker_install_name\fR" 4
13561 .IX Item "-dylinker_install_name"
13562 .IP "\fB\-dynamic\fR" 4
13563 .IX Item "-dynamic"
13564 .IP "\fB\-exported_symbols_list\fR" 4
13565 .IX Item "-exported_symbols_list"
13566 .IP "\fB\-filelist\fR" 4
13567 .IX Item "-filelist"
13568 .IP "\fB\-flat_namespace\fR" 4
13569 .IX Item "-flat_namespace"
13570 .IP "\fB\-force_flat_namespace\fR" 4
13571 .IX Item "-force_flat_namespace"
13572 .IP "\fB\-headerpad_max_install_names\fR" 4
13573 .IX Item "-headerpad_max_install_names"
13574 .IP "\fB\-image_base\fR" 4
13575 .IX Item "-image_base"
13576 .IP "\fB\-init\fR" 4
13577 .IX Item "-init"
13578 .IP "\fB\-install_name\fR" 4
13579 .IX Item "-install_name"
13580 .IP "\fB\-keep_private_externs\fR" 4
13581 .IX Item "-keep_private_externs"
13582 .IP "\fB\-multi_module\fR" 4
13583 .IX Item "-multi_module"
13584 .IP "\fB\-multiply_defined\fR" 4
13585 .IX Item "-multiply_defined"
13586 .IP "\fB\-multiply_defined_unused\fR" 4
13587 .IX Item "-multiply_defined_unused"
13588 .IP "\fB\-noall_load\fR" 4
13589 .IX Item "-noall_load"
13590 .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
13591 .IX Item "-no_dead_strip_inits_and_terms"
13592 .IP "\fB\-nofixprebinding\fR" 4
13593 .IX Item "-nofixprebinding"
13594 .IP "\fB\-nomultidefs\fR" 4
13595 .IX Item "-nomultidefs"
13596 .IP "\fB\-noprebind\fR" 4
13597 .IX Item "-noprebind"
13598 .IP "\fB\-noseglinkedit\fR" 4
13599 .IX Item "-noseglinkedit"
13600 .IP "\fB\-pagezero_size\fR" 4
13601 .IX Item "-pagezero_size"
13602 .IP "\fB\-prebind\fR" 4
13603 .IX Item "-prebind"
13604 .IP "\fB\-prebind_all_twolevel_modules\fR" 4
13605 .IX Item "-prebind_all_twolevel_modules"
13606 .IP "\fB\-private_bundle\fR" 4
13607 .IX Item "-private_bundle"
13608 .IP "\fB\-read_only_relocs\fR" 4
13609 .IX Item "-read_only_relocs"
13610 .IP "\fB\-sectalign\fR" 4
13611 .IX Item "-sectalign"
13612 .IP "\fB\-sectobjectsymbols\fR" 4
13613 .IX Item "-sectobjectsymbols"
13614 .IP "\fB\-whyload\fR" 4
13615 .IX Item "-whyload"
13616 .IP "\fB\-seg1addr\fR" 4
13617 .IX Item "-seg1addr"
13618 .IP "\fB\-sectcreate\fR" 4
13619 .IX Item "-sectcreate"
13620 .IP "\fB\-sectobjectsymbols\fR" 4
13621 .IX Item "-sectobjectsymbols"
13622 .IP "\fB\-sectorder\fR" 4
13623 .IX Item "-sectorder"
13624 .IP "\fB\-segaddr\fR" 4
13625 .IX Item "-segaddr"
13626 .IP "\fB\-segs_read_only_addr\fR" 4
13627 .IX Item "-segs_read_only_addr"
13628 .IP "\fB\-segs_read_write_addr\fR" 4
13629 .IX Item "-segs_read_write_addr"
13630 .IP "\fB\-seg_addr_table\fR" 4
13631 .IX Item "-seg_addr_table"
13632 .IP "\fB\-seg_addr_table_filename\fR" 4
13633 .IX Item "-seg_addr_table_filename"
13634 .IP "\fB\-seglinkedit\fR" 4
13635 .IX Item "-seglinkedit"
13636 .IP "\fB\-segprot\fR" 4
13637 .IX Item "-segprot"
13638 .IP "\fB\-segs_read_only_addr\fR" 4
13639 .IX Item "-segs_read_only_addr"
13640 .IP "\fB\-segs_read_write_addr\fR" 4
13641 .IX Item "-segs_read_write_addr"
13642 .IP "\fB\-single_module\fR" 4
13643 .IX Item "-single_module"
13644 .IP "\fB\-static\fR" 4
13645 .IX Item "-static"
13646 .IP "\fB\-sub_library\fR" 4
13647 .IX Item "-sub_library"
13648 .IP "\fB\-sub_umbrella\fR" 4
13649 .IX Item "-sub_umbrella"
13650 .IP "\fB\-twolevel_namespace\fR" 4
13651 .IX Item "-twolevel_namespace"
13652 .IP "\fB\-umbrella\fR" 4
13653 .IX Item "-umbrella"
13654 .IP "\fB\-undefined\fR" 4
13655 .IX Item "-undefined"
13656 .IP "\fB\-unexported_symbols_list\fR" 4
13657 .IX Item "-unexported_symbols_list"
13658 .IP "\fB\-weak_reference_mismatches\fR" 4
13659 .IX Item "-weak_reference_mismatches"
13660 .IP "\fB\-whatsloaded\fR" 4
13661 .IX Item "-whatsloaded"
13662 .PD
13663 These options are passed to the Darwin linker.  The Darwin linker man page
13664 describes them in detail.
13665 .PP
13666 \fI\s-1DEC\s0 Alpha Options\fR
13667 .IX Subsection "DEC Alpha Options"
13668 .PP
13669 These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
13670 .IP "\fB\-mno\-soft\-float\fR" 4
13671 .IX Item "-mno-soft-float"
13672 .PD 0
13673 .IP "\fB\-msoft\-float\fR" 4
13674 .IX Item "-msoft-float"
13675 .PD
13676 Use (do not use) the hardware floating-point instructions for
13677 floating-point operations.  When \fB\-msoft\-float\fR is specified,
13678 functions in \fIlibgcc.a\fR are used to perform floating-point
13679 operations.  Unless they are replaced by routines that emulate the
13680 floating-point operations, or compiled in such a way as to call such
13681 emulations routines, these routines issue floating-point
13682 operations.   If you are compiling for an Alpha without floating-point
13683 operations, you must ensure that the library is built so as not to call
13684 them.
13685 .Sp
13686 Note that Alpha implementations without floating-point operations are
13687 required to have floating-point registers.
13688 .IP "\fB\-mfp\-reg\fR" 4
13689 .IX Item "-mfp-reg"
13690 .PD 0
13691 .IP "\fB\-mno\-fp\-regs\fR" 4
13692 .IX Item "-mno-fp-regs"
13693 .PD
13694 Generate code that uses (does not use) the floating-point register set.
13695 \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR.  If the floating-point
13696 register set is not used, floating-point operands are passed in integer
13697 registers as if they were integers and floating-point results are passed
13698 in \f(CW$0\fR instead of \f(CW$f0\fR.  This is a non-standard calling sequence,
13699 so any function with a floating-point argument or return value called by code
13700 compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
13701 option.
13702 .Sp
13703 A typical use of this option is building a kernel that does not use,
13704 and hence need not save and restore, any floating-point registers.
13705 .IP "\fB\-mieee\fR" 4
13706 .IX Item "-mieee"
13707 The Alpha architecture implements floating-point hardware optimized for
13708 maximum performance.  It is mostly compliant with the \s-1IEEE\s0 floating-point
13709 standard.  However, for full compliance, software assistance is
13710 required.  This option generates code fully IEEE-compliant code
13711 \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
13712 If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
13713 defined during compilation.  The resulting code is less efficient but is
13714 able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
13715 values such as not-a-number and plus/minus infinity.  Other Alpha
13716 compilers call this option \fB\-ieee_with_no_inexact\fR.
13717 .IP "\fB\-mieee\-with\-inexact\fR" 4
13718 .IX Item "-mieee-with-inexact"
13719 This is like \fB\-mieee\fR except the generated code also maintains
13720 the \s-1IEEE \s0\fIinexact-flag\fR.  Turning on this option causes the
13721 generated code to implement fully-compliant \s-1IEEE\s0 math.  In addition to
13722 \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
13723 macro.  On some Alpha implementations the resulting code may execute
13724 significantly slower than the code generated by default.  Since there is
13725 very little code that depends on the \fIinexact-flag\fR, you should
13726 normally not specify this option.  Other Alpha compilers call this
13727 option \fB\-ieee_with_inexact\fR.
13728 .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
13729 .IX Item "-mfp-trap-mode=trap-mode"
13730 This option controls what floating-point related traps are enabled.
13731 Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
13732 The trap mode can be set to one of four values:
13733 .RS 4
13734 .IP "\fBn\fR" 4
13735 .IX Item "n"
13736 This is the default (normal) setting.  The only traps that are enabled
13737 are the ones that cannot be disabled in software (e.g., division by zero
13738 trap).
13739 .IP "\fBu\fR" 4
13740 .IX Item "u"
13741 In addition to the traps enabled by \fBn\fR, underflow traps are enabled
13742 as well.
13743 .IP "\fBsu\fR" 4
13744 .IX Item "su"
13745 Like \fBu\fR, but the instructions are marked to be safe for software
13746 completion (see Alpha architecture manual for details).
13747 .IP "\fBsui\fR" 4
13748 .IX Item "sui"
13749 Like \fBsu\fR, but inexact traps are enabled as well.
13750 .RE
13751 .RS 4
13752 .RE
13753 .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
13754 .IX Item "-mfp-rounding-mode=rounding-mode"
13755 Selects the \s-1IEEE\s0 rounding mode.  Other Alpha compilers call this option
13756 \&\fB\-fprm\fR \fIrounding-mode\fR.  The \fIrounding-mode\fR can be one
13757 of:
13758 .RS 4
13759 .IP "\fBn\fR" 4
13760 .IX Item "n"
13761 Normal \s-1IEEE\s0 rounding mode.  Floating-point numbers are rounded towards
13762 the nearest machine number or towards the even machine number in case
13763 of a tie.
13764 .IP "\fBm\fR" 4
13765 .IX Item "m"
13766 Round towards minus infinity.
13767 .IP "\fBc\fR" 4
13768 .IX Item "c"
13769 Chopped rounding mode.  Floating-point numbers are rounded towards zero.
13770 .IP "\fBd\fR" 4
13771 .IX Item "d"
13772 Dynamic rounding mode.  A field in the floating-point control register
13773 (\fIfpcr\fR, see Alpha architecture reference manual) controls the
13774 rounding mode in effect.  The C library initializes this register for
13775 rounding towards plus infinity.  Thus, unless your program modifies the
13776 \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
13777 .RE
13778 .RS 4
13779 .RE
13780 .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
13781 .IX Item "-mtrap-precision=trap-precision"
13782 In the Alpha architecture, floating-point traps are imprecise.  This
13783 means without software assistance it is impossible to recover from a
13784 floating trap and program execution normally needs to be terminated.
13785 \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
13786 in determining the exact location that caused a floating-point trap.
13787 Depending on the requirements of an application, different levels of
13788 precisions can be selected:
13789 .RS 4
13790 .IP "\fBp\fR" 4
13791 .IX Item "p"
13792 Program precision.  This option is the default and means a trap handler
13793 can only identify which program caused a floating-point exception.
13794 .IP "\fBf\fR" 4
13795 .IX Item "f"
13796 Function precision.  The trap handler can determine the function that
13797 caused a floating-point exception.
13798 .IP "\fBi\fR" 4
13799 .IX Item "i"
13800 Instruction precision.  The trap handler can determine the exact
13801 instruction that caused a floating-point exception.
13802 .RE
13803 .RS 4
13804 .Sp
13805 Other Alpha compilers provide the equivalent options called
13806 \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
13807 .RE
13808 .IP "\fB\-mieee\-conformant\fR" 4
13809 .IX Item "-mieee-conformant"
13810 This option marks the generated code as \s-1IEEE\s0 conformant.  You must not
13811 use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
13812 \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR.  Its only effect
13813 is to emit the line \fB.eflag 48\fR in the function prologue of the
13814 generated assembly file.
13815 .IP "\fB\-mbuild\-constants\fR" 4
13816 .IX Item "-mbuild-constants"
13817 Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
13818 see if it can construct it from smaller constants in two or three
13819 instructions.  If it cannot, it outputs the constant as a literal and
13820 generates code to load it from the data segment at run time.
13821 .Sp
13822 Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
13823 using code, even if it takes more instructions (the maximum is six).
13824 .Sp
13825 You typically use this option to build a shared library dynamic
13826 loader.  Itself a shared library, it must relocate itself in memory
13827 before it can find the variables and constants in its own data segment.
13828 .IP "\fB\-mbwx\fR" 4
13829 .IX Item "-mbwx"
13830 .PD 0
13831 .IP "\fB\-mno\-bwx\fR" 4
13832 .IX Item "-mno-bwx"
13833 .IP "\fB\-mcix\fR" 4
13834 .IX Item "-mcix"
13835 .IP "\fB\-mno\-cix\fR" 4
13836 .IX Item "-mno-cix"
13837 .IP "\fB\-mfix\fR" 4
13838 .IX Item "-mfix"
13839 .IP "\fB\-mno\-fix\fR" 4
13840 .IX Item "-mno-fix"
13841 .IP "\fB\-mmax\fR" 4
13842 .IX Item "-mmax"
13843 .IP "\fB\-mno\-max\fR" 4
13844 .IX Item "-mno-max"
13845 .PD
13846 Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX,
13847 CIX, FIX\s0 and \s-1MAX\s0 instruction sets.  The default is to use the instruction
13848 sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
13849 of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none is specified.
13850 .IP "\fB\-mfloat\-vax\fR" 4
13851 .IX Item "-mfloat-vax"
13852 .PD 0
13853 .IP "\fB\-mfloat\-ieee\fR" 4
13854 .IX Item "-mfloat-ieee"
13855 .PD
13856 Generate code that uses (does not use) \s-1VAX F\s0 and G floating-point
13857 arithmetic instead of \s-1IEEE\s0 single and double precision.
13858 .IP "\fB\-mexplicit\-relocs\fR" 4
13859 .IX Item "-mexplicit-relocs"
13860 .PD 0
13861 .IP "\fB\-mno\-explicit\-relocs\fR" 4
13862 .IX Item "-mno-explicit-relocs"
13863 .PD
13864 Older Alpha assemblers provided no way to generate symbol relocations
13865 except via assembler macros.  Use of these macros does not allow
13866 optimal instruction scheduling.  \s-1GNU\s0 binutils as of version 2.12
13867 supports a new syntax that allows the compiler to explicitly mark
13868 which relocations should apply to which instructions.  This option
13869 is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
13870 the assembler when it is built and sets the default accordingly.
13871 .IP "\fB\-msmall\-data\fR" 4
13872 .IX Item "-msmall-data"
13873 .PD 0
13874 .IP "\fB\-mlarge\-data\fR" 4
13875 .IX Item "-mlarge-data"
13876 .PD
13877 When \fB\-mexplicit\-relocs\fR is in effect, static data is
13878 accessed via \fIgp-relative\fR relocations.  When \fB\-msmall\-data\fR
13879 is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
13880 (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
13881 16\-bit relocations off of the \f(CW$gp\fR register.  This limits the
13882 size of the small data area to 64KB, but allows the variables to be
13883 directly accessed via a single instruction.
13884 .Sp
13885 The default is \fB\-mlarge\-data\fR.  With this option the data area
13886 is limited to just below 2GB.  Programs that require more than 2GB of
13887 data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
13888 heap instead of in the program's data segment.
13889 .Sp
13890 When generating code for shared libraries, \fB\-fpic\fR implies
13891 \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
13892 .IP "\fB\-msmall\-text\fR" 4
13893 .IX Item "-msmall-text"
13894 .PD 0
13895 .IP "\fB\-mlarge\-text\fR" 4
13896 .IX Item "-mlarge-text"
13897 .PD
13898 When \fB\-msmall\-text\fR is used, the compiler assumes that the
13899 code of the entire program (or shared library) fits in 4MB, and is
13900 thus reachable with a branch instruction.  When \fB\-msmall\-data\fR
13901 is used, the compiler can assume that all local symbols share the
13902 same \f(CW$gp\fR value, and thus reduce the number of instructions
13903 required for a function call from 4 to 1.
13904 .Sp
13905 The default is \fB\-mlarge\-text\fR.
13906 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
13907 .IX Item "-mcpu=cpu_type"
13908 Set the instruction set and instruction scheduling parameters for
13909 machine type \fIcpu_type\fR.  You can specify either the \fB\s-1EV\s0\fR
13910 style name or the corresponding chip number.  \s-1GCC\s0 supports scheduling
13911 parameters for the \s-1EV4, EV5\s0 and \s-1EV6\s0 family of processors and
13912 chooses the default values for the instruction set from the processor
13913 you specify.  If you do not specify a processor type, \s-1GCC\s0 defaults
13914 to the processor on which the compiler was built.
13915 .Sp
13916 Supported values for \fIcpu_type\fR are
13917 .RS 4
13918 .IP "\fBev4\fR" 4
13919 .IX Item "ev4"
13920 .PD 0
13921 .IP "\fBev45\fR" 4
13922 .IX Item "ev45"
13923 .IP "\fB21064\fR" 4
13924 .IX Item "21064"
13925 .PD
13926 Schedules as an \s-1EV4\s0 and has no instruction set extensions.
13927 .IP "\fBev5\fR" 4
13928 .IX Item "ev5"
13929 .PD 0
13930 .IP "\fB21164\fR" 4
13931 .IX Item "21164"
13932 .PD
13933 Schedules as an \s-1EV5\s0 and has no instruction set extensions.
13934 .IP "\fBev56\fR" 4
13935 .IX Item "ev56"
13936 .PD 0
13937 .IP "\fB21164a\fR" 4
13938 .IX Item "21164a"
13939 .PD
13940 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
13941 .IP "\fBpca56\fR" 4
13942 .IX Item "pca56"
13943 .PD 0
13944 .IP "\fB21164pc\fR" 4
13945 .IX Item "21164pc"
13946 .IP "\fB21164PC\fR" 4
13947 .IX Item "21164PC"
13948 .PD
13949 Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
13950 .IP "\fBev6\fR" 4
13951 .IX Item "ev6"
13952 .PD 0
13953 .IP "\fB21264\fR" 4
13954 .IX Item "21264"
13955 .PD
13956 Schedules as an \s-1EV6\s0 and supports the \s-1BWX, FIX,\s0 and \s-1MAX\s0 extensions.
13957 .IP "\fBev67\fR" 4
13958 .IX Item "ev67"
13959 .PD 0
13960 .IP "\fB21264a\fR" 4
13961 .IX Item "21264a"
13962 .PD
13963 Schedules as an \s-1EV6\s0 and supports the \s-1BWX, CIX, FIX,\s0 and \s-1MAX\s0 extensions.
13964 .RE
13965 .RS 4
13966 .Sp
13967 Native toolchains also support the value \fBnative\fR,
13968 which selects the best architecture option for the host processor.
13969 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
13970 the processor.
13971 .RE
13972 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
13973 .IX Item "-mtune=cpu_type"
13974 Set only the instruction scheduling parameters for machine type
13975 \&\fIcpu_type\fR.  The instruction set is not changed.
13976 .Sp
13977 Native toolchains also support the value \fBnative\fR,
13978 which selects the best architecture option for the host processor.
13979 \&\fB\-mtune=native\fR has no effect if \s-1GCC\s0 does not recognize
13980 the processor.
13981 .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
13982 .IX Item "-mmemory-latency=time"
13983 Sets the latency the scheduler should assume for typical memory
13984 references as seen by the application.  This number is highly
13985 dependent on the memory access patterns used by the application
13986 and the size of the external cache on the machine.
13987 .Sp
13988 Valid options for \fItime\fR are
13989 .RS 4
13990 .IP "\fInumber\fR" 4
13991 .IX Item "number"
13992 A decimal number representing clock cycles.
13993 .IP "\fBL1\fR" 4
13994 .IX Item "L1"
13995 .PD 0
13996 .IP "\fBL2\fR" 4
13997 .IX Item "L2"
13998 .IP "\fBL3\fR" 4
13999 .IX Item "L3"
14000 .IP "\fBmain\fR" 4
14001 .IX Item "main"
14002 .PD
14003 The compiler contains estimates of the number of clock cycles for
14004 \&\*(L"typical\*(R" \s-1EV4 & EV5\s0 hardware for the Level 1, 2 & 3 caches
14005 (also called Dcache, Scache, and Bcache), as well as to main memory.
14006 Note that L3 is only valid for \s-1EV5.\s0
14007 .RE
14008 .RS 4
14009 .RE
14010 .PP
14011 \fI\s-1FR30\s0 Options\fR
14012 .IX Subsection "FR30 Options"
14013 .PP
14014 These options are defined specifically for the \s-1FR30\s0 port.
14015 .IP "\fB\-msmall\-model\fR" 4
14016 .IX Item "-msmall-model"
14017 Use the small address space model.  This can produce smaller code, but
14018 it does assume that all symbolic values and addresses fit into a
14019 20\-bit range.
14020 .IP "\fB\-mno\-lsim\fR" 4
14021 .IX Item "-mno-lsim"
14022 Assume that runtime support has been provided and so there is no need
14023 to include the simulator library (\fIlibsim.a\fR) on the linker
14024 command line.
14025 .PP
14026 \fI\s-1FRV\s0 Options\fR
14027 .IX Subsection "FRV Options"
14028 .IP "\fB\-mgpr\-32\fR" 4
14029 .IX Item "-mgpr-32"
14030 Only use the first 32 general-purpose registers.
14031 .IP "\fB\-mgpr\-64\fR" 4
14032 .IX Item "-mgpr-64"
14033 Use all 64 general-purpose registers.
14034 .IP "\fB\-mfpr\-32\fR" 4
14035 .IX Item "-mfpr-32"
14036 Use only the first 32 floating-point registers.
14037 .IP "\fB\-mfpr\-64\fR" 4
14038 .IX Item "-mfpr-64"
14039 Use all 64 floating-point registers.
14040 .IP "\fB\-mhard\-float\fR" 4
14041 .IX Item "-mhard-float"
14042 Use hardware instructions for floating-point operations.
14043 .IP "\fB\-msoft\-float\fR" 4
14044 .IX Item "-msoft-float"
14045 Use library routines for floating-point operations.
14046 .IP "\fB\-malloc\-cc\fR" 4
14047 .IX Item "-malloc-cc"
14048 Dynamically allocate condition code registers.
14049 .IP "\fB\-mfixed\-cc\fR" 4
14050 .IX Item "-mfixed-cc"
14051 Do not try to dynamically allocate condition code registers, only
14052 use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
14053 .IP "\fB\-mdword\fR" 4
14054 .IX Item "-mdword"
14055 Change \s-1ABI\s0 to use double word insns.
14056 .IP "\fB\-mno\-dword\fR" 4
14057 .IX Item "-mno-dword"
14058 Do not use double word instructions.
14059 .IP "\fB\-mdouble\fR" 4
14060 .IX Item "-mdouble"
14061 Use floating-point double instructions.
14062 .IP "\fB\-mno\-double\fR" 4
14063 .IX Item "-mno-double"
14064 Do not use floating-point double instructions.
14065 .IP "\fB\-mmedia\fR" 4
14066 .IX Item "-mmedia"
14067 Use media instructions.
14068 .IP "\fB\-mno\-media\fR" 4
14069 .IX Item "-mno-media"
14070 Do not use media instructions.
14071 .IP "\fB\-mmuladd\fR" 4
14072 .IX Item "-mmuladd"
14073 Use multiply and add/subtract instructions.
14074 .IP "\fB\-mno\-muladd\fR" 4
14075 .IX Item "-mno-muladd"
14076 Do not use multiply and add/subtract instructions.
14077 .IP "\fB\-mfdpic\fR" 4
14078 .IX Item "-mfdpic"
14079 Select the \s-1FDPIC ABI,\s0 which uses function descriptors to represent
14080 pointers to functions.  Without any PIC/PIE\-related options, it
14081 implies \fB\-fPIE\fR.  With \fB\-fpic\fR or \fB\-fpie\fR, it
14082 assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
14083 \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
14084 are computed with 32 bits.
14085 With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
14086 .IP "\fB\-minline\-plt\fR" 4
14087 .IX Item "-minline-plt"
14088 Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
14089 not known to bind locally.  It has no effect without \fB\-mfdpic\fR.
14090 It's enabled by default if optimizing for speed and compiling for
14091 shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
14092 optimization option such as \fB\-O3\fR or above is present in the
14093 command line.
14094 .IP "\fB\-mTLS\fR" 4
14095 .IX Item "-mTLS"
14096 Assume a large \s-1TLS\s0 segment when generating thread-local code.
14097 .IP "\fB\-mtls\fR" 4
14098 .IX Item "-mtls"
14099 Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
14100 .IP "\fB\-mgprel\-ro\fR" 4
14101 .IX Item "-mgprel-ro"
14102 Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC ABI\s0 for data
14103 that is known to be in read-only sections.  It's enabled by default,
14104 except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
14105 make the global offset table smaller, it trades 1 instruction for 4.
14106 With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
14107 one of which may be shared by multiple symbols, and it avoids the need
14108 for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
14109 win.  If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
14110 .IP "\fB\-multilib\-library\-pic\fR" 4
14111 .IX Item "-multilib-library-pic"
14112 Link with the (library, not \s-1FD\s0) pic libraries.  It's implied by
14113 \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
14114 \&\fB\-fpic\fR without \fB\-mfdpic\fR.  You should never have to use
14115 it explicitly.
14116 .IP "\fB\-mlinked\-fp\fR" 4
14117 .IX Item "-mlinked-fp"
14118 Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
14119 a stack frame is allocated.  This option is enabled by default and can
14120 be disabled with \fB\-mno\-linked\-fp\fR.
14121 .IP "\fB\-mlong\-calls\fR" 4
14122 .IX Item "-mlong-calls"
14123 Use indirect addressing to call functions outside the current
14124 compilation unit.  This allows the functions to be placed anywhere
14125 within the 32\-bit address space.
14126 .IP "\fB\-malign\-labels\fR" 4
14127 .IX Item "-malign-labels"
14128 Try to align labels to an 8\-byte boundary by inserting NOPs into the
14129 previous packet.  This option only has an effect when \s-1VLIW\s0 packing
14130 is enabled.  It doesn't create new packets; it merely adds NOPs to
14131 existing ones.
14132 .IP "\fB\-mlibrary\-pic\fR" 4
14133 .IX Item "-mlibrary-pic"
14134 Generate position-independent \s-1EABI\s0 code.
14135 .IP "\fB\-macc\-4\fR" 4
14136 .IX Item "-macc-4"
14137 Use only the first four media accumulator registers.
14138 .IP "\fB\-macc\-8\fR" 4
14139 .IX Item "-macc-8"
14140 Use all eight media accumulator registers.
14141 .IP "\fB\-mpack\fR" 4
14142 .IX Item "-mpack"
14143 Pack \s-1VLIW\s0 instructions.
14144 .IP "\fB\-mno\-pack\fR" 4
14145 .IX Item "-mno-pack"
14146 Do not pack \s-1VLIW\s0 instructions.
14147 .IP "\fB\-mno\-eflags\fR" 4
14148 .IX Item "-mno-eflags"
14149 Do not mark \s-1ABI\s0 switches in e_flags.
14150 .IP "\fB\-mcond\-move\fR" 4
14151 .IX Item "-mcond-move"
14152 Enable the use of conditional-move instructions (default).
14153 .Sp
14154 This switch is mainly for debugging the compiler and will likely be removed
14155 in a future version.
14156 .IP "\fB\-mno\-cond\-move\fR" 4
14157 .IX Item "-mno-cond-move"
14158 Disable the use of conditional-move instructions.
14159 .Sp
14160 This switch is mainly for debugging the compiler and will likely be removed
14161 in a future version.
14162 .IP "\fB\-mscc\fR" 4
14163 .IX Item "-mscc"
14164 Enable the use of conditional set instructions (default).
14165 .Sp
14166 This switch is mainly for debugging the compiler and will likely be removed
14167 in a future version.
14168 .IP "\fB\-mno\-scc\fR" 4
14169 .IX Item "-mno-scc"
14170 Disable the use of conditional set instructions.
14171 .Sp
14172 This switch is mainly for debugging the compiler and will likely be removed
14173 in a future version.
14174 .IP "\fB\-mcond\-exec\fR" 4
14175 .IX Item "-mcond-exec"
14176 Enable the use of conditional execution (default).
14177 .Sp
14178 This switch is mainly for debugging the compiler and will likely be removed
14179 in a future version.
14180 .IP "\fB\-mno\-cond\-exec\fR" 4
14181 .IX Item "-mno-cond-exec"
14182 Disable the use of conditional execution.
14183 .Sp
14184 This switch is mainly for debugging the compiler and will likely be removed
14185 in a future version.
14186 .IP "\fB\-mvliw\-branch\fR" 4
14187 .IX Item "-mvliw-branch"
14188 Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
14189 .Sp
14190 This switch is mainly for debugging the compiler and will likely be removed
14191 in a future version.
14192 .IP "\fB\-mno\-vliw\-branch\fR" 4
14193 .IX Item "-mno-vliw-branch"
14194 Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
14195 .Sp
14196 This switch is mainly for debugging the compiler and will likely be removed
14197 in a future version.
14198 .IP "\fB\-mmulti\-cond\-exec\fR" 4
14199 .IX Item "-mmulti-cond-exec"
14200 Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
14201 (default).
14202 .Sp
14203 This switch is mainly for debugging the compiler and will likely be removed
14204 in a future version.
14205 .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
14206 .IX Item "-mno-multi-cond-exec"
14207 Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
14208 .Sp
14209 This switch is mainly for debugging the compiler and will likely be removed
14210 in a future version.
14211 .IP "\fB\-mnested\-cond\-exec\fR" 4
14212 .IX Item "-mnested-cond-exec"
14213 Enable nested conditional execution optimizations (default).
14214 .Sp
14215 This switch is mainly for debugging the compiler and will likely be removed
14216 in a future version.
14217 .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
14218 .IX Item "-mno-nested-cond-exec"
14219 Disable nested conditional execution optimizations.
14220 .Sp
14221 This switch is mainly for debugging the compiler and will likely be removed
14222 in a future version.
14223 .IP "\fB\-moptimize\-membar\fR" 4
14224 .IX Item "-moptimize-membar"
14225 This switch removes redundant \f(CW\*(C`membar\*(C'\fR instructions from the
14226 compiler-generated code.  It is enabled by default.
14227 .IP "\fB\-mno\-optimize\-membar\fR" 4
14228 .IX Item "-mno-optimize-membar"
14229 This switch disables the automatic removal of redundant \f(CW\*(C`membar\*(C'\fR
14230 instructions from the generated code.
14231 .IP "\fB\-mtomcat\-stats\fR" 4
14232 .IX Item "-mtomcat-stats"
14233 Cause gas to print out tomcat statistics.
14234 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
14235 .IX Item "-mcpu=cpu"
14236 Select the processor type for which to generate code.  Possible values are
14237 \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
14238 \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
14239 .PP
14240 \fIGNU/Linux Options\fR
14241 .IX Subsection "GNU/Linux Options"
14242 .PP
14243 These \fB\-m\fR options are defined for GNU/Linux targets:
14244 .IP "\fB\-mglibc\fR" 4
14245 .IX Item "-mglibc"
14246 Use the \s-1GNU C\s0 library.  This is the default except
14247 on \fB*\-*\-linux\-*uclibc*\fR and \fB*\-*\-linux\-*android*\fR targets.
14248 .IP "\fB\-muclibc\fR" 4
14249 .IX Item "-muclibc"
14250 Use uClibc C library.  This is the default on
14251 \&\fB*\-*\-linux\-*uclibc*\fR targets.
14252 .IP "\fB\-mbionic\fR" 4
14253 .IX Item "-mbionic"
14254 Use Bionic C library.  This is the default on
14255 \&\fB*\-*\-linux\-*android*\fR targets.
14256 .IP "\fB\-mandroid\fR" 4
14257 .IX Item "-mandroid"
14258 Compile code compatible with Android platform.  This is the default on
14259 \&\fB*\-*\-linux\-*android*\fR targets.
14260 .Sp
14261 When compiling, this option enables \fB\-mbionic\fR, \fB\-fPIC\fR,
14262 \&\fB\-fno\-exceptions\fR and \fB\-fno\-rtti\fR by default.  When linking,
14263 this option makes the \s-1GCC\s0 driver pass Android-specific options to the linker.
14264 Finally, this option causes the preprocessor macro \f(CW\*(C`_\|_ANDROID_\|_\*(C'\fR
14265 to be defined.
14266 .IP "\fB\-tno\-android\-cc\fR" 4
14267 .IX Item "-tno-android-cc"
14268 Disable compilation effects of \fB\-mandroid\fR, i.e., do not enable
14269 \&\fB\-mbionic\fR, \fB\-fPIC\fR, \fB\-fno\-exceptions\fR and
14270 \&\fB\-fno\-rtti\fR by default.
14271 .IP "\fB\-tno\-android\-ld\fR" 4
14272 .IX Item "-tno-android-ld"
14273 Disable linking effects of \fB\-mandroid\fR, i.e., pass standard Linux
14274 linking options to the linker.
14275 .PP
14276 \fIH8/300 Options\fR
14277 .IX Subsection "H8/300 Options"
14278 .PP
14279 These \fB\-m\fR options are defined for the H8/300 implementations:
14280 .IP "\fB\-mrelax\fR" 4
14281 .IX Item "-mrelax"
14282 Shorten some address references at link time, when possible; uses the
14283 linker option \fB\-relax\fR.
14284 .IP "\fB\-mh\fR" 4
14285 .IX Item "-mh"
14286 Generate code for the H8/300H.
14287 .IP "\fB\-ms\fR" 4
14288 .IX Item "-ms"
14289 Generate code for the H8S.
14290 .IP "\fB\-mn\fR" 4
14291 .IX Item "-mn"
14292 Generate code for the H8S and H8/300H in the normal mode.  This switch
14293 must be used either with \fB\-mh\fR or \fB\-ms\fR.
14294 .IP "\fB\-ms2600\fR" 4
14295 .IX Item "-ms2600"
14296 Generate code for the H8S/2600.  This switch must be used with \fB\-ms\fR.
14297 .IP "\fB\-mexr\fR" 4
14298 .IX Item "-mexr"
14299 Extended registers are stored on stack before execution of function
14300 with monitor attribute. Default option is \fB\-mexr\fR.
14301 This option is valid only for H8S targets.
14302 .IP "\fB\-mno\-exr\fR" 4
14303 .IX Item "-mno-exr"
14304 Extended registers are not stored on stack before execution of function 
14305 with monitor attribute. Default option is \fB\-mno\-exr\fR. 
14306 This option is valid only for H8S targets.
14307 .IP "\fB\-mint32\fR" 4
14308 .IX Item "-mint32"
14309 Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
14310 .IP "\fB\-malign\-300\fR" 4
14311 .IX Item "-malign-300"
14312 On the H8/300H and H8S, use the same alignment rules as for the H8/300.
14313 The default for the H8/300H and H8S is to align longs and floats on
14314 4\-byte boundaries.
14315 \&\fB\-malign\-300\fR causes them to be aligned on 2\-byte boundaries.
14316 This option has no effect on the H8/300.
14317 .PP
14318 \fI\s-1HPPA\s0 Options\fR
14319 .IX Subsection "HPPA Options"
14320 .PP
14321 These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
14322 .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
14323 .IX Item "-march=architecture-type"
14324 Generate code for the specified architecture.  The choices for
14325 \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA 1.0, \s0\fB1.1\fR for \s-1PA
14326 1.1,\s0 and \fB2.0\fR for \s-1PA 2.0\s0 processors.  Refer to
14327 \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
14328 architecture option for your machine.  Code compiled for lower numbered
14329 architectures runs on higher numbered architectures, but not the
14330 other way around.
14331 .IP "\fB\-mpa\-risc\-1\-0\fR" 4
14332 .IX Item "-mpa-risc-1-0"
14333 .PD 0
14334 .IP "\fB\-mpa\-risc\-1\-1\fR" 4
14335 .IX Item "-mpa-risc-1-1"
14336 .IP "\fB\-mpa\-risc\-2\-0\fR" 4
14337 .IX Item "-mpa-risc-2-0"
14338 .PD
14339 Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
14340 .IP "\fB\-mjump\-in\-delay\fR" 4
14341 .IX Item "-mjump-in-delay"
14342 This option is ignored and provided for compatibility purposes only.
14343 .IP "\fB\-mdisable\-fpregs\fR" 4
14344 .IX Item "-mdisable-fpregs"
14345 Prevent floating-point registers from being used in any manner.  This is
14346 necessary for compiling kernels that perform lazy context switching of
14347 floating-point registers.  If you use this option and attempt to perform
14348 floating-point operations, the compiler aborts.
14349 .IP "\fB\-mdisable\-indexing\fR" 4
14350 .IX Item "-mdisable-indexing"
14351 Prevent the compiler from using indexing address modes.  This avoids some
14352 rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH.\s0
14353 .IP "\fB\-mno\-space\-regs\fR" 4
14354 .IX Item "-mno-space-regs"
14355 Generate code that assumes the target has no space registers.  This allows
14356 \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
14357 .Sp
14358 Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
14359 .IP "\fB\-mfast\-indirect\-calls\fR" 4
14360 .IX Item "-mfast-indirect-calls"
14361 Generate code that assumes calls never cross space boundaries.  This
14362 allows \s-1GCC\s0 to emit code that performs faster indirect calls.
14363 .Sp
14364 This option does not work in the presence of shared libraries or nested
14365 functions.
14366 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
14367 .IX Item "-mfixed-range=register-range"
14368 Generate code treating the given register range as fixed registers.
14369 A fixed register is one that the register allocator cannot use.  This is
14370 useful when compiling kernel code.  A register range is specified as
14371 two registers separated by a dash.  Multiple register ranges can be
14372 specified separated by a comma.
14373 .IP "\fB\-mlong\-load\-store\fR" 4
14374 .IX Item "-mlong-load-store"
14375 Generate 3\-instruction load and store sequences as sometimes required by
14376 the HP-UX 10 linker.  This is equivalent to the \fB+k\fR option to
14377 the \s-1HP\s0 compilers.
14378 .IP "\fB\-mportable\-runtime\fR" 4
14379 .IX Item "-mportable-runtime"
14380 Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
14381 .IP "\fB\-mgas\fR" 4
14382 .IX Item "-mgas"
14383 Enable the use of assembler directives only \s-1GAS\s0 understands.
14384 .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
14385 .IX Item "-mschedule=cpu-type"
14386 Schedule code according to the constraints for the machine type
14387 \&\fIcpu-type\fR.  The choices for \fIcpu-type\fR are \fB700\fR
14388 \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR.  Refer
14389 to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
14390 proper scheduling option for your machine.  The default scheduling is
14391 \&\fB8000\fR.
14392 .IP "\fB\-mlinker\-opt\fR" 4
14393 .IX Item "-mlinker-opt"
14394 Enable the optimization pass in the HP-UX linker.  Note this makes symbolic
14395 debugging impossible.  It also triggers a bug in the HP-UX 8 and HP-UX 9
14396 linkers in which they give bogus error messages when linking some programs.
14397 .IP "\fB\-msoft\-float\fR" 4
14398 .IX Item "-msoft-float"
14399 Generate output containing library calls for floating point.
14400 \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
14401 targets.  Normally the facilities of the machine's usual C compiler are
14402 used, but this cannot be done directly in cross-compilation.  You must make
14403 your own arrangements to provide suitable library functions for
14404 cross-compilation.
14405 .Sp
14406 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
14407 therefore, it is only useful if you compile \fIall\fR of a program with
14408 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
14409 library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
14410 this to work.
14411 .IP "\fB\-msio\fR" 4
14412 .IX Item "-msio"
14413 Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO. \s0 The default is
14414 \&\fB\-mwsio\fR.  This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
14415 \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO. \s0 These
14416 options are available under HP-UX and HI-UX.
14417 .IP "\fB\-mgnu\-ld\fR" 4
14418 .IX Item "-mgnu-ld"
14419 Use options specific to \s-1GNU \s0\fBld\fR.
14420 This passes \fB\-shared\fR to \fBld\fR when
14421 building a shared library.  It is the default when \s-1GCC\s0 is configured,
14422 explicitly or implicitly, with the \s-1GNU\s0 linker.  This option does not
14423 affect which \fBld\fR is called; it only changes what parameters
14424 are passed to that \fBld\fR.
14425 The \fBld\fR that is called is determined by the
14426 \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
14427 finally by the user's \fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed
14428 using \fBwhich `gcc \-print\-prog\-name=ld`\fR.  This option is only available
14429 on the 64\-bit HP-UX \s-1GCC,\s0 i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
14430 .IP "\fB\-mhp\-ld\fR" 4
14431 .IX Item "-mhp-ld"
14432 Use options specific to \s-1HP \s0\fBld\fR.
14433 This passes \fB\-b\fR to \fBld\fR when building
14434 a shared library and passes \fB+Accept TypeMismatch\fR to \fBld\fR on all
14435 links.  It is the default when \s-1GCC\s0 is configured, explicitly or
14436 implicitly, with the \s-1HP\s0 linker.  This option does not affect
14437 which \fBld\fR is called; it only changes what parameters are passed to that
14438 \&\fBld\fR.
14439 The \fBld\fR that is called is determined by the \fB\-\-with\-ld\fR
14440 configure option, \s-1GCC\s0's program search path, and finally by the user's
14441 \&\fB\s-1PATH\s0\fR.  The linker used by \s-1GCC\s0 can be printed using \fBwhich
14442 `gcc \-print\-prog\-name=ld`\fR.  This option is only available on the 64\-bit
14443 HP-UX \s-1GCC,\s0 i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
14444 .IP "\fB\-mlong\-calls\fR" 4
14445 .IX Item "-mlong-calls"
14446 Generate code that uses long call sequences.  This ensures that a call
14447 is always able to reach linker generated stubs.  The default is to generate
14448 long calls only when the distance from the call site to the beginning
14449 of the function or translation unit, as the case may be, exceeds a
14450 predefined limit set by the branch type being used.  The limits for
14451 normal calls are 7,600,000 and 240,000 bytes, respectively for the
14452 \&\s-1PA 2.0\s0 and \s-1PA 1.X\s0 architectures.  Sibcalls are always limited at
14453 240,000 bytes.
14454 .Sp
14455 Distances are measured from the beginning of functions when using the
14456 \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
14457 and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
14458 the \s-1SOM\s0 linker.
14459 .Sp
14460 It is normally not desirable to use this option as it degrades
14461 performance.  However, it may be useful in large applications,
14462 particularly when partial linking is used to build the application.
14463 .Sp
14464 The types of long calls used depends on the capabilities of the
14465 assembler and linker, and the type of code being generated.  The
14466 impact on systems that support long absolute calls, and long pic
14467 symbol-difference or pc-relative calls should be relatively small.
14468 However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
14469 and it is quite long.
14470 .IP "\fB\-munix=\fR\fIunix-std\fR" 4
14471 .IX Item "-munix=unix-std"
14472 Generate compiler predefines and select a startfile for the specified
14473 \&\s-1UNIX\s0 standard.  The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
14474 and \fB98\fR.  \fB93\fR is supported on all HP-UX versions.  \fB95\fR
14475 is available on HP-UX 10.10 and later.  \fB98\fR is available on HP-UX
14476 11.11 and later.  The default values are \fB93\fR for HP-UX 10.00,
14477 \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
14478 and later.
14479 .Sp
14480 \&\fB\-munix=93\fR provides the same predefines as \s-1GCC 3.3\s0 and 3.4.
14481 \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
14482 and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
14483 \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
14484 \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
14485 \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
14486 .Sp
14487 It is \fIimportant\fR to note that this option changes the interfaces
14488 for various library routines.  It also affects the operational behavior
14489 of the C library.  Thus, \fIextreme\fR care is needed in using this
14490 option.
14491 .Sp
14492 Library code that is intended to operate with more than one \s-1UNIX\s0
14493 standard must test, set and restore the variable \f(CW\*(C`_\|_xpg4_extended_mask\*(C'\fR
14494 as appropriate.  Most \s-1GNU\s0 software doesn't provide this capability.
14495 .IP "\fB\-nolibdld\fR" 4
14496 .IX Item "-nolibdld"
14497 Suppress the generation of link options to search libdld.sl when the
14498 \&\fB\-static\fR option is specified on HP-UX 10 and later.
14499 .IP "\fB\-static\fR" 4
14500 .IX Item "-static"
14501 The HP-UX implementation of setlocale in libc has a dependency on
14502 libdld.sl.  There isn't an archive version of libdld.sl.  Thus,
14503 when the \fB\-static\fR option is specified, special link options
14504 are needed to resolve this dependency.
14505 .Sp
14506 On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
14507 link with libdld.sl when the \fB\-static\fR option is specified.
14508 This causes the resulting binary to be dynamic.  On the 64\-bit port,
14509 the linkers generate dynamic binaries by default in any case.  The
14510 \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
14511 adding these link options.
14512 .IP "\fB\-threads\fR" 4
14513 .IX Item "-threads"
14514 Add support for multithreading with the \fIdce thread\fR library
14515 under HP-UX.  This option sets flags for both the preprocessor and
14516 linker.
14517 .PP
14518 \fI\s-1IA\-64\s0 Options\fR
14519 .IX Subsection "IA-64 Options"
14520 .PP
14521 These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
14522 .IP "\fB\-mbig\-endian\fR" 4
14523 .IX Item "-mbig-endian"
14524 Generate code for a big-endian target.  This is the default for HP-UX.
14525 .IP "\fB\-mlittle\-endian\fR" 4
14526 .IX Item "-mlittle-endian"
14527 Generate code for a little-endian target.  This is the default for \s-1AIX5\s0
14528 and GNU/Linux.
14529 .IP "\fB\-mgnu\-as\fR" 4
14530 .IX Item "-mgnu-as"
14531 .PD 0
14532 .IP "\fB\-mno\-gnu\-as\fR" 4
14533 .IX Item "-mno-gnu-as"
14534 .PD
14535 Generate (or don't) code for the \s-1GNU\s0 assembler.  This is the default.
14536 .IP "\fB\-mgnu\-ld\fR" 4
14537 .IX Item "-mgnu-ld"
14538 .PD 0
14539 .IP "\fB\-mno\-gnu\-ld\fR" 4
14540 .IX Item "-mno-gnu-ld"
14541 .PD
14542 Generate (or don't) code for the \s-1GNU\s0 linker.  This is the default.
14543 .IP "\fB\-mno\-pic\fR" 4
14544 .IX Item "-mno-pic"
14545 Generate code that does not use a global pointer register.  The result
14546 is not position independent code, and violates the \s-1IA\-64 ABI.\s0
14547 .IP "\fB\-mvolatile\-asm\-stop\fR" 4
14548 .IX Item "-mvolatile-asm-stop"
14549 .PD 0
14550 .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
14551 .IX Item "-mno-volatile-asm-stop"
14552 .PD
14553 Generate (or don't) a stop bit immediately before and after volatile asm
14554 statements.
14555 .IP "\fB\-mregister\-names\fR" 4
14556 .IX Item "-mregister-names"
14557 .PD 0
14558 .IP "\fB\-mno\-register\-names\fR" 4
14559 .IX Item "-mno-register-names"
14560 .PD
14561 Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
14562 the stacked registers.  This may make assembler output more readable.
14563 .IP "\fB\-mno\-sdata\fR" 4
14564 .IX Item "-mno-sdata"
14565 .PD 0
14566 .IP "\fB\-msdata\fR" 4
14567 .IX Item "-msdata"
14568 .PD
14569 Disable (or enable) optimizations that use the small data section.  This may
14570 be useful for working around optimizer bugs.
14571 .IP "\fB\-mconstant\-gp\fR" 4
14572 .IX Item "-mconstant-gp"
14573 Generate code that uses a single constant global pointer value.  This is
14574 useful when compiling kernel code.
14575 .IP "\fB\-mauto\-pic\fR" 4
14576 .IX Item "-mauto-pic"
14577 Generate code that is self-relocatable.  This implies \fB\-mconstant\-gp\fR.
14578 This is useful when compiling firmware code.
14579 .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
14580 .IX Item "-minline-float-divide-min-latency"
14581 Generate code for inline divides of floating-point values
14582 using the minimum latency algorithm.
14583 .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
14584 .IX Item "-minline-float-divide-max-throughput"
14585 Generate code for inline divides of floating-point values
14586 using the maximum throughput algorithm.
14587 .IP "\fB\-mno\-inline\-float\-divide\fR" 4
14588 .IX Item "-mno-inline-float-divide"
14589 Do not generate inline code for divides of floating-point values.
14590 .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
14591 .IX Item "-minline-int-divide-min-latency"
14592 Generate code for inline divides of integer values
14593 using the minimum latency algorithm.
14594 .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
14595 .IX Item "-minline-int-divide-max-throughput"
14596 Generate code for inline divides of integer values
14597 using the maximum throughput algorithm.
14598 .IP "\fB\-mno\-inline\-int\-divide\fR" 4
14599 .IX Item "-mno-inline-int-divide"
14600 Do not generate inline code for divides of integer values.
14601 .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
14602 .IX Item "-minline-sqrt-min-latency"
14603 Generate code for inline square roots
14604 using the minimum latency algorithm.
14605 .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
14606 .IX Item "-minline-sqrt-max-throughput"
14607 Generate code for inline square roots
14608 using the maximum throughput algorithm.
14609 .IP "\fB\-mno\-inline\-sqrt\fR" 4
14610 .IX Item "-mno-inline-sqrt"
14611 Do not generate inline code for \f(CW\*(C`sqrt\*(C'\fR.
14612 .IP "\fB\-mfused\-madd\fR" 4
14613 .IX Item "-mfused-madd"
14614 .PD 0
14615 .IP "\fB\-mno\-fused\-madd\fR" 4
14616 .IX Item "-mno-fused-madd"
14617 .PD
14618 Do (don't) generate code that uses the fused multiply/add or multiply/subtract
14619 instructions.  The default is to use these instructions.
14620 .IP "\fB\-mno\-dwarf2\-asm\fR" 4
14621 .IX Item "-mno-dwarf2-asm"
14622 .PD 0
14623 .IP "\fB\-mdwarf2\-asm\fR" 4
14624 .IX Item "-mdwarf2-asm"
14625 .PD
14626 Don't (or do) generate assembler code for the \s-1DWARF 2\s0 line number debugging
14627 info.  This may be useful when not using the \s-1GNU\s0 assembler.
14628 .IP "\fB\-mearly\-stop\-bits\fR" 4
14629 .IX Item "-mearly-stop-bits"
14630 .PD 0
14631 .IP "\fB\-mno\-early\-stop\-bits\fR" 4
14632 .IX Item "-mno-early-stop-bits"
14633 .PD
14634 Allow stop bits to be placed earlier than immediately preceding the
14635 instruction that triggered the stop bit.  This can improve instruction
14636 scheduling, but does not always do so.
14637 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
14638 .IX Item "-mfixed-range=register-range"
14639 Generate code treating the given register range as fixed registers.
14640 A fixed register is one that the register allocator cannot use.  This is
14641 useful when compiling kernel code.  A register range is specified as
14642 two registers separated by a dash.  Multiple register ranges can be
14643 specified separated by a comma.
14644 .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
14645 .IX Item "-mtls-size=tls-size"
14646 Specify bit size of immediate \s-1TLS\s0 offsets.  Valid values are 14, 22, and
14647 64.
14648 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
14649 .IX Item "-mtune=cpu-type"
14650 Tune the instruction scheduling for a particular \s-1CPU,\s0 Valid values are
14651 \&\fBitanium\fR, \fBitanium1\fR, \fBmerced\fR, \fBitanium2\fR,
14652 and \fBmckinley\fR.
14653 .IP "\fB\-milp32\fR" 4
14654 .IX Item "-milp32"
14655 .PD 0
14656 .IP "\fB\-mlp64\fR" 4
14657 .IX Item "-mlp64"
14658 .PD
14659 Generate code for a 32\-bit or 64\-bit environment.
14660 The 32\-bit environment sets int, long and pointer to 32 bits.
14661 The 64\-bit environment sets int to 32 bits and long and pointer
14662 to 64 bits.  These are HP-UX specific flags.
14663 .IP "\fB\-mno\-sched\-br\-data\-spec\fR" 4
14664 .IX Item "-mno-sched-br-data-spec"
14665 .PD 0
14666 .IP "\fB\-msched\-br\-data\-spec\fR" 4
14667 .IX Item "-msched-br-data-spec"
14668 .PD
14669 (Dis/En)able data speculative scheduling before reload.
14670 This results in generation of \f(CW\*(C`ld.a\*(C'\fR instructions and
14671 the corresponding check instructions (\f(CW\*(C`ld.c\*(C'\fR / \f(CW\*(C`chk.a\*(C'\fR).
14672 The default is 'disable'.
14673 .IP "\fB\-msched\-ar\-data\-spec\fR" 4
14674 .IX Item "-msched-ar-data-spec"
14675 .PD 0
14676 .IP "\fB\-mno\-sched\-ar\-data\-spec\fR" 4
14677 .IX Item "-mno-sched-ar-data-spec"
14678 .PD
14679 (En/Dis)able data speculative scheduling after 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 'enable'.
14683 .IP "\fB\-mno\-sched\-control\-spec\fR" 4
14684 .IX Item "-mno-sched-control-spec"
14685 .PD 0
14686 .IP "\fB\-msched\-control\-spec\fR" 4
14687 .IX Item "-msched-control-spec"
14688 .PD
14689 (Dis/En)able control speculative scheduling.  This feature is
14690 available only during region scheduling (i.e. before reload).
14691 This results in generation of the \f(CW\*(C`ld.s\*(C'\fR instructions and
14692 the corresponding check instructions \f(CW\*(C`chk.s\*(C'\fR.
14693 The default is 'disable'.
14694 .IP "\fB\-msched\-br\-in\-data\-spec\fR" 4
14695 .IX Item "-msched-br-in-data-spec"
14696 .PD 0
14697 .IP "\fB\-mno\-sched\-br\-in\-data\-spec\fR" 4
14698 .IX Item "-mno-sched-br-in-data-spec"
14699 .PD
14700 (En/Dis)able speculative scheduling of the instructions that
14701 are dependent on the data speculative loads before reload.
14702 This is effective only with \fB\-msched\-br\-data\-spec\fR enabled.
14703 The default is 'enable'.
14704 .IP "\fB\-msched\-ar\-in\-data\-spec\fR" 4
14705 .IX Item "-msched-ar-in-data-spec"
14706 .PD 0
14707 .IP "\fB\-mno\-sched\-ar\-in\-data\-spec\fR" 4
14708 .IX Item "-mno-sched-ar-in-data-spec"
14709 .PD
14710 (En/Dis)able speculative scheduling of the instructions that
14711 are dependent on the data speculative loads after reload.
14712 This is effective only with \fB\-msched\-ar\-data\-spec\fR enabled.
14713 The default is 'enable'.
14714 .IP "\fB\-msched\-in\-control\-spec\fR" 4
14715 .IX Item "-msched-in-control-spec"
14716 .PD 0
14717 .IP "\fB\-mno\-sched\-in\-control\-spec\fR" 4
14718 .IX Item "-mno-sched-in-control-spec"
14719 .PD
14720 (En/Dis)able speculative scheduling of the instructions that
14721 are dependent on the control speculative loads.
14722 This is effective only with \fB\-msched\-control\-spec\fR enabled.
14723 The default is 'enable'.
14724 .IP "\fB\-mno\-sched\-prefer\-non\-data\-spec\-insns\fR" 4
14725 .IX Item "-mno-sched-prefer-non-data-spec-insns"
14726 .PD 0
14727 .IP "\fB\-msched\-prefer\-non\-data\-spec\-insns\fR" 4
14728 .IX Item "-msched-prefer-non-data-spec-insns"
14729 .PD
14730 If enabled, data-speculative instructions are chosen for schedule
14731 only if there are no other choices at the moment.  This makes
14732 the use of the data speculation much more conservative.
14733 The default is 'disable'.
14734 .IP "\fB\-mno\-sched\-prefer\-non\-control\-spec\-insns\fR" 4
14735 .IX Item "-mno-sched-prefer-non-control-spec-insns"
14736 .PD 0
14737 .IP "\fB\-msched\-prefer\-non\-control\-spec\-insns\fR" 4
14738 .IX Item "-msched-prefer-non-control-spec-insns"
14739 .PD
14740 If enabled, control-speculative instructions are chosen for schedule
14741 only if there are no other choices at the moment.  This makes
14742 the use of the control speculation much more conservative.
14743 The default is 'disable'.
14744 .IP "\fB\-mno\-sched\-count\-spec\-in\-critical\-path\fR" 4
14745 .IX Item "-mno-sched-count-spec-in-critical-path"
14746 .PD 0
14747 .IP "\fB\-msched\-count\-spec\-in\-critical\-path\fR" 4
14748 .IX Item "-msched-count-spec-in-critical-path"
14749 .PD
14750 If enabled, speculative dependencies are considered during
14751 computation of the instructions priorities.  This makes the use of the
14752 speculation a bit more conservative.
14753 The default is 'disable'.
14754 .IP "\fB\-msched\-spec\-ldc\fR" 4
14755 .IX Item "-msched-spec-ldc"
14756 Use a simple data speculation check.  This option is on by default.
14757 .IP "\fB\-msched\-control\-spec\-ldc\fR" 4
14758 .IX Item "-msched-control-spec-ldc"
14759 Use a simple check for control speculation.  This option is on by default.
14760 .IP "\fB\-msched\-stop\-bits\-after\-every\-cycle\fR" 4
14761 .IX Item "-msched-stop-bits-after-every-cycle"
14762 Place a stop bit after every cycle when scheduling.  This option is on
14763 by default.
14764 .IP "\fB\-msched\-fp\-mem\-deps\-zero\-cost\fR" 4
14765 .IX Item "-msched-fp-mem-deps-zero-cost"
14766 Assume that floating-point stores and loads are not likely to cause a conflict
14767 when placed into the same instruction group.  This option is disabled by
14768 default.
14769 .IP "\fB\-msel\-sched\-dont\-check\-control\-spec\fR" 4
14770 .IX Item "-msel-sched-dont-check-control-spec"
14771 Generate checks for control speculation in selective scheduling.
14772 This flag is disabled by default.
14773 .IP "\fB\-msched\-max\-memory\-insns=\fR\fImax-insns\fR" 4
14774 .IX Item "-msched-max-memory-insns=max-insns"
14775 Limit on the number of memory insns per instruction group, giving lower
14776 priority to subsequent memory insns attempting to schedule in the same
14777 instruction group. Frequently useful to prevent cache bank conflicts.
14778 The default value is 1.
14779 .IP "\fB\-msched\-max\-memory\-insns\-hard\-limit\fR" 4
14780 .IX Item "-msched-max-memory-insns-hard-limit"
14781 Makes the limit specified by \fBmsched-max-memory-insns\fR a hard limit,
14782 disallowing more than that number in an instruction group.
14783 Otherwise, the limit is \*(L"soft\*(R", meaning that non-memory operations
14784 are preferred when the limit is reached, but memory operations may still
14785 be scheduled.
14786 .PP
14787 \fI\s-1LM32\s0 Options\fR
14788 .IX Subsection "LM32 Options"
14789 .PP
14790 These \fB\-m\fR options are defined for the LatticeMico32 architecture:
14791 .IP "\fB\-mbarrel\-shift\-enabled\fR" 4
14792 .IX Item "-mbarrel-shift-enabled"
14793 Enable barrel-shift instructions.
14794 .IP "\fB\-mdivide\-enabled\fR" 4
14795 .IX Item "-mdivide-enabled"
14796 Enable divide and modulus instructions.
14797 .IP "\fB\-mmultiply\-enabled\fR" 4
14798 .IX Item "-mmultiply-enabled"
14799 Enable multiply instructions.
14800 .IP "\fB\-msign\-extend\-enabled\fR" 4
14801 .IX Item "-msign-extend-enabled"
14802 Enable sign extend instructions.
14803 .IP "\fB\-muser\-enabled\fR" 4
14804 .IX Item "-muser-enabled"
14805 Enable user-defined instructions.
14806 .PP
14807 \fIM32C Options\fR
14808 .IX Subsection "M32C Options"
14809 .IP "\fB\-mcpu=\fR\fIname\fR" 4
14810 .IX Item "-mcpu=name"
14811 Select the \s-1CPU\s0 for which code is generated.  \fIname\fR may be one of
14812 \&\fBr8c\fR for the R8C/Tiny series, \fBm16c\fR for the M16C (up to
14813 /60) series, \fBm32cm\fR for the M16C/80 series, or \fBm32c\fR for
14814 the M32C/80 series.
14815 .IP "\fB\-msim\fR" 4
14816 .IX Item "-msim"
14817 Specifies that the program will be run on the simulator.  This causes
14818 an alternate runtime library to be linked in which supports, for
14819 example, file I/O.  You must not use this option when generating
14820 programs that will run on real hardware; you must provide your own
14821 runtime library for whatever I/O functions are needed.
14822 .IP "\fB\-memregs=\fR\fInumber\fR" 4
14823 .IX Item "-memregs=number"
14824 Specifies the number of memory-based pseudo-registers \s-1GCC\s0 uses
14825 during code generation.  These pseudo-registers are used like real
14826 registers, so there is a tradeoff between \s-1GCC\s0's ability to fit the
14827 code into available registers, and the performance penalty of using
14828 memory instead of registers.  Note that all modules in a program must
14829 be compiled with the same value for this option.  Because of that, you
14830 must not use this option with \s-1GCC\s0's default runtime libraries.
14831 .PP
14832 \fIM32R/D Options\fR
14833 .IX Subsection "M32R/D Options"
14834 .PP
14835 These \fB\-m\fR options are defined for Renesas M32R/D architectures:
14836 .IP "\fB\-m32r2\fR" 4
14837 .IX Item "-m32r2"
14838 Generate code for the M32R/2.
14839 .IP "\fB\-m32rx\fR" 4
14840 .IX Item "-m32rx"
14841 Generate code for the M32R/X.
14842 .IP "\fB\-m32r\fR" 4
14843 .IX Item "-m32r"
14844 Generate code for the M32R.  This is the default.
14845 .IP "\fB\-mmodel=small\fR" 4
14846 .IX Item "-mmodel=small"
14847 Assume all objects live in the lower 16MB of memory (so that their addresses
14848 can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
14849 are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
14850 This is the default.
14851 .Sp
14852 The addressability of a particular object can be set with the
14853 \&\f(CW\*(C`model\*(C'\fR attribute.
14854 .IP "\fB\-mmodel=medium\fR" 4
14855 .IX Item "-mmodel=medium"
14856 Assume objects may be anywhere in the 32\-bit address space (the compiler
14857 generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
14858 assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
14859 .IP "\fB\-mmodel=large\fR" 4
14860 .IX Item "-mmodel=large"
14861 Assume objects may be anywhere in the 32\-bit address space (the compiler
14862 generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
14863 assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
14864 (the compiler generates the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
14865 instruction sequence).
14866 .IP "\fB\-msdata=none\fR" 4
14867 .IX Item "-msdata=none"
14868 Disable use of the small data area.  Variables are put into
14869 one of \f(CW\*(C`.data\*(C'\fR, \f(CW\*(C`.bss\*(C'\fR, or \f(CW\*(C`.rodata\*(C'\fR (unless the
14870 \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
14871 This is the default.
14872 .Sp
14873 The small data area consists of sections \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR.
14874 Objects may be explicitly put in the small data area with the
14875 \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
14876 .IP "\fB\-msdata=sdata\fR" 4
14877 .IX Item "-msdata=sdata"
14878 Put small global and static data in the small data area, but do not
14879 generate special code to reference them.
14880 .IP "\fB\-msdata=use\fR" 4
14881 .IX Item "-msdata=use"
14882 Put small global and static data in the small data area, and generate
14883 special instructions to reference them.
14884 .IP "\fB\-G\fR \fInum\fR" 4
14885 .IX Item "-G num"
14886 Put global and static objects less than or equal to \fInum\fR bytes
14887 into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
14888 sections.  The default value of \fInum\fR is 8.
14889 The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
14890 for this option to have any effect.
14891 .Sp
14892 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
14893 Compiling with different values of \fInum\fR may or may not work; if it
14894 doesn't the linker gives an error message\-\-\-incorrect code is not
14895 generated.
14896 .IP "\fB\-mdebug\fR" 4
14897 .IX Item "-mdebug"
14898 Makes the M32R\-specific code in the compiler display some statistics
14899 that might help in debugging programs.
14900 .IP "\fB\-malign\-loops\fR" 4
14901 .IX Item "-malign-loops"
14902 Align all loops to a 32\-byte boundary.
14903 .IP "\fB\-mno\-align\-loops\fR" 4
14904 .IX Item "-mno-align-loops"
14905 Do not enforce a 32\-byte alignment for loops.  This is the default.
14906 .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
14907 .IX Item "-missue-rate=number"
14908 Issue \fInumber\fR instructions per cycle.  \fInumber\fR can only be 1
14909 or 2.
14910 .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
14911 .IX Item "-mbranch-cost=number"
14912 \&\fInumber\fR can only be 1 or 2.  If it is 1 then branches are
14913 preferred over conditional code, if it is 2, then the opposite applies.
14914 .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
14915 .IX Item "-mflush-trap=number"
14916 Specifies the trap number to use to flush the cache.  The default is
14917 12.  Valid numbers are between 0 and 15 inclusive.
14918 .IP "\fB\-mno\-flush\-trap\fR" 4
14919 .IX Item "-mno-flush-trap"
14920 Specifies that the cache cannot be flushed by using a trap.
14921 .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
14922 .IX Item "-mflush-func=name"
14923 Specifies the name of the operating system function to call to flush
14924 the cache.  The default is \fB_flush_cache\fR, but a function call
14925 is only used if a trap is not available.
14926 .IP "\fB\-mno\-flush\-func\fR" 4
14927 .IX Item "-mno-flush-func"
14928 Indicates that there is no \s-1OS\s0 function for flushing the cache.
14929 .PP
14930 \fIM680x0 Options\fR
14931 .IX Subsection "M680x0 Options"
14932 .PP
14933 These are the \fB\-m\fR options defined for M680x0 and ColdFire processors.
14934 The default settings depend on which architecture was selected when
14935 the compiler was configured; the defaults for the most common choices
14936 are given below.
14937 .IP "\fB\-march=\fR\fIarch\fR" 4
14938 .IX Item "-march=arch"
14939 Generate code for a specific M680x0 or ColdFire instruction set
14940 architecture.  Permissible values of \fIarch\fR for M680x0
14941 architectures are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
14942 \&\fB68030\fR, \fB68040\fR, \fB68060\fR and \fBcpu32\fR.  ColdFire
14943 architectures are selected according to Freescale's \s-1ISA\s0 classification
14944 and the permissible values are: \fBisaa\fR, \fBisaaplus\fR,
14945 \&\fBisab\fR and \fBisac\fR.
14946 .Sp
14947 \&\s-1GCC\s0 defines a macro \f(CW\*(C`_\|_mcf\f(CIarch\f(CW_\|_\*(C'\fR whenever it is generating
14948 code for a ColdFire target.  The \fIarch\fR in this macro is one of the
14949 \&\fB\-march\fR arguments given above.
14950 .Sp
14951 When used together, \fB\-march\fR and \fB\-mtune\fR select code
14952 that runs on a family of similar processors but that is optimized
14953 for a particular microarchitecture.
14954 .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
14955 .IX Item "-mcpu=cpu"
14956 Generate code for a specific M680x0 or ColdFire processor.
14957 The M680x0 \fIcpu\fRs are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
14958 \&\fB68030\fR, \fB68040\fR, \fB68060\fR, \fB68302\fR, \fB68332\fR
14959 and \fBcpu32\fR.  The ColdFire \fIcpu\fRs are given by the table
14960 below, which also classifies the CPUs into families:
14961 .RS 4
14962 .IP "Family : \fB\-mcpu\fR arguments" 4
14963 .IX Item "Family : -mcpu arguments"
14964 .PD 0
14965 .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
14966 .IX Item "51 : 51 51ac 51ag 51cn 51em 51je 51jf 51jg 51jm 51mm 51qe 51qm"
14967 .IP "\fB5206\fR : \fB5202\fR \fB5204\fR \fB5206\fR" 4
14968 .IX Item "5206 : 5202 5204 5206"
14969 .IP "\fB5206e\fR : \fB5206e\fR" 4
14970 .IX Item "5206e : 5206e"
14971 .IP "\fB5208\fR : \fB5207\fR \fB5208\fR" 4
14972 .IX Item "5208 : 5207 5208"
14973 .IP "\fB5211a\fR : \fB5210a\fR \fB5211a\fR" 4
14974 .IX Item "5211a : 5210a 5211a"
14975 .IP "\fB5213\fR : \fB5211\fR \fB5212\fR \fB5213\fR" 4
14976 .IX Item "5213 : 5211 5212 5213"
14977 .IP "\fB5216\fR : \fB5214\fR \fB5216\fR" 4
14978 .IX Item "5216 : 5214 5216"
14979 .IP "\fB52235\fR : \fB52230\fR \fB52231\fR \fB52232\fR \fB52233\fR \fB52234\fR \fB52235\fR" 4
14980 .IX Item "52235 : 52230 52231 52232 52233 52234 52235"
14981 .IP "\fB5225\fR : \fB5224\fR \fB5225\fR" 4
14982 .IX Item "5225 : 5224 5225"
14983 .IP "\fB52259\fR : \fB52252\fR \fB52254\fR \fB52255\fR \fB52256\fR \fB52258\fR \fB52259\fR" 4
14984 .IX Item "52259 : 52252 52254 52255 52256 52258 52259"
14985 .IP "\fB5235\fR : \fB5232\fR \fB5233\fR \fB5234\fR \fB5235\fR \fB523x\fR" 4
14986 .IX Item "5235 : 5232 5233 5234 5235 523x"
14987 .IP "\fB5249\fR : \fB5249\fR" 4
14988 .IX Item "5249 : 5249"
14989 .IP "\fB5250\fR : \fB5250\fR" 4
14990 .IX Item "5250 : 5250"
14991 .IP "\fB5271\fR : \fB5270\fR \fB5271\fR" 4
14992 .IX Item "5271 : 5270 5271"
14993 .IP "\fB5272\fR : \fB5272\fR" 4
14994 .IX Item "5272 : 5272"
14995 .IP "\fB5275\fR : \fB5274\fR \fB5275\fR" 4
14996 .IX Item "5275 : 5274 5275"
14997 .IP "\fB5282\fR : \fB5280\fR \fB5281\fR \fB5282\fR \fB528x\fR" 4
14998 .IX Item "5282 : 5280 5281 5282 528x"
14999 .IP "\fB53017\fR : \fB53011\fR \fB53012\fR \fB53013\fR \fB53014\fR \fB53015\fR \fB53016\fR \fB53017\fR" 4
15000 .IX Item "53017 : 53011 53012 53013 53014 53015 53016 53017"
15001 .IP "\fB5307\fR : \fB5307\fR" 4
15002 .IX Item "5307 : 5307"
15003 .IP "\fB5329\fR : \fB5327\fR \fB5328\fR \fB5329\fR \fB532x\fR" 4
15004 .IX Item "5329 : 5327 5328 5329 532x"
15005 .IP "\fB5373\fR : \fB5372\fR \fB5373\fR \fB537x\fR" 4
15006 .IX Item "5373 : 5372 5373 537x"
15007 .IP "\fB5407\fR : \fB5407\fR" 4
15008 .IX Item "5407 : 5407"
15009 .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
15010 .IX Item "5475 : 5470 5471 5472 5473 5474 5475 547x 5480 5481 5482 5483 5484 5485"
15011 .RE
15012 .RS 4
15013 .PD
15014 .Sp
15015 \&\fB\-mcpu=\fR\fIcpu\fR overrides \fB\-march=\fR\fIarch\fR if
15016 \&\fIarch\fR is compatible with \fIcpu\fR.  Other combinations of
15017 \&\fB\-mcpu\fR and \fB\-march\fR are rejected.
15018 .Sp
15019 \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcf_cpu_\f(CIcpu\f(CW\*(C'\fR when ColdFire target
15020 \&\fIcpu\fR is selected.  It also defines \f(CW\*(C`_\|_mcf_family_\f(CIfamily\f(CW\*(C'\fR,
15021 where the value of \fIfamily\fR is given by the table above.
15022 .RE
15023 .IP "\fB\-mtune=\fR\fItune\fR" 4
15024 .IX Item "-mtune=tune"
15025 Tune the code for a particular microarchitecture within the
15026 constraints set by \fB\-march\fR and \fB\-mcpu\fR.
15027 The M680x0 microarchitectures are: \fB68000\fR, \fB68010\fR,
15028 \&\fB68020\fR, \fB68030\fR, \fB68040\fR, \fB68060\fR
15029 and \fBcpu32\fR.  The ColdFire microarchitectures
15030 are: \fBcfv1\fR, \fBcfv2\fR, \fBcfv3\fR, \fBcfv4\fR and \fBcfv4e\fR.
15031 .Sp
15032 You can also use \fB\-mtune=68020\-40\fR for code that needs
15033 to run relatively well on 68020, 68030 and 68040 targets.
15034 \&\fB\-mtune=68020\-60\fR is similar but includes 68060 targets
15035 as well.  These two options select the same tuning decisions as
15036 \&\fB\-m68020\-40\fR and \fB\-m68020\-60\fR respectively.
15037 .Sp
15038 \&\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
15039 when tuning for 680x0 architecture \fIarch\fR.  It also defines
15040 \&\f(CW\*(C`mc\f(CIarch\f(CW\*(C'\fR unless either \fB\-ansi\fR or a non-GNU \fB\-std\fR
15041 option is used.  If \s-1GCC\s0 is tuning for a range of architectures,
15042 as selected by \fB\-mtune=68020\-40\fR or \fB\-mtune=68020\-60\fR,
15043 it defines the macros for every architecture in the range.
15044 .Sp
15045 \&\s-1GCC\s0 also defines the macro \f(CW\*(C`_\|_m\f(CIuarch\f(CW_\|_\*(C'\fR when tuning for
15046 ColdFire microarchitecture \fIuarch\fR, where \fIuarch\fR is one
15047 of the arguments given above.
15048 .IP "\fB\-m68000\fR" 4
15049 .IX Item "-m68000"
15050 .PD 0
15051 .IP "\fB\-mc68000\fR" 4
15052 .IX Item "-mc68000"
15053 .PD
15054 Generate output for a 68000.  This is the default
15055 when the compiler is configured for 68000\-based systems.
15056 It is equivalent to \fB\-march=68000\fR.
15057 .Sp
15058 Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
15059 including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
15060 .IP "\fB\-m68010\fR" 4
15061 .IX Item "-m68010"
15062 Generate output for a 68010.  This is the default
15063 when the compiler is configured for 68010\-based systems.
15064 It is equivalent to \fB\-march=68010\fR.
15065 .IP "\fB\-m68020\fR" 4
15066 .IX Item "-m68020"
15067 .PD 0
15068 .IP "\fB\-mc68020\fR" 4
15069 .IX Item "-mc68020"
15070 .PD
15071 Generate output for a 68020.  This is the default
15072 when the compiler is configured for 68020\-based systems.
15073 It is equivalent to \fB\-march=68020\fR.
15074 .IP "\fB\-m68030\fR" 4
15075 .IX Item "-m68030"
15076 Generate output for a 68030.  This is the default when the compiler is
15077 configured for 68030\-based systems.  It is equivalent to
15078 \&\fB\-march=68030\fR.
15079 .IP "\fB\-m68040\fR" 4
15080 .IX Item "-m68040"
15081 Generate output for a 68040.  This is the default when the compiler is
15082 configured for 68040\-based systems.  It is equivalent to
15083 \&\fB\-march=68040\fR.
15084 .Sp
15085 This option inhibits the use of 68881/68882 instructions that have to be
15086 emulated by software on the 68040.  Use this option if your 68040 does not
15087 have code to emulate those instructions.
15088 .IP "\fB\-m68060\fR" 4
15089 .IX Item "-m68060"
15090 Generate output for a 68060.  This is the default when the compiler is
15091 configured for 68060\-based systems.  It is equivalent to
15092 \&\fB\-march=68060\fR.
15093 .Sp
15094 This option inhibits the use of 68020 and 68881/68882 instructions that
15095 have to be emulated by software on the 68060.  Use this option if your 68060
15096 does not have code to emulate those instructions.
15097 .IP "\fB\-mcpu32\fR" 4
15098 .IX Item "-mcpu32"
15099 Generate output for a \s-1CPU32. \s0 This is the default
15100 when the compiler is configured for CPU32\-based systems.
15101 It is equivalent to \fB\-march=cpu32\fR.
15102 .Sp
15103 Use this option for microcontrollers with a
15104 \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
15105 68336, 68340, 68341, 68349 and 68360.
15106 .IP "\fB\-m5200\fR" 4
15107 .IX Item "-m5200"
15108 Generate output for a 520X ColdFire \s-1CPU. \s0 This is the default
15109 when the compiler is configured for 520X\-based systems.
15110 It is equivalent to \fB\-mcpu=5206\fR, and is now deprecated
15111 in favor of that option.
15112 .Sp
15113 Use this option for microcontroller with a 5200 core, including
15114 the \s-1MCF5202, MCF5203, MCF5204\s0 and \s-1MCF5206.\s0
15115 .IP "\fB\-m5206e\fR" 4
15116 .IX Item "-m5206e"
15117 Generate output for a 5206e ColdFire \s-1CPU. \s0 The option is now
15118 deprecated in favor of the equivalent \fB\-mcpu=5206e\fR.
15119 .IP "\fB\-m528x\fR" 4
15120 .IX Item "-m528x"
15121 Generate output for a member of the ColdFire 528X family.
15122 The option is now deprecated in favor of the equivalent
15123 \&\fB\-mcpu=528x\fR.
15124 .IP "\fB\-m5307\fR" 4
15125 .IX Item "-m5307"
15126 Generate output for a ColdFire 5307 \s-1CPU. \s0 The option is now deprecated
15127 in favor of the equivalent \fB\-mcpu=5307\fR.
15128 .IP "\fB\-m5407\fR" 4
15129 .IX Item "-m5407"
15130 Generate output for a ColdFire 5407 \s-1CPU. \s0 The option is now deprecated
15131 in favor of the equivalent \fB\-mcpu=5407\fR.
15132 .IP "\fB\-mcfv4e\fR" 4
15133 .IX Item "-mcfv4e"
15134 Generate output for a ColdFire V4e family \s-1CPU \s0(e.g. 547x/548x).
15135 This includes use of hardware floating-point instructions.
15136 The option is equivalent to \fB\-mcpu=547x\fR, and is now
15137 deprecated in favor of that option.
15138 .IP "\fB\-m68020\-40\fR" 4
15139 .IX Item "-m68020-40"
15140 Generate output for a 68040, without using any of the new instructions.
15141 This results in code that can run relatively efficiently on either a
15142 68020/68881 or a 68030 or a 68040.  The generated code does use the
15143 68881 instructions that are emulated on the 68040.
15144 .Sp
15145 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-40\fR.
15146 .IP "\fB\-m68020\-60\fR" 4
15147 .IX Item "-m68020-60"
15148 Generate output for a 68060, without using any of the new instructions.
15149 This results in code that can run relatively efficiently on either a
15150 68020/68881 or a 68030 or a 68040.  The generated code does use the
15151 68881 instructions that are emulated on the 68060.
15152 .Sp
15153 The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-60\fR.
15154 .IP "\fB\-mhard\-float\fR" 4
15155 .IX Item "-mhard-float"
15156 .PD 0
15157 .IP "\fB\-m68881\fR" 4
15158 .IX Item "-m68881"
15159 .PD
15160 Generate floating-point instructions.  This is the default for 68020
15161 and above, and for ColdFire devices that have an \s-1FPU. \s0 It defines the
15162 macro \f(CW\*(C`_\|_HAVE_68881_\|_\*(C'\fR on M680x0 targets and \f(CW\*(C`_\|_mcffpu_\|_\*(C'\fR
15163 on ColdFire targets.
15164 .IP "\fB\-msoft\-float\fR" 4
15165 .IX Item "-msoft-float"
15166 Do not generate floating-point instructions; use library calls instead.
15167 This is the default for 68000, 68010, and 68832 targets.  It is also
15168 the default for ColdFire devices that have no \s-1FPU.\s0
15169 .IP "\fB\-mdiv\fR" 4
15170 .IX Item "-mdiv"
15171 .PD 0
15172 .IP "\fB\-mno\-div\fR" 4
15173 .IX Item "-mno-div"
15174 .PD
15175 Generate (do not generate) ColdFire hardware divide and remainder
15176 instructions.  If \fB\-march\fR is used without \fB\-mcpu\fR,
15177 the default is \*(L"on\*(R" for ColdFire architectures and \*(L"off\*(R" for M680x0
15178 architectures.  Otherwise, the default is taken from the target \s-1CPU
15179 \&\s0(either the default \s-1CPU,\s0 or the one specified by \fB\-mcpu\fR).  For
15180 example, the default is \*(L"off\*(R" for \fB\-mcpu=5206\fR and \*(L"on\*(R" for
15181 \&\fB\-mcpu=5206e\fR.
15182 .Sp
15183 \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcfhwdiv_\|_\*(C'\fR when this option is enabled.
15184 .IP "\fB\-mshort\fR" 4
15185 .IX Item "-mshort"
15186 Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
15187 Additionally, parameters passed on the stack are also aligned to a
15188 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
15189 .IP "\fB\-mno\-short\fR" 4
15190 .IX Item "-mno-short"
15191 Do not consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide.  This is the default.
15192 .IP "\fB\-mnobitfield\fR" 4
15193 .IX Item "-mnobitfield"
15194 .PD 0
15195 .IP "\fB\-mno\-bitfield\fR" 4
15196 .IX Item "-mno-bitfield"
15197 .PD
15198 Do not use the bit-field instructions.  The \fB\-m68000\fR, \fB\-mcpu32\fR
15199 and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
15200 .IP "\fB\-mbitfield\fR" 4
15201 .IX Item "-mbitfield"
15202 Do use the bit-field instructions.  The \fB\-m68020\fR option implies
15203 \&\fB\-mbitfield\fR.  This is the default if you use a configuration
15204 designed for a 68020.
15205 .IP "\fB\-mrtd\fR" 4
15206 .IX Item "-mrtd"
15207 Use a different function-calling convention, in which functions
15208 that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
15209 instruction, which pops their arguments while returning.  This
15210 saves one instruction in the caller since there is no need to pop
15211 the arguments there.
15212 .Sp
15213 This calling convention is incompatible with the one normally
15214 used on Unix, so you cannot use it if you need to call libraries
15215 compiled with the Unix compiler.
15216 .Sp
15217 Also, you must provide function prototypes for all functions that
15218 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
15219 otherwise incorrect code is generated for calls to those
15220 functions.
15221 .Sp
15222 In addition, seriously incorrect code results if you call a
15223 function with too many arguments.  (Normally, extra arguments are
15224 harmlessly ignored.)
15225 .Sp
15226 The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
15227 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
15228 .IP "\fB\-mno\-rtd\fR" 4
15229 .IX Item "-mno-rtd"
15230 Do not use the calling conventions selected by \fB\-mrtd\fR.
15231 This is the default.
15232 .IP "\fB\-malign\-int\fR" 4
15233 .IX Item "-malign-int"
15234 .PD 0
15235 .IP "\fB\-mno\-align\-int\fR" 4
15236 .IX Item "-mno-align-int"
15237 .PD
15238 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,
15239 \&\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
15240 boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
15241 Aligning variables on 32\-bit boundaries produces code that runs somewhat
15242 faster on processors with 32\-bit busses at the expense of more memory.
15243 .Sp
15244 \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0
15245 aligns structures containing the above types differently than
15246 most published application binary interface specifications for the m68k.
15247 .IP "\fB\-mpcrel\fR" 4
15248 .IX Item "-mpcrel"
15249 Use the pc-relative addressing mode of the 68000 directly, instead of
15250 using a global offset table.  At present, this option implies \fB\-fpic\fR,
15251 allowing at most a 16\-bit offset for pc-relative addressing.  \fB\-fPIC\fR is
15252 not presently supported with \fB\-mpcrel\fR, though this could be supported for
15253 68020 and higher processors.
15254 .IP "\fB\-mno\-strict\-align\fR" 4
15255 .IX Item "-mno-strict-align"
15256 .PD 0
15257 .IP "\fB\-mstrict\-align\fR" 4
15258 .IX Item "-mstrict-align"
15259 .PD
15260 Do not (do) assume that unaligned memory references are handled by
15261 the system.
15262 .IP "\fB\-msep\-data\fR" 4
15263 .IX Item "-msep-data"
15264 Generate code that allows the data segment to be located in a different
15265 area of memory from the text segment.  This allows for execute-in-place in
15266 an environment without virtual memory management.  This option implies
15267 \&\fB\-fPIC\fR.
15268 .IP "\fB\-mno\-sep\-data\fR" 4
15269 .IX Item "-mno-sep-data"
15270 Generate code that assumes that the data segment follows the text segment.
15271 This is the default.
15272 .IP "\fB\-mid\-shared\-library\fR" 4
15273 .IX Item "-mid-shared-library"
15274 Generate code that supports shared libraries via the library \s-1ID\s0 method.
15275 This allows for execute-in-place and shared libraries in an environment
15276 without virtual memory management.  This option implies \fB\-fPIC\fR.
15277 .IP "\fB\-mno\-id\-shared\-library\fR" 4
15278 .IX Item "-mno-id-shared-library"
15279 Generate code that doesn't assume ID-based shared libraries are being used.
15280 This is the default.
15281 .IP "\fB\-mshared\-library\-id=n\fR" 4
15282 .IX Item "-mshared-library-id=n"
15283 Specifies the identification number of the ID-based shared library being
15284 compiled.  Specifying a value of 0 generates more compact code; specifying
15285 other values forces the allocation of that number to the current
15286 library, but is no more space\- or time-efficient than omitting this option.
15287 .IP "\fB\-mxgot\fR" 4
15288 .IX Item "-mxgot"
15289 .PD 0
15290 .IP "\fB\-mno\-xgot\fR" 4
15291 .IX Item "-mno-xgot"
15292 .PD
15293 When generating position-independent code for ColdFire, generate code
15294 that works if the \s-1GOT\s0 has more than 8192 entries.  This code is
15295 larger and slower than code generated without this option.  On M680x0
15296 processors, this option is not needed; \fB\-fPIC\fR suffices.
15297 .Sp
15298 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT.\s0
15299 While this is relatively efficient, it only works if the \s-1GOT\s0
15300 is smaller than about 64k.  Anything larger causes the linker
15301 to report an error such as:
15302 .Sp
15303 .Vb 1
15304 \&        relocation truncated to fit: R_68K_GOT16O foobar
15305 .Ve
15306 .Sp
15307 If this happens, you should recompile your code with \fB\-mxgot\fR.
15308 It should then work with very large GOTs.  However, code generated with
15309 \&\fB\-mxgot\fR is less efficient, since it takes 4 instructions to fetch
15310 the value of a global symbol.
15311 .Sp
15312 Note that some linkers, including newer versions of the \s-1GNU\s0 linker,
15313 can create multiple GOTs and sort \s-1GOT\s0 entries.  If you have such a linker,
15314 you should only need to use \fB\-mxgot\fR when compiling a single
15315 object file that accesses more than 8192 \s-1GOT\s0 entries.  Very few do.
15316 .Sp
15317 These options have no effect unless \s-1GCC\s0 is generating
15318 position-independent code.
15319 .PP
15320 \fIMCore Options\fR
15321 .IX Subsection "MCore Options"
15322 .PP
15323 These are the \fB\-m\fR options defined for the Motorola M*Core
15324 processors.
15325 .IP "\fB\-mhardlit\fR" 4
15326 .IX Item "-mhardlit"
15327 .PD 0
15328 .IP "\fB\-mno\-hardlit\fR" 4
15329 .IX Item "-mno-hardlit"
15330 .PD
15331 Inline constants into the code stream if it can be done in two
15332 instructions or less.
15333 .IP "\fB\-mdiv\fR" 4
15334 .IX Item "-mdiv"
15335 .PD 0
15336 .IP "\fB\-mno\-div\fR" 4
15337 .IX Item "-mno-div"
15338 .PD
15339 Use the divide instruction.  (Enabled by default).
15340 .IP "\fB\-mrelax\-immediate\fR" 4
15341 .IX Item "-mrelax-immediate"
15342 .PD 0
15343 .IP "\fB\-mno\-relax\-immediate\fR" 4
15344 .IX Item "-mno-relax-immediate"
15345 .PD
15346 Allow arbitrary-sized immediates in bit operations.
15347 .IP "\fB\-mwide\-bitfields\fR" 4
15348 .IX Item "-mwide-bitfields"
15349 .PD 0
15350 .IP "\fB\-mno\-wide\-bitfields\fR" 4
15351 .IX Item "-mno-wide-bitfields"
15352 .PD
15353 Always treat bit-fields as \f(CW\*(C`int\*(C'\fR\-sized.
15354 .IP "\fB\-m4byte\-functions\fR" 4
15355 .IX Item "-m4byte-functions"
15356 .PD 0
15357 .IP "\fB\-mno\-4byte\-functions\fR" 4
15358 .IX Item "-mno-4byte-functions"
15359 .PD
15360 Force all functions to be aligned to a 4\-byte boundary.
15361 .IP "\fB\-mcallgraph\-data\fR" 4
15362 .IX Item "-mcallgraph-data"
15363 .PD 0
15364 .IP "\fB\-mno\-callgraph\-data\fR" 4
15365 .IX Item "-mno-callgraph-data"
15366 .PD
15367 Emit callgraph information.
15368 .IP "\fB\-mslow\-bytes\fR" 4
15369 .IX Item "-mslow-bytes"
15370 .PD 0
15371 .IP "\fB\-mno\-slow\-bytes\fR" 4
15372 .IX Item "-mno-slow-bytes"
15373 .PD
15374 Prefer word access when reading byte quantities.
15375 .IP "\fB\-mlittle\-endian\fR" 4
15376 .IX Item "-mlittle-endian"
15377 .PD 0
15378 .IP "\fB\-mbig\-endian\fR" 4
15379 .IX Item "-mbig-endian"
15380 .PD
15381 Generate code for a little-endian target.
15382 .IP "\fB\-m210\fR" 4
15383 .IX Item "-m210"
15384 .PD 0
15385 .IP "\fB\-m340\fR" 4
15386 .IX Item "-m340"
15387 .PD
15388 Generate code for the 210 processor.
15389 .IP "\fB\-mno\-lsim\fR" 4
15390 .IX Item "-mno-lsim"
15391 Assume that runtime support has been provided and so omit the
15392 simulator library (\fIlibsim.a)\fR from the linker command line.
15393 .IP "\fB\-mstack\-increment=\fR\fIsize\fR" 4
15394 .IX Item "-mstack-increment=size"
15395 Set the maximum amount for a single stack increment operation.  Large
15396 values can increase the speed of programs that contain functions
15397 that need a large amount of stack space, but they can also trigger a
15398 segmentation fault if the stack is extended too much.  The default
15399 value is 0x1000.
15400 .PP
15401 \fIMeP Options\fR
15402 .IX Subsection "MeP Options"
15403 .IP "\fB\-mabsdiff\fR" 4
15404 .IX Item "-mabsdiff"
15405 Enables the \f(CW\*(C`abs\*(C'\fR instruction, which is the absolute difference
15406 between two registers.
15407 .IP "\fB\-mall\-opts\fR" 4
15408 .IX Item "-mall-opts"
15409 Enables all the optional instructions\-\-\-average, multiply, divide, bit
15410 operations, leading zero, absolute difference, min/max, clip, and
15411 saturation.
15412 .IP "\fB\-maverage\fR" 4
15413 .IX Item "-maverage"
15414 Enables the \f(CW\*(C`ave\*(C'\fR instruction, which computes the average of two
15415 registers.
15416 .IP "\fB\-mbased=\fR\fIn\fR" 4
15417 .IX Item "-mbased=n"
15418 Variables of size \fIn\fR bytes or smaller are placed in the
15419 \&\f(CW\*(C`.based\*(C'\fR section by default.  Based variables use the \f(CW$tp\fR
15420 register as a base register, and there is a 128\-byte limit to the
15421 \&\f(CW\*(C`.based\*(C'\fR section.
15422 .IP "\fB\-mbitops\fR" 4
15423 .IX Item "-mbitops"
15424 Enables the bit operation instructions\-\-\-bit test (\f(CW\*(C`btstm\*(C'\fR), set
15425 (\f(CW\*(C`bsetm\*(C'\fR), clear (\f(CW\*(C`bclrm\*(C'\fR), invert (\f(CW\*(C`bnotm\*(C'\fR), and
15426 test-and-set (\f(CW\*(C`tas\*(C'\fR).
15427 .IP "\fB\-mc=\fR\fIname\fR" 4
15428 .IX Item "-mc=name"
15429 Selects which section constant data is placed in.  \fIname\fR may
15430 be \fBtiny\fR, \fBnear\fR, or \fBfar\fR.
15431 .IP "\fB\-mclip\fR" 4
15432 .IX Item "-mclip"
15433 Enables the \f(CW\*(C`clip\*(C'\fR instruction.  Note that \fB\-mclip\fR is not
15434 useful unless you also provide \fB\-mminmax\fR.
15435 .IP "\fB\-mconfig=\fR\fIname\fR" 4
15436 .IX Item "-mconfig=name"
15437 Selects one of the built-in core configurations.  Each MeP chip has
15438 one or more modules in it; each module has a core \s-1CPU\s0 and a variety of
15439 coprocessors, optional instructions, and peripherals.  The
15440 \&\f(CW\*(C`MeP\-Integrator\*(C'\fR tool, not part of \s-1GCC,\s0 provides these
15441 configurations through this option; using this option is the same as
15442 using all the corresponding command-line options.  The default
15443 configuration is \fBdefault\fR.
15444 .IP "\fB\-mcop\fR" 4
15445 .IX Item "-mcop"
15446 Enables the coprocessor instructions.  By default, this is a 32\-bit
15447 coprocessor.  Note that the coprocessor is normally enabled via the
15448 \&\fB\-mconfig=\fR option.
15449 .IP "\fB\-mcop32\fR" 4
15450 .IX Item "-mcop32"
15451 Enables the 32\-bit coprocessor's instructions.
15452 .IP "\fB\-mcop64\fR" 4
15453 .IX Item "-mcop64"
15454 Enables the 64\-bit coprocessor's instructions.
15455 .IP "\fB\-mivc2\fR" 4
15456 .IX Item "-mivc2"
15457 Enables \s-1IVC2\s0 scheduling.  \s-1IVC2\s0 is a 64\-bit \s-1VLIW\s0 coprocessor.
15458 .IP "\fB\-mdc\fR" 4
15459 .IX Item "-mdc"
15460 Causes constant variables to be placed in the \f(CW\*(C`.near\*(C'\fR section.
15461 .IP "\fB\-mdiv\fR" 4
15462 .IX Item "-mdiv"
15463 Enables the \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions.
15464 .IP "\fB\-meb\fR" 4
15465 .IX Item "-meb"
15466 Generate big-endian code.
15467 .IP "\fB\-mel\fR" 4
15468 .IX Item "-mel"
15469 Generate little-endian code.
15470 .IP "\fB\-mio\-volatile\fR" 4
15471 .IX Item "-mio-volatile"
15472 Tells the compiler that any variable marked with the \f(CW\*(C`io\*(C'\fR
15473 attribute is to be considered volatile.
15474 .IP "\fB\-ml\fR" 4
15475 .IX Item "-ml"
15476 Causes variables to be assigned to the \f(CW\*(C`.far\*(C'\fR section by default.
15477 .IP "\fB\-mleadz\fR" 4
15478 .IX Item "-mleadz"
15479 Enables the \f(CW\*(C`leadz\*(C'\fR (leading zero) instruction.
15480 .IP "\fB\-mm\fR" 4
15481 .IX Item "-mm"
15482 Causes variables to be assigned to the \f(CW\*(C`.near\*(C'\fR section by default.
15483 .IP "\fB\-mminmax\fR" 4
15484 .IX Item "-mminmax"
15485 Enables the \f(CW\*(C`min\*(C'\fR and \f(CW\*(C`max\*(C'\fR instructions.
15486 .IP "\fB\-mmult\fR" 4
15487 .IX Item "-mmult"
15488 Enables the multiplication and multiply-accumulate instructions.
15489 .IP "\fB\-mno\-opts\fR" 4
15490 .IX Item "-mno-opts"
15491 Disables all the optional instructions enabled by \fB\-mall\-opts\fR.
15492 .IP "\fB\-mrepeat\fR" 4
15493 .IX Item "-mrepeat"
15494 Enables the \f(CW\*(C`repeat\*(C'\fR and \f(CW\*(C`erepeat\*(C'\fR instructions, used for
15495 low-overhead looping.
15496 .IP "\fB\-ms\fR" 4
15497 .IX Item "-ms"
15498 Causes all variables to default to the \f(CW\*(C`.tiny\*(C'\fR section.  Note
15499 that there is a 65536\-byte limit to this section.  Accesses to these
15500 variables use the \f(CW%gp\fR base register.
15501 .IP "\fB\-msatur\fR" 4
15502 .IX Item "-msatur"
15503 Enables the saturation instructions.  Note that the compiler does not
15504 currently generate these itself, but this option is included for
15505 compatibility with other tools, like \f(CW\*(C`as\*(C'\fR.
15506 .IP "\fB\-msdram\fR" 4
15507 .IX Item "-msdram"
15508 Link the SDRAM-based runtime instead of the default ROM-based runtime.
15509 .IP "\fB\-msim\fR" 4
15510 .IX Item "-msim"
15511 Link the simulator run-time libraries.
15512 .IP "\fB\-msimnovec\fR" 4
15513 .IX Item "-msimnovec"
15514 Link the simulator runtime libraries, excluding built-in support
15515 for reset and exception vectors and tables.
15516 .IP "\fB\-mtf\fR" 4
15517 .IX Item "-mtf"
15518 Causes all functions to default to the \f(CW\*(C`.far\*(C'\fR section.  Without
15519 this option, functions default to the \f(CW\*(C`.near\*(C'\fR section.
15520 .IP "\fB\-mtiny=\fR\fIn\fR" 4
15521 .IX Item "-mtiny=n"
15522 Variables that are \fIn\fR bytes or smaller are allocated to the
15523 \&\f(CW\*(C`.tiny\*(C'\fR section.  These variables use the \f(CW$gp\fR base
15524 register.  The default for this option is 4, but note that there's a
15525 65536\-byte limit to the \f(CW\*(C`.tiny\*(C'\fR section.
15526 .PP
15527 \fIMicroBlaze Options\fR
15528 .IX Subsection "MicroBlaze Options"
15529 .IP "\fB\-msoft\-float\fR" 4
15530 .IX Item "-msoft-float"
15531 Use software emulation for floating point (default).
15532 .IP "\fB\-mhard\-float\fR" 4
15533 .IX Item "-mhard-float"
15534 Use hardware floating-point instructions.
15535 .IP "\fB\-mmemcpy\fR" 4
15536 .IX Item "-mmemcpy"
15537 Do not optimize block moves, use \f(CW\*(C`memcpy\*(C'\fR.
15538 .IP "\fB\-mno\-clearbss\fR" 4
15539 .IX Item "-mno-clearbss"
15540 This option is deprecated.  Use \fB\-fno\-zero\-initialized\-in\-bss\fR instead.
15541 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
15542 .IX Item "-mcpu=cpu-type"
15543 Use features of, and schedule code for, the given \s-1CPU.\s0
15544 Supported values are in the format \fBv\fR\fIX\fR\fB.\fR\fI\s-1YY\s0\fR\fB.\fR\fIZ\fR,
15545 where \fIX\fR is a major version, \fI\s-1YY\s0\fR is the minor version, and
15546 \&\fIZ\fR is compatibility code.  Example values are \fBv3.00.a\fR,
15547 \&\fBv4.00.b\fR, \fBv5.00.a\fR, \fBv5.00.b\fR, \fBv5.00.b\fR, \fBv6.00.a\fR.
15548 .IP "\fB\-mxl\-soft\-mul\fR" 4
15549 .IX Item "-mxl-soft-mul"
15550 Use software multiply emulation (default).
15551 .IP "\fB\-mxl\-soft\-div\fR" 4
15552 .IX Item "-mxl-soft-div"
15553 Use software emulation for divides (default).
15554 .IP "\fB\-mxl\-barrel\-shift\fR" 4
15555 .IX Item "-mxl-barrel-shift"
15556 Use the hardware barrel shifter.
15557 .IP "\fB\-mxl\-pattern\-compare\fR" 4
15558 .IX Item "-mxl-pattern-compare"
15559 Use pattern compare instructions.
15560 .IP "\fB\-msmall\-divides\fR" 4
15561 .IX Item "-msmall-divides"
15562 Use table lookup optimization for small signed integer divisions.
15563 .IP "\fB\-mxl\-stack\-check\fR" 4
15564 .IX Item "-mxl-stack-check"
15565 This option is deprecated.  Use \fB\-fstack\-check\fR instead.
15566 .IP "\fB\-mxl\-gp\-opt\fR" 4
15567 .IX Item "-mxl-gp-opt"
15568 Use GP-relative \f(CW\*(C`.sdata\*(C'\fR/\f(CW\*(C`.sbss\*(C'\fR sections.
15569 .IP "\fB\-mxl\-multiply\-high\fR" 4
15570 .IX Item "-mxl-multiply-high"
15571 Use multiply high instructions for high part of 32x32 multiply.
15572 .IP "\fB\-mxl\-float\-convert\fR" 4
15573 .IX Item "-mxl-float-convert"
15574 Use hardware floating-point conversion instructions.
15575 .IP "\fB\-mxl\-float\-sqrt\fR" 4
15576 .IX Item "-mxl-float-sqrt"
15577 Use hardware floating-point square root instruction.
15578 .IP "\fB\-mbig\-endian\fR" 4
15579 .IX Item "-mbig-endian"
15580 Generate code for a big-endian target.
15581 .IP "\fB\-mlittle\-endian\fR" 4
15582 .IX Item "-mlittle-endian"
15583 Generate code for a little-endian target.
15584 .IP "\fB\-mxl\-reorder\fR" 4
15585 .IX Item "-mxl-reorder"
15586 Use reorder instructions (swap and byte reversed load/store).
15587 .IP "\fB\-mxl\-mode\-\fR\fIapp-model\fR" 4
15588 .IX Item "-mxl-mode-app-model"
15589 Select application model \fIapp-model\fR.  Valid models are
15590 .RS 4
15591 .IP "\fBexecutable\fR" 4
15592 .IX Item "executable"
15593 normal executable (default), uses startup code \fIcrt0.o\fR.
15594 .IP "\fBxmdstub\fR" 4
15595 .IX Item "xmdstub"
15596 for use with Xilinx Microprocessor Debugger (\s-1XMD\s0) based
15597 software intrusive debug agent called xmdstub. This uses startup file
15598 \&\fIcrt1.o\fR and sets the start address of the program to 0x800.
15599 .IP "\fBbootstrap\fR" 4
15600 .IX Item "bootstrap"
15601 for applications that are loaded using a bootloader.
15602 This model uses startup file \fIcrt2.o\fR which does not contain a processor
15603 reset vector handler. This is suitable for transferring control on a
15604 processor reset to the bootloader rather than the application.
15605 .IP "\fBnovectors\fR" 4
15606 .IX Item "novectors"
15607 for applications that do not require any of the
15608 MicroBlaze vectors. This option may be useful for applications running
15609 within a monitoring application. This model uses \fIcrt3.o\fR as a startup file.
15610 .RE
15611 .RS 4
15612 .Sp
15613 Option \fB\-xl\-mode\-\fR\fIapp-model\fR is a deprecated alias for
15614 \&\fB\-mxl\-mode\-\fR\fIapp-model\fR.
15615 .RE
15616 .PP
15617 \fI\s-1MIPS\s0 Options\fR
15618 .IX Subsection "MIPS Options"
15619 .IP "\fB\-EB\fR" 4
15620 .IX Item "-EB"
15621 Generate big-endian code.
15622 .IP "\fB\-EL\fR" 4
15623 .IX Item "-EL"
15624 Generate little-endian code.  This is the default for \fBmips*el\-*\-*\fR
15625 configurations.
15626 .IP "\fB\-march=\fR\fIarch\fR" 4
15627 .IX Item "-march=arch"
15628 Generate code that runs on \fIarch\fR, which can be the name of a
15629 generic \s-1MIPS ISA,\s0 or the name of a particular processor.
15630 The \s-1ISA\s0 names are:
15631 \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
15632 \&\fBmips32\fR, \fBmips32r2\fR, \fBmips32r3\fR, \fBmips32r5\fR,
15633 \&\fBmips32r6\fR, \fBmips64\fR, \fBmips64r2\fR, \fBmips64r3\fR,
15634 \&\fBmips64r5\fR and \fBmips64r6\fR.
15635 The processor names are:
15636 \&\fB4kc\fR, \fB4km\fR, \fB4kp\fR, \fB4ksc\fR,
15637 \&\fB4kec\fR, \fB4kem\fR, \fB4kep\fR, \fB4ksd\fR,
15638 \&\fB5kc\fR, \fB5kf\fR,
15639 \&\fB20kc\fR,
15640 \&\fB24kc\fR, \fB24kf2_1\fR, \fB24kf1_1\fR,
15641 \&\fB24kec\fR, \fB24kef2_1\fR, \fB24kef1_1\fR,
15642 \&\fB34kc\fR, \fB34kf2_1\fR, \fB34kf1_1\fR, \fB34kn\fR,
15643 \&\fB74kc\fR, \fB74kf2_1\fR, \fB74kf1_1\fR, \fB74kf3_2\fR,
15644 \&\fB1004kc\fR, \fB1004kf2_1\fR, \fB1004kf1_1\fR,
15645 \&\fBloongson2e\fR, \fBloongson2f\fR, \fBloongson3a\fR,
15646 \&\fBm4k\fR,
15647 \&\fBm14k\fR, \fBm14kc\fR, \fBm14ke\fR, \fBm14kec\fR,
15648 \&\fBocteon\fR, \fBocteon+\fR, \fBocteon2\fR, \fBocteon3\fR,
15649 \&\fBorion\fR,
15650 \&\fBp5600\fR,
15651 \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
15652 \&\fBr4600\fR, \fBr4650\fR, \fBr4700\fR, \fBr6000\fR, \fBr8000\fR,
15653 \&\fBrm7000\fR, \fBrm9000\fR,
15654 \&\fBr10000\fR, \fBr12000\fR, \fBr14000\fR, \fBr16000\fR,
15655 \&\fBsb1\fR,
15656 \&\fBsr71000\fR,
15657 \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
15658 \&\fBvr5000\fR, \fBvr5400\fR, \fBvr5500\fR,
15659 \&\fBxlr\fR and \fBxlp\fR.
15660 The special value \fBfrom-abi\fR selects the
15661 most compatible architecture for the selected \s-1ABI \s0(that is,
15662 \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
15663 .Sp
15664 The native Linux/GNU toolchain also supports the value \fBnative\fR,
15665 which selects the best architecture option for the host processor.
15666 \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize
15667 the processor.
15668 .Sp
15669 In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
15670 (for example, \fB\-march=r2k\fR).  Prefixes are optional, and
15671 \&\fBvr\fR may be written \fBr\fR.
15672 .Sp
15673 Names of the form \fIn\fR\fBf2_1\fR refer to processors with
15674 FPUs clocked at half the rate of the core, names of the form
15675 \&\fIn\fR\fBf1_1\fR refer to processors with FPUs clocked at the same
15676 rate as the core, and names of the form \fIn\fR\fBf3_2\fR refer to
15677 processors with FPUs clocked a ratio of 3:2 with respect to the core.
15678 For compatibility reasons, \fIn\fR\fBf\fR is accepted as a synonym
15679 for \fIn\fR\fBf2_1\fR while \fIn\fR\fBx\fR and \fIb\fR\fBfx\fR are
15680 accepted as synonyms for \fIn\fR\fBf1_1\fR.
15681 .Sp
15682 \&\s-1GCC\s0 defines two macros based on the value of this option.  The first
15683 is \f(CW\*(C`_MIPS_ARCH\*(C'\fR, which gives the name of target architecture, as
15684 a string.  The second has the form \f(CW\*(C`_MIPS_ARCH_\f(CIfoo\f(CW\*(C'\fR,
15685 where \fIfoo\fR is the capitalized value of \f(CW\*(C`_MIPS_ARCH\*(C'\fR.
15686 For example, \fB\-march=r2000\fR sets \f(CW\*(C`_MIPS_ARCH\*(C'\fR
15687 to \f(CW"r2000"\fR and defines the macro \f(CW\*(C`_MIPS_ARCH_R2000\*(C'\fR.
15688 .Sp
15689 Note that the \f(CW\*(C`_MIPS_ARCH\*(C'\fR macro uses the processor names given
15690 above.  In other words, it has the full prefix and does not
15691 abbreviate \fB000\fR as \fBk\fR.  In the case of \fBfrom-abi\fR,
15692 the macro names the resolved architecture (either \f(CW"mips1"\fR or
15693 \&\f(CW"mips3"\fR).  It names the default architecture when no
15694 \&\fB\-march\fR option is given.
15695 .IP "\fB\-mtune=\fR\fIarch\fR" 4
15696 .IX Item "-mtune=arch"
15697 Optimize for \fIarch\fR.  Among other things, this option controls
15698 the way instructions are scheduled, and the perceived cost of arithmetic
15699 operations.  The list of \fIarch\fR values is the same as for
15700 \&\fB\-march\fR.
15701 .Sp
15702 When this option is not used, \s-1GCC\s0 optimizes for the processor
15703 specified by \fB\-march\fR.  By using \fB\-march\fR and
15704 \&\fB\-mtune\fR together, it is possible to generate code that
15705 runs on a family of processors, but optimize the code for one
15706 particular member of that family.
15707 .Sp
15708 \&\fB\-mtune\fR defines the macros \f(CW\*(C`_MIPS_TUNE\*(C'\fR and
15709 \&\f(CW\*(C`_MIPS_TUNE_\f(CIfoo\f(CW\*(C'\fR, which work in the same way as the
15710 \&\fB\-march\fR ones described above.
15711 .IP "\fB\-mips1\fR" 4
15712 .IX Item "-mips1"
15713 Equivalent to \fB\-march=mips1\fR.
15714 .IP "\fB\-mips2\fR" 4
15715 .IX Item "-mips2"
15716 Equivalent to \fB\-march=mips2\fR.
15717 .IP "\fB\-mips3\fR" 4
15718 .IX Item "-mips3"
15719 Equivalent to \fB\-march=mips3\fR.
15720 .IP "\fB\-mips4\fR" 4
15721 .IX Item "-mips4"
15722 Equivalent to \fB\-march=mips4\fR.
15723 .IP "\fB\-mips32\fR" 4
15724 .IX Item "-mips32"
15725 Equivalent to \fB\-march=mips32\fR.
15726 .IP "\fB\-mips32r3\fR" 4
15727 .IX Item "-mips32r3"
15728 Equivalent to \fB\-march=mips32r3\fR.
15729 .IP "\fB\-mips32r5\fR" 4
15730 .IX Item "-mips32r5"
15731 Equivalent to \fB\-march=mips32r5\fR.
15732 .IP "\fB\-mips32r6\fR" 4
15733 .IX Item "-mips32r6"
15734 Equivalent to \fB\-march=mips32r6\fR.
15735 .IP "\fB\-mips64\fR" 4
15736 .IX Item "-mips64"
15737 Equivalent to \fB\-march=mips64\fR.
15738 .IP "\fB\-mips64r2\fR" 4
15739 .IX Item "-mips64r2"
15740 Equivalent to \fB\-march=mips64r2\fR.
15741 .IP "\fB\-mips64r3\fR" 4
15742 .IX Item "-mips64r3"
15743 Equivalent to \fB\-march=mips64r3\fR.
15744 .IP "\fB\-mips64r5\fR" 4
15745 .IX Item "-mips64r5"
15746 Equivalent to \fB\-march=mips64r5\fR.
15747 .IP "\fB\-mips64r6\fR" 4
15748 .IX Item "-mips64r6"
15749 Equivalent to \fB\-march=mips64r6\fR.
15750 .IP "\fB\-mips16\fR" 4
15751 .IX Item "-mips16"
15752 .PD 0
15753 .IP "\fB\-mno\-mips16\fR" 4
15754 .IX Item "-mno-mips16"
15755 .PD
15756 Generate (do not generate) \s-1MIPS16\s0 code.  If \s-1GCC\s0 is targeting a
15757 \&\s-1MIPS32\s0 or \s-1MIPS64\s0 architecture, it makes use of the MIPS16e \s-1ASE.\s0
15758 .Sp
15759 \&\s-1MIPS16\s0 code generation can also be controlled on a per-function basis
15760 by means of \f(CW\*(C`mips16\*(C'\fR and \f(CW\*(C`nomips16\*(C'\fR attributes.
15761 .IP "\fB\-mflip\-mips16\fR" 4
15762 .IX Item "-mflip-mips16"
15763 Generate \s-1MIPS16\s0 code on alternating functions.  This option is provided
15764 for regression testing of mixed MIPS16/non\-MIPS16 code generation, and is
15765 not intended for ordinary use in compiling user code.
15766 .IP "\fB\-minterlink\-compressed\fR" 4
15767 .IX Item "-minterlink-compressed"
15768 .PD 0
15769 .IP "\fB\-mno\-interlink\-compressed\fR" 4
15770 .IX Item "-mno-interlink-compressed"
15771 .PD
15772 Require (do not require) that code using the standard (uncompressed) \s-1MIPS ISA\s0
15773 be link-compatible with \s-1MIPS16\s0 and microMIPS code, and vice versa.
15774 .Sp
15775 For example, code using the standard \s-1ISA\s0 encoding cannot jump directly
15776 to \s-1MIPS16\s0 or microMIPS code; it must either use a call or an indirect jump.
15777 \&\fB\-minterlink\-compressed\fR therefore disables direct jumps unless \s-1GCC\s0
15778 knows that the target of the jump is not compressed.
15779 .IP "\fB\-minterlink\-mips16\fR" 4
15780 .IX Item "-minterlink-mips16"
15781 .PD 0
15782 .IP "\fB\-mno\-interlink\-mips16\fR" 4
15783 .IX Item "-mno-interlink-mips16"
15784 .PD
15785 Aliases of \fB\-minterlink\-compressed\fR and
15786 \&\fB\-mno\-interlink\-compressed\fR.  These options predate the microMIPS \s-1ASE\s0
15787 and are retained for backwards compatibility.
15788 .IP "\fB\-mabi=32\fR" 4
15789 .IX Item "-mabi=32"
15790 .PD 0
15791 .IP "\fB\-mabi=o64\fR" 4
15792 .IX Item "-mabi=o64"
15793 .IP "\fB\-mabi=n32\fR" 4
15794 .IX Item "-mabi=n32"
15795 .IP "\fB\-mabi=64\fR" 4
15796 .IX Item "-mabi=64"
15797 .IP "\fB\-mabi=eabi\fR" 4
15798 .IX Item "-mabi=eabi"
15799 .PD
15800 Generate code for the given \s-1ABI.\s0
15801 .Sp
15802 Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant.  \s-1GCC\s0 normally
15803 generates 64\-bit code when you select a 64\-bit architecture, but you
15804 can use \fB\-mgp32\fR to get 32\-bit code instead.
15805 .Sp
15806 For information about the O64 \s-1ABI,\s0 see
15807 <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
15808 .Sp
15809 \&\s-1GCC\s0 supports a variant of the o32 \s-1ABI\s0 in which floating-point registers
15810 are 64 rather than 32 bits wide.  You can select this combination with
15811 \&\fB\-mabi=32\fR \fB\-mfp64\fR.  This \s-1ABI\s0 relies on the \f(CW\*(C`mthc1\*(C'\fR
15812 and \f(CW\*(C`mfhc1\*(C'\fR instructions and is therefore only supported for
15813 \&\s-1MIPS32R2, MIPS32R3\s0 and \s-1MIPS32R5\s0 processors.
15814 .Sp
15815 The register assignments for arguments and return values remain the
15816 same, but each scalar value is passed in a single 64\-bit register
15817 rather than a pair of 32\-bit registers.  For example, scalar
15818 floating-point values are returned in \fB\f(CB$f0\fB\fR only, not a
15819 \&\fB\f(CB$f0\fB\fR/\fB\f(CB$f1\fB\fR pair.  The set of call-saved registers also
15820 remains the same in that the even-numbered double-precision registers
15821 are saved.
15822 .Sp
15823 Two additional variants of the o32 \s-1ABI\s0 are supported to enable
15824 a transition from 32\-bit to 64\-bit registers.  These are \s-1FPXX
15825 \&\s0(\fB\-mfpxx\fR) and \s-1FP64A \s0(\fB\-mfp64\fR \fB\-mno\-odd\-spreg\fR).
15826 The \s-1FPXX\s0 extension mandates that all code must execute correctly
15827 when run using 32\-bit or 64\-bit registers.  The code can be interlinked
15828 with either \s-1FP32\s0 or \s-1FP64,\s0 but not both.
15829 The \s-1FP64A\s0 extension is similar to the \s-1FP64\s0 extension but forbids the
15830 use of odd-numbered single-precision registers.  This can be used
15831 in conjunction with the \f(CW\*(C`FRE\*(C'\fR mode of FPUs in \s-1MIPS32R5\s0
15832 processors and allows both \s-1FP32\s0 and \s-1FP64A\s0 code to interlink and
15833 run in the same process without changing \s-1FPU\s0 modes.
15834 .IP "\fB\-mabicalls\fR" 4
15835 .IX Item "-mabicalls"
15836 .PD 0
15837 .IP "\fB\-mno\-abicalls\fR" 4
15838 .IX Item "-mno-abicalls"
15839 .PD
15840 Generate (do not generate) code that is suitable for SVR4\-style
15841 dynamic objects.  \fB\-mabicalls\fR is the default for SVR4\-based
15842 systems.
15843 .IP "\fB\-mshared\fR" 4
15844 .IX Item "-mshared"
15845 .PD 0
15846 .IP "\fB\-mno\-shared\fR" 4
15847 .IX Item "-mno-shared"
15848 .PD
15849 Generate (do not generate) code that is fully position-independent,
15850 and that can therefore be linked into shared libraries.  This option
15851 only affects \fB\-mabicalls\fR.
15852 .Sp
15853 All \fB\-mabicalls\fR code has traditionally been position-independent,
15854 regardless of options like \fB\-fPIC\fR and \fB\-fpic\fR.  However,
15855 as an extension, the \s-1GNU\s0 toolchain allows executables to use absolute
15856 accesses for locally-binding symbols.  It can also use shorter \s-1GP\s0
15857 initialization sequences and generate direct calls to locally-defined
15858 functions.  This mode is selected by \fB\-mno\-shared\fR.
15859 .Sp
15860 \&\fB\-mno\-shared\fR depends on binutils 2.16 or higher and generates
15861 objects that can only be linked by the \s-1GNU\s0 linker.  However, the option
15862 does not affect the \s-1ABI\s0 of the final executable; it only affects the \s-1ABI\s0
15863 of relocatable objects.  Using \fB\-mno\-shared\fR generally makes
15864 executables both smaller and quicker.
15865 .Sp
15866 \&\fB\-mshared\fR is the default.
15867 .IP "\fB\-mplt\fR" 4
15868 .IX Item "-mplt"
15869 .PD 0
15870 .IP "\fB\-mno\-plt\fR" 4
15871 .IX Item "-mno-plt"
15872 .PD
15873 Assume (do not assume) that the static and dynamic linkers
15874 support PLTs and copy relocations.  This option only affects
15875 \&\fB\-mno\-shared \-mabicalls\fR.  For the n64 \s-1ABI,\s0 this option
15876 has no effect without \fB\-msym32\fR.
15877 .Sp
15878 You can make \fB\-mplt\fR the default by configuring
15879 \&\s-1GCC\s0 with \fB\-\-with\-mips\-plt\fR.  The default is
15880 \&\fB\-mno\-plt\fR otherwise.
15881 .IP "\fB\-mxgot\fR" 4
15882 .IX Item "-mxgot"
15883 .PD 0
15884 .IP "\fB\-mno\-xgot\fR" 4
15885 .IX Item "-mno-xgot"
15886 .PD
15887 Lift (do not lift) the usual restrictions on the size of the global
15888 offset table.
15889 .Sp
15890 \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT.\s0
15891 While this is relatively efficient, it only works if the \s-1GOT\s0
15892 is smaller than about 64k.  Anything larger causes the linker
15893 to report an error such as:
15894 .Sp
15895 .Vb 1
15896 \&        relocation truncated to fit: R_MIPS_GOT16 foobar
15897 .Ve
15898 .Sp
15899 If this happens, you should recompile your code with \fB\-mxgot\fR.
15900 This works with very large GOTs, although the code is also
15901 less efficient, since it takes three instructions to fetch the
15902 value of a global symbol.
15903 .Sp
15904 Note that some linkers can create multiple GOTs.  If you have such a
15905 linker, you should only need to use \fB\-mxgot\fR when a single object
15906 file accesses more than 64k's worth of \s-1GOT\s0 entries.  Very few do.
15907 .Sp
15908 These options have no effect unless \s-1GCC\s0 is generating position
15909 independent code.
15910 .IP "\fB\-mgp32\fR" 4
15911 .IX Item "-mgp32"
15912 Assume that general-purpose registers are 32 bits wide.
15913 .IP "\fB\-mgp64\fR" 4
15914 .IX Item "-mgp64"
15915 Assume that general-purpose registers are 64 bits wide.
15916 .IP "\fB\-mfp32\fR" 4
15917 .IX Item "-mfp32"
15918 Assume that floating-point registers are 32 bits wide.
15919 .IP "\fB\-mfp64\fR" 4
15920 .IX Item "-mfp64"
15921 Assume that floating-point registers are 64 bits wide.
15922 .IP "\fB\-mfpxx\fR" 4
15923 .IX Item "-mfpxx"
15924 Do not assume the width of floating-point registers.
15925 .IP "\fB\-mhard\-float\fR" 4
15926 .IX Item "-mhard-float"
15927 Use floating-point coprocessor instructions.
15928 .IP "\fB\-msoft\-float\fR" 4
15929 .IX Item "-msoft-float"
15930 Do not use floating-point coprocessor instructions.  Implement
15931 floating-point calculations using library calls instead.
15932 .IP "\fB\-mno\-float\fR" 4
15933 .IX Item "-mno-float"
15934 Equivalent to \fB\-msoft\-float\fR, but additionally asserts that the
15935 program being compiled does not perform any floating-point operations.
15936 This option is presently supported only by some bare-metal \s-1MIPS\s0
15937 configurations, where it may select a special set of libraries
15938 that lack all floating-point support (including, for example, the
15939 floating-point \f(CW\*(C`printf\*(C'\fR formats).  
15940 If code compiled with \fB\-mno\-float\fR accidentally contains
15941 floating-point operations, it is likely to suffer a link-time
15942 or run-time failure.
15943 .IP "\fB\-msingle\-float\fR" 4
15944 .IX Item "-msingle-float"
15945 Assume that the floating-point coprocessor only supports single-precision
15946 operations.
15947 .IP "\fB\-mdouble\-float\fR" 4
15948 .IX Item "-mdouble-float"
15949 Assume that the floating-point coprocessor supports double-precision
15950 operations.  This is the default.
15951 .IP "\fB\-modd\-spreg\fR" 4
15952 .IX Item "-modd-spreg"
15953 .PD 0
15954 .IP "\fB\-mno\-odd\-spreg\fR" 4
15955 .IX Item "-mno-odd-spreg"
15956 .PD
15957 Enable the use of odd-numbered single-precision floating-point registers
15958 for the o32 \s-1ABI. \s0 This is the default for processors that are known to
15959 support these registers.  When using the o32 \s-1FPXX ABI, \s0\fB\-mno\-odd\-spreg\fR
15960 is set by default.
15961 .IP "\fB\-mabs=2008\fR" 4
15962 .IX Item "-mabs=2008"
15963 .PD 0
15964 .IP "\fB\-mabs=legacy\fR" 4
15965 .IX Item "-mabs=legacy"
15966 .PD
15967 These options control the treatment of the special not-a-number (NaN)
15968 \&\s-1IEEE 754\s0 floating-point data with the \f(CW\*(C`abs.\f(CIfmt\f(CW\*(C'\fR and
15969 \&\f(CW\*(C`neg.\f(CIfmt\f(CW\*(C'\fR machine instructions.
15970 .Sp
15971 By default or when \fB\-mabs=legacy\fR is used the legacy
15972 treatment is selected.  In this case these instructions are considered
15973 arithmetic and avoided where correct operation is required and the
15974 input operand might be a NaN.  A longer sequence of instructions that
15975 manipulate the sign bit of floating-point datum manually is used
15976 instead unless the \fB\-ffinite\-math\-only\fR option has also been
15977 specified.
15978 .Sp
15979 The \fB\-mabs=2008\fR option selects the \s-1IEEE 754\-2008\s0 treatment.  In
15980 this case these instructions are considered non-arithmetic and therefore
15981 operating correctly in all cases, including in particular where the
15982 input operand is a NaN.  These instructions are therefore always used
15983 for the respective operations.
15984 .IP "\fB\-mnan=2008\fR" 4
15985 .IX Item "-mnan=2008"
15986 .PD 0
15987 .IP "\fB\-mnan=legacy\fR" 4
15988 .IX Item "-mnan=legacy"
15989 .PD
15990 These options control the encoding of the special not-a-number (NaN)
15991 \&\s-1IEEE 754\s0 floating-point data.
15992 .Sp
15993 The \fB\-mnan=legacy\fR option selects the legacy encoding.  In this
15994 case quiet NaNs (qNaNs) are denoted by the first bit of their trailing
15995 significand field being 0, whereas signalling NaNs (sNaNs) are denoted
15996 by the first bit of their trailing significand field being 1.
15997 .Sp
15998 The \fB\-mnan=2008\fR option selects the \s-1IEEE 754\-2008\s0 encoding.  In
15999 this case qNaNs are denoted by the first bit of their trailing
16000 significand field being 1, whereas sNaNs are denoted by the first bit of
16001 their trailing significand field being 0.
16002 .Sp
16003 The default is \fB\-mnan=legacy\fR unless \s-1GCC\s0 has been configured with
16004 \&\fB\-\-with\-nan=2008\fR.
16005 .IP "\fB\-mllsc\fR" 4
16006 .IX Item "-mllsc"
16007 .PD 0
16008 .IP "\fB\-mno\-llsc\fR" 4
16009 .IX Item "-mno-llsc"
16010 .PD
16011 Use (do not use) \fBll\fR, \fBsc\fR, and \fBsync\fR instructions to
16012 implement atomic memory built-in functions.  When neither option is
16013 specified, \s-1GCC\s0 uses the instructions if the target architecture
16014 supports them.
16015 .Sp
16016 \&\fB\-mllsc\fR is useful if the runtime environment can emulate the
16017 instructions and \fB\-mno\-llsc\fR can be useful when compiling for
16018 nonstandard ISAs.  You can make either option the default by
16019 configuring \s-1GCC\s0 with \fB\-\-with\-llsc\fR and \fB\-\-without\-llsc\fR
16020 respectively.  \fB\-\-with\-llsc\fR is the default for some
16021 configurations; see the installation documentation for details.
16022 .IP "\fB\-mdsp\fR" 4
16023 .IX Item "-mdsp"
16024 .PD 0
16025 .IP "\fB\-mno\-dsp\fR" 4
16026 .IX Item "-mno-dsp"
16027 .PD
16028 Use (do not use) revision 1 of the \s-1MIPS DSP ASE.
16029  \s0 This option defines the
16030 preprocessor macro \f(CW\*(C`_\|_mips_dsp\*(C'\fR.  It also defines
16031 \&\f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 1.
16032 .IP "\fB\-mdspr2\fR" 4
16033 .IX Item "-mdspr2"
16034 .PD 0
16035 .IP "\fB\-mno\-dspr2\fR" 4
16036 .IX Item "-mno-dspr2"
16037 .PD
16038 Use (do not use) revision 2 of the \s-1MIPS DSP ASE.
16039  \s0 This option defines the
16040 preprocessor macros \f(CW\*(C`_\|_mips_dsp\*(C'\fR and \f(CW\*(C`_\|_mips_dspr2\*(C'\fR.
16041 It also defines \f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 2.
16042 .IP "\fB\-msmartmips\fR" 4
16043 .IX Item "-msmartmips"
16044 .PD 0
16045 .IP "\fB\-mno\-smartmips\fR" 4
16046 .IX Item "-mno-smartmips"
16047 .PD
16048 Use (do not use) the \s-1MIPS\s0 SmartMIPS \s-1ASE.\s0
16049 .IP "\fB\-mpaired\-single\fR" 4
16050 .IX Item "-mpaired-single"
16051 .PD 0
16052 .IP "\fB\-mno\-paired\-single\fR" 4
16053 .IX Item "-mno-paired-single"
16054 .PD
16055 Use (do not use) paired-single floating-point instructions.
16056   This option requires
16057 hardware floating-point support to be enabled.
16058 .IP "\fB\-mdmx\fR" 4
16059 .IX Item "-mdmx"
16060 .PD 0
16061 .IP "\fB\-mno\-mdmx\fR" 4
16062 .IX Item "-mno-mdmx"
16063 .PD
16064 Use (do not use) \s-1MIPS\s0 Digital Media Extension instructions.
16065 This option can only be used when generating 64\-bit code and requires
16066 hardware floating-point support to be enabled.
16067 .IP "\fB\-mips3d\fR" 4
16068 .IX Item "-mips3d"
16069 .PD 0
16070 .IP "\fB\-mno\-mips3d\fR" 4
16071 .IX Item "-mno-mips3d"
16072 .PD
16073 Use (do not use) the \s-1MIPS\-3D ASE.  \s0
16074 The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
16075 .IP "\fB\-mmicromips\fR" 4
16076 .IX Item "-mmicromips"
16077 .PD 0
16078 .IP "\fB\-mno\-micromips\fR" 4
16079 .IX Item "-mno-micromips"
16080 .PD
16081 Generate (do not generate) microMIPS code.
16082 .Sp
16083 MicroMIPS code generation can also be controlled on a per-function basis
16084 by means of \f(CW\*(C`micromips\*(C'\fR and \f(CW\*(C`nomicromips\*(C'\fR attributes.
16085 .IP "\fB\-mmt\fR" 4
16086 .IX Item "-mmt"
16087 .PD 0
16088 .IP "\fB\-mno\-mt\fR" 4
16089 .IX Item "-mno-mt"
16090 .PD
16091 Use (do not use) \s-1MT\s0 Multithreading instructions.
16092 .IP "\fB\-mmcu\fR" 4
16093 .IX Item "-mmcu"
16094 .PD 0
16095 .IP "\fB\-mno\-mcu\fR" 4
16096 .IX Item "-mno-mcu"
16097 .PD
16098 Use (do not use) the \s-1MIPS MCU ASE\s0 instructions.
16099 .IP "\fB\-meva\fR" 4
16100 .IX Item "-meva"
16101 .PD 0
16102 .IP "\fB\-mno\-eva\fR" 4
16103 .IX Item "-mno-eva"
16104 .PD
16105 Use (do not use) the \s-1MIPS\s0 Enhanced Virtual Addressing instructions.
16106 .IP "\fB\-mvirt\fR" 4
16107 .IX Item "-mvirt"
16108 .PD 0
16109 .IP "\fB\-mno\-virt\fR" 4
16110 .IX Item "-mno-virt"
16111 .PD
16112 Use (do not use) the \s-1MIPS\s0 Virtualization Application Specific instructions.
16113 .IP "\fB\-mxpa\fR" 4
16114 .IX Item "-mxpa"
16115 .PD 0
16116 .IP "\fB\-mno\-xpa\fR" 4
16117 .IX Item "-mno-xpa"
16118 .PD
16119 Use (do not use) the \s-1MIPS\s0 eXtended Physical Address (\s-1XPA\s0) instructions.
16120 .IP "\fB\-mlong64\fR" 4
16121 .IX Item "-mlong64"
16122 Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide.  See \fB\-mlong32\fR for
16123 an explanation of the default and the way that the pointer size is
16124 determined.
16125 .IP "\fB\-mlong32\fR" 4
16126 .IX Item "-mlong32"
16127 Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
16128 .Sp
16129 The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
16130 the \s-1ABI. \s0 All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs.  The n64 \s-1ABI\s0
16131 uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
16132 32\-bit \f(CW\*(C`long\*(C'\fRs.  Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
16133 or the same size as integer registers, whichever is smaller.
16134 .IP "\fB\-msym32\fR" 4
16135 .IX Item "-msym32"
16136 .PD 0
16137 .IP "\fB\-mno\-sym32\fR" 4
16138 .IX Item "-mno-sym32"
16139 .PD
16140 Assume (do not assume) that all symbols have 32\-bit values, regardless
16141 of the selected \s-1ABI. \s0 This option is useful in combination with
16142 \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
16143 to generate shorter and faster references to symbolic addresses.
16144 .IP "\fB\-G\fR \fInum\fR" 4
16145 .IX Item "-G num"
16146 Put definitions of externally-visible data in a small data section
16147 if that data is no bigger than \fInum\fR bytes.  \s-1GCC\s0 can then generate
16148 more efficient accesses to the data; see \fB\-mgpopt\fR for details.
16149 .Sp
16150 The default \fB\-G\fR option depends on the configuration.
16151 .IP "\fB\-mlocal\-sdata\fR" 4
16152 .IX Item "-mlocal-sdata"
16153 .PD 0
16154 .IP "\fB\-mno\-local\-sdata\fR" 4
16155 .IX Item "-mno-local-sdata"
16156 .PD
16157 Extend (do not extend) the \fB\-G\fR behavior to local data too,
16158 such as to static variables in C.  \fB\-mlocal\-sdata\fR is the
16159 default for all configurations.
16160 .Sp
16161 If the linker complains that an application is using too much small data,
16162 you might want to try rebuilding the less performance-critical parts with
16163 \&\fB\-mno\-local\-sdata\fR.  You might also want to build large
16164 libraries with \fB\-mno\-local\-sdata\fR, so that the libraries leave
16165 more room for the main program.
16166 .IP "\fB\-mextern\-sdata\fR" 4
16167 .IX Item "-mextern-sdata"
16168 .PD 0
16169 .IP "\fB\-mno\-extern\-sdata\fR" 4
16170 .IX Item "-mno-extern-sdata"
16171 .PD
16172 Assume (do not assume) that externally-defined data is in
16173 a small data section if the size of that data is within the \fB\-G\fR limit.
16174 \&\fB\-mextern\-sdata\fR is the default for all configurations.
16175 .Sp
16176 If you compile a module \fIMod\fR with \fB\-mextern\-sdata\fR \fB\-G\fR
16177 \&\fInum\fR \fB\-mgpopt\fR, and \fIMod\fR references a variable \fIVar\fR
16178 that is no bigger than \fInum\fR bytes, you must make sure that \fIVar\fR
16179 is placed in a small data section.  If \fIVar\fR is defined by another
16180 module, you must either compile that module with a high-enough
16181 \&\fB\-G\fR setting or attach a \f(CW\*(C`section\*(C'\fR attribute to \fIVar\fR's
16182 definition.  If \fIVar\fR is common, you must link the application
16183 with a high-enough \fB\-G\fR setting.
16184 .Sp
16185 The easiest way of satisfying these restrictions is to compile
16186 and link every module with the same \fB\-G\fR option.  However,
16187 you may wish to build a library that supports several different
16188 small data limits.  You can do this by compiling the library with
16189 the highest supported \fB\-G\fR setting and additionally using
16190 \&\fB\-mno\-extern\-sdata\fR to stop the library from making assumptions
16191 about externally-defined data.
16192 .IP "\fB\-mgpopt\fR" 4
16193 .IX Item "-mgpopt"
16194 .PD 0
16195 .IP "\fB\-mno\-gpopt\fR" 4
16196 .IX Item "-mno-gpopt"
16197 .PD
16198 Use (do not use) GP-relative accesses for symbols that are known to be
16199 in a small data section; see \fB\-G\fR, \fB\-mlocal\-sdata\fR and
16200 \&\fB\-mextern\-sdata\fR.  \fB\-mgpopt\fR is the default for all
16201 configurations.
16202 .Sp
16203 \&\fB\-mno\-gpopt\fR is useful for cases where the \f(CW$gp\fR register
16204 might not hold the value of \f(CW\*(C`_gp\*(C'\fR.  For example, if the code is
16205 part of a library that might be used in a boot monitor, programs that
16206 call boot monitor routines pass an unknown value in \f(CW$gp\fR.
16207 (In such situations, the boot monitor itself is usually compiled
16208 with \fB\-G0\fR.)
16209 .Sp
16210 \&\fB\-mno\-gpopt\fR implies \fB\-mno\-local\-sdata\fR and
16211 \&\fB\-mno\-extern\-sdata\fR.
16212 .IP "\fB\-membedded\-data\fR" 4
16213 .IX Item "-membedded-data"
16214 .PD 0
16215 .IP "\fB\-mno\-embedded\-data\fR" 4
16216 .IX Item "-mno-embedded-data"
16217 .PD
16218 Allocate variables to the read-only data section first if possible, then
16219 next in the small data section if possible, otherwise in data.  This gives
16220 slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
16221 when executing, and thus may be preferred for some embedded systems.
16222 .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
16223 .IX Item "-muninit-const-in-rodata"
16224 .PD 0
16225 .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
16226 .IX Item "-mno-uninit-const-in-rodata"
16227 .PD
16228 Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
16229 This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
16230 .IP "\fB\-mcode\-readable=\fR\fIsetting\fR" 4
16231 .IX Item "-mcode-readable=setting"
16232 Specify whether \s-1GCC\s0 may generate code that reads from executable sections.
16233 There are three possible settings:
16234 .RS 4
16235 .IP "\fB\-mcode\-readable=yes\fR" 4
16236 .IX Item "-mcode-readable=yes"
16237 Instructions may freely access executable sections.  This is the
16238 default setting.
16239 .IP "\fB\-mcode\-readable=pcrel\fR" 4
16240 .IX Item "-mcode-readable=pcrel"
16241 \&\s-1MIPS16\s0 PC-relative load instructions can access executable sections,
16242 but other instructions must not do so.  This option is useful on 4KSc
16243 and 4KSd processors when the code TLBs have the Read Inhibit bit set.
16244 It is also useful on processors that can be configured to have a dual
16245 instruction/data \s-1SRAM\s0 interface and that, like the M4K, automatically
16246 redirect PC-relative loads to the instruction \s-1RAM.\s0
16247 .IP "\fB\-mcode\-readable=no\fR" 4
16248 .IX Item "-mcode-readable=no"
16249 Instructions must not access executable sections.  This option can be
16250 useful on targets that are configured to have a dual instruction/data
16251 \&\s-1SRAM\s0 interface but that (unlike the M4K) do not automatically redirect
16252 PC-relative loads to the instruction \s-1RAM.\s0
16253 .RE
16254 .RS 4
16255 .RE
16256 .IP "\fB\-msplit\-addresses\fR" 4
16257 .IX Item "-msplit-addresses"
16258 .PD 0
16259 .IP "\fB\-mno\-split\-addresses\fR" 4
16260 .IX Item "-mno-split-addresses"
16261 .PD
16262 Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
16263 relocation operators.  This option has been superseded by
16264 \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
16265 .IP "\fB\-mexplicit\-relocs\fR" 4
16266 .IX Item "-mexplicit-relocs"
16267 .PD 0
16268 .IP "\fB\-mno\-explicit\-relocs\fR" 4
16269 .IX Item "-mno-explicit-relocs"
16270 .PD
16271 Use (do not use) assembler relocation operators when dealing with symbolic
16272 addresses.  The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
16273 is to use assembler macros instead.
16274 .Sp
16275 \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
16276 to use an assembler that supports relocation operators.
16277 .IP "\fB\-mcheck\-zero\-division\fR" 4
16278 .IX Item "-mcheck-zero-division"
16279 .PD 0
16280 .IP "\fB\-mno\-check\-zero\-division\fR" 4
16281 .IX Item "-mno-check-zero-division"
16282 .PD
16283 Trap (do not trap) on integer division by zero.
16284 .Sp
16285 The default is \fB\-mcheck\-zero\-division\fR.
16286 .IP "\fB\-mdivide\-traps\fR" 4
16287 .IX Item "-mdivide-traps"
16288 .PD 0
16289 .IP "\fB\-mdivide\-breaks\fR" 4
16290 .IX Item "-mdivide-breaks"
16291 .PD
16292 \&\s-1MIPS\s0 systems check for division by zero by generating either a
16293 conditional trap or a break instruction.  Using traps results in
16294 smaller code, but is only supported on \s-1MIPS II\s0 and later.  Also, some
16295 versions of the Linux kernel have a bug that prevents trap from
16296 generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR).  Use \fB\-mdivide\-traps\fR to
16297 allow conditional traps on architectures that support them and
16298 \&\fB\-mdivide\-breaks\fR to force the use of breaks.
16299 .Sp
16300 The default is usually \fB\-mdivide\-traps\fR, but this can be
16301 overridden at configure time using \fB\-\-with\-divide=breaks\fR.
16302 Divide-by-zero checks can be completely disabled using
16303 \&\fB\-mno\-check\-zero\-division\fR.
16304 .IP "\fB\-mmemcpy\fR" 4
16305 .IX Item "-mmemcpy"
16306 .PD 0
16307 .IP "\fB\-mno\-memcpy\fR" 4
16308 .IX Item "-mno-memcpy"
16309 .PD
16310 Force (do not force) the use of \f(CW\*(C`memcpy\*(C'\fR for non-trivial block
16311 moves.  The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
16312 most constant-sized copies.
16313 .IP "\fB\-mlong\-calls\fR" 4
16314 .IX Item "-mlong-calls"
16315 .PD 0
16316 .IP "\fB\-mno\-long\-calls\fR" 4
16317 .IX Item "-mno-long-calls"
16318 .PD
16319 Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction.  Calling
16320 functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
16321 and callee to be in the same 256 megabyte segment.
16322 .Sp
16323 This option has no effect on abicalls code.  The default is
16324 \&\fB\-mno\-long\-calls\fR.
16325 .IP "\fB\-mmad\fR" 4
16326 .IX Item "-mmad"
16327 .PD 0
16328 .IP "\fB\-mno\-mad\fR" 4
16329 .IX Item "-mno-mad"
16330 .PD
16331 Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
16332 instructions, as provided by the R4650 \s-1ISA.\s0
16333 .IP "\fB\-mimadd\fR" 4
16334 .IX Item "-mimadd"
16335 .PD 0
16336 .IP "\fB\-mno\-imadd\fR" 4
16337 .IX Item "-mno-imadd"
16338 .PD
16339 Enable (disable) use of the \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR integer
16340 instructions.  The default is \fB\-mimadd\fR on architectures
16341 that support \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR except for the 74k 
16342 architecture where it was found to generate slower code.
16343 .IP "\fB\-mfused\-madd\fR" 4
16344 .IX Item "-mfused-madd"
16345 .PD 0
16346 .IP "\fB\-mno\-fused\-madd\fR" 4
16347 .IX Item "-mno-fused-madd"
16348 .PD
16349 Enable (disable) use of the floating-point multiply-accumulate
16350 instructions, when they are available.  The default is
16351 \&\fB\-mfused\-madd\fR.
16352 .Sp
16353 On the R8000 \s-1CPU\s0 when multiply-accumulate instructions are used,
16354 the intermediate product is calculated to infinite precision
16355 and is not subject to the \s-1FCSR\s0 Flush to Zero bit.  This may be
16356 undesirable in some circumstances.  On other processors the result
16357 is numerically identical to the equivalent computation using
16358 separate multiply, add, subtract and negate instructions.
16359 .IP "\fB\-nocpp\fR" 4
16360 .IX Item "-nocpp"
16361 Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
16362 assembler files (with a \fB.s\fR suffix) when assembling them.
16363 .IP "\fB\-mfix\-24k\fR" 4
16364 .IX Item "-mfix-24k"
16365 .PD 0
16366 .IP "\fB\-mno\-fix\-24k\fR" 4
16367 .IX Item "-mno-fix-24k"
16368 .PD
16369 Work around the 24K E48 (lost data on stores during refill) errata.
16370 The workarounds are implemented by the assembler rather than by \s-1GCC.\s0
16371 .IP "\fB\-mfix\-r4000\fR" 4
16372 .IX Item "-mfix-r4000"
16373 .PD 0
16374 .IP "\fB\-mno\-fix\-r4000\fR" 4
16375 .IX Item "-mno-fix-r4000"
16376 .PD
16377 Work around certain R4000 \s-1CPU\s0 errata:
16378 .RS 4
16379 .IP "\-" 4
16380 A double-word or a variable shift may give an incorrect result if executed
16381 immediately after starting an integer division.
16382 .IP "\-" 4
16383 A double-word or a variable shift may give an incorrect result if executed
16384 while an integer multiplication is in progress.
16385 .IP "\-" 4
16386 An integer division may give an incorrect result if started in a delay slot
16387 of a taken branch or a jump.
16388 .RE
16389 .RS 4
16390 .RE
16391 .IP "\fB\-mfix\-r4400\fR" 4
16392 .IX Item "-mfix-r4400"
16393 .PD 0
16394 .IP "\fB\-mno\-fix\-r4400\fR" 4
16395 .IX Item "-mno-fix-r4400"
16396 .PD
16397 Work around certain R4400 \s-1CPU\s0 errata:
16398 .RS 4
16399 .IP "\-" 4
16400 A double-word or a variable shift may give an incorrect result if executed
16401 immediately after starting an integer division.
16402 .RE
16403 .RS 4
16404 .RE
16405 .IP "\fB\-mfix\-r10000\fR" 4
16406 .IX Item "-mfix-r10000"
16407 .PD 0
16408 .IP "\fB\-mno\-fix\-r10000\fR" 4
16409 .IX Item "-mno-fix-r10000"
16410 .PD
16411 Work around certain R10000 errata:
16412 .RS 4
16413 .IP "\-" 4
16414 \&\f(CW\*(C`ll\*(C'\fR/\f(CW\*(C`sc\*(C'\fR sequences may not behave atomically on revisions
16415 prior to 3.0.  They may deadlock on revisions 2.6 and earlier.
16416 .RE
16417 .RS 4
16418 .Sp
16419 This option can only be used if the target architecture supports
16420 branch-likely instructions.  \fB\-mfix\-r10000\fR is the default when
16421 \&\fB\-march=r10000\fR is used; \fB\-mno\-fix\-r10000\fR is the default
16422 otherwise.
16423 .RE
16424 .IP "\fB\-mfix\-rm7000\fR" 4
16425 .IX Item "-mfix-rm7000"
16426 .PD 0
16427 .IP "\fB\-mno\-fix\-rm7000\fR" 4
16428 .IX Item "-mno-fix-rm7000"
16429 .PD
16430 Work around the \s-1RM7000 \s0\f(CW\*(C`dmult\*(C'\fR/\f(CW\*(C`dmultu\*(C'\fR errata.  The
16431 workarounds are implemented by the assembler rather than by \s-1GCC.\s0
16432 .IP "\fB\-mfix\-vr4120\fR" 4
16433 .IX Item "-mfix-vr4120"
16434 .PD 0
16435 .IP "\fB\-mno\-fix\-vr4120\fR" 4
16436 .IX Item "-mno-fix-vr4120"
16437 .PD
16438 Work around certain \s-1VR4120\s0 errata:
16439 .RS 4
16440 .IP "\-" 4
16441 \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
16442 .IP "\-" 4
16443 \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
16444 of the operands is negative.
16445 .RE
16446 .RS 4
16447 .Sp
16448 The workarounds for the division errata rely on special functions in
16449 \&\fIlibgcc.a\fR.  At present, these functions are only provided by
16450 the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
16451 .Sp
16452 Other \s-1VR4120\s0 errata require a \s-1NOP\s0 to be inserted between certain pairs of
16453 instructions.  These errata are handled by the assembler, not by \s-1GCC\s0 itself.
16454 .RE
16455 .IP "\fB\-mfix\-vr4130\fR" 4
16456 .IX Item "-mfix-vr4130"
16457 Work around the \s-1VR4130 \s0\f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata.  The
16458 workarounds are implemented by the assembler rather than by \s-1GCC,\s0
16459 although \s-1GCC\s0 avoids using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
16460 \&\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
16461 instructions are available instead.
16462 .IP "\fB\-mfix\-sb1\fR" 4
16463 .IX Item "-mfix-sb1"
16464 .PD 0
16465 .IP "\fB\-mno\-fix\-sb1\fR" 4
16466 .IX Item "-mno-fix-sb1"
16467 .PD
16468 Work around certain \s-1SB\-1 CPU\s0 core errata.
16469 (This flag currently works around the \s-1SB\-1\s0 revision 2
16470 \&\*(L"F1\*(R" and \*(L"F2\*(R" floating-point errata.)
16471 .IP "\fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR" 4
16472 .IX Item "-mr10k-cache-barrier=setting"
16473 Specify whether \s-1GCC\s0 should insert cache barriers to avoid the
16474 side-effects of speculation on R10K processors.
16475 .Sp
16476 In common with many processors, the R10K tries to predict the outcome
16477 of a conditional branch and speculatively executes instructions from
16478 the \*(L"taken\*(R" branch.  It later aborts these instructions if the
16479 predicted outcome is wrong.  However, on the R10K, even aborted
16480 instructions can have side effects.
16481 .Sp
16482 This problem only affects kernel stores and, depending on the system,
16483 kernel loads.  As an example, a speculatively-executed store may load
16484 the target memory into cache and mark the cache line as dirty, even if
16485 the store itself is later aborted.  If a \s-1DMA\s0 operation writes to the
16486 same area of memory before the \*(L"dirty\*(R" line is flushed, the cached
16487 data overwrites the DMA-ed data.  See the R10K processor manual
16488 for a full description, including other potential problems.
16489 .Sp
16490 One workaround is to insert cache barrier instructions before every memory
16491 access that might be speculatively executed and that might have side
16492 effects even if aborted.  \fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR
16493 controls \s-1GCC\s0's implementation of this workaround.  It assumes that
16494 aborted accesses to any byte in the following regions does not have
16495 side effects:
16496 .RS 4
16497 .IP "1." 4
16498 .IX Item "1."
16499 the memory occupied by the current function's stack frame;
16500 .IP "2." 4
16501 .IX Item "2."
16502 the memory occupied by an incoming stack argument;
16503 .IP "3." 4
16504 .IX Item "3."
16505 the memory occupied by an object with a link-time-constant address.
16506 .RE
16507 .RS 4
16508 .Sp
16509 It is the kernel's responsibility to ensure that speculative
16510 accesses to these regions are indeed safe.
16511 .Sp
16512 If the input program contains a function declaration such as:
16513 .Sp
16514 .Vb 1
16515 \&        void foo (void);
16516 .Ve
16517 .Sp
16518 then the implementation of \f(CW\*(C`foo\*(C'\fR must allow \f(CW\*(C`j foo\*(C'\fR and
16519 \&\f(CW\*(C`jal foo\*(C'\fR to be executed speculatively.  \s-1GCC\s0 honors this
16520 restriction for functions it compiles itself.  It expects non-GCC
16521 functions (such as hand-written assembly code) to do the same.
16522 .Sp
16523 The option has three forms:
16524 .IP "\fB\-mr10k\-cache\-barrier=load\-store\fR" 4
16525 .IX Item "-mr10k-cache-barrier=load-store"
16526 Insert a cache barrier before a load or store that might be
16527 speculatively executed and that might have side effects even
16528 if aborted.
16529 .IP "\fB\-mr10k\-cache\-barrier=store\fR" 4
16530 .IX Item "-mr10k-cache-barrier=store"
16531 Insert a cache barrier before a store that might be speculatively
16532 executed and that might have side effects even if aborted.
16533 .IP "\fB\-mr10k\-cache\-barrier=none\fR" 4
16534 .IX Item "-mr10k-cache-barrier=none"
16535 Disable the insertion of cache barriers.  This is the default setting.
16536 .RE
16537 .RS 4
16538 .RE
16539 .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
16540 .IX Item "-mflush-func=func"
16541 .PD 0
16542 .IP "\fB\-mno\-flush\-func\fR" 4
16543 .IX Item "-mno-flush-func"
16544 .PD
16545 Specifies the function to call to flush the I and D caches, or to not
16546 call any such function.  If called, the function must take the same
16547 arguments as the common \f(CW\*(C`_flush_func\*(C'\fR, that is, the address of the
16548 memory range for which the cache is being flushed, the size of the
16549 memory range, and the number 3 (to flush both caches).  The default
16550 depends on the target \s-1GCC\s0 was configured for, but commonly is either
16551 \&\f(CW\*(C`_flush_func\*(C'\fR or \f(CW\*(C`_\|_cpu_flush\*(C'\fR.
16552 .IP "\fBmbranch\-cost=\fR\fInum\fR" 4
16553 .IX Item "mbranch-cost=num"
16554 Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
16555 This cost is only a heuristic and is not guaranteed to produce
16556 consistent results across releases.  A zero cost redundantly selects
16557 the default, which is based on the \fB\-mtune\fR setting.
16558 .IP "\fB\-mbranch\-likely\fR" 4
16559 .IX Item "-mbranch-likely"
16560 .PD 0
16561 .IP "\fB\-mno\-branch\-likely\fR" 4
16562 .IX Item "-mno-branch-likely"
16563 .PD
16564 Enable or disable use of Branch Likely instructions, regardless of the
16565 default for the selected architecture.  By default, Branch Likely
16566 instructions may be generated if they are supported by the selected
16567 architecture.  An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
16568 and processors that implement those architectures; for those, Branch
16569 Likely instructions are not be generated by default because the \s-1MIPS32\s0
16570 and \s-1MIPS64\s0 architectures specifically deprecate their use.
16571 .IP "\fB\-mfp\-exceptions\fR" 4
16572 .IX Item "-mfp-exceptions"
16573 .PD 0
16574 .IP "\fB\-mno\-fp\-exceptions\fR" 4
16575 .IX Item "-mno-fp-exceptions"
16576 .PD
16577 Specifies whether \s-1FP\s0 exceptions are enabled.  This affects how
16578 \&\s-1FP\s0 instructions are scheduled for some processors.
16579 The default is that \s-1FP\s0 exceptions are
16580 enabled.
16581 .Sp
16582 For instance, on the \s-1SB\-1,\s0 if \s-1FP\s0 exceptions are disabled, and we are emitting
16583 64\-bit code, then we can use both \s-1FP\s0 pipes.  Otherwise, we can only use one
16584 \&\s-1FP\s0 pipe.
16585 .IP "\fB\-mvr4130\-align\fR" 4
16586 .IX Item "-mvr4130-align"
16587 .PD 0
16588 .IP "\fB\-mno\-vr4130\-align\fR" 4
16589 .IX Item "-mno-vr4130-align"
16590 .PD
16591 The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
16592 instructions together if the first one is 8\-byte aligned.  When this
16593 option is enabled, \s-1GCC\s0 aligns pairs of instructions that it
16594 thinks should execute in parallel.
16595 .Sp
16596 This option only has an effect when optimizing for the \s-1VR4130.\s0
16597 It normally makes code faster, but at the expense of making it bigger.
16598 It is enabled by default at optimization level \fB\-O3\fR.
16599 .IP "\fB\-msynci\fR" 4
16600 .IX Item "-msynci"
16601 .PD 0
16602 .IP "\fB\-mno\-synci\fR" 4
16603 .IX Item "-mno-synci"
16604 .PD
16605 Enable (disable) generation of \f(CW\*(C`synci\*(C'\fR instructions on
16606 architectures that support it.  The \f(CW\*(C`synci\*(C'\fR instructions (if
16607 enabled) are generated when \f(CW\*(C`_\|_builtin_\|_\|_clear_cache\*(C'\fR is
16608 compiled.
16609 .Sp
16610 This option defaults to \fB\-mno\-synci\fR, but the default can be
16611 overridden by configuring \s-1GCC\s0 with \fB\-\-with\-synci\fR.
16612 .Sp
16613 When compiling code for single processor systems, it is generally safe
16614 to use \f(CW\*(C`synci\*(C'\fR.  However, on many multi-core (\s-1SMP\s0) systems, it
16615 does not invalidate the instruction caches on all cores and may lead
16616 to undefined behavior.
16617 .IP "\fB\-mrelax\-pic\-calls\fR" 4
16618 .IX Item "-mrelax-pic-calls"
16619 .PD 0
16620 .IP "\fB\-mno\-relax\-pic\-calls\fR" 4
16621 .IX Item "-mno-relax-pic-calls"
16622 .PD
16623 Try to turn \s-1PIC\s0 calls that are normally dispatched via register
16624 \&\f(CW$25\fR into direct calls.  This is only possible if the linker can
16625 resolve the destination at link-time and if the destination is within
16626 range for a direct call.
16627 .Sp
16628 \&\fB\-mrelax\-pic\-calls\fR is the default if \s-1GCC\s0 was configured to use
16629 an assembler and a linker that support the \f(CW\*(C`.reloc\*(C'\fR assembly
16630 directive and \fB\-mexplicit\-relocs\fR is in effect.  With
16631 \&\fB\-mno\-explicit\-relocs\fR, this optimization can be performed by the
16632 assembler and the linker alone without help from the compiler.
16633 .IP "\fB\-mmcount\-ra\-address\fR" 4
16634 .IX Item "-mmcount-ra-address"
16635 .PD 0
16636 .IP "\fB\-mno\-mcount\-ra\-address\fR" 4
16637 .IX Item "-mno-mcount-ra-address"
16638 .PD
16639 Emit (do not emit) code that allows \f(CW\*(C`_mcount\*(C'\fR to modify the
16640 calling function's return address.  When enabled, this option extends
16641 the usual \f(CW\*(C`_mcount\*(C'\fR interface with a new \fIra-address\fR
16642 parameter, which has type \f(CW\*(C`intptr_t *\*(C'\fR and is passed in register
16643 \&\f(CW$12\fR.  \f(CW\*(C`_mcount\*(C'\fR can then modify the return address by
16644 doing both of the following:
16645 .RS 4
16646 .IP "*" 4
16647 Returning the new address in register \f(CW$31\fR.
16648 .IP "*" 4
16649 Storing the new address in \f(CW\*(C`*\f(CIra\-address\f(CW\*(C'\fR,
16650 if \fIra-address\fR is nonnull.
16651 .RE
16652 .RS 4
16653 .Sp
16654 The default is \fB\-mno\-mcount\-ra\-address\fR.
16655 .RE
16656 .PP
16657 \fI\s-1MMIX\s0 Options\fR
16658 .IX Subsection "MMIX Options"
16659 .PP
16660 These options are defined for the \s-1MMIX:\s0
16661 .IP "\fB\-mlibfuncs\fR" 4
16662 .IX Item "-mlibfuncs"
16663 .PD 0
16664 .IP "\fB\-mno\-libfuncs\fR" 4
16665 .IX Item "-mno-libfuncs"
16666 .PD
16667 Specify that intrinsic library functions are being compiled, passing all
16668 values in registers, no matter the size.
16669 .IP "\fB\-mepsilon\fR" 4
16670 .IX Item "-mepsilon"
16671 .PD 0
16672 .IP "\fB\-mno\-epsilon\fR" 4
16673 .IX Item "-mno-epsilon"
16674 .PD
16675 Generate floating-point comparison instructions that compare with respect
16676 to the \f(CW\*(C`rE\*(C'\fR epsilon register.
16677 .IP "\fB\-mabi=mmixware\fR" 4
16678 .IX Item "-mabi=mmixware"
16679 .PD 0
16680 .IP "\fB\-mabi=gnu\fR" 4
16681 .IX Item "-mabi=gnu"
16682 .PD
16683 Generate code that passes function parameters and return values that (in
16684 the called function) are seen as registers \f(CW$0\fR and up, as opposed to
16685 the \s-1GNU ABI\s0 which uses global registers \f(CW$231\fR and up.
16686 .IP "\fB\-mzero\-extend\fR" 4
16687 .IX Item "-mzero-extend"
16688 .PD 0
16689 .IP "\fB\-mno\-zero\-extend\fR" 4
16690 .IX Item "-mno-zero-extend"
16691 .PD
16692 When reading data from memory in sizes shorter than 64 bits, use (do not
16693 use) zero-extending load instructions by default, rather than
16694 sign-extending ones.
16695 .IP "\fB\-mknuthdiv\fR" 4
16696 .IX Item "-mknuthdiv"
16697 .PD 0
16698 .IP "\fB\-mno\-knuthdiv\fR" 4
16699 .IX Item "-mno-knuthdiv"
16700 .PD
16701 Make the result of a division yielding a remainder have the same sign as
16702 the divisor.  With the default, \fB\-mno\-knuthdiv\fR, the sign of the
16703 remainder follows the sign of the dividend.  Both methods are
16704 arithmetically valid, the latter being almost exclusively used.
16705 .IP "\fB\-mtoplevel\-symbols\fR" 4
16706 .IX Item "-mtoplevel-symbols"
16707 .PD 0
16708 .IP "\fB\-mno\-toplevel\-symbols\fR" 4
16709 .IX Item "-mno-toplevel-symbols"
16710 .PD
16711 Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
16712 code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
16713 .IP "\fB\-melf\fR" 4
16714 .IX Item "-melf"
16715 Generate an executable in the \s-1ELF\s0 format, rather than the default
16716 \&\fBmmo\fR format used by the \fBmmix\fR simulator.
16717 .IP "\fB\-mbranch\-predict\fR" 4
16718 .IX Item "-mbranch-predict"
16719 .PD 0
16720 .IP "\fB\-mno\-branch\-predict\fR" 4
16721 .IX Item "-mno-branch-predict"
16722 .PD
16723 Use (do not use) the probable-branch instructions, when static branch
16724 prediction indicates a probable branch.
16725 .IP "\fB\-mbase\-addresses\fR" 4
16726 .IX Item "-mbase-addresses"
16727 .PD 0
16728 .IP "\fB\-mno\-base\-addresses\fR" 4
16729 .IX Item "-mno-base-addresses"
16730 .PD
16731 Generate (do not generate) code that uses \fIbase addresses\fR.  Using a
16732 base address automatically generates a request (handled by the assembler
16733 and the linker) for a constant to be set up in a global register.  The
16734 register is used for one or more base address requests within the range 0
16735 to 255 from the value held in the register.  The generally leads to short
16736 and fast code, but the number of different data items that can be
16737 addressed is limited.  This means that a program that uses lots of static
16738 data may require \fB\-mno\-base\-addresses\fR.
16739 .IP "\fB\-msingle\-exit\fR" 4
16740 .IX Item "-msingle-exit"
16741 .PD 0
16742 .IP "\fB\-mno\-single\-exit\fR" 4
16743 .IX Item "-mno-single-exit"
16744 .PD
16745 Force (do not force) generated code to have a single exit point in each
16746 function.
16747 .PP
16748 \fI\s-1MN10300\s0 Options\fR
16749 .IX Subsection "MN10300 Options"
16750 .PP
16751 These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
16752 .IP "\fB\-mmult\-bug\fR" 4
16753 .IX Item "-mmult-bug"
16754 Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
16755 processors.  This is the default.
16756 .IP "\fB\-mno\-mult\-bug\fR" 4
16757 .IX Item "-mno-mult-bug"
16758 Do not generate code to avoid bugs in the multiply instructions for the
16759 \&\s-1MN10300\s0 processors.
16760 .IP "\fB\-mam33\fR" 4
16761 .IX Item "-mam33"
16762 Generate code using features specific to the \s-1AM33\s0 processor.
16763 .IP "\fB\-mno\-am33\fR" 4
16764 .IX Item "-mno-am33"
16765 Do not generate code using features specific to the \s-1AM33\s0 processor.  This
16766 is the default.
16767 .IP "\fB\-mam33\-2\fR" 4
16768 .IX Item "-mam33-2"
16769 Generate code using features specific to the \s-1AM33/2.0\s0 processor.
16770 .IP "\fB\-mam34\fR" 4
16771 .IX Item "-mam34"
16772 Generate code using features specific to the \s-1AM34\s0 processor.
16773 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
16774 .IX Item "-mtune=cpu-type"
16775 Use the timing characteristics of the indicated \s-1CPU\s0 type when
16776 scheduling instructions.  This does not change the targeted processor
16777 type.  The \s-1CPU\s0 type must be one of \fBmn10300\fR, \fBam33\fR,
16778 \&\fBam33\-2\fR or \fBam34\fR.
16779 .IP "\fB\-mreturn\-pointer\-on\-d0\fR" 4
16780 .IX Item "-mreturn-pointer-on-d0"
16781 When generating a function that returns a pointer, return the pointer
16782 in both \f(CW\*(C`a0\*(C'\fR and \f(CW\*(C`d0\*(C'\fR.  Otherwise, the pointer is returned
16783 only in \f(CW\*(C`a0\*(C'\fR, and attempts to call such functions without a prototype
16784 result in errors.  Note that this option is on by default; use
16785 \&\fB\-mno\-return\-pointer\-on\-d0\fR to disable it.
16786 .IP "\fB\-mno\-crt0\fR" 4
16787 .IX Item "-mno-crt0"
16788 Do not link in the C run-time initialization object file.
16789 .IP "\fB\-mrelax\fR" 4
16790 .IX Item "-mrelax"
16791 Indicate to the linker that it should perform a relaxation optimization pass
16792 to shorten branches, calls and absolute memory addresses.  This option only
16793 has an effect when used on the command line for the final link step.
16794 .Sp
16795 This option makes symbolic debugging impossible.
16796 .IP "\fB\-mliw\fR" 4
16797 .IX Item "-mliw"
16798 Allow the compiler to generate \fILong Instruction Word\fR
16799 instructions if the target is the \fB\s-1AM33\s0\fR or later.  This is the
16800 default.  This option defines the preprocessor macro \f(CW\*(C`_\|_LIW_\|_\*(C'\fR.
16801 .IP "\fB\-mnoliw\fR" 4
16802 .IX Item "-mnoliw"
16803 Do not allow the compiler to generate \fILong Instruction Word\fR
16804 instructions.  This option defines the preprocessor macro
16805 \&\f(CW\*(C`_\|_NO_LIW_\|_\*(C'\fR.
16806 .IP "\fB\-msetlb\fR" 4
16807 .IX Item "-msetlb"
16808 Allow the compiler to generate the \fI\s-1SETLB\s0\fR and \fILcc\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`_\|_SETLB_\|_\*(C'\fR.
16811 .IP "\fB\-mnosetlb\fR" 4
16812 .IX Item "-mnosetlb"
16813 Do not allow the compiler to generate \fI\s-1SETLB\s0\fR or \fILcc\fR
16814 instructions.  This option defines the preprocessor macro
16815 \&\f(CW\*(C`_\|_NO_SETLB_\|_\*(C'\fR.
16816 .PP
16817 \fIMoxie Options\fR
16818 .IX Subsection "Moxie Options"
16819 .IP "\fB\-meb\fR" 4
16820 .IX Item "-meb"
16821 Generate big-endian code.  This is the default for \fBmoxie\-*\-*\fR
16822 configurations.
16823 .IP "\fB\-mel\fR" 4
16824 .IX Item "-mel"
16825 Generate little-endian code.
16826 .IP "\fB\-mmul.x\fR" 4
16827 .IX Item "-mmul.x"
16828 Generate mul.x and umul.x instructions.  This is the default for
16829 \&\fBmoxiebox\-*\-*\fR configurations.
16830 .IP "\fB\-mno\-crt0\fR" 4
16831 .IX Item "-mno-crt0"
16832 Do not link in the C run-time initialization object file.
16833 .PP
16834 \fI\s-1MSP430\s0 Options\fR
16835 .IX Subsection "MSP430 Options"
16836 .PP
16837 These options are defined for the \s-1MSP430:\s0
16838 .IP "\fB\-masm\-hex\fR" 4
16839 .IX Item "-masm-hex"
16840 Force assembly output to always use hex constants.  Normally such
16841 constants are signed decimals, but this option is available for
16842 testsuite and/or aesthetic purposes.
16843 .IP "\fB\-mmcu=\fR" 4
16844 .IX Item "-mmcu="
16845 Select the \s-1MCU\s0 to target.  This is used to create a C preprocessor
16846 symbol based upon the \s-1MCU\s0 name, converted to upper case and pre\- and
16847 post-fixed with \fB_\|_\fR.  This in turn is used by the
16848 \&\fImsp430.h\fR header file to select an MCU-specific supplementary
16849 header file.
16850 .Sp
16851 The option also sets the \s-1ISA\s0 to use.  If the \s-1MCU\s0 name is one that is
16852 known to only support the 430 \s-1ISA\s0 then that is selected, otherwise the
16853 430X \s-1ISA\s0 is selected.  A generic \s-1MCU\s0 name of \fBmsp430\fR can also be
16854 used to select the 430 \s-1ISA. \s0 Similarly the generic \fBmsp430x\fR \s-1MCU\s0
16855 name selects the 430X \s-1ISA.\s0
16856 .Sp
16857 In addition an MCU-specific linker script is added to the linker
16858 command line.  The script's name is the name of the \s-1MCU\s0 with
16859 \&\fI.ld\fR appended.  Thus specifying \fB\-mmcu=xxx\fR on the \fBgcc\fR
16860 command line defines the C preprocessor symbol \f(CW\*(C`_\|_XXX_\|_\*(C'\fR and
16861 cause the linker to search for a script called \fIxxx.ld\fR.
16862 .Sp
16863 This option is also passed on to the assembler.
16864 .IP "\fB\-mcpu=\fR" 4
16865 .IX Item "-mcpu="
16866 Specifies the \s-1ISA\s0 to use.  Accepted values are \fBmsp430\fR,
16867 \&\fBmsp430x\fR and \fBmsp430xv2\fR.  This option is deprecated.  The
16868 \&\fB\-mmcu=\fR option should be used to select the \s-1ISA.\s0
16869 .IP "\fB\-msim\fR" 4
16870 .IX Item "-msim"
16871 Link to the simulator runtime libraries and linker script.  Overrides
16872 any scripts that would be selected by the \fB\-mmcu=\fR option.
16873 .IP "\fB\-mlarge\fR" 4
16874 .IX Item "-mlarge"
16875 Use large-model addressing (20\-bit pointers, 32\-bit \f(CW\*(C`size_t\*(C'\fR).
16876 .IP "\fB\-msmall\fR" 4
16877 .IX Item "-msmall"
16878 Use small-model addressing (16\-bit pointers, 16\-bit \f(CW\*(C`size_t\*(C'\fR).
16879 .IP "\fB\-mrelax\fR" 4
16880 .IX Item "-mrelax"
16881 This option is passed to the assembler and linker, and allows the
16882 linker to perform certain optimizations that cannot be done until
16883 the final link.
16884 .IP "\fBmhwmult=\fR" 4
16885 .IX Item "mhwmult="
16886 Describes the type of hardware multiply supported by the target.
16887 Accepted values are \fBnone\fR for no hardware multiply, \fB16bit\fR
16888 for the original 16\-bit\-only multiply supported by early MCUs.
16889 \&\fB32bit\fR for the 16/32\-bit multiply supported by later MCUs and
16890 \&\fBf5series\fR for the 16/32\-bit multiply supported by F5\-series MCUs.
16891 A value of \fBauto\fR can also be given.  This tells \s-1GCC\s0 to deduce
16892 the hardware multiply support based upon the \s-1MCU\s0 name provided by the
16893 \&\fB\-mmcu\fR option.  If no \fB\-mmcu\fR option is specified then
16894 \&\fB32bit\fR hardware multiply support is assumed.  \fBauto\fR is the
16895 default setting.
16896 .Sp
16897 Hardware multiplies are normally performed by calling a library
16898 routine.  This saves space in the generated code.  When compiling at
16899 \&\fB\-O3\fR or higher however the hardware multiplier is invoked
16900 inline.  This makes for bigger, but faster code.
16901 .Sp
16902 The hardware multiply routines disable interrupts whilst running and
16903 restore the previous interrupt state when they finish.  This makes
16904 them safe to use inside interrupt handlers as well as in normal code.
16905 .IP "\fB\-minrt\fR" 4
16906 .IX Item "-minrt"
16907 Enable the use of a minimum runtime environment \- no static
16908 initializers or constructors.  This is intended for memory-constrained
16909 devices.  The compiler includes special symbols in some objects
16910 that tell the linker and runtime which code fragments are required.
16911 .PP
16912 \fI\s-1NDS32\s0 Options\fR
16913 .IX Subsection "NDS32 Options"
16914 .PP
16915 These options are defined for \s-1NDS32\s0 implementations:
16916 .IP "\fB\-mbig\-endian\fR" 4
16917 .IX Item "-mbig-endian"
16918 Generate code in big-endian mode.
16919 .IP "\fB\-mlittle\-endian\fR" 4
16920 .IX Item "-mlittle-endian"
16921 Generate code in little-endian mode.
16922 .IP "\fB\-mreduced\-regs\fR" 4
16923 .IX Item "-mreduced-regs"
16924 Use reduced-set registers for register allocation.
16925 .IP "\fB\-mfull\-regs\fR" 4
16926 .IX Item "-mfull-regs"
16927 Use full-set registers for register allocation.
16928 .IP "\fB\-mcmov\fR" 4
16929 .IX Item "-mcmov"
16930 Generate conditional move instructions.
16931 .IP "\fB\-mno\-cmov\fR" 4
16932 .IX Item "-mno-cmov"
16933 Do not generate conditional move instructions.
16934 .IP "\fB\-mperf\-ext\fR" 4
16935 .IX Item "-mperf-ext"
16936 Generate performance extension instructions.
16937 .IP "\fB\-mno\-perf\-ext\fR" 4
16938 .IX Item "-mno-perf-ext"
16939 Do not generate performance extension instructions.
16940 .IP "\fB\-mv3push\fR" 4
16941 .IX Item "-mv3push"
16942 Generate v3 push25/pop25 instructions.
16943 .IP "\fB\-mno\-v3push\fR" 4
16944 .IX Item "-mno-v3push"
16945 Do not generate v3 push25/pop25 instructions.
16946 .IP "\fB\-m16\-bit\fR" 4
16947 .IX Item "-m16-bit"
16948 Generate 16\-bit instructions.
16949 .IP "\fB\-mno\-16\-bit\fR" 4
16950 .IX Item "-mno-16-bit"
16951 Do not generate 16\-bit instructions.
16952 .IP "\fB\-misr\-vector\-size=\fR\fInum\fR" 4
16953 .IX Item "-misr-vector-size=num"
16954 Specify the size of each interrupt vector, which must be 4 or 16.
16955 .IP "\fB\-mcache\-block\-size=\fR\fInum\fR" 4
16956 .IX Item "-mcache-block-size=num"
16957 Specify the size of each cache block,
16958 which must be a power of 2 between 4 and 512.
16959 .IP "\fB\-march=\fR\fIarch\fR" 4
16960 .IX Item "-march=arch"
16961 Specify the name of the target architecture.
16962 .IP "\fB\-mcmodel=\fR\fIcode-model\fR" 4
16963 .IX Item "-mcmodel=code-model"
16964 Set the code model to one of
16965 .RS 4
16966 .IP "\fBsmall\fR" 4
16967 .IX Item "small"
16968 All the data and read-only data segments must be within 512KB addressing space.
16969 The text segment must be within 16MB addressing space.
16970 .IP "\fBmedium\fR" 4
16971 .IX Item "medium"
16972 The data segment must be within 512KB while the read-only data segment can be
16973 within 4GB addressing space.  The text segment should be still within 16MB
16974 addressing space.
16975 .IP "\fBlarge\fR" 4
16976 .IX Item "large"
16977 All the text and data segments can be within 4GB addressing space.
16978 .RE
16979 .RS 4
16980 .RE
16981 .IP "\fB\-mctor\-dtor\fR" 4
16982 .IX Item "-mctor-dtor"
16983 Enable constructor/destructor feature.
16984 .IP "\fB\-mrelax\fR" 4
16985 .IX Item "-mrelax"
16986 Guide linker to relax instructions.
16987 .PP
16988 \fINios \s-1II\s0 Options\fR
16989 .IX Subsection "Nios II Options"
16990 .PP
16991 These are the options defined for the Altera Nios \s-1II\s0 processor.
16992 .IP "\fB\-G\fR \fInum\fR" 4
16993 .IX Item "-G num"
16994 Put global and static objects less than or equal to \fInum\fR bytes
16995 into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
16996 sections.  The default value of \fInum\fR is 8.
16997 .IP "\fB\-mgpopt=\fR\fIoption\fR" 4
16998 .IX Item "-mgpopt=option"
16999 .PD 0
17000 .IP "\fB\-mgpopt\fR" 4
17001 .IX Item "-mgpopt"
17002 .IP "\fB\-mno\-gpopt\fR" 4
17003 .IX Item "-mno-gpopt"
17004 .PD
17005 Generate (do not generate) GP-relative accesses.  The following 
17006 \&\fIoption\fR names are recognized:
17007 .RS 4
17008 .IP "\fBnone\fR" 4
17009 .IX Item "none"
17010 Do not generate GP-relative accesses.
17011 .IP "\fBlocal\fR" 4
17012 .IX Item "local"
17013 Generate GP-relative accesses for small data objects that are not 
17014 external or weak.  Also use GP-relative addressing for objects that
17015 have been explicitly placed in a small data section via a \f(CW\*(C`section\*(C'\fR
17016 attribute.
17017 .IP "\fBglobal\fR" 4
17018 .IX Item "global"
17019 As for \fBlocal\fR, but also generate GP-relative accesses for
17020 small data objects that are external or weak.  If you use this option,
17021 you must ensure that all parts of your program (including libraries) are
17022 compiled with the same \fB\-G\fR setting.
17023 .IP "\fBdata\fR" 4
17024 .IX Item "data"
17025 Generate GP-relative accesses for all data objects in the program.  If you
17026 use this option, the entire data and \s-1BSS\s0 segments
17027 of your program must fit in 64K of memory and you must use an appropriate
17028 linker script to allocate them within the addressible range of the
17029 global pointer.
17030 .IP "\fBall\fR" 4
17031 .IX Item "all"
17032 Generate GP-relative addresses for function pointers as well as data
17033 pointers.  If you use this option, the entire text, data, and \s-1BSS\s0 segments
17034 of your program must fit in 64K of memory and you must use an appropriate
17035 linker script to allocate them within the addressible range of the
17036 global pointer.
17037 .RE
17038 .RS 4
17039 .Sp
17040 \&\fB\-mgpopt\fR is equivalent to \fB\-mgpopt=local\fR, and
17041 \&\fB\-mno\-gpopt\fR is equivalent to \fB\-mgpopt=none\fR.
17042 .Sp
17043 The default is \fB\-mgpopt\fR except when \fB\-fpic\fR or
17044 \&\fB\-fPIC\fR is specified to generate position-independent code.
17045 Note that the Nios \s-1II ABI\s0 does not permit GP-relative accesses from
17046 shared libraries.
17047 .Sp
17048 You may need to specify \fB\-mno\-gpopt\fR explicitly when building
17049 programs that include large amounts of small data, including large
17050 \&\s-1GOT\s0 data sections.  In this case, the 16\-bit offset for GP-relative
17051 addressing may not be large enough to allow access to the entire 
17052 small data section.
17053 .RE
17054 .IP "\fB\-mel\fR" 4
17055 .IX Item "-mel"
17056 .PD 0
17057 .IP "\fB\-meb\fR" 4
17058 .IX Item "-meb"
17059 .PD
17060 Generate little-endian (default) or big-endian (experimental) code,
17061 respectively.
17062 .IP "\fB\-mbypass\-cache\fR" 4
17063 .IX Item "-mbypass-cache"
17064 .PD 0
17065 .IP "\fB\-mno\-bypass\-cache\fR" 4
17066 .IX Item "-mno-bypass-cache"
17067 .PD
17068 Force all load and store instructions to always bypass cache by 
17069 using I/O variants of the instructions. The default is not to
17070 bypass the cache.
17071 .IP "\fB\-mno\-cache\-volatile\fR" 4
17072 .IX Item "-mno-cache-volatile"
17073 .PD 0
17074 .IP "\fB\-mcache\-volatile\fR" 4
17075 .IX Item "-mcache-volatile"
17076 .PD
17077 Volatile memory access bypass the cache using the I/O variants of 
17078 the load and store instructions. The default is not to bypass the cache.
17079 .IP "\fB\-mno\-fast\-sw\-div\fR" 4
17080 .IX Item "-mno-fast-sw-div"
17081 .PD 0
17082 .IP "\fB\-mfast\-sw\-div\fR" 4
17083 .IX Item "-mfast-sw-div"
17084 .PD
17085 Do not use table-based fast divide for small numbers. The default 
17086 is to use the fast divide at \fB\-O3\fR and above.
17087 .IP "\fB\-mno\-hw\-mul\fR" 4
17088 .IX Item "-mno-hw-mul"
17089 .PD 0
17090 .IP "\fB\-mhw\-mul\fR" 4
17091 .IX Item "-mhw-mul"
17092 .IP "\fB\-mno\-hw\-mulx\fR" 4
17093 .IX Item "-mno-hw-mulx"
17094 .IP "\fB\-mhw\-mulx\fR" 4
17095 .IX Item "-mhw-mulx"
17096 .IP "\fB\-mno\-hw\-div\fR" 4
17097 .IX Item "-mno-hw-div"
17098 .IP "\fB\-mhw\-div\fR" 4
17099 .IX Item "-mhw-div"
17100 .PD
17101 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 
17102 instructions by the compiler. The default is to emit \f(CW\*(C`mul\*(C'\fR
17103 and not emit \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`mulx\*(C'\fR.
17104 .IP "\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR" 4
17105 .IX Item "-mcustom-insn=N"
17106 .PD 0
17107 .IP "\fB\-mno\-custom\-\fR\fIinsn\fR" 4
17108 .IX Item "-mno-custom-insn"
17109 .PD
17110 Each \fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR option enables use of a
17111 custom instruction with encoding \fIN\fR when generating code that uses 
17112 \&\fIinsn\fR.  For example, \fB\-mcustom\-fadds=253\fR generates custom
17113 instruction 253 for single-precision floating-point add operations instead
17114 of the default behavior of using a library call.
17115 .Sp
17116 The following values of \fIinsn\fR are supported.  Except as otherwise
17117 noted, floating-point operations are expected to be implemented with
17118 normal \s-1IEEE 754\s0 semantics and correspond directly to the C operators or the
17119 equivalent \s-1GCC\s0 built-in functions.
17120 .Sp
17121 Single-precision floating point:
17122 .RS 4
17123 .IP "\fBfadds\fR, \fBfsubs\fR, \fBfdivs\fR, \fBfmuls\fR" 4
17124 .IX Item "fadds, fsubs, fdivs, fmuls"
17125 Binary arithmetic operations.
17126 .IP "\fBfnegs\fR" 4
17127 .IX Item "fnegs"
17128 Unary negation.
17129 .IP "\fBfabss\fR" 4
17130 .IX Item "fabss"
17131 Unary absolute value.
17132 .IP "\fBfcmpeqs\fR, \fBfcmpges\fR, \fBfcmpgts\fR, \fBfcmples\fR, \fBfcmplts\fR, \fBfcmpnes\fR" 4
17133 .IX Item "fcmpeqs, fcmpges, fcmpgts, fcmples, fcmplts, fcmpnes"
17134 Comparison operations.
17135 .IP "\fBfmins\fR, \fBfmaxs\fR" 4
17136 .IX Item "fmins, fmaxs"
17137 Floating-point minimum and maximum.  These instructions are only
17138 generated if \fB\-ffinite\-math\-only\fR is specified.
17139 .IP "\fBfsqrts\fR" 4
17140 .IX Item "fsqrts"
17141 Unary square root operation.
17142 .IP "\fBfcoss\fR, \fBfsins\fR, \fBftans\fR, \fBfatans\fR, \fBfexps\fR, \fBflogs\fR" 4
17143 .IX Item "fcoss, fsins, ftans, fatans, fexps, flogs"
17144 Floating-point trigonometric and exponential functions.  These instructions
17145 are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
17146 .RE
17147 .RS 4
17148 .Sp
17149 Double-precision floating point:
17150 .IP "\fBfaddd\fR, \fBfsubd\fR, \fBfdivd\fR, \fBfmuld\fR" 4
17151 .IX Item "faddd, fsubd, fdivd, fmuld"
17152 Binary arithmetic operations.
17153 .IP "\fBfnegd\fR" 4
17154 .IX Item "fnegd"
17155 Unary negation.
17156 .IP "\fBfabsd\fR" 4
17157 .IX Item "fabsd"
17158 Unary absolute value.
17159 .IP "\fBfcmpeqd\fR, \fBfcmpged\fR, \fBfcmpgtd\fR, \fBfcmpled\fR, \fBfcmpltd\fR, \fBfcmpned\fR" 4
17160 .IX Item "fcmpeqd, fcmpged, fcmpgtd, fcmpled, fcmpltd, fcmpned"
17161 Comparison operations.
17162 .IP "\fBfmind\fR, \fBfmaxd\fR" 4
17163 .IX Item "fmind, fmaxd"
17164 Double-precision minimum and maximum.  These instructions are only
17165 generated if \fB\-ffinite\-math\-only\fR is specified.
17166 .IP "\fBfsqrtd\fR" 4
17167 .IX Item "fsqrtd"
17168 Unary square root operation.
17169 .IP "\fBfcosd\fR, \fBfsind\fR, \fBftand\fR, \fBfatand\fR, \fBfexpd\fR, \fBflogd\fR" 4
17170 .IX Item "fcosd, fsind, ftand, fatand, fexpd, flogd"
17171 Double-precision trigonometric and exponential functions.  These instructions
17172 are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
17173 .RE
17174 .RS 4
17175 .Sp
17176 Conversions:
17177 .IP "\fBfextsd\fR" 4
17178 .IX Item "fextsd"
17179 Conversion from single precision to double precision.
17180 .IP "\fBftruncds\fR" 4
17181 .IX Item "ftruncds"
17182 Conversion from double precision to single precision.
17183 .IP "\fBfixsi\fR, \fBfixsu\fR, \fBfixdi\fR, \fBfixdu\fR" 4
17184 .IX Item "fixsi, fixsu, fixdi, fixdu"
17185 Conversion from floating point to signed or unsigned integer types, with
17186 truncation towards zero.
17187 .IP "\fBround\fR" 4
17188 .IX Item "round"
17189 Conversion from single-precision floating point to signed integer,
17190 rounding to the nearest integer and ties away from zero.
17191 This corresponds to the \f(CW\*(C`_\|_builtin_lroundf\*(C'\fR function when
17192 \&\fB\-fno\-math\-errno\fR is used.
17193 .IP "\fBfloatis\fR, \fBfloatus\fR, \fBfloatid\fR, \fBfloatud\fR" 4
17194 .IX Item "floatis, floatus, floatid, floatud"
17195 Conversion from signed or unsigned integer types to floating-point types.
17196 .RE
17197 .RS 4
17198 .Sp
17199 In addition, all of the following transfer instructions for internal
17200 registers X and Y must be provided to use any of the double-precision
17201 floating-point instructions.  Custom instructions taking two
17202 double-precision source operands expect the first operand in the
17203 64\-bit register X.  The other operand (or only operand of a unary
17204 operation) is given to the custom arithmetic instruction with the
17205 least significant half in source register \fIsrc1\fR and the most
17206 significant half in \fIsrc2\fR.  A custom instruction that returns a
17207 double-precision result returns the most significant 32 bits in the
17208 destination register and the other half in 32\-bit register Y.  
17209 \&\s-1GCC\s0 automatically generates the necessary code sequences to write
17210 register X and/or read register Y when double-precision floating-point
17211 instructions are used.
17212 .IP "\fBfwrx\fR" 4
17213 .IX Item "fwrx"
17214 Write \fIsrc1\fR into the least significant half of X and \fIsrc2\fR into
17215 the most significant half of X.
17216 .IP "\fBfwry\fR" 4
17217 .IX Item "fwry"
17218 Write \fIsrc1\fR into Y.
17219 .IP "\fBfrdxhi\fR, \fBfrdxlo\fR" 4
17220 .IX Item "frdxhi, frdxlo"
17221 Read the most or least (respectively) significant half of X and store it in
17222 \&\fIdest\fR.
17223 .IP "\fBfrdy\fR" 4
17224 .IX Item "frdy"
17225 Read the value of Y and store it into \fIdest\fR.
17226 .RE
17227 .RS 4
17228 .Sp
17229 Note that you can gain more local control over generation of Nios \s-1II\s0 custom
17230 instructions by using the \f(CW\*(C`target("custom\-\f(CIinsn\f(CW=\f(CIN\f(CW")\*(C'\fR
17231 and \f(CW\*(C`target("no\-custom\-\f(CIinsn\f(CW")\*(C'\fR function attributes
17232 or pragmas.
17233 .RE
17234 .IP "\fB\-mcustom\-fpu\-cfg=\fR\fIname\fR" 4
17235 .IX Item "-mcustom-fpu-cfg=name"
17236 This option enables a predefined, named set of custom instruction encodings
17237 (see \fB\-mcustom\-\fR\fIinsn\fR above).  
17238 Currently, the following sets are defined:
17239 .Sp
17240 \&\fB\-mcustom\-fpu\-cfg=60\-1\fR is equivalent to:
17241 \&\fB\-mcustom\-fmuls=252 
17242 \&\-mcustom\-fadds=253 
17243 \&\-mcustom\-fsubs=254 
17244 \&\-fsingle\-precision\-constant\fR
17245 .Sp
17246 \&\fB\-mcustom\-fpu\-cfg=60\-2\fR is equivalent to:
17247 \&\fB\-mcustom\-fmuls=252 
17248 \&\-mcustom\-fadds=253 
17249 \&\-mcustom\-fsubs=254 
17250 \&\-mcustom\-fdivs=255 
17251 \&\-fsingle\-precision\-constant\fR
17252 .Sp
17253 \&\fB\-mcustom\-fpu\-cfg=72\-3\fR is equivalent to:
17254 \&\fB\-mcustom\-floatus=243 
17255 \&\-mcustom\-fixsi=244 
17256 \&\-mcustom\-floatis=245 
17257 \&\-mcustom\-fcmpgts=246 
17258 \&\-mcustom\-fcmples=249 
17259 \&\-mcustom\-fcmpeqs=250 
17260 \&\-mcustom\-fcmpnes=251 
17261 \&\-mcustom\-fmuls=252 
17262 \&\-mcustom\-fadds=253 
17263 \&\-mcustom\-fsubs=254 
17264 \&\-mcustom\-fdivs=255 
17265 \&\-fsingle\-precision\-constant\fR
17266 .Sp
17267 Custom instruction assignments given by individual
17268 \&\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR options override those given by
17269 \&\fB\-mcustom\-fpu\-cfg=\fR, regardless of the
17270 order of the options on the command line.
17271 .Sp
17272 Note that you can gain more local control over selection of a \s-1FPU\s0
17273 configuration by using the \f(CW\*(C`target("custom\-fpu\-cfg=\f(CIname\f(CW")\*(C'\fR
17274 function attribute
17275 or pragma.
17276 .PP
17277 These additional \fB\-m\fR options are available for the Altera Nios \s-1II
17278 ELF \s0(bare-metal) target:
17279 .IP "\fB\-mhal\fR" 4
17280 .IX Item "-mhal"
17281 Link with \s-1HAL BSP. \s0 This suppresses linking with the GCC-provided C runtime
17282 startup and termination code, and is typically used in conjunction with
17283 \&\fB\-msys\-crt0=\fR to specify the location of the alternate startup code
17284 provided by the \s-1HAL BSP.\s0
17285 .IP "\fB\-msmallc\fR" 4
17286 .IX Item "-msmallc"
17287 Link with a limited version of the C library, \fB\-lsmallc\fR, rather than
17288 Newlib.
17289 .IP "\fB\-msys\-crt0=\fR\fIstartfile\fR" 4
17290 .IX Item "-msys-crt0=startfile"
17291 \&\fIstartfile\fR is the file name of the startfile (crt0) to use 
17292 when linking.  This option is only useful in conjunction with \fB\-mhal\fR.
17293 .IP "\fB\-msys\-lib=\fR\fIsystemlib\fR" 4
17294 .IX Item "-msys-lib=systemlib"
17295 \&\fIsystemlib\fR is the library name of the library that provides
17296 low-level system calls required by the C library,
17297 e.g. \f(CW\*(C`read\*(C'\fR and \f(CW\*(C`write\*(C'\fR.
17298 This option is typically used to link with a library provided by a \s-1HAL BSP.\s0
17299 .PP
17300 \fINvidia \s-1PTX\s0 Options\fR
17301 .IX Subsection "Nvidia PTX Options"
17302 .PP
17303 These options are defined for Nvidia \s-1PTX:\s0
17304 .IP "\fB\-m32\fR" 4
17305 .IX Item "-m32"
17306 .PD 0
17307 .IP "\fB\-m64\fR" 4
17308 .IX Item "-m64"
17309 .PD
17310 Generate code for 32\-bit or 64\-bit \s-1ABI.\s0
17311 .IP "\fB\-mmainkernel\fR" 4
17312 .IX Item "-mmainkernel"
17313 Link in code for a _\|_main kernel.  This is for stand-alone instead of
17314 offloading execution.
17315 .PP
17316 \fI\s-1PDP\-11\s0 Options\fR
17317 .IX Subsection "PDP-11 Options"
17318 .PP
17319 These options are defined for the \s-1PDP\-11:\s0
17320 .IP "\fB\-mfpu\fR" 4
17321 .IX Item "-mfpu"
17322 Use hardware \s-1FPP\s0 floating point.  This is the default.  (\s-1FIS\s0 floating
17323 point on the \s-1PDP\-11/40\s0 is not supported.)
17324 .IP "\fB\-msoft\-float\fR" 4
17325 .IX Item "-msoft-float"
17326 Do not use hardware floating point.
17327 .IP "\fB\-mac0\fR" 4
17328 .IX Item "-mac0"
17329 Return floating-point results in ac0 (fr0 in Unix assembler syntax).
17330 .IP "\fB\-mno\-ac0\fR" 4
17331 .IX Item "-mno-ac0"
17332 Return floating-point results in memory.  This is the default.
17333 .IP "\fB\-m40\fR" 4
17334 .IX Item "-m40"
17335 Generate code for a \s-1PDP\-11/40.\s0
17336 .IP "\fB\-m45\fR" 4
17337 .IX Item "-m45"
17338 Generate code for a \s-1PDP\-11/45. \s0 This is the default.
17339 .IP "\fB\-m10\fR" 4
17340 .IX Item "-m10"
17341 Generate code for a \s-1PDP\-11/10.\s0
17342 .IP "\fB\-mbcopy\-builtin\fR" 4
17343 .IX Item "-mbcopy-builtin"
17344 Use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.  This is the
17345 default.
17346 .IP "\fB\-mbcopy\fR" 4
17347 .IX Item "-mbcopy"
17348 Do not use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.
17349 .IP "\fB\-mint16\fR" 4
17350 .IX Item "-mint16"
17351 .PD 0
17352 .IP "\fB\-mno\-int32\fR" 4
17353 .IX Item "-mno-int32"
17354 .PD
17355 Use 16\-bit \f(CW\*(C`int\*(C'\fR.  This is the default.
17356 .IP "\fB\-mint32\fR" 4
17357 .IX Item "-mint32"
17358 .PD 0
17359 .IP "\fB\-mno\-int16\fR" 4
17360 .IX Item "-mno-int16"
17361 .PD
17362 Use 32\-bit \f(CW\*(C`int\*(C'\fR.
17363 .IP "\fB\-mfloat64\fR" 4
17364 .IX Item "-mfloat64"
17365 .PD 0
17366 .IP "\fB\-mno\-float32\fR" 4
17367 .IX Item "-mno-float32"
17368 .PD
17369 Use 64\-bit \f(CW\*(C`float\*(C'\fR.  This is the default.
17370 .IP "\fB\-mfloat32\fR" 4
17371 .IX Item "-mfloat32"
17372 .PD 0
17373 .IP "\fB\-mno\-float64\fR" 4
17374 .IX Item "-mno-float64"
17375 .PD
17376 Use 32\-bit \f(CW\*(C`float\*(C'\fR.
17377 .IP "\fB\-mabshi\fR" 4
17378 .IX Item "-mabshi"
17379 Use \f(CW\*(C`abshi2\*(C'\fR pattern.  This is the default.
17380 .IP "\fB\-mno\-abshi\fR" 4
17381 .IX Item "-mno-abshi"
17382 Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
17383 .IP "\fB\-mbranch\-expensive\fR" 4
17384 .IX Item "-mbranch-expensive"
17385 Pretend that branches are expensive.  This is for experimenting with
17386 code generation only.
17387 .IP "\fB\-mbranch\-cheap\fR" 4
17388 .IX Item "-mbranch-cheap"
17389 Do not pretend that branches are expensive.  This is the default.
17390 .IP "\fB\-munix\-asm\fR" 4
17391 .IX Item "-munix-asm"
17392 Use Unix assembler syntax.  This is the default when configured for
17393 \&\fBpdp11\-*\-bsd\fR.
17394 .IP "\fB\-mdec\-asm\fR" 4
17395 .IX Item "-mdec-asm"
17396 Use \s-1DEC\s0 assembler syntax.  This is the default when configured for any
17397 \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
17398 .PP
17399 \fIpicoChip Options\fR
17400 .IX Subsection "picoChip Options"
17401 .PP
17402 These \fB\-m\fR options are defined for picoChip implementations:
17403 .IP "\fB\-mae=\fR\fIae_type\fR" 4
17404 .IX Item "-mae=ae_type"
17405 Set the instruction set, register set, and instruction scheduling
17406 parameters for array element type \fIae_type\fR.  Supported values
17407 for \fIae_type\fR are \fB\s-1ANY\s0\fR, \fB\s-1MUL\s0\fR, and \fB\s-1MAC\s0\fR.
17408 .Sp
17409 \&\fB\-mae=ANY\fR selects a completely generic \s-1AE\s0 type.  Code
17410 generated with this option runs on any of the other \s-1AE\s0 types.  The
17411 code is not as efficient as it would be if compiled for a specific
17412 \&\s-1AE\s0 type, and some types of operation (e.g., multiplication) do not
17413 work properly on all types of \s-1AE.\s0
17414 .Sp
17415 \&\fB\-mae=MUL\fR selects a \s-1MUL AE\s0 type.  This is the most useful \s-1AE\s0 type
17416 for compiled code, and is the default.
17417 .Sp
17418 \&\fB\-mae=MAC\fR selects a DSP-style \s-1MAC AE. \s0 Code compiled with this
17419 option may suffer from poor performance of byte (char) manipulation,
17420 since the \s-1DSP AE\s0 does not provide hardware support for byte load/stores.
17421 .IP "\fB\-msymbol\-as\-address\fR" 4
17422 .IX Item "-msymbol-as-address"
17423 Enable the compiler to directly use a symbol name as an address in a
17424 load/store instruction, without first loading it into a
17425 register.  Typically, the use of this option generates larger
17426 programs, which run faster than when the option isn't used.  However, the
17427 results vary from program to program, so it is left as a user option,
17428 rather than being permanently enabled.
17429 .IP "\fB\-mno\-inefficient\-warnings\fR" 4
17430 .IX Item "-mno-inefficient-warnings"
17431 Disables warnings about the generation of inefficient code.  These
17432 warnings can be generated, for example, when compiling code that
17433 performs byte-level memory operations on the \s-1MAC AE\s0 type.  The \s-1MAC AE\s0 has
17434 no hardware support for byte-level memory operations, so all byte
17435 load/stores must be synthesized from word load/store operations.  This is
17436 inefficient and a warning is generated to indicate
17437 that you should rewrite the code to avoid byte operations, or to target
17438 an \s-1AE\s0 type that has the necessary hardware support.  This option disables
17439 these warnings.
17440 .PP
17441 \fIPowerPC Options\fR
17442 .IX Subsection "PowerPC Options"
17443 .PP
17444 These are listed under
17445 .PP
17446 \fI\s-1RL78\s0 Options\fR
17447 .IX Subsection "RL78 Options"
17448 .IP "\fB\-msim\fR" 4
17449 .IX Item "-msim"
17450 Links in additional target libraries to support operation within a
17451 simulator.
17452 .IP "\fB\-mmul=none\fR" 4
17453 .IX Item "-mmul=none"
17454 .PD 0
17455 .IP "\fB\-mmul=g13\fR" 4
17456 .IX Item "-mmul=g13"
17457 .IP "\fB\-mmul=rl78\fR" 4
17458 .IX Item "-mmul=rl78"
17459 .PD
17460 Specifies the type of hardware multiplication support to be used.  The
17461 default is \fBnone\fR, which uses software multiplication functions.
17462 The \fBg13\fR option is for the hardware multiply/divide peripheral
17463 only on the \s-1RL78/G13\s0 targets.  The \fBrl78\fR option is for the
17464 standard hardware multiplication defined in the \s-1RL78\s0 software manual.
17465 .IP "\fB\-m64bit\-doubles\fR" 4
17466 .IX Item "-m64bit-doubles"
17467 .PD 0
17468 .IP "\fB\-m32bit\-doubles\fR" 4
17469 .IX Item "-m32bit-doubles"
17470 .PD
17471 Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
17472 or 32 bits (\fB\-m32bit\-doubles\fR) in size.  The default is
17473 \&\fB\-m32bit\-doubles\fR.
17474 .PP
17475 \fI\s-1IBM RS/6000\s0 and PowerPC Options\fR
17476 .IX Subsection "IBM RS/6000 and PowerPC Options"
17477 .PP
17478 These \fB\-m\fR options are defined for the \s-1IBM RS/6000\s0 and PowerPC:
17479 .IP "\fB\-mpowerpc\-gpopt\fR" 4
17480 .IX Item "-mpowerpc-gpopt"
17481 .PD 0
17482 .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
17483 .IX Item "-mno-powerpc-gpopt"
17484 .IP "\fB\-mpowerpc\-gfxopt\fR" 4
17485 .IX Item "-mpowerpc-gfxopt"
17486 .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
17487 .IX Item "-mno-powerpc-gfxopt"
17488 .IP "\fB\-mpowerpc64\fR" 4
17489 .IX Item "-mpowerpc64"
17490 .IP "\fB\-mno\-powerpc64\fR" 4
17491 .IX Item "-mno-powerpc64"
17492 .IP "\fB\-mmfcrf\fR" 4
17493 .IX Item "-mmfcrf"
17494 .IP "\fB\-mno\-mfcrf\fR" 4
17495 .IX Item "-mno-mfcrf"
17496 .IP "\fB\-mpopcntb\fR" 4
17497 .IX Item "-mpopcntb"
17498 .IP "\fB\-mno\-popcntb\fR" 4
17499 .IX Item "-mno-popcntb"
17500 .IP "\fB\-mpopcntd\fR" 4
17501 .IX Item "-mpopcntd"
17502 .IP "\fB\-mno\-popcntd\fR" 4
17503 .IX Item "-mno-popcntd"
17504 .IP "\fB\-mfprnd\fR" 4
17505 .IX Item "-mfprnd"
17506 .IP "\fB\-mno\-fprnd\fR" 4
17507 .IX Item "-mno-fprnd"
17508 .IP "\fB\-mcmpb\fR" 4
17509 .IX Item "-mcmpb"
17510 .IP "\fB\-mno\-cmpb\fR" 4
17511 .IX Item "-mno-cmpb"
17512 .IP "\fB\-mmfpgpr\fR" 4
17513 .IX Item "-mmfpgpr"
17514 .IP "\fB\-mno\-mfpgpr\fR" 4
17515 .IX Item "-mno-mfpgpr"
17516 .IP "\fB\-mhard\-dfp\fR" 4
17517 .IX Item "-mhard-dfp"
17518 .IP "\fB\-mno\-hard\-dfp\fR" 4
17519 .IX Item "-mno-hard-dfp"
17520 .PD
17521 You use these options to specify which instructions are available on the
17522 processor you are using.  The default value of these options is
17523 determined when configuring \s-1GCC. \s0 Specifying the
17524 \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
17525 options.  We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
17526 rather than the options listed above.
17527 .Sp
17528 Specifying \fB\-mpowerpc\-gpopt\fR allows
17529 \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
17530 General Purpose group, including floating-point square root.  Specifying
17531 \&\fB\-mpowerpc\-gfxopt\fR allows \s-1GCC\s0 to
17532 use the optional PowerPC architecture instructions in the Graphics
17533 group, including floating-point select.
17534 .Sp
17535 The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
17536 condition register field instruction implemented on the \s-1POWER4\s0
17537 processor and other processors that support the PowerPC V2.01
17538 architecture.
17539 The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
17540 double-precision \s-1FP\s0 reciprocal estimate instruction implemented on the
17541 \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
17542 architecture.
17543 The \fB\-mpopcntd\fR option allows \s-1GCC\s0 to generate the popcount
17544 instruction implemented on the \s-1POWER7\s0 processor and other processors
17545 that support the PowerPC V2.06 architecture.
17546 The \fB\-mfprnd\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 round to
17547 integer instructions implemented on the \s-1POWER5+\s0 processor and other
17548 processors that support the PowerPC V2.03 architecture.
17549 The \fB\-mcmpb\fR option allows \s-1GCC\s0 to generate the compare bytes
17550 instruction implemented on the \s-1POWER6\s0 processor and other processors
17551 that support the PowerPC V2.05 architecture.
17552 The \fB\-mmfpgpr\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 move to/from
17553 general-purpose register instructions implemented on the \s-1POWER6X\s0
17554 processor and other processors that support the extended PowerPC V2.05
17555 architecture.
17556 The \fB\-mhard\-dfp\fR option allows \s-1GCC\s0 to generate the decimal
17557 floating-point instructions implemented on some \s-1POWER\s0 processors.
17558 .Sp
17559 The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
17560 64\-bit instructions that are found in the full PowerPC64 architecture
17561 and to treat GPRs as 64\-bit, doubleword quantities.  \s-1GCC\s0 defaults to
17562 \&\fB\-mno\-powerpc64\fR.
17563 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
17564 .IX Item "-mcpu=cpu_type"
17565 Set architecture type, register usage, and
17566 instruction scheduling parameters for machine type \fIcpu_type\fR.
17567 Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
17568 \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB464\fR, \fB464fp\fR,
17569 \&\fB476\fR, \fB476fp\fR, \fB505\fR, \fB601\fR, \fB602\fR, \fB603\fR,
17570 \&\fB603e\fR, \fB604\fR, \fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR,
17571 \&\fB7400\fR, \fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
17572 \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBa2\fR, \fBe300c2\fR,
17573 \&\fBe300c3\fR, \fBe500mc\fR, \fBe500mc64\fR, \fBe5500\fR,
17574 \&\fBe6500\fR, \fBec603e\fR, \fBG3\fR, \fBG4\fR, \fBG5\fR,
17575 \&\fBtitan\fR, \fBpower3\fR, \fBpower4\fR, \fBpower5\fR, \fBpower5+\fR,
17576 \&\fBpower6\fR, \fBpower6x\fR, \fBpower7\fR, \fBpower8\fR, \fBpowerpc\fR,
17577 \&\fBpowerpc64\fR, \fBpowerpc64le\fR, and \fBrs64\fR.
17578 .Sp
17579 \&\fB\-mcpu=powerpc\fR, \fB\-mcpu=powerpc64\fR, and
17580 \&\fB\-mcpu=powerpc64le\fR specify pure 32\-bit PowerPC (either
17581 endian), 64\-bit big endian PowerPC and 64\-bit little endian PowerPC
17582 architecture machine types, with an appropriate, generic processor
17583 model assumed for scheduling purposes.
17584 .Sp
17585 The other options specify a specific processor.  Code generated under
17586 those options runs best on that processor, and may not run at all on
17587 others.
17588 .Sp
17589 The \fB\-mcpu\fR options automatically enable or disable the
17590 following options:
17591 .Sp
17592 \&\fB\-maltivec  \-mfprnd  \-mhard\-float  \-mmfcrf  \-mmultiple 
17593 \&\-mpopcntb \-mpopcntd  \-mpowerpc64 
17594 \&\-mpowerpc\-gpopt  \-mpowerpc\-gfxopt  \-msingle\-float \-mdouble\-float 
17595 \&\-msimple\-fpu \-mstring  \-mmulhw  \-mdlmzb  \-mmfpgpr \-mvsx 
17596 \&\-mcrypto \-mdirect\-move \-mpower8\-fusion \-mpower8\-vector 
17597 \&\-mquad\-memory \-mquad\-memory\-atomic\fR
17598 .Sp
17599 The particular options set for any particular \s-1CPU\s0 varies between
17600 compiler versions, depending on what setting seems to produce optimal
17601 code for that \s-1CPU\s0; it doesn't necessarily reflect the actual hardware's
17602 capabilities.  If you wish to set an individual option to a particular
17603 value, you may specify it after the \fB\-mcpu\fR option, like
17604 \&\fB\-mcpu=970 \-mno\-altivec\fR.
17605 .Sp
17606 On \s-1AIX,\s0 the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
17607 not enabled or disabled by the \fB\-mcpu\fR option at present because
17608 \&\s-1AIX\s0 does not have full support for these options.  You may still
17609 enable or disable them individually if you're sure it'll work in your
17610 environment.
17611 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
17612 .IX Item "-mtune=cpu_type"
17613 Set the instruction scheduling parameters for machine type
17614 \&\fIcpu_type\fR, but do not set the architecture type or register usage,
17615 as \fB\-mcpu=\fR\fIcpu_type\fR does.  The same
17616 values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
17617 \&\fB\-mcpu\fR.  If both are specified, the code generated uses the
17618 architecture and registers set by \fB\-mcpu\fR, but the
17619 scheduling parameters set by \fB\-mtune\fR.
17620 .IP "\fB\-mcmodel=small\fR" 4
17621 .IX Item "-mcmodel=small"
17622 Generate PowerPC64 code for the small model: The \s-1TOC\s0 is limited to
17623 64k.
17624 .IP "\fB\-mcmodel=medium\fR" 4
17625 .IX Item "-mcmodel=medium"
17626 Generate PowerPC64 code for the medium model: The \s-1TOC\s0 and other static
17627 data may be up to a total of 4G in size.
17628 .IP "\fB\-mcmodel=large\fR" 4
17629 .IX Item "-mcmodel=large"
17630 Generate PowerPC64 code for the large model: The \s-1TOC\s0 may be up to 4G
17631 in size.  Other data and code is only limited by the 64\-bit address
17632 space.
17633 .IP "\fB\-maltivec\fR" 4
17634 .IX Item "-maltivec"
17635 .PD 0
17636 .IP "\fB\-mno\-altivec\fR" 4
17637 .IX Item "-mno-altivec"
17638 .PD
17639 Generate code that uses (does not use) AltiVec instructions, and also
17640 enable the use of built-in functions that allow more direct access to
17641 the AltiVec instruction set.  You may also need to set
17642 \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
17643 enhancements.
17644 .Sp
17645 When \fB\-maltivec\fR is used, rather than \fB\-maltivec=le\fR or
17646 \&\fB\-maltivec=be\fR, the element order for Altivec intrinsics such
17647 as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and \f(CW\*(C`vec_insert\*(C'\fR 
17648 match array element order corresponding to the endianness of the
17649 target.  That is, element zero identifies the leftmost element in a
17650 vector register when targeting a big-endian platform, and identifies
17651 the rightmost element in a vector register when targeting a
17652 little-endian platform.
17653 .IP "\fB\-maltivec=be\fR" 4
17654 .IX Item "-maltivec=be"
17655 Generate Altivec instructions using big-endian element order,
17656 regardless of whether the target is big\- or little-endian.  This is
17657 the default when targeting a big-endian platform.
17658 .Sp
17659 The element order is used to interpret element numbers in Altivec
17660 intrinsics such as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and
17661 \&\f(CW\*(C`vec_insert\*(C'\fR.  By default, these match array element order
17662 corresponding to the endianness for the target.
17663 .IP "\fB\-maltivec=le\fR" 4
17664 .IX Item "-maltivec=le"
17665 Generate Altivec instructions using little-endian element order,
17666 regardless of whether the target is big\- or little-endian.  This is
17667 the default when targeting a little-endian platform.  This option is
17668 currently ignored when targeting a big-endian platform.
17669 .Sp
17670 The element order is used to interpret element numbers in Altivec
17671 intrinsics such as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and
17672 \&\f(CW\*(C`vec_insert\*(C'\fR.  By default, these match array element order
17673 corresponding to the endianness for the target.
17674 .IP "\fB\-mvrsave\fR" 4
17675 .IX Item "-mvrsave"
17676 .PD 0
17677 .IP "\fB\-mno\-vrsave\fR" 4
17678 .IX Item "-mno-vrsave"
17679 .PD
17680 Generate \s-1VRSAVE\s0 instructions when generating AltiVec code.
17681 .IP "\fB\-mgen\-cell\-microcode\fR" 4
17682 .IX Item "-mgen-cell-microcode"
17683 Generate Cell microcode instructions.
17684 .IP "\fB\-mwarn\-cell\-microcode\fR" 4
17685 .IX Item "-mwarn-cell-microcode"
17686 Warn when a Cell microcode instruction is emitted.  An example
17687 of a Cell microcode instruction is a variable shift.
17688 .IP "\fB\-msecure\-plt\fR" 4
17689 .IX Item "-msecure-plt"
17690 Generate code that allows \fBld\fR and \fBld.so\fR
17691 to build executables and shared
17692 libraries with non-executable \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR sections.
17693 This is a PowerPC
17694 32\-bit \s-1SYSV ABI\s0 option.
17695 .IP "\fB\-mbss\-plt\fR" 4
17696 .IX Item "-mbss-plt"
17697 Generate code that uses a \s-1BSS \s0\f(CW\*(C`.plt\*(C'\fR section that \fBld.so\fR
17698 fills in, and
17699 requires \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR
17700 sections that are both writable and executable.
17701 This is a PowerPC 32\-bit \s-1SYSV ABI\s0 option.
17702 .IP "\fB\-misel\fR" 4
17703 .IX Item "-misel"
17704 .PD 0
17705 .IP "\fB\-mno\-isel\fR" 4
17706 .IX Item "-mno-isel"
17707 .PD
17708 This switch enables or disables the generation of \s-1ISEL\s0 instructions.
17709 .IP "\fB\-misel=\fR\fIyes/no\fR" 4
17710 .IX Item "-misel=yes/no"
17711 This switch has been deprecated.  Use \fB\-misel\fR and
17712 \&\fB\-mno\-isel\fR instead.
17713 .IP "\fB\-mspe\fR" 4
17714 .IX Item "-mspe"
17715 .PD 0
17716 .IP "\fB\-mno\-spe\fR" 4
17717 .IX Item "-mno-spe"
17718 .PD
17719 This switch enables or disables the generation of \s-1SPE\s0 simd
17720 instructions.
17721 .IP "\fB\-mpaired\fR" 4
17722 .IX Item "-mpaired"
17723 .PD 0
17724 .IP "\fB\-mno\-paired\fR" 4
17725 .IX Item "-mno-paired"
17726 .PD
17727 This switch enables or disables the generation of \s-1PAIRED\s0 simd
17728 instructions.
17729 .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
17730 .IX Item "-mspe=yes/no"
17731 This option has been deprecated.  Use \fB\-mspe\fR and
17732 \&\fB\-mno\-spe\fR instead.
17733 .IP "\fB\-mvsx\fR" 4
17734 .IX Item "-mvsx"
17735 .PD 0
17736 .IP "\fB\-mno\-vsx\fR" 4
17737 .IX Item "-mno-vsx"
17738 .PD
17739 Generate code that uses (does not use) vector/scalar (\s-1VSX\s0)
17740 instructions, and also enable the use of built-in functions that allow
17741 more direct access to the \s-1VSX\s0 instruction set.
17742 .IP "\fB\-mcrypto\fR" 4
17743 .IX Item "-mcrypto"
17744 .PD 0
17745 .IP "\fB\-mno\-crypto\fR" 4
17746 .IX Item "-mno-crypto"
17747 .PD
17748 Enable the use (disable) of the built-in functions that allow direct
17749 access to the cryptographic instructions that were added in version
17750 2.07 of the PowerPC \s-1ISA.\s0
17751 .IP "\fB\-mdirect\-move\fR" 4
17752 .IX Item "-mdirect-move"
17753 .PD 0
17754 .IP "\fB\-mno\-direct\-move\fR" 4
17755 .IX Item "-mno-direct-move"
17756 .PD
17757 Generate code that uses (does not use) the instructions to move data
17758 between the general purpose registers and the vector/scalar (\s-1VSX\s0)
17759 registers that were added in version 2.07 of the PowerPC \s-1ISA.\s0
17760 .IP "\fB\-mpower8\-fusion\fR" 4
17761 .IX Item "-mpower8-fusion"
17762 .PD 0
17763 .IP "\fB\-mno\-power8\-fusion\fR" 4
17764 .IX Item "-mno-power8-fusion"
17765 .PD
17766 Generate code that keeps (does not keeps) some integer operations
17767 adjacent so that the instructions can be fused together on power8 and
17768 later processors.
17769 .IP "\fB\-mpower8\-vector\fR" 4
17770 .IX Item "-mpower8-vector"
17771 .PD 0
17772 .IP "\fB\-mno\-power8\-vector\fR" 4
17773 .IX Item "-mno-power8-vector"
17774 .PD
17775 Generate code that uses (does not use) the vector and scalar
17776 instructions that were added in version 2.07 of the PowerPC \s-1ISA. \s0 Also
17777 enable the use of built-in functions that allow more direct access to
17778 the vector instructions.
17779 .IP "\fB\-mquad\-memory\fR" 4
17780 .IX Item "-mquad-memory"
17781 .PD 0
17782 .IP "\fB\-mno\-quad\-memory\fR" 4
17783 .IX Item "-mno-quad-memory"
17784 .PD
17785 Generate code that uses (does not use) the non-atomic quad word memory
17786 instructions.  The \fB\-mquad\-memory\fR option requires use of
17787 64\-bit mode.
17788 .IP "\fB\-mquad\-memory\-atomic\fR" 4
17789 .IX Item "-mquad-memory-atomic"
17790 .PD 0
17791 .IP "\fB\-mno\-quad\-memory\-atomic\fR" 4
17792 .IX Item "-mno-quad-memory-atomic"
17793 .PD
17794 Generate code that uses (does not use) the atomic quad word memory
17795 instructions.  The \fB\-mquad\-memory\-atomic\fR option requires use of
17796 64\-bit mode.
17797 .IP "\fB\-mupper\-regs\-df\fR" 4
17798 .IX Item "-mupper-regs-df"
17799 .PD 0
17800 .IP "\fB\-mno\-upper\-regs\-df\fR" 4
17801 .IX Item "-mno-upper-regs-df"
17802 .PD
17803 Generate code that uses (does not use) the scalar double precision
17804 instructions that target all 64 registers in the vector/scalar
17805 floating point register set that were added in version 2.06 of the
17806 PowerPC \s-1ISA.  \s0\fB\-mupper\-regs\-df\fR is turned on by default if you
17807 use any of the \fB\-mcpu=power7\fR, \fB\-mcpu=power8\fR, or
17808 \&\fB\-mvsx\fR options.
17809 .IP "\fB\-mupper\-regs\-sf\fR" 4
17810 .IX Item "-mupper-regs-sf"
17811 .PD 0
17812 .IP "\fB\-mno\-upper\-regs\-sf\fR" 4
17813 .IX Item "-mno-upper-regs-sf"
17814 .PD
17815 Generate code that uses (does not use) the scalar single precision
17816 instructions that target all 64 registers in the vector/scalar
17817 floating point register set that were added in version 2.07 of the
17818 PowerPC \s-1ISA.  \s0\fB\-mupper\-regs\-sf\fR is turned on by default if you
17819 use either of the \fB\-mcpu=power8\fR or \fB\-mpower8\-vector\fR
17820 options.
17821 .IP "\fB\-mupper\-regs\fR" 4
17822 .IX Item "-mupper-regs"
17823 .PD 0
17824 .IP "\fB\-mno\-upper\-regs\fR" 4
17825 .IX Item "-mno-upper-regs"
17826 .PD
17827 Generate code that uses (does not use) the scalar
17828 instructions that target all 64 registers in the vector/scalar
17829 floating point register set, depending on the model of the machine.
17830 .Sp
17831 If the \fB\-mno\-upper\-regs\fR option is used, it turns off both
17832 \&\fB\-mupper\-regs\-sf\fR and \fB\-mupper\-regs\-df\fR options.
17833 .IP "\fB\-mfloat\-gprs=\fR\fIyes/single/double/no\fR" 4
17834 .IX Item "-mfloat-gprs=yes/single/double/no"
17835 .PD 0
17836 .IP "\fB\-mfloat\-gprs\fR" 4
17837 .IX Item "-mfloat-gprs"
17838 .PD
17839 This switch enables or disables the generation of floating-point
17840 operations on the general-purpose registers for architectures that
17841 support it.
17842 .Sp
17843 The argument \fByes\fR or \fBsingle\fR enables the use of
17844 single-precision floating-point operations.
17845 .Sp
17846 The argument \fBdouble\fR enables the use of single and
17847 double-precision floating-point operations.
17848 .Sp
17849 The argument \fBno\fR disables floating-point operations on the
17850 general-purpose registers.
17851 .Sp
17852 This option is currently only available on the MPC854x.
17853 .IP "\fB\-m32\fR" 4
17854 .IX Item "-m32"
17855 .PD 0
17856 .IP "\fB\-m64\fR" 4
17857 .IX Item "-m64"
17858 .PD
17859 Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
17860 targets (including GNU/Linux).  The 32\-bit environment sets int, long
17861 and pointer to 32 bits and generates code that runs on any PowerPC
17862 variant.  The 64\-bit environment sets int to 32 bits and long and
17863 pointer to 64 bits, and generates code for PowerPC64, as for
17864 \&\fB\-mpowerpc64\fR.
17865 .IP "\fB\-mfull\-toc\fR" 4
17866 .IX Item "-mfull-toc"
17867 .PD 0
17868 .IP "\fB\-mno\-fp\-in\-toc\fR" 4
17869 .IX Item "-mno-fp-in-toc"
17870 .IP "\fB\-mno\-sum\-in\-toc\fR" 4
17871 .IX Item "-mno-sum-in-toc"
17872 .IP "\fB\-mminimal\-toc\fR" 4
17873 .IX Item "-mminimal-toc"
17874 .PD
17875 Modify generation of the \s-1TOC \s0(Table Of Contents), which is created for
17876 every executable file.  The \fB\-mfull\-toc\fR option is selected by
17877 default.  In that case, \s-1GCC\s0 allocates at least one \s-1TOC\s0 entry for
17878 each unique non-automatic variable reference in your program.  \s-1GCC\s0
17879 also places floating-point constants in the \s-1TOC. \s0 However, only
17880 16,384 entries are available in the \s-1TOC.\s0
17881 .Sp
17882 If you receive a linker error message that saying you have overflowed
17883 the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
17884 with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
17885 \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
17886 constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
17887 generate code to calculate the sum of an address and a constant at
17888 run time instead of putting that sum into the \s-1TOC. \s0 You may specify one
17889 or both of these options.  Each causes \s-1GCC\s0 to produce very slightly
17890 slower and larger code at the expense of conserving \s-1TOC\s0 space.
17891 .Sp
17892 If you still run out of space in the \s-1TOC\s0 even when you specify both of
17893 these options, specify \fB\-mminimal\-toc\fR instead.  This option causes
17894 \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file.  When you specify this
17895 option, \s-1GCC\s0 produces code that is slower and larger but which
17896 uses extremely little \s-1TOC\s0 space.  You may wish to use this option
17897 only on files that contain less frequently-executed code.
17898 .IP "\fB\-maix64\fR" 4
17899 .IX Item "-maix64"
17900 .PD 0
17901 .IP "\fB\-maix32\fR" 4
17902 .IX Item "-maix32"
17903 .PD
17904 Enable 64\-bit \s-1AIX ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
17905 \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
17906 Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR,
17907 while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
17908 implies \fB\-mno\-powerpc64\fR.  \s-1GCC\s0 defaults to \fB\-maix32\fR.
17909 .IP "\fB\-mxl\-compat\fR" 4
17910 .IX Item "-mxl-compat"
17911 .PD 0
17912 .IP "\fB\-mno\-xl\-compat\fR" 4
17913 .IX Item "-mno-xl-compat"
17914 .PD
17915 Produce code that conforms more closely to \s-1IBM XL\s0 compiler semantics
17916 when using AIX-compatible \s-1ABI. \s0 Pass floating-point arguments to
17917 prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
17918 in addition to argument FPRs.  Do not assume that most significant
17919 double in 128\-bit long double value is properly rounded when comparing
17920 values and converting to double.  Use \s-1XL\s0 symbol names for long double
17921 support routines.
17922 .Sp
17923 The \s-1AIX\s0 calling convention was extended but not initially documented to
17924 handle an obscure K&R C case of calling a function that takes the
17925 address of its arguments with fewer arguments than declared.  \s-1IBM XL\s0
17926 compilers access floating-point arguments that do not fit in the
17927 \&\s-1RSA\s0 from the stack when a subroutine is compiled without
17928 optimization.  Because always storing floating-point arguments on the
17929 stack is inefficient and rarely needed, this option is not enabled by
17930 default and only is necessary when calling subroutines compiled by \s-1IBM
17931 XL\s0 compilers without optimization.
17932 .IP "\fB\-mpe\fR" 4
17933 .IX Item "-mpe"
17934 Support \fI\s-1IBM RS/6000 SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0).  Link an
17935 application written to use message passing with special startup code to
17936 enable the application to run.  The system must have \s-1PE\s0 installed in the
17937 standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
17938 must be overridden with the \fB\-specs=\fR option to specify the
17939 appropriate directory location.  The Parallel Environment does not
17940 support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
17941 option are incompatible.
17942 .IP "\fB\-malign\-natural\fR" 4
17943 .IX Item "-malign-natural"
17944 .PD 0
17945 .IP "\fB\-malign\-power\fR" 4
17946 .IX Item "-malign-power"
17947 .PD
17948 On \s-1AIX,\s0 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
17949 \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
17950 types, such as floating-point doubles, on their natural size-based boundary.
17951 The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
17952 alignment rules.  \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI.\s0
17953 .Sp
17954 On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
17955 is not supported.
17956 .IP "\fB\-msoft\-float\fR" 4
17957 .IX Item "-msoft-float"
17958 .PD 0
17959 .IP "\fB\-mhard\-float\fR" 4
17960 .IX Item "-mhard-float"
17961 .PD
17962 Generate code that does not use (uses) the floating-point register set.
17963 Software floating-point emulation is provided if you use the
17964 \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
17965 .IP "\fB\-msingle\-float\fR" 4
17966 .IX Item "-msingle-float"
17967 .PD 0
17968 .IP "\fB\-mdouble\-float\fR" 4
17969 .IX Item "-mdouble-float"
17970 .PD
17971 Generate code for single\- or double-precision floating-point operations.
17972 \&\fB\-mdouble\-float\fR implies \fB\-msingle\-float\fR.
17973 .IP "\fB\-msimple\-fpu\fR" 4
17974 .IX Item "-msimple-fpu"
17975 Do not generate \f(CW\*(C`sqrt\*(C'\fR and \f(CW\*(C`div\*(C'\fR instructions for hardware
17976 floating-point unit.
17977 .IP "\fB\-mfpu=\fR\fIname\fR" 4
17978 .IX Item "-mfpu=name"
17979 Specify type of floating-point unit.  Valid values for \fIname\fR are
17980 \&\fBsp_lite\fR (equivalent to \fB\-msingle\-float \-msimple\-fpu\fR),
17981 \&\fBdp_lite\fR (equivalent to \fB\-mdouble\-float \-msimple\-fpu\fR),
17982 \&\fBsp_full\fR (equivalent to \fB\-msingle\-float\fR),
17983 and \fBdp_full\fR (equivalent to \fB\-mdouble\-float\fR).
17984 .IP "\fB\-mxilinx\-fpu\fR" 4
17985 .IX Item "-mxilinx-fpu"
17986 Perform optimizations for the floating-point unit on Xilinx \s-1PPC 405/440.\s0
17987 .IP "\fB\-mmultiple\fR" 4
17988 .IX Item "-mmultiple"
17989 .PD 0
17990 .IP "\fB\-mno\-multiple\fR" 4
17991 .IX Item "-mno-multiple"
17992 .PD
17993 Generate code that uses (does not use) the load multiple word
17994 instructions and the store multiple word instructions.  These
17995 instructions are generated by default on \s-1POWER\s0 systems, and not
17996 generated on PowerPC systems.  Do not use \fB\-mmultiple\fR on little-endian
17997 PowerPC systems, since those instructions do not work when the
17998 processor is in little-endian mode.  The exceptions are \s-1PPC740\s0 and
17999 \&\s-1PPC750\s0 which permit these instructions in little-endian mode.
18000 .IP "\fB\-mstring\fR" 4
18001 .IX Item "-mstring"
18002 .PD 0
18003 .IP "\fB\-mno\-string\fR" 4
18004 .IX Item "-mno-string"
18005 .PD
18006 Generate code that uses (does not use) the load string instructions
18007 and the store string word instructions to save multiple registers and
18008 do small block moves.  These instructions are generated by default on
18009 \&\s-1POWER\s0 systems, and not generated on PowerPC systems.  Do not use
18010 \&\fB\-mstring\fR on little-endian PowerPC systems, since those
18011 instructions do not work when the processor is in little-endian mode.
18012 The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit these instructions
18013 in little-endian mode.
18014 .IP "\fB\-mupdate\fR" 4
18015 .IX Item "-mupdate"
18016 .PD 0
18017 .IP "\fB\-mno\-update\fR" 4
18018 .IX Item "-mno-update"
18019 .PD
18020 Generate code that uses (does not use) the load or store instructions
18021 that update the base register to the address of the calculated memory
18022 location.  These instructions are generated by default.  If you use
18023 \&\fB\-mno\-update\fR, there is a small window between the time that the
18024 stack pointer is updated and the address of the previous frame is
18025 stored, which means code that walks the stack frame across interrupts or
18026 signals may get corrupted data.
18027 .IP "\fB\-mavoid\-indexed\-addresses\fR" 4
18028 .IX Item "-mavoid-indexed-addresses"
18029 .PD 0
18030 .IP "\fB\-mno\-avoid\-indexed\-addresses\fR" 4
18031 .IX Item "-mno-avoid-indexed-addresses"
18032 .PD
18033 Generate code that tries to avoid (not avoid) the use of indexed load
18034 or store instructions. These instructions can incur a performance
18035 penalty on Power6 processors in certain situations, such as when
18036 stepping through large arrays that cross a 16M boundary.  This option
18037 is enabled by default when targeting Power6 and disabled otherwise.
18038 .IP "\fB\-mfused\-madd\fR" 4
18039 .IX Item "-mfused-madd"
18040 .PD 0
18041 .IP "\fB\-mno\-fused\-madd\fR" 4
18042 .IX Item "-mno-fused-madd"
18043 .PD
18044 Generate code that uses (does not use) the floating-point multiply and
18045 accumulate instructions.  These instructions are generated by default
18046 if hardware floating point is used.  The machine-dependent
18047 \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
18048 \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
18049 mapped to \fB\-ffp\-contract=off\fR.
18050 .IP "\fB\-mmulhw\fR" 4
18051 .IX Item "-mmulhw"
18052 .PD 0
18053 .IP "\fB\-mno\-mulhw\fR" 4
18054 .IX Item "-mno-mulhw"
18055 .PD
18056 Generate code that uses (does not use) the half-word multiply and
18057 multiply-accumulate instructions on the \s-1IBM 405, 440, 464\s0 and 476 processors.
18058 These instructions are generated by default when targeting those
18059 processors.
18060 .IP "\fB\-mdlmzb\fR" 4
18061 .IX Item "-mdlmzb"
18062 .PD 0
18063 .IP "\fB\-mno\-dlmzb\fR" 4
18064 .IX Item "-mno-dlmzb"
18065 .PD
18066 Generate code that uses (does not use) the string-search \fBdlmzb\fR
18067 instruction on the \s-1IBM 405, 440, 464\s0 and 476 processors.  This instruction is
18068 generated by default when targeting those processors.
18069 .IP "\fB\-mno\-bit\-align\fR" 4
18070 .IX Item "-mno-bit-align"
18071 .PD 0
18072 .IP "\fB\-mbit\-align\fR" 4
18073 .IX Item "-mbit-align"
18074 .PD
18075 On System V.4 and embedded PowerPC systems do not (do) force structures
18076 and unions that contain bit-fields to be aligned to the base type of the
18077 bit-field.
18078 .Sp
18079 For example, by default a structure containing nothing but 8
18080 \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 is aligned to a 4\-byte
18081 boundary and has a size of 4 bytes.  By using \fB\-mno\-bit\-align\fR,
18082 the structure is aligned to a 1\-byte boundary and is 1 byte in
18083 size.
18084 .IP "\fB\-mno\-strict\-align\fR" 4
18085 .IX Item "-mno-strict-align"
18086 .PD 0
18087 .IP "\fB\-mstrict\-align\fR" 4
18088 .IX Item "-mstrict-align"
18089 .PD
18090 On System V.4 and embedded PowerPC systems do not (do) assume that
18091 unaligned memory references are handled by the system.
18092 .IP "\fB\-mrelocatable\fR" 4
18093 .IX Item "-mrelocatable"
18094 .PD 0
18095 .IP "\fB\-mno\-relocatable\fR" 4
18096 .IX Item "-mno-relocatable"
18097 .PD
18098 Generate code that allows (does not allow) a static executable to be
18099 relocated to a different address at run time.  A simple embedded
18100 PowerPC system loader should relocate the entire contents of
18101 \&\f(CW\*(C`.got2\*(C'\fR and 4\-byte locations listed in the \f(CW\*(C`.fixup\*(C'\fR section,
18102 a table of 32\-bit addresses generated by this option.  For this to
18103 work, all objects linked together must be compiled with
18104 \&\fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
18105 \&\fB\-mrelocatable\fR code aligns the stack to an 8\-byte boundary.
18106 .IP "\fB\-mrelocatable\-lib\fR" 4
18107 .IX Item "-mrelocatable-lib"
18108 .PD 0
18109 .IP "\fB\-mno\-relocatable\-lib\fR" 4
18110 .IX Item "-mno-relocatable-lib"
18111 .PD
18112 Like \fB\-mrelocatable\fR, \fB\-mrelocatable\-lib\fR generates a
18113 \&\f(CW\*(C`.fixup\*(C'\fR section to allow static executables to be relocated at
18114 run time, but \fB\-mrelocatable\-lib\fR does not use the smaller stack
18115 alignment of \fB\-mrelocatable\fR.  Objects compiled with
18116 \&\fB\-mrelocatable\-lib\fR may be linked with objects compiled with
18117 any combination of the \fB\-mrelocatable\fR options.
18118 .IP "\fB\-mno\-toc\fR" 4
18119 .IX Item "-mno-toc"
18120 .PD 0
18121 .IP "\fB\-mtoc\fR" 4
18122 .IX Item "-mtoc"
18123 .PD
18124 On System V.4 and embedded PowerPC systems do not (do) assume that
18125 register 2 contains a pointer to a global area pointing to the addresses
18126 used in the program.
18127 .IP "\fB\-mlittle\fR" 4
18128 .IX Item "-mlittle"
18129 .PD 0
18130 .IP "\fB\-mlittle\-endian\fR" 4
18131 .IX Item "-mlittle-endian"
18132 .PD
18133 On System V.4 and embedded PowerPC systems compile code for the
18134 processor in little-endian mode.  The \fB\-mlittle\-endian\fR option is
18135 the same as \fB\-mlittle\fR.
18136 .IP "\fB\-mbig\fR" 4
18137 .IX Item "-mbig"
18138 .PD 0
18139 .IP "\fB\-mbig\-endian\fR" 4
18140 .IX Item "-mbig-endian"
18141 .PD
18142 On System V.4 and embedded PowerPC systems compile code for the
18143 processor in big-endian mode.  The \fB\-mbig\-endian\fR option is
18144 the same as \fB\-mbig\fR.
18145 .IP "\fB\-mdynamic\-no\-pic\fR" 4
18146 .IX Item "-mdynamic-no-pic"
18147 On Darwin and Mac \s-1OS X\s0 systems, compile code so that it is not
18148 relocatable, but that its external references are relocatable.  The
18149 resulting code is suitable for applications, but not shared
18150 libraries.
18151 .IP "\fB\-msingle\-pic\-base\fR" 4
18152 .IX Item "-msingle-pic-base"
18153 Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
18154 loading it in the prologue for each function.  The runtime system is
18155 responsible for initializing this register with an appropriate value
18156 before execution begins.
18157 .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
18158 .IX Item "-mprioritize-restricted-insns=priority"
18159 This option controls the priority that is assigned to
18160 dispatch-slot restricted instructions during the second scheduling
18161 pass.  The argument \fIpriority\fR takes the value \fB0\fR, \fB1\fR,
18162 or \fB2\fR to assign no, highest, or second-highest (respectively) 
18163 priority to dispatch-slot restricted
18164 instructions.
18165 .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
18166 .IX Item "-msched-costly-dep=dependence_type"
18167 This option controls which dependences are considered costly
18168 by the target during instruction scheduling.  The argument
18169 \&\fIdependence_type\fR takes one of the following values:
18170 .RS 4
18171 .IP "\fBno\fR" 4
18172 .IX Item "no"
18173 No dependence is costly.
18174 .IP "\fBall\fR" 4
18175 .IX Item "all"
18176 All dependences are costly.
18177 .IP "\fBtrue_store_to_load\fR" 4
18178 .IX Item "true_store_to_load"
18179 A true dependence from store to load is costly.
18180 .IP "\fBstore_to_load\fR" 4
18181 .IX Item "store_to_load"
18182 Any dependence from store to load is costly.
18183 .IP "\fInumber\fR" 4
18184 .IX Item "number"
18185 Any dependence for which the latency is greater than or equal to 
18186 \&\fInumber\fR is costly.
18187 .RE
18188 .RS 4
18189 .RE
18190 .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
18191 .IX Item "-minsert-sched-nops=scheme"
18192 This option controls which \s-1NOP\s0 insertion scheme is used during
18193 the second scheduling pass.  The argument \fIscheme\fR takes one of the
18194 following values:
18195 .RS 4
18196 .IP "\fBno\fR" 4
18197 .IX Item "no"
18198 Don't insert NOPs.
18199 .IP "\fBpad\fR" 4
18200 .IX Item "pad"
18201 Pad with NOPs any dispatch group that has vacant issue slots,
18202 according to the scheduler's grouping.
18203 .IP "\fBregroup_exact\fR" 4
18204 .IX Item "regroup_exact"
18205 Insert NOPs to force costly dependent insns into
18206 separate groups.  Insert exactly as many NOPs as needed to force an insn
18207 to a new group, according to the estimated processor grouping.
18208 .IP "\fInumber\fR" 4
18209 .IX Item "number"
18210 Insert NOPs to force costly dependent insns into
18211 separate groups.  Insert \fInumber\fR NOPs to force an insn to a new group.
18212 .RE
18213 .RS 4
18214 .RE
18215 .IP "\fB\-mcall\-sysv\fR" 4
18216 .IX Item "-mcall-sysv"
18217 On System V.4 and embedded PowerPC systems compile code using calling
18218 conventions that adhere to the March 1995 draft of the System V
18219 Application Binary Interface, PowerPC processor supplement.  This is the
18220 default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
18221 .IP "\fB\-mcall\-sysv\-eabi\fR" 4
18222 .IX Item "-mcall-sysv-eabi"
18223 .PD 0
18224 .IP "\fB\-mcall\-eabi\fR" 4
18225 .IX Item "-mcall-eabi"
18226 .PD
18227 Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
18228 .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
18229 .IX Item "-mcall-sysv-noeabi"
18230 Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
18231 .IP "\fB\-mcall\-aixdesc\fR" 4
18232 .IX Item "-mcall-aixdesc"
18233 On System V.4 and embedded PowerPC systems compile code for the \s-1AIX\s0
18234 operating system.
18235 .IP "\fB\-mcall\-linux\fR" 4
18236 .IX Item "-mcall-linux"
18237 On System V.4 and embedded PowerPC systems compile code for the
18238 Linux-based \s-1GNU\s0 system.
18239 .IP "\fB\-mcall\-freebsd\fR" 4
18240 .IX Item "-mcall-freebsd"
18241 On System V.4 and embedded PowerPC systems compile code for the
18242 FreeBSD operating system.
18243 .IP "\fB\-mcall\-netbsd\fR" 4
18244 .IX Item "-mcall-netbsd"
18245 On System V.4 and embedded PowerPC systems compile code for the
18246 NetBSD operating system.
18247 .IP "\fB\-mcall\-openbsd\fR" 4
18248 .IX Item "-mcall-openbsd"
18249 On System V.4 and embedded PowerPC systems compile code for the
18250 OpenBSD operating system.
18251 .IP "\fB\-maix\-struct\-return\fR" 4
18252 .IX Item "-maix-struct-return"
18253 Return all structures in memory (as specified by the \s-1AIX ABI\s0).
18254 .IP "\fB\-msvr4\-struct\-return\fR" 4
18255 .IX Item "-msvr4-struct-return"
18256 Return structures smaller than 8 bytes in registers (as specified by the
18257 \&\s-1SVR4 ABI\s0).
18258 .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
18259 .IX Item "-mabi=abi-type"
18260 Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
18261 Valid values are \fBaltivec\fR, \fBno-altivec\fR, \fBspe\fR,
18262 \&\fBno-spe\fR, \fBibmlongdouble\fR, \fBieeelongdouble\fR,
18263 \&\fBelfv1\fR, \fBelfv2\fR.
18264 .IP "\fB\-mabi=spe\fR" 4
18265 .IX Item "-mabi=spe"
18266 Extend the current \s-1ABI\s0 with \s-1SPE ABI\s0 extensions.  This does not change
18267 the default \s-1ABI,\s0 instead it adds the \s-1SPE ABI\s0 extensions to the current
18268 \&\s-1ABI.\s0
18269 .IP "\fB\-mabi=no\-spe\fR" 4
18270 .IX Item "-mabi=no-spe"
18271 Disable Book-E \s-1SPE ABI\s0 extensions for the current \s-1ABI.\s0
18272 .IP "\fB\-mabi=ibmlongdouble\fR" 4
18273 .IX Item "-mabi=ibmlongdouble"
18274 Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended-precision long double.
18275 This is a PowerPC 32\-bit \s-1SYSV ABI\s0 option.
18276 .IP "\fB\-mabi=ieeelongdouble\fR" 4
18277 .IX Item "-mabi=ieeelongdouble"
18278 Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended-precision long double.
18279 This is a PowerPC 32\-bit Linux \s-1ABI\s0 option.
18280 .IP "\fB\-mabi=elfv1\fR" 4
18281 .IX Item "-mabi=elfv1"
18282 Change the current \s-1ABI\s0 to use the ELFv1 \s-1ABI.\s0
18283 This is the default \s-1ABI\s0 for big-endian PowerPC 64\-bit Linux.
18284 Overriding the default \s-1ABI\s0 requires special system support and is
18285 likely to fail in spectacular ways.
18286 .IP "\fB\-mabi=elfv2\fR" 4
18287 .IX Item "-mabi=elfv2"
18288 Change the current \s-1ABI\s0 to use the ELFv2 \s-1ABI.\s0
18289 This is the default \s-1ABI\s0 for little-endian PowerPC 64\-bit Linux.
18290 Overriding the default \s-1ABI\s0 requires special system support and is
18291 likely to fail in spectacular ways.
18292 .IP "\fB\-mprototype\fR" 4
18293 .IX Item "-mprototype"
18294 .PD 0
18295 .IP "\fB\-mno\-prototype\fR" 4
18296 .IX Item "-mno-prototype"
18297 .PD
18298 On System V.4 and embedded PowerPC systems assume that all calls to
18299 variable argument functions are properly prototyped.  Otherwise, the
18300 compiler must insert an instruction before every non-prototyped call to
18301 set or clear bit 6 of the condition code register (\f(CW\*(C`CR\*(C'\fR) to
18302 indicate whether floating-point values are passed in the floating-point
18303 registers in case the function takes variable arguments.  With
18304 \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
18305 set or clear the bit.
18306 .IP "\fB\-msim\fR" 4
18307 .IX Item "-msim"
18308 On embedded PowerPC systems, assume that the startup module is called
18309 \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
18310 \&\fIlibc.a\fR.  This is the default for \fBpowerpc\-*\-eabisim\fR
18311 configurations.
18312 .IP "\fB\-mmvme\fR" 4
18313 .IX Item "-mmvme"
18314 On embedded PowerPC systems, assume that the startup module is called
18315 \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
18316 \&\fIlibc.a\fR.
18317 .IP "\fB\-mads\fR" 4
18318 .IX Item "-mads"
18319 On embedded PowerPC systems, assume that the startup module is called
18320 \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
18321 \&\fIlibc.a\fR.
18322 .IP "\fB\-myellowknife\fR" 4
18323 .IX Item "-myellowknife"
18324 On embedded PowerPC systems, assume that the startup module is called
18325 \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
18326 \&\fIlibc.a\fR.
18327 .IP "\fB\-mvxworks\fR" 4
18328 .IX Item "-mvxworks"
18329 On System V.4 and embedded PowerPC systems, specify that you are
18330 compiling for a VxWorks system.
18331 .IP "\fB\-memb\fR" 4
18332 .IX Item "-memb"
18333 On embedded PowerPC systems, set the \f(CW\*(C`PPC_EMB\*(C'\fR bit in the \s-1ELF\s0 flags
18334 header to indicate that \fBeabi\fR extended relocations are used.
18335 .IP "\fB\-meabi\fR" 4
18336 .IX Item "-meabi"
18337 .PD 0
18338 .IP "\fB\-mno\-eabi\fR" 4
18339 .IX Item "-mno-eabi"
18340 .PD
18341 On System V.4 and embedded PowerPC systems do (do not) adhere to the
18342 Embedded Applications Binary Interface (\s-1EABI\s0), which is a set of
18343 modifications to the System V.4 specifications.  Selecting \fB\-meabi\fR
18344 means that the stack is aligned to an 8\-byte boundary, a function
18345 \&\f(CW\*(C`_\|_eabi\*(C'\fR is called from \f(CW\*(C`main\*(C'\fR to set up the \s-1EABI\s0
18346 environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
18347 \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas.  Selecting
18348 \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16\-byte boundary,
18349 no \s-1EABI\s0 initialization function is called from \f(CW\*(C`main\*(C'\fR, and the
18350 \&\fB\-msdata\fR option only uses \f(CW\*(C`r13\*(C'\fR to point to a single
18351 small data area.  The \fB\-meabi\fR option is on by default if you
18352 configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
18353 .IP "\fB\-msdata=eabi\fR" 4
18354 .IX Item "-msdata=eabi"
18355 On System V.4 and embedded PowerPC systems, put small initialized
18356 \&\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata2\*(C'\fR section, which
18357 is pointed to by register \f(CW\*(C`r2\*(C'\fR.  Put small initialized
18358 non\-\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata\*(C'\fR section,
18359 which is pointed to by register \f(CW\*(C`r13\*(C'\fR.  Put small uninitialized
18360 global and static data in the \f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to
18361 the \f(CW\*(C`.sdata\*(C'\fR section.  The \fB\-msdata=eabi\fR option is
18362 incompatible with the \fB\-mrelocatable\fR option.  The
18363 \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
18364 .IP "\fB\-msdata=sysv\fR" 4
18365 .IX Item "-msdata=sysv"
18366 On System V.4 and embedded PowerPC systems, put small global and static
18367 data in the \f(CW\*(C`.sdata\*(C'\fR section, which is pointed to by register
18368 \&\f(CW\*(C`r13\*(C'\fR.  Put small uninitialized global and static data in the
18369 \&\f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to the \f(CW\*(C`.sdata\*(C'\fR section.
18370 The \fB\-msdata=sysv\fR option is incompatible with the
18371 \&\fB\-mrelocatable\fR option.
18372 .IP "\fB\-msdata=default\fR" 4
18373 .IX Item "-msdata=default"
18374 .PD 0
18375 .IP "\fB\-msdata\fR" 4
18376 .IX Item "-msdata"
18377 .PD
18378 On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
18379 compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
18380 same as \fB\-msdata=sysv\fR.
18381 .IP "\fB\-msdata=data\fR" 4
18382 .IX Item "-msdata=data"
18383 On System V.4 and embedded PowerPC systems, put small global
18384 data in the \f(CW\*(C`.sdata\*(C'\fR section.  Put small uninitialized global
18385 data in the \f(CW\*(C`.sbss\*(C'\fR section.  Do not use register \f(CW\*(C`r13\*(C'\fR
18386 to address small data however.  This is the default behavior unless
18387 other \fB\-msdata\fR options are used.
18388 .IP "\fB\-msdata=none\fR" 4
18389 .IX Item "-msdata=none"
18390 .PD 0
18391 .IP "\fB\-mno\-sdata\fR" 4
18392 .IX Item "-mno-sdata"
18393 .PD
18394 On embedded PowerPC systems, put all initialized global and static data
18395 in the \f(CW\*(C`.data\*(C'\fR section, and all uninitialized data in the
18396 \&\f(CW\*(C`.bss\*(C'\fR section.
18397 .IP "\fB\-mblock\-move\-inline\-limit=\fR\fInum\fR" 4
18398 .IX Item "-mblock-move-inline-limit=num"
18399 Inline all block moves (such as calls to \f(CW\*(C`memcpy\*(C'\fR or structure
18400 copies) less than or equal to \fInum\fR bytes.  The minimum value for
18401 \&\fInum\fR is 32 bytes on 32\-bit targets and 64 bytes on 64\-bit
18402 targets.  The default value is target-specific.
18403 .IP "\fB\-G\fR \fInum\fR" 4
18404 .IX Item "-G num"
18405 On embedded PowerPC systems, put global and static items less than or
18406 equal to \fInum\fR bytes into the small data or \s-1BSS\s0 sections instead of
18407 the normal data or \s-1BSS\s0 section.  By default, \fInum\fR is 8.  The
18408 \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
18409 All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
18410 .IP "\fB\-mregnames\fR" 4
18411 .IX Item "-mregnames"
18412 .PD 0
18413 .IP "\fB\-mno\-regnames\fR" 4
18414 .IX Item "-mno-regnames"
18415 .PD
18416 On System V.4 and embedded PowerPC systems do (do not) emit register
18417 names in the assembly language output using symbolic forms.
18418 .IP "\fB\-mlongcall\fR" 4
18419 .IX Item "-mlongcall"
18420 .PD 0
18421 .IP "\fB\-mno\-longcall\fR" 4
18422 .IX Item "-mno-longcall"
18423 .PD
18424 By default assume that all calls are far away so that a longer and more
18425 expensive calling sequence is required.  This is required for calls
18426 farther than 32 megabytes (33,554,432 bytes) from the current location.
18427 A short call is generated if the compiler knows
18428 the call cannot be that far away.  This setting can be overridden by
18429 the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
18430 longcall(0)\*(C'\fR.
18431 .Sp
18432 Some linkers are capable of detecting out-of-range calls and generating
18433 glue code on the fly.  On these systems, long calls are unnecessary and
18434 generate slower code.  As of this writing, the \s-1AIX\s0 linker can do this,
18435 as can the \s-1GNU\s0 linker for PowerPC/64.  It is planned to add this feature
18436 to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
18437 .Sp
18438 On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR generates \f(CW\*(C`jbsr
18439 callee, L42\*(C'\fR, plus a \fIbranch island\fR (glue code).  The two target
18440 addresses represent the callee and the branch island.  The
18441 Darwin/PPC linker prefers the first address and generates a \f(CW\*(C`bl
18442 callee\*(C'\fR if the \s-1PPC \s0\f(CW\*(C`bl\*(C'\fR instruction reaches the callee directly;
18443 otherwise, the linker generates \f(CW\*(C`bl L42\*(C'\fR to call the branch
18444 island.  The branch island is appended to the body of the
18445 calling function; it computes the full 32\-bit address of the callee
18446 and jumps to it.
18447 .Sp
18448 On Mach-O (Darwin) systems, this option directs the compiler emit to
18449 the glue for every direct call, and the Darwin linker decides whether
18450 to use or discard it.
18451 .Sp
18452 In the future, \s-1GCC\s0 may ignore all longcall specifications
18453 when the linker is known to generate glue.
18454 .IP "\fB\-mtls\-markers\fR" 4
18455 .IX Item "-mtls-markers"
18456 .PD 0
18457 .IP "\fB\-mno\-tls\-markers\fR" 4
18458 .IX Item "-mno-tls-markers"
18459 .PD
18460 Mark (do not mark) calls to \f(CW\*(C`_\|_tls_get_addr\*(C'\fR with a relocation
18461 specifying the function argument.  The relocation allows the linker to
18462 reliably associate function call with argument setup instructions for
18463 \&\s-1TLS\s0 optimization, which in turn allows \s-1GCC\s0 to better schedule the
18464 sequence.
18465 .IP "\fB\-pthread\fR" 4
18466 .IX Item "-pthread"
18467 Adds support for multithreading with the \fIpthreads\fR library.
18468 This option sets flags for both the preprocessor and linker.
18469 .IP "\fB\-mrecip\fR" 4
18470 .IX Item "-mrecip"
18471 .PD 0
18472 .IP "\fB\-mno\-recip\fR" 4
18473 .IX Item "-mno-recip"
18474 .PD
18475 This option enables use of the reciprocal estimate and
18476 reciprocal square root estimate instructions with additional
18477 Newton-Raphson steps to increase precision instead of doing a divide or
18478 square root and divide for floating-point arguments.  You should use
18479 the \fB\-ffast\-math\fR option when using \fB\-mrecip\fR (or at
18480 least \fB\-funsafe\-math\-optimizations\fR,
18481 \&\fB\-finite\-math\-only\fR, \fB\-freciprocal\-math\fR and
18482 \&\fB\-fno\-trapping\-math\fR).  Note that while the throughput of the
18483 sequence is generally higher than the throughput of the non-reciprocal
18484 instruction, the precision of the sequence can be decreased by up to 2
18485 ulp (i.e. the inverse of 1.0 equals 0.99999994) for reciprocal square
18486 roots.
18487 .IP "\fB\-mrecip=\fR\fIopt\fR" 4
18488 .IX Item "-mrecip=opt"
18489 This option controls which reciprocal estimate instructions
18490 may be used.  \fIopt\fR is a comma-separated list of options, which may
18491 be preceded by a \f(CW\*(C`!\*(C'\fR to invert the option:
18492 .RS 4
18493 .IP "\fBall\fR" 4
18494 .IX Item "all"
18495 Enable all estimate instructions.
18496 .IP "\fBdefault\fR" 4
18497 .IX Item "default"
18498 Enable the default instructions, equivalent to \fB\-mrecip\fR.
18499 .IP "\fBnone\fR" 4
18500 .IX Item "none"
18501 Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
18502 .IP "\fBdiv\fR" 4
18503 .IX Item "div"
18504 Enable the reciprocal approximation instructions for both 
18505 single and double precision.
18506 .IP "\fBdivf\fR" 4
18507 .IX Item "divf"
18508 Enable the single-precision reciprocal approximation instructions.
18509 .IP "\fBdivd\fR" 4
18510 .IX Item "divd"
18511 Enable the double-precision reciprocal approximation instructions.
18512 .IP "\fBrsqrt\fR" 4
18513 .IX Item "rsqrt"
18514 Enable the reciprocal square root approximation instructions for both
18515 single and double precision.
18516 .IP "\fBrsqrtf\fR" 4
18517 .IX Item "rsqrtf"
18518 Enable the single-precision reciprocal square root approximation instructions.
18519 .IP "\fBrsqrtd\fR" 4
18520 .IX Item "rsqrtd"
18521 Enable the double-precision reciprocal square root approximation instructions.
18522 .RE
18523 .RS 4
18524 .Sp
18525 So, for example, \fB\-mrecip=all,!rsqrtd\fR enables
18526 all of the reciprocal estimate instructions, except for the
18527 \&\f(CW\*(C`FRSQRTE\*(C'\fR, \f(CW\*(C`XSRSQRTEDP\*(C'\fR, and \f(CW\*(C`XVRSQRTEDP\*(C'\fR instructions
18528 which handle the double-precision reciprocal square root calculations.
18529 .RE
18530 .IP "\fB\-mrecip\-precision\fR" 4
18531 .IX Item "-mrecip-precision"
18532 .PD 0
18533 .IP "\fB\-mno\-recip\-precision\fR" 4
18534 .IX Item "-mno-recip-precision"
18535 .PD
18536 Assume (do not assume) that the reciprocal estimate instructions
18537 provide higher-precision estimates than is mandated by the PowerPC
18538 \&\s-1ABI. \s0 Selecting \fB\-mcpu=power6\fR, \fB\-mcpu=power7\fR or
18539 \&\fB\-mcpu=power8\fR automatically selects \fB\-mrecip\-precision\fR.
18540 The double-precision square root estimate instructions are not generated by
18541 default on low-precision machines, since they do not provide an
18542 estimate that converges after three steps.
18543 .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
18544 .IX Item "-mveclibabi=type"
18545 Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
18546 external library.  The only type supported at present is \fBmass\fR,
18547 which specifies to use \s-1IBM\s0's Mathematical Acceleration Subsystem
18548 (\s-1MASS\s0) libraries for vectorizing intrinsics using external libraries.
18549 \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`acosd2\*(C'\fR, \f(CW\*(C`acosf4\*(C'\fR,
18550 \&\f(CW\*(C`acoshd2\*(C'\fR, \f(CW\*(C`acoshf4\*(C'\fR, \f(CW\*(C`asind2\*(C'\fR, \f(CW\*(C`asinf4\*(C'\fR,
18551 \&\f(CW\*(C`asinhd2\*(C'\fR, \f(CW\*(C`asinhf4\*(C'\fR, \f(CW\*(C`atan2d2\*(C'\fR, \f(CW\*(C`atan2f4\*(C'\fR,
18552 \&\f(CW\*(C`atand2\*(C'\fR, \f(CW\*(C`atanf4\*(C'\fR, \f(CW\*(C`atanhd2\*(C'\fR, \f(CW\*(C`atanhf4\*(C'\fR,
18553 \&\f(CW\*(C`cbrtd2\*(C'\fR, \f(CW\*(C`cbrtf4\*(C'\fR, \f(CW\*(C`cosd2\*(C'\fR, \f(CW\*(C`cosf4\*(C'\fR,
18554 \&\f(CW\*(C`coshd2\*(C'\fR, \f(CW\*(C`coshf4\*(C'\fR, \f(CW\*(C`erfcd2\*(C'\fR, \f(CW\*(C`erfcf4\*(C'\fR,
18555 \&\f(CW\*(C`erfd2\*(C'\fR, \f(CW\*(C`erff4\*(C'\fR, \f(CW\*(C`exp2d2\*(C'\fR, \f(CW\*(C`exp2f4\*(C'\fR,
18556 \&\f(CW\*(C`expd2\*(C'\fR, \f(CW\*(C`expf4\*(C'\fR, \f(CW\*(C`expm1d2\*(C'\fR, \f(CW\*(C`expm1f4\*(C'\fR,
18557 \&\f(CW\*(C`hypotd2\*(C'\fR, \f(CW\*(C`hypotf4\*(C'\fR, \f(CW\*(C`lgammad2\*(C'\fR, \f(CW\*(C`lgammaf4\*(C'\fR,
18558 \&\f(CW\*(C`log10d2\*(C'\fR, \f(CW\*(C`log10f4\*(C'\fR, \f(CW\*(C`log1pd2\*(C'\fR, \f(CW\*(C`log1pf4\*(C'\fR,
18559 \&\f(CW\*(C`log2d2\*(C'\fR, \f(CW\*(C`log2f4\*(C'\fR, \f(CW\*(C`logd2\*(C'\fR, \f(CW\*(C`logf4\*(C'\fR,
18560 \&\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,
18561 \&\f(CW\*(C`sinhf4\*(C'\fR, \f(CW\*(C`sqrtd2\*(C'\fR, \f(CW\*(C`sqrtf4\*(C'\fR, \f(CW\*(C`tand2\*(C'\fR,
18562 \&\f(CW\*(C`tanf4\*(C'\fR, \f(CW\*(C`tanhd2\*(C'\fR, and \f(CW\*(C`tanhf4\*(C'\fR when generating code
18563 for power7.  Both \fB\-ftree\-vectorize\fR and
18564 \&\fB\-funsafe\-math\-optimizations\fR must also be enabled.  The \s-1MASS\s0
18565 libraries must be specified at link time.
18566 .IP "\fB\-mfriz\fR" 4
18567 .IX Item "-mfriz"
18568 .PD 0
18569 .IP "\fB\-mno\-friz\fR" 4
18570 .IX Item "-mno-friz"
18571 .PD
18572 Generate (do not generate) the \f(CW\*(C`friz\*(C'\fR instruction when the
18573 \&\fB\-funsafe\-math\-optimizations\fR option is used to optimize
18574 rounding of floating-point values to 64\-bit integer and back to floating
18575 point.  The \f(CW\*(C`friz\*(C'\fR instruction does not return the same value if
18576 the floating-point number is too large to fit in an integer.
18577 .IP "\fB\-mpointers\-to\-nested\-functions\fR" 4
18578 .IX Item "-mpointers-to-nested-functions"
18579 .PD 0
18580 .IP "\fB\-mno\-pointers\-to\-nested\-functions\fR" 4
18581 .IX Item "-mno-pointers-to-nested-functions"
18582 .PD
18583 Generate (do not generate) code to load up the static chain register
18584 (\f(CW\*(C`r11\*(C'\fR) when calling through a pointer on \s-1AIX\s0 and 64\-bit Linux
18585 systems where a function pointer points to a 3\-word descriptor giving
18586 the function address, \s-1TOC\s0 value to be loaded in register \f(CW\*(C`r2\*(C'\fR, and
18587 static chain value to be loaded in register \f(CW\*(C`r11\*(C'\fR.  The
18588 \&\fB\-mpointers\-to\-nested\-functions\fR is on by default.  You cannot
18589 call through pointers to nested functions or pointers
18590 to functions compiled in other languages that use the static chain if
18591 you use \fB\-mno\-pointers\-to\-nested\-functions\fR.
18592 .IP "\fB\-msave\-toc\-indirect\fR" 4
18593 .IX Item "-msave-toc-indirect"
18594 .PD 0
18595 .IP "\fB\-mno\-save\-toc\-indirect\fR" 4
18596 .IX Item "-mno-save-toc-indirect"
18597 .PD
18598 Generate (do not generate) code to save the \s-1TOC\s0 value in the reserved
18599 stack location in the function prologue if the function calls through
18600 a pointer on \s-1AIX\s0 and 64\-bit Linux systems.  If the \s-1TOC\s0 value is not
18601 saved in the prologue, it is saved just before the call through the
18602 pointer.  The \fB\-mno\-save\-toc\-indirect\fR option is the default.
18603 .IP "\fB\-mcompat\-align\-parm\fR" 4
18604 .IX Item "-mcompat-align-parm"
18605 .PD 0
18606 .IP "\fB\-mno\-compat\-align\-parm\fR" 4
18607 .IX Item "-mno-compat-align-parm"
18608 .PD
18609 Generate (do not generate) code to pass structure parameters with a
18610 maximum alignment of 64 bits, for compatibility with older versions
18611 of \s-1GCC.\s0
18612 .Sp
18613 Older versions of \s-1GCC \s0(prior to 4.9.0) incorrectly did not align a
18614 structure parameter on a 128\-bit boundary when that structure contained
18615 a member requiring 128\-bit alignment.  This is corrected in more
18616 recent versions of \s-1GCC. \s0 This option may be used to generate code
18617 that is compatible with functions compiled with older versions of
18618 \&\s-1GCC.\s0
18619 .Sp
18620 The \fB\-mno\-compat\-align\-parm\fR option is the default.
18621 .PP
18622 \fI\s-1RX\s0 Options\fR
18623 .IX Subsection "RX Options"
18624 .PP
18625 These command-line options are defined for \s-1RX\s0 targets:
18626 .IP "\fB\-m64bit\-doubles\fR" 4
18627 .IX Item "-m64bit-doubles"
18628 .PD 0
18629 .IP "\fB\-m32bit\-doubles\fR" 4
18630 .IX Item "-m32bit-doubles"
18631 .PD
18632 Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
18633 or 32 bits (\fB\-m32bit\-doubles\fR) in size.  The default is
18634 \&\fB\-m32bit\-doubles\fR.  \fINote\fR \s-1RX\s0 floating-point hardware only
18635 works on 32\-bit values, which is why the default is
18636 \&\fB\-m32bit\-doubles\fR.
18637 .IP "\fB\-fpu\fR" 4
18638 .IX Item "-fpu"
18639 .PD 0
18640 .IP "\fB\-nofpu\fR" 4
18641 .IX Item "-nofpu"
18642 .PD
18643 Enables (\fB\-fpu\fR) or disables (\fB\-nofpu\fR) the use of \s-1RX\s0
18644 floating-point hardware.  The default is enabled for the \s-1RX600\s0
18645 series and disabled for the \s-1RX200\s0 series.
18646 .Sp
18647 Floating-point instructions are only generated for 32\-bit floating-point 
18648 values, however, so the \s-1FPU\s0 hardware is not used for doubles if the
18649 \&\fB\-m64bit\-doubles\fR option is used.
18650 .Sp
18651 \&\fINote\fR If the \fB\-fpu\fR option is enabled then
18652 \&\fB\-funsafe\-math\-optimizations\fR is also enabled automatically.
18653 This is because the \s-1RX FPU\s0 instructions are themselves unsafe.
18654 .IP "\fB\-mcpu=\fR\fIname\fR" 4
18655 .IX Item "-mcpu=name"
18656 Selects the type of \s-1RX CPU\s0 to be targeted.  Currently three types are
18657 supported, the generic \fB\s-1RX600\s0\fR and \fB\s-1RX200\s0\fR series hardware and
18658 the specific \fB\s-1RX610\s0\fR \s-1CPU. \s0 The default is \fB\s-1RX600\s0\fR.
18659 .Sp
18660 The only difference between \fB\s-1RX600\s0\fR and \fB\s-1RX610\s0\fR is that the
18661 \&\fB\s-1RX610\s0\fR does not support the \f(CW\*(C`MVTIPL\*(C'\fR instruction.
18662 .Sp
18663 The \fB\s-1RX200\s0\fR series does not have a hardware floating-point unit
18664 and so \fB\-nofpu\fR is enabled by default when this type is
18665 selected.
18666 .IP "\fB\-mbig\-endian\-data\fR" 4
18667 .IX Item "-mbig-endian-data"
18668 .PD 0
18669 .IP "\fB\-mlittle\-endian\-data\fR" 4
18670 .IX Item "-mlittle-endian-data"
18671 .PD
18672 Store data (but not code) in the big-endian format.  The default is
18673 \&\fB\-mlittle\-endian\-data\fR, i.e. to store data in the little-endian
18674 format.
18675 .IP "\fB\-msmall\-data\-limit=\fR\fIN\fR" 4
18676 .IX Item "-msmall-data-limit=N"
18677 Specifies the maximum size in bytes of global and static variables
18678 which can be placed into the small data area.  Using the small data
18679 area can lead to smaller and faster code, but the size of area is
18680 limited and it is up to the programmer to ensure that the area does
18681 not overflow.  Also when the small data area is used one of the \s-1RX\s0's
18682 registers (usually \f(CW\*(C`r13\*(C'\fR) is reserved for use pointing to this
18683 area, so it is no longer available for use by the compiler.  This
18684 could result in slower and/or larger code if variables are pushed onto
18685 the stack instead of being held in this register.
18686 .Sp
18687 Note, common variables (variables that have not been initialized) and
18688 constants are not placed into the small data area as they are assigned
18689 to other sections in the output executable.
18690 .Sp
18691 The default value is zero, which disables this feature.  Note, this
18692 feature is not enabled by default with higher optimization levels
18693 (\fB\-O2\fR etc) because of the potentially detrimental effects of
18694 reserving a register.  It is up to the programmer to experiment and
18695 discover whether this feature is of benefit to their program.  See the
18696 description of the \fB\-mpid\fR option for a description of how the
18697 actual register to hold the small data area pointer is chosen.
18698 .IP "\fB\-msim\fR" 4
18699 .IX Item "-msim"
18700 .PD 0
18701 .IP "\fB\-mno\-sim\fR" 4
18702 .IX Item "-mno-sim"
18703 .PD
18704 Use the simulator runtime.  The default is to use the libgloss
18705 board-specific runtime.
18706 .IP "\fB\-mas100\-syntax\fR" 4
18707 .IX Item "-mas100-syntax"
18708 .PD 0
18709 .IP "\fB\-mno\-as100\-syntax\fR" 4
18710 .IX Item "-mno-as100-syntax"
18711 .PD
18712 When generating assembler output use a syntax that is compatible with
18713 Renesas's \s-1AS100\s0 assembler.  This syntax can also be handled by the \s-1GAS\s0
18714 assembler, but it has some restrictions so it is not generated by default.
18715 .IP "\fB\-mmax\-constant\-size=\fR\fIN\fR" 4
18716 .IX Item "-mmax-constant-size=N"
18717 Specifies the maximum size, in bytes, of a constant that can be used as
18718 an operand in a \s-1RX\s0 instruction.  Although the \s-1RX\s0 instruction set does
18719 allow constants of up to 4 bytes in length to be used in instructions,
18720 a longer value equates to a longer instruction.  Thus in some
18721 circumstances it can be beneficial to restrict the size of constants
18722 that are used in instructions.  Constants that are too big are instead
18723 placed into a constant pool and referenced via register indirection.
18724 .Sp
18725 The value \fIN\fR can be between 0 and 4.  A value of 0 (the default)
18726 or 4 means that constants of any size are allowed.
18727 .IP "\fB\-mrelax\fR" 4
18728 .IX Item "-mrelax"
18729 Enable linker relaxation.  Linker relaxation is a process whereby the
18730 linker attempts to reduce the size of a program by finding shorter
18731 versions of various instructions.  Disabled by default.
18732 .IP "\fB\-mint\-register=\fR\fIN\fR" 4
18733 .IX Item "-mint-register=N"
18734 Specify the number of registers to reserve for fast interrupt handler
18735 functions.  The value \fIN\fR can be between 0 and 4.  A value of 1
18736 means that register \f(CW\*(C`r13\*(C'\fR is reserved for the exclusive use
18737 of fast interrupt handlers.  A value of 2 reserves \f(CW\*(C`r13\*(C'\fR and
18738 \&\f(CW\*(C`r12\*(C'\fR.  A value of 3 reserves \f(CW\*(C`r13\*(C'\fR, \f(CW\*(C`r12\*(C'\fR and
18739 \&\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.
18740 A value of 0, the default, does not reserve any registers.
18741 .IP "\fB\-msave\-acc\-in\-interrupts\fR" 4
18742 .IX Item "-msave-acc-in-interrupts"
18743 Specifies that interrupt handler functions should preserve the
18744 accumulator register.  This is only necessary if normal code might use
18745 the accumulator register, for example because it performs 64\-bit
18746 multiplications.  The default is to ignore the accumulator as this
18747 makes the interrupt handlers faster.
18748 .IP "\fB\-mpid\fR" 4
18749 .IX Item "-mpid"
18750 .PD 0
18751 .IP "\fB\-mno\-pid\fR" 4
18752 .IX Item "-mno-pid"
18753 .PD
18754 Enables the generation of position independent data.  When enabled any
18755 access to constant data is done via an offset from a base address
18756 held in a register.  This allows the location of constant data to be
18757 determined at run time without requiring the executable to be
18758 relocated, which is a benefit to embedded applications with tight
18759 memory constraints.  Data that can be modified is not affected by this
18760 option.
18761 .Sp
18762 Note, using this feature reserves a register, usually \f(CW\*(C`r13\*(C'\fR, for
18763 the constant data base address.  This can result in slower and/or
18764 larger code, especially in complicated functions.
18765 .Sp
18766 The actual register chosen to hold the constant data base address
18767 depends upon whether the \fB\-msmall\-data\-limit\fR and/or the
18768 \&\fB\-mint\-register\fR command-line options are enabled.  Starting
18769 with register \f(CW\*(C`r13\*(C'\fR and proceeding downwards, registers are
18770 allocated first to satisfy the requirements of \fB\-mint\-register\fR,
18771 then \fB\-mpid\fR and finally \fB\-msmall\-data\-limit\fR.  Thus it
18772 is possible for the small data area register to be \f(CW\*(C`r8\*(C'\fR if both
18773 \&\fB\-mint\-register=4\fR and \fB\-mpid\fR are specified on the
18774 command line.
18775 .Sp
18776 By default this feature is not enabled.  The default can be restored
18777 via the \fB\-mno\-pid\fR command-line option.
18778 .IP "\fB\-mno\-warn\-multiple\-fast\-interrupts\fR" 4
18779 .IX Item "-mno-warn-multiple-fast-interrupts"
18780 .PD 0
18781 .IP "\fB\-mwarn\-multiple\-fast\-interrupts\fR" 4
18782 .IX Item "-mwarn-multiple-fast-interrupts"
18783 .PD
18784 Prevents \s-1GCC\s0 from issuing a warning message if it finds more than one
18785 fast interrupt handler when it is compiling a file.  The default is to
18786 issue a warning for each extra fast interrupt handler found, as the \s-1RX\s0
18787 only supports one such interrupt.
18788 .PP
18789 \&\fINote:\fR The generic \s-1GCC\s0 command-line option \fB\-ffixed\-\fR\fIreg\fR
18790 has special significance to the \s-1RX\s0 port when used with the
18791 \&\f(CW\*(C`interrupt\*(C'\fR function attribute.  This attribute indicates a
18792 function intended to process fast interrupts.  \s-1GCC\s0 ensures
18793 that it only uses the registers \f(CW\*(C`r10\*(C'\fR, \f(CW\*(C`r11\*(C'\fR, \f(CW\*(C`r12\*(C'\fR
18794 and/or \f(CW\*(C`r13\*(C'\fR and only provided that the normal use of the
18795 corresponding registers have been restricted via the
18796 \&\fB\-ffixed\-\fR\fIreg\fR or \fB\-mint\-register\fR command-line
18797 options.
18798 .PP
18799 \fIS/390 and zSeries Options\fR
18800 .IX Subsection "S/390 and zSeries Options"
18801 .PP
18802 These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
18803 .IP "\fB\-mhard\-float\fR" 4
18804 .IX Item "-mhard-float"
18805 .PD 0
18806 .IP "\fB\-msoft\-float\fR" 4
18807 .IX Item "-msoft-float"
18808 .PD
18809 Use (do not use) the hardware floating-point instructions and registers
18810 for floating-point operations.  When \fB\-msoft\-float\fR is specified,
18811 functions in \fIlibgcc.a\fR are used to perform floating-point
18812 operations.  When \fB\-mhard\-float\fR is specified, the compiler
18813 generates \s-1IEEE\s0 floating-point instructions.  This is the default.
18814 .IP "\fB\-mhard\-dfp\fR" 4
18815 .IX Item "-mhard-dfp"
18816 .PD 0
18817 .IP "\fB\-mno\-hard\-dfp\fR" 4
18818 .IX Item "-mno-hard-dfp"
18819 .PD
18820 Use (do not use) the hardware decimal-floating-point instructions for
18821 decimal-floating-point operations.  When \fB\-mno\-hard\-dfp\fR is
18822 specified, functions in \fIlibgcc.a\fR are used to perform
18823 decimal-floating-point operations.  When \fB\-mhard\-dfp\fR is
18824 specified, the compiler generates decimal-floating-point hardware
18825 instructions.  This is the default for \fB\-march=z9\-ec\fR or higher.
18826 .IP "\fB\-mlong\-double\-64\fR" 4
18827 .IX Item "-mlong-double-64"
18828 .PD 0
18829 .IP "\fB\-mlong\-double\-128\fR" 4
18830 .IX Item "-mlong-double-128"
18831 .PD
18832 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
18833 of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
18834 type. This is the default.
18835 .IP "\fB\-mbackchain\fR" 4
18836 .IX Item "-mbackchain"
18837 .PD 0
18838 .IP "\fB\-mno\-backchain\fR" 4
18839 .IX Item "-mno-backchain"
18840 .PD
18841 Store (do not store) the address of the caller's frame as backchain pointer
18842 into the callee's stack frame.
18843 A backchain may be needed to allow debugging using tools that do not understand
18844 \&\s-1DWARF 2\s0 call frame information.
18845 When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
18846 at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
18847 the backchain is placed into the topmost word of the 96/160 byte register
18848 save area.
18849 .Sp
18850 In general, code compiled with \fB\-mbackchain\fR is call-compatible with
18851 code compiled with \fB\-mmo\-backchain\fR; however, use of the backchain
18852 for debugging purposes usually requires that the whole binary is built with
18853 \&\fB\-mbackchain\fR.  Note that the combination of \fB\-mbackchain\fR,
18854 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
18855 to build a linux kernel use \fB\-msoft\-float\fR.
18856 .Sp
18857 The default is to not maintain the backchain.
18858 .IP "\fB\-mpacked\-stack\fR" 4
18859 .IX Item "-mpacked-stack"
18860 .PD 0
18861 .IP "\fB\-mno\-packed\-stack\fR" 4
18862 .IX Item "-mno-packed-stack"
18863 .PD
18864 Use (do not use) the packed stack layout.  When \fB\-mno\-packed\-stack\fR is
18865 specified, the compiler uses the all fields of the 96/160 byte register save
18866 area only for their default purpose; unused fields still take up stack space.
18867 When \fB\-mpacked\-stack\fR is specified, register save slots are densely
18868 packed at the top of the register save area; unused space is reused for other
18869 purposes, allowing for more efficient use of the available stack space.
18870 However, when \fB\-mbackchain\fR is also in effect, the topmost word of
18871 the save area is always used to store the backchain, and the return address
18872 register is always saved two words below the backchain.
18873 .Sp
18874 As long as the stack frame backchain is not used, code generated with
18875 \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
18876 \&\fB\-mno\-packed\-stack\fR.  Note that some non-FSF releases of \s-1GCC 2.95\s0 for
18877 S/390 or zSeries generated code that uses the stack frame backchain at run
18878 time, not just for debugging purposes.  Such code is not call-compatible
18879 with code compiled with \fB\-mpacked\-stack\fR.  Also, note that the
18880 combination of \fB\-mbackchain\fR,
18881 \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported.  In order
18882 to build a linux kernel use \fB\-msoft\-float\fR.
18883 .Sp
18884 The default is to not use the packed stack layout.
18885 .IP "\fB\-msmall\-exec\fR" 4
18886 .IX Item "-msmall-exec"
18887 .PD 0
18888 .IP "\fB\-mno\-small\-exec\fR" 4
18889 .IX Item "-mno-small-exec"
18890 .PD
18891 Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
18892 to do subroutine calls.
18893 This only works reliably if the total executable size does not
18894 exceed 64k.  The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
18895 which does not have this limitation.
18896 .IP "\fB\-m64\fR" 4
18897 .IX Item "-m64"
18898 .PD 0
18899 .IP "\fB\-m31\fR" 4
18900 .IX Item "-m31"
18901 .PD
18902 When \fB\-m31\fR is specified, generate code compliant to the
18903 GNU/Linux for S/390 \s-1ABI. \s0 When \fB\-m64\fR is specified, generate
18904 code compliant to the GNU/Linux for zSeries \s-1ABI. \s0 This allows \s-1GCC\s0 in
18905 particular to generate 64\-bit instructions.  For the \fBs390\fR
18906 targets, the default is \fB\-m31\fR, while the \fBs390x\fR
18907 targets default to \fB\-m64\fR.
18908 .IP "\fB\-mzarch\fR" 4
18909 .IX Item "-mzarch"
18910 .PD 0
18911 .IP "\fB\-mesa\fR" 4
18912 .IX Item "-mesa"
18913 .PD
18914 When \fB\-mzarch\fR is specified, generate code using the
18915 instructions available on z/Architecture.
18916 When \fB\-mesa\fR is specified, generate code using the
18917 instructions available on \s-1ESA/390. \s0 Note that \fB\-mesa\fR is
18918 not possible with \fB\-m64\fR.
18919 When generating code compliant to the GNU/Linux for S/390 \s-1ABI,\s0
18920 the default is \fB\-mesa\fR.  When generating code compliant
18921 to the GNU/Linux for zSeries \s-1ABI,\s0 the default is \fB\-mzarch\fR.
18922 .IP "\fB\-mmvcle\fR" 4
18923 .IX Item "-mmvcle"
18924 .PD 0
18925 .IP "\fB\-mno\-mvcle\fR" 4
18926 .IX Item "-mno-mvcle"
18927 .PD
18928 Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
18929 to perform block moves.  When \fB\-mno\-mvcle\fR is specified,
18930 use a \f(CW\*(C`mvc\*(C'\fR loop instead.  This is the default unless optimizing for
18931 size.
18932 .IP "\fB\-mdebug\fR" 4
18933 .IX Item "-mdebug"
18934 .PD 0
18935 .IP "\fB\-mno\-debug\fR" 4
18936 .IX Item "-mno-debug"
18937 .PD
18938 Print (or do not print) additional debug information when compiling.
18939 The default is to not print debug information.
18940 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
18941 .IX Item "-march=cpu-type"
18942 Generate code that runs on \fIcpu-type\fR, which is the name of a system
18943 representing a certain processor type.  Possible values for
18944 \&\fIcpu-type\fR are \fBg5\fR, \fBg6\fR, \fBz900\fR, \fBz990\fR,
18945 \&\fBz9\-109\fR, \fBz9\-ec\fR, \fBz10\fR,  \fBz196\fR, and \fBzEC12\fR.
18946 When generating code using the instructions available on z/Architecture,
18947 the default is \fB\-march=z900\fR.  Otherwise, the default is
18948 \&\fB\-march=g5\fR.
18949 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
18950 .IX Item "-mtune=cpu-type"
18951 Tune to \fIcpu-type\fR everything applicable about the generated code,
18952 except for the \s-1ABI\s0 and the set of available instructions.
18953 The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
18954 The default is the value used for \fB\-march\fR.
18955 .IP "\fB\-mtpf\-trace\fR" 4
18956 .IX Item "-mtpf-trace"
18957 .PD 0
18958 .IP "\fB\-mno\-tpf\-trace\fR" 4
18959 .IX Item "-mno-tpf-trace"
18960 .PD
18961 Generate code that adds (does not add) in \s-1TPF OS\s0 specific branches to trace
18962 routines in the operating system.  This option is off by default, even
18963 when compiling for the \s-1TPF OS.\s0
18964 .IP "\fB\-mfused\-madd\fR" 4
18965 .IX Item "-mfused-madd"
18966 .PD 0
18967 .IP "\fB\-mno\-fused\-madd\fR" 4
18968 .IX Item "-mno-fused-madd"
18969 .PD
18970 Generate code that uses (does not use) the floating-point multiply and
18971 accumulate instructions.  These instructions are generated by default if
18972 hardware floating point is used.
18973 .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
18974 .IX Item "-mwarn-framesize=framesize"
18975 Emit a warning if the current function exceeds the given frame size.  Because
18976 this is a compile-time check it doesn't need to be a real problem when the program
18977 runs.  It is intended to identify functions that most probably cause
18978 a stack overflow.  It is useful to be used in an environment with limited stack
18979 size e.g. the linux kernel.
18980 .IP "\fB\-mwarn\-dynamicstack\fR" 4
18981 .IX Item "-mwarn-dynamicstack"
18982 Emit a warning if the function calls \f(CW\*(C`alloca\*(C'\fR or uses dynamically-sized
18983 arrays.  This is generally a bad idea with a limited stack size.
18984 .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
18985 .IX Item "-mstack-guard=stack-guard"
18986 .PD 0
18987 .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
18988 .IX Item "-mstack-size=stack-size"
18989 .PD
18990 If these options are provided the S/390 back end emits additional instructions in
18991 the function prologue that trigger a trap if the stack size is \fIstack-guard\fR
18992 bytes above the \fIstack-size\fR (remember that the stack on S/390 grows downward).
18993 If the \fIstack-guard\fR option is omitted the smallest power of 2 larger than
18994 the frame size of the compiled function is chosen.
18995 These options are intended to be used to help debugging stack overflow problems.
18996 The additionally emitted code causes only little overhead and hence can also be
18997 used in production-like systems without greater performance degradation.  The given
18998 values have to be exact powers of 2 and \fIstack-size\fR has to be greater than
18999 \&\fIstack-guard\fR without exceeding 64k.
19000 In order to be efficient the extra code makes the assumption that the stack starts
19001 at an address aligned to the value given by \fIstack-size\fR.
19002 The \fIstack-guard\fR option can only be used in conjunction with \fIstack-size\fR.
19003 .IP "\fB\-mhotpatch=\fR\fIpre-halfwords\fR\fB,\fR\fIpost-halfwords\fR" 4
19004 .IX Item "-mhotpatch=pre-halfwords,post-halfwords"
19005 If the hotpatch option is enabled, a \*(L"hot-patching\*(R" function
19006 prologue is generated for all functions in the compilation unit.
19007 The funtion label is prepended with the given number of two-byte
19008 \&\s-1NOP\s0 instructions (\fIpre-halfwords\fR, maximum 1000000).  After
19009 the label, 2 * \fIpost-halfwords\fR bytes are appended, using the
19010 largest \s-1NOP\s0 like instructions the architecture allows (maximum
19011 1000000).
19012 .Sp
19013 If both arguments are zero, hotpatching is disabled.
19014 .Sp
19015 This option can be overridden for individual functions with the
19016 \&\f(CW\*(C`hotpatch\*(C'\fR attribute.
19017 .PP
19018 \fIScore Options\fR
19019 .IX Subsection "Score Options"
19020 .PP
19021 These options are defined for Score implementations:
19022 .IP "\fB\-meb\fR" 4
19023 .IX Item "-meb"
19024 Compile code for big-endian mode.  This is the default.
19025 .IP "\fB\-mel\fR" 4
19026 .IX Item "-mel"
19027 Compile code for little-endian mode.
19028 .IP "\fB\-mnhwloop\fR" 4
19029 .IX Item "-mnhwloop"
19030 Disable generation of \f(CW\*(C`bcnz\*(C'\fR instructions.
19031 .IP "\fB\-muls\fR" 4
19032 .IX Item "-muls"
19033 Enable generation of unaligned load and store instructions.
19034 .IP "\fB\-mmac\fR" 4
19035 .IX Item "-mmac"
19036 Enable the use of multiply-accumulate instructions. Disabled by default.
19037 .IP "\fB\-mscore5\fR" 4
19038 .IX Item "-mscore5"
19039 Specify the \s-1SCORE5\s0 as the target architecture.
19040 .IP "\fB\-mscore5u\fR" 4
19041 .IX Item "-mscore5u"
19042 Specify the \s-1SCORE5U\s0 of the target architecture.
19043 .IP "\fB\-mscore7\fR" 4
19044 .IX Item "-mscore7"
19045 Specify the \s-1SCORE7\s0 as the target architecture. This is the default.
19046 .IP "\fB\-mscore7d\fR" 4
19047 .IX Item "-mscore7d"
19048 Specify the \s-1SCORE7D\s0 as the target architecture.
19049 .PP
19050 \fI\s-1SH\s0 Options\fR
19051 .IX Subsection "SH Options"
19052 .PP
19053 These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
19054 .IP "\fB\-m1\fR" 4
19055 .IX Item "-m1"
19056 Generate code for the \s-1SH1.\s0
19057 .IP "\fB\-m2\fR" 4
19058 .IX Item "-m2"
19059 Generate code for the \s-1SH2.\s0
19060 .IP "\fB\-m2e\fR" 4
19061 .IX Item "-m2e"
19062 Generate code for the SH2e.
19063 .IP "\fB\-m2a\-nofpu\fR" 4
19064 .IX Item "-m2a-nofpu"
19065 Generate code for the SH2a without \s-1FPU,\s0 or for a SH2a\-FPU in such a way
19066 that the floating-point unit is not used.
19067 .IP "\fB\-m2a\-single\-only\fR" 4
19068 .IX Item "-m2a-single-only"
19069 Generate code for the SH2a\-FPU, in such a way that no double-precision
19070 floating-point operations are used.
19071 .IP "\fB\-m2a\-single\fR" 4
19072 .IX Item "-m2a-single"
19073 Generate code for the SH2a\-FPU assuming the floating-point unit is in
19074 single-precision mode by default.
19075 .IP "\fB\-m2a\fR" 4
19076 .IX Item "-m2a"
19077 Generate code for the SH2a\-FPU assuming the floating-point unit is in
19078 double-precision mode by default.
19079 .IP "\fB\-m3\fR" 4
19080 .IX Item "-m3"
19081 Generate code for the \s-1SH3.\s0
19082 .IP "\fB\-m3e\fR" 4
19083 .IX Item "-m3e"
19084 Generate code for the SH3e.
19085 .IP "\fB\-m4\-nofpu\fR" 4
19086 .IX Item "-m4-nofpu"
19087 Generate code for the \s-1SH4\s0 without a floating-point unit.
19088 .IP "\fB\-m4\-single\-only\fR" 4
19089 .IX Item "-m4-single-only"
19090 Generate code for the \s-1SH4\s0 with a floating-point unit that only
19091 supports single-precision arithmetic.
19092 .IP "\fB\-m4\-single\fR" 4
19093 .IX Item "-m4-single"
19094 Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
19095 single-precision mode by default.
19096 .IP "\fB\-m4\fR" 4
19097 .IX Item "-m4"
19098 Generate code for the \s-1SH4.\s0
19099 .IP "\fB\-m4\-100\fR" 4
19100 .IX Item "-m4-100"
19101 Generate code for \s-1SH4\-100.\s0
19102 .IP "\fB\-m4\-100\-nofpu\fR" 4
19103 .IX Item "-m4-100-nofpu"
19104 Generate code for \s-1SH4\-100\s0 in such a way that the
19105 floating-point unit is not used.
19106 .IP "\fB\-m4\-100\-single\fR" 4
19107 .IX Item "-m4-100-single"
19108 Generate code for \s-1SH4\-100\s0 assuming the floating-point unit is in
19109 single-precision mode by default.
19110 .IP "\fB\-m4\-100\-single\-only\fR" 4
19111 .IX Item "-m4-100-single-only"
19112 Generate code for \s-1SH4\-100\s0 in such a way that no double-precision
19113 floating-point operations are used.
19114 .IP "\fB\-m4\-200\fR" 4
19115 .IX Item "-m4-200"
19116 Generate code for \s-1SH4\-200.\s0
19117 .IP "\fB\-m4\-200\-nofpu\fR" 4
19118 .IX Item "-m4-200-nofpu"
19119 Generate code for \s-1SH4\-200\s0 without in such a way that the
19120 floating-point unit is not used.
19121 .IP "\fB\-m4\-200\-single\fR" 4
19122 .IX Item "-m4-200-single"
19123 Generate code for \s-1SH4\-200\s0 assuming the floating-point unit is in
19124 single-precision mode by default.
19125 .IP "\fB\-m4\-200\-single\-only\fR" 4
19126 .IX Item "-m4-200-single-only"
19127 Generate code for \s-1SH4\-200\s0 in such a way that no double-precision
19128 floating-point operations are used.
19129 .IP "\fB\-m4\-300\fR" 4
19130 .IX Item "-m4-300"
19131 Generate code for \s-1SH4\-300.\s0
19132 .IP "\fB\-m4\-300\-nofpu\fR" 4
19133 .IX Item "-m4-300-nofpu"
19134 Generate code for \s-1SH4\-300\s0 without in such a way that the
19135 floating-point unit is not used.
19136 .IP "\fB\-m4\-300\-single\fR" 4
19137 .IX Item "-m4-300-single"
19138 Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
19139 floating-point operations are used.
19140 .IP "\fB\-m4\-300\-single\-only\fR" 4
19141 .IX Item "-m4-300-single-only"
19142 Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
19143 floating-point operations are used.
19144 .IP "\fB\-m4\-340\fR" 4
19145 .IX Item "-m4-340"
19146 Generate code for \s-1SH4\-340 \s0(no \s-1MMU,\s0 no \s-1FPU\s0).
19147 .IP "\fB\-m4\-500\fR" 4
19148 .IX Item "-m4-500"
19149 Generate code for \s-1SH4\-500 \s0(no \s-1FPU\s0).  Passes \fB\-isa=sh4\-nofpu\fR to the
19150 assembler.
19151 .IP "\fB\-m4a\-nofpu\fR" 4
19152 .IX Item "-m4a-nofpu"
19153 Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
19154 floating-point unit is not used.
19155 .IP "\fB\-m4a\-single\-only\fR" 4
19156 .IX Item "-m4a-single-only"
19157 Generate code for the SH4a, in such a way that no double-precision
19158 floating-point operations are used.
19159 .IP "\fB\-m4a\-single\fR" 4
19160 .IX Item "-m4a-single"
19161 Generate code for the SH4a assuming the floating-point unit is in
19162 single-precision mode by default.
19163 .IP "\fB\-m4a\fR" 4
19164 .IX Item "-m4a"
19165 Generate code for the SH4a.
19166 .IP "\fB\-m4al\fR" 4
19167 .IX Item "-m4al"
19168 Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
19169 \&\fB\-dsp\fR to the assembler.  \s-1GCC\s0 doesn't generate any \s-1DSP\s0
19170 instructions at the moment.
19171 .IP "\fB\-m5\-32media\fR" 4
19172 .IX Item "-m5-32media"
19173 Generate 32\-bit code for SHmedia.
19174 .IP "\fB\-m5\-32media\-nofpu\fR" 4
19175 .IX Item "-m5-32media-nofpu"
19176 Generate 32\-bit code for SHmedia in such a way that the
19177 floating-point unit is not used.
19178 .IP "\fB\-m5\-64media\fR" 4
19179 .IX Item "-m5-64media"
19180 Generate 64\-bit code for SHmedia.
19181 .IP "\fB\-m5\-64media\-nofpu\fR" 4
19182 .IX Item "-m5-64media-nofpu"
19183 Generate 64\-bit code for SHmedia in such a way that the
19184 floating-point unit is not used.
19185 .IP "\fB\-m5\-compact\fR" 4
19186 .IX Item "-m5-compact"
19187 Generate code for SHcompact.
19188 .IP "\fB\-m5\-compact\-nofpu\fR" 4
19189 .IX Item "-m5-compact-nofpu"
19190 Generate code for SHcompact in such a way that the
19191 floating-point unit is not used.
19192 .IP "\fB\-mb\fR" 4
19193 .IX Item "-mb"
19194 Compile code for the processor in big-endian mode.
19195 .IP "\fB\-ml\fR" 4
19196 .IX Item "-ml"
19197 Compile code for the processor in little-endian mode.
19198 .IP "\fB\-mdalign\fR" 4
19199 .IX Item "-mdalign"
19200 Align doubles at 64\-bit boundaries.  Note that this changes the calling
19201 conventions, and thus some functions from the standard C library do
19202 not work unless you recompile it first with \fB\-mdalign\fR.
19203 .IP "\fB\-mrelax\fR" 4
19204 .IX Item "-mrelax"
19205 Shorten some address references at link time, when possible; uses the
19206 linker option \fB\-relax\fR.
19207 .IP "\fB\-mbigtable\fR" 4
19208 .IX Item "-mbigtable"
19209 Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables.  The default is to use
19210 16\-bit offsets.
19211 .IP "\fB\-mbitops\fR" 4
19212 .IX Item "-mbitops"
19213 Enable the use of bit manipulation instructions on \s-1SH2A.\s0
19214 .IP "\fB\-mfmovd\fR" 4
19215 .IX Item "-mfmovd"
19216 Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR.  Check \fB\-mdalign\fR for
19217 alignment constraints.
19218 .IP "\fB\-mrenesas\fR" 4
19219 .IX Item "-mrenesas"
19220 Comply with the calling conventions defined by Renesas.
19221 .IP "\fB\-mno\-renesas\fR" 4
19222 .IX Item "-mno-renesas"
19223 Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
19224 conventions were available.  This option is the default for all
19225 targets of the \s-1SH\s0 toolchain.
19226 .IP "\fB\-mnomacsave\fR" 4
19227 .IX Item "-mnomacsave"
19228 Mark the \f(CW\*(C`MAC\*(C'\fR register as call-clobbered, even if
19229 \&\fB\-mrenesas\fR is given.
19230 .IP "\fB\-mieee\fR" 4
19231 .IX Item "-mieee"
19232 .PD 0
19233 .IP "\fB\-mno\-ieee\fR" 4
19234 .IX Item "-mno-ieee"
19235 .PD
19236 Control the \s-1IEEE\s0 compliance of floating-point comparisons, which affects the
19237 handling of cases where the result of a comparison is unordered.  By default
19238 \&\fB\-mieee\fR is implicitly enabled.  If \fB\-ffinite\-math\-only\fR is
19239 enabled \fB\-mno\-ieee\fR is implicitly set, which results in faster
19240 floating-point greater-equal and less-equal comparisons.  The implcit settings
19241 can be overridden by specifying either \fB\-mieee\fR or \fB\-mno\-ieee\fR.
19242 .IP "\fB\-minline\-ic_invalidate\fR" 4
19243 .IX Item "-minline-ic_invalidate"
19244 Inline code to invalidate instruction cache entries after setting up
19245 nested function trampolines.
19246 This option has no effect if \fB\-musermode\fR is in effect and the selected
19247 code generation option (e.g. \fB\-m4\fR) does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
19248 instruction.
19249 If the selected code generation option does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
19250 instruction, and \fB\-musermode\fR is not in effect, the inlined code
19251 manipulates the instruction cache address array directly with an associative
19252 write.  This not only requires privileged mode at run time, but it also
19253 fails if the cache line had been mapped via the \s-1TLB\s0 and has become unmapped.
19254 .IP "\fB\-misize\fR" 4
19255 .IX Item "-misize"
19256 Dump instruction size and location in the assembly code.
19257 .IP "\fB\-mpadstruct\fR" 4
19258 .IX Item "-mpadstruct"
19259 This option is deprecated.  It pads structures to multiple of 4 bytes,
19260 which is incompatible with the \s-1SH ABI.\s0
19261 .IP "\fB\-matomic\-model=\fR\fImodel\fR" 4
19262 .IX Item "-matomic-model=model"
19263 Sets the model of atomic operations and additional parameters as a comma
19264 separated list.  For details on the atomic built-in functions see
19265 \&\fB_\|_atomic Builtins\fR.  The following models and parameters are supported:
19266 .RS 4
19267 .IP "\fBnone\fR" 4
19268 .IX Item "none"
19269 Disable compiler generated atomic sequences and emit library calls for atomic
19270 operations.  This is the default if the target is not \f(CW\*(C`sh*\-*\-linux*\*(C'\fR.
19271 .IP "\fBsoft-gusa\fR" 4
19272 .IX Item "soft-gusa"
19273 Generate GNU/Linux compatible gUSA software atomic sequences for the atomic
19274 built-in functions.  The generated atomic sequences require additional support
19275 from the interrupt/exception handling code of the system and are only suitable
19276 for SH3* and SH4* single-core systems.  This option is enabled by default when
19277 the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH3* or SH4*.  When the target is \s-1SH4A,\s0
19278 this option also partially utilizes the hardware atomic instructions
19279 \&\f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR to create more efficient code, unless
19280 \&\fBstrict\fR is specified.
19281 .IP "\fBsoft-tcb\fR" 4
19282 .IX Item "soft-tcb"
19283 Generate software atomic sequences that use a variable in the thread control
19284 block.  This is a variation of the gUSA sequences which can also be used on
19285 SH1* and SH2* targets.  The generated atomic sequences require additional
19286 support from the interrupt/exception handling code of the system and are only
19287 suitable for single-core systems.  When using this model, the \fBgbr\-offset=\fR
19288 parameter has to be specified as well.
19289 .IP "\fBsoft-imask\fR" 4
19290 .IX Item "soft-imask"
19291 Generate software atomic sequences that temporarily disable interrupts by
19292 setting \f(CW\*(C`SR.IMASK = 1111\*(C'\fR.  This model works only when the program runs
19293 in privileged mode and is only suitable for single-core systems.  Additional
19294 support from the interrupt/exception handling code of the system is not
19295 required.  This model is enabled by default when the target is
19296 \&\f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH1* or SH2*.
19297 .IP "\fBhard-llcs\fR" 4
19298 .IX Item "hard-llcs"
19299 Generate hardware atomic sequences using the \f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR
19300 instructions only.  This is only available on \s-1SH4A\s0 and is suitable for
19301 multi-core systems.  Since the hardware instructions support only 32 bit atomic
19302 variables access to 8 or 16 bit variables is emulated with 32 bit accesses.
19303 Code compiled with this option is also compatible with other software
19304 atomic model interrupt/exception handling systems if executed on an \s-1SH4A\s0
19305 system.  Additional support from the interrupt/exception handling code of the
19306 system is not required for this model.
19307 .IP "\fBgbr\-offset=\fR" 4
19308 .IX Item "gbr-offset="
19309 This parameter specifies the offset in bytes of the variable in the thread
19310 control block structure that should be used by the generated atomic sequences
19311 when the \fBsoft-tcb\fR model has been selected.  For other models this
19312 parameter is ignored.  The specified value must be an integer multiple of four
19313 and in the range 0\-1020.
19314 .IP "\fBstrict\fR" 4
19315 .IX Item "strict"
19316 This parameter prevents mixed usage of multiple atomic models, even if they
19317 are compatible, and makes the compiler generate atomic sequences of the
19318 specified model only.
19319 .RE
19320 .RS 4
19321 .RE
19322 .IP "\fB\-mtas\fR" 4
19323 .IX Item "-mtas"
19324 Generate the \f(CW\*(C`tas.b\*(C'\fR opcode for \f(CW\*(C`_\|_atomic_test_and_set\*(C'\fR.
19325 Notice that depending on the particular hardware and software configuration
19326 this can degrade overall performance due to the operand cache line flushes
19327 that are implied by the \f(CW\*(C`tas.b\*(C'\fR instruction.  On multi-core \s-1SH4A\s0
19328 processors the \f(CW\*(C`tas.b\*(C'\fR instruction must be used with caution since it
19329 can result in data corruption for certain cache configurations.
19330 .IP "\fB\-mprefergot\fR" 4
19331 .IX Item "-mprefergot"
19332 When generating position-independent code, emit function calls using
19333 the Global Offset Table instead of the Procedure Linkage Table.
19334 .IP "\fB\-musermode\fR" 4
19335 .IX Item "-musermode"
19336 .PD 0
19337 .IP "\fB\-mno\-usermode\fR" 4
19338 .IX Item "-mno-usermode"
19339 .PD
19340 Don't allow (allow) the compiler generating privileged mode code.  Specifying
19341 \&\fB\-musermode\fR also implies \fB\-mno\-inline\-ic_invalidate\fR if the
19342 inlined code would not work in user mode.  \fB\-musermode\fR is the default
19343 when the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR.  If the target is SH1* or SH2*
19344 \&\fB\-musermode\fR has no effect, since there is no user mode.
19345 .IP "\fB\-multcost=\fR\fInumber\fR" 4
19346 .IX Item "-multcost=number"
19347 Set the cost to assume for a multiply insn.
19348 .IP "\fB\-mdiv=\fR\fIstrategy\fR" 4
19349 .IX Item "-mdiv=strategy"
19350 Set the division strategy to be used for integer division operations.
19351 For SHmedia \fIstrategy\fR can be one of:
19352 .RS 4
19353 .IP "\fBfp\fR" 4
19354 .IX Item "fp"
19355 Performs the operation in floating point.  This has a very high latency,
19356 but needs only a few instructions, so it might be a good choice if
19357 your code has enough easily-exploitable \s-1ILP\s0 to allow the compiler to
19358 schedule the floating-point instructions together with other instructions.
19359 Division by zero causes a floating-point exception.
19360 .IP "\fBinv\fR" 4
19361 .IX Item "inv"
19362 Uses integer operations to calculate the inverse of the divisor,
19363 and then multiplies the dividend with the inverse.  This strategy allows
19364 \&\s-1CSE\s0 and hoisting of the inverse calculation.  Division by zero calculates
19365 an unspecified result, but does not trap.
19366 .IP "\fBinv:minlat\fR" 4
19367 .IX Item "inv:minlat"
19368 A variant of \fBinv\fR where, if no \s-1CSE\s0 or hoisting opportunities
19369 have been found, or if the entire operation has been hoisted to the same
19370 place, the last stages of the inverse calculation are intertwined with the
19371 final multiply to reduce the overall latency, at the expense of using a few
19372 more instructions, and thus offering fewer scheduling opportunities with
19373 other code.
19374 .IP "\fBcall\fR" 4
19375 .IX Item "call"
19376 Calls a library function that usually implements the \fBinv:minlat\fR
19377 strategy.
19378 This gives high code density for \f(CW\*(C`m5\-*media\-nofpu\*(C'\fR compilations.
19379 .IP "\fBcall2\fR" 4
19380 .IX Item "call2"
19381 Uses a different entry point of the same library function, where it
19382 assumes that a pointer to a lookup table has already been set up, which
19383 exposes the pointer load to \s-1CSE\s0 and code hoisting optimizations.
19384 .IP "\fBinv:call\fR" 4
19385 .IX Item "inv:call"
19386 .PD 0
19387 .IP "\fBinv:call2\fR" 4
19388 .IX Item "inv:call2"
19389 .IP "\fBinv:fp\fR" 4
19390 .IX Item "inv:fp"
19391 .PD
19392 Use the \fBinv\fR algorithm for initial
19393 code generation, but if the code stays unoptimized, revert to the \fBcall\fR,
19394 \&\fBcall2\fR, or \fBfp\fR strategies, respectively.  Note that the
19395 potentially-trapping side effect of division by zero is carried by a
19396 separate instruction, so it is possible that all the integer instructions
19397 are hoisted out, but the marker for the side effect stays where it is.
19398 A recombination to floating-point operations or a call is not possible
19399 in that case.
19400 .IP "\fBinv20u\fR" 4
19401 .IX Item "inv20u"
19402 .PD 0
19403 .IP "\fBinv20l\fR" 4
19404 .IX Item "inv20l"
19405 .PD
19406 Variants of the \fBinv:minlat\fR strategy.  In the case
19407 that the inverse calculation is not separated from the multiply, they speed
19408 up division where the dividend fits into 20 bits (plus sign where applicable)
19409 by inserting a test to skip a number of operations in this case; this test
19410 slows down the case of larger dividends.  \fBinv20u\fR assumes the case of a such
19411 a small dividend to be unlikely, and \fBinv20l\fR assumes it to be likely.
19412 .RE
19413 .RS 4
19414 .Sp
19415 For targets other than SHmedia \fIstrategy\fR can be one of:
19416 .IP "\fBcall\-div1\fR" 4
19417 .IX Item "call-div1"
19418 Calls a library function that uses the single-step division instruction
19419 \&\f(CW\*(C`div1\*(C'\fR to perform the operation.  Division by zero calculates an
19420 unspecified result and does not trap.  This is the default except for \s-1SH4,
19421 SH2A\s0 and SHcompact.
19422 .IP "\fBcall-fp\fR" 4
19423 .IX Item "call-fp"
19424 Calls a library function that performs the operation in double precision
19425 floating point.  Division by zero causes a floating-point exception.  This is
19426 the default for SHcompact with \s-1FPU. \s0 Specifying this for targets that do not
19427 have a double precision \s-1FPU\s0 defaults to \f(CW\*(C`call\-div1\*(C'\fR.
19428 .IP "\fBcall-table\fR" 4
19429 .IX Item "call-table"
19430 Calls a library function that uses a lookup table for small divisors and
19431 the \f(CW\*(C`div1\*(C'\fR instruction with case distinction for larger divisors.  Division
19432 by zero calculates an unspecified result and does not trap.  This is the default
19433 for \s-1SH4. \s0 Specifying this for targets that do not have dynamic shift
19434 instructions defaults to \f(CW\*(C`call\-div1\*(C'\fR.
19435 .RE
19436 .RS 4
19437 .Sp
19438 When a division strategy has not been specified the default strategy is
19439 selected based on the current target.  For \s-1SH2A\s0 the default strategy is to
19440 use the \f(CW\*(C`divs\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions instead of library function
19441 calls.
19442 .RE
19443 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
19444 .IX Item "-maccumulate-outgoing-args"
19445 Reserve space once for outgoing arguments in the function prologue rather
19446 than around each call.  Generally beneficial for performance and size.  Also
19447 needed for unwinding to avoid changing the stack frame around conditional code.
19448 .IP "\fB\-mdivsi3_libfunc=\fR\fIname\fR" 4
19449 .IX Item "-mdivsi3_libfunc=name"
19450 Set the name of the library function used for 32\-bit signed division to
19451 \&\fIname\fR.
19452 This only affects the name used in the \fBcall\fR and \fBinv:call\fR
19453 division strategies, and the compiler still expects the same
19454 sets of input/output/clobbered registers as if this option were not present.
19455 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
19456 .IX Item "-mfixed-range=register-range"
19457 Generate code treating the given register range as fixed registers.
19458 A fixed register is one that the register allocator can not use.  This is
19459 useful when compiling kernel code.  A register range is specified as
19460 two registers separated by a dash.  Multiple register ranges can be
19461 specified separated by a comma.
19462 .IP "\fB\-mindexed\-addressing\fR" 4
19463 .IX Item "-mindexed-addressing"
19464 Enable the use of the indexed addressing mode for SHmedia32/SHcompact.
19465 This is only safe if the hardware and/or \s-1OS\s0 implement 32\-bit wrap-around
19466 semantics for the indexed addressing mode.  The architecture allows the
19467 implementation of processors with 64\-bit \s-1MMU,\s0 which the \s-1OS\s0 could use to
19468 get 32\-bit addressing, but since no current hardware implementation supports
19469 this or any other way to make the indexed addressing mode safe to use in
19470 the 32\-bit \s-1ABI,\s0 the default is \fB\-mno\-indexed\-addressing\fR.
19471 .IP "\fB\-mgettrcost=\fR\fInumber\fR" 4
19472 .IX Item "-mgettrcost=number"
19473 Set the cost assumed for the \f(CW\*(C`gettr\*(C'\fR instruction to \fInumber\fR.
19474 The default is 2 if \fB\-mpt\-fixed\fR is in effect, 100 otherwise.
19475 .IP "\fB\-mpt\-fixed\fR" 4
19476 .IX Item "-mpt-fixed"
19477 Assume \f(CW\*(C`pt*\*(C'\fR instructions won't trap.  This generally generates
19478 better-scheduled code, but is unsafe on current hardware.
19479 The current architecture
19480 definition says that \f(CW\*(C`ptabs\*(C'\fR and \f(CW\*(C`ptrel\*(C'\fR trap when the target 
19481 anded with 3 is 3.
19482 This has the unintentional effect of making it unsafe to schedule these
19483 instructions before a branch, or hoist them out of a loop.  For example,
19484 \&\f(CW\*(C`_\|_do_global_ctors\*(C'\fR, a part of \fIlibgcc\fR
19485 that runs constructors at program
19486 startup, calls functions in a list which is delimited by \-1.  With the
19487 \&\fB\-mpt\-fixed\fR option, the \f(CW\*(C`ptabs\*(C'\fR is done before testing against \-1.
19488 That means that all the constructors run a bit more quickly, but when
19489 the loop comes to the end of the list, the program crashes because \f(CW\*(C`ptabs\*(C'\fR
19490 loads \-1 into a target register.
19491 .Sp
19492 Since this option is unsafe for any
19493 hardware implementing the current architecture specification, the default
19494 is \fB\-mno\-pt\-fixed\fR.  Unless specified explicitly with 
19495 \&\fB\-mgettrcost\fR, \fB\-mno\-pt\-fixed\fR also implies \fB\-mgettrcost=100\fR;
19496 this deters register allocation from using target registers for storing
19497 ordinary integers.
19498 .IP "\fB\-minvalid\-symbols\fR" 4
19499 .IX Item "-minvalid-symbols"
19500 Assume symbols might be invalid.  Ordinary function symbols generated by
19501 the compiler are always valid to load with
19502 \&\f(CW\*(C`movi\*(C'\fR/\f(CW\*(C`shori\*(C'\fR/\f(CW\*(C`ptabs\*(C'\fR or
19503 \&\f(CW\*(C`movi\*(C'\fR/\f(CW\*(C`shori\*(C'\fR/\f(CW\*(C`ptrel\*(C'\fR,
19504 but with assembler and/or linker tricks it is possible
19505 to generate symbols that cause \f(CW\*(C`ptabs\*(C'\fR or \f(CW\*(C`ptrel\*(C'\fR to trap.
19506 This option is only meaningful when \fB\-mno\-pt\-fixed\fR is in effect.
19507 It prevents cross-basic-block \s-1CSE,\s0 hoisting and most scheduling
19508 of symbol loads.  The default is \fB\-mno\-invalid\-symbols\fR.
19509 .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
19510 .IX Item "-mbranch-cost=num"
19511 Assume \fInum\fR to be the cost for a branch instruction.  Higher numbers
19512 make the compiler try to generate more branch-free code if possible.  
19513 If not specified the value is selected depending on the processor type that
19514 is being compiled for.
19515 .IP "\fB\-mzdcbranch\fR" 4
19516 .IX Item "-mzdcbranch"
19517 .PD 0
19518 .IP "\fB\-mno\-zdcbranch\fR" 4
19519 .IX Item "-mno-zdcbranch"
19520 .PD
19521 Assume (do not assume) that zero displacement conditional branch instructions
19522 \&\f(CW\*(C`bt\*(C'\fR and \f(CW\*(C`bf\*(C'\fR are fast.  If \fB\-mzdcbranch\fR is specified, the
19523 compiler prefers zero displacement branch code sequences.  This is
19524 enabled by default when generating code for \s-1SH4\s0 and \s-1SH4A. \s0 It can be explicitly
19525 disabled by specifying \fB\-mno\-zdcbranch\fR.
19526 .IP "\fB\-mcbranch\-force\-delay\-slot\fR" 4
19527 .IX Item "-mcbranch-force-delay-slot"
19528 Force the usage of delay slots for conditional branches, which stuffs the delay
19529 slot with a \f(CW\*(C`nop\*(C'\fR if a suitable instruction can't be found.  By default
19530 this option is disabled.  It can be enabled to work around hardware bugs as
19531 found in the original \s-1SH7055.\s0
19532 .IP "\fB\-mfused\-madd\fR" 4
19533 .IX Item "-mfused-madd"
19534 .PD 0
19535 .IP "\fB\-mno\-fused\-madd\fR" 4
19536 .IX Item "-mno-fused-madd"
19537 .PD
19538 Generate code that uses (does not use) the floating-point multiply and
19539 accumulate instructions.  These instructions are generated by default
19540 if hardware floating point is used.  The machine-dependent
19541 \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
19542 \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
19543 mapped to \fB\-ffp\-contract=off\fR.
19544 .IP "\fB\-mfsca\fR" 4
19545 .IX Item "-mfsca"
19546 .PD 0
19547 .IP "\fB\-mno\-fsca\fR" 4
19548 .IX Item "-mno-fsca"
19549 .PD
19550 Allow or disallow the compiler to emit the \f(CW\*(C`fsca\*(C'\fR instruction for sine
19551 and cosine approximations.  The option \fB\-mfsca\fR must be used in
19552 combination with \fB\-funsafe\-math\-optimizations\fR.  It is enabled by default
19553 when generating code for \s-1SH4A. \s0 Using \fB\-mno\-fsca\fR disables sine and cosine
19554 approximations even if \fB\-funsafe\-math\-optimizations\fR is in effect.
19555 .IP "\fB\-mfsrra\fR" 4
19556 .IX Item "-mfsrra"
19557 .PD 0
19558 .IP "\fB\-mno\-fsrra\fR" 4
19559 .IX Item "-mno-fsrra"
19560 .PD
19561 Allow or disallow the compiler to emit the \f(CW\*(C`fsrra\*(C'\fR instruction for
19562 reciprocal square root approximations.  The option \fB\-mfsrra\fR must be used
19563 in combination with \fB\-funsafe\-math\-optimizations\fR and
19564 \&\fB\-ffinite\-math\-only\fR.  It is enabled by default when generating code for
19565 \&\s-1SH4A. \s0 Using \fB\-mno\-fsrra\fR disables reciprocal square root approximations
19566 even if \fB\-funsafe\-math\-optimizations\fR and \fB\-ffinite\-math\-only\fR are
19567 in effect.
19568 .IP "\fB\-mpretend\-cmove\fR" 4
19569 .IX Item "-mpretend-cmove"
19570 Prefer zero-displacement conditional branches for conditional move instruction
19571 patterns.  This can result in faster code on the \s-1SH4\s0 processor.
19572 .PP
19573 \fISolaris 2 Options\fR
19574 .IX Subsection "Solaris 2 Options"
19575 .PP
19576 These \fB\-m\fR options are supported on Solaris 2:
19577 .IP "\fB\-mclear\-hwcap\fR" 4
19578 .IX Item "-mclear-hwcap"
19579 \&\fB\-mclear\-hwcap\fR tells the compiler to remove the hardware
19580 capabilities generated by the Solaris assembler.  This is only necessary
19581 when object files use \s-1ISA\s0 extensions not supported by the current
19582 machine, but check at runtime whether or not to use them.
19583 .IP "\fB\-mimpure\-text\fR" 4
19584 .IX Item "-mimpure-text"
19585 \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
19586 the compiler to not pass \fB\-z text\fR to the linker when linking a
19587 shared object.  Using this option, you can link position-dependent
19588 code into a shared object.
19589 .Sp
19590 \&\fB\-mimpure\-text\fR suppresses the \*(L"relocations remain against
19591 allocatable but non-writable sections\*(R" linker error message.
19592 However, the necessary relocations trigger copy-on-write, and the
19593 shared object is not actually shared across processes.  Instead of
19594 using \fB\-mimpure\-text\fR, you should compile all source code with
19595 \&\fB\-fpic\fR or \fB\-fPIC\fR.
19596 .PP
19597 These switches are supported in addition to the above on Solaris 2:
19598 .IP "\fB\-pthreads\fR" 4
19599 .IX Item "-pthreads"
19600 Add support for multithreading using the \s-1POSIX\s0 threads library.  This
19601 option sets flags for both the preprocessor and linker.  This option does
19602 not affect the thread safety of object code produced  by the compiler or
19603 that of libraries supplied with it.
19604 .IP "\fB\-pthread\fR" 4
19605 .IX Item "-pthread"
19606 This is a synonym for \fB\-pthreads\fR.
19607 .PP
19608 \fI\s-1SPARC\s0 Options\fR
19609 .IX Subsection "SPARC Options"
19610 .PP
19611 These \fB\-m\fR options are supported on the \s-1SPARC:\s0
19612 .IP "\fB\-mno\-app\-regs\fR" 4
19613 .IX Item "-mno-app-regs"
19614 .PD 0
19615 .IP "\fB\-mapp\-regs\fR" 4
19616 .IX Item "-mapp-regs"
19617 .PD
19618 Specify \fB\-mapp\-regs\fR to generate output using the global registers
19619 2 through 4, which the \s-1SPARC SVR4 ABI\s0 reserves for applications.  Like the
19620 global register 1, each global register 2 through 4 is then treated as an
19621 allocable register that is clobbered by function calls.  This is the default.
19622 .Sp
19623 To be fully \s-1SVR4\s0 ABI-compliant at the cost of some performance loss,
19624 specify \fB\-mno\-app\-regs\fR.  You should compile libraries and system
19625 software with this option.
19626 .IP "\fB\-mflat\fR" 4
19627 .IX Item "-mflat"
19628 .PD 0
19629 .IP "\fB\-mno\-flat\fR" 4
19630 .IX Item "-mno-flat"
19631 .PD
19632 With \fB\-mflat\fR, the compiler does not generate save/restore instructions
19633 and uses a \*(L"flat\*(R" or single register window model.  This model is compatible
19634 with the regular register window model.  The local registers and the input
19635 registers (0\-\-5) are still treated as \*(L"call-saved\*(R" registers and are
19636 saved on the stack as needed.
19637 .Sp
19638 With \fB\-mno\-flat\fR (the default), the compiler generates save/restore
19639 instructions (except for leaf functions).  This is the normal operating mode.
19640 .IP "\fB\-mfpu\fR" 4
19641 .IX Item "-mfpu"
19642 .PD 0
19643 .IP "\fB\-mhard\-float\fR" 4
19644 .IX Item "-mhard-float"
19645 .PD
19646 Generate output containing floating-point instructions.  This is the
19647 default.
19648 .IP "\fB\-mno\-fpu\fR" 4
19649 .IX Item "-mno-fpu"
19650 .PD 0
19651 .IP "\fB\-msoft\-float\fR" 4
19652 .IX Item "-msoft-float"
19653 .PD
19654 Generate output containing library calls for floating point.
19655 \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
19656 targets.  Normally the facilities of the machine's usual C compiler are
19657 used, but this cannot be done directly in cross-compilation.  You must make
19658 your own arrangements to provide suitable library functions for
19659 cross-compilation.  The embedded targets \fBsparc\-*\-aout\fR and
19660 \&\fBsparclite\-*\-*\fR do provide software floating-point support.
19661 .Sp
19662 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
19663 therefore, it is only useful if you compile \fIall\fR of a program with
19664 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
19665 library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
19666 this to work.
19667 .IP "\fB\-mhard\-quad\-float\fR" 4
19668 .IX Item "-mhard-quad-float"
19669 Generate output containing quad-word (long double) floating-point
19670 instructions.
19671 .IP "\fB\-msoft\-quad\-float\fR" 4
19672 .IX Item "-msoft-quad-float"
19673 Generate output containing library calls for quad-word (long double)
19674 floating-point instructions.  The functions called are those specified
19675 in the \s-1SPARC ABI. \s0 This is the default.
19676 .Sp
19677 As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
19678 support for the quad-word floating-point instructions.  They all invoke
19679 a trap handler for one of these instructions, and then the trap handler
19680 emulates the effect of the instruction.  Because of the trap handler overhead,
19681 this is much slower than calling the \s-1ABI\s0 library routines.  Thus the
19682 \&\fB\-msoft\-quad\-float\fR option is the default.
19683 .IP "\fB\-mno\-unaligned\-doubles\fR" 4
19684 .IX Item "-mno-unaligned-doubles"
19685 .PD 0
19686 .IP "\fB\-munaligned\-doubles\fR" 4
19687 .IX Item "-munaligned-doubles"
19688 .PD
19689 Assume that doubles have 8\-byte alignment.  This is the default.
19690 .Sp
19691 With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8\-byte
19692 alignment only if they are contained in another type, or if they have an
19693 absolute address.  Otherwise, it assumes they have 4\-byte alignment.
19694 Specifying this option avoids some rare compatibility problems with code
19695 generated by other compilers.  It is not the default because it results
19696 in a performance loss, especially for floating-point code.
19697 .IP "\fB\-muser\-mode\fR" 4
19698 .IX Item "-muser-mode"
19699 .PD 0
19700 .IP "\fB\-mno\-user\-mode\fR" 4
19701 .IX Item "-mno-user-mode"
19702 .PD
19703 Do not generate code that can only run in supervisor mode.  This is relevant
19704 only for the \f(CW\*(C`casa\*(C'\fR instruction emitted for the \s-1LEON3\s0 processor.  The
19705 default is \fB\-mno\-user\-mode\fR.
19706 .IP "\fB\-mno\-faster\-structs\fR" 4
19707 .IX Item "-mno-faster-structs"
19708 .PD 0
19709 .IP "\fB\-mfaster\-structs\fR" 4
19710 .IX Item "-mfaster-structs"
19711 .PD
19712 With \fB\-mfaster\-structs\fR, the compiler assumes that structures
19713 should have 8\-byte alignment.  This enables the use of pairs of
19714 \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
19715 assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
19716 However, the use of this changed alignment directly violates the \s-1SPARC
19717 ABI. \s0 Thus, it's intended only for use on targets where the developer
19718 acknowledges that their resulting code is not directly in line with
19719 the rules of the \s-1ABI.\s0
19720 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
19721 .IX Item "-mcpu=cpu_type"
19722 Set the instruction set, register set, and instruction scheduling parameters
19723 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
19724 \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBhypersparc\fR,
19725 \&\fBleon\fR, \fBleon3\fR, \fBleon3v7\fR, \fBsparclite\fR, \fBf930\fR,
19726 \&\fBf934\fR, \fBsparclite86x\fR, \fBsparclet\fR, \fBtsc701\fR, \fBv9\fR,
19727 \&\fBultrasparc\fR, \fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR,
19728 \&\fBniagara3\fR and \fBniagara4\fR.
19729 .Sp
19730 Native Solaris and GNU/Linux toolchains also support the value \fBnative\fR,
19731 which selects the best architecture option for the host processor.
19732 \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
19733 the processor.
19734 .Sp
19735 Default instruction scheduling parameters are used for values that select
19736 an architecture and not an implementation.  These are \fBv7\fR, \fBv8\fR,
19737 \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
19738 .Sp
19739 Here is a list of each supported architecture and their supported
19740 implementations.
19741 .RS 4
19742 .IP "v7" 4
19743 .IX Item "v7"
19744 cypress, leon3v7
19745 .IP "v8" 4
19746 .IX Item "v8"
19747 supersparc, hypersparc, leon, leon3
19748 .IP "sparclite" 4
19749 .IX Item "sparclite"
19750 f930, f934, sparclite86x
19751 .IP "sparclet" 4
19752 .IX Item "sparclet"
19753 tsc701
19754 .IP "v9" 4
19755 .IX Item "v9"
19756 ultrasparc, ultrasparc3, niagara, niagara2, niagara3, niagara4
19757 .RE
19758 .RS 4
19759 .Sp
19760 By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
19761 variant of the \s-1SPARC\s0 architecture.  With \fB\-mcpu=cypress\fR, the compiler
19762 additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
19763 SPARCStation/SPARCServer 3xx series.  This is also appropriate for the older
19764 SPARCStation 1, 2, \s-1IPX\s0 etc.
19765 .Sp
19766 With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
19767 architecture.  The only difference from V7 code is that the compiler emits
19768 the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
19769 but not in \s-1SPARC\-V7. \s0 With \fB\-mcpu=supersparc\fR, the compiler additionally
19770 optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
19771 2000 series.
19772 .Sp
19773 With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
19774 the \s-1SPARC\s0 architecture.  This adds the integer multiply, integer divide step
19775 and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7.\s0
19776 With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
19777 Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU. \s0 With
19778 \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
19779 \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU.\s0
19780 .Sp
19781 With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
19782 the \s-1SPARC\s0 architecture.  This adds the integer multiply, multiply/accumulate,
19783 integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
19784 but not in \s-1SPARC\-V7. \s0 With \fB\-mcpu=tsc701\fR, the compiler additionally
19785 optimizes it for the \s-1TEMIC\s0 SPARClet chip.
19786 .Sp
19787 With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
19788 architecture.  This adds 64\-bit integer and floating-point move instructions,
19789 3 additional floating-point condition code registers and conditional move
19790 instructions.  With \fB\-mcpu=ultrasparc\fR, the compiler additionally
19791 optimizes it for the Sun UltraSPARC I/II/IIi chips.  With
19792 \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
19793 Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+ chips.  With
19794 \&\fB\-mcpu=niagara\fR, the compiler additionally optimizes it for
19795 Sun UltraSPARC T1 chips.  With \fB\-mcpu=niagara2\fR, the compiler
19796 additionally optimizes it for Sun UltraSPARC T2 chips. With
19797 \&\fB\-mcpu=niagara3\fR, the compiler additionally optimizes it for Sun
19798 UltraSPARC T3 chips.  With \fB\-mcpu=niagara4\fR, the compiler
19799 additionally optimizes it for Sun UltraSPARC T4 chips.
19800 .RE
19801 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
19802 .IX Item "-mtune=cpu_type"
19803 Set the instruction scheduling parameters for machine type
19804 \&\fIcpu_type\fR, but do not set the instruction set or register set that the
19805 option \fB\-mcpu=\fR\fIcpu_type\fR does.
19806 .Sp
19807 The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
19808 \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
19809 that select a particular \s-1CPU\s0 implementation.  Those are \fBcypress\fR,
19810 \&\fBsupersparc\fR, \fBhypersparc\fR, \fBleon\fR, \fBleon3\fR,
19811 \&\fBleon3v7\fR, \fBf930\fR, \fBf934\fR, \fBsparclite86x\fR, \fBtsc701\fR,
19812 \&\fBultrasparc\fR, \fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR,
19813 \&\fBniagara3\fR and \fBniagara4\fR.  With native Solaris and GNU/Linux
19814 toolchains, \fBnative\fR can also be used.
19815 .IP "\fB\-mv8plus\fR" 4
19816 .IX Item "-mv8plus"
19817 .PD 0
19818 .IP "\fB\-mno\-v8plus\fR" 4
19819 .IX Item "-mno-v8plus"
19820 .PD
19821 With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+ ABI. \s0 The
19822 difference from the V8 \s-1ABI\s0 is that the global and out registers are
19823 considered 64 bits wide.  This is enabled by default on Solaris in 32\-bit
19824 mode for all \s-1SPARC\-V9\s0 processors.
19825 .IP "\fB\-mvis\fR" 4
19826 .IX Item "-mvis"
19827 .PD 0
19828 .IP "\fB\-mno\-vis\fR" 4
19829 .IX Item "-mno-vis"
19830 .PD
19831 With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
19832 Visual Instruction Set extensions.  The default is \fB\-mno\-vis\fR.
19833 .IP "\fB\-mvis2\fR" 4
19834 .IX Item "-mvis2"
19835 .PD 0
19836 .IP "\fB\-mno\-vis2\fR" 4
19837 .IX Item "-mno-vis2"
19838 .PD
19839 With \fB\-mvis2\fR, \s-1GCC\s0 generates code that takes advantage of
19840 version 2.0 of the UltraSPARC Visual Instruction Set extensions.  The
19841 default is \fB\-mvis2\fR when targeting a cpu that supports such
19842 instructions, such as UltraSPARC-III and later.  Setting \fB\-mvis2\fR
19843 also sets \fB\-mvis\fR.
19844 .IP "\fB\-mvis3\fR" 4
19845 .IX Item "-mvis3"
19846 .PD 0
19847 .IP "\fB\-mno\-vis3\fR" 4
19848 .IX Item "-mno-vis3"
19849 .PD
19850 With \fB\-mvis3\fR, \s-1GCC\s0 generates code that takes advantage of
19851 version 3.0 of the UltraSPARC Visual Instruction Set extensions.  The
19852 default is \fB\-mvis3\fR when targeting a cpu that supports such
19853 instructions, such as niagara\-3 and later.  Setting \fB\-mvis3\fR
19854 also sets \fB\-mvis2\fR and \fB\-mvis\fR.
19855 .IP "\fB\-mcbcond\fR" 4
19856 .IX Item "-mcbcond"
19857 .PD 0
19858 .IP "\fB\-mno\-cbcond\fR" 4
19859 .IX Item "-mno-cbcond"
19860 .PD
19861 With \fB\-mcbcond\fR, \s-1GCC\s0 generates code that takes advantage of
19862 compare-and-branch instructions, as defined in the Sparc Architecture 2011.
19863 The default is \fB\-mcbcond\fR when targeting a cpu that supports such
19864 instructions, such as niagara\-4 and later.
19865 .IP "\fB\-mpopc\fR" 4
19866 .IX Item "-mpopc"
19867 .PD 0
19868 .IP "\fB\-mno\-popc\fR" 4
19869 .IX Item "-mno-popc"
19870 .PD
19871 With \fB\-mpopc\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
19872 population count instruction.  The default is \fB\-mpopc\fR
19873 when targeting a cpu that supports such instructions, such as Niagara\-2 and
19874 later.
19875 .IP "\fB\-mfmaf\fR" 4
19876 .IX Item "-mfmaf"
19877 .PD 0
19878 .IP "\fB\-mno\-fmaf\fR" 4
19879 .IX Item "-mno-fmaf"
19880 .PD
19881 With \fB\-mfmaf\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
19882 Fused Multiply-Add Floating-point extensions.  The default is \fB\-mfmaf\fR
19883 when targeting a cpu that supports such instructions, such as Niagara\-3 and
19884 later.
19885 .IP "\fB\-mfix\-at697f\fR" 4
19886 .IX Item "-mfix-at697f"
19887 Enable the documented workaround for the single erratum of the Atmel \s-1AT697F\s0
19888 processor (which corresponds to erratum #13 of the \s-1AT697E\s0 processor).
19889 .IP "\fB\-mfix\-ut699\fR" 4
19890 .IX Item "-mfix-ut699"
19891 Enable the documented workarounds for the floating-point errata and the data
19892 cache nullify errata of the \s-1UT699\s0 processor.
19893 .PP
19894 These \fB\-m\fR options are supported in addition to the above
19895 on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
19896 .IP "\fB\-m32\fR" 4
19897 .IX Item "-m32"
19898 .PD 0
19899 .IP "\fB\-m64\fR" 4
19900 .IX Item "-m64"
19901 .PD
19902 Generate code for a 32\-bit or 64\-bit environment.
19903 The 32\-bit environment sets int, long and pointer to 32 bits.
19904 The 64\-bit environment sets int to 32 bits and long and pointer
19905 to 64 bits.
19906 .IP "\fB\-mcmodel=\fR\fIwhich\fR" 4
19907 .IX Item "-mcmodel=which"
19908 Set the code model to one of
19909 .RS 4
19910 .IP "\fBmedlow\fR" 4
19911 .IX Item "medlow"
19912 The Medium/Low code model: 64\-bit addresses, programs
19913 must be linked in the low 32 bits of memory.  Programs can be statically
19914 or dynamically linked.
19915 .IP "\fBmedmid\fR" 4
19916 .IX Item "medmid"
19917 The Medium/Middle code model: 64\-bit addresses, programs
19918 must be linked in the low 44 bits of memory, the text and data segments must
19919 be less than 2GB in size and the data segment must be located within 2GB of
19920 the text segment.
19921 .IP "\fBmedany\fR" 4
19922 .IX Item "medany"
19923 The Medium/Anywhere code model: 64\-bit addresses, programs
19924 may be linked anywhere in memory, the text and data segments must be less
19925 than 2GB in size and the data segment must be located within 2GB of the
19926 text segment.
19927 .IP "\fBembmedany\fR" 4
19928 .IX Item "embmedany"
19929 The Medium/Anywhere code model for embedded systems:
19930 64\-bit addresses, the text and data segments must be less than 2GB in
19931 size, both starting anywhere in memory (determined at link time).  The
19932 global register \f(CW%g4\fR points to the base of the data segment.  Programs
19933 are statically linked and \s-1PIC\s0 is not supported.
19934 .RE
19935 .RS 4
19936 .RE
19937 .IP "\fB\-mmemory\-model=\fR\fImem-model\fR" 4
19938 .IX Item "-mmemory-model=mem-model"
19939 Set the memory model in force on the processor to one of
19940 .RS 4
19941 .IP "\fBdefault\fR" 4
19942 .IX Item "default"
19943 The default memory model for the processor and operating system.
19944 .IP "\fBrmo\fR" 4
19945 .IX Item "rmo"
19946 Relaxed Memory Order
19947 .IP "\fBpso\fR" 4
19948 .IX Item "pso"
19949 Partial Store Order
19950 .IP "\fBtso\fR" 4
19951 .IX Item "tso"
19952 Total Store Order
19953 .IP "\fBsc\fR" 4
19954 .IX Item "sc"
19955 Sequential Consistency
19956 .RE
19957 .RS 4
19958 .Sp
19959 These memory models are formally defined in Appendix D of the Sparc V9
19960 architecture manual, as set in the processor's \f(CW\*(C`PSTATE.MM\*(C'\fR field.
19961 .RE
19962 .IP "\fB\-mstack\-bias\fR" 4
19963 .IX Item "-mstack-bias"
19964 .PD 0
19965 .IP "\fB\-mno\-stack\-bias\fR" 4
19966 .IX Item "-mno-stack-bias"
19967 .PD
19968 With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
19969 frame pointer if present, are offset by \-2047 which must be added back
19970 when making stack frame references.  This is the default in 64\-bit mode.
19971 Otherwise, assume no such offset is present.
19972 .PP
19973 \fI\s-1SPU\s0 Options\fR
19974 .IX Subsection "SPU Options"
19975 .PP
19976 These \fB\-m\fR options are supported on the \s-1SPU:\s0
19977 .IP "\fB\-mwarn\-reloc\fR" 4
19978 .IX Item "-mwarn-reloc"
19979 .PD 0
19980 .IP "\fB\-merror\-reloc\fR" 4
19981 .IX Item "-merror-reloc"
19982 .PD
19983 The loader for \s-1SPU\s0 does not handle dynamic relocations.  By default, \s-1GCC\s0
19984 gives an error when it generates code that requires a dynamic
19985 relocation.  \fB\-mno\-error\-reloc\fR disables the error,
19986 \&\fB\-mwarn\-reloc\fR generates a warning instead.
19987 .IP "\fB\-msafe\-dma\fR" 4
19988 .IX Item "-msafe-dma"
19989 .PD 0
19990 .IP "\fB\-munsafe\-dma\fR" 4
19991 .IX Item "-munsafe-dma"
19992 .PD
19993 Instructions that initiate or test completion of \s-1DMA\s0 must not be
19994 reordered with respect to loads and stores of the memory that is being
19995 accessed.
19996 With \fB\-munsafe\-dma\fR you must use the \f(CW\*(C`volatile\*(C'\fR keyword to protect
19997 memory accesses, but that can lead to inefficient code in places where the
19998 memory is known to not change.  Rather than mark the memory as volatile,
19999 you can use \fB\-msafe\-dma\fR to tell the compiler to treat
20000 the \s-1DMA\s0 instructions as potentially affecting all memory.
20001 .IP "\fB\-mbranch\-hints\fR" 4
20002 .IX Item "-mbranch-hints"
20003 By default, \s-1GCC\s0 generates a branch hint instruction to avoid
20004 pipeline stalls for always-taken or probably-taken branches.  A hint
20005 is not generated closer than 8 instructions away from its branch.
20006 There is little reason to disable them, except for debugging purposes,
20007 or to make an object a little bit smaller.
20008 .IP "\fB\-msmall\-mem\fR" 4
20009 .IX Item "-msmall-mem"
20010 .PD 0
20011 .IP "\fB\-mlarge\-mem\fR" 4
20012 .IX Item "-mlarge-mem"
20013 .PD
20014 By default, \s-1GCC\s0 generates code assuming that addresses are never larger
20015 than 18 bits.  With \fB\-mlarge\-mem\fR code is generated that assumes
20016 a full 32\-bit address.
20017 .IP "\fB\-mstdmain\fR" 4
20018 .IX Item "-mstdmain"
20019 By default, \s-1GCC\s0 links against startup code that assumes the SPU-style
20020 main function interface (which has an unconventional parameter list).
20021 With \fB\-mstdmain\fR, \s-1GCC\s0 links your program against startup
20022 code that assumes a C99\-style interface to \f(CW\*(C`main\*(C'\fR, including a
20023 local copy of \f(CW\*(C`argv\*(C'\fR strings.
20024 .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
20025 .IX Item "-mfixed-range=register-range"
20026 Generate code treating the given register range as fixed registers.
20027 A fixed register is one that the register allocator cannot use.  This is
20028 useful when compiling kernel code.  A register range is specified as
20029 two registers separated by a dash.  Multiple register ranges can be
20030 specified separated by a comma.
20031 .IP "\fB\-mea32\fR" 4
20032 .IX Item "-mea32"
20033 .PD 0
20034 .IP "\fB\-mea64\fR" 4
20035 .IX Item "-mea64"
20036 .PD
20037 Compile code assuming that pointers to the \s-1PPU\s0 address space accessed
20038 via the \f(CW\*(C`_\|_ea\*(C'\fR named address space qualifier are either 32 or 64
20039 bits wide.  The default is 32 bits.  As this is an ABI-changing option,
20040 all object code in an executable must be compiled with the same setting.
20041 .IP "\fB\-maddress\-space\-conversion\fR" 4
20042 .IX Item "-maddress-space-conversion"
20043 .PD 0
20044 .IP "\fB\-mno\-address\-space\-conversion\fR" 4
20045 .IX Item "-mno-address-space-conversion"
20046 .PD
20047 Allow/disallow treating the \f(CW\*(C`_\|_ea\*(C'\fR address space as superset
20048 of the generic address space.  This enables explicit type casts
20049 between \f(CW\*(C`_\|_ea\*(C'\fR and generic pointer as well as implicit
20050 conversions of generic pointers to \f(CW\*(C`_\|_ea\*(C'\fR pointers.  The
20051 default is to allow address space pointer conversions.
20052 .IP "\fB\-mcache\-size=\fR\fIcache-size\fR" 4
20053 .IX Item "-mcache-size=cache-size"
20054 This option controls the version of libgcc that the compiler links to an
20055 executable and selects a software-managed cache for accessing variables
20056 in the \f(CW\*(C`_\|_ea\*(C'\fR address space with a particular cache size.  Possible
20057 options for \fIcache-size\fR are \fB8\fR, \fB16\fR, \fB32\fR, \fB64\fR
20058 and \fB128\fR.  The default cache size is 64KB.
20059 .IP "\fB\-matomic\-updates\fR" 4
20060 .IX Item "-matomic-updates"
20061 .PD 0
20062 .IP "\fB\-mno\-atomic\-updates\fR" 4
20063 .IX Item "-mno-atomic-updates"
20064 .PD
20065 This option controls the version of libgcc that the compiler links to an
20066 executable and selects whether atomic updates to the software-managed
20067 cache of PPU-side variables are used.  If you use atomic updates, changes
20068 to a \s-1PPU\s0 variable from \s-1SPU\s0 code using the \f(CW\*(C`_\|_ea\*(C'\fR named address space
20069 qualifier do not interfere with changes to other \s-1PPU\s0 variables residing
20070 in the same cache line from \s-1PPU\s0 code.  If you do not use atomic updates,
20071 such interference may occur; however, writing back cache lines is
20072 more efficient.  The default behavior is to use atomic updates.
20073 .IP "\fB\-mdual\-nops\fR" 4
20074 .IX Item "-mdual-nops"
20075 .PD 0
20076 .IP "\fB\-mdual\-nops=\fR\fIn\fR" 4
20077 .IX Item "-mdual-nops=n"
20078 .PD
20079 By default, \s-1GCC\s0 inserts nops to increase dual issue when it expects
20080 it to increase performance.  \fIn\fR can be a value from 0 to 10.  A
20081 smaller \fIn\fR inserts fewer nops.  10 is the default, 0 is the
20082 same as \fB\-mno\-dual\-nops\fR.  Disabled with \fB\-Os\fR.
20083 .IP "\fB\-mhint\-max\-nops=\fR\fIn\fR" 4
20084 .IX Item "-mhint-max-nops=n"
20085 Maximum number of nops to insert for a branch hint.  A branch hint must
20086 be at least 8 instructions away from the branch it is affecting.  \s-1GCC\s0
20087 inserts up to \fIn\fR nops to enforce this, otherwise it does not
20088 generate the branch hint.
20089 .IP "\fB\-mhint\-max\-distance=\fR\fIn\fR" 4
20090 .IX Item "-mhint-max-distance=n"
20091 The encoding of the branch hint instruction limits the hint to be within
20092 256 instructions of the branch it is affecting.  By default, \s-1GCC\s0 makes
20093 sure it is within 125.
20094 .IP "\fB\-msafe\-hints\fR" 4
20095 .IX Item "-msafe-hints"
20096 Work around a hardware bug that causes the \s-1SPU\s0 to stall indefinitely.
20097 By default, \s-1GCC\s0 inserts the \f(CW\*(C`hbrp\*(C'\fR instruction to make sure
20098 this stall won't happen.
20099 .PP
20100 \fIOptions for System V\fR
20101 .IX Subsection "Options for System V"
20102 .PP
20103 These additional options are available on System V Release 4 for
20104 compatibility with other compilers on those systems:
20105 .IP "\fB\-G\fR" 4
20106 .IX Item "-G"
20107 Create a shared object.
20108 It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
20109 .IP "\fB\-Qy\fR" 4
20110 .IX Item "-Qy"
20111 Identify the versions of each tool used by the compiler, in a
20112 \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
20113 .IP "\fB\-Qn\fR" 4
20114 .IX Item "-Qn"
20115 Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
20116 the default).
20117 .IP "\fB\-YP,\fR\fIdirs\fR" 4
20118 .IX Item "-YP,dirs"
20119 Search the directories \fIdirs\fR, and no others, for libraries
20120 specified with \fB\-l\fR.
20121 .IP "\fB\-Ym,\fR\fIdir\fR" 4
20122 .IX Item "-Ym,dir"
20123 Look in the directory \fIdir\fR to find the M4 preprocessor.
20124 The assembler uses this option.
20125 .PP
20126 \fITILE-Gx Options\fR
20127 .IX Subsection "TILE-Gx Options"
20128 .PP
20129 These \fB\-m\fR options are supported on the TILE-Gx:
20130 .IP "\fB\-mcmodel=small\fR" 4
20131 .IX Item "-mcmodel=small"
20132 Generate code for the small model.  The distance for direct calls is
20133 limited to 500M in either direction.  PC-relative addresses are 32
20134 bits.  Absolute addresses support the full address range.
20135 .IP "\fB\-mcmodel=large\fR" 4
20136 .IX Item "-mcmodel=large"
20137 Generate code for the large model.  There is no limitation on call
20138 distance, pc-relative addresses, or absolute addresses.
20139 .IP "\fB\-mcpu=\fR\fIname\fR" 4
20140 .IX Item "-mcpu=name"
20141 Selects the type of \s-1CPU\s0 to be targeted.  Currently the only supported
20142 type is \fBtilegx\fR.
20143 .IP "\fB\-m32\fR" 4
20144 .IX Item "-m32"
20145 .PD 0
20146 .IP "\fB\-m64\fR" 4
20147 .IX Item "-m64"
20148 .PD
20149 Generate code for a 32\-bit or 64\-bit environment.  The 32\-bit
20150 environment sets int, long, and pointer to 32 bits.  The 64\-bit
20151 environment sets int to 32 bits and long and pointer to 64 bits.
20152 .IP "\fB\-mbig\-endian\fR" 4
20153 .IX Item "-mbig-endian"
20154 .PD 0
20155 .IP "\fB\-mlittle\-endian\fR" 4
20156 .IX Item "-mlittle-endian"
20157 .PD
20158 Generate code in big/little endian mode, respectively.
20159 .PP
20160 \fITILEPro Options\fR
20161 .IX Subsection "TILEPro Options"
20162 .PP
20163 These \fB\-m\fR options are supported on the TILEPro:
20164 .IP "\fB\-mcpu=\fR\fIname\fR" 4
20165 .IX Item "-mcpu=name"
20166 Selects the type of \s-1CPU\s0 to be targeted.  Currently the only supported
20167 type is \fBtilepro\fR.
20168 .IP "\fB\-m32\fR" 4
20169 .IX Item "-m32"
20170 Generate code for a 32\-bit environment, which sets int, long, and
20171 pointer to 32 bits.  This is the only supported behavior so the flag
20172 is essentially ignored.
20173 .PP
20174 \fIV850 Options\fR
20175 .IX Subsection "V850 Options"
20176 .PP
20177 These \fB\-m\fR options are defined for V850 implementations:
20178 .IP "\fB\-mlong\-calls\fR" 4
20179 .IX Item "-mlong-calls"
20180 .PD 0
20181 .IP "\fB\-mno\-long\-calls\fR" 4
20182 .IX Item "-mno-long-calls"
20183 .PD
20184 Treat all calls as being far away (near).  If calls are assumed to be
20185 far away, the compiler always loads the function's address into a
20186 register, and calls indirect through the pointer.
20187 .IP "\fB\-mno\-ep\fR" 4
20188 .IX Item "-mno-ep"
20189 .PD 0
20190 .IP "\fB\-mep\fR" 4
20191 .IX Item "-mep"
20192 .PD
20193 Do not optimize (do optimize) basic blocks that use the same index
20194 pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
20195 use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions.  The \fB\-mep\fR
20196 option is on by default if you optimize.
20197 .IP "\fB\-mno\-prolog\-function\fR" 4
20198 .IX Item "-mno-prolog-function"
20199 .PD 0
20200 .IP "\fB\-mprolog\-function\fR" 4
20201 .IX Item "-mprolog-function"
20202 .PD
20203 Do not use (do use) external functions to save and restore registers
20204 at the prologue and epilogue of a function.  The external functions
20205 are slower, but use less code space if more than one function saves
20206 the same number of registers.  The \fB\-mprolog\-function\fR option
20207 is on by default if you optimize.
20208 .IP "\fB\-mspace\fR" 4
20209 .IX Item "-mspace"
20210 Try to make the code as small as possible.  At present, this just turns
20211 on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
20212 .IP "\fB\-mtda=\fR\fIn\fR" 4
20213 .IX Item "-mtda=n"
20214 Put static or global variables whose size is \fIn\fR bytes or less into
20215 the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to.  The tiny data
20216 area can hold up to 256 bytes in total (128 bytes for byte references).
20217 .IP "\fB\-msda=\fR\fIn\fR" 4
20218 .IX Item "-msda=n"
20219 Put static or global variables whose size is \fIn\fR bytes or less into
20220 the small data area that register \f(CW\*(C`gp\*(C'\fR points to.  The small data
20221 area can hold up to 64 kilobytes.
20222 .IP "\fB\-mzda=\fR\fIn\fR" 4
20223 .IX Item "-mzda=n"
20224 Put static or global variables whose size is \fIn\fR bytes or less into
20225 the first 32 kilobytes of memory.
20226 .IP "\fB\-mv850\fR" 4
20227 .IX Item "-mv850"
20228 Specify that the target processor is the V850.
20229 .IP "\fB\-mv850e3v5\fR" 4
20230 .IX Item "-mv850e3v5"
20231 Specify that the target processor is the V850E3V5.  The preprocessor
20232 constant \f(CW\*(C`_\|_v850e3v5_\|_\*(C'\fR is defined if this option is used.
20233 .IP "\fB\-mv850e2v4\fR" 4
20234 .IX Item "-mv850e2v4"
20235 Specify that the target processor is the V850E3V5.  This is an alias for
20236 the \fB\-mv850e3v5\fR option.
20237 .IP "\fB\-mv850e2v3\fR" 4
20238 .IX Item "-mv850e2v3"
20239 Specify that the target processor is the V850E2V3.  The preprocessor
20240 constant \f(CW\*(C`_\|_v850e2v3_\|_\*(C'\fR is defined if this option is used.
20241 .IP "\fB\-mv850e2\fR" 4
20242 .IX Item "-mv850e2"
20243 Specify that the target processor is the V850E2.  The preprocessor
20244 constant \f(CW\*(C`_\|_v850e2_\|_\*(C'\fR is defined if this option is used.
20245 .IP "\fB\-mv850e1\fR" 4
20246 .IX Item "-mv850e1"
20247 Specify that the target processor is the V850E1.  The preprocessor
20248 constants \f(CW\*(C`_\|_v850e1_\|_\*(C'\fR and \f(CW\*(C`_\|_v850e_\|_\*(C'\fR are defined if
20249 this option is used.
20250 .IP "\fB\-mv850es\fR" 4
20251 .IX Item "-mv850es"
20252 Specify that the target processor is the V850ES.  This is an alias for
20253 the \fB\-mv850e1\fR option.
20254 .IP "\fB\-mv850e\fR" 4
20255 .IX Item "-mv850e"
20256 Specify that the target processor is the V850E.  The preprocessor
20257 constant \f(CW\*(C`_\|_v850e_\|_\*(C'\fR is defined if this option is used.
20258 .Sp
20259 If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
20260 nor \fB\-mv850e2\fR nor \fB\-mv850e2v3\fR nor \fB\-mv850e3v5\fR
20261 are defined then a default target processor is chosen and the
20262 relevant \fB_\|_v850*_\|_\fR preprocessor constant is defined.
20263 .Sp
20264 The preprocessor constants \f(CW\*(C`_\|_v850\*(C'\fR and \f(CW\*(C`_\|_v851_\|_\*(C'\fR are always
20265 defined, regardless of which processor variant is the target.
20266 .IP "\fB\-mdisable\-callt\fR" 4
20267 .IX Item "-mdisable-callt"
20268 .PD 0
20269 .IP "\fB\-mno\-disable\-callt\fR" 4
20270 .IX Item "-mno-disable-callt"
20271 .PD
20272 This option suppresses generation of the \f(CW\*(C`CALLT\*(C'\fR instruction for the
20273 v850e, v850e1, v850e2, v850e2v3 and v850e3v5 flavors of the v850
20274 architecture.
20275 .Sp
20276 This option is enabled by default when the \s-1RH850 ABI\s0 is
20277 in use (see \fB\-mrh850\-abi\fR), and disabled by default when the
20278 \&\s-1GCC ABI\s0 is in use.  If \f(CW\*(C`CALLT\*(C'\fR instructions are being generated
20279 then the C preprocessor symbol \f(CW\*(C`_\|_V850_CALLT_\|_\*(C'\fR is defined.
20280 .IP "\fB\-mrelax\fR" 4
20281 .IX Item "-mrelax"
20282 .PD 0
20283 .IP "\fB\-mno\-relax\fR" 4
20284 .IX Item "-mno-relax"
20285 .PD
20286 Pass on (or do not pass on) the \fB\-mrelax\fR command-line option
20287 to the assembler.
20288 .IP "\fB\-mlong\-jumps\fR" 4
20289 .IX Item "-mlong-jumps"
20290 .PD 0
20291 .IP "\fB\-mno\-long\-jumps\fR" 4
20292 .IX Item "-mno-long-jumps"
20293 .PD
20294 Disable (or re-enable) the generation of PC-relative jump instructions.
20295 .IP "\fB\-msoft\-float\fR" 4
20296 .IX Item "-msoft-float"
20297 .PD 0
20298 .IP "\fB\-mhard\-float\fR" 4
20299 .IX Item "-mhard-float"
20300 .PD
20301 Disable (or re-enable) the generation of hardware floating point
20302 instructions.  This option is only significant when the target
20303 architecture is \fBV850E2V3\fR or higher.  If hardware floating point
20304 instructions are being generated then the C preprocessor symbol
20305 \&\f(CW\*(C`_\|_FPU_OK_\|_\*(C'\fR is defined, otherwise the symbol
20306 \&\f(CW\*(C`_\|_NO_FPU_\|_\*(C'\fR is defined.
20307 .IP "\fB\-mloop\fR" 4
20308 .IX Item "-mloop"
20309 Enables the use of the e3v5 \s-1LOOP\s0 instruction.  The use of this
20310 instruction is not enabled by default when the e3v5 architecture is
20311 selected because its use is still experimental.
20312 .IP "\fB\-mrh850\-abi\fR" 4
20313 .IX Item "-mrh850-abi"
20314 .PD 0
20315 .IP "\fB\-mghs\fR" 4
20316 .IX Item "-mghs"
20317 .PD
20318 Enables support for the \s-1RH850\s0 version of the V850 \s-1ABI. \s0 This is the
20319 default.  With this version of the \s-1ABI\s0 the following rules apply:
20320 .RS 4
20321 .IP "*" 4
20322 Integer sized structures and unions are returned via a memory pointer
20323 rather than a register.
20324 .IP "*" 4
20325 Large structures and unions (more than 8 bytes in size) are passed by
20326 value.
20327 .IP "*" 4
20328 Functions are aligned to 16\-bit boundaries.
20329 .IP "*" 4
20330 The \fB\-m8byte\-align\fR command-line option is supported.
20331 .IP "*" 4
20332 The \fB\-mdisable\-callt\fR command-line option is enabled by
20333 default.  The \fB\-mno\-disable\-callt\fR command-line option is not
20334 supported.
20335 .RE
20336 .RS 4
20337 .Sp
20338 When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
20339 \&\f(CW\*(C`_\|_V850_RH850_ABI_\|_\*(C'\fR is defined.
20340 .RE
20341 .IP "\fB\-mgcc\-abi\fR" 4
20342 .IX Item "-mgcc-abi"
20343 Enables support for the old \s-1GCC\s0 version of the V850 \s-1ABI. \s0 With this
20344 version of the \s-1ABI\s0 the following rules apply:
20345 .RS 4
20346 .IP "*" 4
20347 Integer sized structures and unions are returned in register \f(CW\*(C`r10\*(C'\fR.
20348 .IP "*" 4
20349 Large structures and unions (more than 8 bytes in size) are passed by
20350 reference.
20351 .IP "*" 4
20352 Functions are aligned to 32\-bit boundaries, unless optimizing for
20353 size.
20354 .IP "*" 4
20355 The \fB\-m8byte\-align\fR command-line option is not supported.
20356 .IP "*" 4
20357 The \fB\-mdisable\-callt\fR command-line option is supported but not
20358 enabled by default.
20359 .RE
20360 .RS 4
20361 .Sp
20362 When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
20363 \&\f(CW\*(C`_\|_V850_GCC_ABI_\|_\*(C'\fR is defined.
20364 .RE
20365 .IP "\fB\-m8byte\-align\fR" 4
20366 .IX Item "-m8byte-align"
20367 .PD 0
20368 .IP "\fB\-mno\-8byte\-align\fR" 4
20369 .IX Item "-mno-8byte-align"
20370 .PD
20371 Enables support for \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long long\*(C'\fR types to be
20372 aligned on 8\-byte boundaries.  The default is to restrict the
20373 alignment of all objects to at most 4\-bytes.  When
20374 \&\fB\-m8byte\-align\fR is in effect the C preprocessor symbol
20375 \&\f(CW\*(C`_\|_V850_8BYTE_ALIGN_\|_\*(C'\fR is defined.
20376 .IP "\fB\-mbig\-switch\fR" 4
20377 .IX Item "-mbig-switch"
20378 Generate code suitable for big switch tables.  Use this option only if
20379 the assembler/linker complain about out of range branches within a switch
20380 table.
20381 .IP "\fB\-mapp\-regs\fR" 4
20382 .IX Item "-mapp-regs"
20383 This option causes r2 and r5 to be used in the code generated by
20384 the compiler.  This setting is the default.
20385 .IP "\fB\-mno\-app\-regs\fR" 4
20386 .IX Item "-mno-app-regs"
20387 This option causes r2 and r5 to be treated as fixed registers.
20388 .PP
20389 \fI\s-1VAX\s0 Options\fR
20390 .IX Subsection "VAX Options"
20391 .PP
20392 These \fB\-m\fR options are defined for the \s-1VAX:\s0
20393 .IP "\fB\-munix\fR" 4
20394 .IX Item "-munix"
20395 Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
20396 that the Unix assembler for the \s-1VAX\s0 cannot handle across long
20397 ranges.
20398 .IP "\fB\-mgnu\fR" 4
20399 .IX Item "-mgnu"
20400 Do output those jump instructions, on the assumption that the
20401 \&\s-1GNU\s0 assembler is being used.
20402 .IP "\fB\-mg\fR" 4
20403 .IX Item "-mg"
20404 Output code for G\-format floating-point numbers instead of D\-format.
20405 .PP
20406 \fIVisium Options\fR
20407 .IX Subsection "Visium Options"
20408 .IP "\fB\-mdebug\fR" 4
20409 .IX Item "-mdebug"
20410 A program which performs file I/O and is destined to run on an \s-1MCM\s0 target
20411 should be linked with this option.  It causes the libraries libc.a and
20412 libdebug.a to be linked.  The program should be run on the target under
20413 the control of the \s-1GDB\s0 remote debugging stub.
20414 .IP "\fB\-msim\fR" 4
20415 .IX Item "-msim"
20416 A program which performs file I/O and is destined to run on the simulator
20417 should be linked with option.  This causes libraries libc.a and libsim.a to
20418 be linked.
20419 .IP "\fB\-mfpu\fR" 4
20420 .IX Item "-mfpu"
20421 .PD 0
20422 .IP "\fB\-mhard\-float\fR" 4
20423 .IX Item "-mhard-float"
20424 .PD
20425 Generate code containing floating-point instructions.  This is the
20426 default.
20427 .IP "\fB\-mno\-fpu\fR" 4
20428 .IX Item "-mno-fpu"
20429 .PD 0
20430 .IP "\fB\-msoft\-float\fR" 4
20431 .IX Item "-msoft-float"
20432 .PD
20433 Generate code containing library calls for floating-point.
20434 .Sp
20435 \&\fB\-msoft\-float\fR changes the calling convention in the output file;
20436 therefore, it is only useful if you compile \fIall\fR of a program with
20437 this option.  In particular, you need to compile \fIlibgcc.a\fR, the
20438 library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
20439 this to work.
20440 .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
20441 .IX Item "-mcpu=cpu_type"
20442 Set the instruction set, register set, and instruction scheduling parameters
20443 for machine type \fIcpu_type\fR.  Supported values for \fIcpu_type\fR are
20444 \&\fBmcm\fR, \fBgr5\fR and \fBgr6\fR.
20445 .Sp
20446 \&\fBmcm\fR is a synonym of \fBgr5\fR present for backward compatibility.
20447 .Sp
20448 By default (unless configured otherwise), \s-1GCC\s0 generates code for the \s-1GR5\s0
20449 variant of the Visium architecture.
20450 .Sp
20451 With \fB\-mcpu=gr6\fR, \s-1GCC\s0 generates code for the \s-1GR6\s0 variant of the Visium
20452 architecture.  The only difference from \s-1GR5\s0 code is that the compiler will
20453 generate block move instructions.
20454 .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
20455 .IX Item "-mtune=cpu_type"
20456 Set the instruction scheduling parameters for machine type \fIcpu_type\fR,
20457 but do not set the instruction set or register set that the option
20458 \&\fB\-mcpu=\fR\fIcpu_type\fR would.
20459 .IP "\fB\-msv\-mode\fR" 4
20460 .IX Item "-msv-mode"
20461 Generate code for the supervisor mode, where there are no restrictions on
20462 the access to general registers.  This is the default.
20463 .IP "\fB\-muser\-mode\fR" 4
20464 .IX Item "-muser-mode"
20465 Generate code for the user mode, where the access to some general registers
20466 is forbidden: on the \s-1GR5,\s0 registers r24 to r31 cannot be accessed in this
20467 mode; on the \s-1GR6,\s0 only registers r29 to r31 are affected.
20468 .PP
20469 \fI\s-1VMS\s0 Options\fR
20470 .IX Subsection "VMS Options"
20471 .PP
20472 These \fB\-m\fR options are defined for the \s-1VMS\s0 implementations:
20473 .IP "\fB\-mvms\-return\-codes\fR" 4
20474 .IX Item "-mvms-return-codes"
20475 Return \s-1VMS\s0 condition codes from \f(CW\*(C`main\*(C'\fR. The default is to return POSIX-style
20476 condition (e.g. error) codes.
20477 .IP "\fB\-mdebug\-main=\fR\fIprefix\fR" 4
20478 .IX Item "-mdebug-main=prefix"
20479 Flag the first routine whose name starts with \fIprefix\fR as the main
20480 routine for the debugger.
20481 .IP "\fB\-mmalloc64\fR" 4
20482 .IX Item "-mmalloc64"
20483 Default to 64\-bit memory allocation routines.
20484 .IP "\fB\-mpointer\-size=\fR\fIsize\fR" 4
20485 .IX Item "-mpointer-size=size"
20486 Set the default size of pointers. Possible options for \fIsize\fR are
20487 \&\fB32\fR or \fBshort\fR for 32 bit pointers, \fB64\fR or \fBlong\fR
20488 for 64 bit pointers, and \fBno\fR for supporting only 32 bit pointers.
20489 The later option disables \f(CW\*(C`pragma pointer_size\*(C'\fR.
20490 .PP
20491 \fIVxWorks Options\fR
20492 .IX Subsection "VxWorks Options"
20493 .PP
20494 The options in this section are defined for all VxWorks targets.
20495 Options specific to the target hardware are listed with the other
20496 options for that target.
20497 .IP "\fB\-mrtp\fR" 4
20498 .IX Item "-mrtp"
20499 \&\s-1GCC\s0 can generate code for both VxWorks kernels and real time processes
20500 (RTPs).  This option switches from the former to the latter.  It also
20501 defines the preprocessor macro \f(CW\*(C`_\|_RTP_\|_\*(C'\fR.
20502 .IP "\fB\-non\-static\fR" 4
20503 .IX Item "-non-static"
20504 Link an \s-1RTP\s0 executable against shared libraries rather than static
20505 libraries.  The options \fB\-static\fR and \fB\-shared\fR can
20506 also be used for RTPs; \fB\-static\fR
20507 is the default.
20508 .IP "\fB\-Bstatic\fR" 4
20509 .IX Item "-Bstatic"
20510 .PD 0
20511 .IP "\fB\-Bdynamic\fR" 4
20512 .IX Item "-Bdynamic"
20513 .PD
20514 These options are passed down to the linker.  They are defined for
20515 compatibility with Diab.
20516 .IP "\fB\-Xbind\-lazy\fR" 4
20517 .IX Item "-Xbind-lazy"
20518 Enable lazy binding of function calls.  This option is equivalent to
20519 \&\fB\-Wl,\-z,now\fR and is defined for compatibility with Diab.
20520 .IP "\fB\-Xbind\-now\fR" 4
20521 .IX Item "-Xbind-now"
20522 Disable lazy binding of function calls.  This option is the default and
20523 is defined for compatibility with Diab.
20524 .PP
20525 \fIx86 Options\fR
20526 .IX Subsection "x86 Options"
20527 .PP
20528 These \fB\-m\fR options are defined for the x86 family of computers.
20529 .IP "\fB\-march=\fR\fIcpu-type\fR" 4
20530 .IX Item "-march=cpu-type"
20531 Generate instructions for the machine type \fIcpu-type\fR.  In contrast to
20532 \&\fB\-mtune=\fR\fIcpu-type\fR, which merely tunes the generated code 
20533 for the specified \fIcpu-type\fR, \fB\-march=\fR\fIcpu-type\fR allows \s-1GCC\s0
20534 to generate code that may not run at all on processors other than the one
20535 indicated.  Specifying \fB\-march=\fR\fIcpu-type\fR implies 
20536 \&\fB\-mtune=\fR\fIcpu-type\fR.
20537 .Sp
20538 The choices for \fIcpu-type\fR are:
20539 .RS 4
20540 .IP "\fBnative\fR" 4
20541 .IX Item "native"
20542 This selects the \s-1CPU\s0 to generate code for at compilation time by determining
20543 the processor type of the compiling machine.  Using \fB\-march=native\fR
20544 enables all instruction subsets supported by the local machine (hence
20545 the result might not run on different machines).  Using \fB\-mtune=native\fR
20546 produces code optimized for the local machine under the constraints
20547 of the selected instruction set.
20548 .IP "\fBi386\fR" 4
20549 .IX Item "i386"
20550 Original Intel i386 \s-1CPU.\s0
20551 .IP "\fBi486\fR" 4
20552 .IX Item "i486"
20553 Intel i486 \s-1CPU.  \s0(No scheduling is implemented for this chip.)
20554 .IP "\fBi586\fR" 4
20555 .IX Item "i586"
20556 .PD 0
20557 .IP "\fBpentium\fR" 4
20558 .IX Item "pentium"
20559 .PD
20560 Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
20561 .IP "\fBpentium-mmx\fR" 4
20562 .IX Item "pentium-mmx"
20563 Intel Pentium \s-1MMX CPU,\s0 based on Pentium core with \s-1MMX\s0 instruction set support.
20564 .IP "\fBpentiumpro\fR" 4
20565 .IX Item "pentiumpro"
20566 Intel Pentium Pro \s-1CPU.\s0
20567 .IP "\fBi686\fR" 4
20568 .IX Item "i686"
20569 When used with \fB\-march\fR, the Pentium Pro
20570 instruction set is used, so the code runs on all i686 family chips.
20571 When used with \fB\-mtune\fR, it has the same meaning as \fBgeneric\fR.
20572 .IP "\fBpentium2\fR" 4
20573 .IX Item "pentium2"
20574 Intel Pentium \s-1II CPU,\s0 based on Pentium Pro core with \s-1MMX\s0 instruction set
20575 support.
20576 .IP "\fBpentium3\fR" 4
20577 .IX Item "pentium3"
20578 .PD 0
20579 .IP "\fBpentium3m\fR" 4
20580 .IX Item "pentium3m"
20581 .PD
20582 Intel Pentium \s-1III CPU,\s0 based on Pentium Pro core with \s-1MMX\s0 and \s-1SSE\s0 instruction
20583 set support.
20584 .IP "\fBpentium-m\fR" 4
20585 .IX Item "pentium-m"
20586 Intel Pentium M; low-power version of Intel Pentium \s-1III CPU\s0
20587 with \s-1MMX, SSE\s0 and \s-1SSE2\s0 instruction set support.  Used by Centrino notebooks.
20588 .IP "\fBpentium4\fR" 4
20589 .IX Item "pentium4"
20590 .PD 0
20591 .IP "\fBpentium4m\fR" 4
20592 .IX Item "pentium4m"
20593 .PD
20594 Intel Pentium 4 \s-1CPU\s0 with \s-1MMX, SSE\s0 and \s-1SSE2\s0 instruction set support.
20595 .IP "\fBprescott\fR" 4
20596 .IX Item "prescott"
20597 Improved version of Intel Pentium 4 \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction
20598 set support.
20599 .IP "\fBnocona\fR" 4
20600 .IX Item "nocona"
20601 Improved version of Intel Pentium 4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE,
20602 SSE2\s0 and \s-1SSE3\s0 instruction set support.
20603 .IP "\fBcore2\fR" 4
20604 .IX Item "core2"
20605 Intel Core 2 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
20606 instruction set support.
20607 .IP "\fBnehalem\fR" 4
20608 .IX Item "nehalem"
20609 Intel Nehalem \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
20610 SSE4.1, SSE4.2\s0 and \s-1POPCNT\s0 instruction set support.
20611 .IP "\fBwestmere\fR" 4
20612 .IX Item "westmere"
20613 Intel Westmere \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
20614 SSE4.1, SSE4.2, POPCNT, AES\s0 and \s-1PCLMUL\s0 instruction set support.
20615 .IP "\fBsandybridge\fR" 4
20616 .IX Item "sandybridge"
20617 Intel Sandy Bridge \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
20618 SSE4.1, SSE4.2, POPCNT, AVX, AES\s0 and \s-1PCLMUL\s0 instruction set support.
20619 .IP "\fBivybridge\fR" 4
20620 .IX Item "ivybridge"
20621 Intel Ivy Bridge \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
20622 SSE4.1, SSE4.2, POPCNT, AVX, AES, PCLMUL, FSGSBASE, RDRND\s0 and F16C
20623 instruction set support.
20624 .IP "\fBhaswell\fR" 4
20625 .IX Item "haswell"
20626 Intel Haswell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
20627 SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
20628 BMI, BMI2\s0 and F16C instruction set support.
20629 .IP "\fBbroadwell\fR" 4
20630 .IX Item "broadwell"
20631 Intel Broadwell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
20632 SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
20633 BMI, BMI2, F16C, RDSEED, ADCX\s0 and \s-1PREFETCHW\s0 instruction set support.
20634 .IP "\fBbonnell\fR" 4
20635 .IX Item "bonnell"
20636 Intel Bonnell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
20637 instruction set support.
20638 .IP "\fBsilvermont\fR" 4
20639 .IX Item "silvermont"
20640 Intel Silvermont \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
20641 SSE4.1, SSE4.2, POPCNT, AES, PCLMUL\s0 and \s-1RDRND\s0 instruction set support.
20642 .IP "\fBknl\fR" 4
20643 .IX Item "knl"
20644 Intel Knight's Landing \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
20645 SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
20646 BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER\s0 and
20647 \&\s-1AVX512CD\s0 instruction set support.
20648 .IP "\fBk6\fR" 4
20649 .IX Item "k6"
20650 \&\s-1AMD K6 CPU\s0 with \s-1MMX\s0 instruction set support.
20651 .IP "\fBk6\-2\fR" 4
20652 .IX Item "k6-2"
20653 .PD 0
20654 .IP "\fBk6\-3\fR" 4
20655 .IX Item "k6-3"
20656 .PD
20657 Improved versions of \s-1AMD K6 CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
20658 .IP "\fBathlon\fR" 4
20659 .IX Item "athlon"
20660 .PD 0
20661 .IP "\fBathlon-tbird\fR" 4
20662 .IX Item "athlon-tbird"
20663 .PD
20664 \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX,\s0 3dNOW!, enhanced 3DNow! and \s-1SSE\s0 prefetch instructions
20665 support.
20666 .IP "\fBathlon\-4\fR" 4
20667 .IX Item "athlon-4"
20668 .PD 0
20669 .IP "\fBathlon-xp\fR" 4
20670 .IX Item "athlon-xp"
20671 .IP "\fBathlon-mp\fR" 4
20672 .IX Item "athlon-mp"
20673 .PD
20674 Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX,\s0 3DNow!, enhanced 3DNow! and full \s-1SSE\s0
20675 instruction set support.
20676 .IP "\fBk8\fR" 4
20677 .IX Item "k8"
20678 .PD 0
20679 .IP "\fBopteron\fR" 4
20680 .IX Item "opteron"
20681 .IP "\fBathlon64\fR" 4
20682 .IX Item "athlon64"
20683 .IP "\fBathlon-fx\fR" 4
20684 .IX Item "athlon-fx"
20685 .PD
20686 Processors based on the \s-1AMD K8\s0 core with x86\-64 instruction set support,
20687 including the \s-1AMD\s0 Opteron, Athlon 64, and Athlon 64 \s-1FX\s0 processors.
20688 (This supersets \s-1MMX, SSE, SSE2,\s0 3DNow!, enhanced 3DNow! and 64\-bit
20689 instruction set extensions.)
20690 .IP "\fBk8\-sse3\fR" 4
20691 .IX Item "k8-sse3"
20692 .PD 0
20693 .IP "\fBopteron\-sse3\fR" 4
20694 .IX Item "opteron-sse3"
20695 .IP "\fBathlon64\-sse3\fR" 4
20696 .IX Item "athlon64-sse3"
20697 .PD
20698 Improved versions of \s-1AMD K8\s0 cores with \s-1SSE3\s0 instruction set support.
20699 .IP "\fBamdfam10\fR" 4
20700 .IX Item "amdfam10"
20701 .PD 0
20702 .IP "\fBbarcelona\fR" 4
20703 .IX Item "barcelona"
20704 .PD
20705 CPUs based on \s-1AMD\s0 Family 10h cores with x86\-64 instruction set support.  (This
20706 supersets \s-1MMX, SSE, SSE2, SSE3, SSE4A,\s0 3DNow!, enhanced 3DNow!, \s-1ABM\s0 and 64\-bit
20707 instruction set extensions.)
20708 .IP "\fBbdver1\fR" 4
20709 .IX Item "bdver1"
20710 CPUs based on \s-1AMD\s0 Family 15h cores with x86\-64 instruction set support.  (This
20711 supersets \s-1FMA4, AVX, XOP, LWP, AES, PCL_MUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A,
20712 SSSE3, SSE4.1, SSE4.2, ABM\s0 and 64\-bit instruction set extensions.)
20713 .IP "\fBbdver2\fR" 4
20714 .IX Item "bdver2"
20715 \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support.  (This
20716 supersets \s-1BMI, TBM, F16C, FMA, FMA4, AVX, XOP, LWP, AES, PCL_MUL, CX16, MMX,
20717 SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM\s0 and 64\-bit instruction set 
20718 extensions.)
20719 .IP "\fBbdver3\fR" 4
20720 .IX Item "bdver3"
20721 \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support.  (This
20722 supersets \s-1BMI, TBM, F16C, FMA, FMA4, FSGSBASE, AVX, XOP, LWP, AES, 
20723 PCL_MUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM\s0 and 
20724 64\-bit instruction set extensions.
20725 .IP "\fBbdver4\fR" 4
20726 .IX Item "bdver4"
20727 \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support.  (This
20728 supersets \s-1BMI, BMI2, TBM, F16C, FMA, FMA4, FSGSBASE, AVX, AVX2, XOP, LWP, 
20729 AES, PCL_MUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, 
20730 SSE4.2, ABM\s0 and 64\-bit instruction set extensions.
20731 .IP "\fBbtver1\fR" 4
20732 .IX Item "btver1"
20733 CPUs based on \s-1AMD\s0 Family 14h cores with x86\-64 instruction set support.  (This
20734 supersets \s-1MMX, SSE, SSE2, SSE3, SSSE3, SSE4A, CX16, ABM\s0 and 64\-bit
20735 instruction set extensions.)
20736 .IP "\fBbtver2\fR" 4
20737 .IX Item "btver2"
20738 CPUs based on \s-1AMD\s0 Family 16h cores with x86\-64 instruction set support. This
20739 includes \s-1MOVBE, F16C, BMI, AVX, PCL_MUL, AES, SSE4.2, SSE4.1, CX16, ABM,
20740 SSE4A, SSSE3, SSE3, SSE2, SSE, MMX\s0 and 64\-bit instruction set extensions.
20741 .IP "\fBwinchip\-c6\fR" 4
20742 .IX Item "winchip-c6"
20743 \&\s-1IDT\s0 WinChip C6 \s-1CPU,\s0 dealt in same way as i486 with additional \s-1MMX\s0 instruction
20744 set support.
20745 .IP "\fBwinchip2\fR" 4
20746 .IX Item "winchip2"
20747 \&\s-1IDT\s0 WinChip 2 \s-1CPU,\s0 dealt in same way as i486 with additional \s-1MMX\s0 and 3DNow!
20748 instruction set support.
20749 .IP "\fBc3\fR" 4
20750 .IX Item "c3"
20751 \&\s-1VIA C3 CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.  (No scheduling is
20752 implemented for this chip.)
20753 .IP "\fBc3\-2\fR" 4
20754 .IX Item "c3-2"
20755 \&\s-1VIA C3\-2 \s0(Nehemiah/C5XL) \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.
20756 (No scheduling is
20757 implemented for this chip.)
20758 .IP "\fBgeode\fR" 4
20759 .IX Item "geode"
20760 \&\s-1AMD\s0 Geode embedded processor with \s-1MMX\s0 and 3DNow! instruction set support.
20761 .RE
20762 .RS 4
20763 .RE
20764 .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
20765 .IX Item "-mtune=cpu-type"
20766 Tune to \fIcpu-type\fR everything applicable about the generated code, except
20767 for the \s-1ABI\s0 and the set of available instructions.  
20768 While picking a specific \fIcpu-type\fR schedules things appropriately
20769 for that particular chip, the compiler does not generate any code that
20770 cannot run on the default machine type unless you use a
20771 \&\fB\-march=\fR\fIcpu-type\fR option.
20772 For example, if \s-1GCC\s0 is configured for i686\-pc\-linux\-gnu
20773 then \fB\-mtune=pentium4\fR generates code that is tuned for Pentium 4
20774 but still runs on i686 machines.
20775 .Sp
20776 The choices for \fIcpu-type\fR are the same as for \fB\-march\fR.
20777 In addition, \fB\-mtune\fR supports 2 extra choices for \fIcpu-type\fR:
20778 .RS 4
20779 .IP "\fBgeneric\fR" 4
20780 .IX Item "generic"
20781 Produce code optimized for the most common \s-1IA32/AMD64/EM64T\s0 processors.
20782 If you know the \s-1CPU\s0 on which your code will run, then you should use
20783 the corresponding \fB\-mtune\fR or \fB\-march\fR option instead of
20784 \&\fB\-mtune=generic\fR.  But, if you do not know exactly what \s-1CPU\s0 users
20785 of your application will have, then you should use this option.
20786 .Sp
20787 As new processors are deployed in the marketplace, the behavior of this
20788 option will change.  Therefore, if you upgrade to a newer version of
20789 \&\s-1GCC,\s0 code generation controlled by this option will change to reflect
20790 the processors
20791 that are most common at the time that version of \s-1GCC\s0 is released.
20792 .Sp
20793 There is no \fB\-march=generic\fR option because \fB\-march\fR
20794 indicates the instruction set the compiler can use, and there is no
20795 generic instruction set applicable to all processors.  In contrast,
20796 \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
20797 processors) for which the code is optimized.
20798 .IP "\fBintel\fR" 4
20799 .IX Item "intel"
20800 Produce code optimized for the most current Intel processors, which are
20801 Haswell and Silvermont for this version of \s-1GCC. \s0 If you know the \s-1CPU\s0
20802 on which your code will run, then you should use the corresponding
20803 \&\fB\-mtune\fR or \fB\-march\fR option instead of \fB\-mtune=intel\fR.
20804 But, if you want your application performs better on both Haswell and
20805 Silvermont, then you should use this option.
20806 .Sp
20807 As new Intel processors are deployed in the marketplace, the behavior of
20808 this option will change.  Therefore, if you upgrade to a newer version of
20809 \&\s-1GCC,\s0 code generation controlled by this option will change to reflect
20810 the most current Intel processors at the time that version of \s-1GCC\s0 is
20811 released.
20812 .Sp
20813 There is no \fB\-march=intel\fR option because \fB\-march\fR indicates
20814 the instruction set the compiler can use, and there is no common
20815 instruction set applicable to all processors.  In contrast,
20816 \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
20817 processors) for which the code is optimized.
20818 .RE
20819 .RS 4
20820 .RE
20821 .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
20822 .IX Item "-mcpu=cpu-type"
20823 A deprecated synonym for \fB\-mtune\fR.
20824 .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
20825 .IX Item "-mfpmath=unit"
20826 Generate floating-point arithmetic for selected unit \fIunit\fR.  The choices
20827 for \fIunit\fR are:
20828 .RS 4
20829 .IP "\fB387\fR" 4
20830 .IX Item "387"
20831 Use the standard 387 floating-point coprocessor present on the majority of chips and
20832 emulated otherwise.  Code compiled with this option runs almost everywhere.
20833 The temporary results are computed in 80\-bit precision instead of the precision
20834 specified by the type, resulting in slightly different results compared to most
20835 of other chips.  See \fB\-ffloat\-store\fR for more detailed description.
20836 .Sp
20837 This is the default choice for x86\-32 targets.
20838 .IP "\fBsse\fR" 4
20839 .IX Item "sse"
20840 Use scalar floating-point instructions present in the \s-1SSE\s0 instruction set.
20841 This instruction set is supported by Pentium \s-1III\s0 and newer chips,
20842 and in the \s-1AMD\s0 line
20843 by Athlon\-4, Athlon \s-1XP\s0 and Athlon \s-1MP\s0 chips.  The earlier version of the \s-1SSE\s0
20844 instruction set supports only single-precision arithmetic, thus the double and
20845 extended-precision arithmetic are still done using 387.  A later version, present
20846 only in Pentium 4 and \s-1AMD\s0 x86\-64 chips, supports double-precision
20847 arithmetic too.
20848 .Sp
20849 For the x86\-32 compiler, you must use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
20850 or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
20851 effective.  For the x86\-64 compiler, these extensions are enabled by default.
20852 .Sp
20853 The resulting code should be considerably faster in the majority of cases and avoid
20854 the numerical instability problems of 387 code, but may break some existing
20855 code that expects temporaries to be 80 bits.
20856 .Sp
20857 This is the default choice for the x86\-64 compiler.
20858 .IP "\fBsse,387\fR" 4
20859 .IX Item "sse,387"
20860 .PD 0
20861 .IP "\fBsse+387\fR" 4
20862 .IX Item "sse+387"
20863 .IP "\fBboth\fR" 4
20864 .IX Item "both"
20865 .PD
20866 Attempt to utilize both instruction sets at once.  This effectively doubles the
20867 amount of available registers, and on chips with separate execution units for
20868 387 and \s-1SSE\s0 the execution resources too.  Use this option with care, as it is
20869 still experimental, because the \s-1GCC\s0 register allocator does not model separate
20870 functional units well, resulting in unstable performance.
20871 .RE
20872 .RS 4
20873 .RE
20874 .IP "\fB\-masm=\fR\fIdialect\fR" 4
20875 .IX Item "-masm=dialect"
20876 Output assembly instructions using selected \fIdialect\fR.  Also affects
20877 which dialect is used for basic \f(CW\*(C`asm\*(C'\fR and
20878 extended \f(CW\*(C`asm\*(C'\fR. Supported choices (in dialect
20879 order) are \fBatt\fR or \fBintel\fR. The default is \fBatt\fR. Darwin does
20880 not support \fBintel\fR.
20881 .IP "\fB\-mieee\-fp\fR" 4
20882 .IX Item "-mieee-fp"
20883 .PD 0
20884 .IP "\fB\-mno\-ieee\-fp\fR" 4
20885 .IX Item "-mno-ieee-fp"
20886 .PD
20887 Control whether or not the compiler uses \s-1IEEE\s0 floating-point
20888 comparisons.  These correctly handle the case where the result of a
20889 comparison is unordered.
20890 .IP "\fB\-msoft\-float\fR" 4
20891 .IX Item "-msoft-float"
20892 Generate output containing library calls for floating point.
20893 .Sp
20894 \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC.\s0
20895 Normally the facilities of the machine's usual C compiler are used, but
20896 this can't be done directly in cross-compilation.  You must make your
20897 own arrangements to provide suitable library functions for
20898 cross-compilation.
20899 .Sp
20900 On machines where a function returns floating-point results in the 80387
20901 register stack, some floating-point opcodes may be emitted even if
20902 \&\fB\-msoft\-float\fR is used.
20903 .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
20904 .IX Item "-mno-fp-ret-in-387"
20905 Do not use the \s-1FPU\s0 registers for return values of functions.
20906 .Sp
20907 The usual calling convention has functions return values of types
20908 \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
20909 is no \s-1FPU. \s0 The idea is that the operating system should emulate
20910 an \s-1FPU.\s0
20911 .Sp
20912 The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
20913 in ordinary \s-1CPU\s0 registers instead.
20914 .IP "\fB\-mno\-fancy\-math\-387\fR" 4
20915 .IX Item "-mno-fancy-math-387"
20916 Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
20917 \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387.  Specify this option to avoid
20918 generating those instructions.  This option is the default on FreeBSD,
20919 OpenBSD and NetBSD.  This option is overridden when \fB\-march\fR
20920 indicates that the target \s-1CPU\s0 always has an \s-1FPU\s0 and so the
20921 instruction does not need emulation.  These
20922 instructions are not generated unless you also use the
20923 \&\fB\-funsafe\-math\-optimizations\fR switch.
20924 .IP "\fB\-malign\-double\fR" 4
20925 .IX Item "-malign-double"
20926 .PD 0
20927 .IP "\fB\-mno\-align\-double\fR" 4
20928 .IX Item "-mno-align-double"
20929 .PD
20930 Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
20931 \&\f(CW\*(C`long long\*(C'\fR variables on a two-word boundary or a one-word
20932 boundary.  Aligning \f(CW\*(C`double\*(C'\fR variables on a two-word boundary
20933 produces code that runs somewhat faster on a Pentium at the
20934 expense of more memory.
20935 .Sp
20936 On x86\-64, \fB\-malign\-double\fR is enabled by default.
20937 .Sp
20938 \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
20939 structures containing the above types are aligned differently than
20940 the published application binary interface specifications for the x86\-32
20941 and are not binary compatible with structures in code compiled
20942 without that switch.
20943 .IP "\fB\-m96bit\-long\-double\fR" 4
20944 .IX Item "-m96bit-long-double"
20945 .PD 0
20946 .IP "\fB\-m128bit\-long\-double\fR" 4
20947 .IX Item "-m128bit-long-double"
20948 .PD
20949 These switches control the size of \f(CW\*(C`long double\*(C'\fR type.  The x86\-32
20950 application binary interface specifies the size to be 96 bits,
20951 so \fB\-m96bit\-long\-double\fR is the default in 32\-bit mode.
20952 .Sp
20953 Modern architectures (Pentium and newer) prefer \f(CW\*(C`long double\*(C'\fR
20954 to be aligned to an 8\- or 16\-byte boundary.  In arrays or structures
20955 conforming to the \s-1ABI,\s0 this is not possible.  So specifying
20956 \&\fB\-m128bit\-long\-double\fR aligns \f(CW\*(C`long double\*(C'\fR
20957 to a 16\-byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
20958 32\-bit zero.
20959 .Sp
20960 In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
20961 its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is aligned on 16\-byte boundary.
20962 .Sp
20963 Notice that neither of these options enable any extra precision over the x87
20964 standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
20965 .Sp
20966 \&\fBWarning:\fR if you override the default value for your target \s-1ABI,\s0 this
20967 changes the size of 
20968 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
20969 as well as modifying the function calling convention for functions taking
20970 \&\f(CW\*(C`long double\*(C'\fR.  Hence they are not binary-compatible
20971 with code compiled without that switch.
20972 .IP "\fB\-mlong\-double\-64\fR" 4
20973 .IX Item "-mlong-double-64"
20974 .PD 0
20975 .IP "\fB\-mlong\-double\-80\fR" 4
20976 .IX Item "-mlong-double-80"
20977 .IP "\fB\-mlong\-double\-128\fR" 4
20978 .IX Item "-mlong-double-128"
20979 .PD
20980 These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
20981 of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
20982 type. This is the default for 32\-bit Bionic C library.  A size
20983 of 128 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the
20984 \&\f(CW\*(C`_\|_float128\*(C'\fR type. This is the default for 64\-bit Bionic C library.
20985 .Sp
20986 \&\fBWarning:\fR if you override the default value for your target \s-1ABI,\s0 this
20987 changes the size of
20988 structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
20989 as well as modifying the function calling convention for functions taking
20990 \&\f(CW\*(C`long double\*(C'\fR.  Hence they are not binary-compatible
20991 with code compiled without that switch.
20992 .IP "\fB\-malign\-data=\fR\fItype\fR" 4
20993 .IX Item "-malign-data=type"
20994 Control how \s-1GCC\s0 aligns variables.  Supported values for \fItype\fR are
20995 \&\fBcompat\fR uses increased alignment value compatible uses \s-1GCC 4.8\s0
20996 and earlier, \fBabi\fR uses alignment value as specified by the
20997 psABI, and \fBcacheline\fR uses increased alignment value to match
20998 the cache line size.  \fBcompat\fR is the default.
20999 .IP "\fB\-mlarge\-data\-threshold=\fR\fIthreshold\fR" 4
21000 .IX Item "-mlarge-data-threshold=threshold"
21001 When \fB\-mcmodel=medium\fR is specified, data objects larger than
21002 \&\fIthreshold\fR are placed in the large data section.  This value must be the
21003 same across all objects linked into the binary, and defaults to 65535.
21004 .IP "\fB\-mrtd\fR" 4
21005 .IX Item "-mrtd"
21006 Use a different function-calling convention, in which functions that
21007 take a fixed number of arguments return with the \f(CW\*(C`ret \f(CInum\f(CW\*(C'\fR
21008 instruction, which pops their arguments while returning.  This saves one
21009 instruction in the caller since there is no need to pop the arguments
21010 there.
21011 .Sp
21012 You can specify that an individual function is called with this calling
21013 sequence with the function attribute \f(CW\*(C`stdcall\*(C'\fR.  You can also
21014 override the \fB\-mrtd\fR option by using the function attribute
21015 \&\f(CW\*(C`cdecl\*(C'\fR.
21016 .Sp
21017 \&\fBWarning:\fR this calling convention is incompatible with the one
21018 normally used on Unix, so you cannot use it if you need to call
21019 libraries compiled with the Unix compiler.
21020 .Sp
21021 Also, you must provide function prototypes for all functions that
21022 take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
21023 otherwise incorrect code is generated for calls to those
21024 functions.
21025 .Sp
21026 In addition, seriously incorrect code results if you call a
21027 function with too many arguments.  (Normally, extra arguments are
21028 harmlessly ignored.)
21029 .IP "\fB\-mregparm=\fR\fInum\fR" 4
21030 .IX Item "-mregparm=num"
21031 Control how many registers are used to pass integer arguments.  By
21032 default, no registers are used to pass arguments, and at most 3
21033 registers can be used.  You can control this behavior for a specific
21034 function by using the function attribute \f(CW\*(C`regparm\*(C'\fR.
21035 .Sp
21036 \&\fBWarning:\fR if you use this switch, and
21037 \&\fInum\fR is nonzero, then you must build all modules with the same
21038 value, including any libraries.  This includes the system libraries and
21039 startup modules.
21040 .IP "\fB\-msseregparm\fR" 4
21041 .IX Item "-msseregparm"
21042 Use \s-1SSE\s0 register passing conventions for float and double arguments
21043 and return values.  You can control this behavior for a specific
21044 function by using the function attribute \f(CW\*(C`sseregparm\*(C'\fR.
21045 .Sp
21046 \&\fBWarning:\fR if you use this switch then you must build all
21047 modules with the same value, including any libraries.  This includes
21048 the system libraries and startup modules.
21049 .IP "\fB\-mvect8\-ret\-in\-mem\fR" 4
21050 .IX Item "-mvect8-ret-in-mem"
21051 Return 8\-byte vectors in memory instead of \s-1MMX\s0 registers.  This is the
21052 default on Solaris@tie{}8 and 9 and VxWorks to match the \s-1ABI\s0 of the Sun
21053 Studio compilers until version 12.  Later compiler versions (starting
21054 with Studio 12 Update@tie{}1) follow the \s-1ABI\s0 used by other x86 targets, which
21055 is the default on Solaris@tie{}10 and later.  \fIOnly\fR use this option if
21056 you need to remain compatible with existing code produced by those
21057 previous compiler versions or older versions of \s-1GCC.\s0
21058 .IP "\fB\-mpc32\fR" 4
21059 .IX Item "-mpc32"
21060 .PD 0
21061 .IP "\fB\-mpc64\fR" 4
21062 .IX Item "-mpc64"
21063 .IP "\fB\-mpc80\fR" 4
21064 .IX Item "-mpc80"
21065 .PD
21066 Set 80387 floating-point precision to 32, 64 or 80 bits.  When \fB\-mpc32\fR
21067 is specified, the significands of results of floating-point operations are
21068 rounded to 24 bits (single precision); \fB\-mpc64\fR rounds the
21069 significands of results of floating-point operations to 53 bits (double
21070 precision) and \fB\-mpc80\fR rounds the significands of results of
21071 floating-point operations to 64 bits (extended double precision), which is
21072 the default.  When this option is used, floating-point operations in higher
21073 precisions are not available to the programmer without setting the \s-1FPU\s0
21074 control word explicitly.
21075 .Sp
21076 Setting the rounding of floating-point operations to less than the default
21077 80 bits can speed some programs by 2% or more.  Note that some mathematical
21078 libraries assume that extended-precision (80\-bit) floating-point operations
21079 are enabled by default; routines in such libraries could suffer significant
21080 loss of accuracy, typically through so-called \*(L"catastrophic cancellation\*(R",
21081 when this option is used to set the precision to less than extended precision.
21082 .IP "\fB\-mstackrealign\fR" 4
21083 .IX Item "-mstackrealign"
21084 Realign the stack at entry.  On the x86, the \fB\-mstackrealign\fR
21085 option generates an alternate prologue and epilogue that realigns the
21086 run-time stack if necessary.  This supports mixing legacy codes that keep
21087 4\-byte stack alignment with modern codes that keep 16\-byte stack alignment for
21088 \&\s-1SSE\s0 compatibility.  See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
21089 applicable to individual functions.
21090 .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
21091 .IX Item "-mpreferred-stack-boundary=num"
21092 Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
21093 byte boundary.  If \fB\-mpreferred\-stack\-boundary\fR is not specified,
21094 the default is 4 (16 bytes or 128 bits).
21095 .Sp
21096 \&\fBWarning:\fR When generating code for the x86\-64 architecture with
21097 \&\s-1SSE\s0 extensions disabled, \fB\-mpreferred\-stack\-boundary=3\fR can be
21098 used to keep the stack boundary aligned to 8 byte boundary.  Since
21099 x86\-64 \s-1ABI\s0 require 16 byte stack alignment, this is \s-1ABI\s0 incompatible and
21100 intended to be used in controlled environment where stack space is
21101 important limitation.  This option leads to wrong code when functions
21102 compiled with 16 byte stack alignment (such as functions from a standard
21103 library) are called with misaligned stack.  In this case, \s-1SSE\s0
21104 instructions may lead to misaligned memory access traps.  In addition,
21105 variable arguments are handled incorrectly for 16 byte aligned
21106 objects (including x87 long double and _\|_int128), leading to wrong
21107 results.  You must build all modules with
21108 \&\fB\-mpreferred\-stack\-boundary=3\fR, including any libraries.  This
21109 includes the system libraries and startup modules.
21110 .IP "\fB\-mincoming\-stack\-boundary=\fR\fInum\fR" 4
21111 .IX Item "-mincoming-stack-boundary=num"
21112 Assume the incoming stack is aligned to a 2 raised to \fInum\fR byte
21113 boundary.  If \fB\-mincoming\-stack\-boundary\fR is not specified,
21114 the one specified by \fB\-mpreferred\-stack\-boundary\fR is used.
21115 .Sp
21116 On Pentium and Pentium Pro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
21117 should be aligned to an 8\-byte boundary (see \fB\-malign\-double\fR) or
21118 suffer significant run time performance penalties.  On Pentium \s-1III,\s0 the
21119 Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR may not work
21120 properly if it is not 16\-byte aligned.
21121 .Sp
21122 To ensure proper alignment of this values on the stack, the stack boundary
21123 must be as aligned as that required by any value stored on the stack.
21124 Further, every function must be generated such that it keeps the stack
21125 aligned.  Thus calling a function compiled with a higher preferred
21126 stack boundary from a function compiled with a lower preferred stack
21127 boundary most likely misaligns the stack.  It is recommended that
21128 libraries that use callbacks always use the default setting.
21129 .Sp
21130 This extra alignment does consume extra stack space, and generally
21131 increases code size.  Code that is sensitive to stack space usage, such
21132 as embedded systems and operating system kernels, may want to reduce the
21133 preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
21134 .IP "\fB\-mmmx\fR" 4
21135 .IX Item "-mmmx"
21136 .PD 0
21137 .IP "\fB\-msse\fR" 4
21138 .IX Item "-msse"
21139 .IP "\fB\-msse2\fR" 4
21140 .IX Item "-msse2"
21141 .IP "\fB\-msse3\fR" 4
21142 .IX Item "-msse3"
21143 .IP "\fB\-mssse3\fR" 4
21144 .IX Item "-mssse3"
21145 .IP "\fB\-msse4\fR" 4
21146 .IX Item "-msse4"
21147 .IP "\fB\-msse4a\fR" 4
21148 .IX Item "-msse4a"
21149 .IP "\fB\-msse4.1\fR" 4
21150 .IX Item "-msse4.1"
21151 .IP "\fB\-msse4.2\fR" 4
21152 .IX Item "-msse4.2"
21153 .IP "\fB\-mavx\fR" 4
21154 .IX Item "-mavx"
21155 .IP "\fB\-mavx2\fR" 4
21156 .IX Item "-mavx2"
21157 .IP "\fB\-mavx512f\fR" 4
21158 .IX Item "-mavx512f"
21159 .IP "\fB\-mavx512pf\fR" 4
21160 .IX Item "-mavx512pf"
21161 .IP "\fB\-mavx512er\fR" 4
21162 .IX Item "-mavx512er"
21163 .IP "\fB\-mavx512cd\fR" 4
21164 .IX Item "-mavx512cd"
21165 .IP "\fB\-msha\fR" 4
21166 .IX Item "-msha"
21167 .IP "\fB\-maes\fR" 4
21168 .IX Item "-maes"
21169 .IP "\fB\-mpclmul\fR" 4
21170 .IX Item "-mpclmul"
21171 .IP "\fB\-mclfushopt\fR" 4
21172 .IX Item "-mclfushopt"
21173 .IP "\fB\-mfsgsbase\fR" 4
21174 .IX Item "-mfsgsbase"
21175 .IP "\fB\-mrdrnd\fR" 4
21176 .IX Item "-mrdrnd"
21177 .IP "\fB\-mf16c\fR" 4
21178 .IX Item "-mf16c"
21179 .IP "\fB\-mfma\fR" 4
21180 .IX Item "-mfma"
21181 .IP "\fB\-mfma4\fR" 4
21182 .IX Item "-mfma4"
21183 .IP "\fB\-mno\-fma4\fR" 4
21184 .IX Item "-mno-fma4"
21185 .IP "\fB\-mprefetchwt1\fR" 4
21186 .IX Item "-mprefetchwt1"
21187 .IP "\fB\-mxop\fR" 4
21188 .IX Item "-mxop"
21189 .IP "\fB\-mlwp\fR" 4
21190 .IX Item "-mlwp"
21191 .IP "\fB\-m3dnow\fR" 4
21192 .IX Item "-m3dnow"
21193 .IP "\fB\-mpopcnt\fR" 4
21194 .IX Item "-mpopcnt"
21195 .IP "\fB\-mabm\fR" 4
21196 .IX Item "-mabm"
21197 .IP "\fB\-mbmi\fR" 4
21198 .IX Item "-mbmi"
21199 .IP "\fB\-mbmi2\fR" 4
21200 .IX Item "-mbmi2"
21201 .IP "\fB\-mlzcnt\fR" 4
21202 .IX Item "-mlzcnt"
21203 .IP "\fB\-mfxsr\fR" 4
21204 .IX Item "-mfxsr"
21205 .IP "\fB\-mxsave\fR" 4
21206 .IX Item "-mxsave"
21207 .IP "\fB\-mxsaveopt\fR" 4
21208 .IX Item "-mxsaveopt"
21209 .IP "\fB\-mxsavec\fR" 4
21210 .IX Item "-mxsavec"
21211 .IP "\fB\-mxsaves\fR" 4
21212 .IX Item "-mxsaves"
21213 .IP "\fB\-mrtm\fR" 4
21214 .IX Item "-mrtm"
21215 .IP "\fB\-mtbm\fR" 4
21216 .IX Item "-mtbm"
21217 .IP "\fB\-mmpx\fR" 4
21218 .IX Item "-mmpx"
21219 .PD
21220 These switches enable the use of instructions in the \s-1MMX, SSE,
21221 SSE2, SSE3, SSSE3, SSE4.1, AVX, AVX2, AVX512F, AVX512PF, AVX512ER, AVX512CD,
21222 SHA, AES, PCLMUL, FSGSBASE, RDRND, F16C, FMA, SSE4A, FMA4, XOP, LWP, ABM,
21223 BMI, BMI2, FXSR, XSAVE, XSAVEOPT, LZCNT, RTM, MPX\s0 or 3DNow!
21224 extended instruction sets.  Each has a corresponding \fB\-mno\-\fR option
21225 to disable use of these instructions.
21226 .Sp
21227 These extensions are also available as built-in functions: see
21228 \&\fBx86 Built-in Functions\fR, for details of the functions enabled and
21229 disabled by these switches.
21230 .Sp
21231 To generate \s-1SSE/SSE2\s0 instructions automatically from floating-point
21232 code (as opposed to 387 instructions), see \fB\-mfpmath=sse\fR.
21233 .Sp
21234 \&\s-1GCC\s0 depresses SSEx instructions when \fB\-mavx\fR is used. Instead, it
21235 generates new \s-1AVX\s0 instructions or \s-1AVX\s0 equivalence for all SSEx instructions
21236 when needed.
21237 .Sp
21238 These options enable \s-1GCC\s0 to use these extended instructions in
21239 generated code, even without \fB\-mfpmath=sse\fR.  Applications that
21240 perform run-time \s-1CPU\s0 detection must compile separate files for each
21241 supported architecture, using the appropriate flags.  In particular,
21242 the file containing the \s-1CPU\s0 detection code should be compiled without
21243 these options.
21244 .IP "\fB\-mdump\-tune\-features\fR" 4
21245 .IX Item "-mdump-tune-features"
21246 This option instructs \s-1GCC\s0 to dump the names of the x86 performance 
21247 tuning features and default settings. The names can be used in 
21248 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR.
21249 .IP "\fB\-mtune\-ctrl=\fR\fIfeature-list\fR" 4
21250 .IX Item "-mtune-ctrl=feature-list"
21251 This option is used to do fine grain control of x86 code generation features.
21252 \&\fIfeature-list\fR is a comma separated list of \fIfeature\fR names. See also
21253 \&\fB\-mdump\-tune\-features\fR. When specified, the \fIfeature\fR is turned
21254 on if it is not preceded with \fB^\fR, otherwise, it is turned off. 
21255 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR is intended to be used by \s-1GCC\s0
21256 developers. Using it may lead to code paths not covered by testing and can
21257 potentially result in compiler ICEs or runtime errors.
21258 .IP "\fB\-mno\-default\fR" 4
21259 .IX Item "-mno-default"
21260 This option instructs \s-1GCC\s0 to turn off all tunable features. See also 
21261 \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR and \fB\-mdump\-tune\-features\fR.
21262 .IP "\fB\-mcld\fR" 4
21263 .IX Item "-mcld"
21264 This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`cld\*(C'\fR instruction in the prologue
21265 of functions that use string instructions.  String instructions depend on
21266 the \s-1DF\s0 flag to select between autoincrement or autodecrement mode.  While the
21267 \&\s-1ABI\s0 specifies the \s-1DF\s0 flag to be cleared on function entry, some operating
21268 systems violate this specification by not clearing the \s-1DF\s0 flag in their
21269 exception dispatchers.  The exception handler can be invoked with the \s-1DF\s0 flag
21270 set, which leads to wrong direction mode when string instructions are used.
21271 This option can be enabled by default on 32\-bit x86 targets by configuring
21272 \&\s-1GCC\s0 with the \fB\-\-enable\-cld\fR configure option.  Generation of \f(CW\*(C`cld\*(C'\fR
21273 instructions can be suppressed with the \fB\-mno\-cld\fR compiler option
21274 in this case.
21275 .IP "\fB\-mvzeroupper\fR" 4
21276 .IX Item "-mvzeroupper"
21277 This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`vzeroupper\*(C'\fR instruction
21278 before a transfer of control flow out of the function to minimize
21279 the \s-1AVX\s0 to \s-1SSE\s0 transition penalty as well as remove unnecessary \f(CW\*(C`zeroupper\*(C'\fR
21280 intrinsics.
21281 .IP "\fB\-mprefer\-avx128\fR" 4
21282 .IX Item "-mprefer-avx128"
21283 This option instructs \s-1GCC\s0 to use 128\-bit \s-1AVX\s0 instructions instead of
21284 256\-bit \s-1AVX\s0 instructions in the auto-vectorizer.
21285 .IP "\fB\-mcx16\fR" 4
21286 .IX Item "-mcx16"
21287 This option enables \s-1GCC\s0 to generate \f(CW\*(C`CMPXCHG16B\*(C'\fR instructions.
21288 \&\f(CW\*(C`CMPXCHG16B\*(C'\fR allows for atomic operations on 128\-bit double quadword
21289 (or oword) data types.  
21290 This is useful for high-resolution counters that can be updated
21291 by multiple processors (or cores).  This instruction is generated as part of
21292 atomic built-in functions: see \fB_\|_sync Builtins\fR or
21293 \&\fB_\|_atomic Builtins\fR for details.
21294 .IP "\fB\-msahf\fR" 4
21295 .IX Item "-msahf"
21296 This option enables generation of \f(CW\*(C`SAHF\*(C'\fR instructions in 64\-bit code.
21297 Early Intel Pentium 4 CPUs with Intel 64 support,
21298 prior to the introduction of Pentium 4 G1 step in December 2005,
21299 lacked the \f(CW\*(C`LAHF\*(C'\fR and \f(CW\*(C`SAHF\*(C'\fR instructions
21300 which are supported by \s-1AMD64.\s0
21301 These are load and store instructions, respectively, for certain status flags.
21302 In 64\-bit mode, the \f(CW\*(C`SAHF\*(C'\fR instruction is used to optimize \f(CW\*(C`fmod\*(C'\fR,
21303 \&\f(CW\*(C`drem\*(C'\fR, and \f(CW\*(C`remainder\*(C'\fR built-in functions;
21304 see \fBOther Builtins\fR for details.
21305 .IP "\fB\-mmovbe\fR" 4
21306 .IX Item "-mmovbe"
21307 This option enables use of the \f(CW\*(C`movbe\*(C'\fR instruction to implement
21308 \&\f(CW\*(C`_\|_builtin_bswap32\*(C'\fR and \f(CW\*(C`_\|_builtin_bswap64\*(C'\fR.
21309 .IP "\fB\-mcrc32\fR" 4
21310 .IX Item "-mcrc32"
21311 This option enables built-in functions \f(CW\*(C`_\|_builtin_ia32_crc32qi\*(C'\fR,
21312 \&\f(CW\*(C`_\|_builtin_ia32_crc32hi\*(C'\fR, \f(CW\*(C`_\|_builtin_ia32_crc32si\*(C'\fR and
21313 \&\f(CW\*(C`_\|_builtin_ia32_crc32di\*(C'\fR to generate the \f(CW\*(C`crc32\*(C'\fR machine instruction.
21314 .IP "\fB\-mrecip\fR" 4
21315 .IX Item "-mrecip"
21316 This option enables use of \f(CW\*(C`RCPSS\*(C'\fR and \f(CW\*(C`RSQRTSS\*(C'\fR instructions
21317 (and their vectorized variants \f(CW\*(C`RCPPS\*(C'\fR and \f(CW\*(C`RSQRTPS\*(C'\fR)
21318 with an additional Newton-Raphson step
21319 to increase precision instead of \f(CW\*(C`DIVSS\*(C'\fR and \f(CW\*(C`SQRTSS\*(C'\fR
21320 (and their vectorized
21321 variants) for single-precision floating-point arguments.  These instructions
21322 are generated only when \fB\-funsafe\-math\-optimizations\fR is enabled
21323 together with \fB\-finite\-math\-only\fR and \fB\-fno\-trapping\-math\fR.
21324 Note that while the throughput of the sequence is higher than the throughput
21325 of the non-reciprocal instruction, the precision of the sequence can be
21326 decreased by up to 2 ulp (i.e. the inverse of 1.0 equals 0.99999994).
21327 .Sp
21328 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
21329 (or \f(CW\*(C`RSQRTPS\*(C'\fR) already with \fB\-ffast\-math\fR (or the above option
21330 combination), and doesn't need \fB\-mrecip\fR.
21331 .Sp
21332 Also note that \s-1GCC\s0 emits the above sequence with additional Newton-Raphson step
21333 for vectorized single-float division and vectorized \f(CW\*(C`sqrtf(\f(CIx\f(CW)\*(C'\fR
21334 already with \fB\-ffast\-math\fR (or the above option combination), and
21335 doesn't need \fB\-mrecip\fR.
21336 .IP "\fB\-mrecip=\fR\fIopt\fR" 4
21337 .IX Item "-mrecip=opt"
21338 This option controls which reciprocal estimate instructions
21339 may be used.  \fIopt\fR is a comma-separated list of options, which may
21340 be preceded by a \fB!\fR to invert the option:
21341 .RS 4
21342 .IP "\fBall\fR" 4
21343 .IX Item "all"
21344 Enable all estimate instructions.
21345 .IP "\fBdefault\fR" 4
21346 .IX Item "default"
21347 Enable the default instructions, equivalent to \fB\-mrecip\fR.
21348 .IP "\fBnone\fR" 4
21349 .IX Item "none"
21350 Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
21351 .IP "\fBdiv\fR" 4
21352 .IX Item "div"
21353 Enable the approximation for scalar division.
21354 .IP "\fBvec-div\fR" 4
21355 .IX Item "vec-div"
21356 Enable the approximation for vectorized division.
21357 .IP "\fBsqrt\fR" 4
21358 .IX Item "sqrt"
21359 Enable the approximation for scalar square root.
21360 .IP "\fBvec-sqrt\fR" 4
21361 .IX Item "vec-sqrt"
21362 Enable the approximation for vectorized square root.
21363 .RE
21364 .RS 4
21365 .Sp
21366 So, for example, \fB\-mrecip=all,!sqrt\fR enables
21367 all of the reciprocal approximations, except for square root.
21368 .RE
21369 .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
21370 .IX Item "-mveclibabi=type"
21371 Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
21372 external library.  Supported values for \fItype\fR are \fBsvml\fR 
21373 for the Intel short
21374 vector math library and \fBacml\fR for the \s-1AMD\s0 math core library.
21375 To use this option, both \fB\-ftree\-vectorize\fR and
21376 \&\fB\-funsafe\-math\-optimizations\fR have to be enabled, and an \s-1SVML\s0 or \s-1ACML \s0
21377 ABI-compatible library must be specified at link time.
21378 .Sp
21379 \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`vmldExp2\*(C'\fR,
21380 \&\f(CW\*(C`vmldLn2\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldPow2\*(C'\fR,
21381 \&\f(CW\*(C`vmldTanh2\*(C'\fR, \f(CW\*(C`vmldTan2\*(C'\fR, \f(CW\*(C`vmldAtan2\*(C'\fR, \f(CW\*(C`vmldAtanh2\*(C'\fR,
21382 \&\f(CW\*(C`vmldCbrt2\*(C'\fR, \f(CW\*(C`vmldSinh2\*(C'\fR, \f(CW\*(C`vmldSin2\*(C'\fR, \f(CW\*(C`vmldAsinh2\*(C'\fR,
21383 \&\f(CW\*(C`vmldAsin2\*(C'\fR, \f(CW\*(C`vmldCosh2\*(C'\fR, \f(CW\*(C`vmldCos2\*(C'\fR, \f(CW\*(C`vmldAcosh2\*(C'\fR,
21384 \&\f(CW\*(C`vmldAcos2\*(C'\fR, \f(CW\*(C`vmlsExp4\*(C'\fR, \f(CW\*(C`vmlsLn4\*(C'\fR, \f(CW\*(C`vmlsLog104\*(C'\fR,
21385 \&\f(CW\*(C`vmlsLog104\*(C'\fR, \f(CW\*(C`vmlsPow4\*(C'\fR, \f(CW\*(C`vmlsTanh4\*(C'\fR, \f(CW\*(C`vmlsTan4\*(C'\fR,
21386 \&\f(CW\*(C`vmlsAtan4\*(C'\fR, \f(CW\*(C`vmlsAtanh4\*(C'\fR, \f(CW\*(C`vmlsCbrt4\*(C'\fR, \f(CW\*(C`vmlsSinh4\*(C'\fR,
21387 \&\f(CW\*(C`vmlsSin4\*(C'\fR, \f(CW\*(C`vmlsAsinh4\*(C'\fR, \f(CW\*(C`vmlsAsin4\*(C'\fR, \f(CW\*(C`vmlsCosh4\*(C'\fR,
21388 \&\f(CW\*(C`vmlsCos4\*(C'\fR, \f(CW\*(C`vmlsAcosh4\*(C'\fR and \f(CW\*(C`vmlsAcos4\*(C'\fR for corresponding
21389 function type when \fB\-mveclibabi=svml\fR is used, and \f(CW\*(C`_\|_vrd2_sin\*(C'\fR,
21390 \&\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,
21391 \&\f(CW\*(C`_\|_vrd2_log10\*(C'\fR, \f(CW\*(C`_\|_vrs4_sinf\*(C'\fR, \f(CW\*(C`_\|_vrs4_cosf\*(C'\fR,
21392 \&\f(CW\*(C`_\|_vrs4_expf\*(C'\fR, \f(CW\*(C`_\|_vrs4_logf\*(C'\fR, \f(CW\*(C`_\|_vrs4_log2f\*(C'\fR,
21393 \&\f(CW\*(C`_\|_vrs4_log10f\*(C'\fR and \f(CW\*(C`_\|_vrs4_powf\*(C'\fR for the corresponding function type
21394 when \fB\-mveclibabi=acml\fR is used.
21395 .IP "\fB\-mabi=\fR\fIname\fR" 4
21396 .IX Item "-mabi=name"
21397 Generate code for the specified calling convention.  Permissible values
21398 are \fBsysv\fR for the \s-1ABI\s0 used on GNU/Linux and other systems, and
21399 \&\fBms\fR for the Microsoft \s-1ABI. \s0 The default is to use the Microsoft
21400 \&\s-1ABI\s0 when targeting Microsoft Windows and the SysV \s-1ABI\s0 on all other systems.
21401 You can control this behavior for specific functions by
21402 using the function attributes \f(CW\*(C`ms_abi\*(C'\fR and \f(CW\*(C`sysv_abi\*(C'\fR.
21403 .IP "\fB\-mtls\-dialect=\fR\fItype\fR" 4
21404 .IX Item "-mtls-dialect=type"
21405 Generate code to access thread-local storage using the \fBgnu\fR or
21406 \&\fBgnu2\fR conventions.  \fBgnu\fR is the conservative default;
21407 \&\fBgnu2\fR is more efficient, but it may add compile\- and run-time
21408 requirements that cannot be satisfied on all systems.
21409 .IP "\fB\-mpush\-args\fR" 4
21410 .IX Item "-mpush-args"
21411 .PD 0
21412 .IP "\fB\-mno\-push\-args\fR" 4
21413 .IX Item "-mno-push-args"
21414 .PD
21415 Use \s-1PUSH\s0 operations to store outgoing parameters.  This method is shorter
21416 and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
21417 by default.  In some cases disabling it may improve performance because of
21418 improved scheduling and reduced dependencies.
21419 .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
21420 .IX Item "-maccumulate-outgoing-args"
21421 If enabled, the maximum amount of space required for outgoing arguments is
21422 computed in the function prologue.  This is faster on most modern CPUs
21423 because of reduced dependencies, improved scheduling and reduced stack usage
21424 when the preferred stack boundary is not equal to 2.  The drawback is a notable
21425 increase in code size.  This switch implies \fB\-mno\-push\-args\fR.
21426 .IP "\fB\-mthreads\fR" 4
21427 .IX Item "-mthreads"
21428 Support thread-safe exception handling on MinGW.  Programs that rely
21429 on thread-safe exception handling must compile and link all code with the
21430 \&\fB\-mthreads\fR option.  When compiling, \fB\-mthreads\fR defines
21431 \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
21432 \&\fB\-lmingwthrd\fR which cleans up per-thread exception-handling data.
21433 .IP "\fB\-mno\-align\-stringops\fR" 4
21434 .IX Item "-mno-align-stringops"
21435 Do not align the destination of inlined string operations.  This switch reduces
21436 code size and improves performance in case the destination is already aligned,
21437 but \s-1GCC\s0 doesn't know about it.
21438 .IP "\fB\-minline\-all\-stringops\fR" 4
21439 .IX Item "-minline-all-stringops"
21440 By default \s-1GCC\s0 inlines string operations only when the destination is 
21441 known to be aligned to least a 4\-byte boundary.  
21442 This enables more inlining and increases code
21443 size, but may improve performance of code that depends on fast
21444 \&\f(CW\*(C`memcpy\*(C'\fR, \f(CW\*(C`strlen\*(C'\fR,
21445 and \f(CW\*(C`memset\*(C'\fR for short lengths.
21446 .IP "\fB\-minline\-stringops\-dynamically\fR" 4
21447 .IX Item "-minline-stringops-dynamically"
21448 For string operations of unknown size, use run-time checks with
21449 inline code for small blocks and a library call for large blocks.
21450 .IP "\fB\-mstringop\-strategy=\fR\fIalg\fR" 4
21451 .IX Item "-mstringop-strategy=alg"
21452 Override the internal decision heuristic for the particular algorithm to use
21453 for inlining string operations.  The allowed values for \fIalg\fR are:
21454 .RS 4
21455 .IP "\fBrep_byte\fR" 4
21456 .IX Item "rep_byte"
21457 .PD 0
21458 .IP "\fBrep_4byte\fR" 4
21459 .IX Item "rep_4byte"
21460 .IP "\fBrep_8byte\fR" 4
21461 .IX Item "rep_8byte"
21462 .PD
21463 Expand using i386 \f(CW\*(C`rep\*(C'\fR prefix of the specified size.
21464 .IP "\fBbyte_loop\fR" 4
21465 .IX Item "byte_loop"
21466 .PD 0
21467 .IP "\fBloop\fR" 4
21468 .IX Item "loop"
21469 .IP "\fBunrolled_loop\fR" 4
21470 .IX Item "unrolled_loop"
21471 .PD
21472 Expand into an inline loop.
21473 .IP "\fBlibcall\fR" 4
21474 .IX Item "libcall"
21475 Always use a library call.
21476 .RE
21477 .RS 4
21478 .RE
21479 .IP "\fB\-mmemcpy\-strategy=\fR\fIstrategy\fR" 4
21480 .IX Item "-mmemcpy-strategy=strategy"
21481 Override the internal decision heuristic to decide if \f(CW\*(C`_\|_builtin_memcpy\*(C'\fR
21482 should be inlined and what inline algorithm to use when the expected size
21483 of the copy operation is known. \fIstrategy\fR 
21484 is a comma-separated list of \fIalg\fR:\fImax_size\fR:\fIdest_align\fR triplets. 
21485 \&\fIalg\fR is specified in \fB\-mstringop\-strategy\fR, \fImax_size\fR specifies
21486 the max byte size with which inline algorithm \fIalg\fR is allowed.  For the last
21487 triplet, the \fImax_size\fR must be \f(CW\*(C`\-1\*(C'\fR. The \fImax_size\fR of the triplets
21488 in the list must be specified in increasing order.  The minimal byte size for 
21489 \&\fIalg\fR is \f(CW0\fR for the first triplet and \f(CW\*(C`\f(CImax_size\f(CW + 1\*(C'\fR of the 
21490 preceding range.
21491 .IP "\fB\-mmemset\-strategy=\fR\fIstrategy\fR" 4
21492 .IX Item "-mmemset-strategy=strategy"
21493 The option is similar to \fB\-mmemcpy\-strategy=\fR except that it is to control
21494 \&\f(CW\*(C`_\|_builtin_memset\*(C'\fR expansion.
21495 .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
21496 .IX Item "-momit-leaf-frame-pointer"
21497 Don't keep the frame pointer in a register for leaf functions.  This
21498 avoids the instructions to save, set up, and restore frame pointers and
21499 makes an extra register available in leaf functions.  The option
21500 \&\fB\-fomit\-leaf\-frame\-pointer\fR removes the frame pointer for leaf functions,
21501 which might make debugging harder.
21502 .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
21503 .IX Item "-mtls-direct-seg-refs"
21504 .PD 0
21505 .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
21506 .IX Item "-mno-tls-direct-seg-refs"
21507 .PD
21508 Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
21509 \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
21510 or whether the thread base pointer must be added.  Whether or not this
21511 is valid depends on the operating system, and whether it maps the
21512 segment to cover the entire \s-1TLS\s0 area.
21513 .Sp
21514 For systems that use the \s-1GNU C\s0 Library, the default is on.
21515 .IP "\fB\-msse2avx\fR" 4
21516 .IX Item "-msse2avx"
21517 .PD 0
21518 .IP "\fB\-mno\-sse2avx\fR" 4
21519 .IX Item "-mno-sse2avx"
21520 .PD
21521 Specify that the assembler should encode \s-1SSE\s0 instructions with \s-1VEX\s0
21522 prefix.  The option \fB\-mavx\fR turns this on by default.
21523 .IP "\fB\-mfentry\fR" 4
21524 .IX Item "-mfentry"
21525 .PD 0
21526 .IP "\fB\-mno\-fentry\fR" 4
21527 .IX Item "-mno-fentry"
21528 .PD
21529 If profiling is active (\fB\-pg\fR), put the profiling
21530 counter call before the prologue.
21531 Note: On x86 architectures the attribute \f(CW\*(C`ms_hook_prologue\*(C'\fR
21532 isn't possible at the moment for \fB\-mfentry\fR and \fB\-pg\fR.
21533 .IP "\fB\-mrecord\-mcount\fR" 4
21534 .IX Item "-mrecord-mcount"
21535 .PD 0
21536 .IP "\fB\-mno\-record\-mcount\fR" 4
21537 .IX Item "-mno-record-mcount"
21538 .PD
21539 If profiling is active (\fB\-pg\fR), generate a _\|_mcount_loc section
21540 that contains pointers to each profiling call. This is useful for
21541 automatically patching and out calls.
21542 .IP "\fB\-mnop\-mcount\fR" 4
21543 .IX Item "-mnop-mcount"
21544 .PD 0
21545 .IP "\fB\-mno\-nop\-mcount\fR" 4
21546 .IX Item "-mno-nop-mcount"
21547 .PD
21548 If profiling is active (\fB\-pg\fR), generate the calls to
21549 the profiling functions as nops. This is useful when they
21550 should be patched in later dynamically. This is likely only
21551 useful together with \fB\-mrecord\-mcount\fR.
21552 .IP "\fB\-mskip\-rax\-setup\fR" 4
21553 .IX Item "-mskip-rax-setup"
21554 .PD 0
21555 .IP "\fB\-mno\-skip\-rax\-setup\fR" 4
21556 .IX Item "-mno-skip-rax-setup"
21557 .PD
21558 When generating code for the x86\-64 architecture with \s-1SSE\s0 extensions
21559 disabled, \fB\-skip\-rax\-setup\fR can be used to skip setting up \s-1RAX\s0
21560 register when there are no variable arguments passed in vector registers.
21561 .Sp
21562 \&\fBWarning:\fR Since \s-1RAX\s0 register is used to avoid unnecessarily
21563 saving vector registers on stack when passing variable arguments, the
21564 impacts of this option are callees may waste some stack space,
21565 misbehave or jump to a random location.  \s-1GCC 4.4\s0 or newer don't have
21566 those issues, regardless the \s-1RAX\s0 register value.
21567 .IP "\fB\-m8bit\-idiv\fR" 4
21568 .IX Item "-m8bit-idiv"
21569 .PD 0
21570 .IP "\fB\-mno\-8bit\-idiv\fR" 4
21571 .IX Item "-mno-8bit-idiv"
21572 .PD
21573 On some processors, like Intel Atom, 8\-bit unsigned integer divide is
21574 much faster than 32\-bit/64\-bit integer divide.  This option generates a
21575 run-time check.  If both dividend and divisor are within range of 0
21576 to 255, 8\-bit unsigned integer divide is used instead of
21577 32\-bit/64\-bit integer divide.
21578 .IP "\fB\-mavx256\-split\-unaligned\-load\fR" 4
21579 .IX Item "-mavx256-split-unaligned-load"
21580 .PD 0
21581 .IP "\fB\-mavx256\-split\-unaligned\-store\fR" 4
21582 .IX Item "-mavx256-split-unaligned-store"
21583 .PD
21584 Split 32\-byte \s-1AVX\s0 unaligned load and store.
21585 .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
21586 .IX Item "-mstack-protector-guard=guard"
21587 Generate stack protection code using canary at \fIguard\fR.  Supported
21588 locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
21589 canary in the \s-1TLS\s0 block (the default).  This option has effect only when
21590 \&\fB\-fstack\-protector\fR or \fB\-fstack\-protector\-all\fR is specified.
21591 .PP
21592 These \fB\-m\fR switches are supported in addition to the above
21593 on x86\-64 processors in 64\-bit environments.
21594 .IP "\fB\-m32\fR" 4
21595 .IX Item "-m32"
21596 .PD 0
21597 .IP "\fB\-m64\fR" 4
21598 .IX Item "-m64"
21599 .IP "\fB\-mx32\fR" 4
21600 .IX Item "-mx32"
21601 .IP "\fB\-m16\fR" 4
21602 .IX Item "-m16"
21603 .PD
21604 Generate code for a 16\-bit, 32\-bit or 64\-bit environment.
21605 The \fB\-m32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
21606 to 32 bits, and
21607 generates code that runs on any i386 system.
21608 .Sp
21609 The \fB\-m64\fR option sets \f(CW\*(C`int\*(C'\fR to 32 bits and \f(CW\*(C`long\*(C'\fR and pointer
21610 types to 64 bits, and generates code for the x86\-64 architecture.
21611 For Darwin only the \fB\-m64\fR option also turns off the \fB\-fno\-pic\fR
21612 and \fB\-mdynamic\-no\-pic\fR options.
21613 .Sp
21614 The \fB\-mx32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
21615 to 32 bits, and
21616 generates code for the x86\-64 architecture.
21617 .Sp
21618 The \fB\-m16\fR option is the same as \fB\-m32\fR, except for that
21619 it outputs the \f(CW\*(C`.code16gcc\*(C'\fR assembly directive at the beginning of
21620 the assembly output so that the binary can run in 16\-bit mode.
21621 .IP "\fB\-mno\-red\-zone\fR" 4
21622 .IX Item "-mno-red-zone"
21623 Do not use a so-called \*(L"red zone\*(R" for x86\-64 code.  The red zone is mandated
21624 by the x86\-64 \s-1ABI\s0; it is a 128\-byte area beyond the location of the
21625 stack pointer that is not modified by signal or interrupt handlers
21626 and therefore can be used for temporary data without adjusting the stack
21627 pointer.  The flag \fB\-mno\-red\-zone\fR disables this red zone.
21628 .IP "\fB\-mcmodel=small\fR" 4
21629 .IX Item "-mcmodel=small"
21630 Generate code for the small code model: the program and its symbols must
21631 be linked in the lower 2 \s-1GB\s0 of the address space.  Pointers are 64 bits.
21632 Programs can be statically or dynamically linked.  This is the default
21633 code model.
21634 .IP "\fB\-mcmodel=kernel\fR" 4
21635 .IX Item "-mcmodel=kernel"
21636 Generate code for the kernel code model.  The kernel runs in the
21637 negative 2 \s-1GB\s0 of the address space.
21638 This model has to be used for Linux kernel code.
21639 .IP "\fB\-mcmodel=medium\fR" 4
21640 .IX Item "-mcmodel=medium"
21641 Generate code for the medium model: the program is linked in the lower 2
21642 \&\s-1GB\s0 of the address space.  Small symbols are also placed there.  Symbols
21643 with sizes larger than \fB\-mlarge\-data\-threshold\fR are put into
21644 large data or \s-1BSS\s0 sections and can be located above 2GB.  Programs can
21645 be statically or dynamically linked.
21646 .IP "\fB\-mcmodel=large\fR" 4
21647 .IX Item "-mcmodel=large"
21648 Generate code for the large model.  This model makes no assumptions
21649 about addresses and sizes of sections.
21650 .IP "\fB\-maddress\-mode=long\fR" 4
21651 .IX Item "-maddress-mode=long"
21652 Generate code for long address mode.  This is only supported for 64\-bit
21653 and x32 environments.  It is the default address mode for 64\-bit
21654 environments.
21655 .IP "\fB\-maddress\-mode=short\fR" 4
21656 .IX Item "-maddress-mode=short"
21657 Generate code for short address mode.  This is only supported for 32\-bit
21658 and x32 environments.  It is the default address mode for 32\-bit and
21659 x32 environments.
21660 .PP
21661 \fIx86 Windows Options\fR
21662 .IX Subsection "x86 Windows Options"
21663 .PP
21664 These additional options are available for Microsoft Windows targets:
21665 .IP "\fB\-mconsole\fR" 4
21666 .IX Item "-mconsole"
21667 This option
21668 specifies that a console application is to be generated, by
21669 instructing the linker to set the \s-1PE\s0 header subsystem type
21670 required for console applications.
21671 This option is available for Cygwin and MinGW targets and is
21672 enabled by default on those targets.
21673 .IP "\fB\-mdll\fR" 4
21674 .IX Item "-mdll"
21675 This option is available for Cygwin and MinGW targets.  It
21676 specifies that a DLL\-\-\-a dynamic link library\-\-\-is to be
21677 generated, enabling the selection of the required runtime
21678 startup object and entry point.
21679 .IP "\fB\-mnop\-fun\-dllimport\fR" 4
21680 .IX Item "-mnop-fun-dllimport"
21681 This option is available for Cygwin and MinGW targets.  It
21682 specifies that the \f(CW\*(C`dllimport\*(C'\fR attribute should be ignored.
21683 .IP "\fB\-mthread\fR" 4
21684 .IX Item "-mthread"
21685 This option is available for MinGW targets. It specifies
21686 that MinGW-specific thread support is to be used.
21687 .IP "\fB\-municode\fR" 4
21688 .IX Item "-municode"
21689 This option is available for MinGW\-w64 targets.  It causes
21690 the \f(CW\*(C`UNICODE\*(C'\fR preprocessor macro to be predefined, and
21691 chooses Unicode-capable runtime startup code.
21692 .IP "\fB\-mwin32\fR" 4
21693 .IX Item "-mwin32"
21694 This option is available for Cygwin and MinGW targets.  It
21695 specifies that the typical Microsoft Windows predefined macros are to
21696 be set in the pre-processor, but does not influence the choice
21697 of runtime library/startup code.
21698 .IP "\fB\-mwindows\fR" 4
21699 .IX Item "-mwindows"
21700 This option is available for Cygwin and MinGW targets.  It
21701 specifies that a \s-1GUI\s0 application is to be generated by
21702 instructing the linker to set the \s-1PE\s0 header subsystem type
21703 appropriately.
21704 .IP "\fB\-fno\-set\-stack\-executable\fR" 4
21705 .IX Item "-fno-set-stack-executable"
21706 This option is available for MinGW targets. It specifies that
21707 the executable flag for the stack used by nested functions isn't
21708 set. This is necessary for binaries running in kernel mode of
21709 Microsoft Windows, as there the User32 \s-1API,\s0 which is used to set executable
21710 privileges, isn't available.
21711 .IP "\fB\-fwritable\-relocated\-rdata\fR" 4
21712 .IX Item "-fwritable-relocated-rdata"
21713 This option is available for MinGW and Cygwin targets.  It specifies
21714 that relocated-data in read-only section is put into .data
21715 section.  This is a necessary for older runtimes not supporting
21716 modification of .rdata sections for pseudo-relocation.
21717 .IP "\fB\-mpe\-aligned\-commons\fR" 4
21718 .IX Item "-mpe-aligned-commons"
21719 This option is available for Cygwin and MinGW targets.  It
21720 specifies that the \s-1GNU\s0 extension to the \s-1PE\s0 file format that
21721 permits the correct alignment of \s-1COMMON\s0 variables should be
21722 used when generating code.  It is enabled by default if
21723 \&\s-1GCC\s0 detects that the target assembler found during configuration
21724 supports the feature.
21725 .PP
21726 See also under \fBx86 Options\fR for standard options.
21727 .PP
21728 \fIXstormy16 Options\fR
21729 .IX Subsection "Xstormy16 Options"
21730 .PP
21731 These options are defined for Xstormy16:
21732 .IP "\fB\-msim\fR" 4
21733 .IX Item "-msim"
21734 Choose startup files and linker script suitable for the simulator.
21735 .PP
21736 \fIXtensa Options\fR
21737 .IX Subsection "Xtensa Options"
21738 .PP
21739 These options are supported for Xtensa targets:
21740 .IP "\fB\-mconst16\fR" 4
21741 .IX Item "-mconst16"
21742 .PD 0
21743 .IP "\fB\-mno\-const16\fR" 4
21744 .IX Item "-mno-const16"
21745 .PD
21746 Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
21747 constant values.  The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
21748 standard option from Tensilica.  When enabled, \f(CW\*(C`CONST16\*(C'\fR
21749 instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
21750 instructions.  The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
21751 the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
21752 .IP "\fB\-mfused\-madd\fR" 4
21753 .IX Item "-mfused-madd"
21754 .PD 0
21755 .IP "\fB\-mno\-fused\-madd\fR" 4
21756 .IX Item "-mno-fused-madd"
21757 .PD
21758 Enable or disable use of fused multiply/add and multiply/subtract
21759 instructions in the floating-point option.  This has no effect if the
21760 floating-point option is not also enabled.  Disabling fused multiply/add
21761 and multiply/subtract instructions forces the compiler to use separate
21762 instructions for the multiply and add/subtract operations.  This may be
21763 desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
21764 required: the fused multiply add/subtract instructions do not round the
21765 intermediate result, thereby producing results with \fImore\fR bits of
21766 precision than specified by the \s-1IEEE\s0 standard.  Disabling fused multiply
21767 add/subtract instructions also ensures that the program output is not
21768 sensitive to the compiler's ability to combine multiply and add/subtract
21769 operations.
21770 .IP "\fB\-mserialize\-volatile\fR" 4
21771 .IX Item "-mserialize-volatile"
21772 .PD 0
21773 .IP "\fB\-mno\-serialize\-volatile\fR" 4
21774 .IX Item "-mno-serialize-volatile"
21775 .PD
21776 When this option is enabled, \s-1GCC\s0 inserts \f(CW\*(C`MEMW\*(C'\fR instructions before
21777 \&\f(CW\*(C`volatile\*(C'\fR memory references to guarantee sequential consistency.
21778 The default is \fB\-mserialize\-volatile\fR.  Use
21779 \&\fB\-mno\-serialize\-volatile\fR to omit the \f(CW\*(C`MEMW\*(C'\fR instructions.
21780 .IP "\fB\-mforce\-no\-pic\fR" 4
21781 .IX Item "-mforce-no-pic"
21782 For targets, like GNU/Linux, where all user-mode Xtensa code must be
21783 position-independent code (\s-1PIC\s0), this option disables \s-1PIC\s0 for compiling
21784 kernel code.
21785 .IP "\fB\-mtext\-section\-literals\fR" 4
21786 .IX Item "-mtext-section-literals"
21787 .PD 0
21788 .IP "\fB\-mno\-text\-section\-literals\fR" 4
21789 .IX Item "-mno-text-section-literals"
21790 .PD
21791 These options control the treatment of literal pools.  The default is
21792 \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
21793 section in the output file.  This allows the literal pool to be placed
21794 in a data \s-1RAM/ROM,\s0 and it also allows the linker to combine literal
21795 pools from separate object files to remove redundant literals and
21796 improve code size.  With \fB\-mtext\-section\-literals\fR, the literals
21797 are interspersed in the text section in order to keep them as close as
21798 possible to their references.  This may be necessary for large assembly
21799 files.
21800 .IP "\fB\-mtarget\-align\fR" 4
21801 .IX Item "-mtarget-align"
21802 .PD 0
21803 .IP "\fB\-mno\-target\-align\fR" 4
21804 .IX Item "-mno-target-align"
21805 .PD
21806 When this option is enabled, \s-1GCC\s0 instructs the assembler to
21807 automatically align instructions to reduce branch penalties at the
21808 expense of some code density.  The assembler attempts to widen density
21809 instructions to align branch targets and the instructions following call
21810 instructions.  If there are not enough preceding safe density
21811 instructions to align a target, no widening is performed.  The
21812 default is \fB\-mtarget\-align\fR.  These options do not affect the
21813 treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
21814 assembler always aligns, either by widening density instructions or
21815 by inserting \s-1NOP\s0 instructions.
21816 .IP "\fB\-mlongcalls\fR" 4
21817 .IX Item "-mlongcalls"
21818 .PD 0
21819 .IP "\fB\-mno\-longcalls\fR" 4
21820 .IX Item "-mno-longcalls"
21821 .PD
21822 When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
21823 direct calls to indirect calls unless it can determine that the target
21824 of a direct call is in the range allowed by the call instruction.  This
21825 translation typically occurs for calls to functions in other source
21826 files.  Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
21827 instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
21828 The default is \fB\-mno\-longcalls\fR.  This option should be used in
21829 programs where the call target can potentially be out of range.  This
21830 option is implemented in the assembler, not the compiler, so the
21831 assembly code generated by \s-1GCC\s0 still shows direct call
21832 instructions\-\-\-look at the disassembled object code to see the actual
21833 instructions.  Note that the assembler uses an indirect call for
21834 every cross-file call, not just those that really are out of range.
21835 .PP
21836 \fIzSeries Options\fR
21837 .IX Subsection "zSeries Options"
21838 .PP
21839 These are listed under
21840 .SS "Options for Code Generation Conventions"
21841 .IX Subsection "Options for Code Generation Conventions"
21842 These machine-independent options control the interface conventions
21843 used in code generation.
21844 .PP
21845 Most of them have both positive and negative forms; the negative form
21846 of \fB\-ffoo\fR is \fB\-fno\-foo\fR.  In the table below, only
21847 one of the forms is listed\-\-\-the one that is not the default.  You
21848 can figure out the other form by either removing \fBno\-\fR or adding
21849 it.
21850 .IP "\fB\-fbounds\-check\fR" 4
21851 .IX Item "-fbounds-check"
21852 For front ends that support it, generate additional code to check that
21853 indices used to access arrays are within the declared range.  This is
21854 currently only supported by the Java and Fortran front ends, where
21855 this option defaults to true and false respectively.
21856 .IP "\fB\-fstack\-reuse=\fR\fIreuse-level\fR" 4
21857 .IX Item "-fstack-reuse=reuse-level"
21858 This option controls stack space reuse for user declared local/auto variables
21859 and compiler generated temporaries.  \fIreuse_level\fR can be \fBall\fR,
21860 \&\fBnamed_vars\fR, or \fBnone\fR. \fBall\fR enables stack reuse for all
21861 local variables and temporaries, \fBnamed_vars\fR enables the reuse only for
21862 user defined local variables with names, and \fBnone\fR disables stack reuse
21863 completely. The default value is \fBall\fR. The option is needed when the
21864 program extends the lifetime of a scoped local variable or a compiler generated
21865 temporary beyond the end point defined by the language.  When a lifetime of
21866 a variable ends, and if the variable lives in memory, the optimizing compiler
21867 has the freedom to reuse its stack space with other temporaries or scoped
21868 local variables whose live range does not overlap with it. Legacy code extending
21869 local lifetime is likely to break with the stack reuse optimization.
21870 .Sp
21871 For example,
21872 .Sp
21873 .Vb 3
21874 \&           int *p;
21875 \&           {
21876 \&             int local1;
21877 \&        
21878 \&             p = &local1;
21879 \&             local1 = 10;
21880 \&             ....
21881 \&           }
21882 \&           {
21883 \&              int local2;
21884 \&              local2 = 20;
21885 \&              ...
21886 \&           }
21887 \&        
21888 \&           if (*p == 10)  // out of scope use of local1
21889 \&             {
21890 \&        
21891 \&             }
21892 .Ve
21893 .Sp
21894 Another example:
21895 .Sp
21896 .Vb 6
21897 \&           struct A
21898 \&           {
21899 \&               A(int k) : i(k), j(k) { }
21900 \&               int i;
21901 \&               int j;
21902 \&           };
21903 \&        
21904 \&           A *ap;
21905 \&        
21906 \&           void foo(const A& ar)
21907 \&           {
21908 \&              ap = &ar;
21909 \&           }
21910 \&        
21911 \&           void bar()
21912 \&           {
21913 \&              foo(A(10)); // temp object\*(Aqs lifetime ends when foo returns
21914 \&        
21915 \&              {
21916 \&                A a(20);
21917 \&                ....
21918 \&              }
21919 \&              ap\->i+= 10;  // ap references out of scope temp whose space
21920 \&                           // is reused with a. What is the value of ap\->i?
21921 \&           }
21922 .Ve
21923 .Sp
21924 The lifetime of a compiler generated temporary is well defined by the \*(C+
21925 standard. When a lifetime of a temporary ends, and if the temporary lives
21926 in memory, the optimizing compiler has the freedom to reuse its stack
21927 space with other temporaries or scoped local variables whose live range
21928 does not overlap with it. However some of the legacy code relies on
21929 the behavior of older compilers in which temporaries' stack space is
21930 not reused, the aggressive stack reuse can lead to runtime errors. This
21931 option is used to control the temporary stack reuse optimization.
21932 .IP "\fB\-ftrapv\fR" 4
21933 .IX Item "-ftrapv"
21934 This option generates traps for signed overflow on addition, subtraction,
21935 multiplication operations.
21936 .IP "\fB\-fwrapv\fR" 4
21937 .IX Item "-fwrapv"
21938 This option instructs the compiler to assume that signed arithmetic
21939 overflow of addition, subtraction and multiplication wraps around
21940 using twos-complement representation.  This flag enables some optimizations
21941 and disables others.  This option is enabled by default for the Java
21942 front end, as required by the Java language specification.
21943 .IP "\fB\-fexceptions\fR" 4
21944 .IX Item "-fexceptions"
21945 Enable exception handling.  Generates extra code needed to propagate
21946 exceptions.  For some targets, this implies \s-1GCC\s0 generates frame
21947 unwind information for all functions, which can produce significant data
21948 size overhead, although it does not affect execution.  If you do not
21949 specify this option, \s-1GCC\s0 enables it by default for languages like
21950 \&\*(C+ that normally require exception handling, and disables it for
21951 languages like C that do not normally require it.  However, you may need
21952 to enable this option when compiling C code that needs to interoperate
21953 properly with exception handlers written in \*(C+.  You may also wish to
21954 disable this option if you are compiling older \*(C+ programs that don't
21955 use exception handling.
21956 .IP "\fB\-fnon\-call\-exceptions\fR" 4
21957 .IX Item "-fnon-call-exceptions"
21958 Generate code that allows trapping instructions to throw exceptions.
21959 Note that this requires platform-specific runtime support that does
21960 not exist everywhere.  Moreover, it only allows \fItrapping\fR
21961 instructions to throw exceptions, i.e. memory references or floating-point
21962 instructions.  It does not allow exceptions to be thrown from
21963 arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
21964 .IP "\fB\-fdelete\-dead\-exceptions\fR" 4
21965 .IX Item "-fdelete-dead-exceptions"
21966 Consider that instructions that may throw exceptions but don't otherwise
21967 contribute to the execution of the program can be optimized away.
21968 This option is enabled by default for the Ada front end, as permitted by
21969 the Ada language specification.
21970 Optimization passes that cause dead exceptions to be removed are enabled independently at different optimization levels.
21971 .IP "\fB\-funwind\-tables\fR" 4
21972 .IX Item "-funwind-tables"
21973 Similar to \fB\-fexceptions\fR, except that it just generates any needed
21974 static data, but does not affect the generated code in any other way.
21975 You normally do not need to enable this option; instead, a language processor
21976 that needs this handling enables it on your behalf.
21977 .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
21978 .IX Item "-fasynchronous-unwind-tables"
21979 Generate unwind table in \s-1DWARF 2\s0 format, if supported by target machine.  The
21980 table is exact at each instruction boundary, so it can be used for stack
21981 unwinding from asynchronous events (such as debugger or garbage collector).
21982 .IP "\fB\-fno\-gnu\-unique\fR" 4
21983 .IX Item "-fno-gnu-unique"
21984 On systems with recent \s-1GNU\s0 assembler and C library, the \*(C+ compiler
21985 uses the \f(CW\*(C`STB_GNU_UNIQUE\*(C'\fR binding to make sure that definitions
21986 of template static data members and static local variables in inline
21987 functions are unique even in the presence of \f(CW\*(C`RTLD_LOCAL\*(C'\fR; this
21988 is necessary to avoid problems with a library used by two different
21989 \&\f(CW\*(C`RTLD_LOCAL\*(C'\fR plugins depending on a definition in one of them and
21990 therefore disagreeing with the other one about the binding of the
21991 symbol.  But this causes \f(CW\*(C`dlclose\*(C'\fR to be ignored for affected
21992 DSOs; if your program relies on reinitialization of a \s-1DSO\s0 via
21993 \&\f(CW\*(C`dlclose\*(C'\fR and \f(CW\*(C`dlopen\*(C'\fR, you can use
21994 \&\fB\-fno\-gnu\-unique\fR.
21995 .IP "\fB\-fpcc\-struct\-return\fR" 4
21996 .IX Item "-fpcc-struct-return"
21997 Return \*(L"short\*(R" \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
21998 longer ones, rather than in registers.  This convention is less
21999 efficient, but it has the advantage of allowing intercallability between
22000 GCC-compiled files and files compiled with other compilers, particularly
22001 the Portable C Compiler (pcc).
22002 .Sp
22003 The precise convention for returning structures in memory depends
22004 on the target configuration macros.
22005 .Sp
22006 Short structures and unions are those whose size and alignment match
22007 that of some integer type.
22008 .Sp
22009 \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
22010 switch is not binary compatible with code compiled with the
22011 \&\fB\-freg\-struct\-return\fR switch.
22012 Use it to conform to a non-default application binary interface.
22013 .IP "\fB\-freg\-struct\-return\fR" 4
22014 .IX Item "-freg-struct-return"
22015 Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
22016 This is more efficient for small structures than
22017 \&\fB\-fpcc\-struct\-return\fR.
22018 .Sp
22019 If you specify neither \fB\-fpcc\-struct\-return\fR nor
22020 \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
22021 standard for the target.  If there is no standard convention, \s-1GCC\s0
22022 defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
22023 the principal compiler.  In those cases, we can choose the standard, and
22024 we chose the more efficient register return alternative.
22025 .Sp
22026 \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
22027 switch is not binary compatible with code compiled with the
22028 \&\fB\-fpcc\-struct\-return\fR switch.
22029 Use it to conform to a non-default application binary interface.
22030 .IP "\fB\-fshort\-enums\fR" 4
22031 .IX Item "-fshort-enums"
22032 Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
22033 declared range of possible values.  Specifically, the \f(CW\*(C`enum\*(C'\fR type
22034 is equivalent to the smallest integer type that has enough room.
22035 .Sp
22036 \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
22037 code that is not binary compatible with code generated without that switch.
22038 Use it to conform to a non-default application binary interface.
22039 .IP "\fB\-fshort\-double\fR" 4
22040 .IX Item "-fshort-double"
22041 Use the same size for \f(CW\*(C`double\*(C'\fR as for \f(CW\*(C`float\*(C'\fR.
22042 .Sp
22043 \&\fBWarning:\fR the \fB\-fshort\-double\fR switch causes \s-1GCC\s0 to generate
22044 code that is not binary compatible with code generated without that switch.
22045 Use it to conform to a non-default application binary interface.
22046 .IP "\fB\-fshort\-wchar\fR" 4
22047 .IX Item "-fshort-wchar"
22048 Override the underlying type for \f(CW\*(C`wchar_t\*(C'\fR to be \f(CW\*(C`short
22049 unsigned int\*(C'\fR instead of the default for the target.  This option is
22050 useful for building programs to run under \s-1WINE.\s0
22051 .Sp
22052 \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
22053 code that is not binary compatible with code generated without that switch.
22054 Use it to conform to a non-default application binary interface.
22055 .IP "\fB\-fno\-common\fR" 4
22056 .IX Item "-fno-common"
22057 In C code, controls the placement of uninitialized global variables.
22058 Unix C compilers have traditionally permitted multiple definitions of
22059 such variables in different compilation units by placing the variables
22060 in a common block.
22061 This is the behavior specified by \fB\-fcommon\fR, and is the default
22062 for \s-1GCC\s0 on most targets.
22063 On the other hand, this behavior is not required by \s-1ISO C,\s0 and on some
22064 targets may carry a speed or code size penalty on variable references.
22065 The \fB\-fno\-common\fR option specifies that the compiler should place
22066 uninitialized global variables in the data section of the object file,
22067 rather than generating them as common blocks.
22068 This has the effect that if the same variable is declared
22069 (without \f(CW\*(C`extern\*(C'\fR) in two different compilations,
22070 you get a multiple-definition error when you link them.
22071 In this case, you must compile with \fB\-fcommon\fR instead.
22072 Compiling with \fB\-fno\-common\fR is useful on targets for which
22073 it provides better performance, or if you wish to verify that the
22074 program will work on other systems that always treat uninitialized
22075 variable declarations this way.
22076 .IP "\fB\-fno\-ident\fR" 4
22077 .IX Item "-fno-ident"
22078 Ignore the \f(CW\*(C`#ident\*(C'\fR directive.
22079 .IP "\fB\-finhibit\-size\-directive\fR" 4
22080 .IX Item "-finhibit-size-directive"
22081 Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
22082 would cause trouble if the function is split in the middle, and the
22083 two halves are placed at locations far apart in memory.  This option is
22084 used when compiling \fIcrtstuff.c\fR; you should not need to use it
22085 for anything else.
22086 .IP "\fB\-fverbose\-asm\fR" 4
22087 .IX Item "-fverbose-asm"
22088 Put extra commentary information in the generated assembly code to
22089 make it more readable.  This option is generally only of use to those
22090 who actually need to read the generated assembly code (perhaps while
22091 debugging the compiler itself).
22092 .Sp
22093 \&\fB\-fno\-verbose\-asm\fR, the default, causes the
22094 extra information to be omitted and is useful when comparing two assembler
22095 files.
22096 .IP "\fB\-frecord\-gcc\-switches\fR" 4
22097 .IX Item "-frecord-gcc-switches"
22098 This switch causes the command line used to invoke the
22099 compiler to be recorded into the object file that is being created.
22100 This switch is only implemented on some targets and the exact format
22101 of the recording is target and binary file format dependent, but it
22102 usually takes the form of a section containing \s-1ASCII\s0 text.  This
22103 switch is related to the \fB\-fverbose\-asm\fR switch, but that
22104 switch only records information in the assembler output file as
22105 comments, so it never reaches the object file.
22106 See also \fB\-grecord\-gcc\-switches\fR for another
22107 way of storing compiler options into the object file.
22108 .IP "\fB\-fpic\fR" 4
22109 .IX Item "-fpic"
22110 Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
22111 library, if supported for the target machine.  Such code accesses all
22112 constant addresses through a global offset table (\s-1GOT\s0).  The dynamic
22113 loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
22114 loader is not part of \s-1GCC\s0; it is part of the operating system).  If
22115 the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
22116 maximum size, you get an error message from the linker indicating that
22117 \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
22118 instead.  (These maximums are 8k on the \s-1SPARC\s0 and 32k
22119 on the m68k and \s-1RS/6000. \s0 The x86 has no such limit.)
22120 .Sp
22121 Position-independent code requires special support, and therefore works
22122 only on certain machines.  For the x86, \s-1GCC\s0 supports \s-1PIC\s0 for System V
22123 but not for the Sun 386i.  Code generated for the \s-1IBM RS/6000\s0 is always
22124 position-independent.
22125 .Sp
22126 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
22127 are defined to 1.
22128 .IP "\fB\-fPIC\fR" 4
22129 .IX Item "-fPIC"
22130 If supported for the target machine, emit position-independent code,
22131 suitable for dynamic linking and avoiding any limit on the size of the
22132 global offset table.  This option makes a difference on the m68k,
22133 PowerPC and \s-1SPARC.\s0
22134 .Sp
22135 Position-independent code requires special support, and therefore works
22136 only on certain machines.
22137 .Sp
22138 When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
22139 are defined to 2.
22140 .IP "\fB\-fpie\fR" 4
22141 .IX Item "-fpie"
22142 .PD 0
22143 .IP "\fB\-fPIE\fR" 4
22144 .IX Item "-fPIE"
22145 .PD
22146 These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
22147 generated position independent code can be only linked into executables.
22148 Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option is
22149 used during linking.
22150 .Sp
22151 \&\fB\-fpie\fR and \fB\-fPIE\fR both define the macros
22152 \&\f(CW\*(C`_\|_pie_\|_\*(C'\fR and \f(CW\*(C`_\|_PIE_\|_\*(C'\fR.  The macros have the value 1
22153 for \fB\-fpie\fR and 2 for \fB\-fPIE\fR.
22154 .IP "\fB\-fno\-jump\-tables\fR" 4
22155 .IX Item "-fno-jump-tables"
22156 Do not use jump tables for switch statements even where it would be
22157 more efficient than other code generation strategies.  This option is
22158 of use in conjunction with \fB\-fpic\fR or \fB\-fPIC\fR for
22159 building code that forms part of a dynamic linker and cannot
22160 reference the address of a jump table.  On some targets, jump tables
22161 do not require a \s-1GOT\s0 and this option is not needed.
22162 .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
22163 .IX Item "-ffixed-reg"
22164 Treat the register named \fIreg\fR as a fixed register; generated code
22165 should never refer to it (except perhaps as a stack pointer, frame
22166 pointer or in some other fixed role).
22167 .Sp
22168 \&\fIreg\fR must be the name of a register.  The register names accepted
22169 are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
22170 macro in the machine description macro file.
22171 .Sp
22172 This flag does not have a negative form, because it specifies a
22173 three-way choice.
22174 .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
22175 .IX Item "-fcall-used-reg"
22176 Treat the register named \fIreg\fR as an allocable register that is
22177 clobbered by function calls.  It may be allocated for temporaries or
22178 variables that do not live across a call.  Functions compiled this way
22179 do not save and restore the register \fIreg\fR.
22180 .Sp
22181 It is an error to use this flag with the frame pointer or stack pointer.
22182 Use of this flag for other registers that have fixed pervasive roles in
22183 the machine's execution model produces disastrous results.
22184 .Sp
22185 This flag does not have a negative form, because it specifies a
22186 three-way choice.
22187 .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
22188 .IX Item "-fcall-saved-reg"
22189 Treat the register named \fIreg\fR as an allocable register saved by
22190 functions.  It may be allocated even for temporaries or variables that
22191 live across a call.  Functions compiled this way save and restore
22192 the register \fIreg\fR if they use it.
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 A different sort of disaster results from the use of this flag for
22199 a register in which function values may be returned.
22200 .Sp
22201 This flag does not have a negative form, because it specifies a
22202 three-way choice.
22203 .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
22204 .IX Item "-fpack-struct[=n]"
22205 Without a value specified, pack all structure members together without
22206 holes.  When a value is specified (which must be a small power of two), pack
22207 structure members according to this value, representing the maximum
22208 alignment (that is, objects with default alignment requirements larger than
22209 this are output potentially unaligned at the next fitting location.
22210 .Sp
22211 \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
22212 code that is not binary compatible with code generated without that switch.
22213 Additionally, it makes the code suboptimal.
22214 Use it to conform to a non-default application binary interface.
22215 .IP "\fB\-finstrument\-functions\fR" 4
22216 .IX Item "-finstrument-functions"
22217 Generate instrumentation calls for entry and exit to functions.  Just
22218 after function entry and just before function exit, the following
22219 profiling functions are called with the address of the current
22220 function and its call site.  (On some platforms,
22221 \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
22222 function, so the call site information may not be available to the
22223 profiling functions otherwise.)
22224 .Sp
22225 .Vb 4
22226 \&        void _\|_cyg_profile_func_enter (void *this_fn,
22227 \&                                       void *call_site);
22228 \&        void _\|_cyg_profile_func_exit  (void *this_fn,
22229 \&                                       void *call_site);
22230 .Ve
22231 .Sp
22232 The first argument is the address of the start of the current function,
22233 which may be looked up exactly in the symbol table.
22234 .Sp
22235 This instrumentation is also done for functions expanded inline in other
22236 functions.  The profiling calls indicate where, conceptually, the
22237 inline function is entered and exited.  This means that addressable
22238 versions of such functions must be available.  If all your uses of a
22239 function are expanded inline, this may mean an additional expansion of
22240 code size.  If you use \f(CW\*(C`extern inline\*(C'\fR in your C code, an
22241 addressable version of such functions must be provided.  (This is
22242 normally the case anyway, but if you get lucky and the optimizer always
22243 expands the functions inline, you might have gotten away without
22244 providing static copies.)
22245 .Sp
22246 A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
22247 which case this instrumentation is not done.  This can be used, for
22248 example, for the profiling functions listed above, high-priority
22249 interrupt routines, and any functions from which the profiling functions
22250 cannot safely be called (perhaps signal handlers, if the profiling
22251 routines generate output or allocate memory).
22252 .IP "\fB\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR" 4
22253 .IX Item "-finstrument-functions-exclude-file-list=file,file,..."
22254 Set the list of functions that are excluded from instrumentation (see
22255 the description of \fB\-finstrument\-functions\fR).  If the file that
22256 contains a function definition matches with one of \fIfile\fR, then
22257 that function is not instrumented.  The match is done on substrings:
22258 if the \fIfile\fR parameter is a substring of the file name, it is
22259 considered to be a match.
22260 .Sp
22261 For example:
22262 .Sp
22263 .Vb 1
22264 \&        \-finstrument\-functions\-exclude\-file\-list=/bits/stl,include/sys
22265 .Ve
22266 .Sp
22267 excludes any inline function defined in files whose pathnames
22268 contain \fI/bits/stl\fR or \fIinclude/sys\fR.
22269 .Sp
22270 If, for some reason, you want to include letter \fB,\fR in one of
22271 \&\fIsym\fR, write \fB,\fR. For example,
22272 \&\fB\-finstrument\-functions\-exclude\-file\-list=',,tmp'\fR
22273 (note the single quote surrounding the option).
22274 .IP "\fB\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,...\fR" 4
22275 .IX Item "-finstrument-functions-exclude-function-list=sym,sym,..."
22276 This is similar to \fB\-finstrument\-functions\-exclude\-file\-list\fR,
22277 but this option sets the list of function names to be excluded from
22278 instrumentation.  The function name to be matched is its user-visible
22279 name, such as \f(CW\*(C`vector<int> blah(const vector<int> &)\*(C'\fR, not the
22280 internal mangled name (e.g., \f(CW\*(C`_Z4blahRSt6vectorIiSaIiEE\*(C'\fR).  The
22281 match is done on substrings: if the \fIsym\fR parameter is a substring
22282 of the function name, it is considered to be a match.  For C99 and \*(C+
22283 extended identifiers, the function name must be given in \s-1UTF\-8,\s0 not
22284 using universal character names.
22285 .IP "\fB\-fstack\-check\fR" 4
22286 .IX Item "-fstack-check"
22287 Generate code to verify that you do not go beyond the boundary of the
22288 stack.  You should specify this flag if you are running in an
22289 environment with multiple threads, but you only rarely need to specify it in
22290 a single-threaded environment since stack overflow is automatically
22291 detected on nearly all systems if there is only one stack.
22292 .Sp
22293 Note that this switch does not actually cause checking to be done; the
22294 operating system or the language runtime must do that.  The switch causes
22295 generation of code to ensure that they see the stack being extended.
22296 .Sp
22297 You can additionally specify a string parameter: \fBno\fR means no
22298 checking, \fBgeneric\fR means force the use of old-style checking,
22299 \&\fBspecific\fR means use the best checking method and is equivalent
22300 to bare \fB\-fstack\-check\fR.
22301 .Sp
22302 Old-style checking is a generic mechanism that requires no specific
22303 target support in the compiler but comes with the following drawbacks:
22304 .RS 4
22305 .IP "1." 4
22306 .IX Item "1."
22307 Modified allocation strategy for large objects: they are always
22308 allocated dynamically if their size exceeds a fixed threshold.
22309 .IP "2." 4
22310 .IX Item "2."
22311 Fixed limit on the size of the static frame of functions: when it is
22312 topped by a particular function, stack checking is not reliable and
22313 a warning is issued by the compiler.
22314 .IP "3." 4
22315 .IX Item "3."
22316 Inefficiency: because of both the modified allocation strategy and the
22317 generic implementation, code performance is hampered.
22318 .RE
22319 .RS 4
22320 .Sp
22321 Note that old-style stack checking is also the fallback method for
22322 \&\fBspecific\fR if no target support has been added in the compiler.
22323 .RE
22324 .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
22325 .IX Item "-fstack-limit-register=reg"
22326 .PD 0
22327 .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
22328 .IX Item "-fstack-limit-symbol=sym"
22329 .IP "\fB\-fno\-stack\-limit\fR" 4
22330 .IX Item "-fno-stack-limit"
22331 .PD
22332 Generate code to ensure that the stack does not grow beyond a certain value,
22333 either the value of a register or the address of a symbol.  If a larger
22334 stack is required, a signal is raised at run time.  For most targets,
22335 the signal is raised before the stack overruns the boundary, so
22336 it is possible to catch the signal without taking special precautions.
22337 .Sp
22338 For instance, if the stack starts at absolute address \fB0x80000000\fR
22339 and grows downwards, you can use the flags
22340 \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
22341 \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
22342 of 128KB.  Note that this may only work with the \s-1GNU\s0 linker.
22343 .IP "\fB\-fsplit\-stack\fR" 4
22344 .IX Item "-fsplit-stack"
22345 Generate code to automatically split the stack before it overflows.
22346 The resulting program has a discontiguous stack which can only
22347 overflow if the program is unable to allocate any more memory.  This
22348 is most useful when running threaded programs, as it is no longer
22349 necessary to calculate a good stack size to use for each thread.  This
22350 is currently only implemented for the x86 targets running
22351 GNU/Linux.
22352 .Sp
22353 When code compiled with \fB\-fsplit\-stack\fR calls code compiled
22354 without \fB\-fsplit\-stack\fR, there may not be much stack space
22355 available for the latter code to run.  If compiling all code,
22356 including library code, with \fB\-fsplit\-stack\fR is not an option,
22357 then the linker can fix up these calls so that the code compiled
22358 without \fB\-fsplit\-stack\fR always has a large stack.  Support for
22359 this is implemented in the gold linker in \s-1GNU\s0 binutils release 2.21
22360 and later.
22361 .IP "\fB\-fleading\-underscore\fR" 4
22362 .IX Item "-fleading-underscore"
22363 This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
22364 change the way C symbols are represented in the object file.  One use
22365 is to help link with legacy assembly code.
22366 .Sp
22367 \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
22368 generate code that is not binary compatible with code generated without that
22369 switch.  Use it to conform to a non-default application binary interface.
22370 Not all targets provide complete support for this switch.
22371 .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
22372 .IX Item "-ftls-model=model"
22373 Alter the thread-local storage model to be used.
22374 The \fImodel\fR argument should be one of \fBglobal-dynamic\fR,
22375 \&\fBlocal-dynamic\fR, \fBinitial-exec\fR or \fBlocal-exec\fR.
22376 Note that the choice is subject to optimization: the compiler may use
22377 a more efficient model for symbols not visible outside of the translation
22378 unit, or if \fB\-fpic\fR is not given on the command line.
22379 .Sp
22380 The default without \fB\-fpic\fR is \fBinitial-exec\fR; with
22381 \&\fB\-fpic\fR the default is \fBglobal-dynamic\fR.
22382 .IP "\fB\-fvisibility=\fR[\fBdefault\fR|\fBinternal\fR|\fBhidden\fR|\fBprotected\fR]" 4
22383 .IX Item "-fvisibility=[default|internal|hidden|protected]"
22384 Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
22385 symbols are marked with this unless overridden within the code.
22386 Using this feature can very substantially improve linking and
22387 load times of shared object libraries, produce more optimized
22388 code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
22389 It is \fBstrongly\fR recommended that you use this in any shared objects
22390 you distribute.
22391 .Sp
22392 Despite the nomenclature, \fBdefault\fR always means public; i.e.,
22393 available to be linked against from outside the shared object.
22394 \&\fBprotected\fR and \fBinternal\fR are pretty useless in real-world
22395 usage so the only other commonly used option is \fBhidden\fR.
22396 The default if \fB\-fvisibility\fR isn't specified is
22397 \&\fBdefault\fR, i.e., make every symbol public.
22398 .Sp
22399 A good explanation of the benefits offered by ensuring \s-1ELF\s0
22400 symbols have the correct visibility is given by \*(L"How To Write
22401 Shared Libraries\*(R" by Ulrich Drepper (which can be found at
22402 <\fBhttp://www.akkadia.org/drepper/\fR>)\-\-\-however a superior
22403 solution made possible by this option to marking things hidden when
22404 the default is public is to make the default hidden and mark things
22405 public.  This is the norm with DLLs on Windows and with \fB\-fvisibility=hidden\fR
22406 and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
22407 \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
22408 identical syntax.  This is a great boon to those working with
22409 cross-platform projects.
22410 .Sp
22411 For those adding visibility support to existing code, you may find
22412 \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR of use.  This works by you enclosing
22413 the declarations you wish to set visibility for with (for example)
22414 \&\f(CW\*(C`#pragma GCC visibility push(hidden)\*(C'\fR and
22415 \&\f(CW\*(C`#pragma GCC visibility pop\*(C'\fR.
22416 Bear in mind that symbol visibility should be viewed \fBas
22417 part of the \s-1API\s0 interface contract\fR and thus all new code should
22418 always specify visibility when it is not the default; i.e., declarations
22419 only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
22420 as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
22421 abundantly clear also aids readability and self-documentation of the code.
22422 Note that due to \s-1ISO \*(C+\s0 specification requirements, \f(CW\*(C`operator new\*(C'\fR and
22423 \&\f(CW\*(C`operator delete\*(C'\fR must always be of default visibility.
22424 .Sp
22425 Be aware that headers from outside your project, in particular system
22426 headers and headers from any other library you use, may not be
22427 expecting to be compiled with visibility other than the default.  You
22428 may need to explicitly say \f(CW\*(C`#pragma GCC visibility push(default)\*(C'\fR
22429 before including any such headers.
22430 .Sp
22431 \&\f(CW\*(C`extern\*(C'\fR declarations are not affected by \fB\-fvisibility\fR, so
22432 a lot of code can be recompiled with \fB\-fvisibility=hidden\fR with
22433 no modifications.  However, this means that calls to \f(CW\*(C`extern\*(C'\fR
22434 functions with no explicit visibility use the \s-1PLT,\s0 so it is more
22435 effective to use \f(CW\*(C`_\|_attribute ((visibility))\*(C'\fR and/or
22436 \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR to tell the compiler which \f(CW\*(C`extern\*(C'\fR
22437 declarations should be treated as hidden.
22438 .Sp
22439 Note that \fB\-fvisibility\fR does affect \*(C+ vague linkage
22440 entities. This means that, for instance, an exception class that is
22441 be thrown between DSOs must be explicitly marked with default
22442 visibility so that the \fBtype_info\fR nodes are unified between
22443 the DSOs.
22444 .Sp
22445 An overview of these techniques, their benefits and how to use them
22446 is at <\fBhttp://gcc.gnu.org/wiki/Visibility\fR>.
22447 .IP "\fB\-fstrict\-volatile\-bitfields\fR" 4
22448 .IX Item "-fstrict-volatile-bitfields"
22449 This option should be used if accesses to volatile bit-fields (or other
22450 structure fields, although the compiler usually honors those types
22451 anyway) should use a single access of the width of the
22452 field's type, aligned to a natural alignment if possible.  For
22453 example, targets with memory-mapped peripheral registers might require
22454 all such accesses to be 16 bits wide; with this flag you can
22455 declare all peripheral bit-fields as \f(CW\*(C`unsigned short\*(C'\fR (assuming short
22456 is 16 bits on these targets) to force \s-1GCC\s0 to use 16\-bit accesses
22457 instead of, perhaps, a more efficient 32\-bit access.
22458 .Sp
22459 If this option is disabled, the compiler uses the most efficient
22460 instruction.  In the previous example, that might be a 32\-bit load
22461 instruction, even though that accesses bytes that do not contain
22462 any portion of the bit-field, or memory-mapped registers unrelated to
22463 the one being updated.
22464 .Sp
22465 In some cases, such as when the \f(CW\*(C`packed\*(C'\fR attribute is applied to a 
22466 structure field, it may not be possible to access the field with a single
22467 read or write that is correctly aligned for the target machine.  In this
22468 case \s-1GCC\s0 falls back to generating multiple accesses rather than code that 
22469 will fault or truncate the result at run time.
22470 .Sp
22471 Note:  Due to restrictions of the C/\*(C+11 memory model, write accesses are
22472 not allowed to touch non bit-field members.  It is therefore recommended
22473 to define all bits of the field's type as bit-field members.
22474 .Sp
22475 The default value of this option is determined by the application binary
22476 interface for the target processor.
22477 .IP "\fB\-fsync\-libcalls\fR" 4
22478 .IX Item "-fsync-libcalls"
22479 This option controls whether any out-of-line instance of the \f(CW\*(C`_\|_sync\*(C'\fR
22480 family of functions may be used to implement the \*(C+11 \f(CW\*(C`_\|_atomic\*(C'\fR
22481 family of functions.
22482 .Sp
22483 The default value of this option is enabled, thus the only useful form
22484 of the option is \fB\-fno\-sync\-libcalls\fR.  This option is used in
22485 the implementation of the \fIlibatomic\fR runtime library.
22486 .SH "ENVIRONMENT"
22487 .IX Header "ENVIRONMENT"
22488 This section describes several environment variables that affect how \s-1GCC\s0
22489 operates.  Some of them work by specifying directories or prefixes to use
22490 when searching for various kinds of files.  Some are used to specify other
22491 aspects of the compilation environment.
22492 .PP
22493 Note that you can also specify places to search using options such as
22494 \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR.  These
22495 take precedence over places specified using environment variables, which
22496 in turn take precedence over those specified by the configuration of \s-1GCC.\s0
22497 .IP "\fB\s-1LANG\s0\fR" 4
22498 .IX Item "LANG"
22499 .PD 0
22500 .IP "\fB\s-1LC_CTYPE\s0\fR" 4
22501 .IX Item "LC_CTYPE"
22502 .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
22503 .IX Item "LC_MESSAGES"
22504 .IP "\fB\s-1LC_ALL\s0\fR" 4
22505 .IX Item "LC_ALL"
22506 .PD
22507 These environment variables control the way that \s-1GCC\s0 uses
22508 localization information which allows \s-1GCC\s0 to work with different
22509 national conventions.  \s-1GCC\s0 inspects the locale categories
22510 \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
22511 so.  These locale categories can be set to any value supported by your
22512 installation.  A typical value is \fBen_GB.UTF\-8\fR for English in the United
22513 Kingdom encoded in \s-1UTF\-8.\s0
22514 .Sp
22515 The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
22516 classification.  \s-1GCC\s0 uses it to determine the character boundaries in
22517 a string; this is needed for some multibyte encodings that contain quote
22518 and escape characters that are otherwise interpreted as a string
22519 end or escape.
22520 .Sp
22521 The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
22522 use in diagnostic messages.
22523 .Sp
22524 If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
22525 of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
22526 and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
22527 environment variable.  If none of these variables are set, \s-1GCC\s0
22528 defaults to traditional C English behavior.
22529 .IP "\fB\s-1TMPDIR\s0\fR" 4
22530 .IX Item "TMPDIR"
22531 If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
22532 files.  \s-1GCC\s0 uses temporary files to hold the output of one stage of
22533 compilation which is to be used as input to the next stage: for example,
22534 the output of the preprocessor, which is the input to the compiler
22535 proper.
22536 .IP "\fB\s-1GCC_COMPARE_DEBUG\s0\fR" 4
22537 .IX Item "GCC_COMPARE_DEBUG"
22538 Setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR is nearly equivalent to passing
22539 \&\fB\-fcompare\-debug\fR to the compiler driver.  See the documentation
22540 of this option for more details.
22541 .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
22542 .IX Item "GCC_EXEC_PREFIX"
22543 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
22544 names of the subprograms executed by the compiler.  No slash is added
22545 when this prefix is combined with the name of a subprogram, but you can
22546 specify a prefix that ends with a slash if you wish.
22547 .Sp
22548 If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 attempts to figure out
22549 an appropriate prefix to use based on the pathname it is invoked with.
22550 .Sp
22551 If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
22552 tries looking in the usual places for the subprogram.
22553 .Sp
22554 The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
22555 \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the prefix to
22556 the installed compiler. In many cases \fIprefix\fR is the value
22557 of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
22558 .Sp
22559 Other prefixes specified with \fB\-B\fR take precedence over this prefix.
22560 .Sp
22561 This prefix is also used for finding files such as \fIcrt0.o\fR that are
22562 used for linking.
22563 .Sp
22564 In addition, the prefix is used in an unusual way in finding the
22565 directories to search for header files.  For each of the standard
22566 directories whose name normally begins with \fB/usr/local/lib/gcc\fR
22567 (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
22568 replacing that beginning with the specified prefix to produce an
22569 alternate directory name.  Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 searches
22570 \&\fIfoo/bar\fR just before it searches the standard directory 
22571 \&\fI/usr/local/lib/bar\fR.
22572 If a standard directory begins with the configured
22573 \&\fIprefix\fR then the value of \fIprefix\fR is replaced by
22574 \&\fB\s-1GCC_EXEC_PREFIX\s0\fR when looking for header files.
22575 .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
22576 .IX Item "COMPILER_PATH"
22577 The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
22578 directories, much like \fB\s-1PATH\s0\fR.  \s-1GCC\s0 tries the directories thus
22579 specified when searching for subprograms, if it can't find the
22580 subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
22581 .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
22582 .IX Item "LIBRARY_PATH"
22583 The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
22584 directories, much like \fB\s-1PATH\s0\fR.  When configured as a native compiler,
22585 \&\s-1GCC\s0 tries the directories thus specified when searching for special
22586 linker files, if it can't find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR.  Linking
22587 using \s-1GCC\s0 also uses these directories when searching for ordinary
22588 libraries for the \fB\-l\fR option (but directories specified with
22589 \&\fB\-L\fR come first).
22590 .IP "\fB\s-1LANG\s0\fR" 4
22591 .IX Item "LANG"
22592 This variable is used to pass locale information to the compiler.  One way in
22593 which this information is used is to determine the character set to be used
22594 when character literals, string literals and comments are parsed in C and \*(C+.
22595 When the compiler is configured to allow multibyte characters,
22596 the following values for \fB\s-1LANG\s0\fR are recognized:
22597 .RS 4
22598 .IP "\fBC\-JIS\fR" 4
22599 .IX Item "C-JIS"
22600 Recognize \s-1JIS\s0 characters.
22601 .IP "\fBC\-SJIS\fR" 4
22602 .IX Item "C-SJIS"
22603 Recognize \s-1SJIS\s0 characters.
22604 .IP "\fBC\-EUCJP\fR" 4
22605 .IX Item "C-EUCJP"
22606 Recognize \s-1EUCJP\s0 characters.
22607 .RE
22608 .RS 4
22609 .Sp
22610 If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
22611 compiler uses \f(CW\*(C`mblen\*(C'\fR and \f(CW\*(C`mbtowc\*(C'\fR as defined by the default locale to
22612 recognize and translate multibyte characters.
22613 .RE
22614 .PP
22615 Some additional environment variables affect the behavior of the
22616 preprocessor.
22617 .IP "\fB\s-1CPATH\s0\fR" 4
22618 .IX Item "CPATH"
22619 .PD 0
22620 .IP "\fBC_INCLUDE_PATH\fR" 4
22621 .IX Item "C_INCLUDE_PATH"
22622 .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
22623 .IX Item "CPLUS_INCLUDE_PATH"
22624 .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
22625 .IX Item "OBJC_INCLUDE_PATH"
22626 .PD
22627 Each variable's value is a list of directories separated by a special
22628 character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
22629 The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
22630 determined at \s-1GCC\s0 build time.  For Microsoft Windows-based targets it is a
22631 semicolon, and for almost all other targets it is a colon.
22632 .Sp
22633 \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
22634 specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
22635 options on the command line.  This environment variable is used
22636 regardless of which language is being preprocessed.
22637 .Sp
22638 The remaining environment variables apply only when preprocessing the
22639 particular language indicated.  Each specifies a list of directories
22640 to be searched as if specified with \fB\-isystem\fR, but after any
22641 paths given with \fB\-isystem\fR options on the command line.
22642 .Sp
22643 In all these variables, an empty element instructs the compiler to
22644 search its current working directory.  Empty elements can appear at the
22645 beginning or end of a path.  For instance, if the value of
22646 \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
22647 effect as \fB\-I.\ \-I/special/include\fR.
22648 .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
22649 .IX Item "DEPENDENCIES_OUTPUT"
22650 If this variable is set, its value specifies how to output
22651 dependencies for Make based on the non-system header files processed
22652 by the compiler.  System header files are ignored in the dependency
22653 output.
22654 .Sp
22655 The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
22656 which case the Make rules are written to that file, guessing the target
22657 name from the source file name.  Or the value can have the form
22658 \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
22659 file \fIfile\fR using \fItarget\fR as the target name.
22660 .Sp
22661 In other words, this environment variable is equivalent to combining
22662 the options \fB\-MM\fR and \fB\-MF\fR,
22663 with an optional \fB\-MT\fR switch too.
22664 .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
22665 .IX Item "SUNPRO_DEPENDENCIES"
22666 This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
22667 except that system header files are not ignored, so it implies
22668 \&\fB\-M\fR rather than \fB\-MM\fR.  However, the dependence on the
22669 main input file is omitted.
22670 .SH "BUGS"
22671 .IX Header "BUGS"
22672 For instructions on reporting bugs, see
22673 <\fBhttp://gcc.gnu.org/bugs.html\fR>.
22674 .SH "FOOTNOTES"
22675 .IX Header "FOOTNOTES"
22676 .IP "1." 4
22677 On some systems, \fBgcc \-shared\fR
22678 needs to build supplementary stub code for constructors to work.  On
22679 multi-libbed systems, \fBgcc \-shared\fR must select the correct support
22680 libraries to link against.  Failing to supply the correct flags may lead
22681 to subtle defects.  Supplying them in cases where they are not necessary
22682 is innocuous.
22683 .SH "SEE ALSO"
22684 .IX Header "SEE ALSO"
22685 \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7),
22686 \&\fIcpp\fR\|(1), \fIgcov\fR\|(1), \fIas\fR\|(1), \fIld\fR\|(1), \fIgdb\fR\|(1), \fIadb\fR\|(1), \fIdbx\fR\|(1), \fIsdb\fR\|(1)
22687 and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
22688 \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
22689 .SH "AUTHOR"
22690 .IX Header "AUTHOR"
22691 See the Info entry for \fBgcc\fR, or
22692 <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
22693 for contributors to \s-1GCC.\s0
22694 .SH "COPYRIGHT"
22695 .IX Header "COPYRIGHT"
22696 Copyright (c) 1988\-2015 Free Software Foundation, Inc.
22697 .PP
22698 Permission is granted to copy, distribute and/or modify this document
22699 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or
22700 any later version published by the Free Software Foundation; with the
22701 Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
22702 Free Software\*(R", the Front-Cover texts being (a) (see below), and with
22703 the Back-Cover Texts being (b) (see below).  A copy of the license is
22704 included in the \fIgfdl\fR\|(7) man page.
22705 .PP
22706 (a) The \s-1FSF\s0's Front-Cover Text is:
22707 .PP
22708 .Vb 1
22709 \&     A GNU Manual
22710 .Ve
22711 .PP
22712 (b) The \s-1FSF\s0's Back-Cover Text is:
22713 .PP
22714 .Vb 3
22715 \&     You have freedom to copy and modify this GNU Manual, like GNU
22716 \&     software.  Copies published by the Free Software Foundation raise
22717 \&     funds for GNU development.
22718 .Ve